@nmorph/nmorph-ui-kit 0.0.1 → 0.0.4

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.
Files changed (124) hide show
  1. package/dist/index.es.js +3908 -3926
  2. package/dist/style.css +1 -1
  3. package/dist/styles/base/_animation.scss +8 -0
  4. package/dist/styles/base/_basic.scss +43 -0
  5. package/dist/styles/base/_colors.scss +23 -22
  6. package/dist/styles/base/_common-mixins.scss +12 -5
  7. package/dist/styles/base/_dimensions.scss +18 -8
  8. package/dist/styles/base/_histoire.scss +1 -1
  9. package/dist/styles/base/_theme-mixin.scss +16 -14
  10. package/dist/styles/base/_typography.scss +29 -132
  11. package/dist/styles/base/style.scss +3 -7
  12. package/dist/styles/main.scss +1 -2
  13. package/dist/types/components/inputs/checkbox/nmorph-checkbox/NmorphCheckbox.vue.d.ts +7 -4
  14. package/dist/types/components/inputs/checkbox/nmorph-checkbox-group/NmorphCheckboxGroup.vue.d.ts +9 -27
  15. package/dist/types/components/inputs/checkbox/types.d.ts +6 -3
  16. package/dist/types/components/inputs/nmorph-autocomplete/NmorphAutocomplete.vue.d.ts +72 -0
  17. package/dist/types/components/inputs/nmorph-autocomplete/types.d.ts +5 -0
  18. package/dist/types/components/inputs/nmorph-clear-button/NmorphClearButton.vue.d.ts +7 -0
  19. package/dist/types/components/inputs/nmorph-date-picker/NmorphDatePicker.vue.d.ts +70 -0
  20. package/dist/types/components/inputs/nmorph-date-picker/components/nmorph-date-picker-content/NmorphDatePickerContent.vue.d.ts +40 -0
  21. package/dist/types/components/inputs/nmorph-date-picker/components/nmorph-date-picker-header/NmorphDatePickerHeader.vue.d.ts +43 -0
  22. package/dist/types/components/inputs/nmorph-date-picker/components/nmorph-year-month-picker/NmorphYearMonthPicker.vue.d.ts +38 -0
  23. package/dist/types/components/inputs/nmorph-date-picker/components/types.d.ts +7 -0
  24. package/dist/types/components/inputs/nmorph-file-upload/NmorphFileUpload.vue.d.ts +19 -8
  25. package/dist/types/components/inputs/nmorph-file-upload/types.d.ts +32 -28
  26. package/dist/types/components/inputs/nmorph-number-input/NmorphNumberInput.vue.d.ts +13 -28
  27. package/dist/types/components/inputs/nmorph-select/NmorphSelect.vue.d.ts +26 -15
  28. package/dist/types/components/inputs/{nmorph-select-option → nmorph-select/components/nmorph-select-option}/NmorphSelectOption.vue.d.ts +5 -5
  29. package/dist/types/components/inputs/nmorph-select/types.d.ts +4 -0
  30. package/dist/types/components/inputs/nmorph-slider/NmorphSlider.vue.d.ts +5 -5
  31. package/dist/types/components/inputs/nmorph-switch/NmorphSwitch.vue.d.ts +8 -6
  32. package/dist/types/components/inputs/nmorph-text-input/NmorphTextInput.vue.d.ts +15 -29
  33. package/dist/types/components/inputs/nmorph-time-picker/NmorphTimePicker.vue.d.ts +65 -0
  34. package/dist/types/components/inputs/nmorph-time-picker/components/NmorphTimeRoller.vue.d.ts +46 -0
  35. package/dist/types/components/inputs/nmorph-time-picker/types.d.ts +3 -0
  36. package/dist/types/components/inputs/nmorph-time-picker/utils.d.ts +3 -0
  37. package/dist/types/components/inputs/radio/nmorph-radio/NmorphRadio.vue.d.ts +48 -0
  38. package/dist/types/components/inputs/radio/nmorph-radio-group/NmorphRadioGroup.vue.d.ts +12 -25
  39. package/dist/types/components/inputs/radio/types.d.ts +5 -2
  40. package/dist/types/components/nmorph-alert/NmorphAlert.vue.d.ts +67 -0
  41. package/dist/types/components/nmorph-alert/types.d.ts +6 -0
  42. package/dist/types/components/nmorph-avatar/NmorphAvatar.vue.d.ts +62 -0
  43. package/dist/types/components/nmorph-avatar/type.d.ts +1 -0
  44. package/dist/types/components/nmorph-backtop/NmorphBacktop.vue.d.ts +48 -0
  45. package/dist/types/components/nmorph-badge/NmorphBadge.vue.d.ts +60 -0
  46. package/dist/types/components/nmorph-breadcrumb/NmorphBreadcrumb.vue.d.ts +36 -0
  47. package/dist/types/components/nmorph-breadcrumb/components/nmorph-breadcrumb-item/NmorphBreadcrumbItem.vue.d.ts +40 -0
  48. package/dist/types/components/nmorph-breadcrumb/types.d.ts +13 -0
  49. package/dist/types/components/nmorph-button/NmorphButton.vue.d.ts +15 -22
  50. package/dist/types/components/nmorph-calendar/NmorphCalendar.vue.d.ts +75 -0
  51. package/dist/types/components/nmorph-calendar/components/nmorph-calendar-header/NmorphCalendarHeader.vue.d.ts +42 -0
  52. package/dist/types/components/nmorph-calendar/locale.d.ts +1 -0
  53. package/dist/types/components/nmorph-calendar/types.d.ts +12 -0
  54. package/dist/types/components/nmorph-calendar/utils.d.ts +9 -0
  55. package/dist/types/components/nmorph-card/NmorphCard.vue.d.ts +7 -7
  56. package/dist/types/components/nmorph-carousel/NmorphCarousel.vue.d.ts +39 -2
  57. package/dist/types/components/nmorph-carousel/components/nmorph-carousel-item/NmorphCarouselItem.vue.d.ts +30 -0
  58. package/dist/types/components/nmorph-carousel/types.d.ts +5 -0
  59. package/dist/types/components/nmorph-collapse/NmorphCollapse.vue.d.ts +42 -0
  60. package/dist/types/components/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.d.ts +55 -0
  61. package/dist/types/components/nmorph-collapse/types.d.ts +9 -0
  62. package/dist/types/components/nmorph-dialog/NmorphDialog.vue.d.ts +47 -0
  63. package/dist/types/components/{inputs/common/NmorphValidationIcon.vue.d.ts → nmorph-divider/NmorphDivider.vue.d.ts} +8 -8
  64. package/dist/types/components/nmorph-divider/types.d.ts +1 -0
  65. package/dist/types/components/nmorph-dropdown/NmorphDropdown.vue.d.ts +55 -0
  66. package/dist/types/components/nmorph-form/NmorphForm.vue.d.ts +56 -0
  67. package/dist/types/components/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.d.ts +58 -0
  68. package/dist/types/components/nmorph-form/components/nmorph-form-item/components/index.d.ts +3 -0
  69. package/dist/types/components/nmorph-form/components/nmorph-form-item/components/nmorph-error-box/NmorphErrorBox.vue.d.ts +38 -0
  70. package/dist/types/components/nmorph-form/components/nmorph-form-item/components/nmorph-validation-icon/NmorphValidationIcon.vue.d.ts +30 -0
  71. package/dist/types/components/nmorph-form/types.d.ts +7 -0
  72. package/dist/types/components/nmorph-icon/NmorphIcon.vue.d.ts +17 -17
  73. package/dist/types/components/nmorph-icon/NmorphIconsMap.d.ts +2 -4
  74. package/dist/types/components/nmorph-icon/types.d.ts +3 -3
  75. package/dist/types/components/nmorph-image/NmorphImage.vue.d.ts +10 -12
  76. package/dist/types/components/nmorph-image-preview/NmorphImagePreview.vue.d.ts +3 -3
  77. package/dist/types/components/nmorph-image-preview/types.d.ts +5 -0
  78. package/dist/types/components/nmorph-link/NmorphLink.vue.d.ts +13 -18
  79. package/dist/types/components/nmorph-link/types.d.ts +6 -0
  80. package/dist/types/components/nmorph-overlay/NmorphOverlay.vue.d.ts +5 -4
  81. package/dist/types/components/nmorph-pagination/NmorphPagination.vue.d.ts +56 -0
  82. package/dist/types/components/nmorph-progress/NmorphProgress.vue.d.ts +66 -0
  83. package/dist/types/components/nmorph-progress/types.d.ts +6 -0
  84. package/dist/types/components/nmorph-scroll/NmorphScroll.vue.d.ts +63 -0
  85. package/dist/types/components/nmorph-scroll/types.d.ts +7 -0
  86. package/dist/types/components/nmorph-skeleton/NmorphSkeleton.vue.d.ts +45 -0
  87. package/dist/types/components/{nmorph-error-box/NmorphErrorBox.vue.d.ts → nmorph-skeleton/components/NmorphSkeletonItem.vue.d.ts} +8 -12
  88. package/dist/types/components/nmorph-skeleton/types.d.ts +1 -0
  89. package/dist/types/components/nmorph-sort-button/NmorphSortButton.vue.d.ts +28 -0
  90. package/dist/types/components/nmorph-table/NmorphTable.vue.d.ts +59 -0
  91. package/dist/types/components/nmorph-table/components/nmorph-table-cell/NmorphTableCell.vue.d.ts +30 -0
  92. package/dist/types/components/nmorph-table/components/nmorph-table-column/NmorphTableColumn.vue.d.ts +48 -0
  93. package/dist/types/components/nmorph-table/types.d.ts +21 -0
  94. package/dist/types/components/nmorph-tabs/NmorphTabs.vue.d.ts +47 -0
  95. package/dist/types/components/nmorph-tabs/components/nmorph-tab-pane/NmorphTabPane.vue.d.ts +40 -0
  96. package/dist/types/components/nmorph-tabs/type.d.ts +11 -0
  97. package/dist/types/components/nmorph-tabs/utils.d.ts +3 -0
  98. package/dist/types/components/nmorph-tag/NmorphTag.vue.d.ts +8 -8
  99. package/dist/types/components/nmorph-tooltip/NmorphTooltip.vue.d.ts +8 -26
  100. package/dist/types/components.d.ts +32 -3
  101. package/dist/types/histoire.setup.d.ts +0 -2
  102. package/dist/types/hooks/index.d.ts +4 -0
  103. package/dist/types/hooks/useEventManager.d.ts +1 -0
  104. package/dist/types/hooks/useFieldValidation.d.ts +53 -0
  105. package/dist/types/hooks/useFormValidation.d.ts +10 -0
  106. package/dist/types/hooks/usePlacement.d.ts +17 -0
  107. package/dist/types/types/common.d.ts +77 -0
  108. package/dist/types/utils/create-modifiers.d.ts +4 -1
  109. package/dist/types/utils/deep-clone.d.ts +1 -0
  110. package/dist/types/utils/generateUUID.d.ts +1 -0
  111. package/dist/types/utils/index.d.ts +3 -0
  112. package/dist/types/utils/is-string-html.d.ts +1 -0
  113. package/package.json +5 -24
  114. package/dist/fonts/Inter-Bold.woff +0 -0
  115. package/dist/fonts/Inter-Bold.woff2 +0 -0
  116. package/dist/fonts/Inter-Regular.woff +0 -0
  117. package/dist/fonts/Inter-Regular.woff2 +0 -0
  118. package/dist/fonts/Inter-SemiBold.woff +0 -0
  119. package/dist/fonts/Inter-SemiBold.woff2 +0 -0
  120. package/dist/styles/base/_transition.scss +0 -6
  121. package/dist/styles/packages/style.scss +0 -0
  122. package/dist/types/components/inputs/nmorph-select-option/types/index.d.ts +0 -1
  123. package/dist/types/hooks/useValidation.d.ts +0 -55
  124. package/dist/types/types/common.enums.d.ts +0 -46
