iking-web-ui-pro 0.2.4 → 0.2.6

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