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