@@ -1,18 +1,21 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { ICheckboxOption } from '../types';
3
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ICheckboxOption>, {
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, Ref } from 'vue';
2
+ import { INmorphCheckboxOption } from '../types';
3
+ import { NmorphDomElementType } from '../../../../types/common';
4
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphCheckboxOption>, {
4
5
  disabled: boolean;
5
6
  modelValue: boolean;
6
7
  label: string;
7
8
  styleType: string;
8
9
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
10
+ inputDOMRef: (val: Ref<NmorphDomElementType>) => void;
9
11
  "update:modelValue": (val: boolean) => void;
10
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ICheckboxOption>, {
12
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphCheckboxOption>, {
11
13
  disabled: boolean;
12
14
  modelValue: boolean;
13
15
  label: string;
14
16
  styleType: string;
15
17
  }>>> & {
18
+ onInputDOMRef?: ((val: Ref<NmorphDomElementType>) => any) | undefined;
16
19
  "onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
17
20
  }, {
18
21
  disabled: boolean;
@@ -1,48 +1,30 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { ICheckboxGroupValidationRule } from '../../../../hooks/useValidation';
3
- import { CommonInputProps, ComponentDirection } from '../../../../types/common.enums';
4
- import { ICheckboxOption, ICheckboxStyleType } from '../types';
5
- interface IProps extends CommonInputProps {
2
+ import { INmorphCommonInputProps, NmorphComponentDirection } from '../../../../types/common';
3
+ import { INmorphCheckboxOption, NmorphCheckboxStyleType } from '../types';
4
+ interface INmorphProps extends INmorphCommonInputProps {
6
5
  modelValue: string[];
7
- options: ICheckboxOption[];
8
- styleType?: keyof typeof ICheckboxStyleType;
9
- direction?: keyof typeof ComponentDirection;
10
- rules?: ICheckboxGroupValidationRule[];
11
- showValidationIcon?: boolean;
12
- staticErrorBoxSpace?: boolean;
6
+ options?: INmorphCheckboxOption[];
7
+ styleType?: keyof typeof NmorphCheckboxStyleType;
8
+ direction?: keyof typeof NmorphComponentDirection;
13
9
  }
14
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
10
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
15
11
  modelValue: () => never[];
16
12
  options: () => never[];
17
13
  styleType: string;
18
14
  direction: string;
19
- rules: () => never[];
20
- showValidationIcon: boolean;
21
- staticErrorBoxSpace: boolean;
22
- fill: boolean;
23
- label: string;
24
15
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
25
16
  "update:modelValue": (val: string[]) => void;
26
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
17
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
27
18
  modelValue: () => never[];
28
19
  options: () => never[];
29
20
  styleType: string;
30
21
  direction: string;
31
- rules: () => never[];
32
- showValidationIcon: boolean;
33
- staticErrorBoxSpace: boolean;
34
- fill: boolean;
35
- label: string;
36
22
  }>>> & {
37
23
  "onUpdate:modelValue"?: ((val: string[]) => any) | undefined;
38
24
  }, {
39
25
  modelValue: string[];
40
26
  styleType: "checkbox-style" | "button-style";
41
- fill: boolean;
42
- rules: ICheckboxGroupValidationRule[];
43
- showValidationIcon: boolean;
44
- staticErrorBoxSpace: boolean;
45
- options: ICheckboxOption[];
27
+ options: INmorphCheckboxOption[];
46
28
  direction: "row" | "column";
47
29
  }, {}>, {
48
30
  default?(_: {}): any;
@@ -1,11 +1,14 @@
1
- export interface ICheckboxOption {
1
+ import { Ref } from 'vue';
2
+ export interface INmorphCheckboxOption {
2
3
  id: string;
3
4
  disabled?: boolean;
4
5
  modelValue?: boolean;
5
6
  label?: string;
6
- styleType?: keyof typeof ICheckboxStyleType;
7
+ styleType?: keyof typeof NmorphCheckboxStyleType;
7
8
  }
8
- export declare enum ICheckboxStyleType {
9
+ export declare enum NmorphCheckboxStyleType {
9
10
  'checkbox-style' = "checkbox-style",
10
11
  'button-style' = "button-style"
11
12
  }
13
+ export type NmorphCheckboxGroupSelectedValueInjectionType = Ref<string[]>;
14
+ export type NmorphCheckboxGroupChangeCheckboxValueHandlerInjectionType = (value: string, currentState: string[]) => void;
@@ -0,0 +1,72 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { INmorphCommonInputProps } from '../../../types/common';
3
+ import { NmorphAutocompleteActionCallbackType, INmorphAutocompleteListItem } from './types';
4
+ interface INmorphProps extends INmorphCommonInputProps {
5
+ modelValue?: string;
6
+ placeholder?: string;
7
+ clearable?: boolean;
8
+ list: INmorphAutocompleteListItem[];
9
+ actionCallback?: NmorphAutocompleteActionCallbackType;
10
+ }
11
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
12
+ modelValue: string;
13
+ placeholder: string;
14
+ fill: boolean;
15
+ height: string;
16
+ disabled: boolean;
17
+ clearable: boolean;
18
+ list: () => never[];
19
+ actionCallback: undefined;
20
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
21
+ "update:modelValue": (value: string) => void;
22
+ select: (value: unknown) => void;
23
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
24
+ modelValue: string;
25
+ placeholder: string;
26
+ fill: boolean;
27
+ height: string;
28
+ disabled: boolean;
29
+ clearable: boolean;
30
+ list: () => never[];
31
+ actionCallback: undefined;
32
+ }>>> & {
33
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
34
+ onSelect?: ((value: unknown) => any) | undefined;
35
+ }, {
36
+ fill: boolean;
37
+ disabled: boolean;
38
+ modelValue: string;
39
+ placeholder: string;
40
+ clearable: boolean;
41
+ height: "thick" | "default" | "thin";
42
+ list: INmorphAutocompleteListItem[];
43
+ actionCallback: NmorphAutocompleteActionCallbackType;
44
+ }, {}>, {
45
+ loader?(_: {}): any;
46
+ default?(_: {
47
+ scope: INmorphAutocompleteListItem;
48
+ }): any;
49
+ }>;
50
+ export default _default;
51
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
52
+ type __VLS_TypePropsToRuntimeProps<T> = {
53
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
54
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
55
+ } : {
56
+ type: PropType<T[K]>;
57
+ required: true;
58
+ };
59
+ };
60
+ type __VLS_WithDefaults<P, D> = {
61
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
62
+ default: D[K];
63
+ }> : P[K];
64
+ };
65
+ type __VLS_Prettify<T> = {
66
+ [K in keyof T]: T[K];
67
+ } & {};
68
+ type __VLS_WithTemplateSlots<T, S> = T & {
69
+ new (): {
70
+ $slots: S;
71
+ };
72
+ };
@@ -0,0 +1,5 @@
1
+ export interface INmorphAutocompleteListItem {
2
+ value: string;
3
+ [key: string]: unknown;
4
+ }
5
+ export type NmorphAutocompleteActionCallbackType = (...args: unknown[]) => Promise<unknown>;
@@ -0,0 +1,7 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3
+ clear: () => void;
4
+ }, string, PublicProps, Readonly<ExtractPropTypes<{}>> & {
5
+ onClear?: (() => any) | undefined;
6
+ }, {}, {}>;
7
+ export default _default;
@@ -0,0 +1,70 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { INmorphCommonInputProps } from '../../../types/common';
3
+ import { NmorphSelectionDateType } from './components/types';
4
+ import { NmorphSelectedDateModelType } from '../../nmorph-calendar/types';
5
+ interface INmorphProps extends Omit<INmorphCommonInputProps, 'fill'> {
6
+ placeholder?: string;
7
+ initialStartDate?: Date;
8
+ initialEndDate?: Date;
9
+ modelValue: NmorphSelectedDateModelType;
10
+ type?: keyof typeof NmorphSelectionDateType;
11
+ textSeparator?: string;
12
+ startDatePlaceholder?: string;
13
+ endDatePlaceholder?: string;
14
+ }
15
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
16
+ disabled: boolean;
17
+ height: string;
18
+ placeholder: string;
19
+ initialStartDate: () => Date;
20
+ initialEndDate: undefined;
21
+ modelValue: null;
22
+ type: string;
23
+ textSeparator: string;
24
+ startDatePlaceholder: string;
25
+ endDatePlaceholder: string;
26
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
27
+ "update:modelValue": (modelValue: NmorphSelectedDateModelType) => void;
28
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
29
+ disabled: boolean;
30
+ height: string;
31
+ placeholder: string;
32
+ initialStartDate: () => Date;
33
+ initialEndDate: undefined;
34
+ modelValue: null;
35
+ type: string;
36
+ textSeparator: string;
37
+ startDatePlaceholder: string;
38
+ endDatePlaceholder: string;
39
+ }>>> & {
40
+ "onUpdate:modelValue"?: ((modelValue: NmorphSelectedDateModelType) => any) | undefined;
41
+ }, {
42
+ disabled: boolean;
43
+ modelValue: NmorphSelectedDateModelType;
44
+ type: "date" | "dates" | "daterange";
45
+ placeholder: string;
46
+ height: "thick" | "default" | "thin";
47
+ initialStartDate: Date;
48
+ initialEndDate: Date;
49
+ textSeparator: string;
50
+ startDatePlaceholder: string;
51
+ endDatePlaceholder: string;
52
+ }, {}>;
53
+ export default _default;
54
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
55
+ type __VLS_TypePropsToRuntimeProps<T> = {
56
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
57
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
58
+ } : {
59
+ type: PropType<T[K]>;
60
+ required: true;
61
+ };
62
+ };
63
+ type __VLS_WithDefaults<P, D> = {
64
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
65
+ default: D[K];
66
+ }> : P[K];
67
+ };
68
+ type __VLS_Prettify<T> = {
69
+ [K in keyof T]: T[K];
70
+ } & {};
@@ -0,0 +1,40 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { NmorphSelectionDateType } from '../types';
3
+ import { NmorphDateType, NmorphSelectedDateModelType } from '../../../../nmorph-calendar/types';
4
+ interface INmorphProps {
5
+ initialDate?: Date;
6
+ selectedValues: NmorphSelectedDateModelType;
7
+ type?: keyof typeof NmorphSelectionDateType;
8
+ }
9
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
10
+ initialDate: () => Date;
11
+ type: string;
12
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
13
+ "update-selected-value": (selectedValue: NmorphDateType) => void;
14
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
15
+ initialDate: () => Date;
16
+ type: string;
17
+ }>>> & {
18
+ "onUpdate-selected-value"?: ((selectedValue: NmorphDateType) => any) | undefined;
19
+ }, {
20
+ type: "date" | "dates" | "daterange";
21
+ initialDate: Date;
22
+ }, {}>;
23
+ export default _default;
24
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
25
+ type __VLS_TypePropsToRuntimeProps<T> = {
26
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
27
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
28
+ } : {
29
+ type: PropType<T[K]>;
30
+ required: true;
31
+ };
32
+ };
33
+ type __VLS_WithDefaults<P, D> = {
34
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
35
+ default: D[K];
36
+ }> : P[K];
37
+ };
38
+ type __VLS_Prettify<T> = {
39
+ [K in keyof T]: T[K];
40
+ } & {};
@@ -0,0 +1,43 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ interface INmorphProps {
3
+ date?: Date;
4
+ }
5
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
6
+ date: () => Date;
7
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
8
+ "prev-month": () => void;
9
+ "next-month": () => void;
10
+ "prev-year": () => void;
11
+ "next-year": () => void;
12
+ "change-year": () => void;
13
+ "change-month": () => void;
14
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
15
+ date: () => Date;
16
+ }>>> & {
17
+ "onPrev-month"?: (() => any) | undefined;
18
+ "onNext-month"?: (() => any) | undefined;
19
+ "onPrev-year"?: (() => any) | undefined;
20
+ "onNext-year"?: (() => any) | undefined;
21
+ "onChange-year"?: (() => any) | undefined;
22
+ "onChange-month"?: (() => any) | undefined;
23
+ }, {
24
+ date: Date;
25
+ }, {}>;
26
+ export default _default;
27
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
28
+ type __VLS_TypePropsToRuntimeProps<T> = {
29
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
30
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
31
+ } : {
32
+ type: PropType<T[K]>;
33
+ required: true;
34
+ };
35
+ };
36
+ type __VLS_WithDefaults<P, D> = {
37
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
38
+ default: D[K];
39
+ }> : P[K];
40
+ };
41
+ type __VLS_Prettify<T> = {
42
+ [K in keyof T]: T[K];
43
+ } & {};
@@ -0,0 +1,38 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ interface INmorphProps {
3
+ currentDate: Date;
4
+ type?: 'year' | 'month';
5
+ }
6
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
7
+ type: string;
8
+ }>, {}, unknown, {}, {}, 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
+ }>>> & {
15
+ "onUpdate-year"?: ((val: string) => any) | undefined;
16
+ "onUpdate-month"?: ((val: string) => any) | undefined;
17
+ "onBack-to-years"?: (() => any) | undefined;
18
+ }, {
19
+ type: "month" | "year";
20
+ }, {}>;
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,7 @@
1
+ export declare enum NmorphSelectionDateType {
2
+ 'date' = "date",
3
+ 'dates' = "dates",
4
+ 'daterange' = "daterange"
5
+ }
6
+ export type NmorphInnerPickerType = 'calendar' | 'year' | 'month';
7
+ export type ControlsType = 'decrease' | 'increase';
@@ -1,29 +1,40 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { Resolution } from './types';
3
- interface IProps {
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, Ref } from 'vue';
2
+ import { INmorphCustomFileData, NmorphResolutionType } from './types';
3
+ import { NmorphDomElementType } from '../../../types/common';
4
+ interface INmorphProps {
5
+ modelValue?: INmorphCustomFileData[];
4
6
  disabled?: boolean;
5
7
  multiple?: boolean;
6
- allowedTypes?: Resolution[];
8
+ allowedTypes?: NmorphResolutionType[];
7
9
  photoWithPreview?: boolean;
10
+ fill?: boolean;
8
11
  }
