@varlet/ui 3.2.4 → 3.2.6-alpha.1713858357643
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/README.md +4 -2
- package/README.zh-CN.md +4 -2
- package/es/breadcrumb/Breadcrumb.mjs +2 -1
- package/es/breadcrumbs/Breadcrumbs.mjs +3 -1
- package/es/collapse/Collapse.mjs +2 -0
- package/es/collapse-item/CollapseItem.mjs +53 -53
- package/es/collapse-item/collapseItem.css +1 -1
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/input/Input.mjs +2 -2
- package/es/locale/index.mjs +0 -1
- package/es/popup/Popup.mjs +3 -1
- package/es/progress/Progress.mjs +189 -187
- package/es/slider/Slider.mjs +19 -23
- package/es/style.css +1 -1
- package/es/swipe/Swipe.mjs +1 -0
- package/es/swipe-item/SwipeItem.mjs +18 -18
- package/es/switch/Switch.mjs +77 -80
- package/es/tooltip/Tooltip.mjs +2 -1
- package/es/varlet.esm.js +4260 -4251
- package/highlight/web-types.en-US.json +1 -1
- package/highlight/web-types.zh-CN.json +1 -1
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +402 -397
- package/package.json +7 -7
- package/umd/varlet.js +6 -6
package/lib/varlet.cjs.js
CHANGED
|
@@ -559,11 +559,15 @@ function useTouch() {
|
|
|
559
559
|
isReachBottom
|
|
560
560
|
};
|
|
561
561
|
}
|
|
562
|
-
function
|
|
563
|
-
const id = vue.ref();
|
|
562
|
+
function useClientId() {
|
|
564
563
|
const instance = vue.getCurrentInstance();
|
|
565
564
|
const name2 = kebabCase(instance.type.name);
|
|
566
|
-
id
|
|
565
|
+
const id = vue.ref(process.env.NODE_ENV === "test" ? `${name2}-mock-id` : "");
|
|
566
|
+
vue.onMounted(() => {
|
|
567
|
+
if (process.env.NODE_ENV !== "test") {
|
|
568
|
+
id.value = `${name2}-${instance.uid}`;
|
|
569
|
+
}
|
|
570
|
+
});
|
|
567
571
|
return id;
|
|
568
572
|
}
|
|
569
573
|
function useWindowSize(options = {}) {
|
|
@@ -1225,7 +1229,9 @@ var stdin_default$5T = vue.defineComponent({
|
|
|
1225
1229
|
"class": classes$1a(n$1o("content"), n$1o(`--${props2.position}`), [props2.defaultStyle, n$1o("--content-background-color")], [props2.defaultStyle, n$1o("$-elevation--3")], [props2.safeArea, n$1o("--safe-area")], [props2.safeAreaTop, n$1o("--safe-area-top")]),
|
|
1226
1230
|
"style": {
|
|
1227
1231
|
zIndex: zIndex.value
|
|
1228
|
-
}
|
|
1232
|
+
},
|
|
1233
|
+
"role": "dialog",
|
|
1234
|
+
"aria-modal": "true"
|
|
1229
1235
|
}, attrs), [rendered.value && call(slots.default)]), [[vue.vShow, props2.show]]);
|
|
1230
1236
|
}
|
|
1231
1237
|
function renderPopup() {
|
|
@@ -2298,7 +2304,6 @@ function useLocale() {
|
|
|
2298
2304
|
if (hasOwn(currentMessage2.value, id)) {
|
|
2299
2305
|
return currentMessage2.value[id];
|
|
2300
2306
|
}
|
|
2301
|
-
return id;
|
|
2302
2307
|
};
|
|
2303
2308
|
return {
|
|
2304
2309
|
messages: messages2,
|
|
@@ -2963,7 +2968,7 @@ const props$1b = {
|
|
|
2963
2968
|
};
|
|
2964
2969
|
const isInternalSize$1 = (size) => ["mini", "small", "normal", "large"].includes(size);
|
|
2965
2970
|
const { name: name$1b, n: n$1i, classes: classes$14 } = createNamespace("avatar");
|
|
2966
|
-
const _hoisted_1$
|
|
2971
|
+
const _hoisted_1$y = ["src", "alt", "lazy-loading", "lazy-error"];
|
|
2967
2972
|
const _hoisted_2$g = ["src", "alt"];
|
|
2968
2973
|
function __render__$1i(_ctx, _cache) {
|
|
2969
2974
|
const _directive_lazy = vue.resolveDirective("lazy");
|
|
@@ -3004,7 +3009,7 @@ function __render__$1i(_ctx, _cache) {
|
|
|
3004
3009
|
"lazy-loading": _ctx.loading,
|
|
3005
3010
|
"lazy-error": _ctx.error,
|
|
3006
3011
|
onLoad: _cache[0] || (_cache[0] = (...args) => _ctx.handleLoad && _ctx.handleLoad(...args))
|
|
3007
|
-
}, null, 46, _hoisted_1$
|
|
3012
|
+
}, null, 46, _hoisted_1$y)), [
|
|
3008
3013
|
[_directive_lazy, _ctx.src]
|
|
3009
3014
|
]) : (vue.openBlock(), vue.createElementBlock("img", {
|
|
3010
3015
|
key: 1,
|
|
@@ -3157,7 +3162,7 @@ const props$19 = {
|
|
|
3157
3162
|
};
|
|
3158
3163
|
const { name: name$19, n: n$1g, classes: classes$12 } = createNamespace("loading");
|
|
3159
3164
|
const _withScopeId$6 = (n2) => (vue.pushScopeId(""), n2 = n2(), vue.popScopeId(), n2);
|
|
3160
|
-
const _hoisted_1$
|
|
3165
|
+
const _hoisted_1$x = /* @__PURE__ */ _withScopeId$6(() => /* @__PURE__ */ vue.createElementVNode(
|
|
3161
3166
|
"svg",
|
|
3162
3167
|
{ viewBox: "25 25 50 50" },
|
|
3163
3168
|
[
|
|
@@ -3172,7 +3177,7 @@ const _hoisted_1$v = /* @__PURE__ */ _withScopeId$6(() => /* @__PURE__ */ vue.cr
|
|
|
3172
3177
|
/* HOISTED */
|
|
3173
3178
|
));
|
|
3174
3179
|
const _hoisted_2$f = [
|
|
3175
|
-
_hoisted_1$
|
|
3180
|
+
_hoisted_1$x
|
|
3176
3181
|
];
|
|
3177
3182
|
function __render__$1g(_ctx, _cache) {
|
|
3178
3183
|
return vue.openBlock(), vue.createElementBlock(
|
|
@@ -3413,7 +3418,7 @@ function useButtonGroup() {
|
|
|
3413
3418
|
};
|
|
3414
3419
|
}
|
|
3415
3420
|
const { name: name$18, n: n$1f, classes: classes$11 } = createNamespace("button");
|
|
3416
|
-
const _hoisted_1$
|
|
3421
|
+
const _hoisted_1$w = ["type", "disabled"];
|
|
3417
3422
|
function __render__$1f(_ctx, _cache) {
|
|
3418
3423
|
const _component_var_loading = vue.resolveComponent("var-loading");
|
|
3419
3424
|
const _component_var_hover_overlay = vue.resolveComponent("var-hover-overlay");
|
|
@@ -3472,7 +3477,7 @@ function __render__$1f(_ctx, _cache) {
|
|
|
3472
3477
|
hovering: _ctx.disabled || _ctx.loading || _ctx.pending ? false : _ctx.hovering,
|
|
3473
3478
|
focusing: _ctx.disabled || _ctx.loading || _ctx.pending ? false : _ctx.isFocusing
|
|
3474
3479
|
}, null, 8, ["hovering", "focusing"])
|
|
3475
|
-
], 46, _hoisted_1$
|
|
3480
|
+
], 46, _hoisted_1$w)), [
|
|
3476
3481
|
[_directive_ripple, { disabled: _ctx.disabled || !_ctx.ripple || _ctx.loading || _ctx.pending }],
|
|
3477
3482
|
[_directive_hover, _ctx.handleHovering, "desktop"]
|
|
3478
3483
|
]);
|
|
@@ -3727,7 +3732,7 @@ var __spreadValues$n = (a, b) => {
|
|
|
3727
3732
|
return a;
|
|
3728
3733
|
};
|
|
3729
3734
|
const { name: name$16, n: n$1d, classes: classes$$ } = createNamespace("badge");
|
|
3730
|
-
const _hoisted_1$
|
|
3735
|
+
const _hoisted_1$v = { key: 0 };
|
|
3731
3736
|
function __render__$1d(_ctx, _cache) {
|
|
3732
3737
|
const _component_var_icon = vue.resolveComponent("var-icon");
|
|
3733
3738
|
return vue.openBlock(), vue.createElementBlock(
|
|
@@ -3765,7 +3770,7 @@ function __render__$1d(_ctx, _cache) {
|
|
|
3765
3770
|
vue.renderSlot(_ctx.$slots, "value", {}, () => [
|
|
3766
3771
|
!_ctx.icon && !_ctx.dot ? (vue.openBlock(), vue.createElementBlock(
|
|
3767
3772
|
"span",
|
|
3768
|
-
_hoisted_1$
|
|
3773
|
+
_hoisted_1$v,
|
|
3769
3774
|
vue.toDisplayString(_ctx.value),
|
|
3770
3775
|
1
|
|
3771
3776
|
/* TEXT */
|
|
@@ -4249,7 +4254,8 @@ function __render__$1a(_ctx, _cache) {
|
|
|
4249
4254
|
vue.createElementVNode(
|
|
4250
4255
|
"div",
|
|
4251
4256
|
{
|
|
4252
|
-
class: vue.normalizeClass(_ctx.n("separator"))
|
|
4257
|
+
class: vue.normalizeClass(_ctx.n("separator")),
|
|
4258
|
+
"aria-hidden": "true"
|
|
4253
4259
|
},
|
|
4254
4260
|
vue.toDisplayString((_a = _ctx.separator) != null ? _a : _ctx.parentSeparator),
|
|
4255
4261
|
3
|
|
@@ -4302,7 +4308,9 @@ function __render__$19(_ctx, _cache) {
|
|
|
4302
4308
|
return vue.openBlock(), vue.createElementBlock(
|
|
4303
4309
|
"div",
|
|
4304
4310
|
{
|
|
4305
|
-
class: vue.normalizeClass(_ctx.n())
|
|
4311
|
+
class: vue.normalizeClass(_ctx.n()),
|
|
4312
|
+
role: "navigation",
|
|
4313
|
+
"aria-label": "Breadcrumbs"
|
|
4306
4314
|
},
|
|
4307
4315
|
[
|
|
4308
4316
|
vue.renderSlot(_ctx.$slots, "default")
|
|
@@ -4453,7 +4461,7 @@ var __async$e = (__this, __arguments, generator) => {
|
|
|
4453
4461
|
};
|
|
4454
4462
|
const { name: name$10, n: n$17, classes: classes$W } = createNamespace("card");
|
|
4455
4463
|
const RIPPLE_DELAY = 500;
|
|
4456
|
-
const _hoisted_1$
|
|
4464
|
+
const _hoisted_1$u = ["src", "alt"];
|
|
4457
4465
|
function __render__$17(_ctx, _cache) {
|
|
4458
4466
|
const _component_var_icon = vue.resolveComponent("var-icon");
|
|
4459
4467
|
const _component_var_button = vue.resolveComponent("var-button");
|
|
@@ -4498,7 +4506,7 @@ function __render__$17(_ctx, _cache) {
|
|
|
4498
4506
|
}),
|
|
4499
4507
|
src: _ctx.src,
|
|
4500
4508
|
alt: _ctx.alt
|
|
4501
|
-
}, null, 14, _hoisted_1$
|
|
4509
|
+
}, null, 14, _hoisted_1$u)) : vue.createCommentVNode("v-if", true)
|
|
4502
4510
|
]),
|
|
4503
4511
|
vue.createElementVNode(
|
|
4504
4512
|
"div",
|
|
@@ -4912,7 +4920,7 @@ const props$_ = {
|
|
|
4912
4920
|
}
|
|
4913
4921
|
};
|
|
4914
4922
|
const { name: name$_, n: n$15 } = createNamespace("form-details");
|
|
4915
|
-
const _hoisted_1$
|
|
4923
|
+
const _hoisted_1$t = { key: 0 };
|
|
4916
4924
|
const _hoisted_2$e = { key: 0 };
|
|
4917
4925
|
function __render__$15(_ctx, _cache) {
|
|
4918
4926
|
return vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
@@ -4938,7 +4946,7 @@ function __render__$15(_ctx, _cache) {
|
|
|
4938
4946
|
default: vue.withCtx(() => [
|
|
4939
4947
|
_ctx.errorMessage ? (vue.openBlock(), vue.createElementBlock(
|
|
4940
4948
|
"div",
|
|
4941
|
-
_hoisted_1$
|
|
4949
|
+
_hoisted_1$t,
|
|
4942
4950
|
vue.toDisplayString(_ctx.errorMessage),
|
|
4943
4951
|
1
|
|
4944
4952
|
/* TEXT */
|
|
@@ -5093,7 +5101,7 @@ function useFormItems() {
|
|
|
5093
5101
|
};
|
|
5094
5102
|
}
|
|
5095
5103
|
const { name: name$Z, n: n$14, classes: classes$U } = createNamespace("checkbox");
|
|
5096
|
-
const _hoisted_1$
|
|
5104
|
+
const _hoisted_1$s = ["tabindex"];
|
|
5097
5105
|
function __render__$14(_ctx, _cache) {
|
|
5098
5106
|
const _component_var_icon = vue.resolveComponent("var-icon");
|
|
5099
5107
|
const _component_var_hover_overlay = vue.resolveComponent("var-hover-overlay");
|
|
@@ -5156,7 +5164,7 @@ function __render__$14(_ctx, _cache) {
|
|
|
5156
5164
|
hovering: !_ctx.disabled && !_ctx.formDisabled && _ctx.hovering,
|
|
5157
5165
|
focusing: !_ctx.disabled && !_ctx.formDisabled && _ctx.isFocusing
|
|
5158
5166
|
}, null, 8, ["hovering", "focusing"])
|
|
5159
|
-
], 46, _hoisted_1$
|
|
5167
|
+
], 46, _hoisted_1$s)), [
|
|
5160
5168
|
[_directive_hover, _ctx.handleHovering, "desktop"],
|
|
5161
5169
|
[_directive_ripple, { disabled: _ctx.formReadonly || _ctx.readonly || _ctx.formDisabled || _ctx.disabled || !_ctx.ripple }]
|
|
5162
5170
|
]),
|
|
@@ -5777,12 +5785,14 @@ const __sfc__$11 = vue.defineComponent({
|
|
|
5777
5785
|
const offset2 = vue.computed(() => props2.offset);
|
|
5778
5786
|
const divider = vue.computed(() => props2.divider);
|
|
5779
5787
|
const elevation = vue.computed(() => props2.elevation);
|
|
5788
|
+
const accordion = vue.computed(() => props2.accordion);
|
|
5780
5789
|
const normalizeValues = vue.computed(() => normalizeToArray(props2.modelValue));
|
|
5781
5790
|
const { length, collapseItems, bindCollapseItems } = useCollapseItem();
|
|
5782
5791
|
const collapseProvider = {
|
|
5783
5792
|
offset: offset2,
|
|
5784
5793
|
divider,
|
|
5785
5794
|
elevation,
|
|
5795
|
+
accordion,
|
|
5786
5796
|
updateItem
|
|
5787
5797
|
};
|
|
5788
5798
|
vue.watch(
|
|
@@ -5972,6 +5982,7 @@ function useCollapseTransition(options) {
|
|
|
5972
5982
|
};
|
|
5973
5983
|
}
|
|
5974
5984
|
const { name: name$U, n: n$$, classes: classes$Q } = createNamespace("collapse-item");
|
|
5985
|
+
const _hoisted_1$r = ["aria-expanded", "aria-disabled", "role"];
|
|
5975
5986
|
function __render__$$(_ctx, _cache) {
|
|
5976
5987
|
const _component_var_icon = vue.resolveComponent("var-icon");
|
|
5977
5988
|
return vue.openBlock(), vue.createElementBlock(
|
|
@@ -5990,58 +6001,55 @@ function __render__$$(_ctx, _cache) {
|
|
|
5990
6001
|
2
|
|
5991
6002
|
/* CLASS */
|
|
5992
6003
|
),
|
|
5993
|
-
vue.createElementVNode(
|
|
5994
|
-
"
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
|
-
|
|
6028
|
-
|
|
6029
|
-
|
|
6030
|
-
|
|
6031
|
-
|
|
6032
|
-
|
|
6033
|
-
)
|
|
6004
|
+
vue.createElementVNode("div", {
|
|
6005
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n("header"), [!_ctx.disabled, _ctx.n("header--cursor-pointer")])),
|
|
6006
|
+
"aria-expanded": _ctx.isShow,
|
|
6007
|
+
"aria-disabled": _ctx.disabled,
|
|
6008
|
+
role: _ctx.accordion ? "tab" : "button",
|
|
6009
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.toggle && _ctx.toggle(...args))
|
|
6010
|
+
}, [
|
|
6011
|
+
_ctx.$slots.title || _ctx.title ? (vue.openBlock(), vue.createElementBlock(
|
|
6012
|
+
"div",
|
|
6013
|
+
{
|
|
6014
|
+
key: 0,
|
|
6015
|
+
class: vue.normalizeClass(_ctx.n("header-title"))
|
|
6016
|
+
},
|
|
6017
|
+
[
|
|
6018
|
+
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
6019
|
+
vue.createTextVNode(
|
|
6020
|
+
vue.toDisplayString(_ctx.title),
|
|
6021
|
+
1
|
|
6022
|
+
/* TEXT */
|
|
6023
|
+
)
|
|
6024
|
+
])
|
|
6025
|
+
],
|
|
6026
|
+
2
|
|
6027
|
+
/* CLASS */
|
|
6028
|
+
)) : vue.createCommentVNode("v-if", true),
|
|
6029
|
+
vue.createElementVNode(
|
|
6030
|
+
"div",
|
|
6031
|
+
{
|
|
6032
|
+
class: vue.normalizeClass(_ctx.n("header-icon"))
|
|
6033
|
+
},
|
|
6034
|
+
[
|
|
6035
|
+
vue.renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
6036
|
+
vue.createVNode(_component_var_icon, {
|
|
6037
|
+
name: _ctx.icon,
|
|
6038
|
+
transition: 250,
|
|
6039
|
+
class: vue.normalizeClass(
|
|
6040
|
+
_ctx.classes(
|
|
6041
|
+
_ctx.n("header-icon"),
|
|
6042
|
+
[_ctx.isShow && _ctx.icon === "chevron-down", _ctx.n("header-open")],
|
|
6043
|
+
[_ctx.disabled, _ctx.n("header--disable")]
|
|
6034
6044
|
)
|
|
6035
|
-
|
|
6036
|
-
])
|
|
6037
|
-
]
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
/* CLASS */
|
|
6044
|
-
),
|
|
6045
|
+
)
|
|
6046
|
+
}, null, 8, ["name", "class"])
|
|
6047
|
+
])
|
|
6048
|
+
],
|
|
6049
|
+
2
|
|
6050
|
+
/* CLASS */
|
|
6051
|
+
)
|
|
6052
|
+
], 10, _hoisted_1$r),
|
|
6045
6053
|
vue.withDirectives(vue.createElementVNode(
|
|
6046
6054
|
"div",
|
|
6047
6055
|
{
|
|
@@ -6086,7 +6094,7 @@ const __sfc__$10 = vue.defineComponent({
|
|
|
6086
6094
|
const name2 = vue.computed(() => props2.name);
|
|
6087
6095
|
const disabled = vue.computed(() => props2.disabled);
|
|
6088
6096
|
const { index, collapse, bindCollapse } = useCollapse();
|
|
6089
|
-
const { offset: offset2, divider, elevation, updateItem } = collapse;
|
|
6097
|
+
const { offset: offset2, divider, elevation, accordion, updateItem } = collapse;
|
|
6090
6098
|
const collapseItemProvider = {
|
|
6091
6099
|
index,
|
|
6092
6100
|
name: name2,
|
|
@@ -6116,6 +6124,7 @@ const __sfc__$10 = vue.defineComponent({
|
|
|
6116
6124
|
divider,
|
|
6117
6125
|
elevation,
|
|
6118
6126
|
contentEl,
|
|
6127
|
+
accordion,
|
|
6119
6128
|
n: n$$,
|
|
6120
6129
|
classes: classes$Q,
|
|
6121
6130
|
toggle,
|
|
@@ -8743,7 +8752,7 @@ const props$R = {
|
|
|
8743
8752
|
const SPEED = 100;
|
|
8744
8753
|
const DELAY = 600;
|
|
8745
8754
|
const { name: name$R, n: n$Y, classes: classes$P } = createNamespace("counter");
|
|
8746
|
-
const _hoisted_1$
|
|
8755
|
+
const _hoisted_1$q = ["inputmode", "readonly", "disabled"];
|
|
8747
8756
|
function __render__$Y(_ctx, _cache) {
|
|
8748
8757
|
const _component_var_icon = vue.resolveComponent("var-icon");
|
|
8749
8758
|
const _component_var_button = vue.resolveComponent("var-button");
|
|
@@ -8803,7 +8812,7 @@ function __render__$Y(_ctx, _cache) {
|
|
|
8803
8812
|
disabled: _ctx.disabled || _ctx.formDisabled || _ctx.disableInput,
|
|
8804
8813
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.inputValue = $event),
|
|
8805
8814
|
onChange: _cache[1] || (_cache[1] = (...args) => _ctx.handleChange && _ctx.handleChange(...args))
|
|
8806
|
-
}, null, 46, _hoisted_1$
|
|
8815
|
+
}, null, 46, _hoisted_1$q), [
|
|
8807
8816
|
[vue.vModelText, _ctx.inputValue]
|
|
8808
8817
|
]),
|
|
8809
8818
|
vue.createVNode(_component_var_button, {
|
|
@@ -9072,7 +9081,7 @@ var MILLISECONDS_A_DAY = SECONDS_A_DAY * MILLISECONDS_A_SECOND;
|
|
|
9072
9081
|
var MILLISECONDS_A_WEEK = SECONDS_A_WEEK * MILLISECONDS_A_SECOND;
|
|
9073
9082
|
var MS = "millisecond";
|
|
9074
9083
|
var S = "second";
|
|
9075
|
-
var MIN = "minute";
|
|
9084
|
+
var MIN$1 = "minute";
|
|
9076
9085
|
var H = "hour";
|
|
9077
9086
|
var D = "day";
|
|
9078
9087
|
var W = "week";
|
|
@@ -9122,7 +9131,7 @@ var prettyUnit = function prettyUnit2(u) {
|
|
|
9122
9131
|
d: D,
|
|
9123
9132
|
D: DATE,
|
|
9124
9133
|
h: H,
|
|
9125
|
-
m: MIN,
|
|
9134
|
+
m: MIN$1,
|
|
9126
9135
|
s: S,
|
|
9127
9136
|
ms: MS,
|
|
9128
9137
|
Q
|
|
@@ -9298,7 +9307,7 @@ var Dayjs = /* @__PURE__ */ function() {
|
|
|
9298
9307
|
return instanceFactorySet(utcPad + "Hours", 0);
|
|
9299
9308
|
case H:
|
|
9300
9309
|
return instanceFactorySet(utcPad + "Minutes", 1);
|
|
9301
|
-
case MIN:
|
|
9310
|
+
case MIN$1:
|
|
9302
9311
|
return instanceFactorySet(utcPad + "Seconds", 2);
|
|
9303
9312
|
case S:
|
|
9304
9313
|
return instanceFactorySet(utcPad + "Milliseconds", 3);
|
|
@@ -9313,7 +9322,7 @@ var Dayjs = /* @__PURE__ */ function() {
|
|
|
9313
9322
|
var _C$D$C$DATE$C$M$C$Y$C;
|
|
9314
9323
|
var unit = Utils.p(units);
|
|
9315
9324
|
var utcPad = "set" + (this.$u ? "UTC" : "");
|
|
9316
|
-
var name2 = (_C$D$C$DATE$C$M$C$Y$C = {}, _C$D$C$DATE$C$M$C$Y$C[D] = utcPad + "Date", _C$D$C$DATE$C$M$C$Y$C[DATE] = utcPad + "Date", _C$D$C$DATE$C$M$C$Y$C[M] = utcPad + "Month", _C$D$C$DATE$C$M$C$Y$C[Y] = utcPad + "FullYear", _C$D$C$DATE$C$M$C$Y$C[H] = utcPad + "Hours", _C$D$C$DATE$C$M$C$Y$C[MIN] = utcPad + "Minutes", _C$D$C$DATE$C$M$C$Y$C[S] = utcPad + "Seconds", _C$D$C$DATE$C$M$C$Y$C[MS] = utcPad + "Milliseconds", _C$D$C$DATE$C$M$C$Y$C)[unit];
|
|
9325
|
+
var name2 = (_C$D$C$DATE$C$M$C$Y$C = {}, _C$D$C$DATE$C$M$C$Y$C[D] = utcPad + "Date", _C$D$C$DATE$C$M$C$Y$C[DATE] = utcPad + "Date", _C$D$C$DATE$C$M$C$Y$C[M] = utcPad + "Month", _C$D$C$DATE$C$M$C$Y$C[Y] = utcPad + "FullYear", _C$D$C$DATE$C$M$C$Y$C[H] = utcPad + "Hours", _C$D$C$DATE$C$M$C$Y$C[MIN$1] = utcPad + "Minutes", _C$D$C$DATE$C$M$C$Y$C[S] = utcPad + "Seconds", _C$D$C$DATE$C$M$C$Y$C[MS] = utcPad + "Milliseconds", _C$D$C$DATE$C$M$C$Y$C)[unit];
|
|
9317
9326
|
var arg = unit === D ? this.$D + (_int - this.$W) : _int;
|
|
9318
9327
|
if (unit === M || unit === Y) {
|
|
9319
9328
|
var date = this.clone().set(DATE, 1);
|
|
@@ -9351,7 +9360,7 @@ var Dayjs = /* @__PURE__ */ function() {
|
|
|
9351
9360
|
if (unit === W) {
|
|
9352
9361
|
return instanceFactorySet(7);
|
|
9353
9362
|
}
|
|
9354
|
-
var step = (_C$MIN$C$H$C$S$unit = {}, _C$MIN$C$H$C$S$unit[MIN] = MILLISECONDS_A_MINUTE, _C$MIN$C$H$C$S$unit[H] = MILLISECONDS_A_HOUR, _C$MIN$C$H$C$S$unit[S] = MILLISECONDS_A_SECOND, _C$MIN$C$H$C$S$unit)[unit] || 1;
|
|
9363
|
+
var step = (_C$MIN$C$H$C$S$unit = {}, _C$MIN$C$H$C$S$unit[MIN$1] = MILLISECONDS_A_MINUTE, _C$MIN$C$H$C$S$unit[H] = MILLISECONDS_A_HOUR, _C$MIN$C$H$C$S$unit[S] = MILLISECONDS_A_SECOND, _C$MIN$C$H$C$S$unit)[unit] || 1;
|
|
9355
9364
|
var nextTimeStamp = this.$d.getTime() + number * step;
|
|
9356
9365
|
return Utils.w(nextTimeStamp, this);
|
|
9357
9366
|
};
|
|
@@ -9418,7 +9427,7 @@ var Dayjs = /* @__PURE__ */ function() {
|
|
|
9418
9427
|
var zoneDelta = (that.utcOffset() - this.utcOffset()) * MILLISECONDS_A_MINUTE;
|
|
9419
9428
|
var diff3 = this - that;
|
|
9420
9429
|
var result = Utils.m(this, that);
|
|
9421
|
-
result = (_C$Y$C$M$C$Q$C$W$C$D$ = {}, _C$Y$C$M$C$Q$C$W$C$D$[Y] = result / 12, _C$Y$C$M$C$Q$C$W$C$D$[M] = result, _C$Y$C$M$C$Q$C$W$C$D$[Q] = result / 3, _C$Y$C$M$C$Q$C$W$C$D$[W] = (diff3 - zoneDelta) / MILLISECONDS_A_WEEK, _C$Y$C$M$C$Q$C$W$C$D$[D] = (diff3 - zoneDelta) / MILLISECONDS_A_DAY, _C$Y$C$M$C$Q$C$W$C$D$[H] = diff3 / MILLISECONDS_A_HOUR, _C$Y$C$M$C$Q$C$W$C$D$[MIN] = diff3 / MILLISECONDS_A_MINUTE, _C$Y$C$M$C$Q$C$W$C$D$[S] = diff3 / MILLISECONDS_A_SECOND, _C$Y$C$M$C$Q$C$W$C$D$)[unit] || diff3;
|
|
9430
|
+
result = (_C$Y$C$M$C$Q$C$W$C$D$ = {}, _C$Y$C$M$C$Q$C$W$C$D$[Y] = result / 12, _C$Y$C$M$C$Q$C$W$C$D$[M] = result, _C$Y$C$M$C$Q$C$W$C$D$[Q] = result / 3, _C$Y$C$M$C$Q$C$W$C$D$[W] = (diff3 - zoneDelta) / MILLISECONDS_A_WEEK, _C$Y$C$M$C$Q$C$W$C$D$[D] = (diff3 - zoneDelta) / MILLISECONDS_A_DAY, _C$Y$C$M$C$Q$C$W$C$D$[H] = diff3 / MILLISECONDS_A_HOUR, _C$Y$C$M$C$Q$C$W$C$D$[MIN$1] = diff3 / MILLISECONDS_A_MINUTE, _C$Y$C$M$C$Q$C$W$C$D$[S] = diff3 / MILLISECONDS_A_SECOND, _C$Y$C$M$C$Q$C$W$C$D$)[unit] || diff3;
|
|
9422
9431
|
return _float ? result : Utils.a(result);
|
|
9423
9432
|
};
|
|
9424
9433
|
_proto.daysInMonth = function daysInMonth() {
|
|
@@ -9455,7 +9464,7 @@ var Dayjs = /* @__PURE__ */ function() {
|
|
|
9455
9464
|
}();
|
|
9456
9465
|
var proto = Dayjs.prototype;
|
|
9457
9466
|
dayjs.prototype = proto;
|
|
9458
|
-
[["$ms", MS], ["$s", S], ["$m", MIN], ["$H", H], ["$W", D], ["$M", M], ["$y", Y], ["$D", DATE]].forEach(function(g) {
|
|
9467
|
+
[["$ms", MS], ["$s", S], ["$m", MIN$1], ["$H", H], ["$W", D], ["$M", M], ["$y", Y], ["$D", DATE]].forEach(function(g) {
|
|
9459
9468
|
proto[g[1]] = function(input) {
|
|
9460
9469
|
return this.$g(input, g[0], g[1]);
|
|
9461
9470
|
};
|
|
@@ -13846,7 +13855,8 @@ function __render__$O(_ctx, _cache) {
|
|
|
13846
13855
|
"div",
|
|
13847
13856
|
{
|
|
13848
13857
|
style: vue.normalizeStyle({ background: _ctx.color, width: _ctx.sameWidth ? _ctx.toSizeUnit(Math.ceil(_ctx.hostSize.width)) : void 0 }),
|
|
13849
|
-
class: vue.normalizeClass(_ctx.classes(_ctx.n("content-container"), _ctx.n(`--${_ctx.type}`)))
|
|
13858
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n("content-container"), _ctx.n(`--${_ctx.type}`))),
|
|
13859
|
+
role: "tooltip"
|
|
13850
13860
|
},
|
|
13851
13861
|
[
|
|
13852
13862
|
vue.renderSlot(_ctx.$slots, "content", {}, () => [
|
|
@@ -13957,7 +13967,7 @@ var __spreadValues$c = (a, b) => {
|
|
|
13957
13967
|
return a;
|
|
13958
13968
|
};
|
|
13959
13969
|
const { name: name$K, n: n$N, classes: classes$F } = createNamespace("ellipsis");
|
|
13960
|
-
const _hoisted_1$
|
|
13970
|
+
const _hoisted_1$p = { key: 0 };
|
|
13961
13971
|
function __render__$N(_ctx, _cache) {
|
|
13962
13972
|
const _component_var_tooltip = vue.resolveComponent("var-tooltip");
|
|
13963
13973
|
return vue.openBlock(), vue.createBlock(
|
|
@@ -13970,7 +13980,7 @@ function __render__$N(_ctx, _cache) {
|
|
|
13970
13980
|
return [
|
|
13971
13981
|
((_a = _ctx.tooltipProps) == null ? void 0 : _a.content) ? (vue.openBlock(), vue.createElementBlock(
|
|
13972
13982
|
"span",
|
|
13973
|
-
_hoisted_1$
|
|
13983
|
+
_hoisted_1$p,
|
|
13974
13984
|
vue.toDisplayString(_ctx.tooltipProps.content),
|
|
13975
13985
|
1
|
|
13976
13986
|
/* TEXT */
|
|
@@ -14288,7 +14298,7 @@ const props$I = {
|
|
|
14288
14298
|
onClear: defineListenerProp()
|
|
14289
14299
|
};
|
|
14290
14300
|
const { name: name$I, n: n$L, classes: classes$D } = createNamespace("field-decorator");
|
|
14291
|
-
const _hoisted_1$
|
|
14301
|
+
const _hoisted_1$o = ["for"];
|
|
14292
14302
|
function __render__$M(_ctx, _cache) {
|
|
14293
14303
|
const _component_var_icon = vue.resolveComponent("var-icon");
|
|
14294
14304
|
return vue.openBlock(), vue.createElementBlock(
|
|
@@ -14368,7 +14378,7 @@ function __render__$M(_ctx, _cache) {
|
|
|
14368
14378
|
1
|
|
14369
14379
|
/* TEXT */
|
|
14370
14380
|
)
|
|
14371
|
-
], 14, _hoisted_1$
|
|
14381
|
+
], 14, _hoisted_1$o)) : vue.createCommentVNode("v-if", true),
|
|
14372
14382
|
vue.createElementVNode(
|
|
14373
14383
|
"div",
|
|
14374
14384
|
{
|
|
@@ -14912,7 +14922,7 @@ const props$F = {
|
|
|
14912
14922
|
onError: defineListenerProp()
|
|
14913
14923
|
};
|
|
14914
14924
|
const { name: name$F, n: n$I, classes: classes$B } = createNamespace("image");
|
|
14915
|
-
const _hoisted_1$
|
|
14925
|
+
const _hoisted_1$n = ["alt", "title", "referrerpolicy", "lazy-loading", "lazy-error"];
|
|
14916
14926
|
const _hoisted_2$d = ["alt", "title", "referrerpolicy", "src"];
|
|
14917
14927
|
function __render__$J(_ctx, _cache) {
|
|
14918
14928
|
var _a;
|
|
@@ -14941,7 +14951,7 @@ function __render__$J(_ctx, _cache) {
|
|
|
14941
14951
|
style: vue.normalizeStyle({ objectFit: _ctx.fit, objectPosition: _ctx.position }),
|
|
14942
14952
|
onLoad: _cache[0] || (_cache[0] = (...args) => _ctx.handleLoad && _ctx.handleLoad(...args)),
|
|
14943
14953
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
14944
|
-
}, null, 46, _hoisted_1$
|
|
14954
|
+
}, null, 46, _hoisted_1$n)), [
|
|
14945
14955
|
[_directive_lazy, (_a = _ctx.src) != null ? _a : ""]
|
|
14946
14956
|
]) : vue.createCommentVNode("v-if", true),
|
|
14947
14957
|
!_ctx.lazy && !_ctx.showErrorSlot ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
@@ -15082,7 +15092,7 @@ var __async$7 = (__this, __arguments, generator) => {
|
|
|
15082
15092
|
const SWIPE_DELAY = 250;
|
|
15083
15093
|
const SWIPE_OFFSET = 20;
|
|
15084
15094
|
const { name: name$E, n: n$H, classes: classes$A } = createNamespace("swipe");
|
|
15085
|
-
const _hoisted_1$
|
|
15095
|
+
const _hoisted_1$m = ["onClick"];
|
|
15086
15096
|
function __render__$I(_ctx, _cache) {
|
|
15087
15097
|
const _component_var_icon = vue.resolveComponent("var-icon");
|
|
15088
15098
|
const _component_var_button = vue.resolveComponent("var-button");
|
|
@@ -15228,7 +15238,7 @@ function __render__$I(_ctx, _cache) {
|
|
|
15228
15238
|
style: vue.normalizeStyle({ background: _ctx.indicatorColor }),
|
|
15229
15239
|
key: l,
|
|
15230
15240
|
onClick: ($event) => _ctx.to(idx)
|
|
15231
|
-
}, null, 14, _hoisted_1$
|
|
15241
|
+
}, null, 14, _hoisted_1$m);
|
|
15232
15242
|
}),
|
|
15233
15243
|
128
|
|
15234
15244
|
/* KEYED_FRAGMENT */
|
|
@@ -15280,6 +15290,7 @@ const __sfc__$J = vue.defineComponent({
|
|
|
15280
15290
|
let timer = -1;
|
|
15281
15291
|
const swipeProvider = {
|
|
15282
15292
|
size,
|
|
15293
|
+
currentIndex: index,
|
|
15283
15294
|
vertical
|
|
15284
15295
|
};
|
|
15285
15296
|
bindSwipeItems(swipeProvider);
|
|
@@ -15569,30 +15580,27 @@ function useSwipe() {
|
|
|
15569
15580
|
};
|
|
15570
15581
|
}
|
|
15571
15582
|
const { name: name$D, n: n$G } = createNamespace("swipe-item");
|
|
15583
|
+
const _hoisted_1$l = ["aria-hidden"];
|
|
15572
15584
|
function __render__$H(_ctx, _cache) {
|
|
15573
|
-
return vue.openBlock(), vue.createElementBlock(
|
|
15574
|
-
|
|
15575
|
-
{
|
|
15576
|
-
|
|
15577
|
-
|
|
15578
|
-
|
|
15579
|
-
|
|
15580
|
-
|
|
15581
|
-
|
|
15582
|
-
|
|
15583
|
-
|
|
15584
|
-
|
|
15585
|
-
],
|
|
15586
|
-
6
|
|
15587
|
-
/* CLASS, STYLE */
|
|
15588
|
-
);
|
|
15585
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
15586
|
+
class: vue.normalizeClass(_ctx.n()),
|
|
15587
|
+
style: vue.normalizeStyle({
|
|
15588
|
+
width: !_ctx.vertical ? `${_ctx.size}px` : void 0,
|
|
15589
|
+
height: _ctx.vertical ? `${_ctx.size}px` : void 0,
|
|
15590
|
+
transform: `translate${_ctx.vertical ? "Y" : "X"}(${_ctx.translate}px)`
|
|
15591
|
+
}),
|
|
15592
|
+
tabindex: "-1",
|
|
15593
|
+
"aria-hidden": _ctx.currentIndex === _ctx.index ? "false" : "true"
|
|
15594
|
+
}, [
|
|
15595
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
15596
|
+
], 14, _hoisted_1$l);
|
|
15589
15597
|
}
|
|
15590
15598
|
const __sfc__$I = vue.defineComponent({
|
|
15591
15599
|
name: name$D,
|
|
15592
15600
|
setup() {
|
|
15593
15601
|
const translate = vue.ref(0);
|
|
15594
15602
|
const { swipe, bindSwipe, index } = useSwipe();
|
|
15595
|
-
const { size, vertical } = swipe;
|
|
15603
|
+
const { size, currentIndex, vertical } = swipe;
|
|
15596
15604
|
const swipeItemProvider = {
|
|
15597
15605
|
index,
|
|
15598
15606
|
setTranslate
|
|
@@ -15604,6 +15612,8 @@ const __sfc__$I = vue.defineComponent({
|
|
|
15604
15612
|
return {
|
|
15605
15613
|
n: n$G,
|
|
15606
15614
|
size,
|
|
15615
|
+
index,
|
|
15616
|
+
currentIndex,
|
|
15607
15617
|
vertical,
|
|
15608
15618
|
translate
|
|
15609
15619
|
};
|
|
@@ -16624,7 +16634,7 @@ const __sfc__$E = vue.defineComponent({
|
|
|
16624
16634
|
},
|
|
16625
16635
|
props: props$A,
|
|
16626
16636
|
setup(props2) {
|
|
16627
|
-
const id =
|
|
16637
|
+
const id = useClientId();
|
|
16628
16638
|
const el = vue.ref(null);
|
|
16629
16639
|
const isFocusing = vue.ref(false);
|
|
16630
16640
|
const isComposing = vue.ref(false);
|
|
@@ -19302,211 +19312,212 @@ const props$n = {
|
|
|
19302
19312
|
default: "primary"
|
|
19303
19313
|
}
|
|
19304
19314
|
};
|
|
19305
|
-
const
|
|
19315
|
+
const MAX = 100;
|
|
19316
|
+
const MIN = 0;
|
|
19306
19317
|
const RADIUS = 20;
|
|
19307
19318
|
const CIRCUMFERENCE = 2 * Math.PI * RADIUS;
|
|
19308
19319
|
const { name: name$n, n: n$q, classes: classes$l } = createNamespace("progress");
|
|
19309
|
-
const _hoisted_1$d = ["
|
|
19310
|
-
const _hoisted_2$9 =
|
|
19311
|
-
const _hoisted_3$8 =
|
|
19312
|
-
const _hoisted_4$
|
|
19313
|
-
const _hoisted_5$1 = ["
|
|
19314
|
-
const _hoisted_6$1 = ["d", "stroke-width", "stroke-dasharray"
|
|
19320
|
+
const _hoisted_1$d = ["aria-valuenow"];
|
|
19321
|
+
const _hoisted_2$9 = ["viewBox"];
|
|
19322
|
+
const _hoisted_3$8 = { key: 0 };
|
|
19323
|
+
const _hoisted_4$3 = ["id"];
|
|
19324
|
+
const _hoisted_5$1 = ["offset", "stop-color"];
|
|
19325
|
+
const _hoisted_6$1 = ["d", "stroke-width", "stroke-dasharray"];
|
|
19326
|
+
const _hoisted_7 = ["d", "stroke-width", "stroke-dasharray", "stroke-dashoffset"];
|
|
19315
19327
|
function __render__$t(_ctx, _cache) {
|
|
19316
|
-
return vue.openBlock(), vue.createElementBlock(
|
|
19317
|
-
|
|
19318
|
-
|
|
19319
|
-
|
|
19320
|
-
|
|
19321
|
-
|
|
19322
|
-
|
|
19323
|
-
|
|
19324
|
-
|
|
19325
|
-
|
|
19326
|
-
|
|
19327
|
-
|
|
19328
|
-
|
|
19329
|
-
|
|
19330
|
-
|
|
19331
|
-
|
|
19332
|
-
|
|
19333
|
-
|
|
19334
|
-
}
|
|
19335
|
-
|
|
19336
|
-
|
|
19337
|
-
|
|
19338
|
-
|
|
19339
|
-
|
|
19340
|
-
|
|
19341
|
-
|
|
19342
|
-
|
|
19343
|
-
|
|
19344
|
-
|
|
19345
|
-
|
|
19346
|
-
|
|
19347
|
-
|
|
19348
|
-
}
|
|
19349
|
-
|
|
19350
|
-
6
|
|
19351
|
-
/* CLASS, STYLE */
|
|
19352
|
-
),
|
|
19353
|
-
vue.createElementVNode(
|
|
19354
|
-
"div",
|
|
19355
|
-
{
|
|
19356
|
-
class: vue.normalizeClass(_ctx.classes(_ctx.n(`linear--${_ctx.type}`))),
|
|
19357
|
-
style: vue.normalizeStyle({ background: _ctx.progressColor })
|
|
19358
|
-
},
|
|
19359
|
-
null,
|
|
19360
|
-
6
|
|
19361
|
-
/* CLASS, STYLE */
|
|
19362
|
-
)
|
|
19363
|
-
],
|
|
19364
|
-
2
|
|
19365
|
-
/* CLASS */
|
|
19366
|
-
)) : (vue.openBlock(), vue.createElementBlock(
|
|
19367
|
-
"div",
|
|
19368
|
-
{
|
|
19369
|
-
key: 1,
|
|
19370
|
-
class: vue.normalizeClass(_ctx.classes(_ctx.n("linear-certain"), _ctx.n(`linear--${_ctx.type}`))),
|
|
19371
|
-
style: vue.normalizeStyle({ background: _ctx.progressColor, width: _ctx.linearProps.width })
|
|
19372
|
-
},
|
|
19373
|
-
null,
|
|
19374
|
-
6
|
|
19375
|
-
/* CLASS, STYLE */
|
|
19376
|
-
))
|
|
19377
|
-
],
|
|
19378
|
-
6
|
|
19379
|
-
/* CLASS, STYLE */
|
|
19380
|
-
),
|
|
19381
|
-
_ctx.label ? (vue.openBlock(), vue.createElementBlock(
|
|
19382
|
-
"div",
|
|
19383
|
-
{
|
|
19384
|
-
key: 0,
|
|
19385
|
-
class: vue.normalizeClass(_ctx.classes(_ctx.n("linear-label"), [_ctx.labelClass, _ctx.labelClass]))
|
|
19386
|
-
},
|
|
19387
|
-
[
|
|
19388
|
-
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
19389
|
-
vue.createTextVNode(
|
|
19390
|
-
vue.toDisplayString(_ctx.linearProps.roundValue),
|
|
19391
|
-
1
|
|
19392
|
-
/* TEXT */
|
|
19393
|
-
)
|
|
19394
|
-
])
|
|
19395
|
-
],
|
|
19396
|
-
2
|
|
19397
|
-
/* CLASS */
|
|
19398
|
-
)) : vue.createCommentVNode("v-if", true)
|
|
19399
|
-
],
|
|
19400
|
-
2
|
|
19401
|
-
/* CLASS */
|
|
19402
|
-
)) : vue.createCommentVNode("v-if", true),
|
|
19403
|
-
_ctx.mode === "circle" ? (vue.openBlock(), vue.createElementBlock(
|
|
19404
|
-
"div",
|
|
19405
|
-
{
|
|
19406
|
-
key: 1,
|
|
19407
|
-
class: vue.normalizeClass(_ctx.classes(_ctx.n("circle"), [_ctx.indeterminate, _ctx.n("circle-indeterminate")])),
|
|
19408
|
-
style: vue.normalizeStyle({ width: _ctx.toSizeUnit(_ctx.size), height: _ctx.toSizeUnit(_ctx.size) })
|
|
19409
|
-
},
|
|
19410
|
-
[
|
|
19411
|
-
(vue.openBlock(), vue.createElementBlock("svg", {
|
|
19412
|
-
class: vue.normalizeClass(_ctx.n("circle-svg")),
|
|
19413
|
-
viewBox: _ctx.circleProps.viewBox
|
|
19414
|
-
}, [
|
|
19415
|
-
_ctx.isPlainObject(_ctx.color) ? (vue.openBlock(), vue.createElementBlock("defs", _hoisted_2$9, [
|
|
19416
|
-
vue.createElementVNode("linearGradient", {
|
|
19417
|
-
id: _ctx.id,
|
|
19418
|
-
x1: "100%",
|
|
19419
|
-
y1: "0%",
|
|
19420
|
-
x2: "0%",
|
|
19421
|
-
y2: "0%"
|
|
19422
|
-
}, [
|
|
19423
|
-
(vue.openBlock(true), vue.createElementBlock(
|
|
19424
|
-
vue.Fragment,
|
|
19328
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
19329
|
+
class: vue.normalizeClass(_ctx.n()),
|
|
19330
|
+
role: "progressbar",
|
|
19331
|
+
"aria-valuemin": "0",
|
|
19332
|
+
"aria-valuemax": "100",
|
|
19333
|
+
"aria-valuenow": _ctx.indeterminate ? void 0 : _ctx.mode === "linear" ? _ctx.linearProps.value : _ctx.circleProps.value
|
|
19334
|
+
}, [
|
|
19335
|
+
_ctx.mode === "linear" ? (vue.openBlock(), vue.createElementBlock(
|
|
19336
|
+
"div",
|
|
19337
|
+
{
|
|
19338
|
+
key: 0,
|
|
19339
|
+
class: vue.normalizeClass(_ctx.n("linear"))
|
|
19340
|
+
},
|
|
19341
|
+
[
|
|
19342
|
+
vue.createElementVNode(
|
|
19343
|
+
"div",
|
|
19344
|
+
{
|
|
19345
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n("linear-block"), [_ctx.track, _ctx.n("linear-background")])),
|
|
19346
|
+
style: vue.normalizeStyle({ height: _ctx.toSizeUnit(_ctx.lineWidth), background: _ctx.trackColor })
|
|
19347
|
+
},
|
|
19348
|
+
[
|
|
19349
|
+
_ctx.indeterminate ? (vue.openBlock(), vue.createElementBlock(
|
|
19350
|
+
"div",
|
|
19351
|
+
{
|
|
19352
|
+
key: 0,
|
|
19353
|
+
class: vue.normalizeClass(_ctx.n("linear-indeterminate"))
|
|
19354
|
+
},
|
|
19355
|
+
[
|
|
19356
|
+
vue.createElementVNode(
|
|
19357
|
+
"div",
|
|
19358
|
+
{
|
|
19359
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n(`linear--${_ctx.type}`))),
|
|
19360
|
+
style: vue.normalizeStyle({ background: _ctx.progressColor })
|
|
19361
|
+
},
|
|
19425
19362
|
null,
|
|
19426
|
-
|
|
19427
|
-
|
|
19428
|
-
|
|
19429
|
-
|
|
19430
|
-
|
|
19431
|
-
|
|
19432
|
-
|
|
19433
|
-
|
|
19434
|
-
|
|
19435
|
-
|
|
19436
|
-
|
|
19437
|
-
|
|
19438
|
-
_ctx.track ? (vue.openBlock(), vue.createElementBlock("path", {
|
|
19439
|
-
key: 1,
|
|
19440
|
-
class: vue.normalizeClass(_ctx.n("circle-background")),
|
|
19441
|
-
d: _ctx.circleProps.path,
|
|
19442
|
-
fill: "transparent",
|
|
19443
|
-
"stroke-width": _ctx.circleProps.strokeWidth,
|
|
19444
|
-
"stroke-dasharray": _ctx.CIRCUMFERENCE,
|
|
19445
|
-
style: vue.normalizeStyle({
|
|
19446
|
-
stroke: _ctx.trackColor
|
|
19447
|
-
})
|
|
19448
|
-
}, null, 14, _hoisted_5$1)) : vue.createCommentVNode("v-if", true),
|
|
19449
|
-
vue.createElementVNode("path", {
|
|
19450
|
-
class: vue.normalizeClass(_ctx.classes(_ctx.n("circle-certain"), _ctx.n(`circle--${_ctx.type}`), [_ctx.indeterminate, _ctx.n("circle-overlay")])),
|
|
19451
|
-
d: _ctx.circleProps.path,
|
|
19452
|
-
fill: "transparent",
|
|
19453
|
-
"stroke-width": _ctx.circleProps.strokeWidth,
|
|
19454
|
-
"stroke-dasharray": _ctx.CIRCUMFERENCE,
|
|
19455
|
-
"stroke-dashoffset": _ctx.circleProps.strokeOffset,
|
|
19456
|
-
style: vue.normalizeStyle({
|
|
19457
|
-
stroke: _ctx.progressColor,
|
|
19458
|
-
transform: `rotateZ(${_ctx.rotate}deg)`,
|
|
19459
|
-
transformOrigin: "50% 50%"
|
|
19460
|
-
})
|
|
19461
|
-
}, null, 14, _hoisted_6$1)
|
|
19462
|
-
], 10, _hoisted_1$d)),
|
|
19463
|
-
_ctx.label ? (vue.openBlock(), vue.createElementBlock(
|
|
19464
|
-
"div",
|
|
19465
|
-
{
|
|
19466
|
-
key: 0,
|
|
19467
|
-
class: vue.normalizeClass(_ctx.classes(_ctx.n("circle-label"), [_ctx.labelClass, _ctx.labelClass]))
|
|
19468
|
-
},
|
|
19469
|
-
[
|
|
19470
|
-
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
19471
|
-
vue.createTextVNode(
|
|
19472
|
-
vue.toDisplayString(_ctx.circleProps.roundValue),
|
|
19473
|
-
1
|
|
19474
|
-
/* TEXT */
|
|
19363
|
+
6
|
|
19364
|
+
/* CLASS, STYLE */
|
|
19365
|
+
),
|
|
19366
|
+
vue.createElementVNode(
|
|
19367
|
+
"div",
|
|
19368
|
+
{
|
|
19369
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n(`linear--${_ctx.type}`))),
|
|
19370
|
+
style: vue.normalizeStyle({ background: _ctx.progressColor })
|
|
19371
|
+
},
|
|
19372
|
+
null,
|
|
19373
|
+
6
|
|
19374
|
+
/* CLASS, STYLE */
|
|
19475
19375
|
)
|
|
19476
|
-
]
|
|
19477
|
-
|
|
19478
|
-
|
|
19479
|
-
|
|
19480
|
-
|
|
19481
|
-
|
|
19482
|
-
|
|
19483
|
-
|
|
19484
|
-
|
|
19485
|
-
|
|
19486
|
-
|
|
19487
|
-
|
|
19488
|
-
|
|
19376
|
+
],
|
|
19377
|
+
2
|
|
19378
|
+
/* CLASS */
|
|
19379
|
+
)) : (vue.openBlock(), vue.createElementBlock(
|
|
19380
|
+
"div",
|
|
19381
|
+
{
|
|
19382
|
+
key: 1,
|
|
19383
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n("linear-certain"), _ctx.n(`linear--${_ctx.type}`))),
|
|
19384
|
+
style: vue.normalizeStyle({ background: _ctx.progressColor, width: _ctx.linearProps.width })
|
|
19385
|
+
},
|
|
19386
|
+
null,
|
|
19387
|
+
6
|
|
19388
|
+
/* CLASS, STYLE */
|
|
19389
|
+
))
|
|
19390
|
+
],
|
|
19391
|
+
6
|
|
19392
|
+
/* CLASS, STYLE */
|
|
19393
|
+
),
|
|
19394
|
+
_ctx.label ? (vue.openBlock(), vue.createElementBlock(
|
|
19395
|
+
"div",
|
|
19396
|
+
{
|
|
19397
|
+
key: 0,
|
|
19398
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n("linear-label"), [_ctx.labelClass, _ctx.labelClass]))
|
|
19399
|
+
},
|
|
19400
|
+
[
|
|
19401
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
19402
|
+
vue.createTextVNode(
|
|
19403
|
+
vue.toDisplayString(_ctx.linearProps.roundValue),
|
|
19404
|
+
1
|
|
19405
|
+
/* TEXT */
|
|
19406
|
+
)
|
|
19407
|
+
])
|
|
19408
|
+
],
|
|
19409
|
+
2
|
|
19410
|
+
/* CLASS */
|
|
19411
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
19412
|
+
],
|
|
19413
|
+
2
|
|
19414
|
+
/* CLASS */
|
|
19415
|
+
)) : vue.createCommentVNode("v-if", true),
|
|
19416
|
+
_ctx.mode === "circle" ? (vue.openBlock(), vue.createElementBlock(
|
|
19417
|
+
"div",
|
|
19418
|
+
{
|
|
19419
|
+
key: 1,
|
|
19420
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n("circle"), [_ctx.indeterminate, _ctx.n("circle-indeterminate")])),
|
|
19421
|
+
style: vue.normalizeStyle({ width: _ctx.toSizeUnit(_ctx.size), height: _ctx.toSizeUnit(_ctx.size) })
|
|
19422
|
+
},
|
|
19423
|
+
[
|
|
19424
|
+
(vue.openBlock(), vue.createElementBlock("svg", {
|
|
19425
|
+
class: vue.normalizeClass(_ctx.n("circle-svg")),
|
|
19426
|
+
viewBox: _ctx.circleProps.viewBox
|
|
19427
|
+
}, [
|
|
19428
|
+
_ctx.isPlainObject(_ctx.color) ? (vue.openBlock(), vue.createElementBlock("defs", _hoisted_3$8, [
|
|
19429
|
+
vue.createElementVNode("linearGradient", {
|
|
19430
|
+
id: _ctx.id,
|
|
19431
|
+
x1: "100%",
|
|
19432
|
+
y1: "0%",
|
|
19433
|
+
x2: "0%",
|
|
19434
|
+
y2: "0%"
|
|
19435
|
+
}, [
|
|
19436
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
19437
|
+
vue.Fragment,
|
|
19438
|
+
null,
|
|
19439
|
+
vue.renderList(_ctx.linearGradientProgress, (progress, idx) => {
|
|
19440
|
+
return vue.openBlock(), vue.createElementBlock("stop", {
|
|
19441
|
+
key: idx,
|
|
19442
|
+
offset: progress,
|
|
19443
|
+
"stop-color": _ctx.color[progress]
|
|
19444
|
+
}, null, 8, _hoisted_5$1);
|
|
19445
|
+
}),
|
|
19446
|
+
128
|
|
19447
|
+
/* KEYED_FRAGMENT */
|
|
19448
|
+
))
|
|
19449
|
+
], 8, _hoisted_4$3)
|
|
19450
|
+
])) : vue.createCommentVNode("v-if", true),
|
|
19451
|
+
_ctx.track ? (vue.openBlock(), vue.createElementBlock("path", {
|
|
19452
|
+
key: 1,
|
|
19453
|
+
class: vue.normalizeClass(_ctx.n("circle-background")),
|
|
19454
|
+
d: _ctx.circleProps.path,
|
|
19455
|
+
fill: "transparent",
|
|
19456
|
+
"stroke-width": _ctx.circleProps.strokeWidth,
|
|
19457
|
+
"stroke-dasharray": _ctx.CIRCUMFERENCE,
|
|
19458
|
+
style: vue.normalizeStyle({
|
|
19459
|
+
stroke: _ctx.trackColor
|
|
19460
|
+
})
|
|
19461
|
+
}, null, 14, _hoisted_6$1)) : vue.createCommentVNode("v-if", true),
|
|
19462
|
+
vue.createElementVNode("path", {
|
|
19463
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n("circle-certain"), _ctx.n(`circle--${_ctx.type}`), [_ctx.indeterminate, _ctx.n("circle-overlay")])),
|
|
19464
|
+
d: _ctx.circleProps.path,
|
|
19465
|
+
fill: "transparent",
|
|
19466
|
+
"stroke-width": _ctx.circleProps.strokeWidth,
|
|
19467
|
+
"stroke-dasharray": _ctx.CIRCUMFERENCE,
|
|
19468
|
+
"stroke-dashoffset": _ctx.circleProps.strokeOffset,
|
|
19469
|
+
style: vue.normalizeStyle({
|
|
19470
|
+
stroke: _ctx.progressColor,
|
|
19471
|
+
transform: `rotateZ(${_ctx.rotate}deg)`,
|
|
19472
|
+
transformOrigin: "50% 50%"
|
|
19473
|
+
})
|
|
19474
|
+
}, null, 14, _hoisted_7)
|
|
19475
|
+
], 10, _hoisted_2$9)),
|
|
19476
|
+
_ctx.label ? (vue.openBlock(), vue.createElementBlock(
|
|
19477
|
+
"div",
|
|
19478
|
+
{
|
|
19479
|
+
key: 0,
|
|
19480
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n("circle-label"), _ctx.labelClass))
|
|
19481
|
+
},
|
|
19482
|
+
[
|
|
19483
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
19484
|
+
vue.createTextVNode(
|
|
19485
|
+
vue.toDisplayString(_ctx.circleProps.roundValue),
|
|
19486
|
+
1
|
|
19487
|
+
/* TEXT */
|
|
19488
|
+
)
|
|
19489
|
+
])
|
|
19490
|
+
],
|
|
19491
|
+
2
|
|
19492
|
+
/* CLASS */
|
|
19493
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
19494
|
+
],
|
|
19495
|
+
6
|
|
19496
|
+
/* CLASS, STYLE */
|
|
19497
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
19498
|
+
], 10, _hoisted_1$d);
|
|
19489
19499
|
}
|
|
19490
19500
|
const __sfc__$u = vue.defineComponent({
|
|
19491
19501
|
name: name$n,
|
|
19492
19502
|
props: props$n,
|
|
19493
19503
|
setup(props2) {
|
|
19494
|
-
const id =
|
|
19504
|
+
const id = useClientId();
|
|
19495
19505
|
const linearProps = vue.computed(() => {
|
|
19496
19506
|
const value = toNumber(props2.value);
|
|
19497
|
-
const width = value
|
|
19498
|
-
const roundValue =
|
|
19507
|
+
const width = clamp$1(value, MIN, MAX);
|
|
19508
|
+
const roundValue = clamp$1(Math.round(value), MIN, MAX);
|
|
19499
19509
|
return {
|
|
19500
19510
|
width: `${width}%`,
|
|
19501
|
-
roundValue: `${roundValue}
|
|
19511
|
+
roundValue: `${roundValue}%`,
|
|
19512
|
+
value: width
|
|
19502
19513
|
};
|
|
19503
19514
|
});
|
|
19504
19515
|
const circleProps = vue.computed(() => {
|
|
19505
19516
|
const { size, lineWidth, value } = props2;
|
|
19506
19517
|
const diameter = RADIUS / (1 - toPxNum(lineWidth) / toPxNum(size)) * 2;
|
|
19507
19518
|
const viewBox = `0 0 ${diameter} ${diameter}`;
|
|
19508
|
-
const roundValue =
|
|
19509
|
-
const strokeOffset = `${(
|
|
19519
|
+
const roundValue = clamp$1(Math.round(toNumber(value)), MIN, MAX);
|
|
19520
|
+
const strokeOffset = `${(MAX - roundValue) / MAX * CIRCUMFERENCE}`;
|
|
19510
19521
|
const strokeWidth = toPxNum(lineWidth) / toPxNum(size) * diameter;
|
|
19511
19522
|
const beginPositionX = 0;
|
|
19512
19523
|
const beginPositionY = -RADIUS;
|
|
@@ -19519,7 +19530,8 @@ const __sfc__$u = vue.defineComponent({
|
|
|
19519
19530
|
viewBox,
|
|
19520
19531
|
strokeOffset,
|
|
19521
19532
|
roundValue: `${roundValue}%`,
|
|
19522
|
-
path
|
|
19533
|
+
path,
|
|
19534
|
+
value: clamp$1(toNumber(value), MIN, MAX)
|
|
19523
19535
|
};
|
|
19524
19536
|
});
|
|
19525
19537
|
const progressColor = vue.computed(() => {
|
|
@@ -21633,7 +21645,7 @@ const props$e = {
|
|
|
21633
21645
|
"onUpdate:modelValue": defineListenerProp()
|
|
21634
21646
|
};
|
|
21635
21647
|
const { name: name$e, n: n$g, classes: classes$c } = createNamespace("slider");
|
|
21636
|
-
const _hoisted_1$4 = ["tabindex", "onTouchstart", "onFocusin", "onFocusout"];
|
|
21648
|
+
const _hoisted_1$4 = ["tabindex", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-disabled", "aria-valuetext", "onTouchstart", "onFocusin", "onFocusout"];
|
|
21637
21649
|
function __render__$e(_ctx, _cache) {
|
|
21638
21650
|
const _component_var_hover_overlay = vue.resolveComponent("var-hover-overlay");
|
|
21639
21651
|
const _component_var_form_details = vue.resolveComponent("var-form-details");
|
|
@@ -21649,7 +21661,7 @@ function __render__$e(_ctx, _cache) {
|
|
|
21649
21661
|
{
|
|
21650
21662
|
class: vue.normalizeClass(_ctx.classes(_ctx.n(`${_ctx.direction}-block`), [_ctx.isDisabled, _ctx.n("--disabled")], [_ctx.errorMessage, _ctx.n(`${_ctx.direction}--error`)])),
|
|
21651
21663
|
ref: "sliderEl",
|
|
21652
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.
|
|
21664
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
21653
21665
|
},
|
|
21654
21666
|
[
|
|
21655
21667
|
vue.createElementVNode(
|
|
@@ -21695,6 +21707,12 @@ function __render__$e(_ctx, _cache) {
|
|
|
21695
21707
|
key: item.enumValue,
|
|
21696
21708
|
style: vue.normalizeStyle(_ctx.thumbStyle(item)),
|
|
21697
21709
|
tabindex: _ctx.isDisabled ? void 0 : "0",
|
|
21710
|
+
role: "slider",
|
|
21711
|
+
"aria-valuemin": _ctx.min,
|
|
21712
|
+
"aria-valuemax": _ctx.max,
|
|
21713
|
+
"aria-valuenow": item.value,
|
|
21714
|
+
"aria-disabled": _ctx.isDisabled,
|
|
21715
|
+
"aria-valuetext": `${item.text}`,
|
|
21698
21716
|
onTouchstart: vue.withModifiers(($event) => _ctx.start($event, item.enumValue), ["stop"]),
|
|
21699
21717
|
onFocusin: ($event) => _ctx.handleFocus(item),
|
|
21700
21718
|
onFocusout: ($event) => _ctx.handleBlur(item)
|
|
@@ -21951,13 +21969,7 @@ const __sfc__$f = vue.defineComponent({
|
|
|
21951
21969
|
if (!isNumber(value)) {
|
|
21952
21970
|
return 0;
|
|
21953
21971
|
}
|
|
21954
|
-
|
|
21955
|
-
if (num < Number(props2.min)) {
|
|
21956
|
-
num = Number(props2.min);
|
|
21957
|
-
}
|
|
21958
|
-
if (num > Number(props2.max)) {
|
|
21959
|
-
num = Number(props2.max);
|
|
21960
|
-
}
|
|
21972
|
+
const num = clamp$1(value, toNumber(props2.min), toNumber(props2.max));
|
|
21961
21973
|
const isInteger = parseInt(`${num}`, 10) === num;
|
|
21962
21974
|
return isInteger ? num : toNumber(num.toPrecision(5));
|
|
21963
21975
|
}
|
|
@@ -22056,11 +22068,13 @@ const __sfc__$f = vue.defineComponent({
|
|
|
22056
22068
|
call(onEnd, range ? rangeValue : curValue);
|
|
22057
22069
|
isScroll.value = false;
|
|
22058
22070
|
}
|
|
22059
|
-
function
|
|
22060
|
-
if (isDisabled.value || isReadonly.value)
|
|
22071
|
+
function handleClick(event) {
|
|
22072
|
+
if (isDisabled.value || isReadonly.value) {
|
|
22061
22073
|
return;
|
|
22062
|
-
|
|
22074
|
+
}
|
|
22075
|
+
if (event.target.closest(`.${n$g("thumb")}`)) {
|
|
22063
22076
|
return;
|
|
22077
|
+
}
|
|
22064
22078
|
const offset2 = getOffset(event);
|
|
22065
22079
|
const type = getType(offset2);
|
|
22066
22080
|
activeThumb = type;
|
|
@@ -22068,13 +22082,8 @@ const __sfc__$f = vue.defineComponent({
|
|
|
22068
22082
|
end2();
|
|
22069
22083
|
}
|
|
22070
22084
|
function stepValidator() {
|
|
22071
|
-
|
|
22072
|
-
|
|
22073
|
-
warn("Slider", 'type of prop "step" should be Number');
|
|
22074
|
-
return false;
|
|
22075
|
-
}
|
|
22076
|
-
if (stepNumber < 0) {
|
|
22077
|
-
warn("Slider", '"step" should be > 0');
|
|
22085
|
+
if (toNumber(props2.step) <= 0) {
|
|
22086
|
+
warn("[Varlet] Slider", '"step" should be > 0');
|
|
22078
22087
|
return false;
|
|
22079
22088
|
}
|
|
22080
22089
|
return true;
|
|
@@ -22121,7 +22130,7 @@ const __sfc__$f = vue.defineComponent({
|
|
|
22121
22130
|
resetValidation();
|
|
22122
22131
|
}
|
|
22123
22132
|
function moveFocusingThumb(offset2, value) {
|
|
22124
|
-
const stepValue =
|
|
22133
|
+
const stepValue = toNumber(props2.step);
|
|
22125
22134
|
if (isArray(value)) {
|
|
22126
22135
|
const updatedFirstValue = value[0] + (focusingFirst.value ? offset2 * stepValue : 0);
|
|
22127
22136
|
const updatedSecondValue = value[1] + (focusingSecond.value ? offset2 * stepValue : 0);
|
|
@@ -22161,7 +22170,6 @@ const __sfc__$f = vue.defineComponent({
|
|
|
22161
22170
|
item.handleFocusing(false);
|
|
22162
22171
|
}
|
|
22163
22172
|
return {
|
|
22164
|
-
Thumbs,
|
|
22165
22173
|
sliderEl,
|
|
22166
22174
|
getFillStyle,
|
|
22167
22175
|
isDisabled,
|
|
@@ -22181,7 +22189,7 @@ const __sfc__$f = vue.defineComponent({
|
|
|
22181
22189
|
start: start2,
|
|
22182
22190
|
move,
|
|
22183
22191
|
end: end2,
|
|
22184
|
-
|
|
22192
|
+
handleClick
|
|
22185
22193
|
};
|
|
22186
22194
|
}
|
|
22187
22195
|
});
|
|
@@ -23063,8 +23071,9 @@ const props$8 = {
|
|
|
23063
23071
|
};
|
|
23064
23072
|
const { name: name$8, n: n$9, classes: classes$8 } = createNamespace("switch");
|
|
23065
23073
|
const _withScopeId = (n2) => (vue.pushScopeId(""), n2 = n2(), vue.popScopeId(), n2);
|
|
23066
|
-
const _hoisted_1$2 = ["
|
|
23067
|
-
const _hoisted_2$2 =
|
|
23074
|
+
const _hoisted_1$2 = ["aria-checked"];
|
|
23075
|
+
const _hoisted_2$2 = ["tabindex"];
|
|
23076
|
+
const _hoisted_3$2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode(
|
|
23068
23077
|
"svg",
|
|
23069
23078
|
{ viewBox: "25 25 50 50" },
|
|
23070
23079
|
[
|
|
@@ -23078,97 +23087,93 @@ const _hoisted_2$2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.crea
|
|
|
23078
23087
|
-1
|
|
23079
23088
|
/* HOISTED */
|
|
23080
23089
|
));
|
|
23081
|
-
const
|
|
23082
|
-
|
|
23090
|
+
const _hoisted_4$2 = [
|
|
23091
|
+
_hoisted_3$2
|
|
23083
23092
|
];
|
|
23084
23093
|
function __render__$9(_ctx, _cache) {
|
|
23085
23094
|
const _component_var_hover_overlay = vue.resolveComponent("var-hover-overlay");
|
|
23086
23095
|
const _component_var_form_details = vue.resolveComponent("var-form-details");
|
|
23087
23096
|
const _directive_ripple = vue.resolveDirective("ripple");
|
|
23088
23097
|
const _directive_hover = vue.resolveDirective("hover");
|
|
23089
|
-
return vue.withDirectives((vue.openBlock(), vue.createElementBlock(
|
|
23090
|
-
"
|
|
23091
|
-
|
|
23092
|
-
|
|
23093
|
-
|
|
23094
|
-
|
|
23095
|
-
|
|
23096
|
-
|
|
23097
|
-
|
|
23098
|
-
|
|
23099
|
-
|
|
23100
|
-
|
|
23101
|
-
|
|
23102
|
-
|
|
23103
|
-
|
|
23098
|
+
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
23099
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n(), [_ctx.variant, _ctx.n("--variant")])),
|
|
23100
|
+
role: "switch",
|
|
23101
|
+
"aria-checked": _ctx.modelValue
|
|
23102
|
+
}, [
|
|
23103
|
+
vue.createElementVNode(
|
|
23104
|
+
"div",
|
|
23105
|
+
{
|
|
23106
|
+
ref: "switchRef",
|
|
23107
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n("block"), [_ctx.disabled || _ctx.formDisabled, _ctx.n("--disabled")], [_ctx.isActive, _ctx.n("block--active")])),
|
|
23108
|
+
style: vue.normalizeStyle(_ctx.styleComputed.switch),
|
|
23109
|
+
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.switchActive && _ctx.switchActive(...args))
|
|
23110
|
+
},
|
|
23111
|
+
[
|
|
23112
|
+
vue.createElementVNode(
|
|
23113
|
+
"div",
|
|
23114
|
+
{
|
|
23115
|
+
style: vue.normalizeStyle(_ctx.styleComputed.track),
|
|
23116
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n("track"), [_ctx.isActive, _ctx.n("track--active")], [_ctx.errorMessage && !_ctx.variant, _ctx.n("track--error")]))
|
|
23117
|
+
},
|
|
23118
|
+
null,
|
|
23119
|
+
6
|
|
23120
|
+
/* CLASS, STYLE */
|
|
23121
|
+
),
|
|
23122
|
+
vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
23123
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n("ripple"), [_ctx.isActive, _ctx.n("ripple--active")])),
|
|
23124
|
+
style: vue.normalizeStyle(_ctx.styleComputed.ripple),
|
|
23125
|
+
tabindex: _ctx.disabled || _ctx.formDisabled ? void 0 : "0",
|
|
23126
|
+
onFocus: _cache[0] || (_cache[0] = ($event) => _ctx.isFocusing = true),
|
|
23127
|
+
onBlur: _cache[1] || (_cache[1] = ($event) => _ctx.isFocusing = false)
|
|
23128
|
+
}, [
|
|
23104
23129
|
vue.createElementVNode(
|
|
23105
23130
|
"div",
|
|
23106
23131
|
{
|
|
23107
|
-
style: vue.normalizeStyle(_ctx.styleComputed.
|
|
23108
|
-
class: vue.normalizeClass(
|
|
23132
|
+
style: vue.normalizeStyle(_ctx.styleComputed.handle),
|
|
23133
|
+
class: vue.normalizeClass(
|
|
23134
|
+
_ctx.classes(
|
|
23135
|
+
_ctx.n("handle"),
|
|
23136
|
+
_ctx.n("$-elevation--2"),
|
|
23137
|
+
[_ctx.isActive, _ctx.n("handle--active")],
|
|
23138
|
+
[_ctx.errorMessage && !_ctx.variant, _ctx.n("handle--error")],
|
|
23139
|
+
[_ctx.hovering, _ctx.n("handle--hover")]
|
|
23140
|
+
)
|
|
23141
|
+
)
|
|
23109
23142
|
},
|
|
23110
|
-
|
|
23143
|
+
[
|
|
23144
|
+
_ctx.loading ? (vue.openBlock(), vue.createElementBlock(
|
|
23145
|
+
"span",
|
|
23146
|
+
{
|
|
23147
|
+
key: 0,
|
|
23148
|
+
class: vue.normalizeClass(_ctx.n("loading")),
|
|
23149
|
+
style: vue.normalizeStyle({
|
|
23150
|
+
width: _ctx.radius,
|
|
23151
|
+
height: _ctx.radius
|
|
23152
|
+
})
|
|
23153
|
+
},
|
|
23154
|
+
[..._hoisted_4$2],
|
|
23155
|
+
6
|
|
23156
|
+
/* CLASS, STYLE */
|
|
23157
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
23158
|
+
],
|
|
23111
23159
|
6
|
|
23112
23160
|
/* CLASS, STYLE */
|
|
23113
23161
|
),
|
|
23114
|
-
vue.
|
|
23115
|
-
|
|
23116
|
-
|
|
23117
|
-
|
|
23118
|
-
|
|
23119
|
-
|
|
23120
|
-
|
|
23121
|
-
|
|
23122
|
-
|
|
23123
|
-
|
|
23124
|
-
|
|
23125
|
-
|
|
23126
|
-
|
|
23127
|
-
|
|
23128
|
-
|
|
23129
|
-
[_ctx.isActive, _ctx.n("handle--active")],
|
|
23130
|
-
[_ctx.errorMessage && !_ctx.variant, _ctx.n("handle--error")],
|
|
23131
|
-
[_ctx.hovering, _ctx.n("handle--hover")]
|
|
23132
|
-
)
|
|
23133
|
-
)
|
|
23134
|
-
},
|
|
23135
|
-
[
|
|
23136
|
-
_ctx.loading ? (vue.openBlock(), vue.createElementBlock(
|
|
23137
|
-
"span",
|
|
23138
|
-
{
|
|
23139
|
-
key: 0,
|
|
23140
|
-
class: vue.normalizeClass(_ctx.n("loading")),
|
|
23141
|
-
style: vue.normalizeStyle({
|
|
23142
|
-
width: _ctx.radius,
|
|
23143
|
-
height: _ctx.radius
|
|
23144
|
-
})
|
|
23145
|
-
},
|
|
23146
|
-
[..._hoisted_3$2],
|
|
23147
|
-
6
|
|
23148
|
-
/* CLASS, STYLE */
|
|
23149
|
-
)) : vue.createCommentVNode("v-if", true)
|
|
23150
|
-
],
|
|
23151
|
-
6
|
|
23152
|
-
/* CLASS, STYLE */
|
|
23153
|
-
),
|
|
23154
|
-
vue.createVNode(_component_var_hover_overlay, {
|
|
23155
|
-
hovering: _ctx.hovering && !_ctx.disabled && !_ctx.formDisabled,
|
|
23156
|
-
focusing: _ctx.isFocusing && !_ctx.disabled && !_ctx.formDisabled
|
|
23157
|
-
}, null, 8, ["hovering", "focusing"])
|
|
23158
|
-
], 46, _hoisted_1$2)), [
|
|
23159
|
-
[_directive_ripple, {
|
|
23160
|
-
disabled: !_ctx.ripple || _ctx.disabled || _ctx.loading || _ctx.formDisabled || _ctx.readonly || _ctx.formReadonly
|
|
23161
|
-
}]
|
|
23162
|
-
])
|
|
23163
|
-
],
|
|
23164
|
-
6
|
|
23165
|
-
/* CLASS, STYLE */
|
|
23166
|
-
),
|
|
23167
|
-
vue.createVNode(_component_var_form_details, { "error-message": _ctx.errorMessage }, null, 8, ["error-message"])
|
|
23168
|
-
],
|
|
23169
|
-
2
|
|
23170
|
-
/* CLASS */
|
|
23171
|
-
)), [
|
|
23162
|
+
vue.createVNode(_component_var_hover_overlay, {
|
|
23163
|
+
hovering: _ctx.hovering && !_ctx.disabled && !_ctx.formDisabled,
|
|
23164
|
+
focusing: _ctx.isFocusing && !_ctx.disabled && !_ctx.formDisabled
|
|
23165
|
+
}, null, 8, ["hovering", "focusing"])
|
|
23166
|
+
], 46, _hoisted_2$2)), [
|
|
23167
|
+
[_directive_ripple, {
|
|
23168
|
+
disabled: !_ctx.ripple || _ctx.disabled || _ctx.loading || _ctx.formDisabled || _ctx.readonly || _ctx.formReadonly
|
|
23169
|
+
}]
|
|
23170
|
+
])
|
|
23171
|
+
],
|
|
23172
|
+
6
|
|
23173
|
+
/* CLASS, STYLE */
|
|
23174
|
+
),
|
|
23175
|
+
vue.createVNode(_component_var_form_details, { "error-message": _ctx.errorMessage }, null, 8, ["error-message"])
|
|
23176
|
+
], 10, _hoisted_1$2)), [
|
|
23172
23177
|
[_directive_hover, _ctx.hover, "desktop"]
|
|
23173
23178
|
]);
|
|
23174
23179
|
}
|
|
@@ -28488,7 +28493,7 @@ withInstall(stdin_default$1);
|
|
|
28488
28493
|
withPropsDefaultsSetter(stdin_default$1, props);
|
|
28489
28494
|
const _WatermarkComponent = stdin_default$1;
|
|
28490
28495
|
var stdin_default = stdin_default$1;
|
|
28491
|
-
const version = "3.2.
|
|
28496
|
+
const version = "3.2.6-alpha.1713858357643";
|
|
28492
28497
|
function install(app) {
|
|
28493
28498
|
stdin_default$5E.install && app.use(stdin_default$5E);
|
|
28494
28499
|
stdin_default$5C.install && app.use(stdin_default$5C);
|