@varlet/ui 3.20.8 → 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/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 +2128 -2093
- package/highlight/web-types.en-US.json +37 -1
- package/highlight/web-types.zh-CN.json +37 -1
- package/lib/varlet.cjs.js +58 -24
- package/lib/varlet.css +1 -1
- package/package.json +7 -7
- 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 +3 -0
- package/types/styleVars.d.ts +3 -0
- package/umd/varlet.js +7 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"framework": "vue",
|
|
4
|
-
"version": "3.20.
|
|
4
|
+
"version": "3.20.9",
|
|
5
5
|
"name": "VARLET",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -457,6 +457,15 @@
|
|
|
457
457
|
"kind": "expression"
|
|
458
458
|
}
|
|
459
459
|
},
|
|
460
|
+
{
|
|
461
|
+
"name": "menu-radius",
|
|
462
|
+
"description": "Popup menu radius, optional values are `normal` `large`",
|
|
463
|
+
"default": "normal",
|
|
464
|
+
"value": {
|
|
465
|
+
"type": "string",
|
|
466
|
+
"kind": "expression"
|
|
467
|
+
}
|
|
468
|
+
},
|
|
460
469
|
{
|
|
461
470
|
"name": "options",
|
|
462
471
|
"description": "Specifies options",
|
|
@@ -5886,6 +5895,15 @@
|
|
|
5886
5895
|
"kind": "expression"
|
|
5887
5896
|
}
|
|
5888
5897
|
},
|
|
5898
|
+
{
|
|
5899
|
+
"name": "radius",
|
|
5900
|
+
"description": "Popup menu radius, optional values are `normal` `large`",
|
|
5901
|
+
"default": "normal",
|
|
5902
|
+
"value": {
|
|
5903
|
+
"type": "string",
|
|
5904
|
+
"kind": "expression"
|
|
5905
|
+
}
|
|
5906
|
+
},
|
|
5889
5907
|
{
|
|
5890
5908
|
"name": "same-width",
|
|
5891
5909
|
"description": "Whether to same width as trigger element",
|
|
@@ -6155,6 +6173,15 @@
|
|
|
6155
6173
|
"kind": "expression"
|
|
6156
6174
|
}
|
|
6157
6175
|
},
|
|
6176
|
+
{
|
|
6177
|
+
"name": "radius",
|
|
6178
|
+
"description": "Popup menu radius, optional values are `normal` `large`",
|
|
6179
|
+
"default": "normal",
|
|
6180
|
+
"value": {
|
|
6181
|
+
"type": "string",
|
|
6182
|
+
"kind": "expression"
|
|
6183
|
+
}
|
|
6184
|
+
},
|
|
6158
6185
|
{
|
|
6159
6186
|
"name": "same-width",
|
|
6160
6187
|
"description": "Whether to same width as trigger element",
|
|
@@ -8059,6 +8086,15 @@
|
|
|
8059
8086
|
"kind": "expression"
|
|
8060
8087
|
}
|
|
8061
8088
|
},
|
|
8089
|
+
{
|
|
8090
|
+
"name": "menu-radius",
|
|
8091
|
+
"description": "Popup menu radius, optional values are `normal` `large`; does not affect the select field",
|
|
8092
|
+
"default": "normal",
|
|
8093
|
+
"value": {
|
|
8094
|
+
"type": "string",
|
|
8095
|
+
"kind": "expression"
|
|
8096
|
+
}
|
|
8097
|
+
},
|
|
8062
8098
|
{
|
|
8063
8099
|
"name": "chip",
|
|
8064
8100
|
"description": "Whether to use chip style (multiple choices only)",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"framework": "vue",
|
|
4
|
-
"version": "3.20.
|
|
4
|
+
"version": "3.20.9",
|
|
5
5
|
"name": "VARLET",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -457,6 +457,15 @@
|
|
|
457
457
|
"kind": "expression"
|
|
458
458
|
}
|
|
459
459
|
},
|
|
460
|
+
{
|
|
461
|
+
"name": "menu-radius",
|
|
462
|
+
"description": "弹出菜单圆角,可选值 `normal` `large`",
|
|
463
|
+
"default": "normal",
|
|
464
|
+
"value": {
|
|
465
|
+
"type": "string",
|
|
466
|
+
"kind": "expression"
|
|
467
|
+
}
|
|
468
|
+
},
|
|
460
469
|
{
|
|
461
470
|
"name": "options",
|
|
462
471
|
"description": "指定可选项",
|
|
@@ -5628,6 +5637,15 @@
|
|
|
5628
5637
|
"kind": "expression"
|
|
5629
5638
|
}
|
|
5630
5639
|
},
|
|
5640
|
+
{
|
|
5641
|
+
"name": "radius",
|
|
5642
|
+
"description": "弹出菜单圆角,可选值 `normal` `large`",
|
|
5643
|
+
"default": "normal",
|
|
5644
|
+
"value": {
|
|
5645
|
+
"type": "string",
|
|
5646
|
+
"kind": "expression"
|
|
5647
|
+
}
|
|
5648
|
+
},
|
|
5631
5649
|
{
|
|
5632
5650
|
"name": "same-width",
|
|
5633
5651
|
"description": "是否与触发元素同宽",
|
|
@@ -5897,6 +5915,15 @@
|
|
|
5897
5915
|
"kind": "expression"
|
|
5898
5916
|
}
|
|
5899
5917
|
},
|
|
5918
|
+
{
|
|
5919
|
+
"name": "radius",
|
|
5920
|
+
"description": "弹出菜单圆角,可选值 `normal` `large`",
|
|
5921
|
+
"default": "normal",
|
|
5922
|
+
"value": {
|
|
5923
|
+
"type": "string",
|
|
5924
|
+
"kind": "expression"
|
|
5925
|
+
}
|
|
5926
|
+
},
|
|
5900
5927
|
{
|
|
5901
5928
|
"name": "same-width",
|
|
5902
5929
|
"description": "是否与触发元素同宽",
|
|
@@ -7977,6 +8004,15 @@
|
|
|
7977
8004
|
"kind": "expression"
|
|
7978
8005
|
}
|
|
7979
8006
|
},
|
|
8007
|
+
{
|
|
8008
|
+
"name": "menu-radius",
|
|
8009
|
+
"description": "弹出菜单圆角,可选值 `normal` `large`,不影响选择框",
|
|
8010
|
+
"default": "normal",
|
|
8011
|
+
"value": {
|
|
8012
|
+
"type": "string",
|
|
8013
|
+
"kind": "expression"
|
|
8014
|
+
}
|
|
8015
|
+
},
|
|
7980
8016
|
{
|
|
7981
8017
|
"name": "chip",
|
|
7982
8018
|
"description": "是否使用纸片风格(仅限多选)",
|
package/lib/varlet.cjs.js
CHANGED
|
@@ -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: {
|
|
@@ -5922,7 +5926,7 @@ function __render__$96(_ctx, _cache) {
|
|
|
5922
5926
|
zIndex: _ctx.zIndex,
|
|
5923
5927
|
width: _ctx.sameWidth ? _ctx.toSizeUnit(Math.ceil(_ctx.referenceSize.width)) : void 0
|
|
5924
5928
|
}),
|
|
5925
|
-
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)])),
|
|
5926
5930
|
onClick: _cache[0] || (_cache[0] = (0, vue.withModifiers)(() => {}, ["stop"])),
|
|
5927
5931
|
onMouseenter: _cache[1] || (_cache[1] = (...args) => _ctx.handlePopoverMouseenter && _ctx.handlePopoverMouseenter(...args)),
|
|
5928
5932
|
onMouseleave: _cache[2] || (_cache[2] = (...args) => _ctx.handlePopoverMouseleave && _ctx.handlePopoverMouseleave(...args))
|
|
@@ -6092,6 +6096,7 @@ var props$50 = __spreadProps$17(__spreadValues$35({
|
|
|
6092
6096
|
"offsetY",
|
|
6093
6097
|
"teleport",
|
|
6094
6098
|
"sameWidth",
|
|
6099
|
+
"radius",
|
|
6095
6100
|
"elevation",
|
|
6096
6101
|
"popoverClass",
|
|
6097
6102
|
"closeOnClickReference",
|
|
@@ -6142,7 +6147,6 @@ var __async$20 = (__this, __arguments, generator) => {
|
|
|
6142
6147
|
});
|
|
6143
6148
|
};
|
|
6144
6149
|
var { name: name$86, n: n$97 } = createNamespace("menu-children");
|
|
6145
|
-
var _hoisted_1$41 = { ref: "menuOptions" };
|
|
6146
6150
|
function __render__$95(_ctx, _cache) {
|
|
6147
6151
|
const _component_var_menu_option = (0, vue.resolveComponent)("var-menu-option");
|
|
6148
6152
|
const _component_var_menu_children = (0, vue.resolveComponent)("var-menu-children");
|
|
@@ -6155,8 +6159,9 @@ function __render__$95(_ctx, _cache) {
|
|
|
6155
6159
|
placement: "right-start",
|
|
6156
6160
|
"cascade-optimization": "",
|
|
6157
6161
|
"var-menu-children-cover": "",
|
|
6158
|
-
class: (0, vue.normalizeClass)(_ctx.n()),
|
|
6162
|
+
class: (0, vue.normalizeClass)([_ctx.n(), _ctx.radius !== "normal" ? _ctx.n(`--menu-radius-${_ctx.radius}`) : void 0]),
|
|
6159
6163
|
disabled: _ctx.disabled,
|
|
6164
|
+
radius: _ctx.radius,
|
|
6160
6165
|
teleport: false,
|
|
6161
6166
|
"close-on-click-reference": false
|
|
6162
6167
|
}, (0, vue.createSlots)({
|
|
@@ -6184,7 +6189,7 @@ function __render__$95(_ctx, _cache) {
|
|
|
6184
6189
|
_: 2
|
|
6185
6190
|
}, [_ctx.options.length ? {
|
|
6186
6191
|
name: "menu",
|
|
6187
|
-
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) => {
|
|
6188
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, {
|
|
6189
6194
|
key: 0,
|
|
6190
6195
|
ref_for: true,
|
|
@@ -6194,6 +6199,7 @@ function __render__$95(_ctx, _cache) {
|
|
|
6194
6199
|
options: menuOption[_ctx.childrenKey],
|
|
6195
6200
|
"highlight-options": _ctx.highlightOptions,
|
|
6196
6201
|
disabled: menuOption.disabled,
|
|
6202
|
+
radius: _ctx.radius,
|
|
6197
6203
|
onKeyArrowX: _ctx.handleArrowLeft,
|
|
6198
6204
|
onKeyArrowRightOpen: ($event) => _ctx.allowChildrenClose(menuOption),
|
|
6199
6205
|
onMouseenter: ($event) => _ctx.allowChildrenClose(menuOption)
|
|
@@ -6203,6 +6209,7 @@ function __render__$95(_ctx, _cache) {
|
|
|
6203
6209
|
"options",
|
|
6204
6210
|
"highlight-options",
|
|
6205
6211
|
"disabled",
|
|
6212
|
+
"radius",
|
|
6206
6213
|
"onKeyArrowX",
|
|
6207
6214
|
"onKeyArrowRightOpen",
|
|
6208
6215
|
"onMouseenter"
|
|
@@ -6223,12 +6230,13 @@ function __render__$95(_ctx, _cache) {
|
|
|
6223
6230
|
"disabled",
|
|
6224
6231
|
"onKeyArrowX"
|
|
6225
6232
|
]))], 64);
|
|
6226
|
-
}), 128))],
|
|
6233
|
+
}), 128))], 16)]),
|
|
6227
6234
|
key: "0"
|
|
6228
6235
|
} : void 0]), 1032, [
|
|
6229
6236
|
"show",
|
|
6230
6237
|
"class",
|
|
6231
|
-
"disabled"
|
|
6238
|
+
"disabled",
|
|
6239
|
+
"radius"
|
|
6232
6240
|
]);
|
|
6233
6241
|
}
|
|
6234
6242
|
var __sfc__$95 = (0, vue.defineComponent)({
|
|
@@ -6252,7 +6260,8 @@ var __sfc__$95 = (0, vue.defineComponent)({
|
|
|
6252
6260
|
"options",
|
|
6253
6261
|
"valueKey",
|
|
6254
6262
|
"labelKey",
|
|
6255
|
-
"childrenKey"
|
|
6263
|
+
"childrenKey",
|
|
6264
|
+
"radius"
|
|
6256
6265
|
])),
|
|
6257
6266
|
setup(props) {
|
|
6258
6267
|
const show = (0, vue.ref)(false);
|
|
@@ -6364,6 +6373,7 @@ function __render__$94(_ctx, _cache) {
|
|
|
6364
6373
|
"offset-y": _ctx.offsetY,
|
|
6365
6374
|
teleport: _ctx.teleport,
|
|
6366
6375
|
"same-width": _ctx.sameWidth,
|
|
6376
|
+
radius: _ctx.radius,
|
|
6367
6377
|
elevation: _ctx.elevation,
|
|
6368
6378
|
"default-style": false,
|
|
6369
6379
|
"popover-class": _ctx.popoverClass,
|
|
@@ -6377,7 +6387,7 @@ function __render__$94(_ctx, _cache) {
|
|
|
6377
6387
|
}, {
|
|
6378
6388
|
menu: (0, vue.withCtx)(() => [(0, vue.createElementVNode)("div", {
|
|
6379
6389
|
ref: "menuOptionsRef",
|
|
6380
|
-
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}`)]))
|
|
6381
6391
|
}, [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(_ctx.options, (option) => {
|
|
6382
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, {
|
|
6383
6393
|
key: 0,
|
|
@@ -6388,6 +6398,7 @@ function __render__$94(_ctx, _cache) {
|
|
|
6388
6398
|
options: option[_ctx.childrenKey],
|
|
6389
6399
|
"highlight-options": _ctx.highlightOptions,
|
|
6390
6400
|
disabled: option.disabled,
|
|
6401
|
+
radius: _ctx.radius,
|
|
6391
6402
|
onKeyArrowRightOpen: ($event) => _ctx.allowChildrenClose(option),
|
|
6392
6403
|
onMouseenter: ($event) => _ctx.allowChildrenClose(option)
|
|
6393
6404
|
}, null, 8, [
|
|
@@ -6396,6 +6407,7 @@ function __render__$94(_ctx, _cache) {
|
|
|
6396
6407
|
"options",
|
|
6397
6408
|
"highlight-options",
|
|
6398
6409
|
"disabled",
|
|
6410
|
+
"radius",
|
|
6399
6411
|
"onKeyArrowRightOpen",
|
|
6400
6412
|
"onMouseenter"
|
|
6401
6413
|
])) : ((0, vue.openBlock)(), (0, vue.createBlock)(_component_var_menu_option, {
|
|
@@ -6428,6 +6440,7 @@ function __render__$94(_ctx, _cache) {
|
|
|
6428
6440
|
"offset-y",
|
|
6429
6441
|
"teleport",
|
|
6430
6442
|
"same-width",
|
|
6443
|
+
"radius",
|
|
6431
6444
|
"elevation",
|
|
6432
6445
|
"popover-class",
|
|
6433
6446
|
"close-on-click-reference",
|
|
@@ -6695,6 +6708,10 @@ var props$95 = __spreadValues$32({
|
|
|
6695
6708
|
type: String,
|
|
6696
6709
|
default: "value"
|
|
6697
6710
|
},
|
|
6711
|
+
menuRadius: {
|
|
6712
|
+
type: String,
|
|
6713
|
+
default: "normal"
|
|
6714
|
+
},
|
|
6698
6715
|
maxlength: [String, Number],
|
|
6699
6716
|
readonly: Boolean,
|
|
6700
6717
|
disabled: Boolean,
|
|
@@ -6775,6 +6792,7 @@ function __render__$93(_ctx, _cache) {
|
|
|
6775
6792
|
scrollable: "",
|
|
6776
6793
|
trigger: "manual",
|
|
6777
6794
|
placement: "bottom",
|
|
6795
|
+
radius: _ctx.menuRadius,
|
|
6778
6796
|
disabled: _ctx.disabled || _ctx.formDisabled || _ctx.readonly || _ctx.formReadonly,
|
|
6779
6797
|
class: (0, vue.normalizeClass)(_ctx.n("menu-select")),
|
|
6780
6798
|
"popover-class": _ctx.variant === "standard" ? _ctx.n("--standard-menu-margin") : _ctx.variant === "filled" ? _ctx.n("--filled-menu-margin") : "",
|
|
@@ -6855,6 +6873,7 @@ function __render__$93(_ctx, _cache) {
|
|
|
6855
6873
|
_: 3
|
|
6856
6874
|
}, 8, [
|
|
6857
6875
|
"show",
|
|
6876
|
+
"radius",
|
|
6858
6877
|
"disabled",
|
|
6859
6878
|
"class",
|
|
6860
6879
|
"popover-class",
|
|
@@ -24055,6 +24074,10 @@ var props$69 = __spreadValues$7({
|
|
|
24055
24074
|
type: String,
|
|
24056
24075
|
default: "value"
|
|
24057
24076
|
},
|
|
24077
|
+
menuRadius: {
|
|
24078
|
+
type: String,
|
|
24079
|
+
default: "normal"
|
|
24080
|
+
},
|
|
24058
24081
|
multiple: Boolean,
|
|
24059
24082
|
offsetY: {
|
|
24060
24083
|
type: [String, Number],
|
|
@@ -24301,6 +24324,7 @@ function __render__$20(_ctx, _cache) {
|
|
|
24301
24324
|
class: (0, vue.normalizeClass)(_ctx.n("menu")),
|
|
24302
24325
|
"popover-class": _ctx.variant === "standard" && _ctx.hint && !_ctx.filterable ? _ctx.n("--standard-menu-margin") : void 0,
|
|
24303
24326
|
"offset-y": _ctx.offsetY,
|
|
24327
|
+
radius: _ctx.menuRadius,
|
|
24304
24328
|
disabled: _ctx.formReadonly || _ctx.readonly || _ctx.formDisabled || _ctx.disabled,
|
|
24305
24329
|
placement: _ctx.placement,
|
|
24306
24330
|
"default-style": false,
|
|
@@ -24308,7 +24332,7 @@ function __render__$20(_ctx, _cache) {
|
|
|
24308
24332
|
}, {
|
|
24309
24333
|
menu: (0, vue.withCtx)(() => [(0, vue.createElementVNode)("div", {
|
|
24310
24334
|
ref: "menuEl",
|
|
24311
|
-
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}`)]))
|
|
24312
24336
|
}, [
|
|
24313
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),
|
|
24314
24338
|
_ctx.options.length ? ((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, { key: 1 }, (0, vue.renderList)(_ctx.options, (option) => {
|
|
@@ -24486,6 +24510,7 @@ function __render__$20(_ctx, _cache) {
|
|
|
24486
24510
|
"class",
|
|
24487
24511
|
"popover-class",
|
|
24488
24512
|
"offset-y",
|
|
24513
|
+
"radius",
|
|
24489
24514
|
"disabled",
|
|
24490
24515
|
"placement",
|
|
24491
24516
|
"onClickOutside"
|
|
@@ -27727,7 +27752,8 @@ var stdin_default$305 = {
|
|
|
27727
27752
|
//#region es/themes/dark/menu.mjs
|
|
27728
27753
|
var stdin_default$304 = {
|
|
27729
27754
|
"--menu-background-color": "#272727",
|
|
27730
|
-
"--menu-border-radius": "2px"
|
|
27755
|
+
"--menu-border-radius": "2px",
|
|
27756
|
+
"--menu-large-border-radius": "8px"
|
|
27731
27757
|
};
|
|
27732
27758
|
//#endregion
|
|
27733
27759
|
//#region es/themes/dark/menuOption.mjs
|
|
@@ -27751,7 +27777,8 @@ var stdin_default$302 = {
|
|
|
27751
27777
|
"--menu-select-menu-background-color": "#272727",
|
|
27752
27778
|
"--menu-select-menu-max-height": "278px",
|
|
27753
27779
|
"--menu-select-menu-padding": "0",
|
|
27754
|
-
"--menu-select-menu-border-radius": "2px"
|
|
27780
|
+
"--menu-select-menu-border-radius": "2px",
|
|
27781
|
+
"--menu-select-menu-large-border-radius": "8px"
|
|
27755
27782
|
};
|
|
27756
27783
|
//#endregion
|
|
27757
27784
|
//#region es/themes/dark/option.mjs
|
|
@@ -27974,6 +28001,7 @@ var stdin_default$284 = {
|
|
|
27974
28001
|
"--select-scroller-padding": "6px 0",
|
|
27975
28002
|
"--select-scroller-max-height": "278px",
|
|
27976
28003
|
"--select-scroller-border-radius": "2px",
|
|
28004
|
+
"--select-scroller-large-border-radius": "8px",
|
|
27977
28005
|
"--select-chips-margin": "-5px 0 0 0",
|
|
27978
28006
|
"--select-chips-padding": "2px 0",
|
|
27979
28007
|
"--select-chip-margin": "5px 5px 0 0",
|
|
@@ -29108,7 +29136,8 @@ var stdin_default$229 = {
|
|
|
29108
29136
|
//#region es/themes/md3-dark/menu.mjs
|
|
29109
29137
|
var stdin_default$228 = {
|
|
29110
29138
|
"--menu-background-color": "var(--color-surface-container)",
|
|
29111
|
-
"--menu-border-radius": "4px"
|
|
29139
|
+
"--menu-border-radius": "4px",
|
|
29140
|
+
"--menu-large-border-radius": "16px"
|
|
29112
29141
|
};
|
|
29113
29142
|
//#endregion
|
|
29114
29143
|
//#region es/themes/md3-dark/menuOption.mjs
|
|
@@ -29131,6 +29160,7 @@ var stdin_default$227 = {
|
|
|
29131
29160
|
var stdin_default$226 = {
|
|
29132
29161
|
"--menu-select-menu-background-color": "var(--color-surface-container)",
|
|
29133
29162
|
"--menu-select-menu-border-radius": "4px",
|
|
29163
|
+
"--menu-select-menu-large-border-radius": "16px",
|
|
29134
29164
|
"--menu-select-menu-max-height": "278px",
|
|
29135
29165
|
"--menu-select-menu-padding": "0"
|
|
29136
29166
|
};
|
|
@@ -29354,6 +29384,7 @@ var stdin_default$209 = {
|
|
|
29354
29384
|
var stdin_default$208 = {
|
|
29355
29385
|
"--select-scroller-background": "var(--color-surface-container)",
|
|
29356
29386
|
"--select-scroller-border-radius": "4px",
|
|
29387
|
+
"--select-scroller-large-border-radius": "16px",
|
|
29357
29388
|
"--select-scroller-padding": "6px 0",
|
|
29358
29389
|
"--select-scroller-max-height": "278px",
|
|
29359
29390
|
"--select-chips-margin": "-5px 0 0 0",
|
|
@@ -30475,7 +30506,8 @@ var stdin_default$153 = {
|
|
|
30475
30506
|
//#region es/themes/md3-light/menu.mjs
|
|
30476
30507
|
var stdin_default$152 = {
|
|
30477
30508
|
"--menu-background-color": "var(--color-surface-container)",
|
|
30478
|
-
"--menu-border-radius": "4px"
|
|
30509
|
+
"--menu-border-radius": "4px",
|
|
30510
|
+
"--menu-large-border-radius": "16px"
|
|
30479
30511
|
};
|
|
30480
30512
|
//#endregion
|
|
30481
30513
|
//#region es/themes/md3-light/menuOption.mjs
|
|
@@ -30498,6 +30530,7 @@ var stdin_default$151 = {
|
|
|
30498
30530
|
var stdin_default$150 = {
|
|
30499
30531
|
"--menu-select-menu-background-color": "var(--color-surface-container)",
|
|
30500
30532
|
"--menu-select-menu-border-radius": "4px",
|
|
30533
|
+
"--menu-select-menu-large-border-radius": "16px",
|
|
30501
30534
|
"--menu-select-menu-max-height": "278px",
|
|
30502
30535
|
"--menu-select-menu-padding": "0"
|
|
30503
30536
|
};
|
|
@@ -30721,6 +30754,7 @@ var stdin_default$133 = {
|
|
|
30721
30754
|
var stdin_default$132 = {
|
|
30722
30755
|
"--select-scroller-background": "var(--color-surface-container)",
|
|
30723
30756
|
"--select-scroller-border-radius": "4px",
|
|
30757
|
+
"--select-scroller-large-border-radius": "16px",
|
|
30724
30758
|
"--select-scroller-padding": "6px 0",
|
|
30725
30759
|
"--select-scroller-max-height": "278px",
|
|
30726
30760
|
"--select-chips-margin": "-5px 0 0 0",
|
|
@@ -32955,7 +32989,7 @@ var _WatermarkComponent = stdin_default$108;
|
|
|
32955
32989
|
var stdin_default$102 = stdin_default$108;
|
|
32956
32990
|
//#endregion
|
|
32957
32991
|
//#region es/index.bundle.mjs
|
|
32958
|
-
var version = "3.20.
|
|
32992
|
+
var version = "3.20.9";
|
|
32959
32993
|
function install(app) {
|
|
32960
32994
|
stdin_default.install && app.use(stdin_default);
|
|
32961
32995
|
stdin_default$1.install && app.use(stdin_default$1);
|