@cocoar/vue-ui 2.7.0 → 2.8.0
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/wizard/CoarWizard.vue.d.ts +99 -0
- package/dist/components/wizard/CoarWizard.vue.d.ts.map +1 -0
- package/dist/components/wizard/index.d.ts +3 -0
- package/dist/components/wizard/index.d.ts.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +485 -301
- package/package.json +2 -2
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
export interface CoarWizardStep {
|
|
2
|
+
/** Stable id — also the name of the content slot for this step. */
|
|
3
|
+
id: string;
|
|
4
|
+
/** Visible label in the indicator. */
|
|
5
|
+
label: string;
|
|
6
|
+
/** Optional second line under the label. */
|
|
7
|
+
description?: string;
|
|
8
|
+
/** Shown muted + marked "optional" in the indicator. */
|
|
9
|
+
optional?: boolean;
|
|
10
|
+
/** When `false`, the built-in Next button is disabled on this step (gate). */
|
|
11
|
+
canAdvance?: boolean;
|
|
12
|
+
/** Prevents navigating to this step from the indicator. */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export type WizardIndicatorPosition = 'top' | 'right' | 'bottom' | 'left';
|
|
16
|
+
export interface CoarWizardProps {
|
|
17
|
+
/** Ordered steps. Each `id` is the name of that step's content slot. */
|
|
18
|
+
steps: CoarWizardStep[];
|
|
19
|
+
/** Which edge the step indicator sits on. */
|
|
20
|
+
indicatorPosition?: WizardIndicatorPosition;
|
|
21
|
+
/** Allow jumping to any (non-disabled) step from the indicator, not just
|
|
22
|
+
* completed ones. Default linear (only completed steps are clickable). */
|
|
23
|
+
freeNavigation?: boolean;
|
|
24
|
+
/** Hide the built-in Back / Next / Finish footer. */
|
|
25
|
+
hideFooter?: boolean;
|
|
26
|
+
/** Skip the body height + content transition (also auto-skipped under
|
|
27
|
+
* `prefers-reduced-motion`). */
|
|
28
|
+
disableAnimation?: boolean;
|
|
29
|
+
backLabel?: string;
|
|
30
|
+
nextLabel?: string;
|
|
31
|
+
finishLabel?: string;
|
|
32
|
+
}
|
|
33
|
+
type __VLS_Props = CoarWizardProps;
|
|
34
|
+
declare function goTo(id: string): void;
|
|
35
|
+
declare function next(): void;
|
|
36
|
+
declare function back(): void;
|
|
37
|
+
type __VLS_PublicProps = {
|
|
38
|
+
'step'?: string | undefined;
|
|
39
|
+
} & __VLS_Props;
|
|
40
|
+
declare function __VLS_template(): {
|
|
41
|
+
attrs: Partial<{}>;
|
|
42
|
+
slots: Partial<Record<string, (_: {
|
|
43
|
+
step: CoarWizardStep | undefined;
|
|
44
|
+
index: number;
|
|
45
|
+
}) => any>> & {
|
|
46
|
+
footer?(_: {
|
|
47
|
+
next: typeof next;
|
|
48
|
+
back: typeof back;
|
|
49
|
+
goTo: typeof goTo;
|
|
50
|
+
isFirst: boolean;
|
|
51
|
+
isLast: boolean;
|
|
52
|
+
canAdvance: boolean;
|
|
53
|
+
activeStep: CoarWizardStep | undefined;
|
|
54
|
+
activeIndex: number;
|
|
55
|
+
}): any;
|
|
56
|
+
};
|
|
57
|
+
refs: {
|
|
58
|
+
rootEl: HTMLDivElement;
|
|
59
|
+
indicatorEl: HTMLDivElement;
|
|
60
|
+
bodyEl: HTMLDivElement;
|
|
61
|
+
contentEl: HTMLDivElement;
|
|
62
|
+
};
|
|
63
|
+
rootEl: HTMLDivElement;
|
|
64
|
+
};
|
|
65
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
66
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
67
|
+
next: typeof next;
|
|
68
|
+
back: typeof back;
|
|
69
|
+
goTo: typeof goTo;
|
|
70
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
71
|
+
finish: () => any;
|
|
72
|
+
"step-change": (id: string, index: number) => any;
|
|
73
|
+
"update:step": (value: string | undefined) => any;
|
|
74
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
75
|
+
onFinish?: (() => any) | undefined;
|
|
76
|
+
"onStep-change"?: ((id: string, index: number) => any) | undefined;
|
|
77
|
+
"onUpdate:step"?: ((value: string | undefined) => any) | undefined;
|
|
78
|
+
}>, {
|
|
79
|
+
indicatorPosition: WizardIndicatorPosition;
|
|
80
|
+
freeNavigation: boolean;
|
|
81
|
+
hideFooter: boolean;
|
|
82
|
+
disableAnimation: boolean;
|
|
83
|
+
backLabel: string;
|
|
84
|
+
nextLabel: string;
|
|
85
|
+
finishLabel: string;
|
|
86
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
87
|
+
rootEl: HTMLDivElement;
|
|
88
|
+
indicatorEl: HTMLDivElement;
|
|
89
|
+
bodyEl: HTMLDivElement;
|
|
90
|
+
contentEl: HTMLDivElement;
|
|
91
|
+
}, HTMLDivElement>;
|
|
92
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
93
|
+
export default _default;
|
|
94
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
95
|
+
new (): {
|
|
96
|
+
$slots: S;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
//# sourceMappingURL=CoarWizard.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoarWizard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/wizard/CoarWizard.vue"],"names":[],"mappings":"AA4fA,MAAM,WAAW,cAAc;IAC7B,mEAAmE;IACnE,EAAE,EAAE,MAAM,CAAC;IACX,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,4CAA4C;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wDAAwD;IACxD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,8EAA8E;IAC9E,UAAU,CAAC,EAAE,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