@nmorph/nmorph-ui-kit 2.2.59 → 3.0.0
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/pagination.svg.js +18 -5
- package/dist/assets/icons/speaker-off.svg.js +28 -0
- 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 +20 -20
- 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 +405 -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 +21 -21
- package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue2.js +9 -8
- 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 -23
- 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 +405 -395
- package/dist/index.es.js +854 -840
- package/dist/index.umd.js +245 -75
- 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 +2 -2
- package/dist/src/components/basic/nmorph-button/types.d.ts +17 -19
- package/dist/src/components/basic/nmorph-icon/NmorphIcon.vue.d.ts +1 -1
- package/dist/src/components/basic/nmorph-icon/NmorphIcons.d.ts +5 -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 +1 -0
- package/dist/src/components/data/nmorph-media-tile/types.d.ts +1 -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 -1
- 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 -0
- 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
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import './NmorphEmojiPicker.css';
|
|
2
|
-
import { defineComponent as
|
|
2
|
+
import { defineComponent as me, ref as v, computed as l, watch as D, nextTick as fe } from "vue";
|
|
3
3
|
import { useModifiers as ge } from "../../../utils/create-modifiers.js";
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
4
|
+
import { createCssVariables as ye, createCssSizeVariables as he } from "../../../utils/common.js";
|
|
5
|
+
import be from "../../form/nmorph-text-input/NmorphTextInput.vue.js";
|
|
6
|
+
import je from "../../basic/nmorph-scroll/NmorphScroll.vue.js";
|
|
7
|
+
import ke from "../../../assets/icons/smile.svg.js";
|
|
8
|
+
import Se from "../../../assets/icons/search.svg.js";
|
|
9
|
+
import ve from "../../../assets/icons/burger.svg.js";
|
|
10
10
|
import Le from "../../basic/nmorph-icon/NmorphIcon.vue.js";
|
|
11
11
|
import xe from "../../form/nmorph-checkbox/NmorphCheckbox.vue.js";
|
|
12
|
-
const
|
|
12
|
+
const Me = /* @__PURE__ */ me({
|
|
13
13
|
__name: "NmorphEmojiPicker",
|
|
14
14
|
props: {
|
|
15
15
|
language: { type: String, required: !1, default: "en" },
|
|
@@ -20,13 +20,19 @@ const _e = /* @__PURE__ */ de({
|
|
|
20
20
|
width: { type: [Number, String], required: !1, default: "300px" },
|
|
21
21
|
height: { type: [Number, String], required: !1, default: "260px" },
|
|
22
22
|
columns: { type: Number, required: !1, default: 8 },
|
|
23
|
+
cellSize: { type: [Number, String], required: !1, default: void 0 },
|
|
24
|
+
toggleSize: { type: [Number, String], required: !1, default: void 0 },
|
|
25
|
+
scrollbarSize: { type: [Number, String], required: !1, default: void 0 },
|
|
26
|
+
hoverBackground: { type: String, required: !1, default: void 0 },
|
|
27
|
+
activeBackground: { type: String, required: !1, default: void 0 },
|
|
28
|
+
focusRing: { type: String, required: !1, default: void 0 },
|
|
23
29
|
disabled: { type: Boolean, required: !1, default: !1 },
|
|
24
30
|
hideShadow: { type: Boolean, required: !1, default: !1 }
|
|
25
31
|
},
|
|
26
32
|
emits: ["select", "expand", "collapse"],
|
|
27
33
|
setup(oe, { expose: ne, emit: ae }) {
|
|
28
34
|
ne();
|
|
29
|
-
const
|
|
35
|
+
const a = oe, L = ae, V = v(""), y = v(a.initialExpanded), f = v(""), x = v(0), H = v(null), R = {
|
|
30
36
|
searchPlaceholder: "Search emoji",
|
|
31
37
|
searchLabel: "Search emoji",
|
|
32
38
|
quickLabel: "Frequent emoji",
|
|
@@ -35,131 +41,131 @@ const _e = /* @__PURE__ */ de({
|
|
|
35
41
|
noResults: "No emoji found",
|
|
36
42
|
categoryLabel: "Emoji categories",
|
|
37
43
|
resultsLabel: "Emoji results"
|
|
38
|
-
},
|
|
44
|
+
}, m = (e) => !!e && typeof e == "object" && !Array.isArray(e), I = (e) => e.trim().toLocaleLowerCase(a.language || void 0), d = (e, r) => {
|
|
39
45
|
for (const n of r) {
|
|
40
46
|
const t = e[n];
|
|
41
47
|
if (typeof t == "string" && t.trim()) return t.trim();
|
|
42
48
|
if (typeof t == "number") return String(t);
|
|
43
49
|
}
|
|
44
50
|
return "";
|
|
45
|
-
}, h = (e) => Array.isArray(e) ? e.flatMap(h) : typeof e == "string" ? e.trim() ? [e.trim()] : [] : typeof e == "number" ? [String(e)] :
|
|
51
|
+
}, h = (e) => Array.isArray(e) ? e.flatMap(h) : typeof e == "string" ? e.trim() ? [e.trim()] : [] : typeof e == "number" ? [String(e)] : m(e) ? Object.values(e).flatMap(h) : [], b = (e, r, n) => {
|
|
46
52
|
for (const t of r) {
|
|
47
|
-
const
|
|
53
|
+
const i = e[t], o = typeof i == "number" ? i : Number(i);
|
|
48
54
|
if (Number.isFinite(o)) return o;
|
|
49
55
|
}
|
|
50
56
|
return n;
|
|
51
|
-
},
|
|
57
|
+
}, B = (e, r) => {
|
|
52
58
|
for (const n of r) {
|
|
53
59
|
const t = e[n];
|
|
54
60
|
if (Array.isArray(t)) return t;
|
|
55
61
|
}
|
|
56
62
|
}, j = (e) => {
|
|
57
63
|
if (typeof e == "string") return e.trim();
|
|
58
|
-
if (!
|
|
59
|
-
const r =
|
|
64
|
+
if (!m(e)) return "";
|
|
65
|
+
const r = d(e, ["emoji", "native", "char", "unicode", "value"]);
|
|
60
66
|
if (r) return r;
|
|
61
|
-
const n =
|
|
67
|
+
const n = B(e, ["skinToneVariants", "skins", "variants"])?.[0];
|
|
62
68
|
return j(n);
|
|
63
|
-
},
|
|
69
|
+
}, F = (e) => !!j(e), $ = (e) => Array.isArray(e) ? e.map((r) => {
|
|
64
70
|
const n = j(r);
|
|
65
71
|
if (!n) return null;
|
|
66
72
|
if (typeof r == "string") return { emoji: n };
|
|
67
|
-
const t =
|
|
73
|
+
const t = m(r) ? r : {};
|
|
68
74
|
return {
|
|
69
75
|
emoji: n,
|
|
70
|
-
annotation:
|
|
76
|
+
annotation: d(t, ["annotation", "label", "name", "description"]),
|
|
71
77
|
tags: h(t.tags || t.keywords || t.aliases || t.shortcodes),
|
|
72
|
-
tone:
|
|
78
|
+
tone: d(t, ["tone", "skinTone", "skin_tone"])
|
|
73
79
|
};
|
|
74
80
|
}).filter((r) => !!r) : [], P = (e, r, n) => {
|
|
75
|
-
if (!
|
|
81
|
+
if (!m(e))
|
|
76
82
|
return {
|
|
77
83
|
key: r,
|
|
78
84
|
label: r,
|
|
79
85
|
sort: n
|
|
80
86
|
};
|
|
81
|
-
const t =
|
|
87
|
+
const t = d(e, ["group", "category", "groupName", "categoryName"]) || r, i = d(e, ["groupLabel", "categoryLabel"]) || t, o = b(e, ["groupOrder", "categoryOrder"], Number(t));
|
|
82
88
|
return {
|
|
83
89
|
key: t,
|
|
84
|
-
label:
|
|
90
|
+
label: i,
|
|
85
91
|
sort: Number.isFinite(o) ? o : n
|
|
86
92
|
};
|
|
87
|
-
}, Q = (e, r, n, t,
|
|
93
|
+
}, Q = (e, r, n, t, i) => {
|
|
88
94
|
const o = j(e);
|
|
89
95
|
if (!o) return null;
|
|
90
|
-
const s =
|
|
91
|
-
[o, u, te, ...p, ...
|
|
96
|
+
const s = m(e) ? e : {}, c = P(s, r, t), u = d(s, ["annotation", "label", "name", "description"]) || o, p = h(s.tags || s.keywords || s.aliases || s.shortcodes), w = b(s, ["order", "sortOrder", "sort_order", "index"], i), T = s.skinToneVariants || s.skins || s.variants, q = $(T).filter((A) => A.emoji !== o), S = c.key || r, te = c.label || n || S, de = I(
|
|
97
|
+
[o, u, te, ...p, ...q.map((A) => A.annotation || A.emoji)].filter(Boolean).join(" ")
|
|
92
98
|
);
|
|
93
99
|
return {
|
|
94
|
-
key: `${S}-${
|
|
100
|
+
key: `${S}-${w}-${o}`,
|
|
95
101
|
emoji: o,
|
|
96
102
|
annotation: u,
|
|
97
103
|
tags: p,
|
|
98
104
|
groupKey: S,
|
|
99
105
|
groupLabel: te,
|
|
100
106
|
groupSort: c.sort,
|
|
101
|
-
order:
|
|
102
|
-
skinToneVariants:
|
|
103
|
-
searchText:
|
|
107
|
+
order: w,
|
|
108
|
+
skinToneVariants: q,
|
|
109
|
+
searchText: de
|
|
104
110
|
};
|
|
105
|
-
},
|
|
106
|
-
if (!(!
|
|
107
|
-
return
|
|
111
|
+
}, N = (e) => {
|
|
112
|
+
if (!(!m(e) || F(e)))
|
|
113
|
+
return B(e, ["emojis", "items", "children", "data"]);
|
|
108
114
|
}, U = (e) => {
|
|
109
|
-
const r = [], n = (
|
|
115
|
+
const r = [], n = (i, o = "emoji", s = o, c = 0, u = r.length) => {
|
|
110
116
|
const p = Q(
|
|
111
|
-
|
|
117
|
+
i,
|
|
112
118
|
o,
|
|
113
119
|
s,
|
|
114
120
|
c,
|
|
115
121
|
u
|
|
116
122
|
);
|
|
117
123
|
p && r.push(p);
|
|
118
|
-
}, t = (
|
|
119
|
-
const c =
|
|
124
|
+
}, t = (i, o, s) => {
|
|
125
|
+
const c = N(i);
|
|
120
126
|
if (!c) {
|
|
121
|
-
n(
|
|
127
|
+
n(i, "emoji", "emoji", 0, s);
|
|
122
128
|
return;
|
|
123
129
|
}
|
|
124
|
-
const u =
|
|
125
|
-
c.forEach((
|
|
130
|
+
const u = m(i) ? i : {}, p = d(u, ["group", "category", "name", "label"]) || o, w = d(u, ["label", "name", "title", "groupLabel", "categoryLabel"]) || p, T = b(u, ["order", "groupOrder", "categoryOrder"], s);
|
|
131
|
+
c.forEach((q, S) => n(q, p, w, T, S));
|
|
126
132
|
};
|
|
127
133
|
if (Array.isArray(e))
|
|
128
|
-
e.forEach((
|
|
129
|
-
|
|
134
|
+
e.forEach((i, o) => {
|
|
135
|
+
N(i) ? t(i, `group-${o + 1}`, o) : n(i, "emoji", "emoji", 0, o);
|
|
130
136
|
});
|
|
131
|
-
else if (
|
|
132
|
-
const
|
|
133
|
-
if (
|
|
134
|
-
const o =
|
|
135
|
-
|
|
137
|
+
else if (m(e)) {
|
|
138
|
+
const i = N(e);
|
|
139
|
+
if (i) {
|
|
140
|
+
const o = d(e, ["group", "category", "name", "label"]) || "emoji", s = d(e, ["label", "name", "title", "groupLabel", "categoryLabel"]) || o, c = b(e, ["order", "groupOrder", "categoryOrder"], 0);
|
|
141
|
+
i.forEach((u, p) => n(u, o, s, c, p));
|
|
136
142
|
} else
|
|
137
143
|
Object.entries(e).forEach(([o, s], c) => {
|
|
138
144
|
Array.isArray(s) ? s.forEach((u, p) => n(u, o, o, c, p)) : t(s, o, c);
|
|
139
145
|
});
|
|
140
146
|
}
|
|
141
|
-
return r.sort((
|
|
142
|
-
},
|
|
143
|
-
...
|
|
144
|
-
...
|
|
145
|
-
})),
|
|
146
|
-
...
|
|
147
|
-
...
|
|
148
|
-
})), g = l(() => U(
|
|
147
|
+
return r.sort((i, o) => i.groupSort !== o.groupSort ? i.groupSort - o.groupSort : i.order - o.order);
|
|
148
|
+
}, C = l(() => ({
|
|
149
|
+
...R,
|
|
150
|
+
...a.i18n
|
|
151
|
+
})), K = l(() => ({
|
|
152
|
+
...a.i18n?.categories || {},
|
|
153
|
+
...a.i18n?.categoryLabels || {}
|
|
154
|
+
})), g = l(() => U(a.dataSource)), J = l(() => {
|
|
149
155
|
const e = /* @__PURE__ */ new Map();
|
|
150
156
|
return g.value.forEach((r) => e.set(r.emoji, r.annotation || r.emoji)), e;
|
|
151
|
-
}),
|
|
157
|
+
}), O = l(() => Array.from(new Set(a.quickList.map((e) => e.trim()).filter(Boolean)))), W = l(() => !y.value && O.value.length > 0), k = l(() => I(V.value)), z = l(() => {
|
|
152
158
|
const e = /* @__PURE__ */ new Map();
|
|
153
159
|
return g.value.forEach((r) => {
|
|
154
160
|
e.has(r.groupKey) || e.set(r.groupKey, {
|
|
155
161
|
key: r.groupKey,
|
|
156
|
-
label:
|
|
162
|
+
label: K.value[r.groupKey] || r.groupLabel,
|
|
157
163
|
sort: r.groupSort
|
|
158
164
|
});
|
|
159
165
|
}), Array.from(e.values()).sort((r, n) => r.sort - n.sort);
|
|
160
166
|
});
|
|
161
|
-
|
|
162
|
-
|
|
167
|
+
D(
|
|
168
|
+
z,
|
|
163
169
|
(e) => {
|
|
164
170
|
if (!e.length) {
|
|
165
171
|
f.value = "";
|
|
@@ -168,87 +174,95 @@ const _e = /* @__PURE__ */ de({
|
|
|
168
174
|
e.some((r) => r.key === f.value) || (f.value = e[0].key);
|
|
169
175
|
},
|
|
170
176
|
{ immediate: !0 }
|
|
171
|
-
),
|
|
172
|
-
() =>
|
|
177
|
+
), D(
|
|
178
|
+
() => a.initialExpanded,
|
|
173
179
|
(e) => {
|
|
174
180
|
y.value = e;
|
|
175
181
|
}
|
|
176
|
-
),
|
|
177
|
-
|
|
182
|
+
), D([k, f], () => {
|
|
183
|
+
x.value = 0;
|
|
178
184
|
});
|
|
179
185
|
const X = l(() => k.value ? g.value.filter((e) => e.searchText.includes(k.value)) : f.value ? g.value.filter((e) => e.groupKey === f.value) : g.value), Y = l(() => {
|
|
180
186
|
const e = /* @__PURE__ */ new Map();
|
|
181
187
|
return X.value.forEach((r) => {
|
|
182
|
-
const n =
|
|
188
|
+
const n = K.value[r.groupKey] || r.groupLabel, t = e.get(r.groupKey) || {
|
|
183
189
|
key: r.groupKey,
|
|
184
190
|
label: n,
|
|
185
191
|
items: []
|
|
186
192
|
};
|
|
187
193
|
t.items.push(r), e.set(r.groupKey, t);
|
|
188
194
|
}), Array.from(e.values());
|
|
189
|
-
}),
|
|
190
|
-
() =>
|
|
191
|
-
),
|
|
195
|
+
}), M = l(() => Y.value.flatMap((e) => e.items)), Z = l(
|
|
196
|
+
() => z.value.find((e) => e.key === f.value)?.label || C.value.resultsLabel
|
|
197
|
+
), ie = l(() => k.value ? C.value.resultsLabel : Z.value), _ = l(() => !a.initialExpanded && O.value.length > 0), se = l(
|
|
192
198
|
() => ge({
|
|
193
199
|
"nmorph-emoji-picker": [
|
|
194
200
|
W.value && "compact",
|
|
195
201
|
y.value && "expanded",
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
202
|
+
_.value && "collapsible",
|
|
203
|
+
a.disabled && "disabled",
|
|
204
|
+
a.hideShadow && "hide-shadow",
|
|
199
205
|
!g.value.length && "empty"
|
|
200
206
|
]
|
|
201
207
|
})
|
|
202
208
|
), le = l(() => ({
|
|
209
|
+
...he({
|
|
210
|
+
"--nmorph-private-emoji-picker-width": a.width,
|
|
211
|
+
"--nmorph-private-emoji-picker-height": a.height,
|
|
212
|
+
"--nmorph-private-emoji-picker-cell-size": a.cellSize,
|
|
213
|
+
"--nmorph-private-emoji-picker-toggle-size": a.toggleSize,
|
|
214
|
+
"--nmorph-private-emoji-picker-scrollbar-size": a.scrollbarSize
|
|
215
|
+
}),
|
|
203
216
|
...ye({
|
|
204
|
-
"--nmorph-emoji-picker-
|
|
205
|
-
"--nmorph-emoji-picker-
|
|
217
|
+
"--nmorph-private-emoji-picker-hover-background": a.hoverBackground,
|
|
218
|
+
"--nmorph-private-emoji-picker-active-background": a.activeBackground,
|
|
219
|
+
"--nmorph-private-emoji-picker-focus-ring": a.focusRing
|
|
206
220
|
}),
|
|
207
|
-
"--nmorph-emoji-picker-columns": Math.max(1, Math.floor(
|
|
221
|
+
"--nmorph-private-emoji-picker-columns": Math.max(1, Math.floor(a.columns))
|
|
208
222
|
})), ce = (e) => J.value.get(e) || e, ue = (e) => {
|
|
209
|
-
|
|
223
|
+
a.disabled || L("select", e);
|
|
210
224
|
}, G = () => {
|
|
211
|
-
|
|
225
|
+
a.disabled || (y.value = !0, L("expand"));
|
|
212
226
|
}, ee = () => {
|
|
213
|
-
|
|
227
|
+
a.disabled || !_.value || (y.value = !1, L("collapse"));
|
|
214
228
|
}, pe = (e) => {
|
|
215
229
|
if (e) {
|
|
216
230
|
G();
|
|
217
231
|
return;
|
|
218
232
|
}
|
|
219
233
|
ee();
|
|
220
|
-
},
|
|
221
|
-
const r =
|
|
234
|
+
}, E = async (e) => {
|
|
235
|
+
const r = H.value?.querySelectorAll(".nmorph-emoji-picker__emoji");
|
|
222
236
|
if (!r?.length) return;
|
|
223
237
|
const n = Math.min(Math.max(e, 0), r.length - 1);
|
|
224
|
-
|
|
225
|
-
}, re = { props:
|
|
226
|
-
if (
|
|
227
|
-
const r = Math.max(1, Math.floor(
|
|
238
|
+
x.value = n, await fe(), r[n]?.focus();
|
|
239
|
+
}, re = { props: a, emit: L, searchQuery: V, expanded: y, selectedGroup: f, activeIndex: x, gridRef: H, fallbackTexts: R, isRecord: m, normalizeSearchValue: I, getStringCandidate: d, toStringList: h, getNumberCandidate: b, getArrayCandidate: B, getEmojiValue: j, hasEmojiValue: F, normalizeVariants: $, getGroupData: P, normalizeEmojiItem: Q, getGroupedChildren: N, normalizeDataSource: U, texts: C, categoryLabels: K, allEmoji: g, labelByEmoji: J, quickItems: O, showCompact: W, query: k, categoryOptions: z, visibleItems: X, visibleSections: Y, visibleFlatItems: M, activeCategoryLabel: Z, bodyLabel: ie, canCollapse: _, modifiers: se, styles: le, getEmojiLabel: ce, selectEmoji: ue, expandHandler: G, collapseHandler: ee, toggleExpandedHandler: pe, focusEmojiButton: E, gridKeydownHandler: (e) => {
|
|
240
|
+
if (a.disabled || !M.value.length || e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) return;
|
|
241
|
+
const r = Math.max(1, Math.floor(a.columns)), n = M.value.length - 1, t = {
|
|
228
242
|
ArrowRight: 1,
|
|
229
243
|
ArrowLeft: -1,
|
|
230
244
|
ArrowDown: r,
|
|
231
245
|
ArrowUp: -r
|
|
232
246
|
};
|
|
233
|
-
e.key in t && (e.preventDefault(),
|
|
247
|
+
e.key in t && (e.preventDefault(), E(x.value + t[e.key])), e.key === "Home" && (e.preventDefault(), E(0)), e.key === "End" && (e.preventDefault(), E(n));
|
|
234
248
|
}, get NmorphCheckbox() {
|
|
235
249
|
return xe;
|
|
236
250
|
}, get NmorphIcon() {
|
|
237
251
|
return Le;
|
|
238
252
|
}, get NmorphIconBurger() {
|
|
239
|
-
return
|
|
253
|
+
return ve;
|
|
240
254
|
}, get NmorphIconSearch() {
|
|
241
|
-
return
|
|
255
|
+
return Se;
|
|
242
256
|
}, get NmorphIconSmile() {
|
|
243
|
-
return
|
|
257
|
+
return ke;
|
|
244
258
|
}, get NmorphScroll() {
|
|
245
|
-
return
|
|
259
|
+
return je;
|
|
246
260
|
}, get NmorphTextInput() {
|
|
247
|
-
return
|
|
261
|
+
return be;
|
|
248
262
|
} };
|
|
249
263
|
return Object.defineProperty(re, "__isScriptSetup", { enumerable: !1, value: !0 }), re;
|
|
250
264
|
}
|
|
251
265
|
});
|
|
252
266
|
export {
|
|
253
|
-
|
|
267
|
+
Me as default
|
|
254
268
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-empty{display:flex;flex-direction:column;gap:8px;justify-content:center;align-items:center;box-sizing:border-box;width:100%;min-height:var(--nmorph-empty-min-height);padding:var(--nmorph-empty-padding);color:var(--nmorph-text-color);text-align:center;border-radius:var(--default-border-radius)}.nmorph-empty .nmorph-empty__icon{display:flex;justify-content:center;align-items:center;width:var(--nmorph-empty-icon-size);height:var(--nmorph-empty-icon-size);color:var(--nmorph-semi-contrast-text-color)}.nmorph-empty .nmorph-empty__icon .nmorph-icon{--color: var(--nmorph-semi-contrast-text-color)}.nmorph-empty .nmorph-empty__title{max-width:100%;font-weight:
|
|
1
|
+
.nmorph-empty{display:flex;flex-direction:column;gap:8px;justify-content:center;align-items:center;box-sizing:border-box;width:100%;min-height:var(--nmorph-private-empty-min-height);padding:var(--nmorph-private-empty-padding);color:var(--nmorph-text-color);text-align:center;border-radius:var(--default-border-radius)}.nmorph-empty .nmorph-empty__icon{display:flex;justify-content:center;align-items:center;width:var(--nmorph-private-empty-icon-size);height:var(--nmorph-private-empty-icon-size);color:var(--nmorph-semi-contrast-text-color)}.nmorph-empty .nmorph-empty__icon .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-semi-contrast-text-color)}.nmorph-empty .nmorph-empty__title{max-width:100%;font-weight:var(--nmorph-typography-title-font-weight);font-size:var(--nmorph-typography-title-font-size);line-height:var(--nmorph-typography-title-line-height);overflow-wrap:anywhere}.nmorph-empty .nmorph-empty__description{max-width:min(420px,100%);color:var(--nmorph-semi-contrast-text-color);font-weight:var(--nmorph-typography-body-font-weight);font-size:var(--nmorph-typography-body-font-size);line-height:var(--nmorph-typography-body-line-height);overflow-wrap:anywhere}.nmorph-empty .nmorph-empty__action{display:flex;justify-content:center;max-width:100%;margin-top:4px}.nmorph-empty.nmorph-empty--nmorph{background:var(--nmorph-main-color)}.nmorph-empty.nmorph-empty--nmorph.nmorph--shadow-inset{box-shadow:var(--nmorph-shadow-inset)}.nmorph-empty.nmorph-empty--nmorph.nmorph--shadow-outset{box-shadow:var(--nmorph-shadow-outset)}.nmorph-empty.nmorph-empty--plain{border:var(--nmorph-plain-border)}
|
|
@@ -2,10 +2,10 @@ import './NmorphEmpty.css';
|
|
|
2
2
|
import { defineComponent as m, useSlots as u, computed as t } from "vue";
|
|
3
3
|
import { useModifiers as f } from "../../../utils/create-modifiers.js";
|
|
4
4
|
import { createCssSizeVariables as c, toCssSize as h } from "../../../utils/common.js";
|
|
5
|
-
import { NmorphShadowType as
|
|
6
|
-
import
|
|
5
|
+
import { NmorphShadowType as y } from "../../../types/common.types.js";
|
|
6
|
+
import g from "../../../assets/icons/folder-opened.svg.js";
|
|
7
7
|
import S from "../../basic/nmorph-icon/NmorphIcon.vue.js";
|
|
8
|
-
const
|
|
8
|
+
const z = /* @__PURE__ */ m({
|
|
9
9
|
__name: "NmorphEmpty",
|
|
10
10
|
props: {
|
|
11
11
|
title: { type: String, required: !1, default: "No data" },
|
|
@@ -13,7 +13,7 @@ const v = /* @__PURE__ */ m({
|
|
|
13
13
|
iconSize: { type: [Number, String], required: !1, default: 56 },
|
|
14
14
|
minHeight: { type: [Number, String], required: !1, default: 160 },
|
|
15
15
|
padding: { type: [Number, String], required: !1, default: "var(--indentation-05)" },
|
|
16
|
-
design: { type:
|
|
16
|
+
design: { type: null, required: !1, default: "nmorph" },
|
|
17
17
|
shadowType: { type: null, required: !1, default: "inset" },
|
|
18
18
|
hideIcon: { type: Boolean, required: !1, default: !1 },
|
|
19
19
|
role: { type: String, required: !1, default: "status" },
|
|
@@ -22,21 +22,21 @@ const v = /* @__PURE__ */ m({
|
|
|
22
22
|
},
|
|
23
23
|
setup(o, { expose: n }) {
|
|
24
24
|
n();
|
|
25
|
-
const e = o, r = u(),
|
|
25
|
+
const e = o, r = u(), a = t(() => !e.hideIcon || !!r.icon), p = t(() => !!(e.description || r.description)), s = t(() => e.ariaLabel || e.title), d = t(
|
|
26
26
|
() => f({
|
|
27
|
-
nmorph: [e.design === "nmorph" ?
|
|
27
|
+
nmorph: [e.design === "nmorph" ? y[e.shadowType] : ""],
|
|
28
28
|
"nmorph-empty": [e.design]
|
|
29
29
|
})
|
|
30
30
|
), l = t(
|
|
31
31
|
() => c({
|
|
32
|
-
"--nmorph-empty-icon-size": e.iconSize,
|
|
33
|
-
"--nmorph-empty-min-height": e.minHeight,
|
|
34
|
-
"--nmorph-empty-padding": e.padding
|
|
32
|
+
"--nmorph-private-empty-icon-size": e.iconSize,
|
|
33
|
+
"--nmorph-private-empty-min-height": e.minHeight,
|
|
34
|
+
"--nmorph-private-empty-padding": e.padding
|
|
35
35
|
})
|
|
36
|
-
), i = { props: e, slots: r, hasIcon:
|
|
36
|
+
), i = { props: e, slots: r, hasIcon: a, hasDescription: p, label: s, modifiers: d, styles: l, get NmorphIcon() {
|
|
37
37
|
return S;
|
|
38
38
|
}, get NmorphIconFolderOpened() {
|
|
39
|
-
return
|
|
39
|
+
return g;
|
|
40
40
|
}, get toCssSize() {
|
|
41
41
|
return h;
|
|
42
42
|
} };
|
|
@@ -44,5 +44,5 @@ const v = /* @__PURE__ */ m({
|
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
46
|
export {
|
|
47
|
-
|
|
47
|
+
z as default
|
|
48
48
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-file-card{display:flex;gap:var(--indentation-03);align-items:center;box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:var(--nmorph-file-card-height, auto);min-height:var(--nmorph-file-card-height, 64px);padding:var(--indentation-03);color:var(--nmorph-text-color);background:var(--nmorph-main-color);border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-inset)}.nmorph-file-card .nmorph-file-card__icon{position:relative;display:flex;flex:0 0 auto;justify-content:center;align-items:center;width:36px;height:36px;color:var(--nmorph-text-color);background:color-mix(in srgb,var(--nmorph-text-color) 10%,transparent);border-radius:var(--default-border-radius);--color: currentColor}.nmorph-file-card .nmorph-file-card__icon-action{position:absolute;right:-4px;bottom:-4px;display:inline-flex;justify-content:center;align-items:center;width:18px;height:18px;color:var(--nmorph-contrast-text-color);text-decoration:none;background:color-mix(in srgb,var(--nmorph-black-color) 36%,transparent);border-radius:var(--border-radius-circular);box-shadow:var(--nmorph-shadow-outset)}.nmorph-file-card .nmorph-file-card__icon-action:hover{background:color-mix(in srgb,var(--nmorph-black-color) 48%,transparent)}.nmorph-file-card .nmorph-file-card__icon-action .nmorph-icon{--nmorph-icon-color: var(--nmorph-contrast-text-color)
|
|
1
|
+
.nmorph-file-card{display:flex;gap:var(--indentation-03);align-items:center;box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:var(--nmorph-private-file-card-height, auto);min-height:var(--nmorph-private-file-card-height, 64px);padding:var(--indentation-03);color:var(--nmorph-text-color);background:var(--nmorph-main-color);border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-inset)}.nmorph-file-card .nmorph-file-card__icon{position:relative;display:flex;flex:0 0 auto;justify-content:center;align-items:center;width:36px;height:36px;color:var(--nmorph-text-color);background:color-mix(in srgb,var(--nmorph-text-color) 10%,transparent);border-radius:var(--default-border-radius);--nmorph-private-icon-color: currentColor}.nmorph-file-card .nmorph-file-card__icon-action{position:absolute;right:-4px;bottom:-4px;display:inline-flex;justify-content:center;align-items:center;width:18px;height:18px;color:var(--nmorph-contrast-text-color);text-decoration:none;background:color-mix(in srgb,var(--nmorph-black-color) 36%,transparent);border-radius:var(--border-radius-circular);box-shadow:var(--nmorph-shadow-outset)}.nmorph-file-card .nmorph-file-card__icon-action:hover{background:color-mix(in srgb,var(--nmorph-black-color) 48%,transparent)}.nmorph-file-card .nmorph-file-card__icon-action .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-contrast-text-color)}.nmorph-file-card .nmorph-file-card__body{display:flex;flex:1 1 0;flex-direction:column;gap:var(--indentation-01);min-width:0}.nmorph-file-card .nmorph-file-card__info{display:flex;flex-direction:column;gap:2px;min-width:0}.nmorph-file-card .nmorph-file-card__name,.nmorph-file-card .nmorph-file-card__meta,.nmorph-file-card .nmorph-file-card__error{display:block;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.nmorph-file-card .nmorph-file-card__name{font-weight:var(--font-weight-semibold);font-size:var(--nmorph-typography-label-font-size);line-height:var(--nmorph-typography-label-line-height)}.nmorph-file-card .nmorph-file-card__meta,.nmorph-file-card .nmorph-file-card__error{font-size:var(--nmorph-typography-body-small-font-size);line-height:var(--nmorph-typography-body-small-line-height)}.nmorph-file-card .nmorph-file-card__meta{color:var(--nmorph-semi-contrast-text-color)}.nmorph-file-card .nmorph-file-card__error{color:var(--nmorph-error-text-color)}.nmorph-file-card .nmorph-file-card__audio-preview,.nmorph-file-card .nmorph-file-card__video-preview,.nmorph-file-card .nmorph-file-card__image-preview{width:100%;min-width:0}.nmorph-file-card .nmorph-file-card__image-preview{display:block;height:var(--nmorph-private-file-card-media-height, 120px);padding:0;overflow:hidden;color:inherit;font:inherit;background:transparent;border:0;border-radius:var(--default-border-radius);cursor:pointer}.nmorph-file-card .nmorph-file-card__image-preview .nmorph-file-card__image{display:block;width:100%;max-width:100%;height:100%;object-fit:cover}.nmorph-file-card .nmorph-file-card__badge{flex:0 0 auto;max-width:72px;padding:2px 6px;overflow:hidden;color:var(--nmorph-accent-color);font-weight:var(--font-weight-bold);font-size:var(--nmorph-typography-caption-font-size);line-height:var(--nmorph-typography-caption-line-height);white-space:nowrap;text-transform:uppercase;text-overflow:ellipsis;background:color-mix(in srgb,var(--nmorph-accent-color) 10%,transparent);border-radius:var(--default-border-radius)}.nmorph-file-card .nmorph-file-card__visual-size{position:absolute;right:var(--indentation-02);bottom:var(--indentation-02);z-index:2;display:inline-flex;align-items:center;min-width:0;max-width:calc(100% - var(--indentation-04));min-height:22px;padding:0 6px;overflow:hidden;color:var(--nmorph-contrast-text-color);font-size:var(--nmorph-typography-caption-font-size);line-height:var(--nmorph-typography-caption-line-height);white-space:nowrap;text-overflow:ellipsis;background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border-radius:var(--default-border-radius);pointer-events:none}.nmorph-file-card .nmorph-file-card__actions{display:flex;flex:0 0 auto;gap:var(--indentation-01);align-items:center}.nmorph-file-card .nmorph-file-card__action-link,.nmorph-file-card .nmorph-file-card__action-loader{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;width:22px;height:22px;padding:0;color:inherit;line-height:1;text-decoration:none;border-radius:var(--default-border-radius)}.nmorph-file-card .nmorph-file-card__action-link:hover{color:var(--nmorph-accent-color);background:color-mix(in srgb,var(--nmorph-accent-color) 10%,transparent)}.nmorph-file-card .nmorph-file-card__action-link .nmorph-icon{--nmorph-private-icon-color: currentColor}.nmorph-file-card .nmorph-file-card__action-loader{color:var(--nmorph-semi-contrast-text-color)}.nmorph-file-card .nmorph-file-card__action-loader .nmorph-icon{--nmorph-private-icon-color: currentColor}.nmorph-file-card.nmorph-file-card--custom-actions,.nmorph-file-card.nmorph-file-card--compact{position:relative;padding-inline-end:calc(var(--indentation-03) + 44px + var(--indentation-01))}.nmorph-file-card.nmorph-file-card--custom-actions .nmorph-file-card__actions,.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__actions{position:absolute;top:var(--indentation-03);right:var(--indentation-03);z-index:3}.nmorph-file-card.nmorph-file-card--compact{min-height:var(--nmorph-private-file-card-height, 52px);padding:var(--indentation-02);padding-inline-end:calc(var(--indentation-02) + 44px + var(--indentation-01))}.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__icon{width:30px;height:30px}.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__audio-preview,.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__video-preview{margin-top:0}.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__image-preview{height:var(--nmorph-private-file-card-media-height, 96px);margin-top:0}.nmorph-file-card.nmorph-file-card--compact .nmorph-file-card__actions{top:var(--indentation-02);right:var(--indentation-02)}.nmorph-file-card.nmorph-file-card--media-audio.nmorph-file-card--no-actions .nmorph-file-card__body{padding-inline-end:var(--indentation-02)}.nmorph-file-card.nmorph-file-card--media-visual{position:relative;display:block;gap:0;min-height:0;padding:0;padding-inline-end:0;overflow:hidden}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__body{position:relative;display:block;width:100%;min-width:0;height:100%}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__info{position:absolute;top:var(--indentation-02);left:var(--indentation-02);z-index:2;max-width:calc(100% - 48px);pointer-events:none}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__name{display:block;min-height:22px;padding:0 6px;overflow:hidden;color:var(--nmorph-contrast-text-color);line-height:22px;white-space:nowrap;text-overflow:ellipsis;background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border-radius:var(--default-border-radius)}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__image-preview,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__video-preview,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-video-preview,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-video-preview__media,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__image{display:block;width:100%;max-width:none;height:var(--nmorph-private-file-card-media-height, 100%);border-radius:inherit;object-fit:cover}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__actions{position:absolute;top:var(--indentation-02);right:var(--indentation-02);z-index:3}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-link,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-loader{color:var(--nmorph-contrast-text-color);background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border:0}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-link .nmorph-icon,.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-loader .nmorph-icon{flex:0 0 auto;--nmorph-private-icon-color: var(--nmorph-contrast-text-color)}.nmorph-file-card.nmorph-file-card--media-visual .nmorph-file-card__action-link:hover{color:var(--nmorph-contrast-text-color);background:color-mix(in srgb,var(--nmorph-black-color) 72%,transparent)}.nmorph-file-card.nmorph-file-card--media-video .nmorph-file-card__info{max-width:calc(100% - 112px)}.nmorph-file-card.nmorph-file-card--media-video .nmorph-video-preview__actions{right:calc(var(--indentation-02) + 26px)}.nmorph-file-card.nmorph-file-card--media-image .nmorph-file-card__image-preview{border-radius:inherit}.nmorph-file-card.nmorph-file-card--error{outline:1px solid var(--nmorph-error-color)}.nmorph-file-card.nmorph-file-card--soft{background:color-mix(in srgb,var(--nmorph-accent-color) 6%,transparent);box-shadow:none}.nmorph-file-card.nmorph-file-card--soft .nmorph-file-card__icon-action{box-shadow:none}.nmorph-file-card.nmorph-file-card--plain{background:transparent;box-shadow:none}.nmorph-file-card.nmorph-file-card--plain .nmorph-file-card__icon-action{box-shadow:none}.nmorph-file-card.nmorph-file-card--icon-plain .nmorph-file-card__icon{background:transparent}
|
|
@@ -54,8 +54,8 @@ const de = "var(--nmorph-contrast-text-color)", Me = /* @__PURE__ */ F({
|
|
|
54
54
|
() => d.value || a.value || i.value
|
|
55
55
|
), m = r(() => a.value || i.value), B = r(() => e.height ?? (e.compact ? "96px" : "120px")), L = r(
|
|
56
56
|
() => J({
|
|
57
|
-
"--nmorph-file-card-height": e.height,
|
|
58
|
-
"--nmorph-file-card-media-height": B.value
|
|
57
|
+
"--nmorph-private-file-card-height": e.height,
|
|
58
|
+
"--nmorph-private-file-card-media-height": B.value
|
|
59
59
|
})
|
|
60
60
|
), D = r(() => m.value ? e.showName : e.showName || e.showMeta && !!(e.error && e.errorText || S.value)), I = r(() => !e.previewSrc || e.loading || e.error ? [] : i.value ? [
|
|
61
61
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-image{--width: auto;--height: 100
|
|
1
|
+
.nmorph-image{--nmorph-private-image-width: auto;--nmorph-private-image-height: 100%;--nmorph-private-image-radius: var(--default-border-radius);--nmorph-private-image-background: transparent;--nmorph-private-image-border: none;--nmorph-private-image-shadow: none;position:relative;display:flex;justify-content:center;align-items:center;box-sizing:border-box;width:var(--nmorph-private-image-width);height:var(--nmorph-private-image-height);overflow:hidden;background:var(--nmorph-private-image-background);border:var(--nmorph-private-image-border);border-radius:var(--nmorph-private-image-radius);box-shadow:var(--nmorph-private-image-shadow)}.nmorph-image:not(.nmorph-image--plain){--nmorph-private-image-background: var(--nmorph-main-color);--nmorph-private-image-shadow: var(--nmorph-shadow-combined)}.nmorph-image:not(.nmorph-image--plain).nmorph-image--framed{--nmorph-private-image-border: var(--nmorph-private-image-frame-border) solid var(--nmorph-main-color)}.nmorph-image--plain.nmorph-image--framed{--nmorph-private-image-background: var(--nmorph-main-color);--nmorph-private-image-border: var(--nmorph-plain-border);--nmorph-private-image-shadow: none}.nmorph-image img{display:block;width:100%;height:100%;border-radius:inherit;object-fit:var(--nmorph-private-image-fit)}.nmorph-image__loading,.nmorph-image__load-failed{display:flex;justify-content:center;align-items:center;box-sizing:border-box;width:100%;height:100%;padding:1rem;text-align:center}.nmorph-image--hide img{width:0;height:0;opacity:0}
|
|
@@ -1,37 +1,49 @@
|
|
|
1
1
|
import './NmorphImage.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { useModifiers as
|
|
4
|
-
import {
|
|
5
|
-
|
|
2
|
+
import { defineComponent as S, computed as r, ref as u } from "vue";
|
|
3
|
+
import { useModifiers as q } from "../../../utils/create-modifiers.js";
|
|
4
|
+
import { createCssSizeVariables as T } from "../../../utils/common.js";
|
|
5
|
+
import { useI18n as _ } from "vue-i18n";
|
|
6
|
+
const I = /* @__PURE__ */ S({
|
|
6
7
|
__name: "NmorphImage",
|
|
7
8
|
props: {
|
|
9
|
+
design: { type: null, required: !1, default: "nmorph" },
|
|
8
10
|
loadingText: { type: String, required: !1, default: "" },
|
|
9
11
|
loadFailedText: { type: String, required: !1, default: "" },
|
|
10
12
|
frameBorder: { type: Number, required: !1, default: 4 },
|
|
11
13
|
src: { type: String, required: !1 },
|
|
12
14
|
srcSet: { type: String, required: !1, default: "" },
|
|
15
|
+
width: { type: [Number, String], required: !1, default: void 0 },
|
|
16
|
+
height: { type: [Number, String], required: !1, default: void 0 },
|
|
13
17
|
fit: { type: null, required: !1, default: "cover" },
|
|
14
18
|
alt: { type: String, required: !1, default: "" }
|
|
15
19
|
},
|
|
16
20
|
emits: ["error", "load"],
|
|
17
|
-
setup(
|
|
18
|
-
|
|
19
|
-
const { t: o } =
|
|
20
|
-
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
-
},
|
|
24
|
-
() =>
|
|
25
|
-
nmorph: [
|
|
26
|
-
"nmorph-image": [
|
|
21
|
+
setup(m, { expose: p, emit: f }) {
|
|
22
|
+
p();
|
|
23
|
+
const { t: o } = _(), e = m, g = r(() => e.loadingText ? e.loadingText : o("loadingText")), c = r(() => e.loadFailedText ? e.loadFailedText : o("loadFailedText")), t = u(!1), a = u(!1), i = f, h = (l) => {
|
|
24
|
+
t.value = !0, a.value = !1, i("load", l);
|
|
25
|
+
}, v = (l) => {
|
|
26
|
+
t.value = !0, a.value = !0, i("error", l);
|
|
27
|
+
}, n = r(() => t.value && a.value), d = r(() => e.design || "nmorph"), x = r(
|
|
28
|
+
() => q({
|
|
29
|
+
nmorph: [d.value === "nmorph" ? "shadow-combined" : ""],
|
|
30
|
+
"nmorph-image": [
|
|
31
|
+
d.value,
|
|
32
|
+
e.frameBorder > 0 && "framed",
|
|
33
|
+
(n.value || !t.value) && "hide"
|
|
34
|
+
]
|
|
27
35
|
})
|
|
28
|
-
),
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
36
|
+
), y = r(() => ({
|
|
37
|
+
...T({
|
|
38
|
+
"--nmorph-private-image-width": e.width,
|
|
39
|
+
"--nmorph-private-image-height": e.height
|
|
40
|
+
}),
|
|
41
|
+
"--nmorph-private-image-fit": e.fit || "cover",
|
|
42
|
+
"--nmorph-private-image-frame-border": `${e.frameBorder}px`
|
|
43
|
+
})), s = { t: o, props: e, computedLoadingText: g, computedLoadFailedText: c, imageLoadFinished: t, imageLoadError: a, emit: i, onImageLoad: h, onImageError: v, loadingFailed: n, resolvedDesign: d, modifiers: x, styles: y };
|
|
44
|
+
return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
|
|
33
45
|
}
|
|
34
46
|
});
|
|
35
47
|
export {
|
|
36
|
-
|
|
48
|
+
I as default
|
|
37
49
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-image-preview{--width: 50px;--height: 50px;--nmorph-image-preview-radius: var(--default-border-radius);width:var(--width);height:var(--height);overflow:hidden;border-radius:var(--nmorph-image-preview-radius)}.nmorph-image-preview .nmorph-image-preview__trigger{position:relative;width:100%;height:100%;cursor:pointer}.nmorph-image-preview .nmorph-image-preview__trigger:hover{filter:brightness(.8)}.nmorph-image-preview .nmorph-image-preview__trigger .nmorph-image{width:100%;height:100%}.nmorph-image-preview.nmorph-image-preview--gallery-trigger{width:auto;height:auto;overflow:visible}.nmorph-image-preview.nmorph-image-preview--gallery-trigger .nmorph-image-preview__trigger{display:flex;flex-wrap:wrap;gap:var(--nmorph-image-preview-trigger-gap, 8px);width:auto;height:auto}.nmorph-image-preview.nmorph-image-preview--gallery-trigger .nmorph-image-preview__trigger:hover{filter:none}.nmorph-image-preview.nmorph-image-preview--gallery-trigger .nmorph-image-preview__trigger-item{position:relative;display:block;width:var(--width);height:var(--height);padding:0;overflow:hidden;color:inherit;font:inherit;background:transparent;border:0;border-radius:var(--nmorph-image-preview-radius);cursor:pointer}.nmorph-image-preview.nmorph-image-preview--gallery-trigger .nmorph-image-preview__trigger-item:hover{filter:brightness(.8)}.nmorph-image-preview.nmorph-image-preview--gallery-trigger .nmorph-image-preview__trigger-item .nmorph-image{width:100%;height:100%}.nmorph-image-preview.nmorph-image-preview--gallery-trigger .nmorph-image-preview__trigger-more{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:var(--nmorph-white-color);font-weight:
|
|
1
|
+
.nmorph-image-preview{--nmorph-private-image-preview-trigger-width: 50px;--nmorph-private-image-preview-trigger-height: 50px;--nmorph-private-image-preview-radius: var(--default-border-radius);width:var(--nmorph-private-image-preview-trigger-width);height:var(--nmorph-private-image-preview-trigger-height);overflow:hidden;border-radius:var(--nmorph-private-image-preview-radius)}.nmorph-image-preview .nmorph-image-preview__trigger{position:relative;width:100%;height:100%;cursor:pointer}.nmorph-image-preview .nmorph-image-preview__trigger:hover{filter:brightness(.8)}.nmorph-image-preview .nmorph-image-preview__trigger .nmorph-image{width:100%;height:100%}.nmorph-image-preview .nmorph-image-preview__trigger .nmorph-image__loading,.nmorph-image-preview .nmorph-image-preview__trigger .nmorph-image__load-failed{min-width:0;padding:var(--indentation-01);overflow:hidden;font-size:var(--nmorph-typography-caption-font-size);line-height:var(--nmorph-typography-caption-line-height);overflow-wrap:anywhere}.nmorph-image-preview.nmorph-image-preview--gallery-trigger{width:auto;height:auto;overflow:visible}.nmorph-image-preview.nmorph-image-preview--gallery-trigger .nmorph-image-preview__trigger{display:flex;flex-wrap:wrap;gap:var(--nmorph-private-image-preview-trigger-gap, 8px);width:auto;height:auto}.nmorph-image-preview.nmorph-image-preview--gallery-trigger .nmorph-image-preview__trigger:hover{filter:none}.nmorph-image-preview.nmorph-image-preview--gallery-trigger .nmorph-image-preview__trigger-item{position:relative;display:block;width:var(--nmorph-private-image-preview-trigger-width);height:var(--nmorph-private-image-preview-trigger-height);padding:0;overflow:hidden;color:inherit;font:inherit;background:transparent;border:0;border-radius:var(--nmorph-private-image-preview-radius);cursor:pointer}.nmorph-image-preview.nmorph-image-preview--gallery-trigger .nmorph-image-preview__trigger-item:hover{filter:brightness(.8)}.nmorph-image-preview.nmorph-image-preview--gallery-trigger .nmorph-image-preview__trigger-item .nmorph-image{width:100%;height:100%}.nmorph-image-preview.nmorph-image-preview--gallery-trigger .nmorph-image-preview__trigger-more{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:var(--nmorph-white-color);font-weight:var(--font-weight-semibold);line-height:var(--nmorph-typography-body-line-height);background:color-mix(in srgb,var(--nmorph-black-color) 60%,transparent);pointer-events:none}.nmorph-image-preview__portal{display:contents}.nmorph-image-preview__portal .nmorph-image-preview__content .nmorph-image{width:100%;height:100%;pointer-events:none}.nmorph-image-preview__portal .nmorph-image-preview__content .nmorph-image img{display:block;width:auto;max-width:100%;height:auto;max-height:100%;object-fit:contain;pointer-events:auto}.nmorph-image-preview__portal .nmorph-image-preview__action-element{margin-right:var(--indentation-03)}
|