@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
|
@@ -78,8 +78,7 @@ var Schedules = (0, import_model.Provider)((props) => {
|
|
|
78
78
|
var _a;
|
|
79
79
|
if (tabKey === "openHours" && ((_a = openHoursRef.current) == null ? void 0 : _a.getIsEdit())) {
|
|
80
80
|
const confirm = await (0, import_utils.saveConfirm)();
|
|
81
|
-
if (!confirm)
|
|
82
|
-
return;
|
|
81
|
+
if (!confirm) return;
|
|
83
82
|
setForceUpdateOpenHours((p) => p + 1);
|
|
84
83
|
}
|
|
85
84
|
setState({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { CalendarDataItem, ScheduleItem } from "./type";
|
|
2
3
|
import dayjs from "dayjs";
|
|
3
4
|
export interface FormState {
|
|
@@ -68,4 +69,11 @@ export interface FormState {
|
|
|
68
69
|
};
|
|
69
70
|
setGlobalState: Function | null;
|
|
70
71
|
}
|
|
71
|
-
export declare const Provider: any, Context:
|
|
72
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
73
|
+
state: FormState;
|
|
74
|
+
} & {
|
|
75
|
+
dispatch: (params: {
|
|
76
|
+
type: string;
|
|
77
|
+
payload: any;
|
|
78
|
+
}) => void;
|
|
79
|
+
}>;
|
|
@@ -33,44 +33,39 @@ __export(Detail_exports, {
|
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(Detail_exports);
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_materials = require("@pisell/materials");
|
|
36
37
|
var import_dayjs = __toESM(require("dayjs"));
|
|
37
38
|
var import_XClose = __toESM(require("@pisell/icon/es/XClose"));
|
|
38
39
|
var import_timezone = __toESM(require("dayjs/plugin/timezone"));
|
|
39
40
|
var import_utils = require("@pisell/utils");
|
|
40
41
|
var import_utc = __toESM(require("dayjs/plugin/utc"));
|
|
41
|
-
var
|
|
42
|
+
var import_materials2 = require("@pisell/materials");
|
|
42
43
|
var import_useEngineContext = __toESM(require("./../../../hooks/useEngineContext"));
|
|
43
44
|
var import_locales = __toESM(require("./locales"));
|
|
44
45
|
var import_serve = require("./serve");
|
|
45
46
|
var import_utils2 = require("./../../../utils");
|
|
46
47
|
var import_components = require("../components");
|
|
47
48
|
var import_index = require("./index.less");
|
|
48
|
-
var
|
|
49
|
-
var { Title, Text } = import_materials.Typography;
|
|
49
|
+
var { Text } = import_materials2.Typography;
|
|
50
50
|
import_dayjs.default.extend(import_timezone.default);
|
|
51
51
|
import_dayjs.default.extend(import_utc.default);
|
|
52
52
|
var Detail = (0, import_react.forwardRef)((props, ref) => {
|
|
53
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j
|
|
53
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
54
54
|
const {
|
|
55
55
|
detail = {},
|
|
56
56
|
buttonGroupList = [[]],
|
|
57
|
-
addWalletCallback,
|
|
58
|
-
style = {},
|
|
59
|
-
isDiscoundCard = false,
|
|
60
57
|
className,
|
|
61
58
|
showWalletBar = false,
|
|
62
59
|
onBack
|
|
63
60
|
} = props;
|
|
64
61
|
const {
|
|
65
|
-
id = "",
|
|
66
62
|
code = "",
|
|
67
63
|
tag = "",
|
|
68
64
|
product_title = "",
|
|
69
65
|
encoded = "",
|
|
70
66
|
balance,
|
|
71
67
|
expire_date = "",
|
|
72
|
-
product = {}
|
|
73
|
-
machinecode_config = {}
|
|
68
|
+
product = {}
|
|
74
69
|
} = detail;
|
|
75
70
|
const { description = "" } = product;
|
|
76
71
|
const context = (0, import_useEngineContext.default)();
|
|
@@ -146,22 +141,22 @@ var Detail = (0, import_react.forwardRef)((props, ref) => {
|
|
|
146
141
|
} else if (tag === "point_card") {
|
|
147
142
|
data.splice(2, 0, {
|
|
148
143
|
label: import_utils.locales.getText("page.wallet.points"),
|
|
149
|
-
value: balance ? `${balance}` : ""
|
|
144
|
+
value: balance ? `${Number(balance)}` : ""
|
|
150
145
|
});
|
|
151
146
|
} else {
|
|
152
147
|
data.splice(2, 0, {
|
|
153
148
|
label: import_utils.locales.getText("page.wallet.balance"),
|
|
154
|
-
value: balance ? `${symbol}${balance}` : ""
|
|
149
|
+
value: balance ? `${symbol}${Number(balance)}` : ""
|
|
155
150
|
});
|
|
156
151
|
}
|
|
157
152
|
setListData(data);
|
|
158
153
|
}, [detail]);
|
|
154
|
+
const { symbol = "$" } = (0, import_materials.usePisellConfig)();
|
|
159
155
|
import_utils.locales.init(import_locales.default, ((_d = dvaStore == null ? void 0 : dvaStore.core) == null ? void 0 : _d.translateLocale) || "en");
|
|
160
156
|
import_utils2.request.setRequest(utils == null ? void 0 : utils.request);
|
|
161
157
|
const { store } = ((_e = context.appHelper) == null ? void 0 : _e.utils) || { store: {} };
|
|
162
158
|
const platform = (0, import_utils.isMobile)() ? "h5" : "pc";
|
|
163
|
-
const
|
|
164
|
-
const timezone2 = ((_l = (_k = (_j = (_i = store == null ? void 0 : store.getState) == null ? void 0 : _i.call(store)) == null ? void 0 : _j.global) == null ? void 0 : _k.symbol) == null ? void 0 : _l.shop.timezone) || "Asia/Shanghai";
|
|
159
|
+
const timezone2 = ((_i = (_h = (_g = (_f = store == null ? void 0 : store.getState) == null ? void 0 : _f.call(store)) == null ? void 0 : _g.global) == null ? void 0 : _h.symbol) == null ? void 0 : _i.shop.timezone) || "Asia/Shanghai";
|
|
165
160
|
const formatTimeLineDta = (data) => {
|
|
166
161
|
if (data.length < 0) return [];
|
|
167
162
|
const filteredData = data.filter(
|
|
@@ -251,12 +246,6 @@ var Detail = (0, import_react.forwardRef)((props, ref) => {
|
|
|
251
246
|
getTimeTreeList();
|
|
252
247
|
}
|
|
253
248
|
}, [code]);
|
|
254
|
-
const cardProps = {
|
|
255
|
-
className: (0, import_classnames.default)("pisell-wallet-card", props.className),
|
|
256
|
-
style: {
|
|
257
|
-
border: platform === "pc" ? "1px solid #EAECF0" : "none"
|
|
258
|
-
}
|
|
259
|
-
};
|
|
260
249
|
const onAppleClick = () => {
|
|
261
250
|
if (isWechat()) {
|
|
262
251
|
setWechatModalOpen(true);
|
|
@@ -299,7 +288,7 @@ var Detail = (0, import_react.forwardRef)((props, ref) => {
|
|
|
299
288
|
};
|
|
300
289
|
const onCopyClick = () => {
|
|
301
290
|
copyToClipboard(copyUrl);
|
|
302
|
-
(0,
|
|
291
|
+
(0, import_materials2.PisellToast)({
|
|
303
292
|
content: import_utils.locales.getText("page.wallet.copySuccess"),
|
|
304
293
|
duration: 2
|
|
305
294
|
});
|
|
@@ -539,7 +528,7 @@ var Detail = (0, import_react.forwardRef)((props, ref) => {
|
|
|
539
528
|
ref: anchorWrapperRef
|
|
540
529
|
},
|
|
541
530
|
/* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-detail-card-header-anchor" }, /* @__PURE__ */ import_react.default.createElement(
|
|
542
|
-
|
|
531
|
+
import_materials2.PisellAnchor,
|
|
543
532
|
{
|
|
544
533
|
ref: tabsRef,
|
|
545
534
|
options: anchorOptions,
|
|
@@ -568,9 +557,9 @@ var Detail = (0, import_react.forwardRef)((props, ref) => {
|
|
|
568
557
|
"data-section": "detail"
|
|
569
558
|
},
|
|
570
559
|
/* @__PURE__ */ import_react.default.createElement(Text, { className: "wallet-detail-card-content-section-title" }, import_utils.locales.getText("page.wallet.details")),
|
|
571
|
-
platform === "pc" && /* @__PURE__ */ import_react.default.createElement(
|
|
560
|
+
platform === "pc" && /* @__PURE__ */ import_react.default.createElement(import_materials2.ButtonGroupPreview, { buttonGroupList }),
|
|
572
561
|
/* @__PURE__ */ import_react.default.createElement(
|
|
573
|
-
|
|
562
|
+
import_materials2.PisellStatisticList,
|
|
574
563
|
{
|
|
575
564
|
data: listData,
|
|
576
565
|
labelColor: "#667085",
|
|
@@ -590,13 +579,13 @@ var Detail = (0, import_react.forwardRef)((props, ref) => {
|
|
|
590
579
|
className: "wallet-detail-card-content-section wallet-detail-card-content-section-timeline",
|
|
591
580
|
"data-section": "activityLog"
|
|
592
581
|
},
|
|
593
|
-
tag !== "product_discount_card" && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-detail-card-content-section-subtitle" }, import_utils.locales.getText("page.wallet.activelog")), isLoading ? /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-detail-timeline-loading" }, /* @__PURE__ */ import_react.default.createElement(
|
|
594
|
-
|
|
582
|
+
tag !== "product_discount_card" && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-detail-card-content-section-subtitle" }, import_utils.locales.getText("page.wallet.activelog")), isLoading ? /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-detail-timeline-loading" }, /* @__PURE__ */ import_react.default.createElement(import_materials2.Skeleton, { active: true, paragraph: { rows: 6 }, round: true })) : TimeLineData.length > 0 ? /* @__PURE__ */ import_react.default.createElement(
|
|
583
|
+
import_materials2.Timeline,
|
|
595
584
|
{
|
|
596
585
|
items: TimeLineData,
|
|
597
586
|
className: "wallet-detail-timeline-list"
|
|
598
587
|
}
|
|
599
|
-
) : /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-detail-card-content-section-empty" }, /* @__PURE__ */ import_react.default.createElement(
|
|
588
|
+
) : /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-detail-card-content-section-empty" }, /* @__PURE__ */ import_react.default.createElement(import_materials2.PisellEmpty, null)))
|
|
600
589
|
)
|
|
601
590
|
)
|
|
602
591
|
)
|
|
@@ -606,13 +595,13 @@ var Detail = (0, import_react.forwardRef)((props, ref) => {
|
|
|
606
595
|
{
|
|
607
596
|
step: "detail",
|
|
608
597
|
onAppleWalletClick: tag === "gift_card" ? addWalletCard : void 0,
|
|
609
|
-
onRechargeClick: tag === "gift_card" && ((
|
|
598
|
+
onRechargeClick: tag === "gift_card" && ((_j = detail == null ? void 0 : detail.machinecode_config) == null ? void 0 : _j.hide_recharge) === 0 ? handleRecharge : void 0,
|
|
610
599
|
platform,
|
|
611
600
|
isIOS: (0, import_utils.isIos)()
|
|
612
601
|
}
|
|
613
602
|
),
|
|
614
603
|
/* @__PURE__ */ import_react.default.createElement(
|
|
615
|
-
|
|
604
|
+
import_materials2.PisellModal,
|
|
616
605
|
{
|
|
617
606
|
platform: platform === "pc" ? "pc" : "h5",
|
|
618
607
|
mobileModalHeight: "auto",
|
|
@@ -623,7 +612,7 @@ var Detail = (0, import_react.forwardRef)((props, ref) => {
|
|
|
623
612
|
open: isShowtimeLineDetail,
|
|
624
613
|
footer: [
|
|
625
614
|
/* @__PURE__ */ import_react.default.createElement(
|
|
626
|
-
|
|
615
|
+
import_materials2.Button,
|
|
627
616
|
{
|
|
628
617
|
type: "primary",
|
|
629
618
|
block: true,
|
|
@@ -635,7 +624,7 @@ var Detail = (0, import_react.forwardRef)((props, ref) => {
|
|
|
635
624
|
]
|
|
636
625
|
},
|
|
637
626
|
/* @__PURE__ */ import_react.default.createElement(
|
|
638
|
-
|
|
627
|
+
import_materials2.PisellStatisticList,
|
|
639
628
|
{
|
|
640
629
|
data: [
|
|
641
630
|
{
|
|
@@ -664,7 +653,7 @@ var Detail = (0, import_react.forwardRef)((props, ref) => {
|
|
|
664
653
|
)
|
|
665
654
|
),
|
|
666
655
|
/* @__PURE__ */ import_react.default.createElement(
|
|
667
|
-
|
|
656
|
+
import_materials2.PisellModal,
|
|
668
657
|
{
|
|
669
658
|
platform: platform === "pc" ? "pc" : "h5",
|
|
670
659
|
mobileModalHeight: "auto",
|
|
@@ -677,7 +666,7 @@ var Detail = (0, import_react.forwardRef)((props, ref) => {
|
|
|
677
666
|
closeIcon: /* @__PURE__ */ import_react.default.createElement(import_XClose.default, { size: 20, style: { fontSize: "24px" } }),
|
|
678
667
|
open: wechatModalOpen,
|
|
679
668
|
footer: [
|
|
680
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
669
|
+
/* @__PURE__ */ import_react.default.createElement(import_materials2.Button, { onClick: onCopyClick, block: true, type: "primary", size: "large" }, import_utils.locales.getText("page.wallet.copyButton"))
|
|
681
670
|
]
|
|
682
671
|
},
|
|
683
672
|
/* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-detail-copyTitle" }, import_utils.locales.getText("page.wallet.copyTitle")),
|
|
@@ -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 {};
|
|
@@ -25,7 +25,7 @@ __export(serve_exports, {
|
|
|
25
25
|
module.exports = __toCommonJS(serve_exports);
|
|
26
26
|
var import_utils = require("./../../../utils");
|
|
27
27
|
var getAssetList = async (params) => {
|
|
28
|
-
const { data } = await import_utils.request.getRequest().get(`/h5/pay/asset/lowcode/list`, params
|
|
28
|
+
const { data } = await import_utils.request.getRequest().get(`/h5/pay/asset/lowcode/list`, params);
|
|
29
29
|
return data;
|
|
30
30
|
};
|
|
31
31
|
var getDetailApi = async (params) => {
|
|
@@ -51,7 +51,6 @@ var RechargeableCard = (0, import_model.Provider)((props) => {
|
|
|
51
51
|
const context = (0, import_useEngineContext.default)();
|
|
52
52
|
const utils = context.appHelper.utils || {};
|
|
53
53
|
const dvaStore = (_b = (_a = utils == null ? void 0 : utils.getStore) == null ? void 0 : _a.call(utils)) == null ? void 0 : _b.getState();
|
|
54
|
-
const { action, storage } = utils || {};
|
|
55
54
|
const platform = (0, import_react.useMemo)(() => (0, import_utils.isMobile)() ? "h5" : "pc", []);
|
|
56
55
|
const { openDetail, renderDetail, closeDetail } = (0, import_DetailContext.useDetail)();
|
|
57
56
|
const recordViewRef = (0, import_react.useRef)(null);
|
|
@@ -66,7 +65,6 @@ var RechargeableCard = (0, import_model.Provider)((props) => {
|
|
|
66
65
|
type: "setState",
|
|
67
66
|
payload: { setup: globalState.setup }
|
|
68
67
|
});
|
|
69
|
-
console.log("%c [ DiscountCard global setup sync ]-46", "font-size:13px; color:#bf2c9f;", globalState.setup);
|
|
70
68
|
}
|
|
71
69
|
}, [globalState.setup]);
|
|
72
70
|
const handleBack = () => {
|
|
@@ -81,7 +79,6 @@ var RechargeableCard = (0, import_model.Provider)((props) => {
|
|
|
81
79
|
setGlobalState({
|
|
82
80
|
setup: "list"
|
|
83
81
|
});
|
|
84
|
-
console.log("%c [ DiscountCard setup back ]-51", "font-size:13px; color:#bf2c9f;", "list");
|
|
85
82
|
};
|
|
86
83
|
const renderItem = (item) => {
|
|
87
84
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -148,7 +145,6 @@ var RechargeableCard = (0, import_model.Provider)((props) => {
|
|
|
148
145
|
};
|
|
149
146
|
const detail = () => {
|
|
150
147
|
if (!(currentDetail == null ? void 0 : currentDetail.id)) return null;
|
|
151
|
-
console.log("%c [ DiscountCard detail ]-132", "font-size:13px; color:#bf2c9f;", globalState.setup);
|
|
152
148
|
const detailWithBar = {
|
|
153
149
|
...currentDetail,
|
|
154
150
|
isDiscoundCard: true,
|
|
@@ -177,7 +173,6 @@ var RechargeableCard = (0, import_model.Provider)((props) => {
|
|
|
177
173
|
type: "setState",
|
|
178
174
|
payload: { setup: "detail" }
|
|
179
175
|
});
|
|
180
|
-
console.log("%c [ DiscountCard setup click ]-178", "font-size:13px; color:#bf2c9f;", "detail");
|
|
181
176
|
openDetail({
|
|
182
177
|
...currentDetail2,
|
|
183
178
|
isDiscoundCard: true,
|
|
@@ -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 {};
|
|
@@ -42,7 +42,6 @@ var import_index = require("./index.less");
|
|
|
42
42
|
var import_DetailContext = require("../DetailContext");
|
|
43
43
|
var import_WalletCard = __toESM(require("../components/WalletCard"));
|
|
44
44
|
var { Title } = import_materials.Typography;
|
|
45
|
-
var Amount = import_materials.PisellText.Amount;
|
|
46
45
|
var RechargeableCard = (0, import_model.Provider)((props) => {
|
|
47
46
|
var _a, _b, _c;
|
|
48
47
|
const { globalState, setGlobalState } = props;
|
|
@@ -134,7 +133,6 @@ var RechargeableCard = (0, import_model.Provider)((props) => {
|
|
|
134
133
|
(_a2 = recordViewRef.current) == null ? void 0 : _a2.closeDetailModal();
|
|
135
134
|
}
|
|
136
135
|
}, [globalState.setup]);
|
|
137
|
-
console.log("%c [ state.total ]-132", "font-size:13px; color:#bf2c9f;", state.total);
|
|
138
136
|
return isEmpty ? /* @__PURE__ */ import_react.default.createElement(import_materials.PisellEmpty, null) : /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, platform !== "pc" && /* @__PURE__ */ import_react.default.createElement(Title, { className: "wallet-pointCard-title" }, import_utils.locales.getText("page.wallet.pointCard")), /* @__PURE__ */ import_react.default.createElement(
|
|
139
137
|
import_materials.CardMetricItem,
|
|
140
138
|
{
|
|
@@ -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 {};
|
|
@@ -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 {};
|
|
@@ -38,12 +38,14 @@ var import_model = require("./model");
|
|
|
38
38
|
var import_WalletCard = __toESM(require("../components/WalletCard"));
|
|
39
39
|
var import_useWalletCard = require("../hooks/useWalletCard");
|
|
40
40
|
var import_utils = require("@pisell/utils");
|
|
41
|
+
var import_DetailContext = require("../DetailContext");
|
|
41
42
|
var import_index = require("./index.less");
|
|
42
43
|
var { Title } = import_materials.Typography;
|
|
43
44
|
var Voucher = (0, import_model.Provider)((props) => {
|
|
44
45
|
const { globalState, setGlobalState } = props;
|
|
45
46
|
const { product_voucher = [] } = globalState;
|
|
46
47
|
const recordViewRef = (0, import_react.useRef)(null);
|
|
48
|
+
const { openDetail, renderDetail } = (0, import_DetailContext.useDetail)();
|
|
47
49
|
const {
|
|
48
50
|
platform,
|
|
49
51
|
isEmpty,
|
|
@@ -79,6 +81,14 @@ var Voucher = (0, import_model.Provider)((props) => {
|
|
|
79
81
|
if (isEmpty) {
|
|
80
82
|
return /* @__PURE__ */ import_react.default.createElement(import_materials.PisellEmpty, null);
|
|
81
83
|
}
|
|
84
|
+
const handleBack = (0, import_react.useCallback)(() => {
|
|
85
|
+
if (recordViewRef.current) {
|
|
86
|
+
recordViewRef.current.closeDetailModal();
|
|
87
|
+
}
|
|
88
|
+
setGlobalState({
|
|
89
|
+
setup: "list"
|
|
90
|
+
});
|
|
91
|
+
}, [recordViewRef, setGlobalState]);
|
|
82
92
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, platform !== "pc" && /* @__PURE__ */ import_react.default.createElement(Title, { className: "wallet-voucher-title" }, import_utils.locales.getText("page.wallet.voucher")), /* @__PURE__ */ import_react.default.createElement(
|
|
83
93
|
import_materials.CardMetricItem,
|
|
84
94
|
{
|
|
@@ -96,7 +106,22 @@ var Voucher = (0, import_model.Provider)((props) => {
|
|
|
96
106
|
leftSpan: 9,
|
|
97
107
|
rightSpan: 15,
|
|
98
108
|
gutter: 20,
|
|
99
|
-
onRowClick:
|
|
109
|
+
onRowClick: (currentDetail) => {
|
|
110
|
+
setGlobalState({
|
|
111
|
+
currentId: currentDetail.id || "",
|
|
112
|
+
currentDetail,
|
|
113
|
+
setup: "detail"
|
|
114
|
+
// 设置状态为detail
|
|
115
|
+
});
|
|
116
|
+
const detailWithProps = {
|
|
117
|
+
...currentDetail,
|
|
118
|
+
showWalletBar: platform === "h5",
|
|
119
|
+
// 添加显示WalletBar的标志
|
|
120
|
+
onBack: handleBack
|
|
121
|
+
// 添加返回处理函数
|
|
122
|
+
};
|
|
123
|
+
openDetail(detailWithProps);
|
|
124
|
+
},
|
|
100
125
|
modalWrapStyle: {
|
|
101
126
|
overflowY: "auto",
|
|
102
127
|
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 {};
|
|
@@ -60,7 +60,6 @@ var WalletCard = ({
|
|
|
60
60
|
const { title: disabledReason = "" } = unified_messages;
|
|
61
61
|
const { name: storeName = "" } = shop;
|
|
62
62
|
const isActive = id === currentId && platform === "pc";
|
|
63
|
-
console.log("%c [ tag ]-49", "font-size:13px; color:#bf2c9f;", tag);
|
|
64
63
|
const isDisabled = limit_status !== "enable";
|
|
65
64
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
66
65
|
import_materials.PisellWalletPassCard,
|
|
@@ -281,7 +281,6 @@ var Wallet = (0, import_model.Provider)(() => {
|
|
|
281
281
|
]
|
|
282
282
|
};
|
|
283
283
|
const onBack = () => {
|
|
284
|
-
console.log("%c [ setup ]-339", "font-size:13px; color:#bf2c9f;", setup);
|
|
285
284
|
if (setup === "menu") {
|
|
286
285
|
history.back();
|
|
287
286
|
} else {
|
|
@@ -404,7 +403,6 @@ var Wallet = (0, import_model.Provider)(() => {
|
|
|
404
403
|
if (setup === "menu") {
|
|
405
404
|
return null;
|
|
406
405
|
}
|
|
407
|
-
console.log("%c [ setup ]-538", "font-size:13px; background:pink; color:#bf2c9f;", setup);
|
|
408
406
|
if (setup === "list") {
|
|
409
407
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
410
408
|
import_materials.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
|
+
}>;
|