@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,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,43 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { NmorphContextMenuOption } from './types';
|
|
1
|
+
import { INmorphContextMenuProps, NmorphContextMenuOpenEvent, NmorphContextMenuOption, NmorphContextMenuTrigger } from './types';
|
|
3
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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, {
|
|
5
|
+
openAt: (x: number, y: number, event?: NmorphContextMenuOpenEvent) => void;
|
|
6
|
+
openAtElement: (element: HTMLElement, event?: NmorphContextMenuOpenEvent) => void;
|
|
26
7
|
close: () => void;
|
|
27
8
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
28
|
-
close: () => any;
|
|
29
|
-
select: (option: NmorphContextMenuOption, index: number) => any;
|
|
30
9
|
"update:model-value": (value: boolean) => any;
|
|
10
|
+
select: (option: NmorphContextMenuOption, index: number) => any;
|
|
11
|
+
close: () => any;
|
|
31
12
|
"on-outside-click": () => any;
|
|
32
13
|
"on-escape-keydown": () => any;
|
|
33
|
-
open: (event
|
|
34
|
-
}, string, PublicProps, Readonly<
|
|
35
|
-
onClose?: () => any;
|
|
36
|
-
onSelect?: (option: NmorphContextMenuOption, index: number) => any;
|
|
14
|
+
open: (event?: NmorphContextMenuOpenEvent) => any;
|
|
15
|
+
}, string, PublicProps, Readonly<INmorphContextMenuProps> & Readonly<{
|
|
37
16
|
"onUpdate:model-value"?: (value: boolean) => any;
|
|
17
|
+
onSelect?: (option: NmorphContextMenuOption, index: number) => any;
|
|
18
|
+
onClose?: () => any;
|
|
38
19
|
"onOn-outside-click"?: () => any;
|
|
39
20
|
"onOn-escape-keydown"?: () => any;
|
|
40
|
-
onOpen?: (event
|
|
21
|
+
onOpen?: (event?: NmorphContextMenuOpenEvent) => any;
|
|
41
22
|
}>, {
|
|
42
23
|
disabled: boolean;
|
|
43
24
|
width: string | number;
|
|
@@ -50,9 +31,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<INmorphProps, {
|
|
|
50
31
|
ariaLabel: string;
|
|
51
32
|
options: NmorphContextMenuOption[];
|
|
52
33
|
placement: NmorphPlacementType;
|
|
53
|
-
maxWidth: string | number;
|
|
54
|
-
xOffset: number;
|
|
55
34
|
yOffset: number;
|
|
35
|
+
xOffset: number;
|
|
36
|
+
maxWidth: string | number;
|
|
56
37
|
fillWidth: boolean;
|
|
57
38
|
hideShadow: boolean;
|
|
58
39
|
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,50 @@ export interface INmorphContextMenuOption {
|
|
|
10
11
|
closeOnClick?: boolean;
|
|
11
12
|
}
|
|
12
13
|
export type NmorphContextMenuOption = NmorphContextMenuOptionPrimitive | INmorphContextMenuOption;
|
|
14
|
+
export type NmorphContextMenuTrigger = 'contextmenu' | 'click' | 'both' | 'longpress' | 'manual';
|
|
15
|
+
export type NmorphContextMenuAnchorType = 'point' | 'element';
|
|
16
|
+
export type NmorphContextMenuOpenEvent = MouseEvent | KeyboardEvent | PointerEvent | Event;
|
|
17
|
+
export interface INmorphNormalizedContextMenuOption {
|
|
18
|
+
key: string;
|
|
19
|
+
label?: string | number;
|
|
20
|
+
value: unknown;
|
|
21
|
+
component?: Component;
|
|
22
|
+
componentProps?: Record<string, unknown>;
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
color?: string;
|
|
25
|
+
closeOnClick: boolean;
|
|
26
|
+
raw: NmorphContextMenuOption;
|
|
27
|
+
}
|
|
28
|
+
export interface INmorphContextMenuProps {
|
|
29
|
+
modelValue?: boolean | null;
|
|
30
|
+
options?: NmorphContextMenuOption[];
|
|
31
|
+
trigger?: NmorphContextMenuTrigger;
|
|
32
|
+
placement?: NmorphPlacementType;
|
|
33
|
+
width?: number | string;
|
|
34
|
+
minWidth?: number | string;
|
|
35
|
+
maxWidth?: number | string;
|
|
36
|
+
xOffset?: number;
|
|
37
|
+
yOffset?: number;
|
|
38
|
+
fillWidth?: boolean;
|
|
39
|
+
zIndex?: number;
|
|
40
|
+
closeOnEscape?: boolean;
|
|
41
|
+
trapFocus?: boolean;
|
|
42
|
+
disabled?: boolean;
|
|
43
|
+
closeOnScroll?: boolean;
|
|
44
|
+
role?: string;
|
|
45
|
+
ariaLabel?: string;
|
|
46
|
+
hideShadow?: boolean;
|
|
47
|
+
}
|
|
48
|
+
export interface INmorphContextMenuEmit {
|
|
49
|
+
(e: 'update:model-value', value: boolean): void;
|
|
50
|
+
(e: 'open', event?: NmorphContextMenuOpenEvent): void;
|
|
51
|
+
(e: 'close'): void;
|
|
52
|
+
(e: 'select', option: NmorphContextMenuOption, index: number): void;
|
|
53
|
+
(e: 'on-outside-click'): void;
|
|
54
|
+
(e: 'on-escape-keydown'): void;
|
|
55
|
+
}
|
|
56
|
+
export interface INmorphContextMenuExpose {
|
|
57
|
+
openAt: (x: number, y: number, event?: NmorphContextMenuOpenEvent) => void;
|
|
58
|
+
openAtElement: (element: HTMLElement, event?: NmorphContextMenuOpenEvent) => void;
|
|
59
|
+
close: () => void;
|
|
60
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -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,7 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import { useFieldValidation } from '
|
|
2
|
+
import { useFieldValidation, NmorphValidationInputValueType } from './use-field-validation';
|
|
3
3
|
import { NmorphFormValueType } from '../components/form/nmorph-form/types';
|
|
4
|
-
import { NmorphValidationInputValueType } from './use-field-validation';
|
|
5
4
|
export interface INmorphUseFormValidation {
|
|
6
5
|
formValue: NmorphFormValueType;
|
|
7
6
|
fields: Record<string, {
|
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';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { NmorphFormValidationDataType } from '../components';
|
|
2
|
+
import { useNmorphBrowser } from '../outside-hooks/use-nmorph-browser';
|
|
3
|
+
import { useNmorphTheme } from '../outside-hooks/use-nmorph-theme';
|
|
4
|
+
import { useNmorphZIndex } from '../outside-hooks/use-nmorph-z-index';
|
|
5
|
+
import { INmorphThemeOptions } from './theme.types';
|
|
6
|
+
import { INmorphApplyTranslation } from './translation.types';
|
|
7
|
+
export interface INmorphInstance {
|
|
8
|
+
theme: ReturnType<typeof useNmorphTheme>;
|
|
9
|
+
browser: ReturnType<typeof useNmorphBrowser>;
|
|
10
|
+
zIndex: ReturnType<typeof useNmorphZIndex>;
|
|
11
|
+
}
|
|
12
|
+
export interface INmorphFromDataExpose {
|
|
13
|
+
formData: NmorphFormValidationDataType;
|
|
14
|
+
}
|
|
15
|
+
export interface INmorphOptions {
|
|
16
|
+
theme?: INmorphThemeOptions;
|
|
17
|
+
i18n?: INmorphApplyTranslation;
|
|
18
|
+
zIndex?: {
|
|
19
|
+
base?: number;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { CSSProperties } from 'vue';
|
|
2
|
+
export declare enum NmorphComponentHeight {
|
|
3
|
+
thick = "thick-component",
|
|
4
|
+
basic = "basic-component",
|
|
5
|
+
thin = "thin-component"
|
|
6
|
+
}
|
|
7
|
+
export declare const NmorphSelectionControlHeight: {
|
|
8
|
+
readonly 'extra-thin': "extra-thin-component";
|
|
9
|
+
readonly thick: NmorphComponentHeight.thick;
|
|
10
|
+
readonly basic: NmorphComponentHeight.basic;
|
|
11
|
+
readonly thin: NmorphComponentHeight.thin;
|
|
12
|
+
};
|
|
13
|
+
export type NmorphSelectionControlHeightType = keyof typeof NmorphSelectionControlHeight;
|
|
14
|
+
export declare enum NmorphComponentDirection {
|
|
15
|
+
row = "row",
|
|
16
|
+
column = "column"
|
|
17
|
+
}
|
|
18
|
+
export declare enum NmorphShadowType {
|
|
19
|
+
inset = "shadow-inset",
|
|
20
|
+
outset = "shadow-outset",
|
|
21
|
+
combined = "shadow-combined",
|
|
22
|
+
'not-defined' = "shadow-not-defined"
|
|
23
|
+
}
|
|
24
|
+
export declare enum NmorphColor {
|
|
25
|
+
accent = "accent",
|
|
26
|
+
success = "success",
|
|
27
|
+
error = "error",
|
|
28
|
+
warning = "warning"
|
|
29
|
+
}
|
|
30
|
+
export declare enum NmorphComponentPosition {
|
|
31
|
+
left = "left",
|
|
32
|
+
right = "right",
|
|
33
|
+
top = "top",
|
|
34
|
+
bottom = "bottom"
|
|
35
|
+
}
|
|
36
|
+
export type NmorphPlacementSideType = keyof typeof NmorphComponentPosition;
|
|
37
|
+
export type NmorphPlacementAlignType = 'start' | 'center' | 'end';
|
|
38
|
+
export type NmorphPlacementType = NmorphPlacementSideType | `${NmorphPlacementSideType}-${NmorphPlacementAlignType}`;
|
|
39
|
+
export type NmorphDomElementType = HTMLElement | null;
|
|
40
|
+
export type NmorphElementDesignType = 'nmorph' | 'common';
|
|
41
|
+
export interface INmorphCoords<T> {
|
|
42
|
+
x: T;
|
|
43
|
+
y: T;
|
|
44
|
+
}
|
|
45
|
+
export interface INmorphA11yProps {
|
|
46
|
+
role?: string;
|
|
47
|
+
ariaLabel?: string;
|
|
48
|
+
ariaOrientation?: string;
|
|
49
|
+
}
|
|
50
|
+
export interface INmorphDimensions {
|
|
51
|
+
width: number;
|
|
52
|
+
height: number;
|
|
53
|
+
}
|
|
54
|
+
export type NmorphCSSProperties = CSSProperties & Record<`--${string}`, string | number | undefined>;
|
|
55
|
+
export interface INmorphCommonInputProps {
|
|
56
|
+
id?: string;
|
|
57
|
+
name?: string;
|
|
58
|
+
autocomplete?: string;
|
|
59
|
+
height?: keyof typeof NmorphComponentHeight;
|
|
60
|
+
disabled?: boolean;
|
|
61
|
+
tabindex?: number;
|
|
62
|
+
}
|