st-comp 0.0.208 → 0.0.209
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/es/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +74 -1
- package/es/CustomFunction.cjs +1 -1
- package/es/CustomFunction.js +56 -53
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +48 -45
- package/es/HeatMap.cjs +1 -1
- package/es/HeatMap.js +118 -1
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +90 -87
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +28 -25
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +164 -161
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +114 -111
- package/es/KlinePlus.cjs +2 -2
- package/es/KlinePlus.js +183 -180
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +143 -140
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +3 -2
- package/es/Table.cjs +1 -1
- package/es/Table.js +58 -55
- package/es/User.cjs +1 -1
- package/es/User.js +88 -85
- package/es/VarSelectDialog.cjs +2 -2
- package/es/VarSelectDialog.js +56 -53
- package/es/VarietyAutoComplete.cjs +1 -1
- package/es/VarietyAutoComplete.js +17 -15
- package/es/VarietySearch.cjs +10 -10
- package/es/VarietySearch.js +56 -53
- package/es/VarietyTextCopy.cjs +3 -3
- package/es/VarietyTextCopy.js +34 -31
- package/es/VirtualTable.cjs +1 -1
- package/es/VirtualTable.js +106 -103
- package/es/_initCloneObject-52b6a510.cjs +1 -0
- package/es/{_initCloneObject-c477c74d.js → _initCloneObject-eaef9418.js} +26 -25
- package/es/base-a5af3db3.js +288 -0
- package/es/base-ef747d02.cjs +5 -0
- package/es/castArray-35947698.cjs +1 -0
- package/es/{castArray-1eb17278.js → castArray-7741a212.js} +1 -1
- package/es/{config-provider-18c0a68a.cjs → config-provider-a584d81e.cjs} +1 -1
- package/es/{config-provider-49c17381.js → config-provider-b16efd62.js} +6 -6
- package/es/debounce-62f5b6e8.cjs +1 -0
- package/es/{debounce-33406a0d.js → debounce-8d53f4dd.js} +9 -9
- package/es/{dropdown-3f1fe325.cjs → dropdown-071c5d7e.cjs} +1 -1
- package/es/{dropdown-6e7b1df0.js → dropdown-a59bba73.js} +15 -15
- package/es/el-autocomplete-a07e9439.cjs +1 -0
- package/es/{el-autocomplete-87b7f461.js → el-autocomplete-ba808eb6.js} +53 -51
- package/es/{el-button-56624e61.js → el-button-c95adb85.js} +46 -45
- package/es/el-button-eec58cff.cjs +1 -0
- package/es/{el-checkbox-f13560e9.js → el-checkbox-7421ccd3.js} +40 -40
- package/es/{el-checkbox-09f3b57f.cjs → el-checkbox-c25236a6.cjs} +1 -1
- package/es/{el-dialog-1d5f5877.js → el-dialog-41ab8417.js} +10 -9
- package/es/el-dialog-ae86edb8.cjs +1 -0
- package/es/{el-divider-8a4c87e3.cjs → el-divider-4713d74c.cjs} +1 -1
- package/es/{el-divider-1cda1783.js → el-divider-4e059794.js} +1 -1
- package/es/el-empty-1697ded8.cjs +1 -0
- package/es/{el-empty-04682b5d.js → el-empty-33cb66f1.js} +3 -3
- package/es/el-form-item-c3fe189b.cjs +12 -0
- package/es/{el-form-item-505c0b70.js → el-form-item-c53c374d.js} +76 -75
- package/es/{el-input-262851e8.js → el-input-2f75c4ba.js} +85 -84
- package/es/el-input-7fd293af.cjs +1 -0
- package/es/el-input-number-22e21d16.cjs +1 -0
- package/es/{el-input-number-fdac2b86.js → el-input-number-5193fe6d.js} +83 -82
- package/es/{el-loading-3cf7b796.cjs → el-loading-cfd86c15.cjs} +1 -1
- package/es/{el-loading-7440dc64.js → el-loading-f6022062.js} +2 -2
- package/es/el-menu-item-17dc717e.cjs +1 -0
- package/es/{el-menu-item-36c3004c.js → el-menu-item-7e881203.js} +54 -53
- package/es/el-message-5e6a6be9.cjs +1 -0
- package/es/{el-message-box-8f5e34ca.js → el-message-box-a93d2f6a.js} +22 -20
- package/es/el-message-box-c10adb52.cjs +1 -0
- package/es/{el-message-416bd265.js → el-message-e544a8f5.js} +29 -28
- package/es/{el-overlay-04426e36.js → el-overlay-09ad71cd.js} +53 -52
- package/es/el-overlay-9e34965f.cjs +1 -0
- package/es/el-popconfirm-70a976bf.cjs +1 -0
- package/es/{el-popconfirm-3790cda2.js → el-popconfirm-81dcd202.js} +39 -38
- package/es/{el-popper-49152708.js → el-popper-b4f97157.js} +192 -191
- package/es/el-popper-b6c99b28.cjs +1 -0
- package/es/{el-segmented-05509f9d.js → el-segmented-b868d074.js} +13 -12
- package/es/el-segmented-f8fce9ac.cjs +1 -0
- package/es/{el-select-700f3686.js → el-select-95627997.js} +295 -292
- package/es/el-select-d8d91db1.cjs +1 -0
- package/es/{el-table-column-44360700.js → el-table-column-376cd907.js} +57 -54
- package/es/el-table-column-c974cb96.cjs +14 -0
- package/es/{el-tag-55a172c9.js → el-tag-66cab138.js} +31 -30
- package/es/el-tag-a33c4b22.cjs +1 -0
- package/es/{el-text-ab6bfc40.js → el-text-ac60d0f2.js} +4 -4
- package/es/{el-text-5bcaffb6.cjs → el-text-c20a9f48.cjs} +1 -1
- package/es/index-098c2447.cjs +1 -0
- package/es/{index-d8294b1a.cjs → index-11547a0c.cjs} +1 -1
- package/es/{index-0afedcbd.js → index-1f7d4f70.js} +12 -11
- package/es/{index-ae6c9d97.cjs → index-298075cf.cjs} +1 -1
- package/es/{index-4e46f96c.js → index-57672682.js} +13 -12
- package/es/{index-66ad0d6a.js → index-844bdd85.js} +34 -34
- package/es/{index-29418a8d.js → index-88546436.js} +18 -18
- package/es/index-960806da.js +314 -0
- package/es/index-9780a537.cjs +1 -0
- package/es/index-9b9ef5dd.cjs +1 -0
- package/es/{base-aa512893.js → index-a871c3eb.js} +171 -454
- package/es/index-bb833443.cjs +1 -0
- package/es/index-c108567d.cjs +1 -0
- package/es/index-d77a7336.js +204 -0
- package/es/{index-cbbd78b4.js → index-d91dc23f.js} +12 -12
- package/es/index-e5566b94.js +368 -0
- package/es/index-f3562b52.cjs +1 -0
- package/es/{index-882d77d3.cjs → index-f967d6c1.cjs} +1 -1
- package/es/raf-80ef0c0a.js +6 -0
- package/es/{raf-336ef01e.cjs → raf-8249652f.cjs} +1 -1
- package/es/{scroll-0a48995c.js → scroll-679bd6bf.js} +5 -5
- package/es/{scroll-19533c53.cjs → scroll-b108dabd.cjs} +1 -1
- package/es/style.css +1 -1
- package/es/use-form-common-props-815d48a6.js +364 -0
- package/es/use-form-common-props-fd9b61a0.cjs +1 -0
- package/es/use-global-config-30d7d8ce.cjs +1 -0
- package/es/use-global-config-b5e9d3d5.js +72 -0
- package/es/{validator-28b22907.cjs → validator-1b8a6128.cjs} +1 -1
- package/es/{validator-e35f7978.js → validator-764a9db0.js} +1 -1
- package/es/{vnode-b62d0045.js → vnode-5ddb7ed1.js} +1 -1
- package/es/{vnode-8cb31692.cjs → vnode-b906ae6d.cjs} +1 -1
- package/es/{zh-cn-7c8640bb.cjs → zh-cn-90317f62.cjs} +1 -1
- package/es/{zh-cn-346f3a73.js → zh-cn-e963c628.js} +2 -2
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +105 -105
- package/lib/{index-da0f2951.js → index-e158c3d6.js} +1529 -1529
- package/lib/{python-c0a1e4ef.js → python-57033756.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/Kline/componentsNew/KlineTips/index.vue +4 -4
- package/packages/Kline/index.vue +4 -4
- package/packages/KlineNew/components/KlineTips/index.vue +8 -8
- package/packages/KlinePlus/index.vue +4 -4
- package/src/pages/KlineBasic/api.js +1 -1
- package/es/_initCloneObject-e660897e.cjs +0 -1
- package/es/base-7ba08794.cjs +0 -5
- package/es/castArray-efa457a5.cjs +0 -1
- package/es/debounce-4aa22feb.cjs +0 -1
- package/es/el-autocomplete-609ac86d.cjs +0 -1
- package/es/el-button-08310c06.cjs +0 -1
- package/es/el-dialog-ea480083.cjs +0 -1
- package/es/el-empty-b40fa7ea.cjs +0 -1
- package/es/el-form-item-338ea2f7.cjs +0 -12
- package/es/el-input-b04b5bfc.cjs +0 -1
- package/es/el-input-number-7242c8b5.cjs +0 -1
- package/es/el-menu-item-7aca344e.cjs +0 -1
- package/es/el-message-05cd85bf.cjs +0 -1
- package/es/el-message-box-b7e9917e.cjs +0 -1
- package/es/el-overlay-60bc5a02.cjs +0 -1
- package/es/el-popconfirm-24b622c5.cjs +0 -1
- package/es/el-popper-1dd8f5b4.cjs +0 -1
- package/es/el-segmented-a928d89b.cjs +0 -1
- package/es/el-select-5fd77a96.cjs +0 -1
- package/es/el-table-column-bf3ab2a6.cjs +0 -14
- package/es/el-tag-d59f3463.cjs +0 -1
- package/es/index-3d0bc5da.js +0 -566
- package/es/index-a206f6eb.cjs +0 -1
- package/es/index-b4700d83.cjs +0 -1
- package/es/index-c30cf7f9.cjs +0 -1
- package/es/raf-d8c44079.js +0 -6
- package/es/use-form-common-props-41182853.cjs +0 -1
- package/es/use-form-common-props-4cdda474.js +0 -671
- package/es/use-global-config-7bfbe48c.js +0 -71
- package/es/use-global-config-dc5527e8.cjs +0 -1
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { defineComponent as oe, computed as k, useAttrs as Ce, ref as d, onBeforeUnmount as Se, onMounted as Ie, openBlock as b, createBlock as Ne, unref as t, withCtx as v, createElementVNode as X, normalizeClass as y, normalizeStyle as Y, createElementBlock as w, withModifiers as N, renderSlot as g, createCommentVNode as Z, createVNode as T, Fragment as Te, renderList as Ae, createTextVNode as Fe, toDisplayString as Pe, mergeProps as x, withKeys as C, createSlots as Ve } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { i as se, E as
|
|
5
|
-
import { E as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
2
|
+
import { g as _e, v as Be } from "./use-form-common-props-815d48a6.js";
|
|
3
|
+
import { E as De, l as Oe } from "./index-a871c3eb.js";
|
|
4
|
+
import { i as se, E as Ke } from "./el-input-2f75c4ba.js";
|
|
5
|
+
import { E as Re } from "./index-844bdd85.js";
|
|
6
|
+
import { g as ee, U as A, I as K, C as le, p as Me, E as Ue, b as We } from "./el-popper-b4f97157.js";
|
|
7
|
+
import { b as Le, e as te, N as He, c as B, p as D, f as qe, u as je, _ as ze, j as O, w as Ge } from "./base-a5af3db3.js";
|
|
8
|
+
import { u as Je } from "./index-960806da.js";
|
|
9
|
+
import { d as Qe } from "./debounce-8d53f4dd.js";
|
|
10
|
+
const Xe = Le({
|
|
9
11
|
...se,
|
|
10
12
|
valueKey: {
|
|
11
13
|
type: String,
|
|
@@ -20,7 +22,7 @@ const Xe = Oe({
|
|
|
20
22
|
default: 300
|
|
21
23
|
},
|
|
22
24
|
placement: {
|
|
23
|
-
type:
|
|
25
|
+
type: te(String),
|
|
24
26
|
values: [
|
|
25
27
|
"top",
|
|
26
28
|
"top-start",
|
|
@@ -32,8 +34,8 @@ const Xe = Oe({
|
|
|
32
34
|
default: "bottom-start"
|
|
33
35
|
},
|
|
34
36
|
fetchSuggestions: {
|
|
35
|
-
type:
|
|
36
|
-
default:
|
|
37
|
+
type: te([Function, Array]),
|
|
38
|
+
default: He
|
|
37
39
|
},
|
|
38
40
|
popperClass: {
|
|
39
41
|
type: String,
|
|
@@ -45,37 +47,37 @@ const Xe = Oe({
|
|
|
45
47
|
},
|
|
46
48
|
selectWhenUnmatched: Boolean,
|
|
47
49
|
hideLoading: Boolean,
|
|
48
|
-
teleported:
|
|
49
|
-
appendTo:
|
|
50
|
+
teleported: ee.teleported,
|
|
51
|
+
appendTo: ee.appendTo,
|
|
50
52
|
highlightFirstItem: Boolean,
|
|
51
53
|
fitInputWidth: Boolean
|
|
52
54
|
}), Ye = {
|
|
53
|
-
[A]: (
|
|
54
|
-
[K]: (
|
|
55
|
-
[
|
|
56
|
-
focus: (
|
|
57
|
-
blur: (
|
|
55
|
+
[A]: (l) => B(l) || D(l),
|
|
56
|
+
[K]: (l) => B(l) || D(l),
|
|
57
|
+
[le]: (l) => B(l) || D(l),
|
|
58
|
+
focus: (l) => l instanceof FocusEvent,
|
|
59
|
+
blur: (l) => l instanceof FocusEvent,
|
|
58
60
|
clear: () => !0,
|
|
59
|
-
select: (
|
|
60
|
-
},
|
|
61
|
-
name:
|
|
61
|
+
select: (l) => qe(l)
|
|
62
|
+
}, ae = "ElAutocomplete", Ze = oe({
|
|
63
|
+
name: ae,
|
|
62
64
|
inheritAttrs: !1
|
|
63
65
|
}), xe = /* @__PURE__ */ oe({
|
|
64
66
|
...Ze,
|
|
65
67
|
props: Xe,
|
|
66
68
|
emits: Ye,
|
|
67
|
-
setup(
|
|
68
|
-
const n =
|
|
69
|
+
setup(l, { expose: ne, emit: i }) {
|
|
70
|
+
const n = l, re = k(() => Me(n, Object.keys(se))), ue = Ce(), R = _e(), r = je("autocomplete"), p = d(), M = d(), S = d(), U = d();
|
|
69
71
|
let W = !1, F = !1;
|
|
70
|
-
const c = d([]),
|
|
72
|
+
const c = d([]), a = d(-1), L = d(""), f = d(!1), I = d(!1), h = d(!1), E = Je(), ie = k(() => ue.style), m = k(() => (c.value.length > 0 || h.value) && f.value), H = k(() => !n.hideLoading && h.value), ce = k(() => p.value ? Array.from(p.value.$el.querySelectorAll("input")) : []), pe = () => {
|
|
71
73
|
m.value && (L.value = `${p.value.$el.offsetWidth}px`);
|
|
72
74
|
}, de = () => {
|
|
73
|
-
|
|
75
|
+
a.value = -1;
|
|
74
76
|
}, q = async (e) => {
|
|
75
77
|
if (I.value)
|
|
76
78
|
return;
|
|
77
79
|
const o = (s) => {
|
|
78
|
-
h.value = !1, !I.value && (O(s) ? (c.value = s,
|
|
80
|
+
h.value = !1, !I.value && (O(s) ? (c.value = s, a.value = n.highlightFirstItem ? 0 : -1) : We(ae, "autocomplete suggestions must be an array"));
|
|
79
81
|
};
|
|
80
82
|
if (h.value = !0, O(n.fetchSuggestions))
|
|
81
83
|
o(n.fetchSuggestions);
|
|
@@ -83,18 +85,18 @@ const Xe = Oe({
|
|
|
83
85
|
const s = await n.fetchSuggestions(e, o);
|
|
84
86
|
O(s) && o(s);
|
|
85
87
|
}
|
|
86
|
-
},
|
|
88
|
+
}, j = Qe(q, n.debounce), fe = (e) => {
|
|
87
89
|
const o = !!e;
|
|
88
90
|
if (i(K, e), i(A, e), I.value = !1, f.value || (f.value = o), !n.triggerOnFocus && !e) {
|
|
89
91
|
I.value = !0, c.value = [];
|
|
90
92
|
return;
|
|
91
93
|
}
|
|
92
|
-
|
|
94
|
+
j(e);
|
|
93
95
|
}, ve = (e) => {
|
|
94
96
|
var o;
|
|
95
97
|
R.value || (((o = e.target) == null ? void 0 : o.tagName) !== "INPUT" || ce.value.includes(document.activeElement)) && (f.value = !0);
|
|
96
98
|
}, ge = (e) => {
|
|
97
|
-
i(
|
|
99
|
+
i(le, e);
|
|
98
100
|
}, me = (e) => {
|
|
99
101
|
var o;
|
|
100
102
|
if (F)
|
|
@@ -102,7 +104,7 @@ const Xe = Oe({
|
|
|
102
104
|
else {
|
|
103
105
|
f.value = !0, i("focus", e);
|
|
104
106
|
const s = (o = n.modelValue) != null ? o : "";
|
|
105
|
-
n.triggerOnFocus && !W &&
|
|
107
|
+
n.triggerOnFocus && !W && j(String(s));
|
|
106
108
|
}
|
|
107
109
|
}, he = (e) => {
|
|
108
110
|
setTimeout(() => {
|
|
@@ -115,9 +117,9 @@ const Xe = Oe({
|
|
|
115
117
|
});
|
|
116
118
|
}, be = () => {
|
|
117
119
|
f.value = !1, i(A, ""), i("clear");
|
|
118
|
-
},
|
|
120
|
+
}, z = async () => {
|
|
119
121
|
var e;
|
|
120
|
-
(e = p.value) != null && e.isComposing || (m.value &&
|
|
122
|
+
(e = p.value) != null && e.isComposing || (m.value && a.value >= 0 && a.value < c.value.length ? P(c.value[a.value]) : n.selectWhenUnmatched && (i("select", { value: n.modelValue }), c.value = [], a.value = -1));
|
|
121
123
|
}, ye = (e) => {
|
|
122
124
|
m.value && (e.preventDefault(), e.stopPropagation(), $());
|
|
123
125
|
}, $ = () => {
|
|
@@ -129,19 +131,19 @@ const Xe = Oe({
|
|
|
129
131
|
var e;
|
|
130
132
|
(e = p.value) == null || e.blur();
|
|
131
133
|
}, P = async (e) => {
|
|
132
|
-
i(K, e[n.valueKey]), i(A, e[n.valueKey]), i("select", e), c.value = [],
|
|
134
|
+
i(K, e[n.valueKey]), i(A, e[n.valueKey]), i("select", e), c.value = [], a.value = -1;
|
|
133
135
|
}, V = (e) => {
|
|
134
136
|
var o, s;
|
|
135
137
|
if (!m.value || h.value)
|
|
136
138
|
return;
|
|
137
139
|
if (e < 0) {
|
|
138
|
-
|
|
140
|
+
a.value = -1;
|
|
139
141
|
return;
|
|
140
142
|
}
|
|
141
143
|
e >= c.value.length && (e = c.value.length - 1);
|
|
142
144
|
const u = M.value.querySelector(`.${r.be("suggestion", "wrap")}`), we = u.querySelectorAll(`.${r.be("suggestion", "list")} li`)[e], J = u.scrollTop, { offsetTop: Q, scrollHeight: _ } = we;
|
|
143
|
-
Q + _ > J + u.clientHeight && (u.scrollTop += _), Q < J && (u.scrollTop -= _),
|
|
144
|
-
}, G =
|
|
145
|
+
Q + _ > J + u.clientHeight && (u.scrollTop += _), Q < J && (u.scrollTop -= _), a.value = e, (s = (o = p.value) == null ? void 0 : o.ref) == null || s.setAttribute("aria-activedescendant", `${E.value}-item-${a.value}`);
|
|
146
|
+
}, G = Be(U, () => {
|
|
145
147
|
var e;
|
|
146
148
|
(e = S.value) != null && e.isFocusInsideContent() || m.value && $();
|
|
147
149
|
});
|
|
@@ -156,24 +158,24 @@ const Xe = Oe({
|
|
|
156
158
|
{ key: "aria-controls", value: "id" },
|
|
157
159
|
{
|
|
158
160
|
key: "aria-activedescendant",
|
|
159
|
-
value: `${E.value}-item-${
|
|
161
|
+
value: `${E.value}-item-${a.value}`
|
|
160
162
|
}
|
|
161
163
|
].forEach(({ key: s, value: u }) => o.setAttribute(s, u)), W = o.hasAttribute("readonly"));
|
|
162
164
|
}), ne({
|
|
163
|
-
highlightedIndex:
|
|
165
|
+
highlightedIndex: a,
|
|
164
166
|
activated: f,
|
|
165
167
|
loading: h,
|
|
166
168
|
inputRef: p,
|
|
167
169
|
popperRef: S,
|
|
168
170
|
suggestions: c,
|
|
169
171
|
handleSelect: P,
|
|
170
|
-
handleKeyEnter:
|
|
172
|
+
handleKeyEnter: z,
|
|
171
173
|
focus: Ee,
|
|
172
174
|
blur: $e,
|
|
173
175
|
close: $,
|
|
174
176
|
highlight: V,
|
|
175
177
|
getData: q
|
|
176
|
-
}), (e, o) => (b(), Ne(t(
|
|
178
|
+
}), (e, o) => (b(), Ne(t(Ue), {
|
|
177
179
|
ref_key: "popperRef",
|
|
178
180
|
ref: S,
|
|
179
181
|
visible: t(m),
|
|
@@ -212,7 +214,7 @@ const Xe = Oe({
|
|
|
212
214
|
}, [
|
|
213
215
|
g(e.$slots, "header")
|
|
214
216
|
], 10, ["onClick"])) : Z("v-if", !0),
|
|
215
|
-
T(t(
|
|
217
|
+
T(t(Re), {
|
|
216
218
|
id: t(E),
|
|
217
219
|
tag: "ul",
|
|
218
220
|
"wrap-class": t(r).be("suggestion", "wrap"),
|
|
@@ -222,11 +224,11 @@ const Xe = Oe({
|
|
|
222
224
|
default: v(() => [
|
|
223
225
|
t(H) ? (b(), w("li", { key: 0 }, [
|
|
224
226
|
g(e.$slots, "loading", {}, () => [
|
|
225
|
-
T(t(
|
|
227
|
+
T(t(De), {
|
|
226
228
|
class: y(t(r).is("loading"))
|
|
227
229
|
}, {
|
|
228
230
|
default: v(() => [
|
|
229
|
-
T(t(
|
|
231
|
+
T(t(Oe))
|
|
230
232
|
]),
|
|
231
233
|
_: 1
|
|
232
234
|
}, 8, ["class"])
|
|
@@ -234,9 +236,9 @@ const Xe = Oe({
|
|
|
234
236
|
])) : (b(!0), w(Te, { key: 1 }, Ae(c.value, (s, u) => (b(), w("li", {
|
|
235
237
|
id: `${t(E)}-item-${u}`,
|
|
236
238
|
key: u,
|
|
237
|
-
class: y({ highlighted:
|
|
239
|
+
class: y({ highlighted: a.value === u }),
|
|
238
240
|
role: "option",
|
|
239
|
-
"aria-selected":
|
|
241
|
+
"aria-selected": a.value === u,
|
|
240
242
|
onClick: (ke) => P(s)
|
|
241
243
|
}, [
|
|
242
244
|
g(e.$slots, "default", { item: s }, () => [
|
|
@@ -267,7 +269,7 @@ const Xe = Oe({
|
|
|
267
269
|
"aria-expanded": t(m),
|
|
268
270
|
"aria-owns": t(E)
|
|
269
271
|
}, [
|
|
270
|
-
T(t(
|
|
272
|
+
T(t(Ke), x({
|
|
271
273
|
ref_key: "inputRef",
|
|
272
274
|
ref: p
|
|
273
275
|
}, x(t(re), e.$attrs), {
|
|
@@ -279,9 +281,9 @@ const Xe = Oe({
|
|
|
279
281
|
onBlur: he,
|
|
280
282
|
onClear: be,
|
|
281
283
|
onKeydown: [
|
|
282
|
-
C(N((s) => V(
|
|
283
|
-
C(N((s) => V(
|
|
284
|
-
C(
|
|
284
|
+
C(N((s) => V(a.value - 1), ["prevent"]), ["up"]),
|
|
285
|
+
C(N((s) => V(a.value + 1), ["prevent"]), ["down"]),
|
|
286
|
+
C(z, ["enter"]),
|
|
285
287
|
C($, ["tab"]),
|
|
286
288
|
C(ye, ["esc"])
|
|
287
289
|
],
|
|
@@ -320,8 +322,8 @@ const Xe = Oe({
|
|
|
320
322
|
}, 8, ["visible", "placement", "popper-class", "teleported", "append-to", "transition"]));
|
|
321
323
|
}
|
|
322
324
|
});
|
|
323
|
-
var et = /* @__PURE__ */
|
|
324
|
-
const
|
|
325
|
+
var et = /* @__PURE__ */ ze(xe, [["__file", "autocomplete.vue"]]);
|
|
326
|
+
const ct = Ge(et);
|
|
325
327
|
export {
|
|
326
|
-
|
|
328
|
+
ct as E
|
|
327
329
|
};
|
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import { computed as u, inject as M, ref as O, useSlots as R, Text as q, defineComponent as B, openBlock as m, createBlock as y, resolveDynamicComponent as N, mergeProps as H, unref as d, withCtx as V, createElementBlock as $, Fragment as J, renderSlot as k, normalizeClass as w, createCommentVNode as
|
|
2
|
-
import {
|
|
3
|
-
import { u as
|
|
4
|
-
import { a as
|
|
5
|
-
import {
|
|
1
|
+
import { computed as u, inject as M, ref as O, useSlots as R, Text as q, defineComponent as B, openBlock as m, createBlock as y, resolveDynamicComponent as N, mergeProps as H, unref as d, withCtx as V, createElementBlock as $, Fragment as J, renderSlot as k, normalizeClass as w, createCommentVNode as T, provide as L, reactive as Q, toRef as P } from "vue";
|
|
2
|
+
import { l as W, E as G } from "./index-a871c3eb.js";
|
|
3
|
+
import { u as X } from "./index-2e331d74.js";
|
|
4
|
+
import { a as Y } from "./use-global-config-b5e9d3d5.js";
|
|
5
|
+
import { d as Z, e as tt, g as F, h as et, i as D } from "./use-form-common-props-815d48a6.js";
|
|
6
|
+
import { b as ot, e as lt, u as I, _ as K, w as nt, l as at } from "./base-a5af3db3.js";
|
|
6
7
|
import { T as rt } from "./index-657047bb.js";
|
|
7
8
|
const j = Symbol("buttonGroupContextKey"), st = (t, c) => {
|
|
8
|
-
|
|
9
|
+
X({
|
|
9
10
|
from: "type.text",
|
|
10
11
|
replacement: "link",
|
|
11
12
|
version: "3.0.0",
|
|
12
13
|
scope: "props",
|
|
13
14
|
ref: "https://element-plus.org/en-US/component/button.html#button-attributes"
|
|
14
15
|
}, u(() => t.type === "text"));
|
|
15
|
-
const
|
|
16
|
+
const n = M(j, void 0), l = Y("button"), { form: s } = Z(), a = tt(u(() => n == null ? void 0 : n.size)), o = F(), b = O(), v = R(), p = u(() => {
|
|
16
17
|
var e;
|
|
17
|
-
return t.type || (
|
|
18
|
+
return t.type || (n == null ? void 0 : n.type) || ((e = l.value) == null ? void 0 : e.type) || "";
|
|
18
19
|
}), g = u(() => {
|
|
19
20
|
var e, r, i;
|
|
20
|
-
return (i = (r = t.autoInsertSpace) != null ? r : (e =
|
|
21
|
+
return (i = (r = t.autoInsertSpace) != null ? r : (e = l.value) == null ? void 0 : e.autoInsertSpace) != null ? i : !1;
|
|
21
22
|
}), h = u(() => {
|
|
22
23
|
var e, r, i;
|
|
23
|
-
return (i = (r = t.plain) != null ? r : (e =
|
|
24
|
+
return (i = (r = t.plain) != null ? r : (e = l.value) == null ? void 0 : e.plain) != null ? i : !1;
|
|
24
25
|
}), S = u(() => {
|
|
25
26
|
var e, r, i;
|
|
26
|
-
return (i = (r = t.round) != null ? r : (e =
|
|
27
|
+
return (i = (r = t.round) != null ? r : (e = l.value) == null ? void 0 : e.round) != null ? i : !1;
|
|
27
28
|
}), C = u(() => {
|
|
28
29
|
var e, r, i;
|
|
29
|
-
return (i = (r = t.text) != null ? r : (e =
|
|
30
|
+
return (i = (r = t.text) != null ? r : (e = l.value) == null ? void 0 : e.text) != null ? i : !1;
|
|
30
31
|
}), _ = u(() => t.tag === "button" ? {
|
|
31
32
|
ariaDisabled: o.value || t.loading,
|
|
32
33
|
disabled: o.value || t.loading,
|
|
@@ -71,8 +72,8 @@ const j = Symbol("buttonGroupContextKey"), st = (t, c) => {
|
|
|
71
72
|
"danger",
|
|
72
73
|
"text",
|
|
73
74
|
""
|
|
74
|
-
], ct = ["button", "submit", "reset"], z =
|
|
75
|
-
size:
|
|
75
|
+
], ct = ["button", "submit", "reset"], z = ot({
|
|
76
|
+
size: et,
|
|
76
77
|
disabled: Boolean,
|
|
77
78
|
type: {
|
|
78
79
|
type: String,
|
|
@@ -90,7 +91,7 @@ const j = Symbol("buttonGroupContextKey"), st = (t, c) => {
|
|
|
90
91
|
loading: Boolean,
|
|
91
92
|
loadingIcon: {
|
|
92
93
|
type: D,
|
|
93
|
-
default: () =>
|
|
94
|
+
default: () => W
|
|
94
95
|
},
|
|
95
96
|
plain: {
|
|
96
97
|
type: Boolean,
|
|
@@ -115,7 +116,7 @@ const j = Symbol("buttonGroupContextKey"), st = (t, c) => {
|
|
|
115
116
|
default: void 0
|
|
116
117
|
},
|
|
117
118
|
tag: {
|
|
118
|
-
type:
|
|
119
|
+
type: lt([String, Object]),
|
|
119
120
|
default: "button"
|
|
120
121
|
}
|
|
121
122
|
}), ut = {
|
|
@@ -125,28 +126,28 @@ function f(t, c = 20) {
|
|
|
125
126
|
return t.mix("#141414", c).toString();
|
|
126
127
|
}
|
|
127
128
|
function dt(t) {
|
|
128
|
-
const c =
|
|
129
|
+
const c = F(), n = I("button");
|
|
129
130
|
return u(() => {
|
|
130
|
-
let
|
|
131
|
+
let l = {}, s = t.color;
|
|
131
132
|
if (s) {
|
|
132
133
|
const a = s.match(/var\((.*?)\)/);
|
|
133
134
|
a && (s = window.getComputedStyle(window.document.documentElement).getPropertyValue(a[1]));
|
|
134
135
|
const o = new rt(s), b = t.dark ? o.tint(20).toString() : f(o, 20);
|
|
135
136
|
if (t.plain)
|
|
136
|
-
|
|
137
|
+
l = n.cssVarBlock({
|
|
137
138
|
"bg-color": t.dark ? f(o, 90) : o.tint(90).toString(),
|
|
138
139
|
"text-color": s,
|
|
139
140
|
"border-color": t.dark ? f(o, 50) : o.tint(50).toString(),
|
|
140
|
-
"hover-text-color": `var(${
|
|
141
|
+
"hover-text-color": `var(${n.cssVarName("color-white")})`,
|
|
141
142
|
"hover-bg-color": s,
|
|
142
143
|
"hover-border-color": s,
|
|
143
144
|
"active-bg-color": b,
|
|
144
|
-
"active-text-color": `var(${
|
|
145
|
+
"active-text-color": `var(${n.cssVarName("color-white")})`,
|
|
145
146
|
"active-border-color": b
|
|
146
|
-
}), c.value && (n
|
|
147
|
+
}), c.value && (l[n.cssVarBlockName("disabled-bg-color")] = t.dark ? f(o, 90) : o.tint(90).toString(), l[n.cssVarBlockName("disabled-text-color")] = t.dark ? f(o, 50) : o.tint(50).toString(), l[n.cssVarBlockName("disabled-border-color")] = t.dark ? f(o, 80) : o.tint(80).toString());
|
|
147
148
|
else {
|
|
148
|
-
const v = t.dark ? f(o, 30) : o.tint(30).toString(), p = o.isDark() ? `var(${
|
|
149
|
-
if (
|
|
149
|
+
const v = t.dark ? f(o, 30) : o.tint(30).toString(), p = o.isDark() ? `var(${n.cssVarName("color-white")})` : `var(${n.cssVarName("color-black")})`;
|
|
150
|
+
if (l = n.cssVarBlock({
|
|
150
151
|
"bg-color": s,
|
|
151
152
|
"text-color": p,
|
|
152
153
|
"border-color": s,
|
|
@@ -157,11 +158,11 @@ function dt(t) {
|
|
|
157
158
|
"active-border-color": b
|
|
158
159
|
}), c.value) {
|
|
159
160
|
const g = t.dark ? f(o, 50) : o.tint(50).toString();
|
|
160
|
-
n
|
|
161
|
+
l[n.cssVarBlockName("disabled-bg-color")] = g, l[n.cssVarBlockName("disabled-text-color")] = t.dark ? "rgba(255, 255, 255, 0.5)" : `var(${n.cssVarName("color-white")})`, l[n.cssVarBlockName("disabled-border-color")] = g;
|
|
161
162
|
}
|
|
162
163
|
}
|
|
163
164
|
}
|
|
164
|
-
return
|
|
165
|
+
return l;
|
|
165
166
|
});
|
|
166
167
|
}
|
|
167
168
|
const bt = B({
|
|
@@ -170,8 +171,8 @@ const bt = B({
|
|
|
170
171
|
...bt,
|
|
171
172
|
props: z,
|
|
172
173
|
emits: ut,
|
|
173
|
-
setup(t, { expose: c, emit:
|
|
174
|
-
const
|
|
174
|
+
setup(t, { expose: c, emit: n }) {
|
|
175
|
+
const l = t, s = dt(l), a = I("button"), {
|
|
175
176
|
_ref: o,
|
|
176
177
|
_size: b,
|
|
177
178
|
_type: v,
|
|
@@ -182,18 +183,18 @@ const bt = B({
|
|
|
182
183
|
_text: C,
|
|
183
184
|
shouldAddSpace: _,
|
|
184
185
|
handleClick: x
|
|
185
|
-
} = st(
|
|
186
|
+
} = st(l, n), E = u(() => [
|
|
186
187
|
a.b(),
|
|
187
188
|
a.m(v.value),
|
|
188
189
|
a.m(b.value),
|
|
189
190
|
a.is("disabled", p.value),
|
|
190
|
-
a.is("loading",
|
|
191
|
+
a.is("loading", l.loading),
|
|
191
192
|
a.is("plain", h.value),
|
|
192
193
|
a.is("round", S.value),
|
|
193
|
-
a.is("circle",
|
|
194
|
+
a.is("circle", l.circle),
|
|
194
195
|
a.is("text", C.value),
|
|
195
|
-
a.is("link",
|
|
196
|
-
a.is("has-bg",
|
|
196
|
+
a.is("link", l.link),
|
|
197
|
+
a.is("has-bg", l.bg)
|
|
197
198
|
]);
|
|
198
199
|
return c({
|
|
199
200
|
ref: o,
|
|
@@ -205,7 +206,7 @@ const bt = B({
|
|
|
205
206
|
ref_key: "_ref",
|
|
206
207
|
ref: o
|
|
207
208
|
}, d(g), {
|
|
208
|
-
class: d(
|
|
209
|
+
class: d(E),
|
|
209
210
|
style: d(s),
|
|
210
211
|
onClick: d(x)
|
|
211
212
|
}), {
|
|
@@ -225,19 +226,19 @@ const bt = B({
|
|
|
225
226
|
e.icon ? (m(), y(N(e.icon), { key: 0 })) : k(e.$slots, "icon", { key: 1 })
|
|
226
227
|
]),
|
|
227
228
|
_: 3
|
|
228
|
-
})) :
|
|
229
|
+
})) : T("v-if", !0),
|
|
229
230
|
e.$slots.default ? (m(), $("span", {
|
|
230
231
|
key: 2,
|
|
231
232
|
class: w({ [d(a).em("text", "expand")]: d(_) })
|
|
232
233
|
}, [
|
|
233
234
|
k(e.$slots, "default")
|
|
234
|
-
], 2)) :
|
|
235
|
+
], 2)) : T("v-if", !0)
|
|
235
236
|
]),
|
|
236
237
|
_: 3
|
|
237
238
|
}, 16, ["class", "style", "onClick"]));
|
|
238
239
|
}
|
|
239
240
|
});
|
|
240
|
-
var ft = /* @__PURE__ */
|
|
241
|
+
var ft = /* @__PURE__ */ K(vt, [["__file", "button.vue"]]);
|
|
241
242
|
const mt = {
|
|
242
243
|
size: z.size,
|
|
243
244
|
type: z.type
|
|
@@ -252,20 +253,20 @@ const mt = {
|
|
|
252
253
|
size: P(c, "size"),
|
|
253
254
|
type: P(c, "type")
|
|
254
255
|
}));
|
|
255
|
-
const
|
|
256
|
-
return (
|
|
257
|
-
class: w(d(
|
|
256
|
+
const n = I("button");
|
|
257
|
+
return (l, s) => (m(), $("div", {
|
|
258
|
+
class: w(d(n).b("group"))
|
|
258
259
|
}, [
|
|
259
|
-
k(
|
|
260
|
+
k(l.$slots, "default")
|
|
260
261
|
], 2));
|
|
261
262
|
}
|
|
262
263
|
});
|
|
263
|
-
var A = /* @__PURE__ */
|
|
264
|
-
const
|
|
264
|
+
var A = /* @__PURE__ */ K(gt, [["__file", "button-group.vue"]]);
|
|
265
|
+
const xt = nt(ft, {
|
|
265
266
|
ButtonGroup: A
|
|
266
267
|
});
|
|
267
|
-
|
|
268
|
+
at(A);
|
|
268
269
|
export {
|
|
269
|
-
|
|
270
|
+
xt as E,
|
|
270
271
|
it as b
|
|
271
272
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),S=require("./index-098c2447.cjs"),z=require("./index-f1c702f6.cjs"),E=require("./use-global-config-30d7d8ce.cjs"),b=require("./use-form-common-props-fd9b61a0.cjs"),p=require("./base-ef747d02.cjs"),I=require("./index-eea0bcb3.cjs"),N=Symbol("buttonGroupContextKey"),P=(o,u)=>{z.useDeprecated({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},e.computed(()=>o.type==="text"));const r=e.inject(N,void 0),l=E.useGlobalConfig("button"),{form:c}=b.useFormItem(),a=b.useFormSize(e.computed(()=>r==null?void 0:r.size)),n=b.useFormDisabled(),d=e.ref(),m=e.useSlots(),v=e.computed(()=>{var t;return o.type||(r==null?void 0:r.type)||((t=l.value)==null?void 0:t.type)||""}),g=e.computed(()=>{var t,s,i;return(i=(s=o.autoInsertSpace)!=null?s:(t=l.value)==null?void 0:t.autoInsertSpace)!=null?i:!1}),y=e.computed(()=>{var t,s,i;return(i=(s=o.plain)!=null?s:(t=l.value)==null?void 0:t.plain)!=null?i:!1}),_=e.computed(()=>{var t,s,i;return(i=(s=o.round)!=null?s:(t=l.value)==null?void 0:t.round)!=null?i:!1}),B=e.computed(()=>{var t,s,i;return(i=(s=o.text)!=null?s:(t=l.value)==null?void 0:t.text)!=null?i:!1}),k=e.computed(()=>o.tag==="button"?{ariaDisabled:n.value||o.loading,disabled:n.value||o.loading,autofocus:o.autofocus,type:o.nativeType}:{}),C=e.computed(()=>{var t;const s=(t=m.default)==null?void 0:t.call(m);if(g.value&&(s==null?void 0:s.length)===1){const i=s[0];if((i==null?void 0:i.type)===e.Text){const w=i.children;return/^\p{Unified_Ideograph}{2}$/u.test(w.trim())}}return!1});return{_disabled:n,_size:a,_type:v,_ref:d,_props:k,_plain:y,_round:_,_text:B,shouldAddSpace:C,handleClick:t=>{if(n.value||o.loading){t.stopPropagation();return}o.nativeType==="reset"&&(c==null||c.resetFields()),u("click",t)}}},$=["default","primary","success","warning","info","danger","text",""],T=["button","submit","reset"],h=p.buildProps({size:b.useSizeProp,disabled:Boolean,type:{type:String,values:$,default:""},icon:{type:b.iconPropType},nativeType:{type:String,values:T,default:"button"},loading:Boolean,loadingIcon:{type:b.iconPropType,default:()=>S.loading_default},plain:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:p.definePropType([String,Object]),default:"button"}}),D={click:o=>o instanceof MouseEvent};function f(o,u=20){return o.mix("#141414",u).toString()}function G(o){const u=b.useFormDisabled(),r=p.useNamespace("button");return e.computed(()=>{let l={},c=o.color;if(c){const a=c.match(/var\((.*?)\)/);a&&(c=window.getComputedStyle(window.document.documentElement).getPropertyValue(a[1]));const n=new I.TinyColor(c),d=o.dark?n.tint(20).toString():f(n,20);if(o.plain)l=r.cssVarBlock({"bg-color":o.dark?f(n,90):n.tint(90).toString(),"text-color":c,"border-color":o.dark?f(n,50):n.tint(50).toString(),"hover-text-color":`var(${r.cssVarName("color-white")})`,"hover-bg-color":c,"hover-border-color":c,"active-bg-color":d,"active-text-color":`var(${r.cssVarName("color-white")})`,"active-border-color":d}),u.value&&(l[r.cssVarBlockName("disabled-bg-color")]=o.dark?f(n,90):n.tint(90).toString(),l[r.cssVarBlockName("disabled-text-color")]=o.dark?f(n,50):n.tint(50).toString(),l[r.cssVarBlockName("disabled-border-color")]=o.dark?f(n,80):n.tint(80).toString());else{const m=o.dark?f(n,30):n.tint(30).toString(),v=n.isDark()?`var(${r.cssVarName("color-white")})`:`var(${r.cssVarName("color-black")})`;if(l=r.cssVarBlock({"bg-color":c,"text-color":v,"border-color":c,"hover-bg-color":m,"hover-text-color":v,"hover-border-color":m,"active-bg-color":d,"active-border-color":d}),u.value){const g=o.dark?f(n,50):n.tint(50).toString();l[r.cssVarBlockName("disabled-bg-color")]=g,l[r.cssVarBlockName("disabled-text-color")]=o.dark?"rgba(255, 255, 255, 0.5)":`var(${r.cssVarName("color-white")})`,l[r.cssVarBlockName("disabled-border-color")]=g}}}return l})}const q=e.defineComponent({name:"ElButton"}),F=e.defineComponent({...q,props:h,emits:D,setup(o,{expose:u,emit:r}){const l=o,c=G(l),a=p.useNamespace("button"),{_ref:n,_size:d,_type:m,_disabled:v,_props:g,_plain:y,_round:_,_text:B,shouldAddSpace:k,handleClick:C}=P(l,r),x=e.computed(()=>[a.b(),a.m(m.value),a.m(d.value),a.is("disabled",v.value),a.is("loading",l.loading),a.is("plain",y.value),a.is("round",_.value),a.is("circle",l.circle),a.is("text",B.value),a.is("link",l.link),a.is("has-bg",l.bg)]);return u({ref:n,size:d,type:m,disabled:v,shouldAddSpace:k}),(t,s)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.tag),e.mergeProps({ref_key:"_ref",ref:n},e.unref(g),{class:e.unref(x),style:e.unref(c),onClick:e.unref(C)}),{default:e.withCtx(()=>[t.loading?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.$slots.loading?e.renderSlot(t.$slots,"loading",{key:0}):(e.openBlock(),e.createBlock(e.unref(S.ElIcon),{key:1,class:e.normalizeClass(e.unref(a).is("loading"))},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.loadingIcon)))]),_:1},8,["class"]))],64)):t.icon||t.$slots.icon?(e.openBlock(),e.createBlock(e.unref(S.ElIcon),{key:1},{default:e.withCtx(()=>[t.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon),{key:0})):e.renderSlot(t.$slots,"icon",{key:1})]),_:3})):e.createCommentVNode("v-if",!0),t.$slots.default?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass({[e.unref(a).em("text","expand")]:e.unref(k)})},[e.renderSlot(t.$slots,"default")],2)):e.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var K=p._export_sfc(F,[["__file","button.vue"]]);const j={size:h.size,type:h.type},A=e.defineComponent({name:"ElButtonGroup"}),R=e.defineComponent({...A,props:j,setup(o){const u=o;e.provide(N,e.reactive({size:e.toRef(u,"size"),type:e.toRef(u,"type")}));const r=p.useNamespace("button");return(l,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(r).b("group"))},[e.renderSlot(l.$slots,"default")],2))}});var V=p._export_sfc(R,[["__file","button-group.vue"]]);const U=p.withInstall(K,{ButtonGroup:V});p.withNoopInstall(V);exports.ElButton=U;exports.buttonTypes=$;
|