@nmorph/nmorph-ui-kit 1.1.1 → 1.1.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 (121) hide show
  1. package/dist/index.d.ts +2 -0
  2. package/dist/index.es.js +3503 -3411
  3. package/dist/index.umd.js +216 -195
  4. package/dist/src/components/basic/index.d.ts +9 -0
  5. package/dist/src/components/basic/nmorph-button/NmorphButton.vue.d.ts +39 -0
  6. package/dist/src/components/basic/nmorph-button/types.d.ts +15 -0
  7. package/dist/src/components/basic/nmorph-icon/NmorphIcon.vue.d.ts +22 -0
  8. package/dist/src/components/basic/nmorph-icon/NmorphIcons.d.ts +260 -0
  9. package/dist/src/components/basic/nmorph-icon/types.d.ts +5 -0
  10. package/dist/src/components/basic/nmorph-link/NmorphLink.vue.d.ts +29 -0
  11. package/dist/src/components/basic/nmorph-link/types.d.ts +6 -0
  12. package/dist/src/components/basic/nmorph-scroll/NmorphScroll.vue.d.ts +49 -0
  13. package/dist/src/components/basic/nmorph-scroll/types.d.ts +14 -0
  14. package/dist/src/components/data/index.d.ts +28 -0
  15. package/dist/src/components/data/nmorph-avatar/NmorphAvatar.vue.d.ts +21 -0
  16. package/dist/src/components/data/nmorph-badge/NmorphBadge.vue.d.ts +31 -0
  17. package/dist/src/components/data/nmorph-calendar/NmorphCalendar.vue.d.ts +42 -0
  18. package/dist/src/components/data/nmorph-calendar/hooks/index.d.ts +2 -0
  19. package/dist/src/components/data/nmorph-calendar/hooks/use-calendar-texts.d.ts +4 -0
  20. package/dist/src/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue.d.ts +25 -0
  21. package/dist/src/components/data/nmorph-calendar/types.d.ts +12 -0
  22. package/dist/src/components/data/nmorph-calendar/utils.d.ts +10 -0
  23. package/dist/src/components/data/nmorph-card/NmorphCard.vue.d.ts +20 -0
  24. package/dist/src/components/data/nmorph-carousel/NmorphCarousel.vue.d.ts +19 -0
  25. package/dist/src/components/data/nmorph-carousel/components/nmorph-carousel-item/NmorphCarouselItem.vue.d.ts +13 -0
  26. package/dist/src/components/data/nmorph-carousel/types.d.ts +5 -0
  27. package/dist/src/components/data/nmorph-collapse/NmorphCollapse.vue.d.ts +21 -0
  28. package/dist/src/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.d.ts +32 -0
  29. package/dist/src/components/data/nmorph-collapse/types.d.ts +9 -0
  30. package/dist/src/components/data/nmorph-image/NmorphImage.vue.d.ts +30 -0
  31. package/dist/src/components/data/nmorph-image-preview/NmorphImagePreview.vue.d.ts +23 -0
  32. package/dist/src/components/data/nmorph-image-preview/types.d.ts +5 -0
  33. package/dist/src/components/data/nmorph-pagination/NmorphPagination.vue.d.ts +23 -0
  34. package/dist/src/components/data/nmorph-progress/NmorphProgress.vue.d.ts +29 -0
  35. package/dist/src/components/data/nmorph-progress/types.d.ts +6 -0
  36. package/dist/src/components/data/nmorph-skeleton/NmorphSkeleton.vue.d.ts +20 -0
  37. package/dist/src/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue.d.ts +16 -0
  38. package/dist/src/components/data/nmorph-skeleton/types.d.ts +5 -0
  39. package/dist/src/components/data/nmorph-table/NmorphTable.vue.d.ts +24 -0
  40. package/dist/src/components/data/nmorph-table/components/nmorph-table-cell/NmorphTableCell.vue.d.ts +13 -0
  41. package/dist/src/components/data/nmorph-table/components/nmorph-table-column/NmorphTableColumn.vue.d.ts +23 -0
  42. package/dist/src/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.vue.d.ts +11 -0
  43. package/dist/src/components/data/nmorph-table/types.d.ts +21 -0
  44. package/dist/src/components/data/nmorph-tag-list/NmorphTagList.vue.d.ts +13 -0
  45. package/dist/src/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue.d.ts +15 -0
  46. package/dist/src/components/data/nmorph-tag-list/types.d.ts +8 -0
  47. package/dist/src/components/feedback/index.d.ts +4 -0
  48. package/dist/src/components/feedback/nmorph-alert/NmorphAlert.vue.d.ts +30 -0
  49. package/dist/src/components/feedback/nmorph-alert/types.d.ts +18 -0
  50. package/dist/src/components/feedback/nmorph-dialog/NmorphDialog.vue.d.ts +38 -0
  51. package/dist/src/components/feedback/nmorph-tooltip/NmorphTooltip.vue.d.ts +25 -0
  52. package/dist/src/components/form/index.d.ts +22 -0
  53. package/dist/src/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.d.ts +36 -0
  54. package/dist/src/components/form/nmorph-autocomplete/types.d.ts +5 -0
  55. package/dist/src/components/form/nmorph-checkbox/NmorphCheckbox.vue.d.ts +24 -0
  56. package/dist/src/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue.d.ts +26 -0
  57. package/dist/src/components/form/nmorph-date-picker/NmorphDatePicker.vue.d.ts +24 -0
  58. package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-clear-button/NmorphClearButton.vue.d.ts +7 -0
  59. package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-content/NmorphDatePickerContent.vue.d.ts +17 -0
  60. package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/NmorphDatePickerHeader.vue.d.ts +21 -0
  61. package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.vue.d.ts +17 -0
  62. package/dist/src/components/form/nmorph-file-upload/NmorphFileUpload.vue.d.ts +34 -0
  63. package/dist/src/components/form/nmorph-file-upload/types.d.ts +61 -0
  64. package/dist/src/components/form/nmorph-form/NmorphForm.vue.d.ts +20 -0
  65. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.d.ts +25 -0
  66. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/index.d.ts +3 -0
  67. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue.d.ts +13 -0
  68. package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/NmorphValidationIcon.vue.d.ts +9 -0
  69. package/dist/src/components/form/nmorph-form/types.d.ts +12 -0
  70. package/dist/src/components/form/nmorph-form/use-form-item-input.d.ts +7 -0
  71. package/dist/src/components/form/nmorph-number-input/NmorphNumberInput.vue.d.ts +25 -0
  72. package/dist/src/components/form/nmorph-radio/NmorphRadio.vue.d.ts +26 -0
  73. package/dist/src/components/form/nmorph-radio-group/NmorphRadioGroup.vue.d.ts +28 -0
  74. package/dist/src/components/form/nmorph-select/NmorphSelect.vue.d.ts +35 -0
  75. package/dist/src/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue.d.ts +19 -0
  76. package/dist/src/components/form/nmorph-select/types.d.ts +9 -0
  77. package/dist/src/components/form/nmorph-select-button/NmorphSelectButton.vue.d.ts +25 -0
  78. package/dist/src/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.vue.d.ts +18 -0
  79. package/dist/src/components/form/nmorph-select-button/types.d.ts +8 -0
  80. package/dist/src/components/form/nmorph-slider/NmorphSlider.vue.d.ts +22 -0
  81. package/dist/src/components/form/nmorph-switch/NmorphSwitch.vue.d.ts +33 -0
  82. package/dist/src/components/form/nmorph-text-input/NmorphTextInput.vue.d.ts +36 -0
  83. package/dist/src/components/index.d.ts +7 -0
  84. package/dist/src/components/navigation/index.d.ts +9 -0
  85. package/dist/src/components/navigation/nmorph-backtop/NmorphBacktop.vue.d.ts +26 -0
  86. package/dist/src/components/navigation/nmorph-breadcrumb/NmorphBreadcrumb.vue.d.ts +15 -0
  87. package/dist/src/components/navigation/nmorph-breadcrumb/components/nmorph-breadcrumb-item/NmorphBreadcrumbItem.vue.d.ts +17 -0
  88. package/dist/src/components/navigation/nmorph-breadcrumb/types.d.ts +14 -0
  89. package/dist/src/components/navigation/nmorph-dropdown/NmorphDropdown.vue.d.ts +28 -0
  90. package/dist/src/components/navigation/nmorph-tabs/NmorphTabs.vue.d.ts +26 -0
  91. package/dist/src/components/navigation/nmorph-tabs/components/nmorph-tab-pane/NmorphTabPane.vue.d.ts +22 -0
  92. package/dist/src/components/navigation/nmorph-tabs/type.d.ts +12 -0
  93. package/dist/src/components/navigation/nmorph-tabs/utils.d.ts +3 -0
  94. package/dist/src/components/others/index.d.ts +3 -0
  95. package/dist/src/components/others/nmorph-divider/NmorphDivider.vue.d.ts +9 -0
  96. package/dist/src/components/others/nmorph-divider/types.d.ts +1 -0
  97. package/dist/src/components/others/nmorph-overlay/NmorphOverlay.vue.d.ts +20 -0
  98. package/dist/src/components/providers/index.d.ts +3 -0
  99. package/dist/src/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.d.ts +14 -0
  100. package/dist/src/components/providers/nmorph-notification-provider/types.d.ts +14 -0
  101. package/dist/src/hooks/index.d.ts +7 -0
  102. package/dist/src/hooks/use-common-styles.d.ts +1 -0
  103. package/dist/src/hooks/use-field-validation.d.ts +53 -0
  104. package/dist/src/hooks/use-form-validation.d.ts +13 -0
  105. package/dist/src/hooks/use-nmorph-translation.d.ts +7 -0
  106. package/dist/src/hooks/use-placement.d.ts +20 -0
  107. package/dist/src/hooks/use-style-class-mixins.d.ts +1 -0
  108. package/dist/src/main.d.ts +9 -0
  109. package/dist/src/outside-hooks/index.d.ts +4 -0
  110. package/dist/src/outside-hooks/use-nmorph-browser.d.ts +14 -0
  111. package/dist/src/outside-hooks/use-nmorph-notification.d.ts +7 -0
  112. package/dist/src/outside-hooks/use-nmorph-theme.d.ts +2 -0
  113. package/dist/src/outside-hooks/use-nmorph.d.ts +2 -0
  114. package/dist/src/outside-utils/index.d.ts +3 -0
  115. package/dist/src/types/index.d.ts +182 -0
  116. package/dist/src/utils/case-transformers.d.ts +5 -0
  117. package/dist/src/utils/common.d.ts +3 -0
  118. package/dist/src/utils/create-modifiers.d.ts +4 -0
  119. package/dist/src/utils/index.d.ts +4 -0
  120. package/dist/src/utils/theme-style.d.ts +15 -0
  121. package/package.json +1 -1
