@nmorph/nmorph-ui-kit 2.2.9 → 2.2.12
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/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/assets/icons/add-location.svg.js +35 -0
- package/dist/assets/icons/aim.svg.js +28 -0
- package/dist/assets/icons/alarm-clock.svg.js +28 -0
- package/dist/assets/icons/apple.svg.js +21 -0
- package/dist/assets/icons/archive.svg.js +28 -0
- package/dist/assets/icons/arrow-down.svg.js +21 -0
- package/dist/assets/icons/arrow-left.svg.js +21 -0
- package/dist/assets/icons/arrow-right.svg.js +21 -0
- package/dist/assets/icons/arrow-up.svg.js +21 -0
- package/dist/assets/icons/audio.svg.js +21 -0
- package/dist/assets/icons/avatar.svg.js +21 -0
- package/dist/assets/icons/back.svg.js +28 -0
- package/dist/assets/icons/bell-filled.svg.js +21 -0
- package/dist/assets/icons/bell.svg.js +35 -0
- package/dist/assets/icons/bicycle.svg.js +15 -0
- package/dist/assets/icons/bottom-left.svg.js +28 -0
- package/dist/assets/icons/bottom-right.svg.js +28 -0
- package/dist/assets/icons/bottom.svg.js +21 -0
- package/dist/assets/icons/burger.svg.js +21 -0
- package/dist/assets/icons/calendar.svg.js +21 -0
- package/dist/assets/icons/camera.svg.js +21 -0
- package/dist/assets/icons/caret-bottom.svg.js +21 -0
- package/dist/assets/icons/caret-left.svg.js +21 -0
- package/dist/assets/icons/caret-right.svg.js +21 -0
- package/dist/assets/icons/caret-top.svg.js +21 -0
- package/dist/assets/icons/cellphone.svg.js +21 -0
- package/dist/assets/icons/chat-dot-round.svg.js +28 -0
- package/dist/assets/icons/chat-dot-square.svg.js +28 -0
- package/dist/assets/icons/chat-line-round.svg.js +28 -0
- package/dist/assets/icons/chat-line-square.svg.js +28 -0
- package/dist/assets/icons/chat-round.svg.js +21 -0
- package/dist/assets/icons/chat-square.svg.js +21 -0
- package/dist/assets/icons/check.svg.js +21 -0
- package/dist/assets/icons/checked.svg.js +21 -0
- package/dist/assets/icons/cherry.svg.js +21 -0
- package/dist/assets/icons/chevron-double-down.svg.js +21 -0
- package/dist/assets/icons/chevron-down.svg.js +21 -0
- package/dist/assets/icons/chrome-filled.svg.js +36 -0
- package/dist/assets/icons/circle-check-filled.svg.js +21 -0
- package/dist/assets/icons/circle-check.svg.js +28 -0
- package/dist/assets/icons/circle-close-filled.svg.js +21 -0
- package/dist/assets/icons/circle-close.svg.js +28 -0
- package/dist/assets/icons/circle-plus-filled.svg.js +21 -0
- package/dist/assets/icons/circle-plus.svg.js +35 -0
- package/dist/assets/icons/clock.svg.js +35 -0
- package/dist/assets/icons/close.svg.js +21 -0
- package/dist/assets/icons/cloudy.svg.js +21 -0
- package/dist/assets/icons/code.svg.js +21 -0
- package/dist/assets/icons/coffee-cup.svg.js +21 -0
- package/dist/assets/icons/coffee.svg.js +21 -0
- package/dist/assets/icons/coin.svg.js +35 -0
- package/dist/assets/icons/collection-tag.svg.js +21 -0
- package/dist/assets/icons/collection.svg.js +28 -0
- package/dist/assets/icons/compass.svg.js +28 -0
- package/dist/assets/icons/connection.svg.js +28 -0
- package/dist/assets/icons/coordinate.svg.js +28 -0
- package/dist/assets/icons/copy-document.svg.js +28 -0
- package/dist/assets/icons/copy.svg.js +21 -0
- package/dist/assets/icons/cpu.svg.js +28 -0
- package/dist/assets/icons/credit-card.svg.js +28 -0
- package/dist/assets/icons/crop.svg.js +28 -0
- package/dist/assets/icons/cross.svg.js +21 -0
- package/dist/assets/icons/delete-filled.svg.js +21 -0
- package/dist/assets/icons/delete.svg.js +21 -0
- package/dist/assets/icons/dessert.svg.js +21 -0
- package/dist/assets/icons/discount.svg.js +28 -0
- package/dist/assets/icons/doc.svg.js +21 -0
- package/dist/assets/icons/document-add.svg.js +21 -0
- package/dist/assets/icons/document-checked.svg.js +21 -0
- package/dist/assets/icons/document-copy.svg.js +21 -0
- package/dist/assets/icons/document-delete.svg.js +21 -0
- package/dist/assets/icons/document-remove.svg.js +21 -0
- package/dist/assets/icons/document.svg.js +21 -0
- package/dist/assets/icons/download.svg.js +21 -0
- package/dist/assets/icons/edit-pen.svg.js +21 -0
- package/dist/assets/icons/edit.svg.js +28 -0
- package/dist/assets/icons/enlarge.svg.js +18 -0
- package/dist/assets/icons/error.svg.js +28 -0
- package/dist/assets/icons/exit-square.svg.js +31 -0
- package/dist/assets/icons/exit.svg.js +28 -0
- package/dist/assets/icons/expand.svg.js +21 -0
- package/dist/assets/icons/eye-blocked.svg.js +28 -0
- package/dist/assets/icons/eye.svg.js +21 -0
- package/dist/assets/icons/failed.svg.js +21 -0
- package/dist/assets/icons/files.svg.js +21 -0
- package/dist/assets/icons/film.svg.js +28 -0
- package/dist/assets/icons/filter.svg.js +21 -0
- package/dist/assets/icons/finished.svg.js +21 -0
- package/dist/assets/icons/flag.svg.js +21 -0
- package/dist/assets/icons/fold.svg.js +21 -0
- package/dist/assets/icons/folder-add.svg.js +21 -0
- package/dist/assets/icons/folder-checked.svg.js +21 -0
- package/dist/assets/icons/folder-delete.svg.js +21 -0
- package/dist/assets/icons/folder-opened.svg.js +21 -0
- package/dist/assets/icons/folder.svg.js +21 -0
- package/dist/assets/icons/food.svg.js +21 -0
- package/dist/assets/icons/fork-spoon.svg.js +21 -0
- package/dist/assets/icons/full-screen.svg.js +21 -0
- package/dist/assets/icons/goblet-full.svg.js +21 -0
- package/dist/assets/icons/gold-medal.svg.js +29 -0
- package/dist/assets/icons/goods-filled.svg.js +21 -0
- package/dist/assets/icons/goods.svg.js +21 -0
- package/dist/assets/icons/google.svg.js +42 -0
- package/dist/assets/icons/grape.svg.js +21 -0
- package/dist/assets/icons/grid.svg.js +21 -0
- package/dist/assets/icons/guide.svg.js +28 -0
- package/dist/assets/icons/handbag.svg.js +22 -0
- package/dist/assets/icons/headset.svg.js +21 -0
- package/dist/assets/icons/histogram.svg.js +21 -0
- package/dist/assets/icons/hot-water.svg.js +21 -0
- package/dist/assets/icons/house.svg.js +21 -0
- package/dist/assets/icons/ice-cream-round.svg.js +21 -0
- package/dist/assets/icons/ice-drink.svg.js +21 -0
- package/dist/assets/icons/image.svg.js +33 -0
- package/dist/assets/icons/info-filled.svg.js +21 -0
- package/dist/assets/icons/info.svg.js +28 -0
- package/dist/assets/icons/key.svg.js +21 -0
- package/dist/assets/icons/knife-fork.svg.js +21 -0
- package/dist/assets/icons/lightning.svg.js +28 -0
- package/dist/assets/icons/link.svg.js +21 -0
- package/dist/assets/icons/list.svg.js +21 -0
- package/dist/assets/icons/loader.svg.js +16 -0
- package/dist/assets/icons/loading.svg.js +32 -0
- package/dist/assets/icons/location-filled.svg.js +21 -0
- package/dist/assets/icons/location-information.svg.js +35 -0
- package/dist/assets/icons/location.svg.js +28 -0
- package/dist/assets/icons/lock.svg.js +28 -0
- package/dist/assets/icons/logo.svg.js +49 -0
- package/dist/assets/icons/lollipop.svg.js +21 -0
- package/dist/assets/icons/magic-stick.svg.js +21 -0
- package/dist/assets/icons/magnet.svg.js +21 -0
- package/dist/assets/icons/male.svg.js +35 -0
- package/dist/assets/icons/management.svg.js +21 -0
- package/dist/assets/icons/map-location.svg.js +28 -0
- package/dist/assets/icons/medal.svg.js +28 -0
- package/dist/assets/icons/memo.svg.js +36 -0
- package/dist/assets/icons/menu.svg.js +21 -0
- package/dist/assets/icons/message-box.svg.js +21 -0
- package/dist/assets/icons/message.svg.js +28 -0
- package/dist/assets/icons/mic.svg.js +21 -0
- package/dist/assets/icons/microphone.svg.js +21 -0
- package/dist/assets/icons/minus-thin.svg.js +25 -0
- package/dist/assets/icons/minus.svg.js +21 -0
- package/dist/assets/icons/money.svg.js +35 -0
- package/dist/assets/icons/monitor.svg.js +21 -0
- package/dist/assets/icons/moon.svg.js +21 -0
- package/dist/assets/icons/more-filled.svg.js +21 -0
- package/dist/assets/icons/more.svg.js +21 -0
- package/dist/assets/icons/mostly-cloudy.svg.js +21 -0
- package/dist/assets/icons/mouse.svg.js +28 -0
- package/dist/assets/icons/mug.svg.js +21 -0
- package/dist/assets/icons/mute-notification.svg.js +28 -0
- package/dist/assets/icons/mute.svg.js +28 -0
- package/dist/assets/icons/no-smoking.svg.js +21 -0
- package/dist/assets/icons/notebook.svg.js +28 -0
- package/dist/assets/icons/notification.svg.js +28 -0
- package/dist/assets/icons/office-building.svg.js +35 -0
- package/dist/assets/icons/operation.svg.js +21 -0
- package/dist/assets/icons/opportunity.svg.js +21 -0
- package/dist/assets/icons/orange.svg.js +21 -0
- package/dist/assets/icons/paperclip.svg.js +21 -0
- package/dist/assets/icons/partly-cloudy.svg.js +28 -0
- package/dist/assets/icons/pause.svg.js +21 -0
- package/dist/assets/icons/pear.svg.js +21 -0
- package/dist/assets/icons/phone-filled.svg.js +21 -0
- package/dist/assets/icons/phone.svg.js +21 -0
- package/dist/assets/icons/picture.svg.js +28 -0
- package/dist/assets/icons/pie-chart.svg.js +28 -0
- package/dist/assets/icons/place.svg.js +35 -0
- package/dist/assets/icons/platform.svg.js +21 -0
- package/dist/assets/icons/play.svg.js +21 -0
- package/dist/assets/icons/plus-thin.svg.js +25 -0
- package/dist/assets/icons/plus.svg.js +21 -0
- package/dist/assets/icons/pointer.svg.js +21 -0
- package/dist/assets/icons/position.svg.js +21 -0
- package/dist/assets/icons/postcard.svg.js +28 -0
- package/dist/assets/icons/pouring.svg.js +21 -0
- package/dist/assets/icons/present.svg.js +42 -0
- package/dist/assets/icons/price-tag.svg.js +28 -0
- package/dist/assets/icons/printer.svg.js +21 -0
- package/dist/assets/icons/promotion.svg.js +21 -0
- package/dist/assets/icons/quartz-watch.svg.js +36 -0
- package/dist/assets/icons/question-filled.svg.js +21 -0
- package/dist/assets/icons/rank.svg.js +21 -0
- package/dist/assets/icons/reading-lamp.svg.js +28 -0
- package/dist/assets/icons/reading.svg.js +28 -0
- package/dist/assets/icons/record.svg.js +21 -0
- package/dist/assets/icons/refresh-left.svg.js +21 -0
- package/dist/assets/icons/refresh-right.svg.js +21 -0
- package/dist/assets/icons/refresh.svg.js +21 -0
- package/dist/assets/icons/refrigerator.svg.js +21 -0
- package/dist/assets/icons/remove-filled.svg.js +21 -0
- package/dist/assets/icons/remove.svg.js +28 -0
- package/dist/assets/icons/right.svg.js +21 -0
- package/dist/assets/icons/rotate-left.svg.js +18 -0
- package/dist/assets/icons/rotate-right.svg.js +18 -0
- package/dist/assets/icons/scale-to-original.svg.js +21 -0
- package/dist/assets/icons/school.svg.js +35 -0
- package/dist/assets/icons/scissor.svg.js +21 -0
- package/dist/assets/icons/search.svg.js +21 -0
- package/dist/assets/icons/select.svg.js +21 -0
- package/dist/assets/icons/sell.svg.js +21 -0
- package/dist/assets/icons/semi-select.svg.js +21 -0
- package/dist/assets/icons/service.svg.js +21 -0
- package/dist/assets/icons/setting.svg.js +21 -0
- package/dist/assets/icons/share.svg.js +21 -0
- package/dist/assets/icons/ship.svg.js +21 -0
- package/dist/assets/icons/shop.svg.js +21 -0
- package/dist/assets/icons/shopping-bag.svg.js +28 -0
- package/dist/assets/icons/shopping-cart-full.svg.js +28 -0
- package/dist/assets/icons/shopping-cart.svg.js +21 -0
- package/dist/assets/icons/shrink.svg.js +18 -0
- package/dist/assets/icons/smoking.svg.js +28 -0
- package/dist/assets/icons/soccer.svg.js +21 -0
- package/dist/assets/icons/sold-out.svg.js +21 -0
- package/dist/assets/icons/sort-down.svg.js +21 -0
- package/dist/assets/icons/sort-up.svg.js +21 -0
- package/dist/assets/icons/sort.svg.js +21 -0
- package/dist/assets/icons/stamp.svg.js +21 -0
- package/dist/assets/icons/star-filled.svg.js +21 -0
- package/dist/assets/icons/star.svg.js +21 -0
- package/dist/assets/icons/stop.svg.js +21 -0
- package/dist/assets/icons/success-filled.svg.js +21 -0
- package/dist/assets/icons/success.svg.js +21 -0
- package/dist/assets/icons/sugar.svg.js +21 -0
- package/dist/assets/icons/sunny.svg.js +21 -0
- package/dist/assets/icons/sunrise.svg.js +21 -0
- package/dist/assets/icons/sunset.svg.js +21 -0
- package/dist/assets/icons/switch-button.svg.js +28 -0
- package/dist/assets/icons/switch-filled.svg.js +29 -0
- package/dist/assets/icons/switch.svg.js +21 -0
- package/dist/assets/icons/takeaway-box.svg.js +21 -0
- package/dist/assets/icons/ticket.svg.js +21 -0
- package/dist/assets/icons/tickets.svg.js +21 -0
- package/dist/assets/icons/time.svg.js +18 -0
- package/dist/assets/icons/timer.svg.js +35 -0
- package/dist/assets/icons/toilet-paper.svg.js +28 -0
- package/dist/assets/icons/tools.svg.js +21 -0
- package/dist/assets/icons/top-left.svg.js +28 -0
- package/dist/assets/icons/top-right.svg.js +28 -0
- package/dist/assets/icons/top.svg.js +21 -0
- package/dist/assets/icons/trend-charts.svg.js +21 -0
- package/dist/assets/icons/triangle-down.svg.js +21 -0
- package/dist/assets/icons/trophy-base.svg.js +22 -0
- package/dist/assets/icons/trophy.svg.js +21 -0
- package/dist/assets/icons/turn-off.svg.js +28 -0
- package/dist/assets/icons/umbrella.svg.js +21 -0
- package/dist/assets/icons/unlock.svg.js +28 -0
- package/dist/assets/icons/upload-filled.svg.js +21 -0
- package/dist/assets/icons/upload.svg.js +21 -0
- package/dist/assets/icons/user-filled.svg.js +21 -0
- package/dist/assets/icons/user.svg.js +21 -0
- package/dist/assets/icons/users.svg.js +28 -0
- package/dist/assets/icons/van.svg.js +21 -0
- package/dist/assets/icons/video-pause.svg.js +21 -0
- package/dist/assets/icons/video-play.svg.js +21 -0
- package/dist/assets/icons/video.svg.js +28 -0
- package/dist/assets/icons/view.svg.js +21 -0
- package/dist/assets/icons/wallet-filled.svg.js +21 -0
- package/dist/assets/icons/wallet.svg.js +35 -0
- package/dist/assets/icons/warn-triangle-filled.svg.js +22 -0
- package/dist/assets/icons/warning.svg.js +28 -0
- package/dist/assets/icons/watch.svg.js +35 -0
- package/dist/assets/icons/wind-power.svg.js +21 -0
- package/dist/assets/icons/zoom-in.svg.js +18 -0
- package/dist/assets/icons/zoom-out.svg.js +18 -0
- package/dist/components/basic/nmorph-button/NmorphButton.css +1 -0
- package/dist/components/basic/nmorph-button/NmorphButton.vue.js +71 -0
- package/dist/components/basic/nmorph-button/NmorphButton.vue2.js +57 -0
- package/dist/components/basic/nmorph-button/types.js +6 -0
- package/dist/components/basic/nmorph-icon/NmorphIcon.css +1 -0
- package/dist/components/basic/nmorph-icon/NmorphIcon.vue.js +26 -0
- package/dist/components/basic/nmorph-icon/NmorphIcon.vue2.js +31 -0
- package/dist/components/basic/nmorph-icon/types.js +4 -0
- package/dist/components/basic/nmorph-link/NmorphLink.css +1 -0
- package/dist/components/basic/nmorph-link/NmorphLink.vue.js +46 -0
- package/dist/components/basic/nmorph-link/NmorphLink.vue2.js +30 -0
- package/dist/components/basic/nmorph-link/types.js +4 -0
- package/dist/components/basic/nmorph-scroll/NmorphScroll.vue.js +38 -0
- package/dist/components/basic/nmorph-scroll/NmorphScroll.vue2.js +95 -0
- package/dist/components/basic/nmorph-scroll/types.js +5 -0
- package/dist/components/data/nmorph-avatar/NmorphAvatar.css +1 -0
- package/dist/components/data/nmorph-avatar/NmorphAvatar.vue.js +120 -0
- package/dist/components/data/nmorph-avatar/NmorphAvatar.vue2.js +74 -0
- package/dist/components/data/nmorph-badge/NmorphBadge.css +1 -0
- package/dist/components/data/nmorph-badge/NmorphBadge.vue.js +69 -0
- package/dist/components/data/nmorph-badge/NmorphBadge.vue2.js +51 -0
- package/dist/components/data/nmorph-calendar/NmorphCalendar.css +1 -0
- package/dist/components/data/nmorph-calendar/NmorphCalendar.vue.js +105 -0
- package/dist/components/data/nmorph-calendar/NmorphCalendar.vue2.js +133 -0
- package/dist/components/data/nmorph-calendar/hooks/use-calendar-texts.js +11 -0
- package/dist/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.css +1 -0
- package/dist/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue.js +73 -0
- package/dist/components/data/nmorph-calendar/inner-components/nmorph-calendar-header/NmorphCalendarHeader.vue2.js +41 -0
- package/dist/components/data/nmorph-calendar/utils.js +83 -0
- package/dist/components/data/nmorph-card/NmorphCard.css +1 -0
- package/dist/components/data/nmorph-card/NmorphCard.vue.js +35 -0
- package/dist/components/data/nmorph-card/NmorphCard.vue2.js +24 -0
- package/dist/components/data/nmorph-carousel/NmorphCarousel.vue.js +93 -0
- package/dist/components/data/nmorph-carousel/NmorphCarousel.vue2.js +52 -0
- package/dist/components/data/nmorph-carousel/components/nmorph-carousel-item/NmorphCarouselItem.vue.js +25 -0
- package/dist/components/data/nmorph-carousel/components/nmorph-carousel-item/NmorphCarouselItem.vue2.js +24 -0
- package/dist/components/data/nmorph-collapse/NmorphCollapse.vue.js +20 -0
- package/dist/components/data/nmorph-collapse/NmorphCollapse.vue2.js +40 -0
- package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.css +1 -0
- package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue.js +63 -0
- package/dist/components/data/nmorph-collapse/components/nmorph-collapse-item/NmorphCollapseItem.vue2.js +45 -0
- package/dist/components/data/nmorph-image/NmorphImage.vue.js +52 -0
- package/dist/components/data/nmorph-image/NmorphImage.vue2.js +36 -0
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.css +1 -0
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue.js +197 -0
- package/dist/components/data/nmorph-image-preview/NmorphImagePreview.vue2.js +104 -0
- package/dist/components/data/nmorph-pagination/NmorphPagination.css +1 -0
- package/dist/components/data/nmorph-pagination/NmorphPagination.vue.js +96 -0
- package/dist/components/data/nmorph-pagination/NmorphPagination.vue2.js +73 -0
- package/dist/components/data/nmorph-progress/NmorphProgress.css +1 -0
- package/dist/components/data/nmorph-progress/NmorphProgress.vue.js +89 -0
- package/dist/components/data/nmorph-progress/NmorphProgress.vue2.js +31 -0
- package/dist/components/data/nmorph-skeleton/NmorphSkeleton.css +1 -0
- package/dist/components/data/nmorph-skeleton/NmorphSkeleton.vue.js +61 -0
- package/dist/components/data/nmorph-skeleton/NmorphSkeleton.vue2.js +26 -0
- package/dist/components/data/nmorph-skeleton/components/NmorphSkeletonItem.css +1 -0
- package/dist/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue.js +36 -0
- package/dist/components/data/nmorph-skeleton/components/NmorphSkeletonItem.vue2.js +30 -0
- package/dist/components/data/nmorph-skeleton/types.js +4 -0
- package/dist/components/data/nmorph-table/NmorphTable.css +1 -0
- package/dist/components/data/nmorph-table/NmorphTable.vue.js +176 -0
- package/dist/components/data/nmorph-table/NmorphTable.vue2.js +52 -0
- package/dist/components/data/nmorph-table/components/nmorph-table-cell/NmorphTableCell.vue.js +23 -0
- package/dist/components/data/nmorph-table/components/nmorph-table-cell/NmorphTableCell.vue2.js +26 -0
- package/dist/components/data/nmorph-table/components/nmorph-table-column/NmorphTableColumn.vue.js +19 -0
- package/dist/components/data/nmorph-table/components/nmorph-table-column/NmorphTableColumn.vue2.js +31 -0
- package/dist/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.css +1 -0
- package/dist/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.vue.js +53 -0
- package/dist/components/data/nmorph-table/inner-components/nmorph-sort-button/NmorphSortButton.vue2.js +34 -0
- package/dist/components/data/nmorph-tag-list/NmorphTagList.vue.js +35 -0
- package/dist/components/data/nmorph-tag-list/NmorphTagList.vue2.js +32 -0
- package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.css +1 -0
- package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue.js +42 -0
- package/dist/components/data/nmorph-tag-list/components/nmorph-tag-item/NmorphTagItem.vue2.js +36 -0
- package/dist/components/feedback/nmorph-alert/NmorphAlert.css +1 -0
- package/dist/components/feedback/nmorph-alert/NmorphAlert.vue.js +85 -0
- package/dist/components/feedback/nmorph-alert/NmorphAlert.vue2.js +49 -0
- package/dist/components/feedback/nmorph-alert/types.js +4 -0
- package/dist/components/feedback/nmorph-callout/NmorphCallout.css +1 -0
- package/dist/components/feedback/nmorph-callout/NmorphCallout.vue.js +36 -0
- package/dist/components/feedback/nmorph-callout/NmorphCallout.vue2.js +18 -0
- package/dist/components/feedback/nmorph-dialog/NmorphDialog.css +1 -0
- package/dist/components/feedback/nmorph-dialog/NmorphDialog.vue.js +60 -0
- package/dist/components/feedback/nmorph-dialog/NmorphDialog.vue2.js +66 -0
- package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.css +1 -0
- package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue.js +111 -0
- package/dist/components/feedback/nmorph-tooltip/NmorphTooltip.vue2.js +37 -0
- package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.css +1 -0
- package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue.js +97 -0
- package/dist/components/form/nmorph-autocomplete/NmorphAutocomplete.vue2.js +65 -0
- package/dist/components/form/nmorph-checkbox/NmorphCheckbox.css +1 -0
- package/dist/components/form/nmorph-checkbox/NmorphCheckbox.vue.js +96 -0
- package/dist/components/form/nmorph-checkbox/NmorphCheckbox.vue2.js +55 -0
- package/dist/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.css +1 -0
- package/dist/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue.js +42 -0
- package/dist/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue2.js +46 -0
- package/dist/components/form/nmorph-color-picker/NmorphColorPicker.css +1 -0
- package/dist/components/form/nmorph-color-picker/NmorphColorPicker.vue.js +61 -0
- package/dist/components/form/nmorph-color-picker/NmorphColorPicker.vue2.js +66 -0
- package/dist/components/form/nmorph-date-picker/NmorphDatePicker.css +1 -0
- package/dist/components/form/nmorph-date-picker/NmorphDatePicker.vue.js +88 -0
- package/dist/components/form/nmorph-date-picker/NmorphDatePicker.vue2.js +70 -0
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-clear-button/NmorphClearButton.vue.js +28 -0
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-clear-button/NmorphClearButton.vue2.js +24 -0
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-content/NmorphDatePickerContent.vue.js +56 -0
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-content/NmorphDatePickerContent.vue2.js +52 -0
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/NmorphDatePickerHeader.css +1 -0
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/NmorphDatePickerHeader.vue.js +114 -0
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-date-picker-header/NmorphDatePickerHeader.vue2.js +38 -0
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.css +1 -0
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.vue.js +74 -0
- package/dist/components/form/nmorph-date-picker/inner-components/nmorph-year-month-picker/NmorphYearMonthPicker.vue2.js +74 -0
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.css +1 -0
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue.js +104 -0
- package/dist/components/form/nmorph-file-upload/NmorphFileUpload.vue2.js +78 -0
- package/dist/components/form/nmorph-file-upload/types.js +16 -0
- package/dist/components/form/nmorph-form/NmorphForm.vue.js +23 -0
- package/dist/components/form/nmorph-form/NmorphForm.vue2.js +23 -0
- package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.css +1 -0
- package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue.js +39 -0
- package/dist/components/form/nmorph-form/components/nmorph-form-item/NmorphFormItem.vue2.js +45 -0
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.css +1 -0
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue.js +46 -0
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-error-box/NmorphErrorBox.vue2.js +28 -0
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/NmorphValidationIcon.css +1 -0
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/NmorphValidationIcon.vue.js +34 -0
- package/dist/components/form/nmorph-form/components/nmorph-form-item/inner-components/nmorph-validation-icon/NmorphValidationIcon.vue2.js +27 -0
- package/dist/components/form/nmorph-form/use-form-item-input.js +15 -0
- package/dist/components/form/nmorph-number-input/NmorphNumberInput.css +1 -0
- package/dist/components/form/nmorph-number-input/NmorphNumberInput.vue.js +140 -0
- package/dist/components/form/nmorph-number-input/NmorphNumberInput.vue2.js +79 -0
- package/dist/components/form/nmorph-otp-input/NmorphOTPInput.css +1 -0
- package/dist/components/form/nmorph-otp-input/NmorphOTPInput.vue.js +71 -0
- package/dist/components/form/nmorph-otp-input/NmorphOTPInput.vue2.js +139 -0
- package/dist/components/form/nmorph-radio/NmorphRadio.css +1 -0
- package/dist/components/form/nmorph-radio/NmorphRadio.vue.js +94 -0
- package/dist/components/form/nmorph-radio/NmorphRadio.vue2.js +38 -0
- package/dist/components/form/nmorph-radio-group/NmorphRadioGroup.css +1 -0
- package/dist/components/form/nmorph-radio-group/NmorphRadioGroup.vue.js +42 -0
- package/dist/components/form/nmorph-radio-group/NmorphRadioGroup.vue2.js +41 -0
- package/dist/components/form/nmorph-select/NmorphSelect.css +1 -0
- package/dist/components/form/nmorph-select/NmorphSelect.vue.js +157 -0
- package/dist/components/form/nmorph-select/NmorphSelect.vue2.js +128 -0
- package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.css +1 -0
- package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue.js +38 -0
- package/dist/components/form/nmorph-select/components/nmorph-select-option/NmorphSelectOption.vue2.js +43 -0
- package/dist/components/form/nmorph-select-button/NmorphSelectButton.css +1 -0
- package/dist/components/form/nmorph-select-button/NmorphSelectButton.vue.js +43 -0
- package/dist/components/form/nmorph-select-button/NmorphSelectButton.vue2.js +44 -0
- package/dist/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.css +1 -0
- package/dist/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.vue.js +32 -0
- package/dist/components/form/nmorph-select-button/components/nmorph-select-button-item/NmorphSelectButtonItem.vue2.js +35 -0
- package/dist/components/form/nmorph-slider/NmorphSlider.css +1 -0
- package/dist/components/form/nmorph-slider/NmorphSlider.vue.js +73 -0
- package/dist/components/form/nmorph-slider/NmorphSlider.vue2.js +83 -0
- package/dist/components/form/nmorph-switch/NmorphSwitch.css +1 -0
- package/dist/components/form/nmorph-switch/NmorphSwitch.vue.js +63 -0
- package/dist/components/form/nmorph-switch/NmorphSwitch.vue2.js +57 -0
- package/dist/components/form/nmorph-text-input/NmorphTextInput.vue.js +67 -0
- package/dist/components/form/nmorph-text-input/NmorphTextInput.vue2.js +63 -0
- package/dist/components/navigation/nmorph-backtop/NmorphBacktop.css +1 -0
- package/dist/components/navigation/nmorph-backtop/NmorphBacktop.vue.js +56 -0
- package/dist/components/navigation/nmorph-backtop/NmorphBacktop.vue2.js +50 -0
- package/dist/components/navigation/nmorph-breadcrumb/NmorphBreadcrumb.css +1 -0
- package/dist/components/navigation/nmorph-breadcrumb/NmorphBreadcrumb.vue.js +48 -0
- package/dist/components/navigation/nmorph-breadcrumb/NmorphBreadcrumb.vue2.js +24 -0
- package/dist/components/navigation/nmorph-breadcrumb/components/nmorph-breadcrumb-item/NmorphBreadcrumbItem.vue.js +36 -0
- package/dist/components/navigation/nmorph-breadcrumb/components/nmorph-breadcrumb-item/NmorphBreadcrumbItem.vue2.js +26 -0
- package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.css +1 -0
- package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.vue.js +49 -0
- package/dist/components/navigation/nmorph-dropdown/NmorphDropdown.vue2.js +42 -0
- package/dist/components/navigation/nmorph-tabs/NmorphTabs.css +1 -0
- package/dist/components/navigation/nmorph-tabs/NmorphTabs.vue.js +73 -0
- package/dist/components/navigation/nmorph-tabs/NmorphTabs.vue2.js +39 -0
- package/dist/components/navigation/nmorph-tabs/components/nmorph-tab-pane/NmorphTabPane.vue.js +30 -0
- package/dist/components/navigation/nmorph-tabs/components/nmorph-tab-pane/NmorphTabPane.vue2.js +32 -0
- package/dist/components/navigation/nmorph-tabs/utils.js +11 -0
- package/dist/components/others/nmorph-divider/NmorphDivider.css +1 -0
- package/dist/components/others/nmorph-divider/NmorphDivider.vue.js +20 -0
- package/dist/components/others/nmorph-divider/NmorphDivider.vue2.js +21 -0
- package/dist/components/others/nmorph-overlay/NmorphOverlay.css +1 -0
- package/dist/components/others/nmorph-overlay/NmorphOverlay.vue.js +30 -0
- package/dist/components/others/nmorph-overlay/NmorphOverlay.vue2.js +30 -0
- package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.css +1 -0
- package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.js +56 -0
- package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue2.js +55 -0
- package/dist/components/providers/nmorph-notification-provider/types.js +4 -0
- package/dist/hooks/use-common-styles.js +538 -0
- package/dist/hooks/use-field-validation.js +74 -0
- package/dist/hooks/use-form-validation.js +30 -0
- package/dist/hooks/use-nmorph-translation.js +15 -0
- package/dist/hooks/use-placement.js +57 -0
- package/dist/hooks/use-z-index.js +14 -0
- package/dist/index.es.js +710 -12297
- package/dist/index.umd.js +27 -28
- package/dist/locales/en.js +29 -0
- package/dist/locales/ru.js +29 -0
- package/dist/locales/zh.js +29 -0
- package/dist/nuxt.mjs +40 -8
- package/dist/outside-hooks/use-nmorph-browser.js +21 -0
- package/dist/outside-hooks/use-nmorph-notification.js +29 -0
- package/dist/outside-hooks/use-nmorph-theme.js +147 -0
- package/dist/outside-hooks/use-nmorph-z-index.js +8 -0
- package/dist/outside-hooks/use-nmorph.js +9 -0
- package/dist/outside-utils/index.js +23 -0
- package/dist/package.json.js +7 -0
- package/dist/plugin.d.ts +2 -0
- package/dist/plugin.js +48 -0
- package/dist/src/components/data/nmorph-badge/NmorphBadge.vue.d.ts +1 -1
- package/dist/src/components/data/nmorph-image/NmorphImage.vue.d.ts +3 -3
- package/dist/src/components/data/nmorph-image-preview/NmorphImagePreview.vue.d.ts +14 -2
- package/dist/src/components/data/nmorph-pagination/NmorphPagination.vue.d.ts +3 -0
- package/dist/src/components/form/nmorph-checkbox/NmorphCheckbox.vue.d.ts +1 -0
- package/dist/src/components/form/nmorph-checkbox-group/NmorphCheckboxGroup.vue.d.ts +4 -3
- package/dist/src/components/form/nmorph-radio/NmorphRadio.vue.d.ts +1 -0
- package/dist/src/components/form/nmorph-radio-group/NmorphRadioGroup.vue.d.ts +4 -3
- package/dist/src/main.d.ts +1 -8
- package/dist/src/nuxt/module.d.ts +3 -1
- package/dist/src/plugin.d.ts +8 -0
- package/dist/src/types/index.d.ts +9 -2
- package/dist/style.css +1 -1
- package/dist/types/index.js +20 -0
- package/dist/utils/case-transformers.js +4 -0
- package/dist/utils/common.js +8 -0
- package/dist/utils/create-modifiers.js +8 -0
- package/dist/utils/theme-style.js +71 -0
- package/package.json +11 -3
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import './NmorphOverlay.css';
|
|
2
|
+
import t from "./NmorphOverlay.vue2.js";
|
|
3
|
+
import { openBlock as n, createElementBlock as i, withModifiers as e, normalizeStyle as s, normalizeClass as m, createElementVNode as a, renderSlot as p } from "vue";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import c from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
function d(l, r, f, o, _, v) {
|
|
7
|
+
return n(), i(
|
|
8
|
+
"div",
|
|
9
|
+
{
|
|
10
|
+
class: m(o.modifiers),
|
|
11
|
+
style: s({ "--nmorph-overlay-z-index": o.zIndex }),
|
|
12
|
+
onClick: e(o.clickHandler, ["stop"])
|
|
13
|
+
},
|
|
14
|
+
[
|
|
15
|
+
a("div", {
|
|
16
|
+
class: "nmorph-overlay__slot",
|
|
17
|
+
onClick: r[0] || (r[0] = e(() => {
|
|
18
|
+
}, ["stop"]))
|
|
19
|
+
}, [
|
|
20
|
+
p(l.$slots, "default")
|
|
21
|
+
])
|
|
22
|
+
],
|
|
23
|
+
6
|
|
24
|
+
/* CLASS, STYLE */
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
const x = /* @__PURE__ */ c(t, [["render", d], ["__file", "/builds/ketjo/nmorph/library/src/components/others/nmorph-overlay/NmorphOverlay.vue"]]);
|
|
28
|
+
export {
|
|
29
|
+
x as default
|
|
30
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import './NmorphOverlay.css';
|
|
2
|
+
import { defineComponent as d, computed as t } from "vue";
|
|
3
|
+
import { useModifiers as m } from "../../../utils/create-modifiers.js";
|
|
4
|
+
import { useZIndex as c } from "../../../hooks/use-z-index.js";
|
|
5
|
+
const h = /* @__PURE__ */ d({
|
|
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 }
|
|
11
|
+
},
|
|
12
|
+
emits: ["on-outside-click"],
|
|
13
|
+
setup(n, { expose: s, emit: i }) {
|
|
14
|
+
s();
|
|
15
|
+
const e = n, p = c(
|
|
16
|
+
t(() => e.show),
|
|
17
|
+
() => e.zIndex
|
|
18
|
+
), a = t(
|
|
19
|
+
() => m({
|
|
20
|
+
"nmorph-overlay": [`${e.show && "show"}`, `${e.transparent && "transparent"}`]
|
|
21
|
+
})
|
|
22
|
+
), u = () => {
|
|
23
|
+
r("on-outside-click");
|
|
24
|
+
}, r = i, o = { props: e, zIndex: p, modifiers: a, clickHandler: u, emit: r };
|
|
25
|
+
return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
h as default
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.nmorph-notification-provider{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none}.nmorph-notification-provider .nmorph-notification-provider__notification{width:fit-content;height:fit-content;margin:1rem;pointer-events:all;transition:transform .5s ease,opacity .5s ease-in-out}.nmorph-notification-provider .nmorph-notification-provider__list{display:flex;flex-direction:column;width:fit-content;max-width:100vw;position:fixed;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{--color: var(--nmorph-text-color);display:flex;align-items:center;width:var(--width);min-width:var(--width);height:var(--height);min-height:var(--height)}.nmorph-notification-provider .nmorph-notification-leave-active .nmorph-icon--small{--width: 14px;--height: 14px}.nmorph-notification-provider .nmorph-notification-leave-active .nmorph-icon--medium{--width: 20px;--height: 20px}.nmorph-notification-provider .nmorph-notification-leave-active .nmorph-icon--large{--width: 32px;--height: 32px}.nmorph-notification-provider .nmorph-notification-leave-active .nmorph-icon__content{display:flex;align-items:center;justify-content:center;width:var(--width);min-width:var(--width);height:var(--height);min-height:var(--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{--color: var(--nmorph-white-color)}.nmorph-notification-provider .nmorph-notification-leave-active.nmorph-alert--success .nmorph-alert__icon .nmorph-icon{--color: var(--nmorph-success-color)}.nmorph-notification-provider .nmorph-notification-leave-active.nmorph-alert--error .nmorph-alert__icon .nmorph-icon{--color: var(--nmorph-error-color)}.nmorph-notification-provider .nmorph-notification-leave-active.nmorph-alert--warning .nmorph-alert__icon .nmorph-icon{--color: var(--nmorph-warn-color)}.nmorph-notification-provider .nmorph-notification-leave-active.nmorph-alert--info .nmorph-alert__icon .nmorph-icon{--color: var(--nmorph-info-color)}.nmorph-notification-provider .nmorph-notification-leave-active svg{width:100%;height:100%;fill:var(--color);stroke-width:0}.nmorph-notification-provider .nmorph-notification-leave-active path{stroke:var(--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}
|
package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import './NmorphNotificationProvider.css';
|
|
2
|
+
import c from "./NmorphNotificationProvider.vue2.js";
|
|
3
|
+
import { openBlock as i, createElementBlock as n, normalizeStyle as a, Fragment as t, renderList as l, createBlock as s, TransitionGroup as d, normalizeClass as m, withCtx as p, mergeProps as f } from "vue";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
function h(v, u, y, o, k, x) {
|
|
7
|
+
return i(), n(
|
|
8
|
+
"div",
|
|
9
|
+
{
|
|
10
|
+
class: "nmorph-notification-provider",
|
|
11
|
+
style: a({ zIndex: o.zIndex })
|
|
12
|
+
},
|
|
13
|
+
[
|
|
14
|
+
(i(!0), n(
|
|
15
|
+
t,
|
|
16
|
+
null,
|
|
17
|
+
l(o.notificationGroups, (e) => (i(), s(d, {
|
|
18
|
+
key: e.placement,
|
|
19
|
+
name: "nmorph-notification",
|
|
20
|
+
tag: "div",
|
|
21
|
+
class: m(`nmorph-notification-provider__list nmorph-notification-provider__list--${e.placement}`)
|
|
22
|
+
}, {
|
|
23
|
+
default: p(() => [
|
|
24
|
+
(i(!0), n(
|
|
25
|
+
t,
|
|
26
|
+
null,
|
|
27
|
+
l(e.notifications, (r) => (i(), s(o.NmorphAlert, f({
|
|
28
|
+
key: r.id,
|
|
29
|
+
style: { width: r.width },
|
|
30
|
+
class: [
|
|
31
|
+
"nmorph-notification-provider__notification",
|
|
32
|
+
o.closingIds.includes(r.id) && "nmorph-notification-provider__notification--closing"
|
|
33
|
+
],
|
|
34
|
+
ref_for: !0
|
|
35
|
+
}, r, {
|
|
36
|
+
onClose: () => o.closeHandler(r.id)
|
|
37
|
+
}), null, 16, ["style", "class", "onClose"]))),
|
|
38
|
+
128
|
|
39
|
+
/* KEYED_FRAGMENT */
|
|
40
|
+
))
|
|
41
|
+
]),
|
|
42
|
+
_: 2
|
|
43
|
+
/* DYNAMIC */
|
|
44
|
+
}, 1032, ["class"]))),
|
|
45
|
+
128
|
|
46
|
+
/* KEYED_FRAGMENT */
|
|
47
|
+
))
|
|
48
|
+
],
|
|
49
|
+
4
|
|
50
|
+
/* STYLE */
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
const w = /* @__PURE__ */ _(c, [["render", h], ["__file", "/builds/ketjo/nmorph/library/src/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue"]]);
|
|
54
|
+
export {
|
|
55
|
+
w as default
|
|
56
|
+
};
|
package/dist/components/providers/nmorph-notification-provider/NmorphNotificationProvider.vue2.js
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import './NmorphNotificationProvider.css';
|
|
2
|
+
import { defineComponent as g, ref as u, computed as v, watch as x } from "vue";
|
|
3
|
+
import { NmorphNotificationPlacement as q } from "./types.js";
|
|
4
|
+
import A from "../../feedback/nmorph-alert/NmorphAlert.vue.js";
|
|
5
|
+
const h = 500, z = /* @__PURE__ */ g({
|
|
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: 1e3 },
|
|
11
|
+
quantity: { type: Number, required: !1, default: 100 }
|
|
12
|
+
},
|
|
13
|
+
setup(N, { expose: _ }) {
|
|
14
|
+
_();
|
|
15
|
+
const c = (e) => typeof e.id == "string" && e.id.length > 0, a = u([]), o = u([]), r = u([]), d = Object.values(q), f = (e) => {
|
|
16
|
+
r.value = r.value.filter((i) => i.id !== e), o.value = o.value.filter((i) => i !== e);
|
|
17
|
+
}, p = (e, i = !0) => {
|
|
18
|
+
o.value.includes(e) || (i && !a.value.includes(e) && (a.value = [...a.value, e]), o.value = [...o.value, e], setTimeout(() => f(e), h));
|
|
19
|
+
}, s = N, y = v(
|
|
20
|
+
() => d.map((e) => {
|
|
21
|
+
const i = r.value.filter(
|
|
22
|
+
(n) => (n.placement ?? s.placement) === e
|
|
23
|
+
), t = Math.max(i.length - s.quantity, 0);
|
|
24
|
+
return {
|
|
25
|
+
placement: e,
|
|
26
|
+
notifications: i.slice(t)
|
|
27
|
+
};
|
|
28
|
+
}).filter((e) => e.notifications.length > 0)
|
|
29
|
+
);
|
|
30
|
+
x(
|
|
31
|
+
() => s.notifications,
|
|
32
|
+
(e) => {
|
|
33
|
+
const i = e.filter(c).filter((t) => !a.value.includes(t.id));
|
|
34
|
+
r.value = r.value.map((t) => {
|
|
35
|
+
const n = i.find((l) => l.id === t.id);
|
|
36
|
+
return n ? { ...t, ...n } : t;
|
|
37
|
+
}), i.forEach((t) => {
|
|
38
|
+
r.value.some(
|
|
39
|
+
(l) => l.id === t.id
|
|
40
|
+
) || r.value.push(t);
|
|
41
|
+
}), r.value.filter(
|
|
42
|
+
(t) => !i.some((n) => n.id === t.id)
|
|
43
|
+
).forEach((t) => p(t.id, !1));
|
|
44
|
+
},
|
|
45
|
+
{ deep: !0, immediate: !0 }
|
|
46
|
+
);
|
|
47
|
+
const I = v(() => s.zIndex), m = { ANIMATION_DURATION: h, hasNotificationId: c, removedIds: a, closingIds: o, renderedNotifications: r, placementList: d, removeRenderedNotification: f, closeHandler: p, props: s, notificationGroups: y, zIndex: I, get NmorphAlert() {
|
|
48
|
+
return A;
|
|
49
|
+
} };
|
|
50
|
+
return Object.defineProperty(m, "__isScriptSetup", { enumerable: !1, value: !0 }), m;
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
export {
|
|
54
|
+
z as default
|
|
55
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var r = /* @__PURE__ */ ((t) => (t["top-left"] = "top-left", t["top-center"] = "top-center", t["top-right"] = "top-right", t["bottom-left"] = "bottom-left", t["bottom-center"] = "bottom-center", t["bottom-right"] = "bottom-right", t))(r || {});
|
|
2
|
+
export {
|
|
3
|
+
r as NmorphNotificationPlacement
|
|
4
|
+
};
|