@huyooo/ui 1.0.3 → 1.0.5
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/AuthkitAppSetting-BN8-xgNq.js +2674 -0
- package/dist/{Contact-M6iyuyNL.js → Contact-BWuVR9ho.js} +105 -113
- package/dist/CustomTable-BzGfaAVH.js +276 -0
- package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-B9BqGWm8.js +1480 -0
- package/dist/LandingPageDescription-BczWZHKy.js +12 -0
- package/dist/{LandingPageLinkGroup-DDNRivMt.js → LandingPageLinkGroup-BZJ48Yss.js} +87 -88
- package/dist/{LandingPageFAQ-CZJXvor9.js → LandingPageSectionHeader-3hiuw6G0.js} +44 -25
- package/dist/{LandingPageSectionTabs-Ce3_Rc2L.js → LandingPageSectionTabs-jRjkWlM-.js} +475 -375
- package/dist/LegalDocViewer-DM8FYBpf.js +2501 -0
- package/dist/Menu-uCexrsKP.js +199 -0
- package/dist/MessageHandle-mEkCsv9e.js +1173 -0
- package/dist/MessageList-Ce-_LNTk.js +244 -0
- package/dist/PaySubscriptions-CXkEjqr2.js +1326 -0
- package/dist/PricingPlans-CV97ck9p.js +427 -0
- package/dist/ReferrerReferees-DgygiIiE.js +237 -0
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-B6NOZjK0.js → Upload.vue_vue_type_script_setup_true_lang-VGh2V4o0.js} +1 -1
- package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-zgjpFVln.js +592 -0
- package/dist/WidthContainer-PeWkCK0p.js +721 -0
- package/dist/{apiClients-DrGX2iJy.js → apiClients-BcXOLuYu.js} +131 -98
- package/dist/authkit.d.ts +6 -2
- package/dist/authkit.js +53 -44
- package/dist/common/authProviderIcons.d.ts +12 -0
- package/dist/common/globalConfig.d.ts +5 -0
- package/dist/common/tableColumnWidths.d.ts +11 -0
- package/dist/common.js +3 -3
- package/dist/components/AuthProviderIcon.vue.d.ts +12 -0
- package/dist/components/Authkit/AppSetting/AuthkitEmailVerify.vue.d.ts +2 -2
- package/dist/components/Authkit/AppSetting/AuthkitOAuthBinding.vue.d.ts +2 -1
- package/dist/components/Authkit/AppSetting/AuthkitPasskeyBinding.vue.d.ts +14 -0
- package/dist/components/Authkit/AppSetting/AuthkitPasswordUpdate.vue.d.ts +11 -1
- package/dist/components/Authkit/AppSetting/AuthkitPersonalInformation.vue.d.ts +1 -3
- package/dist/components/Authkit/AppSetting/AuthkitPhoneVerify.vue.d.ts +13 -3
- package/dist/components/Authkit/Auth/AuthkitBindEmail.vue.d.ts +29 -2
- package/dist/components/Authkit/Auth/AuthkitBindPhone.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitEmailUpdate.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitOauthItem.vue.d.ts +37 -9
- package/dist/components/Authkit/Auth/AuthkitOauthList.vue.d.ts +7 -11
- package/dist/components/Authkit/Auth/AuthkitPasswordUpdateAndVerify.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitPhonePasswordUpdateAndVerify.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitServiceAgreementAndPrivacyProtection.vue.d.ts +11 -7
- package/dist/components/Authkit/Auth/AuthkitSignInEmailCode.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitSignInPhone.vue.d.ts +3 -62
- package/dist/components/Authkit/Auth/AuthkitSignUpPhone.vue.d.ts +2 -2
- package/dist/components/Authkit/Auth/AuthkitSwitchSignUpOrResetPassword.vue.d.ts +9 -0
- package/dist/components/Authkit/AuthkitAuth.vue.d.ts +2 -8
- package/dist/components/Authkit/AuthkitAuthModal.vue.d.ts +0 -4
- package/dist/components/Authkit/AuthkitProvider.vue.d.ts +5 -2
- package/dist/components/Authkit/AuthkitSendVerifyCode.vue.d.ts +2 -1
- package/dist/components/CustomTable.vue.d.ts +27 -1
- package/dist/components/Ellipsis.vue.d.ts +2 -6
- package/dist/components/Feedback/FeedbackList.vue.d.ts +4 -1
- package/dist/components/Gradientbackground.vue.d.ts +2 -2
- package/dist/components/HeaderMenus.vue.d.ts +4 -1
- package/dist/components/InfiniteLoading.vue.d.ts +1 -1
- package/dist/components/LandingPage/LandingPageButton.vue.d.ts +2 -2
- package/dist/components/LandingPage/LandingPageContainer.vue.d.ts +2 -2
- package/dist/components/LandingPage/LandingPageFeaturePanels.vue.d.ts +19 -0
- package/dist/components/LandingPage/LandingPageHero.vue.d.ts +9 -0
- package/dist/components/LandingPage/LandingPagePageContent.vue.d.ts +2 -2
- package/dist/components/LandingPage/LandingPageSectionHeader.vue.d.ts +1 -14
- package/dist/components/LandingPage/LandingPageSections.vue.d.ts +1 -1
- package/dist/components/LegalDoc/LegalDocViewer.vue.d.ts +7 -0
- package/dist/components/Menu.vue.d.ts +2 -1
- package/dist/components/MenuItem.vue.d.ts +3 -1
- package/dist/components/Message/MessageAppMessage.vue.d.ts +12 -2
- package/dist/components/Message/MessageDetails.vue.d.ts +9 -161
- package/dist/components/Message/MessageHandle.vue.d.ts +16 -4
- package/dist/components/Message/MessageList.vue.d.ts +4 -3
- package/dist/components/Message/MessageNotificationDetails.vue.d.ts +13 -0
- package/dist/components/Message/messageBody/DescriptionsMessageBody.vue.d.ts +3 -0
- package/dist/components/Message/messageBody/JsonMessageBodyFallback.vue.d.ts +3 -0
- package/dist/components/Message/messageBody/TextMessageBody.vue.d.ts +3 -0
- package/dist/components/Message/messageBody/descriptionRows.d.ts +14 -0
- package/dist/components/Message/messageBody/descriptionsMessageBody.d.ts +32 -0
- package/dist/components/Message/messageBody/descriptionsValueRender.d.ts +4 -0
- package/dist/components/Message/messageBody/messageBodyRegistry.d.ts +9 -0
- package/dist/components/Message/messageBody/registerBuiltinMessageBodies.d.ts +2 -0
- package/dist/components/Message/messageBody/types.d.ts +7 -0
- package/dist/components/Referrer/ReferrerRefereeCell.vue.d.ts +7 -0
- package/dist/components/Referrer/ReferrerReferees.vue.d.ts +1 -0
- package/dist/components/UserMenu/UserAccountMenu.vue.d.ts +1 -16
- package/dist/components/UserMenu/UserMenuItem.vue.d.ts +4 -0
- package/dist/components/UserMenu/UserMenuModals.vue.d.ts +18 -4
- package/dist/components/UserMenu/parts/UserAvatar.vue.d.ts +6 -0
- package/dist/components/UserMenu/parts/UserBasicInformation.vue.d.ts +7 -2
- package/dist/composables/Authkit/fetchAuthPageAboutUs.d.ts +3 -0
- package/dist/composables/Authkit/resolveRoutePermission.d.ts +2 -0
- package/dist/composables/Authkit/useAuthkitAppsAuthPageInfo.d.ts +16 -0
- package/dist/composables/Authkit/useAuthkitAuth.d.ts +2 -0
- package/dist/composables/Authkit/useAuthkitPasskey.d.ts +10 -0
- package/dist/composables/Authkit/useLegalDocHostActions.d.ts +6 -0
- package/dist/composables/Authkit/useLegalDocs.d.ts +19 -0
- package/dist/composables/Authkit/useOauth.d.ts +17 -4
- package/dist/composables/Authkit/useRegistrationTerms.d.ts +24 -0
- package/dist/composables/Authkit/verifyCodeCooldown.d.ts +19 -0
- package/dist/composables/Billing/useBillingPlans.d.ts +0 -4
- package/dist/composables/Billing/useBillingStatusOptions.d.ts +2 -6
- package/dist/composables/Billing/useBillingSubscriptionSummary.d.ts +16 -0
- package/dist/composables/Billing/usePaidProductOptions.d.ts +5 -0
- package/dist/composables/Message/messageCenterBadgeCounts.d.ts +28 -0
- package/dist/composables/UserMenu/useUserMenuBadgeCounts.d.ts +9 -0
- package/dist/composables/useInfiniteList.d.ts +19 -0
- package/dist/composables/useMessageNotifications.d.ts +3 -6
- package/dist/composables.d.ts +4 -2
- package/dist/composables.js +50 -45
- package/dist/feedback.d.ts +1 -0
- package/dist/feedback.js +12 -11
- package/dist/fetchAuthPageAboutUs-dzTSwRsB.js +25 -0
- package/dist/{Clipboard-Bo7gdpR6.js → index-BkLvw1PU.js} +1 -1
- package/dist/landingPage.d.ts +1 -0
- package/dist/landingPage.js +41 -40
- package/dist/legalDocs/buildBuiltinUrl.d.ts +3 -0
- package/dist/{utils/legalLinks.d.ts → legalDocs/constants.d.ts} +0 -10
- package/dist/legalDocs/index.d.ts +7 -0
- package/dist/legalDocs/isConfigured.d.ts +7 -0
- package/dist/legalDocs/open.d.ts +3 -0
- package/dist/legalDocs/resolveAppId.d.ts +8 -0
- package/dist/legalDocs/resolveTarget.d.ts +4 -0
- package/dist/legalDocs/types.d.ts +12 -0
- package/dist/main.js +321 -308
- package/dist/message.d.ts +3 -0
- package/dist/message.js +301 -21
- package/dist/pay.d.ts +1 -1
- package/dist/pay.js +14 -17
- package/dist/privateCom.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/api/auth.generated.d.ts +1385 -328
- package/dist/types/api/billing.generated.d.ts +907 -76
- package/dist/types/api/ones.generated.d.ts +131 -2
- package/dist/types/api.d.ts +1 -0
- package/dist/types/app.d.ts +10 -0
- package/dist/types/user.d.ts +1 -0
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAppsAuthPageInfo-C2yKgl8t.js → useAuthkitAppsAuthPageInfo-CNudJd04.js} +18 -17
- package/dist/useAuthkitAuth-3m0yW6uP.js +267 -0
- package/dist/{useAuthkitCreateAndUpdate-oo9517Gj.js → useAuthkitCreateAndUpdate-BsINsI-E.js} +1 -1
- package/dist/{useAuthkitUsersProfile-BZDk21c8.js → useAuthkitUsersProfile-DJlMsftY.js} +3 -3
- package/dist/useBillingStatusOptions-CfHQOFNw.js +71 -0
- package/dist/{useEnsureAuthenticated-BuIbxqsO.js → useEnsureAuthenticated-DNkCCy_Y.js} +2 -2
- package/dist/useLegalDocs-DQP_Yq6B.js +106 -0
- package/dist/{useMessageNotifications-D85_-mDq.js → useMessageNotifications-CAphguOm.js} +21 -24
- package/dist/useRoutePermission-CEiya9AM.js +218 -0
- package/dist/useSEO-CDWxbk8B.js +221 -0
- package/dist/useSubscriptionCheckout-d_M_rKRa.js +368 -0
- package/dist/{useUploadCos-BRKRzSy3.js → useUploadCos-C8BqFPkx.js} +1 -1
- package/dist/user.js +1 -1
- package/dist/userMenuModal-D-nDaYqM.js +66 -0
- package/dist/utils/apiMiddlewares.d.ts +5 -5
- package/dist/utils/apiResponse.d.ts +11 -0
- package/dist/utils/authProviderIcon.d.ts +3 -0
- package/dist/utils/authkit.d.ts +20 -7
- package/dist/utils/formatPoints.d.ts +8 -0
- package/dist/utils/messageNotificationContent.d.ts +4 -0
- package/dist/utils/messageTextLink.d.ts +9 -0
- package/dist/utils/passkeySupport.d.ts +8 -0
- package/dist/utils/pointsFlowTypes.d.ts +10 -0
- package/dist/utils/pointsHistoryDisplay.d.ts +8 -0
- package/dist/utils/refundStatusDisplay.d.ts +1 -0
- package/dist/utils/subscriptionDisplay.d.ts +7 -0
- package/dist/utils/userDisplay.d.ts +41 -0
- package/package.json +11 -3
- package/dist/AuthkitAppSetting-C-0uuLSg.js +0 -1921
- package/dist/AuthkitGithubBinding-C5zEy9zN.js +0 -2207
- package/dist/CustomTable-nsxN4Ja4.js +0 -276
- package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-M1NQ-rx-.js +0 -1396
- package/dist/LandingPageSectionHeader-D_74W4My.js +0 -69
- package/dist/Menu-Cy2ZPeaz.js +0 -170
- package/dist/MessageHandle-BG12aX0i.js +0 -924
- package/dist/MessageList-CrCF8mU6.js +0 -233
- package/dist/MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-gsjL6yAe.js +0 -142
- package/dist/PaySubscriptions-lWnEioX5.js +0 -1241
- package/dist/PricingPlans-DFcjOMWS.js +0 -404
- package/dist/ReferrerReferees-Cn7KaO8z.js +0 -106
- package/dist/UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-P0X1Exyu.js +0 -520
- package/dist/WidthContainer-CF3qOLWW.js +0 -688
- package/dist/common/authPanelWidth.d.ts +0 -2
- package/dist/components/Feedback/FeedbackDetails.vue.d.ts +0 -178
- package/dist/composables/Authkit/useLegalLinks.d.ts +0 -34
- package/dist/index-D3Kp6R4z.js +0 -4
- package/dist/useAuthkitAuth-DmS-H7M2.js +0 -175
- package/dist/useBillingStatusOptions-B7xLU3fs.js +0 -145
- package/dist/useLegalLinks-Cwr45PBT.js +0 -60
- package/dist/useRoutePermission-CaWtjLRA.js +0 -212
- package/dist/useSEO-BSMQdBR9.js +0 -158
- package/dist/useSubscriptionCheckout-BRk5h9aC.js +0 -365
- package/dist/useTableHandle-BdujaiNX.js +0 -69
- /package/dist/components/{Feedback/FeedbackVideoPreview.vue.d.ts → VideoPreview.vue.d.ts} +0 -0
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { openBlock as n, createElementBlock as c, renderSlot as a, defineComponent as o, createElementVNode as t, toDisplayString as s } from "vue";
|
|
2
|
-
import { _ as l } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
const d = {}, h = {
|
|
4
|
-
class: "Description"
|
|
5
|
-
};
|
|
6
|
-
function r(i, e) {
|
|
7
|
-
return n(), c("div", h, [a(i.$slots, "default", {}, void 0, !0)]);
|
|
8
|
-
}
|
|
9
|
-
const M = /* @__PURE__ */ l(d, [["render", r], ["__scopeId", "data-v-8b3dab7a"]]), C = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='40'%20height='40'%20rx='14'%20fill='url(%23paint0_linear_1212_46228)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M17%2011C13.6863%2011%2011%2013.6863%2011%2017V23C11%2026.3137%2013.6863%2029%2017%2029H23C26.3137%2029%2029%2026.3137%2029%2023V17C29%2013.6863%2026.3137%2011%2023%2011H17ZM20.0002%2015.9091C20.4521%2015.9091%2020.8184%2016.2754%2020.8184%2016.7273V19.1818H23.2718C23.7237%2019.1818%2024.09%2019.5481%2024.09%2020C24.09%2020.4519%2023.7237%2020.8182%2023.2718%2020.8182H20.8184V23.2727C20.8184%2023.7246%2020.4521%2024.0909%2020.0002%2024.0909C19.5484%2024.0909%2019.182%2023.7246%2019.182%2023.2727V20.8182H16.7264C16.2745%2020.8182%2015.9082%2020.4519%2015.9082%2020C15.9082%2019.5481%2016.2745%2019.1818%2016.7264%2019.1818H19.182V16.7273C19.182%2016.2754%2019.5484%2015.9091%2020.0002%2015.9091Z'%20fill='white'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_1212_46228'%20x1='20'%20y1='0'%20x2='20'%20y2='40'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%235766F0'/%3e%3cstop%20offset='1'%20stop-color='%23591EFF'%20stop-opacity='0.81'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", _ = "data:image/svg+xml,%3csvg%20width='72'%20height='48'%20viewBox='0%200%2072%2048'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_1212_46227'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='72'%20height='48'%3e%3crect%20width='72'%20height='48'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_1212_46227)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16.3789%2010.0001C16.3789%209.10554%2017.1041%208.38037%2017.9986%208.38037C18.8932%208.38037%2019.6183%209.10554%2019.6183%2010.0001C19.6183%2011.0172%2019.6664%2011.9775%2019.7585%2012.8841C19.8489%2013.7741%2019.2007%2014.5688%2018.3107%2014.6592C17.4208%2014.7497%2016.626%2014.1015%2016.5356%2013.2115C16.4317%2012.1889%2016.3789%2011.1191%2016.3789%2010.0001ZM18.0425%2019.547C17.7074%2018.7176%2018.1082%2017.7736%2018.9377%2017.4385C19.7671%2017.1035%2020.7111%2017.5043%2021.0461%2018.3337C21.7781%2020.146%2022.7687%2021.655%2023.9669%2022.9209C24.5819%2023.5705%2024.5537%2024.5957%2023.9041%2025.2106C23.2544%2025.8256%2022.2293%2025.7975%2021.6143%2025.1478C20.1362%2023.5862%2018.9254%2021.7329%2018.0425%2019.547ZM26.9161%2029.0658C26.1211%2028.6558%2025.8089%2027.6789%2026.219%2026.8838C26.629%2026.0888%2027.6059%2025.7767%2028.4009%2026.1867C30.0125%2027.0178%2031.8088%2027.6689%2033.753%2028.1757C34.6186%2028.4013%2035.1374%2029.286%2034.9118%2030.1516C34.6861%2031.0172%2033.8015%2031.536%2032.9359%2031.3104C30.8126%2030.7569%2028.7832%2030.0287%2026.9161%2029.0658ZM39.1207%2032.4579C38.2329%2032.348%2037.6022%2031.5393%2037.7121%2030.6516C37.8219%2029.7638%2038.6306%2029.1331%2039.5183%2029.2429C41.4424%2029.4809%2043.4322%2029.6311%2045.4551%2029.7252C46.3487%2029.7668%2047.0394%2030.5249%2046.9978%2031.4185C46.9562%2032.312%2046.1981%2033.0027%2045.3045%2032.9611C43.2229%2032.8643%2041.1475%2032.7086%2039.1207%2032.4579ZM51.4468%2033.1103C50.5523%2033.1036%2049.8326%2032.373%2049.8393%2031.4785C49.846%2030.584%2050.5766%2029.8643%2051.4711%2029.871C51.8002%2029.8735%2052.129%2029.8753%2052.4574%2029.8767L49.0395%2026.4589C48.4537%2025.8731%2048.4537%2024.9233%2049.0395%2024.3376C49.6253%2023.7518%2050.5751%2023.7518%2051.1608%2024.3376L56.5556%2029.7323C57.5319%2030.7086%2057.5319%2032.2915%2056.5556%2033.2678L51.1608%2038.6626C50.5751%2039.2484%2049.6253%2039.2484%2049.0395%2038.6626C48.4537%2038.0768%2048.4537%2037.1271%2049.0395%2036.5413L52.4646%2033.1162C52.1261%2033.1148%2051.7868%2033.1129%2051.4468%2033.1103Z'%20fill='black'%20fill-opacity='0.9'/%3e%3c/g%3e%3c/svg%3e", g = {
|
|
10
|
-
class: "section-header"
|
|
11
|
-
}, p = {
|
|
12
|
-
class: "title-section"
|
|
13
|
-
}, f = {
|
|
14
|
-
class: "icon-title"
|
|
15
|
-
}, u = ["src", "width", "height"], m = {
|
|
16
|
-
class: "title"
|
|
17
|
-
}, v = {
|
|
18
|
-
class: "subtitle-section"
|
|
19
|
-
}, w = ["src", "width", "height"], x = {
|
|
20
|
-
class: "subtitle"
|
|
21
|
-
}, y = "图标", H = "装饰线条", k = /* @__PURE__ */ o({
|
|
22
|
-
__name: "LandingPageSectionHeader",
|
|
23
|
-
props: {
|
|
24
|
-
title: {},
|
|
25
|
-
subtitle: {},
|
|
26
|
-
icon: {
|
|
27
|
-
default: C
|
|
28
|
-
},
|
|
29
|
-
iconWidth: {
|
|
30
|
-
default: 40
|
|
31
|
-
},
|
|
32
|
-
iconHeight: {
|
|
33
|
-
default: 40
|
|
34
|
-
},
|
|
35
|
-
dashline: {
|
|
36
|
-
default: _
|
|
37
|
-
},
|
|
38
|
-
dashlineWidth: {
|
|
39
|
-
default: 72
|
|
40
|
-
},
|
|
41
|
-
dashlineHeight: {
|
|
42
|
-
default: 48
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
setup(i) {
|
|
46
|
-
const e = i;
|
|
47
|
-
return (S, b) => (n(), c("div", g, [t("div", p, [t("div", f, [t("img", {
|
|
48
|
-
src: e.icon,
|
|
49
|
-
alt: y,
|
|
50
|
-
width: e.iconWidth,
|
|
51
|
-
height: e.iconHeight,
|
|
52
|
-
loading: "lazy",
|
|
53
|
-
decoding: "async",
|
|
54
|
-
class: "icon"
|
|
55
|
-
}, null, 8, u), t("span", m, s(i.title), 1)]), t("div", v, [t("img", {
|
|
56
|
-
src: e.dashline,
|
|
57
|
-
alt: H,
|
|
58
|
-
width: e.dashlineWidth,
|
|
59
|
-
height: e.dashlineHeight,
|
|
60
|
-
loading: "lazy",
|
|
61
|
-
decoding: "async",
|
|
62
|
-
class: "dashline"
|
|
63
|
-
}, null, 8, w), t("span", x, s(i.subtitle), 1)])])]));
|
|
64
|
-
}
|
|
65
|
-
}), V = /* @__PURE__ */ l(k, [["__scopeId", "data-v-e1681a62"]]);
|
|
66
|
-
export {
|
|
67
|
-
M as D,
|
|
68
|
-
V as L
|
|
69
|
-
};
|
package/dist/Menu-Cy2ZPeaz.js
DELETED
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
import { defineComponent as $, openBlock as u, createElementBlock as i, normalizeClass as m, createBlock as f, unref as k, createCommentVNode as y, createElementVNode as d, toDisplayString as A, ref as D, watch as B, Fragment as g, renderList as M, createVNode as E, Transition as z, withCtx as F, withDirectives as G, vShow as L } from "vue";
|
|
2
|
-
import { Icon as C } from "@iconify/vue";
|
|
3
|
-
import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
const O = {
|
|
5
|
-
class: "menu-item__name"
|
|
6
|
-
}, T = /* @__PURE__ */ $({
|
|
7
|
-
__name: "MenuItem",
|
|
8
|
-
props: {
|
|
9
|
-
hidden: {
|
|
10
|
-
type: Boolean,
|
|
11
|
-
default: !1
|
|
12
|
-
},
|
|
13
|
-
path: {
|
|
14
|
-
default: ""
|
|
15
|
-
},
|
|
16
|
-
icon: {
|
|
17
|
-
default: ""
|
|
18
|
-
},
|
|
19
|
-
name: {},
|
|
20
|
-
active: {
|
|
21
|
-
type: Boolean,
|
|
22
|
-
default: !1
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
emits: ["click"],
|
|
26
|
-
setup(h, {
|
|
27
|
-
emit: v
|
|
28
|
-
}) {
|
|
29
|
-
const t = h, p = v;
|
|
30
|
-
return (s, l) => t.hidden ? y("", !0) : (u(), i("div", {
|
|
31
|
-
key: 0,
|
|
32
|
-
class: m(["menu-item", {
|
|
33
|
-
"menu-item--active": t.active
|
|
34
|
-
}]),
|
|
35
|
-
onClick: l[0] || (l[0] = (w) => p("click"))
|
|
36
|
-
}, [t.icon ? (u(), f(k(C), {
|
|
37
|
-
key: 0,
|
|
38
|
-
class: "menu-item__icon",
|
|
39
|
-
icon: t.icon,
|
|
40
|
-
width: 16
|
|
41
|
-
}, null, 8, ["icon"])) : y("", !0), d("span", O, A(t.name), 1)], 2));
|
|
42
|
-
}
|
|
43
|
-
}), I = /* @__PURE__ */ b(T, [["__scopeId", "data-v-9f8ad9ae"]]), j = {
|
|
44
|
-
class: "menu"
|
|
45
|
-
}, q = ["onClick"], H = {
|
|
46
|
-
class: "menu-group__header-content"
|
|
47
|
-
}, J = {
|
|
48
|
-
class: "menu-group__title"
|
|
49
|
-
}, Q = {
|
|
50
|
-
class: "menu-group__children"
|
|
51
|
-
}, R = /* @__PURE__ */ $({
|
|
52
|
-
__name: "Menu",
|
|
53
|
-
props: {
|
|
54
|
-
menus: {
|
|
55
|
-
default: () => []
|
|
56
|
-
},
|
|
57
|
-
selectedKeys: {
|
|
58
|
-
default: () => []
|
|
59
|
-
},
|
|
60
|
-
defaultExpandAll: {
|
|
61
|
-
type: Boolean,
|
|
62
|
-
default: !0
|
|
63
|
-
},
|
|
64
|
-
accordion: {
|
|
65
|
-
type: Boolean,
|
|
66
|
-
default: !1
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
emits: ["update:selectedKeys", "change"],
|
|
70
|
-
setup(h, {
|
|
71
|
-
emit: v
|
|
72
|
-
}) {
|
|
73
|
-
const t = h, p = v, s = D([]);
|
|
74
|
-
function l(n, a) {
|
|
75
|
-
var e, c;
|
|
76
|
-
return !!((e = n.children) != null && e.some((r) => a.includes(r.path)) || (c = n.children) != null && c.some((r) => a.some((_) => _.startsWith(r.path + "/"))) || n.path && a.some((r) => r.startsWith(n.path + "/")));
|
|
77
|
-
}
|
|
78
|
-
function w() {
|
|
79
|
-
if (t.defaultExpandAll && !t.accordion)
|
|
80
|
-
s.value = t.menus.filter((n) => n.children && n.children.length > 0).map((n, a) => n.path || a.toString());
|
|
81
|
-
else {
|
|
82
|
-
s.value = [];
|
|
83
|
-
for (let n = 0; n < t.menus.length; n++) {
|
|
84
|
-
const a = t.menus[n];
|
|
85
|
-
if (l(a, t.selectedKeys) && (s.value.push(a.path || n.toString()), t.accordion))
|
|
86
|
-
break;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
function N(n) {
|
|
91
|
-
const a = s.value.indexOf(n);
|
|
92
|
-
a > -1 ? s.value.splice(a, 1) : t.accordion ? s.value = [n] : s.value.push(n);
|
|
93
|
-
}
|
|
94
|
-
function x(n) {
|
|
95
|
-
p("change", n), p("update:selectedKeys", [n.path]);
|
|
96
|
-
}
|
|
97
|
-
function V(n) {
|
|
98
|
-
return l(n, t.selectedKeys);
|
|
99
|
-
}
|
|
100
|
-
function W(n) {
|
|
101
|
-
return t.selectedKeys.includes(n) ? !0 : t.selectedKeys.some((a) => a.startsWith(n + "/"));
|
|
102
|
-
}
|
|
103
|
-
return B(() => t.menus, w, {
|
|
104
|
-
immediate: !0,
|
|
105
|
-
deep: !0
|
|
106
|
-
}), B(() => t.selectedKeys, (n) => {
|
|
107
|
-
for (let a = 0; a < t.menus.length; a++) {
|
|
108
|
-
const e = t.menus[a], c = e.path || a.toString();
|
|
109
|
-
if (l(e, n)) {
|
|
110
|
-
s.value.includes(c) || (t.accordion ? s.value = [c] : s.value.push(c));
|
|
111
|
-
break;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}, {
|
|
115
|
-
deep: !0
|
|
116
|
-
}), (n, a) => (u(), i("div", j, [(u(!0), i(g, null, M(t.menus, (e, c) => {
|
|
117
|
-
var r, _, K;
|
|
118
|
-
return u(), i("div", {
|
|
119
|
-
key: e.path || c,
|
|
120
|
-
class: "menu-group"
|
|
121
|
-
}, [e.children && e.children.length > 0 ? (u(), i(g, {
|
|
122
|
-
key: 0
|
|
123
|
-
}, [d("div", {
|
|
124
|
-
class: m(["menu-group__header", {
|
|
125
|
-
"menu-group__header--active": V(e)
|
|
126
|
-
}]),
|
|
127
|
-
onClick: (o) => N(e.path || c.toString())
|
|
128
|
-
}, [d("div", H, [(r = e == null ? void 0 : e.meta) != null && r.icon || e != null && e.icon ? (u(), f(k(C), {
|
|
129
|
-
key: 0,
|
|
130
|
-
class: "menu-group__icon",
|
|
131
|
-
icon: ((_ = e == null ? void 0 : e.meta) == null ? void 0 : _.icon) || (e == null ? void 0 : e.icon),
|
|
132
|
-
width: 16
|
|
133
|
-
}, null, 8, ["icon"])) : y("", !0), d("span", J, A(e.name), 1)]), E(k(C), {
|
|
134
|
-
class: m(["menu-group__arrow", {
|
|
135
|
-
"menu-group__arrow--expanded": s.value.includes(e.path || c.toString())
|
|
136
|
-
}]),
|
|
137
|
-
icon: "mingcute:down-line",
|
|
138
|
-
width: 14
|
|
139
|
-
}, null, 8, ["class"])], 10, q), E(z, {
|
|
140
|
-
name: "collapse"
|
|
141
|
-
}, {
|
|
142
|
-
default: F(() => [G(d("div", Q, [(u(!0), i(g, null, M(e.children, (o) => {
|
|
143
|
-
var S;
|
|
144
|
-
return u(), f(I, {
|
|
145
|
-
key: o.path,
|
|
146
|
-
hidden: o == null ? void 0 : o.hidden,
|
|
147
|
-
path: o.path,
|
|
148
|
-
icon: ((S = o == null ? void 0 : o.meta) == null ? void 0 : S.icon) || (o == null ? void 0 : o.icon),
|
|
149
|
-
name: o.name,
|
|
150
|
-
active: W(o.path),
|
|
151
|
-
onClick: (U) => x(o)
|
|
152
|
-
}, null, 8, ["hidden", "path", "icon", "name", "active", "onClick"]);
|
|
153
|
-
}), 128))], 512), [[L, s.value.includes(e.path || c.toString())]])]),
|
|
154
|
-
_: 2
|
|
155
|
-
}, 1024)], 64)) : (u(), f(I, {
|
|
156
|
-
key: 1,
|
|
157
|
-
hidden: e == null ? void 0 : e.hidden,
|
|
158
|
-
path: e.path,
|
|
159
|
-
icon: ((K = e == null ? void 0 : e.meta) == null ? void 0 : K.icon) || (e == null ? void 0 : e.icon),
|
|
160
|
-
name: e.name,
|
|
161
|
-
active: t.selectedKeys.includes(e.path),
|
|
162
|
-
onClick: (o) => x(e)
|
|
163
|
-
}, null, 8, ["hidden", "path", "icon", "name", "active", "onClick"]))]);
|
|
164
|
-
}), 128))]));
|
|
165
|
-
}
|
|
166
|
-
}), P = /* @__PURE__ */ b(R, [["__scopeId", "data-v-e90b880a"]]);
|
|
167
|
-
export {
|
|
168
|
-
P as M,
|
|
169
|
-
I as a
|
|
170
|
-
};
|