vft 0.0.343 → 0.0.345
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/components/button/index.d.ts +9 -9
- package/es/components/carousel/use-carousel.js +1 -1
- package/es/components/dropdown/dropdown.vue2.js +21 -21
- package/es/components/form/form-item.vue.d.ts +1 -1
- package/es/components/form/index.d.ts +30 -30
- package/es/components/input/input.vue2.js +4 -4
- package/es/components/input-tag/composables/use-input-tag.js +1 -1
- package/es/components/popconfirm/index.d.ts +15 -15
- package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/es/components/roving-focus-group/index.js +14 -14
- package/es/components/roving-focus-group/roving-focus-group.vue.d.ts +11 -0
- package/es/components/roving-focus-group/roving-focus-group.vue.js +2 -19
- package/es/components/roving-focus-group/roving-focus-group.vue2.js +21 -7
- package/es/components/super-form/index.d.ts +3 -3
- package/es/components/super-form/super-form-item.vue2.js +1 -1
- package/es/components/super-form/super-form.vue.d.ts +1 -1
- package/es/components/super-form/use/helper.js +1 -1
- package/es/components/super-form/use/use-form-events.d.ts +1 -1
- package/es/components/super-form/use/use-form-events.js +1 -1
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/es/utils/vue/vnode.js +1 -1
- package/lib/components/button/index.d.ts +9 -9
- package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
- package/lib/components/form/form-item.vue.d.ts +1 -1
- package/lib/components/form/index.d.ts +30 -30
- package/lib/components/input/input.vue2.cjs +1 -1
- package/lib/components/popconfirm/index.d.ts +15 -15
- package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/lib/components/roving-focus-group/index.cjs +1 -1
- package/lib/components/roving-focus-group/roving-focus-group.vue.cjs +1 -1
- package/lib/components/roving-focus-group/roving-focus-group.vue.d.ts +11 -0
- package/lib/components/roving-focus-group/roving-focus-group.vue2.cjs +1 -1
- package/lib/components/super-form/index.d.ts +3 -3
- package/lib/components/super-form/super-form.vue.d.ts +1 -1
- package/lib/components/super-form/use/use-form-events.cjs +1 -1
- package/lib/components/super-form/use/use-form-events.d.ts +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/package.json +2 -2
- package/web-types.json +1 -1
|
@@ -24,12 +24,12 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
|
|
|
24
24
|
size: {
|
|
25
25
|
type: import("vue").PropType<import("../types").ComponentSize>;
|
|
26
26
|
};
|
|
27
|
-
dark: {
|
|
28
|
-
type: import("vue").PropType<boolean>;
|
|
29
|
-
};
|
|
30
27
|
icon: {
|
|
31
28
|
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
32
29
|
};
|
|
30
|
+
dark: {
|
|
31
|
+
type: import("vue").PropType<boolean>;
|
|
32
|
+
};
|
|
33
33
|
loading: {
|
|
34
34
|
type: import("vue").PropType<boolean>;
|
|
35
35
|
};
|
|
@@ -114,12 +114,12 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
|
|
|
114
114
|
size: {
|
|
115
115
|
type: import("vue").PropType<import("../types").ComponentSize>;
|
|
116
116
|
};
|
|
117
|
-
dark: {
|
|
118
|
-
type: import("vue").PropType<boolean>;
|
|
119
|
-
};
|
|
120
117
|
icon: {
|
|
121
118
|
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
122
119
|
};
|
|
120
|
+
dark: {
|
|
121
|
+
type: import("vue").PropType<boolean>;
|
|
122
|
+
};
|
|
123
123
|
loading: {
|
|
124
124
|
type: import("vue").PropType<boolean>;
|
|
125
125
|
};
|
|
@@ -199,12 +199,12 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
|
|
|
199
199
|
size: {
|
|
200
200
|
type: import("vue").PropType<import("../types").ComponentSize>;
|
|
201
201
|
};
|
|
202
|
-
dark: {
|
|
203
|
-
type: import("vue").PropType<boolean>;
|
|
204
|
-
};
|
|
205
202
|
icon: {
|
|
206
203
|
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
207
204
|
};
|
|
205
|
+
dark: {
|
|
206
|
+
type: import("vue").PropType<boolean>;
|
|
207
|
+
};
|
|
208
208
|
loading: {
|
|
209
209
|
type: import("vue").PropType<boolean>;
|
|
210
210
|
};
|
|
@@ -10,7 +10,7 @@ import "../../hooks/use-model-toggle/index.js";
|
|
|
10
10
|
import { useOrderedChildren as Ie } from "../../hooks/use-ordered-children/index.js";
|
|
11
11
|
import "@popperjs/core";
|
|
12
12
|
import "../../hooks/use-z-index/index.js";
|
|
13
|
-
import {
|
|
13
|
+
import { carouselContextKey as ge, CAROUSEL_ITEM_NAME as H } from "./constants.js";
|
|
14
14
|
const L = 300, _e = (t, O, M) => {
|
|
15
15
|
const {
|
|
16
16
|
children: o,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as S, getCurrentInstance as Z, ref as i, computed as g, watch as _, toRef as b, onBeforeUnmount as x, provide as B, createElementBlock as ee, openBlock as T, normalizeClass as $, unref as t, createVNode as r, createBlock as te, createCommentVNode as oe, createSlots as re, withCtx as o, renderSlot as h, mergeProps as I } from "vue";
|
|
2
2
|
import { VftButtonGroup as ne, VftButton as O } from "../button/index.js";
|
|
3
3
|
import "../form/index.js";
|
|
4
4
|
import { VftIcon as le } from "../icon/index.js";
|
|
5
|
-
import ie from "../roving-focus-group/roving-focus-group.
|
|
5
|
+
import ie from "../roving-focus-group/roving-focus-group.vue2.js";
|
|
6
6
|
import "../roving-focus-group/roving-focus-group-impl.vue2.js";
|
|
7
7
|
import "../roving-focus-group/roving-focus-item.vue2.js";
|
|
8
8
|
import "../roving-focus-group/types.js";
|
|
@@ -12,9 +12,9 @@ import { OnlyChild as se } from "../slot/only-child.js";
|
|
|
12
12
|
import { VftTooltip as pe } from "../tooltip/index.js";
|
|
13
13
|
import "@vueuse/core";
|
|
14
14
|
import { isArray as de } from "@vft/utils";
|
|
15
|
-
import { addUnit as
|
|
15
|
+
import { addUnit as fe } from "../../utils/helper.js";
|
|
16
16
|
import "lodash-es";
|
|
17
|
-
import { useId as
|
|
17
|
+
import { useId as ue } from "../../hooks/use-id/index.js";
|
|
18
18
|
import { useNamespace as me } from "../../hooks/use-namespace/index.js";
|
|
19
19
|
import "../../hooks/use-model-toggle/index.js";
|
|
20
20
|
import "@popperjs/core";
|
|
@@ -22,9 +22,9 @@ import "../../hooks/use-z-index/index.js";
|
|
|
22
22
|
import { DROPDOWN_INJECTION_KEY as ce } from "./tokens.js";
|
|
23
23
|
import { VftCollection as ve } from "./types.js";
|
|
24
24
|
import { useFormSize as ge } from "../form/hooks/use-form-common-props.js";
|
|
25
|
-
const be =
|
|
25
|
+
const be = S({
|
|
26
26
|
name: "vft-dropdown"
|
|
27
|
-
}), Ge = /* @__PURE__ */
|
|
27
|
+
}), Ge = /* @__PURE__ */ S({
|
|
28
28
|
...be,
|
|
29
29
|
props: {
|
|
30
30
|
trigger: { default: "hover" },
|
|
@@ -48,14 +48,14 @@ const be = R({
|
|
|
48
48
|
teleported: { type: Boolean, default: !0 }
|
|
49
49
|
},
|
|
50
50
|
emits: ["visible-change", "command", "click"],
|
|
51
|
-
setup(
|
|
52
|
-
const n = me("dropdown"), a =
|
|
53
|
-
maxHeight:
|
|
54
|
-
})), P =
|
|
51
|
+
setup(z, { expose: R, emit: L }) {
|
|
52
|
+
const n = me("dropdown"), a = z, p = L, V = Z(), l = i(), w = i(), u = i(null), s = i(null), N = i(null), m = i(null), C = i(!1), D = [y.enter, y.space, y.down], H = g(() => ({
|
|
53
|
+
maxHeight: fe(a.maxHeight)
|
|
54
|
+
})), P = ue().value, c = g(() => a.id || P);
|
|
55
55
|
_(
|
|
56
56
|
[l, b(a, "trigger")],
|
|
57
|
-
([e,
|
|
58
|
-
const X = de(
|
|
57
|
+
([e, f], [E]) => {
|
|
58
|
+
const X = de(f) ? f : [f];
|
|
59
59
|
E?.$el?.removeEventListener && E.$el.removeEventListener(
|
|
60
60
|
"pointerenter",
|
|
61
61
|
d
|
|
@@ -74,14 +74,14 @@ const be = R({
|
|
|
74
74
|
d
|
|
75
75
|
);
|
|
76
76
|
});
|
|
77
|
-
function
|
|
77
|
+
function A() {
|
|
78
78
|
k();
|
|
79
79
|
}
|
|
80
80
|
function k() {
|
|
81
|
-
|
|
81
|
+
u.value?.onClose();
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
|
|
83
|
+
function F() {
|
|
84
|
+
u.value?.onOpen();
|
|
85
85
|
}
|
|
86
86
|
const v = ge();
|
|
87
87
|
function K(...e) {
|
|
@@ -120,7 +120,7 @@ const be = R({
|
|
|
120
120
|
}), B("elDropdown", {
|
|
121
121
|
instance: V,
|
|
122
122
|
dropdownSize: v,
|
|
123
|
-
handleClick:
|
|
123
|
+
handleClick: A,
|
|
124
124
|
commandHandler: K,
|
|
125
125
|
trigger: b(a, "trigger"),
|
|
126
126
|
hideOnClick: b(a, "hideOnClick")
|
|
@@ -132,17 +132,17 @@ const be = R({
|
|
|
132
132
|
}, Q = (e) => {
|
|
133
133
|
p("click", e);
|
|
134
134
|
};
|
|
135
|
-
return
|
|
135
|
+
return R({
|
|
136
136
|
handleClose: k,
|
|
137
|
-
handleOpen:
|
|
137
|
+
handleOpen: F,
|
|
138
138
|
// Todo
|
|
139
139
|
onFocusAfterTrapped: q
|
|
140
|
-
}), (e,
|
|
140
|
+
}), (e, f) => (T(), ee("div", {
|
|
141
141
|
class: $([t(n).b(), t(n).is("disabled", e.disabled)])
|
|
142
142
|
}, [
|
|
143
143
|
r(t(pe), {
|
|
144
144
|
ref_key: "popperRef",
|
|
145
|
-
ref:
|
|
145
|
+
ref: u,
|
|
146
146
|
role: e.role,
|
|
147
147
|
effect: e.effect,
|
|
148
148
|
"fallback-placements": ["bottom", "top"],
|
|
@@ -32,10 +32,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
32
32
|
}>>> & Readonly<{
|
|
33
33
|
"onUpdate:error"?: ((val: string) => any) | undefined;
|
|
34
34
|
}>, {
|
|
35
|
+
required: boolean;
|
|
35
36
|
labelWidth: string | number;
|
|
36
37
|
inlineMessage: string | boolean;
|
|
37
38
|
showMessage: boolean;
|
|
38
|
-
required: boolean;
|
|
39
39
|
hideLabel: boolean;
|
|
40
40
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
41
41
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
@@ -206,6 +206,10 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
206
206
|
size: {
|
|
207
207
|
type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
|
|
208
208
|
};
|
|
209
|
+
required: {
|
|
210
|
+
type: import("vue").PropType<boolean>;
|
|
211
|
+
default: undefined;
|
|
212
|
+
};
|
|
209
213
|
rules: {
|
|
210
214
|
type: import("vue").PropType<import("vft/es/utils").Arrayable<import("./types").FormItemRule>>;
|
|
211
215
|
};
|
|
@@ -227,10 +231,6 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
227
231
|
hideRequiredAsterisk: {
|
|
228
232
|
type: import("vue").PropType<boolean>;
|
|
229
233
|
};
|
|
230
|
-
required: {
|
|
231
|
-
type: import("vue").PropType<boolean>;
|
|
232
|
-
default: undefined;
|
|
233
|
-
};
|
|
234
234
|
for: {
|
|
235
235
|
type: import("vue").PropType<string>;
|
|
236
236
|
};
|
|
@@ -253,10 +253,10 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
253
253
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
254
254
|
"update:error": (val: string) => void;
|
|
255
255
|
}, import("vue").PublicProps, {
|
|
256
|
+
required: boolean;
|
|
256
257
|
labelWidth: string | number;
|
|
257
258
|
inlineMessage: string | boolean;
|
|
258
259
|
showMessage: boolean;
|
|
259
|
-
required: boolean;
|
|
260
260
|
hideLabel: boolean;
|
|
261
261
|
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
262
262
|
P: {};
|
|
@@ -278,6 +278,10 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
278
278
|
size: {
|
|
279
279
|
type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
|
|
280
280
|
};
|
|
281
|
+
required: {
|
|
282
|
+
type: import("vue").PropType<boolean>;
|
|
283
|
+
default: undefined;
|
|
284
|
+
};
|
|
281
285
|
rules: {
|
|
282
286
|
type: import("vue").PropType<import("vft/es/utils").Arrayable<import("./types").FormItemRule>>;
|
|
283
287
|
};
|
|
@@ -299,10 +303,6 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
299
303
|
hideRequiredAsterisk: {
|
|
300
304
|
type: import("vue").PropType<boolean>;
|
|
301
305
|
};
|
|
302
|
-
required: {
|
|
303
|
-
type: import("vue").PropType<boolean>;
|
|
304
|
-
default: undefined;
|
|
305
|
-
};
|
|
306
306
|
for: {
|
|
307
307
|
type: import("vue").PropType<string>;
|
|
308
308
|
};
|
|
@@ -323,10 +323,10 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
323
323
|
clearValidate: () => void;
|
|
324
324
|
resetField: () => void;
|
|
325
325
|
}, {}, {}, {}, {
|
|
326
|
+
required: boolean;
|
|
326
327
|
labelWidth: string | number;
|
|
327
328
|
inlineMessage: string | boolean;
|
|
328
329
|
showMessage: boolean;
|
|
329
|
-
required: boolean;
|
|
330
330
|
hideLabel: boolean;
|
|
331
331
|
}>;
|
|
332
332
|
__isFragment?: never;
|
|
@@ -345,6 +345,10 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
345
345
|
size: {
|
|
346
346
|
type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
|
|
347
347
|
};
|
|
348
|
+
required: {
|
|
349
|
+
type: import("vue").PropType<boolean>;
|
|
350
|
+
default: undefined;
|
|
351
|
+
};
|
|
348
352
|
rules: {
|
|
349
353
|
type: import("vue").PropType<import("vft/es/utils").Arrayable<import("./types").FormItemRule>>;
|
|
350
354
|
};
|
|
@@ -366,10 +370,6 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
366
370
|
hideRequiredAsterisk: {
|
|
367
371
|
type: import("vue").PropType<boolean>;
|
|
368
372
|
};
|
|
369
|
-
required: {
|
|
370
|
-
type: import("vue").PropType<boolean>;
|
|
371
|
-
default: undefined;
|
|
372
|
-
};
|
|
373
373
|
for: {
|
|
374
374
|
type: import("vue").PropType<string>;
|
|
375
375
|
};
|
|
@@ -392,10 +392,10 @@ export declare const VftForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
392
392
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
393
393
|
"update:error": (val: string) => void;
|
|
394
394
|
}, string, {
|
|
395
|
+
required: boolean;
|
|
395
396
|
labelWidth: string | number;
|
|
396
397
|
inlineMessage: string | boolean;
|
|
397
398
|
showMessage: boolean;
|
|
398
|
-
required: boolean;
|
|
399
399
|
hideLabel: boolean;
|
|
400
400
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
401
401
|
$slots: {
|
|
@@ -423,6 +423,10 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
|
|
|
423
423
|
size: {
|
|
424
424
|
type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
|
|
425
425
|
};
|
|
426
|
+
required: {
|
|
427
|
+
type: import("vue").PropType<boolean>;
|
|
428
|
+
default: undefined;
|
|
429
|
+
};
|
|
426
430
|
rules: {
|
|
427
431
|
type: import("vue").PropType<import("vft/es/utils").Arrayable<import("./types").FormItemRule>>;
|
|
428
432
|
};
|
|
@@ -444,10 +448,6 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
|
|
|
444
448
|
hideRequiredAsterisk: {
|
|
445
449
|
type: import("vue").PropType<boolean>;
|
|
446
450
|
};
|
|
447
|
-
required: {
|
|
448
|
-
type: import("vue").PropType<boolean>;
|
|
449
|
-
default: undefined;
|
|
450
|
-
};
|
|
451
451
|
for: {
|
|
452
452
|
type: import("vue").PropType<string>;
|
|
453
453
|
};
|
|
@@ -470,10 +470,10 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
|
|
|
470
470
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
471
471
|
"update:error": (val: string) => void;
|
|
472
472
|
}, import("vue").PublicProps, {
|
|
473
|
+
required: boolean;
|
|
473
474
|
labelWidth: string | number;
|
|
474
475
|
inlineMessage: string | boolean;
|
|
475
476
|
showMessage: boolean;
|
|
476
|
-
required: boolean;
|
|
477
477
|
hideLabel: boolean;
|
|
478
478
|
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
479
479
|
P: {};
|
|
@@ -495,6 +495,10 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
|
|
|
495
495
|
size: {
|
|
496
496
|
type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
|
|
497
497
|
};
|
|
498
|
+
required: {
|
|
499
|
+
type: import("vue").PropType<boolean>;
|
|
500
|
+
default: undefined;
|
|
501
|
+
};
|
|
498
502
|
rules: {
|
|
499
503
|
type: import("vue").PropType<import("vft/es/utils").Arrayable<import("./types").FormItemRule>>;
|
|
500
504
|
};
|
|
@@ -516,10 +520,6 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
|
|
|
516
520
|
hideRequiredAsterisk: {
|
|
517
521
|
type: import("vue").PropType<boolean>;
|
|
518
522
|
};
|
|
519
|
-
required: {
|
|
520
|
-
type: import("vue").PropType<boolean>;
|
|
521
|
-
default: undefined;
|
|
522
|
-
};
|
|
523
523
|
for: {
|
|
524
524
|
type: import("vue").PropType<string>;
|
|
525
525
|
};
|
|
@@ -540,10 +540,10 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
|
|
|
540
540
|
clearValidate: () => void;
|
|
541
541
|
resetField: () => void;
|
|
542
542
|
}, {}, {}, {}, {
|
|
543
|
+
required: boolean;
|
|
543
544
|
labelWidth: string | number;
|
|
544
545
|
inlineMessage: string | boolean;
|
|
545
546
|
showMessage: boolean;
|
|
546
|
-
required: boolean;
|
|
547
547
|
hideLabel: boolean;
|
|
548
548
|
}>;
|
|
549
549
|
__isFragment?: never;
|
|
@@ -562,6 +562,10 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
|
|
|
562
562
|
size: {
|
|
563
563
|
type: import("vue").PropType<import("vft/es/constants").ComponentSize>;
|
|
564
564
|
};
|
|
565
|
+
required: {
|
|
566
|
+
type: import("vue").PropType<boolean>;
|
|
567
|
+
default: undefined;
|
|
568
|
+
};
|
|
565
569
|
rules: {
|
|
566
570
|
type: import("vue").PropType<import("vft/es/utils").Arrayable<import("./types").FormItemRule>>;
|
|
567
571
|
};
|
|
@@ -583,10 +587,6 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
|
|
|
583
587
|
hideRequiredAsterisk: {
|
|
584
588
|
type: import("vue").PropType<boolean>;
|
|
585
589
|
};
|
|
586
|
-
required: {
|
|
587
|
-
type: import("vue").PropType<boolean>;
|
|
588
|
-
default: undefined;
|
|
589
|
-
};
|
|
590
590
|
for: {
|
|
591
591
|
type: import("vue").PropType<string>;
|
|
592
592
|
};
|
|
@@ -609,10 +609,10 @@ export declare const VftFormItem: import("vft/es/utils").SFCWithInstall<{
|
|
|
609
609
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
610
610
|
"update:error": (val: string) => void;
|
|
611
611
|
}, string, {
|
|
612
|
+
required: boolean;
|
|
612
613
|
labelWidth: string | number;
|
|
613
614
|
inlineMessage: string | boolean;
|
|
614
615
|
showMessage: boolean;
|
|
615
|
-
required: boolean;
|
|
616
616
|
hideLabel: boolean;
|
|
617
617
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
618
618
|
$slots: {
|
|
@@ -13,8 +13,8 @@ import "../../hooks/use-z-index/index.js";
|
|
|
13
13
|
import { UPDATE_MODEL_EVENT as Q } from "@vft/constants";
|
|
14
14
|
import { useAttrs as Ze, useCursor as _e } from "@vft/use";
|
|
15
15
|
import { calcTextareaHeight as ye } from "./utils.js";
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
16
|
+
import { useFormItem as et, useFormItemInputId as tt } from "../form/hooks/use-form-item.js";
|
|
17
|
+
import { useFormSize as at, useFormDisabled as ot } from "../form/hooks/use-form-common-props.js";
|
|
18
18
|
const nt = ["role"], lt = ["id", "type", "disabled", "formatter", "parser", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form"], st = ["id", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form"], It = /* @__PURE__ */ Oe({
|
|
19
19
|
__name: "input",
|
|
20
20
|
props: {
|
|
@@ -85,9 +85,9 @@ const nt = ["role"], lt = ["id", "type", "disabled", "formatter", "parser", "rea
|
|
|
85
85
|
o.is("focus", v.value)
|
|
86
86
|
]), d = Ze({
|
|
87
87
|
excludeKeys: l(() => Object.keys(X.value))
|
|
88
|
-
}), { form: Ce, formItem: F } =
|
|
88
|
+
}), { form: Ce, formItem: F } = et(), { inputId: Y } = tt(xe.props, {
|
|
89
89
|
formItemContext: F
|
|
90
|
-
}), ke =
|
|
90
|
+
}), ke = at(), h = ot(), o = pe("input"), Z = pe("textarea"), M = H(), b = H(), v = S(!1), N = S(!1), C = S(!1), K = S(!1), _ = S(), O = H(e.inputStyle), k = l(() => M.value || b.value), T = l(() => G(e.prefixIcon, "icon", { size: 16 })), ee = l(() => G(e.suffixIcon, "icon", { size: 16 })), Ie = l(() => G(e.clearIcon, "icon", {
|
|
91
91
|
icon: "icon-circle-close",
|
|
92
92
|
size: 16
|
|
93
93
|
})), te = l(() => Ce?.statusIcon ?? !1), I = l(() => F?.validateState || ""), ae = l(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { shallowRef as B, ref as L, computed as c, watch as G } from "vue";
|
|
2
2
|
import { EVENT_CODE as g } from "../../../constants/aria.js";
|
|
3
|
-
import { CHANGE_EVENT as i,
|
|
3
|
+
import { CHANGE_EVENT as i, UPDATE_MODEL_EVENT as d, INPUT_EVENT as H } from "../../../constants/event.js";
|
|
4
4
|
import "@vueuse/core";
|
|
5
5
|
import { isUndefined as K } from "@vft/utils";
|
|
6
6
|
import { debugWarn as C } from "../../../utils/error.js";
|
|
@@ -7,14 +7,14 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
7
7
|
type: import("vue").PropType<string | number>;
|
|
8
8
|
default: number;
|
|
9
9
|
};
|
|
10
|
-
teleported: {
|
|
11
|
-
type: import("vue").PropType<boolean>;
|
|
12
|
-
default: boolean;
|
|
13
|
-
};
|
|
14
10
|
icon: {
|
|
15
11
|
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
16
12
|
default: string;
|
|
17
13
|
};
|
|
14
|
+
teleported: {
|
|
15
|
+
type: import("vue").PropType<boolean>;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
18
|
hideAfter: {
|
|
19
19
|
type: import("vue").PropType<number>;
|
|
20
20
|
default: number;
|
|
@@ -52,8 +52,8 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
52
52
|
cancel: (val: MouseEvent) => void;
|
|
53
53
|
}, import("vue").PublicProps, {
|
|
54
54
|
width: string | number;
|
|
55
|
-
teleported: boolean;
|
|
56
55
|
icon: string | import("vft/es/vft").IconProps;
|
|
56
|
+
teleported: boolean;
|
|
57
57
|
hideAfter: number;
|
|
58
58
|
persistent: boolean;
|
|
59
59
|
confirmButtonType: import("vft/es/vft").ButtonType;
|
|
@@ -74,14 +74,14 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
74
74
|
type: import("vue").PropType<string | number>;
|
|
75
75
|
default: number;
|
|
76
76
|
};
|
|
77
|
-
teleported: {
|
|
78
|
-
type: import("vue").PropType<boolean>;
|
|
79
|
-
default: boolean;
|
|
80
|
-
};
|
|
81
77
|
icon: {
|
|
82
78
|
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
83
79
|
default: string;
|
|
84
80
|
};
|
|
81
|
+
teleported: {
|
|
82
|
+
type: import("vue").PropType<boolean>;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
85
|
hideAfter: {
|
|
86
86
|
type: import("vue").PropType<number>;
|
|
87
87
|
default: number;
|
|
@@ -116,8 +116,8 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
116
116
|
onConfirm?: ((val: MouseEvent) => any) | undefined;
|
|
117
117
|
}>, {}, {}, {}, {}, {
|
|
118
118
|
width: string | number;
|
|
119
|
-
teleported: boolean;
|
|
120
119
|
icon: string | import("vft/es/vft").IconProps;
|
|
120
|
+
teleported: boolean;
|
|
121
121
|
hideAfter: number;
|
|
122
122
|
persistent: boolean;
|
|
123
123
|
confirmButtonType: import("vft/es/vft").ButtonType;
|
|
@@ -135,14 +135,14 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
135
135
|
type: import("vue").PropType<string | number>;
|
|
136
136
|
default: number;
|
|
137
137
|
};
|
|
138
|
-
teleported: {
|
|
139
|
-
type: import("vue").PropType<boolean>;
|
|
140
|
-
default: boolean;
|
|
141
|
-
};
|
|
142
138
|
icon: {
|
|
143
139
|
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
144
140
|
default: string;
|
|
145
141
|
};
|
|
142
|
+
teleported: {
|
|
143
|
+
type: import("vue").PropType<boolean>;
|
|
144
|
+
default: boolean;
|
|
145
|
+
};
|
|
146
146
|
hideAfter: {
|
|
147
147
|
type: import("vue").PropType<number>;
|
|
148
148
|
default: number;
|
|
@@ -180,8 +180,8 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
180
180
|
cancel: (val: MouseEvent) => void;
|
|
181
181
|
}, string, {
|
|
182
182
|
width: string | number;
|
|
183
|
-
teleported: boolean;
|
|
184
183
|
icon: string | import("vft/es/vft").IconProps;
|
|
184
|
+
teleported: boolean;
|
|
185
185
|
hideAfter: number;
|
|
186
186
|
persistent: boolean;
|
|
187
187
|
confirmButtonType: import("vft/es/vft").ButtonType;
|
|
@@ -43,8 +43,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
43
43
|
onConfirm?: ((val: MouseEvent) => any) | undefined;
|
|
44
44
|
}>, {
|
|
45
45
|
width: string | number;
|
|
46
|
-
teleported: boolean;
|
|
47
46
|
icon: string | IconProps;
|
|
47
|
+
teleported: boolean;
|
|
48
48
|
hideAfter: number;
|
|
49
49
|
persistent: boolean;
|
|
50
50
|
confirmButtonType: ButtonType;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import t from "./roving-focus-group.
|
|
1
|
+
import t from "./roving-focus-group.vue2.js";
|
|
2
2
|
import { default as I } from "./roving-focus-group-impl.vue.js";
|
|
3
|
-
import { default as
|
|
4
|
-
import { ROVING_FOCUS_COLLECTION_INJECTION_KEY as
|
|
5
|
-
import { ROVING_FOCUS_GROUP_INJECTION_KEY as n, ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY as
|
|
6
|
-
import { focusFirst as
|
|
3
|
+
import { default as _ } from "./roving-focus-item.vue.js";
|
|
4
|
+
import { ROVING_FOCUS_COLLECTION_INJECTION_KEY as O, ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY as l, VftCollection as s, VftCollectionItem as c, VftCollection as N, VftCollectionItem as i } from "./types.js";
|
|
5
|
+
import { ROVING_FOCUS_GROUP_INJECTION_KEY as n, ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY as u } from "./tokens.js";
|
|
6
|
+
import { focusFirst as E, getFocusIntent as a, reorderArray as p } from "./utils.js";
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
O as ROVING_FOCUS_COLLECTION_INJECTION_KEY,
|
|
9
9
|
n as ROVING_FOCUS_GROUP_INJECTION_KEY,
|
|
10
|
-
|
|
10
|
+
u as ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY,
|
|
11
11
|
l as ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY,
|
|
12
12
|
s as VftCollection,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
c as VftCollectionItem,
|
|
14
|
+
N as VftFocusGroupCollection,
|
|
15
|
+
i as VftRovingFocusCollectionItem,
|
|
16
16
|
t as VftRovingFocusGroup,
|
|
17
17
|
I as VftRovingFocusGroupImpl,
|
|
18
|
-
|
|
18
|
+
_ as VftRovingFocusItem,
|
|
19
19
|
t as default,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
E as focusFirst,
|
|
21
|
+
a as getFocusIntent,
|
|
22
|
+
p as reorderArray
|
|
23
23
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
default?(_: {}): any;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
8
|
+
new (): {
|
|
9
|
+
$slots: S;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -1,21 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as r, createBlock as p, openBlock as s, withCtx as e, createVNode as u, normalizeProps as l, guardReactiveProps as _, renderSlot as i } from "vue";
|
|
3
|
-
import a from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
function f(o, m, d, g, $, v) {
|
|
5
|
-
const t = r("roving-focus-group-impl"), n = r("focus-group-collection");
|
|
6
|
-
return s(), p(n, null, {
|
|
7
|
-
default: e(() => [
|
|
8
|
-
u(t, l(_(o.$attrs)), {
|
|
9
|
-
default: e(() => [
|
|
10
|
-
i(o.$slots, "default")
|
|
11
|
-
]),
|
|
12
|
-
_: 3
|
|
13
|
-
}, 16)
|
|
14
|
-
]),
|
|
15
|
-
_: 3
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
const B = /* @__PURE__ */ a(c, [["render", f]]);
|
|
1
|
+
import f from "./roving-focus-group.vue2.js";
|
|
19
2
|
export {
|
|
20
|
-
|
|
3
|
+
f as default
|
|
21
4
|
};
|
|
@@ -1,13 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { VftCollection as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as t, createBlock as n, openBlock as l, unref as u, withCtx as e, createVNode as c, normalizeProps as p, guardReactiveProps as a, renderSlot as s } from "vue";
|
|
2
|
+
import f from "./roving-focus-group-impl.vue.js";
|
|
3
|
+
import { VftCollection as r } from "./types.js";
|
|
4
|
+
const i = t({
|
|
5
5
|
name: "VftRovingFocusGroup",
|
|
6
6
|
components: {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
"focus-group-collection": r
|
|
8
|
+
}
|
|
9
|
+
}), C = /* @__PURE__ */ t({
|
|
10
|
+
...i,
|
|
11
|
+
setup(m) {
|
|
12
|
+
return (o, _) => (l(), n(u(r), null, {
|
|
13
|
+
default: e(() => [
|
|
14
|
+
c(f, p(a(o.$attrs)), {
|
|
15
|
+
default: e(() => [
|
|
16
|
+
s(o.$slots, "default")
|
|
17
|
+
]),
|
|
18
|
+
_: 3
|
|
19
|
+
}, 16)
|
|
20
|
+
]),
|
|
21
|
+
_: 3
|
|
22
|
+
}));
|
|
9
23
|
}
|
|
10
24
|
});
|
|
11
25
|
export {
|
|
12
|
-
|
|
26
|
+
C as default
|
|
13
27
|
};
|
|
@@ -123,7 +123,7 @@ export declare const VftSuperForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
123
123
|
onRegister?: ((instance: Partial<import("./types").FormActionType>) => any) | undefined;
|
|
124
124
|
"onField-value-change"?: (() => any) | undefined;
|
|
125
125
|
}>, {
|
|
126
|
-
getFieldsValue: (showHideData?:
|
|
126
|
+
getFieldsValue: (showHideData?: boolean) => import("../types").Recordable;
|
|
127
127
|
getFieldValue: (field: string) => string | number | import("../types").Recordable;
|
|
128
128
|
setFieldsValue: (values: import("../types").Recordable, autoValidate?: boolean) => Promise<void>;
|
|
129
129
|
resetFields: (props: any) => Promise<void>;
|
|
@@ -290,7 +290,7 @@ export declare const VftSuperForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
290
290
|
onRegister?: ((instance: Partial<import("./types").FormActionType>) => any) | undefined;
|
|
291
291
|
"onField-value-change"?: (() => any) | undefined;
|
|
292
292
|
}>, {
|
|
293
|
-
getFieldsValue: (showHideData?:
|
|
293
|
+
getFieldsValue: (showHideData?: boolean) => import("../types").Recordable;
|
|
294
294
|
getFieldValue: (field: string) => string | number | import("../types").Recordable;
|
|
295
295
|
setFieldsValue: (values: import("../types").Recordable, autoValidate?: boolean) => Promise<void>;
|
|
296
296
|
resetFields: (props: any) => Promise<void>;
|
|
@@ -449,7 +449,7 @@ export declare const VftSuperForm: import("vft/es/utils").SFCWithInstall<{
|
|
|
449
449
|
onRegister?: ((instance: Partial<import("./types").FormActionType>) => any) | undefined;
|
|
450
450
|
"onField-value-change"?: (() => any) | undefined;
|
|
451
451
|
}>, {
|
|
452
|
-
getFieldsValue: (showHideData?:
|
|
452
|
+
getFieldsValue: (showHideData?: boolean) => import("../types").Recordable;
|
|
453
453
|
getFieldValue: (field: string) => string | number | import("../types").Recordable;
|
|
454
454
|
setFieldsValue: (values: import("../types").Recordable, autoValidate?: boolean) => Promise<void>;
|
|
455
455
|
resetFields: (props: any) => Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as $, computed as v, ref as ee, unref as u, useSlots as te, createVNode as f, mergeProps as L, withDirectives as re, vShow as ne,
|
|
1
|
+
import { defineComponent as $, computed as v, ref as ee, unref as u, useSlots as te, createVNode as f, mergeProps as L, withDirectives as re, vShow as ne, createTextVNode as G, isVNode as oe, resolveComponent as q } from "vue";
|
|
2
2
|
import { VftCol as J } from "../col/index.js";
|
|
3
3
|
import { VftDivider as le } from "../divider/index.js";
|
|
4
4
|
import { VftFormItem as se } from "../form/index.js";
|