@nmorph/nmorph-ui-kit 0.2.150 → 0.2.151

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.
@@ -1,5 +1,5 @@
1
1
  import { NmorphFormValueType } from './types';
2
- import { DefineComponent, ExtractPropTypes, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
2
+ import { DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
3
3
 
4
4
  interface INmorphProps {
5
5
  value: NmorphFormValueType;
@@ -14,7 +14,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
14
14
  formData: {
15
15
  fields: Record<string, {
16
16
  touched: Ref<boolean, boolean>;
17
- valid: ComputedRef<boolean>;
17
+ valid: Ref<boolean, boolean>;
18
18
  errors: Ref<string[], string[]>;
19
19
  validate: () => any;
20
20
  }>;
@@ -7,7 +7,6 @@ interface INmorphProps {
7
7
  label?: string;
8
8
  showValidationIcon?: boolean;
9
9
  staticErrorBoxSpace?: boolean;
10
- validate?: boolean;
11
10
  }
12
11
  declare function __VLS_template(): {
13
12
  default?(_: {}): any;
@@ -17,19 +16,16 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
17
16
  height: string;
18
17
  showValidationIcon: boolean;
19
18
  staticErrorBoxSpace: boolean;
20
- validate: boolean;
21
19
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
22
20
  label: string;
23
21
  height: string;
24
22
  showValidationIcon: boolean;
25
23
  staticErrorBoxSpace: boolean;
26
- validate: boolean;
27
24
  }>>> & Readonly<{}>, {
28
25
  height: keyof typeof NmorphComponentHeight;
29
26
  label: string;
30
27
  showValidationIcon: boolean;
31
28
  staticErrorBoxSpace: boolean;
32
- validate: boolean;
33
29
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
34
30
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
35
31
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { NmorphAvailableFormValueType } from '../components/form/nmorph-form/types';
2
- import { Ref, ComputedRef } from 'vue';
2
+ import { Ref } from 'vue';
3
3
 
4
4
  export declare const enum NmorphArrayValidationOperator {
5
5
  'contains-one' = "contains-one",
@@ -48,7 +48,7 @@ export interface INmorphCheckboxGroupValidationRule extends INmorphRule {
48
48
  }
49
49
  export declare const useFieldValidation: (data: INmorphUseValidationPayload) => {
50
50
  touched: Ref<boolean, boolean>;
51
- valid: ComputedRef<boolean>;
51
+ valid: Ref<boolean, boolean>;
52
52
  errors: Ref<string[], string[]>;
53
53
  validate: () => any;
54
54
  };
@@ -1,10 +1,10 @@
1
1
  import { NmorphFormValueType } from '../components/form/nmorph-form/types';
2
- import { Ref, ComputedRef } from 'vue';
2
+ import { Ref } from 'vue';
3
3
 
4
4
  export declare const useFormValidation: (formData: NmorphFormValueType, validateFormOnLoad?: boolean) => {
5
5
  fields: Record<string, {
6
6
  touched: Ref<boolean, boolean>;
7
- valid: ComputedRef<boolean>;
7
+ valid: Ref<boolean, boolean>;
8
8
  errors: Ref<string[], string[]>;
9
9
  validate: () => any;
10
10
  }>;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@nmorph/nmorph-ui-kit",
3
3
  "type": "module",
4
4
  "private": false,
5
- "version": "0.2.150",
5
+ "version": "0.2.151",
6
6
  "license": "MIT",
7
7
  "engines": {
8
8
  "node": "18.13.0",