@nmorph/nmorph-ui-kit 2.2.59 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/icons/expand.svg.js +13 -6
- package/dist/assets/icons/hand.svg.js +21 -0
- package/dist/assets/icons/list-simple.svg.js +21 -0
- package/dist/assets/icons/pagination.svg.js +18 -5
- package/dist/assets/icons/speaker-off.svg.js +28 -0
- package/dist/assets/icons/speaker.svg.js +21 -0
- package/dist/assets/icons/triangle-down.svg.js +6 -6
- package/dist/assets/icons/video-camera-off.svg.js +28 -0
- package/dist/components/basic/nmorph-button/NmorphButton.css +1 -1
- package/dist/components/basic/nmorph-button/NmorphButton.vue2.js +20 -20
- package/dist/components/basic/nmorph-button/types.js +12 -4
- package/dist/components/basic/nmorph-icon/NmorphIcon.css +1 -1
- package/dist/components/basic/nmorph-icon/NmorphIcon.vue2.js +10 -10
- package/dist/components/basic/nmorph-icon/NmorphIcons.js +405 -395
- package/dist/components/basic/nmorph-icon/types.js +6 -2
- package/dist/components/basic/nmorph-layout/NmorphLayout.css +1 -1
- package/dist/components/basic/nmorph-layout/NmorphLayout.vue2.js +7 -7
- package/dist/components/basic/nmorph-link/NmorphLink.css +1 -1
- package/dist/components/basic/nmorph-link/NmorphLink.vue2.js +7 -7
- package/dist/components/basic/nmorph-link/types.js +7 -2
- package/dist/components/basic/nmorph-scroll/NmorphScroll.css +1 -1
- package/dist/components/basic/nmorph-scroll/NmorphScroll.vue.js +4 -3
- package/dist/components/basic/nmorph-scroll/NmorphScroll.vue2.js +123 -112
- package/dist/components/basic/nmorph-scroll/types.js +13 -3
- package/dist/components/basic/nmorph-space/NmorphSpace.css +1 -1
- package/dist/components/basic/nmorph-space/NmorphSpace.vue2.js +9 -9
- package/dist/components/basic/nmorph-text/NmorphText.vue.js +19 -0
- package/dist/components/basic/nmorph-text/NmorphText.vue2.js +50 -0
- package/dist/components/data/nmorph-audio-meter/NmorphAudioMeter.css +1 -1
- package/dist/components/data/nmorph-audio-meter/NmorphAudioMeter.vue2.js +22 -12
- package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.css +1 -1
- package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.vue2.js +8 -6
- package/dist/components/data/nmorph-avatar/NmorphAvatar.css +1 -1
- package/dist/components/data/nmorph-avatar/NmorphAvatar.vue.js +54 -51
- package/dist/components/data/nmorph-avatar/NmorphAvatar.vue2.js +41 -36
- package/dist/components/data/nmorph-badge/NmorphBadge.css +1 -1
- package/dist/components/data/nmorph-badge/NmorphBadge.vue2.js +47 -51
- package/dist/components/data/nmorph-calendar/NmorphCalendar.css +1 -1
- package/dist/components/data/nmorph-calendar/NmorphCalendar.vue.js +34 -32
- package/dist/components/data/nmorph-calendar/NmorphCalendar.vue2.js +35 -34
- package/dist/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.css +1 -1
- package/dist/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue.js +25 -22
- package/dist/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue2.js +10 -9
- package/dist/components/data/nmorph-card/NmorphCard.css +1 -1
- package/dist/components/data/nmorph-card/NmorphCard.vue2.js +20 -19
- package/dist/components/data/nmorph-carousel/NmorphCarousel.css +1 -0
- package/dist/components/data/nmorph-carousel/NmorphCarousel.vue.js +12 -10
- package/dist/components/data/nmorph-carousel/NmorphCarousel.vue2.js +23 -20
- package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.css +1 -1
- package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.js +29 -17
- package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue2.js +35 -29
- package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.css +1 -1
- package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue.js +12 -12
- package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue2.js +103 -89
- package/dist/components/data/nmorph-empty/NmorphEmpty.css +1 -1
- package/dist/components/data/nmorph-empty/NmorphEmpty.vue2.js +12 -12
- package/dist/components/data/nmorph-file-card/NmorphFileCard.css +1 -1
- package/dist/components/data/nmorph-file-card/NmorphFileCard.vue2.js +2 -2
- package/dist/components/data/nmorph-image/NmorphImage.css +1 -1
- package/dist/components/data/nmorph-image/NmorphImage.vue2.js +32 -20
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.css +1 -1
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue.js +66 -62
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue2.js +53 -51
- package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.css +1 -1
- package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.vue.js +17 -15
- package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.vue2.js +56 -54
- package/dist/components/data/nmorph-media-tile/NmorphMediaTile.css +1 -1
- package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue.js +21 -21
- package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue2.js +9 -8
- package/dist/components/data/nmorph-pagination/NmorphPagination.css +1 -1
- package/dist/components/data/nmorph-pagination/NmorphPagination.vue.js +50 -50
- package/dist/components/data/nmorph-pagination/NmorphPagination.vue2.js +23 -23
- package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.css +1 -1
- package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue.js +14 -12
- package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue2.js +22 -18
- package/dist/components/data/nmorph-progress/NmorphProgress.css +1 -1
- package/dist/components/data/nmorph-progress/NmorphProgress.vue2.js +22 -22
- package/dist/components/data/nmorph-qr-code/NmorphQRCode.css +1 -1
- package/dist/components/data/nmorph-qr-code/NmorphQRCode.vue2.js +18 -19
- package/dist/components/data/nmorph-skeleton/NmorphSkeleton.css +1 -1
- package/dist/components/data/nmorph-skeleton/NmorphSkeleton.vue2.js +5 -5
- package/dist/components/data/nmorph-skeleton/components/NmorphSkeletonItem.css +1 -1
- package/dist/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue.js +7 -7
- package/dist/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue2.js +4 -4
- package/dist/components/data/nmorph-skeleton/types.js +6 -2
- package/dist/components/data/nmorph-table/NmorphTable.css +1 -1
- package/dist/components/data/nmorph-table/NmorphTable.vue2.js +13 -13
- package/dist/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.css +1 -1
- package/dist/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.vue.js +36 -40
- package/dist/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.vue2.js +14 -23
- package/dist/components/data/nmorph-tag-list/NmorphTagList.css +1 -1
- package/dist/components/data/nmorph-tag-list/NmorphTagList.vue.js +38 -44
- package/dist/components/data/nmorph-tag-list/NmorphTagList.vue2.js +14 -29
- package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.css +1 -1
- package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue2.js +34 -34
- package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.css +1 -1
- package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.vue2.js +26 -22
- package/dist/components/data/nmorph-virtual-list/NmorphVirtualList.css +1 -1
- package/dist/components/data/nmorph-virtual-list/NmorphVirtualList.vue2.js +6 -6
- package/dist/components/feedback/nmorph-alert/NmorphAlert.css +1 -1
- package/dist/components/feedback/nmorph-alert/NmorphAlert.vue2.js +10 -10
- package/dist/components/feedback/nmorph-alert/types.js +6 -1
- package/dist/components/feedback/nmorph-callout/NmorphCallout.css +1 -1
- package/dist/components/feedback/nmorph-callout/NmorphCallout.vue2.js +16 -16
- package/dist/components/feedback/nmorph-dialog/NmorphDialog.css +1 -1
- package/dist/components/feedback/nmorph-dialog/NmorphDialog.vue2.js +36 -35
- package/dist/components/feedback/nmorph-drawer/NmorphDrawer.css +1 -1
- package/dist/components/feedback/nmorph-drawer/NmorphDrawer.vue2.js +9 -9
- package/dist/components/feedback/nmorph-guide/NmorphGuideStep.css +1 -1
- package/dist/components/feedback/nmorph-guide/NmorphGuideStep.vue.js +33 -33
- package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.css +1 -1
- package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue2.js +21 -21
- package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.css +1 -1
- package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.js +21 -18
- package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue2.js +20 -20
- package/dist/components/form/nmorph-checkbox/NmorphCheckbox.css +1 -1
- package/dist/components/form/nmorph-checkbox/NmorphCheckbox.vue.js +15 -15
- package/dist/components/form/nmorph-checkbox/NmorphCheckbox.vue2.js +30 -31
- package/dist/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue.js +20 -21
- package/dist/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue2.js +28 -28
- package/dist/components/form/nmorph-color-picker/NmorphColorPicker.css +1 -1
- package/dist/components/form/nmorph-color-picker/NmorphColorPicker.vue2.js +27 -27
- package/dist/components/form/nmorph-date-picker/NmorphDatePicker.css +1 -1
- package/dist/components/form/nmorph-date-picker/NmorphDatePicker.vue2.js +40 -38
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/NmorphDatePickerHeader.vue.js +94 -108
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/NmorphDatePickerHeader.vue2.js +14 -19
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.vue.js +55 -64
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.vue2.js +32 -37
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.css +1 -1
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue.js +10 -10
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue2.js +1 -1
- package/dist/components/form/nmorph-file-upload/types.js +34 -16
- package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.css +1 -1
- package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.js +12 -12
- package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue2.js +7 -7
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue2.js +6 -6
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/NmorphValidationIcon.css +1 -1
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/NmorphValidationIcon.vue.js +12 -13
- package/dist/components/form/nmorph-number-input/NmorphNumberInput.css +1 -1
- package/dist/components/form/nmorph-number-input/NmorphNumberInput.vue.js +41 -37
- package/dist/components/form/nmorph-number-input/NmorphNumberInput.vue2.js +28 -28
- package/dist/components/form/nmorph-otp-input/NmorphOTPInput.css +1 -1
- package/dist/components/form/nmorph-otp-input/NmorphOTPInput.vue.js +19 -19
- package/dist/components/form/nmorph-otp-input/NmorphOTPInput.vue2.js +37 -37
- package/dist/components/form/nmorph-radio/NmorphRadio.css +1 -1
- package/dist/components/form/nmorph-radio/NmorphRadio.vue.js +4 -4
- package/dist/components/form/nmorph-radio/NmorphRadio.vue2.js +21 -21
- package/dist/components/form/nmorph-radio-group/NmorphRadioGroup.vue.js +18 -18
- package/dist/components/form/nmorph-radio-group/NmorphRadioGroup.vue2.js +21 -21
- package/dist/components/form/nmorph-select/NmorphSelect.css +1 -1
- package/dist/components/form/nmorph-select/NmorphSelect.vue.js +86 -77
- package/dist/components/form/nmorph-select/NmorphSelect.vue2.js +52 -52
- package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.css +1 -1
- package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue2.js +21 -21
- package/dist/components/form/nmorph-select-button/NmorphSelectButton.css +1 -1
- package/dist/components/form/nmorph-select-button/NmorphSelectButton.vue2.js +27 -23
- package/dist/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.css +1 -1
- package/dist/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.vue.js +13 -11
- package/dist/components/form/nmorph-slider/NmorphSlider.css +1 -1
- package/dist/components/form/nmorph-slider/NmorphSlider.vue2.js +52 -47
- package/dist/components/form/nmorph-switch/NmorphSwitch.css +1 -1
- package/dist/components/form/nmorph-switch/NmorphSwitch.vue2.js +26 -26
- package/dist/components/form/nmorph-text-input/NmorphTextInput.css +1 -1
- package/dist/components/form/nmorph-text-input/NmorphTextInput.vue.js +35 -36
- package/dist/components/form/nmorph-text-input/NmorphTextInput.vue2.js +49 -36
- package/dist/components/form/nmorph-textarea/NmorphTextarea.css +1 -1
- package/dist/components/form/nmorph-textarea/NmorphTextarea.vue2.js +18 -18
- package/dist/components/form/nmorph-time-picker/NmorphTimePicker.css +1 -1
- package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue.js +1 -1
- package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue2.js +44 -44
- package/dist/components/navigation/nmorph-backtop/NmorphBacktop.css +1 -1
- package/dist/components/navigation/nmorph-backtop/NmorphBacktop.vue.js +11 -11
- package/dist/components/navigation/nmorph-backtop/NmorphBacktop.vue2.js +15 -15
- package/dist/components/navigation/nmorph-context-menu/NmorphContextMenu.css +1 -1
- package/dist/components/navigation/nmorph-context-menu/NmorphContextMenu.vue2.js +9 -9
- package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.css +1 -1
- package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.vue2.js +6 -5
- package/dist/components/navigation/nmorph-stepper/NmorphStepper.vue2.js +20 -20
- package/dist/components/others/nmorph-divider/NmorphDivider.css +1 -1
- package/dist/components/others/nmorph-divider/NmorphDivider.vue2.js +9 -8
- package/dist/components/others/nmorph-overlay/NmorphOverlay.css +1 -1
- package/dist/components/others/nmorph-overlay/NmorphOverlay.vue.js +13 -13
- package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.css +1 -1
- package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.js +35 -25
- package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue2.js +22 -25
- package/dist/components/providers/nmorph-notification-provider/types.js +9 -2
- package/dist/emoji/base.js +571 -20
- package/dist/hooks/use-common-styles.js +228 -49
- package/dist/hooks/use-field-validation.js +42 -45
- package/dist/hooks/use-virtual-list.js +65 -57
- package/dist/icons.js +405 -395
- package/dist/index.es.js +854 -840
- package/dist/index.umd.js +245 -75
- package/dist/package.json.js +1 -1
- package/dist/plugin.js +37 -34
- package/dist/src/components/basic/index.d.ts +2 -0
- package/dist/src/components/basic/nmorph-button/NmorphButton.vue.d.ts +2 -2
- package/dist/src/components/basic/nmorph-button/types.d.ts +17 -19
- package/dist/src/components/basic/nmorph-icon/NmorphIcon.vue.d.ts +1 -1
- package/dist/src/components/basic/nmorph-icon/NmorphIcons.d.ts +5 -0
- package/dist/src/components/basic/nmorph-icon/types.d.ts +7 -6
- package/dist/src/components/basic/nmorph-link/types.d.ts +9 -8
- package/dist/src/components/basic/nmorph-scroll/types.d.ts +16 -14
- package/dist/src/components/basic/nmorph-text/NmorphText.vue.d.ts +20 -0
- package/dist/src/components/basic/nmorph-text/types.d.ts +12 -0
- package/dist/src/components/data/nmorph-audio-meter/NmorphAudioMeter.vue.d.ts +5 -1
- package/dist/src/components/data/nmorph-audio-meter/types.d.ts +4 -0
- package/dist/src/components/data/nmorph-avatar/NmorphAvatar.vue.d.ts +1 -0
- package/dist/src/components/data/nmorph-avatar/types.d.ts +3 -2
- package/dist/src/components/data/nmorph-badge/NmorphBadge.vue.d.ts +3 -2
- package/dist/src/components/data/nmorph-badge/types.d.ts +3 -8
- package/dist/src/components/data/nmorph-calendar/NmorphCalendar.vue.d.ts +1 -0
- package/dist/src/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue.d.ts +3 -1
- package/dist/src/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/types.d.ts +2 -0
- package/dist/src/components/data/nmorph-calendar/types.d.ts +2 -1
- package/dist/src/components/data/nmorph-card/NmorphCard.vue.d.ts +1 -0
- package/dist/src/components/data/nmorph-card/types.d.ts +2 -1
- package/dist/src/components/data/nmorph-carousel/NmorphCarousel.vue.d.ts +1 -0
- package/dist/src/components/data/nmorph-carousel/types.d.ts +2 -0
- package/dist/src/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-collapse/components/nmorph-collapse-item/types.d.ts +2 -2
- package/dist/src/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue.d.ts +7 -1
- package/dist/src/components/data/nmorph-emoji-picker/types.d.ts +6 -0
- package/dist/src/components/data/nmorph-empty/NmorphEmpty.vue.d.ts +1 -2
- package/dist/src/components/data/nmorph-file-card/NmorphFileCard.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-image/NmorphImage.vue.d.ts +3 -0
- package/dist/src/components/data/nmorph-image/types.d.ts +2 -1
- package/dist/src/components/data/nmorph-image-preview/NmorphImagePreview.vue.d.ts +3 -1
- package/dist/src/components/data/nmorph-image-preview/types.d.ts +2 -0
- package/dist/src/components/data/nmorph-media-gallery/NmorphMediaGallery.vue.d.ts +2 -0
- package/dist/src/components/data/nmorph-media-gallery/types.d.ts +2 -0
- package/dist/src/components/data/nmorph-media-tile/NmorphMediaTile.vue.d.ts +1 -0
- package/dist/src/components/data/nmorph-media-tile/types.d.ts +1 -0
- package/dist/src/components/data/nmorph-pagination/NmorphPagination.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-pagination/types.d.ts +2 -2
- package/dist/src/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue.d.ts +4 -0
- package/dist/src/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue.d.ts +2 -3
- package/dist/src/components/data/nmorph-skeleton/types.d.ts +6 -5
- package/dist/src/components/data/nmorph-table/NmorphTable.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-table/types.d.ts +2 -2
- package/dist/src/components/data/nmorph-tag-list/NmorphTagList.vue.d.ts +3 -4
- package/dist/src/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue.d.ts +2 -3
- package/dist/src/components/data/nmorph-tag-list/types.d.ts +2 -2
- package/dist/src/components/data/nmorph-video-preview/NmorphVideoPreview.vue.d.ts +3 -1
- package/dist/src/components/data/nmorph-video-preview/types.d.ts +2 -0
- package/dist/src/components/data/nmorph-virtual-list/NmorphVirtualList.vue.d.ts +1 -1
- package/dist/src/components/feedback/nmorph-alert/NmorphAlert.vue.d.ts +1 -1
- package/dist/src/components/feedback/nmorph-alert/types.d.ts +8 -7
- package/dist/src/components/feedback/nmorph-callout/NmorphCallout.vue.d.ts +1 -1
- package/dist/src/components/feedback/nmorph-dialog/NmorphDialog.vue.d.ts +1 -1
- package/dist/src/components/feedback/nmorph-dialog/types.d.ts +1 -4
- package/dist/src/components/feedback/nmorph-guide/NmorphGuide.vue.d.ts +1 -1
- package/dist/src/components/feedback/nmorph-tooltip/NmorphTooltip.vue.d.ts +2 -2
- package/dist/src/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-checkbox/NmorphCheckbox.vue.d.ts +2 -17
- package/dist/src/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue.d.ts +2 -15
- package/dist/src/components/form/nmorph-checkbox-group/types.d.ts +4 -6
- package/dist/src/components/form/nmorph-color-picker/NmorphColorPicker.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-date-picker/NmorphDatePicker.vue.d.ts +2 -1
- package/dist/src/components/form/nmorph-date-picker/types.d.ts +1 -0
- package/dist/src/components/form/nmorph-file-upload/types.d.ts +55 -55
- package/dist/src/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/types.d.ts +2 -2
- package/dist/src/components/form/nmorph-form/components/nmorph-form-item/types.d.ts +2 -2
- package/dist/src/components/form/nmorph-number-input/NmorphNumberInput.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-otp-input/NmorphOTPInput.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-radio/NmorphRadio.vue.d.ts +2 -14
- package/dist/src/components/form/nmorph-radio/types.d.ts +6 -4
- package/dist/src/components/form/nmorph-radio-group/NmorphRadioGroup.vue.d.ts +2 -14
- package/dist/src/components/form/nmorph-radio-group/types.d.ts +4 -6
- package/dist/src/components/form/nmorph-select/NmorphSelect.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-select-button/NmorphSelectButton.vue.d.ts +2 -1
- package/dist/src/components/form/nmorph-select-button/components/nmorph-select-button-item/types.d.ts +1 -1
- package/dist/src/components/form/nmorph-select-button/types.d.ts +1 -0
- package/dist/src/components/form/nmorph-slider/NmorphSlider.vue.d.ts +10 -10
- package/dist/src/components/form/nmorph-slider/types.d.ts +1 -1
- package/dist/src/components/form/nmorph-switch/NmorphSwitch.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-switch/types.d.ts +1 -1
- package/dist/src/components/form/nmorph-text-input/NmorphTextInput.vue.d.ts +4 -1
- package/dist/src/components/form/nmorph-text-input/types.d.ts +3 -0
- package/dist/src/components/form/nmorph-textarea/NmorphTextarea.vue.d.ts +1 -1
- package/dist/src/components/form/nmorph-time-picker/NmorphTimePicker.vue.d.ts +1 -1
- package/dist/src/components/navigation/nmorph-backtop/NmorphBacktop.vue.d.ts +1 -2
- package/dist/src/components/navigation/nmorph-context-menu/NmorphContextMenu.vue.d.ts +1 -1
- package/dist/src/components/navigation/nmorph-dropdown/NmorphDropdown.vue.d.ts +2 -1
- package/dist/src/components/navigation/nmorph-dropdown/types.d.ts +2 -1
- package/dist/src/components/others/nmorph-divider/NmorphDivider.vue.d.ts +1 -0
- package/dist/src/components/others/nmorph-divider/types.d.ts +2 -0
- package/dist/src/components/others/nmorph-overlay/NmorphOverlay.vue.d.ts +1 -1
- package/dist/src/components/providers/nmorph-notification-provider/types.d.ts +8 -8
- package/dist/src/hooks/use-field-validation.d.ts +21 -24
- package/dist/src/hooks/use-nmorph-translation.d.ts +2 -2
- package/dist/src/types/app.types.d.ts +0 -5
- package/dist/src/types/common.types.d.ts +91 -35
- package/dist/src/types/date.types.d.ts +6 -5
- package/dist/src/types/image.types.d.ts +16 -12
- package/dist/src/types/selection.types.d.ts +19 -14
- package/dist/src/types/table.types.d.ts +6 -5
- package/dist/src/types/translation.types.d.ts +7 -6
- package/dist/src/utils/common.d.ts +2 -2
- package/dist/src/utils/file-types.d.ts +1 -1
- package/dist/src/utils/theme-style.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/types/common.types.js +73 -8
- package/dist/types/date.types.js +6 -2
- package/dist/types/image.types.js +12 -3
- package/dist/types/table.types.js +5 -2
- package/dist/types/translation.types.js +6 -2
- package/dist/utils/common.js +3 -3
- package/dist/utils/file-types.js +6 -7
- package/dist/utils/theme-style.js +42 -48
- package/package.json +1 -1
- package/dist/types/selection.types.js +0 -4
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import './NmorphBacktop.css';
|
|
2
|
-
import
|
|
3
|
-
import { openBlock as e, createElementBlock as
|
|
2
|
+
import i from "./NmorphBacktop.vue2.js";
|
|
3
|
+
import { openBlock as e, createElementBlock as c, createBlock as a, Teleport as s, createElementVNode as t, normalizeStyle as d, normalizeClass as p, withModifiers as m, renderSlot as f, createVNode as r, withCtx as l } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import h from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
6
|
const _ = { ref: "placeholderDOMEl" };
|
|
7
|
-
function k(n, v,
|
|
8
|
-
return e(),
|
|
7
|
+
function k(n, v, b, o, N, B) {
|
|
8
|
+
return e(), c(
|
|
9
9
|
"div",
|
|
10
10
|
_,
|
|
11
11
|
[
|
|
12
|
-
(e(),
|
|
12
|
+
(e(), a(s, {
|
|
13
13
|
to: o.props.teleportTo,
|
|
14
14
|
disabled: !o.isMounted || o.props.teleportDisabled
|
|
15
15
|
}, [
|
|
@@ -17,8 +17,8 @@ function k(n, v, y, o, b, N) {
|
|
|
17
17
|
"div",
|
|
18
18
|
{
|
|
19
19
|
ref: "selfDOMEl",
|
|
20
|
-
class:
|
|
21
|
-
style:
|
|
20
|
+
class: p(o.modifiers),
|
|
21
|
+
style: d(o.styles)
|
|
22
22
|
},
|
|
23
23
|
[
|
|
24
24
|
t("div", {
|
|
@@ -26,7 +26,7 @@ function k(n, v, y, o, b, N) {
|
|
|
26
26
|
}, [
|
|
27
27
|
f(n.$slots, "default", {}, () => [
|
|
28
28
|
r(o.NmorphButton, {
|
|
29
|
-
|
|
29
|
+
design: o.props.design
|
|
30
30
|
}, {
|
|
31
31
|
default: l(() => [
|
|
32
32
|
r(o.NmorphIcon, {
|
|
@@ -42,7 +42,7 @@ function k(n, v, y, o, b, N) {
|
|
|
42
42
|
]),
|
|
43
43
|
_: 1
|
|
44
44
|
/* STABLE */
|
|
45
|
-
}, 8, ["
|
|
45
|
+
}, 8, ["design"])
|
|
46
46
|
])
|
|
47
47
|
])
|
|
48
48
|
],
|
|
@@ -55,7 +55,7 @@ function k(n, v, y, o, b, N) {
|
|
|
55
55
|
/* NEED_PATCH */
|
|
56
56
|
);
|
|
57
57
|
}
|
|
58
|
-
const
|
|
58
|
+
const D = /* @__PURE__ */ h(i, [["render", k], ["__file", "/builds/ketjo/nmorph/library/src/components/navigation/nmorph-backtop/NmorphBacktop.vue"]]);
|
|
59
59
|
export {
|
|
60
|
-
|
|
60
|
+
D as default
|
|
61
61
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './NmorphBacktop.css';
|
|
2
|
-
import { defineComponent as E, computed as
|
|
2
|
+
import { defineComponent as E, computed as h, ref as l, onMounted as T, onUnmounted as k } from "vue";
|
|
3
3
|
import { useModifiers as q } from "../../../utils/create-modifiers.js";
|
|
4
4
|
import x from "../../basic/nmorph-icon/NmorphIcon.vue.js";
|
|
5
5
|
import I from "../../basic/nmorph-button/NmorphButton.vue.js";
|
|
@@ -10,7 +10,7 @@ const Y = /* @__PURE__ */ E({
|
|
|
10
10
|
right: { type: Number, required: !1, default: 40 },
|
|
11
11
|
bottom: { type: Number, required: !1, default: 40 },
|
|
12
12
|
visibilityHeight: { type: Number, required: !1, default: 200 },
|
|
13
|
-
design: { type:
|
|
13
|
+
design: { type: null, required: !1, default: "nmorph" },
|
|
14
14
|
zIndex: { type: Number, required: !1, default: 10 },
|
|
15
15
|
teleportTo: { type: String, required: !1, default: "body" },
|
|
16
16
|
teleportDisabled: { type: Boolean, required: !1, default: !1 }
|
|
@@ -18,19 +18,19 @@ const Y = /* @__PURE__ */ E({
|
|
|
18
18
|
emits: ["click"],
|
|
19
19
|
setup(b, { expose: w, emit: y }) {
|
|
20
20
|
w();
|
|
21
|
-
const t = b,
|
|
21
|
+
const t = b, u = y, g = h(
|
|
22
22
|
() => q({
|
|
23
23
|
"nmorph-backtop": [n.value && "show", t.design]
|
|
24
24
|
})
|
|
25
|
-
), N =
|
|
26
|
-
"--nmorph-backtop-right": `${t.right}px`,
|
|
27
|
-
"--nmorph-backtop-bottom": `${t.bottom}px`,
|
|
28
|
-
"--nmorph-backtop-z-index": t.zIndex
|
|
29
|
-
})),
|
|
25
|
+
), N = h(() => ({
|
|
26
|
+
"--nmorph-private-backtop-right": `${t.right}px`,
|
|
27
|
+
"--nmorph-private-backtop-bottom": `${t.bottom}px`,
|
|
28
|
+
"--nmorph-private-backtop-z-index": t.zIndex
|
|
29
|
+
})), s = (r) => r === window, a = (r) => s(r) ? window.scrollY || document.documentElement.scrollTop || document.body.scrollTop || 0 : r.scrollTop, c = (r) => {
|
|
30
30
|
let o = r?.parentElement ?? null;
|
|
31
31
|
for (; o; ) {
|
|
32
|
-
const
|
|
33
|
-
if (["auto", "scroll", "overlay"].includes(
|
|
32
|
+
const v = window.getComputedStyle(o), S = v.overflowY || v.overflow;
|
|
33
|
+
if (["auto", "scroll", "overlay"].includes(S) && o.scrollHeight > o.clientHeight) return o;
|
|
34
34
|
o = o.parentElement;
|
|
35
35
|
}
|
|
36
36
|
return window;
|
|
@@ -39,20 +39,20 @@ const Y = /* @__PURE__ */ E({
|
|
|
39
39
|
n.value = !1;
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
42
|
-
n.value =
|
|
43
|
-
},
|
|
44
|
-
|
|
42
|
+
n.value = a(e.value) > t.visibilityHeight;
|
|
43
|
+
}, _ = () => {
|
|
44
|
+
u("click"), e.value && e.value.scrollTo({
|
|
45
45
|
top: 0,
|
|
46
46
|
left: 0,
|
|
47
47
|
behavior: "smooth"
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
T(() => {
|
|
51
|
-
e.value =
|
|
51
|
+
e.value = c(p.value ?? m.value), e.value.addEventListener("scroll", i), i(), d.value = !0;
|
|
52
52
|
}), k(() => {
|
|
53
53
|
e.value && e.value.removeEventListener("scroll", i);
|
|
54
54
|
});
|
|
55
|
-
const f = { props: t, emit:
|
|
55
|
+
const f = { props: t, emit: u, modifiers: g, styles: N, isWindow: s, getScrollTop: a, findScrollableAncestor: c, container: e, placeholderDOMEl: p, selfDOMEl: m, showButton: n, isMounted: d, updateVisibility: i, scrollToTopHandler: _, get NmorphButton() {
|
|
56
56
|
return I;
|
|
57
57
|
}, get NmorphIcon() {
|
|
58
58
|
return x;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-context-menu{display:inline-block;max-width:100%}.nmorph-context-menu__dropdown{text-align:left}.nmorph-context-menu__dropdown--bottom-sheet{position:fixed!important;inset:auto var(--indentation-03) var(--indentation-03) var(--indentation-03)!important;width:auto!important;max-width:none!important;border-radius:var(--default-border-radius) var(--default-border-radius) 0 0}.nmorph-context-menu__options{display:grid;gap:4px;padding:4px}.nmorph-context-menu__item{display:flex;gap:var(--indentation-02);justify-content:flex-start;align-items:center;box-sizing:border-box;width:100%;min-width:120px;padding:var(--indentation-02) var(--indentation-04);color:var(--nmorph-context-menu-item-color, var(--nmorph-text-color));font:inherit;line-height:var(--line-height-regular);text-align:left;background:transparent;border:0;border-radius:var(--default-border-radius);cursor:pointer}.nmorph-context-menu__item-icon,.nmorph-context-menu__item-shortcut{flex:0 0 auto}.nmorph-context-menu__item-copy{display:grid;flex:1 1 auto;min-width:0}.nmorph-context-menu__item-label{color:var(--nmorph-context-menu-item-color, var(--nmorph-text-color));text-align:left}.nmorph-context-menu__item-description,.nmorph-context-menu__item-shortcut{color:var(--nmorph-semi-contrast-text-color);font-size:var(--
|
|
1
|
+
.nmorph-context-menu{display:inline-block;max-width:100%}.nmorph-context-menu__dropdown{text-align:left}.nmorph-context-menu__dropdown--bottom-sheet{position:fixed!important;inset:auto var(--indentation-03) var(--indentation-03) var(--indentation-03)!important;width:auto!important;max-width:none!important;border-radius:var(--default-border-radius) var(--default-border-radius) 0 0}.nmorph-context-menu__options{display:grid;gap:4px;padding:4px}.nmorph-context-menu__item{display:flex;gap:var(--indentation-02);justify-content:flex-start;align-items:center;box-sizing:border-box;width:100%;min-width:120px;padding:var(--indentation-02) var(--indentation-04);color:var(--nmorph-private-context-menu-item-color, var(--nmorph-text-color));font:inherit;line-height:var(--line-height-regular);text-align:left;background:transparent;border:0;border-radius:var(--default-border-radius);cursor:pointer}.nmorph-context-menu__item-icon,.nmorph-context-menu__item-shortcut{flex:0 0 auto}.nmorph-context-menu__item-copy{display:grid;flex:1 1 auto;min-width:0}.nmorph-context-menu__item-label{color:var(--nmorph-private-context-menu-item-color, var(--nmorph-text-color));text-align:left}.nmorph-context-menu__item-description,.nmorph-context-menu__item-shortcut{color:var(--nmorph-semi-contrast-text-color);font-size:var(--nmorph-typography-body-small-font-size);line-height:var(--nmorph-typography-body-small-line-height)}.nmorph-context-menu__divider{height:1px;margin:2px var(--indentation-02);background:color-mix(in srgb,var(--nmorph-text-color) 16%,transparent)}.nmorph-context-menu__section{padding:var(--indentation-02) var(--indentation-04) var(--indentation-01);color:var(--nmorph-semi-contrast-text-color);font-weight:var(--font-weight-semibold);font-size:var(--nmorph-typography-label-font-size);line-height:var(--nmorph-typography-label-line-height);text-transform:uppercase}.nmorph-context-menu__item:not(:disabled,.nmorph-context-menu__item--disabled):hover{background:color-mix(in srgb,var(--nmorph-private-context-menu-item-color, var(--nmorph-text-color)) 12%,transparent)}.nmorph-context-menu__item:disabled,.nmorph-context-menu__item--disabled{cursor:default;opacity:.56;pointer-events:none}.nmorph-context-menu__dropdown .nmorph-button--plain .nmorph-button__content{justify-content:flex-start;text-align:left}.nmorph-context-menu__dropdown .nmorph-button--plain .nmorph-button__content span{text-align:left}.nmorph-context-menu__dropdown .nmorph-button--plain .nmorph-button__content:not(:disabled,[loading=true]):hover{background:color-mix(in srgb,var(--nmorph-private-button-hover-color, var(--nmorph-private-button-color, var(--nmorph-private-button-plain-color, var(--nmorph-text-color)))) 12%,transparent)}
|
|
@@ -27,7 +27,7 @@ const D = 600, T = 8, ae = /* @__PURE__ */ Z({
|
|
|
27
27
|
},
|
|
28
28
|
emits: ["update:model-value", "open", "close", "select", "on-outside-click", "on-escape-keydown"],
|
|
29
29
|
setup(I, { expose: R, emit: X }) {
|
|
30
|
-
const r = I, o = X, g = n(null), E = n(null), y = n("point"), b = n(!!r.modelValue), a = n(null), d = n(null), u = n(null),
|
|
30
|
+
const r = I, o = X, g = n(null), E = n(null), y = n("point"), b = n(!!r.modelValue), a = n(null), d = n(null), u = n(null), v = n(!1), f = n(null), h = c(() => typeof r.modelValue == "boolean" ? r.modelValue : b.value), Y = c(() => r.options.length > 0), x = c(() => r.trigger === "longpress"), O = c(() => r.trigger === "contextmenu" || r.trigger === "both"), V = c(
|
|
31
31
|
() => r.options.map((e, t) => typeof e == "string" || typeof e == "number" ? {
|
|
32
32
|
key: `${e}-${t}`,
|
|
33
33
|
type: "item",
|
|
@@ -78,7 +78,7 @@ const D = 600, T = 8, ae = /* @__PURE__ */ Z({
|
|
|
78
78
|
toJSON: () => ({})
|
|
79
79
|
})
|
|
80
80
|
}), w = (e) => {
|
|
81
|
-
const t =
|
|
81
|
+
const t = h.value;
|
|
82
82
|
b.value = e, o("update:model-value", e), t && !e && o("close");
|
|
83
83
|
}, i = () => {
|
|
84
84
|
w(!1);
|
|
@@ -101,9 +101,9 @@ const D = 600, T = 8, ae = /* @__PURE__ */ Z({
|
|
|
101
101
|
const l = t.getBoundingClientRect();
|
|
102
102
|
return e.clientX >= l.left && e.clientX <= l.right && e.clientY >= l.top && e.clientY <= l.bottom;
|
|
103
103
|
}, S = (e) => {
|
|
104
|
-
!
|
|
104
|
+
!h.value || r.disabled || !O.value || N(e) && (e.preventDefault(), e.stopPropagation(), p(e.clientX, e.clientY, e));
|
|
105
105
|
}, $ = (e) => {
|
|
106
|
-
if (
|
|
106
|
+
if (v.value) {
|
|
107
107
|
m(), e.preventDefault();
|
|
108
108
|
return;
|
|
109
109
|
}
|
|
@@ -126,9 +126,9 @@ const D = 600, T = 8, ae = /* @__PURE__ */ Z({
|
|
|
126
126
|
}, s = () => {
|
|
127
127
|
a.value && clearTimeout(a.value), a.value = null, d.value = null, u.value = null;
|
|
128
128
|
}, m = () => {
|
|
129
|
-
f.value && clearTimeout(f.value),
|
|
129
|
+
f.value && clearTimeout(f.value), v.value = !1, f.value = null;
|
|
130
130
|
}, P = () => {
|
|
131
|
-
m(),
|
|
131
|
+
m(), v.value = !0, f.value = setTimeout(m, 700);
|
|
132
132
|
}, K = (e) => {
|
|
133
133
|
r.disabled || !x.value || e.pointerType !== "touch" && e.pointerType !== "pen" || (s(), d.value = e.pointerId, u.value = { x: e.clientX, y: e.clientY }, a.value = setTimeout(() => {
|
|
134
134
|
P(), s(), p(e.clientX, e.clientY, e);
|
|
@@ -140,12 +140,12 @@ const D = 600, T = 8, ae = /* @__PURE__ */ Z({
|
|
|
140
140
|
}, U = (e) => {
|
|
141
141
|
d.value === e.pointerId && s();
|
|
142
142
|
}, Q = (e) => ({
|
|
143
|
-
"--nmorph-context-menu-item-color": e.color
|
|
143
|
+
"--nmorph-private-context-menu-item-color": e.color
|
|
144
144
|
}), _ = () => {
|
|
145
145
|
r.closeOnScroll && y.value === "point" && i();
|
|
146
146
|
};
|
|
147
147
|
B(
|
|
148
|
-
|
|
148
|
+
h,
|
|
149
149
|
(e) => {
|
|
150
150
|
typeof window > "u" || (e ? (window.addEventListener("scroll", _, { passive: !0, capture: !0 }), document.addEventListener("contextmenu", S, !0)) : (window.removeEventListener("scroll", _, !0), document.removeEventListener("contextmenu", S, !0)));
|
|
151
151
|
},
|
|
@@ -153,7 +153,7 @@ const D = 600, T = 8, ae = /* @__PURE__ */ Z({
|
|
|
153
153
|
), ee(() => {
|
|
154
154
|
typeof window < "u" && window.removeEventListener("scroll", _, !0), typeof document < "u" && document.removeEventListener("contextmenu", S, !0), s(), m();
|
|
155
155
|
}), R({ close: i, openAt: p, openAtElement: k });
|
|
156
|
-
const L = { LONG_PRESS_DELAY_IN_MS: D, LONG_PRESS_MOVE_TOLERANCE_IN_PX: T, props: r, emit: o, triggerDOMRef: g, relativeElement: E, anchorType: y, openState: b, longPressTimer: a, longPressPointerId: d, longPressStartPoint: u, suppressNextClick:
|
|
156
|
+
const L = { LONG_PRESS_DELAY_IN_MS: D, LONG_PRESS_MOVE_TOLERANCE_IN_PX: T, props: r, emit: o, triggerDOMRef: g, relativeElement: E, anchorType: y, openState: b, longPressTimer: a, longPressPointerId: d, longPressStartPoint: u, suppressNextClick: v, suppressNextClickTimer: f, isOpen: h, hasOptions: Y, isLongPressTrigger: x, isContextMenuTrigger: O, normalizedOptions: V, dropdownContentClass: A, createPointElement: C, setOpen: w, close: i, openAt: p, openAtElement: k, contextMenuHandler: W, isEventInsideTrigger: N, documentContextMenuHandler: S, clickHandler: $, keydownHandler: j, outsideClickHandler: z, escapeHandler: F, optionClickHandler: q, optionKeydownHandler: G, clearLongPressTimer: s, clearClickSuppression: m, suppressNextClickTemporarily: P, pointerDownHandler: K, pointerMoveHandler: J, pointerEndHandler: U, getOptionStyle: Q, scrollHandler: _, NmorphDropdown: te, get NmorphIcon() {
|
|
157
157
|
return re;
|
|
158
158
|
} };
|
|
159
159
|
return Object.defineProperty(L, "__isScriptSetup", { enumerable: !1, value: !0 }), L;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-dropdown{position:fixed;width:var(--nmorph-dropdown-width);min-width:var(--nmorph-dropdown-min-width);max-width:var(--nmorph-dropdown-max-width);background:var(--nmorph-main-color);border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-outset)}.nmorph-dropdown--closed{z-index:-1000;opacity:0}.nmorph-dropdown--hide-shadow{box-shadow:none}
|
|
1
|
+
.nmorph-dropdown{position:fixed;width:var(--nmorph-private-dropdown-width);min-width:var(--nmorph-private-dropdown-min-width);max-width:var(--nmorph-private-dropdown-max-width);background:var(--nmorph-main-color);border-radius:var(--default-border-radius);box-shadow:var(--nmorph-shadow-outset)}.nmorph-dropdown--closed{z-index:-1000;opacity:0}.nmorph-dropdown--hide-shadow{box-shadow:none}.nmorph-dropdown--plain{border:var(--nmorph-plain-border);box-shadow:none}
|
|
@@ -23,7 +23,8 @@ const B = /* @__PURE__ */ y({
|
|
|
23
23
|
role: { type: String, required: !1, default: "listbox" },
|
|
24
24
|
ariaLabel: { type: String, required: !1, default: "" },
|
|
25
25
|
contentClass: { type: String, required: !1, default: "" },
|
|
26
|
-
hideShadow: { type: Boolean, required: !1, default: !1 }
|
|
26
|
+
hideShadow: { type: Boolean, required: !1, default: !1 },
|
|
27
|
+
design: { type: null, required: !1, default: "nmorph" }
|
|
27
28
|
},
|
|
28
29
|
emits: ["on-outside-click", "on-escape-keydown"],
|
|
29
30
|
setup(u, { expose: p, emit: f }) {
|
|
@@ -37,15 +38,15 @@ const B = /* @__PURE__ */ y({
|
|
|
37
38
|
enabled: t(e, "open")
|
|
38
39
|
}), m = i(
|
|
39
40
|
() => q({
|
|
40
|
-
"nmorph-dropdown": [!e.open && "closed", e.hideShadow && "hide-shadow"]
|
|
41
|
+
"nmorph-dropdown": [!e.open && "closed", e.hideShadow && "hide-shadow", e.design]
|
|
41
42
|
})
|
|
42
43
|
), n = i(
|
|
43
44
|
() => e.fillWidth && e.relativeElement ? `${e.relativeElement.clientWidth}px` : b(e.width)
|
|
44
45
|
), c = i(() => ({
|
|
45
|
-
"--nmorph-dropdown-width": n.value,
|
|
46
|
+
"--nmorph-private-dropdown-width": n.value,
|
|
46
47
|
...x({
|
|
47
|
-
"--nmorph-dropdown-min-width": e.minWidth === void 0 ? "auto" : e.minWidth,
|
|
48
|
-
"--nmorph-dropdown-max-width": e.maxWidth === void 0 ? "none" : e.maxWidth
|
|
48
|
+
"--nmorph-private-dropdown-min-width": e.minWidth === void 0 ? "auto" : e.minWidth,
|
|
49
|
+
"--nmorph-private-dropdown-max-width": e.maxWidth === void 0 ? "none" : e.maxWidth
|
|
49
50
|
}),
|
|
50
51
|
left: o.value.x,
|
|
51
52
|
top: o.value.y,
|
|
@@ -14,20 +14,20 @@ const N = 28, R = 320, T = 6, W = 42, q = 1.2, O = 350, le = /* @__PURE__ */ Z({
|
|
|
14
14
|
},
|
|
15
15
|
emits: ["update:model-value", "change"],
|
|
16
16
|
setup(X, { expose: B, emit: A }) {
|
|
17
|
-
const
|
|
17
|
+
const a = X, y = A, I = i(!1), c = i(null), x = i(!1), f = i(null), n = i(null), p = i(!1), d = (e) => Number.isFinite(e) ? Math.trunc(e ?? 0) : 0, v = o(() => Math.max(0, d(a.count))), _ = (e) => {
|
|
18
18
|
const t = v.value, r = d(e);
|
|
19
|
-
return t <= 0 ? 0 :
|
|
20
|
-
}, m = o(() => _(
|
|
19
|
+
return t <= 0 ? 0 : a.loop ? (r % t + t) % t : Math.min(Math.max(r, 0), t - 1);
|
|
20
|
+
}, m = o(() => _(a.modelValue)), l = o(() => !a.disabled && v.value > 1), Y = o(() => l.value ? 0 : void 0), K = o(() => ({
|
|
21
21
|
transform: `translateX(-${m.value * 100}%)`
|
|
22
22
|
})), z = o(
|
|
23
23
|
() => re({
|
|
24
|
-
"nmorph-stepper": [
|
|
24
|
+
"nmorph-stepper": [a.disabled && "disabled", l.value && "interactive"]
|
|
25
25
|
})
|
|
26
26
|
), D = (e, t) => e < t ? "previous" : "next", C = (e, t, r) => {
|
|
27
27
|
const V = { index: e, previousIndex: t, direction: r };
|
|
28
28
|
y("update:model-value", e), y("change", V);
|
|
29
29
|
}, b = (e) => {
|
|
30
|
-
if (
|
|
30
|
+
if (a.disabled) return;
|
|
31
31
|
const t = m.value, r = _(e);
|
|
32
32
|
r !== t && C(r, t, D(r, t));
|
|
33
33
|
}, M = (e) => {
|
|
@@ -42,34 +42,34 @@ const N = 28, R = 320, T = 6, W = 42, q = 1.2, O = 350, le = /* @__PURE__ */ Z({
|
|
|
42
42
|
const t = Math.abs(e.deltaX), r = Math.abs(e.deltaY);
|
|
43
43
|
return t === 0 && r === 0 ? 0 : t >= r ? e.deltaX : e.deltaY;
|
|
44
44
|
}, U = (e) => {
|
|
45
|
-
if (!l.value || !
|
|
45
|
+
if (!l.value || !a.wheel) return;
|
|
46
46
|
const t = L(e);
|
|
47
47
|
Math.abs(t) < N || (e.preventDefault(), !I.value && (t > 0 ? u() : s(), k()));
|
|
48
48
|
}, F = (e) => {
|
|
49
49
|
l.value && (e.key === "ArrowRight" && (e.preventDefault(), u()), e.key === "ArrowLeft" && (e.preventDefault(), s()));
|
|
50
50
|
}, h = () => {
|
|
51
|
-
|
|
51
|
+
f.value && clearTimeout(f.value), f.value = null, x.value = !1;
|
|
52
52
|
}, w = () => {
|
|
53
|
-
h(), x.value = !0,
|
|
54
|
-
}, P = (e) =>
|
|
55
|
-
x: e.clientX -
|
|
56
|
-
y: e.clientY -
|
|
53
|
+
h(), x.value = !0, f.value = setTimeout(h, O);
|
|
54
|
+
}, P = (e) => n.value ? {
|
|
55
|
+
x: e.clientX - n.value.x,
|
|
56
|
+
y: e.clientY - n.value.y
|
|
57
57
|
} : null, g = (e, t) => Math.abs(e.x) >= t && Math.abs(e.x) > Math.abs(e.y) * q, j = (e) => {
|
|
58
|
-
!l.value || !
|
|
58
|
+
!l.value || !a.swipe || e.pointerType === "mouse" && e.button !== 0 || (e.currentTarget?.setPointerCapture?.(e.pointerId), n.value = {
|
|
59
59
|
x: e.clientX,
|
|
60
60
|
y: e.clientY,
|
|
61
61
|
pointerId: e.pointerId ?? null
|
|
62
|
-
},
|
|
62
|
+
}, p.value = !1);
|
|
63
63
|
}, G = (e) => {
|
|
64
|
-
if (!
|
|
64
|
+
if (!n.value || n.value.pointerId !== null && e.pointerId !== n.value.pointerId) return;
|
|
65
65
|
const t = P(e);
|
|
66
|
-
!t || !g(t, T) || (
|
|
66
|
+
!t || !g(t, T) || (p.value = !0, e.preventDefault());
|
|
67
67
|
}, E = () => {
|
|
68
|
-
|
|
68
|
+
n.value = null, p.value = !1;
|
|
69
69
|
}, $ = (e) => {
|
|
70
|
-
if (
|
|
70
|
+
if (!n.value || n.value.pointerId !== null && e.pointerId !== n.value.pointerId) return;
|
|
71
71
|
const t = P(e), r = !!(t && g(t, T));
|
|
72
|
-
e.currentTarget?.releasePointerCapture?.(e.pointerId), (r ||
|
|
72
|
+
e.currentTarget?.releasePointerCapture?.(e.pointerId), (r || p.value) && w(), t && g(t, W) && (t.x > 0 ? s() : u()), E();
|
|
73
73
|
}, J = (e) => {
|
|
74
74
|
x.value && (e.preventDefault(), e.stopPropagation(), h());
|
|
75
75
|
}, Q = o(() => ({
|
|
@@ -80,7 +80,7 @@ const N = 28, R = 320, T = 6, W = 42, q = 1.2, O = 350, le = /* @__PURE__ */ Z({
|
|
|
80
80
|
previous: s
|
|
81
81
|
}));
|
|
82
82
|
ee(
|
|
83
|
-
() => [
|
|
83
|
+
() => [a.modelValue, v.value, a.loop],
|
|
84
84
|
([e]) => {
|
|
85
85
|
const t = _(e);
|
|
86
86
|
t !== e && C(t, d(e), D(t, d(e)));
|
|
@@ -89,7 +89,7 @@ const N = 28, R = 320, T = 6, W = 42, q = 1.2, O = 350, le = /* @__PURE__ */ Z({
|
|
|
89
89
|
), te(() => {
|
|
90
90
|
S(), h();
|
|
91
91
|
}), B({ goTo: b, next: u, previous: s });
|
|
92
|
-
const H = { WHEEL_THRESHOLD: N, WHEEL_LOCK_IN_MS: R, DRAG_CLICK_THRESHOLD: T, SWIPE_THRESHOLD: W, SWIPE_AXIS_RATIO: q, CLICK_SUPPRESSION_IN_MS: O, props:
|
|
92
|
+
const H = { WHEEL_THRESHOLD: N, WHEEL_LOCK_IN_MS: R, DRAG_CLICK_THRESHOLD: T, SWIPE_THRESHOLD: W, SWIPE_AXIS_RATIO: q, CLICK_SUPPRESSION_IN_MS: O, props: a, emit: y, wheelLocked: I, wheelUnlockTimer: c, suppressClick: x, suppressClickTimer: f, pointerStart: n, pointerDragging: p, toFiniteInteger: d, normalizedCount: v, normalizeIndex: _, currentIndex: m, isInteractive: l, tabIndex: Y, trackStyle: K, modifiers: z, getDirection: D, emitStepChange: C, goTo: b, move: M, next: u, previous: s, clearWheelLock: S, lockWheel: k, getWheelDelta: L, handleWheel: U, handleKeydown: F, clearClickSuppression: h, suppressNextClick: w, getPointerDiff: P, isHorizontalDrag: g, handlePointerDown: j, handlePointerMove: G, clearPointer: E, handlePointerEnd: $, handleClickCapture: J, indicatorSlotProps: Q };
|
|
93
93
|
return Object.defineProperty(H, "__isScriptSetup", { enumerable: !1, value: !0 }), H;
|
|
94
94
|
}
|
|
95
95
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-divider{background:var(--nmorph-main-color)
|
|
1
|
+
.nmorph-divider{background:var(--nmorph-main-color)}.nmorph-divider.nmorph-divider--nmorph{box-shadow:var(--base-shadow-width) var(--base-shadow-width) var(--base-shadow-blur) var(--nmorph-dark-shade-color),calc(-1 * var(--base-shadow-width)) calc(-1 * var(--base-shadow-width)) var(--base-shadow-blur) var(--nmorph-light-shade-color)}.nmorph-divider.nmorph-divider--plain{background:var(--nmorph-plain-border-color)}.nmorph-divider.nmorph-divider--horizontal{width:100%;height:2px}.nmorph-divider.nmorph-divider--vertical{align-self:stretch;width:2px;height:auto}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import './NmorphDivider.css';
|
|
2
2
|
import { defineComponent as n, computed as p } from "vue";
|
|
3
3
|
import { useModifiers as s } from "../../../utils/create-modifiers.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ n({
|
|
5
5
|
__name: "NmorphDivider",
|
|
6
6
|
props: {
|
|
7
|
-
direction: { type: String, required: !1, default: "horizontal" }
|
|
7
|
+
direction: { type: String, required: !1, default: "horizontal" },
|
|
8
|
+
design: { type: null, required: !1, default: "nmorph" }
|
|
8
9
|
},
|
|
9
|
-
setup(
|
|
10
|
-
|
|
11
|
-
const e =
|
|
10
|
+
setup(t, { expose: i }) {
|
|
11
|
+
i();
|
|
12
|
+
const e = t, o = p(
|
|
12
13
|
() => s({
|
|
13
|
-
"nmorph-divider": [e.direction]
|
|
14
|
+
"nmorph-divider": [e.direction, e.design]
|
|
14
15
|
})
|
|
15
|
-
), r = { props: e, modifiers:
|
|
16
|
+
), r = { props: e, modifiers: o };
|
|
16
17
|
return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
|
|
17
18
|
}
|
|
18
19
|
});
|
|
19
20
|
export {
|
|
20
|
-
|
|
21
|
+
f as default
|
|
21
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-overlay{position:fixed;top:0;left:0;z-index:var(--nmorph-overlay-z-index);width:100vw;height:100vh;overflow:hidden;background:var(--nmorph-overlay-color);opacity:0;transition:ease-in-out var(--transition-02) opacity;pointer-events:none}.nmorph-overlay.nmorph-overlay--transparent{background:transparent}.nmorph-overlay.nmorph-overlay--show{opacity:1;pointer-events:auto}
|
|
1
|
+
.nmorph-overlay{position:fixed;top:0;left:0;z-index:var(--nmorph-private-overlay-z-index);width:100vw;height:100vh;overflow:hidden;background:var(--nmorph-overlay-color);opacity:0;transition:ease-in-out var(--transition-02) opacity;pointer-events:none}.nmorph-overlay.nmorph-overlay--transparent{background:transparent}.nmorph-overlay.nmorph-overlay--show{opacity:1;pointer-events:auto}
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import './NmorphOverlay.css';
|
|
2
|
-
import
|
|
3
|
-
import { openBlock as
|
|
2
|
+
import d from "./NmorphOverlay.vue2.js";
|
|
3
|
+
import { openBlock as l, createElementBlock as p, withModifiers as r, normalizeStyle as i, normalizeClass as s, createElementVNode as t, renderSlot as a, createBlock as c, Teleport as m } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import f from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
6
|
const v = ["tabindex"], y = ["tabindex"];
|
|
7
|
-
function k(
|
|
8
|
-
return o.renderInline ? (
|
|
7
|
+
function k(n, e, _, o, h, x) {
|
|
8
|
+
return o.renderInline ? (l(), p(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
11
|
key: 0,
|
|
12
12
|
class: s(o.modifiers),
|
|
13
|
-
style: i({ "--nmorph-overlay-z-index": o.zIndex }),
|
|
13
|
+
style: i({ "--nmorph-private-overlay-z-index": o.zIndex }),
|
|
14
14
|
onClick: r(o.clickHandler, ["stop"])
|
|
15
15
|
},
|
|
16
16
|
[
|
|
17
|
-
|
|
17
|
+
t("div", {
|
|
18
18
|
ref: "contentRef",
|
|
19
19
|
class: "nmorph-overlay__slot",
|
|
20
20
|
tabindex: o.props.trapFocus ? -1 : void 0,
|
|
21
21
|
onClick: e[0] || (e[0] = r(() => {
|
|
22
22
|
}, ["stop"]))
|
|
23
23
|
}, [
|
|
24
|
-
|
|
24
|
+
a(n.$slots, "default")
|
|
25
25
|
], 8, v)
|
|
26
26
|
],
|
|
27
27
|
6
|
|
28
28
|
/* CLASS, STYLE */
|
|
29
|
-
)) : (
|
|
29
|
+
)) : (l(), c(m, {
|
|
30
30
|
key: 1,
|
|
31
31
|
to: o.props.teleportTo
|
|
32
32
|
}, [
|
|
33
|
-
|
|
33
|
+
t(
|
|
34
34
|
"div",
|
|
35
35
|
{
|
|
36
36
|
class: s(o.modifiers),
|
|
37
|
-
style: i({ "--nmorph-overlay-z-index": o.zIndex }),
|
|
37
|
+
style: i({ "--nmorph-private-overlay-z-index": o.zIndex }),
|
|
38
38
|
onClick: r(o.clickHandler, ["stop"])
|
|
39
39
|
},
|
|
40
40
|
[
|
|
41
|
-
|
|
41
|
+
t("div", {
|
|
42
42
|
ref: "contentRef",
|
|
43
43
|
class: "nmorph-overlay__slot",
|
|
44
44
|
tabindex: o.props.trapFocus ? -1 : void 0,
|
|
45
45
|
onClick: e[1] || (e[1] = r(() => {
|
|
46
46
|
}, ["stop"]))
|
|
47
47
|
}, [
|
|
48
|
-
|
|
48
|
+
a(n.$slots, "default")
|
|
49
49
|
], 8, y)
|
|
50
50
|
],
|
|
51
51
|
6
|
|
@@ -53,7 +53,7 @@ function k(l, e, _, o, h, x) {
|
|
|
53
53
|
)
|
|
54
54
|
], 8, ["to"]));
|
|
55
55
|
}
|
|
56
|
-
const I = /* @__PURE__ */ f(
|
|
56
|
+
const I = /* @__PURE__ */ f(d, [["render", k], ["__file", "/builds/ketjo/nmorph/library/src/components/others/nmorph-overlay/NmorphOverlay.vue"]]);
|
|
57
57
|
export {
|
|
58
58
|
I as default
|
|
59
59
|
};
|
package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.nmorph-notification-provider{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none}.nmorph-notification-provider .nmorph-notification-provider__notification{position:relative;width:fit-content;height:fit-content;margin:1rem;overflow:hidden;border-radius:var(--default-border-radius);transition:transform .5s ease,opacity .5s ease-in-out;pointer-events:all}.nmorph-notification-provider .nmorph-notification-provider__notification--with-duration .nmorph-alert{padding-bottom:calc(var(--indentation-03) + 12px)}.nmorph-notification-provider .nmorph-notification-provider__duration{position:absolute;right:var(--indentation-04);bottom:var(--indentation-02);left:var(--indentation-04);display:flex;gap:var(--indentation-02);align-items:center;color:var(--nmorph-white-color);pointer-events:none}.nmorph-notification-provider .nmorph-notification-provider__duration-track{flex:1 1 auto;min-width:20px;height:3px;overflow:hidden;background:color-mix(in srgb,currentColor 20%,transparent);border-radius:999px}.nmorph-notification-provider .nmorph-notification-provider__duration-bar{display:block;width:100%;height:100%;background:currentColor;border-radius:inherit;transform-origin:left center;opacity:.72;animation:nmorph-notification-provider-duration var(--nmorph-notification-provider-duration) linear forwards}.nmorph-notification-provider .nmorph-notification-provider__duration-value{flex:0 0 auto;color:currentColor;font-size:var(--font-size
|
|
1
|
+
.nmorph-notification-provider{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none}.nmorph-notification-provider .nmorph-notification-provider__notification{position:relative;width:fit-content;height:fit-content;margin:1rem;overflow:hidden;border-radius:var(--default-border-radius);transition:transform .5s ease,opacity .5s ease-in-out;pointer-events:all}.nmorph-notification-provider .nmorph-notification-provider__notification--with-duration .nmorph-alert{padding-bottom:calc(var(--indentation-03) + 12px)}.nmorph-notification-provider .nmorph-notification-provider__duration{position:absolute;right:var(--indentation-04);bottom:var(--indentation-02);left:var(--indentation-04);display:flex;gap:var(--indentation-02);align-items:center;color:var(--nmorph-white-color);pointer-events:none}.nmorph-notification-provider .nmorph-notification-provider__duration-track{flex:1 1 auto;min-width:20px;height:3px;overflow:hidden;background:color-mix(in srgb,currentColor 20%,transparent);border-radius:999px}.nmorph-notification-provider .nmorph-notification-provider__duration-bar{display:block;width:100%;height:100%;background:currentColor;border-radius:inherit;transform-origin:left center;opacity:.72;animation:nmorph-notification-provider-duration var(--nmorph-private-notification-provider-duration) linear forwards}.nmorph-notification-provider .nmorph-notification-provider__duration-value{flex:0 0 auto;color:currentColor;font-size:var(--nmorph-typography-caption-font-size);line-height:1;opacity:.72}.nmorph-notification-provider .nmorph-notification-provider__list{position:fixed;display:flex;flex-direction:column;width:fit-content;max-width:100vw;pointer-events:none}.nmorph-notification-provider .nmorph-notification-move{transition:transform .5s ease}.nmorph-notification-provider .nmorph-notification-provider__list--top-left{top:0;left:0;align-items:flex-start}.nmorph-notification-provider .nmorph-notification-provider__list--top-right{top:0;right:0;align-items:flex-end}.nmorph-notification-provider .nmorph-notification-provider__list--bottom-left{bottom:0;left:0;align-items:flex-start}.nmorph-notification-provider .nmorph-notification-provider__list--bottom-right{right:0;bottom:0;align-items:flex-end}.nmorph-notification-provider .nmorph-notification-provider__list--top-center{top:0;left:50%;align-items:center;transform:translate(-50%)}.nmorph-notification-provider .nmorph-notification-provider__list--bottom-center{bottom:0;left:50%;align-items:center;transform:translate(-50%)}.nmorph-notification-provider .nmorph-notification-provider__list--top-left .nmorph-notification-enter-active,.nmorph-notification-provider .nmorph-notification-provider__list--bottom-left .nmorph-notification-enter-active,.nmorph-notification-provider .nmorph-notification-provider__list--top-right .nmorph-notification-enter-active,.nmorph-notification-provider .nmorph-notification-provider__list--bottom-right .nmorph-notification-enter-active,.nmorph-notification-provider .nmorph-notification-provider__list--top-center .nmorph-notification-enter-active,.nmorph-notification-provider .nmorph-notification-provider__list--bottom-center .nmorph-notification-enter-active,.nmorph-notification-provider .nmorph-notification-provider__list--top-left .nmorph-notification-leave-active,.nmorph-notification-provider .nmorph-notification-provider__list--bottom-left .nmorph-notification-leave-active,.nmorph-notification-provider .nmorph-notification-provider__list--top-right .nmorph-notification-leave-active,.nmorph-notification-provider .nmorph-notification-provider__list--bottom-right .nmorph-notification-leave-active,.nmorph-notification-provider .nmorph-notification-provider__list--top-center .nmorph-notification-leave-active,.nmorph-notification-provider .nmorph-notification-provider__list--bottom-center .nmorph-notification-leave-active{transition:transform .5s ease,opacity .5s ease-in-out}.nmorph-notification-provider .nmorph-notification-provider__list--top-left .nmorph-notification-enter-from,.nmorph-notification-provider .nmorph-notification-provider__list--bottom-left .nmorph-notification-enter-from{transform:translate(-100%)}.nmorph-notification-provider .nmorph-notification-provider__list--top-right .nmorph-notification-enter-from,.nmorph-notification-provider .nmorph-notification-provider__list--bottom-right .nmorph-notification-enter-from{transform:translate(100%)}.nmorph-notification-provider .nmorph-notification-provider__list--top-center .nmorph-notification-enter-from{transform:translateY(-100%)}.nmorph-notification-provider .nmorph-notification-provider__list--bottom-center .nmorph-notification-enter-from{transform:translateY(100%)}.nmorph-notification-provider .nmorph-notification-provider__list--top-left .nmorph-notification-leave-to,.nmorph-notification-provider .nmorph-notification-provider__list--bottom-left .nmorph-notification-leave-to{transform:translate(-100%)}.nmorph-notification-provider .nmorph-notification-provider__list--top-right .nmorph-notification-leave-to,.nmorph-notification-provider .nmorph-notification-provider__list--bottom-right .nmorph-notification-leave-to{transform:translate(100%)}.nmorph-notification-provider .nmorph-notification-provider__list--top-center .nmorph-notification-leave-to{transform:translateY(-100%)}.nmorph-notification-provider .nmorph-notification-provider__list--bottom-center .nmorph-notification-leave-to{transform:translateY(100%)}.nmorph-notification-provider .nmorph-notification-enter-from{opacity:0}.nmorph-notification-provider .nmorph-notification-enter-to{transform:translate(0);opacity:1}.nmorph-notification-provider .nmorph-notification-leave-active{overflow:hidden}.nmorph-notification-provider .nmorph-notification-leave-active .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-text-color);display:flex;align-items:center;width:var(--nmorph-private-icon-width);min-width:var(--nmorph-private-icon-width);height:var(--nmorph-private-icon-height);min-height:var(--nmorph-private-icon-height)}.nmorph-notification-provider .nmorph-notification-leave-active .nmorph-icon--small{--nmorph-private-icon-width: 14px;--nmorph-private-icon-height: 14px}.nmorph-notification-provider .nmorph-notification-leave-active .nmorph-icon--medium{--nmorph-private-icon-width: 20px;--nmorph-private-icon-height: 20px}.nmorph-notification-provider .nmorph-notification-leave-active .nmorph-icon--large{--nmorph-private-icon-width: 32px;--nmorph-private-icon-height: 32px}.nmorph-notification-provider .nmorph-notification-leave-active .nmorph-icon__content{display:flex;justify-content:center;align-items:center;width:var(--nmorph-private-icon-width);min-width:var(--nmorph-private-icon-width);height:var(--nmorph-private-icon-height);min-height:var(--nmorph-private-icon-height);overflow:hidden}.nmorph-notification-provider .nmorph-notification-leave-active .nmorph-alert__close .nmorph-icon,.nmorph-notification-provider .nmorph-notification-leave-active .nmorph-alert__content,.nmorph-notification-provider .nmorph-notification-leave-active .nmorph-alert__content-title{--nmorph-private-icon-color: var(--nmorph-white-color)}.nmorph-notification-provider .nmorph-notification-leave-active .nmorph-alert--success .nmorph-alert__icon .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-success-color)}.nmorph-notification-provider .nmorph-notification-leave-active .nmorph-alert--error .nmorph-alert__icon .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-error-color)}.nmorph-notification-provider .nmorph-notification-leave-active .nmorph-alert--warning .nmorph-alert__icon .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-warn-color)}.nmorph-notification-provider .nmorph-notification-leave-active .nmorph-alert--info .nmorph-alert__icon .nmorph-icon{--nmorph-private-icon-color: var(--nmorph-info-color)}.nmorph-notification-provider .nmorph-notification-leave-active svg{width:100%;height:100%;fill:var(--nmorph-private-icon-color);stroke-width:0}.nmorph-notification-provider .nmorph-notification-leave-active path{stroke:var(--nmorph-private-icon-color)}.nmorph-notification-provider .nmorph-notification-leave-to{opacity:0;pointer-events:none}.nmorph-notification-provider .nmorph-notification-provider__list--top-left .nmorph-notification-provider__notification--closing,.nmorph-notification-provider .nmorph-notification-provider__list--bottom-left .nmorph-notification-provider__notification--closing{position:absolute;transform:translate(-100%);opacity:0;pointer-events:none}.nmorph-notification-provider .nmorph-notification-provider__list--top-right .nmorph-notification-provider__notification--closing,.nmorph-notification-provider .nmorph-notification-provider__list--bottom-right .nmorph-notification-provider__notification--closing{position:absolute;transform:translate(100%);opacity:0;pointer-events:none}.nmorph-notification-provider .nmorph-notification-provider__list--top-center .nmorph-notification-provider__notification--closing{position:absolute;transform:translateY(-100%);opacity:0;pointer-events:none}.nmorph-notification-provider .nmorph-notification-provider__list--bottom-center .nmorph-notification-provider__notification--closing{position:absolute;transform:translateY(100%);opacity:0;pointer-events:none}@keyframes nmorph-notification-provider-duration{0%{transform:scaleX(1)}to{transform:scaleX(0)}}
|
package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import './NmorphNotificationProvider.css';
|
|
2
2
|
import m from "./NmorphNotificationProvider.vue2.js";
|
|
3
|
-
import { openBlock as
|
|
3
|
+
import { openBlock as e, createElementBlock as i, normalizeStyle as n, Fragment as a, renderList as d, createBlock as h, TransitionGroup as _, normalizeClass as s, withCtx as v, createVNode as u, createElementVNode as c, toDisplayString as f, createCommentVNode as p } from "vue";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import y from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
-
const
|
|
6
|
+
const b = ["title"], k = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "nmorph-notification-provider__duration-value"
|
|
9
9
|
};
|
|
10
|
-
function
|
|
11
|
-
return
|
|
10
|
+
function N(g, l, D, r, w, I) {
|
|
11
|
+
return e(), i(
|
|
12
12
|
"div",
|
|
13
13
|
{
|
|
14
14
|
class: "nmorph-notification-provider",
|
|
15
|
-
style:
|
|
15
|
+
style: n({ zIndex: r.zIndex })
|
|
16
16
|
},
|
|
17
17
|
[
|
|
18
|
-
(
|
|
19
|
-
|
|
18
|
+
(e(!0), i(
|
|
19
|
+
a,
|
|
20
20
|
null,
|
|
21
|
-
d(r.notificationGroups, (
|
|
22
|
-
key:
|
|
21
|
+
d(r.notificationGroups, (t) => (e(), h(_, {
|
|
22
|
+
key: t.placement,
|
|
23
23
|
appear: "",
|
|
24
24
|
name: "nmorph-notification",
|
|
25
25
|
tag: "div",
|
|
26
|
-
class: s(`nmorph-notification-provider__list nmorph-notification-provider__list--${
|
|
26
|
+
class: s(`nmorph-notification-provider__list nmorph-notification-provider__list--${t.placement}`)
|
|
27
27
|
}, {
|
|
28
|
-
default:
|
|
29
|
-
(
|
|
30
|
-
|
|
28
|
+
default: v(() => [
|
|
29
|
+
(e(!0), i(
|
|
30
|
+
a,
|
|
31
31
|
null,
|
|
32
|
-
d(
|
|
32
|
+
d(t.notifications, (o) => (e(), i(
|
|
33
33
|
"div",
|
|
34
34
|
{
|
|
35
35
|
key: o.id,
|
|
36
|
-
style:
|
|
36
|
+
style: n(r.getNotificationStyle(o)),
|
|
37
37
|
class: s([
|
|
38
38
|
"nmorph-notification-provider__notification",
|
|
39
39
|
r.hasDurationIndicator(o) && "nmorph-notification-provider__notification--with-duration",
|
|
@@ -41,19 +41,29 @@ function D(x, n, b, r, C, I) {
|
|
|
41
41
|
])
|
|
42
42
|
},
|
|
43
43
|
[
|
|
44
|
-
|
|
44
|
+
u(r.NmorphAlert, {
|
|
45
|
+
id: o.id,
|
|
45
46
|
class: "nmorph-notification-provider__alert",
|
|
46
|
-
style: { width: o.width }
|
|
47
|
-
|
|
47
|
+
style: n({ width: o.width }),
|
|
48
|
+
type: o.type,
|
|
49
|
+
closable: o.closable,
|
|
50
|
+
title: o.title,
|
|
51
|
+
content: o.content,
|
|
52
|
+
fill: o.fill,
|
|
53
|
+
"show-icon": o.showIcon,
|
|
54
|
+
bordered: o.bordered,
|
|
55
|
+
html: o.html,
|
|
56
|
+
"close-icon-position": o.closeIconPosition,
|
|
57
|
+
"background-color": o.backgroundColor,
|
|
48
58
|
onClose: () => r.closeHandler(o.id)
|
|
49
|
-
}
|
|
50
|
-
r.hasDurationIndicator(o) ? (
|
|
59
|
+
}, null, 8, ["id", "style", "type", "closable", "title", "content", "fill", "show-icon", "bordered", "html", "close-icon-position", "background-color", "onClose"]),
|
|
60
|
+
r.hasDurationIndicator(o) ? (e(), i("div", {
|
|
51
61
|
key: `${o.id}-${r.getNotificationDuration(o)}`,
|
|
52
62
|
class: "nmorph-notification-provider__duration",
|
|
53
63
|
title: r.hasDurationValue(o) ? r.getNotificationDurationLabel(o) : void 0,
|
|
54
64
|
"aria-hidden": "true"
|
|
55
65
|
}, [
|
|
56
|
-
|
|
66
|
+
l[0] || (l[0] = c(
|
|
57
67
|
"span",
|
|
58
68
|
{ class: "nmorph-notification-provider__duration-track" },
|
|
59
69
|
[
|
|
@@ -62,14 +72,14 @@ function D(x, n, b, r, C, I) {
|
|
|
62
72
|
-1
|
|
63
73
|
/* CACHED */
|
|
64
74
|
)),
|
|
65
|
-
r.hasDurationValue(o) ? (
|
|
75
|
+
r.hasDurationValue(o) ? (e(), i(
|
|
66
76
|
"span",
|
|
67
77
|
k,
|
|
68
|
-
|
|
78
|
+
f(r.getNotificationDurationLabel(o)),
|
|
69
79
|
1
|
|
70
80
|
/* TEXT */
|
|
71
81
|
)) : p("v-if", !0)
|
|
72
|
-
], 8,
|
|
82
|
+
], 8, b)) : p("v-if", !0)
|
|
73
83
|
],
|
|
74
84
|
6
|
|
75
85
|
/* CLASS, STYLE */
|
|
@@ -89,7 +99,7 @@ function D(x, n, b, r, C, I) {
|
|
|
89
99
|
/* STYLE */
|
|
90
100
|
);
|
|
91
101
|
}
|
|
92
|
-
const B = /* @__PURE__ */ y(m, [["render",
|
|
102
|
+
const B = /* @__PURE__ */ y(m, [["render", N], ["__file", "/builds/ketjo/nmorph/library/src/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue"]]);
|
|
93
103
|
export {
|
|
94
104
|
B as default
|
|
95
105
|
};
|