@pisell/private-materials 6.1.1 → 6.2.2
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 +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +11 -11
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +11 -11
- package/es/businessModel/SalesModel/Sales/index.js +37 -4
- package/es/businessModel/SalesModel/index.d.ts +0 -1
- package/es/components/Sales/Cart/index.js +13 -4
- package/es/components/Sales/Cart/utils.d.ts +40 -0
- package/es/components/Sales/Cart/utils.js +171 -0
- package/es/components/Sales/Checkout/index.d.ts +4 -0
- package/es/components/Sales/Checkout/index.js +52 -8
- package/es/components/Sales/Checkout/serve.d.ts +13 -0
- package/es/components/Sales/Checkout/serve.js +16 -2
- package/es/components/Sales/Checkout/utils.d.ts +6 -1
- package/es/components/Sales/Checkout/utils.js +15 -4
- package/es/components/Sales/Customer/index.d.ts +1 -0
- package/es/components/Sales/Customer/index.js +1 -0
- package/es/components/Sales/Resource/index.js +2 -2
- package/es/components/Sales/Resource/serve.d.ts +7 -0
- package/es/components/Sales/Resource/serve.js +10 -0
- package/es/components/Sales/Summary/index.d.ts +10 -0
- package/es/components/Sales/Summary/index.js +17 -2
- package/es/components/Sales/Summary/serve.d.ts +1 -0
- package/es/components/Sales/Summary/serve.js +6 -0
- package/es/components/Sales/Summary/utils.d.ts +15 -0
- package/es/components/Sales/Summary/utils.js +43 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.js +1 -0
- package/es/components/appointmentBooking/components/Content/index.js +15 -1
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
- package/es/components/appointmentBooking/components/Deposit/index.js +27 -7
- package/es/components/appointmentBooking/components/Form/index.js +1 -1
- package/es/components/appointmentBooking/components/Form/utils.d.ts +1 -1
- package/es/components/appointmentBooking/components/Form/utils.js +17 -15
- package/es/components/appointmentBooking/components/Header/index.js +2 -1
- package/es/components/appointmentBooking/components/Resource/index.js +1 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +25 -20
- package/es/components/appointmentBooking/deposit/index.js +4 -2
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/components/footer/index.js +9 -33
- package/es/components/booking/components/footer/utils.d.ts +1 -0
- package/es/components/booking/components/footer/utils.js +47 -18
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/es/components/booking/components/reloadResourceModal/index.d.ts +8 -0
- package/es/components/{pay/toB/store/provider.js → booking/components/reloadResourceModal/index.js} +48 -52
- package/es/components/booking/components/reloadResourceModal/index.less +6 -0
- package/es/components/booking/components/voucher/index.js +2 -2
- package/es/components/booking/editBookingModal/index.d.ts +5 -0
- package/es/components/booking/editBookingModal/index.js +386 -0
- package/es/components/booking/editBookingModal/index.less +8 -0
- package/es/components/booking/editBookingModal/locales.d.ts +21 -0
- package/es/components/booking/editBookingModal/locales.js +20 -0
- package/es/components/booking/editBookingModal/mock.d.ts +807 -0
- package/es/components/booking/editBookingModal/mock.js +2993 -0
- package/es/components/booking/editBookingModal/serve.d.ts +51 -0
- package/es/components/booking/editBookingModal/serve.js +288 -0
- package/es/components/booking/editBookingModal/type.d.ts +12 -0
- package/es/components/booking/editBookingModal/type.js +1 -0
- package/es/components/booking/editBookingModal/utils.d.ts +12 -0
- package/es/components/booking/editBookingModal/utils.js +157 -0
- package/es/components/booking/forms/table/index.d.ts +0 -1
- package/es/components/booking/hooks/useIsBooking4Shop.js +2 -2
- package/es/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/es/components/booking/info/addServiceVariant/index.js +2 -2
- package/es/components/booking/info/client/index.js +2 -2
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.js +8 -1
- package/es/components/booking/info/index.d.ts +1 -0
- package/es/components/booking/info/index.js +4 -5
- package/es/components/booking/info/model.js +5 -0
- package/es/components/booking/info/service/Lists.d.ts +1 -0
- package/es/components/booking/info/service/addService/index.js +2 -2
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/es/components/booking/info/service/editService/index.js +1 -1
- package/es/components/booking/info/service/like/index.d.ts +0 -1
- package/es/components/booking/info/service/serviceManager/index.js +4 -4
- package/es/components/booking/info/service2/utils.js +6 -4
- package/es/components/booking/info/utils.js +1 -1
- package/es/components/booking/info2/index.js +45 -13
- package/es/components/booking/info2/service/addService/index.js +22 -9
- package/es/components/booking/info2/service/addService/utils.d.ts +10 -0
- package/es/components/booking/info2/service/addService/utils.js +48 -14
- package/es/components/booking/info2/service/addTimeModal/index.js +32 -9
- package/es/components/booking/info2/service/editService/Resources/index.js +22 -8
- package/es/components/booking/info2/service/editService/Resources/index.less +6 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +7 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +26 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/index.d.ts +10 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/index.js +308 -0
- package/es/components/booking/info2/service/editService/ResourcesV2/index.less +44 -0
- package/es/components/booking/info2/service/editService/index.js +12 -15
- package/es/components/booking/info2/utils.js +13 -16
- package/es/components/booking/info2/utilsByBooking.js +10 -1
- package/es/components/booking/locales.d.ts +12 -0
- package/es/components/booking/locales.js +12 -0
- package/es/components/booking/materiels/startTime/index.d.ts +0 -1
- package/es/components/booking/model.d.ts +1 -0
- package/es/components/eftpos/deviceList/index.d.ts +0 -1
- package/es/components/eftpos/form/index.d.ts +0 -1
- package/es/components/eftpos/group/index.d.ts +0 -1
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftpos/icon/apiKey.d.ts +0 -1
- package/es/components/eftpos/icon/device.d.ts +0 -1
- package/es/components/eftpos/receipt/index.d.ts +0 -1
- package/es/components/eftpos/surcharge/index.d.ts +0 -1
- package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/es/components/eftposPay/component/step/index.d.ts +0 -1
- package/es/components/eftposPay/component/step/step.d.ts +0 -1
- package/es/components/eftposPay/const.d.ts +4 -1
- package/es/components/eftposPay/const.js +3 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/hooks.js +3 -1
- package/es/components/eftposPay/index.js +1 -1
- package/es/components/eftposPay/linkly/const.d.ts +23 -0
- package/es/components/eftposPay/linkly/const.js +82 -0
- package/es/components/eftposPay/linkly/hooks/index.d.ts +2 -0
- package/es/components/eftposPay/linkly/hooks/index.js +2 -0
- package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
- package/es/components/eftposPay/linkly/hooks/normal.js +321 -0
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/es/components/{pay/toB/store/hooks.js → eftposPay/linkly/hooks/useTimeQuery.js} +252 -59
- package/es/components/eftposPay/linkly/index.d.ts +2 -0
- package/es/components/eftposPay/linkly/index.js +197 -0
- package/es/components/eftposPay/linkly/service.d.ts +32 -0
- package/es/components/eftposPay/linkly/service.js +81 -0
- package/es/components/eftposPay/manufacturer.d.ts +1 -0
- package/es/components/eftposPay/manufacturer.js +4 -0
- package/es/components/eftposPay/pay.d.ts +1 -1
- package/es/components/eftposPay/pay.js +6 -2
- package/es/components/eftposPay/payo/config.js +30 -3
- package/es/components/eftposPay/store/index.d.ts +2 -2
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +40 -19
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +17 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +10 -6
- package/es/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
- package/es/components/eventBooking/components/Provider/Event/index.js +13 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/index.js +22 -4
- package/es/components/eventBooking/index.js +21 -7
- package/es/components/eventBooking/locales.d.ts +24 -0
- package/es/components/eventBooking/locales.js +30 -6
- package/es/components/index.d.ts +3 -1
- package/es/components/index.js +3 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/es/components/productSelect/components/pisellPriceText/index.js +2 -3
- package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/es/components/schedules/products/index.d.ts +0 -1
- package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/es/components/stepController/components/Content/index.d.ts +7 -0
- package/es/components/stepController/components/Content/index.js +9 -0
- package/es/components/stepController/components/Content/index.less +8 -0
- package/es/components/stepController/components/Footer/index.d.ts +8 -0
- package/es/components/stepController/components/Footer/index.js +15 -0
- package/es/components/stepController/components/Footer/index.less +39 -0
- package/es/components/stepController/components/Header/index.d.ts +20 -0
- package/es/components/stepController/components/Header/index.js +97 -0
- package/es/components/stepController/components/Header/index.less +21 -0
- package/es/components/stepController/index.d.ts +5 -0
- package/es/components/stepController/index.js +64 -0
- package/es/components/stepController/index.less +11 -0
- package/es/components/stepController/locales.d.ts +27 -0
- package/es/components/stepController/locales.js +32 -0
- package/es/components/stepController/types.d.ts +23 -0
- package/es/components/stepController/types.js +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +19 -9
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -1
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/es/components/ticketBooking/components/ticketBooking/index.js +141 -142
- package/es/components/ticketBooking/index.js +4 -3
- package/es/components/ticketBooking/serve.d.ts +0 -1
- package/es/components/ticketBooking/serve.js +0 -26
- package/es/components/ticketBooking/utils/index.js +2 -1
- package/es/hooks/useWindowSize.d.ts +5 -0
- package/es/hooks/useWindowSize.js +26 -0
- package/es/index.d.ts +2 -1
- package/es/index.js +3 -2
- package/lib/businessModel/SalesModel/Sales/index.js +22 -8
- package/lib/businessModel/SalesModel/index.d.ts +0 -1
- package/lib/components/Sales/Cart/index.js +9 -4
- package/lib/components/Sales/Cart/utils.d.ts +40 -0
- package/lib/components/Sales/Cart/utils.js +120 -0
- package/lib/components/Sales/Checkout/index.d.ts +4 -0
- package/lib/components/Sales/Checkout/index.js +39 -7
- package/lib/components/Sales/Checkout/serve.d.ts +13 -0
- package/lib/components/Sales/Checkout/serve.js +7 -2
- package/lib/components/Sales/Checkout/utils.d.ts +6 -1
- package/lib/components/Sales/Checkout/utils.js +7 -3
- package/lib/components/Sales/Customer/index.d.ts +1 -0
- package/lib/components/Sales/Customer/index.js +1 -0
- package/lib/components/Sales/Resource/index.js +1 -1
- package/lib/components/Sales/Resource/serve.d.ts +7 -0
- package/lib/components/Sales/Resource/serve.js +9 -2
- package/lib/components/Sales/Summary/index.d.ts +10 -0
- package/lib/components/Sales/Summary/index.js +7 -1
- package/lib/components/Sales/Summary/serve.d.ts +1 -0
- package/lib/components/Sales/Summary/serve.js +32 -0
- package/lib/components/Sales/Summary/utils.d.ts +15 -0
- package/lib/components/Sales/Summary/utils.js +30 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +1 -0
- package/lib/components/appointmentBooking/components/Content/index.js +6 -1
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
- package/lib/components/appointmentBooking/components/Deposit/index.js +36 -4
- package/lib/components/appointmentBooking/components/Form/index.js +6 -1
- package/lib/components/appointmentBooking/components/Form/utils.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Form/utils.js +9 -12
- package/lib/components/appointmentBooking/components/Header/index.js +1 -0
- package/lib/components/appointmentBooking/components/Resource/index.js +1 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +8 -4
- package/lib/components/appointmentBooking/deposit/index.js +4 -2
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/components/footer/index.js +4 -23
- package/lib/components/booking/components/footer/utils.d.ts +1 -0
- package/lib/components/booking/components/footer/utils.js +27 -7
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +8 -0
- package/lib/components/booking/components/reloadResourceModal/index.js +74 -0
- package/lib/components/booking/components/reloadResourceModal/index.less +6 -0
- package/lib/components/booking/components/voucher/index.js +2 -2
- package/lib/components/booking/editBookingModal/index.d.ts +5 -0
- package/lib/components/booking/editBookingModal/index.js +363 -0
- package/lib/components/booking/editBookingModal/index.less +8 -0
- package/lib/components/booking/editBookingModal/locales.d.ts +21 -0
- package/lib/components/booking/editBookingModal/locales.js +44 -0
- package/lib/components/booking/editBookingModal/mock.d.ts +807 -0
- package/lib/components/booking/editBookingModal/mock.js +3314 -0
- package/lib/components/booking/editBookingModal/serve.d.ts +51 -0
- package/lib/components/booking/editBookingModal/serve.js +178 -0
- package/lib/components/booking/editBookingModal/type.d.ts +12 -0
- package/lib/components/{pay/toB/store/context.js → booking/editBookingModal/type.js} +3 -18
- package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
- package/lib/components/booking/editBookingModal/utils.js +158 -0
- package/lib/components/booking/forms/table/index.d.ts +0 -1
- package/lib/components/booking/hooks/useIsBooking4Shop.js +2 -2
- package/lib/components/booking/info/addServiceVariant/index.d.ts +1 -0
- package/lib/components/booking/info/addServiceVariant/index.js +3 -3
- package/lib/components/booking/info/client/index.js +19 -57
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.js +6 -1
- package/lib/components/booking/info/index.d.ts +1 -0
- package/lib/components/booking/info/index.js +6 -4
- package/lib/components/booking/info/model.js +3 -0
- package/lib/components/booking/info/service/Lists.d.ts +1 -0
- package/lib/components/booking/info/service/addService/index.js +3 -3
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/lib/components/booking/info/service/editService/index.js +1 -0
- package/lib/components/booking/info/service/like/index.d.ts +0 -1
- package/lib/components/booking/info/service/serviceManager/index.js +3 -3
- package/lib/components/booking/info/service2/utils.js +5 -4
- package/lib/components/booking/info/utils.js +2 -1
- package/lib/components/booking/info2/index.js +64 -25
- package/lib/components/booking/info2/service/addService/index.js +20 -7
- package/lib/components/booking/info2/service/addService/utils.d.ts +10 -0
- package/lib/components/booking/info2/service/addService/utils.js +32 -5
- package/lib/components/booking/info2/service/addTimeModal/index.js +26 -10
- package/lib/components/booking/info2/service/editService/Resources/index.js +54 -10
- package/lib/components/booking/info2/service/editService/Resources/index.less +6 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +7 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +53 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/index.d.ts +10 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +311 -0
- package/lib/components/booking/info2/service/editService/ResourcesV2/index.less +44 -0
- package/lib/components/booking/info2/service/editService/index.js +25 -28
- package/lib/components/booking/info2/utils.js +0 -15
- package/lib/components/booking/info2/utilsByBooking.js +7 -1
- package/lib/components/booking/locales.d.ts +12 -0
- package/lib/components/booking/locales.js +12 -0
- package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
- package/lib/components/booking/model.d.ts +1 -0
- package/lib/components/eftpos/deviceList/index.d.ts +0 -1
- package/lib/components/eftpos/form/index.d.ts +0 -1
- package/lib/components/eftpos/group/index.d.ts +0 -1
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
- package/lib/components/eftpos/icon/device.d.ts +0 -1
- package/lib/components/eftpos/receipt/index.d.ts +0 -1
- package/lib/components/eftpos/surcharge/index.d.ts +0 -1
- package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/lib/components/eftposPay/component/step/index.d.ts +0 -1
- package/lib/components/eftposPay/component/step/step.d.ts +0 -1
- package/lib/components/eftposPay/const.d.ts +4 -1
- package/lib/components/eftposPay/const.js +2 -0
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/hooks.js +11 -4
- package/lib/components/eftposPay/index.js +1 -1
- package/lib/components/eftposPay/linkly/const.d.ts +23 -0
- package/lib/components/eftposPay/linkly/const.js +102 -0
- package/lib/components/eftposPay/linkly/hooks/index.d.ts +2 -0
- package/lib/components/{pay/toB/types → eftposPay/linkly/hooks}/index.js +7 -5
- package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
- package/lib/components/eftposPay/linkly/hooks/normal.js +242 -0
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +222 -0
- package/lib/components/eftposPay/linkly/index.d.ts +2 -0
- package/lib/components/eftposPay/linkly/index.js +208 -0
- package/lib/components/eftposPay/linkly/service.d.ts +32 -0
- package/lib/components/eftposPay/linkly/service.js +55 -0
- package/lib/components/eftposPay/manufacturer.d.ts +1 -0
- package/lib/components/eftposPay/manufacturer.js +6 -0
- package/lib/components/eftposPay/pay.d.ts +1 -1
- package/lib/components/eftposPay/pay.js +13 -2
- package/lib/components/eftposPay/payo/config.js +22 -2
- package/lib/components/eftposPay/store/index.d.ts +2 -2
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +29 -8
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
- package/lib/components/{pay/toB/components → eventBooking/components/Provider/Cart/Deposit}/index.js +26 -22
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +8 -5
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
- package/lib/components/eventBooking/components/Provider/Event/index.js +10 -3
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/index.js +10 -4
- package/lib/components/eventBooking/index.js +11 -7
- package/lib/components/eventBooking/locales.d.ts +24 -0
- package/lib/components/eventBooking/locales.js +30 -6
- package/lib/components/index.d.ts +3 -1
- package/lib/components/index.js +6 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/lib/components/productSelect/components/pisellPriceText/index.js +2 -8
- package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/lib/components/schedules/products/index.d.ts +0 -1
- package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/lib/components/stepController/components/Content/index.d.ts +7 -0
- package/lib/components/{pay/toB/components/Content/Header.js → stepController/components/Content/index.js} +9 -9
- package/lib/components/stepController/components/Content/index.less +8 -0
- package/lib/components/stepController/components/Footer/index.d.ts +8 -0
- package/lib/components/{pay/toB/components/CardGroup → stepController/components/Footer}/index.js +17 -11
- package/lib/components/stepController/components/Footer/index.less +39 -0
- package/lib/components/stepController/components/Header/index.d.ts +20 -0
- package/lib/components/stepController/components/Header/index.js +104 -0
- package/lib/components/stepController/components/Header/index.less +21 -0
- package/lib/components/stepController/index.d.ts +5 -0
- package/lib/components/stepController/index.js +89 -0
- package/lib/components/stepController/index.less +11 -0
- package/lib/components/stepController/locales.d.ts +27 -0
- package/lib/components/stepController/locales.js +50 -0
- package/lib/components/stepController/types.d.ts +23 -0
- package/lib/components/{pay/toB/store/index.js → stepController/types.js} +3 -13
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +22 -11
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.js +147 -143
- package/lib/components/ticketBooking/index.js +5 -16
- package/lib/components/ticketBooking/serve.d.ts +0 -1
- package/lib/components/ticketBooking/serve.js +0 -11
- package/lib/components/ticketBooking/utils/index.js +2 -1
- package/lib/hooks/useWindowSize.d.ts +5 -0
- package/lib/hooks/useWindowSize.js +51 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.js +6 -3
- package/lowcode/edit-booking-modal/meta.ts +53 -0
- package/lowcode/step-controller/meta.ts +88 -0
- package/package.json +3 -3
- package/es/components/pay/toB/components/Cache/index.d.ts +0 -10
- package/es/components/pay/toB/components/Cache/index.js +0 -94
- package/es/components/pay/toB/components/Cache/index.less +0 -41
- package/es/components/pay/toB/components/Card/index.d.ts +0 -7
- package/es/components/pay/toB/components/Card/index.js +0 -32
- package/es/components/pay/toB/components/Card/index.less +0 -26
- package/es/components/pay/toB/components/CardGroup/index.d.ts +0 -7
- package/es/components/pay/toB/components/CardGroup/index.js +0 -22
- package/es/components/pay/toB/components/CardGroup/index.less +0 -18
- package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -6
- package/es/components/pay/toB/components/ConfirmedPayment/index.js +0 -67
- package/es/components/pay/toB/components/ConfirmedPayment/index.less +0 -69
- package/es/components/pay/toB/components/Content/Footer.d.ts +0 -7
- package/es/components/pay/toB/components/Content/Footer.js +0 -36
- package/es/components/pay/toB/components/Content/Header.d.ts +0 -4
- package/es/components/pay/toB/components/Content/Header.js +0 -12
- package/es/components/pay/toB/components/Content/index.d.ts +0 -4
- package/es/components/pay/toB/components/Content/index.js +0 -277
- package/es/components/pay/toB/components/Content/index.less +0 -9
- package/es/components/pay/toB/components/Content/utils.d.ts +0 -16
- package/es/components/pay/toB/components/Content/utils.js +0 -76
- package/es/components/pay/toB/components/index.d.ts +0 -5
- package/es/components/pay/toB/components/index.js +0 -5
- package/es/components/pay/toB/hooks.d.ts +0 -12
- package/es/components/pay/toB/hooks.js +0 -30
- package/es/components/pay/toB/index.d.ts +0 -3
- package/es/components/pay/toB/index.js +0 -24
- package/es/components/pay/toB/locales.d.ts +0 -54
- package/es/components/pay/toB/locales.js +0 -65
- package/es/components/pay/toB/store/context.d.ts +0 -3
- package/es/components/pay/toB/store/context.js +0 -2
- package/es/components/pay/toB/store/hooks.d.ts +0 -15
- package/es/components/pay/toB/store/index.d.ts +0 -3
- package/es/components/pay/toB/store/index.js +0 -3
- package/es/components/pay/toB/store/provider.d.ts +0 -4
- package/es/components/pay/toB/store/utils.d.ts +0 -13
- package/es/components/pay/toB/store/utils.js +0 -66
- package/es/components/pay/toB/types/index.d.ts +0 -1
- package/es/components/pay/toB/types/index.js +0 -1
- package/es/components/pay/toB/types/storeTypes.d.ts +0 -141
- package/es/components/pay/toB/types/storeTypes.js +0 -24
- package/lib/components/pay/toB/components/Cache/index.d.ts +0 -10
- package/lib/components/pay/toB/components/Cache/index.js +0 -108
- package/lib/components/pay/toB/components/Cache/index.less +0 -41
- package/lib/components/pay/toB/components/Card/index.d.ts +0 -7
- package/lib/components/pay/toB/components/Card/index.js +0 -66
- package/lib/components/pay/toB/components/Card/index.less +0 -26
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +0 -7
- package/lib/components/pay/toB/components/CardGroup/index.less +0 -18
- package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -6
- package/lib/components/pay/toB/components/ConfirmedPayment/index.js +0 -77
- package/lib/components/pay/toB/components/ConfirmedPayment/index.less +0 -69
- package/lib/components/pay/toB/components/Content/Footer.d.ts +0 -7
- package/lib/components/pay/toB/components/Content/Footer.js +0 -63
- package/lib/components/pay/toB/components/Content/Header.d.ts +0 -4
- package/lib/components/pay/toB/components/Content/index.d.ts +0 -4
- package/lib/components/pay/toB/components/Content/index.js +0 -209
- package/lib/components/pay/toB/components/Content/index.less +0 -9
- package/lib/components/pay/toB/components/Content/utils.d.ts +0 -16
- package/lib/components/pay/toB/components/Content/utils.js +0 -91
- package/lib/components/pay/toB/components/index.d.ts +0 -5
- package/lib/components/pay/toB/hooks.d.ts +0 -12
- package/lib/components/pay/toB/hooks.js +0 -60
- package/lib/components/pay/toB/index.d.ts +0 -3
- package/lib/components/pay/toB/index.js +0 -54
- package/lib/components/pay/toB/locales.d.ts +0 -54
- package/lib/components/pay/toB/locales.js +0 -77
- package/lib/components/pay/toB/store/context.d.ts +0 -3
- package/lib/components/pay/toB/store/hooks.d.ts +0 -15
- package/lib/components/pay/toB/store/hooks.js +0 -85
- package/lib/components/pay/toB/store/index.d.ts +0 -3
- package/lib/components/pay/toB/store/provider.d.ts +0 -4
- package/lib/components/pay/toB/store/provider.js +0 -70
- package/lib/components/pay/toB/store/utils.d.ts +0 -13
- package/lib/components/pay/toB/store/utils.js +0 -72
- package/lib/components/pay/toB/types/index.d.ts +0 -1
- package/lib/components/pay/toB/types/storeTypes.d.ts +0 -141
- package/lib/components/pay/toB/types/storeTypes.js +0 -36
- package/lowcode/tob-pay/meta.ts +0 -44
@@ -120,7 +120,8 @@ var restoreProductOtherData = (data) => {
|
|
120
120
|
quantity: bundleItem.num,
|
121
121
|
product_option_item_id: optionItem.option_group_item_id
|
122
122
|
};
|
123
|
-
})
|
123
|
+
}),
|
124
|
+
price: (bundleItem == null ? void 0 : bundleItem.bundle_sum_type) === "markdown" ? `-${Number(bundleItem.bundle_sum_price)}` : Number(bundleItem.bundle_sum_price)
|
124
125
|
};
|
125
126
|
}),
|
126
127
|
product_variant_id: 0,
|
@@ -0,0 +1,51 @@
|
|
1
|
+
var __defProp = Object.defineProperty;
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
|
+
var __export = (target, all) => {
|
6
|
+
for (var name in all)
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
8
|
+
};
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
11
|
+
for (let key of __getOwnPropNames(from))
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
14
|
+
}
|
15
|
+
return to;
|
16
|
+
};
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
18
|
+
|
19
|
+
// src/hooks/useWindowSize.ts
|
20
|
+
var useWindowSize_exports = {};
|
21
|
+
__export(useWindowSize_exports, {
|
22
|
+
useWindowSize: () => useWindowSize
|
23
|
+
});
|
24
|
+
module.exports = __toCommonJS(useWindowSize_exports);
|
25
|
+
var import_react = require("react");
|
26
|
+
var useWindowSize = (options = {}) => {
|
27
|
+
const {
|
28
|
+
debounceMs = 100
|
29
|
+
} = options;
|
30
|
+
(0, import_react.useEffect)(() => {
|
31
|
+
let timeoutId;
|
32
|
+
const setRealVH = () => {
|
33
|
+
const vh = window.innerHeight * 0.01;
|
34
|
+
document.documentElement.style.setProperty("--vh", `${vh}px`);
|
35
|
+
};
|
36
|
+
const debouncedHandleResize = () => {
|
37
|
+
clearTimeout(timeoutId);
|
38
|
+
timeoutId = setTimeout(setRealVH, debounceMs);
|
39
|
+
};
|
40
|
+
debouncedHandleResize();
|
41
|
+
window.addEventListener("resize", debouncedHandleResize);
|
42
|
+
return () => {
|
43
|
+
window.removeEventListener("resize", debouncedHandleResize);
|
44
|
+
clearTimeout(timeoutId);
|
45
|
+
};
|
46
|
+
}, [debounceMs]);
|
47
|
+
};
|
48
|
+
// Annotate the CommonJS export names for ESM import in node:
|
49
|
+
0 && (module.exports = {
|
50
|
+
useWindowSize
|
51
|
+
});
|
package/lib/index.d.ts
CHANGED
@@ -21,7 +21,6 @@ export { default as RuleSetting } from './components/ruleSetting';
|
|
21
21
|
export { default as TaxSelect } from './components/taxSelect';
|
22
22
|
export { default as EftposPay } from './components/eftposPay';
|
23
23
|
export { default as ToCPay } from './components/pay/toC';
|
24
|
-
export { default as ToBPay } from './components/pay/toB';
|
25
24
|
export { default as Eftpos } from './components/eftpos';
|
26
25
|
export { default as Wallet } from './components/wallet';
|
27
26
|
export { default as WalletList } from './components/walletList';
|
@@ -44,3 +43,5 @@ export { default as AppointmentBooking } from './components/appointmentBooking';
|
|
44
43
|
export { default as AppointmentDeposit } from './components/appointmentBooking/deposit';
|
45
44
|
export { default as TicketBooking } from './components/ticketBooking';
|
46
45
|
export { default as SubTotal } from './components/subTotal';
|
46
|
+
export { default as EditBookingModal } from './components/booking/editBookingModal';
|
47
|
+
export { default as StepController } from './components/stepController';
|
package/lib/index.js
CHANGED
@@ -43,6 +43,7 @@ __export(src_exports, {
|
|
43
43
|
BookingPayment: () => import_payments.default,
|
44
44
|
BookingResources: () => import_resources.default,
|
45
45
|
BookingStartTime: () => import_startTime.default,
|
46
|
+
EditBookingModal: () => import_editBookingModal.default,
|
46
47
|
Eftpos: () => import_eftpos.default,
|
47
48
|
EftposPay: () => import_eftposPay.default,
|
48
49
|
EventBooking: () => import_eventBooking.default,
|
@@ -63,10 +64,10 @@ __export(src_exports, {
|
|
63
64
|
RuleSetting: () => import_ruleSetting.default,
|
64
65
|
Schedules: () => import_schedules.default,
|
65
66
|
ShoppingCart: () => import_shoppingCart.default,
|
67
|
+
StepController: () => import_stepController.default,
|
66
68
|
SubTotal: () => import_subTotal.default,
|
67
69
|
TaxSelect: () => import_taxSelect.default,
|
68
70
|
TicketBooking: () => import_ticketBooking.default,
|
69
|
-
ToBPay: () => import_toB.default,
|
70
71
|
ToCPay: () => import_toC.default,
|
71
72
|
VerticalAddService: () => import_addServiceVariant.default,
|
72
73
|
VerticalClient: () => import_clientVariant.VerticalClient,
|
@@ -101,7 +102,6 @@ var import_ruleSetting = __toESM(require("./components/ruleSetting"));
|
|
101
102
|
var import_taxSelect = __toESM(require("./components/taxSelect"));
|
102
103
|
var import_eftposPay = __toESM(require("./components/eftposPay"));
|
103
104
|
var import_toC = __toESM(require("./components/pay/toC"));
|
104
|
-
var import_toB = __toESM(require("./components/pay/toB"));
|
105
105
|
var import_eftpos = __toESM(require("./components/eftpos"));
|
106
106
|
var import_wallet = __toESM(require("./components/wallet"));
|
107
107
|
var import_walletList = __toESM(require("./components/walletList"));
|
@@ -124,6 +124,8 @@ var import_appointmentBooking = __toESM(require("./components/appointmentBooking
|
|
124
124
|
var import_deposit2 = __toESM(require("./components/appointmentBooking/deposit"));
|
125
125
|
var import_ticketBooking = __toESM(require("./components/ticketBooking"));
|
126
126
|
var import_subTotal = __toESM(require("./components/subTotal"));
|
127
|
+
var import_editBookingModal = __toESM(require("./components/booking/editBookingModal"));
|
128
|
+
var import_stepController = __toESM(require("./components/stepController"));
|
127
129
|
import_dayjs.default.extend(import_weekday.default);
|
128
130
|
import_dayjs.default.extend(import_localeData.default);
|
129
131
|
// Annotate the CommonJS export names for ESM import in node:
|
@@ -142,6 +144,7 @@ import_dayjs.default.extend(import_localeData.default);
|
|
142
144
|
BookingPayment,
|
143
145
|
BookingResources,
|
144
146
|
BookingStartTime,
|
147
|
+
EditBookingModal,
|
145
148
|
Eftpos,
|
146
149
|
EftposPay,
|
147
150
|
EventBooking,
|
@@ -162,10 +165,10 @@ import_dayjs.default.extend(import_localeData.default);
|
|
162
165
|
RuleSetting,
|
163
166
|
Schedules,
|
164
167
|
ShoppingCart,
|
168
|
+
StepController,
|
165
169
|
SubTotal,
|
166
170
|
TaxSelect,
|
167
171
|
TicketBooking,
|
168
|
-
ToBPay,
|
169
172
|
ToCPay,
|
170
173
|
VerticalAddService,
|
171
174
|
VerticalClient,
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import {
|
2
|
+
IPublicTypeComponentMetadata,
|
3
|
+
IPublicTypeSnippet,
|
4
|
+
} from '@alilc/lowcode-types';
|
5
|
+
|
6
|
+
const EditBookingModalMeta: IPublicTypeComponentMetadata = {
|
7
|
+
componentName: 'EditBookingModal',
|
8
|
+
title: 'EditBookingModal',
|
9
|
+
docUrl: '',
|
10
|
+
screenshot: '',
|
11
|
+
devMode: 'proCode',
|
12
|
+
npm: {
|
13
|
+
package: '@pisell/private-materials',
|
14
|
+
version: '1.0.4',
|
15
|
+
exportName: 'EditBookingModal',
|
16
|
+
main: 'src/index.ts',
|
17
|
+
destructuring: true,
|
18
|
+
subName: '',
|
19
|
+
},
|
20
|
+
configure: {
|
21
|
+
props: [],
|
22
|
+
supports: {
|
23
|
+
events: [
|
24
|
+
{
|
25
|
+
name: 'onOk',
|
26
|
+
template:
|
27
|
+
"onOk(event,${extParams}){\n// 点击按钮时的回调\nconsole.log('onOk', event);}",
|
28
|
+
},
|
29
|
+
{
|
30
|
+
name: 'onCancel',
|
31
|
+
template:
|
32
|
+
"onCancel(event,${extParams}){\n// 点击按钮时的回调\nconsole.log('onCancel', event);}",
|
33
|
+
},
|
34
|
+
],
|
35
|
+
},
|
36
|
+
component: {},
|
37
|
+
},
|
38
|
+
};
|
39
|
+
const snippets: IPublicTypeSnippet[] = [
|
40
|
+
{
|
41
|
+
title: 'EditBookingModal',
|
42
|
+
screenshot: '',
|
43
|
+
schema: {
|
44
|
+
componentName: 'EditBookingModal',
|
45
|
+
props: {},
|
46
|
+
},
|
47
|
+
},
|
48
|
+
];
|
49
|
+
|
50
|
+
export default {
|
51
|
+
...EditBookingModalMeta,
|
52
|
+
snippets,
|
53
|
+
};
|
@@ -0,0 +1,88 @@
|
|
1
|
+
|
2
|
+
import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
|
3
|
+
|
4
|
+
const StepControllerMeta: ComponentMetadata = {
|
5
|
+
"componentName": "StepController",
|
6
|
+
"title": "StepController",
|
7
|
+
"docUrl": "",
|
8
|
+
"screenshot": "",
|
9
|
+
"devMode": "proCode",
|
10
|
+
"npm": {
|
11
|
+
"package": "@pisell/private-materials",
|
12
|
+
"version": "1.0.4",
|
13
|
+
"exportName": "StepController",
|
14
|
+
"main": "src/index.ts",
|
15
|
+
"destructuring": true,
|
16
|
+
"subName": ""
|
17
|
+
},
|
18
|
+
"configure": {
|
19
|
+
props: [
|
20
|
+
{
|
21
|
+
name: 'steps',
|
22
|
+
title: { label: '步骤列表', tip: 'steps | 步骤列表' },
|
23
|
+
setter: 'JsonSetter',
|
24
|
+
defaultValue: [],
|
25
|
+
},
|
26
|
+
{
|
27
|
+
name: 'currentStep',
|
28
|
+
title: { label: '当前步骤', tip: 'currentStep | 当前步骤' },
|
29
|
+
setter: 'StringSetter',
|
30
|
+
},
|
31
|
+
{
|
32
|
+
name: 'children',
|
33
|
+
title: { label: '内容', tip: 'leftChildren | 内容' },
|
34
|
+
setter: 'SlotSetter',
|
35
|
+
},
|
36
|
+
{
|
37
|
+
name: 'confirmCloseProps',
|
38
|
+
title: { label: '关闭流程确认弹窗内容', tip: 'confirmCloseProps | 关闭流程确认弹窗内容' },
|
39
|
+
setter: 'JsonSetter',
|
40
|
+
},
|
41
|
+
{
|
42
|
+
name: 'showFooter',
|
43
|
+
title: { label: '是否显示底部', tip: 'showFooter | 是否显示底部' },
|
44
|
+
setter: 'BoolSetter',
|
45
|
+
},
|
46
|
+
{
|
47
|
+
name: 'footerContent',
|
48
|
+
title: { label: '底部内容', tip: 'footerContent | 底部内容' },
|
49
|
+
setter: 'SlotSetter',
|
50
|
+
condition(target) {
|
51
|
+
return !!target.getProps().getPropValue("showFooter");
|
52
|
+
},
|
53
|
+
},
|
54
|
+
],
|
55
|
+
"supports": {
|
56
|
+
style: true,
|
57
|
+
events: [
|
58
|
+
{
|
59
|
+
name: "onBack",
|
60
|
+
template:
|
61
|
+
"onBack(key){\n//console.log('返回上一步',key);}",
|
62
|
+
},
|
63
|
+
{
|
64
|
+
name: "onClose",
|
65
|
+
template:
|
66
|
+
"onClose(){\n//console.log('关闭流程');}",
|
67
|
+
},
|
68
|
+
],
|
69
|
+
},
|
70
|
+
"component": {}
|
71
|
+
}
|
72
|
+
};
|
73
|
+
const snippets: Snippet[] = [
|
74
|
+
{
|
75
|
+
"title": "StepController",
|
76
|
+
"screenshot": "",
|
77
|
+
"schema": {
|
78
|
+
"componentName": "StepController",
|
79
|
+
"props": {
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
];
|
84
|
+
|
85
|
+
export default {
|
86
|
+
...StepControllerMeta,
|
87
|
+
snippets
|
88
|
+
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@pisell/private-materials",
|
3
|
-
"version": "6.
|
3
|
+
"version": "6.2.2",
|
4
4
|
"main": "./lib/index.js",
|
5
5
|
"module": "./es/index.js",
|
6
6
|
"types": "./lib/index.d.ts",
|
@@ -60,9 +60,9 @@
|
|
60
60
|
"rc-virtual-list": "^3.11.3",
|
61
61
|
"decimal.js": "^10.4.3",
|
62
62
|
"@pisell/utils": "3.0.0",
|
63
|
+
"@pisell/materials": "3.3.36",
|
63
64
|
"@pisell/icon": "0.0.11",
|
64
|
-
"@pisell/
|
65
|
-
"@pisell/date-picker": "3.0.2"
|
65
|
+
"@pisell/date-picker": "3.0.4"
|
66
66
|
},
|
67
67
|
"peerDependencies": {
|
68
68
|
"react": "^18.0.0",
|
@@ -1,94 +0,0 @@
|
|
1
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
2
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
3
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
4
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
5
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
6
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
7
|
-
import React, { useState, useEffect } from 'react';
|
8
|
-
import { locales } from '@pisell/utils';
|
9
|
-
import { InputNumber } from 'antd';
|
10
|
-
import { PisellModal } from '@pisell/materials';
|
11
|
-
import { limitDecimals } from "../../store/utils";
|
12
|
-
import { useOSPayment } from "../../store";
|
13
|
-
import { useSymbol } from "../../hooks";
|
14
|
-
import "./index.less";
|
15
|
-
var ToBPayCache = function ToBPayCache(props) {
|
16
|
-
var open = props.open,
|
17
|
-
title = props.title,
|
18
|
-
uuid = props.uuid,
|
19
|
-
_props$expect_amount = props.expect_amount,
|
20
|
-
expect_amount = _props$expect_amount === void 0 ? '' : _props$expect_amount,
|
21
|
-
onCancel = props.onCancel,
|
22
|
-
_onOk = props.onOk;
|
23
|
-
var osPayment = useOSPayment();
|
24
|
-
var symbol = useSymbol();
|
25
|
-
var _useState = useState(expect_amount),
|
26
|
-
_useState2 = _slicedToArray(_useState, 2),
|
27
|
-
inputAmount = _useState2[0],
|
28
|
-
setInputAmount = _useState2[1];
|
29
|
-
var _useState3 = useState(''),
|
30
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
31
|
-
payDesc = _useState4[0],
|
32
|
-
setPayDesc = _useState4[1];
|
33
|
-
useEffect(function () {
|
34
|
-
setInputAmount(expect_amount);
|
35
|
-
}, [expect_amount]);
|
36
|
-
useEffect(function () {
|
37
|
-
osPayment.getRemainingOrderAmountWithInputAsync(inputAmount, uuid).then(function (res) {
|
38
|
-
// 全额支付
|
39
|
-
if (Number(res) === 0) {
|
40
|
-
setPayDesc(locales.getText('tobPay.text.cash.modal.no.change.given'));
|
41
|
-
}
|
42
|
-
// 找零
|
43
|
-
if (Number(res) < 0) {
|
44
|
-
setPayDesc(locales.getText('tobPay.text.cash.modal.amount.pay.change')("".concat(symbol).concat(Math.abs(Number(res)))));
|
45
|
-
}
|
46
|
-
// 还需支付
|
47
|
-
if (Number(res) > 0) {
|
48
|
-
setPayDesc(locales.getText('tobPay.text.cash.modal.amount.left.pay.paid')("".concat(symbol).concat(res)));
|
49
|
-
}
|
50
|
-
});
|
51
|
-
}, [inputAmount]);
|
52
|
-
return /*#__PURE__*/React.createElement(PisellModal, {
|
53
|
-
title: title,
|
54
|
-
open: open,
|
55
|
-
onCancel: onCancel,
|
56
|
-
okButtonProps: {
|
57
|
-
disabled: Number(inputAmount) <= 0
|
58
|
-
},
|
59
|
-
okText: locales.getText('tobPay.text.cash.modal.ok'),
|
60
|
-
onOk: function onOk() {
|
61
|
-
_onOk(inputAmount);
|
62
|
-
},
|
63
|
-
destroyOnClose: true
|
64
|
-
}, /*#__PURE__*/React.createElement("div", {
|
65
|
-
className: "tob-pay-cache"
|
66
|
-
}, /*#__PURE__*/React.createElement("div", {
|
67
|
-
className: "tob-pay-cache-money"
|
68
|
-
}, /*#__PURE__*/React.createElement("div", {
|
69
|
-
className: "tob-pay-cache-text"
|
70
|
-
}, locales.getText('tobPay.text.cash.modal.amount.toPay')), /*#__PURE__*/React.createElement("div", {
|
71
|
-
className: "tob-pay-cache-num"
|
72
|
-
}, symbol, Number(expect_amount).toFixed(2))), /*#__PURE__*/React.createElement("div", {
|
73
|
-
className: "tob-pay-cache-title"
|
74
|
-
}, locales.getText('tobPay.text.cash.modal.input.title')), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(InputNumber, {
|
75
|
-
precision: 2,
|
76
|
-
value: inputAmount,
|
77
|
-
min: 0,
|
78
|
-
formatter: limitDecimals,
|
79
|
-
parser: limitDecimals,
|
80
|
-
onChange: function onChange(event) {
|
81
|
-
if (event !== null && event !== undefined) {
|
82
|
-
setInputAmount(event);
|
83
|
-
} else {
|
84
|
-
setInputAmount('0');
|
85
|
-
}
|
86
|
-
},
|
87
|
-
style: {
|
88
|
-
width: '100%'
|
89
|
-
}
|
90
|
-
})), /*#__PURE__*/React.createElement("div", {
|
91
|
-
className: "tob-pay-cache-desc"
|
92
|
-
}, payDesc)));
|
93
|
-
};
|
94
|
-
export default ToBPayCache;
|
@@ -1,41 +0,0 @@
|
|
1
|
-
.tob-pay-cache {
|
2
|
-
padding: 24px 0;
|
3
|
-
|
4
|
-
.tob-pay-cache-money {
|
5
|
-
display: flex;
|
6
|
-
align-items: center;
|
7
|
-
justify-content: space-between;
|
8
|
-
|
9
|
-
.tob-pay-cache-text {
|
10
|
-
height: 22px;
|
11
|
-
font-size: 16px;
|
12
|
-
font-weight: 650;
|
13
|
-
line-height: 22px;
|
14
|
-
color: #1a1a1a;
|
15
|
-
}
|
16
|
-
|
17
|
-
.tob-pay-cache-num {
|
18
|
-
height: 22px;
|
19
|
-
font-size: 16px;
|
20
|
-
|
21
|
-
font-weight: 600;
|
22
|
-
line-height: 22px;
|
23
|
-
color: #1a1a1a;
|
24
|
-
}
|
25
|
-
}
|
26
|
-
|
27
|
-
.tob-pay-cache-title {
|
28
|
-
margin: 24px 0 8px 0;
|
29
|
-
font-size: 16px;
|
30
|
-
font-weight: 600;
|
31
|
-
line-height: 22px;
|
32
|
-
color: #1a1a1a;
|
33
|
-
}
|
34
|
-
|
35
|
-
.tob-pay-cache-desc {
|
36
|
-
margin-top: 8px;
|
37
|
-
font-size: 14px;
|
38
|
-
font-weight: 400;
|
39
|
-
color: #8c8c8c;
|
40
|
-
}
|
41
|
-
}
|
@@ -1,32 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { locales } from '@pisell/utils';
|
3
|
-
import { Button, Iconfont } from '@pisell/materials';
|
4
|
-
import "./index.less";
|
5
|
-
var ToBPayCard = function ToBPayCard(_ref) {
|
6
|
-
var data = _ref.data,
|
7
|
-
onChange = _ref.onChange;
|
8
|
-
var name = data.name,
|
9
|
-
type = data.type;
|
10
|
-
return /*#__PURE__*/React.createElement("div", {
|
11
|
-
className: "tob-pay-card",
|
12
|
-
onClick: function onClick() {
|
13
|
-
return onChange(data, 'pay');
|
14
|
-
}
|
15
|
-
}, /*#__PURE__*/React.createElement(Iconfont, {
|
16
|
-
type: "icona-zu6491",
|
17
|
-
style: {
|
18
|
-
color: 'var(--theme-color)',
|
19
|
-
fontSize: '30px',
|
20
|
-
marginBottom: '10px'
|
21
|
-
}
|
22
|
-
}), /*#__PURE__*/React.createElement("div", {
|
23
|
-
className: "tob-pay-card-name"
|
24
|
-
}, name || ''), type === 'eftpos' ? /*#__PURE__*/React.createElement(Button, {
|
25
|
-
type: "link",
|
26
|
-
onClick: function onClick(e) {
|
27
|
-
e.stopPropagation();
|
28
|
-
onChange(data, 'fullPay');
|
29
|
-
}
|
30
|
-
}, locales.getText('tobPay.text.card.edit.amount')) : null);
|
31
|
-
};
|
32
|
-
export default ToBPayCard;
|
@@ -1,26 +0,0 @@
|
|
1
|
-
.tob-pay-card {
|
2
|
-
position: relative;
|
3
|
-
display: flex;
|
4
|
-
flex-direction: column;
|
5
|
-
justify-content: center;
|
6
|
-
align-items: center;
|
7
|
-
min-height: 120px;
|
8
|
-
padding: 16px;
|
9
|
-
background: #fff;
|
10
|
-
box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.16);
|
11
|
-
border-radius: 4px;
|
12
|
-
cursor: pointer;
|
13
|
-
transition: all 0.2s ease;
|
14
|
-
|
15
|
-
&:hover {
|
16
|
-
box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
|
17
|
-
transform: translateY(-2px);
|
18
|
-
}
|
19
|
-
|
20
|
-
&-name {
|
21
|
-
font-size: 16px;
|
22
|
-
font-weight: 500;
|
23
|
-
color: #1a1a1a;
|
24
|
-
text-align: center;
|
25
|
-
}
|
26
|
-
}
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import ToBPayCard from "../Card";
|
3
|
-
import "./index.less";
|
4
|
-
var ToBPayCardGroup = function ToBPayCardGroup(props) {
|
5
|
-
var _data$list;
|
6
|
-
var data = props.data,
|
7
|
-
onChange = props.onChange;
|
8
|
-
return /*#__PURE__*/React.createElement("div", {
|
9
|
-
className: "tob-pay-card-group"
|
10
|
-
}, /*#__PURE__*/React.createElement("div", {
|
11
|
-
className: "tob-pay-card-group-title"
|
12
|
-
}, data.title), /*#__PURE__*/React.createElement("div", {
|
13
|
-
className: "tob-pay-card-group-list"
|
14
|
-
}, data === null || data === void 0 || (_data$list = data.list) === null || _data$list === void 0 ? void 0 : _data$list.map(function (item) {
|
15
|
-
return /*#__PURE__*/React.createElement(ToBPayCard, {
|
16
|
-
key: item.id,
|
17
|
-
data: item,
|
18
|
-
onChange: onChange
|
19
|
-
});
|
20
|
-
})));
|
21
|
-
};
|
22
|
-
export default ToBPayCardGroup;
|
@@ -1,18 +0,0 @@
|
|
1
|
-
.tob-pay-card-group {
|
2
|
-
margin-bottom: 32px;
|
3
|
-
|
4
|
-
&-title {
|
5
|
-
margin-bottom: 20px;
|
6
|
-
font-size: 18px;
|
7
|
-
font-weight: 500;
|
8
|
-
color: #1a1a1a;
|
9
|
-
}
|
10
|
-
|
11
|
-
&-list {
|
12
|
-
display: grid;
|
13
|
-
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
|
14
|
-
grid-template-columns: repeat(3, 1fr);
|
15
|
-
gap: 20px;
|
16
|
-
max-width: 100%;
|
17
|
-
}
|
18
|
-
}
|
@@ -1,67 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { Iconfont } from '@pisell/materials';
|
3
|
-
import { locales } from '@pisell/utils';
|
4
|
-
import Decimal from 'decimal.js';
|
5
|
-
import { useSymbol } from "../../hooks";
|
6
|
-
import "./index.less";
|
7
|
-
var ConfirmedPayment = function ConfirmedPayment(props) {
|
8
|
-
var data = props.data;
|
9
|
-
var symbol = useSymbol();
|
10
|
-
var getTotalAmount = function getTotalAmount(item) {
|
11
|
-
var amount = new Decimal((item === null || item === void 0 ? void 0 : item.amount) || 0);
|
12
|
-
var surcharge = getSurcharge(item);
|
13
|
-
return amount.add(surcharge).toFixed(2).toString();
|
14
|
-
};
|
15
|
-
var getSurcharge = function getSurcharge(item) {
|
16
|
-
var _item$service_charge, _item$service_charge2;
|
17
|
-
var amount = new Decimal((item === null || item === void 0 ? void 0 : item.amount) || 0);
|
18
|
-
var surcharge = new Decimal(0);
|
19
|
-
if (item !== null && item !== void 0 && (_item$service_charge = item.service_charge) !== null && _item$service_charge !== void 0 && _item$service_charge.percentage) {
|
20
|
-
// amount * percentage
|
21
|
-
surcharge = amount.mul(item.service_charge.percentage);
|
22
|
-
}
|
23
|
-
if (item !== null && item !== void 0 && (_item$service_charge2 = item.service_charge) !== null && _item$service_charge2 !== void 0 && _item$service_charge2.amount) {
|
24
|
-
// surcharge + service_charge.amount
|
25
|
-
surcharge = surcharge.add(item.service_charge.amount);
|
26
|
-
}
|
27
|
-
return surcharge.toFixed(2).toString();
|
28
|
-
};
|
29
|
-
return /*#__PURE__*/React.createElement("div", {
|
30
|
-
className: "tob-pay-confirmed-payment"
|
31
|
-
}, /*#__PURE__*/React.createElement("div", {
|
32
|
-
className: "tob-pay-confirmed-payment-title"
|
33
|
-
}, locales.getText('tobPay.text.confirmed.payment')), /*#__PURE__*/React.createElement("div", {
|
34
|
-
className: "tob-pay-confirmed-payment-list"
|
35
|
-
}, data.map(function (item) {
|
36
|
-
var totalAmount = getTotalAmount(item);
|
37
|
-
var surcharge = getSurcharge(item);
|
38
|
-
return /*#__PURE__*/React.createElement("div", {
|
39
|
-
key: item.uuid,
|
40
|
-
className: "tob-pay-confirmed-payment-item"
|
41
|
-
}, /*#__PURE__*/React.createElement("div", {
|
42
|
-
className: "tob-pay-confirmed-payment-item-left"
|
43
|
-
}, /*#__PURE__*/React.createElement(Iconfont, {
|
44
|
-
type: "icona-zu6491",
|
45
|
-
style: {
|
46
|
-
marginTop: '-2px',
|
47
|
-
fontSize: '24px',
|
48
|
-
color: 'var(--theme-color)'
|
49
|
-
}
|
50
|
-
}), /*#__PURE__*/React.createElement("div", {
|
51
|
-
className: "tob-pay-confirmed-payment-item-left-content"
|
52
|
-
}, /*#__PURE__*/React.createElement("span", {
|
53
|
-
className: "tob-pay-confirmed-payment-item-name"
|
54
|
-
}, item.name), item.created_at && /*#__PURE__*/React.createElement("span", {
|
55
|
-
className: "tob-pay-confirmed-payment-item-time"
|
56
|
-
}, item.created_at))), /*#__PURE__*/React.createElement("div", {
|
57
|
-
className: "tob-pay-confirmed-payment-item-right"
|
58
|
-
}, /*#__PURE__*/React.createElement("div", {
|
59
|
-
className: "tob-pay-confirmed-payment-item-right-info"
|
60
|
-
}, /*#__PURE__*/React.createElement("span", {
|
61
|
-
className: "tob-pay-confirmed-payment-item-amount"
|
62
|
-
}, symbol, totalAmount), Number(surcharge) > 0 && /*#__PURE__*/React.createElement("span", {
|
63
|
-
className: "tob-pay-confirmed-payment-item-surcharge"
|
64
|
-
}, locales.getText('tobPay.text.payment.with.surcharge'), ":", ' ', symbol, surcharge))));
|
65
|
-
})));
|
66
|
-
};
|
67
|
-
export default ConfirmedPayment;
|