@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,8 +1,8 @@
|
|
|
1
1
|
import './NmorphMediaGallery.css';
|
|
2
|
-
import { defineComponent as He, ref as c, computed as n, watch as N, onBeforeUnmount as
|
|
2
|
+
import { defineComponent as He, ref as c, computed as n, watch as N, onBeforeUnmount as Se } from "vue";
|
|
3
3
|
import { useModifiers as X } from "../../../utils/create-modifiers.js";
|
|
4
|
-
import { createCssSizeVariables as
|
|
5
|
-
import
|
|
4
|
+
import { createCssSizeVariables as Ae } from "../../../utils/common.js";
|
|
5
|
+
import Te from "../nmorph-preview-portal/NmorphPreviewPortal.vue.js";
|
|
6
6
|
import Pe from "../nmorph-image/NmorphImage.vue.js";
|
|
7
7
|
import Me from "../../../assets/icons/full-screen.svg.js";
|
|
8
8
|
import Ve from "../../../assets/icons/eye.svg.js";
|
|
@@ -25,6 +25,8 @@ const Y = 45, dt = /* @__PURE__ */ He({
|
|
|
25
25
|
activeIndex: { type: Number, required: !1, default: void 0 },
|
|
26
26
|
zIndex: { type: Number, required: !1, default: void 0 },
|
|
27
27
|
height: { type: [Number, String], required: !1, default: void 0 },
|
|
28
|
+
previewWidth: { type: [Number, String], required: !1, default: void 0 },
|
|
29
|
+
previewHeight: { type: [Number, String], required: !1, default: void 0 },
|
|
28
30
|
showTrigger: { type: Boolean, required: !1, default: !1 },
|
|
29
31
|
showTriggerName: { type: Boolean, required: !1, default: !0 },
|
|
30
32
|
showTriggerSize: { type: Boolean, required: !1, default: !0 },
|
|
@@ -43,12 +45,12 @@ const Y = 45, dt = /* @__PURE__ */ He({
|
|
|
43
45
|
videoFit: { type: String, required: !1, default: "contain" }
|
|
44
46
|
},
|
|
45
47
|
emits: ["update:model-value", "update:active-index", "close", "change", "download", "fullscreen"],
|
|
46
|
-
setup(G, { expose:
|
|
47
|
-
|
|
48
|
-
const o = G, a =
|
|
49
|
-
const t =
|
|
48
|
+
setup(G, { expose: W, emit: j }) {
|
|
49
|
+
W();
|
|
50
|
+
const o = G, a = j, v = c(o.modelValue), m = c(0), h = c(null), F = c({}), y = c(null), l = c(!1), f = c(1), i = c(0), p = c(null), u = n(() => o.items || []), x = n(() => u.value.length > 1), V = n(() => o.showNavigationButtons && x.value), g = (e) => {
|
|
51
|
+
const t = u.value.length - 1;
|
|
50
52
|
return t < 0 || !Number.isFinite(e) || e < 0 ? 0 : e > t ? t : e;
|
|
51
|
-
}, d = n(() =>
|
|
53
|
+
}, d = n(() => g(m.value)), r = n(() => u.value[d.value]), B = n(() => r.value?.kind === "image"), I = n(() => r.value?.kind === "video"), L = n(
|
|
52
54
|
() => r.value?.kind === "video" ? r.value.controls !== !1 : !1
|
|
53
55
|
), J = n(() => r.value?.kind === "video" ? r.value.muted === !0 : !1), Q = n(
|
|
54
56
|
() => r.value?.kind === "video" ? r.value.playsinline !== !1 : !0
|
|
@@ -69,20 +71,20 @@ const Y = 45, dt = /* @__PURE__ */ He({
|
|
|
69
71
|
o.videoFit === "cover" && I.value && "video-cover"
|
|
70
72
|
]
|
|
71
73
|
})
|
|
72
|
-
), ae = n(() => `rotate(${
|
|
73
|
-
() =>
|
|
74
|
-
"--nmorph-media-gallery-trigger-height": o.height
|
|
74
|
+
), ae = n(() => `rotate(${i.value}deg) scale(${f.value})`), le = n(
|
|
75
|
+
() => Ae({
|
|
76
|
+
"--nmorph-private-media-gallery-trigger-height": o.height
|
|
75
77
|
})
|
|
76
|
-
),
|
|
78
|
+
), ie = n(
|
|
77
79
|
() => X({
|
|
78
80
|
"nmorph-media-gallery__trigger": [o.height !== void 0 && "fixed-height"]
|
|
79
81
|
})
|
|
80
82
|
), q = (e) => {
|
|
81
83
|
if (e === void 0 || Number.isNaN(e) || e < 0) return "";
|
|
82
84
|
if (e === 0) return "0 B";
|
|
83
|
-
const t = ["B", "KB", "MB", "GB", "TB"], s = Math.min(Math.floor(Math.log(e) / Math.log(1024)), t.length - 1), M = e / 1024 ** s,
|
|
84
|
-
return `${M.toFixed(
|
|
85
|
-
},
|
|
85
|
+
const t = ["B", "KB", "MB", "GB", "TB"], s = Math.min(Math.floor(Math.log(e) / Math.log(1024)), t.length - 1), M = e / 1024 ** s, ke = M >= 10 || s === 0 || Number.isInteger(M) ? 0 : 1;
|
|
86
|
+
return `${M.toFixed(ke)} ${t[s]}`;
|
|
87
|
+
}, ue = n(() => o.showFileSize ? q(r.value?.size) : ""), se = (e) => e.name || "", de = (e, t) => e.name || `${e.kind === "video" ? "Video" : "Image"} ${t + 1}`, ce = (e) => q(e.size), E = (e) => e.downloadHref || "", z = (e) => o.showTriggerPreviewAction && e.kind === "video", C = (e) => o.showTriggerFullscreenAction && e.kind === "video", K = (e) => o.showTriggerDownloadAction && !!E(e), ve = (e) => o.showTriggerActions && (z(e) || C(e) || K(e)), fe = (e, t) => {
|
|
86
88
|
F.value[e] = t instanceof HTMLVideoElement ? t : null;
|
|
87
89
|
};
|
|
88
90
|
N(
|
|
@@ -93,13 +95,13 @@ const Y = 45, dt = /* @__PURE__ */ He({
|
|
|
93
95
|
), N(
|
|
94
96
|
() => o.activeIndex,
|
|
95
97
|
(e) => {
|
|
96
|
-
typeof e == "number" && (m.value =
|
|
98
|
+
typeof e == "number" && (m.value = g(e));
|
|
97
99
|
},
|
|
98
100
|
{ immediate: !0 }
|
|
99
101
|
), N(
|
|
100
|
-
() => [o.initialIndex,
|
|
102
|
+
() => [o.initialIndex, u.value.length],
|
|
101
103
|
() => {
|
|
102
|
-
typeof o.activeIndex != "number" && (m.value =
|
|
104
|
+
typeof o.activeIndex != "number" && (m.value = g(o.initialIndex));
|
|
103
105
|
},
|
|
104
106
|
{ immediate: !0 }
|
|
105
107
|
), N(
|
|
@@ -110,40 +112,40 @@ const Y = 45, dt = /* @__PURE__ */ He({
|
|
|
110
112
|
);
|
|
111
113
|
const w = () => {
|
|
112
114
|
!h.value || h.value === y.value || (h.value.pause(), l.value = !1, y.value = h.value);
|
|
113
|
-
},
|
|
114
|
-
f.value = 1,
|
|
115
|
-
},
|
|
116
|
-
if (!
|
|
117
|
-
const t =
|
|
115
|
+
}, b = () => {
|
|
116
|
+
f.value = 1, i.value = 0;
|
|
117
|
+
}, k = (e) => {
|
|
118
|
+
if (!u.value.length) return;
|
|
119
|
+
const t = g(e);
|
|
118
120
|
if (t === d.value) return;
|
|
119
|
-
w(), l.value = !1, m.value = t,
|
|
120
|
-
const s =
|
|
121
|
+
w(), l.value = !1, m.value = t, b(), a("update:active-index", t);
|
|
122
|
+
const s = u.value[t];
|
|
121
123
|
s && a("change", s, t);
|
|
122
124
|
}, H = () => {
|
|
123
|
-
const e =
|
|
124
|
-
e &&
|
|
125
|
-
},
|
|
126
|
-
const e =
|
|
127
|
-
e &&
|
|
125
|
+
const e = u.value.length;
|
|
126
|
+
e && k(d.value === 0 ? e - 1 : d.value - 1);
|
|
127
|
+
}, S = () => {
|
|
128
|
+
const e = u.value.length;
|
|
129
|
+
e && k(d.value === e - 1 ? 0 : d.value + 1);
|
|
128
130
|
}, me = (e) => {
|
|
129
|
-
if (!
|
|
130
|
-
const t =
|
|
131
|
-
w(), l.value = !1, m.value = t,
|
|
132
|
-
const s =
|
|
131
|
+
if (!u.value.length) return;
|
|
132
|
+
const t = g(e);
|
|
133
|
+
w(), l.value = !1, m.value = t, b(), v.value = !0, a("update:model-value", !0), a("update:active-index", t);
|
|
134
|
+
const s = u.value[t];
|
|
133
135
|
s && a("change", s, t);
|
|
134
136
|
}, $ = () => {
|
|
135
137
|
v.value && (w(), v.value = !1, a("update:model-value", !1), a("close"));
|
|
136
|
-
}, ge = () => {
|
|
137
|
-
u.value = u.value + 90, u.value >= 360 && (u.value = 0);
|
|
138
138
|
}, pe = () => {
|
|
139
|
-
|
|
139
|
+
i.value = i.value + 90, i.value >= 360 && (i.value = 0);
|
|
140
|
+
}, ge = () => {
|
|
141
|
+
i.value = i.value - 90, i.value <= -360 && (i.value = 0);
|
|
140
142
|
}, he = () => {
|
|
141
143
|
f.value = parseFloat(Math.min(f.value + 0.2, 4).toFixed(3));
|
|
142
144
|
}, ye = () => {
|
|
143
145
|
f.value = parseFloat(Math.max(f.value - 0.2, 0.2).toFixed(3));
|
|
144
146
|
}, Ie = () => {
|
|
145
147
|
f.value = 1;
|
|
146
|
-
},
|
|
148
|
+
}, A = async (e) => {
|
|
147
149
|
if (e)
|
|
148
150
|
try {
|
|
149
151
|
const t = e.requestFullscreen?.() || e.webkitRequestFullscreen?.();
|
|
@@ -155,9 +157,9 @@ const Y = 45, dt = /* @__PURE__ */ He({
|
|
|
155
157
|
} catch {
|
|
156
158
|
}
|
|
157
159
|
}, we = async () => {
|
|
158
|
-
!r.value || r.value.kind !== "video" || (a("fullscreen", r.value, d.value), await
|
|
160
|
+
!r.value || r.value.kind !== "video" || (a("fullscreen", r.value, d.value), await A(h.value));
|
|
159
161
|
}, Ne = async (e, t) => {
|
|
160
|
-
e.kind === "video" && (a("fullscreen", e, t), await
|
|
162
|
+
e.kind === "video" && (a("fullscreen", e, t), await A(F.value[t]));
|
|
161
163
|
}, O = (e, t) => {
|
|
162
164
|
a("download", e, t);
|
|
163
165
|
}, Fe = () => {
|
|
@@ -168,39 +170,39 @@ const Y = 45, dt = /* @__PURE__ */ He({
|
|
|
168
170
|
l.value = !1;
|
|
169
171
|
}, qe = () => {
|
|
170
172
|
l.value = !1;
|
|
171
|
-
},
|
|
173
|
+
}, be = () => {
|
|
172
174
|
l.value = !1;
|
|
173
|
-
},
|
|
175
|
+
}, T = (e) => {
|
|
174
176
|
if (v.value && !(e.altKey || e.ctrlKey || e.metaKey || e.shiftKey)) {
|
|
175
177
|
if (e.key === "Escape") {
|
|
176
178
|
e.preventDefault(), $();
|
|
177
179
|
return;
|
|
178
180
|
}
|
|
179
|
-
x.value && (e.key === "ArrowLeft" && (e.preventDefault(), H()), e.key === "ArrowRight" && (e.preventDefault(),
|
|
181
|
+
x.value && (e.key === "ArrowLeft" && (e.preventDefault(), H()), e.key === "ArrowRight" && (e.preventDefault(), S()));
|
|
180
182
|
}
|
|
181
183
|
}, Z = () => {
|
|
182
|
-
typeof document > "u" || document.addEventListener("keydown",
|
|
184
|
+
typeof document > "u" || document.addEventListener("keydown", T);
|
|
183
185
|
}, P = () => {
|
|
184
|
-
typeof document > "u" || document.removeEventListener("keydown",
|
|
186
|
+
typeof document > "u" || document.removeEventListener("keydown", T);
|
|
185
187
|
};
|
|
186
188
|
N(
|
|
187
189
|
v,
|
|
188
190
|
(e) => {
|
|
189
|
-
e ? (Z(), y.value = null, m.value =
|
|
191
|
+
e ? (Z(), y.value = null, m.value = g(
|
|
190
192
|
typeof o.activeIndex == "number" ? o.activeIndex : o.initialIndex
|
|
191
193
|
)) : (w(), l.value = !1, P());
|
|
192
194
|
},
|
|
193
195
|
{ immediate: !0 }
|
|
194
|
-
),
|
|
195
|
-
const U = { SWIPE_THRESHOLD: Y, props: o, emit: a, open: v, currentIndex: m, currentVideoRef: h, triggerVideoRefs: F, pausedVideoRef: y, videoPlaying: l, scaleLevel: f, rotateLevel:
|
|
196
|
-
|
|
196
|
+
), Se(P);
|
|
197
|
+
const U = { SWIPE_THRESHOLD: Y, props: o, emit: a, open: v, currentIndex: m, currentVideoRef: h, triggerVideoRefs: F, pausedVideoRef: y, videoPlaying: l, scaleLevel: f, rotateLevel: i, pointerStart: p, sourceList: u, multipleItems: x, showNavigation: V, getClampedIndex: g, resolvedCurrentIndex: d, currentItem: r, isImage: B, isVideo: I, videoControls: L, videoMuted: J, videoPlaysinline: Q, videoPreload: ee, currentVideoName: te, currentItemName: R, currentName: oe, currentDownloadHref: D, showVideoFullscreenAction: _, showFileActions: re, modifiers: ne, imageTransform: ae, triggerStyle: le, triggerModifiers: ie, formatSize: q, currentSize: ue, getItemName: se, getItemLabel: de, getItemSize: ce, getItemDownloadHref: E, showTriggerPreviewActionForItem: z, showTriggerFullscreenActionForItem: C, showTriggerDownloadActionForItem: K, showTriggerActionsForItem: ve, setTriggerVideoRef: fe, pauseCurrentVideo: w, resetImageTransform: b, setCurrentIndex: k, previousHandler: H, nextHandler: S, openPreviewAt: me, closeHandler: $, rotateRight: pe, rotateLeft: ge, zoomIn: he, zoomOut: ye, toggleNormalSize: Ie, requestVideoFullscreen: A, fullscreenHandler: we, triggerFullscreenHandler: Ne, downloadItemHandler: O, downloadHandler: Fe, videoPlayHandler: xe, videoPauseHandler: Be, videoEndedHandler: qe, videoErrorHandler: be, keyboardNavigationHandler: T, addKeyboardNavigationListener: Z, removeKeyboardNavigationListener: P, pointerDownHandler: (e) => {
|
|
198
|
+
p.value = { x: e.clientX, y: e.clientY };
|
|
197
199
|
}, pointerUpHandler: (e) => {
|
|
198
|
-
if (!
|
|
199
|
-
|
|
200
|
+
if (!p.value || !V.value) {
|
|
201
|
+
p.value = null;
|
|
200
202
|
return;
|
|
201
203
|
}
|
|
202
|
-
const t = e.clientX -
|
|
203
|
-
|
|
204
|
+
const t = e.clientX - p.value.x, s = e.clientY - p.value.y;
|
|
205
|
+
p.value = null, !(Math.abs(t) < Y || Math.abs(t) < Math.abs(s) * 1.2) && (t > 0 ? H() : S());
|
|
204
206
|
}, get NmorphButton() {
|
|
205
207
|
return Re;
|
|
206
208
|
}, get NmorphIcon() {
|
|
@@ -227,7 +229,7 @@ const Y = 45, dt = /* @__PURE__ */ He({
|
|
|
227
229
|
return De;
|
|
228
230
|
}, get NmorphImage() {
|
|
229
231
|
return Pe;
|
|
230
|
-
}, NmorphPreviewPortal:
|
|
232
|
+
}, NmorphPreviewPortal: Te };
|
|
231
233
|
return Object.defineProperty(U, "__isScriptSetup", { enumerable: !1, value: !0 }), U;
|
|
232
234
|
}
|
|
233
235
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-media-tile{position:relative;display:flex;justify-content:center;align-items:center;aspect-ratio:16/9;min-width:0;overflow:hidden;background:var(--nmorph-main-color);border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-inset)}.nmorph-media-tile .nmorph-media-tile__video{width:100%;height:100%;object-fit:cover}.nmorph-media-tile.nmorph-media-tile--contain .nmorph-media-tile__video{object-fit:contain}.nmorph-media-tile.nmorph-media-tile--mirrored .nmorph-media-tile__video{transform:scaleX(-1)}.nmorph-media-tile .nmorph-media-tile__fallback{display:flex;flex-direction:column;gap:var(--indentation-02);justify-content:center;align-items:center;width:100%;height:100%;padding:var(--indentation-04);color:var(--nmorph-text-color);text-align:center}.nmorph-media-tile .nmorph-media-tile__initials{display:flex;justify-content:center;align-items:center;width:72px;height:72px;color:var(--nmorph-focus-text-color);font-weight:
|
|
1
|
+
.nmorph-media-tile{position:relative;display:flex;justify-content:center;align-items:center;aspect-ratio:16/9;min-width:0;overflow:hidden;background:var(--nmorph-main-color);border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-inset)}.nmorph-media-tile .nmorph-media-tile__video{width:100%;height:100%;object-fit:cover}.nmorph-media-tile.nmorph-media-tile--contain .nmorph-media-tile__video{object-fit:contain}.nmorph-media-tile.nmorph-media-tile--mirrored .nmorph-media-tile__video{transform:scaleX(-1)}.nmorph-media-tile .nmorph-media-tile__fallback{display:flex;flex-direction:column;gap:var(--indentation-02);justify-content:center;align-items:center;width:100%;height:100%;padding:var(--indentation-04);color:var(--nmorph-text-color);text-align:center}.nmorph-media-tile .nmorph-media-tile__initials{display:flex;justify-content:center;align-items:center;width:72px;height:72px;color:var(--nmorph-focus-text-color);font-weight:var(--font-weight-bold);font-size:var(--nmorph-typography-title-large-font-size);background:var(--nmorph-accent-color);border-radius:var(--border-radius-circular)}.nmorph-media-tile .nmorph-media-tile__name,.nmorph-media-tile .nmorph-media-tile__error-text{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.nmorph-media-tile .nmorph-media-tile__error-text{color:var(--nmorph-error-text-color);font-size:var(--nmorph-typography-body-small-font-size);line-height:var(--nmorph-typography-body-small-line-height)}.nmorph-media-tile .nmorph-media-tile__status{position:absolute;right:var(--indentation-03);bottom:var(--indentation-03);display:flex;gap:var(--indentation-02)}.nmorph-media-tile .nmorph-media-tile__status-item{display:inline-flex;justify-content:center;align-items:center;width:24px;height:24px;color:var(--nmorph-text-color);background:color-mix(in srgb,var(--nmorph-main-color) 86%,transparent);border-radius:var(--border-radius-circular);box-shadow:var(--nmorph-shadow-outset);--nmorph-private-icon-color: currentColor}.nmorph-media-tile.nmorph-media-tile--selected{outline:2px solid var(--nmorph-accent-color)}.nmorph-media-tile.nmorph-media-tile--speaking{outline:3px solid var(--nmorph-success-color)}.nmorph-media-tile.nmorph-media-tile--error{outline:2px solid var(--nmorph-error-color)}.nmorph-media-tile.nmorph-media-tile--screen-sharing{box-shadow:0 0 0 2px var(--nmorph-success-color)}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './NmorphMediaTile.css';
|
|
2
|
-
import
|
|
3
|
-
import { openBlock as e, createElementBlock as r, normalizeClass as
|
|
2
|
+
import m from "./NmorphMediaTile.vue2.js";
|
|
3
|
+
import { openBlock as e, createElementBlock as r, normalizeClass as d, withDirectives as c, createElementVNode as p, vShow as _, createBlock as n, withCtx as s, createVNode as a, toDisplayString as l, createCommentVNode as i, renderSlot as h } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import f from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
6
|
const v = ["src", "muted", "autoplay", "playsinline"], y = {
|
|
@@ -12,10 +12,13 @@ const v = ["src", "muted", "autoplay", "playsinline"], y = {
|
|
|
12
12
|
}, N = {
|
|
13
13
|
key: 3,
|
|
14
14
|
class: "nmorph-media-tile__name"
|
|
15
|
-
},
|
|
15
|
+
}, b = {
|
|
16
16
|
key: 4,
|
|
17
17
|
class: "nmorph-media-tile__error-text"
|
|
18
|
-
},
|
|
18
|
+
}, I = {
|
|
19
|
+
key: 1,
|
|
20
|
+
class: "nmorph-media-tile__status"
|
|
21
|
+
}, S = {
|
|
19
22
|
key: 0,
|
|
20
23
|
class: "nmorph-media-tile__status-item",
|
|
21
24
|
"aria-label": "Microphone muted"
|
|
@@ -32,14 +35,14 @@ const v = ["src", "muted", "autoplay", "playsinline"], y = {
|
|
|
32
35
|
class: "nmorph-media-tile__status-item",
|
|
33
36
|
"aria-label": "Pinned"
|
|
34
37
|
};
|
|
35
|
-
function x(
|
|
38
|
+
function x(t, w, M, o, T, B) {
|
|
36
39
|
return e(), r(
|
|
37
40
|
"div",
|
|
38
41
|
{
|
|
39
|
-
class:
|
|
42
|
+
class: d(o.modifiers)
|
|
40
43
|
},
|
|
41
44
|
[
|
|
42
|
-
p(
|
|
45
|
+
c(p("video", {
|
|
43
46
|
ref: "videoRef",
|
|
44
47
|
class: "nmorph-media-tile__video",
|
|
45
48
|
src: o.props.src || void 0,
|
|
@@ -49,8 +52,8 @@ function x(m, M, T, o, w, B) {
|
|
|
49
52
|
}, null, 8, v), [
|
|
50
53
|
[_, o.hasVideo && !o.props.loading]
|
|
51
54
|
]),
|
|
52
|
-
!o.hasVideo || o.props.loading ? (e(), r("div", y, [
|
|
53
|
-
o.props.loading ? (e(),
|
|
55
|
+
o.props.showFallback && (!o.hasVideo || o.props.loading) ? (e(), r("div", y, [
|
|
56
|
+
o.props.loading ? (e(), n(o.NmorphIcon, {
|
|
54
57
|
key: 0,
|
|
55
58
|
class: "nmorph-media-tile__loader",
|
|
56
59
|
size: "large"
|
|
@@ -60,11 +63,12 @@ function x(m, M, T, o, w, B) {
|
|
|
60
63
|
]),
|
|
61
64
|
_: 1
|
|
62
65
|
/* STABLE */
|
|
63
|
-
})) : o.props.avatarSrc ? (e(),
|
|
66
|
+
})) : o.props.avatarSrc ? (e(), n(o.NmorphAvatar, {
|
|
64
67
|
key: 1,
|
|
65
68
|
src: o.props.avatarSrc,
|
|
66
69
|
name: o.props.name,
|
|
67
|
-
size: 72
|
|
70
|
+
size: 72,
|
|
71
|
+
design: "plain"
|
|
68
72
|
}, null, 8, ["src", "name"])) : (e(), r(
|
|
69
73
|
"div",
|
|
70
74
|
k,
|
|
@@ -81,13 +85,13 @@ function x(m, M, T, o, w, B) {
|
|
|
81
85
|
)) : i("v-if", !0),
|
|
82
86
|
o.props.error && o.props.errorText ? (e(), r(
|
|
83
87
|
"span",
|
|
84
|
-
|
|
88
|
+
b,
|
|
85
89
|
l(o.props.errorText),
|
|
86
90
|
1
|
|
87
91
|
/* TEXT */
|
|
88
92
|
)) : i("v-if", !0)
|
|
89
93
|
])) : i("v-if", !0),
|
|
90
|
-
|
|
94
|
+
o.props.showStatus ? (e(), r("div", I, [
|
|
91
95
|
o.props.micMuted ? (e(), r("span", S, [
|
|
92
96
|
a(o.NmorphIcon, { size: "small" }, {
|
|
93
97
|
default: s(() => [
|
|
@@ -124,14 +128,14 @@ function x(m, M, T, o, w, B) {
|
|
|
124
128
|
/* STABLE */
|
|
125
129
|
})
|
|
126
130
|
])) : i("v-if", !0)
|
|
127
|
-
]),
|
|
128
|
-
h(
|
|
131
|
+
])) : i("v-if", !0),
|
|
132
|
+
h(t.$slots, "overlay")
|
|
129
133
|
],
|
|
130
134
|
2
|
|
131
135
|
/* CLASS */
|
|
132
136
|
);
|
|
133
137
|
}
|
|
134
|
-
const P = /* @__PURE__ */ f(
|
|
138
|
+
const P = /* @__PURE__ */ f(m, [["render", x], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-media-tile/NmorphMediaTile.vue"]]);
|
|
135
139
|
export {
|
|
136
140
|
P as default
|
|
137
141
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import './NmorphMediaTile.css';
|
|
2
|
-
import { defineComponent as
|
|
2
|
+
import { defineComponent as d, ref as p, computed as o, watch as c } from "vue";
|
|
3
3
|
import { useModifiers as m } from "../../../utils/create-modifiers.js";
|
|
4
4
|
import h from "../../../assets/icons/share.svg.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import y from "../../../assets/icons/pin.svg.js";
|
|
6
|
+
import g from "../../../assets/icons/mic.svg.js";
|
|
7
7
|
import q from "../../basic/nmorph-icon/NmorphIcon.vue.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
const
|
|
8
|
+
import B from "../nmorph-avatar/NmorphAvatar.vue.js";
|
|
9
|
+
import v from "../../../assets/icons/video.svg.js";
|
|
10
|
+
import N from "../../../assets/icons/loader.svg.js";
|
|
11
|
+
const x = /* @__PURE__ */ d({
|
|
12
12
|
__name: "NmorphMediaTile",
|
|
13
13
|
props: {
|
|
14
14
|
src: { type: String, required: !1, default: "" },
|
|
@@ -21,6 +21,8 @@ const L = /* @__PURE__ */ u({
|
|
|
21
21
|
name: { type: String, required: !1, default: "" },
|
|
22
22
|
avatarSrc: { type: String, required: !1, default: "" },
|
|
23
23
|
loading: { type: Boolean, required: !1, default: !1 },
|
|
24
|
+
showFallback: { type: Boolean, required: !1, default: !0 },
|
|
25
|
+
showStatus: { type: Boolean, required: !1, default: !0 },
|
|
24
26
|
micMuted: { type: Boolean, required: !1, default: !1 },
|
|
25
27
|
videoOff: { type: Boolean, required: !1, default: !1 },
|
|
26
28
|
screenSharing: { type: Boolean, required: !1, default: !1 },
|
|
@@ -32,7 +34,7 @@ const L = /* @__PURE__ */ u({
|
|
|
32
34
|
},
|
|
33
35
|
setup(l, { expose: i }) {
|
|
34
36
|
const e = l, r = p(null), n = o(() => !!((e.src || e.srcObject) && !e.videoOff && !e.error)), t = o(
|
|
35
|
-
() => e.name.split(/\s+/).filter(Boolean).slice(0, 2).map((
|
|
37
|
+
() => e.name.split(/\s+/).filter(Boolean).slice(0, 2).map((u) => u[0]?.toUpperCase()).join("")
|
|
36
38
|
), f = o(() => t.value || e.name || "?"), s = o(
|
|
37
39
|
() => m({
|
|
38
40
|
"nmorph-media-tile": [
|
|
@@ -56,23 +58,23 @@ const L = /* @__PURE__ */ u({
|
|
|
56
58
|
{ immediate: !0, flush: "post" }
|
|
57
59
|
), i({ videoRef: r });
|
|
58
60
|
const a = { props: e, videoRef: r, hasVideo: n, initials: t, fallbackLabel: f, modifiers: s, get NmorphAvatar() {
|
|
59
|
-
return
|
|
61
|
+
return B;
|
|
60
62
|
}, get NmorphIcon() {
|
|
61
63
|
return q;
|
|
62
64
|
}, get NmorphIconLoaderDots() {
|
|
63
|
-
return
|
|
65
|
+
return N;
|
|
64
66
|
}, get NmorphIconMic() {
|
|
65
|
-
return y;
|
|
66
|
-
}, get NmorphIconPin() {
|
|
67
67
|
return g;
|
|
68
|
+
}, get NmorphIconPin() {
|
|
69
|
+
return y;
|
|
68
70
|
}, get NmorphIconShare() {
|
|
69
71
|
return h;
|
|
70
72
|
}, get NmorphIconVideo() {
|
|
71
|
-
return
|
|
73
|
+
return v;
|
|
72
74
|
} };
|
|
73
75
|
return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
|
|
74
76
|
}
|
|
75
77
|
});
|
|
76
78
|
export {
|
|
77
|
-
|
|
79
|
+
x as default
|
|
78
80
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-pagination{display:flex;justify-content:center;margin-top:var(--indentation-04)}.nmorph-pagination .nmorph-radio-group__content{display:flex;gap:8px;justify-content:center}.nmorph-pagination .nmorph-radio-group{display:inline-flex;align-items:center}.nmorph-pagination .nmorph-radio-group .nmorph-radio:not(:last-child){margin-right:0;margin-bottom:0}.nmorph-pagination .nmorph-pagination__page-group{margin:0 var(--indentation-01)}.nmorph-pagination .nmorph-pagination__prev-icon{rotate:90deg}.nmorph-pagination .nmorph-pagination__next-icon{rotate:-90deg}.nmorph-pagination .nmorph-pagination__prev-btn{margin-right:8px}.nmorph-pagination .nmorph-pagination__next-btn{margin-left:8px}.nmorph-pagination .nmorph-pagination__page-btn{--height: var(--nmorph-pagination-height);--size: var(--nmorph-pagination-height);width:40px;min-width:40px;height:var(--height);min-height:var(--height)}.nmorph-pagination .nmorph-pagination__page-btn.nmorph-radio .nmorph-radio__content,.nmorph-pagination .nmorph-pagination__page-btn.nmorph-radio .nmorph-radio__fake{width:100%;height:100%}.nmorph-pagination .nmorph-pagination__page-btn.nmorph-radio.nmorph-radio--
|
|
1
|
+
.nmorph-pagination{display:flex;justify-content:center;margin-top:var(--indentation-04)}.nmorph-pagination .nmorph-radio-group__content{display:flex;gap:8px;justify-content:center}.nmorph-pagination .nmorph-radio-group{display:inline-flex;align-items:center}.nmorph-pagination .nmorph-radio-group .nmorph-radio:not(:last-child){margin-right:0;margin-bottom:0}.nmorph-pagination .nmorph-pagination__page-group{margin:0 var(--indentation-01)}.nmorph-pagination .nmorph-pagination__prev-icon{rotate:90deg}.nmorph-pagination .nmorph-pagination__next-icon{rotate:-90deg}.nmorph-pagination .nmorph-pagination__prev-btn{margin-right:8px}.nmorph-pagination .nmorph-pagination__next-btn{margin-left:8px}.nmorph-pagination .nmorph-pagination__page-btn{--nmorph-private-control-height: var(--nmorph-private-pagination-height);--nmorph-private-selection-control-size: var(--nmorph-private-pagination-height);width:40px;min-width:40px;height:var(--nmorph-private-pagination-height);min-height:var(--nmorph-private-pagination-height)}.nmorph-pagination .nmorph-pagination__page-btn.nmorph-radio .nmorph-radio__content,.nmorph-pagination .nmorph-pagination__page-btn.nmorph-radio .nmorph-radio__fake{width:100%;height:100%}.nmorph-pagination .nmorph-pagination__page-btn.nmorph-radio.nmorph-radio--nmorph .nmorph-radio__fake{padding:0}.nmorph-pagination .nmorph-pagination__page-btn-wrapper{display:flex}.nmorph-pagination .nmorph-pagination__prev-secondary-btn{margin-right:8px}.nmorph-pagination .nmorph-pagination__next-secondary-btn{margin-left:8px}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import './NmorphPagination.css';
|
|
2
2
|
import d from "./NmorphPagination.vue2.js";
|
|
3
|
-
import { openBlock as e, createElementBlock as
|
|
3
|
+
import { openBlock as e, createElementBlock as l, normalizeStyle as c, normalizeClass as t, createVNode as a, withCtx as i, Fragment as p, renderList as m, createBlock as s, createCommentVNode as h } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import
|
|
6
|
-
function b(
|
|
7
|
-
return
|
|
5
|
+
import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
function b(k, r, v, n, g, f) {
|
|
7
|
+
return n.show ? (e(), l(
|
|
8
8
|
"div",
|
|
9
9
|
{
|
|
10
10
|
key: 0,
|
|
11
|
-
class: t(
|
|
12
|
-
style:
|
|
11
|
+
class: t(n.modifiers),
|
|
12
|
+
style: c(n.paginationStyle)
|
|
13
13
|
},
|
|
14
14
|
[
|
|
15
|
-
|
|
15
|
+
a(n.NmorphButton, {
|
|
16
16
|
class: "nmorph-pagination__btn nmorph-pagination__prev-btn",
|
|
17
|
-
|
|
18
|
-
disabled:
|
|
19
|
-
onClick:
|
|
17
|
+
thickness: n.props.thickness,
|
|
18
|
+
disabled: n.blockPrevButton || n.props.disabled,
|
|
19
|
+
onClick: n.prevClick
|
|
20
20
|
}, {
|
|
21
|
-
default:
|
|
22
|
-
|
|
23
|
-
default:
|
|
24
|
-
|
|
21
|
+
default: i(() => [
|
|
22
|
+
a(n.NmorphIcon, { class: "nmorph-pagination__prev-icon" }, {
|
|
23
|
+
default: i(() => [
|
|
24
|
+
a(n.NmorphIconChevronDown)
|
|
25
25
|
]),
|
|
26
26
|
_: 1
|
|
27
27
|
/* STABLE */
|
|
@@ -29,37 +29,37 @@ function b(f, l, v, o, k, N) {
|
|
|
29
29
|
]),
|
|
30
30
|
_: 1
|
|
31
31
|
/* STABLE */
|
|
32
|
-
}, 8, ["
|
|
33
|
-
|
|
34
|
-
modelValue:
|
|
35
|
-
"onUpdate:modelValue":
|
|
32
|
+
}, 8, ["thickness", "disabled"]),
|
|
33
|
+
a(n.NmorphRadioGroup, {
|
|
34
|
+
modelValue: n.selectedPage,
|
|
35
|
+
"onUpdate:modelValue": r[0] || (r[0] = (o) => n.selectedPage = o),
|
|
36
36
|
class: "nmorph-pagination__page-group",
|
|
37
|
-
|
|
38
|
-
disabled:
|
|
37
|
+
thickness: n.props.thickness,
|
|
38
|
+
disabled: n.props.disabled
|
|
39
39
|
}, {
|
|
40
|
-
default:
|
|
41
|
-
(e(!0),
|
|
42
|
-
|
|
40
|
+
default: i(() => [
|
|
41
|
+
(e(!0), l(
|
|
42
|
+
p,
|
|
43
43
|
null,
|
|
44
|
-
|
|
45
|
-
key:
|
|
44
|
+
m(n.visiblePages, (o) => (e(), l("div", {
|
|
45
|
+
key: o.value,
|
|
46
46
|
class: "nmorph-pagination__page-btn-wrapper"
|
|
47
47
|
}, [
|
|
48
|
-
|
|
48
|
+
o.value === "prev" || o.value === "next" ? (e(), s(n.NmorphButton, {
|
|
49
49
|
key: 0,
|
|
50
|
-
class: t(`nmorph-pagination__page-btn nmorph-pagination__${
|
|
51
|
-
text:
|
|
52
|
-
|
|
53
|
-
disabled:
|
|
54
|
-
onClick: (
|
|
55
|
-
}, null, 8, ["class", "text", "
|
|
50
|
+
class: t(`nmorph-pagination__page-btn nmorph-pagination__${o.value}`),
|
|
51
|
+
text: o.label,
|
|
52
|
+
thickness: n.props.thickness,
|
|
53
|
+
disabled: n.props.disabled,
|
|
54
|
+
onClick: (N) => n.bigStepUpdate(o.value)
|
|
55
|
+
}, null, 8, ["class", "text", "thickness", "disabled", "onClick"])) : (e(), s(n.NmorphRadio, {
|
|
56
56
|
key: 1,
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
value: o.value,
|
|
58
|
+
label: o.label,
|
|
59
59
|
class: "nmorph-pagination__page-btn",
|
|
60
|
-
|
|
61
|
-
disabled:
|
|
62
|
-
}
|
|
60
|
+
thickness: n.props.thickness,
|
|
61
|
+
disabled: n.props.disabled
|
|
62
|
+
}, null, 8, ["value", "label", "thickness", "disabled"]))
|
|
63
63
|
]))),
|
|
64
64
|
128
|
|
65
65
|
/* KEYED_FRAGMENT */
|
|
@@ -67,17 +67,17 @@ function b(f, l, v, o, k, N) {
|
|
|
67
67
|
]),
|
|
68
68
|
_: 1
|
|
69
69
|
/* STABLE */
|
|
70
|
-
}, 8, ["modelValue", "
|
|
71
|
-
|
|
70
|
+
}, 8, ["modelValue", "thickness", "disabled"]),
|
|
71
|
+
a(n.NmorphButton, {
|
|
72
72
|
class: "nmorph-pagination__btn nmorph-pagination__next-btn",
|
|
73
|
-
|
|
74
|
-
disabled:
|
|
75
|
-
onClick:
|
|
73
|
+
thickness: n.props.thickness,
|
|
74
|
+
disabled: n.blockNextButton || n.props.disabled,
|
|
75
|
+
onClick: n.nextClick
|
|
76
76
|
}, {
|
|
77
|
-
default:
|
|
78
|
-
|
|
79
|
-
default:
|
|
80
|
-
|
|
77
|
+
default: i(() => [
|
|
78
|
+
a(n.NmorphIcon, { class: "nmorph-pagination__next-icon" }, {
|
|
79
|
+
default: i(() => [
|
|
80
|
+
a(n.NmorphIconChevronDown)
|
|
81
81
|
]),
|
|
82
82
|
_: 1
|
|
83
83
|
/* STABLE */
|
|
@@ -85,13 +85,13 @@ function b(f, l, v, o, k, N) {
|
|
|
85
85
|
]),
|
|
86
86
|
_: 1
|
|
87
87
|
/* STABLE */
|
|
88
|
-
}, 8, ["
|
|
88
|
+
}, 8, ["thickness", "disabled"])
|
|
89
89
|
],
|
|
90
90
|
6
|
|
91
91
|
/* CLASS, STYLE */
|
|
92
|
-
)) :
|
|
92
|
+
)) : h("v-if", !0);
|
|
93
93
|
}
|
|
94
|
-
const
|
|
94
|
+
const P = /* @__PURE__ */ _(d, [["render", b], ["__file", "/builds/ketjo/nmorph/library/src/components/data/nmorph-pagination/NmorphPagination.vue"]]);
|
|
95
95
|
export {
|
|
96
|
-
|
|
96
|
+
P as default
|
|
97
97
|
};
|