iking-web-ui-pro 0.2.20 → 0.2.22

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/IKExpandCollapse/ik.index.es.js +67 -64
  2. package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
  3. package/dist/IKExpandCollapse/style.css +1 -1
  4. package/dist/IKPreviewFile/ik.index.es.js +279 -276
  5. package/dist/IKPreviewFile/ik.index.umd.js +16 -16
  6. package/dist/IKPreviewFile/style.css +1 -1
  7. package/dist/IKVerticalStepBar/ik.index.es.js +102 -99
  8. package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
  9. package/dist/IKVerticalStepBar/style.css +1 -1
  10. package/dist/IkApprovalProcessDetail/ik.index.es.js +279 -276
  11. package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
  12. package/dist/IkApprovalProcessDetail/style.css +1 -1
  13. package/dist/IkBaseDialog/ik.index.es.js +113 -110
  14. package/dist/IkBaseDialog/ik.index.umd.js +1 -1
  15. package/dist/IkBaseDialog/style.css +1 -1
  16. package/dist/IkBtnSetting/ik.index.es.js +208 -205
  17. package/dist/IkBtnSetting/ik.index.umd.js +1 -1
  18. package/dist/IkBtnSetting/style.css +1 -1
  19. package/dist/IkCollapseCard/ik.index.es.js +75 -72
  20. package/dist/IkCollapseCard/ik.index.umd.js +1 -1
  21. package/dist/IkCollapseCard/style.css +1 -1
  22. package/dist/IkDescription/ik.index.es.js +413 -410
  23. package/dist/IkDescription/ik.index.umd.js +1 -1
  24. package/dist/IkDescription/style.css +1 -1
  25. package/dist/IkDetailPreviewFiles/ik.index.es.js +272 -269
  26. package/dist/IkDetailPreviewFiles/ik.index.umd.js +1 -1
  27. package/dist/IkDetailPreviewFiles/style.css +1 -1
  28. package/dist/IkIconPicker/ik.index.es.js +146 -143
  29. package/dist/IkIconPicker/ik.index.umd.js +1 -1
  30. package/dist/IkIconPicker/style.css +1 -1
  31. package/dist/IkMonacoEditor/ik.index.es.js +156 -153
  32. package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
  33. package/dist/IkMonacoEditor/style.css +1 -1
  34. package/dist/IkPageFull/ik.index.es.js +1129 -1126
  35. package/dist/IkPageFull/ik.index.umd.js +2 -2
  36. package/dist/IkPageFull/style.css +1 -1
  37. package/dist/IkPreviewFileDialog/ik.index.es.js +556 -553
  38. package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
  39. package/dist/IkPreviewFileDialog/style.css +1 -1
  40. package/dist/IkSchedule/ik.index.es.js +1432 -1429
  41. package/dist/IkSchedule/ik.index.umd.js +1 -1
  42. package/dist/IkSchedule/style.css +1 -1
  43. package/dist/IkSideText/ik.index.es.js +99 -96
  44. package/dist/IkSideText/ik.index.umd.js +1 -1
  45. package/dist/IkSideText/style.css +1 -1
  46. package/dist/IkSvgIcon/ik.index.es.js +54 -51
  47. package/dist/IkSvgIcon/ik.index.umd.js +1 -1
  48. package/dist/IkSvgIcon/style.css +1 -1
  49. package/dist/IkUploadFile/ik.index.es.js +697 -694
  50. package/dist/IkUploadFile/ik.index.umd.js +1 -1
  51. package/dist/IkUploadFile/style.css +1 -1
  52. package/dist/IkUploadImage/ik.index.es.js +204 -201
  53. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  54. package/dist/IkUploadImage/style.css +1 -1
  55. package/dist/Provider/ik.index.es.js +10 -14
  56. package/dist/Provider/ik.index.umd.js +1 -1
  57. package/dist/index.es.js +4121 -4122
  58. package/dist/index.umd.js +2 -2
  59. package/dist/src/components/IkSvgIcon/index.d.ts +6 -2
  60. package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +6 -2
  61. package/dist/src/components/Provider/ProviderConfig.vue.d.ts +0 -9
  62. package/dist/src/components/Provider/index.d.ts +0 -19
  63. package/dist/style.css +1 -1
  64. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
- import { defineComponent as J, inject as ue, computed as k, resolveComponent as C, openBlock as c, createElementBlock as s, normalizeClass as g, normalizeStyle as y, createCommentVNode as Q, createElementVNode as h, createBlock as I, withCtx as E, createTextVNode as ce, toDisplayString as se, ref as L, watch as de, onMounted as fe, nextTick as V, onUnmounted as ge, Fragment as me, createVNode as x } from "vue";
2
- import { paramType as P, ikColor as ve, buildUUID as pe, _ as he, ikDom as ye } from "iking-utils-pro";
1
+ import { defineComponent as Q, computed as I, resolveComponent as _, openBlock as c, createElementBlock as s, withModifiers as B, normalizeClass as g, normalizeStyle as y, createCommentVNode as Z, createElementVNode as h, createBlock as $, withCtx as M, createTextVNode as ce, toDisplayString as se, ref as V, watch as de, onMounted as fe, nextTick as x, onUnmounted as ge, Fragment as me, createVNode as W } from "vue";
2
+ import { paramType as D, ikColor as ve, buildUUID as pe, _ as he, ikDom as ye } from "iking-utils-pro";
3
3
  import { ElMessage as be } from "element-plus";
