@varlet/ui 3.20.7 → 3.20.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/auto-complete/AutoComplete.mjs +2 -1
- package/es/auto-complete/props.mjs +4 -0
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/menu/Menu.mjs +1 -0
- package/es/menu/menu.css +1 -1
- package/es/menu/props.mjs +4 -0
- package/es/menu-select/MenuChildren.mjs +10 -9
- package/es/menu-select/MenuSelect.mjs +13 -3
- package/es/menu-select/menuSelect.css +1 -1
- package/es/menu-select/props.mjs +1 -0
- package/es/select/Select.mjs +8 -2
- package/es/select/props.mjs +4 -0
- package/es/select/select.css +1 -1
- package/es/snackbar/core.mjs +59 -15
- package/es/snackbar/index.mjs +1 -0
- package/es/snackbar/props.mjs +1 -0
- package/es/snackbar/snackbar.css +1 -1
- package/es/snackbar/style/index.mjs +1 -1
- package/es/themes/dark/menu.mjs +2 -1
- package/es/themes/dark/menuSelect.mjs +2 -1
- package/es/themes/dark/select.mjs +1 -0
- package/es/themes/md3-dark/menu.mjs +2 -1
- package/es/themes/md3-dark/menuSelect.mjs +1 -0
- package/es/themes/md3-dark/select.mjs +1 -0
- package/es/themes/md3-light/menu.mjs +2 -1
- package/es/themes/md3-light/menuSelect.mjs +1 -0
- package/es/themes/md3-light/select.mjs +1 -0
- package/es/varlet.css +1 -1
- package/es/varlet.esm.js +4872 -4791
- package/highlight/web-types.en-US.json +46 -1
- package/highlight/web-types.zh-CN.json +51 -6
- package/lib/varlet.cjs.js +224 -145
- package/lib/varlet.css +1 -1
- package/package.json +10 -10
- package/types/autoComplete.d.ts +3 -0
- package/types/menu.d.ts +3 -0
- package/types/menuSelect.d.ts +3 -0
- package/types/select.d.ts +5 -2
- package/types/snackbar.d.ts +2 -0
- package/types/styleVars.d.ts +5 -0
- package/umd/varlet.js +7 -7
package/lib/varlet.cjs.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
let vue = require("vue");
|
|
6
|
-
//#region ../../node_modules/.pnpm/rattail@2.1.1_oxfmt@0.
|
|
6
|
+
//#region ../../node_modules/.pnpm/rattail@2.1.1_oxfmt@0.72.0_vite-plus@1.1.0_@types+node@22.19.17_@vitest+coverage-istanbul@5.0_av5tye26zac23ejqbw3p6coe4y/node_modules/rattail/dist/callOrReturn-Kvk3rYZJ.mjs
|
|
7
7
|
function isArray(val) {
|
|
8
8
|
return Array.isArray(val);
|
|
9
9
|
}
|
|
@@ -86,7 +86,7 @@ function init(converter, defaultAttributes) {
|
|
|
86
86
|
}
|
|
87
87
|
init(defaultConverter, { path: "/" });
|
|
88
88
|
//#endregion
|
|
89
|
-
//#region ../../node_modules/.pnpm/rattail@2.1.1_oxfmt@0.
|
|
89
|
+
//#region ../../node_modules/.pnpm/rattail@2.1.1_oxfmt@0.72.0_vite-plus@1.1.0_@types+node@22.19.17_@vitest+coverage-istanbul@5.0_av5tye26zac23ejqbw3p6coe4y/node_modules/rattail/dist/index.mjs
|
|
90
90
|
function clamp$1(num, min, max) {
|
|
91
91
|
return Math.min(max, Math.max(min, num));
|
|
92
92
|
}
|
|
@@ -3159,7 +3159,7 @@ var props$35 = {
|
|
|
3159
3159
|
//#endregion
|
|
3160
3160
|
//#region es/form-details/FormDetails.mjs
|
|
3161
3161
|
var { name: name$92, n: n$103 } = createNamespace("form-details");
|
|
3162
|
-
var _hoisted_1$
|
|
3162
|
+
var _hoisted_1$45 = { key: 0 };
|
|
3163
3163
|
var _hoisted_2$11 = { key: 0 };
|
|
3164
3164
|
function __render__$101(_ctx, _cache) {
|
|
3165
3165
|
return (0, vue.openBlock)(), (0, vue.createBlock)(vue.Transition, { name: _ctx.n() }, {
|
|
@@ -3167,7 +3167,7 @@ function __render__$101(_ctx, _cache) {
|
|
|
3167
3167
|
key: 0,
|
|
3168
3168
|
class: (0, vue.normalizeClass)(_ctx.n())
|
|
3169
3169
|
}, [(0, vue.createElementVNode)("div", { class: (0, vue.normalizeClass)(_ctx.n("error-message")) }, [(0, vue.createVNode)(vue.Transition, { name: _ctx.n("message") }, {
|
|
3170
|
-
default: (0, vue.withCtx)(() => [_ctx.errorMessage ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_1$
|
|
3170
|
+
default: (0, vue.withCtx)(() => [_ctx.errorMessage ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_1$45, (0, vue.toDisplayString)(_ctx.errorMessage), 1)) : (0, vue.createCommentVNode)("v-if", true)]),
|
|
3171
3171
|
_: 1
|
|
3172
3172
|
}, 8, ["name"])], 2), (0, vue.createElementVNode)("div", { class: (0, vue.normalizeClass)(_ctx.n("extra-message")) }, [(0, vue.createVNode)(vue.Transition, { name: _ctx.n("message") }, {
|
|
3173
3173
|
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "extra-message", {}, () => [_ctx.extraMessage ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", _hoisted_2$11, (0, vue.toDisplayString)(_ctx.extraMessage), 1)) : (0, vue.createCommentVNode)("v-if", true)])]),
|
|
@@ -3328,7 +3328,7 @@ var __async$24 = (__this, __arguments, generator) => {
|
|
|
3328
3328
|
});
|
|
3329
3329
|
};
|
|
3330
3330
|
var { name: name$91, n: n$102, classes: classes$80 } = createNamespace("field-decorator");
|
|
3331
|
-
var _hoisted_1$
|
|
3331
|
+
var _hoisted_1$44 = ["for"];
|
|
3332
3332
|
function __render__$100(_ctx, _cache) {
|
|
3333
3333
|
const _component_var_icon = (0, vue.resolveComponent)("var-icon");
|
|
3334
3334
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
|
|
@@ -3355,7 +3355,7 @@ function __render__$100(_ctx, _cache) {
|
|
|
3355
3355
|
class: (0, vue.normalizeClass)(_ctx.classes(_ctx.n("placeholder"), _ctx.n("$--ellipsis"), [_ctx.isFocusing, _ctx.n("--focus")], [_ctx.hintCenter, _ctx.n("--hint-center")], [_ctx.formDisabled || _ctx.disabled, _ctx.n("--disabled")], [_ctx.isError, _ctx.n("--error")], [_ctx.transitionDisabled, _ctx.n("--transition-disabled")], _ctx.computePlaceholderState())),
|
|
3356
3356
|
style: (0, vue.normalizeStyle)({ color: _ctx.color }),
|
|
3357
3357
|
for: _ctx.id
|
|
3358
|
-
}, [(0, vue.createElementVNode)("span", null, (0, vue.toDisplayString)(_ctx.placeholder), 1)], 14, _hoisted_1$
|
|
3358
|
+
}, [(0, vue.createElementVNode)("span", null, (0, vue.toDisplayString)(_ctx.placeholder), 1)], 14, _hoisted_1$44)) : (0, vue.createCommentVNode)("v-if", true),
|
|
3359
3359
|
(0, vue.createElementVNode)("div", { class: (0, vue.normalizeClass)(_ctx.classes(_ctx.n("icon"), [!_ctx.hint, _ctx.n("--icon-non-hint")])) }, [_ctx.clearable && !_ctx.isEmpty(_ctx.value) && !_ctx.readonly && !_ctx.formReadonly ? (0, vue.renderSlot)(_ctx.$slots, "clear-icon", {
|
|
3360
3360
|
key: 0,
|
|
3361
3361
|
clear: _ctx.handleClear
|
|
@@ -3579,7 +3579,7 @@ var props$43 = __spreadProps$19(__spreadValues$37({
|
|
|
3579
3579
|
//#endregion
|
|
3580
3580
|
//#region es/input/Input.mjs
|
|
3581
3581
|
var { name: name$90, n: n$101, classes: classes$79 } = createNamespace("input");
|
|
3582
|
-
var _hoisted_1$
|
|
3582
|
+
var _hoisted_1$43 = [
|
|
3583
3583
|
"aria-label",
|
|
3584
3584
|
"placeholder",
|
|
3585
3585
|
"enterkeyhint"
|
|
@@ -3654,7 +3654,7 @@ function __render__$99(_ctx, _cache) {
|
|
|
3654
3654
|
placeholder: !_ctx.hint ? _ctx.placeholder : void 0,
|
|
3655
3655
|
style: (0, vue.normalizeStyle)({ "--input-placeholder-color": _ctx.placeholderColor }),
|
|
3656
3656
|
enterkeyhint: _ctx.enterkeyhint
|
|
3657
|
-
}, null, 14, _hoisted_1$
|
|
3657
|
+
}, null, 14, _hoisted_1$43)) : (0, vue.createCommentVNode)("v-if", true), _ctx.textarea ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("textarea", {
|
|
3658
3658
|
key: 1,
|
|
3659
3659
|
id: _ctx.id,
|
|
3660
3660
|
ref: "el",
|
|
@@ -4003,7 +4003,7 @@ var __async$23 = (__this, __arguments, generator) => {
|
|
|
4003
4003
|
});
|
|
4004
4004
|
};
|
|
4005
4005
|
var { name: name$89, n: n$100, classes: classes$78 } = createNamespace("checkbox");
|
|
4006
|
-
var _hoisted_1$
|
|
4006
|
+
var _hoisted_1$42 = [
|
|
4007
4007
|
"aria-checked",
|
|
4008
4008
|
"aria-disabled",
|
|
4009
4009
|
"tabindex"
|
|
@@ -4059,7 +4059,7 @@ function __render__$98(_ctx, _cache) {
|
|
|
4059
4059
|
key: 0,
|
|
4060
4060
|
class: (0, vue.normalizeClass)(_ctx.classes(_ctx.n("text"), [_ctx.errorMessage || _ctx.checkboxGroupErrorMessage, _ctx.n("--error")], [_ctx.formDisabled || _ctx.disabled, _ctx.n("--disabled")])),
|
|
4061
4061
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleTextClick && _ctx.handleTextClick(...args))
|
|
4062
|
-
}, [(0, vue.renderSlot)(_ctx.$slots, "default", { checked: _ctx.checked })], 2)) : (0, vue.createCommentVNode)("v-if", true)], 42, _hoisted_1$
|
|
4062
|
+
}, [(0, vue.renderSlot)(_ctx.$slots, "default", { checked: _ctx.checked })], 2)) : (0, vue.createCommentVNode)("v-if", true)], 42, _hoisted_1$42), (0, vue.createVNode)(_component_var_form_details, { "error-message": _ctx.errorMessage }, null, 8, ["error-message"])], 2);
|
|
4063
4063
|
}
|
|
4064
4064
|
var __sfc__$98 = (0, vue.defineComponent)({
|
|
4065
4065
|
name: name$89,
|
|
@@ -4253,7 +4253,7 @@ var __async$22 = (__this, __arguments, generator) => {
|
|
|
4253
4253
|
});
|
|
4254
4254
|
};
|
|
4255
4255
|
var { name: name$88, n: n$99, classes: classes$77 } = createNamespace("menu-option");
|
|
4256
|
-
var _hoisted_1$
|
|
4256
|
+
var _hoisted_1$41 = ["tabindex"];
|
|
4257
4257
|
function __render__$97(_ctx, _cache) {
|
|
4258
4258
|
const _component_var_checkbox = (0, vue.resolveComponent)("var-checkbox");
|
|
4259
4259
|
const _component_maybe_v_node = (0, vue.resolveComponent)("maybe-v-node");
|
|
@@ -4302,7 +4302,7 @@ function __render__$97(_ctx, _cache) {
|
|
|
4302
4302
|
hovering: (_ctx.hovering || _ctx.highlight) && !_ctx.disabled,
|
|
4303
4303
|
focusing: _ctx.isFocusing && !_ctx.disabled
|
|
4304
4304
|
}, null, 8, ["hovering", "focusing"])
|
|
4305
|
-
], 42, _hoisted_1$
|
|
4305
|
+
], 42, _hoisted_1$41)), [[_directive_ripple, { disabled: _ctx.disabled || !_ctx.ripple }], [
|
|
4306
4306
|
_directive_hover,
|
|
4307
4307
|
_ctx.handleHovering,
|
|
4308
4308
|
"desktop"
|
|
@@ -4426,6 +4426,10 @@ var stdin_default$57 = stdin_default$440;
|
|
|
4426
4426
|
//#endregion
|
|
4427
4427
|
//#region es/menu/props.mjs
|
|
4428
4428
|
var props$49 = {
|
|
4429
|
+
radius: {
|
|
4430
|
+
type: String,
|
|
4431
|
+
default: "normal"
|
|
4432
|
+
},
|
|
4429
4433
|
show: Boolean,
|
|
4430
4434
|
disabled: Boolean,
|
|
4431
4435
|
trigger: {
|
|
@@ -4994,10 +4998,7 @@ function computeOffsets(_ref) {
|
|
|
4994
4998
|
case start$1:
|
|
4995
4999
|
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
|
4996
5000
|
break;
|
|
4997
|
-
case "end":
|
|
4998
|
-
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
|
4999
|
-
break;
|
|
5000
|
-
default:
|
|
5001
|
+
case "end": offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
|
5001
5002
|
}
|
|
5002
5003
|
}
|
|
5003
5004
|
return offsets;
|
|
@@ -5925,7 +5926,7 @@ function __render__$96(_ctx, _cache) {
|
|
|
5925
5926
|
zIndex: _ctx.zIndex,
|
|
5926
5927
|
width: _ctx.sameWidth ? _ctx.toSizeUnit(Math.ceil(_ctx.referenceSize.width)) : void 0
|
|
5927
5928
|
}),
|
|
5928
|
-
class: (0, vue.normalizeClass)(_ctx.classes(_ctx.n("menu"), _ctx.n("$--box"), _ctx.n("$--scrollbar"), _ctx.popoverClass, [_ctx.defaultStyle, _ctx.n("--menu-background-color")], [_ctx.defaultStyle, _ctx.formatElevation(_ctx.elevation, 3)])),
|
|
5929
|
+
class: (0, vue.normalizeClass)(_ctx.classes(_ctx.n("menu"), _ctx.n("$--box"), _ctx.n("$--scrollbar"), [_ctx.radius !== "normal", _ctx.n(`--radius-${_ctx.radius}`)], _ctx.popoverClass, [_ctx.defaultStyle, _ctx.n("--menu-background-color")], [_ctx.defaultStyle, _ctx.formatElevation(_ctx.elevation, 3)])),
|
|
5929
5930
|
onClick: _cache[0] || (_cache[0] = (0, vue.withModifiers)(() => {}, ["stop"])),
|
|
5930
5931
|
onMouseenter: _cache[1] || (_cache[1] = (...args) => _ctx.handlePopoverMouseenter && _ctx.handlePopoverMouseenter(...args)),
|
|
5931
5932
|
onMouseleave: _cache[2] || (_cache[2] = (...args) => _ctx.handlePopoverMouseleave && _ctx.handlePopoverMouseleave(...args))
|
|
@@ -6095,6 +6096,7 @@ var props$50 = __spreadProps$17(__spreadValues$35({
|
|
|
6095
6096
|
"offsetY",
|
|
6096
6097
|
"teleport",
|
|
6097
6098
|
"sameWidth",
|
|
6099
|
+
"radius",
|
|
6098
6100
|
"elevation",
|
|
6099
6101
|
"popoverClass",
|
|
6100
6102
|
"closeOnClickReference",
|
|
@@ -6145,7 +6147,6 @@ var __async$20 = (__this, __arguments, generator) => {
|
|
|
6145
6147
|
});
|
|
6146
6148
|
};
|
|
6147
6149
|
var { name: name$86, n: n$97 } = createNamespace("menu-children");
|
|
6148
|
-
var _hoisted_1$41 = { ref: "menuOptions" };
|
|
6149
6150
|
function __render__$95(_ctx, _cache) {
|
|
6150
6151
|
const _component_var_menu_option = (0, vue.resolveComponent)("var-menu-option");
|
|
6151
6152
|
const _component_var_menu_children = (0, vue.resolveComponent)("var-menu-children");
|
|
@@ -6158,8 +6159,9 @@ function __render__$95(_ctx, _cache) {
|
|
|
6158
6159
|
placement: "right-start",
|
|
6159
6160
|
"cascade-optimization": "",
|
|
6160
6161
|
"var-menu-children-cover": "",
|
|
6161
|
-
class: (0, vue.normalizeClass)(_ctx.n()),
|
|
6162
|
+
class: (0, vue.normalizeClass)([_ctx.n(), _ctx.radius !== "normal" ? _ctx.n(`--menu-radius-${_ctx.radius}`) : void 0]),
|
|
6162
6163
|
disabled: _ctx.disabled,
|
|
6164
|
+
radius: _ctx.radius,
|
|
6163
6165
|
teleport: false,
|
|
6164
6166
|
"close-on-click-reference": false
|
|
6165
6167
|
}, (0, vue.createSlots)({
|
|
@@ -6187,7 +6189,7 @@ function __render__$95(_ctx, _cache) {
|
|
|
6187
6189
|
_: 2
|
|
6188
6190
|
}, [_ctx.options.length ? {
|
|
6189
6191
|
name: "menu",
|
|
6190
|
-
fn: (0, vue.withCtx)(() => [(0, vue.createElementVNode)("div",
|
|
6192
|
+
fn: (0, vue.withCtx)(() => [(0, vue.createElementVNode)("div", (0, vue.mergeProps)({ ref: "menuOptions" }, _ctx.radius !== "normal" ? { class: _ctx.n(`--radius-${_ctx.radius}`) } : {}), [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(_ctx.options, (menuOption) => {
|
|
6191
6193
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, { key: menuOption[_ctx.valueKey] }, [menuOption[_ctx.childrenKey] ? ((0, vue.openBlock)(), (0, vue.createBlock)(_component_var_menu_children, {
|
|
6192
6194
|
key: 0,
|
|
6193
6195
|
ref_for: true,
|
|
@@ -6197,6 +6199,7 @@ function __render__$95(_ctx, _cache) {
|
|
|
6197
6199
|
options: menuOption[_ctx.childrenKey],
|
|
6198
6200
|
"highlight-options": _ctx.highlightOptions,
|
|
6199
6201
|
disabled: menuOption.disabled,
|
|
6202
|
+
radius: _ctx.radius,
|
|
6200
6203
|
onKeyArrowX: _ctx.handleArrowLeft,
|
|
6201
6204
|
onKeyArrowRightOpen: ($event) => _ctx.allowChildrenClose(menuOption),
|
|
6202
6205
|
onMouseenter: ($event) => _ctx.allowChildrenClose(menuOption)
|
|
@@ -6206,6 +6209,7 @@ function __render__$95(_ctx, _cache) {
|
|
|
6206
6209
|
"options",
|
|
6207
6210
|
"highlight-options",
|
|
6208
6211
|
"disabled",
|
|
6212
|
+
"radius",
|
|
6209
6213
|
"onKeyArrowX",
|
|
6210
6214
|
"onKeyArrowRightOpen",
|
|
6211
6215
|
"onMouseenter"
|
|
@@ -6226,12 +6230,13 @@ function __render__$95(_ctx, _cache) {
|
|
|
6226
6230
|
"disabled",
|
|
6227
6231
|
"onKeyArrowX"
|
|
6228
6232
|
]))], 64);
|
|
6229
|
-
}), 128))],
|
|
6233
|
+
}), 128))], 16)]),
|
|
6230
6234
|
key: "0"
|
|
6231
6235
|
} : void 0]), 1032, [
|
|
6232
6236
|
"show",
|
|
6233
6237
|
"class",
|
|
6234
|
-
"disabled"
|
|
6238
|
+
"disabled",
|
|
6239
|
+
"radius"
|
|
6235
6240
|
]);
|
|
6236
6241
|
}
|
|
6237
6242
|
var __sfc__$95 = (0, vue.defineComponent)({
|
|
@@ -6255,7 +6260,8 @@ var __sfc__$95 = (0, vue.defineComponent)({
|
|
|
6255
6260
|
"options",
|
|
6256
6261
|
"valueKey",
|
|
6257
6262
|
"labelKey",
|
|
6258
|
-
"childrenKey"
|
|
6263
|
+
"childrenKey",
|
|
6264
|
+
"radius"
|
|
6259
6265
|
])),
|
|
6260
6266
|
setup(props) {
|
|
6261
6267
|
const show = (0, vue.ref)(false);
|
|
@@ -6367,6 +6373,7 @@ function __render__$94(_ctx, _cache) {
|
|
|
6367
6373
|
"offset-y": _ctx.offsetY,
|
|
6368
6374
|
teleport: _ctx.teleport,
|
|
6369
6375
|
"same-width": _ctx.sameWidth,
|
|
6376
|
+
radius: _ctx.radius,
|
|
6370
6377
|
elevation: _ctx.elevation,
|
|
6371
6378
|
"default-style": false,
|
|
6372
6379
|
"popover-class": _ctx.popoverClass,
|
|
@@ -6380,7 +6387,7 @@ function __render__$94(_ctx, _cache) {
|
|
|
6380
6387
|
}, {
|
|
6381
6388
|
menu: (0, vue.withCtx)(() => [(0, vue.createElementVNode)("div", {
|
|
6382
6389
|
ref: "menuOptionsRef",
|
|
6383
|
-
class: (0, vue.normalizeClass)(_ctx.classes(_ctx.n("menu"), _ctx.n("$--scrollbar"), _ctx.formatElevation(_ctx.elevation, 3), [_ctx.scrollable, _ctx.n("--scrollable")]))
|
|
6390
|
+
class: (0, vue.normalizeClass)(_ctx.classes(_ctx.n("menu"), _ctx.n("$--scrollbar"), _ctx.formatElevation(_ctx.elevation, 3), [_ctx.scrollable, _ctx.n("--scrollable")], [_ctx.radius !== "normal", _ctx.n(`--radius-${_ctx.radius}`)]))
|
|
6384
6391
|
}, [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(_ctx.options, (option) => {
|
|
6385
6392
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, { key: option[_ctx.valueKey] }, [option[_ctx.childrenKey] ? ((0, vue.openBlock)(), (0, vue.createBlock)(_component_var_menu_children, {
|
|
6386
6393
|
key: 0,
|
|
@@ -6391,6 +6398,7 @@ function __render__$94(_ctx, _cache) {
|
|
|
6391
6398
|
options: option[_ctx.childrenKey],
|
|
6392
6399
|
"highlight-options": _ctx.highlightOptions,
|
|
6393
6400
|
disabled: option.disabled,
|
|
6401
|
+
radius: _ctx.radius,
|
|
6394
6402
|
onKeyArrowRightOpen: ($event) => _ctx.allowChildrenClose(option),
|
|
6395
6403
|
onMouseenter: ($event) => _ctx.allowChildrenClose(option)
|
|
6396
6404
|
}, null, 8, [
|
|
@@ -6399,6 +6407,7 @@ function __render__$94(_ctx, _cache) {
|
|
|
6399
6407
|
"options",
|
|
6400
6408
|
"highlight-options",
|
|
6401
6409
|
"disabled",
|
|
6410
|
+
"radius",
|
|
6402
6411
|
"onKeyArrowRightOpen",
|
|
6403
6412
|
"onMouseenter"
|
|
6404
6413
|
])) : ((0, vue.openBlock)(), (0, vue.createBlock)(_component_var_menu_option, {
|
|
@@ -6431,6 +6440,7 @@ function __render__$94(_ctx, _cache) {
|
|
|
6431
6440
|
"offset-y",
|
|
6432
6441
|
"teleport",
|
|
6433
6442
|
"same-width",
|
|
6443
|
+
"radius",
|
|
6434
6444
|
"elevation",
|
|
6435
6445
|
"popover-class",
|
|
6436
6446
|
"close-on-click-reference",
|
|
@@ -6698,6 +6708,10 @@ var props$95 = __spreadValues$32({
|
|
|
6698
6708
|
type: String,
|
|
6699
6709
|
default: "value"
|
|
6700
6710
|
},
|
|
6711
|
+
menuRadius: {
|
|
6712
|
+
type: String,
|
|
6713
|
+
default: "normal"
|
|
6714
|
+
},
|
|
6701
6715
|
maxlength: [String, Number],
|
|
6702
6716
|
readonly: Boolean,
|
|
6703
6717
|
disabled: Boolean,
|
|
@@ -6778,6 +6792,7 @@ function __render__$93(_ctx, _cache) {
|
|
|
6778
6792
|
scrollable: "",
|
|
6779
6793
|
trigger: "manual",
|
|
6780
6794
|
placement: "bottom",
|
|
6795
|
+
radius: _ctx.menuRadius,
|
|
6781
6796
|
disabled: _ctx.disabled || _ctx.formDisabled || _ctx.readonly || _ctx.formReadonly,
|
|
6782
6797
|
class: (0, vue.normalizeClass)(_ctx.n("menu-select")),
|
|
6783
6798
|
"popover-class": _ctx.variant === "standard" ? _ctx.n("--standard-menu-margin") : _ctx.variant === "filled" ? _ctx.n("--filled-menu-margin") : "",
|
|
@@ -6858,6 +6873,7 @@ function __render__$93(_ctx, _cache) {
|
|
|
6858
6873
|
_: 3
|
|
6859
6874
|
}, 8, [
|
|
6860
6875
|
"show",
|
|
6876
|
+
"radius",
|
|
6861
6877
|
"disabled",
|
|
6862
6878
|
"class",
|
|
6863
6879
|
"popover-class",
|
|
@@ -7364,7 +7380,6 @@ var Dayjs = /*#__PURE__*/ function() {
|
|
|
7364
7380
|
case "ss": return Utils.s(_this3.$s, 2, "0");
|
|
7365
7381
|
case "SSS": return Utils.s(_this3.$ms, 3, "0");
|
|
7366
7382
|
case "Z": return zoneStr;
|
|
7367
|
-
default: break;
|
|
7368
7383
|
}
|
|
7369
7384
|
return null;
|
|
7370
7385
|
};
|
|
@@ -7410,9 +7425,7 @@ var Dayjs = /*#__PURE__*/ function() {
|
|
|
7410
7425
|
case S:
|
|
7411
7426
|
result = diff / MILLISECONDS_A_SECOND;
|
|
7412
7427
|
break;
|
|
7413
|
-
default:
|
|
7414
|
-
result = diff;
|
|
7415
|
-
break;
|
|
7428
|
+
default: result = diff;
|
|
7416
7429
|
}
|
|
7417
7430
|
return _float ? result : Utils.a(result);
|
|
7418
7431
|
};
|
|
@@ -10779,13 +10792,13 @@ P.cubeRoot = P.cbrt = function() {
|
|
|
10779
10792
|
if (!x.isFinite() || x.isZero()) return new Ctor(x);
|
|
10780
10793
|
external = false;
|
|
10781
10794
|
s = x.s * mathpow(x.s * x, 1 / 3);
|
|
10782
|
-
if (!s || Math.abs(s) ==
|
|
10795
|
+
if (!s || Math.abs(s) == 1 / 0) {
|
|
10783
10796
|
n = digitsToString(x.d);
|
|
10784
10797
|
e = x.e;
|
|
10785
10798
|
if (s = (e - n.length + 1) % 3) n += s == 1 || s == -2 ? "0" : "00";
|
|
10786
10799
|
s = mathpow(n, 1 / 3);
|
|
10787
10800
|
e = mathfloor((e + 1) / 3) - (e % 3 == (e < 0 ? -1 : 2));
|
|
10788
|
-
if (s ==
|
|
10801
|
+
if (s == 1 / 0) n = "5e" + e;
|
|
10789
10802
|
else {
|
|
10790
10803
|
n = s.toExponential();
|
|
10791
10804
|
n = n.slice(0, n.indexOf("e") + 1) + e;
|
|
@@ -10856,7 +10869,7 @@ P.greaterThanOrEqualTo = P.gte = function(y) {
|
|
|
10856
10869
|
};
|
|
10857
10870
|
P.hyperbolicCosine = P.cosh = function() {
|
|
10858
10871
|
var k, n, pr, rm, len, x = this, Ctor = x.constructor, one = new Ctor(1);
|
|
10859
|
-
if (!x.isFinite()) return new Ctor(x.s ?
|
|
10872
|
+
if (!x.isFinite()) return new Ctor(x.s ? 1 / 0 : NaN);
|
|
10860
10873
|
if (x.isZero()) return one;
|
|
10861
10874
|
pr = Ctor.precision;
|
|
10862
10875
|
rm = Ctor.rounding;
|
|
@@ -11062,11 +11075,13 @@ P.logarithm = P.log = function(base) {
|
|
|
11062
11075
|
isBase10 = base.eq(10);
|
|
11063
11076
|
}
|
|
11064
11077
|
d = arg.d;
|
|
11065
|
-
if (arg.s < 0 || !d || !d[0] || arg.eq(1)) return new Ctor(d && !d[0] ? -
|
|
11066
|
-
if (isBase10)
|
|
11067
|
-
|
|
11068
|
-
|
|
11069
|
-
|
|
11078
|
+
if (arg.s < 0 || !d || !d[0] || arg.eq(1)) return new Ctor(d && !d[0] ? -1 / 0 : arg.s != 1 ? NaN : d ? 0 : 1 / 0);
|
|
11079
|
+
if (isBase10) {
|
|
11080
|
+
if (d.length > 1) inf = true;
|
|
11081
|
+
else {
|
|
11082
|
+
for (k = d[0]; k % 10 === 0;) k /= 10;
|
|
11083
|
+
inf = k !== 1;
|
|
11084
|
+
}
|
|
11070
11085
|
}
|
|
11071
11086
|
external = false;
|
|
11072
11087
|
sd = pr + guard;
|
|
@@ -11284,15 +11299,15 @@ P.sine = P.sin = function() {
|
|
|
11284
11299
|
};
|
|
11285
11300
|
P.squareRoot = P.sqrt = function() {
|
|
11286
11301
|
var m, n, sd, r, rep, t, x = this, d = x.d, e = x.e, s = x.s, Ctor = x.constructor;
|
|
11287
|
-
if (s !== 1 || !d || !d[0]) return new Ctor(!s || s < 0 && (!d || d[0]) ? NaN : d ? x :
|
|
11302
|
+
if (s !== 1 || !d || !d[0]) return new Ctor(!s || s < 0 && (!d || d[0]) ? NaN : d ? x : 1 / 0);
|
|
11288
11303
|
external = false;
|
|
11289
11304
|
s = Math.sqrt(+x);
|
|
11290
|
-
if (s == 0 || s ==
|
|
11305
|
+
if (s == 0 || s == 1 / 0) {
|
|
11291
11306
|
n = digitsToString(d);
|
|
11292
11307
|
if ((n.length + e) % 2 == 0) n += "0";
|
|
11293
11308
|
s = Math.sqrt(n);
|
|
11294
11309
|
e = mathfloor((e + 1) / 2) - (e < 0 || e % 2);
|
|
11295
|
-
if (s ==
|
|
11310
|
+
if (s == 1 / 0) n = "5e" + e;
|
|
11296
11311
|
else {
|
|
11297
11312
|
n = s.toExponential();
|
|
11298
11313
|
n = n.slice(0, n.indexOf("e") + 1) + e;
|
|
@@ -11589,8 +11604,8 @@ function checkInt32(i, min, max) {
|
|
|
11589
11604
|
if (i !== ~~i || i < min || i > max) throw Error(invalidArgument + i);
|
|
11590
11605
|
}
|
|
11591
11606
|
function checkRoundingDigits(d, i, rm, repeating) {
|
|
11592
|
-
var di, k, r, rd;
|
|
11593
|
-
for (
|
|
11607
|
+
var di, k = d[0], r, rd;
|
|
11608
|
+
for (; k >= 10; k /= 10) --i;
|
|
11594
11609
|
if (--i < 0) {
|
|
11595
11610
|
i += LOG_BASE;
|
|
11596
11611
|
di = 0;
|
|
@@ -11600,12 +11615,13 @@ function checkRoundingDigits(d, i, rm, repeating) {
|
|
|
11600
11615
|
}
|
|
11601
11616
|
k = mathpow(10, LOG_BASE - i);
|
|
11602
11617
|
rd = d[di] % k | 0;
|
|
11603
|
-
if (repeating == null)
|
|
11604
|
-
if (i
|
|
11605
|
-
|
|
11606
|
-
|
|
11607
|
-
|
|
11608
|
-
|
|
11618
|
+
if (repeating == null) {
|
|
11619
|
+
if (i < 3) {
|
|
11620
|
+
if (i == 0) rd = rd / 100 | 0;
|
|
11621
|
+
else if (i == 1) rd = rd / 10 | 0;
|
|
11622
|
+
r = rm < 4 && rd == 99999 || rm > 3 && rd == 49999 || rd == 5e4 || rd == 0;
|
|
11623
|
+
} else r = (rm < 4 && rd + 1 == k || rm > 3 && rd + 1 == k / 2) && (d[di + 1] / k / 100 | 0) == mathpow(10, i - 2) - 1 || (rd == k / 2 || rd == 0) && (d[di + 1] / k / 100 | 0) == 0;
|
|
11624
|
+
} else if (i < 4) {
|
|
11609
11625
|
if (i == 0) rd = rd / 1e3 | 0;
|
|
11610
11626
|
else if (i == 1) rd = rd / 100 | 0;
|
|
11611
11627
|
else if (i == 2) rd = rd / 10 | 0;
|
|
@@ -11803,14 +11819,15 @@ function finalise(x, sd, rm, isTruncated) {
|
|
|
11803
11819
|
} else {
|
|
11804
11820
|
xdi = Math.ceil((i + 1) / LOG_BASE);
|
|
11805
11821
|
k = xd.length;
|
|
11806
|
-
if (xdi >= k)
|
|
11807
|
-
|
|
11808
|
-
|
|
11809
|
-
|
|
11810
|
-
|
|
11811
|
-
|
|
11812
|
-
|
|
11813
|
-
|
|
11822
|
+
if (xdi >= k) {
|
|
11823
|
+
if (isTruncated) {
|
|
11824
|
+
for (; k++ <= xdi;) xd.push(0);
|
|
11825
|
+
w = rd = 0;
|
|
11826
|
+
digits = 1;
|
|
11827
|
+
i %= LOG_BASE;
|
|
11828
|
+
j = i - LOG_BASE + 1;
|
|
11829
|
+
} else break out;
|
|
11830
|
+
} else {
|
|
11814
11831
|
w = k = xd[xdi];
|
|
11815
11832
|
for (digits = 1; k >= 10; k /= 10) digits++;
|
|
11816
11833
|
i %= LOG_BASE;
|
|
@@ -11957,7 +11974,7 @@ function maxOrMin(Ctor, args, n) {
|
|
|
11957
11974
|
}
|
|
11958
11975
|
function naturalExponential(x, sd) {
|
|
11959
11976
|
var denominator, guard, j, pow, sum, t, wpr, rep = 0, i = 0, k = 0, Ctor = x.constructor, rm = Ctor.rounding, pr = Ctor.precision;
|
|
11960
|
-
if (!x.d || !x.d[0] || x.e > 17) return new Ctor(x.d ? !x.d[0] ? 1 : x.s < 0 ? 0 :
|
|
11977
|
+
if (!x.d || !x.d[0] || x.e > 17) return new Ctor(x.d ? !x.d[0] ? 1 : x.s < 0 ? 0 : 1 / 0 : x.s ? x.s < 0 ? 0 : x : NaN);
|
|
11961
11978
|
if (sd == null) {
|
|
11962
11979
|
external = false;
|
|
11963
11980
|
wpr = pr;
|
|
@@ -11978,13 +11995,14 @@ function naturalExponential(x, sd) {
|
|
|
11978
11995
|
if (digitsToString(t.d).slice(0, wpr) === digitsToString(sum.d).slice(0, wpr)) {
|
|
11979
11996
|
j = k;
|
|
11980
11997
|
while (j--) sum = finalise(sum.times(sum), wpr, 1);
|
|
11981
|
-
if (sd == null)
|
|
11982
|
-
|
|
11983
|
-
|
|
11984
|
-
|
|
11985
|
-
|
|
11986
|
-
|
|
11987
|
-
|
|
11998
|
+
if (sd == null) {
|
|
11999
|
+
if (rep < 3 && checkRoundingDigits(sum.d, wpr - guard, rm, rep)) {
|
|
12000
|
+
Ctor.precision = wpr += 10;
|
|
12001
|
+
denominator = pow = t = new Ctor(1);
|
|
12002
|
+
i = 0;
|
|
12003
|
+
rep++;
|
|
12004
|
+
} else return finalise(sum, Ctor.precision = pr, rm, external = true);
|
|
12005
|
+
} else {
|
|
11988
12006
|
Ctor.precision = pr;
|
|
11989
12007
|
return sum;
|
|
11990
12008
|
}
|
|
@@ -11994,7 +12012,7 @@ function naturalExponential(x, sd) {
|
|
|
11994
12012
|
}
|
|
11995
12013
|
function naturalLogarithm(y, sd) {
|
|
11996
12014
|
var c, c0, denominator, e, numerator, rep, sum, t, wpr, x1, x2, n = 1, guard = 10, x = y, xd = x.d, Ctor = x.constructor, rm = Ctor.rounding, pr = Ctor.precision;
|
|
11997
|
-
if (x.s < 0 || !xd || !xd[0] || !x.e && xd[0] == 1 && xd.length == 1) return new Ctor(xd && !xd[0] ? -
|
|
12015
|
+
if (x.s < 0 || !xd || !xd[0] || !x.e && xd[0] == 1 && xd.length == 1) return new Ctor(xd && !xd[0] ? -1 / 0 : x.s != 1 ? NaN : xd ? 0 : x);
|
|
11998
12016
|
if (sd == null) {
|
|
11999
12017
|
external = false;
|
|
12000
12018
|
wpr = pr;
|
|
@@ -12031,13 +12049,14 @@ function naturalLogarithm(y, sd) {
|
|
|
12031
12049
|
sum = sum.times(2);
|
|
12032
12050
|
if (e !== 0) sum = sum.plus(getLn10(Ctor, wpr + 2, pr).times(e + ""));
|
|
12033
12051
|
sum = divide(sum, new Ctor(n), wpr, 1);
|
|
12034
|
-
if (sd == null)
|
|
12035
|
-
|
|
12036
|
-
|
|
12037
|
-
|
|
12038
|
-
|
|
12039
|
-
|
|
12040
|
-
|
|
12052
|
+
if (sd == null) {
|
|
12053
|
+
if (checkRoundingDigits(sum.d, wpr - guard, rm, rep)) {
|
|
12054
|
+
Ctor.precision = wpr += guard;
|
|
12055
|
+
t = numerator = x = divide(x1.minus(1), x1.plus(1), wpr, 1);
|
|
12056
|
+
x2 = finalise(x.times(x), wpr, 1);
|
|
12057
|
+
denominator = rep = 1;
|
|
12058
|
+
} else return finalise(sum, Ctor.precision = pr, rm, external = true);
|
|
12059
|
+
} else {
|
|
12041
12060
|
Ctor.precision = pr;
|
|
12042
12061
|
return sum;
|
|
12043
12062
|
}
|
|
@@ -12250,13 +12269,15 @@ function toStringBinary(x, baseOut, sd, rm) {
|
|
|
12250
12269
|
for (len = xd.length; !xd[len - 1]; --len);
|
|
12251
12270
|
for (i = 0, str = ""; i < len; i++) str += NUMERALS.charAt(xd[i]);
|
|
12252
12271
|
if (isExp) {
|
|
12253
|
-
if (len > 1)
|
|
12254
|
-
|
|
12255
|
-
|
|
12256
|
-
|
|
12257
|
-
|
|
12258
|
-
|
|
12259
|
-
|
|
12272
|
+
if (len > 1) {
|
|
12273
|
+
if (baseOut == 16 || baseOut == 8) {
|
|
12274
|
+
i = baseOut == 16 ? 4 : 3;
|
|
12275
|
+
for (--len; len % i; len++) str += "0";
|
|
12276
|
+
xd = convertBase(str, base, baseOut);
|
|
12277
|
+
for (len = xd.length; !xd[len - 1]; --len);
|
|
12278
|
+
for (i = 1, str = "1."; i < len; i++) str += NUMERALS.charAt(xd[i]);
|
|
12279
|
+
} else str = str.charAt(0) + "." + str.slice(1);
|
|
12280
|
+
}
|
|
12260
12281
|
str = str + (e < 0 ? "p" : "p+") + e;
|
|
12261
12282
|
} else if (e < 0) {
|
|
12262
12283
|
for (; ++e;) str = "0" + str;
|
|
@@ -12359,14 +12380,20 @@ function config(obj) {
|
|
|
12359
12380
|
];
|
|
12360
12381
|
for (i = 0; i < ps.length; i += 3) {
|
|
12361
12382
|
if (p = ps[i], useDefaults) this[p] = DEFAULTS[p];
|
|
12362
|
-
if ((v = obj[p]) !== void 0)
|
|
12363
|
-
|
|
12383
|
+
if ((v = obj[p]) !== void 0) {
|
|
12384
|
+
if (mathfloor(v) === v && v >= ps[i + 1] && v <= ps[i + 2]) this[p] = v;
|
|
12385
|
+
else throw Error(invalidArgument + p + ": " + v);
|
|
12386
|
+
}
|
|
12364
12387
|
}
|
|
12365
12388
|
if (p = "crypto", useDefaults) this[p] = DEFAULTS[p];
|
|
12366
|
-
if ((v = obj[p]) !== void 0)
|
|
12367
|
-
|
|
12368
|
-
|
|
12369
|
-
|
|
12389
|
+
if ((v = obj[p]) !== void 0) {
|
|
12390
|
+
if (v === true || v === false || v === 0 || v === 1) {
|
|
12391
|
+
if (v) {
|
|
12392
|
+
if (typeof crypto != "undefined" && crypto && (crypto.getRandomValues || crypto.randomBytes)) this[p] = true;
|
|
12393
|
+
else throw Error(cryptoUnavailable);
|
|
12394
|
+
} else this[p] = false;
|
|
12395
|
+
} else throw Error(invalidArgument + p + ": " + v);
|
|
12396
|
+
}
|
|
12370
12397
|
return this;
|
|
12371
12398
|
}
|
|
12372
12399
|
function cos(x) {
|
|
@@ -12383,17 +12410,18 @@ function clone(obj) {
|
|
|
12383
12410
|
x.constructor = Decimal;
|
|
12384
12411
|
if (isDecimalInstance(v)) {
|
|
12385
12412
|
x.s = v.s;
|
|
12386
|
-
if (external)
|
|
12387
|
-
|
|
12388
|
-
|
|
12389
|
-
|
|
12390
|
-
|
|
12391
|
-
|
|
12413
|
+
if (external) {
|
|
12414
|
+
if (!v.d || v.e > Decimal.maxE) {
|
|
12415
|
+
x.e = NaN;
|
|
12416
|
+
x.d = null;
|
|
12417
|
+
} else if (v.e < Decimal.minE) {
|
|
12418
|
+
x.e = 0;
|
|
12419
|
+
x.d = [0];
|
|
12420
|
+
} else {
|
|
12421
|
+
x.e = v.e;
|
|
12422
|
+
x.d = v.d.slice();
|
|
12423
|
+
}
|
|
12392
12424
|
} else {
|
|
12393
|
-
x.e = v.e;
|
|
12394
|
-
x.d = v.d.slice();
|
|
12395
|
-
}
|
|
12396
|
-
else {
|
|
12397
12425
|
x.e = v.e;
|
|
12398
12426
|
x.d = v.d ? v.d.slice() : v.d;
|
|
12399
12427
|
}
|
|
@@ -12413,20 +12441,21 @@ function clone(obj) {
|
|
|
12413
12441
|
} else x.s = 1;
|
|
12414
12442
|
if (v === ~~v && v < 1e7) {
|
|
12415
12443
|
for (e = 0, i = v; i >= 10; i /= 10) e++;
|
|
12416
|
-
if (external)
|
|
12417
|
-
|
|
12418
|
-
|
|
12419
|
-
|
|
12420
|
-
|
|
12421
|
-
|
|
12444
|
+
if (external) {
|
|
12445
|
+
if (e > Decimal.maxE) {
|
|
12446
|
+
x.e = NaN;
|
|
12447
|
+
x.d = null;
|
|
12448
|
+
} else if (e < Decimal.minE) {
|
|
12449
|
+
x.e = 0;
|
|
12450
|
+
x.d = [0];
|
|
12451
|
+
} else {
|
|
12452
|
+
x.e = e;
|
|
12453
|
+
x.d = [v];
|
|
12454
|
+
}
|
|
12422
12455
|
} else {
|
|
12423
12456
|
x.e = e;
|
|
12424
12457
|
x.d = [v];
|
|
12425
12458
|
}
|
|
12426
|
-
else {
|
|
12427
|
-
x.e = e;
|
|
12428
|
-
x.d = [v];
|
|
12429
|
-
}
|
|
12430
12459
|
return;
|
|
12431
12460
|
}
|
|
12432
12461
|
if (v * 0 !== 0) {
|
|
@@ -12544,7 +12573,7 @@ function hypot() {
|
|
|
12544
12573
|
if (!n.d) {
|
|
12545
12574
|
if (n.s) {
|
|
12546
12575
|
external = true;
|
|
12547
|
-
return new this(
|
|
12576
|
+
return new this(1 / 0);
|
|
12548
12577
|
}
|
|
12549
12578
|
t = n;
|
|
12550
12579
|
} else if (t.d) t = t.plus(n.times(n));
|
|
@@ -15447,8 +15476,6 @@ var __spreadValues$21 = (a, b) => {
|
|
|
15447
15476
|
return a;
|
|
15448
15477
|
};
|
|
15449
15478
|
var dayjs$4 = createDayjs();
|
|
15450
|
-
var DAYS_PER_WEEK = 7;
|
|
15451
|
-
var WEEKS_PER_PANEL = 6;
|
|
15452
15479
|
var MonthOffset = {
|
|
15453
15480
|
Prev: -1,
|
|
15454
15481
|
Current: 0,
|
|
@@ -15526,7 +15553,7 @@ var __sfc__$64 = (0, vue.defineComponent)({
|
|
|
15526
15553
|
const lastDayjsObject = firstDayjsObject.endOf(DatePickerUnits.Month);
|
|
15527
15554
|
const daysInMonth = firstDayjsObject.daysInMonth();
|
|
15528
15555
|
const leadingCount = Math.max(0, sortWeekList.value.findIndex((week) => week === `${firstDayjsObject.day()}`));
|
|
15529
|
-
const trailingCount =
|
|
15556
|
+
const trailingCount = 42 - leadingCount - daysInMonth;
|
|
15530
15557
|
const cells = [];
|
|
15531
15558
|
for (let offset = leadingCount; offset > 0; offset--) cells.push(createCell(firstDayjsObject.subtract(offset, DatePickerUnits.Day), MonthOffset.Prev));
|
|
15532
15559
|
for (let day = 1; day <= daysInMonth; day++) cells.push(createCell(firstDayjsObject.date(day), MonthOffset.Current));
|
|
@@ -17919,7 +17946,8 @@ function Dialog(options) {
|
|
|
17919
17946
|
if (!inBrowser()) return Promise.resolve();
|
|
17920
17947
|
return new Promise((resolve) => {
|
|
17921
17948
|
Dialog.close();
|
|
17922
|
-
const
|
|
17949
|
+
const dialogOptions = normalizeOptions$2(options);
|
|
17950
|
+
const reactiveDialogOptions = (0, vue.reactive)(dialogOptions);
|
|
17923
17951
|
reactiveDialogOptions.teleport = "body";
|
|
17924
17952
|
singletonOptions$2 = reactiveDialogOptions;
|
|
17925
17953
|
const { unmountInstance } = mountInstance(stdin_default$400, reactiveDialogOptions, {
|
|
@@ -20040,7 +20068,8 @@ function normalizeOptions$1(options = {}) {
|
|
|
20040
20068
|
function ImagePreview(options) {
|
|
20041
20069
|
if (!inBrowser()) return;
|
|
20042
20070
|
ImagePreview.close();
|
|
20043
|
-
const
|
|
20071
|
+
const imagePreviewOptions = normalizeOptions$1(options);
|
|
20072
|
+
const reactiveImagePreviewOptions = (0, vue.reactive)(imagePreviewOptions);
|
|
20044
20073
|
reactiveImagePreviewOptions.teleport = "body";
|
|
20045
20074
|
singletonOptions$1 = reactiveImagePreviewOptions;
|
|
20046
20075
|
const { unmountInstance } = mountInstance(stdin_default$388, reactiveImagePreviewOptions, {
|
|
@@ -22336,7 +22365,8 @@ var singletonOptions;
|
|
|
22336
22365
|
function Picker(options) {
|
|
22337
22366
|
return new Promise((resolve) => {
|
|
22338
22367
|
Picker.close();
|
|
22339
|
-
const
|
|
22368
|
+
const pickerOptions = isArray(options) ? { columns: options } : options;
|
|
22369
|
+
const reactivePickerOptions = (0, vue.reactive)(pickerOptions);
|
|
22340
22370
|
reactivePickerOptions.dynamic = true;
|
|
22341
22371
|
reactivePickerOptions.teleport = "body";
|
|
22342
22372
|
singletonOptions = reactivePickerOptions;
|
|
@@ -22573,12 +22603,8 @@ var __sfc__$37 = (0, vue.defineComponent)({
|
|
|
22573
22603
|
const roundValue = clamp$1(Math.round(toNumber(value)), MIN, MAX);
|
|
22574
22604
|
const strokeOffset = `${(MAX - roundValue) / MAX * CIRCUMFERENCE}`;
|
|
22575
22605
|
const strokeWidth = toPxNum(lineWidth) / toPxNum(size) * diameter;
|
|
22576
|
-
const
|
|
22577
|
-
|
|
22578
|
-
const endPositionX = 0;
|
|
22579
|
-
const endPositionY = -2 * RADIUS;
|
|
22580
|
-
const path = `M ${diameter / 2} ${diameter / 2} m ${beginPositionX} ${beginPositionY} a ${RADIUS} ${RADIUS}
|
|
22581
|
-
0 1 1 ${endPositionX} 40 a ${RADIUS} ${RADIUS} 0 1 1 0 ${endPositionY}`;
|
|
22606
|
+
const path = `M ${diameter / 2} ${diameter / 2} m 0 -20 a ${RADIUS} ${RADIUS}
|
|
22607
|
+
0 1 1 0 40 a ${RADIUS} ${RADIUS} 0 1 1 0 -40`;
|
|
22582
22608
|
return {
|
|
22583
22609
|
strokeWidth,
|
|
22584
22610
|
viewBox,
|
|
@@ -24048,6 +24074,10 @@ var props$69 = __spreadValues$7({
|
|
|
24048
24074
|
type: String,
|
|
24049
24075
|
default: "value"
|
|
24050
24076
|
},
|
|
24077
|
+
menuRadius: {
|
|
24078
|
+
type: String,
|
|
24079
|
+
default: "normal"
|
|
24080
|
+
},
|
|
24051
24081
|
multiple: Boolean,
|
|
24052
24082
|
offsetY: {
|
|
24053
24083
|
type: [String, Number],
|
|
@@ -24294,6 +24324,7 @@ function __render__$20(_ctx, _cache) {
|
|
|
24294
24324
|
class: (0, vue.normalizeClass)(_ctx.n("menu")),
|
|
24295
24325
|
"popover-class": _ctx.variant === "standard" && _ctx.hint && !_ctx.filterable ? _ctx.n("--standard-menu-margin") : void 0,
|
|
24296
24326
|
"offset-y": _ctx.offsetY,
|
|
24327
|
+
radius: _ctx.menuRadius,
|
|
24297
24328
|
disabled: _ctx.formReadonly || _ctx.readonly || _ctx.formDisabled || _ctx.disabled,
|
|
24298
24329
|
placement: _ctx.placement,
|
|
24299
24330
|
"default-style": false,
|
|
@@ -24301,7 +24332,7 @@ function __render__$20(_ctx, _cache) {
|
|
|
24301
24332
|
}, {
|
|
24302
24333
|
menu: (0, vue.withCtx)(() => [(0, vue.createElementVNode)("div", {
|
|
24303
24334
|
ref: "menuEl",
|
|
24304
|
-
class: (0, vue.normalizeClass)(_ctx.classes(_ctx.n("scroller"), _ctx.n("$--scrollbar"), _ctx.n("$-elevation--3")))
|
|
24335
|
+
class: (0, vue.normalizeClass)(_ctx.classes(_ctx.n("scroller"), _ctx.n("$--scrollbar"), _ctx.n("$-elevation--3"), [_ctx.menuRadius !== "normal", _ctx.n(`--menu-radius-${_ctx.menuRadius}`)]))
|
|
24305
24336
|
}, [
|
|
24306
24337
|
_ctx.showEmpty ? (0, vue.renderSlot)(_ctx.$slots, "empty", { key: 0 }, () => [(0, vue.createElementVNode)("div", { class: (0, vue.normalizeClass)(_ctx.n("empty")) }, (0, vue.toDisplayString)((_ctx.pt ? _ctx.pt : _ctx.t)("selectEmptyText")), 3)]) : (0, vue.createCommentVNode)("v-if", true),
|
|
24307
24338
|
_ctx.options.length ? ((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, { key: 1 }, (0, vue.renderList)(_ctx.options, (option) => {
|
|
@@ -24479,6 +24510,7 @@ function __render__$20(_ctx, _cache) {
|
|
|
24479
24510
|
"class",
|
|
24480
24511
|
"popover-class",
|
|
24481
24512
|
"offset-y",
|
|
24513
|
+
"radius",
|
|
24482
24514
|
"disabled",
|
|
24483
24515
|
"placement",
|
|
24484
24516
|
"onClickOutside"
|
|
@@ -25551,6 +25583,7 @@ var props$74 = {
|
|
|
25551
25583
|
type: Number,
|
|
25552
25584
|
default: 3e3
|
|
25553
25585
|
},
|
|
25586
|
+
progress: Boolean,
|
|
25554
25587
|
elevation: {
|
|
25555
25588
|
type: [
|
|
25556
25589
|
Boolean,
|
|
@@ -25593,6 +25626,7 @@ var ICON_TYPE_DICT = {
|
|
|
25593
25626
|
loading: ""
|
|
25594
25627
|
};
|
|
25595
25628
|
function __render__$15(_ctx, _cache) {
|
|
25629
|
+
var _a;
|
|
25596
25630
|
const _component_var_icon = (0, vue.resolveComponent)("var-icon");
|
|
25597
25631
|
const _component_var_loading = (0, vue.resolveComponent)("var-loading");
|
|
25598
25632
|
return (0, vue.withDirectives)(((0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
|
|
@@ -25602,7 +25636,7 @@ function __render__$15(_ctx, _cache) {
|
|
|
25602
25636
|
zIndex: _ctx.zIndex
|
|
25603
25637
|
})
|
|
25604
25638
|
}, [(0, vue.createElementVNode)("div", {
|
|
25605
|
-
class: (0, vue.normalizeClass)(_ctx.classes(_ctx.n("wrapper"), _ctx.n(`wrapper-${_ctx.position}`), _ctx.formatElevation(_ctx.elevation, 4), [_ctx.vertical, _ctx.n("vertical")], [_ctx.type && _ctx.SNACKBAR_TYPE.includes(_ctx.type), _ctx.n(`wrapper-${_ctx.type}`)])),
|
|
25639
|
+
class: (0, vue.normalizeClass)(_ctx.classes(_ctx.n("wrapper"), _ctx.n(`wrapper-${_ctx.position}`), _ctx.formatElevation(_ctx.elevation, 4), [_ctx.vertical, _ctx.n("vertical")], [_ctx.showProgress, _ctx.n("wrapper--progress")], [_ctx.type && _ctx.SNACKBAR_TYPE.includes(_ctx.type), _ctx.n(`wrapper-${_ctx.type}`)])),
|
|
25606
25640
|
style: (0, vue.normalizeStyle)({ zIndex: _ctx.zIndex })
|
|
25607
25641
|
}, [
|
|
25608
25642
|
(0, vue.createElementVNode)("div", { class: (0, vue.normalizeClass)([_ctx.n("content"), _ctx.contentClass]) }, [(0, vue.renderSlot)(_ctx.$slots, "default", {}, () => [(0, vue.createTextVNode)((0, vue.toDisplayString)(_ctx.content), 1)])], 2),
|
|
@@ -25631,7 +25665,15 @@ function __render__$15(_ctx, _cache) {
|
|
|
25631
25665
|
_ctx.$slots.action ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
|
|
25632
25666
|
key: 1,
|
|
25633
25667
|
class: (0, vue.normalizeClass)(_ctx.n("action"))
|
|
25634
|
-
}, [(0, vue.renderSlot)(_ctx.$slots, "action")], 2)) : (0, vue.createCommentVNode)("v-if", true)
|
|
25668
|
+
}, [(0, vue.renderSlot)(_ctx.$slots, "action")], 2)) : (0, vue.createCommentVNode)("v-if", true),
|
|
25669
|
+
_ctx.showProgress ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
|
|
25670
|
+
key: (_a = _ctx.countdown) == null ? void 0 : _a.id,
|
|
25671
|
+
class: (0, vue.normalizeClass)(_ctx.n("progress")),
|
|
25672
|
+
"aria-hidden": "true"
|
|
25673
|
+
}, [(0, vue.createElementVNode)("div", {
|
|
25674
|
+
class: (0, vue.normalizeClass)(_ctx.n("progress-bar")),
|
|
25675
|
+
style: (0, vue.normalizeStyle)(_ctx.progressStyle)
|
|
25676
|
+
}, null, 6)], 2)) : (0, vue.createCommentVNode)("v-if", true)
|
|
25635
25677
|
], 6)], 6)), [[vue.vShow, _ctx.show]]);
|
|
25636
25678
|
}
|
|
25637
25679
|
var __sfc__$15 = (0, vue.defineComponent)({
|
|
@@ -25642,7 +25684,9 @@ var __sfc__$15 = (0, vue.defineComponent)({
|
|
|
25642
25684
|
},
|
|
25643
25685
|
props: props$74,
|
|
25644
25686
|
setup(props2) {
|
|
25645
|
-
|
|
25687
|
+
let timer;
|
|
25688
|
+
let countdownId = 0;
|
|
25689
|
+
const countdown = (0, vue.shallowRef)();
|
|
25646
25690
|
const { zIndex } = useZIndex(() => props2.show, 1);
|
|
25647
25691
|
useLock(() => props2.show, () => props2.lockScroll);
|
|
25648
25692
|
const isForbidClick = (0, vue.computed)(() => {
|
|
@@ -25650,35 +25694,57 @@ var __sfc__$15 = (0, vue.defineComponent)({
|
|
|
25650
25694
|
return type === "loading" || forbidClick;
|
|
25651
25695
|
});
|
|
25652
25696
|
const iconName = (0, vue.computed)(() => !props2.type ? "" : ICON_TYPE_DICT[props2.type]);
|
|
25697
|
+
const showProgress = (0, vue.computed)(() => props2.progress && countdown.value !== void 0 && countdown.value.duration > 0 && Number.isFinite(countdown.value.duration));
|
|
25698
|
+
const progressStyle = (0, vue.computed)(() => {
|
|
25699
|
+
if (!props2.progress || !countdown.value) return;
|
|
25700
|
+
const { duration, startedAt } = countdown.value;
|
|
25701
|
+
return {
|
|
25702
|
+
animationDuration: `${duration}ms`,
|
|
25703
|
+
animationDelay: `${-Math.max(0, Date.now() - startedAt)}ms`
|
|
25704
|
+
};
|
|
25705
|
+
});
|
|
25706
|
+
function clearCountdown() {
|
|
25707
|
+
clearTimeout(timer);
|
|
25708
|
+
timer = void 0;
|
|
25709
|
+
countdown.value = void 0;
|
|
25710
|
+
}
|
|
25653
25711
|
function updateAfterDuration() {
|
|
25654
|
-
|
|
25655
|
-
|
|
25712
|
+
clearCountdown();
|
|
25713
|
+
if (!props2.show || props2.type === "loading") return;
|
|
25714
|
+
countdown.value = {
|
|
25715
|
+
id: countdownId++,
|
|
25716
|
+
duration: props2.duration,
|
|
25717
|
+
startedAt: Date.now()
|
|
25718
|
+
};
|
|
25719
|
+
timer = setTimeout(() => {
|
|
25720
|
+
clearCountdown();
|
|
25721
|
+
call(props2["onUpdate:show"], false);
|
|
25656
25722
|
}, props2.duration);
|
|
25657
25723
|
}
|
|
25658
25724
|
(0, vue.watch)(() => props2.show, (show) => {
|
|
25659
|
-
if (show)
|
|
25660
|
-
|
|
25661
|
-
updateAfterDuration();
|
|
25662
|
-
} else {
|
|
25663
|
-
clearTimeout(timer.value);
|
|
25664
|
-
call(props2.onClose);
|
|
25665
|
-
}
|
|
25666
|
-
});
|
|
25667
|
-
(0, vue.watch)(() => props2._update, () => {
|
|
25668
|
-
clearTimeout(timer.value);
|
|
25669
|
-
updateAfterDuration();
|
|
25725
|
+
if (show) call(props2.onOpen);
|
|
25726
|
+
else call(props2.onClose);
|
|
25670
25727
|
});
|
|
25728
|
+
(0, vue.watch)([
|
|
25729
|
+
() => props2.show,
|
|
25730
|
+
() => props2.type === "loading",
|
|
25731
|
+
() => props2._update
|
|
25732
|
+
], updateAfterDuration);
|
|
25671
25733
|
onSmartMounted(() => {
|
|
25672
25734
|
if (props2.show) {
|
|
25673
25735
|
call(props2.onOpen);
|
|
25674
25736
|
updateAfterDuration();
|
|
25675
25737
|
}
|
|
25676
25738
|
});
|
|
25739
|
+
(0, vue.onUnmounted)(clearCountdown);
|
|
25677
25740
|
return {
|
|
25678
25741
|
SNACKBAR_TYPE,
|
|
25679
25742
|
zIndex,
|
|
25680
25743
|
iconName,
|
|
25681
25744
|
isForbidClick,
|
|
25745
|
+
countdown,
|
|
25746
|
+
showProgress,
|
|
25747
|
+
progressStyle,
|
|
25682
25748
|
n: n$17,
|
|
25683
25749
|
classes: classes$13,
|
|
25684
25750
|
formatElevation
|
|
@@ -25770,6 +25836,7 @@ var defaultOptionsValue = {
|
|
|
25770
25836
|
action: "",
|
|
25771
25837
|
position: "top",
|
|
25772
25838
|
duration: 3e3,
|
|
25839
|
+
progress: false,
|
|
25773
25840
|
elevation: true,
|
|
25774
25841
|
vertical: false,
|
|
25775
25842
|
contentClass: void 0,
|
|
@@ -25950,12 +26017,15 @@ function computeMargin(y, x, options) {
|
|
|
25950
26017
|
"flex-end",
|
|
25951
26018
|
"start",
|
|
25952
26019
|
"end"
|
|
25953
|
-
].includes(justify))
|
|
25954
|
-
|
|
25955
|
-
|
|
25956
|
-
else if (justify === "space-
|
|
25957
|
-
else if (
|
|
25958
|
-
|
|
26020
|
+
].includes(justify)) {
|
|
26021
|
+
if (index !== lastIndex) margin = `${half(y)} ${x} ${half(y)} 0`;
|
|
26022
|
+
else margin = `${half(y)} 0`;
|
|
26023
|
+
} else if (justify === "space-around") margin = `${half(y)} ${half(x)}`;
|
|
26024
|
+
else if (justify === "space-between") {
|
|
26025
|
+
if (index === 0) margin = `${half(y)} ${half(x)} ${half(y)} 0`;
|
|
26026
|
+
else if (index === lastIndex) margin = `${half(y)} 0 ${half(y)} ${half(x)}`;
|
|
26027
|
+
else margin = `${half(y)} ${half(x)}`;
|
|
26028
|
+
}
|
|
25959
26029
|
}
|
|
25960
26030
|
if (direction === "column" && index !== lastIndex) margin = `0 0 ${y} 0`;
|
|
25961
26031
|
return margin;
|
|
@@ -27682,7 +27752,8 @@ var stdin_default$305 = {
|
|
|
27682
27752
|
//#region es/themes/dark/menu.mjs
|
|
27683
27753
|
var stdin_default$304 = {
|
|
27684
27754
|
"--menu-background-color": "#272727",
|
|
27685
|
-
"--menu-border-radius": "2px"
|
|
27755
|
+
"--menu-border-radius": "2px",
|
|
27756
|
+
"--menu-large-border-radius": "8px"
|
|
27686
27757
|
};
|
|
27687
27758
|
//#endregion
|
|
27688
27759
|
//#region es/themes/dark/menuOption.mjs
|
|
@@ -27706,7 +27777,8 @@ var stdin_default$302 = {
|
|
|
27706
27777
|
"--menu-select-menu-background-color": "#272727",
|
|
27707
27778
|
"--menu-select-menu-max-height": "278px",
|
|
27708
27779
|
"--menu-select-menu-padding": "0",
|
|
27709
|
-
"--menu-select-menu-border-radius": "2px"
|
|
27780
|
+
"--menu-select-menu-border-radius": "2px",
|
|
27781
|
+
"--menu-select-menu-large-border-radius": "8px"
|
|
27710
27782
|
};
|
|
27711
27783
|
//#endregion
|
|
27712
27784
|
//#region es/themes/dark/option.mjs
|
|
@@ -27929,6 +28001,7 @@ var stdin_default$284 = {
|
|
|
27929
28001
|
"--select-scroller-padding": "6px 0",
|
|
27930
28002
|
"--select-scroller-max-height": "278px",
|
|
27931
28003
|
"--select-scroller-border-radius": "2px",
|
|
28004
|
+
"--select-scroller-large-border-radius": "8px",
|
|
27932
28005
|
"--select-chips-margin": "-5px 0 0 0",
|
|
27933
28006
|
"--select-chips-padding": "2px 0",
|
|
27934
28007
|
"--select-chip-margin": "5px 5px 0 0",
|
|
@@ -29063,7 +29136,8 @@ var stdin_default$229 = {
|
|
|
29063
29136
|
//#region es/themes/md3-dark/menu.mjs
|
|
29064
29137
|
var stdin_default$228 = {
|
|
29065
29138
|
"--menu-background-color": "var(--color-surface-container)",
|
|
29066
|
-
"--menu-border-radius": "4px"
|
|
29139
|
+
"--menu-border-radius": "4px",
|
|
29140
|
+
"--menu-large-border-radius": "16px"
|
|
29067
29141
|
};
|
|
29068
29142
|
//#endregion
|
|
29069
29143
|
//#region es/themes/md3-dark/menuOption.mjs
|
|
@@ -29086,6 +29160,7 @@ var stdin_default$227 = {
|
|
|
29086
29160
|
var stdin_default$226 = {
|
|
29087
29161
|
"--menu-select-menu-background-color": "var(--color-surface-container)",
|
|
29088
29162
|
"--menu-select-menu-border-radius": "4px",
|
|
29163
|
+
"--menu-select-menu-large-border-radius": "16px",
|
|
29089
29164
|
"--menu-select-menu-max-height": "278px",
|
|
29090
29165
|
"--menu-select-menu-padding": "0"
|
|
29091
29166
|
};
|
|
@@ -29309,6 +29384,7 @@ var stdin_default$209 = {
|
|
|
29309
29384
|
var stdin_default$208 = {
|
|
29310
29385
|
"--select-scroller-background": "var(--color-surface-container)",
|
|
29311
29386
|
"--select-scroller-border-radius": "4px",
|
|
29387
|
+
"--select-scroller-large-border-radius": "16px",
|
|
29312
29388
|
"--select-scroller-padding": "6px 0",
|
|
29313
29389
|
"--select-scroller-max-height": "278px",
|
|
29314
29390
|
"--select-chips-margin": "-5px 0 0 0",
|
|
@@ -30430,7 +30506,8 @@ var stdin_default$153 = {
|
|
|
30430
30506
|
//#region es/themes/md3-light/menu.mjs
|
|
30431
30507
|
var stdin_default$152 = {
|
|
30432
30508
|
"--menu-background-color": "var(--color-surface-container)",
|
|
30433
|
-
"--menu-border-radius": "4px"
|
|
30509
|
+
"--menu-border-radius": "4px",
|
|
30510
|
+
"--menu-large-border-radius": "16px"
|
|
30434
30511
|
};
|
|
30435
30512
|
//#endregion
|
|
30436
30513
|
//#region es/themes/md3-light/menuOption.mjs
|
|
@@ -30453,6 +30530,7 @@ var stdin_default$151 = {
|
|
|
30453
30530
|
var stdin_default$150 = {
|
|
30454
30531
|
"--menu-select-menu-background-color": "var(--color-surface-container)",
|
|
30455
30532
|
"--menu-select-menu-border-radius": "4px",
|
|
30533
|
+
"--menu-select-menu-large-border-radius": "16px",
|
|
30456
30534
|
"--menu-select-menu-max-height": "278px",
|
|
30457
30535
|
"--menu-select-menu-padding": "0"
|
|
30458
30536
|
};
|
|
@@ -30676,6 +30754,7 @@ var stdin_default$133 = {
|
|
|
30676
30754
|
var stdin_default$132 = {
|
|
30677
30755
|
"--select-scroller-background": "var(--color-surface-container)",
|
|
30678
30756
|
"--select-scroller-border-radius": "4px",
|
|
30757
|
+
"--select-scroller-large-border-radius": "16px",
|
|
30679
30758
|
"--select-scroller-padding": "6px 0",
|
|
30680
30759
|
"--select-scroller-max-height": "278px",
|
|
30681
30760
|
"--select-chips-margin": "-5px 0 0 0",
|
|
@@ -32910,7 +32989,7 @@ var _WatermarkComponent = stdin_default$108;
|
|
|
32910
32989
|
var stdin_default$102 = stdin_default$108;
|
|
32911
32990
|
//#endregion
|
|
32912
32991
|
//#region es/index.bundle.mjs
|
|
32913
|
-
var version = "3.20.
|
|
32992
|
+
var version = "3.20.9";
|
|
32914
32993
|
function install(app) {
|
|
32915
32994
|
stdin_default.install && app.use(stdin_default);
|
|
32916
32995
|
stdin_default$1.install && app.use(stdin_default$1);
|