@nmorph/nmorph-ui-kit 0.2.0 → 0.2.3
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.
- package/dist/components/basic/nmorph-button/NmorphButton.vue.d.ts +26 -13
- package/dist/components/basic/nmorph-button/types.d.ts +5 -0
- package/dist/components/basic/nmorph-icon/NmorphIcon.vue.d.ts +17 -13
- package/dist/components/basic/nmorph-icon/NmorphIconsMap.d.ts +2 -1
- package/dist/components/basic/nmorph-icon/types.d.ts +0 -2
- package/dist/components/basic/nmorph-link/NmorphLink.vue.d.ts +17 -14
- package/dist/components/basic/nmorph-scroll/NmorphScroll.vue.d.ts +15 -8
- package/dist/components/basic/nmorph-scroll/types.d.ts +9 -1
- package/dist/components/data/nmorph-avatar/NmorphAvatar.vue.d.ts +12 -9
- package/dist/components/data/nmorph-badge/NmorphBadge.vue.d.ts +8 -6
- package/dist/components/data/nmorph-calendar/NmorphCalendar.vue.d.ts +23 -20
- package/dist/components/data/nmorph-calendar/components/nmorph-calendar-header/NmorphCalendarHeader.vue.d.ts +7 -5
- package/dist/components/data/nmorph-calendar/utils.d.ts +2 -1
- package/dist/components/data/nmorph-card/NmorphCard.vue.d.ts +12 -9
- package/dist/components/data/nmorph-carousel/NmorphCarousel.vue.d.ts +7 -5
- package/dist/components/data/nmorph-carousel/components/nmorph-carousel-item/NmorphCarouselItem.vue.d.ts +4 -2
- package/dist/components/data/nmorph-carousel/types.d.ts +1 -0
- package/dist/components/data/nmorph-collapse/NmorphCollapse.vue.d.ts +9 -6
- package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.d.ts +16 -13
- package/dist/components/data/nmorph-collapse/types.d.ts +1 -0
- package/dist/components/data/nmorph-image/NmorphImage.vue.d.ts +11 -8
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue.d.ts +1 -1
- package/dist/components/data/nmorph-image-preview/types.d.ts +3 -2
- package/dist/components/data/nmorph-pagination/NmorphPagination.vue.d.ts +1 -1
- package/dist/components/data/nmorph-progress/NmorphProgress.vue.d.ts +12 -9
- package/dist/components/data/nmorph-skeleton/NmorphSkeleton.vue.d.ts +8 -6
- package/dist/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue.d.ts +3 -2
- package/dist/components/data/nmorph-table/NmorphTable.vue.d.ts +10 -7
- package/dist/components/data/nmorph-table/components/nmorph-table-cell/NmorphTableCell.vue.d.ts +4 -2
- package/dist/components/data/nmorph-table/components/nmorph-table-column/NmorphTableColumn.vue.d.ts +15 -12
- package/dist/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.vue.d.ts +3 -2
- package/dist/components/data/nmorph-table/types.d.ts +2 -1
- package/dist/components/data/nmorph-tag/NmorphTag.vue.d.ts +4 -3
- package/dist/components/feedback/nmorph-alert/NmorphAlert.vue.d.ts +13 -10
- package/dist/components/feedback/nmorph-dialog/NmorphDialog.vue.d.ts +8 -6
- package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue.d.ts +11 -8
- package/dist/components/form/checkbox/nmorph-checkbox/NmorphCheckbox.vue.d.ts +12 -9
- package/dist/components/form/checkbox/nmorph-checkbox-group/NmorphCheckboxGroup.vue.d.ts +12 -9
- package/dist/components/form/checkbox/types.d.ts +1 -0
- package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.d.ts +14 -11
- package/dist/components/form/nmorph-date-picker/NmorphDatePicker.vue.d.ts +6 -5
- package/dist/components/form/nmorph-date-picker/components/nmorph-date-picker-content/NmorphDatePickerContent.vue.d.ts +4 -3
- package/dist/components/form/nmorph-date-picker/components/nmorph-date-picker-header/NmorphDatePickerHeader.vue.d.ts +1 -1
- package/dist/components/form/nmorph-date-picker/components/nmorph-year-month-picker/NmorphYearMonthPicker.vue.d.ts +1 -1
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-clear-button/NmorphClearButton.vue.d.ts +1 -1
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue.d.ts +10 -7
- package/dist/components/form/nmorph-form/NmorphForm.vue.d.ts +9 -6
- package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.d.ts +10 -7
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/index.d.ts +3 -2
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue.d.ts +5 -4
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/NmorphValidationIcon.vue.d.ts +3 -2
- package/dist/components/form/nmorph-form/types.d.ts +1 -0
- package/dist/components/form/nmorph-number-input/NmorphNumberInput.vue.d.ts +5 -4
- package/dist/components/form/nmorph-select/NmorphSelect.vue.d.ts +11 -8
- package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue.d.ts +11 -7
- package/dist/components/form/nmorph-select/types.d.ts +2 -1
- package/dist/components/form/nmorph-slider/NmorphSlider.vue.d.ts +4 -3
- package/dist/components/form/nmorph-switch/NmorphSwitch.vue.d.ts +25 -13
- package/dist/components/form/nmorph-text-input/NmorphTextInput.vue.d.ts +17 -9
- package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue.d.ts +8 -7
- package/dist/components/form/nmorph-time-picker/utils.d.ts +1 -0
- package/dist/components/form/radio/nmorph-radio/NmorphRadio.vue.d.ts +10 -7
- package/dist/components/form/radio/nmorph-radio-group/NmorphRadioGroup.vue.d.ts +12 -9
- package/dist/components/form/radio/types.d.ts +1 -0
- package/dist/components/navigation/nmorph-backtop/NmorphBacktop.vue.d.ts +7 -5
- package/dist/components/navigation/nmorph-breadcrumb/NmorphBreadcrumb.vue.d.ts +7 -5
- package/dist/components/navigation/nmorph-breadcrumb/components/nmorph-breadcrumb-item/NmorphBreadcrumbItem.vue.d.ts +9 -6
- package/dist/components/navigation/nmorph-breadcrumb/types.d.ts +1 -0
- package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.vue.d.ts +9 -6
- package/dist/components/navigation/nmorph-tabs/NmorphTabs.vue.d.ts +9 -6
- package/dist/components/navigation/nmorph-tabs/components/nmorph-tab-pane/NmorphTabPane.vue.d.ts +10 -7
- package/dist/components/navigation/nmorph-tabs/type.d.ts +1 -0
- package/dist/components/navigation/nmorph-tabs/utils.d.ts +1 -0
- package/dist/components/others/nmorph-divider/NmorphDivider.vue.d.ts +3 -2
- package/dist/components/others/nmorph-overlay/NmorphOverlay.vue.d.ts +7 -5
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/useFieldValidation.d.ts +2 -1
- package/dist/hooks/useFormValidation.d.ts +2 -1
- package/dist/hooks/useNmorph.d.ts +7 -0
- package/dist/hooks/usePlacement.d.ts +2 -1
- package/dist/index.es.js +2006 -1869
- package/dist/index.umd.js +9 -1
- package/dist/main.d.ts +2 -1
- package/dist/style.css +1 -1
- package/dist/types/{common.d.ts → index.d.ts} +37 -1
- package/dist/utils/camel-to-kebab.d.ts +1 -0
- package/dist/utils/capitalize-first-char.d.ts +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/package.json +3 -2
- package/dist/hooks/nmorphHooks.d.ts +0 -8
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { INmorphCommonInputProps, NmorphComponentHeight, NmorphIconList } from '../../../types';
|
|
2
|
+
import { NmorphButtonStyle, NmorphButtonType, NmorphButtonShape } from '../..';
|
|
3
|
+
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
4
|
+
|
|
4
5
|
interface INmorphProps extends INmorphCommonInputProps {
|
|
5
6
|
type?: keyof typeof NmorphButtonType;
|
|
6
7
|
text?: string | number;
|
|
@@ -8,8 +9,14 @@ interface INmorphProps extends INmorphCommonInputProps {
|
|
|
8
9
|
styleType?: keyof typeof NmorphButtonStyle;
|
|
9
10
|
bgTransparentOnHover?: boolean;
|
|
10
11
|
ripple?: boolean;
|
|
12
|
+
shape?: keyof typeof NmorphButtonShape;
|
|
13
|
+
icon?: keyof typeof NmorphIconList;
|
|
11
14
|
}
|
|
12
|
-
declare
|
|
15
|
+
declare function __VLS_template(): {
|
|
16
|
+
default?(_: {}): any;
|
|
17
|
+
append?(_: {}): any;
|
|
18
|
+
};
|
|
19
|
+
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
13
20
|
type: string;
|
|
14
21
|
fill: boolean;
|
|
15
22
|
text: string;
|
|
@@ -19,9 +26,13 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
19
26
|
height: string;
|
|
20
27
|
bgTransparentOnHover: boolean;
|
|
21
28
|
ripple: boolean;
|
|
22
|
-
|
|
29
|
+
shape: string;
|
|
30
|
+
icon: any;
|
|
31
|
+
}>, {
|
|
32
|
+
buttonRef: Ref<HTMLElement>;
|
|
33
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
23
34
|
click: () => void;
|
|
24
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
35
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
25
36
|
type: string;
|
|
26
37
|
fill: boolean;
|
|
27
38
|
text: string;
|
|
@@ -31,22 +42,24 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
31
42
|
height: string;
|
|
32
43
|
bgTransparentOnHover: boolean;
|
|
33
44
|
ripple: boolean;
|
|
45
|
+
shape: string;
|
|
46
|
+
icon: any;
|
|
34
47
|
}>>> & {
|
|
35
48
|
onClick?: () => any;
|
|
36
49
|
}, {
|
|
37
50
|
fill: boolean;
|
|
38
|
-
height:
|
|
39
|
-
type:
|
|
51
|
+
height: keyof typeof NmorphComponentHeight;
|
|
52
|
+
type: keyof typeof NmorphButtonType;
|
|
40
53
|
text: string | number;
|
|
41
54
|
disabled: boolean;
|
|
55
|
+
shape: keyof typeof NmorphButtonShape;
|
|
42
56
|
loading: boolean;
|
|
43
|
-
styleType:
|
|
57
|
+
styleType: keyof typeof NmorphButtonStyle;
|
|
44
58
|
bgTransparentOnHover: boolean;
|
|
45
59
|
ripple: boolean;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}>;
|
|
60
|
+
icon: keyof typeof NmorphIconList;
|
|
61
|
+
}, {}>;
|
|
62
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
50
63
|
export default _default;
|
|
51
64
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
52
65
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,33 +1,37 @@
|
|
|
1
|
+
import { NmorphIconSize } from '../..';
|
|
2
|
+
import { NmorphIconList } from '../../../types';
|
|
1
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
|
|
4
|
+
|
|
3
5
|
interface INmorphProps {
|
|
4
|
-
name?:
|
|
6
|
+
name?: keyof typeof NmorphIconList;
|
|
5
7
|
size?: keyof typeof NmorphIconSize;
|
|
6
8
|
width?: string;
|
|
7
9
|
height?: string;
|
|
8
|
-
|
|
10
|
+
color?: string;
|
|
9
11
|
}
|
|
10
|
-
declare
|
|
12
|
+
declare function __VLS_template(): {
|
|
13
|
+
default?(_: {}): any;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
11
16
|
name: any;
|
|
12
17
|
size: string;
|
|
13
18
|
width: any;
|
|
14
19
|
height: any;
|
|
15
|
-
|
|
16
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
20
|
+
color: string;
|
|
21
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
17
22
|
name: any;
|
|
18
23
|
size: string;
|
|
19
24
|
width: any;
|
|
20
25
|
height: any;
|
|
21
|
-
|
|
26
|
+
color: string;
|
|
22
27
|
}>>>, {
|
|
23
|
-
name:
|
|
24
|
-
size:
|
|
28
|
+
name: keyof typeof NmorphIconList;
|
|
29
|
+
size: keyof typeof NmorphIconSize;
|
|
25
30
|
width: string;
|
|
26
31
|
height: string;
|
|
27
|
-
|
|
28
|
-
}, {}
|
|
29
|
-
|
|
30
|
-
}>;
|
|
32
|
+
color: string;
|
|
33
|
+
}, {}>;
|
|
34
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
31
35
|
export default _default;
|
|
32
36
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
33
37
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,43 +1,46 @@
|
|
|
1
|
+
import { NmorphLinkTarget } from '../..';
|
|
2
|
+
import { NmorphColor, NmorphIconList } from '../../../types';
|
|
1
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
|
|
3
|
-
import { NmorphColor } from '../../../types/common';
|
|
4
|
+
|
|
4
5
|
interface INmorphProps {
|
|
5
6
|
color?: keyof typeof NmorphColor;
|
|
6
7
|
underline?: boolean;
|
|
7
8
|
href?: string;
|
|
8
9
|
text?: string;
|
|
9
|
-
iconName?:
|
|
10
|
+
iconName?: keyof typeof NmorphIconList;
|
|
10
11
|
target?: keyof typeof NmorphLinkTarget;
|
|
11
12
|
disabled?: boolean;
|
|
12
13
|
}
|
|
13
|
-
declare
|
|
14
|
+
declare function __VLS_template(): {
|
|
15
|
+
prepend?(_: {}): any;
|
|
16
|
+
default?(_: {}): any;
|
|
17
|
+
};
|
|
18
|
+
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
14
19
|
color: NmorphColor;
|
|
15
20
|
href: string;
|
|
16
21
|
underline: boolean;
|
|
17
|
-
iconName:
|
|
22
|
+
iconName: any;
|
|
18
23
|
text: string;
|
|
19
24
|
target: string;
|
|
20
25
|
disabled: boolean;
|
|
21
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
26
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
22
27
|
color: NmorphColor;
|
|
23
28
|
href: string;
|
|
24
29
|
underline: boolean;
|
|
25
|
-
iconName:
|
|
30
|
+
iconName: any;
|
|
26
31
|
text: string;
|
|
27
32
|
target: string;
|
|
28
33
|
disabled: boolean;
|
|
29
34
|
}>>>, {
|
|
35
|
+
color: keyof typeof NmorphColor;
|
|
30
36
|
text: string;
|
|
31
|
-
color: "accent" | "success" | "error" | "warning";
|
|
32
37
|
underline: boolean;
|
|
33
38
|
href: string;
|
|
34
|
-
iconName:
|
|
35
|
-
target:
|
|
39
|
+
iconName: keyof typeof NmorphIconList;
|
|
40
|
+
target: keyof typeof NmorphLinkTarget;
|
|
36
41
|
disabled: boolean;
|
|
37
|
-
}, {}
|
|
38
|
-
|
|
39
|
-
default?(_: {}): any;
|
|
40
|
-
}>;
|
|
42
|
+
}, {}>;
|
|
43
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
41
44
|
export default _default;
|
|
42
45
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
43
46
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
+
import { NmorphCoordsType, NmorphOverflowProp, NmorphScrollBehavior } from '../..';
|
|
1
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
|
|
3
|
+
|
|
3
4
|
interface INmorphProps {
|
|
4
5
|
modelValue?: NmorphCoordsType;
|
|
5
6
|
scrollYProp?: keyof typeof NmorphOverflowProp;
|
|
6
7
|
scrollXProp?: keyof typeof NmorphOverflowProp;
|
|
7
8
|
scrollEndDelay?: number;
|
|
9
|
+
cssScrollBehavior?: keyof typeof NmorphScrollBehavior;
|
|
8
10
|
}
|
|
9
|
-
declare
|
|
11
|
+
declare function __VLS_template(): {
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
10
15
|
modelValue: () => {
|
|
11
16
|
x: number;
|
|
12
17
|
y: number;
|
|
@@ -14,11 +19,12 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
14
19
|
scrollYProp: string;
|
|
15
20
|
scrollXProp: string;
|
|
16
21
|
scrollEndDelay: number;
|
|
22
|
+
cssScrollBehavior: string;
|
|
17
23
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
18
24
|
"on-scroll": (event: Event) => void;
|
|
19
25
|
"update:modelValue": (coords: NmorphCoordsType) => void;
|
|
20
26
|
"on-scroll-end": () => void;
|
|
21
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
27
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
22
28
|
modelValue: () => {
|
|
23
29
|
x: number;
|
|
24
30
|
y: number;
|
|
@@ -26,18 +32,19 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
26
32
|
scrollYProp: string;
|
|
27
33
|
scrollXProp: string;
|
|
28
34
|
scrollEndDelay: number;
|
|
35
|
+
cssScrollBehavior: string;
|
|
29
36
|
}>>> & {
|
|
30
37
|
"onOn-scroll"?: (event: Event) => any;
|
|
31
38
|
"onUpdate:modelValue"?: (coords: NmorphCoordsType) => any;
|
|
32
39
|
"onOn-scroll-end"?: () => any;
|
|
33
40
|
}, {
|
|
34
41
|
modelValue: NmorphCoordsType;
|
|
35
|
-
scrollYProp:
|
|
36
|
-
scrollXProp:
|
|
42
|
+
scrollYProp: keyof typeof NmorphOverflowProp;
|
|
43
|
+
scrollXProp: keyof typeof NmorphOverflowProp;
|
|
37
44
|
scrollEndDelay: number;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
45
|
+
cssScrollBehavior: keyof typeof NmorphScrollBehavior;
|
|
46
|
+
}, {}>;
|
|
47
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
41
48
|
export default _default;
|
|
42
49
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
43
50
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
import { INmorphCoords } from '../../../types
|
|
1
|
+
import { INmorphCoords } from '../../../types';
|
|
2
|
+
|
|
2
3
|
export type NmorphCoordsType = INmorphCoords<number>;
|
|
3
4
|
export declare enum NmorphOverflowProp {
|
|
4
5
|
auto = "auto",
|
|
5
6
|
hidden = "hidden",
|
|
6
7
|
scroll = "scroll"
|
|
7
8
|
}
|
|
9
|
+
export declare enum NmorphScrollBehavior {
|
|
10
|
+
auto = "auto",
|
|
11
|
+
smooth = "smooth",
|
|
12
|
+
inherit = "inherit",
|
|
13
|
+
initial = "initial",
|
|
14
|
+
unset = "unset"
|
|
15
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
1
|
import { NmorphAvatarType } from '../..';
|
|
3
|
-
import { NmorphImageFit } from '../../../types
|
|
2
|
+
import { NmorphImageFit } from '../../../types';
|
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
4
|
+
|
|
4
5
|
interface INmorphProps {
|
|
5
6
|
size?: number;
|
|
6
7
|
shape?: NmorphAvatarType;
|
|
@@ -9,7 +10,10 @@ interface INmorphProps {
|
|
|
9
10
|
alt?: string;
|
|
10
11
|
fit?: keyof typeof NmorphImageFit;
|
|
11
12
|
}
|
|
12
|
-
declare
|
|
13
|
+
declare function __VLS_template(): {
|
|
14
|
+
default?(_: {}): any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
13
17
|
size: number;
|
|
14
18
|
shape: string;
|
|
15
19
|
src: string;
|
|
@@ -18,7 +22,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
18
22
|
fit: string;
|
|
19
23
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
20
24
|
error: () => void;
|
|
21
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
25
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
22
26
|
size: number;
|
|
23
27
|
shape: string;
|
|
24
28
|
src: string;
|
|
@@ -29,14 +33,13 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
29
33
|
onError?: () => any;
|
|
30
34
|
}, {
|
|
31
35
|
size: number;
|
|
32
|
-
src: string;
|
|
33
36
|
shape: NmorphAvatarType;
|
|
37
|
+
src: string;
|
|
34
38
|
srcSet: string;
|
|
35
39
|
alt: string;
|
|
36
|
-
fit:
|
|
37
|
-
}, {}
|
|
38
|
-
|
|
39
|
-
}>;
|
|
40
|
+
fit: keyof typeof NmorphImageFit;
|
|
41
|
+
}, {}>;
|
|
42
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
40
43
|
export default _default;
|
|
41
44
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
42
45
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -8,7 +8,10 @@ interface INmorphProps {
|
|
|
8
8
|
offsetY?: number;
|
|
9
9
|
offsetX?: number;
|
|
10
10
|
}
|
|
11
|
-
declare
|
|
11
|
+
declare function __VLS_template(): {
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
12
15
|
value: string;
|
|
13
16
|
max: number;
|
|
14
17
|
isDot: boolean;
|
|
@@ -16,7 +19,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
16
19
|
color: string;
|
|
17
20
|
offsetX: number;
|
|
18
21
|
offsetY: number;
|
|
19
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
22
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
20
23
|
value: string;
|
|
21
24
|
max: number;
|
|
22
25
|
isDot: boolean;
|
|
@@ -26,15 +29,14 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
26
29
|
offsetY: number;
|
|
27
30
|
}>>>, {
|
|
28
31
|
color: string;
|
|
32
|
+
value: number | string;
|
|
29
33
|
hidden: boolean;
|
|
30
|
-
value: string | number;
|
|
31
34
|
max: number;
|
|
32
35
|
isDot: boolean;
|
|
33
36
|
offsetY: number;
|
|
34
37
|
offsetX: number;
|
|
35
|
-
}, {}
|
|
36
|
-
|
|
37
|
-
}>;
|
|
38
|
+
}, {}>;
|
|
39
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
38
40
|
export default _default;
|
|
39
41
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
40
42
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { NmorphCalendarRangeType, NmorphDateType, NmorphSelectedDateModelType, NmorphSelectionDateType, NmorphCalendarDateType } from '../..';
|
|
1
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
|
|
3
|
+
|
|
3
4
|
interface INmorphProps {
|
|
4
5
|
markToday?: boolean;
|
|
5
6
|
initialDate?: Date;
|
|
@@ -8,7 +9,21 @@ interface INmorphProps {
|
|
|
8
9
|
type?: keyof typeof NmorphSelectionDateType;
|
|
9
10
|
selectedValues?: NmorphSelectedDateModelType;
|
|
10
11
|
}
|
|
11
|
-
declare
|
|
12
|
+
declare function __VLS_template(): {
|
|
13
|
+
header?(_: {}): any;
|
|
14
|
+
content?(_: {}): any;
|
|
15
|
+
"date-cell"?(_: {
|
|
16
|
+
scope: {
|
|
17
|
+
selected: boolean;
|
|
18
|
+
monthType: NmorphCalendarDateType;
|
|
19
|
+
value: number;
|
|
20
|
+
isToday: boolean;
|
|
21
|
+
date: Date;
|
|
22
|
+
hidden: boolean;
|
|
23
|
+
};
|
|
24
|
+
}): any;
|
|
25
|
+
};
|
|
26
|
+
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
12
27
|
markToday: boolean;
|
|
13
28
|
initialDate: () => Date;
|
|
14
29
|
modelValue: any;
|
|
@@ -18,7 +33,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
18
33
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
19
34
|
"update:modelValue": (date: Date) => void;
|
|
20
35
|
"update-initial-date": (date: Date) => void;
|
|
21
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
36
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
22
37
|
markToday: boolean;
|
|
23
38
|
initialDate: () => Date;
|
|
24
39
|
modelValue: any;
|
|
@@ -29,26 +44,14 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
29
44
|
"onUpdate:modelValue"?: (date: Date) => any;
|
|
30
45
|
"onUpdate-initial-date"?: (date: Date) => any;
|
|
31
46
|
}, {
|
|
32
|
-
type:
|
|
33
|
-
modelValue:
|
|
47
|
+
type: keyof typeof NmorphSelectionDateType;
|
|
48
|
+
modelValue: NmorphDateType;
|
|
34
49
|
markToday: boolean;
|
|
35
50
|
initialDate: Date;
|
|
36
|
-
range:
|
|
51
|
+
range: NmorphCalendarRangeType;
|
|
37
52
|
selectedValues: NmorphSelectedDateModelType;
|
|
38
|
-
}, {}
|
|
39
|
-
|
|
40
|
-
content?(_: {}): any;
|
|
41
|
-
"date-cell"?(_: {
|
|
42
|
-
scope: {
|
|
43
|
-
selected: boolean;
|
|
44
|
-
monthType: NmorphCalendarDateType;
|
|
45
|
-
value: number;
|
|
46
|
-
isToday: boolean;
|
|
47
|
-
date: Date;
|
|
48
|
-
hidden: boolean;
|
|
49
|
-
};
|
|
50
|
-
}): any;
|
|
51
|
-
}>;
|
|
53
|
+
}, {}>;
|
|
54
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
52
55
|
export default _default;
|
|
53
56
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
54
57
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -6,17 +6,19 @@ interface INmorphProps {
|
|
|
6
6
|
showNextMonthButton: boolean;
|
|
7
7
|
showTodayButton: boolean;
|
|
8
8
|
}
|
|
9
|
-
declare
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
default?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
10
13
|
"click-previous-month": () => void;
|
|
11
14
|
"click-today": () => void;
|
|
12
15
|
"click-next-month": () => void;
|
|
13
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {}>>> & {
|
|
16
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {}>>> & {
|
|
14
17
|
"onClick-previous-month"?: () => any;
|
|
15
18
|
"onClick-today"?: () => any;
|
|
16
19
|
"onClick-next-month"?: () => any;
|
|
17
|
-
}, {}, {}
|
|
18
|
-
|
|
19
|
-
}>;
|
|
20
|
+
}, {}, {}>;
|
|
21
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
20
22
|
export default _default;
|
|
21
23
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
22
24
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { NmorphCalendarDatesType, NmorphCalendarRangeType, NmorphSelectedDateModelType } from './types';
|
|
2
2
|
import { Ref } from 'vue';
|
|
3
|
+
|
|
3
4
|
export declare const getDecadeYears: (year: number) => any[];
|
|
4
5
|
export declare const formatDateIntl: (date: NmorphSelectedDateModelType) => string | string[];
|
|
5
6
|
export declare const hasAnyRangeDateInPrevMonth: (currentDate: Date, prevMonthRange: Date) => boolean;
|
|
6
7
|
export declare const hasAnyRangeDateInNextMonth: (currentDate: Date, nextMonthRange: Date) => boolean;
|
|
7
|
-
export declare const isTodayInRange: (range:
|
|
8
|
+
export declare const isTodayInRange: (range: NmorphCalendarRangeType) => boolean;
|
|
8
9
|
export declare const getMonthName: (monthIndex: number) => string;
|
|
9
10
|
export declare const getMonthDaysByWeek: (selectedDate: Ref<Date>, range: NmorphCalendarRangeType | undefined) => NmorphCalendarDatesType[];
|
|
@@ -1,19 +1,22 @@
|
|
|
1
|
+
import { NmorphShadowType } from '../../../types';
|
|
1
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
|
|
3
|
+
|
|
3
4
|
interface INmorphProps {
|
|
4
5
|
shadowType?: keyof typeof NmorphShadowType;
|
|
5
6
|
}
|
|
6
|
-
declare
|
|
7
|
-
shadowType: NmorphShadowType;
|
|
8
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
9
|
-
shadowType: NmorphShadowType;
|
|
10
|
-
}>>>, {
|
|
11
|
-
shadowType: "inset" | "outset" | "combined";
|
|
12
|
-
}, {}>, {
|
|
7
|
+
declare function __VLS_template(): {
|
|
13
8
|
header?(_: {}): any;
|
|
14
9
|
default?(_: {}): any;
|
|
15
10
|
footer?(_: {}): any;
|
|
16
|
-
}
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
13
|
+
shadowType: NmorphShadowType;
|
|
14
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
15
|
+
shadowType: NmorphShadowType;
|
|
16
|
+
}>>>, {
|
|
17
|
+
shadowType: keyof typeof NmorphShadowType;
|
|
18
|
+
}, {}>;
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
17
20
|
export default _default;
|
|
18
21
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
22
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -2,19 +2,21 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes,
|
|
|
2
2
|
interface INmorphProps {
|
|
3
3
|
loop?: boolean;
|
|
4
4
|
}
|
|
5
|
-
declare
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
6
9
|
loop: boolean;
|
|
7
10
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
8
11
|
change: (value: number) => void;
|
|
9
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
12
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
10
13
|
loop: boolean;
|
|
11
14
|
}>>> & {
|
|
12
15
|
onChange?: (value: number) => any;
|
|
13
16
|
}, {
|
|
14
17
|
loop: boolean;
|
|
15
|
-
}, {}
|
|
16
|
-
|
|
17
|
-
}>;
|
|
18
|
+
}, {}>;
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
18
20
|
export default _default;
|
|
19
21
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
22
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -2,9 +2,11 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes,
|
|
|
2
2
|
interface INmorphProps {
|
|
3
3
|
name: string;
|
|
4
4
|
}
|
|
5
|
-
declare
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
6
|
default?(_: {}): any;
|
|
7
|
-
}
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {}>>>, {}, {}>;
|
|
9
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
8
10
|
export default _default;
|
|
9
11
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
10
12
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
1
|
import { NmorphCollapseModelType } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
|
|
3
4
|
interface INmorphProps {
|
|
4
5
|
modelValue: NmorphCollapseModelType;
|
|
5
6
|
accordion?: boolean;
|
|
6
7
|
}
|
|
7
|
-
declare
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
8
12
|
accordion: boolean;
|
|
9
13
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
10
14
|
"update:modelValue": (value: NmorphCollapseModelType) => void;
|
|
11
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
15
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
12
16
|
accordion: boolean;
|
|
13
17
|
}>>> & {
|
|
14
18
|
"onUpdate:modelValue"?: (value: NmorphCollapseModelType) => any;
|
|
15
19
|
}, {
|
|
16
20
|
accordion: boolean;
|
|
17
|
-
}, {}
|
|
18
|
-
|
|
19
|
-
}>;
|
|
21
|
+
}, {}>;
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
20
23
|
export default _default;
|
|
21
24
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
22
25
|
type __VLS_TypePropsToRuntimeProps<T> = {
|