@pisell/private-materials 3.2.2 → 3.2.4
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 +1 -1
- package/build/lowcode/preview.js +3 -3
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/addons/model.js +5 -5
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/selectProductItem/index.js +4 -4
- package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
- package/es/components/booking/components/browserSelect/index.js +1 -1
- package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/deposit/index.d.ts +1 -0
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/forms/model.js +5 -5
- package/es/components/booking/forms/single/index.d.ts +1 -0
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/hooks/useClearCart.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/date/index.d.ts +1 -0
- package/es/components/booking/info/header/index.d.ts +1 -0
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/notes/index.d.ts +1 -0
- package/es/components/booking/info/service/actions/index.d.ts +1 -0
- package/es/components/booking/info/service/like/index.d.ts +1 -0
- package/es/components/booking/info/service/like/index.js +1 -1
- package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
- package/es/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/info2/service/actions/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/index.d.ts +1 -0
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
- package/es/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/es/components/booking/materiels/contacts/index.d.ts +1 -0
- package/es/components/booking/materiels/contacts/index.js +5 -5
- package/es/components/booking/materiels/duration/index.d.ts +1 -0
- package/es/components/booking/materiels/startTime/index.d.ts +1 -0
- package/es/components/booking/materiels/startTime/index.js +1 -1
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/es/components/booking/notes/NoteBlock/index.js +11 -11
- package/es/components/booking/notes/addNote/index.d.ts +1 -0
- package/es/components/booking/notes/addNote/index.js +1 -1
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/notes/model.js +5 -5
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/booking/payments/model.js +5 -5
- package/es/components/eftpos/deviceList/index.d.ts +1 -0
- package/es/components/eftpos/form/index.d.ts +1 -0
- package/es/components/eftpos/group/index.d.ts +1 -0
- package/es/components/eftpos/hooks.d.ts +1 -0
- package/es/components/eftpos/icon/apiKey.d.ts +1 -0
- package/es/components/eftpos/icon/device.d.ts +1 -0
- package/es/components/eftpos/index.d.ts +1 -0
- package/es/components/eftpos/pos.d.ts +1 -0
- package/es/components/eftpos/receipt/index.d.ts +1 -0
- package/es/components/eftpos/surcharge/index.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +2 -1
- package/es/components/eftposPay/app.d.ts +1 -0
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/es/components/eftposPay/component/fail/network.d.ts +1 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/es/components/eftposPay/component/manual/index.d.ts +1 -0
- package/es/components/eftposPay/component/signature/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/step.d.ts +1 -0
- package/es/components/eftposPay/device.d.ts +2 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/payo/config.d.ts +1 -0
- package/es/components/eftposPay/store/index.d.ts +5 -5
- package/es/components/eftposPay/tip.d.ts +1 -0
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/es/components/listComponent/index.js +5 -5
- package/es/components/login/index.d.ts +1 -0
- package/es/components/login/index.js +1 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/index.d.ts +1 -0
- package/es/components/productExtension/card/index.js +3 -3
- package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.js +12 -12
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
- package/es/components/productExtension/index.d.ts +1 -0
- package/es/components/productExtension/index.js +7 -7
- package/es/components/productExtension/server.js +2 -2
- package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/es/components/ruleSetting/ruleBorder/index.js +1 -1
- package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/es/components/schedules/calendar/index.d.ts +1 -0
- package/es/components/schedules/calendar/index.js +4 -4
- package/es/components/schedules/calendar/serve.js +2 -2
- package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/es/components/schedules/components/CurrentDay/index.js +5 -5
- package/es/components/schedules/components/CurrentDay/serve.js +2 -2
- package/es/components/schedules/components/DropdownSort/index.js +1 -1
- package/es/components/schedules/components/ResourceList/index.js +1 -1
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/es/components/schedules/components/Search/index.js +5 -5
- package/es/components/schedules/index.js +10 -10
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/schedules/model.js +5 -5
- package/es/components/schedules/openHours/index.js +1 -1
- package/es/components/schedules/openHours/serve.js +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
- package/es/components/schedules/products/index.d.ts +1 -0
- package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/es/components/schedules/products/list/index.d.ts +1 -0
- package/es/components/schedules/products/serve.js +2 -2
- package/es/components/schedules/products/utils.js +5 -5
- package/es/components/schedules/resources/detail/detailContent.js +2 -2
- package/es/components/schedules/resources/detail/index.js +10 -10
- package/es/components/schedules/resources/index.d.ts +1 -0
- package/es/components/schedules/resources/list/index.d.ts +1 -0
- package/es/components/schedules/resources/list/index.js +2 -2
- package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/es/components/schedules/resources/relationProduct/index.js +1 -1
- package/es/components/schedules/resources/serve.js +2 -2
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
- package/es/components/schedules/schedules/index.d.ts +1 -0
- package/es/components/schedules/utils.js +4 -4
- package/es/components/selectModal/index.js +2 -2
- package/es/components/taxSelect/index.d.ts +1 -0
- package/es/components/wallet/Detail/index.js +13 -36
- package/es/components/wallet/Detail/index.less +1 -1
- package/es/components/wallet/Detail/model.d.ts +13 -1
- package/es/components/wallet/Detail/serve.js +1 -3
- package/es/components/wallet/DiscountCard/index.js +0 -7
- package/es/components/wallet/DiscountCard/model.d.ts +14 -1
- package/es/components/wallet/PointCard/index.js +1 -3
- package/es/components/wallet/PointCard/model.d.ts +13 -1
- package/es/components/wallet/RechargeableCard/index.js +0 -1
- package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/es/components/wallet/Voucher/index.js +36 -3
- package/es/components/wallet/Voucher/model.d.ts +13 -1
- package/es/components/wallet/components/WalletCard.js +0 -1
- package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/es/components/wallet/index.js +0 -2
- package/es/components/wallet/model.d.ts +9 -1
- package/es/components/walletList/index.js +3 -4
- package/es/components/walletList/index.less +1 -1
- package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/es/hooks/useComponents.js +1 -1
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/deposit/index.d.ts +1 -0
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/forms/single/index.d.ts +1 -0
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/date/index.d.ts +1 -0
- package/lib/components/booking/info/header/index.d.ts +1 -0
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/notes/index.d.ts +1 -0
- package/lib/components/booking/info/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info/service/like/index.d.ts +1 -0
- package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
- package/lib/components/booking/info/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
- package/lib/components/booking/info2/service/serviceList/index.d.ts +1 -0
- package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
- package/lib/components/booking/materiels/duration/index.d.ts +1 -0
- package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/lib/components/booking/notes/addNote/index.d.ts +1 -0
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/eftpos/deviceList/index.d.ts +1 -0
- package/lib/components/eftpos/form/index.d.ts +1 -0
- package/lib/components/eftpos/group/index.d.ts +1 -0
- package/lib/components/eftpos/hooks.d.ts +1 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
- package/lib/components/eftpos/icon/device.d.ts +1 -0
- package/lib/components/eftpos/index.d.ts +1 -0
- package/lib/components/eftpos/pos.d.ts +1 -0
- package/lib/components/eftpos/receipt/index.d.ts +1 -0
- package/lib/components/eftpos/surcharge/index.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +2 -1
- package/lib/components/eftposPay/app.d.ts +1 -0
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
- package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/step.d.ts +1 -0
- package/lib/components/eftposPay/device.d.ts +2 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/payo/config.d.ts +1 -0
- package/lib/components/eftposPay/store/index.d.ts +5 -5
- package/lib/components/eftposPay/tip.d.ts +1 -0
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/lib/components/login/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/lib/components/productExtension/index.d.ts +1 -0
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/lib/components/schedules/calendar/index.d.ts +1 -0
- package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/lib/components/schedules/index.js +1 -2
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/products/index.d.ts +1 -0
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/lib/components/schedules/products/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/index.d.ts +1 -0
- package/lib/components/schedules/resources/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/schedules/index.d.ts +1 -0
- package/lib/components/schedules/utils.js +1 -1
- package/lib/components/taxSelect/index.d.ts +1 -0
- package/lib/components/wallet/Detail/index.js +22 -33
- package/lib/components/wallet/Detail/index.less +1 -1
- package/lib/components/wallet/Detail/model.d.ts +13 -1
- package/lib/components/wallet/Detail/serve.js +1 -1
- package/lib/components/wallet/DiscountCard/index.js +0 -5
- package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
- package/lib/components/wallet/PointCard/index.js +0 -2
- 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/index.js +26 -1
- package/lib/components/wallet/Voucher/model.d.ts +13 -1
- package/lib/components/wallet/components/WalletCard.js +0 -1
- package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/lib/components/wallet/index.js +0 -2
- package/lib/components/wallet/model.d.ts +9 -1
- package/lib/components/walletList/index.js +3 -3
- package/lib/components/walletList/index.less +1 -1
- package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/package.json +4 -4
|
@@ -3,7 +3,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
3
3
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
4
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5
5
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
6
|
-
function _iterableToArrayLimit(
|
|
6
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
7
7
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
8
|
import React, { useState, useMemo } from "react";
|
|
9
9
|
import classNames from "classnames";
|
|
@@ -60,7 +60,7 @@ var SelectModal = function SelectModal(props) {
|
|
|
60
60
|
} : undefined);
|
|
61
61
|
}, [search, dataSource]);
|
|
62
62
|
var onSelect = function onSelect(item) {
|
|
63
|
-
onChange === null || onChange === void 0
|
|
63
|
+
onChange === null || onChange === void 0 || onChange(changeArray(_value, item, "id"));
|
|
64
64
|
onClose();
|
|
65
65
|
};
|
|
66
66
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -9,11 +9,11 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
9
9
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
10
10
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
11
|
import React, { useEffect, useMemo, useState, useRef, forwardRef, useImperativeHandle, useCallback, useLayoutEffect } from 'react';
|
|
12
|
+
import { usePisellConfig } from '@pisell/materials';
|
|
12
13
|
import dayjs from 'dayjs';
|
|
13
14
|
import XClose from '@pisell/icon/es/XClose';
|
|
14
15
|
import timezone from 'dayjs/plugin/timezone';
|
|
15
16
|
// import { isWx, isMobile, isSafari } from '@pisell/utils';
|
|
16
|
-
|
|
17
17
|
import { isMobile, isIos, locales } from '@pisell/utils';
|
|
18
18
|
import utc from 'dayjs/plugin/utc';
|
|
19
19
|
import { ButtonGroupPreview, PisellEmpty, Timeline, PisellAnchor, PisellModal, Typography, PisellStatisticList, Button, PisellToast, Skeleton } from '@pisell/materials';
|
|
@@ -23,28 +23,15 @@ import { getAssetList, getDetailApi } from "./serve";
|
|
|
23
23
|
import { request } from "./../../../utils";
|
|
24
24
|
import { WalletBar, FooterButtons } from "../components";
|
|
25
25
|
import "./index.less";
|
|
26
|
-
|
|
27
|
-
var Title = Typography.Title,
|
|
28
|
-
Text = Typography.Text;
|
|
26
|
+
var Text = Typography.Text;
|
|
29
27
|
dayjs.extend(timezone);
|
|
30
28
|
dayjs.extend(utc);
|
|
31
|
-
|
|
32
|
-
// 从DetailContext中获取closeDetail函数
|
|
33
|
-
var useCloseDetail = function useCloseDetail() {
|
|
34
|
-
var detailContext = window.__WALLET_DETAIL_CONTEXT__;
|
|
35
|
-
return detailContext === null || detailContext === void 0 ? void 0 : detailContext.closeDetail;
|
|
36
|
-
};
|
|
37
29
|
var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
38
|
-
var _context$appHelper, _utils$getStore, _dvaStore$core, _context$appHelper2, _store$getState,
|
|
30
|
+
var _context$appHelper, _utils$getStore, _dvaStore$core, _context$appHelper2, _store$getState, _detail$machinecode_c;
|
|
39
31
|
var _props$detail = props.detail,
|
|
40
32
|
detail = _props$detail === void 0 ? {} : _props$detail,
|
|
41
33
|
_props$buttonGroupLis = props.buttonGroupList,
|
|
42
34
|
buttonGroupList = _props$buttonGroupLis === void 0 ? [[]] : _props$buttonGroupLis,
|
|
43
|
-
addWalletCallback = props.addWalletCallback,
|
|
44
|
-
_props$style = props.style,
|
|
45
|
-
style = _props$style === void 0 ? {} : _props$style,
|
|
46
|
-
_props$isDiscoundCard = props.isDiscoundCard,
|
|
47
|
-
isDiscoundCard = _props$isDiscoundCard === void 0 ? false : _props$isDiscoundCard,
|
|
48
35
|
className = props.className,
|
|
49
36
|
_props$showWalletBar = props.showWalletBar,
|
|
50
37
|
showWalletBar = _props$showWalletBar === void 0 ? false : _props$showWalletBar,
|
|
@@ -52,9 +39,7 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
52
39
|
|
|
53
40
|
// 直接从detail对象中解构这些属性可能是问题所在,它们可能不会正确传递
|
|
54
41
|
// 将它们作为独立属性来处理,避免嵌套解构导致的问题
|
|
55
|
-
var _detail$
|
|
56
|
-
id = _detail$id === void 0 ? '' : _detail$id,
|
|
57
|
-
_detail$code = detail.code,
|
|
42
|
+
var _detail$code = detail.code,
|
|
58
43
|
code = _detail$code === void 0 ? '' : _detail$code,
|
|
59
44
|
_detail$tag = detail.tag,
|
|
60
45
|
tag = _detail$tag === void 0 ? '' : _detail$tag,
|
|
@@ -66,9 +51,7 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
66
51
|
_detail$expire_date = detail.expire_date,
|
|
67
52
|
expire_date = _detail$expire_date === void 0 ? '' : _detail$expire_date,
|
|
68
53
|
_detail$product = detail.product,
|
|
69
|
-
product = _detail$product === void 0 ? {} : _detail$product
|
|
70
|
-
_detail$machinecode_c = detail.machinecode_config,
|
|
71
|
-
machinecode_config = _detail$machinecode_c === void 0 ? {} : _detail$machinecode_c;
|
|
54
|
+
product = _detail$product === void 0 ? {} : _detail$product;
|
|
72
55
|
var _product$description = product.description,
|
|
73
56
|
description = _product$description === void 0 ? '' : _product$description;
|
|
74
57
|
var context = useEngineContext();
|
|
@@ -178,16 +161,19 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
178
161
|
} else if (tag === 'point_card') {
|
|
179
162
|
data.splice(2, 0, {
|
|
180
163
|
label: locales.getText('page.wallet.points'),
|
|
181
|
-
value: balance ? "".concat(balance) : ''
|
|
164
|
+
value: balance ? "".concat(Number(balance)) : ''
|
|
182
165
|
});
|
|
183
166
|
} else {
|
|
184
167
|
data.splice(2, 0, {
|
|
185
168
|
label: locales.getText('page.wallet.balance'),
|
|
186
|
-
value: balance ? "".concat(symbol).concat(balance) : ''
|
|
169
|
+
value: balance ? "".concat(symbol).concat(Number(balance)) : ''
|
|
187
170
|
});
|
|
188
171
|
}
|
|
189
172
|
setListData(data);
|
|
190
173
|
}, [detail]);
|
|
174
|
+
var _usePisellConfig = usePisellConfig(),
|
|
175
|
+
_usePisellConfig$symb = _usePisellConfig.symbol,
|
|
176
|
+
symbol = _usePisellConfig$symb === void 0 ? '$' : _usePisellConfig$symb;
|
|
191
177
|
|
|
192
178
|
// 注册多语言
|
|
193
179
|
locales.init(localeTexts, (dvaStore === null || dvaStore === void 0 || (_dvaStore$core = dvaStore.core) === null || _dvaStore$core === void 0 ? void 0 : _dvaStore$core.translateLocale) || 'en');
|
|
@@ -198,10 +184,7 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
198
184
|
},
|
|
199
185
|
store = _ref.store;
|
|
200
186
|
var platform = isMobile() ? 'h5' : 'pc';
|
|
201
|
-
|
|
202
|
-
// store?.getState?.()?.global?.symbol?.shop.currency_symbol || '$';
|
|
203
|
-
var symbol = (store === null || store === void 0 || (_store$getState = store.getState) === null || _store$getState === void 0 || (_store$getState = _store$getState.call(store)) === null || _store$getState === void 0 || (_store$getState = _store$getState.global) === null || _store$getState === void 0 ? void 0 : _store$getState.symbol) || '$';
|
|
204
|
-
var timezone = (store === null || store === void 0 || (_store$getState2 = store.getState) === null || _store$getState2 === void 0 || (_store$getState2 = _store$getState2.call(store)) === null || _store$getState2 === void 0 || (_store$getState2 = _store$getState2.global) === null || _store$getState2 === void 0 || (_store$getState2 = _store$getState2.symbol) === null || _store$getState2 === void 0 ? void 0 : _store$getState2.shop.timezone) || 'Asia/Shanghai';
|
|
187
|
+
var timezone = (store === null || store === void 0 || (_store$getState = store.getState) === null || _store$getState === void 0 || (_store$getState = _store$getState.call(store)) === null || _store$getState === void 0 || (_store$getState = _store$getState.global) === null || _store$getState === void 0 || (_store$getState = _store$getState.symbol) === null || _store$getState === void 0 ? void 0 : _store$getState.shop.timezone) || 'Asia/Shanghai';
|
|
205
188
|
var formatTimeLineDta = function formatTimeLineDta(data) {
|
|
206
189
|
if (data.length < 0) return [];
|
|
207
190
|
|
|
@@ -325,7 +308,7 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
325
308
|
|
|
326
309
|
// 如果是积分卡 移除掉2024-8-10之前的数据
|
|
327
310
|
if (((_filterList$i3 = filterList[i]) === null || _filterList$i3 === void 0 ? void 0 : _filterList$i3.tag) === 'point_card' && dayjs.tz((_filterList$i4 = filterList[i]) === null || _filterList$i4 === void 0 ? void 0 : _filterList$i4.created_at, timezone).unix() < stateTimeUnix) {
|
|
328
|
-
filterList.splice(i, 1); // 移除当前索引的元素
|
|
311
|
+
filterList.splice(i, 1); // 移除当前索引的元素
|
|
329
312
|
}
|
|
330
313
|
}
|
|
331
314
|
setTimeLineData(formatTimeLineDta(filterList));
|
|
@@ -354,12 +337,6 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
354
337
|
getTimeTreeList();
|
|
355
338
|
}
|
|
356
339
|
}, [code]);
|
|
357
|
-
var cardProps = {
|
|
358
|
-
className: classnames('pisell-wallet-card', props.className),
|
|
359
|
-
style: {
|
|
360
|
-
border: platform === 'pc' ? '1px solid #EAECF0' : 'none'
|
|
361
|
-
}
|
|
362
|
-
};
|
|
363
340
|
var onAppleClick = function onAppleClick() {
|
|
364
341
|
if (isWechat()) {
|
|
365
342
|
setWechatModalOpen(true);
|
|
@@ -792,7 +769,7 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
792
769
|
}, /*#__PURE__*/React.createElement(PisellEmpty, null))))))), platform === 'h5' && /*#__PURE__*/React.createElement(FooterButtons, {
|
|
793
770
|
step: "detail",
|
|
794
771
|
onAppleWalletClick: tag === 'gift_card' ? addWalletCard : undefined,
|
|
795
|
-
onRechargeClick: tag === 'gift_card' && (detail === null || detail === void 0 || (_detail$
|
|
772
|
+
onRechargeClick: tag === 'gift_card' && (detail === null || detail === void 0 || (_detail$machinecode_c = detail.machinecode_config) === null || _detail$machinecode_c === void 0 ? void 0 : _detail$machinecode_c.hide_recharge) === 0 ? handleRecharge : undefined,
|
|
796
773
|
platform: platform,
|
|
797
774
|
isIOS: isIos()
|
|
798
775
|
}), /*#__PURE__*/React.createElement(PisellModal, {
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface RechargeState {
|
|
3
|
+
addWalletCard: any;
|
|
4
|
+
}
|
|
5
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
6
|
+
walletDetailState: RechargeState;
|
|
7
|
+
} & {
|
|
8
|
+
dispatch: (params: {
|
|
9
|
+
type: string;
|
|
10
|
+
payload: any;
|
|
11
|
+
}) => void;
|
|
12
|
+
}>;
|
|
13
|
+
export {};
|
|
@@ -15,9 +15,7 @@ export var getAssetList = /*#__PURE__*/function () {
|
|
|
15
15
|
while (1) switch (_context.prev = _context.next) {
|
|
16
16
|
case 0:
|
|
17
17
|
_context.next = 2;
|
|
18
|
-
return request.getRequest().get("/h5/pay/asset/lowcode/list", params
|
|
19
|
-
abort: true
|
|
20
|
-
});
|
|
18
|
+
return request.getRequest().get("/h5/pay/asset/lowcode/list", params);
|
|
21
19
|
case 2:
|
|
22
20
|
_yield$request$getReq = _context.sent;
|
|
23
21
|
data = _yield$request$getReq.data;
|
|
@@ -29,9 +29,6 @@ var RechargeableCard = Provider(function (props) {
|
|
|
29
29
|
var context = useEngineContext();
|
|
30
30
|
var utils = context.appHelper.utils || {};
|
|
31
31
|
var dvaStore = utils === null || utils === void 0 || (_utils$getStore = utils.getStore) === null || _utils$getStore === void 0 || (_utils$getStore = _utils$getStore.call(utils)) === null || _utils$getStore === void 0 ? void 0 : _utils$getStore.getState();
|
|
32
|
-
var _ref = utils || {},
|
|
33
|
-
action = _ref.action,
|
|
34
|
-
storage = _ref.storage;
|
|
35
32
|
var platform = useMemo(function () {
|
|
36
33
|
return isMobile() ? 'h5' : 'pc';
|
|
37
34
|
}, []);
|
|
@@ -61,7 +58,6 @@ var RechargeableCard = Provider(function (props) {
|
|
|
61
58
|
});
|
|
62
59
|
|
|
63
60
|
// 添加打印,便于调试
|
|
64
|
-
console.log('%c [ DiscountCard global setup sync ]-46', 'font-size:13px; color:#bf2c9f;', globalState.setup);
|
|
65
61
|
}
|
|
66
62
|
}, [globalState.setup]);
|
|
67
63
|
|
|
@@ -87,7 +83,6 @@ var RechargeableCard = Provider(function (props) {
|
|
|
87
83
|
});
|
|
88
84
|
|
|
89
85
|
// 添加打印,便于调试
|
|
90
|
-
console.log('%c [ DiscountCard setup back ]-51', 'font-size:13px; color:#bf2c9f;', 'list');
|
|
91
86
|
};
|
|
92
87
|
var _renderItem = function renderItem(item) {
|
|
93
88
|
return /*#__PURE__*/React.createElement(WalletCard, {
|
|
@@ -152,7 +147,6 @@ var RechargeableCard = Provider(function (props) {
|
|
|
152
147
|
if (!(currentDetail !== null && currentDetail !== void 0 && currentDetail.id)) return null;
|
|
153
148
|
|
|
154
149
|
// 打印当前状态
|
|
155
|
-
console.log('%c [ DiscountCard detail ]-132', 'font-size:13px; color:#bf2c9f;', globalState.setup);
|
|
156
150
|
|
|
157
151
|
// 添加必要属性,确保详情正确显示
|
|
158
152
|
var detailWithBar = _objectSpread(_objectSpread({}, currentDetail), {}, {
|
|
@@ -187,7 +181,6 @@ var RechargeableCard = Provider(function (props) {
|
|
|
187
181
|
});
|
|
188
182
|
|
|
189
183
|
// 添加打印,便于调试
|
|
190
|
-
console.log('%c [ DiscountCard setup click ]-178', 'font-size:13px; color:#bf2c9f;', 'detail');
|
|
191
184
|
|
|
192
185
|
// 添加必要属性,确保详情正确显示
|
|
193
186
|
openDetail(_objectSpread(_objectSpread({}, currentDetail), {}, {
|
|
@@ -1 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface RechargeState {
|
|
3
|
+
total: number;
|
|
4
|
+
setup?: 'menu' | 'list' | 'detail' | string;
|
|
5
|
+
}
|
|
6
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
7
|
+
state: RechargeState;
|
|
8
|
+
} & {
|
|
9
|
+
dispatch: (params: {
|
|
10
|
+
type: string;
|
|
11
|
+
payload: any;
|
|
12
|
+
}) => void;
|
|
13
|
+
}>;
|
|
14
|
+
export {};
|
|
@@ -5,7 +5,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
import React, { useContext, useEffect, useRef, useCallback } from 'react';
|
|
8
|
-
import { RecordView, PisellEmpty,
|
|
8
|
+
import { RecordView, PisellEmpty, CardMetricItem, Typography } from '@pisell/materials';
|
|
9
9
|
import { Context, Provider } from "./model";
|
|
10
10
|
import useEngineContext from "../../../hooks/useEngineContext";
|
|
11
11
|
import { locales, isMobile } from '@pisell/utils';
|
|
@@ -14,7 +14,6 @@ import "./index.less";
|
|
|
14
14
|
import { useDetail } from "../DetailContext";
|
|
15
15
|
import WalletCard from "../components/WalletCard";
|
|
16
16
|
var Title = Typography.Title;
|
|
17
|
-
var Amount = PisellText.Amount;
|
|
18
17
|
var RechargeableCard = Provider(function (props) {
|
|
19
18
|
var _utils$getStore, _dvaStore$core;
|
|
20
19
|
var globalState = props.globalState,
|
|
@@ -114,7 +113,6 @@ var RechargeableCard = Provider(function (props) {
|
|
|
114
113
|
(_recordViewRef$curren = recordViewRef.current) === null || _recordViewRef$curren === void 0 || _recordViewRef$curren.closeDetailModal();
|
|
115
114
|
}
|
|
116
115
|
}, [globalState.setup]);
|
|
117
|
-
console.log('%c [ state.total ]-132', 'font-size:13px; color:#bf2c9f;', state.total);
|
|
118
116
|
return isEmpty ? /*#__PURE__*/React.createElement(PisellEmpty, null) : /*#__PURE__*/React.createElement(React.Fragment, null, platform !== 'pc' && /*#__PURE__*/React.createElement(Title, {
|
|
119
117
|
className: "wallet-pointCard-title"
|
|
120
118
|
}, locales.getText('page.wallet.pointCard')), /*#__PURE__*/React.createElement(CardMetricItem, {
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface RechargeState {
|
|
3
|
+
total: number;
|
|
4
|
+
}
|
|
5
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
6
|
+
state: RechargeState;
|
|
7
|
+
} & {
|
|
8
|
+
dispatch: (params: {
|
|
9
|
+
type: string;
|
|
10
|
+
payload: any;
|
|
11
|
+
}) => void;
|
|
12
|
+
}>;
|
|
13
|
+
export {};
|
|
@@ -261,7 +261,6 @@ var RechargeableCard = Provider(function (props) {
|
|
|
261
261
|
};
|
|
262
262
|
// 获取商店信息
|
|
263
263
|
var shop = ((_dvaStore$core2 = dvaStore.core) === null || _dvaStore$core2 === void 0 || (_dvaStore$core2 = _dvaStore$core2.core) === null || _dvaStore$core2 === void 0 ? void 0 : _dvaStore$core2.shop) || {};
|
|
264
|
-
|
|
265
264
|
/**
|
|
266
265
|
* 处理充值
|
|
267
266
|
*/
|
|
@@ -1 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface RechargeState {
|
|
3
|
+
selectedGiftOptionId: string | null;
|
|
4
|
+
cardList: Array<{
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
price: number;
|
|
8
|
+
}>;
|
|
9
|
+
selectedItem: {
|
|
10
|
+
id?: string;
|
|
11
|
+
gift_price?: number;
|
|
12
|
+
price?: number;
|
|
13
|
+
name?: string;
|
|
14
|
+
variant_id?: string;
|
|
15
|
+
};
|
|
16
|
+
productId?: string;
|
|
17
|
+
detailId?: string;
|
|
18
|
+
total: string | number;
|
|
19
|
+
rechargeModalOpen: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
22
|
+
state: RechargeState;
|
|
23
|
+
} & {
|
|
24
|
+
dispatch: (params: {
|
|
25
|
+
type: string;
|
|
26
|
+
payload: any;
|
|
27
|
+
}) => void;
|
|
28
|
+
}>;
|
|
29
|
+
export {};
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
import React, { useContext, useEffect, useRef, useCallback } from 'react';
|
|
2
8
|
import { RecordView, PisellEmpty, CardMetricItem, Typography } from '@pisell/materials';
|
|
3
9
|
import { Context, Provider } from "./model";
|
|
4
10
|
import WalletCard from "../components/WalletCard";
|
|
5
11
|
import { useWalletCard } from "../hooks/useWalletCard";
|
|
6
12
|
import { locales } from '@pisell/utils';
|
|
13
|
+
import { useDetail } from "../DetailContext";
|
|
7
14
|
import "./index.less";
|
|
8
15
|
var Title = Typography.Title;
|
|
9
16
|
/**
|
|
@@ -16,7 +23,9 @@ var Voucher = Provider(function (props) {
|
|
|
16
23
|
var _globalState$product_ = globalState.product_voucher,
|
|
17
24
|
product_voucher = _globalState$product_ === void 0 ? [] : _globalState$product_;
|
|
18
25
|
var recordViewRef = useRef(null);
|
|
19
|
-
|
|
26
|
+
var _useDetail = useDetail(),
|
|
27
|
+
openDetail = _useDetail.openDetail,
|
|
28
|
+
renderDetail = _useDetail.renderDetail;
|
|
20
29
|
// 使用通用钱包卡片钩子
|
|
21
30
|
var _useWalletCard = useWalletCard({
|
|
22
31
|
globalState: globalState,
|
|
@@ -57,6 +66,16 @@ var Voucher = Provider(function (props) {
|
|
|
57
66
|
if (isEmpty) {
|
|
58
67
|
return /*#__PURE__*/React.createElement(PisellEmpty, null);
|
|
59
68
|
}
|
|
69
|
+
// 添加处理后退按钮的方法
|
|
70
|
+
var handleBack = useCallback(function () {
|
|
71
|
+
if (recordViewRef.current) {
|
|
72
|
+
recordViewRef.current.closeDetailModal();
|
|
73
|
+
}
|
|
74
|
+
// 更新状态
|
|
75
|
+
setGlobalState({
|
|
76
|
+
setup: 'list'
|
|
77
|
+
});
|
|
78
|
+
}, [recordViewRef, setGlobalState]);
|
|
60
79
|
return /*#__PURE__*/React.createElement(React.Fragment, null, platform !== 'pc' && /*#__PURE__*/React.createElement(Title, {
|
|
61
80
|
className: "wallet-voucher-title"
|
|
62
81
|
}, locales.getText('page.wallet.voucher')), /*#__PURE__*/React.createElement(CardMetricItem, {
|
|
@@ -73,7 +92,21 @@ var Voucher = Provider(function (props) {
|
|
|
73
92
|
leftSpan: 9,
|
|
74
93
|
rightSpan: 15,
|
|
75
94
|
gutter: 20,
|
|
76
|
-
onRowClick:
|
|
95
|
+
onRowClick: function onRowClick(currentDetail) {
|
|
96
|
+
setGlobalState({
|
|
97
|
+
currentId: currentDetail.id || '',
|
|
98
|
+
currentDetail: currentDetail,
|
|
99
|
+
setup: 'detail' // 设置状态为detail
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
// 添加必要属性,确保详情正确显示
|
|
103
|
+
var detailWithProps = _objectSpread(_objectSpread({}, currentDetail), {}, {
|
|
104
|
+
showWalletBar: platform === 'h5',
|
|
105
|
+
// 添加显示WalletBar的标志
|
|
106
|
+
onBack: handleBack // 添加返回处理函数
|
|
107
|
+
});
|
|
108
|
+
openDetail(detailWithProps);
|
|
109
|
+
},
|
|
77
110
|
modalWrapStyle: {
|
|
78
111
|
overflowY: 'auto',
|
|
79
112
|
top: 68,
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface RechargeState {
|
|
3
|
+
total: 0;
|
|
4
|
+
}
|
|
5
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
6
|
+
state: RechargeState;
|
|
7
|
+
} & {
|
|
8
|
+
dispatch: (params: {
|
|
9
|
+
type: string;
|
|
10
|
+
payload: any;
|
|
11
|
+
}) => void;
|
|
12
|
+
}>;
|
|
13
|
+
export {};
|
|
@@ -50,7 +50,6 @@ var WalletCard = function WalletCard(_ref) {
|
|
|
50
50
|
|
|
51
51
|
// 是否为当前选中项
|
|
52
52
|
var isActive = id === currentId && platform === 'pc';
|
|
53
|
-
console.log('%c [ tag ]-49', 'font-size:13px; color:#bf2c9f;', tag);
|
|
54
53
|
// 是否禁用
|
|
55
54
|
var isDisabled = limit_status !== 'enable';
|
|
56
55
|
return /*#__PURE__*/React.createElement(PisellWalletPassCard, {
|
|
@@ -339,7 +339,6 @@ var Wallet = Provider(function () {
|
|
|
339
339
|
* 处理返回按钮点击
|
|
340
340
|
*/
|
|
341
341
|
var onBack = function onBack() {
|
|
342
|
-
console.log('%c [ setup ]-339', 'font-size:13px; color:#bf2c9f;', setup);
|
|
343
342
|
if (setup === 'menu') {
|
|
344
343
|
history.back(); // 后退到上一步
|
|
345
344
|
} else {
|
|
@@ -583,7 +582,6 @@ var Wallet = Provider(function () {
|
|
|
583
582
|
if (setup === 'menu') {
|
|
584
583
|
return null;
|
|
585
584
|
}
|
|
586
|
-
console.log('%c [ setup ]-538', 'font-size:13px; background:pink; color:#bf2c9f;', setup);
|
|
587
585
|
// 添加按钮(setup=list时显示)
|
|
588
586
|
if (setup === 'list') {
|
|
589
587
|
return /*#__PURE__*/React.createElement(Button, {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { IWalletListItemProps } from './serve';
|
|
2
3
|
export interface WalletCardItemProps {
|
|
3
4
|
id: string;
|
|
@@ -26,4 +27,11 @@ export interface WalletListProps {
|
|
|
26
27
|
currentSearchListItemCode?: string;
|
|
27
28
|
[key: string]: any;
|
|
28
29
|
}
|
|
29
|
-
export declare const Provider: any, Context:
|
|
30
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
31
|
+
global_wallet: WalletListProps;
|
|
32
|
+
} & {
|
|
33
|
+
dispatch: (params: {
|
|
34
|
+
type: string;
|
|
35
|
+
payload: any;
|
|
36
|
+
}) => void;
|
|
37
|
+
}>;
|
|
@@ -523,16 +523,15 @@ var WalletList = Provider(function (props) {
|
|
|
523
523
|
return {
|
|
524
524
|
key: key,
|
|
525
525
|
label: key,
|
|
526
|
-
// 不做多语言处理,保持原样
|
|
527
526
|
hidden: false,
|
|
528
527
|
value: balanceKey ? balance[balanceKey] || 0 : 0
|
|
529
528
|
};
|
|
530
529
|
});
|
|
531
|
-
|
|
532
530
|
// 构建WalletCard的props
|
|
533
531
|
// 优先级:接口返回值 > globalState > DEFAULT_CARD_CONFIG
|
|
534
532
|
var cardProps = _objectSpread(_objectSpread(_objectSpread({}, DEFAULT_CARD_CONFIG), globalState), {}, {
|
|
535
533
|
// 最后应用API返回的数据,这些拥有最高优先级
|
|
534
|
+
iconImg: icon,
|
|
536
535
|
symbol: symbol,
|
|
537
536
|
cardNo: code,
|
|
538
537
|
walletName: getLocalizedName(name, dvaStore === null || dvaStore === void 0 || (_dvaStore$core2 = dvaStore.core) === null || _dvaStore$core2 === void 0 ? void 0 : _dvaStore$core2.translateLocale),
|
|
@@ -636,7 +635,7 @@ var WalletList = Provider(function (props) {
|
|
|
636
635
|
// 如果是加载中,显示骨架屏
|
|
637
636
|
if (loading) {
|
|
638
637
|
return /*#__PURE__*/React.createElement("div", {
|
|
639
|
-
className: "pisell-wallet-container pisell-wallet-skeleton"
|
|
638
|
+
className: "pisell-wallet-list-container pisell-wallet-skeleton"
|
|
640
639
|
}, /*#__PURE__*/React.createElement("div", {
|
|
641
640
|
className: "wallet-content"
|
|
642
641
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -687,7 +686,7 @@ var WalletList = Provider(function (props) {
|
|
|
687
686
|
|
|
688
687
|
// 正常渲染钱包列表
|
|
689
688
|
return /*#__PURE__*/React.createElement("div", {
|
|
690
|
-
className: "pisell-wallet-container"
|
|
689
|
+
className: "pisell-wallet-list-container"
|
|
691
690
|
}, /*#__PURE__*/React.createElement("div", {
|
|
692
691
|
className: "wallet-content"
|
|
693
692
|
}, /*#__PURE__*/React.createElement(Carousel, _extends({
|
|
@@ -8,7 +8,7 @@ var useComponents = function useComponents(params) {
|
|
|
8
8
|
var _utils$getComponents;
|
|
9
9
|
var _ref = appHelper || {},
|
|
10
10
|
utils = _ref.utils;
|
|
11
|
-
return (utils === null || utils === void 0
|
|
11
|
+
return (utils === null || utils === void 0 || (_utils$getComponents = utils.getComponents) === null || _utils$getComponents === void 0 ? void 0 : _utils$getComponents.call(utils, components)) || [];
|
|
12
12
|
}, [components]);
|
|
13
13
|
return Cpt;
|
|
14
14
|
};
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from "../model";
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
+
state: FormState;
|
|
5
|
+
} & {
|
|
6
|
+
dispatch: (params: {
|
|
7
|
+
type: string;
|
|
8
|
+
payload: any;
|
|
9
|
+
}) => void;
|
|
10
|
+
}>;
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from "../model";
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
+
state: FormState;
|
|
5
|
+
} & {
|
|
6
|
+
dispatch: (params: {
|
|
7
|
+
type: string;
|
|
8
|
+
payload: any;
|
|
9
|
+
}) => void;
|
|
10
|
+
}>;
|