ik-next-ui 0.0.13 → 0.0.14
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/IkApprovalProcess/ik-next-ui.css +1 -1
- package/dist/IkApprovalProcess/ik.index.es.js +1 -1
- package/dist/IkApprovalProcessDetail/ik-next-ui.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +694 -656
- package/dist/IkBaseDialog/ik-next-ui.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +154 -116
- package/dist/IkCollapseCard/ik-next-ui.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +163 -125
- package/dist/IkDescription/ik-next-ui.css +1 -1
- package/dist/IkDescription/ik.index.es.js +506 -468
- package/dist/IkDetailPreviewFiles/ik-next-ui.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +709 -671
- package/dist/IkIconPicker/ik-next-ui.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +180 -142
- package/dist/IkMonacoEditor/ik-next-ui.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +418 -380
- package/dist/IkPickerUser/ik-next-ui.css +1 -1
- package/dist/IkPreviewFile/ik-next-ui.css +1 -1
- package/dist/IkPreviewFile/ik.index.es.js +644 -606
- package/dist/IkPreviewFileDialog/ik-next-ui.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +658 -620
- package/dist/IkRadioGroup/ik-next-ui.css +1 -1
- package/dist/IkRadioGroup/ik.index.es.js +140 -102
- package/dist/IkSideText/ik-next-ui.css +1 -1
- package/dist/IkSideText/ik.index.es.js +131 -93
- package/dist/IkSvgIcon/ik-next-ui.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +139 -101
- package/dist/IkUploadFile/ik-next-ui.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +776 -736
- package/dist/IkUploadImage/ik-next-ui.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +261 -223
- package/dist/IkVerticalStepBar/ik-next-ui.css +1 -1
- package/dist/IkVerticalStepBar/ik.index.es.js +140 -102
- package/dist/Provider/ik.index.es.js +1 -1
- package/dist/build/version.json.d.ts +1 -1
- package/dist/ik-next-ui.css +2 -2
- package/dist/index.es.js +3044 -3043
- package/dist/index.umd.js +67 -67
- package/dist/src/components/IkUploadFile/src/hooks/useFileInfo.d.ts +1 -0
- package/dist/src/iking-ui/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,174 +1,174 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { paramType as
|
|
3
|
-
import { ElMessage as
|
|
4
|
-
import { Icon as
|
|
5
|
-
import { UseImage as
|
|
6
|
-
const
|
|
7
|
-
for (const
|
|
8
|
-
|
|
1
|
+
import { defineComponent as H, computed as O, resolveComponent as L, openBlock as d, createBlock as v, withCtx as S, renderSlot as me, createElementBlock as h, normalizeStyle as I, normalizeClass as z, unref as j, createElementVNode as f, createCommentVNode as V, Fragment as ie, ref as R, watch as he, onMounted as ve, nextTick as K, onUnmounted as pe, createVNode as G } from "vue";
|
|
2
|
+
import { paramType as E, buildUUID as ye, _ as be, ikDom as we } from "iking-utils-pro";
|
|
3
|
+
import { ElMessage as ke } from "element-plus";
|
|
4
|
+
import { Icon as J } from "@iconify/vue";
|
|
5
|
+
import { UseImage as Y } from "@vueuse/components";
|
|
6
|
+
const U = (e, n) => (e.install = (t) => {
|
|
7
|
+
for (const o of [e, ...Object.values({})])
|
|
8
|
+
t.component(o.name, o);
|
|
9
9
|
}, e);
|
|
10
10
|
function ae(...e) {
|
|
11
|
-
const
|
|
12
|
-
for (const
|
|
13
|
-
if (
|
|
14
|
-
if (typeof
|
|
15
|
-
|
|
16
|
-
else if (Array.isArray(
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
} else if (typeof
|
|
20
|
-
for (const [
|
|
21
|
-
|
|
11
|
+
const n = [];
|
|
12
|
+
for (const t of e)
|
|
13
|
+
if (t) {
|
|
14
|
+
if (typeof t == "string")
|
|
15
|
+
n.push(t);
|
|
16
|
+
else if (Array.isArray(t)) {
|
|
17
|
+
const o = ae(...t);
|
|
18
|
+
o && n.push(o);
|
|
19
|
+
} else if (typeof t == "object")
|
|
20
|
+
for (const [o, r] of Object.entries(t))
|
|
21
|
+
r && n.push(o);
|
|
22
22
|
}
|
|
23
|
-
return
|
|
23
|
+
return n.join(" ");
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
(
|
|
27
|
-
for (var
|
|
28
|
-
return
|
|
25
|
+
function Q(e, n) {
|
|
26
|
+
(n == null || n > e.length) && (n = e.length);
|
|
27
|
+
for (var t = 0, o = Array(n); t < n; t++) o[t] = e[t];
|
|
28
|
+
return o;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Oe(e) {
|
|
31
31
|
if (Array.isArray(e)) return e;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
return (
|
|
35
|
-
value:
|
|
33
|
+
function Se(e, n, t) {
|
|
34
|
+
return (n = Te(n)) in e ? Object.defineProperty(e, n, {
|
|
35
|
+
value: t,
|
|
36
36
|
enumerable: !0,
|
|
37
37
|
configurable: !0,
|
|
38
38
|
writable: !0
|
|
39
|
-
}) : e[
|
|
39
|
+
}) : e[n] = t, e;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
var
|
|
43
|
-
if (
|
|
44
|
-
var
|
|
41
|
+
function je(e, n) {
|
|
42
|
+
var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
43
|
+
if (t != null) {
|
|
44
|
+
var o, r, i, a, u = [], c = !0, g = !1;
|
|
45
45
|
try {
|
|
46
|
-
if (i = (
|
|
47
|
-
} catch (
|
|
48
|
-
|
|
46
|
+
if (i = (t = t.call(e)).next, n !== 0) for (; !(c = (o = i.call(t)).done) && (u.push(o.value), u.length !== n); c = !0) ;
|
|
47
|
+
} catch (y) {
|
|
48
|
+
g = !0, r = y;
|
|
49
49
|
} finally {
|
|
50
50
|
try {
|
|
51
|
-
if (!c &&
|
|
51
|
+
if (!c && t.return != null && (a = t.return(), Object(a) !== a)) return;
|
|
52
52
|
} finally {
|
|
53
|
-
if (
|
|
53
|
+
if (g) throw r;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
return u;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function Ce() {
|
|
60
60
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
61
61
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
var
|
|
63
|
+
function X(e, n) {
|
|
64
|
+
var t = Object.keys(e);
|
|
65
65
|
if (Object.getOwnPropertySymbols) {
|
|
66
|
-
var
|
|
67
|
-
|
|
68
|
-
return Object.getOwnPropertyDescriptor(e,
|
|
69
|
-
})),
|
|
66
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
67
|
+
n && (o = o.filter(function(r) {
|
|
68
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
69
|
+
})), t.push.apply(t, o);
|
|
70
70
|
}
|
|
71
|
-
return
|
|
72
|
-
}
|
|
73
|
-
function
|
|
74
|
-
for (var
|
|
75
|
-
var
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(
|
|
79
|
-
Object.defineProperty(e,
|
|
71
|
+
return t;
|
|
72
|
+
}
|
|
73
|
+
function Z(e) {
|
|
74
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
75
|
+
var t = arguments[n] != null ? arguments[n] : {};
|
|
76
|
+
n % 2 ? X(Object(t), !0).forEach(function(o) {
|
|
77
|
+
Se(e, o, t[o]);
|
|
78
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : X(Object(t)).forEach(function(o) {
|
|
79
|
+
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(t, o));
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
return e;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function Ie(e, n) {
|
|
85
85
|
if (e == null) return {};
|
|
86
|
-
var
|
|
86
|
+
var t, o, r = $e(e, n);
|
|
87
87
|
if (Object.getOwnPropertySymbols) {
|
|
88
88
|
var i = Object.getOwnPropertySymbols(e);
|
|
89
|
-
for (
|
|
89
|
+
for (o = 0; o < i.length; o++) t = i[o], n.indexOf(t) === -1 && {}.propertyIsEnumerable.call(e, t) && (r[t] = e[t]);
|
|
90
90
|
}
|
|
91
|
-
return
|
|
91
|
+
return r;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function $e(e, n) {
|
|
94
94
|
if (e == null) return {};
|
|
95
|
-
var
|
|
96
|
-
for (var
|
|
97
|
-
if (
|
|
98
|
-
|
|
95
|
+
var t = {};
|
|
96
|
+
for (var o in e) if ({}.hasOwnProperty.call(e, o)) {
|
|
97
|
+
if (n.indexOf(o) !== -1) continue;
|
|
98
|
+
t[o] = e[o];
|
|
99
99
|
}
|
|
100
|
-
return
|
|
100
|
+
return t;
|
|
101
101
|
}
|
|
102
|
-
function ze(e,
|
|
103
|
-
return
|
|
102
|
+
function ze(e, n) {
|
|
103
|
+
return Oe(e) || je(e, n) || Me(e, n) || Ce();
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function Pe(e, n) {
|
|
106
106
|
if (typeof e != "object" || !e) return e;
|
|
107
|
-
var
|
|
108
|
-
if (
|
|
109
|
-
var
|
|
110
|
-
if (typeof
|
|
107
|
+
var t = e[Symbol.toPrimitive];
|
|
108
|
+
if (t !== void 0) {
|
|
109
|
+
var o = t.call(e, n);
|
|
110
|
+
if (typeof o != "object") return o;
|
|
111
111
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
112
112
|
}
|
|
113
|
-
return (
|
|
113
|
+
return (n === "string" ? String : Number)(e);
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
var
|
|
117
|
-
return typeof
|
|
115
|
+
function Te(e) {
|
|
116
|
+
var n = Pe(e, "string");
|
|
117
|
+
return typeof n == "symbol" ? n : n + "";
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function Me(e, n) {
|
|
120
120
|
if (e) {
|
|
121
|
-
if (typeof e == "string") return
|
|
122
|
-
var
|
|
123
|
-
return
|
|
121
|
+
if (typeof e == "string") return Q(e, n);
|
|
122
|
+
var t = {}.toString.call(e).slice(8, -1);
|
|
123
|
+
return t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set" ? Array.from(e) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Q(e, n) : void 0;
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
function
|
|
127
|
-
return
|
|
128
|
-
value:
|
|
126
|
+
function Be(e, n, t) {
|
|
127
|
+
return n in e ? Object.defineProperty(e, n, {
|
|
128
|
+
value: t,
|
|
129
129
|
enumerable: !0,
|
|
130
130
|
configurable: !0,
|
|
131
131
|
writable: !0
|
|
132
|
-
}) : e[
|
|
132
|
+
}) : e[n] = t, e;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
var
|
|
134
|
+
function _(e, n) {
|
|
135
|
+
var t = Object.keys(e);
|
|
136
136
|
if (Object.getOwnPropertySymbols) {
|
|
137
|
-
var
|
|
138
|
-
|
|
139
|
-
return Object.getOwnPropertyDescriptor(e,
|
|
140
|
-
})),
|
|
137
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
138
|
+
n && (o = o.filter(function(r) {
|
|
139
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
140
|
+
})), t.push.apply(t, o);
|
|
141
141
|
}
|
|
142
|
-
return
|
|
142
|
+
return t;
|
|
143
143
|
}
|
|
144
|
-
function
|
|
145
|
-
for (var
|
|
146
|
-
var
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(
|
|
150
|
-
Object.defineProperty(e,
|
|
144
|
+
function ee(e) {
|
|
145
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
146
|
+
var t = arguments[n] != null ? arguments[n] : {};
|
|
147
|
+
n % 2 ? _(Object(t), !0).forEach(function(o) {
|
|
148
|
+
Be(e, o, t[o]);
|
|
149
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : _(Object(t)).forEach(function(o) {
|
|
150
|
+
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(t, o));
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
153
|
return e;
|
|
154
154
|
}
|
|
155
|
-
function
|
|
156
|
-
for (var e = arguments.length,
|
|
157
|
-
t
|
|
158
|
-
return function(
|
|
159
|
-
return
|
|
160
|
-
return i(
|
|
161
|
-
},
|
|
155
|
+
function xe() {
|
|
156
|
+
for (var e = arguments.length, n = new Array(e), t = 0; t < e; t++)
|
|
157
|
+
n[t] = arguments[t];
|
|
158
|
+
return function(o) {
|
|
159
|
+
return n.reduceRight(function(r, i) {
|
|
160
|
+
return i(r);
|
|
161
|
+
}, o);
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
|
-
function
|
|
165
|
-
return function
|
|
166
|
-
for (var
|
|
167
|
-
|
|
168
|
-
return
|
|
164
|
+
function $(e) {
|
|
165
|
+
return function n() {
|
|
166
|
+
for (var t = this, o = arguments.length, r = new Array(o), i = 0; i < o; i++)
|
|
167
|
+
r[i] = arguments[i];
|
|
168
|
+
return r.length >= e.length ? e.apply(this, r) : function() {
|
|
169
169
|
for (var a = arguments.length, u = new Array(a), c = 0; c < a; c++)
|
|
170
170
|
u[c] = arguments[c];
|
|
171
|
-
return
|
|
171
|
+
return n.apply(t, [].concat(r, u));
|
|
172
172
|
};
|
|
173
173
|
};
|
|
174
174
|
}
|
|
@@ -181,29 +181,29 @@ function Ae(e) {
|
|
|
181
181
|
function P(e) {
|
|
182
182
|
return typeof e == "function";
|
|
183
183
|
}
|
|
184
|
-
function De(e,
|
|
185
|
-
return Object.prototype.hasOwnProperty.call(e,
|
|
186
|
-
}
|
|
187
|
-
function Ee(e, t) {
|
|
188
|
-
return A(t) || v("changeType"), Object.keys(t).some(function(n) {
|
|
189
|
-
return !De(e, n);
|
|
190
|
-
}) && v("changeField"), t;
|
|
184
|
+
function De(e, n) {
|
|
185
|
+
return Object.prototype.hasOwnProperty.call(e, n);
|
|
191
186
|
}
|
|
192
|
-
function
|
|
193
|
-
|
|
187
|
+
function Ee(e, n) {
|
|
188
|
+
return A(n) || p("changeType"), Object.keys(n).some(function(t) {
|
|
189
|
+
return !De(e, t);
|
|
190
|
+
}) && p("changeField"), n;
|
|
194
191
|
}
|
|
195
192
|
function Fe(e) {
|
|
196
|
-
P(e) ||
|
|
197
|
-
return !P(t);
|
|
198
|
-
}) && v("handlersType");
|
|
193
|
+
P(e) || p("selectorType");
|
|
199
194
|
}
|
|
200
195
|
function Ne(e) {
|
|
201
|
-
e ||
|
|
196
|
+
P(e) || A(e) || p("handlerType"), A(e) && Object.values(e).some(function(n) {
|
|
197
|
+
return !P(n);
|
|
198
|
+
}) && p("handlersType");
|
|
199
|
+
}
|
|
200
|
+
function We(e) {
|
|
201
|
+
e || p("initialIsRequired"), A(e) || p("initialType"), Ae(e) && p("initialContent");
|
|
202
202
|
}
|
|
203
|
-
function
|
|
204
|
-
throw new Error(e[
|
|
203
|
+
function Le(e, n) {
|
|
204
|
+
throw new Error(e[n] || e.default);
|
|
205
205
|
}
|
|
206
|
-
var
|
|
206
|
+
var Ve = {
|
|
207
207
|
initialIsRequired: "initial state is required",
|
|
208
208
|
initialType: "initial state should be an object",
|
|
209
209
|
initialContent: "initial state shouldn't be an empty object",
|
|
@@ -213,74 +213,74 @@ var Le = {
|
|
|
213
213
|
changeType: "provided value of changes should be an object",
|
|
214
214
|
changeField: 'it seams you want to change a field in the state which is not specified in the "initial" state',
|
|
215
215
|
default: "an unknown error accured in `state-local` package"
|
|
216
|
-
},
|
|
216
|
+
}, p = $(Le)(Ve), x = {
|
|
217
217
|
changes: Ee,
|
|
218
|
-
selector:
|
|
219
|
-
handler:
|
|
220
|
-
initial:
|
|
218
|
+
selector: Fe,
|
|
219
|
+
handler: Ne,
|
|
220
|
+
initial: We
|
|
221
221
|
};
|
|
222
|
-
function
|
|
223
|
-
var
|
|
224
|
-
|
|
225
|
-
var
|
|
222
|
+
function qe(e) {
|
|
223
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
224
|
+
x.initial(e), x.handler(n);
|
|
225
|
+
var t = {
|
|
226
226
|
current: e
|
|
227
|
-
},
|
|
227
|
+
}, o = $(Re)(t, n), r = $(Ue)(t), i = $(x.changes)(e), a = $(He)(t);
|
|
228
228
|
function u() {
|
|
229
|
-
var
|
|
230
|
-
return
|
|
229
|
+
var g = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(y) {
|
|
230
|
+
return y;
|
|
231
231
|
};
|
|
232
|
-
return
|
|
232
|
+
return x.selector(g), g(t.current);
|
|
233
233
|
}
|
|
234
|
-
function c(
|
|
235
|
-
|
|
234
|
+
function c(g) {
|
|
235
|
+
xe(o, r, i, a)(g);
|
|
236
236
|
}
|
|
237
237
|
return [u, c];
|
|
238
238
|
}
|
|
239
|
-
function
|
|
240
|
-
return P(
|
|
239
|
+
function He(e, n) {
|
|
240
|
+
return P(n) ? n(e.current) : n;
|
|
241
241
|
}
|
|
242
|
-
function
|
|
243
|
-
return e.current =
|
|
242
|
+
function Ue(e, n) {
|
|
243
|
+
return e.current = ee(ee({}, e.current), n), n;
|
|
244
244
|
}
|
|
245
|
-
function
|
|
246
|
-
return P(
|
|
247
|
-
var
|
|
248
|
-
return (
|
|
249
|
-
}),
|
|
245
|
+
function Re(e, n, t) {
|
|
246
|
+
return P(n) ? n(e.current) : Object.keys(t).forEach(function(o) {
|
|
247
|
+
var r;
|
|
248
|
+
return (r = n[o]) === null || r === void 0 ? void 0 : r.call(n, e.current[o]);
|
|
249
|
+
}), t;
|
|
250
250
|
}
|
|
251
|
-
var
|
|
252
|
-
create:
|
|
253
|
-
},
|
|
251
|
+
var Ke = {
|
|
252
|
+
create: qe
|
|
253
|
+
}, Ge = {
|
|
254
254
|
paths: {
|
|
255
255
|
vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"
|
|
256
256
|
}
|
|
257
257
|
};
|
|
258
|
-
function
|
|
259
|
-
return function
|
|
260
|
-
for (var
|
|
261
|
-
|
|
262
|
-
return
|
|
258
|
+
function Je(e) {
|
|
259
|
+
return function n() {
|
|
260
|
+
for (var t = this, o = arguments.length, r = new Array(o), i = 0; i < o; i++)
|
|
261
|
+
r[i] = arguments[i];
|
|
262
|
+
return r.length >= e.length ? e.apply(this, r) : function() {
|
|
263
263
|
for (var a = arguments.length, u = new Array(a), c = 0; c < a; c++)
|
|
264
264
|
u[c] = arguments[c];
|
|
265
|
-
return
|
|
265
|
+
return n.apply(t, [].concat(r, u));
|
|
266
266
|
};
|
|
267
267
|
};
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function Ye(e) {
|
|
270
270
|
return {}.toString.call(e).includes("Object");
|
|
271
271
|
}
|
|
272
|
-
function
|
|
273
|
-
return e ||
|
|
272
|
+
function Qe(e) {
|
|
273
|
+
return e || te("configIsRequired"), Ye(e) || te("configType"), e.urls ? (Xe(), {
|
|
274
274
|
paths: {
|
|
275
275
|
vs: e.urls.monacoBase
|
|
276
276
|
}
|
|
277
277
|
}) : e;
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function Xe() {
|
|
280
280
|
console.warn(le.deprecation);
|
|
281
281
|
}
|
|
282
|
-
function
|
|
283
|
-
throw new Error(e[
|
|
282
|
+
function Ze(e, n) {
|
|
283
|
+
throw new Error(e[n] || e.default);
|
|
284
284
|
}
|
|
285
285
|
var le = {
|
|
286
286
|
configIsRequired: "the configuration object is required",
|
|
@@ -296,59 +296,59 @@ var le = {
|
|
|
296
296
|
|
|
297
297
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
298
298
|
`
|
|
299
|
-
},
|
|
300
|
-
config:
|
|
301
|
-
},
|
|
302
|
-
for (var
|
|
303
|
-
|
|
304
|
-
return function(
|
|
305
|
-
return
|
|
299
|
+
}, te = Je(Ze)(le), _e = {
|
|
300
|
+
config: Qe
|
|
301
|
+
}, et = function() {
|
|
302
|
+
for (var n = arguments.length, t = new Array(n), o = 0; o < n; o++)
|
|
303
|
+
t[o] = arguments[o];
|
|
304
|
+
return function(r) {
|
|
305
|
+
return t.reduceRight(function(i, a) {
|
|
306
306
|
return a(i);
|
|
307
|
-
},
|
|
307
|
+
}, r);
|
|
308
308
|
};
|
|
309
309
|
};
|
|
310
|
-
function ce(e,
|
|
311
|
-
return Object.keys(
|
|
312
|
-
t
|
|
313
|
-
}),
|
|
310
|
+
function ce(e, n) {
|
|
311
|
+
return Object.keys(n).forEach(function(t) {
|
|
312
|
+
n[t] instanceof Object && e[t] && Object.assign(n[t], ce(e[t], n[t]));
|
|
313
|
+
}), Z(Z({}, e), n);
|
|
314
314
|
}
|
|
315
|
-
var
|
|
315
|
+
var tt = {
|
|
316
316
|
type: "cancelation",
|
|
317
317
|
msg: "operation is manually canceled"
|
|
318
318
|
};
|
|
319
319
|
function F(e) {
|
|
320
|
-
var
|
|
320
|
+
var n = !1, t = new Promise(function(o, r) {
|
|
321
321
|
e.then(function(i) {
|
|
322
|
-
return
|
|
323
|
-
}), e.catch(
|
|
322
|
+
return n ? r(tt) : o(i);
|
|
323
|
+
}), e.catch(r);
|
|
324
324
|
});
|
|
325
|
-
return
|
|
326
|
-
return
|
|
327
|
-
},
|
|
325
|
+
return t.cancel = function() {
|
|
326
|
+
return n = !0;
|
|
327
|
+
}, t;
|
|
328
328
|
}
|
|
329
|
-
var
|
|
330
|
-
config:
|
|
329
|
+
var nt = ["monaco"], ot = Ke.create({
|
|
330
|
+
config: Ge,
|
|
331
331
|
isInitialized: !1,
|
|
332
332
|
resolve: null,
|
|
333
333
|
reject: null,
|
|
334
334
|
monaco: null
|
|
335
|
-
}), se = ze(
|
|
336
|
-
function
|
|
337
|
-
var
|
|
338
|
-
D(function(
|
|
335
|
+
}), se = ze(ot, 2), T = se[0], D = se[1];
|
|
336
|
+
function rt(e) {
|
|
337
|
+
var n = _e.config(e), t = n.monaco, o = Ie(n, nt);
|
|
338
|
+
D(function(r) {
|
|
339
339
|
return {
|
|
340
|
-
config: ce(
|
|
341
|
-
monaco:
|
|
340
|
+
config: ce(r.config, o),
|
|
341
|
+
monaco: t
|
|
342
342
|
};
|
|
343
343
|
});
|
|
344
344
|
}
|
|
345
|
-
function
|
|
346
|
-
var e = T(function(
|
|
347
|
-
var
|
|
345
|
+
function it() {
|
|
346
|
+
var e = T(function(n) {
|
|
347
|
+
var t = n.monaco, o = n.isInitialized, r = n.resolve;
|
|
348
348
|
return {
|
|
349
|
-
monaco:
|
|
350
|
-
isInitialized:
|
|
351
|
-
resolve:
|
|
349
|
+
monaco: t,
|
|
350
|
+
isInitialized: o,
|
|
351
|
+
resolve: r
|
|
352
352
|
};
|
|
353
353
|
});
|
|
354
354
|
if (!e.isInitialized) {
|
|
@@ -358,43 +358,43 @@ function on() {
|
|
|
358
358
|
return e.resolve(e.monaco), F(N);
|
|
359
359
|
if (window.monaco && window.monaco.editor)
|
|
360
360
|
return ue(window.monaco), e.resolve(window.monaco), F(N);
|
|
361
|
-
|
|
361
|
+
et(at, ct)(st);
|
|
362
362
|
}
|
|
363
363
|
return F(N);
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function at(e) {
|
|
366
366
|
return document.body.appendChild(e);
|
|
367
367
|
}
|
|
368
|
-
function
|
|
369
|
-
var
|
|
370
|
-
return e && (
|
|
368
|
+
function lt(e) {
|
|
369
|
+
var n = document.createElement("script");
|
|
370
|
+
return e && (n.src = e), n;
|
|
371
371
|
}
|
|
372
|
-
function
|
|
373
|
-
var
|
|
374
|
-
var
|
|
372
|
+
function ct(e) {
|
|
373
|
+
var n = T(function(o) {
|
|
374
|
+
var r = o.config, i = o.reject;
|
|
375
375
|
return {
|
|
376
|
-
config:
|
|
376
|
+
config: r,
|
|
377
377
|
reject: i
|
|
378
378
|
};
|
|
379
|
-
}),
|
|
380
|
-
return
|
|
379
|
+
}), t = lt("".concat(n.config.paths.vs, "/loader.js"));
|
|
380
|
+
return t.onload = function() {
|
|
381
381
|
return e();
|
|
382
|
-
},
|
|
382
|
+
}, t.onerror = n.reject, t;
|
|
383
383
|
}
|
|
384
|
-
function
|
|
385
|
-
var e = T(function(
|
|
386
|
-
var
|
|
384
|
+
function st() {
|
|
385
|
+
var e = T(function(t) {
|
|
386
|
+
var o = t.config, r = t.resolve, i = t.reject;
|
|
387
387
|
return {
|
|
388
|
-
config:
|
|
389
|
-
resolve:
|
|
388
|
+
config: o,
|
|
389
|
+
resolve: r,
|
|
390
390
|
reject: i
|
|
391
391
|
};
|
|
392
|
-
}),
|
|
393
|
-
|
|
394
|
-
var
|
|
395
|
-
ue(
|
|
396
|
-
}, function(
|
|
397
|
-
e.reject(
|
|
392
|
+
}), n = window.require;
|
|
393
|
+
n.config(e.config), n(["vs/editor/editor.main"], function(t) {
|
|
394
|
+
var o = t.m || t;
|
|
395
|
+
ue(o), e.resolve(o);
|
|
396
|
+
}, function(t) {
|
|
397
|
+
e.reject(t);
|
|
398
398
|
});
|
|
399
399
|
}
|
|
400
400
|
function ue(e) {
|
|
@@ -402,23 +402,23 @@ function ue(e) {
|
|
|
402
402
|
monaco: e
|
|
403
403
|
});
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function ut() {
|
|
406
406
|
return T(function(e) {
|
|
407
|
-
var
|
|
408
|
-
return
|
|
407
|
+
var n = e.monaco;
|
|
408
|
+
return n;
|
|
409
409
|
});
|
|
410
410
|
}
|
|
411
|
-
var N = new Promise(function(e,
|
|
411
|
+
var N = new Promise(function(e, n) {
|
|
412
412
|
return D({
|
|
413
413
|
resolve: e,
|
|
414
|
-
reject:
|
|
414
|
+
reject: n
|
|
415
415
|
});
|
|
416
416
|
}), de = {
|
|
417
|
-
config:
|
|
418
|
-
init:
|
|
419
|
-
__getMonacoInstance:
|
|
417
|
+
config: rt,
|
|
418
|
+
init: it,
|
|
419
|
+
__getMonacoInstance: ut
|
|
420
420
|
};
|
|
421
|
-
const
|
|
421
|
+
const ne = {
|
|
422
422
|
automaticLayout: !0,
|
|
423
423
|
contextmenu: !1,
|
|
424
424
|
fixedOverflowWidgets: !0,
|
|
@@ -455,9 +455,9 @@ const ee = {
|
|
|
455
455
|
renderLineHighlight: "line",
|
|
456
456
|
renderWhitespace: "none",
|
|
457
457
|
scrollBeyondLastColumn: 2
|
|
458
|
-
},
|
|
459
|
-
const
|
|
460
|
-
return e.editor.defineTheme(
|
|
458
|
+
}, dt = (e) => {
|
|
459
|
+
const n = "datav-dark-theme";
|
|
460
|
+
return e.editor.defineTheme(n, {
|
|
461
461
|
base: "vs-dark",
|
|
462
462
|
inherit: !0,
|
|
463
463
|
rules: [
|
|
@@ -471,56 +471,95 @@ const ee = {
|
|
|
471
471
|
"editorLineNumber.foreground": "#576369",
|
|
472
472
|
"editorCursor.foreground": "#2483ff"
|
|
473
473
|
}
|
|
474
|
-
}),
|
|
474
|
+
}), n;
|
|
475
475
|
};
|
|
476
476
|
let q = [];
|
|
477
|
-
const
|
|
478
|
-
const
|
|
479
|
-
for (let
|
|
480
|
-
const
|
|
481
|
-
|
|
482
|
-
label: `:${
|
|
483
|
-
insertText:
|
|
477
|
+
const ft = (e, n) => {
|
|
478
|
+
const t = [];
|
|
479
|
+
for (let o = 0; o < q.length; o++) {
|
|
480
|
+
const r = q[o];
|
|
481
|
+
t.push({
|
|
482
|
+
label: `:${r}`,
|
|
483
|
+
insertText: r,
|
|
484
484
|
kind: e.languages.CompletionItemKind.Variable,
|
|
485
485
|
detail: "CallbackId",
|
|
486
|
-
range:
|
|
486
|
+
range: n
|
|
487
487
|
});
|
|
488
488
|
}
|
|
489
|
-
return
|
|
490
|
-
},
|
|
491
|
-
if (
|
|
492
|
-
if (q =
|
|
489
|
+
return t;
|
|
490
|
+
}, oe = /* @__PURE__ */ new Map(), gt = (e, n, t) => {
|
|
491
|
+
if (t && t.length > 0) {
|
|
492
|
+
if (q = t, oe.has(n))
|
|
493
493
|
return;
|
|
494
|
-
|
|
494
|
+
oe.set(n, 1), e.languages.registerCompletionItemProvider(n, {
|
|
495
495
|
triggerCharacters: [":"],
|
|
496
|
-
provideCompletionItems(
|
|
497
|
-
const i =
|
|
498
|
-
startLineNumber:
|
|
499
|
-
endLineNumber:
|
|
496
|
+
provideCompletionItems(o, r) {
|
|
497
|
+
const i = o.getWordUntilPosition(r), a = {
|
|
498
|
+
startLineNumber: r.lineNumber,
|
|
499
|
+
endLineNumber: r.lineNumber,
|
|
500
500
|
startColumn: i.startColumn,
|
|
501
501
|
endColumn: i.endColumn
|
|
502
502
|
};
|
|
503
503
|
return {
|
|
504
|
-
suggestions:
|
|
504
|
+
suggestions: ft(e, a)
|
|
505
505
|
};
|
|
506
506
|
}
|
|
507
507
|
});
|
|
508
508
|
}
|
|
509
|
-
},
|
|
510
|
-
let
|
|
511
|
-
return (
|
|
512
|
-
}, W = (e,
|
|
509
|
+
}, re = (e, n) => {
|
|
510
|
+
let t = n;
|
|
511
|
+
return (E.isObject(t) || E.isArray(t)) && (t = JSON.stringify(t, null, 2)), E.isString(t) ? t : `${t}`;
|
|
512
|
+
}, W = (e, n) => {
|
|
513
513
|
e.getAction("editor.action.formatDocument").run();
|
|
514
|
-
}, fe = (e,
|
|
515
|
-
const
|
|
516
|
-
for (const [
|
|
517
|
-
|
|
518
|
-
return
|
|
519
|
-
},
|
|
514
|
+
}, fe = (e, n) => {
|
|
515
|
+
const t = e.__vccOpts || e;
|
|
516
|
+
for (const [o, r] of n)
|
|
517
|
+
t[o] = r;
|
|
518
|
+
return t;
|
|
519
|
+
}, mt = /* @__PURE__ */ H({
|
|
520
|
+
__name: "index",
|
|
521
|
+
props: {
|
|
522
|
+
effect: {
|
|
523
|
+
type: String,
|
|
524
|
+
default: "dark"
|
|
525
|
+
},
|
|
526
|
+
content: {
|
|
527
|
+
type: String,
|
|
528
|
+
default: ""
|
|
529
|
+
},
|
|
530
|
+
text: {
|
|
531
|
+
type: String,
|
|
532
|
+
default: ""
|
|
533
|
+
},
|
|
534
|
+
placement: {
|
|
535
|
+
type: String,
|
|
536
|
+
default: "top"
|
|
537
|
+
}
|
|
538
|
+
},
|
|
539
|
+
setup(e) {
|
|
540
|
+
const n = e, t = O(() => n.effect);
|
|
541
|
+
return (o, r) => {
|
|
542
|
+
const i = L("el-tooltip");
|
|
543
|
+
return d(), v(i, {
|
|
544
|
+
class: "gl-tooltip",
|
|
545
|
+
effect: t.value,
|
|
546
|
+
content: e.text || e.content,
|
|
547
|
+
placement: e.placement,
|
|
548
|
+
enterable: !1
|
|
549
|
+
}, {
|
|
550
|
+
default: S(() => [
|
|
551
|
+
me(o.$slots, "default")
|
|
552
|
+
]),
|
|
553
|
+
_: 3
|
|
554
|
+
/* FORWARDED */
|
|
555
|
+
}, 8, ["effect", "content", "placement"]);
|
|
556
|
+
};
|
|
557
|
+
}
|
|
558
|
+
}), ht = U(mt), vt = {
|
|
520
559
|
key: 2,
|
|
521
560
|
class: "shrink-0 size-inherit",
|
|
522
561
|
"aria-hidden": "true"
|
|
523
|
-
},
|
|
562
|
+
}, pt = ["xlink:href"], yt = ["xlink:href"], bt = ["size"], wt = ["xlink:href"], kt = ["xlink:href"], Ot = /* @__PURE__ */ H({
|
|
524
563
|
name: "IkSvgIcon",
|
|
525
564
|
__name: "index",
|
|
526
565
|
props: {
|
|
@@ -542,19 +581,19 @@ const fn = (e, t) => {
|
|
|
542
581
|
hover: { type: Boolean, default: !1 }
|
|
543
582
|
},
|
|
544
583
|
emits: ["click"],
|
|
545
|
-
setup(e, { emit:
|
|
546
|
-
const
|
|
547
|
-
if (!
|
|
584
|
+
setup(e, { emit: n }) {
|
|
585
|
+
const t = e, o = n, r = O(() => t.danger ? "danger" : t.error ? "error" : t.type), i = O(() => {
|
|
586
|
+
if (!t.name)
|
|
548
587
|
return;
|
|
549
588
|
const l = (s) => /^\.{1,2}\//.test(s) || s.startsWith("/") || s.includes("/");
|
|
550
|
-
return /^https?:\/\//.test(
|
|
589
|
+
return /^https?:\/\//.test(t.name) || l(t.name) ? "img" : t.name.startsWith("iksvg_") ? "two-color-svg" : /i-[^:]+:[^:]+/.test(t.name) || t.name.startsWith("ik") ? "unocss" : t.name.includes(":") ? "iconify" : "svg";
|
|
551
590
|
}), a = {
|
|
552
591
|
big: 24,
|
|
553
592
|
default: 22,
|
|
554
593
|
small: 20
|
|
555
594
|
};
|
|
556
595
|
function u() {
|
|
557
|
-
return
|
|
596
|
+
return t.size ? a[t.size] || t.size : 18;
|
|
558
597
|
}
|
|
559
598
|
const c = O(() => {
|
|
560
599
|
const l = u(), s = typeof l == "number" ? `${l}px` : l;
|
|
@@ -563,103 +602,102 @@ const fn = (e, t) => {
|
|
|
563
602
|
height: s,
|
|
564
603
|
fontSize: s
|
|
565
604
|
};
|
|
566
|
-
}),
|
|
605
|
+
}), g = O(() => {
|
|
567
606
|
const s = `${Number.parseInt(u()) + 8}px`;
|
|
568
607
|
return {
|
|
569
608
|
width: s,
|
|
570
609
|
height: s
|
|
571
610
|
};
|
|
572
611
|
});
|
|
573
|
-
function
|
|
574
|
-
|
|
612
|
+
function y(l) {
|
|
613
|
+
t.onClick ? t.onClick(l) : o("click", l);
|
|
575
614
|
}
|
|
576
|
-
const
|
|
615
|
+
const b = O(() => {
|
|
577
616
|
if (i.value !== "two-color-svg")
|
|
578
617
|
return {};
|
|
579
618
|
const l = {};
|
|
580
|
-
if (
|
|
619
|
+
if (t.disabled)
|
|
581
620
|
return l["--ik-icon-deep-color"] = "var(--ik-icon-deep-disabled)", l["--ik-icon-shallow-color"] = "var(--ik-icon-shallow-disabled)", l;
|
|
582
|
-
if (
|
|
583
|
-
switch (
|
|
621
|
+
if (t.deepColor && (l["--ik-icon-deep-color"] = t.deepColor), t.shallowColor && (l["--ik-icon-shallow-color"] = t.shallowColor), t.colorMode !== "auto")
|
|
622
|
+
switch (t.colorMode) {
|
|
584
623
|
case "primary":
|
|
585
|
-
|
|
624
|
+
t.deepColor || (l["--ik-icon-deep-color"] = "var(--ik-color-primary)"), t.shallowColor || (l["--ik-icon-shallow-color"] = "var(--ik-primary-light-1, color-mix(in srgb, var(--ik-color-primary) 30%, white))");
|
|
586
625
|
break;
|
|
587
626
|
case "deep":
|
|
588
|
-
|
|
627
|
+
t.shallowColor || (l["--ik-icon-shallow-color"] = l["--ik-icon-deep-color"] || t.deepColor || "var(--ik-icon-deep-color)");
|
|
589
628
|
break;
|
|
590
629
|
case "shallow":
|
|
591
|
-
|
|
630
|
+
t.deepColor || (l["--ik-icon-deep-color"] = l["--ik-icon-shallow-color"] || t.shallowColor || "var(--ik-icon-shallow-color)");
|
|
592
631
|
break;
|
|
593
632
|
}
|
|
594
|
-
return
|
|
633
|
+
return t.active && r.value !== "default" && !t.deepColor && !t.shallowColor && t.colorMode === "auto" && (l["--ik-icon-deep-color"] = `var(--ik-icon-${r.value}-deep-active)`, l["--ik-icon-shallow-color"] = `var(--ik-icon-${r.value}-shallow-active)`), l;
|
|
595
634
|
});
|
|
596
635
|
return (l, s) => {
|
|
597
636
|
var M;
|
|
598
|
-
const E = L("IkTooltip");
|
|
599
637
|
return d(), h(
|
|
600
638
|
"i",
|
|
601
639
|
{
|
|
602
|
-
class:
|
|
640
|
+
class: z(j(ae)(
|
|
603
641
|
"ik-icon relative size-[1em] flex-inline items-center justify-center fill-current leading-[1em]",
|
|
604
|
-
|
|
642
|
+
t.class,
|
|
605
643
|
e.showBg ? "bg" : "",
|
|
606
644
|
e.disabled ? "is-disabled" : "",
|
|
607
645
|
e.active ? "is-active" : "",
|
|
608
|
-
|
|
646
|
+
r.value !== "default" ? `is-${r.value}` : "",
|
|
609
647
|
e.unMargin ? "un-margin" : "margin",
|
|
610
648
|
e.hover ? "is-hover" : ""
|
|
611
649
|
)),
|
|
612
|
-
style:
|
|
613
|
-
onClick:
|
|
650
|
+
style: I(e.showBg ? g.value : c.value),
|
|
651
|
+
onClick: y
|
|
614
652
|
},
|
|
615
653
|
[
|
|
616
|
-
e.title ? (d(),
|
|
654
|
+
e.title ? (d(), v(j(ht), {
|
|
617
655
|
key: 0,
|
|
618
656
|
text: e.title
|
|
619
657
|
}, {
|
|
620
658
|
default: S(() => {
|
|
621
|
-
var
|
|
659
|
+
var B;
|
|
622
660
|
return [
|
|
623
661
|
i.value === "unocss" ? (d(), h(
|
|
624
662
|
"i",
|
|
625
663
|
{
|
|
626
664
|
key: 0,
|
|
627
|
-
class:
|
|
628
|
-
style:
|
|
665
|
+
class: z(["iconfont shrink-0 size-inherit", `${e.name} ${(B = e.name) == null ? void 0 : B.split("_")[0]}`]),
|
|
666
|
+
style: I({ ...b.value, ...e.showBg ? c.value : {} })
|
|
629
667
|
},
|
|
630
668
|
null,
|
|
631
669
|
6
|
|
632
670
|
/* CLASS, STYLE */
|
|
633
|
-
)) : i.value === "iconify" ? (d(),
|
|
671
|
+
)) : i.value === "iconify" ? (d(), v(j(J), {
|
|
634
672
|
key: 1,
|
|
635
673
|
icon: e.name,
|
|
636
674
|
class: "shrink-0 size-inherit"
|
|
637
|
-
}, null, 8, ["icon"])) : i.value === "svg" ? (d(), h("svg",
|
|
638
|
-
|
|
675
|
+
}, null, 8, ["icon"])) : i.value === "svg" ? (d(), h("svg", vt, [
|
|
676
|
+
f("use", {
|
|
639
677
|
"xlink:href": `#icon-${e.name}`
|
|
640
|
-
}, null, 8,
|
|
678
|
+
}, null, 8, pt)
|
|
641
679
|
])) : i.value === "two-color-svg" ? (d(), h(
|
|
642
680
|
"svg",
|
|
643
681
|
{
|
|
644
682
|
key: 3,
|
|
645
683
|
class: "two-color-icon shrink-0 size-inherit",
|
|
646
|
-
style:
|
|
684
|
+
style: I(b.value),
|
|
647
685
|
"aria-hidden": "true"
|
|
648
686
|
},
|
|
649
687
|
[
|
|
650
|
-
|
|
688
|
+
f("use", {
|
|
651
689
|
"xlink:href": `#${e.name}`
|
|
652
|
-
}, null, 8,
|
|
690
|
+
}, null, 8, yt)
|
|
653
691
|
],
|
|
654
692
|
4
|
|
655
693
|
/* STYLE */
|
|
656
|
-
)) : i.value === "img" ? (d(),
|
|
694
|
+
)) : i.value === "img" ? (d(), v(j(Y), {
|
|
657
695
|
key: 4,
|
|
658
696
|
src: e.name,
|
|
659
697
|
class: "shrink-0"
|
|
660
698
|
}, {
|
|
661
699
|
loading: S(() => [...s[0] || (s[0] = [
|
|
662
|
-
|
|
700
|
+
f(
|
|
663
701
|
"i",
|
|
664
702
|
{ class: "i-line-md:loading-loop size-inherit" },
|
|
665
703
|
null,
|
|
@@ -668,7 +706,7 @@ const fn = (e, t) => {
|
|
|
668
706
|
)
|
|
669
707
|
])]),
|
|
670
708
|
error: S(() => [...s[1] || (s[1] = [
|
|
671
|
-
|
|
709
|
+
f(
|
|
672
710
|
"i",
|
|
673
711
|
{ class: "i-ph:image-broken-duotone size-inherit" },
|
|
674
712
|
null,
|
|
@@ -684,20 +722,20 @@ const fn = (e, t) => {
|
|
|
684
722
|
_: 1
|
|
685
723
|
/* STABLE */
|
|
686
724
|
}, 8, ["text"])) : (d(), h(
|
|
687
|
-
|
|
725
|
+
ie,
|
|
688
726
|
{ key: 1 },
|
|
689
727
|
[
|
|
690
728
|
i.value === "unocss" ? (d(), h(
|
|
691
729
|
"i",
|
|
692
730
|
{
|
|
693
731
|
key: 0,
|
|
694
|
-
class:
|
|
695
|
-
style:
|
|
732
|
+
class: z(["iconfont shrink-0 size-inherit", `${e.name} ${(M = e.name) == null ? void 0 : M.split("_")[0]}`]),
|
|
733
|
+
style: I({ ...b.value, ...e.showBg ? c.value : {} })
|
|
696
734
|
},
|
|
697
735
|
null,
|
|
698
736
|
6
|
|
699
737
|
/* CLASS, STYLE */
|
|
700
|
-
)) : i.value === "iconify" ? (d(),
|
|
738
|
+
)) : i.value === "iconify" ? (d(), v(j(J), {
|
|
701
739
|
key: 1,
|
|
702
740
|
icon: e.name,
|
|
703
741
|
class: "shrink-0 size-inherit"
|
|
@@ -707,31 +745,31 @@ const fn = (e, t) => {
|
|
|
707
745
|
size: e.size,
|
|
708
746
|
"aria-hidden": "true"
|
|
709
747
|
}, [
|
|
710
|
-
|
|
748
|
+
f("use", {
|
|
711
749
|
"xlink:href": `#icon-${e.name}`
|
|
712
|
-
}, null, 8,
|
|
713
|
-
], 8,
|
|
750
|
+
}, null, 8, wt)
|
|
751
|
+
], 8, bt)) : i.value === "two-color-svg" ? (d(), h(
|
|
714
752
|
"svg",
|
|
715
753
|
{
|
|
716
754
|
key: 3,
|
|
717
755
|
class: "two-color-icon shrink-0 size-inherit",
|
|
718
|
-
style:
|
|
756
|
+
style: I(b.value),
|
|
719
757
|
"aria-hidden": "true"
|
|
720
758
|
},
|
|
721
759
|
[
|
|
722
|
-
|
|
760
|
+
f("use", {
|
|
723
761
|
"xlink:href": `#${e.name}`
|
|
724
|
-
}, null, 8,
|
|
762
|
+
}, null, 8, kt)
|
|
725
763
|
],
|
|
726
764
|
4
|
|
727
765
|
/* STYLE */
|
|
728
|
-
)) : i.value === "img" ? (d(),
|
|
766
|
+
)) : i.value === "img" ? (d(), v(j(Y), {
|
|
729
767
|
key: 4,
|
|
730
768
|
src: e.name,
|
|
731
769
|
class: "shrink-0"
|
|
732
770
|
}, {
|
|
733
771
|
loading: S(() => [...s[2] || (s[2] = [
|
|
734
|
-
|
|
772
|
+
f(
|
|
735
773
|
"i",
|
|
736
774
|
{ class: "i-line-md:loading-loop size-inherit" },
|
|
737
775
|
null,
|
|
@@ -740,7 +778,7 @@ const fn = (e, t) => {
|
|
|
740
778
|
)
|
|
741
779
|
])]),
|
|
742
780
|
error: S(() => [...s[3] || (s[3] = [
|
|
743
|
-
|
|
781
|
+
f(
|
|
744
782
|
"i",
|
|
745
783
|
{ class: "i-ph:image-broken-duotone size-inherit" },
|
|
746
784
|
null,
|
|
@@ -761,16 +799,16 @@ const fn = (e, t) => {
|
|
|
761
799
|
);
|
|
762
800
|
};
|
|
763
801
|
}
|
|
764
|
-
}),
|
|
802
|
+
}), St = /* @__PURE__ */ fe(Ot, [["__scopeId", "data-v-c202da9d"]]), jt = U(St);
|
|
765
803
|
de.config({
|
|
766
804
|
paths: {
|
|
767
805
|
vs: "/vs"
|
|
768
806
|
}
|
|
769
807
|
});
|
|
770
|
-
const
|
|
808
|
+
const Ct = H({
|
|
771
809
|
name: "IkMonacoEditor",
|
|
772
810
|
components: {
|
|
773
|
-
IkSvgIcon:
|
|
811
|
+
IkSvgIcon: jt
|
|
774
812
|
},
|
|
775
813
|
props: {
|
|
776
814
|
language: {
|
|
@@ -810,35 +848,35 @@ const Sn = re({
|
|
|
810
848
|
}
|
|
811
849
|
},
|
|
812
850
|
emits: ["change", "blur"],
|
|
813
|
-
setup(e,
|
|
814
|
-
const
|
|
815
|
-
let
|
|
816
|
-
const u = "datav-dark-theme", c =
|
|
817
|
-
i &&
|
|
818
|
-
|
|
851
|
+
setup(e, n) {
|
|
852
|
+
const t = R(!1), o = O(() => `datav-editor-${ye()}`);
|
|
853
|
+
let r = null, i = null, a = null;
|
|
854
|
+
const u = "datav-dark-theme", c = R(!1), g = () => {
|
|
855
|
+
i && we.copyText(i.getValue()).then(() => {
|
|
856
|
+
ke.success("复制成功");
|
|
819
857
|
});
|
|
820
|
-
},
|
|
858
|
+
}, y = () => {
|
|
821
859
|
if (i) {
|
|
822
|
-
const
|
|
823
|
-
|
|
824
|
-
value:
|
|
860
|
+
const m = i.getValue();
|
|
861
|
+
n.emit("change", {
|
|
862
|
+
value: m,
|
|
825
863
|
extra: e.extra
|
|
826
864
|
});
|
|
827
865
|
}
|
|
828
|
-
},
|
|
866
|
+
}, b = () => {
|
|
829
867
|
if (i) {
|
|
830
|
-
const
|
|
831
|
-
|
|
832
|
-
value:
|
|
868
|
+
const m = i.getValue();
|
|
869
|
+
n.emit("blur", {
|
|
870
|
+
value: m,
|
|
833
871
|
extra: e.extra
|
|
834
872
|
}), e.autoFormat && W(i, e.language);
|
|
835
873
|
}
|
|
836
|
-
}, l =
|
|
837
|
-
const
|
|
874
|
+
}, l = be.debounce(y, 300), s = () => {
|
|
875
|
+
const m = document.querySelector(
|
|
838
876
|
".datav-fullscreen-editor-dialog section"
|
|
839
877
|
);
|
|
840
|
-
if (
|
|
841
|
-
const
|
|
878
|
+
if (m) {
|
|
879
|
+
const w = Object.assign({}, ne, e.options, {
|
|
842
880
|
tabSize: 2,
|
|
843
881
|
value: "",
|
|
844
882
|
language: e.language,
|
|
@@ -850,36 +888,36 @@ const Sn = re({
|
|
|
850
888
|
lineNumbers: e.lineNumbers,
|
|
851
889
|
wordWrap: e.wordWrap
|
|
852
890
|
});
|
|
853
|
-
if (!
|
|
891
|
+
if (!r || !i)
|
|
854
892
|
return;
|
|
855
|
-
const
|
|
856
|
-
|
|
857
|
-
W(
|
|
858
|
-
}, 1200),
|
|
893
|
+
const k = r.editor.create(m, w);
|
|
894
|
+
k.setValue(i.getValue()), e.autoFormat && setTimeout(() => {
|
|
895
|
+
W(k, e.language);
|
|
896
|
+
}, 1200), k.onDidChangeModelContent(() => l()), k.onDidBlurEditorText(() => b()), a = k;
|
|
859
897
|
}
|
|
860
|
-
},
|
|
861
|
-
c.value = !c.value, c.value &&
|
|
898
|
+
}, M = () => {
|
|
899
|
+
c.value = !c.value, c.value && K(() => {
|
|
862
900
|
s();
|
|
863
901
|
});
|
|
864
|
-
},
|
|
902
|
+
}, B = () => {
|
|
865
903
|
a && (i && !e.readOnly && (i.setValue(a.getValue()), i.focus()), a.dispose());
|
|
866
904
|
};
|
|
867
|
-
return
|
|
905
|
+
return he(
|
|
868
906
|
() => e.code,
|
|
869
|
-
(
|
|
907
|
+
(m) => {
|
|
870
908
|
if (i) {
|
|
871
|
-
const
|
|
872
|
-
i.setValue(
|
|
909
|
+
const w = re(e.language, m);
|
|
910
|
+
i.setValue(w);
|
|
873
911
|
}
|
|
874
912
|
}
|
|
875
|
-
),
|
|
876
|
-
const
|
|
877
|
-
|
|
913
|
+
), ve(async () => {
|
|
914
|
+
const m = setTimeout(() => {
|
|
915
|
+
t.value = !0;
|
|
878
916
|
}, 200);
|
|
879
|
-
|
|
880
|
-
const
|
|
881
|
-
if (
|
|
882
|
-
const
|
|
917
|
+
r = await de.init(), clearTimeout(m), t.value = !1, dt(r), gt(r, e.language, e.completions || []), await K();
|
|
918
|
+
const w = document.getElementById(o.value);
|
|
919
|
+
if (w) {
|
|
920
|
+
const k = Object.assign({}, ne, e.options, {
|
|
883
921
|
tabSize: 2,
|
|
884
922
|
value: "",
|
|
885
923
|
language: e.language,
|
|
@@ -890,54 +928,54 @@ const Sn = re({
|
|
|
890
928
|
},
|
|
891
929
|
lineNumbers: e.lineNumbers,
|
|
892
930
|
wordWrap: e.wordWrap
|
|
893
|
-
}),
|
|
894
|
-
|
|
931
|
+
}), C = r.editor.create(w, k), ge = re(e.language, e.code);
|
|
932
|
+
C.setValue(ge), e.autoFormat && W(C, e.language), e.height > 0 && (w.style.height = `${e.height}px`), C.onDidChangeModelContent(() => l()), C.onDidBlurEditorText(() => b()), i = C;
|
|
895
933
|
}
|
|
896
|
-
}),
|
|
934
|
+
}), pe(() => {
|
|
897
935
|
i == null || i.dispose(), a == null || a.dispose();
|
|
898
936
|
}), {
|
|
899
|
-
editorId:
|
|
937
|
+
editorId: o,
|
|
900
938
|
isFullScreen: c,
|
|
901
|
-
loading:
|
|
902
|
-
copyData:
|
|
903
|
-
switchFullScreen:
|
|
939
|
+
loading: t,
|
|
940
|
+
copyData: g,
|
|
941
|
+
switchFullScreen: M,
|
|
904
942
|
openedFullScreenDialog: s,
|
|
905
|
-
closedFullScreenDialog:
|
|
943
|
+
closedFullScreenDialog: B
|
|
906
944
|
};
|
|
907
945
|
}
|
|
908
|
-
}),
|
|
946
|
+
}), It = ["id"], $t = {
|
|
909
947
|
key: 0,
|
|
910
948
|
class: "datav-editor-actions"
|
|
911
|
-
},
|
|
912
|
-
function
|
|
949
|
+
}, zt = { class: "datav-fullscreen-editor-wp" };
|
|
950
|
+
function Pt(e, n, t, o, r, i) {
|
|
913
951
|
const a = L("IkSvgIcon"), u = L("el-dialog");
|
|
914
952
|
return d(), h(
|
|
915
|
-
|
|
953
|
+
ie,
|
|
916
954
|
null,
|
|
917
955
|
[
|
|
918
|
-
|
|
956
|
+
f("div", {
|
|
919
957
|
id: e.editorId,
|
|
920
|
-
class:
|
|
958
|
+
class: z(["datav-editor", [
|
|
921
959
|
{
|
|
922
960
|
"--read-only": e.readOnly
|
|
923
961
|
},
|
|
924
962
|
e.editorClass
|
|
925
963
|
]])
|
|
926
964
|
}, [
|
|
927
|
-
e.loading ? V("v-if", !0) : (d(), h("div",
|
|
928
|
-
|
|
965
|
+
e.loading ? V("v-if", !0) : (d(), h("div", $t, [
|
|
966
|
+
G(a, {
|
|
929
967
|
name: "iksvg_tongyong4",
|
|
930
968
|
title: "复制",
|
|
931
969
|
pop: "",
|
|
932
970
|
onClick: e.copyData
|
|
933
971
|
}, null, 8, ["onClick"]),
|
|
934
|
-
e.isFullScreen ? (d(),
|
|
972
|
+
e.isFullScreen ? (d(), v(a, {
|
|
935
973
|
key: 1,
|
|
936
974
|
pop: "",
|
|
937
975
|
title: "退出全屏",
|
|
938
976
|
name: "iksvg_tuichuquanping",
|
|
939
977
|
onClick: e.switchFullScreen
|
|
940
|
-
}, null, 8, ["onClick"])) : (d(),
|
|
978
|
+
}, null, 8, ["onClick"])) : (d(), v(a, {
|
|
941
979
|
key: 0,
|
|
942
980
|
pop: "",
|
|
943
981
|
title: "全屏",
|
|
@@ -945,10 +983,10 @@ function zn(e, t, n, r, o, i) {
|
|
|
945
983
|
onClick: e.switchFullScreen
|
|
946
984
|
}, null, 8, ["onClick"]))
|
|
947
985
|
]))
|
|
948
|
-
], 10,
|
|
949
|
-
|
|
986
|
+
], 10, It),
|
|
987
|
+
G(u, {
|
|
950
988
|
modelValue: e.isFullScreen,
|
|
951
|
-
"onUpdate:modelValue":
|
|
989
|
+
"onUpdate:modelValue": n[0] || (n[0] = (c) => e.isFullScreen = c),
|
|
952
990
|
title: `${e.fullScreenTitle}${e.readOnly ? " ( 只读 )" : ""}`,
|
|
953
991
|
preset: "dialog",
|
|
954
992
|
"append-to-body": "",
|
|
@@ -959,18 +997,18 @@ function zn(e, t, n, r, o, i) {
|
|
|
959
997
|
onClosed: e.closedFullScreenDialog
|
|
960
998
|
}, {
|
|
961
999
|
default: S(() => [
|
|
962
|
-
|
|
963
|
-
|
|
1000
|
+
f("div", zt, [
|
|
1001
|
+
f(
|
|
964
1002
|
"div",
|
|
965
1003
|
{
|
|
966
|
-
class:
|
|
1004
|
+
class: z(["datav-editor datav-fullscreen-editor", [
|
|
967
1005
|
{
|
|
968
1006
|
"--read-only": e.readOnly
|
|
969
1007
|
}
|
|
970
1008
|
]])
|
|
971
1009
|
},
|
|
972
|
-
[...
|
|
973
|
-
|
|
1010
|
+
[...n[1] || (n[1] = [
|
|
1011
|
+
f(
|
|
974
1012
|
"section",
|
|
975
1013
|
{ style: { position: "relative", display: "flex", width: "100%", height: "100%", "text-align": "initial" } },
|
|
976
1014
|
null,
|
|
@@ -991,8 +1029,8 @@ function zn(e, t, n, r, o, i) {
|
|
|
991
1029
|
/* STABLE_FRAGMENT */
|
|
992
1030
|
);
|
|
993
1031
|
}
|
|
994
|
-
const
|
|
1032
|
+
const Tt = /* @__PURE__ */ fe(Ct, [["render", Pt]]), Et = U(Tt);
|
|
995
1033
|
export {
|
|
996
|
-
|
|
997
|
-
|
|
1034
|
+
Et as IkMonacoEditor,
|
|
1035
|
+
Et as default
|
|
998
1036
|
};
|