iking-web-ui-pro 1.2.4 → 1.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/dist/IkApprovalProcess/ik.index.es.js +159 -156
  2. package/dist/IkApprovalProcess/iking-web-ui-pro.css +1 -1
  3. package/dist/IkApprovalProcessDetail/ik.index.es.js +4259 -4078
  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 +15 -15
  7. package/dist/IkBaseDialog/iking-web-ui-pro.css +1 -1
  8. package/dist/IkBottomOperate/ik.index.es.js +1 -1
  9. package/dist/IkBtnContent/ik.index.es.js +21 -21
  10. package/dist/IkBtnSetting/ik.index.es.js +25 -25
  11. package/dist/IkBtnSetting/iking-web-ui-pro.css +1 -1
  12. package/dist/IkCalendar/ik.index.es.js +2145 -2093
  13. package/dist/IkCalendar/iking-web-ui-pro.css +1 -1
  14. package/dist/IkCollapseCard/ik.index.es.js +6 -6
  15. package/dist/IkCollapseCard/iking-web-ui-pro.css +1 -1
  16. package/dist/IkCurrencyInput/ik.index.es.js +5 -5
  17. package/dist/IkDescription/ik.index.es.js +4219 -4038
  18. package/dist/IkDescription/iking-web-ui-pro.css +1 -1
  19. package/dist/IkDetailPreviewFiles/ik.index.es.js +4339 -4158
  20. package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
  21. package/dist/IkDragList/ik.index.es.js +11 -11
  22. package/dist/IkDragList/iking-web-ui-pro.css +1 -1
  23. package/dist/IkEmpty/ik.index.es.js +6 -6
  24. package/dist/IkEmpty/iking-web-ui-pro.css +1 -1
  25. package/dist/IkExpandCollapse/ik.index.es.js +11 -11
  26. package/dist/IkExpandCollapse/iking-web-ui-pro.css +1 -1
  27. package/dist/IkFileIcon/ik.index.es.js +13 -13
  28. package/dist/IkHorizontalStepBar/ik.index.es.js +54 -54
  29. package/dist/IkHorizontalStepBar/iking-web-ui-pro.css +1 -1
  30. package/dist/IkIconPicker/ik.index.es.js +8 -8
  31. package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
  32. package/dist/IkImageUploadEditor/ik.index.es.js +3469 -3312
  33. package/dist/IkImageUploadEditor/iking-web-ui-pro.css +2 -2
  34. package/dist/IkImageViewer/ik.index.es.js +180 -180
  35. package/dist/IkMonacoEditor/ik.index.es.js +221 -206
  36. package/dist/IkMonacoEditor/iking-web-ui-pro.css +1 -1
  37. package/dist/IkOnlyOffice/ik.index.es.js +3 -3
  38. package/dist/IkPageFull/ik.index.es.js +328 -325
  39. package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
  40. package/dist/IkPageTabs/ik.index.es.js +7 -7
  41. package/dist/IkPageTabs/iking-web-ui-pro.css +1 -1
  42. package/dist/IkPickerUser/ik.index.es.js +233 -230
  43. package/dist/IkPickerUser/iking-web-ui-pro.css +1 -1
  44. package/dist/IkPlayer/ik.index.es.js +1325 -1144
  45. package/dist/IkPlayer/iking-web-ui-pro.css +1 -1
  46. package/dist/IkPreviewFile/ik.index.es.js +4289 -4108
  47. package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
  48. package/dist/IkPreviewFileDialog/ik.index.es.js +4286 -4105
  49. package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
  50. package/dist/IkPrint/ik.index.es.js +106 -106
  51. package/dist/IkPrint/iking-web-ui-pro.css +1 -1
  52. package/dist/{index.es-AZOLYppY.mjs → IkPrint/index.es-DDNCkl-c.mjs} +1137 -1116
  53. package/dist/IkPrint/{jspdf.es.min-ByQMz4Ps.mjs → jspdf.es.min-DLP80Gi4.mjs} +3153 -3140
  54. package/dist/IkPrint/purify.es-D5dazAgD.mjs +553 -0
  55. package/dist/IkPrintConfig/ik.index.es.js +3 -3
  56. package/dist/IkPrintView/ik.index.es.js +1 -1
  57. package/dist/IkRadioGroup/ik.index.es.js +7 -7
  58. package/dist/IkRadioGroup/iking-web-ui-pro.css +1 -1
  59. package/dist/IkSearch/ik.index.es.js +293 -290
  60. package/dist/IkSearch/iking-web-ui-pro.css +1 -1
  61. package/dist/IkSearchHead/ik.index.es.js +25 -25
  62. package/dist/IkSearchHead/iking-web-ui-pro.css +1 -1
  63. package/dist/IkSelectTag/ik.index.es.js +23 -23
  64. package/dist/IkSelectTag/iking-web-ui-pro.css +1 -1
  65. package/dist/IkSideText/ik.index.es.js +42 -39
  66. package/dist/IkSideText/iking-web-ui-pro.css +1 -1
  67. package/dist/IkStatu/ik.index.es.js +4 -4
  68. package/dist/IkStatu/iking-web-ui-pro.css +1 -1
  69. package/dist/IkStatuOver/ik.index.es.js +3 -3
  70. package/dist/IkStatuOver/iking-web-ui-pro.css +1 -1
  71. package/dist/IkSvgIcon/ik.index.es.js +23 -23
  72. package/dist/IkSvgIcon/iking-web-ui-pro.css +1 -1
  73. package/dist/IkTemplateOfficeConfig/ik.index.es.js +1 -1
  74. package/dist/IkTinymce/ik.index.es.js +9005 -9004
  75. package/dist/IkTinymce/iking-web-ui-pro.css +1 -1
  76. package/dist/IkTooltip/ik.index.es.js +2 -2
  77. package/dist/IkTree/ik.index.es.js +31 -31
  78. package/dist/IkTree/iking-web-ui-pro.css +1 -1
  79. package/dist/IkUploadFile/ik.index.es.js +4538 -4354
  80. package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
  81. package/dist/IkUploadImage/ik.index.es.js +418 -416
  82. package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
  83. package/dist/IkVerticalStepBar/ik.index.es.js +15 -15
  84. package/dist/IkVerticalStepBar/iking-web-ui-pro.css +1 -1
  85. package/dist/Provider/ik.index.es.js +14 -10
  86. package/dist/iking-web-ui-pro.css +2 -2
  87. package/dist/{index-CSH3eGvq.mjs → index-Cba2fjdk.mjs} +38137 -37734
  88. package/dist/{IkPrint/index.es-DzGIwinU.mjs → index.es-DqdRfgV4.mjs} +1135 -1120
  89. package/dist/index.es.js +1 -1
  90. package/dist/index.umd.js +234 -233
  91. package/dist/{jspdf.es.min-WuSENyiA.mjs → jspdf.es.min-DsM3mxSl.mjs} +3153 -3140
  92. package/dist/purify.es-D5dazAgD.mjs +553 -0
  93. package/dist/src/components/IkBtnContent/index.d.ts +1 -1
  94. package/dist/src/components/IkBtnContent/src/index.d.ts +1 -1
  95. package/dist/src/components/IkDragList/index.d.ts +6 -6
  96. package/dist/src/components/IkDragList/src/IkDragList.vue.d.ts +2 -2
  97. package/dist/src/components/IkMonacoEditor/index.d.ts +8 -8
  98. package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +8 -8
  99. package/dist/src/components/IkPageFull/src/IkDialog.d.ts +2 -2
  100. package/dist/src/components/IkPickerUser/index.d.ts +1 -1
  101. package/dist/src/components/IkPickerUser/src/list/utils.d.ts +3 -1
  102. package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +1 -1
  103. package/dist/src/components/IkSideText/IkSideText.vue.d.ts +2 -2
  104. package/dist/src/components/IkSideText/index.d.ts +2 -2
  105. package/dist/src/components/IkStatu/index.d.ts +3 -3
  106. package/dist/src/components/IkStatu/src/index.vue.d.ts +3 -3
  107. package/dist/src/components/IkSvgIcon/index.d.ts +8 -8
  108. package/dist/src/components/IkTinymce/index.d.ts +2 -2
  109. package/dist/src/components/IkTinymce/src/index.vue.d.ts +2 -2
  110. package/dist/src/components/IkTooltip/index.d.ts +3 -3
  111. package/dist/src/components/IkTooltip/src/index.vue.d.ts +1 -1
  112. package/dist/src/components/IkTree/IkTree.vue.d.ts +3440 -888
  113. package/dist/src/components/IkTree/index.d.ts +11004 -3348
  114. package/dist/src/components/IkUploadFile/index.d.ts +3 -3
  115. package/dist/src/components/IkUploadFile/src/index.vue.d.ts +2 -2
  116. package/dist/src/components/IkUploadImage/index.d.ts +6 -6
  117. package/dist/src/components/IkUploadImage/src/index.vue.d.ts +3 -3
  118. package/dist/src/components/Provider/ProviderConfig.vue.d.ts +9 -0
  119. package/dist/src/components/Provider/index.d.ts +15 -0
  120. package/dist/src/utils/use-provider.d.ts +1 -0
  121. package/package.json +1 -1
  122. package/dist/IkPrint/purify.es-Bb-cVdCo.mjs +0 -536
  123. package/dist/purify.es-Bb-cVdCo.mjs +0 -536
