@varlet/ui 3.2.4 → 3.2.5
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/locale/index.mjs +0 -1
- package/es/popup/Popup.mjs +3 -1
- package/es/progress/Progress.mjs +187 -185
- package/es/slider/Slider.mjs +19 -23
- package/es/snackbar/style/index.mjs +1 -1
- 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 +4235 -4228
- 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 +393 -392
- package/package.json +7 -7
- package/umd/varlet.js +6 -6
package/lib/varlet.cjs.js
CHANGED
|
@@ -1225,7 +1225,9 @@ var stdin_default$5T = vue.defineComponent({
|
|
|
1225
1225
|
"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
1226
|
"style": {
|
|
1227
1227
|
zIndex: zIndex.value
|
|
1228
|
-
}
|
|
1228
|
+
},
|
|
1229
|
+
"role": "dialog",
|
|
1230
|
+
"aria-modal": "true"
|
|
1229
1231
|
}, attrs), [rendered.value && call(slots.default)]), [[vue.vShow, props2.show]]);
|
|
1230
1232
|
}
|
|
1231
1233
|
function renderPopup() {
|
|
@@ -2298,7 +2300,6 @@ function useLocale() {
|
|
|
2298
2300
|
if (hasOwn(currentMessage2.value, id)) {
|
|
2299
2301
|
return currentMessage2.value[id];
|
|
2300
2302
|
}
|
|
2301
|
-
return id;
|
|
2302
2303
|
};
|
|
2303
2304
|
return {
|
|
2304
2305
|
messages: messages2,
|
|
@@ -2963,7 +2964,7 @@ const props$1b = {
|
|
|
2963
2964
|
};
|
|
2964
2965
|
const isInternalSize$1 = (size) => ["mini", "small", "normal", "large"].includes(size);
|
|
2965
2966
|
const { name: name$1b, n: n$1i, classes: classes$14 } = createNamespace("avatar");
|
|
2966
|
-
const _hoisted_1$
|
|
2967
|
+
const _hoisted_1$y = ["src", "alt", "lazy-loading", "lazy-error"];
|
|
2967
2968
|
const _hoisted_2$g = ["src", "alt"];
|
|
2968
2969
|
function __render__$1i(_ctx, _cache) {
|
|
2969
2970
|
const _directive_lazy = vue.resolveDirective("lazy");
|
|
@@ -3004,7 +3005,7 @@ function __render__$1i(_ctx, _cache) {
|
|
|
3004
3005
|
"lazy-loading": _ctx.loading,
|
|
3005
3006
|
"lazy-error": _ctx.error,
|
|
3006
3007
|
onLoad: _cache[0] || (_cache[0] = (...args) => _ctx.handleLoad && _ctx.handleLoad(...args))
|
|
3007
|
-
}, null, 46, _hoisted_1$
|
|
3008
|
+
}, null, 46, _hoisted_1$y)), [
|
|
3008
3009
|
[_directive_lazy, _ctx.src]
|
|
3009
3010
|
]) : (vue.openBlock(), vue.createElementBlock("img", {
|
|
3010
3011
|
key: 1,
|
|
@@ -3157,7 +3158,7 @@ const props$19 = {
|
|
|
3157
3158
|
};
|
|
3158
3159
|
const { name: name$19, n: n$1g, classes: classes$12 } = createNamespace("loading");
|
|
3159
3160
|
const _withScopeId$6 = (n2) => (vue.pushScopeId(""), n2 = n2(), vue.popScopeId(), n2);
|
|
3160
|
-
const _hoisted_1$
|
|
3161
|
+
const _hoisted_1$x = /* @__PURE__ */ _withScopeId$6(() => /* @__PURE__ */ vue.createElementVNode(
|
|
3161
3162
|
"svg",
|
|
3162
3163
|
{ viewBox: "25 25 50 50" },
|
|
3163
3164
|
[
|
|
@@ -3172,7 +3173,7 @@ const _hoisted_1$v = /* @__PURE__ */ _withScopeId$6(() => /* @__PURE__ */ vue.cr
|
|
|
3172
3173
|
/* HOISTED */
|
|
3173
3174
|
));
|
|
3174
3175
|
const _hoisted_2$f = [
|
|
3175
|
-
_hoisted_1$
|
|
3176
|
+
_hoisted_1$x
|
|
3176
3177
|
];
|
|
3177
3178
|
function __render__$1g(_ctx, _cache) {
|
|
3178
3179
|
return vue.openBlock(), vue.createElementBlock(
|
|
@@ -3413,7 +3414,7 @@ function useButtonGroup() {
|
|
|
3413
3414
|
};
|
|
3414
3415
|
}
|
|
3415
3416
|
const { name: name$18, n: n$1f, classes: classes$11 } = createNamespace("button");
|
|
3416
|
-
const _hoisted_1$
|
|
3417
|
+
const _hoisted_1$w = ["type", "disabled"];
|
|
3417
3418
|
function __render__$1f(_ctx, _cache) {
|
|
3418
3419
|
const _component_var_loading = vue.resolveComponent("var-loading");
|
|
3419
3420
|
const _component_var_hover_overlay = vue.resolveComponent("var-hover-overlay");
|
|
@@ -3472,7 +3473,7 @@ function __render__$1f(_ctx, _cache) {
|
|
|
3472
3473
|
hovering: _ctx.disabled || _ctx.loading || _ctx.pending ? false : _ctx.hovering,
|
|
3473
3474
|
focusing: _ctx.disabled || _ctx.loading || _ctx.pending ? false : _ctx.isFocusing
|
|
3474
3475
|
}, null, 8, ["hovering", "focusing"])
|
|
3475
|
-
], 46, _hoisted_1$
|
|
3476
|
+
], 46, _hoisted_1$w)), [
|
|
3476
3477
|
[_directive_ripple, { disabled: _ctx.disabled || !_ctx.ripple || _ctx.loading || _ctx.pending }],
|
|
3477
3478
|
[_directive_hover, _ctx.handleHovering, "desktop"]
|
|
3478
3479
|
]);
|
|
@@ -3727,7 +3728,7 @@ var __spreadValues$n = (a, b) => {
|
|
|
3727
3728
|
return a;
|
|
3728
3729
|
};
|
|
3729
3730
|
const { name: name$16, n: n$1d, classes: classes$$ } = createNamespace("badge");
|
|
3730
|
-
const _hoisted_1$
|
|
3731
|
+
const _hoisted_1$v = { key: 0 };
|
|
3731
3732
|
function __render__$1d(_ctx, _cache) {
|
|
3732
3733
|
const _component_var_icon = vue.resolveComponent("var-icon");
|
|
3733
3734
|
return vue.openBlock(), vue.createElementBlock(
|
|
@@ -3765,7 +3766,7 @@ function __render__$1d(_ctx, _cache) {
|
|
|
3765
3766
|
vue.renderSlot(_ctx.$slots, "value", {}, () => [
|
|
3766
3767
|
!_ctx.icon && !_ctx.dot ? (vue.openBlock(), vue.createElementBlock(
|
|
3767
3768
|
"span",
|
|
3768
|
-
_hoisted_1$
|
|
3769
|
+
_hoisted_1$v,
|
|
3769
3770
|
vue.toDisplayString(_ctx.value),
|
|
3770
3771
|
1
|
|
3771
3772
|
/* TEXT */
|
|
@@ -4249,7 +4250,8 @@ function __render__$1a(_ctx, _cache) {
|
|
|
4249
4250
|
vue.createElementVNode(
|
|
4250
4251
|
"div",
|
|
4251
4252
|
{
|
|
4252
|
-
class: vue.normalizeClass(_ctx.n("separator"))
|
|
4253
|
+
class: vue.normalizeClass(_ctx.n("separator")),
|
|
4254
|
+
"aria-hidden": "true"
|
|
4253
4255
|
},
|
|
4254
4256
|
vue.toDisplayString((_a = _ctx.separator) != null ? _a : _ctx.parentSeparator),
|
|
4255
4257
|
3
|
|
@@ -4302,7 +4304,9 @@ function __render__$19(_ctx, _cache) {
|
|
|
4302
4304
|
return vue.openBlock(), vue.createElementBlock(
|
|
4303
4305
|
"div",
|
|
4304
4306
|
{
|
|
4305
|
-
class: vue.normalizeClass(_ctx.n())
|
|
4307
|
+
class: vue.normalizeClass(_ctx.n()),
|
|
4308
|
+
role: "navigation",
|
|
4309
|
+
"aria-label": "Breadcrumbs"
|
|
4306
4310
|
},
|
|
4307
4311
|
[
|
|
4308
4312
|
vue.renderSlot(_ctx.$slots, "default")
|
|
@@ -4453,7 +4457,7 @@ var __async$e = (__this, __arguments, generator) => {
|
|
|
4453
4457
|
};
|
|
4454
4458
|
const { name: name$10, n: n$17, classes: classes$W } = createNamespace("card");
|
|
4455
4459
|
const RIPPLE_DELAY = 500;
|
|
4456
|
-
const _hoisted_1$
|
|
4460
|
+
const _hoisted_1$u = ["src", "alt"];
|
|
4457
4461
|
function __render__$17(_ctx, _cache) {
|
|
4458
4462
|
const _component_var_icon = vue.resolveComponent("var-icon");
|
|
4459
4463
|
const _component_var_button = vue.resolveComponent("var-button");
|
|
@@ -4498,7 +4502,7 @@ function __render__$17(_ctx, _cache) {
|
|
|
4498
4502
|
}),
|
|
4499
4503
|
src: _ctx.src,
|
|
4500
4504
|
alt: _ctx.alt
|
|
4501
|
-
}, null, 14, _hoisted_1$
|
|
4505
|
+
}, null, 14, _hoisted_1$u)) : vue.createCommentVNode("v-if", true)
|
|
4502
4506
|
]),
|
|
4503
4507
|
vue.createElementVNode(
|
|
4504
4508
|
"div",
|
|
@@ -4912,7 +4916,7 @@ const props$_ = {
|
|
|
4912
4916
|
}
|
|
4913
4917
|
};
|
|
4914
4918
|
const { name: name$_, n: n$15 } = createNamespace("form-details");
|
|
4915
|
-
const _hoisted_1$
|
|
4919
|
+
const _hoisted_1$t = { key: 0 };
|
|
4916
4920
|
const _hoisted_2$e = { key: 0 };
|
|
4917
4921
|
function __render__$15(_ctx, _cache) {
|
|
4918
4922
|
return vue.openBlock(), vue.createBlock(vue.Transition, {
|
|
@@ -4938,7 +4942,7 @@ function __render__$15(_ctx, _cache) {
|
|
|
4938
4942
|
default: vue.withCtx(() => [
|
|
4939
4943
|
_ctx.errorMessage ? (vue.openBlock(), vue.createElementBlock(
|
|
4940
4944
|
"div",
|
|
4941
|
-
_hoisted_1$
|
|
4945
|
+
_hoisted_1$t,
|
|
4942
4946
|
vue.toDisplayString(_ctx.errorMessage),
|
|
4943
4947
|
1
|
|
4944
4948
|
/* TEXT */
|
|
@@ -5093,7 +5097,7 @@ function useFormItems() {
|
|
|
5093
5097
|
};
|
|
5094
5098
|
}
|
|
5095
5099
|
const { name: name$Z, n: n$14, classes: classes$U } = createNamespace("checkbox");
|
|
5096
|
-
const _hoisted_1$
|
|
5100
|
+
const _hoisted_1$s = ["tabindex"];
|
|
5097
5101
|
function __render__$14(_ctx, _cache) {
|
|
5098
5102
|
const _component_var_icon = vue.resolveComponent("var-icon");
|
|
5099
5103
|
const _component_var_hover_overlay = vue.resolveComponent("var-hover-overlay");
|
|
@@ -5156,7 +5160,7 @@ function __render__$14(_ctx, _cache) {
|
|
|
5156
5160
|
hovering: !_ctx.disabled && !_ctx.formDisabled && _ctx.hovering,
|
|
5157
5161
|
focusing: !_ctx.disabled && !_ctx.formDisabled && _ctx.isFocusing
|
|
5158
5162
|
}, null, 8, ["hovering", "focusing"])
|
|
5159
|
-
], 46, _hoisted_1$
|
|
5163
|
+
], 46, _hoisted_1$s)), [
|
|
5160
5164
|
[_directive_hover, _ctx.handleHovering, "desktop"],
|
|
5161
5165
|
[_directive_ripple, { disabled: _ctx.formReadonly || _ctx.readonly || _ctx.formDisabled || _ctx.disabled || !_ctx.ripple }]
|
|
5162
5166
|
]),
|
|
@@ -5777,12 +5781,14 @@ const __sfc__$11 = vue.defineComponent({
|
|
|
5777
5781
|
const offset2 = vue.computed(() => props2.offset);
|
|
5778
5782
|
const divider = vue.computed(() => props2.divider);
|
|
5779
5783
|
const elevation = vue.computed(() => props2.elevation);
|
|
5784
|
+
const accordion = vue.computed(() => props2.accordion);
|
|
5780
5785
|
const normalizeValues = vue.computed(() => normalizeToArray(props2.modelValue));
|
|
5781
5786
|
const { length, collapseItems, bindCollapseItems } = useCollapseItem();
|
|
5782
5787
|
const collapseProvider = {
|
|
5783
5788
|
offset: offset2,
|
|
5784
5789
|
divider,
|
|
5785
5790
|
elevation,
|
|
5791
|
+
accordion,
|
|
5786
5792
|
updateItem
|
|
5787
5793
|
};
|
|
5788
5794
|
vue.watch(
|
|
@@ -5972,6 +5978,7 @@ function useCollapseTransition(options) {
|
|
|
5972
5978
|
};
|
|
5973
5979
|
}
|
|
5974
5980
|
const { name: name$U, n: n$$, classes: classes$Q } = createNamespace("collapse-item");
|
|
5981
|
+
const _hoisted_1$r = ["aria-expanded", "aria-disabled", "role"];
|
|
5975
5982
|
function __render__$$(_ctx, _cache) {
|
|
5976
5983
|
const _component_var_icon = vue.resolveComponent("var-icon");
|
|
5977
5984
|
return vue.openBlock(), vue.createElementBlock(
|
|
@@ -5990,58 +5997,55 @@ function __render__$$(_ctx, _cache) {
|
|
|
5990
5997
|
2
|
|
5991
5998
|
/* CLASS */
|
|
5992
5999
|
),
|
|
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
|
-
)
|
|
6000
|
+
vue.createElementVNode("div", {
|
|
6001
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n("header"), [!_ctx.disabled, _ctx.n("header--cursor-pointer")])),
|
|
6002
|
+
"aria-expanded": _ctx.isShow,
|
|
6003
|
+
"aria-disabled": _ctx.disabled,
|
|
6004
|
+
role: _ctx.accordion ? "tab" : "button",
|
|
6005
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.toggle && _ctx.toggle(...args))
|
|
6006
|
+
}, [
|
|
6007
|
+
_ctx.$slots.title || _ctx.title ? (vue.openBlock(), vue.createElementBlock(
|
|
6008
|
+
"div",
|
|
6009
|
+
{
|
|
6010
|
+
key: 0,
|
|
6011
|
+
class: vue.normalizeClass(_ctx.n("header-title"))
|
|
6012
|
+
},
|
|
6013
|
+
[
|
|
6014
|
+
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
6015
|
+
vue.createTextVNode(
|
|
6016
|
+
vue.toDisplayString(_ctx.title),
|
|
6017
|
+
1
|
|
6018
|
+
/* TEXT */
|
|
6019
|
+
)
|
|
6020
|
+
])
|
|
6021
|
+
],
|
|
6022
|
+
2
|
|
6023
|
+
/* CLASS */
|
|
6024
|
+
)) : vue.createCommentVNode("v-if", true),
|
|
6025
|
+
vue.createElementVNode(
|
|
6026
|
+
"div",
|
|
6027
|
+
{
|
|
6028
|
+
class: vue.normalizeClass(_ctx.n("header-icon"))
|
|
6029
|
+
},
|
|
6030
|
+
[
|
|
6031
|
+
vue.renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
6032
|
+
vue.createVNode(_component_var_icon, {
|
|
6033
|
+
name: _ctx.icon,
|
|
6034
|
+
transition: 250,
|
|
6035
|
+
class: vue.normalizeClass(
|
|
6036
|
+
_ctx.classes(
|
|
6037
|
+
_ctx.n("header-icon"),
|
|
6038
|
+
[_ctx.isShow && _ctx.icon === "chevron-down", _ctx.n("header-open")],
|
|
6039
|
+
[_ctx.disabled, _ctx.n("header--disable")]
|
|
6034
6040
|
)
|
|
6035
|
-
|
|
6036
|
-
])
|
|
6037
|
-
]
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
/* CLASS */
|
|
6044
|
-
),
|
|
6041
|
+
)
|
|
6042
|
+
}, null, 8, ["name", "class"])
|
|
6043
|
+
])
|
|
6044
|
+
],
|
|
6045
|
+
2
|
|
6046
|
+
/* CLASS */
|
|
6047
|
+
)
|
|
6048
|
+
], 10, _hoisted_1$r),
|
|
6045
6049
|
vue.withDirectives(vue.createElementVNode(
|
|
6046
6050
|
"div",
|
|
6047
6051
|
{
|
|
@@ -6086,7 +6090,7 @@ const __sfc__$10 = vue.defineComponent({
|
|
|
6086
6090
|
const name2 = vue.computed(() => props2.name);
|
|
6087
6091
|
const disabled = vue.computed(() => props2.disabled);
|
|
6088
6092
|
const { index, collapse, bindCollapse } = useCollapse();
|
|
6089
|
-
const { offset: offset2, divider, elevation, updateItem } = collapse;
|
|
6093
|
+
const { offset: offset2, divider, elevation, accordion, updateItem } = collapse;
|
|
6090
6094
|
const collapseItemProvider = {
|
|
6091
6095
|
index,
|
|
6092
6096
|
name: name2,
|
|
@@ -6116,6 +6120,7 @@ const __sfc__$10 = vue.defineComponent({
|
|
|
6116
6120
|
divider,
|
|
6117
6121
|
elevation,
|
|
6118
6122
|
contentEl,
|
|
6123
|
+
accordion,
|
|
6119
6124
|
n: n$$,
|
|
6120
6125
|
classes: classes$Q,
|
|
6121
6126
|
toggle,
|
|
@@ -8743,7 +8748,7 @@ const props$R = {
|
|
|
8743
8748
|
const SPEED = 100;
|
|
8744
8749
|
const DELAY = 600;
|
|
8745
8750
|
const { name: name$R, n: n$Y, classes: classes$P } = createNamespace("counter");
|
|
8746
|
-
const _hoisted_1$
|
|
8751
|
+
const _hoisted_1$q = ["inputmode", "readonly", "disabled"];
|
|
8747
8752
|
function __render__$Y(_ctx, _cache) {
|
|
8748
8753
|
const _component_var_icon = vue.resolveComponent("var-icon");
|
|
8749
8754
|
const _component_var_button = vue.resolveComponent("var-button");
|
|
@@ -8803,7 +8808,7 @@ function __render__$Y(_ctx, _cache) {
|
|
|
8803
8808
|
disabled: _ctx.disabled || _ctx.formDisabled || _ctx.disableInput,
|
|
8804
8809
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.inputValue = $event),
|
|
8805
8810
|
onChange: _cache[1] || (_cache[1] = (...args) => _ctx.handleChange && _ctx.handleChange(...args))
|
|
8806
|
-
}, null, 46, _hoisted_1$
|
|
8811
|
+
}, null, 46, _hoisted_1$q), [
|
|
8807
8812
|
[vue.vModelText, _ctx.inputValue]
|
|
8808
8813
|
]),
|
|
8809
8814
|
vue.createVNode(_component_var_button, {
|
|
@@ -9072,7 +9077,7 @@ var MILLISECONDS_A_DAY = SECONDS_A_DAY * MILLISECONDS_A_SECOND;
|
|
|
9072
9077
|
var MILLISECONDS_A_WEEK = SECONDS_A_WEEK * MILLISECONDS_A_SECOND;
|
|
9073
9078
|
var MS = "millisecond";
|
|
9074
9079
|
var S = "second";
|
|
9075
|
-
var MIN = "minute";
|
|
9080
|
+
var MIN$1 = "minute";
|
|
9076
9081
|
var H = "hour";
|
|
9077
9082
|
var D = "day";
|
|
9078
9083
|
var W = "week";
|
|
@@ -9122,7 +9127,7 @@ var prettyUnit = function prettyUnit2(u) {
|
|
|
9122
9127
|
d: D,
|
|
9123
9128
|
D: DATE,
|
|
9124
9129
|
h: H,
|
|
9125
|
-
m: MIN,
|
|
9130
|
+
m: MIN$1,
|
|
9126
9131
|
s: S,
|
|
9127
9132
|
ms: MS,
|
|
9128
9133
|
Q
|
|
@@ -9298,7 +9303,7 @@ var Dayjs = /* @__PURE__ */ function() {
|
|
|
9298
9303
|
return instanceFactorySet(utcPad + "Hours", 0);
|
|
9299
9304
|
case H:
|
|
9300
9305
|
return instanceFactorySet(utcPad + "Minutes", 1);
|
|
9301
|
-
case MIN:
|
|
9306
|
+
case MIN$1:
|
|
9302
9307
|
return instanceFactorySet(utcPad + "Seconds", 2);
|
|
9303
9308
|
case S:
|
|
9304
9309
|
return instanceFactorySet(utcPad + "Milliseconds", 3);
|
|
@@ -9313,7 +9318,7 @@ var Dayjs = /* @__PURE__ */ function() {
|
|
|
9313
9318
|
var _C$D$C$DATE$C$M$C$Y$C;
|
|
9314
9319
|
var unit = Utils.p(units);
|
|
9315
9320
|
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];
|
|
9321
|
+
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
9322
|
var arg = unit === D ? this.$D + (_int - this.$W) : _int;
|
|
9318
9323
|
if (unit === M || unit === Y) {
|
|
9319
9324
|
var date = this.clone().set(DATE, 1);
|
|
@@ -9351,7 +9356,7 @@ var Dayjs = /* @__PURE__ */ function() {
|
|
|
9351
9356
|
if (unit === W) {
|
|
9352
9357
|
return instanceFactorySet(7);
|
|
9353
9358
|
}
|
|
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;
|
|
9359
|
+
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
9360
|
var nextTimeStamp = this.$d.getTime() + number * step;
|
|
9356
9361
|
return Utils.w(nextTimeStamp, this);
|
|
9357
9362
|
};
|
|
@@ -9418,7 +9423,7 @@ var Dayjs = /* @__PURE__ */ function() {
|
|
|
9418
9423
|
var zoneDelta = (that.utcOffset() - this.utcOffset()) * MILLISECONDS_A_MINUTE;
|
|
9419
9424
|
var diff3 = this - that;
|
|
9420
9425
|
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;
|
|
9426
|
+
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
9427
|
return _float ? result : Utils.a(result);
|
|
9423
9428
|
};
|
|
9424
9429
|
_proto.daysInMonth = function daysInMonth() {
|
|
@@ -9455,7 +9460,7 @@ var Dayjs = /* @__PURE__ */ function() {
|
|
|
9455
9460
|
}();
|
|
9456
9461
|
var proto = Dayjs.prototype;
|
|
9457
9462
|
dayjs.prototype = proto;
|
|
9458
|
-
[["$ms", MS], ["$s", S], ["$m", MIN], ["$H", H], ["$W", D], ["$M", M], ["$y", Y], ["$D", DATE]].forEach(function(g) {
|
|
9463
|
+
[["$ms", MS], ["$s", S], ["$m", MIN$1], ["$H", H], ["$W", D], ["$M", M], ["$y", Y], ["$D", DATE]].forEach(function(g) {
|
|
9459
9464
|
proto[g[1]] = function(input) {
|
|
9460
9465
|
return this.$g(input, g[0], g[1]);
|
|
9461
9466
|
};
|
|
@@ -13846,7 +13851,8 @@ function __render__$O(_ctx, _cache) {
|
|
|
13846
13851
|
"div",
|
|
13847
13852
|
{
|
|
13848
13853
|
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}`)))
|
|
13854
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n("content-container"), _ctx.n(`--${_ctx.type}`))),
|
|
13855
|
+
role: "tooltip"
|
|
13850
13856
|
},
|
|
13851
13857
|
[
|
|
13852
13858
|
vue.renderSlot(_ctx.$slots, "content", {}, () => [
|
|
@@ -13957,7 +13963,7 @@ var __spreadValues$c = (a, b) => {
|
|
|
13957
13963
|
return a;
|
|
13958
13964
|
};
|
|
13959
13965
|
const { name: name$K, n: n$N, classes: classes$F } = createNamespace("ellipsis");
|
|
13960
|
-
const _hoisted_1$
|
|
13966
|
+
const _hoisted_1$p = { key: 0 };
|
|
13961
13967
|
function __render__$N(_ctx, _cache) {
|
|
13962
13968
|
const _component_var_tooltip = vue.resolveComponent("var-tooltip");
|
|
13963
13969
|
return vue.openBlock(), vue.createBlock(
|
|
@@ -13970,7 +13976,7 @@ function __render__$N(_ctx, _cache) {
|
|
|
13970
13976
|
return [
|
|
13971
13977
|
((_a = _ctx.tooltipProps) == null ? void 0 : _a.content) ? (vue.openBlock(), vue.createElementBlock(
|
|
13972
13978
|
"span",
|
|
13973
|
-
_hoisted_1$
|
|
13979
|
+
_hoisted_1$p,
|
|
13974
13980
|
vue.toDisplayString(_ctx.tooltipProps.content),
|
|
13975
13981
|
1
|
|
13976
13982
|
/* TEXT */
|
|
@@ -14288,7 +14294,7 @@ const props$I = {
|
|
|
14288
14294
|
onClear: defineListenerProp()
|
|
14289
14295
|
};
|
|
14290
14296
|
const { name: name$I, n: n$L, classes: classes$D } = createNamespace("field-decorator");
|
|
14291
|
-
const _hoisted_1$
|
|
14297
|
+
const _hoisted_1$o = ["for"];
|
|
14292
14298
|
function __render__$M(_ctx, _cache) {
|
|
14293
14299
|
const _component_var_icon = vue.resolveComponent("var-icon");
|
|
14294
14300
|
return vue.openBlock(), vue.createElementBlock(
|
|
@@ -14368,7 +14374,7 @@ function __render__$M(_ctx, _cache) {
|
|
|
14368
14374
|
1
|
|
14369
14375
|
/* TEXT */
|
|
14370
14376
|
)
|
|
14371
|
-
], 14, _hoisted_1$
|
|
14377
|
+
], 14, _hoisted_1$o)) : vue.createCommentVNode("v-if", true),
|
|
14372
14378
|
vue.createElementVNode(
|
|
14373
14379
|
"div",
|
|
14374
14380
|
{
|
|
@@ -14912,7 +14918,7 @@ const props$F = {
|
|
|
14912
14918
|
onError: defineListenerProp()
|
|
14913
14919
|
};
|
|
14914
14920
|
const { name: name$F, n: n$I, classes: classes$B } = createNamespace("image");
|
|
14915
|
-
const _hoisted_1$
|
|
14921
|
+
const _hoisted_1$n = ["alt", "title", "referrerpolicy", "lazy-loading", "lazy-error"];
|
|
14916
14922
|
const _hoisted_2$d = ["alt", "title", "referrerpolicy", "src"];
|
|
14917
14923
|
function __render__$J(_ctx, _cache) {
|
|
14918
14924
|
var _a;
|
|
@@ -14941,7 +14947,7 @@ function __render__$J(_ctx, _cache) {
|
|
|
14941
14947
|
style: vue.normalizeStyle({ objectFit: _ctx.fit, objectPosition: _ctx.position }),
|
|
14942
14948
|
onLoad: _cache[0] || (_cache[0] = (...args) => _ctx.handleLoad && _ctx.handleLoad(...args)),
|
|
14943
14949
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
14944
|
-
}, null, 46, _hoisted_1$
|
|
14950
|
+
}, null, 46, _hoisted_1$n)), [
|
|
14945
14951
|
[_directive_lazy, (_a = _ctx.src) != null ? _a : ""]
|
|
14946
14952
|
]) : vue.createCommentVNode("v-if", true),
|
|
14947
14953
|
!_ctx.lazy && !_ctx.showErrorSlot ? (vue.openBlock(), vue.createElementBlock("img", {
|
|
@@ -15082,7 +15088,7 @@ var __async$7 = (__this, __arguments, generator) => {
|
|
|
15082
15088
|
const SWIPE_DELAY = 250;
|
|
15083
15089
|
const SWIPE_OFFSET = 20;
|
|
15084
15090
|
const { name: name$E, n: n$H, classes: classes$A } = createNamespace("swipe");
|
|
15085
|
-
const _hoisted_1$
|
|
15091
|
+
const _hoisted_1$m = ["onClick"];
|
|
15086
15092
|
function __render__$I(_ctx, _cache) {
|
|
15087
15093
|
const _component_var_icon = vue.resolveComponent("var-icon");
|
|
15088
15094
|
const _component_var_button = vue.resolveComponent("var-button");
|
|
@@ -15228,7 +15234,7 @@ function __render__$I(_ctx, _cache) {
|
|
|
15228
15234
|
style: vue.normalizeStyle({ background: _ctx.indicatorColor }),
|
|
15229
15235
|
key: l,
|
|
15230
15236
|
onClick: ($event) => _ctx.to(idx)
|
|
15231
|
-
}, null, 14, _hoisted_1$
|
|
15237
|
+
}, null, 14, _hoisted_1$m);
|
|
15232
15238
|
}),
|
|
15233
15239
|
128
|
|
15234
15240
|
/* KEYED_FRAGMENT */
|
|
@@ -15280,6 +15286,7 @@ const __sfc__$J = vue.defineComponent({
|
|
|
15280
15286
|
let timer = -1;
|
|
15281
15287
|
const swipeProvider = {
|
|
15282
15288
|
size,
|
|
15289
|
+
currentIndex: index,
|
|
15283
15290
|
vertical
|
|
15284
15291
|
};
|
|
15285
15292
|
bindSwipeItems(swipeProvider);
|
|
@@ -15569,30 +15576,27 @@ function useSwipe() {
|
|
|
15569
15576
|
};
|
|
15570
15577
|
}
|
|
15571
15578
|
const { name: name$D, n: n$G } = createNamespace("swipe-item");
|
|
15579
|
+
const _hoisted_1$l = ["aria-hidden"];
|
|
15572
15580
|
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
|
-
);
|
|
15581
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
15582
|
+
class: vue.normalizeClass(_ctx.n()),
|
|
15583
|
+
style: vue.normalizeStyle({
|
|
15584
|
+
width: !_ctx.vertical ? `${_ctx.size}px` : void 0,
|
|
15585
|
+
height: _ctx.vertical ? `${_ctx.size}px` : void 0,
|
|
15586
|
+
transform: `translate${_ctx.vertical ? "Y" : "X"}(${_ctx.translate}px)`
|
|
15587
|
+
}),
|
|
15588
|
+
tabindex: "-1",
|
|
15589
|
+
"aria-hidden": _ctx.currentIndex === _ctx.index ? "false" : "true"
|
|
15590
|
+
}, [
|
|
15591
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
15592
|
+
], 14, _hoisted_1$l);
|
|
15589
15593
|
}
|
|
15590
15594
|
const __sfc__$I = vue.defineComponent({
|
|
15591
15595
|
name: name$D,
|
|
15592
15596
|
setup() {
|
|
15593
15597
|
const translate = vue.ref(0);
|
|
15594
15598
|
const { swipe, bindSwipe, index } = useSwipe();
|
|
15595
|
-
const { size, vertical } = swipe;
|
|
15599
|
+
const { size, currentIndex, vertical } = swipe;
|
|
15596
15600
|
const swipeItemProvider = {
|
|
15597
15601
|
index,
|
|
15598
15602
|
setTranslate
|
|
@@ -15604,6 +15608,8 @@ const __sfc__$I = vue.defineComponent({
|
|
|
15604
15608
|
return {
|
|
15605
15609
|
n: n$G,
|
|
15606
15610
|
size,
|
|
15611
|
+
index,
|
|
15612
|
+
currentIndex,
|
|
15607
15613
|
vertical,
|
|
15608
15614
|
translate
|
|
15609
15615
|
};
|
|
@@ -19302,190 +19308,190 @@ const props$n = {
|
|
|
19302
19308
|
default: "primary"
|
|
19303
19309
|
}
|
|
19304
19310
|
};
|
|
19305
|
-
const
|
|
19311
|
+
const MAX = 100;
|
|
19312
|
+
const MIN = 0;
|
|
19306
19313
|
const RADIUS = 20;
|
|
19307
19314
|
const CIRCUMFERENCE = 2 * Math.PI * RADIUS;
|
|
19308
19315
|
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"
|
|
19316
|
+
const _hoisted_1$d = ["aria-valuenow"];
|
|
19317
|
+
const _hoisted_2$9 = ["viewBox"];
|
|
19318
|
+
const _hoisted_3$8 = { key: 0 };
|
|
19319
|
+
const _hoisted_4$3 = ["id"];
|
|
19320
|
+
const _hoisted_5$1 = ["offset", "stop-color"];
|
|
19321
|
+
const _hoisted_6$1 = ["d", "stroke-width", "stroke-dasharray"];
|
|
19322
|
+
const _hoisted_7 = ["d", "stroke-width", "stroke-dasharray", "stroke-dashoffset"];
|
|
19315
19323
|
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,
|
|
19324
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
19325
|
+
class: vue.normalizeClass(_ctx.n()),
|
|
19326
|
+
role: "progressbar",
|
|
19327
|
+
"aria-valuemin": "0",
|
|
19328
|
+
"aria-valuemax": "100",
|
|
19329
|
+
"aria-valuenow": _ctx.indeterminate ? void 0 : _ctx.mode === "linear" ? _ctx.linearProps.value : _ctx.circleProps.value
|
|
19330
|
+
}, [
|
|
19331
|
+
_ctx.mode === "linear" ? (vue.openBlock(), vue.createElementBlock(
|
|
19332
|
+
"div",
|
|
19333
|
+
{
|
|
19334
|
+
key: 0,
|
|
19335
|
+
class: vue.normalizeClass(_ctx.n("linear"))
|
|
19336
|
+
},
|
|
19337
|
+
[
|
|
19338
|
+
vue.createElementVNode(
|
|
19339
|
+
"div",
|
|
19340
|
+
{
|
|
19341
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n("linear-block"), [_ctx.track, _ctx.n("linear-background")])),
|
|
19342
|
+
style: vue.normalizeStyle({ height: _ctx.toSizeUnit(_ctx.lineWidth), background: _ctx.trackColor })
|
|
19343
|
+
},
|
|
19344
|
+
[
|
|
19345
|
+
_ctx.indeterminate ? (vue.openBlock(), vue.createElementBlock(
|
|
19346
|
+
"div",
|
|
19347
|
+
{
|
|
19348
|
+
key: 0,
|
|
19349
|
+
class: vue.normalizeClass(_ctx.n("linear-indeterminate"))
|
|
19350
|
+
},
|
|
19351
|
+
[
|
|
19352
|
+
vue.createElementVNode(
|
|
19353
|
+
"div",
|
|
19354
|
+
{
|
|
19355
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n(`linear--${_ctx.type}`))),
|
|
19356
|
+
style: vue.normalizeStyle({ background: _ctx.progressColor })
|
|
19357
|
+
},
|
|
19425
19358
|
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 */
|
|
19359
|
+
6
|
|
19360
|
+
/* CLASS, STYLE */
|
|
19361
|
+
),
|
|
19362
|
+
vue.createElementVNode(
|
|
19363
|
+
"div",
|
|
19364
|
+
{
|
|
19365
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n(`linear--${_ctx.type}`))),
|
|
19366
|
+
style: vue.normalizeStyle({ background: _ctx.progressColor })
|
|
19367
|
+
},
|
|
19368
|
+
null,
|
|
19369
|
+
6
|
|
19370
|
+
/* CLASS, STYLE */
|
|
19475
19371
|
)
|
|
19476
|
-
]
|
|
19477
|
-
|
|
19478
|
-
|
|
19479
|
-
|
|
19480
|
-
|
|
19481
|
-
|
|
19482
|
-
|
|
19483
|
-
|
|
19484
|
-
|
|
19485
|
-
|
|
19486
|
-
|
|
19487
|
-
|
|
19488
|
-
|
|
19372
|
+
],
|
|
19373
|
+
2
|
|
19374
|
+
/* CLASS */
|
|
19375
|
+
)) : (vue.openBlock(), vue.createElementBlock(
|
|
19376
|
+
"div",
|
|
19377
|
+
{
|
|
19378
|
+
key: 1,
|
|
19379
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n("linear-certain"), _ctx.n(`linear--${_ctx.type}`))),
|
|
19380
|
+
style: vue.normalizeStyle({ background: _ctx.progressColor, width: _ctx.linearProps.width })
|
|
19381
|
+
},
|
|
19382
|
+
null,
|
|
19383
|
+
6
|
|
19384
|
+
/* CLASS, STYLE */
|
|
19385
|
+
))
|
|
19386
|
+
],
|
|
19387
|
+
6
|
|
19388
|
+
/* CLASS, STYLE */
|
|
19389
|
+
),
|
|
19390
|
+
_ctx.label ? (vue.openBlock(), vue.createElementBlock(
|
|
19391
|
+
"div",
|
|
19392
|
+
{
|
|
19393
|
+
key: 0,
|
|
19394
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n("linear-label"), [_ctx.labelClass, _ctx.labelClass]))
|
|
19395
|
+
},
|
|
19396
|
+
[
|
|
19397
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
19398
|
+
vue.createTextVNode(
|
|
19399
|
+
vue.toDisplayString(_ctx.linearProps.roundValue),
|
|
19400
|
+
1
|
|
19401
|
+
/* TEXT */
|
|
19402
|
+
)
|
|
19403
|
+
])
|
|
19404
|
+
],
|
|
19405
|
+
2
|
|
19406
|
+
/* CLASS */
|
|
19407
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
19408
|
+
],
|
|
19409
|
+
2
|
|
19410
|
+
/* CLASS */
|
|
19411
|
+
)) : vue.createCommentVNode("v-if", true),
|
|
19412
|
+
_ctx.mode === "circle" ? (vue.openBlock(), vue.createElementBlock(
|
|
19413
|
+
"div",
|
|
19414
|
+
{
|
|
19415
|
+
key: 1,
|
|
19416
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n("circle"), [_ctx.indeterminate, _ctx.n("circle-indeterminate")])),
|
|
19417
|
+
style: vue.normalizeStyle({ width: _ctx.toSizeUnit(_ctx.size), height: _ctx.toSizeUnit(_ctx.size) })
|
|
19418
|
+
},
|
|
19419
|
+
[
|
|
19420
|
+
(vue.openBlock(), vue.createElementBlock("svg", {
|
|
19421
|
+
class: vue.normalizeClass(_ctx.n("circle-svg")),
|
|
19422
|
+
viewBox: _ctx.circleProps.viewBox
|
|
19423
|
+
}, [
|
|
19424
|
+
_ctx.isPlainObject(_ctx.color) ? (vue.openBlock(), vue.createElementBlock("defs", _hoisted_3$8, [
|
|
19425
|
+
vue.createElementVNode("linearGradient", {
|
|
19426
|
+
id: _ctx.id,
|
|
19427
|
+
x1: "100%",
|
|
19428
|
+
y1: "0%",
|
|
19429
|
+
x2: "0%",
|
|
19430
|
+
y2: "0%"
|
|
19431
|
+
}, [
|
|
19432
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
19433
|
+
vue.Fragment,
|
|
19434
|
+
null,
|
|
19435
|
+
vue.renderList(_ctx.linearGradientProgress, (progress, idx) => {
|
|
19436
|
+
return vue.openBlock(), vue.createElementBlock("stop", {
|
|
19437
|
+
key: idx,
|
|
19438
|
+
offset: progress,
|
|
19439
|
+
"stop-color": _ctx.color[progress]
|
|
19440
|
+
}, null, 8, _hoisted_5$1);
|
|
19441
|
+
}),
|
|
19442
|
+
128
|
|
19443
|
+
/* KEYED_FRAGMENT */
|
|
19444
|
+
))
|
|
19445
|
+
], 8, _hoisted_4$3)
|
|
19446
|
+
])) : vue.createCommentVNode("v-if", true),
|
|
19447
|
+
_ctx.track ? (vue.openBlock(), vue.createElementBlock("path", {
|
|
19448
|
+
key: 1,
|
|
19449
|
+
class: vue.normalizeClass(_ctx.n("circle-background")),
|
|
19450
|
+
d: _ctx.circleProps.path,
|
|
19451
|
+
fill: "transparent",
|
|
19452
|
+
"stroke-width": _ctx.circleProps.strokeWidth,
|
|
19453
|
+
"stroke-dasharray": _ctx.CIRCUMFERENCE,
|
|
19454
|
+
style: vue.normalizeStyle({
|
|
19455
|
+
stroke: _ctx.trackColor
|
|
19456
|
+
})
|
|
19457
|
+
}, null, 14, _hoisted_6$1)) : vue.createCommentVNode("v-if", true),
|
|
19458
|
+
vue.createElementVNode("path", {
|
|
19459
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n("circle-certain"), _ctx.n(`circle--${_ctx.type}`), [_ctx.indeterminate, _ctx.n("circle-overlay")])),
|
|
19460
|
+
d: _ctx.circleProps.path,
|
|
19461
|
+
fill: "transparent",
|
|
19462
|
+
"stroke-width": _ctx.circleProps.strokeWidth,
|
|
19463
|
+
"stroke-dasharray": _ctx.CIRCUMFERENCE,
|
|
19464
|
+
"stroke-dashoffset": _ctx.circleProps.strokeOffset,
|
|
19465
|
+
style: vue.normalizeStyle({
|
|
19466
|
+
stroke: _ctx.progressColor,
|
|
19467
|
+
transform: `rotateZ(${_ctx.rotate}deg)`,
|
|
19468
|
+
transformOrigin: "50% 50%"
|
|
19469
|
+
})
|
|
19470
|
+
}, null, 14, _hoisted_7)
|
|
19471
|
+
], 10, _hoisted_2$9)),
|
|
19472
|
+
_ctx.label ? (vue.openBlock(), vue.createElementBlock(
|
|
19473
|
+
"div",
|
|
19474
|
+
{
|
|
19475
|
+
key: 0,
|
|
19476
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n("circle-label"), _ctx.labelClass))
|
|
19477
|
+
},
|
|
19478
|
+
[
|
|
19479
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
19480
|
+
vue.createTextVNode(
|
|
19481
|
+
vue.toDisplayString(_ctx.circleProps.roundValue),
|
|
19482
|
+
1
|
|
19483
|
+
/* TEXT */
|
|
19484
|
+
)
|
|
19485
|
+
])
|
|
19486
|
+
],
|
|
19487
|
+
2
|
|
19488
|
+
/* CLASS */
|
|
19489
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
19490
|
+
],
|
|
19491
|
+
6
|
|
19492
|
+
/* CLASS, STYLE */
|
|
19493
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
19494
|
+
], 10, _hoisted_1$d);
|
|
19489
19495
|
}
|
|
19490
19496
|
const __sfc__$u = vue.defineComponent({
|
|
19491
19497
|
name: name$n,
|
|
@@ -19494,19 +19500,20 @@ const __sfc__$u = vue.defineComponent({
|
|
|
19494
19500
|
const id = useId();
|
|
19495
19501
|
const linearProps = vue.computed(() => {
|
|
19496
19502
|
const value = toNumber(props2.value);
|
|
19497
|
-
const width = value
|
|
19498
|
-
const roundValue =
|
|
19503
|
+
const width = clamp$1(value, MIN, MAX);
|
|
19504
|
+
const roundValue = clamp$1(Math.round(value), MIN, MAX);
|
|
19499
19505
|
return {
|
|
19500
19506
|
width: `${width}%`,
|
|
19501
|
-
roundValue: `${roundValue}
|
|
19507
|
+
roundValue: `${roundValue}%`,
|
|
19508
|
+
value: width
|
|
19502
19509
|
};
|
|
19503
19510
|
});
|
|
19504
19511
|
const circleProps = vue.computed(() => {
|
|
19505
19512
|
const { size, lineWidth, value } = props2;
|
|
19506
19513
|
const diameter = RADIUS / (1 - toPxNum(lineWidth) / toPxNum(size)) * 2;
|
|
19507
19514
|
const viewBox = `0 0 ${diameter} ${diameter}`;
|
|
19508
|
-
const roundValue =
|
|
19509
|
-
const strokeOffset = `${(
|
|
19515
|
+
const roundValue = clamp$1(Math.round(toNumber(value)), MIN, MAX);
|
|
19516
|
+
const strokeOffset = `${(MAX - roundValue) / MAX * CIRCUMFERENCE}`;
|
|
19510
19517
|
const strokeWidth = toPxNum(lineWidth) / toPxNum(size) * diameter;
|
|
19511
19518
|
const beginPositionX = 0;
|
|
19512
19519
|
const beginPositionY = -RADIUS;
|
|
@@ -19519,7 +19526,8 @@ const __sfc__$u = vue.defineComponent({
|
|
|
19519
19526
|
viewBox,
|
|
19520
19527
|
strokeOffset,
|
|
19521
19528
|
roundValue: `${roundValue}%`,
|
|
19522
|
-
path
|
|
19529
|
+
path,
|
|
19530
|
+
value: clamp$1(toNumber(value), MIN, MAX)
|
|
19523
19531
|
};
|
|
19524
19532
|
});
|
|
19525
19533
|
const progressColor = vue.computed(() => {
|
|
@@ -21633,7 +21641,7 @@ const props$e = {
|
|
|
21633
21641
|
"onUpdate:modelValue": defineListenerProp()
|
|
21634
21642
|
};
|
|
21635
21643
|
const { name: name$e, n: n$g, classes: classes$c } = createNamespace("slider");
|
|
21636
|
-
const _hoisted_1$4 = ["tabindex", "onTouchstart", "onFocusin", "onFocusout"];
|
|
21644
|
+
const _hoisted_1$4 = ["tabindex", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-disabled", "aria-valuetext", "onTouchstart", "onFocusin", "onFocusout"];
|
|
21637
21645
|
function __render__$e(_ctx, _cache) {
|
|
21638
21646
|
const _component_var_hover_overlay = vue.resolveComponent("var-hover-overlay");
|
|
21639
21647
|
const _component_var_form_details = vue.resolveComponent("var-form-details");
|
|
@@ -21649,7 +21657,7 @@ function __render__$e(_ctx, _cache) {
|
|
|
21649
21657
|
{
|
|
21650
21658
|
class: vue.normalizeClass(_ctx.classes(_ctx.n(`${_ctx.direction}-block`), [_ctx.isDisabled, _ctx.n("--disabled")], [_ctx.errorMessage, _ctx.n(`${_ctx.direction}--error`)])),
|
|
21651
21659
|
ref: "sliderEl",
|
|
21652
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.
|
|
21660
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
21653
21661
|
},
|
|
21654
21662
|
[
|
|
21655
21663
|
vue.createElementVNode(
|
|
@@ -21695,6 +21703,12 @@ function __render__$e(_ctx, _cache) {
|
|
|
21695
21703
|
key: item.enumValue,
|
|
21696
21704
|
style: vue.normalizeStyle(_ctx.thumbStyle(item)),
|
|
21697
21705
|
tabindex: _ctx.isDisabled ? void 0 : "0",
|
|
21706
|
+
role: "slider",
|
|
21707
|
+
"aria-valuemin": _ctx.min,
|
|
21708
|
+
"aria-valuemax": _ctx.max,
|
|
21709
|
+
"aria-valuenow": item.value,
|
|
21710
|
+
"aria-disabled": _ctx.isDisabled,
|
|
21711
|
+
"aria-valuetext": `${item.text}`,
|
|
21698
21712
|
onTouchstart: vue.withModifiers(($event) => _ctx.start($event, item.enumValue), ["stop"]),
|
|
21699
21713
|
onFocusin: ($event) => _ctx.handleFocus(item),
|
|
21700
21714
|
onFocusout: ($event) => _ctx.handleBlur(item)
|
|
@@ -21951,13 +21965,7 @@ const __sfc__$f = vue.defineComponent({
|
|
|
21951
21965
|
if (!isNumber(value)) {
|
|
21952
21966
|
return 0;
|
|
21953
21967
|
}
|
|
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
|
-
}
|
|
21968
|
+
const num = clamp$1(value, toNumber(props2.min), toNumber(props2.max));
|
|
21961
21969
|
const isInteger = parseInt(`${num}`, 10) === num;
|
|
21962
21970
|
return isInteger ? num : toNumber(num.toPrecision(5));
|
|
21963
21971
|
}
|
|
@@ -22056,11 +22064,13 @@ const __sfc__$f = vue.defineComponent({
|
|
|
22056
22064
|
call(onEnd, range ? rangeValue : curValue);
|
|
22057
22065
|
isScroll.value = false;
|
|
22058
22066
|
}
|
|
22059
|
-
function
|
|
22060
|
-
if (isDisabled.value || isReadonly.value)
|
|
22067
|
+
function handleClick(event) {
|
|
22068
|
+
if (isDisabled.value || isReadonly.value) {
|
|
22061
22069
|
return;
|
|
22062
|
-
|
|
22070
|
+
}
|
|
22071
|
+
if (event.target.closest(`.${n$g("thumb")}`)) {
|
|
22063
22072
|
return;
|
|
22073
|
+
}
|
|
22064
22074
|
const offset2 = getOffset(event);
|
|
22065
22075
|
const type = getType(offset2);
|
|
22066
22076
|
activeThumb = type;
|
|
@@ -22068,13 +22078,8 @@ const __sfc__$f = vue.defineComponent({
|
|
|
22068
22078
|
end2();
|
|
22069
22079
|
}
|
|
22070
22080
|
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');
|
|
22081
|
+
if (toNumber(props2.step) <= 0) {
|
|
22082
|
+
warn("[Varlet] Slider", '"step" should be > 0');
|
|
22078
22083
|
return false;
|
|
22079
22084
|
}
|
|
22080
22085
|
return true;
|
|
@@ -22121,7 +22126,7 @@ const __sfc__$f = vue.defineComponent({
|
|
|
22121
22126
|
resetValidation();
|
|
22122
22127
|
}
|
|
22123
22128
|
function moveFocusingThumb(offset2, value) {
|
|
22124
|
-
const stepValue =
|
|
22129
|
+
const stepValue = toNumber(props2.step);
|
|
22125
22130
|
if (isArray(value)) {
|
|
22126
22131
|
const updatedFirstValue = value[0] + (focusingFirst.value ? offset2 * stepValue : 0);
|
|
22127
22132
|
const updatedSecondValue = value[1] + (focusingSecond.value ? offset2 * stepValue : 0);
|
|
@@ -22161,7 +22166,6 @@ const __sfc__$f = vue.defineComponent({
|
|
|
22161
22166
|
item.handleFocusing(false);
|
|
22162
22167
|
}
|
|
22163
22168
|
return {
|
|
22164
|
-
Thumbs,
|
|
22165
22169
|
sliderEl,
|
|
22166
22170
|
getFillStyle,
|
|
22167
22171
|
isDisabled,
|
|
@@ -22181,7 +22185,7 @@ const __sfc__$f = vue.defineComponent({
|
|
|
22181
22185
|
start: start2,
|
|
22182
22186
|
move,
|
|
22183
22187
|
end: end2,
|
|
22184
|
-
|
|
22188
|
+
handleClick
|
|
22185
22189
|
};
|
|
22186
22190
|
}
|
|
22187
22191
|
});
|
|
@@ -23063,8 +23067,9 @@ const props$8 = {
|
|
|
23063
23067
|
};
|
|
23064
23068
|
const { name: name$8, n: n$9, classes: classes$8 } = createNamespace("switch");
|
|
23065
23069
|
const _withScopeId = (n2) => (vue.pushScopeId(""), n2 = n2(), vue.popScopeId(), n2);
|
|
23066
|
-
const _hoisted_1$2 = ["
|
|
23067
|
-
const _hoisted_2$2 =
|
|
23070
|
+
const _hoisted_1$2 = ["aria-checked"];
|
|
23071
|
+
const _hoisted_2$2 = ["tabindex"];
|
|
23072
|
+
const _hoisted_3$2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode(
|
|
23068
23073
|
"svg",
|
|
23069
23074
|
{ viewBox: "25 25 50 50" },
|
|
23070
23075
|
[
|
|
@@ -23078,97 +23083,93 @@ const _hoisted_2$2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.crea
|
|
|
23078
23083
|
-1
|
|
23079
23084
|
/* HOISTED */
|
|
23080
23085
|
));
|
|
23081
|
-
const
|
|
23082
|
-
|
|
23086
|
+
const _hoisted_4$2 = [
|
|
23087
|
+
_hoisted_3$2
|
|
23083
23088
|
];
|
|
23084
23089
|
function __render__$9(_ctx, _cache) {
|
|
23085
23090
|
const _component_var_hover_overlay = vue.resolveComponent("var-hover-overlay");
|
|
23086
23091
|
const _component_var_form_details = vue.resolveComponent("var-form-details");
|
|
23087
23092
|
const _directive_ripple = vue.resolveDirective("ripple");
|
|
23088
23093
|
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
|
-
|
|
23094
|
+
return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
23095
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n(), [_ctx.variant, _ctx.n("--variant")])),
|
|
23096
|
+
role: "switch",
|
|
23097
|
+
"aria-checked": _ctx.modelValue
|
|
23098
|
+
}, [
|
|
23099
|
+
vue.createElementVNode(
|
|
23100
|
+
"div",
|
|
23101
|
+
{
|
|
23102
|
+
ref: "switchRef",
|
|
23103
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n("block"), [_ctx.disabled || _ctx.formDisabled, _ctx.n("--disabled")], [_ctx.isActive, _ctx.n("block--active")])),
|
|
23104
|
+
style: vue.normalizeStyle(_ctx.styleComputed.switch),
|
|
23105
|
+
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.switchActive && _ctx.switchActive(...args))
|
|
23106
|
+
},
|
|
23107
|
+
[
|
|
23108
|
+
vue.createElementVNode(
|
|
23109
|
+
"div",
|
|
23110
|
+
{
|
|
23111
|
+
style: vue.normalizeStyle(_ctx.styleComputed.track),
|
|
23112
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n("track"), [_ctx.isActive, _ctx.n("track--active")], [_ctx.errorMessage && !_ctx.variant, _ctx.n("track--error")]))
|
|
23113
|
+
},
|
|
23114
|
+
null,
|
|
23115
|
+
6
|
|
23116
|
+
/* CLASS, STYLE */
|
|
23117
|
+
),
|
|
23118
|
+
vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
23119
|
+
class: vue.normalizeClass(_ctx.classes(_ctx.n("ripple"), [_ctx.isActive, _ctx.n("ripple--active")])),
|
|
23120
|
+
style: vue.normalizeStyle(_ctx.styleComputed.ripple),
|
|
23121
|
+
tabindex: _ctx.disabled || _ctx.formDisabled ? void 0 : "0",
|
|
23122
|
+
onFocus: _cache[0] || (_cache[0] = ($event) => _ctx.isFocusing = true),
|
|
23123
|
+
onBlur: _cache[1] || (_cache[1] = ($event) => _ctx.isFocusing = false)
|
|
23124
|
+
}, [
|
|
23104
23125
|
vue.createElementVNode(
|
|
23105
23126
|
"div",
|
|
23106
23127
|
{
|
|
23107
|
-
style: vue.normalizeStyle(_ctx.styleComputed.
|
|
23108
|
-
class: vue.normalizeClass(
|
|
23128
|
+
style: vue.normalizeStyle(_ctx.styleComputed.handle),
|
|
23129
|
+
class: vue.normalizeClass(
|
|
23130
|
+
_ctx.classes(
|
|
23131
|
+
_ctx.n("handle"),
|
|
23132
|
+
_ctx.n("$-elevation--2"),
|
|
23133
|
+
[_ctx.isActive, _ctx.n("handle--active")],
|
|
23134
|
+
[_ctx.errorMessage && !_ctx.variant, _ctx.n("handle--error")],
|
|
23135
|
+
[_ctx.hovering, _ctx.n("handle--hover")]
|
|
23136
|
+
)
|
|
23137
|
+
)
|
|
23109
23138
|
},
|
|
23110
|
-
|
|
23139
|
+
[
|
|
23140
|
+
_ctx.loading ? (vue.openBlock(), vue.createElementBlock(
|
|
23141
|
+
"span",
|
|
23142
|
+
{
|
|
23143
|
+
key: 0,
|
|
23144
|
+
class: vue.normalizeClass(_ctx.n("loading")),
|
|
23145
|
+
style: vue.normalizeStyle({
|
|
23146
|
+
width: _ctx.radius,
|
|
23147
|
+
height: _ctx.radius
|
|
23148
|
+
})
|
|
23149
|
+
},
|
|
23150
|
+
[..._hoisted_4$2],
|
|
23151
|
+
6
|
|
23152
|
+
/* CLASS, STYLE */
|
|
23153
|
+
)) : vue.createCommentVNode("v-if", true)
|
|
23154
|
+
],
|
|
23111
23155
|
6
|
|
23112
23156
|
/* CLASS, STYLE */
|
|
23113
23157
|
),
|
|
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
|
-
)), [
|
|
23158
|
+
vue.createVNode(_component_var_hover_overlay, {
|
|
23159
|
+
hovering: _ctx.hovering && !_ctx.disabled && !_ctx.formDisabled,
|
|
23160
|
+
focusing: _ctx.isFocusing && !_ctx.disabled && !_ctx.formDisabled
|
|
23161
|
+
}, null, 8, ["hovering", "focusing"])
|
|
23162
|
+
], 46, _hoisted_2$2)), [
|
|
23163
|
+
[_directive_ripple, {
|
|
23164
|
+
disabled: !_ctx.ripple || _ctx.disabled || _ctx.loading || _ctx.formDisabled || _ctx.readonly || _ctx.formReadonly
|
|
23165
|
+
}]
|
|
23166
|
+
])
|
|
23167
|
+
],
|
|
23168
|
+
6
|
|
23169
|
+
/* CLASS, STYLE */
|
|
23170
|
+
),
|
|
23171
|
+
vue.createVNode(_component_var_form_details, { "error-message": _ctx.errorMessage }, null, 8, ["error-message"])
|
|
23172
|
+
], 10, _hoisted_1$2)), [
|
|
23172
23173
|
[_directive_hover, _ctx.hover, "desktop"]
|
|
23173
23174
|
]);
|
|
23174
23175
|
}
|
|
@@ -28488,7 +28489,7 @@ withInstall(stdin_default$1);
|
|
|
28488
28489
|
withPropsDefaultsSetter(stdin_default$1, props);
|
|
28489
28490
|
const _WatermarkComponent = stdin_default$1;
|
|
28490
28491
|
var stdin_default = stdin_default$1;
|
|
28491
|
-
const version = "3.2.
|
|
28492
|
+
const version = "3.2.5";
|
|
28492
28493
|
function install(app) {
|
|
28493
28494
|
stdin_default$5E.install && app.use(stdin_default$5E);
|
|
28494
28495
|
stdin_default$5C.install && app.use(stdin_default$5C);
|