Skip to content

Commit fa07492

Browse files
Merge pull request #28 from webdevnerdstuff/dev
Dev
2 parents 59520e3 + 7c68c52 commit fa07492

14 files changed

+1639
-1525
lines changed

.github/CONTRIBUTING.md

+8-9
Original file line numberDiff line numberDiff line change
@@ -19,31 +19,30 @@ Fork using the command line:
1919
### Make your update:
2020

2121
Make your changes to the file(s) you'd like to update.
22-
Update the CHANGELOG.md with the updates you made, please include the date and Github username.
2322

2423
### Open a pull request
2524
When you're done making changes and you'd like to propose them for review, open your PR (pull request).
2625

2726
### Submit your PR & get it reviewed
28-
- Once you submit your PR, others from the Vue Unicorn Log community will review it with you.
27+
- Once you submit your PR, others from the Vuetify Stepper Form community will review it with you.
2928
- After that, we may have questions, check back on your PR to keep up with the conversation.
3029

3130
### Your PR is merged!
3231
Congratulations! The whole GitHub community thanks you. :sparkles:
3332

3433
Once your PR is merged, you will be proudly listed as a contributor in the [contributor chart](https://github.com/webdevnerdstuff/vuetify-stepper-form/graphs/contributors).
3534

36-
### Keep contributing as you use Vue Unicorn Log
35+
### Keep contributing as you use Vuetify Stepper Form
3736

38-
Now that you're a part of the Vue Unicorn Log community, you can keep participating in many ways.
37+
Now that you're a part of the Vuetify Stepper Form community, you can keep participating in many ways.
3938

4039
## Types of contributions
41-
You can contribute to the Vue Unicorn Log content and site in several ways. This repo is a place to discuss and collaborate on Vue Unicorn Log! Our small, but mighty team is maintaining this repo, to preserve our bandwidth, off topic conversations will be closed.
40+
You can contribute to the Vuetify Stepper Form content and site in several ways. This repo is a place to discuss and collaborate on Vuetify Stepper Form! Our small, but mighty team is maintaining this repo, to preserve our bandwidth, off topic conversations will be closed.
4241

4342
### :mega: Discussions
4443
Discussions are where we have conversations.
4544

46-
If you'd like help troubleshooting a Vue Unicorn Log PR you're working on, have a great new idea, or want to share something amazing you've learned, join us in [discussions](https://github.com/webdevnerdstuff/vuetify-stepper-form/discussions).
45+
If you'd like help troubleshooting a Vuetify Stepper Form PR you're working on, have a great new idea, or want to share something amazing you've learned, join us in [discussions](https://github.com/webdevnerdstuff/vuetify-stepper-form/discussions).
4746

4847
### :beetle: Issues
4948
[Issues](https://docs.github.com/en/github/managing-your-work-on-github/about-issues) are used to track tasks that contributors can help with.
@@ -75,13 +74,13 @@ suggestions to improve the code or adding of additional features.
7574
## Opening a pull request
7675
You can use the GitHub user interface for some small changes, like fixing a typo or updating a readme. You can also fork the repo and then clone it locally, to view changes and run your tests on your machine.
7776

78-
## Working in the Vue Unicorn Log repository
79-
Here's some information that might be helpful while working on a Vue Unicorn Log PR:
77+
## Working in the Vuetify Stepper Form repository
78+
Here's some information that might be helpful while working on a Vuetify Stepper Form PR:
8079

8180
<!-- - [Development](/contributing/development.md) - This short guide describes how to get this app running on your local machine. -->
8281

8382
## Reviewing
84-
We (usually the Vue Unicorn Log team) review every single PR. The purpose of reviews is to create the best content we can for people who use GitHub.
83+
We (usually the Vuetify Stepper Form team) review every single PR. The purpose of reviews is to create the best content we can for people who use GitHub.
8584

8685
- Reviews are always respectful, acknowledging that everyone did the best possible job with the knowledge they had at the time.
8786
- Reviews discuss content, not the person who created it.

.release-it.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"git": {
3+
"commitMessage": "chore: release ${version}",
4+
"tagName": "v${version}"
5+
},
6+
"npm": {
7+
"publish": true
8+
},
9+
"github": {
10+
"release": true,
11+
"releaseName": "v${version}"
12+
}
13+
}

CHANGELOG.md

-7
This file was deleted.

README.md

-5
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ The Vuetify Stepper Form plugin provides a structured way to create multi-step f
3232
[VeeValidate](https://vee-validate.logaretm.com/v4/)
3333

3434

35-
## Change Log
36-
37-
[CHANGELOG](https://github.com/webdevnerdstuff/vuetify-stepper-form/blob/master/CHANGELOG.md)
38-
39-
4035
## License
4136

4237
Copyright (c) 2023 WebDevNerdStuff

dist/plugin/VStepperForm.vue.d.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,18 @@ type __VLS_PublicProps = {
66
declare function __VLS_template(): {
77
slots: Partial<Record<NonNullable<string | number>, (_: any) => any>>;
88
refs: {
9-
stepperFormRef: any;
9+
stepperFormRef: HTMLFormElement;
1010
};
1111
attrs: Partial<{}>;
1212
};
1313
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
1414
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{}>, {
1515
width: string;
1616
readonly disabled: boolean;
17-
readonly editable: boolean;
17+
editable: import('vuetify/lib/components/index.mjs').VStepperItem["editable"];
1818
autoPageDelay: number;
1919
direction: "horizontal" | "vertical";
20+
jumpAhead: boolean;
2021
keepValuesOnUnmount: boolean;
2122
navButtonSize: import('vuetify/lib/components/index.mjs').VBtn["size"];
2223
tooltipLocation: import('vuetify/lib/components/index.mjs').VTooltip["location"];

dist/plugin/components/fields/VSFCustom/VSFCustom.vue.d.ts

+54-6
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,57 @@ type __VLS_PublicProps = {
55
} & typeof __VLS_typeProps;
66
declare function __VLS_template(): {
77
slots: Partial<Record<string, (_: {
8-
errorMessage: any;
8+
prevText?: string | undefined;
9+
nextText?: string | undefined;
10+
theme?: string | undefined;
11+
tag?: string | undefined;
12+
rounded?: string | number | boolean | undefined;
13+
tile?: boolean | undefined;
14+
elevation?: string | number | undefined;
15+
height?: string | number | undefined;
16+
maxHeight?: string | number | undefined;
17+
maxWidth?: string | number | undefined;
18+
minHeight?: string | number | undefined;
19+
minWidth?: string | number | undefined;
20+
width?: string | undefined;
21+
border?: string | number | boolean | undefined;
22+
color?: string | undefined;
23+
selectedClass?: string | undefined;
24+
disabled?: boolean | undefined;
25+
altLabels?: boolean | undefined;
26+
bgColor?: string | undefined;
27+
editIcon?: string | undefined;
28+
editable?: import('vuetify/lib/components/index.mjs').VStepperItem["editable"] | undefined;
29+
errorIcon?: import('vuetify/lib/components/index.mjs').VStepperItem["errorIcon"] | undefined;
30+
hideActions?: boolean | undefined;
31+
flat?: boolean | undefined;
32+
autoPage?: boolean | undefined;
33+
autoPageDelay?: number | undefined;
34+
density?: import('../../../types').GlobalDensity | undefined;
35+
direction?: ("horizontal" | "vertical") | undefined;
36+
fieldColumns?: import('../../../types').ResponsiveColumns | undefined;
37+
headerTooltips?: boolean | undefined;
38+
hideDetails?: import('../../../types').GlobalHideDetails;
39+
jumpAhead?: boolean | undefined;
40+
keepValuesOnUnmount?: boolean | undefined;
41+
navButtonSize?: import('vuetify/lib/components/index.mjs').VBtn["size"] | undefined;
42+
navButtonVariant?: import('vuetify/lib/components/index.mjs').VBtn["variant"] | undefined;
43+
summaryColumns?: import('../../../types').ResponsiveColumns | undefined;
44+
title?: string | undefined;
45+
tooltipLocation?: import('vuetify/lib/components/index.mjs').VTooltip["location"] | undefined;
46+
tooltipOffset?: import('vuetify/lib/components/index.mjs').VTooltip["offset"];
47+
tooltipTransition?: import('vuetify/lib/components/index.mjs').VTooltip["transition"] | undefined;
48+
validateOn?: import('../../../types').Field["validateOn"];
49+
validateOnMount?: boolean | undefined;
50+
variant?: string | undefined;
51+
transition?: import('vuetify/lib/components/index.mjs').VStepperWindowItem["transition"] | undefined;
52+
FieldLabel: import('vue').DefineComponent<import('../../shared/FieldLabel.vue').FieldLabelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('../../shared/FieldLabel.vue').FieldLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
53+
blur: () => Promise<void>;
54+
change: () => Promise<void>;
55+
input: () => Promise<void>;
956
field: {
1057
options: KeyStringAny<any> | undefined;
58+
required: boolean | undefined;
1159
prevText?: string | undefined;
1260
nextText?: string | undefined;
1361
theme?: string | undefined;
@@ -28,7 +76,7 @@ declare function __VLS_template(): {
2876
altLabels?: boolean | undefined;
2977
bgColor?: string | undefined;
3078
editIcon?: string | undefined;
31-
editable?: boolean | undefined;
79+
editable?: import('vuetify/lib/components/index.mjs').VStepperItem["editable"] | undefined;
3280
errorIcon?: import('vuetify/lib/components/index.mjs').VStepperItem["errorIcon"] | undefined;
3381
hideActions?: boolean | undefined;
3482
flat?: boolean | undefined;
@@ -39,8 +87,10 @@ declare function __VLS_template(): {
3987
fieldColumns?: import('../../../types').ResponsiveColumns | undefined;
4088
headerTooltips?: boolean | undefined;
4189
hideDetails?: import('../../../types').GlobalHideDetails;
90+
jumpAhead?: boolean | undefined;
4291
keepValuesOnUnmount?: boolean | undefined;
4392
navButtonSize?: import('vuetify/lib/components/index.mjs').VBtn["size"] | undefined;
93+
navButtonVariant?: import('vuetify/lib/components/index.mjs').VBtn["variant"] | undefined;
4494
summaryColumns?: import('../../../types').ResponsiveColumns | undefined;
4595
title?: string | undefined;
4696
tooltipLocation?: import('vuetify/lib/components/index.mjs').VTooltip["location"] | undefined;
@@ -50,11 +100,9 @@ declare function __VLS_template(): {
50100
validateOnMount?: boolean | undefined;
51101
variant?: string | undefined;
52102
transition?: import('vuetify/lib/components/index.mjs').VStepperWindowItem["transition"] | undefined;
103+
errorMessages: any;
104+
modelValue: any;
53105
};
54-
FieldLabel: import('vue').DefineComponent<import('../../shared/FieldLabel.vue').FieldLabelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('../../shared/FieldLabel.vue').FieldLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
55-
blur: () => Promise<void>;
56-
change: () => Promise<void>;
57-
input: () => Promise<void>;
58106
}) => any>>;
59107
refs: {};
60108
attrs: Partial<{}>;

dist/plugin/components/fields/VSFSwitch/index.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ interface InternalField extends Omit<Field, 'inline' | 'inlineSpacing' | 'labelP
55
color?: VSwitch['color'];
66
density?: VSwitch['density'];
77
falseIcon?: VSwitch['falseIcon'];
8+
falseValue?: VSwitch['falseValue'];
89
hideDetails?: VSwitch['hideDetails'];
10+
trueValue?: VSwitch['trueValue'];
911
}
1012
export interface VSFSwitchProps extends SharedProps {
1113
field: InternalField;

dist/plugin/components/shared/PageReviewContainer.vue.d.ts

-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ type __VLS_PublicProps = {
99
modelValue?: any;
1010
} & typeof __VLS_typeProps;
1111
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12-
submit: (...args: any[]) => void;
1312
goToQuestion: (...args: any[]) => void;
1413
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
15-
onSubmit?: ((...args: any[]) => any) | undefined;
1614
onGoToQuestion?: ((...args: any[]) => any) | undefined;
1715
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
1816
export default _default;

dist/plugin/composables/helpers.d.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { UseAutoPage, UseBuildSettings, UseColumnErrorCheck, UseDeepMerge } from '../types';
1+
import { UseAutoPage, UseBuildSettings, UseColumnErrorCheck, UseDeepMerge, UseGetFirstAndLastEditableFalse } from '../types';
22
export declare const useDeepMerge: UseDeepMerge;
33
/**
44
* Builds the settings object.
@@ -12,3 +12,4 @@ export declare const useAutoPage: UseAutoPage;
1212
* Checks if the column values are between 1 and 12.
1313
*/
1414
export declare const useColumnErrorCheck: UseColumnErrorCheck;
15+
export declare const useGetFirstAndLastEditableFalse: UseGetFirstAndLastEditableFalse;
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { UseHandleJumpAhead, UseHandleNonJumpAhead } from '../types';
2+
declare const useHandleJumpAhead: UseHandleJumpAhead;
3+
declare const useHandleNonJumpAhead: UseHandleNonJumpAhead;
4+
export { useHandleJumpAhead, useHandleNonJumpAhead, };

dist/plugin/types/index.d.ts

+40-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { FieldValidator, FormValidationResult, GenericObject } from 'vee-validate';
2-
import { App } from 'vue';
2+
import { App, MaybeRef } from 'vue';
33
import { VBtn, VStepper, VStepperItem, VStepperWindowItem, VTooltip } from 'vuetify/components';
44
import { ValidationRule } from 'vuetify/composables/validation';
55
import { Schema } from 'yup';
@@ -80,12 +80,15 @@ export interface Props extends /* @vue-ignore */ VStepperProps, VStepperWindowIt
8080
color?: string | undefined;
8181
density?: GlobalDensity;
8282
direction?: 'horizontal' | 'vertical';
83+
editable?: VStepperItem['editable'];
8384
errorIcon?: VStepperItem['errorIcon'];
8485
fieldColumns?: ResponsiveColumns | undefined;
8586
headerTooltips?: boolean;
8687
hideDetails?: GlobalHideDetails;
88+
jumpAhead?: boolean;
8789
keepValuesOnUnmount?: boolean;
8890
navButtonSize?: VBtn['size'];
91+
navButtonVariant?: VBtn['variant'];
8992
summaryColumns?: ResponsiveColumns;
9093
title?: string;
9194
tooltipLocation?: VTooltip['location'];
@@ -120,7 +123,7 @@ export interface UseBuildSettings {
120123
(props: Settings): Settings;
121124
}
122125
export interface UseDeepMerge {
123-
(A: Record<string, any>, B: Record<string, any>, C: Record<string, any>): Record<string, any>;
126+
(A: Record<string, any>, B: Record<string, any>, C?: Record<string, any>): Record<string, any>;
124127
}
125128
export interface UseAutoPage {
126129
(options: {
@@ -138,6 +141,12 @@ export interface UseColumnErrorCheck {
138141
propName?: string;
139142
}): void;
140143
}
144+
export interface UseGetFirstAndLastEditableFalse {
145+
(pages: Page[]): {
146+
firstNonEditableIndex: number;
147+
lastNonEditableIndex: number;
148+
};
149+
}
141150
export type ComputedClasses = Record<string, boolean>;
142151
export interface UseContainerClasses {
143152
(options: {
@@ -156,6 +165,35 @@ export interface UseColumnClasses {
156165
propName?: string;
157166
}): ComputedClasses;
158167
}
168+
export interface UseHandleJumpAhead {
169+
(options: {
170+
currentPageEditable: boolean;
171+
currentPageIdx: MaybeRef<number>;
172+
firstNonEditableIndex: number;
173+
lastNonEditableIndex: number;
174+
lastPageIdx: number;
175+
nextPageEditable: boolean;
176+
nextPageNotEditable: boolean;
177+
pageIdx: number;
178+
pageNotEditable: boolean;
179+
previousPageEditable: boolean;
180+
previousPageNotEditable: boolean;
181+
}): boolean;
182+
}
183+
export interface UseHandleNonJumpAhead {
184+
(options: {
185+
currentPageEditable: boolean;
186+
currentPageIdx: MaybeRef<number>;
187+
firstNonEditableIndex: number;
188+
lastNonEditableIndex: number;
189+
lastPageIdx: number;
190+
nextPageEditable: boolean;
191+
nextPageNotEditable: boolean;
192+
pageEditable: boolean;
193+
pageIdx: number;
194+
pageNotEditable: boolean;
195+
}): boolean;
196+
}
159197
declare module 'vue' {
160198
interface ComponentCustomProperties {
161199
}

dist/plugin/utils/props.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export declare const AllProps: {
33
direction: "horizontal";
44
disabled: boolean;
55
editable: boolean;
6+
jumpAhead: boolean;
67
keepValuesOnUnmount: boolean;
78
navButtonSize: "large";
89
tooltipLocation: "bottom";

dist/vuetify-stepper-form.cjs.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)