iking-web-ui-pro 0.2.10 → 0.2.12

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 (69) hide show
  1. package/dist/IKDetailPreviewFiles/ik.index.es.js +112 -109
  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 +2 -2
  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 +168 -165
  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 +2 -2
  11. package/dist/IKVerticalStepBar/ik.index.umd.js +1 -1
  12. package/dist/IKVerticalStepBar/style.css +1 -1
  13. package/dist/IkApprovalProcess/ik.index.es.js +194 -190
  14. package/dist/IkApprovalProcess/ik.index.umd.js +1 -1
  15. package/dist/IkApprovalProcessDetail/ik.index.es.js +643 -636
  16. package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
  17. package/dist/IkApprovalProcessDetail/style.css +1 -1
  18. package/dist/IkBaseDialog/ik.index.es.js +2 -2
  19. package/dist/IkBaseDialog/ik.index.umd.js +1 -1
  20. package/dist/IkBaseDialog/style.css +1 -1
  21. package/dist/IkBtnSetting/ik.index.es.js +2 -2
  22. package/dist/IkBtnSetting/ik.index.umd.js +1 -1
  23. package/dist/IkBtnSetting/style.css +1 -1
  24. package/dist/IkCollapseCard/ik.index.es.js +2 -2
  25. package/dist/IkCollapseCard/ik.index.umd.js +1 -1
  26. package/dist/IkCollapseCard/style.css +1 -1
  27. package/dist/IkDescription/ik.index.es.js +325 -322
  28. package/dist/IkDescription/ik.index.umd.js +1 -1
  29. package/dist/IkDescription/style.css +1 -1
  30. package/dist/IkIconPicker/ik.index.es.js +2 -2
  31. package/dist/IkIconPicker/ik.index.umd.js +1 -1
  32. package/dist/IkIconPicker/style.css +1 -1
  33. package/dist/IkMonacoEditor/ik.index.es.js +2 -2
  34. package/dist/IkMonacoEditor/ik.index.umd.js +1 -1
  35. package/dist/IkMonacoEditor/style.css +1 -1
  36. package/dist/IkPageFull/ik.index.es.js +2 -2
  37. package/dist/IkPageFull/ik.index.umd.js +1 -1
  38. package/dist/IkPageFull/style.css +1 -1
  39. package/dist/IkPreviewFileDialog/ik.index.es.js +206 -203
  40. package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
  41. package/dist/IkPreviewFileDialog/style.css +1 -1
  42. package/dist/IkSchedule/ik.index.es.js +2 -2
  43. package/dist/IkSchedule/ik.index.umd.js +1 -1
  44. package/dist/IkSchedule/style.css +1 -1
  45. package/dist/IkSideText/ik.index.es.js +2 -2
  46. package/dist/IkSideText/ik.index.umd.js +1 -1
  47. package/dist/IkSideText/style.css +1 -1
  48. package/dist/IkSvgIcon/ik.index.es.js +8 -8
  49. package/dist/IkSvgIcon/ik.index.umd.js +1 -1
  50. package/dist/IkSvgIcon/style.css +1 -1
  51. package/dist/IkTree/ik.index.es.js +30 -28
  52. package/dist/IkTree/ik.index.umd.js +1 -1
  53. package/dist/IkTree/style.css +1 -1
  54. package/dist/IkUploadFile/ik.index.es.js +112 -109
  55. package/dist/IkUploadFile/ik.index.umd.js +1 -1
  56. package/dist/IkUploadFile/style.css +1 -1
  57. package/dist/IkUploadImage/ik.index.es.js +185 -170
  58. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  59. package/dist/IkUploadImage/style.css +1 -1
  60. package/dist/index.es.js +15729 -15705
  61. package/dist/index.umd.js +61 -61
  62. package/dist/src/IkPlayer/index.d.ts +0 -0
  63. package/dist/src/components/IkTree/IkTree.vue.d.ts +1 -0
  64. package/dist/src/components/IkTree/index.d.ts +3 -0
  65. package/dist/src/components/IkUploadImage/index.d.ts +19 -0
  66. package/dist/src/components/IkUploadImage/src/index.vue.d.ts +9 -0
  67. package/dist/style.css +1 -1
  68. package/package.json +1 -1
  69. package/dist/src/components/IkPageFull/src/IkSearchAuto copy.d.ts +0 -76
@@ -1,4 +1,4 @@
1
- import { inject as E, computed as k, defineComponent as z, openBlock as r, createElementBlock as d, createElementVNode as c, ref as S, resolveComponent as O, Fragment as M, renderList as U, normalizeStyle as x, toDisplayString as I, normalizeClass as b, createVNode as y, unref as m, withModifiers as W, renderSlot as H, createBlock as q, withCtx as B, createCommentVNode as R, mergeModels as X, useModel as Y, reactive as Q, watch as Z, nextTick as e3, createTextVNode as j, h as t3, mergeProps as n3, createSlots as o3, pushScopeId as i3, popScopeId as l3 } from "vue";
1
+ import { inject as E, computed as k, defineComponent as z, openBlock as r, createElementBlock as d, createElementVNode as c, ref as V, resolveComponent as O, Fragment as M, renderList as U, normalizeStyle as x, toDisplayString as R, normalizeClass as b, createVNode as y, unref as _, withModifiers as K, renderSlot as H, createBlock as q, withCtx as B, createCommentVNode as C, mergeModels as Y, useModel as Z, reactive as Q, watch as J, nextTick as e3, createTextVNode as j, h as t3, mergeProps as n3, createSlots as o3, pushScopeId as i3, popScopeId as l3 } from "vue";
2
2
  import { paramType as s3, ikFile as a3, buildUUID as c3, ikColor as r3, ikUrl as u3 } from "iking-utils-pro";
