iking-web-ui-pro 0.2.5 → 0.2.6

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 (62) hide show
  1. package/dist/IKDetailPreviewFiles/ik.index.es.js +409 -406
  2. package/dist/IKDetailPreviewFiles/ik.index.umd.js +1 -1
  3. package/dist/IKDetailPreviewFiles/style.css +1 -1
  4. package/dist/IKExpandCollapse/ik.index.es.js +123 -120
  5. package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
  6. package/dist/IKExpandCollapse/style.css +1 -1
  7. package/dist/IKPreviewFile/ik.index.es.js +358 -355
  8. package/dist/IKPreviewFile/ik.index.umd.js +1 -1
  9. package/dist/IKPreviewFile/style.css +1 -1
  10. package/dist/IKVerticalStepBar/ik.index.es.js +142 -139
  11. package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
  12. package/dist/IKVerticalStepBar/style.css +1 -1
  13. package/dist/IkApprovalProcessDetail/ik.index.es.js +564 -561
  14. package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
  15. package/dist/IkApprovalProcessDetail/style.css +1 -1
  16. package/dist/IkBaseDialog/ik.index.es.js +125 -122
  17. package/dist/IkBaseDialog/ik.index.umd.js +1 -1
  18. package/dist/IkBaseDialog/style.css +1 -1
  19. package/dist/IkBtnSetting/ik.index.es.js +252 -249
  20. package/dist/IkBtnSetting/ik.index.umd.js +1 -1
  21. package/dist/IkBtnSetting/style.css +1 -1
  22. package/dist/IkCollapseCard/ik.index.es.js +129 -126
  23. package/dist/IkCollapseCard/ik.index.umd.js +1 -1
  24. package/dist/IkCollapseCard/style.css +1 -1
  25. package/dist/IkDescription/ik.index.es.js +357 -354
  26. package/dist/IkDescription/ik.index.umd.js +1 -1
  27. package/dist/IkDescription/style.css +1 -1
  28. package/dist/IkIconPicker/ik.index.es.js +196 -193
  29. package/dist/IkIconPicker/ik.index.umd.js +1 -1
  30. package/dist/IkIconPicker/style.css +1 -1
  31. package/dist/IkMonacoEditor/ik.index.es.js +397 -394
  32. package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
  33. package/dist/IkMonacoEditor/style.css +1 -1
  34. package/dist/IkPageFull/ik.index.es.js +1122 -1119
  35. package/dist/IkPageFull/ik.index.umd.js +2 -2
  36. package/dist/IkPageFull/style.css +1 -1
  37. package/dist/IkPreviewFileDialog/ik.index.es.js +293 -290
  38. package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
  39. package/dist/IkPreviewFileDialog/style.css +1 -1
  40. package/dist/IkSchedule/ik.index.es.js +968 -965
  41. package/dist/IkSchedule/ik.index.umd.js +1 -1
  42. package/dist/IkSchedule/style.css +1 -1
  43. package/dist/IkSideText/ik.index.es.js +148 -145
  44. package/dist/IkSideText/ik.index.umd.js +1 -1
  45. package/dist/IkSideText/style.css +1 -1
  46. package/dist/IkSvgIcon/ik.index.es.js +106 -103
  47. package/dist/IkSvgIcon/ik.index.umd.js +1 -1
  48. package/dist/IkSvgIcon/style.css +1 -1
  49. package/dist/IkUploadFile/ik.index.es.js +530 -526
  50. package/dist/IkUploadFile/ik.index.umd.js +1 -1
  51. package/dist/IkUploadFile/style.css +1 -1
  52. package/dist/IkUploadImage/ik.index.es.js +269 -266
  53. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  54. package/dist/IkUploadImage/style.css +1 -1
  55. package/dist/Provider/ik.index.es.js +50 -46
  56. package/dist/Provider/ik.index.umd.js +5 -5
  57. package/dist/index.es.js +7052 -7044
  58. package/dist/index.umd.js +36 -36
  59. package/dist/src/components/Provider/ProviderConfig.vue.d.ts +9 -0
  60. package/dist/src/components/Provider/index.d.ts +19 -0
  61. package/dist/style.css +1 -1
  62. package/package.json +1 -1
@@ -1,38 +1,38 @@
1
- import { inject as D, computed as m, defineComponent as F, mergeModels as W, useModel as G, ref as V, reactive as Y, watch as Z, nextTick as J, resolveComponent as E, openBlock as r, createElementBlock as u, Fragment as T, createBlock as R, createCommentVNode as C, createVNode as x, unref as g, withCtx as S, createElementVNode as c, normalizeClass as b, normalizeStyle as z, createTextVNode as P, toDisplayString as q, h as Q, mergeProps as e3, createSlots as t3, renderSlot as $, renderList as n3, withModifiers as o3 } from "vue";
1
+ import { inject as S, computed as m, defineComponent as z, mergeModels as W, useModel as G, ref as R, reactive as Y, watch as Z, nextTick as J, resolveComponent as E, openBlock as r, createElementBlock as u, Fragment as T, createBlock as B, createCommentVNode as V, createVNode as b, unref as g, withCtx as C, createElementVNode as c, normalizeClass as F, normalizeStyle as k, createTextVNode as P, toDisplayString as q, h as Q, mergeProps as e3, createSlots as t3, renderSlot as $, renderList as n3, withModifiers as o3 } from "vue";
2
2
  import { buildUUID as i3, ikColor as s3, paramType as l3, ikFile as a3 } from "iking-utils-pro";
3
- const O = (t, e) => {
3
+ const O = (t, n) => {
4
4
  if (t.install = (o) => {
5
- for (const s of [t, ...Object.values(e ?? {})])
6
- o.component(s.name, s);
7
- }, e)
8
- for (const [o, s] of Object.entries(e))
9
- t[o] = s;
5
+ for (const e of [t, ...Object.values(n ?? {})])
6
+ o.component(e.name, e);
7
+ }, n)
8
+ for (const [o, e] of Object.entries(n))
9
+ t[o] = e;
10
10
  return t;
