@nmorph/nmorph-ui-kit 2.2.38 → 2.2.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/basic/nmorph-button/NmorphButton.css +1 -1
- package/dist/components/basic/nmorph-button/NmorphButton.vue.js +13 -10
- package/dist/components/basic/nmorph-button/NmorphButton.vue2.js +4 -4
- package/dist/components/basic/nmorph-layout/NmorphLayout.vue2.js +12 -10
- package/dist/components/basic/nmorph-link/NmorphLink.vue2.js +19 -16
- package/dist/components/data/nmorph-badge/NmorphBadge.css +1 -1
- package/dist/components/data/nmorph-badge/NmorphBadge.vue2.js +30 -26
- package/dist/components/data/nmorph-calendar/NmorphCalendar.vue2.js +42 -40
- package/dist/components/data/nmorph-card/NmorphCard.vue2.js +6 -6
- package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue2.js +24 -21
- package/dist/components/data/nmorph-empty/NmorphEmpty.vue2.js +23 -21
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.css +1 -1
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue.js +121 -73
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue2.js +105 -78
- package/dist/components/data/nmorph-progress/NmorphProgress.vue2.js +18 -14
- package/dist/components/data/nmorph-qr-code/NmorphQRCode.vue2.js +15 -11
- package/dist/components/data/nmorph-skeleton/NmorphSkeleton.vue2.js +15 -12
- package/dist/components/data/nmorph-table/NmorphTable.vue2.js +44 -40
- package/dist/components/data/nmorph-tag-list/NmorphTagList.vue.js +7 -7
- package/dist/components/data/nmorph-tag-list/NmorphTagList.vue2.js +22 -16
- package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.css +1 -1
- package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue2.js +9 -9
- package/dist/components/data/nmorph-virtual-list/NmorphVirtualList.vue2.js +21 -19
- package/dist/components/feedback/nmorph-alert/NmorphAlert.vue2.js +27 -24
- package/dist/components/feedback/nmorph-callout/NmorphCallout.vue2.js +19 -15
- package/dist/components/feedback/nmorph-drawer/NmorphDrawer.vue2.js +10 -8
- package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue2.js +25 -23
- package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue2.js +8 -8
- package/dist/components/form/nmorph-checkbox/NmorphCheckbox.vue2.js +4 -4
- package/dist/components/form/nmorph-color-picker/NmorphColorPicker.vue.js +18 -22
- package/dist/components/form/nmorph-color-picker/NmorphColorPicker.vue2.js +42 -33
- package/dist/components/form/nmorph-date-picker/NmorphDatePicker.vue2.js +32 -32
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.css +1 -1
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue2.js +77 -106
- package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.css +1 -1
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue2.js +4 -4
- package/dist/components/form/nmorph-number-input/NmorphNumberInput.vue2.js +7 -7
- package/dist/components/form/nmorph-otp-input/NmorphOTPInput.vue2.js +6 -6
- package/dist/components/form/nmorph-radio/NmorphRadio.vue2.js +1 -1
- package/dist/components/form/nmorph-select/NmorphSelect.vue2.js +51 -49
- package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue2.js +21 -18
- package/dist/components/form/nmorph-select-button/NmorphSelectButton.vue2.js +28 -24
- package/dist/components/form/nmorph-slider/NmorphSlider.vue2.js +30 -30
- package/dist/components/form/nmorph-switch/NmorphSwitch.vue2.js +34 -32
- package/dist/components/form/nmorph-text-input/NmorphTextInput.vue.js +16 -16
- package/dist/components/form/nmorph-text-input/NmorphTextInput.vue2.js +37 -35
- package/dist/components/form/nmorph-textarea/NmorphTextarea.vue.js +12 -12
- package/dist/components/form/nmorph-textarea/NmorphTextarea.vue2.js +34 -32
- package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue.js +16 -16
- package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue2.js +64 -57
- package/dist/components/navigation/nmorph-context-menu/NmorphContextMenu.vue.js +27 -22
- package/dist/components/navigation/nmorph-context-menu/NmorphContextMenu.vue2.js +75 -46
- package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.vue2.js +25 -23
- package/dist/hooks/use-field-validation.js +50 -66
- package/dist/hooks/use-focusable-input.js +27 -0
- package/dist/hooks/use-nmorph-translation.js +4 -4
- package/dist/hooks/use-placement.js +65 -61
- package/dist/index.es.js +842 -837
- package/dist/index.umd.js +36 -36
- package/dist/package.json.js +1 -1
- package/dist/plugin.js +47 -42
- package/dist/src/components/basic/nmorph-button/NmorphButton.vue.d.ts +4 -17
- package/dist/src/components/basic/nmorph-button/types.d.ts +13 -0
- package/dist/src/components/basic/nmorph-icon/NmorphIcon.vue.d.ts +3 -9
- package/dist/src/components/basic/nmorph-icon/types.d.ts +6 -0
- package/dist/src/components/basic/nmorph-layout/NmorphLayout.vue.d.ts +2 -9
- package/dist/src/components/basic/nmorph-layout/types.d.ts +8 -0
- package/dist/src/components/basic/nmorph-link/NmorphLink.vue.d.ts +3 -14
- package/dist/src/components/basic/nmorph-link/types.d.ts +11 -0
- package/dist/src/components/basic/nmorph-scroll/NmorphScroll.vue.d.ts +2 -2
- package/dist/src/components/basic/nmorph-scroll/types.d.ts +5 -0
- package/dist/src/components/basic/nmorph-space/NmorphSpace.vue.d.ts +2 -15
- package/dist/src/components/basic/nmorph-space/types.d.ts +14 -0
- package/dist/src/components/data/nmorph-avatar/NmorphAvatar.vue.d.ts +5 -20
- package/dist/src/components/data/nmorph-avatar/types.d.ts +21 -0
- package/dist/src/components/data/nmorph-badge/NmorphBadge.vue.d.ts +5 -40
- package/dist/src/components/data/nmorph-badge/types.d.ts +34 -0
- package/dist/src/components/data/nmorph-calendar/NmorphCalendar.vue.d.ts +4 -12
- package/dist/src/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue.d.ts +3 -9
- package/dist/src/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/types.d.ts +12 -0
- package/dist/src/components/data/nmorph-calendar/types.d.ts +13 -0
- package/dist/src/components/data/nmorph-card/NmorphCard.vue.d.ts +2 -10
- package/dist/src/components/data/nmorph-card/types.d.ts +9 -0
- package/dist/src/components/data/nmorph-carousel/NmorphCarousel.vue.d.ts +3 -5
- package/dist/src/components/data/nmorph-carousel/components/nmorph-carousel-item/NmorphCarouselItem.vue.d.ts +2 -4
- package/dist/src/components/data/nmorph-carousel/components/nmorph-carousel-item/types.d.ts +3 -0
- package/dist/src/components/data/nmorph-carousel/types.d.ts +6 -0
- package/dist/src/components/data/nmorph-collapse/NmorphCollapse.vue.d.ts +3 -7
- package/dist/src/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.d.ts +4 -10
- package/dist/src/components/data/nmorph-collapse/components/nmorph-collapse-item/types.d.ts +13 -0
- package/dist/src/components/data/nmorph-collapse/types.d.ts +7 -0
- package/dist/src/components/data/nmorph-empty/NmorphEmpty.vue.d.ts +3 -12
- package/dist/src/components/data/nmorph-empty/types.d.ts +11 -0
- package/dist/src/components/data/nmorph-image/NmorphImage.vue.d.ts +3 -8
- package/dist/src/components/data/nmorph-image/types.d.ts +10 -0
- package/dist/src/components/data/nmorph-image-preview/NmorphImagePreview.vue.d.ts +9 -18
- package/dist/src/components/data/nmorph-image-preview/types.d.ts +23 -0
- package/dist/src/components/data/nmorph-pagination/NmorphPagination.vue.d.ts +3 -13
- package/dist/src/components/data/nmorph-pagination/types.d.ts +14 -0
- package/dist/src/components/data/nmorph-progress/NmorphProgress.vue.d.ts +3 -15
- package/dist/src/components/data/nmorph-progress/types.d.ts +12 -0
- package/dist/src/components/data/nmorph-qr-code/NmorphQRCode.vue.d.ts +5 -15
- package/dist/src/components/data/nmorph-qr-code/types.d.ts +12 -0
- package/dist/src/components/data/nmorph-skeleton/NmorphSkeleton.vue.d.ts +2 -7
- package/dist/src/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue.d.ts +3 -9
- package/dist/src/components/data/nmorph-skeleton/components/types.d.ts +8 -0
- package/dist/src/components/data/nmorph-skeleton/types.d.ts +6 -0
- package/dist/src/components/data/nmorph-table/NmorphTable.vue.d.ts +4 -18
- package/dist/src/components/data/nmorph-table/components/nmorph-table-cell/NmorphTableCell.vue.d.ts +2 -4
- package/dist/src/components/data/nmorph-table/components/nmorph-table-cell/types.d.ts +3 -0
- package/dist/src/components/data/nmorph-table/components/nmorph-table-column/NmorphTableColumn.vue.d.ts +4 -5
- package/dist/src/components/data/nmorph-table/components/nmorph-table-column/types.d.ts +3 -0
- package/dist/src/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.vue.d.ts +4 -6
- package/dist/src/components/data/nmorph-table/inner-components/nmorph-sort-button/types.d.ts +7 -0
- package/dist/src/components/data/nmorph-table/types.d.ts +15 -0
- package/dist/src/components/data/nmorph-tag-list/NmorphTagList.vue.d.ts +9 -9
- package/dist/src/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue.d.ts +3 -5
- package/dist/src/components/data/nmorph-tag-list/components/nmorph-tag-item/types.d.ts +6 -0
- package/dist/src/components/data/nmorph-tag-list/types.d.ts +8 -0
- package/dist/src/components/data/nmorph-virtual-list/NmorphVirtualList.vue.d.ts +3 -14
- package/dist/src/components/data/nmorph-virtual-list/types.d.ts +15 -0
- package/dist/src/components/feedback/nmorph-alert/NmorphAlert.vue.d.ts +5 -7
- package/dist/src/components/feedback/nmorph-alert/types.d.ts +5 -0
- package/dist/src/components/feedback/nmorph-callout/NmorphCallout.vue.d.ts +4 -16
- package/dist/src/components/feedback/nmorph-callout/types.d.ts +12 -0
- package/dist/src/components/feedback/nmorph-dialog/NmorphDialog.vue.d.ts +4 -19
- package/dist/src/components/feedback/nmorph-dialog/types.d.ts +20 -0
- package/dist/src/components/feedback/nmorph-drawer/NmorphDrawer.vue.d.ts +4 -17
- package/dist/src/components/feedback/nmorph-drawer/types.d.ts +18 -0
- package/dist/src/components/feedback/nmorph-tooltip/NmorphTooltip.vue.d.ts +5 -14
- package/dist/src/components/feedback/nmorph-tooltip/types.d.ts +11 -0
- package/dist/src/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.d.ts +6 -19
- package/dist/src/components/form/nmorph-autocomplete/types.d.ts +18 -0
- package/dist/src/components/form/nmorph-checkbox/NmorphCheckbox.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-checkbox/types.d.ts +3 -0
- package/dist/src/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue.d.ts +4 -10
- package/dist/src/components/form/nmorph-checkbox-group/types.d.ts +11 -0
- package/dist/src/components/form/nmorph-color-picker/NmorphColorPicker.vue.d.ts +6 -11
- package/dist/src/components/form/nmorph-color-picker/types.d.ts +11 -0
- package/dist/src/components/form/nmorph-date-picker/NmorphDatePicker.vue.d.ts +4 -20
- package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-clear-button/types.d.ts +3 -0
- package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-content/NmorphDatePickerContent.vue.d.ts +3 -8
- package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-content/types.d.ts +10 -0
- package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/NmorphDatePickerHeader.vue.d.ts +3 -6
- package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/types.d.ts +12 -0
- package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.vue.d.ts +3 -6
- package/dist/src/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/types.d.ts +9 -0
- package/dist/src/components/form/nmorph-date-picker/types.d.ts +21 -0
- package/dist/src/components/form/nmorph-file-upload/NmorphFileUpload.vue.d.ts +5 -13
- package/dist/src/components/form/nmorph-file-upload/types.d.ts +17 -0
- package/dist/src/components/form/nmorph-form/NmorphForm.vue.d.ts +4 -8
- package/dist/src/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.d.ts +3 -12
- package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue.d.ts +3 -8
- package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/types.d.ts +7 -0
- package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/NmorphValidationIcon.vue.d.ts +3 -6
- package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/types.d.ts +5 -0
- package/dist/src/components/form/nmorph-form/components/nmorph-form-item/types.d.ts +10 -0
- package/dist/src/components/form/nmorph-form/types.d.ts +6 -1
- package/dist/src/components/form/nmorph-number-input/NmorphNumberInput.vue.d.ts +3 -10
- package/dist/src/components/form/nmorph-number-input/types.d.ts +11 -0
- package/dist/src/components/form/nmorph-otp-input/NmorphOTPInput.vue.d.ts +5 -13
- package/dist/src/components/form/nmorph-otp-input/types.d.ts +21 -0
- package/dist/src/components/form/nmorph-radio/NmorphRadio.vue.d.ts +4 -9
- package/dist/src/components/form/nmorph-radio/types.d.ts +6 -0
- package/dist/src/components/form/nmorph-radio-group/NmorphRadioGroup.vue.d.ts +3 -11
- package/dist/src/components/form/nmorph-radio-group/types.d.ts +12 -0
- package/dist/src/components/form/nmorph-select/NmorphSelect.vue.d.ts +3 -21
- package/dist/src/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-select/components/nmorph-select-option/types.d.ts +3 -0
- package/dist/src/components/form/nmorph-select/types.d.ts +21 -0
- package/dist/src/components/form/nmorph-select-button/NmorphSelectButton.vue.d.ts +4 -12
- package/dist/src/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.vue.d.ts +3 -6
- package/dist/src/components/form/nmorph-select-button/components/nmorph-select-button-item/types.d.ts +4 -0
- package/dist/src/components/form/nmorph-select-button/types.d.ts +12 -0
- package/dist/src/components/form/nmorph-slider/NmorphSlider.vue.d.ts +111 -0
- package/dist/src/components/form/nmorph-slider/types.d.ts +3 -0
- package/dist/src/components/form/nmorph-switch/NmorphSwitch.vue.d.ts +3 -14
- package/dist/src/components/form/nmorph-switch/types.d.ts +15 -0
- package/dist/src/components/form/nmorph-text-input/NmorphTextInput.vue.d.ts +6 -14
- package/dist/src/components/form/nmorph-text-input/types.d.ts +16 -0
- package/dist/src/components/form/nmorph-textarea/NmorphTextarea.vue.d.ts +6 -18
- package/dist/src/components/form/nmorph-textarea/types.d.ts +20 -0
- package/dist/src/components/form/nmorph-time-picker/NmorphTimePicker.vue.d.ts +6 -20
- package/dist/src/components/form/nmorph-time-picker/types.d.ts +24 -0
- package/dist/src/components/navigation/index.d.ts +1 -1
- package/dist/src/components/navigation/nmorph-backtop/NmorphBacktop.vue.d.ts +4 -12
- package/dist/src/components/navigation/nmorph-backtop/types.d.ts +14 -0
- package/dist/src/components/navigation/nmorph-breadcrumb/NmorphBreadcrumb.vue.d.ts +2 -4
- package/dist/src/components/navigation/nmorph-breadcrumb/components/nmorph-breadcrumb-item/NmorphBreadcrumbItem.vue.d.ts +2 -4
- package/dist/src/components/navigation/nmorph-breadcrumb/components/nmorph-breadcrumb-item/types.d.ts +3 -0
- package/dist/src/components/navigation/nmorph-breadcrumb/types.d.ts +3 -0
- package/dist/src/components/navigation/nmorph-context-menu/NmorphContextMenu.vue.d.ts +14 -33
- package/dist/src/components/navigation/nmorph-context-menu/types.d.ts +48 -0
- package/dist/src/components/navigation/nmorph-dropdown/NmorphDropdown.vue.d.ts +6 -24
- package/dist/src/components/navigation/nmorph-dropdown/types.d.ts +24 -0
- package/dist/src/components/navigation/nmorph-tabs/NmorphTabs.vue.d.ts +4 -8
- package/dist/src/components/navigation/nmorph-tabs/components/nmorph-tab-pane/NmorphTabPane.vue.d.ts +4 -5
- package/dist/src/components/navigation/nmorph-tabs/components/nmorph-tab-pane/types.d.ts +3 -0
- package/dist/src/components/navigation/nmorph-tabs/{type.d.ts → types.d.ts} +9 -0
- package/dist/src/components/navigation/nmorph-tabs/utils.d.ts +1 -1
- package/dist/src/components/others/nmorph-divider/NmorphDivider.vue.d.ts +2 -5
- package/dist/src/components/others/nmorph-divider/types.d.ts +3 -0
- package/dist/src/components/others/nmorph-overlay/NmorphOverlay.vue.d.ts +3 -12
- package/dist/src/components/others/nmorph-overlay/types.d.ts +14 -0
- package/dist/src/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.d.ts +2 -8
- package/dist/src/components/providers/nmorph-notification-provider/types.d.ts +9 -0
- package/dist/src/hooks/use-focusable-input.d.ts +16 -0
- package/dist/src/hooks/use-form-validation.d.ts +1 -2
- package/dist/src/plugin.d.ts +4 -1
- package/dist/src/types/app.types.d.ts +21 -0
- package/dist/src/types/common.types.d.ts +62 -0
- package/dist/src/types/date.types.d.ts +7 -0
- package/dist/src/types/image.types.d.ts +17 -0
- package/dist/src/types/index.d.ts +8 -206
- package/dist/src/types/selection.types.d.ts +26 -0
- package/dist/src/types/table.types.d.ts +5 -0
- package/dist/src/types/theme.types.d.ts +55 -0
- package/dist/src/types/translation.types.d.ts +20 -0
- package/dist/src/utils/common.d.ts +3 -0
- package/dist/src/utils/file-types.d.ts +8 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/types/common.types.js +14 -0
- package/dist/types/date.types.js +4 -0
- package/dist/types/image.types.js +5 -0
- package/dist/types/selection.types.js +4 -0
- package/dist/types/table.types.js +4 -0
- package/dist/types/translation.types.js +4 -0
- package/dist/utils/common.js +16 -6
- package/dist/utils/file-types.js +41 -0
- package/package.json +1 -1
- package/dist/src/components/data/nmorph-calendar/hooks/index.d.ts +0 -2
- package/dist/src/hooks/index.d.ts +0 -9
- package/dist/src/outside-hooks/index.d.ts +0 -5
- package/dist/types/index.js +0 -20
|
@@ -1,21 +1,9 @@
|
|
|
1
|
-
import { NmorphCalloutType } from './types';
|
|
1
|
+
import { INmorphCalloutProps, NmorphCalloutType } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
|
|
4
|
-
type?: NmorphCalloutType;
|
|
5
|
-
title?: string;
|
|
6
|
-
content: string;
|
|
7
|
-
color?: string;
|
|
8
|
-
padding?: number | string;
|
|
9
|
-
borderRadius?: number | string;
|
|
10
|
-
accentWidth?: number | string;
|
|
11
|
-
titleGap?: number | string;
|
|
12
|
-
titleFontSize?: number | string;
|
|
13
|
-
contentFontSize?: number | string;
|
|
14
|
-
}
|
|
15
|
-
declare const _default: DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
|
|
16
|
-
type: NmorphCalloutType;
|
|
17
|
-
color: string;
|
|
3
|
+
declare const _default: DefineComponent<INmorphCalloutProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphCalloutProps> & Readonly<{}>, {
|
|
18
4
|
title: string;
|
|
5
|
+
color: string;
|
|
6
|
+
type: NmorphCalloutType;
|
|
19
7
|
padding: string | number;
|
|
20
8
|
borderRadius: string | number;
|
|
21
9
|
accentWidth: string | number;
|
|
@@ -1 +1,13 @@
|
|
|
1
1
|
export type NmorphCalloutType = 'info' | 'warning' | 'success' | 'error';
|
|
2
|
+
export interface INmorphCalloutProps {
|
|
3
|
+
type?: NmorphCalloutType;
|
|
4
|
+
title?: string;
|
|
5
|
+
content: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
padding?: number | string;
|
|
8
|
+
borderRadius?: number | string;
|
|
9
|
+
accentWidth?: number | string;
|
|
10
|
+
titleGap?: number | string;
|
|
11
|
+
titleFontSize?: number | string;
|
|
12
|
+
contentFontSize?: number | string;
|
|
13
|
+
}
|
|
@@ -1,29 +1,14 @@
|
|
|
1
|
+
import { INmorphDialogProps } from './types';
|
|
1
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
|
|
3
|
-
modelValue?: boolean;
|
|
4
|
-
title?: string;
|
|
5
|
-
width?: string;
|
|
6
|
-
maxHeight?: string;
|
|
7
|
-
openDelay?: number;
|
|
8
|
-
closeDelay?: number;
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated Use `closeOnOverlay` instead.
|
|
11
|
-
*/
|
|
12
|
-
closeOnClickModal?: boolean;
|
|
13
|
-
showClose?: boolean;
|
|
14
|
-
zIndex?: number;
|
|
15
|
-
closeOnOverlay?: boolean;
|
|
16
|
-
closeOnEscape?: boolean;
|
|
17
|
-
}
|
|
18
|
-
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphDialogProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
19
4
|
"update:model-value": (value: boolean) => any;
|
|
20
5
|
"on-close": () => any;
|
|
21
|
-
}, string, PublicProps, Readonly<
|
|
6
|
+
}, string, PublicProps, Readonly<INmorphDialogProps> & Readonly<{
|
|
22
7
|
"onUpdate:model-value"?: (value: boolean) => any;
|
|
23
8
|
"onOn-close"?: () => any;
|
|
24
9
|
}>, {
|
|
25
|
-
width: string;
|
|
26
10
|
title: string;
|
|
11
|
+
width: string;
|
|
27
12
|
maxHeight: string;
|
|
28
13
|
modelValue: boolean;
|
|
29
14
|
zIndex: number;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface INmorphDialogProps {
|
|
2
|
+
modelValue?: boolean;
|
|
3
|
+
title?: string;
|
|
4
|
+
width?: string;
|
|
5
|
+
maxHeight?: string;
|
|
6
|
+
openDelay?: number;
|
|
7
|
+
closeDelay?: number;
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated Use `closeOnOverlay` instead.
|
|
10
|
+
*/
|
|
11
|
+
closeOnClickModal?: boolean;
|
|
12
|
+
showClose?: boolean;
|
|
13
|
+
zIndex?: number;
|
|
14
|
+
closeOnOverlay?: boolean;
|
|
15
|
+
closeOnEscape?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface INmorphDialogEmit {
|
|
18
|
+
(e: 'on-close'): void;
|
|
19
|
+
(e: 'update:model-value', value: boolean): void;
|
|
20
|
+
}
|
|
@@ -1,27 +1,14 @@
|
|
|
1
|
+
import { INmorphDrawerProps, NmorphDrawerPlacementType } from './types';
|
|
1
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
|
|
3
|
-
interface INmorphProps {
|
|
4
|
-
modelValue?: boolean;
|
|
5
|
-
title?: string;
|
|
6
|
-
placement?: NmorphDrawerPlacementType;
|
|
7
|
-
size?: number | string;
|
|
8
|
-
showClose?: boolean;
|
|
9
|
-
closeOnOverlay?: boolean;
|
|
10
|
-
closeOnEscape?: boolean;
|
|
11
|
-
zIndex?: number;
|
|
12
|
-
teleportTo?: string | HTMLElement;
|
|
13
|
-
disabledTeleport?: boolean;
|
|
14
|
-
contentClass?: string;
|
|
15
|
-
}
|
|
16
|
-
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphDrawerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
17
4
|
"update:model-value": (value: boolean) => any;
|
|
18
5
|
"on-close": () => any;
|
|
19
|
-
}, string, PublicProps, Readonly<
|
|
6
|
+
}, string, PublicProps, Readonly<INmorphDrawerProps> & Readonly<{
|
|
20
7
|
"onUpdate:model-value"?: (value: boolean) => any;
|
|
21
8
|
"onOn-close"?: () => any;
|
|
22
9
|
}>, {
|
|
23
|
-
size: string | number;
|
|
24
10
|
title: string;
|
|
11
|
+
size: string | number;
|
|
25
12
|
modelValue: boolean;
|
|
26
13
|
zIndex: number;
|
|
27
14
|
teleportTo: string | HTMLElement;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type NmorphDrawerPlacementType = 'left' | 'right' | 'top' | 'bottom';
|
|
2
|
+
export interface INmorphDrawerProps {
|
|
3
|
+
modelValue?: boolean;
|
|
4
|
+
title?: string;
|
|
5
|
+
placement?: NmorphDrawerPlacementType;
|
|
6
|
+
size?: number | string;
|
|
7
|
+
showClose?: boolean;
|
|
8
|
+
closeOnOverlay?: boolean;
|
|
9
|
+
closeOnEscape?: boolean;
|
|
10
|
+
zIndex?: number;
|
|
11
|
+
teleportTo?: string | HTMLElement;
|
|
12
|
+
disabledTeleport?: boolean;
|
|
13
|
+
contentClass?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface INmorphDrawerEmit {
|
|
16
|
+
(e: 'on-close'): void;
|
|
17
|
+
(e: 'update:model-value', value: boolean): void;
|
|
18
|
+
}
|
|
@@ -1,25 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { INmorphTooltipProps } from './types';
|
|
2
2
|
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
position?: NmorphPlacementType;
|
|
6
|
-
forceShow?: boolean;
|
|
7
|
-
forceCoordinate?: Partial<INmorphCoords<string>> | null;
|
|
8
|
-
zIndex?: number;
|
|
9
|
-
width?: number | string;
|
|
10
|
-
maxWidth?: number | string;
|
|
11
|
-
height?: number | string;
|
|
12
|
-
}
|
|
13
|
-
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
3
|
+
import { NmorphPlacementType, INmorphCoords } from '../../../types';
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphTooltipProps, {
|
|
14
5
|
tooltipBody: Ref<HTMLElement, HTMLElement>;
|
|
15
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<
|
|
6
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphTooltipProps> & Readonly<{}>, {
|
|
16
7
|
text: string;
|
|
17
8
|
height: string | number;
|
|
18
9
|
width: string | number;
|
|
19
10
|
zIndex: number;
|
|
20
11
|
position: NmorphPlacementType;
|
|
21
12
|
forceShow: boolean;
|
|
22
|
-
forceCoordinate: Partial<INmorphCoords<string>>;
|
|
13
|
+
forceCoordinate: Partial< INmorphCoords<string>>;
|
|
23
14
|
maxWidth: string | number;
|
|
24
15
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
25
16
|
tooltipDOMRef: HTMLDivElement;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { INmorphCoords, NmorphPlacementType } from '../../../types';
|
|
2
|
+
export interface INmorphTooltipProps {
|
|
3
|
+
text?: string;
|
|
4
|
+
position?: NmorphPlacementType;
|
|
5
|
+
forceShow?: boolean;
|
|
6
|
+
forceCoordinate?: Partial<INmorphCoords<string>> | null;
|
|
7
|
+
zIndex?: number;
|
|
8
|
+
width?: number | string;
|
|
9
|
+
maxWidth?: number | string;
|
|
10
|
+
height?: number | string;
|
|
11
|
+
}
|
|
@@ -1,25 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { INmorphAutocompleteListItem, NmorphAutocompleteActionCallbackType } from '../..';
|
|
2
|
+
import { INmorphAutocompleteProps } from './types';
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
-
|
|
5
|
-
modelValue?: string;
|
|
6
|
-
placeholder?: string;
|
|
7
|
-
clearable?: boolean;
|
|
8
|
-
list: INmorphAutocompleteListItem[];
|
|
9
|
-
actionCallback?: NmorphAutocompleteActionCallbackType;
|
|
10
|
-
zIndex?: number;
|
|
11
|
-
virtual?: boolean;
|
|
12
|
-
virtualItemHeight?: number;
|
|
13
|
-
virtualMaxHeight?: number | string;
|
|
14
|
-
virtualOverscan?: number;
|
|
15
|
-
virtualDynamicHeight?: boolean;
|
|
16
|
-
}
|
|
17
|
-
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
18
|
-
select: (value: unknown) => any;
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphAutocompleteProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
19
5
|
"update:model-value": (value: string) => any;
|
|
20
|
-
|
|
21
|
-
|
|
6
|
+
select: (value: unknown) => any;
|
|
7
|
+
}, string, PublicProps, Readonly<INmorphAutocompleteProps> & Readonly<{
|
|
22
8
|
"onUpdate:model-value"?: (value: string) => any;
|
|
9
|
+
onSelect?: (value: unknown) => any;
|
|
23
10
|
}>, {
|
|
24
11
|
height: "basic" | "thick" | "thin";
|
|
25
12
|
disabled: boolean;
|
|
@@ -1,5 +1,23 @@
|
|
|
1
|
+
import { INmorphCommonInputProps } from '../../../types';
|
|
1
2
|
export interface INmorphAutocompleteListItem {
|
|
2
3
|
value: string;
|
|
3
4
|
[key: string]: unknown;
|
|
4
5
|
}
|
|
5
6
|
export type NmorphAutocompleteActionCallbackType = (...args: unknown[]) => Promise<unknown>;
|
|
7
|
+
export interface INmorphAutocompleteProps extends INmorphCommonInputProps {
|
|
8
|
+
modelValue?: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
clearable?: boolean;
|
|
11
|
+
list: INmorphAutocompleteListItem[];
|
|
12
|
+
actionCallback?: NmorphAutocompleteActionCallbackType;
|
|
13
|
+
zIndex?: number;
|
|
14
|
+
virtual?: boolean;
|
|
15
|
+
virtualItemHeight?: number;
|
|
16
|
+
virtualMaxHeight?: number | string;
|
|
17
|
+
virtualOverscan?: number;
|
|
18
|
+
virtualDynamicHeight?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface INmorphAutocompleteEmit {
|
|
21
|
+
(e: 'update:model-value', value: string): void;
|
|
22
|
+
(e: 'select', value: unknown): void;
|
|
23
|
+
}
|
|
@@ -7,9 +7,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphCheckbox
|
|
|
7
7
|
}, string, PublicProps, Readonly<INmorphCheckboxOption> & Readonly<{
|
|
8
8
|
"onUpdate:model-value"?: (val: boolean) => any;
|
|
9
9
|
}>, {
|
|
10
|
+
label: string;
|
|
10
11
|
id: string;
|
|
11
12
|
disabled: boolean;
|
|
12
|
-
label: string;
|
|
13
13
|
modelValue: boolean;
|
|
14
14
|
design: NmorphCheckboxDesignType;
|
|
15
15
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { INmorphCheckboxGroupProps } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
options?: INmorphCheckboxOption[];
|
|
6
|
-
design?: NmorphCheckboxDesignType;
|
|
7
|
-
direction?: keyof typeof NmorphComponentDirection;
|
|
8
|
-
height?: NmorphSelectionControlHeightType;
|
|
9
|
-
}
|
|
10
|
-
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
3
|
+
import { NmorphCheckboxDesignType, INmorphCheckboxOption } from '../../../types';
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphCheckboxGroupProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
11
5
|
"update:model-value": (val: string[]) => any;
|
|
12
|
-
}, string, PublicProps, Readonly<
|
|
6
|
+
}, string, PublicProps, Readonly<INmorphCheckboxGroupProps> & Readonly<{
|
|
13
7
|
"onUpdate:model-value"?: (val: string[]) => any;
|
|
14
8
|
}>, {
|
|
15
9
|
height: "basic" | "thick" | "thin" | "extra-thin";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { INmorphCheckboxOption, INmorphCommonInputProps, NmorphCheckboxDesignType, NmorphComponentDirection, NmorphSelectionControlHeightType } from '../../../types';
|
|
2
|
+
export interface INmorphCheckboxGroupProps extends Omit<INmorphCommonInputProps, 'height'> {
|
|
3
|
+
modelValue?: string[];
|
|
4
|
+
options?: INmorphCheckboxOption[];
|
|
5
|
+
design?: NmorphCheckboxDesignType;
|
|
6
|
+
direction?: keyof typeof NmorphComponentDirection;
|
|
7
|
+
height?: NmorphSelectionControlHeightType;
|
|
8
|
+
}
|
|
9
|
+
export interface INmorphCheckboxGroupEmit {
|
|
10
|
+
(e: 'update:model-value', val: string[]): void;
|
|
11
|
+
}
|
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { INmorphColorPickerProps } from './types';
|
|
2
2
|
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
showValue?: boolean;
|
|
6
|
-
displayFormat?: 'hex' | 'rgb' | 'hsl';
|
|
7
|
-
}
|
|
8
|
-
declare const _default: DefineComponent<INmorphProps, {
|
|
9
|
-
inputDOMRef: Ref<HTMLElement, HTMLElement>;
|
|
3
|
+
declare const _default: DefineComponent<INmorphColorPickerProps, {
|
|
4
|
+
inputDOMRef: Ref<HTMLInputElement, HTMLInputElement>;
|
|
10
5
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
6
|
+
"update:model-value": (val: string) => any;
|
|
11
7
|
blur: () => any;
|
|
12
8
|
focus: () => any;
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
}, string, PublicProps, Readonly<INmorphColorPickerProps> & Readonly<{
|
|
10
|
+
"onUpdate:model-value"?: (val: string) => any;
|
|
15
11
|
onBlur?: () => any;
|
|
16
12
|
onFocus?: () => any;
|
|
17
|
-
"onUpdate:model-value"?: (val: string) => any;
|
|
18
13
|
}>, {
|
|
19
14
|
height: "basic" | "thick" | "thin";
|
|
20
15
|
disabled: boolean;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { INmorphCommonInputProps } from '../../../types';
|
|
2
|
+
export interface INmorphColorPickerProps extends INmorphCommonInputProps {
|
|
3
|
+
modelValue?: string;
|
|
4
|
+
showValue?: boolean;
|
|
5
|
+
displayFormat?: 'hex' | 'rgb' | 'hsl';
|
|
6
|
+
}
|
|
7
|
+
export interface INmorphColorPickerEmit {
|
|
8
|
+
(e: 'update:model-value', val: string): void;
|
|
9
|
+
(e: 'focus'): void;
|
|
10
|
+
(e: 'blur'): void;
|
|
11
|
+
}
|
|
@@ -1,25 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { NmorphSelectedDateModelType, NmorphDateFormatterType } from '../..';
|
|
2
|
+
import { INmorphDatePickerProps } from './types';
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
-
|
|
5
|
-
placeholder?: string;
|
|
6
|
-
modelValue?: NmorphSelectedDateModelType;
|
|
7
|
-
type?: keyof typeof NmorphSelectionDateType;
|
|
8
|
-
textSeparator?: string;
|
|
9
|
-
initialDate?: Date;
|
|
10
|
-
zIndex?: number;
|
|
11
|
-
dateLocale?: string | string[];
|
|
12
|
-
dateFormatOptions?: Intl.DateTimeFormatOptions;
|
|
13
|
-
dateFormat?: string;
|
|
14
|
-
dateFormatter?: NmorphDateFormatterType;
|
|
15
|
-
valueSeparator?: string;
|
|
16
|
-
rangeSeparator?: string;
|
|
17
|
-
width?: number | string;
|
|
18
|
-
calendarCellHeight?: number | string;
|
|
19
|
-
}
|
|
20
|
-
declare const _default: DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
4
|
+
declare const _default: DefineComponent<INmorphDatePickerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
21
5
|
"update:model-value": (modelValue: NmorphSelectedDateModelType) => any;
|
|
22
|
-
}, string, PublicProps, Readonly<
|
|
6
|
+
}, string, PublicProps, Readonly<INmorphDatePickerProps> & Readonly<{
|
|
23
7
|
"onUpdate:model-value"?: (modelValue: NmorphSelectedDateModelType) => any;
|
|
24
8
|
}>, {
|
|
25
9
|
type: "date" | "dates" | "daterange";
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import { NmorphSelectedDateModelType } from '../../../..';
|
|
2
|
-
import {
|
|
2
|
+
import { INmorphDatePickerContentProps } from './types';
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
-
|
|
5
|
-
initialDate?: Date;
|
|
6
|
-
selectedValues: NmorphSelectedDateModelType;
|
|
7
|
-
type?: keyof typeof NmorphSelectionDateType;
|
|
8
|
-
}
|
|
9
|
-
declare const _default: DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
4
|
+
declare const _default: DefineComponent<INmorphDatePickerContentProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
10
5
|
"update-selected-value": (selectedValue: NmorphSelectedDateModelType) => any;
|
|
11
|
-
}, string, PublicProps, Readonly<
|
|
6
|
+
}, string, PublicProps, Readonly<INmorphDatePickerContentProps> & Readonly<{
|
|
12
7
|
"onUpdate-selected-value"?: (selectedValue: NmorphSelectedDateModelType) => any;
|
|
13
8
|
}>, {
|
|
14
9
|
type: "date" | "dates" | "daterange";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NmorphSelectedDateModelType } from '../../../..';
|
|
2
|
+
import { NmorphSelectionDateType } from '../../../../../types';
|
|
3
|
+
export interface INmorphDatePickerContentProps {
|
|
4
|
+
initialDate?: Date;
|
|
5
|
+
selectedValues: NmorphSelectedDateModelType;
|
|
6
|
+
type?: keyof typeof NmorphSelectionDateType;
|
|
7
|
+
}
|
|
8
|
+
export interface INmorphDatePickerContentEmit {
|
|
9
|
+
(e: 'update-selected-value', selectedValue: NmorphSelectedDateModelType): void;
|
|
10
|
+
}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
+
import { INmorphDatePickerHeaderProps } from './types';
|
|
1
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
|
|
3
|
-
year: number;
|
|
4
|
-
month: number;
|
|
5
|
-
}
|
|
6
|
-
declare const _default: DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
3
|
+
declare const _default: DefineComponent<INmorphDatePickerHeaderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
7
4
|
"prev-month": () => any;
|
|
8
5
|
"next-month": () => any;
|
|
9
6
|
"prev-year": () => any;
|
|
10
7
|
"next-year": () => any;
|
|
11
8
|
"change-year": () => any;
|
|
12
9
|
"change-month": () => any;
|
|
13
|
-
}, string, PublicProps, Readonly<
|
|
10
|
+
}, string, PublicProps, Readonly<INmorphDatePickerHeaderProps> & Readonly<{
|
|
14
11
|
"onPrev-month"?: () => any;
|
|
15
12
|
"onNext-month"?: () => any;
|
|
16
13
|
"onPrev-year"?: () => any;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface INmorphDatePickerHeaderProps {
|
|
2
|
+
year: number;
|
|
3
|
+
month: number;
|
|
4
|
+
}
|
|
5
|
+
export interface INmorphDatePickerHeaderEmit {
|
|
6
|
+
(e: 'prev-month'): void;
|
|
7
|
+
(e: 'next-month'): void;
|
|
8
|
+
(e: 'prev-year'): void;
|
|
9
|
+
(e: 'next-year'): void;
|
|
10
|
+
(e: 'change-year'): void;
|
|
11
|
+
(e: 'change-month'): void;
|
|
12
|
+
}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
+
import { INmorphYearMonthPickerProps } from './types';
|
|
1
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
|
|
3
|
-
currentDate: Date;
|
|
4
|
-
type?: 'year' | 'month';
|
|
5
|
-
}
|
|
6
|
-
declare const _default: DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
3
|
+
declare const _default: DefineComponent<INmorphYearMonthPickerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
7
4
|
"update-year": (val: string) => any;
|
|
8
5
|
"update-month": (val: string) => any;
|
|
9
6
|
"back-to-years": () => any;
|
|
10
|
-
}, string, PublicProps, Readonly<
|
|
7
|
+
}, string, PublicProps, Readonly<INmorphYearMonthPickerProps> & Readonly<{
|
|
11
8
|
"onUpdate-year"?: (val: string) => any;
|
|
12
9
|
"onUpdate-month"?: (val: string) => any;
|
|
13
10
|
"onBack-to-years"?: () => any;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { NmorphDateFormatterType, NmorphSelectedDateModelType } from '../..';
|
|
2
|
+
import { INmorphCommonInputProps, NmorphSelectionDateType } from '../../../types';
|
|
3
|
+
export interface INmorphDatePickerProps extends INmorphCommonInputProps {
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
modelValue?: NmorphSelectedDateModelType;
|
|
6
|
+
type?: keyof typeof NmorphSelectionDateType;
|
|
7
|
+
textSeparator?: string;
|
|
8
|
+
initialDate?: Date;
|
|
9
|
+
zIndex?: number;
|
|
10
|
+
dateLocale?: string | string[];
|
|
11
|
+
dateFormatOptions?: Intl.DateTimeFormatOptions;
|
|
12
|
+
dateFormat?: string;
|
|
13
|
+
dateFormatter?: NmorphDateFormatterType;
|
|
14
|
+
valueSeparator?: string;
|
|
15
|
+
rangeSeparator?: string;
|
|
16
|
+
width?: number | string;
|
|
17
|
+
calendarCellHeight?: number | string;
|
|
18
|
+
}
|
|
19
|
+
export interface INmorphDatePickerEmit {
|
|
20
|
+
(e: 'update:model-value', modelValue: NmorphSelectedDateModelType): void;
|
|
21
|
+
}
|
|
@@ -1,28 +1,20 @@
|
|
|
1
|
-
import { INmorphCustomFileData, INmorphFileUploadValidationError
|
|
2
|
-
import {
|
|
1
|
+
import { INmorphCustomFileData, INmorphFileUploadValidationError } from '../..';
|
|
2
|
+
import { INmorphFileUploadProps } from './types';
|
|
3
3
|
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
-
|
|
5
|
-
modelValue?: INmorphCustomFileData[];
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
multiple?: boolean;
|
|
8
|
-
allowedTypes?: Array<NmorphResolutionType | string>;
|
|
9
|
-
photoWithPreview?: boolean;
|
|
10
|
-
buttonText?: string;
|
|
11
|
-
}
|
|
12
|
-
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphFileUploadProps, {
|
|
13
5
|
inputDOMRef: Ref<HTMLElement, HTMLElement>;
|
|
14
6
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
15
7
|
"update:model-value": (val: INmorphCustomFileData[]) => any;
|
|
16
8
|
"on-unsupported-file-type-error": (val: string) => any;
|
|
17
9
|
"on-file-validation-error": (val: INmorphFileUploadValidationError) => any;
|
|
18
|
-
}, string, PublicProps, Readonly<
|
|
10
|
+
}, string, PublicProps, Readonly<INmorphFileUploadProps> & Readonly<{
|
|
19
11
|
"onUpdate:model-value"?: (val: INmorphCustomFileData[]) => any;
|
|
20
12
|
"onOn-unsupported-file-type-error"?: (val: string) => any;
|
|
21
13
|
"onOn-file-validation-error"?: (val: INmorphFileUploadValidationError) => any;
|
|
22
14
|
}>, {
|
|
23
|
-
allowedTypes: string[];
|
|
24
15
|
disabled: boolean;
|
|
25
16
|
modelValue: INmorphCustomFileData[];
|
|
17
|
+
allowedTypes: string[];
|
|
26
18
|
multiple: boolean;
|
|
27
19
|
photoWithPreview: boolean;
|
|
28
20
|
buttonText: string;
|
|
@@ -63,3 +63,20 @@ export interface INmorphFileUploadValidationError {
|
|
|
63
63
|
file: File;
|
|
64
64
|
errors: string[];
|
|
65
65
|
}
|
|
66
|
+
export interface INmorphFileUploadProps {
|
|
67
|
+
id?: string;
|
|
68
|
+
name?: string;
|
|
69
|
+
autocomplete?: string;
|
|
70
|
+
tabindex?: number;
|
|
71
|
+
modelValue?: INmorphCustomFileData[];
|
|
72
|
+
disabled?: boolean;
|
|
73
|
+
multiple?: boolean;
|
|
74
|
+
allowedTypes?: Array<NmorphResolutionType | string>;
|
|
75
|
+
photoWithPreview?: boolean;
|
|
76
|
+
buttonText?: string;
|
|
77
|
+
}
|
|
78
|
+
export interface INmorphFileUploadEmit {
|
|
79
|
+
(e: 'update:model-value', val: INmorphCustomFileData[]): void;
|
|
80
|
+
(e: 'on-unsupported-file-type-error', val: string): void;
|
|
81
|
+
(e: 'on-file-validation-error', val: INmorphFileUploadValidationError): void;
|
|
82
|
+
}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { INmorphFormProps } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
import { INmorphUseFormValidation } from '../../../hooks';
|
|
4
|
-
|
|
5
|
-
value: NmorphFormValueType;
|
|
6
|
-
validateImmediately?: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
3
|
+
import { INmorphUseFormValidation } from '../../../hooks/use-form-validation';
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphFormProps, {
|
|
9
5
|
formData: INmorphUseFormValidation;
|
|
10
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<
|
|
6
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphFormProps> & Readonly<{}>, {
|
|
11
7
|
validateImmediately: boolean;
|
|
12
8
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLFormElement>, {
|
|
13
9
|
default?(_: {}): any;
|
package/dist/src/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.d.ts
CHANGED
|
@@ -1,19 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { INmorphFormItemProps } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
|
|
4
|
-
id: string;
|
|
5
|
-
name?: string;
|
|
6
|
-
autocomplete?: string;
|
|
7
|
-
height?: keyof typeof NmorphComponentHeight;
|
|
8
|
-
label?: string;
|
|
9
|
-
showValidationIcon?: boolean;
|
|
10
|
-
staticErrorBoxSpace?: boolean;
|
|
11
|
-
}
|
|
12
|
-
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphFormItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphFormItemProps> & Readonly<{}>, {
|
|
13
4
|
name: string;
|
|
5
|
+
label: string;
|
|
14
6
|
autocomplete: string;
|
|
15
7
|
height: "basic" | "thick" | "thin";
|
|
16
|
-
label: string;
|
|
17
8
|
showValidationIcon: boolean;
|
|
18
9
|
staticErrorBoxSpace: boolean;
|
|
19
10
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>, {
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
height?: keyof typeof NmorphComponentHeight;
|
|
5
|
-
errors?: string[] | Ref<string[]>;
|
|
6
|
-
staticHeight?: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare const _default: DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
|
|
1
|
+
import { INmorphErrorBoxProps } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, Ref, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<INmorphErrorBoxProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphErrorBoxProps> & Readonly<{}>, {
|
|
9
4
|
height: "basic" | "thick" | "thin";
|
|
10
5
|
errors: string[] | Ref<string[], string[]>;
|
|
11
6
|
staticHeight: boolean;
|