@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
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, Ref } from 'vue';
|
|
2
|
+
import { INmorphCheckboxOption } from '../types';
|
|
3
|
+
import { NmorphDomElementType } from '../../../../types/common';
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphCheckboxOption>, {
|
|
4
5
|
disabled: boolean;
|
|
5
6
|
modelValue: boolean;
|
|
6
7
|
label: string;
|
|
7
8
|
styleType: string;
|
|
8
9
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
10
|
+
inputDOMRef: (val: Ref<NmorphDomElementType>) => void;
|
|
9
11
|
"update:modelValue": (val: boolean) => void;
|
|
10
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
12
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphCheckboxOption>, {
|
|
11
13
|
disabled: boolean;
|
|
12
14
|
modelValue: boolean;
|
|
13
15
|
label: string;
|
|
14
16
|
styleType: string;
|
|
15
17
|
}>>> & {
|
|
18
|
+
onInputDOMRef?: ((val: Ref<NmorphDomElementType>) => any) | undefined;
|
|
16
19
|
"onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
|
|
17
20
|
}, {
|
|
18
21
|
disabled: boolean;
|
package/dist/types/components/inputs/checkbox/nmorph-checkbox-group/NmorphCheckboxGroup.vue.d.ts
CHANGED
|
@@ -1,48 +1,30 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
interface IProps extends CommonInputProps {
|
|
2
|
+
import { INmorphCommonInputProps, NmorphComponentDirection } from '../../../../types/common';
|
|
3
|
+
import { INmorphCheckboxOption, NmorphCheckboxStyleType } from '../types';
|
|
4
|
+
interface INmorphProps extends INmorphCommonInputProps {
|
|
6
5
|
modelValue: string[];
|
|
7
|
-
options
|
|
8
|
-
styleType?: keyof typeof
|
|
9
|
-
direction?: keyof typeof
|
|
10
|
-
rules?: ICheckboxGroupValidationRule[];
|
|
11
|
-
showValidationIcon?: boolean;
|
|
12
|
-
staticErrorBoxSpace?: boolean;
|
|
6
|
+
options?: INmorphCheckboxOption[];
|
|
7
|
+
styleType?: keyof typeof NmorphCheckboxStyleType;
|
|
8
|
+
direction?: keyof typeof NmorphComponentDirection;
|
|
13
9
|
}
|
|
14
|
-
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
10
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
15
11
|
modelValue: () => never[];
|
|
16
12
|
options: () => never[];
|
|
17
13
|
styleType: string;
|
|
18
14
|
direction: string;
|
|
19
|
-
rules: () => never[];
|
|
20
|
-
showValidationIcon: boolean;
|
|
21
|
-
staticErrorBoxSpace: boolean;
|
|
22
|
-
fill: boolean;
|
|
23
|
-
label: string;
|
|
24
15
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
25
16
|
"update:modelValue": (val: string[]) => void;
|
|
26
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
17
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
27
18
|
modelValue: () => never[];
|
|
28
19
|
options: () => never[];
|
|
29
20
|
styleType: string;
|
|
30
21
|
direction: string;
|
|
31
|
-
rules: () => never[];
|
|
32
|
-
showValidationIcon: boolean;
|
|
33
|
-
staticErrorBoxSpace: boolean;
|
|
34
|
-
fill: boolean;
|
|
35
|
-
label: string;
|
|
36
22
|
}>>> & {
|
|
37
23
|
"onUpdate:modelValue"?: ((val: string[]) => any) | undefined;
|
|
38
24
|
}, {
|
|
39
25
|
modelValue: string[];
|
|
40
26
|
styleType: "checkbox-style" | "button-style";
|
|
41
|
-
|
|
42
|
-
rules: ICheckboxGroupValidationRule[];
|
|
43
|
-
showValidationIcon: boolean;
|
|
44
|
-
staticErrorBoxSpace: boolean;
|
|
45
|
-
options: ICheckboxOption[];
|
|
27
|
+
options: INmorphCheckboxOption[];
|
|
46
28
|
direction: "row" | "column";
|
|
47
29
|
}, {}>, {
|
|
48
30
|
default?(_: {}): any;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export interface INmorphCheckboxOption {
|
|
2
3
|
id: string;
|
|
3
4
|
disabled?: boolean;
|
|
4
5
|
modelValue?: boolean;
|
|
5
6
|
label?: string;
|
|
6
|
-
styleType?: keyof typeof
|
|
7
|
+
styleType?: keyof typeof NmorphCheckboxStyleType;
|
|
7
8
|
}
|
|
8
|
-
export declare enum
|
|
9
|
+
export declare enum NmorphCheckboxStyleType {
|
|
9
10
|
'checkbox-style' = "checkbox-style",
|
|
10
11
|
'button-style' = "button-style"
|
|
11
12
|
}
|
|
13
|
+
export type NmorphCheckboxGroupSelectedValueInjectionType = Ref<string[]>;
|
|
14
|
+
export type NmorphCheckboxGroupChangeCheckboxValueHandlerInjectionType = (value: string, currentState: string[]) => void;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { INmorphCommonInputProps } from '../../../types/common';
|
|
3
|
+
import { NmorphAutocompleteActionCallbackType, INmorphAutocompleteListItem } from './types';
|
|
4
|
+
interface INmorphProps extends INmorphCommonInputProps {
|
|
5
|
+
modelValue?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
clearable?: boolean;
|
|
8
|
+
list: INmorphAutocompleteListItem[];
|
|
9
|
+
actionCallback?: NmorphAutocompleteActionCallbackType;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
12
|
+
modelValue: string;
|
|
13
|
+
placeholder: string;
|
|
14
|
+
fill: boolean;
|
|
15
|
+
height: string;
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
clearable: boolean;
|
|
18
|
+
list: () => never[];
|
|
19
|
+
actionCallback: undefined;
|
|
20
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
21
|
+
"update:modelValue": (value: string) => void;
|
|
22
|
+
select: (value: unknown) => void;
|
|
23
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
24
|
+
modelValue: string;
|
|
25
|
+
placeholder: string;
|
|
26
|
+
fill: boolean;
|
|
27
|
+
height: string;
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
clearable: boolean;
|
|
30
|
+
list: () => never[];
|
|
31
|
+
actionCallback: undefined;
|
|
32
|
+
}>>> & {
|
|
33
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
34
|
+
onSelect?: ((value: unknown) => any) | undefined;
|
|
35
|
+
}, {
|
|
36
|
+
fill: boolean;
|
|
37
|
+
disabled: boolean;
|
|
38
|
+
modelValue: string;
|
|
39
|
+
placeholder: string;
|
|
40
|
+
clearable: boolean;
|
|
41
|
+
height: "thick" | "default" | "thin";
|
|
42
|
+
list: INmorphAutocompleteListItem[];
|
|
43
|
+
actionCallback: NmorphAutocompleteActionCallbackType;
|
|
44
|
+
}, {}>, {
|
|
45
|
+
loader?(_: {}): any;
|
|
46
|
+
default?(_: {
|
|
47
|
+
scope: INmorphAutocompleteListItem;
|
|
48
|
+
}): any;
|
|
49
|
+
}>;
|
|
50
|
+
export default _default;
|
|
51
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
52
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
53
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
54
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
55
|
+
} : {
|
|
56
|
+
type: PropType<T[K]>;
|
|
57
|
+
required: true;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
type __VLS_WithDefaults<P, D> = {
|
|
61
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
62
|
+
default: D[K];
|
|
63
|
+
}> : P[K];
|
|
64
|
+
};
|
|
65
|
+
type __VLS_Prettify<T> = {
|
|
66
|
+
[K in keyof T]: T[K];
|
|
67
|
+
} & {};
|
|
68
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
69
|
+
new (): {
|
|
70
|
+
$slots: S;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
3
|
+
clear: () => void;
|
|
4
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<{}>> & {
|
|
5
|
+
onClear?: (() => any) | undefined;
|
|
6
|
+
}, {}, {}>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { INmorphCommonInputProps } from '../../../types/common';
|
|
3
|
+
import { NmorphSelectionDateType } from './components/types';
|
|
4
|
+
import { NmorphSelectedDateModelType } from '../../nmorph-calendar/types';
|
|
5
|
+
interface INmorphProps extends Omit<INmorphCommonInputProps, 'fill'> {
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
initialStartDate?: Date;
|
|
8
|
+
initialEndDate?: Date;
|
|
9
|
+
modelValue: NmorphSelectedDateModelType;
|
|
10
|
+
type?: keyof typeof NmorphSelectionDateType;
|
|
11
|
+
textSeparator?: string;
|
|
12
|
+
startDatePlaceholder?: string;
|
|
13
|
+
endDatePlaceholder?: string;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
height: string;
|
|
18
|
+
placeholder: string;
|
|
19
|
+
initialStartDate: () => Date;
|
|
20
|
+
initialEndDate: undefined;
|
|
21
|
+
modelValue: null;
|
|
22
|
+
type: string;
|
|
23
|
+
textSeparator: string;
|
|
24
|
+
startDatePlaceholder: string;
|
|
25
|
+
endDatePlaceholder: string;
|
|
26
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
27
|
+
"update:modelValue": (modelValue: NmorphSelectedDateModelType) => void;
|
|
28
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
height: string;
|
|
31
|
+
placeholder: string;
|
|
32
|
+
initialStartDate: () => Date;
|
|
33
|
+
initialEndDate: undefined;
|
|
34
|
+
modelValue: null;
|
|
35
|
+
type: string;
|
|
36
|
+
textSeparator: string;
|
|
37
|
+
startDatePlaceholder: string;
|
|
38
|
+
endDatePlaceholder: string;
|
|
39
|
+
}>>> & {
|
|
40
|
+
"onUpdate:modelValue"?: ((modelValue: NmorphSelectedDateModelType) => any) | undefined;
|
|
41
|
+
}, {
|
|
42
|
+
disabled: boolean;
|
|
43
|
+
modelValue: NmorphSelectedDateModelType;
|
|
44
|
+
type: "date" | "dates" | "daterange";
|
|
45
|
+
placeholder: string;
|
|
46
|
+
height: "thick" | "default" | "thin";
|
|
47
|
+
initialStartDate: Date;
|
|
48
|
+
initialEndDate: Date;
|
|
49
|
+
textSeparator: string;
|
|
50
|
+
startDatePlaceholder: string;
|
|
51
|
+
endDatePlaceholder: string;
|
|
52
|
+
}, {}>;
|
|
53
|
+
export default _default;
|
|
54
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
55
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
56
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
57
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
58
|
+
} : {
|
|
59
|
+
type: PropType<T[K]>;
|
|
60
|
+
required: true;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
type __VLS_WithDefaults<P, D> = {
|
|
64
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
65
|
+
default: D[K];
|
|
66
|
+
}> : P[K];
|
|
67
|
+
};
|
|
68
|
+
type __VLS_Prettify<T> = {
|
|
69
|
+
[K in keyof T]: T[K];
|
|
70
|
+
} & {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { NmorphSelectionDateType } from '../types';
|
|
3
|
+
import { NmorphDateType, NmorphSelectedDateModelType } from '../../../../nmorph-calendar/types';
|
|
4
|
+
interface INmorphProps {
|
|
5
|
+
initialDate?: Date;
|
|
6
|
+
selectedValues: NmorphSelectedDateModelType;
|
|
7
|
+
type?: keyof typeof NmorphSelectionDateType;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
10
|
+
initialDate: () => Date;
|
|
11
|
+
type: string;
|
|
12
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
13
|
+
"update-selected-value": (selectedValue: NmorphDateType) => void;
|
|
14
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
15
|
+
initialDate: () => Date;
|
|
16
|
+
type: string;
|
|
17
|
+
}>>> & {
|
|
18
|
+
"onUpdate-selected-value"?: ((selectedValue: NmorphDateType) => any) | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
type: "date" | "dates" | "daterange";
|
|
21
|
+
initialDate: Date;
|
|
22
|
+
}, {}>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
25
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
26
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
27
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
28
|
+
} : {
|
|
29
|
+
type: PropType<T[K]>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
type __VLS_WithDefaults<P, D> = {
|
|
34
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
35
|
+
default: D[K];
|
|
36
|
+
}> : P[K];
|
|
37
|
+
};
|
|
38
|
+
type __VLS_Prettify<T> = {
|
|
39
|
+
[K in keyof T]: T[K];
|
|
40
|
+
} & {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
interface INmorphProps {
|
|
3
|
+
date?: Date;
|
|
4
|
+
}
|
|
5
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
6
|
+
date: () => Date;
|
|
7
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
8
|
+
"prev-month": () => void;
|
|
9
|
+
"next-month": () => void;
|
|
10
|
+
"prev-year": () => void;
|
|
11
|
+
"next-year": () => void;
|
|
12
|
+
"change-year": () => void;
|
|
13
|
+
"change-month": () => void;
|
|
14
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
15
|
+
date: () => Date;
|
|
16
|
+
}>>> & {
|
|
17
|
+
"onPrev-month"?: (() => any) | undefined;
|
|
18
|
+
"onNext-month"?: (() => any) | undefined;
|
|
19
|
+
"onPrev-year"?: (() => any) | undefined;
|
|
20
|
+
"onNext-year"?: (() => any) | undefined;
|
|
21
|
+
"onChange-year"?: (() => any) | undefined;
|
|
22
|
+
"onChange-month"?: (() => any) | undefined;
|
|
23
|
+
}, {
|
|
24
|
+
date: Date;
|
|
25
|
+
}, {}>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
28
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
29
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
30
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
31
|
+
} : {
|
|
32
|
+
type: PropType<T[K]>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
type __VLS_WithDefaults<P, D> = {
|
|
37
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
38
|
+
default: D[K];
|
|
39
|
+
}> : P[K];
|
|
40
|
+
};
|
|
41
|
+
type __VLS_Prettify<T> = {
|
|
42
|
+
[K in keyof T]: T[K];
|
|
43
|
+
} & {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
interface INmorphProps {
|
|
3
|
+
currentDate: Date;
|
|
4
|
+
type?: 'year' | 'month';
|
|
5
|
+
}
|
|
6
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
7
|
+
type: string;
|
|
8
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
9
|
+
"update-year": (val: string) => void;
|
|
10
|
+
"update-month": (val: string) => void;
|
|
11
|
+
"back-to-years": () => void;
|
|
12
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
13
|
+
type: string;
|
|
14
|
+
}>>> & {
|
|
15
|
+
"onUpdate-year"?: ((val: string) => any) | undefined;
|
|
16
|
+
"onUpdate-month"?: ((val: string) => any) | undefined;
|
|
17
|
+
"onBack-to-years"?: (() => any) | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
type: "month" | "year";
|
|
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
|
+
} & {};
|
|
@@ -1,29 +1,40 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, Ref } from 'vue';
|
|
2
|
+
import { INmorphCustomFileData, NmorphResolutionType } from './types';
|
|
3
|
+
import { NmorphDomElementType } from '../../../types/common';
|
|
4
|
+
interface INmorphProps {
|
|
5
|
+
modelValue?: INmorphCustomFileData[];
|
|
4
6
|
disabled?: boolean;
|
|
5
7
|
multiple?: boolean;
|
|
6
|
-
allowedTypes?:
|
|
8
|
+
allowedTypes?: NmorphResolutionType[];
|
|
7
9
|
photoWithPreview?: boolean;
|
|
10
|
+
fill?: boolean;
|
|
8
11
|
}
|
|
9
|
-
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
13
|
+
modelValue: () => never[];
|
|
10
14
|
disabled: boolean;
|
|
11
15
|
multiple: boolean;
|
|
12
16
|
allowedTypes: () => string[];
|
|
13
17
|
photoWithPreview: boolean;
|
|
18
|
+
fill: boolean;
|
|
14
19
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
15
|
-
|
|
20
|
+
inputDOMRef: (val: Ref<NmorphDomElementType>) => void;
|
|
21
|
+
"update:modelValue": (val: File[]) => void;
|
|
16
22
|
"on-unsupported-file-type-error": (val: string) => void;
|
|
17
|
-
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
23
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
24
|
+
modelValue: () => never[];
|
|
18
25
|
disabled: boolean;
|
|
19
26
|
multiple: boolean;
|
|
20
27
|
allowedTypes: () => string[];
|
|
21
28
|
photoWithPreview: boolean;
|
|
29
|
+
fill: boolean;
|
|
22
30
|
}>>> & {
|
|
23
|
-
|
|
31
|
+
onInputDOMRef?: ((val: Ref<NmorphDomElementType>) => any) | undefined;
|
|
32
|
+
"onUpdate:modelValue"?: ((val: File[]) => any) | undefined;
|
|
24
33
|
"onOn-unsupported-file-type-error"?: ((val: string) => any) | undefined;
|
|
25
34
|
}, {
|
|
35
|
+
fill: boolean;
|
|
26
36
|
disabled: boolean;
|
|
37
|
+
modelValue: INmorphCustomFileData[];
|
|
27
38
|
multiple: boolean;
|
|
28
39
|
allowedTypes: ("zip" | "rar" | "7z" | "pdf" | "msword" | "docx" | "xlsx" | "pptx" | "json" | "xml" | "mpeg" | "audio-ogg" | "wav" | "mp4" | "webm" | "wideo-ogg" | "jpeg" | "jpg" | "png" | "gif" | "svg-xml" | "webp")[];
|
|
29
40
|
photoWithPreview: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare enum
|
|
1
|
+
export declare enum NmorphImageResolution {
|
|
2
2
|
jpeg = "image/jpeg",
|
|
3
3
|
jpg = "image/jpg",
|
|
4
4
|
png = "image/png",
|
|
@@ -6,17 +6,17 @@ export declare enum ImageResolution {
|
|
|
6
6
|
'svg-xml' = "image/svg+xml",
|
|
7
7
|
webp = "image/webp"
|
|
8
8
|
}
|
|
9
|
-
export declare enum
|
|
9
|
+
export declare enum NmorphVideoResolution {
|
|
10
10
|
mp4 = "video/mp4",
|
|
11
11
|
webm = "video/webm",
|
|
12
12
|
'wideo-ogg' = "video/ogg"
|
|
13
13
|
}
|
|
14
|
-
export declare enum
|
|
14
|
+
export declare enum NmorphAudioResolution {
|
|
15
15
|
mpeg = "audio/mpeg",
|
|
16
16
|
'audio-ogg' = "audio/ogg",
|
|
17
17
|
wav = "audio/wav"
|
|
18
18
|
}
|
|
19
|
-
export declare enum
|
|
19
|
+
export declare enum NmorphDocResolution {
|
|
20
20
|
pdf = "application/pdf",
|
|
21
21
|
msword = "application/msword",
|
|
22
22
|
docx = "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
@@ -25,33 +25,37 @@ export declare enum DocResolution {
|
|
|
25
25
|
json = "application/json",
|
|
26
26
|
xml = "application/xml"
|
|
27
27
|
}
|
|
28
|
-
export declare enum
|
|
28
|
+
export declare enum NmorphArchiveResolution {
|
|
29
29
|
zip = "application/zip",
|
|
30
30
|
rar = "application/x-rar-compressed",
|
|
31
31
|
'7z' = "application/x-7z-compressed"
|
|
32
32
|
}
|
|
33
33
|
export declare const resolution: {
|
|
34
|
-
zip:
|
|
35
|
-
rar:
|
|
36
|
-
'7z': (typeof
|
|
37
|
-
pdf:
|
|
38
|
-
msword:
|
|
39
|
-
docx:
|
|
40
|
-
xlsx:
|
|
41
|
-
pptx:
|
|
42
|
-
json:
|
|
43
|
-
xml:
|
|
44
|
-
mpeg:
|
|
45
|
-
'audio-ogg': (typeof
|
|
46
|
-
wav:
|
|
47
|
-
mp4:
|
|
48
|
-
webm:
|
|
49
|
-
'wideo-ogg': (typeof
|
|
50
|
-
jpeg:
|
|
51
|
-
jpg:
|
|
52
|
-
png:
|
|
53
|
-
gif:
|
|
54
|
-
'svg-xml': (typeof
|
|
55
|
-
webp:
|
|
34
|
+
zip: NmorphArchiveResolution.zip;
|
|
35
|
+
rar: NmorphArchiveResolution.rar;
|
|
36
|
+
'7z': (typeof NmorphArchiveResolution)["7z"];
|
|
37
|
+
pdf: NmorphDocResolution.pdf;
|
|
38
|
+
msword: NmorphDocResolution.msword;
|
|
39
|
+
docx: NmorphDocResolution.docx;
|
|
40
|
+
xlsx: NmorphDocResolution.xlsx;
|
|
41
|
+
pptx: NmorphDocResolution.pptx;
|
|
42
|
+
json: NmorphDocResolution.json;
|
|
43
|
+
xml: NmorphDocResolution.xml;
|
|
44
|
+
mpeg: NmorphAudioResolution.mpeg;
|
|
45
|
+
'audio-ogg': (typeof NmorphAudioResolution)["audio-ogg"];
|
|
46
|
+
wav: NmorphAudioResolution.wav;
|
|
47
|
+
mp4: NmorphVideoResolution.mp4;
|
|
48
|
+
webm: NmorphVideoResolution.webm;
|
|
49
|
+
'wideo-ogg': (typeof NmorphVideoResolution)["wideo-ogg"];
|
|
50
|
+
jpeg: NmorphImageResolution.jpeg;
|
|
51
|
+
jpg: NmorphImageResolution.jpg;
|
|
52
|
+
png: NmorphImageResolution.png;
|
|
53
|
+
gif: NmorphImageResolution.gif;
|
|
54
|
+
'svg-xml': (typeof NmorphImageResolution)["svg-xml"];
|
|
55
|
+
webp: NmorphImageResolution.webp;
|
|
56
56
|
};
|
|
57
|
-
export type
|
|
57
|
+
export type NmorphResolutionType = keyof typeof resolution;
|
|
58
|
+
export interface INmorphCustomFileData {
|
|
59
|
+
data: File;
|
|
60
|
+
previewUrl: string;
|
|
61
|
+
}
|
|
@@ -1,56 +1,41 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
interface IProps extends CommonInputProps {
|
|
1
|
+
import { INmorphCommonInputProps, NmorphDomElementType } from '../../../types/common';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, Ref } from 'vue';
|
|
3
|
+
interface INmorphProps extends INmorphCommonInputProps {
|
|
5
4
|
modelValue?: number;
|
|
6
5
|
max?: number;
|
|
7
6
|
min?: number;
|
|
8
7
|
step?: number;
|
|
9
8
|
actionBtnPositionRight?: boolean;
|
|
10
|
-
rules?: INumberValidationRule[];
|
|
11
|
-
showValidationIcon?: boolean;
|
|
12
|
-
staticErrorBoxSpace?: boolean;
|
|
13
9
|
}
|
|
14
|
-
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<
|
|
15
|
-
height:
|
|
10
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
11
|
+
height: string;
|
|
16
12
|
modelValue: number;
|
|
17
13
|
max: number;
|
|
18
14
|
min: number;
|
|
19
15
|
step: number;
|
|
20
16
|
disabled: boolean;
|
|
21
17
|
actionBtnPositionRight: boolean;
|
|
22
|
-
label: string;
|
|
23
|
-
rules: () => never[];
|
|
24
|
-
showValidationIcon: boolean;
|
|
25
|
-
staticErrorBoxSpace: boolean;
|
|
26
|
-
interceptWrongValue: boolean;
|
|
27
18
|
fill: boolean;
|
|
28
19
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
20
|
+
inputDOMRef: (val: Ref<NmorphDomElementType>) => void;
|
|
21
|
+
"update:modelValue": (val: number) => void;
|
|
22
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<INmorphProps>, {
|
|
23
|
+
height: string;
|
|
32
24
|
modelValue: number;
|
|
33
25
|
max: number;
|
|
34
26
|
min: number;
|
|
35
27
|
step: number;
|
|
36
28
|
disabled: boolean;
|
|
37
29
|
actionBtnPositionRight: boolean;
|
|
38
|
-
label: string;
|
|
39
|
-
rules: () => never[];
|
|
40
|
-
showValidationIcon: boolean;
|
|
41
|
-
staticErrorBoxSpace: boolean;
|
|
42
|
-
interceptWrongValue: boolean;
|
|
43
30
|
fill: boolean;
|
|
44
31
|
}>>> & {
|
|
45
|
-
|
|
32
|
+
onInputDOMRef?: ((val: Ref<NmorphDomElementType>) => any) | undefined;
|
|
33
|
+
"onUpdate:modelValue"?: ((val: number) => any) | undefined;
|
|
46
34
|
}, {
|
|
35
|
+
fill: boolean;
|
|
47
36
|
disabled: boolean;
|
|
48
37
|
modelValue: number;
|
|
49
|
-
|
|
50
|
-
rules: INumberValidationRule[];
|
|
51
|
-
showValidationIcon: boolean;
|
|
52
|
-
staticErrorBoxSpace: boolean;
|
|
53
|
-
height: "default" | "thick" | "thin";
|
|
38
|
+
height: "thick" | "default" | "thin";
|
|
54
39
|
max: number;
|
|
55
40
|
min: number;
|
|
56
41
|
step: number;
|