@nmorph/nmorph-ui-kit 0.2.138 → 0.2.141

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.
@@ -2,7 +2,7 @@ import { INmorphCommonInputProps, NmorphComponentHeight } from '../../../types';
2
2
  import { NmorphAutocompleteActionCallbackType, INmorphAutocompleteListItem } from '../..';
3
3
  import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
4
4
 
5
- interface INmorphProps extends Omit<INmorphCommonInputProps, 'fill'> {
5
+ interface INmorphProps extends INmorphCommonInputProps {
6
6
  modelValue?: string;
7
7
  placeholder?: string;
8
8
  clearable?: boolean;
@@ -2,7 +2,7 @@ import { INmorphCommonInputProps, NmorphComponentHeight, NmorphSelectionDateType
2
2
  import { NmorphSelectedDateModelType } from '../..';
3
3
  import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
4
4
 
5
- interface INmorphProps extends Omit<INmorphCommonInputProps, 'fill'> {
5
+ interface INmorphProps extends INmorphCommonInputProps {
6
6
  placeholder?: string;
7
7
  initialStartDate?: Date;
8
8
  initialEndDate?: Date;
@@ -0,0 +1,41 @@
1
+ import { NmorphSelectedDateModelType } from '../../../..';
2
+ import { NmorphSelectionDateType } from '../../../../../types';
3
+ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
4
+
5
+ interface INmorphProps {
6
+ initialDate?: Date;
7
+ selectedValues: NmorphSelectedDateModelType;
8
+ type?: keyof typeof NmorphSelectionDateType;
9
+ }
10
+ declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
11
+ initialDate: () => Date;
12
+ type: string;
13
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
14
+ "update-selected-value": (selectedValue: Date) => void;
15
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
16
+ initialDate: () => Date;
17
+ type: string;
18
+ }>>> & Readonly<{
19
+ "onUpdate-selected-value"?: (selectedValue: Date) => any;
20
+ }>, {
21
+ type: keyof typeof NmorphSelectionDateType;
22
+ initialDate: Date;
23
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
24
+ export default _default;
25
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
26
+ type __VLS_TypePropsToRuntimeProps<T> = {
27
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
28
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
29
+ } : {
30
+ type: PropType<T[K]>;
31
+ required: true;
32
+ };
33
+ };
34
+ type __VLS_WithDefaults<P, D> = {
35
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
36
+ default: D[K];
37
+ }> : P[K];
38
+ };
39
+ type __VLS_Prettify<T> = {
40
+ [K in keyof T]: T[K];
41
+ } & {};
@@ -0,0 +1,38 @@
1
+ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
2
+ interface INmorphProps {
3
+ year: number;
4
+ month: number;
5
+ }
6
+ declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
7
+ "prev-month": () => void;
8
+ "next-month": () => void;
9
+ "prev-year": () => void;
10
+ "next-year": () => void;
11
+ "change-year": () => void;
12
+ "change-month": () => void;
13
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {}>>> & Readonly<{
14
+ "onPrev-month"?: () => any;
15
+ "onNext-month"?: () => any;
16
+ "onPrev-year"?: () => any;
17
+ "onNext-year"?: () => any;
18
+ "onChange-year"?: () => any;
19
+ "onChange-month"?: () => any;
20
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
21
+ export default _default;
22
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
+ type __VLS_TypePropsToRuntimeProps<T> = {
24
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
25
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
26
+ } : {
27
+ type: PropType<T[K]>;
28
+ required: true;
29
+ };
30
+ };
31
+ type __VLS_WithDefaults<P, D> = {
32
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
33
+ default: D[K];
34
+ }> : P[K];
35
+ };
36
+ type __VLS_Prettify<T> = {
37
+ [K in keyof T]: T[K];
38
+ } & {};
@@ -0,0 +1,38 @@
1
+ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
2
+ interface INmorphProps {
3
+ currentDate: Date;
4
+ type?: 'year' | 'month';
5
+ }
6
+ declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
7
+ type: string;
8
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
9
+ "update-year": (val: string) => void;
10
+ "update-month": (val: string) => void;
11
+ "back-to-years": () => void;
12
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
13
+ type: string;
14
+ }>>> & Readonly<{
15
+ "onUpdate-year"?: (val: string) => any;
16
+ "onUpdate-month"?: (val: string) => any;
17
+ "onBack-to-years"?: () => any;
18
+ }>, {
19
+ type: "year" | "month";
20
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
21
+ export default _default;
22
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
+ type __VLS_TypePropsToRuntimeProps<T> = {
24
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
25
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
26
+ } : {
27
+ type: PropType<T[K]>;
28
+ required: true;
29
+ };
30
+ };
31
+ type __VLS_WithDefaults<P, D> = {
32
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
33
+ default: D[K];
34
+ }> : P[K];
35
+ };
36
+ type __VLS_Prettify<T> = {
37
+ [K in keyof T]: T[K];
38
+ } & {};
@@ -1,6 +1,6 @@
1
1
  import { NmorphRulesType, useFormValidation } from '../../../hooks';
2
2
 