9
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
12
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
13
+ modelValue: () => never[];
10
14
  disabled: boolean;
11
15
  multiple: boolean;
12
16
  allowedTypes: () => string[];
13
17
  photoWithPreview: boolean;
18
+ fill: boolean;
14
19
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
15
- "on-files-changed": (val: File[]) => void;
20
+ inputDOMRef: (val: Ref<NmorphDomElementType>) => void;
21
+ "update:modelValue": (val: File[]) => void;
16
22
  "on-unsupported-file-type-error": (val: string) => void;
17
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
23
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
24
+ modelValue: () => never[];
18
25
  disabled: boolean;
19
26
  multiple: boolean;
20
27
  allowedTypes: () => string[];
21
28
  photoWithPreview: boolean;
29
+ fill: boolean;
22
30
  }>>> & {
23
- "onOn-files-changed"?: ((val: File[]) => any) | undefined;
31
+ onInputDOMRef?: ((val: Ref<NmorphDomElementType>) => any) | undefined;
32
+ "onUpdate:modelValue"?: ((val: File[]) => any) | undefined;
24
33
  "onOn-unsupported-file-type-error"?: ((val: string) => any) | undefined;
25
34
  }, {
35
+ fill: boolean;
26
36
  disabled: boolean;
37
+ modelValue: INmorphCustomFileData[];
27
38
  multiple: boolean;
28
39
  allowedTypes: ("zip" | "rar" | "7z" | "pdf" | "msword" | "docx" | "xlsx" | "pptx" | "json" | "xml" | "mpeg" | "audio-ogg" | "wav" | "mp4" | "webm" | "wideo-ogg" | "jpeg" | "jpg" | "png" | "gif" | "svg-xml" | "webp")[];
29
40
  photoWithPreview: boolean;
@@ -1,4 +1,4 @@
1
- export declare enum ImageResolution {
1
+ export declare enum NmorphImageResolution {
2
2
  jpeg = "image/jpeg",
3
3
  jpg = "image/jpg",
4
4
  png = "image/png",
@@ -6,17 +6,17 @@ export declare enum ImageResolution {
6
6
  'svg-xml' = "image/svg+xml",
7
7
  webp = "image/webp"
8
8
  }
9
- export declare enum VideoResolution {
9
+ export declare enum NmorphVideoResolution {
10
10
  mp4 = "video/mp4",
11
11
  webm = "video/webm",
12
12
  'wideo-ogg' = "video/ogg"
13
13
  }
14
- export declare enum AudioResolution {
14
+ export declare enum NmorphAudioResolution {
15
15
  mpeg = "audio/mpeg",
16
16
  'audio-ogg' = "audio/ogg",
17
17
  wav = "audio/wav"
18
18
  }
19
- export declare enum DocResolution {
19
+ export declare enum NmorphDocResolution {
20
20
  pdf = "application/pdf",
21
21
  msword = "application/msword",
22
22
  docx = "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
@@ -25,33 +25,37 @@ export declare enum DocResolution {
25
25
  json = "application/json",
26
26
  xml = "application/xml"
27
27
  }
28
- export declare enum ArchiveResolution {
28
+ export declare enum NmorphArchiveResolution {
29
29
  zip = "application/zip",
30
30
  rar = "application/x-rar-compressed",
31
31
  '7z' = "application/x-7z-compressed"
32
32
  }
33
33
  export declare const resolution: {
34
- zip: ArchiveResolution.zip;
35
- rar: ArchiveResolution.rar;
36
- '7z': (typeof ArchiveResolution)["7z"];
37
- pdf: DocResolution.pdf;
38
- msword: DocResolution.msword;
39
- docx: DocResolution.docx;
40
- xlsx: DocResolution.xlsx;
41
- pptx: DocResolution.pptx;
42
- json: DocResolution.json;
43
- xml: DocResolution.xml;
44
- mpeg: AudioResolution.mpeg;
45
- 'audio-ogg': (typeof AudioResolution)["audio-ogg"];
46
- wav: AudioResolution.wav;
47
- mp4: VideoResolution.mp4;
48
- webm: VideoResolution.webm;
49
- 'wideo-ogg': (typeof VideoResolution)["wideo-ogg"];
50
- jpeg: ImageResolution.jpeg;
51
- jpg: ImageResolution.jpg;
52
- png: ImageResolution.png;
53
- gif: ImageResolution.gif;
54
- 'svg-xml': (typeof ImageResolution)["svg-xml"];
55
- webp: ImageResolution.webp;
34
+ zip: NmorphArchiveResolution.zip;
35
+ rar: NmorphArchiveResolution.rar;
36
+ '7z': (typeof NmorphArchiveResolution)["7z"];
37
+ pdf: NmorphDocResolution.pdf;
38
+ msword: NmorphDocResolution.msword;
39
+ docx: NmorphDocResolution.docx;
40
+ xlsx: NmorphDocResolution.xlsx;
41
+ pptx: NmorphDocResolution.pptx;
42
+ json: NmorphDocResolution.json;
43
+ xml: NmorphDocResolution.xml;
44
+ mpeg: NmorphAudioResolution.mpeg;
45
+ 'audio-ogg': (typeof NmorphAudioResolution)["audio-ogg"];
46
+ wav: NmorphAudioResolution.wav;
47
+ mp4: NmorphVideoResolution.mp4;
48
+ webm: NmorphVideoResolution.webm;
49
+ 'wideo-ogg': (typeof NmorphVideoResolution)["wideo-ogg"];
50
+ jpeg: NmorphImageResolution.jpeg;
51
+ jpg: NmorphImageResolution.jpg;
52
+ png: NmorphImageResolution.png;
53
+ gif: NmorphImageResolution.gif;
54
+ 'svg-xml': (typeof NmorphImageResolution)["svg-xml"];
55
+ webp: NmorphImageResolution.webp;
56
56
  };
57
- export type Resolution = keyof typeof resolution;
57
+ export type NmorphResolutionType = keyof typeof resolution;
58
+ export interface INmorphCustomFileData {
59
+ data: File;
60
+ previewUrl: string;
61
+ }
@@ -1,56 +1,41 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { INumberValidationRule } from '../../../hooks/useValidation';
3
- import { CommonInputProps, ControlComponentHeight } from '../../../types/common.enums';
4
- interface IProps extends CommonInputProps {
1
+ import { INmorphCommonInputProps, NmorphDomElementType } from '../../../types/common';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, Ref } from 'vue';
3
+ interface INmorphProps extends INmorphCommonInputProps {
5
4
  modelValue?: number;
6
5
  max?: number;
7
6
  min?: number;
8
7
  step?: number;
9
8
  actionBtnPositionRight?: boolean;
10
- rules?: INumberValidationRule[];
11
- showValidationIcon?: boolean;
12
- staticErrorBoxSpace?: boolean;
13
9
  }
14
- declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
15
- height: ControlComponentHeight;
10
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
11
+ height: string;
16
12
  modelValue: number;
17
13
  max: number;
18
14
  min: number;
19
15
  step: number;
20
16
  disabled: boolean;
21
17
  actionBtnPositionRight: boolean;
22
- label: string;
23
- rules: () => never[];
24
- showValidationIcon: boolean;
25
- staticErrorBoxSpace: boolean;
26
- interceptWrongValue: boolean;
27
18
  fill: boolean;
28
19
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
29
- "update:modelValue": (val: string) => void;
30
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
31
- height: ControlComponentHeight;
20
+ inputDOMRef: (val: Ref<NmorphDomElementType>) => void;
21
+ "update:modelValue": (val: number) => void;
22
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
23
+ height: string;
32
24
  modelValue: number;
33
25
  max: number;
34
26
  min: number;
35
27
  step: number;
36
28
  disabled: boolean;
37
29
  actionBtnPositionRight: boolean;
38
- label: string;
39
- rules: () => never[];
40
- showValidationIcon: boolean;
41
- staticErrorBoxSpace: boolean;
42
- interceptWrongValue: boolean;
43
30
  fill: boolean;
44
31
  }>>> & {
45
- "onUpdate:modelValue"?: ((val: string) => any) | undefined;
32
+ onInputDOMRef?: ((val: Ref<NmorphDomElementType>) => any) | undefined;
33
+ "onUpdate:modelValue"?: ((val: number) => any) | undefined;
46
34
  }, {
35
+ fill: boolean;
47
36
  disabled: boolean;
48
37
  modelValue: number;
49
- fill: boolean;
50
- rules: INumberValidationRule[];
51
- showValidationIcon: boolean;
52
- staticErrorBoxSpace: boolean;
53
- height: "default" | "thick" | "thin";
38
+ height: "thick" | "default" | "thin";
54
39
  max: number;
55
40
  min: number;
56
41
  step: number;