iking-web-ui-pro 0.2.11 → 0.2.13

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 (64) hide show
  1. package/dist/IKDetailPreviewFiles/ik.index.es.js +116 -111
  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 +172 -167
  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 +645 -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 +329 -324
  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/IkUploadFile/ik.index.es.js +112 -109
  52. package/dist/IkUploadFile/ik.index.umd.js +1 -1
  53. package/dist/IkUploadFile/style.css +1 -1
  54. package/dist/IkUploadImage/ik.index.es.js +84 -84
  55. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  56. package/dist/IkUploadImage/style.css +1 -1
  57. package/dist/index.es.js +12672 -12663
  58. package/dist/index.umd.js +60 -60
  59. package/dist/src/components/IkMonacoEditor/src/editor-config.d.ts +1 -1
  60. package/dist/src/components/IkPlayer-beta/index.d.ts +76 -0
  61. package/dist/src/components/IkPlayer-beta/src/player.d.ts +19 -0
  62. package/dist/style.css +1 -1
  63. package/package.json +1 -1
  64. package/dist/src/components/IkPickerUser/src/list/utils.d.ts +0 -3
@@ -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,21 @@ 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
- size: t.showBg ? "default" : 20
859
+ size: t.showBg ? "default" : 20,
860
+ title: "下载"
860
861
  }, null, 8, ["onClick", "bg", "size"]),
861
- y(m(C), {
862
+ y(_(S), {
862
863
  name: "iksvg_yulan",
863
864
  bg: t.showBg,
864
- size: t.showBg ? "default" : 20
865
+ size: t.showBg ? "default" : 20,
866
+ title: "预览"
865
867
  }, null, 8, ["bg", "size"]),
866
868
  H(u.$slots, "operation", {
867
- data: { ...p, findex: V }
869
+ data: { ...p, findex: $ }
868
870
  })
869
871
  ],
870
872
  2
@@ -886,15 +888,15 @@ const v3 = (t) => {
886
888
  ],
887
889
  64
888
890
  /* STABLE_FRAGMENT */
889
- )) : R("v-if", !0),
890
- y(m(S6), {
891
+ )) : C("v-if", !0),
892
+ y(_(S6), {
891
893
  show: s.value,
892
- "onUpdate:show": _[0] || (_[0] = (p) => s.value = p),
893
- loadUrl: m(i),
894
+ "onUpdate:show": m[0] || (m[0] = (p) => s.value = p),
895
+ loadUrl: _(i),
894
896
  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
897
+ onlyofficeServer: ((F = _(e)) == null ? void 0 : F.serverUrl) || t.onlyofficeServer,
898
+ onlyOfficeConfig: _(e),
899
+ onlyOfficeAccept: ((D = _(e)) == null ? void 0 : D.accept) || t.onlyOfficeAccept
898
900
  }, null, 8, ["show", "loadUrl", "file", "onlyofficeServer", "onlyOfficeConfig", "onlyOfficeAccept"])
899
901
  ],
900
902
  64
@@ -905,7 +907,7 @@ const v3 = (t) => {
905
907
  });
