iking-web-ui-pro 0.3.3 → 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 +614 -638
- package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +153 -177
- package/dist/IkBaseDialog/iking-web-ui-pro.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +272 -296
- package/dist/IkBtnSetting/iking-web-ui-pro.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +153 -177
- package/dist/IkCollapseCard/iking-web-ui-pro.css +1 -1
- package/dist/IkDescription/ik.index.es.js +1496 -1520
- package/dist/IkDescription/iking-web-ui-pro.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +1464 -1488
- package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
- package/dist/IkExpandCollapse/ik.index.es.js +144 -168
- package/dist/IkExpandCollapse/iking-web-ui-pro.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +227 -244
- package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +357 -381
- package/dist/IkMonacoEditor/iking-web-ui-pro.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +626 -650
- package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
- package/dist/IkPreviewFile/ik.index.es.js +1440 -1464
- package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +573 -597
- package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +331 -355
- package/dist/IkSchedule/iking-web-ui-pro.css +1 -1
- package/dist/IkSideText/ik.index.es.js +178 -202
- package/dist/IkSideText/iking-web-ui-pro.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +131 -155
- package/dist/IkSvgIcon/iking-web-ui-pro.css +1 -1
- package/dist/IkTree/ik.index.es.js +7 -7
- package/dist/IkTree/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +692 -716
- package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +385 -409
- package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
- package/dist/IkVerticalStepBar/ik.index.es.js +193 -217
- package/dist/IkVerticalStepBar/iking-web-ui-pro.css +1 -1
- package/dist/iking-web-ui-pro.css +2 -2
- package/dist/index.es.js +11633 -11650
- package/dist/index.umd.js +99 -99
- package/dist/src/components/IkMonacoEditor/index.d.ts +9 -0
- package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +9 -0
- package/dist/src/components/IkSvgIcon/index.d.ts +9 -0
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +5 -0
- package/package.json +1 -1
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
import { defineComponent as Q, computed as $, resolveComponent as
|
|
2
|
-
import { paramType as _, ikColor 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 q(e,
|
|
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)) : q(Object(r)).forEach(function(
|
|
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 Te(e,
|
|
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
|
-
Te(e,
|
|
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
|
-
function
|
|
170
|
-
e ||
|
|
169
|
+
function Ee(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 Ae = {
|
|
|
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:
|
|
189
|
-
initial:
|
|
187
|
+
selector: _e,
|
|
188
|
+
handler: Ae,
|
|
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:
|
|
222
|
-
},
|
|
220
|
+
var xe = {
|
|
221
|
+
create: Ne
|
|
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
|
-
function
|
|
289
|
-
var
|
|
288
|
+
function A(e) {
|
|
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
|
|
299
|
-
config:
|
|
298
|
+
var Qe = xe.create({
|
|
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), E
|
|
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 E
|
|
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 =
|
|
477
|
+
}, J = (e, t) => {
|
|
478
|
+
let r = t;
|
|
479
479
|
return (_.isObject(r) || _.isArray(r)) && (r = JSON.stringify(r, null, 2)), _.isString(r) ? r : `${r}`;
|
|
480
|
-
},
|
|
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: {
|
|
@@ -516,17 +516,18 @@ const lt = (e, n) => {
|
|
|
516
516
|
title: {},
|
|
517
517
|
type: { default: "primary" },
|
|
518
518
|
warning: { type: Boolean },
|
|
519
|
-
width: {}
|
|
519
|
+
width: {},
|
|
520
|
+
iconClass: { default: "" }
|
|
520
521
|
},
|
|
521
522
|
emits: ["click", "mouseenter", "mouseleave", "dblclick"],
|
|
522
|
-
setup(e, { emit:
|
|
523
|
-
const r = e,
|
|
524
|
-
const { name: i } =
|
|
523
|
+
setup(e, { emit: t }) {
|
|
524
|
+
const r = e, n = $(() => r), o = $(() => {
|
|
525
|
+
const { name: i } = n.value;
|
|
525
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";
|
|
526
527
|
}), a = $(() => {
|
|
527
528
|
const i = [];
|
|
528
|
-
if (
|
|
529
|
-
switch (
|
|
529
|
+
if (n.value.flip)
|
|
530
|
+
switch (n.value.flip) {
|
|
530
531
|
case "horizontal":
|
|
531
532
|
i.push("rotateY(180deg)");
|
|
532
533
|
break;
|
|
@@ -537,20 +538,19 @@ const lt = (e, n) => {
|
|
|
537
538
|
i.push("rotateX(180deg)"), i.push("rotateY(180deg)");
|
|
538
539
|
break;
|
|
539
540
|
}
|
|
540
|
-
|
|
541
|
-
const
|
|
542
|
-
|
|
543
|
-
...
|
|
544
|
-
...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 },
|
|
545
545
|
...i.length && { transform: i.join(" ") },
|
|
546
|
-
padding:
|
|
547
|
-
...
|
|
548
|
-
"--ik-icon-deep-color":
|
|
549
|
-
"--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)
|
|
550
550
|
} : {}
|
|
551
551
|
};
|
|
552
|
-
return
|
|
553
|
-
}), 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) => {
|
|
554
554
|
l("click", i);
|
|
555
555
|
}, u = (i) => {
|
|
556
556
|
l("mouseenter", i);
|
|
@@ -559,159 +559,135 @@ const lt = (e, n) => {
|
|
|
559
559
|
}, w = (i) => {
|
|
560
560
|
l("dblclick", i);
|
|
561
561
|
};
|
|
562
|
-
return (i,
|
|
563
|
-
const
|
|
564
|
-
return
|
|
565
|
-
|
|
566
|
-
{
|
|
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
|
+
},
|
|
567
587
|
[
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
{
|
|
571
|
-
key: 0,
|
|
572
|
-
class: m(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
573
|
-
[i.name]: o.value === "unocss",
|
|
574
|
-
"show-bg": t.value.showBg || t.value.bg,
|
|
575
|
-
default: t.value.size === "default",
|
|
576
|
-
small: t.value.size === "small",
|
|
577
|
-
big: t.value.size === "big",
|
|
578
|
-
warning: t.value.warning || t.value.type === "warning",
|
|
579
|
-
primary: t.value.primary || t.value.type === "primary",
|
|
580
|
-
success: i.success || t.value.type === "success",
|
|
581
|
-
error: t.value.error || t.value.type === "error",
|
|
582
|
-
active: t.value.active,
|
|
583
|
-
disabled: t.value.disabled
|
|
584
|
-
}]),
|
|
585
|
-
style: O(a.value),
|
|
586
|
-
onClick: c,
|
|
587
|
-
onDblclick: w,
|
|
588
|
-
onMouseenter: u,
|
|
589
|
-
onMouseleave: g
|
|
590
|
-
},
|
|
588
|
+
n.value.tableIconType === "icon" || !n.value.tableIconType ? (s(), d(
|
|
589
|
+
F,
|
|
590
|
+
{ key: 0 },
|
|
591
591
|
[
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
{
|
|
595
|
-
key: 0,
|
|
596
|
-
class: m(`iksig ${t.value.name}`),
|
|
597
|
-
style: O(a.value)
|
|
598
|
-
},
|
|
599
|
-
null,
|
|
600
|
-
6
|
|
601
|
-
/* CLASS, STYLE */
|
|
602
|
-
)) : o.value === "svg" ? (s(), d("svg", ct, [
|
|
603
|
-
b("use", {
|
|
604
|
-
"xlink:href": `#${t.value.name}`
|
|
605
|
-
}, null, 8, st)
|
|
606
|
-
])) : o.value === "img" ? (s(), d("img", {
|
|
607
|
-
key: 2,
|
|
608
|
-
src: t.value.name,
|
|
609
|
-
class: "h-[1em] w-[1em]"
|
|
610
|
-
}, null, 8, dt)) : (s(), d(
|
|
611
|
-
"i",
|
|
612
|
-
{
|
|
613
|
-
key: 3,
|
|
614
|
-
class: m(t.value.name),
|
|
615
|
-
style: O(a.value)
|
|
616
|
-
},
|
|
617
|
-
null,
|
|
618
|
-
6
|
|
619
|
-
/* CLASS, STYLE */
|
|
620
|
-
))
|
|
621
|
-
],
|
|
622
|
-
38
|
|
623
|
-
/* CLASS, STYLE, NEED_HYDRATION */
|
|
624
|
-
)) : (s(), D(I, {
|
|
625
|
-
key: 1,
|
|
626
|
-
content: t.value.title,
|
|
627
|
-
placement: "top",
|
|
628
|
-
"popper-class": "ik-svg-icon-tooltip",
|
|
629
|
-
"hide-after": 0
|
|
630
|
-
}, {
|
|
631
|
-
default: N(() => [
|
|
632
|
-
b(
|
|
633
|
-
"i",
|
|
634
|
-
{
|
|
635
|
-
class: m(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
636
|
-
[i.name]: o.value === "unocss",
|
|
637
|
-
"show-bg": t.value.showBg || t.value.bg,
|
|
638
|
-
default: t.value.size === "default",
|
|
639
|
-
small: t.value.size === "small",
|
|
640
|
-
big: t.value.size === "big",
|
|
641
|
-
warning: t.value.warning || t.value.type === "warning",
|
|
642
|
-
primary: i.primary || t.value.type === "primary",
|
|
643
|
-
success: i.success || t.value.type === "success",
|
|
644
|
-
error: t.value.error || t.value.type === "error",
|
|
645
|
-
active: t.value.active,
|
|
646
|
-
disabled: t.value.disabled
|
|
647
|
-
}]),
|
|
648
|
-
style: O(a.value),
|
|
649
|
-
onClick: c,
|
|
650
|
-
onDblclick: w,
|
|
651
|
-
onMouseenter: u,
|
|
652
|
-
onMouseleave: g
|
|
653
|
-
},
|
|
592
|
+
n.value.notip || !n.value.title ? (s(), d(
|
|
593
|
+
F,
|
|
594
|
+
{ key: 0 },
|
|
654
595
|
[
|
|
655
596
|
o.value === "iksig" ? (s(), d(
|
|
656
597
|
"i",
|
|
657
598
|
{
|
|
658
599
|
key: 0,
|
|
659
|
-
class:
|
|
660
|
-
style: O(a.value)
|
|
600
|
+
class: y(`iksig ${n.value.name}`)
|
|
661
601
|
},
|
|
662
602
|
null,
|
|
663
|
-
|
|
664
|
-
/* CLASS
|
|
665
|
-
)) : o.value === "svg" ? (s(), d("svg",
|
|
603
|
+
2
|
|
604
|
+
/* CLASS */
|
|
605
|
+
)) : o.value === "svg" ? (s(), d("svg", st, [
|
|
666
606
|
b("use", {
|
|
667
|
-
"xlink:href": `#${
|
|
668
|
-
}, null, 8,
|
|
607
|
+
"xlink:href": `#${n.value.name}`
|
|
608
|
+
}, null, 8, dt)
|
|
669
609
|
])) : o.value === "img" ? (s(), d("img", {
|
|
670
610
|
key: 2,
|
|
671
|
-
src:
|
|
611
|
+
src: n.value.name,
|
|
672
612
|
class: "h-[1em] w-[1em]"
|
|
673
|
-
}, null, 8,
|
|
613
|
+
}, null, 8, ft)) : (s(), d(
|
|
674
614
|
"i",
|
|
675
615
|
{
|
|
676
616
|
key: 3,
|
|
677
|
-
class:
|
|
678
|
-
style: O(a.value)
|
|
617
|
+
class: y(n.value.name)
|
|
679
618
|
},
|
|
680
619
|
null,
|
|
681
|
-
|
|
682
|
-
/* CLASS
|
|
620
|
+
2
|
|
621
|
+
/* CLASS */
|
|
683
622
|
))
|
|
684
623
|
],
|
|
685
|
-
|
|
686
|
-
/*
|
|
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 */
|
|
687
676
|
)
|
|
688
677
|
]),
|
|
689
678
|
_: 1
|
|
690
679
|
/* STABLE */
|
|
691
|
-
},
|
|
680
|
+
}, 16, ["type"]))
|
|
692
681
|
],
|
|
693
|
-
|
|
694
|
-
/*
|
|
695
|
-
)
|
|
696
|
-
key: 1,
|
|
697
|
-
type: ["warning", "error"].includes(t.value.type) ? "danger" : ""
|
|
698
|
-
}, {
|
|
699
|
-
default: N(() => [
|
|
700
|
-
ue(
|
|
701
|
-
ce(t.value.title),
|
|
702
|
-
1
|
|
703
|
-
/* TEXT */
|
|
704
|
-
)
|
|
705
|
-
]),
|
|
706
|
-
_: 1
|
|
707
|
-
/* STABLE */
|
|
708
|
-
}, 8, ["type"]));
|
|
682
|
+
38
|
|
683
|
+
/* CLASS, STYLE, NEED_HYDRATION */
|
|
684
|
+
);
|
|
709
685
|
};
|
|
710
686
|
}
|
|
711
|
-
}),
|
|
687
|
+
}), ht = /* @__PURE__ */ oe(pt, [["__scopeId", "data-v-2648e369"]]), yt = Z(ht), bt = Q({
|
|
712
688
|
name: "IkMonacoEditor",
|
|
713
689
|
components: {
|
|
714
|
-
IkSvgIcon:
|
|
690
|
+
IkSvgIcon: yt
|
|
715
691
|
},
|
|
716
692
|
props: {
|
|
717
693
|
language: {
|
|
@@ -751,17 +727,17 @@ const lt = (e, n) => {
|
|
|
751
727
|
}
|
|
752
728
|
},
|
|
753
729
|
emits: ["change", "blur"],
|
|
754
|
-
setup(e,
|
|
755
|
-
const r = V(!1),
|
|
730
|
+
setup(e, t) {
|
|
731
|
+
const r = V(!1), n = $(() => `datav-editor-${pe()}`);
|
|
756
732
|
let o = null, a = null, l = null;
|
|
757
733
|
const c = "datav-dark-theme", u = V(!1), g = () => {
|
|
758
|
-
a &&
|
|
759
|
-
|
|
734
|
+
a && ye.copyText(a.getValue()).then(() => {
|
|
735
|
+
be.success("复制成功");
|
|
760
736
|
});
|
|
761
737
|
}, w = () => {
|
|
762
738
|
if (a) {
|
|
763
739
|
const f = a.getValue();
|
|
764
|
-
|
|
740
|
+
t.emit("change", {
|
|
765
741
|
value: f,
|
|
766
742
|
extra: e.extra
|
|
767
743
|
});
|
|
@@ -769,17 +745,17 @@ const lt = (e, n) => {
|
|
|
769
745
|
}, i = () => {
|
|
770
746
|
if (a) {
|
|
771
747
|
const f = a.getValue();
|
|
772
|
-
|
|
748
|
+
t.emit("blur", {
|
|
773
749
|
value: f,
|
|
774
750
|
extra: e.extra
|
|
775
|
-
}), e.autoFormat &&
|
|
751
|
+
}), e.autoFormat && z(a, e.language);
|
|
776
752
|
}
|
|
777
|
-
},
|
|
753
|
+
}, v = he.debounce(w, 300), C = () => {
|
|
778
754
|
const f = document.querySelector(
|
|
779
755
|
".datav-fullscreen-editor-dialog section"
|
|
780
756
|
);
|
|
781
757
|
if (f) {
|
|
782
|
-
const
|
|
758
|
+
const p = Object.assign({}, X, e.options, {
|
|
783
759
|
tabSize: 2,
|
|
784
760
|
value: "",
|
|
785
761
|
language: e.language,
|
|
@@ -793,34 +769,34 @@ const lt = (e, n) => {
|
|
|
793
769
|
});
|
|
794
770
|
if (!o || !a)
|
|
795
771
|
return;
|
|
796
|
-
const
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
}, 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;
|
|
800
776
|
}
|
|
801
|
-
},
|
|
777
|
+
}, M = () => {
|
|
802
778
|
u.value = !u.value, u.value && W(() => {
|
|
803
|
-
|
|
779
|
+
C();
|
|
804
780
|
});
|
|
805
|
-
},
|
|
781
|
+
}, ae = () => {
|
|
806
782
|
l && (a && !e.readOnly && (a.setValue(l.getValue()), a.focus()), l.dispose());
|
|
807
783
|
};
|
|
808
|
-
return
|
|
784
|
+
return de(
|
|
809
785
|
() => e.code,
|
|
810
786
|
(f) => {
|
|
811
787
|
if (a) {
|
|
812
|
-
const
|
|
813
|
-
a.setValue(
|
|
788
|
+
const p = J(e.language, f);
|
|
789
|
+
a.setValue(p);
|
|
814
790
|
}
|
|
815
791
|
}
|
|
816
|
-
),
|
|
792
|
+
), fe(async () => {
|
|
817
793
|
const f = setTimeout(() => {
|
|
818
794
|
r.value = !0;
|
|
819
795
|
}, 200);
|
|
820
|
-
o = await
|
|
821
|
-
const
|
|
822
|
-
if (
|
|
823
|
-
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, {
|
|
824
800
|
tabSize: 2,
|
|
825
801
|
value: "",
|
|
826
802
|
language: e.language,
|
|
@@ -831,54 +807,54 @@ const lt = (e, n) => {
|
|
|
831
807
|
},
|
|
832
808
|
lineNumbers: e.lineNumbers,
|
|
833
809
|
wordWrap: e.wordWrap
|
|
834
|
-
}),
|
|
835
|
-
|
|
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;
|
|
836
812
|
}
|
|
837
|
-
}),
|
|
813
|
+
}), ge(() => {
|
|
838
814
|
a == null || a.dispose(), l == null || l.dispose();
|
|
839
815
|
}), {
|
|
840
|
-
editorId:
|
|
816
|
+
editorId: n,
|
|
841
817
|
isFullScreen: u,
|
|
842
818
|
loading: r,
|
|
843
819
|
copyData: g,
|
|
844
|
-
switchFullScreen:
|
|
845
|
-
openedFullScreenDialog:
|
|
846
|
-
closedFullScreenDialog:
|
|
820
|
+
switchFullScreen: M,
|
|
821
|
+
openedFullScreenDialog: C,
|
|
822
|
+
closedFullScreenDialog: ae
|
|
847
823
|
};
|
|
848
824
|
}
|
|
849
|
-
}),
|
|
825
|
+
}), wt = ["id"], Ot = {
|
|
850
826
|
key: 0,
|
|
851
827
|
class: "datav-editor-actions"
|
|
852
|
-
},
|
|
853
|
-
function kt(e,
|
|
854
|
-
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");
|
|
855
831
|
return s(), d(
|
|
856
|
-
|
|
832
|
+
F,
|
|
857
833
|
null,
|
|
858
834
|
[
|
|
859
835
|
b("div", {
|
|
860
836
|
id: e.editorId,
|
|
861
|
-
class:
|
|
837
|
+
class: y(["datav-editor", [
|
|
862
838
|
{
|
|
863
839
|
"--read-only": e.readOnly
|
|
864
840
|
},
|
|
865
841
|
e.editorClass
|
|
866
842
|
]])
|
|
867
843
|
}, [
|
|
868
|
-
e.loading ?
|
|
844
|
+
e.loading ? me("v-if", !0) : (s(), d("div", Ot, [
|
|
869
845
|
x(l, {
|
|
870
846
|
name: "iksvg_tongyong4",
|
|
871
847
|
title: "复制",
|
|
872
848
|
pop: "",
|
|
873
849
|
onClick: e.copyData
|
|
874
850
|
}, null, 8, ["onClick"]),
|
|
875
|
-
e.isFullScreen ? (s(),
|
|
851
|
+
e.isFullScreen ? (s(), P(l, {
|
|
876
852
|
key: 1,
|
|
877
853
|
pop: "",
|
|
878
854
|
title: "退出全屏",
|
|
879
855
|
name: "iksvg_tuichuquanping",
|
|
880
856
|
onClick: e.switchFullScreen
|
|
881
|
-
}, null, 8, ["onClick"])) : (s(),
|
|
857
|
+
}, null, 8, ["onClick"])) : (s(), P(l, {
|
|
882
858
|
key: 0,
|
|
883
859
|
pop: "",
|
|
884
860
|
title: "全屏",
|
|
@@ -886,10 +862,10 @@ function kt(e, n, r, t, o, a) {
|
|
|
886
862
|
onClick: e.switchFullScreen
|
|
887
863
|
}, null, 8, ["onClick"]))
|
|
888
864
|
]))
|
|
889
|
-
], 10,
|
|
865
|
+
], 10, wt),
|
|
890
866
|
x(c, {
|
|
891
867
|
modelValue: e.isFullScreen,
|
|
892
|
-
"onUpdate:modelValue":
|
|
868
|
+
"onUpdate:modelValue": t[0] || (t[0] = (u) => e.isFullScreen = u),
|
|
893
869
|
title: `${e.fullScreenTitle}${e.readOnly ? " ( 只读 )" : ""}`,
|
|
894
870
|
preset: "dialog",
|
|
895
871
|
"show-icon": !1,
|
|
@@ -899,17 +875,17 @@ function kt(e, n, r, t, o, a) {
|
|
|
899
875
|
onClosed: e.closedFullScreenDialog
|
|
900
876
|
}, {
|
|
901
877
|
default: N(() => [
|
|
902
|
-
b("div",
|
|
878
|
+
b("div", St, [
|
|
903
879
|
b(
|
|
904
880
|
"div",
|
|
905
881
|
{
|
|
906
|
-
class:
|
|
882
|
+
class: y(["datav-editor datav-fullscreen-editor", [
|
|
907
883
|
{
|
|
908
884
|
"--read-only": e.readOnly
|
|
909
885
|
}
|
|
910
886
|
]])
|
|
911
887
|
},
|
|
912
|
-
|
|
888
|
+
t[1] || (t[1] = [
|
|
913
889
|
b(
|
|
914
890
|
"section",
|
|
915
891
|
{ style: { position: "relative", display: "flex", width: "100%", height: "100%", "text-align": "initial" } },
|
|
@@ -931,7 +907,7 @@ function kt(e, n, r, t, o, a) {
|
|
|
931
907
|
/* STABLE_FRAGMENT */
|
|
932
908
|
);
|
|
933
909
|
}
|
|
934
|
-
const
|
|
910
|
+
const jt = /* @__PURE__ */ oe(bt, [["render", kt]]), Tt = Z(jt);
|
|
935
911
|
export {
|
|
936
912
|
Tt as IkMonacoEditor,
|
|
937
913
|
Tt as default
|