iking-web-ui-pro 1.2.5 → 1.2.7

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 (99) hide show
  1. package/dist/IkApprovalProcess/ik.index.es.js +2 -2
  2. package/dist/IkApprovalProcess/iking-web-ui-pro.css +1 -1
  3. package/dist/IkApprovalProcessDetail/ik.index.es.js +4247 -4069
  4. package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -1
  5. package/dist/IkAutoCard/ik.index.es.js +2 -2
  6. package/dist/IkBaseDialog/ik.index.es.js +12 -12
  7. package/dist/IkBottomOperate/ik.index.es.js +1 -1
  8. package/dist/IkBtnContent/ik.index.es.js +21 -21
  9. package/dist/IkBtnSetting/ik.index.es.js +23 -23
  10. package/dist/IkCalendar/ik.index.es.js +2065 -2016
  11. package/dist/IkCalendar/iking-web-ui-pro.css +1 -1
  12. package/dist/IkCollapseCard/ik.index.es.js +4 -4
  13. package/dist/IkCurrencyInput/ik.index.es.js +5 -5
  14. package/dist/IkDescription/ik.index.es.js +4185 -4007
  15. package/dist/IkDescription/iking-web-ui-pro.css +1 -1
  16. package/dist/IkDetailPreviewFiles/ik.index.es.js +4336 -4158
  17. package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
  18. package/dist/IkDragList/ik.index.es.js +10 -10
  19. package/dist/IkExpandCollapse/ik.index.es.js +1 -1
  20. package/dist/IkFileIcon/ik.index.es.js +13 -13
  21. package/dist/IkHorizontalStepBar/ik.index.es.js +54 -54
  22. package/dist/IkIconPicker/ik.index.es.js +7 -7
  23. package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
  24. package/dist/IkImageUploadEditor/ik.index.es.js +3438 -3284
  25. package/dist/IkImageUploadEditor/iking-web-ui-pro.css +2 -2
  26. package/dist/IkImageViewer/ik.index.es.js +180 -180
  27. package/dist/IkMonacoEditor/ik.index.es.js +221 -206
  28. package/dist/IkOnlyOffice/ik.index.es.js +3 -3
  29. package/dist/IkPageFull/ik.index.es.js +156 -156
  30. package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
  31. package/dist/IkPageTabs/ik.index.es.js +6 -6
  32. package/dist/IkPickerUser/ik.index.es.js +1 -1
  33. package/dist/IkPickerUser/iking-web-ui-pro.css +1 -1
  34. package/dist/IkPlayer/ik.index.es.js +1318 -1140
  35. package/dist/IkPlayer/iking-web-ui-pro.css +1 -1
  36. package/dist/IkPreviewFile/ik.index.es.js +4286 -4108
  37. package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
  38. package/dist/IkPreviewFileDialog/ik.index.es.js +4282 -4104
  39. package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
  40. package/dist/IkPrint/ik.index.es.js +106 -106
  41. package/dist/IkPrint/iking-web-ui-pro.css +1 -1
  42. package/dist/IkPrint/{index.es-DzGIwinU.mjs → index.es-OMtWcZN6.mjs} +1135 -1117
  43. package/dist/IkPrint/{jspdf.es.min-ByQMz4Ps.mjs → jspdf.es.min-CYsYASKt.mjs} +3153 -3140
  44. package/dist/IkPrint/purify.es-CiEWEeUM.mjs +605 -0
  45. package/dist/IkPrintConfig/ik.index.es.js +3 -3
  46. package/dist/IkPrintView/ik.index.es.js +1 -1
  47. package/dist/IkRadioGroup/ik.index.es.js +5 -5
  48. package/dist/IkSearch/ik.index.es.js +144 -144
  49. package/dist/IkSearch/iking-web-ui-pro.css +1 -1
  50. package/dist/IkSearchHead/ik.index.es.js +25 -25
  51. package/dist/IkSelectTag/ik.index.es.js +1 -1
  52. package/dist/IkSideText/ik.index.es.js +1 -1
  53. package/dist/IkStatu/ik.index.es.js +1 -1
  54. package/dist/IkStatuOver/ik.index.es.js +1 -1
  55. package/dist/IkSvgIcon/ik.index.es.js +7 -7
  56. package/dist/IkTemplateOfficeConfig/ik.index.es.js +1 -1
  57. package/dist/IkTinymce/ik.index.es.js +2 -2
  58. package/dist/IkTooltip/ik.index.es.js +2 -2
  59. package/dist/IkTree/ik.index.es.js +33 -33
  60. package/dist/IkUploadFile/ik.index.es.js +4543 -4361
  61. package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
  62. package/dist/IkUploadImage/ik.index.es.js +213 -213
  63. package/dist/IkVerticalStepBar/ik.index.es.js +13 -13
  64. package/dist/iking-web-ui-pro.css +2 -2
  65. package/dist/{index-DTIv4saG.mjs → index-CughgR_O.mjs} +34710 -34310
  66. package/dist/{index.es-DJTszikI.mjs → index.es-DgqPc8il.mjs} +1195 -1177
  67. package/dist/index.es.js +1 -1
  68. package/dist/index.umd.js +203 -201
  69. package/dist/{jspdf.es.min-CB6UoKKF.mjs → jspdf.es.min-CVLIg3IF.mjs} +3153 -3140
  70. package/dist/purify.es-CiEWEeUM.mjs +605 -0
  71. package/dist/src/components/IkBtnContent/index.d.ts +1 -1
  72. package/dist/src/components/IkBtnContent/src/index.d.ts +1 -1
  73. package/dist/src/components/IkBtnSetting/index.d.ts +1 -1
  74. package/dist/src/components/IkBtnSetting/src/IkBtnSetting.vue.d.ts +1 -1
  75. package/dist/src/components/IkDragList/index.d.ts +3 -3
  76. package/dist/src/components/IkDragList/src/IkDragList.vue.d.ts +1 -1
  77. package/dist/src/components/IkMonacoEditor/index.d.ts +14 -14
  78. package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +14 -14
  79. package/dist/src/components/IkPageFull/index.d.ts +3 -3
  80. package/dist/src/components/IkPageFull/src/IkDialog.d.ts +4 -4
  81. package/dist/src/components/IkPageFull/src/IkPageHead.vue.d.ts +1 -1
  82. package/dist/src/components/IkPageFull/src/IkPageTable.vue.d.ts +1 -1
  83. package/dist/src/components/IkPageFull/src/IkSearchAuto.d.ts +1 -1
  84. package/dist/src/components/IkPageFull/src/index.vue.d.ts +1 -1
  85. package/dist/src/components/IkPickerUser/index.d.ts +3 -3
  86. package/dist/src/components/IkPickerUser/src/list/utils.d.ts +3 -1
  87. package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +3 -3
  88. package/dist/src/components/IkSideText/IkSideText.vue.d.ts +1 -1
  89. package/dist/src/components/IkSideText/index.d.ts +1 -1
  90. package/dist/src/components/IkStatu/index.d.ts +3 -3
  91. package/dist/src/components/IkStatu/src/index.vue.d.ts +3 -3
  92. package/dist/src/components/IkSvgIcon/index.d.ts +14 -14
  93. package/dist/src/components/IkTooltip/index.d.ts +3 -3
  94. package/dist/src/components/IkTooltip/src/index.vue.d.ts +1 -1
  95. package/dist/src/components/IkTree/IkTree.vue.d.ts +5263 -967
  96. package/package.json +1 -1
  97. package/dist/IkPrint/purify.es-Bb-cVdCo.mjs +0 -536
  98. package/dist/purify.es-Bb-cVdCo.mjs +0 -536
  99. package/dist/src/components/IkTree/index.d.ts +0 -4693