906
908
  const b6 = A(F6), C6 = /* @__PURE__ */ z({
907
909
  __name: "IkPreviewFileDialog",
908
- props: /* @__PURE__ */ X({
910
+ props: /* @__PURE__ */ Y({
909
911
  file: {
910
912
  type: Object,
911
913
  default: () => []
@@ -940,28 +942,31 @@ const b6 = A(F6), C6 = /* @__PURE__ */ z({
940
942
  }),
941
943
  emits: ["update:show"],
942
944
  setup(t) {
943
- const n = t, i = Y(t, "show"), e = k(() => ({
945
+ const n = t, i = Z(t, "show"), e = k(() => ({
944
946
  name: "name",
945
947
  url: "url",
946
948
  suffix: "suffix",
947
949
  size: "fileSize",
948
950
  ...n.field
949
- })), a = S(null), l = S(null), s = Q({
951
+ })), a = V(null), l = V(null), s = Q({
950
952
  image: !1,
951
953
  office: !1,
952
954
  video: !1
953
955
  }), h = (o) => {
954
- var v, u, _, w, f, F, D;
956
+ var v, u, m, w, f, F, D;
955
957
  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);
958
+ 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
959
  if (l.value = {
958
960
  ...o,
959
961
  name: o[e.value.name],
960
- url: T(n.loadUrl, V)
961
- }, o && J(o, e.value) === "image") {
962
+ url: T(n.loadUrl, $)
963
+ }, o && N(o, e.value) === "image") {
962
964
  s.image = !0;
963
965
  return;
964
- } else if ((((_ = n.onlyOfficeConfig) == null ? void 0 : _.accept) || n.onlyOfficeAccept).includes($)) {
966
+ } else if (o && N(o, e.value) === "video") {
967
+ s.video = !0, console.log("modal.video = true;", s.video);
968
+ return;
969
+ } else if ((((m = n.onlyOfficeConfig) == null ? void 0 : m.accept) || n.onlyOfficeAccept).includes(I)) {
965
970
  s.office = !0, a.value = {
966
971
  ...n.onlyOfficeConfig,
967
972
  editorConfig: {
@@ -976,11 +981,11 @@ const b6 = A(F6), C6 = /* @__PURE__ */ z({
976
981
  document: {
977
982
  key: c3(),
978
983
  title: L,
979
- url: T(n.loadUrl, V),
980
- fileType: $,
984
+ url: T(n.loadUrl, $),
985
+ fileType: I,
981
986
  ...((D = n.onlyOfficeConfig) == null ? void 0 : D.document) || {}
982
987
  },
983
- documentType: h3($)
988
+ documentType: h3(I)
984
989
  };
985
990
  return;
986
991
  }
@@ -988,31 +993,31 @@ const b6 = A(F6), C6 = /* @__PURE__ */ z({
988
993
  console.info("预览错误: ", p);
989
994
  }
990
995
  };
991
- Z([i, n.file], ([o, v]) => {
996
+ J([i, n.file], ([o, v]) => {
992
997
  o && e3(() => {
993
998
  h(n.file);
994
999
  });
995
1000
  });
996
1001
  const g = () => {
997
- i.value = !1, s.office = !1, s.image = !1, s.video = !1;
1002
+ i.value = !1, s.office = !1, s.image = !1, s.video = !1, l.value = null;
998
1003
  };
999
1004
  return (o, v) => {
1000
- var _, w;
1005
+ var m, w;
1001
1006
  const u = O("el-image-viewer");
1002
1007
  return i.value ? (r(), d(
1003
1008
  M,
1004
1009
  { key: 0 },
1005
1010
  [
1006
- (_ = l.value) != null && _.url && s.image ? (r(), q(u, {
1011
+ (m = l.value) != null && m.url && s.image ? (r(), q(u, {
1007
1012
  key: 0,
1008
- onClose: v[0] || (v[0] = (f) => {
1009
- l.value = null, s.image = !1;
1010
- }),
1013
+ onClose: v[0] || (v[0] = (f) => g()),
1011
1014
  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), {
1015
+ "url-list": [(w = l.value) == null ? void 0 : w.url],
1016
+ teleported: ""
1017
+ }, null, 8, ["url-list"])) : C("v-if", !0),
1018
+ C(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
1019
+ C(" 文档类 "),
1020
+ y(_(P6), {
1016
1021
  modelValue: s.office,
1017
1022
  "onUpdate:modelValue": v[1] || (v[1] = (f) => s.office = f),
1018
1023
  draggable: "",
@@ -1030,7 +1035,7 @@ const b6 = A(F6), C6 = /* @__PURE__ */ z({
1030
1035
  default: B(() => {
1031
1036
  var f;
1032
1037
  return [
1033
- y(m(Y6), {
1038
+ y(_(Y6), {
1034
1039
  "config-options": a.value,
1035
1040
  "document-server-url": ((f = t.onlyOfficeConfig) == null ? void 0 : f.serverUrl) || t.onlyofficeServer
1036
1041
  }, null, 8, ["config-options", "document-server-url"])
@@ -1042,18 +1047,18 @@ const b6 = A(F6), C6 = /* @__PURE__ */ z({
1042
1047
  ],
1043
1048
  64
1044
1049
  /* STABLE_FRAGMENT */
1045
- )) : R("v-if", !0);
1050
+ )) : C("v-if", !0);
1046
1051
  };
1047
1052
  }
1048
1053
  });
1049
1054
  const S6 = A(C6), V6 = {
1050
1055
  key: 0,
1051
- class: "ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"
1056
+ class: "ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"
1052
1057
  }, $6 = {
1053
1058
  key: 1,
1054
1059
  class: "h-[1em] w-[1em]",
1055
1060
  "aria-hidden": "true"
1056
- }, B6 = ["xlink:href"], I6 = ["src"], R6 = {
1061
+ }, I6 = ["xlink:href"], B6 = ["src"], R6 = {
1057
1062
  key: 1,
1058
1063
  class: "h-[1em] w-[1em]",
1059
1064
  "aria-hidden": "true"
@@ -1140,7 +1145,7 @@ const S6 = A(C6), V6 = {
1140
1145
  style: x(l.value)
1141
1146
  },
1142
1147
  [
1143
- R(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
1148
+ C(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
1144
1149
  a.value === "iksig" ? (r(), d(
1145
1150
  "i",
1146
1151
  {
@@ -1154,12 +1159,12 @@ const S6 = A(C6), V6 = {
1154
1159
  )) : a.value === "svg" ? (r(), d("svg", $6, [
1155
1160
  c("use", {
1156
1161
  "xlink:href": `#${e.value.name}`
1157
- }, null, 8, B6)
1162
+ }, null, 8, I6)
1158
1163
  ])) : a.value === "img" ? (r(), d("img", {
1159
1164
  key: 2,
1160
1165
  src: e.value.name,
1161
1166
  class: "h-[1em] w-[1em]"
1162
- }, null, 8, I6)) : (r(), d(
1167
+ }, null, 8, B6)) : (r(), d(
1163
1168
  "i",
1164
1169
  {
1165
1170
  key: 3,
@@ -1240,7 +1245,7 @@ const S6 = A(C6), V6 = {
1240
1245
  }, {
1241
1246
  default: B(() => [
1242
1247
  j(
1243
- I(e.value.title),
1248
+ R(e.value.title),
1244
1249
  1
1245
1250
  /* TEXT */
1246
1251
  )
@@ -1251,7 +1256,7 @@ const S6 = A(C6), V6 = {
1251
1256
  };
1252
1257
  }
1253
1258
  });
1254
- const E6 = /* @__PURE__ */ P(q6, [["__scopeId", "data-v-7729b79a"]]), C = A(E6), H6 = {
1259
+ const E6 = /* @__PURE__ */ P(q6, [["__scopeId", "data-v-76d7e119"]]), S = A(E6), H6 = {
1255
1260
  key: 0,
1256
1261
  class: "exit-main-page-maximize"
1257
1262
  }, O6 = /* @__PURE__ */ z({
@@ -1269,13 +1274,13 @@ const E6 = /* @__PURE__ */ P(q6, [["__scopeId", "data-v-7729b79a"]]), C = A(E6),
1269
1274
  setup(t) {
1270
1275
  return (n, i) => (r(), d("div", null, [
1271
1276
  t.showBg && t.fullscreen ? (r(), d("div", H6, [
1272
- y(m(C), {
1277
+ y(_(S), {
1273
1278
  name: "iksvg_guanbidanchuang",
1274
1279
  title: "关闭",
1275
1280
  size: 20,
1276
1281
  error: ""
1277
1282
  })
1278
- ])) : (r(), q(m(C), {
1283
+ ])) : (r(), q(_(S), {
1279
1284
  key: 1,
1280
1285
  error: "",
1281
1286
  name: "iksvg_guanbidanchuang",
@@ -1287,7 +1292,7 @@ const E6 = /* @__PURE__ */ P(q6, [["__scopeId", "data-v-7729b79a"]]), C = A(E6),
1287
1292
  });
1288
1293
  const A6 = /* @__PURE__ */ P(O6, [["__scopeId", "data-v-79f49df8"]]), U6 = { class: "base-header" }, T6 = /* @__PURE__ */ z({
1289
1294
  __name: "IkBaseDialog",
1290
- props: /* @__PURE__ */ X({
1295
+ props: /* @__PURE__ */ Y({
1291
1296
  title: { default: "" },
1292
1297
  cancelText: { default: "取消" },
1293
1298
  confirmText: { default: "确认" },
@@ -1306,7 +1311,7 @@ const A6 = /* @__PURE__ */ P(O6, [["__scopeId", "data-v-79f49df8"]]), U6 = { cla
1306
1311
  }),
1307
1312
  emits: ["update:modelValue"],
1308
1313
  setup(t) {
1309
- const n = t, i = Y(t, "modelValue"), e = S(n.fullscreen), a = () => {
1314
+ const n = t, i = Z(t, "modelValue"), e = V(n.fullscreen), a = () => {
1310
1315
  e.value = !e.value;
1311
1316
  }, l = z({
1312
1317
  setup() {
@@ -1322,7 +1327,7 @@ const A6 = /* @__PURE__ */ P(O6, [["__scopeId", "data-v-79f49df8"]]), U6 = { cla
1322
1327
  modelValue: i.value,
1323
1328
  "onUpdate:modelValue": h[0] || (h[0] = (o) => i.value = o)
1324
1329
  }, s.$attrs, {
1325
- "close-icon": m(l),
1330
+ "close-icon": _(l),
1326
1331
  class: `ik-base-dialog ${s.noHeader ? "no-header" : ""} ${s.noFooter ? "no-footer" : ""}`,
1327
1332
  fullscreen: e.value,
1328
1333
  "modal-class": "baseDialog"
@@ -1330,7 +1335,7 @@ const A6 = /* @__PURE__ */ P(O6, [["__scopeId", "data-v-79f49df8"]]), U6 = { cla
1330
1335
  icon: B(() => [
1331
1336
  H(s.$slots, "title", {}, () => [
1332
1337
  j(
1333
- I(s.title),
1338
+ R(s.title),
1334
1339
  1
1335
1340
  /* TEXT */
1336
1341
  )
@@ -1340,19 +1345,19 @@ const A6 = /* @__PURE__ */ P(O6, [["__scopeId", "data-v-79f49df8"]]), U6 = { cla
1340
1345
  c("div", U6, [
1341
1346
  H(s.$slots, "header", {}, () => [
1342
1347
  j(
1343
- I(s.title),
1348
+ R(s.title),
1344
1349
  1
1345
1350
  /* TEXT */
1346
1351
  )
1347
1352
  ])
1348
1353
  ]),
1349
- s.$attrs.showClose ? (r(), q(m(C), {
1354
+ s.$attrs.showClose ? (r(), q(_(S), {
1350
1355
  key: 0,
1351
1356
  onClick: a,
1352
1357
  name: e.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
1353
1358
  class: "absolute! top-[18px] right-[50px] icon-dialog-full",
1354
1359
  title: e.value ? "退出全屏" : "全屏"
1355
- }, null, 8, ["name", "title"])) : R("v-if", !0)
1360
+ }, null, 8, ["name", "title"])) : C("v-if", !0)
1356
1361
  ]),
1357
1362
  default: B(() => [
1358
1363
  H(s.$slots, "default")
@@ -1478,12 +1483,12 @@ var N6 = function(t, n) {
1478
1483
  if (!g) {
1479
1484
  if (clearInterval(s), window.DocsAPI)
1480
1485
  return e(null);
1481
- var o = G(n, t, e, a);
1486
+ var o = X(n, t, e, a);
1482
1487
  l.remove(), document.body.appendChild(o);
1483
1488
  }
1484
1489
  }, 500);
1485
1490
  else {
1486
- var h = G(n, t, e, a);
1491
+ var h = X(n, t, e, a);
1487
1492
  document.body.appendChild(h);
1488
1493
  }
1489
1494
  } catch (g) {
@@ -1492,14 +1497,14 @@ var N6 = function(t, n) {
1492
1497
  })];
1493
1498
  });
1494
1499
  });
1495
- }, G = function(t, n, i, e) {
1500
+ }, X = function(t, n, i, e) {
1496
1501
  var a = document.createElement("script");
1497
1502
  return a.id = t, a.type = "text/javascript", a.src = n, a.async = !0, a.onload = function() {
1498
1503
  a.removeAttribute("loading"), i(null);
1499
1504
  }, a.onerror = function(l) {
1500
1505
  a.removeAttribute("loading"), e(l);
1501
1506
  }, a.setAttribute("loading", ""), a;
1502
- }, N = z({
1507
+ }, W = z({
1503
1508
  name: "DocumentEditor",
1504
1509
  props: {
1505
1510
  id: {
@@ -1672,8 +1677,8 @@ const W6 = ["id"];
1672
1677
  function K6(t, n, i, e, a, l) {
1673
1678
  return r(), d("div", { id: t.id }, null, 8, W6);
1674
1679
  }
1675
- N.render = K6;
1676
- N.__file = "src/components/DocumentEditor.vue";
1680
+ W.render = K6;
1681
+ W.__file = "src/components/DocumentEditor.vue";
1677
1682
  const G6 = /* @__PURE__ */ z({
1678
1683
  __name: "IkOnlyOffice",
1679
1684
  props: {
@@ -1695,7 +1700,7 @@ const G6 = /* @__PURE__ */ z({
1695
1700
  }
1696
1701
  },
1697
1702
  setup(t) {
1698
- const n = t, i = S({
1703
+ const n = t, i = V({
1699
1704
  width: "100%",
1700
1705
  height: "100%",
1701
1706
  ...n.configOptions || {},
@@ -1709,7 +1714,7 @@ const G6 = /* @__PURE__ */ z({
1709
1714
  style: x({ height: n.officeHeight })
1710
1715
  },
1711
1716
  [
1712
- y(m(N), {
1717
+ y(_(W), {
1713
1718
  id: `${(/* @__PURE__ */ new Date()).getTime()}`,
1714
1719
  ref: "editorRef",
1715
1720
  "document-server-url": t.documentServerUrl,
@@ -1767,32 +1772,32 @@ const X6 = /* @__PURE__ */ P(G6, [["__scopeId", "data-v-98d51ef9"]]), Y6 = A(X6)
1767
1772
  }
1768
1773
  },
1769
1774
  setup(t) {
1770
- const n = t, i = S(n.fileList);
1771
- Z(
1775
+ const n = t, i = V(n.fileList);
1776
+ J(
1772
1777
  () => n.fileList,
1773
1778
  (o) => {
1774
1779
  o && (i.value = o);
1775
1780
  },
1776
1781
  { immediate: !0 }
1777
1782
  );
1778
- const e = S(!1), a = S({}), l = (o) => {
1783
+ const e = V(!1), a = V({}), l = (o) => {
1779
1784
  a.value = {
1780
1785
  url: o.url,
1781
1786
  name: o.name
1782
1787
  // row.originName
1783
1788
  }, e.value = !0;
1784
1789
  }, 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";
1790
+ var v, u, m, w, f;
1791
+ 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
1792
  }, 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";
1793
+ var v, u, m, w, f;
1794
+ 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
1795
  }, g = (o) => {
1791
1796
  const v = document.createElement("a");
1792
1797
  v.href = u3.assembleUrl(n.loadUrl, o.url), v.download = o.name, v.click();
1793
1798
  };
1794
1799
  return (o, v) => {
1795
- var _, w;
1800
+ var m, w;
1796
1801
  const u = O("el-image");
1797
1802
  return r(), d("div", null, [
1798
1803
  n.fileType === "file" ? (r(), d("div", J6, [
@@ -1811,7 +1816,7 @@ const X6 = /* @__PURE__ */ P(G6, [["__scopeId", "data-v-98d51ef9"]]), Y6 = A(X6)
1811
1816
  },
1812
1817
  [
1813
1818
  c("div", Q6, [
1814
- y(m(C), {
1819
+ y(_(S), {
1815
1820
  name: s(f),
1816
1821
  style: x(`color:${h(f)}`),
1817
1822
  size: 36
@@ -1822,11 +1827,11 @@ const X6 = /* @__PURE__ */ P(G6, [["__scopeId", "data-v-98d51ef9"]]), Y6 = A(X6)
1822
1827
  }, [
1823
1828
  c("p", {
1824
1829
  title: f.name
1825
- }, I(f.name), 9, te),
1830
+ }, R(f.name), 9, te),
1826
1831
  c(
1827
1832
  "p",
1828
1833
  ne,
1829
- I((f.size / 1024).toFixed(2)) + "KB",
1834
+ R((f.size / 1024).toFixed(2)) + "KB",
1830
1835
  1
1831
1836
  /* TEXT */
1832
1837
  )
@@ -1836,7 +1841,7 @@ const X6 = /* @__PURE__ */ P(G6, [["__scopeId", "data-v-98d51ef9"]]), Y6 = A(X6)
1836
1841
  class: "file-preview",
1837
1842
  onClick: (D) => l(f)
1838
1843
  }, [
1839
- y(m(C), { name: "iksvg_yulan" }),
1844
+ y(_(S), { name: "iksvg_yulan" }),
1840
1845
  ie
1841
1846
  ], 8, oe)
1842
1847
  ],
@@ -1846,7 +1851,7 @@ const X6 = /* @__PURE__ */ P(G6, [["__scopeId", "data-v-98d51ef9"]]), Y6 = A(X6)
1846
1851
  128
1847
1852
  /* KEYED_FRAGMENT */
1848
1853
  ))
1849
- ])) : R("v-if", !0),
1854
+ ])) : C("v-if", !0),
1850
1855
  n.fileType === "img" ? (r(), d("div", le, [
1851
1856
  (r(!0), d(
1852
1857
  M,
@@ -1865,12 +1870,12 @@ const X6 = /* @__PURE__ */ P(G6, [["__scopeId", "data-v-98d51ef9"]]), Y6 = A(X6)
1865
1870
  128
1866
1871
  /* KEYED_FRAGMENT */
1867
1872
  ))
1868
- ])) : R("v-if", !0),
1869
- y(m(b6), {
1873
+ ])) : C("v-if", !0),
1874
+ y(_(b6), {
1870
1875
  modelValue: e.value,
1871
1876
  "onUpdate:modelValue": v[0] || (v[0] = (f) => e.value = f),
1872
1877
  "load-url": n.loadUrl,
1873
- url: (_ = a.value) == null ? void 0 : _.url,
1878
+ url: (m = a.value) == null ? void 0 : m.url,
1874
1879
  "kk-url": t.kkUrl,
1875
1880
  "file-name": (w = a.value) == null ? void 0 : w.name
1876
1881
  }, null, 8, ["modelValue", "load-url", "url", "kk-url", "file-name"])