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