@@ -1,22 +1,22 @@
1
- import { unref as o, getCurrentScope as Oe, onScopeDispose as be, watch as Q, defineComponent as y, createElementBlock as v, openBlock as _, createElementVNode as u, markRaw as J, ref as M, effectScope as ke, shallowRef as ze, computed as A, nextTick as Ce, onMounted as Le, createBlock as ee, Teleport as Ne, createVNode as f, Transition as Ee, withCtx as O, normalizeStyle as te, normalizeClass as w, createCommentVNode as S, renderSlot as Ae, withModifiers as Me, Fragment as ae, resolveDynamicComponent as Te, renderList as Ve, withDirectives as Se, vShow as Re } from "vue";
1
+ import { unref as r, getCurrentScope as be, onScopeDispose as ye, watch as Q, defineComponent as I, openBlock as d, createElementBlock as m, createElementVNode as i, markRaw as J, ref as M, effectScope as ke, shallowRef as Ce, computed as A, nextTick as ze, onMounted as Le, createBlock as ee, Teleport as Ne, createVNode as f, Transition as Ee, withCtx as b, normalizeStyle as te, normalizeClass as g, withModifiers as Ae, createCommentVNode as S, Fragment as ae, resolveDynamicComponent as Me, renderList as Te, withDirectives as Ve, vShow as Se, renderSlot as Re } from "vue";
2
2
  import { paramType as ne, _ as F } from "iking-utils-pro";
3
- import { useLocale as Be, useNamespace as Pe, useZIndex as He, ElIcon as z, EVENT_CODE as T } from "element-plus";
3
+ import { useLocale as Be, useNamespace as Pe, useZIndex as He, ElIcon as C, EVENT_CODE as T } from "element-plus";
4
4
  const Xe = (e, n) => (e.install = (a) => {
5
- for (const d of [e, ...Object.values({})])
6
- a.component(d.name, d);
5
+ for (const v of [e, ...Object.values({})])
6
+ a.component(v.name, v);
7
7
  }, e);
8
- var re;
8
+ var oe;
9
9
  const ce = typeof window < "u", Ye = (e) => typeof e == "string", $e = () => {
10
10
  };
