@pisell/private-materials 6.3.64 → 6.3.66
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 +145 -145
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +7 -7
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +8 -8
- package/es/businessModel/SalesModel/Sales/index.d.ts +24 -0
- package/es/businessModel/SalesModel/hooks/index.d.ts +1 -0
- package/es/businessModel/index.d.ts +0 -0
- package/es/components/Sales/Cart/types.d.ts +31 -0
- package/es/components/Sales/Cart/utils.d.ts +63 -0
- package/es/components/Sales/Checkout/utils.d.ts +41 -0
- package/es/components/Sales/Customer/index.d.ts +25 -0
- package/es/components/Sales/hooks/index.d.ts +1 -0
- package/es/components/Sales/utils/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/ConfirmInformation/utils.d.ts +12 -0
- package/es/components/appointmentBooking/components/Date/state.d.ts +63 -0
- package/es/components/appointmentBooking/components/Form/utils.d.ts +8 -0
- package/es/components/appointmentBooking/components/Resource/utils.d.ts +5 -0
- package/es/components/appointmentBooking/type.d.ts +17 -0
- package/es/components/booking/components/TabProduct/tabs/index.d.ts +21 -0
- package/es/components/booking/components/drawer/index.d.ts +19 -0
- package/es/components/booking/components/footer/serve.d.ts +3 -0
- package/es/components/booking/components/footer/utils.d.ts +1 -0
- package/es/components/booking/components/footer/utils.js +42 -23
- package/es/components/booking/components/menuButton/index.d.ts +10 -0
- package/es/components/booking/components/voucher/index.js +7 -8
- package/es/components/booking/components/voucher/utils.d.ts +4 -0
- package/es/components/booking/deposit/serve.d.ts +8 -0
- package/es/components/booking/editBookingModal/locales.d.ts +21 -0
- package/es/components/booking/editBookingModal/mock.d.ts +807 -0
- package/es/components/booking/editBookingModal/type.d.ts +12 -0
- package/es/components/booking/forms/format.d.ts +11 -0
- package/es/components/booking/info/Provider.d.ts +0 -0
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +2 -0
- package/es/components/booking/info/hooks/useGetHolderList.d.ts +2 -0
- package/es/components/booking/info/service/serviceItem/Sales/index.d.ts +0 -0
- package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +11 -0
- package/es/components/booking/info/service/serviceManager/utils.d.ts +0 -0
- package/es/components/booking/info2/service/addService/mock.d.ts +214 -0
- package/es/components/booking/info2/service/addTimeModal/serve.d.ts +9 -0
- package/es/components/booking/info2/service/editService/Capacity/index.d.ts +4 -0
- package/es/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +7 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +7 -0
- package/es/components/booking/materiels/startTime/index.d.ts +10 -0
- package/es/components/eftpos/const.d.ts +64 -0
- package/es/components/eftpos/deviceList/index.d.ts +2 -0
- package/es/components/eftpos/form/index.d.ts +20 -0
- package/es/components/eftpos/group/index.d.ts +5 -0
- package/es/components/eftpos/hooks.d.ts +33 -0
- package/es/components/eftpos/icon/apiKey.d.ts +4 -0
- package/es/components/eftpos/icon/device.d.ts +4 -0
- package/es/components/eftpos/locales.d.ts +99 -0
- package/es/components/eftpos/log.d.ts +8 -0
- package/es/components/eftpos/receipt/index.d.ts +23 -0
- package/es/components/eftpos/surcharge/index.d.ts +30 -0
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/component/alert/index.d.ts +6 -0
- package/es/components/eftposPay/component/alert/warn.d.ts +2 -0
- package/es/components/eftposPay/component/header/index.d.ts +10 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +12 -0
- package/es/components/eftposPay/component/step/index.d.ts +11 -0
- package/es/components/eftposPay/component/step/step.d.ts +8 -0
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/helper.d.ts +83 -0
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +355 -0
- package/es/components/eftposPay/store/useThunkReducer.d.ts +9 -0
- package/es/components/eftposPay/tyro/hooks.d.ts +13 -0
- package/es/components/eftposPay/windcave/timer.d.ts +29 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +3 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +4 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +63 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +34 -0
- package/es/components/eventBooking/locales.d.ts +246 -0
- package/es/components/eventBooking/type.d.ts +17 -0
- package/es/components/eventBooking/utils.d.ts +45 -0
- package/es/components/login/locales.d.ts +24 -0
- package/es/components/pay/toC/PaymentList/mock.d.ts +88 -0
- package/es/components/pay/toC/PaymentList/status.d.ts +4 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/serve.d.ts +9 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/DynamicSDK.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +7 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +7 -0
- package/es/components/pay/toC/PaymentMethods/hooks/index.d.ts +19 -0
- package/es/components/pinModal/locales.d.ts +27 -0
- package/es/components/pinModal/types.d.ts +0 -0
- package/es/components/pinVerifyModal/locales.d.ts +24 -0
- package/es/components/pinVerifyModal/types.d.ts +33 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/mock.d.ts +47 -0
- package/es/components/pisellSelectCustomerModal/locales.d.ts +81 -0
- package/es/components/productExtension/card/index.d.ts +10 -0
- package/es/components/productExtension/fields/Actor/Container/index.d.ts +12 -0
- package/es/components/productExtension/fields/Actor/CutOffTime/status.d.ts +0 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +10 -0
- package/es/components/productExtension/fields/SelectProducts/mock.d.ts +0 -0
- package/es/components/productExtension/fields/SelectResourcesTable/mock.d.ts +2681 -0
- package/es/components/productExtension/locales.d.ts +48 -0
- package/es/components/productSelect/components/TabProduct/tabs/index.d.ts +21 -0
- package/es/components/productSelect/hooks/useToken.d.ts +18 -0
- package/es/components/productSelect/locales.d.ts +18 -0
- package/es/components/productSelect/mock.d.ts +134 -0
- package/es/components/productSelect/theme/token.d.ts +17 -0
- package/es/components/schedules/components/Card/index.d.ts +6 -0
- package/es/components/schedules/components/CurrentDay/utils.d.ts +1 -0
- package/es/components/schedules/components/DropdownSort/index.d.ts +3 -0
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +11 -0
- package/es/components/schedules/constants.d.ts +1 -0
- package/es/components/schedules/locales.d.ts +87 -0
- package/es/components/schedules/resources/add/index.d.ts +3 -0
- package/es/components/schedules/resources/relationProduct/index.d.ts +6 -0
- package/es/components/schedules/type.d.ts +157 -0
- package/es/components/shoppingCart/mock.d.ts +40 -0
- package/es/components/shoppingCart/utils.d.ts +63 -0
- package/es/components/stepController/components/Content/index.d.ts +7 -0
- package/es/components/stepController/components/Footer/index.d.ts +8 -0
- package/es/components/stepController/locales.d.ts +27 -0
- package/es/components/stepController/types.d.ts +23 -0
- package/es/components/systemSettings/registry/components/SectionList.js +5 -1
- package/es/components/tabProduct/card/index.d.ts +7 -0
- package/es/components/tabProduct/index.d.ts +16 -0
- package/es/components/tabProduct/tabs/index.d.ts +21 -0
- package/es/components/taxSelect/locales.d.ts +24 -0
- package/es/components/ticketBooking/data.d.ts +58 -0
- package/es/components/ticketBooking/hooks/useNetworkStatus.d.ts +11 -0
- package/es/components/ticketBooking/miniRedux.d.ts +22 -0
- package/es/components/walletList/model.d.ts +6 -0
- package/es/components/workSpaceList/components/AppearanceEdit/Color.d.ts +9 -0
- package/es/components/workSpaceList/components/AppearanceShow/index.d.ts +11 -0
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/es/components/workSpaceList/data.d.ts +42 -0
- package/es/hooks/useComponents.d.ts +5 -0
- package/es/hooks/useLocale.d.ts +2 -0
- package/es/hooks/useLoginUser.d.ts +2 -0
- package/es/hooks/usePrefix.d.ts +1 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/plus/productSelect/CategoryTabs/CategorySkeleton.d.ts +10 -0
- package/es/plus/productSelect/ProductList/gridComponents.d.ts +44 -0
- package/es/plus/productSelect/ProductList/index.d.ts +22 -0
- package/es/plus/productSelect/components/IntersectionObserver.d.ts +42 -0
- package/es/plus/productSelect/components/TabsStructure/hooks.d.ts +22 -0
- package/es/plus/productSelect/components/TabsStructure/index.d.ts +5 -0
- package/es/plus/productSelect/components/TabsStructure/styles.d.ts +47 -0
- package/es/plus/productSelect/components/TabsStructure/types.d.ts +105 -0
- package/es/plus/productSelect/components/TabsStructure/utils.d.ts +12 -0
- package/es/plus/productSelect/hooks/useToken.d.ts +18 -0
- package/es/plus/productSelect/locales.d.ts +18 -0
- package/es/plus/productSelect/theme/token.d.ts +17 -0
- package/es/plus/saasCreateOrganization/locales.d.ts +15 -0
- package/es/plus/saasCreateOrganization/types.d.ts +69 -0
- package/es/plus/saasLogin/locales.d.ts +51 -0
- package/es/plus/saasLogin/types.d.ts +62 -0
- package/es/plus/saasLogin/utils.d.ts +35 -0
- package/es/plus/saasRegister/locales.d.ts +117 -0
- package/es/plus/saasRegister/types.d.ts +114 -0
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/utils/index.d.ts +7 -0
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.js +3 -1
- package/es/pro/Login2.0/components/LoginCodeInput.js +36 -3
- package/es/utils/date.d.ts +11 -0
- package/es/utils/load.d.ts +11 -0
- package/es/utils/locales.d.ts +1 -0
- package/es/utils/tasks/type.d.ts +4 -0
- package/lib/businessModel/SalesModel/Sales/index.d.ts +24 -0
- package/lib/businessModel/SalesModel/hooks/index.d.ts +1 -0
- package/lib/businessModel/index.d.ts +0 -0
- package/lib/components/Sales/Cart/types.d.ts +31 -0
- package/lib/components/Sales/Cart/utils.d.ts +63 -0
- package/lib/components/Sales/Checkout/utils.d.ts +41 -0
- package/lib/components/Sales/Customer/index.d.ts +25 -0
- package/lib/components/Sales/hooks/index.d.ts +1 -0
- package/lib/components/Sales/utils/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/ConfirmInformation/utils.d.ts +12 -0
- package/lib/components/appointmentBooking/components/Date/state.d.ts +63 -0
- package/lib/components/appointmentBooking/components/Form/utils.d.ts +8 -0
- package/lib/components/appointmentBooking/components/Resource/utils.d.ts +5 -0
- package/lib/components/appointmentBooking/type.d.ts +17 -0
- package/lib/components/booking/components/TabProduct/tabs/index.d.ts +21 -0
- package/lib/components/booking/components/drawer/index.d.ts +19 -0
- package/lib/components/booking/components/footer/serve.d.ts +3 -0
- package/lib/components/booking/components/footer/utils.d.ts +1 -0
- package/lib/components/booking/components/footer/utils.js +20 -3
- package/lib/components/booking/components/menuButton/index.d.ts +10 -0
- package/lib/components/booking/components/voucher/index.js +1 -0
- package/lib/components/booking/components/voucher/utils.d.ts +4 -0
- package/lib/components/booking/deposit/serve.d.ts +8 -0
- package/lib/components/booking/editBookingModal/locales.d.ts +21 -0
- package/lib/components/booking/editBookingModal/mock.d.ts +807 -0
- package/lib/components/booking/editBookingModal/type.d.ts +12 -0
- package/lib/components/booking/forms/format.d.ts +11 -0
- package/lib/components/booking/info/Provider.d.ts +0 -0
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +2 -0
- package/lib/components/booking/info/hooks/useGetHolderList.d.ts +2 -0
- package/lib/components/booking/info/service/serviceItem/Sales/index.d.ts +0 -0
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +11 -0
- package/lib/components/booking/info/service/serviceManager/utils.d.ts +0 -0
- package/lib/components/booking/info2/service/addService/mock.d.ts +214 -0
- package/lib/components/booking/info2/service/addTimeModal/serve.d.ts +9 -0
- package/lib/components/booking/info2/service/editService/Capacity/index.d.ts +4 -0
- package/lib/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +7 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +7 -0
- package/lib/components/booking/materiels/startTime/index.d.ts +10 -0
- package/lib/components/eftpos/const.d.ts +64 -0
- package/lib/components/eftpos/deviceList/index.d.ts +2 -0
- package/lib/components/eftpos/form/index.d.ts +20 -0
- package/lib/components/eftpos/group/index.d.ts +5 -0
- package/lib/components/eftpos/hooks.d.ts +33 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +4 -0
- package/lib/components/eftpos/icon/device.d.ts +4 -0
- package/lib/components/eftpos/locales.d.ts +99 -0
- package/lib/components/eftpos/log.d.ts +8 -0
- package/lib/components/eftpos/receipt/index.d.ts +23 -0
- package/lib/components/eftpos/surcharge/index.d.ts +30 -0
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/component/alert/index.d.ts +6 -0
- package/lib/components/eftposPay/component/alert/warn.d.ts +2 -0
- package/lib/components/eftposPay/component/header/index.d.ts +10 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +12 -0
- package/lib/components/eftposPay/component/step/index.d.ts +11 -0
- package/lib/components/eftposPay/component/step/step.d.ts +8 -0
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/helper.d.ts +83 -0
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +355 -0
- package/lib/components/eftposPay/store/useThunkReducer.d.ts +9 -0
- package/lib/components/eftposPay/tyro/hooks.d.ts +13 -0
- package/lib/components/eftposPay/windcave/timer.d.ts +29 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +3 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +4 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +63 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +34 -0
- package/lib/components/eventBooking/locales.d.ts +246 -0
- package/lib/components/eventBooking/type.d.ts +17 -0
- package/lib/components/eventBooking/utils.d.ts +45 -0
- package/lib/components/login/locales.d.ts +24 -0
- package/lib/components/pay/toC/PaymentList/mock.d.ts +88 -0
- package/lib/components/pay/toC/PaymentList/status.d.ts +4 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/serve.d.ts +9 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/DynamicSDK.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +7 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +7 -0
- package/lib/components/pay/toC/PaymentMethods/hooks/index.d.ts +19 -0
- package/lib/components/pinModal/locales.d.ts +27 -0
- package/lib/components/pinModal/types.d.ts +0 -0
- package/lib/components/pinVerifyModal/locales.d.ts +24 -0
- package/lib/components/pinVerifyModal/types.d.ts +33 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/mock.d.ts +47 -0
- package/lib/components/pisellSelectCustomerModal/locales.d.ts +81 -0
- package/lib/components/productExtension/card/index.d.ts +10 -0
- package/lib/components/productExtension/fields/Actor/Container/index.d.ts +12 -0
- package/lib/components/productExtension/fields/Actor/CutOffTime/status.d.ts +0 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +10 -0
- package/lib/components/productExtension/fields/SelectProducts/mock.d.ts +0 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/mock.d.ts +2681 -0
- package/lib/components/productExtension/locales.d.ts +48 -0
- package/lib/components/productSelect/components/TabProduct/tabs/index.d.ts +21 -0
- package/lib/components/productSelect/hooks/useToken.d.ts +18 -0
- package/lib/components/productSelect/locales.d.ts +18 -0
- package/lib/components/productSelect/mock.d.ts +134 -0
- package/lib/components/productSelect/theme/token.d.ts +17 -0
- package/lib/components/schedules/components/Card/index.d.ts +6 -0
- package/lib/components/schedules/components/CurrentDay/utils.d.ts +1 -0
- package/lib/components/schedules/components/DropdownSort/index.d.ts +3 -0
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +11 -0
- package/lib/components/schedules/constants.d.ts +1 -0
- package/lib/components/schedules/locales.d.ts +87 -0
- package/lib/components/schedules/resources/add/index.d.ts +3 -0
- package/lib/components/schedules/resources/relationProduct/index.d.ts +6 -0
- package/lib/components/schedules/type.d.ts +157 -0
- package/lib/components/shoppingCart/mock.d.ts +40 -0
- package/lib/components/shoppingCart/utils.d.ts +63 -0
- package/lib/components/stepController/components/Content/index.d.ts +7 -0
- package/lib/components/stepController/components/Footer/index.d.ts +8 -0
- package/lib/components/stepController/locales.d.ts +27 -0
- package/lib/components/stepController/types.d.ts +23 -0
- package/lib/components/systemSettings/registry/components/SectionList.js +4 -1
- package/lib/components/tabProduct/card/index.d.ts +7 -0
- package/lib/components/tabProduct/index.d.ts +16 -0
- package/lib/components/tabProduct/tabs/index.d.ts +21 -0
- package/lib/components/taxSelect/locales.d.ts +24 -0
- package/lib/components/ticketBooking/data.d.ts +58 -0
- package/lib/components/ticketBooking/hooks/useNetworkStatus.d.ts +11 -0
- package/lib/components/ticketBooking/miniRedux.d.ts +22 -0
- package/lib/components/walletList/model.d.ts +6 -0
- package/lib/components/workSpaceList/components/AppearanceEdit/Color.d.ts +9 -0
- package/lib/components/workSpaceList/components/AppearanceShow/index.d.ts +11 -0
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/lib/components/workSpaceList/data.d.ts +42 -0
- package/lib/hooks/useComponents.d.ts +5 -0
- package/lib/hooks/useLocale.d.ts +2 -0
- package/lib/hooks/useLoginUser.d.ts +2 -0
- package/lib/hooks/usePrefix.d.ts +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -0
- package/lib/plus/productSelect/CategoryTabs/CategorySkeleton.d.ts +10 -0
- package/lib/plus/productSelect/ProductList/gridComponents.d.ts +44 -0
- package/lib/plus/productSelect/ProductList/index.d.ts +22 -0
- package/lib/plus/productSelect/components/IntersectionObserver.d.ts +42 -0
- package/lib/plus/productSelect/components/TabsStructure/hooks.d.ts +22 -0
- package/lib/plus/productSelect/components/TabsStructure/index.d.ts +5 -0
- package/lib/plus/productSelect/components/TabsStructure/styles.d.ts +47 -0
- package/lib/plus/productSelect/components/TabsStructure/types.d.ts +105 -0
- package/lib/plus/productSelect/components/TabsStructure/utils.d.ts +12 -0
- package/lib/plus/productSelect/hooks/useToken.d.ts +18 -0
- package/lib/plus/productSelect/locales.d.ts +18 -0
- package/lib/plus/productSelect/theme/token.d.ts +17 -0
- package/lib/plus/saasCreateOrganization/locales.d.ts +15 -0
- package/lib/plus/saasCreateOrganization/types.d.ts +69 -0
- package/lib/plus/saasLogin/locales.d.ts +51 -0
- package/lib/plus/saasLogin/types.d.ts +62 -0
- package/lib/plus/saasLogin/utils.d.ts +35 -0
- package/lib/plus/saasRegister/locales.d.ts +117 -0
- package/lib/plus/saasRegister/types.d.ts +114 -0
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/utils/index.d.ts +7 -0
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.js +1 -1
- package/lib/pro/Login2.0/components/LoginCodeInput.js +26 -4
- package/lib/utils/date.d.ts +11 -0
- package/lib/utils/load.d.ts +11 -0
- package/lib/utils/locales.d.ts +1 -0
- package/lib/utils/tasks/type.d.ts +4 -0
- package/package.json +4 -4
- package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
- package/es/components/workSpaceList/components/Card/constants.d.ts +0 -2
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
- package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
- package/lib/components/workSpaceList/components/Card/constants.d.ts +0 -2
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface SalesProviderProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
hooks?: any;
|
|
5
|
+
config?: {
|
|
6
|
+
useSessionStorage?: boolean;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
interface SalesContextProps {
|
|
10
|
+
data: {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
};
|
|
13
|
+
setData: any;
|
|
14
|
+
hooks: any;
|
|
15
|
+
setHooks: any;
|
|
16
|
+
getCurrentData: any;
|
|
17
|
+
setSessionStorage: () => void;
|
|
18
|
+
getSessionStorage: () => any;
|
|
19
|
+
removeSessionStorage: () => void;
|
|
20
|
+
}
|
|
21
|
+
export declare const SalesContext: React.Context<SalesContextProps>;
|
|
22
|
+
export declare const SalesProvider: React.FC<SalesProviderProps>;
|
|
23
|
+
export declare const useSales: () => SalesContextProps;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useHooks: () => any;
|
|
File without changes
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* available_capacity(容量)、deadline_day(截止日期)、future_day(预定天数)
|
|
3
|
+
*/
|
|
4
|
+
export declare type TCartItemUnavailableType = 'available_capacity' | 'deadline_day' | 'future_day';
|
|
5
|
+
/**
|
|
6
|
+
* 商品不可用原因
|
|
7
|
+
*/
|
|
8
|
+
export interface IUnavailableResult {
|
|
9
|
+
event_unique_identifier: number;
|
|
10
|
+
relation_id: number;
|
|
11
|
+
product_id: number;
|
|
12
|
+
details?: Array<{
|
|
13
|
+
type: TCartItemUnavailableType;
|
|
14
|
+
}>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* 更新失效的购物车商品
|
|
18
|
+
*/
|
|
19
|
+
export declare type TUpdateDisabledCartItem = (list: Array<IUnavailableResult>) => void;
|
|
20
|
+
export interface ICalculatePriceParams {
|
|
21
|
+
/** 商品 */
|
|
22
|
+
product: any;
|
|
23
|
+
/** 规格 */
|
|
24
|
+
variant?: any;
|
|
25
|
+
/** 套餐 */
|
|
26
|
+
bundle?: any[];
|
|
27
|
+
/** 规格 */
|
|
28
|
+
options?: any[];
|
|
29
|
+
/** 数量 */
|
|
30
|
+
num?: number;
|
|
31
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import Decimal from 'decimal.js';
|
|
2
|
+
import { ICalculatePriceParams } from './types';
|
|
3
|
+
export declare const handleProductInfo: (eventDetail: any, num: number) => {
|
|
4
|
+
totalPrice: number;
|
|
5
|
+
originTotal: any;
|
|
6
|
+
is_charge_tax: any;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* 获取商品总价
|
|
10
|
+
* @description 当前总价计算基于商品数量为1
|
|
11
|
+
* @param item 商品
|
|
12
|
+
* @returns 商品总价
|
|
13
|
+
*/
|
|
14
|
+
export declare const getTotalPrice: (params: ICalculatePriceParams) => number;
|
|
15
|
+
/**
|
|
16
|
+
* 获取商品原始总价
|
|
17
|
+
* @description 当前总价计算基于商品数量为1
|
|
18
|
+
* @param item 商品
|
|
19
|
+
* @returns 商品原始总价
|
|
20
|
+
*/
|
|
21
|
+
export declare const getOriginTotalPrice: (params: ICalculatePriceParams) => number | undefined;
|
|
22
|
+
export declare const handleCartItemOrigin: (cartItem: any, eventDetail: any) => any;
|
|
23
|
+
export declare const formatBundleToOrigin: (bundle: any) => any;
|
|
24
|
+
export declare const formatOptionsToOrigin: (options: any) => any;
|
|
25
|
+
export declare const handleProductDeposit: (cartItem: any, eventDetail: any, num: number) => {
|
|
26
|
+
total: number;
|
|
27
|
+
protocols: any;
|
|
28
|
+
} | null;
|
|
29
|
+
/**
|
|
30
|
+
* 获取商品定金
|
|
31
|
+
* @description 定金基于商品售价来算,最终乘商品数量
|
|
32
|
+
* 1、如果套餐主商品有定金规则,则定金为:(套餐商品总售价 * 定金百分比 + 定金固定金额)* 商品数量
|
|
33
|
+
* 2、如果套餐主商品没有定金规则,子商品有定金规则,则定金为:(套餐子商品售价 * 套餐子商品定金百分比 + 套餐子商品定金固定金额)* 商品数量,最终将所有子商品定金相加
|
|
34
|
+
* 3、普通商品/单规格商品/组合规则商品,定金规则:(商品总售价 * 定金百分比 + 定金固定金额)* 商品数量
|
|
35
|
+
* @param params 参数
|
|
36
|
+
* @returns 商品定金
|
|
37
|
+
*/
|
|
38
|
+
export declare const getProductDeposit: (params: {
|
|
39
|
+
cartItem: any;
|
|
40
|
+
product: any;
|
|
41
|
+
bundle?: any;
|
|
42
|
+
options?: any;
|
|
43
|
+
num?: number;
|
|
44
|
+
}) => {
|
|
45
|
+
total: number;
|
|
46
|
+
protocols: any;
|
|
47
|
+
} | null;
|
|
48
|
+
/**
|
|
49
|
+
* 计算商品定金
|
|
50
|
+
* @param params 参数
|
|
51
|
+
* @returns 商品定金
|
|
52
|
+
*/
|
|
53
|
+
export declare const calculateProductDeposit: (params: {
|
|
54
|
+
depositData: {
|
|
55
|
+
deposit_fixed?: string;
|
|
56
|
+
deposit_percentage?: string;
|
|
57
|
+
};
|
|
58
|
+
total: string | number;
|
|
59
|
+
num: number;
|
|
60
|
+
}) => {
|
|
61
|
+
result: boolean;
|
|
62
|
+
depositTotal: Decimal;
|
|
63
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @title: 套餐单规格信息
|
|
3
|
+
* @description:
|
|
4
|
+
* @param {any} option
|
|
5
|
+
* @return {*}
|
|
6
|
+
* @Author: zhiwei.Wang
|
|
7
|
+
* @Date: 2024-02-19 09:26
|
|
8
|
+
*/
|
|
9
|
+
export declare const formatProductOption: (option: any) => any;
|
|
10
|
+
/**
|
|
11
|
+
* @title: 套餐信息
|
|
12
|
+
* @description:
|
|
13
|
+
* @param {any} bundle
|
|
14
|
+
* @return {*}
|
|
15
|
+
* @Author: zhiwei.Wang
|
|
16
|
+
* @Date: 2024-02-19 09:26
|
|
17
|
+
*/
|
|
18
|
+
export declare const formatProductBundle: (bundle: any) => any;
|
|
19
|
+
/**
|
|
20
|
+
* @title: 格式化下单接口数据
|
|
21
|
+
* @description:
|
|
22
|
+
* @param {any} state saledModel数据源
|
|
23
|
+
* @param {boolean} excludeDisabled 是否需要排除购物车中失效商品
|
|
24
|
+
* @Author: xiangfeng.xue
|
|
25
|
+
* @Date: 2025-01-21 17:57
|
|
26
|
+
*/
|
|
27
|
+
export declare const formatValues: (params: {
|
|
28
|
+
state: any;
|
|
29
|
+
platform: 'h5' | 'pc';
|
|
30
|
+
excludeDisabled?: boolean;
|
|
31
|
+
extra?: Record<string, any>;
|
|
32
|
+
otherValue?: Record<string, any>;
|
|
33
|
+
}) => any;
|
|
34
|
+
/**
|
|
35
|
+
* @title: 获取拉开表单弹窗参数
|
|
36
|
+
* @param state
|
|
37
|
+
*/
|
|
38
|
+
export declare const getFormParams: (state: any) => {
|
|
39
|
+
product_id: any;
|
|
40
|
+
appointment_type: string;
|
|
41
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface CustomerData {
|
|
3
|
+
}
|
|
4
|
+
interface CustomerContextType {
|
|
5
|
+
appContext: any;
|
|
6
|
+
appUtils: any;
|
|
7
|
+
isLogin: () => boolean;
|
|
8
|
+
openLoginModal: (params: any) => void;
|
|
9
|
+
getUserInfo: () => any;
|
|
10
|
+
}
|
|
11
|
+
interface CustomerProviderProps {
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare const CustomerContext: React.Context<CustomerContextType | undefined>;
|
|
15
|
+
export declare const CustomerProvider: React.FC<CustomerProviderProps>;
|
|
16
|
+
/**
|
|
17
|
+
* 使用步骤管理的Hook
|
|
18
|
+
* @throws {Error} 如果在StepProvider外部使用会抛出错误
|
|
19
|
+
* @returns {StepContextType} 步骤管理上下文
|
|
20
|
+
*/
|
|
21
|
+
export declare const useCustomer: () => CustomerContextType;
|
|
22
|
+
declare const _default: {
|
|
23
|
+
defaultState: CustomerData;
|
|
24
|
+
};
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useCustomInit: () => {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getIamgeFromMedia: (data: any, type?: 'findAll' | 'findOne') => any;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @title: 获取包括今天的后七天日期
|
|
3
|
+
* @description:
|
|
4
|
+
* @param {*}
|
|
5
|
+
* @return {*}
|
|
6
|
+
* @Author: 严文强
|
|
7
|
+
* @Date: 2024-02-01 11:00
|
|
8
|
+
*/
|
|
9
|
+
export declare const getNextSevenDaysList: (defaultDay: string) => string[];
|
|
10
|
+
/**
|
|
11
|
+
* @title: 将年月日信息只展示为天
|
|
12
|
+
* @description: 如果为今天 则返回ToDay
|
|
13
|
+
* @param {*}
|
|
14
|
+
* @return {*}
|
|
15
|
+
* @Author: 严文强
|
|
16
|
+
* @Date: 2024-02-01 11:00
|
|
17
|
+
*/
|
|
18
|
+
export declare const ShowDayOnly: (date: string) => string;
|
|
19
|
+
/**
|
|
20
|
+
* @title: 日历星期多语言
|
|
21
|
+
* @description:
|
|
22
|
+
* @param {*}
|
|
23
|
+
* @return {*}
|
|
24
|
+
* @Author: 严文强
|
|
25
|
+
* @Date: 2024-02-01 18:42
|
|
26
|
+
*/
|
|
27
|
+
export declare const weekListText: string[];
|
|
28
|
+
/**
|
|
29
|
+
* @title: 不同状态颜色值
|
|
30
|
+
* @description:
|
|
31
|
+
* @param {*}
|
|
32
|
+
* @return {*}
|
|
33
|
+
* @Author: xiangxiang.shao
|
|
34
|
+
* @Date: 2024-02-19 11:35
|
|
35
|
+
*/
|
|
36
|
+
export declare const statusColor: {
|
|
37
|
+
call_to_book: string;
|
|
38
|
+
lots_of_space: string;
|
|
39
|
+
filling_up_fast: string;
|
|
40
|
+
sold_out: string;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* @title: 根据预约量数据判断当前状态
|
|
44
|
+
* @description:
|
|
45
|
+
* @param {*}
|
|
46
|
+
* @return {*}
|
|
47
|
+
* @Author: xiangxiang.shao
|
|
48
|
+
* @Date: 2024-02-19 11:35
|
|
49
|
+
*/
|
|
50
|
+
export declare const getStatus: (dateLimit: any, currentDate: string, cutTime: any) => {
|
|
51
|
+
status: string;
|
|
52
|
+
disabled: boolean;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* @title: 根据当前日期以设定判断当前是否是call_to_book状态
|
|
56
|
+
* @description:
|
|
57
|
+
* @param {*}
|
|
58
|
+
* @return {*}
|
|
59
|
+
* @Author: xiangxiang.shao
|
|
60
|
+
* @Date: 2024-02-21 10:10
|
|
61
|
+
*/
|
|
62
|
+
export declare const getCallToBookStatus: (currentDate: string, dateLimitData: any, cutTime: any) => boolean;
|
|
63
|
+
export declare const localeTypes: any;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare type CalendarDataItem = {
|
|
2
|
+
date: string;
|
|
3
|
+
color: string[];
|
|
4
|
+
isExcluded: boolean;
|
|
5
|
+
schedule_ids?: number[];
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
export declare type CalendarItemProps = {
|
|
9
|
+
date: string;
|
|
10
|
+
status?: string | null;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
select?: boolean;
|
|
13
|
+
onClick?: (date: string) => void;
|
|
14
|
+
showMonth?: boolean;
|
|
15
|
+
dateText: string;
|
|
16
|
+
week?: string;
|
|
17
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.less";
|
|
3
|
+
export interface Com<T> extends React.FC<T> {
|
|
4
|
+
}
|
|
5
|
+
export declare type RowKey = string | number;
|
|
6
|
+
export interface Option {
|
|
7
|
+
id: number | string;
|
|
8
|
+
name: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export interface TabsProps extends Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "onChange"> {
|
|
11
|
+
renderTab: (item: any) => React.ReactNode;
|
|
12
|
+
rowKey: RowKey;
|
|
13
|
+
name: RowKey;
|
|
14
|
+
onChange: (key: RowKey, _item: any) => void;
|
|
15
|
+
tab: RowKey;
|
|
16
|
+
className: string;
|
|
17
|
+
tabsRef: any;
|
|
18
|
+
options: Option[];
|
|
19
|
+
}
|
|
20
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Partial<TabsProps>, "ref"> & React.RefAttributes<unknown>>;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DrawerProps } from 'antd';
|
|
3
|
+
import './index.less';
|
|
4
|
+
export interface PisellDrawerProps extends DrawerProps {
|
|
5
|
+
header?: React.ReactNode;
|
|
6
|
+
titleNoWrap?: boolean;
|
|
7
|
+
hideScrollBar?: boolean;
|
|
8
|
+
showGoBack?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @title: 自定义抽屉
|
|
12
|
+
* @description:
|
|
13
|
+
* @param {PisellDrawerProps} props
|
|
14
|
+
* @return {*}
|
|
15
|
+
* @Author: zhiwei.Wang
|
|
16
|
+
* @Date: 2024-01-30 16:51
|
|
17
|
+
*/
|
|
18
|
+
declare const Drawer: (props: PisellDrawerProps) => JSX.Element;
|
|
19
|
+
export default Drawer;
|
|
@@ -42,5 +42,6 @@ export declare const checkResourcesFormat: (resources: any[], service: any, isCh
|
|
|
42
42
|
* @Date: 2024-12-23 12:05
|
|
43
43
|
*/
|
|
44
44
|
export declare const formatProductPrice: (item: any) => number;
|
|
45
|
+
export declare const getMainProductSellingPrice: (item: any) => number | undefined;
|
|
45
46
|
export declare const formatValues: (state: any) => any;
|
|
46
47
|
export declare const checkHolderIsError: (state: any) => any;
|
|
@@ -17,8 +17,8 @@ import { getSumCapacity } from "../../info2/utilsByBooking";
|
|
|
17
17
|
import { getDays } from "../../utils";
|
|
18
18
|
import { appointmentTypes } from "../../info/service2/status";
|
|
19
19
|
import { isDaysBooking, formatDayTime, isEventBooking, isNormalProductByDurationSchedule } from "../../info/service2/utils";
|
|
20
|
-
import { isArr, locales, sendWarningLog } from '@pisell/utils';
|
|
21
|
-
import { PisellToast } from
|
|
20
|
+
import { isArr, locales, sendWarningLog, isNumber } from '@pisell/utils';
|
|
21
|
+
import { PisellToast } from '@pisell/materials';
|
|
22
22
|
import Decimal from 'decimal.js';
|
|
23
23
|
var formatNote = function formatNote(data) {
|
|
24
24
|
var _data$notes;
|
|
@@ -344,6 +344,25 @@ var getSourceProductPrice = function getSourceProductPrice(item) {
|
|
|
344
344
|
return price;
|
|
345
345
|
};
|
|
346
346
|
|
|
347
|
+
// 获取主商品价格 要增加option
|
|
348
|
+
export var getMainProductSellingPrice = function getMainProductSellingPrice(item) {
|
|
349
|
+
var _item$_extend17, _item$_extend$other, _item$_extend$other2, _item$_extend18;
|
|
350
|
+
if (!isNumber((_item$_extend17 = item._extend) === null || _item$_extend17 === void 0 ? void 0 : _item$_extend17.main_product_selling_price)) {
|
|
351
|
+
return undefined;
|
|
352
|
+
}
|
|
353
|
+
var optionPrice = new Decimal(0);
|
|
354
|
+
// 单规格
|
|
355
|
+
if ((_item$_extend$other = item._extend.other) !== null && _item$_extend$other !== void 0 && _item$_extend$other.option && Array.isArray((_item$_extend$other2 = item._extend.other) === null || _item$_extend$other2 === void 0 ? void 0 : _item$_extend$other2.option)) {
|
|
356
|
+
var _item$_extend$other3;
|
|
357
|
+
optionPrice = (_item$_extend$other3 = item._extend.other) === null || _item$_extend$other3 === void 0 ? void 0 : _item$_extend$other3.option.reduce(function (accumulator, currentValue) {
|
|
358
|
+
var currentPrice = new Decimal(currentValue.price || 0);
|
|
359
|
+
var currentNum = new Decimal(currentValue.num || 0);
|
|
360
|
+
return accumulator.add(currentPrice.mul(currentNum));
|
|
361
|
+
}, optionPrice);
|
|
362
|
+
}
|
|
363
|
+
return new Decimal((_item$_extend18 = item._extend) === null || _item$_extend18 === void 0 ? void 0 : _item$_extend18.main_product_selling_price).add(optionPrice).toNumber();
|
|
364
|
+
};
|
|
365
|
+
|
|
347
366
|
/**
|
|
348
367
|
* @title: 格式化商品数据
|
|
349
368
|
* @description:
|
|
@@ -353,11 +372,11 @@ var getSourceProductPrice = function getSourceProductPrice(item) {
|
|
|
353
372
|
* @Date: 2024-12-07 14:21
|
|
354
373
|
*/
|
|
355
374
|
var formatProducts = function formatProducts(item, quantity) {
|
|
356
|
-
var _item$
|
|
375
|
+
var _item$_extend19, _getMainProductSellin, _item$_extend20, _item$_extend21, _item$_extend22;
|
|
357
376
|
var total = Number(item._extend.total);
|
|
358
377
|
var origin_total = Number(item._extend.origin_total);
|
|
359
378
|
var discount_amount = origin_total - total;
|
|
360
|
-
var bundleDiscountList = getBundleDiscountList(((_item$
|
|
379
|
+
var bundleDiscountList = getBundleDiscountList(((_item$_extend19 = item._extend) === null || _item$_extend19 === void 0 || (_item$_extend19 = _item$_extend19.other) === null || _item$_extend19 === void 0 ? void 0 : _item$_extend19.bundle) || []);
|
|
361
380
|
var discount_list = _toConsumableArray((item === null || item === void 0 ? void 0 : item.discount_list) || []);
|
|
362
381
|
discount_list.push.apply(discount_list, _toConsumableArray(bundleDiscountList));
|
|
363
382
|
|
|
@@ -371,7 +390,7 @@ var formatProducts = function formatProducts(item, quantity) {
|
|
|
371
390
|
return {
|
|
372
391
|
"num": quantity || item._extend.quantity,
|
|
373
392
|
"price": formatProductPrice(item),
|
|
374
|
-
"main_product_selling_price": (
|
|
393
|
+
"main_product_selling_price": (_getMainProductSellin = getMainProductSellingPrice(item)) !== null && _getMainProductSellin !== void 0 ? _getMainProductSellin : formatProductPrice(item),
|
|
375
394
|
"source_product_price": getSourceProductPrice(item),
|
|
376
395
|
"product_id": (item === null || item === void 0 ? void 0 : item.product_id) || item.id,
|
|
377
396
|
"discount_amount": notManualDiscount.length > 0 ? 0 : discount_amount,
|
|
@@ -382,10 +401,10 @@ var formatProducts = function formatProducts(item, quantity) {
|
|
|
382
401
|
"discount_per": item._extend.discount_per,
|
|
383
402
|
"discount_type": item._extend.discount_type || discount_type,
|
|
384
403
|
"order_detail_id": item._extend.order_detail_id || 0,
|
|
385
|
-
"product_bundle": formatProductBundle((_item$
|
|
404
|
+
"product_bundle": formatProductBundle((_item$_extend20 = item._extend) === null || _item$_extend20 === void 0 || (_item$_extend20 = _item$_extend20.other) === null || _item$_extend20 === void 0 ? void 0 : _item$_extend20.bundle),
|
|
386
405
|
"bundle_edit": item._extend.bundle_edit || bundleDiscountList.length ? 1 : 0,
|
|
387
|
-
"product_option_item": formatProductOption((_item$
|
|
388
|
-
"product_variant_id": ((_item$
|
|
406
|
+
"product_option_item": formatProductOption((_item$_extend21 = item._extend) === null || _item$_extend21 === void 0 || (_item$_extend21 = _item$_extend21.other) === null || _item$_extend21 === void 0 ? void 0 : _item$_extend21.option),
|
|
407
|
+
"product_variant_id": ((_item$_extend22 = item._extend) === null || _item$_extend22 === void 0 || (_item$_extend22 = _item$_extend22.other) === null || _item$_extend22 === void 0 ? void 0 : _item$_extend22.product_variant_id) || 0,
|
|
389
408
|
"discount_list": notManualDiscount,
|
|
390
409
|
metadata: formatMetaData(item, false)
|
|
391
410
|
};
|
|
@@ -405,8 +424,8 @@ var formatDayRelationProducts = function formatDayRelationProducts(data, booking
|
|
|
405
424
|
|
|
406
425
|
// 过滤出卡片中的普通商品
|
|
407
426
|
var relation_products = list === null || list === void 0 ? void 0 : list.filter(function (item) {
|
|
408
|
-
var _item$
|
|
409
|
-
var holderId = (_item$
|
|
427
|
+
var _item$_extend23;
|
|
428
|
+
var holderId = (_item$_extend23 = item._extend) === null || _item$_extend23 === void 0 ? void 0 : _item$_extend23.holder_id;
|
|
410
429
|
var bookingHolderId = booking_item._extend.holder_id;
|
|
411
430
|
var isDayBookingProduct = appointmentTypes.includes(item.extension_type);
|
|
412
431
|
return holderId && holderId === bookingHolderId && !isDayBookingProduct;
|
|
@@ -432,15 +451,15 @@ var formatAppointmentProductLists = function formatAppointmentProductLists(data)
|
|
|
432
451
|
|
|
433
452
|
// 找出预约商品
|
|
434
453
|
list = list.filter(function (item) {
|
|
435
|
-
var _item$
|
|
436
|
-
return ((_item$
|
|
454
|
+
var _item$_extend24;
|
|
455
|
+
return ((_item$_extend24 = item._extend) === null || _item$_extend24 === void 0 ? void 0 : _item$_extend24.holder_id) && !isNormalProductByDurationSchedule(item);
|
|
437
456
|
});
|
|
438
457
|
|
|
439
458
|
// 对预约商品列表根据holder_id进行分组
|
|
440
459
|
var groupMap = new Map();
|
|
441
460
|
list.forEach(function (item) {
|
|
442
|
-
var _item$
|
|
443
|
-
var key = (_item$
|
|
461
|
+
var _item$_extend25;
|
|
462
|
+
var key = (_item$_extend25 = item._extend) === null || _item$_extend25 === void 0 ? void 0 : _item$_extend25.holder_id; // 分组键
|
|
444
463
|
if (!groupMap.has(key)) {
|
|
445
464
|
groupMap.set(key, []);
|
|
446
465
|
}
|
|
@@ -501,7 +520,7 @@ var formatBookings = function formatBookings(data, values) {
|
|
|
501
520
|
var bookings = [];
|
|
502
521
|
var obj = {};
|
|
503
522
|
list.forEach(function (item) {
|
|
504
|
-
var _item$
|
|
523
|
+
var _item$_extend30;
|
|
505
524
|
var start_date = item._extend.startDate.format('YYYY-MM-DD');
|
|
506
525
|
var end_date = item._extend.endDate.format('YYYY-MM-DD');
|
|
507
526
|
var end_time = item._extend.endDate.format('HH:mm');
|
|
@@ -515,9 +534,9 @@ var formatBookings = function formatBookings(data, values) {
|
|
|
515
534
|
|
|
516
535
|
// 跨日预约下的普通商品
|
|
517
536
|
if (isDay) {
|
|
518
|
-
var _item$
|
|
519
|
-
var startDate = ((_item$
|
|
520
|
-
var endDate = ((_item$
|
|
537
|
+
var _item$_extend26, _item$_extend27, _item$_extend28, _item$_extend29;
|
|
538
|
+
var startDate = ((_item$_extend26 = item._extend) === null || _item$_extend26 === void 0 ? void 0 : _item$_extend26.startDate) || ((_item$_extend27 = item._extend) === null || _item$_extend27 === void 0 ? void 0 : _item$_extend27.start_date);
|
|
539
|
+
var endDate = ((_item$_extend28 = item._extend) === null || _item$_extend28 === void 0 ? void 0 : _item$_extend28.endDate) || ((_item$_extend29 = item._extend) === null || _item$_extend29 === void 0 ? void 0 : _item$_extend29.end_date);
|
|
521
540
|
var _formatDayTime = formatDayTime({
|
|
522
541
|
startDate: startDate,
|
|
523
542
|
endDate: endDate
|
|
@@ -543,7 +562,7 @@ var formatBookings = function formatBookings(data, values) {
|
|
|
543
562
|
// 跨日预约处理: 跨日预约所有数据都在list中, 每一组预约通过groupId进行分组
|
|
544
563
|
// 通过obj 记录下每个GroupId第一次出现的时机, 第一次出现需要设置 metadata.multiDayPrices
|
|
545
564
|
// 后续出现不需要设置 metadata.multiDayPrices. 节省体积
|
|
546
|
-
var isSetGroupId = obj[item === null || item === void 0 || (_item$
|
|
565
|
+
var isSetGroupId = obj[item === null || item === void 0 || (_item$_extend30 = item._extend) === null || _item$_extend30 === void 0 ? void 0 : _item$_extend30.groupId];
|
|
547
566
|
var booking = _objectSpread(_objectSpread({
|
|
548
567
|
"product": formatProducts(item),
|
|
549
568
|
"relation_products": formatRelationDetails(item._extend.relation_details),
|
|
@@ -602,10 +621,10 @@ var formatRelationProducts = function formatRelationProducts(data, type) {
|
|
|
602
621
|
var list = ((_data$service = data.service) === null || _data$service === void 0 ? void 0 : _data$service.value) || [];
|
|
603
622
|
// open items 下的商品
|
|
604
623
|
list = list.filter(function (item) {
|
|
605
|
-
var _item$
|
|
624
|
+
var _item$_extend31;
|
|
606
625
|
return (
|
|
607
626
|
// 跨日预约把普通商品加在relationProducts 活动预约按之前逻辑
|
|
608
|
-
type === 'day' ? isNormalProductByDurationSchedule(item) : ((_item$
|
|
627
|
+
type === 'day' ? isNormalProductByDurationSchedule(item) : ((_item$_extend31 = item._extend) === null || _item$_extend31 === void 0 ? void 0 : _item$_extend31.holder_id) && appointmentTypes.includes(item.extension_type)
|
|
609
628
|
);
|
|
610
629
|
});
|
|
611
630
|
var relationProducts = [];
|
|
@@ -739,7 +758,7 @@ export var formatValues = function formatValues(state) {
|
|
|
739
758
|
export var checkHolderIsError = function checkHolderIsError(state) {
|
|
740
759
|
var _state$client;
|
|
741
760
|
var holderError = state.service.value.some(function (item) {
|
|
742
|
-
var _item$
|
|
761
|
+
var _item$_extend32;
|
|
743
762
|
// 普通商品不需要检测holder
|
|
744
763
|
if (isNormalProductByDurationSchedule(item)) {
|
|
745
764
|
return false;
|
|
@@ -747,7 +766,7 @@ export var checkHolderIsError = function checkHolderIsError(state) {
|
|
|
747
766
|
if (item._extend.quantity === 1 && !item._extend.holder_id) {
|
|
748
767
|
return true;
|
|
749
768
|
}
|
|
750
|
-
if (item._extend.quantity > 1 && ((_item$
|
|
769
|
+
if (item._extend.quantity > 1 && ((_item$_extend32 = item._extend) === null || _item$_extend32 === void 0 || (_item$_extend32 = _item$_extend32.holder_id) === null || _item$_extend32 === void 0 ? void 0 : _item$_extend32.length) !== item._extend.quantity) {
|
|
751
770
|
return true;
|
|
752
771
|
}
|
|
753
772
|
return false;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DropdownProps } from "antd";
|
|
3
|
+
import "./index.less";
|
|
4
|
+
interface MenuButtonProps {
|
|
5
|
+
menuWrapClassName?: string;
|
|
6
|
+
menuWrapStyle?: React.CSSProperties;
|
|
7
|
+
dropdownProps?: DropdownProps;
|
|
8
|
+
}
|
|
9
|
+
declare const MenuButton: ({ menuWrapClassName, menuWrapStyle, dropdownProps, }: MenuButtonProps) => JSX.Element;
|
|
10
|
+
export default MenuButton;
|
|
@@ -85,7 +85,7 @@ var VoucherCard = function VoucherCard(props) {
|
|
|
85
85
|
var _ref;
|
|
86
86
|
var val = (_ref = state.service.value || []) === null || _ref === void 0 ? void 0 : _ref.map(function (value) {
|
|
87
87
|
var _value$_extend, _value$_extend2, _value$_extend3;
|
|
88
|
-
return {
|
|
88
|
+
return _defineProperty(_defineProperty({
|
|
89
89
|
booking_id: value.booking_id,
|
|
90
90
|
id: value.id,
|
|
91
91
|
price: value.price,
|
|
@@ -93,9 +93,8 @@ var VoucherCard = function VoucherCard(props) {
|
|
|
93
93
|
discount_list: value.discount_list,
|
|
94
94
|
origin_total: value === null || value === void 0 || (_value$_extend2 = value._extend) === null || _value$_extend2 === void 0 ? void 0 : _value$_extend2.origin_total,
|
|
95
95
|
quantity: value._extend.quantity,
|
|
96
|
-
startDate: value._extend.startDate
|
|
97
|
-
|
|
98
|
-
};
|
|
96
|
+
startDate: value._extend.startDate
|
|
97
|
+
}, "quantity", value._extend.quantity), "holder_id", value === null || value === void 0 || (_value$_extend3 = value._extend) === null || _value$_extend3 === void 0 ? void 0 : _value$_extend3.holder_id);
|
|
99
98
|
});
|
|
100
99
|
return val;
|
|
101
100
|
}, [state.service.value]);
|
|
@@ -105,8 +104,8 @@ var VoucherCard = function VoucherCard(props) {
|
|
|
105
104
|
}, 0);
|
|
106
105
|
}, [serviceMemo]);
|
|
107
106
|
var addonsMemo = useMemo(function () {
|
|
108
|
-
var
|
|
109
|
-
var val = (
|
|
107
|
+
var _ref3;
|
|
108
|
+
var val = (_ref3 = state.addons.value || []) === null || _ref3 === void 0 ? void 0 : _ref3.map(function (value) {
|
|
110
109
|
var _value$_extend4, _value$_extend5;
|
|
111
110
|
return {
|
|
112
111
|
booking_id: value.booking_id,
|
|
@@ -245,7 +244,7 @@ var VoucherCard = function VoucherCard(props) {
|
|
|
245
244
|
|
|
246
245
|
// apply code
|
|
247
246
|
var onScanCode = /*#__PURE__*/function () {
|
|
248
|
-
var
|
|
247
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
249
248
|
var _state$client$value2;
|
|
250
249
|
var customerId, val;
|
|
251
250
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -273,7 +272,7 @@ var VoucherCard = function VoucherCard(props) {
|
|
|
273
272
|
}, _callee);
|
|
274
273
|
}));
|
|
275
274
|
return function onScanCode() {
|
|
276
|
-
return
|
|
275
|
+
return _ref4.apply(this, arguments);
|
|
277
276
|
};
|
|
278
277
|
}();
|
|
279
278
|
var availableData = useMemo(function () {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.text.login': string;
|
|
4
|
+
'pisell2.text.booking.confirm-changes': string;
|
|
5
|
+
'pisell2.text.booking.time-change': string;
|
|
6
|
+
'pisell2.text.booking.resource-change.detail': string;
|
|
7
|
+
};
|
|
8
|
+
'zh-CN': {
|
|
9
|
+
'pisell2.text.login': string;
|
|
10
|
+
'pisell2.text.booking.confirm-changes': string;
|
|
11
|
+
'pisell2.text.booking.time-change': string;
|
|
12
|
+
'pisell2.text.booking.resource-change.detail': string;
|
|
13
|
+
};
|
|
14
|
+
'zh-HK': {
|
|
15
|
+
'pisell2.text.login': string;
|
|
16
|
+
'pisell2.text.booking.confirm-changes': string;
|
|
17
|
+
'pisell2.text.booking.time-change': string;
|
|
18
|
+
'pisell2.text.booking.resource-change.detail': string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|