adata-ui 3.1.17 → 3.1.18

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 CHANGED
@@ -5,7 +5,7 @@
5
5
  "nuxt": ">=3.16.0"
6
6
  },
7
7
  "failOnWarn": false,
8
- "version": "3.1.17",
8
+ "version": "3.1.18",
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "1.0.1",
11
11
  "unbuild": "3.5.0"
@@ -1,6 +1,7 @@
1
1
  <script setup>
2
2
  import * as z from "zod";
3
- import { useUIValidation } from "~/src/runtime/composables/useUIValidation";
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
- <a-button
78
+ <adt-button
78
79
  block
79
80
  @click="onSend"
80
81
  >
81
82
  {{ t("forms.request_demo.send") }}
82
- </a-button>
83
+ </adt-button>
83
84
  </div>
84
85
  </div>
85
86
  </div>
@@ -1,4 +1,4 @@
1
- export declare function useUIValidation(schema: any, data: any, submitted: Ref<boolean>): {
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
- export function useUIValidation(schema, data, submitted) {
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());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adata-ui",
3
- "version": "3.1.17",
3
+ "version": "3.1.18",
4
4
  "description": "Adata UI",
5
5
  "repository": "your-org/my-module",
6
6
  "license": "MIT",