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,40 @@
|
|
|
1
|
+
import type { PickerOptionMenuUserProps } from "@/types/components/picker/picker-option-menu/picker-option-menu-user";
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<PickerOptionMenuUserProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
3
|
+
"blog-pin": () => any;
|
|
4
|
+
"blog-unpin": () => any;
|
|
5
|
+
"blog-edit": () => any;
|
|
6
|
+
"report-announce": () => any;
|
|
7
|
+
"profile-edit": () => any;
|
|
8
|
+
"profile-share": () => any;
|
|
9
|
+
"profile-follower-delete": () => any;
|
|
10
|
+
"profile-block": () => any;
|
|
11
|
+
"blog-delete": () => any;
|
|
12
|
+
"report-blog": () => any;
|
|
13
|
+
"report-place": () => any;
|
|
14
|
+
"report-profile": () => any;
|
|
15
|
+
"report-review": () => any;
|
|
16
|
+
"place-close-duplicate": () => any;
|
|
17
|
+
"review-edit": () => any;
|
|
18
|
+
"review-delete": () => any;
|
|
19
|
+
archive: () => any;
|
|
20
|
+
}, string, import("vue").PublicProps, Readonly<PickerOptionMenuUserProps> & Readonly<{
|
|
21
|
+
"onBlog-pin"?: (() => any) | undefined;
|
|
22
|
+
"onBlog-unpin"?: (() => any) | undefined;
|
|
23
|
+
"onBlog-edit"?: (() => any) | undefined;
|
|
24
|
+
"onReport-announce"?: (() => any) | undefined;
|
|
25
|
+
"onProfile-edit"?: (() => any) | undefined;
|
|
26
|
+
"onProfile-share"?: (() => any) | undefined;
|
|
27
|
+
"onProfile-follower-delete"?: (() => any) | undefined;
|
|
28
|
+
"onProfile-block"?: (() => any) | undefined;
|
|
29
|
+
"onBlog-delete"?: (() => any) | undefined;
|
|
30
|
+
"onReport-blog"?: (() => any) | undefined;
|
|
31
|
+
"onReport-place"?: (() => any) | undefined;
|
|
32
|
+
"onReport-profile"?: (() => any) | undefined;
|
|
33
|
+
"onReport-review"?: (() => any) | undefined;
|
|
34
|
+
"onPlace-close-duplicate"?: (() => any) | undefined;
|
|
35
|
+
"onReview-edit"?: (() => any) | undefined;
|
|
36
|
+
"onReview-delete"?: (() => any) | undefined;
|
|
37
|
+
onArchive?: (() => any) | undefined;
|
|
38
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
39
|
+
declare const _default: typeof __VLS_export;
|
|
40
|
+
export default _default;
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<PickerOptionMenu
|
|
3
|
+
:items="items"
|
|
4
|
+
:variant="props.variant"
|
|
5
|
+
:disabled-padding="props.disabledPadding"
|
|
6
|
+
:circle="props.circle"
|
|
7
|
+
:horizontal="props.horizontal"
|
|
8
|
+
:size="props.size"
|
|
9
|
+
:icon-size="props.iconSize"
|
|
10
|
+
:disabled="props.disabled"
|
|
11
|
+
/>
|
|
12
|
+
|
|
13
|
+
<ModalShare v-model="isOpenModalShare" />
|
|
14
|
+
<ModalReport state v-model="isOpenModalReport" />
|
|
15
|
+
<ModalProfileEdit v-model="isOpenModalProfileEdit" />
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script setup>
|
|
19
|
+
import { computed, ref } from "vue";
|
|
20
|
+
const emit = defineEmits(["profile-edit", "profile-share", "profile-follower-delete", "profile-block", "blog-pin", "blog-unpin", "blog-edit", "blog-delete", "report-blog", "report-place", "report-profile", "report-announce", "report-review", "place-close-duplicate", "review-edit", "review-delete", "archive"]);
|
|
21
|
+
const props = defineProps({
|
|
22
|
+
state: { type: String, required: false },
|
|
23
|
+
items: { type: Array, required: false },
|
|
24
|
+
variant: { type: null, required: false },
|
|
25
|
+
circle: { type: Boolean, required: false },
|
|
26
|
+
horizontal: { type: Boolean, required: false },
|
|
27
|
+
size: { type: null, required: false },
|
|
28
|
+
iconSize: { type: String, required: false },
|
|
29
|
+
disabledPadding: { type: Boolean, required: false },
|
|
30
|
+
disabled: { type: Boolean, required: false }
|
|
31
|
+
});
|
|
32
|
+
const isOpenModalShare = ref(false);
|
|
33
|
+
const isOpenModalReport = ref(false);
|
|
34
|
+
const isOpenModalProfileEdit = ref(false);
|
|
35
|
+
const reportState = ref();
|
|
36
|
+
const menu = [
|
|
37
|
+
{
|
|
38
|
+
label: "\u0E41\u0E01\u0E49\u0E44\u0E02\u0E42\u0E1B\u0E23\u0E44\u0E1F\u0E25\u0E4C",
|
|
39
|
+
name: "profile-edit",
|
|
40
|
+
icon: "lucide:square-pen",
|
|
41
|
+
action: () => {
|
|
42
|
+
isOpenModalProfileEdit.value = true;
|
|
43
|
+
emit("profile-edit");
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
label: "\u0E41\u0E02\u0E23\u0E4C\u0E42\u0E1B\u0E23\u0E44\u0E1F\u0E25\u0E4C",
|
|
48
|
+
name: "profile-share",
|
|
49
|
+
icon: "fa6-regular:share-from-square",
|
|
50
|
+
action: () => {
|
|
51
|
+
isOpenModalShare.value = true;
|
|
52
|
+
emit("profile-share");
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
label: "\u0E25\u0E1A\u0E1C\u0E39\u0E49\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21\u0E23\u0E32\u0E22\u0E19\u0E35\u0E49",
|
|
57
|
+
name: "profile-follower-delete",
|
|
58
|
+
icon: "fa6-solid:user-minus",
|
|
59
|
+
action: () => {
|
|
60
|
+
emit("profile-follower-delete");
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
label: "\u0E1A\u0E25\u0E47\u0E2D\u0E04",
|
|
65
|
+
name: "profile-block",
|
|
66
|
+
icon: "mdi:block-helper",
|
|
67
|
+
action: () => {
|
|
68
|
+
emit("profile-block");
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
label: "\u0E04\u0E25\u0E31\u0E07",
|
|
73
|
+
name: "archive",
|
|
74
|
+
icon: "lucide:archive",
|
|
75
|
+
action: () => {
|
|
76
|
+
emit("archive");
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
label: "\u0E1B\u0E31\u0E01\u0E2B\u0E21\u0E38\u0E14\u0E1A\u0E25\u0E47\u0E2D\u0E04",
|
|
81
|
+
name: "blog-pin",
|
|
82
|
+
icon: "lucide:pin",
|
|
83
|
+
action: () => {
|
|
84
|
+
emit("blog-pin");
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
label: "\u0E40\u0E25\u0E34\u0E01\u0E1B\u0E31\u0E01\u0E2B\u0E21\u0E38\u0E14\u0E1A\u0E25\u0E47\u0E2D\u0E04",
|
|
89
|
+
name: "blog-unpin",
|
|
90
|
+
icon: "lucide:pin-off",
|
|
91
|
+
action: () => {
|
|
92
|
+
emit("blog-unpin");
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
label: "\u0E41\u0E01\u0E49\u0E44\u0E02\u0E1A\u0E25\u0E47\u0E2D\u0E01",
|
|
97
|
+
name: "blog-edit",
|
|
98
|
+
icon: "lucide:square-pen",
|
|
99
|
+
action: () => {
|
|
100
|
+
emit("blog-edit");
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
label: "\u0E25\u0E1A\u0E1A\u0E25\u0E47\u0E2D\u0E04\u0E19\u0E35\u0E49",
|
|
105
|
+
name: "blog-delete",
|
|
106
|
+
icon: "lucide:trash-2",
|
|
107
|
+
action: () => {
|
|
108
|
+
emit("blog-delete");
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
label: "\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1A\u0E25\u0E47\u0E2D\u0E01\u0E19\u0E35\u0E49",
|
|
113
|
+
name: "report-blog",
|
|
114
|
+
icon: "fa6-regular:flag",
|
|
115
|
+
action: () => {
|
|
116
|
+
isOpenModalReport.value = true;
|
|
117
|
+
reportState.value = "blog";
|
|
118
|
+
emit("report-blog");
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
label: "\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E42\u0E1B\u0E23\u0E44\u0E1F\u0E25\u0E4C\u0E19\u0E35\u0E49",
|
|
123
|
+
name: "report-profile",
|
|
124
|
+
icon: "fa6-regular:flag",
|
|
125
|
+
action: () => {
|
|
126
|
+
isOpenModalReport.value = true;
|
|
127
|
+
reportState.value = "profile";
|
|
128
|
+
emit("report-profile");
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
label: "\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19",
|
|
133
|
+
name: "report-place",
|
|
134
|
+
icon: "lsicon:circle-information-outline",
|
|
135
|
+
action: () => {
|
|
136
|
+
isOpenModalReport.value = true;
|
|
137
|
+
reportState.value = "place";
|
|
138
|
+
emit("report-place");
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
label: "\u0E41\u0E08\u0E49\u0E07\u0E1B\u0E34\u0E14\u0E2B\u0E23\u0E37\u0E2D\u0E0B\u0E49\u0E33",
|
|
143
|
+
name: "place-close-duplicate",
|
|
144
|
+
icon: "material-symbols:location-off-outline",
|
|
145
|
+
action: () => {
|
|
146
|
+
emit("place-close-duplicate");
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
label: "\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1B\u0E23\u0E30\u0E01\u0E32\u0E28\u0E19\u0E35\u0E49",
|
|
151
|
+
name: "report-announce",
|
|
152
|
+
icon: "fa6-regular:flag",
|
|
153
|
+
action: () => {
|
|
154
|
+
isOpenModalReport.value = true;
|
|
155
|
+
reportState.value = "announce";
|
|
156
|
+
emit("report-announce");
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
label: "\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E23\u0E35\u0E27\u0E34\u0E27\u0E19\u0E35\u0E49",
|
|
161
|
+
name: "report-review",
|
|
162
|
+
icon: "fa6-regular:flag",
|
|
163
|
+
action: () => {
|
|
164
|
+
isOpenModalReport.value = true;
|
|
165
|
+
reportState.value = "review";
|
|
166
|
+
emit("report-review");
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
label: "\u0E41\u0E01\u0E49\u0E44\u0E02",
|
|
171
|
+
name: "review-edit",
|
|
172
|
+
icon: "lucide:square-pen",
|
|
173
|
+
action: () => {
|
|
174
|
+
emit("review-edit");
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
label: "\u0E25\u0E1A",
|
|
179
|
+
name: "review-delete",
|
|
180
|
+
icon: "lucide:trash-2",
|
|
181
|
+
action: () => {
|
|
182
|
+
emit("review-delete");
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
];
|
|
186
|
+
const items = computed(() => {
|
|
187
|
+
if (props.state === "profile") {
|
|
188
|
+
return menu.filter(
|
|
189
|
+
(fil) => ["profile-share", "report-profile"].includes(fil.name)
|
|
190
|
+
);
|
|
191
|
+
}
|
|
192
|
+
if (props.state === "my-profile") {
|
|
193
|
+
return menu.filter(
|
|
194
|
+
(fil) => ["profile-edit", "profile-share", "archive"].includes(fil.name)
|
|
195
|
+
);
|
|
196
|
+
}
|
|
197
|
+
if (props.state === "follower") {
|
|
198
|
+
return menu.filter(
|
|
199
|
+
(fil) => ["profile-follower-delete", "profile-block", "report-profile"].includes(
|
|
200
|
+
fil.name
|
|
201
|
+
)
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
if (props.state === "blog") {
|
|
205
|
+
return menu.filter(
|
|
206
|
+
(fil) => ["report-blog"].includes(fil.name)
|
|
207
|
+
);
|
|
208
|
+
}
|
|
209
|
+
if (props.state === "my-blog") {
|
|
210
|
+
return menu.filter(
|
|
211
|
+
(fil) => ["blog-pin", "blog-edit", "blog-delete"].includes(fil.name)
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
if (props.state === "my-blog-pined") {
|
|
215
|
+
return menu.filter(
|
|
216
|
+
(fil) => ["blog-unpin", "blog-edit", "blog-delete"].includes(fil.name)
|
|
217
|
+
);
|
|
218
|
+
}
|
|
219
|
+
if (props.state === "place") {
|
|
220
|
+
return menu.filter(
|
|
221
|
+
(item) => ["report-place", "place-close-duplicate"].includes(item.name)
|
|
222
|
+
);
|
|
223
|
+
}
|
|
224
|
+
if (props.state === "report-announce") {
|
|
225
|
+
return menu.filter(
|
|
226
|
+
(item) => ["report-announce"].includes(item.name)
|
|
227
|
+
);
|
|
228
|
+
}
|
|
229
|
+
return menu;
|
|
230
|
+
});
|
|
231
|
+
</script>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { PickerOptionMenuUserProps } from "@/types/components/picker/picker-option-menu/picker-option-menu-user";
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<PickerOptionMenuUserProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
3
|
+
"blog-pin": () => any;
|
|
4
|
+
"blog-unpin": () => any;
|
|
5
|
+
"blog-edit": () => any;
|
|
6
|
+
"report-announce": () => any;
|
|
7
|
+
"profile-edit": () => any;
|
|
8
|
+
"profile-share": () => any;
|
|
9
|
+
"profile-follower-delete": () => any;
|
|
10
|
+
"profile-block": () => any;
|
|
11
|
+
"blog-delete": () => any;
|
|
12
|
+
"report-blog": () => any;
|
|
13
|
+
"report-place": () => any;
|
|
14
|
+
"report-profile": () => any;
|
|
15
|
+
"report-review": () => any;
|
|
16
|
+
"place-close-duplicate": () => any;
|
|
17
|
+
"review-edit": () => any;
|
|
18
|
+
"review-delete": () => any;
|
|
19
|
+
archive: () => any;
|
|
20
|
+
}, string, import("vue").PublicProps, Readonly<PickerOptionMenuUserProps> & Readonly<{
|
|
21
|
+
"onBlog-pin"?: (() => any) | undefined;
|
|
22
|
+
"onBlog-unpin"?: (() => any) | undefined;
|
|
23
|
+
"onBlog-edit"?: (() => any) | undefined;
|
|
24
|
+
"onReport-announce"?: (() => any) | undefined;
|
|
25
|
+
"onProfile-edit"?: (() => any) | undefined;
|
|
26
|
+
"onProfile-share"?: (() => any) | undefined;
|
|
27
|
+
"onProfile-follower-delete"?: (() => any) | undefined;
|
|
28
|
+
"onProfile-block"?: (() => any) | undefined;
|
|
29
|
+
"onBlog-delete"?: (() => any) | undefined;
|
|
30
|
+
"onReport-blog"?: (() => any) | undefined;
|
|
31
|
+
"onReport-place"?: (() => any) | undefined;
|
|
32
|
+
"onReport-profile"?: (() => any) | undefined;
|
|
33
|
+
"onReport-review"?: (() => any) | undefined;
|
|
34
|
+
"onPlace-close-duplicate"?: (() => any) | undefined;
|
|
35
|
+
"onReview-edit"?: (() => any) | undefined;
|
|
36
|
+
"onReview-delete"?: (() => any) | undefined;
|
|
37
|
+
onArchive?: (() => any) | undefined;
|
|
38
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
39
|
+
declare const _default: typeof __VLS_export;
|
|
40
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { PickerOptionMenuProps, PickerOptionMenuItem } from "@/types/components/picker/picker-option-menu/picker-option-menu";
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<PickerOptionMenuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PickerOptionMenuProps> & Readonly<{}>, {
|
|
3
|
+
variant: ButtonVariant;
|
|
4
|
+
items: PickerOptionMenuItem[];
|
|
5
|
+
circle: boolean;
|
|
6
|
+
size: ButtonSize;
|
|
7
|
+
horizontal: boolean;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
disabledPadding: boolean;
|
|
10
|
+
iconSize: string;
|
|
11
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<Dropdown v-model="isOpenDrawer">
|
|
3
|
+
<Button
|
|
4
|
+
:variant="props.variant"
|
|
5
|
+
:disabled-padding="props.disabledPadding"
|
|
6
|
+
:circle="props.circle"
|
|
7
|
+
:color="props.variant === 'text' ? 'black' : 'default'"
|
|
8
|
+
:icon-size="props.iconSize"
|
|
9
|
+
:size="props.size"
|
|
10
|
+
:prepend-icon="
|
|
11
|
+
props.horizontal ? 'lucide:ellipsis' : 'lucide:ellipsis-vertical'
|
|
12
|
+
"
|
|
13
|
+
:disabled="props.disabled"
|
|
14
|
+
/>
|
|
15
|
+
|
|
16
|
+
<template #content>
|
|
17
|
+
<div v-for="(item, i) in props.items" :key="i" class="flex flex-col">
|
|
18
|
+
<div
|
|
19
|
+
:class="[
|
|
20
|
+
'flex gap-[4px] p-[8px] items-center cursor-pointer hover:bg-smoke',
|
|
21
|
+
i == 0 && 'rounded-t-[8px]',
|
|
22
|
+
i == props.items.length - 1 && 'rounded-b-[8px]'
|
|
23
|
+
]"
|
|
24
|
+
@click="onAction(item)"
|
|
25
|
+
>
|
|
26
|
+
<Icon :name="item.icon" size="16" />
|
|
27
|
+
<div class="font-body-large">
|
|
28
|
+
{{ item.label }}
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
<Divider v-if="i !== props.items.length - 1" height="0" />
|
|
32
|
+
</div>
|
|
33
|
+
</template>
|
|
34
|
+
</Dropdown>
|
|
35
|
+
</template>
|
|
36
|
+
|
|
37
|
+
<script setup>
|
|
38
|
+
import { ref } from "vue";
|
|
39
|
+
const props = defineProps({
|
|
40
|
+
items: { type: Array, required: false, default: () => [] },
|
|
41
|
+
variant: { type: null, required: false, default: "text" },
|
|
42
|
+
circle: { type: Boolean, required: false, default: false },
|
|
43
|
+
horizontal: { type: Boolean, required: false, default: false },
|
|
44
|
+
size: { type: null, required: false, default: "medium" },
|
|
45
|
+
iconSize: { type: String, required: false, default: "20" },
|
|
46
|
+
disabledPadding: { type: Boolean, required: false, default: false },
|
|
47
|
+
disabled: { type: Boolean, required: false, default: false }
|
|
48
|
+
});
|
|
49
|
+
const isOpenDrawer = ref(false);
|
|
50
|
+
const onAction = (item) => {
|
|
51
|
+
item.action();
|
|
52
|
+
isOpenDrawer.value = false;
|
|
53
|
+
};
|
|
54
|
+
</script>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { PickerOptionMenuProps, PickerOptionMenuItem } from "@/types/components/picker/picker-option-menu/picker-option-menu";
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<PickerOptionMenuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PickerOptionMenuProps> & Readonly<{}>, {
|
|
3
|
+
variant: ButtonVariant;
|
|
4
|
+
items: PickerOptionMenuItem[];
|
|
5
|
+
circle: boolean;
|
|
6
|
+
size: ButtonSize;
|
|
7
|
+
horizontal: boolean;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
disabledPadding: boolean;
|
|
10
|
+
iconSize: string;
|
|
11
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<!-- <div class="h-[512px] w-full">
|
|
3
|
+
<div class="relative">
|
|
4
|
+
<Image :height="512" />
|
|
5
|
+
<div class="absolute bottom-[24px] right-[24px]" v-if="props.isMyProfile">
|
|
6
|
+
<PickerImageCoverProfile />
|
|
7
|
+
</div>
|
|
8
|
+
</div>
|
|
9
|
+
<div class="relative w-full p-[24px] pl-[200px]">
|
|
10
|
+
<div
|
|
11
|
+
class="absolute left-[24px] top-[-86px] flex justify-center p-[24px]"
|
|
12
|
+
>
|
|
13
|
+
<div class="relative">
|
|
14
|
+
<Avatar :size="128" class="border-[6px] border-white" />
|
|
15
|
+
<div class="absolute bottom-0 right-0" v-if="props.isMyProfile">
|
|
16
|
+
<PickerImageProfile>
|
|
17
|
+
<Button
|
|
18
|
+
circle
|
|
19
|
+
size="small"
|
|
20
|
+
:icon-size="20"
|
|
21
|
+
prepend-icon="lucide:camera"
|
|
22
|
+
/>
|
|
23
|
+
</PickerImageProfile>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="flex gap-[100px]">
|
|
28
|
+
<div class="flex flex-col gap-[8px] w-full">
|
|
29
|
+
<div class="inline-flex flex-wrap items-center gap-[16px]">
|
|
30
|
+
<div class="font-headline-medium-prominent">
|
|
31
|
+
{{ props.item?.profile_name || props.item?.id || "-" }}
|
|
32
|
+
</div>
|
|
33
|
+
<Icon name="pukaad:verify" size="20" />
|
|
34
|
+
</div>
|
|
35
|
+
<div class="flex gap-[24px] text-gray font-body-large">
|
|
36
|
+
<div
|
|
37
|
+
v-for="info in infoToShow"
|
|
38
|
+
:key="info.label"
|
|
39
|
+
class="flex gap-[4px]"
|
|
40
|
+
>
|
|
41
|
+
{{ info.label }}
|
|
42
|
+
<div class="text-black">{{ info.value }}</div>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
<div class="flex gap-[16px] items-center">
|
|
47
|
+
<template v-if="props.isMyProfile">
|
|
48
|
+
<Button
|
|
49
|
+
prepend-icon="lucide:plus"
|
|
50
|
+
:icon-size="20"
|
|
51
|
+
color="primary"
|
|
52
|
+
@click="emit('create-post')"
|
|
53
|
+
>
|
|
54
|
+
สร้างโพสต์
|
|
55
|
+
</Button>
|
|
56
|
+
<PickerOptionMenuUser state="my-profile" disabled-padding />
|
|
57
|
+
</template>
|
|
58
|
+
<template v-else>
|
|
59
|
+
<Button
|
|
60
|
+
prepend-icon="lucide:message-circle"
|
|
61
|
+
:icon-size="20"
|
|
62
|
+
color="primary"
|
|
63
|
+
@click="emit('chat')"
|
|
64
|
+
>
|
|
65
|
+
แชท
|
|
66
|
+
</Button>
|
|
67
|
+
<Button
|
|
68
|
+
v-if="!props.isMyProfile"
|
|
69
|
+
prepend-icon="lucide:user-round-plus"
|
|
70
|
+
:icon-size="20"
|
|
71
|
+
variant="outline"
|
|
72
|
+
@click="emit('follow')"
|
|
73
|
+
>
|
|
74
|
+
ติดตาม
|
|
75
|
+
</Button>
|
|
76
|
+
<PickerOptionMenuUser state="profile" disabled-padding />
|
|
77
|
+
</template>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
</div> -->
|
|
82
|
+
</template>
|
|
83
|
+
|
|
84
|
+
<script setup>
|
|
85
|
+
|
|
86
|
+
</script>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ProgressBarProps } from "@/types/components/progress-bar";
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<ProgressBarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProgressBarProps> & Readonly<{}>, {
|
|
3
|
+
height: number | string;
|
|
4
|
+
fullWidth: boolean;
|
|
5
|
+
colorActive: string;
|
|
6
|
+
colorBackground: string;
|
|
7
|
+
value: number | string;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
class="rounded-full"
|
|
4
|
+
:style="{
|
|
5
|
+
backgroundColor: props.colorBackground,
|
|
6
|
+
height: `${props.height}px`,
|
|
7
|
+
width: props.fullWidth ? '100%' : `${props.width}px`
|
|
8
|
+
}"
|
|
9
|
+
>
|
|
10
|
+
<div
|
|
11
|
+
class="rounded-full"
|
|
12
|
+
:style="{
|
|
13
|
+
backgroundColor: props.colorActive,
|
|
14
|
+
height: `${props.height}px`,
|
|
15
|
+
width: `${value}%`
|
|
16
|
+
}"
|
|
17
|
+
></div>
|
|
18
|
+
</div>
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<script setup>
|
|
22
|
+
import { computed } from "vue";
|
|
23
|
+
const props = defineProps({
|
|
24
|
+
colorActive: { type: String, required: false, default: "#FBC02D" },
|
|
25
|
+
colorBackground: { type: String, required: false, default: "#E0E0E0" },
|
|
26
|
+
height: { type: [Number, String], required: false, default: 10 },
|
|
27
|
+
width: { type: [Number, String], required: false },
|
|
28
|
+
fullWidth: { type: Boolean, required: false, default: false },
|
|
29
|
+
value: { type: [Number, String], required: false, default: 0 }
|
|
30
|
+
});
|
|
31
|
+
const value = computed(() => {
|
|
32
|
+
const isValue = typeof props.value === "string" ? parseInt(props.value) : props.value;
|
|
33
|
+
if (isValue > 100) return 100;
|
|
34
|
+
return isValue;
|
|
35
|
+
});
|
|
36
|
+
</script>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ProgressBarProps } from "@/types/components/progress-bar";
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<ProgressBarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProgressBarProps> & Readonly<{}>, {
|
|
3
|
+
height: number | string;
|
|
4
|
+
fullWidth: boolean;
|
|
5
|
+
colorActive: string;
|
|
6
|
+
colorBackground: string;
|
|
7
|
+
value: number | string;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ReadMoreTextProps } from "@/types/components/read-more-text";
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<ReadMoreTextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ReadMoreTextProps> & Readonly<{}>, {
|
|
3
|
+
text: string;
|
|
4
|
+
maxLine: number;
|
|
5
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>แก้หมด</div>
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script setup>
|
|
6
|
+
import { onMounted, ref, watch, nextTick, computed } from "vue";
|
|
7
|
+
const props = defineProps({
|
|
8
|
+
text: { type: String, required: true, default: "" },
|
|
9
|
+
maxLine: { type: Number, required: false, default: 3 }
|
|
10
|
+
});
|
|
11
|
+
const expanded = ref(false);
|
|
12
|
+
const isTruncated = ref(false);
|
|
13
|
+
const displayText = ref("");
|
|
14
|
+
const container = ref(null);
|
|
15
|
+
const formattedText = computed(() => {
|
|
16
|
+
const text = props.text || "";
|
|
17
|
+
return text.replace(
|
|
18
|
+
/@\[([^\]]+)\]\(([^)]+)\)/g,
|
|
19
|
+
'<span class="text-primary font-body-large-prominent">@$1</span>'
|
|
20
|
+
);
|
|
21
|
+
});
|
|
22
|
+
function computeTruncation() {
|
|
23
|
+
const root = container.value;
|
|
24
|
+
if (!root) return;
|
|
25
|
+
const fullText = props.text || "";
|
|
26
|
+
displayText.value = fullText;
|
|
27
|
+
isTruncated.value = false;
|
|
28
|
+
if (expanded.value) return;
|
|
29
|
+
if (!fullText.trim()) return;
|
|
30
|
+
const measure = document.createElement("span");
|
|
31
|
+
const cs = getComputedStyle(root);
|
|
32
|
+
measure.style.cssText = `visibility:hidden;position:absolute;left:0;top:0;pointer-events:none;white-space:normal;width:${root.clientWidth}px;font:${cs.font};line-height:${cs.lineHeight};`;
|
|
33
|
+
root.appendChild(measure);
|
|
34
|
+
let lineHeightStr = cs.lineHeight;
|
|
35
|
+
let lineHeight = 0;
|
|
36
|
+
if (lineHeightStr.endsWith("px")) {
|
|
37
|
+
lineHeight = parseFloat(lineHeightStr);
|
|
38
|
+
} else {
|
|
39
|
+
const fontSizeStr = cs.fontSize;
|
|
40
|
+
const fontSize = fontSizeStr.endsWith("px") ? parseFloat(fontSizeStr) : 16;
|
|
41
|
+
lineHeight = fontSize * 1.5;
|
|
42
|
+
}
|
|
43
|
+
const maxHeight = lineHeight * props.maxLine;
|
|
44
|
+
measure.textContent = fullText + " ... \u0E14\u0E39\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21";
|
|
45
|
+
if (measure.scrollHeight <= maxHeight + 1) {
|
|
46
|
+
displayText.value = fullText;
|
|
47
|
+
isTruncated.value = false;
|
|
48
|
+
root.removeChild(measure);
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
isTruncated.value = true;
|
|
52
|
+
let low = 0;
|
|
53
|
+
let high = fullText.length;
|
|
54
|
+
let best = 0;
|
|
55
|
+
while (low <= high) {
|
|
56
|
+
const mid = Math.floor((low + high) / 2);
|
|
57
|
+
const candidate = fullText.slice(0, mid).trimEnd() + "... \u0E14\u0E39\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21";
|
|
58
|
+
measure.textContent = candidate;
|
|
59
|
+
if (measure.scrollHeight <= maxHeight + 1) {
|
|
60
|
+
best = mid;
|
|
61
|
+
low = mid + 1;
|
|
62
|
+
} else {
|
|
63
|
+
high = mid - 1;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
displayText.value = fullText.slice(0, best).trimEnd();
|
|
67
|
+
root.removeChild(measure);
|
|
68
|
+
}
|
|
69
|
+
function toggle() {
|
|
70
|
+
expanded.value = !expanded.value;
|
|
71
|
+
if (!expanded.value) nextTick(computeTruncation);
|
|
72
|
+
}
|
|
73
|
+
onMounted(() => {
|
|
74
|
+
nextTick(computeTruncation);
|
|
75
|
+
});
|
|
76
|
+
</script>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ReadMoreTextProps } from "@/types/components/read-more-text";
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<ReadMoreTextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ReadMoreTextProps> & Readonly<{}>, {
|
|
3
|
+
text: string;
|
|
4
|
+
maxLine: number;
|
|
5
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|