@varlet/ui 3.12.0 → 3.12.2
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/auto-complete/AutoComplete.mjs +3 -2
- package/es/auto-complete/props.mjs +1 -0
- package/es/checkbox/Checkbox.mjs +1 -1
- package/es/checkbox/props.mjs +1 -0
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/input/Input.mjs +4 -2
- package/es/input/props.mjs +1 -0
- package/es/radio/Radio.mjs +3 -0
- package/es/radio/props.mjs +1 -0
- package/es/select/Select.mjs +1 -1
- package/es/select/props.mjs +1 -0
- package/es/switch/Switch.mjs +1 -1
- package/es/switch/props.mjs +1 -0
- package/es/varlet.esm.js +18 -7
- package/highlight/web-types.en-US.json +55 -1
- package/highlight/web-types.zh-CN.json +55 -1
- package/lib/varlet.cjs.js +20 -8
- package/package.json +7 -7
- package/types/autoComplete.d.ts +1 -0
- package/types/checkbox.d.ts +2 -1
- package/types/input.d.ts +1 -0
- package/types/radio.d.ts +2 -1
- package/types/select.d.ts +2 -1
- package/types/switch.d.ts +2 -0
- package/umd/varlet.js +4 -4
package/lib/varlet.cjs.js
CHANGED
|
@@ -4733,6 +4733,7 @@ const props$1e = __spreadProps$a(__spreadValues$s({
|
|
|
4733
4733
|
default: true
|
|
4734
4734
|
},
|
|
4735
4735
|
inputmode: String,
|
|
4736
|
+
tabindex: String,
|
|
4736
4737
|
onFocus: defineListenerProp(),
|
|
4737
4738
|
onBlur: defineListenerProp(),
|
|
4738
4739
|
onInput: defineListenerProp(),
|
|
@@ -4770,8 +4771,8 @@ const props$1e = __spreadProps$a(__spreadValues$s({
|
|
|
4770
4771
|
});
|
|
4771
4772
|
const { name: name$1g, n: n$1n, classes: classes$14 } = createNamespace("input");
|
|
4772
4773
|
const _hoisted_1$A = ["aria-label", "placeholder", "enterkeyhint"];
|
|
4773
|
-
const _hoisted_2$8 = ["id", "aria-label", "autocomplete", "disabled", "readonly", "type", "value", "placeholder", "maxlength", "rows", "enterkeyhint", "inputmode"];
|
|
4774
|
-
const _hoisted_3$4 = ["id", "aria-label", "autocomplete", "disabled", "readonly", "type", "value", "placeholder", "maxlength", "enterkeyhint", "inputmode"];
|
|
4774
|
+
const _hoisted_2$8 = ["id", "aria-label", "autocomplete", "disabled", "readonly", "type", "value", "placeholder", "maxlength", "rows", "enterkeyhint", "inputmode", "tabindex"];
|
|
4775
|
+
const _hoisted_3$4 = ["id", "aria-label", "autocomplete", "disabled", "readonly", "type", "value", "placeholder", "maxlength", "enterkeyhint", "tabindex", "inputmode"];
|
|
4775
4776
|
function __render__$1l(_ctx, _cache) {
|
|
4776
4777
|
const _component_var_field_decorator = vue.resolveComponent("var-field-decorator");
|
|
4777
4778
|
const _component_var_form_details = vue.resolveComponent("var-form-details");
|
|
@@ -4850,6 +4851,7 @@ function __render__$1l(_ctx, _cache) {
|
|
|
4850
4851
|
rows: _ctx.rows,
|
|
4851
4852
|
enterkeyhint: _ctx.enterkeyhint,
|
|
4852
4853
|
inputmode: _ctx.inputmode != null ? _ctx.inputmode : _ctx.type === "number" ? "decimal" : void 0,
|
|
4854
|
+
tabindex: _ctx.tabindex,
|
|
4853
4855
|
style: vue.normalizeStyle({
|
|
4854
4856
|
color: !_ctx.errorMessage ? _ctx.textColor : void 0,
|
|
4855
4857
|
caretColor: !_ctx.errorMessage ? _ctx.focusColor : void 0,
|
|
@@ -4883,6 +4885,7 @@ function __render__$1l(_ctx, _cache) {
|
|
|
4883
4885
|
placeholder: !_ctx.hint ? _ctx.placeholder : void 0,
|
|
4884
4886
|
maxlength: _ctx.maxlength,
|
|
4885
4887
|
enterkeyhint: _ctx.enterkeyhint,
|
|
4888
|
+
tabindex: _ctx.tabindex,
|
|
4886
4889
|
inputmode: _ctx.inputmode != null ? _ctx.inputmode : _ctx.type === "number" ? "decimal" : void 0,
|
|
4887
4890
|
style: vue.normalizeStyle({
|
|
4888
4891
|
color: !_ctx.errorMessage ? _ctx.textColor : void 0,
|
|
@@ -5164,6 +5167,7 @@ const props$1d = {
|
|
|
5164
5167
|
disabled: Boolean,
|
|
5165
5168
|
readonly: Boolean,
|
|
5166
5169
|
indeterminate: Boolean,
|
|
5170
|
+
tabindex: String,
|
|
5167
5171
|
iconSize: [String, Number],
|
|
5168
5172
|
ripple: {
|
|
5169
5173
|
type: Boolean,
|
|
@@ -5220,7 +5224,7 @@ function __render__$1k(_ctx, _cache) {
|
|
|
5220
5224
|
"aria-checked": _ctx.isIndeterminate ? "mixed" : _ctx.checked,
|
|
5221
5225
|
"aria-disabled": _ctx.formDisabled || _ctx.disabled,
|
|
5222
5226
|
class: vue.normalizeClass(_ctx.n()),
|
|
5223
|
-
tabindex: _ctx.disabled || _ctx.formDisabled ? void 0 : "0",
|
|
5227
|
+
tabindex: _ctx.tabindex == null ? _ctx.disabled || _ctx.formDisabled ? void 0 : "0" : _ctx.tabindex,
|
|
5224
5228
|
onFocus: _cache[1] || (_cache[1] = ($event) => _ctx.isFocusing = true),
|
|
5225
5229
|
onBlur: _cache[2] || (_cache[2] = ($event) => _ctx.isFocusing = false),
|
|
5226
5230
|
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
@@ -8315,6 +8319,7 @@ const props$19 = __spreadValues$n({
|
|
|
8315
8319
|
"variant",
|
|
8316
8320
|
"placeholder",
|
|
8317
8321
|
"enterkeyhint",
|
|
8322
|
+
"tabindex",
|
|
8318
8323
|
"line",
|
|
8319
8324
|
"hint",
|
|
8320
8325
|
"textColor",
|
|
@@ -8352,7 +8357,7 @@ function __render__$1f(_ctx, _cache) {
|
|
|
8352
8357
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
8353
8358
|
ref: "root",
|
|
8354
8359
|
class: vue.normalizeClass(_ctx.n()),
|
|
8355
|
-
tabindex: _ctx.disabled || _ctx.formDisabled ? void 0 : "0",
|
|
8360
|
+
tabindex: _ctx.tabindex == null ? _ctx.disabled || _ctx.formDisabled ? void 0 : "0" : _ctx.tabindex,
|
|
8356
8361
|
onFocusin: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args)),
|
|
8357
8362
|
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
8358
8363
|
}, [
|
|
@@ -8419,6 +8424,7 @@ function __render__$1f(_ctx, _cache) {
|
|
|
8419
8424
|
"is-force-focusing-effect": _ctx.isFocusing,
|
|
8420
8425
|
"is-force-error-effect": !!_ctx.errorMessage,
|
|
8421
8426
|
"is-show-form-details": false,
|
|
8427
|
+
tabindex: _ctx.tabindex,
|
|
8422
8428
|
onInput: _ctx.handleInput,
|
|
8423
8429
|
onBlur: _ctx.handleBlur,
|
|
8424
8430
|
onClear: _ctx.handleClear,
|
|
@@ -8455,7 +8461,7 @@ function __render__$1f(_ctx, _cache) {
|
|
|
8455
8461
|
]),
|
|
8456
8462
|
key: "3"
|
|
8457
8463
|
} : void 0
|
|
8458
|
-
]), 1040, ["modelValue", "is-force-focusing-effect", "is-force-error-effect", "onInput", "onBlur", "onClear", "onChange"])
|
|
8464
|
+
]), 1040, ["modelValue", "is-force-focusing-effect", "is-force-error-effect", "tabindex", "onInput", "onBlur", "onClear", "onChange"])
|
|
8459
8465
|
]),
|
|
8460
8466
|
_: 3
|
|
8461
8467
|
/* FORWARDED */
|
|
@@ -22766,6 +22772,7 @@ const props$m = {
|
|
|
22766
22772
|
readonly: Boolean,
|
|
22767
22773
|
checkedColor: String,
|
|
22768
22774
|
uncheckedColor: String,
|
|
22775
|
+
tabindex: String,
|
|
22769
22776
|
iconSize: [String, Number],
|
|
22770
22777
|
ripple: {
|
|
22771
22778
|
type: Boolean,
|
|
@@ -22913,6 +22920,9 @@ const __sfc__$t = vue.defineComponent({
|
|
|
22913
22920
|
const disabled = (form == null ? void 0 : form.disabled.value) || props2.disabled;
|
|
22914
22921
|
const isChecked = checked.value;
|
|
22915
22922
|
const hasCheckedInRadioGroup = radioGroup == null ? void 0 : radioGroup.hasChecked.value;
|
|
22923
|
+
if (props2.tabindex != null) {
|
|
22924
|
+
return props2.tabindex;
|
|
22925
|
+
}
|
|
22916
22926
|
if (disabled) {
|
|
22917
22927
|
return;
|
|
22918
22928
|
}
|
|
@@ -23898,6 +23908,7 @@ const props$h = __spreadValues$6({
|
|
|
23898
23908
|
default: () => ["onChange", "onClear", "onClose"]
|
|
23899
23909
|
},
|
|
23900
23910
|
rules: [Array, Function, Object],
|
|
23911
|
+
tabindex: String,
|
|
23901
23912
|
onFocus: defineListenerProp(),
|
|
23902
23913
|
onBlur: defineListenerProp(),
|
|
23903
23914
|
onClose: defineListenerProp(),
|
|
@@ -23930,7 +23941,7 @@ function __render__$h(_ctx, _cache) {
|
|
|
23930
23941
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
23931
23942
|
ref: "root",
|
|
23932
23943
|
class: vue.normalizeClass(_ctx.n()),
|
|
23933
|
-
tabindex: _ctx.disabled || _ctx.formDisabled ? void 0 : "0",
|
|
23944
|
+
tabindex: _ctx.tabindex == null ? _ctx.disabled || _ctx.formDisabled ? void 0 : "0" : _ctx.tabindex,
|
|
23934
23945
|
onFocus: _cache[3] || (_cache[3] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),
|
|
23935
23946
|
onBlur: _cache[4] || (_cache[4] = (...args) => _ctx.handleRootBlur && _ctx.handleRootBlur(...args))
|
|
23936
23947
|
}, [
|
|
@@ -26271,6 +26282,7 @@ const props$8 = {
|
|
|
26271
26282
|
size: [String, Number],
|
|
26272
26283
|
variant: Boolean,
|
|
26273
26284
|
rules: [Array, Function, Object],
|
|
26285
|
+
tabindex: String,
|
|
26274
26286
|
ripple: {
|
|
26275
26287
|
type: Boolean,
|
|
26276
26288
|
default: true
|
|
@@ -26323,7 +26335,7 @@ function __render__$9(_ctx, _cache) {
|
|
|
26323
26335
|
vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
26324
26336
|
class: vue.normalizeClass(_ctx.classes(_ctx.n("ripple"), [_ctx.isActive, _ctx.n("ripple--active")])),
|
|
26325
26337
|
style: vue.normalizeStyle(_ctx.styleComputed.ripple),
|
|
26326
|
-
tabindex: _ctx.disabled || _ctx.formDisabled ? void 0 : "0",
|
|
26338
|
+
tabindex: _ctx.tabindex == null ? _ctx.disabled || _ctx.formDisabled ? void 0 : "0" : _ctx.tabindex,
|
|
26327
26339
|
onFocus: _cache[0] || (_cache[0] = ($event) => _ctx.isFocusing = true),
|
|
26328
26340
|
onBlur: _cache[1] || (_cache[1] = ($event) => _ctx.isFocusing = false)
|
|
26329
26341
|
}, [
|
|
@@ -32048,7 +32060,7 @@ withInstall(stdin_default$1);
|
|
|
32048
32060
|
withPropsDefaultsSetter(stdin_default$1, props);
|
|
32049
32061
|
const _WatermarkComponent = stdin_default$1;
|
|
32050
32062
|
var stdin_default = stdin_default$1;
|
|
32051
|
-
const version = "3.12.
|
|
32063
|
+
const version = "3.12.2";
|
|
32052
32064
|
function install(app) {
|
|
32053
32065
|
stdin_default$60.install && app.use(stdin_default$60);
|
|
32054
32066
|
stdin_default$5_.install && app.use(stdin_default$5_);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "3.12.
|
|
3
|
+
"version": "3.12.2",
|
|
4
4
|
"description": "A Vue3 component library based on Material Design 2 and 3, supporting mobile and desktop.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Vue3",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"@popperjs/core": "^2.11.6",
|
|
45
45
|
"dayjs": "^1.10.4",
|
|
46
46
|
"decimal.js": "^10.2.1",
|
|
47
|
-
"@varlet/icons": "3.12.
|
|
48
|
-
"@varlet/shared": "3.12.
|
|
49
|
-
"@varlet/use": "3.12.
|
|
47
|
+
"@varlet/icons": "3.12.2",
|
|
48
|
+
"@varlet/shared": "3.12.2",
|
|
49
|
+
"@varlet/use": "3.12.2"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/node": "^18.7.20",
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"vue": "3.5.21",
|
|
63
63
|
"vue-router": "4.5.1",
|
|
64
64
|
"zod": "^3.23.8",
|
|
65
|
-
"@varlet/
|
|
66
|
-
"@varlet/ui": "3.12.
|
|
67
|
-
"@varlet/
|
|
65
|
+
"@varlet/cli": "3.12.2",
|
|
66
|
+
"@varlet/ui": "3.12.2",
|
|
67
|
+
"@varlet/touch-emulator": "3.12.2"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"vue": "^3.2.0"
|
package/types/autoComplete.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export interface AutoCompleteProps extends BasicAttributes {
|
|
|
47
47
|
getShow?: (v: string) => boolean
|
|
48
48
|
rules?: AutoCompleteRules
|
|
49
49
|
enterkeyhint?: InputHTMLAttributes['enterKeyHint']
|
|
50
|
+
tabindex?: InputHTMLAttributes['tabindex']
|
|
50
51
|
onFocus?: ListenerProp<() => void>
|
|
51
52
|
onBlur?: ListenerProp<() => void>
|
|
52
53
|
onClick?: ListenerProp<(e: Event) => void>
|
package/types/checkbox.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VNode } from 'vue'
|
|
1
|
+
import { InputHTMLAttributes, VNode } from 'vue'
|
|
2
2
|
import { BasicAttributes, Rules as CheckboxRules, ListenerProp, SetPropsDefaults, VarComponent } from './varComponent'
|
|
3
3
|
|
|
4
4
|
export declare const checkboxProps: Record<keyof CheckboxProps, any>
|
|
@@ -18,6 +18,7 @@ export interface CheckboxProps extends BasicAttributes {
|
|
|
18
18
|
ripple?: boolean
|
|
19
19
|
validateTrigger?: Array<CheckboxValidateTrigger>
|
|
20
20
|
rules?: CheckboxRules
|
|
21
|
+
tabindex?: InputHTMLAttributes['tabindex']
|
|
21
22
|
onClick?: ListenerProp<(e: Event) => void>
|
|
22
23
|
onChange?: ListenerProp<(value: any, indeterminate: boolean) => void>
|
|
23
24
|
'onUpdate:modelValue'?: ListenerProp<(value: any) => void>
|
package/types/input.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export interface InputProps extends BasicAttributes {
|
|
|
38
38
|
autofocus?: boolean
|
|
39
39
|
preventAutoFill?: boolean
|
|
40
40
|
inputmode?: InputHTMLAttributes['inputmode']
|
|
41
|
+
tabindex?: InputHTMLAttributes['tabindex']
|
|
41
42
|
validateTrigger?: InputValidateTrigger[]
|
|
42
43
|
rules?: InputRules
|
|
43
44
|
enterkeyhint?: InputHTMLAttributes['enterKeyHint']
|
package/types/radio.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VNode } from 'vue'
|
|
1
|
+
import { InputHTMLAttributes, VNode } from 'vue'
|
|
2
2
|
import { BasicAttributes, ListenerProp, Rules as RadioRules, SetPropsDefaults, VarComponent } from './varComponent'
|
|
3
3
|
|
|
4
4
|
export declare const radioProps: Record<keyof RadioProps, any>
|
|
@@ -16,6 +16,7 @@ export interface RadioProps extends BasicAttributes {
|
|
|
16
16
|
iconSize?: string | number
|
|
17
17
|
ripple?: boolean
|
|
18
18
|
validateTrigger?: Array<RadioValidateTrigger>
|
|
19
|
+
tabindex?: InputHTMLAttributes['tabindex']
|
|
19
20
|
rules?: RadioRules
|
|
20
21
|
onClick?: ListenerProp<(e: Event) => void>
|
|
21
22
|
onChange?: ListenerProp<(value: any) => void>
|
package/types/select.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VNode } from 'vue'
|
|
1
|
+
import { SelectHTMLAttributes, VNode } from 'vue'
|
|
2
2
|
import {
|
|
3
3
|
BasicAttributes,
|
|
4
4
|
ListenerProp,
|
|
@@ -51,6 +51,7 @@ export interface SelectProps extends BasicAttributes {
|
|
|
51
51
|
textAlign?: SelectTextAlign
|
|
52
52
|
validateTrigger?: Array<SelectValidateTrigger>
|
|
53
53
|
rules?: SelectRules
|
|
54
|
+
tabindex?: SelectHTMLAttributes['tabindex']
|
|
54
55
|
onFocus?: ListenerProp<(e: Event) => void>
|
|
55
56
|
onBlur?: ListenerProp<(e: Event) => void>
|
|
56
57
|
onClick?: ListenerProp<(e: Event) => void>
|
package/types/switch.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'vue'
|
|
1
2
|
import { BasicAttributes, ListenerProp, SetPropsDefaults, Rules as SwitchRules, VarComponent } from './varComponent'
|
|
2
3
|
|
|
3
4
|
export declare const switchProps: Record<keyof SwitchProps, any>
|
|
@@ -21,6 +22,7 @@ export interface SwitchProps extends BasicAttributes {
|
|
|
21
22
|
validateTrigger?: Array<SwitchValidateTrigger>
|
|
22
23
|
variant?: boolean
|
|
23
24
|
rules?: SwitchRules
|
|
25
|
+
tabindex?: InputHTMLAttributes['tabindex']
|
|
24
26
|
onClick?: ListenerProp<(event: Event) => void>
|
|
25
27
|
onChange?: ListenerProp<(value: any) => void>
|
|
26
28
|
'onUpdate:modelValue'?: ListenerProp<(value: any) => void>
|