@nmorph/nmorph-ui-kit 0.0.1 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +3908 -3926
- package/dist/style.css +1 -1
- package/dist/styles/base/_animation.scss +8 -0
- package/dist/styles/base/_basic.scss +43 -0
- package/dist/styles/base/_colors.scss +23 -22
- package/dist/styles/base/_common-mixins.scss +12 -5
- package/dist/styles/base/_dimensions.scss +18 -8
- package/dist/styles/base/_histoire.scss +1 -1
- package/dist/styles/base/_theme-mixin.scss +16 -14
- package/dist/styles/base/_typography.scss +29 -132
- package/dist/styles/base/style.scss +3 -7
- package/dist/styles/main.scss +1 -2
- package/dist/types/components/inputs/checkbox/nmorph-checkbox/NmorphCheckbox.vue.d.ts +7 -4
- package/dist/types/components/inputs/checkbox/nmorph-checkbox-group/NmorphCheckboxGroup.vue.d.ts +9 -27
- package/dist/types/components/inputs/checkbox/types.d.ts +6 -3
- package/dist/types/components/inputs/nmorph-autocomplete/NmorphAutocomplete.vue.d.ts +72 -0
- package/dist/types/components/inputs/nmorph-autocomplete/types.d.ts +5 -0
- package/dist/types/components/inputs/nmorph-clear-button/NmorphClearButton.vue.d.ts +7 -0
- package/dist/types/components/inputs/nmorph-date-picker/NmorphDatePicker.vue.d.ts +70 -0
- package/dist/types/components/inputs/nmorph-date-picker/components/nmorph-date-picker-content/NmorphDatePickerContent.vue.d.ts +40 -0
- package/dist/types/components/inputs/nmorph-date-picker/components/nmorph-date-picker-header/NmorphDatePickerHeader.vue.d.ts +43 -0
- package/dist/types/components/inputs/nmorph-date-picker/components/nmorph-year-month-picker/NmorphYearMonthPicker.vue.d.ts +38 -0
- package/dist/types/components/inputs/nmorph-date-picker/components/types.d.ts +7 -0
- package/dist/types/components/inputs/nmorph-file-upload/NmorphFileUpload.vue.d.ts +19 -8
- 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 +13 -28
- package/dist/types/components/inputs/nmorph-select/NmorphSelect.vue.d.ts +26 -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 -6
- package/dist/types/components/inputs/nmorph-text-input/NmorphTextInput.vue.d.ts +15 -29
- package/dist/types/components/inputs/nmorph-time-picker/NmorphTimePicker.vue.d.ts +65 -0
- package/dist/types/components/inputs/nmorph-time-picker/components/NmorphTimeRoller.vue.d.ts +46 -0
- package/dist/types/components/inputs/nmorph-time-picker/types.d.ts +3 -0
- package/dist/types/components/inputs/nmorph-time-picker/utils.d.ts +3 -0
- package/dist/types/components/inputs/radio/nmorph-radio/NmorphRadio.vue.d.ts +48 -0
- package/dist/types/components/inputs/radio/nmorph-radio-group/NmorphRadioGroup.vue.d.ts +12 -25
- package/dist/types/components/inputs/radio/types.d.ts +5 -2
- package/dist/types/components/nmorph-alert/NmorphAlert.vue.d.ts +67 -0
- package/dist/types/components/nmorph-alert/types.d.ts +6 -0
- package/dist/types/components/nmorph-avatar/NmorphAvatar.vue.d.ts +62 -0
- package/dist/types/components/nmorph-avatar/type.d.ts +1 -0
- package/dist/types/components/nmorph-backtop/NmorphBacktop.vue.d.ts +48 -0
- package/dist/types/components/nmorph-badge/NmorphBadge.vue.d.ts +60 -0
- package/dist/types/components/nmorph-breadcrumb/NmorphBreadcrumb.vue.d.ts +36 -0
- package/dist/types/components/nmorph-breadcrumb/components/nmorph-breadcrumb-item/NmorphBreadcrumbItem.vue.d.ts +40 -0
- package/dist/types/components/nmorph-breadcrumb/types.d.ts +13 -0
- package/dist/types/components/nmorph-button/NmorphButton.vue.d.ts +15 -22
- package/dist/types/components/nmorph-calendar/NmorphCalendar.vue.d.ts +75 -0
- package/dist/types/components/nmorph-calendar/components/nmorph-calendar-header/NmorphCalendarHeader.vue.d.ts +42 -0
- package/dist/types/components/nmorph-calendar/locale.d.ts +1 -0
- package/dist/types/components/nmorph-calendar/types.d.ts +12 -0
- package/dist/types/components/nmorph-calendar/utils.d.ts +9 -0
- package/dist/types/components/nmorph-card/NmorphCard.vue.d.ts +7 -7
- package/dist/types/components/nmorph-carousel/NmorphCarousel.vue.d.ts +39 -2
- package/dist/types/components/nmorph-carousel/components/nmorph-carousel-item/NmorphCarouselItem.vue.d.ts +30 -0
- package/dist/types/components/nmorph-carousel/types.d.ts +5 -0
- package/dist/types/components/nmorph-collapse/NmorphCollapse.vue.d.ts +42 -0
- package/dist/types/components/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.d.ts +55 -0
- package/dist/types/components/nmorph-collapse/types.d.ts +9 -0
- package/dist/types/components/nmorph-dialog/NmorphDialog.vue.d.ts +47 -0
- package/dist/types/components/{inputs/common/NmorphValidationIcon.vue.d.ts → nmorph-divider/NmorphDivider.vue.d.ts} +8 -8
- package/dist/types/components/nmorph-divider/types.d.ts +1 -0
- package/dist/types/components/nmorph-dropdown/NmorphDropdown.vue.d.ts +55 -0
- package/dist/types/components/nmorph-form/NmorphForm.vue.d.ts +56 -0
- package/dist/types/components/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.d.ts +58 -0
- package/dist/types/components/nmorph-form/components/nmorph-form-item/components/index.d.ts +3 -0
- package/dist/types/components/nmorph-form/components/nmorph-form-item/components/nmorph-error-box/NmorphErrorBox.vue.d.ts +38 -0
- package/dist/types/components/nmorph-form/components/nmorph-form-item/components/nmorph-validation-icon/NmorphValidationIcon.vue.d.ts +30 -0
- package/dist/types/components/nmorph-form/types.d.ts +7 -0
- package/dist/types/components/nmorph-icon/NmorphIcon.vue.d.ts +17 -17
- package/dist/types/components/nmorph-icon/NmorphIconsMap.d.ts +2 -4
- package/dist/types/components/nmorph-icon/types.d.ts +3 -3
- package/dist/types/components/nmorph-image/NmorphImage.vue.d.ts +10 -12
- 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 +13 -18
- package/dist/types/components/nmorph-link/types.d.ts +6 -0
- package/dist/types/components/nmorph-overlay/NmorphOverlay.vue.d.ts +5 -4
- package/dist/types/components/nmorph-pagination/NmorphPagination.vue.d.ts +56 -0
- package/dist/types/components/nmorph-progress/NmorphProgress.vue.d.ts +66 -0
- package/dist/types/components/nmorph-progress/types.d.ts +6 -0
- package/dist/types/components/nmorph-scroll/NmorphScroll.vue.d.ts +63 -0
- package/dist/types/components/nmorph-scroll/types.d.ts +7 -0
- package/dist/types/components/nmorph-skeleton/NmorphSkeleton.vue.d.ts +45 -0
- package/dist/types/components/{nmorph-error-box/NmorphErrorBox.vue.d.ts → nmorph-skeleton/components/NmorphSkeletonItem.vue.d.ts} +8 -12
- package/dist/types/components/nmorph-skeleton/types.d.ts +1 -0
- package/dist/types/components/nmorph-sort-button/NmorphSortButton.vue.d.ts +28 -0
- package/dist/types/components/nmorph-table/NmorphTable.vue.d.ts +59 -0
- package/dist/types/components/nmorph-table/components/nmorph-table-cell/NmorphTableCell.vue.d.ts +30 -0
- package/dist/types/components/nmorph-table/components/nmorph-table-column/NmorphTableColumn.vue.d.ts +48 -0
- package/dist/types/components/nmorph-table/types.d.ts +21 -0
- package/dist/types/components/nmorph-tabs/NmorphTabs.vue.d.ts +47 -0
- package/dist/types/components/nmorph-tabs/components/nmorph-tab-pane/NmorphTabPane.vue.d.ts +40 -0
- package/dist/types/components/nmorph-tabs/type.d.ts +11 -0
- package/dist/types/components/nmorph-tabs/utils.d.ts +3 -0
- package/dist/types/components/nmorph-tag/NmorphTag.vue.d.ts +8 -8
- package/dist/types/components/nmorph-tooltip/NmorphTooltip.vue.d.ts +8 -26
- package/dist/types/components.d.ts +32 -3
- package/dist/types/histoire.setup.d.ts +0 -2
- package/dist/types/hooks/index.d.ts +4 -0
- package/dist/types/hooks/useEventManager.d.ts +1 -0
- package/dist/types/hooks/useFieldValidation.d.ts +53 -0
- package/dist/types/hooks/useFormValidation.d.ts +10 -0
- package/dist/types/hooks/usePlacement.d.ts +17 -0
- package/dist/types/types/common.d.ts +77 -0
- package/dist/types/utils/create-modifiers.d.ts +4 -1
- package/dist/types/utils/deep-clone.d.ts +1 -0
- package/dist/types/utils/generateUUID.d.ts +1 -0
- package/dist/types/utils/index.d.ts +3 -0
- package/dist/types/utils/is-string-html.d.ts +1 -0
- 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/styles/base/_transition.scss +0 -6
- package/dist/styles/packages/style.scss +0 -0
- package/dist/types/components/inputs/nmorph-select-option/types/index.d.ts +0 -1
- package/dist/types/hooks/useValidation.d.ts +0 -55
- package/dist/types/types/common.enums.d.ts +0 -46
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
interface INmorphProps {
|
|
3
|
+
modelValue?: boolean;
|
|
4
|
+
title?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
7
|
+
modelValue: boolean;
|
|
8
|
+
title: string;
|
|
9
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
10
|
+
"on-close": () => void;
|
|
11
|
+
"update:modelValue": (value: boolean) => void;
|
|
12
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
13
|
+
modelValue: boolean;
|
|
14
|
+
title: string;
|
|
15
|
+
}>>> & {
|
|
16
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
17
|
+
"onOn-close"?: (() => any) | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
modelValue: boolean;
|
|
20
|
+
title: string;
|
|
21
|
+
}, {}>, {
|
|
22
|
+
header?(_: {}): any;
|
|
23
|
+
default?(_: {}): any;
|
|
24
|
+
}>;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
27
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
28
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
29
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
30
|
+
} : {
|
|
31
|
+
type: PropType<T[K]>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
type __VLS_WithDefaults<P, D> = {
|
|
36
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
37
|
+
default: D[K];
|
|
38
|
+
}> : P[K];
|
|
39
|
+
};
|
|
40
|
+
type __VLS_Prettify<T> = {
|
|
41
|
+
[K in keyof T]: T[K];
|
|
42
|
+
} & {};
|
|
43
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
44
|
+
new (): {
|
|
45
|
+
$slots: S;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { NmorphDirectionType } from './types';
|
|
3
|
+
interface INmorphProps {
|
|
4
|
+
direction?: NmorphDirectionType;
|
|
5
5
|
}
|
|
6
|
-
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
7
|
-
|
|
8
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
9
|
-
|
|
6
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
7
|
+
direction: string;
|
|
8
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
9
|
+
direction: string;
|
|
10
10
|
}>>>, {
|
|
11
|
-
|
|
11
|
+
direction: NmorphDirectionType;
|
|
12
12
|
}, {}>;
|
|
13
13
|
export default _default;
|
|
14
14
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type NmorphDirectionType = 'vertical' | 'horizontal';
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { NmorphDomElementType } from '../../types/common';
|
|
3
|
+
interface INmorphProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
relativeElement: NmorphDomElementType;
|
|
6
|
+
width?: number;
|
|
7
|
+
xOffset?: number;
|
|
8
|
+
yOffset?: number;
|
|
9
|
+
fillWidth?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
12
|
+
width: number;
|
|
13
|
+
xOffset: number;
|
|
14
|
+
yOffset: number;
|
|
15
|
+
fillWidth: boolean;
|
|
16
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
17
|
+
"on-outside-click": () => void;
|
|
18
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
19
|
+
width: number;
|
|
20
|
+
xOffset: number;
|
|
21
|
+
yOffset: number;
|
|
22
|
+
fillWidth: boolean;
|
|
23
|
+
}>>> & {
|
|
24
|
+
"onOn-outside-click"?: (() => any) | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
width: number;
|
|
27
|
+
xOffset: number;
|
|
28
|
+
yOffset: number;
|
|
29
|
+
fillWidth: boolean;
|
|
30
|
+
}, {}>, {
|
|
31
|
+
default?(_: {}): any;
|
|
32
|
+
}>;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
35
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
36
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
37
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
38
|
+
} : {
|
|
39
|
+
type: PropType<T[K]>;
|
|
40
|
+
required: true;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
type __VLS_WithDefaults<P, D> = {
|
|
44
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
45
|
+
default: D[K];
|
|
46
|
+
}> : P[K];
|
|
47
|
+
};
|
|
48
|
+
type __VLS_Prettify<T> = {
|
|
49
|
+
[K in keyof T]: T[K];
|
|
50
|
+
} & {};
|
|
51
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
52
|
+
new (): {
|
|
53
|
+
$slots: S;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, Ref, ComputedRef, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { NmorphFormValueType } from './types';
|
|
3
|
+
interface INmorphProps {
|
|
4
|
+
value: NmorphFormValueType;
|
|
5
|
+
validateImmediately?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
8
|
+
validateImmediately: boolean;
|
|
9
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
10
|
+
formValidator: (val: {
|
|
11
|
+
fields: Record<string, {
|
|
12
|
+
touched: Ref<boolean>;
|
|
13
|
+
valid: ComputedRef<boolean>;
|
|
14
|
+
errors: Ref<string[]>;
|
|
15
|
+
validate: () => null | undefined;
|
|
16
|
+
}>;
|
|
17
|
+
}) => void;
|
|
18
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
19
|
+
validateImmediately: boolean;
|
|
20
|
+
}>>> & {
|
|
21
|
+
onFormValidator?: ((val: {
|
|
22
|
+
fields: Record<string, {
|
|
23
|
+
touched: Ref<boolean>;
|
|
24
|
+
valid: ComputedRef<boolean>;
|
|
25
|
+
errors: Ref<string[]>;
|
|
26
|
+
validate: () => null | undefined;
|
|
27
|
+
}>;
|
|
28
|
+
}) => any) | undefined;
|
|
29
|
+
}, {
|
|
30
|
+
validateImmediately: boolean;
|
|
31
|
+
}, {}>, {
|
|
32
|
+
default?(_: {}): any;
|
|
33
|
+
}>;
|
|
34
|
+
export default _default;
|
|
35
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
36
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
37
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
38
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
39
|
+
} : {
|
|
40
|
+
type: PropType<T[K]>;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
type __VLS_WithDefaults<P, D> = {
|
|
45
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
46
|
+
default: D[K];
|
|
47
|
+
}> : P[K];
|
|
48
|
+
};
|
|
49
|
+
type __VLS_Prettify<T> = {
|
|
50
|
+
[K in keyof T]: T[K];
|
|
51
|
+
} & {};
|
|
52
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
53
|
+
new (): {
|
|
54
|
+
$slots: S;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { NmorphComponentHeight } from '../../../../types/common';
|
|
3
|
+
interface INmorphProps {
|
|
4
|
+
/**
|
|
5
|
+
* The ID of the form field used to bind to validation data.
|
|
6
|
+
* @type {string}
|
|
7
|
+
*/
|
|
8
|
+
id: string;
|
|
9
|
+
height?: keyof typeof NmorphComponentHeight;
|
|
10
|
+
label?: string;
|
|
11
|
+
showValidationIcon?: boolean;
|
|
12
|
+
staticErrorBoxSpace?: boolean;
|
|
13
|
+
validate?: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
16
|
+
label: string;
|
|
17
|
+
height: string;
|
|
18
|
+
showValidationIcon: boolean;
|
|
19
|
+
staticErrorBoxSpace: boolean;
|
|
20
|
+
validate: boolean;
|
|
21
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
22
|
+
label: string;
|
|
23
|
+
height: string;
|
|
24
|
+
showValidationIcon: boolean;
|
|
25
|
+
staticErrorBoxSpace: boolean;
|
|
26
|
+
validate: boolean;
|
|
27
|
+
}>>>, {
|
|
28
|
+
label: string;
|
|
29
|
+
height: "thick" | "default" | "thin";
|
|
30
|
+
showValidationIcon: boolean;
|
|
31
|
+
staticErrorBoxSpace: boolean;
|
|
32
|
+
validate: boolean;
|
|
33
|
+
}, {}>, {
|
|
34
|
+
default?(_: {}): any;
|
|
35
|
+
}>;
|
|
36
|
+
export default _default;
|
|
37
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
38
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
39
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
40
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
41
|
+
} : {
|
|
42
|
+
type: PropType<T[K]>;
|
|
43
|
+
required: true;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
type __VLS_WithDefaults<P, D> = {
|
|
47
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
48
|
+
default: D[K];
|
|
49
|
+
}> : P[K];
|
|
50
|
+
};
|
|
51
|
+
type __VLS_Prettify<T> = {
|
|
52
|
+
[K in keyof T]: T[K];
|
|
53
|
+
} & {};
|
|
54
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
55
|
+
new (): {
|
|
56
|
+
$slots: S;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { NmorphComponentHeight } from '../../../../../../types/common';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, Ref } from 'vue';
|
|
3
|
+
interface INmorphProps {
|
|
4
|
+
height?: keyof typeof NmorphComponentHeight;
|
|
5
|
+
errors?: string[] | Ref<string[]>;
|
|
6
|
+
staticHeight?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
9
|
+
height: string;
|
|
10
|
+
errors: () => never[];
|
|
11
|
+
staticHeight: boolean;
|
|
12
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
13
|
+
height: string;
|
|
14
|
+
errors: () => never[];
|
|
15
|
+
staticHeight: boolean;
|
|
16
|
+
}>>>, {
|
|
17
|
+
height: "thick" | "default" | "thin";
|
|
18
|
+
errors: string[] | Ref<string[]>;
|
|
19
|
+
staticHeight: boolean;
|
|
20
|
+
}, {}>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
23
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
24
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
25
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
26
|
+
} : {
|
|
27
|
+
type: PropType<T[K]>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
type __VLS_WithDefaults<P, D> = {
|
|
32
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
33
|
+
default: D[K];
|
|
34
|
+
}> : P[K];
|
|
35
|
+
};
|
|
36
|
+
type __VLS_Prettify<T> = {
|
|
37
|
+
[K in keyof T]: T[K];
|
|
38
|
+
} & {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, ComputedRef } from 'vue';
|
|
2
|
+
interface INmorphProps {
|
|
3
|
+
valid: boolean | ComputedRef<boolean>;
|
|
4
|
+
show?: boolean | ComputedRef<boolean>;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
7
|
+
show: boolean;
|
|
8
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
9
|
+
show: boolean;
|
|
10
|
+
}>>>, {
|
|
11
|
+
show: boolean | ComputedRef<boolean>;
|
|
12
|
+
}, {}>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
16
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
17
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
18
|
+
} : {
|
|
19
|
+
type: PropType<T[K]>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
type __VLS_WithDefaults<P, D> = {
|
|
24
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
25
|
+
default: D[K];
|
|
26
|
+
}> : P[K];
|
|
27
|
+
};
|
|
28
|
+
type __VLS_Prettify<T> = {
|
|
29
|
+
[K in keyof T]: T[K];
|
|
30
|
+
} & {};
|
|
@@ -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,28 +1,28 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
4
|
-
name?:
|
|
5
|
-
size?: keyof typeof
|
|
2
|
+
import { NmorphIconName, NmorphIconSize } from './types';
|
|
3
|
+
interface INmorphProps {
|
|
4
|
+
name?: NmorphIconName;
|
|
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<
|
|
11
|
-
name:
|
|
12
|
-
size:
|
|
13
|
-
width:
|
|
14
|
-
height:
|
|
15
|
-
path:
|
|
16
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
17
|
-
name:
|
|
18
|
-
size:
|
|
19
|
-
width:
|
|
20
|
-
height:
|
|
21
|
-
path:
|
|
10
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
11
|
+
name: undefined;
|
|
12
|
+
size: string;
|
|
13
|
+
width: undefined;
|
|
14
|
+
height: undefined;
|
|
15
|
+
path: undefined;
|
|
16
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
17
|
+
name: undefined;
|
|
18
|
+
size: string;
|
|
19
|
+
width: undefined;
|
|
20
|
+
height: undefined;
|
|
21
|
+
path: undefined;
|
|
22
22
|
}>>>, {
|
|
23
23
|
path: string;
|
|
24
|
-
name: IconName;
|
|
25
24
|
height: string;
|
|
25
|
+
name: NmorphIconName;
|
|
26
26
|
size: "small" | "medium" | "large";
|
|
27
27
|
width: string;
|
|
28
28
|
}, {}>, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { NmorphIconList } from '../../types/common
|
|
2
|
-
export declare enum
|
|
1
|
+
import { NmorphIconList } from '../../types/common';
|
|
2
|
+
export declare enum NmorphIconSize {
|
|
3
3
|
small = "small",
|
|
4
4
|
medium = "medium",
|
|
5
5
|
large = "large"
|
|
6
6
|
}
|
|
7
|
-
export type
|
|
7
|
+
export type NmorphIconName = keyof typeof NmorphIconList | '';
|
|
@@ -1,35 +1,33 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
contain = "contain",
|
|
5
|
-
cover = "cover",
|
|
6
|
-
none = "none",
|
|
7
|
-
'scale-down' = "scale-down"
|
|
8
|
-
}
|
|
9
|
-
interface IProps {
|
|
2
|
+
import { NmorphImageFit } from '../../types/common';
|
|
3
|
+
interface INmorphProps {
|
|
10
4
|
src: string;
|
|
11
|
-
fit?: keyof typeof
|
|
5
|
+
fit?: keyof typeof NmorphImageFit;
|
|
12
6
|
alt?: string;
|
|
13
7
|
loadingText?: string;
|
|
14
8
|
loadFailedText?: string;
|
|
9
|
+
srcset?: string;
|
|
15
10
|
}
|
|
16
|
-
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
17
12
|
fit: string;
|
|
18
13
|
closeOnOutsideClick: boolean;
|
|
19
14
|
alt: string;
|
|
20
15
|
loadingText: string;
|
|
21
16
|
loadFailedText: string;
|
|
22
|
-
|
|
17
|
+
srcset: string;
|
|
18
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
23
19
|
fit: string;
|
|
24
20
|
closeOnOutsideClick: boolean;
|
|
25
21
|
alt: string;
|
|
26
22
|
loadingText: string;
|
|
27
23
|
loadFailedText: string;
|
|
24
|
+
srcset: string;
|
|
28
25
|
}>>>, {
|
|
29
|
-
fit: "fill" | "contain" | "cover" | "none" | "scale-down";
|
|
30
26
|
alt: string;
|
|
27
|
+
fit: "fill" | "contain" | "cover" | "none" | "scale-down";
|
|
31
28
|
loadingText: string;
|
|
32
29
|
loadFailedText: string;
|
|
30
|
+
srcset: string;
|
|
33
31
|
}, {}>, {
|
|
34
32
|
loading?(_: {}): any;
|
|
35
33
|
error?(_: {}): any;
|
|
@@ -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,31 +1,26 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
parent = "_parent",
|
|
8
|
-
top = "_top"
|
|
9
|
-
}
|
|
10
|
-
interface IProps {
|
|
11
|
-
color?: keyof typeof Color;
|
|
2
|
+
import { NmorphIconName } from '../nmorph-icon/types';
|
|
3
|
+
import { NmorphColor } from '../../types/common';
|
|
4
|
+
import { NmorphLinkTarget } from './types';
|
|
5
|
+
interface INmorphProps {
|
|
6
|
+
color?: keyof typeof NmorphColor;
|
|
12
7
|
underline?: boolean;
|
|
13
8
|
href?: string;
|
|
14
9
|
text?: string;
|
|
15
|
-
iconName?:
|
|
16
|
-
target?: keyof typeof
|
|
10
|
+
iconName?: NmorphIconName;
|
|
11
|
+
target?: keyof typeof NmorphLinkTarget;
|
|
17
12
|
disabled?: boolean;
|
|
18
13
|
}
|
|
19
|
-
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
20
|
-
color:
|
|
14
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
15
|
+
color: NmorphColor;
|
|
21
16
|
href: string;
|
|
22
17
|
underline: boolean;
|
|
23
18
|
iconName: string;
|
|
24
19
|
text: string;
|
|
25
20
|
target: string;
|
|
26
21
|
disabled: boolean;
|
|
27
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
28
|
-
color:
|
|
22
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
23
|
+
color: NmorphColor;
|
|
29
24
|
href: string;
|
|
30
25
|
underline: boolean;
|
|
31
26
|
iconName: string;
|
|
@@ -36,10 +31,10 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
36
31
|
disabled: boolean;
|
|
37
32
|
text: string;
|
|
38
33
|
color: "accent" | "success" | "error" | "warning";
|
|
39
|
-
target: "
|
|
34
|
+
target: "top" | "self" | "blank" | "parent";
|
|
40
35
|
underline: boolean;
|
|
41
36
|
href: string;
|
|
42
|
-
iconName:
|
|
37
|
+
iconName: NmorphIconName;
|
|
43
38
|
}, {}>, {
|
|
44
39
|
prepend?(_: {}): any;
|
|
45
40
|
default?(_: {}): any;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
interface
|
|
3
|
-
show
|
|
2
|
+
interface INmorphProps {
|
|
3
|
+
show: boolean;
|
|
4
4
|
outsideClickEmitEvent?: boolean;
|
|
5
|
+
transparent?: boolean;
|
|
5
6
|
}
|
|
6
|
-
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
7
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
7
8
|
show: boolean;
|
|
8
9
|
outsideClickEmitEvent: boolean;
|
|
9
10
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
10
11
|
"on-outside-click": () => void;
|
|
11
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
12
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
12
13
|
show: boolean;
|
|
13
14
|
outsideClickEmitEvent: boolean;
|
|
14
15
|
}>>> & {
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
interface INmorphProps {
|
|
3
|
+
total: number;
|
|
4
|
+
range?: [number, number];
|
|
5
|
+
modelValue?: number;
|
|
6
|
+
pagerCount?: number;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
hideOnSinglePage?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
11
|
+
range: () => number[];
|
|
12
|
+
modelValue: number;
|
|
13
|
+
pagerCount: number;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
hideOnSinglePage: boolean;
|
|
16
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
17
|
+
"prev-click": (currentPage: number) => void;
|
|
18
|
+
"next-click": (currentPage: number) => void;
|
|
19
|
+
"update:modelValue": (currentPage: number) => void;
|
|
20
|
+
"update:range": (range: [number, number]) => void;
|
|
21
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
22
|
+
range: () => number[];
|
|
23
|
+
modelValue: number;
|
|
24
|
+
pagerCount: number;
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
hideOnSinglePage: boolean;
|
|
27
|
+
}>>> & {
|
|
28
|
+
"onUpdate:modelValue"?: ((currentPage: number) => any) | undefined;
|
|
29
|
+
"onPrev-click"?: ((currentPage: number) => any) | undefined;
|
|
30
|
+
"onNext-click"?: ((currentPage: number) => any) | undefined;
|
|
31
|
+
"onUpdate:range"?: ((range: [number, number]) => any) | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
modelValue: number;
|
|
35
|
+
range: [number, number];
|
|
36
|
+
pagerCount: number;
|
|
37
|
+
hideOnSinglePage: boolean;
|
|
38
|
+
}, {}>;
|
|
39
|
+
export default _default;
|
|
40
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
41
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
42
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
43
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
44
|
+
} : {
|
|
45
|
+
type: PropType<T[K]>;
|
|
46
|
+
required: true;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
type __VLS_WithDefaults<P, D> = {
|
|
50
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
51
|
+
default: D[K];
|
|
52
|
+
}> : P[K];
|
|
53
|
+
};
|
|
54
|
+
type __VLS_Prettify<T> = {
|
|
55
|
+
[K in keyof T]: T[K];
|
|
56
|
+
} & {};
|