@@ -0,0 +1,36 @@
1
+ import { INmorphCommonInputProps } from '../../../types';
2
+ import { NmorphAutocompleteActionCallbackType, INmorphAutocompleteListItem } from '../..';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
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<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
12
+ select: (value: unknown) => any;
13
+ "update:model-value": (value: string) => any;
14
+ }, string, PublicProps, Readonly<INmorphProps> & Readonly<{
15
+ onSelect?: (value: unknown) => any;
16
+ "onUpdate:model-value"?: (value: string) => any;
17
+ }>, {
18
+ height: "default" | "thick" | "thin";
19
+ disabled: boolean;
20
+ placeholder: string;
21
+ modelValue: string;
22
+ clearable: boolean;
23
+ list: INmorphAutocompleteListItem[];
24
+ actionCallback: NmorphAutocompleteActionCallbackType;
25
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
26
+ loader?(_: {}): any;
27
+ default?(_: {
28
+ scope: INmorphAutocompleteListItem;
29
+ }): any;
30
+ }>;
31
+ export default _default;
32
+ type __VLS_WithTemplateSlots<T, S> = T & {
33
+ new (): {
34
+ $slots: S;
35
+ };
36
+ };
@@ -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,24 @@
1
+ import { INmorphCheckboxOption, NmorphCheckboxDesignType } from '../../../types';
2
+ import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphCheckboxOption, {
4
+ inputDOMRef: Ref<HTMLElement, HTMLElement>;
5
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
6
+ "update:model-value": (val: boolean) => any;
7
+ }, string, PublicProps, Readonly<INmorphCheckboxOption> & Readonly<{
8
+ "onUpdate:model-value"?: (val: boolean) => any;
9
+ }>, {
10
+ id: string;
11
+ disabled: boolean;
12
+ label: string;
13
+ modelValue: boolean;
14
+ design: NmorphCheckboxDesignType;
15
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
16
+ default?(_: {}): any;
17
+ label?(_: {}): any;
18
+ }>;
19
+ export default _default;
20
+ type __VLS_WithTemplateSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,26 @@
1
+ import { INmorphCheckboxOption, INmorphCommonInputProps, NmorphCheckboxDesignType, NmorphComponentDirection } from '../../../types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ interface INmorphProps extends INmorphCommonInputProps {
4
+ modelValue: string[];
5
+ options?: INmorphCheckboxOption[];
6
+ design?: NmorphCheckboxDesignType;
7
+ direction?: keyof typeof NmorphComponentDirection;
8
+ }
9
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
10
+ "update:model-value": (val: string[]) => any;
11
+ }, string, PublicProps, Readonly<INmorphProps> & Readonly<{
12
+ "onUpdate:model-value"?: (val: string[]) => any;
13
+ }>, {
14
+ modelValue: string[];
15
+ design: NmorphCheckboxDesignType;
16
+ options: INmorphCheckboxOption[];
17
+ direction: "row" | "column";
18
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
19
+ default?(_: {}): any;
20
+ }>;
21
+ export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,24 @@
1
+ import { INmorphCommonInputProps, NmorphSelectionDateType } from '../../../types';
2
+ import { NmorphSelectedDateModelType } from '../..';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ interface INmorphProps extends INmorphCommonInputProps {
5
+ placeholder?: string;
6
+ modelValue: NmorphSelectedDateModelType;
7
+ type?: keyof typeof NmorphSelectionDateType;
8
+ textSeparator?: string;
9
+ initialDate?: Date;
10
+ }
11
+ declare const _default: DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
12
+ "update:model-value": (modelValue: NmorphSelectedDateModelType) => any;
13
+ }, string, PublicProps, Readonly<INmorphProps> & Readonly<{
14
+ "onUpdate:model-value"?: (modelValue: NmorphSelectedDateModelType) => any;
15
+ }>, {
16
+ type: "date" | "dates" | "daterange";
17
+ height: "default" | "thick" | "thin";
18
+ disabled: boolean;
19
+ placeholder: string;
20
+ modelValue: NmorphSelectedDateModelType;
21
+ initialDate: Date;
22
+ textSeparator: string;
23
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
24
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
3
+ clear: () => any;
4
+ }, string, PublicProps, Readonly<{}> & Readonly<{
5
+ onClear?: () => any;
6
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
7
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { NmorphSelectedDateModelType } from '../../../..';
2
+ import { NmorphSelectionDateType } from '../../../../../types';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ interface INmorphProps {
5
+ initialDate?: Date;
6
+ selectedValues: NmorphSelectedDateModelType;
7
+ type?: keyof typeof NmorphSelectionDateType;
8
+ }
9
+ declare const _default: DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
10
+ "update-selected-value": (selectedValue: Date) => any;
11
+ }, string, PublicProps, Readonly<INmorphProps> & Readonly<{
12
+ "onUpdate-selected-value"?: (selectedValue: Date) => any;
13
+ }>, {
14
+ type: "date" | "dates" | "daterange";
15
+ initialDate: Date;
16
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
17
+ export default _default;
@@ -0,0 +1,21 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ interface INmorphProps {
3
+ year: number;
4
+ month: number;
5
+ }
6
+ declare const _default: DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
7
+ "prev-month": () => any;
8
+ "next-month": () => any;
9
+ "prev-year": () => any;
10
+ "next-year": () => any;
11
+ "change-year": () => any;
12
+ "change-month": () => any;
13
+ }, string, PublicProps, Readonly<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, false, {}, any>;
21
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ interface INmorphProps {
3
+ currentDate: Date;
4
+ type?: 'year' | 'month';
5
+ }
6
+ declare const _default: DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
7
+ "update-year": (val: string) => any;
8
+ "update-month": (val: string) => any;
9
+ "back-to-years": () => any;
10
+ }, string, PublicProps, Readonly<INmorphProps> & Readonly<{
11
+ "onUpdate-year"?: (val: string) => any;
12
+ "onUpdate-month"?: (val: string) => any;
13
+ "onBack-to-years"?: () => any;
14
+ }>, {
15
+ type: "year" | "month";
16
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
17
+ export default _default;
@@ -0,0 +1,34 @@
1
+ import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { INmorphCustomFileData, NmorphResolutionType } from '../..';
3
+ interface INmorphProps {
4
+ modelValue?: INmorphCustomFileData[];
5
+ disabled?: boolean;
6
+ multiple?: boolean;
7
+ allowedTypes?: NmorphResolutionType[];
8
+ photoWithPreview?: boolean;
9
+ buttonText?: string;
10
+ }
11
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<INmorphProps, {
12
+ inputDOMRef: Ref<HTMLElement, HTMLElement>;
13
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
14
+ "update:model-value": (val: File[]) => any;
15
+ "on-unsupported-file-type-error": (val: string) => any;
16
+ }, string, PublicProps, Readonly<INmorphProps> & Readonly<{
17
+ "onUpdate:model-value"?: (val: File[]) => any;
18
+ "onOn-unsupported-file-type-error"?: (val: string) => any;
19
+ }>, {
20
+ disabled: boolean;
21
+ modelValue: INmorphCustomFileData[];
22
+ multiple: boolean;
23
+ 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")[];
24
+ photoWithPreview: boolean;
25
+ buttonText: string;
26
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
27
+ trigger?(_: {}): any;
28
+ }>;
29
+ export default _default;
30
+ type __VLS_WithTemplateSlots<T, S> = T & {
31
+ new (): {
32
+ $slots: S;
33
+ };
34
+ };
@@ -0,0 +1,61 @@
1
+ export declare enum NmorphImageResolution {
2
+ jpeg = "image/jpeg",
3
+ jpg = "image/jpg",
4
+ png = "image/png",
5
+ gif = "image/gif",
6
+ 'svg-xml' = "image/svg+xml",
7
+ webp = "image/webp"
8
+ }
9
+ export declare enum NmorphVideoResolution {
10
+ mp4 = "video/mp4",
11
+ webm = "video/webm",
12
+ 'wideo-ogg' = "video/ogg"
13
+ }
14
+ export declare enum NmorphAudioResolution {
15
+ mpeg = "audio/mpeg",
16
+ 'audio-ogg' = "audio/ogg",
17
+ wav = "audio/wav"
18
+ }
19
+ export declare enum NmorphDocResolution {
20
+ pdf = "application/pdf",
21
+ msword = "application/msword",
22
+ docx = "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
23
+ xlsx = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
24
+ pptx = "application/vnd.openxmlformats-officedocument.presentationml.presentation",
25
+ json = "application/json",
26
+ xml = "application/xml"
27
+ }
28
+ export declare enum NmorphArchiveResolution {
29
+ zip = "application/zip",
30
+ rar = "application/x-rar-compressed",
31
+ '7z' = "application/x-7z-compressed"
32
+ }
33
+ export declare const resolution: {
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
+ };
57
+ export type NmorphResolutionType = keyof typeof resolution;
58
+ export interface INmorphCustomFileData {
59
+ data: File;
60
+ previewUrl: string;
61
+ }
@@ -0,0 +1,20 @@
1
+ import { NmorphFormValueType } from './types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ import { INmorphUseFormValidation } from '../../../hooks';
4
+ interface INmorphProps {
5
+ value: NmorphFormValueType;
6
+ validateImmediately?: boolean;
7
+ }
8
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
9
+ formData: INmorphUseFormValidation;
10
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
11
+ validateImmediately: boolean;
12
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
13
+ default?(_: {}): any;
14
+ }>;
15
+ export default _default;
16
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,25 @@
1
+ import { NmorphComponentHeight } from '../../../../../types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ interface INmorphProps {
4
+ id: string;
5
+ name?: string;
6
+ height?: keyof typeof NmorphComponentHeight;
7
+ label?: string;
8
+ showValidationIcon?: boolean;
9
+ staticErrorBoxSpace?: boolean;
10
+ }
11
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
12
+ name: string;
13
+ height: "default" | "thick" | "thin";
14
+ label: string;
15
+ showValidationIcon: boolean;
16
+ staticErrorBoxSpace: boolean;
17
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
18
+ default?(_: {}): any;
19
+ }>;
20
+ export default _default;
21
+ type __VLS_WithTemplateSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1,3 @@
1
+ import { default as NmorphErrorBox } from './nmorph-error-box/NmorphErrorBox.vue';
2
+ import { default as NmorphValidationIcon } from './nmorph-validation-icon/NmorphValidationIcon.vue';
3
+ export { NmorphErrorBox, NmorphValidationIcon };
@@ -0,0 +1,13 @@
1
+ import { NmorphComponentHeight } from '../../../../../../../types';
2
+ import { Ref, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ interface INmorphProps {
4
+ height?: keyof typeof NmorphComponentHeight;
5
+ errors?: string[] | Ref<string[]>;
6
+ staticHeight?: boolean;
7
+ }
8
+ declare const _default: DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
9
+ height: "default" | "thick" | "thin";
10
+ errors: string[] | Ref<string[], string[]>;
11
+ staticHeight: boolean;
12
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
13
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { ComputedRef, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ interface INmorphProps {
3
+ valid: boolean | ComputedRef<boolean>;
4
+ show?: boolean | ComputedRef<boolean>;
5
+ }
6
+ declare const _default: DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
7
+ show: boolean | ComputedRef<boolean>;
8
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
9
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import { INmorphUseFormValidation, NmorphRulesType } from '../../../hooks';
2
+ import { Ref } from 'vue';
3
+ export type NmorphAvailableFormValueType = string | string[] | number | number[] | boolean | boolean[] | Date | Date[];
4
+ export type NmorphFormValueType = Record<string, {
5
+ value: NmorphAvailableFormValueType;
6
+ rules: NmorphRulesType;
7
+ }>;
8
+ export type NmorphFormValidationDataType = INmorphUseFormValidation;
9
+ export interface NmorphFormItemInputDataType {
10
+ id: Ref<string>;
11
+ name: Ref<string>;
12
+ }
@@ -0,0 +1,7 @@
1
+ import { INmorphCommonInputProps } from '../../../types';
2
+ import { ComputedRef } from 'vue';
3
+ export declare const nmorphFormItemInputDataKey = "nmorph-form-item-input-data";
4
+ export declare const useFormItemInput: (props: Pick<INmorphCommonInputProps, 'id' | 'name'>) => {
5
+ id: ComputedRef<string>;
6
+ name: ComputedRef<string>;
7
+ };
@@ -0,0 +1,25 @@
1
+ import { INmorphCommonInputProps } from '../../../types';
2
+ import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ interface INmorphProps extends INmorphCommonInputProps {
4
+ modelValue?: number;
5
+ max?: number;
6
+ min?: number;
7
+ step?: number;
8
+ actionBtnPositionRight?: boolean;
9
+ }
10
+ declare const _default: DefineComponent<INmorphProps, {
11
+ inputDOMRef: Ref<HTMLElement, HTMLElement>;
12
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
13
+ "update:model-value": (val: number) => any;
14
+ }, string, PublicProps, Readonly<INmorphProps> & Readonly<{
15
+ "onUpdate:model-value"?: (val: number) => any;
16
+ }>, {
17
+ height: "default" | "thick" | "thin";
18
+ disabled: boolean;
19
+ modelValue: number;
20
+ max: number;
21
+ min: number;
22
+ step: number;
23
+ actionBtnPositionRight: boolean;
24
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
25
+ export default _default;
@@ -0,0 +1,26 @@
1
+ import { INmorphRadioOption, NmorphRadioStyleType } from '../../../types';
2
+ import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ interface INmorphProps extends Omit<INmorphRadioOption, 'value'> {
4
+ value?: string;
5
+ styleType?: keyof typeof NmorphRadioStyleType;
6
+ checked?: boolean;
7
+ }
8
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
9
+ inputDOMRef: Ref<HTMLElement, HTMLElement>;
10
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
11
+ value: string;
12
+ styleType: "button" | "radio-style";
13
+ tabindex: number;
14
+ disabled: boolean;
15
+ label: string;
16
+ checked: boolean;
17
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
18
+ label?(_: {}): any;
19
+ label?(_: {}): any;
20
+ }>;
21
+ export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,28 @@
1
+ import { INmorphCommonInputProps, INmorphRadioOption, NmorphComponentDirection, NmorphRadioStyleType } from '../../../types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type NmorphListRadioOptionElementType = Omit<INmorphRadioOption, 'checked'>;
4
+ interface INmorphProps extends INmorphCommonInputProps {
5
+ modelValue: string;
6
+ options?: NmorphListRadioOptionElementType[];
7
+ styleType?: keyof typeof NmorphRadioStyleType;
8
+ direction?: keyof typeof NmorphComponentDirection;
9
+ }
10
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
11
+ "update:model-value": (val: string) => any;
12
+ }, string, PublicProps, Readonly<INmorphProps> & Readonly<{
13
+ "onUpdate:model-value"?: (val: string) => any;
14
+ }>, {
15
+ styleType: "button" | "radio-style";
16
+ disabled: boolean;
17
+ modelValue: string;
18
+ options: NmorphListRadioOptionElementType[];
19
+ direction: "row" | "column";
20
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
21
+ default?(_: {}): any;
22
+ }>;
23
+ export default _default;
24
+ type __VLS_WithTemplateSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,35 @@
1
+ import { INmorphCommonInputProps } from '../../../types';
2
+ import { NmorphSelectModelValueType, INmorphSelectOption } from '../..';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ interface INmorphProps extends INmorphCommonInputProps {
5
+ noElementPlaceholder?: string;
6
+ valueRequired?: boolean;
7
+ options?: INmorphSelectOption[];
8
+ optionsMap?: INmorphSelectOption[];
9
+ modelValue?: NmorphSelectModelValueType;
10
+ loading?: boolean;
11
+ open?: boolean;
12
+ }
13
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
14
+ "update:model-value": (val: NmorphSelectModelValueType) => any;
15
+ }, string, PublicProps, Readonly<INmorphProps> & Readonly<{
16
+ "onUpdate:model-value"?: (val: NmorphSelectModelValueType) => any;
17
+ }>, {
18
+ loading: boolean;
19
+ height: "default" | "thick" | "thin";
20
+ disabled: boolean;
21
+ modelValue: NmorphSelectModelValueType;
22
+ open: boolean;
23
+ options: INmorphSelectOption[];
24
+ noElementPlaceholder: string;
25
+ valueRequired: boolean;
26
+ optionsMap: INmorphSelectOption[];
27
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
28
+ default?(_: {}): any;
29
+ }>;
30
+ export default _default;
31
+ type __VLS_WithTemplateSlots<T, S> = T & {
32
+ new (): {
33
+ $slots: S;
34
+ };
35
+ };
@@ -0,0 +1,19 @@
1
+ import { INmorphSelectOption } from '../../../..';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphSelectOption, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
4
+ "change-value": (val: string) => any;
5
+ }, string, PublicProps, Readonly<INmorphSelectOption> & Readonly<{
6
+ "onChange-value"?: (val: string) => any;
7
+ }>, {
8
+ height: "default" | "thick" | "thin";
9
+ disabled: boolean;
10
+ label: string;
11
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
12
+ default?(_: {}): any;
13
+ }>;
14
+ export default _default;
15
+ type __VLS_WithTemplateSlots<T, S> = T & {
16
+ new (): {
17
+ $slots: S;
18
+ };
19
+ };
@@ -0,0 +1,9 @@
1
+ import { INmorphCommonInputProps } from '../../../types';
2
+ import { Ref } from 'vue';
3
+ export type NmorphSelectModelValueType = string | string[];
4
+ export type NmorphSelectSelectedValueInjectionType = Ref<NmorphSelectModelValueType>;
5
+ export type NmorphSelectChangeSelectedValue = (value: string) => void;
6
+ export interface INmorphSelectOption extends INmorphCommonInputProps {
7
+ value: string;
8
+ label: string;
9
+ }
@@ -0,0 +1,25 @@
1
+ import { INmorphCommonInputProps } from '../../../types';
2
+ import { INmorphSelectButtonOption } from '../..';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
+ interface INmorphProps extends INmorphCommonInputProps {
5
+ modelValue?: string;
6
+ options?: INmorphSelectButtonOption[];
7
+ }
8
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
9
+ "update:model-value": (val: string) => any;
10
+ }, string, PublicProps, Readonly<INmorphProps> & Readonly<{
11
+ "onUpdate:model-value"?: (val: string) => any;
12
+ }>, {
13
+ height: "default" | "thick" | "thin";
14
+ disabled: boolean;
15
+ modelValue: string;
16
+ options: INmorphSelectButtonOption[];
17
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
18
+ default?(_: {}): any;
19
+ }>;
20
+ export default _default;
21
+ type __VLS_WithTemplateSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1,18 @@
1
+ import { INmorphCommonInputProps } from '../../../../../types';
2
+ import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ interface INmorphProps extends Omit<INmorphCommonInputProps, 'height'> {
4
+ value: string;
5
+ }
6
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
7
+ inputDOMRef: Ref<HTMLElement, HTMLElement>;
8
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
9
+ disabled: boolean;
10
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
11
+ default?(_: {}): any;
12
+ }>;
13
+ export default _default;
14
+ type __VLS_WithTemplateSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,8 @@
1
+ import { Ref } from 'vue';
2
+ export type NmorphSelectButtonChangeHandlerInjectionType = (value: string) => void;
3
+ export type NmorphSelectButtonSelectedValueInjectionType = Ref<string>;
4
+ export interface INmorphSelectButtonOption {
5
+ value: string;
6
+ label?: string;
7
+ disabled?: boolean;
8
+ }
@@ -0,0 +1,22 @@
1
+ import { INmorphCommonInputProps } from '../../../types';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ interface INmorphProps extends Omit<INmorphCommonInputProps, 'height'> {
4
+ modelValue?: number;
5
+ max?: number;
6
+ min?: number;
7
+ step?: number;
8
+ showTooltip?: boolean;
9
+ }
10
+ declare const _default: DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
11
+ "update:model-value": (val: number) => any;
12
+ }, string, PublicProps, Readonly<INmorphProps> & Readonly<{
13
+ "onUpdate:model-value"?: (val: number) => any;
14
+ }>, {
15
+ disabled: boolean;
16
+ modelValue: number;
17
+ max: number;
18
+ showTooltip: boolean;
19
+ min: number;
20
+ step: number;
21
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
22
+ export default _default;
@@ -0,0 +1,33 @@
1
+ import { INmorphCommonInputProps } from '../../../types';
2
+ import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type NmorphSwitchModelType = boolean | string | number;
4
+ interface INmorphProps extends Omit<INmorphCommonInputProps, 'height'> {
5
+ modelValue?: NmorphSwitchModelType;
6
+ loading?: boolean;
7
+ activeValue?: NmorphSwitchModelType;
8
+ inactiveValue?: NmorphSwitchModelType;
9
+ }
10
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
11
+ inputDOMRef: Ref<HTMLElement, HTMLElement>;
12
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
13
+ "update:model-value": (val: string | number | boolean) => any;
14
+ }, string, PublicProps, Readonly<INmorphProps> & Readonly<{
15
+ "onUpdate:model-value"?: (val: string | number | boolean) => any;
16
+ }>, {
17
+ loading: boolean;
18
+ disabled: boolean;
19
+ modelValue: NmorphSwitchModelType;
20
+ activeValue: NmorphSwitchModelType;
21
+ inactiveValue: NmorphSwitchModelType;
22
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
23
+ "bg-on"?(_: {}): any;
24
+ "bg-off"?(_: {}): any;
25
+ "thumb-on"?(_: {}): any;
26
+ "thumb-off"?(_: {}): any;
27
+ }>;
28
+ export default _default;
29
+ type __VLS_WithTemplateSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };