@pisell/private-materials 3.3.9 → 3.3.11
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/meta.js +1 -1
- package/build/lowcode/render/default/view.js +3 -3
- package/build/lowcode/view.js +3 -3
- package/es/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +1 -2
- package/es/components/appointmentBooking/components/Cart/ContinueButton/index.js +42 -242
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.js +13 -5
- package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -1
- package/es/components/appointmentBooking/components/Cart/index.js +5 -2
- package/es/components/appointmentBooking/components/Cart/utils.d.ts +0 -41
- package/es/components/appointmentBooking/components/Cart/utils.js +4 -308
- package/es/components/appointmentBooking/components/ConfirmInformation/index.d.ts +2 -1
- package/es/components/appointmentBooking/components/ConfirmInformation/index.js +145 -4
- package/es/components/appointmentBooking/components/Content/index.js +35 -28
- package/es/components/appointmentBooking/components/Date/index.d.ts +3 -2
- package/es/components/appointmentBooking/components/Date/index.js +67 -34
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -1
- package/es/components/appointmentBooking/components/Footer/index.js +12 -10
- package/es/components/appointmentBooking/components/Form/index.js +40 -13
- package/es/components/appointmentBooking/components/Guest/index.d.ts +2 -1
- package/es/components/appointmentBooking/components/Guest/index.js +10 -3
- package/es/components/appointmentBooking/components/Header/index.js +31 -23
- package/es/components/appointmentBooking/components/Resource/index.d.ts +5 -1
- package/es/components/appointmentBooking/components/Resource/index.js +140 -46
- package/es/components/appointmentBooking/components/Resource/utils.d.ts +5 -0
- package/es/components/appointmentBooking/components/Resource/utils.js +16 -0
- package/es/components/appointmentBooking/components/Services/index.d.ts +2 -1
- package/es/components/appointmentBooking/components/Services/index.js +17 -72
- package/es/components/appointmentBooking/components/TimeSlicing/index.d.ts +3 -2
- package/es/components/appointmentBooking/components/TimeSlicing/index.js +17 -4
- package/es/components/appointmentBooking/context.js +13 -2
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +12 -9
- package/es/components/appointmentBooking/hooks.d.ts +2 -1
- package/es/components/appointmentBooking/hooks.js +71 -22
- package/es/components/appointmentBooking/utils.d.ts +114 -0
- package/es/components/appointmentBooking/utils.js +155 -175
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
- package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
- package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/es/components/booking/deposit/index.d.ts +0 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/forms/single/index.d.ts +0 -1
- package/es/components/booking/forms/table/index.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/booking/info/date/index.d.ts +0 -1
- package/es/components/booking/info/header/index.d.ts +0 -1
- package/es/components/booking/info/notes/index.d.ts +0 -1
- package/es/components/booking/info/service/actions/index.d.ts +0 -1
- package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info/service/editService/index.d.ts +7 -0
- package/es/components/booking/info/service/like/index.d.ts +0 -1
- package/es/components/booking/info/utils.js +1 -1
- package/es/components/booking/info2/service/actions/index.d.ts +0 -1
- package/es/components/booking/info2/service/editService/index.d.ts +7 -0
- package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
- package/es/components/booking/materiels/duration/index.d.ts +0 -1
- package/es/components/booking/materiels/startTime/index.d.ts +0 -1
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
- package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
- package/es/components/booking/payments/index.js +1 -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/pos.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 -2
- package/es/components/eftposPay/app.d.ts +0 -1
- package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/es/components/eftposPay/component/fail/index.d.ts +0 -1
- package/es/components/eftposPay/component/fail/network.d.ts +0 -1
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/es/components/eftposPay/component/manual/index.d.ts +0 -1
- package/es/components/eftposPay/component/signature/index.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/device.d.ts +1 -2
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/pay.d.ts +0 -1
- package/es/components/eftposPay/payo/config.d.ts +0 -1
- package/es/components/eftposPay/store/index.d.ts +4 -4
- package/es/components/eftposPay/tip.d.ts +0 -1
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -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/BirthdayField/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/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/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
- package/es/components/productSelect/components/TabProduct/index.d.ts +2 -0
- package/es/components/productSelect/components/gridLayout/index.d.ts +9 -0
- package/es/components/productSelect/components/productGroup/index.d.ts +34 -0
- package/es/components/productSelect/index.d.ts +23 -0
- package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
- package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/es/components/schedules/calendar/index.d.ts +0 -1
- package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/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/ProductDetailDrawer/index.d.ts +0 -1
- package/es/components/schedules/products/index.d.ts +0 -1
- package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
- package/es/components/schedules/products/list/index.d.ts +0 -1
- package/es/components/schedules/resources/index.d.ts +0 -1
- package/es/components/schedules/resources/list/index.d.ts +0 -1
- package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
- package/es/components/schedules/schedules/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Cart/Product.d.ts +3 -0
- package/es/components/shoppingCart/hooks/useAddService.d.ts +2 -0
- package/es/components/subTotal/index.d.ts +22 -0
- package/es/components/ticketBooking/components/ticketBooking/index.js +4 -2
- package/es/components/wallet/Detail/index.d.ts +42 -0
- package/es/components/wallet/components/WalletCard.d.ts +11 -0
- package/es/utils/tasks/index.js +114 -0
- package/es/utils/tasks/type.js +1 -0
- package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.d.ts +1 -2
- package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.js +10 -123
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +4 -5
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Cart/index.js +2 -2
- package/lib/components/appointmentBooking/components/Cart/utils.d.ts +0 -41
- package/lib/components/appointmentBooking/components/Cart/utils.js +6 -184
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.d.ts +2 -1
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +65 -3
- package/lib/components/appointmentBooking/components/Content/index.js +36 -22
- package/lib/components/appointmentBooking/components/Date/index.d.ts +3 -2
- package/lib/components/appointmentBooking/components/Date/index.js +13 -3
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Footer/index.js +16 -12
- package/lib/components/appointmentBooking/components/Form/index.js +17 -11
- package/lib/components/appointmentBooking/components/Guest/index.d.ts +2 -1
- package/lib/components/appointmentBooking/components/Guest/index.js +7 -2
- package/lib/components/appointmentBooking/components/Header/index.js +10 -10
- package/lib/components/appointmentBooking/components/Resource/index.d.ts +5 -1
- package/lib/components/appointmentBooking/components/Resource/index.js +86 -30
- package/lib/components/appointmentBooking/components/Resource/utils.d.ts +5 -0
- package/lib/components/appointmentBooking/components/Resource/utils.js +36 -0
- package/lib/components/appointmentBooking/components/Services/index.d.ts +2 -1
- package/lib/components/appointmentBooking/components/Services/index.js +7 -6
- package/lib/components/appointmentBooking/components/TimeSlicing/index.d.ts +3 -2
- package/lib/components/appointmentBooking/components/TimeSlicing/index.js +14 -3
- package/lib/components/appointmentBooking/context.js +7 -2
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +3 -1
- package/lib/components/appointmentBooking/hooks.d.ts +2 -1
- package/lib/components/appointmentBooking/hooks.js +29 -8
- package/lib/components/appointmentBooking/utils.d.ts +114 -0
- package/lib/components/appointmentBooking/utils.js +82 -82
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
- package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
- package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/lib/components/booking/deposit/index.d.ts +0 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/forms/single/index.d.ts +0 -1
- package/lib/components/booking/forms/table/index.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/booking/info/date/index.d.ts +0 -1
- package/lib/components/booking/info/header/index.d.ts +0 -1
- package/lib/components/booking/info/notes/index.d.ts +0 -1
- package/lib/components/booking/info/service/actions/index.d.ts +0 -1
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info/service/editService/index.d.ts +7 -0
- package/lib/components/booking/info/service/like/index.d.ts +0 -1
- package/lib/components/booking/info/utils.js +1 -1
- package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
- package/lib/components/booking/info2/service/editService/index.d.ts +7 -0
- package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
- package/lib/components/booking/materiels/duration/index.d.ts +0 -1
- package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
- package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
- package/lib/components/booking/payments/index.js +1 -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/pos.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 -2
- package/lib/components/eftposPay/app.d.ts +0 -1
- package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
- package/lib/components/eftposPay/component/signature/index.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/device.d.ts +1 -2
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/pay.d.ts +0 -1
- package/lib/components/eftposPay/payo/config.d.ts +0 -1
- package/lib/components/eftposPay/store/index.d.ts +4 -4
- package/lib/components/eftposPay/tip.d.ts +0 -1
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
- 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/BirthdayField/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/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/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
- package/lib/components/productSelect/components/TabProduct/index.d.ts +2 -0
- package/lib/components/productSelect/components/gridLayout/index.d.ts +9 -0
- package/lib/components/productSelect/components/productGroup/index.d.ts +34 -0
- package/lib/components/productSelect/index.d.ts +23 -0
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
- package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/lib/components/schedules/calendar/index.d.ts +0 -1
- package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/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/ProductDetailDrawer/index.d.ts +0 -1
- package/lib/components/schedules/products/index.d.ts +0 -1
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
- package/lib/components/schedules/products/list/index.d.ts +0 -1
- package/lib/components/schedules/resources/index.d.ts +0 -1
- package/lib/components/schedules/resources/list/index.d.ts +0 -1
- package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
- package/lib/components/schedules/schedules/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +3 -0
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +2 -0
- package/lib/components/subTotal/index.d.ts +22 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.js +4 -2
- package/lib/components/wallet/Detail/index.d.ts +42 -0
- package/lib/components/wallet/components/WalletCard.d.ts +11 -0
- package/lib/utils/tasks/index.js +63 -0
- package/lib/utils/tasks/type.js +17 -0
- package/package.json +1 -1
- package/es/businessModel/SalesModel/Sales/index.d.ts +0 -24
- package/es/businessModel/SalesModel/hooks/index.d.ts +0 -1
- package/es/businessModel/SalesModel/index.d.ts +0 -4
- package/es/businessModel/index.d.ts +0 -0
- package/es/components/Sales/Cart/index.d.ts +0 -53
- package/es/components/Sales/Cart/serve.d.ts +0 -2
- package/es/components/Sales/Cart/types.d.ts +0 -19
- package/es/components/Sales/Checkout/index.d.ts +0 -33
- package/es/components/Sales/Checkout/serve.d.ts +0 -2
- package/es/components/Sales/Checkout/utils.d.ts +0 -27
- package/es/components/Sales/Customer/index.d.ts +0 -24
- package/es/components/Sales/Event/Detail.d.ts +0 -27
- package/es/components/Sales/Event/serve.d.ts +0 -26
- package/es/components/Sales/Holder/index.d.ts +0 -33
- package/es/components/Sales/Holder/serve.d.ts +0 -8
- package/es/components/Sales/Init/index.d.ts +0 -24
- package/es/components/Sales/Init/serve.d.ts +0 -3
- package/es/components/Sales/Resource/index.d.ts +0 -26
- package/es/components/Sales/Resource/serve.d.ts +0 -5
- package/es/components/Sales/Step/index.d.ts +0 -37
- package/es/components/Sales/Summary/index.d.ts +0 -25
- package/es/components/Sales/Summary/serve.d.ts +0 -0
- package/es/components/Sales/Summary/utils.d.ts +0 -36
- package/es/components/Sales/hooks/index.d.ts +0 -1
- package/es/components/Sales/index.d.ts +0 -20
- package/es/components/Sales/utils/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Date/state.d.ts +0 -62
- package/es/components/appointmentBooking/locales.d.ts +0 -345
- package/es/components/appointmentBooking/mock.d.ts +0 -627
- package/es/components/appointmentBooking/status.d.ts +0 -21
- package/es/components/appointmentBooking/type.d.ts +0 -17
- package/es/components/booking/components/customSelect/index.d.ts +0 -38
- package/es/components/booking/components/footer/amount.d.ts +0 -23
- package/es/components/booking/components/footer/serve.d.ts +0 -3
- package/es/components/booking/forms/index.d.ts +0 -9
- package/es/components/booking/forms/serve.d.ts +0 -18
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/es/components/booking/info/Provider.d.ts +0 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -7
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +0 -25
- package/es/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
- package/es/components/booking/info/model.d.ts +0 -14
- package/es/components/booking/info/service/addService/utils.d.ts +0 -71
- package/es/components/booking/info/service/editService/EditTabs/index.d.ts +0 -3
- package/es/components/booking/info/service/serve.d.ts +0 -11
- package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
- package/es/components/booking/info/service/serviceManager/utils.d.ts +0 -0
- package/es/components/booking/info/service2/Lists.d.ts +0 -3
- package/es/components/booking/info/service2/index.d.ts +0 -6
- package/es/components/booking/info/service2/status.d.ts +0 -31
- package/es/components/booking/info/service2/utils.d.ts +0 -241
- package/es/components/booking/info2/service/editService/utils.d.ts +0 -13
- package/es/components/booking/locales.d.ts +0 -786
- package/es/components/booking/materiels/contacts/index.d.ts +0 -16
- package/es/components/booking/model.d.ts +0 -115
- package/es/components/booking/payments/index.d.ts +0 -9
- package/es/components/eftpos/index.d.ts +0 -47
- package/es/components/eftposPay/index.d.ts +0 -5
- package/es/components/eftposPay/windcave/windcave.d.ts +0 -7
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -3
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -5
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -4
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -3
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -3
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -10
- package/es/components/eventBooking/components/scheduleCalendar/index.d.ts +0 -13
- package/es/components/eventBooking/index.d.ts +0 -4
- package/es/components/eventBooking/locales.d.ts +0 -216
- package/es/components/eventBooking/mock.d.ts +0 -627
- package/es/components/eventBooking/status.d.ts +0 -21
- package/es/components/eventBooking/type.d.ts +0 -17
- package/es/components/eventBooking/utils.d.ts +0 -45
- package/es/components/login/index.d.ts +0 -9
- package/es/components/login/locales.d.ts +0 -24
- package/es/components/pay/toC/PaymentList/serve.d.ts +0 -28
- package/es/components/pay/toC/serve.d.ts +0 -34
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -3
- package/es/components/productExtension/index.d.ts +0 -8
- package/es/components/ruleSetting/index.d.ts +0 -10
- package/es/components/schedules/index.d.ts +0 -3
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -4
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -4
- package/es/components/shoppingCart/hooks/useContext.d.ts +0 -1
- package/es/components/shoppingCart/locales.d.ts +0 -33
- package/es/components/shoppingCart/mock.d.ts +0 -40
- package/es/components/shoppingCart/status.d.ts +0 -2
- package/es/components/shoppingCart/utils.d.ts +0 -63
- package/es/components/taxSelect/index.d.ts +0 -12
- package/es/components/wallet/Detail/locales.d.ts +0 -96
- package/es/components/wallet/Detail/model.d.ts +0 -13
- package/es/components/wallet/Detail/serve.d.ts +0 -39
- package/es/components/wallet/DetailContext.d.ts +0 -25
- package/es/components/wallet/DiscountCard/model.d.ts +0 -14
- package/es/components/wallet/PointCard/model.d.ts +0 -13
- package/es/components/wallet/RechargeableCard/model.d.ts +0 -29
- package/es/components/wallet/RechargeableCard/serve.d.ts +0 -23
- package/es/components/wallet/Voucher/locales.d.ts +0 -21
- package/es/components/wallet/Voucher/model.d.ts +0 -13
- package/es/components/wallet/components/FooterButtons/index.d.ts +0 -18
- package/es/components/wallet/components/index.d.ts +0 -2
- package/es/components/wallet/hooks/useWalletCard.d.ts +0 -34
- package/es/components/wallet/locales.d.ts +0 -132
- package/es/components/wallet/model.d.ts +0 -37
- package/es/components/wallet/serve.d.ts +0 -143
- package/es/components/wallet/utils/formatUtils.d.ts +0 -36
- package/es/components/walletList/model.d.ts +0 -6
- package/es/components/walletList/serve.d.ts +0 -12
- package/es/components/walletList/types/index.d.ts +0 -194
- package/es/components/workSpaceList/components/WorkspaceItem/index.d.ts +0 -22
- package/es/hooks/useEngineContext.d.ts +0 -10
- package/es/utils/locales.d.ts +0 -1
- package/lib/businessModel/SalesModel/Sales/index.d.ts +0 -24
- package/lib/businessModel/SalesModel/hooks/index.d.ts +0 -1
- package/lib/businessModel/SalesModel/index.d.ts +0 -4
- package/lib/businessModel/index.d.ts +0 -0
- package/lib/components/Sales/Cart/index.d.ts +0 -53
- package/lib/components/Sales/Cart/serve.d.ts +0 -2
- package/lib/components/Sales/Cart/types.d.ts +0 -19
- package/lib/components/Sales/Checkout/index.d.ts +0 -33
- package/lib/components/Sales/Checkout/serve.d.ts +0 -2
- package/lib/components/Sales/Checkout/utils.d.ts +0 -27
- package/lib/components/Sales/Customer/index.d.ts +0 -24
- package/lib/components/Sales/Event/Detail.d.ts +0 -27
- package/lib/components/Sales/Event/serve.d.ts +0 -26
- package/lib/components/Sales/Holder/index.d.ts +0 -33
- package/lib/components/Sales/Holder/serve.d.ts +0 -8
- package/lib/components/Sales/Init/index.d.ts +0 -24
- package/lib/components/Sales/Init/serve.d.ts +0 -3
- package/lib/components/Sales/Resource/index.d.ts +0 -26
- package/lib/components/Sales/Resource/serve.d.ts +0 -5
- package/lib/components/Sales/Step/index.d.ts +0 -37
- package/lib/components/Sales/Summary/index.d.ts +0 -25
- package/lib/components/Sales/Summary/serve.d.ts +0 -0
- package/lib/components/Sales/Summary/utils.d.ts +0 -36
- package/lib/components/Sales/hooks/index.d.ts +0 -1
- package/lib/components/Sales/index.d.ts +0 -20
- package/lib/components/Sales/utils/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Date/state.d.ts +0 -62
- package/lib/components/appointmentBooking/locales.d.ts +0 -345
- package/lib/components/appointmentBooking/mock.d.ts +0 -627
- package/lib/components/appointmentBooking/status.d.ts +0 -21
- package/lib/components/appointmentBooking/type.d.ts +0 -17
- package/lib/components/booking/components/customSelect/index.d.ts +0 -38
- package/lib/components/booking/components/footer/amount.d.ts +0 -23
- package/lib/components/booking/components/footer/serve.d.ts +0 -3
- package/lib/components/booking/forms/index.d.ts +0 -9
- package/lib/components/booking/forms/serve.d.ts +0 -18
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/lib/components/booking/info/Provider.d.ts +0 -0
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -7
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +0 -25
- package/lib/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
- package/lib/components/booking/info/model.d.ts +0 -14
- package/lib/components/booking/info/service/addService/utils.d.ts +0 -71
- package/lib/components/booking/info/service/editService/EditTabs/index.d.ts +0 -3
- package/lib/components/booking/info/service/serve.d.ts +0 -11
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
- package/lib/components/booking/info/service/serviceManager/utils.d.ts +0 -0
- package/lib/components/booking/info/service2/Lists.d.ts +0 -3
- package/lib/components/booking/info/service2/index.d.ts +0 -6
- package/lib/components/booking/info/service2/status.d.ts +0 -31
- package/lib/components/booking/info/service2/utils.d.ts +0 -241
- package/lib/components/booking/info2/service/editService/utils.d.ts +0 -13
- package/lib/components/booking/locales.d.ts +0 -786
- package/lib/components/booking/materiels/contacts/index.d.ts +0 -16
- package/lib/components/booking/model.d.ts +0 -115
- package/lib/components/booking/payments/index.d.ts +0 -9
- package/lib/components/eftpos/index.d.ts +0 -47
- package/lib/components/eftposPay/index.d.ts +0 -5
- package/lib/components/eftposPay/windcave/windcave.d.ts +0 -7
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -3
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -5
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -4
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/state.d.ts +0 -63
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/index.d.ts +0 -14
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/utils.d.ts +0 -34
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -3
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -3
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -10
- package/lib/components/eventBooking/components/scheduleCalendar/index.d.ts +0 -13
- package/lib/components/eventBooking/index.d.ts +0 -4
- package/lib/components/eventBooking/locales.d.ts +0 -216
- package/lib/components/eventBooking/mock.d.ts +0 -627
- package/lib/components/eventBooking/status.d.ts +0 -21
- package/lib/components/eventBooking/type.d.ts +0 -17
- package/lib/components/eventBooking/utils.d.ts +0 -45
- package/lib/components/login/index.d.ts +0 -9
- package/lib/components/login/locales.d.ts +0 -24
- package/lib/components/pay/toC/PaymentList/serve.d.ts +0 -28
- package/lib/components/pay/toC/serve.d.ts +0 -34
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -3
- package/lib/components/productExtension/index.d.ts +0 -8
- package/lib/components/ruleSetting/index.d.ts +0 -10
- package/lib/components/schedules/index.d.ts +0 -3
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -4
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -4
- package/lib/components/shoppingCart/hooks/useContext.d.ts +0 -1
- package/lib/components/shoppingCart/locales.d.ts +0 -33
- package/lib/components/shoppingCart/mock.d.ts +0 -40
- package/lib/components/shoppingCart/status.d.ts +0 -2
- package/lib/components/shoppingCart/utils.d.ts +0 -63
- package/lib/components/taxSelect/index.d.ts +0 -12
- package/lib/components/wallet/Detail/locales.d.ts +0 -96
- package/lib/components/wallet/Detail/model.d.ts +0 -13
- package/lib/components/wallet/Detail/serve.d.ts +0 -39
- package/lib/components/wallet/DetailContext.d.ts +0 -25
- package/lib/components/wallet/DiscountCard/model.d.ts +0 -14
- package/lib/components/wallet/PointCard/model.d.ts +0 -13
- package/lib/components/wallet/RechargeableCard/model.d.ts +0 -29
- package/lib/components/wallet/RechargeableCard/serve.d.ts +0 -23
- package/lib/components/wallet/Voucher/locales.d.ts +0 -21
- package/lib/components/wallet/Voucher/model.d.ts +0 -13
- package/lib/components/wallet/components/FooterButtons/index.d.ts +0 -18
- package/lib/components/wallet/components/index.d.ts +0 -2
- package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -34
- package/lib/components/wallet/locales.d.ts +0 -132
- package/lib/components/wallet/model.d.ts +0 -37
- package/lib/components/wallet/serve.d.ts +0 -143
- package/lib/components/wallet/utils/formatUtils.d.ts +0 -36
- package/lib/components/walletList/model.d.ts +0 -6
- package/lib/components/walletList/serve.d.ts +0 -12
- package/lib/components/walletList/types/index.d.ts +0 -194
- package/lib/components/workSpaceList/components/WorkspaceItem/index.d.ts +0 -22
- package/lib/hooks/useEngineContext.d.ts +0 -10
- package/lib/utils/locales.d.ts +0 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
declare type SubTotalKey = 'deposit' | 'total' | 'sub_total' | 'tax' | 'delivery_fee' | 'discount' | 'point_deduction' | 'member_deduction' | 'custom' | string;
|
|
4
|
+
export interface SubTotalItem extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
key: SubTotalKey;
|
|
6
|
+
label?: string | React.ReactNode;
|
|
7
|
+
value: number;
|
|
8
|
+
count?: number;
|
|
9
|
+
hidden?: boolean;
|
|
10
|
+
tax?: {
|
|
11
|
+
rate?: number;
|
|
12
|
+
is_price_include_tax?: boolean;
|
|
13
|
+
title?: string;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
interface SubTotalProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
17
|
+
list: SubTotalItem[];
|
|
18
|
+
mode?: 'column1' | 'column2';
|
|
19
|
+
describe?: string;
|
|
20
|
+
}
|
|
21
|
+
declare const SubTotal: (props: SubTotalProps) => JSX.Element;
|
|
22
|
+
export default SubTotal;
|
|
@@ -451,7 +451,8 @@ var TicketBooking = () => {
|
|
|
451
451
|
persistent: state.persistent,
|
|
452
452
|
list: state.list,
|
|
453
453
|
intervalSetTime: state.intervalSetTime,
|
|
454
|
-
createCount: state.createCount
|
|
454
|
+
createCount: state.createCount,
|
|
455
|
+
bookingFunctions: state.bookingFunctions
|
|
455
456
|
});
|
|
456
457
|
if (type === "edit") {
|
|
457
458
|
initState.bookingDetail = data;
|
|
@@ -629,7 +630,8 @@ var TicketBooking = () => {
|
|
|
629
630
|
disableEventBookingEdit: state.disableEventBookingEdit,
|
|
630
631
|
list: state.list,
|
|
631
632
|
intervalSetTime: state.intervalSetTime,
|
|
632
|
-
createCount: state.createCount
|
|
633
|
+
createCount: state.createCount,
|
|
634
|
+
bookingFunctions: state.bookingFunctions
|
|
633
635
|
}),
|
|
634
636
|
loading: false,
|
|
635
637
|
open: open ?? false,
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
declare global {
|
|
4
|
+
interface Window {
|
|
5
|
+
PKPass?: any;
|
|
6
|
+
GoogleWalletPass?: any;
|
|
7
|
+
}
|
|
8
|
+
interface Navigator {
|
|
9
|
+
pkpass?: {
|
|
10
|
+
addPass(pass: any): Promise<string>;
|
|
11
|
+
};
|
|
12
|
+
googlewallet?: {
|
|
13
|
+
addPass(pass: any): Promise<string>;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
interface DetailProps {
|
|
18
|
+
detail: {
|
|
19
|
+
id?: string;
|
|
20
|
+
tag?: string;
|
|
21
|
+
code?: string;
|
|
22
|
+
product_title?: string;
|
|
23
|
+
encoded?: string;
|
|
24
|
+
balance?: number;
|
|
25
|
+
expire_date?: string;
|
|
26
|
+
product?: any;
|
|
27
|
+
machinecode_config?: any;
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
};
|
|
30
|
+
isDiscoundCard?: boolean;
|
|
31
|
+
showWalletBar?: boolean;
|
|
32
|
+
onBack?: () => void;
|
|
33
|
+
buttonGroupList?: any[][];
|
|
34
|
+
className?: string;
|
|
35
|
+
style?: React.CSSProperties;
|
|
36
|
+
addWalletCallback?: (addWallet: () => void) => void;
|
|
37
|
+
}
|
|
38
|
+
export interface WalletDetailRef {
|
|
39
|
+
addWalletCard: () => void;
|
|
40
|
+
}
|
|
41
|
+
declare const Detail: React.ForwardRefExoticComponent<DetailProps & React.RefAttributes<WalletDetailRef>>;
|
|
42
|
+
export default Detail;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IWalletListItemProps } from '../serve';
|
|
3
|
+
export interface WalletCardProps {
|
|
4
|
+
item: IWalletListItemProps;
|
|
5
|
+
currentId?: string | number;
|
|
6
|
+
isDiscountCard?: boolean;
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
balanceTitle?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: React.NamedExoticComponent<WalletCardProps>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,63 @@
|
|
|
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/utils/tasks/index.ts
|
|
20
|
+
var tasks_exports = {};
|
|
21
|
+
__export(tasks_exports, {
|
|
22
|
+
TasksManager: () => TasksManager
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(tasks_exports);
|
|
25
|
+
var import_utils = require("@pisell/utils");
|
|
26
|
+
var TasksManager = class {
|
|
27
|
+
tasks = [];
|
|
28
|
+
constructor() {
|
|
29
|
+
this.tasks = [];
|
|
30
|
+
}
|
|
31
|
+
add(code) {
|
|
32
|
+
this.tasks.push({
|
|
33
|
+
id: (0, import_utils.getUniqueId)(),
|
|
34
|
+
code
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
addTasks(codes) {
|
|
38
|
+
codes.forEach((code) => {
|
|
39
|
+
this.add(code);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
getTasks() {
|
|
43
|
+
return this.tasks;
|
|
44
|
+
}
|
|
45
|
+
async run() {
|
|
46
|
+
const task = this.tasks.shift();
|
|
47
|
+
if (!task) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
await task.code(this);
|
|
51
|
+
this.delete(task.id);
|
|
52
|
+
}
|
|
53
|
+
delete(id) {
|
|
54
|
+
this.tasks = this.tasks.filter((t) => t.id !== id);
|
|
55
|
+
}
|
|
56
|
+
clear() {
|
|
57
|
+
this.tasks = [];
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
61
|
+
0 && (module.exports = {
|
|
62
|
+
TasksManager
|
|
63
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
|
|
15
|
+
// src/utils/tasks/type.ts
|
|
16
|
+
var type_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(type_exports);
|
package/package.json
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface SalesProviderProps {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
hooks?: any;
|
|
5
|
-
config?: {
|
|
6
|
-
useSessionStorage?: boolean;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
interface SalesContextProps {
|
|
10
|
-
data: {
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
};
|
|
13
|
-
setData: any;
|
|
14
|
-
hooks: any;
|
|
15
|
-
setHooks: any;
|
|
16
|
-
getCurrentData: any;
|
|
17
|
-
setSessionStorage: () => void;
|
|
18
|
-
getSessionStorage: () => any;
|
|
19
|
-
removeSessionStorage: () => void;
|
|
20
|
-
}
|
|
21
|
-
export declare const SalesContext: React.Context<SalesContextProps>;
|
|
22
|
-
export declare const SalesProvider: React.FC<SalesProviderProps>;
|
|
23
|
-
export declare const useSales: () => SalesContextProps;
|
|
24
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useHooks: () => any;
|
|
File without changes
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TUpdateDisabledCartItem } from './types';
|
|
3
|
-
interface CartItem {
|
|
4
|
-
_id: string;
|
|
5
|
-
[key: string]: any;
|
|
6
|
-
}
|
|
7
|
-
interface CartData {
|
|
8
|
-
cartItems: CartItem[];
|
|
9
|
-
currentCartItem: CartItem | null;
|
|
10
|
-
}
|
|
11
|
-
interface CartContextType {
|
|
12
|
-
createCartItem: () => CartItem;
|
|
13
|
-
createCartItemFromEvent: (eventItem: any) => CartItem;
|
|
14
|
-
createCartItemFromHolder: (holderItem: any) => CartItem;
|
|
15
|
-
addToCart: () => void;
|
|
16
|
-
updateCartItem: (cartItem: CartItem) => CartItem;
|
|
17
|
-
deleteCartItem: (cartItem: CartItem) => void;
|
|
18
|
-
clickCartItem: (cartItem: CartItem) => void;
|
|
19
|
-
updateCurrentCartItem: (cartItem: Partial<CartItem>) => void;
|
|
20
|
-
clearCurrentCartItem: () => void;
|
|
21
|
-
currentCartItem: CartItem | null;
|
|
22
|
-
checkHolder: () => boolean;
|
|
23
|
-
cartData: CartData;
|
|
24
|
-
openCart: boolean;
|
|
25
|
-
onOpenCart: any;
|
|
26
|
-
onCloseCart: any;
|
|
27
|
-
deleteCartItemByHolder: (holder_id: number) => void;
|
|
28
|
-
addHolderToCartItem: (holderItem: any) => void;
|
|
29
|
-
cartDataHolderList: any;
|
|
30
|
-
addNoteToCartItem: (cartItem: CartItem) => void;
|
|
31
|
-
updateDisabledCartItem: TUpdateDisabledCartItem;
|
|
32
|
-
getWithoutCartItemsHolderNames: () => Array<string>;
|
|
33
|
-
checkBeforeAddToCartResquest: any;
|
|
34
|
-
checkBeforeAddToCart: () => Promise<{
|
|
35
|
-
result: boolean;
|
|
36
|
-
num: number;
|
|
37
|
-
}>;
|
|
38
|
-
}
|
|
39
|
-
interface CartProviderProps {
|
|
40
|
-
children: React.ReactNode;
|
|
41
|
-
}
|
|
42
|
-
export declare const CartContext: React.Context<CartContextType | undefined>;
|
|
43
|
-
export declare const CartProvider: React.FC<CartProviderProps>;
|
|
44
|
-
/**
|
|
45
|
-
* 使用步骤管理的Hook
|
|
46
|
-
* @throws {Error} 如果在StepProvider外部使用会抛出错误
|
|
47
|
-
* @returns {StepContextType} 步骤管理上下文
|
|
48
|
-
*/
|
|
49
|
-
export declare const useCart: () => CartContextType;
|
|
50
|
-
declare const _default: {
|
|
51
|
-
defaultState: CartData;
|
|
52
|
-
};
|
|
53
|
-
export default _default;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* available_capacity(容量)、deadline_day(截止日期)、future_day(预定天数)
|
|
3
|
-
*/
|
|
4
|
-
export declare type TCartItemUnavailableType = 'available_capacity' | 'deadline_day' | 'future_day';
|
|
5
|
-
/**
|
|
6
|
-
* 商品不可用原因
|
|
7
|
-
*/
|
|
8
|
-
export interface IUnavailableResult {
|
|
9
|
-
event_unique_identifier: number;
|
|
10
|
-
relation_id: number;
|
|
11
|
-
product_id: number;
|
|
12
|
-
details?: Array<{
|
|
13
|
-
type: TCartItemUnavailableType;
|
|
14
|
-
}>;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* 更新失效的购物车商品
|
|
18
|
-
*/
|
|
19
|
-
export declare type TUpdateDisabledCartItem = (list: Array<IUnavailableResult>) => void;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface CheckoutData {
|
|
3
|
-
}
|
|
4
|
-
interface PayProps {
|
|
5
|
-
order_id: string;
|
|
6
|
-
amount: number;
|
|
7
|
-
sale_channel?: string;
|
|
8
|
-
}
|
|
9
|
-
interface CheckoutContextType {
|
|
10
|
-
onCheckBeforeBooking: (data: any) => Promise<{
|
|
11
|
-
result: boolean;
|
|
12
|
-
num: number;
|
|
13
|
-
}>;
|
|
14
|
-
onCheckout: (data: any) => Promise<any>;
|
|
15
|
-
onPay: (payProps: PayProps) => void;
|
|
16
|
-
createBooking: any;
|
|
17
|
-
checkBeforeBooking: any;
|
|
18
|
-
}
|
|
19
|
-
interface CheckoutProviderProps {
|
|
20
|
-
children: React.ReactNode;
|
|
21
|
-
}
|
|
22
|
-
export declare const CheckoutContext: React.Context<CheckoutContextType | undefined>;
|
|
23
|
-
export declare const CheckoutProvider: React.FC<CheckoutProviderProps>;
|
|
24
|
-
/**
|
|
25
|
-
* 使用步骤管理的Hook
|
|
26
|
-
* @throws {Error} 如果在StepProvider外部使用会抛出错误
|
|
27
|
-
* @returns {StepContextType} 步骤管理上下文
|
|
28
|
-
*/
|
|
29
|
-
export declare const useCheckout: () => CheckoutContextType;
|
|
30
|
-
declare const _default: {
|
|
31
|
-
defaultState: CheckoutData;
|
|
32
|
-
};
|
|
33
|
-
export default _default;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @title: 套餐单规格信息
|
|
3
|
-
* @description:
|
|
4
|
-
* @param {any} option
|
|
5
|
-
* @return {*}
|
|
6
|
-
* @Author: zhiwei.Wang
|
|
7
|
-
* @Date: 2024-02-19 09:26
|
|
8
|
-
*/
|
|
9
|
-
export declare const formatProductOption: (option: any) => any;
|
|
10
|
-
/**
|
|
11
|
-
* @title: 套餐信息
|
|
12
|
-
* @description:
|
|
13
|
-
* @param {any} bundle
|
|
14
|
-
* @return {*}
|
|
15
|
-
* @Author: zhiwei.Wang
|
|
16
|
-
* @Date: 2024-02-19 09:26
|
|
17
|
-
*/
|
|
18
|
-
export declare const formatProductBundle: (bundle: any) => any;
|
|
19
|
-
/**
|
|
20
|
-
* @title: 格式化下单接口数据
|
|
21
|
-
* @description:
|
|
22
|
-
* @param {any} state saledModel数据源
|
|
23
|
-
* @param {boolean} excludeDisabled 是否需要排除购物车中失效商品
|
|
24
|
-
* @Author: xiangfeng.xue
|
|
25
|
-
* @Date: 2025-01-21 17:57
|
|
26
|
-
*/
|
|
27
|
-
export declare const formatValues: (state: any, excludeDisabled?: boolean) => any;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface CustomerData {
|
|
3
|
-
}
|
|
4
|
-
interface CustomerContextType {
|
|
5
|
-
appUtils: any;
|
|
6
|
-
isLogin: () => boolean;
|
|
7
|
-
openLoginModal: (params: any) => void;
|
|
8
|
-
getUserInfo: () => any;
|
|
9
|
-
}
|
|
10
|
-
interface CustomerProviderProps {
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
}
|
|
13
|
-
export declare const CustomerContext: React.Context<CustomerContextType | undefined>;
|
|
14
|
-
export declare const CustomerProvider: React.FC<CustomerProviderProps>;
|
|
15
|
-
/**
|
|
16
|
-
* 使用步骤管理的Hook
|
|
17
|
-
* @throws {Error} 如果在StepProvider外部使用会抛出错误
|
|
18
|
-
* @returns {StepContextType} 步骤管理上下文
|
|
19
|
-
*/
|
|
20
|
-
export declare const useCustomer: () => CustomerContextType;
|
|
21
|
-
declare const _default: {
|
|
22
|
-
defaultState: CustomerData;
|
|
23
|
-
};
|
|
24
|
-
export default _default;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface EventDetailContextType {
|
|
3
|
-
detail: any;
|
|
4
|
-
open: boolean;
|
|
5
|
-
onOpenEventDetail: (eventItem: any) => void;
|
|
6
|
-
onCloseEventDetail: () => void;
|
|
7
|
-
onSelectEventDetail: () => void;
|
|
8
|
-
selectEventDetailBookingOptions: (v: any) => void;
|
|
9
|
-
getEventDetailSelectDate: {
|
|
10
|
-
run: (id: number, params: any) => void;
|
|
11
|
-
loading: boolean;
|
|
12
|
-
data?: any;
|
|
13
|
-
};
|
|
14
|
-
currentBookingOption: any;
|
|
15
|
-
}
|
|
16
|
-
interface EventDetailProviderProps {
|
|
17
|
-
children: React.ReactNode;
|
|
18
|
-
}
|
|
19
|
-
export declare const EventDetailContext: React.Context<EventDetailContextType | undefined>;
|
|
20
|
-
export declare const EventDetailProvider: React.FC<EventDetailProviderProps>;
|
|
21
|
-
/**
|
|
22
|
-
* 使用步骤管理的Hook
|
|
23
|
-
* @throws {Error} 如果在StepProvider外部使用会抛出错误
|
|
24
|
-
* @returns {StepContextType} 步骤管理上下文
|
|
25
|
-
*/
|
|
26
|
-
export declare const useEventDetail: () => EventDetailContextType;
|
|
27
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @title: 获取活动列表
|
|
3
|
-
* @description: https://menutech.w.eolink.com/home/api-studio/inside/K2bI3n465fe7244b3dbd6679d87caedfbb0636bf8c29eda/api/3102494/detail/55349999?spaceKey=menutech
|
|
4
|
-
* @param {any} params
|
|
5
|
-
* @return {*}
|
|
6
|
-
* @Author: zhiwei.Wang
|
|
7
|
-
*/
|
|
8
|
-
export declare const getEventListApi: (params: {
|
|
9
|
-
event_item_resource_id: number | string;
|
|
10
|
-
title?: string;
|
|
11
|
-
skip?: number;
|
|
12
|
-
num?: number;
|
|
13
|
-
}) => Promise<any>;
|
|
14
|
-
export declare const getEventDetailIntroductionApi: (eventItemId: number | string) => Promise<any>;
|
|
15
|
-
export declare const getEventDetailTeacherApi: (params: {
|
|
16
|
-
event_item_id: number | string;
|
|
17
|
-
}) => Promise<any>;
|
|
18
|
-
export declare const getEventDetailBookingOptionsApi: (params: {
|
|
19
|
-
ids: number | string;
|
|
20
|
-
num: number;
|
|
21
|
-
skip: number;
|
|
22
|
-
}) => Promise<any>;
|
|
23
|
-
export declare const getEventDetailSelectDateApi: (id: number | string, params: {
|
|
24
|
-
days: number;
|
|
25
|
-
start_date?: string;
|
|
26
|
-
}) => Promise<any>;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface HolderData {
|
|
3
|
-
}
|
|
4
|
-
interface HolderContextType {
|
|
5
|
-
holderData: HolderData;
|
|
6
|
-
getHolderList: any;
|
|
7
|
-
selectHolder: any;
|
|
8
|
-
open: boolean;
|
|
9
|
-
onOpenCreateHolder: any;
|
|
10
|
-
onHolderOpen: any;
|
|
11
|
-
onHolderClose: any;
|
|
12
|
-
createHolder: any;
|
|
13
|
-
selectedHolderIds: any;
|
|
14
|
-
refreshHolder: () => void;
|
|
15
|
-
deleteHolderById: (holderId: number) => void;
|
|
16
|
-
updateHolderList: (holerItem: any) => void;
|
|
17
|
-
defaultSelectedHolder: any;
|
|
18
|
-
}
|
|
19
|
-
interface HolderProviderProps {
|
|
20
|
-
children: React.ReactNode;
|
|
21
|
-
}
|
|
22
|
-
export declare const HolderContext: React.Context<HolderContextType | undefined>;
|
|
23
|
-
export declare const HolderProvider: React.FC<HolderProviderProps>;
|
|
24
|
-
/**
|
|
25
|
-
* 使用步骤管理的Hook
|
|
26
|
-
* @throws {Error} 如果在StepProvider外部使用会抛出错误
|
|
27
|
-
* @returns {StepContextType} 步骤管理上下文
|
|
28
|
-
*/
|
|
29
|
-
export declare const useHolder: () => HolderContextType;
|
|
30
|
-
declare const _default: {
|
|
31
|
-
defaultState: HolderData;
|
|
32
|
-
};
|
|
33
|
-
export default _default;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface InitData {
|
|
3
|
-
boardSetting?: any;
|
|
4
|
-
form_id?: number;
|
|
5
|
-
shop_id?: number;
|
|
6
|
-
shop?: any;
|
|
7
|
-
}
|
|
8
|
-
interface InitContextType {
|
|
9
|
-
getBoardSetting: any;
|
|
10
|
-
initData: InitData;
|
|
11
|
-
resetInitPartData: () => void;
|
|
12
|
-
}
|
|
13
|
-
interface InitProviderProps {
|
|
14
|
-
children: React.ReactNode;
|
|
15
|
-
}
|
|
16
|
-
export declare const InitContext: React.Context<InitContextType | undefined>;
|
|
17
|
-
export declare const InitProvider: React.FC<InitProviderProps>;
|
|
18
|
-
/**
|
|
19
|
-
* 使用步骤管理的Hook
|
|
20
|
-
* @throws {Error} 如果在StepProvider外部使用会抛出错误
|
|
21
|
-
* @returns {StepContextType} 步骤管理上下文
|
|
22
|
-
*/
|
|
23
|
-
export declare const useInit: () => InitContextType;
|
|
24
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface ResourceData {
|
|
3
|
-
}
|
|
4
|
-
interface ResourceContextType {
|
|
5
|
-
getResourceList: {
|
|
6
|
-
run: (params: any) => void;
|
|
7
|
-
loading: boolean;
|
|
8
|
-
data?: any;
|
|
9
|
-
};
|
|
10
|
-
selectResource: (newResourceData: Partial<ResourceData>) => void;
|
|
11
|
-
}
|
|
12
|
-
interface ResourceProviderProps {
|
|
13
|
-
children: React.ReactNode;
|
|
14
|
-
}
|
|
15
|
-
export declare const ResourceContext: React.Context<ResourceContextType | undefined>;
|
|
16
|
-
export declare const ResourceProvider: React.FC<ResourceProviderProps>;
|
|
17
|
-
/**
|
|
18
|
-
* 使用步骤管理的Hook
|
|
19
|
-
* @throws {Error} 如果在StepProvider外部使用会抛出错误
|
|
20
|
-
* @returns {StepContextType} 步骤管理上下文
|
|
21
|
-
*/
|
|
22
|
-
export declare const useResource: () => ResourceContextType;
|
|
23
|
-
declare const _default: {
|
|
24
|
-
defaultState: ResourceData;
|
|
25
|
-
};
|
|
26
|
-
export default _default;
|