@nmorph/nmorph-ui-kit 0.0.1 → 0.0.2

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 (107) hide show
  1. package/dist/index.es.js +3897 -3912
  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 +14 -5
  6. package/dist/styles/base/_common-mixins.scss +12 -5
  7. package/dist/styles/base/_dimensions.scss +18 -8
  8. package/dist/styles/base/_theme-mixin.scss +12 -10
  9. package/dist/styles/base/_typography.scss +29 -132
  10. package/dist/styles/base/style.scss +3 -7
  11. package/dist/styles/main.scss +1 -2
  12. package/dist/types/components/form/nmorph-form/NmorphForm.vue.d.ts +56 -0
  13. package/dist/types/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.d.ts +58 -0
  14. package/dist/types/components/form/nmorph-form/components/nmorph-form-item/components/index.d.ts +3 -0
  15. package/dist/types/components/form/nmorph-form/components/nmorph-form-item/components/nmorph-error-box/NmorphErrorBox.vue.d.ts +38 -0
  16. package/dist/types/components/form/nmorph-form/components/nmorph-form-item/components/nmorph-validation-icon/NmorphValidationIcon.vue.d.ts +30 -0
  17. package/dist/types/components/form/types.d.ts +7 -0
  18. package/dist/types/components/inputs/checkbox/nmorph-checkbox/NmorphCheckbox.vue.d.ts +6 -3
  19. package/dist/types/components/inputs/checkbox/nmorph-checkbox-group/NmorphCheckboxGroup.vue.d.ts +4 -22
  20. package/dist/types/components/inputs/nmorph-autocomplete/NmorphAutocomplete.vue.d.ts +72 -0
  21. package/dist/types/components/inputs/nmorph-autocomplete/types.d.ts +5 -0
  22. package/dist/types/components/inputs/nmorph-clear-button/NmorphClearButton.vue.d.ts +7 -0
  23. package/dist/types/components/inputs/nmorph-date-picker/NmorphDatePicker.vue.d.ts +70 -0
  24. package/dist/types/components/inputs/nmorph-date-picker/components/nmorph-date-picker-content/NmorphDatePickerContent.vue.d.ts +40 -0
  25. package/dist/types/components/inputs/nmorph-date-picker/components/nmorph-date-picker-header/NmorphDatePickerHeader.vue.d.ts +43 -0
  26. package/dist/types/components/inputs/nmorph-date-picker/components/nmorph-year-month-picker/NmorphYearMonthPicker.vue.d.ts +38 -0
  27. package/dist/types/components/inputs/nmorph-date-picker/components/types.d.ts +6 -0
  28. package/dist/types/components/inputs/nmorph-file-upload/NmorphFileUpload.vue.d.ts +18 -3
  29. package/dist/types/components/inputs/nmorph-number-input/NmorphNumberInput.vue.d.ts +12 -27
  30. package/dist/types/components/inputs/nmorph-select/NmorphSelect.vue.d.ts +19 -8
  31. package/dist/types/components/inputs/nmorph-select-option/NmorphSelectOption.vue.d.ts +4 -4
  32. package/dist/types/components/inputs/nmorph-slider/NmorphSlider.vue.d.ts +4 -4
  33. package/dist/types/components/inputs/nmorph-switch/NmorphSwitch.vue.d.ts +7 -5
  34. package/dist/types/components/inputs/nmorph-text-input/NmorphTextInput.vue.d.ts +16 -30
  35. package/dist/types/components/inputs/nmorph-time-picker/NmorphTimePicker.vue.d.ts +65 -0
  36. package/dist/types/components/inputs/nmorph-time-picker/components/NmorphTimeRoller.vue.d.ts +46 -0
  37. package/dist/types/components/inputs/nmorph-time-picker/types.d.ts +3 -0
  38. package/dist/types/components/inputs/nmorph-time-picker/utils.d.ts +3 -0
  39. package/dist/types/components/inputs/radio/nmorph-radio/NmorphRadio.vue.d.ts +48 -0
  40. package/dist/types/components/inputs/radio/nmorph-radio-group/NmorphRadioGroup.vue.d.ts +7 -20
  41. package/dist/types/components/nmorph-alert/NmorphAlert.vue.d.ts +67 -0
  42. package/dist/types/components/nmorph-alert/types.d.ts +6 -0
  43. package/dist/types/components/nmorph-avatar/NmorphAvatar.vue.d.ts +62 -0
  44. package/dist/types/components/nmorph-avatar/type.d.ts +1 -0
  45. package/dist/types/components/nmorph-backtop/NmorphBacktop.vue.d.ts +48 -0
  46. package/dist/types/components/nmorph-badge/NmorphBadge.vue.d.ts +60 -0
  47. package/dist/types/components/nmorph-breadcrumb/NmorphBreadcrumb.vue.d.ts +36 -0
  48. package/dist/types/components/nmorph-breadcrumb/components/nmorph-breadcrumb-item/NmorphBreadcrumbItem.vue.d.ts +40 -0
  49. package/dist/types/components/nmorph-breadcrumb/types.d.ts +13 -0
  50. package/dist/types/components/nmorph-button/NmorphButton.vue.d.ts +14 -21
  51. package/dist/types/components/nmorph-calendar/NmorphCalendar.vue.d.ts +75 -0
  52. package/dist/types/components/nmorph-calendar/components/nmorph-calendar-header/NmorphCalendarHeader.vue.d.ts +42 -0
  53. package/dist/types/components/nmorph-calendar/locale.d.ts +1 -0
  54. package/dist/types/components/nmorph-calendar/types.d.ts +12 -0
  55. package/dist/types/components/nmorph-calendar/utils.d.ts +9 -0
  56. package/dist/types/components/nmorph-card/NmorphCard.vue.d.ts +4 -4
  57. package/dist/types/components/nmorph-carousel/NmorphCarousel.vue.d.ts +39 -2
  58. package/dist/types/components/nmorph-carousel/components/nmorph-carousel-item/NmorphCarouselItem.vue.d.ts +30 -0
  59. package/dist/types/components/nmorph-carousel/types.d.ts +5 -0
  60. package/dist/types/components/nmorph-collapse/NmorphCollapse.vue.d.ts +42 -0
  61. package/dist/types/components/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.d.ts +55 -0
  62. package/dist/types/components/nmorph-collapse/types.d.ts +6 -0
  63. package/dist/types/components/nmorph-dialog/NmorphDialog.vue.d.ts +47 -0
  64. package/dist/types/components/{inputs/common/NmorphValidationIcon.vue.d.ts → nmorph-divider/NmorphDivider.vue.d.ts} +5 -5
  65. package/dist/types/components/nmorph-divider/types.d.ts +1 -0
  66. package/dist/types/components/nmorph-dropdown/NmorphDropdown.vue.d.ts +55 -0
  67. package/dist/types/components/nmorph-icon/NmorphIcon.vue.d.ts +15 -15
  68. package/dist/types/components/nmorph-icon/NmorphIconsMap.d.ts +2 -4
  69. package/dist/types/components/nmorph-icon/types.d.ts +3 -3
  70. package/dist/types/components/nmorph-image/NmorphImage.vue.d.ts +6 -8
  71. package/dist/types/components/nmorph-link/NmorphLink.vue.d.ts +9 -9
  72. package/dist/types/components/nmorph-overlay/NmorphOverlay.vue.d.ts +2 -1
  73. package/dist/types/components/nmorph-pagination/NmorphPagination.vue.d.ts +56 -0
  74. package/dist/types/components/nmorph-progress/NmorphProgress.vue.d.ts +66 -0
  75. package/dist/types/components/nmorph-progress/types.d.ts +6 -0
  76. package/dist/types/components/nmorph-scroll/NmorphScroll.vue.d.ts +69 -0
  77. package/dist/types/components/nmorph-skeleton/NmorphSkeleton.vue.d.ts +45 -0
  78. package/dist/types/components/{nmorph-error-box/NmorphErrorBox.vue.d.ts → nmorph-skeleton/components/NmorphSkeletonItem.vue.d.ts} +5 -9
  79. package/dist/types/components/nmorph-skeleton/types.d.ts +1 -0
  80. package/dist/types/components/nmorph-sort-button/NmorphSortButton.vue.d.ts +28 -0
  81. package/dist/types/components/nmorph-tabs/NmorphTabs.vue.d.ts +47 -0
  82. package/dist/types/components/nmorph-tabs/components/nmorph-tab-pane/NmorphTabPane.vue.d.ts +40 -0
  83. package/dist/types/components/nmorph-tabs/type.d.ts +11 -0
  84. package/dist/types/components/nmorph-tabs/utils.d.ts +3 -0
  85. package/dist/types/components/nmorph-tag/NmorphTag.vue.d.ts +5 -5
  86. package/dist/types/components/nmorph-tooltip/NmorphTooltip.vue.d.ts +5 -23
  87. package/dist/types/components/table/nmorph-table/NmorphTable.vue.d.ts +59 -0
  88. package/dist/types/components/table/nmorph-table/components/nmorph-table-cell/NmorphTableCell.vue.d.ts +30 -0
  89. package/dist/types/components/table/nmorph-table/components/nmorph-table-column/NmorphTableColumn.vue.d.ts +48 -0
  90. package/dist/types/components/table/types.d.ts +19 -0
  91. package/dist/types/components.d.ts +32 -2
  92. package/dist/types/hooks/index.d.ts +3 -0
  93. package/dist/types/hooks/useFieldValidation.d.ts +53 -0
  94. package/dist/types/hooks/useFormValidation.d.ts +10 -0
  95. package/dist/types/hooks/usePlacement.d.ts +17 -0
  96. package/dist/types/types/common.d.ts +77 -0
  97. package/dist/types/utils/create-modifiers.d.ts +4 -1
  98. package/dist/types/utils/deep-clone.d.ts +1 -0
  99. package/dist/types/utils/generateUUID.d.ts +1 -0
  100. package/dist/types/utils/index.d.ts +3 -0
  101. package/dist/types/utils/is-string-html.d.ts +1 -0
  102. package/package.json +1 -1
  103. package/dist/styles/base/_transition.scss +0 -6
  104. package/dist/types/hooks/useValidation.d.ts +0 -55
  105. package/dist/types/types/common.enums.d.ts +0 -46
  106. /package/dist/types/components/inputs/nmorph-select-option/{types/index.d.ts → types.d.ts} +0 -0
  107. /package/dist/{styles/packages/style.scss → types/hooks/useEventManager.d.ts} +0 -0
