iking-web-ui-pro 0.3.0 → 0.3.2

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