pukaad-ui-lib 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.d.mts +14 -0
- package/dist/module.json +9 -0
- package/dist/module.mjs +130 -0
- package/dist/runtime/assets/css/fonts/Anuphan/Anuphan-Bold.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Anuphan/Anuphan-ExtraLight.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Anuphan/Anuphan-Light.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Anuphan/Anuphan-Medium.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Anuphan/Anuphan-Regular.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Anuphan/Anuphan-SemiBold.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Anuphan/Anuphan-Thin.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Anuphan.css +1 -0
- package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-Bold.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-BoldItalic.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-ExtraBold.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-ExtraBoldItalic.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-ExtraLight.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-ExtraLightItalic.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-Italic.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-Light.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-LightItalic.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-Medium.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-MediumItalic.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-Regular.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-SemiBold.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-SemiBoldItalic.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-Thin.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Sarabun/Sarabun-ThinItalic.ttf +0 -0
- package/dist/runtime/assets/css/fonts/Sarabun.css +1 -0
- package/dist/runtime/assets/css/main.css +1 -0
- package/dist/runtime/assets/css/scroll-bar.css +1 -0
- package/dist/runtime/assets/css/system.css +1 -0
- package/dist/runtime/assets/json/social-icon.json +77 -0
- package/dist/runtime/assets/svg/bell-outline.svg +3 -0
- package/dist/runtime/assets/svg/bookmark-solid.svg +3 -0
- package/dist/runtime/assets/svg/box.svg +23 -0
- package/dist/runtime/assets/svg/camera-plus.svg +10 -0
- package/dist/runtime/assets/svg/check.svg +3 -0
- package/dist/runtime/assets/svg/clock-fading.svg +47 -0
- package/dist/runtime/assets/svg/coin.svg +21 -0
- package/dist/runtime/assets/svg/empty-document.svg +15 -0
- package/dist/runtime/assets/svg/memsg-circle.svg +7 -0
- package/dist/runtime/assets/svg/memsg-fade.svg +5 -0
- package/dist/runtime/assets/svg/memsg-logo-outline.svg +3 -0
- package/dist/runtime/assets/svg/memsg-square.svg +9 -0
- package/dist/runtime/assets/svg/message.svg +3 -0
- package/dist/runtime/assets/svg/page-not-found.svg +9 -0
- package/dist/runtime/assets/svg/share-from-square.svg +3 -0
- package/dist/runtime/assets/svg/share.svg +3 -0
- package/dist/runtime/assets/svg/shopping-cart.svg +17 -0
- package/dist/runtime/assets/svg/socials/Email.svg +12 -0
- package/dist/runtime/assets/svg/socials/Facebook.svg +4 -0
- package/dist/runtime/assets/svg/socials/Line.svg +11 -0
- package/dist/runtime/assets/svg/socials/LinkedIn.svg +5 -0
- package/dist/runtime/assets/svg/socials/Pinterest.svg +4 -0
- package/dist/runtime/assets/svg/socials/SnapChat.svg +5 -0
- package/dist/runtime/assets/svg/socials/Threads.svg +12 -0
- package/dist/runtime/assets/svg/socials/Tiktok.svg +6 -0
- package/dist/runtime/assets/svg/socials/Tumblr.svg +4 -0
- package/dist/runtime/assets/svg/socials/WeChat.svg +1 -0
- package/dist/runtime/assets/svg/socials/Website.svg +11 -0
- package/dist/runtime/assets/svg/socials/Whatsapp.svg +5 -0
- package/dist/runtime/assets/svg/socials/X.svg +4 -0
- package/dist/runtime/assets/svg/socials/Youtube.svg +5 -0
- package/dist/runtime/assets/svg/socials/instagram.svg +14 -0
- package/dist/runtime/assets/svg/thumbs-up-regular.svg +10 -0
- package/dist/runtime/assets/svg/thumbs-up-solid.svg +3 -0
- package/dist/runtime/assets/svg/vector.svg +3 -0
- package/dist/runtime/assets/svg/verify.svg +11 -0
- package/dist/runtime/assets/svg/write-review.svg +16 -0
- package/dist/runtime/components/button.d.vue.ts +27 -0
- package/dist/runtime/components/button.vue +19 -0
- package/dist/runtime/components/button.vue.d.ts +27 -0
- package/dist/runtime/components/card/card-announce2.d.vue.ts +32 -0
- package/dist/runtime/components/card/card-announce2.vue +133 -0
- package/dist/runtime/components/card/card-announce2.vue.d.ts +32 -0
- package/dist/runtime/components/card/card-place-detail.d.vue.ts +9 -0
- package/dist/runtime/components/card/card-place-detail.vue +108 -0
- package/dist/runtime/components/card/card-place-detail.vue.d.ts +9 -0
- package/dist/runtime/components/card/card-profile-about.d.vue.ts +3 -0
- package/dist/runtime/components/card/card-profile-about.vue +56 -0
- package/dist/runtime/components/card/card-profile-about.vue.d.ts +3 -0
- package/dist/runtime/components/card/card-profile-header.d.vue.ts +16 -0
- package/dist/runtime/components/card/card-profile-header.vue +127 -0
- package/dist/runtime/components/card/card-profile-header.vue.d.ts +16 -0
- package/dist/runtime/components/card/card-reaction.d.vue.ts +3 -0
- package/dist/runtime/components/card/card-reaction.vue +35 -0
- package/dist/runtime/components/card/card-reaction.vue.d.ts +3 -0
- package/dist/runtime/components/card/card-recommend-blog.d.vue.ts +16 -0
- package/dist/runtime/components/card/card-recommend-blog.vue +57 -0
- package/dist/runtime/components/card/card-recommend-blog.vue.d.ts +16 -0
- package/dist/runtime/components/card/card-recommend-place.d.vue.ts +21 -0
- package/dist/runtime/components/card/card-recommend-place.vue +62 -0
- package/dist/runtime/components/card/card-recommend-place.vue.d.ts +21 -0
- package/dist/runtime/components/card/card-recommend-publisher.d.vue.ts +24 -0
- package/dist/runtime/components/card/card-recommend-publisher.vue +63 -0
- package/dist/runtime/components/card/card-recommend-publisher.vue.d.ts +24 -0
- package/dist/runtime/components/card/card-review.d.vue.ts +17 -0
- package/dist/runtime/components/card/card-review.vue +134 -0
- package/dist/runtime/components/card/card-review.vue.d.ts +17 -0
- package/dist/runtime/components/card/card-user-blog.d.vue.ts +18 -0
- package/dist/runtime/components/card/card-user-blog.vue +110 -0
- package/dist/runtime/components/card/card-user-blog.vue.d.ts +18 -0
- package/dist/runtime/components/card/card-user-item.d.vue.ts +40 -0
- package/dist/runtime/components/card/card-user-item.vue +156 -0
- package/dist/runtime/components/card/card-user-item.vue.d.ts +40 -0
- package/dist/runtime/components/card/card.d.vue.ts +25 -0
- package/dist/runtime/components/card/card.vue +34 -0
- package/dist/runtime/components/card/card.vue.d.ts +25 -0
- package/dist/runtime/components/carousel.d.vue.ts +25 -0
- package/dist/runtime/components/carousel.vue +68 -0
- package/dist/runtime/components/carousel.vue.d.ts +25 -0
- package/dist/runtime/components/chip.d.vue.ts +24 -0
- package/dist/runtime/components/chip.vue +59 -0
- package/dist/runtime/components/chip.vue.d.ts +24 -0
- package/dist/runtime/components/collapse/collapse-multiple.d.vue.ts +34 -0
- package/dist/runtime/components/collapse/collapse-multiple.vue +64 -0
- package/dist/runtime/components/collapse/collapse-multiple.vue.d.ts +34 -0
- package/dist/runtime/components/collapse/collapse.d.vue.ts +26 -0
- package/dist/runtime/components/collapse/collapse.vue +39 -0
- package/dist/runtime/components/collapse/collapse.vue.d.ts +26 -0
- package/dist/runtime/components/comment.d.vue.ts +6 -0
- package/dist/runtime/components/comment.vue +308 -0
- package/dist/runtime/components/comment.vue.d.ts +6 -0
- package/dist/runtime/components/dialog/dialog-2FA-generate.d.vue.ts +18 -0
- package/dist/runtime/components/dialog/dialog-2FA-generate.vue +113 -0
- package/dist/runtime/components/dialog/dialog-2FA-generate.vue.d.ts +18 -0
- package/dist/runtime/components/dialog/dialog-2FA.d.vue.ts +18 -0
- package/dist/runtime/components/dialog/dialog-2FA.vue +65 -0
- package/dist/runtime/components/dialog/dialog-2FA.vue.d.ts +18 -0
- package/dist/runtime/components/dialog/dialog-email-OTP.d.vue.ts +20 -0
- package/dist/runtime/components/dialog/dialog-email-OTP.vue +120 -0
- package/dist/runtime/components/dialog/dialog-email-OTP.vue.d.ts +20 -0
- package/dist/runtime/components/dialog/dialog-phone-OTP.d.vue.ts +22 -0
- package/dist/runtime/components/dialog/dialog-phone-OTP.vue +62 -0
- package/dist/runtime/components/dialog/dialog-phone-OTP.vue.d.ts +22 -0
- package/dist/runtime/components/display/display-image-place.d.vue.ts +3 -0
- package/dist/runtime/components/display/display-image-place.vue +4 -0
- package/dist/runtime/components/display/display-image-place.vue.d.ts +3 -0
- package/dist/runtime/components/display/display-image-review.d.vue.ts +13 -0
- package/dist/runtime/components/display/display-image-review.vue +30 -0
- package/dist/runtime/components/display/display-image-review.vue.d.ts +13 -0
- package/dist/runtime/components/display/display-image.d.vue.ts +13 -0
- package/dist/runtime/components/display/display-image.vue +102 -0
- package/dist/runtime/components/display/display-image.vue.d.ts +13 -0
- package/dist/runtime/components/divider.d.vue.ts +10 -0
- package/dist/runtime/components/divider.vue +42 -0
- package/dist/runtime/components/divider.vue.d.ts +10 -0
- package/dist/runtime/components/draggable.d.vue.ts +23 -0
- package/dist/runtime/components/draggable.vue +38 -0
- package/dist/runtime/components/draggable.vue.d.ts +23 -0
- package/dist/runtime/components/drawer/drawer-notification.d.vue.ts +22 -0
- package/dist/runtime/components/drawer/drawer-notification.vue +340 -0
- package/dist/runtime/components/drawer/drawer-notification.vue.d.ts +22 -0
- package/dist/runtime/components/drawer/drawer-post-blog.d.vue.ts +10 -0
- package/dist/runtime/components/drawer/drawer-post-blog.vue +88 -0
- package/dist/runtime/components/drawer/drawer-post-blog.vue.d.ts +10 -0
- package/dist/runtime/components/drawer/drawer-profile-about.d.vue.ts +3 -0
- package/dist/runtime/components/drawer/drawer-profile-about.vue +44 -0
- package/dist/runtime/components/drawer/drawer-profile-about.vue.d.ts +3 -0
- package/dist/runtime/components/drawer/drawer.d.vue.ts +38 -0
- package/dist/runtime/components/drawer/drawer.vue +38 -0
- package/dist/runtime/components/drawer/drawer.vue.d.ts +38 -0
- package/dist/runtime/components/dropdown.d.vue.ts +13 -0
- package/dist/runtime/components/dropdown.vue +14 -0
- package/dist/runtime/components/dropdown.vue.d.ts +13 -0
- package/dist/runtime/components/filter/filter-list-chip.d.vue.ts +14 -0
- package/dist/runtime/components/filter/filter-list-chip.vue +39 -0
- package/dist/runtime/components/filter/filter-list-chip.vue.d.ts +14 -0
- package/dist/runtime/components/filter/filter-list.d.vue.ts +21 -0
- package/dist/runtime/components/filter/filter-list.vue +28 -0
- package/dist/runtime/components/filter/filter-list.vue.d.ts +21 -0
- package/dist/runtime/components/icons.d.vue.ts +8 -0
- package/dist/runtime/components/icons.vue +11 -0
- package/dist/runtime/components/icons.vue.d.ts +8 -0
- package/dist/runtime/components/image/image-cropper.d.vue.ts +88 -0
- package/dist/runtime/components/image/image-cropper.vue +134 -0
- package/dist/runtime/components/image/image-cropper.vue.d.ts +88 -0
- package/dist/runtime/components/image/image.d.vue.ts +11 -0
- package/dist/runtime/components/image/image.vue +66 -0
- package/dist/runtime/components/image/image.vue.d.ts +11 -0
- package/dist/runtime/components/input/input-OTP.d.vue.ts +24 -0
- package/dist/runtime/components/input/input-OTP.vue +51 -0
- package/dist/runtime/components/input/input-OTP.vue.d.ts +24 -0
- package/dist/runtime/components/input/input-address.d.vue.ts +3 -0
- package/dist/runtime/components/input/input-address.vue +87 -0
- package/dist/runtime/components/input/input-address.vue.d.ts +3 -0
- package/dist/runtime/components/input/input-autocomplete.d.vue.ts +29 -0
- package/dist/runtime/components/input/input-autocomplete.vue +335 -0
- package/dist/runtime/components/input/input-autocomplete.vue.d.ts +29 -0
- package/dist/runtime/components/input/input-checkbox.d.vue.ts +20 -0
- package/dist/runtime/components/input/input-checkbox.vue +119 -0
- package/dist/runtime/components/input/input-checkbox.vue.d.ts +20 -0
- package/dist/runtime/components/input/input-combobox.d.vue.ts +18 -0
- package/dist/runtime/components/input/input-combobox.vue +25 -0
- package/dist/runtime/components/input/input-combobox.vue.d.ts +18 -0
- package/dist/runtime/components/input/input-comment.d.vue.ts +13 -0
- package/dist/runtime/components/input/input-comment.vue +43 -0
- package/dist/runtime/components/input/input-comment.vue.d.ts +13 -0
- package/dist/runtime/components/input/input-content.d.vue.ts +19 -0
- package/dist/runtime/components/input/input-content.vue +67 -0
- package/dist/runtime/components/input/input-content.vue.d.ts +19 -0
- package/dist/runtime/components/input/input-date-opening.d.vue.ts +3 -0
- package/dist/runtime/components/input/input-date-opening.vue +181 -0
- package/dist/runtime/components/input/input-date-opening.vue.d.ts +3 -0
- package/dist/runtime/components/input/input-email.d.vue.ts +3 -0
- package/dist/runtime/components/input/input-email.vue +14 -0
- package/dist/runtime/components/input/input-email.vue.d.ts +3 -0
- package/dist/runtime/components/input/input-file.d.vue.ts +42 -0
- package/dist/runtime/components/input/input-file.vue +181 -0
- package/dist/runtime/components/input/input-file.vue.d.ts +42 -0
- package/dist/runtime/components/input/input-link.d.vue.ts +15 -0
- package/dist/runtime/components/input/input-link.vue +106 -0
- package/dist/runtime/components/input/input-link.vue.d.ts +15 -0
- package/dist/runtime/components/input/input-media.d.vue.ts +22 -0
- package/dist/runtime/components/input/input-media.vue +141 -0
- package/dist/runtime/components/input/input-media.vue.d.ts +22 -0
- package/dist/runtime/components/input/input-password.d.vue.ts +25 -0
- package/dist/runtime/components/input/input-password.vue +128 -0
- package/dist/runtime/components/input/input-password.vue.d.ts +25 -0
- package/dist/runtime/components/input/input-phone.d.vue.ts +20 -0
- package/dist/runtime/components/input/input-phone.vue +66 -0
- package/dist/runtime/components/input/input-phone.vue.d.ts +20 -0
- package/dist/runtime/components/input/input-radio.d.vue.ts +51 -0
- package/dist/runtime/components/input/input-radio.vue +161 -0
- package/dist/runtime/components/input/input-radio.vue.d.ts +51 -0
- package/dist/runtime/components/input/input-rating.d.vue.ts +25 -0
- package/dist/runtime/components/input/input-rating.vue +69 -0
- package/dist/runtime/components/input/input-rating.vue.d.ts +25 -0
- package/dist/runtime/components/input/input-recaptcha.d.vue.ts +21 -0
- package/dist/runtime/components/input/input-recaptcha.vue +57 -0
- package/dist/runtime/components/input/input-recaptcha.vue.d.ts +21 -0
- package/dist/runtime/components/input/input-search.d.vue.ts +3 -0
- package/dist/runtime/components/input/input-search.vue +69 -0
- package/dist/runtime/components/input/input-search.vue.d.ts +3 -0
- package/dist/runtime/components/input/input-select-tag.d.vue.ts +3 -0
- package/dist/runtime/components/input/input-select-tag.vue +57 -0
- package/dist/runtime/components/input/input-select-tag.vue.d.ts +3 -0
- package/dist/runtime/components/input/input-select.d.vue.ts +49 -0
- package/dist/runtime/components/input/input-select.vue +80 -0
- package/dist/runtime/components/input/input-select.vue.d.ts +49 -0
- package/dist/runtime/components/input/input-slider.d.vue.ts +24 -0
- package/dist/runtime/components/input/input-slider.vue +81 -0
- package/dist/runtime/components/input/input-slider.vue.d.ts +24 -0
- package/dist/runtime/components/input/input-switch.d.vue.ts +20 -0
- package/dist/runtime/components/input/input-switch.vue +55 -0
- package/dist/runtime/components/input/input-switch.vue.d.ts +20 -0
- package/dist/runtime/components/input/input-tag.d.vue.ts +3 -0
- package/dist/runtime/components/input/input-tag.vue +43 -0
- package/dist/runtime/components/input/input-tag.vue.d.ts +3 -0
- package/dist/runtime/components/input/input-text-field.d.vue.ts +70 -0
- package/dist/runtime/components/input/input-text-field.vue +135 -0
- package/dist/runtime/components/input/input-text-field.vue.d.ts +70 -0
- package/dist/runtime/components/input/input-textarea.d.vue.ts +50 -0
- package/dist/runtime/components/input/input-textarea.vue +149 -0
- package/dist/runtime/components/input/input-textarea.vue.d.ts +50 -0
- package/dist/runtime/components/label/label-announce-time.d.vue.ts +3 -0
- package/dist/runtime/components/label/label-announce-time.vue +15 -0
- package/dist/runtime/components/label/label-announce-time.vue.d.ts +3 -0
- package/dist/runtime/components/label/label-card-atom.d.vue.ts +3 -0
- package/dist/runtime/components/label/label-card-atom.vue +17 -0
- package/dist/runtime/components/label/label-card-atom.vue.d.ts +3 -0
- package/dist/runtime/components/list/list-menu.d.vue.ts +93 -0
- package/dist/runtime/components/list/list-menu.vue +34 -0
- package/dist/runtime/components/list/list-menu.vue.d.ts +93 -0
- package/dist/runtime/components/modal/modal-2FA-generate.d.vue.ts +18 -0
- package/dist/runtime/components/modal/modal-2FA-generate.vue +117 -0
- package/dist/runtime/components/modal/modal-2FA-generate.vue.d.ts +18 -0
- package/dist/runtime/components/modal/modal-2FA.d.vue.ts +18 -0
- package/dist/runtime/components/modal/modal-2FA.vue +66 -0
- package/dist/runtime/components/modal/modal-2FA.vue.d.ts +18 -0
- package/dist/runtime/components/modal/modal-account-disabled-alert.d.vue.ts +21 -0
- package/dist/runtime/components/modal/modal-account-disabled-alert.vue +55 -0
- package/dist/runtime/components/modal/modal-account-disabled-alert.vue.d.ts +21 -0
- package/dist/runtime/components/modal/modal-account-disabled-confirmed.d.vue.ts +21 -0
- package/dist/runtime/components/modal/modal-account-disabled-confirmed.vue +58 -0
- package/dist/runtime/components/modal/modal-account-disabled-confirmed.vue.d.ts +21 -0
- package/dist/runtime/components/modal/modal-account-disabled-reason.d.vue.ts +21 -0
- package/dist/runtime/components/modal/modal-account-disabled-reason.vue +92 -0
- package/dist/runtime/components/modal/modal-account-disabled-reason.vue.d.ts +21 -0
- package/dist/runtime/components/modal/modal-account-disabled.d.vue.ts +13 -0
- package/dist/runtime/components/modal/modal-account-disabled.vue +68 -0
- package/dist/runtime/components/modal/modal-account-disabled.vue.d.ts +13 -0
- package/dist/runtime/components/modal/modal-email-OTP.d.vue.ts +21 -0
- package/dist/runtime/components/modal/modal-email-OTP.vue +95 -0
- package/dist/runtime/components/modal/modal-email-OTP.vue.d.ts +21 -0
- package/dist/runtime/components/modal/modal-password-new.d.vue.ts +24 -0
- package/dist/runtime/components/modal/modal-password-new.vue +69 -0
- package/dist/runtime/components/modal/modal-password-new.vue.d.ts +24 -0
- package/dist/runtime/components/modal/modal-password.d.vue.ts +22 -0
- package/dist/runtime/components/modal/modal-password.vue +73 -0
- package/dist/runtime/components/modal/modal-password.vue.d.ts +22 -0
- package/dist/runtime/components/modal/modal-personal-card-ID.d.vue.ts +17 -0
- package/dist/runtime/components/modal/modal-personal-card-ID.vue +335 -0
- package/dist/runtime/components/modal/modal-personal-card-ID.vue.d.ts +17 -0
- package/dist/runtime/components/modal/modal-phone-OTP.d.vue.ts +22 -0
- package/dist/runtime/components/modal/modal-phone-OTP.vue +74 -0
- package/dist/runtime/components/modal/modal-phone-OTP.vue.d.ts +22 -0
- package/dist/runtime/components/modal/modal-profile-edit.d.vue.ts +17 -0
- package/dist/runtime/components/modal/modal-profile-edit.vue +316 -0
- package/dist/runtime/components/modal/modal-profile-edit.vue.d.ts +17 -0
- package/dist/runtime/components/modal/modal-province-domain.d.vue.ts +18 -0
- package/dist/runtime/components/modal/modal-province-domain.vue +55 -0
- package/dist/runtime/components/modal/modal-province-domain.vue.d.ts +18 -0
- package/dist/runtime/components/modal/modal-report.d.vue.ts +3 -0
- package/dist/runtime/components/modal/modal-report.vue +55 -0
- package/dist/runtime/components/modal/modal-report.vue.d.ts +3 -0
- package/dist/runtime/components/modal/modal-review-detail.d.vue.ts +21 -0
- package/dist/runtime/components/modal/modal-review-detail.vue +192 -0
- package/dist/runtime/components/modal/modal-review-detail.vue.d.ts +21 -0
- package/dist/runtime/components/modal/modal-secure.d.vue.ts +19 -0
- package/dist/runtime/components/modal/modal-secure.vue +170 -0
- package/dist/runtime/components/modal/modal-secure.vue.d.ts +19 -0
- package/dist/runtime/components/modal/modal-share.d.vue.ts +10 -0
- package/dist/runtime/components/modal/modal-share.vue +64 -0
- package/dist/runtime/components/modal/modal-share.vue.d.ts +10 -0
- package/dist/runtime/components/modal/modal-user-account-list.d.vue.ts +18 -0
- package/dist/runtime/components/modal/modal-user-account-list.vue +51 -0
- package/dist/runtime/components/modal/modal-user-account-list.vue.d.ts +18 -0
- package/dist/runtime/components/modal/modal-user-account-search.d.vue.ts +18 -0
- package/dist/runtime/components/modal/modal-user-account-search.vue +44 -0
- package/dist/runtime/components/modal/modal-user-account-search.vue.d.ts +18 -0
- package/dist/runtime/components/modal/modal.d.vue.ts +47 -0
- package/dist/runtime/components/modal/modal.vue +46 -0
- package/dist/runtime/components/modal/modal.vue.d.ts +47 -0
- package/dist/runtime/components/pagination.d.vue.ts +20 -0
- package/dist/runtime/components/pagination.vue +60 -0
- package/dist/runtime/components/pagination.vue.d.ts +20 -0
- package/dist/runtime/components/picker/picker-image-cover-profile.d.vue.ts +10 -0
- package/dist/runtime/components/picker/picker-image-cover-profile.vue +181 -0
- package/dist/runtime/components/picker/picker-image-cover-profile.vue.d.ts +10 -0
- package/dist/runtime/components/picker/picker-image-profile.d.vue.ts +20 -0
- package/dist/runtime/components/picker/picker-image-profile.vue +172 -0
- package/dist/runtime/components/picker/picker-image-profile.vue.d.ts +20 -0
- package/dist/runtime/components/picker/picker-option-menu/picker-option-menu-user.d.vue.ts +40 -0
- package/dist/runtime/components/picker/picker-option-menu/picker-option-menu-user.vue +231 -0
- package/dist/runtime/components/picker/picker-option-menu/picker-option-menu-user.vue.d.ts +40 -0
- package/dist/runtime/components/picker/picker-option-menu/picker-option-menu.d.vue.ts +13 -0
- package/dist/runtime/components/picker/picker-option-menu/picker-option-menu.vue +54 -0
- package/dist/runtime/components/picker/picker-option-menu/picker-option-menu.vue.d.ts +13 -0
- package/dist/runtime/components/profile-cover.d.vue.ts +3 -0
- package/dist/runtime/components/profile-cover.vue +86 -0
- package/dist/runtime/components/profile-cover.vue.d.ts +3 -0
- package/dist/runtime/components/progress-bar.d.vue.ts +10 -0
- package/dist/runtime/components/progress-bar.vue +36 -0
- package/dist/runtime/components/progress-bar.vue.d.ts +10 -0
- package/dist/runtime/components/read-more-text.d.vue.ts +7 -0
- package/dist/runtime/components/read-more-text.vue +76 -0
- package/dist/runtime/components/read-more-text.vue.d.ts +7 -0
- package/dist/runtime/components/tab.d.vue.ts +48 -0
- package/dist/runtime/components/tab.vue +176 -0
- package/dist/runtime/components/tab.vue.d.ts +48 -0
- package/dist/runtime/components/table.d.vue.ts +58 -0
- package/dist/runtime/components/table.vue +139 -0
- package/dist/runtime/components/table.vue.d.ts +58 -0
- package/dist/runtime/components/tooltip.d.vue.ts +20 -0
- package/dist/runtime/components/tooltip.vue +63 -0
- package/dist/runtime/components/tooltip.vue.d.ts +20 -0
- package/dist/runtime/components/ui/alert/Alert.d.vue.ts +19 -0
- package/dist/runtime/components/ui/alert/Alert.vue +18 -0
- package/dist/runtime/components/ui/alert/Alert.vue.d.ts +19 -0
- package/dist/runtime/components/ui/alert/AlertDescription.d.vue.ts +17 -0
- package/dist/runtime/components/ui/alert/AlertDescription.vue +15 -0
- package/dist/runtime/components/ui/alert/AlertDescription.vue.d.ts +17 -0
- package/dist/runtime/components/ui/alert/AlertTitle.d.vue.ts +17 -0
- package/dist/runtime/components/ui/alert/AlertTitle.vue +15 -0
- package/dist/runtime/components/ui/alert/AlertTitle.vue.d.ts +17 -0
- package/dist/runtime/components/ui/alert/index.d.ts +8 -0
- package/dist/runtime/components/ui/alert/index.js +18 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialog.d.vue.ts +21 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialog.vue +15 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialog.vue.d.ts +21 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogAction.d.vue.ts +18 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogAction.vue +18 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogAction.vue.d.ts +18 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogCancel.d.vue.ts +18 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogCancel.vue +25 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogCancel.vue.d.ts +18 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogContent.d.vue.ts +32 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogContent.vue +44 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogContent.vue.d.ts +32 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogDescription.d.vue.ts +18 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogDescription.vue +21 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogDescription.vue.d.ts +18 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogFooter.d.vue.ts +17 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogFooter.vue +20 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogFooter.vue.d.ts +17 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogHeader.d.vue.ts +17 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogHeader.vue +15 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogHeader.vue.d.ts +17 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogTitle.d.vue.ts +18 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogTitle.vue +21 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogTitle.vue.d.ts +18 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogTrigger.d.vue.ts +14 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogTrigger.vue +13 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogTrigger.vue.d.ts +14 -0
- package/dist/runtime/components/ui/alert-dialog/index.d.ts +9 -0
- package/dist/runtime/components/ui/alert-dialog/index.js +9 -0
- package/dist/runtime/components/ui/avatar/Avatar.d.vue.ts +17 -0
- package/dist/runtime/components/ui/avatar/Avatar.vue +16 -0
- package/dist/runtime/components/ui/avatar/Avatar.vue.d.ts +17 -0
- package/dist/runtime/components/ui/avatar/AvatarFallback.d.vue.ts +18 -0
- package/dist/runtime/components/ui/avatar/AvatarFallback.vue +27 -0
- package/dist/runtime/components/ui/avatar/AvatarFallback.vue.d.ts +18 -0
- package/dist/runtime/components/ui/avatar/AvatarImage.d.vue.ts +14 -0
- package/dist/runtime/components/ui/avatar/AvatarImage.vue +20 -0
- package/dist/runtime/components/ui/avatar/AvatarImage.vue.d.ts +14 -0
- package/dist/runtime/components/ui/avatar/index.d.ts +3 -0
- package/dist/runtime/components/ui/avatar/index.js +3 -0
- package/dist/runtime/components/ui/button/Button.d.vue.ts +24 -0
- package/dist/runtime/components/ui/button/Button.vue +24 -0
- package/dist/runtime/components/ui/button/Button.vue.d.ts +24 -0
- package/dist/runtime/components/ui/button/index.d.ts +9 -0
- package/dist/runtime/components/ui/button/index.js +96 -0
- package/dist/runtime/components/ui/card/Card.d.vue.ts +23 -0
- package/dist/runtime/components/ui/card/Card.vue +26 -0
- package/dist/runtime/components/ui/card/Card.vue.d.ts +23 -0
- package/dist/runtime/components/ui/card/CardAction.d.vue.ts +17 -0
- package/dist/runtime/components/ui/card/CardAction.vue +20 -0
- package/dist/runtime/components/ui/card/CardAction.vue.d.ts +17 -0
- package/dist/runtime/components/ui/card/CardContent.d.vue.ts +17 -0
- package/dist/runtime/components/ui/card/CardContent.vue +15 -0
- package/dist/runtime/components/ui/card/CardContent.vue.d.ts +17 -0
- package/dist/runtime/components/ui/card/CardDescription.d.vue.ts +17 -0
- package/dist/runtime/components/ui/card/CardDescription.vue +15 -0
- package/dist/runtime/components/ui/card/CardDescription.vue.d.ts +17 -0
- package/dist/runtime/components/ui/card/CardFooter.d.vue.ts +17 -0
- package/dist/runtime/components/ui/card/CardFooter.vue +17 -0
- package/dist/runtime/components/ui/card/CardFooter.vue.d.ts +17 -0
- package/dist/runtime/components/ui/card/CardHeader.d.vue.ts +17 -0
- package/dist/runtime/components/ui/card/CardHeader.vue +20 -0
- package/dist/runtime/components/ui/card/CardHeader.vue.d.ts +17 -0
- package/dist/runtime/components/ui/card/CardTitle.d.vue.ts +17 -0
- package/dist/runtime/components/ui/card/CardTitle.vue +15 -0
- package/dist/runtime/components/ui/card/CardTitle.vue.d.ts +17 -0
- package/dist/runtime/components/ui/card/index.d.ts +7 -0
- package/dist/runtime/components/ui/card/index.js +7 -0
- package/dist/runtime/components/ui/checkbox/Checkbox.d.vue.ts +22 -0
- package/dist/runtime/components/ui/checkbox/Checkbox.vue +42 -0
- package/dist/runtime/components/ui/checkbox/Checkbox.vue.d.ts +22 -0
- package/dist/runtime/components/ui/checkbox/index.d.ts +1 -0
- package/dist/runtime/components/ui/checkbox/index.js +1 -0
- package/dist/runtime/components/ui/command/Command.d.vue.ts +36 -0
- package/dist/runtime/components/ui/command/Command.vue +81 -0
- package/dist/runtime/components/ui/command/Command.vue.d.ts +36 -0
- package/dist/runtime/components/ui/command/CommandDialog.d.vue.ts +25 -0
- package/dist/runtime/components/ui/command/CommandDialog.vue +28 -0
- package/dist/runtime/components/ui/command/CommandDialog.vue.d.ts +25 -0
- package/dist/runtime/components/ui/command/CommandEmpty.d.vue.ts +18 -0
- package/dist/runtime/components/ui/command/CommandEmpty.vue +27 -0
- package/dist/runtime/components/ui/command/CommandEmpty.vue.d.ts +18 -0
- package/dist/runtime/components/ui/command/CommandGroup.d.vue.ts +19 -0
- package/dist/runtime/components/ui/command/CommandGroup.vue +40 -0
- package/dist/runtime/components/ui/command/CommandGroup.vue.d.ts +19 -0
- package/dist/runtime/components/ui/command/CommandInput.d.vue.ts +8 -0
- package/dist/runtime/components/ui/command/CommandInput.vue +37 -0
- package/dist/runtime/components/ui/command/CommandInput.vue.d.ts +8 -0
- package/dist/runtime/components/ui/command/CommandItem.d.vue.ts +22 -0
- package/dist/runtime/components/ui/command/CommandItem.vue +65 -0
- package/dist/runtime/components/ui/command/CommandItem.vue.d.ts +22 -0
- package/dist/runtime/components/ui/command/CommandList.d.vue.ts +18 -0
- package/dist/runtime/components/ui/command/CommandList.vue +24 -0
- package/dist/runtime/components/ui/command/CommandList.vue.d.ts +18 -0
- package/dist/runtime/components/ui/command/CommandSeparator.d.vue.ts +18 -0
- package/dist/runtime/components/ui/command/CommandSeparator.vue +23 -0
- package/dist/runtime/components/ui/command/CommandSeparator.vue.d.ts +18 -0
- package/dist/runtime/components/ui/command/CommandShortcut.d.vue.ts +17 -0
- package/dist/runtime/components/ui/command/CommandShortcut.vue +15 -0
- package/dist/runtime/components/ui/command/CommandShortcut.vue.d.ts +17 -0
- package/dist/runtime/components/ui/command/index.d.ts +90 -0
- package/dist/runtime/components/ui/command/index.js +12 -0
- package/dist/runtime/components/ui/dialog/Dialog.d.vue.ts +18 -0
- package/dist/runtime/components/ui/dialog/Dialog.vue +16 -0
- package/dist/runtime/components/ui/dialog/Dialog.vue.d.ts +18 -0
- package/dist/runtime/components/ui/dialog/DialogClose.d.vue.ts +14 -0
- package/dist/runtime/components/ui/dialog/DialogClose.vue +13 -0
- package/dist/runtime/components/ui/dialog/DialogClose.vue.d.ts +14 -0
- package/dist/runtime/components/ui/dialog/DialogContent.d.vue.ts +39 -0
- package/dist/runtime/components/ui/dialog/DialogContent.vue +57 -0
- package/dist/runtime/components/ui/dialog/DialogContent.vue.d.ts +39 -0
- package/dist/runtime/components/ui/dialog/DialogDescription.d.vue.ts +18 -0
- package/dist/runtime/components/ui/dialog/DialogDescription.vue +22 -0
- package/dist/runtime/components/ui/dialog/DialogDescription.vue.d.ts +18 -0
- package/dist/runtime/components/ui/dialog/DialogFooter.d.vue.ts +17 -0
- package/dist/runtime/components/ui/dialog/DialogFooter.vue +12 -0
- package/dist/runtime/components/ui/dialog/DialogFooter.vue.d.ts +17 -0
- package/dist/runtime/components/ui/dialog/DialogHeader.d.vue.ts +17 -0
- package/dist/runtime/components/ui/dialog/DialogHeader.vue +20 -0
- package/dist/runtime/components/ui/dialog/DialogHeader.vue.d.ts +17 -0
- package/dist/runtime/components/ui/dialog/DialogOverlay.d.vue.ts +18 -0
- package/dist/runtime/components/ui/dialog/DialogOverlay.vue +27 -0
- package/dist/runtime/components/ui/dialog/DialogOverlay.vue.d.ts +18 -0
- package/dist/runtime/components/ui/dialog/DialogScrollContent.d.vue.ts +32 -0
- package/dist/runtime/components/ui/dialog/DialogScrollContent.vue +57 -0
- package/dist/runtime/components/ui/dialog/DialogScrollContent.vue.d.ts +32 -0
- package/dist/runtime/components/ui/dialog/DialogTitle.d.vue.ts +18 -0
- package/dist/runtime/components/ui/dialog/DialogTitle.vue +22 -0
- package/dist/runtime/components/ui/dialog/DialogTitle.vue.d.ts +18 -0
- package/dist/runtime/components/ui/dialog/DialogTrigger.d.vue.ts +14 -0
- package/dist/runtime/components/ui/dialog/DialogTrigger.vue +13 -0
- package/dist/runtime/components/ui/dialog/DialogTrigger.vue.d.ts +14 -0
- package/dist/runtime/components/ui/dialog/index.d.ts +10 -0
- package/dist/runtime/components/ui/dialog/index.js +10 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenu.d.vue.ts +18 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenu.vue +20 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +18 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuCheckboxItem.d.vue.ts +24 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +38 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +24 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.d.vue.ts +32 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.vue +48 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +32 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuGroup.d.vue.ts +14 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuGroup.vue +16 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +14 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.d.vue.ts +22 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.vue +28 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +22 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuLabel.d.vue.ts +19 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuLabel.vue +24 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +19 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioGroup.d.vue.ts +18 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +22 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +18 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioItem.d.vue.ts +24 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +44 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +24 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSeparator.d.vue.ts +8 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSeparator.vue +21 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +8 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuShortcut.d.vue.ts +17 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuShortcut.vue +15 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +17 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSub.d.vue.ts +18 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSub.vue +18 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +18 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubContent.d.vue.ts +34 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubContent.vue +43 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +34 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubTrigger.d.vue.ts +19 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +32 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +19 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuTrigger.d.vue.ts +14 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuTrigger.vue +18 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +14 -0
- package/dist/runtime/components/ui/dropdown-menu/index.d.ts +15 -0
- package/dist/runtime/components/ui/dropdown-menu/index.js +15 -0
- package/dist/runtime/components/ui/form/FormControl.d.vue.ts +13 -0
- package/dist/runtime/components/ui/form/FormControl.vue +18 -0
- package/dist/runtime/components/ui/form/FormControl.vue.d.ts +13 -0
- package/dist/runtime/components/ui/form/FormDescription.d.vue.ts +17 -0
- package/dist/runtime/components/ui/form/FormDescription.vue +18 -0
- package/dist/runtime/components/ui/form/FormDescription.vue.d.ts +17 -0
- package/dist/runtime/components/ui/form/FormItem.d.vue.ts +17 -0
- package/dist/runtime/components/ui/form/FormItem.vue +17 -0
- package/dist/runtime/components/ui/form/FormItem.vue.d.ts +17 -0
- package/dist/runtime/components/ui/form/FormLabel.d.vue.ts +18 -0
- package/dist/runtime/components/ui/form/FormLabel.vue +23 -0
- package/dist/runtime/components/ui/form/FormLabel.vue.d.ts +18 -0
- package/dist/runtime/components/ui/form/FormMessage.d.vue.ts +7 -0
- package/dist/runtime/components/ui/form/FormMessage.vue +20 -0
- package/dist/runtime/components/ui/form/FormMessage.vue.d.ts +7 -0
- package/dist/runtime/components/ui/form/index.d.ts +7 -0
- package/dist/runtime/components/ui/form/index.js +11 -0
- package/dist/runtime/components/ui/form/injectionKeys.d.ts +2 -0
- package/dist/runtime/components/ui/form/injectionKeys.js +1 -0
- package/dist/runtime/components/ui/form/useFormField.d.ts +11 -0
- package/dist/runtime/components/ui/form/useFormField.js +25 -0
- package/dist/runtime/components/ui/input/Input.d.vue.ts +13 -0
- package/dist/runtime/components/ui/input/Input.vue +30 -0
- package/dist/runtime/components/ui/input/Input.vue.d.ts +13 -0
- package/dist/runtime/components/ui/input/index.d.ts +1 -0
- package/dist/runtime/components/ui/input/index.js +1 -0
- package/dist/runtime/components/ui/input-group/InputGroup.d.vue.ts +17 -0
- package/dist/runtime/components/ui/input-group/InputGroup.vue +31 -0
- package/dist/runtime/components/ui/input-group/InputGroup.vue.d.ts +17 -0
- package/dist/runtime/components/ui/input-group/InputGroupAddon.d.vue.ts +21 -0
- package/dist/runtime/components/ui/input-group/InputGroupAddon.vue +30 -0
- package/dist/runtime/components/ui/input-group/InputGroupAddon.vue.d.ts +21 -0
- package/dist/runtime/components/ui/input-group/InputGroupButton.d.vue.ts +17 -0
- package/dist/runtime/components/ui/input-group/InputGroupButton.vue +20 -0
- package/dist/runtime/components/ui/input-group/InputGroupButton.vue.d.ts +17 -0
- package/dist/runtime/components/ui/input-group/InputGroupInput.d.vue.ts +7 -0
- package/dist/runtime/components/ui/input-group/InputGroupInput.vue +19 -0
- package/dist/runtime/components/ui/input-group/InputGroupInput.vue.d.ts +7 -0
- package/dist/runtime/components/ui/input-group/InputGroupText.d.vue.ts +17 -0
- package/dist/runtime/components/ui/input-group/InputGroupText.vue +19 -0
- package/dist/runtime/components/ui/input-group/InputGroupText.vue.d.ts +17 -0
- package/dist/runtime/components/ui/input-group/InputGroupTextarea.d.vue.ts +7 -0
- package/dist/runtime/components/ui/input-group/InputGroupTextarea.vue +19 -0
- package/dist/runtime/components/ui/input-group/InputGroupTextarea.vue.d.ts +7 -0
- package/dist/runtime/components/ui/input-group/index.d.ts +22 -0
- package/dist/runtime/components/ui/input-group/index.js +39 -0
- package/dist/runtime/components/ui/label/Label.d.vue.ts +18 -0
- package/dist/runtime/components/ui/label/Label.vue +27 -0
- package/dist/runtime/components/ui/label/Label.vue.d.ts +18 -0
- package/dist/runtime/components/ui/label/index.d.ts +1 -0
- package/dist/runtime/components/ui/label/index.js +1 -0
- package/dist/runtime/components/ui/pagination/Pagination.d.vue.ts +25 -0
- package/dist/runtime/components/ui/pagination/Pagination.vue +31 -0
- package/dist/runtime/components/ui/pagination/Pagination.vue.d.ts +25 -0
- package/dist/runtime/components/ui/pagination/PaginationContent.d.vue.ts +25 -0
- package/dist/runtime/components/ui/pagination/PaginationContent.vue +22 -0
- package/dist/runtime/components/ui/pagination/PaginationContent.vue.d.ts +25 -0
- package/dist/runtime/components/ui/pagination/PaginationEllipsis.d.vue.ts +18 -0
- package/dist/runtime/components/ui/pagination/PaginationEllipsis.vue +24 -0
- package/dist/runtime/components/ui/pagination/PaginationEllipsis.vue.d.ts +18 -0
- package/dist/runtime/components/ui/pagination/PaginationFirst.d.vue.ts +22 -0
- package/dist/runtime/components/ui/pagination/PaginationFirst.vue +33 -0
- package/dist/runtime/components/ui/pagination/PaginationFirst.vue.d.ts +22 -0
- package/dist/runtime/components/ui/pagination/PaginationItem.d.vue.ts +23 -0
- package/dist/runtime/components/ui/pagination/PaginationItem.vue +31 -0
- package/dist/runtime/components/ui/pagination/PaginationItem.vue.d.ts +23 -0
- package/dist/runtime/components/ui/pagination/PaginationLast.d.vue.ts +22 -0
- package/dist/runtime/components/ui/pagination/PaginationLast.vue +33 -0
- package/dist/runtime/components/ui/pagination/PaginationLast.vue.d.ts +22 -0
- package/dist/runtime/components/ui/pagination/PaginationNext.d.vue.ts +22 -0
- package/dist/runtime/components/ui/pagination/PaginationNext.vue +33 -0
- package/dist/runtime/components/ui/pagination/PaginationNext.vue.d.ts +22 -0
- package/dist/runtime/components/ui/pagination/PaginationPrevious.d.vue.ts +22 -0
- package/dist/runtime/components/ui/pagination/PaginationPrevious.vue +33 -0
- package/dist/runtime/components/ui/pagination/PaginationPrevious.vue.d.ts +22 -0
- package/dist/runtime/components/ui/pagination/index.d.ts +8 -0
- package/dist/runtime/components/ui/pagination/index.js +8 -0
- package/dist/runtime/components/ui/pin-input/PinInput.d.vue.ts +23 -0
- package/dist/runtime/components/ui/pin-input/PinInput.vue +39 -0
- package/dist/runtime/components/ui/pin-input/PinInput.vue.d.ts +23 -0
- package/dist/runtime/components/ui/pin-input/PinInputGroup.d.vue.ts +18 -0
- package/dist/runtime/components/ui/pin-input/PinInputGroup.vue +22 -0
- package/dist/runtime/components/ui/pin-input/PinInputGroup.vue.d.ts +18 -0
- package/dist/runtime/components/ui/pin-input/PinInputSeparator.d.vue.ts +14 -0
- package/dist/runtime/components/ui/pin-input/PinInputSeparator.vue +14 -0
- package/dist/runtime/components/ui/pin-input/PinInputSeparator.vue.d.ts +14 -0
- package/dist/runtime/components/ui/pin-input/PinInputSlot.d.vue.ts +8 -0
- package/dist/runtime/components/ui/pin-input/PinInputSlot.vue +30 -0
- package/dist/runtime/components/ui/pin-input/PinInputSlot.vue.d.ts +8 -0
- package/dist/runtime/components/ui/pin-input/index.d.ts +4 -0
- package/dist/runtime/components/ui/pin-input/index.js +4 -0
- package/dist/runtime/components/ui/popover/Popover.d.vue.ts +21 -0
- package/dist/runtime/components/ui/popover/Popover.vue +20 -0
- package/dist/runtime/components/ui/popover/Popover.vue.d.ts +21 -0
- package/dist/runtime/components/ui/popover/PopoverAnchor.d.vue.ts +14 -0
- package/dist/runtime/components/ui/popover/PopoverAnchor.vue +17 -0
- package/dist/runtime/components/ui/popover/PopoverAnchor.vue.d.ts +14 -0
- package/dist/runtime/components/ui/popover/PopoverContent.d.vue.ts +35 -0
- package/dist/runtime/components/ui/popover/PopoverContent.vue +56 -0
- package/dist/runtime/components/ui/popover/PopoverContent.vue.d.ts +35 -0
- package/dist/runtime/components/ui/popover/PopoverTrigger.d.vue.ts +14 -0
- package/dist/runtime/components/ui/popover/PopoverTrigger.vue +16 -0
- package/dist/runtime/components/ui/popover/PopoverTrigger.vue.d.ts +14 -0
- package/dist/runtime/components/ui/popover/index.d.ts +4 -0
- package/dist/runtime/components/ui/popover/index.js +4 -0
- package/dist/runtime/components/ui/select/Select.d.vue.ts +24 -0
- package/dist/runtime/components/ui/select/Select.vue +28 -0
- package/dist/runtime/components/ui/select/Select.vue.d.ts +24 -0
- package/dist/runtime/components/ui/select/SelectContent.d.vue.ts +28 -0
- package/dist/runtime/components/ui/select/SelectContent.vue +61 -0
- package/dist/runtime/components/ui/select/SelectContent.vue.d.ts +28 -0
- package/dist/runtime/components/ui/select/SelectGroup.d.vue.ts +14 -0
- package/dist/runtime/components/ui/select/SelectGroup.vue +16 -0
- package/dist/runtime/components/ui/select/SelectGroup.vue.d.ts +14 -0
- package/dist/runtime/components/ui/select/SelectItem.d.vue.ts +20 -0
- package/dist/runtime/components/ui/select/SelectItem.vue +46 -0
- package/dist/runtime/components/ui/select/SelectItem.vue.d.ts +20 -0
- package/dist/runtime/components/ui/select/SelectItemText.d.vue.ts +14 -0
- package/dist/runtime/components/ui/select/SelectItemText.vue +16 -0
- package/dist/runtime/components/ui/select/SelectItemText.vue.d.ts +14 -0
- package/dist/runtime/components/ui/select/SelectLabel.d.vue.ts +18 -0
- package/dist/runtime/components/ui/select/SelectLabel.vue +21 -0
- package/dist/runtime/components/ui/select/SelectLabel.vue.d.ts +18 -0
- package/dist/runtime/components/ui/select/SelectScrollDownButton.d.vue.ts +18 -0
- package/dist/runtime/components/ui/select/SelectScrollDownButton.vue +21 -0
- package/dist/runtime/components/ui/select/SelectScrollDownButton.vue.d.ts +18 -0
- package/dist/runtime/components/ui/select/SelectScrollUpButton.d.vue.ts +18 -0
- package/dist/runtime/components/ui/select/SelectScrollUpButton.vue +21 -0
- package/dist/runtime/components/ui/select/SelectScrollUpButton.vue.d.ts +18 -0
- package/dist/runtime/components/ui/select/SelectSeparator.d.vue.ts +8 -0
- package/dist/runtime/components/ui/select/SelectSeparator.vue +19 -0
- package/dist/runtime/components/ui/select/SelectSeparator.vue.d.ts +8 -0
- package/dist/runtime/components/ui/select/SelectTrigger.d.vue.ts +21 -0
- package/dist/runtime/components/ui/select/SelectTrigger.vue +35 -0
- package/dist/runtime/components/ui/select/SelectTrigger.vue.d.ts +21 -0
- package/dist/runtime/components/ui/select/SelectValue.d.vue.ts +14 -0
- package/dist/runtime/components/ui/select/SelectValue.vue +17 -0
- package/dist/runtime/components/ui/select/SelectValue.vue.d.ts +14 -0
- package/dist/runtime/components/ui/select/index.d.ts +11 -0
- package/dist/runtime/components/ui/select/index.js +11 -0
- package/dist/runtime/components/ui/sheet/Sheet.d.vue.ts +18 -0
- package/dist/runtime/components/ui/sheet/Sheet.vue +16 -0
- package/dist/runtime/components/ui/sheet/Sheet.vue.d.ts +18 -0
- package/dist/runtime/components/ui/sheet/SheetClose.d.vue.ts +14 -0
- package/dist/runtime/components/ui/sheet/SheetClose.vue +13 -0
- package/dist/runtime/components/ui/sheet/SheetClose.vue.d.ts +14 -0
- package/dist/runtime/components/ui/sheet/SheetContent.d.vue.ts +39 -0
- package/dist/runtime/components/ui/sheet/SheetContent.vue +64 -0
- package/dist/runtime/components/ui/sheet/SheetContent.vue.d.ts +39 -0
- package/dist/runtime/components/ui/sheet/SheetDescription.d.vue.ts +18 -0
- package/dist/runtime/components/ui/sheet/SheetDescription.vue +21 -0
- package/dist/runtime/components/ui/sheet/SheetDescription.vue.d.ts +18 -0
- package/dist/runtime/components/ui/sheet/SheetFooter.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sheet/SheetFooter.vue +15 -0
- package/dist/runtime/components/ui/sheet/SheetFooter.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sheet/SheetHeader.d.vue.ts +17 -0
- package/dist/runtime/components/ui/sheet/SheetHeader.vue +15 -0
- package/dist/runtime/components/ui/sheet/SheetHeader.vue.d.ts +17 -0
- package/dist/runtime/components/ui/sheet/SheetOverlay.d.vue.ts +18 -0
- package/dist/runtime/components/ui/sheet/SheetOverlay.vue +27 -0
- package/dist/runtime/components/ui/sheet/SheetOverlay.vue.d.ts +18 -0
- package/dist/runtime/components/ui/sheet/SheetTitle.d.vue.ts +18 -0
- package/dist/runtime/components/ui/sheet/SheetTitle.vue +21 -0
- package/dist/runtime/components/ui/sheet/SheetTitle.vue.d.ts +18 -0
- package/dist/runtime/components/ui/sheet/SheetTrigger.d.vue.ts +14 -0
- package/dist/runtime/components/ui/sheet/SheetTrigger.vue +13 -0
- package/dist/runtime/components/ui/sheet/SheetTrigger.vue.d.ts +14 -0
- package/dist/runtime/components/ui/sheet/index.d.ts +8 -0
- package/dist/runtime/components/ui/sheet/index.js +8 -0
- package/dist/runtime/components/ui/spinner/Spinner.d.vue.ts +7 -0
- package/dist/runtime/components/ui/spinner/Spinner.vue +15 -0
- package/dist/runtime/components/ui/spinner/Spinner.vue.d.ts +7 -0
- package/dist/runtime/components/ui/spinner/index.d.ts +1 -0
- package/dist/runtime/components/ui/spinner/index.js +1 -0
- package/dist/runtime/components/ui/table/Table.d.vue.ts +17 -0
- package/dist/runtime/components/ui/table/Table.vue +14 -0
- package/dist/runtime/components/ui/table/Table.vue.d.ts +17 -0
- package/dist/runtime/components/ui/table/TableBody.d.vue.ts +17 -0
- package/dist/runtime/components/ui/table/TableBody.vue +15 -0
- package/dist/runtime/components/ui/table/TableBody.vue.d.ts +17 -0
- package/dist/runtime/components/ui/table/TableCaption.d.vue.ts +17 -0
- package/dist/runtime/components/ui/table/TableCaption.vue +15 -0
- package/dist/runtime/components/ui/table/TableCaption.vue.d.ts +17 -0
- package/dist/runtime/components/ui/table/TableCell.d.vue.ts +17 -0
- package/dist/runtime/components/ui/table/TableCell.vue +20 -0
- package/dist/runtime/components/ui/table/TableCell.vue.d.ts +17 -0
- package/dist/runtime/components/ui/table/TableEmpty.d.vue.ts +20 -0
- package/dist/runtime/components/ui/table/TableEmpty.vue +29 -0
- package/dist/runtime/components/ui/table/TableEmpty.vue.d.ts +20 -0
- package/dist/runtime/components/ui/table/TableFooter.d.vue.ts +17 -0
- package/dist/runtime/components/ui/table/TableFooter.vue +15 -0
- package/dist/runtime/components/ui/table/TableFooter.vue.d.ts +17 -0
- package/dist/runtime/components/ui/table/TableHead.d.vue.ts +17 -0
- package/dist/runtime/components/ui/table/TableHead.vue +15 -0
- package/dist/runtime/components/ui/table/TableHead.vue.d.ts +17 -0
- package/dist/runtime/components/ui/table/TableHeader.d.vue.ts +17 -0
- package/dist/runtime/components/ui/table/TableHeader.vue +15 -0
- package/dist/runtime/components/ui/table/TableHeader.vue.d.ts +17 -0
- package/dist/runtime/components/ui/table/TableRow.d.vue.ts +17 -0
- package/dist/runtime/components/ui/table/TableRow.vue +15 -0
- package/dist/runtime/components/ui/table/TableRow.vue.d.ts +17 -0
- package/dist/runtime/components/ui/table/index.d.ts +9 -0
- package/dist/runtime/components/ui/table/index.js +9 -0
- package/dist/runtime/components/ui/table/utils.d.ts +3 -0
- package/dist/runtime/components/ui/table/utils.js +4 -0
- package/dist/runtime/components/ui/tabs/Tabs.d.vue.ts +24 -0
- package/dist/runtime/components/ui/tabs/Tabs.vue +30 -0
- package/dist/runtime/components/ui/tabs/Tabs.vue.d.ts +24 -0
- package/dist/runtime/components/ui/tabs/TabsContent.d.vue.ts +18 -0
- package/dist/runtime/components/ui/tabs/TabsContent.vue +23 -0
- package/dist/runtime/components/ui/tabs/TabsContent.vue.d.ts +18 -0
- package/dist/runtime/components/ui/tabs/TabsList.d.vue.ts +18 -0
- package/dist/runtime/components/ui/tabs/TabsList.vue +25 -0
- package/dist/runtime/components/ui/tabs/TabsList.vue.d.ts +18 -0
- package/dist/runtime/components/ui/tabs/TabsTrigger.d.vue.ts +18 -0
- package/dist/runtime/components/ui/tabs/TabsTrigger.vue +27 -0
- package/dist/runtime/components/ui/tabs/TabsTrigger.vue.d.ts +18 -0
- package/dist/runtime/components/ui/tabs/index.d.ts +4 -0
- package/dist/runtime/components/ui/tabs/index.js +4 -0
- package/dist/runtime/components/ui/textarea/Textarea.d.vue.ts +13 -0
- package/dist/runtime/components/ui/textarea/Textarea.vue +27 -0
- package/dist/runtime/components/ui/textarea/Textarea.vue.d.ts +13 -0
- package/dist/runtime/components/ui/textarea/index.d.ts +1 -0
- package/dist/runtime/components/ui/textarea/index.js +1 -0
- package/dist/runtime/components/video.d.vue.ts +16 -0
- package/dist/runtime/components/video.vue +40 -0
- package/dist/runtime/components/video.vue.d.ts +16 -0
- package/dist/runtime/composables/useCopy.d.ts +5 -0
- package/dist/runtime/composables/useCopy.js +42 -0
- package/dist/runtime/composables/useCountDown.d.ts +4 -0
- package/dist/runtime/composables/useCountDown.js +47 -0
- package/dist/runtime/plugins/alert.d.ts +22 -0
- package/dist/runtime/plugins/alert.js +111 -0
- package/dist/runtime/plugins/dayjs.d.ts +8 -0
- package/dist/runtime/plugins/dayjs.js +19 -0
- package/dist/runtime/plugins/loadingPage.d.ts +2 -0
- package/dist/runtime/plugins/loadingPage.js +89 -0
- package/dist/runtime/plugins/lodash.d.ts +2 -0
- package/dist/runtime/plugins/lodash.js +5 -0
- package/dist/runtime/plugins/quill.client.d.ts +7 -0
- package/dist/runtime/plugins/quill.client.js +9 -0
- package/dist/runtime/plugins/re-captcha.d.ts +2 -0
- package/dist/runtime/plugins/re-captcha.js +13 -0
- package/dist/runtime/plugins/shadcn.d.ts +2 -0
- package/dist/runtime/plugins/shadcn.js +5 -0
- package/dist/runtime/plugins/toast.d.ts +30 -0
- package/dist/runtime/plugins/toast.js +104 -0
- package/dist/runtime/utils/phone.d.ts +3 -0
- package/dist/runtime/utils/phone.js +39 -0
- package/dist/types.d.mts +3 -0
- package/package.json +90 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
confirmedText?: string;
|
|
3
|
+
};
|
|
4
|
+
type __VLS_ModelProps = {
|
|
5
|
+
modelValue?: boolean;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
complete: (...args: any[]) => void;
|
|
10
|
+
"update:modelValue": (value: boolean) => void;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
12
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
13
|
+
onComplete?: ((...args: any[]) => any) | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
confirmedText: string;
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "vue";
|
|
2
|
+
export interface ModalProps {
|
|
3
|
+
class?: HTMLAttributes["class"];
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
footer?: string;
|
|
7
|
+
disabledCloseBtn?: boolean;
|
|
8
|
+
}
|
|
9
|
+
type __VLS_Props = ModalProps;
|
|
10
|
+
type __VLS_ModelProps = {
|
|
11
|
+
modelValue?: boolean;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
14
|
+
declare var __VLS_20: {}, __VLS_27: {}, __VLS_34: {}, __VLS_36: {
|
|
15
|
+
meta: any;
|
|
16
|
+
}, __VLS_43: {
|
|
17
|
+
meta: any;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_Slots = {} & {
|
|
20
|
+
header?: (props: typeof __VLS_20) => any;
|
|
21
|
+
} & {
|
|
22
|
+
title?: (props: typeof __VLS_27) => any;
|
|
23
|
+
} & {
|
|
24
|
+
description?: (props: typeof __VLS_34) => any;
|
|
25
|
+
} & {
|
|
26
|
+
default?: (props: typeof __VLS_36) => any;
|
|
27
|
+
} & {
|
|
28
|
+
footer?: (props: typeof __VLS_43) => any;
|
|
29
|
+
};
|
|
30
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
|
+
"update:modelValue": (value: boolean) => any;
|
|
32
|
+
} & {
|
|
33
|
+
submit: () => any;
|
|
34
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
35
|
+
onSubmit?: (() => any) | undefined;
|
|
36
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
37
|
+
}>, {
|
|
38
|
+
disabledCloseBtn: boolean;
|
|
39
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
40
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
41
|
+
declare const _default: typeof __VLS_export;
|
|
42
|
+
export default _default;
|
|
43
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
44
|
+
new (): {
|
|
45
|
+
$slots: S;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<ShadDialog v-model:open="isOpen">
|
|
3
|
+
<ShadDialogContent
|
|
4
|
+
:class="props.class"
|
|
5
|
+
:disabled-close-btn="props.disabledCloseBtn"
|
|
6
|
+
v-slot="{ meta }"
|
|
7
|
+
@submit="onSubmit"
|
|
8
|
+
>
|
|
9
|
+
<ShadDialogHeader>
|
|
10
|
+
<slot name="header">
|
|
11
|
+
<ShadDialogTitle>
|
|
12
|
+
<slot name="title">
|
|
13
|
+
{{ props.title }}
|
|
14
|
+
</slot>
|
|
15
|
+
</ShadDialogTitle>
|
|
16
|
+
<ShadDialogDescription>
|
|
17
|
+
<slot name="description">
|
|
18
|
+
{{ props.description }}
|
|
19
|
+
</slot>
|
|
20
|
+
</ShadDialogDescription>
|
|
21
|
+
</slot>
|
|
22
|
+
</ShadDialogHeader>
|
|
23
|
+
<slot name="default" :meta="meta" />
|
|
24
|
+
<ShadDialogFooter>
|
|
25
|
+
<slot name="footer" :meta="meta" />
|
|
26
|
+
</ShadDialogFooter>
|
|
27
|
+
</ShadDialogContent>
|
|
28
|
+
</ShadDialog>
|
|
29
|
+
</template>
|
|
30
|
+
|
|
31
|
+
<script setup>
|
|
32
|
+
const emits = defineEmits(["submit"]);
|
|
33
|
+
const props = defineProps({
|
|
34
|
+
class: { type: null, required: false },
|
|
35
|
+
title: { type: String, required: false },
|
|
36
|
+
description: { type: String, required: false },
|
|
37
|
+
footer: { type: String, required: false },
|
|
38
|
+
disabledCloseBtn: { type: Boolean, required: false, default: false }
|
|
39
|
+
});
|
|
40
|
+
const isOpen = defineModel({ type: Boolean, ...{
|
|
41
|
+
default: false
|
|
42
|
+
} });
|
|
43
|
+
const onSubmit = (e) => {
|
|
44
|
+
emits("submit");
|
|
45
|
+
};
|
|
46
|
+
</script>
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "vue";
|
|
2
|
+
export interface ModalProps {
|
|
3
|
+
class?: HTMLAttributes["class"];
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
footer?: string;
|
|
7
|
+
disabledCloseBtn?: boolean;
|
|
8
|
+
}
|
|
9
|
+
type __VLS_Props = ModalProps;
|
|
10
|
+
type __VLS_ModelProps = {
|
|
11
|
+
modelValue?: boolean;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
14
|
+
declare var __VLS_20: {}, __VLS_27: {}, __VLS_34: {}, __VLS_36: {
|
|
15
|
+
meta: any;
|
|
16
|
+
}, __VLS_43: {
|
|
17
|
+
meta: any;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_Slots = {} & {
|
|
20
|
+
header?: (props: typeof __VLS_20) => any;
|
|
21
|
+
} & {
|
|
22
|
+
title?: (props: typeof __VLS_27) => any;
|
|
23
|
+
} & {
|
|
24
|
+
description?: (props: typeof __VLS_34) => any;
|
|
25
|
+
} & {
|
|
26
|
+
default?: (props: typeof __VLS_36) => any;
|
|
27
|
+
} & {
|
|
28
|
+
footer?: (props: typeof __VLS_43) => any;
|
|
29
|
+
};
|
|
30
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
|
+
"update:modelValue": (value: boolean) => any;
|
|
32
|
+
} & {
|
|
33
|
+
submit: () => any;
|
|
34
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
35
|
+
onSubmit?: (() => any) | undefined;
|
|
36
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
37
|
+
}>, {
|
|
38
|
+
disabledCloseBtn: boolean;
|
|
39
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
40
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
41
|
+
declare const _default: typeof __VLS_export;
|
|
42
|
+
export default _default;
|
|
43
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
44
|
+
new (): {
|
|
45
|
+
$slots: S;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
interface PaginationProps {
|
|
2
|
+
totalPage?: number;
|
|
3
|
+
}
|
|
4
|
+
type __VLS_Props = PaginationProps;
|
|
5
|
+
type __VLS_ModelProps = {
|
|
6
|
+
modelValue?: number;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
"update:modelValue": (value: number) => any;
|
|
11
|
+
} & {
|
|
12
|
+
"change-item-per-page": (value: number) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
15
|
+
"onChange-item-per-page"?: ((value: number) => any) | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
totalPage: number;
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<ShadPagination
|
|
3
|
+
v-slot="{ page }"
|
|
4
|
+
:items-per-page="itemPerPage"
|
|
5
|
+
:total="props.totalPage"
|
|
6
|
+
v-model:page="pageModel"
|
|
7
|
+
>
|
|
8
|
+
<ShadPaginationContent v-slot="{ items }">
|
|
9
|
+
<ShadPaginationFirst />
|
|
10
|
+
<ShadPaginationPrevious />
|
|
11
|
+
<template v-for="(item, index) in items" :key="index">
|
|
12
|
+
<ShadPaginationItem
|
|
13
|
+
v-if="item.type === 'page'"
|
|
14
|
+
:value="item.value"
|
|
15
|
+
:is-active="item.value === page"
|
|
16
|
+
>
|
|
17
|
+
{{ item.value }}
|
|
18
|
+
</ShadPaginationItem>
|
|
19
|
+
</template>
|
|
20
|
+
<ShadPaginationEllipsis />
|
|
21
|
+
<ShadPaginationNext />
|
|
22
|
+
<ShadPaginationLast />
|
|
23
|
+
|
|
24
|
+
<ShadDropdownMenu>
|
|
25
|
+
<ShadDropdownMenuTrigger>
|
|
26
|
+
<Button variant="outline">
|
|
27
|
+
<div class="flex gap-2 items-center">
|
|
28
|
+
<div>{{ itemPerPage }} / หน้า</div>
|
|
29
|
+
<Icon name="lucide:chevron-down" />
|
|
30
|
+
</div>
|
|
31
|
+
</Button>
|
|
32
|
+
</ShadDropdownMenuTrigger>
|
|
33
|
+
<ShadDropdownMenuContent class="max-h-96">
|
|
34
|
+
<ShadDropdownMenuItem
|
|
35
|
+
v-for="n in [10, 50, 100]"
|
|
36
|
+
:key="n"
|
|
37
|
+
@click="onSlectItemPerPage(n)"
|
|
38
|
+
>
|
|
39
|
+
{{ n }} / หน้า
|
|
40
|
+
</ShadDropdownMenuItem>
|
|
41
|
+
</ShadDropdownMenuContent>
|
|
42
|
+
</ShadDropdownMenu>
|
|
43
|
+
</ShadPaginationContent>
|
|
44
|
+
</ShadPagination>
|
|
45
|
+
</template>
|
|
46
|
+
|
|
47
|
+
<script setup>
|
|
48
|
+
import { ref } from "vue";
|
|
49
|
+
const emits = defineEmits(["change-item-per-page"]);
|
|
50
|
+
const props = defineProps({
|
|
51
|
+
totalPage: { type: Number, required: false, default: 1 }
|
|
52
|
+
});
|
|
53
|
+
const pageModel = defineModel({ type: Number, ...{
|
|
54
|
+
default: 1
|
|
55
|
+
} });
|
|
56
|
+
const itemPerPage = ref(10);
|
|
57
|
+
const onSlectItemPerPage = (value) => {
|
|
58
|
+
itemPerPage.value = value;
|
|
59
|
+
};
|
|
60
|
+
</script>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
interface PaginationProps {
|
|
2
|
+
totalPage?: number;
|
|
3
|
+
}
|
|
4
|
+
type __VLS_Props = PaginationProps;
|
|
5
|
+
type __VLS_ModelProps = {
|
|
6
|
+
modelValue?: number;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
"update:modelValue": (value: number) => any;
|
|
11
|
+
} & {
|
|
12
|
+
"change-item-per-page": (value: number) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
15
|
+
"onChange-item-per-page"?: ((value: number) => any) | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
totalPage: number;
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
item?: File | null;
|
|
3
|
+
}
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
|
+
complete: (file: File) => any;
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
7
|
+
onComplete?: ((file: File) => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<Dropdown>
|
|
3
|
+
<template #default="{ isOpen }">
|
|
4
|
+
<Button
|
|
5
|
+
prepend-icon="lucide:camera"
|
|
6
|
+
size="small"
|
|
7
|
+
variant="flat-outline"
|
|
8
|
+
color="black"
|
|
9
|
+
>
|
|
10
|
+
แก้ไขรูปภาพหน้าปก</Button
|
|
11
|
+
>
|
|
12
|
+
</template>
|
|
13
|
+
<template #content>
|
|
14
|
+
<div
|
|
15
|
+
class="flex gap-[4px] px-[8px] py-[8px] items-center cursor-pointer hover:bg-gray-100"
|
|
16
|
+
@click="onEditImage"
|
|
17
|
+
>
|
|
18
|
+
<Icon name="lucide:crop" />
|
|
19
|
+
<div class="font-body-medium">แก้ไขรูปภาพหน้าปก</div>
|
|
20
|
+
</div>
|
|
21
|
+
<div
|
|
22
|
+
class="flex gap-[4px] px-[8px] py-[8px] items-center cursor-pointer hover:bg-gray-100"
|
|
23
|
+
@click="onUploadImage"
|
|
24
|
+
>
|
|
25
|
+
<Icon name="lucide:upload" />
|
|
26
|
+
<div class="font-body-medium">อัปโหลดรูปภาพ</div>
|
|
27
|
+
</div>
|
|
28
|
+
</template>
|
|
29
|
+
</Dropdown>
|
|
30
|
+
<input
|
|
31
|
+
ref="fileInputRef"
|
|
32
|
+
type="file"
|
|
33
|
+
accept="image/*"
|
|
34
|
+
@change="onFileChange"
|
|
35
|
+
class="hidden"
|
|
36
|
+
/>
|
|
37
|
+
<Modal
|
|
38
|
+
title="ปรับแต่งรูปภาพหน้าปก"
|
|
39
|
+
:width="632"
|
|
40
|
+
v-model="isOpenModal"
|
|
41
|
+
divider
|
|
42
|
+
disabled-padding-content
|
|
43
|
+
>
|
|
44
|
+
<div
|
|
45
|
+
class="flex justify-center items-center rounded-[8px] overflow-hidden relative p-[16px]"
|
|
46
|
+
>
|
|
47
|
+
<ImageCropper
|
|
48
|
+
v-if="imageUrl"
|
|
49
|
+
ref="cropperRef"
|
|
50
|
+
dragMode="move"
|
|
51
|
+
:container-style="{
|
|
52
|
+
width: '600px',
|
|
53
|
+
height: '240px',
|
|
54
|
+
overflow: 'hidden',
|
|
55
|
+
position: 'relative'
|
|
56
|
+
}"
|
|
57
|
+
:img-style="{ display: 'block', maxWidth: '100%', maxHeight: '100%' }"
|
|
58
|
+
:src="imageUrl"
|
|
59
|
+
:aspect-ratio="5 / 2"
|
|
60
|
+
:initial-aspect-ratio="5 / 2"
|
|
61
|
+
:view-mode="3"
|
|
62
|
+
:guides="false"
|
|
63
|
+
:movable="true"
|
|
64
|
+
:crop-box-movable="false"
|
|
65
|
+
:crop-box-resizable="false"
|
|
66
|
+
:background="false"
|
|
67
|
+
:center="false"
|
|
68
|
+
:auto-crop-area="1"
|
|
69
|
+
:responsive="true"
|
|
70
|
+
:zoom-on-wheel="false"
|
|
71
|
+
:zoom-on-touch="false"
|
|
72
|
+
:zoomable="false"
|
|
73
|
+
:rotatable="false"
|
|
74
|
+
:scalable="false"
|
|
75
|
+
/>
|
|
76
|
+
|
|
77
|
+
<div
|
|
78
|
+
class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 pointer-events-none"
|
|
79
|
+
>
|
|
80
|
+
<div
|
|
81
|
+
class="flex h-[40px] items-center gap-[8px] px-[16px] py-[8px] rounded-[8px] bg-black/60"
|
|
82
|
+
>
|
|
83
|
+
<Icon name="lucide:move" color="white" />
|
|
84
|
+
<div class="text-white font-body-large">ลากเพื่อเปลี่ยนตำแหน่ง</div>
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
|
|
89
|
+
<template #footer>
|
|
90
|
+
<div class="flex items-center gap-[16px] w-full">
|
|
91
|
+
<Button variant="outline" full-width @click="onCancel"> ยกเลิก </Button>
|
|
92
|
+
<Button color="primary" full-width @click="onCropImage">
|
|
93
|
+
บันทึก
|
|
94
|
+
</Button>
|
|
95
|
+
</div>
|
|
96
|
+
</template>
|
|
97
|
+
</Modal>
|
|
98
|
+
</template>
|
|
99
|
+
|
|
100
|
+
<script setup>
|
|
101
|
+
import { ref } from "vue";
|
|
102
|
+
const cropperRef = ref(null);
|
|
103
|
+
const fileInputRef = ref(null);
|
|
104
|
+
const imageUrl = ref(null);
|
|
105
|
+
const isOpenModal = ref(false);
|
|
106
|
+
const selectedFile = ref(null);
|
|
107
|
+
const originalFile = ref(null);
|
|
108
|
+
const props = defineProps({
|
|
109
|
+
item: { type: null, required: false }
|
|
110
|
+
});
|
|
111
|
+
const emit = defineEmits(["complete"]);
|
|
112
|
+
const onEditImage = () => {
|
|
113
|
+
const fileToEdit = originalFile.value || props.item;
|
|
114
|
+
if (fileToEdit) {
|
|
115
|
+
selectedFile.value = fileToEdit;
|
|
116
|
+
if (imageUrl.value) {
|
|
117
|
+
URL.revokeObjectURL(imageUrl.value);
|
|
118
|
+
}
|
|
119
|
+
imageUrl.value = URL.createObjectURL(fileToEdit);
|
|
120
|
+
isOpenModal.value = true;
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
const onUploadImage = () => {
|
|
124
|
+
fileInputRef.value?.click();
|
|
125
|
+
};
|
|
126
|
+
const onFileChange = (event) => {
|
|
127
|
+
const input = event.target;
|
|
128
|
+
if (input.files && input.files.length > 0) {
|
|
129
|
+
const file = input.files[0];
|
|
130
|
+
if (file) {
|
|
131
|
+
selectedFile.value = file;
|
|
132
|
+
originalFile.value = file;
|
|
133
|
+
if (imageUrl.value) {
|
|
134
|
+
URL.revokeObjectURL(imageUrl.value);
|
|
135
|
+
}
|
|
136
|
+
imageUrl.value = URL.createObjectURL(file);
|
|
137
|
+
isOpenModal.value = true;
|
|
138
|
+
input.value = "";
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
const onCancel = () => {
|
|
143
|
+
isOpenModal.value = false;
|
|
144
|
+
if (imageUrl.value) {
|
|
145
|
+
URL.revokeObjectURL(imageUrl.value);
|
|
146
|
+
imageUrl.value = null;
|
|
147
|
+
}
|
|
148
|
+
selectedFile.value = null;
|
|
149
|
+
};
|
|
150
|
+
const onCropImage = async () => {
|
|
151
|
+
if (!cropperRef.value) return;
|
|
152
|
+
const cropper = cropperRef.value;
|
|
153
|
+
const croppedFile = await getFileFromCanvas(
|
|
154
|
+
cropper,
|
|
155
|
+
"image_cover_crop.jpg",
|
|
156
|
+
"image/jpeg"
|
|
157
|
+
);
|
|
158
|
+
emit("complete", croppedFile);
|
|
159
|
+
isOpenModal.value = false;
|
|
160
|
+
if (imageUrl.value) {
|
|
161
|
+
URL.revokeObjectURL(imageUrl.value);
|
|
162
|
+
imageUrl.value = null;
|
|
163
|
+
}
|
|
164
|
+
selectedFile.value = null;
|
|
165
|
+
};
|
|
166
|
+
function getFileFromCanvas(cropper, fileName, mimeType = "image/jpeg") {
|
|
167
|
+
return new Promise((resolve, reject) => {
|
|
168
|
+
const canvas = cropper.getCroppedCanvas();
|
|
169
|
+
if (!canvas || typeof canvas.toBlob !== "function") {
|
|
170
|
+
return reject(new Error("Canvas \u0E2B\u0E23\u0E37\u0E2D toBlob \u0E44\u0E21\u0E48\u0E1E\u0E23\u0E49\u0E2D\u0E21\u0E43\u0E0A\u0E49\u0E07\u0E32\u0E19"));
|
|
171
|
+
}
|
|
172
|
+
canvas.toBlob((blob) => {
|
|
173
|
+
if (!blob) {
|
|
174
|
+
return reject(new Error("\u0E2A\u0E23\u0E49\u0E32\u0E07 Blob \u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08"));
|
|
175
|
+
}
|
|
176
|
+
const file = new File([blob], fileName, { type: mimeType });
|
|
177
|
+
resolve(file);
|
|
178
|
+
}, mimeType);
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
</script>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
item?: File | null;
|
|
3
|
+
}
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
|
+
complete: (file: File) => any;
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
7
|
+
onComplete?: ((file: File) => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type __VLS_ModelProps = {
|
|
2
|
+
modelValue?: File | null;
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_1: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_1) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
"update:modelValue": (value: File | null | undefined) => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
11
|
+
"onUpdate:modelValue"?: ((value: File | null | undefined) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<label class="relative cursor-pointer">
|
|
3
|
+
<input
|
|
4
|
+
ref="fileInputRef"
|
|
5
|
+
type="file"
|
|
6
|
+
accept="image/*"
|
|
7
|
+
class="absolute w-full h-full hidden cursor-pointer"
|
|
8
|
+
@change="onChange"
|
|
9
|
+
/>
|
|
10
|
+
|
|
11
|
+
<div @click="onTriggerFileInput">
|
|
12
|
+
<slot name="default" />
|
|
13
|
+
</div>
|
|
14
|
+
</label>
|
|
15
|
+
|
|
16
|
+
<Modal
|
|
17
|
+
title="ปรับแต่งรูปภาพหน้าปก"
|
|
18
|
+
width="500"
|
|
19
|
+
title-position="left"
|
|
20
|
+
divider-header
|
|
21
|
+
divider-footer
|
|
22
|
+
disabled-padding-content
|
|
23
|
+
v-model="isOpenModal"
|
|
24
|
+
>
|
|
25
|
+
<div
|
|
26
|
+
class="h-[500px] flex justify-center items-center overflow-hidden circular-cropper-container"
|
|
27
|
+
>
|
|
28
|
+
<ImageCropper
|
|
29
|
+
v-if="imageFile"
|
|
30
|
+
ref="cropperRef"
|
|
31
|
+
dragMode="move"
|
|
32
|
+
:container-style="{
|
|
33
|
+
width: '320px',
|
|
34
|
+
height: '320px',
|
|
35
|
+
overflow: 'visible',
|
|
36
|
+
position: 'relative'
|
|
37
|
+
}"
|
|
38
|
+
:img-style="{ display: 'block', maxWidth: '100%', maxHeight: '100%' }"
|
|
39
|
+
:src="imageUrl"
|
|
40
|
+
:aspect-ratio="1"
|
|
41
|
+
:initial-aspect-ratio="1"
|
|
42
|
+
:view-mode="3"
|
|
43
|
+
:guides="false"
|
|
44
|
+
:movable="true"
|
|
45
|
+
:crop-box-movable="false"
|
|
46
|
+
:crop-box-resizable="false"
|
|
47
|
+
:background="false"
|
|
48
|
+
:center="false"
|
|
49
|
+
:min-crop-box-width="320"
|
|
50
|
+
:min-crop-box-height="320"
|
|
51
|
+
:min-canvas-width="320"
|
|
52
|
+
:min-canvas-height="320"
|
|
53
|
+
:auto-crop-area="1"
|
|
54
|
+
:responsive="true"
|
|
55
|
+
:zoom-on-wheel="false"
|
|
56
|
+
:zoom-on-touch="false"
|
|
57
|
+
@zoom="onZoom"
|
|
58
|
+
/>
|
|
59
|
+
</div>
|
|
60
|
+
|
|
61
|
+
<div class="p-[16px] flex gap-[16px] items-center text-mercury">
|
|
62
|
+
<Button variant="text" disabled-padding @click="onZoomOut">
|
|
63
|
+
<Icon name="f7:minus" size="16" />
|
|
64
|
+
</Button>
|
|
65
|
+
<InputSlider
|
|
66
|
+
thumb-size="16"
|
|
67
|
+
:min="isZoomMin"
|
|
68
|
+
:max="isZoomMax"
|
|
69
|
+
:step="isZoomStep"
|
|
70
|
+
full-width
|
|
71
|
+
v-model="isZoom"
|
|
72
|
+
/>
|
|
73
|
+
<Button variant="text" disabled-padding @click="onZoomIn">
|
|
74
|
+
<Icon name="f7:plus" size="16" />
|
|
75
|
+
</Button>
|
|
76
|
+
</div>
|
|
77
|
+
|
|
78
|
+
<template #footer>
|
|
79
|
+
<div class="flex items-center gap-[16px]">
|
|
80
|
+
<Button variant="outline" full-width @click="isOpenModal = false">
|
|
81
|
+
ยกเลิก
|
|
82
|
+
</Button>
|
|
83
|
+
<Button color="primary" full-width @click="onCropImage">
|
|
84
|
+
บันทึก
|
|
85
|
+
</Button>
|
|
86
|
+
</div>
|
|
87
|
+
</template>
|
|
88
|
+
</Modal>
|
|
89
|
+
</template>
|
|
90
|
+
|
|
91
|
+
<script setup>
|
|
92
|
+
import { ref, watch } from "vue";
|
|
93
|
+
const fileInputRef = ref(null);
|
|
94
|
+
const cropperRef = ref(null);
|
|
95
|
+
const isOpenModal = ref(false);
|
|
96
|
+
const imageFile = ref();
|
|
97
|
+
const imageUrl = ref(null);
|
|
98
|
+
const isZoom = ref(0);
|
|
99
|
+
const isZoomMin = 0;
|
|
100
|
+
const isZoomMax = 5;
|
|
101
|
+
const isZoomStep = 1;
|
|
102
|
+
const fileCrop = defineModel({ type: null });
|
|
103
|
+
const onTriggerFileInput = (event) => {
|
|
104
|
+
event.preventDefault();
|
|
105
|
+
fileInputRef.value?.click();
|
|
106
|
+
};
|
|
107
|
+
const onZoomOut = () => {
|
|
108
|
+
if (isZoom.value > isZoomMin) {
|
|
109
|
+
isZoom.value -= isZoomStep;
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
const onZoomIn = () => {
|
|
113
|
+
if (isZoom.value < isZoomMax) {
|
|
114
|
+
isZoom.value += isZoomStep;
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
const onChange = (event) => {
|
|
118
|
+
const input = event.target;
|
|
119
|
+
if (input.files && input.files.length > 0) {
|
|
120
|
+
imageFile.value = input.files[0];
|
|
121
|
+
imageUrl.value = URL.createObjectURL(imageFile.value);
|
|
122
|
+
input.value = "";
|
|
123
|
+
isOpenModal.value = true;
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
const onZoom = (event) => {
|
|
127
|
+
const numberZoom = event.detail.ratio;
|
|
128
|
+
if (numberZoom <= isZoomMax) {
|
|
129
|
+
isZoom.value = numberZoom;
|
|
130
|
+
} else {
|
|
131
|
+
event.preventDefault();
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
const onCropImage = async () => {
|
|
135
|
+
if (!cropperRef.value) return;
|
|
136
|
+
const cropper = cropperRef.value;
|
|
137
|
+
fileCrop.value = await getFileFromCanvas(
|
|
138
|
+
cropper,
|
|
139
|
+
"image_crop.jpg",
|
|
140
|
+
"image/jpeg"
|
|
141
|
+
);
|
|
142
|
+
isOpenModal.value = false;
|
|
143
|
+
};
|
|
144
|
+
function getFileFromCanvas(cropper, fileName, mimeType = "image/jpeg") {
|
|
145
|
+
return new Promise((resolve, reject) => {
|
|
146
|
+
const canvas = cropper.getCroppedCanvas();
|
|
147
|
+
if (!canvas || typeof canvas.toBlob !== "function") {
|
|
148
|
+
return reject(new Error("Canvas \u0E2B\u0E23\u0E37\u0E2D toBlob \u0E44\u0E21\u0E48\u0E1E\u0E23\u0E49\u0E2D\u0E21\u0E43\u0E0A\u0E49\u0E07\u0E32\u0E19"));
|
|
149
|
+
}
|
|
150
|
+
canvas.toBlob((blob) => {
|
|
151
|
+
if (!blob) {
|
|
152
|
+
return reject(new Error("\u0E2A\u0E23\u0E49\u0E32\u0E07 Blob \u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08"));
|
|
153
|
+
}
|
|
154
|
+
const file = new File([blob], fileName, { type: mimeType });
|
|
155
|
+
resolve(file);
|
|
156
|
+
}, mimeType);
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
watch(
|
|
160
|
+
() => isZoom.value,
|
|
161
|
+
(newZoom) => {
|
|
162
|
+
if (cropperRef.value) {
|
|
163
|
+
const cropper = cropperRef.value;
|
|
164
|
+
cropper.zoomTo(newZoom);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
);
|
|
168
|
+
</script>
|
|
169
|
+
|
|
170
|
+
<style>
|
|
171
|
+
.circular-cropper-container .cropper-view-box{border:2px solid var(--color-primary)!important;border-radius:50%!important}.circular-cropper-container .cropper-face,.circular-cropper-container .cropper-modal{background-color:transparent!important}.circular-cropper-container .cropper-wrap-box{opacity:.25!important;overflow:visible!important}
|
|
172
|
+
</style>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type __VLS_ModelProps = {
|
|
2
|
+
modelValue?: File | null;
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_1: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_1) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
"update:modelValue": (value: File | null | undefined) => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
11
|
+
"onUpdate:modelValue"?: ((value: File | null | undefined) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|