4
- const Z = (e, n) => {
4
+ const ee = (e, n) => {
5
5
  if (e.install = (r) => {
6
6
  for (const t of [e, ...Object.values(n ?? {})])
7
7
  r.component(t.name, t);
@@ -18,7 +18,7 @@ function we(e, n, r) {
18
18
  writable: !0
19
19
  }) : e[n] = r, e;
20
20
  }
21
- function W(e, n) {
21
+ function q(e, n) {
22
22
  var r = Object.keys(e);
23
23
  if (Object.getOwnPropertySymbols) {
24
24
  var t = Object.getOwnPropertySymbols(e);
@@ -28,12 +28,12 @@ function W(e, n) {
28
28
  }
29
29
  return r;
30
30
  }
31
- function q(e) {
31
+ function H(e) {
32
32
  for (var n = 1; n < arguments.length; n++) {
33
33
  var r = arguments[n] != null ? arguments[n] : {};
34
- n % 2 ? W(Object(r), !0).forEach(function(t) {
34
+ n % 2 ? q(Object(r), !0).forEach(function(t) {
35
35
  we(e, t, r[t]);
36
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : W(Object(r)).forEach(function(t) {
36
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : q(Object(r)).forEach(function(t) {
37
37
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
38
38
  });
39
39
  }
@@ -47,7 +47,7 @@ function Oe(e, n) {
47
47
  o = t[a], !(n.indexOf(o) >= 0) && (r[o] = e[o]);
48
48
  return r;
49
49
  }
50
- function je(e, n) {
50
+ function ke(e, n) {
51
51
  if (e == null)
52
52
  return {};
53
53
  var r = Oe(e, n), t, o;
@@ -59,9 +59,9 @@ function je(e, n) {
59
59
  return r;
60
60
  }
61
61
  function Se(e, n) {
62
- return ke(e) || Ce(e, n) || Ie(e, n) || _e();
62
+ return je(e) || Ce(e, n) || Ie(e, n) || _e();
63
63
  }
64
- function ke(e) {
64
+ function je(e) {
65
65
  if (Array.isArray(e))
66
66
  return e;
67
67
  }
@@ -69,13 +69,13 @@ function Ce(e, n) {
69
69
  if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(e)))) {
70
70
  var r = [], t = !0, o = !1, a = void 0;
71
71
  try {
72
- for (var i = e[Symbol.iterator](), u; !(t = (u = i.next()).done) && (r.push(u.value), !(n && r.length === n)); t = !0)
72
+ for (var l = e[Symbol.iterator](), u; !(t = (u = l.next()).done) && (r.push(u.value), !(n && r.length === n)); t = !0)
73
73
  ;
74
- } catch (l) {
75
- o = !0, a = l;
74
+ } catch (i) {
75
+ o = !0, a = i;
76
76
  } finally {
77
77
  try {
78
- !t && i.return != null && i.return();
78
+ !t && l.return != null && l.return();
79
79
  } finally {
80
80
  if (o)
81
81
  throw a;
@@ -87,15 +87,15 @@ function Ce(e, n) {
87
87
  function Ie(e, n) {
88
88
  if (e) {
89
89
  if (typeof e == "string")
90
- return H(e, n);
90
+ return U(e, n);
91
91
  var r = Object.prototype.toString.call(e).slice(8, -1);
92
92
  if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set")
93
93
  return Array.from(e);
94
94
  if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))
95
- return H(e, n);
95
+ return U(e, n);
96
96
  }
97
97
  }
98
- function H(e, n) {
98
+ function U(e, n) {
99
99
  (n == null || n > e.length) && (n = e.length);
100
100
  for (var r = 0, t = new Array(n); r < n; r++)
101
101
  t[r] = e[r];
@@ -113,7 +113,7 @@ function $e(e, n, r) {
113
113
  writable: !0
114
114
  }) : e[n] = r, e;
115
115
  }
116
- function U(e, n) {
116
+ function R(e, n) {
117
117
  var r = Object.keys(e);
118
118
  if (Object.getOwnPropertySymbols) {
119
119
  var t = Object.getOwnPropertySymbols(e);
@@ -123,12 +123,12 @@ function U(e, n) {
123
123
  }
124
124
  return r;
125
125
  }
126
- function R(e) {
126
+ function K(e) {
127
127
  for (var n = 1; n < arguments.length; n++) {
128
128
  var r = arguments[n] != null ? arguments[n] : {};
129
- n % 2 ? U(Object(r), !0).forEach(function(t) {
129
+ n % 2 ? R(Object(r), !0).forEach(function(t) {
130
130
  $e(e, t, r[t]);
131
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : U(Object(r)).forEach(function(t) {
131
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : R(Object(r)).forEach(function(t) {
132
132
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
133
133
  });
134
134
  }
@@ -143,44 +143,44 @@ function Te() {
143
143
  }, t);
144
144
  };
145
145
  }
146
- function w(e) {
146
+ function O(e) {
147
147
  return function n() {
148
148
  for (var r = this, t = arguments.length, o = new Array(t), a = 0; a < t; a++)
149
149
  o[a] = arguments[a];
150
150
  return o.length >= e.length ? e.apply(this, o) : function() {
151
- for (var i = arguments.length, u = new Array(i), l = 0; l < i; l++)
152
- u[l] = arguments[l];
151
+ for (var l = arguments.length, u = new Array(l), i = 0; i < l; i++)
152
+ u[i] = arguments[i];
153
153
  return n.apply(r, [].concat(o, u));
154
154
  };
155
155
  };
156
156
  }
157
- function _(e) {
157
+ function T(e) {
158
158
  return {}.toString.call(e).includes("Object");
159
159
  }
160
160
  function Pe(e) {
161
161
  return !Object.keys(e).length;
162
162
  }
163
- function O(e) {
163
+ function k(e) {
164
164
  return typeof e == "function";
165
165
  }
166
166
  function Be(e, n) {
167
167
  return Object.prototype.hasOwnProperty.call(e, n);
168
168
  }
169
169
  function De(e, n) {
170
- return _(n) || m("changeType"), Object.keys(n).some(function(r) {
170
+ return T(n) || m("changeType"), Object.keys(n).some(function(r) {
171
171
  return !Be(e, r);
172
172
  }) && m("changeField"), n;
173
173
  }
174
174
  function ze(e) {
175
- O(e) || m("selectorType");
175
+ k(e) || m("selectorType");
176
176
  }
177
177
  function Ee(e) {
178
- O(e) || _(e) || m("handlerType"), _(e) && Object.values(e).some(function(n) {
179
- return !O(n);
178
+ k(e) || T(e) || m("handlerType"), T(e) && Object.values(e).some(function(n) {
179
+ return !k(n);
180
180
  }) && m("handlersType");
181
181
  }
182
182
  function Ae(e) {
183
- e || m("initialIsRequired"), _(e) || m("initialType"), Pe(e) && m("initialContent");
183
+ e || m("initialIsRequired"), T(e) || m("initialType"), Pe(e) && m("initialContent");
184
184
  }
185
185
  function Me(e, n) {
186
186
  throw new Error(e[n] || e.default);
@@ -195,7 +195,7 @@ var Fe = {
195
195
  changeType: "provided value of changes should be an object",
196
196
  changeField: 'it seams you want to change a field in the state which is not specified in the "initial" state',
197
197
  default: "an unknown error accured in `state-local` package"
198
- }, m = w(Me)(Fe), S = {
198
+ }, m = O(Me)(Fe), C = {
199
199
  changes: De,
200
200
  selector: ze,
201
201
  handler: Ee,
@@ -203,29 +203,29 @@ var Fe = {
203
203
  };
204
204
  function Ne(e) {
205
205
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
206
- S.initial(e), S.handler(n);
206
+ C.initial(e), C.handler(n);
207
207
  var r = {
208
208
  current: e
209
- }, t = w(xe)(r, n), o = w(Ve)(r), a = w(S.changes)(e), i = w(Le)(r);
209
+ }, t = O(xe)(r, n), o = O(Ve)(r), a = O(C.changes)(e), l = O(Le)(r);
210
210
  function u() {
211
- var f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(T) {
212
- return T;
211
+ var d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(b) {
212
+ return b;
213
213
  };
214
- return S.selector(f), f(r.current);
214
+ return C.selector(d), d(r.current);
215
215
  }
216
- function l(f) {
217
- Te(t, o, a, i)(f);
216
+ function i(d) {
217
+ Te(t, o, a, l)(d);
218
218
  }
219
- return [u, l];
219
+ return [u, i];
220
220
  }
221
221
  function Le(e, n) {
222
- return O(n) ? n(e.current) : n;
222
+ return k(n) ? n(e.current) : n;
223
223
  }
224
224
  function Ve(e, n) {
225
- return e.current = R(R({}, e.current), n), n;
225
+ return e.current = K(K({}, e.current), n), n;
226
226
  }
227
227
  function xe(e, n, r) {
228
- return O(n) ? n(e.current) : Object.keys(r).forEach(function(t) {
228
+ return k(n) ? n(e.current) : Object.keys(r).forEach(function(t) {
229
229
  var o;
230
230
  return (o = n[t]) === null || o === void 0 ? void 0 : o.call(n, e.current[t]);
231
231
  }), r;
@@ -242,8 +242,8 @@ function He(e) {
242
242
  for (var r = this, t = arguments.length, o = new Array(t), a = 0; a < t; a++)
243
243
  o[a] = arguments[a];
244
244
  return o.length >= e.length ? e.apply(this, o) : function() {
245
- for (var i = arguments.length, u = new Array(i), l = 0; l < i; l++)
246
- u[l] = arguments[l];
245
+ for (var l = arguments.length, u = new Array(l), i = 0; i < l; i++)
246
+ u[i] = arguments[i];
247
247
  return n.apply(r, [].concat(o, u));
248
248
  };
249
249
  };
@@ -252,19 +252,19 @@ function Ue(e) {
252
252
  return {}.toString.call(e).includes("Object");
253
253
  }
254
254
  function Re(e) {
255
- return e || K("configIsRequired"), Ue(e) || K("configType"), e.urls ? (Ke(), {
255
+ return e || Y("configIsRequired"), Ue(e) || Y("configType"), e.urls ? (Ke(), {
256
256
  paths: {
257
257
  vs: e.urls.monacoBase
258
258
  }
259
259
  }) : e;
260
260
  }
261
261
  function Ke() {
262
- console.warn(ee.deprecation);
262
+ console.warn(te.deprecation);
263
263
  }
264
264
  function Ye(e, n) {
265
265
  throw new Error(e[n] || e.default);
266
266
  }
267
- var ee = {
267
+ var te = {
268
268
  configIsRequired: "the configuration object is required",
269
269
  configType: "the configuration object should be an object",
270
270
  default: "an unknown error accured in `@monaco-editor/loader` package",
@@ -278,27 +278,27 @@ var ee = {
278
278
 
279
279
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
280
280
  `
281
- }, K = He(Ye)(ee), Xe = {
281
+ }, Y = He(Ye)(te), Xe = {
282
282
  config: Re
283
283
  }, Ge = function() {
284
284
  for (var n = arguments.length, r = new Array(n), t = 0; t < n; t++)
285
285
  r[t] = arguments[t];
286
286
  return function(o) {
287
- return r.reduceRight(function(a, i) {
288
- return i(a);
287
+ return r.reduceRight(function(a, l) {
288
+ return l(a);
289
289
  }, o);
290
290
  };
291
291
  };
292
- function te(e, n) {
292
+ function ne(e, n) {
293
293
  return Object.keys(n).forEach(function(r) {
294
- n[r] instanceof Object && e[r] && Object.assign(n[r], te(e[r], n[r]));
295
- }), q(q({}, e), n);
294
+ n[r] instanceof Object && e[r] && Object.assign(n[r], ne(e[r], n[r]));
295
+ }), H(H({}, e), n);
296
296
  }
297
297
  var Je = {
298
298
  type: "cancelation",
299
299
  msg: "operation is manually canceled"
300
300
  };
301
- function B(e) {
301
+ function z(e) {
302
302
  var n = !1, r = new Promise(function(t, o) {
303
303
  e.then(function(a) {
304
304
  return n ? o(Je) : t(a);
@@ -314,18 +314,18 @@ var Qe = We.create({
314
314
  resolve: null,
315
315
  reject: null,
316
316
  monaco: null
317
- }), ne = Se(Qe, 2), j = ne[0], $ = ne[1];
317
+ }), re = Se(Qe, 2), S = re[0], P = re[1];
318
318
  function Ze(e) {
319
- var n = Xe.config(e), r = n.monaco, t = je(n, ["monaco"]);
320
- $(function(o) {
319
+ var n = Xe.config(e), r = n.monaco, t = ke(n, ["monaco"]);
320
+ P(function(o) {
321
321
  return {
322
- config: te(o.config, t),
322
+ config: ne(o.config, t),
323
323
  monaco: r
324
324
  };
325
325
  });
326
326
  }
327
327
  function et() {
328
- var e = j(function(n) {
328
+ var e = S(function(n) {
329
329
  var r = n.monaco, t = n.isInitialized, o = n.resolve;
330
330
  return {
331
331
  monaco: r,
@@ -334,15 +334,15 @@ function et() {
334
334
  };
335
335
  });
336
336
  if (!e.isInitialized) {
337
- if ($({
337
+ if (P({
338
338
  isInitialized: !0
339
339
  }), e.monaco)
340
- return e.resolve(e.monaco), B(D);
340
+ return e.resolve(e.monaco), z(E);
341
341
  if (window.monaco && window.monaco.editor)
342
- return re(window.monaco), e.resolve(window.monaco), B(D);
342
+ return oe(window.monaco), e.resolve(window.monaco), z(E);
343
343
  Ge(tt, rt)(ot);
344
344
  }
345
- return B(D);
345
+ return z(E);
346
346
  }
347
347
  function tt(e) {
348
348
  return document.body.appendChild(e);
@@ -352,7 +352,7 @@ function nt(e) {
352
352
  return e && (n.src = e), n;
353
353
  }
354
354
  function rt(e) {
355
- var n = j(function(t) {
355
+ var n = S(function(t) {
356
356
  var o = t.config, a = t.reject;
357
357
  return {
358
358
  config: o,
@@ -364,7 +364,7 @@ function rt(e) {
364
364
  }, r.onerror = n.reject, r;
365
365
  }
366
366
  function ot() {
367
- var e = j(function(r) {
367
+ var e = S(function(r) {
368
368
  var t = r.config, o = r.resolve, a = r.reject;
369
369
  return {
370
370
  config: t,
@@ -373,24 +373,24 @@ function ot() {
373
373
  };
374
374
  }), n = window.require;
375
375
  n.config(e.config), n(["vs/editor/editor.main"], function(r) {
376
- re(r), e.resolve(r);
376
+ oe(r), e.resolve(r);
377
377
  }, function(r) {
378
378
  e.reject(r);
379
379
  });
380
380
  }
381
- function re(e) {
382
- j().monaco || $({
381
+ function oe(e) {
382
+ S().monaco || P({
383
383
  monaco: e
384
384
  });
385
385
  }
386
386
  function at() {
387
- return j(function(e) {
387
+ return S(function(e) {
388
388
  var n = e.monaco;
389
389
  return n;
390
390
  });
391
391
  }
392
- var D = new Promise(function(e, n) {
393
- return $({
392
+ var E = new Promise(function(e, n) {
393
+ return P({
394
394
  resolve: e,
395
395
  reject: n
396
396
  });
@@ -399,7 +399,7 @@ var D = new Promise(function(e, n) {
399
399
  init: et,
400
400
  __getMonacoInstance: at
401
401
  };
402
- const lt = it, Y = {
402
+ const lt = it, X = {
403
403
  automaticLayout: !0,
404
404
  contextmenu: !1,
405
405
  fixedOverflowWidgets: !0,
@@ -454,11 +454,11 @@ const lt = it, Y = {
454
454
  }
455
455
  }), n;
456
456
  };
457
- let A = [];
457
+ let F = [];
458
458
  const ct = (e, n) => {
459
459
  const r = [];
460
- for (let t = 0; t < A.length; t++) {
461
- const o = A[t];
460
+ for (let t = 0; t < F.length; t++) {
461
+ const o = F[t];
462
462
  r.push({
463
463
  label: `:${o}`,
464
464
  insertText: o,
@@ -468,31 +468,31 @@ const ct = (e, n) => {
468
468
  });
469
469
  }
470
470
  return r;
471
- }, X = /* @__PURE__ */ new Map(), st = (e, n, r) => {
471
+ }, G = /* @__PURE__ */ new Map(), st = (e, n, r) => {
472
472
  if (r && r.length > 0) {
473
- if (A = r, X.has(n))
473
+ if (F = r, G.has(n))
474
474
  return;
475
- X.set(n, 1), e.languages.registerCompletionItemProvider(n, {
475
+ G.set(n, 1), e.languages.registerCompletionItemProvider(n, {
476
476
  triggerCharacters: [":"],
477
477
  provideCompletionItems(t, o) {
478
- const a = t.getWordUntilPosition(o), i = {
478
+ const a = t.getWordUntilPosition(o), l = {
479
479
  startLineNumber: o.lineNumber,
480
480
  endLineNumber: o.lineNumber,
481
481
  startColumn: a.startColumn,
482
482
  endColumn: a.endColumn
483
483
  };
484
484
  return {
485
- suggestions: ct(e, i)
485
+ suggestions: ct(e, l)
486
486
  };
487
487
  }
488
488
  });
489
489
  }
490
- }, G = (e, n) => {
490
+ }, J = (e, n) => {
491
491
  let r = n;
492
- return (P.isObject(r) || P.isArray(r)) && (r = JSON.stringify(r, null, 2)), P.isString(r) ? r : `${r}`;
493
- }, z = (e, n) => {
492
+ return (D.isObject(r) || D.isArray(r)) && (r = JSON.stringify(r, null, 2)), D.isString(r) ? r : `${r}`;
493
+ }, A = (e, n) => {
494
494
  e.getAction("editor.action.formatDocument").run();
495
- }, oe = (e, n) => {
495
+ }, ae = (e, n) => {
496
496
  const r = e.__vccOpts || e;
497
497
  for (const [t, o] of n)
498
498
  r[t] = o;
@@ -508,7 +508,7 @@ const ct = (e, n) => {
508
508
  key: 1,
509
509
  class: "h-[1em] w-[1em]",
510
510
  "aria-hidden": "true"
511
- }, pt = ["xlink:href"], ht = ["src"], yt = /* @__PURE__ */ J({
511
+ }, pt = ["xlink:href"], ht = ["src"], yt = /* @__PURE__ */ Q({
512
512
  name: "IkSvgIcon",
513
513
  __name: "index",
514
514
  props: {
@@ -534,14 +534,12 @@ const ct = (e, n) => {
534
534
  warning: { type: Boolean },
535
535
  width: {}
536
536
  },
537
- setup(e) {
538
- const n = e, r = ue("iconConfig"), t = k(() => ({
539
- ...(r == null ? void 0 : r.value) || {},
540
- ...n
541
- })), o = k(() => {
537
+ emits: ["click"],
538
+ setup(e, { emit: n }) {
539
+ const r = e, t = I(() => r), o = I(() => {
542
540
  const { name: i } = t.value;
543
541
  return /^http?:\/\//.test(i) ? "img" : /i-[^:]+:[^:]+/.test(i) ? "unocss" : i != null && i.startsWith("iksig") ? "iksig" : i != null && i.includes(":") ? "iconify" : i != null && i.startsWith("iksvg") ? "svg" : "i";
544
- }), a = k(() => {
542
+ }), a = I(() => {
545
543
  const i = [];
546
544
  if (t.value.flip)
547
545
  switch (t.value.flip) {
@@ -556,7 +554,7 @@ const ct = (e, n) => {
556
554
  break;
557
555
  }
558
556
  t.value.rotate && i.push(`rotate(${t.value.rotate % 360}deg)`);
559
- const u = {
557
+ const d = {
560
558
  ...t.value.color && { color: t.value.color },
561
559
  ...t.value.size && { fontSize: typeof t.value.size == "number" ? `${t.value.size}px` : t.value.size },
562
560
  ...i.length && { transform: i.join(" ") },
@@ -566,15 +564,18 @@ const ct = (e, n) => {
566
564
  "--ik-color-icon-light": t.value.colorLight || ve.setOpacity(t.value.color, t.value.opacity)
567
565
  } : {}
568
566
  };
569
- return t.value.width && (u.width = u.height = typeof t.value.width == "number" ? `${t.value.width}px` : t.value.width), u;
570
- });
571
- return (i, u) => {
572
- const l = C("el-tooltip"), f = C("el-button");
567
+ return t.value.width && (d.width = d.height = typeof t.value.width == "number" ? `${t.value.width}px` : t.value.width), d;
568
+ }), l = n, u = (i) => {
569
+ t.value.disabled || l("click", i);
570
+ };
571
+ return (i, d) => {
572
+ const b = _("el-tooltip"), j = _("el-button");
573
573
  return t.value.tableIconType === "icon" || !t.value.tableIconType ? (c(), s("span", dt, [
574
574
  t.value.notip || !t.value.title ? (c(), s(
575
575
  "i",
576
576
  {
577
577
  key: 0,
578
+ onClick: B(u, ["stop"]),
578
579
  class: g(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
579
580
  [i.name]: o.value === "unocss",
580
581
  "show-bg": t.value.showBg || t.value.bg,
@@ -591,7 +592,7 @@ const ct = (e, n) => {
591
592
  style: y(a.value)
592
593
  },
593
594
  [
594
- Q(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
595
+ Z(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
595
596
  o.value === "iksig" ? (c(), s(
596
597
  "i",
597
598
  {
@@ -624,12 +625,12 @@ const ct = (e, n) => {
624
625
  ],
625
626
  6
626
627
  /* CLASS, STYLE */
627
- )) : (c(), I(l, {
628
+ )) : (c(), $(b, {
628
629
  key: 1,
629
630
  content: t.value.title,
630
631
  placement: "top"
631
632
  }, {
632
- default: E(() => [
633
+ default: M(() => [
633
634
  h(
634
635
  "i",
635
636
  {
@@ -645,6 +646,7 @@ const ct = (e, n) => {
645
646
  error: t.value.error || t.value.type === "error",
646
647
  active: t.value.active
647
648
  }]),
649
+ onClick: B(u, ["stop"]),
648
650
  style: y(a.value)
649
651
  },
650
652
  [
@@ -685,11 +687,12 @@ const ct = (e, n) => {
685
687
  _: 1
686
688
  /* STABLE */
687
689
  }, 8, ["content"]))
688
- ])) : (c(), I(f, {
690
+ ])) : (c(), $(j, {
689
691
  key: 1,
690
- type: ["warning", "error"].includes(t.value.type) ? "danger" : ""
692
+ type: ["warning", "error"].includes(t.value.type) ? "danger" : "",
693
+ onClick: B(u, ["stop"])
691
694
  }, {
692
- default: E(() => [
695
+ default: M(() => [
693
696
  ce(
694
697
  se(t.value.title),
695
698
  1
@@ -702,8 +705,8 @@ const ct = (e, n) => {
702
705
  };
703
706
  }
704
707
  });
705
- const bt = /* @__PURE__ */ oe(yt, [["__scopeId", "data-v-ec9fdc8a"]]), wt = Z(bt);
706
- const Ot = J({
708
+ const bt = /* @__PURE__ */ ae(yt, [["__scopeId", "data-v-4a1004b9"]]), wt = ee(bt);
709
+ const Ot = Q({
707
710
  name: "IkMonacoEditor",
708
711
  components: {
709
712
  IkSvgIcon: wt
@@ -747,34 +750,34 @@ const Ot = J({
747
750
  },
748
751
  emits: ["change", "blur"],
749
752
  setup(e, n) {
750
- const r = L(!1), t = k(() => `datav-editor-${pe()}`);
751
- let o = null, a = null, i = null;
752
- const u = "datav-dark-theme", l = L(!1), f = () => {
753
+ const r = V(!1), t = I(() => `datav-editor-${pe()}`);
754
+ let o = null, a = null, l = null;
755
+ const u = "datav-dark-theme", i = V(!1), d = () => {
753
756
  a && ye.copyText(a.getValue()).then(() => {
754
757
  be.success("复制成功");
755
758
  });
756
- }, T = () => {
759
+ }, b = () => {
757
760
  if (a) {
758
- const d = a.getValue();
761
+ const f = a.getValue();
759
762
  n.emit("change", {
760
- value: d,
763
+ value: f,
761
764
  extra: e.extra
762
765
  });
763
766
  }
764
- }, M = () => {
767
+ }, j = () => {
765
768
  if (a) {
766
- const d = a.getValue();
769
+ const f = a.getValue();
767
770
  n.emit("blur", {
768
- value: d,
771
+ value: f,
769
772
  extra: e.extra
770
- }), e.autoFormat && z(a, e.language);
773
+ }), e.autoFormat && A(a, e.language);
771
774
  }
772
- }, F = he.debounce(T, 300), N = () => {
773
- const d = document.querySelector(
775
+ }, N = he.debounce(b, 300), L = () => {
776
+ const f = document.querySelector(
774
777
  ".datav-fullscreen-editor-dialog section"
775
778
  );
776
- if (d) {
777
- const v = Object.assign({}, Y, e.options, {
779
+ if (f) {
780
+ const v = Object.assign({}, X, e.options, {
778
781
  tabSize: 2,
779
782
  value: "",
780
783
  language: e.language,
@@ -788,34 +791,34 @@ const Ot = J({
788
791
  });
789
792
  if (!o || !a)
790
793
  return;
791
- const p = o.editor.create(d, v);
794
+ const p = o.editor.create(f, v);
792
795
  p.setValue(a.getValue()), e.autoFormat && setTimeout(() => {
793
- z(p, e.language);
794
- }, 1200), p.onDidChangeModelContent(() => F()), p.onDidBlurEditorText(() => M()), i = p;
796
+ A(p, e.language);
797
+ }, 1200), p.onDidChangeModelContent(() => N()), p.onDidBlurEditorText(() => j()), l = p;
795
798
  }
796
- }, ae = () => {
797
- l.value = !l.value, l.value && V(() => {
798
- N();
799
- });
800
799
  }, ie = () => {
801
- i && (a && !e.readOnly && (a.setValue(i.getValue()), a.focus()), i.dispose());
800
+ i.value = !i.value, i.value && x(() => {
801
+ L();
802
+ });
803
+ }, le = () => {
804
+ l && (a && !e.readOnly && (a.setValue(l.getValue()), a.focus()), l.dispose());
802
805
  };
803
806
  return de(
804
807
  () => e.code,
805
- (d) => {
808
+ (f) => {
806
809
  if (a) {
807
- const v = G(e.language, d);
810
+ const v = J(e.language, f);
808
811
  a.setValue(v);
809
812
  }
810
813
  }
811
814
  ), fe(async () => {
812
- const d = setTimeout(() => {
815
+ const f = setTimeout(() => {
813
816
  r.value = !0;
814
817
  }, 200);
815
- o = await lt.init(), clearTimeout(d), r.value = !1, ut(o), st(o, e.language, e.completions || []), await V();
818
+ o = await lt.init(), clearTimeout(f), r.value = !1, ut(o), st(o, e.language, e.completions || []), await x();
816
819
  const v = document.getElementById(t.value);
817
820
  if (v) {
818
- const p = Object.assign({}, Y, e.options, {
821
+ const p = Object.assign({}, X, e.options, {
819
822
  tabSize: 2,
820
823
  value: "",
821
824
  language: e.language,
@@ -826,25 +829,25 @@ const Ot = J({
826
829
  },
827
830
  lineNumbers: e.lineNumbers,
828
831
  wordWrap: e.wordWrap
829
- }), b = o.editor.create(v, p), le = G(e.language, e.code);
830
- b.setValue(le), e.autoFormat && z(b, e.language), e.height > 0 && (v.style.height = `${e.height}px`), b.onDidChangeModelContent(() => F()), b.onDidBlurEditorText(() => M()), a = b;
832
+ }), w = o.editor.create(v, p), ue = J(e.language, e.code);
833
+ w.setValue(ue), e.autoFormat && A(w, e.language), e.height > 0 && (v.style.height = `${e.height}px`), w.onDidChangeModelContent(() => N()), w.onDidBlurEditorText(() => j()), a = w;
831
834
  }
832
835
  }), ge(() => {
833
- a == null || a.dispose(), i == null || i.dispose();
836
+ a == null || a.dispose(), l == null || l.dispose();
834
837
  }), {
835
838
  editorId: t,
836
- isFullScreen: l,
839
+ isFullScreen: i,
837
840
  loading: r,
838
- copyData: f,
839
- switchFullScreen: ae,
840
- openedFullScreenDialog: N,
841
- closedFullScreenDialog: ie
841
+ copyData: d,
842
+ switchFullScreen: ie,
843
+ openedFullScreenDialog: L,
844
+ closedFullScreenDialog: le
842
845
  };
843
846
  }
844
- }), jt = ["id"], St = {
847
+ }), kt = ["id"], St = {
845
848
  key: 0,
846
849
  class: "datav-editor-actions"
847
- }, kt = { class: "datav-fullscreen-editor-wp" }, Ct = /* @__PURE__ */ h(
850
+ }, jt = { class: "datav-fullscreen-editor-wp" }, Ct = /* @__PURE__ */ h(
848
851
  "section",
849
852
  { style: { position: "relative", display: "flex", width: "100%", height: "100%", "text-align": "initial" } },
850
853
  null,
@@ -854,7 +857,7 @@ const Ot = J({
854
857
  Ct
855
858
  ];
856
859
  function _t(e, n, r, t, o, a) {
857
- const i = C("IkSvgIcon"), u = C("el-dialog");
860
+ const l = _("IkSvgIcon"), u = _("el-dialog");
858
861
  return c(), s(
859
862
  me,
860
863
  null,
@@ -868,20 +871,20 @@ function _t(e, n, r, t, o, a) {
868
871
  e.editorClass
869
872
  ]])
870
873
  }, [
871
- e.loading ? Q("v-if", !0) : (c(), s("div", St, [
872
- x(i, {
874
+ e.loading ? Z("v-if", !0) : (c(), s("div", St, [
875
+ W(l, {
873
876
  name: "iksvg_tongyong4",
874
877
  title: "复制",
875
878
  pop: "",
876
879
  onClick: e.copyData
877
880
  }, null, 8, ["onClick"]),
878
- e.isFullScreen ? (c(), I(i, {
881
+ e.isFullScreen ? (c(), $(l, {
879
882
  key: 1,
880
883
  pop: "",
881
884
  title: "退出全屏",
882
885
  name: "iksvg_tuichuquanping",
883
886
  onClick: e.switchFullScreen
884
- }, null, 8, ["onClick"])) : (c(), I(i, {
887
+ }, null, 8, ["onClick"])) : (c(), $(l, {
885
888
  key: 0,
886
889
  pop: "",
887
890
  title: "全屏",
@@ -889,10 +892,10 @@ function _t(e, n, r, t, o, a) {
889
892
  onClick: e.switchFullScreen
890
893
  }, null, 8, ["onClick"]))
891
894
  ]))
892
- ], 10, jt),
893
- x(u, {
895
+ ], 10, kt),
896
+ W(u, {
894
897
  modelValue: e.isFullScreen,
895
- "onUpdate:modelValue": n[0] || (n[0] = (l) => e.isFullScreen = l),
898
+ "onUpdate:modelValue": n[0] || (n[0] = (i) => e.isFullScreen = i),
896
899
  title: `${e.fullScreenTitle}${e.readOnly ? " ( 只读 )" : ""}`,
897
900
  preset: "dialog",
898
901
  "show-icon": !1,
@@ -901,8 +904,8 @@ function _t(e, n, r, t, o, a) {
901
904
  style: { width: "90%", "margin-top": "1%" },
902
905
  onClosed: e.closedFullScreenDialog
903
906
  }, {
904
- default: E(() => [
905
- h("div", kt, [
907
+ default: M(() => [
908
+ h("div", jt, [
906
909
  h(
907
910
  "div",
908
911
  {
@@ -926,7 +929,7 @@ function _t(e, n, r, t, o, a) {
926
929
  /* STABLE_FRAGMENT */
927
930
  );
928
931
  }
929
- const $t = /* @__PURE__ */ oe(Ot, [["render", _t]]), Dt = Z($t);
932
+ const $t = /* @__PURE__ */ ae(Ot, [["render", _t]]), Dt = ee($t);
930
933
  export {
931
934
  Dt as IkMonacoEditor,
932
935
  Dt as default