@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
@@ -0,0 +1,66 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { NmorphProgressColorType, NmorphProgressType } from './types';
3
+ interface INmorphProps {
4
+ type?: NmorphProgressType;
5
+ color?: NmorphProgressColorType;
6
+ percentage: number;
7
+ textInside?: boolean;
8
+ showText?: boolean;
9
+ indeterminate?: boolean;
10
+ circleSize?: number;
11
+ strokeWidth?: number;
12
+ }
13
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
14
+ height: string;
15
+ type: string;
16
+ color: string;
17
+ textInside: boolean;
18
+ showText: boolean;
19
+ indeterminate: boolean;
20
+ circleSize: number;
21
+ strokeWidth: number;
22
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
23
+ height: string;
24
+ type: string;
25
+ color: string;
26
+ textInside: boolean;
27
+ showText: boolean;
28
+ indeterminate: boolean;
29
+ circleSize: number;
30
+ strokeWidth: number;
31
+ }>>>, {
32
+ type: NmorphProgressType;
33
+ color: NmorphProgressColorType;
34
+ textInside: boolean;
35
+ showText: boolean;
36
+ indeterminate: boolean;
37
+ circleSize: number;
38
+ strokeWidth: number;
39
+ }, {}>, {
40
+ "inner-text"?(_: {}): any;
41
+ "right-sight"?(_: {}): any;
42
+ "circle-inner-part"?(_: {}): any;
43
+ }>;
44
+ export default _default;
45
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
46
+ type __VLS_TypePropsToRuntimeProps<T> = {
47
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
48
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
49
+ } : {
50
+ type: PropType<T[K]>;
51
+ required: true;
52
+ };
53
+ };
54
+ type __VLS_WithDefaults<P, D> = {
55
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
56
+ default: D[K];
57
+ }> : P[K];
58
+ };
59
+ type __VLS_Prettify<T> = {
60
+ [K in keyof T]: T[K];
61
+ } & {};
62
+ type __VLS_WithTemplateSlots<T, S> = T & {
63
+ new (): {
64
+ $slots: S;
65
+ };
66
+ };
@@ -0,0 +1,6 @@
1
+ export type NmorphProgressType = 'linear' | 'circle';
2
+ export type NmorphProgressColorFn = (percentage: number) => string;
3
+ export type NmorphProgressColorType = string | {
4
+ color: string;
5
+ percentage: number;
6
+ }[] | NmorphProgressColorFn;
@@ -0,0 +1,63 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { NmorphCoordsType, NmorphOverflowProp } from './types';
3
+ interface INmorphProps {
4
+ modelValue?: NmorphCoordsType;
5
+ scrollYProp?: keyof typeof NmorphOverflowProp;
6
+ scrollXProp?: keyof typeof NmorphOverflowProp;
7
+ scrollEndDelay?: number;
8
+ }
9
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
10
+ modelValue: () => {
11
+ x: number;
12
+ y: number;
13
+ };
14
+ scrollYProp: string;
15
+ scrollXProp: string;
16
+ scrollEndDelay: number;
17
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
18
+ "on-scroll": (event: Event) => void;
19
+ "update:modelValue": (coords: NmorphCoordsType) => void;
20
+ "on-scroll-end": () => void;
21
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
22
+ modelValue: () => {
23
+ x: number;
24
+ y: number;
25
+ };
26
+ scrollYProp: string;
27
+ scrollXProp: string;
28
+ scrollEndDelay: number;
29
+ }>>> & {
30
+ "onUpdate:modelValue"?: ((coords: NmorphCoordsType) => any) | undefined;
31
+ "onOn-scroll"?: ((event: Event) => any) | undefined;
32
+ "onOn-scroll-end"?: (() => any) | undefined;
33
+ }, {
34
+ modelValue: NmorphCoordsType;
35
+ scrollYProp: "hidden" | "auto" | "scroll";
36
+ scrollXProp: "hidden" | "auto" | "scroll";
37
+ scrollEndDelay: number;
38
+ }, {}>, {
39
+ default?(_: {}): any;
40
+ }>;
41
+ export default _default;
42
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
43
+ type __VLS_TypePropsToRuntimeProps<T> = {
44
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
45
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
46
+ } : {
47
+ type: PropType<T[K]>;
48
+ required: true;
49
+ };
50
+ };
51
+ type __VLS_WithDefaults<P, D> = {
52
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
53
+ default: D[K];
54
+ }> : P[K];
55
+ };
56
+ type __VLS_Prettify<T> = {
57
+ [K in keyof T]: T[K];
58
+ } & {};
59
+ type __VLS_WithTemplateSlots<T, S> = T & {
60
+ new (): {
61
+ $slots: S;
62
+ };
63
+ };
@@ -0,0 +1,7 @@
1
+ import { INmorphCoords } from '../../types/common';
2
+ export type NmorphCoordsType = INmorphCoords<number>;
3
+ export declare enum NmorphOverflowProp {
4
+ auto = "auto",
5
+ hidden = "hidden",
6
+ scroll = "scroll"
7
+ }
@@ -0,0 +1,45 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ interface INmorphProps {
3
+ animated?: boolean;
4
+ loading?: boolean;
5
+ rows?: number;
6
+ }
7
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
8
+ animated: boolean;
9
+ loading: boolean;
10
+ rows: number;
11
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
12
+ animated: boolean;
13
+ loading: boolean;
14
+ rows: number;
15
+ }>>>, {
16
+ loading: boolean;
17
+ rows: number;
18
+ animated: boolean;
19
+ }, {}>, {
20
+ template?(_: {}): any;
21
+ default?(_: {}): any;
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
+ } & {};
41
+ type __VLS_WithTemplateSlots<T, S> = T & {
42
+ new (): {
43
+ $slots: S;
44
+ };
45
+ };
@@ -1,18 +1,14 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { ControlComponentHeight } from '../../types/common.enums';
3
- interface IProps {
4
- height?: keyof typeof ControlComponentHeight;
5
- errors: string[];
2
+ import { NmorphSkeletonItemPropsType } from '../types';
3
+ interface INmorphProps {
4
+ variant?: NmorphSkeletonItemPropsType;
6
5
  }
7
- declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
8
- height: ControlComponentHeight;
9
- errors: () => never[];
10
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
11
- height: ControlComponentHeight;
12
- errors: () => never[];
6
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
7
+ variant: string;
8
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
9
+ variant: string;
13
10
  }>>>, {
14
- height: "default" | "thick" | "thin";
15
- errors: string[];
11
+ variant: NmorphSkeletonItemPropsType;
16
12
  }, {}>;
