st-comp 0.0.207 → 0.0.208
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 +1 -74
- package/es/CustomFunction.cjs +1 -1
- package/es/CustomFunction.js +53 -56
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +45 -48
- package/es/HeatMap.cjs +1 -1
- package/es/HeatMap.js +1 -118
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +16 -19
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +81 -84
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +161 -164
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +15 -18
- package/es/KlinePlus.cjs +1 -1
- package/es/KlinePlus.js +18 -21
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +140 -143
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +2 -3
- package/es/Table.cjs +1 -1
- package/es/Table.js +55 -58
- package/es/User.cjs +1 -1
- package/es/User.js +85 -88
- package/es/VarSelectDialog.cjs +2 -2
- package/es/VarSelectDialog.js +53 -56
- package/es/VarietyAutoComplete.cjs +1 -1
- package/es/VarietyAutoComplete.js +15 -17
- package/es/VarietySearch.cjs +10 -10
- package/es/VarietySearch.js +53 -56
- package/es/VarietyTextCopy.cjs +3 -3
- package/es/VarietyTextCopy.js +33 -36
- package/es/VirtualTable.cjs +1 -1
- package/es/VirtualTable.js +103 -106
- package/es/{_initCloneObject-eaef9418.js → _initCloneObject-c477c74d.js} +25 -26
- package/es/_initCloneObject-e660897e.cjs +1 -0
- package/es/base-7ba08794.cjs +5 -0
- package/es/{index-a871c3eb.js → base-aa512893.js} +454 -171
- package/es/{castArray-7741a212.js → castArray-1eb17278.js} +1 -1
- package/es/castArray-efa457a5.cjs +1 -0
- package/es/{config-provider-a584d81e.cjs → config-provider-18c0a68a.cjs} +1 -1
- package/es/{config-provider-b16efd62.js → config-provider-49c17381.js} +6 -6
- package/es/{debounce-8d53f4dd.js → debounce-33406a0d.js} +9 -9
- package/es/debounce-4aa22feb.cjs +1 -0
- package/es/{dropdown-071c5d7e.cjs → dropdown-3f1fe325.cjs} +1 -1
- package/es/{dropdown-a59bba73.js → dropdown-6e7b1df0.js} +15 -15
- package/es/el-autocomplete-609ac86d.cjs +1 -0
- package/es/{el-autocomplete-ba808eb6.js → el-autocomplete-87b7f461.js} +51 -53
- package/es/el-button-08310c06.cjs +1 -0
- package/es/{el-button-c95adb85.js → el-button-56624e61.js} +45 -46
- package/es/{el-checkbox-c25236a6.cjs → el-checkbox-09f3b57f.cjs} +1 -1
- package/es/{el-checkbox-7421ccd3.js → el-checkbox-f13560e9.js} +40 -40
- package/es/{el-dialog-41ab8417.js → el-dialog-1d5f5877.js} +9 -10
- package/es/el-dialog-ea480083.cjs +1 -0
- package/es/{el-divider-4e059794.js → el-divider-1cda1783.js} +1 -1
- package/es/{el-divider-4713d74c.cjs → el-divider-8a4c87e3.cjs} +1 -1
- package/es/{el-empty-33cb66f1.js → el-empty-04682b5d.js} +3 -3
- package/es/el-empty-b40fa7ea.cjs +1 -0
- package/es/el-form-item-338ea2f7.cjs +12 -0
- package/es/{el-form-item-c53c374d.js → el-form-item-505c0b70.js} +75 -76
- package/es/{el-input-2f75c4ba.js → el-input-262851e8.js} +84 -85
- package/es/el-input-b04b5bfc.cjs +1 -0
- package/es/el-input-number-7242c8b5.cjs +1 -0
- package/es/{el-input-number-5193fe6d.js → el-input-number-fdac2b86.js} +82 -83
- package/es/{el-loading-cfd86c15.cjs → el-loading-3cf7b796.cjs} +1 -1
- package/es/{el-loading-f6022062.js → el-loading-7440dc64.js} +2 -2
- package/es/{el-menu-item-7e881203.js → el-menu-item-36c3004c.js} +53 -54
- package/es/el-menu-item-7aca344e.cjs +1 -0
- package/es/el-message-05cd85bf.cjs +1 -0
- package/es/{el-message-e544a8f5.js → el-message-416bd265.js} +28 -29
- package/es/{el-message-box-a93d2f6a.js → el-message-box-8f5e34ca.js} +20 -22
- package/es/el-message-box-b7e9917e.cjs +1 -0
- package/es/{el-overlay-09ad71cd.js → el-overlay-04426e36.js} +52 -53
- package/es/el-overlay-60bc5a02.cjs +1 -0
- package/es/el-popconfirm-24b622c5.cjs +1 -0
- package/es/{el-popconfirm-81dcd202.js → el-popconfirm-3790cda2.js} +38 -39
- package/es/el-popper-1dd8f5b4.cjs +1 -0
- package/es/{el-popper-b4f97157.js → el-popper-49152708.js} +191 -192
- package/es/{el-segmented-b868d074.js → el-segmented-05509f9d.js} +12 -13
- package/es/el-segmented-a928d89b.cjs +1 -0
- package/es/el-select-5fd77a96.cjs +1 -0
- package/es/{el-select-95627997.js → el-select-700f3686.js} +292 -295
- package/es/{el-table-column-376cd907.js → el-table-column-44360700.js} +54 -57
- package/es/el-table-column-bf3ab2a6.cjs +14 -0
- package/es/{el-tag-66cab138.js → el-tag-55a172c9.js} +30 -31
- package/es/el-tag-d59f3463.cjs +1 -0
- package/es/{el-text-c20a9f48.cjs → el-text-5bcaffb6.cjs} +1 -1
- package/es/{el-text-ac60d0f2.js → el-text-ab6bfc40.js} +4 -4
- package/es/{index-1f7d4f70.js → index-0afedcbd.js} +11 -12
- package/es/{index-88546436.js → index-29418a8d.js} +18 -18
- package/es/index-3d0bc5da.js +566 -0
- package/es/{index-57672682.js → index-4e46f96c.js} +12 -13
- package/es/{index-844bdd85.js → index-66ad0d6a.js} +34 -34
- package/es/{index-f967d6c1.cjs → index-882d77d3.cjs} +1 -1
- package/es/index-a206f6eb.cjs +1 -0
- package/es/{index-298075cf.cjs → index-ae6c9d97.cjs} +1 -1
- package/es/index-b4700d83.cjs +1 -0
- package/es/index-c30cf7f9.cjs +1 -0
- package/es/{index-d91dc23f.js → index-cbbd78b4.js} +12 -12
- package/es/{index-11547a0c.cjs → index-d8294b1a.cjs} +1 -1
- package/es/{raf-8249652f.cjs → raf-336ef01e.cjs} +1 -1
- package/es/raf-d8c44079.js +6 -0
- package/es/{scroll-679bd6bf.js → scroll-0a48995c.js} +5 -5
- package/es/{scroll-b108dabd.cjs → scroll-19533c53.cjs} +1 -1
- package/es/style.css +1 -1
- package/es/use-form-common-props-41182853.cjs +1 -0
- package/es/use-form-common-props-4cdda474.js +671 -0
- package/es/use-global-config-7bfbe48c.js +71 -0
- package/es/use-global-config-dc5527e8.cjs +1 -0
- package/es/{validator-1b8a6128.cjs → validator-28b22907.cjs} +1 -1
- package/es/{validator-764a9db0.js → validator-e35f7978.js} +1 -1
- package/es/{vnode-b906ae6d.cjs → vnode-8cb31692.cjs} +1 -1
- package/es/{vnode-5ddb7ed1.js → vnode-b62d0045.js} +1 -1
- package/es/{zh-cn-e963c628.js → zh-cn-346f3a73.js} +2 -2
- package/es/{zh-cn-90317f62.cjs → zh-cn-7c8640bb.cjs} +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +1 -1
- package/lib/{index-f27d8c7a.js → index-da0f2951.js} +3 -3
- package/lib/{python-c345f0e2.js → python-c0a1e4ef.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/KlineBasic/components/KlineTips/index.vue +1 -1
- package/es/_initCloneObject-52b6a510.cjs +0 -1
- package/es/base-a5af3db3.js +0 -288
- package/es/base-ef747d02.cjs +0 -5
- package/es/castArray-35947698.cjs +0 -1
- package/es/debounce-62f5b6e8.cjs +0 -1
- package/es/el-autocomplete-a07e9439.cjs +0 -1
- package/es/el-button-eec58cff.cjs +0 -1
- package/es/el-dialog-ae86edb8.cjs +0 -1
- package/es/el-empty-1697ded8.cjs +0 -1
- package/es/el-form-item-c3fe189b.cjs +0 -12
- package/es/el-input-7fd293af.cjs +0 -1
- package/es/el-input-number-22e21d16.cjs +0 -1
- package/es/el-menu-item-17dc717e.cjs +0 -1
- package/es/el-message-5e6a6be9.cjs +0 -1
- package/es/el-message-box-c10adb52.cjs +0 -1
- package/es/el-overlay-9e34965f.cjs +0 -1
- package/es/el-popconfirm-70a976bf.cjs +0 -1
- package/es/el-popper-b6c99b28.cjs +0 -1
- package/es/el-segmented-f8fce9ac.cjs +0 -1
- package/es/el-select-d8d91db1.cjs +0 -1
- package/es/el-table-column-c974cb96.cjs +0 -14
- package/es/el-tag-a33c4b22.cjs +0 -1
- package/es/index-098c2447.cjs +0 -1
- package/es/index-960806da.js +0 -314
- package/es/index-9780a537.cjs +0 -1
- package/es/index-9b9ef5dd.cjs +0 -1
- package/es/index-bb833443.cjs +0 -1
- package/es/index-c108567d.cjs +0 -1
- package/es/index-d77a7336.js +0 -204
- package/es/index-e5566b94.js +0 -368
- package/es/index-f3562b52.cjs +0 -1
- package/es/raf-80ef0c0a.js +0 -6
- package/es/use-form-common-props-815d48a6.js +0 -364
- package/es/use-form-common-props-fd9b61a0.cjs +0 -1
- package/es/use-global-config-30d7d8ce.cjs +0 -1
- package/es/use-global-config-b5e9d3d5.js +0 -72
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
import { defineComponent as te, ref as pe, reactive as fe, computed as
|
|
2
|
-
import { E as Ve } from "./el-input-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
const xe = 100, Le = 600, ne = {
|
|
1
|
+
import { defineComponent as te, ref as pe, reactive as fe, computed as y, watch as W, onMounted as be, onUpdated as ve, openBlock as v, createElementBlock as x, normalizeClass as K, unref as a, withModifiers as Ne, withDirectives as X, withKeys as J, renderSlot as A, createVNode as z, withCtx as P, createBlock as F, createCommentVNode as Y, createSlots as Ee } from "vue";
|
|
2
|
+
import { E as Ve } from "./el-input-262851e8.js";
|
|
3
|
+
import { g as j, b as ye, n as b, d as q, H as h, u as he, A as T, E as Q, I as Ie, J as ge, K as we, L as _e, _ as Se, m as Ae, w as Pe } from "./base-aa512893.js";
|
|
4
|
+
import { u as Fe, f as Te, a as De, e as ke } from "./use-form-common-props-4cdda474.js";
|
|
5
|
+
import { u as Ce, C as re, I as D, U as N, t as Me, d as Z, e as ee } from "./el-popper-49152708.js";
|
|
6
|
+
import { a as Be } from "./index-3d0bc5da.js";
|
|
7
|
+
const Le = 100, Re = 600, ne = {
|
|
9
8
|
beforeMount(u, E) {
|
|
10
|
-
const s = E.value, { interval: r =
|
|
9
|
+
const s = E.value, { interval: r = Le, delay: I = Re } = j(s) ? {} : s;
|
|
11
10
|
let d, m;
|
|
12
|
-
const
|
|
11
|
+
const l = () => j(s) ? s() : s.handler(), p = () => {
|
|
13
12
|
m && (clearTimeout(m), m = void 0), d && (clearInterval(d), d = void 0);
|
|
14
13
|
};
|
|
15
14
|
u.addEventListener("mousedown", (g) => {
|
|
16
|
-
g.button === 0 && (p(),
|
|
15
|
+
g.button === 0 && (p(), l(), document.addEventListener("mouseup", () => p(), {
|
|
17
16
|
once: !0
|
|
18
17
|
}), m = setTimeout(() => {
|
|
19
18
|
d = setInterval(() => {
|
|
20
|
-
|
|
19
|
+
l();
|
|
21
20
|
}, r);
|
|
22
21
|
}, I));
|
|
23
22
|
});
|
|
24
23
|
}
|
|
25
|
-
},
|
|
24
|
+
}, $e = ye({
|
|
26
25
|
id: {
|
|
27
26
|
type: String,
|
|
28
27
|
default: void 0
|
|
@@ -72,38 +71,38 @@ const xe = 100, Le = 600, ne = {
|
|
|
72
71
|
},
|
|
73
72
|
...Ce(["ariaLabel"]),
|
|
74
73
|
inputmode: {
|
|
75
|
-
type:
|
|
74
|
+
type: q(String),
|
|
76
75
|
default: void 0
|
|
77
76
|
},
|
|
78
77
|
align: {
|
|
79
|
-
type:
|
|
78
|
+
type: q(String),
|
|
80
79
|
default: "center"
|
|
81
80
|
},
|
|
82
81
|
disabledScientific: Boolean
|
|
83
|
-
}),
|
|
82
|
+
}), xe = {
|
|
84
83
|
[re]: (u, E) => E !== u,
|
|
85
84
|
blur: (u) => u instanceof FocusEvent,
|
|
86
85
|
focus: (u) => u instanceof FocusEvent,
|
|
87
|
-
[D]: (u) => b(u) ||
|
|
88
|
-
[N]: (u) => b(u) ||
|
|
89
|
-
},
|
|
86
|
+
[D]: (u) => b(u) || h(u),
|
|
87
|
+
[N]: (u) => b(u) || h(u)
|
|
88
|
+
}, Ke = te({
|
|
90
89
|
name: "ElInputNumber"
|
|
91
|
-
}),
|
|
92
|
-
...
|
|
93
|
-
props:
|
|
94
|
-
emits:
|
|
90
|
+
}), ze = /* @__PURE__ */ te({
|
|
91
|
+
...Ke,
|
|
92
|
+
props: $e,
|
|
93
|
+
emits: xe,
|
|
95
94
|
setup(u, { expose: E, emit: s }) {
|
|
96
|
-
const r = u, { t: I } = Be(), d =
|
|
95
|
+
const r = u, { t: I } = Be(), d = he("input-number"), m = pe(), l = fe({
|
|
97
96
|
currentValue: r.modelValue,
|
|
98
97
|
userInput: null
|
|
99
|
-
}), { formItem: p } = Te(), g =
|
|
98
|
+
}), { formItem: p } = Te(), g = y(() => b(r.modelValue) && r.modelValue <= r.min), O = y(() => b(r.modelValue) && r.modelValue >= r.max), ae = y(() => {
|
|
100
99
|
const e = U(r.step);
|
|
101
100
|
return T(r.precision) ? Math.max(U(r.modelValue), e) : (e > r.precision, r.precision);
|
|
102
|
-
}), k =
|
|
103
|
-
if (
|
|
104
|
-
return
|
|
105
|
-
let e =
|
|
106
|
-
if (
|
|
101
|
+
}), k = y(() => r.controls && r.controlsPosition === "right"), G = De(), V = ke(), C = y(() => {
|
|
102
|
+
if (l.userInput !== null)
|
|
103
|
+
return l.userInput;
|
|
104
|
+
let e = l.currentValue;
|
|
105
|
+
if (h(e))
|
|
107
106
|
return "";
|
|
108
107
|
if (b(e)) {
|
|
109
108
|
if (Number.isNaN(e))
|
|
@@ -112,7 +111,7 @@ const xe = 100, Le = 600, ne = {
|
|
|
112
111
|
}
|
|
113
112
|
return e;
|
|
114
113
|
}), M = (e, n) => {
|
|
115
|
-
if (T(n) && (n =
|
|
114
|
+
if (T(n) && (n = ae.value), n === 0)
|
|
116
115
|
return Math.round(e);
|
|
117
116
|
let t = String(e);
|
|
118
117
|
const i = t.indexOf(".");
|
|
@@ -121,12 +120,12 @@ const xe = 100, Le = 600, ne = {
|
|
|
121
120
|
const _ = t.length;
|
|
122
121
|
return t.charAt(_ - 1) === "5" && (t = `${t.slice(0, Math.max(0, _ - 1))}6`), Number.parseFloat(Number(t).toFixed(n));
|
|
123
122
|
}, U = (e) => {
|
|
124
|
-
if (
|
|
123
|
+
if (h(e))
|
|
125
124
|
return 0;
|
|
126
125
|
const n = e.toString(), t = n.indexOf(".");
|
|
127
126
|
let i = 0;
|
|
128
127
|
return t !== -1 && (i = n.length - t - 1), i;
|
|
129
|
-
}, H = (e, n = 1) => b(e) ? e >= Number.MAX_SAFE_INTEGER && n === 1 || e <= Number.MIN_SAFE_INTEGER && n === -1 ? e : M(e + r.step * n) :
|
|
128
|
+
}, H = (e, n = 1) => b(e) ? e >= Number.MAX_SAFE_INTEGER && n === 1 || e <= Number.MIN_SAFE_INTEGER && n === -1 ? e : M(e + r.step * n) : l.currentValue, le = (e) => {
|
|
130
129
|
var n;
|
|
131
130
|
const t = e;
|
|
132
131
|
if (r.disabledScientific && ["e", "E"].includes(t.key)) {
|
|
@@ -138,7 +137,7 @@ const xe = 100, Le = 600, ne = {
|
|
|
138
137
|
t.preventDefault(), B();
|
|
139
138
|
},
|
|
140
139
|
[ee.down]: () => {
|
|
141
|
-
t.preventDefault(),
|
|
140
|
+
t.preventDefault(), L();
|
|
142
141
|
}
|
|
143
142
|
};
|
|
144
143
|
(n = i[t.key]) == null || n.call(i);
|
|
@@ -146,17 +145,17 @@ const xe = 100, Le = 600, ne = {
|
|
|
146
145
|
if (r.readonly || V.value || O.value)
|
|
147
146
|
return;
|
|
148
147
|
const e = Number(C.value) || 0, n = H(e);
|
|
149
|
-
w(n), s(D,
|
|
150
|
-
},
|
|
148
|
+
w(n), s(D, l.currentValue), $();
|
|
149
|
+
}, L = () => {
|
|
151
150
|
if (r.readonly || V.value || g.value)
|
|
152
151
|
return;
|
|
153
152
|
const e = Number(C.value) || 0, n = H(e, -1);
|
|
154
|
-
w(n), s(D,
|
|
155
|
-
},
|
|
153
|
+
w(n), s(D, l.currentValue), $();
|
|
154
|
+
}, R = (e, n) => {
|
|
156
155
|
const { max: t, min: i, step: o, precision: f, stepStrictly: _, valueOnClear: S } = r;
|
|
157
156
|
t < i && Me("InputNumber", "min should not be greater than max.");
|
|
158
157
|
let c = Number(e);
|
|
159
|
-
if (
|
|
158
|
+
if (h(e) || Number.isNaN(c))
|
|
160
159
|
return null;
|
|
161
160
|
if (e === "") {
|
|
162
161
|
if (S === null)
|
|
@@ -166,19 +165,19 @@ const xe = 100, Le = 600, ne = {
|
|
|
166
165
|
return _ && (c = M(Math.round(c / o) * o, f), c !== e && n && s(N, c)), T(f) || (c = M(c, f)), (c > t || c < i) && (c = c > t ? t : i, n && s(N, c)), c;
|
|
167
166
|
}, w = (e, n = !0) => {
|
|
168
167
|
var t;
|
|
169
|
-
const i =
|
|
168
|
+
const i = l.currentValue, o = R(e);
|
|
170
169
|
if (!n) {
|
|
171
170
|
s(N, o);
|
|
172
171
|
return;
|
|
173
172
|
}
|
|
174
|
-
i === o && e || (
|
|
173
|
+
i === o && e || (l.userInput = null, s(N, o), i !== o && s(re, o, i), r.validateEvent && ((t = p == null ? void 0 : p.validate) == null || t.call(p, "change").catch((f) => Z())), l.currentValue = o);
|
|
175
174
|
}, ue = (e) => {
|
|
176
|
-
|
|
175
|
+
l.userInput = e;
|
|
177
176
|
const n = e === "" ? null : Number(e);
|
|
178
177
|
s(D, n), w(n, !1);
|
|
179
178
|
}, ie = (e) => {
|
|
180
179
|
const n = e !== "" ? Number(e) : "";
|
|
181
|
-
(b(n) && !Number.isNaN(n) || e === "") && w(n),
|
|
180
|
+
(b(n) && !Number.isNaN(n) || e === "") && w(n), $(), l.userInput = null;
|
|
182
181
|
}, oe = () => {
|
|
183
182
|
var e, n;
|
|
184
183
|
(n = (e = m.value) == null ? void 0 : e.focus) == null || n.call(e);
|
|
@@ -189,21 +188,21 @@ const xe = 100, Le = 600, ne = {
|
|
|
189
188
|
s("focus", e);
|
|
190
189
|
}, ce = (e) => {
|
|
191
190
|
var n, t;
|
|
192
|
-
|
|
193
|
-
},
|
|
194
|
-
|
|
191
|
+
l.userInput = null, l.currentValue === null && ((n = m.value) != null && n.input) && (m.value.input.value = ""), s("blur", e), r.validateEvent && ((t = p == null ? void 0 : p.validate) == null || t.call(p, "blur").catch((i) => Z()));
|
|
192
|
+
}, $ = () => {
|
|
193
|
+
l.currentValue !== r.modelValue && (l.currentValue = r.modelValue);
|
|
195
194
|
}, me = (e) => {
|
|
196
195
|
document.activeElement === e.target && e.preventDefault();
|
|
197
196
|
};
|
|
198
197
|
return W(() => r.modelValue, (e, n) => {
|
|
199
|
-
const t =
|
|
200
|
-
|
|
198
|
+
const t = R(e, !0);
|
|
199
|
+
l.userInput === null && t !== n && (l.currentValue = t);
|
|
201
200
|
}, { immediate: !0 }), W(() => r.precision, () => {
|
|
202
|
-
|
|
201
|
+
l.currentValue = R(r.modelValue);
|
|
203
202
|
}), be(() => {
|
|
204
203
|
var e;
|
|
205
204
|
const { min: n, max: t, modelValue: i } = r, o = (e = m.value) == null ? void 0 : e.input;
|
|
206
|
-
if (o.setAttribute("role", "spinbutton"), Number.isFinite(t) ? o.setAttribute("aria-valuemax", String(t)) : o.removeAttribute("aria-valuemax"), Number.isFinite(n) ? o.setAttribute("aria-valuemin", String(n)) : o.removeAttribute("aria-valuemin"), o.setAttribute("aria-valuenow",
|
|
205
|
+
if (o.setAttribute("role", "spinbutton"), Number.isFinite(t) ? o.setAttribute("aria-valuemax", String(t)) : o.removeAttribute("aria-valuemax"), Number.isFinite(n) ? o.setAttribute("aria-valuemin", String(n)) : o.removeAttribute("aria-valuemin"), o.setAttribute("aria-valuenow", l.currentValue || l.currentValue === 0 ? String(l.currentValue) : ""), o.setAttribute("aria-disabled", String(V.value)), !b(i) && i != null) {
|
|
207
206
|
let f = Number(i);
|
|
208
207
|
Number.isNaN(f) && (f = null), s(N, f);
|
|
209
208
|
}
|
|
@@ -211,76 +210,76 @@ const xe = 100, Le = 600, ne = {
|
|
|
211
210
|
}), ve(() => {
|
|
212
211
|
var e, n;
|
|
213
212
|
const t = (e = m.value) == null ? void 0 : e.input;
|
|
214
|
-
t == null || t.setAttribute("aria-valuenow", `${(n =
|
|
213
|
+
t == null || t.setAttribute("aria-valuenow", `${(n = l.currentValue) != null ? n : ""}`);
|
|
215
214
|
}), E({
|
|
216
215
|
focus: oe,
|
|
217
216
|
blur: se
|
|
218
|
-
}), (e, n) => (v(),
|
|
219
|
-
class:
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
217
|
+
}), (e, n) => (v(), x("div", {
|
|
218
|
+
class: K([
|
|
219
|
+
a(d).b(),
|
|
220
|
+
a(d).m(a(G)),
|
|
221
|
+
a(d).is("disabled", a(V)),
|
|
222
|
+
a(d).is("without-controls", !e.controls),
|
|
223
|
+
a(d).is("controls-right", a(k)),
|
|
224
|
+
a(d).is(e.align, !!e.align)
|
|
226
225
|
]),
|
|
227
226
|
onDragstart: Ne(() => {
|
|
228
227
|
}, ["prevent"])
|
|
229
228
|
}, [
|
|
230
|
-
e.controls ? X((v(),
|
|
229
|
+
e.controls ? X((v(), x("span", {
|
|
231
230
|
key: 0,
|
|
232
231
|
role: "button",
|
|
233
|
-
"aria-label":
|
|
234
|
-
class:
|
|
235
|
-
onKeydown:
|
|
232
|
+
"aria-label": a(I)("el.inputNumber.decrease"),
|
|
233
|
+
class: K([a(d).e("decrease"), a(d).is("disabled", a(g))]),
|
|
234
|
+
onKeydown: J(L, ["enter"])
|
|
236
235
|
}, [
|
|
237
236
|
A(e.$slots, "decrease-icon", {}, () => [
|
|
238
|
-
|
|
237
|
+
z(a(Q), null, {
|
|
239
238
|
default: P(() => [
|
|
240
|
-
|
|
239
|
+
a(k) ? (v(), F(a(Ie), { key: 0 })) : (v(), F(a(ge), { key: 1 }))
|
|
241
240
|
]),
|
|
242
241
|
_: 1
|
|
243
242
|
})
|
|
244
243
|
])
|
|
245
244
|
], 42, ["aria-label", "onKeydown"])), [
|
|
246
|
-
[
|
|
247
|
-
]) :
|
|
248
|
-
e.controls ? X((v(),
|
|
245
|
+
[a(ne), L]
|
|
246
|
+
]) : Y("v-if", !0),
|
|
247
|
+
e.controls ? X((v(), x("span", {
|
|
249
248
|
key: 1,
|
|
250
249
|
role: "button",
|
|
251
|
-
"aria-label":
|
|
252
|
-
class:
|
|
253
|
-
onKeydown:
|
|
250
|
+
"aria-label": a(I)("el.inputNumber.increase"),
|
|
251
|
+
class: K([a(d).e("increase"), a(d).is("disabled", a(O))]),
|
|
252
|
+
onKeydown: J(B, ["enter"])
|
|
254
253
|
}, [
|
|
255
254
|
A(e.$slots, "increase-icon", {}, () => [
|
|
256
|
-
|
|
255
|
+
z(a(Q), null, {
|
|
257
256
|
default: P(() => [
|
|
258
|
-
|
|
257
|
+
a(k) ? (v(), F(a(we), { key: 0 })) : (v(), F(a(_e), { key: 1 }))
|
|
259
258
|
]),
|
|
260
259
|
_: 1
|
|
261
260
|
})
|
|
262
261
|
])
|
|
263
262
|
], 42, ["aria-label", "onKeydown"])), [
|
|
264
|
-
[
|
|
265
|
-
]) :
|
|
266
|
-
|
|
263
|
+
[a(ne), B]
|
|
264
|
+
]) : Y("v-if", !0),
|
|
265
|
+
z(a(Ve), {
|
|
267
266
|
id: e.id,
|
|
268
267
|
ref_key: "input",
|
|
269
268
|
ref: m,
|
|
270
269
|
type: "number",
|
|
271
270
|
step: e.step,
|
|
272
|
-
"model-value":
|
|
271
|
+
"model-value": a(C),
|
|
273
272
|
placeholder: e.placeholder,
|
|
274
273
|
readonly: e.readonly,
|
|
275
|
-
disabled:
|
|
276
|
-
size:
|
|
274
|
+
disabled: a(V),
|
|
275
|
+
size: a(G),
|
|
277
276
|
max: e.max,
|
|
278
277
|
min: e.min,
|
|
279
278
|
name: e.name,
|
|
280
279
|
"aria-label": e.ariaLabel,
|
|
281
280
|
"validate-event": !1,
|
|
282
281
|
inputmode: e.inputmode,
|
|
283
|
-
onKeydown:
|
|
282
|
+
onKeydown: le,
|
|
284
283
|
onBlur: ce,
|
|
285
284
|
onFocus: de,
|
|
286
285
|
onInput: ue,
|
|
@@ -304,8 +303,8 @@ const xe = 100, Le = 600, ne = {
|
|
|
304
303
|
], 42, ["onDragstart"]));
|
|
305
304
|
}
|
|
306
305
|
});
|
|
307
|
-
var Oe = /* @__PURE__ */ Se(
|
|
308
|
-
const
|
|
306
|
+
var Oe = /* @__PURE__ */ Se(ze, [["__file", "input-number.vue"]]);
|
|
307
|
+
const Ye = Pe(Oe);
|
|
309
308
|
export {
|
|
310
|
-
|
|
309
|
+
Ye as E
|
|
311
310
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("vue"),I=require("./use-global-config-
|
|
1
|
+
"use strict";const a=require("vue"),I=require("./use-global-config-dc5527e8.cjs"),i=require("./base-7ba08794.cjs");function T(e,t){let n;const s=a.ref(!1),l=a.reactive({...e,originalPosition:"",originalOverflow:"",visible:!1});function r(o){l.text=o}function d(){const o=l.parent,v=f.ns;if(!o.vLoadingAddClassList){let u=o.getAttribute("loading-number");u=Number.parseInt(u)-1,u?o.setAttribute("loading-number",u.toString()):(i.removeClass(o,v.bm("parent","relative")),o.removeAttribute("loading-number")),i.removeClass(o,v.bm("parent","hidden"))}g(),b.unmount()}function g(){var o,v;(v=(o=f.$el)==null?void 0:o.parentNode)==null||v.removeChild(f.$el)}function C(){var o;e.beforeClose&&!e.beforeClose()||(s.value=!0,clearTimeout(n),n=setTimeout(c,400),l.visible=!1,(o=e.closed)==null||o.call(e))}function c(){if(!s.value)return;const o=l.parent;s.value=!1,o.vLoadingAddClassList=void 0,d()}const p=a.defineComponent({name:"ElLoading",setup(o,{expose:v}){const{ns:u,zIndex:w}=I.useGlobalComponentSettings("loading");return v({ns:u,zIndex:w}),()=>{const h=l.spinner||l.svg,S=a.h("svg",{class:"circular",viewBox:l.svgViewBox?l.svgViewBox:"0 0 50 50",...h?{innerHTML:h}:{}},[a.h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),B=l.text?a.h("p",{class:u.b("text")},[l.text]):void 0;return a.h(a.Transition,{name:u.b("fade"),onAfterLeave:c},{default:a.withCtx(()=>[a.withDirectives(a.createVNode("div",{style:{backgroundColor:l.background||""},class:[u.b("mask"),l.customClass,l.fullscreen?"is-fullscreen":""]},[a.h("div",{class:u.b("spinner")},[S,B])]),[[a.vShow,l.visible]])])})}}}),b=a.createApp(p);Object.assign(b._context,t??{});const f=b.mount(document.createElement("div"));return{...a.toRefs(l),setText:r,removeElLoadingChild:g,close:C,handleAfterLeave:c,vm:f,get $el(){return f.$el}}}let y;const _=function(e={}){if(!i.isClient)return;const t=$(e);if(t.fullscreen&&y)return y;const n=T({...t,closed:()=>{var l;(l=t.closed)==null||l.call(t),t.fullscreen&&(y=void 0)}},_._context);N(t,t.parent,n),k(t,t.parent,n),t.parent.vLoadingAddClassList=()=>k(t,t.parent,n);let s=t.parent.getAttribute("loading-number");return s?s=`${Number.parseInt(s)+1}`:s="1",t.parent.setAttribute("loading-number",s),t.parent.appendChild(n.$el),a.nextTick(()=>n.visible.value=t.visible),t.fullscreen&&(y=n),n},$=e=>{var t,n,s,l;let r;return i.isString(e.target)?r=(t=document.querySelector(e.target))!=null?t:document.body:r=e.target||document.body,{parent:r===document.body||e.body?document.body:r,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:r===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(s=e.lock)!=null?s:!1,customClass:e.customClass||"",visible:(l=e.visible)!=null?l:!0,beforeClose:e.beforeClose,closed:e.closed,target:r}},N=async(e,t,n)=>{const{nextZIndex:s}=n.vm.zIndex||n.vm._.exposed.zIndex,l={};if(e.fullscreen)n.originalPosition.value=i.getStyle(document.body,"position"),n.originalOverflow.value=i.getStyle(document.body,"overflow"),l.zIndex=s();else if(e.parent===document.body){n.originalPosition.value=i.getStyle(document.body,"position"),await a.nextTick();for(const r of["top","left"]){const d=r==="top"?"scrollTop":"scrollLeft";l[r]=`${e.target.getBoundingClientRect()[r]+document.body[d]+document.documentElement[d]-Number.parseInt(i.getStyle(document.body,`margin-${r}`),10)}px`}for(const r of["height","width"])l[r]=`${e.target.getBoundingClientRect()[r]}px`}else n.originalPosition.value=i.getStyle(t,"position");for(const[r,d]of Object.entries(l))n.$el.style[r]=d},k=(e,t,n)=>{const s=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?i.removeClass(t,s.bm("parent","relative")):i.addClass(t,s.bm("parent","relative")),e.fullscreen&&e.lock?i.addClass(t,s.bm("parent","hidden")):i.removeClass(t,s.bm("parent","hidden"))};_._context=null;const x=Symbol("ElLoading"),m=e=>`element-loading-${i.hyphenate(e)}`,A=(e,t)=>{var n,s,l,r;const d=t.instance,g=o=>i.isObject(t.value)?t.value[o]:void 0,C=o=>{const v=i.isString(o)&&(d==null?void 0:d[o])||o;return a.ref(v)},c=o=>C(g(o)||e.getAttribute(m(o))),p=(n=g("fullscreen"))!=null?n:t.modifiers.fullscreen,b={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:p,target:(s=g("target"))!=null?s:p?void 0:e,body:(l=g("body"))!=null?l:t.modifiers.body,lock:(r=g("lock"))!=null?r:t.modifiers.lock},f=_(b);f._context=L._context,e[x]={options:b,instance:f}},V=(e,t)=>{for(const n of Object.keys(e))a.isRef(e[n])&&(e[n].value=t[n])},L={mounted(e,t){t.value&&A(e,t)},updated(e,t){const n=e[x];if(!t.value){n==null||n.instance.close(),e[x]=null;return}n?V(n.options,i.isObject(t.value)?t.value:{text:e.getAttribute(m("text")),svg:e.getAttribute(m("svg")),svgViewBox:e.getAttribute(m("svgViewBox")),spinner:e.getAttribute(m("spinner")),background:e.getAttribute(m("background")),customClass:e.getAttribute(m("customClass"))}):A(e,t)},unmounted(e){var t;(t=e[x])==null||t.instance.close(),e[x]=null}};L._context=null;exports.vLoading=L;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as B, reactive as P, defineComponent as O, h as m, Transition as j, withCtx as z, withDirectives as R, createVNode as q, vShow as D, createApp as F, toRefs as G, nextTick as I, isRef as H } from "vue";
|
|
2
|
-
import { u as K } from "./use-global-config-
|
|
3
|
-
import {
|
|
2
|
+
import { u as K } from "./use-global-config-7bfbe48c.js";
|
|
3
|
+
import { t as C, a as M, m as S, v as b, x as k, p as $, y as Y } from "./base-aa512893.js";
|
|
4
4
|
function Z(e, t) {
|
|
5
5
|
let n;
|
|
6
6
|
const s = B(!1), o = P({
|