iking-web-ui-pro 0.2.22 → 0.2.25

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