Skip to content

Commit a7ab5c7

Browse files
Merge pull request #32 from webdevnerdstuff/dev
Dev
2 parents 521daca + f3fc515 commit a7ab5c7

File tree

22 files changed

+1102
-1812
lines changed

22 files changed

+1102
-1812
lines changed

cypress.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ export default defineConfig({
2323
viewportHeight: 800,
2424
viewportWidth: 1920,
2525
},
26+
27+
numTestsKeptInMemory: 0,
2628
});

cypress/support/component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import VStepperForm from '../../src/plugin/VStepperForm.vue';
77
import * as DATA from '../templates/testData';
88
import type { Component } from 'vue';
99
import "cypress-real-events";
10+
import { pluginOptionsInjectionKey } from '../../src/plugin/utils/globals';
1011

1112

1213
// declare global {
@@ -95,7 +96,7 @@ Cypress.Commands.add('mountComponent', (options: MountComponentOptions = {}) =>
9596
validationSchema: stepperProps.validationSchema ?? undefined,
9697
...stepperProps,
9798
},
98-
global: { provide: { globalOptions: { ...globalOptions, ...globalProps }, }, },
99+
global: { provide: { [pluginOptionsInjectionKey]: { ...globalOptions, ...globalProps }, }, },
99100
}).as('wrapper');
100101
});
101102
});

cypress/templates/testData.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
object as yupObject,
66
} from 'yup';
77
import { useDeepMerge } from '../../src/plugin/composables/helpers';
8+
import { pluginOptionsInjectionKey } from '../../src/plugin/utils/globals';
89

910

1011
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Shared //
@@ -143,7 +144,6 @@ const defaultFields = {
143144
name: 'combobox',
144145
placeholder: 'Select an item',
145146
type: 'combobox' as const,
146-
variant: 'outlined',
147147
},
148148
color: {
149149
label: 'Color',
@@ -592,7 +592,7 @@ const navigationTest = {
592592
},
593593
global: {
594594
provide: {
595-
globalOptions: {
595+
[pluginOptionsInjectionKey]: {
596596
color: 'primary',
597597
validateOn: 'blur',
598598
variant: 'outlined',

dist/FieldLabel-BRQ0K1ZH.mjs renamed to dist/FieldLabel-C78b4p01.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { FieldLabel as a } from "./vuetify-stepper-form.es.js";
22
/**
33
* @name @wdns/vuetify-stepper-form
4-
* @version 1.0.0
4+
* @version 1.0.1
55
* @description The Vuetify Stepper Form plugin provides a structured way to create multi-step forms using Vue 3, TypeScript, and Vuetify. It features a stepper layout that allows users to navigate between steps with form validation. The plugin is customizable and streamlines building dynamic, interactive forms that guide users through sequential steps.
66
* @author WebDevNerdStuff & Bunnies... lots and lots of bunnies! <webdevnerdstuff@gmail.com> (https://webdevnerdstuff.com)
77
* @copyright Copyright 2024, WebDevNerdStuff

dist/FieldLabel-mS_InZKL.js renamed to dist/FieldLabel-_ATH8rEz.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";/**
22
* @name @wdns/vuetify-stepper-form
3-
* @version 1.0.0
3+
* @version 1.0.1
44
* @description The Vuetify Stepper Form plugin provides a structured way to create multi-step forms using Vue 3, TypeScript, and Vuetify. It features a stepper layout that allows users to navigate between steps with form validation. The plugin is customizable and streamlines building dynamic, interactive forms that guide users through sequential steps.
55
* @author WebDevNerdStuff & Bunnies... lots and lots of bunnies! <webdevnerdstuff@gmail.com> (https://webdevnerdstuff.com)
66
* @copyright Copyright 2024, WebDevNerdStuff

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ declare function __VLS_template(): {
5353
blur: () => Promise<void>;
5454
change: () => Promise<void>;
5555
input: () => Promise<void>;
56+
onUpdate: (value: any) => void;
5657
field: {
5758
options: KeyStringAny<any> | undefined;
5859
required: boolean | undefined;
@@ -101,7 +102,6 @@ declare function __VLS_template(): {
101102
variant?: string | undefined;
102103
transition?: import('vuetify/lib/components/index.mjs').VStepperWindowItem["transition"] | undefined;
103104
errorMessages: any;
104-
modelValue: any;
105105
};
106106
}) => any>>;
107107
refs: {};

dist/plugin/index.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { PluginOptions } from './types';
22
import { Plugin } from 'vue';
33
import { default as FieldLabel } from './components/shared/FieldLabel.vue';
44
import { default as VStepperForm } from './VStepperForm.vue';
5-
export declare const globalOptions: unique symbol;
65
export declare function createVStepperForm(options?: PluginOptions): Plugin;
76
export default VStepperForm;
87
export { FieldLabel, VStepperForm, };

dist/plugin/utils/globals.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
import { InjectionKey } from 'vue';
2+
import { PluginOptions } from '../types';
13
export declare const componentName = "v-stepper-form";
4+
export declare const pluginOptionsInjectionKey: InjectionKey<PluginOptions>;

dist/vuetify-stepper-form.cjs.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vuetify-stepper-form.es.js

Lines changed: 731 additions & 732 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)