11
- ce && ((re = window == null ? void 0 : window.navigator) != null && re.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
11
+ ce && ((oe = window == null ? void 0 : window.navigator) != null && oe.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
12
12
  function fe(e) {
13
- return typeof e == "function" ? e() : o(e);
13
+ return typeof e == "function" ? e() : r(e);
14
14
  }
15
15
  function Fe(e) {
16
16
  return e;
17
17
  }
18
18
  function Qe(e) {
19
- return Oe() ? (be(e), !0) : !1;
19
+ return be() ? (ye(e), !0) : !1;
20
20
  }
21
21
  function De(e) {
22
22
  var n;
@@ -25,31 +25,31 @@ function De(e) {
25
25
  }
26
26
  const We = ce ? window : void 0;
27
27
  function P(...e) {
28
- let n, a, d, I;
29
- if (Ye(e[0]) || Array.isArray(e[0]) ? ([a, d, I] = e, n = We) : [n, a, d, I] = e, !n)
28
+ let n, a, v, O;
29
+ if (Ye(e[0]) || Array.isArray(e[0]) ? ([a, v, O] = e, n = We) : [n, a, v, O] = e, !n)
30
30
  return $e;
31
- Array.isArray(a) || (a = [a]), Array.isArray(d) || (d = [d]);
32
- const i = [], C = () => {
33
- i.forEach((p) => p()), i.length = 0;
34
- }, H = (p, L, N, m) => (p.addEventListener(L, N, m), () => p.removeEventListener(L, N, m)), l = Q(() => [De(n), fe(I)], ([p, L]) => {
35
- C(), p && i.push(...a.flatMap((N) => d.map((m) => H(p, N, m, L))));
31
+ Array.isArray(a) || (a = [a]), Array.isArray(v) || (v = [v]);
32
+ const u = [], z = () => {
33
+ u.forEach((p) => p()), u.length = 0;
34
+ }, H = (p, L, N, _) => (p.addEventListener(L, N, _), () => p.removeEventListener(L, N, _)), l = Q(() => [De(n), fe(O)], ([p, L]) => {
35
+ z(), p && u.push(...a.flatMap((N) => v.map((_) => H(p, N, _, L))));
36
36
  }, { immediate: !0, flush: "post" }), R = () => {
37
- l(), C();
37
+ l(), z();
38
38
  };
39
39
  return Qe(R), R;
40
40
  }
41
- const oe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, se = "__vueuse_ssr_handlers__";
42
- oe[se] = oe[se] || {};
41
+ const re = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, se = "__vueuse_ssr_handlers__";
42
+ re[se] = re[se] || {};
43
43
  var le;
44
44
  (function(e) {
45
45
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
46
46
  })(le || (le = {}));
47
- var je = Object.defineProperty, ue = Object.getOwnPropertySymbols, Ze = Object.prototype.hasOwnProperty, Ge = Object.prototype.propertyIsEnumerable, ie = (e, n, a) => n in e ? je(e, n, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[n] = a, Ke = (e, n) => {
47
+ var je = Object.defineProperty, ie = Object.getOwnPropertySymbols, Ze = Object.prototype.hasOwnProperty, Ge = Object.prototype.propertyIsEnumerable, ue = (e, n, a) => n in e ? je(e, n, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[n] = a, Ke = (e, n) => {
48
48
  for (var a in n || (n = {}))
49
- Ze.call(n, a) && ie(e, a, n[a]);
50
- if (ue)
51
- for (var a of ue(n))
52
- Ge.call(n, a) && ie(e, a, n[a]);
49
+ Ze.call(n, a) && ue(e, a, n[a]);
50
+ if (ie)
51
+ for (var a of ie(n))
52
+ Ge.call(n, a) && ue(e, a, n[a]);
53
53
  return e;
54
54
  };
55
55
  const Ue = {
@@ -81,135 +81,135 @@ const Ue = {
81
81
  Ke({
82
82
  linear: Fe
83
83
  }, Ue);
84
- /*! Element Plus Icons Vue v2.3.1 */
85
- var qe = /* @__PURE__ */ y({
84
+ /*! Element Plus Icons Vue v2.3.2 */
85
+ var qe = /* @__PURE__ */ I({
86
86
  name: "ArrowLeft",
87
87
  __name: "arrow-left",
88
88
  setup(e) {
89
- return (n, a) => (_(), v("svg", {
89
+ return (n, a) => (d(), m("svg", {
90
90
  xmlns: "http://www.w3.org/2000/svg",
91
91
  viewBox: "0 0 1024 1024"
92
92
  }, [
93
- u("path", {
93
+ i("path", {
94
94
  fill: "currentColor",
95
- d: "M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"
95
+ d: "M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"
96
96
  })
97
97
  ]));
98
98
  }
99
- }), Je = qe, et = /* @__PURE__ */ y({
99
+ }), Je = qe, et = /* @__PURE__ */ I({
100
100
  name: "ArrowRight",
101
101
  __name: "arrow-right",
102
102
  setup(e) {
103
- return (n, a) => (_(), v("svg", {
103
+ return (n, a) => (d(), m("svg", {
104
104
  xmlns: "http://www.w3.org/2000/svg",
105
105
  viewBox: "0 0 1024 1024"
106
106
  }, [
107
- u("path", {
107
+ i("path", {
108
108
  fill: "currentColor",
109
- d: "M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"
109
+ d: "M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"
110
110
  })
111
111
  ]));
112
112
  }
113
- }), tt = et, at = /* @__PURE__ */ y({
113
+ }), tt = et, at = /* @__PURE__ */ I({
114
114
  name: "Close",
115
115
  __name: "close",
116
116
  setup(e) {
117
- return (n, a) => (_(), v("svg", {
117
+ return (n, a) => (d(), m("svg", {
118
118
  xmlns: "http://www.w3.org/2000/svg",
119
119
  viewBox: "0 0 1024 1024"
120
120
  }, [
121
- u("path", {
121
+ i("path", {
122
122
  fill: "currentColor",
123
123
  d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
124
124
  })
125
125
  ]));
126
126
  }
127
- }), nt = at, rt = /* @__PURE__ */ y({
127
+ }), nt = at, ot = /* @__PURE__ */ I({
128
128
  name: "FullScreen",
129
129
  __name: "full-screen",
130
130
  setup(e) {
131
- return (n, a) => (_(), v("svg", {
131
+ return (n, a) => (d(), m("svg", {
132
132
  xmlns: "http://www.w3.org/2000/svg",
133
133
  viewBox: "0 0 1024 1024"
134
134
  }, [
135
- u("path", {
135
+ i("path", {
136
136
  fill: "currentColor",
137
- d: "m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"
137
+ d: "m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"
138
138
  })
139
139
  ]));
140
140
  }
141
- }), ot = rt, st = /* @__PURE__ */ y({
141
+ }), rt = ot, st = /* @__PURE__ */ I({
142
142
  name: "RefreshLeft",
143
143
  __name: "refresh-left",
144
144
  setup(e) {
145
- return (n, a) => (_(), v("svg", {
145
+ return (n, a) => (d(), m("svg", {
146
146
  xmlns: "http://www.w3.org/2000/svg",
147
147
  viewBox: "0 0 1024 1024"
148
148
  }, [
149
- u("path", {
149
+ i("path", {
150
150
  fill: "currentColor",
151
151
  d: "M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"
152
152
  })
153
153
  ]));
154
154
  }
155
- }), lt = st, ut = /* @__PURE__ */ y({
155
+ }), lt = st, it = /* @__PURE__ */ I({
156
156
  name: "RefreshRight",
157
157
  __name: "refresh-right",
158
158
  setup(e) {
159
- return (n, a) => (_(), v("svg", {
159
+ return (n, a) => (d(), m("svg", {
160
160
  xmlns: "http://www.w3.org/2000/svg",
161
161
  viewBox: "0 0 1024 1024"
162
162
  }, [
163
- u("path", {
163
+ i("path", {
164
164
  fill: "currentColor",
165
- d: "M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"
165
+ d: "M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88"
166
166
  })
167
167
  ]));
168
168
  }
169
- }), it = ut, ct = /* @__PURE__ */ y({
169
+ }), ut = it, ct = /* @__PURE__ */ I({
170
170
  name: "ScaleToOriginal",
171
171
  __name: "scale-to-original",
172
172
  setup(e) {
173
- return (n, a) => (_(), v("svg", {
173
+ return (n, a) => (d(), m("svg", {
174
174
  xmlns: "http://www.w3.org/2000/svg",
175
175
  viewBox: "0 0 1024 1024"
176
176
  }, [
177
- u("path", {
177
+ i("path", {
178
178
  fill: "currentColor",
179
- d: "M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"
179
+ d: "M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118m-361.412 0a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118M512 361.412a30.12 30.12 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.12 30.12 0 0 0 512 361.412M512 512a30.12 30.12 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.12 30.12 0 0 0 512 512"
180
180
  })
181
181
  ]));
182
182
  }
183
- }), ft = ct, _t = /* @__PURE__ */ y({
183
+ }), ft = ct, dt = /* @__PURE__ */ I({
184
184
  name: "ZoomIn",
185
185
  __name: "zoom-in",
186
186
  setup(e) {
187
- return (n, a) => (_(), v("svg", {
187
+ return (n, a) => (d(), m("svg", {
188
188
  xmlns: "http://www.w3.org/2000/svg",
189
189
  viewBox: "0 0 1024 1024"
190
190
  }, [
191
- u("path", {
191
+ i("path", {
192
192
  fill: "currentColor",
193
193
  d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"
194
194
  })
195
195
  ]));
196
196
  }
197
- }), vt = _t, dt = /* @__PURE__ */ y({
197
+ }), mt = dt, vt = /* @__PURE__ */ I({
198
198
  name: "ZoomOut",
199
199
  __name: "zoom-out",
200
200
  setup(e) {
201
- return (n, a) => (_(), v("svg", {
201
+ return (n, a) => (d(), m("svg", {
202
202
  xmlns: "http://www.w3.org/2000/svg",
203
203
  viewBox: "0 0 1024 1024"
204
204
  }, [
205
- u("path", {
205
+ i("path", {
206
206
  fill: "currentColor",
207
207
  d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"
208
208
  })
209
209
  ]));
210
210
  }
211
- }), pt = dt;
212
- const mt = {
211
+ }), pt = vt;
212
+ const _t = {
213
213
  /**
214
214
  * @description preview link list.
215
215
  */
@@ -279,62 +279,62 @@ const mt = {
279
279
  crossorigin: {
280
280
  type: ["anonymous", "use-credentials", ""]
281
281
  }
282
- }, gt = {
282
+ }, wt = {
283
283
  close: () => !0,
284
284
  switch: (e) => ne.isNumber(e),
285
285
  rotate: (e) => ne.isNumber(e)
286
- }, wt = ["src", "crossorigin"], ht = /* @__PURE__ */ y({
286
+ }, gt = ["src", "crossorigin"], ht = /* @__PURE__ */ I({
287
287
  name: "ElImageViewer",
288
288
  __name: "IkImageViewer",
289
- props: mt,
290
- emits: gt,
289
+ props: _t,
290
+ emits: wt,
291
291
  setup(e, { expose: n, emit: a }) {
292
- const d = (t) => Object.keys(t), I = {
292
+ const v = (t) => Object.keys(t), O = {
293
293
  CONTAIN: {
294
294
  name: "contain",
295
- icon: J(ot)
295
+ icon: J(rt)
296
296
  },
297
297
  ORIGINAL: {
298
298
  name: "original",
299
299
  icon: J(ft)
300
300
  }
301
- }, i = e, C = a, { t: H } = Be(), l = Pe("image-viewer"), { nextZIndex: R } = He(), p = M(), L = M([]), N = ke(), m = M(!0), b = M(i.initialIndex), B = ze(I.CONTAIN), c = M({
301
+ }, u = e, z = a, { t: H } = Be(), l = Pe("image-viewer"), { nextZIndex: R } = He(), p = M(), L = M([]), N = ke(), _ = M(!0), y = M(u.initialIndex), B = Ce(O.CONTAIN), c = M({
302
302
  scale: 1,
303
303
  deg: 0,
304
304
  offsetX: 0,
305
305
  offsetY: 0,
306
306
  enableTransition: !1
307
- }), _e = M(i.zIndex ?? R()), ve = A(() => {
308
- const { urlList: t } = i;
307
+ }), de = M(u.zIndex ?? R()), me = A(() => {
308
+ const { urlList: t } = u;
309
309
  return t.length <= 1;
310
- }), D = A(() => b.value === 0), W = A(() => b.value === i.urlList.length - 1), de = A(() => i.urlList[b.value]), pe = A(() => [
310
+ }), D = A(() => y.value === 0), W = A(() => y.value === u.urlList.length - 1), ve = A(() => u.urlList[y.value]), pe = A(() => [
311
311
  l.e("btn"),
312
312
  l.e("prev"),
313
- l.is("disabled", !i.infinite && D.value)
314
- ]), me = A(() => [
313
+ l.is("disabled", !u.infinite && D.value)
314
+ ]), _e = A(() => [
315
315
  l.e("btn"),
316
316
  l.e("next"),
317
- l.is("disabled", !i.infinite && W.value)
318
- ]), ge = A(() => {
319
- const { scale: t, deg: r, offsetX: s, offsetY: g, enableTransition: h } = c.value;
320
- let x = s / t, k = g / t;
321
- const V = r * Math.PI / 180, U = Math.cos(V), q = Math.sin(V);
317
+ l.is("disabled", !u.infinite && W.value)
318
+ ]), we = A(() => {
319
+ const { scale: t, deg: o, offsetX: s, offsetY: w, enableTransition: h } = c.value;
320
+ let x = s / t, k = w / t;
321
+ const V = o * Math.PI / 180, U = Math.cos(V), q = Math.sin(V);
322
322
  x = x * U + k * q, k = k * U - s / t * q;
323
323
  const $ = {
324
- transform: `scale(${t}) rotate(${r}deg) translate(${x}px, ${k}px)`,
324
+ transform: `scale(${t}) rotate(${o}deg) translate(${x}px, ${k}px)`,
325
325
  transition: h ? "transform .3s" : ""
326
326
  };
327
- return B.value.name === I.CONTAIN.name && ($.maxWidth = $.maxHeight = "100%"), $;
327
+ return B.value.name === O.CONTAIN.name && ($.maxWidth = $.maxHeight = "100%"), $;
328
328
  });
329
329
  function X() {
330
- he(), C("close");
330
+ he(), z("close");
331
331
  }
332
- function we() {
332
+ function ge() {
333
333
  const t = F.throttle((s) => {
334
334
  switch (s.code) {
335
335
  // ESC
336
336
  case T.esc:
337
- i.closeOnPressEscape && X();
337
+ u.closeOnPressEscape && X();
338
338
  break;
339
339
  // SPACE
340
340
  case T.space:
@@ -357,33 +357,33 @@ const mt = {
357
357
  E("zoomOut");
358
358
  break;
359
359
  }
360
- }), r = F.throttle((s) => {
361
- const g = s.deltaY || s.deltaX;
362
- E(g < 0 ? "zoomIn" : "zoomOut", {
363
- zoomRate: i.zoomRate,
360
+ }), o = F.throttle((s) => {
361
+ const w = s.deltaY || s.deltaX;
362
+ E(w < 0 ? "zoomIn" : "zoomOut", {
363
+ zoomRate: u.zoomRate,
364
364
  enableTransition: !1
365
365
  });
366
366
  });
367
367
  N.run(() => {
368
- P(document, "keydown", t), P(document, "wheel", r);
368
+ P(document, "keydown", t), P(document, "wheel", o);
369
369
  });
370
370
  }
371
371
  function he() {
372
372
  N.stop();
373
373
  }
374
374
  function xe() {
375
- m.value = !1;
376
- }
377
- function ye(t) {
378
- m.value = !1, t.target.alt = H("el.image.error");
375
+ _.value = !1;
379
376
  }
380
377
  function Ie(t) {
381
- if (m.value || t.button !== 0 || !p.value) return;
378
+ _.value = !1, t.target.alt = H("el.image.error");
379
+ }
380
+ function Oe(t) {
381
+ if (_.value || t.button !== 0 || !p.value) return;
382
382
  c.value.enableTransition = !1;
383
- const { offsetX: r, offsetY: s } = c.value, g = t.pageX, h = t.pageY, x = F.throttle((V) => {
383
+ const { offsetX: o, offsetY: s } = c.value, w = t.pageX, h = t.pageY, x = F.throttle((V) => {
384
384
  c.value = {
385
385
  ...c.value,
386
- offsetX: r + V.pageX - g,
386
+ offsetX: o + V.pageX - w,
387
387
  offsetY: s + V.pageY - h
388
388
  };
389
389
  }), k = P(document, "mousemove", x);
@@ -401,27 +401,27 @@ const mt = {
401
401
  };
402
402
  }
403
403
  function Z() {
404
- if (m.value) return;
405
- const t = d(I), r = Object.values(I), s = B.value.name, h = ((r == null ? void 0 : r.findIndex((x) => x.name === s)) + 1) % t.length;
406
- B.value = I[t[h]], j();
404
+ if (_.value) return;
405
+ const t = v(O), o = Object.values(O), s = B.value.name, h = ((o == null ? void 0 : o.findIndex((x) => x.name === s)) + 1) % t.length;
406
+ B.value = O[t[h]], j();
407
407
  }
408
408
  function Y(t) {
409
- const r = i.urlList.length;
410
- b.value = (t + r) % r;
409
+ const o = u.urlList.length;
410
+ y.value = (t + o) % o;
411
411
  }
412
412
  function G() {
413
- D.value && !i.infinite || Y(b.value - 1);
413
+ D.value && !u.infinite || Y(y.value - 1);
414
414
  }
415
415
  function K() {
416
- W.value && !i.infinite || Y(b.value + 1);
416
+ W.value && !u.infinite || Y(y.value + 1);
417
417
  }
418
- function E(t, r = {}) {
419
- if (m.value) return;
420
- const { minScale: s, maxScale: g } = i, { zoomRate: h, rotateDeg: x, enableTransition: k } = {
421
- zoomRate: i.zoomRate,
418
+ function E(t, o = {}) {
419
+ if (_.value) return;
420
+ const { minScale: s, maxScale: w } = u, { zoomRate: h, rotateDeg: x, enableTransition: k } = {
421
+ zoomRate: u.zoomRate,
422
422
  rotateDeg: 90,
423
423
  enableTransition: !0,
424
- ...r
424
+ ...o
425
425
  };
426
426
  switch (t) {
427
427
  case "zoomOut":
@@ -430,71 +430,71 @@ const mt = {
430
430
  ));
431
431
  break;
432
432
  case "zoomIn":
433
- c.value.scale < g && (c.value.scale = Number.parseFloat(
433
+ c.value.scale < w && (c.value.scale = Number.parseFloat(
434
434
  (c.value.scale * h).toFixed(3)
435
435
  ));
436
436
  break;
437
437
  case "clockwise":
438
- c.value.deg += x, C("rotate", c.value.deg);
438
+ c.value.deg += x, z("rotate", c.value.deg);
439
439
  break;
440
440
  case "anticlockwise":
441
- c.value.deg -= x, C("rotate", c.value.deg);
441
+ c.value.deg -= x, z("rotate", c.value.deg);
442
442
  break;
443
443
  }
444
444
  c.value.enableTransition = k;
445
445
  }
446
- return Q(de, () => {
447
- Ce(() => {
446
+ return Q(ve, () => {
447
+ ze(() => {
448
448
  const t = L.value[0];
449
- t != null && t.complete || (m.value = !0);
449
+ t != null && t.complete || (_.value = !0);
450
450
  });
451
- }), Q(b, (t) => {
452
- j(), C("switch", t);
451
+ }), Q(y, (t) => {
452
+ j(), z("switch", t);
453
453
  }), Le(() => {
454
- var t, r;
455
- we(), (r = (t = p.value) == null ? void 0 : t.focus) == null || r.call(t);
454
+ var t, o;
455
+ ge(), (o = (t = p.value) == null ? void 0 : t.focus) == null || o.call(t);
456
456
  }), n({
457
457
  /**
458
458
  * @description manually switch image
459
459
  */
460
460
  setActiveItem: Y
461
- }), (t, r) => (_(), ee(Ne, { to: "body" }, [
461
+ }), (t, o) => (d(), ee(Ne, { to: "body" }, [
462
462
  f(Ee, {
463
463
  name: "viewer-fade",
464
464
  appear: ""
465
465
  }, {
466
- default: O(() => [
467
- u(
466
+ default: b(() => [
467
+ i(
468
468
  "div",
469
469
  {
470
470
  ref_key: "wrapper",
471
471
  ref: p,
472
472
  tabindex: -1,
473
- class: w(o(l).e("wrapper")),
474
- style: te({ zIndex: _e.value })
473
+ class: g(r(l).e("wrapper")),
474
+ style: te({ zIndex: de.value })
475
475
  },
476
476
  [
477
- u(
477
+ i(
478
478
  "div",
479
479
  {
480
- class: w(o(l).e("mask")),
481
- onClick: r[0] || (r[0] = Me((s) => t.hideOnClickModal && X(), ["self"]))
480
+ class: g(r(l).e("mask")),
481
+ onClick: o[0] || (o[0] = Ae((s) => t.hideOnClickModal && X(), ["self"]))
482
482
  },
483
483
  null,
484
484
  2
485
485
  /* CLASS */
486
486
  ),
487
487
  S(" CLOSE "),
488
- u(
488
+ i(
489
489
  "span",
490
490
  {
491
- class: w([o(l).e("btn"), o(l).e("close")]),
491
+ class: g([r(l).e("btn"), r(l).e("close")]),
492
492
  onClick: X
493
493
  },
494
494
  [
495
- f(o(z), null, {
496
- default: O(() => [
497
- f(o(nt))
495
+ f(r(C), null, {
496
+ default: b(() => [
497
+ f(r(nt))
498
498
  ]),
499
499
  _: 1
500
500
  /* STABLE */
@@ -504,20 +504,20 @@ const mt = {
504
504
  /* CLASS */
505
505
  ),
506
506
  S(" ARROW "),
507
- ve.value ? S("v-if", !0) : (_(), v(
507
+ me.value ? S("v-if", !0) : (d(), m(
508
508
  ae,
509
509
  { key: 0 },
510
510
  [
511
- u(
511
+ i(
512
512
  "span",
513
513
  {
514
- class: w(pe.value),
514
+ class: g(pe.value),
515
515
  onClick: G
516
516
  },
517
517
  [
518
- f(o(z), null, {
519
- default: O(() => [
520
- f(o(Je))
518
+ f(r(C), null, {
519
+ default: b(() => [
520
+ f(r(Je))
521
521
  ]),
522
522
  _: 1
523
523
  /* STABLE */
@@ -526,16 +526,16 @@ const mt = {
526
526
  2
527
527
  /* CLASS */
528
528
  ),
529
- u(
529
+ i(
530
530
  "span",
531
531
  {
532
- class: w(me.value),
532
+ class: g(_e.value),
533
533
  onClick: K
534
534
  },
535
535
  [
536
- f(o(z), null, {
537
- default: O(() => [
538
- f(o(tt))
536
+ f(r(C), null, {
537
+ default: b(() => [
538
+ f(r(tt))
539
539
  ]),
540
540
  _: 1
541
541
  /* STABLE */
@@ -549,75 +549,75 @@ const mt = {
549
549
  /* STABLE_FRAGMENT */
550
550
  )),
551
551
  S(" ACTIONS "),
552
- u(
552
+ i(
553
553
  "div",
554
554
  {
555
- class: w([o(l).e("btn"), o(l).e("actions")])
555
+ class: g([r(l).e("btn"), r(l).e("actions")])
556
556
  },
557
557
  [
558
- u(
558
+ i(
559
559
  "div",
560
560
  {
561
- class: w(o(l).e("actions__inner"))
561
+ class: g(r(l).e("actions__inner"))
562
562
  },
563
563
  [
564
- f(o(z), {
565
- onClick: r[1] || (r[1] = (s) => E("zoomOut"))
564
+ f(r(C), {
565
+ onClick: o[1] || (o[1] = (s) => E("zoomOut"))
566
566
  }, {
567
- default: O(() => [
568
- f(o(pt))
567
+ default: b(() => [
568
+ f(r(pt))
569
569
  ]),
570
570
  _: 1
571
571
  /* STABLE */
572
572
  }),
573
- f(o(z), {
574
- onClick: r[2] || (r[2] = (s) => E("zoomIn"))
573
+ f(r(C), {
574
+ onClick: o[2] || (o[2] = (s) => E("zoomIn"))
575
575
  }, {
576
- default: O(() => [
577
- f(o(vt))
576
+ default: b(() => [
577
+ f(r(mt))
578
578
  ]),
579
579
  _: 1
580
580
  /* STABLE */
581
581
  }),
582
- u(
582
+ i(
583
583
  "i",
584
584
  {
585
- class: w(o(l).e("actions__divider"))
585
+ class: g(r(l).e("actions__divider"))
586
586
  },
587
587
  null,
588
588
  2
589
589
  /* CLASS */
590
590
  ),
591
- f(o(z), { onClick: Z }, {
592
- default: O(() => [
593
- (_(), ee(Te(B.value.icon)))
591
+ f(r(C), { onClick: Z }, {
592
+ default: b(() => [
593
+ (d(), ee(Me(B.value.icon)))
594
594
  ]),
595
595
  _: 1
596
596
  /* STABLE */
597
597
  }),
598
- u(
598
+ i(
599
599
  "i",
600
600
  {
601
- class: w(o(l).e("actions__divider"))
601
+ class: g(r(l).e("actions__divider"))
602
602
  },
603
603
  null,
604
604
  2
605
605
  /* CLASS */
606
606
  ),
607
- f(o(z), {
608
- onClick: r[3] || (r[3] = (s) => E("anticlockwise"))
607
+ f(r(C), {
608
+ onClick: o[3] || (o[3] = (s) => E("anticlockwise"))
609
609
  }, {
610
- default: O(() => [
611
- f(o(lt))
610
+ default: b(() => [
611
+ f(r(lt))
612
612
  ]),
613
613
  _: 1
614
614
  /* STABLE */
615
615
  }),
616
- f(o(z), {
617
- onClick: r[4] || (r[4] = (s) => E("clockwise"))
616
+ f(r(C), {
617
+ onClick: o[4] || (o[4] = (s) => E("clockwise"))
618
618
  }, {
619
- default: O(() => [
620
- f(o(it))
619
+ default: b(() => [
620
+ f(r(ut))
621
621
  ]),
622
622
  _: 1
623
623
  /* STABLE */
@@ -631,28 +631,28 @@ const mt = {
631
631
  /* CLASS */
632
632
  ),
633
633
  S(" CANVAS "),
634
- u(
634
+ i(
635
635
  "div",
636
636
  {
637
- class: w(o(l).e("canvas"))
637
+ class: g(r(l).e("canvas"))
638
638
  },
639
639
  [
640
- (_(!0), v(
640
+ (d(!0), m(
641
641
  ae,
642
642
  null,
643
- Ve(t.urlList, (s, g) => Se((_(), v("img", {
643
+ Te(t.urlList, (s, w) => Ve((d(), m("img", {
644
644
  ref_for: !0,
645
- ref: (h) => L.value[g] = h,
645
+ ref: (h) => L.value[w] = h,
646
646
  key: s,
647
647
  src: s,
648
- style: te(ge.value),
649
- class: w(o(l).e("img")),
648
+ style: te(we.value),
649
+ class: g(r(l).e("img")),
650
650
  crossorigin: t.crossorigin,
651
651
  onLoad: xe,
652
- onError: ye,
653
- onMousedown: Ie
654
- }, null, 46, wt)), [
655
- [Re, g === b.value]
652
+ onError: Ie,
653
+ onMousedown: Oe
654
+ }, null, 46, gt)), [
655
+ [Se, w === y.value]
656
656
  ])),
657
657
  128
658
658
  /* KEYED_FRAGMENT */
@@ -661,7 +661,7 @@ const mt = {
661
661
  2
662
662
  /* CLASS */
663
663
  ),
664
- Ae(t.$slots, "default")
664
+ Re(t.$slots, "default")
665
665
  ],
666
666
  6
667
667
  /* CLASS, STYLE */
@@ -672,8 +672,8 @@ const mt = {
672
672
  })
673
673
  ]));
674
674
  }
675
- }), Ot = Xe(ht);
675
+ }), bt = Xe(ht);
676
676
  export {
677
- Ot as IkImageViewer,
678
- Ot as default
677
+ bt as IkImageViewer,
678
+ bt as default
679
679
  };