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,7 +1,7 @@
|
|
|
1
|
-
import { computed as b, inject as
|
|
2
|
-
import {
|
|
3
|
-
import { u as xt } from "./index-
|
|
4
|
-
import {
|
|
1
|
+
import { computed as b, inject as it, ref as st, useSlots as ft, Text as ut, defineComponent as Q, createBlock as _, openBlock as x, resolveDynamicComponent as I, mergeProps as lt, unref as v, withCtx as E, createElementBlock as $, createCommentVNode as W, Fragment as ct, renderSlot as R, normalizeClass as z, provide as ht, reactive as dt, toRef as U } from "vue";
|
|
2
|
+
import { b2 as gt, at as bt, aC as X, e as vt, f as tt, aS as pt, Y as q, a6 as mt, h as D, g as et, E as K, w as yt, an as kt } from "./index-B8QqTLfg.js";
|
|
3
|
+
import { u as xt } from "./index-BZxUAT4z.js";
|
|
4
|
+
import { a as St } from "./use-global-config-D_yoqf3Q.js";
|
|
5
5
|
const rt = Symbol(
|
|
6
6
|
"buttonGroupContextKey"
|
|
7
7
|
), Mt = (e, r) => {
|
|
@@ -15,7 +15,7 @@ const rt = Symbol(
|
|
|
15
15
|
},
|
|
16
16
|
b(() => e.type === "text")
|
|
17
17
|
);
|
|
18
|
-
const t =
|
|
18
|
+
const t = it(rt, void 0), a = St("button"), { form: n } = gt(), i = bt(b(() => t?.size)), o = X(), s = st(), l = ft(), p = b(
|
|
19
19
|
() => {
|
|
20
20
|
var u;
|
|
21
21
|
return e.type || t?.type || ((u = a.value) == null ? void 0 : u.type) || "";
|
|
@@ -38,9 +38,9 @@ const rt = Symbol(
|
|
|
38
38
|
), F = b(() => {
|
|
39
39
|
var u, f, h;
|
|
40
40
|
return (h = (f = e.text) != null ? f : (u = a.value) == null ? void 0 : u.text) != null ? h : !1;
|
|
41
|
-
}),
|
|
42
|
-
ariaDisabled:
|
|
43
|
-
disabled:
|
|
41
|
+
}), N = b(() => e.tag === "button" ? {
|
|
42
|
+
ariaDisabled: o.value || e.loading,
|
|
43
|
+
disabled: o.value || e.loading,
|
|
44
44
|
autofocus: e.autofocus,
|
|
45
45
|
type: e.nativeType
|
|
46
46
|
} : {}), B = b(() => {
|
|
@@ -49,24 +49,24 @@ const rt = Symbol(
|
|
|
49
49
|
if (m.value && f?.length === 1) {
|
|
50
50
|
const h = f[0];
|
|
51
51
|
if (h?.type === ut) {
|
|
52
|
-
const
|
|
53
|
-
return new RegExp("^\\p{Unified_Ideograph}{2}$", "u").test(
|
|
52
|
+
const ot = h.children;
|
|
53
|
+
return new RegExp("^\\p{Unified_Ideograph}{2}$", "u").test(ot.trim());
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
return !1;
|
|
57
57
|
});
|
|
58
58
|
return {
|
|
59
|
-
_disabled:
|
|
60
|
-
_size:
|
|
59
|
+
_disabled: o,
|
|
60
|
+
_size: i,
|
|
61
61
|
_type: p,
|
|
62
62
|
_ref: s,
|
|
63
|
-
_props:
|
|
63
|
+
_props: N,
|
|
64
64
|
_plain: w,
|
|
65
65
|
_round: T,
|
|
66
66
|
_text: F,
|
|
67
67
|
shouldAddSpace: B,
|
|
68
68
|
handleClick: (u) => {
|
|
69
|
-
if (
|
|
69
|
+
if (o.value || e.loading) {
|
|
70
70
|
u.stopPropagation();
|
|
71
71
|
return;
|
|
72
72
|
}
|
|
@@ -167,66 +167,66 @@ function Rt(e, r, t) {
|
|
|
167
167
|
}
|
|
168
168
|
function L(e, r, t) {
|
|
169
169
|
e = c(e, 255), r = c(r, 255), t = c(t, 255);
|
|
170
|
-
var a = Math.max(e, r, t), n = Math.min(e, r, t),
|
|
170
|
+
var a = Math.max(e, r, t), n = Math.min(e, r, t), i = 0, o = 0, s = (a + n) / 2;
|
|
171
171
|
if (a === n)
|
|
172
|
-
|
|
172
|
+
o = 0, i = 0;
|
|
173
173
|
else {
|
|
174
174
|
var l = a - n;
|
|
175
|
-
switch (
|
|
175
|
+
switch (o = s > 0.5 ? l / (2 - a - n) : l / (a + n), a) {
|
|
176
176
|
case e:
|
|
177
|
-
|
|
177
|
+
i = (r - t) / l + (r < t ? 6 : 0);
|
|
178
178
|
break;
|
|
179
179
|
case r:
|
|
180
|
-
|
|
180
|
+
i = (t - e) / l + 2;
|
|
181
181
|
break;
|
|
182
182
|
case t:
|
|
183
|
-
|
|
183
|
+
i = (e - r) / l + 4;
|
|
184
184
|
break;
|
|
185
185
|
}
|
|
186
|
-
|
|
186
|
+
i /= 6;
|
|
187
187
|
}
|
|
188
|
-
return { h:
|
|
188
|
+
return { h: i, s: o, l: s };
|
|
189
189
|
}
|
|
190
190
|
function C(e, r, t) {
|
|
191
191
|
return t < 0 && (t += 1), t > 1 && (t -= 1), t < 1 / 6 ? e + (r - e) * (6 * t) : t < 1 / 2 ? r : t < 2 / 3 ? e + (r - e) * (2 / 3 - t) * 6 : e;
|
|
192
192
|
}
|
|
193
193
|
function Tt(e, r, t) {
|
|
194
|
-
var a, n,
|
|
194
|
+
var a, n, i;
|
|
195
195
|
if (e = c(e, 360), r = c(r, 100), t = c(t, 100), r === 0)
|
|
196
|
-
n = t,
|
|
196
|
+
n = t, i = t, a = t;
|
|
197
197
|
else {
|
|
198
|
-
var
|
|
199
|
-
a = C(s,
|
|
198
|
+
var o = t < 0.5 ? t * (1 + r) : t + r - t * r, s = 2 * t - o;
|
|
199
|
+
a = C(s, o, e + 1 / 3), n = C(s, o, e), i = C(s, o, e - 1 / 3);
|
|
200
200
|
}
|
|
201
|
-
return { r: a * 255, g: n * 255, b:
|
|
201
|
+
return { r: a * 255, g: n * 255, b: i * 255 };
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Y(e, r, t) {
|
|
204
204
|
e = c(e, 255), r = c(r, 255), t = c(t, 255);
|
|
205
|
-
var a = Math.max(e, r, t), n = Math.min(e, r, t),
|
|
205
|
+
var a = Math.max(e, r, t), n = Math.min(e, r, t), i = 0, o = a, s = a - n, l = a === 0 ? 0 : s / a;
|
|
206
206
|
if (a === n)
|
|
207
|
-
|
|
207
|
+
i = 0;
|
|
208
208
|
else {
|
|
209
209
|
switch (a) {
|
|
210
210
|
case e:
|
|
211
|
-
|
|
211
|
+
i = (r - t) / s + (r < t ? 6 : 0);
|
|
212
212
|
break;
|
|
213
213
|
case r:
|
|
214
|
-
|
|
214
|
+
i = (t - e) / s + 2;
|
|
215
215
|
break;
|
|
216
216
|
case t:
|
|
217
|
-
|
|
217
|
+
i = (e - r) / s + 4;
|
|
218
218
|
break;
|
|
219
219
|
}
|
|
220
|
-
|
|
220
|
+
i /= 6;
|
|
221
221
|
}
|
|
222
|
-
return { h:
|
|
222
|
+
return { h: i, s: l, v: o };
|
|
223
223
|
}
|
|
224
224
|
function Ft(e, r, t) {
|
|
225
225
|
e = c(e, 360) * 6, r = c(r, 100), t = c(t, 100);
|
|
226
|
-
var a = Math.floor(e), n = e - a,
|
|
226
|
+
var a = Math.floor(e), n = e - a, i = t * (1 - r), o = t * (1 - n * r), s = t * (1 - (1 - n) * r), l = a % 6, p = [t, o, i, i, s, t][l], m = [s, t, t, o, i, i][l], w = [i, i, s, t, t, o][l];
|
|
227
227
|
return { r: p * 255, g: m * 255, b: w * 255 };
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function Z(e, r, t, a) {
|
|
230
230
|
var n = [
|
|
231
231
|
M(Math.round(e).toString(16)),
|
|
232
232
|
M(Math.round(r).toString(16)),
|
|
@@ -234,19 +234,19 @@ function J(e, r, t, a) {
|
|
|
234
234
|
];
|
|
235
235
|
return a && n[0].startsWith(n[0].charAt(1)) && n[1].startsWith(n[1].charAt(1)) && n[2].startsWith(n[2].charAt(1)) ? n[0].charAt(0) + n[1].charAt(0) + n[2].charAt(0) : n.join("");
|
|
236
236
|
}
|
|
237
|
-
function
|
|
238
|
-
var
|
|
237
|
+
function Nt(e, r, t, a, n) {
|
|
238
|
+
var i = [
|
|
239
239
|
M(Math.round(e).toString(16)),
|
|
240
240
|
M(Math.round(r).toString(16)),
|
|
241
241
|
M(Math.round(t).toString(16)),
|
|
242
|
-
M(
|
|
242
|
+
M(It(a))
|
|
243
243
|
];
|
|
244
|
-
return n &&
|
|
244
|
+
return n && i[0].startsWith(i[0].charAt(1)) && i[1].startsWith(i[1].charAt(1)) && i[2].startsWith(i[2].charAt(1)) && i[3].startsWith(i[3].charAt(1)) ? i[0].charAt(0) + i[1].charAt(0) + i[2].charAt(0) + i[3].charAt(0) : i.join("");
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function It(e) {
|
|
247
247
|
return Math.round(parseFloat(e) * 255).toString(16);
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function J(e) {
|
|
250
250
|
return d(e) / 255;
|
|
251
251
|
}
|
|
252
252
|
function d(e) {
|
|
@@ -410,9 +410,9 @@ var j = {
|
|
|
410
410
|
yellowgreen: "#9acd32"
|
|
411
411
|
};
|
|
412
412
|
function Ct(e) {
|
|
413
|
-
var r = { r: 0, g: 0, b: 0 }, t = 1, a = null, n = null,
|
|
414
|
-
return typeof e == "string" && (e = $t(e)), typeof e == "object" && (y(e.r) && y(e.g) && y(e.b) ? (r = Rt(e.r, e.g, e.b),
|
|
415
|
-
ok:
|
|
413
|
+
var r = { r: 0, g: 0, b: 0 }, t = 1, a = null, n = null, i = null, o = !1, s = !1;
|
|
414
|
+
return typeof e == "string" && (e = $t(e)), typeof e == "object" && (y(e.r) && y(e.g) && y(e.b) ? (r = Rt(e.r, e.g, e.b), o = !0, s = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : y(e.h) && y(e.s) && y(e.v) ? (a = H(e.s), n = H(e.v), r = Ft(e.h, a, n), o = !0, s = "hsv") : y(e.h) && y(e.s) && y(e.l) && (a = H(e.s), i = H(e.l), r = Tt(e.h, a, i), o = !0, s = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (t = e.a)), t = at(t), {
|
|
415
|
+
ok: o,
|
|
416
416
|
format: e.format || s,
|
|
417
417
|
r: Math.min(255, Math.max(r.r, 0)),
|
|
418
418
|
g: Math.min(255, Math.max(r.g, 0)),
|
|
@@ -446,7 +446,7 @@ function $t(e) {
|
|
|
446
446
|
r: d(t[1]),
|
|
447
447
|
g: d(t[2]),
|
|
448
448
|
b: d(t[3]),
|
|
449
|
-
a:
|
|
449
|
+
a: J(t[4]),
|
|
450
450
|
format: r ? "name" : "hex8"
|
|
451
451
|
} : (t = g.hex6.exec(e), t ? {
|
|
452
452
|
r: d(t[1]),
|
|
@@ -457,7 +457,7 @@ function $t(e) {
|
|
|
457
457
|
r: d(t[1] + t[1]),
|
|
458
458
|
g: d(t[2] + t[2]),
|
|
459
459
|
b: d(t[3] + t[3]),
|
|
460
|
-
a:
|
|
460
|
+
a: J(t[4] + t[4]),
|
|
461
461
|
format: r ? "name" : "hex8"
|
|
462
462
|
} : (t = g.hex3.exec(e), t ? {
|
|
463
463
|
r: d(t[1] + t[1]),
|
|
@@ -489,8 +489,8 @@ var zt = (
|
|
|
489
489
|
var r = this.toRgb();
|
|
490
490
|
return (r.r * 299 + r.g * 587 + r.b * 114) / 1e3;
|
|
491
491
|
}, e.prototype.getLuminance = function() {
|
|
492
|
-
var r = this.toRgb(), t, a, n,
|
|
493
|
-
return
|
|
492
|
+
var r = this.toRgb(), t, a, n, i = r.r / 255, o = r.g / 255, s = r.b / 255;
|
|
493
|
+
return i <= 0.03928 ? t = i / 12.92 : t = Math.pow((i + 0.055) / 1.055, 2.4), o <= 0.03928 ? a = o / 12.92 : a = Math.pow((o + 0.055) / 1.055, 2.4), s <= 0.03928 ? n = s / 12.92 : n = Math.pow((s + 0.055) / 1.055, 2.4), 0.2126 * t + 0.7152 * a + 0.0722 * n;
|
|
494
494
|
}, e.prototype.getAlpha = function() {
|
|
495
495
|
return this.a;
|
|
496
496
|
}, e.prototype.setAlpha = function(r) {
|
|
@@ -499,10 +499,10 @@ var zt = (
|
|
|
499
499
|
var r = this.toHsl().s;
|
|
500
500
|
return r === 0;
|
|
501
501
|
}, e.prototype.toHsv = function() {
|
|
502
|
-
var r =
|
|
502
|
+
var r = Y(this.r, this.g, this.b);
|
|
503
503
|
return { h: r.h * 360, s: r.s, v: r.v, a: this.a };
|
|
504
504
|
}, e.prototype.toHsvString = function() {
|
|
505
|
-
var r =
|
|
505
|
+
var r = Y(this.r, this.g, this.b), t = Math.round(r.h * 360), a = Math.round(r.s * 100), n = Math.round(r.v * 100);
|
|
506
506
|
return this.a === 1 ? "hsv(".concat(t, ", ").concat(a, "%, ").concat(n, "%)") : "hsva(".concat(t, ", ").concat(a, "%, ").concat(n, "%, ").concat(this.roundA, ")");
|
|
507
507
|
}, e.prototype.toHsl = function() {
|
|
508
508
|
var r = L(this.r, this.g, this.b);
|
|
@@ -511,11 +511,11 @@ var zt = (
|
|
|
511
511
|
var r = L(this.r, this.g, this.b), t = Math.round(r.h * 360), a = Math.round(r.s * 100), n = Math.round(r.l * 100);
|
|
512
512
|
return this.a === 1 ? "hsl(".concat(t, ", ").concat(a, "%, ").concat(n, "%)") : "hsla(".concat(t, ", ").concat(a, "%, ").concat(n, "%, ").concat(this.roundA, ")");
|
|
513
513
|
}, e.prototype.toHex = function(r) {
|
|
514
|
-
return r === void 0 && (r = !1),
|
|
514
|
+
return r === void 0 && (r = !1), Z(this.r, this.g, this.b, r);
|
|
515
515
|
}, e.prototype.toHexString = function(r) {
|
|
516
516
|
return r === void 0 && (r = !1), "#" + this.toHex(r);
|
|
517
517
|
}, e.prototype.toHex8 = function(r) {
|
|
518
|
-
return r === void 0 && (r = !1),
|
|
518
|
+
return r === void 0 && (r = !1), Nt(this.r, this.g, this.b, this.a, r);
|
|
519
519
|
}, e.prototype.toHex8String = function(r) {
|
|
520
520
|
return r === void 0 && (r = !1), "#" + this.toHex8(r);
|
|
521
521
|
}, e.prototype.toHexShortString = function(r) {
|
|
@@ -550,17 +550,17 @@ var zt = (
|
|
|
550
550
|
return "transparent";
|
|
551
551
|
if (this.a < 1)
|
|
552
552
|
return !1;
|
|
553
|
-
for (var r = "#" +
|
|
554
|
-
var n = a[t],
|
|
555
|
-
if (r ===
|
|
556
|
-
return
|
|
553
|
+
for (var r = "#" + Z(this.r, this.g, this.b, !1), t = 0, a = Object.entries(j); t < a.length; t++) {
|
|
554
|
+
var n = a[t], i = n[0], o = n[1];
|
|
555
|
+
if (r === o)
|
|
556
|
+
return i;
|
|
557
557
|
}
|
|
558
558
|
return !1;
|
|
559
559
|
}, e.prototype.toString = function(r) {
|
|
560
560
|
var t = !!r;
|
|
561
561
|
r = r ?? this.format;
|
|
562
|
-
var a = !1, n = this.a < 1 && this.a >= 0,
|
|
563
|
-
return
|
|
562
|
+
var a = !1, n = this.a < 1 && this.a >= 0, i = !t && n && (r.startsWith("hex") || r === "name");
|
|
563
|
+
return i ? r === "name" && this.a === 0 ? this.toName() : this.toRgbString() : (r === "rgb" && (a = this.toRgbString()), r === "prgb" && (a = this.toPercentageRgbString()), (r === "hex" || r === "hex6") && (a = this.toHexString()), r === "hex3" && (a = this.toHexString(!0)), r === "hex4" && (a = this.toHex8String(!0)), r === "hex8" && (a = this.toHex8String()), r === "name" && (a = this.toName()), r === "hsl" && (a = this.toHslString()), r === "hsv" && (a = this.toHsvString()), a || this.toHexString());
|
|
564
564
|
}, e.prototype.toNumber = function() {
|
|
565
565
|
return (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b);
|
|
566
566
|
}, e.prototype.clone = function() {
|
|
@@ -596,27 +596,27 @@ var zt = (
|
|
|
596
596
|
return t.h = a < 0 ? 360 + a : a, new e(t);
|
|
597
597
|
}, e.prototype.mix = function(r, t) {
|
|
598
598
|
t === void 0 && (t = 50);
|
|
599
|
-
var a = this.toRgb(), n = new e(r).toRgb(),
|
|
600
|
-
r: (n.r - a.r) *
|
|
601
|
-
g: (n.g - a.g) *
|
|
602
|
-
b: (n.b - a.b) *
|
|
603
|
-
a: (n.a - a.a) *
|
|
599
|
+
var a = this.toRgb(), n = new e(r).toRgb(), i = t / 100, o = {
|
|
600
|
+
r: (n.r - a.r) * i + a.r,
|
|
601
|
+
g: (n.g - a.g) * i + a.g,
|
|
602
|
+
b: (n.b - a.b) * i + a.b,
|
|
603
|
+
a: (n.a - a.a) * i + a.a
|
|
604
604
|
};
|
|
605
|
-
return new e(
|
|
605
|
+
return new e(o);
|
|
606
606
|
}, e.prototype.analogous = function(r, t) {
|
|
607
607
|
r === void 0 && (r = 6), t === void 0 && (t = 30);
|
|
608
|
-
var a = this.toHsl(), n = 360 / t,
|
|
608
|
+
var a = this.toHsl(), n = 360 / t, i = [this];
|
|
609
609
|
for (a.h = (a.h - (n * r >> 1) + 720) % 360; --r; )
|
|
610
|
-
a.h = (a.h + n) % 360,
|
|
611
|
-
return
|
|
610
|
+
a.h = (a.h + n) % 360, i.push(new e(a));
|
|
611
|
+
return i;
|
|
612
612
|
}, e.prototype.complement = function() {
|
|
613
613
|
var r = this.toHsl();
|
|
614
614
|
return r.h = (r.h + 180) % 360, new e(r);
|
|
615
615
|
}, e.prototype.monochromatic = function(r) {
|
|
616
616
|
r === void 0 && (r = 6);
|
|
617
|
-
for (var t = this.toHsv(), a = t.h, n = t.s,
|
|
618
|
-
|
|
619
|
-
return
|
|
617
|
+
for (var t = this.toHsv(), a = t.h, n = t.s, i = t.v, o = [], s = 1 / r; r--; )
|
|
618
|
+
o.push(new e({ h: a, s: n, v: i })), i = (i + s) % 1;
|
|
619
|
+
return o;
|
|
620
620
|
}, e.prototype.splitcomplement = function() {
|
|
621
621
|
var r = this.toHsl(), t = r.h;
|
|
622
622
|
return [
|
|
@@ -637,8 +637,8 @@ var zt = (
|
|
|
637
637
|
}, e.prototype.tetrad = function() {
|
|
638
638
|
return this.polyad(4);
|
|
639
639
|
}, e.prototype.polyad = function(r) {
|
|
640
|
-
for (var t = this.toHsl(), a = t.h, n = [this],
|
|
641
|
-
n.push(new e({ h: (a +
|
|
640
|
+
for (var t = this.toHsl(), a = t.h, n = [this], i = 360 / r, o = 1; o < r; o++)
|
|
641
|
+
n.push(new e({ h: (a + o * i) % 360, s: t.s, l: t.l }));
|
|
642
642
|
return n;
|
|
643
643
|
}, e.prototype.equals = function(r) {
|
|
644
644
|
return this.toRgbString() === new e(r).toRgbString();
|
|
@@ -649,27 +649,27 @@ function k(e, r = 20) {
|
|
|
649
649
|
return e.mix("#141414", r).toString();
|
|
650
650
|
}
|
|
651
651
|
function Gt(e) {
|
|
652
|
-
const r =
|
|
652
|
+
const r = X(), t = D("button");
|
|
653
653
|
return b(() => {
|
|
654
654
|
let a = {}, n = e.color;
|
|
655
655
|
if (n) {
|
|
656
|
-
const
|
|
657
|
-
|
|
658
|
-
const
|
|
656
|
+
const i = n.match(/var\((.*?)\)/);
|
|
657
|
+
i && (n = window.getComputedStyle(window.document.documentElement).getPropertyValue(i[1]));
|
|
658
|
+
const o = new zt(n), s = e.dark ? o.tint(20).toString() : k(o, 20);
|
|
659
659
|
if (e.plain)
|
|
660
660
|
a = t.cssVarBlock({
|
|
661
|
-
"bg-color": e.dark ? k(
|
|
661
|
+
"bg-color": e.dark ? k(o, 90) : o.tint(90).toString(),
|
|
662
662
|
"text-color": n,
|
|
663
|
-
"border-color": e.dark ? k(
|
|
663
|
+
"border-color": e.dark ? k(o, 50) : o.tint(50).toString(),
|
|
664
664
|
"hover-text-color": `var(${t.cssVarName("color-white")})`,
|
|
665
665
|
"hover-bg-color": n,
|
|
666
666
|
"hover-border-color": n,
|
|
667
667
|
"active-bg-color": s,
|
|
668
668
|
"active-text-color": `var(${t.cssVarName("color-white")})`,
|
|
669
669
|
"active-border-color": s
|
|
670
|
-
}), r.value && (a[t.cssVarBlockName("disabled-bg-color")] = e.dark ? k(
|
|
670
|
+
}), r.value && (a[t.cssVarBlockName("disabled-bg-color")] = e.dark ? k(o, 90) : o.tint(90).toString(), a[t.cssVarBlockName("disabled-text-color")] = e.dark ? k(o, 50) : o.tint(50).toString(), a[t.cssVarBlockName("disabled-border-color")] = e.dark ? k(o, 80) : o.tint(80).toString());
|
|
671
671
|
else {
|
|
672
|
-
const l = e.dark ? k(
|
|
672
|
+
const l = e.dark ? k(o, 30) : o.tint(30).toString(), p = o.isDark() ? `var(${t.cssVarName("color-white")})` : `var(${t.cssVarName("color-black")})`;
|
|
673
673
|
if (a = t.cssVarBlock({
|
|
674
674
|
"bg-color": n,
|
|
675
675
|
"text-color": p,
|
|
@@ -680,7 +680,7 @@ function Gt(e) {
|
|
|
680
680
|
"active-bg-color": s,
|
|
681
681
|
"active-border-color": s
|
|
682
682
|
}), r.value) {
|
|
683
|
-
const m = e.dark ? k(
|
|
683
|
+
const m = e.dark ? k(o, 50) : o.tint(50).toString();
|
|
684
684
|
a[t.cssVarBlockName("disabled-bg-color")] = m, a[t.cssVarBlockName("disabled-text-color")] = e.dark ? "rgba(255, 255, 255, 0.5)" : `var(${t.cssVarName("color-white")})`, a[t.cssVarBlockName("disabled-border-color")] = m;
|
|
685
685
|
}
|
|
686
686
|
}
|
|
@@ -688,13 +688,13 @@ function Gt(e) {
|
|
|
688
688
|
return a;
|
|
689
689
|
});
|
|
690
690
|
}
|
|
691
|
-
const jt =
|
|
691
|
+
const jt = Q({
|
|
692
692
|
name: "ElButton",
|
|
693
693
|
__name: "button",
|
|
694
694
|
props: G,
|
|
695
695
|
emits: Bt,
|
|
696
696
|
setup(e, { expose: r, emit: t }) {
|
|
697
|
-
const a = e, n = t,
|
|
697
|
+
const a = e, n = t, i = Gt(a), o = D("button"), {
|
|
698
698
|
_ref: s,
|
|
699
699
|
_size: l,
|
|
700
700
|
_type: p,
|
|
@@ -702,21 +702,21 @@ const jt = X({
|
|
|
702
702
|
_props: w,
|
|
703
703
|
_plain: T,
|
|
704
704
|
_round: F,
|
|
705
|
-
_text:
|
|
705
|
+
_text: N,
|
|
706
706
|
shouldAddSpace: B,
|
|
707
707
|
handleClick: O
|
|
708
708
|
} = Mt(a, n), u = b(() => [
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
709
|
+
o.b(),
|
|
710
|
+
o.m(p.value),
|
|
711
|
+
o.m(l.value),
|
|
712
|
+
o.is("disabled", m.value),
|
|
713
|
+
o.is("loading", a.loading),
|
|
714
|
+
o.is("plain", T.value),
|
|
715
|
+
o.is("round", F.value),
|
|
716
|
+
o.is("circle", a.circle),
|
|
717
|
+
o.is("text", N.value),
|
|
718
|
+
o.is("link", a.link),
|
|
719
|
+
o.is("has-bg", a.bg)
|
|
720
720
|
]);
|
|
721
721
|
return r({
|
|
722
722
|
ref: s,
|
|
@@ -724,12 +724,12 @@ const jt = X({
|
|
|
724
724
|
type: p,
|
|
725
725
|
disabled: m,
|
|
726
726
|
shouldAddSpace: B
|
|
727
|
-
}), (f, h) => (x(), _(
|
|
727
|
+
}), (f, h) => (x(), _(I(f.tag), lt({
|
|
728
728
|
ref_key: "_ref",
|
|
729
729
|
ref: s
|
|
730
730
|
}, v(w), {
|
|
731
731
|
class: u.value,
|
|
732
|
-
style: v(
|
|
732
|
+
style: v(i),
|
|
733
733
|
onClick: v(O)
|
|
734
734
|
}), {
|
|
735
735
|
default: E(() => [
|
|
@@ -739,10 +739,10 @@ const jt = X({
|
|
|
739
739
|
[
|
|
740
740
|
f.$slots.loading ? R(f.$slots, "loading", { key: 0 }) : (x(), _(v(K), {
|
|
741
741
|
key: 1,
|
|
742
|
-
class: z(v(
|
|
742
|
+
class: z(v(o).is("loading"))
|
|
743
743
|
}, {
|
|
744
744
|
default: E(() => [
|
|
745
|
-
(x(), _(
|
|
745
|
+
(x(), _(I(f.loadingIcon)))
|
|
746
746
|
]),
|
|
747
747
|
_: 1
|
|
748
748
|
}, 8, ["class"]))
|
|
@@ -750,7 +750,7 @@ const jt = X({
|
|
|
750
750
|
64
|
|
751
751
|
)) : f.icon || f.$slots.icon ? (x(), _(v(K), { key: 1 }, {
|
|
752
752
|
default: E(() => [
|
|
753
|
-
f.icon ? (x(), _(
|
|
753
|
+
f.icon ? (x(), _(I(f.icon), { key: 0 })) : R(f.$slots, "icon", { key: 1 })
|
|
754
754
|
]),
|
|
755
755
|
_: 3
|
|
756
756
|
})) : W("v-if", !0),
|
|
@@ -758,7 +758,7 @@ const jt = X({
|
|
|
758
758
|
"span",
|
|
759
759
|
{
|
|
760
760
|
key: 2,
|
|
761
|
-
class: z({ [v(
|
|
761
|
+
class: z({ [v(o).em("text", "expand")]: v(B) })
|
|
762
762
|
},
|
|
763
763
|
[
|
|
764
764
|
R(f.$slots, "default")
|
|
@@ -779,7 +779,7 @@ const Ot = {
|
|
|
779
779
|
values: ["horizontal", "vertical"],
|
|
780
780
|
default: "horizontal"
|
|
781
781
|
}
|
|
782
|
-
}, Wt =
|
|
782
|
+
}, Wt = Q({
|
|
783
783
|
name: "ElButtonGroup",
|
|
784
784
|
__name: "button-group",
|
|
785
785
|
props: Ot,
|
|
@@ -806,10 +806,10 @@ const Ot = {
|
|
|
806
806
|
}
|
|
807
807
|
});
|
|
808
808
|
var nt = /* @__PURE__ */ et(Wt, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);
|
|
809
|
-
const
|
|
809
|
+
const Yt = yt(Dt, {
|
|
810
810
|
ButtonGroup: nt
|
|
811
811
|
});
|
|
812
812
|
kt(nt);
|
|
813
813
|
export {
|
|
814
|
-
|
|
814
|
+
Yt as E
|
|
815
815
|
};
|