@varlet/ui 3.9.0-alpha.1736270797421 → 3.9.0-alpha.1740240238764
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/action-sheet/style/index.mjs +1 -1
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/input/Input.mjs +7 -3
- package/es/input/props.mjs +1 -0
- package/es/pagination/Pagination.mjs +47 -47
- package/es/pagination/pagination.css +1 -1
- package/es/radio/Radio.mjs +65 -64
- package/es/radio-group/RadioGroup.mjs +29 -32
- package/es/radio-group/props.mjs +4 -0
- package/es/select/select.css +1 -1
- package/es/themes/dark/pagination.mjs +3 -2
- package/es/themes/dark/select.mjs +3 -1
- package/es/themes/md3-dark/pagination.mjs +3 -2
- package/es/themes/md3-dark/select.mjs +3 -1
- package/es/themes/md3-light/pagination.mjs +3 -2
- package/es/themes/md3-light/select.mjs +3 -1
- package/es/{style.css → varlet.css} +1 -1
- package/es/varlet.esm.js +2870 -2859
- package/highlight/web-types.en-US.json +19 -1
- package/highlight/web-types.zh-CN.json +19 -1
- package/lib/varlet.cjs.js +237 -223
- package/lib/{style.css → varlet.css} +1 -1
- package/package.json +41 -41
- package/types/input.d.ts +1 -0
- package/types/radioGroup.d.ts +2 -1
- package/types/space.d.ts +1 -1
- package/types/styleVars.d.ts +5 -0
- package/umd/varlet.js +8 -8
package/es/index.bundle.mjs
CHANGED
|
@@ -280,7 +280,7 @@ import './tooltip/style/index.mjs'
|
|
|
280
280
|
import './uploader/style/index.mjs'
|
|
281
281
|
import './watermark/style/index.mjs'
|
|
282
282
|
|
|
283
|
-
const version = '3.9.0-alpha.
|
|
283
|
+
const version = '3.9.0-alpha.1740240238764'
|
|
284
284
|
|
|
285
285
|
function install(app) {
|
|
286
286
|
ActionSheet.install && app.use(ActionSheet)
|
package/es/index.mjs
CHANGED
|
@@ -186,7 +186,7 @@ export * from './tooltip/index.mjs'
|
|
|
186
186
|
export * from './uploader/index.mjs'
|
|
187
187
|
export * from './watermark/index.mjs'
|
|
188
188
|
|
|
189
|
-
const version = '3.9.0-alpha.
|
|
189
|
+
const version = '3.9.0-alpha.1740240238764'
|
|
190
190
|
|
|
191
191
|
function install(app) {
|
|
192
192
|
ActionSheet.install && app.use(ActionSheet)
|
package/es/input/Input.mjs
CHANGED
|
@@ -8,9 +8,9 @@ import { createNamespace, useValidation } from "../utils/components.mjs";
|
|
|
8
8
|
import { props } from "./props.mjs";
|
|
9
9
|
const { name, n, classes } = createNamespace("input");
|
|
10
10
|
import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, withCtx as _withCtx, createSlots as _createSlots, createVNode as _createVNode, createBlock as _createBlock } from "vue";
|
|
11
|
-
const _hoisted_1 = ["placeholder", "enterkeyhint"];
|
|
12
|
-
const _hoisted_2 = ["id", "autocomplete", "disabled", "readonly", "type", "value", "placeholder", "maxlength", "rows", "enterkeyhint", "inputmode"];
|
|
13
|
-
const _hoisted_3 = ["id", "autocomplete", "disabled", "readonly", "type", "value", "placeholder", "maxlength", "enterkeyhint", "inputmode"];
|
|
11
|
+
const _hoisted_1 = ["aria-label", "placeholder", "enterkeyhint"];
|
|
12
|
+
const _hoisted_2 = ["id", "aria-label", "autocomplete", "disabled", "readonly", "type", "value", "placeholder", "maxlength", "rows", "enterkeyhint", "inputmode"];
|
|
13
|
+
const _hoisted_3 = ["id", "aria-label", "autocomplete", "disabled", "readonly", "type", "value", "placeholder", "maxlength", "enterkeyhint", "inputmode"];
|
|
14
14
|
function __render__(_ctx, _cache) {
|
|
15
15
|
const _component_var_field_decorator = _resolveComponent("var-field-decorator");
|
|
16
16
|
const _component_var_form_details = _resolveComponent("var-form-details");
|
|
@@ -29,6 +29,7 @@ function __render__(_ctx, _cache) {
|
|
|
29
29
|
size: _ctx.size,
|
|
30
30
|
variant: _ctx.variant,
|
|
31
31
|
placeholder: _ctx.placeholder,
|
|
32
|
+
ariaLabel: _ctx.ariaLabel,
|
|
32
33
|
line: _ctx.line,
|
|
33
34
|
hint: _ctx.hint,
|
|
34
35
|
textColor: _ctx.textColor,
|
|
@@ -56,6 +57,7 @@ function __render__(_ctx, _cache) {
|
|
|
56
57
|
_ctx.normalizedType === "password" ? (_openBlock(), _createElementBlock("input", {
|
|
57
58
|
key: 0,
|
|
58
59
|
tabindex: "-1",
|
|
60
|
+
"aria-label": _ctx.ariaLabel,
|
|
59
61
|
class: _normalizeClass(_ctx.n("autocomplete")),
|
|
60
62
|
placeholder: !_ctx.hint ? _ctx.placeholder : void 0,
|
|
61
63
|
style: _normalizeStyle({
|
|
@@ -67,6 +69,7 @@ function __render__(_ctx, _cache) {
|
|
|
67
69
|
key: 1,
|
|
68
70
|
id: _ctx.id,
|
|
69
71
|
ref: "el",
|
|
72
|
+
"aria-label": _ctx.ariaLabel,
|
|
70
73
|
class: _normalizeClass(
|
|
71
74
|
_ctx.classes(
|
|
72
75
|
_ctx.n("input"),
|
|
@@ -102,6 +105,7 @@ function __render__(_ctx, _cache) {
|
|
|
102
105
|
key: 2,
|
|
103
106
|
id: _ctx.id,
|
|
104
107
|
ref: "el",
|
|
108
|
+
"aria-label": _ctx.ariaLabel,
|
|
105
109
|
class: _normalizeClass(
|
|
106
110
|
_ctx.classes(
|
|
107
111
|
_ctx.n("input"),
|
package/es/input/props.mjs
CHANGED
|
@@ -136,45 +136,45 @@ function __render__(_ctx, _cache) {
|
|
|
136
136
|
)), [
|
|
137
137
|
[_directive_ripple, { disabled: _ctx.current >= _ctx.pageCount || _ctx.disabled }]
|
|
138
138
|
]),
|
|
139
|
-
_ctx.showSizeChanger ? (_openBlock(),
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
))
|
|
176
|
-
|
|
177
|
-
|
|
139
|
+
_ctx.showSizeChanger ? (_openBlock(), _createBlock(_component_var_menu_select, {
|
|
140
|
+
key: 2,
|
|
141
|
+
modelValue: _ctx.size,
|
|
142
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => _ctx.size = $event),
|
|
143
|
+
placement: "cover-top",
|
|
144
|
+
disabled: _ctx.disabled
|
|
145
|
+
}, {
|
|
146
|
+
options: _withCtx(() => [
|
|
147
|
+
(_openBlock(true), _createElementBlock(
|
|
148
|
+
_Fragment,
|
|
149
|
+
null,
|
|
150
|
+
_renderList(_ctx.sizeOption, (option, index) => {
|
|
151
|
+
return _openBlock(), _createBlock(_component_var_menu_option, {
|
|
152
|
+
key: index,
|
|
153
|
+
value: option,
|
|
154
|
+
onClick: _ctx.clickSize
|
|
155
|
+
}, {
|
|
156
|
+
default: _withCtx(() => [
|
|
157
|
+
_createTextVNode(
|
|
158
|
+
_toDisplayString(option) + _toDisplayString((_ctx.pt ? _ctx.pt : _ctx.t)("paginationItem")) + " / " + _toDisplayString((_ctx.pt ? _ctx.pt : _ctx.t)("paginationPage")),
|
|
159
|
+
1
|
|
160
|
+
/* TEXT */
|
|
161
|
+
)
|
|
162
|
+
]),
|
|
163
|
+
_: 2
|
|
164
|
+
/* DYNAMIC */
|
|
165
|
+
}, 1032, ["value", "onClick"]);
|
|
166
|
+
}),
|
|
167
|
+
128
|
|
168
|
+
/* KEYED_FRAGMENT */
|
|
169
|
+
))
|
|
170
|
+
]),
|
|
171
|
+
default: _withCtx(() => [
|
|
172
|
+
_createElementVNode(
|
|
173
|
+
"li",
|
|
174
|
+
{
|
|
175
|
+
class: _normalizeClass(_ctx.classes(_ctx.n("size"), [_ctx.disabled, _ctx.n("item--disabled")]))
|
|
176
|
+
},
|
|
177
|
+
[
|
|
178
178
|
_createElementVNode(
|
|
179
179
|
"div",
|
|
180
180
|
{
|
|
@@ -197,14 +197,14 @@ function __render__(_ctx, _cache) {
|
|
|
197
197
|
2
|
|
198
198
|
/* CLASS */
|
|
199
199
|
)
|
|
200
|
-
]
|
|
201
|
-
|
|
202
|
-
/*
|
|
203
|
-
|
|
204
|
-
],
|
|
205
|
-
|
|
206
|
-
/*
|
|
207
|
-
)) : _createCommentVNode("v-if", true),
|
|
200
|
+
],
|
|
201
|
+
2
|
|
202
|
+
/* CLASS */
|
|
203
|
+
)
|
|
204
|
+
]),
|
|
205
|
+
_: 1
|
|
206
|
+
/* STABLE */
|
|
207
|
+
}, 8, ["modelValue", "disabled"])) : _createCommentVNode("v-if", true),
|
|
208
208
|
_ctx.showQuickJumper && !_ctx.simple ? (_openBlock(), _createElementBlock(
|
|
209
209
|
"li",
|
|
210
210
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --pagination-text-color: #555; --pagination-font-size: var(--font-size-md); --pagination-active-color: var(--color-on-primary); --pagination-active-bg-color: var(--color-primary); --pagination-hover-bg-color: rgba(85, 85, 85, 0.15); --pagination-total-margin: 0
|
|
1
|
+
:root { --pagination-text-color: #555; --pagination-font-size: var(--font-size-md); --pagination-active-color: var(--color-on-primary); --pagination-active-bg-color: var(--color-primary); --pagination-hover-bg-color: rgba(85, 85, 85, 0.15); --pagination-total-margin: 0 10px; --pagination-total-line-height: 24px; --pagination-item-width: 32px; --pagination-item-height: 32px; --pagination-item-margin: 0 6px; --pagination-item-background: #fff; --pagination-item-border-radius: 4px; --pagination-item-simple-border-radius: 50%; --pagination-input-width: 32px; --pagination-disabled-color: var(--color-text-disabled); --pagination-bg-disabled-color: var(--color-disabled); --pagination-size-line-height: 24px; --pagination-size-padding: 0 4px; --pagination-quick-jumper-margin: 0 10px;}.var-pagination-flex-nowrap { display: flex; white-space: nowrap; align-items: center;}.var-pagination { display: flex; align-items: center; list-style: none; margin: 0; font-size: var(--pagination-font-size); padding: 0; color: var(--pagination-text-color);}.var-pagination__item { display: inline-flex; min-width: var(--pagination-item-width); align-items: center; justify-content: center; margin: var(--pagination-item-margin); height: var(--pagination-item-height); cursor: pointer; border-radius: var(--pagination-item-border-radius); outline: none; transition: all 0.25s; user-select: none; background-color: var(--pagination-item-background);}.var-pagination__item:hover { background-color: var(--pagination-hover-bg-color);}.var-pagination__item--active { color: var(--pagination-active-color); background-color: var(--pagination-active-bg-color) !important;}.var-pagination__item--hide { display: none;}.var-pagination__item--simple { background: transparent; border-radius: var(--pagination-item-simple-border-radius);}.var-pagination__item--disabled { cursor: not-allowed !important; color: var(--pagination-disabled-color); background-color: unset; box-shadow: none !important;}.var-pagination__item--disabled:hover { background-color: unset;}.var-pagination__item--disabled--active { background-color: var(--pagination-bg-disabled-color);}.var-pagination__item--disabled--active:hover { background-color: var(--pagination-bg-disabled-color);}.var-pagination__prev { margin-left: 0;}.var-pagination__total { display: flex; white-space: nowrap; align-items: center; line-height: var(--pagination-total-line-height); margin: var(--pagination-total-margin);}.var-pagination__size { display: flex; white-space: nowrap; align-items: center; height: var(--pagination-item-height); line-height: var(--pagination-size-line-height); margin: var(--pagination-item-margin); padding: var(--pagination-size-padding); cursor: pointer;}.var-pagination__size--open { display: flex; align-items: center; cursor: pointer;}.var-pagination__size--open--disabled { cursor: inherit;}.var-pagination__quickly,.var-pagination__simple { display: flex; white-space: nowrap; align-items: center;}.var-pagination__quickly [var-pagination-cover],.var-pagination__simple [var-pagination-cover] { width: var(--pagination-input-width);}.var-pagination__quickly [var-pagination-cover] .var-field-decorator__middle,.var-pagination__simple [var-pagination-cover] .var-field-decorator__middle { padding: 0;}.var-pagination__quickly [var-pagination-cover] .var-input__input,.var-pagination__simple [var-pagination-cover] .var-input__input { height: auto; text-align: center; font-weight: normal; font-size: var(--pagination-font-size); padding-top: 1px;}.var-pagination__quickly-line,.var-pagination__simple-line { height: 1px; background: transparent;}.var-pagination__quickly { margin: var(--pagination-quick-jumper-margin);}.var-pagination__quickly [var-pagination-cover] { margin-left: 6px;}.var-pagination__size--open-icon[var-pagination-cover] { font-size: inherit;}
|
package/es/radio/Radio.mjs
CHANGED
|
@@ -12,7 +12,8 @@ import { props } from "./props.mjs";
|
|
|
12
12
|
import { useRadioGroup } from "./provide.mjs";
|
|
13
13
|
const { name, n, classes } = createNamespace("radio");
|
|
14
14
|
import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, createVNode as _createVNode, createCommentVNode as _createCommentVNode, normalizeStyle as _normalizeStyle, resolveDirective as _resolveDirective, openBlock as _openBlock, createElementBlock as _createElementBlock, withDirectives as _withDirectives, mergeProps as _mergeProps, createElementVNode as _createElementVNode } from "vue";
|
|
15
|
-
const _hoisted_1 = ["
|
|
15
|
+
const _hoisted_1 = ["aria-checked"];
|
|
16
|
+
const _hoisted_2 = ["tabindex"];
|
|
16
17
|
function __render__(_ctx, _cache) {
|
|
17
18
|
const _component_var_icon = _resolveComponent("var-icon");
|
|
18
19
|
const _component_var_hover_overlay = _resolveComponent("var-hover-overlay");
|
|
@@ -25,75 +26,71 @@ function __render__(_ctx, _cache) {
|
|
|
25
26
|
class: _normalizeClass(_ctx.n("wrap"))
|
|
26
27
|
},
|
|
27
28
|
[
|
|
28
|
-
_createElementVNode(
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
29
|
+
_createElementVNode("div", _mergeProps({
|
|
30
|
+
role: "radio",
|
|
31
|
+
"aria-checked": _ctx.checked,
|
|
32
|
+
class: _ctx.n()
|
|
33
|
+
}, _ctx.$attrs, {
|
|
34
|
+
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
35
|
+
}), [
|
|
36
|
+
_withDirectives((_openBlock(), _createElementBlock("div", {
|
|
37
|
+
ref: "action",
|
|
38
|
+
class: _normalizeClass(
|
|
39
|
+
_ctx.classes(
|
|
40
|
+
_ctx.n("action"),
|
|
41
|
+
[_ctx.checked, _ctx.n("--checked"), _ctx.n("--unchecked")],
|
|
42
|
+
[_ctx.errorMessage || _ctx.radioGroupErrorMessage, _ctx.n("--error")],
|
|
43
|
+
[_ctx.formDisabled || _ctx.disabled, _ctx.n("--disabled")]
|
|
44
|
+
)
|
|
45
|
+
),
|
|
46
|
+
tabindex: _ctx.tabIndex,
|
|
47
|
+
style: _normalizeStyle({ color: _ctx.checked ? _ctx.checkedColor : _ctx.uncheckedColor }),
|
|
48
|
+
onFocus: _cache[0] || (_cache[0] = ($event) => _ctx.isFocusing = true),
|
|
49
|
+
onBlur: _cache[1] || (_cache[1] = ($event) => _ctx.isFocusing = false)
|
|
50
|
+
}, [
|
|
51
|
+
_ctx.checked ? _renderSlot(_ctx.$slots, "checked-icon", { key: 0 }, () => [
|
|
52
|
+
_createVNode(_component_var_icon, {
|
|
53
|
+
class: _normalizeClass(_ctx.n("icon")),
|
|
54
|
+
"var-radio-cover": "",
|
|
55
|
+
name: "radio-marked",
|
|
56
|
+
size: _ctx.iconSize
|
|
57
|
+
}, null, 8, ["class", "size"])
|
|
58
|
+
]) : _renderSlot(_ctx.$slots, "unchecked-icon", { key: 1 }, () => [
|
|
59
|
+
_createVNode(_component_var_icon, {
|
|
60
|
+
class: _normalizeClass(_ctx.n("icon")),
|
|
61
|
+
"var-radio-cover": "",
|
|
62
|
+
name: "radio-blank",
|
|
63
|
+
size: _ctx.iconSize
|
|
64
|
+
}, null, 8, ["class", "size"])
|
|
65
|
+
]),
|
|
66
|
+
_createVNode(_component_var_hover_overlay, {
|
|
67
|
+
hovering: !_ctx.disabled && !_ctx.formDisabled && _ctx.hovering,
|
|
68
|
+
focusing: !_ctx.disabled && !_ctx.formDisabled && _ctx.isFocusing
|
|
69
|
+
}, null, 8, ["hovering", "focusing"])
|
|
70
|
+
], 46, _hoisted_2)), [
|
|
71
|
+
[_directive_ripple, { disabled: _ctx.formReadonly || _ctx.readonly || _ctx.formDisabled || _ctx.disabled || !_ctx.ripple }],
|
|
72
|
+
[_directive_hover, _ctx.handleHovering, "desktop"]
|
|
73
|
+
]),
|
|
74
|
+
_ctx.$slots.default ? (_openBlock(), _createElementBlock(
|
|
75
|
+
"div",
|
|
76
|
+
{
|
|
77
|
+
key: 0,
|
|
38
78
|
class: _normalizeClass(
|
|
39
79
|
_ctx.classes(
|
|
40
|
-
_ctx.n("
|
|
41
|
-
[_ctx.checked, _ctx.n("--checked"), _ctx.n("--unchecked")],
|
|
80
|
+
_ctx.n("text"),
|
|
42
81
|
[_ctx.errorMessage || _ctx.radioGroupErrorMessage, _ctx.n("--error")],
|
|
43
82
|
[_ctx.formDisabled || _ctx.disabled, _ctx.n("--disabled")]
|
|
44
83
|
)
|
|
45
84
|
),
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
name: "radio-marked",
|
|
56
|
-
size: _ctx.iconSize
|
|
57
|
-
}, null, 8, ["class", "size"])
|
|
58
|
-
]) : _renderSlot(_ctx.$slots, "unchecked-icon", { key: 1 }, () => [
|
|
59
|
-
_createVNode(_component_var_icon, {
|
|
60
|
-
class: _normalizeClass(_ctx.n("icon")),
|
|
61
|
-
"var-radio-cover": "",
|
|
62
|
-
name: "radio-blank",
|
|
63
|
-
size: _ctx.iconSize
|
|
64
|
-
}, null, 8, ["class", "size"])
|
|
65
|
-
]),
|
|
66
|
-
_createVNode(_component_var_hover_overlay, {
|
|
67
|
-
hovering: !_ctx.disabled && !_ctx.formDisabled && _ctx.hovering,
|
|
68
|
-
focusing: !_ctx.disabled && !_ctx.formDisabled && _ctx.isFocusing
|
|
69
|
-
}, null, 8, ["hovering", "focusing"])
|
|
70
|
-
], 46, _hoisted_1)), [
|
|
71
|
-
[_directive_ripple, { disabled: _ctx.formReadonly || _ctx.readonly || _ctx.formDisabled || _ctx.disabled || !_ctx.ripple }],
|
|
72
|
-
[_directive_hover, _ctx.handleHovering, "desktop"]
|
|
73
|
-
]),
|
|
74
|
-
_ctx.$slots.default ? (_openBlock(), _createElementBlock(
|
|
75
|
-
"div",
|
|
76
|
-
{
|
|
77
|
-
key: 0,
|
|
78
|
-
class: _normalizeClass(
|
|
79
|
-
_ctx.classes(
|
|
80
|
-
_ctx.n("text"),
|
|
81
|
-
[_ctx.errorMessage || _ctx.radioGroupErrorMessage, _ctx.n("--error")],
|
|
82
|
-
[_ctx.formDisabled || _ctx.disabled, _ctx.n("--disabled")]
|
|
83
|
-
)
|
|
84
|
-
),
|
|
85
|
-
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleTextClick && _ctx.handleTextClick(...args))
|
|
86
|
-
},
|
|
87
|
-
[
|
|
88
|
-
_renderSlot(_ctx.$slots, "default", { checked: _ctx.checked })
|
|
89
|
-
],
|
|
90
|
-
2
|
|
91
|
-
/* CLASS */
|
|
92
|
-
)) : _createCommentVNode("v-if", true)
|
|
93
|
-
],
|
|
94
|
-
16
|
|
95
|
-
/* FULL_PROPS */
|
|
96
|
-
),
|
|
85
|
+
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleTextClick && _ctx.handleTextClick(...args))
|
|
86
|
+
},
|
|
87
|
+
[
|
|
88
|
+
_renderSlot(_ctx.$slots, "default", { checked: _ctx.checked })
|
|
89
|
+
],
|
|
90
|
+
2
|
|
91
|
+
/* CLASS */
|
|
92
|
+
)) : _createCommentVNode("v-if", true)
|
|
93
|
+
], 16, _hoisted_1),
|
|
97
94
|
_createVNode(_component_var_form_details, { "error-message": _ctx.errorMessage }, null, 8, ["error-message"])
|
|
98
95
|
],
|
|
99
96
|
2
|
|
@@ -118,6 +115,9 @@ const __sfc__ = defineComponent({
|
|
|
118
115
|
const { radioGroup, bindRadioGroup } = useRadioGroup();
|
|
119
116
|
const { hovering, handleHovering } = useHoverOverlay();
|
|
120
117
|
const { form, bindForm } = useForm();
|
|
118
|
+
const tabIndex = computed(
|
|
119
|
+
() => (form == null ? void 0 : form.disabled.value) || props2.disabled || checked.value && radioGroup ? void 0 : "0"
|
|
120
|
+
);
|
|
121
121
|
const {
|
|
122
122
|
errorMessage,
|
|
123
123
|
validateWithTrigger: vt,
|
|
@@ -223,6 +223,7 @@ const __sfc__ = defineComponent({
|
|
|
223
223
|
formDisabled: form == null ? void 0 : form.disabled,
|
|
224
224
|
formReadonly: form == null ? void 0 : form.readonly,
|
|
225
225
|
hovering,
|
|
226
|
+
tabIndex,
|
|
226
227
|
handleHovering,
|
|
227
228
|
n,
|
|
228
229
|
classes,
|
|
@@ -9,6 +9,7 @@ import { props } from "./props.mjs";
|
|
|
9
9
|
import { useRadios } from "./provide.mjs";
|
|
10
10
|
const { name, n, classes } = createNamespace("radio-group");
|
|
11
11
|
import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode } from "vue";
|
|
12
|
+
const _hoisted_1 = ["aria-label"];
|
|
12
13
|
function __render__(_ctx, _cache) {
|
|
13
14
|
const _component_maybe_v_node = _resolveComponent("maybe-v-node");
|
|
14
15
|
const _component_var_radio = _resolveComponent("var-radio");
|
|
@@ -19,38 +20,34 @@ function __render__(_ctx, _cache) {
|
|
|
19
20
|
class: _normalizeClass(_ctx.n("wrap"))
|
|
20
21
|
},
|
|
21
22
|
[
|
|
22
|
-
_createElementVNode(
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
],
|
|
51
|
-
2
|
|
52
|
-
/* CLASS */
|
|
53
|
-
),
|
|
23
|
+
_createElementVNode("div", {
|
|
24
|
+
"aria-label": _ctx.ariaLabel,
|
|
25
|
+
role: "radiogroup",
|
|
26
|
+
class: _normalizeClass(_ctx.classes(_ctx.n(), _ctx.n(`--${_ctx.direction}`)))
|
|
27
|
+
}, [
|
|
28
|
+
_ctx.options.length ? (_openBlock(true), _createElementBlock(
|
|
29
|
+
_Fragment,
|
|
30
|
+
{ key: 0 },
|
|
31
|
+
_renderList(_ctx.options, (option) => {
|
|
32
|
+
return _openBlock(), _createBlock(_component_var_radio, {
|
|
33
|
+
key: option[_ctx.valueKey],
|
|
34
|
+
"checked-value": option[_ctx.valueKey],
|
|
35
|
+
disabled: option.disabled
|
|
36
|
+
}, {
|
|
37
|
+
default: _withCtx(({ checked }) => [
|
|
38
|
+
_createVNode(_component_maybe_v_node, {
|
|
39
|
+
is: _ctx.isFunction(option[_ctx.labelKey]) ? option[_ctx.labelKey](option, checked) : option[_ctx.labelKey]
|
|
40
|
+
}, null, 8, ["is"])
|
|
41
|
+
]),
|
|
42
|
+
_: 2
|
|
43
|
+
/* DYNAMIC */
|
|
44
|
+
}, 1032, ["checked-value", "disabled"]);
|
|
45
|
+
}),
|
|
46
|
+
128
|
|
47
|
+
/* KEYED_FRAGMENT */
|
|
48
|
+
)) : _createCommentVNode("v-if", true),
|
|
49
|
+
_renderSlot(_ctx.$slots, "default")
|
|
50
|
+
], 10, _hoisted_1),
|
|
54
51
|
_createVNode(_component_var_form_details, { "error-message": _ctx.errorMessage }, null, 8, ["error-message"])
|
|
55
52
|
],
|
|
56
53
|
2
|
package/es/radio-group/props.mjs
CHANGED
package/es/select/select.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root { --select-scroller-background: var(--color-surface-container-high); --select-scroller-padding: 6px 0; --select-scroller-max-height: 278px; --select-scroller-border-radius: 2px; --select-chip-margin: 5px 5px 0; --select-arrow-size: 20px; --select-standard-menu-margin: calc(var(--field-decorator-placeholder-size) * 0.75 + 12px) 0 0 0; --select-label-font-size: 16px;}.var-select { text-align: left; outline: none;}.var-select__menu[var-select-cover] { width: 100%; background: transparent; display: block;}.var-select__chip[var-select-cover] { margin: var(--select-chip-margin);}.var-select__scroller { max-height: var(--select-scroller-max-height); background: var(--select-scroller-background); padding: var(--select-scroller-padding); overflow-y: auto; transition: background-color 0.25s; border-radius: var(--select-scroller-border-radius);}.var-select__wrap { position: relative; display: flex; flex-direction: column; width: 100%;}.var-select__select { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 24px; outline: none; border: none; font-size: inherit; color: var(--field-decorator-text-color); word-break: break-all; overflow: hidden; transition: color 0.25s;}.var-select__label { display: flex; align-items: center; font-size: var(--select-label-font-size);}.var-select__placeholder { max-width: 100%; position: absolute; top: 50%; left: 0; transform: translateY(-50%); font-size: var(--field-decorator-placeholder-size); line-height: 1.5em; color: var(--field-decorator-blur-color); pointer-events: none; cursor: inherit;}.var-select__arrow[var-select-cover] { flex-shrink: 0; font-size: var(--select-arrow-size);}.var-select--standard-menu-margin { margin: var(--select-standard-menu-margin) !important;}.var-select--disabled { color: var(--field-decorator-disabled-color); cursor: not-allowed;}.var-select--error { color: var(--field-decorator-error-color);}.var-select--arrow-rotate { transform: rotate(180deg);}
|
|
1
|
+
:root { --select-scroller-background: var(--color-surface-container-high); --select-scroller-padding: 6px 0; --select-scroller-max-height: 278px; --select-scroller-border-radius: 2px; --select-chips-margin: -5px 0 0 0; --select-chips-padding: 2px 0; --select-chip-margin: 5px 5px 0 0; --select-arrow-size: 20px; --select-standard-menu-margin: calc(var(--field-decorator-placeholder-size) * 0.75 + 12px) 0 0 0; --select-label-font-size: 16px;}.var-select { text-align: left; outline: none;}.var-select__menu[var-select-cover] { width: 100%; background: transparent; display: block;}.var-select__chip[var-select-cover] { margin: var(--select-chip-margin);}.var-select__chips { padding: var(--select-chips-padding); margin: var(--select-chips-margin);}.var-select__scroller { max-height: var(--select-scroller-max-height); background: var(--select-scroller-background); padding: var(--select-scroller-padding); overflow-y: auto; transition: background-color 0.25s; border-radius: var(--select-scroller-border-radius);}.var-select__wrap { position: relative; display: flex; flex-direction: column; width: 100%;}.var-select__select { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 24px; outline: none; border: none; font-size: inherit; color: var(--field-decorator-text-color); word-break: break-all; overflow: hidden; transition: color 0.25s;}.var-select__label { display: flex; align-items: center; font-size: var(--select-label-font-size);}.var-select__placeholder { max-width: 100%; position: absolute; top: 50%; left: 0; transform: translateY(-50%); font-size: var(--field-decorator-placeholder-size); line-height: 1.5em; color: var(--field-decorator-blur-color); pointer-events: none; cursor: inherit;}.var-select__arrow[var-select-cover] { flex-shrink: 0; font-size: var(--select-arrow-size);}.var-select--standard-menu-margin { margin: var(--select-standard-menu-margin) !important;}.var-select--disabled { color: var(--field-decorator-disabled-color); cursor: not-allowed;}.var-select--error { color: var(--field-decorator-error-color);}.var-select--arrow-rotate { transform: rotate(180deg);}
|
|
@@ -5,7 +5,7 @@ var stdin_default = {
|
|
|
5
5
|
"--pagination-font-size": "var(--font-size-md)",
|
|
6
6
|
"--pagination-active-color": "var(--color-on-primary)",
|
|
7
7
|
"--pagination-active-bg-color": "var(--color-primary)",
|
|
8
|
-
"--pagination-total-margin": "0
|
|
8
|
+
"--pagination-total-margin": "0 10px",
|
|
9
9
|
"--pagination-total-line-height": "24px",
|
|
10
10
|
"--pagination-item-width": "32px",
|
|
11
11
|
"--pagination-item-height": "32px",
|
|
@@ -16,7 +16,8 @@ var stdin_default = {
|
|
|
16
16
|
"--pagination-disabled-color": "var(--color-text-disabled)",
|
|
17
17
|
"--pagination-bg-disabled-color": "var(--color-disabled)",
|
|
18
18
|
"--pagination-size-line-height": "24px",
|
|
19
|
-
"--pagination-size-padding": "0
|
|
19
|
+
"--pagination-size-padding": "0 4px",
|
|
20
|
+
"--pagination-quick-jumper-margin": "0 10px"
|
|
20
21
|
};
|
|
21
22
|
export {
|
|
22
23
|
stdin_default as default
|
|
@@ -3,7 +3,9 @@ var stdin_default = {
|
|
|
3
3
|
"--select-scroller-padding": "6px 0",
|
|
4
4
|
"--select-scroller-max-height": "278px",
|
|
5
5
|
"--select-scroller-border-radius": "2px",
|
|
6
|
-
"--select-
|
|
6
|
+
"--select-chips-margin": "-5px 0 0 0",
|
|
7
|
+
"--select-chips-padding": "2px 0",
|
|
8
|
+
"--select-chip-margin": "5px 5px 0 0",
|
|
7
9
|
"--select-arrow-size": "20px",
|
|
8
10
|
"--select-standard-menu-margin": `calc(var(--field-decorator-placeholder-size) * 0.75 + 12px) 0 0 0`,
|
|
9
11
|
"--select-label-font-size": "16px"
|
|
@@ -5,7 +5,7 @@ var stdin_default = {
|
|
|
5
5
|
"--pagination-active-color": "var(--color-on-primary)",
|
|
6
6
|
"--pagination-active-bg-color": "var(--color-primary)",
|
|
7
7
|
"--pagination-hover-bg-color": "rgba(85, 85, 85, 0.15)",
|
|
8
|
-
"--pagination-total-margin": "0
|
|
8
|
+
"--pagination-total-margin": "0 10px",
|
|
9
9
|
"--pagination-total-line-height": "24px",
|
|
10
10
|
"--pagination-item-width": "32px",
|
|
11
11
|
"--pagination-item-height": "32px",
|
|
@@ -16,7 +16,8 @@ var stdin_default = {
|
|
|
16
16
|
"--pagination-disabled-color": "var(--color-text-disabled)",
|
|
17
17
|
"--pagination-bg-disabled-color": "var(--color-disabled)",
|
|
18
18
|
"--pagination-size-line-height": "24px",
|
|
19
|
-
"--pagination-size-padding": "0
|
|
19
|
+
"--pagination-size-padding": "0 4px",
|
|
20
|
+
"--pagination-quick-jumper-margin": "0 10px"
|
|
20
21
|
};
|
|
21
22
|
export {
|
|
22
23
|
stdin_default as default
|
|
@@ -3,7 +3,9 @@ var stdin_default = {
|
|
|
3
3
|
"--select-scroller-border-radius": "4px",
|
|
4
4
|
"--select-scroller-padding": "6px 0",
|
|
5
5
|
"--select-scroller-max-height": "278px",
|
|
6
|
-
"--select-
|
|
6
|
+
"--select-chips-margin": "-5px 0 0 0",
|
|
7
|
+
"--select-chips-padding": "2px 0",
|
|
8
|
+
"--select-chip-margin": "5px 5px 0 0",
|
|
7
9
|
"--select-arrow-size": "20px",
|
|
8
10
|
"--select-standard-menu-margin": `calc(var(--field-decorator-placeholder-size) * 0.75 + 12px) 0 0 0`,
|
|
9
11
|
"--select-label-font-size": "16px"
|
|
@@ -4,7 +4,7 @@ var stdin_default = {
|
|
|
4
4
|
"--pagination-active-color": "var(--color-on-primary)",
|
|
5
5
|
"--pagination-active-bg-color": "var(--color-primary)",
|
|
6
6
|
"--pagination-hover-bg-color": "rgba(85, 85, 85, 0.15)",
|
|
7
|
-
"--pagination-total-margin": "0
|
|
7
|
+
"--pagination-total-margin": "0 10px",
|
|
8
8
|
"--pagination-total-line-height": "24px",
|
|
9
9
|
"--pagination-item-width": "32px",
|
|
10
10
|
"--pagination-item-height": "32px",
|
|
@@ -16,7 +16,8 @@ var stdin_default = {
|
|
|
16
16
|
"--pagination-disabled-color": "var(--color-text-disabled)",
|
|
17
17
|
"--pagination-bg-disabled-color": "var(--color-disabled)",
|
|
18
18
|
"--pagination-size-line-height": "24px",
|
|
19
|
-
"--pagination-size-padding": "0
|
|
19
|
+
"--pagination-size-padding": "0 4px",
|
|
20
|
+
"--pagination-quick-jumper-margin": "0 10px"
|
|
20
21
|
};
|
|
21
22
|
export {
|
|
22
23
|
stdin_default as default
|
|
@@ -3,7 +3,9 @@ var stdin_default = {
|
|
|
3
3
|
"--select-scroller-border-radius": "4px",
|
|
4
4
|
"--select-scroller-padding": "6px 0",
|
|
5
5
|
"--select-scroller-max-height": "278px",
|
|
6
|
-
"--select-
|
|
6
|
+
"--select-chips-margin": "-5px 0 0 0",
|
|
7
|
+
"--select-chips-padding": "2px 0",
|
|
8
|
+
"--select-chip-margin": "5px 5px 0 0",
|
|
7
9
|
"--select-arrow-size": "20px",
|
|
8
10
|
"--select-standard-menu-margin": `calc(var(--field-decorator-placeholder-size) * 0.75 + 12px) 0 0 0`,
|
|
9
11
|
"--select-label-font-size": "16px"
|