@varlet/ui 3.11.4 → 3.11.5-alpha.1757700927355
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/action-sheet/style/index.mjs +1 -1
- package/es/date-picker/src/day-picker-panel.mjs +2 -3
- package/es/date-picker/src/month-picker-panel.mjs +2 -3
- package/es/date-picker/src/year-picker-panel.mjs +2 -3
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/loading/Loading.mjs +3 -3
- package/es/result/Empty.mjs +3 -3
- package/es/result/Error.mjs +3 -3
- package/es/result/Info.mjs +3 -3
- package/es/result/Question.mjs +3 -3
- package/es/result/Warning.mjs +3 -3
- package/es/switch/Switch.mjs +3 -3
- package/es/varlet.css +1 -1
- package/es/varlet.esm.js +1269 -1272
- package/highlight/web-types.en-US.json +1 -1
- package/highlight/web-types.zh-CN.json +1 -1
- package/lib/varlet.cjs.js +41 -44
- package/package.json +13 -13
- package/umd/varlet.js +6 -6
package/lib/varlet.cjs.js
CHANGED
|
@@ -9195,7 +9195,7 @@ function __render__$1c(_ctx, _cache) {
|
|
|
9195
9195
|
color: _ctx.color
|
|
9196
9196
|
})
|
|
9197
9197
|
},
|
|
9198
|
-
_cache[0] || (_cache[0] = [
|
|
9198
|
+
[..._cache[0] || (_cache[0] = [
|
|
9199
9199
|
vue.createElementVNode(
|
|
9200
9200
|
"svg",
|
|
9201
9201
|
{ viewBox: "25 25 50 50" },
|
|
@@ -9208,9 +9208,9 @@ function __render__$1c(_ctx, _cache) {
|
|
|
9208
9208
|
})
|
|
9209
9209
|
],
|
|
9210
9210
|
-1
|
|
9211
|
-
/*
|
|
9211
|
+
/* CACHED */
|
|
9212
9212
|
)
|
|
9213
|
-
]),
|
|
9213
|
+
])],
|
|
9214
9214
|
6
|
|
9215
9215
|
/* CLASS, STYLE */
|
|
9216
9216
|
)
|
|
@@ -12252,7 +12252,7 @@ var EXP_LIMIT = 9e15, MAX_DIGITS = 1e9, NUMERALS = "0123456789abcdef", LN10 = "2
|
|
|
12252
12252
|
// 0 to EXP_LIMIT
|
|
12253
12253
|
// The minimum exponent value, beneath which underflow to zero occurs.
|
|
12254
12254
|
// JavaScript numbers: -324 (5e-324)
|
|
12255
|
-
minE: -
|
|
12255
|
+
minE: -EXP_LIMIT,
|
|
12256
12256
|
// -1 to -EXP_LIMIT
|
|
12257
12257
|
// The maximum exponent value, above which overflow to Infinity occurs.
|
|
12258
12258
|
// JavaScript numbers: 308 (1.7976931348623157e+308)
|
|
@@ -13233,7 +13233,7 @@ function cosine(Ctor, x) {
|
|
|
13233
13233
|
Ctor.precision -= k;
|
|
13234
13234
|
return x;
|
|
13235
13235
|
}
|
|
13236
|
-
var divide = /* @__PURE__ */ function() {
|
|
13236
|
+
var divide = /* @__PURE__ */ (function() {
|
|
13237
13237
|
function multiplyInteger(x, k, base) {
|
|
13238
13238
|
var temp, carry = 0, i = x.length;
|
|
13239
13239
|
for (x = x.slice(); i--; ) {
|
|
@@ -13391,7 +13391,7 @@ var divide = /* @__PURE__ */ function() {
|
|
|
13391
13391
|
}
|
|
13392
13392
|
return q;
|
|
13393
13393
|
};
|
|
13394
|
-
}();
|
|
13394
|
+
})();
|
|
13395
13395
|
function finalise(x, sd, rm, isTruncated) {
|
|
13396
13396
|
var digits, i, j, k, rd, roundUp, w, xd, xdi, Ctor = x.constructor;
|
|
13397
13397
|
out: if (sd != null) {
|
|
@@ -14006,7 +14006,7 @@ function config(obj) {
|
|
|
14006
14006
|
0,
|
|
14007
14007
|
8,
|
|
14008
14008
|
"toExpNeg",
|
|
14009
|
-
-
|
|
14009
|
+
-EXP_LIMIT,
|
|
14010
14010
|
0,
|
|
14011
14011
|
"toExpPos",
|
|
14012
14012
|
0,
|
|
@@ -14015,7 +14015,7 @@ function config(obj) {
|
|
|
14015
14015
|
0,
|
|
14016
14016
|
EXP_LIMIT,
|
|
14017
14017
|
"minE",
|
|
14018
|
-
-
|
|
14018
|
+
-EXP_LIMIT,
|
|
14019
14019
|
0,
|
|
14020
14020
|
"modulo",
|
|
14021
14021
|
0,
|
|
@@ -14860,7 +14860,7 @@ var parseDate = function parseDate2(cfg) {
|
|
|
14860
14860
|
}
|
|
14861
14861
|
return new Date(date);
|
|
14862
14862
|
};
|
|
14863
|
-
var Dayjs = /* @__PURE__ */ function() {
|
|
14863
|
+
var Dayjs = /* @__PURE__ */ (function() {
|
|
14864
14864
|
function Dayjs2(cfg) {
|
|
14865
14865
|
this.$L = parseLocale(cfg.locale, null, true);
|
|
14866
14866
|
this.parse(cfg);
|
|
@@ -15092,7 +15092,7 @@ var Dayjs = /* @__PURE__ */ function() {
|
|
|
15092
15092
|
return this.$d.toUTCString();
|
|
15093
15093
|
};
|
|
15094
15094
|
return Dayjs2;
|
|
15095
|
-
}();
|
|
15095
|
+
})();
|
|
15096
15096
|
var proto = Dayjs.prototype;
|
|
15097
15097
|
dayjs.prototype = proto;
|
|
15098
15098
|
[["$ms", MS], ["$s", S], ["$m", MIN$1], ["$H", H], ["$W", D], ["$M", M], ["$y", Y], ["$D", DATE]].forEach(function(g) {
|
|
@@ -15156,16 +15156,16 @@ const props$N = {
|
|
|
15156
15156
|
onChange: defineListenerProp(),
|
|
15157
15157
|
"onUpdate:modelValue": defineListenerProp()
|
|
15158
15158
|
};
|
|
15159
|
-
const isSameOrAfter = function(o, c) {
|
|
15159
|
+
const isSameOrAfter = (function(o, c) {
|
|
15160
15160
|
c.prototype.isSameOrAfter = function(that, units) {
|
|
15161
15161
|
return this.isSame(that, units) || this.isAfter(that, units);
|
|
15162
15162
|
};
|
|
15163
|
-
};
|
|
15164
|
-
const isSameOrBefore = function(o, c) {
|
|
15163
|
+
});
|
|
15164
|
+
const isSameOrBefore = (function(o, c) {
|
|
15165
15165
|
c.prototype.isSameOrBefore = function(that, units) {
|
|
15166
15166
|
return this.isSame(that, units) || this.isBefore(that, units);
|
|
15167
15167
|
};
|
|
15168
|
-
};
|
|
15168
|
+
});
|
|
15169
15169
|
const { n: n$V } = createNamespace("date-picker-header");
|
|
15170
15170
|
function __render__$T(_ctx, _cache) {
|
|
15171
15171
|
const _component_var_icon = vue.resolveComponent("var-icon");
|
|
@@ -15386,9 +15386,8 @@ function __render__$S(_ctx, _cache) {
|
|
|
15386
15386
|
"var-day-picker-cover": "",
|
|
15387
15387
|
round: "",
|
|
15388
15388
|
ripple: false,
|
|
15389
|
-
elevation: _ctx.componentProps.buttonElevation
|
|
15390
|
-
|
|
15391
|
-
}, __spreadValues$i({}, _ctx.buttonProps(day)), {
|
|
15389
|
+
elevation: _ctx.componentProps.buttonElevation
|
|
15390
|
+
}, { ref_for: true }, __spreadValues$i({}, _ctx.buttonProps(day)), {
|
|
15392
15391
|
onClick: (event) => _ctx.chooseDay(day, event)
|
|
15393
15392
|
}), {
|
|
15394
15393
|
default: vue.withCtx(() => [
|
|
@@ -15718,9 +15717,8 @@ function __render__$R(_ctx, _cache) {
|
|
|
15718
15717
|
type: "primary",
|
|
15719
15718
|
"var-month-picker-cover": "",
|
|
15720
15719
|
ripple: false,
|
|
15721
|
-
elevation: _ctx.componentProps.buttonElevation
|
|
15722
|
-
|
|
15723
|
-
}, __spreadValues$h({}, _ctx.buttonProps(month)), {
|
|
15720
|
+
elevation: _ctx.componentProps.buttonElevation
|
|
15721
|
+
}, { ref_for: true }, __spreadValues$h({}, _ctx.buttonProps(month)), {
|
|
15724
15722
|
onClick: (event) => _ctx.chooseMonth(month, event)
|
|
15725
15723
|
}), {
|
|
15726
15724
|
default: vue.withCtx(() => [
|
|
@@ -16191,9 +16189,8 @@ function __render__$P(_ctx, _cache) {
|
|
|
16191
16189
|
type: "primary",
|
|
16192
16190
|
"var-year-picker-cover": "",
|
|
16193
16191
|
ripple: false,
|
|
16194
|
-
elevation: _ctx.componentProps.buttonElevation
|
|
16195
|
-
|
|
16196
|
-
}, __spreadValues$g({}, _ctx.buttonProps(`${year}`)), {
|
|
16192
|
+
elevation: _ctx.componentProps.buttonElevation
|
|
16193
|
+
}, { ref_for: true }, __spreadValues$g({}, _ctx.buttonProps(`${year}`)), {
|
|
16197
16194
|
onClick: (event) => _ctx.chooseYear(year, event)
|
|
16198
16195
|
}), {
|
|
16199
16196
|
default: vue.withCtx(() => [
|
|
@@ -22461,11 +22458,11 @@ const __sfc__$v = vue.defineComponent({
|
|
|
22461
22458
|
const strokeOffset = `${(MAX - roundValue) / MAX * CIRCUMFERENCE}`;
|
|
22462
22459
|
const strokeWidth = toPxNum(lineWidth) / toPxNum(size) * diameter;
|
|
22463
22460
|
const beginPositionX = 0;
|
|
22464
|
-
const beginPositionY = -
|
|
22461
|
+
const beginPositionY = -RADIUS;
|
|
22465
22462
|
const endPositionX = 0;
|
|
22466
22463
|
const endPositionY = -2 * RADIUS;
|
|
22467
22464
|
const path = `M ${diameter / 2} ${diameter / 2} m ${beginPositionX} ${beginPositionY} a ${RADIUS} ${RADIUS}
|
|
22468
|
-
0 1 1 ${endPositionX} ${
|
|
22465
|
+
0 1 1 ${endPositionX} ${-endPositionY} a ${RADIUS} ${RADIUS} 0 1 1 ${-endPositionX} ${endPositionY}`;
|
|
22469
22466
|
return {
|
|
22470
22467
|
strokeWidth,
|
|
22471
22468
|
viewBox,
|
|
@@ -23469,7 +23466,7 @@ const props$j = {
|
|
|
23469
23466
|
};
|
|
23470
23467
|
const _hoisted_1$b = { viewBox: "-4 -4 32 32" };
|
|
23471
23468
|
function __render__$p(_ctx, _cache) {
|
|
23472
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$b, _cache[0] || (_cache[0] = [
|
|
23469
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$b, [..._cache[0] || (_cache[0] = [
|
|
23473
23470
|
vue.createElementVNode(
|
|
23474
23471
|
"path",
|
|
23475
23472
|
{
|
|
@@ -23478,9 +23475,9 @@ function __render__$p(_ctx, _cache) {
|
|
|
23478
23475
|
},
|
|
23479
23476
|
null,
|
|
23480
23477
|
-1
|
|
23481
|
-
/*
|
|
23478
|
+
/* CACHED */
|
|
23482
23479
|
)
|
|
23483
|
-
]));
|
|
23480
|
+
])]);
|
|
23484
23481
|
}
|
|
23485
23482
|
const __sfc__$q = vue.defineComponent({});
|
|
23486
23483
|
__sfc__$q.render = __render__$p;
|
|
@@ -23490,15 +23487,15 @@ const _hoisted_1$a = {
|
|
|
23490
23487
|
viewBox: "2 2 20 20"
|
|
23491
23488
|
};
|
|
23492
23489
|
function __render__$o(_ctx, _cache) {
|
|
23493
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$a, _cache[0] || (_cache[0] = [
|
|
23490
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$a, [..._cache[0] || (_cache[0] = [
|
|
23494
23491
|
vue.createElementVNode(
|
|
23495
23492
|
"path",
|
|
23496
23493
|
{ d: "M19,3V5H19V19M17,8.4L13.4,12L17,15.6L15.6,17L12,13.4L8.4,17L7,15.6L10.6,12L7,8.4L8.4,7L12,10.6L15.6,7L17,8.4Z" },
|
|
23497
23494
|
null,
|
|
23498
23495
|
-1
|
|
23499
|
-
/*
|
|
23496
|
+
/* CACHED */
|
|
23500
23497
|
)
|
|
23501
|
-
]));
|
|
23498
|
+
])]);
|
|
23502
23499
|
}
|
|
23503
23500
|
const __sfc__$p = vue.defineComponent({});
|
|
23504
23501
|
__sfc__$p.render = __render__$o;
|
|
@@ -23508,15 +23505,15 @@ const _hoisted_1$9 = {
|
|
|
23508
23505
|
viewBox: "2 3.6 20 20"
|
|
23509
23506
|
};
|
|
23510
23507
|
function __render__$n(_ctx, _cache) {
|
|
23511
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$9, _cache[0] || (_cache[0] = [
|
|
23508
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$9, [..._cache[0] || (_cache[0] = [
|
|
23512
23509
|
vue.createElementVNode(
|
|
23513
23510
|
"path",
|
|
23514
23511
|
{ d: "M11,9H13V7H11M11,20H13V11H11V20Z" },
|
|
23515
23512
|
null,
|
|
23516
23513
|
-1
|
|
23517
|
-
/*
|
|
23514
|
+
/* CACHED */
|
|
23518
23515
|
)
|
|
23519
|
-
]));
|
|
23516
|
+
])]);
|
|
23520
23517
|
}
|
|
23521
23518
|
const __sfc__$o = vue.defineComponent({});
|
|
23522
23519
|
__sfc__$o.render = __render__$n;
|
|
@@ -23526,15 +23523,15 @@ const _hoisted_1$8 = {
|
|
|
23526
23523
|
viewBox: "-3 -3 30 30"
|
|
23527
23524
|
};
|
|
23528
23525
|
function __render__$m(_ctx, _cache) {
|
|
23529
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$8, _cache[0] || (_cache[0] = [
|
|
23526
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$8, [..._cache[0] || (_cache[0] = [
|
|
23530
23527
|
vue.createElementVNode(
|
|
23531
23528
|
"path",
|
|
23532
23529
|
{ d: "M10,19H13V22H10V19M12,2C17.35,2.22 19.68,7.62 16.5,11.67C15.67,12.67 14.33,13.33 13.67,14.17C13,15 13,16 13,17H10C10,15.33 10,13.92 10.67,12.92C11.33,11.92 12.67,11.33 13.5,10.67C15.92,8.43 15.32,5.26 12,5A3,3 0 0,0 9,8H6A6,6 0 0,1 12,2Z" },
|
|
23533
23530
|
null,
|
|
23534
23531
|
-1
|
|
23535
|
-
/*
|
|
23532
|
+
/* CACHED */
|
|
23536
23533
|
)
|
|
23537
|
-
]));
|
|
23534
|
+
])]);
|
|
23538
23535
|
}
|
|
23539
23536
|
const __sfc__$n = vue.defineComponent({});
|
|
23540
23537
|
__sfc__$n.render = __render__$m;
|
|
@@ -23640,15 +23637,15 @@ const _hoisted_1$7 = {
|
|
|
23640
23637
|
viewBox: "-6 -4 35 35"
|
|
23641
23638
|
};
|
|
23642
23639
|
function __render__$k(_ctx, _cache) {
|
|
23643
|
-
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$7, _cache[0] || (_cache[0] = [
|
|
23640
|
+
return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$7, [..._cache[0] || (_cache[0] = [
|
|
23644
23641
|
vue.createElementVNode(
|
|
23645
23642
|
"path",
|
|
23646
23643
|
{ d: "M10,21H14A2,2 0 0,1 12,23A2,2 0 0,1 10,21M21,19V20H3V19L5,17V11C5,7.9 7.03,5.17 10,4.29C10,4.19 10,4.1 10,4A2,2 0 0,1 12,2A2,2 0 0,1 14,4C14,4.1 14,4.19 14,4.29C16.97,5.17 19,7.9 19,11V17L21,19M17,11A5,5 0 0,0 12,6A5,5 0 0,0 7,11V18H17V11M19.75,3.19L18.33,4.61M1,11" },
|
|
23647
23644
|
null,
|
|
23648
23645
|
-1
|
|
23649
|
-
/*
|
|
23646
|
+
/* CACHED */
|
|
23650
23647
|
)
|
|
23651
|
-
]));
|
|
23648
|
+
])]);
|
|
23652
23649
|
}
|
|
23653
23650
|
const __sfc__$l = vue.defineComponent({});
|
|
23654
23651
|
__sfc__$l.render = __render__$k;
|
|
@@ -26335,7 +26332,7 @@ function __render__$9(_ctx, _cache) {
|
|
|
26335
26332
|
height: _ctx.radius
|
|
26336
26333
|
})
|
|
26337
26334
|
},
|
|
26338
|
-
_cache[3] || (_cache[3] = [
|
|
26335
|
+
[..._cache[3] || (_cache[3] = [
|
|
26339
26336
|
vue.createElementVNode(
|
|
26340
26337
|
"svg",
|
|
26341
26338
|
{ viewBox: "25 25 50 50" },
|
|
@@ -26348,9 +26345,9 @@ function __render__$9(_ctx, _cache) {
|
|
|
26348
26345
|
})
|
|
26349
26346
|
],
|
|
26350
26347
|
-1
|
|
26351
|
-
/*
|
|
26348
|
+
/* CACHED */
|
|
26352
26349
|
)
|
|
26353
|
-
]),
|
|
26350
|
+
])],
|
|
26354
26351
|
6
|
|
26355
26352
|
/* CLASS, STYLE */
|
|
26356
26353
|
)) : vue.createCommentVNode("v-if", true)
|
|
@@ -32031,7 +32028,7 @@ withInstall(stdin_default$1);
|
|
|
32031
32028
|
withPropsDefaultsSetter(stdin_default$1, props);
|
|
32032
32029
|
const _WatermarkComponent = stdin_default$1;
|
|
32033
32030
|
var stdin_default = stdin_default$1;
|
|
32034
|
-
const version = "3.11.
|
|
32031
|
+
const version = "3.11.5-alpha.1757700927355";
|
|
32035
32032
|
function install(app) {
|
|
32036
32033
|
stdin_default$60.install && app.use(stdin_default$60);
|
|
32037
32034
|
stdin_default$5_.install && app.use(stdin_default$5_);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "3.11.
|
|
3
|
+
"version": "3.11.5-alpha.1757700927355",
|
|
4
4
|
"description": "A Vue3 component library based on Material Design 2 and 3, supporting mobile and desktop.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Vue3",
|
|
@@ -44,27 +44,27 @@
|
|
|
44
44
|
"@popperjs/core": "^2.11.6",
|
|
45
45
|
"dayjs": "^1.10.4",
|
|
46
46
|
"decimal.js": "^10.2.1",
|
|
47
|
-
"@varlet/icons": "3.11.
|
|
48
|
-
"@varlet/shared": "3.11.
|
|
49
|
-
"@varlet/use": "3.11.
|
|
47
|
+
"@varlet/icons": "3.11.5-alpha.1757700927355",
|
|
48
|
+
"@varlet/shared": "3.11.5-alpha.1757700927355",
|
|
49
|
+
"@varlet/use": "3.11.5-alpha.1757700927355"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/node": "^18.7.20",
|
|
53
|
-
"@vitest/coverage-istanbul": "3.
|
|
54
|
-
"@vue/runtime-core": "3.5.
|
|
53
|
+
"@vitest/coverage-istanbul": "3.2.4",
|
|
54
|
+
"@vue/runtime-core": "3.5.21",
|
|
55
55
|
"@vue/test-utils": "2.4.6",
|
|
56
56
|
"clipboard": "^2.0.6",
|
|
57
|
-
"jsdom": "
|
|
57
|
+
"jsdom": "26.1.0",
|
|
58
58
|
"live-server": "^1.2.1",
|
|
59
59
|
"shiki": "^1.21.0",
|
|
60
60
|
"typescript": "5.3.3",
|
|
61
|
-
"vitest": "3.
|
|
62
|
-
"vue": "3.5.
|
|
63
|
-
"vue-router": "4.5.
|
|
61
|
+
"vitest": "3.2.4",
|
|
62
|
+
"vue": "3.5.21",
|
|
63
|
+
"vue-router": "4.5.1",
|
|
64
64
|
"zod": "^3.23.8",
|
|
65
|
-
"@varlet/
|
|
66
|
-
"@varlet/
|
|
67
|
-
"@varlet/
|
|
65
|
+
"@varlet/touch-emulator": "3.11.5-alpha.1757700927355",
|
|
66
|
+
"@varlet/ui": "3.11.5-alpha.1757700927355",
|
|
67
|
+
"@varlet/cli": "3.11.5-alpha.1757700927355"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"vue": "^3.2.0"
|