@varlet/ui 2.19.2 → 2.19.3
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/badge/Badge.mjs +24 -2
- package/es/badge/badge.css +1 -1
- package/es/badge/props.mjs +9 -1
- package/es/collapse/Collapse.mjs +31 -52
- package/es/collapse/provide.mjs +2 -2
- package/es/collapse-item/CollapseItem.mjs +8 -11
- package/es/date-picker/src/day-picker-panel.mjs +3 -2
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/input/Input.mjs +5 -1
- package/es/snackbar/style/index.mjs +1 -1
- package/es/style.css +1 -1
- package/es/varlet.esm.js +3876 -3858
- package/highlight/web-types.en-US.json +19 -1
- package/highlight/web-types.zh-CN.json +19 -1
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +218 -207
- package/package.json +7 -7
- package/types/badge.d.ts +2 -0
- package/types/collapse.d.ts +1 -1
- package/umd/varlet.js +5 -5
package/lib/varlet.cjs.js
CHANGED
|
@@ -8,21 +8,21 @@ const context = {
|
|
|
8
8
|
};
|
|
9
9
|
const _ContextComponent = vue.reactive(context);
|
|
10
10
|
var stdin_default$3w = vue.reactive(context);
|
|
11
|
-
var __defProp$
|
|
11
|
+
var __defProp$v = Object.defineProperty;
|
|
12
12
|
var __defProps$a = Object.defineProperties;
|
|
13
13
|
var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
|
|
14
|
-
var __getOwnPropSymbols$
|
|
15
|
-
var __hasOwnProp$
|
|
16
|
-
var __propIsEnum$
|
|
17
|
-
var __defNormalProp$
|
|
18
|
-
var __spreadValues$
|
|
14
|
+
var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
|
|
15
|
+
var __hasOwnProp$v = Object.prototype.hasOwnProperty;
|
|
16
|
+
var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
|
|
17
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
18
|
+
var __spreadValues$v = (a, b) => {
|
|
19
19
|
for (var prop in b || (b = {}))
|
|
20
|
-
if (__hasOwnProp$
|
|
21
|
-
__defNormalProp$
|
|
22
|
-
if (__getOwnPropSymbols$
|
|
23
|
-
for (var prop of __getOwnPropSymbols$
|
|
24
|
-
if (__propIsEnum$
|
|
25
|
-
__defNormalProp$
|
|
20
|
+
if (__hasOwnProp$v.call(b, prop))
|
|
21
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
22
|
+
if (__getOwnPropSymbols$v)
|
|
23
|
+
for (var prop of __getOwnPropSymbols$v(b)) {
|
|
24
|
+
if (__propIsEnum$v.call(b, prop))
|
|
25
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
26
26
|
}
|
|
27
27
|
return a;
|
|
28
28
|
};
|
|
@@ -55,6 +55,7 @@ var removeItem = (arr, item) => {
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
|
+
var removeArrayBlank = (arr) => arr.filter((item) => item != null);
|
|
58
59
|
var find = (arr, callback, from = "start") => {
|
|
59
60
|
let i = from === "start" ? 0 : arr.length - 1;
|
|
60
61
|
while (arr.length > 0 && i >= 0 && i <= arr.length - 1) {
|
|
@@ -113,7 +114,7 @@ var getRect = (element) => {
|
|
|
113
114
|
width,
|
|
114
115
|
height
|
|
115
116
|
};
|
|
116
|
-
return __spreadProps$a(__spreadValues$
|
|
117
|
+
return __spreadProps$a(__spreadValues$v({}, rect), {
|
|
117
118
|
toJSON: () => rect
|
|
118
119
|
});
|
|
119
120
|
}
|
|
@@ -216,30 +217,30 @@ function createNamespaceFn(namespace) {
|
|
|
216
217
|
};
|
|
217
218
|
};
|
|
218
219
|
}
|
|
219
|
-
var __defProp$
|
|
220
|
-
var __getOwnPropSymbols$
|
|
221
|
-
var __hasOwnProp$
|
|
222
|
-
var __propIsEnum$
|
|
223
|
-
var __defNormalProp$
|
|
224
|
-
var __spreadValues$
|
|
220
|
+
var __defProp$u = Object.defineProperty;
|
|
221
|
+
var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
|
|
222
|
+
var __hasOwnProp$u = Object.prototype.hasOwnProperty;
|
|
223
|
+
var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
|
|
224
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
225
|
+
var __spreadValues$u = (a, b) => {
|
|
225
226
|
for (var prop in b || (b = {}))
|
|
226
|
-
if (__hasOwnProp$
|
|
227
|
-
__defNormalProp$
|
|
228
|
-
if (__getOwnPropSymbols$
|
|
229
|
-
for (var prop of __getOwnPropSymbols$
|
|
230
|
-
if (__propIsEnum$
|
|
231
|
-
__defNormalProp$
|
|
227
|
+
if (__hasOwnProp$u.call(b, prop))
|
|
228
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
229
|
+
if (__getOwnPropSymbols$u)
|
|
230
|
+
for (var prop of __getOwnPropSymbols$u(b)) {
|
|
231
|
+
if (__propIsEnum$u.call(b, prop))
|
|
232
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
232
233
|
}
|
|
233
234
|
return a;
|
|
234
235
|
};
|
|
235
236
|
var __objRest = (source, exclude) => {
|
|
236
237
|
var target = {};
|
|
237
238
|
for (var prop in source)
|
|
238
|
-
if (__hasOwnProp$
|
|
239
|
+
if (__hasOwnProp$u.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
239
240
|
target[prop] = source[prop];
|
|
240
|
-
if (source != null && __getOwnPropSymbols$
|
|
241
|
-
for (var prop of __getOwnPropSymbols$
|
|
242
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
241
|
+
if (source != null && __getOwnPropSymbols$u)
|
|
242
|
+
for (var prop of __getOwnPropSymbols$u(source)) {
|
|
243
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$u.call(source, prop))
|
|
243
244
|
target[prop] = source[prop];
|
|
244
245
|
}
|
|
245
246
|
return target;
|
|
@@ -410,7 +411,7 @@ function useChildren(key) {
|
|
|
410
411
|
removeItem(childProviders, childProvider);
|
|
411
412
|
};
|
|
412
413
|
const bindChildren = (parentProvider) => {
|
|
413
|
-
vue.provide(key, __spreadValues$
|
|
414
|
+
vue.provide(key, __spreadValues$u({
|
|
414
415
|
childInstances,
|
|
415
416
|
collect,
|
|
416
417
|
clear: clear2
|
|
@@ -604,21 +605,21 @@ function useVModel(props2, key, options = {}) {
|
|
|
604
605
|
);
|
|
605
606
|
return proxy;
|
|
606
607
|
}
|
|
607
|
-
var __defProp$
|
|
608
|
+
var __defProp$t = Object.defineProperty;
|
|
608
609
|
var __defProps$9 = Object.defineProperties;
|
|
609
610
|
var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
|
|
610
|
-
var __getOwnPropSymbols$
|
|
611
|
-
var __hasOwnProp$
|
|
612
|
-
var __propIsEnum$
|
|
613
|
-
var __defNormalProp$
|
|
614
|
-
var __spreadValues$
|
|
611
|
+
var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
|
|
612
|
+
var __hasOwnProp$t = Object.prototype.hasOwnProperty;
|
|
613
|
+
var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
|
|
614
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
615
|
+
var __spreadValues$t = (a, b) => {
|
|
615
616
|
for (var prop in b || (b = {}))
|
|
616
|
-
if (__hasOwnProp$
|
|
617
|
-
__defNormalProp$
|
|
618
|
-
if (__getOwnPropSymbols$
|
|
619
|
-
for (var prop of __getOwnPropSymbols$
|
|
620
|
-
if (__propIsEnum$
|
|
621
|
-
__defNormalProp$
|
|
617
|
+
if (__hasOwnProp$t.call(b, prop))
|
|
618
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
619
|
+
if (__getOwnPropSymbols$t)
|
|
620
|
+
for (var prop of __getOwnPropSymbols$t(b)) {
|
|
621
|
+
if (__propIsEnum$t.call(b, prop))
|
|
622
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
622
623
|
}
|
|
623
624
|
return a;
|
|
624
625
|
};
|
|
@@ -667,7 +668,7 @@ function withPropsDefaultsSetter(target, props2) {
|
|
|
667
668
|
return;
|
|
668
669
|
}
|
|
669
670
|
if (isPlainObject(prop)) {
|
|
670
|
-
props2[key] = __spreadProps$9(__spreadValues$
|
|
671
|
+
props2[key] = __spreadProps$9(__spreadValues$t({}, prop), {
|
|
671
672
|
default: value
|
|
672
673
|
});
|
|
673
674
|
return;
|
|
@@ -694,7 +695,7 @@ function mount$1(component) {
|
|
|
694
695
|
function mountInstance(component, props2 = {}, eventListener = {}) {
|
|
695
696
|
const Host = {
|
|
696
697
|
setup() {
|
|
697
|
-
return () => vue.h(component, __spreadValues$
|
|
698
|
+
return () => vue.h(component, __spreadValues$t(__spreadValues$t({}, props2), eventListener));
|
|
698
699
|
}
|
|
699
700
|
};
|
|
700
701
|
const { unmount: unmount2 } = mount$1(Host);
|
|
@@ -778,21 +779,21 @@ function formatElevation(elevation2, defaultLevel) {
|
|
|
778
779
|
}
|
|
779
780
|
return `var-elevation--${elevation2}`;
|
|
780
781
|
}
|
|
781
|
-
var __defProp$
|
|
782
|
+
var __defProp$s = Object.defineProperty;
|
|
782
783
|
var __defProps$8 = Object.defineProperties;
|
|
783
784
|
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
|
784
|
-
var __getOwnPropSymbols$
|
|
785
|
-
var __hasOwnProp$
|
|
786
|
-
var __propIsEnum$
|
|
787
|
-
var __defNormalProp$
|
|
788
|
-
var __spreadValues$
|
|
785
|
+
var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
|
|
786
|
+
var __hasOwnProp$s = Object.prototype.hasOwnProperty;
|
|
787
|
+
var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
|
|
788
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
789
|
+
var __spreadValues$s = (a, b) => {
|
|
789
790
|
for (var prop in b || (b = {}))
|
|
790
|
-
if (__hasOwnProp$
|
|
791
|
-
__defNormalProp$
|
|
792
|
-
if (__getOwnPropSymbols$
|
|
793
|
-
for (var prop of __getOwnPropSymbols$
|
|
794
|
-
if (__propIsEnum$
|
|
795
|
-
__defNormalProp$
|
|
791
|
+
if (__hasOwnProp$s.call(b, prop))
|
|
792
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
793
|
+
if (__getOwnPropSymbols$s)
|
|
794
|
+
for (var prop of __getOwnPropSymbols$s(b)) {
|
|
795
|
+
if (__propIsEnum$s.call(b, prop))
|
|
796
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
796
797
|
}
|
|
797
798
|
return a;
|
|
798
799
|
};
|
|
@@ -875,7 +876,7 @@ function forbidRippleTask() {
|
|
|
875
876
|
}
|
|
876
877
|
function mounted$2(el, binding) {
|
|
877
878
|
var _a;
|
|
878
|
-
el._ripple = __spreadProps$8(__spreadValues$
|
|
879
|
+
el._ripple = __spreadProps$8(__spreadValues$s({
|
|
879
880
|
tasker: null
|
|
880
881
|
}, (_a = binding.value) != null ? _a : {}), {
|
|
881
882
|
removeRipple: removeRipple.bind(el)
|
|
@@ -903,7 +904,7 @@ function updated$2(el, binding) {
|
|
|
903
904
|
};
|
|
904
905
|
const diff2 = newBinding.color !== ((_c = el._ripple) == null ? void 0 : _c.color) || newBinding.disabled !== ((_d = el._ripple) == null ? void 0 : _d.disabled);
|
|
905
906
|
if (diff2) {
|
|
906
|
-
el._ripple = __spreadValues$
|
|
907
|
+
el._ripple = __spreadValues$s({
|
|
907
908
|
tasker: newBinding.disabled ? null : (_e = el._ripple) == null ? void 0 : _e.tasker,
|
|
908
909
|
removeRipple: (_f = el._ripple) == null ? void 0 : _f.removeRipple
|
|
909
910
|
}, newBinding);
|
|
@@ -1056,19 +1057,19 @@ function usePopupItems() {
|
|
|
1056
1057
|
bindPopupItems: bindChildren
|
|
1057
1058
|
};
|
|
1058
1059
|
}
|
|
1059
|
-
var __defProp$
|
|
1060
|
-
var __getOwnPropSymbols$
|
|
1061
|
-
var __hasOwnProp$
|
|
1062
|
-
var __propIsEnum$
|
|
1063
|
-
var __defNormalProp$
|
|
1064
|
-
var __spreadValues$
|
|
1060
|
+
var __defProp$r = Object.defineProperty;
|
|
1061
|
+
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
|
1062
|
+
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
|
1063
|
+
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
|
1064
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1065
|
+
var __spreadValues$r = (a, b) => {
|
|
1065
1066
|
for (var prop in b || (b = {}))
|
|
1066
|
-
if (__hasOwnProp$
|
|
1067
|
-
__defNormalProp$
|
|
1068
|
-
if (__getOwnPropSymbols$
|
|
1069
|
-
for (var prop of __getOwnPropSymbols$
|
|
1070
|
-
if (__propIsEnum$
|
|
1071
|
-
__defNormalProp$
|
|
1067
|
+
if (__hasOwnProp$r.call(b, prop))
|
|
1068
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
1069
|
+
if (__getOwnPropSymbols$r)
|
|
1070
|
+
for (var prop of __getOwnPropSymbols$r(b)) {
|
|
1071
|
+
if (__propIsEnum$r.call(b, prop))
|
|
1072
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
1072
1073
|
}
|
|
1073
1074
|
return a;
|
|
1074
1075
|
};
|
|
@@ -1121,7 +1122,7 @@ var stdin_default$3u = vue.defineComponent({
|
|
|
1121
1122
|
} = props2;
|
|
1122
1123
|
return vue.createVNode("div", {
|
|
1123
1124
|
"class": classes$19(n$1m("overlay"), overlayClass),
|
|
1124
|
-
"style": __spreadValues$
|
|
1125
|
+
"style": __spreadValues$r({
|
|
1125
1126
|
zIndex: zIndex.value - 1
|
|
1126
1127
|
}, overlayStyle),
|
|
1127
1128
|
"onClick": hidePopup
|
|
@@ -1424,23 +1425,23 @@ withInstall(stdin_default$3s);
|
|
|
1424
1425
|
withPropsDefaultsSetter(stdin_default$3s, props$1e);
|
|
1425
1426
|
const _IconComponent = stdin_default$3s;
|
|
1426
1427
|
var stdin_default$3r = stdin_default$3s;
|
|
1427
|
-
var __defProp$
|
|
1428
|
-
var __getOwnPropSymbols$
|
|
1429
|
-
var __hasOwnProp$
|
|
1430
|
-
var __propIsEnum$
|
|
1431
|
-
var __defNormalProp$
|
|
1432
|
-
var __spreadValues$
|
|
1428
|
+
var __defProp$q = Object.defineProperty;
|
|
1429
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
|
1430
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
1431
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
|
1432
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1433
|
+
var __spreadValues$q = (a, b) => {
|
|
1433
1434
|
for (var prop in b || (b = {}))
|
|
1434
|
-
if (__hasOwnProp$
|
|
1435
|
-
__defNormalProp$
|
|
1436
|
-
if (__getOwnPropSymbols$
|
|
1437
|
-
for (var prop of __getOwnPropSymbols$
|
|
1438
|
-
if (__propIsEnum$
|
|
1439
|
-
__defNormalProp$
|
|
1435
|
+
if (__hasOwnProp$q.call(b, prop))
|
|
1436
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
1437
|
+
if (__getOwnPropSymbols$q)
|
|
1438
|
+
for (var prop of __getOwnPropSymbols$q(b)) {
|
|
1439
|
+
if (__propIsEnum$q.call(b, prop))
|
|
1440
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
1440
1441
|
}
|
|
1441
1442
|
return a;
|
|
1442
1443
|
};
|
|
1443
|
-
const props$1d = __spreadValues$
|
|
1444
|
+
const props$1d = __spreadValues$q({
|
|
1444
1445
|
show: Boolean,
|
|
1445
1446
|
title: String,
|
|
1446
1447
|
actions: {
|
|
@@ -1782,19 +1783,19 @@ var stdin_default$3o = {
|
|
|
1782
1783
|
paginationJump: "前往"
|
|
1783
1784
|
};
|
|
1784
1785
|
var stdin_default$3n = stdin_default$3o;
|
|
1785
|
-
var __defProp$
|
|
1786
|
-
var __getOwnPropSymbols$
|
|
1787
|
-
var __hasOwnProp$
|
|
1788
|
-
var __propIsEnum$
|
|
1789
|
-
var __defNormalProp$
|
|
1790
|
-
var __spreadValues$
|
|
1786
|
+
var __defProp$p = Object.defineProperty;
|
|
1787
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
1788
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
1789
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
1790
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1791
|
+
var __spreadValues$p = (a, b) => {
|
|
1791
1792
|
for (var prop in b || (b = {}))
|
|
1792
|
-
if (__hasOwnProp$
|
|
1793
|
-
__defNormalProp$
|
|
1794
|
-
if (__getOwnPropSymbols$
|
|
1795
|
-
for (var prop of __getOwnPropSymbols$
|
|
1796
|
-
if (__propIsEnum$
|
|
1797
|
-
__defNormalProp$
|
|
1793
|
+
if (__hasOwnProp$p.call(b, prop))
|
|
1794
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
1795
|
+
if (__getOwnPropSymbols$p)
|
|
1796
|
+
for (var prop of __getOwnPropSymbols$p(b)) {
|
|
1797
|
+
if (__propIsEnum$p.call(b, prop))
|
|
1798
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
1798
1799
|
}
|
|
1799
1800
|
return a;
|
|
1800
1801
|
};
|
|
@@ -1817,7 +1818,7 @@ function useLocale() {
|
|
|
1817
1818
|
console.warn(`The ${lang} does not exist. You can mount a language package using the add method`);
|
|
1818
1819
|
return;
|
|
1819
1820
|
}
|
|
1820
|
-
packs2[lang] = __spreadValues$
|
|
1821
|
+
packs2[lang] = __spreadValues$p(__spreadValues$p({}, packs2[lang]), pack3);
|
|
1821
1822
|
use2(lang);
|
|
1822
1823
|
};
|
|
1823
1824
|
return {
|
|
@@ -1977,26 +1978,26 @@ const __sfc__$1l = vue.defineComponent({
|
|
|
1977
1978
|
});
|
|
1978
1979
|
__sfc__$1l.render = __render__$1k;
|
|
1979
1980
|
var stdin_default$3l = __sfc__$1l;
|
|
1980
|
-
var __defProp$
|
|
1981
|
-
var __getOwnPropSymbols$
|
|
1982
|
-
var __hasOwnProp$
|
|
1983
|
-
var __propIsEnum$
|
|
1984
|
-
var __defNormalProp$
|
|
1985
|
-
var __spreadValues$
|
|
1981
|
+
var __defProp$o = Object.defineProperty;
|
|
1982
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
1983
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
1984
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
1985
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1986
|
+
var __spreadValues$o = (a, b) => {
|
|
1986
1987
|
for (var prop in b || (b = {}))
|
|
1987
|
-
if (__hasOwnProp$
|
|
1988
|
-
__defNormalProp$
|
|
1989
|
-
if (__getOwnPropSymbols$
|
|
1990
|
-
for (var prop of __getOwnPropSymbols$
|
|
1991
|
-
if (__propIsEnum$
|
|
1992
|
-
__defNormalProp$
|
|
1988
|
+
if (__hasOwnProp$o.call(b, prop))
|
|
1989
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
1990
|
+
if (__getOwnPropSymbols$o)
|
|
1991
|
+
for (var prop of __getOwnPropSymbols$o(b)) {
|
|
1992
|
+
if (__propIsEnum$o.call(b, prop))
|
|
1993
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
1993
1994
|
}
|
|
1994
1995
|
return a;
|
|
1995
1996
|
};
|
|
1996
1997
|
let singletonOptions$3;
|
|
1997
1998
|
let defaultOptions$3 = {};
|
|
1998
1999
|
function normalizeOptions$3(options = {}) {
|
|
1999
|
-
return __spreadValues$
|
|
2000
|
+
return __spreadValues$o(__spreadValues$o({}, defaultOptions$3), options);
|
|
2000
2001
|
}
|
|
2001
2002
|
function ActionSheet(options) {
|
|
2002
2003
|
if (!inBrowser()) {
|
|
@@ -2268,19 +2269,19 @@ const padStart$1 = (str = "", maxLength, fillString = "") => {
|
|
|
2268
2269
|
const repeatCount = Math.floor(len / fillString.length);
|
|
2269
2270
|
return fillString.repeat(repeatCount) + fillString.slice(0, len % fillString.length) + str;
|
|
2270
2271
|
};
|
|
2271
|
-
var __defProp$
|
|
2272
|
-
var __getOwnPropSymbols$
|
|
2273
|
-
var __hasOwnProp$
|
|
2274
|
-
var __propIsEnum$
|
|
2275
|
-
var __defNormalProp$
|
|
2276
|
-
var __spreadValues$
|
|
2272
|
+
var __defProp$n = Object.defineProperty;
|
|
2273
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
2274
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
2275
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
2276
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2277
|
+
var __spreadValues$n = (a, b) => {
|
|
2277
2278
|
for (var prop in b || (b = {}))
|
|
2278
|
-
if (__hasOwnProp$
|
|
2279
|
-
__defNormalProp$
|
|
2280
|
-
if (__getOwnPropSymbols$
|
|
2281
|
-
for (var prop of __getOwnPropSymbols$
|
|
2282
|
-
if (__propIsEnum$
|
|
2283
|
-
__defNormalProp$
|
|
2279
|
+
if (__hasOwnProp$n.call(b, prop))
|
|
2280
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
2281
|
+
if (__getOwnPropSymbols$n)
|
|
2282
|
+
for (var prop of __getOwnPropSymbols$n(b)) {
|
|
2283
|
+
if (__propIsEnum$n.call(b, prop))
|
|
2284
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
2284
2285
|
}
|
|
2285
2286
|
return a;
|
|
2286
2287
|
};
|
|
@@ -2370,7 +2371,7 @@ function createLazy(el, binding) {
|
|
|
2370
2371
|
error: (_b = el.getAttribute(LAZY_ERROR)) != null ? _b : defaultLazyOptions.error,
|
|
2371
2372
|
attempt: el.getAttribute(LAZY_ATTEMPT) ? Number(el.getAttribute(LAZY_ATTEMPT)) : defaultLazyOptions.attempt
|
|
2372
2373
|
};
|
|
2373
|
-
el._lazy = __spreadValues$
|
|
2374
|
+
el._lazy = __spreadValues$n({
|
|
2374
2375
|
src: binding.value,
|
|
2375
2376
|
arg: binding.arg,
|
|
2376
2377
|
currentAttempt: 0,
|
|
@@ -3037,21 +3038,21 @@ const Hover = {
|
|
|
3037
3038
|
};
|
|
3038
3039
|
const _HoverComponent = Hover;
|
|
3039
3040
|
var stdin_default$38 = Hover;
|
|
3040
|
-
var __defProp$
|
|
3041
|
+
var __defProp$m = Object.defineProperty;
|
|
3041
3042
|
var __defProps$7 = Object.defineProperties;
|
|
3042
3043
|
var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
|
|
3043
|
-
var __getOwnPropSymbols$
|
|
3044
|
-
var __hasOwnProp$
|
|
3045
|
-
var __propIsEnum$
|
|
3046
|
-
var __defNormalProp$
|
|
3047
|
-
var __spreadValues$
|
|
3044
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
3045
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
3046
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
3047
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3048
|
+
var __spreadValues$m = (a, b) => {
|
|
3048
3049
|
for (var prop in b || (b = {}))
|
|
3049
|
-
if (__hasOwnProp$
|
|
3050
|
-
__defNormalProp$
|
|
3051
|
-
if (__getOwnPropSymbols$
|
|
3052
|
-
for (var prop of __getOwnPropSymbols$
|
|
3053
|
-
if (__propIsEnum$
|
|
3054
|
-
__defNormalProp$
|
|
3050
|
+
if (__hasOwnProp$m.call(b, prop))
|
|
3051
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
3052
|
+
if (__getOwnPropSymbols$m)
|
|
3053
|
+
for (var prop of __getOwnPropSymbols$m(b)) {
|
|
3054
|
+
if (__propIsEnum$m.call(b, prop))
|
|
3055
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
3055
3056
|
}
|
|
3056
3057
|
return a;
|
|
3057
3058
|
};
|
|
@@ -3083,7 +3084,7 @@ const props$17 = {
|
|
|
3083
3084
|
loadingRadius: [Number, String],
|
|
3084
3085
|
loadingType: pickProps(props$19, "type"),
|
|
3085
3086
|
loadingSize: pickProps(props$19, "size"),
|
|
3086
|
-
loadingColor: __spreadProps$7(__spreadValues$
|
|
3087
|
+
loadingColor: __spreadProps$7(__spreadValues$m({}, pickProps(props$19, "color")), {
|
|
3087
3088
|
default: "currentColor"
|
|
3088
3089
|
}),
|
|
3089
3090
|
onClick: defineListenerProp(),
|
|
@@ -3378,7 +3379,31 @@ const props$15 = {
|
|
|
3378
3379
|
dot: Boolean,
|
|
3379
3380
|
icon: pickProps(props$1e, "name"),
|
|
3380
3381
|
namespace: pickProps(props$1e, "namespace"),
|
|
3381
|
-
color: String
|
|
3382
|
+
color: String,
|
|
3383
|
+
offsetX: {
|
|
3384
|
+
type: [String, Number],
|
|
3385
|
+
default: 0
|
|
3386
|
+
},
|
|
3387
|
+
offsetY: {
|
|
3388
|
+
type: [String, Number],
|
|
3389
|
+
default: 0
|
|
3390
|
+
}
|
|
3391
|
+
};
|
|
3392
|
+
var __defProp$l = Object.defineProperty;
|
|
3393
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
3394
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
3395
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
3396
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3397
|
+
var __spreadValues$l = (a, b) => {
|
|
3398
|
+
for (var prop in b || (b = {}))
|
|
3399
|
+
if (__hasOwnProp$l.call(b, prop))
|
|
3400
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
3401
|
+
if (__getOwnPropSymbols$l)
|
|
3402
|
+
for (var prop of __getOwnPropSymbols$l(b)) {
|
|
3403
|
+
if (__propIsEnum$l.call(b, prop))
|
|
3404
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
3405
|
+
}
|
|
3406
|
+
return a;
|
|
3382
3407
|
};
|
|
3383
3408
|
const { name: name$15, n: n$1c, classes: classes$$ } = createNamespace("badge");
|
|
3384
3409
|
const _hoisted_1$q = { key: 0 };
|
|
@@ -3402,11 +3427,11 @@ function __render__$1c(_ctx, _cache) {
|
|
|
3402
3427
|
class: _ctx.classes(
|
|
3403
3428
|
_ctx.n("content"),
|
|
3404
3429
|
_ctx.n(`--${_ctx.type}`),
|
|
3405
|
-
[_ctx.$slots.default, _ctx.n(`--${_ctx.position}`)],
|
|
3430
|
+
[_ctx.$slots.default, _ctx.n(`--${_ctx.position}`), _ctx.n("--offset")],
|
|
3406
3431
|
[_ctx.dot, _ctx.n("--dot")],
|
|
3407
3432
|
[_ctx.icon, _ctx.n("--icon")]
|
|
3408
3433
|
),
|
|
3409
|
-
style: { background: _ctx.color }
|
|
3434
|
+
style: __spreadValues$l({ background: _ctx.color }, _ctx.offsetStyle)
|
|
3410
3435
|
}, _ctx.$attrs),
|
|
3411
3436
|
[
|
|
3412
3437
|
_ctx.icon ? (vue.openBlock(), vue.createBlock(_component_var_icon, {
|
|
@@ -3450,8 +3475,13 @@ const __sfc__$1d = vue.defineComponent({
|
|
|
3450
3475
|
const { value: value2, maxValue } = props2;
|
|
3451
3476
|
return value2 != null && maxValue != null && toNumber(value2) > toNumber(maxValue) ? `${maxValue}+` : value2;
|
|
3452
3477
|
});
|
|
3478
|
+
const offsetStyle = vue.computed(() => ({
|
|
3479
|
+
[`--badge-offset-y`]: toSizeUnit(props2.offsetY),
|
|
3480
|
+
[`--badge-offset-x`]: toSizeUnit(props2.offsetX)
|
|
3481
|
+
}));
|
|
3453
3482
|
return {
|
|
3454
3483
|
value,
|
|
3484
|
+
offsetStyle,
|
|
3455
3485
|
n: n$1c,
|
|
3456
3486
|
classes: classes$$
|
|
3457
3487
|
};
|
|
@@ -5325,8 +5355,8 @@ function useCollapseItem() {
|
|
|
5325
5355
|
);
|
|
5326
5356
|
return {
|
|
5327
5357
|
length,
|
|
5328
|
-
|
|
5329
|
-
|
|
5358
|
+
collapseItems: childProviders,
|
|
5359
|
+
bindCollapseItems: bindChildren
|
|
5330
5360
|
};
|
|
5331
5361
|
}
|
|
5332
5362
|
const props$U = {
|
|
@@ -5365,13 +5395,12 @@ const __sfc__$10 = vue.defineComponent({
|
|
|
5365
5395
|
name: name$U,
|
|
5366
5396
|
props: props$U,
|
|
5367
5397
|
setup(props2) {
|
|
5368
|
-
const active = vue.computed(() => props2.modelValue);
|
|
5369
5398
|
const offset2 = vue.computed(() => props2.offset);
|
|
5370
5399
|
const divider2 = vue.computed(() => props2.divider);
|
|
5371
5400
|
const elevation2 = vue.computed(() => props2.elevation);
|
|
5372
|
-
const
|
|
5401
|
+
const normalizeValues = vue.computed(() => normalizeToArray(props2.modelValue));
|
|
5402
|
+
const { length, collapseItems, bindCollapseItems } = useCollapseItem();
|
|
5373
5403
|
const collapseProvider = {
|
|
5374
|
-
active,
|
|
5375
5404
|
offset: offset2,
|
|
5376
5405
|
divider: divider2,
|
|
5377
5406
|
elevation: elevation2,
|
|
@@ -5385,64 +5414,44 @@ const __sfc__$10 = vue.defineComponent({
|
|
|
5385
5414
|
() => props2.modelValue,
|
|
5386
5415
|
() => vue.nextTick().then(resize)
|
|
5387
5416
|
);
|
|
5388
|
-
|
|
5389
|
-
function
|
|
5390
|
-
if (
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
if (props2.accordion && isArray(props2.modelValue)) {
|
|
5395
|
-
console.error('[Varlet] Collapse: type of prop "modelValue" should be a String or Number');
|
|
5396
|
-
return false;
|
|
5417
|
+
bindCollapseItems(collapseProvider);
|
|
5418
|
+
function updateItem(itemValue, targetExpand) {
|
|
5419
|
+
if (props2.accordion) {
|
|
5420
|
+
const modelValue2 = targetExpand ? itemValue : void 0;
|
|
5421
|
+
updateModelValue(modelValue2);
|
|
5422
|
+
return;
|
|
5397
5423
|
}
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
function getValue(value, isExpand) {
|
|
5401
|
-
if (!checkValue())
|
|
5402
|
-
return null;
|
|
5403
|
-
if (isExpand)
|
|
5404
|
-
return props2.accordion ? value : [...props2.modelValue, value];
|
|
5405
|
-
return props2.accordion ? null : props2.modelValue.filter((name2) => name2 !== value);
|
|
5424
|
+
const modelValue = targetExpand ? [...normalizeValues.value, itemValue] : normalizeValues.value.filter((value) => value !== itemValue);
|
|
5425
|
+
updateModelValue(modelValue);
|
|
5406
5426
|
}
|
|
5407
|
-
function
|
|
5408
|
-
const modelValue = getValue(value, isExpand);
|
|
5427
|
+
function updateModelValue(modelValue) {
|
|
5409
5428
|
call(props2["onUpdate:modelValue"], modelValue);
|
|
5410
5429
|
call(props2.onChange, modelValue);
|
|
5411
5430
|
}
|
|
5412
|
-
function
|
|
5431
|
+
function matchItems() {
|
|
5413
5432
|
if (props2.accordion) {
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
function matchIndex() {
|
|
5424
|
-
if (props2.accordion) {
|
|
5425
|
-
return collapseItem2.find(
|
|
5426
|
-
({ index, name: name2 }) => name2.value === void 0 && props2.modelValue === index.value
|
|
5427
|
-
);
|
|
5433
|
+
const [value] = normalizeValues.value;
|
|
5434
|
+
if (value == null) {
|
|
5435
|
+
return;
|
|
5436
|
+
}
|
|
5437
|
+
const matchedNameItem = collapseItems.find(({ name: name2 }) => value === name2.value);
|
|
5438
|
+
if (matchedNameItem == null) {
|
|
5439
|
+
return collapseItems.find(({ index, name: name2 }) => name2.value == null && value === index.value);
|
|
5440
|
+
}
|
|
5441
|
+
return matchedNameItem;
|
|
5428
5442
|
}
|
|
5429
|
-
|
|
5430
|
-
({
|
|
5443
|
+
const matchedNameItems = collapseItems.filter(
|
|
5444
|
+
({ name: name2 }) => name2.value != null && normalizeValues.value.includes(name2.value)
|
|
5431
5445
|
);
|
|
5446
|
+
const matchedIndexItems = collapseItems.filter(
|
|
5447
|
+
({ index, name: name2 }) => name2.value == null && normalizeValues.value.includes(index.value)
|
|
5448
|
+
);
|
|
5449
|
+
return [...matchedNameItems, ...matchedIndexItems];
|
|
5432
5450
|
}
|
|
5433
5451
|
function resize() {
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
if (props2.accordion && !matchProviders || !props2.accordion && !matchProviders.length) {
|
|
5438
|
-
collapseItem2.forEach((provider) => {
|
|
5439
|
-
provider.init(props2.accordion, false);
|
|
5440
|
-
});
|
|
5441
|
-
return;
|
|
5442
|
-
}
|
|
5443
|
-
collapseItem2.forEach((provider) => {
|
|
5444
|
-
const isShow = props2.accordion ? matchProviders === provider : matchProviders.includes(provider);
|
|
5445
|
-
provider.init(props2.accordion, isShow);
|
|
5452
|
+
const matchedItems = removeArrayBlank(normalizeToArray(matchItems()));
|
|
5453
|
+
collapseItems.forEach((collapseItem2) => {
|
|
5454
|
+
collapseItem2.init(matchedItems.includes(collapseItem2));
|
|
5446
5455
|
});
|
|
5447
5456
|
}
|
|
5448
5457
|
return {
|
|
@@ -5522,7 +5531,7 @@ function __render__$_(_ctx, _cache) {
|
|
|
5522
5531
|
"div",
|
|
5523
5532
|
{
|
|
5524
5533
|
class: vue.normalizeClass(_ctx.n("header")),
|
|
5525
|
-
onClick: _cache[0] || (_cache[0] = (
|
|
5534
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.toggle && _ctx.toggle(...args))
|
|
5526
5535
|
},
|
|
5527
5536
|
[
|
|
5528
5537
|
vue.createElementVNode(
|
|
@@ -5612,7 +5621,7 @@ const __sfc__$$ = vue.defineComponent({
|
|
|
5612
5621
|
const contentEl = vue.ref(null);
|
|
5613
5622
|
const name2 = vue.computed(() => props2.name);
|
|
5614
5623
|
const { index, collapse, bindCollapse } = useCollapse();
|
|
5615
|
-
const {
|
|
5624
|
+
const { offset: offset2, divider: divider2, elevation: elevation2, updateItem } = collapse;
|
|
5616
5625
|
const collapseItemProvider = {
|
|
5617
5626
|
index,
|
|
5618
5627
|
name: name2,
|
|
@@ -5661,18 +5670,15 @@ const __sfc__$$ = vue.defineComponent({
|
|
|
5661
5670
|
contentEl.value.style.height = "0px";
|
|
5662
5671
|
});
|
|
5663
5672
|
}
|
|
5664
|
-
function init(
|
|
5665
|
-
if (active.value === void 0 || accordion && isArray(active.value) || show === isShow.value)
|
|
5666
|
-
return;
|
|
5673
|
+
function init(show) {
|
|
5667
5674
|
isShow.value = show;
|
|
5668
|
-
toggle(true);
|
|
5669
5675
|
}
|
|
5670
|
-
function toggle(
|
|
5671
|
-
|
|
5676
|
+
function toggle() {
|
|
5677
|
+
var _a;
|
|
5678
|
+
if (props2.disabled) {
|
|
5672
5679
|
return;
|
|
5673
|
-
if (!initOrAccordion) {
|
|
5674
|
-
updateItem(props2.name || index.value, !isShow.value);
|
|
5675
5680
|
}
|
|
5681
|
+
updateItem((_a = props2.name) != null ? _a : index.value, !isShow.value);
|
|
5676
5682
|
}
|
|
5677
5683
|
function start2() {
|
|
5678
5684
|
isInitToTrigger = false;
|
|
@@ -10087,9 +10093,10 @@ const __sfc__$U = vue.defineComponent({
|
|
|
10087
10093
|
);
|
|
10088
10094
|
const sortWeekList = vue.computed(() => {
|
|
10089
10095
|
const index = WEEK_HEADER.findIndex((week) => week === props2.componentProps.firstDayOfWeek);
|
|
10090
|
-
if (index === -1 || index === 0)
|
|
10096
|
+
if (index === -1 || index === 0) {
|
|
10091
10097
|
return WEEK_HEADER;
|
|
10092
|
-
|
|
10098
|
+
}
|
|
10099
|
+
return [...WEEK_HEADER.slice(index), ...WEEK_HEADER.slice(0, index)];
|
|
10093
10100
|
});
|
|
10094
10101
|
const getDayAbbr = (key) => {
|
|
10095
10102
|
var _a, _b;
|
|
@@ -16155,7 +16162,11 @@ const __sfc__$E = vue.defineComponent({
|
|
|
16155
16162
|
if (props2.type === "number") {
|
|
16156
16163
|
value = formatNumber(value);
|
|
16157
16164
|
}
|
|
16158
|
-
|
|
16165
|
+
const targetValue = withMaxlength(withTrim(value));
|
|
16166
|
+
if (targetValue === props2.modelValue) {
|
|
16167
|
+
target.value = targetValue;
|
|
16168
|
+
}
|
|
16169
|
+
return targetValue;
|
|
16159
16170
|
}
|
|
16160
16171
|
function handleCompositionStart() {
|
|
16161
16172
|
isComposing.value = true;
|
|
@@ -25009,9 +25020,9 @@ const skeleton = "";
|
|
|
25009
25020
|
const SkeletonSfc = "";
|
|
25010
25021
|
const slider = "";
|
|
25011
25022
|
const SliderSfc = "";
|
|
25023
|
+
const SnackbarSfc = "";
|
|
25012
25024
|
const snackbar = "";
|
|
25013
25025
|
const coreSfc = "";
|
|
25014
|
-
const SnackbarSfc = "";
|
|
25015
25026
|
const space = "";
|
|
25016
25027
|
const step = "";
|
|
25017
25028
|
const StepSfc = "";
|
|
@@ -25038,7 +25049,7 @@ const uploader = "";
|
|
|
25038
25049
|
const UploaderSfc = "";
|
|
25039
25050
|
const watermark = "";
|
|
25040
25051
|
const WatermarkSfc = "";
|
|
25041
|
-
const version = "2.19.
|
|
25052
|
+
const version = "2.19.3";
|
|
25042
25053
|
function install(app) {
|
|
25043
25054
|
stdin_default$3k.install && app.use(stdin_default$3k);
|
|
25044
25055
|
stdin_default$3i.install && app.use(stdin_default$3i);
|