11
- }, U = (t, e) => {
11
+ }, U = (t, n) => {
12
12
  const o = t.__vccOpts || t;
13
- for (const [s, n] of e)
14
- o[s] = n;
13
+ for (const [e, l] of n)
14
+ o[e] = l;
15
15
  return o;
16
- }, c3 = (t, e = 2) => {
16
+ }, c3 = (t, n = 2) => {
17
17
  if (t === void 0)
18
18
  return "";
19
19
  if (t === 0)
20
20
  return "0 B";
21
- const o = ["B", "KB", "MB", "GB", "TB"], s = Math.floor(Math.log(t) / Math.log(1024));
22
- let n = t / Math.pow(1024, s);
23
- return (n % 1 === 0 ? n.toFixed(e || 0) : n.toFixed(e)) + " " + o[s];
24
- }, A = (t, e) => e ? e.startsWith("http") ? e : `${t || location.origin}${e}` : "", r3 = (t) => {
25
- const e = D("loadUrl"), o = m(() => t.loadUrl || (e == null ? void 0 : e.value)), s = D("uploadUrl"), n = m(() => t.action || t.uploadUrl || (s == null ? void 0 : s.value)), i = D("token"), a = m(() => t.token || (i == null ? void 0 : i.value)), p = D("onlyofficeConfig"), v = m(() => t.onlyofficeConfig || (p == null ? void 0 : p.value)), l = D("userInfo"), h = m(() => t.userInfo || (l == null ? void 0 : l.value));
21
+ const o = ["B", "KB", "MB", "GB", "TB"], e = Math.floor(Math.log(t) / Math.log(1024));
22
+ let l = t / Math.pow(1024, e);
23
+ return (l % 1 === 0 ? l.toFixed(n || 0) : l.toFixed(n)) + " " + o[e];
24
+ }, A = (t, n) => n ? n.startsWith("http") ? n : `${t || location.origin}${n}` : "", r3 = (t) => {
25
+ const n = S("loadUrl"), o = m(() => t.loadUrl || (n == null ? void 0 : n.value)), e = S("uploadUrl"), l = m(() => t.action || t.uploadUrl || (e == null ? void 0 : e.value)), i = S("token"), s = m(() => t.token || (i == null ? void 0 : i.value)), h = S("onlyofficeConfig"), p = m(() => t.onlyofficeConfig || (h == null ? void 0 : h.value)), a = S("userInfo"), v = m(() => t.userInfo || (a == null ? void 0 : a.value));
26
26
  return {
27
27
  cLoadUrl: o,
28
- cUploadUrl: n,
29
- cToken: a,
30
- cOnlyofficeConfig: v,
31
- cUserInfo: h
28
+ cUploadUrl: l,
29
+ cToken: s,
30
+ cOnlyofficeConfig: p,
31
+ cUserInfo: v
32
32
  };
33
- }, d3 = r3, K = (t, e) => {
34
- var i, a, p, v;
35
- const o = (i = t == null ? void 0 : t.response) != null && i.data ? L((p = (a = t == null ? void 0 : t.response) == null ? void 0 : a.data) == null ? void 0 : p.suffix) : ((v = t.raw) == null ? void 0 : v.type) || L(t[e.suffix]), s = o == null ? void 0 : o.toLowerCase(), n = {
33
+ }, d3 = r3, K = (t, n) => {
34
+ var i, s, h, p;
35
+ const o = (i = t == null ? void 0 : t.response) != null && i.data ? L((h = (s = t == null ? void 0 : t.response) == null ? void 0 : s.data) == null ? void 0 : h.suffix) : ((p = t.raw) == null ? void 0 : p.type) || L(t[n.suffix]), e = o == null ? void 0 : o.toLowerCase(), l = {
36
36
  sheet: "excel",
37
37
  excel: "excel",
38
38
  zip: "zip",
@@ -48,9 +48,9 @@ const O = (t, e) => {
48
48
  exe: "exe",
49
49
  json: "json"
50
50
  };
51
- for (let l in n)
52
- if (typeof s == "string" && (s.includes(l) || s === l))
53
- return n[l];
51
+ for (let a in l)
52
+ if (typeof e == "string" && (e.includes(a) || e === a))
53
+ return l[a];
54
54
  return "unknown";
55
55
  }, u3 = {
56
56
  ".doc": "word",
@@ -138,12 +138,12 @@ const O = (t, e) => {
138
138
  ".txt": "txt",
139
139
  ".pdf": "pdf"
140
140
  }, L = (t) => {
141
- const e = t == null ? void 0 : t.toLocaleLowerCase(), o = e != null && e.startsWith(".") ? e : `.${e}`;
141
+ const n = t == null ? void 0 : t.toLocaleLowerCase(), o = n != null && n.startsWith(".") ? n : `.${n}`;
142
142
  return o && u3[o] || "unknow";
143
143
  }, h3 = (t) => {
144
- let e = "", o = ["doc", "docx"], s = ["xls", "xlsx"], n = ["ppt", "pptx"], i = ["pdf"];
145
- return o.includes(t) && (e = "word"), s.includes(t) && (e = "cell"), n.includes(t) && (e = "slide"), i.includes(t) && (e = "text-pdf"), e;
146
- }, p3 = /* @__PURE__ */ F({
144
+ let n = "", o = ["doc", "docx"], e = ["xls", "xlsx"], l = ["ppt", "pptx"], i = ["pdf"];
145
+ return o.includes(t) && (n = "word"), e.includes(t) && (n = "cell"), l.includes(t) && (n = "slide"), i.includes(t) && (n = "text-pdf"), n;
146
+ }, v3 = /* @__PURE__ */ z({
147
147
  __name: "IkPreviewFileDialog",
148
148
  props: /* @__PURE__ */ W({
149
149
  file: {
@@ -180,34 +180,34 @@ const O = (t, e) => {
180
180
  }),
181
181
  emits: ["update:show"],
182
182
  setup(t) {
183
- const e = t, o = G(t, "show"), s = m(() => ({
183
+ const n = t, o = G(t, "show"), e = m(() => ({
184
184
  name: "name",
185
185
  url: "url",
186
186
  suffix: "suffix",
187
187
  size: "fileSize",
188
- ...e.field
189
- })), n = V(null), i = V(null), a = Y({
188
+ ...n.field
189
+ })), l = R(null), i = R(null), s = Y({
190
190
  image: !1,
191
191
  office: !1,
192
192
  video: !1
193
- }), p = (l) => {
194
- var h, d, w, y, _, B, k;
193
+ }), h = (a) => {
194
+ var v, d, w, _, y, I, x;
195
195
  try {
196
- const f = ((h = l == null ? void 0 : l.response) == null ? void 0 : h.data) || l, I = f[s.value.url] || (f == null ? void 0 : f.id) || f.attachmentId, M = (d = f[s.value.suffix] || f.attachmentSuffix) == null ? void 0 : d.toLowerCase(), X = f[s.value.name] || (f == null ? void 0 : f.attachmentName) || (f == null ? void 0 : f.originName);
196
+ const f = ((v = a == null ? void 0 : a.response) == null ? void 0 : v.data) || a, M = f[e.value.url] || (f == null ? void 0 : f.id) || f.attachmentId, D = (d = f[e.value.suffix] || f.attachmentSuffix) == null ? void 0 : d.toLowerCase(), X = f[e.value.name] || (f == null ? void 0 : f.attachmentName) || (f == null ? void 0 : f.originName);
197
197
  if (i.value = {
198
- ...l,
199
- name: l[s.value.name],
200
- url: A(e.loadUrl, I)
201
- }, l && K(l, s.value) === "image") {
202
- a.image = !0;
198
+ ...a,
199
+ name: a[e.value.name],
200
+ url: A(n.loadUrl, M)
201
+ }, a && K(a, e.value) === "image") {
202
+ s.image = !0;
203
203
  return;
204
- } else if ((((w = e.onlyOfficeConfig) == null ? void 0 : w.accept) || e.onlyOfficeAccept).includes(M)) {
205
- a.office = !0, n.value = {
206
- ...e.onlyOfficeConfig,
204
+ } else if ((((w = n.onlyOfficeConfig) == null ? void 0 : w.accept) || n.onlyOfficeAccept).includes(D)) {
205
+ s.office = !0, l.value = {
206
+ ...n.onlyOfficeConfig,
207
207
  editorConfig: {
208
- ...((y = e.onlyOfficeConfig) == null ? void 0 : y.editorConfig) || {},
208
+ ...((_ = n.onlyOfficeConfig) == null ? void 0 : _.editorConfig) || {},
209
209
  customization: {
210
- ...((B = (_ = e.onlyOfficeConfig) == null ? void 0 : _.editorConfig) == null ? void 0 : B.customization) || {},
210
+ ...((I = (y = n.onlyOfficeConfig) == null ? void 0 : y.editorConfig) == null ? void 0 : I.customization) || {},
211
211
  review: {
212
212
  reviewDisplay: "final"
213
213
  }
@@ -216,11 +216,11 @@ const O = (t, e) => {
216
216
  document: {
217
217
  key: i3(),
218
218
  title: X,
219
- url: A(e.loadUrl, I),
220
- fileType: M,
221
- ...((k = e.onlyOfficeConfig) == null ? void 0 : k.document) || {}
219
+ url: A(n.loadUrl, M),
220
+ fileType: D,
221
+ ...((x = n.onlyOfficeConfig) == null ? void 0 : x.document) || {}
222
222
  },
223
- documentType: h3(M)
223
+ documentType: h3(D)
224
224
  };
225
225
  return;
226
226
  }
@@ -228,33 +228,33 @@ const O = (t, e) => {
228
228
  console.info("预览错误: ", f);
229
229
  }
230
230
  };
231
- Z([o, e.file], ([l, h]) => {
232
- l && J(() => {
233
- p(e.file);
231
+ Z([o, n.file], ([a, v]) => {
232
+ a && J(() => {
233
+ h(n.file);
234
234
  });
235
235
  });
236
- const v = () => {
237
- o.value = !1, a.office = !1, a.image = !1, a.video = !1;
236
+ const p = () => {
237
+ o.value = !1, s.office = !1, s.image = !1, s.video = !1;
238
238
  };
239
- return (l, h) => {
240
- var w, y;
239
+ return (a, v) => {
240
+ var w, _;
241
241
  const d = E("el-image-viewer");
242
242
  return o.value ? (r(), u(
243
243
  T,
244
244
  { key: 0 },
245
245
  [
246
- (w = i.value) != null && w.url && a.image ? (r(), R(d, {
246
+ (w = i.value) != null && w.url && s.image ? (r(), B(d, {
247
247
  key: 0,
248
- onClose: h[0] || (h[0] = (_) => {
249
- i.value = null, a.image = !1;
248
+ onClose: v[0] || (v[0] = (y) => {
249
+ i.value = null, s.image = !1;
250
250
  }),
251
251
  ref: "previewImgRef",
252
- "url-list": [(y = i.value) == null ? void 0 : y.url]
253
- }, null, 8, ["url-list"])) : C("v-if", !0),
254
- C(" 文档类 "),
255
- x(g(I6), {
256
- modelValue: a.office,
257
- "onUpdate:modelValue": h[1] || (h[1] = (_) => a.office = _),
252
+ "url-list": [(_ = i.value) == null ? void 0 : _.url]
253
+ }, null, 8, ["url-list"])) : V("v-if", !0),
254
+ V(" 文档类 "),
255
+ b(g(I6), {
256
+ modelValue: s.office,
257
+ "onUpdate:modelValue": v[1] || (v[1] = (y) => s.office = y),
258
258
  draggable: "",
259
259
  "no-footer": "",
260
260
  "no-header": "",
@@ -264,15 +264,15 @@ const O = (t, e) => {
264
264
  "close-on-click-modal": "",
265
265
  "close-on-press-escape": !1,
266
266
  "append-to-body": "",
267
- onClose: v,
267
+ onClose: p,
268
268
  "modal-class": "ik-only-preview-dialog"
269
269
  }, {
270
- default: S(() => {
271
- var _;
270
+ default: C(() => {
271
+ var y;
272
272
  return [
273
- x(g(A6), {
274
- "config-options": n.value,
275
- "document-server-url": ((_ = t.onlyOfficeConfig) == null ? void 0 : _.serverUrl) || t.onlyofficeServer
273
+ b(g(A6), {
274
+ "config-options": l.value,
275
+ "document-server-url": ((y = t.onlyOfficeConfig) == null ? void 0 : y.serverUrl) || t.onlyofficeServer
276
276
  }, null, 8, ["config-options", "document-server-url"])
277
277
  ];
278
278
  }),
@@ -282,11 +282,11 @@ const O = (t, e) => {
282
282
  ],
283
283
  64
284
284
  /* STABLE_FRAGMENT */
285
- )) : C("v-if", !0);
285
+ )) : V("v-if", !0);
286
286
  };
287
287
  }
288
288
  });
289
- const f3 = O(p3), v3 = {
289
+ const p3 = O(v3), f3 = {
290
290
  key: 0,
291
291
  t: "1686300059786",
292
292
  class: "icon",
@@ -326,7 +326,7 @@ const f3 = O(p3), v3 = {
326
326
  null,
327
327
  -1
328
328
  /* HOISTED */
329
- ), y3 = /* @__PURE__ */ c(
329
+ ), _3 = /* @__PURE__ */ c(
330
330
  "path",
331
331
  {
332
332
  d: "M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",
@@ -336,12 +336,12 @@ const f3 = O(p3), v3 = {
336
336
  null,
337
337
  -1
338
338
  /* HOISTED */
339
- ), _3 = [
339
+ ), y3 = [
340
340
  g3,
341
341
  m3,
342
342
  w3,
343
- y3
344
- ], k3 = {
343
+ _3
344
+ ], x3 = {
345
345
  key: 1,
346
346
  t: "1686301531714",
347
347
  class: "icon",
@@ -351,7 +351,7 @@ const f3 = O(p3), v3 = {
351
351
  "p-id": "9067",
352
352
  width: "200",
353
353
  height: "200"
354
- }, z3 = /* @__PURE__ */ c(
354
+ }, k3 = /* @__PURE__ */ c(
355
355
  "path",
356
356
  {
357
357
  d: "M409.6 0v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133334H409.6v68.266666h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133334s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333h68.266666c20.48 0 34.133333-13.653333 34.133334-34.133333V477.866667h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133334S532.48 409.6 512 409.6H477.866667V341.333333h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 273.066667 512 273.066667H477.866667V204.8h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 136.533333 512 136.533333H477.866667V0h204.8l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0h204.8z m0 682.666667h68.266667v68.266666H409.6v-68.266666z m-34.133333-68.266667c-20.48 0-34.133333 13.653333-34.133334 34.133333v136.533334c0 20.48 13.653333 34.133333 34.133334 34.133333h136.533333c20.48 0 34.133333-13.653333 34.133333-34.133333v-136.533334c0-20.48-13.653333-34.133333-34.133333-34.133333h-136.533333z",
@@ -361,7 +361,7 @@ const f3 = O(p3), v3 = {
361
361
  null,
362
362
  -1
363
363
  /* HOISTED */
364
- ), F3 = /* @__PURE__ */ c(
364
+ ), z3 = /* @__PURE__ */ c(
365
365
  "path",
366
366
  {
367
367
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -371,10 +371,10 @@ const f3 = O(p3), v3 = {
371
371
  null,
372
372
  -1
373
373
  /* HOISTED */
374
- ), b3 = [
375
- z3,
376
- F3
377
- ], x3 = {
374
+ ), F3 = [
375
+ k3,
376
+ z3
377
+ ], b3 = {
378
378
  key: 2,
379
379
  t: "1686300141125",
380
380
  class: "icon",
@@ -384,7 +384,7 @@ const f3 = O(p3), v3 = {
384
384
  "p-id": "8137",
385
385
  width: "200",
386
386
  height: "200"
387
- }, S3 = /* @__PURE__ */ c(
387
+ }, C3 = /* @__PURE__ */ c(
388
388
  "path",
389
389
  {
390
390
  d: "M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m204.8 546.133333V443.733333h204.8v136.533334H409.6V546.133333z m0 102.4h204.8c40.96 0 68.266667-27.306667 68.266667-68.266666v-136.533334c0-40.96-27.306667-68.266667-68.266667-68.266666H409.6c-40.96 0-68.266667 27.306667-68.266667 68.266666V819.2c0 20.48 13.653333 34.133333 34.133334 34.133333s34.133333-13.653333 34.133333-34.133333V648.533333z",
@@ -394,7 +394,7 @@ const f3 = O(p3), v3 = {
394
394
  null,
395
395
  -1
396
396
  /* HOISTED */
397
- ), C3 = /* @__PURE__ */ c(
397
+ ), S3 = /* @__PURE__ */ c(
398
398
  "path",
399
399
  {
400
400
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -405,8 +405,8 @@ const f3 = O(p3), v3 = {
405
405
  -1
406
406
  /* HOISTED */
407
407
  ), V3 = [
408
- S3,
409
- C3
408
+ C3,
409
+ S3
410
410
  ], R3 = {
411
411
  key: 3,
412
412
  t: "1686300157181",
@@ -738,7 +738,7 @@ const f3 = O(p3), v3 = {
738
738
  null,
739
739
  -1
740
740
  /* HOISTED */
741
- ), p6 = /* @__PURE__ */ c(
741
+ ), v6 = /* @__PURE__ */ c(
742
742
  "path",
743
743
  {
744
744
  d: "M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",
@@ -748,7 +748,7 @@ const f3 = O(p3), v3 = {
748
748
  null,
749
749
  -1
750
750
  /* HOISTED */
751
- ), f6 = /* @__PURE__ */ c(
751
+ ), p6 = /* @__PURE__ */ c(
752
752
  "path",
753
753
  {
754
754
  d: "M384 499.2c0-25.6 5.12-46.08 10.24-58.88 5.12-12.8 15.36-25.6 28.16-35.84 12.8-12.8 25.6-20.48 43.52-25.6 15.36-5.12 30.72-7.68 48.64-7.68 35.84 0 64 10.24 89.6 30.72C627.2 422.4 640 448 640 481.28c0 15.36-5.12 28.16-10.24 40.96s-17.92 28.16-38.4 46.08-28.16 30.72-35.84 38.4c-7.68 7.68-10.24 17.92-15.36 28.16-5.12 10.24-2.56 17.92-2.56 43.52h-51.2c0-25.6 2.56-38.4 5.12-51.2s7.68-23.04 15.36-33.28 15.36-23.04 33.28-40.96c17.92-17.92 30.72-30.72 35.84-38.4 5.12-7.68 10.24-20.48 10.24-38.4s-7.68-30.72-20.48-43.52-30.72-20.48-53.76-20.48c-51.2 0-76.8 35.84-76.8 87.04h-51.2z m153.6 281.6h-51.2v-51.2h51.2v51.2z",
@@ -758,11 +758,11 @@ const f3 = O(p3), v3 = {
758
758
  null,
759
759
  -1
760
760
  /* HOISTED */
761
- ), v6 = [
761
+ ), f6 = [
762
762
  h6,
763
- p6,
764
- f6
765
- ], g6 = /* @__PURE__ */ F({
763
+ v6,
764
+ p6
765
+ ], g6 = /* @__PURE__ */ z({
766
766
  __name: "FileIcon",
767
767
  props: {
768
768
  type: {
@@ -783,8 +783,8 @@ const f3 = O(p3), v3 = {
783
783
  }
784
784
  },
785
785
  setup(t) {
786
- const e = t, o = m(() => e.file ? K(e.file, e.fields) : e.type);
787
- return (s, n) => o.value === "image" ? (r(), u("svg", v3, _3)) : o.value === "zip" ? (r(), u("svg", k3, b3)) : o.value === "ppt" ? (r(), u("svg", x3, V3)) : o.value === "word" ? (r(), u("svg", R3, M3)) : o.value === "pdf" ? (r(), u("svg", D3, H3)) : o.value === "txt" ? (r(), u("svg", O3, T3)) : o.value === "audio" ? (r(), u("svg", P3, L3)) : o.value === "video" ? (r(), u("svg", N3, K3)) : o.value === "excel" ? (r(), u("svg", X3, Q3)) : o.value === "exe" ? (r(), u("svg", e6, s6)) : o.value === "json" ? (r(), u("svg", l6, d6)) : (r(), u("svg", u6, v6));
786
+ const n = t, o = m(() => n.file ? K(n.file, n.fields) : n.type);
787
+ return (e, l) => o.value === "image" ? (r(), u("svg", f3, y3)) : o.value === "zip" ? (r(), u("svg", x3, F3)) : o.value === "ppt" ? (r(), u("svg", b3, V3)) : o.value === "word" ? (r(), u("svg", R3, M3)) : o.value === "pdf" ? (r(), u("svg", D3, H3)) : o.value === "txt" ? (r(), u("svg", O3, T3)) : o.value === "audio" ? (r(), u("svg", P3, L3)) : o.value === "video" ? (r(), u("svg", N3, K3)) : o.value === "excel" ? (r(), u("svg", X3, Q3)) : o.value === "exe" ? (r(), u("svg", e6, s6)) : o.value === "json" ? (r(), u("svg", l6, d6)) : (r(), u("svg", u6, f6));
788
788
  }
789
789
  }), m6 = {
790
790
  key: 0,
@@ -793,11 +793,11 @@ const f3 = O(p3), v3 = {
793
793
  key: 1,
794
794
  class: "h-[1em] w-[1em]",
795
795
  "aria-hidden": "true"
796
- }, y6 = ["xlink:href"], _6 = ["src"], k6 = {
796
+ }, _6 = ["xlink:href"], y6 = ["src"], x6 = {
797
797
  key: 1,
798
798
  class: "h-[1em] w-[1em]",
799
799
  "aria-hidden": "true"
800
- }, z6 = ["xlink:href"], F6 = ["src"], b6 = /* @__PURE__ */ F({
800
+ }, k6 = ["xlink:href"], z6 = ["src"], F6 = /* @__PURE__ */ z({
801
801
  name: "IkSvgIcon",
802
802
  __name: "index",
803
803
  props: {
@@ -824,84 +824,87 @@ const f3 = O(p3), v3 = {
824
824
  tableIconType: { default: "icon" }
825
825
  },
826
826
  setup(t) {
827
- const e = t, o = m(() => {
828
- var n, i, a;
829
- return /^http?:\/\//.test(e.name) ? "img" : /i-[^:]+:[^:]+/.test(e.name) ? "unocss" : (n = e.name) != null && n.startsWith("iksig") ? "iksig" : (i = e.name) != null && i.includes(":") ? "iconify" : (a = e.name) != null && a.startsWith("iksvg") ? "svg" : "i";
830
- }), s = m(() => {
831
- const n = [];
832
- if (e.flip)
833
- switch (e.flip) {
827
+ const n = t, o = S("iconConfig"), e = m(() => ({
828
+ ...(o == null ? void 0 : o.value) || {},
829
+ ...n
830
+ })), l = m(() => {
831
+ const { name: s } = e.value;
832
+ return /^http?:\/\//.test(s) ? "img" : /i-[^:]+:[^:]+/.test(s) ? "unocss" : s != null && s.startsWith("iksig") ? "iksig" : s != null && s.includes(":") ? "iconify" : s != null && s.startsWith("iksvg") ? "svg" : "i";
833
+ }), i = m(() => {
834
+ const s = [];
835
+ if (e.value.flip)
836
+ switch (e.value.flip) {
834
837
  case "horizontal":
835
- n.push("rotateY(180deg)");
838
+ s.push("rotateY(180deg)");
836
839
  break;
837
840
  case "vertical":
838
- n.push("rotateX(180deg)");
841
+ s.push("rotateX(180deg)");
839
842
  break;
840
843
  case "both":
841
- n.push("rotateX(180deg)"), n.push("rotateY(180deg)");
844
+ s.push("rotateX(180deg)"), s.push("rotateY(180deg)");
842
845
  break;
843
846
  }
844
- e.rotate && n.push(`rotate(${e.rotate % 360}deg)`);
845
- const i = {
846
- ...e.color && { color: e.color },
847
- ...e.size && { fontSize: typeof e.size == "number" ? `${e.size}px` : e.size },
848
- ...n.length && { transform: n.join(" ") },
849
- padding: e.showBg || e.bg ? e.padding : 0,
850
- ...e.color && o.value !== "iksig" ? {
851
- "--ik-color-icon-dark": e.color,
852
- "--ik-color-icon-light": e.colorLight || s3.setOpacity(e.color, e.opacity)
847
+ e.value.rotate && s.push(`rotate(${e.value.rotate % 360}deg)`);
848
+ const h = {
849
+ ...e.value.color && { color: e.value.color },
850
+ ...e.value.size && { fontSize: typeof e.value.size == "number" ? `${e.value.size}px` : e.value.size },
851
+ ...s.length && { transform: s.join(" ") },
852
+ padding: e.value.showBg || e.value.bg ? e.value.padding : 0,
853
+ ...e.value.color && l.value !== "iksig" ? {
854
+ "--ik-color-icon-dark": e.value.color,
855
+ "--ik-color-icon-light": e.value.colorLight || s3.setOpacity(e.value.color, e.value.opacity)
853
856
  } : {}
854
857
  };
855
- return e.width && (i.width = i.height = typeof e.width == "number" ? `${e.width}px` : e.width), i;
858
+ return e.value.width && (h.width = h.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), h;
856
859
  });
857
- return (n, i) => {
858
- const a = E("el-tooltip"), p = E("el-button");
859
- return n.tableIconType === "icon" ? (r(), u("span", m6, [
860
- n.notip || !n.title ? (r(), u(
860
+ return (s, h) => {
861
+ const p = E("el-tooltip"), a = E("el-button");
862
+ return e.value.tableIconType === "icon" ? (r(), u("span", m6, [
863
+ e.value.notip || !e.value.title ? (r(), u(
861
864
  "i",
862
865
  {
863
866
  key: 0,
864
- class: b(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
865
- [n.name]: o.value === "unocss",
866
- "show-bg": n.showBg || n.bg,
867
- default: n.size === "default",
868
- small: n.size === "small",
869
- big: n.size === "big",
870
- warning: n.warning || e.type === "warning",
871
- primary: n.primary || e.type === "primary",
872
- success: n.success || e.type === "success",
873
- error: n.error || e.type === "error",
874
- active: n.active,
875
- disabled: n.disabled
867
+ class: F(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
868
+ [s.name]: l.value === "unocss",
869
+ "show-bg": e.value.showBg || e.value.bg,
870
+ default: e.value.size === "default",
871
+ small: e.value.size === "small",
872
+ big: e.value.size === "big",
873
+ warning: e.value.warning || e.value.type === "warning",
874
+ primary: e.value.primary || e.value.type === "primary",
875
+ success: s.success || e.value.type === "success",
876
+ error: e.value.error || e.value.type === "error",
877
+ active: e.value.active,
878
+ disabled: e.value.disabled
876
879
  }]),
877
- style: z(s.value)
880
+ style: k(i.value)
878
881
  },
879
882
  [
880
- C(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
881
- o.value === "iksig" ? (r(), u(
883
+ V(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
884
+ l.value === "iksig" ? (r(), u(
882
885
  "i",
883
886
  {
884
887
  key: 0,
885
- class: b(`iksig ${n.name}`),
886
- style: z(s.value)
888
+ class: F(`iksig ${e.value.name}`),
889
+ style: k(i.value)
887
890
  },
888
891
  null,
889
892
  6
890
893
  /* CLASS, STYLE */
891
- )) : o.value === "svg" ? (r(), u("svg", w6, [
894
+ )) : l.value === "svg" ? (r(), u("svg", w6, [
892
895
  c("use", {
893
- "xlink:href": `#${n.name}`
894
- }, null, 8, y6)
895
- ])) : o.value === "img" ? (r(), u("img", {
896
+ "xlink:href": `#${e.value.name}`
897
+ }, null, 8, _6)
898
+ ])) : l.value === "img" ? (r(), u("img", {
896
899
  key: 2,
897
- src: n.name,
900
+ src: e.value.name,
898
901
  class: "h-[1em] w-[1em]"
899
- }, null, 8, _6)) : (r(), u(
902
+ }, null, 8, y6)) : (r(), u(
900
903
  "i",
901
904
  {
902
905
  key: 3,
903
- class: b(n.name),
904
- style: z(s.value)
906
+ class: F(e.value.name),
907
+ style: k(i.value)
905
908
  },
906
909
  null,
907
910
  6
@@ -910,54 +913,54 @@ const f3 = O(p3), v3 = {
910
913
  ],
911
914
  6
912
915
  /* CLASS, STYLE */
913
- )) : (r(), R(a, {
916
+ )) : (r(), B(p, {
914
917
  key: 1,
915
- content: n.title,
918
+ content: e.value.title,
916
919
  placement: "top"
917
920
  }, {
918
- default: S(() => [
921
+ default: C(() => [
919
922
  c(
920
923
  "i",
921
924
  {
922
- class: b(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
923
- [n.name]: o.value === "unocss",
924
- "show-bg": n.showBg || n.bg,
925
- default: n.size === "default",
926
- small: n.size === "small",
927
- big: n.size === "big",
928
- warning: n.warning || e.type === "warning",
929
- primary: n.primary || e.type === "primary",
930
- success: n.success || e.type === "success",
931
- error: n.error || e.type === "error",
932
- active: n.active
925
+ class: F(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
926
+ [s.name]: l.value === "unocss",
927
+ "show-bg": e.value.showBg || e.value.bg,
928
+ default: e.value.size === "default",
929
+ small: e.value.size === "small",
930
+ big: e.value.size === "big",
931
+ warning: e.value.warning || e.value.type === "warning",
932
+ primary: s.primary || e.value.type === "primary",
933
+ success: s.success || e.value.type === "success",
934
+ error: e.value.error || e.value.type === "error",
935
+ active: e.value.active
933
936
  }]),
934
- style: z(s.value)
937
+ style: k(i.value)
935
938
  },
936
939
  [
937
- o.value === "iksig" ? (r(), u(
940
+ l.value === "iksig" ? (r(), u(
938
941
  "i",
939
942
  {
940
943
  key: 0,
941
- class: b(`iksig ${n.name}`),
942
- style: z(s.value)
944
+ class: F(`iksig ${e.value.name}`),
945
+ style: k(i.value)
943
946
  },
944
947
  null,
945
948
  6
946
949
  /* CLASS, STYLE */
947
- )) : o.value === "svg" ? (r(), u("svg", k6, [
950
+ )) : l.value === "svg" ? (r(), u("svg", x6, [
948
951
  c("use", {
949
- "xlink:href": `#${n.name}`
950
- }, null, 8, z6)
951
- ])) : o.value === "img" ? (r(), u("img", {
952
+ "xlink:href": `#${e.value.name}`
953
+ }, null, 8, k6)
954
+ ])) : l.value === "img" ? (r(), u("img", {
952
955
  key: 2,
953
- src: n.name,
956
+ src: e.value.name,
954
957
  class: "h-[1em] w-[1em]"
955
- }, null, 8, F6)) : (r(), u(
958
+ }, null, 8, z6)) : (r(), u(
956
959
  "i",
957
960
  {
958
961
  key: 3,
959
- class: b(n.name),
960
- style: z(s.value)
962
+ class: F(e.value.name),
963
+ style: k(i.value)
961
964
  },
962
965
  null,
963
966
  6
@@ -971,13 +974,13 @@ const f3 = O(p3), v3 = {
971
974
  _: 1
972
975
  /* STABLE */
973
976
  }, 8, ["content"]))
974
- ])) : (r(), R(p, {
977
+ ])) : (r(), B(a, {
975
978
  key: 1,
976
- type: ["warning", "error"].includes(n.type) ? "danger" : ""
979
+ type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
977
980
  }, {
978
- default: S(() => [
981
+ default: C(() => [
979
982
  P(
980
- q(n.title),
983
+ q(e.value.title),
981
984
  1
982
985
  /* TEXT */
983
986
  )
@@ -988,10 +991,10 @@ const f3 = O(p3), v3 = {
988
991
  };
989
992
  }
990
993
  });
991
- const x6 = /* @__PURE__ */ U(b6, [["__scopeId", "data-v-7d95dbf5"]]), H = O(x6), S6 = {
994
+ const b6 = /* @__PURE__ */ U(F6, [["__scopeId", "data-v-1be337e4"]]), H = O(b6), C6 = {
992
995
  key: 0,
993
996
  class: "exit-main-page-maximize"
994
- }, C6 = /* @__PURE__ */ F({
997
+ }, S6 = /* @__PURE__ */ z({
995
998
  __name: "CloseIcon",
996
999
  props: {
997
1000
  showBg: {
@@ -1004,15 +1007,15 @@ const x6 = /* @__PURE__ */ U(b6, [["__scopeId", "data-v-7d95dbf5"]]), H = O(x6),
1004
1007
  }
1005
1008
  },
1006
1009
  setup(t) {
1007
- return (e, o) => (r(), u("div", null, [
1008
- t.showBg && t.fullscreen ? (r(), u("div", S6, [
1009
- x(g(H), {
1010
+ return (n, o) => (r(), u("div", null, [
1011
+ t.showBg && t.fullscreen ? (r(), u("div", C6, [
1012
+ b(g(H), {
1010
1013
  name: "iksvg_guanbidanchuang",
1011
1014
  title: "关闭",
1012
1015
  size: 20,
1013
1016
  error: ""
1014
1017
  })
1015
- ])) : (r(), R(g(H), {
1018
+ ])) : (r(), B(g(H), {
1016
1019
  key: 1,
1017
1020
  error: "",
1018
1021
  name: "iksvg_guanbidanchuang",
@@ -1022,7 +1025,7 @@ const x6 = /* @__PURE__ */ U(b6, [["__scopeId", "data-v-7d95dbf5"]]), H = O(x6),
1022
1025
  ]));
1023
1026
  }
1024
1027
  });
1025
- const V6 = /* @__PURE__ */ U(C6, [["__scopeId", "data-v-79f49df8"]]), R6 = { class: "base-header" }, B6 = /* @__PURE__ */ F({
1028
+ const V6 = /* @__PURE__ */ U(S6, [["__scopeId", "data-v-79f49df8"]]), R6 = { class: "base-header" }, B6 = /* @__PURE__ */ z({
1026
1029
  __name: "IkBaseDialog",
1027
1030
  props: /* @__PURE__ */ W({
1028
1031
  title: { default: "" },
@@ -1043,64 +1046,64 @@ const V6 = /* @__PURE__ */ U(C6, [["__scopeId", "data-v-79f49df8"]]), R6 = { cla
1043
1046
  }),
1044
1047
  emits: ["update:modelValue"],
1045
1048
  setup(t) {
1046
- const e = t, o = G(t, "modelValue"), s = V(e.fullscreen), n = () => {
1047
- s.value = !s.value;
1048
- }, i = F({
1049
+ const n = t, o = G(t, "modelValue"), e = R(n.fullscreen), l = () => {
1050
+ e.value = !e.value;
1051
+ }, i = z({
1049
1052
  setup() {
1050
1053
  return () => Q(V6, {
1051
- showBg: e.showCloseBg,
1052
- fullscreen: e.fullscreen
1054
+ showBg: n.showCloseBg,
1055
+ fullscreen: n.fullscreen
1053
1056
  });
1054
1057
  }
1055
1058
  });
1056
- return (a, p) => {
1057
- const v = E("el-dialog");
1058
- return r(), R(v, e3({
1059
+ return (s, h) => {
1060
+ const p = E("el-dialog");
1061
+ return r(), B(p, e3({
1059
1062
  modelValue: o.value,
1060
- "onUpdate:modelValue": p[0] || (p[0] = (l) => o.value = l)
1061
- }, a.$attrs, {
1063
+ "onUpdate:modelValue": h[0] || (h[0] = (a) => o.value = a)
1064
+ }, s.$attrs, {
1062
1065
  "close-icon": g(i),
1063
- class: `ik-base-dialog ${a.noHeader ? "no-header" : ""} ${a.noFooter ? "no-footer" : ""}`,
1064
- fullscreen: s.value,
1066
+ class: `ik-base-dialog ${s.noHeader ? "no-header" : ""} ${s.noFooter ? "no-footer" : ""}`,
1067
+ fullscreen: e.value,
1065
1068
  "modal-class": "baseDialog"
1066
1069
  }), t3({
1067
- icon: S(() => [
1068
- $(a.$slots, "title", {}, () => [
1070
+ icon: C(() => [
1071
+ $(s.$slots, "title", {}, () => [
1069
1072
  P(
1070
- q(a.title),
1073
+ q(s.title),
1071
1074
  1
1072
1075
  /* TEXT */
1073
1076
  )
1074
1077
  ])
1075
1078
  ]),
1076
- header: S(() => [
1079
+ header: C(() => [
1077
1080
  c("div", R6, [
1078
- $(a.$slots, "header", {}, () => [
1081
+ $(s.$slots, "header", {}, () => [
1079
1082
  P(
1080
- q(a.title),
1083
+ q(s.title),
1081
1084
  1
1082
1085
  /* TEXT */
1083
1086
  )
1084
1087
  ])
1085
1088
  ]),
1086
- a.$attrs.showClose ? (r(), R(g(H), {
1089
+ s.$attrs.showClose ? (r(), B(g(H), {
1087
1090
  key: 0,
1088
- onClick: n,
1089
- name: s.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
1091
+ onClick: l,
1092
+ name: e.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
1090
1093
  class: "absolute! top-[18px] right-[50px] icon-dialog-full",
1091
- title: s.value ? "退出全屏" : "全屏"
1092
- }, null, 8, ["name", "title"])) : C("v-if", !0)
1094
+ title: e.value ? "退出全屏" : "全屏"
1095
+ }, null, 8, ["name", "title"])) : V("v-if", !0)
1093
1096
  ]),
1094
- default: S(() => [
1095
- $(a.$slots, "default")
1097
+ default: C(() => [
1098
+ $(s.$slots, "default")
1096
1099
  ]),
1097
1100
  _: 2
1098
1101
  /* DYNAMIC */
1099
1102
  }, [
1100
- a.$slots.footer ? {
1103
+ s.$slots.footer ? {
1101
1104
  name: "footer",
1102
- fn: S(() => [
1103
- $(a.$slots, "footer")
1105
+ fn: C(() => [
1106
+ $(s.$slots, "footer")
1104
1107
  ]),
1105
1108
  key: "0"
1106
1109
  } : void 0
@@ -1109,134 +1112,134 @@ const V6 = /* @__PURE__ */ U(C6, [["__scopeId", "data-v-79f49df8"]]), R6 = { cla
1109
1112
  }
1110
1113
  });
1111
1114
  const I6 = O(B6);
1112
- function M6(t, e, o, s) {
1113
- function n(i) {
1114
- return i instanceof o ? i : new o(function(a) {
1115
- a(i);
1115
+ function M6(t, n, o, e) {
1116
+ function l(i) {
1117
+ return i instanceof o ? i : new o(function(s) {
1118
+ s(i);
1116
1119
  });
1117
1120
  }
1118
- return new (o || (o = Promise))(function(i, a) {
1119
- function p(h) {
1121
+ return new (o || (o = Promise))(function(i, s) {
1122
+ function h(v) {
1120
1123
  try {
1121
- l(s.next(h));
1124
+ a(e.next(v));
1122
1125
  } catch (d) {
1123
- a(d);
1126
+ s(d);
1124
1127
  }
1125
1128
  }
1126
- function v(h) {
1129
+ function p(v) {
1127
1130
  try {
1128
- l(s.throw(h));
1131
+ a(e.throw(v));
1129
1132
  } catch (d) {
1130
- a(d);
1133
+ s(d);
1131
1134
  }
1132
1135
  }
1133
- function l(h) {
1134
- h.done ? i(h.value) : n(h.value).then(p, v);
1136
+ function a(v) {
1137
+ v.done ? i(v.value) : l(v.value).then(h, p);
1135
1138
  }
1136
- l((s = s.apply(t, e || [])).next());
1139
+ a((e = e.apply(t, n || [])).next());
1137
1140
  });
1138
1141
  }
1139
- function D6(t, e) {
1142
+ function D6(t, n) {
1140
1143
  var o = { label: 0, sent: function() {
1141
1144
  if (i[0] & 1)
1142
1145
  throw i[1];
1143
1146
  return i[1];
1144
- }, trys: [], ops: [] }, s, n, i, a;
1145
- return a = { next: p(0), throw: p(1), return: p(2) }, typeof Symbol == "function" && (a[Symbol.iterator] = function() {
1147
+ }, trys: [], ops: [] }, e, l, i, s;
1148
+ return s = { next: h(0), throw: h(1), return: h(2) }, typeof Symbol == "function" && (s[Symbol.iterator] = function() {
1146
1149
  return this;
1147
- }), a;
1148
- function p(l) {
1149
- return function(h) {
1150
- return v([l, h]);
1150
+ }), s;
1151
+ function h(a) {
1152
+ return function(v) {
1153
+ return p([a, v]);
1151
1154
  };
1152
1155
  }
1153
- function v(l) {
1154
- if (s)
1156
+ function p(a) {
1157
+ if (e)
1155
1158
  throw new TypeError("Generator is already executing.");
1156
- for (; a && (a = 0, l[0] && (o = 0)), o; )
1159
+ for (; s && (s = 0, a[0] && (o = 0)), o; )
1157
1160
  try {
1158
- if (s = 1, n && (i = l[0] & 2 ? n.return : l[0] ? n.throw || ((i = n.return) && i.call(n), 0) : n.next) && !(i = i.call(n, l[1])).done)
1161
+ if (e = 1, l && (i = a[0] & 2 ? l.return : a[0] ? l.throw || ((i = l.return) && i.call(l), 0) : l.next) && !(i = i.call(l, a[1])).done)
1159
1162
  return i;
1160
- switch (n = 0, i && (l = [l[0] & 2, i.value]), l[0]) {
1163
+ switch (l = 0, i && (a = [a[0] & 2, i.value]), a[0]) {
1161
1164
  case 0:
1162
1165
  case 1:
1163
- i = l;
1166
+ i = a;
1164
1167
  break;
1165
1168
  case 4:
1166
- return o.label++, { value: l[1], done: !1 };
1169
+ return o.label++, { value: a[1], done: !1 };
1167
1170
  case 5:
1168
- o.label++, n = l[1], l = [0];
1171
+ o.label++, l = a[1], a = [0];
1169
1172
  continue;
1170
1173
  case 7:
1171
- l = o.ops.pop(), o.trys.pop();
1174
+ a = o.ops.pop(), o.trys.pop();
1172
1175
  continue;
1173
1176
  default:
1174
- if (i = o.trys, !(i = i.length > 0 && i[i.length - 1]) && (l[0] === 6 || l[0] === 2)) {
1177
+ if (i = o.trys, !(i = i.length > 0 && i[i.length - 1]) && (a[0] === 6 || a[0] === 2)) {
1175
1178
  o = 0;
1176
1179
  continue;
1177
1180
  }
1178
- if (l[0] === 3 && (!i || l[1] > i[0] && l[1] < i[3])) {
1179
- o.label = l[1];
1181
+ if (a[0] === 3 && (!i || a[1] > i[0] && a[1] < i[3])) {
1182
+ o.label = a[1];
1180
1183
  break;
1181
1184
  }
1182
- if (l[0] === 6 && o.label < i[1]) {
1183
- o.label = i[1], i = l;
1185
+ if (a[0] === 6 && o.label < i[1]) {
1186
+ o.label = i[1], i = a;
1184
1187
  break;
1185
1188
  }
1186
1189
  if (i && o.label < i[2]) {
1187
- o.label = i[2], o.ops.push(l);
1190
+ o.label = i[2], o.ops.push(a);
1188
1191
  break;
1189
1192
  }
1190
1193
  i[2] && o.ops.pop(), o.trys.pop();
1191
1194
  continue;
1192
1195
  }
1193
- l = e.call(t, o);
1194
- } catch (h) {
1195
- l = [6, h], n = 0;
1196
+ a = n.call(t, o);
1197
+ } catch (v) {
1198
+ a = [6, v], l = 0;
1196
1199
  } finally {
1197
- s = i = 0;
1200
+ e = i = 0;
1198
1201
  }
1199
- if (l[0] & 5)
1200
- throw l[1];
1201
- return { value: l[0] ? l[1] : void 0, done: !0 };
1202
+ if (a[0] & 5)
1203
+ throw a[1];
1204
+ return { value: a[0] ? a[1] : void 0, done: !0 };
1202
1205
  }
1203
1206
  }
1204
- var $6 = function(t, e) {
1207
+ var $6 = function(t, n) {
1205
1208
  return M6(void 0, void 0, void 0, function() {
1206
1209
  return D6(this, function(o) {
1207
- return [2, new Promise(function(s, n) {
1210
+ return [2, new Promise(function(e, l) {
1208
1211
  try {
1209
1212
  if (window.DocsAPI)
1210
- return s(null);
1211
- var i = document.getElementById(e);
1213
+ return e(null);
1214
+ var i = document.getElementById(n);
1212
1215
  if (i)
1213
- var a = setInterval(function() {
1214
- var v = i.getAttribute("loading");
1215
- if (!v) {
1216
- if (clearInterval(a), window.DocsAPI)
1217
- return s(null);
1218
- var l = N(e, t, s, n);
1219
- i.remove(), document.body.appendChild(l);
1216
+ var s = setInterval(function() {
1217
+ var p = i.getAttribute("loading");
1218
+ if (!p) {
1219
+ if (clearInterval(s), window.DocsAPI)
1220
+ return e(null);
1221
+ var a = N(n, t, e, l);
1222
+ i.remove(), document.body.appendChild(a);
1220
1223
  }
1221
1224
  }, 500);
1222
1225
  else {
1223
- var p = N(e, t, s, n);
1224
- document.body.appendChild(p);
1226
+ var h = N(n, t, e, l);
1227
+ document.body.appendChild(h);
1225
1228
  }
1226
- } catch (v) {
1227
- console.error(v);
1229
+ } catch (p) {
1230
+ console.error(p);
1228
1231
  }
1229
1232
  })];
1230
1233
  });
1231
1234
  });
1232
- }, N = function(t, e, o, s) {
1233
- var n = document.createElement("script");
1234
- return n.id = t, n.type = "text/javascript", n.src = e, n.async = !0, n.onload = function() {
1235
- n.removeAttribute("loading"), o(null);
1236
- }, n.onerror = function(i) {
1237
- n.removeAttribute("loading"), s(i);
1238
- }, n.setAttribute("loading", ""), n;
1239
- }, j = F({
1235
+ }, N = function(t, n, o, e) {
1236
+ var l = document.createElement("script");
1237
+ return l.id = t, l.type = "text/javascript", l.src = n, l.async = !0, l.onload = function() {
1238
+ l.removeAttribute("loading"), o(null);
1239
+ }, l.onerror = function(i) {
1240
+ l.removeAttribute("loading"), e(i);
1241
+ }, l.setAttribute("loading", ""), l;
1242
+ }, j = z({
1240
1243
  name: "DocumentEditor",
1241
1244
  props: {
1242
1245
  id: {
@@ -1288,9 +1291,9 @@ var $6 = function(t, e) {
1288
1291
  events_onRequestSelectDocument: Function
1289
1292
  },
1290
1293
  mounted: function() {
1291
- var t = this, e = this.documentServerUrl;
1292
- e.endsWith("/") || (e += "/");
1293
- var o = "".concat(e, "web-apps/apps/api/documents/api.js");
1294
+ var t = this, n = this.documentServerUrl;
1295
+ n.endsWith("/") || (n += "/");
1296
+ var o = "".concat(n, "web-apps/apps/api/documents/api.js");
1294
1297
  $6(o, "onlyoffice-api-script").then(function() {
1295
1298
  return t.onLoad();
1296
1299
  }).catch(function() {
@@ -1298,49 +1301,49 @@ var $6 = function(t, e) {
1298
1301
  });
1299
1302
  },
1300
1303
  unmounted: function() {
1301
- var t, e = this.id || "";
1302
- !((t = window == null ? void 0 : window.DocEditor) === null || t === void 0) && t.instances[e] && (window.DocEditor.instances[e].destroyEditor(), window.DocEditor.instances[e] = void 0);
1304
+ var t, n = this.id || "";
1305
+ !((t = window == null ? void 0 : window.DocEditor) === null || t === void 0) && t.instances[n] && (window.DocEditor.instances[n].destroyEditor(), window.DocEditor.instances[n] = void 0);
1303
1306
  },
1304
1307
  watch: {
1305
1308
  config: {
1306
- handler: function(t, e) {
1309
+ handler: function(t, n) {
1307
1310
  this.onChangeProps();
1308
1311
  },
1309
1312
  deep: !0
1310
1313
  },
1311
- document_fileType: function(t, e) {
1314
+ document_fileType: function(t, n) {
1312
1315
  this.onChangeProps();
1313
1316
  },
1314
- document_title: function(t, e) {
1317
+ document_title: function(t, n) {
1315
1318
  this.onChangeProps();
1316
1319
  },
1317
- documentType: function(t, e) {
1320
+ documentType: function(t, n) {
1318
1321
  this.onChangeProps();
1319
1322
  },
1320
- editorConfig_lang: function(t, e) {
1323
+ editorConfig_lang: function(t, n) {
1321
1324
  this.onChangeProps();
1322
1325
  },
1323
- height: function(t, e) {
1326
+ height: function(t, n) {
1324
1327
  this.onChangeProps();
1325
1328
  },
1326
- type: function(t, e) {
1329
+ type: function(t, n) {
1327
1330
  this.onChangeProps();
1328
1331
  },
1329
- width: function(t, e) {
1332
+ width: function(t, n) {
1330
1333
  this.onChangeProps();
1331
1334
  }
1332
1335
  },
1333
1336
  methods: {
1334
1337
  onLoad: function() {
1335
- var t, e;
1338
+ var t, n;
1336
1339
  try {
1337
1340
  var o = this.id || "";
1338
1341
  if (window.DocsAPI || this.onError(-3), !((t = window == null ? void 0 : window.DocEditor) === null || t === void 0) && t.instances[o]) {
1339
1342
  console.log("Skip loading. Instance already exists", o);
1340
1343
  return;
1341
1344
  }
1342
- !((e = window == null ? void 0 : window.DocEditor) === null || e === void 0) && e.instances || (window.DocEditor = { instances: {} });
1343
- var s = Object.assign({
1345
+ !((n = window == null ? void 0 : window.DocEditor) === null || n === void 0) && n.instances || (window.DocEditor = { instances: {} });
1346
+ var e = Object.assign({
1344
1347
  document: {
1345
1348
  fileType: this.document_fileType,
1346
1349
  title: this.document_title
@@ -1375,43 +1378,43 @@ var $6 = function(t, e) {
1375
1378
  height: this.height,
1376
1379
  type: this.type,
1377
1380
  width: this.width
1378
- }, this.config || {}), n = window.DocsAPI.DocEditor(o, s);
1379
- window.DocEditor.instances[o] = n;
1381
+ }, this.config || {}), l = window.DocsAPI.DocEditor(o, e);
1382
+ window.DocEditor.instances[o] = l;
1380
1383
  } catch (i) {
1381
1384
  console.error(i), this.onError(-1);
1382
1385
  }
1383
1386
  },
1384
1387
  onError: function(t) {
1385
- var e;
1388
+ var n;
1386
1389
  switch (t) {
1387
1390
  case -2:
1388
- e = "Error load DocsAPI from " + this.documentServerUrl;
1391
+ n = "Error load DocsAPI from " + this.documentServerUrl;
1389
1392
  break;
1390
1393
  case -3:
1391
- e = "DocsAPI is not defined";
1394
+ n = "DocsAPI is not defined";
1392
1395
  break;
1393
1396
  default:
1394
- e = "Unknown error loading component", t = -1;
1397
+ n = "Unknown error loading component", t = -1;
1395
1398
  }
1396
- typeof this.onLoadComponentError > "u" ? console.error(e) : this.onLoadComponentError(t, e);
1399
+ typeof this.onLoadComponentError > "u" ? console.error(n) : this.onLoadComponentError(t, n);
1397
1400
  },
1398
1401
  onAppReady: function() {
1399
1402
  var t = this.id || "";
1400
1403
  this.events_onAppReady(window.DocEditor.instances[t]);
1401
1404
  },
1402
1405
  onChangeProps: function() {
1403
- var t, e = this.id || "";
1404
- !((t = window == null ? void 0 : window.DocEditor) === null || t === void 0) && t.instances[e] && (window.DocEditor.instances[e].destroyEditor(), window.DocEditor.instances[e] = void 0, console.log("Important props have been changed. Load new Editor."), this.onLoad());
1406
+ var t, n = this.id || "";
1407
+ !((t = window == null ? void 0 : window.DocEditor) === null || t === void 0) && t.instances[n] && (window.DocEditor.instances[n].destroyEditor(), window.DocEditor.instances[n] = void 0, console.log("Important props have been changed. Load new Editor."), this.onLoad());
1405
1408
  }
1406
1409
  }
1407
1410
  });
1408
1411
  const q6 = ["id"];
1409
- function H6(t, e, o, s, n, i) {
1412
+ function H6(t, n, o, e, l, i) {
1410
1413
  return r(), u("div", { id: t.id }, null, 8, q6);
1411
1414
  }
1412
1415
  j.render = H6;
1413
1416
  j.__file = "src/components/DocumentEditor.vue";
1414
- const O6 = /* @__PURE__ */ F({
1417
+ const O6 = /* @__PURE__ */ z({
1415
1418
  __name: "IkOnlyOffice",
1416
1419
  props: {
1417
1420
  // 文件服务器的服务的地址
@@ -1432,26 +1435,26 @@ const O6 = /* @__PURE__ */ F({
1432
1435
  }
1433
1436
  },
1434
1437
  setup(t) {
1435
- const e = t, o = V({
1438
+ const n = t, o = R({
1436
1439
  width: "100%",
1437
1440
  height: "100%",
1438
- ...e.configOptions || {},
1439
- ...e.configOptions
1440
- }), s = () => {
1441
- console.info("文档加载完成", e.configOptions);
1441
+ ...n.configOptions || {},
1442
+ ...n.configOptions
1443
+ }), e = () => {
1444
+ console.info("文档加载完成", n.configOptions);
1442
1445
  };
1443
- return (n, i) => (r(), u(
1446
+ return (l, i) => (r(), u(
1444
1447
  "div",
1445
1448
  {
1446
- style: z({ height: e.officeHeight })
1449
+ style: k({ height: n.officeHeight })
1447
1450
  },
1448
1451
  [
1449
- x(g(j), {
1452
+ b(g(j), {
1450
1453
  id: `${(/* @__PURE__ */ new Date()).getTime()}`,
1451
1454
  ref: "editorRef",
1452
1455
  "document-server-url": t.documentServerUrl,
1453
1456
  config: o.value,
1454
- events_onDocumentReady: s
1457
+ events_onDocumentReady: e
1455
1458
  }, null, 8, ["id", "document-server-url", "config"])
1456
1459
  ],
1457
1460
  4
@@ -1459,7 +1462,7 @@ const O6 = /* @__PURE__ */ F({
1459
1462
  ));
1460
1463
  }
1461
1464
  });
1462
- const E6 = /* @__PURE__ */ U(O6, [["__scopeId", "data-v-98d51ef9"]]), A6 = O(E6), T6 = ["onClick"], P6 = { class: "text" }, U6 = { class: "fileName" }, j6 = { class: "size" }, L6 = /* @__PURE__ */ F({
1465
+ const E6 = /* @__PURE__ */ U(O6, [["__scopeId", "data-v-98d51ef9"]]), A6 = O(E6), T6 = ["onClick"], P6 = { class: "text" }, U6 = { class: "fileName" }, j6 = { class: "size" }, L6 = /* @__PURE__ */ z({
1463
1466
  __name: "IkPreviewFile",
1464
1467
  props: {
1465
1468
  list: {
@@ -1529,80 +1532,80 @@ const E6 = /* @__PURE__ */ U(O6, [["__scopeId", "data-v-98d51ef9"]]), A6 = O(E6)
1529
1532
  }
1530
1533
  },
1531
1534
  setup(t) {
1532
- const e = t, { cLoadUrl: o, cOnlyofficeConfig: s } = d3(e), n = m(() => ({
1535
+ const n = t, { cLoadUrl: o, cOnlyofficeConfig: e } = d3(n), l = m(() => ({
1533
1536
  name: "name",
1534
1537
  url: "url",
1535
1538
  suffix: "suffix",
1536
1539
  size: "size",
1537
- ...e.field
1538
- })), i = V({}), a = V(!1), p = (d) => {
1539
- var w, y;
1540
+ ...n.field
1541
+ })), i = R({}), s = R(!1), h = (d) => {
1542
+ var w, _;
1540
1543
  i.value = {
1541
1544
  ...d,
1542
1545
  name: d.name,
1543
1546
  url: A(
1544
1547
  o.value,
1545
- d.url || ((y = (w = d == null ? void 0 : d.response) == null ? void 0 : w.data) == null ? void 0 : y.id) || (d == null ? void 0 : d.id)
1548
+ d.url || ((_ = (w = d == null ? void 0 : d.response) == null ? void 0 : w.data) == null ? void 0 : _.id) || (d == null ? void 0 : d.id)
1546
1549
  )
1547
- }, a.value = !0;
1548
- }, v = (d) => {
1550
+ }, s.value = !0;
1551
+ }, p = (d) => {
1549
1552
  a3.downloadFile(
1550
1553
  A(
1551
1554
  o.value,
1552
- d[n.value.url] || d.attachmentId || d.id
1555
+ d[l.value.url] || d.attachmentId || d.id
1553
1556
  ),
1554
- d[n.value.name] || d.attachmentName
1557
+ d[l.value.name] || d.attachmentName
1555
1558
  );
1556
- }, l = m(() => l3.isNumber(e.width) ? `${e.width}px` : e.width), h = m(() => e.list.map((d) => ({
1559
+ }, a = m(() => l3.isNumber(n.width) ? `${n.width}px` : n.width), v = m(() => n.list.map((d) => ({
1557
1560
  ...d,
1558
- name: d[n.value.name] || d.attachmentName,
1559
- size: d[n.value.size] || d.fileSize || d.attachmentSize,
1560
- suffix: d[n.value.suffix] || d.attachmentSuffix
1561
+ name: d[l.value.name] || d.attachmentName,
1562
+ size: d[l.value.size] || d.fileSize || d.attachmentSize,
1563
+ suffix: d[l.value.suffix] || d.attachmentSuffix
1561
1564
  })));
1562
1565
  return (d, w) => {
1563
- var y, _, B;
1566
+ var _, y, I;
1564
1567
  return r(), u(
1565
1568
  T,
1566
1569
  null,
1567
1570
  [
1568
- (y = t.list) != null && y.length ? (r(!0), u(
1571
+ (_ = t.list) != null && _.length ? (r(!0), u(
1569
1572
  T,
1570
1573
  { key: 0 },
1571
- n3(h.value, (k, f) => {
1572
- var I;
1574
+ n3(v.value, (x, f) => {
1575
+ var M;
1573
1576
  return r(), u(
1574
1577
  "div",
1575
1578
  {
1576
- class: b(["iking-privew-annex", { "is-bg": t.showBg }]),
1579
+ class: F(["iking-privew-annex", { "is-bg": t.showBg }]),
1577
1580
  key: f,
1578
- style: z({
1579
- marginBottom: f == ((I = t.list) == null ? void 0 : I.length) - 1 ? "0" : "10px",
1580
- width: l.value
1581
+ style: k({
1582
+ marginBottom: f == ((M = t.list) == null ? void 0 : M.length) - 1 ? "0" : "10px",
1583
+ width: a.value
1581
1584
  })
1582
1585
  },
1583
1586
  [
1584
1587
  c("div", {
1585
1588
  class: "file-card",
1586
- onClick: (M) => p(k)
1589
+ onClick: (D) => h(x)
1587
1590
  }, [
1588
- x(g6, {
1589
- file: k,
1590
- style: z({ height: `${t.iconSize}px` }),
1591
+ b(g6, {
1592
+ file: x,
1593
+ style: k({ height: `${t.iconSize}px` }),
1591
1594
  class: "ikui-w-auto",
1592
- fields: n.value
1595
+ fields: l.value
1593
1596
  }, null, 8, ["file", "style", "fields"]),
1594
1597
  c("div", P6, [
1595
1598
  c(
1596
1599
  "div",
1597
1600
  U6,
1598
- q(k.name),
1601
+ q(x.name),
1599
1602
  1
1600
1603
  /* TEXT */
1601
1604
  ),
1602
1605
  c(
1603
1606
  "div",
1604
1607
  j6,
1605
- q(g(c3)(k.size)),
1608
+ q(g(c3)(x.size)),
1606
1609
  1
1607
1610
  /* TEXT */
1608
1611
  )
@@ -1610,22 +1613,22 @@ const E6 = /* @__PURE__ */ U(O6, [["__scopeId", "data-v-98d51ef9"]]), A6 = O(E6)
1610
1613
  c(
1611
1614
  "div",
1612
1615
  {
1613
- class: b(["flex flex-center", { "hover-show": t.iconHoverShow }])
1616
+ class: F(["flex flex-center", { "hover-show": t.iconHoverShow }])
1614
1617
  },
1615
1618
  [
1616
- x(g(H), {
1619
+ b(g(H), {
1617
1620
  name: "iksvg_daochu",
1618
- onClick: o3((M) => v(k), ["stop"]),
1621
+ onClick: o3((D) => p(x), ["stop"]),
1619
1622
  bg: t.showBg,
1620
1623
  size: t.showBg ? "default" : 20
1621
1624
  }, null, 8, ["onClick", "bg", "size"]),
1622
- x(g(H), {
1625
+ b(g(H), {
1623
1626
  name: "iksvg_yulan",
1624
1627
  bg: t.showBg,
1625
1628
  size: t.showBg ? "default" : 20
1626
1629
  }, null, 8, ["bg", "size"]),
1627
1630
  $(d.$slots, "operation", {
1628
- data: { ...k, findex: f }
1631
+ data: { ...x, findex: f }
1629
1632
  })
1630
1633
  ],
1631
1634
  2
@@ -1639,15 +1642,15 @@ const E6 = /* @__PURE__ */ U(O6, [["__scopeId", "data-v-98d51ef9"]]), A6 = O(E6)
1639
1642
  }),
1640
1643
  128
1641
1644
  /* KEYED_FRAGMENT */
1642
- )) : C("v-if", !0),
1643
- x(g(f3), {
1644
- show: a.value,
1645
- "onUpdate:show": w[0] || (w[0] = (k) => a.value = k),
1645
+ )) : V("v-if", !0),
1646
+ b(g(p3), {
1647
+ show: s.value,
1648
+ "onUpdate:show": w[0] || (w[0] = (x) => s.value = x),
1646
1649
  loadUrl: g(o),
1647
1650
  file: i.value,
1648
- onlyofficeServer: ((_ = g(s)) == null ? void 0 : _.serverUrl) || t.onlyofficeServer,
1649
- onlyOfficeConfig: g(s),
1650
- onlyOfficeAccept: ((B = g(s)) == null ? void 0 : B.accept) || t.onlyOfficeAccept
1651
+ onlyofficeServer: ((y = g(e)) == null ? void 0 : y.serverUrl) || t.onlyofficeServer,
1652
+ onlyOfficeConfig: g(e),
1653
+ onlyOfficeAccept: ((I = g(e)) == null ? void 0 : I.accept) || t.onlyOfficeAccept
1651
1654
  }, null, 8, ["show", "loadUrl", "file", "onlyofficeServer", "onlyOfficeConfig", "onlyOfficeAccept"])
1652
1655
  ],
1653
1656
  64