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