pukaad-ui-lib 1.176.0 → 1.177.0
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/input/input-OTP.d.vue.ts +4 -1
- package/dist/runtime/components/input/input-OTP.vue +9 -0
- package/dist/runtime/components/input/input-OTP.vue.d.ts +4 -1
- package/dist/runtime/components/input/input-autocomplete.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-autocomplete.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-tag.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-tag.vue.d.ts +1 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -11,7 +11,10 @@ type __VLS_ModelProps = {
|
|
|
11
11
|
modelValue?: string;
|
|
12
12
|
};
|
|
13
13
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
14
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
14
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
15
|
+
setErrors: (errMsg: string[]) => void;
|
|
16
|
+
fieldRef: import("vue").Ref<any, any>;
|
|
17
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
18
|
"update:modelValue": (value: string) => any;
|
|
16
19
|
complete: (value: string) => any;
|
|
17
20
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<ShadFormField
|
|
3
|
+
ref="fieldRef"
|
|
3
4
|
:rules="props.rules || defaultRules"
|
|
4
5
|
:name="props.name"
|
|
5
6
|
v-model="modelValue"
|
|
@@ -45,6 +46,7 @@ const pin = ref([]);
|
|
|
45
46
|
const modelValue = defineModel({ type: String, ...{
|
|
46
47
|
default: ""
|
|
47
48
|
} });
|
|
49
|
+
const fieldRef = ref();
|
|
48
50
|
const emit = defineEmits(["complete"]);
|
|
49
51
|
const handleComplete = (v) => {
|
|
50
52
|
const otpValue = v.join("");
|
|
@@ -62,4 +64,11 @@ watch(
|
|
|
62
64
|
immediate: true
|
|
63
65
|
}
|
|
64
66
|
);
|
|
67
|
+
const setErrors = (errMsg) => {
|
|
68
|
+
fieldRef.value?.setErrors(errMsg);
|
|
69
|
+
};
|
|
70
|
+
defineExpose({
|
|
71
|
+
setErrors,
|
|
72
|
+
fieldRef
|
|
73
|
+
});
|
|
65
74
|
</script>
|
|
@@ -11,7 +11,10 @@ type __VLS_ModelProps = {
|
|
|
11
11
|
modelValue?: string;
|
|
12
12
|
};
|
|
13
13
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
14
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
14
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
15
|
+
setErrors: (errMsg: string[]) => void;
|
|
16
|
+
fieldRef: import("vue").Ref<any, any>;
|
|
17
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
18
|
"update:modelValue": (value: string) => any;
|
|
16
19
|
complete: (value: string) => any;
|
|
17
20
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
@@ -37,8 +37,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
37
37
|
name: string;
|
|
38
38
|
description: string;
|
|
39
39
|
options: AutocompleteOption[] | string[] | number[];
|
|
40
|
-
placeholder: string;
|
|
41
40
|
limit: number;
|
|
41
|
+
placeholder: string;
|
|
42
42
|
disabledErrorMessage: boolean;
|
|
43
43
|
disabledBorder: boolean;
|
|
44
44
|
showCounter: boolean;
|
|
@@ -37,8 +37,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
37
37
|
name: string;
|
|
38
38
|
description: string;
|
|
39
39
|
options: AutocompleteOption[] | string[] | number[];
|
|
40
|
-
placeholder: string;
|
|
41
40
|
limit: number;
|
|
41
|
+
placeholder: string;
|
|
42
42
|
disabledErrorMessage: boolean;
|
|
43
43
|
disabledBorder: boolean;
|
|
44
44
|
showCounter: boolean;
|
|
@@ -26,8 +26,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
26
26
|
}>, {
|
|
27
27
|
name: string;
|
|
28
28
|
state: "user" | "admin";
|
|
29
|
-
placeholder: string;
|
|
30
29
|
limit: number;
|
|
30
|
+
placeholder: string;
|
|
31
31
|
ignore: string[];
|
|
32
32
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
33
|
declare const _default: typeof __VLS_export;
|
|
@@ -26,8 +26,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
26
26
|
}>, {
|
|
27
27
|
name: string;
|
|
28
28
|
state: "user" | "admin";
|
|
29
|
-
placeholder: string;
|
|
30
29
|
limit: number;
|
|
30
|
+
placeholder: string;
|
|
31
31
|
ignore: string[];
|
|
32
32
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
33
|
declare const _default: typeof __VLS_export;
|