3
- export type NmorphAvailableFormValueType = string | string[] | number;
3
+ export type NmorphAvailableFormValueType = string | string[] | number | number[] | boolean | boolean[] | Date | Date[];
4
4
  export type NmorphFormValueType = Record<string, {
5
5
  value: NmorphAvailableFormValueType;
6
6
  rules: NmorphRulesType;
@@ -1,7 +1,7 @@
1
1
  import { INmorphCommonInputProps, NmorphComponentHeight } from '../../../types';
2
2
  import { DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
3
3
 
4
- interface INmorphProps extends Omit<INmorphCommonInputProps, 'fill'> {
4
+ interface INmorphProps extends INmorphCommonInputProps {
5
5
  modelValue?: number;
6
6
  max?: number;
7
7
  min?: number;
@@ -3,6 +3,7 @@ import { DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicPr
3
3
 
4
4
  interface INmorphProps extends INmorphRadioOption {
5
5
  styleType?: keyof typeof NmorphRadioStyleType;
6
+ checked?: boolean;
6
7
  }
7
8
  declare function __VLS_template(): {
8
9
  label?(_: {}): any;
@@ -11,13 +12,16 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
11
12
  disabled: boolean;
12
13
  label: string;
13
14
  styleType: string;
15
+ checked: boolean;
14
16
  }>>, {
15
17
  inputDOMRef: Ref<HTMLElement, HTMLElement>;
16
18
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
17
19
  disabled: boolean;
18
20
  label: string;
19
21
  styleType: string;
22
+ checked: boolean;
20
23
  }>>> & Readonly<{}>, {
24
+ checked: boolean;
21
25
  label: string;
22
26
  disabled: boolean;
23
27
  styleType: keyof typeof NmorphRadioStyleType;
@@ -1,9 +1,10 @@
1
1
  import { INmorphCommonInputProps, INmorphRadioOption, NmorphComponentDirection, NmorphRadioStyleType } from '../../../types';
2
2
  import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
3
3
 
4
+ type NmorphListRadioOptionElementType = Omit<INmorphRadioOption, 'checked'>;
4
5
  interface INmorphProps extends INmorphCommonInputProps {
5
6
  modelValue: string;
6
- options?: INmorphRadioOption[];
7
+ options?: NmorphListRadioOptionElementType[];
7
8
  styleType?: keyof typeof NmorphRadioStyleType;
8
9
  direction?: keyof typeof NmorphComponentDirection;
9
10
  }
@@ -32,7 +33,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
32
33
  disabled: boolean;
33
34
  styleType: keyof typeof NmorphRadioStyleType;
34
35
  modelValue: string;
35
- options: INmorphRadioOption[];
36
+ options: NmorphListRadioOptionElementType[];
36
37
  direction: keyof typeof NmorphComponentDirection;
37
38
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
38
39
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
@@ -10,6 +10,8 @@ interface INmorphProps extends INmorphCommonInputProps {
10
10
  modelValue?: NmorphSelectModelValueType;
11
11
  loading?: boolean;
12
12
  open?: boolean;
13
+ id?: string;
14
+ name?: string;
13
15
  }
14
16
  declare function __VLS_template(): {
15
17
  default?(_: {}): any;
@@ -24,6 +26,8 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
24
26
  height: string;
25
27
  disabled: boolean;
26
28
  open: boolean;
29
+ id: string;
30
+ name: string;
27
31
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
28
32
  "update:model-value": (val: NmorphSelectModelValueType) => void;
29
33
  }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
@@ -36,12 +40,16 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
36
40
  height: string;
37
41
  disabled: boolean;
38
42
  open: boolean;
43
+ id: string;
44
+ name: string;
39
45
  }>>> & Readonly<{
40
46
  "onUpdate:model-value"?: (val: NmorphSelectModelValueType) => any;
41
47
  }>, {
42
48
  loading: boolean;
49
+ name: string;
43
50
  height: keyof typeof NmorphComponentHeight;
44
51
  disabled: boolean;
52
+ id: string;
45
53
  modelValue: NmorphSelectModelValueType;
46
54
  options: INmorphSelectOption[];
47
55
  noElementPlaceholder: string;
@@ -4,7 +4,7 @@ import { Ref } from 'vue';
4
4
  export type NmorphSelectModelValueType = string | string[];
5
5
  export type NmorphSelectSelectedValueInjectionType = Ref<NmorphSelectModelValueType>;
6
6
  export type NmorphSelectChangeSelectedValue = (value: string) => void;
7
- export interface INmorphSelectOption extends Omit<INmorphCommonInputProps, 'fill'> {
7
+ export interface INmorphSelectOption extends INmorphCommonInputProps {
8
8
  value: string;
9
9
  label: string;
10
10
  }
@@ -1,7 +1,7 @@
1
1
  import { INmorphCommonInputProps } from '../../../types';
2
2
  import { DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
3
3
 
4
- interface INmorphProps extends Omit<INmorphCommonInputProps, 'fill' | 'height'> {
4
+ interface INmorphProps extends Omit<INmorphCommonInputProps, 'height'> {
5
5
  modelValue?: boolean | string | number;
6
6
  loading?: boolean;
7
7
  activeValue?: boolean | string | number;
@@ -1,7 +1,7 @@
1
1
  import { INmorphCommonInputProps, NmorphComponentHeight } from '../../../types';
2
2
  import { DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
3
3
 
4
- interface INmorphProps extends Omit<INmorphCommonInputProps, 'fill'> {
4
+ interface INmorphProps extends INmorphCommonInputProps {
5
5
  placeholder?: string;
6
6
  typePassword?: boolean;
7
7
  modelValue?: string;
@@ -2,7 +2,7 @@ import { INmorphCommonInputProps, NmorphComponentHeight } from '../../../types';
2
2
  import { NmorphHourType, NmorphMinuteSecondsType } from '../..';
3
3
  import { DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
4
4
 
5
- interface INmorphProps extends Omit<INmorphCommonInputProps, 'fill'> {
5
+ interface INmorphProps extends INmorphCommonInputProps {
6
6
  modelValue?: number;
7
7
  open?: boolean;
8
8
  initWithoutValue?: boolean;