@@ -1,19 +1,49 @@
1
- import { defineComponent as Q, computed as $, resolveComponent as T, createElementBlock as d, openBlock as s, normalizeStyle as ue, normalizeClass as y, createBlock as P, Fragment as F, createElementVNode as b, withCtx as N, mergeProps as ce, createTextVNode as se, toDisplayString as de, ref as L, watch as fe, onMounted as ge, nextTick as V, onUnmounted as me, createVNode as W, createCommentVNode as ve } from "vue";
2
- import { paramType as A, ikColor as pe, buildUUID as he, _ as ye, ikDom as be } from "iking-utils-pro";
1
+ import { defineComponent as Q, computed as P, resolveComponent as T, openBlock as s, createElementBlock as d, normalizeStyle as ue, normalizeClass as b, Fragment as F, createElementVNode as w, createBlock as $, withCtx as N, mergeProps as ce, createTextVNode as se, toDisplayString as de, ref as L, watch as fe, onMounted as ge, nextTick as V, onUnmounted as me, createVNode as W, createCommentVNode as ve } from "vue";
2
+ import { paramType as _, ikColor as pe, buildUUID as he, _ as ye, ikDom as be } from "iking-utils-pro";
3
3
  import { ElMessage as we } from "element-plus";
4
4
  const Z = (e, t) => (e.install = (r) => {
5
5
  for (const n of [e, ...Object.values({})])
6
6
  r.component(n.name, n);
7
7
  }, e);
