adata-ui 3.1.17 → 3.1.19
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/module.json +1 -1
- package/dist/runtime/components/forms/request-demo/RequestDemo.vue +4 -3
- package/dist/runtime/components/header/ProfileMenuContent.vue +1 -1
- package/dist/runtime/composables/useUIValidation.d.ts +2 -2
- package/dist/runtime/composables/useUIValidation.js +2 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import * as z from "zod";
|
|
3
|
-
import {
|
|
3
|
+
import { ref, useI18n, reactive } from "#imports";
|
|
4
|
+
import useUIValidation from "../../../composables/useUIValidation";
|
|
4
5
|
const props = defineProps({
|
|
5
6
|
title: { type: String, required: false },
|
|
6
7
|
description: { type: String, required: false }
|
|
@@ -74,12 +75,12 @@ function onSend() {
|
|
|
74
75
|
</div>
|
|
75
76
|
</slot>
|
|
76
77
|
<div>
|
|
77
|
-
<
|
|
78
|
+
<adt-button
|
|
78
79
|
block
|
|
79
80
|
@click="onSend"
|
|
80
81
|
>
|
|
81
82
|
{{ t("forms.request_demo.send") }}
|
|
82
|
-
</
|
|
83
|
+
</adt-button>
|
|
83
84
|
</div>
|
|
84
85
|
</div>
|
|
85
86
|
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
validation: any
|
|
1
|
+
export default function useUIValidation(schema: any, data: any, submitted: any): {
|
|
2
|
+
validation: import("vue").ComputedRef<any>;
|
|
3
3
|
getError: (path: string) => any;
|
|
4
4
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { computed } from "#imports";
|
|
2
|
+
export default function useUIValidation(schema, data, submitted) {
|
|
2
3
|
const validation = computed(() => {
|
|
3
4
|
if (!submitted.value) return null;
|
|
4
5
|
const result = schema.safeParse(data());
|