@nmorph/nmorph-ui-kit 2.2.53 → 2.2.54
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/add-location.svg.js +3 -21
- package/dist/assets/icons/aim.svg.js +2 -14
- package/dist/assets/icons/alarm-clock.svg.js +2 -14
- package/dist/assets/icons/apple.svg.js +1 -7
- package/dist/assets/icons/archive.svg.js +2 -14
- package/dist/assets/icons/arrow-down.svg.js +1 -7
- package/dist/assets/icons/arrow-left.svg.js +1 -7
- package/dist/assets/icons/arrow-right.svg.js +1 -7
- package/dist/assets/icons/arrow-up.svg.js +1 -7
- package/dist/assets/icons/audio.svg.js +1 -7
- package/dist/assets/icons/avatar.svg.js +1 -7
- package/dist/assets/icons/back.svg.js +2 -14
- package/dist/assets/icons/baseball.svg.js +2 -14
- package/dist/assets/icons/basketball.svg.js +1 -7
- package/dist/assets/icons/bell-filled.svg.js +1 -7
- package/dist/assets/icons/bell.svg.js +3 -21
- package/dist/assets/icons/bottom-left.svg.js +2 -14
- package/dist/assets/icons/bottom-right.svg.js +2 -14
- package/dist/assets/icons/bottom.svg.js +1 -7
- package/dist/assets/icons/bowl.svg.js +1 -7
- package/dist/assets/icons/box.svg.js +3 -21
- package/dist/assets/icons/briefcase.svg.js +1 -7
- package/dist/assets/icons/brush-filled.svg.js +1 -7
- package/dist/assets/icons/brush.svg.js +1 -7
- package/dist/assets/icons/burger.svg.js +1 -7
- package/dist/assets/icons/calendar.svg.js +1 -7
- package/dist/assets/icons/camera-filled.svg.js +1 -7
- package/dist/assets/icons/camera.svg.js +1 -7
- package/dist/assets/icons/caret-bottom.svg.js +1 -7
- package/dist/assets/icons/caret-left.svg.js +1 -7
- package/dist/assets/icons/caret-right.svg.js +1 -7
- package/dist/assets/icons/caret-top.svg.js +1 -7
- package/dist/assets/icons/cellphone.svg.js +1 -7
- package/dist/assets/icons/chat-dot-round.svg.js +2 -14
- package/dist/assets/icons/chat-dot-square.svg.js +2 -14
- package/dist/assets/icons/chat-line-round.svg.js +2 -14
- package/dist/assets/icons/chat-line-square.svg.js +2 -14
- package/dist/assets/icons/chat-round.svg.js +1 -7
- package/dist/assets/icons/chat-square.svg.js +1 -7
- package/dist/assets/icons/check.svg.js +1 -7
- package/dist/assets/icons/checked.svg.js +1 -7
- package/dist/assets/icons/cherry.svg.js +1 -7
- package/dist/assets/icons/chevron-double-down.svg.js +1 -7
- package/dist/assets/icons/chevron-double-left.svg.js +2 -14
- package/dist/assets/icons/chevron-double-right.svg.js +2 -14
- package/dist/assets/icons/chevron-double-up.svg.js +2 -14
- package/dist/assets/icons/chevron-down.svg.js +1 -7
- package/dist/assets/icons/chevron-left.svg.js +1 -7
- package/dist/assets/icons/chevron-right.svg.js +1 -7
- package/dist/assets/icons/chevron-up.svg.js +1 -7
- package/dist/assets/icons/chicken.svg.js +1 -7
- package/dist/assets/icons/chrome-filled.svg.js +3 -21
- package/dist/assets/icons/circle-check-filled.svg.js +1 -7
- package/dist/assets/icons/circle-check.svg.js +2 -14
- package/dist/assets/icons/circle-close-filled.svg.js +1 -7
- package/dist/assets/icons/circle-close.svg.js +2 -14
- package/dist/assets/icons/circle-plus-filled.svg.js +1 -7
- package/dist/assets/icons/circle-plus.svg.js +3 -21
- package/dist/assets/icons/clipboard-check.svg.js +5 -11
- package/dist/assets/icons/clipboard.svg.js +5 -11
- package/dist/assets/icons/clock.svg.js +3 -21
- package/dist/assets/icons/close-bold.svg.js +1 -7
- package/dist/assets/icons/close.svg.js +1 -7
- package/dist/assets/icons/cloudy.svg.js +1 -7
- package/dist/assets/icons/code.svg.js +1 -7
- package/dist/assets/icons/coffee-cup.svg.js +1 -7
- package/dist/assets/icons/coffee.svg.js +1 -7
- package/dist/assets/icons/coin.svg.js +3 -21
- package/dist/assets/icons/cold-drink.svg.js +1 -7
- package/dist/assets/icons/collection-tag.svg.js +1 -7
- package/dist/assets/icons/collection.svg.js +2 -14
- package/dist/assets/icons/comment.svg.js +1 -7
- package/dist/assets/icons/compass.svg.js +2 -14
- package/dist/assets/icons/connection.svg.js +2 -14
- package/dist/assets/icons/coordinate.svg.js +2 -14
- package/dist/assets/icons/copy-document.svg.js +2 -14
- package/dist/assets/icons/copy.svg.js +1 -7
- package/dist/assets/icons/cpu.svg.js +2 -14
- package/dist/assets/icons/credit-card.svg.js +2 -14
- package/dist/assets/icons/crop.svg.js +2 -14
- package/dist/assets/icons/cross.svg.js +1 -7
- package/dist/assets/icons/database.svg.js +5 -11
- package/dist/assets/icons/delete-filled.svg.js +1 -7
- package/dist/assets/icons/delete.svg.js +1 -7
- package/dist/assets/icons/dessert.svg.js +1 -7
- package/dist/assets/icons/discount.svg.js +2 -14
- package/dist/assets/icons/doc.svg.js +1 -7
- package/dist/assets/icons/document-add.svg.js +1 -7
- package/dist/assets/icons/document-checked.svg.js +1 -7
- package/dist/assets/icons/document-copy.svg.js +1 -7
- package/dist/assets/icons/document-delete.svg.js +1 -7
- package/dist/assets/icons/document-remove.svg.js +1 -7
- package/dist/assets/icons/document.svg.js +1 -7
- package/dist/assets/icons/download.svg.js +1 -7
- package/dist/assets/icons/drag-handle.svg.js +1 -7
- package/dist/assets/icons/edit-pen.svg.js +1 -7
- package/dist/assets/icons/edit.svg.js +2 -14
- package/dist/assets/icons/enlarge.svg.js +1 -7
- package/dist/assets/icons/error.svg.js +2 -14
- package/dist/assets/icons/exit-square.svg.js +5 -17
- package/dist/assets/icons/exit.svg.js +2 -14
- package/dist/assets/icons/expand.svg.js +1 -7
- package/dist/assets/icons/external-link.svg.js +2 -14
- package/dist/assets/icons/eye-blocked.svg.js +2 -14
- package/dist/assets/icons/eye.svg.js +1 -7
- package/dist/assets/icons/failed.svg.js +1 -7
- package/dist/assets/icons/files.svg.js +1 -7
- package/dist/assets/icons/film.svg.js +2 -14
- package/dist/assets/icons/filter-off.svg.js +2 -14
- package/dist/assets/icons/filter.svg.js +1 -7
- package/dist/assets/icons/fingerprint.svg.js +12 -30
- package/dist/assets/icons/finished.svg.js +1 -7
- package/dist/assets/icons/flag.svg.js +1 -7
- package/dist/assets/icons/fold.svg.js +1 -7
- package/dist/assets/icons/folder-add.svg.js +1 -7
- package/dist/assets/icons/folder-checked.svg.js +1 -7
- package/dist/assets/icons/folder-delete.svg.js +1 -7
- package/dist/assets/icons/folder-opened.svg.js +1 -7
- package/dist/assets/icons/folder-remove.svg.js +1 -7
- package/dist/assets/icons/folder.svg.js +1 -7
- package/dist/assets/icons/food.svg.js +1 -7
- package/dist/assets/icons/fork-spoon.svg.js +1 -7
- package/dist/assets/icons/forward-filled.svg.js +1 -7
- package/dist/assets/icons/forward.svg.js +8 -14
- package/dist/assets/icons/full-screen.svg.js +1 -7
- package/dist/assets/icons/goblet-full.svg.js +1 -7
- package/dist/assets/icons/goblet.svg.js +1 -7
- package/dist/assets/icons/gold-medal.svg.js +2 -14
- package/dist/assets/icons/goods-filled.svg.js +1 -7
- package/dist/assets/icons/goods.svg.js +1 -7
- package/dist/assets/icons/google.svg.js +4 -28
- package/dist/assets/icons/grape.svg.js +1 -7
- package/dist/assets/icons/grid.svg.js +1 -7
- package/dist/assets/icons/guide.svg.js +2 -14
- package/dist/assets/icons/handbag.svg.js +1 -7
- package/dist/assets/icons/headset.svg.js +1 -7
- package/dist/assets/icons/histogram.svg.js +1 -7
- package/dist/assets/icons/hot-water.svg.js +1 -7
- package/dist/assets/icons/house.svg.js +1 -7
- package/dist/assets/icons/ice-cream-round.svg.js +1 -7
- package/dist/assets/icons/ice-drink.svg.js +1 -7
- package/dist/assets/icons/ice-tea.svg.js +1 -7
- package/dist/assets/icons/image.svg.js +7 -19
- package/dist/assets/icons/inbox.svg.js +5 -11
- package/dist/assets/icons/info-filled.svg.js +1 -7
- package/dist/assets/icons/info.svg.js +2 -14
- package/dist/assets/icons/key.svg.js +1 -7
- package/dist/assets/icons/knife-fork.svg.js +1 -7
- package/dist/assets/icons/lightning.svg.js +2 -14
- package/dist/assets/icons/link.svg.js +1 -7
- package/dist/assets/icons/list.svg.js +1 -7
- package/dist/assets/icons/loading.svg.js +10 -16
- package/dist/assets/icons/location-filled.svg.js +1 -7
- package/dist/assets/icons/location-information.svg.js +3 -21
- package/dist/assets/icons/location.svg.js +2 -14
- package/dist/assets/icons/lock.svg.js +2 -14
- package/dist/assets/icons/logo.svg.js +22 -34
- package/dist/assets/icons/lollipop.svg.js +1 -7
- package/dist/assets/icons/magic-stick.svg.js +1 -7
- package/dist/assets/icons/magnet.svg.js +1 -7
- package/dist/assets/icons/mail.svg.js +5 -11
- package/dist/assets/icons/male.svg.js +3 -21
- package/dist/assets/icons/management.svg.js +1 -7
- package/dist/assets/icons/map-location.svg.js +2 -14
- package/dist/assets/icons/medal.svg.js +2 -14
- package/dist/assets/icons/memo.svg.js +3 -21
- package/dist/assets/icons/menu.svg.js +1 -7
- package/dist/assets/icons/message-box.svg.js +1 -7
- package/dist/assets/icons/message.svg.js +2 -14
- package/dist/assets/icons/mic.svg.js +1 -7
- package/dist/assets/icons/microphone.svg.js +1 -7
- package/dist/assets/icons/minus-thin.svg.js +5 -11
- package/dist/assets/icons/minus.svg.js +1 -7
- package/dist/assets/icons/money.svg.js +3 -21
- package/dist/assets/icons/monitor.svg.js +1 -7
- package/dist/assets/icons/moon.svg.js +1 -7
- package/dist/assets/icons/more-filled.svg.js +1 -7
- package/dist/assets/icons/more.svg.js +1 -7
- package/dist/assets/icons/mostly-cloudy.svg.js +1 -7
- package/dist/assets/icons/mouse.svg.js +2 -14
- package/dist/assets/icons/mug.svg.js +1 -7
- package/dist/assets/icons/mute-notification.svg.js +2 -14
- package/dist/assets/icons/mute.svg.js +2 -14
- package/dist/assets/icons/no-smoking.svg.js +1 -7
- package/dist/assets/icons/notebook.svg.js +2 -14
- package/dist/assets/icons/notification.svg.js +2 -14
- package/dist/assets/icons/odometer.svg.js +3 -21
- package/dist/assets/icons/office-building.svg.js +3 -21
- package/dist/assets/icons/open.svg.js +2 -14
- package/dist/assets/icons/operation.svg.js +1 -7
- package/dist/assets/icons/opportunity.svg.js +1 -7
- package/dist/assets/icons/orange.svg.js +1 -7
- package/dist/assets/icons/paperclip.svg.js +1 -7
- package/dist/assets/icons/partly-cloudy.svg.js +2 -14
- package/dist/assets/icons/pause.svg.js +1 -7
- package/dist/assets/icons/pear.svg.js +1 -7
- package/dist/assets/icons/phone-filled.svg.js +1 -7
- package/dist/assets/icons/phone.svg.js +1 -7
- package/dist/assets/icons/picture.svg.js +2 -14
- package/dist/assets/icons/pie-chart.svg.js +2 -14
- package/dist/assets/icons/pin.svg.js +1 -7
- package/dist/assets/icons/place.svg.js +3 -21
- package/dist/assets/icons/platform.svg.js +1 -7
- package/dist/assets/icons/play.svg.js +1 -7
- package/dist/assets/icons/plus-thin.svg.js +5 -11
- package/dist/assets/icons/plus.svg.js +1 -7
- package/dist/assets/icons/pointer.svg.js +1 -7
- package/dist/assets/icons/position.svg.js +1 -7
- package/dist/assets/icons/postcard.svg.js +2 -14
- package/dist/assets/icons/pouring.svg.js +1 -7
- package/dist/assets/icons/present.svg.js +4 -28
- package/dist/assets/icons/price-tag.svg.js +2 -14
- package/dist/assets/icons/printer.svg.js +1 -7
- package/dist/assets/icons/promotion.svg.js +1 -7
- package/dist/assets/icons/quartz-watch.svg.js +3 -21
- package/dist/assets/icons/question-filled.svg.js +1 -7
- package/dist/assets/icons/rank.svg.js +1 -7
- package/dist/assets/icons/reading-lamp.svg.js +2 -14
- package/dist/assets/icons/reading.svg.js +2 -14
- package/dist/assets/icons/record.svg.js +1 -7
- package/dist/assets/icons/redo.svg.js +1 -7
- package/dist/assets/icons/refresh-left.svg.js +1 -7
- package/dist/assets/icons/refresh-right.svg.js +1 -7
- package/dist/assets/icons/refresh.svg.js +1 -7
- package/dist/assets/icons/refrigerator.svg.js +1 -7
- package/dist/assets/icons/remove-filled.svg.js +1 -7
- package/dist/assets/icons/remove.svg.js +2 -14
- package/dist/assets/icons/reply-filled.svg.js +1 -7
- package/dist/assets/icons/reply.svg.js +8 -14
- package/dist/assets/icons/right.svg.js +1 -7
- package/dist/assets/icons/rotate-left.svg.js +1 -7
- package/dist/assets/icons/rotate-right.svg.js +1 -7
- package/dist/assets/icons/save.svg.js +5 -11
- package/dist/assets/icons/scale-to-original.svg.js +1 -7
- package/dist/assets/icons/school.svg.js +3 -21
- package/dist/assets/icons/scissor.svg.js +1 -7
- package/dist/assets/icons/search.svg.js +1 -7
- package/dist/assets/icons/select.svg.js +1 -7
- package/dist/assets/icons/sell.svg.js +1 -7
- package/dist/assets/icons/semi-select.svg.js +1 -7
- package/dist/assets/icons/send-filled.svg.js +1 -7
- package/dist/assets/icons/send.svg.js +1 -7
- package/dist/assets/icons/server.svg.js +6 -18
- package/dist/assets/icons/service.svg.js +1 -7
- package/dist/assets/icons/setting.svg.js +1 -7
- package/dist/assets/icons/share.svg.js +1 -7
- package/dist/assets/icons/shield-check.svg.js +5 -11
- package/dist/assets/icons/shield.svg.js +5 -11
- package/dist/assets/icons/ship.svg.js +1 -7
- package/dist/assets/icons/shop.svg.js +1 -7
- package/dist/assets/icons/shopping-bag.svg.js +2 -14
- package/dist/assets/icons/shopping-cart-full.svg.js +2 -14
- package/dist/assets/icons/shopping-cart.svg.js +1 -7
- package/dist/assets/icons/shrink.svg.js +1 -7
- package/dist/assets/icons/sliders.svg.js +5 -17
- package/dist/assets/icons/smile.svg.js +2 -14
- package/dist/assets/icons/smoking.svg.js +2 -14
- package/dist/assets/icons/soccer.svg.js +1 -7
- package/dist/assets/icons/sold-out.svg.js +1 -7
- package/dist/assets/icons/sort-down.svg.js +1 -7
- package/dist/assets/icons/sort-up.svg.js +1 -7
- package/dist/assets/icons/sort.svg.js +1 -7
- package/dist/assets/icons/stamp.svg.js +1 -7
- package/dist/assets/icons/star-filled.svg.js +1 -7
- package/dist/assets/icons/star.svg.js +1 -7
- package/dist/assets/icons/stop.svg.js +1 -7
- package/dist/assets/icons/stopwatch.svg.js +2 -14
- package/dist/assets/icons/success-filled.svg.js +1 -7
- package/dist/assets/icons/success.svg.js +1 -7
- package/dist/assets/icons/sugar.svg.js +1 -7
- package/dist/assets/icons/suitcase-line.svg.js +1 -7
- package/dist/assets/icons/sunny.svg.js +1 -7
- package/dist/assets/icons/sunrise.svg.js +1 -7
- package/dist/assets/icons/sunset.svg.js +1 -7
- package/dist/assets/icons/switch-button.svg.js +2 -14
- package/dist/assets/icons/switch-filled.svg.js +2 -14
- package/dist/assets/icons/switch.svg.js +1 -7
- package/dist/assets/icons/takeaway-box.svg.js +1 -7
- package/dist/assets/icons/ticket.svg.js +1 -7
- package/dist/assets/icons/tickets.svg.js +1 -7
- package/dist/assets/icons/time.svg.js +1 -7
- package/dist/assets/icons/timer.svg.js +3 -21
- package/dist/assets/icons/toilet-paper.svg.js +2 -14
- package/dist/assets/icons/tools.svg.js +1 -7
- package/dist/assets/icons/top-left.svg.js +2 -14
- package/dist/assets/icons/top-right.svg.js +2 -14
- package/dist/assets/icons/top.svg.js +1 -7
- package/dist/assets/icons/trend-charts.svg.js +1 -7
- package/dist/assets/icons/triangle-down.svg.js +1 -7
- package/dist/assets/icons/trophy-base.svg.js +1 -7
- package/dist/assets/icons/trophy.svg.js +1 -7
- package/dist/assets/icons/turn-off.svg.js +2 -14
- package/dist/assets/icons/umbrella.svg.js +1 -7
- package/dist/assets/icons/undo.svg.js +1 -7
- package/dist/assets/icons/unlock.svg.js +2 -14
- package/dist/assets/icons/upload-filled.svg.js +1 -7
- package/dist/assets/icons/upload.svg.js +1 -7
- package/dist/assets/icons/user-filled.svg.js +1 -7
- package/dist/assets/icons/user.svg.js +1 -7
- package/dist/assets/icons/users.svg.js +2 -14
- package/dist/assets/icons/van.svg.js +1 -7
- package/dist/assets/icons/video-camera.svg.js +1 -7
- package/dist/assets/icons/video-pause.svg.js +1 -7
- package/dist/assets/icons/video-play.svg.js +1 -7
- package/dist/assets/icons/video.svg.js +2 -14
- package/dist/assets/icons/view.svg.js +1 -7
- package/dist/assets/icons/wallet-filled.svg.js +1 -7
- package/dist/assets/icons/wallet.svg.js +3 -21
- package/dist/assets/icons/warn-triangle-filled.svg.js +1 -7
- package/dist/assets/icons/warning.svg.js +2 -14
- package/dist/assets/icons/watch.svg.js +3 -21
- package/dist/assets/icons/wind-power.svg.js +1 -7
- package/dist/assets/icons/zoom-in.svg.js +1 -7
- package/dist/assets/icons/zoom-out.svg.js +1 -7
- package/dist/components/basic/nmorph-button/NmorphButton.vue.js +94 -63
- package/dist/components/basic/nmorph-button/NmorphButton.vue3.js +6 -0
- package/dist/components/basic/nmorph-icon/NmorphIcon.vue.js +32 -21
- package/dist/components/basic/nmorph-icon/NmorphIcon.vue3.js +6 -0
- package/dist/components/basic/nmorph-layout/NmorphLayout.vue.js +53 -37
- package/dist/components/basic/nmorph-layout/NmorphLayout.vue3.js +6 -0
- package/dist/components/basic/nmorph-link/NmorphLink.vue.js +82 -58
- package/dist/components/basic/nmorph-link/NmorphLink.vue3.js +6 -0
- package/dist/components/basic/nmorph-scroll/NmorphScroll.vue.js +217 -84
- package/dist/components/basic/nmorph-scroll/NmorphScroll.vue3.js +6 -0
- package/dist/components/basic/nmorph-space/NmorphSpace.vue.js +45 -18
- package/dist/components/basic/nmorph-space/NmorphSpace.vue3.js +6 -0
- package/dist/components/data/nmorph-audio-meter/NmorphAudioMeter.vue.js +41 -37
- package/dist/components/data/nmorph-audio-meter/NmorphAudioMeter.vue3.js +6 -0
- package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.css +1 -1
- package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.vue.js +202 -128
- package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.vue3.js +6 -0
- package/dist/components/data/nmorph-avatar/NmorphAvatar.vue.js +116 -82
- package/dist/components/data/nmorph-avatar/NmorphAvatar.vue3.js +6 -0
- package/dist/components/data/nmorph-badge/NmorphBadge.vue.js +139 -105
- package/dist/components/data/nmorph-badge/NmorphBadge.vue3.js +6 -0
- package/dist/components/data/nmorph-calendar/NmorphCalendar.vue.js +183 -93
- package/dist/components/data/nmorph-calendar/NmorphCalendar.vue3.js +6 -0
- package/dist/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue.js +52 -49
- package/dist/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue3.js +6 -0
- package/dist/components/data/nmorph-card/NmorphCard.vue.js +56 -35
- package/dist/components/data/nmorph-card/NmorphCard.vue3.js +6 -0
- package/dist/components/data/nmorph-carousel/NmorphCarousel.vue.js +67 -75
- package/dist/components/data/nmorph-carousel/NmorphCarousel.vue2.js +2 -39
- package/dist/components/data/nmorph-carousel/components/nmorph-carousel-item/NmorphCarouselItem.vue.js +29 -20
- package/dist/components/data/nmorph-carousel/components/nmorph-carousel-item/NmorphCarouselItem.vue2.js +2 -26
- package/dist/components/data/nmorph-collapse/NmorphCollapse.vue.js +41 -18
- package/dist/components/data/nmorph-collapse/NmorphCollapse.vue2.js +2 -38
- package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.js +73 -61
- package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue3.js +6 -0
- package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue.js +386 -211
- package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue3.js +6 -0
- package/dist/components/data/nmorph-empty/NmorphEmpty.vue.js +74 -54
- package/dist/components/data/nmorph-empty/NmorphEmpty.vue3.js +6 -0
- package/dist/components/data/nmorph-file-card/NmorphFileCard.css +1 -1
- package/dist/components/data/nmorph-file-card/NmorphFileCard.vue.js +265 -200
- package/dist/components/data/nmorph-file-card/NmorphFileCard.vue3.js +6 -0
- package/dist/components/data/nmorph-image/NmorphImage.vue.js +52 -43
- package/dist/components/data/nmorph-image/NmorphImage.vue3.js +6 -0
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue.js +246 -160
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue3.js +6 -0
- package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.css +1 -1
- package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.vue.js +433 -277
- package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.vue3.js +6 -0
- package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue.js +109 -86
- package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue3.js +6 -0
- package/dist/components/data/nmorph-pagination/NmorphPagination.vue.js +113 -72
- package/dist/components/data/nmorph-pagination/NmorphPagination.vue3.js +6 -0
- package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue.js +102 -106
- package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue3.js +6 -0
- package/dist/components/data/nmorph-progress/NmorphProgress.vue.js +81 -65
- package/dist/components/data/nmorph-progress/NmorphProgress.vue3.js +6 -0
- package/dist/components/data/nmorph-qr-code/NmorphQRCode.vue.js +69 -44
- package/dist/components/data/nmorph-qr-code/NmorphQRCode.vue3.js +6 -0
- package/dist/components/data/nmorph-skeleton/NmorphSkeleton.vue.js +48 -55
- package/dist/components/data/nmorph-skeleton/NmorphSkeleton.vue3.js +6 -0
- package/dist/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue.js +34 -28
- package/dist/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue3.js +6 -0
- package/dist/components/data/nmorph-table/NmorphTable.vue.js +219 -282
- package/dist/components/data/nmorph-table/NmorphTable.vue3.js +6 -0
- package/dist/components/data/nmorph-table/components/nmorph-table-cell/NmorphTableCell.vue.js +26 -19
- package/dist/components/data/nmorph-table/components/nmorph-table-cell/NmorphTableCell.vue2.js +2 -24
- package/dist/components/data/nmorph-table/components/nmorph-table-column/NmorphTableColumn.vue.js +37 -17
- package/dist/components/data/nmorph-table/components/nmorph-table-column/NmorphTableColumn.vue2.js +2 -29
- package/dist/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.vue.js +42 -34
- package/dist/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.vue3.js +6 -0
- package/dist/components/data/nmorph-tag-list/NmorphTagList.vue.js +80 -67
- package/dist/components/data/nmorph-tag-list/NmorphTagList.vue3.js +6 -0
- package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue.js +103 -37
- package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue3.js +6 -0
- package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.vue.js +272 -196
- package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.vue3.js +6 -0
- package/dist/components/data/nmorph-virtual-list/NmorphVirtualList.vue.js +94 -80
- package/dist/components/data/nmorph-virtual-list/NmorphVirtualList.vue3.js +6 -0
- package/dist/components/feedback/nmorph-alert/NmorphAlert.vue.js +79 -56
- package/dist/components/feedback/nmorph-alert/NmorphAlert.vue3.js +6 -0
- package/dist/components/feedback/nmorph-callout/NmorphCallout.vue.js +79 -37
- package/dist/components/feedback/nmorph-callout/NmorphCallout.vue3.js +6 -0
- package/dist/components/feedback/nmorph-dialog/NmorphDialog.vue.js +98 -59
- package/dist/components/feedback/nmorph-dialog/NmorphDialog.vue3.js +6 -0
- package/dist/components/feedback/nmorph-drawer/NmorphDrawer.vue.js +92 -74
- package/dist/components/feedback/nmorph-drawer/NmorphDrawer.vue3.js +6 -0
- package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue.js +180 -126
- package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue3.js +6 -0
- package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.js +197 -145
- package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue3.js +6 -0
- package/dist/components/form/nmorph-checkbox/NmorphCheckbox.vue.js +94 -72
- package/dist/components/form/nmorph-checkbox/NmorphCheckbox.vue3.js +6 -0
- package/dist/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue.js +59 -37
- package/dist/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue3.js +6 -0
- package/dist/components/form/nmorph-color-picker/NmorphColorPicker.vue.js +98 -49
- package/dist/components/form/nmorph-color-picker/NmorphColorPicker.vue3.js +6 -0
- package/dist/components/form/nmorph-date-picker/NmorphDatePicker.vue.js +142 -77
- package/dist/components/form/nmorph-date-picker/NmorphDatePicker.vue3.js +6 -0
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-clear-button/NmorphClearButton.vue.js +25 -22
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-clear-button/NmorphClearButton.vue2.js +2 -22
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-content/NmorphDatePickerContent.vue.js +81 -45
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-content/NmorphDatePickerContent.vue2.js +2 -51
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/NmorphDatePickerHeader.vue.js +54 -52
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/NmorphDatePickerHeader.vue3.js +6 -0
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.vue.js +93 -46
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.vue3.js +6 -0
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue.js +204 -129
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue3.js +6 -0
- package/dist/components/form/nmorph-form/NmorphForm.vue.js +23 -19
- package/dist/components/form/nmorph-form/NmorphForm.vue2.js +2 -21
- package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.js +64 -32
- package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue3.js +6 -0
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue.js +33 -37
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue3.js +6 -0
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/NmorphValidationIcon.vue.js +32 -26
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/NmorphValidationIcon.vue3.js +6 -0
- package/dist/components/form/nmorph-number-input/NmorphNumberInput.vue.js +135 -87
- package/dist/components/form/nmorph-number-input/NmorphNumberInput.vue3.js +6 -0
- package/dist/components/form/nmorph-otp-input/NmorphOTPInput.vue.js +191 -66
- package/dist/components/form/nmorph-otp-input/NmorphOTPInput.vue3.js +6 -0
- package/dist/components/form/nmorph-radio/NmorphRadio.vue.js +73 -72
- package/dist/components/form/nmorph-radio/NmorphRadio.vue3.js +6 -0
- package/dist/components/form/nmorph-radio-group/NmorphRadioGroup.vue.js +51 -37
- package/dist/components/form/nmorph-radio-group/NmorphRadioGroup.vue3.js +6 -0
- package/dist/components/form/nmorph-select/NmorphSelect.vue.js +276 -194
- package/dist/components/form/nmorph-select/NmorphSelect.vue3.js +6 -0
- package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue.js +70 -38
- package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue3.js +6 -0
- package/dist/components/form/nmorph-select-button/NmorphSelectButton.vue.js +66 -41
- package/dist/components/form/nmorph-select-button/NmorphSelectButton.vue3.js +6 -0
- package/dist/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.vue.js +52 -29
- package/dist/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.vue3.js +6 -0
- package/dist/components/form/nmorph-slider/NmorphSlider.vue.js +133 -68
- package/dist/components/form/nmorph-slider/NmorphSlider.vue3.js +6 -0
- package/dist/components/form/nmorph-switch/NmorphSwitch.vue.js +92 -50
- package/dist/components/form/nmorph-switch/NmorphSwitch.vue3.js +6 -0
- package/dist/components/form/nmorph-text-input/NmorphTextInput.vue.js +101 -54
- package/dist/components/form/nmorph-text-input/NmorphTextInput.vue3.js +6 -0
- package/dist/components/form/nmorph-textarea/NmorphTextarea.vue.js +94 -37
- package/dist/components/form/nmorph-textarea/NmorphTextarea.vue3.js +6 -0
- package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue.js +205 -150
- package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue3.js +6 -0
- package/dist/components/navigation/nmorph-backtop/NmorphBacktop.vue.js +92 -55
- package/dist/components/navigation/nmorph-backtop/NmorphBacktop.vue3.js +6 -0
- package/dist/components/navigation/nmorph-breadcrumb/NmorphBreadcrumb.vue.js +35 -43
- package/dist/components/navigation/nmorph-breadcrumb/NmorphBreadcrumb.vue3.js +6 -0
- package/dist/components/navigation/nmorph-breadcrumb/components/nmorph-breadcrumb-item/NmorphBreadcrumbItem.vue.js +41 -33
- package/dist/components/navigation/nmorph-breadcrumb/components/nmorph-breadcrumb-item/NmorphBreadcrumbItem.vue2.js +2 -24
- package/dist/components/navigation/nmorph-context-menu/NmorphContextMenu.vue.js +251 -163
- package/dist/components/navigation/nmorph-context-menu/NmorphContextMenu.vue3.js +6 -0
- package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.vue.js +92 -34
- package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.vue3.js +6 -0
- package/dist/components/navigation/nmorph-tabs/NmorphTabs.vue.js +58 -67
- package/dist/components/navigation/nmorph-tabs/NmorphTabs.vue3.js +6 -0
- package/dist/components/navigation/nmorph-tabs/components/nmorph-tab-pane/NmorphTabPane.vue.js +34 -23
- package/dist/components/navigation/nmorph-tabs/components/nmorph-tab-pane/NmorphTabPane.vue2.js +2 -30
- package/dist/components/others/nmorph-divider/NmorphDivider.vue.js +18 -16
- package/dist/components/others/nmorph-divider/NmorphDivider.vue3.js +6 -0
- package/dist/components/others/nmorph-overlay/NmorphOverlay.vue.js +98 -49
- package/dist/components/others/nmorph-overlay/NmorphOverlay.vue3.js +6 -0
- package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.js +131 -89
- package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue3.js +6 -0
- package/dist/icons.js +642 -641
- package/dist/index.es.js +928 -865
- package/dist/index.umd.js +34 -34
- package/dist/package.json.js +1 -1
- package/dist/src/components/data/nmorph-audio-preview/NmorphAudioPreview.vue.d.ts +1 -0
- package/dist/src/components/data/nmorph-audio-preview/types.d.ts +1 -0
- package/dist/src/components/data/nmorph-file-card/NmorphFileCard.vue.d.ts +12 -1
- package/dist/src/components/data/nmorph-file-card/types.d.ts +5 -0
- package/dist/src/components/data/nmorph-media-gallery/NmorphMediaGallery.vue.d.ts +9 -0
- package/dist/src/components/data/nmorph-media-gallery/types.d.ts +9 -0
- package/dist/src/components/data/nmorph-video-preview/NmorphVideoPreview.vue.d.ts +1 -0
- package/dist/src/components/data/nmorph-video-preview/types.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/_virtual/_plugin-vue_export-helper.js +0 -9
- package/dist/components/basic/nmorph-button/NmorphButton.vue2.js +0 -69
- package/dist/components/basic/nmorph-icon/NmorphIcon.vue2.js +0 -31
- package/dist/components/basic/nmorph-layout/NmorphLayout.vue2.js +0 -31
- package/dist/components/basic/nmorph-link/NmorphLink.vue2.js +0 -56
- package/dist/components/basic/nmorph-scroll/NmorphScroll.vue2.js +0 -195
- package/dist/components/basic/nmorph-space/NmorphSpace.vue2.js +0 -41
- package/dist/components/data/nmorph-audio-meter/NmorphAudioMeter.vue2.js +0 -30
- package/dist/components/data/nmorph-audio-preview/NmorphAudioPreview.vue2.js +0 -115
- package/dist/components/data/nmorph-avatar/NmorphAvatar.vue2.js +0 -74
- package/dist/components/data/nmorph-badge/NmorphBadge.vue2.js +0 -96
- package/dist/components/data/nmorph-calendar/NmorphCalendar.vue2.js +0 -139
- package/dist/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue2.js +0 -41
- package/dist/components/data/nmorph-card/NmorphCard.vue2.js +0 -42
- package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue2.js +0 -59
- package/dist/components/data/nmorph-emoji-picker/NmorphEmojiPicker.vue2.js +0 -254
- package/dist/components/data/nmorph-empty/NmorphEmpty.vue2.js +0 -48
- package/dist/components/data/nmorph-file-card/NmorphFileCard.vue2.js +0 -109
- package/dist/components/data/nmorph-image/NmorphImage.vue2.js +0 -37
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue2.js +0 -152
- package/dist/components/data/nmorph-media-gallery/NmorphMediaGallery.vue2.js +0 -223
- package/dist/components/data/nmorph-media-tile/NmorphMediaTile.vue2.js +0 -78
- package/dist/components/data/nmorph-pagination/NmorphPagination.vue2.js +0 -77
- package/dist/components/data/nmorph-preview-portal/NmorphPreviewPortal.vue2.js +0 -49
- package/dist/components/data/nmorph-progress/NmorphProgress.vue2.js +0 -47
- package/dist/components/data/nmorph-qr-code/NmorphQRCode.vue2.js +0 -55
- package/dist/components/data/nmorph-skeleton/NmorphSkeleton.vue2.js +0 -32
- package/dist/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue2.js +0 -30
- package/dist/components/data/nmorph-table/NmorphTable.vue2.js +0 -99
- package/dist/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.vue2.js +0 -34
- package/dist/components/data/nmorph-tag-list/NmorphTagList.vue2.js +0 -58
- package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue2.js +0 -101
- package/dist/components/data/nmorph-video-preview/NmorphVideoPreview.vue2.js +0 -134
- package/dist/components/data/nmorph-virtual-list/NmorphVirtualList.vue2.js +0 -63
- package/dist/components/feedback/nmorph-alert/NmorphAlert.vue2.js +0 -56
- package/dist/components/feedback/nmorph-callout/NmorphCallout.vue2.js +0 -61
- package/dist/components/feedback/nmorph-dialog/NmorphDialog.vue2.js +0 -73
- package/dist/components/feedback/nmorph-drawer/NmorphDrawer.vue2.js +0 -50
- package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue2.js +0 -121
- package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue2.js +0 -115
- package/dist/components/form/nmorph-checkbox/NmorphCheckbox.vue2.js +0 -57
- package/dist/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue2.js +0 -51
- package/dist/components/form/nmorph-color-picker/NmorphColorPicker.vue2.js +0 -77
- package/dist/components/form/nmorph-date-picker/NmorphDatePicker.vue2.js +0 -102
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/NmorphDatePickerHeader.vue2.js +0 -38
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.vue2.js +0 -77
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue2.js +0 -139
- package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue2.js +0 -54
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue2.js +0 -28
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/NmorphValidationIcon.vue2.js +0 -27
- package/dist/components/form/nmorph-number-input/NmorphNumberInput.vue2.js +0 -82
- package/dist/components/form/nmorph-otp-input/NmorphOTPInput.vue2.js +0 -151
- package/dist/components/form/nmorph-radio/NmorphRadio.vue2.js +0 -38
- package/dist/components/form/nmorph-radio-group/NmorphRadioGroup.vue2.js +0 -43
- package/dist/components/form/nmorph-select/NmorphSelect.vue2.js +0 -176
- package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue2.js +0 -56
- package/dist/components/form/nmorph-select-button/NmorphSelectButton.vue2.js +0 -58
- package/dist/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.vue2.js +0 -35
- package/dist/components/form/nmorph-slider/NmorphSlider.vue2.js +0 -95
- package/dist/components/form/nmorph-switch/NmorphSwitch.vue2.js +0 -72
- package/dist/components/form/nmorph-text-input/NmorphTextInput.vue2.js +0 -67
- package/dist/components/form/nmorph-textarea/NmorphTextarea.vue2.js +0 -73
- package/dist/components/form/nmorph-time-picker/NmorphTimePicker.vue2.js +0 -124
- package/dist/components/navigation/nmorph-backtop/NmorphBacktop.vue2.js +0 -67
- package/dist/components/navigation/nmorph-breadcrumb/NmorphBreadcrumb.vue2.js +0 -24
- package/dist/components/navigation/nmorph-context-menu/NmorphContextMenu.vue2.js +0 -164
- package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.vue2.js +0 -73
- package/dist/components/navigation/nmorph-tabs/NmorphTabs.vue2.js +0 -39
- package/dist/components/others/nmorph-divider/NmorphDivider.vue2.js +0 -21
- package/dist/components/others/nmorph-overlay/NmorphOverlay.vue2.js +0 -79
- package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue2.js +0 -100
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import './NmorphContextMenu.css';
|
|
2
|
-
import { defineComponent as Z, ref as n, computed as c, markRaw as M, toRaw as H, watch as B, onBeforeUnmount as ee } from "vue";
|
|
3
|
-
import te from "../nmorph-dropdown/NmorphDropdown.vue.js";
|
|
4
|
-
import re from "../../basic/nmorph-icon/NmorphIcon.vue.js";
|
|
5
|
-
const D = 600, T = 8, ae = /* @__PURE__ */ Z({
|
|
6
|
-
__name: "NmorphContextMenu",
|
|
7
|
-
props: {
|
|
8
|
-
modelValue: { type: [Boolean, null], required: !1, default: null },
|
|
9
|
-
options: { type: Array, required: !1, default: () => [] },
|
|
10
|
-
trigger: { type: String, required: !1, default: "contextmenu" },
|
|
11
|
-
placement: { type: null, required: !1, default: "bottom-start" },
|
|
12
|
-
width: { type: [Number, String], required: !1, default: "max-content" },
|
|
13
|
-
minWidth: { type: [Number, String], required: !1, default: void 0 },
|
|
14
|
-
maxWidth: { type: [Number, String], required: !1, default: void 0 },
|
|
15
|
-
xOffset: { type: Number, required: !1, default: 0 },
|
|
16
|
-
yOffset: { type: Number, required: !1, default: 0 },
|
|
17
|
-
fillWidth: { type: Boolean, required: !1, default: !1 },
|
|
18
|
-
zIndex: { type: Number, required: !1, default: void 0 },
|
|
19
|
-
closeOnEscape: { type: Boolean, required: !1, default: !0 },
|
|
20
|
-
trapFocus: { type: Boolean, required: !1, default: !1 },
|
|
21
|
-
disabled: { type: Boolean, required: !1, default: !1 },
|
|
22
|
-
closeOnScroll: { type: Boolean, required: !1, default: !0 },
|
|
23
|
-
role: { type: String, required: !1, default: "menu" },
|
|
24
|
-
ariaLabel: { type: String, required: !1, default: "" },
|
|
25
|
-
hideShadow: { type: Boolean, required: !1, default: !1 },
|
|
26
|
-
mobileMode: { type: String, required: !1, default: "dropdown" }
|
|
27
|
-
},
|
|
28
|
-
emits: ["update:model-value", "open", "close", "select", "on-outside-click", "on-escape-keydown"],
|
|
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), h = n(!1), f = n(null), v = 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
|
-
() => r.options.map((e, t) => typeof e == "string" || typeof e == "number" ? {
|
|
32
|
-
key: `${e}-${t}`,
|
|
33
|
-
type: "item",
|
|
34
|
-
label: e,
|
|
35
|
-
value: e,
|
|
36
|
-
disabled: !1,
|
|
37
|
-
closeOnClick: !0,
|
|
38
|
-
raw: e
|
|
39
|
-
} : {
|
|
40
|
-
key: `${String(e.value ?? e.label ?? t)}-${t}`,
|
|
41
|
-
type: e.type ?? "item",
|
|
42
|
-
label: e.label,
|
|
43
|
-
value: e.value ?? e.label ?? t,
|
|
44
|
-
icon: e.icon ? M(H(e.icon)) : void 0,
|
|
45
|
-
iconProps: e.iconProps,
|
|
46
|
-
shortcut: e.shortcut,
|
|
47
|
-
description: e.description,
|
|
48
|
-
component: e.component ? M(H(e.component)) : void 0,
|
|
49
|
-
componentProps: e.componentProps,
|
|
50
|
-
disabled: !!e.disabled,
|
|
51
|
-
color: e.color,
|
|
52
|
-
closeOnClick: e.closeOnClick ?? !0,
|
|
53
|
-
raw: e
|
|
54
|
-
})
|
|
55
|
-
), A = c(
|
|
56
|
-
() => [
|
|
57
|
-
"nmorph-context-menu__dropdown",
|
|
58
|
-
r.mobileMode === "bottom-sheet" && "nmorph-context-menu__dropdown--bottom-sheet"
|
|
59
|
-
].filter(Boolean).join(" ")
|
|
60
|
-
);
|
|
61
|
-
B(
|
|
62
|
-
() => r.modelValue,
|
|
63
|
-
(e) => {
|
|
64
|
-
typeof e == "boolean" && (b.value = e);
|
|
65
|
-
}
|
|
66
|
-
);
|
|
67
|
-
const C = (e, t) => ({
|
|
68
|
-
clientWidth: 0,
|
|
69
|
-
getBoundingClientRect: () => ({
|
|
70
|
-
x: e,
|
|
71
|
-
y: t,
|
|
72
|
-
width: 0,
|
|
73
|
-
height: 0,
|
|
74
|
-
top: t,
|
|
75
|
-
left: e,
|
|
76
|
-
right: e,
|
|
77
|
-
bottom: t,
|
|
78
|
-
toJSON: () => ({})
|
|
79
|
-
})
|
|
80
|
-
}), w = (e) => {
|
|
81
|
-
const t = v.value;
|
|
82
|
-
b.value = e, o("update:model-value", e), t && !e && o("close");
|
|
83
|
-
}, i = () => {
|
|
84
|
-
w(!1);
|
|
85
|
-
}, p = (e, t, l) => {
|
|
86
|
-
r.disabled || (y.value = "point", E.value = C(e, t), w(!0), o("open", l));
|
|
87
|
-
}, k = (e, t) => {
|
|
88
|
-
r.disabled || (y.value = "element", E.value = e, w(!0), o("open", t));
|
|
89
|
-
}, W = (e) => {
|
|
90
|
-
if (!r.disabled) {
|
|
91
|
-
if (r.trigger === "longpress") {
|
|
92
|
-
e.preventDefault();
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
O.value && (e.preventDefault(), p(e.clientX, e.clientY, e));
|
|
96
|
-
}
|
|
97
|
-
}, N = (e) => {
|
|
98
|
-
const t = g.value;
|
|
99
|
-
if (!t) return !1;
|
|
100
|
-
if (e.target instanceof Node && t.contains(e.target)) return !0;
|
|
101
|
-
const l = t.getBoundingClientRect();
|
|
102
|
-
return e.clientX >= l.left && e.clientX <= l.right && e.clientY >= l.top && e.clientY <= l.bottom;
|
|
103
|
-
}, S = (e) => {
|
|
104
|
-
!v.value || r.disabled || !O.value || N(e) && (e.preventDefault(), e.stopPropagation(), p(e.clientX, e.clientY, e));
|
|
105
|
-
}, $ = (e) => {
|
|
106
|
-
if (h.value) {
|
|
107
|
-
m(), e.preventDefault();
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
if (r.disabled || r.trigger !== "click" && r.trigger !== "both" || e.button !== 0) return;
|
|
111
|
-
const t = e.currentTarget instanceof HTMLElement ? e.currentTarget : g.value;
|
|
112
|
-
t && k(t, e);
|
|
113
|
-
}, j = (e) => {
|
|
114
|
-
if (r.disabled || r.trigger === "manual" || e.key !== "ContextMenu" && !(e.shiftKey && e.key === "F10"))
|
|
115
|
-
return;
|
|
116
|
-
const t = e.target instanceof HTMLElement ? e.target : g.value;
|
|
117
|
-
t && (e.preventDefault(), k(t, e));
|
|
118
|
-
}, z = () => {
|
|
119
|
-
o("on-outside-click"), i();
|
|
120
|
-
}, F = () => {
|
|
121
|
-
o("on-escape-keydown"), i();
|
|
122
|
-
}, q = (e, t) => {
|
|
123
|
-
e.disabled || (o("select", e.raw, t), e.closeOnClick && i());
|
|
124
|
-
}, G = (e, t, l) => {
|
|
125
|
-
e.key !== "Enter" && e.key !== " " || (e.preventDefault(), q(t, l));
|
|
126
|
-
}, s = () => {
|
|
127
|
-
a.value && clearTimeout(a.value), a.value = null, d.value = null, u.value = null;
|
|
128
|
-
}, m = () => {
|
|
129
|
-
f.value && clearTimeout(f.value), h.value = !1, f.value = null;
|
|
130
|
-
}, P = () => {
|
|
131
|
-
m(), h.value = !0, f.value = setTimeout(m, 700);
|
|
132
|
-
}, K = (e) => {
|
|
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
|
-
P(), s(), p(e.clientX, e.clientY, e);
|
|
135
|
-
}, D));
|
|
136
|
-
}, J = (e) => {
|
|
137
|
-
if (!a.value || d.value !== e.pointerId || !u.value) return;
|
|
138
|
-
const t = Math.abs(e.clientX - u.value.x), l = Math.abs(e.clientY - u.value.y);
|
|
139
|
-
(t > T || l > T) && s();
|
|
140
|
-
}, U = (e) => {
|
|
141
|
-
d.value === e.pointerId && s();
|
|
142
|
-
}, Q = (e) => ({
|
|
143
|
-
"--nmorph-context-menu-item-color": e.color
|
|
144
|
-
}), _ = () => {
|
|
145
|
-
r.closeOnScroll && y.value === "point" && i();
|
|
146
|
-
};
|
|
147
|
-
B(
|
|
148
|
-
v,
|
|
149
|
-
(e) => {
|
|
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
|
-
},
|
|
152
|
-
{ immediate: !0 }
|
|
153
|
-
), ee(() => {
|
|
154
|
-
typeof window < "u" && window.removeEventListener("scroll", _, !0), typeof document < "u" && document.removeEventListener("contextmenu", S, !0), s(), m();
|
|
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: h, suppressNextClickTimer: f, isOpen: v, 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
|
-
return re;
|
|
158
|
-
} };
|
|
159
|
-
return Object.defineProperty(L, "__isScriptSetup", { enumerable: !1, value: !0 }), L;
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
export {
|
|
163
|
-
ae as default
|
|
164
|
-
};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import './NmorphDropdown.css';
|
|
2
|
-
import { defineComponent as y, ref as v, toRef as t, computed as i, watch as w } from "vue";
|
|
3
|
-
import { useModifiers as q } from "../../../utils/create-modifiers.js";
|
|
4
|
-
import { toCssSize as b, createCssSizeVariables as x } from "../../../utils/common.js";
|
|
5
|
-
import { usePlacement as S } from "../../../hooks/use-placement.js";
|
|
6
|
-
import O from "../../others/nmorph-overlay/NmorphOverlay.vue.js";
|
|
7
|
-
const B = /* @__PURE__ */ y({
|
|
8
|
-
__name: "NmorphDropdown",
|
|
9
|
-
props: {
|
|
10
|
-
open: { type: Boolean, required: !0 },
|
|
11
|
-
relativeElement: { type: null, required: !0 },
|
|
12
|
-
placement: { type: null, required: !1, default: "bottom" },
|
|
13
|
-
width: { type: [Number, String], required: !1, default: 160 },
|
|
14
|
-
minWidth: { type: [Number, String], required: !1, default: void 0 },
|
|
15
|
-
maxWidth: { type: [Number, String], required: !1, default: void 0 },
|
|
16
|
-
xOffset: { type: Number, required: !1, default: 0 },
|
|
17
|
-
yOffset: { type: Number, required: !1, default: 0 },
|
|
18
|
-
fillWidth: { type: Boolean, required: !1, default: !0 },
|
|
19
|
-
zIndex: { type: Number, required: !1, default: void 0 },
|
|
20
|
-
closeOnEscape: { type: Boolean, required: !1, default: !0 },
|
|
21
|
-
trapFocus: { type: Boolean, required: !1, default: !1 },
|
|
22
|
-
restoreFocus: { type: Boolean, required: !1, default: !0 },
|
|
23
|
-
role: { type: String, required: !1, default: "listbox" },
|
|
24
|
-
ariaLabel: { type: String, required: !1, default: "" },
|
|
25
|
-
contentClass: { type: String, required: !1, default: "" },
|
|
26
|
-
hideShadow: { type: Boolean, required: !1, default: !1 }
|
|
27
|
-
},
|
|
28
|
-
emits: ["on-outside-click", "on-escape-keydown"],
|
|
29
|
-
setup(u, { expose: p, emit: f }) {
|
|
30
|
-
p();
|
|
31
|
-
const e = u, r = f, l = v(null), { placementCoords: o, placementReady: d, adjustPlacement: a } = S({
|
|
32
|
-
initialPlacement: t(e, "placement"),
|
|
33
|
-
contentDOMElement: l,
|
|
34
|
-
relativeElement: t(e, "relativeElement"),
|
|
35
|
-
yOffset: t(e, "yOffset"),
|
|
36
|
-
xOffset: t(e, "xOffset"),
|
|
37
|
-
enabled: t(e, "open")
|
|
38
|
-
}), m = i(
|
|
39
|
-
() => q({
|
|
40
|
-
"nmorph-dropdown": [!e.open && "closed", e.hideShadow && "hide-shadow"]
|
|
41
|
-
})
|
|
42
|
-
), n = i(
|
|
43
|
-
() => e.fillWidth && e.relativeElement ? `${e.relativeElement.clientWidth}px` : b(e.width)
|
|
44
|
-
), c = i(() => ({
|
|
45
|
-
"--nmorph-dropdown-width": n.value,
|
|
46
|
-
...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
|
|
49
|
-
}),
|
|
50
|
-
left: o.value.x,
|
|
51
|
-
top: o.value.y,
|
|
52
|
-
visibility: e.open && d.value ? "visible" : "hidden"
|
|
53
|
-
}));
|
|
54
|
-
w(
|
|
55
|
-
() => e.open,
|
|
56
|
-
(h) => {
|
|
57
|
-
h && a();
|
|
58
|
-
},
|
|
59
|
-
{ flush: "post" }
|
|
60
|
-
);
|
|
61
|
-
const s = { props: e, emit: r, dropdownDOMRef: l, placementCoords: o, placementReady: d, adjustPlacement: a, modifiers: m, width: n, dropdownStyle: c, outsideClickHandler: () => {
|
|
62
|
-
r("on-outside-click");
|
|
63
|
-
}, escapeHandler: () => {
|
|
64
|
-
r("on-escape-keydown");
|
|
65
|
-
}, get NmorphOverlay() {
|
|
66
|
-
return O;
|
|
67
|
-
} };
|
|
68
|
-
return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
export {
|
|
72
|
-
B as default
|
|
73
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import './NmorphTabs.css';
|
|
2
|
-
import { defineComponent as b, computed as p, ref as g, provide as h, useSlots as _ } from "vue";
|
|
3
|
-
import { useModifiers as I } from "../../../utils/create-modifiers.js";
|
|
4
|
-
import { generateUUID as T } from "../../../utils/common.js";
|
|
5
|
-
import { getTabContentId as v, getTabLabelId as y } from "./utils.js";
|
|
6
|
-
const D = /* @__PURE__ */ b({
|
|
7
|
-
__name: "NmorphTabs",
|
|
8
|
-
props: {
|
|
9
|
-
modelValue: { type: [String, Number], required: !1, default: 0 },
|
|
10
|
-
stretch: { type: Boolean, required: !1, default: !1 },
|
|
11
|
-
panes: { type: Array, required: !1, default: () => [] }
|
|
12
|
-
},
|
|
13
|
-
emits: ["update:model-value", "tab-change"],
|
|
14
|
-
setup(u, { expose: d, emit: i }) {
|
|
15
|
-
d();
|
|
16
|
-
const e = u, t = i, l = p(
|
|
17
|
-
() => I({
|
|
18
|
-
"nmorph-tabs": [e.stretch && "stretch"]
|
|
19
|
-
})
|
|
20
|
-
), m = (n) => {
|
|
21
|
-
if (n.disabled) return;
|
|
22
|
-
const { name: o } = n;
|
|
23
|
-
t("update:model-value", o), t("tab-change", o);
|
|
24
|
-
}, r = g([]), a = T();
|
|
25
|
-
h("nmorph-tabs-data", {
|
|
26
|
-
tabsData: r,
|
|
27
|
-
tabsIdentifier: a
|
|
28
|
-
});
|
|
29
|
-
const c = p(() => e.panes.length > 0 ? e.panes : r.value), f = _(), s = { props: e, emit: t, modifiers: l, changeTab: m, tabsData: r, tabsIdentifier: a, updatedPanes: c, slots: f, get getTabLabelId() {
|
|
30
|
-
return y;
|
|
31
|
-
}, get getTabContentId() {
|
|
32
|
-
return v;
|
|
33
|
-
} };
|
|
34
|
-
return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
export {
|
|
38
|
-
D as default
|
|
39
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import './NmorphDivider.css';
|
|
2
|
-
import { defineComponent as n, computed as p } from "vue";
|
|
3
|
-
import { useModifiers as s } from "../../../utils/create-modifiers.js";
|
|
4
|
-
const u = /* @__PURE__ */ n({
|
|
5
|
-
__name: "NmorphDivider",
|
|
6
|
-
props: {
|
|
7
|
-
direction: { type: String, required: !1, default: "horizontal" }
|
|
8
|
-
},
|
|
9
|
-
setup(o, { expose: t }) {
|
|
10
|
-
t();
|
|
11
|
-
const e = o, i = p(
|
|
12
|
-
() => s({
|
|
13
|
-
"nmorph-divider": [e.direction]
|
|
14
|
-
})
|
|
15
|
-
), r = { props: e, modifiers: i };
|
|
16
|
-
return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
export {
|
|
20
|
-
u as default
|
|
21
|
-
};
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import './NmorphOverlay.css';
|
|
2
|
-
import { defineComponent as _, computed as i, ref as q, watch as g, onBeforeUnmount as B, nextTick as A } from "vue";
|
|
3
|
-
import { useModifiers as F } from "../../../utils/create-modifiers.js";
|
|
4
|
-
import { useZIndex as I } from "../../../hooks/use-z-index.js";
|
|
5
|
-
const L = /* @__PURE__ */ _({
|
|
6
|
-
__name: "NmorphOverlay",
|
|
7
|
-
props: {
|
|
8
|
-
show: { type: Boolean, required: !0 },
|
|
9
|
-
transparent: { type: Boolean, required: !1, default: !1 },
|
|
10
|
-
zIndex: { type: Number, required: !1, default: void 0 },
|
|
11
|
-
teleportTo: { type: null, required: !1, default: "body" },
|
|
12
|
-
disabledTeleport: { type: Boolean, required: !1, default: !1 },
|
|
13
|
-
closeOnEscape: { type: Boolean, required: !1, default: !0 },
|
|
14
|
-
trapFocus: { type: Boolean, required: !1, default: !1 },
|
|
15
|
-
restoreFocus: { type: Boolean, required: !1, default: !0 }
|
|
16
|
-
},
|
|
17
|
-
emits: ["on-outside-click", "on-escape-keydown"],
|
|
18
|
-
setup(b, { expose: v, emit: h }) {
|
|
19
|
-
v();
|
|
20
|
-
const t = b, E = I(
|
|
21
|
-
i(() => t.show),
|
|
22
|
-
() => t.zIndex
|
|
23
|
-
), w = i(
|
|
24
|
-
() => F({
|
|
25
|
-
"nmorph-overlay": [t.show && "show", t.transparent && "transparent"]
|
|
26
|
-
})
|
|
27
|
-
), k = i(() => t.disabledTeleport || !t.show || typeof document > "u"), x = () => {
|
|
28
|
-
s("on-outside-click");
|
|
29
|
-
}, s = h, n = q(null);
|
|
30
|
-
let o = null;
|
|
31
|
-
const d = [
|
|
32
|
-
"a[href]",
|
|
33
|
-
"button:not([disabled])",
|
|
34
|
-
"textarea:not([disabled])",
|
|
35
|
-
"input:not([disabled])",
|
|
36
|
-
"select:not([disabled])",
|
|
37
|
-
'[tabindex]:not([tabindex="-1"])'
|
|
38
|
-
].join(","), u = () => n.value ? Array.from(n.value.querySelectorAll(d)).filter(
|
|
39
|
-
(e) => e.getAttribute("aria-hidden") !== "true"
|
|
40
|
-
) : [], c = async () => {
|
|
41
|
-
if (!t.trapFocus) return;
|
|
42
|
-
await A(), (u()[0] || n.value)?.focus();
|
|
43
|
-
}, l = (e) => {
|
|
44
|
-
if (!t.show) return;
|
|
45
|
-
if (e.key === "Escape" && t.closeOnEscape) {
|
|
46
|
-
e.preventDefault(), s("on-escape-keydown");
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
if (e.key !== "Tab" || !t.trapFocus) return;
|
|
50
|
-
const r = u();
|
|
51
|
-
if (!r.length) {
|
|
52
|
-
e.preventDefault(), n.value?.focus();
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
const m = r[0], y = r[r.length - 1];
|
|
56
|
-
e.shiftKey && document.activeElement === m ? (e.preventDefault(), y.focus()) : !e.shiftKey && document.activeElement === y && (e.preventDefault(), m.focus());
|
|
57
|
-
}, f = () => {
|
|
58
|
-
typeof document > "u" || document.addEventListener("keydown", l);
|
|
59
|
-
}, a = () => {
|
|
60
|
-
typeof document > "u" || document.removeEventListener("keydown", l);
|
|
61
|
-
};
|
|
62
|
-
g(
|
|
63
|
-
() => t.show,
|
|
64
|
-
(e) => {
|
|
65
|
-
typeof document > "u" || (e ? (o = document.activeElement, f(), c()) : (a(), t.restoreFocus && o?.focus?.(), o = null));
|
|
66
|
-
},
|
|
67
|
-
{ immediate: !0, flush: "post" }
|
|
68
|
-
), B(a);
|
|
69
|
-
const p = { props: t, zIndex: E, modifiers: w, renderInline: k, clickHandler: x, emit: s, contentRef: n, get previousActiveElement() {
|
|
70
|
-
return o;
|
|
71
|
-
}, set previousActiveElement(e) {
|
|
72
|
-
o = e;
|
|
73
|
-
}, focusableSelector: d, getFocusableElements: u, focusContent: c, keydownHandler: l, addKeydownListener: f, removeKeydownListener: a };
|
|
74
|
-
return Object.defineProperty(p, "__isScriptSetup", { enumerable: !1, value: !0 }), p;
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
export {
|
|
78
|
-
L as default
|
|
79
|
-
};
|
package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue2.js
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import './NmorphNotificationProvider.css';
|
|
2
|
-
import { defineComponent as U, ref as v, inject as $, computed as D, watch as q, onBeforeUnmount as C } from "vue";
|
|
3
|
-
import { NmorphNotificationPlacement as F } from "./types.js";
|
|
4
|
-
import G from "../../feedback/nmorph-alert/NmorphAlert.vue.js";
|
|
5
|
-
const k = 500, E = 250, Q = /* @__PURE__ */ U({
|
|
6
|
-
__name: "NmorphNotificationProvider",
|
|
7
|
-
props: {
|
|
8
|
-
notifications: { type: Array, required: !0 },
|
|
9
|
-
placement: { type: null, required: !1, default: "top-right" },
|
|
10
|
-
zIndex: { type: Number, required: !1, default: void 0 },
|
|
11
|
-
quantity: { type: Number, required: !1, default: 100 }
|
|
12
|
-
},
|
|
13
|
-
setup(O, { expose: P }) {
|
|
14
|
-
P();
|
|
15
|
-
const g = (e) => typeof e.id == "string" && e.id.length > 0, l = v([]), o = v([]), n = v([]), u = v(Date.now()), s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map();
|
|
16
|
-
let a;
|
|
17
|
-
const T = Object.values(F), m = (e) => typeof e.duration != "number" || !Number.isFinite(e.duration) ? 0 : Math.max(e.duration, 0), y = (e) => m(e) > 0, z = (e) => e.showDurationValue !== !1, _ = (e) => {
|
|
18
|
-
const t = m(e), r = d.get(e.id);
|
|
19
|
-
return !t || !r ? t : Math.max(t - (u.value - r), 0);
|
|
20
|
-
}, w = (e) => e < 1e3 ? `${Math.ceil(e)}ms` : `${Math.ceil(e / 1e3)}s`, S = (e) => w(_(e)), V = (e) => ({
|
|
21
|
-
"--nmorph-notification-provider-duration": `${m(e)}ms`
|
|
22
|
-
}), j = (e) => {
|
|
23
|
-
const t = { ...e };
|
|
24
|
-
return delete t.duration, delete t.placement, delete t.showDurationValue, delete t.width, t;
|
|
25
|
-
}, p = (e, t = !1) => {
|
|
26
|
-
const r = s.get(e);
|
|
27
|
-
r && clearTimeout(r), s.delete(e), c.delete(e), t || d.delete(e);
|
|
28
|
-
}, A = (e) => {
|
|
29
|
-
n.value = n.value.filter((t) => t.id !== e), o.value = o.value.filter((t) => t !== e), p(e);
|
|
30
|
-
}, h = (e, t = !0) => {
|
|
31
|
-
o.value.includes(e) || (p(e, !0), t && !l.value.includes(e) && (l.value = [...l.value, e]), o.value = [...o.value, e], setTimeout(() => A(e), k));
|
|
32
|
-
}, x = (e) => {
|
|
33
|
-
const t = m(e);
|
|
34
|
-
c.get(e.id) !== t && (p(e.id), t && (u.value = Date.now(), d.set(e.id, u.value), s.set(
|
|
35
|
-
e.id,
|
|
36
|
-
setTimeout(() => h(e.id), t)
|
|
37
|
-
), c.set(e.id, t)));
|
|
38
|
-
}, f = O, M = $("nmorph", void 0), B = D(
|
|
39
|
-
() => T.map((e) => {
|
|
40
|
-
const t = n.value.filter(
|
|
41
|
-
(i) => (i.placement ?? f.placement) === e
|
|
42
|
-
), r = Math.max(t.length - f.quantity, 0);
|
|
43
|
-
return {
|
|
44
|
-
placement: e,
|
|
45
|
-
notifications: t.slice(r)
|
|
46
|
-
};
|
|
47
|
-
})
|
|
48
|
-
), b = D(
|
|
49
|
-
() => n.value.some(
|
|
50
|
-
(e) => y(e) && !o.value.includes(e.id)
|
|
51
|
-
)
|
|
52
|
-
), N = () => {
|
|
53
|
-
a && (clearInterval(a), a = void 0);
|
|
54
|
-
};
|
|
55
|
-
q(
|
|
56
|
-
b,
|
|
57
|
-
(e) => {
|
|
58
|
-
if (!e) {
|
|
59
|
-
N();
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
a || (u.value = Date.now(), a = setInterval(() => {
|
|
63
|
-
u.value = Date.now();
|
|
64
|
-
}, E));
|
|
65
|
-
},
|
|
66
|
-
{ immediate: !0 }
|
|
67
|
-
), q(
|
|
68
|
-
() => f.notifications,
|
|
69
|
-
(e) => {
|
|
70
|
-
const t = e.filter(g).filter((r) => !l.value.includes(r.id));
|
|
71
|
-
n.value = n.value.map((r) => {
|
|
72
|
-
const i = t.find((I) => I.id === r.id);
|
|
73
|
-
return i ? { ...r, ...i } : r;
|
|
74
|
-
}), t.forEach((r) => {
|
|
75
|
-
n.value.some(
|
|
76
|
-
(I) => I.id === r.id
|
|
77
|
-
) || n.value.push(r);
|
|
78
|
-
}), t.forEach((r) => x(r)), n.value.filter(
|
|
79
|
-
(r) => !t.some((i) => i.id === r.id)
|
|
80
|
-
).forEach((r) => h(r.id, !1));
|
|
81
|
-
},
|
|
82
|
-
{ deep: !0, immediate: !0 }
|
|
83
|
-
);
|
|
84
|
-
const L = D(() => f.zIndex ?? (M?.zIndex.current.value ?? 1e3) + 1);
|
|
85
|
-
C(() => {
|
|
86
|
-
s.forEach((e) => clearTimeout(e)), s.clear(), c.clear(), d.clear(), N();
|
|
87
|
-
});
|
|
88
|
-
const R = { ANIMATION_DURATION: k, DURATION_TICK_INTERVAL: E, hasNotificationId: g, removedIds: l, closingIds: o, renderedNotifications: n, durationTick: u, durationTimers: s, durationById: c, durationStartedAtById: d, get durationTicker() {
|
|
89
|
-
return a;
|
|
90
|
-
}, set durationTicker(e) {
|
|
91
|
-
a = e;
|
|
92
|
-
}, placementList: T, getNotificationDuration: m, hasDurationIndicator: y, hasDurationValue: z, getNotificationRemainingDuration: _, formatNotificationDuration: w, getNotificationDurationLabel: S, getNotificationStyle: V, getNotificationAlertProps: j, clearDurationTimer: p, removeRenderedNotification: A, closeHandler: h, scheduleDurationTimer: x, props: f, nmorph: M, notificationGroups: B, hasRunningDurationIndicator: b, stopDurationTicker: N, zIndex: L, get NmorphAlert() {
|
|
93
|
-
return G;
|
|
94
|
-
} };
|
|
95
|
-
return Object.defineProperty(R, "__isScriptSetup", { enumerable: !1, value: !0 }), R;
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
export {
|
|
99
|
-
Q as default
|
|
100
|
-
};
|