3
3
  const A = (t, n) => {
4
4
  if (t.install = (i) => {
@@ -23,7 +23,7 @@ const A = (t, n) => {
23
23
  return (a % 1 === 0 ? a.toFixed(n || 0) : a.toFixed(n)) + " " + i[e];
24
24
  }, T = (t, n) => n ? n.startsWith("http") ? n : `${t || location.origin}${n}` : "";
25
25
  const v3 = (t) => {
26
- const n = E("loadUrl"), i = k(() => t.loadUrl || (n == null ? void 0 : n.value)), e = E("uploadUrl"), a = k(() => t.action || t.uploadUrl || (e == null ? void 0 : e.value)), l = E("token"), s = k(() => t.token || (l == null ? void 0 : l.value)), h = E("onlyofficeConfig"), g = k(() => t.onlyofficeConfig || (h == null ? void 0 : h.value)), o = E("userInfo"), v = k(() => t.userInfo || (o == null ? void 0 : o.value));
26
+ const n = E("loadUrl"), i = k(() => t.loadUrl || t.fileUrl || (n == null ? void 0 : n.value)), e = E("uploadUrl"), a = k(() => t.action || t.uploadUrl || (e == null ? void 0 : e.value)), l = E("token"), s = k(() => t.token || (l == null ? void 0 : l.value)), h = E("onlyofficeConfig"), g = k(() => t.onlyofficeConfig || (h == null ? void 0 : h.value)), o = E("userInfo"), v = k(() => t.userInfo || (o == null ? void 0 : o.value));
27
27
  return {
28
28
  cLoadUrl: i,
29
29
  cUploadUrl: a,
@@ -31,9 +31,9 @@ const v3 = (t) => {
31
31
  cOnlyofficeConfig: g,
32
32
  cUserInfo: v
33
33
  };
34
- }, f3 = v3, J = (t, n) => {
34
+ }, f3 = v3, N = (t, n) => {
35
35
  var l, s, h, g;
36
- const i = (l = t == null ? void 0 : t.response) != null && l.data ? K((h = (s = t == null ? void 0 : t.response) == null ? void 0 : s.data) == null ? void 0 : h.suffix) : ((g = t.raw) == null ? void 0 : g.type) || K(t[n.suffix]), e = i == null ? void 0 : i.toLowerCase(), a = {
36
+ const i = (l = t == null ? void 0 : t.response) != null && l.data ? G((h = (s = t == null ? void 0 : t.response) == null ? void 0 : s.data) == null ? void 0 : h.suffix) : ((g = t.raw) == null ? void 0 : g.type) || G(t[n.suffix]), e = i == null ? void 0 : i.toLowerCase(), a = {
37
37
  sheet: "excel",
38
38
  excel: "excel",
39
39
  zip: "zip",
@@ -138,7 +138,7 @@ const v3 = (t) => {
138
138
  ".vob": "video",
139
139
  ".txt": "txt",
140
140
  ".pdf": "pdf"
141
- }, K = (t) => {
141
+ }, G = (t) => {
142
142
  const n = t == null ? void 0 : t.toLocaleLowerCase(), i = n != null && n.startsWith(".") ? n : `.${n}`;
143
143
  return i && p3[i] || "unknow";
144
144
  }, h3 = (t) => {
@@ -154,7 +154,7 @@ const v3 = (t) => {
154
154
  "p-id": "7671",
155
155
  width: "200",
156
156
  height: "200"
157
- }, _3 = /* @__PURE__ */ c(
157
+ }, m3 = /* @__PURE__ */ c(
158
158
  "path",
159
159
  {
160
160
  d: "M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",
@@ -164,7 +164,7 @@ const v3 = (t) => {
164
164
  null,
165
165
  -1
166
166
  /* HOISTED */
167
- ), m3 = /* @__PURE__ */ c(
167
+ ), _3 = /* @__PURE__ */ c(
168
168
  "path",
169
169
  {
170
170
  d: "M258.528 742.0672L351.8336 604.928a14.5024 14.5024 0 0 1 22.1696-2.1824l61.664 60.416 135.296-212.064a14.5024 14.5024 0 0 1 24.8064 0.5568l168.1024 291.328a14.5024 14.5024 0 0 1-12.5696 21.7664H270.528a14.5024 14.5024 0 0 1-12.0064-22.6816z",
@@ -195,8 +195,8 @@ const v3 = (t) => {
195
195
  -1
196
196
  /* HOISTED */
197
197
  ), k3 = [
198
- _3,
199
198
  m3,
199
+ _3,
200
200
  w3,
201
201
  y3
202
202
  ], x3 = {
@@ -265,7 +265,7 @@ const v3 = (t) => {
265
265
  ), $3 = [
266
266
  S3,
267
267
  V3
268
- ], B3 = {
268
+ ], I3 = {
269
269
  key: 3,
270
270
  t: "1686300157181",
271
271
  class: "icon",
@@ -275,7 +275,7 @@ const v3 = (t) => {
275
275
  "p-id": "8292",
276
276
  width: "200",
277
277
  height: "200"
278
- }, I3 = /* @__PURE__ */ c(
278
+ }, B3 = /* @__PURE__ */ c(
279
279
  "path",
280
280
  {
281
281
  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 m307.2 607.573333l68.266667 191.146667c13.653333 27.306667 54.613333 27.306667 61.44 0l102.4-273.066667c6.826667-20.48 0-34.133333-20.48-40.96s-34.133333 0-40.96 13.653334l-68.266667 191.146666-68.266667-191.146666c-13.653333-27.306667-54.613333-27.306667-68.266666 0l-68.266667 191.146666-68.266667-191.146666c-6.826667-13.653333-27.306667-27.306667-47.786666-20.48s-27.306667 27.306667-20.48 47.786666l102.4 273.066667c13.653333 27.306667 54.613333 27.306667 61.44 0l75.093333-191.146667z",
@@ -296,7 +296,7 @@ const v3 = (t) => {
296
296
  -1
297
297
  /* HOISTED */
298
298
  ), D3 = [
299
- I3,
299
+ B3,
300
300
  R3
301
301
  ], M3 = {
302
302
  key: 4,
@@ -620,7 +620,7 @@ const v3 = (t) => {
620
620
  f6,
621
621
  p6,
622
622
  h6
623
- ], _6 = /* @__PURE__ */ z({
623
+ ], m6 = /* @__PURE__ */ z({
624
624
  __name: "FileIcon",
625
625
  props: {
626
626
  type: {
@@ -641,10 +641,10 @@ const v3 = (t) => {
641
641
  }
642
642
  },
643
643
  setup(t) {
644
- const n = t, i = k(() => n.file ? J(n.file, n.fields) : n.type);
645
- return (e, a) => i.value === "image" ? (r(), d("svg", g3, k3)) : i.value === "zip" ? (r(), d("svg", x3, b3)) : i.value === "ppt" ? (r(), d("svg", C3, $3)) : i.value === "word" ? (r(), d("svg", B3, D3)) : i.value === "pdf" ? (r(), d("svg", M3, H3)) : i.value === "txt" ? (r(), d("svg", O3, T3)) : i.value === "audio" ? (r(), d("svg", P3, N3)) : i.value === "video" ? (r(), d("svg", W3, X3)) : i.value === "excel" ? (r(), d("svg", Y3, e6)) : i.value === "exe" ? (r(), d("svg", t6, s6)) : i.value === "json" ? (r(), d("svg", a6, d6)) : (r(), d("svg", v6, g6));
644
+ const n = t, i = k(() => n.file ? N(n.file, n.fields) : n.type);
645
+ return (e, a) => i.value === "image" ? (r(), d("svg", g3, k3)) : i.value === "zip" ? (r(), d("svg", x3, b3)) : i.value === "ppt" ? (r(), d("svg", C3, $3)) : i.value === "word" ? (r(), d("svg", I3, D3)) : i.value === "pdf" ? (r(), d("svg", M3, H3)) : i.value === "txt" ? (r(), d("svg", O3, T3)) : i.value === "audio" ? (r(), d("svg", P3, N3)) : i.value === "video" ? (r(), d("svg", W3, X3)) : i.value === "excel" ? (r(), d("svg", Y3, e6)) : i.value === "exe" ? (r(), d("svg", t6, s6)) : i.value === "json" ? (r(), d("svg", a6, d6)) : (r(), d("svg", v6, g6));
646
646
  }
647
- }), m6 = ["onClick"], w6 = { class: "fileName simple" }, y6 = ["onClick"], k6 = { class: "text" }, x6 = { class: "fileName" }, z6 = { class: "size" }, F6 = /* @__PURE__ */ z({
647
+ }), _6 = ["onClick"], w6 = { class: "fileName simple" }, y6 = ["onClick"], k6 = { class: "text" }, x6 = { class: "fileName" }, z6 = { class: "size" }, F6 = /* @__PURE__ */ z({
648
648
  __name: "IkPreviewFile",
649
649
  props: {
650
650
  list: {
@@ -725,14 +725,14 @@ const v3 = (t) => {
725
725
  suffix: "suffix",
726
726
  size: "size",
727
727
  ...n.field
728
- })), l = S({}), s = S(!1), h = (u) => {
729
- var _, w;
728
+ })), l = V({}), s = V(!1), h = (u) => {
729
+ var m, w;
730
730
  l.value = {
731
731
  ...u,
732
732
  name: u.name,
733
733
  url: T(
734
734
  i.value,
735
- u.url || ((w = (_ = u == null ? void 0 : u.response) == null ? void 0 : _.data) == null ? void 0 : w.id) || (u == null ? void 0 : u.id)
735
+ u.url || ((w = (m = u == null ? void 0 : u.response) == null ? void 0 : m.data) == null ? void 0 : w.id) || (u == null ? void 0 : u.id)
736
736
  )
737
737
  }, s.value = !0;
738
738
  }, g = (u) => {
@@ -749,7 +749,7 @@ const v3 = (t) => {
749
749
  size: u[a.value.size] || u.fileSize || u.attachmentSize,
750
750
  suffix: u[a.value.suffix] || u.attachmentSuffix
751
751
  })));
752
- return (u, _) => {
752
+ return (u, m) => {
753
753
  var f, F, D;
754
754
  const w = O("tmplate");
755
755
  return r(), d(
@@ -763,15 +763,15 @@ const v3 = (t) => {
763
763
  t.simple ? (r(!0), d(
764
764
  M,
765
765
  { key: 0 },
766
- U(v.value, (p, V) => (r(), d("div", {
766
+ U(v.value, (p, $) => (r(), d("div", {
767
767
  class: "iking-privew-annex simple",
768
- onClick: ($) => h(p),
768
+ onClick: (I) => h(p),
769
769
  style: x({ width: o.value })
770
770
  }, [
771
771
  c(
772
772
  "div",
773
773
  w6,
774
- I(p.name),
774
+ R(p.name),
775
775
  1
776
776
  /* TEXT */
777
777
  ),
@@ -781,25 +781,25 @@ const v3 = (t) => {
781
781
  class: b(["flex flex-center", { "hover-show": t.iconHoverShow }])
782
782
  },
783
783
  [
784
- y(m(C), {
784
+ y(_(S), {
785
785
  name: "iksvg_daochu",
786
- onClick: W(($) => g(p), ["stop"]),
786
+ onClick: K((I) => g(p), ["stop"]),
787
787
  size: 20,
788
788
  active: ""
789
789
  }, null, 8, ["onClick"]),
790
- y(m(C), {
790
+ y(_(S), {
791
791
  name: "iksvg_yulan",
792
792
  size: 20,
793
793
  active: ""
794
794
  }),
795
795
  H(u.$slots, "operation", {
796
- data: { ...p, findex: V }
796
+ data: { ...p, findex: $ }
797
797
  })
798
798
  ],
799
799
  2
800
800
  /* CLASS */
801
801
  )
802
- ], 12, m6))),
802
+ ], 12, _6))),
803
803
  256
804
804
  /* UNKEYED_FRAGMENT */
805
805
  )) : (r(), q(w, { key: 1 }, {
@@ -807,15 +807,15 @@ const v3 = (t) => {
807
807
  (r(!0), d(
808
808
  M,
809
809
  null,
810
- U(v.value, (p, V) => {
811
- var $;
810
+ U(v.value, (p, $) => {
811
+ var I;
812
812
  return r(), d(
813
813
  "div",
814
814
  {
815
815
  class: b(["iking-privew-annex", { "is-bg": t.showBg }]),
816
- key: V,
816
+ key: $,
817
817
  style: x({
818
- marginBottom: V == (($ = t.list) == null ? void 0 : $.length) - 1 ? "0" : "10px",
818
+ marginBottom: $ == ((I = t.list) == null ? void 0 : I.length) - 1 ? "0" : "10px",
819
819
  width: o.value
820
820
  })
821
821
  },
@@ -824,7 +824,7 @@ const v3 = (t) => {
824
824
  class: "file-card",
825
825
  onClick: (L) => h(p)
826
826
  }, [
827
- y(_6, {
827
+ y(m6, {
828
828
  file: p,
829
829
  style: x({ height: `${t.iconSize}px` }),
830
830
  class: "ikui-w-auto",
@@ -834,14 +834,14 @@ const v3 = (t) => {
834
834
  c(
835
835
  "div",
836
836
  x6,
837
- I(p.name),
837
+ R(p.name),
838
838
  1
839
839
  /* TEXT */
840
840
  ),
841
841
  c(
842
842
  "div",
843
843
  z6,
844
- I(m(d3)(p.size)),
844
+ R(_(d3)(p.size)),
845
845
  1
846
846
  /* TEXT */
847
847
  )
@@ -852,19 +852,19 @@ const v3 = (t) => {
852
852
  class: b(["flex flex-center", { "hover-show": t.iconHoverShow }])
853
853
  },
854
854
  [
855
- y(m(C), {
855
+ y(_(S), {
856
856
  name: "iksvg_daochu",
857
- onClick: W((L) => g(p), ["stop"]),
857
+ onClick: K((L) => g(p), ["stop"]),
858
858
  bg: t.showBg,
859
859
  size: t.showBg ? "default" : 20
860
860
  }, null, 8, ["onClick", "bg", "size"]),
861
- y(m(C), {
861
+ y(_(S), {
862
862
  name: "iksvg_yulan",
863
863
  bg: t.showBg,
864
864
  size: t.showBg ? "default" : 20
865
865
  }, null, 8, ["bg", "size"]),
866
866
  H(u.$slots, "operation", {
867
- data: { ...p, findex: V }
867
+ data: { ...p, findex: $ }
868
868
  })
869
869
  ],
870
870
  2
@@ -886,15 +886,15 @@ const v3 = (t) => {
886
886
  ],
887
887
  64
888
888
  /* STABLE_FRAGMENT */
889
- )) : R("v-if", !0),
890
- y(m(S6), {
889
+ )) : C("v-if", !0),
890
+ y(_(S6), {
891
891
  show: s.value,
892
- "onUpdate:show": _[0] || (_[0] = (p) => s.value = p),
893
- loadUrl: m(i),
892
+ "onUpdate:show": m[0] || (m[0] = (p) => s.value = p),
893
+ loadUrl: _(i),
894
894
  file: l.value,
895
- onlyofficeServer: ((F = m(e)) == null ? void 0 : F.serverUrl) || t.onlyofficeServer,
896
- onlyOfficeConfig: m(e),
897
- onlyOfficeAccept: ((D = m(e)) == null ? void 0 : D.accept) || t.onlyOfficeAccept
895
+ onlyofficeServer: ((F = _(e)) == null ? void 0 : F.serverUrl) || t.onlyofficeServer,
896
+ onlyOfficeConfig: _(e),
897
+ onlyOfficeAccept: ((D = _(e)) == null ? void 0 : D.accept) || t.onlyOfficeAccept
898
898
  }, null, 8, ["show", "loadUrl", "file", "onlyofficeServer", "onlyOfficeConfig", "onlyOfficeAccept"])
899
899
  ],
900
900
  64
@@ -905,7 +905,7 @@ const v3 = (t) => {
905
905
  });
906
906
  const b6 = A(F6), C6 = /* @__PURE__ */ z({
907
907
  __name: "IkPreviewFileDialog",
908
- props: /* @__PURE__ */ X({
908
+ props: /* @__PURE__ */ Y({
909
909
  file: {
910
910
  type: Object,
911
911
  default: () => []
@@ -940,28 +940,31 @@ const b6 = A(F6), C6 = /* @__PURE__ */ z({
940
940
  }),
941
941
  emits: ["update:show"],
942
942
  setup(t) {
943
- const n = t, i = Y(t, "show"), e = k(() => ({
943
+ const n = t, i = Z(t, "show"), e = k(() => ({
944
944
  name: "name",
945
945
  url: "url",
946
946
  suffix: "suffix",
947
947
  size: "fileSize",
948
948
  ...n.field
949
- })), a = S(null), l = S(null), s = Q({
949
+ })), a = V(null), l = V(null), s = Q({
950
950
  image: !1,
951
951
  office: !1,
952
952
  video: !1
953
953
  }), h = (o) => {
954
- var v, u, _, w, f, F, D;
954
+ var v, u, m, w, f, F, D;
955
955
  try {
956
- const p = ((v = o == null ? void 0 : o.response) == null ? void 0 : v.data) || o, V = p[e.value.url] || (p == null ? void 0 : p.id) || p.attachmentId, $ = (u = p[e.value.suffix] || p.attachmentSuffix) == null ? void 0 : u.toLowerCase(), L = p[e.value.name] || (p == null ? void 0 : p.attachmentName) || (p == null ? void 0 : p.originName);
956
+ const p = ((v = o == null ? void 0 : o.response) == null ? void 0 : v.data) || o, $ = p[e.value.url] || (p == null ? void 0 : p.id) || p.attachmentId, I = (u = p[e.value.suffix] || p.attachmentSuffix) == null ? void 0 : u.toLowerCase(), L = p[e.value.name] || (p == null ? void 0 : p.attachmentName) || (p == null ? void 0 : p.originName);
957
957
  if (l.value = {
958
958
  ...o,
959
959
  name: o[e.value.name],
960
- url: T(n.loadUrl, V)
961
- }, o && J(o, e.value) === "image") {
960
+ url: T(n.loadUrl, $)
961
+ }, o && N(o, e.value) === "image") {
962
962
  s.image = !0;
963
963
  return;
964
- } else if ((((_ = n.onlyOfficeConfig) == null ? void 0 : _.accept) || n.onlyOfficeAccept).includes($)) {
964
+ } else if (o && N(o, e.value) === "video") {
965
+ s.video = !0, console.log("modal.video = true;", s.video);
966
+ return;
967
+ } else if ((((m = n.onlyOfficeConfig) == null ? void 0 : m.accept) || n.onlyOfficeAccept).includes(I)) {
965
968
  s.office = !0, a.value = {
966
969
  ...n.onlyOfficeConfig,
967
970
  editorConfig: {
@@ -976,11 +979,11 @@ const b6 = A(F6), C6 = /* @__PURE__ */ z({
976
979
  document: {
977
980
  key: c3(),
978
981
  title: L,
979
- url: T(n.loadUrl, V),
980
- fileType: $,
982
+ url: T(n.loadUrl, $),
983
+ fileType: I,
981
984
  ...((D = n.onlyOfficeConfig) == null ? void 0 : D.document) || {}
982
985
  },
983
- documentType: h3($)
986
+ documentType: h3(I)
984
987
  };
985
988
  return;
986
989
  }
@@ -988,31 +991,31 @@ const b6 = A(F6), C6 = /* @__PURE__ */ z({
988
991
  console.info("预览错误: ", p);
989
992
  }
990
993
  };
991
- Z([i, n.file], ([o, v]) => {
994
+ J([i, n.file], ([o, v]) => {
992
995
  o && e3(() => {
993
996
  h(n.file);
994
997
  });
995
998
  });
996
999
  const g = () => {
997
- i.value = !1, s.office = !1, s.image = !1, s.video = !1;
1000
+ i.value = !1, s.office = !1, s.image = !1, s.video = !1, l.value = null;
998
1001
  };
999
1002
  return (o, v) => {
1000
- var _, w;
1003
+ var m, w;
1001
1004
  const u = O("el-image-viewer");
1002
1005
  return i.value ? (r(), d(
1003
1006
  M,
1004
1007
  { key: 0 },
1005
1008
  [
1006
- (_ = l.value) != null && _.url && s.image ? (r(), q(u, {
1009
+ (m = l.value) != null && m.url && s.image ? (r(), q(u, {
1007
1010
  key: 0,
1008
- onClose: v[0] || (v[0] = (f) => {
1009
- l.value = null, s.image = !1;
1010
- }),
1011
+ onClose: v[0] || (v[0] = (f) => g()),
1011
1012
  ref: "previewImgRef",
1012
- "url-list": [(w = l.value) == null ? void 0 : w.url]
1013
- }, null, 8, ["url-list"])) : R("v-if", !0),
1014
- R(" 文档类 "),
1015
- y(m(P6), {
1013
+ "url-list": [(w = l.value) == null ? void 0 : w.url],
1014
+ teleported: ""
1015
+ }, null, 8, ["url-list"])) : C("v-if", !0),
1016
+ C(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
1017
+ C(" 文档类 "),
1018
+ y(_(P6), {
1016
1019
  modelValue: s.office,
1017
1020
  "onUpdate:modelValue": v[1] || (v[1] = (f) => s.office = f),
1018
1021
  draggable: "",
@@ -1030,7 +1033,7 @@ const b6 = A(F6), C6 = /* @__PURE__ */ z({
1030
1033
  default: B(() => {
1031
1034
  var f;
1032
1035
  return [
1033
- y(m(Y6), {
1036
+ y(_(Y6), {
1034
1037
  "config-options": a.value,
1035
1038
  "document-server-url": ((f = t.onlyOfficeConfig) == null ? void 0 : f.serverUrl) || t.onlyofficeServer
1036
1039
  }, null, 8, ["config-options", "document-server-url"])
@@ -1042,18 +1045,18 @@ const b6 = A(F6), C6 = /* @__PURE__ */ z({
1042
1045
  ],
1043
1046
  64
1044
1047
  /* STABLE_FRAGMENT */
1045
- )) : R("v-if", !0);
1048
+ )) : C("v-if", !0);
1046
1049
  };
1047
1050
  }
1048
1051
  });
1049
1052
  const S6 = A(C6), V6 = {
1050
1053
  key: 0,
1051
- class: "ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"
1054
+ class: "ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"
1052
1055
  }, $6 = {
1053
1056
  key: 1,
1054
1057
  class: "h-[1em] w-[1em]",
1055
1058
  "aria-hidden": "true"
1056
- }, B6 = ["xlink:href"], I6 = ["src"], R6 = {
1059
+ }, I6 = ["xlink:href"], B6 = ["src"], R6 = {
1057
1060
  key: 1,
1058
1061
  class: "h-[1em] w-[1em]",
1059
1062
  "aria-hidden": "true"
@@ -1140,7 +1143,7 @@ const S6 = A(C6), V6 = {
1140
1143
  style: x(l.value)
1141
1144
  },
1142
1145
  [
1143
- R(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
1146
+ C(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
1144
1147
  a.value === "iksig" ? (r(), d(
1145
1148
  "i",
1146
1149
  {
@@ -1154,12 +1157,12 @@ const S6 = A(C6), V6 = {
1154
1157
  )) : a.value === "svg" ? (r(), d("svg", $6, [
1155
1158
  c("use", {
1156
1159
  "xlink:href": `#${e.value.name}`
1157
- }, null, 8, B6)
1160
+ }, null, 8, I6)
1158
1161
  ])) : a.value === "img" ? (r(), d("img", {
1159
1162
  key: 2,
1160
1163
  src: e.value.name,
1161
1164
  class: "h-[1em] w-[1em]"
1162
- }, null, 8, I6)) : (r(), d(
1165
+ }, null, 8, B6)) : (r(), d(
1163
1166
  "i",
1164
1167
  {
1165
1168
  key: 3,
@@ -1240,7 +1243,7 @@ const S6 = A(C6), V6 = {
1240
1243
  }, {
1241
1244
  default: B(() => [
1242
1245
  j(
1243
- I(e.value.title),
1246
+ R(e.value.title),
1244
1247
  1
1245
1248
  /* TEXT */
1246
1249
  )
@@ -1251,7 +1254,7 @@ const S6 = A(C6), V6 = {
1251
1254
  };
1252
1255
  }
1253
1256
  });
1254
- const E6 = /* @__PURE__ */ P(q6, [["__scopeId", "data-v-7729b79a"]]), C = A(E6), H6 = {
1257
+ const E6 = /* @__PURE__ */ P(q6, [["__scopeId", "data-v-76d7e119"]]), S = A(E6), H6 = {
1255
1258
  key: 0,
1256
1259
  class: "exit-main-page-maximize"
1257
1260
  }, O6 = /* @__PURE__ */ z({
@@ -1269,13 +1272,13 @@ const E6 = /* @__PURE__ */ P(q6, [["__scopeId", "data-v-7729b79a"]]), C = A(E6),
1269
1272
  setup(t) {
1270
1273
  return (n, i) => (r(), d("div", null, [
1271
1274
  t.showBg && t.fullscreen ? (r(), d("div", H6, [
1272
- y(m(C), {
1275
+ y(_(S), {
1273
1276
  name: "iksvg_guanbidanchuang",
1274
1277
  title: "关闭",
1275
1278
  size: 20,
1276
1279
  error: ""
1277
1280
  })
1278
- ])) : (r(), q(m(C), {
1281
+ ])) : (r(), q(_(S), {
1279
1282
  key: 1,
1280
1283
  error: "",
1281
1284
  name: "iksvg_guanbidanchuang",
@@ -1287,7 +1290,7 @@ const E6 = /* @__PURE__ */ P(q6, [["__scopeId", "data-v-7729b79a"]]), C = A(E6),
1287
1290
  });
1288
1291
  const A6 = /* @__PURE__ */ P(O6, [["__scopeId", "data-v-79f49df8"]]), U6 = { class: "base-header" }, T6 = /* @__PURE__ */ z({
1289
1292
  __name: "IkBaseDialog",
1290
- props: /* @__PURE__ */ X({
1293
+ props: /* @__PURE__ */ Y({
1291
1294
  title: { default: "" },
1292
1295
  cancelText: { default: "取消" },
1293
1296
  confirmText: { default: "确认" },
@@ -1306,7 +1309,7 @@ const A6 = /* @__PURE__ */ P(O6, [["__scopeId", "data-v-79f49df8"]]), U6 = { cla
1306
1309
  }),
1307
1310
  emits: ["update:modelValue"],
1308
1311
  setup(t) {
1309
- const n = t, i = Y(t, "modelValue"), e = S(n.fullscreen), a = () => {
1312
+ const n = t, i = Z(t, "modelValue"), e = V(n.fullscreen), a = () => {
1310
1313
  e.value = !e.value;
1311
1314
  }, l = z({
1312
1315
  setup() {
@@ -1322,7 +1325,7 @@ const A6 = /* @__PURE__ */ P(O6, [["__scopeId", "data-v-79f49df8"]]), U6 = { cla
1322
1325
  modelValue: i.value,
1323
1326
  "onUpdate:modelValue": h[0] || (h[0] = (o) => i.value = o)
1324
1327
  }, s.$attrs, {
1325
- "close-icon": m(l),
1328
+ "close-icon": _(l),
1326
1329
  class: `ik-base-dialog ${s.noHeader ? "no-header" : ""} ${s.noFooter ? "no-footer" : ""}`,
1327
1330
  fullscreen: e.value,
1328
1331
  "modal-class": "baseDialog"
@@ -1330,7 +1333,7 @@ const A6 = /* @__PURE__ */ P(O6, [["__scopeId", "data-v-79f49df8"]]), U6 = { cla
1330
1333
  icon: B(() => [
1331
1334
  H(s.$slots, "title", {}, () => [
1332
1335
  j(
1333
- I(s.title),
1336
+ R(s.title),
1334
1337
  1
1335
1338
  /* TEXT */
1336
1339
  )
@@ -1340,19 +1343,19 @@ const A6 = /* @__PURE__ */ P(O6, [["__scopeId", "data-v-79f49df8"]]), U6 = { cla
1340
1343
  c("div", U6, [
1341
1344
  H(s.$slots, "header", {}, () => [
1342
1345
  j(
1343
- I(s.title),
1346
+ R(s.title),
1344
1347
  1
1345
1348
  /* TEXT */
1346
1349
  )
1347
1350
  ])
1348
1351
  ]),
1349
- s.$attrs.showClose ? (r(), q(m(C), {
1352
+ s.$attrs.showClose ? (r(), q(_(S), {
1350
1353
  key: 0,
1351
1354
  onClick: a,
1352
1355
  name: e.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
1353
1356
  class: "absolute! top-[18px] right-[50px] icon-dialog-full",
1354
1357
  title: e.value ? "退出全屏" : "全屏"
1355
- }, null, 8, ["name", "title"])) : R("v-if", !0)
1358
+ }, null, 8, ["name", "title"])) : C("v-if", !0)
1356
1359
  ]),
1357
1360
  default: B(() => [
1358
1361
  H(s.$slots, "default")
@@ -1478,12 +1481,12 @@ var N6 = function(t, n) {
1478
1481
  if (!g) {
1479
1482
  if (clearInterval(s), window.DocsAPI)
1480
1483
  return e(null);
1481
- var o = G(n, t, e, a);
1484
+ var o = X(n, t, e, a);
1482
1485
  l.remove(), document.body.appendChild(o);
1483
1486
  }
1484
1487
  }, 500);
1485
1488
  else {
1486
- var h = G(n, t, e, a);
1489
+ var h = X(n, t, e, a);
1487
1490
  document.body.appendChild(h);
1488
1491
  }
1489
1492
  } catch (g) {
@@ -1492,14 +1495,14 @@ var N6 = function(t, n) {
1492
1495
  })];
1493
1496
  });
1494
1497
  });
1495
- }, G = function(t, n, i, e) {
1498
+ }, X = function(t, n, i, e) {
1496
1499
  var a = document.createElement("script");
1497
1500
  return a.id = t, a.type = "text/javascript", a.src = n, a.async = !0, a.onload = function() {
1498
1501
  a.removeAttribute("loading"), i(null);
1499
1502
  }, a.onerror = function(l) {
1500
1503
  a.removeAttribute("loading"), e(l);
1501
1504
  }, a.setAttribute("loading", ""), a;
1502
- }, N = z({
1505
+ }, W = z({
1503
1506
  name: "DocumentEditor",
1504
1507
  props: {
1505
1508
  id: {
@@ -1672,8 +1675,8 @@ const W6 = ["id"];
1672
1675
  function K6(t, n, i, e, a, l) {
1673
1676
  return r(), d("div", { id: t.id }, null, 8, W6);
1674
1677
  }
1675
- N.render = K6;
1676
- N.__file = "src/components/DocumentEditor.vue";
1678
+ W.render = K6;
1679
+ W.__file = "src/components/DocumentEditor.vue";
1677
1680
  const G6 = /* @__PURE__ */ z({
1678
1681
  __name: "IkOnlyOffice",
1679
1682
  props: {
@@ -1695,7 +1698,7 @@ const G6 = /* @__PURE__ */ z({
1695
1698
  }
1696
1699
  },
1697
1700
  setup(t) {
1698
- const n = t, i = S({
1701
+ const n = t, i = V({
1699
1702
  width: "100%",
1700
1703
  height: "100%",
1701
1704
  ...n.configOptions || {},
@@ -1709,7 +1712,7 @@ const G6 = /* @__PURE__ */ z({
1709
1712
  style: x({ height: n.officeHeight })
1710
1713
  },
1711
1714
  [
1712
- y(m(N), {
1715
+ y(_(W), {
1713
1716
  id: `${(/* @__PURE__ */ new Date()).getTime()}`,
1714
1717
  ref: "editorRef",
1715
1718
  "document-server-url": t.documentServerUrl,
@@ -1767,32 +1770,32 @@ const X6 = /* @__PURE__ */ P(G6, [["__scopeId", "data-v-98d51ef9"]]), Y6 = A(X6)
1767
1770
  }
1768
1771
  },
1769
1772
  setup(t) {
1770
- const n = t, i = S(n.fileList);
1771
- Z(
1773
+ const n = t, i = V(n.fileList);
1774
+ J(
1772
1775
  () => n.fileList,
1773
1776
  (o) => {
1774
1777
  o && (i.value = o);
1775
1778
  },
1776
1779
  { immediate: !0 }
1777
1780
  );
1778
- const e = S(!1), a = S({}), l = (o) => {
1781
+ const e = V(!1), a = V({}), l = (o) => {
1779
1782
  a.value = {
1780
1783
  url: o.url,
1781
1784
  name: o.name
1782
1785
  // row.originName
1783
1786
  }, e.value = !0;
1784
1787
  }, s = (o) => {
1785
- var v, u, _, w, f;
1786
- return (v = o == null ? void 0 : o.suffix) != null && v.includes("pdf") ? "iksvg_pdf" : (u = o == null ? void 0 : o.suffix) != null && u.includes("doc") ? "iksvg_word" : (_ = o == null ? void 0 : o.suffix) != null && _.includes("xls") ? "iksvg_excel" : (w = o == null ? void 0 : o.suffix) != null && w.includes("mov") ? "iksvg_mov" : (f = o == null ? void 0 : o.suffix) != null && f.includes("zip") ? "iksvg_zip" : "icon-jpg";
1788
+ var v, u, m, w, f;
1789
+ return (v = o == null ? void 0 : o.suffix) != null && v.includes("pdf") ? "iksvg_pdf" : (u = o == null ? void 0 : o.suffix) != null && u.includes("doc") ? "iksvg_word" : (m = o == null ? void 0 : o.suffix) != null && m.includes("xls") ? "iksvg_excel" : (w = o == null ? void 0 : o.suffix) != null && w.includes("mov") ? "iksvg_mov" : (f = o == null ? void 0 : o.suffix) != null && f.includes("zip") ? "iksvg_zip" : "icon-jpg";
1787
1790
  }, h = (o) => {
1788
- var v, u, _, w, f;
1789
- return (v = o == null ? void 0 : o.suffix) != null && v.includes("pdf") ? "#FA4E4E" : (u = o == null ? void 0 : o.suffix) != null && u.includes("doc") ? "#2c69e0" : (_ = o.suffix) != null && _.includes("xls") ? "#39BFBF" : (w = o.suffix) != null && w.includes("txt") ? "#2c69e0" : (f = o.suffix) != null && f.includes("zip") ? "#FF9000" : "#32CD79";
1791
+ var v, u, m, w, f;
1792
+ return (v = o == null ? void 0 : o.suffix) != null && v.includes("pdf") ? "#FA4E4E" : (u = o == null ? void 0 : o.suffix) != null && u.includes("doc") ? "#2c69e0" : (m = o.suffix) != null && m.includes("xls") ? "#39BFBF" : (w = o.suffix) != null && w.includes("txt") ? "#2c69e0" : (f = o.suffix) != null && f.includes("zip") ? "#FF9000" : "#32CD79";
1790
1793
  }, g = (o) => {
1791
1794
  const v = document.createElement("a");
1792
1795
  v.href = u3.assembleUrl(n.loadUrl, o.url), v.download = o.name, v.click();
1793
1796
  };
1794
1797
  return (o, v) => {
1795
- var _, w;
1798
+ var m, w;
1796
1799
  const u = O("el-image");
1797
1800
  return r(), d("div", null, [
1798
1801
  n.fileType === "file" ? (r(), d("div", J6, [
@@ -1811,7 +1814,7 @@ const X6 = /* @__PURE__ */ P(G6, [["__scopeId", "data-v-98d51ef9"]]), Y6 = A(X6)
1811
1814
  },
1812
1815
  [
1813
1816
  c("div", Q6, [
1814
- y(m(C), {
1817
+ y(_(S), {
1815
1818
  name: s(f),
1816
1819
  style: x(`color:${h(f)}`),
1817
1820
  size: 36
@@ -1822,11 +1825,11 @@ const X6 = /* @__PURE__ */ P(G6, [["__scopeId", "data-v-98d51ef9"]]), Y6 = A(X6)
1822
1825
  }, [
1823
1826
  c("p", {
1824
1827
  title: f.name
1825
- }, I(f.name), 9, te),
1828
+ }, R(f.name), 9, te),
1826
1829
  c(
1827
1830
  "p",
1828
1831
  ne,
1829
- I((f.size / 1024).toFixed(2)) + "KB",
1832
+ R((f.size / 1024).toFixed(2)) + "KB",
1830
1833
  1
1831
1834
  /* TEXT */
1832
1835
  )
@@ -1836,7 +1839,7 @@ const X6 = /* @__PURE__ */ P(G6, [["__scopeId", "data-v-98d51ef9"]]), Y6 = A(X6)
1836
1839
  class: "file-preview",
1837
1840
  onClick: (D) => l(f)
1838
1841
  }, [
1839
- y(m(C), { name: "iksvg_yulan" }),
1842
+ y(_(S), { name: "iksvg_yulan" }),
1840
1843
  ie
1841
1844
  ], 8, oe)
1842
1845
  ],
@@ -1846,7 +1849,7 @@ const X6 = /* @__PURE__ */ P(G6, [["__scopeId", "data-v-98d51ef9"]]), Y6 = A(X6)
1846
1849
  128
1847
1850
  /* KEYED_FRAGMENT */
1848
1851
  ))
1849
- ])) : R("v-if", !0),
1852
+ ])) : C("v-if", !0),
1850
1853
  n.fileType === "img" ? (r(), d("div", le, [
1851
1854
  (r(!0), d(
1852
1855
  M,
@@ -1865,12 +1868,12 @@ const X6 = /* @__PURE__ */ P(G6, [["__scopeId", "data-v-98d51ef9"]]), Y6 = A(X6)
1865
1868
  128
1866
1869
  /* KEYED_FRAGMENT */
1867
1870
  ))
1868
- ])) : R("v-if", !0),
1869
- y(m(b6), {
1871
+ ])) : C("v-if", !0),
1872
+ y(_(b6), {
1870
1873
  modelValue: e.value,
1871
1874
  "onUpdate:modelValue": v[0] || (v[0] = (f) => e.value = f),
1872
1875
  "load-url": n.loadUrl,
1873
- url: (_ = a.value) == null ? void 0 : _.url,
1876
+ url: (m = a.value) == null ? void 0 : m.url,
1874
1877
  "kk-url": t.kkUrl,
1875
1878
  "file-name": (w = a.value) == null ? void 0 : w.name
1876
1879
  }, null, 8, ["modelValue", "load-url", "url", "kk-url", "file-name"])