@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,9 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
show?: boolean | ComputedRef<boolean>;
|
|
5
|
-
}
|
|
6
|
-
declare const _default: DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
|
|
1
|
+
import { INmorphValidationIconProps } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComputedRef, ComponentProvideOptions } from 'vue';
|
|
3
|
+
declare const _default: DefineComponent<INmorphValidationIconProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphValidationIconProps> & Readonly<{}>, {
|
|
7
4
|
show: boolean | ComputedRef<boolean>;
|
|
8
5
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
9
6
|
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NmorphComponentHeight } from '../../../../../types';
|
|
2
|
+
export interface INmorphFormItemProps {
|
|
3
|
+
id: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
autocomplete?: string;
|
|
6
|
+
height?: keyof typeof NmorphComponentHeight;
|
|
7
|
+
label?: string;
|
|
8
|
+
showValidationIcon?: boolean;
|
|
9
|
+
staticErrorBoxSpace?: boolean;
|
|
10
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NmorphRulesType } from '../../../hooks/use-field-validation';
|
|
2
|
+
import { INmorphUseFormValidation } from '../../../hooks/use-form-validation';
|
|
2
3
|
import { INmorphCustomFileData } from '../nmorph-file-upload/types';
|
|
3
4
|
import { ComputedRef, Ref } from 'vue';
|
|
4
5
|
export type NmorphFileFormValueType = File | File[] | INmorphCustomFileData[];
|
|
@@ -21,3 +22,7 @@ export interface NmorphFormItemInputDataType {
|
|
|
21
22
|
updateValue: (value: NmorphAvailableFormValueType) => void;
|
|
22
23
|
validate: (value?: NmorphAvailableFormValueType) => void;
|
|
23
24
|
}
|
|
25
|
+
export interface INmorphFormProps {
|
|
26
|
+
value: NmorphFormValueType;
|
|
27
|
+
validateImmediately?: boolean;
|
|
28
|
+
}
|
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { INmorphNumberInputProps } from './types';
|
|
2
2
|
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
|
|
4
|
-
modelValue?: number;
|
|
5
|
-
max?: number;
|
|
6
|
-
min?: number;
|
|
7
|
-
step?: number;
|
|
8
|
-
actionBtnPositionRight?: boolean;
|
|
9
|
-
}
|
|
10
|
-
declare const _default: DefineComponent<INmorphProps, {
|
|
3
|
+
declare const _default: DefineComponent<INmorphNumberInputProps, {
|
|
11
4
|
inputDOMRef: Ref<HTMLElement, HTMLElement>;
|
|
12
5
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
13
6
|
"update:model-value": (val: number) => any;
|
|
14
|
-
}, string, PublicProps, Readonly<
|
|
7
|
+
}, string, PublicProps, Readonly<INmorphNumberInputProps> & Readonly<{
|
|
15
8
|
"onUpdate:model-value"?: (val: number) => any;
|
|
16
9
|
}>, {
|
|
17
10
|
height: "basic" | "thick" | "thin";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { INmorphCommonInputProps } from '../../../types';
|
|
2
|
+
export interface INmorphNumberInputProps extends INmorphCommonInputProps {
|
|
3
|
+
modelValue?: number;
|
|
4
|
+
max?: number;
|
|
5
|
+
min?: number;
|
|
6
|
+
step?: number;
|
|
7
|
+
actionBtnPositionRight?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface INmorphNumberInputEmit {
|
|
10
|
+
(e: 'update:model-value', val: number): void;
|
|
11
|
+
}
|
|
@@ -1,26 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { INmorphOTPInputProps, NmorphOtpInputMode } from './types';
|
|
2
2
|
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
|
|
4
|
-
interface INmorphProps extends INmorphCommonInputProps {
|
|
5
|
-
modelValue?: string;
|
|
6
|
-
length?: number;
|
|
7
|
-
mode?: NmorphOtpInputMode;
|
|
8
|
-
autofocus?: boolean;
|
|
9
|
-
autocapitalize?: string;
|
|
10
|
-
}
|
|
11
|
-
declare const _default: DefineComponent<INmorphProps, {
|
|
3
|
+
declare const _default: DefineComponent<INmorphOTPInputProps, {
|
|
12
4
|
inputDOMRefs: Ref<HTMLInputElement[], HTMLInputElement[]>;
|
|
13
5
|
focus: (index?: number) => void;
|
|
14
6
|
blur: () => void;
|
|
15
7
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
8
|
+
"update:model-value": (val: string) => any;
|
|
16
9
|
blur: () => any;
|
|
17
10
|
focus: () => any;
|
|
18
|
-
"update:model-value": (val: string) => any;
|
|
19
11
|
complete: (val: string) => any;
|
|
20
|
-
}, string, PublicProps, Readonly<
|
|
12
|
+
}, string, PublicProps, Readonly<INmorphOTPInputProps> & Readonly<{
|
|
13
|
+
"onUpdate:model-value"?: (val: string) => any;
|
|
21
14
|
onBlur?: () => any;
|
|
22
15
|
onFocus?: () => any;
|
|
23
|
-
"onUpdate:model-value"?: (val: string) => any;
|
|
24
16
|
onComplete?: (val: string) => any;
|
|
25
17
|
}>, {
|
|
26
18
|
length: number;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { INmorphCommonInputProps } from '../../../types';
|
|
2
|
+
export type NmorphOtpInputMode = 'numeric' | 'text' | 'alphanumeric';
|
|
3
|
+
export interface INmorphOTPInputProps extends INmorphCommonInputProps {
|
|
4
|
+
modelValue?: string;
|
|
5
|
+
length?: number;
|
|
6
|
+
mode?: NmorphOtpInputMode;
|
|
7
|
+
autofocus?: boolean;
|
|
8
|
+
autocapitalize?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface INmorphOTPInputEmit {
|
|
11
|
+
(e: 'update:model-value', val: string): void;
|
|
12
|
+
(e: 'focus'): void;
|
|
13
|
+
(e: 'blur'): void;
|
|
14
|
+
(e: 'complete', val: string): void;
|
|
15
|
+
}
|
|
16
|
+
export interface INmorphTextInputExpose {
|
|
17
|
+
inputDOMRef?: HTMLInputElement | null;
|
|
18
|
+
focus?: () => void;
|
|
19
|
+
blur?: () => void;
|
|
20
|
+
select?: () => void;
|
|
21
|
+
}
|
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
import { Ref, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
value?: string;
|
|
5
|
-
styleType?: keyof typeof NmorphRadioStyleType;
|
|
6
|
-
checked?: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
2
|
+
import { INmorphRadioProps } from './types';
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphRadioProps, {
|
|
9
4
|
inputDOMRef: Ref<HTMLElement, HTMLElement>;
|
|
10
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<
|
|
5
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphRadioProps> & Readonly<{}>, {
|
|
11
6
|
value: string;
|
|
7
|
+
label: string;
|
|
12
8
|
styleType: "button" | "radio-style";
|
|
13
9
|
tabindex: number;
|
|
14
10
|
disabled: boolean;
|
|
15
|
-
label: string;
|
|
16
11
|
checked: boolean;
|
|
17
12
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
18
13
|
inputDOMRef: HTMLInputElement;
|
|
@@ -1,16 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { INmorphRadioGroupProps, NmorphListRadioOptionElementType } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
|
|
4
|
-
interface INmorphProps extends Omit<INmorphCommonInputProps, 'height'> {
|
|
5
|
-
modelValue?: string;
|
|
6
|
-
options?: NmorphListRadioOptionElementType[];
|
|
7
|
-
styleType?: keyof typeof NmorphRadioStyleType;
|
|
8
|
-
direction?: keyof typeof NmorphComponentDirection;
|
|
9
|
-
height?: NmorphSelectionControlHeightType;
|
|
10
|
-
}
|
|
11
|
-
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphRadioGroupProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
12
4
|
"update:model-value": (val: string) => any;
|
|
13
|
-
}, string, PublicProps, Readonly<
|
|
5
|
+
}, string, PublicProps, Readonly<INmorphRadioGroupProps> & Readonly<{
|
|
14
6
|
"onUpdate:model-value"?: (val: string) => any;
|
|
15
7
|
}>, {
|
|
16
8
|
styleType: "button" | "radio-style";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { INmorphCommonInputProps, INmorphRadioOption, NmorphComponentDirection, NmorphRadioStyleType, NmorphSelectionControlHeightType } from '../../../types';
|
|
2
|
+
export type NmorphListRadioOptionElementType = Omit<INmorphRadioOption, 'checked'>;
|
|
3
|
+
export interface INmorphRadioGroupProps extends Omit<INmorphCommonInputProps, 'height'> {
|
|
4
|
+
modelValue?: string;
|
|
5
|
+
options?: NmorphListRadioOptionElementType[];
|
|
6
|
+
styleType?: keyof typeof NmorphRadioStyleType;
|
|
7
|
+
direction?: keyof typeof NmorphComponentDirection;
|
|
8
|
+
height?: NmorphSelectionControlHeightType;
|
|
9
|
+
}
|
|
10
|
+
export interface INmorphRadioGroupEmit {
|
|
11
|
+
(e: 'update:model-value', val: string): void;
|
|
12
|
+
}
|
|
@@ -1,27 +1,9 @@
|
|
|
1
|
-
import { INmorphCommonInputProps } from '../../../types';
|
|
2
1
|
import { NmorphSelectModelValueType, INmorphSelectOption } from '../..';
|
|
2
|
+
import { INmorphSelectProps } from './types';
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
-
|
|
5
|
-
noElementPlaceholder?: string;
|
|
6
|
-
valueRequired?: boolean;
|
|
7
|
-
options?: INmorphSelectOption[];
|
|
8
|
-
optionsMap?: INmorphSelectOption[];
|
|
9
|
-
modelValue?: NmorphSelectModelValueType;
|
|
10
|
-
loading?: boolean;
|
|
11
|
-
open?: boolean;
|
|
12
|
-
fill?: boolean;
|
|
13
|
-
optionsWidth?: 'truncate' | 'auto';
|
|
14
|
-
zIndex?: number;
|
|
15
|
-
virtual?: boolean;
|
|
16
|
-
virtualItemHeight?: number;
|
|
17
|
-
virtualMaxHeight?: number | string;
|
|
18
|
-
virtualOverscan?: number;
|
|
19
|
-
virtualDynamicHeight?: boolean;
|
|
20
|
-
width?: number | string;
|
|
21
|
-
}
|
|
22
|
-
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphSelectProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
23
5
|
"update:model-value": (val: NmorphSelectModelValueType) => any;
|
|
24
|
-
}, string, PublicProps, Readonly<
|
|
6
|
+
}, string, PublicProps, Readonly<INmorphSelectProps> & Readonly<{
|
|
25
7
|
"onUpdate:model-value"?: (val: NmorphSelectModelValueType) => any;
|
|
26
8
|
}>, {
|
|
27
9
|
fill: boolean;
|
|
@@ -5,8 +5,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphSelectOp
|
|
|
5
5
|
}, string, PublicProps, Readonly<INmorphSelectOption> & Readonly<{
|
|
6
6
|
"onChange-value"?: (val: string) => any;
|
|
7
7
|
}>, {
|
|
8
|
-
disabled: boolean;
|
|
9
8
|
label: string;
|
|
9
|
+
disabled: boolean;
|
|
10
10
|
focused: boolean;
|
|
11
11
|
hoverBackground: string;
|
|
12
12
|
hoverColor: string;
|
|
@@ -10,3 +10,24 @@ export interface INmorphSelectOption extends INmorphCommonInputProps {
|
|
|
10
10
|
hoverBackground?: string;
|
|
11
11
|
hoverColor?: string;
|
|
12
12
|
}
|
|
13
|
+
export interface INmorphSelectProps extends INmorphCommonInputProps {
|
|
14
|
+
noElementPlaceholder?: string;
|
|
15
|
+
valueRequired?: boolean;
|
|
16
|
+
options?: INmorphSelectOption[];
|
|
17
|
+
optionsMap?: INmorphSelectOption[];
|
|
18
|
+
modelValue?: NmorphSelectModelValueType;
|
|
19
|
+
loading?: boolean;
|
|
20
|
+
open?: boolean;
|
|
21
|
+
fill?: boolean;
|
|
22
|
+
optionsWidth?: 'truncate' | 'auto';
|
|
23
|
+
zIndex?: number;
|
|
24
|
+
virtual?: boolean;
|
|
25
|
+
virtualItemHeight?: number;
|
|
26
|
+
virtualMaxHeight?: number | string;
|
|
27
|
+
virtualOverscan?: number;
|
|
28
|
+
virtualDynamicHeight?: boolean;
|
|
29
|
+
width?: number | string;
|
|
30
|
+
}
|
|
31
|
+
export interface INmorphSelectEmit {
|
|
32
|
+
(e: 'update:model-value', val: NmorphSelectModelValueType): void;
|
|
33
|
+
}
|
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { INmorphSelectButtonOption } from '../..';
|
|
1
|
+
import { INmorphSelectButtonProps } from './types';
|
|
3
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
options?: INmorphSelectButtonOption[];
|
|
7
|
-
fill?: boolean;
|
|
8
|
-
trackPadding?: number | string;
|
|
9
|
-
itemSize?: number | string;
|
|
10
|
-
itemFontSize?: string;
|
|
11
|
-
}
|
|
12
|
-
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
3
|
+
import { INmorphSelectButtonOption } from '../..';
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphSelectButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
13
5
|
"update:model-value": (val: string) => any;
|
|
14
|
-
}, string, PublicProps, Readonly<
|
|
6
|
+
}, string, PublicProps, Readonly<INmorphSelectButtonProps> & Readonly<{
|
|
15
7
|
"onUpdate:model-value"?: (val: string) => any;
|
|
16
8
|
}>, {
|
|
17
9
|
fill: boolean;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { INmorphSelectButtonItemProps } from './types';
|
|
2
2
|
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
|
|
4
|
-
value: string;
|
|
5
|
-
}
|
|
6
|
-
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphSelectButtonItemProps, {
|
|
7
4
|
inputDOMRef: Ref<HTMLElement, HTMLElement>;
|
|
8
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<
|
|
5
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphSelectButtonItemProps> & Readonly<{}>, {
|
|
9
6
|
tabindex: number;
|
|
10
7
|
disabled: boolean;
|
|
11
8
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { INmorphCommonInputProps } from '../../../types';
|
|
1
2
|
import { Ref } from 'vue';
|
|
2
3
|
export type NmorphSelectButtonChangeHandlerInjectionType = (value: string) => void;
|
|
3
4
|
export type NmorphSelectButtonSelectedValueInjectionType = Ref<string>;
|
|
@@ -6,3 +7,14 @@ export interface INmorphSelectButtonOption {
|
|
|
6
7
|
label?: string;
|
|
7
8
|
disabled?: boolean;
|
|
8
9
|
}
|
|
10
|
+
export interface INmorphSelectButtonProps extends INmorphCommonInputProps {
|
|
11
|
+
modelValue?: string;
|
|
12
|
+
options?: INmorphSelectButtonOption[];
|
|
13
|
+
fill?: boolean;
|
|
14
|
+
trackPadding?: number | string;
|
|
15
|
+
itemSize?: number | string;
|
|
16
|
+
itemFontSize?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface INmorphSelectButtonEmit {
|
|
19
|
+
(e: 'update:model-value', val: string): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { INmorphSliderProps } from './types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Attrs, Slot, ComponentPublicInstance, ComponentOptionsBase, Ref, GlobalComponents, GlobalDirectives, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ComponentCustomProperties } from 'vue';
|
|
3
|
+
import { NmorphPlacementType, INmorphCoords } from '../../../types';
|
|
4
|
+
import { INmorphTooltipProps } from '../../feedback/nmorph-tooltip/types';
|
|
5
|
+
import { OnCleanup } from '@vue/reactivity';
|
|
6
|
+
declare const _default: DefineComponent<INmorphSliderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
7
|
+
"update:model-value": (val: number) => any;
|
|
8
|
+
}, string, PublicProps, Readonly<INmorphSliderProps> & Readonly<{
|
|
9
|
+
"onUpdate:model-value"?: (val: number) => any;
|
|
10
|
+
}>, {
|
|
11
|
+
fill: boolean;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
modelValue: number;
|
|
14
|
+
max: number;
|
|
15
|
+
showTooltip: boolean;
|
|
16
|
+
min: number;
|
|
17
|
+
step: number;
|
|
18
|
+
thumbWidth: number;
|
|
19
|
+
sliderHeight: string | number;
|
|
20
|
+
valueFixedContainerHeight: string | number;
|
|
21
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
22
|
+
sliderContainer: HTMLDivElement;
|
|
23
|
+
tooltipRootRef: {
|
|
24
|
+
$: ComponentInternalInstance;
|
|
25
|
+
$data: {};
|
|
26
|
+
$props: Partial<{
|
|
27
|
+
text: string;
|
|
28
|
+
height: string | number;
|
|
29
|
+
width: string | number;
|
|
30
|
+
zIndex: number;
|
|
31
|
+
position: NmorphPlacementType;
|
|
32
|
+
forceShow: boolean;
|
|
33
|
+
forceCoordinate: Partial< INmorphCoords<string>>;
|
|
34
|
+
maxWidth: string | number;
|
|
35
|
+
}> & Omit<{
|
|
36
|
+
readonly text?: string;
|
|
37
|
+
readonly position?: NmorphPlacementType;
|
|
38
|
+
readonly forceShow?: boolean;
|
|
39
|
+
readonly forceCoordinate?: Partial< INmorphCoords<string>>;
|
|
40
|
+
readonly zIndex?: number;
|
|
41
|
+
readonly width?: string | number;
|
|
42
|
+
readonly maxWidth?: string | number;
|
|
43
|
+
readonly height?: string | number;
|
|
44
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "text" | "height" | "width" | "zIndex" | "position" | "forceShow" | "forceCoordinate" | "maxWidth">;
|
|
45
|
+
$attrs: Attrs;
|
|
46
|
+
$refs: {
|
|
47
|
+
[x: string]: unknown;
|
|
48
|
+
} & {
|
|
49
|
+
tooltipDOMRef: HTMLDivElement;
|
|
50
|
+
slotDOMRef: HTMLDivElement;
|
|
51
|
+
tooltipBody: HTMLDivElement;
|
|
52
|
+
};
|
|
53
|
+
$slots: Readonly<{
|
|
54
|
+
[name: string]: Slot<any>;
|
|
55
|
+
}>;
|
|
56
|
+
$root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions>, {}, {}, "", {}, any>;
|
|
57
|
+
$parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions>, {}, {}, "", {}, any>;
|
|
58
|
+
$host: Element;
|
|
59
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
60
|
+
$el: HTMLDivElement;
|
|
61
|
+
$options: ComponentOptionsBase<Readonly< INmorphTooltipProps> & Readonly<{}>, {
|
|
62
|
+
tooltipBody: Ref<HTMLElement, HTMLElement>;
|
|
63
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
64
|
+
text: string;
|
|
65
|
+
height: string | number;
|
|
66
|
+
width: string | number;
|
|
67
|
+
zIndex: number;
|
|
68
|
+
position: NmorphPlacementType;
|
|
69
|
+
forceShow: boolean;
|
|
70
|
+
forceCoordinate: Partial< INmorphCoords<string>>;
|
|
71
|
+
maxWidth: string | number;
|
|
72
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
73
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
74
|
+
created?: (() => void) | (() => void)[];
|
|
75
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
76
|
+
mounted?: (() => void) | (() => void)[];
|
|
77
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
78
|
+
updated?: (() => void) | (() => void)[];
|
|
79
|
+
activated?: (() => void) | (() => void)[];
|
|
80
|
+
deactivated?: (() => void) | (() => void)[];
|
|
81
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
82
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
83
|
+
destroyed?: (() => void) | (() => void)[];
|
|
84
|
+
unmounted?: (() => void) | (() => void)[];
|
|
85
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
86
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
87
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions>, {}, {}, "", {}, any>, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions>, {}, {}, "", {}, any>, info: string) => boolean | void)[];
|
|
88
|
+
};
|
|
89
|
+
$forceUpdate: () => void;
|
|
90
|
+
$nextTick: nextTick;
|
|
91
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: OnCleanup) => any : (args_0: any, args_1: any, args_2: OnCleanup) => any, options?: WatchOptions<boolean>): WatchStopHandle;
|
|
92
|
+
} & Readonly<{
|
|
93
|
+
text: string;
|
|
94
|
+
height: string | number;
|
|
95
|
+
width: string | number;
|
|
96
|
+
zIndex: number;
|
|
97
|
+
position: NmorphPlacementType;
|
|
98
|
+
forceShow: boolean;
|
|
99
|
+
forceCoordinate: Partial< INmorphCoords<string>>;
|
|
100
|
+
maxWidth: string | number;
|
|
101
|
+
}> & Omit<Readonly< INmorphTooltipProps> & Readonly<{}>, "tooltipBody" | ("text" | "height" | "width" | "zIndex" | "position" | "forceShow" | "forceCoordinate" | "maxWidth")> & {
|
|
102
|
+
tooltipBody: HTMLElement;
|
|
103
|
+
} & {} & ComponentCustomProperties & {} & {
|
|
104
|
+
$slots: {
|
|
105
|
+
default?(_: {}): any;
|
|
106
|
+
content?(_: {}): any;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
sliderFirst: HTMLDivElement;
|
|
110
|
+
}, HTMLDivElement>;
|
|
111
|
+
export default _default;
|
|
@@ -1,21 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { INmorphSwitchProps, NmorphSwitchModelType } from './types';
|
|
2
2
|
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
|
|
4
|
-
interface INmorphProps extends Omit<INmorphCommonInputProps, 'height'> {
|
|
5
|
-
modelValue?: NmorphSwitchModelType;
|
|
6
|
-
loading?: boolean;
|
|
7
|
-
activeValue?: NmorphSwitchModelType;
|
|
8
|
-
inactiveValue?: NmorphSwitchModelType;
|
|
9
|
-
width?: number | string;
|
|
10
|
-
height?: number | string;
|
|
11
|
-
offset?: number | string;
|
|
12
|
-
thumbHeight?: number | string;
|
|
13
|
-
}
|
|
14
|
-
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphSwitchProps, {
|
|
15
4
|
inputDOMRef: Ref<HTMLElement, HTMLElement>;
|
|
16
5
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
17
6
|
"update:model-value": (val: string | number | boolean) => any;
|
|
18
|
-
}, string, PublicProps, Readonly<
|
|
7
|
+
}, string, PublicProps, Readonly<INmorphSwitchProps> & Readonly<{
|
|
19
8
|
"onUpdate:model-value"?: (val: string | number | boolean) => any;
|
|
20
9
|
}>, {
|
|
21
10
|
loading: boolean;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { INmorphCommonInputProps } from '../../../types';
|
|
2
|
+
export type NmorphSwitchModelType = boolean | string | number;
|
|
3
|
+
export interface INmorphSwitchProps extends Omit<INmorphCommonInputProps, 'height'> {
|
|
4
|
+
modelValue?: NmorphSwitchModelType;
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
activeValue?: NmorphSwitchModelType;
|
|
7
|
+
inactiveValue?: NmorphSwitchModelType;
|
|
8
|
+
width?: number | string;
|
|
9
|
+
height?: number | string;
|
|
10
|
+
offset?: number | string;
|
|
11
|
+
thumbHeight?: number | string;
|
|
12
|
+
}
|
|
13
|
+
export interface INmorphSwitchEmit {
|
|
14
|
+
(e: 'update:model-value', val: boolean | string | number): void;
|
|
15
|
+
}
|
|
@@ -1,29 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { INmorphTextInputProps } from './types';
|
|
2
2
|
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
typePassword?: boolean;
|
|
6
|
-
modelValue?: string;
|
|
7
|
-
clearable?: boolean;
|
|
8
|
-
indentation?: string;
|
|
9
|
-
inputAttrs?: Record<string, string | number | boolean | undefined>;
|
|
10
|
-
}
|
|
11
|
-
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
12
|
-
inputDOMRef: Ref<HTMLElement, HTMLElement>;
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphTextInputProps, {
|
|
4
|
+
inputDOMRef: Ref<HTMLInputElement, HTMLInputElement>;
|
|
13
5
|
focus: () => void;
|
|
14
6
|
blur: () => void;
|
|
15
7
|
select: () => void;
|
|
16
8
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
9
|
+
"update:model-value": (val: string) => any;
|
|
17
10
|
blur: () => any;
|
|
18
11
|
focus: () => any;
|
|
19
12
|
keydown: (event: KeyboardEvent) => any;
|
|
20
|
-
"update:model-value": (val: string) => any;
|
|
21
13
|
"on-enter": () => any;
|
|
22
|
-
}, string, PublicProps, Readonly<
|
|
14
|
+
}, string, PublicProps, Readonly<INmorphTextInputProps> & Readonly<{
|
|
15
|
+
"onUpdate:model-value"?: (val: string) => any;
|
|
23
16
|
onBlur?: () => any;
|
|
24
17
|
onFocus?: () => any;
|
|
25
18
|
onKeydown?: (event: KeyboardEvent) => any;
|
|
26
|
-
"onUpdate:model-value"?: (val: string) => any;
|
|
27
19
|
"onOn-enter"?: () => any;
|
|
28
20
|
}>, {
|
|
29
21
|
height: "basic" | "thick" | "thin";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { INmorphCommonInputProps } from '../../../types';
|
|
2
|
+
export interface INmorphTextInputProps extends INmorphCommonInputProps {
|
|
3
|
+
placeholder?: string;
|
|
4
|
+
typePassword?: boolean;
|
|
5
|
+
modelValue?: string;
|
|
6
|
+
clearable?: boolean;
|
|
7
|
+
indentation?: string;
|
|
8
|
+
inputAttrs?: Record<string, string | number | boolean | undefined>;
|
|
9
|
+
}
|
|
10
|
+
export interface INmorphTextInputEmit {
|
|
11
|
+
(e: 'update:model-value', val: string): void;
|
|
12
|
+
(e: 'focus'): void;
|
|
13
|
+
(e: 'blur'): void;
|
|
14
|
+
(e: 'on-enter'): void;
|
|
15
|
+
(e: 'keydown', event: KeyboardEvent): void;
|
|
16
|
+
}
|
|
@@ -1,34 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { INmorphTextareaProps, NmorphTextareaResizeType } from './types';
|
|
2
2
|
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
placeholder?: string;
|
|
6
|
-
modelValue?: string;
|
|
7
|
-
rows?: number;
|
|
8
|
-
minRows?: number;
|
|
9
|
-
maxRows?: number;
|
|
10
|
-
resize?: NmorphTextareaResizeType;
|
|
11
|
-
autoSize?: boolean;
|
|
12
|
-
indentation?: string;
|
|
13
|
-
textareaAttrs?: Record<string, string | number | boolean | undefined>;
|
|
14
|
-
}
|
|
15
|
-
declare const _default: DefineComponent<INmorphProps, {
|
|
16
|
-
textareaDOMRef: Ref<HTMLElement, HTMLElement>;
|
|
3
|
+
declare const _default: DefineComponent<INmorphTextareaProps, {
|
|
4
|
+
textareaDOMRef: Ref<HTMLTextAreaElement, HTMLTextAreaElement>;
|
|
17
5
|
focus: () => void;
|
|
18
6
|
blur: () => void;
|
|
19
7
|
select: () => void;
|
|
20
8
|
resizeToContent: () => Promise<void>;
|
|
21
9
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
10
|
+
"update:model-value": (val: string) => any;
|
|
22
11
|
blur: () => any;
|
|
23
12
|
focus: () => any;
|
|
24
13
|
keydown: (event: KeyboardEvent) => any;
|
|
25
|
-
"update:model-value": (val: string) => any;
|
|
26
14
|
"on-enter": () => any;
|
|
27
|
-
}, string, PublicProps, Readonly<
|
|
15
|
+
}, string, PublicProps, Readonly<INmorphTextareaProps> & Readonly<{
|
|
16
|
+
"onUpdate:model-value"?: (val: string) => any;
|
|
28
17
|
onBlur?: () => any;
|
|
29
18
|
onFocus?: () => any;
|
|
30
19
|
onKeydown?: (event: KeyboardEvent) => any;
|
|
31
|
-
"onUpdate:model-value"?: (val: string) => any;
|
|
32
20
|
"onOn-enter"?: () => any;
|
|
33
21
|
}>, {
|
|
34
22
|
height: "basic" | "thick" | "thin";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { INmorphCommonInputProps } from '../../../types';
|
|
2
|
+
export type NmorphTextareaResizeType = 'none' | 'both' | 'horizontal' | 'vertical';
|
|
3
|
+
export interface INmorphTextareaProps extends INmorphCommonInputProps {
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
modelValue?: string;
|
|
6
|
+
rows?: number;
|
|
7
|
+
minRows?: number;
|
|
8
|
+
maxRows?: number;
|
|
9
|
+
resize?: NmorphTextareaResizeType;
|
|
10
|
+
autoSize?: boolean;
|
|
11
|
+
indentation?: string;
|
|
12
|
+
textareaAttrs?: Record<string, string | number | boolean | undefined>;
|
|
13
|
+
}
|
|
14
|
+
export interface INmorphTextareaEmit {
|
|
15
|
+
(e: 'update:model-value', val: string): void;
|
|
16
|
+
(e: 'focus'): void;
|
|
17
|
+
(e: 'blur'): void;
|
|
18
|
+
(e: 'on-enter'): void;
|
|
19
|
+
(e: 'keydown', event: KeyboardEvent): void;
|
|
20
|
+
}
|