@nmorph/nmorph-ui-kit 2.2.37 → 2.2.39
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.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 +16 -13
- 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.vue.js +43 -42
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue2.js +47 -45
- 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/components/nmorph-tag-item/NmorphTagItem.vue2.js +1 -1
- 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 +66 -64
- package/dist/components/form/nmorph-checkbox/NmorphCheckbox.css +1 -1
- package/dist/components/form/nmorph-checkbox/NmorphCheckbox.vue2.js +28 -26
- package/dist/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue2.js +25 -20
- package/dist/components/form/nmorph-color-picker/NmorphColorPicker.vue.js +18 -22
- package/dist/components/form/nmorph-color-picker/NmorphColorPicker.vue2.js +52 -42
- package/dist/components/form/nmorph-date-picker/NmorphDatePicker.vue2.js +52 -40
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.css +1 -1
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue.js +20 -16
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue2.js +96 -98
- package/dist/components/form/nmorph-form/NmorphForm.vue2.js +9 -9
- package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.css +1 -1
- package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue2.js +33 -24
- 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-form/use-form-item-input.js +29 -8
- package/dist/components/form/nmorph-number-input/NmorphNumberInput.vue2.js +41 -35
- package/dist/components/form/nmorph-otp-input/NmorphOTPInput.vue2.js +65 -61
- package/dist/components/form/nmorph-radio/NmorphRadio.css +1 -1
- package/dist/components/form/nmorph-radio/NmorphRadio.vue2.js +1 -1
- package/dist/components/form/nmorph-radio-group/NmorphRadioGroup.vue2.js +24 -22
- package/dist/components/form/nmorph-select/NmorphSelect.css +1 -1
- package/dist/components/form/nmorph-select/NmorphSelect.vue2.js +90 -78
- 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 +31 -25
- package/dist/components/form/nmorph-slider/NmorphSlider.vue2.js +50 -49
- package/dist/components/form/nmorph-switch/NmorphSwitch.vue2.js +35 -32
- package/dist/components/form/nmorph-text-input/NmorphTextInput.css +1 -1
- package/dist/components/form/nmorph-text-input/NmorphTextInput.vue.js +17 -17
- package/dist/components/form/nmorph-text-input/NmorphTextInput.vue2.js +41 -35
- package/dist/components/form/nmorph-textarea/NmorphTextarea.vue.js +13 -13
- package/dist/components/form/nmorph-textarea/NmorphTextarea.vue2.js +38 -32
- package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue.js +17 -17
- package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue2.js +79 -71
- package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.vue2.js +25 -23
- package/dist/hooks/use-field-validation.js +56 -43
- package/dist/hooks/use-focusable-input.js +27 -0
- package/dist/hooks/use-form-validation.js +62 -24
- package/dist/hooks/use-nmorph-translation.js +4 -4
- 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 +2 -13
- 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 +6 -21
- package/dist/src/components/data/nmorph-avatar/types.d.ts +21 -0
- package/dist/src/components/data/nmorph-badge/NmorphBadge.vue.d.ts +4 -39
- 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 +4 -13
- 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 +3 -18
- package/dist/src/components/data/nmorph-image-preview/types.d.ts +19 -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 +2 -14
- 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 +3 -17
- 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 +5 -8
- 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 +7 -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 +3 -15
- 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 +5 -11
- 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 +5 -21
- 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 +7 -12
- package/dist/src/components/form/nmorph-file-upload/types.d.ts +21 -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 +21 -6
- package/dist/src/components/form/nmorph-form/use-form-item-input.d.ts +10 -0
- 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 +4 -12
- 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 +10 -31
- package/dist/src/components/navigation/nmorph-context-menu/types.d.ts +42 -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-field-validation.d.ts +15 -0
- package/dist/src/hooks/use-focusable-input.d.ts +16 -0
- package/dist/src/hooks/use-form-validation.d.ts +4 -0
- 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 -7
- 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,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
|
+
}
|
|
@@ -1,29 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { NmorphTimePickerModelValueType } from './types';
|
|
1
|
+
import { INmorphTimePickerProps } from './types';
|
|
3
2
|
import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
placeholder?: string;
|
|
7
|
-
hourStep?: number;
|
|
8
|
-
minuteStep?: number;
|
|
9
|
-
secondStep?: number;
|
|
10
|
-
showSeconds?: boolean;
|
|
11
|
-
minTime?: string;
|
|
12
|
-
maxTime?: string;
|
|
13
|
-
clearable?: boolean;
|
|
14
|
-
zIndex?: number;
|
|
15
|
-
width?: number | string;
|
|
16
|
-
}
|
|
17
|
-
declare const _default: DefineComponent<INmorphProps, {
|
|
18
|
-
inputDOMRef: Ref<HTMLElement, HTMLElement>;
|
|
3
|
+
declare const _default: DefineComponent<INmorphTimePickerProps, {
|
|
4
|
+
inputDOMRef: Ref<HTMLDivElement, HTMLDivElement>;
|
|
19
5
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
6
|
+
"update:model-value": (val: string) => any;
|
|
20
7
|
blur: () => any;
|
|
21
8
|
focus: () => any;
|
|
22
|
-
|
|
23
|
-
|
|
9
|
+
}, string, PublicProps, Readonly<INmorphTimePickerProps> & Readonly<{
|
|
10
|
+
"onUpdate:model-value"?: (val: string) => any;
|
|
24
11
|
onBlur?: () => any;
|
|
25
12
|
onFocus?: () => any;
|
|
26
|
-
"onUpdate:model-value"?: (val: string) => any;
|
|
27
13
|
}>, {
|
|
28
14
|
height: "basic" | "thick" | "thin";
|
|
29
15
|
disabled: boolean;
|
|
@@ -1,6 +1,30 @@
|
|
|
1
|
+
import { INmorphCommonInputProps } from '../../../types';
|
|
1
2
|
export type NmorphTimePickerModelValueType = string | null;
|
|
2
3
|
export interface INmorphTimePickerUnit {
|
|
3
4
|
label: string;
|
|
4
5
|
value: number;
|
|
5
6
|
disabled: boolean;
|
|
6
7
|
}
|
|
8
|
+
export interface INmorphTimeParts {
|
|
9
|
+
hour: number;
|
|
10
|
+
minute: number;
|
|
11
|
+
second: number;
|
|
12
|
+
}
|
|
13
|
+
export interface INmorphTimePickerProps extends INmorphCommonInputProps {
|
|
14
|
+
modelValue?: NmorphTimePickerModelValueType;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
hourStep?: number;
|
|
17
|
+
minuteStep?: number;
|
|
18
|
+
secondStep?: number;
|
|
19
|
+
showSeconds?: boolean;
|
|
20
|
+
minTime?: string;
|
|
21
|
+
maxTime?: string;
|
|
22
|
+
clearable?: boolean;
|
|
23
|
+
zIndex?: number;
|
|
24
|
+
width?: number | string;
|
|
25
|
+
}
|
|
26
|
+
export interface INmorphTimePickerEmit {
|
|
27
|
+
(e: 'update:model-value', val: NmorphTimePickerModelValueType): void;
|
|
28
|
+
(e: 'focus'): void;
|
|
29
|
+
(e: 'blur'): void;
|
|
30
|
+
}
|
|
@@ -6,6 +6,6 @@ export { default as NmorphContextMenu } from './nmorph-context-menu/NmorphContex
|
|
|
6
6
|
export * from './nmorph-context-menu/types';
|
|
7
7
|
export { default as NmorphDropdown } from './nmorph-dropdown/NmorphDropdown.vue';
|
|
8
8
|
export { default as NmorphTabs } from './nmorph-tabs/NmorphTabs.vue';
|
|
9
|
-
export * from './nmorph-tabs/
|
|
9
|
+
export * from './nmorph-tabs/types';
|
|
10
10
|
export * from './nmorph-tabs/utils';
|
|
11
11
|
export { default as NmorphTabPane } from './nmorph-tabs/components/nmorph-tab-pane/NmorphTabPane.vue';
|
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { INmorphBacktopProps } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
bottom?: number;
|
|
6
|
-
visibilityHeight?: number;
|
|
7
|
-
design?: NmorphElementDesignType;
|
|
8
|
-
zIndex?: number;
|
|
9
|
-
teleportTo?: string;
|
|
10
|
-
teleportDisabled?: boolean;
|
|
11
|
-
}
|
|
12
|
-
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
3
|
+
import { NmorphElementDesignType } from '../../../types';
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphBacktopProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
13
5
|
click: () => any;
|
|
14
|
-
}, string, PublicProps, Readonly<
|
|
6
|
+
}, string, PublicProps, Readonly<INmorphBacktopProps> & Readonly<{
|
|
15
7
|
onClick?: () => any;
|
|
16
8
|
}>, {
|
|
17
9
|
right: number;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { NmorphElementDesignType } from '../../../types';
|
|
2
|
+
export interface INmorphBacktopProps {
|
|
3
|
+
right?: number;
|
|
4
|
+
bottom?: number;
|
|
5
|
+
visibilityHeight?: number;
|
|
6
|
+
design?: NmorphElementDesignType;
|
|
7
|
+
zIndex?: number;
|
|
8
|
+
teleportTo?: string;
|
|
9
|
+
teleportDisabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface INmorphBacktopEmit {
|
|
12
|
+
(e: 'click'): void;
|
|
13
|
+
}
|
|
14
|
+
export type NmorphBacktopScrollContainer = HTMLElement | Window;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
+
import { INmorphBreadcrumbProps } from './types';
|
|
1
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
|
|
3
|
-
separator?: string;
|
|
4
|
-
}
|
|
5
|
-
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphBreadcrumbProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphBreadcrumbProps> & Readonly<{}>, {
|
|
6
4
|
separator: string;
|
|
7
5
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>, {
|
|
8
6
|
default?(_: {}): any;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { INmorphBreadcrumbItemComponentProps } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphBreadcrumbItemComponentProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphBreadcrumbItemComponentProps> & Readonly<{}>, {
|
|
6
4
|
replace: boolean;
|
|
7
5
|
to: string | object;
|
|
8
6
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
@@ -1,40 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { NmorphContextMenuOption } from './types';
|
|
1
|
+
import { INmorphContextMenuProps, NmorphContextMenuOption, NmorphContextMenuTrigger } from './types';
|
|
3
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
modelValue?: boolean | null;
|
|
7
|
-
options?: NmorphContextMenuOption[];
|
|
8
|
-
trigger?: NmorphContextMenuTrigger;
|
|
9
|
-
placement?: NmorphPlacementType;
|
|
10
|
-
width?: number | string;
|
|
11
|
-
minWidth?: number | string;
|
|
12
|
-
maxWidth?: number | string;
|
|
13
|
-
xOffset?: number;
|
|
14
|
-
yOffset?: number;
|
|
15
|
-
fillWidth?: boolean;
|
|
16
|
-
zIndex?: number;
|
|
17
|
-
closeOnEscape?: boolean;
|
|
18
|
-
trapFocus?: boolean;
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
closeOnScroll?: boolean;
|
|
21
|
-
role?: string;
|
|
22
|
-
ariaLabel?: string;
|
|
23
|
-
hideShadow?: boolean;
|
|
24
|
-
}
|
|
25
|
-
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
3
|
+
import { NmorphPlacementType } from '../../../types';
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphContextMenuProps, {
|
|
26
5
|
close: () => void;
|
|
27
6
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
28
|
-
close: () => any;
|
|
29
|
-
select: (option: NmorphContextMenuOption, index: number) => any;
|
|
30
7
|
"update:model-value": (value: boolean) => any;
|
|
8
|
+
select: (option: NmorphContextMenuOption, index: number) => any;
|
|
9
|
+
close: () => any;
|
|
31
10
|
"on-outside-click": () => any;
|
|
32
11
|
"on-escape-keydown": () => any;
|
|
33
12
|
open: (event: MouseEvent | KeyboardEvent) => any;
|
|
34
|
-
}, string, PublicProps, Readonly<
|
|
35
|
-
onClose?: () => any;
|
|
36
|
-
onSelect?: (option: NmorphContextMenuOption, index: number) => any;
|
|
13
|
+
}, string, PublicProps, Readonly<INmorphContextMenuProps> & Readonly<{
|
|
37
14
|
"onUpdate:model-value"?: (value: boolean) => any;
|
|
15
|
+
onSelect?: (option: NmorphContextMenuOption, index: number) => any;
|
|
16
|
+
onClose?: () => any;
|
|
38
17
|
"onOn-outside-click"?: () => any;
|
|
39
18
|
"onOn-escape-keydown"?: () => any;
|
|
40
19
|
onOpen?: (event: MouseEvent | KeyboardEvent) => any;
|
|
@@ -50,9 +29,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
|
50
29
|
ariaLabel: string;
|
|
51
30
|
options: NmorphContextMenuOption[];
|
|
52
31
|
placement: NmorphPlacementType;
|
|
53
|
-
maxWidth: string | number;
|
|
54
|
-
xOffset: number;
|
|
55
32
|
yOffset: number;
|
|
33
|
+
xOffset: number;
|
|
34
|
+
maxWidth: string | number;
|
|
56
35
|
fillWidth: boolean;
|
|
57
36
|
hideShadow: boolean;
|
|
58
37
|
trigger: NmorphContextMenuTrigger;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NmorphPlacementType } from '../../../types';
|
|
1
2
|
import { Component } from 'vue';
|
|
2
3
|
export type NmorphContextMenuOptionPrimitive = string | number;
|
|
3
4
|
export interface INmorphContextMenuOption {
|
|
@@ -10,3 +11,44 @@ export interface INmorphContextMenuOption {
|
|
|
10
11
|
closeOnClick?: boolean;
|
|
11
12
|
}
|
|
12
13
|
export type NmorphContextMenuOption = NmorphContextMenuOptionPrimitive | INmorphContextMenuOption;
|
|
14
|
+
export type NmorphContextMenuTrigger = 'contextmenu' | 'click' | 'both';
|
|
15
|
+
export type NmorphContextMenuAnchorType = 'point' | 'element';
|
|
16
|
+
export interface INmorphNormalizedContextMenuOption {
|
|
17
|
+
key: string;
|
|
18
|
+
label?: string | number;
|
|
19
|
+
value: unknown;
|
|
20
|
+
component?: Component;
|
|
21
|
+
componentProps?: Record<string, unknown>;
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
color?: string;
|
|
24
|
+
closeOnClick: boolean;
|
|
25
|
+
raw: NmorphContextMenuOption;
|
|
26
|
+
}
|
|
27
|
+
export interface INmorphContextMenuProps {
|
|
28
|
+
modelValue?: boolean | null;
|
|
29
|
+
options?: NmorphContextMenuOption[];
|
|
30
|
+
trigger?: NmorphContextMenuTrigger;
|
|
31
|
+
placement?: NmorphPlacementType;
|
|
32
|
+
width?: number | string;
|
|
33
|
+
minWidth?: number | string;
|
|
34
|
+
maxWidth?: number | string;
|
|
35
|
+
xOffset?: number;
|
|
36
|
+
yOffset?: number;
|
|
37
|
+
fillWidth?: boolean;
|
|
38
|
+
zIndex?: number;
|
|
39
|
+
closeOnEscape?: boolean;
|
|
40
|
+
trapFocus?: boolean;
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
closeOnScroll?: boolean;
|
|
43
|
+
role?: string;
|
|
44
|
+
ariaLabel?: string;
|
|
45
|
+
hideShadow?: boolean;
|
|
46
|
+
}
|
|
47
|
+
export interface INmorphContextMenuEmit {
|
|
48
|
+
(e: 'update:model-value', value: boolean): void;
|
|
49
|
+
(e: 'open', event: MouseEvent | KeyboardEvent): void;
|
|
50
|
+
(e: 'close'): void;
|
|
51
|
+
(e: 'select', option: NmorphContextMenuOption, index: number): void;
|
|
52
|
+
(e: 'on-outside-click'): void;
|
|
53
|
+
(e: 'on-escape-keydown'): void;
|
|
54
|
+
}
|
|
@@ -1,28 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { INmorphDropdownProps } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
relativeElement: NmorphDomElementType;
|
|
6
|
-
placement?: NmorphPlacementType;
|
|
7
|
-
width?: number | string;
|
|
8
|
-
minWidth?: number | string;
|
|
9
|
-
maxWidth?: number | string;
|
|
10
|
-
xOffset?: number;
|
|
11
|
-
yOffset?: number;
|
|
12
|
-
fillWidth?: boolean;
|
|
13
|
-
zIndex?: number;
|
|
14
|
-
closeOnEscape?: boolean;
|
|
15
|
-
trapFocus?: boolean;
|
|
16
|
-
restoreFocus?: boolean;
|
|
17
|
-
role?: string;
|
|
18
|
-
ariaLabel?: string;
|
|
19
|
-
contentClass?: string;
|
|
20
|
-
hideShadow?: boolean;
|
|
21
|
-
}
|
|
22
|
-
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
3
|
+
import { NmorphPlacementType } from '../../../types';
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphDropdownProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
23
5
|
"on-outside-click": () => any;
|
|
24
6
|
"on-escape-keydown": () => any;
|
|
25
|
-
}, string, PublicProps, Readonly<
|
|
7
|
+
}, string, PublicProps, Readonly<INmorphDropdownProps> & Readonly<{
|
|
26
8
|
"onOn-outside-click"?: () => any;
|
|
27
9
|
"onOn-escape-keydown"?: () => any;
|
|
28
10
|
}>, {
|
|
@@ -36,9 +18,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
|
36
18
|
role: string;
|
|
37
19
|
ariaLabel: string;
|
|
38
20
|
placement: NmorphPlacementType;
|
|
39
|
-
maxWidth: string | number;
|
|
40
|
-
xOffset: number;
|
|
41
21
|
yOffset: number;
|
|
22
|
+
xOffset: number;
|
|
23
|
+
maxWidth: string | number;
|
|
42
24
|
fillWidth: boolean;
|
|
43
25
|
hideShadow: boolean;
|
|
44
26
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { NmorphDomElementType, NmorphPlacementType } from '../../../types';
|
|
2
|
+
export interface INmorphDropdownProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
relativeElement: NmorphDomElementType;
|
|
5
|
+
placement?: NmorphPlacementType;
|
|
6
|
+
width?: number | string;
|
|
7
|
+
minWidth?: number | string;
|
|
8
|
+
maxWidth?: number | string;
|
|
9
|
+
xOffset?: number;
|
|
10
|
+
yOffset?: number;
|
|
11
|
+
fillWidth?: boolean;
|
|
12
|
+
zIndex?: number;
|
|
13
|
+
closeOnEscape?: boolean;
|
|
14
|
+
trapFocus?: boolean;
|
|
15
|
+
restoreFocus?: boolean;
|
|
16
|
+
role?: string;
|
|
17
|
+
ariaLabel?: string;
|
|
18
|
+
contentClass?: string;
|
|
19
|
+
hideShadow?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface INmorphDropdownEmit {
|
|
22
|
+
(e: 'on-outside-click'): void;
|
|
23
|
+
(e: 'on-escape-keydown'): void;
|
|
24
|
+
}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import { INmorphTabPaneProps,
|
|
1
|
+
import { INmorphTabPaneProps, INmorphTabsProps } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
stretch?: boolean;
|
|
6
|
-
panes?: Array<INmorphTabPaneProps>;
|
|
7
|
-
}
|
|
8
|
-
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
3
|
+
import { NmorphTableModelType } from '../..';
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphTabsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
9
5
|
"update:model-value": (value: NmorphTableModelType) => any;
|
|
10
6
|
"tab-change": (value: NmorphTableModelType) => any;
|
|
11
|
-
}, string, PublicProps, Readonly<
|
|
7
|
+
}, string, PublicProps, Readonly<INmorphTabsProps> & Readonly<{
|
|
12
8
|
"onUpdate:model-value"?: (value: NmorphTableModelType) => any;
|
|
13
9
|
"onTab-change"?: (value: NmorphTableModelType) => any;
|
|
14
10
|
}>, {
|
package/dist/src/components/navigation/nmorph-tabs/components/nmorph-tab-pane/NmorphTabPane.vue.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { INmorphTabPaneProps } from '
|
|
1
|
+
import { INmorphTabPaneProps } from '../../types';
|
|
2
|
+
import { INmorphTabPaneComponentProps } from './types';
|
|
2
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
|
|
6
|
-
disabled: boolean;
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphTabPaneComponentProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphTabPaneComponentProps> & Readonly<{}>, {
|
|
7
5
|
label: string;
|
|
6
|
+
disabled: boolean;
|
|
8
7
|
content: string;
|
|
9
8
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
10
9
|
label?(_: {
|
|
@@ -10,3 +10,12 @@ export interface INmorphTabsDataProvider {
|
|
|
10
10
|
tabsData: Ref<INmorphTabPaneProps[]>;
|
|
11
11
|
tabsIdentifier: string;
|
|
12
12
|
}
|
|
13
|
+
export interface INmorphTabsProps {
|
|
14
|
+
modelValue?: NmorphTableModelType;
|
|
15
|
+
stretch?: boolean;
|
|
16
|
+
panes?: Array<INmorphTabPaneProps>;
|
|
17
|
+
}
|
|
18
|
+
export interface INmorphTabsEmit {
|
|
19
|
+
(e: 'update:model-value', value: NmorphTableModelType): void;
|
|
20
|
+
(e: 'tab-change', value: NmorphTableModelType): void;
|
|
21
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { NmorphTableModelType } from './
|
|
1
|
+
import { NmorphTableModelType } from './types';
|
|
2
2
|
export declare const getTabLabelId: (tabsIdentifier: string | undefined, name: NmorphTableModelType) => string;
|
|
3
3
|
export declare const getTabContentId: (tabsIdentifier: string | undefined, name: NmorphTableModelType) => string;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { NmorphDirectionType } from '
|
|
1
|
+
import { INmorphDividerProps, NmorphDirectionType } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
|
|
4
|
-
direction?: NmorphDirectionType;
|
|
5
|
-
}
|
|
6
|
-
declare const _default: DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
|
|
3
|
+
declare const _default: DefineComponent<INmorphDividerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphDividerProps> & Readonly<{}>, {
|
|
7
4
|
direction: NmorphDirectionType;
|
|
8
5
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
9
6
|
export default _default;
|
|
@@ -1,18 +1,9 @@
|
|
|
1
|
+
import { INmorphOverlayProps } from './types';
|
|
1
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
|
|
3
|
-
show: boolean;
|
|
4
|
-
transparent?: boolean;
|
|
5
|
-
zIndex?: number;
|
|
6
|
-
teleportTo?: string | HTMLElement;
|
|
7
|
-
disabledTeleport?: boolean;
|
|
8
|
-
closeOnEscape?: boolean;
|
|
9
|
-
trapFocus?: boolean;
|
|
10
|
-
restoreFocus?: boolean;
|
|
11
|
-
}
|
|
12
|
-
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphOverlayProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
13
4
|
"on-outside-click": () => any;
|
|
14
5
|
"on-escape-keydown": () => any;
|
|
15
|
-
}, string, PublicProps, Readonly<
|
|
6
|
+
}, string, PublicProps, Readonly<INmorphOverlayProps> & Readonly<{
|
|
16
7
|
"onOn-outside-click"?: () => any;
|
|
17
8
|
"onOn-escape-keydown"?: () => any;
|
|
18
9
|
}>, {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface INmorphOverlayProps {
|
|
2
|
+
show: boolean;
|
|
3
|
+
transparent?: boolean;
|
|
4
|
+
zIndex?: number;
|
|
5
|
+
teleportTo?: string | HTMLElement;
|
|
6
|
+
disabledTeleport?: boolean;
|
|
7
|
+
closeOnEscape?: boolean;
|
|
8
|
+
trapFocus?: boolean;
|
|
9
|
+
restoreFocus?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface INmorphOverlayEmit {
|
|
12
|
+
(e: 'on-outside-click'): void;
|
|
13
|
+
(e: 'on-escape-keydown'): void;
|
|
14
|
+
}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { INmorphNotificationProviderProps } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
|
|
4
|
-
notifications: INmorphNotification[];
|
|
5
|
-
placement?: TNmorphNotificationPlacement;
|
|
6
|
-
zIndex?: number;
|
|
7
|
-
quantity?: number;
|
|
8
|
-
}
|
|
9
|
-
declare const _default: DefineComponent<INmorphProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphProps> & Readonly<{}>, {
|
|
3
|
+
declare const _default: DefineComponent<INmorphNotificationProviderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<INmorphNotificationProviderProps> & Readonly<{}>, {
|
|
10
4
|
zIndex: number;
|
|
11
5
|
placement: "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top-center" | "bottom-center";
|
|
12
6
|
quantity: number;
|
|
@@ -14,3 +14,12 @@ export declare enum NmorphNotificationPlacement {
|
|
|
14
14
|
'bottom-right' = "bottom-right"
|
|
15
15
|
}
|
|
16
16
|
export type TNmorphNotificationPlacement = keyof typeof NmorphNotificationPlacement;
|
|
17
|
+
export type TNmorphNotificationItem = INmorphNotification & {
|
|
18
|
+
id: string;
|
|
19
|
+
};
|
|
20
|
+
export interface INmorphNotificationProviderProps {
|
|
21
|
+
notifications: INmorphNotification[];
|
|
22
|
+
placement?: TNmorphNotificationPlacement;
|
|
23
|
+
zIndex?: number;
|
|
24
|
+
quantity?: number;
|
|
25
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { NmorphAvailableFormValueType } from '../components/form/nmorph-form/types';
|
|
2
|
+
import { NmorphResolutionType } from '../components/form/nmorph-file-upload/types';
|
|
2
3
|
import { Ref } from 'vue';
|
|
3
4
|
export declare const enum NmorphArrayValidationOperator {
|
|
4
5
|
'contains-one' = "contains-one",
|
|
@@ -22,6 +23,12 @@ export interface INmorphRule {
|
|
|
22
23
|
booleanCompareType?: keyof typeof NmorphBooleanCompareOperator;
|
|
23
24
|
arrayCompareType?: keyof typeof NmorphArrayValidationOperator;
|
|
24
25
|
compareValue?: boolean | number | string | string[];
|
|
26
|
+
maxFileSize?: number;
|
|
27
|
+
fileMaxSize?: number;
|
|
28
|
+
allowedTypes?: Array<NmorphResolutionType | string>;
|
|
29
|
+
fileAllowedTypes?: Array<NmorphResolutionType | string>;
|
|
30
|
+
maxFiles?: number;
|
|
31
|
+
fileMaxCount?: number;
|
|
25
32
|
error: string;
|
|
26
33
|
}
|
|
27
34
|
export type NmorphValidationInputValueType = NmorphAvailableFormValueType | null;
|
|
@@ -45,6 +52,14 @@ export interface INmorphCheckboxGroupValidationRule extends INmorphRule {
|
|
|
45
52
|
arrayCompareType: keyof typeof NmorphArrayValidationOperator;
|
|
46
53
|
compareValue: string[];
|
|
47
54
|
}
|
|
55
|
+
export interface INmorphFileValidationRule extends INmorphRule {
|
|
56
|
+
maxFileSize?: number;
|
|
57
|
+
fileMaxSize?: number;
|
|
58
|
+
allowedTypes?: Array<NmorphResolutionType | string>;
|
|
59
|
+
fileAllowedTypes?: Array<NmorphResolutionType | string>;
|
|
60
|
+
maxFiles?: number;
|
|
61
|
+
fileMaxCount?: number;
|
|
62
|
+
}
|
|
48
63
|
export declare const useFieldValidation: (data: INmorphUseValidationPayload) => {
|
|
49
64
|
touched: Ref<boolean, boolean>;
|
|
50
65
|
valid: Ref<boolean, boolean>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
interface INmorphFocusableInputOptions {
|
|
3
|
+
onFocus?: () => void;
|
|
4
|
+
onBlur?: () => void;
|
|
5
|
+
}
|
|
6
|
+
interface INmorphFocusableInputReturn<TElement extends HTMLElement = HTMLElement> {
|
|
7
|
+
elementRef: Ref<TElement | null>;
|
|
8
|
+
focused: Ref<boolean>;
|
|
9
|
+
handleFocus: () => void;
|
|
10
|
+
handleBlur: () => void;
|
|
11
|
+
focus: () => void;
|
|
12
|
+
blur: () => void;
|
|
13
|
+
select: () => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const useFocusableInput: <TElement extends HTMLElement = HTMLElement>(options?: INmorphFocusableInputOptions) => INmorphFocusableInputReturn<TElement>;
|
|
16
|
+
export {};
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
+
import { useFieldValidation, NmorphValidationInputValueType } from './use-field-validation';
|
|
2
3
|
import { NmorphFormValueType } from '../components/form/nmorph-form/types';
|
|
3
4
|
export interface INmorphUseFormValidation {
|
|
5
|
+
formValue: NmorphFormValueType;
|
|
4
6
|
fields: Record<string, {
|
|
5
7
|
touched: Ref<boolean>;
|
|
6
8
|
valid: Ref<boolean>;
|
|
7
9
|
errors: Ref<string[]>;
|
|
8
10
|
validate: () => void;
|
|
9
11
|
}>;
|
|
12
|
+
updateFieldValue: (fieldName: string, value: NmorphValidationInputValueType) => void;
|
|
13
|
+
validateField: (fieldName: string, inputValue?: NmorphValidationInputValueType) => ReturnType<typeof useFieldValidation> | undefined;
|
|
10
14
|
isFormValid: Ref<boolean>;
|
|
11
15
|
isAnyTouched: Ref<boolean>;
|
|
12
16
|
}
|
package/dist/src/plugin.d.ts
CHANGED
|
@@ -3,7 +3,10 @@ export { default as ru } from './locales/ru.js';
|
|
|
3
3
|
export { default as zh } from './locales/zh.js';
|
|
4
4
|
export { default as en } from './locales/en.js';
|
|
5
5
|
export { nmorphLog } from './outside-utils';
|
|
6
|
-
export {
|
|
6
|
+
export { useNmorphBrowser } from './outside-hooks/use-nmorph-browser';
|
|
7
|
+
export { useNmorph } from './outside-hooks/use-nmorph';
|
|
8
|
+
export { useNmorphNotification } from './outside-hooks/use-nmorph-notification';
|
|
9
|
+
export { useNmorphTheme } from './outside-hooks/use-nmorph-theme';
|
|
7
10
|
export { getNmorphThemeStyles } from './outside-hooks/use-nmorph-theme';
|
|
8
11
|
export { getCommonStyles } from './hooks/use-common-styles';
|
|
9
12
|
export * from './types/index.ts';
|