@pisell/private-materials 3.4.47 → 3.4.49
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +23 -8
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +23 -8
- package/es/components/Sales/Event/Detail.d.ts +30 -0
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/ConfirmInformation/index.d.ts +4 -0
- package/es/components/appointmentBooking/components/Services/index.d.ts +4 -0
- package/es/components/appointmentBooking/hooks.d.ts +107 -0
- package/es/components/appointmentBooking/hooks.js +5 -0
- package/es/components/appointmentBooking/locales.d.ts +363 -0
- package/es/components/authentication/admin/AuthMethods/SettingList.d.ts +5 -0
- package/es/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +22 -0
- package/es/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
- package/es/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +13 -0
- package/es/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
- package/es/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +14 -0
- package/es/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +13 -0
- package/es/components/authentication/admin/AuthMethods/components/index.d.ts +10 -0
- package/es/components/authentication/admin/AuthMethods/constants.d.ts +22 -0
- package/es/components/authentication/admin/AuthMethods/index.d.ts +8 -0
- package/es/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
- package/es/components/authentication/admin/AuthMethods/types.d.ts +76 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
- package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.d.ts +8 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
- package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
- package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
- package/es/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
- package/es/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
- package/es/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/index.d.ts +6 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
- package/es/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
- package/es/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
- package/es/components/authentication/admin/OAuthConfig/index.d.ts +6 -0
- package/es/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
- package/es/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
- package/es/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
- package/es/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
- package/es/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
- package/es/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
- package/es/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
- package/es/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
- package/es/components/authentication/admin/index.d.ts +26 -0
- package/es/components/authentication/index.d.ts +0 -0
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/components/customSelect/index.d.ts +38 -0
- package/es/components/booking/components/customSelect/index.js +22 -3
- package/es/components/booking/components/footer/index.d.ts +11 -0
- package/es/components/booking/components/footer/utils.d.ts +41 -0
- package/es/components/booking/forms/footer.d.ts +6 -0
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/info/client/index.d.ts +4 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +43 -0
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +25 -0
- package/es/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
- package/es/components/booking/info/main.d.ts +12 -0
- package/es/components/booking/info/model.d.ts +14 -0
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/index.d.ts +12 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
- package/es/components/booking/locales.d.ts +834 -0
- package/es/components/booking/model.d.ts +119 -0
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/linkly/index.d.ts +2 -0
- package/es/components/eftposPay/store/index.d.ts +3 -3
- package/es/components/index.d.ts +23 -0
- package/es/components/index.js +1 -1
- package/es/components/pay/toC/PaymentMethods/ApplePay/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/GooglePay/index.d.ts +9 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.d.ts +15 -0
- package/es/components/pay/toC/PaymentMethods/hooks/index.d.ts +19 -0
- package/es/components/pay/toC/index.d.ts +3 -0
- package/es/components/pay/toC/locales.d.ts +298 -0
- package/es/components/pay/toC/model.d.ts +40 -0
- package/es/components/pay/toC/serve.d.ts +62 -0
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/wallet/Detail/model.d.ts +13 -1
- package/es/components/wallet/DiscountCard/model.d.ts +14 -1
- package/es/components/wallet/PointCard/model.d.ts +13 -1
- package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/es/components/wallet/Voucher/model.d.ts +13 -1
- package/es/components/wallet/model.d.ts +9 -1
- package/es/components/walletList/index.d.ts +0 -25
- package/es/components/walletList/index.js +93 -61
- package/es/components/walletList/serve.d.ts +4 -0
- package/es/components/walletList/serve.js +46 -13
- package/es/components/walletList/types/index.d.ts +12 -12
- package/es/components/walletList/types/index.js +2 -2
- package/es/index.d.ts +58 -0
- package/es/index.js +3 -2
- package/es/plus/clientName/index.d.ts +4 -0
- package/es/plus/clientName/type.d.ts +13 -0
- package/es/plus/clientName/utils.d.ts +2 -0
- package/es/plus/contactInfo/components/Avatar/index.d.ts +10 -0
- package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/es/plus/contactInfo/index.d.ts +6 -0
- package/es/plus/contactInfo/locales.d.ts +15 -0
- package/es/plus/contactInfo/types.d.ts +91 -0
- package/es/plus/contactInfo/utils.d.ts +7 -0
- package/es/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
- package/es/plus/contactInfoModal/index.d.ts +41 -0
- package/es/plus/contactInfoModal/locales.d.ts +66 -0
- package/es/plus/productSelect/CategoryTabs/index.d.ts +2 -0
- package/es/plus/productSelect/CategoryTabs/index.js +6 -3
- package/es/plus/productSelect/ProductCard/index.d.ts +47 -0
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.less +0 -11
- package/es/plus/productSelect/index.d.ts +32 -0
- package/es/plus/productSelect/utils.js +0 -1
- package/es/plus/walletEditor/WalletEditor.d.ts +5 -0
- package/es/plus/walletEditor/WalletEditor.js +316 -0
- package/es/plus/walletEditor/WalletEditor.less +129 -0
- package/es/plus/walletEditor/components/ImageUpload/index.d.ts +8 -0
- package/es/plus/walletEditor/components/ImageUpload/index.js +223 -0
- package/es/plus/walletEditor/components/JsonEditor/index.d.ts +11 -0
- package/es/plus/walletEditor/components/JsonEditor/index.js +68 -0
- package/es/plus/walletEditor/components/JsonEditor/index.less +4 -0
- package/es/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +20 -0
- package/es/plus/walletEditor/components/ValidityPeriodSelector/index.js +222 -0
- package/es/plus/walletEditor/components/ValidityPeriodSelector/index.less +4 -0
- package/es/plus/walletEditor/components/relationProduct/index.d.ts +6 -0
- package/es/plus/walletEditor/components/relationProduct/index.js +49 -0
- package/es/plus/walletEditor/components/relationProduct/index.less +15 -0
- package/es/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +37 -0
- package/es/plus/walletEditor/components/sortableWalletPassTypes/index.js +193 -0
- package/es/plus/walletEditor/components/sortableWalletPassTypes/index.less +110 -0
- package/es/plus/walletEditor/index.d.ts +3 -0
- package/es/plus/walletEditor/index.js +3 -0
- package/es/plus/walletEditor/locales.d.ts +126 -0
- package/es/plus/walletEditor/locales.js +143 -0
- package/es/plus/walletEditor/types.d.ts +52 -0
- package/es/plus/walletEditor/types.js +1 -0
- package/es/plus/walletPassGallery/components/footerButton/index.d.ts +14 -0
- package/es/plus/walletPassGallery/components/footerButton/index.js +247 -0
- package/es/plus/walletPassGallery/components/footerButton/index.less +93 -0
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +8 -0
- package/es/plus/walletPassGallery/components/passDetail/index.js +274 -0
- package/es/plus/walletPassGallery/components/passDetail/index.less +57 -0
- package/es/plus/walletPassGallery/components/passList/index.d.ts +11 -0
- package/es/plus/walletPassGallery/components/passList/index.js +115 -0
- package/es/plus/walletPassGallery/components/recharge/index.d.ts +11 -0
- package/es/plus/walletPassGallery/components/recharge/index.js +134 -0
- package/es/plus/walletPassGallery/components/recharge/index.less +16 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +8 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.js +176 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.less +67 -0
- package/es/plus/walletPassGallery/components/usageRule/index.d.ts +9 -0
- package/es/plus/walletPassGallery/components/usageRule/index.js +248 -0
- package/es/plus/walletPassGallery/components/usageRule/index.less +157 -0
- package/es/plus/walletPassGallery/index.d.ts +6 -0
- package/es/plus/walletPassGallery/index.js +602 -0
- package/es/plus/walletPassGallery/index.less +115 -0
- package/es/plus/walletPassGallery/locales.d.ts +270 -0
- package/es/plus/walletPassGallery/locales.js +279 -0
- package/es/plus/walletPassGallery/serve.d.ts +218 -0
- package/es/plus/walletPassGallery/serve.js +289 -0
- package/es/pro/pisellPaymentList/example.d.ts +19 -0
- package/lib/components/Sales/Event/Detail.d.ts +30 -0
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.d.ts +4 -0
- package/lib/components/appointmentBooking/components/Services/index.d.ts +4 -0
- package/lib/components/appointmentBooking/hooks.d.ts +107 -0
- package/lib/components/appointmentBooking/hooks.js +3 -0
- package/lib/components/appointmentBooking/locales.d.ts +363 -0
- package/lib/components/authentication/admin/AuthMethods/SettingList.d.ts +5 -0
- package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +22 -0
- package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
- package/lib/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +13 -0
- package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
- package/lib/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +14 -0
- package/lib/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +13 -0
- package/lib/components/authentication/admin/AuthMethods/components/index.d.ts +10 -0
- package/lib/components/authentication/admin/AuthMethods/constants.d.ts +22 -0
- package/lib/components/authentication/admin/AuthMethods/index.d.ts +8 -0
- package/lib/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
- package/lib/components/authentication/admin/AuthMethods/types.d.ts +76 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.d.ts +8 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
- package/lib/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
- package/lib/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/index.d.ts +6 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
- package/lib/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
- package/lib/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
- package/lib/components/authentication/admin/OAuthConfig/index.d.ts +6 -0
- package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
- package/lib/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
- package/lib/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
- package/lib/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
- package/lib/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
- package/lib/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
- package/lib/components/authentication/admin/index.d.ts +26 -0
- package/lib/components/authentication/index.d.ts +0 -0
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/components/customSelect/index.d.ts +38 -0
- package/lib/components/booking/components/customSelect/index.js +26 -3
- package/lib/components/booking/components/footer/index.d.ts +11 -0
- package/lib/components/booking/components/footer/utils.d.ts +41 -0
- package/lib/components/booking/forms/footer.d.ts +6 -0
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/info/client/index.d.ts +4 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +43 -0
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +25 -0
- package/lib/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
- package/lib/components/booking/info/main.d.ts +12 -0
- package/lib/components/booking/info/model.d.ts +14 -0
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/index.d.ts +12 -0
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
- package/lib/components/booking/locales.d.ts +834 -0
- package/lib/components/booking/model.d.ts +119 -0
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/linkly/index.d.ts +2 -0
- package/lib/components/eftposPay/store/index.d.ts +3 -3
- package/lib/components/index.d.ts +23 -0
- package/lib/components/index.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/ApplePay/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/GooglePay/index.d.ts +9 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.d.ts +15 -0
- package/lib/components/pay/toC/PaymentMethods/hooks/index.d.ts +19 -0
- package/lib/components/pay/toC/index.d.ts +3 -0
- package/lib/components/pay/toC/locales.d.ts +298 -0
- package/lib/components/pay/toC/model.d.ts +40 -0
- package/lib/components/pay/toC/serve.d.ts +62 -0
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/wallet/Detail/model.d.ts +13 -1
- package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
- package/lib/components/wallet/PointCard/model.d.ts +13 -1
- package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/lib/components/wallet/Voucher/model.d.ts +13 -1
- package/lib/components/wallet/model.d.ts +9 -1
- package/lib/components/walletList/index.d.ts +0 -25
- package/lib/components/walletList/index.js +88 -47
- package/lib/components/walletList/serve.d.ts +4 -0
- package/lib/components/walletList/serve.js +12 -0
- package/lib/components/walletList/types/index.d.ts +12 -12
- package/lib/index.d.ts +58 -0
- package/lib/index.js +6 -3
- package/lib/plus/clientName/index.d.ts +4 -0
- package/lib/plus/clientName/type.d.ts +13 -0
- package/lib/plus/clientName/utils.d.ts +2 -0
- package/lib/plus/contactInfo/components/Avatar/index.d.ts +10 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/lib/plus/contactInfo/index.d.ts +6 -0
- package/lib/plus/contactInfo/locales.d.ts +15 -0
- package/lib/plus/contactInfo/types.d.ts +91 -0
- package/lib/plus/contactInfo/utils.d.ts +7 -0
- package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
- package/lib/plus/contactInfoModal/index.d.ts +41 -0
- package/lib/plus/contactInfoModal/locales.d.ts +66 -0
- package/lib/plus/productSelect/CategoryTabs/index.d.ts +2 -0
- package/lib/plus/productSelect/CategoryTabs/index.js +84 -69
- package/lib/plus/productSelect/ProductCard/index.d.ts +47 -0
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.less +0 -11
- package/lib/plus/productSelect/index.d.ts +32 -0
- package/lib/plus/productSelect/utils.js +0 -1
- package/lib/plus/walletEditor/WalletEditor.d.ts +5 -0
- package/lib/plus/walletEditor/WalletEditor.js +354 -0
- package/lib/plus/walletEditor/WalletEditor.less +129 -0
- package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +8 -0
- package/lib/plus/walletEditor/components/ImageUpload/index.js +201 -0
- package/lib/plus/walletEditor/components/JsonEditor/index.d.ts +11 -0
- package/lib/plus/walletEditor/components/JsonEditor/index.js +89 -0
- package/lib/plus/walletEditor/components/JsonEditor/index.less +4 -0
- package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +20 -0
- package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.js +176 -0
- package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.less +4 -0
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +6 -0
- package/lib/plus/walletEditor/components/relationProduct/index.js +73 -0
- package/lib/plus/walletEditor/components/relationProduct/index.less +15 -0
- package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +37 -0
- package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.js +211 -0
- package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.less +110 -0
- package/lib/plus/walletEditor/index.d.ts +3 -0
- package/lib/plus/walletEditor/index.js +42 -0
- package/lib/plus/walletEditor/locales.d.ts +126 -0
- package/lib/plus/walletEditor/locales.js +167 -0
- package/lib/plus/walletEditor/types.d.ts +52 -0
- package/lib/plus/walletEditor/types.js +17 -0
- package/lib/plus/walletPassGallery/components/footerButton/index.d.ts +14 -0
- package/lib/plus/walletPassGallery/components/footerButton/index.js +187 -0
- package/lib/plus/walletPassGallery/components/footerButton/index.less +93 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +8 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.js +287 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.less +57 -0
- package/lib/plus/walletPassGallery/components/passList/index.d.ts +11 -0
- package/lib/plus/walletPassGallery/components/passList/index.js +136 -0
- package/lib/plus/walletPassGallery/components/recharge/index.d.ts +11 -0
- package/lib/plus/walletPassGallery/components/recharge/index.js +146 -0
- package/lib/plus/walletPassGallery/components/recharge/index.less +16 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +8 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.js +212 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.less +67 -0
- package/lib/plus/walletPassGallery/components/usageRule/index.d.ts +9 -0
- package/lib/plus/walletPassGallery/components/usageRule/index.js +209 -0
- package/lib/plus/walletPassGallery/components/usageRule/index.less +157 -0
- package/lib/plus/walletPassGallery/index.d.ts +6 -0
- package/lib/plus/walletPassGallery/index.js +498 -0
- package/lib/plus/walletPassGallery/index.less +115 -0
- package/lib/plus/walletPassGallery/locales.d.ts +270 -0
- package/lib/plus/walletPassGallery/locales.js +299 -0
- package/lib/plus/walletPassGallery/serve.d.ts +218 -0
- package/lib/plus/walletPassGallery/serve.js +98 -0
- package/lib/pro/pisellPaymentList/example.d.ts +19 -0
- package/lowcode/sortable-wallet-pass-types/meta.ts +267 -0
- package/lowcode/wallet-editor/meta.ts +57 -0
- package/lowcode/wallet-editor/snippets.ts +13 -0
- package/lowcode/wallet-pass-gallery/meta.ts +35 -0
- package/package.json +3 -3
- package/lowcode/wallet/meta.ts +0 -79
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 钱包列表查询参数接口
|
|
3
|
+
*/
|
|
4
|
+
export interface IWalletListParmsProps {
|
|
5
|
+
tags?: string[];
|
|
6
|
+
sales_status?: 1 | 0 | -1;
|
|
7
|
+
machine_search?: string;
|
|
8
|
+
createdDate?: string;
|
|
9
|
+
limit_status?: string;
|
|
10
|
+
relation_id?: string;
|
|
11
|
+
relation_type?: string;
|
|
12
|
+
customer_id?: number;
|
|
13
|
+
sort?: 'desc' | 'asc';
|
|
14
|
+
order_by?: string;
|
|
15
|
+
used_status?: string;
|
|
16
|
+
num?: number;
|
|
17
|
+
skip?: number;
|
|
18
|
+
filter_wallet_id?: string;
|
|
19
|
+
available: 0 | 1;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* 钱包列表项属性接口
|
|
23
|
+
*/
|
|
24
|
+
export interface IWalletListItemProps {
|
|
25
|
+
id?: number | string;
|
|
26
|
+
encoded?: string;
|
|
27
|
+
code?: string;
|
|
28
|
+
limit_status?: string;
|
|
29
|
+
customer_id?: number;
|
|
30
|
+
generate_method?: 'not_settable' | 'before_order' | 'after_order';
|
|
31
|
+
created_at?: string;
|
|
32
|
+
product_id?: number;
|
|
33
|
+
sales_status?: 1 | 0;
|
|
34
|
+
tag?: string;
|
|
35
|
+
status?: string;
|
|
36
|
+
redeemed_at?: string;
|
|
37
|
+
collection_time?: string;
|
|
38
|
+
order_id?: number;
|
|
39
|
+
par_value?: string;
|
|
40
|
+
write_status?: number;
|
|
41
|
+
expire_date?: string;
|
|
42
|
+
balance?: string;
|
|
43
|
+
extension_id?: string;
|
|
44
|
+
product_title?: string;
|
|
45
|
+
product_cover?: string;
|
|
46
|
+
product?: IProductProps;
|
|
47
|
+
unified_available_status?: 0 | 1;
|
|
48
|
+
unified_error_code?: number;
|
|
49
|
+
shop: IShop;
|
|
50
|
+
unified_messages: any;
|
|
51
|
+
machinecode_config?: {
|
|
52
|
+
hide_recharge?: number;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* 商店信息接口
|
|
57
|
+
*/
|
|
58
|
+
export interface IShop {
|
|
59
|
+
name: string;
|
|
60
|
+
id: number;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* 商品属性接口
|
|
64
|
+
*/
|
|
65
|
+
export interface IProductProps {
|
|
66
|
+
id?: number;
|
|
67
|
+
title?: string;
|
|
68
|
+
description?: string;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* API响应接口
|
|
72
|
+
*/
|
|
73
|
+
export interface ApiResponse<T> {
|
|
74
|
+
data: T;
|
|
75
|
+
code?: number;
|
|
76
|
+
message?: string;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* 错误处理函数类型
|
|
80
|
+
*/
|
|
81
|
+
export declare type ErrorCallback = () => void;
|
|
82
|
+
/**
|
|
83
|
+
* 获取钱包列表
|
|
84
|
+
* @param params 查询参数
|
|
85
|
+
* @returns Promise<{list: IWalletListItemProps[], count: number}> 钱包列表和总数
|
|
86
|
+
* @throws 请求失败时抛出错误
|
|
87
|
+
*/
|
|
88
|
+
export declare const getWalletList: (params?: IWalletListParmsProps) => Promise<{
|
|
89
|
+
list: IWalletListItemProps[];
|
|
90
|
+
count: number;
|
|
91
|
+
}>;
|
|
92
|
+
/**
|
|
93
|
+
* 通过code绑定客户
|
|
94
|
+
* @param params 请求参数,包含code
|
|
95
|
+
* @param errCallback 错误回调
|
|
96
|
+
* @returns Promise<any> 绑定结果
|
|
97
|
+
*/
|
|
98
|
+
export declare const bindCodeToCustomer: (params: {
|
|
99
|
+
code: string;
|
|
100
|
+
}) => Promise<any>;
|
|
101
|
+
/**
|
|
102
|
+
* 用户根据code查询待绑定识别码列表
|
|
103
|
+
* @param params 请求参数,包含code和tag
|
|
104
|
+
* @param errCallback 错误回调函数
|
|
105
|
+
* @returns Promise<IWalletListItemProps[] | null> 未绑定的钱包卡列表
|
|
106
|
+
*/
|
|
107
|
+
export declare const getUnbindList: (params: {
|
|
108
|
+
code: string;
|
|
109
|
+
tag?: string;
|
|
110
|
+
}) => Promise<IWalletListItemProps[] | null>;
|
|
111
|
+
/**
|
|
112
|
+
* 下单请求参数接口
|
|
113
|
+
*/
|
|
114
|
+
export interface IOrderParams {
|
|
115
|
+
voucher_id: string;
|
|
116
|
+
product_id: string;
|
|
117
|
+
product_variant_id: string;
|
|
118
|
+
quantity: number;
|
|
119
|
+
type: string;
|
|
120
|
+
platform: string;
|
|
121
|
+
currency_code: {
|
|
122
|
+
currency_code: string;
|
|
123
|
+
currency_symbol: string;
|
|
124
|
+
currency_format: string;
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* 下单
|
|
129
|
+
* @param params 下单参数
|
|
130
|
+
* @returns Promise<any> 下单结果
|
|
131
|
+
* @throws 请求失败时抛出错误
|
|
132
|
+
*/
|
|
133
|
+
export declare const goOrder: (params: IOrderParams) => Promise<any>;
|
|
134
|
+
/**
|
|
135
|
+
* 设置请求对象
|
|
136
|
+
* @param req 请求对象
|
|
137
|
+
*/
|
|
138
|
+
export declare const setRequest: (req: any) => void;
|
|
139
|
+
interface IAssetListProps {
|
|
140
|
+
skip?: string;
|
|
141
|
+
num?: string;
|
|
142
|
+
card_id?: string;
|
|
143
|
+
sourceType?: string;
|
|
144
|
+
business_object?: string;
|
|
145
|
+
tag?: string;
|
|
146
|
+
}
|
|
147
|
+
export interface IAssetItem {
|
|
148
|
+
id?: string;
|
|
149
|
+
tag?: 'gift_card' | 'product_voucher' | 'point_card' | 'product_discount_card';
|
|
150
|
+
shop_id?: string;
|
|
151
|
+
transaction_id?: string;
|
|
152
|
+
title?: string;
|
|
153
|
+
created_at?: string;
|
|
154
|
+
amount?: string;
|
|
155
|
+
balance?: string;
|
|
156
|
+
currency_symbol?: string;
|
|
157
|
+
action?: 'recharge' | 'order_expend' | 'order_refund' | 'expire';
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* 资产明细列表
|
|
161
|
+
* @param params 接口请求参数
|
|
162
|
+
* @returns 资产明细列表
|
|
163
|
+
*/
|
|
164
|
+
export declare const getAssetList: (params: IAssetListProps) => Promise<{
|
|
165
|
+
list: IAssetItem[];
|
|
166
|
+
}>;
|
|
167
|
+
/**
|
|
168
|
+
* 获取资产详情
|
|
169
|
+
* @param params 接口请求参数
|
|
170
|
+
* @returns 资产详情
|
|
171
|
+
*/
|
|
172
|
+
export declare const getDetailApi: (params: {
|
|
173
|
+
id: string;
|
|
174
|
+
}) => Promise<IDetailResponse>;
|
|
175
|
+
/**
|
|
176
|
+
* 详情响应数据结构,供组件消费
|
|
177
|
+
*/
|
|
178
|
+
export interface IDetailResponse {
|
|
179
|
+
detailId?: string;
|
|
180
|
+
productId?: string;
|
|
181
|
+
gift_option?: Array<{
|
|
182
|
+
id: string;
|
|
183
|
+
name: string;
|
|
184
|
+
gift_price: number;
|
|
185
|
+
price: number;
|
|
186
|
+
variant_id?: string;
|
|
187
|
+
}>;
|
|
188
|
+
[key: string]: any;
|
|
189
|
+
}
|
|
190
|
+
interface OrderParams {
|
|
191
|
+
voucher_id: string;
|
|
192
|
+
product_id: string;
|
|
193
|
+
product_variant_id: string;
|
|
194
|
+
quantity: number;
|
|
195
|
+
type: string;
|
|
196
|
+
platform: string;
|
|
197
|
+
currency_code: {
|
|
198
|
+
currency_code: string;
|
|
199
|
+
currency_symbol: string;
|
|
200
|
+
currency_format: string;
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
interface OrderResponse {
|
|
204
|
+
order_id: string;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* 下单接口
|
|
208
|
+
* @param params - 订单参数
|
|
209
|
+
* @returns 订单响应数据
|
|
210
|
+
*/
|
|
211
|
+
export declare const orderRechargeProduct: (params: OrderParams) => Promise<OrderResponse>;
|
|
212
|
+
/**
|
|
213
|
+
* @desc: 获取钱包信息
|
|
214
|
+
* @author: Arthur
|
|
215
|
+
* @date: 2025-11-03 15:30
|
|
216
|
+
*/
|
|
217
|
+
export declare const getWalletDetail: (id: string | number) => Promise<any>;
|
|
218
|
+
export {};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/plus/walletPassGallery/serve.ts
|
|
20
|
+
var serve_exports = {};
|
|
21
|
+
__export(serve_exports, {
|
|
22
|
+
bindCodeToCustomer: () => bindCodeToCustomer,
|
|
23
|
+
getAssetList: () => getAssetList,
|
|
24
|
+
getDetailApi: () => getDetailApi,
|
|
25
|
+
getUnbindList: () => getUnbindList,
|
|
26
|
+
getWalletDetail: () => getWalletDetail,
|
|
27
|
+
getWalletList: () => getWalletList,
|
|
28
|
+
goOrder: () => goOrder,
|
|
29
|
+
orderRechargeProduct: () => orderRechargeProduct,
|
|
30
|
+
setRequest: () => setRequest
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(serve_exports);
|
|
33
|
+
var import_utils = require("../../utils");
|
|
34
|
+
var import_utils2 = require("@pisell/utils");
|
|
35
|
+
var getWalletList = async (params) => {
|
|
36
|
+
try {
|
|
37
|
+
const { data } = await import_utils.request.getRequest().get(`/h5/machinecode/lowcode/list`, params);
|
|
38
|
+
return data || { list: [], count: 0 };
|
|
39
|
+
} catch (error) {
|
|
40
|
+
console.error(
|
|
41
|
+
import_utils2.locales.getText("wallet-pass-gallery.log.getWalletListFailed"),
|
|
42
|
+
error
|
|
43
|
+
);
|
|
44
|
+
return { list: [], count: 0 };
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
var bindCodeToCustomer = async (params) => {
|
|
48
|
+
const { data } = await import_utils.request.getRequest().put(`/h5/voucher/bind/customer`, params);
|
|
49
|
+
return data;
|
|
50
|
+
};
|
|
51
|
+
var getUnbindList = async (params) => {
|
|
52
|
+
const { data } = await import_utils.request.getRequest().get(`/h5/machinecode/unbind/list`, params);
|
|
53
|
+
return data;
|
|
54
|
+
};
|
|
55
|
+
var goOrder = async (params) => {
|
|
56
|
+
try {
|
|
57
|
+
const { data } = await import_utils.request.getRequest().post(`/h5/store/order/add`, params);
|
|
58
|
+
return data;
|
|
59
|
+
} catch (error) {
|
|
60
|
+
console.error(import_utils2.locales.getText("wallet-pass-gallery.log.orderFailed"), error);
|
|
61
|
+
throw error;
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
var setRequest = (req) => {
|
|
65
|
+
import_utils.request.setRequest(req);
|
|
66
|
+
};
|
|
67
|
+
var getAssetList = async (params) => {
|
|
68
|
+
const { data } = await import_utils.request.getRequest().get(`/h5/pay/asset/lowcode/list`, params);
|
|
69
|
+
return data;
|
|
70
|
+
};
|
|
71
|
+
var getDetailApi = async (params) => {
|
|
72
|
+
const { data } = await import_utils.request.getRequest().get(`/h5/machinecode/lowcode/detail/${params.id}`, {
|
|
73
|
+
order_behavior_count: 1,
|
|
74
|
+
// 订单行为次数
|
|
75
|
+
order_behavior_count_customer: 1
|
|
76
|
+
// 客户订单行为次数
|
|
77
|
+
});
|
|
78
|
+
return data;
|
|
79
|
+
};
|
|
80
|
+
var orderRechargeProduct = async (params) => {
|
|
81
|
+
const { data } = await import_utils.request.getRequest().post(`/h5/order/order`, params);
|
|
82
|
+
return data;
|
|
83
|
+
};
|
|
84
|
+
var getWalletDetail = async (id) => {
|
|
85
|
+
return import_utils.request.getRequest().get(`/h5/wallet/${id}`, {});
|
|
86
|
+
};
|
|
87
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
88
|
+
0 && (module.exports = {
|
|
89
|
+
bindCodeToCustomer,
|
|
90
|
+
getAssetList,
|
|
91
|
+
getDetailApi,
|
|
92
|
+
getUnbindList,
|
|
93
|
+
getWalletDetail,
|
|
94
|
+
getWalletList,
|
|
95
|
+
goOrder,
|
|
96
|
+
orderRechargeProduct,
|
|
97
|
+
setRequest
|
|
98
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PisellPaymentList 使用示例
|
|
3
|
+
*
|
|
4
|
+
* 这个文件演示了如何使用 PisellPaymentList 和 PisellPaymentListItem 组件
|
|
5
|
+
* 包括如何通过 Context 访问父组件配置
|
|
6
|
+
*/
|
|
7
|
+
export declare const BasicExample: () => JSX.Element;
|
|
8
|
+
export declare const ChildrenExample: () => JSX.Element;
|
|
9
|
+
export declare const CustomItemExample: () => JSX.Element;
|
|
10
|
+
export declare const MethodConfigExample: () => JSX.Element;
|
|
11
|
+
export declare const FullFeatureExample: () => JSX.Element;
|
|
12
|
+
declare const _default: {
|
|
13
|
+
BasicExample: () => JSX.Element;
|
|
14
|
+
ChildrenExample: () => JSX.Element;
|
|
15
|
+
CustomItemExample: () => JSX.Element;
|
|
16
|
+
MethodConfigExample: () => JSX.Element;
|
|
17
|
+
FullFeatureExample: () => JSX.Element;
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
|
|
2
|
+
|
|
3
|
+
const SortableWalletPassTypesMeta: ComponentMetadata = {
|
|
4
|
+
"componentName": "SortableWalletPassTypes",
|
|
5
|
+
"title": "可排序钱包通行证类型",
|
|
6
|
+
"docUrl": "",
|
|
7
|
+
"screenshot": "",
|
|
8
|
+
"devMode": "proCode",
|
|
9
|
+
"npm": {
|
|
10
|
+
"package": "@pisell/private-materials",
|
|
11
|
+
"version": "1.1.558",
|
|
12
|
+
"exportName": "SortableWalletPassTypes",
|
|
13
|
+
"main": "src/index.ts",
|
|
14
|
+
"destructuring": true,
|
|
15
|
+
"subName": ""
|
|
16
|
+
},
|
|
17
|
+
"configure": {
|
|
18
|
+
"props": [
|
|
19
|
+
{
|
|
20
|
+
"title": {
|
|
21
|
+
"label": {
|
|
22
|
+
"type": "i18n",
|
|
23
|
+
"en-US": "value",
|
|
24
|
+
"zh-CN": "当前值"
|
|
25
|
+
},
|
|
26
|
+
"tip": {
|
|
27
|
+
"type": "i18n",
|
|
28
|
+
"en-US": "Current value of wallet pass types configuration",
|
|
29
|
+
"zh-CN": "钱包通行证类型的当前配置值"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"name": "value",
|
|
33
|
+
"propType": {
|
|
34
|
+
"type": "arrayOf",
|
|
35
|
+
"value": {
|
|
36
|
+
"type": "shape",
|
|
37
|
+
"value": [
|
|
38
|
+
{
|
|
39
|
+
"name": "type",
|
|
40
|
+
"propType": {
|
|
41
|
+
"type": "oneOf",
|
|
42
|
+
"value": ["balance", "point", "voucher", "discount"]
|
|
43
|
+
},
|
|
44
|
+
"description": "钱包通行证类型"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "display",
|
|
48
|
+
"propType": {
|
|
49
|
+
"type": "oneOf",
|
|
50
|
+
"value": [0, 1]
|
|
51
|
+
},
|
|
52
|
+
"description": "是否显示,1表示显示,0表示隐藏"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "custom_title",
|
|
56
|
+
"propType": {
|
|
57
|
+
"type": "shape",
|
|
58
|
+
"value": [
|
|
59
|
+
{
|
|
60
|
+
"name": "original",
|
|
61
|
+
"propType": "string"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "en",
|
|
65
|
+
"propType": "string"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "zh-CN",
|
|
69
|
+
"propType": "string"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "zh-HK",
|
|
73
|
+
"propType": "string"
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
"description": "自定义标题,支持多语言"
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"setter": ["JsonSetter", "VariableSetter"],
|
|
83
|
+
"defaultValue": [
|
|
84
|
+
{
|
|
85
|
+
"type": "balance",
|
|
86
|
+
"display": 1,
|
|
87
|
+
"custom_title": {
|
|
88
|
+
"original": "Balance",
|
|
89
|
+
"en": "Balance",
|
|
90
|
+
"zh-CN": "余额",
|
|
91
|
+
"zh-HK": "餘額"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"type": "point",
|
|
96
|
+
"display": 1,
|
|
97
|
+
"custom_title": {
|
|
98
|
+
"original": "Points",
|
|
99
|
+
"en": "Points",
|
|
100
|
+
"zh-CN": "积分",
|
|
101
|
+
"zh-HK": "積分"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"type": "voucher",
|
|
106
|
+
"display": 1,
|
|
107
|
+
"custom_title": {
|
|
108
|
+
"original": "Voucher",
|
|
109
|
+
"en": "Voucher",
|
|
110
|
+
"zh-CN": "代金券",
|
|
111
|
+
"zh-HK": "代金券"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"type": "discount",
|
|
116
|
+
"display": 1,
|
|
117
|
+
"custom_title": {
|
|
118
|
+
"original": "Discount",
|
|
119
|
+
"en": "Discount",
|
|
120
|
+
"zh-CN": "折扣券",
|
|
121
|
+
"zh-HK": "折扣券"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"title": {
|
|
128
|
+
"label": {
|
|
129
|
+
"type": "i18n",
|
|
130
|
+
"en-US": "onChange",
|
|
131
|
+
"zh-CN": "变更回调"
|
|
132
|
+
},
|
|
133
|
+
"tip": {
|
|
134
|
+
"type": "i18n",
|
|
135
|
+
"en-US": "Callback function when value changes",
|
|
136
|
+
"zh-CN": "值变化时的回调函数"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"name": "onChange",
|
|
140
|
+
"propType": "func",
|
|
141
|
+
"setter": [
|
|
142
|
+
{
|
|
143
|
+
"componentName": "FunctionSetter",
|
|
144
|
+
"props": {
|
|
145
|
+
"template": "onChange(value,${extParams}){\n// 钱包通行证类型配置变化回调\nconsole.log('value changed:', value);\n}"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"VariableSetter"
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"title": {
|
|
153
|
+
"label": {
|
|
154
|
+
"type": "i18n",
|
|
155
|
+
"en-US": "disabled",
|
|
156
|
+
"zh-CN": "禁用"
|
|
157
|
+
},
|
|
158
|
+
"tip": {
|
|
159
|
+
"type": "i18n",
|
|
160
|
+
"en-US": "Whether to disable the component",
|
|
161
|
+
"zh-CN": "是否禁用组件"
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"name": "disabled",
|
|
165
|
+
"propType": "bool",
|
|
166
|
+
"setter": ["BoolSetter", "VariableSetter"],
|
|
167
|
+
"defaultValue": false
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"title": {
|
|
171
|
+
"label": {
|
|
172
|
+
"type": "i18n",
|
|
173
|
+
"en-US": "className",
|
|
174
|
+
"zh-CN": "CSS类名"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"name": "className",
|
|
178
|
+
"propType": "string",
|
|
179
|
+
"setter": ["StringSetter", "VariableSetter"]
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"title": {
|
|
183
|
+
"label": {
|
|
184
|
+
"type": "i18n",
|
|
185
|
+
"en-US": "style",
|
|
186
|
+
"zh-CN": "内联样式"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"name": "style",
|
|
190
|
+
"propType": "object",
|
|
191
|
+
"setter": ["JsonSetter", "VariableSetter"]
|
|
192
|
+
}
|
|
193
|
+
],
|
|
194
|
+
"supports": {
|
|
195
|
+
"className": true,
|
|
196
|
+
"style": true,
|
|
197
|
+
"events": [
|
|
198
|
+
{
|
|
199
|
+
"name": "onChange",
|
|
200
|
+
"template": "onChange(value,${extParams}){\n// 钱包通行证类型配置变化回调\nconsole.log('value changed:', value);\n}"
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
},
|
|
204
|
+
"component": {
|
|
205
|
+
"isContainer": false
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
const snippets: Snippet[] = [
|
|
211
|
+
{
|
|
212
|
+
"title": "可排序钱包通行证类型",
|
|
213
|
+
"screenshot": "",
|
|
214
|
+
"schema": {
|
|
215
|
+
"componentName": "SortableWalletPassTypes",
|
|
216
|
+
"props": {
|
|
217
|
+
"value": [
|
|
218
|
+
{
|
|
219
|
+
"type": "balance",
|
|
220
|
+
"display": 1,
|
|
221
|
+
"custom_title": {
|
|
222
|
+
"original": "Balance",
|
|
223
|
+
"en": "Balance",
|
|
224
|
+
"zh-CN": "余额",
|
|
225
|
+
"zh-HK": "餘額"
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"type": "point",
|
|
230
|
+
"display": 1,
|
|
231
|
+
"custom_title": {
|
|
232
|
+
"original": "Points",
|
|
233
|
+
"en": "Points",
|
|
234
|
+
"zh-CN": "积分",
|
|
235
|
+
"zh-HK": "積分"
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"type": "voucher",
|
|
240
|
+
"display": 0,
|
|
241
|
+
"custom_title": {
|
|
242
|
+
"original": "Voucher",
|
|
243
|
+
"en": "Voucher",
|
|
244
|
+
"zh-CN": "代金券",
|
|
245
|
+
"zh-HK": "代金券"
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"type": "discount",
|
|
250
|
+
"display": 0,
|
|
251
|
+
"custom_title": {
|
|
252
|
+
"original": "Discount",
|
|
253
|
+
"en": "Discount",
|
|
254
|
+
"zh-CN": "折扣券",
|
|
255
|
+
"zh-HK": "折扣券"
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
]
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
];
|
|
263
|
+
|
|
264
|
+
export default {
|
|
265
|
+
...SortableWalletPassTypesMeta,
|
|
266
|
+
snippets
|
|
267
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ComponentMetadata } from '@alilc/lowcode-types';
|
|
2
|
+
import snippets from './snippets';
|
|
3
|
+
|
|
4
|
+
const WalletEditorMeta: ComponentMetadata = {
|
|
5
|
+
componentName: 'WalletEditor',
|
|
6
|
+
title: '钱包编辑器',
|
|
7
|
+
docUrl: '',
|
|
8
|
+
screenshot: '',
|
|
9
|
+
category: '表单',
|
|
10
|
+
devMode: 'proCode',
|
|
11
|
+
npm: {
|
|
12
|
+
package: '@pisell/private-materials',
|
|
13
|
+
version: '1.0.0',
|
|
14
|
+
exportName: 'WalletEditor',
|
|
15
|
+
main: 'src/index.tsx',
|
|
16
|
+
destructuring: true,
|
|
17
|
+
subName: '',
|
|
18
|
+
},
|
|
19
|
+
props: [],
|
|
20
|
+
configure: {
|
|
21
|
+
props: [
|
|
22
|
+
{
|
|
23
|
+
title: {
|
|
24
|
+
label: '钱包配置值',
|
|
25
|
+
},
|
|
26
|
+
name: 'value',
|
|
27
|
+
propType: 'object',
|
|
28
|
+
setter: 'JsonSetter',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
title: {
|
|
32
|
+
label: '样式类名',
|
|
33
|
+
},
|
|
34
|
+
name: 'className',
|
|
35
|
+
propType: 'string',
|
|
36
|
+
setter: 'StringSetter',
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
supports: {
|
|
40
|
+
style: true,
|
|
41
|
+
events: [
|
|
42
|
+
{
|
|
43
|
+
name: 'onChange',
|
|
44
|
+
description: '钱包配置变化时的回调',
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
},
|
|
48
|
+
component: {
|
|
49
|
+
isContainer: false,
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export default {
|
|
55
|
+
...WalletEditorMeta,
|
|
56
|
+
snippets,
|
|
57
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const Meta = {
|
|
2
|
+
componentName: 'WalletPassGallery',
|
|
3
|
+
title: 'WalletPassGallery',
|
|
4
|
+
docUrl: '',
|
|
5
|
+
screenshot: '',
|
|
6
|
+
devMode: 'proCode',
|
|
7
|
+
npm: {
|
|
8
|
+
package: '@pisell/private-materials',
|
|
9
|
+
version: '1.1.558',
|
|
10
|
+
exportName: 'WalletPassGallery',
|
|
11
|
+
main: 'src/index.ts',
|
|
12
|
+
destructuring: true,
|
|
13
|
+
subName: '',
|
|
14
|
+
},
|
|
15
|
+
configure: {
|
|
16
|
+
props: [],
|
|
17
|
+
supports: {},
|
|
18
|
+
component: {},
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
const snippets = [
|
|
22
|
+
{
|
|
23
|
+
title: '钱包卡券列表',
|
|
24
|
+
screenshot: '',
|
|
25
|
+
schema: {
|
|
26
|
+
componentName: 'WalletPassGallery',
|
|
27
|
+
props: {},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
];
|
|
31
|
+
|
|
32
|
+
export default {
|
|
33
|
+
...Meta,
|
|
34
|
+
snippets,
|
|
35
|
+
};
|