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