@@ -0,0 +1,56 @@
1
+ import { DefineComponent, ComponentOptionsMixin, Ref, ComputedRef, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { FormValue } from '../types';
3
+ interface IProps {
4
+ value: FormValue;
5
+ validateImmediately?: boolean;
6
+ }
7
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
8
+ validateImmediately: boolean;
9
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
10
+ formValidator: (val: {
11
+ fields: Record<string, {
12
+ touched: Ref<boolean>;
13
+ valid: ComputedRef<boolean>;
14
+ errors: Ref<string[]>;
15
+ validate: () => null | undefined;
16
+ }>;
17
+ }) => void;
18
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
19
+ validateImmediately: boolean;
20
+ }>>> & {
21
+ onFormValidator?: ((val: {
22
+ fields: Record<string, {
23
+ touched: Ref<boolean>;
24
+ valid: ComputedRef<boolean>;
25
+ errors: Ref<string[]>;
26
+ validate: () => null | undefined;
27
+ }>;
28
+ }) => any) | undefined;
29
+ }, {
30
+ validateImmediately: boolean;
31
+ }, {}>, {
32
+ default?(_: {}): any;
33
+ }>;
34
+ export default _default;
35
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
36
+ type __VLS_TypePropsToRuntimeProps<T> = {
37
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
38
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
39
+ } : {
40
+ type: PropType<T[K]>;
41
+ required: true;
42
+ };
43
+ };
44
+ type __VLS_WithDefaults<P, D> = {
45
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
46
+ default: D[K];
47
+ }> : P[K];
48
+ };
49
+ type __VLS_Prettify<T> = {
50
+ [K in keyof T]: T[K];
51
+ } & {};
52
+ type __VLS_WithTemplateSlots<T, S> = T & {
53
+ new (): {
54
+ $slots: S;
55
+ };
56
+ };
@@ -0,0 +1,58 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { NmorphComponentHeight } from '../../../../../types/common';
3
+ interface IProps {
4
+ /**
5
+ * The ID of the form field used to bind to validation data.
6
+ * @type {string}
7
+ */
8
+ id: string;
9
+ height?: keyof typeof NmorphComponentHeight;
10
+ label?: string;
11
+ showValidationIcon?: boolean;
12
+ staticErrorBoxSpace?: boolean;
13
+ validate?: boolean;
14
+ }
15
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
16
+ label: string;
17
+ height: string;
18
+ showValidationIcon: boolean;
19
+ staticErrorBoxSpace: boolean;
20
+ validate: boolean;
21
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
22
+ label: string;
23
+ height: string;
24
+ showValidationIcon: boolean;
25
+ staticErrorBoxSpace: boolean;
26
+ validate: boolean;
27
+ }>>>, {
28
+ label: string;
29
+ height: "thick" | "default" | "thin";
30
+ showValidationIcon: boolean;
31
+ staticErrorBoxSpace: boolean;
32
+ validate: boolean;
33
+ }, {}>, {
34
+ default?(_: {}): any;
35
+ }>;
36
+ export default _default;
37
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
38
+ type __VLS_TypePropsToRuntimeProps<T> = {
39
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
40
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
41
+ } : {
42
+ type: PropType<T[K]>;
43
+ required: true;
44
+ };
45
+ };
46
+ type __VLS_WithDefaults<P, D> = {
47
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
48
+ default: D[K];
49
+ }> : P[K];
50
+ };
51
+ type __VLS_Prettify<T> = {
52
+ [K in keyof T]: T[K];
53
+ } & {};
54
+ type __VLS_WithTemplateSlots<T, S> = T & {
55
+ new (): {
56
+ $slots: S;
57
+ };
58
+ };
@@ -0,0 +1,3 @@
1
+ import NmorphErrorBox from './nmorph-error-box/NmorphErrorBox.vue';
2
+ import NmorphValidationIcon from './nmorph-validation-icon/NmorphValidationIcon.vue';
3
+ export { NmorphErrorBox, NmorphValidationIcon };
@@ -0,0 +1,38 @@
1
+ import { NmorphComponentHeight } from '../../../../../../../types/common';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, Ref } from 'vue';
3
+ interface IProps {
4
+ height?: keyof typeof NmorphComponentHeight;
5
+ errors?: string[] | Ref<string[]>;
6
+ staticHeight?: boolean;
7
+ }
8
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
9
+ height: string;
10
+ errors: () => never[];
11
+ staticHeight: boolean;
12
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
13
+ height: string;
14
+ errors: () => never[];
15
+ staticHeight: boolean;
16
+ }>>>, {
17
+ height: "thick" | "default" | "thin";
18
+ errors: string[] | Ref<string[]>;
19
+ staticHeight: boolean;
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,30 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, ComputedRef } from 'vue';
2
+ interface IProps {
3
+ valid: boolean | ComputedRef<boolean>;
4
+ show?: boolean | ComputedRef<boolean>;
5
+ }
6
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
7
+ show: boolean;
8
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
9
+ show: boolean;
10
+ }>>>, {
11
+ show: boolean | ComputedRef<boolean>;
12
+ }, {}>;
13
+ export default _default;
14
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
+ type __VLS_TypePropsToRuntimeProps<T> = {
16
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
17
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
18
+ } : {
19
+ type: PropType<T[K]>;
20
+ required: true;
21
+ };
22
+ };
23
+ type __VLS_WithDefaults<P, D> = {
24
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
25
+ default: D[K];
26
+ }> : P[K];
27
+ };
28
+ type __VLS_Prettify<T> = {
29
+ [K in keyof T]: T[K];
30
+ } & {};
@@ -0,0 +1,7 @@
1
+ import { Rules, useFormValidation } from '../../hooks';
2
+ export type AvailableFormValueType = string | string[] | number;
3
+ export type FormValue = Record<string, {
4
+ value: AvailableFormValueType;
5
+ rules: Rules;
6
+ }>;
7
+ export type FormValidationData = ReturnType<typeof useFormValidation>;
@@ -1,11 +1,13 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, Ref } from 'vue';
2
2
  import { ICheckboxOption } from '../types';
