@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
|
@@ -59,7 +59,32 @@ function LoginCodeInput(_ref) {
|
|
|
59
59
|
* @param value 输入的值
|
|
60
60
|
*/
|
|
61
61
|
var handleInputChange = function handleInputChange(index, value) {
|
|
62
|
-
|
|
62
|
+
// iOS「短信验证码一键填充」/ 粘贴可能会一次性塞进多位数字:
|
|
63
|
+
// - Safari 往往能正常触发
|
|
64
|
+
// - 微信 WebView 更依赖标准的 `autocomplete="one-time-code"`,并且需要允许一次性输入整串数字
|
|
65
|
+
var digitsOnly = value.replace(/\D/g, '');
|
|
66
|
+
if (digitsOnly !== value && value !== '') return; // 只允许数字(允许空字符串用于清空)
|
|
67
|
+
|
|
68
|
+
// 一次性输入多位数字时,拆分填充到后续输入框(兼容 iOS one-time-code / IME 粘贴)
|
|
69
|
+
if (digitsOnly.length > 1) {
|
|
70
|
+
var _inputRefs$current$ne;
|
|
71
|
+
if (error && onClearError) onClearError();
|
|
72
|
+
var nextCode = _toConsumableArray(code);
|
|
73
|
+
var maxFillLength = Math.min(codeLength - index, digitsOnly.length);
|
|
74
|
+
for (var offset = 0; offset < maxFillLength; offset += 1) {
|
|
75
|
+
nextCode[index + offset] = digitsOnly[offset];
|
|
76
|
+
}
|
|
77
|
+
setCode(nextCode);
|
|
78
|
+
var nextEmptyIndex = nextCode.findIndex(function (digit) {
|
|
79
|
+
return digit === '';
|
|
80
|
+
});
|
|
81
|
+
if (nextEmptyIndex === -1) {
|
|
82
|
+
onSubmit === null || onSubmit === void 0 || onSubmit(nextCode.join(''));
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
(_inputRefs$current$ne = inputRefs.current[nextEmptyIndex]) === null || _inputRefs$current$ne === void 0 || _inputRefs$current$ne.focus();
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
63
88
|
|
|
64
89
|
// 如果用户开始输入且有错误,清除错误
|
|
65
90
|
if (value && error && onClearError) {
|
|
@@ -164,8 +189,16 @@ function LoginCodeInput(_ref) {
|
|
|
164
189
|
return inputRefs.current[index] = el;
|
|
165
190
|
},
|
|
166
191
|
type: "text",
|
|
167
|
-
inputMode: "numeric"
|
|
168
|
-
|
|
192
|
+
inputMode: "numeric"
|
|
193
|
+
// 关键:第一个输入框需要支持 iOS one-time-code 一次性填充整串验证码
|
|
194
|
+
// 否则在微信 WebView 等环境下可能只会塞进第一位或完全不触发
|
|
195
|
+
,
|
|
196
|
+
autoComplete: index === 0 ? 'one-time-code' : 'off',
|
|
197
|
+
autoCorrect: "off",
|
|
198
|
+
autoCapitalize: "off",
|
|
199
|
+
spellCheck: false,
|
|
200
|
+
maxLength: index === 0 ? codeLength : 1,
|
|
201
|
+
pattern: "[0-9]*",
|
|
169
202
|
className: "code-input-box ".concat(digit ? 'has-value' : '', " ").concat(error ? 'has-error' : ''),
|
|
170
203
|
value: digit,
|
|
171
204
|
onChange: function onChange(e) {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @title: 格式化时间
|
|
3
|
+
* @description:
|
|
4
|
+
* @param {Moment} date 时间
|
|
5
|
+
* @param {string} cnFormat 中文
|
|
6
|
+
* @param {string} enFormat 英文
|
|
7
|
+
* @return {*}
|
|
8
|
+
* @Author: Wzw
|
|
9
|
+
* @Date: 2022-07-28 11:57
|
|
10
|
+
*/
|
|
11
|
+
export declare const formatDate: (date: any, cnFormat?: string, enFormat?: string) => string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare type OptionType = {
|
|
2
|
+
id?: string;
|
|
3
|
+
url: string;
|
|
4
|
+
debug?: boolean;
|
|
5
|
+
allowExternal?: boolean;
|
|
6
|
+
text?: string;
|
|
7
|
+
type?: 'text/javascript';
|
|
8
|
+
async?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export default function exec(options: OptionType | string, parent: HTMLElement): Promise<unknown>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getLocale: () => string;
|
|
@@ -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;
|
|
@@ -36,7 +36,8 @@ __export(utils_exports, {
|
|
|
36
36
|
formatProductOption: () => formatProductOption,
|
|
37
37
|
formatProductPrice: () => formatProductPrice,
|
|
38
38
|
formatValues: () => formatValues,
|
|
39
|
-
getBundleDiscountList: () => getBundleDiscountList
|
|
39
|
+
getBundleDiscountList: () => getBundleDiscountList,
|
|
40
|
+
getMainProductSellingPrice: () => getMainProductSellingPrice
|
|
40
41
|
});
|
|
41
42
|
module.exports = __toCommonJS(utils_exports);
|
|
42
43
|
var import_dayjs = __toESM(require("dayjs"));
|
|
@@ -278,6 +279,21 @@ var getSourceProductPrice = (item) => {
|
|
|
278
279
|
}
|
|
279
280
|
return price;
|
|
280
281
|
};
|
|
282
|
+
var getMainProductSellingPrice = (item) => {
|
|
283
|
+
var _a, _b, _c, _d, _e;
|
|
284
|
+
if (!(0, import_utils5.isNumber)((_a = item._extend) == null ? void 0 : _a.main_product_selling_price)) {
|
|
285
|
+
return void 0;
|
|
286
|
+
}
|
|
287
|
+
let optionPrice = new import_decimal.default(0);
|
|
288
|
+
if (((_b = item._extend.other) == null ? void 0 : _b.option) && Array.isArray((_c = item._extend.other) == null ? void 0 : _c.option)) {
|
|
289
|
+
optionPrice = (_d = item._extend.other) == null ? void 0 : _d.option.reduce((accumulator, currentValue) => {
|
|
290
|
+
const currentPrice = new import_decimal.default(currentValue.price || 0);
|
|
291
|
+
const currentNum = new import_decimal.default(currentValue.num || 0);
|
|
292
|
+
return accumulator.add(currentPrice.mul(currentNum));
|
|
293
|
+
}, optionPrice);
|
|
294
|
+
}
|
|
295
|
+
return new import_decimal.default((_e = item._extend) == null ? void 0 : _e.main_product_selling_price).add(optionPrice).toNumber();
|
|
296
|
+
};
|
|
281
297
|
var formatProducts = (item, quantity) => {
|
|
282
298
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
283
299
|
const total = Number(item._extend.total);
|
|
@@ -293,7 +309,7 @@ var formatProducts = (item, quantity) => {
|
|
|
293
309
|
return {
|
|
294
310
|
"num": quantity || item._extend.quantity,
|
|
295
311
|
"price": formatProductPrice(item),
|
|
296
|
-
"main_product_selling_price": item
|
|
312
|
+
"main_product_selling_price": getMainProductSellingPrice(item) ?? formatProductPrice(item),
|
|
297
313
|
"source_product_price": getSourceProductPrice(item),
|
|
298
314
|
"product_id": (item == null ? void 0 : item.product_id) || item.id,
|
|
299
315
|
"discount_amount": notManualDiscount.length > 0 ? 0 : discount_amount,
|
|
@@ -571,5 +587,6 @@ var checkHolderIsError = (state) => {
|
|
|
571
587
|
formatProductOption,
|
|
572
588
|
formatProductPrice,
|
|
573
589
|
formatValues,
|
|
574
|
-
getBundleDiscountList
|
|
590
|
+
getBundleDiscountList,
|
|
591
|
+
getMainProductSellingPrice
|
|
575
592
|
});
|
|
@@ -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;
|
|
@@ -100,6 +100,7 @@ var VoucherCard = (props) => {
|
|
|
100
100
|
origin_total: (_b2 = value == null ? void 0 : value._extend) == null ? void 0 : _b2.origin_total,
|
|
101
101
|
quantity: value._extend.quantity,
|
|
102
102
|
startDate: value._extend.startDate,
|
|
103
|
+
quantity: value._extend.quantity,
|
|
103
104
|
holder_id: (_c2 = value == null ? void 0 : value._extend) == null ? void 0 : _c2.holder_id
|
|
104
105
|
};
|
|
105
106
|
});
|
|
@@ -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;
|