@pisell/private-materials 3.3.90 → 3.3.91
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 +13 -13
- 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 +4 -37
- package/es/businessModel/SalesModel/index.d.ts +0 -1
- package/es/components/Sales/Cart/index.js +1 -5
- package/es/components/Sales/Cart/utils.d.ts +0 -40
- package/es/components/Sales/Cart/utils.js +0 -167
- package/es/components/Sales/Checkout/index.d.ts +0 -4
- package/es/components/Sales/Checkout/index.js +8 -52
- package/es/components/Sales/Checkout/serve.d.ts +0 -13
- package/es/components/Sales/Checkout/serve.js +2 -16
- package/es/components/Sales/Checkout/utils.js +1 -7
- package/es/components/Sales/Resource/index.js +2 -2
- package/es/components/Sales/Resource/serve.d.ts +0 -7
- package/es/components/Sales/Resource/serve.js +0 -10
- package/es/components/Sales/Summary/index.d.ts +0 -10
- package/es/components/Sales/Summary/index.js +2 -17
- package/es/components/Sales/Summary/serve.d.ts +0 -1
- package/es/components/Sales/Summary/serve.js +0 -6
- package/es/components/Sales/Summary/utils.d.ts +1 -16
- package/es/components/Sales/Summary/utils.js +1 -43
- package/es/components/appointmentBooking/components/Cart/Item/index.less +3 -3
- package/es/components/appointmentBooking/components/Content/index.less +1 -1
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -6
- package/es/components/appointmentBooking/components/Deposit/index.js +7 -27
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Services/index.js +27 -23
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +20 -25
- package/es/components/appointmentBooking/deposit/index.js +2 -4
- package/es/components/appointmentBooking/index.js +0 -14
- package/es/components/appointmentBooking/index.less +1 -1
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/components/footer/utils.d.ts +0 -1
- package/es/components/booking/components/footer/utils.js +1 -1
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/es/components/booking/components/voucher/index.js +2 -2
- package/es/components/booking/forms/table/index.d.ts +0 -1
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/index.d.ts +0 -1
- package/es/components/booking/info/service/like/index.d.ts +0 -1
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info/service2/utils.js +2 -3
- package/es/components/booking/info2/service/addService/utils.d.ts +0 -10
- package/es/components/booking/info2/service/addService/utils.js +14 -48
- package/es/components/booking/info2/service/editService/Resources/index.js +8 -22
- package/es/components/booking/info2/service/editService/Resources/index.less +0 -6
- package/es/components/booking/info2/utilsByBooking.js +0 -9
- package/es/components/booking/locales.d.ts +0 -3
- package/es/components/booking/locales.js +0 -3
- package/es/components/booking/materiels/holder/index.d.ts +0 -1
- 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/amount.d.ts +1 -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 +1 -4
- package/es/components/eftposPay/const.js +1 -3
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/hooks.js +1 -3
- package/es/components/eftposPay/index.js +1 -1
- package/es/components/eftposPay/manufacturer.d.ts +0 -1
- package/es/components/eftposPay/manufacturer.js +0 -4
- package/es/components/eftposPay/pay.d.ts +1 -1
- package/es/components/eftposPay/pay.js +2 -6
- package/es/components/eftposPay/store/index.d.ts +4 -4
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +17 -29
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +6 -10
- package/es/components/eventBooking/components/Provider/Cart/Item/index.js +2 -4
- package/es/components/eventBooking/components/Provider/Event/index.js +4 -13
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/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 +4 -22
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/es/components/eventBooking/index.js +7 -21
- package/es/components/eventBooking/locales.d.ts +0 -24
- package/es/components/eventBooking/locales.js +6 -30
- package/es/components/index.d.ts +1 -3
- package/es/components/index.js +1 -3
- 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/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/index.js +4 -5
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/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/productExtension/fields/Forms/index.d.ts +0 -1
- 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/schedules/utils.d.ts +1 -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/ticketBooking/components/addServiceVariant/addService.js +1 -1
- 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 +0 -1
- package/es/components/ticketBooking/components/ticketBooking/index.js +138 -257
- package/es/components/ticketBooking/locales.d.ts +146 -164
- package/es/components/ticketBooking/locales.js +147 -195
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/index.d.ts +0 -2
- package/es/index.js +1 -3
- package/es/utils/index.d.ts +1 -1
- package/lib/businessModel/SalesModel/Sales/index.js +8 -22
- package/lib/businessModel/SalesModel/index.d.ts +0 -1
- package/lib/components/Sales/Cart/index.js +0 -1
- package/lib/components/Sales/Cart/utils.d.ts +0 -40
- package/lib/components/Sales/Cart/utils.js +0 -117
- package/lib/components/Sales/Checkout/index.d.ts +0 -4
- package/lib/components/Sales/Checkout/index.js +7 -39
- package/lib/components/Sales/Checkout/serve.d.ts +0 -13
- package/lib/components/Sales/Checkout/serve.js +2 -7
- package/lib/components/Sales/Checkout/utils.js +0 -2
- package/lib/components/Sales/Resource/index.js +1 -1
- package/lib/components/Sales/Resource/serve.d.ts +0 -7
- package/lib/components/Sales/Resource/serve.js +2 -9
- package/lib/components/Sales/Summary/index.d.ts +0 -10
- package/lib/components/Sales/Summary/index.js +1 -7
- package/lib/components/Sales/Summary/serve.d.ts +0 -1
- package/lib/components/Sales/Summary/serve.js +0 -32
- package/lib/components/Sales/Summary/utils.d.ts +1 -16
- package/lib/components/Sales/Summary/utils.js +1 -30
- package/lib/components/appointmentBooking/components/Cart/Item/index.less +3 -3
- package/lib/components/appointmentBooking/components/Content/index.less +1 -1
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -6
- package/lib/components/appointmentBooking/components/Deposit/index.js +4 -36
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Services/index.js +11 -6
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +4 -8
- package/lib/components/appointmentBooking/deposit/index.js +2 -4
- package/lib/components/appointmentBooking/index.js +0 -11
- package/lib/components/appointmentBooking/index.less +1 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/components/footer/utils.d.ts +0 -1
- package/lib/components/booking/components/footer/utils.js +0 -2
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/lib/components/booking/components/voucher/index.js +2 -2
- package/lib/components/booking/forms/table/index.d.ts +0 -1
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/index.d.ts +0 -1
- package/lib/components/booking/info/service/like/index.d.ts +0 -1
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info/service2/utils.js +2 -2
- package/lib/components/booking/info2/service/addService/utils.d.ts +0 -10
- package/lib/components/booking/info2/service/addService/utils.js +5 -32
- package/lib/components/booking/info2/service/editService/Resources/index.js +10 -54
- package/lib/components/booking/info2/service/editService/Resources/index.less +0 -6
- package/lib/components/booking/info2/utilsByBooking.js +0 -6
- package/lib/components/booking/locales.d.ts +0 -3
- package/lib/components/booking/locales.js +0 -3
- package/lib/components/booking/materiels/holder/index.d.ts +0 -1
- 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/amount.d.ts +1 -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 +1 -4
- package/lib/components/eftposPay/const.js +0 -2
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/hooks.js +4 -11
- package/lib/components/eftposPay/index.js +1 -1
- package/lib/components/eftposPay/manufacturer.d.ts +0 -1
- package/lib/components/eftposPay/manufacturer.js +0 -6
- package/lib/components/eftposPay/pay.d.ts +1 -1
- package/lib/components/eftposPay/pay.js +2 -13
- package/lib/components/eftposPay/store/index.d.ts +4 -4
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +3 -16
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +5 -8
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +2 -4
- package/lib/components/eventBooking/components/Provider/Event/index.js +3 -10
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/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 +4 -10
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/lib/components/eventBooking/index.js +7 -11
- package/lib/components/eventBooking/locales.d.ts +0 -24
- package/lib/components/eventBooking/locales.js +6 -30
- package/lib/components/index.d.ts +1 -3
- package/lib/components/index.js +0 -6
- 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/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/index.js +9 -10
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/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/productExtension/fields/Forms/index.d.ts +0 -1
- 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/schedules/utils.d.ts +1 -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/ticketBooking/components/addServiceVariant/addService.js +1 -1
- 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 +0 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.js +139 -263
- package/lib/components/ticketBooking/locales.d.ts +146 -164
- package/lib/components/ticketBooking/locales.js +4 -22
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -6
- package/lib/utils/index.d.ts +1 -1
- package/package.json +4 -4
- package/es/components/booking/editBookingModal/index.d.ts +0 -5
- package/es/components/booking/editBookingModal/index.js +0 -386
- package/es/components/booking/editBookingModal/index.less +0 -8
- package/es/components/booking/editBookingModal/locales.d.ts +0 -21
- package/es/components/booking/editBookingModal/locales.js +0 -20
- package/es/components/booking/editBookingModal/mock.d.ts +0 -807
- package/es/components/booking/editBookingModal/mock.js +0 -2993
- package/es/components/booking/editBookingModal/serve.d.ts +0 -51
- package/es/components/booking/editBookingModal/serve.js +0 -288
- package/es/components/booking/editBookingModal/type.d.ts +0 -12
- package/es/components/booking/editBookingModal/type.js +0 -1
- package/es/components/booking/editBookingModal/utils.d.ts +0 -12
- package/es/components/booking/editBookingModal/utils.js +0 -157
- package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +0 -7
- package/es/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +0 -26
- package/es/components/booking/info2/service/editService/ResourcesV2/index.d.ts +0 -10
- package/es/components/booking/info2/service/editService/ResourcesV2/index.js +0 -308
- package/es/components/booking/info2/service/editService/ResourcesV2/index.less +0 -44
- package/es/components/eftposPay/linkly/const.d.ts +0 -23
- package/es/components/eftposPay/linkly/const.js +0 -82
- package/es/components/eftposPay/linkly/hooks/index.d.ts +0 -2
- package/es/components/eftposPay/linkly/hooks/index.js +0 -2
- package/es/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
- package/es/components/eftposPay/linkly/hooks/normal.js +0 -318
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +0 -273
- package/es/components/eftposPay/linkly/index.d.ts +0 -2
- package/es/components/eftposPay/linkly/index.js +0 -197
- package/es/components/eftposPay/linkly/service.d.ts +0 -32
- package/es/components/eftposPay/linkly/service.js +0 -73
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +0 -17
- package/es/components/stepController/components/Content/index.d.ts +0 -7
- package/es/components/stepController/components/Content/index.js +0 -9
- package/es/components/stepController/components/Content/index.less +0 -8
- package/es/components/stepController/components/Footer/index.d.ts +0 -8
- package/es/components/stepController/components/Footer/index.js +0 -15
- package/es/components/stepController/components/Footer/index.less +0 -39
- package/es/components/stepController/components/Header/index.d.ts +0 -20
- package/es/components/stepController/components/Header/index.js +0 -97
- package/es/components/stepController/components/Header/index.less +0 -21
- package/es/components/stepController/index.d.ts +0 -5
- package/es/components/stepController/index.js +0 -64
- package/es/components/stepController/index.less +0 -11
- package/es/components/stepController/locales.d.ts +0 -27
- package/es/components/stepController/locales.js +0 -32
- package/es/components/stepController/types.d.ts +0 -23
- package/es/components/stepController/types.js +0 -1
- package/es/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
- package/es/components/ticketBooking/utils/formatProductMessage.js +0 -62
- package/es/components/ticketBooking/utils/formatTime.d.ts +0 -31
- package/es/components/ticketBooking/utils/formatTime.js +0 -144
- package/es/hooks/useWindowSize.d.ts +0 -5
- package/es/hooks/useWindowSize.js +0 -26
- package/lib/components/booking/editBookingModal/index.d.ts +0 -5
- package/lib/components/booking/editBookingModal/index.js +0 -363
- package/lib/components/booking/editBookingModal/index.less +0 -8
- package/lib/components/booking/editBookingModal/locales.d.ts +0 -21
- package/lib/components/booking/editBookingModal/locales.js +0 -44
- package/lib/components/booking/editBookingModal/mock.d.ts +0 -807
- package/lib/components/booking/editBookingModal/mock.js +0 -3314
- package/lib/components/booking/editBookingModal/serve.d.ts +0 -51
- package/lib/components/booking/editBookingModal/serve.js +0 -178
- package/lib/components/booking/editBookingModal/type.d.ts +0 -12
- package/lib/components/booking/editBookingModal/type.js +0 -17
- package/lib/components/booking/editBookingModal/utils.d.ts +0 -12
- package/lib/components/booking/editBookingModal/utils.js +0 -158
- package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.d.ts +0 -7
- package/lib/components/booking/info2/service/editService/ResourcesV2/MaxLengthSelect/index.js +0 -53
- package/lib/components/booking/info2/service/editService/ResourcesV2/index.d.ts +0 -10
- package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +0 -311
- package/lib/components/booking/info2/service/editService/ResourcesV2/index.less +0 -44
- package/lib/components/eftposPay/linkly/const.d.ts +0 -23
- package/lib/components/eftposPay/linkly/const.js +0 -102
- package/lib/components/eftposPay/linkly/hooks/index.d.ts +0 -2
- package/lib/components/eftposPay/linkly/hooks/index.js +0 -25
- package/lib/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
- package/lib/components/eftposPay/linkly/hooks/normal.js +0 -239
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +0 -222
- package/lib/components/eftposPay/linkly/index.d.ts +0 -2
- package/lib/components/eftposPay/linkly/index.js +0 -208
- package/lib/components/eftposPay/linkly/service.d.ts +0 -32
- package/lib/components/eftposPay/linkly/service.js +0 -55
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.js +0 -55
- package/lib/components/stepController/components/Content/index.d.ts +0 -7
- package/lib/components/stepController/components/Content/index.js +0 -40
- package/lib/components/stepController/components/Content/index.less +0 -8
- package/lib/components/stepController/components/Footer/index.d.ts +0 -8
- package/lib/components/stepController/components/Footer/index.js +0 -49
- package/lib/components/stepController/components/Footer/index.less +0 -39
- package/lib/components/stepController/components/Header/index.d.ts +0 -20
- package/lib/components/stepController/components/Header/index.js +0 -104
- package/lib/components/stepController/components/Header/index.less +0 -21
- package/lib/components/stepController/index.d.ts +0 -5
- package/lib/components/stepController/index.js +0 -89
- package/lib/components/stepController/index.less +0 -11
- package/lib/components/stepController/locales.d.ts +0 -27
- package/lib/components/stepController/locales.js +0 -50
- package/lib/components/stepController/types.d.ts +0 -23
- package/lib/components/stepController/types.js +0 -17
- package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
- package/lib/components/ticketBooking/utils/formatProductMessage.js +0 -84
- package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -31
- package/lib/components/ticketBooking/utils/formatTime.js +0 -139
- package/lib/hooks/useWindowSize.d.ts +0 -5
- package/lib/hooks/useWindowSize.js +0 -51
- package/lowcode/edit-booking-modal/meta.ts +0 -53
- package/lowcode/step-controller/meta.ts +0 -88
|
@@ -1,206 +1,158 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
en: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
2
|
+
"en": {
|
|
3
|
+
"pisell2.ticket-booking.info": "Info",
|
|
4
|
+
"pisell2.ticket-booking.notes": "Notes",
|
|
5
|
+
"pisell2.ticket-booking.forms": "Forms",
|
|
6
|
+
"pisell2.ticket-booking.sales": "Sales",
|
|
7
|
+
"pisell2.ticket-booking.payment": "Payment",
|
|
8
|
+
"pisell2.ticket-booking.unsaved-changes": "Unsaved changes",
|
|
9
|
+
"pisell2.ticket-booking.exit-confirm": "Your changes will not be saved if you exit. Are you sure you want to exit?",
|
|
10
|
+
"pisell2.ticket-booking.go-back": "Go back",
|
|
11
|
+
"pisell2.ticket-booking.exit": "Yes, exit",
|
|
12
|
+
"pisell2.ticket-booking.deposit": "Deposit",
|
|
13
|
+
"pisell2.ticket-booking.copy-success": "Copy successful",
|
|
14
|
+
"pisell2.ticket-booking.no-data": "No data",
|
|
15
|
+
"pisell2.ticket-booking.authorized": "Authorized",
|
|
16
|
+
"pisell2.ticket-booking.paid": "Paid",
|
|
17
|
+
"pisell2.ticket-booking.partially-paid": "Partially Paid",
|
|
18
|
+
"pisell2.ticket-booking.partially-refunded": "Partially Refunded",
|
|
19
|
+
"pisell2.ticket-booking.payment-pending": "Payment pending",
|
|
20
|
+
"pisell2.ticket-booking.refunded": "Refunded",
|
|
21
|
+
"pisell2.ticket-booking.unpaid": "Unpaid",
|
|
22
|
+
"pisell2.ticket-booking.voided": "Voided",
|
|
23
|
+
"pisell2.ticket-booking.pending": "Pending",
|
|
24
|
+
"pisell2.ticket-booking.all": "All",
|
|
25
|
+
"pisell2.ticket-booking.not-started": "Not started",
|
|
26
|
+
"pisell2.ticket-booking.started": "Started",
|
|
27
|
+
"pisell2.ticket-booking.finished": "Finished",
|
|
28
|
+
"pisell2.ticket-booking.canceled": "Canceled",
|
|
29
|
+
"pisell2.ticket-booking.inform": "Inform",
|
|
30
|
+
"pisell2.ticket-booking.check-management": "Please go to the management side to check this data.",
|
|
31
|
+
"pisell2.ticket-booking.confirm": "Confirm",
|
|
32
|
+
"pisell2.ticket-booking.dashboard": "Dashboard",
|
|
33
|
+
"pisell2.ticket-booking.booking-list": "Booking list",
|
|
34
|
+
"pisell2.ticket-booking.full-data": "Go to full data",
|
|
35
|
+
"pisell2.ticket-booking.today": "Today",
|
|
36
|
+
"pisell2.ticket-booking.now": "Now",
|
|
37
|
+
"pisell2.ticket-booking.start-time": "Start time",
|
|
38
|
+
"pisell2.ticket-booking.create-time": "Create time",
|
|
39
|
+
"pisell2.ticket-booking.customer": "Customer",
|
|
40
|
+
"pisell2.ticket-booking.total": "Total",
|
|
41
|
+
"pisell2.ticket-booking.search": "Search",
|
|
42
|
+
"pisell2.ticket-booking.refresh-success": "Refresh Successful",
|
|
43
|
+
"pisell2.ticket-booking.loading": "Loading",
|
|
44
|
+
"pisell2.ticket-booking.appointment-not-found": "Appointment not found",
|
|
45
|
+
"pisell2.ticket-booking.scan": "Scan",
|
|
46
|
+
"pisell2.ticket-booking.create-new": "Create new",
|
|
47
|
+
"pisell2.ticket-booking.add-to-cart": "Added to Cart",
|
|
48
|
+
"pisell2.ticket-booking.not-available-title": "Sorry, Not available at current time.",
|
|
49
|
+
"pisell2.ticket-booking.not-available-ok": "OK",
|
|
50
|
+
"pisell2.ticket-booking.in-cart": function pisell2TicketBookingInCart(number) {
|
|
51
51
|
return "".concat(number, " in cart");
|
|
52
|
-
},
|
|
53
|
-
'pisell2.product.card.cart-items': function pisell2ProductCardCartItems(number) {
|
|
54
|
-
return "".concat(number, "items");
|
|
55
|
-
},
|
|
56
|
-
'pisell2.product.card.subtotal': 'Subtotal',
|
|
57
|
-
'pisell2.product.card.hour.minute': function pisell2ProductCardHourMinute(hour, minute) {
|
|
58
|
-
return "".concat(hour > 0 ? "".concat(hour, "h") : '').concat(hour > 0 && minute > 0 ? ' ' : '').concat(minute > 0 ? "".concat(minute, "min") : '');
|
|
59
|
-
},
|
|
60
|
-
'pisell2.product.card.day': function pisell2ProductCardDay(val) {
|
|
61
|
-
return "".concat(val > 1 ? ' days' : ' day');
|
|
62
|
-
},
|
|
63
|
-
'pisell2.product.card.day.event': function pisell2ProductCardDayEvent(val) {
|
|
64
|
-
return "".concat(val > 1 ? ' events' : ' event');
|
|
65
|
-
},
|
|
66
|
-
'pisell2.product.card.minute': function pisell2ProductCardMinute(val) {
|
|
67
|
-
return "".concat(val > 1 ? ' minutes' : ' minute');
|
|
68
52
|
}
|
|
69
53
|
},
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
return "".concat(number, "\u4EF6\u5546\u54C1");
|
|
120
|
-
},
|
|
121
|
-
'pisell2.product.card.subtotal': '小计',
|
|
122
|
-
'pisell2.ticket-booking.in-cart': function pisell2TicketBookingInCart(number) {
|
|
54
|
+
"zh-CN": {
|
|
55
|
+
"pisell2.ticket-booking.info": "信息",
|
|
56
|
+
"pisell2.ticket-booking.notes": "备注",
|
|
57
|
+
"pisell2.ticket-booking.forms": "表单",
|
|
58
|
+
"pisell2.ticket-booking.sales": "销售",
|
|
59
|
+
"pisell2.ticket-booking.payment": "付款",
|
|
60
|
+
"pisell2.ticket-booking.unsaved-changes": "有未保存的更改",
|
|
61
|
+
"pisell2.ticket-booking.exit-confirm": "如果您退出,您的更改将不会被保存。您确定要退出吗?",
|
|
62
|
+
"pisell2.ticket-booking.go-back": "返回",
|
|
63
|
+
"pisell2.ticket-booking.exit": "退出",
|
|
64
|
+
"pisell2.ticket-booking.deposit": "定金",
|
|
65
|
+
"pisell2.ticket-booking.copy-success": "复制成功",
|
|
66
|
+
"pisell2.ticket-booking.no-data": "暂无数据",
|
|
67
|
+
"pisell2.ticket-booking.authorized": "已授权",
|
|
68
|
+
"pisell2.ticket-booking.paid": "已付款",
|
|
69
|
+
"pisell2.ticket-booking.partially-paid": "部分付款",
|
|
70
|
+
"pisell2.ticket-booking.partially-refunded": "部分退款",
|
|
71
|
+
"pisell2.ticket-booking.payment-pending": "等待付款",
|
|
72
|
+
"pisell2.ticket-booking.refunded": "已退款",
|
|
73
|
+
"pisell2.ticket-booking.unpaid": "未付款",
|
|
74
|
+
"pisell2.ticket-booking.voided": "已作废",
|
|
75
|
+
"pisell2.ticket-booking.pending": "待支付",
|
|
76
|
+
"pisell2.ticket-booking.all": "全部",
|
|
77
|
+
"pisell2.ticket-booking.not-started": "未开始",
|
|
78
|
+
"pisell2.ticket-booking.started": "已开始",
|
|
79
|
+
"pisell2.ticket-booking.finished": "已完成",
|
|
80
|
+
"pisell2.ticket-booking.canceled": "已取消",
|
|
81
|
+
"pisell2.ticket-booking.inform": "通知",
|
|
82
|
+
"pisell2.ticket-booking.check-management": "请前往管理端查看此数据。",
|
|
83
|
+
"pisell2.ticket-booking.confirm": "确认",
|
|
84
|
+
"pisell2.ticket-booking.dashboard": "数据看板",
|
|
85
|
+
"pisell2.ticket-booking.booking-list": "预约列表",
|
|
86
|
+
"pisell2.ticket-booking.full-data": "查看全部数据",
|
|
87
|
+
"pisell2.ticket-booking.today": "今天",
|
|
88
|
+
"pisell2.ticket-booking.now": "现在",
|
|
89
|
+
"pisell2.ticket-booking.start-time": "开始时间",
|
|
90
|
+
"pisell2.ticket-booking.create-time": "创建时间",
|
|
91
|
+
"pisell2.ticket-booking.customer": "客户名称",
|
|
92
|
+
"pisell2.ticket-booking.total": "价格",
|
|
93
|
+
"pisell2.ticket-booking.search": "搜索",
|
|
94
|
+
"pisell2.ticket-booking.refresh-success": "刷新成功",
|
|
95
|
+
"pisell2.ticket-booking.loading": "加载中",
|
|
96
|
+
"pisell2.ticket-booking.appointment-not-found": "没有发现此预约",
|
|
97
|
+
"pisell2.ticket-booking.scan": "",
|
|
98
|
+
"pisell2.ticket-booking.create-new": "新建",
|
|
99
|
+
"pisell2.ticket-booking.add-to-cart": "已加入购物车",
|
|
100
|
+
"pisell2.ticket-booking.not-available-title": "抱歉,目前不在可售时间。",
|
|
101
|
+
"pisell2.ticket-booking.not-available-ok": "好的",
|
|
102
|
+
"pisell2.ticket-booking.in-cart": function pisell2TicketBookingInCart(number) {
|
|
123
103
|
return "\u5DF2\u6709".concat(number, "\u4EF6");
|
|
124
|
-
},
|
|
125
|
-
'pisell2.product.card.hour.minute': function pisell2ProductCardHourMinute(hour, minute) {
|
|
126
|
-
return "".concat(hour > 0 ? "".concat(hour, "\u5C0F\u65F6") : '').concat(minute > 0 ? "".concat(minute, "\u5206\u949F") : '');
|
|
127
|
-
},
|
|
128
|
-
'pisell2.product.card.day': function pisell2ProductCardDay(val) {
|
|
129
|
-
return '天';
|
|
130
|
-
},
|
|
131
|
-
'pisell2.product.card.day.event': function pisell2ProductCardDayEvent(val) {
|
|
132
|
-
return '个活动';
|
|
133
|
-
},
|
|
134
|
-
'pisell2.product.card.minute': function pisell2ProductCardMinute(val) {
|
|
135
|
-
return '分钟';
|
|
136
104
|
}
|
|
137
105
|
},
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
106
|
+
"zh-HK": {
|
|
107
|
+
"pisell2.ticket-booking.info": "資訊",
|
|
108
|
+
"pisell2.ticket-booking.notes": "備註",
|
|
109
|
+
"pisell2.ticket-booking.forms": "表单",
|
|
110
|
+
"pisell2.ticket-booking.sales": "銷售",
|
|
111
|
+
"pisell2.ticket-booking.payment": "付款",
|
|
112
|
+
"pisell2.ticket-booking.unsaved-changes": "有未保存的更改",
|
|
113
|
+
"pisell2.ticket-booking.exit-confirm": "如果您退出,您的變更將不會被保存。您確定要退出嗎?",
|
|
114
|
+
"pisell2.ticket-booking.go-back": "返回",
|
|
115
|
+
"pisell2.ticket-booking.exit": "退出",
|
|
116
|
+
"pisell2.ticket-booking.deposit": "定金",
|
|
117
|
+
"pisell2.ticket-booking.copy-success": "复制成功",
|
|
118
|
+
"pisell2.ticket-booking.no-data": "暂无数据",
|
|
119
|
+
"pisell2.ticket-booking.authorized": "已授權",
|
|
120
|
+
"pisell2.ticket-booking.paid": "已付款",
|
|
121
|
+
"pisell2.ticket-booking.partially-paid": "部分付款",
|
|
122
|
+
"pisell2.ticket-booking.partially-refunded": "部分退款",
|
|
123
|
+
"pisell2.ticket-booking.payment-pending": "等待付款",
|
|
124
|
+
"pisell2.ticket-booking.refunded": "已退款",
|
|
125
|
+
"pisell2.ticket-booking.unpaid": "未付款",
|
|
126
|
+
"pisell2.ticket-booking.voided": "已作廢",
|
|
127
|
+
"pisell2.ticket-booking.pending": "待支付",
|
|
128
|
+
"pisell2.ticket-booking.all": "全部",
|
|
129
|
+
"pisell2.ticket-booking.not-started": "未开始",
|
|
130
|
+
"pisell2.ticket-booking.started": "已开始",
|
|
131
|
+
"pisell2.ticket-booking.finished": "已完成",
|
|
132
|
+
"pisell2.ticket-booking.canceled": "已取消",
|
|
133
|
+
"pisell2.ticket-booking.inform": "通知",
|
|
134
|
+
"pisell2.ticket-booking.check-management": "请前往管理端查看此数据。",
|
|
135
|
+
"pisell2.ticket-booking.confirm": "确认",
|
|
136
|
+
"pisell2.ticket-booking.dashboard": "数据看板",
|
|
137
|
+
"pisell2.ticket-booking.booking-list": "预约列表",
|
|
138
|
+
"pisell2.ticket-booking.full-data": "查看全部数据",
|
|
139
|
+
"pisell2.ticket-booking.today": "今天",
|
|
140
|
+
"pisell2.ticket-booking.now": "现在",
|
|
141
|
+
"pisell2.ticket-booking.start-time": "开始时间",
|
|
142
|
+
"pisell2.ticket-booking.create-time": "创建时间",
|
|
143
|
+
"pisell2.ticket-booking.customer": "客户名称",
|
|
144
|
+
"pisell2.ticket-booking.total": "价格",
|
|
145
|
+
"pisell2.ticket-booking.search": "搜索",
|
|
146
|
+
"pisell2.ticket-booking.refresh-success": "刷新成功",
|
|
147
|
+
"pisell2.ticket-booking.loading": "加载中",
|
|
148
|
+
"pisell2.ticket-booking.appointment-not-found": "没有發現此預約",
|
|
149
|
+
"pisell2.ticket-booking.scan": "扫码",
|
|
150
|
+
"pisell2.ticket-booking.create-new": "新建",
|
|
151
|
+
"pisell2.ticket-booking.add-to-cart": "已加入购物车",
|
|
152
|
+
"pisell2.ticket-booking.not-available-title": "抱歉,目前不在可售時間。",
|
|
153
|
+
"pisell2.ticket-booking.not-available-ok": "好的",
|
|
154
|
+
"pisell2.ticket-booking.in-cart": function pisell2TicketBookingInCart(number) {
|
|
187
155
|
return "\u5DF2\u6709".concat(number, "\u4EF6");
|
|
188
|
-
},
|
|
189
|
-
'pisell2.product.card.cart-items': function pisell2ProductCardCartItems(number) {
|
|
190
|
-
return "".concat(number, "\u4EF6\u5546\u54C1");
|
|
191
|
-
},
|
|
192
|
-
'pisell2.product.card.subtotal': '小計',
|
|
193
|
-
'pisell2.product.card.hour.minute': function pisell2ProductCardHourMinute(hour, minute) {
|
|
194
|
-
return "".concat(hour > 0 ? "".concat(hour, "\u5C0F\u6642") : '').concat(minute > 0 ? "".concat(minute, "\u5206\u9418") : '');
|
|
195
|
-
},
|
|
196
|
-
'pisell2.product.card.day': function pisell2ProductCardDay(val) {
|
|
197
|
-
return '天';
|
|
198
|
-
},
|
|
199
|
-
'pisell2.product.card.day.event': function pisell2ProductCardDayEvent(val) {
|
|
200
|
-
return '个活動';
|
|
201
|
-
},
|
|
202
|
-
'pisell2.product.card.minute': function pisell2ProductCardMinute(val) {
|
|
203
|
-
return '分鐘';
|
|
204
156
|
}
|
|
205
157
|
}
|
|
206
158
|
};
|
package/es/index.d.ts
CHANGED
|
@@ -43,5 +43,3 @@ export { default as AppointmentBooking } from './components/appointmentBooking';
|
|
|
43
43
|
export { default as AppointmentDeposit } from './components/appointmentBooking/deposit';
|
|
44
44
|
export { default as TicketBooking } from './components/ticketBooking';
|
|
45
45
|
export { default as SubTotal } from './components/subTotal';
|
|
46
|
-
export { default as StepController } from './components/stepController';
|
|
47
|
-
export { default as EditBookingModal } from './components/booking/editBookingModal';
|
package/es/index.js
CHANGED
|
@@ -46,6 +46,4 @@ export { default as ShoppingCart } from "./components/shoppingCart";
|
|
|
46
46
|
export { default as AppointmentBooking } from "./components/appointmentBooking";
|
|
47
47
|
export { default as AppointmentDeposit } from "./components/appointmentBooking/deposit";
|
|
48
48
|
export { default as TicketBooking } from "./components/ticketBooking";
|
|
49
|
-
export { default as SubTotal } from "./components/subTotal";
|
|
50
|
-
export { default as StepController } from "./components/stepController";
|
|
51
|
-
export { default as EditBookingModal } from "./components/booking/editBookingModal";
|
|
49
|
+
export { default as SubTotal } from "./components/subTotal";
|
package/es/utils/index.d.ts
CHANGED
|
@@ -18,6 +18,6 @@ declare let modal: Omit<ModalStaticFunctions, 'warn'>;
|
|
|
18
18
|
export declare const setModal: (m: Omit<ModalStaticFunctions, 'warn'>) => void;
|
|
19
19
|
export declare const saveConfirm: () => Promise<{
|
|
20
20
|
destroy: () => void;
|
|
21
|
-
update: (configUpdate: import("antd
|
|
21
|
+
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
22
22
|
}>;
|
|
23
23
|
export { modal };
|
|
@@ -35,7 +35,6 @@ __export(Sales_exports, {
|
|
|
35
35
|
});
|
|
36
36
|
module.exports = __toCommonJS(Sales_exports);
|
|
37
37
|
var import_react = __toESM(require("react"));
|
|
38
|
-
var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext"));
|
|
39
38
|
var defaultData = {};
|
|
40
39
|
var SALES_MODEL_SESSION_STORAGE_KEY = "shop_h5_sales_model_data";
|
|
41
40
|
var SalesContext = (0, import_react.createContext)(
|
|
@@ -46,13 +45,14 @@ var SalesProvider = (props) => {
|
|
|
46
45
|
const dataRef = (0, import_react.useRef)({});
|
|
47
46
|
const [data, setData] = (0, import_react.useState)(defaultData);
|
|
48
47
|
const [hooks, setHooks] = (0, import_react.useState)(props.hooks);
|
|
49
|
-
const context = (0, import_useEngineContext.default)();
|
|
50
|
-
const utils = context.appHelper.utils || {};
|
|
51
48
|
const _setData = (newData) => {
|
|
52
49
|
dataRef.current = { ...dataRef.current, ...newData };
|
|
53
50
|
console.log("sales_model_newData", dataRef.current);
|
|
54
51
|
if (config == null ? void 0 : config.useSessionStorage) {
|
|
55
|
-
|
|
52
|
+
sessionStorage.setItem(
|
|
53
|
+
SALES_MODEL_SESSION_STORAGE_KEY,
|
|
54
|
+
JSON.stringify(dataRef.current || {})
|
|
55
|
+
);
|
|
56
56
|
}
|
|
57
57
|
setData({ ...dataRef.current });
|
|
58
58
|
};
|
|
@@ -60,28 +60,14 @@ var SalesProvider = (props) => {
|
|
|
60
60
|
return dataRef.current;
|
|
61
61
|
};
|
|
62
62
|
const setSessionStorage = () => {
|
|
63
|
-
var _a, _b, _c;
|
|
64
|
-
const history = ((_a = utils == null ? void 0 : utils.getHistory) == null ? void 0 : _a.call(utils)) || {};
|
|
65
|
-
const cacheId = ((_c = (_b = history == null ? void 0 : history.location) == null ? void 0 : _b.query) == null ? void 0 : _c.cacheId) || "";
|
|
66
|
-
const sessionData = { ...dataRef.current || {}, cacheId };
|
|
67
63
|
sessionStorage.setItem(
|
|
68
|
-
|
|
69
|
-
JSON.stringify(
|
|
64
|
+
SALES_MODEL_SESSION_STORAGE_KEY,
|
|
65
|
+
JSON.stringify(dataRef.current || {})
|
|
70
66
|
);
|
|
71
67
|
};
|
|
72
68
|
const getSessionStorage = () => {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
const strResult = sessionStorage.getItem(SALES_MODEL_SESSION_STORAGE_KEY);
|
|
76
|
-
const result = strResult ? JSON.parse(strResult || "{}") : {};
|
|
77
|
-
const cacheId = ((_c = (_b = history == null ? void 0 : history.location) == null ? void 0 : _b.query) == null ? void 0 : _c.cacheId) || "";
|
|
78
|
-
if (!cacheId && !(result == null ? void 0 : result.cacheId)) {
|
|
79
|
-
return result;
|
|
80
|
-
}
|
|
81
|
-
if (cacheId && (result == null ? void 0 : result.cacheId) === cacheId) {
|
|
82
|
-
return result;
|
|
83
|
-
}
|
|
84
|
-
return {};
|
|
69
|
+
const result = sessionStorage.getItem(SALES_MODEL_SESSION_STORAGE_KEY);
|
|
70
|
+
return JSON.parse(result || "{}");
|
|
85
71
|
};
|
|
86
72
|
const removeSessionStorage = () => {
|
|
87
73
|
sessionStorage.removeItem(SALES_MODEL_SESSION_STORAGE_KEY);
|
|
@@ -291,7 +291,6 @@ var CartProvider = ({ children }) => {
|
|
|
291
291
|
},
|
|
292
292
|
_productDetail: eventDetail.productDetail
|
|
293
293
|
};
|
|
294
|
-
newCartItem.deposit = (0, import_utils3.handleProductDeposit)(newCartItem, eventDetail, num);
|
|
295
294
|
const originData = (0, import_utils3.handleCartItemOrigin)(newCartItem, eventDetail);
|
|
296
295
|
newCartItem._originData = originData;
|
|
297
296
|
if (holderItem == null ? void 0 : holderItem._originData) {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import Decimal from 'decimal.js';
|
|
2
1
|
import { ICalculatePriceParams } from './types';
|
|
3
2
|
export declare const handleProductInfo: (eventDetail: any, num: number) => {
|
|
4
3
|
totalPrice: number;
|
|
@@ -22,42 +21,3 @@ export declare const getOriginTotalPrice: (params: ICalculatePriceParams) => num
|
|
|
22
21
|
export declare const handleCartItemOrigin: (cartItem: any, eventDetail: any) => any;
|
|
23
22
|
export declare const formatBundleToOrigin: (bundle: any) => any;
|
|
24
23
|
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
|
-
};
|