3
+ import { NmorphDomElement } from '../../../../types/common';
3
4
  declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ICheckboxOption>, {
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<NmorphDomElement>) => void;
9
11
  "update:modelValue": (val: boolean) => void;
10
12
  }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ICheckboxOption>, {
11
13
  disabled: boolean;
@@ -13,11 +15,12 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
13
15
  label: string;
14
16
  styleType: string;
15
17
  }>>> & {
18
+ onInputDOMRef?: ((val: Ref<NmorphDomElement>) => any) | undefined;
16
19
  "onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
17
20
  }, {
18
- disabled: boolean;
19
- modelValue: boolean;
20
21
  label: string;
22
+ modelValue: boolean;
23
+ disabled: boolean;
21
24
  styleType: "checkbox-style" | "button-style";
22
25
  }, {}>, {
23
26
  default?(_: {}): any;
@@ -1,26 +1,17 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { ICheckboxGroupValidationRule } from '../../../../hooks/useValidation';
3
- import { CommonInputProps, ComponentDirection } from '../../../../types/common.enums';
2
+ import { NmorphCommonInputProps, NmorphComponentDirection } from '../../../../types/common';
4
3
  import { ICheckboxOption, ICheckboxStyleType } from '../types';
5
- interface IProps extends CommonInputProps {
4
+ interface IProps extends NmorphCommonInputProps {
6
5
  modelValue: string[];
7
- options: ICheckboxOption[];
6
+ options?: ICheckboxOption[];
8
7
  styleType?: keyof typeof ICheckboxStyleType;
9
- direction?: keyof typeof ComponentDirection;
10
- rules?: ICheckboxGroupValidationRule[];
11
- showValidationIcon?: boolean;
12
- staticErrorBoxSpace?: boolean;
8
+ direction?: keyof typeof NmorphComponentDirection;
13
9
  }
14
10
  declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
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
17
  }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
@@ -28,20 +19,11 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
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
27
  options: ICheckboxOption[];
46
28
  direction: "row" | "column";
47
29
  }, {}>, {
@@ -0,0 +1,72 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { NmorphCommonInputProps } from '../../../types/common';
3
+ import { NmorphAutocompleteActionCallback, NmorphAutocompleteListItem } from './types';
4
+ interface IProps extends NmorphCommonInputProps {
5
+ modelValue?: string;
6
+ placeholder?: string;
7
+ clearable?: boolean;
8
+ list: NmorphAutocompleteListItem[];
9
+ actionCallback?: NmorphAutocompleteActionCallback;
10
+ }
11
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
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<IProps>, {
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
+ onSelect?: ((value: unknown) => any) | undefined;
34
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
35
+ }, {
36
+ fill: boolean;
37
+ height: "thick" | "default" | "thin";
38
+ list: NmorphAutocompleteListItem[];
39
+ placeholder: string;
40
+ modelValue: string;
41
+ clearable: boolean;
42
+ disabled: boolean;
43
+ actionCallback: NmorphAutocompleteActionCallback;
44
+ }, {}>, {
45
+ loader?(_: {}): any;
46
+ default?(_: {
47
+ scope: NmorphAutocompleteListItem;
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 NmorphAutocompleteListItem {
2
+ value: string;
3
+ [key: string]: unknown;
4
+ }
5
+ export type NmorphAutocompleteActionCallback = (...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 { NmorphCommonInputProps } from '../../../types/common';
3
+ import { NmorphSelectionDateType } from './components/types';
4
+ import { NmorphSelectedDateModel } from '../../nmorph-calendar/types';
5
+ interface IProps extends Omit<NmorphCommonInputProps, 'fill'> {
6
+ placeholder?: string;
7
+ initialStartDate?: Date;
8
+ initialEndDate?: Date;
9
+ modelValue: NmorphSelectedDateModel;
10
+ type?: keyof typeof NmorphSelectionDateType;
11
+ textSeparator?: string;
12
+ startDatePlaceholder?: string;
13
+ endDatePlaceholder?: string;
14
+ }
15
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
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: NmorphSelectedDateModel) => void;
28
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
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: NmorphSelectedDateModel) => any) | undefined;
41
+ }, {
42
+ type: "date" | "dates" | "daterange";
43
+ height: "thick" | "default" | "thin";
44
+ placeholder: string;
45
+ modelValue: NmorphSelectedDateModel;
46
+ disabled: boolean;
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 { NmorphDate, NmorphSelectedDateModel } from '../../../../nmorph-calendar/types';
4
+ interface IProps {
5
+ initialDate?: Date;
6
+ selectedValues: NmorphSelectedDateModel;
7
+ type?: keyof typeof NmorphSelectionDateType;
8
+ }
9
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
10
+ initialDate: () => Date;
11
+ type: string;
12
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
13
+ "update-selected-value": (selectedValue: NmorphDate) => void;
14
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
15
+ initialDate: () => Date;
16
+ type: string;
17
+ }>>> & {
18
+ "onUpdate-selected-value"?: ((selectedValue: NmorphDate) => 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 IProps {
3
+ date?: Date;
4
+ }
5
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
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<IProps>, {
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 IProps {
3
+ currentDate: Date;
4
+ type?: 'year' | 'month';
5
+ }
6
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
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<IProps>, {
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,6 @@
1
+ export declare enum NmorphSelectionDateType {
2
+ 'date' = "date",
3
+ 'dates' = "dates",
4
+ 'daterange' = "daterange"
5
+ }
6
+ export type NmorphInnerPickerType = 'calendar' | 'year' | 'month';
@@ -1,28 +1,43 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, Ref } from 'vue';
2
2
  import { Resolution } from './types';
3
+ import { NmorphDomElement } from '../../../types/common';
3
4
  interface IProps {
5
+ modelValue?: CustomFileData[];
4
6
  disabled?: boolean;
5
7
  multiple?: boolean;
6
8
  allowedTypes?: Resolution[];
7
9
  photoWithPreview?: boolean;
10
+ fill?: boolean;
11
+ }
12
+ interface CustomFileData {
13
+ data: File;
14
+ previewUrl: string;
8
15
  }
9
16
  declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
17
+ modelValue: () => never[];
10
18
  disabled: boolean;
11
19
  multiple: boolean;
12
20
  allowedTypes: () => string[];
13
21
  photoWithPreview: boolean;
22
+ fill: boolean;
14
23
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
15
- "on-files-changed": (val: File[]) => void;
24
+ inputDOMRef: (val: Ref<NmorphDomElement>) => void;
25
+ "update:modelValue": (val: File[]) => void;
16
26
  "on-unsupported-file-type-error": (val: string) => void;
17
27
  }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
28
+ modelValue: () => never[];
18
29
  disabled: boolean;
19
30
  multiple: boolean;
20
31
  allowedTypes: () => string[];
21
32
  photoWithPreview: boolean;
33
+ fill: boolean;
22
34
  }>>> & {
23
- "onOn-files-changed"?: ((val: File[]) => any) | undefined;
35
+ onInputDOMRef?: ((val: Ref<NmorphDomElement>) => any) | undefined;
36
+ "onUpdate:modelValue"?: ((val: File[]) => any) | undefined;
24
37
  "onOn-unsupported-file-type-error"?: ((val: string) => any) | undefined;
25
38
  }, {
39
+ fill: boolean;
40
+ modelValue: CustomFileData[];
26
41
  disabled: boolean;
27
42
  multiple: boolean;
28
43
  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")[];