@sfxcode/formkit-primevue 3.2.8 → 3.2.9
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/FormKitDataDebug.d.vue.ts +24 -0
- package/dist/components/FormKitDataDebug.vue +23 -0
- package/dist/components/FormKitDataDebug.vue.d.ts +24 -0
- package/dist/components/FormKitDataEdit.d.vue.ts +6 -10
- package/dist/components/FormKitDataEdit.vue +3 -10
- package/dist/components/FormKitDataEdit.vue.d.ts +6 -10
- package/dist/components/FormKitDataView.d.vue.ts +1 -5
- package/dist/components/FormKitDataView.vue +4 -10
- package/dist/components/FormKitDataView.vue.d.ts +1 -5
- package/package.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
data: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
default: null;
|
|
5
|
+
};
|
|
6
|
+
header: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
data: {
|
|
12
|
+
type: ObjectConstructor;
|
|
13
|
+
default: null;
|
|
14
|
+
};
|
|
15
|
+
header: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
}>> & Readonly<{}>, {
|
|
20
|
+
data: Record<string, any>;
|
|
21
|
+
header: string;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<script setup lang='ts'>
|
|
2
|
+
defineProps({
|
|
3
|
+
data: {
|
|
4
|
+
type: Object,
|
|
5
|
+
default: null,
|
|
6
|
+
},
|
|
7
|
+
header: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: 'Debug',
|
|
10
|
+
},
|
|
11
|
+
})
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<template>
|
|
15
|
+
<Fieldset class="p-formkit-data-debug" :legend="header" :toggleable="true" :collapsed="true">
|
|
16
|
+
<pre v-if="data">{{ data }}</pre>
|
|
17
|
+
<span v-else>No Data available</span>
|
|
18
|
+
</Fieldset>
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<style scoped>
|
|
22
|
+
|
|
23
|
+
</style>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
data: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
default: null;
|
|
5
|
+
};
|
|
6
|
+
header: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
data: {
|
|
12
|
+
type: ObjectConstructor;
|
|
13
|
+
default: null;
|
|
14
|
+
};
|
|
15
|
+
header: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
}>> & Readonly<{}>, {
|
|
20
|
+
data: Record<string, any>;
|
|
21
|
+
header: string;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import type { FormKitSchemaDefinition } from '@formkit/core';
|
|
2
2
|
import type { PropType } from 'vue';
|
|
3
|
-
declare var __VLS_16: {},
|
|
3
|
+
declare var __VLS_16: {}, __VLS_29: {}, __VLS_37: {};
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
5
5
|
default?: (props: typeof __VLS_16) => any;
|
|
6
6
|
} & {
|
|
7
|
-
|
|
7
|
+
messages?: (props: typeof __VLS_29) => any;
|
|
8
8
|
} & {
|
|
9
|
-
|
|
10
|
-
} & {
|
|
11
|
-
messages?: (props: typeof __VLS_35) => any;
|
|
12
|
-
} & {
|
|
13
|
-
submit?: (props: typeof __VLS_43) => any;
|
|
9
|
+
submit?: (props: typeof __VLS_37) => any;
|
|
14
10
|
};
|
|
15
11
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
16
12
|
id: {
|
|
@@ -81,8 +77,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
81
77
|
type: PropType<any>;
|
|
82
78
|
};
|
|
83
79
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
84
|
-
dataSaved: (...args: any[]) => void;
|
|
85
80
|
onReset: (...args: any[]) => void;
|
|
81
|
+
dataSaved: (...args: any[]) => void;
|
|
86
82
|
"update:modelValue": (value: any) => void;
|
|
87
83
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
88
84
|
id: {
|
|
@@ -153,12 +149,12 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
153
149
|
type: PropType<any>;
|
|
154
150
|
};
|
|
155
151
|
}>> & Readonly<{
|
|
156
|
-
onDataSaved?: ((...args: any[]) => any) | undefined;
|
|
157
152
|
onOnReset?: ((...args: any[]) => any) | undefined;
|
|
153
|
+
onDataSaved?: ((...args: any[]) => any) | undefined;
|
|
158
154
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
159
155
|
}>, {
|
|
160
|
-
id: string;
|
|
161
156
|
data: Record<string, any>;
|
|
157
|
+
id: string;
|
|
162
158
|
schema: FormKitSchemaDefinition;
|
|
163
159
|
formClass: string;
|
|
164
160
|
actionsClass: string;
|
|
@@ -4,6 +4,7 @@ import type { PropType } from 'vue'
|
|
|
4
4
|
import { reset } from '@formkit/core'
|
|
5
5
|
import { FormKit, FormKitMessages, FormKitSchema } from '@formkit/vue'
|
|
6
6
|
import { ref } from 'vue'
|
|
7
|
+
import FormKitDataDebug from './FormKitDataDebug.vue'
|
|
7
8
|
|
|
8
9
|
const props = defineProps({
|
|
9
10
|
id: {
|
|
@@ -103,16 +104,8 @@ function handleReset() {
|
|
|
103
104
|
<template #default>
|
|
104
105
|
<FormKitSchema v-if="formSchema" :schema="formSchema" :data="formData" />
|
|
105
106
|
<slot />
|
|
106
|
-
<
|
|
107
|
-
|
|
108
|
-
<pre v-if="data">{{ data }}</pre>
|
|
109
|
-
<span v-else>No Data available</span>
|
|
110
|
-
</Fieldset>
|
|
111
|
-
<Fieldset class="p-formkit-data-debug" legend="Debug Mode - Schema" :toggleable="true" :collapsed="true">
|
|
112
|
-
<slot />
|
|
113
|
-
<pre v-if="formSchema">{{ formSchema }}</pre>
|
|
114
|
-
<span v-else>No Data available</span>
|
|
115
|
-
</Fieldset>
|
|
107
|
+
<FormKitDataDebug v-if="debugData" :data="formData" header="Debug Mode - Data" />
|
|
108
|
+
<FormKitDataDebug v-if="debugSchema" :data="formSchema as object" header="Debug Mode - Schema" />
|
|
116
109
|
</template>
|
|
117
110
|
<template #messages>
|
|
118
111
|
<slot name="messages">
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import type { FormKitSchemaDefinition } from '@formkit/core';
|
|
2
2
|
import type { PropType } from 'vue';
|
|
3
|
-
declare var __VLS_16: {},
|
|
3
|
+
declare var __VLS_16: {}, __VLS_29: {}, __VLS_37: {};
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
5
5
|
default?: (props: typeof __VLS_16) => any;
|
|
6
6
|
} & {
|
|
7
|
-
|
|
7
|
+
messages?: (props: typeof __VLS_29) => any;
|
|
8
8
|
} & {
|
|
9
|
-
|
|
10
|
-
} & {
|
|
11
|
-
messages?: (props: typeof __VLS_35) => any;
|
|
12
|
-
} & {
|
|
13
|
-
submit?: (props: typeof __VLS_43) => any;
|
|
9
|
+
submit?: (props: typeof __VLS_37) => any;
|
|
14
10
|
};
|
|
15
11
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
16
12
|
id: {
|
|
@@ -81,8 +77,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
81
77
|
type: PropType<any>;
|
|
82
78
|
};
|
|
83
79
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
84
|
-
dataSaved: (...args: any[]) => void;
|
|
85
80
|
onReset: (...args: any[]) => void;
|
|
81
|
+
dataSaved: (...args: any[]) => void;
|
|
86
82
|
"update:modelValue": (value: any) => void;
|
|
87
83
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
88
84
|
id: {
|
|
@@ -153,12 +149,12 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
153
149
|
type: PropType<any>;
|
|
154
150
|
};
|
|
155
151
|
}>> & Readonly<{
|
|
156
|
-
onDataSaved?: ((...args: any[]) => any) | undefined;
|
|
157
152
|
onOnReset?: ((...args: any[]) => any) | undefined;
|
|
153
|
+
onDataSaved?: ((...args: any[]) => any) | undefined;
|
|
158
154
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
159
155
|
}>, {
|
|
160
|
-
id: string;
|
|
161
156
|
data: Record<string, any>;
|
|
157
|
+
id: string;
|
|
162
158
|
schema: FormKitSchemaDefinition;
|
|
163
159
|
formClass: string;
|
|
164
160
|
actionsClass: string;
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import type { FormKitSchemaDefinition } from '@formkit/core';
|
|
2
2
|
import type { PropType } from 'vue';
|
|
3
|
-
declare var __VLS_13: {}
|
|
3
|
+
declare var __VLS_13: {};
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
5
5
|
default?: (props: typeof __VLS_13) => any;
|
|
6
|
-
} & {
|
|
7
|
-
default?: (props: typeof __VLS_21) => any;
|
|
8
|
-
} & {
|
|
9
|
-
default?: (props: typeof __VLS_29) => any;
|
|
10
6
|
};
|
|
11
7
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
12
8
|
data: {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
<script setup lang='ts'>
|
|
2
2
|
import type { FormKitSchemaDefinition } from '@formkit/core'
|
|
3
3
|
import type { PropType } from 'vue'
|
|
4
|
+
|
|
4
5
|
import { FormKit, FormKitSchema } from '@formkit/vue'
|
|
5
6
|
import { ref } from 'vue'
|
|
7
|
+
import FormKitDataDebug from './FormKitDataDebug.vue'
|
|
6
8
|
|
|
7
9
|
const props = defineProps({
|
|
8
10
|
data: {
|
|
@@ -46,16 +48,8 @@ if (props.data) {
|
|
|
46
48
|
>
|
|
47
49
|
<FormKitSchema v-if="schema" :schema="formSchema" :data="formData" />
|
|
48
50
|
<slot />
|
|
49
|
-
<
|
|
50
|
-
|
|
51
|
-
<pre v-if="data">{{ data }}</pre>
|
|
52
|
-
<span v-else>No Data available</span>
|
|
53
|
-
</Fieldset>
|
|
54
|
-
<Fieldset class="p-formkit-data-debug" legend="Debug Mode - Schema" :toggleable="true" :collapsed="true">
|
|
55
|
-
<slot />
|
|
56
|
-
<pre v-if="formSchema">{{ formSchema }}</pre>
|
|
57
|
-
<span v-else>No Data available</span>
|
|
58
|
-
</Fieldset>
|
|
51
|
+
<FormKitDataDebug v-if="debugData" :data="formData" header="Debug Mode - Data" />
|
|
52
|
+
<FormKitDataDebug v-if="debugSchema" :data="formSchema as object" header="Debug Mode - Schema" />
|
|
59
53
|
</FormKit>
|
|
60
54
|
</template>
|
|
61
55
|
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import type { FormKitSchemaDefinition } from '@formkit/core';
|
|
2
2
|
import type { PropType } from 'vue';
|
|
3
|
-
declare var __VLS_13: {}
|
|
3
|
+
declare var __VLS_13: {};
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
5
5
|
default?: (props: typeof __VLS_13) => any;
|
|
6
|
-
} & {
|
|
7
|
-
default?: (props: typeof __VLS_21) => any;
|
|
8
|
-
} & {
|
|
9
|
-
default?: (props: typeof __VLS_29) => any;
|
|
10
6
|
};
|
|
11
7
|
declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
12
8
|
data: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sfxcode/formkit-primevue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.2.
|
|
4
|
+
"version": "3.2.9",
|
|
5
5
|
"packageManager": "pnpm@10.26.0+sha512.3b3f6c725ebe712506c0ab1ad4133cf86b1f4b687effce62a9b38b4d72e3954242e643190fc51fa1642949c735f403debd44f5cb0edd657abe63a8b6a7e1e402",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Tom",
|