@web-utils/component 5.0.0-beta01 → 5.0.0-beta03
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/awesome-button/index.mjs +25 -31
- package/{utils/style.css → base.css} +1 -1
- package/chat/index.mjs +3 -12
- package/chunks/{EditableTree.C_IJBL5b.mjs → EditableTree.CV8b95tW.mjs} +130 -139
- package/chunks/{ElementBaseInfo.DyuFR6fE.mjs → ElementBaseInfo.lW0iwU10.mjs} +2 -3
- package/chunks/ElementDialog.DWhAJsUn.mjs +520 -0
- package/chunks/{ElementForm.ButuYDPA.mjs → ElementForm.C7yebHWH.mjs} +12 -39
- package/chunks/{ElementListeners.Dg3e_dmp.mjs → ElementListeners.B_SjC8dp.mjs} +10 -31
- package/chunks/{ElementMultiInstance.Dmi79FqA.mjs → ElementMultiInstance.Xw27Z5mm.mjs} +2 -3
- package/chunks/{ElementOtherConfig.C2AddGTp.mjs → ElementOtherConfig.DnNmAhKn.mjs} +0 -1
- package/chunks/{ElementProperties.CfV8UF7L.mjs → ElementProperties.DKr9JE_O.mjs} +3 -12
- package/chunks/{ElementTaskConfig.Bn7ycGGn.mjs → ElementTaskConfig.CPjsXlpS.mjs} +6 -10
- package/chunks/{FlowCondition.C6PdqOAW.mjs → FlowCondition.BA7GF34X.mjs} +4 -5
- package/chunks/{FlowDesigner.uJYFfKpR.mjs → FlowDesigner.DH1ypcUw.mjs} +17 -18
- package/chunks/{FormBlock.BEENc22F.mjs → FormBlock.D6kZl7sm.mjs} +8 -8
- package/chunks/FormCascader.BXL8lKww.mjs +1229 -0
- package/chunks/{FormInputTime.Bg3UIP8H.mjs → FormInputTime.DzTPiDNh.mjs} +339 -337
- package/chunks/{FormItem.H9OOvNzT.mjs → FormItem.B8iPLduv.mjs} +12 -13
- package/chunks/{FormItemGroup.D9eRy-cZ.mjs → FormItemGroup.CCGqEapT.mjs} +38 -31
- package/chunks/{FormSelect.CanodoAI.mjs → FormSelect.t0jbTL_K.mjs} +470 -467
- package/chunks/{FormSwitch.DTqdaFjv.mjs → FormSwitch.uoFQ-xp_.mjs} +53 -51
- package/chunks/{FormTemp.DiI5EfgK.mjs → FormTemp.CeHtEZQe.mjs} +11 -6
- package/chunks/{FyCurd.DMj1dMK9.mjs → FyCurd.DqJuCLNW.mjs} +22 -25
- package/chunks/{FyForm.vgR8ujEF.mjs → FyForm.CgyGhetD.mjs} +25 -21
- package/chunks/{FyFormDesign.DEWT6LsX.mjs → FyFormDesign.DIIK7mXK.mjs} +49 -128
- package/chunks/{FyUpload.B2QKfTxF.mjs → FyUpload.DoBEuYcC.mjs} +2 -2
- package/chunks/ImagePreview.DDFrZgo5.mjs +649 -0
- package/chunks/{Keyboard.ItiRy7Gb.mjs → Keyboard.DBspwbYo.mjs} +2 -2
- package/chunks/{MonacoEditor.Bd5Kui-Y.mjs → MonacoEditor.Bq9d6JSz.mjs} +65 -64
- package/chunks/{PageableTable.Bujb0NUx.mjs → PageableTable.DR-REJN5.mjs} +84 -83
- package/chunks/{SignalAndMessage.CYVzlFuL.mjs → SignalAndMessage.CL2u19it.mjs} +1 -10
- package/chunks/{TableColumn.DJYkznbJ.mjs → TableColumn.Cq9Bvevm.mjs} +34 -28
- package/chunks/{TableView.DyIdIxAg.mjs → TableView.DMWMaGLA.mjs} +26 -33
- package/chunks/ToolbarButton.AlTszc53.mjs +107 -0
- package/chunks/{UserTaskListeners.Bp-2qkHs.mjs → UserTaskListeners.Qfm8hKWP.mjs} +9 -27
- package/chunks/{VueCron.GfjodnyM.mjs → VueCron.BmPnLuu3.mjs} +163 -142
- package/chunks/{VueTreeSelect.9Ywl-I8e.mjs → VueTreeSelect.GHx4Z2lG.mjs} +48 -43
- package/chunks/button.gVyl7Y__.mjs +927 -0
- package/chunks/checkbox.AmhCpaBZ.mjs +438 -0
- package/chunks/chunk.A6TnG60p.mjs +13 -0
- package/chunks/confirmable-mixin.BZtxXY0h.mjs +273 -0
- package/chunks/constants.Dw7hXt67.mjs +4 -0
- package/chunks/{dictionary.DxZxP0ej.mjs → dictionary.BqVLM7Lf.mjs} +1 -1
- package/chunks/{event.eJ-c1Z3a.mjs → event.CmOTnori.mjs} +4 -7
- package/chunks/event.ZRs4J5TN.mjs +4 -0
- package/chunks/{focus-trap.DT4GnqQI.mjs → focus-trap.CuUc8N2C.mjs} +26 -26
- package/chunks/{form-input.D25eDRMq.mjs → form-input.DdSb45Tz.mjs} +3 -3
- package/chunks/{form-item.CgmUuw_n.mjs → form-item.fYYCXvCs.mjs} +77 -75
- package/chunks/icon.AJYLfX1m.mjs +26 -0
- package/chunks/{icon.CbS8-322.mjs → icon.niAg1zTC.mjs} +31 -39
- package/chunks/{init.DwpukyOB.mjs → init.CtUEiRbU.mjs} +6 -6
- package/chunks/{input.PejnqwSH.mjs → input.B_wW4aF-.mjs} +107 -106
- package/chunks/install.BJl2MN77.mjs +73 -0
- package/chunks/message-box.wGWcYSSd.mjs +463 -0
- package/chunks/{message.BCmee5N0.mjs → message.DnTACuzV.mjs} +76 -75
- package/chunks/{overlay.DubSnqma.mjs → overlay.Rhu_rfhx.mjs} +5 -5
- package/chunks/{radio.BotKXqJr.mjs → radio.BMkZBhl5.mjs} +45 -45
- package/chunks/{scroll.CzORc5Zk.mjs → scroll.BJIpzi2Q.mjs} +2 -2
- package/chunks/{scrollbar.CAmrlKi9.mjs → scrollbar.CvxOszy3.mjs} +4 -4
- package/chunks/{style.BmlGmjpO.mjs → style.CraPDfJA.mjs} +3 -3
- package/chunks/{tag.DPi-PLbb.mjs → tag.B6yUaGj-.mjs} +25 -25
- package/chunks/{teleport._VGEzK4d.mjs → teleport.87mkIv8m.mjs} +3 -3
- package/chunks/{tooltip.D50x7Rva.mjs → tooltip.Dzjs7LZ8.mjs} +108 -108
- package/chunks/typescript.D0a40c7B.mjs +4 -0
- package/chunks/{use-aria.BW7nWOl1.mjs → use-aria.B9uqqWAE.mjs} +2 -2
- package/chunks/{use-composition.mUaomyno.mjs → use-composition.BMPJBvYs.mjs} +4 -4
- package/chunks/{use-deprecated.BfDSbZS9.mjs → use-deprecated.vx6LTDA_.mjs} +2 -2
- package/chunks/use-empty-values.CxYKjLV9.mjs +81 -0
- package/chunks/use-form-item.DMDTkMq9.mjs +48 -0
- package/chunks/use-global-config.Dkt91Ob3.mjs +57 -0
- package/chunks/{use-id.CFO5NeoV.mjs → use-id.CyzdvfQn.mjs} +3 -3
- package/chunks/{use-empty-values.Dy_r78F6.mjs → use-locale.CBoQRFjH.mjs} +12 -87
- package/chunks/{use-size.DxrwTUwf.mjs → use-size.CoorvF12.mjs} +2 -2
- package/chunks/validator.Drv0r2Nb.mjs +5 -0
- package/chunks/{vnode.D_SioRnx.mjs → vnode.raM3wMJz.mjs} +2 -2
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/context-menu/index.mjs +39 -38
- package/data-box/style.css +1 -1
- package/data-card/style.css +1 -1
- package/data-display/style.css +1 -1
- package/data-icons/style.css +1 -1
- package/data-imgtext/style.css +1 -1
- package/data-operatext/style.css +1 -1
- package/data-panel/style.css +1 -1
- package/data-pay/style.css +1 -1
- package/data-price/style.css +1 -1
- package/data-progress/style.css +1 -1
- package/data-rotate/style.css +1 -1
- package/data-table-picker/index.mjs +2 -6
- package/data-tabs/style.css +1 -1
- package/dialog-form/index.mjs +7 -3
- package/dynamic-table/index.mjs +1 -2
- package/editable-tree/index.mjs +1 -1
- package/element-dialog/index.mjs +1 -1
- package/element-dialog/style.css +1 -1
- package/empty-view/index.mjs +18 -20
- package/error-view/index.mjs +17 -19
- package/flex-column/index.mjs +11 -9
- package/flex-item/index.mjs +22 -16
- package/flex-row/index.mjs +11 -10
- package/flow/index.mjs +1 -1
- package/flow-designer/index.mjs +1 -1
- package/form-block/index.mjs +1 -1
- package/form-cascader/index.mjs +1 -1
- package/form-checkbox/index.mjs +4 -4
- package/form-checkbox-group/index.mjs +6 -6
- package/form-date-picker/index.mjs +3 -3
- package/form-holder/index.mjs +2 -5
- package/form-input/index.mjs +4 -4
- package/form-input-cron-expression/index.mjs +4 -4
- package/form-input-email/index.mjs +10 -9
- package/form-input-id-card/index.mjs +10 -9
- package/form-input-phone-number/index.mjs +11 -10
- package/form-input-tag/index.mjs +2 -2
- package/form-input-time/index.mjs +1 -1
- package/form-item/index.mjs +1 -1
- package/form-item-group/index.mjs +1 -1
- package/form-radio-group/index.mjs +6 -6
- package/form-select/index.mjs +1 -1
- package/form-switch/index.mjs +1 -1
- package/form-table/index.mjs +2 -2
- package/form-table-plus/index.mjs +4 -4
- package/form-textarea/index.mjs +4 -4
- package/form-tree-select/index.mjs +3 -3
- package/form-tree-select-multiple/index.mjs +3 -3
- package/form-view/index.mjs +13 -8
- package/fy-array/index.mjs +1 -1
- package/fy-cascader/index.mjs +1 -1
- package/fy-checkbox/index.mjs +1 -1
- package/fy-code/index.mjs +2 -2
- package/fy-curd/index.mjs +1 -1
- package/fy-date/index.mjs +1 -1
- package/fy-dynamic/index.mjs +3 -7
- package/fy-form/index.mjs +1 -1
- package/fy-form/style.css +1 -1
- package/fy-form-design/index.mjs +1 -1
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +1 -1
- package/fy-input-color/index.mjs +1 -2
- package/fy-input-icon/index.mjs +37 -32
- package/fy-input-map/index.mjs +1 -1
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +1 -1
- package/fy-input-tree/index.mjs +3 -3
- package/fy-input-tree/style.css +1 -1
- package/fy-radio/index.mjs +2 -2
- package/fy-rate/index.mjs +2 -2
- package/fy-select/index.mjs +5 -5
- package/fy-slider/index.mjs +1 -1
- package/fy-switch/index.mjs +2 -2
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +1 -1
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +1 -1
- package/guide-steps/index.mjs +1 -1
- package/helper-function.d.ts +3 -3
- package/helper-function.mjs +36 -20
- package/iframe-window/index.mjs +30 -29
- package/image-cropper/index.mjs +144 -163
- package/image-cropper/style.css +1 -1
- package/image-preview/index.mjs +2 -187
- package/index.d.ts +1 -2
- package/index.mjs +153 -154
- package/input-number-range/index.mjs +0 -2
- package/keyboard/index.mjs +1 -1
- package/license/index.mjs +1 -1
- package/monaco-editor/index.mjs +1 -1
- package/nav-bar/index.mjs +1 -1
- package/notice/index.mjs +1 -4
- package/package.json +12 -14
- package/pageable-table/index.mjs +1 -1
- package/pageable-view/index.mjs +2 -2
- package/photo-swipe/index.mjs +1 -1
- package/picker-table-view/index.mjs +4 -8
- package/present-view/index.mjs +18 -13
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +1 -1
- package/search/index.mjs +2 -2
- package/split-pane/index.mjs +1 -1
- package/stateful/index.mjs +18 -17
- package/static-pageable-table/index.mjs +1 -4
- package/sub-table/index.mjs +2 -5
- package/sub-table-plus/index.mjs +3 -6
- package/tab/index.mjs +1 -1
- package/tab-item/index.mjs +1 -1
- package/table-column/index.mjs +1 -1
- package/table-view/index.mjs +1 -1
- package/tag-render/index.mjs +28 -24
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.mjs +2 -146
- package/vue-cron/index.mjs +1 -1
- package/vue-qr-code/index.mjs +7 -6
- package/vue-tags-input/index.mjs +1 -1
- package/vue-tree-select/index.mjs +1 -1
- package/watermark/index.mjs +13 -13
- package/web-types.json +265 -363
- package/x-input-tag/index.mjs +0 -3
- package/chunks/ElementDialog.C0IjriTW.mjs +0 -681
- package/chunks/FormCascader.CaM-oEhv.mjs +0 -1226
- package/chunks/checkbox.emIuFmnt.mjs +0 -437
- package/chunks/confirmable-mixin.BBil7dto.mjs +0 -1646
- package/chunks/event.B4iwtUNO.mjs +0 -4
- package/chunks/install.yLcn5MLL.mjs +0 -84
- package/chunks/typescript.DiWBU4nj.mjs +0 -4
- package/chunks/use-form-item.wsRjehHp.mjs +0 -47
- package/chunks/use-global-config.C9hs-O_x.mjs +0 -56
- package/chunks/validator.C4-z_t9p.mjs +0 -5
- package/login/index.mjs +0 -252
- package/login/style.css +0 -1
- /package/chunks/{FyUEditor.D_rEYfll.mjs → FyUEditor.uvZS8UgS.mjs} +0 -0
- /package/chunks/{RecordVideo.B35_dLty.mjs → RecordVideo.CKTY-gk9.mjs} +0 -0
- /package/chunks/{SplitPane.Dw96M0Yf.mjs → SplitPane.DNNid7WB.mjs} +0 -0
- /package/chunks/{Toolbar.DHuXJAoG.mjs → Toolbar.DytZ6fO0.mjs} +0 -0
- /package/chunks/{core.DJv6Qrae.mjs → core.Blrh_Fjl.mjs} +0 -0
- /package/chunks/{dataformat.Bfr4nOcA.mjs → dataformat.F7GtAoiN.mjs} +0 -0
- /package/chunks/{dic.DgDfnovD.mjs → dic.NZCGhtA7.mjs} +0 -0
- /package/chunks/{dictionary.5eKjWeAp.mjs → dictionary.DXYdZefs.mjs} +0 -0
- /package/chunks/{form-pick.Axem0gOO.mjs → form-pick.BEC7lrNH.mjs} +0 -0
- /package/chunks/{form-validate.B1KPCHqN.mjs → form-validate.JFOV_f-C.mjs} +0 -0
- /package/chunks/{packages.BGjydzjm.mjs → packages.CONbEH13.mjs} +0 -0
- /package/chunks/{permission.DgEVNWlh.mjs → permission.8WDtOmzA.mjs} +0 -0
- /package/chunks/{photo-swipe.BB0SJZg9.mjs → photo-swipe.BvBJGc5x.mjs} +0 -0
- /package/chunks/{slot.C6Ozd2e7.mjs → slot.CZCo32Cw.mjs} +0 -0
- /package/chunks/{sub-table-plus-props.B_lLth3j.mjs → sub-table-plus-props.DvS8aKT4.mjs} +0 -0
- /package/chunks/{tab-mixin.u0EZpx3j.mjs → tab-mixin.C9DSz8xu.mjs} +0 -0
- /package/chunks/{util.B3sjVZoZ.mjs → util.fjuzrmWz.mjs} +0 -0
- /package/chunks/{utilSelf.ZED4DmCU.mjs → utilSelf.Bv7FtUNb.mjs} +0 -0
- /package/chunks/{utils.Cs2fYBrT.mjs → utils.C37EhJ-u.mjs} +0 -0
- /package/chunks/{utils.DsGhtCIO.mjs → utils.C8RvIGLM.mjs} +0 -0
|
@@ -0,0 +1,927 @@
|
|
|
1
|
+
import { r as e } from "./use-size.CoorvF12.mjs";
|
|
2
|
+
import { o as t, r as n, t as r } from "./install.BJl2MN77.mjs";
|
|
3
|
+
import { M as i, j as a } from "./style.CraPDfJA.mjs";
|
|
4
|
+
import { t as o } from "./use-deprecated.vx6LTDA_.mjs";
|
|
5
|
+
import { i as s, r as c, t as l } from "./use-form-item.DMDTkMq9.mjs";
|
|
6
|
+
import { h as u, t as d } from "./icon.niAg1zTC.mjs";
|
|
7
|
+
import { a as f } from "./icon.AJYLfX1m.mjs";
|
|
8
|
+
import { r as p } from "./use-global-config.Dkt91Ob3.mjs";
|
|
9
|
+
import { Fragment as m, Text as h, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, defineComponent as b, inject as x, mergeProps as S, normalizeClass as C, openBlock as w, provide as T, reactive as E, ref as D, renderSlot as O, resolveDynamicComponent as k, toRef as A, unref as j, useSlots as ee, withCtx as M } from "vue";
|
|
10
|
+
var N = a({
|
|
11
|
+
size: e,
|
|
12
|
+
disabled: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: void 0
|
|
15
|
+
},
|
|
16
|
+
type: {
|
|
17
|
+
type: String,
|
|
18
|
+
values: [
|
|
19
|
+
"default",
|
|
20
|
+
"primary",
|
|
21
|
+
"success",
|
|
22
|
+
"warning",
|
|
23
|
+
"info",
|
|
24
|
+
"danger",
|
|
25
|
+
"text",
|
|
26
|
+
""
|
|
27
|
+
],
|
|
28
|
+
default: ""
|
|
29
|
+
},
|
|
30
|
+
icon: { type: f },
|
|
31
|
+
nativeType: {
|
|
32
|
+
type: String,
|
|
33
|
+
values: [
|
|
34
|
+
"button",
|
|
35
|
+
"submit",
|
|
36
|
+
"reset"
|
|
37
|
+
],
|
|
38
|
+
default: "button"
|
|
39
|
+
},
|
|
40
|
+
loading: Boolean,
|
|
41
|
+
loadingIcon: {
|
|
42
|
+
type: f,
|
|
43
|
+
default: () => u
|
|
44
|
+
},
|
|
45
|
+
plain: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: void 0
|
|
48
|
+
},
|
|
49
|
+
text: {
|
|
50
|
+
type: Boolean,
|
|
51
|
+
default: void 0
|
|
52
|
+
},
|
|
53
|
+
link: Boolean,
|
|
54
|
+
bg: Boolean,
|
|
55
|
+
autofocus: Boolean,
|
|
56
|
+
round: {
|
|
57
|
+
type: Boolean,
|
|
58
|
+
default: void 0
|
|
59
|
+
},
|
|
60
|
+
circle: Boolean,
|
|
61
|
+
dashed: {
|
|
62
|
+
type: Boolean,
|
|
63
|
+
default: void 0
|
|
64
|
+
},
|
|
65
|
+
color: String,
|
|
66
|
+
dark: Boolean,
|
|
67
|
+
autoInsertSpace: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
default: void 0
|
|
70
|
+
},
|
|
71
|
+
tag: {
|
|
72
|
+
type: i([String, Object]),
|
|
73
|
+
default: "button"
|
|
74
|
+
}
|
|
75
|
+
}), te = { click: (e) => e instanceof MouseEvent }, P = Symbol("buttonGroupContextKey"), ne = (e, t) => {
|
|
76
|
+
o({
|
|
77
|
+
from: "type.text",
|
|
78
|
+
replacement: "link",
|
|
79
|
+
version: "3.0.0",
|
|
80
|
+
scope: "props",
|
|
81
|
+
ref: "https://element-plus.org/en-US/component/button.html#button-attributes"
|
|
82
|
+
}, g(() => e.type === "text"));
|
|
83
|
+
let n = x(P, void 0), r = p("button"), { form: i } = l(), a = s(g(() => n == null ? void 0 : n.size)), u = c(), d = D(), f = ee(), m = g(() => {
|
|
84
|
+
var t;
|
|
85
|
+
return e.type || (n == null ? void 0 : n.type) || ((t = r.value) == null ? void 0 : t.type) || "";
|
|
86
|
+
}), _ = g(() => {
|
|
87
|
+
var t;
|
|
88
|
+
return e.autoInsertSpace ?? ((t = r.value) == null ? void 0 : t.autoInsertSpace) ?? !1;
|
|
89
|
+
}), v = g(() => {
|
|
90
|
+
var t;
|
|
91
|
+
return e.plain ?? ((t = r.value) == null ? void 0 : t.plain) ?? !1;
|
|
92
|
+
}), y = g(() => {
|
|
93
|
+
var t;
|
|
94
|
+
return e.round ?? ((t = r.value) == null ? void 0 : t.round) ?? !1;
|
|
95
|
+
}), b = g(() => {
|
|
96
|
+
var t;
|
|
97
|
+
return e.text ?? ((t = r.value) == null ? void 0 : t.text) ?? !1;
|
|
98
|
+
}), S = g(() => {
|
|
99
|
+
var t;
|
|
100
|
+
return e.dashed ?? ((t = r.value) == null ? void 0 : t.dashed) ?? !1;
|
|
101
|
+
});
|
|
102
|
+
return {
|
|
103
|
+
_disabled: u,
|
|
104
|
+
_size: a,
|
|
105
|
+
_type: m,
|
|
106
|
+
_ref: d,
|
|
107
|
+
_props: g(() => e.tag === "button" ? {
|
|
108
|
+
ariaDisabled: u.value || e.loading,
|
|
109
|
+
disabled: u.value || e.loading,
|
|
110
|
+
autofocus: e.autofocus,
|
|
111
|
+
type: e.nativeType
|
|
112
|
+
} : {}),
|
|
113
|
+
_plain: v,
|
|
114
|
+
_round: y,
|
|
115
|
+
_text: b,
|
|
116
|
+
_dashed: S,
|
|
117
|
+
shouldAddSpace: g(() => {
|
|
118
|
+
var e;
|
|
119
|
+
let t = (e = f.default) == null ? void 0 : e.call(f);
|
|
120
|
+
if (_.value && (t == null ? void 0 : t.length) === 1) {
|
|
121
|
+
let e = t[0];
|
|
122
|
+
if ((e == null ? void 0 : e.type) === h) {
|
|
123
|
+
let t = e.children;
|
|
124
|
+
return /^\p{Unified_Ideograph}{2}$/u.test(t.trim());
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
return !1;
|
|
128
|
+
}),
|
|
129
|
+
handleClick: (n) => {
|
|
130
|
+
if (u.value || e.loading) {
|
|
131
|
+
n.stopPropagation();
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
e.nativeType === "reset" && (i == null || i.resetFields()), t("click", n);
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
//#endregion
|
|
139
|
+
//#region node_modules/.pnpm/@ctrl+tinycolor@4.2.0/node_modules/@ctrl/tinycolor/dist/module/util.js
|
|
140
|
+
function F(e, t) {
|
|
141
|
+
re(e) && (e = "100%");
|
|
142
|
+
let n = ie(e);
|
|
143
|
+
return e = t === 360 ? e : Math.min(t, Math.max(0, parseFloat(e))), n && (e = parseInt(String(e * t), 10) / 100), Math.abs(e - t) < 1e-6 ? 1 : (e = t === 360 ? (e < 0 ? e % t + t : e % t) / parseFloat(String(t)) : e % t / parseFloat(String(t)), e);
|
|
144
|
+
}
|
|
145
|
+
function I(e) {
|
|
146
|
+
return Math.min(1, Math.max(0, e));
|
|
147
|
+
}
|
|
148
|
+
function re(e) {
|
|
149
|
+
return typeof e == "string" && e.indexOf(".") !== -1 && parseFloat(e) === 1;
|
|
150
|
+
}
|
|
151
|
+
function ie(e) {
|
|
152
|
+
return typeof e == "string" && e.indexOf("%") !== -1;
|
|
153
|
+
}
|
|
154
|
+
function L(e) {
|
|
155
|
+
return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
|
|
156
|
+
}
|
|
157
|
+
function R(e) {
|
|
158
|
+
return Number(e) <= 1 ? `${Number(e) * 100}%` : e;
|
|
159
|
+
}
|
|
160
|
+
function z(e) {
|
|
161
|
+
return e.length === 1 ? "0" + e : String(e);
|
|
162
|
+
}
|
|
163
|
+
//#endregion
|
|
164
|
+
//#region node_modules/.pnpm/@ctrl+tinycolor@4.2.0/node_modules/@ctrl/tinycolor/dist/module/conversion.js
|
|
165
|
+
function ae(e, t, n) {
|
|
166
|
+
return {
|
|
167
|
+
r: F(e, 255) * 255,
|
|
168
|
+
g: F(t, 255) * 255,
|
|
169
|
+
b: F(n, 255) * 255
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
function B(e, t, n) {
|
|
173
|
+
e = F(e, 255), t = F(t, 255), n = F(n, 255);
|
|
174
|
+
let r = Math.max(e, t, n), i = Math.min(e, t, n), a = 0, o = 0, s = (r + i) / 2;
|
|
175
|
+
if (r === i) o = 0, a = 0;
|
|
176
|
+
else {
|
|
177
|
+
let c = r - i;
|
|
178
|
+
switch (o = s > .5 ? c / (2 - r - i) : c / (r + i), r) {
|
|
179
|
+
case e:
|
|
180
|
+
a = (t - n) / c + (t < n ? 6 : 0);
|
|
181
|
+
break;
|
|
182
|
+
case t:
|
|
183
|
+
a = (n - e) / c + 2;
|
|
184
|
+
break;
|
|
185
|
+
case n:
|
|
186
|
+
a = (e - t) / c + 4;
|
|
187
|
+
break;
|
|
188
|
+
default: break;
|
|
189
|
+
}
|
|
190
|
+
a /= 6;
|
|
191
|
+
}
|
|
192
|
+
return {
|
|
193
|
+
h: a,
|
|
194
|
+
s: o,
|
|
195
|
+
l: s
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
function V(e, t, n) {
|
|
199
|
+
return n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * (6 * n) : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
|
|
200
|
+
}
|
|
201
|
+
function oe(e, t, n) {
|
|
202
|
+
let r, i, a;
|
|
203
|
+
if (e = F(e, 360), t = F(t, 100), n = F(n, 100), t === 0) i = n, a = n, r = n;
|
|
204
|
+
else {
|
|
205
|
+
let o = n < .5 ? n * (1 + t) : n + t - n * t, s = 2 * n - o;
|
|
206
|
+
r = V(s, o, e + 1 / 3), i = V(s, o, e), a = V(s, o, e - 1 / 3);
|
|
207
|
+
}
|
|
208
|
+
return {
|
|
209
|
+
r: r * 255,
|
|
210
|
+
g: i * 255,
|
|
211
|
+
b: a * 255
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
function H(e, t, n) {
|
|
215
|
+
e = F(e, 255), t = F(t, 255), n = F(n, 255);
|
|
216
|
+
let r = Math.max(e, t, n), i = Math.min(e, t, n), a = 0, o = r, s = r - i, c = r === 0 ? 0 : s / r;
|
|
217
|
+
if (r === i) a = 0;
|
|
218
|
+
else {
|
|
219
|
+
switch (r) {
|
|
220
|
+
case e:
|
|
221
|
+
a = (t - n) / s + (t < n ? 6 : 0);
|
|
222
|
+
break;
|
|
223
|
+
case t:
|
|
224
|
+
a = (n - e) / s + 2;
|
|
225
|
+
break;
|
|
226
|
+
case n:
|
|
227
|
+
a = (e - t) / s + 4;
|
|
228
|
+
break;
|
|
229
|
+
default: break;
|
|
230
|
+
}
|
|
231
|
+
a /= 6;
|
|
232
|
+
}
|
|
233
|
+
return {
|
|
234
|
+
h: a,
|
|
235
|
+
s: c,
|
|
236
|
+
v: o
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
function se(e, t, n) {
|
|
240
|
+
e = F(e, 360) * 6, t = F(t, 100), n = F(n, 100);
|
|
241
|
+
let r = Math.floor(e), i = e - r, a = n * (1 - t), o = n * (1 - i * t), s = n * (1 - (1 - i) * t), c = r % 6, l = [
|
|
242
|
+
n,
|
|
243
|
+
o,
|
|
244
|
+
a,
|
|
245
|
+
a,
|
|
246
|
+
s,
|
|
247
|
+
n
|
|
248
|
+
][c], u = [
|
|
249
|
+
s,
|
|
250
|
+
n,
|
|
251
|
+
n,
|
|
252
|
+
o,
|
|
253
|
+
a,
|
|
254
|
+
a
|
|
255
|
+
][c], d = [
|
|
256
|
+
a,
|
|
257
|
+
a,
|
|
258
|
+
s,
|
|
259
|
+
n,
|
|
260
|
+
n,
|
|
261
|
+
o
|
|
262
|
+
][c];
|
|
263
|
+
return {
|
|
264
|
+
r: l * 255,
|
|
265
|
+
g: u * 255,
|
|
266
|
+
b: d * 255
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
function U(e, t, n, r) {
|
|
270
|
+
let i = [
|
|
271
|
+
z(Math.round(e).toString(16)),
|
|
272
|
+
z(Math.round(t).toString(16)),
|
|
273
|
+
z(Math.round(n).toString(16))
|
|
274
|
+
];
|
|
275
|
+
return r && i[0].startsWith(i[0].charAt(1)) && i[1].startsWith(i[1].charAt(1)) && i[2].startsWith(i[2].charAt(1)) ? i[0].charAt(0) + i[1].charAt(0) + i[2].charAt(0) : i.join("");
|
|
276
|
+
}
|
|
277
|
+
function ce(e, t, n, r, i) {
|
|
278
|
+
let a = [
|
|
279
|
+
z(Math.round(e).toString(16)),
|
|
280
|
+
z(Math.round(t).toString(16)),
|
|
281
|
+
z(Math.round(n).toString(16)),
|
|
282
|
+
z(ue(r))
|
|
283
|
+
];
|
|
284
|
+
return i && a[0].startsWith(a[0].charAt(1)) && a[1].startsWith(a[1].charAt(1)) && a[2].startsWith(a[2].charAt(1)) && a[3].startsWith(a[3].charAt(1)) ? a[0].charAt(0) + a[1].charAt(0) + a[2].charAt(0) + a[3].charAt(0) : a.join("");
|
|
285
|
+
}
|
|
286
|
+
function le(e, t, n, r) {
|
|
287
|
+
let i = e / 100, a = t / 100, o = n / 100, s = r / 100;
|
|
288
|
+
return {
|
|
289
|
+
r: 255 * (1 - i) * (1 - s),
|
|
290
|
+
g: 255 * (1 - a) * (1 - s),
|
|
291
|
+
b: 255 * (1 - o) * (1 - s)
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
function W(e, t, n) {
|
|
295
|
+
let r = 1 - e / 255, i = 1 - t / 255, a = 1 - n / 255, o = Math.min(r, i, a);
|
|
296
|
+
return o === 1 ? (r = 0, i = 0, a = 0) : (r = (r - o) / (1 - o) * 100, i = (i - o) / (1 - o) * 100, a = (a - o) / (1 - o) * 100), o *= 100, {
|
|
297
|
+
c: Math.round(r),
|
|
298
|
+
m: Math.round(i),
|
|
299
|
+
y: Math.round(a),
|
|
300
|
+
k: Math.round(o)
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
function ue(e) {
|
|
304
|
+
return Math.round(parseFloat(e) * 255).toString(16);
|
|
305
|
+
}
|
|
306
|
+
function G(e) {
|
|
307
|
+
return K(e) / 255;
|
|
308
|
+
}
|
|
309
|
+
function K(e) {
|
|
310
|
+
return parseInt(e, 16);
|
|
311
|
+
}
|
|
312
|
+
function de(e) {
|
|
313
|
+
return {
|
|
314
|
+
r: e >> 16,
|
|
315
|
+
g: (e & 65280) >> 8,
|
|
316
|
+
b: e & 255
|
|
317
|
+
};
|
|
318
|
+
}
|
|
319
|
+
//#endregion
|
|
320
|
+
//#region node_modules/.pnpm/@ctrl+tinycolor@4.2.0/node_modules/@ctrl/tinycolor/dist/module/css-color-names.js
|
|
321
|
+
var q = {
|
|
322
|
+
aliceblue: "#f0f8ff",
|
|
323
|
+
antiquewhite: "#faebd7",
|
|
324
|
+
aqua: "#00ffff",
|
|
325
|
+
aquamarine: "#7fffd4",
|
|
326
|
+
azure: "#f0ffff",
|
|
327
|
+
beige: "#f5f5dc",
|
|
328
|
+
bisque: "#ffe4c4",
|
|
329
|
+
black: "#000000",
|
|
330
|
+
blanchedalmond: "#ffebcd",
|
|
331
|
+
blue: "#0000ff",
|
|
332
|
+
blueviolet: "#8a2be2",
|
|
333
|
+
brown: "#a52a2a",
|
|
334
|
+
burlywood: "#deb887",
|
|
335
|
+
cadetblue: "#5f9ea0",
|
|
336
|
+
chartreuse: "#7fff00",
|
|
337
|
+
chocolate: "#d2691e",
|
|
338
|
+
coral: "#ff7f50",
|
|
339
|
+
cornflowerblue: "#6495ed",
|
|
340
|
+
cornsilk: "#fff8dc",
|
|
341
|
+
crimson: "#dc143c",
|
|
342
|
+
cyan: "#00ffff",
|
|
343
|
+
darkblue: "#00008b",
|
|
344
|
+
darkcyan: "#008b8b",
|
|
345
|
+
darkgoldenrod: "#b8860b",
|
|
346
|
+
darkgray: "#a9a9a9",
|
|
347
|
+
darkgreen: "#006400",
|
|
348
|
+
darkgrey: "#a9a9a9",
|
|
349
|
+
darkkhaki: "#bdb76b",
|
|
350
|
+
darkmagenta: "#8b008b",
|
|
351
|
+
darkolivegreen: "#556b2f",
|
|
352
|
+
darkorange: "#ff8c00",
|
|
353
|
+
darkorchid: "#9932cc",
|
|
354
|
+
darkred: "#8b0000",
|
|
355
|
+
darksalmon: "#e9967a",
|
|
356
|
+
darkseagreen: "#8fbc8f",
|
|
357
|
+
darkslateblue: "#483d8b",
|
|
358
|
+
darkslategray: "#2f4f4f",
|
|
359
|
+
darkslategrey: "#2f4f4f",
|
|
360
|
+
darkturquoise: "#00ced1",
|
|
361
|
+
darkviolet: "#9400d3",
|
|
362
|
+
deeppink: "#ff1493",
|
|
363
|
+
deepskyblue: "#00bfff",
|
|
364
|
+
dimgray: "#696969",
|
|
365
|
+
dimgrey: "#696969",
|
|
366
|
+
dodgerblue: "#1e90ff",
|
|
367
|
+
firebrick: "#b22222",
|
|
368
|
+
floralwhite: "#fffaf0",
|
|
369
|
+
forestgreen: "#228b22",
|
|
370
|
+
fuchsia: "#ff00ff",
|
|
371
|
+
gainsboro: "#dcdcdc",
|
|
372
|
+
ghostwhite: "#f8f8ff",
|
|
373
|
+
goldenrod: "#daa520",
|
|
374
|
+
gold: "#ffd700",
|
|
375
|
+
gray: "#808080",
|
|
376
|
+
green: "#008000",
|
|
377
|
+
greenyellow: "#adff2f",
|
|
378
|
+
grey: "#808080",
|
|
379
|
+
honeydew: "#f0fff0",
|
|
380
|
+
hotpink: "#ff69b4",
|
|
381
|
+
indianred: "#cd5c5c",
|
|
382
|
+
indigo: "#4b0082",
|
|
383
|
+
ivory: "#fffff0",
|
|
384
|
+
khaki: "#f0e68c",
|
|
385
|
+
lavenderblush: "#fff0f5",
|
|
386
|
+
lavender: "#e6e6fa",
|
|
387
|
+
lawngreen: "#7cfc00",
|
|
388
|
+
lemonchiffon: "#fffacd",
|
|
389
|
+
lightblue: "#add8e6",
|
|
390
|
+
lightcoral: "#f08080",
|
|
391
|
+
lightcyan: "#e0ffff",
|
|
392
|
+
lightgoldenrodyellow: "#fafad2",
|
|
393
|
+
lightgray: "#d3d3d3",
|
|
394
|
+
lightgreen: "#90ee90",
|
|
395
|
+
lightgrey: "#d3d3d3",
|
|
396
|
+
lightpink: "#ffb6c1",
|
|
397
|
+
lightsalmon: "#ffa07a",
|
|
398
|
+
lightseagreen: "#20b2aa",
|
|
399
|
+
lightskyblue: "#87cefa",
|
|
400
|
+
lightslategray: "#778899",
|
|
401
|
+
lightslategrey: "#778899",
|
|
402
|
+
lightsteelblue: "#b0c4de",
|
|
403
|
+
lightyellow: "#ffffe0",
|
|
404
|
+
lime: "#00ff00",
|
|
405
|
+
limegreen: "#32cd32",
|
|
406
|
+
linen: "#faf0e6",
|
|
407
|
+
magenta: "#ff00ff",
|
|
408
|
+
maroon: "#800000",
|
|
409
|
+
mediumaquamarine: "#66cdaa",
|
|
410
|
+
mediumblue: "#0000cd",
|
|
411
|
+
mediumorchid: "#ba55d3",
|
|
412
|
+
mediumpurple: "#9370db",
|
|
413
|
+
mediumseagreen: "#3cb371",
|
|
414
|
+
mediumslateblue: "#7b68ee",
|
|
415
|
+
mediumspringgreen: "#00fa9a",
|
|
416
|
+
mediumturquoise: "#48d1cc",
|
|
417
|
+
mediumvioletred: "#c71585",
|
|
418
|
+
midnightblue: "#191970",
|
|
419
|
+
mintcream: "#f5fffa",
|
|
420
|
+
mistyrose: "#ffe4e1",
|
|
421
|
+
moccasin: "#ffe4b5",
|
|
422
|
+
navajowhite: "#ffdead",
|
|
423
|
+
navy: "#000080",
|
|
424
|
+
oldlace: "#fdf5e6",
|
|
425
|
+
olive: "#808000",
|
|
426
|
+
olivedrab: "#6b8e23",
|
|
427
|
+
orange: "#ffa500",
|
|
428
|
+
orangered: "#ff4500",
|
|
429
|
+
orchid: "#da70d6",
|
|
430
|
+
palegoldenrod: "#eee8aa",
|
|
431
|
+
palegreen: "#98fb98",
|
|
432
|
+
paleturquoise: "#afeeee",
|
|
433
|
+
palevioletred: "#db7093",
|
|
434
|
+
papayawhip: "#ffefd5",
|
|
435
|
+
peachpuff: "#ffdab9",
|
|
436
|
+
peru: "#cd853f",
|
|
437
|
+
pink: "#ffc0cb",
|
|
438
|
+
plum: "#dda0dd",
|
|
439
|
+
powderblue: "#b0e0e6",
|
|
440
|
+
purple: "#800080",
|
|
441
|
+
rebeccapurple: "#663399",
|
|
442
|
+
red: "#ff0000",
|
|
443
|
+
rosybrown: "#bc8f8f",
|
|
444
|
+
royalblue: "#4169e1",
|
|
445
|
+
saddlebrown: "#8b4513",
|
|
446
|
+
salmon: "#fa8072",
|
|
447
|
+
sandybrown: "#f4a460",
|
|
448
|
+
seagreen: "#2e8b57",
|
|
449
|
+
seashell: "#fff5ee",
|
|
450
|
+
sienna: "#a0522d",
|
|
451
|
+
silver: "#c0c0c0",
|
|
452
|
+
skyblue: "#87ceeb",
|
|
453
|
+
slateblue: "#6a5acd",
|
|
454
|
+
slategray: "#708090",
|
|
455
|
+
slategrey: "#708090",
|
|
456
|
+
snow: "#fffafa",
|
|
457
|
+
springgreen: "#00ff7f",
|
|
458
|
+
steelblue: "#4682b4",
|
|
459
|
+
tan: "#d2b48c",
|
|
460
|
+
teal: "#008080",
|
|
461
|
+
thistle: "#d8bfd8",
|
|
462
|
+
tomato: "#ff6347",
|
|
463
|
+
turquoise: "#40e0d0",
|
|
464
|
+
violet: "#ee82ee",
|
|
465
|
+
wheat: "#f5deb3",
|
|
466
|
+
white: "#ffffff",
|
|
467
|
+
whitesmoke: "#f5f5f5",
|
|
468
|
+
yellow: "#ffff00",
|
|
469
|
+
yellowgreen: "#9acd32"
|
|
470
|
+
};
|
|
471
|
+
//#endregion
|
|
472
|
+
//#region node_modules/.pnpm/@ctrl+tinycolor@4.2.0/node_modules/@ctrl/tinycolor/dist/module/format-input.js
|
|
473
|
+
function fe(e) {
|
|
474
|
+
let t = {
|
|
475
|
+
r: 0,
|
|
476
|
+
g: 0,
|
|
477
|
+
b: 0
|
|
478
|
+
}, n = 1, r = null, i = null, a = null, o = !1, s = !1;
|
|
479
|
+
return typeof e == "string" && (e = pe(e)), typeof e == "object" && (Q(e.r) && Q(e.g) && Q(e.b) ? (t = ae(e.r, e.g, e.b), o = !0, s = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : Q(e.h) && Q(e.s) && Q(e.v) ? (r = R(e.s), i = R(e.v), t = se(e.h, r, i), o = !0, s = "hsv") : Q(e.h) && Q(e.s) && Q(e.l) ? (r = R(e.s), a = R(e.l), t = oe(e.h, r, a), o = !0, s = "hsl") : Q(e.c) && Q(e.m) && Q(e.y) && Q(e.k) && (t = le(e.c, e.m, e.y, e.k), o = !0, s = "cmyk"), Object.prototype.hasOwnProperty.call(e, "a") && (n = e.a)), n = L(n), {
|
|
480
|
+
ok: o,
|
|
481
|
+
format: e.format || s,
|
|
482
|
+
r: Math.min(255, Math.max(t.r, 0)),
|
|
483
|
+
g: Math.min(255, Math.max(t.g, 0)),
|
|
484
|
+
b: Math.min(255, Math.max(t.b, 0)),
|
|
485
|
+
a: n
|
|
486
|
+
};
|
|
487
|
+
}
|
|
488
|
+
var J = "(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)", Y = "[\\s|\\(]+(" + J + ")[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))\\s*\\)?", X = "[\\s|\\(]+(" + J + ")[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))\\s*\\)?", Z = {
|
|
489
|
+
CSS_UNIT: new RegExp(J),
|
|
490
|
+
rgb: RegExp("rgb" + Y),
|
|
491
|
+
rgba: RegExp("rgba" + X),
|
|
492
|
+
hsl: RegExp("hsl" + Y),
|
|
493
|
+
hsla: RegExp("hsla" + X),
|
|
494
|
+
hsv: RegExp("hsv" + Y),
|
|
495
|
+
hsva: RegExp("hsva" + X),
|
|
496
|
+
cmyk: RegExp("cmyk" + X),
|
|
497
|
+
hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
498
|
+
hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
|
|
499
|
+
hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
500
|
+
hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
|
|
501
|
+
};
|
|
502
|
+
function pe(e) {
|
|
503
|
+
if (e = e.trim().toLowerCase(), e.length === 0) return !1;
|
|
504
|
+
let t = !1;
|
|
505
|
+
if (q[e]) e = q[e], t = !0;
|
|
506
|
+
else if (e === "transparent") return {
|
|
507
|
+
r: 0,
|
|
508
|
+
g: 0,
|
|
509
|
+
b: 0,
|
|
510
|
+
a: 0,
|
|
511
|
+
format: "name"
|
|
512
|
+
};
|
|
513
|
+
let n = Z.rgb.exec(e);
|
|
514
|
+
return n ? {
|
|
515
|
+
r: n[1],
|
|
516
|
+
g: n[2],
|
|
517
|
+
b: n[3]
|
|
518
|
+
} : (n = Z.rgba.exec(e), n ? {
|
|
519
|
+
r: n[1],
|
|
520
|
+
g: n[2],
|
|
521
|
+
b: n[3],
|
|
522
|
+
a: n[4]
|
|
523
|
+
} : (n = Z.hsl.exec(e), n ? {
|
|
524
|
+
h: n[1],
|
|
525
|
+
s: n[2],
|
|
526
|
+
l: n[3]
|
|
527
|
+
} : (n = Z.hsla.exec(e), n ? {
|
|
528
|
+
h: n[1],
|
|
529
|
+
s: n[2],
|
|
530
|
+
l: n[3],
|
|
531
|
+
a: n[4]
|
|
532
|
+
} : (n = Z.hsv.exec(e), n ? {
|
|
533
|
+
h: n[1],
|
|
534
|
+
s: n[2],
|
|
535
|
+
v: n[3]
|
|
536
|
+
} : (n = Z.hsva.exec(e), n ? {
|
|
537
|
+
h: n[1],
|
|
538
|
+
s: n[2],
|
|
539
|
+
v: n[3],
|
|
540
|
+
a: n[4]
|
|
541
|
+
} : (n = Z.cmyk.exec(e), n ? {
|
|
542
|
+
c: n[1],
|
|
543
|
+
m: n[2],
|
|
544
|
+
y: n[3],
|
|
545
|
+
k: n[4]
|
|
546
|
+
} : (n = Z.hex8.exec(e), n ? {
|
|
547
|
+
r: K(n[1]),
|
|
548
|
+
g: K(n[2]),
|
|
549
|
+
b: K(n[3]),
|
|
550
|
+
a: G(n[4]),
|
|
551
|
+
format: t ? "name" : "hex8"
|
|
552
|
+
} : (n = Z.hex6.exec(e), n ? {
|
|
553
|
+
r: K(n[1]),
|
|
554
|
+
g: K(n[2]),
|
|
555
|
+
b: K(n[3]),
|
|
556
|
+
format: t ? "name" : "hex"
|
|
557
|
+
} : (n = Z.hex4.exec(e), n ? {
|
|
558
|
+
r: K(n[1] + n[1]),
|
|
559
|
+
g: K(n[2] + n[2]),
|
|
560
|
+
b: K(n[3] + n[3]),
|
|
561
|
+
a: G(n[4] + n[4]),
|
|
562
|
+
format: t ? "name" : "hex8"
|
|
563
|
+
} : (n = Z.hex3.exec(e), n ? {
|
|
564
|
+
r: K(n[1] + n[1]),
|
|
565
|
+
g: K(n[2] + n[2]),
|
|
566
|
+
b: K(n[3] + n[3]),
|
|
567
|
+
format: t ? "name" : "hex"
|
|
568
|
+
} : !1))))))))));
|
|
569
|
+
}
|
|
570
|
+
function Q(e) {
|
|
571
|
+
return typeof e == "number" ? !Number.isNaN(e) : Z.CSS_UNIT.test(e);
|
|
572
|
+
}
|
|
573
|
+
//#endregion
|
|
574
|
+
//#region node_modules/.pnpm/@ctrl+tinycolor@4.2.0/node_modules/@ctrl/tinycolor/dist/module/index.js
|
|
575
|
+
var me = class e {
|
|
576
|
+
constructor(t = "", n = {}) {
|
|
577
|
+
if (t instanceof e) return t;
|
|
578
|
+
typeof t == "number" && (t = de(t)), this.originalInput = t;
|
|
579
|
+
let r = fe(t);
|
|
580
|
+
this.originalInput = t, this.r = r.r, this.g = r.g, this.b = r.b, this.a = r.a, this.roundA = Math.round(100 * this.a) / 100, this.format = n.format ?? r.format, this.gradientType = n.gradientType, this.r < 1 && (this.r = Math.round(this.r)), this.g < 1 && (this.g = Math.round(this.g)), this.b < 1 && (this.b = Math.round(this.b)), this.isValid = r.ok;
|
|
581
|
+
}
|
|
582
|
+
isDark() {
|
|
583
|
+
return this.getBrightness() < 128;
|
|
584
|
+
}
|
|
585
|
+
isLight() {
|
|
586
|
+
return !this.isDark();
|
|
587
|
+
}
|
|
588
|
+
getBrightness() {
|
|
589
|
+
let e = this.toRgb();
|
|
590
|
+
return (e.r * 299 + e.g * 587 + e.b * 114) / 1e3;
|
|
591
|
+
}
|
|
592
|
+
getLuminance() {
|
|
593
|
+
let e = this.toRgb(), t, n, r, i = e.r / 255, a = e.g / 255, o = e.b / 255;
|
|
594
|
+
return t = i <= .03928 ? i / 12.92 : ((i + .055) / 1.055) ** 2.4, n = a <= .03928 ? a / 12.92 : ((a + .055) / 1.055) ** 2.4, r = o <= .03928 ? o / 12.92 : ((o + .055) / 1.055) ** 2.4, .2126 * t + .7152 * n + .0722 * r;
|
|
595
|
+
}
|
|
596
|
+
getAlpha() {
|
|
597
|
+
return this.a;
|
|
598
|
+
}
|
|
599
|
+
setAlpha(e) {
|
|
600
|
+
return this.a = L(e), this.roundA = Math.round(100 * this.a) / 100, this;
|
|
601
|
+
}
|
|
602
|
+
isMonochrome() {
|
|
603
|
+
let { s: e } = this.toHsl();
|
|
604
|
+
return e === 0;
|
|
605
|
+
}
|
|
606
|
+
toHsv() {
|
|
607
|
+
let e = H(this.r, this.g, this.b);
|
|
608
|
+
return {
|
|
609
|
+
h: e.h * 360,
|
|
610
|
+
s: e.s,
|
|
611
|
+
v: e.v,
|
|
612
|
+
a: this.a
|
|
613
|
+
};
|
|
614
|
+
}
|
|
615
|
+
toHsvString() {
|
|
616
|
+
let e = H(this.r, this.g, this.b), t = Math.round(e.h * 360), n = Math.round(e.s * 100), r = Math.round(e.v * 100);
|
|
617
|
+
return this.a === 1 ? `hsv(${t}, ${n}%, ${r}%)` : `hsva(${t}, ${n}%, ${r}%, ${this.roundA})`;
|
|
618
|
+
}
|
|
619
|
+
toHsl() {
|
|
620
|
+
let e = B(this.r, this.g, this.b);
|
|
621
|
+
return {
|
|
622
|
+
h: e.h * 360,
|
|
623
|
+
s: e.s,
|
|
624
|
+
l: e.l,
|
|
625
|
+
a: this.a
|
|
626
|
+
};
|
|
627
|
+
}
|
|
628
|
+
toHslString() {
|
|
629
|
+
let e = B(this.r, this.g, this.b), t = Math.round(e.h * 360), n = Math.round(e.s * 100), r = Math.round(e.l * 100);
|
|
630
|
+
return this.a === 1 ? `hsl(${t}, ${n}%, ${r}%)` : `hsla(${t}, ${n}%, ${r}%, ${this.roundA})`;
|
|
631
|
+
}
|
|
632
|
+
toHex(e = !1) {
|
|
633
|
+
return U(this.r, this.g, this.b, e);
|
|
634
|
+
}
|
|
635
|
+
toHexString(e = !1) {
|
|
636
|
+
return "#" + this.toHex(e);
|
|
637
|
+
}
|
|
638
|
+
toHex8(e = !1) {
|
|
639
|
+
return ce(this.r, this.g, this.b, this.a, e);
|
|
640
|
+
}
|
|
641
|
+
toHex8String(e = !1) {
|
|
642
|
+
return "#" + this.toHex8(e);
|
|
643
|
+
}
|
|
644
|
+
toHexShortString(e = !1) {
|
|
645
|
+
return this.a === 1 ? this.toHexString(e) : this.toHex8String(e);
|
|
646
|
+
}
|
|
647
|
+
toRgb() {
|
|
648
|
+
return {
|
|
649
|
+
r: Math.round(this.r),
|
|
650
|
+
g: Math.round(this.g),
|
|
651
|
+
b: Math.round(this.b),
|
|
652
|
+
a: this.a
|
|
653
|
+
};
|
|
654
|
+
}
|
|
655
|
+
toRgbString() {
|
|
656
|
+
let e = Math.round(this.r), t = Math.round(this.g), n = Math.round(this.b);
|
|
657
|
+
return this.a === 1 ? `rgb(${e}, ${t}, ${n})` : `rgba(${e}, ${t}, ${n}, ${this.roundA})`;
|
|
658
|
+
}
|
|
659
|
+
toPercentageRgb() {
|
|
660
|
+
let e = (e) => `${Math.round(F(e, 255) * 100)}%`;
|
|
661
|
+
return {
|
|
662
|
+
r: e(this.r),
|
|
663
|
+
g: e(this.g),
|
|
664
|
+
b: e(this.b),
|
|
665
|
+
a: this.a
|
|
666
|
+
};
|
|
667
|
+
}
|
|
668
|
+
toPercentageRgbString() {
|
|
669
|
+
let e = (e) => Math.round(F(e, 255) * 100);
|
|
670
|
+
return this.a === 1 ? `rgb(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%)` : `rgba(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%, ${this.roundA})`;
|
|
671
|
+
}
|
|
672
|
+
toCmyk() {
|
|
673
|
+
return { ...W(this.r, this.g, this.b) };
|
|
674
|
+
}
|
|
675
|
+
toCmykString() {
|
|
676
|
+
let { c: e, m: t, y: n, k: r } = W(this.r, this.g, this.b);
|
|
677
|
+
return `cmyk(${e}, ${t}, ${n}, ${r})`;
|
|
678
|
+
}
|
|
679
|
+
toName() {
|
|
680
|
+
if (this.a === 0) return "transparent";
|
|
681
|
+
if (this.a < 1) return !1;
|
|
682
|
+
let e = "#" + U(this.r, this.g, this.b, !1);
|
|
683
|
+
for (let [t, n] of Object.entries(q)) if (e === n) return t;
|
|
684
|
+
return !1;
|
|
685
|
+
}
|
|
686
|
+
toString(e) {
|
|
687
|
+
let t = !!e;
|
|
688
|
+
e = e ?? this.format;
|
|
689
|
+
let n = !1, r = this.a < 1 && this.a >= 0;
|
|
690
|
+
return !t && r && (e.startsWith("hex") || e === "name") ? e === "name" && this.a === 0 ? this.toName() : this.toRgbString() : (e === "rgb" && (n = this.toRgbString()), e === "prgb" && (n = this.toPercentageRgbString()), (e === "hex" || e === "hex6") && (n = this.toHexString()), e === "hex3" && (n = this.toHexString(!0)), e === "hex4" && (n = this.toHex8String(!0)), e === "hex8" && (n = this.toHex8String()), e === "name" && (n = this.toName()), e === "hsl" && (n = this.toHslString()), e === "hsv" && (n = this.toHsvString()), e === "cmyk" && (n = this.toCmykString()), n || this.toHexString());
|
|
691
|
+
}
|
|
692
|
+
toNumber() {
|
|
693
|
+
return (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b);
|
|
694
|
+
}
|
|
695
|
+
clone() {
|
|
696
|
+
return new e(this.toString());
|
|
697
|
+
}
|
|
698
|
+
lighten(t = 10) {
|
|
699
|
+
let n = this.toHsl();
|
|
700
|
+
return n.l += t / 100, n.l = I(n.l), new e(n);
|
|
701
|
+
}
|
|
702
|
+
brighten(t = 10) {
|
|
703
|
+
let n = this.toRgb();
|
|
704
|
+
return n.r = Math.max(0, Math.min(255, n.r - Math.round(255 * -(t / 100)))), n.g = Math.max(0, Math.min(255, n.g - Math.round(255 * -(t / 100)))), n.b = Math.max(0, Math.min(255, n.b - Math.round(255 * -(t / 100)))), new e(n);
|
|
705
|
+
}
|
|
706
|
+
darken(t = 10) {
|
|
707
|
+
let n = this.toHsl();
|
|
708
|
+
return n.l -= t / 100, n.l = I(n.l), new e(n);
|
|
709
|
+
}
|
|
710
|
+
tint(e = 10) {
|
|
711
|
+
return this.mix("white", e);
|
|
712
|
+
}
|
|
713
|
+
shade(e = 10) {
|
|
714
|
+
return this.mix("black", e);
|
|
715
|
+
}
|
|
716
|
+
desaturate(t = 10) {
|
|
717
|
+
let n = this.toHsl();
|
|
718
|
+
return n.s -= t / 100, n.s = I(n.s), new e(n);
|
|
719
|
+
}
|
|
720
|
+
saturate(t = 10) {
|
|
721
|
+
let n = this.toHsl();
|
|
722
|
+
return n.s += t / 100, n.s = I(n.s), new e(n);
|
|
723
|
+
}
|
|
724
|
+
greyscale() {
|
|
725
|
+
return this.desaturate(100);
|
|
726
|
+
}
|
|
727
|
+
spin(t) {
|
|
728
|
+
let n = this.toHsl(), r = (n.h + t) % 360;
|
|
729
|
+
return n.h = r < 0 ? 360 + r : r, new e(n);
|
|
730
|
+
}
|
|
731
|
+
mix(t, n = 50) {
|
|
732
|
+
let r = this.toRgb(), i = new e(t).toRgb(), a = n / 100;
|
|
733
|
+
return new e({
|
|
734
|
+
r: (i.r - r.r) * a + r.r,
|
|
735
|
+
g: (i.g - r.g) * a + r.g,
|
|
736
|
+
b: (i.b - r.b) * a + r.b,
|
|
737
|
+
a: (i.a - r.a) * a + r.a
|
|
738
|
+
});
|
|
739
|
+
}
|
|
740
|
+
analogous(t = 6, n = 30) {
|
|
741
|
+
let r = this.toHsl(), i = 360 / n, a = [this];
|
|
742
|
+
for (r.h = (r.h - (i * t >> 1) + 720) % 360; --t;) r.h = (r.h + i) % 360, a.push(new e(r));
|
|
743
|
+
return a;
|
|
744
|
+
}
|
|
745
|
+
complement() {
|
|
746
|
+
let t = this.toHsl();
|
|
747
|
+
return t.h = (t.h + 180) % 360, new e(t);
|
|
748
|
+
}
|
|
749
|
+
monochromatic(t = 6) {
|
|
750
|
+
let n = this.toHsv(), { h: r } = n, { s: i } = n, { v: a } = n, o = [], s = 1 / t;
|
|
751
|
+
for (; t--;) o.push(new e({
|
|
752
|
+
h: r,
|
|
753
|
+
s: i,
|
|
754
|
+
v: a
|
|
755
|
+
})), a = (a + s) % 1;
|
|
756
|
+
return o;
|
|
757
|
+
}
|
|
758
|
+
splitcomplement() {
|
|
759
|
+
let t = this.toHsl(), { h: n } = t;
|
|
760
|
+
return [
|
|
761
|
+
this,
|
|
762
|
+
new e({
|
|
763
|
+
h: (n + 72) % 360,
|
|
764
|
+
s: t.s,
|
|
765
|
+
l: t.l
|
|
766
|
+
}),
|
|
767
|
+
new e({
|
|
768
|
+
h: (n + 216) % 360,
|
|
769
|
+
s: t.s,
|
|
770
|
+
l: t.l
|
|
771
|
+
})
|
|
772
|
+
];
|
|
773
|
+
}
|
|
774
|
+
onBackground(t) {
|
|
775
|
+
let n = this.toRgb(), r = new e(t).toRgb(), i = n.a + r.a * (1 - n.a);
|
|
776
|
+
return new e({
|
|
777
|
+
r: (n.r * n.a + r.r * r.a * (1 - n.a)) / i,
|
|
778
|
+
g: (n.g * n.a + r.g * r.a * (1 - n.a)) / i,
|
|
779
|
+
b: (n.b * n.a + r.b * r.a * (1 - n.a)) / i,
|
|
780
|
+
a: i
|
|
781
|
+
});
|
|
782
|
+
}
|
|
783
|
+
triad() {
|
|
784
|
+
return this.polyad(3);
|
|
785
|
+
}
|
|
786
|
+
tetrad() {
|
|
787
|
+
return this.polyad(4);
|
|
788
|
+
}
|
|
789
|
+
polyad(t) {
|
|
790
|
+
let n = this.toHsl(), { h: r } = n, i = [this], a = 360 / t;
|
|
791
|
+
for (let o = 1; o < t; o++) i.push(new e({
|
|
792
|
+
h: (r + o * a) % 360,
|
|
793
|
+
s: n.s,
|
|
794
|
+
l: n.l
|
|
795
|
+
}));
|
|
796
|
+
return i;
|
|
797
|
+
}
|
|
798
|
+
equals(t) {
|
|
799
|
+
let n = new e(t);
|
|
800
|
+
return this.format === "cmyk" || n.format === "cmyk" ? this.toCmykString() === n.toCmykString() : this.toRgbString() === n.toRgbString();
|
|
801
|
+
}
|
|
802
|
+
};
|
|
803
|
+
//#endregion
|
|
804
|
+
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/button/src/button-custom.mjs
|
|
805
|
+
function $(e, t = 20) {
|
|
806
|
+
return e.mix("#141414", t).toString();
|
|
807
|
+
}
|
|
808
|
+
function he(e) {
|
|
809
|
+
let n = c(), r = t("button");
|
|
810
|
+
return g(() => {
|
|
811
|
+
let t = {}, i = e.color;
|
|
812
|
+
if (i) {
|
|
813
|
+
let a = i.match(/var\((.*?)\)/);
|
|
814
|
+
a && (i = window.getComputedStyle(window.document.documentElement).getPropertyValue(a[1]));
|
|
815
|
+
let o = new me(i), s = e.dark ? o.tint(20).toString() : $(o, 20);
|
|
816
|
+
if (e.plain) t = r.cssVarBlock({
|
|
817
|
+
"bg-color": e.dark ? $(o, 90) : o.tint(90).toString(),
|
|
818
|
+
"text-color": i,
|
|
819
|
+
"border-color": e.dark ? $(o, 50) : o.tint(50).toString(),
|
|
820
|
+
"hover-text-color": `var(${r.cssVarName("color-white")})`,
|
|
821
|
+
"hover-bg-color": i,
|
|
822
|
+
"hover-border-color": i,
|
|
823
|
+
"active-bg-color": s,
|
|
824
|
+
"active-text-color": `var(${r.cssVarName("color-white")})`,
|
|
825
|
+
"active-border-color": s
|
|
826
|
+
}), n.value && (t[r.cssVarBlockName("disabled-bg-color")] = e.dark ? $(o, 90) : o.tint(90).toString(), t[r.cssVarBlockName("disabled-text-color")] = e.dark ? $(o, 50) : o.tint(50).toString(), t[r.cssVarBlockName("disabled-border-color")] = e.dark ? $(o, 80) : o.tint(80).toString());
|
|
827
|
+
else {
|
|
828
|
+
let a = e.dark ? $(o, 30) : o.tint(30).toString(), c = o.isDark() ? `var(${r.cssVarName("color-white")})` : `var(${r.cssVarName("color-black")})`;
|
|
829
|
+
if (t = r.cssVarBlock({
|
|
830
|
+
"bg-color": i,
|
|
831
|
+
"text-color": c,
|
|
832
|
+
"border-color": i,
|
|
833
|
+
"hover-bg-color": a,
|
|
834
|
+
"hover-text-color": c,
|
|
835
|
+
"hover-border-color": a,
|
|
836
|
+
"active-bg-color": s,
|
|
837
|
+
"active-border-color": s
|
|
838
|
+
}), n.value) {
|
|
839
|
+
let n = e.dark ? $(o, 50) : o.tint(50).toString();
|
|
840
|
+
t[r.cssVarBlockName("disabled-bg-color")] = n, t[r.cssVarBlockName("disabled-text-color")] = e.dark ? "rgba(255, 255, 255, 0.5)" : `var(${r.cssVarName("color-white")})`, t[r.cssVarBlockName("disabled-border-color")] = n;
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
return t;
|
|
845
|
+
});
|
|
846
|
+
}
|
|
847
|
+
//#endregion
|
|
848
|
+
//#region node_modules/.pnpm/element-plus@2.13.6_typescr_b86181ecd25892dfea09546870d44c51/node_modules/element-plus/es/components/button/src/button2.mjs
|
|
849
|
+
var ge = /* @__PURE__ */ b({
|
|
850
|
+
name: "ElButton",
|
|
851
|
+
__name: "button",
|
|
852
|
+
props: N,
|
|
853
|
+
emits: te,
|
|
854
|
+
setup(e, { expose: n, emit: r }) {
|
|
855
|
+
let i = e, a = r, o = he(i), s = t("button"), { _ref: c, _size: l, _type: u, _disabled: f, _props: p, _plain: h, _round: b, _text: x, _dashed: T, shouldAddSpace: E, handleClick: D } = ne(i, a), A = g(() => [
|
|
856
|
+
s.b(),
|
|
857
|
+
s.m(u.value),
|
|
858
|
+
s.m(l.value),
|
|
859
|
+
s.is("disabled", f.value),
|
|
860
|
+
s.is("loading", i.loading),
|
|
861
|
+
s.is("plain", h.value),
|
|
862
|
+
s.is("round", b.value),
|
|
863
|
+
s.is("circle", i.circle),
|
|
864
|
+
s.is("text", x.value),
|
|
865
|
+
s.is("dashed", T.value),
|
|
866
|
+
s.is("link", i.link),
|
|
867
|
+
s.is("has-bg", i.bg)
|
|
868
|
+
]);
|
|
869
|
+
return n({
|
|
870
|
+
ref: c,
|
|
871
|
+
size: l,
|
|
872
|
+
type: u,
|
|
873
|
+
disabled: f,
|
|
874
|
+
shouldAddSpace: E
|
|
875
|
+
}), (t, n) => (w(), _(k(e.tag), S({
|
|
876
|
+
ref_key: "_ref",
|
|
877
|
+
ref: c
|
|
878
|
+
}, j(p), {
|
|
879
|
+
class: A.value,
|
|
880
|
+
style: j(o),
|
|
881
|
+
onClick: j(D)
|
|
882
|
+
}), {
|
|
883
|
+
default: M(() => [e.loading ? (w(), y(m, { key: 0 }, [t.$slots.loading ? O(t.$slots, "loading", { key: 0 }) : (w(), _(j(d), {
|
|
884
|
+
key: 1,
|
|
885
|
+
class: C(j(s).is("loading"))
|
|
886
|
+
}, {
|
|
887
|
+
default: M(() => [(w(), _(k(e.loadingIcon)))]),
|
|
888
|
+
_: 1
|
|
889
|
+
}, 8, ["class"]))], 64)) : e.icon || t.$slots.icon ? (w(), _(j(d), { key: 1 }, {
|
|
890
|
+
default: M(() => [e.icon ? (w(), _(k(e.icon), { key: 0 })) : O(t.$slots, "icon", { key: 1 })]),
|
|
891
|
+
_: 3
|
|
892
|
+
})) : v("v-if", !0), t.$slots.default ? (w(), y("span", {
|
|
893
|
+
key: 2,
|
|
894
|
+
class: C({ [j(s).em("text", "expand")]: j(E) })
|
|
895
|
+
}, [O(t.$slots, "default")], 2)) : v("v-if", !0)]),
|
|
896
|
+
_: 3
|
|
897
|
+
}, 16, [
|
|
898
|
+
"class",
|
|
899
|
+
"style",
|
|
900
|
+
"onClick"
|
|
901
|
+
]));
|
|
902
|
+
}
|
|
903
|
+
}), _e = /* @__PURE__ */ b({
|
|
904
|
+
name: "ElButtonGroup",
|
|
905
|
+
__name: "button-group",
|
|
906
|
+
props: {
|
|
907
|
+
size: N.size,
|
|
908
|
+
type: N.type,
|
|
909
|
+
direction: {
|
|
910
|
+
type: i(String),
|
|
911
|
+
values: ["horizontal", "vertical"],
|
|
912
|
+
default: "horizontal"
|
|
913
|
+
}
|
|
914
|
+
},
|
|
915
|
+
setup(e) {
|
|
916
|
+
let n = e;
|
|
917
|
+
T(P, E({
|
|
918
|
+
size: A(n, "size"),
|
|
919
|
+
type: A(n, "type")
|
|
920
|
+
}));
|
|
921
|
+
let r = t("button");
|
|
922
|
+
return (e, t) => (w(), y("div", { class: C([j(r).b("group"), j(r).bm("group", n.direction)]) }, [O(e.$slots, "default")], 2));
|
|
923
|
+
}
|
|
924
|
+
}), ve = r(ge, { ButtonGroup: _e });
|
|
925
|
+
n(_e);
|
|
926
|
+
//#endregion
|
|
927
|
+
export { ve as t };
|