@nmorph/nmorph-ui-kit 0.0.2 → 0.0.5
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 +50 -52
- 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,21 +1,21 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
2
|
+
import { NmorphDomElementType } from '../../types/common';
|
|
3
|
+
interface INmorphProps {
|
|
4
4
|
open: boolean;
|
|
5
|
-
relativeElement:
|
|
5
|
+
relativeElement: NmorphDomElementType;
|
|
6
6
|
width?: number;
|
|
7
7
|
xOffset?: number;
|
|
8
8
|
yOffset?: number;
|
|
9
9
|
fillWidth?: boolean;
|
|
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
|
width: number;
|
|
13
13
|
xOffset: number;
|
|
14
14
|
yOffset: number;
|
|
15
15
|
fillWidth: boolean;
|
|
16
16
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
17
17
|
"on-outside-click": () => void;
|
|
18
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
18
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
19
19
|
width: number;
|
|
20
20
|
xOffset: number;
|
|
21
21
|
yOffset: number;
|
|
@@ -23,9 +23,9 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
23
23
|
}>>> & {
|
|
24
24
|
"onOn-outside-click"?: (() => any) | undefined;
|
|
25
25
|
}, {
|
|
26
|
-
yOffset: number;
|
|
27
|
-
xOffset: number;
|
|
28
26
|
width: number;
|
|
27
|
+
xOffset: number;
|
|
28
|
+
yOffset: number;
|
|
29
29
|
fillWidth: boolean;
|
|
30
30
|
}, {}>, {
|
|
31
31
|
default?(_: {}): any;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, Ref, ComputedRef, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
4
|
-
value:
|
|
2
|
+
import { NmorphFormValueType } from './types';
|
|
3
|
+
interface INmorphProps {
|
|
4
|
+
value: NmorphFormValueType;
|
|
5
5
|
validateImmediately?: 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
|
validateImmediately: boolean;
|
|
9
9
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
10
10
|
formValidator: (val: {
|
|
@@ -15,7 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
15
15
|
validate: () => null | undefined;
|
|
16
16
|
}>;
|
|
17
17
|
}) => void;
|
|
18
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
18
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
19
19
|
validateImmediately: boolean;
|
|
20
20
|
}>>> & {
|
|
21
21
|
onFormValidator?: ((val: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import { NmorphComponentHeight } from '
|
|
3
|
-
interface
|
|
2
|
+
import { NmorphComponentHeight } from '../../../../types/common';
|
|
3
|
+
interface INmorphProps {
|
|
4
4
|
/**
|
|
5
5
|
* The ID of the form field used to bind to validation data.
|
|
6
6
|
* @type {string}
|
|
@@ -12,13 +12,13 @@ interface IProps {
|
|
|
12
12
|
staticErrorBoxSpace?: boolean;
|
|
13
13
|
validate?: boolean;
|
|
14
14
|
}
|
|
15
|
-
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
16
16
|
label: string;
|
|
17
17
|
height: string;
|
|
18
18
|
showValidationIcon: boolean;
|
|
19
19
|
staticErrorBoxSpace: boolean;
|
|
20
20
|
validate: boolean;
|
|
21
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
21
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
22
22
|
label: string;
|
|
23
23
|
height: string;
|
|
24
24
|
showValidationIcon: boolean;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { NmorphComponentHeight } from '
|
|
1
|
+
import { NmorphComponentHeight } from '../../../../../../types/common';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, Ref } from 'vue';
|
|
3
|
-
interface
|
|
3
|
+
interface INmorphProps {
|
|
4
4
|
height?: keyof typeof NmorphComponentHeight;
|
|
5
5
|
errors?: string[] | Ref<string[]>;
|
|
6
6
|
staticHeight?: boolean;
|
|
7
7
|
}
|
|
8
|
-
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
8
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
9
9
|
height: string;
|
|
10
10
|
errors: () => never[];
|
|
11
11
|
staticHeight: boolean;
|
|
12
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
12
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
13
13
|
height: string;
|
|
14
14
|
errors: () => never[];
|
|
15
15
|
staticHeight: boolean;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, ComputedRef } from 'vue';
|
|
2
|
-
interface
|
|
2
|
+
interface INmorphProps {
|
|
3
3
|
valid: boolean | ComputedRef<boolean>;
|
|
4
4
|
show?: boolean | ComputedRef<boolean>;
|
|
5
5
|
}
|
|
6
|
-
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
6
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
7
7
|
show: boolean;
|
|
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
|
show: boolean;
|
|
10
10
|
}>>>, {
|
|
11
11
|
show: boolean | ComputedRef<boolean>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { NmorphRulesType, useFormValidation } from '../../hooks';
|
|
2
|
+
export type NmorphAvailableFormValueType = string | string[] | number;
|
|
3
|
+
export type NmorphFormValueType = Record<string, {
|
|
4
|
+
value: NmorphAvailableFormValueType;
|
|
5
|
+
rules: NmorphRulesType;
|
|
6
|
+
}>;
|
|
7
|
+
export type NmorphFormValidationDataType = ReturnType<typeof useFormValidation>;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import { NmorphIconName, NmorphIconSize } from './types';
|
|
3
|
-
interface
|
|
3
|
+
interface INmorphProps {
|
|
4
4
|
name?: NmorphIconName;
|
|
5
5
|
size?: keyof typeof NmorphIconSize;
|
|
6
6
|
width?: string;
|
|
7
7
|
height?: string;
|
|
8
8
|
path?: string;
|
|
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
|
name: undefined;
|
|
12
12
|
size: string;
|
|
13
13
|
width: undefined;
|
|
14
14
|
height: undefined;
|
|
15
15
|
path: undefined;
|
|
16
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
16
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
17
17
|
name: undefined;
|
|
18
18
|
size: string;
|
|
19
19
|
width: undefined;
|
|
20
20
|
height: undefined;
|
|
21
21
|
path: undefined;
|
|
22
22
|
}>>>, {
|
|
23
|
-
size: "small" | "medium" | "large";
|
|
24
23
|
path: string;
|
|
25
24
|
height: string;
|
|
26
25
|
name: NmorphIconName;
|
|
26
|
+
size: "small" | "medium" | "large";
|
|
27
27
|
width: string;
|
|
28
28
|
}, {}>, {
|
|
29
29
|
default?(_: {}): any;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
2
|
+
import { NmorphImageFit } from '../../types/common';
|
|
3
|
+
interface INmorphProps {
|
|
4
4
|
src: string;
|
|
5
|
-
fit?: keyof typeof
|
|
5
|
+
fit?: keyof typeof NmorphImageFit;
|
|
6
6
|
alt?: string;
|
|
7
7
|
loadingText?: string;
|
|
8
8
|
loadFailedText?: string;
|
|
9
9
|
srcset?: string;
|
|
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
|
fit: string;
|
|
13
13
|
closeOnOutsideClick: boolean;
|
|
14
14
|
alt: string;
|
|
15
15
|
loadingText: string;
|
|
16
16
|
loadFailedText: string;
|
|
17
17
|
srcset: string;
|
|
18
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
18
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
19
19
|
fit: string;
|
|
20
20
|
closeOnOutsideClick: boolean;
|
|
21
21
|
alt: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
interface
|
|
2
|
+
interface INmorphProps {
|
|
3
3
|
show?: boolean;
|
|
4
4
|
alt?: string;
|
|
5
5
|
initialIndex?: number;
|
|
@@ -8,7 +8,7 @@ interface IProps {
|
|
|
8
8
|
minScaleLevel?: number;
|
|
9
9
|
maxScaleLevel?: number;
|
|
10
10
|
}
|
|
11
|
-
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
11
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
12
12
|
alt: string;
|
|
13
13
|
show: boolean;
|
|
14
14
|
initialIndex: number;
|
|
@@ -18,7 +18,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
18
18
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
19
19
|
"on-close": () => void;
|
|
20
20
|
"on-open": () => void;
|
|
21
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
21
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
22
22
|
alt: string;
|
|
23
23
|
show: boolean;
|
|
24
24
|
initialIndex: number;
|
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import { NmorphIconName } from '../nmorph-icon/types';
|
|
3
3
|
import { NmorphColor } from '../../types/common';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
blank = "_blank",
|
|
7
|
-
parent = "_parent",
|
|
8
|
-
top = "_top"
|
|
9
|
-
}
|
|
10
|
-
interface IProps {
|
|
4
|
+
import { NmorphLinkTarget } from './types';
|
|
5
|
+
interface INmorphProps {
|
|
11
6
|
color?: keyof typeof NmorphColor;
|
|
12
7
|
underline?: boolean;
|
|
13
8
|
href?: string;
|
|
14
9
|
text?: string;
|
|
15
10
|
iconName?: NmorphIconName;
|
|
16
|
-
target?: keyof typeof
|
|
11
|
+
target?: keyof typeof NmorphLinkTarget;
|
|
17
12
|
disabled?: boolean;
|
|
18
13
|
}
|
|
19
|
-
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
14
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
20
15
|
color: NmorphColor;
|
|
21
16
|
href: string;
|
|
22
17
|
underline: boolean;
|
|
@@ -24,7 +19,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
24
19
|
text: string;
|
|
25
20
|
target: string;
|
|
26
21
|
disabled: boolean;
|
|
27
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
22
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
28
23
|
color: NmorphColor;
|
|
29
24
|
href: string;
|
|
30
25
|
underline: boolean;
|
|
@@ -33,10 +28,10 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
33
28
|
target: string;
|
|
34
29
|
disabled: boolean;
|
|
35
30
|
}>>>, {
|
|
36
|
-
text: string;
|
|
37
|
-
target: "top" | "self" | "blank" | "parent";
|
|
38
31
|
disabled: boolean;
|
|
32
|
+
text: string;
|
|
39
33
|
color: "accent" | "success" | "error" | "warning";
|
|
34
|
+
target: "top" | "self" | "blank" | "parent";
|
|
40
35
|
underline: boolean;
|
|
41
36
|
href: string;
|
|
42
37
|
iconName: NmorphIconName;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
interface
|
|
2
|
+
interface INmorphProps {
|
|
3
3
|
show: boolean;
|
|
4
4
|
outsideClickEmitEvent?: boolean;
|
|
5
5
|
transparent?: 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
|
show: boolean;
|
|
9
9
|
outsideClickEmitEvent: boolean;
|
|
10
10
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
11
11
|
"on-outside-click": () => void;
|
|
12
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
12
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
13
13
|
show: boolean;
|
|
14
14
|
outsideClickEmitEvent: boolean;
|
|
15
15
|
}>>> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
interface
|
|
2
|
+
interface INmorphProps {
|
|
3
3
|
total: number;
|
|
4
4
|
range?: [number, number];
|
|
5
5
|
modelValue?: number;
|
|
@@ -7,7 +7,7 @@ interface IProps {
|
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
hideOnSinglePage?: boolean;
|
|
9
9
|
}
|
|
10
|
-
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
10
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
11
11
|
range: () => number[];
|
|
12
12
|
modelValue: number;
|
|
13
13
|
pagerCount: number;
|
|
@@ -18,7 +18,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
18
18
|
"next-click": (currentPage: number) => void;
|
|
19
19
|
"update:modelValue": (currentPage: number) => void;
|
|
20
20
|
"update:range": (range: [number, number]) => void;
|
|
21
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
21
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
22
22
|
range: () => number[];
|
|
23
23
|
modelValue: number;
|
|
24
24
|
pagerCount: number;
|
|
@@ -30,8 +30,8 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
30
30
|
"onNext-click"?: ((currentPage: number) => any) | undefined;
|
|
31
31
|
"onUpdate:range"?: ((range: [number, number]) => any) | undefined;
|
|
32
32
|
}, {
|
|
33
|
-
modelValue: number;
|
|
34
33
|
disabled: boolean;
|
|
34
|
+
modelValue: number;
|
|
35
35
|
range: [number, number];
|
|
36
36
|
pagerCount: number;
|
|
37
37
|
hideOnSinglePage: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import { NmorphProgressColorType, NmorphProgressType } from './types';
|
|
3
|
-
interface
|
|
3
|
+
interface INmorphProps {
|
|
4
4
|
type?: NmorphProgressType;
|
|
5
5
|
color?: NmorphProgressColorType;
|
|
6
6
|
percentage: number;
|
|
@@ -10,7 +10,7 @@ interface IProps {
|
|
|
10
10
|
circleSize?: number;
|
|
11
11
|
strokeWidth?: number;
|
|
12
12
|
}
|
|
13
|
-
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
14
14
|
height: string;
|
|
15
15
|
type: string;
|
|
16
16
|
color: string;
|
|
@@ -19,7 +19,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
19
19
|
indeterminate: boolean;
|
|
20
20
|
circleSize: number;
|
|
21
21
|
strokeWidth: number;
|
|
22
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
22
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
23
23
|
height: string;
|
|
24
24
|
type: string;
|
|
25
25
|
color: string;
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
auto = "auto",
|
|
6
|
-
hidden = "hidden",
|
|
7
|
-
scroll = "scroll"
|
|
8
|
-
}
|
|
9
|
-
interface IProps {
|
|
10
|
-
modelValue?: Coords;
|
|
2
|
+
import { NmorphCoordsType, NmorphOverflowProp } from './types';
|
|
3
|
+
interface INmorphProps {
|
|
4
|
+
modelValue?: NmorphCoordsType;
|
|
11
5
|
scrollYProp?: keyof typeof NmorphOverflowProp;
|
|
12
6
|
scrollXProp?: keyof typeof NmorphOverflowProp;
|
|
13
7
|
scrollEndDelay?: number;
|
|
14
8
|
}
|
|
15
|
-
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
9
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
16
10
|
modelValue: () => {
|
|
17
11
|
x: number;
|
|
18
12
|
y: number;
|
|
@@ -22,9 +16,9 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
22
16
|
scrollEndDelay: number;
|
|
23
17
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
24
18
|
"on-scroll": (event: Event) => void;
|
|
25
|
-
"update:modelValue": (coords:
|
|
19
|
+
"update:modelValue": (coords: NmorphCoordsType) => void;
|
|
26
20
|
"on-scroll-end": () => void;
|
|
27
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
21
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
28
22
|
modelValue: () => {
|
|
29
23
|
x: number;
|
|
30
24
|
y: number;
|
|
@@ -33,11 +27,11 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
33
27
|
scrollXProp: string;
|
|
34
28
|
scrollEndDelay: number;
|
|
35
29
|
}>>> & {
|
|
36
|
-
"onUpdate:modelValue"?: ((coords:
|
|
30
|
+
"onUpdate:modelValue"?: ((coords: NmorphCoordsType) => any) | undefined;
|
|
37
31
|
"onOn-scroll"?: ((event: Event) => any) | undefined;
|
|
38
32
|
"onOn-scroll-end"?: (() => any) | undefined;
|
|
39
33
|
}, {
|
|
40
|
-
modelValue:
|
|
34
|
+
modelValue: NmorphCoordsType;
|
|
41
35
|
scrollYProp: "hidden" | "auto" | "scroll";
|
|
42
36
|
scrollXProp: "hidden" | "auto" | "scroll";
|
|
43
37
|
scrollEndDelay: number;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
interface
|
|
2
|
+
interface INmorphProps {
|
|
3
3
|
animated?: boolean;
|
|
4
4
|
loading?: boolean;
|
|
5
5
|
rows?: 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
|
animated: boolean;
|
|
9
9
|
loading: boolean;
|
|
10
10
|
rows: number;
|
|
11
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
11
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
12
12
|
animated: boolean;
|
|
13
13
|
loading: boolean;
|
|
14
14
|
rows: number;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import { NmorphSkeletonItemPropsType } from '../types';
|
|
3
|
-
interface
|
|
3
|
+
interface INmorphProps {
|
|
4
4
|
variant?: NmorphSkeletonItemPropsType;
|
|
5
5
|
}
|
|
6
|
-
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
6
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
7
7
|
variant: 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
|
variant: string;
|
|
10
10
|
}>>>, {
|
|
11
11
|
variant: NmorphSkeletonItemPropsType;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import { NmorphSortOrderType } from '../../types/common';
|
|
3
|
-
interface
|
|
3
|
+
interface INmorphProps {
|
|
4
4
|
value: NmorphSortOrderType;
|
|
5
5
|
}
|
|
6
|
-
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
6
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
7
7
|
sort: (val: NmorphSortOrderType) => void;
|
|
8
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
8
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {}>>> & {
|
|
9
9
|
onSort?: ((val: NmorphSortOrderType) => any) | undefined;
|
|
10
10
|
}, {}, {}>;
|
|
11
11
|
export default _default;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import { NmorphTableDataType, NmorphTableSortType } from '
|
|
3
|
-
interface
|
|
2
|
+
import { NmorphTableDataType, NmorphTableSortType } from './types';
|
|
3
|
+
interface INmorphProps {
|
|
4
4
|
data?: NmorphTableDataType;
|
|
5
5
|
rowHover?: boolean;
|
|
6
6
|
bordered?: boolean;
|
|
7
7
|
sort?: NmorphTableSortType;
|
|
8
8
|
style?: 'nmorph' | 'common';
|
|
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
|
/**
|
|
12
12
|
* @description table data
|
|
13
13
|
*/
|
|
@@ -16,7 +16,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
16
16
|
sort: undefined;
|
|
17
17
|
style: string;
|
|
18
18
|
rowHover: boolean;
|
|
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
|
/**
|
|
21
21
|
* @description table data
|
|
22
22
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
interface
|
|
2
|
+
interface INmorphProps {
|
|
3
3
|
row: number;
|
|
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,24 +1,24 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
2
|
+
import { NmorphCellAlignmentType, NmorphTableColumnData, NmorphDataTableElRecordType, INmorphTableColumnProps } from '../../types';
|
|
3
|
+
interface INmorphProps extends INmorphTableColumnProps {
|
|
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
|
label: string;
|
|
7
7
|
width: string;
|
|
8
8
|
alignment: string;
|
|
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
|
label: string;
|
|
11
11
|
width: string;
|
|
12
12
|
alignment: string;
|
|
13
13
|
}>>>, {
|
|
14
14
|
label: string;
|
|
15
15
|
width: string;
|
|
16
|
-
alignment:
|
|
16
|
+
alignment: NmorphCellAlignmentType;
|
|
17
17
|
}, {}>, {
|
|
18
18
|
default?(_: {
|
|
19
19
|
scope: {
|
|
20
20
|
columns: NmorphTableColumnData[] | undefined;
|
|
21
|
-
rows:
|
|
21
|
+
rows: NmorphDataTableElRecordType[] | undefined;
|
|
22
22
|
tableId: string | undefined;
|
|
23
23
|
};
|
|
24
24
|
}): any;
|
|
@@ -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;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import { NmorphTableModelType } from './type';
|
|
3
|
-
interface
|
|
3
|
+
interface INmorphProps {
|
|
4
4
|
modelValue?: NmorphTableModelType;
|
|
5
5
|
stretch?: 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
|
modelValue: number;
|
|
9
9
|
stretch: boolean;
|
|
10
10
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
11
11
|
"update:model-value": (value: NmorphTableModelType) => void;
|
|
12
12
|
"tab-change": (value: NmorphTableModelType) => void;
|
|
13
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
13
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
14
14
|
modelValue: number;
|
|
15
15
|
stretch: boolean;
|
|
16
16
|
}>>> & {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
2
|
+
import { INmorphTabPaneProps } from '../../type';
|
|
3
|
+
interface INmorphProps extends INmorphTabPaneProps {
|
|
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
|
label: string;
|
|
7
7
|
disabled: boolean;
|
|
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
|
label: string;
|
|
10
10
|
disabled: boolean;
|
|
11
11
|
}>>>, {
|
|
12
|
-
label: string;
|
|
13
12
|
disabled: boolean;
|
|
13
|
+
label: string;
|
|
14
14
|
}, {}>, {
|
|
15
15
|
label?(_: {}): any;
|
|
16
16
|
default?(_: {}): any;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
export type NmorphTableModelType = string | number;
|
|
3
|
-
export interface
|
|
3
|
+
export interface INmorphTabPaneProps {
|
|
4
4
|
label?: string;
|
|
5
5
|
name: string;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
}
|
|
8
|
-
export interface
|
|
9
|
-
tabsData: Ref<
|
|
8
|
+
export interface INmorphTabsDataProvider {
|
|
9
|
+
tabsData: Ref<INmorphTabPaneProps[]>;
|
|
10
10
|
tabsIdentifier: string;
|
|
11
11
|
}
|