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