@pisell/private-materials 6.3.75 → 6.3.76
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 +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/Sales/Cart/index.d.ts +53 -0
- package/es/components/Sales/Cart/utils.d.ts +68 -0
- package/es/components/Sales/Event/Detail.d.ts +30 -0
- package/es/components/Sales/Summary/index.d.ts +35 -0
- package/es/components/Sales/Summary/utils.d.ts +51 -0
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/ConfirmInformation/index.d.ts +4 -0
- package/es/components/appointmentBooking/components/Content/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/Date/index.d.ts +4 -0
- package/es/components/appointmentBooking/components/Header/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/Header/index.js +12 -12
- package/es/components/appointmentBooking/components/Services/index.d.ts +4 -0
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +2 -0
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.js +82 -0
- package/es/components/appointmentBooking/components/TimeSlicing/index.js +46 -5
- package/es/components/appointmentBooking/hooks.d.ts +107 -0
- package/es/components/appointmentBooking/hooks.js +6 -13
- package/es/components/appointmentBooking/index.d.ts +3 -0
- package/es/components/appointmentBooking/locales.d.ts +363 -0
- package/es/components/appointmentBooking/utils.d.ts +23 -0
- package/es/components/appointmentBooking/utils.js +159 -0
- package/es/components/authentication/admin/AuthMethods/SettingList.d.ts +5 -0
- package/es/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +22 -0
- package/es/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
- package/es/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +13 -0
- package/es/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
- package/es/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +14 -0
- package/es/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +13 -0
- package/es/components/authentication/admin/AuthMethods/components/index.d.ts +10 -0
- package/es/components/authentication/admin/AuthMethods/constants.d.ts +22 -0
- package/es/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
- package/es/components/authentication/admin/AuthMethods/types.d.ts +76 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
- package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
- package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
- package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
- package/es/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
- package/es/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
- package/es/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/index.d.ts +6 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
- package/es/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
- package/es/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
- package/es/components/authentication/admin/OAuthConfig/index.d.ts +6 -0
- package/es/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
- package/es/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
- package/es/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
- package/es/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
- package/es/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
- package/es/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
- package/es/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
- package/es/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
- package/es/components/authentication/admin/index.d.ts +26 -0
- package/es/components/authentication/index.d.ts +0 -0
- package/es/components/booking/addons/index.d.ts +17 -0
- package/es/components/booking/components/customSelect/index.d.ts +38 -0
- package/es/components/booking/components/reloadResourceModal/index.d.ts +8 -0
- package/es/components/booking/components/tabPane/index.d.ts +4 -0
- package/es/components/booking/dashboard/serve.d.ts +1 -0
- package/es/components/booking/deposit/ClientItem/index.d.ts +18 -0
- package/es/components/booking/deposit/DepositItem/index.d.ts +25 -0
- package/es/components/booking/deposit/index.d.ts +2 -0
- package/es/components/booking/editBookingModal/utils.d.ts +12 -0
- package/es/components/booking/forms/forms.d.ts +30 -0
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/forms/serve.d.ts +18 -0
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/es/components/booking/info/addServiceVariant/index.d.ts +6 -0
- package/es/components/booking/info/client/index.d.ts +4 -0
- package/es/components/booking/info/client/serve.d.ts +2 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +43 -0
- package/es/components/booking/info/clientVariant/utils.d.ts +1 -0
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +25 -0
- package/es/components/booking/info/date/index.d.ts +4 -0
- package/es/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +9 -0
- package/es/components/booking/info/index.d.ts +3 -0
- package/es/components/booking/info/model.d.ts +5 -0
- package/es/components/booking/info/pet/serve.d.ts +1 -0
- package/es/components/booking/info/service/addTimeModal/index.d.ts +3 -0
- package/es/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
- package/es/components/booking/info/service/addTimeModal/utils.d.ts +31 -0
- package/es/components/booking/info/service/editService/constants.d.ts +1 -0
- package/es/components/booking/info/service/serve.d.ts +20 -0
- package/es/components/booking/info/service/serviceList/index.d.ts +5 -0
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/index.d.ts +12 -0
- package/es/components/booking/info2/serve.d.ts +6 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +98 -0
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
- package/es/components/booking/info2/service/editService/utils.d.ts +13 -0
- package/es/components/booking/info2/service/index.d.ts +4 -0
- package/es/components/booking/info2/service/serviceList/index.d.ts +5 -0
- package/es/components/booking/info2/utilsByBooking.d.ts +35 -0
- package/es/components/booking/locales.d.ts +843 -0
- package/es/components/booking/model.d.ts +112 -0
- package/es/components/booking/notes/addNote/index.d.ts +3 -0
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/eftposPay/app.d.ts +10 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +3 -0
- package/es/components/eftposPay/component/fail/index.d.ts +3 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +9 -0
- package/es/components/eftposPay/const.d.ts +184 -0
- package/es/components/eftposPay/device.d.ts +23 -0
- package/es/components/eftposPay/hooks.d.ts +35 -0
- package/es/components/eftposPay/index.d.ts +4 -0
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/es/components/eftposPay/linkly/index.d.ts +2 -0
- package/es/components/eftposPay/locales.d.ts +330 -0
- package/es/components/eftposPay/manufacturer.d.ts +7 -0
- package/es/components/eftposPay/pay.d.ts +20 -0
- package/es/components/eftposPay/payo/config.d.ts +12 -0
- package/es/components/eftposPay/payo/payment.d.ts +66 -0
- package/es/components/eftposPay/store/index.d.ts +355 -0
- package/es/components/eftposPay/tyro/index.d.ts +9 -0
- package/es/components/eftposPay/utils/log/index.d.ts +110 -0
- package/es/components/eftposPay/windcave/helper.d.ts +23 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +3 -0
- package/es/components/eventBooking/components/Voucher/components/locales.d.ts +39 -0
- package/es/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
- package/es/components/eventBooking/index.d.ts +3 -0
- package/es/components/index.d.ts +24 -0
- package/es/components/kioskSkuDetail/locales.d.ts +27 -0
- package/es/components/pay/toC/PaymentList/serve.d.ts +28 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +155 -0
- package/es/components/pay/toC/PaymentMethods/hooks/index.d.ts +19 -0
- package/es/components/pay/toC/PaymentMethods/index.d.ts +9 -0
- package/es/components/pay/toC/locales.d.ts +307 -0
- package/es/components/pay/toC/model.d.ts +32 -0
- package/es/components/pay/toC/serve.d.ts +62 -0
- package/es/components/pay/toC/status.d.ts +13 -0
- package/es/components/pay/toC/utils.d.ts +57 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +2 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +3 -0
- package/es/components/ruleSetting/index.d.ts +9 -0
- package/es/components/ruleSetting/locales.d.ts +48 -0
- package/es/components/ruleSetting/server.d.ts +4 -0
- package/es/components/shoppingCart/locales.d.ts +33 -0
- package/es/components/shoppingCart/type.d.ts +48 -0
- package/es/components/subTotal/locales.d.ts +42 -0
- package/es/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
- package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
- package/es/components/systemSettings/registry/components/index.d.ts +4 -0
- package/es/components/systemSettings/registry/locales.d.ts +272 -0
- package/es/components/systemSettings/registry/services.d.ts +77 -0
- package/es/components/systemSettings/registry/types.d.ts +126 -0
- package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
- package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +6 -0
- package/es/components/ticketBooking/index.d.ts +7 -0
- package/es/components/ticketBooking/locales.d.ts +174 -0
- package/es/components/ticketBooking/serve.d.ts +287 -0
- package/es/components/wallet/utils.d.ts +48 -0
- package/es/components/walletList/locales.d.ts +27 -0
- package/es/components/walletList/serve.d.ts +43 -0
- package/es/components/walletList/types/index.d.ts +194 -0
- package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
- package/es/components/workSpaceList/components/Card/constants.d.ts +2 -0
- package/es/components/workSpaceList/components/WorkspaceItem/index.d.ts +22 -0
- package/es/hooks/useEngineContext.d.ts +10 -0
- package/es/hooks/useWindowSize.d.ts +5 -0
- package/es/index.d.ts +66 -0
- package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/es/plus/contactInfo/locales.d.ts +15 -0
- package/es/plus/contactInfo/types.d.ts +91 -0
- package/es/plus/contactInfo/utils.d.ts +7 -0
- package/es/plus/contactInfoModal/locales.d.ts +66 -0
- package/es/plus/productSelect/CategoryTabs/index.d.ts +21 -0
- package/es/plus/productSelect/ProductCard/index.d.ts +47 -0
- package/es/plus/productSelect/ProductList/gridComponents.d.ts +44 -0
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
- package/es/plus/productSelect/utils.d.ts +39 -0
- package/es/plus/selectHolder/locales.d.ts +21 -0
- package/es/plus/selectHolder/types.d.ts +104 -0
- package/es/plus/selectHolder/utils.d.ts +9 -0
- package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +5 -0
- package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +3 -0
- package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +3 -0
- package/es/plus/skuOptionsSelection/hooks/index.d.ts +3 -0
- package/es/plus/skuOptionsSelection/hooks/useLanguage.d.ts +2 -0
- package/es/plus/skuOptionsSelection/hooks/useStore.d.ts +2 -0
- package/es/plus/skuOptionsSelection/hooks/useSymbol.d.ts +2 -0
- package/es/plus/skuOptionsSelection/index.d.ts +5 -0
- package/es/plus/skuOptionsSelection/locales.d.ts +33 -0
- package/es/plus/skuOptionsSelection/store/actions.d.ts +22 -0
- package/es/plus/skuOptionsSelection/store/createStore.d.ts +15 -0
- package/es/plus/skuOptionsSelection/store/index.d.ts +2 -0
- package/es/plus/skuOptionsSelection/store/store.d.ts +4 -0
- package/es/plus/skuOptionsSelection/types.d.ts +429 -0
- package/es/plus/skuOptionsSelection/utils/calculateOption.d.ts +6 -0
- package/es/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +37 -0
- package/es/plus/skuOptionsSelection/utils/index.d.ts +7 -0
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
- package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/es/plus/walletEditor/components/JsonEditor/index.d.ts +11 -0
- package/es/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +20 -0
- package/es/plus/walletEditor/components/relationProduct/index.d.ts +6 -0
- package/es/plus/walletEditor/index.d.ts +3 -0
- package/es/plus/walletEditor/locales.d.ts +135 -0
- package/es/plus/walletEditor/types.d.ts +52 -0
- package/es/plus/walletPassGallery/locales.d.ts +285 -0
- package/es/plus/walletPassGallery/serve.d.ts +243 -0
- package/es/plus/walletPassGallery/utils.d.ts +48 -0
- package/es/pro/Cards/index.d.ts +1 -0
- package/es/pro/Login2.0/components/LegalTerms.d.ts +8 -0
- package/es/pro/Login2.0/components/PhoneInput.d.ts +53 -0
- package/es/pro/Login2.0/components/phoneValidation.d.ts +17 -0
- package/es/pro/Login2.0/hooks/index.d.ts +2 -0
- package/es/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
- package/es/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
- package/es/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
- package/es/pro/Login2.0/locales.d.ts +543 -0
- package/es/pro/Login2.0/shared/Header.d.ts +11 -0
- package/es/pro/Login2.0/shared/registerFlow.d.ts +116 -0
- package/es/pro/Login2.0/shared/types.d.ts +232 -0
- package/es/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +12 -0
- package/es/pro/Login2.0/steps/VerificationSuccess.d.ts +8 -0
- package/es/pro/Login2.0/steps/VerifyingEmailLink.d.ts +7 -0
- package/es/pro/Login2.0/steps/WaitEmailLink.d.ts +18 -0
- package/es/pro/Login2.0/steps/index.d.ts +19 -0
- package/es/pro/Login2.0/types.d.ts +167 -0
- package/es/pro/NumericStepper/index.d.ts +43 -0
- package/es/pro/Selector/BatchSelectorDemo.d.ts +3 -0
- package/es/pro/Selector/Item.d.ts +14 -0
- package/es/pro/Selector/Selector.d.ts +14 -0
- package/es/pro/Selector/Selector.stories.d.ts +78 -0
- package/es/pro/Selector/SelectorGroup.d.ts +11 -0
- package/es/pro/Selector/components/Card/index.d.ts +57 -0
- package/es/pro/Selector/components/Card/types.d.ts +1 -0
- package/es/pro/Selector/components/Indicator/index.d.ts +19 -0
- package/es/pro/Selector/components/IntersectionObserver.d.ts +105 -0
- package/es/pro/Selector/components/LayoutContainer/index.d.ts +16 -0
- package/es/pro/Selector/components/Media/index.d.ts +6 -0
- package/es/pro/Selector/components/Media/types.d.ts +47 -0
- package/es/pro/Selector/components/index.d.ts +4 -0
- package/es/pro/Selector/demo.d.ts +2 -0
- package/es/pro/Selector/hooks/usePresetItemProps.d.ts +43 -0
- package/es/pro/Selector/hooks/usePresetProps.d.ts +24 -0
- package/es/pro/Selector/hooks/useSelectionController.d.ts +49 -0
- package/es/pro/Selector/index.d.ts +11 -0
- package/es/pro/Selector/locales.d.ts +36 -0
- package/es/pro/Selector/types.d.ts +173 -0
- package/es/pro/Selector/utils/index.d.ts +49 -0
- package/es/pro/numberKeyboard/locales.d.ts +12 -0
- package/es/pro/pisellNumberSelector/example.d.ts +3 -0
- package/es/pro/pisellPaymentList/example.d.ts +19 -0
- package/es/test/setup.d.ts +1 -0
- package/lib/components/Sales/Cart/index.d.ts +53 -0
- package/lib/components/Sales/Cart/utils.d.ts +68 -0
- package/lib/components/Sales/Event/Detail.d.ts +30 -0
- package/lib/components/Sales/Summary/index.d.ts +35 -0
- package/lib/components/Sales/Summary/utils.d.ts +51 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.d.ts +4 -0
- package/lib/components/appointmentBooking/components/Content/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Date/index.d.ts +4 -0
- package/lib/components/appointmentBooking/components/Header/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/Header/index.js +3 -8
- package/lib/components/appointmentBooking/components/Services/index.d.ts +4 -0
- package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +2 -0
- package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.js +89 -0
- package/lib/components/appointmentBooking/components/TimeSlicing/index.js +27 -7
- package/lib/components/appointmentBooking/hooks.d.ts +107 -0
- package/lib/components/appointmentBooking/hooks.js +6 -11
- package/lib/components/appointmentBooking/index.d.ts +3 -0
- package/lib/components/appointmentBooking/locales.d.ts +363 -0
- package/lib/components/appointmentBooking/utils.d.ts +23 -0
- package/lib/components/appointmentBooking/utils.js +103 -0
- package/lib/components/authentication/admin/AuthMethods/SettingList.d.ts +5 -0
- package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +22 -0
- package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
- package/lib/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +13 -0
- package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
- package/lib/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +14 -0
- package/lib/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +13 -0
- package/lib/components/authentication/admin/AuthMethods/components/index.d.ts +10 -0
- package/lib/components/authentication/admin/AuthMethods/constants.d.ts +22 -0
- package/lib/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
- package/lib/components/authentication/admin/AuthMethods/types.d.ts +76 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
- package/lib/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
- package/lib/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/index.d.ts +6 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
- package/lib/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
- package/lib/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
- package/lib/components/authentication/admin/OAuthConfig/index.d.ts +6 -0
- package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
- package/lib/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
- package/lib/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
- package/lib/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
- package/lib/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
- package/lib/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
- package/lib/components/authentication/admin/index.d.ts +26 -0
- package/lib/components/authentication/index.d.ts +0 -0
- package/lib/components/booking/addons/index.d.ts +17 -0
- package/lib/components/booking/components/customSelect/index.d.ts +38 -0
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +8 -0
- package/lib/components/booking/components/tabPane/index.d.ts +4 -0
- package/lib/components/booking/dashboard/serve.d.ts +1 -0
- package/lib/components/booking/deposit/ClientItem/index.d.ts +18 -0
- package/lib/components/booking/deposit/DepositItem/index.d.ts +25 -0
- package/lib/components/booking/deposit/index.d.ts +2 -0
- package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
- package/lib/components/booking/forms/forms.d.ts +30 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/forms/serve.d.ts +18 -0
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
- package/lib/components/booking/info/addServiceVariant/index.d.ts +6 -0
- package/lib/components/booking/info/client/index.d.ts +4 -0
- package/lib/components/booking/info/client/serve.d.ts +2 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +43 -0
- package/lib/components/booking/info/clientVariant/utils.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +25 -0
- package/lib/components/booking/info/date/index.d.ts +4 -0
- package/lib/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +9 -0
- package/lib/components/booking/info/index.d.ts +3 -0
- package/lib/components/booking/info/model.d.ts +5 -0
- package/lib/components/booking/info/pet/serve.d.ts +1 -0
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +3 -0
- package/lib/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
- package/lib/components/booking/info/service/addTimeModal/utils.d.ts +31 -0
- package/lib/components/booking/info/service/editService/constants.d.ts +1 -0
- package/lib/components/booking/info/service/serve.d.ts +20 -0
- package/lib/components/booking/info/service/serviceList/index.d.ts +5 -0
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/index.d.ts +12 -0
- package/lib/components/booking/info2/serve.d.ts +6 -0
- package/lib/components/booking/info2/service/addService/utils.d.ts +98 -0
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
- package/lib/components/booking/info2/service/editService/utils.d.ts +13 -0
- package/lib/components/booking/info2/service/index.d.ts +4 -0
- package/lib/components/booking/info2/service/serviceList/index.d.ts +5 -0
- package/lib/components/booking/info2/utilsByBooking.d.ts +35 -0
- package/lib/components/booking/locales.d.ts +843 -0
- package/lib/components/booking/model.d.ts +112 -0
- package/lib/components/booking/notes/addNote/index.d.ts +3 -0
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/eftposPay/app.d.ts +10 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +3 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +3 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +9 -0
- package/lib/components/eftposPay/const.d.ts +184 -0
- package/lib/components/eftposPay/device.d.ts +23 -0
- package/lib/components/eftposPay/hooks.d.ts +35 -0
- package/lib/components/eftposPay/index.d.ts +4 -0
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/lib/components/eftposPay/linkly/index.d.ts +2 -0
- package/lib/components/eftposPay/locales.d.ts +330 -0
- package/lib/components/eftposPay/manufacturer.d.ts +7 -0
- package/lib/components/eftposPay/pay.d.ts +20 -0
- package/lib/components/eftposPay/payo/config.d.ts +12 -0
- package/lib/components/eftposPay/payo/payment.d.ts +66 -0
- package/lib/components/eftposPay/store/index.d.ts +355 -0
- package/lib/components/eftposPay/tyro/index.d.ts +9 -0
- package/lib/components/eftposPay/utils/log/index.d.ts +110 -0
- package/lib/components/eftposPay/windcave/helper.d.ts +23 -0
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +3 -0
- package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +39 -0
- package/lib/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
- package/lib/components/eventBooking/index.d.ts +3 -0
- package/lib/components/index.d.ts +24 -0
- package/lib/components/kioskSkuDetail/locales.d.ts +27 -0
- package/lib/components/pay/toC/PaymentList/serve.d.ts +28 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +155 -0
- package/lib/components/pay/toC/PaymentMethods/hooks/index.d.ts +19 -0
- package/lib/components/pay/toC/PaymentMethods/index.d.ts +9 -0
- package/lib/components/pay/toC/locales.d.ts +307 -0
- package/lib/components/pay/toC/model.d.ts +32 -0
- package/lib/components/pay/toC/serve.d.ts +62 -0
- package/lib/components/pay/toC/status.d.ts +13 -0
- package/lib/components/pay/toC/utils.d.ts +57 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +2 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +3 -0
- package/lib/components/ruleSetting/index.d.ts +9 -0
- package/lib/components/ruleSetting/locales.d.ts +48 -0
- package/lib/components/ruleSetting/server.d.ts +4 -0
- package/lib/components/shoppingCart/locales.d.ts +33 -0
- package/lib/components/shoppingCart/type.d.ts +48 -0
- package/lib/components/subTotal/locales.d.ts +42 -0
- package/lib/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/index.d.ts +4 -0
- package/lib/components/systemSettings/registry/locales.d.ts +272 -0
- package/lib/components/systemSettings/registry/services.d.ts +77 -0
- package/lib/components/systemSettings/registry/types.d.ts +126 -0
- package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
- package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +6 -0
- package/lib/components/ticketBooking/index.d.ts +7 -0
- package/lib/components/ticketBooking/locales.d.ts +174 -0
- package/lib/components/ticketBooking/serve.d.ts +287 -0
- package/lib/components/wallet/utils.d.ts +48 -0
- package/lib/components/walletList/locales.d.ts +27 -0
- package/lib/components/walletList/serve.d.ts +43 -0
- package/lib/components/walletList/types/index.d.ts +194 -0
- package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
- package/lib/components/workSpaceList/components/Card/constants.d.ts +2 -0
- package/lib/components/workSpaceList/components/WorkspaceItem/index.d.ts +22 -0
- package/lib/hooks/useEngineContext.d.ts +10 -0
- package/lib/hooks/useWindowSize.d.ts +5 -0
- package/lib/index.d.ts +66 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/lib/plus/contactInfo/locales.d.ts +15 -0
- package/lib/plus/contactInfo/types.d.ts +91 -0
- package/lib/plus/contactInfo/utils.d.ts +7 -0
- package/lib/plus/contactInfoModal/locales.d.ts +66 -0
- package/lib/plus/productSelect/CategoryTabs/index.d.ts +21 -0
- package/lib/plus/productSelect/ProductCard/index.d.ts +47 -0
- package/lib/plus/productSelect/ProductList/gridComponents.d.ts +44 -0
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
- package/lib/plus/productSelect/utils.d.ts +39 -0
- package/lib/plus/selectHolder/locales.d.ts +21 -0
- package/lib/plus/selectHolder/types.d.ts +104 -0
- package/lib/plus/selectHolder/utils.d.ts +9 -0
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +5 -0
- package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +3 -0
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +3 -0
- package/lib/plus/skuOptionsSelection/hooks/index.d.ts +3 -0
- package/lib/plus/skuOptionsSelection/hooks/useLanguage.d.ts +2 -0
- package/lib/plus/skuOptionsSelection/hooks/useStore.d.ts +2 -0
- package/lib/plus/skuOptionsSelection/hooks/useSymbol.d.ts +2 -0
- package/lib/plus/skuOptionsSelection/index.d.ts +5 -0
- package/lib/plus/skuOptionsSelection/locales.d.ts +33 -0
- package/lib/plus/skuOptionsSelection/store/actions.d.ts +22 -0
- package/lib/plus/skuOptionsSelection/store/createStore.d.ts +15 -0
- package/lib/plus/skuOptionsSelection/store/index.d.ts +2 -0
- package/lib/plus/skuOptionsSelection/store/store.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/types.d.ts +429 -0
- package/lib/plus/skuOptionsSelection/utils/calculateOption.d.ts +6 -0
- package/lib/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +37 -0
- package/lib/plus/skuOptionsSelection/utils/index.d.ts +7 -0
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +19 -0
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +1 -0
- package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/lib/plus/walletEditor/components/JsonEditor/index.d.ts +11 -0
- package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +20 -0
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +6 -0
- package/lib/plus/walletEditor/index.d.ts +3 -0
- package/lib/plus/walletEditor/locales.d.ts +135 -0
- package/lib/plus/walletEditor/types.d.ts +52 -0
- package/lib/plus/walletPassGallery/locales.d.ts +285 -0
- package/lib/plus/walletPassGallery/serve.d.ts +243 -0
- package/lib/plus/walletPassGallery/utils.d.ts +48 -0
- package/lib/pro/Cards/index.d.ts +1 -0
- package/lib/pro/Login2.0/components/LegalTerms.d.ts +8 -0
- package/lib/pro/Login2.0/components/PhoneInput.d.ts +53 -0
- package/lib/pro/Login2.0/components/phoneValidation.d.ts +17 -0
- package/lib/pro/Login2.0/hooks/index.d.ts +2 -0
- package/lib/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
- package/lib/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
- package/lib/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
- package/lib/pro/Login2.0/locales.d.ts +543 -0
- package/lib/pro/Login2.0/shared/Header.d.ts +11 -0
- package/lib/pro/Login2.0/shared/registerFlow.d.ts +116 -0
- package/lib/pro/Login2.0/shared/types.d.ts +232 -0
- package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +12 -0
- package/lib/pro/Login2.0/steps/VerificationSuccess.d.ts +8 -0
- package/lib/pro/Login2.0/steps/VerifyingEmailLink.d.ts +7 -0
- package/lib/pro/Login2.0/steps/WaitEmailLink.d.ts +18 -0
- package/lib/pro/Login2.0/steps/index.d.ts +19 -0
- package/lib/pro/Login2.0/types.d.ts +167 -0
- package/lib/pro/NumericStepper/index.d.ts +43 -0
- package/lib/pro/Selector/BatchSelectorDemo.d.ts +3 -0
- package/lib/pro/Selector/Item.d.ts +14 -0
- package/lib/pro/Selector/Selector.d.ts +14 -0
- package/lib/pro/Selector/Selector.stories.d.ts +78 -0
- package/lib/pro/Selector/SelectorGroup.d.ts +11 -0
- package/lib/pro/Selector/components/Card/index.d.ts +57 -0
- package/lib/pro/Selector/components/Card/types.d.ts +1 -0
- package/lib/pro/Selector/components/Indicator/index.d.ts +19 -0
- package/lib/pro/Selector/components/IntersectionObserver.d.ts +105 -0
- package/lib/pro/Selector/components/LayoutContainer/index.d.ts +16 -0
- package/lib/pro/Selector/components/Media/index.d.ts +6 -0
- package/lib/pro/Selector/components/Media/types.d.ts +47 -0
- package/lib/pro/Selector/components/index.d.ts +4 -0
- package/lib/pro/Selector/demo.d.ts +2 -0
- package/lib/pro/Selector/hooks/usePresetItemProps.d.ts +43 -0
- package/lib/pro/Selector/hooks/usePresetProps.d.ts +24 -0
- package/lib/pro/Selector/hooks/useSelectionController.d.ts +49 -0
- package/lib/pro/Selector/index.d.ts +11 -0
- package/lib/pro/Selector/locales.d.ts +36 -0
- package/lib/pro/Selector/types.d.ts +173 -0
- package/lib/pro/Selector/utils/index.d.ts +49 -0
- package/lib/pro/numberKeyboard/locales.d.ts +12 -0
- package/lib/pro/pisellNumberSelector/example.d.ts +3 -0
- package/lib/pro/pisellPaymentList/example.d.ts +19 -0
- package/lib/test/setup.d.ts +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,53 @@
|
|
|
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;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import Decimal from 'decimal.js';
|
|
2
|
+
import { ICalculatePriceParams } from './types';
|
|
3
|
+
export declare const handleProductInfo: (eventDetail: any, num: number) => {
|
|
4
|
+
price: number;
|
|
5
|
+
totalPrice: number;
|
|
6
|
+
originTotal: any;
|
|
7
|
+
is_charge_tax: any;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* 获取商品价格
|
|
11
|
+
*/
|
|
12
|
+
export declare const getPrice: (params: ICalculatePriceParams) => number;
|
|
13
|
+
/**
|
|
14
|
+
* 获取商品总价
|
|
15
|
+
* @description 当前总价计算基于商品数量为1
|
|
16
|
+
* @param item 商品
|
|
17
|
+
* @returns 商品总价
|
|
18
|
+
*/
|
|
19
|
+
export declare const getTotalPrice: (params: ICalculatePriceParams) => number;
|
|
20
|
+
/**
|
|
21
|
+
* 获取商品原始总价
|
|
22
|
+
* @description 当前总价计算基于商品数量为1
|
|
23
|
+
* @param item 商品
|
|
24
|
+
* @returns 商品原始总价
|
|
25
|
+
*/
|
|
26
|
+
export declare const getOriginTotalPrice: (params: ICalculatePriceParams) => number | undefined;
|
|
27
|
+
export declare const handleCartItemOrigin: (cartItem: any, eventDetail: any) => any;
|
|
28
|
+
export declare const formatBundleToOrigin: (bundle: any) => any;
|
|
29
|
+
export declare const formatOptionsToOrigin: (options: any) => any;
|
|
30
|
+
export declare const handleProductDeposit: (cartItem: any, eventDetail: any, num: number) => {
|
|
31
|
+
total: number;
|
|
32
|
+
protocols: any;
|
|
33
|
+
} | null;
|
|
34
|
+
/**
|
|
35
|
+
* 获取商品定金
|
|
36
|
+
* @description 定金基于商品售价来算,最终乘商品数量
|
|
37
|
+
* 1、如果套餐主商品有定金规则,则定金为:(套餐商品总售价 * 定金百分比 + 定金固定金额)* 商品数量
|
|
38
|
+
* 2、如果套餐主商品没有定金规则,子商品有定金规则,则定金为:(套餐子商品售价 * 套餐子商品定金百分比 + 套餐子商品定金固定金额)* 商品数量,最终将所有子商品定金相加
|
|
39
|
+
* 3、普通商品/单规格商品/组合规则商品,定金规则:(商品总售价 * 定金百分比 + 定金固定金额)* 商品数量
|
|
40
|
+
* @param params 参数
|
|
41
|
+
* @returns 商品定金
|
|
42
|
+
*/
|
|
43
|
+
export declare const getProductDeposit: (params: {
|
|
44
|
+
cartItem: any;
|
|
45
|
+
product: any;
|
|
46
|
+
bundle?: any;
|
|
47
|
+
options?: any;
|
|
48
|
+
num?: number;
|
|
49
|
+
}) => {
|
|
50
|
+
total: number;
|
|
51
|
+
protocols: any;
|
|
52
|
+
} | null;
|
|
53
|
+
/**
|
|
54
|
+
* 计算商品定金
|
|
55
|
+
* @param params 参数
|
|
56
|
+
* @returns 商品定金
|
|
57
|
+
*/
|
|
58
|
+
export declare const calculateProductDeposit: (params: {
|
|
59
|
+
depositData: {
|
|
60
|
+
deposit_fixed?: string;
|
|
61
|
+
deposit_percentage?: string;
|
|
62
|
+
};
|
|
63
|
+
total: string | number;
|
|
64
|
+
num: number;
|
|
65
|
+
}) => {
|
|
66
|
+
result: boolean;
|
|
67
|
+
depositTotal: Decimal;
|
|
68
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
selectEventDetailProductDetail: (productDetail: any) => void;
|
|
16
|
+
checkBeforeSelectEventDetail: () => boolean;
|
|
17
|
+
getProductDetailRequest: any;
|
|
18
|
+
}
|
|
19
|
+
interface EventDetailProviderProps {
|
|
20
|
+
children: React.ReactNode;
|
|
21
|
+
}
|
|
22
|
+
export declare const EventDetailContext: React.Context<EventDetailContextType | undefined>;
|
|
23
|
+
export declare const EventDetailProvider: React.FC<EventDetailProviderProps>;
|
|
24
|
+
/**
|
|
25
|
+
* 使用步骤管理的Hook
|
|
26
|
+
* @throws {Error} 如果在StepProvider外部使用会抛出错误
|
|
27
|
+
* @returns {StepContextType} 步骤管理上下文
|
|
28
|
+
*/
|
|
29
|
+
export declare const useEventDetail: () => EventDetailContextType;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface SummaryData {
|
|
3
|
+
}
|
|
4
|
+
interface SummaryContextType {
|
|
5
|
+
subtotal: number | string;
|
|
6
|
+
total: number | string;
|
|
7
|
+
taxTitle?: string;
|
|
8
|
+
totalTaxFee?: string;
|
|
9
|
+
isPriceIncludeTax?: 0 | 1;
|
|
10
|
+
deposit?: {
|
|
11
|
+
total: string;
|
|
12
|
+
protocols: any[];
|
|
13
|
+
hasDeposit: boolean;
|
|
14
|
+
};
|
|
15
|
+
isAgreeDepositPolicy: boolean;
|
|
16
|
+
setIsAgreeDepositPolicy: (value: boolean) => void;
|
|
17
|
+
getDepositProtocol: (params: {
|
|
18
|
+
id: string;
|
|
19
|
+
}) => Promise<any>;
|
|
20
|
+
}
|
|
21
|
+
interface SummaryProviderProps {
|
|
22
|
+
children: React.ReactNode;
|
|
23
|
+
}
|
|
24
|
+
export declare const SummaryContext: React.Context<SummaryContextType | undefined>;
|
|
25
|
+
export declare const SummaryProvider: React.FC<SummaryProviderProps>;
|
|
26
|
+
/**
|
|
27
|
+
* 使用步骤管理的Hook
|
|
28
|
+
* @throws {Error} 如果在StepProvider外部使用会抛出错误
|
|
29
|
+
* @returns {StepContextType} 步骤管理上下文
|
|
30
|
+
*/
|
|
31
|
+
export declare const useSummary: () => SummaryContextType;
|
|
32
|
+
declare const _default: {
|
|
33
|
+
defaultState: SummaryData;
|
|
34
|
+
};
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import Decimal from 'decimal.js';
|
|
2
|
+
interface CartItem {
|
|
3
|
+
price: number | string;
|
|
4
|
+
quantity?: number;
|
|
5
|
+
[k: string]: any;
|
|
6
|
+
}
|
|
7
|
+
interface PriceDetail {
|
|
8
|
+
subtotal: string;
|
|
9
|
+
total: string;
|
|
10
|
+
taxTitle?: string;
|
|
11
|
+
totalTaxFee?: string;
|
|
12
|
+
isPriceIncludeTax?: 0 | 1;
|
|
13
|
+
deposit?: {
|
|
14
|
+
total: string;
|
|
15
|
+
protocols: any[];
|
|
16
|
+
hasDeposit: boolean;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* 计算商品小计(不含其他费用)
|
|
21
|
+
* @param items - 购物车商品数组
|
|
22
|
+
* @returns 商品总价字符串,保留2位小数
|
|
23
|
+
*/
|
|
24
|
+
export declare const calculateSubtotal: (items: CartItem[]) => string;
|
|
25
|
+
/**
|
|
26
|
+
* @title: 单个商品的税费
|
|
27
|
+
* @description:
|
|
28
|
+
* 单个商品的税费 = 商品销售单价(折扣后) * 税率 * is_charge_tax /( 1+ 税率 * is_price_include_tax)
|
|
29
|
+
* $taxFee = $price * $taxRate * $isChargeTax / (1 + $taxRate * $isPriceIncludeTax);
|
|
30
|
+
* @return {*}
|
|
31
|
+
* @Author: xiangfeng.xue
|
|
32
|
+
*/
|
|
33
|
+
export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
|
|
34
|
+
/**
|
|
35
|
+
* 计算所有价格明细
|
|
36
|
+
* @param items - 购物车商品数组
|
|
37
|
+
* @param options - 其他费用配置
|
|
38
|
+
* @returns 价格明细对象
|
|
39
|
+
*/
|
|
40
|
+
export declare const calculatePriceDetails: (shopInfo: any, items: CartItem[]) => PriceDetail;
|
|
41
|
+
/**
|
|
42
|
+
* @title: 计算定金
|
|
43
|
+
* @param items - 购物车商品数组
|
|
44
|
+
* @returns 定金字符串,保留2位小数
|
|
45
|
+
*/
|
|
46
|
+
export declare const calculateDeposit: (items: CartItem[]) => {
|
|
47
|
+
total: string;
|
|
48
|
+
protocols: any[];
|
|
49
|
+
hasDeposit: never;
|
|
50
|
+
} | undefined;
|
|
51
|
+
export {};
|
|
@@ -71,7 +71,7 @@ var Header = function Header() {
|
|
|
71
71
|
var handleBack = /*#__PURE__*/function () {
|
|
72
72
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
73
73
|
var _currentStep$step4;
|
|
74
|
-
var key, types, form_key, booking_form, prevStepData, currentStepData, _key;
|
|
74
|
+
var key, types, form_key, booking_form, prevStepData, currentStepData, _key, isServiceStep, isResourceStep;
|
|
75
75
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
76
76
|
while (1) switch (_context.prev = _context.next) {
|
|
77
77
|
case 0:
|
|
@@ -130,9 +130,9 @@ var Header = function Header() {
|
|
|
130
130
|
isSkip: false
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
|
-
|
|
134
|
-
// 如果前一步是选择服务步骤,则移除表单和资源开头的步骤, 防止每个商品配置的资源不一样,导致步骤会有上次的数据
|
|
135
|
-
if (
|
|
133
|
+
isServiceStep = (prevStepData === null || prevStepData === void 0 ? void 0 : prevStepData.key) === 'select-service';
|
|
134
|
+
isResourceStep = (prevStepData === null || prevStepData === void 0 ? void 0 : prevStepData.key) === 'select-resource'; // 如果前一步是选择服务步骤,则移除表单和资源开头的步骤, 防止每个商品配置的资源不一样,导致步骤会有上次的数据
|
|
135
|
+
if (isServiceStep || isResourceStep) {
|
|
136
136
|
stepList.forEach(function (item) {
|
|
137
137
|
if (item.key.startsWith('select-resource_') || item.key.startsWith('fill-form_')) {
|
|
138
138
|
removeStep(item.key);
|
|
@@ -141,13 +141,13 @@ var Header = function Header() {
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
// 如果前一步是选择资源,则清空表单步骤,不然表单步骤会累加
|
|
144
|
-
if (
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
}
|
|
144
|
+
// if (prevStepData?.key === 'select-resource') {
|
|
145
|
+
// stepList.forEach((item: any) => {
|
|
146
|
+
// if (item.key.startsWith('fill-form_')) {
|
|
147
|
+
// removeStep(item.key);
|
|
148
|
+
// }
|
|
149
|
+
// });
|
|
150
|
+
// }
|
|
151
151
|
|
|
152
152
|
// 再次将步骤更新为false, 增加这个判断为了跳过那一步没有设置holder,但是直接后退了
|
|
153
153
|
// if (
|
|
@@ -160,7 +160,7 @@ var Header = function Header() {
|
|
|
160
160
|
// isSkip: false,
|
|
161
161
|
// });
|
|
162
162
|
// }
|
|
163
|
-
case
|
|
163
|
+
case 14:
|
|
164
164
|
case "end":
|
|
165
165
|
return _context.stop();
|
|
166
166
|
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import React, { useMemo } from 'react';
|
|
8
|
+
import { useAppointmentBooking } from "../../../hooks";
|
|
9
|
+
import { useAppointmentBookingContext } from "../../../context";
|
|
10
|
+
import useComponents from "../../../../../hooks/useComponents";
|
|
11
|
+
import { processResourceList, getResourceTitle } from "../../../utils";
|
|
12
|
+
import { contextUtils } from "../../../hooks";
|
|
13
|
+
import { clearDataByStepKey } from "../../../utils";
|
|
14
|
+
var SelectDate = function SelectDate(props) {
|
|
15
|
+
var onDateChange = props.onDateChange,
|
|
16
|
+
times = props.times,
|
|
17
|
+
currentDate = props.currentDate;
|
|
18
|
+
var appointmentBooking = useAppointmentBooking();
|
|
19
|
+
var _useAppointmentBookin = useAppointmentBookingContext(),
|
|
20
|
+
currentSelectedResources = _useAppointmentBookin.currentSelectedResources,
|
|
21
|
+
setTimes = _useAppointmentBookin.setTimes;
|
|
22
|
+
var utils = contextUtils();
|
|
23
|
+
var _useComponents = useComponents({
|
|
24
|
+
components: ['SelectDateOS']
|
|
25
|
+
}),
|
|
26
|
+
_useComponents2 = _slicedToArray(_useComponents, 1),
|
|
27
|
+
SelectDateOS = _useComponents2[0];
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @description: 获取资源代码
|
|
31
|
+
* @param {*}
|
|
32
|
+
* @return {*}
|
|
33
|
+
*/
|
|
34
|
+
var resourceCode = useMemo(function () {
|
|
35
|
+
var _ref = (appointmentBooking === null || appointmentBooking === void 0 ? void 0 : appointmentBooking.otherParams) || {},
|
|
36
|
+
resourceSort = _ref.resourceSort;
|
|
37
|
+
var resources = appointmentBooking.getResourcesList();
|
|
38
|
+
var _processResourceList = processResourceList(resources, resourceSort),
|
|
39
|
+
resourceCodes = _processResourceList.resourceCodes;
|
|
40
|
+
return (resourceCodes === null || resourceCodes === void 0 ? void 0 : resourceCodes[0]) || '';
|
|
41
|
+
}, []);
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @description: 获取资源名称
|
|
45
|
+
* @param {*} useMemo
|
|
46
|
+
* @return {*}
|
|
47
|
+
*/
|
|
48
|
+
var currentResourceName = useMemo(function () {
|
|
49
|
+
var _currentSelectedResou;
|
|
50
|
+
var currentResource = currentSelectedResources === null || currentSelectedResources === void 0 || (_currentSelectedResou = currentSelectedResources[0]) === null || _currentSelectedResou === void 0 ? void 0 : _currentSelectedResou.currentSelectedResource;
|
|
51
|
+
var resourceItem = (currentResource === null || currentResource === void 0 ? void 0 : currentResource.resourceItem) || {};
|
|
52
|
+
var name = getResourceTitle(appointmentBooking, resourceItem === null || resourceItem === void 0 ? void 0 : resourceItem.code, utils, resourceItem);
|
|
53
|
+
return name;
|
|
54
|
+
}, [currentSelectedResources]);
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @description: 跳转到服务步骤
|
|
58
|
+
* @param {any} step
|
|
59
|
+
* @return {*}
|
|
60
|
+
*/
|
|
61
|
+
var onStepChange = function onStepChange() {
|
|
62
|
+
// 清空数据
|
|
63
|
+
clearDataByStepKey('select-service', appointmentBooking, setTimes);
|
|
64
|
+
|
|
65
|
+
// 跳转到服务步骤
|
|
66
|
+
var stepLists = appointmentBooking.getStepList();
|
|
67
|
+
var serviceIndex = stepLists.findIndex(function (item) {
|
|
68
|
+
return (item === null || item === void 0 ? void 0 : item.key) === 'select-service';
|
|
69
|
+
});
|
|
70
|
+
appointmentBooking.gotoStep(serviceIndex);
|
|
71
|
+
};
|
|
72
|
+
return SelectDateOS ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(SelectDateOS, {
|
|
73
|
+
isTimeSlicing: true,
|
|
74
|
+
currentDate: currentDate,
|
|
75
|
+
resourceCode: resourceCode,
|
|
76
|
+
resourceName: currentResourceName,
|
|
77
|
+
onDateChange: onDateChange,
|
|
78
|
+
onStepChange: onStepChange,
|
|
79
|
+
times: times
|
|
80
|
+
})) : null;
|
|
81
|
+
};
|
|
82
|
+
export default SelectDate;
|
|
@@ -9,12 +9,13 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
9
9
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
10
10
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
11
|
import React, { useEffect, useState, forwardRef, useImperativeHandle } from 'react';
|
|
12
|
-
import { Iconfont
|
|
12
|
+
import { Iconfont } from '@pisell/materials';
|
|
13
13
|
import { locales } from '@pisell/utils';
|
|
14
14
|
import { useAppointmentBookingContext } from "../../context";
|
|
15
15
|
import { scrollToFirstErrorCard } from "../Resource/utils";
|
|
16
16
|
import { useAppointmentBookingResource, useAppointmentBookingStep } from "../../hooks";
|
|
17
17
|
import { Toast } from "../../utils";
|
|
18
|
+
import SelectDate from "./components/SelectDateOS";
|
|
18
19
|
import "./index.less";
|
|
19
20
|
var TimeSlicing = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
20
21
|
var _useState = useState(''),
|
|
@@ -32,6 +33,10 @@ var TimeSlicing = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
32
33
|
getResourceList = _useAppointmentBookin.getResourceList;
|
|
33
34
|
var _useAppointmentBookin2 = useAppointmentBookingStep(),
|
|
34
35
|
nextStep = _useAppointmentBookin2.nextStep;
|
|
36
|
+
var _useState3 = useState(undefined),
|
|
37
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
38
|
+
currentDate = _useState4[0],
|
|
39
|
+
setCurrentDate = _useState4[1];
|
|
35
40
|
useImperativeHandle(ref, function () {
|
|
36
41
|
return {
|
|
37
42
|
next: function next() {
|
|
@@ -102,7 +107,45 @@ var TimeSlicing = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
102
107
|
return _ref3.apply(this, arguments);
|
|
103
108
|
};
|
|
104
109
|
}();
|
|
105
|
-
|
|
110
|
+
useEffect(function () {
|
|
111
|
+
var getCurrentDate = /*#__PURE__*/function () {
|
|
112
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
113
|
+
var _res$;
|
|
114
|
+
var res, date;
|
|
115
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
116
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
117
|
+
case 0:
|
|
118
|
+
_context3.next = 2;
|
|
119
|
+
return appointmentBooking.getDateRange();
|
|
120
|
+
case 2:
|
|
121
|
+
res = _context3.sent;
|
|
122
|
+
date = res === null || res === void 0 || (_res$ = res[0]) === null || _res$ === void 0 ? void 0 : _res$.date;
|
|
123
|
+
setCurrentDate(date);
|
|
124
|
+
case 5:
|
|
125
|
+
case "end":
|
|
126
|
+
return _context3.stop();
|
|
127
|
+
}
|
|
128
|
+
}, _callee3);
|
|
129
|
+
}));
|
|
130
|
+
return function getCurrentDate() {
|
|
131
|
+
return _ref4.apply(this, arguments);
|
|
132
|
+
};
|
|
133
|
+
}();
|
|
134
|
+
getCurrentDate();
|
|
135
|
+
}, []);
|
|
136
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SelectDate, {
|
|
137
|
+
onDateChange: function onDateChange(currentData) {
|
|
138
|
+
if ((times === null || times === void 0 ? void 0 : times.length) > 0) {
|
|
139
|
+
// 如果已经选择了日期,再触发选择,则清空上次选择的时间
|
|
140
|
+
appointmentBooking.deleteCartItemInfo('time');
|
|
141
|
+
}
|
|
142
|
+
setCurrentDate(currentData === null || currentData === void 0 ? void 0 : currentData.date);
|
|
143
|
+
appointmentBooking.setDateRange([currentData]);
|
|
144
|
+
getResourceTimeSlot();
|
|
145
|
+
},
|
|
146
|
+
times: times,
|
|
147
|
+
currentDate: currentDate
|
|
148
|
+
}), (times === null || times === void 0 ? void 0 : times.length) > 0 ? /*#__PURE__*/React.createElement("div", {
|
|
106
149
|
className: 'appointment-time-slicing-wrap'
|
|
107
150
|
}, times.map(function (item, index) {
|
|
108
151
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -115,8 +158,6 @@ var TimeSlicing = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
115
158
|
type: "pisell2-chevron-right",
|
|
116
159
|
className: "icon"
|
|
117
160
|
}));
|
|
118
|
-
})) :
|
|
119
|
-
description: locales.getText('pisell2.appointment.unselect.time')
|
|
120
|
-
});
|
|
161
|
+
})) : null);
|
|
121
162
|
});
|
|
122
163
|
export default TimeSlicing;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
export declare const useAppointmentBooking: () => any;
|
|
2
|
+
export declare const useShopDiscount: () => any;
|
|
3
|
+
export declare const contextUtils: () => any;
|
|
4
|
+
/**
|
|
5
|
+
* @title: 监听步骤发生变化
|
|
6
|
+
* @description:
|
|
7
|
+
* @return {*}
|
|
8
|
+
* @Author: WangHan
|
|
9
|
+
* @Date: 2025-04-15 11:11
|
|
10
|
+
*/
|
|
11
|
+
export declare const useAppointmentBookingStep: () => {
|
|
12
|
+
getStepIndex: (type: string, skipNumber?: number) => any;
|
|
13
|
+
stepList: any;
|
|
14
|
+
removeStep: (key: string) => any;
|
|
15
|
+
addStep: (props: any, stepKey?: string) => any;
|
|
16
|
+
updateStep: (key: string, step: any) => void;
|
|
17
|
+
nextStep: () => any;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @title: 获取商品数据
|
|
21
|
+
* @description:
|
|
22
|
+
* @return {*}
|
|
23
|
+
* @Author: WangHan
|
|
24
|
+
* @Date: 2025-04-15 11:12
|
|
25
|
+
*/
|
|
26
|
+
export declare const useAppointmentBookingProduct: () => {
|
|
27
|
+
checkProductType: (productId: number) => Promise<any>;
|
|
28
|
+
getProducts: () => Promise<any>;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @title: 更新购物车数据
|
|
32
|
+
* @description:
|
|
33
|
+
* @return {*}
|
|
34
|
+
* @Author: WangHan
|
|
35
|
+
* @Date: 2025-04-15 11:12
|
|
36
|
+
*/
|
|
37
|
+
export declare const useAppointmentBookingCart: () => void;
|
|
38
|
+
/**
|
|
39
|
+
* @title: 获取登录状态
|
|
40
|
+
* @description:
|
|
41
|
+
* @return {*}
|
|
42
|
+
* @Author: WangHan
|
|
43
|
+
* @Date: 2025-04-15 11:14
|
|
44
|
+
*/
|
|
45
|
+
export declare const useAppointmentBookingLogin: () => {
|
|
46
|
+
isLogin: boolean;
|
|
47
|
+
openLoginModal: (params: {
|
|
48
|
+
callback: any;
|
|
49
|
+
}) => void;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* @title: 获取账户
|
|
53
|
+
* @description:
|
|
54
|
+
* @return {*}
|
|
55
|
+
* @Author: WangHan
|
|
56
|
+
* @Date: 2025-04-15 11:15
|
|
57
|
+
*/
|
|
58
|
+
export declare const useAppointmentBookingAccount: () => {
|
|
59
|
+
accountLists: any;
|
|
60
|
+
getHolders: () => Promise<any>;
|
|
61
|
+
form_id: any;
|
|
62
|
+
addAccount: (val: any, type?: string) => Promise<any>;
|
|
63
|
+
checkAccount: (type: any) => any;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* @title: 获取资源数据
|
|
67
|
+
* @description:
|
|
68
|
+
* @return {*}
|
|
69
|
+
* @Author: WangHan
|
|
70
|
+
* @Date: 2025-04-15 11:29
|
|
71
|
+
*/
|
|
72
|
+
export declare const useAppointmentBookingResource: () => {
|
|
73
|
+
getResourceTimeSlot: (index?: number) => Promise<void>;
|
|
74
|
+
getResourceList: () => {
|
|
75
|
+
resources: any[];
|
|
76
|
+
resourceCodes: any;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* @title: 是否跳过资源选择步骤
|
|
81
|
+
* @description:
|
|
82
|
+
* @return {*}
|
|
83
|
+
* @Author: WangHan
|
|
84
|
+
* @Date: 2025-04-21 11:47
|
|
85
|
+
*/
|
|
86
|
+
export declare const useIsSkipResourceStep: () => {
|
|
87
|
+
checkSkipResourceStep: () => Promise<boolean>;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* @title: 获取预约配置
|
|
91
|
+
* @description:
|
|
92
|
+
* @return {*}
|
|
93
|
+
* @Author: WangHan
|
|
94
|
+
* @Date: 2025-04-24 18:15
|
|
95
|
+
*/
|
|
96
|
+
export declare const useAppointmentBookingSetting: () => {
|
|
97
|
+
isDateSelectedFirst: boolean;
|
|
98
|
+
isFormSubject: boolean;
|
|
99
|
+
isRetailTemplate: any;
|
|
100
|
+
customPageId: any;
|
|
101
|
+
channel: any;
|
|
102
|
+
bookingSubject: any;
|
|
103
|
+
setOtherData: (key: string, val: any) => any;
|
|
104
|
+
getOtherData: (key: string) => any;
|
|
105
|
+
formName: any;
|
|
106
|
+
bookingSetting: any;
|
|
107
|
+
};
|
|
@@ -17,7 +17,7 @@ import { useState, useEffect, useMemo } from 'react';
|
|
|
17
17
|
import { locales } from '@pisell/utils';
|
|
18
18
|
import { usePisellOS } from "../../hooks/useEngineContext";
|
|
19
19
|
import useEngineContext from "../../hooks/useEngineContext";
|
|
20
|
-
import {
|
|
20
|
+
import { processResourceList, getCustomer, currentAppointmentBoard, currentRenderLists, getFormInsertBeforeKey, checkAndGoNext, checkAndMarkCartRenderError, formatHolder, Toast } from "./utils";
|
|
21
21
|
import { useAppointmentBookingContext } from "./context";
|
|
22
22
|
import { scrollToFirstErrorCard } from "./components/Resource/utils";
|
|
23
23
|
export var useAppointmentBooking = function useAppointmentBooking() {
|
|
@@ -809,20 +809,13 @@ export var useAppointmentBookingResource = function useAppointmentBookingResourc
|
|
|
809
809
|
|
|
810
810
|
// 设置资源列表
|
|
811
811
|
var getResourceList = function getResourceList() {
|
|
812
|
-
var _resources2;
|
|
813
812
|
var resources = appointmentBooking.getResourcesList();
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
});
|
|
819
|
-
var _resources = ((_resources2 = resources) === null || _resources2 === void 0 || (_resources2 = _resources2[0]) === null || _resources2 === void 0 ? void 0 : _resources2.resources) || [];
|
|
820
|
-
var resourceCodes = _resources.map(function (item) {
|
|
821
|
-
return item.code;
|
|
822
|
-
});
|
|
823
|
-
setResources(resources || []);
|
|
813
|
+
var _processResourceList = processResourceList(resources, resourceSort),
|
|
814
|
+
processedResources = _processResourceList.resources,
|
|
815
|
+
resourceCodes = _processResourceList.resourceCodes;
|
|
816
|
+
setResources(processedResources || []);
|
|
824
817
|
return {
|
|
825
|
-
resources:
|
|
818
|
+
resources: processedResources,
|
|
826
819
|
resourceCodes: resourceCodes
|
|
827
820
|
};
|
|
828
821
|
};
|