iking-web-ui-pro 0.2.20 → 0.2.21
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 +66 -69
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +100 -103
- package/dist/IKPreviewFile/ik.index.umd.js +1 -1
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKVerticalStepBar/ik.index.es.js +117 -120
- package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +98 -101
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +106 -109
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +239 -242
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +73 -76
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +103 -106
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +87 -90
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IkDetailPreviewFiles/style.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +138 -141
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +312 -315
- package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
- package/dist/IkMonacoEditor/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +1051 -1054
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +87 -90
- package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +2948 -2951
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSideText/ik.index.es.js +91 -94
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/style.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +66 -69
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +98 -101
- package/dist/IkUploadFile/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +169 -172
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/Provider/ik.index.es.js +10 -14
- package/dist/Provider/ik.index.umd.js +1 -1
- package/dist/index.es.js +6827 -6834
- package/dist/index.umd.js +78 -78
- package/dist/src/components/Provider/ProviderConfig.vue.d.ts +0 -9
- package/dist/src/components/Provider/index.d.ts +0 -19
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,191 +1,191 @@
|
|
|
1
|
-
import { defineComponent as J,
|
|
2
|
-
import { paramType as P, ikColor as
|
|
3
|
-
import { ElMessage as
|
|
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
4
|
const Z = (e, n) => {
|
|
5
|
-
if (e.install = (
|
|
6
|
-
for (const
|
|
7
|
-
|
|
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
21
|
function W(e, n) {
|
|
22
|
-
var
|
|
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
31
|
function q(e) {
|
|
32
32
|
for (var n = 1; n < arguments.length; n++) {
|
|
33
|
-
var
|
|
34
|
-
n % 2 ? W(Object(
|
|
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
|
|
62
|
+
return je(e) || ke(e, n) || Ce(e, n) || Ie();
|
|
63
63
|
}
|
|
64
|
-
function
|
|
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 i = e[Symbol.iterator](), u; !(
|
|
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
74
|
} catch (l) {
|
|
75
|
-
|
|
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
90
|
return H(e, n);
|
|
91
|
-
var
|
|
92
|
-
if (
|
|
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 (
|
|
94
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
|
|
95
95
|
return H(e, n);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
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
116
|
function U(e, n) {
|
|
117
|
-
var
|
|
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
126
|
function R(e) {
|
|
127
127
|
for (var n = 1; n < arguments.length; n++) {
|
|
128
|
-
var
|
|
129
|
-
n % 2 ? U(Object(
|
|
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
146
|
function w(e) {
|
|
147
147
|
return function n() {
|
|
148
|
-
for (var
|
|
149
|
-
o
|
|
150
|
-
return
|
|
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
151
|
for (var i = arguments.length, u = new Array(i), l = 0; l < i; l++)
|
|
152
152
|
u[l] = arguments[l];
|
|
153
|
-
return n.apply(
|
|
153
|
+
return n.apply(t, [].concat(a, u));
|
|
154
154
|
};
|
|
155
155
|
};
|
|
156
156
|
}
|
|
157
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
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 _(n) ||
|
|
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
173
|
}
|
|
174
|
-
function
|
|
175
|
-
O(e) ||
|
|
174
|
+
function De(e) {
|
|
175
|
+
O(e) || g("selectorType");
|
|
176
176
|
}
|
|
177
|
-
function
|
|
178
|
-
O(e) || _(e) ||
|
|
177
|
+
function ze(e) {
|
|
178
|
+
O(e) || _(e) || g("handlerType"), _(e) && Object.values(e).some(function(n) {
|
|
179
179
|
return !O(n);
|
|
180
|
-
}) &&
|
|
180
|
+
}) && g("handlersType");
|
|
181
181
|
}
|
|
182
|
-
function
|
|
183
|
-
e ||
|
|
182
|
+
function Ee(e) {
|
|
183
|
+
e || g("initialIsRequired"), _(e) || g("initialType"), Te(e) && g("initialContent");
|
|
184
184
|
}
|
|
185
|
-
function
|
|
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,73 +195,73 @@ 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
|
|
211
|
+
var h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(T) {
|
|
212
212
|
return T;
|
|
213
213
|
};
|
|
214
|
-
return
|
|
214
|
+
return j.selector(h), h(t.current);
|
|
215
215
|
}
|
|
216
|
-
function l(
|
|
217
|
-
|
|
216
|
+
function l(h) {
|
|
217
|
+
$e(r, a, o, i)(h);
|
|
218
218
|
}
|
|
219
219
|
return [u, l];
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function Ne(e, n) {
|
|
222
222
|
return O(n) ? n(e.current) : n;
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function Le(e, n) {
|
|
225
225
|
return e.current = R(R({}, e.current), n), n;
|
|
226
226
|
}
|
|
227
|
-
function
|
|
228
|
-
return O(n) ? n(e.current) : Object.keys(
|
|
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
|
|
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
245
|
for (var i = arguments.length, u = new Array(i), l = 0; l < i; l++)
|
|
246
246
|
u[l] = arguments[l];
|
|
247
|
-
return n.apply(
|
|
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 || K("configIsRequired"),
|
|
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
|
|
261
|
+
function Re() {
|
|
262
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
267
|
var ee = {
|
|
@@ -278,59 +278,59 @@ var ee = {
|
|
|
278
278
|
|
|
279
279
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
280
280
|
`
|
|
281
|
-
}, K =
|
|
282
|
-
config:
|
|
283
|
-
},
|
|
284
|
-
for (var n = arguments.length,
|
|
285
|
-
r
|
|
286
|
-
return function(
|
|
287
|
-
return
|
|
288
|
-
return i(
|
|
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
292
|
function te(e, n) {
|
|
293
|
-
return Object.keys(n).forEach(function(
|
|
294
|
-
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
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
301
|
function B(e) {
|
|
302
|
-
var n = !1,
|
|
303
|
-
e.then(function(
|
|
304
|
-
return n ?
|
|
305
|
-
}), e.catch(
|
|
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
|
-
}), ne = Se(
|
|
318
|
-
function
|
|
319
|
-
var n =
|
|
320
|
-
$(function(
|
|
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: te(
|
|
323
|
-
monaco:
|
|
322
|
+
config: te(a.config, r),
|
|
323
|
+
monaco: t
|
|
324
324
|
};
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
|
-
function
|
|
328
|
-
var e =
|
|
329
|
-
var
|
|
327
|
+
function Ze() {
|
|
328
|
+
var e = S(function(n) {
|
|
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) {
|
|
@@ -340,51 +340,51 @@ function et() {
|
|
|
340
340
|
return e.resolve(e.monaco), B(D);
|
|
341
341
|
if (window.monaco && window.monaco.editor)
|
|
342
342
|
return re(window.monaco), e.resolve(window.monaco), B(D);
|
|
343
|
-
|
|
343
|
+
Xe(et, nt)(rt);
|
|
344
344
|
}
|
|
345
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 =
|
|
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 =
|
|
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
|
-
re(
|
|
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
381
|
function re(e) {
|
|
382
|
-
|
|
382
|
+
S().monaco || $({
|
|
383
383
|
monaco: e
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
return
|
|
386
|
+
function ot() {
|
|
387
|
+
return S(function(e) {
|
|
388
388
|
var n = e.monaco;
|
|
389
389
|
return n;
|
|
390
390
|
});
|
|
@@ -394,12 +394,12 @@ var D = new Promise(function(e, n) {
|
|
|
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, Y = {
|
|
|
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",
|
|
@@ -455,60 +455,60 @@ const lt = it, Y = {
|
|
|
455
455
|
}), n;
|
|
456
456
|
};
|
|
457
457
|
let A = [];
|
|
458
|
-
const
|
|
459
|
-
const
|
|
460
|
-
for (let
|
|
461
|
-
const
|
|
462
|
-
|
|
463
|
-
label: `:${
|
|
464
|
-
insertText:
|
|
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
|
-
}, X = /* @__PURE__ */ new Map(),
|
|
472
|
-
if (
|
|
473
|
-
if (A =
|
|
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
490
|
}, G = (e, n) => {
|
|
491
|
-
let
|
|
492
|
-
return (P.isObject(
|
|
491
|
+
let t = n;
|
|
492
|
+
return (P.isObject(t) || P.isArray(t)) && (t = JSON.stringify(t, null, 2)), P.isString(t) ? t : `${t}`;
|
|
493
493
|
}, z = (e, n) => {
|
|
494
494
|
e.getAction("editor.action.formatDocument").run();
|
|
495
495
|
}, oe = (e, n) => {
|
|
496
|
-
const
|
|
497
|
-
for (const [
|
|
498
|
-
r
|
|
499
|
-
return
|
|
500
|
-
},
|
|
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: {
|
|
@@ -535,55 +535,52 @@ const ct = (e, n) => {
|
|
|
535
535
|
width: {}
|
|
536
536
|
},
|
|
537
537
|
setup(e) {
|
|
538
|
-
const n = e,
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
})), o = k(() => {
|
|
542
|
-
const { name: i } = t.value;
|
|
543
|
-
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";
|
|
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";
|
|
544
541
|
}), a = k(() => {
|
|
545
|
-
const
|
|
542
|
+
const o = [];
|
|
546
543
|
if (t.value.flip)
|
|
547
544
|
switch (t.value.flip) {
|
|
548
545
|
case "horizontal":
|
|
549
|
-
|
|
546
|
+
o.push("rotateY(180deg)");
|
|
550
547
|
break;
|
|
551
548
|
case "vertical":
|
|
552
|
-
|
|
549
|
+
o.push("rotateX(180deg)");
|
|
553
550
|
break;
|
|
554
551
|
case "both":
|
|
555
|
-
|
|
552
|
+
o.push("rotateX(180deg)"), o.push("rotateY(180deg)");
|
|
556
553
|
break;
|
|
557
554
|
}
|
|
558
|
-
t.value.rotate &&
|
|
559
|
-
const
|
|
555
|
+
t.value.rotate && o.push(`rotate(${t.value.rotate % 360}deg)`);
|
|
556
|
+
const i = {
|
|
560
557
|
...t.value.color && { color: t.value.color },
|
|
561
558
|
...t.value.size && { fontSize: typeof t.value.size == "number" ? `${t.value.size}px` : t.value.size },
|
|
562
|
-
...
|
|
559
|
+
...o.length && { transform: o.join(" ") },
|
|
563
560
|
padding: t.value.showBg || t.value.bg ? t.value.padding : 0,
|
|
564
|
-
...t.value.color &&
|
|
561
|
+
...t.value.color && r.value !== "iksig" ? {
|
|
565
562
|
"--ik-color-icon-dark": t.value.color,
|
|
566
|
-
"--ik-color-icon-light": t.value.colorLight ||
|
|
563
|
+
"--ik-color-icon-light": t.value.colorLight || me.setOpacity(t.value.color, t.value.opacity)
|
|
567
564
|
} : {}
|
|
568
565
|
};
|
|
569
|
-
return t.value.width && (
|
|
566
|
+
return t.value.width && (i.width = i.height = typeof t.value.width == "number" ? `${t.value.width}px` : t.value.width), i;
|
|
570
567
|
});
|
|
571
|
-
return (
|
|
572
|
-
const
|
|
573
|
-
return t.value.tableIconType === "icon" || !t.value.tableIconType ? (c(), s("span",
|
|
568
|
+
return (o, i) => {
|
|
569
|
+
const u = C("el-tooltip"), l = C("el-button");
|
|
570
|
+
return t.value.tableIconType === "icon" || !t.value.tableIconType ? (c(), s("span", st, [
|
|
574
571
|
t.value.notip || !t.value.title ? (c(), s(
|
|
575
572
|
"i",
|
|
576
573
|
{
|
|
577
574
|
key: 0,
|
|
578
|
-
class:
|
|
579
|
-
[
|
|
575
|
+
class: f(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
576
|
+
[o.name]: r.value === "unocss",
|
|
580
577
|
"show-bg": t.value.showBg || t.value.bg,
|
|
581
578
|
default: t.value.size === "default",
|
|
582
579
|
small: t.value.size === "small",
|
|
583
580
|
big: t.value.size === "big",
|
|
584
581
|
warning: t.value.warning || t.value.type === "warning",
|
|
585
582
|
primary: t.value.primary || t.value.type === "primary",
|
|
586
|
-
success:
|
|
583
|
+
success: o.success || t.value.type === "success",
|
|
587
584
|
error: t.value.error || t.value.type === "error",
|
|
588
585
|
active: t.value.active,
|
|
589
586
|
disabled: t.value.disabled
|
|
@@ -592,29 +589,29 @@ const ct = (e, n) => {
|
|
|
592
589
|
},
|
|
593
590
|
[
|
|
594
591
|
Q(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
595
|
-
|
|
592
|
+
r.value === "iksig" ? (c(), s(
|
|
596
593
|
"i",
|
|
597
594
|
{
|
|
598
595
|
key: 0,
|
|
599
|
-
class:
|
|
596
|
+
class: f(`iksig ${t.value.name}`),
|
|
600
597
|
style: y(a.value)
|
|
601
598
|
},
|
|
602
599
|
null,
|
|
603
600
|
6
|
|
604
601
|
/* CLASS, STYLE */
|
|
605
|
-
)) :
|
|
606
|
-
|
|
602
|
+
)) : r.value === "svg" ? (c(), s("svg", dt, [
|
|
603
|
+
p("use", {
|
|
607
604
|
"xlink:href": `#${t.value.name}`
|
|
608
|
-
}, null, 8,
|
|
609
|
-
])) :
|
|
605
|
+
}, null, 8, ft)
|
|
606
|
+
])) : r.value === "img" ? (c(), s("img", {
|
|
610
607
|
key: 2,
|
|
611
608
|
src: t.value.name,
|
|
612
609
|
class: "h-[1em] w-[1em]"
|
|
613
|
-
}, null, 8,
|
|
610
|
+
}, null, 8, gt)) : (c(), s(
|
|
614
611
|
"i",
|
|
615
612
|
{
|
|
616
613
|
key: 3,
|
|
617
|
-
class:
|
|
614
|
+
class: f(t.value.name),
|
|
618
615
|
style: y(a.value)
|
|
619
616
|
},
|
|
620
617
|
null,
|
|
@@ -624,53 +621,53 @@ const ct = (e, n) => {
|
|
|
624
621
|
],
|
|
625
622
|
6
|
|
626
623
|
/* CLASS, STYLE */
|
|
627
|
-
)) : (c(), I(
|
|
624
|
+
)) : (c(), I(u, {
|
|
628
625
|
key: 1,
|
|
629
626
|
content: t.value.title,
|
|
630
627
|
placement: "top"
|
|
631
628
|
}, {
|
|
632
629
|
default: E(() => [
|
|
633
|
-
|
|
630
|
+
p(
|
|
634
631
|
"i",
|
|
635
632
|
{
|
|
636
|
-
class:
|
|
637
|
-
[
|
|
633
|
+
class: f(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
634
|
+
[o.name]: r.value === "unocss",
|
|
638
635
|
"show-bg": t.value.showBg || t.value.bg,
|
|
639
636
|
default: t.value.size === "default",
|
|
640
637
|
small: t.value.size === "small",
|
|
641
638
|
big: t.value.size === "big",
|
|
642
639
|
warning: t.value.warning || t.value.type === "warning",
|
|
643
|
-
primary:
|
|
644
|
-
success:
|
|
640
|
+
primary: o.primary || t.value.type === "primary",
|
|
641
|
+
success: o.success || t.value.type === "success",
|
|
645
642
|
error: t.value.error || t.value.type === "error",
|
|
646
643
|
active: t.value.active
|
|
647
644
|
}]),
|
|
648
645
|
style: y(a.value)
|
|
649
646
|
},
|
|
650
647
|
[
|
|
651
|
-
|
|
648
|
+
r.value === "iksig" ? (c(), s(
|
|
652
649
|
"i",
|
|
653
650
|
{
|
|
654
651
|
key: 0,
|
|
655
|
-
class:
|
|
652
|
+
class: f(`iksig ${t.value.name}`),
|
|
656
653
|
style: y(a.value)
|
|
657
654
|
},
|
|
658
655
|
null,
|
|
659
656
|
6
|
|
660
657
|
/* CLASS, STYLE */
|
|
661
|
-
)) :
|
|
662
|
-
|
|
658
|
+
)) : r.value === "svg" ? (c(), s("svg", mt, [
|
|
659
|
+
p("use", {
|
|
663
660
|
"xlink:href": `#${t.value.name}`
|
|
664
|
-
}, null, 8,
|
|
665
|
-
])) :
|
|
661
|
+
}, null, 8, vt)
|
|
662
|
+
])) : r.value === "img" ? (c(), s("img", {
|
|
666
663
|
key: 2,
|
|
667
664
|
src: t.value.name,
|
|
668
665
|
class: "h-[1em] w-[1em]"
|
|
669
|
-
}, null, 8,
|
|
666
|
+
}, null, 8, pt)) : (c(), s(
|
|
670
667
|
"i",
|
|
671
668
|
{
|
|
672
669
|
key: 3,
|
|
673
|
-
class:
|
|
670
|
+
class: f(t.value.name),
|
|
674
671
|
style: y(a.value)
|
|
675
672
|
},
|
|
676
673
|
null,
|
|
@@ -685,13 +682,13 @@ const ct = (e, n) => {
|
|
|
685
682
|
_: 1
|
|
686
683
|
/* STABLE */
|
|
687
684
|
}, 8, ["content"]))
|
|
688
|
-
])) : (c(), I(
|
|
685
|
+
])) : (c(), I(l, {
|
|
689
686
|
key: 1,
|
|
690
687
|
type: ["warning", "error"].includes(t.value.type) ? "danger" : ""
|
|
691
688
|
}, {
|
|
692
689
|
default: E(() => [
|
|
693
|
-
|
|
694
|
-
|
|
690
|
+
ue(
|
|
691
|
+
ce(t.value.title),
|
|
695
692
|
1
|
|
696
693
|
/* TEXT */
|
|
697
694
|
)
|
|
@@ -702,11 +699,11 @@ const ct = (e, n) => {
|
|
|
702
699
|
};
|
|
703
700
|
}
|
|
704
701
|
});
|
|
705
|
-
const
|
|
706
|
-
const
|
|
702
|
+
const yt = /* @__PURE__ */ oe(ht, [["__scopeId", "data-v-a7ec508a"]]), bt = Z(yt);
|
|
703
|
+
const wt = J({
|
|
707
704
|
name: "IkMonacoEditor",
|
|
708
705
|
components: {
|
|
709
|
-
IkSvgIcon:
|
|
706
|
+
IkSvgIcon: bt
|
|
710
707
|
},
|
|
711
708
|
props: {
|
|
712
709
|
language: {
|
|
@@ -747,34 +744,34 @@ const Ot = J({
|
|
|
747
744
|
},
|
|
748
745
|
emits: ["change", "blur"],
|
|
749
746
|
setup(e, n) {
|
|
750
|
-
const
|
|
751
|
-
let
|
|
752
|
-
const u = "datav-dark-theme", l = L(!1),
|
|
753
|
-
|
|
754
|
-
|
|
747
|
+
const t = L(!1), r = k(() => `datav-editor-${ve()}`);
|
|
748
|
+
let a = null, o = null, i = null;
|
|
749
|
+
const u = "datav-dark-theme", l = L(!1), h = () => {
|
|
750
|
+
o && he.copyText(o.getValue()).then(() => {
|
|
751
|
+
ye.success("复制成功");
|
|
755
752
|
});
|
|
756
753
|
}, T = () => {
|
|
757
|
-
if (
|
|
758
|
-
const d =
|
|
754
|
+
if (o) {
|
|
755
|
+
const d = o.getValue();
|
|
759
756
|
n.emit("change", {
|
|
760
757
|
value: d,
|
|
761
758
|
extra: e.extra
|
|
762
759
|
});
|
|
763
760
|
}
|
|
764
761
|
}, M = () => {
|
|
765
|
-
if (
|
|
766
|
-
const d =
|
|
762
|
+
if (o) {
|
|
763
|
+
const d = o.getValue();
|
|
767
764
|
n.emit("blur", {
|
|
768
765
|
value: d,
|
|
769
766
|
extra: e.extra
|
|
770
|
-
}), e.autoFormat && z(
|
|
767
|
+
}), e.autoFormat && z(o, e.language);
|
|
771
768
|
}
|
|
772
|
-
}, F =
|
|
769
|
+
}, F = pe.debounce(T, 300), N = () => {
|
|
773
770
|
const d = document.querySelector(
|
|
774
771
|
".datav-fullscreen-editor-dialog section"
|
|
775
772
|
);
|
|
776
773
|
if (d) {
|
|
777
|
-
const
|
|
774
|
+
const m = Object.assign({}, Y, e.options, {
|
|
778
775
|
tabSize: 2,
|
|
779
776
|
value: "",
|
|
780
777
|
language: e.language,
|
|
@@ -786,36 +783,36 @@ const Ot = J({
|
|
|
786
783
|
lineNumbers: e.lineNumbers,
|
|
787
784
|
wordWrap: e.wordWrap
|
|
788
785
|
});
|
|
789
|
-
if (!
|
|
786
|
+
if (!a || !o)
|
|
790
787
|
return;
|
|
791
|
-
const
|
|
792
|
-
|
|
793
|
-
z(
|
|
794
|
-
}, 1200),
|
|
788
|
+
const v = a.editor.create(d, m);
|
|
789
|
+
v.setValue(o.getValue()), e.autoFormat && setTimeout(() => {
|
|
790
|
+
z(v, e.language);
|
|
791
|
+
}, 1200), v.onDidChangeModelContent(() => F()), v.onDidBlurEditorText(() => M()), i = v;
|
|
795
792
|
}
|
|
796
793
|
}, ae = () => {
|
|
797
794
|
l.value = !l.value, l.value && V(() => {
|
|
798
795
|
N();
|
|
799
796
|
});
|
|
800
797
|
}, ie = () => {
|
|
801
|
-
i && (
|
|
798
|
+
i && (o && !e.readOnly && (o.setValue(i.getValue()), o.focus()), i.dispose());
|
|
802
799
|
};
|
|
803
|
-
return
|
|
800
|
+
return se(
|
|
804
801
|
() => e.code,
|
|
805
802
|
(d) => {
|
|
806
|
-
if (
|
|
807
|
-
const
|
|
808
|
-
|
|
803
|
+
if (o) {
|
|
804
|
+
const m = G(e.language, d);
|
|
805
|
+
o.setValue(m);
|
|
809
806
|
}
|
|
810
807
|
}
|
|
811
|
-
),
|
|
808
|
+
), de(async () => {
|
|
812
809
|
const d = setTimeout(() => {
|
|
813
|
-
|
|
810
|
+
t.value = !0;
|
|
814
811
|
}, 200);
|
|
815
|
-
|
|
816
|
-
const
|
|
817
|
-
if (
|
|
818
|
-
const
|
|
812
|
+
a = await it.init(), clearTimeout(d), t.value = !1, lt(a), ct(a, e.language, e.completions || []), await V();
|
|
813
|
+
const m = document.getElementById(r.value);
|
|
814
|
+
if (m) {
|
|
815
|
+
const v = Object.assign({}, Y, e.options, {
|
|
819
816
|
tabSize: 2,
|
|
820
817
|
value: "",
|
|
821
818
|
language: e.language,
|
|
@@ -826,42 +823,42 @@ const Ot = J({
|
|
|
826
823
|
},
|
|
827
824
|
lineNumbers: e.lineNumbers,
|
|
828
825
|
wordWrap: e.wordWrap
|
|
829
|
-
}), b =
|
|
830
|
-
b.setValue(le), e.autoFormat && z(b, e.language), e.height > 0 && (
|
|
826
|
+
}), b = a.editor.create(m, v), le = G(e.language, e.code);
|
|
827
|
+
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;
|
|
831
828
|
}
|
|
832
|
-
}),
|
|
833
|
-
|
|
829
|
+
}), fe(() => {
|
|
830
|
+
o == null || o.dispose(), i == null || i.dispose();
|
|
834
831
|
}), {
|
|
835
|
-
editorId:
|
|
832
|
+
editorId: r,
|
|
836
833
|
isFullScreen: l,
|
|
837
|
-
loading:
|
|
838
|
-
copyData:
|
|
834
|
+
loading: t,
|
|
835
|
+
copyData: h,
|
|
839
836
|
switchFullScreen: ae,
|
|
840
837
|
openedFullScreenDialog: N,
|
|
841
838
|
closedFullScreenDialog: ie
|
|
842
839
|
};
|
|
843
840
|
}
|
|
844
|
-
}),
|
|
841
|
+
}), Ot = ["id"], St = {
|
|
845
842
|
key: 0,
|
|
846
843
|
class: "datav-editor-actions"
|
|
847
|
-
},
|
|
844
|
+
}, jt = { class: "datav-fullscreen-editor-wp" }, kt = /* @__PURE__ */ p(
|
|
848
845
|
"section",
|
|
849
846
|
{ style: { position: "relative", display: "flex", width: "100%", height: "100%", "text-align": "initial" } },
|
|
850
847
|
null,
|
|
851
848
|
-1
|
|
852
849
|
/* HOISTED */
|
|
853
|
-
),
|
|
854
|
-
|
|
850
|
+
), Ct = [
|
|
851
|
+
kt
|
|
855
852
|
];
|
|
856
|
-
function
|
|
853
|
+
function It(e, n, t, r, a, o) {
|
|
857
854
|
const i = C("IkSvgIcon"), u = C("el-dialog");
|
|
858
855
|
return c(), s(
|
|
859
|
-
|
|
856
|
+
ge,
|
|
860
857
|
null,
|
|
861
858
|
[
|
|
862
|
-
|
|
859
|
+
p("div", {
|
|
863
860
|
id: e.editorId,
|
|
864
|
-
class:
|
|
861
|
+
class: f(["datav-editor", [
|
|
865
862
|
{
|
|
866
863
|
"--read-only": e.readOnly
|
|
867
864
|
},
|
|
@@ -889,7 +886,7 @@ function _t(e, n, r, t, o, a) {
|
|
|
889
886
|
onClick: e.switchFullScreen
|
|
890
887
|
}, null, 8, ["onClick"]))
|
|
891
888
|
]))
|
|
892
|
-
], 10,
|
|
889
|
+
], 10, Ot),
|
|
893
890
|
x(u, {
|
|
894
891
|
modelValue: e.isFullScreen,
|
|
895
892
|
"onUpdate:modelValue": n[0] || (n[0] = (l) => e.isFullScreen = l),
|
|
@@ -902,17 +899,17 @@ function _t(e, n, r, t, o, a) {
|
|
|
902
899
|
onClosed: e.closedFullScreenDialog
|
|
903
900
|
}, {
|
|
904
901
|
default: E(() => [
|
|
905
|
-
|
|
906
|
-
|
|
902
|
+
p("div", jt, [
|
|
903
|
+
p(
|
|
907
904
|
"div",
|
|
908
905
|
{
|
|
909
|
-
class:
|
|
906
|
+
class: f(["datav-editor datav-fullscreen-editor", [
|
|
910
907
|
{
|
|
911
908
|
"--read-only": e.readOnly
|
|
912
909
|
}
|
|
913
910
|
]])
|
|
914
911
|
},
|
|
915
|
-
|
|
912
|
+
Ct,
|
|
916
913
|
2
|
|
917
914
|
/* CLASS */
|
|
918
915
|
)
|
|
@@ -926,8 +923,8 @@ function _t(e, n, r, t, o, a) {
|
|
|
926
923
|
/* STABLE_FRAGMENT */
|
|
927
924
|
);
|
|
928
925
|
}
|
|
929
|
-
const
|
|
926
|
+
const _t = /* @__PURE__ */ oe(wt, [["render", It]]), Bt = Z(_t);
|
|
930
927
|
export {
|
|
931
|
-
|
|
932
|
-
|
|
928
|
+
Bt as IkMonacoEditor,
|
|
929
|
+
Bt as default
|
|
933
930
|
};
|