@nmorph/nmorph-ui-kit 0.2.150 → 0.2.152

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.
@@ -45,9 +45,9 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
45
45
  icon: any;
46
46
  }>>> & Readonly<{}>, {
47
47
  loading: boolean;
48
- fill: boolean;
49
48
  height: keyof typeof NmorphComponentHeight;
50
49
  type: keyof typeof NmorphButtonType;
50
+ fill: boolean;
51
51
  text: string | number;
52
52
  disabled: boolean;
53
53
  styleType: keyof typeof NmorphButtonStyle;
@@ -35,8 +35,8 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
35
35
  }>>> & Readonly<{
36
36
  onClose?: () => any;
37
37
  }>, {
38
- fill: boolean;
39
38
  type: keyof typeof NmorphAlertType;
39
+ fill: boolean;
40
40
  html: string;
41
41
  title: string;
42
42
  id: string;
@@ -1,5 +1,5 @@
1
- import { NmorphFormValueType } from './types';
2
- import { DefineComponent, ExtractPropTypes, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
1
+ import { NmorphFormValueType, NmorphFormValidationDataType } from './types';
2
+ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
3
3
 
4
4
  interface INmorphProps {
5
5
  value: NmorphFormValueType;
@@ -11,16 +11,7 @@ declare function __VLS_template(): {
11
11
  declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
12
12
  validateImmediately: boolean;
13
13
  }>>, {
14
- formData: {
15
- fields: Record<string, {
16
- touched: Ref<boolean, boolean>;
17
- valid: ComputedRef<boolean>;
18
- errors: Ref<string[], string[]>;
19
- validate: () => any;
20
- }>;
21
- isFormValid: Ref<boolean, boolean>;
22
- isAnyTouched: Ref<boolean, boolean>;
23
- };
14
+ formData: NmorphFormValidationDataType;
24
15
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
25
16
  validateImmediately: boolean;
26
17
  }>>> & Readonly<{}>, {
@@ -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
  }>;
@@ -7,4 +7,4 @@ export declare const useNmorphTranslation: (data: INmorphApplyTranslation) => I1
7
7
  zh: TranslateMessages;
8
8
  } | {
9
9
  en: TranslateMessages;
10
- }, {}, {}, "en" | "ru" | "zh" | Locale, true>;
10
+ }, {}, {}, Locale | "en" | "ru" | "zh", true>;
@@ -9,7 +9,7 @@ interface INmorphUsePlacementPayload {
9
9
  xOffset?: number;
10
10
  }
11
11
  export declare const usePlacement: (data: INmorphUsePlacementPayload) => {
12
- placement: Ref<"bottom" | "top" | "left" | "right", "bottom" | "top" | "left" | "right">;
12
+ placement: Ref<"bottom" | "top" | "right" | "left", "bottom" | "top" | "right" | "left">;
13
13
  placementCoords: Ref<{
14
14
  x: string;
15
15
  y: string;
@@ -1,6 +1,10 @@
1
1
  import { Ref } from 'vue';
2
2
  import { I18n } from 'vue-i18n';
3
+ import { NmorphFormValidationDataType } from '../components';
3
4
 
5
+ export interface INmorphFromDataExpose {
6
+ formData: NmorphFormValidationDataType;
7
+ }
4
8
  export declare enum NmorphComponentHeight {
5
9
  thick = "thick-component",
6
10
  default = "default-height-component",
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.152",
6
6
  "license": "MIT",
7
7
  "engines": {
8
8
  "node": "18.13.0",