8
- function Oe(e, t, r) {
9
- return t in e ? Object.defineProperty(e, t, {
8
+ function q(e, t) {
9
+ (t == null || t > e.length) && (t = e.length);
10
+ for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
11
+ return n;
12
+ }
13
+ function Oe(e) {
14
+ if (Array.isArray(e)) return e;
15
+ }
16
+ function Se(e, t, r) {
17
+ return (t = $e(t)) in e ? Object.defineProperty(e, t, {
10
18
  value: r,
11
19
  enumerable: !0,
12
20
  configurable: !0,
13
21
  writable: !0
14
22
  }) : e[t] = r, e;
15
23
  }
16
- function q(e, t) {
24
+ function je(e, t) {
25
+ var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
26
+ if (r != null) {
27
+ var n, o, a, i, c = [], u = !0, f = !1;
28
+ try {
29
+ if (a = (r = r.call(e)).next, t !== 0) for (; !(u = (n = a.call(r)).done) && (c.push(n.value), c.length !== t); u = !0) ;
30
+ } catch (v) {
31
+ f = !0, o = v;
32
+ } finally {
33
+ try {
34
+ if (!u && r.return != null && (i = r.return(), Object(i) !== i)) return;
35
+ } finally {
36
+ if (f) throw o;
37
+ }
38
+ }
39
+ return c;
40
+ }
41
+ }
42
+ function ke() {
43
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
44
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
45
+ }
46
+ function H(e, t) {
17
47
  var r = Object.keys(e);
18
48
  if (Object.getOwnPropertySymbols) {
19
49
  var n = Object.getOwnPropertySymbols(e);
@@ -23,76 +53,60 @@ function q(e, t) {
23
53
  }
24
54
  return r;
25
55
  }
26
- function H(e) {
56
+ function U(e) {
27
57
  for (var t = 1; t < arguments.length; t++) {
28
58
  var r = arguments[t] != null ? arguments[t] : {};
29
- t % 2 ? q(Object(r), !0).forEach(function(n) {
30
- Oe(e, n, r[n]);
31
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : q(Object(r)).forEach(function(n) {
59
+ t % 2 ? H(Object(r), !0).forEach(function(n) {
60
+ Se(e, n, r[n]);
61
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : H(Object(r)).forEach(function(n) {
32
62
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
33
63
  });
34
64
  }
35
65
  return e;
36
66
  }
37
- function Se(e, t) {
38
- if (e == null) return {};
39
- var r = {}, n = Object.keys(e), o, a;
40
- for (a = 0; a < n.length; a++)
41
- o = n[a], !(t.indexOf(o) >= 0) && (r[o] = e[o]);
42
- return r;
43
- }
44
- function ke(e, t) {
67
+ function Ce(e, t) {
45
68
  if (e == null) return {};
46
- var r = Se(e, t), n, o;
69
+ var r, n, o = Ie(e, t);
47
70
  if (Object.getOwnPropertySymbols) {
48
71
  var a = Object.getOwnPropertySymbols(e);
49
- for (o = 0; o < a.length; o++)
50
- n = a[o], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (r[n] = e[n]);
72
+ for (n = 0; n < a.length; n++) r = a[n], t.indexOf(r) === -1 && {}.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
51
73
  }
52
- return r;
53
- }
54
- function je(e, t) {
55
- return Ce(e) || Ie(e, t) || $e(e, t) || Te();
56
- }
57
- function Ce(e) {
58
- if (Array.isArray(e)) return e;
74
+ return o;
59
75
  }
60
76
  function Ie(e, t) {
61
- if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(e)))) {
62
- var r = [], n = !0, o = !1, a = void 0;
63
- try {
64
- for (var i = e[Symbol.iterator](), c; !(n = (c = i.next()).done) && (r.push(c.value), !(t && r.length === t)); n = !0)
65
- ;
66
- } catch (u) {
67
- o = !0, a = u;
68
- } finally {
69
- try {
70
- !n && i.return != null && i.return();
71
- } finally {
72
- if (o) throw a;
73
- }
74
- }
75
- return r;
77
+ if (e == null) return {};
78
+ var r = {};
79
+ for (var n in e) if ({}.hasOwnProperty.call(e, n)) {
80
+ if (t.indexOf(n) !== -1) continue;
81
+ r[n] = e[n];
76
82
  }
83
+ return r;
77
84
  }
78
- function $e(e, t) {
79
- if (e) {
80
- if (typeof e == "string") return U(e, t);
81
- var r = Object.prototype.toString.call(e).slice(8, -1);
82
- if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set") return Array.from(e);
83
- if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return U(e, t);
85
+ function Pe(e, t) {
86
+ return Oe(e) || je(e, t) || De(e, t) || ke();
87
+ }
88
+ function Te(e, t) {
89
+ if (typeof e != "object" || !e) return e;
90
+ var r = e[Symbol.toPrimitive];
91
+ if (r !== void 0) {
92
+ var n = r.call(e, t);
93
+ if (typeof n != "object") return n;
94
+ throw new TypeError("@@toPrimitive must return a primitive value.");
84
95
  }
96
+ return (t === "string" ? String : Number)(e);
85
97
  }
86
- function U(e, t) {
87
- (t == null || t > e.length) && (t = e.length);
88
- for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r];
89
- return n;
98
+ function $e(e) {
99
+ var t = Te(e, "string");
100
+ return typeof t == "symbol" ? t : t + "";
90
101
  }
91
- function Te() {
92
- throw new TypeError(`Invalid attempt to destructure non-iterable instance.
93
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
102
+ function De(e, t) {
103
+ if (e) {
104
+ if (typeof e == "string") return q(e, t);
105
+ var r = {}.toString.call(e).slice(8, -1);
106
+ return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? q(e, t) : void 0;
107
+ }
94
108
  }
95
- function Pe(e, t, r) {
109
+ function Be(e, t, r) {
96
110
  return t in e ? Object.defineProperty(e, t, {
97
111
  value: r,
98
112
  enumerable: !0,
@@ -114,14 +128,14 @@ function K(e) {
114
128
  for (var t = 1; t < arguments.length; t++) {
115
129
  var r = arguments[t] != null ? arguments[t] : {};
116
130
  t % 2 ? R(Object(r), !0).forEach(function(n) {
117
- Pe(e, n, r[n]);
131
+ Be(e, n, r[n]);
118
132
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : R(Object(r)).forEach(function(n) {
119
133
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
120
134
  });
121
135
  }
122
136
  return e;
123
137
  }
124
- function De() {
138
+ function Me() {
125
139
  for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
126
140
  t[r] = arguments[r];
127
141
  return function(n) {
@@ -144,35 +158,35 @@ function S(e) {
144
158
  function D(e) {
145
159
  return {}.toString.call(e).includes("Object");
146
160
  }
147
- function Be(e) {
161
+ function _e(e) {
148
162
  return !Object.keys(e).length;
149
163
  }
150
- function k(e) {
164
+ function j(e) {
151
165
  return typeof e == "function";
152
166
  }
153
- function Me(e, t) {
167
+ function Ee(e, t) {
154
168
  return Object.prototype.hasOwnProperty.call(e, t);
155
169
  }
156
170
  function Ae(e, t) {
157
171
  return D(t) || m("changeType"), Object.keys(t).some(function(r) {
158
- return !Me(e, r);
172
+ return !Ee(e, r);
159
173
  }) && m("changeField"), t;
160
174
  }
161
- function Ee(e) {
162
- k(e) || m("selectorType");
175
+ function ze(e) {
176
+ j(e) || m("selectorType");
163
177
  }
164
- function _e(e) {
165
- k(e) || D(e) || m("handlerType"), D(e) && Object.values(e).some(function(t) {
166
- return !k(t);
178
+ function Fe(e) {
179
+ j(e) || D(e) || m("handlerType"), D(e) && Object.values(e).some(function(t) {
180
+ return !j(t);
167
181
  }) && m("handlersType");
168
182
  }
169
- function ze(e) {
170
- e || m("initialIsRequired"), D(e) || m("initialType"), Be(e) && m("initialContent");
183
+ function Ne(e) {
184
+ e || m("initialIsRequired"), D(e) || m("initialType"), _e(e) && m("initialContent");
171
185
  }
172
- function Fe(e, t) {
186
+ function xe(e, t) {
173
187
  throw new Error(e[t] || e.default);
174
188
  }
175
- var Ne = {
189
+ var Le = {
176
190
  initialIsRequired: "initial state is required",
177
191
  initialType: "initial state should be an object",
178
192
  initialContent: "initial state shouldn't be an empty object",
@@ -182,49 +196,49 @@ var Ne = {
182
196
  changeType: "provided value of changes should be an object",
183
197
  changeField: 'it seams you want to change a field in the state which is not specified in the "initial" state',
184
198
  default: "an unknown error accured in `state-local` package"
185
- }, m = S(Fe)(Ne), I = {
199
+ }, m = S(xe)(Le), I = {
186
200
  changes: Ae,
187
- selector: Ee,
188
- handler: _e,
189
- initial: ze
201
+ selector: ze,
202
+ handler: Fe,
203
+ initial: Ne
190
204
  };
191
- function xe(e) {
205
+ function Ve(e) {
192
206
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
193
207
  I.initial(e), I.handler(t);
194
208
  var r = {
195
209
  current: e
196
- }, n = S(We)(r, t), o = S(Ve)(r), a = S(I.changes)(e), i = S(Le)(r);
210
+ }, n = S(He)(r, t), o = S(qe)(r), a = S(I.changes)(e), i = S(We)(r);
197
211
  function c() {
198
- var g = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(w) {
199
- return w;
212
+ var f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(v) {
213
+ return v;
200
214
  };
201
- return I.selector(g), g(r.current);
215
+ return I.selector(f), f(r.current);
202
216
  }
203
- function u(g) {
204
- De(n, o, a, i)(g);
217
+ function u(f) {
218
+ Me(n, o, a, i)(f);
205
219
  }
206
220
  return [c, u];
207
221
  }
208
- function Le(e, t) {
209
- return k(t) ? t(e.current) : t;
222
+ function We(e, t) {
223
+ return j(t) ? t(e.current) : t;
210
224
  }
211
- function Ve(e, t) {
225
+ function qe(e, t) {
212
226
  return e.current = K(K({}, e.current), t), t;
213
227
  }
214
- function We(e, t, r) {
215
- return k(t) ? t(e.current) : Object.keys(r).forEach(function(n) {
228
+ function He(e, t, r) {
229
+ return j(t) ? t(e.current) : Object.keys(r).forEach(function(n) {
216
230
  var o;
217
231
  return (o = t[n]) === null || o === void 0 ? void 0 : o.call(t, e.current[n]);
218
232
  }), r;
219
233
  }
220
- var qe = {
221
- create: xe
222
- }, He = {
234
+ var Ue = {
235
+ create: Ve
236
+ }, Re = {
223
237
  paths: {
224
- vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"
238
+ vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"
225
239
  }
226
240
  };
227
- function Ue(e) {
241
+ function Ke(e) {
228
242
  return function t() {
229
243
  for (var r = this, n = arguments.length, o = new Array(n), a = 0; a < n; a++)
230
244
  o[a] = arguments[a];
@@ -235,20 +249,20 @@ function Ue(e) {
235
249
  };
236
250
  };
237
251
  }
238
- function Re(e) {
252
+ function Ye(e) {
239
253
  return {}.toString.call(e).includes("Object");
240
254
  }
241
- function Ke(e) {
242
- return e || Y("configIsRequired"), Re(e) || Y("configType"), e.urls ? (Ye(), {
255
+ function Xe(e) {
256
+ return e || Y("configIsRequired"), Ye(e) || Y("configType"), e.urls ? (Ge(), {
243
257
  paths: {
244
258
  vs: e.urls.monacoBase
245
259
  }
246
260
  }) : e;
247
261
  }
248
- function Ye() {
262
+ function Ge() {
249
263
  console.warn(ee.deprecation);
250
264
  }
251
- function Xe(e, t) {
265
+ function Je(e, t) {
252
266
  throw new Error(e[t] || e.default);
253
267
  }
254
268
  var ee = {
@@ -265,9 +279,9 @@ var ee = {
265
279
 
266
280
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
267
281
  `
268
- }, Y = Ue(Xe)(ee), Ge = {
269
- config: Ke
270
- }, Je = function() {
282
+ }, Y = Ke(Je)(ee), Qe = {
283
+ config: Xe
284
+ }, Ze = function() {
271
285
  for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
272
286
  r[n] = arguments[n];
273
287
  return function(o) {
@@ -279,31 +293,31 @@ var ee = {
279
293
  function te(e, t) {
280
294
  return Object.keys(t).forEach(function(r) {
281
295
  t[r] instanceof Object && e[r] && Object.assign(t[r], te(e[r], t[r]));
282
- }), H(H({}, e), t);
296
+ }), U(U({}, e), t);
283
297
  }
284
- var Qe = {
298
+ var et = {
285
299
  type: "cancelation",
286
300
  msg: "operation is manually canceled"
287
301
  };
288
302
  function E(e) {
289
303
  var t = !1, r = new Promise(function(n, o) {
290
304
  e.then(function(a) {
291
- return t ? o(Qe) : n(a);
305
+ return t ? o(et) : n(a);
292
306
  }), e.catch(o);
293
307
  });
294
308
  return r.cancel = function() {
295
309
  return t = !0;
296
310
  }, r;
297
311
  }
298
- var Ze = qe.create({
299
- config: He,
312
+ var tt = ["monaco"], nt = Ue.create({
313
+ config: Re,
300
314
  isInitialized: !1,
301
315
  resolve: null,
302
316
  reject: null,
303
317
  monaco: null
304
- }), ne = je(Ze, 2), j = ne[0], B = ne[1];
305
- function et(e) {
306
- var t = Ge.config(e), r = t.monaco, n = ke(t, ["monaco"]);
318
+ }), ne = Pe(nt, 2), k = ne[0], B = ne[1];
319
+ function rt(e) {
320
+ var t = Qe.config(e), r = t.monaco, n = Ce(t, tt);
307
321
  B(function(o) {
308
322
  return {
309
323
  config: te(o.config, n),
@@ -311,8 +325,8 @@ function et(e) {
311
325
  };
312
326
  });
313
327
  }
314
- function tt() {
315
- var e = j(function(t) {
328
+ function ot() {
329
+ var e = k(function(t) {
316
330
  var r = t.monaco, n = t.isInitialized, o = t.resolve;
317
331
  return {
318
332
  monaco: r,
@@ -324,34 +338,34 @@ function tt() {
324
338
  if (B({
325
339
  isInitialized: !0
326
340
  }), e.monaco)
327
- return e.resolve(e.monaco), E(_);
341
+ return e.resolve(e.monaco), E(A);
328
342
  if (window.monaco && window.monaco.editor)
329
- return re(window.monaco), e.resolve(window.monaco), E(_);
330
- Je(nt, ot)(at);
343
+ return re(window.monaco), e.resolve(window.monaco), E(A);
344
+ Ze(at, lt)(ut);
331
345
  }
332
- return E(_);
346
+ return E(A);
333
347
  }
334
- function nt(e) {
348
+ function at(e) {
335
349
  return document.body.appendChild(e);
336
350
  }
337
- function rt(e) {
351
+ function it(e) {
338
352
  var t = document.createElement("script");
339
353
  return e && (t.src = e), t;
340
354
  }
341
- function ot(e) {
342
- var t = j(function(n) {
355
+ function lt(e) {
356
+ var t = k(function(n) {
343
357
  var o = n.config, a = n.reject;
344
358
  return {
345
359
  config: o,
346
360
  reject: a
347
361
  };
348
- }), r = rt("".concat(t.config.paths.vs, "/loader.js"));
362
+ }), r = it("".concat(t.config.paths.vs, "/loader.js"));
349
363
  return r.onload = function() {
350
364
  return e();
351
365
  }, r.onerror = t.reject, r;
352
366
  }
353
- function at() {
354
- var e = j(function(r) {
367
+ function ut() {
368
+ var e = k(function(r) {
355
369
  var n = r.config, o = r.resolve, a = r.reject;
356
370
  return {
357
371
  config: n,
@@ -360,31 +374,32 @@ function at() {
360
374
  };
361
375
  }), t = window.require;
362
376
  t.config(e.config), t(["vs/editor/editor.main"], function(r) {
363
- re(r), e.resolve(r);
377
+ var n = r.m || r;
378
+ re(n), e.resolve(n);
364
379
  }, function(r) {
365
380
  e.reject(r);
366
381
  });
367
382
  }
368
383
  function re(e) {
369
- j().monaco || B({
384
+ k().monaco || B({
370
385
  monaco: e
371
386
  });
372
387
  }
373
- function it() {
374
- return j(function(e) {
388
+ function ct() {
389
+ return k(function(e) {
375
390
  var t = e.monaco;
376
391
  return t;
377
392
  });
378
393
  }
379
- var _ = new Promise(function(e, t) {
394
+ var A = new Promise(function(e, t) {
380
395
  return B({
381
396
  resolve: e,
382
397
  reject: t
383
398
  });
384
399
  }), oe = {
385
- config: et,
386
- init: tt,
387
- __getMonacoInstance: it
400
+ config: rt,
401
+ init: ot,
402
+ __getMonacoInstance: ct
388
403
  };
389
404
  const X = {
390
405
  automaticLayout: !0,
@@ -423,7 +438,7 @@ const X = {
423
438
  renderLineHighlight: "line",
424
439
  renderWhitespace: "none",
425
440
  scrollBeyondLastColumn: 2
426
- }, lt = (e) => {
441
+ }, st = (e) => {
427
442
  const t = "datav-dark-theme";
428
443
  return e.editor.defineTheme(t, {
429
444
  base: "vs-dark",
@@ -442,7 +457,7 @@ const X = {
442
457
  }), t;
443
458
  };
444
459
  let x = [];
445
- const ut = (e, t) => {
460
+ const dt = (e, t) => {
446
461
  const r = [];
447
462
  for (let n = 0; n < x.length; n++) {
448
463
  const o = x[n];
@@ -455,7 +470,7 @@ const ut = (e, t) => {
455
470
  });
456
471
  }
457
472
  return r;
458
- }, G = /* @__PURE__ */ new Map(), ct = (e, t, r) => {
473
+ }, G = /* @__PURE__ */ new Map(), ft = (e, t, r) => {
459
474
  if (r && r.length > 0) {
460
475
  if (x = r, G.has(t))
461
476
  return;
@@ -469,14 +484,14 @@ const ut = (e, t) => {
469
484
  endColumn: a.endColumn
470
485
  };
471
486
  return {
472
- suggestions: ut(e, i)
487
+ suggestions: dt(e, i)
473
488
  };
474
489
  }
475
490
  });
476
491
  }
477
492
  }, J = (e, t) => {
478
493
  let r = t;
479
- return (A.isObject(r) || A.isArray(r)) && (r = JSON.stringify(r, null, 2)), A.isString(r) ? r : `${r}`;
494
+ return (_.isObject(r) || _.isArray(r)) && (r = JSON.stringify(r, null, 2)), _.isString(r) ? r : `${r}`;
480
495
  }, z = (e, t) => {
481
496
  e.getAction("editor.action.formatDocument").run();
482
497
  }, ae = (e, t) => {
@@ -484,15 +499,15 @@ const ut = (e, t) => {
484
499
  for (const [n, o] of t)
485
500
  r[n] = o;
486
501
  return r;
487
- }, st = {
502
+ }, gt = {
488
503
  key: 1,
489
504
  class: "h-[1em] w-[1em]",
490
505
  "aria-hidden": "true"
491
- }, dt = ["xlink:href"], ft = ["src"], gt = {
506
+ }, mt = ["xlink:href"], vt = ["src"], pt = {
492
507
  key: 1,
493
508
  class: "h-[1em] w-[1em]",
494
509
  "aria-hidden": "true"
495
- }, mt = ["xlink:href"], vt = ["src"], pt = /* @__PURE__ */ Q({
510
+ }, ht = ["xlink:href"], yt = ["src"], bt = /* @__PURE__ */ Q({
496
511
  name: "IkSvgIcon",
497
512
  __name: "index",
498
513
  props: {
@@ -521,10 +536,10 @@ const ut = (e, t) => {
521
536
  },
522
537
  emits: ["click", "mouseenter", "mouseleave", "dblclick"],
523
538
  setup(e, { emit: t }) {
524
- const r = e, n = $(() => r), o = $(() => {
539
+ const r = e, n = P(() => r), o = P(() => {
525
540
  const { name: l } = n.value;
526
541
  return /^http?:\/\//.test(l) ? "img" : /i-[^:]+:[^:]+/.test(l) ? "unocss" : l != null && l.startsWith("iksig") ? "iksig" : l != null && l.includes(":") ? "iconify" : l != null && l.startsWith("iksvg") ? "svg" : "i";
527
- }), a = $(() => {
542
+ }), a = P(() => {
528
543
  const l = [];
529
544
  if (n.value.flip)
530
545
  switch (n.value.flip) {
@@ -539,7 +554,7 @@ const ut = (e, t) => {
539
554
  break;
540
555
  }
541
556
  n.value.rotate && l.push(`rotate(${n.value.rotate % 360}deg)`);
542
- const v = {
557
+ const p = {
543
558
  ...n.value.color && { color: n.value.color },
544
559
  ...n.value.size && { fontSize: typeof n.value.size == "number" ? `${n.value.size}px` : n.value.size },
545
560
  ...l.length && { transform: l.join(" ") },
@@ -549,22 +564,22 @@ const ut = (e, t) => {
549
564
  "--ik-icon-shallow-color": n.value.colorLight || pe.setOpacity(n.value.color, n.value.opacity)
550
565
  } : {}
551
566
  };
552
- return n.value.width && (v.width = v.height = typeof n.value.width == "number" ? `${n.value.width}px` : n.value.width), v;
567
+ return n.value.width && (p.width = p.height = typeof n.value.width == "number" ? `${n.value.width}px` : n.value.width), p;
553
568
  }), i = t, c = (l) => {
554
569
  i("click", l);
555
570
  }, u = (l) => {
556
571
  i("mouseenter", l);
557
- }, g = (l) => {
572
+ }, f = (l) => {
558
573
  i("mouseleave", l);
559
- }, w = (l) => {
574
+ }, v = (l) => {
560
575
  i("dblclick", l);
561
576
  };
562
- return (l, v) => {
577
+ return (l, p) => {
563
578
  const C = T("el-tooltip"), M = T("el-button");
564
579
  return s(), d(
565
580
  "i",
566
581
  {
567
- class: y(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
582
+ class: b(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
568
583
  [e.iconClass]: !0,
569
584
  [e.name]: o.value === "unocss",
570
585
  "show-bg": n.value.showBg || n.value.bg,
@@ -580,9 +595,9 @@ const ut = (e, t) => {
580
595
  }]),
581
596
  style: ue(a.value),
582
597
  onClick: c,
583
- onDblclick: w,
598
+ onDblclick: v,
584
599
  onMouseenter: u,
585
- onMouseleave: g
600
+ onMouseleave: f
586
601
  },
587
602
  [
588
603
  n.value.tableIconType === "icon" || !n.value.tableIconType ? (s(), d(
@@ -597,24 +612,24 @@ const ut = (e, t) => {
597
612
  "i",
598
613
  {
599
614
  key: 0,
600
- class: y(`iksig ${n.value.name}`)
615
+ class: b(`iksig ${n.value.name}`)
601
616
  },
602
617
  null,
603
618
  2
604
619
  /* CLASS */
605
- )) : o.value === "svg" ? (s(), d("svg", st, [
606
- b("use", {
620
+ )) : o.value === "svg" ? (s(), d("svg", gt, [
621
+ w("use", {
607
622
  "xlink:href": `#${n.value.name}`
608
- }, null, 8, dt)
623
+ }, null, 8, mt)
609
624
  ])) : o.value === "img" ? (s(), d("img", {
610
625
  key: 2,
611
626
  src: n.value.name,
612
627
  class: "h-[1em] w-[1em]"
613
- }, null, 8, ft)) : (s(), d(
628
+ }, null, 8, vt)) : (s(), d(
614
629
  "i",
615
630
  {
616
631
  key: 3,
617
- class: y(n.value.name)
632
+ class: b(n.value.name)
618
633
  },
619
634
  null,
620
635
  2
@@ -623,7 +638,7 @@ const ut = (e, t) => {
623
638
  ],
624
639
  64
625
640
  /* STABLE_FRAGMENT */
626
- )) : (s(), P(C, {
641
+ )) : (s(), $(C, {
627
642
  key: 1,
628
643
  content: n.value.title,
629
644
  placement: "top",
@@ -635,24 +650,24 @@ const ut = (e, t) => {
635
650
  "i",
636
651
  {
637
652
  key: 0,
638
- class: y(`iksig ${n.value.name}`)
653
+ class: b(`iksig ${n.value.name}`)
639
654
  },
640
655
  null,
641
656
  2
642
657
  /* CLASS */
643
- )) : o.value === "svg" ? (s(), d("svg", gt, [
644
- b("use", {
658
+ )) : o.value === "svg" ? (s(), d("svg", pt, [
659
+ w("use", {
645
660
  "xlink:href": `#${n.value.name}`
646
- }, null, 8, mt)
661
+ }, null, 8, ht)
647
662
  ])) : o.value === "img" ? (s(), d("img", {
648
663
  key: 2,
649
664
  src: n.value.name,
650
665
  class: "h-[1em] w-[1em]"
651
- }, null, 8, vt)) : (s(), d(
666
+ }, null, 8, yt)) : (s(), d(
652
667
  "i",
653
668
  {
654
669
  key: 3,
655
- class: y(n.value.name)
670
+ class: b(n.value.name)
656
671
  },
657
672
  null,
658
673
  2
@@ -665,7 +680,7 @@ const ut = (e, t) => {
665
680
  ],
666
681
  64
667
682
  /* STABLE_FRAGMENT */
668
- )) : (s(), P(M, ce({ key: 1 }, l.$attrs, {
683
+ )) : (s(), $(M, ce({ key: 1 }, l.$attrs, {
669
684
  type: ["warning", "error"].includes(n.value.type) ? "danger" : ""
670
685
  }), {
671
686
  default: N(() => [
@@ -684,16 +699,16 @@ const ut = (e, t) => {
684
699
  );
685
700
  };
686
701
  }
687
- }), ht = /* @__PURE__ */ ae(pt, [["__scopeId", "data-v-d5c74053"]]), yt = Z(ht);
702
+ }), wt = /* @__PURE__ */ ae(bt, [["__scopeId", "data-v-9ebb0a94"]]), Ot = Z(wt);
688
703
  oe.config({
689
704
  paths: {
690
705
  vs: "/vs"
691
706
  }
692
707
  });
693
- const bt = Q({
708
+ const St = Q({
694
709
  name: "IkMonacoEditor",
695
710
  components: {
696
- IkSvgIcon: yt
711
+ IkSvgIcon: Ot
697
712
  },
698
713
  props: {
699
714
  language: {
@@ -734,34 +749,34 @@ const bt = Q({
734
749
  },
735
750
  emits: ["change", "blur"],
736
751
  setup(e, t) {
737
- const r = L(!1), n = $(() => `datav-editor-${he()}`);
752
+ const r = L(!1), n = P(() => `datav-editor-${he()}`);
738
753
  let o = null, a = null, i = null;
739
- const c = "datav-dark-theme", u = L(!1), g = () => {
754
+ const c = "datav-dark-theme", u = L(!1), f = () => {
740
755
  a && be.copyText(a.getValue()).then(() => {
741
756
  we.success("复制成功");
742
757
  });
743
- }, w = () => {
758
+ }, v = () => {
744
759
  if (a) {
745
- const f = a.getValue();
760
+ const g = a.getValue();
746
761
  t.emit("change", {
747
- value: f,
762
+ value: g,
748
763
  extra: e.extra
749
764
  });
750
765
  }
751
766
  }, l = () => {
752
767
  if (a) {
753
- const f = a.getValue();
768
+ const g = a.getValue();
754
769
  t.emit("blur", {
755
- value: f,
770
+ value: g,
756
771
  extra: e.extra
757
772
  }), e.autoFormat && z(a, e.language);
758
773
  }
759
- }, v = ye.debounce(w, 300), C = () => {
760
- const f = document.querySelector(
774
+ }, p = ye.debounce(v, 300), C = () => {
775
+ const g = document.querySelector(
761
776
  ".datav-fullscreen-editor-dialog section"
762
777
  );
763
- if (f) {
764
- const p = Object.assign({}, X, e.options, {
778
+ if (g) {
779
+ const h = Object.assign({}, X, e.options, {
765
780
  tabSize: 2,
766
781
  value: "",
767
782
  language: e.language,
@@ -775,10 +790,10 @@ const bt = Q({
775
790
  });
776
791
  if (!o || !a)
777
792
  return;
778
- const h = o.editor.create(f, p);
779
- h.setValue(a.getValue()), e.autoFormat && setTimeout(() => {
780
- z(h, e.language);
781
- }, 1200), h.onDidChangeModelContent(() => v()), h.onDidBlurEditorText(() => l()), i = h;
793
+ const y = o.editor.create(g, h);
794
+ y.setValue(a.getValue()), e.autoFormat && setTimeout(() => {
795
+ z(y, e.language);
796
+ }, 1200), y.onDidChangeModelContent(() => p()), y.onDidBlurEditorText(() => l()), i = y;
782
797
  }
783
798
  }, M = () => {
784
799
  u.value = !u.value, u.value && V(() => {
@@ -789,20 +804,20 @@ const bt = Q({
789
804
  };
790
805
  return fe(
791
806
  () => e.code,
792
- (f) => {
807
+ (g) => {
793
808
  if (a) {
794
- const p = J(e.language, f);
795
- a.setValue(p);
809
+ const h = J(e.language, g);
810
+ a.setValue(h);
796
811
  }
797
812
  }
798
813
  ), ge(async () => {
799
- const f = setTimeout(() => {
814
+ const g = setTimeout(() => {
800
815
  r.value = !0;
801
816
  }, 200);
802
- o = await oe.init(), clearTimeout(f), r.value = !1, lt(o), ct(o, e.language, e.completions || []), await V();
803
- const p = document.getElementById(n.value);
804
- if (p) {
805
- const h = Object.assign({}, X, e.options, {
817
+ o = await oe.init(), clearTimeout(g), r.value = !1, st(o), ft(o, e.language, e.completions || []), await V();
818
+ const h = document.getElementById(n.value);
819
+ if (h) {
820
+ const y = Object.assign({}, X, e.options, {
806
821
  tabSize: 2,
807
822
  value: "",
808
823
  language: e.language,
@@ -813,8 +828,8 @@ const bt = Q({
813
828
  },
814
829
  lineNumbers: e.lineNumbers,
815
830
  wordWrap: e.wordWrap
816
- }), O = o.editor.create(p, h), le = J(e.language, e.code);
817
- O.setValue(le), e.autoFormat && z(O, e.language), e.height > 0 && (p.style.height = `${e.height}px`), O.onDidChangeModelContent(() => v()), O.onDidBlurEditorText(() => l()), a = O;
831
+ }), O = o.editor.create(h, y), le = J(e.language, e.code);
832
+ O.setValue(le), e.autoFormat && z(O, e.language), e.height > 0 && (h.style.height = `${e.height}px`), O.onDidChangeModelContent(() => p()), O.onDidBlurEditorText(() => l()), a = O;
818
833
  }
819
834
  }), me(() => {
820
835
  a == null || a.dispose(), i == null || i.dispose();
@@ -822,45 +837,45 @@ const bt = Q({
822
837
  editorId: n,
823
838
  isFullScreen: u,
824
839
  loading: r,
825
- copyData: g,
840
+ copyData: f,
826
841
  switchFullScreen: M,
827
842
  openedFullScreenDialog: C,
828
843
  closedFullScreenDialog: ie
829
844
  };
830
845
  }
831
- }), wt = ["id"], Ot = {
846
+ }), jt = ["id"], kt = {
832
847
  key: 0,
833
848
  class: "datav-editor-actions"
834
- }, St = { class: "datav-fullscreen-editor-wp" };
835
- function kt(e, t, r, n, o, a) {
849
+ }, Ct = { class: "datav-fullscreen-editor-wp" };
850
+ function It(e, t, r, n, o, a) {
836
851
  const i = T("IkSvgIcon"), c = T("el-dialog");
837
852
  return s(), d(
838
853
  F,
839
854
  null,
840
855
  [
841
- b("div", {
856
+ w("div", {
842
857
  id: e.editorId,
843
- class: y(["datav-editor", [
858
+ class: b(["datav-editor", [
844
859
  {
845
860
  "--read-only": e.readOnly
846
861
  },
847
862
  e.editorClass
848
863
  ]])
849
864
  }, [
850
- e.loading ? ve("v-if", !0) : (s(), d("div", Ot, [
865
+ e.loading ? ve("v-if", !0) : (s(), d("div", kt, [
851
866
  W(i, {
852
867
  name: "iksvg_tongyong4",
853
868
  title: "复制",
854
869
  pop: "",
855
870
  onClick: e.copyData
856
871
  }, null, 8, ["onClick"]),
857
- e.isFullScreen ? (s(), P(i, {
872
+ e.isFullScreen ? (s(), $(i, {
858
873
  key: 1,
859
874
  pop: "",
860
875
  title: "退出全屏",
861
876
  name: "iksvg_tuichuquanping",
862
877
  onClick: e.switchFullScreen
863
- }, null, 8, ["onClick"])) : (s(), P(i, {
878
+ }, null, 8, ["onClick"])) : (s(), $(i, {
864
879
  key: 0,
865
880
  pop: "",
866
881
  title: "全屏",
@@ -868,7 +883,7 @@ function kt(e, t, r, n, o, a) {
868
883
  onClick: e.switchFullScreen
869
884
  }, null, 8, ["onClick"]))
870
885
  ]))
871
- ], 10, wt),
886
+ ], 10, jt),
872
887
  W(c, {
873
888
  modelValue: e.isFullScreen,
874
889
  "onUpdate:modelValue": t[0] || (t[0] = (u) => e.isFullScreen = u),
@@ -882,18 +897,18 @@ function kt(e, t, r, n, o, a) {
882
897
  onClosed: e.closedFullScreenDialog
883
898
  }, {
884
899
  default: N(() => [
885
- b("div", St, [
886
- b(
900
+ w("div", Ct, [
901
+ w(
887
902
  "div",
888
903
  {
889
- class: y(["datav-editor datav-fullscreen-editor", [
904
+ class: b(["datav-editor datav-fullscreen-editor", [
890
905
  {
891
906
  "--read-only": e.readOnly
892
907
  }
893
908
  ]])
894
909
  },
895
910
  [...t[1] || (t[1] = [
896
- b(
911
+ w(
897
912
  "section",
898
913
  { style: { position: "relative", display: "flex", width: "100%", height: "100%", "text-align": "initial" } },
899
914
  null,
@@ -914,8 +929,8 @@ function kt(e, t, r, n, o, a) {
914
929
  /* STABLE_FRAGMENT */
915
930
  );
916
931
  }
917
- const jt = /* @__PURE__ */ ae(bt, [["render", kt]]), Tt = Z(jt);
932
+ const Pt = /* @__PURE__ */ ae(St, [["render", It]]), Bt = Z(Pt);
918
933
  export {
919
- Tt as IkMonacoEditor,
920
- Tt as default
934
+ Bt as IkMonacoEditor,
935
+ Bt as default
921
936
  };