@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
|
@@ -1,94 +1,94 @@
|
|
|
1
1
|
import './NmorphImagePreview.css';
|
|
2
|
-
import
|
|
3
|
-
import { openBlock as n, createElementBlock as a, Fragment as
|
|
2
|
+
import _ from "./NmorphImagePreview.vue2.js";
|
|
3
|
+
import { openBlock as n, createElementBlock as a, Fragment as g, normalizeStyle as v, normalizeClass as w, createElementVNode as m, renderList as f, withModifiers as k, createVNode as l, createSlots as d, withCtx as o, renderSlot as t, toDisplayString as y, createCommentVNode as c, createBlock as s, resolveDynamicComponent as p } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import b from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
6
|
const N = ["aria-label", "onClick"], C = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "nmorph-image-preview__trigger-more"
|
|
9
9
|
}, S = { class: "nmorph-image-preview__action-element" };
|
|
10
|
-
function I(
|
|
10
|
+
function I(r, B, T, e, L, P) {
|
|
11
11
|
return n(), a(
|
|
12
|
-
|
|
12
|
+
g,
|
|
13
13
|
null,
|
|
14
14
|
[
|
|
15
|
-
|
|
15
|
+
e.props.showTrigger ? (n(), a(
|
|
16
16
|
"div",
|
|
17
17
|
{
|
|
18
18
|
key: 0,
|
|
19
|
-
class:
|
|
20
|
-
style: v(
|
|
19
|
+
class: w(e.modifiers),
|
|
20
|
+
style: v(e.triggerStyle)
|
|
21
21
|
},
|
|
22
22
|
[
|
|
23
|
-
|
|
23
|
+
m("div", {
|
|
24
24
|
class: "nmorph-image-preview__trigger",
|
|
25
|
-
onClick:
|
|
25
|
+
onClick: e.clickHandler
|
|
26
26
|
}, [
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
e.showGalleryTrigger ? (n(!0), a(
|
|
28
|
+
g,
|
|
29
29
|
{ key: 0 },
|
|
30
|
-
f(
|
|
30
|
+
f(e.triggerSources, (i) => (n(), a("button", {
|
|
31
31
|
key: `${i.src}-${i.index}`,
|
|
32
32
|
type: "button",
|
|
33
33
|
class: "nmorph-image-preview__trigger-item",
|
|
34
|
-
"aria-label":
|
|
35
|
-
onClick:
|
|
34
|
+
"aria-label": e.getTriggerLabel(i.index),
|
|
35
|
+
onClick: k((h) => e.openPreviewAt(i.index), ["stop"])
|
|
36
36
|
}, [
|
|
37
|
-
l(
|
|
37
|
+
l(e.NmorphImage, {
|
|
38
38
|
src: i.src,
|
|
39
|
-
alt:
|
|
40
|
-
fit:
|
|
39
|
+
alt: e.getTriggerLabel(i.index),
|
|
40
|
+
fit: e.props.fit,
|
|
41
41
|
"frame-border": 0
|
|
42
42
|
}, d({
|
|
43
43
|
_: 2
|
|
44
44
|
/* DYNAMIC */
|
|
45
45
|
}, [
|
|
46
|
-
|
|
46
|
+
r.$slots.loading ? {
|
|
47
47
|
name: "loading",
|
|
48
48
|
fn: o(() => [
|
|
49
|
-
t(
|
|
49
|
+
t(r.$slots, "loading")
|
|
50
50
|
]),
|
|
51
51
|
key: "0"
|
|
52
52
|
} : void 0,
|
|
53
|
-
|
|
53
|
+
r.$slots.error ? {
|
|
54
54
|
name: "error",
|
|
55
55
|
fn: o(() => [
|
|
56
|
-
t(
|
|
56
|
+
t(r.$slots, "error")
|
|
57
57
|
]),
|
|
58
58
|
key: "1"
|
|
59
59
|
} : void 0
|
|
60
60
|
]), 1032, ["src", "alt", "fit"]),
|
|
61
|
-
i.index ===
|
|
61
|
+
i.index === e.lastVisibleTriggerIndex && e.hiddenTriggerCount > 0 ? (n(), a(
|
|
62
62
|
"span",
|
|
63
63
|
C,
|
|
64
|
-
" +" + y(
|
|
64
|
+
" +" + y(e.hiddenTriggerCount),
|
|
65
65
|
1
|
|
66
66
|
/* TEXT */
|
|
67
67
|
)) : c("v-if", !0)
|
|
68
68
|
], 8, N))),
|
|
69
69
|
128
|
|
70
70
|
/* KEYED_FRAGMENT */
|
|
71
|
-
)) : (n(), s(
|
|
71
|
+
)) : (n(), s(e.NmorphImage, {
|
|
72
72
|
key: 1,
|
|
73
|
-
src:
|
|
74
|
-
alt:
|
|
75
|
-
fit:
|
|
73
|
+
src: e.triggerSource,
|
|
74
|
+
alt: e.props.alt,
|
|
75
|
+
fit: e.props.fit,
|
|
76
76
|
"frame-border": 0
|
|
77
77
|
}, d({
|
|
78
78
|
_: 2
|
|
79
79
|
/* DYNAMIC */
|
|
80
80
|
}, [
|
|
81
|
-
|
|
81
|
+
r.$slots.loading ? {
|
|
82
82
|
name: "loading",
|
|
83
83
|
fn: o(() => [
|
|
84
|
-
t(
|
|
84
|
+
t(r.$slots, "loading")
|
|
85
85
|
]),
|
|
86
86
|
key: "0"
|
|
87
87
|
} : void 0,
|
|
88
|
-
|
|
88
|
+
r.$slots.error ? {
|
|
89
89
|
name: "error",
|
|
90
90
|
fn: o(() => [
|
|
91
|
-
t(
|
|
91
|
+
t(r.$slots, "error")
|
|
92
92
|
]),
|
|
93
93
|
key: "1"
|
|
94
94
|
} : void 0
|
|
@@ -98,41 +98,44 @@ function I(e, B, T, r, L, P) {
|
|
|
98
98
|
6
|
|
99
99
|
/* CLASS, STYLE */
|
|
100
100
|
)) : c("v-if", !0),
|
|
101
|
-
|
|
101
|
+
e.open ? (n(), s(e.NmorphPreviewPortal, {
|
|
102
102
|
key: 1,
|
|
103
|
-
show:
|
|
104
|
-
"z-index":
|
|
103
|
+
show: e.open,
|
|
104
|
+
"z-index": e.props.zIndex,
|
|
105
105
|
"root-class": "nmorph-image-preview__portal",
|
|
106
|
-
"state-class":
|
|
106
|
+
"state-class": e.modifiers,
|
|
107
107
|
"content-class": "nmorph-image-preview__content",
|
|
108
108
|
"left-class": "nmorph-image-preview__left",
|
|
109
109
|
"right-class": "nmorph-image-preview__right",
|
|
110
110
|
"actions-class": "nmorph-image-preview__actions",
|
|
111
|
-
"navigation-button-margin":
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
111
|
+
"navigation-button-margin": e.props.navigationButtonMargin,
|
|
112
|
+
"content-width": e.props.previewWidth,
|
|
113
|
+
"content-height": e.props.previewHeight,
|
|
114
|
+
"show-navigation": e.showNavigation,
|
|
115
|
+
"show-action-bar": e.props.showActionBar,
|
|
116
|
+
onClose: e.closeHandler,
|
|
117
|
+
onPrevious: e.previousHandler,
|
|
118
|
+
onNext: e.nextHandler
|
|
117
119
|
}, {
|
|
118
120
|
actions: o(() => [
|
|
119
121
|
(n(), a(
|
|
120
|
-
|
|
122
|
+
g,
|
|
121
123
|
null,
|
|
122
|
-
f(
|
|
124
|
+
f(e.actions, (i, h) => m("div", {
|
|
123
125
|
key: h,
|
|
124
126
|
class: "nmorph-image-preview__action-element"
|
|
125
127
|
}, [
|
|
126
|
-
l(
|
|
128
|
+
l(e.NmorphButton, {
|
|
129
|
+
design: "plain",
|
|
127
130
|
onClick: i.handler
|
|
128
131
|
}, {
|
|
129
132
|
default: o(() => [
|
|
130
133
|
l(
|
|
131
|
-
|
|
134
|
+
e.NmorphIcon,
|
|
132
135
|
null,
|
|
133
136
|
{
|
|
134
137
|
default: o(() => [
|
|
135
|
-
(n(), s(
|
|
138
|
+
(n(), s(p(i.icon)))
|
|
136
139
|
]),
|
|
137
140
|
_: 2
|
|
138
141
|
/* DYNAMIC */
|
|
@@ -148,15 +151,16 @@ function I(e, B, T, r, L, P) {
|
|
|
148
151
|
64
|
|
149
152
|
/* STABLE_FRAGMENT */
|
|
150
153
|
)),
|
|
151
|
-
|
|
152
|
-
l(
|
|
153
|
-
|
|
154
|
-
|
|
154
|
+
m("div", S, [
|
|
155
|
+
l(e.NmorphButton, {
|
|
156
|
+
design: "plain",
|
|
157
|
+
disabled: e.scaleLevel === 1,
|
|
158
|
+
onClick: e.enlargeShrinkActionData.handler
|
|
155
159
|
}, {
|
|
156
160
|
default: o(() => [
|
|
157
|
-
l(
|
|
161
|
+
l(e.NmorphIcon, null, {
|
|
158
162
|
default: o(() => [
|
|
159
|
-
(n(), s(
|
|
163
|
+
(n(), s(p(e.enlargeShrinkActionData.icon)))
|
|
160
164
|
]),
|
|
161
165
|
_: 1
|
|
162
166
|
/* STABLE */
|
|
@@ -168,27 +172,27 @@ function I(e, B, T, r, L, P) {
|
|
|
168
172
|
])
|
|
169
173
|
]),
|
|
170
174
|
default: o(() => [
|
|
171
|
-
l(
|
|
172
|
-
src:
|
|
173
|
-
alt:
|
|
175
|
+
l(e.NmorphImage, {
|
|
176
|
+
src: e.triggerSource,
|
|
177
|
+
alt: e.props.alt,
|
|
174
178
|
fit: "contain",
|
|
175
179
|
"frame-border": 0,
|
|
176
|
-
style: v({ transform: `rotate(${
|
|
180
|
+
style: v({ transform: `rotate(${e.rotateLevel}deg) scale(${e.scaleLevel})` })
|
|
177
181
|
}, d({
|
|
178
182
|
_: 2
|
|
179
183
|
/* DYNAMIC */
|
|
180
184
|
}, [
|
|
181
|
-
|
|
185
|
+
r.$slots.loading ? {
|
|
182
186
|
name: "loading",
|
|
183
187
|
fn: o(() => [
|
|
184
|
-
t(
|
|
188
|
+
t(r.$slots, "loading")
|
|
185
189
|
]),
|
|
186
190
|
key: "0"
|
|
187
191
|
} : void 0,
|
|
188
|
-
|
|
192
|
+
r.$slots.error ? {
|
|
189
193
|
name: "error",
|
|
190
194
|
fn: o(() => [
|
|
191
|
-
t(
|
|
195
|
+
t(r.$slots, "error")
|
|
192
196
|
]),
|
|
193
197
|
key: "1"
|
|
194
198
|
} : void 0
|
|
@@ -196,13 +200,13 @@ function I(e, B, T, r, L, P) {
|
|
|
196
200
|
]),
|
|
197
201
|
_: 3
|
|
198
202
|
/* FORWARDED */
|
|
199
|
-
}, 8, ["show", "z-index", "state-class", "navigation-button-margin", "show-navigation", "show-action-bar"])) : c("v-if", !0)
|
|
203
|
+
}, 8, ["show", "z-index", "state-class", "navigation-button-margin", "content-width", "content-height", "show-navigation", "show-action-bar"])) : c("v-if", !0)
|
|
200
204
|
],
|
|
201
205
|
64
|
|
202
206
|
/* STABLE_FRAGMENT */
|
|
203
207
|
);
|
|
204
208
|
}
|
|
205
|
-
const V = /* @__PURE__ */ b(
|
|
209
|
+
const V = /* @__PURE__ */ b(_, [["render", I], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-image-preview/NmorphImagePreview.vue"]]);
|
|
206
210
|
export {
|
|
207
211
|
V as default
|
|
208
212
|
};
|
|
@@ -2,16 +2,16 @@ import './NmorphImagePreview.css';
|
|
|
2
2
|
import { defineComponent as $, ref as g, watch as h, computed as t, onBeforeUnmount as Z } from "vue";
|
|
3
3
|
import { useModifiers as j } from "../../../utils/create-modifiers.js";
|
|
4
4
|
import { createCssSizeVariables as U } from "../../../utils/common.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
5
|
+
import W from "../nmorph-preview-portal/NmorphPreviewPortal.vue.js";
|
|
6
|
+
import J from "../../../assets/icons/shrink.svg.js";
|
|
7
|
+
import Q from "../../../assets/icons/rotate-right.svg.js";
|
|
8
8
|
import X from "../../../assets/icons/rotate-left.svg.js";
|
|
9
9
|
import Y from "../../../assets/icons/zoom-in.svg.js";
|
|
10
10
|
import ee from "../../../assets/icons/zoom-out.svg.js";
|
|
11
11
|
import re from "../../../assets/icons/enlarge.svg.js";
|
|
12
12
|
import te from "../../basic/nmorph-icon/NmorphIcon.vue.js";
|
|
13
13
|
import ae from "../../basic/nmorph-button/NmorphButton.vue.js";
|
|
14
|
-
import
|
|
14
|
+
import ie from "../nmorph-image/NmorphImage.vue.js";
|
|
15
15
|
const Ne = /* @__PURE__ */ $({
|
|
16
16
|
__name: "NmorphImagePreview",
|
|
17
17
|
props: {
|
|
@@ -28,6 +28,8 @@ const Ne = /* @__PURE__ */ $({
|
|
|
28
28
|
showActionBar: { type: Boolean, required: !1, default: !0 },
|
|
29
29
|
width: { type: [Number, String], required: !1, default: void 0 },
|
|
30
30
|
height: { type: [Number, String], required: !1, default: void 0 },
|
|
31
|
+
previewWidth: { type: [Number, String], required: !1, default: void 0 },
|
|
32
|
+
previewHeight: { type: [Number, String], required: !1, default: void 0 },
|
|
31
33
|
radius: { type: [Number, String], required: !1, default: void 0 },
|
|
32
34
|
fit: { type: String, required: !1, default: "cover" },
|
|
33
35
|
navigationButtonMargin: { type: [Number, String], required: !1, default: void 0 },
|
|
@@ -36,26 +38,26 @@ const Ne = /* @__PURE__ */ $({
|
|
|
36
38
|
triggerGap: { type: [Number, String], required: !1, default: 8 }
|
|
37
39
|
},
|
|
38
40
|
emits: ["update:model-value"],
|
|
39
|
-
setup(V, { expose: C, emit:
|
|
41
|
+
setup(V, { expose: C, emit: H }) {
|
|
40
42
|
C();
|
|
41
|
-
const r = V,
|
|
43
|
+
const r = V, l = g(r.modelValue);
|
|
42
44
|
h(
|
|
43
45
|
() => r.modelValue,
|
|
44
|
-
(e) =>
|
|
46
|
+
(e) => l.value = e
|
|
45
47
|
);
|
|
46
48
|
const a = t(() => Array.isArray(r.src) ? r.src : [r.src]), s = (e) => {
|
|
47
|
-
const
|
|
48
|
-
return
|
|
49
|
-
}, u = g(s(r.initialIndex)), d = t(() => s(u.value)),
|
|
50
|
-
() => a.value.slice(0, y.value).map((e,
|
|
51
|
-
index:
|
|
49
|
+
const o = a.value.length - 1;
|
|
50
|
+
return o < 0 || e < 0 ? 0 : e > o ? o : e;
|
|
51
|
+
}, u = g(s(r.initialIndex)), d = t(() => s(u.value)), K = t(() => a.value[d.value] || ""), v = t(() => r.triggerView === "gallery" && a.value.length > 1), y = t(() => !r.triggerLimit || r.triggerLimit < 1 ? a.value.length : Math.min(Math.floor(r.triggerLimit), a.value.length)), m = t(
|
|
52
|
+
() => a.value.slice(0, y.value).map((e, o) => ({
|
|
53
|
+
index: o,
|
|
52
54
|
src: e
|
|
53
55
|
}))
|
|
54
56
|
), M = t(() => a.value.length - m.value.length), P = t(() => m.value[m.value.length - 1]?.index ?? -1), R = t(
|
|
55
57
|
() => j({
|
|
56
|
-
"nmorph-image-preview": [
|
|
58
|
+
"nmorph-image-preview": [l.value && "opened", v.value && "gallery-trigger"]
|
|
57
59
|
})
|
|
58
|
-
),
|
|
60
|
+
), i = g(1);
|
|
59
61
|
h(
|
|
60
62
|
() => [r.initialIndex, a.value.length],
|
|
61
63
|
() => {
|
|
@@ -63,87 +65,87 @@ const Ne = /* @__PURE__ */ $({
|
|
|
63
65
|
}
|
|
64
66
|
);
|
|
65
67
|
const N = (e) => {
|
|
66
|
-
u.value = s(e),
|
|
68
|
+
u.value = s(e), l.value = !0, f("update:model-value", l.value);
|
|
67
69
|
}, z = () => {
|
|
68
|
-
|
|
70
|
+
v.value || N(d.value);
|
|
69
71
|
}, F = () => {
|
|
70
|
-
|
|
72
|
+
l.value = !1, f("update:model-value", l.value);
|
|
71
73
|
}, S = () => {
|
|
72
74
|
n.value = n.value + 90, n.value >= 360 && (n.value = 0);
|
|
73
|
-
}, I = () => {
|
|
74
|
-
n.value = n.value - 90, n.value <= -360 && (n.value = 0);
|
|
75
75
|
}, w = () => {
|
|
76
|
-
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
}, b =
|
|
80
|
-
|
|
76
|
+
n.value = n.value - 90, n.value <= -360 && (n.value = 0);
|
|
77
|
+
}, I = () => {
|
|
78
|
+
i.value < r.maxScaleLevel && (i.value += r.scaleStep), i.value = parseFloat(i.value.toFixed(3));
|
|
79
|
+
}, b = () => {
|
|
80
|
+
i.value > r.minScaleLevel && (i.value -= r.scaleStep), i.value = parseFloat(i.value.toFixed(3));
|
|
81
|
+
}, L = t(() => i.value < 1), q = () => {
|
|
82
|
+
i.value = 1;
|
|
81
83
|
}, x = () => {
|
|
82
|
-
|
|
84
|
+
i.value = 1;
|
|
83
85
|
}, n = g(0), B = () => {
|
|
84
86
|
const e = a.value.length;
|
|
85
87
|
if (!e) return;
|
|
86
|
-
const
|
|
87
|
-
u.value =
|
|
88
|
+
const o = d.value - 1;
|
|
89
|
+
u.value = o < 0 ? e - 1 : o;
|
|
88
90
|
}, _ = () => {
|
|
89
91
|
const e = a.value.length;
|
|
90
92
|
if (!e) return;
|
|
91
|
-
const
|
|
92
|
-
u.value =
|
|
93
|
-
},
|
|
94
|
-
!
|
|
93
|
+
const o = d.value + 1;
|
|
94
|
+
u.value = o > e - 1 ? 0 : o;
|
|
95
|
+
}, p = (e) => {
|
|
96
|
+
!l.value || a.value.length < 2 || e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || (e.key === "ArrowLeft" && (e.preventDefault(), B()), e.key === "ArrowRight" && (e.preventDefault(), _()));
|
|
95
97
|
}, k = () => {
|
|
96
|
-
typeof document > "u" || document.addEventListener("keydown",
|
|
97
|
-
},
|
|
98
|
-
typeof document > "u" || document.removeEventListener("keydown",
|
|
98
|
+
typeof document > "u" || document.addEventListener("keydown", p);
|
|
99
|
+
}, c = () => {
|
|
100
|
+
typeof document > "u" || document.removeEventListener("keydown", p);
|
|
99
101
|
};
|
|
100
102
|
h(
|
|
101
|
-
|
|
103
|
+
l,
|
|
102
104
|
(e) => {
|
|
103
|
-
e ? k() :
|
|
105
|
+
e ? k() : c();
|
|
104
106
|
},
|
|
105
107
|
{ immediate: !0 }
|
|
106
|
-
), Z(
|
|
108
|
+
), Z(c);
|
|
107
109
|
const D = t(() => {
|
|
108
110
|
let e = {
|
|
109
|
-
icon:
|
|
111
|
+
icon: J,
|
|
110
112
|
handler: x
|
|
111
113
|
};
|
|
112
|
-
return
|
|
114
|
+
return L.value && (e = {
|
|
113
115
|
icon: re,
|
|
114
116
|
handler: q
|
|
115
117
|
}), e;
|
|
116
118
|
}), E = [
|
|
117
119
|
{
|
|
118
|
-
icon:
|
|
120
|
+
icon: Q,
|
|
119
121
|
handler: S
|
|
120
122
|
},
|
|
121
123
|
{
|
|
122
124
|
icon: X,
|
|
123
|
-
handler:
|
|
125
|
+
handler: w
|
|
124
126
|
},
|
|
125
127
|
{
|
|
126
128
|
icon: Y,
|
|
127
|
-
handler:
|
|
129
|
+
handler: I
|
|
128
130
|
},
|
|
129
131
|
{
|
|
130
132
|
icon: ee,
|
|
131
|
-
handler:
|
|
133
|
+
handler: b
|
|
132
134
|
}
|
|
133
|
-
],
|
|
135
|
+
], f = H, T = t(() => a.value.length > 1), G = t(() => r.showNavigationButtons && T.value), O = t(
|
|
134
136
|
() => U({
|
|
135
|
-
"--width": r.width,
|
|
136
|
-
"--height": r.height,
|
|
137
|
-
"--nmorph-image-preview-radius": r.radius,
|
|
138
|
-
"--nmorph-image-preview-trigger-gap": r.triggerGap
|
|
137
|
+
"--nmorph-private-image-preview-trigger-width": r.width,
|
|
138
|
+
"--nmorph-private-image-preview-trigger-height": r.height,
|
|
139
|
+
"--nmorph-private-image-preview-radius": r.radius,
|
|
140
|
+
"--nmorph-private-image-preview-trigger-gap": r.triggerGap
|
|
139
141
|
})
|
|
140
|
-
), A = { props: r, open:
|
|
141
|
-
return
|
|
142
|
+
), A = { props: r, open: l, sourceList: a, getClampedIndex: s, currentIndex: u, resolvedCurrentIndex: d, triggerSource: K, showGalleryTrigger: v, triggerSourceLimit: y, triggerSources: m, hiddenTriggerCount: M, lastVisibleTriggerIndex: P, modifiers: R, scaleLevel: i, openPreviewAt: N, clickHandler: z, closeHandler: F, rotateRight: S, rotateLeft: w, zoomIn: I, zoomOut: b, isLevelChangedToMin: L, enlargeToNormal: q, shrinkToNormal: x, rotateLevel: n, previousHandler: B, nextHandler: _, keyboardNavigationHandler: p, addKeyboardNavigationListener: k, removeKeyboardNavigationListener: c, enlargeShrinkActionData: D, actions: E, emit: f, multipleSources: T, showNavigation: G, triggerStyle: O, getTriggerLabel: (e) => r.alt ? `${r.alt} ${e + 1}` : `Image ${e + 1}`, get NmorphImage() {
|
|
143
|
+
return ie;
|
|
142
144
|
}, get NmorphButton() {
|
|
143
145
|
return ae;
|
|
144
146
|
}, get NmorphIcon() {
|
|
145
147
|
return te;
|
|
146
|
-
}, NmorphPreviewPortal:
|
|
148
|
+
}, NmorphPreviewPortal: W };
|
|
147
149
|
return Object.defineProperty(A, "__isScriptSetup", { enumerable: !1, value: !0 }), A;
|
|
148
150
|
}
|
|
149
151
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-media-gallery__trigger{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:var(--indentation-03);width:100%}.nmorph-media-gallery__trigger--fixed-height{grid-auto-rows:var(--nmorph-media-gallery-trigger-height)}.nmorph-media-gallery__trigger-item{position:relative;min-width:0;overflow:hidden;background:color-mix(in srgb,var(--nmorph-accent-color) 6%,transparent);border-radius:var(--default-border-radius);aspect-ratio:16/9}.nmorph-media-gallery__trigger--fixed-height .nmorph-media-gallery__trigger-item{height:100%;aspect-ratio:auto}.nmorph-media-gallery__trigger-open{position:relative;display:block;width:100%;height:100%;padding:0;overflow:hidden;color:inherit;font:inherit;text-align:initial;background:transparent;border:0;cursor:pointer}.nmorph-media-gallery__trigger-open .nmorph-image,.nmorph-media-gallery__trigger-open .nmorph-media-gallery__trigger-video{display:block;width:100%;height:100%;transition:filter var(--transition-03) ease-in-out}.nmorph-media-gallery__trigger-open .nmorph-image img,.nmorph-media-gallery__trigger-open .nmorph-media-gallery__trigger-video{display:block;width:100%;height:100%;object-fit:cover}.nmorph-media-gallery__trigger-open:hover .nmorph-image,.nmorph-media-gallery__trigger-open:hover .nmorph-media-gallery__trigger-video{filter:brightness(.86)}.nmorph-media-gallery__trigger-name,.nmorph-media-gallery__trigger-size{position:absolute;z-index:2;display:block;box-sizing:border-box;min-width:0;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);pointer-events:none}.nmorph-media-gallery__trigger-name{top:var(--indentation-02);left:var(--indentation-02);max-width:calc(100% - 56px);font-weight:
|
|
1
|
+
.nmorph-media-gallery__trigger{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:var(--indentation-03);width:100%}.nmorph-media-gallery__trigger--fixed-height{grid-auto-rows:var(--nmorph-private-media-gallery-trigger-height)}.nmorph-media-gallery__trigger-item{position:relative;min-width:0;overflow:hidden;background:color-mix(in srgb,var(--nmorph-accent-color) 6%,transparent);border-radius:var(--default-border-radius);aspect-ratio:16/9}.nmorph-media-gallery__trigger--fixed-height .nmorph-media-gallery__trigger-item{height:100%;aspect-ratio:auto}.nmorph-media-gallery__trigger-open{position:relative;display:block;width:100%;height:100%;padding:0;overflow:hidden;color:inherit;font:inherit;text-align:initial;background:transparent;border:0;cursor:pointer}.nmorph-media-gallery__trigger-open .nmorph-image,.nmorph-media-gallery__trigger-open .nmorph-media-gallery__trigger-video{display:block;width:100%;height:100%;transition:filter var(--transition-03) ease-in-out}.nmorph-media-gallery__trigger-open .nmorph-image img,.nmorph-media-gallery__trigger-open .nmorph-media-gallery__trigger-video{display:block;width:100%;height:100%;object-fit:cover}.nmorph-media-gallery__trigger-open:hover .nmorph-image,.nmorph-media-gallery__trigger-open:hover .nmorph-media-gallery__trigger-video{filter:brightness(.86)}.nmorph-media-gallery__trigger-name,.nmorph-media-gallery__trigger-size{position:absolute;z-index:2;display:block;box-sizing:border-box;min-width:0;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);pointer-events:none}.nmorph-media-gallery__trigger-name{top:var(--indentation-02);left:var(--indentation-02);max-width:calc(100% - 56px);font-weight:var(--font-weight-semibold);font-size:var(--nmorph-typography-label-font-size)}.nmorph-media-gallery__trigger-item--video .nmorph-media-gallery__trigger-name{max-width:calc(100% - 118px)}.nmorph-media-gallery__trigger-size{right:var(--indentation-02);bottom:var(--indentation-02);max-width:calc(100% - var(--indentation-04));font-size:var(--nmorph-typography-caption-font-size)}.nmorph-media-gallery__trigger-actions{position:absolute;top:var(--indentation-02);right:var(--indentation-02);z-index:3;display:flex;gap:var(--indentation-01)}.nmorph-media-gallery__trigger-action{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;width:22px;height:22px;padding:0;color:var(--nmorph-contrast-text-color);font:inherit;line-height:1;text-decoration:none;background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border:0;border-radius:var(--default-border-radius);cursor:pointer}.nmorph-media-gallery__trigger-action .nmorph-icon{flex:0 0 auto;--nmorph-private-icon-color: var(--nmorph-contrast-text-color)}.nmorph-media-gallery__trigger-action:hover{color:var(--nmorph-contrast-text-color);background:color-mix(in srgb,var(--nmorph-black-color) 72%,transparent)}.nmorph-media-gallery__trigger-play{position:absolute;top:50%;left:50%;z-index:2;display:inline-flex;justify-content:center;align-items:center;width:54px;height:54px;color:var(--nmorph-contrast-text-color);background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border-radius:var(--border-radius-circular);transform:translate(-50%,-50%);pointer-events:none}.nmorph-media-gallery__trigger-play .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-contrast-text-color)}.nmorph-media-gallery{display:contents}.nmorph-media-gallery .nmorph-media-gallery__stage{position:relative;display:flex;justify-content:center;align-items:center;width:100%;height:100%;overflow:hidden;pointer-events:none}.nmorph-media-gallery .nmorph-image{width:100%;height:100%;transition:transform var(--transition-03) ease-in-out;pointer-events:none}.nmorph-media-gallery .nmorph-image img{display:block;width:auto;max-width:100%;height:auto;max-height:100%;object-fit:contain;pointer-events:auto}.nmorph-media-gallery .nmorph-media-gallery__video{display:block;width:100%;max-width:100%;height:100%;max-height:100%;background:var(--nmorph-black-color);border-radius:var(--default-border-radius);object-fit:contain;pointer-events:auto}.nmorph-media-gallery .nmorph-media-gallery__file-name,.nmorph-media-gallery .nmorph-media-gallery__file-size{position:absolute;z-index:2;display:block;box-sizing:border-box;min-width:0;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);pointer-events:none}.nmorph-media-gallery .nmorph-media-gallery__file-name{top:var(--indentation-02);left:var(--indentation-02);max-width:calc(100% - 56px);font-weight:var(--font-weight-semibold);font-size:var(--nmorph-typography-label-font-size)}.nmorph-media-gallery.nmorph-media-gallery--video .nmorph-media-gallery__file-name{max-width:calc(100% - 92px)}.nmorph-media-gallery .nmorph-media-gallery__file-size{right:var(--indentation-02);bottom:var(--indentation-02);max-width:calc(100% - var(--indentation-04));font-size:var(--nmorph-typography-caption-font-size)}.nmorph-media-gallery .nmorph-media-gallery__file-actions{position:absolute;top:var(--indentation-02);right:var(--indentation-02);z-index:3;display:flex;gap:var(--indentation-01);pointer-events:auto}.nmorph-media-gallery .nmorph-media-gallery__file-action{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;width:22px;height:22px;padding:0;color:var(--nmorph-contrast-text-color);font:inherit;line-height:1;text-decoration:none;background:color-mix(in srgb,var(--nmorph-black-color) 58%,transparent);border:0;border-radius:var(--default-border-radius);cursor:pointer}.nmorph-media-gallery .nmorph-media-gallery__file-action .nmorph-icon{flex:0 0 auto;--nmorph-private-icon-color: var(--nmorph-contrast-text-color)}.nmorph-media-gallery .nmorph-media-gallery__file-action:hover{background:color-mix(in srgb,var(--nmorph-black-color) 72%,transparent)}.nmorph-media-gallery .nmorph-media-gallery__action-element{margin-right:var(--indentation-03)}.nmorph-media-gallery.nmorph-media-gallery--image-cover .nmorph-image img{width:100%;height:100%;object-fit:cover}.nmorph-media-gallery.nmorph-media-gallery--video-cover .nmorph-media-gallery__video{object-fit:cover}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './NmorphMediaGallery.css';
|
|
2
2
|
import y from "./NmorphMediaGallery.vue2.js";
|
|
3
|
-
import { openBlock as l, createElementBlock as a, Fragment as s, normalizeStyle as g, normalizeClass as f, renderList as v, createElementVNode as c, createBlock as m, createVNode as e, withCtx as n, createCommentVNode as i, toDisplayString as
|
|
3
|
+
import { openBlock as l, createElementBlock as a, Fragment as s, normalizeStyle as g, normalizeClass as f, renderList as v, createElementVNode as c, createBlock as m, createVNode as e, withCtx as n, createCommentVNode as i, toDisplayString as _, withModifiers as h } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import I from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
6
|
const N = ["aria-label", "onClick"], k = ["src", "poster", "title"], w = {
|
|
@@ -15,7 +15,7 @@ const N = ["aria-label", "onClick"], k = ["src", "poster", "title"], w = {
|
|
|
15
15
|
}, z = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "nmorph-media-gallery__trigger-actions"
|
|
18
|
-
}, C = ["aria-label", "onClick"],
|
|
18
|
+
}, C = ["aria-label", "onClick"], H = ["aria-label", "onClick"], P = ["href", "download", "aria-label", "onClick"], F = { class: "nmorph-media-gallery__stage" }, S = ["src", "poster", "controls", "muted", "playsinline", "preload", "title"], D = {
|
|
19
19
|
key: 2,
|
|
20
20
|
class: "nmorph-media-gallery__file-name"
|
|
21
21
|
}, L = {
|
|
@@ -25,7 +25,7 @@ const N = ["aria-label", "onClick"], k = ["src", "poster", "title"], w = {
|
|
|
25
25
|
key: 4,
|
|
26
26
|
class: "nmorph-media-gallery__file-size"
|
|
27
27
|
}, E = { class: "nmorph-media-gallery__action-element" }, V = { class: "nmorph-media-gallery__action-element" }, R = { class: "nmorph-media-gallery__action-element" }, x = { class: "nmorph-media-gallery__action-element" }, M = { class: "nmorph-media-gallery__action-element" };
|
|
28
|
-
function O(G, U, Z, o, j,
|
|
28
|
+
function O(G, U, Z, o, j, W) {
|
|
29
29
|
return l(), a(
|
|
30
30
|
s,
|
|
31
31
|
null,
|
|
@@ -88,14 +88,14 @@ function O(G, U, Z, o, j, q) {
|
|
|
88
88
|
o.props.showTriggerName && o.getItemName(r) ? (l(), a(
|
|
89
89
|
"span",
|
|
90
90
|
b,
|
|
91
|
-
|
|
91
|
+
_(o.getItemName(r)),
|
|
92
92
|
1
|
|
93
93
|
/* TEXT */
|
|
94
94
|
)) : i("v-if", !0),
|
|
95
95
|
o.props.showTriggerSize && o.getItemSize(r) ? (l(), a(
|
|
96
96
|
"span",
|
|
97
97
|
p,
|
|
98
|
-
|
|
98
|
+
_(o.getItemSize(r)),
|
|
99
99
|
1
|
|
100
100
|
/* TEXT */
|
|
101
101
|
)) : i("v-if", !0)
|
|
@@ -106,7 +106,7 @@ function O(G, U, Z, o, j, q) {
|
|
|
106
106
|
type: "button",
|
|
107
107
|
class: "nmorph-media-gallery__trigger-action",
|
|
108
108
|
"aria-label": `Preview ${o.getItemLabel(r, t)}`,
|
|
109
|
-
onClick:
|
|
109
|
+
onClick: h((d) => o.openPreviewAt(t), ["stop"])
|
|
110
110
|
}, [
|
|
111
111
|
e(o.NmorphIcon, {
|
|
112
112
|
size: "small",
|
|
@@ -124,7 +124,7 @@ function O(G, U, Z, o, j, q) {
|
|
|
124
124
|
type: "button",
|
|
125
125
|
class: "nmorph-media-gallery__trigger-action",
|
|
126
126
|
"aria-label": `Fullscreen ${o.getItemLabel(r, t)}`,
|
|
127
|
-
onClick:
|
|
127
|
+
onClick: h((d) => o.triggerFullscreenHandler(r, t), ["stop"])
|
|
128
128
|
}, [
|
|
129
129
|
e(o.NmorphIcon, {
|
|
130
130
|
size: "small",
|
|
@@ -136,14 +136,14 @@ function O(G, U, Z, o, j, q) {
|
|
|
136
136
|
_: 1
|
|
137
137
|
/* STABLE */
|
|
138
138
|
})
|
|
139
|
-
], 8,
|
|
139
|
+
], 8, H)) : i("v-if", !0),
|
|
140
140
|
o.showTriggerDownloadActionForItem(r) ? (l(), a("a", {
|
|
141
141
|
key: 2,
|
|
142
142
|
href: o.getItemDownloadHref(r),
|
|
143
143
|
download: o.getItemName(r) || void 0,
|
|
144
144
|
class: "nmorph-media-gallery__trigger-action",
|
|
145
145
|
"aria-label": `Download ${o.getItemLabel(r, t)}`,
|
|
146
|
-
onClick:
|
|
146
|
+
onClick: h((d) => o.downloadItemHandler(r, t), ["stop"])
|
|
147
147
|
}, [
|
|
148
148
|
e(o.NmorphIcon, {
|
|
149
149
|
size: "small",
|
|
@@ -155,7 +155,7 @@ function O(G, U, Z, o, j, q) {
|
|
|
155
155
|
_: 1
|
|
156
156
|
/* STABLE */
|
|
157
157
|
})
|
|
158
|
-
], 8,
|
|
158
|
+
], 8, P)) : i("v-if", !0)
|
|
159
159
|
])) : i("v-if", !0)
|
|
160
160
|
],
|
|
161
161
|
2
|
|
@@ -177,6 +177,8 @@ function O(G, U, Z, o, j, q) {
|
|
|
177
177
|
"left-class": "nmorph-media-gallery__left",
|
|
178
178
|
"right-class": "nmorph-media-gallery__right",
|
|
179
179
|
"actions-class": "nmorph-media-gallery__actions",
|
|
180
|
+
"content-width": o.props.previewWidth,
|
|
181
|
+
"content-height": o.props.previewHeight,
|
|
180
182
|
"show-navigation": o.showNavigation,
|
|
181
183
|
"show-action-bar": o.props.showActionBar && o.currentItem?.kind === "image",
|
|
182
184
|
onClose: o.closeHandler,
|
|
@@ -296,7 +298,7 @@ function O(G, U, Z, o, j, q) {
|
|
|
296
298
|
o.currentName ? (l(), a(
|
|
297
299
|
"span",
|
|
298
300
|
D,
|
|
299
|
-
|
|
301
|
+
_(o.currentName),
|
|
300
302
|
1
|
|
301
303
|
/* TEXT */
|
|
302
304
|
)) : i("v-if", !0),
|
|
@@ -306,7 +308,7 @@ function O(G, U, Z, o, j, q) {
|
|
|
306
308
|
type: "button",
|
|
307
309
|
class: "nmorph-media-gallery__file-action",
|
|
308
310
|
"aria-label": `Fullscreen ${o.currentVideoName}`,
|
|
309
|
-
onClick:
|
|
311
|
+
onClick: h(o.fullscreenHandler, ["stop"])
|
|
310
312
|
}, [
|
|
311
313
|
e(o.NmorphIcon, {
|
|
312
314
|
size: "small",
|
|
@@ -325,7 +327,7 @@ function O(G, U, Z, o, j, q) {
|
|
|
325
327
|
download: o.currentItemName || void 0,
|
|
326
328
|
class: "nmorph-media-gallery__file-action",
|
|
327
329
|
"aria-label": `Download ${o.currentItemName || "media"}`,
|
|
328
|
-
onClick:
|
|
330
|
+
onClick: h(o.downloadHandler, ["stop"])
|
|
329
331
|
}, [
|
|
330
332
|
e(o.NmorphIcon, {
|
|
331
333
|
size: "small",
|
|
@@ -342,7 +344,7 @@ function O(G, U, Z, o, j, q) {
|
|
|
342
344
|
o.currentSize ? (l(), a(
|
|
343
345
|
"span",
|
|
344
346
|
A,
|
|
345
|
-
|
|
347
|
+
_(o.currentSize),
|
|
346
348
|
1
|
|
347
349
|
/* TEXT */
|
|
348
350
|
)) : i("v-if", !0)
|
|
@@ -350,7 +352,7 @@ function O(G, U, Z, o, j, q) {
|
|
|
350
352
|
]),
|
|
351
353
|
_: 1
|
|
352
354
|
/* STABLE */
|
|
353
|
-
}, 8, ["show", "z-index", "state-class", "show-navigation", "show-action-bar"])) : i("v-if", !0)
|
|
355
|
+
}, 8, ["show", "z-index", "state-class", "content-width", "content-height", "show-navigation", "show-action-bar"])) : i("v-if", !0)
|
|
354
356
|
],
|
|
355
357
|
64
|
|
356
358
|
/* STABLE_FRAGMENT */
|