@nmorph/nmorph-ui-kit 2.2.59 → 3.0.1
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/assets/icons/expand.svg.js +13 -6
- package/dist/assets/icons/hand.svg.js +21 -0
- package/dist/assets/icons/list-simple.svg.js +21 -0
- package/dist/assets/icons/mute-speaker.svg.js +28 -0
- package/dist/assets/icons/pagination.svg.js +18 -5
- package/dist/assets/icons/speaker.svg.js +21 -0
- package/dist/assets/icons/triangle-down.svg.js +6 -6
- package/dist/assets/icons/video-camera-off.svg.js +28 -0
- package/dist/components/basic/nmorph-button/NmorphButton.css +1 -1
- package/dist/components/basic/nmorph-button/NmorphButton.vue2.js +21 -19
- package/dist/components/basic/nmorph-button/types.js +12 -4
- package/dist/components/basic/nmorph-icon/NmorphIcon.css +1 -1
- package/dist/components/basic/nmorph-icon/NmorphIcon.vue2.js +10 -10
- package/dist/components/basic/nmorph-icon/NmorphIcons.js +406 -395
- package/dist/components/basic/nmorph-icon/types.js +6 -2
- package/dist/components/basic/nmorph-layout/NmorphLayout.css +1 -1
- package/dist/components/basic/nmorph-layout/NmorphLayout.vue2.js +7 -7
- package/dist/components/basic/nmorph-link/NmorphLink.css +1 -1
- package/dist/components/basic/nmorph-link/NmorphLink.vue2.js +7 -7
- package/dist/components/basic/nmorph-link/types.js +7 -2
- package/dist/components/basic/nmorph-scroll/NmorphScroll.css +1 -1
- package/dist/components/basic/nmorph-scroll/NmorphScroll.vue.js +4 -3
- package/dist/components/basic/nmorph-scroll/NmorphScroll.vue2.js +123 -112
- package/dist/components/basic/nmorph-scroll/types.js +13 -3
- package/dist/components/basic/nmorph-space/NmorphSpace.css +1 -1
- package/dist/components/basic/nmorph-space/NmorphSpace.vue2.js +9 -9
- package/dist/components/basic/nmorph-text/NmorphText.vue.js +19 -0
- package/dist/components/basic/nmorph-text/NmorphText.vue2.js +50 -0
- package/dist/components/data/nmorph-audio-meter/NmorphAudioMeter.css +1 -1
- package/dist/components/data/nmorph-audio-meter/NmorphAudioMeter.vue2.js +22 -12
- package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.css +1 -1
- package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.vue2.js +8 -6
- package/dist/components/data/nmorph-avatar/NmorphAvatar.css +1 -1
- package/dist/components/data/nmorph-avatar/NmorphAvatar.vue.js +54 -51
- package/dist/components/data/nmorph-avatar/NmorphAvatar.vue2.js +41 -36
- package/dist/components/data/nmorph-badge/NmorphBadge.css +1 -1
- package/dist/components/data/nmorph-badge/NmorphBadge.vue2.js +47 -51
- package/dist/components/data/nmorph-calendar/NmorphCalendar.css +1 -1
- package/dist/components/data/nmorph-calendar/NmorphCalendar.vue.js +34 -32
- package/dist/components/data/nmorph-calendar/NmorphCalendar.vue2.js +35 -34
- package/dist/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.css +1 -1
- package/dist/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue.js +25 -22
- package/dist/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue2.js +10 -9
- package/dist/components/data/nmorph-card/NmorphCard.css +1 -1
- package/dist/components/data/nmorph-card/NmorphCard.vue2.js +20 -19
- package/dist/components/data/nmorph-carousel/NmorphCarousel.css +1 -0
- package/dist/components/data/nmorph-carousel/NmorphCarousel.vue.js +12 -10
- package/dist/components/data/nmorph-carousel/NmorphCarousel.vue2.js +23 -20
- package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.css +1 -1
- package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.js +29 -17
- package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue2.js +35 -29
- package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.css +1 -1
- package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue.js +12 -12
- package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue2.js +103 -89
- package/dist/components/data/nmorph-empty/NmorphEmpty.css +1 -1
- package/dist/components/data/nmorph-empty/NmorphEmpty.vue2.js +12 -12
- package/dist/components/data/nmorph-file-card/NmorphFileCard.css +1 -1
- package/dist/components/data/nmorph-file-card/NmorphFileCard.vue2.js +2 -2
- package/dist/components/data/nmorph-image/NmorphImage.css +1 -1
- package/dist/components/data/nmorph-image/NmorphImage.vue2.js +32 -20
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.css +1 -1
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue.js +66 -62
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue2.js +53 -51
- package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.css +1 -1
- package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.vue.js +17 -15
- package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.vue2.js +56 -54
- package/dist/components/data/nmorph-media-tile/NmorphMediaTile.css +1 -1
- package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue.js +20 -16
- package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue2.js +16 -14
- package/dist/components/data/nmorph-pagination/NmorphPagination.css +1 -1
- package/dist/components/data/nmorph-pagination/NmorphPagination.vue.js +50 -50
- package/dist/components/data/nmorph-pagination/NmorphPagination.vue2.js +23 -23
- package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.css +1 -1
- package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue.js +14 -12
- package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue2.js +22 -18
- package/dist/components/data/nmorph-progress/NmorphProgress.css +1 -1
- package/dist/components/data/nmorph-progress/NmorphProgress.vue2.js +22 -22
- package/dist/components/data/nmorph-qr-code/NmorphQRCode.css +1 -1
- package/dist/components/data/nmorph-qr-code/NmorphQRCode.vue2.js +18 -19
- package/dist/components/data/nmorph-skeleton/NmorphSkeleton.css +1 -1
- package/dist/components/data/nmorph-skeleton/NmorphSkeleton.vue2.js +5 -5
- package/dist/components/data/nmorph-skeleton/components/NmorphSkeletonItem.css +1 -1
- package/dist/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue.js +7 -7
- package/dist/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue2.js +4 -4
- package/dist/components/data/nmorph-skeleton/types.js +6 -2
- package/dist/components/data/nmorph-table/NmorphTable.css +1 -1
- package/dist/components/data/nmorph-table/NmorphTable.vue2.js +13 -13
- package/dist/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.css +1 -1
- package/dist/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.vue.js +36 -40
- package/dist/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.vue2.js +14 -23
- package/dist/components/data/nmorph-tag-list/NmorphTagList.css +1 -1
- package/dist/components/data/nmorph-tag-list/NmorphTagList.vue.js +38 -44
- package/dist/components/data/nmorph-tag-list/NmorphTagList.vue2.js +14 -29
- 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 +34 -34
- package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.css +1 -1
- package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.vue2.js +26 -22
- package/dist/components/data/nmorph-virtual-list/NmorphVirtualList.css +1 -1
- package/dist/components/data/nmorph-virtual-list/NmorphVirtualList.vue2.js +6 -6
- package/dist/components/feedback/nmorph-alert/NmorphAlert.css +1 -1
- package/dist/components/feedback/nmorph-alert/NmorphAlert.vue2.js +10 -10
- package/dist/components/feedback/nmorph-alert/types.js +6 -1
- package/dist/components/feedback/nmorph-callout/NmorphCallout.css +1 -1
- package/dist/components/feedback/nmorph-callout/NmorphCallout.vue2.js +16 -16
- package/dist/components/feedback/nmorph-dialog/NmorphDialog.css +1 -1
- package/dist/components/feedback/nmorph-dialog/NmorphDialog.vue2.js +36 -35
- package/dist/components/feedback/nmorph-drawer/NmorphDrawer.css +1 -1
- package/dist/components/feedback/nmorph-drawer/NmorphDrawer.vue2.js +9 -9
- package/dist/components/feedback/nmorph-guide/NmorphGuideStep.css +1 -1
- package/dist/components/feedback/nmorph-guide/NmorphGuideStep.vue.js +33 -33
- package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.css +1 -1
- package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue2.js +21 -21
- package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.css +1 -1
- package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.js +21 -18
- package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue2.js +20 -20
- package/dist/components/form/nmorph-checkbox/NmorphCheckbox.css +1 -1
- package/dist/components/form/nmorph-checkbox/NmorphCheckbox.vue.js +15 -15
- package/dist/components/form/nmorph-checkbox/NmorphCheckbox.vue2.js +30 -31
- package/dist/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue.js +20 -21
- package/dist/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue2.js +28 -28
- package/dist/components/form/nmorph-color-picker/NmorphColorPicker.css +1 -1
- package/dist/components/form/nmorph-color-picker/NmorphColorPicker.vue2.js +27 -27
- package/dist/components/form/nmorph-date-picker/NmorphDatePicker.css +1 -1
- package/dist/components/form/nmorph-date-picker/NmorphDatePicker.vue2.js +40 -38
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/NmorphDatePickerHeader.vue.js +94 -108
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/NmorphDatePickerHeader.vue2.js +14 -19
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.vue.js +55 -64
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.vue2.js +32 -37
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.css +1 -1
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue.js +10 -10
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue2.js +1 -1
- package/dist/components/form/nmorph-file-upload/types.js +34 -16
- 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.vue.js +12 -12
- package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue2.js +7 -7
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue2.js +6 -6
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/NmorphValidationIcon.css +1 -1
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/NmorphValidationIcon.vue.js +12 -13
- package/dist/components/form/nmorph-number-input/NmorphNumberInput.css +1 -1
- package/dist/components/form/nmorph-number-input/NmorphNumberInput.vue.js +41 -37
- package/dist/components/form/nmorph-number-input/NmorphNumberInput.vue2.js +28 -28
- package/dist/components/form/nmorph-otp-input/NmorphOTPInput.css +1 -1
- package/dist/components/form/nmorph-otp-input/NmorphOTPInput.vue.js +19 -19
- package/dist/components/form/nmorph-otp-input/NmorphOTPInput.vue2.js +37 -37
- package/dist/components/form/nmorph-radio/NmorphRadio.css +1 -1
- package/dist/components/form/nmorph-radio/NmorphRadio.vue.js +4 -4
- package/dist/components/form/nmorph-radio/NmorphRadio.vue2.js +21 -21
- package/dist/components/form/nmorph-radio-group/NmorphRadioGroup.vue.js +18 -18
- package/dist/components/form/nmorph-radio-group/NmorphRadioGroup.vue2.js +21 -21
- package/dist/components/form/nmorph-select/NmorphSelect.css +1 -1
- package/dist/components/form/nmorph-select/NmorphSelect.vue.js +86 -77
- package/dist/components/form/nmorph-select/NmorphSelect.vue2.js +52 -52
- package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.css +1 -1
- package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue2.js +21 -21
- package/dist/components/form/nmorph-select-button/NmorphSelectButton.css +1 -1
- package/dist/components/form/nmorph-select-button/NmorphSelectButton.vue2.js +27 -31
- package/dist/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.css +1 -1
- package/dist/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.vue.js +13 -11
- package/dist/components/form/nmorph-slider/NmorphSlider.css +1 -1
- package/dist/components/form/nmorph-slider/NmorphSlider.vue2.js +52 -47
- package/dist/components/form/nmorph-switch/NmorphSwitch.css +1 -1
- package/dist/components/form/nmorph-switch/NmorphSwitch.vue2.js +26 -26
- package/dist/components/form/nmorph-text-input/NmorphTextInput.css +1 -1
- package/dist/components/form/nmorph-text-input/NmorphTextInput.vue.js +35 -36
- package/dist/components/form/nmorph-text-input/NmorphTextInput.vue2.js +49 -36
- package/dist/components/form/nmorph-textarea/NmorphTextarea.css +1 -1
- package/dist/components/form/nmorph-textarea/NmorphTextarea.vue2.js +18 -18
- package/dist/components/form/nmorph-time-picker/NmorphTimePicker.css +1 -1
- package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue.js +1 -1
- package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue2.js +44 -44
- package/dist/components/navigation/nmorph-backtop/NmorphBacktop.css +1 -1
- package/dist/components/navigation/nmorph-backtop/NmorphBacktop.vue.js +11 -11
- package/dist/components/navigation/nmorph-backtop/NmorphBacktop.vue2.js +15 -15
- package/dist/components/navigation/nmorph-context-menu/NmorphContextMenu.css +1 -1
- package/dist/components/navigation/nmorph-context-menu/NmorphContextMenu.vue2.js +9 -9
- package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.css +1 -1
- package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.vue2.js +6 -5
- package/dist/components/navigation/nmorph-stepper/NmorphStepper.vue2.js +20 -20
- package/dist/components/others/nmorph-divider/NmorphDivider.css +1 -1
- package/dist/components/others/nmorph-divider/NmorphDivider.vue2.js +9 -8
- package/dist/components/others/nmorph-overlay/NmorphOverlay.css +1 -1
- package/dist/components/others/nmorph-overlay/NmorphOverlay.vue.js +13 -13
- package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.css +1 -1
- package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.js +35 -25
- package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue2.js +22 -25
- package/dist/components/providers/nmorph-notification-provider/types.js +9 -2
- package/dist/emoji/base.js +571 -20
- package/dist/hooks/use-common-styles.js +228 -49
- package/dist/hooks/use-field-validation.js +42 -45
- package/dist/hooks/use-virtual-list.js +65 -57
- package/dist/icons.js +406 -395
- package/dist/index.es.js +853 -838
- package/dist/index.umd.js +241 -71
- package/dist/package.json.js +1 -1
- package/dist/plugin.js +37 -34
- package/dist/src/components/basic/index.d.ts +2 -0
- package/dist/src/components/basic/nmorph-button/NmorphButton.vue.d.ts +3 -2
- package/dist/src/components/basic/nmorph-button/types.d.ts +18 -19
- package/dist/src/components/basic/nmorph-icon/NmorphIcon.vue.d.ts +1 -1
- package/dist/src/components/basic/nmorph-icon/NmorphIcons.d.ts +6 -0
- package/dist/src/components/basic/nmorph-icon/types.d.ts +7 -6
- package/dist/src/components/basic/nmorph-link/types.d.ts +9 -8
- package/dist/src/components/basic/nmorph-scroll/types.d.ts +16 -14
- package/dist/src/components/basic/nmorph-text/NmorphText.vue.d.ts +20 -0
- package/dist/src/components/basic/nmorph-text/types.d.ts +12 -0
- package/dist/src/components/data/nmorph-audio-meter/NmorphAudioMeter.vue.d.ts +5 -1
- package/dist/src/components/data/nmorph-audio-meter/types.d.ts +4 -0
- package/dist/src/components/data/nmorph-avatar/NmorphAvatar.vue.d.ts +1 -0
- package/dist/src/components/data/nmorph-avatar/types.d.ts +3 -2
- package/dist/src/components/data/nmorph-badge/NmorphBadge.vue.d.ts +3 -2
- package/dist/src/components/data/nmorph-badge/types.d.ts +3 -8
- package/dist/src/components/data/nmorph-calendar/NmorphCalendar.vue.d.ts +1 -0
- package/dist/src/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue.d.ts +3 -1
- package/dist/src/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/types.d.ts +2 -0
- package/dist/src/components/data/nmorph-calendar/types.d.ts +2 -1
- package/dist/src/components/data/nmorph-card/NmorphCard.vue.d.ts +1 -0
- package/dist/src/components/data/nmorph-card/types.d.ts +2 -1
- package/dist/src/components/data/nmorph-carousel/NmorphCarousel.vue.d.ts +1 -0
- package/dist/src/components/data/nmorph-carousel/types.d.ts +2 -0
- package/dist/src/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-collapse/components/nmorph-collapse-item/types.d.ts +2 -2
- package/dist/src/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue.d.ts +7 -1
- package/dist/src/components/data/nmorph-emoji-picker/types.d.ts +6 -0
- package/dist/src/components/data/nmorph-empty/NmorphEmpty.vue.d.ts +1 -2
- package/dist/src/components/data/nmorph-file-card/NmorphFileCard.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-image/NmorphImage.vue.d.ts +3 -0
- package/dist/src/components/data/nmorph-image/types.d.ts +2 -1
- package/dist/src/components/data/nmorph-image-preview/NmorphImagePreview.vue.d.ts +3 -1
- package/dist/src/components/data/nmorph-image-preview/types.d.ts +2 -0
- package/dist/src/components/data/nmorph-media-gallery/NmorphMediaGallery.vue.d.ts +2 -0
- package/dist/src/components/data/nmorph-media-gallery/types.d.ts +2 -0
- package/dist/src/components/data/nmorph-media-tile/NmorphMediaTile.vue.d.ts +2 -0
- package/dist/src/components/data/nmorph-media-tile/types.d.ts +2 -0
- package/dist/src/components/data/nmorph-pagination/NmorphPagination.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-pagination/types.d.ts +2 -2
- package/dist/src/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue.d.ts +4 -0
- package/dist/src/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue.d.ts +2 -3
- package/dist/src/components/data/nmorph-skeleton/types.d.ts +6 -5
- package/dist/src/components/data/nmorph-table/NmorphTable.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-table/types.d.ts +2 -2
- package/dist/src/components/data/nmorph-tag-list/NmorphTagList.vue.d.ts +3 -4
- package/dist/src/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue.d.ts +2 -3
- package/dist/src/components/data/nmorph-tag-list/types.d.ts +2 -2
- package/dist/src/components/data/nmorph-video-preview/NmorphVideoPreview.vue.d.ts +3 -1
- package/dist/src/components/data/nmorph-video-preview/types.d.ts +2 -0
- package/dist/src/components/data/nmorph-virtual-list/NmorphVirtualList.vue.d.ts +1 -1
- package/dist/src/components/feedback/nmorph-alert/NmorphAlert.vue.d.ts +1 -1
- package/dist/src/components/feedback/nmorph-alert/types.d.ts +8 -7
- package/dist/src/components/feedback/nmorph-callout/NmorphCallout.vue.d.ts +1 -1
- package/dist/src/components/feedback/nmorph-dialog/NmorphDialog.vue.d.ts +1 -1
- package/dist/src/components/feedback/nmorph-dialog/types.d.ts +1 -4
- package/dist/src/components/feedback/nmorph-guide/NmorphGuide.vue.d.ts +1 -1
- package/dist/src/components/feedback/nmorph-tooltip/NmorphTooltip.vue.d.ts +2 -2
- package/dist/src/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-checkbox/NmorphCheckbox.vue.d.ts +2 -17
- package/dist/src/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue.d.ts +2 -15
- package/dist/src/components/form/nmorph-checkbox-group/types.d.ts +4 -6
- package/dist/src/components/form/nmorph-color-picker/NmorphColorPicker.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-date-picker/NmorphDatePicker.vue.d.ts +2 -1
- package/dist/src/components/form/nmorph-date-picker/types.d.ts +1 -0
- package/dist/src/components/form/nmorph-file-upload/types.d.ts +55 -55
- package/dist/src/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/types.d.ts +2 -2
- package/dist/src/components/form/nmorph-form/components/nmorph-form-item/types.d.ts +2 -2
- package/dist/src/components/form/nmorph-number-input/NmorphNumberInput.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-otp-input/NmorphOTPInput.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-radio/NmorphRadio.vue.d.ts +2 -14
- package/dist/src/components/form/nmorph-radio/types.d.ts +6 -4
- package/dist/src/components/form/nmorph-radio-group/NmorphRadioGroup.vue.d.ts +2 -14
- package/dist/src/components/form/nmorph-radio-group/types.d.ts +4 -6
- package/dist/src/components/form/nmorph-select/NmorphSelect.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-select-button/NmorphSelectButton.vue.d.ts +2 -4
- package/dist/src/components/form/nmorph-select-button/components/nmorph-select-button-item/types.d.ts +1 -1
- package/dist/src/components/form/nmorph-select-button/types.d.ts +1 -3
- package/dist/src/components/form/nmorph-slider/NmorphSlider.vue.d.ts +10 -10
- package/dist/src/components/form/nmorph-slider/types.d.ts +1 -1
- package/dist/src/components/form/nmorph-switch/NmorphSwitch.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-switch/types.d.ts +1 -1
- package/dist/src/components/form/nmorph-text-input/NmorphTextInput.vue.d.ts +4 -1
- package/dist/src/components/form/nmorph-text-input/types.d.ts +3 -0
- package/dist/src/components/form/nmorph-textarea/NmorphTextarea.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-time-picker/NmorphTimePicker.vue.d.ts +1 -1
- package/dist/src/components/navigation/nmorph-backtop/NmorphBacktop.vue.d.ts +1 -2
- package/dist/src/components/navigation/nmorph-context-menu/NmorphContextMenu.vue.d.ts +1 -1
- package/dist/src/components/navigation/nmorph-dropdown/NmorphDropdown.vue.d.ts +2 -1
- package/dist/src/components/navigation/nmorph-dropdown/types.d.ts +2 -1
- package/dist/src/components/others/nmorph-divider/NmorphDivider.vue.d.ts +1 -0
- package/dist/src/components/others/nmorph-divider/types.d.ts +2 -0
- package/dist/src/components/others/nmorph-overlay/NmorphOverlay.vue.d.ts +1 -1
- package/dist/src/components/providers/nmorph-notification-provider/types.d.ts +8 -8
- package/dist/src/hooks/use-field-validation.d.ts +21 -24
- package/dist/src/hooks/use-nmorph-translation.d.ts +2 -2
- package/dist/src/types/app.types.d.ts +0 -5
- package/dist/src/types/common.types.d.ts +91 -35
- package/dist/src/types/date.types.d.ts +6 -5
- package/dist/src/types/image.types.d.ts +16 -12
- package/dist/src/types/selection.types.d.ts +19 -14
- package/dist/src/types/table.types.d.ts +6 -5
- package/dist/src/types/translation.types.d.ts +7 -6
- package/dist/src/utils/common.d.ts +2 -2
- package/dist/src/utils/file-types.d.ts +1 -1
- package/dist/src/utils/theme-style.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/types/common.types.js +73 -8
- package/dist/types/date.types.js +6 -2
- package/dist/types/image.types.js +12 -3
- package/dist/types/table.types.js +5 -2
- package/dist/types/translation.types.js +6 -2
- package/dist/utils/common.js +3 -3
- package/dist/utils/file-types.js +6 -7
- package/dist/utils/theme-style.js +42 -48
- package/package.json +1 -1
- package/dist/types/selection.types.js +0 -4
package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue2.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import './NmorphNotificationProvider.css';
|
|
2
|
-
import { defineComponent as U, ref as v, inject as
|
|
3
|
-
import { NmorphNotificationPlacement as
|
|
4
|
-
import
|
|
5
|
-
const k = 500, E = 250,
|
|
2
|
+
import { defineComponent as U, ref as v, inject as V, computed as D, watch as q, onBeforeUnmount as $ } from "vue";
|
|
3
|
+
import { NmorphNotificationPlacement as C } from "./types.js";
|
|
4
|
+
import F from "../../feedback/nmorph-alert/NmorphAlert.vue.js";
|
|
5
|
+
const k = 500, E = 250, J = /* @__PURE__ */ U({
|
|
6
6
|
__name: "NmorphNotificationProvider",
|
|
7
7
|
props: {
|
|
8
8
|
notifications: { type: Array, required: !0 },
|
|
@@ -10,33 +10,30 @@ const k = 500, E = 250, Q = /* @__PURE__ */ U({
|
|
|
10
10
|
zIndex: { type: Number, required: !1, default: void 0 },
|
|
11
11
|
quantity: { type: Number, required: !1, default: 100 }
|
|
12
12
|
},
|
|
13
|
-
setup(O, { expose:
|
|
14
|
-
|
|
15
|
-
const
|
|
13
|
+
setup(O, { expose: z }) {
|
|
14
|
+
z();
|
|
15
|
+
const T = (e) => typeof e.id == "string" && e.id.length > 0, l = v([]), o = v([]), n = v([]), u = v(Date.now()), s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map();
|
|
16
16
|
let a;
|
|
17
|
-
const
|
|
17
|
+
const g = Object.values(C), m = (e) => typeof e.duration != "number" || !Number.isFinite(e.duration) ? 0 : Math.max(e.duration, 0), y = (e) => m(e) > 0, S = (e) => e.showDurationValue !== !1, _ = (e) => {
|
|
18
18
|
const t = m(e), r = d.get(e.id);
|
|
19
19
|
return !t || !r ? t : Math.max(t - (u.value - r), 0);
|
|
20
|
-
},
|
|
21
|
-
"--nmorph-notification-provider-duration": `${m(e)}ms`
|
|
22
|
-
}),
|
|
23
|
-
const t = { ...e };
|
|
24
|
-
return delete t.duration, delete t.placement, delete t.showDurationValue, delete t.width, t;
|
|
25
|
-
}, p = (e, t = !1) => {
|
|
20
|
+
}, x = (e) => e < 1e3 ? `${Math.ceil(e)}ms` : `${Math.ceil(e / 1e3)}s`, j = (e) => x(_(e)), B = (e) => ({
|
|
21
|
+
"--nmorph-private-notification-provider-duration": `${m(e)}ms`
|
|
22
|
+
}), p = (e, t = !1) => {
|
|
26
23
|
const r = s.get(e);
|
|
27
24
|
r && clearTimeout(r), s.delete(e), c.delete(e), t || d.delete(e);
|
|
28
25
|
}, A = (e) => {
|
|
29
26
|
n.value = n.value.filter((t) => t.id !== e), o.value = o.value.filter((t) => t !== e), p(e);
|
|
30
27
|
}, h = (e, t = !0) => {
|
|
31
28
|
o.value.includes(e) || (p(e, !0), t && !l.value.includes(e) && (l.value = [...l.value, e]), o.value = [...o.value, e], setTimeout(() => A(e), k));
|
|
32
|
-
},
|
|
29
|
+
}, w = (e) => {
|
|
33
30
|
const t = m(e);
|
|
34
31
|
c.get(e.id) !== t && (p(e.id), t && (u.value = Date.now(), d.set(e.id, u.value), s.set(
|
|
35
32
|
e.id,
|
|
36
33
|
setTimeout(() => h(e.id), t)
|
|
37
34
|
), c.set(e.id, t)));
|
|
38
|
-
}, f = O, M =
|
|
39
|
-
() =>
|
|
35
|
+
}, f = O, M = V("nmorph", void 0), L = D(
|
|
36
|
+
() => g.map((e) => {
|
|
40
37
|
const t = n.value.filter(
|
|
41
38
|
(i) => (i.placement ?? f.placement) === e
|
|
42
39
|
), r = Math.max(t.length - f.quantity, 0);
|
|
@@ -67,7 +64,7 @@ const k = 500, E = 250, Q = /* @__PURE__ */ U({
|
|
|
67
64
|
), q(
|
|
68
65
|
() => f.notifications,
|
|
69
66
|
(e) => {
|
|
70
|
-
const t = e.filter(
|
|
67
|
+
const t = e.filter(T).filter((r) => !l.value.includes(r.id));
|
|
71
68
|
n.value = n.value.map((r) => {
|
|
72
69
|
const i = t.find((I) => I.id === r.id);
|
|
73
70
|
return i ? { ...r, ...i } : r;
|
|
@@ -75,26 +72,26 @@ const k = 500, E = 250, Q = /* @__PURE__ */ U({
|
|
|
75
72
|
n.value.some(
|
|
76
73
|
(I) => I.id === r.id
|
|
77
74
|
) || n.value.push(r);
|
|
78
|
-
}), t.forEach((r) =>
|
|
75
|
+
}), t.forEach((r) => w(r)), n.value.filter(
|
|
79
76
|
(r) => !t.some((i) => i.id === r.id)
|
|
80
77
|
).forEach((r) => h(r.id, !1));
|
|
81
78
|
},
|
|
82
79
|
{ deep: !0, immediate: !0 }
|
|
83
80
|
);
|
|
84
|
-
const
|
|
85
|
-
|
|
81
|
+
const P = D(() => f.zIndex ?? (M?.zIndex.current.value ?? 1e3) + 1);
|
|
82
|
+
$(() => {
|
|
86
83
|
s.forEach((e) => clearTimeout(e)), s.clear(), c.clear(), d.clear(), N();
|
|
87
84
|
});
|
|
88
|
-
const R = { ANIMATION_DURATION: k, DURATION_TICK_INTERVAL: E, hasNotificationId:
|
|
85
|
+
const R = { ANIMATION_DURATION: k, DURATION_TICK_INTERVAL: E, hasNotificationId: T, removedIds: l, closingIds: o, renderedNotifications: n, durationTick: u, durationTimers: s, durationById: c, durationStartedAtById: d, get durationTicker() {
|
|
89
86
|
return a;
|
|
90
87
|
}, set durationTicker(e) {
|
|
91
88
|
a = e;
|
|
92
|
-
}, placementList:
|
|
93
|
-
return
|
|
89
|
+
}, placementList: g, getNotificationDuration: m, hasDurationIndicator: y, hasDurationValue: S, getNotificationRemainingDuration: _, formatNotificationDuration: x, getNotificationDurationLabel: j, getNotificationStyle: B, clearDurationTimer: p, removeRenderedNotification: A, closeHandler: h, scheduleDurationTimer: w, props: f, nmorph: M, notificationGroups: L, hasRunningDurationIndicator: b, stopDurationTicker: N, zIndex: P, get NmorphAlert() {
|
|
90
|
+
return F;
|
|
94
91
|
} };
|
|
95
92
|
return Object.defineProperty(R, "__isScriptSetup", { enumerable: !1, value: !0 }), R;
|
|
96
93
|
}
|
|
97
94
|
});
|
|
98
95
|
export {
|
|
99
|
-
|
|
96
|
+
J as default
|
|
100
97
|
};
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
const t = {
|
|
2
|
+
"top-left": "top-left",
|
|
3
|
+
"top-center": "top-center",
|
|
4
|
+
"top-right": "top-right",
|
|
5
|
+
"bottom-left": "bottom-left",
|
|
6
|
+
"bottom-center": "bottom-center",
|
|
7
|
+
"bottom-right": "bottom-right"
|
|
8
|
+
};
|
|
2
9
|
export {
|
|
3
|
-
|
|
10
|
+
t as NmorphNotificationPlacement
|
|
4
11
|
};
|