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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
3
  "configKey": "pukaadUI",
4
- "version": "1.176.0",
4
+ "version": "1.177.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -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, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
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, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
- "version": "1.176.0",
3
+ "version": "1.177.0",
4
4
  "description": "pukaad-ui for MeMSG",
5
5
  "repository": {
6
6
  "type": "git",