Skip to content

Commit 1dab5ec

Browse files
fix: stop declaring plugin types globally
1 parent 33acf4d commit 1dab5ec

12 files changed

Lines changed: 30 additions & 19 deletions

File tree

src/plugin/VStepperForm.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ import type {
172172
Page,
173173
PluginOptions,
174174
Props,
175+
Settings,
176+
ValidateResult,
175177
} from '@/plugin/types';
176178
import type { PrivateFormContext } from 'vee-validate';
177179
import PageContainer from './components/shared/PageContainer.vue';

src/plugin/components/fields/CommonField/CommonField.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import { useField } from 'vee-validate';
2727
import type { CommonFieldProps } from './index';
2828
import type { FieldLabelProps } from '../../shared/FieldLabel.vue';
29+
import type { Settings, ValidateAction } from '@/plugin/types';
2930
import { useBindingSettings } from '../../../composables/bindings';
3031
import { useOnActions } from '../../../composables/validation';
3132
import FieldLabel from '../../shared/FieldLabel.vue';

src/plugin/components/fields/VSFButtonField/VSFButtonField.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ import { useField } from 'vee-validate';
9191
import { VMessages } from 'vuetify/components';
9292
import type { Option, VSFButtonFieldProps } from './index';
9393
import type { FieldLabelProps } from '../../shared/FieldLabel.vue';
94+
import type { Settings, ValidateAction } from '@/plugin/types';
9495
import type { VBtn } from 'vuetify/components';
9596
import { useBindingSettings } from '../../../composables/bindings';
9697
import { useOnActions } from '../../../composables/validation';

src/plugin/components/fields/VSFCheckbox/VSFCheckbox.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ import { useField } from 'vee-validate';
9797
import { VMessages } from 'vuetify/components';
9898
import type { VSFCheckboxProps } from './index';
9999
import type { FieldLabelProps } from '../../shared/FieldLabel.vue';
100+
import type { Settings, ValidateAction } from '@/plugin/types';
100101
import type { VCheckbox } from 'vuetify/components';
101102
import { useBindingSettings } from '../../../composables/bindings';
102103
import { useOnActions } from '../../../composables/validation';

src/plugin/components/fields/VSFCustom/VSFCustom.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
<script lang="ts" setup>
3131
import { useField } from 'vee-validate';
3232
import type {VSFCustomProps} from './index';
33+
import type { Settings, ValidateAction } from '@/plugin/types';
3334
import { useBindingSettings } from '../../../composables/bindings';
3435
import { useOnActions } from '../../../composables/validation';
3536
import FieldLabel from '../../shared/FieldLabel.vue';

src/plugin/components/fields/VSFRadio/VSFRadio.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
import { useField } from 'vee-validate';
7979
import type { VSFRadioProps } from './index';
8080
import type { FieldLabelProps } from '../../shared/FieldLabel.vue';
81+
import type { Settings, ValidateAction } from '@/plugin/types';
8182
import type { VRadio } from 'vuetify/components';
8283
import { useBindingSettings } from '../../../composables/bindings';
8384
import { useOnActions } from '../../../composables/validation';

src/plugin/components/fields/VSFSwitch/VSFSwitch.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
import { Field } from 'vee-validate';
3838
import type { VSFSwitchProps } from './index';
3939
import type { FieldLabelProps } from '../../shared/FieldLabel.vue';
40+
import type { Settings, ValidateAction, ValidateFieldResult } from '@/plugin/types';
4041
import type { VSwitch } from 'vuetify/components';
4142
import { useBindingSettings } from '../../../composables/bindings';
4243
import { useOnActions } from '../../../composables/validation';

src/plugin/components/shared/PageReviewContainer.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ import type {
6363
Field,
6464
Page,
6565
ResponsiveColumns,
66+
Settings,
6667
} from '../../types/index';
6768
import { useColumnClasses } from '../../composables/classes';
6869
import {useGetFirstAndLastEditableFalse} from '../../composables/helpers';

src/plugin/composables/__tests__/validation.spec.cy.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import {
33
} from '../validation';
44
import type {
55
Field,
6+
Settings,
7+
ValidateAction,
68
} from '../../types';
79
import type { SinonStub } from 'cypress/types/sinon';
810

src/plugin/composables/bindings.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import type { Settings } from '@/plugin/types';
2+
3+
14
const excludedSettings: string[] = [
25
'columns',
36
'options',

0 commit comments

Comments
 (0)