eco-vue-js 0.9.2 → 0.9.3
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/dist/components/Modal/WModalStepper.vue.d.ts +470 -375
- package/dist/components/Modal/WModalStepper.vue.d.ts.map +1 -1
- package/dist/components/Modal/WModalStepper.vue.js +7 -5
- package/dist/components/Tabs/WTabs.vue.d.ts.map +1 -1
- package/dist/components/Tabs/WTabs.vue.js +10 -8
- package/dist/components/Tabs/WTabsStepper.vue.d.ts +322 -1
- package/dist/components/Tabs/WTabsStepper.vue.d.ts.map +1 -1
- package/dist/components/Tabs/WTabsStepper.vue.js +8 -8
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WModalStepper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/WModalStepper.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WModalStepper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/WModalStepper.vue"],"names":[],"mappings":"AAyKA,iBAAS,cAAc;;uBA4PI,GAAG;yBACA,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDAkEqxS,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;WAxD95S,OAAO,IAA6B;EAEjD;AAsBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;cA7UT,OAAO;eACN,OAAO;mBACH,OAAO;;gBAqBP,IAAI;oBAJA,IAAI;;;;;;cAnBb,OAAO;eACN,OAAO;mBACH,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDA0W8xS,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;OAlB16S,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent,
|
1
|
+
import { defineComponent, useTemplateRef, ref, openBlock, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createVNode, unref } from 'vue';
|
2
2
|
import _sfc_main$3 from '../Button/WButton.vue.js';
|
3
3
|
import _sfc_main$1 from './WModalWrapper.vue.js';
|
4
4
|
import _sfc_main$2 from '../Progress/WProgress.vue.js';
|
@@ -14,9 +14,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
14
|
},
|
15
15
|
emits: ["close:modal", "submit", "update:has-changes"],
|
16
16
|
setup(__props, { expose: __expose }) {
|
17
|
-
const slots = useSlots();
|
18
17
|
const tabsStepperRef = useTemplateRef("tabsStepper");
|
19
|
-
const defaultSlots = computed(() => slots.default?.() ?? []);
|
20
18
|
const first = ref(true);
|
21
19
|
const last = ref(false);
|
22
20
|
const currentTitle = ref();
|
@@ -94,13 +92,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
94
92
|
default: withCtx(() => [
|
95
93
|
createVNode(_sfc_main$4, {
|
96
94
|
ref: "tabsStepper",
|
97
|
-
"custom-slots": defaultSlots.value,
|
98
95
|
"onUpdate:first": _cache[0] || (_cache[0] = ($event) => first.value = $event),
|
99
96
|
"onUpdate:last": _cache[1] || (_cache[1] = ($event) => last.value = $event),
|
100
97
|
"onUpdate:currentTitle": _cache[2] || (_cache[2] = ($event) => currentTitle.value = $event),
|
101
98
|
"onUpdate:hasChanges": _cache[3] || (_cache[3] = ($event) => _ctx.$emit("update:has-changes", $event)),
|
102
99
|
"onUpdate:progress": _cache[4] || (_cache[4] = ($event) => progress.value = $event)
|
103
|
-
},
|
100
|
+
}, {
|
101
|
+
default: withCtx(() => [
|
102
|
+
renderSlot(_ctx.$slots, "default")
|
103
|
+
]),
|
104
|
+
_: 3
|
105
|
+
}, 512)
|
104
106
|
]),
|
105
107
|
_: 3
|
106
108
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WTabs.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/WTabs.vue"],"names":[],"mappings":"AAiSA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,SAAS,CAAA;AAEtC,OAAO,EAAC,KAAK,aAAa,EAAgD,QAAQ,EAAyE,MAAM,KAAK,CAAA;AAEtK,OAAO,KAAK,MAAM,6BAA6B,CAAA;;2BAsEjB,MAAM;yBAMR,MAAM;gBAcjB,IAAI;oBAIA,IAAI;sBAUA,MAAM,6GAAqE,UAAU,CAAC,iBAAiB,CAAC,OAAO,KAAK,CAAC,CAAC,UAAU,CAAC,CAAC;wBAIhI,MAAM;;UAAuE,UAAU,CAAC,iBAAiB,CAAC,OAAO,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC;uBAIvI,MAAM,KAAsE,UAAU,CAAC,iBAAiB,CAAC,OAAO,KAAK,CAAC,CAAC,WAAW,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"WTabs.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/WTabs.vue"],"names":[],"mappings":"AAiSA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,SAAS,CAAA;AAEtC,OAAO,EAAC,KAAK,aAAa,EAAgD,QAAQ,EAAyE,MAAM,KAAK,CAAA;AAEtK,OAAO,KAAK,MAAM,6BAA6B,CAAA;;2BAsEjB,MAAM;yBAMR,MAAM;gBAcjB,IAAI;oBAIA,IAAI;sBAUA,MAAM,6GAAqE,UAAU,CAAC,iBAAiB,CAAC,OAAO,KAAK,CAAC,CAAC,UAAU,CAAC,CAAC;wBAIhI,MAAM;;UAAuE,UAAU,CAAC,iBAAiB,CAAC,OAAO,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC;uBAIvI,MAAM,KAAsE,UAAU,CAAC,iBAAiB,CAAC,OAAO,KAAK,CAAC,CAAC,WAAW,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA0PhI,GAAG,8CACO,GAAG,yBAE9B,GAAG,6DAEW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCALA,GAAG,8CACO,GAAG,yBAE9B,GAAG,6DAEW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCALA,GAAG,8CACO,GAAG,yBAE9B,GAAG,6DAEW,GAAG;;;;;;;;;;;;;;;;;;;;;AA4J9B,wBAeG"}
|
@@ -22,14 +22,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
22
22
|
const emit = __emit;
|
23
23
|
const slots = useSlots();
|
24
24
|
const buttonContainerRef = useTemplateRef("buttonContainer");
|
25
|
-
const
|
26
|
-
|
27
|
-
|
28
|
-
if (Array.isArray(
|
29
|
-
if (typeof
|
30
|
-
|
25
|
+
const defaultSlotsRaw = computed(() => props.customSlots ?? slots.default?.() ?? []);
|
26
|
+
const unwrapSlots = (slots2) => {
|
27
|
+
return slots2.flatMap((slot) => {
|
28
|
+
if (Array.isArray(slot?.children)) return unwrapSlots(slot.children);
|
29
|
+
else if (typeof slot.type !== "symbol") return slot;
|
30
|
+
else return [];
|
31
31
|
});
|
32
|
-
|
32
|
+
};
|
33
|
+
const defaultSlots = computed(() => {
|
34
|
+
return unwrapSlots(defaultSlotsRaw.value);
|
33
35
|
});
|
34
36
|
const defaultSlotsKeys = computed(() => defaultSlots.value.map((item) => item.props?.name));
|
35
37
|
const current = ref(defaultSlotsKeys.value[props.initTab ?? 0]);
|
@@ -234,7 +236,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
234
236
|
"onUpdate:hasChanges": ($event) => hasChangesMap[slot.props?.name] = $event
|
235
237
|
}, {
|
236
238
|
default: withCtx(() => [
|
237
|
-
(openBlock(), createBlock(resolveDynamicComponent(slot
|
239
|
+
(openBlock(), createBlock(resolveDynamicComponent(slot)))
|
238
240
|
]),
|
239
241
|
_: 2
|
240
242
|
}, 1032, ["name", "title", "onUpdate:isValid", "onUpdate:hasChanges"])
|
@@ -1,5 +1,320 @@
|
|
1
1
|
import { TabsStepperProps } from './types';
|
2
|
-
declare
|
2
|
+
declare function __VLS_template(): {
|
3
|
+
slots: {
|
4
|
+
default?(_: {}): any;
|
5
|
+
};
|
6
|
+
refs: {
|
7
|
+
tabs: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').TabsProps> & Readonly<{
|
8
|
+
"onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
|
9
|
+
"onUpdate:current"?: ((value: string) => any) | undefined;
|
10
|
+
"onUpdate:current-index"?: ((value: number) => any) | undefined;
|
11
|
+
"onUpdate:current-title"?: ((value: string) => any) | undefined;
|
12
|
+
"onUpdate:tabs-length"?: ((value: number) => any) | undefined;
|
13
|
+
}>, {
|
14
|
+
updateCurrent: (value: string) => void;
|
15
|
+
updateIndex: (value: number) => void;
|
16
|
+
next: () => void;
|
17
|
+
previous: () => void;
|
18
|
+
validate: (index: number, silent?: boolean | undefined, path?: import('../Form/use/useFormValidateMap').ValidatePath | undefined) => ReturnType<ComponentInstance<typeof import('../Form/WForm.vue').default>["validate"]>;
|
19
|
+
invalidate: (index: number, payload: {
|
20
|
+
[x: string]: string | string[] | undefined;
|
21
|
+
}) => ReturnType<ComponentInstance<typeof import('../Form/WForm.vue').default>["invalidate"]>;
|
22
|
+
initModel: (index: number) => ReturnType<ComponentInstance<typeof import('../Form/WForm.vue').default>["initModel"]>;
|
23
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
24
|
+
"update:has-changes": (value: boolean) => any;
|
25
|
+
"update:current": (value: string) => any;
|
26
|
+
"update:current-index": (value: number) => any;
|
27
|
+
"update:current-title": (value: string) => any;
|
28
|
+
"update:tabs-length": (value: number) => any;
|
29
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
30
|
+
buttonContainer: HTMLDivElement;
|
31
|
+
button: (({
|
32
|
+
$: import('vue').ComponentInternalInstance;
|
33
|
+
$data: {};
|
34
|
+
$props: {
|
35
|
+
readonly active: boolean;
|
36
|
+
readonly index: number;
|
37
|
+
readonly hasError: boolean;
|
38
|
+
readonly hasChanges: boolean;
|
39
|
+
readonly title: string;
|
40
|
+
readonly icon: SVGComponent | undefined;
|
41
|
+
readonly side?: boolean | undefined;
|
42
|
+
readonly onClick?: ((value: MouseEvent) => any) | undefined;
|
43
|
+
readonly "onUpdate:indicator-style"?: ((value: import('vue').CSSProperties) => any) | undefined;
|
44
|
+
readonly "onUpdate:scroll-position"?: ((value: {
|
45
|
+
left: number;
|
46
|
+
} | {
|
47
|
+
top: number;
|
48
|
+
}) => any) | undefined;
|
49
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
50
|
+
$attrs: {
|
51
|
+
[x: string]: unknown;
|
52
|
+
};
|
53
|
+
$refs: {
|
54
|
+
[x: string]: unknown;
|
55
|
+
} & {
|
56
|
+
button: HTMLButtonElement;
|
57
|
+
};
|
58
|
+
$slots: Readonly<{
|
59
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
60
|
+
}>;
|
61
|
+
$root: import('vue').ComponentPublicInstance | null;
|
62
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
63
|
+
$host: Element | null;
|
64
|
+
$emit: ((event: "click", value: MouseEvent) => void) & ((event: "update:indicator-style", value: import('vue').CSSProperties) => void) & ((event: "update:scroll-position", value: {
|
65
|
+
left: number;
|
66
|
+
} | {
|
67
|
+
top: number;
|
68
|
+
}) => void);
|
69
|
+
$el: any;
|
70
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
71
|
+
active: boolean;
|
72
|
+
index: number;
|
73
|
+
hasError: boolean;
|
74
|
+
hasChanges: boolean;
|
75
|
+
title: string;
|
76
|
+
icon: SVGComponent | undefined;
|
77
|
+
side?: boolean;
|
78
|
+
}> & Readonly<{
|
79
|
+
onClick?: ((value: MouseEvent) => any) | undefined;
|
80
|
+
"onUpdate:indicator-style"?: ((value: import('vue').CSSProperties) => any) | undefined;
|
81
|
+
"onUpdate:scroll-position"?: ((value: {
|
82
|
+
left: number;
|
83
|
+
} | {
|
84
|
+
top: number;
|
85
|
+
}) => any) | undefined;
|
86
|
+
}>, {
|
87
|
+
update: () => void;
|
88
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
89
|
+
click: (value: MouseEvent) => any;
|
90
|
+
"update:indicator-style": (value: import('vue').CSSProperties) => any;
|
91
|
+
"update:scroll-position": (value: {
|
92
|
+
left: number;
|
93
|
+
} | {
|
94
|
+
top: number;
|
95
|
+
}) => any;
|
96
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
97
|
+
beforeCreate?: (() => void) | (() => void)[];
|
98
|
+
created?: (() => void) | (() => void)[];
|
99
|
+
beforeMount?: (() => void) | (() => void)[];
|
100
|
+
mounted?: (() => void) | (() => void)[];
|
101
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
102
|
+
updated?: (() => void) | (() => void)[];
|
103
|
+
activated?: (() => void) | (() => void)[];
|
104
|
+
deactivated?: (() => void) | (() => void)[];
|
105
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
106
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
107
|
+
destroyed?: (() => void) | (() => void)[];
|
108
|
+
unmounted?: (() => void) | (() => void)[];
|
109
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
110
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
111
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
112
|
+
};
|
113
|
+
$forceUpdate: () => void;
|
114
|
+
$nextTick: typeof import('vue').nextTick;
|
115
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
116
|
+
} & Readonly<{}> & Omit<Readonly<{
|
117
|
+
active: boolean;
|
118
|
+
index: number;
|
119
|
+
hasError: boolean;
|
120
|
+
hasChanges: boolean;
|
121
|
+
title: string;
|
122
|
+
icon: SVGComponent | undefined;
|
123
|
+
side?: boolean;
|
124
|
+
}> & Readonly<{
|
125
|
+
onClick?: ((value: MouseEvent) => any) | undefined;
|
126
|
+
"onUpdate:indicator-style"?: ((value: import('vue').CSSProperties) => any) | undefined;
|
127
|
+
"onUpdate:scroll-position"?: ((value: {
|
128
|
+
left: number;
|
129
|
+
} | {
|
130
|
+
top: number;
|
131
|
+
}) => any) | undefined;
|
132
|
+
}>, "update"> & import('vue').ShallowUnwrapRef<{
|
133
|
+
update: () => void;
|
134
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
135
|
+
$slots: {
|
136
|
+
title?(_: {}): any;
|
137
|
+
suffix?(_: {}): any;
|
138
|
+
right?(_: {}): any;
|
139
|
+
};
|
140
|
+
}) | null)[];
|
141
|
+
tabItem: (({
|
142
|
+
$: import('vue').ComponentInternalInstance;
|
143
|
+
$data: {};
|
144
|
+
$props: {
|
145
|
+
readonly active: boolean;
|
146
|
+
readonly removable: boolean;
|
147
|
+
readonly "onUpdate:height"?: ((value: number) => any) | undefined;
|
148
|
+
readonly "onUpdate:active"?: (() => any) | undefined;
|
149
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
150
|
+
$attrs: {
|
151
|
+
[x: string]: unknown;
|
152
|
+
};
|
153
|
+
$refs: {
|
154
|
+
[x: string]: unknown;
|
155
|
+
} & {
|
156
|
+
element: HTMLDivElement;
|
157
|
+
};
|
158
|
+
$slots: Readonly<{
|
159
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
160
|
+
}>;
|
161
|
+
$root: import('vue').ComponentPublicInstance | null;
|
162
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
163
|
+
$host: Element | null;
|
164
|
+
$emit: ((event: "update:height", value: number) => void) & ((event: "update:active") => void);
|
165
|
+
$el: any;
|
166
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
167
|
+
active: boolean;
|
168
|
+
removable: boolean;
|
169
|
+
}> & Readonly<{
|
170
|
+
"onUpdate:height"?: ((value: number) => any) | undefined;
|
171
|
+
"onUpdate:active"?: (() => any) | undefined;
|
172
|
+
}>, {
|
173
|
+
emitHeight: () => void;
|
174
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
175
|
+
"update:height": (value: number) => any;
|
176
|
+
"update:active": () => any;
|
177
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
178
|
+
beforeCreate?: (() => void) | (() => void)[];
|
179
|
+
created?: (() => void) | (() => void)[];
|
180
|
+
beforeMount?: (() => void) | (() => void)[];
|
181
|
+
mounted?: (() => void) | (() => void)[];
|
182
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
183
|
+
updated?: (() => void) | (() => void)[];
|
184
|
+
activated?: (() => void) | (() => void)[];
|
185
|
+
deactivated?: (() => void) | (() => void)[];
|
186
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
187
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
188
|
+
destroyed?: (() => void) | (() => void)[];
|
189
|
+
unmounted?: (() => void) | (() => void)[];
|
190
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
191
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
192
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
193
|
+
};
|
194
|
+
$forceUpdate: () => void;
|
195
|
+
$nextTick: typeof import('vue').nextTick;
|
196
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
197
|
+
} & Readonly<{}> & Omit<Readonly<{
|
198
|
+
active: boolean;
|
199
|
+
removable: boolean;
|
200
|
+
}> & Readonly<{
|
201
|
+
"onUpdate:height"?: ((value: number) => any) | undefined;
|
202
|
+
"onUpdate:active"?: (() => any) | undefined;
|
203
|
+
}>, "emitHeight"> & import('vue').ShallowUnwrapRef<{
|
204
|
+
emitHeight: () => void;
|
205
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
206
|
+
$slots: {
|
207
|
+
default?(_: {}): any;
|
208
|
+
};
|
209
|
+
}) | null)[];
|
210
|
+
form: (({
|
211
|
+
$: import('vue').ComponentInternalInstance;
|
212
|
+
$data: {};
|
213
|
+
$props: {
|
214
|
+
readonly name?: string | undefined;
|
215
|
+
readonly title?: string | undefined;
|
216
|
+
readonly "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
|
217
|
+
readonly "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
|
218
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
219
|
+
$attrs: {
|
220
|
+
[x: string]: unknown;
|
221
|
+
};
|
222
|
+
$refs: {
|
223
|
+
[x: string]: unknown;
|
224
|
+
};
|
225
|
+
$slots: Readonly<{
|
226
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
227
|
+
}>;
|
228
|
+
$root: import('vue').ComponentPublicInstance | null;
|
229
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
230
|
+
$host: Element | null;
|
231
|
+
$emit: ((event: "update:has-changes", value: boolean) => void) & ((event: "update:is-valid", value: boolean | undefined) => void);
|
232
|
+
$el: any;
|
233
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
234
|
+
name?: string;
|
235
|
+
title?: string;
|
236
|
+
}> & Readonly<{
|
237
|
+
"onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
|
238
|
+
"onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
|
239
|
+
}>, {
|
240
|
+
isValid: import('vue').ComputedRef<boolean>;
|
241
|
+
validate: (silent?: boolean, path?: import('../Form/use/useFormValidateMap').ValidatePath) => string | undefined;
|
242
|
+
invalidate: (payload: {
|
243
|
+
[x: string]: string | string[] | undefined;
|
244
|
+
}) => void;
|
245
|
+
initModel: () => void;
|
246
|
+
errorMessage: import('vue').ComputedRef<string>;
|
247
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
248
|
+
"update:has-changes": (value: boolean) => any;
|
249
|
+
"update:is-valid": (value: boolean | undefined) => any;
|
250
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
251
|
+
beforeCreate?: (() => void) | (() => void)[];
|
252
|
+
created?: (() => void) | (() => void)[];
|
253
|
+
beforeMount?: (() => void) | (() => void)[];
|
254
|
+
mounted?: (() => void) | (() => void)[];
|
255
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
256
|
+
updated?: (() => void) | (() => void)[];
|
257
|
+
activated?: (() => void) | (() => void)[];
|
258
|
+
deactivated?: (() => void) | (() => void)[];
|
259
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
260
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
261
|
+
destroyed?: (() => void) | (() => void)[];
|
262
|
+
unmounted?: (() => void) | (() => void)[];
|
263
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
264
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
265
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
266
|
+
};
|
267
|
+
$forceUpdate: () => void;
|
268
|
+
$nextTick: typeof import('vue').nextTick;
|
269
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
270
|
+
} & Readonly<{}> & Omit<Readonly<{
|
271
|
+
name?: string;
|
272
|
+
title?: string;
|
273
|
+
}> & Readonly<{
|
274
|
+
"onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
|
275
|
+
"onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
|
276
|
+
}>, "errorMessage" | "isValid" | "validate" | "invalidate" | "initModel"> & import('vue').ShallowUnwrapRef<{
|
277
|
+
isValid: import('vue').ComputedRef<boolean>;
|
278
|
+
validate: (silent?: boolean, path?: import('../Form/use/useFormValidateMap').ValidatePath) => string | undefined;
|
279
|
+
invalidate: (payload: {
|
280
|
+
[x: string]: string | string[] | undefined;
|
281
|
+
}) => void;
|
282
|
+
initModel: () => void;
|
283
|
+
errorMessage: import('vue').ComputedRef<string>;
|
284
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
285
|
+
$slots: {
|
286
|
+
default?(_: {}): any;
|
287
|
+
};
|
288
|
+
}) | null)[];
|
289
|
+
}, any, import('vue').ComponentProvideOptions, {
|
290
|
+
P: {};
|
291
|
+
B: {};
|
292
|
+
D: {};
|
293
|
+
C: {};
|
294
|
+
M: {};
|
295
|
+
Defaults: {};
|
296
|
+
}, Readonly<import('./types').TabsProps> & Readonly<{
|
297
|
+
"onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
|
298
|
+
"onUpdate:current"?: ((value: string) => any) | undefined;
|
299
|
+
"onUpdate:current-index"?: ((value: number) => any) | undefined;
|
300
|
+
"onUpdate:current-title"?: ((value: string) => any) | undefined;
|
301
|
+
"onUpdate:tabs-length"?: ((value: number) => any) | undefined;
|
302
|
+
}>, {
|
303
|
+
updateCurrent: (value: string) => void;
|
304
|
+
updateIndex: (value: number) => void;
|
305
|
+
next: () => void;
|
306
|
+
previous: () => void;
|
307
|
+
validate: (index: number, silent?: boolean | undefined, path?: import('../Form/use/useFormValidateMap').ValidatePath | undefined) => ReturnType<ComponentInstance<typeof import('../Form/WForm.vue').default>["validate"]>;
|
308
|
+
invalidate: (index: number, payload: {
|
309
|
+
[x: string]: string | string[] | undefined;
|
310
|
+
}) => ReturnType<ComponentInstance<typeof import('../Form/WForm.vue').default>["invalidate"]>;
|
311
|
+
initModel: (index: number) => ReturnType<ComponentInstance<typeof import('../Form/WForm.vue').default>["initModel"]>;
|
312
|
+
}, {}, {}, {}, {}> | null;
|
313
|
+
};
|
314
|
+
attrs: Partial<{}>;
|
315
|
+
};
|
316
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
317
|
+
declare const __VLS_component: import('vue').DefineComponent<TabsStepperProps, {
|
3
318
|
next: () => void;
|
4
319
|
previous: () => void;
|
5
320
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
@@ -326,5 +641,11 @@ declare const _default: import('vue').DefineComponent<TabsStepperProps, {
|
|
326
641
|
initModel: (index: number) => ReturnType<ComponentInstance<typeof import('../Form/WForm.vue').default>["initModel"]>;
|
327
642
|
}, {}, {}, {}, {}> | null;
|
328
643
|
}, any>;
|
644
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
329
645
|
export default _default;
|
646
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
647
|
+
new (): {
|
648
|
+
$slots: S;
|
649
|
+
};
|
650
|
+
};
|
330
651
|
//# sourceMappingURL=WTabsStepper.vue.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WTabsStepper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/WTabsStepper.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WTabsStepper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/WTabsStepper.vue"],"names":[],"mappings":"AAgFA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,SAAS,CAAA;AAmF7C,iBAAS,cAAc;;yBA4HO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAoE6xd,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA1Dt6d,OAAO,IAA6B;EAEjD;AAoBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;gBA3MJ,IAAI;oBAJA,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAkPqyd,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAlBl7d,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent,
|
1
|
+
import { defineComponent, useTemplateRef, ref, computed, watch, openBlock, createBlock, mergeProps, withCtx, renderSlot } from 'vue';
|
2
2
|
import _sfc_main$1 from './WTabs.vue.js';
|
3
3
|
import { Notify } from '../../utils/Notify.js';
|
4
4
|
|
@@ -14,9 +14,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
14
|
setup(__props, { expose: __expose, emit: __emit }) {
|
15
15
|
const props = __props;
|
16
16
|
const emit = __emit;
|
17
|
-
const slots = useSlots();
|
18
17
|
const tabsRef = useTemplateRef("tabs");
|
19
|
-
const defaultSlots = computed(() => props.customSlots ?? slots.default?.() ?? []);
|
20
18
|
const tabsLength = ref(0);
|
21
19
|
const current = ref(0);
|
22
20
|
const first = computed(() => current.value === 0);
|
@@ -47,10 +45,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
47
45
|
previous
|
48
46
|
});
|
49
47
|
return (_ctx, _cache) => {
|
50
|
-
return openBlock(), createBlock(_sfc_main$1, mergeProps({ ref: "tabs" }, {
|
51
|
-
...props,
|
52
|
-
customSlots: defaultSlots.value
|
53
|
-
}, {
|
48
|
+
return openBlock(), createBlock(_sfc_main$1, mergeProps({ ref: "tabs" }, props, {
|
54
49
|
"no-header": "",
|
55
50
|
"onUpdate:current": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:current", $event)),
|
56
51
|
"onUpdate:currentIndex": _cache[1] || (_cache[1] = ($event) => {
|
@@ -60,7 +55,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
60
55
|
"onUpdate:currentTitle": _cache[2] || (_cache[2] = ($event) => _ctx.$emit("update:current-title", $event)),
|
61
56
|
"onUpdate:hasChanges": _cache[3] || (_cache[3] = ($event) => _ctx.$emit("update:has-changes", $event)),
|
62
57
|
"onUpdate:tabsLength": _cache[4] || (_cache[4] = ($event) => tabsLength.value = $event)
|
63
|
-
}),
|
58
|
+
}), {
|
59
|
+
default: withCtx(() => [
|
60
|
+
renderSlot(_ctx.$slots, "default")
|
61
|
+
]),
|
62
|
+
_: 3
|
63
|
+
}, 16);
|
64
64
|
};
|
65
65
|
}
|
66
66
|
});
|