bp-aicc-editor 1.2.521 → 1.2.523
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/lib/{ScreenPreview-CV95NWOd.js → ScreenPreview-yUHo60be.js} +51 -105
- package/lib/atlas-BMjKIOwk.js +3891 -0
- package/lib/{button-base-DHNVBrQ9.js → button-base-CXl1z-_m.js} +1 -1
- package/lib/{cache-lsjsKZHu.js → cache-DbHSDjJy.js} +1 -1
- package/lib/config-provider-Bui8m4GV.js +62 -0
- package/lib/{container-group-DqAcKEBy.js → container-group-D6Extorz.js} +1 -1
- package/lib/{copy-C5Pi6nJh.js → copy-CsCmPy4J.js} +1 -1
- package/lib/{datav-BER95ty-.js → datav-BTD-HJhV.js} +27 -27
- package/lib/{delete-C2EW4JCs.js → delete-COj0ilHh.js} +1 -1
- package/lib/{divider-BazBGRgV.js → divider-B3K_URZc.js} +1 -1
- package/lib/dropdown-CWvnuJsO.js +105 -0
- package/lib/{edit-B2pfd2q1.js → edit-vdJaEine.js} +1 -1
- package/lib/{el-form-item-BDdxk5F5.js → el-form-item-BbaNohQv.js} +51 -51
- package/lib/{el-link-D2ol9BHQ.js → el-link-Dq721Q7-.js} +12 -12
- package/lib/{el-loading-Cgwgez55.js → el-loading-DOxnN3bm.js} +17 -17
- package/lib/{fullscreen-OChDsSnk.js → fullscreen-DXSogbcG.js} +1 -1
- package/lib/{image-C5ZAY3yt.js → image-Cu7JTK9-.js} +1 -1
- package/lib/{index-Ci8AbyIq.js → index-68soBnbK.js} +8 -8
- package/lib/{index-BatyRVpL.js → index-B-d8WIg1.js} +7 -7
- package/lib/{index-BfIEunKC.js → index-B4zV3cxV.js} +18 -17
- package/lib/{index-CZJriuFt.js → index-B8QqTLfg.js} +4974 -4898
- package/lib/index-BBMItxtW.js +619 -0
- package/lib/{index-CGrR_i0u.js → index-BMm0MRz5.js} +14 -15
- package/lib/index-BMn8EzMD.js +1027 -0
- package/lib/index-BNTW8F-9.js +322 -0
- package/lib/index-BTI518b1.js +69 -0
- package/lib/{index-BWPVi43E.js → index-BZxUAT4z.js} +4 -4
- package/lib/{index-Ck7uFsPE.js → index-BdYTc41r.js} +24 -24
- package/lib/index-BfI55Ioc.js +404 -0
- package/lib/{index-BhP9eBCp.js → index-BmAcetSf.js} +19 -20
- package/lib/index-C35Yp3i8.js +545 -0
- package/lib/{index-B19lEYui.js → index-C6GUNRx9.js} +2 -2
- package/lib/index-CC28_8Jl.js +567 -0
- package/lib/index-CDhmvVt8.js +338 -0
- package/lib/index-CDx0y0fp.js +144 -0
- package/lib/{el-button-DvLKp6Ga.js → index-CJjljoJG.js} +106 -106
- package/lib/index-CNCgXPiO.js +235 -0
- package/lib/{index-CWbZmzNT.js → index-CPa_MnOD.js} +30 -29
- package/lib/index-CW6ljdNf.js +1582 -0
- package/lib/index-C_WopEui.js +513 -0
- package/lib/{index-CX_Ghcb6.js → index-CejowjGd.js} +56 -53
- package/lib/{index-BwCQWH-N.js → index-CfZXOvi-.js} +42 -40
- package/lib/{index-CVsy2qTh.js → index-CgzRTmPh.js} +16 -15
- package/lib/index-CmzuNM9v.js +32 -0
- package/lib/index-CrxcAFt8.js +5343 -0
- package/lib/{index-C7k49L2T.js → index-CuHA7QXu.js} +10 -10
- package/lib/{index-qVyixI57.js → index-CyBGAB7D.js} +21 -20
- package/lib/index-D6J7coU0.js +129 -0
- package/lib/index-DDHxrdAo.js +1773 -0
- package/lib/index-DDL-yqq0.js +1401 -0
- package/lib/{index-BPcvYtHf.js → index-DOxy-bey.js} +6 -6
- package/lib/{index-CVE37oE7.js → index-DOyr0BHr.js} +7 -7
- package/lib/index-DPOanmXI.js +887 -0
- package/lib/{index-3pzVrvby.js → index-DR_husZg.js} +46 -46
- package/lib/{el-tab-pane-DD2eM9rB.js → index-DUzOCQrW.js} +125 -124
- package/lib/{index-CGFEhUh9.js → index-DVYI-g8Q.js} +53 -52
- package/lib/index-DVyjilLy.js +51 -0
- package/lib/{index-CJyYGViv.js → index-DWAJ9GyC.js} +9 -9
- package/lib/index-Dj2qCwPD.js +178 -0
- package/lib/{index-D4X0_jbv.js → index-Dx2Gld1J.js} +32 -32
- package/lib/{index-C2XeCqtq.js → index-E9T-y2Yz.js} +3 -3
- package/lib/{index-Buoc0ISP.js → index-FlmXAW0Z.js} +60 -58
- package/lib/index-NqqOvc6V.js +169 -0
- package/lib/{index-BkdiXCRY.js → index-ObKRNOmJ.js} +6 -7
- package/lib/index-bOWjoplU.js +448 -0
- package/lib/{index-CXQ258ID.js → index-buU8mDzi.js} +15 -16
- package/lib/{index-tbhuYbb0.js → index-mGKAWDJZ.js} +11 -12
- package/lib/index.es.js +4 -4
- package/lib/index.umd.js +46 -40
- package/lib/{layer-setting-panel-VvDSQ-cn.js → layer-setting-panel-BGPj32nP.js} +2 -2
- package/lib/{line-show-Bp4G-LqO.js → line-show-DUn1bu_P.js} +1 -1
- package/lib/{multi-layout-config-drSy7ezf.js → multi-layout-config-BTWxJeuc.js} +7 -8
- package/lib/{multiline-text-D89kYrA2.js → multiline-text-CPJdCWJ7.js} +1 -1
- package/lib/{navigation-YAGxZ0OT.js → navigation-ZLJaBOUj.js} +1 -1
- package/lib/page-config-CHP07Ndf.js +253 -0
- package/lib/{page-tabs-wFeNBY4c.js → page-tabs-CKLhgrip.js} +45 -41
- package/lib/{plus-3mdO6yXY.js → plus-xgpQU22I.js} +1 -1
- package/lib/raf-CJog_tcv.js +6 -0
- package/lib/refs-DZMysoBI.js +8 -0
- package/lib/{requestOld-DRcjsmRQ.js → requestOld-CaGzCXrV.js} +97 -96
- package/lib/{schema-BsnIOGBI.js → schema-BaFWGeFt.js} +1 -1
- package/lib/{schema-_APJMUW3.js → schema-CUR-UK2S.js} +44 -41
- package/lib/{schema-BavJE-SK.js → schema-WUk7XVq7.js} +58 -54
- package/lib/{schema-qKI1F8Bt.js → schema-geZfujv8.js} +1 -1
- package/lib/{schema-BflqDw-a.js → schema-iosjRxCC.js} +1 -1
- package/lib/{schema-Bo30dbBx.js → schema-tuPllxn6.js} +1 -1
- package/lib/scroll-CWfl60Tu.js +58 -0
- package/lib/{setting-panel-BgzN3BUP.js → setting-panel-0qLcwYyT.js} +154 -151
- package/lib/{show-C4AeWlKj.js → show-BCwE3hGY.js} +1 -1
- package/lib/{stepper-D5EFeJWG.js → stepper-Bud1Jppr.js} +1 -1
- package/lib/strings-BvUQWzDM.js +6 -0
- package/lib/style.css +1 -1
- package/lib/{switch-B0dR4LM_.js → switch-VlaUmSpJ.js} +1 -1
- package/lib/{unlock-Cq9PLhBA.js → unlock-B2FVPQlm.js} +1 -1
- package/lib/{use-env-url-BM9dgwx_.js → use-env-url-D1p8ib2L.js} +1 -1
- package/lib/use-global-config-D_yoqf3Q.js +90 -0
- package/lib/validator-BOXH2OMA.js +5 -0
- package/lib/{vnode-B_Dj8zxu.js → vnode-Bxs1g06p.js} +1 -1
- package/package.json +1 -1
- package/lib/atlas-DsmLq2V0.js +0 -38
- package/lib/el-overlay-BK0_UIU6.js +0 -704
- package/lib/index-B1yAU2Cb.js +0 -390
- package/lib/index-BCFXuK7k.js +0 -68
- package/lib/index-BD4Jwo8Z.js +0 -449
- package/lib/index-BMWqf88L.js +0 -356
- package/lib/index-Belsn8kt.js +0 -107
- package/lib/index-CIADz1i0.js +0 -8494
- package/lib/index-DKTrbqcA.js +0 -56
- package/lib/index-Ge_d2xqD.js +0 -127
- package/lib/page-config-Cmsi8Vpr.js +0 -582
- package/lib/strings-_mHAdgA4.js +0 -6
- package/lib/use-global-config-CflpFoxU.js +0 -115
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { createElementBlock as M, openBlock as m, createElementVNode as h, defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { createElementBlock as M, openBlock as m, createElementVNode as h, defineComponent as Y, createBlock as S, ref as L, watch as ie, onMounted as le, nextTick as ue, onUnmounted as ce, Fragment as se, createCommentVNode as z, createVNode as O, normalizeClass as B, unref as I, withCtx as T } from "vue";
|
|
2
|
+
import { I as de } from "./copy-CsCmPy4J.js";
|
|
3
|
+
import { _ as fe, aa as ge, ab as me, ac as pe, ad as ve, ae as he, af as be, E as F, ag as ye } from "./index-B8QqTLfg.js";
|
|
4
|
+
import { I as we } from "./fullscreen-DXSogbcG.js";
|
|
5
|
+
import { E as Oe } from "./index-C_WopEui.js";
|
|
6
|
+
import { E as je } from "./index-bOWjoplU.js";
|
|
6
7
|
function V(e, n) {
|
|
7
8
|
(n == null || n > e.length) && (n = e.length);
|
|
8
9
|
for (var t = 0, r = Array(n); t < n; t++) r[t] = e[t];
|
|
@@ -64,14 +65,14 @@ function W(e) {
|
|
|
64
65
|
}
|
|
65
66
|
function Te(e, n) {
|
|
66
67
|
if (e == null) return {};
|
|
67
|
-
var t, r, o =
|
|
68
|
+
var t, r, o = Ee(e, n);
|
|
68
69
|
if (Object.getOwnPropertySymbols) {
|
|
69
70
|
var a = Object.getOwnPropertySymbols(e);
|
|
70
71
|
for (r = 0; r < a.length; r++) t = a[r], n.indexOf(t) === -1 && {}.propertyIsEnumerable.call(e, t) && (o[t] = e[t]);
|
|
71
72
|
}
|
|
72
73
|
return o;
|
|
73
74
|
}
|
|
74
|
-
function
|
|
75
|
+
function Ee(e, n) {
|
|
75
76
|
if (e == null) return {};
|
|
76
77
|
var t = {};
|
|
77
78
|
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
@@ -80,10 +81,10 @@ function xe(e, n) {
|
|
|
80
81
|
}
|
|
81
82
|
return t;
|
|
82
83
|
}
|
|
83
|
-
function
|
|
84
|
+
function xe(e, n) {
|
|
84
85
|
return Se(e) || Pe(e, n) || Ae(e, n) || Ie();
|
|
85
86
|
}
|
|
86
|
-
function
|
|
87
|
+
function $e(e, n) {
|
|
87
88
|
if (typeof e != "object" || !e) return e;
|
|
88
89
|
var t = e[Symbol.toPrimitive];
|
|
89
90
|
if (t !== void 0) {
|
|
@@ -94,7 +95,7 @@ function Ee(e, n) {
|
|
|
94
95
|
return (n === "string" ? String : Number)(e);
|
|
95
96
|
}
|
|
96
97
|
function Me(e) {
|
|
97
|
-
var n =
|
|
98
|
+
var n = $e(e, "string");
|
|
98
99
|
return typeof n == "symbol" ? n : n + "";
|
|
99
100
|
}
|
|
100
101
|
function Ae(e, n) {
|
|
@@ -142,7 +143,7 @@ function Ne() {
|
|
|
142
143
|
}, r);
|
|
143
144
|
};
|
|
144
145
|
}
|
|
145
|
-
function
|
|
146
|
+
function b(e) {
|
|
146
147
|
return function n() {
|
|
147
148
|
for (var t = this, r = arguments.length, o = new Array(r), a = 0; a < r; a++)
|
|
148
149
|
o[a] = arguments[a];
|
|
@@ -159,7 +160,7 @@ function C(e) {
|
|
|
159
160
|
function Le(e) {
|
|
160
161
|
return !Object.keys(e).length;
|
|
161
162
|
}
|
|
162
|
-
function
|
|
163
|
+
function y(e) {
|
|
163
164
|
return typeof e == "function";
|
|
164
165
|
}
|
|
165
166
|
function ze(e, n) {
|
|
@@ -171,11 +172,11 @@ function Be(e, n) {
|
|
|
171
172
|
}) && g("changeField"), n;
|
|
172
173
|
}
|
|
173
174
|
function Fe(e) {
|
|
174
|
-
|
|
175
|
+
y(e) || g("selectorType");
|
|
175
176
|
}
|
|
176
177
|
function Ve(e) {
|
|
177
|
-
|
|
178
|
-
return !
|
|
178
|
+
y(e) || C(e) || g("handlerType"), C(e) && Object.values(e).some(function(n) {
|
|
179
|
+
return !y(n);
|
|
179
180
|
}) && g("handlersType");
|
|
180
181
|
}
|
|
181
182
|
function _e(e) {
|
|
@@ -194,7 +195,7 @@ var ke = {
|
|
|
194
195
|
changeType: "provided value of changes should be an object",
|
|
195
196
|
changeField: 'it seams you want to change a field in the state which is not specified in the "initial" state',
|
|
196
197
|
default: "an unknown error accured in `state-local` package"
|
|
197
|
-
}, g =
|
|
198
|
+
}, g = b(We)(ke), j = {
|
|
198
199
|
changes: Be,
|
|
199
200
|
selector: Fe,
|
|
200
201
|
handler: Ve,
|
|
@@ -205,7 +206,7 @@ function qe(e) {
|
|
|
205
206
|
j.initial(e), j.handler(n);
|
|
206
207
|
var t = {
|
|
207
208
|
current: e
|
|
208
|
-
}, r =
|
|
209
|
+
}, r = b(Ue)(t, n), o = b(Re)(t), a = b(j.changes)(e), l = b(He)(t);
|
|
209
210
|
function u() {
|
|
210
211
|
var c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(p) {
|
|
211
212
|
return p;
|
|
@@ -218,13 +219,13 @@ function qe(e) {
|
|
|
218
219
|
return [u, i];
|
|
219
220
|
}
|
|
220
221
|
function He(e, n) {
|
|
221
|
-
return
|
|
222
|
+
return y(n) ? n(e.current) : n;
|
|
222
223
|
}
|
|
223
224
|
function Re(e, n) {
|
|
224
225
|
return e.current = q(q({}, e.current), n), n;
|
|
225
226
|
}
|
|
226
227
|
function Ue(e, n, t) {
|
|
227
|
-
return
|
|
228
|
+
return y(n) ? n(e.current) : Object.keys(t).forEach(function(r) {
|
|
228
229
|
var o;
|
|
229
230
|
return (o = n[r]) === null || o === void 0 ? void 0 : o.call(n, e.current[r]);
|
|
230
231
|
}), t;
|
|
@@ -247,23 +248,23 @@ function Je(e) {
|
|
|
247
248
|
};
|
|
248
249
|
};
|
|
249
250
|
}
|
|
250
|
-
function
|
|
251
|
+
function Ye(e) {
|
|
251
252
|
return {}.toString.call(e).includes("Object");
|
|
252
253
|
}
|
|
253
|
-
function
|
|
254
|
-
return e || H("configIsRequired"),
|
|
254
|
+
function Qe(e) {
|
|
255
|
+
return e || H("configIsRequired"), Ye(e) || H("configType"), e.urls ? (Xe(), {
|
|
255
256
|
paths: {
|
|
256
257
|
vs: e.urls.monacoBase
|
|
257
258
|
}
|
|
258
259
|
}) : e;
|
|
259
260
|
}
|
|
260
261
|
function Xe() {
|
|
261
|
-
console.warn(
|
|
262
|
+
console.warn(Q.deprecation);
|
|
262
263
|
}
|
|
263
264
|
function Ze(e, n) {
|
|
264
265
|
throw new Error(e[n] || e.default);
|
|
265
266
|
}
|
|
266
|
-
var
|
|
267
|
+
var Q = {
|
|
267
268
|
configIsRequired: "the configuration object is required",
|
|
268
269
|
configType: "the configuration object should be an object",
|
|
269
270
|
default: "an unknown error accured in `@monaco-editor/loader` package",
|
|
@@ -277,8 +278,8 @@ var Y = {
|
|
|
277
278
|
|
|
278
279
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
279
280
|
`
|
|
280
|
-
}, H = Je(Ze)(
|
|
281
|
-
config:
|
|
281
|
+
}, H = Je(Ze)(Q), et = {
|
|
282
|
+
config: Qe
|
|
282
283
|
}, tt = function() {
|
|
283
284
|
for (var n = arguments.length, t = new Array(n), r = 0; r < n; r++)
|
|
284
285
|
t[r] = arguments[r];
|
|
@@ -297,7 +298,7 @@ var nt = {
|
|
|
297
298
|
type: "cancelation",
|
|
298
299
|
msg: "operation is manually canceled"
|
|
299
300
|
};
|
|
300
|
-
function
|
|
301
|
+
function E(e) {
|
|
301
302
|
var n = !1, t = new Promise(function(r, o) {
|
|
302
303
|
e.then(function(a) {
|
|
303
304
|
return n ? o(nt) : r(a);
|
|
@@ -313,7 +314,7 @@ var rt = ["monaco"], ot = Ke.create({
|
|
|
313
314
|
resolve: null,
|
|
314
315
|
reject: null,
|
|
315
316
|
monaco: null
|
|
316
|
-
}), Z =
|
|
317
|
+
}), Z = xe(ot, 2), w = Z[0], P = Z[1];
|
|
317
318
|
function at(e) {
|
|
318
319
|
var n = et.config(e), t = n.monaco, r = Te(n, rt);
|
|
319
320
|
P(function(o) {
|
|
@@ -336,12 +337,12 @@ function it() {
|
|
|
336
337
|
if (P({
|
|
337
338
|
isInitialized: !0
|
|
338
339
|
}), e.monaco)
|
|
339
|
-
return e.resolve(e.monaco), x
|
|
340
|
+
return e.resolve(e.monaco), E(x);
|
|
340
341
|
if (window.monaco && window.monaco.editor)
|
|
341
|
-
return ee(window.monaco), e.resolve(window.monaco), x
|
|
342
|
+
return ee(window.monaco), e.resolve(window.monaco), E(x);
|
|
342
343
|
tt(lt, ct)(st);
|
|
343
344
|
}
|
|
344
|
-
return x
|
|
345
|
+
return E(x);
|
|
345
346
|
}
|
|
346
347
|
function lt(e) {
|
|
347
348
|
return document.body.appendChild(e);
|
|
@@ -389,7 +390,7 @@ function dt() {
|
|
|
389
390
|
return n;
|
|
390
391
|
});
|
|
391
392
|
}
|
|
392
|
-
var
|
|
393
|
+
var x = new Promise(function(e, n) {
|
|
393
394
|
return P({
|
|
394
395
|
resolve: e,
|
|
395
396
|
reject: n
|
|
@@ -417,10 +418,10 @@ function mt(e, n) {
|
|
|
417
418
|
}, null, -1)
|
|
418
419
|
])]);
|
|
419
420
|
}
|
|
420
|
-
const pt = /* @__PURE__ */
|
|
421
|
+
const pt = /* @__PURE__ */ fe(ft, [["render", mt]]), vt = /* @__PURE__ */ Y({
|
|
421
422
|
__name: "async-loading",
|
|
422
423
|
setup(e) {
|
|
423
|
-
return (n, t) => (m(), S(
|
|
424
|
+
return (n, t) => (m(), S(ge, {
|
|
424
425
|
type: "square",
|
|
425
426
|
spinning: !0,
|
|
426
427
|
class: "g-async-loading"
|
|
@@ -485,7 +486,7 @@ function ht(e) {
|
|
|
485
486
|
}), n;
|
|
486
487
|
}
|
|
487
488
|
let A = [];
|
|
488
|
-
function
|
|
489
|
+
function bt(e, n) {
|
|
489
490
|
const t = [];
|
|
490
491
|
for (let r = 0; r < A.length; r++) {
|
|
491
492
|
const o = A[r];
|
|
@@ -500,7 +501,7 @@ function yt(e, n) {
|
|
|
500
501
|
return t;
|
|
501
502
|
}
|
|
502
503
|
const K = /* @__PURE__ */ new Map();
|
|
503
|
-
function
|
|
504
|
+
function yt(e, n, t) {
|
|
504
505
|
if (t && t.length > 0) {
|
|
505
506
|
if (A = t, K.has(n))
|
|
506
507
|
return;
|
|
@@ -514,7 +515,7 @@ function bt(e, n, t) {
|
|
|
514
515
|
endColumn: a.endColumn
|
|
515
516
|
};
|
|
516
517
|
return {
|
|
517
|
-
suggestions:
|
|
518
|
+
suggestions: bt(e, l)
|
|
518
519
|
};
|
|
519
520
|
}
|
|
520
521
|
});
|
|
@@ -522,15 +523,15 @@ function bt(e, n, t) {
|
|
|
522
523
|
}
|
|
523
524
|
function G(e, n) {
|
|
524
525
|
let t = n;
|
|
525
|
-
return (
|
|
526
|
+
return (me(t) || pe(t)) && (t = JSON.stringify(t, null, 2)), ve(t) ? t : `${t}`;
|
|
526
527
|
}
|
|
527
|
-
function
|
|
528
|
+
function $(e, n) {
|
|
528
529
|
n === "sql" || e.getAction("editor.action.formatDocument").run();
|
|
529
530
|
}
|
|
530
531
|
const wt = {
|
|
531
532
|
key: 0,
|
|
532
533
|
class: "datav-editor-actions"
|
|
533
|
-
}, Ot = { class: "datav-fullscreen-editor-wp" }, J = "datav-dark-theme",
|
|
534
|
+
}, Ot = { class: "datav-fullscreen-editor-wp" }, J = "datav-dark-theme", Et = /* @__PURE__ */ Y({
|
|
534
535
|
__name: "index",
|
|
535
536
|
props: {
|
|
536
537
|
language: {
|
|
@@ -574,11 +575,11 @@ const wt = {
|
|
|
574
575
|
setup(e, { emit: n }) {
|
|
575
576
|
const t = e, r = n;
|
|
576
577
|
R.config({ paths: { vs: `${location.origin}undefined/vs` } });
|
|
577
|
-
const o = `datav-editor-${
|
|
578
|
+
const o = `datav-editor-${he()}`, a = L(!1), l = L(!1);
|
|
578
579
|
let u = null, i = null, c = null;
|
|
579
580
|
function p() {
|
|
580
|
-
i &&
|
|
581
|
-
|
|
581
|
+
i && ye(i.getValue()).then(() => {
|
|
582
|
+
je.success("复制成功");
|
|
582
583
|
});
|
|
583
584
|
}
|
|
584
585
|
function te() {
|
|
@@ -596,10 +597,10 @@ const wt = {
|
|
|
596
597
|
r("blur", {
|
|
597
598
|
value: d,
|
|
598
599
|
extra: t.extra
|
|
599
|
-
}), t.autoFormat &&
|
|
600
|
+
}), t.autoFormat && $(i, t.language);
|
|
600
601
|
}
|
|
601
602
|
}
|
|
602
|
-
const N =
|
|
603
|
+
const N = be(te, 300);
|
|
603
604
|
function ne() {
|
|
604
605
|
a.value = !a.value;
|
|
605
606
|
}
|
|
@@ -619,7 +620,7 @@ const wt = {
|
|
|
619
620
|
wordWrap: t.wordWrap
|
|
620
621
|
}), f = u.editor.create(d, s);
|
|
621
622
|
f.setValue(i.getValue()), t.autoFormat && setTimeout(() => {
|
|
622
|
-
|
|
623
|
+
$(f, t.language);
|
|
623
624
|
}, 1200), f.onDidChangeModelContent(() => N()), f.onDidBlurEditorText(() => D()), c = f;
|
|
624
625
|
}
|
|
625
626
|
}
|
|
@@ -638,7 +639,7 @@ const wt = {
|
|
|
638
639
|
const d = setTimeout(() => {
|
|
639
640
|
l.value = !0;
|
|
640
641
|
}, 200);
|
|
641
|
-
u = await R.init(), clearTimeout(d), l.value = !1, ht(u),
|
|
642
|
+
u = await R.init(), clearTimeout(d), l.value = !1, ht(u), yt(u, t.language, t.completions), await ue();
|
|
642
643
|
const s = document.getElementById(o);
|
|
643
644
|
if (s) {
|
|
644
645
|
const f = Object.assign({}, U, t.options, {
|
|
@@ -653,7 +654,7 @@ const wt = {
|
|
|
653
654
|
lineNumbers: t.lineNumbers,
|
|
654
655
|
wordWrap: t.wordWrap
|
|
655
656
|
}), v = u.editor.create(s, f), ae = G(t.language, t.code);
|
|
656
|
-
v.setValue(ae), t.autoFormat &&
|
|
657
|
+
v.setValue(ae), t.autoFormat && $(v, t.language), t.height > 0 && (s.style.height = `${t.height}px`), v.onDidChangeModelContent(() => N()), v.onDidBlurEditorText(() => D()), i = v;
|
|
657
658
|
}
|
|
658
659
|
}), ce(() => {
|
|
659
660
|
i?.dispose(), c?.dispose();
|
|
@@ -675,7 +676,7 @@ const wt = {
|
|
|
675
676
|
onClick: p
|
|
676
677
|
}, {
|
|
677
678
|
default: T(() => [
|
|
678
|
-
O(
|
|
679
|
+
O(de)
|
|
679
680
|
]),
|
|
680
681
|
_: 1
|
|
681
682
|
}),
|
|
@@ -685,13 +686,13 @@ const wt = {
|
|
|
685
686
|
onClick: ne
|
|
686
687
|
}, {
|
|
687
688
|
default: T(() => [
|
|
688
|
-
a.value ? (m(), S(pt, { key: 0 })) : (m(), S(
|
|
689
|
+
a.value ? (m(), S(pt, { key: 0 })) : (m(), S(we, { key: 1 }))
|
|
689
690
|
]),
|
|
690
691
|
_: 1
|
|
691
692
|
}, 8, ["title"])
|
|
692
693
|
]))
|
|
693
694
|
], 2),
|
|
694
|
-
O(I(
|
|
695
|
+
O(I(Oe), {
|
|
695
696
|
modelValue: a.value,
|
|
696
697
|
"onUpdate:modelValue": s[0] || (s[0] = (f) => a.value = f),
|
|
697
698
|
title: `${e.fullScreenTitle}${e.readOnly ? " ( 只读 )" : ""}`,
|
|
@@ -722,5 +723,5 @@ const wt = {
|
|
|
722
723
|
}
|
|
723
724
|
});
|
|
724
725
|
export {
|
|
725
|
-
|
|
726
|
+
Et as default
|
|
726
727
|
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { defineComponent as s, createBlock as d, openBlock as n, Transition as i, mergeProps as r, unref as l, toHandlers as p, withCtx as g, renderSlot as m } from "vue";
|
|
2
|
+
import { g as f, h as y, w as c } from "./index-B8QqTLfg.js";
|
|
3
|
+
const h = s({
|
|
4
|
+
name: "ElCollapseTransition",
|
|
5
|
+
__name: "collapse-transition",
|
|
6
|
+
setup(x) {
|
|
7
|
+
const a = y("collapse-transition"), e = (t) => {
|
|
8
|
+
t.style.maxHeight = "", t.style.overflow = t.dataset.oldOverflow, t.style.paddingTop = t.dataset.oldPaddingTop, t.style.paddingBottom = t.dataset.oldPaddingBottom;
|
|
9
|
+
}, o = {
|
|
10
|
+
beforeEnter(t) {
|
|
11
|
+
t.dataset || (t.dataset = {}), t.dataset.oldPaddingTop = t.style.paddingTop, t.dataset.oldPaddingBottom = t.style.paddingBottom, t.style.height && (t.dataset.elExistsHeight = t.style.height), t.style.maxHeight = 0, t.style.paddingTop = 0, t.style.paddingBottom = 0;
|
|
12
|
+
},
|
|
13
|
+
enter(t) {
|
|
14
|
+
requestAnimationFrame(() => {
|
|
15
|
+
t.dataset.oldOverflow = t.style.overflow, t.dataset.elExistsHeight ? t.style.maxHeight = t.dataset.elExistsHeight : t.scrollHeight !== 0 ? t.style.maxHeight = `${t.scrollHeight}px` : t.style.maxHeight = 0, t.style.paddingTop = t.dataset.oldPaddingTop, t.style.paddingBottom = t.dataset.oldPaddingBottom, t.style.overflow = "hidden";
|
|
16
|
+
});
|
|
17
|
+
},
|
|
18
|
+
afterEnter(t) {
|
|
19
|
+
t.style.maxHeight = "", t.style.overflow = t.dataset.oldOverflow;
|
|
20
|
+
},
|
|
21
|
+
enterCancelled(t) {
|
|
22
|
+
e(t);
|
|
23
|
+
},
|
|
24
|
+
beforeLeave(t) {
|
|
25
|
+
t.dataset || (t.dataset = {}), t.dataset.oldPaddingTop = t.style.paddingTop, t.dataset.oldPaddingBottom = t.style.paddingBottom, t.dataset.oldOverflow = t.style.overflow, t.style.maxHeight = `${t.scrollHeight}px`, t.style.overflow = "hidden";
|
|
26
|
+
},
|
|
27
|
+
leave(t) {
|
|
28
|
+
t.scrollHeight !== 0 && (t.style.maxHeight = 0, t.style.paddingTop = 0, t.style.paddingBottom = 0);
|
|
29
|
+
},
|
|
30
|
+
afterLeave(t) {
|
|
31
|
+
e(t);
|
|
32
|
+
},
|
|
33
|
+
leaveCancelled(t) {
|
|
34
|
+
e(t);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
return (t, H) => (n(), d(i, r({
|
|
38
|
+
name: l(a).b()
|
|
39
|
+
}, p(o)), {
|
|
40
|
+
default: g(() => [
|
|
41
|
+
m(t.$slots, "default")
|
|
42
|
+
]),
|
|
43
|
+
_: 3
|
|
44
|
+
}, 16, ["name"]));
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
var v = /* @__PURE__ */ f(h, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);
|
|
48
|
+
const u = c(v);
|
|
49
|
+
export {
|
|
50
|
+
u as E
|
|
51
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as p, toRefs as y, computed as E, createElementBlock as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { defineComponent as p, toRefs as y, computed as E, createElementBlock as d, openBlock as i, normalizeClass as S, createVNode as k, createCommentVNode as z, unref as u, withCtx as B, Fragment as C, renderList as V, createBlock as x, toDisplayString as N } from "vue";
|
|
2
|
+
import { U as c } from "./index-B8QqTLfg.js";
|
|
3
|
+
import { E as A, a as D } from "./index-CW6ljdNf.js";
|
|
4
4
|
const w = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "g-input__caption"
|
|
@@ -42,12 +42,12 @@ const w = {
|
|
|
42
42
|
});
|
|
43
43
|
const v = E(() => {
|
|
44
44
|
const { data: t, filters: a } = o, l = [];
|
|
45
|
-
return a && a.length > 0 && a.forEach((
|
|
46
|
-
const r = t.find((h) => h.id ===
|
|
47
|
-
r ? l.push(r) : l.push({ id:
|
|
45
|
+
return a && a.length > 0 && a.forEach((s) => {
|
|
46
|
+
const r = t.find((h) => h.id === s);
|
|
47
|
+
r ? l.push(r) : l.push({ id: s, value: s });
|
|
48
48
|
}), l;
|
|
49
49
|
});
|
|
50
|
-
return (t, a) => (i(),
|
|
50
|
+
return (t, a) => (i(), d("div", {
|
|
51
51
|
class: S(["datav-gui g-select-suggest", [
|
|
52
52
|
{
|
|
53
53
|
"--inline": !!e.inline,
|
|
@@ -67,7 +67,7 @@ const w = {
|
|
|
67
67
|
onChange: g
|
|
68
68
|
}, {
|
|
69
69
|
default: B(() => [
|
|
70
|
-
(i(!0),
|
|
70
|
+
(i(!0), d(C, null, V(v.value, (l) => (i(), x(u(D), {
|
|
71
71
|
key: l.id,
|
|
72
72
|
label: l.value,
|
|
73
73
|
value: l.id
|
|
@@ -75,7 +75,7 @@ const w = {
|
|
|
75
75
|
]),
|
|
76
76
|
_: 1
|
|
77
77
|
}, 8, ["model-value", "size", "disabled"]),
|
|
78
|
-
e.label ? (i(),
|
|
78
|
+
e.label ? (i(), d("span", w, N(e.label), 1)) : z("", !0)
|
|
79
79
|
], 2));
|
|
80
80
|
}
|
|
81
81
|
});
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { defineComponent as V, computed as N, createElementBlock as b, createBlock as F, openBlock as v, normalizeStyle as _, normalizeClass as f, createElementVNode as C, createCommentVNode as T, unref as a, renderSlot as B, withModifiers as S, createVNode as k, withCtx as E, Transition as I } from "vue";
|
|
2
|
+
import { e as L, Z as P, g as R, at as $, t as x, h as D, E as w, c as z, w as A, R as K, T as O, Q } from "./index-B8QqTLfg.js";
|
|
3
|
+
const U = L({
|
|
4
|
+
type: {
|
|
5
|
+
type: String,
|
|
6
|
+
values: ["primary", "success", "info", "warning", "danger"],
|
|
7
|
+
default: "primary"
|
|
8
|
+
},
|
|
9
|
+
closable: Boolean,
|
|
10
|
+
disableTransitions: Boolean,
|
|
11
|
+
hit: Boolean,
|
|
12
|
+
color: String,
|
|
13
|
+
size: {
|
|
14
|
+
type: String,
|
|
15
|
+
values: P
|
|
16
|
+
},
|
|
17
|
+
effect: {
|
|
18
|
+
type: String,
|
|
19
|
+
values: ["dark", "light", "plain"],
|
|
20
|
+
default: "light"
|
|
21
|
+
},
|
|
22
|
+
round: Boolean
|
|
23
|
+
}), Z = {
|
|
24
|
+
close: (e) => e instanceof MouseEvent,
|
|
25
|
+
click: (e) => e instanceof MouseEvent
|
|
26
|
+
}, j = ["aria-label"], q = ["aria-label"], G = V({
|
|
27
|
+
name: "ElTag",
|
|
28
|
+
__name: "tag",
|
|
29
|
+
props: U,
|
|
30
|
+
emits: Z,
|
|
31
|
+
setup(e, { emit: t }) {
|
|
32
|
+
const s = e, l = t, c = $(), { t: r } = x(), o = D("tag"), u = N(() => {
|
|
33
|
+
const { type: n, hit: d, effect: m, closable: p, round: H } = s;
|
|
34
|
+
return [
|
|
35
|
+
o.b(),
|
|
36
|
+
o.is("closable", p),
|
|
37
|
+
o.m(n || "primary"),
|
|
38
|
+
o.m(c.value),
|
|
39
|
+
o.m(m),
|
|
40
|
+
o.is("hit", d),
|
|
41
|
+
o.is("round", H)
|
|
42
|
+
];
|
|
43
|
+
}), g = (n) => {
|
|
44
|
+
l("close", n);
|
|
45
|
+
}, h = (n) => {
|
|
46
|
+
l("click", n);
|
|
47
|
+
}, y = (n) => {
|
|
48
|
+
var d, m, p;
|
|
49
|
+
(p = (m = (d = n?.component) == null ? void 0 : d.subTree) == null ? void 0 : m.component) != null && p.bum && (n.component.subTree.component.bum = null);
|
|
50
|
+
};
|
|
51
|
+
return (n, d) => n.disableTransitions ? (v(), b(
|
|
52
|
+
"span",
|
|
53
|
+
{
|
|
54
|
+
key: 0,
|
|
55
|
+
class: f(u.value),
|
|
56
|
+
style: _({ backgroundColor: n.color }),
|
|
57
|
+
onClick: h
|
|
58
|
+
},
|
|
59
|
+
[
|
|
60
|
+
C(
|
|
61
|
+
"span",
|
|
62
|
+
{
|
|
63
|
+
class: f(a(o).e("content"))
|
|
64
|
+
},
|
|
65
|
+
[
|
|
66
|
+
B(n.$slots, "default")
|
|
67
|
+
],
|
|
68
|
+
2
|
|
69
|
+
),
|
|
70
|
+
n.closable ? (v(), b("button", {
|
|
71
|
+
key: 0,
|
|
72
|
+
"aria-label": a(r)("el.tag.close"),
|
|
73
|
+
class: f(a(o).e("close")),
|
|
74
|
+
type: "button",
|
|
75
|
+
onClick: S(g, ["stop"])
|
|
76
|
+
}, [
|
|
77
|
+
k(a(w), null, {
|
|
78
|
+
default: E(() => [
|
|
79
|
+
k(a(z))
|
|
80
|
+
]),
|
|
81
|
+
_: 1
|
|
82
|
+
})
|
|
83
|
+
], 10, j)) : T("v-if", !0)
|
|
84
|
+
],
|
|
85
|
+
6
|
|
86
|
+
)) : (v(), F(I, {
|
|
87
|
+
key: 1,
|
|
88
|
+
name: `${a(o).namespace.value}-zoom-in-center`,
|
|
89
|
+
appear: "",
|
|
90
|
+
onVnodeMounted: y
|
|
91
|
+
}, {
|
|
92
|
+
default: E(() => [
|
|
93
|
+
C(
|
|
94
|
+
"span",
|
|
95
|
+
{
|
|
96
|
+
class: f(u.value),
|
|
97
|
+
style: _({ backgroundColor: n.color }),
|
|
98
|
+
onClick: h
|
|
99
|
+
},
|
|
100
|
+
[
|
|
101
|
+
C(
|
|
102
|
+
"span",
|
|
103
|
+
{
|
|
104
|
+
class: f(a(o).e("content"))
|
|
105
|
+
},
|
|
106
|
+
[
|
|
107
|
+
B(n.$slots, "default")
|
|
108
|
+
],
|
|
109
|
+
2
|
|
110
|
+
),
|
|
111
|
+
n.closable ? (v(), b("button", {
|
|
112
|
+
key: 0,
|
|
113
|
+
"aria-label": a(r)("el.tag.close"),
|
|
114
|
+
class: f(a(o).e("close")),
|
|
115
|
+
type: "button",
|
|
116
|
+
onClick: S(g, ["stop"])
|
|
117
|
+
}, [
|
|
118
|
+
k(a(w), null, {
|
|
119
|
+
default: E(() => [
|
|
120
|
+
k(a(z))
|
|
121
|
+
]),
|
|
122
|
+
_: 1
|
|
123
|
+
})
|
|
124
|
+
], 10, q)) : T("v-if", !0)
|
|
125
|
+
],
|
|
126
|
+
6
|
|
127
|
+
)
|
|
128
|
+
]),
|
|
129
|
+
_: 3
|
|
130
|
+
}, 8, ["name"]));
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
var J = /* @__PURE__ */ R(G, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);
|
|
134
|
+
const Y = A(J), i = /* @__PURE__ */ new Map();
|
|
135
|
+
if (Q) {
|
|
136
|
+
let e;
|
|
137
|
+
document.addEventListener("mousedown", (t) => e = t), document.addEventListener("mouseup", (t) => {
|
|
138
|
+
if (e) {
|
|
139
|
+
for (const s of i.values())
|
|
140
|
+
for (const { documentHandler: l } of s)
|
|
141
|
+
l(t, e);
|
|
142
|
+
e = void 0;
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
function M(e, t) {
|
|
147
|
+
let s = [];
|
|
148
|
+
return K(t.arg) ? s = t.arg : O(t.arg) && s.push(t.arg), function(l, c) {
|
|
149
|
+
const r = t.instance.popperRef, o = l.target, u = c?.target, g = !t || !t.instance, h = !o || !u, y = e.contains(o) || e.contains(u), n = e === o, d = s.length && s.some((p) => p?.contains(o)) || s.length && s.includes(u), m = r && (r.contains(o) || r.contains(u));
|
|
150
|
+
g || h || y || n || d || m || t.value(l, c);
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
const ee = {
|
|
154
|
+
beforeMount(e, t) {
|
|
155
|
+
i.has(e) || i.set(e, []), i.get(e).push({
|
|
156
|
+
documentHandler: M(e, t),
|
|
157
|
+
bindingFn: t.value
|
|
158
|
+
});
|
|
159
|
+
},
|
|
160
|
+
updated(e, t) {
|
|
161
|
+
i.has(e) || i.set(e, []);
|
|
162
|
+
const s = i.get(e), l = s.findIndex(
|
|
163
|
+
(r) => r.bindingFn === t.oldValue
|
|
164
|
+
), c = {
|
|
165
|
+
documentHandler: M(e, t),
|
|
166
|
+
bindingFn: t.value
|
|
167
|
+
};
|
|
168
|
+
l >= 0 ? s.splice(l, 1, c) : s.push(c);
|
|
169
|
+
},
|
|
170
|
+
unmounted(e) {
|
|
171
|
+
i.delete(e);
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
export {
|
|
175
|
+
ee as C,
|
|
176
|
+
Y as E,
|
|
177
|
+
U as t
|
|
178
|
+
};
|