@nmorph/nmorph-ui-kit 0.0.2 → 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.
- package/dist/index.es.js +1158 -1161
- package/dist/style.css +1 -1
- package/dist/styles/base/_basic.scss +3 -3
- package/dist/styles/base/_colors.scss +22 -30
- package/dist/styles/base/_dimensions.scss +1 -1
- package/dist/styles/base/_histoire.scss +1 -1
- package/dist/styles/base/_theme-mixin.scss +4 -4
- package/dist/types/components/inputs/checkbox/nmorph-checkbox/NmorphCheckbox.vue.d.ts +8 -8
- package/dist/types/components/inputs/checkbox/nmorph-checkbox-group/NmorphCheckboxGroup.vue.d.ts +8 -8
- package/dist/types/components/inputs/checkbox/types.d.ts +6 -3
- package/dist/types/components/inputs/nmorph-autocomplete/NmorphAutocomplete.vue.d.ts +14 -14
- package/dist/types/components/inputs/nmorph-autocomplete/types.d.ts +2 -2
- package/dist/types/components/inputs/nmorph-date-picker/NmorphDatePicker.vue.d.ts +11 -11
- package/dist/types/components/inputs/nmorph-date-picker/components/nmorph-date-picker-content/NmorphDatePickerContent.vue.d.ts +7 -7
- package/dist/types/components/inputs/nmorph-date-picker/components/nmorph-date-picker-header/NmorphDatePickerHeader.vue.d.ts +3 -3
- package/dist/types/components/inputs/nmorph-date-picker/components/nmorph-year-month-picker/NmorphYearMonthPicker.vue.d.ts +3 -3
- package/dist/types/components/inputs/nmorph-date-picker/components/types.d.ts +1 -0
- package/dist/types/components/inputs/nmorph-file-upload/NmorphFileUpload.vue.d.ts +10 -14
- package/dist/types/components/inputs/nmorph-file-upload/types.d.ts +32 -28
- package/dist/types/components/inputs/nmorph-number-input/NmorphNumberInput.vue.d.ts +8 -8
- package/dist/types/components/inputs/nmorph-select/NmorphSelect.vue.d.ts +15 -15
- package/dist/types/components/inputs/{nmorph-select-option → nmorph-select/components/nmorph-select-option}/NmorphSelectOption.vue.d.ts +5 -5
- package/dist/types/components/inputs/nmorph-select/types.d.ts +4 -0
- package/dist/types/components/inputs/nmorph-slider/NmorphSlider.vue.d.ts +5 -5
- package/dist/types/components/inputs/nmorph-switch/NmorphSwitch.vue.d.ts +8 -8
- package/dist/types/components/inputs/nmorph-text-input/NmorphTextInput.vue.d.ts +10 -10
- package/dist/types/components/inputs/nmorph-time-picker/NmorphTimePicker.vue.d.ts +15 -15
- package/dist/types/components/inputs/nmorph-time-picker/components/NmorphTimeRoller.vue.d.ts +3 -3
- package/dist/types/components/inputs/nmorph-time-picker/types.d.ts +3 -3
- package/dist/types/components/inputs/nmorph-time-picker/utils.d.ts +2 -2
- package/dist/types/components/inputs/radio/nmorph-radio/NmorphRadio.vue.d.ts +9 -9
- package/dist/types/components/inputs/radio/nmorph-radio-group/NmorphRadioGroup.vue.d.ts +9 -9
- package/dist/types/components/inputs/radio/types.d.ts +5 -2
- package/dist/types/components/nmorph-alert/NmorphAlert.vue.d.ts +3 -3
- package/dist/types/components/nmorph-avatar/NmorphAvatar.vue.d.ts +5 -5
- package/dist/types/components/nmorph-backtop/NmorphBacktop.vue.d.ts +3 -3
- package/dist/types/components/nmorph-badge/NmorphBadge.vue.d.ts +4 -4
- package/dist/types/components/nmorph-breadcrumb/NmorphBreadcrumb.vue.d.ts +3 -3
- package/dist/types/components/nmorph-breadcrumb/components/nmorph-breadcrumb-item/NmorphBreadcrumbItem.vue.d.ts +4 -4
- package/dist/types/components/nmorph-breadcrumb/types.d.ts +2 -2
- package/dist/types/components/nmorph-button/NmorphButton.vue.d.ts +7 -7
- package/dist/types/components/nmorph-calendar/NmorphCalendar.vue.d.ts +11 -11
- package/dist/types/components/nmorph-calendar/components/nmorph-calendar-header/NmorphCalendarHeader.vue.d.ts +3 -3
- package/dist/types/components/nmorph-calendar/types.d.ts +5 -5
- package/dist/types/components/nmorph-calendar/utils.d.ts +4 -4
- package/dist/types/components/nmorph-card/NmorphCard.vue.d.ts +3 -3
- package/dist/types/components/nmorph-carousel/NmorphCarousel.vue.d.ts +3 -3
- package/dist/types/components/nmorph-carousel/components/nmorph-carousel-item/NmorphCarouselItem.vue.d.ts +2 -2
- package/dist/types/components/nmorph-carousel/types.d.ts +1 -1
- package/dist/types/components/nmorph-collapse/NmorphCollapse.vue.d.ts +7 -7
- package/dist/types/components/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.d.ts +5 -5
- package/dist/types/components/nmorph-collapse/types.d.ts +5 -2
- package/dist/types/components/nmorph-dialog/NmorphDialog.vue.d.ts +4 -4
- package/dist/types/components/nmorph-divider/NmorphDivider.vue.d.ts +6 -6
- package/dist/types/components/nmorph-divider/types.d.ts +1 -1
- package/dist/types/components/nmorph-dropdown/NmorphDropdown.vue.d.ts +7 -7
- package/dist/types/components/{form/nmorph-form → nmorph-form}/NmorphForm.vue.d.ts +5 -5
- package/dist/types/components/{form/nmorph-form → nmorph-form}/components/nmorph-form-item/NmorphFormItem.vue.d.ts +4 -4
- package/dist/types/components/{form/nmorph-form → nmorph-form}/components/nmorph-form-item/components/nmorph-error-box/NmorphErrorBox.vue.d.ts +4 -4
- package/dist/types/components/{form/nmorph-form → nmorph-form}/components/nmorph-form-item/components/nmorph-validation-icon/NmorphValidationIcon.vue.d.ts +3 -3
- package/dist/types/components/nmorph-form/types.d.ts +7 -0
- package/dist/types/components/nmorph-icon/NmorphIcon.vue.d.ts +4 -4
- package/dist/types/components/nmorph-image/NmorphImage.vue.d.ts +5 -5
- package/dist/types/components/nmorph-image-preview/NmorphImagePreview.vue.d.ts +3 -3
- package/dist/types/components/nmorph-image-preview/types.d.ts +5 -0
- package/dist/types/components/nmorph-link/NmorphLink.vue.d.ts +7 -12
- package/dist/types/components/nmorph-link/types.d.ts +6 -0
- package/dist/types/components/nmorph-overlay/NmorphOverlay.vue.d.ts +3 -3
- package/dist/types/components/nmorph-pagination/NmorphPagination.vue.d.ts +4 -4
- package/dist/types/components/nmorph-progress/NmorphProgress.vue.d.ts +3 -3
- package/dist/types/components/nmorph-scroll/NmorphScroll.vue.d.ts +8 -14
- package/dist/types/components/nmorph-scroll/types.d.ts +7 -0
- package/dist/types/components/nmorph-skeleton/NmorphSkeleton.vue.d.ts +3 -3
- package/dist/types/components/nmorph-skeleton/components/NmorphSkeletonItem.vue.d.ts +3 -3
- package/dist/types/components/nmorph-sort-button/NmorphSortButton.vue.d.ts +3 -3
- package/dist/types/components/{table/nmorph-table → nmorph-table}/NmorphTable.vue.d.ts +4 -4
- package/dist/types/components/{table/nmorph-table → nmorph-table}/components/nmorph-table-cell/NmorphTableCell.vue.d.ts +2 -2
- package/dist/types/components/{table/nmorph-table → nmorph-table}/components/nmorph-table-column/NmorphTableColumn.vue.d.ts +6 -6
- package/dist/types/components/nmorph-table/types.d.ts +21 -0
- package/dist/types/components/nmorph-tabs/NmorphTabs.vue.d.ts +3 -3
- package/dist/types/components/nmorph-tabs/components/nmorph-tab-pane/NmorphTabPane.vue.d.ts +5 -5
- package/dist/types/components/nmorph-tabs/type.d.ts +3 -3
- package/dist/types/components/nmorph-tag/NmorphTag.vue.d.ts +3 -3
- package/dist/types/components/nmorph-tooltip/NmorphTooltip.vue.d.ts +7 -7
- package/dist/types/components.d.ts +8 -9
- package/dist/types/histoire.setup.d.ts +0 -2
- package/dist/types/hooks/index.d.ts +1 -0
- package/dist/types/hooks/useEventManager.d.ts +1 -0
- package/dist/types/hooks/useFieldValidation.d.ts +21 -21
- package/dist/types/hooks/useFormValidation.d.ts +2 -2
- package/dist/types/hooks/usePlacement.d.ts +6 -6
- package/dist/types/types/common.d.ts +5 -5
- package/package.json +5 -24
- package/dist/fonts/Inter-Bold.woff +0 -0
- package/dist/fonts/Inter-Bold.woff2 +0 -0
- package/dist/fonts/Inter-Regular.woff +0 -0
- package/dist/fonts/Inter-Regular.woff2 +0 -0
- package/dist/fonts/Inter-SemiBold.woff +0 -0
- package/dist/fonts/Inter-SemiBold.woff2 +0 -0
- package/dist/types/components/form/types.d.ts +0 -7
- package/dist/types/components/inputs/nmorph-select-option/types.d.ts +0 -1
- package/dist/types/components/table/types.d.ts +0 -19
- /package/dist/types/components/{form/nmorph-form → nmorph-form}/components/nmorph-form-item/components/index.d.ts +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type
|
|
2
|
-
export type
|
|
3
|
-
export type
|
|
1
|
+
export type NmorphHourType = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23;
|
|
2
|
+
export type NmorphMinuteSecondsType = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59;
|
|
3
|
+
export type NmorphTimeTupleType = [NmorphHourType, NmorphMinuteSecondsType, NmorphMinuteSecondsType];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NmorphTimeTupleType } from './types';
|
|
2
2
|
export declare const formatTimestampToTime: (timestamp: number) => string;
|
|
3
|
-
export declare const timeArrayToTimestamp: (timeArray:
|
|
3
|
+
export declare const timeArrayToTimestamp: (timeArray: NmorphTimeTupleType) => number;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, Ref } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
interface
|
|
5
|
-
styleType?: keyof typeof
|
|
2
|
+
import { INmorphRadioOption, NmorphRadioStyleType } from '../types';
|
|
3
|
+
import { NmorphDomElementType } from '../../../../types/common';
|
|
4
|
+
interface INmorphProps extends INmorphRadioOption {
|
|
5
|
+
styleType?: keyof typeof NmorphRadioStyleType;
|
|
6
6
|
}
|
|
7
|
-
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
7
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
8
8
|
disabled: boolean;
|
|
9
9
|
label: string;
|
|
10
10
|
styleType: string;
|
|
11
11
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
12
|
-
inputDOMRef: (val: Ref<
|
|
13
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
12
|
+
inputDOMRef: (val: Ref<NmorphDomElementType>) => void;
|
|
13
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
14
14
|
disabled: boolean;
|
|
15
15
|
label: string;
|
|
16
16
|
styleType: string;
|
|
17
17
|
}>>> & {
|
|
18
|
-
onInputDOMRef?: ((val: Ref<
|
|
18
|
+
onInputDOMRef?: ((val: Ref<NmorphDomElementType>) => any) | undefined;
|
|
19
19
|
}, {
|
|
20
|
-
label: string;
|
|
21
20
|
disabled: boolean;
|
|
21
|
+
label: string;
|
|
22
22
|
styleType: "button-style" | "radio-style";
|
|
23
23
|
}, {}>, {
|
|
24
24
|
label?(_: {}): any;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
interface
|
|
2
|
+
import { INmorphCommonInputProps, NmorphComponentDirection } from '../../../../types/common';
|
|
3
|
+
import { INmorphRadioOption, NmorphRadioStyleType } from '../types';
|
|
4
|
+
interface INmorphProps extends INmorphCommonInputProps {
|
|
5
5
|
modelValue: string;
|
|
6
|
-
options?:
|
|
7
|
-
styleType?: keyof typeof
|
|
6
|
+
options?: INmorphRadioOption[];
|
|
7
|
+
styleType?: keyof typeof NmorphRadioStyleType;
|
|
8
8
|
direction?: keyof typeof NmorphComponentDirection;
|
|
9
9
|
}
|
|
10
|
-
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
10
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
11
11
|
modelValue: string;
|
|
12
12
|
styleType: string;
|
|
13
13
|
options: () => never[];
|
|
@@ -16,7 +16,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
16
16
|
disabled: boolean;
|
|
17
17
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
18
18
|
"update:modelValue": (val: string) => void;
|
|
19
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
19
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
20
20
|
modelValue: string;
|
|
21
21
|
styleType: string;
|
|
22
22
|
options: () => never[];
|
|
@@ -26,10 +26,10 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
26
26
|
}>>> & {
|
|
27
27
|
"onUpdate:modelValue"?: ((val: string) => any) | undefined;
|
|
28
28
|
}, {
|
|
29
|
-
modelValue: string;
|
|
30
29
|
disabled: boolean;
|
|
30
|
+
modelValue: string;
|
|
31
31
|
styleType: "button-style" | "radio-style";
|
|
32
|
-
options:
|
|
32
|
+
options: INmorphRadioOption[];
|
|
33
33
|
direction: "row" | "column";
|
|
34
34
|
}, {}>, {
|
|
35
35
|
default?(_: {}): any;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export interface INmorphRadioOption {
|
|
2
3
|
disabled?: boolean;
|
|
3
4
|
label?: string;
|
|
4
5
|
value: string;
|
|
5
6
|
}
|
|
6
|
-
export declare enum
|
|
7
|
+
export declare enum NmorphRadioStyleType {
|
|
7
8
|
'radio-style' = "radio-style",
|
|
8
9
|
'button-style' = "button-style"
|
|
9
10
|
}
|
|
11
|
+
export type NmorphRadioGroupSelectedValueInjectionType = Ref<string>;
|
|
12
|
+
export type NmorphRadioChangeRadioButtonValueHandlerInjectionType = (value: string) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import { NmorphAlertType } from './types';
|
|
3
|
-
interface
|
|
3
|
+
interface INmorphProps {
|
|
4
4
|
color?: keyof typeof NmorphAlertType;
|
|
5
5
|
closable?: boolean;
|
|
6
6
|
title?: string;
|
|
@@ -9,7 +9,7 @@ interface IProps {
|
|
|
9
9
|
maxWidth?: number;
|
|
10
10
|
showIcon?: boolean;
|
|
11
11
|
}
|
|
12
|
-
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
13
13
|
color: string;
|
|
14
14
|
closable: boolean;
|
|
15
15
|
title: string;
|
|
@@ -19,7 +19,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
19
19
|
showIcon: boolean;
|
|
20
20
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
21
21
|
close: () => void;
|
|
22
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
22
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
23
23
|
color: string;
|
|
24
24
|
closable: boolean;
|
|
25
25
|
title: string;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import { NmorphAvatarType } from './type';
|
|
3
|
-
import {
|
|
4
|
-
interface
|
|
3
|
+
import { NmorphImageFit } from '../../types/common';
|
|
4
|
+
interface INmorphProps {
|
|
5
5
|
size?: number;
|
|
6
6
|
shape?: NmorphAvatarType;
|
|
7
7
|
src?: string;
|
|
8
8
|
srcSet?: string;
|
|
9
9
|
alt?: string;
|
|
10
|
-
fit?: keyof typeof
|
|
10
|
+
fit?: keyof typeof NmorphImageFit;
|
|
11
11
|
}
|
|
12
|
-
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
13
13
|
size: number;
|
|
14
14
|
shape: string;
|
|
15
15
|
src: string;
|
|
@@ -18,7 +18,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
18
18
|
fit: string;
|
|
19
19
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
20
20
|
error: () => void;
|
|
21
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
21
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
22
22
|
size: number;
|
|
23
23
|
shape: string;
|
|
24
24
|
src: string;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
interface
|
|
2
|
+
interface INmorphProps {
|
|
3
3
|
right?: number;
|
|
4
4
|
bottom?: number;
|
|
5
5
|
visibilityHeight?: number;
|
|
6
6
|
}
|
|
7
|
-
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
7
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
8
8
|
right: number;
|
|
9
9
|
bottom: number;
|
|
10
10
|
visibilityHeight: number;
|
|
11
11
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
12
12
|
click: () => void;
|
|
13
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
13
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
14
14
|
right: number;
|
|
15
15
|
bottom: number;
|
|
16
16
|
visibilityHeight: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
interface
|
|
2
|
+
interface INmorphProps {
|
|
3
3
|
value?: number | string;
|
|
4
4
|
max?: number;
|
|
5
5
|
isDot?: boolean;
|
|
@@ -8,7 +8,7 @@ interface IProps {
|
|
|
8
8
|
offsetY?: number;
|
|
9
9
|
offsetX?: number;
|
|
10
10
|
}
|
|
11
|
-
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
12
12
|
value: string;
|
|
13
13
|
max: number;
|
|
14
14
|
isDot: boolean;
|
|
@@ -16,7 +16,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
16
16
|
color: string;
|
|
17
17
|
offsetX: number;
|
|
18
18
|
offsetY: number;
|
|
19
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
19
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
20
20
|
value: string;
|
|
21
21
|
max: number;
|
|
22
22
|
isDot: boolean;
|
|
@@ -25,9 +25,9 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
25
25
|
offsetX: number;
|
|
26
26
|
offsetY: number;
|
|
27
27
|
}>>>, {
|
|
28
|
-
value: string | number;
|
|
29
28
|
color: string;
|
|
30
29
|
hidden: boolean;
|
|
30
|
+
value: string | number;
|
|
31
31
|
max: number;
|
|
32
32
|
isDot: boolean;
|
|
33
33
|
offsetY: number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
interface
|
|
2
|
+
interface INmorphProps {
|
|
3
3
|
separator?: string;
|
|
4
4
|
}
|
|
5
|
-
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
6
6
|
separator: string;
|
|
7
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
7
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
8
8
|
separator: string;
|
|
9
9
|
}>>>, {
|
|
10
10
|
separator: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { RouteLocationRaw } from 'vue-router';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
-
import {
|
|
4
|
-
interface
|
|
3
|
+
import { INmorphBreadcrumbItemProps } from '../../types';
|
|
4
|
+
interface INmorphProps extends INmorphBreadcrumbItemProps {
|
|
5
5
|
}
|
|
6
|
-
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
6
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
7
7
|
to: string;
|
|
8
8
|
replace: boolean;
|
|
9
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
9
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
10
10
|
to: string;
|
|
11
11
|
replace: boolean;
|
|
12
12
|
}>>>, {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { RouteLocationRaw } from 'vue-router';
|
|
3
|
-
export interface
|
|
3
|
+
export interface INmorphBreadcrumbItemProps {
|
|
4
4
|
to?: string | RouteLocationRaw;
|
|
5
5
|
replace?: boolean;
|
|
6
6
|
}
|
|
7
|
-
export interface NmorphBreadcrumbInjectionItemWithId extends
|
|
7
|
+
export interface NmorphBreadcrumbInjectionItemWithId extends INmorphBreadcrumbItemProps {
|
|
8
8
|
itemId: string;
|
|
9
9
|
}
|
|
10
10
|
export interface NmorphBreadcrumbInjection {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { INmorphCommonInputProps } from '../../types/common';
|
|
3
3
|
import { NmorphButtonType, NmorphButtonStyle } from './types';
|
|
4
|
-
interface
|
|
4
|
+
interface INmorphProps extends INmorphCommonInputProps {
|
|
5
5
|
type?: keyof typeof NmorphButtonType;
|
|
6
6
|
text?: string | number;
|
|
7
7
|
loading?: boolean;
|
|
@@ -9,7 +9,7 @@ interface IProps extends NmorphCommonInputProps {
|
|
|
9
9
|
bgTransparentOnHover?: boolean;
|
|
10
10
|
ripple?: boolean;
|
|
11
11
|
}
|
|
12
|
-
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
13
13
|
type: string;
|
|
14
14
|
fill: boolean;
|
|
15
15
|
text: string;
|
|
@@ -21,7 +21,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
21
21
|
ripple: boolean;
|
|
22
22
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
23
23
|
click: () => void;
|
|
24
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
24
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
25
25
|
type: string;
|
|
26
26
|
fill: boolean;
|
|
27
27
|
text: string;
|
|
@@ -35,12 +35,12 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
35
35
|
onClick?: (() => any) | undefined;
|
|
36
36
|
}, {
|
|
37
37
|
fill: boolean;
|
|
38
|
-
|
|
38
|
+
disabled: boolean;
|
|
39
|
+
styleType: "default" | "transparent";
|
|
40
|
+
type: "button" | "reset" | "submit";
|
|
39
41
|
text: string | number;
|
|
40
42
|
height: "thick" | "default" | "thin";
|
|
41
|
-
disabled: boolean;
|
|
42
43
|
loading: boolean;
|
|
43
|
-
styleType: "default" | "transparent";
|
|
44
44
|
bgTransparentOnHover: boolean;
|
|
45
45
|
ripple: boolean;
|
|
46
46
|
}, {}>, {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import { NmorphCalendarDateType,
|
|
2
|
+
import { NmorphCalendarDateType, NmorphCalendarRangeType, NmorphDateType, NmorphSelectedDateModelType } from './types';
|
|
3
3
|
import { NmorphSelectionDateType } from '../inputs/nmorph-date-picker/components/types';
|
|
4
|
-
interface
|
|
4
|
+
interface INmorphProps {
|
|
5
5
|
markToday?: boolean;
|
|
6
6
|
initialDate?: Date;
|
|
7
|
-
modelValue?:
|
|
8
|
-
range?:
|
|
7
|
+
modelValue?: NmorphDateType;
|
|
8
|
+
range?: NmorphCalendarRangeType;
|
|
9
9
|
type?: keyof typeof NmorphSelectionDateType;
|
|
10
|
-
selectedValues?:
|
|
10
|
+
selectedValues?: NmorphSelectedDateModelType;
|
|
11
11
|
}
|
|
12
|
-
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
13
13
|
markToday: boolean;
|
|
14
14
|
initialDate: () => Date;
|
|
15
15
|
modelValue: null;
|
|
@@ -17,9 +17,9 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
17
17
|
type: string;
|
|
18
18
|
selectedValues: null;
|
|
19
19
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
20
|
-
"update:modelValue": (date:
|
|
20
|
+
"update:modelValue": (date: NmorphDateType) => void;
|
|
21
21
|
"update-initial-date": (date: Date) => void;
|
|
22
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
22
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
23
23
|
markToday: boolean;
|
|
24
24
|
initialDate: () => Date;
|
|
25
25
|
modelValue: null;
|
|
@@ -27,14 +27,14 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
27
27
|
type: string;
|
|
28
28
|
selectedValues: null;
|
|
29
29
|
}>>> & {
|
|
30
|
-
"onUpdate:modelValue"?: ((date:
|
|
30
|
+
"onUpdate:modelValue"?: ((date: NmorphDateType) => any) | undefined;
|
|
31
31
|
"onUpdate-initial-date"?: ((date: Date) => any) | undefined;
|
|
32
32
|
}, {
|
|
33
|
+
modelValue: NmorphDateType;
|
|
33
34
|
type: "date" | "dates" | "daterange";
|
|
34
|
-
modelValue: NmorphDate;
|
|
35
35
|
range: [Date, Date];
|
|
36
36
|
initialDate: Date;
|
|
37
|
-
selectedValues:
|
|
37
|
+
selectedValues: NmorphSelectedDateModelType;
|
|
38
38
|
markToday: boolean;
|
|
39
39
|
}, {}>, {
|
|
40
40
|
header?(_: {}): any;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
interface
|
|
2
|
+
interface INmorphProps {
|
|
3
3
|
year: number;
|
|
4
4
|
month: number;
|
|
5
5
|
showPreviousMonthButton: boolean;
|
|
6
6
|
showNextMonthButton: boolean;
|
|
7
7
|
showTodayButton: boolean;
|
|
8
8
|
}
|
|
9
|
-
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
9
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
10
10
|
"click-previous-month": () => void;
|
|
11
11
|
"click-today": () => void;
|
|
12
12
|
"click-next-month": () => void;
|
|
13
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
13
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {}>>> & {
|
|
14
14
|
"onClick-previous-month"?: (() => any) | undefined;
|
|
15
15
|
"onClick-today"?: (() => any) | undefined;
|
|
16
16
|
"onClick-next-month"?: (() => any) | undefined;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export type NmorphCalendarDateType = 'current' | 'previous' | 'next';
|
|
2
|
-
export interface
|
|
2
|
+
export interface INmorphCalendarDate {
|
|
3
3
|
monthType: NmorphCalendarDateType;
|
|
4
4
|
value: number;
|
|
5
5
|
isToday: boolean;
|
|
6
6
|
date: Date;
|
|
7
7
|
hidden: boolean;
|
|
8
8
|
}
|
|
9
|
-
export type
|
|
10
|
-
export type
|
|
11
|
-
export type
|
|
12
|
-
export type
|
|
9
|
+
export type NmorphCalendarRangeType = [Date, Date] | undefined;
|
|
10
|
+
export type NmorphCalendarDatesType = INmorphCalendarDate[];
|
|
11
|
+
export type NmorphDateType = Date | null;
|
|
12
|
+
export type NmorphSelectedDateModelType = NmorphDateType | NmorphDateType[];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NmorphCalendarDatesType, NmorphCalendarRangeType, NmorphSelectedDateModelType } from './types';
|
|
2
2
|
import { Ref } from 'vue';
|
|
3
3
|
export declare const getDecadeYears: (year: number) => number[];
|
|
4
|
-
export declare const formatDateIntl: (date:
|
|
4
|
+
export declare const formatDateIntl: (date: NmorphSelectedDateModelType) => string | (string | null)[] | undefined;
|
|
5
5
|
export declare const hasAnyRangeDateInPrevMonth: (currentDate: Date, prevMonthRange: Date) => boolean;
|
|
6
6
|
export declare const hasAnyRangeDateInNextMonth: (currentDate: Date, nextMonthRange: Date) => boolean;
|
|
7
|
-
export declare const isTodayInRange: (range:
|
|
7
|
+
export declare const isTodayInRange: (range: NmorphCalendarRangeType) => boolean;
|
|
8
8
|
export declare const getMonthName: (monthIndex: number) => string;
|
|
9
|
-
export declare const getMonthDaysByWeek: (selectedDate: Ref<Date>, range:
|
|
9
|
+
export declare const getMonthDaysByWeek: (selectedDate: Ref<Date>, range: NmorphCalendarRangeType | undefined) => NmorphCalendarDatesType[];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import { NmorphShadowType } from '../../types/common';
|
|
3
|
-
interface
|
|
3
|
+
interface INmorphProps {
|
|
4
4
|
shadowType?: keyof typeof NmorphShadowType;
|
|
5
5
|
}
|
|
6
|
-
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
6
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
7
7
|
shadowType: NmorphShadowType;
|
|
8
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
8
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
9
9
|
shadowType: NmorphShadowType;
|
|
10
10
|
}>>>, {
|
|
11
11
|
shadowType: "inset" | "outset" | "combined";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
interface
|
|
2
|
+
interface INmorphProps {
|
|
3
3
|
loop?: boolean;
|
|
4
4
|
}
|
|
5
|
-
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
6
6
|
loop: boolean;
|
|
7
7
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
8
8
|
change: (value: number) => void;
|
|
9
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
9
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
10
10
|
loop: boolean;
|
|
11
11
|
}>>> & {
|
|
12
12
|
onChange?: ((value: number) => any) | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
interface
|
|
2
|
+
interface INmorphProps {
|
|
3
3
|
name: string;
|
|
4
4
|
}
|
|
5
|
-
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
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
6
|
default?(_: {}): any;
|
|
7
7
|
}>;
|
|
8
8
|
export default _default;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
4
|
-
modelValue:
|
|
2
|
+
import { NmorphCollapseModelType } from './types';
|
|
3
|
+
interface INmorphProps {
|
|
4
|
+
modelValue: NmorphCollapseModelType;
|
|
5
5
|
accordion?: boolean;
|
|
6
6
|
}
|
|
7
|
-
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
7
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
8
8
|
accordion: boolean;
|
|
9
9
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
10
|
-
"update:modelValue": (value:
|
|
11
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
10
|
+
"update:modelValue": (value: NmorphCollapseModelType) => void;
|
|
11
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
12
12
|
accordion: boolean;
|
|
13
13
|
}>>> & {
|
|
14
|
-
"onUpdate:modelValue"?: ((value:
|
|
14
|
+
"onUpdate:modelValue"?: ((value: NmorphCollapseModelType) => any) | undefined;
|
|
15
15
|
}, {
|
|
16
16
|
accordion: boolean;
|
|
17
17
|
}, {}>, {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { INmorphCollapseItemProps } from '../../types';
|
|
3
3
|
import { NmorphComponentHeight } from '../../../../types/common';
|
|
4
|
-
interface
|
|
4
|
+
interface INmorphProps extends INmorphCollapseItemProps {
|
|
5
5
|
height?: keyof typeof NmorphComponentHeight;
|
|
6
6
|
}
|
|
7
|
-
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
7
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
8
8
|
height: string;
|
|
9
9
|
title: string;
|
|
10
10
|
disabled: boolean;
|
|
@@ -13,7 +13,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
13
13
|
id: string;
|
|
14
14
|
isOpen: boolean;
|
|
15
15
|
}) => void;
|
|
16
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
16
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
17
17
|
height: string;
|
|
18
18
|
title: string;
|
|
19
19
|
disabled: boolean;
|
|
@@ -23,9 +23,9 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
23
23
|
isOpen: boolean;
|
|
24
24
|
}) => any) | undefined;
|
|
25
25
|
}, {
|
|
26
|
+
disabled: boolean;
|
|
26
27
|
title: string;
|
|
27
28
|
height: "thick" | "default" | "thin";
|
|
28
|
-
disabled: boolean;
|
|
29
29
|
}, {}>, {
|
|
30
30
|
title?(_: {}): any;
|
|
31
31
|
default?(_: {}): any;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export type NmorphCollapseModelType = string | string[];
|
|
3
|
+
export interface INmorphCollapseItemProps {
|
|
3
4
|
name: string;
|
|
4
5
|
title?: string;
|
|
5
6
|
disabled?: boolean;
|
|
6
7
|
}
|
|
8
|
+
export type NmorphCollapseDataInjectionType = Ref<NmorphCollapseModelType>;
|
|
9
|
+
export type NmorphCollapseUpdateModelInjectionType = (id: string, value: boolean) => void;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
interface
|
|
2
|
+
interface INmorphProps {
|
|
3
3
|
modelValue?: boolean;
|
|
4
4
|
title?: string;
|
|
5
5
|
}
|
|
6
|
-
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
6
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
7
7
|
modelValue: boolean;
|
|
8
8
|
title: string;
|
|
9
9
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
10
10
|
"on-close": () => void;
|
|
11
11
|
"update:modelValue": (value: boolean) => void;
|
|
12
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
12
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
13
13
|
modelValue: boolean;
|
|
14
14
|
title: string;
|
|
15
15
|
}>>> & {
|
|
16
16
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
17
17
|
"onOn-close"?: (() => any) | undefined;
|
|
18
18
|
}, {
|
|
19
|
-
title: string;
|
|
20
19
|
modelValue: boolean;
|
|
20
|
+
title: string;
|
|
21
21
|
}, {}>, {
|
|
22
22
|
header?(_: {}): any;
|
|
23
23
|
default?(_: {}): any;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
4
|
-
direction?:
|
|
2
|
+
import { NmorphDirectionType } from './types';
|
|
3
|
+
interface INmorphProps {
|
|
4
|
+
direction?: NmorphDirectionType;
|
|
5
5
|
}
|
|
6
|
-
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
6
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
7
7
|
direction: string;
|
|
8
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
8
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
9
9
|
direction: string;
|
|
10
10
|
}>>>, {
|
|
11
|
-
direction:
|
|
11
|
+
direction: NmorphDirectionType;
|
|
12
12
|
}, {}>;
|
|
13
13
|
export default _default;
|
|
14
14
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type NmorphDirectionType = 'vertical' | 'horizontal';
|