17
13
  export default _default;
18
14
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -0,0 +1 @@
1
+ export type NmorphSkeletonItemPropsType = 'text' | 'h1' | 'image' | 'circle';
@@ -0,0 +1,28 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { NmorphSortOrderType } from '../../types/common';
3
+ interface INmorphProps {
4
+ value: NmorphSortOrderType;
5
+ }
6
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
7
+ sort: (val: NmorphSortOrderType) => void;
8
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {}>>> & {
9
+ onSort?: ((val: NmorphSortOrderType) => any) | undefined;
10
+ }, {}, {}>;
11
+ export default _default;
12
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
+ type __VLS_TypePropsToRuntimeProps<T> = {
14
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
15
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
16
+ } : {
17
+ type: PropType<T[K]>;
18
+ required: true;
19
+ };
20
+ };
21
+ type __VLS_WithDefaults<P, D> = {
22
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
23
+ default: D[K];
24
+ }> : P[K];
25
+ };
26
+ type __VLS_Prettify<T> = {
27
+ [K in keyof T]: T[K];
28
+ } & {};
@@ -0,0 +1,59 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { NmorphTableDataType, NmorphTableSortType } from './types';
3
+ interface INmorphProps {
4
+ data?: NmorphTableDataType;
5
+ rowHover?: boolean;
6
+ bordered?: boolean;
7
+ sort?: NmorphTableSortType;
8
+ style?: 'nmorph' | 'common';
9
+ }
10
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
11
+ /**
12
+ * @description table data
13
+ */
14
+ data: () => never[];
15
+ bordered: boolean;
16
+ sort: undefined;
17
+ style: string;
18
+ rowHover: boolean;
19
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
20
+ /**
21
+ * @description table data
22
+ */
23
+ data: () => never[];
24
+ bordered: boolean;
25
+ sort: undefined;
26
+ style: string;
27
+ rowHover: boolean;
28
+ }>>>, {
29
+ sort: NmorphTableSortType;
30
+ data: NmorphTableDataType;
31
+ style: "nmorph" | "common";
32
+ rowHover: boolean;
33
+ bordered: boolean;
34
+ }, {}>, {
35
+ default?(_: {}): any;
36
+ }>;
37
+ export default _default;
38
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
39
+ type __VLS_TypePropsToRuntimeProps<T> = {
40
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
41
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
42
+ } : {
43
+ type: PropType<T[K]>;
44
+ required: true;
45
+ };
46
+ };
47
+ type __VLS_WithDefaults<P, D> = {
48
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
49
+ default: D[K];
50
+ }> : P[K];
51
+ };
52
+ type __VLS_Prettify<T> = {
53
+ [K in keyof T]: T[K];
54
+ } & {};
55
+ type __VLS_WithTemplateSlots<T, S> = T & {
56
+ new (): {
57
+ $slots: S;
58
+ };
59
+ };
@@ -0,0 +1,30 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ interface INmorphProps {
3
+ row: number;
4
+ }
5
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {}>>>, {}, {}>, {
6
+ default?(_: {}): any;
7
+ }>;
8
+ export default _default;
9
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
10
+ type __VLS_TypePropsToRuntimeProps<T> = {
11
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
12
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
13
+ } : {
14
+ type: PropType<T[K]>;
15
+ required: true;
16
+ };
17
+ };
18
+ type __VLS_WithDefaults<P, D> = {
19
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
20
+ default: D[K];
21
+ }> : P[K];
22
+ };
23
+ type __VLS_Prettify<T> = {
24
+ [K in keyof T]: T[K];
25
+ } & {};
26
+ type __VLS_WithTemplateSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -0,0 +1,48 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { NmorphCellAlignmentType, NmorphTableColumnData, NmorphDataTableElRecordType, INmorphTableColumnProps } from '../../types';
3
+ interface INmorphProps extends INmorphTableColumnProps {
4
+ }
5
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
6
+ label: string;
7
+ width: string;
8
+ alignment: string;
9
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
10
+ label: string;
11
+ width: string;
12
+ alignment: string;
13
+ }>>>, {
14
+ label: string;
15
+ width: string;
16
+ alignment: NmorphCellAlignmentType;
17
+ }, {}>, {
18
+ default?(_: {
19
+ scope: {
20
+ columns: NmorphTableColumnData[] | undefined;
21
+ rows: NmorphDataTableElRecordType[] | undefined;
22
+ tableId: string | undefined;
23
+ };
24
+ }): any;
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
+ } & {};
44
+ type __VLS_WithTemplateSlots<T, S> = T & {
45
+ new (): {
46
+ $slots: S;
47
+ };
48
+ };
@@ -0,0 +1,21 @@
1
+ import { NmorphSortOrderType } from '../../types/common';
2
+ import { Ref } from 'vue';
3
+ export type NmorphTableSortType = Record<string, NmorphSortOrderType>;
4
+ export type NmorphDataTableElRecordType = Record<string, unknown>;
5
+ export type NmorphCellAlignmentType = 'left' | 'center' | 'right';
6
+ export type NmorphTableDataType = NmorphDataTableElRecordType[];
7
+ export interface INmorphTableColumnProps {
8
+ label?: string;
9
+ width?: string;
10
+ alignment?: NmorphCellAlignmentType;
11
+ prop: string;
12
+ }
13
+ export interface NmorphTableColumnData extends INmorphTableColumnProps {
14
+ id?: number;
15
+ }
16
+ export interface INmorphTableDataInjection {
17
+ rows: Ref<NmorphDataTableElRecordType[]>;
18
+ columns: Ref<NmorphTableColumnData[]>;
19
+ }
20
+ export type NmorphTableColumnPropertyInjectionType = string;
21
+ export type NmorphTableIdInjectionType = string;
@@ -0,0 +1,47 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { NmorphTableModelType } from './type';
3
+ interface INmorphProps {
4
+ modelValue?: NmorphTableModelType;
5
+ stretch?: boolean;
6
+ }
7
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
8
+ modelValue: number;
9
+ stretch: boolean;
10
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
11
+ "update:model-value": (value: NmorphTableModelType) => void;
12
+ "tab-change": (value: NmorphTableModelType) => void;
13
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
14
+ modelValue: number;
15
+ stretch: boolean;
16
+ }>>> & {
17
+ "onUpdate:model-value"?: ((value: NmorphTableModelType) => any) | undefined;
18
+ "onTab-change"?: ((value: NmorphTableModelType) => any) | undefined;
19
+ }, {
20
+ modelValue: NmorphTableModelType;
21
+ stretch: boolean;
22
+ }, {}>, {
23
+ default?(_: {}): any;
24
+ }>;
25
+ export default _default;
26
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
27
+ type __VLS_TypePropsToRuntimeProps<T> = {
28
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
29
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
30
+ } : {
31
+ type: PropType<T[K]>;
32
+ required: true;
33
+ };
34
+ };
35
+ type __VLS_WithDefaults<P, D> = {
36
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
37
+ default: D[K];
38
+ }> : P[K];
39
+ };
40
+ type __VLS_Prettify<T> = {
41
+ [K in keyof T]: T[K];
42
+ } & {};
43
+ type __VLS_WithTemplateSlots<T, S> = T & {
44
+ new (): {
45
+ $slots: S;
46
+ };
47
+ };
@@ -0,0 +1,40 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { INmorphTabPaneProps } from '../../type';
3
+ interface INmorphProps extends INmorphTabPaneProps {
4
+ }
5
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
6
+ label: string;
7
+ disabled: boolean;
8
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
9
+ label: string;
10
+ disabled: boolean;
11
+ }>>>, {
12
+ disabled: boolean;
13
+ label: string;
14
+ }, {}>, {
15
+ label?(_: {}): any;
16
+ default?(_: {}): any;
17
+ }>;
18
+ export default _default;
19
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
20
+ type __VLS_TypePropsToRuntimeProps<T> = {
21
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
22
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
23
+ } : {
24
+ type: PropType<T[K]>;
25
+ required: true;
26
+ };
27
+ };
28
+ type __VLS_WithDefaults<P, D> = {
29
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
30
+ default: D[K];
31
+ }> : P[K];
32
+ };
33
+ type __VLS_Prettify<T> = {
34
+ [K in keyof T]: T[K];
35
+ } & {};
36
+ type __VLS_WithTemplateSlots<T, S> = T & {
37
+ new (): {
38
+ $slots: S;
39
+ };
40
+ };
@@ -0,0 +1,11 @@
1
+ import { Ref } from 'vue';
2
+ export type NmorphTableModelType = string | number;
3
+ export interface INmorphTabPaneProps {
4
+ label?: string;
5
+ name: string;
6
+ disabled?: boolean;
7
+ }
8
+ export interface INmorphTabsDataProvider {
9
+ tabsData: Ref<INmorphTabPaneProps[]>;
10
+ tabsIdentifier: string;
11
+ }
@@ -0,0 +1,3 @@
1
+ import { NmorphTableModelType } from './type';
2
+ export declare const getTabLabelId: (tabsIdentifier: string | undefined, name: NmorphTableModelType) => string | undefined;
3
+ export declare const getTabContentId: (tabsIdentifier: string | undefined, name: NmorphTableModelType) => string | undefined;
@@ -1,26 +1,26 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { ControlComponentHeight } from '../../types/common.enums';
3
- interface IProps {
2
+ import { NmorphComponentHeight } from '../../types/common';
3
+ interface INmorphProps {
4
4
  value: string;
5
5
  text: string;
6
6
  removable?: boolean;
7
- height?: keyof typeof ControlComponentHeight;
7
+ height?: keyof typeof NmorphComponentHeight;
8
8
  transparent?: boolean;
9
9
  }
10
- declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
10
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
11
11
  height: string;
12
12
  removable: boolean;
13
13
  transparent: boolean;
14
14
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
15
- close: (value: string) => void;
16
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
15
+ close: (val: string) => void;
16
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
17
17
  height: string;
18
18
  removable: boolean;
19
19
  transparent: boolean;
20
20
  }>>> & {
21
- onClose?: ((value: string) => any) | undefined;
21
+ onClose?: ((val: string) => any) | undefined;
22
22
  }, {
23
- height: "default" | "thick" | "thin";
23
+ height: "thick" | "default" | "thin";
24
24
  transparent: boolean;
25
25
  removable: boolean;
26
26
  }, {}>;
