@pisell/private-materials 6.8.83 → 6.8.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +150 -164
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +11 -11
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +11 -11
- package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/dashboard/serve.d.ts +1 -0
- package/es/components/booking/forms/model.d.ts +10 -1
- 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/info/client/serve.d.ts +2 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +11 -0
- package/es/components/booking/info/index.d.ts +1 -0
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/pet/serve.d.ts +1 -0
- package/es/components/booking/info/service/Lists.d.ts +3 -0
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
- package/es/components/booking/info/service/serve.d.ts +34 -0
- package/es/components/booking/info/service/serviceManager/index.d.ts +20 -0
- package/es/components/booking/info/service2/utils.d.ts +219 -0
- package/es/components/booking/info2/serve.d.ts +6 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +106 -0
- package/es/components/booking/info2/service/editNormalService/index.d.ts +3 -0
- package/es/components/booking/info2/service/editService/utils.d.ts +28 -0
- package/es/components/booking/info2/service/openNormalService.d.ts +34 -0
- package/es/components/booking/info2/utilsByBooking.d.ts +36 -0
- package/es/components/booking/model.d.ts +121 -0
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/booking/utils.d.ts +182 -0
- package/es/components/checkout/PaymentModal.js +4 -2
- package/es/components/checkout/components/CashPaymentModule/index.d.ts +26 -0
- package/es/components/checkout/components/PaymentDetailModal/index.d.ts +38 -0
- package/es/components/checkout/components/PaymentOptionsModule/index.js +1 -1
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +85 -0
- package/es/components/checkout/components/ScrollableList/index.d.ts +5 -0
- package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +32 -0
- package/es/components/eftposPay/aggregatePayment/hooks/useMicropay.d.ts +7 -0
- package/es/components/eftposPay/aggregatePayment/hooks/useMicropay.js +120 -0
- package/es/components/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/es/components/eftposPay/aggregatePayment/index.js +3 -0
- package/es/components/eftposPay/aggregatePayment/service.d.ts +24 -0
- package/es/components/eftposPay/aggregatePayment/service.js +69 -0
- package/es/components/eftposPay/aggregatePayment/types.d.ts +106 -0
- package/es/components/eftposPay/aggregatePayment/types.js +65 -0
- package/es/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
- package/es/components/eftposPay/aggregatePayment/utils/logs.js +371 -0
- package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +139 -0
- package/es/components/eftposPay/aggregatePayment/utils/payment.js +1138 -0
- package/es/components/eftposPay/amount.d.ts +2 -1
- package/es/components/eftposPay/app.d.ts +1 -0
- package/es/components/eftposPay/app.js +5 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/es/components/eftposPay/component/fail/failCustom.js +16 -12
- package/es/components/eftposPay/component/fail/index.d.ts +1 -0
- package/es/components/eftposPay/component/fail/index.js +12 -5
- package/es/components/eftposPay/component/fail/network.d.ts +1 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/es/components/eftposPay/component/manual/index.d.ts +1 -0
- package/es/components/eftposPay/component/signature/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/index.d.ts +1 -0
- package/es/components/eftposPay/const.d.ts +6 -1
- package/es/components/eftposPay/const.js +3 -0
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +3 -2
- package/es/components/eftposPay/hooks.js +12 -0
- package/es/components/eftposPay/huifu/Action.d.ts +8 -0
- package/es/components/eftposPay/huifu/Action.js +146 -0
- package/es/components/eftposPay/huifu/const.d.ts +5 -0
- package/es/components/eftposPay/huifu/const.js +70 -0
- package/es/components/eftposPay/huifu/hooks.d.ts +25 -0
- package/es/components/eftposPay/huifu/hooks.js +184 -0
- package/es/components/eftposPay/huifu/index.d.ts +5 -0
- package/es/components/eftposPay/huifu/index.js +196 -0
- package/es/components/eftposPay/huifu/index.less +180 -0
- package/es/components/eftposPay/huifu/types.d.ts +14 -0
- package/es/components/eftposPay/huifu/types.js +1 -0
- package/es/components/eftposPay/index.d.ts +1 -0
- package/es/components/eftposPay/index.js +5 -1
- package/es/components/eftposPay/linkly/index.d.ts +1 -0
- package/es/components/eftposPay/locales.d.ts +36 -0
- package/es/components/eftposPay/locales.js +42 -3
- package/es/components/eftposPay/manufacturer.d.ts +1 -0
- package/es/components/eftposPay/manufacturer.js +5 -0
- package/es/components/eftposPay/pay.d.ts +1 -0
- package/es/components/eftposPay/pay.js +6 -2
- package/es/components/eftposPay/payo/config.d.ts +1 -0
- package/es/components/eftposPay/store/index.d.ts +13 -6
- package/es/components/eftposPay/tip.d.ts +1 -0
- package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/es/components/eventBooking/index.d.ts +1 -0
- package/es/components/kioskSkuDetail/index.d.ts +3 -0
- package/es/components/kioskSkuDetail/index.js +266 -173
- package/es/components/kioskSkuDetail/index.less +49 -7
- package/es/components/kioskSkuDetail/locales.d.ts +6 -0
- package/es/components/kioskSkuDetail/locales.js +9 -3
- package/es/components/list/types.d.ts +178 -0
- package/es/components/list/utils/index.d.ts +19 -0
- package/es/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/es/components/pay/toB/components/EFTPOS/index.js +8 -1
- package/es/components/pay/toB/types/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentList/serve.js +14 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +7 -6
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +3 -0
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/shoppingCart/components/Cart/Product.js +1 -1
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +84 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +11 -0
- package/es/components/ticketBooking/components/addServiceVariant/utils.d.ts +9 -0
- package/es/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
- package/es/components/ticketBooking/context/index.d.ts +2 -0
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +16 -0
- package/es/components/ticketBooking/index.d.ts +16 -0
- package/es/components/ticketBooking/locales.d.ts +201 -0
- package/es/components/ticketBooking/serve.d.ts +288 -0
- package/es/components/ticketBooking/utils/index.d.ts +101 -0
- package/es/hooks/printer.d.ts +4 -0
- package/es/hooks/useEngineContext.d.ts +4 -0
- package/es/plus/productSelect/CategoryTabs/index.d.ts +21 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +7 -0
- package/es/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/index.d.ts +47 -0
- package/es/plus/productSelect/ProductList/gridComponents.d.ts +46 -0
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
- package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +6 -0
- package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +4 -0
- package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/VariantCard/index.js +1 -1
- 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/locales.d.ts +3 -0
- package/es/plus/skuOptionsSelection/locales.js +3 -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 +431 -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/webPosLogin/WebPosLoginCpt.d.ts +9 -0
- package/es/plus/webPosLogin/components/BrandPanel/index.d.ts +9 -0
- package/es/plus/webPosLogin/components/LoginPanel/index.d.ts +21 -0
- package/es/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
- package/es/plus/webPosLogin/index.d.ts +12 -0
- package/es/plus/webPosLogin/locales.d.ts +49 -0
- package/es/plus/webPosLogin/types.d.ts +286 -0
- package/es/pro/Cards/index.d.ts +1 -0
- package/es/pro/Login2.0/components/LoginCodeInput.js +36 -3
- package/es/pro/Login2.0/steps/CodeInput.js +37 -7
- 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 +20 -0
- package/es/pro/Selector/components/IntersectionObserver.d.ts +105 -0
- package/es/pro/Selector/components/LayoutContainer/index.d.ts +18 -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 +3 -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 +212 -0
- package/es/pro/Selector/utils/index.d.ts +49 -0
- package/es/pro/skuDetailModal/locales.d.ts +103 -0
- package/es/pro/skuDetailModal/types.d.ts +354 -0
- package/es/pro/skuDetailModal/utils.d.ts +4 -0
- package/es/test/setup.d.ts +1 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/dashboard/serve.d.ts +1 -0
- package/lib/components/booking/forms/model.d.ts +10 -1
- 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/info/client/serve.d.ts +2 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +11 -0
- package/lib/components/booking/info/index.d.ts +1 -0
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/pet/serve.d.ts +1 -0
- package/lib/components/booking/info/service/Lists.d.ts +3 -0
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
- package/lib/components/booking/info/service/serve.d.ts +34 -0
- package/lib/components/booking/info/service/serviceManager/index.d.ts +20 -0
- package/lib/components/booking/info/service2/utils.d.ts +219 -0
- package/lib/components/booking/info2/serve.d.ts +6 -0
- package/lib/components/booking/info2/service/addService/utils.d.ts +106 -0
- package/lib/components/booking/info2/service/editNormalService/index.d.ts +3 -0
- package/lib/components/booking/info2/service/editService/utils.d.ts +28 -0
- package/lib/components/booking/info2/service/openNormalService.d.ts +34 -0
- package/lib/components/booking/info2/utilsByBooking.d.ts +36 -0
- package/lib/components/booking/model.d.ts +121 -0
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/booking/utils.d.ts +182 -0
- package/lib/components/checkout/PaymentModal.js +5 -2
- package/lib/components/checkout/components/CashPaymentModule/index.d.ts +26 -0
- package/lib/components/checkout/components/PaymentDetailModal/index.d.ts +38 -0
- package/lib/components/checkout/components/PaymentOptionsModule/index.js +2 -1
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +85 -0
- package/lib/components/checkout/components/ScrollableList/index.d.ts +5 -0
- package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +32 -0
- package/lib/components/eftposPay/aggregatePayment/hooks/useMicropay.d.ts +7 -0
- package/lib/components/eftposPay/aggregatePayment/hooks/useMicropay.js +133 -0
- package/lib/components/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/lib/components/eftposPay/aggregatePayment/index.js +42 -0
- package/lib/components/eftposPay/aggregatePayment/service.d.ts +24 -0
- package/lib/components/eftposPay/aggregatePayment/service.js +81 -0
- package/lib/components/eftposPay/aggregatePayment/types.d.ts +106 -0
- package/lib/components/eftposPay/aggregatePayment/types.js +74 -0
- package/lib/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
- package/lib/components/eftposPay/aggregatePayment/utils/logs.js +294 -0
- package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +139 -0
- package/lib/components/eftposPay/aggregatePayment/utils/payment.js +752 -0
- package/lib/components/eftposPay/amount.d.ts +2 -1
- package/lib/components/eftposPay/app.d.ts +1 -0
- package/lib/components/eftposPay/app.js +5 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/failCustom.js +15 -9
- package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/index.js +4 -1
- package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
- package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/index.d.ts +1 -0
- package/lib/components/eftposPay/const.d.ts +6 -1
- package/lib/components/eftposPay/const.js +3 -0
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +3 -2
- package/lib/components/eftposPay/hooks.js +16 -0
- package/lib/components/eftposPay/huifu/Action.d.ts +8 -0
- package/lib/components/eftposPay/huifu/Action.js +174 -0
- package/lib/components/eftposPay/huifu/const.d.ts +5 -0
- package/lib/components/eftposPay/huifu/const.js +86 -0
- package/lib/components/eftposPay/huifu/hooks.d.ts +25 -0
- package/lib/components/eftposPay/huifu/hooks.js +186 -0
- package/lib/components/eftposPay/huifu/index.d.ts +5 -0
- package/lib/components/eftposPay/huifu/index.js +200 -0
- package/lib/components/eftposPay/huifu/index.less +180 -0
- package/lib/components/eftposPay/huifu/types.d.ts +14 -0
- package/lib/components/eftposPay/huifu/types.js +17 -0
- package/lib/components/eftposPay/index.d.ts +1 -0
- package/lib/components/eftposPay/index.js +5 -1
- package/lib/components/eftposPay/linkly/index.d.ts +1 -0
- package/lib/components/eftposPay/locales.d.ts +36 -0
- package/lib/components/eftposPay/locales.js +42 -3
- package/lib/components/eftposPay/manufacturer.d.ts +1 -0
- package/lib/components/eftposPay/manufacturer.js +7 -0
- package/lib/components/eftposPay/pay.d.ts +1 -0
- package/lib/components/eftposPay/pay.js +3 -2
- package/lib/components/eftposPay/payo/config.d.ts +1 -0
- package/lib/components/eftposPay/store/index.d.ts +13 -6
- package/lib/components/eftposPay/tip.d.ts +1 -0
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/lib/components/eventBooking/index.d.ts +1 -0
- package/lib/components/kioskSkuDetail/index.d.ts +3 -0
- package/lib/components/kioskSkuDetail/index.js +180 -113
- package/lib/components/kioskSkuDetail/index.less +49 -7
- package/lib/components/kioskSkuDetail/locales.d.ts +6 -0
- package/lib/components/kioskSkuDetail/locales.js +9 -3
- package/lib/components/list/types.d.ts +178 -0
- package/lib/components/list/utils/index.d.ts +19 -0
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +1 -0
- package/lib/components/pay/toB/components/EFTPOS/index.js +8 -1
- package/lib/components/pay/toB/types/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentList/serve.js +15 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +7 -6
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/serve.d.ts +3 -0
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/shoppingCart/components/Cart/Product.js +1 -1
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.d.ts +115 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +84 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +11 -0
- package/lib/components/ticketBooking/components/addServiceVariant/utils.d.ts +9 -0
- package/lib/components/ticketBooking/context/OsKeyContext.d.ts +26 -0
- package/lib/components/ticketBooking/context/index.d.ts +2 -0
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +25 -0
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +16 -0
- package/lib/components/ticketBooking/index.d.ts +16 -0
- package/lib/components/ticketBooking/locales.d.ts +201 -0
- package/lib/components/ticketBooking/serve.d.ts +288 -0
- package/lib/components/ticketBooking/utils/index.d.ts +101 -0
- package/lib/hooks/printer.d.ts +4 -0
- package/lib/hooks/useEngineContext.d.ts +4 -0
- package/lib/plus/productSelect/CategoryTabs/index.d.ts +21 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +7 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/index.d.ts +47 -0
- package/lib/plus/productSelect/ProductList/gridComponents.d.ts +46 -0
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +6 -0
- package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.js +2 -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/locales.d.ts +3 -0
- package/lib/plus/skuOptionsSelection/locales.js +3 -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 +431 -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/webPosLogin/WebPosLoginCpt.d.ts +9 -0
- package/lib/plus/webPosLogin/components/BrandPanel/index.d.ts +9 -0
- package/lib/plus/webPosLogin/components/LoginPanel/index.d.ts +21 -0
- package/lib/plus/webPosLogin/components/MediaDisplay/type.d.ts +54 -0
- package/lib/plus/webPosLogin/index.d.ts +12 -0
- package/lib/plus/webPosLogin/locales.d.ts +49 -0
- package/lib/plus/webPosLogin/types.d.ts +286 -0
- package/lib/pro/Cards/index.d.ts +1 -0
- package/lib/pro/Login2.0/components/LoginCodeInput.js +26 -4
- package/lib/pro/Login2.0/steps/CodeInput.js +27 -5
- 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 +20 -0
- package/lib/pro/Selector/components/IntersectionObserver.d.ts +105 -0
- package/lib/pro/Selector/components/LayoutContainer/index.d.ts +18 -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 +3 -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 +212 -0
- package/lib/pro/Selector/utils/index.d.ts +49 -0
- package/lib/pro/skuDetailModal/locales.d.ts +103 -0
- package/lib/pro/skuDetailModal/types.d.ts +354 -0
- package/lib/pro/skuDetailModal/utils.d.ts +4 -0
- package/lib/test/setup.d.ts +1 -0
- package/lowcode/kiosk-sku-detail/meta.ts +229 -94
- package/package.json +1 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ChannelAuthSettingProps } from '../types';
|
|
3
|
+
import './index.less';
|
|
4
|
+
declare const SaaSManagermentAuth: React.FC<ChannelAuthSettingProps>;
|
|
5
|
+
export default SaaSManagermentAuth;
|
|
6
|
+
export type { ChannelAuthSettingProps, ChannelAuthSettingValue, ChannelAuthSettingSaveParams, TabKey } from '../types';
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from "../model";
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
+
state: FormState;
|
|
5
|
+
} & {
|
|
6
|
+
dispatch: (params: {
|
|
7
|
+
type: string;
|
|
8
|
+
payload: any;
|
|
9
|
+
}) => void;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getBookingList: (params: any) => Promise<any>;
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from "../model";
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
+
state: FormState;
|
|
5
|
+
} & {
|
|
6
|
+
dispatch: (params: {
|
|
7
|
+
type: string;
|
|
8
|
+
payload: any;
|
|
9
|
+
}) => void;
|
|
10
|
+
}>;
|
|
@@ -4,6 +4,6 @@ declare const useSendModal: (bookingId?: number) => {
|
|
|
4
4
|
setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
5
5
|
handleOpen: () => void;
|
|
6
6
|
handleValuesChange: (val: any) => void;
|
|
7
|
-
handleOk: (values: SendModalValues) => Promise<
|
|
7
|
+
handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
|
|
8
8
|
};
|
|
9
9
|
export default useSendModal;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 获取表单数据
|
|
3
|
+
*/
|
|
4
|
+
export declare const getFormData: (params: {
|
|
5
|
+
form_id: number;
|
|
6
|
+
form_record_ids: number[];
|
|
7
|
+
num: number;
|
|
8
|
+
skip: number;
|
|
9
|
+
}) => Promise<any>;
|
|
10
|
+
/**
|
|
11
|
+
* 发送表单填写提醒
|
|
12
|
+
*/
|
|
13
|
+
export declare const sendFormReminder: (params: {
|
|
14
|
+
email?: string;
|
|
15
|
+
phone?: string;
|
|
16
|
+
order_id: number;
|
|
17
|
+
country_calling_code?: string;
|
|
18
|
+
}) => Promise<any>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { EditServiceRef } from "../service/editService";
|
|
3
|
+
declare const useInfoHolder: (state: any, dispatch: any) => {
|
|
4
|
+
detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
|
|
5
|
+
handleEdit: (cacheItem: any, type?: string) => void;
|
|
6
|
+
dispatchService: (type: string, payload: any) => void;
|
|
7
|
+
handleAction: (dataSource: any) => void;
|
|
8
|
+
showAddTimeModal: boolean;
|
|
9
|
+
editNormalServiceRef: import("react").MutableRefObject<any>;
|
|
10
|
+
};
|
|
11
|
+
export default useInfoHolder;
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from '../model';
|
|
1
3
|
export declare const walkInData: {
|
|
2
4
|
id: number;
|
|
3
5
|
nickname: string;
|
|
4
6
|
};
|
|
5
|
-
export declare const Provider: any, Context:
|
|
7
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
8
|
+
state: FormState;
|
|
9
|
+
} & {
|
|
10
|
+
dispatch: (params: {
|
|
11
|
+
type: string;
|
|
12
|
+
payload: any;
|
|
13
|
+
}) => void;
|
|
14
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getFormDetail: (id: number) => Promise<any>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const getProductDetail: (id: string, params: any) => Promise<any>;
|
|
2
|
+
/**
|
|
3
|
+
* @title: 跨日预约获取预约商品报价单
|
|
4
|
+
* @description:
|
|
5
|
+
* @param {string} id
|
|
6
|
+
* @param {any} params
|
|
7
|
+
* @return {*}
|
|
8
|
+
* @Author: WangHan
|
|
9
|
+
* @Date: 2024-12-23 17:06
|
|
10
|
+
*/
|
|
11
|
+
export declare const postMultiDay: (id: string, params: any) => Promise<any>;
|
|
12
|
+
/**
|
|
13
|
+
* 批量查询指定商品的最新价格
|
|
14
|
+
* @param params
|
|
15
|
+
*/
|
|
16
|
+
export declare const getProductPrice: (params: {
|
|
17
|
+
ids: number[];
|
|
18
|
+
customer_id: number;
|
|
19
|
+
schedule_date: string;
|
|
20
|
+
}) => Promise<any>;
|
|
21
|
+
declare type MultiDayProductPriceParams = {
|
|
22
|
+
customer_id: number;
|
|
23
|
+
data: {
|
|
24
|
+
product_id: number;
|
|
25
|
+
schedule_date: string;
|
|
26
|
+
}[];
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* 获取普通商品和跨日预约的价格
|
|
30
|
+
* @param params
|
|
31
|
+
* @returns
|
|
32
|
+
*/
|
|
33
|
+
export declare const getNormalAndMultiDayProductPrice: (params: MultiDayProductPriceParams) => Promise<any>;
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const useService: ({ renderMode, onEdit, state, dispatch, }: {
|
|
2
|
+
renderMode?: any;
|
|
3
|
+
onEdit?: any;
|
|
4
|
+
state?: any;
|
|
5
|
+
dispatch?: any;
|
|
6
|
+
}) => {
|
|
7
|
+
createBookingData: ({ product }: any) => Promise<any>;
|
|
8
|
+
editBookingData: ({ changeValues }: {
|
|
9
|
+
changeValues: any;
|
|
10
|
+
}) => Promise<any>;
|
|
11
|
+
createBooking: ({ booking }: {
|
|
12
|
+
booking: any;
|
|
13
|
+
}) => Promise<void>;
|
|
14
|
+
editBooking: ({ booking }: {
|
|
15
|
+
booking: any;
|
|
16
|
+
}) => Promise<void>;
|
|
17
|
+
goEditPanel: ({ booking }: {
|
|
18
|
+
booking: any;
|
|
19
|
+
}) => void;
|
|
20
|
+
};
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
export declare const formatActiveKey: (lists: any[], platform: string, isEdit: boolean) => any[];
|
|
3
|
+
/**
|
|
4
|
+
* @title: 获取资源名称
|
|
5
|
+
* @description:
|
|
6
|
+
* @param {any} id
|
|
7
|
+
* @param {any} state
|
|
8
|
+
* @return {*}
|
|
9
|
+
* @Author: WangHan
|
|
10
|
+
* @Date: 2024-11-29 18:02
|
|
11
|
+
*/
|
|
12
|
+
export declare const getResourceItem: (id: any, state: any) => any;
|
|
13
|
+
/**
|
|
14
|
+
* @title: 错误提示
|
|
15
|
+
* @description:
|
|
16
|
+
* @param {any} service
|
|
17
|
+
* @param {any} resourceItem
|
|
18
|
+
* @return {*}
|
|
19
|
+
* @Author: WangHan
|
|
20
|
+
* @Date: 2024-11-29 18:41
|
|
21
|
+
*/
|
|
22
|
+
export declare const getErrorMessage: (service: any, resourceItem: any, isDay?: boolean) => any;
|
|
23
|
+
/**
|
|
24
|
+
* @title: 格式化主体列表
|
|
25
|
+
* @description:
|
|
26
|
+
* @param {any} lists
|
|
27
|
+
* @param {boolean} isOpenGroup
|
|
28
|
+
* @return {*}
|
|
29
|
+
* @Author: WangHan
|
|
30
|
+
* @Date: 2024-12-04 11:27
|
|
31
|
+
*/
|
|
32
|
+
export declare const formatHolderLists: (lists: any) => any;
|
|
33
|
+
export declare const isBookingProduct: (extension_type: any, bol?: boolean) => boolean | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* @title: 是否是预约商品
|
|
36
|
+
* @description:
|
|
37
|
+
* @return {*}
|
|
38
|
+
* @Author: WangHan
|
|
39
|
+
* @Date: 2024-12-06 11:24
|
|
40
|
+
*/
|
|
41
|
+
export declare const isDayBookingProduct: (item: any, state: any) => boolean | undefined;
|
|
42
|
+
export declare const handleChangeHolder: (products: any[], currentItem: any, other: any) => any[];
|
|
43
|
+
/**
|
|
44
|
+
* @title: 更新商品数据
|
|
45
|
+
* @description:
|
|
46
|
+
* @param {any} state
|
|
47
|
+
* @param currentItem
|
|
48
|
+
* @param {string} type
|
|
49
|
+
* @param {any} other
|
|
50
|
+
* @param actions
|
|
51
|
+
* @return {*}
|
|
52
|
+
* @Author: WangHan
|
|
53
|
+
* @Date: 2025-01-03 15:00
|
|
54
|
+
*/
|
|
55
|
+
export declare const updateServices: (state: any, currentItem: any, type?: string, other?: any, actions?: any) => any;
|
|
56
|
+
export declare const formItems: (items: any[]) => any[];
|
|
57
|
+
export declare const getIsSubjectRequire: (state: any) => boolean;
|
|
58
|
+
export declare const isNormalProductByDurationSchedule: (item: any) => boolean;
|
|
59
|
+
export declare const isAllNormalProduct: (items: any[]) => boolean;
|
|
60
|
+
export declare const isAllNormalProductByState: (state: any) => boolean;
|
|
61
|
+
export declare const genRowKey: (key: string) => string;
|
|
62
|
+
/**
|
|
63
|
+
* @title: 格式化商品数据
|
|
64
|
+
* @description:
|
|
65
|
+
* @param {any} lists
|
|
66
|
+
* @return {*}
|
|
67
|
+
* @Author: WangHan
|
|
68
|
+
* @Date: 2024-11-29 17:36
|
|
69
|
+
*/
|
|
70
|
+
export declare const formatProducts: (lists: any[], state: any, isRenderGroup?: boolean, isGeneral?: boolean, isParallelResource?: boolean) => any[];
|
|
71
|
+
/**
|
|
72
|
+
* @title: 禁用日期
|
|
73
|
+
* @description:
|
|
74
|
+
* @param {any} current
|
|
75
|
+
* @param {string} position
|
|
76
|
+
* @param {any} startDate
|
|
77
|
+
* @return {*}
|
|
78
|
+
* @Author: WangHan
|
|
79
|
+
* @Date: 2024-12-03 17:51
|
|
80
|
+
*/
|
|
81
|
+
export declare const disabledDate: (current: any, position: string, currentDate: any) => any;
|
|
82
|
+
/**
|
|
83
|
+
* @title: 是否是跨日预约
|
|
84
|
+
* @description:
|
|
85
|
+
* @param {any} state
|
|
86
|
+
* @return {*}
|
|
87
|
+
* @Author: WangHan
|
|
88
|
+
* @Date: 2024-12-04 09:49
|
|
89
|
+
*/
|
|
90
|
+
export declare const isDayBooking: (state: any) => boolean;
|
|
91
|
+
export declare const isDaysBooking: (state: any) => boolean;
|
|
92
|
+
export declare const isEventBooking: (state: any) => boolean;
|
|
93
|
+
export declare const isAppointmentProduct: (item: any) => boolean;
|
|
94
|
+
/**
|
|
95
|
+
* @title: 是否是terminal上的跨日预约
|
|
96
|
+
* @description:
|
|
97
|
+
* @param {any} state
|
|
98
|
+
* @return {*}
|
|
99
|
+
* @Author: WangHan
|
|
100
|
+
* @Date: 2024-12-04 15:31
|
|
101
|
+
*/
|
|
102
|
+
export declare const isTerminalDayBooking: (state: any) => any;
|
|
103
|
+
export declare const formatDayDate: (_extend: any) => any;
|
|
104
|
+
/**
|
|
105
|
+
* @title: 根据营业日时间格式化时间
|
|
106
|
+
* @description:
|
|
107
|
+
* @param {any} state
|
|
108
|
+
* @return {*}
|
|
109
|
+
* @Author: WangHan
|
|
110
|
+
* @Date: 2024-12-04 12:07
|
|
111
|
+
*/
|
|
112
|
+
export declare const formatDayTime: ({ startDate, endDate }: any) => {
|
|
113
|
+
startDateTime: dayjs.Dayjs;
|
|
114
|
+
endDateTime: dayjs.Dayjs;
|
|
115
|
+
};
|
|
116
|
+
export declare const formatDateTime: (start_date: any, end_date: any) => {
|
|
117
|
+
value: dayjs.Dayjs;
|
|
118
|
+
end_date: dayjs.Dayjs;
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* @title: 初始化日期
|
|
122
|
+
* @description:
|
|
123
|
+
* @return {*}
|
|
124
|
+
* @Author: WangHan
|
|
125
|
+
* @Date: 2024-12-06 17:24
|
|
126
|
+
*/
|
|
127
|
+
export declare const initDate: () => {
|
|
128
|
+
value: dayjs.Dayjs;
|
|
129
|
+
end_date: dayjs.Dayjs;
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* @title: 是否有预约商品
|
|
133
|
+
* @description:
|
|
134
|
+
* @return {*}
|
|
135
|
+
* @Author: WangHan
|
|
136
|
+
* @Date: 2024-12-12 15:47
|
|
137
|
+
*/
|
|
138
|
+
export declare const isHasDayAppointmentProduct: (state: any) => boolean;
|
|
139
|
+
/**
|
|
140
|
+
* @title: 过滤出如果是预约商品,则只获取跨日的预约商品
|
|
141
|
+
* @description:
|
|
142
|
+
* @param {any} lists
|
|
143
|
+
* @return {*}
|
|
144
|
+
* @Author: WangHan
|
|
145
|
+
* @Date: 2024-12-13 16:44
|
|
146
|
+
*/
|
|
147
|
+
export declare const getDayProducts: (holderId: number, lists: any, isTerminal?: boolean) => any;
|
|
148
|
+
/**
|
|
149
|
+
* @title: 格式化表单数据
|
|
150
|
+
* @description:
|
|
151
|
+
* @param {any} state
|
|
152
|
+
* @return {*}
|
|
153
|
+
* @Author: WangHan
|
|
154
|
+
* @Date: 2024-12-30 22:19
|
|
155
|
+
*/
|
|
156
|
+
export declare const getPets: (state: any) => any;
|
|
157
|
+
/**
|
|
158
|
+
* @title: 得出预约商品
|
|
159
|
+
* @description:
|
|
160
|
+
* @param {any} state
|
|
161
|
+
* @return {*}
|
|
162
|
+
* @Author: WangHan
|
|
163
|
+
* @Date: 2024-12-30 22:26
|
|
164
|
+
*/
|
|
165
|
+
export declare const getAppointmentService: (state: any) => any;
|
|
166
|
+
/**
|
|
167
|
+
* @title: 判断是否打开删除宠物弹窗
|
|
168
|
+
* @description:
|
|
169
|
+
* @param {any} state
|
|
170
|
+
* @param {any} newVal
|
|
171
|
+
* @return {*}
|
|
172
|
+
* @Author: WangHan
|
|
173
|
+
* @Date: 2024-12-16 16:12
|
|
174
|
+
*/
|
|
175
|
+
export declare const isOpenDeletePet: (state: any, newVal: any) => {
|
|
176
|
+
ids: any;
|
|
177
|
+
lists: any;
|
|
178
|
+
};
|
|
179
|
+
/**
|
|
180
|
+
* @title: 当前选中的表单id
|
|
181
|
+
* @description:
|
|
182
|
+
* @param {any} state
|
|
183
|
+
* @return {*}
|
|
184
|
+
* @Author: WangHan
|
|
185
|
+
* @Date: 2024-12-17 14:40
|
|
186
|
+
*/
|
|
187
|
+
export declare const holderId: (state: any) => number;
|
|
188
|
+
/**
|
|
189
|
+
* @title: 更新套餐的价格
|
|
190
|
+
* @description:
|
|
191
|
+
* @param {any} currentValue
|
|
192
|
+
* @param {any} newBundleData
|
|
193
|
+
* @return {*}
|
|
194
|
+
* @Author: WangHan
|
|
195
|
+
* @Date: 2024-12-31 15:16
|
|
196
|
+
*/
|
|
197
|
+
export declare function updateNormalBundlePrice(currentValue: any, newBundleData: any): any[];
|
|
198
|
+
/**
|
|
199
|
+
* @title: 更新预约商品报价单
|
|
200
|
+
* @description:
|
|
201
|
+
* @param {any} state
|
|
202
|
+
* @param {any} cacheItem
|
|
203
|
+
* @return {*}
|
|
204
|
+
* @Author: WangHan
|
|
205
|
+
* @Date: 2024-12-25 16:41
|
|
206
|
+
*/
|
|
207
|
+
export declare const updateAppointmentServicePrice: (state: any, { start_date, end_date, product_id }: any) => Promise<{
|
|
208
|
+
multiDayPrices: any;
|
|
209
|
+
price: number;
|
|
210
|
+
}>;
|
|
211
|
+
/**
|
|
212
|
+
* @title: 更新普通商品报价单价格
|
|
213
|
+
* @description:
|
|
214
|
+
* @param {any} state
|
|
215
|
+
* @return {*}
|
|
216
|
+
* @Author: WangHan
|
|
217
|
+
* @Date: 2024-12-24 11:32
|
|
218
|
+
*/
|
|
219
|
+
export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const getResourceList: (params: any, bookingId?: number[]) => Promise<{
|
|
2
|
+
list: any[];
|
|
3
|
+
listMap: any;
|
|
4
|
+
}>;
|
|
5
|
+
export declare const createBookings: (params: any) => Promise<any>;
|
|
6
|
+
export declare const editBookings: (params: any, id?: number) => Promise<any>;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
export declare const getUsableTime: (cacheItem: any) => any;
|
|
3
|
+
export declare const getDurationProps: ({ cacheItem, useStartTime, currentResource, slice, }: any) => {
|
|
4
|
+
startDate: dayjs.Dayjs;
|
|
5
|
+
usableTime: any;
|
|
6
|
+
duration: string | number | {
|
|
7
|
+
type: string;
|
|
8
|
+
value: number;
|
|
9
|
+
};
|
|
10
|
+
locale: string;
|
|
11
|
+
slice: any;
|
|
12
|
+
selectProps: {
|
|
13
|
+
size: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @title: 灵活时长选项
|
|
18
|
+
* @description:
|
|
19
|
+
* @param {*} useMemo
|
|
20
|
+
* @return {*}
|
|
21
|
+
* @Author: zhiwei.Wang
|
|
22
|
+
* @Date: 2024-02-23 10:10
|
|
23
|
+
*/
|
|
24
|
+
export declare const getFlexibleOption: ({ cacheItem, useStartTime, currentResource, slice, durationProps, }: any) => {
|
|
25
|
+
label: any;
|
|
26
|
+
value: any;
|
|
27
|
+
} | null;
|
|
28
|
+
export declare const getTimeSlices: ({ state }: any) => {
|
|
29
|
+
timeSlices: {
|
|
30
|
+
label: string;
|
|
31
|
+
value: string;
|
|
32
|
+
}[];
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* @title: 时间切片
|
|
36
|
+
* @description:
|
|
37
|
+
* @return {*}
|
|
38
|
+
* @Author: zhiwei.Wang
|
|
39
|
+
* @Date: 2024-01-09 13:37
|
|
40
|
+
*/
|
|
41
|
+
export declare const getTimeObj: ({ cacheItem, useStartTime, currentResource, state, useDuration, durationProps, }: any) => {
|
|
42
|
+
timeSlices: {
|
|
43
|
+
label: string;
|
|
44
|
+
value: string;
|
|
45
|
+
}[];
|
|
46
|
+
durationSlicesBasedOnTime: {
|
|
47
|
+
label: string;
|
|
48
|
+
value: number;
|
|
49
|
+
}[];
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* @title: 获取资源列表
|
|
53
|
+
* @description:
|
|
54
|
+
* @return {*}
|
|
55
|
+
* @Author: zhiwei.Wang
|
|
56
|
+
* @Date: 2024-01-09 13:38
|
|
57
|
+
*/
|
|
58
|
+
export declare const formatResources: ({ cacheItem, resourcesOrigin, id }: any) => {
|
|
59
|
+
list: any;
|
|
60
|
+
maps: any;
|
|
61
|
+
};
|
|
62
|
+
export declare const setDefaultResource: ({ cacheItem, resources }: any) => any;
|
|
63
|
+
/**
|
|
64
|
+
* @title: 设置默认容量
|
|
65
|
+
* @description:
|
|
66
|
+
* @param {any} param1
|
|
67
|
+
* @return {*}
|
|
68
|
+
* @Author: zhiwei.Wang
|
|
69
|
+
* @Date: 2024-09-19 20:26
|
|
70
|
+
*/
|
|
71
|
+
export declare const setDefaultCapacitys: ({ capacitys, cacheItem }: any) => any;
|
|
72
|
+
/**
|
|
73
|
+
* @title: 将商品内关联的资源id还原成数据
|
|
74
|
+
* @description:
|
|
75
|
+
* @param {any} resourcesOriginMap
|
|
76
|
+
* @param {any} cacheItem
|
|
77
|
+
* @return {*}
|
|
78
|
+
* @Author: zhiwei.Wang
|
|
79
|
+
* @Date: 2024-09-19 20:23
|
|
80
|
+
*/
|
|
81
|
+
export declare const getResourceByIds: (resourcesOriginMap: any, cacheItem: any, extraParams?: any) => any[];
|
|
82
|
+
/**
|
|
83
|
+
* @title: 是否是跨日商品
|
|
84
|
+
* @description:
|
|
85
|
+
* @param {any} cacheItem
|
|
86
|
+
* @return {*}
|
|
87
|
+
*/
|
|
88
|
+
export declare const isMultiDayProduct: (product: any) => boolean;
|
|
89
|
+
export declare const getMultiDay: ({ start_date, end_date, state, cacheItem, }: any) => Promise<any>;
|
|
90
|
+
/**
|
|
91
|
+
* @title: 预生成服务的 extend
|
|
92
|
+
* @description:
|
|
93
|
+
* @param {any} param1
|
|
94
|
+
* @return {*}
|
|
95
|
+
* @Author: zhiwei.Wang
|
|
96
|
+
* @Date: 2024-06-01 13:25
|
|
97
|
+
*/
|
|
98
|
+
export declare const getProductExtend: ({ cacheItem, state, isDisabledTime }: any) => any;
|
|
99
|
+
/**
|
|
100
|
+
* @title: 格式化服务列表
|
|
101
|
+
* @description: 后端列表返回的product_resource.resources 的optional_resource等不是最新数据
|
|
102
|
+
* 使用with resourceRelation后 返回的resource_relation是实时数据
|
|
103
|
+
* 这里做一次转换
|
|
104
|
+
* @param list
|
|
105
|
+
*/
|
|
106
|
+
export declare const transServiceList: (list: any[]) => any[];
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
1. 在进入编辑服务前
|
|
3
|
+
|
|
4
|
+
计算出各种需要的列表
|
|
5
|
+
|
|
6
|
+
设置默认值
|
|
7
|
+
|
|
8
|
+
判断是否需要进入编辑服务页
|
|
9
|
+
*/
|
|
10
|
+
export declare const getAutoAllocationStorage: (id: string | number) => any;
|
|
11
|
+
export declare const setAutoAllocationStorage: (data: {
|
|
12
|
+
[key: string]: boolean;
|
|
13
|
+
}) => void;
|
|
14
|
+
/**
|
|
15
|
+
* 手动折扣后给商品价格和子商品价格重新计算
|
|
16
|
+
*
|
|
17
|
+
* 计算逻辑:
|
|
18
|
+
* 1. 子商品(bundle + option)按折扣比例计算,直接截取两位小数(不四舍五入)
|
|
19
|
+
* 2. 主商品价格 = newTotal - 所有子商品价格总和(确保总价精确等于 newTotal)
|
|
20
|
+
*
|
|
21
|
+
* @param cacheItem - 缓存的商品项
|
|
22
|
+
* @param newTotal - 折扣后的新总价
|
|
23
|
+
* @param origin_total - 原始总价
|
|
24
|
+
*/
|
|
25
|
+
export declare const setProductPrice: (cacheItem: any, { newTotal, origin_total }: {
|
|
26
|
+
newTotal: number;
|
|
27
|
+
origin_total: number;
|
|
28
|
+
}) => any;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface OpenNormalServiceCreatePayload {
|
|
2
|
+
mode: 'create';
|
|
3
|
+
productId: number;
|
|
4
|
+
date: string;
|
|
5
|
+
isEject: 0 | 1;
|
|
6
|
+
productData?: any;
|
|
7
|
+
/**
|
|
8
|
+
* @description 弹窗关闭回调(用于外部清理状态,例如清空当前选中商品)
|
|
9
|
+
*/
|
|
10
|
+
onClose?: () => void;
|
|
11
|
+
/**
|
|
12
|
+
* 回传给 addServiceVariant 的 callback(保持现有签名)
|
|
13
|
+
*/
|
|
14
|
+
callback: (e: any, extension_type: any, detail: any, notShowToast: boolean) => void;
|
|
15
|
+
}
|
|
16
|
+
export interface OpenNormalServiceEditPayload {
|
|
17
|
+
mode: 'edit';
|
|
18
|
+
cacheItem: any;
|
|
19
|
+
productData?: any;
|
|
20
|
+
/**
|
|
21
|
+
* @description 弹窗关闭回调(用于外部清理状态,例如清空当前选中商品)
|
|
22
|
+
*/
|
|
23
|
+
onClose?: () => void;
|
|
24
|
+
callback: (e: any, extension_type: any, detail: any, notShowToast: boolean) => void;
|
|
25
|
+
}
|
|
26
|
+
export declare type OpenNormalServicePayload = OpenNormalServiceCreatePayload | OpenNormalServiceEditPayload;
|
|
27
|
+
/**
|
|
28
|
+
* 注册“打开普通服务编辑弹窗”的处理函数
|
|
29
|
+
*/
|
|
30
|
+
export declare function setOpenNormalServiceHandler(handler?: (payload: OpenNormalServicePayload) => void | Promise<void>): void;
|
|
31
|
+
/**
|
|
32
|
+
* 获取当前注册的“打开普通服务编辑弹窗”处理函数
|
|
33
|
+
*/
|
|
34
|
+
export declare function getOpenNormalServiceHandler(): ((payload: OpenNormalServicePayload) => void | Promise<void>) | undefined;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const getResourceTimeIsUsable: (item: any, cacheItem: any, resourceItem: any) => any;
|
|
2
|
+
export declare const getSumCapacity: ({ cacheItem }: any, isCalcQuantity?: boolean) => number;
|
|
3
|
+
/**
|
|
4
|
+
* @title: 查找是否有可用的time
|
|
5
|
+
* @description:
|
|
6
|
+
* @param {any} resourceItem
|
|
7
|
+
* @return {*}
|
|
8
|
+
* @Author: zhiwei.Wang
|
|
9
|
+
* @Date: 2024-01-09 13:57
|
|
10
|
+
*/
|
|
11
|
+
export declare const formatTimes: (resourceItem: any, cacheItem: any) => any;
|
|
12
|
+
export declare const getErrorList: (resource: any, cacheItem: any) => {
|
|
13
|
+
label: any;
|
|
14
|
+
type: string;
|
|
15
|
+
}[];
|
|
16
|
+
/**
|
|
17
|
+
* @title: 格式化资源, 添加自定义参数
|
|
18
|
+
* @description:
|
|
19
|
+
* @param {any} resourceItem
|
|
20
|
+
* @return {*}
|
|
21
|
+
* @Author: zhiwei.Wang
|
|
22
|
+
* @Date: 2024-01-09 13:40
|
|
23
|
+
*/
|
|
24
|
+
export declare const formatResource: (resourceItem: any, cacheItem?: any, formatLabel?: any) => any;
|
|
25
|
+
export declare const getAppointmentTimingPreference: (state: any) => any;
|
|
26
|
+
/**
|
|
27
|
+
* @title: 创建服务的开始时间和结束时间
|
|
28
|
+
* @description:
|
|
29
|
+
* @param {any} state
|
|
30
|
+
* @param {any} item
|
|
31
|
+
* @return {*}
|
|
32
|
+
* @Author: zhiwei.Wang
|
|
33
|
+
* @Date: 2024-01-26 14:09
|
|
34
|
+
*/
|
|
35
|
+
export declare const getServiceStartTimeAndEndTime: (state: any, cacheItem: any, timeObj: any) => any;
|
|
36
|
+
export declare const getIsNoSpecAndPackage: (product: any) => boolean;
|