@@ -1,44 +1,26 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- declare enum TooltipPosition {
3
- left = "left",
4
- right = "right",
5
- top = "top",
6
- bottom = "bottom"
7
- }
8
- type Placement = keyof typeof TooltipPosition;
9
- interface ForceCoordinate {
10
- x?: string;
11
- y?: string;
12
- }
13
- interface IProps {
14
- disabled?: boolean;
2
+ import { INmorphCoords, NmorphPlacementType } from '../../types/common';
3
+ interface INmorphProps {
15
4
  text?: string;
16
- position?: Placement;
5
+ position?: NmorphPlacementType;
17
6
  forceShow?: boolean;
18
- forceCoordinate?: ForceCoordinate | null;
19
- blockPosition?: boolean;
7
+ forceCoordinate?: Partial<INmorphCoords<string>> | null;
20
8
  }
21
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
22
- disabled: boolean;
9
+ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
23
10
  text: string;
24
11
  position: string;
25
12
  forceShow: boolean;
26
13
  forceCoordinate: null;
27
- blockPosition: boolean;
28
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
29
- disabled: boolean;
14
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
30
15
  text: string;
31
16
  position: string;
32
17
  forceShow: boolean;
33
18
  forceCoordinate: null;
34
- blockPosition: boolean;
35
19
  }>>>, {
36
- disabled: boolean;
37
20
  text: string;
21
+ position: "left" | "right" | "top" | "bottom";
38
22
  forceShow: boolean;
39
- forceCoordinate: ForceCoordinate | null;
40
- blockPosition: boolean;
41
- position: "right" | "left" | "top" | "bottom";
23
+ forceCoordinate: Partial<INmorphCoords<string>> | null;
42
24
  }, {}>, {
43
25
  default?(_: {}): any;
44
26
  content?(_: {}): any;