@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
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
.pisell-kiosk-sku-detail {
|
|
1
|
+
.pisell-kiosk-sku-detail-viewport {
|
|
2
2
|
position: relative;
|
|
3
|
-
width:
|
|
3
|
+
width: 100vw;
|
|
4
4
|
height: 100vh;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
background: #f2f4f7;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.pisell-kiosk-sku-detail {
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: 0;
|
|
12
|
+
left: 50%;
|
|
13
|
+
width: 1080px;
|
|
14
|
+
height: 1800px;
|
|
5
15
|
overflow-y: auto;
|
|
6
16
|
background: #f2f4f7;
|
|
7
17
|
background-size: cover;
|
|
@@ -11,12 +21,40 @@
|
|
|
11
21
|
}
|
|
12
22
|
|
|
13
23
|
.pisell-kiosk-sku-detail__content {
|
|
14
|
-
|
|
24
|
+
width: 100%;
|
|
15
25
|
margin: 0 auto;
|
|
16
26
|
display: flex;
|
|
17
27
|
flex-direction: column;
|
|
18
28
|
gap: 40px;
|
|
19
29
|
padding-bottom: 220px; // avoid overlap with footer
|
|
30
|
+
.pisell-pro-selector_header-content {
|
|
31
|
+
.pisell-pro-selector_header-content-title {
|
|
32
|
+
color: #101828;
|
|
33
|
+
font-size: 36px !important;
|
|
34
|
+
}
|
|
35
|
+
.pisell-lowcode-tag {
|
|
36
|
+
font-size: 22px !important;
|
|
37
|
+
margin-left: 20px !important;
|
|
38
|
+
padding-top: 5px !important;
|
|
39
|
+
padding-bottom: 5px !important;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
.pisell-pro-selector_tip {
|
|
43
|
+
font-size: 36px !important;
|
|
44
|
+
color: #667085;
|
|
45
|
+
}
|
|
46
|
+
.pisell-sku-options-selection-variant-card__title {
|
|
47
|
+
font-size: 36px !important;
|
|
48
|
+
font-weight: 600 !important;
|
|
49
|
+
color: #101828;
|
|
50
|
+
}
|
|
51
|
+
.pisell-sku-options-selection-variant-card__price {
|
|
52
|
+
font-size: 30px !important;
|
|
53
|
+
}
|
|
54
|
+
.pisell-sku-options-selection-variant-card {
|
|
55
|
+
padding-top: 30px !important;
|
|
56
|
+
padding-bottom: 30px !important;
|
|
57
|
+
}
|
|
20
58
|
}
|
|
21
59
|
|
|
22
60
|
.pisell-kiosk-sku-detail__hero {
|
|
@@ -55,7 +93,6 @@
|
|
|
55
93
|
}
|
|
56
94
|
|
|
57
95
|
.pisell-kiosk-sku-detail__desc {
|
|
58
|
-
max-width: 860px;
|
|
59
96
|
font-size: 36px;
|
|
60
97
|
line-height: 44px;
|
|
61
98
|
font-weight: 400;
|
|
@@ -91,11 +128,13 @@
|
|
|
91
128
|
}
|
|
92
129
|
|
|
93
130
|
.pisell-kiosk-sku-detail__footer {
|
|
131
|
+
// 注意:父容器有 transform(scale),fixed 会相对该容器定位(适配小分辨率缩放舞台)
|
|
94
132
|
position: fixed;
|
|
95
|
-
left:
|
|
133
|
+
left: 30px;
|
|
134
|
+
right: 30px;
|
|
96
135
|
bottom: 30px;
|
|
97
|
-
transform:
|
|
98
|
-
width:
|
|
136
|
+
transform: none;
|
|
137
|
+
width: auto;
|
|
99
138
|
display: flex;
|
|
100
139
|
align-items: center;
|
|
101
140
|
justify-content: space-between;
|
|
@@ -125,6 +164,9 @@
|
|
|
125
164
|
display: flex;
|
|
126
165
|
align-items: center;
|
|
127
166
|
gap: 20px;
|
|
167
|
+
// 靠右,并与右侧主按钮保持 20px 间距
|
|
168
|
+
margin-left: auto;
|
|
169
|
+
margin-right: 20px;
|
|
128
170
|
}
|
|
129
171
|
|
|
130
172
|
.pisell-kiosk-sku-detail__item-total {
|
|
@@ -3,19 +3,25 @@ declare const _default: {
|
|
|
3
3
|
'pisell2.text.kiosk.sku.detail.btn.back': string;
|
|
4
4
|
'pisell2.text.kiosk.sku.detail.item.total': string;
|
|
5
5
|
'pisell2.text.kiosk.sku.detail.btn.add.to.cart': string;
|
|
6
|
+
'pisell2.text.kiosk.sku.detail.btn.update': string;
|
|
6
7
|
'pisell2.text.kiosk.sku.detail.loading.options': string;
|
|
8
|
+
'pisell2.text.kiosk.sku.detail.toast.select.variant': string;
|
|
7
9
|
};
|
|
8
10
|
'zh-CN': {
|
|
9
11
|
'pisell2.text.kiosk.sku.detail.btn.back': string;
|
|
10
12
|
'pisell2.text.kiosk.sku.detail.item.total': string;
|
|
11
13
|
'pisell2.text.kiosk.sku.detail.btn.add.to.cart': string;
|
|
14
|
+
'pisell2.text.kiosk.sku.detail.btn.update': string;
|
|
12
15
|
'pisell2.text.kiosk.sku.detail.loading.options': string;
|
|
16
|
+
'pisell2.text.kiosk.sku.detail.toast.select.variant': string;
|
|
13
17
|
};
|
|
14
18
|
'zh-TW': {
|
|
15
19
|
'pisell2.text.kiosk.sku.detail.btn.back': string;
|
|
16
20
|
'pisell2.text.kiosk.sku.detail.item.total': string;
|
|
17
21
|
'pisell2.text.kiosk.sku.detail.btn.add.to.cart': string;
|
|
22
|
+
'pisell2.text.kiosk.sku.detail.btn.update': string;
|
|
18
23
|
'pisell2.text.kiosk.sku.detail.loading.options': string;
|
|
24
|
+
'pisell2.text.kiosk.sku.detail.toast.select.variant': string;
|
|
19
25
|
};
|
|
20
26
|
};
|
|
21
27
|
export default _default;
|
|
@@ -27,18 +27,24 @@ var locales_default = {
|
|
|
27
27
|
"pisell2.text.kiosk.sku.detail.btn.back": "Back",
|
|
28
28
|
"pisell2.text.kiosk.sku.detail.item.total": "Item total",
|
|
29
29
|
"pisell2.text.kiosk.sku.detail.btn.add.to.cart": "Add to cart",
|
|
30
|
-
"pisell2.text.kiosk.sku.detail.
|
|
30
|
+
"pisell2.text.kiosk.sku.detail.btn.update": "Update",
|
|
31
|
+
"pisell2.text.kiosk.sku.detail.loading.options": "Loading options…",
|
|
32
|
+
"pisell2.text.kiosk.sku.detail.toast.select.variant": "Please select a top-up option"
|
|
31
33
|
},
|
|
32
34
|
"zh-CN": {
|
|
33
35
|
"pisell2.text.kiosk.sku.detail.btn.back": "返回",
|
|
34
36
|
"pisell2.text.kiosk.sku.detail.item.total": "小计",
|
|
35
37
|
"pisell2.text.kiosk.sku.detail.btn.add.to.cart": "加入购物车",
|
|
36
|
-
"pisell2.text.kiosk.sku.detail.
|
|
38
|
+
"pisell2.text.kiosk.sku.detail.btn.update": "更新",
|
|
39
|
+
"pisell2.text.kiosk.sku.detail.loading.options": "正在加载选项…",
|
|
40
|
+
"pisell2.text.kiosk.sku.detail.toast.select.variant": "请选择充值选项"
|
|
37
41
|
},
|
|
38
42
|
"zh-TW": {
|
|
39
43
|
"pisell2.text.kiosk.sku.detail.btn.back": "返回",
|
|
40
44
|
"pisell2.text.kiosk.sku.detail.item.total": "小計",
|
|
41
45
|
"pisell2.text.kiosk.sku.detail.btn.add.to.cart": "加入購物車",
|
|
42
|
-
"pisell2.text.kiosk.sku.detail.
|
|
46
|
+
"pisell2.text.kiosk.sku.detail.btn.update": "更新",
|
|
47
|
+
"pisell2.text.kiosk.sku.detail.loading.options": "正在載入選項…",
|
|
48
|
+
"pisell2.text.kiosk.sku.detail.toast.select.variant": "請選擇充值選項"
|
|
43
49
|
}
|
|
44
50
|
};
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { ReactNode, CSSProperties } from 'react';
|
|
2
|
+
/** 设备类型 */
|
|
3
|
+
export declare type DeviceType = 'pc' | 'pad' | 'mobile';
|
|
4
|
+
/** 设备信息 */
|
|
5
|
+
export interface DeviceInfo {
|
|
6
|
+
type: DeviceType;
|
|
7
|
+
isMobile: boolean;
|
|
8
|
+
isPad: boolean;
|
|
9
|
+
isPc: boolean;
|
|
10
|
+
width: number;
|
|
11
|
+
height: number;
|
|
12
|
+
}
|
|
13
|
+
/** 响应式配置接口 */
|
|
14
|
+
export interface ResponsiveConfig {
|
|
15
|
+
/** PC端特定配置 */
|
|
16
|
+
pc?: Partial<ListProps>;
|
|
17
|
+
/** 平板端特定配置 */
|
|
18
|
+
pad?: Partial<ListProps>;
|
|
19
|
+
/** 移动端特定配置 */
|
|
20
|
+
mobile?: Partial<ListProps>;
|
|
21
|
+
}
|
|
22
|
+
/** 响应式Props接口 - 继承ListProps并添加responsive属性 */
|
|
23
|
+
export interface ResponsiveProps extends ListProps {
|
|
24
|
+
/** 响应式配置 */
|
|
25
|
+
responsive?: ResponsiveConfig;
|
|
26
|
+
}
|
|
27
|
+
/** ResponsiveWrapper 组件属性 */
|
|
28
|
+
export interface ResponsiveWrapperProps extends ResponsiveProps {
|
|
29
|
+
/** 子元素 */
|
|
30
|
+
children?: ReactNode;
|
|
31
|
+
}
|
|
32
|
+
/** 基础列表项接口 */
|
|
33
|
+
export interface BaseListItem {
|
|
34
|
+
/** 唯一标识 */
|
|
35
|
+
id: string | number;
|
|
36
|
+
/** 预设高度(瀑布流模式) */
|
|
37
|
+
height?: number;
|
|
38
|
+
/** 预设宽度(瀑布流模式) */
|
|
39
|
+
width?: number;
|
|
40
|
+
/** 其他任意属性,可以包含用于分组的字段 */
|
|
41
|
+
[key: string]: any;
|
|
42
|
+
}
|
|
43
|
+
/** 空状态配置接口 */
|
|
44
|
+
export interface EmptyStateConfig {
|
|
45
|
+
/** 是否显示空状态 */
|
|
46
|
+
show?: boolean;
|
|
47
|
+
/** 空状态文本 */
|
|
48
|
+
text?: string;
|
|
49
|
+
/** 空状态图标 */
|
|
50
|
+
icon?: ReactNode;
|
|
51
|
+
/** 空状态描述 */
|
|
52
|
+
description?: string;
|
|
53
|
+
}
|
|
54
|
+
/** 分页信息接口 */
|
|
55
|
+
export interface PaginationInfo {
|
|
56
|
+
/** 当前页数 */
|
|
57
|
+
current?: number;
|
|
58
|
+
/** 总页数 */
|
|
59
|
+
total?: number;
|
|
60
|
+
/** 总数据条数 */
|
|
61
|
+
totalCount?: number;
|
|
62
|
+
}
|
|
63
|
+
/** 布局配置接口 */
|
|
64
|
+
export interface LayoutConfig {
|
|
65
|
+
/** 显示样式 */
|
|
66
|
+
displayStyle?: 'grid' | 'waterfall';
|
|
67
|
+
/** 排版方式 */
|
|
68
|
+
layoutDirection?: 'horizontal' | 'vertical';
|
|
69
|
+
/** 列数 */
|
|
70
|
+
columns?: number;
|
|
71
|
+
/** 行数 */
|
|
72
|
+
rows?: number;
|
|
73
|
+
/** 列间距 */
|
|
74
|
+
columnGap?: number;
|
|
75
|
+
/** 行间距 */
|
|
76
|
+
rowGap?: number;
|
|
77
|
+
/** 缩放倍率 */
|
|
78
|
+
zoom?: number;
|
|
79
|
+
}
|
|
80
|
+
/** Tab配置接口 */
|
|
81
|
+
export interface TabConfig {
|
|
82
|
+
/** tab样式 */
|
|
83
|
+
tabStyle?: 'anchor' | 'switch' | 'none';
|
|
84
|
+
/** 指定用于分组的数据字段名,例如 'category'、'type' 等 */
|
|
85
|
+
tabGroup?: string;
|
|
86
|
+
/** Tab数据源 */
|
|
87
|
+
tabData?: TabItem[];
|
|
88
|
+
/** 顶部固定 */
|
|
89
|
+
stickyTop?: boolean;
|
|
90
|
+
}
|
|
91
|
+
/** 分页配置接口 */
|
|
92
|
+
export interface PaginationConfig {
|
|
93
|
+
/** 分页方式 */
|
|
94
|
+
paginationType?: 'all' | 'scroll' | 'pager' | 'more';
|
|
95
|
+
/** 默认显示个数 */
|
|
96
|
+
defaultPageSize?: number;
|
|
97
|
+
/** 每次加载个数 */
|
|
98
|
+
pageSize?: number;
|
|
99
|
+
/** 分页信息 */
|
|
100
|
+
pagination?: PaginationInfo;
|
|
101
|
+
}
|
|
102
|
+
/** 泛型List组件Props接口 */
|
|
103
|
+
export interface ListProps<TItem extends BaseListItem = BaseListItem> {
|
|
104
|
+
/** 基础属性 */
|
|
105
|
+
className?: string;
|
|
106
|
+
style?: CSSProperties;
|
|
107
|
+
width?: string | number;
|
|
108
|
+
height?: string | number;
|
|
109
|
+
/** 布局配置 */
|
|
110
|
+
displayStyle?: LayoutConfig['displayStyle'];
|
|
111
|
+
layoutDirection?: LayoutConfig['layoutDirection'];
|
|
112
|
+
columns?: LayoutConfig['columns'];
|
|
113
|
+
rows?: LayoutConfig['rows'];
|
|
114
|
+
columnGap?: LayoutConfig['columnGap'];
|
|
115
|
+
rowGap?: LayoutConfig['rowGap'];
|
|
116
|
+
zoom?: LayoutConfig['zoom'];
|
|
117
|
+
/** Tab配置 */
|
|
118
|
+
tabStyle?: TabConfig['tabStyle'];
|
|
119
|
+
tabGroup?: TabConfig['tabGroup'];
|
|
120
|
+
tabData?: TabConfig['tabData'];
|
|
121
|
+
stickyTop?: TabConfig['stickyTop'];
|
|
122
|
+
/** 分页配置 */
|
|
123
|
+
paginationType?: PaginationConfig['paginationType'];
|
|
124
|
+
defaultPageSize?: PaginationConfig['defaultPageSize'];
|
|
125
|
+
pageSize?: PaginationConfig['pageSize'];
|
|
126
|
+
pagination?: PaginationConfig['pagination'];
|
|
127
|
+
/** 数据和渲染 */
|
|
128
|
+
data?: TItem[];
|
|
129
|
+
children?: ReactNode;
|
|
130
|
+
renderItem?: (item: TItem, index: number) => ReactNode;
|
|
131
|
+
/** 回调函数 */
|
|
132
|
+
onLoadData?: (params: LoadDataParams) => void;
|
|
133
|
+
/** 状态配置 */
|
|
134
|
+
emptyConfig?: EmptyStateConfig;
|
|
135
|
+
loading?: boolean;
|
|
136
|
+
renderSearch?: () => ReactNode;
|
|
137
|
+
}
|
|
138
|
+
/** 向后兼容的非泛型版本 */
|
|
139
|
+
export interface LegacyListProps extends ListProps<any> {
|
|
140
|
+
/** 兼容旧的any[]类型 */
|
|
141
|
+
data?: any[];
|
|
142
|
+
renderItem?: (item: any, index: number) => ReactNode;
|
|
143
|
+
}
|
|
144
|
+
export interface TabItem {
|
|
145
|
+
/** 唯一标识,同时用作anchor模式下的锚点标识 */
|
|
146
|
+
key: string;
|
|
147
|
+
/** 显示文本 */
|
|
148
|
+
label: string;
|
|
149
|
+
/** 分组值,对应数据项中 tabGroup 指定字段的值 */
|
|
150
|
+
group?: string;
|
|
151
|
+
/** 是否禁用 */
|
|
152
|
+
disabled?: boolean;
|
|
153
|
+
}
|
|
154
|
+
export interface LoadMoreParams {
|
|
155
|
+
/** 当前页码 */
|
|
156
|
+
currentPage: number;
|
|
157
|
+
/** 每页数量 */
|
|
158
|
+
pageSize: number;
|
|
159
|
+
/** 当前tab */
|
|
160
|
+
activeTab?: string;
|
|
161
|
+
}
|
|
162
|
+
/** 数据加载触发类型 */
|
|
163
|
+
export declare type LoadDataTrigger = 'tabChange' | 'pagination' | 'pageSize' | 'loadMore' | 'scroll';
|
|
164
|
+
/** 统一的数据加载参数 */
|
|
165
|
+
export interface LoadDataParams {
|
|
166
|
+
/** 触发类型 */
|
|
167
|
+
trigger: LoadDataTrigger;
|
|
168
|
+
/** 当前页码 */
|
|
169
|
+
currentPage: number;
|
|
170
|
+
/** 每页数量 */
|
|
171
|
+
pageSize: number;
|
|
172
|
+
/** 当前激活的tab */
|
|
173
|
+
activeTab?: string;
|
|
174
|
+
/** 上一页页码(分页变化时提供) */
|
|
175
|
+
previousPage?: number;
|
|
176
|
+
/** 上一页大小(页大小变化时提供) */
|
|
177
|
+
previousPageSize?: number;
|
|
178
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List 组件工具函数导出
|
|
3
|
+
*/
|
|
4
|
+
export { useGetText, createGetText, default as createGetTextDefault, type SupportedLanguage, type LocalesObject, type GetTextFunctions, } from './getText';
|
|
5
|
+
/**
|
|
6
|
+
* 根据层级路径数组递归查找对应节点的 productIds
|
|
7
|
+
* @param nodes 当前层级的节点列表
|
|
8
|
+
* @param levelPath 层级路径数组,每个元素是对应层级的分类 ID
|
|
9
|
+
* @param currentLevel 当前遍历的层级索引
|
|
10
|
+
* @returns 找到的节点的 productIds,找不到返回空数组
|
|
11
|
+
*
|
|
12
|
+
* @description
|
|
13
|
+
* 特殊逻辑:如果 levelPath 末尾有连续的 0,则去掉所有末尾的 0
|
|
14
|
+
* 例如:
|
|
15
|
+
* - [1, 2, 0] -> 取 id=2 节点的 productIds
|
|
16
|
+
* - [1, 0, 0] -> 取 id=1 节点的 productIds
|
|
17
|
+
* - [3, 0, 0, 0] -> 取 id=3 节点的 productIds
|
|
18
|
+
*/
|
|
19
|
+
export declare const findProductIdsByPath: (nodes: any[], levelPath: (string | number)[], currentLevel?: number) => number[];
|
|
@@ -97,7 +97,14 @@ var EFTPOS = (props, ref) => {
|
|
|
97
97
|
name: payMethod.name,
|
|
98
98
|
symbol: params.symbol,
|
|
99
99
|
amount: params.amount,
|
|
100
|
-
device_number
|
|
100
|
+
device_number,
|
|
101
|
+
custom_payment_id: payMethod == null ? void 0 : payMethod.id,
|
|
102
|
+
custom_payment_code: payMethod == null ? void 0 : payMethod.code,
|
|
103
|
+
custom_payment_name: payMethod == null ? void 0 : payMethod.name,
|
|
104
|
+
custom_payment_type: payMethod == null ? void 0 : payMethod.type,
|
|
105
|
+
operator_type: params == null ? void 0 : params.operator_type,
|
|
106
|
+
operator_id: params == null ? void 0 : params.operator_id,
|
|
107
|
+
platform: params == null ? void 0 : params.platform
|
|
101
108
|
},
|
|
102
109
|
mode
|
|
103
110
|
};
|
|
@@ -32,6 +32,18 @@ var getPaymentList = async (values) => {
|
|
|
32
32
|
let { data = [] } = await import_utils.request.getRequest().get("/h5/pay/order/payments", values);
|
|
33
33
|
return filterPaymentList(data);
|
|
34
34
|
};
|
|
35
|
+
var sortArr = [
|
|
36
|
+
"mw.google",
|
|
37
|
+
"mw.apple",
|
|
38
|
+
"mw.credit_card",
|
|
39
|
+
"stripe",
|
|
40
|
+
"pisell.bank_deposit",
|
|
41
|
+
"superpay.alipay.h5",
|
|
42
|
+
"superpay.wechat.h5",
|
|
43
|
+
"pisell.offline_payment",
|
|
44
|
+
"pisell.other.cashmanual",
|
|
45
|
+
"pisell.custom_payment"
|
|
46
|
+
];
|
|
35
47
|
var filterPaymentList = (list, platform = "h5", isApp, amount) => {
|
|
36
48
|
let paymentList = [...list];
|
|
37
49
|
let _paymentKeys = [...import_status.paymentKeys];
|
|
@@ -62,6 +74,9 @@ var filterPaymentList = (list, platform = "h5", isApp, amount) => {
|
|
|
62
74
|
walletPass
|
|
63
75
|
};
|
|
64
76
|
}
|
|
77
|
+
paymentList = paymentList.sort((a, b) => {
|
|
78
|
+
return sortArr.indexOf(a.service) - sortArr.indexOf(b.service);
|
|
79
|
+
});
|
|
65
80
|
paymentList = paymentList.map((d) => {
|
|
66
81
|
let _item = import_status2.paymentTypes.find((t) => t.service === d.service);
|
|
67
82
|
let service = d.service;
|
|
@@ -159,15 +159,15 @@ var checkEnrollment = async (orderId, cardInfo, callback) => {
|
|
|
159
159
|
}
|
|
160
160
|
};
|
|
161
161
|
var createThreeDSMethodIframe = async (threeDSMethodData, callback) => {
|
|
162
|
-
var _a, _b, _c, _d, _e;
|
|
162
|
+
var _a, _b, _c, _d, _e, _f;
|
|
163
163
|
const defaultReturnParams = {
|
|
164
|
-
threeDSServerTransID: ((_a = threeDSMethodData == null ? void 0 : threeDSMethodData.pay_info) == null ? void 0 : _a.threeDSServerTransID) || "",
|
|
165
|
-
threeDSCompInd: ((
|
|
164
|
+
threeDSServerTransID: ((_a = threeDSMethodData == null ? void 0 : threeDSMethodData.pay_info) == null ? void 0 : _a.threeDSServerTransID) || ((_b = threeDSMethodData == null ? void 0 : threeDSMethodData.pay_info) == null ? void 0 : _b.paReq) || "",
|
|
165
|
+
threeDSCompInd: ((_c = threeDSMethodData == null ? void 0 : threeDSMethodData.pay_info) == null ? void 0 : _c.threeDSCompInd) || "N"
|
|
166
166
|
};
|
|
167
|
-
if (((
|
|
167
|
+
if (((_d = threeDSMethodData == null ? void 0 : threeDSMethodData.pay_info) == null ? void 0 : _d.threeDSServerTransID) && ((_e = threeDSMethodData == null ? void 0 : threeDSMethodData.pay_info) == null ? void 0 : _e.threeDSCompInd)) {
|
|
168
168
|
return defaultReturnParams;
|
|
169
169
|
}
|
|
170
|
-
if (!(threeDSMethodData == null ? void 0 : threeDSMethodData.pay_info.acsURL) || typeof ((
|
|
170
|
+
if (!(threeDSMethodData == null ? void 0 : threeDSMethodData.pay_info.acsURL) || typeof ((_f = threeDSMethodData == null ? void 0 : threeDSMethodData.pay_info) == null ? void 0 : _f.acsURL) !== "string") {
|
|
171
171
|
return defaultReturnParams;
|
|
172
172
|
}
|
|
173
173
|
const displayBox = document.getElementById("threeds-container");
|
|
@@ -193,13 +193,14 @@ var createThreeDSMethodIframe = async (threeDSMethodData, callback) => {
|
|
|
193
193
|
form.submit();
|
|
194
194
|
let timer = null;
|
|
195
195
|
return new Promise((res, rej) => {
|
|
196
|
+
var _a2;
|
|
196
197
|
timer = setTimeout(() => {
|
|
197
198
|
res(defaultReturnParams);
|
|
198
199
|
log({
|
|
199
200
|
msg: "第三步: 10秒超时则走N逻辑",
|
|
200
201
|
data: threeDSMethodData
|
|
201
202
|
});
|
|
202
|
-
}, 1e4);
|
|
203
|
+
}, ((_a2 = threeDSMethodData == null ? void 0 : threeDSMethodData.pay_info) == null ? void 0 : _a2.tdsMethodTimeoutMS) || 1e4);
|
|
203
204
|
window.addEventListener(
|
|
204
205
|
"message",
|
|
205
206
|
(event) => {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export interface FormState {
|
|
2
3
|
platform: 'pc' | 'h5' | '' | undefined;
|
|
3
4
|
order: any;
|
|
@@ -29,4 +30,11 @@ export interface PayGroup {
|
|
|
29
30
|
_order: any;
|
|
30
31
|
front_order_uuid?: string;
|
|
31
32
|
}
|
|
32
|
-
export declare const Provider: any, Context:
|
|
33
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
34
|
+
state: FormState;
|
|
35
|
+
} & {
|
|
36
|
+
dispatch: (params: {
|
|
37
|
+
type: string;
|
|
38
|
+
payload: any;
|
|
39
|
+
}) => void;
|
|
40
|
+
}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { CalendarDataItem, ScheduleItem } from "./type";
|
|
2
3
|
import dayjs from "dayjs";
|
|
3
4
|
export interface FormState {
|
|
@@ -68,4 +69,11 @@ export interface FormState {
|
|
|
68
69
|
};
|
|
69
70
|
setGlobalState: Function | null;
|
|
70
71
|
}
|
|
71
|
-
export declare const Provider: any, Context:
|
|
72
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
73
|
+
state: FormState;
|
|
74
|
+
} & {
|
|
75
|
+
dispatch: (params: {
|
|
76
|
+
type: string;
|
|
77
|
+
payload: any;
|
|
78
|
+
}) => void;
|
|
79
|
+
}>;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 产品展示配置类型定义
|
|
3
|
+
*/
|
|
4
|
+
import type { ProductCardConfig } from '../../../../plus/productSelect/ProductCard/SkuCard/type';
|
|
5
|
+
/** 预设配置的字符串键 */
|
|
6
|
+
export declare type ProductDisplayPresetKey = 'product-select' | 'sku-list-a1' | 'sku-list-a2' | 'sku-list-a5' | 'default';
|
|
7
|
+
/** ProductSelect 布局配置 */
|
|
8
|
+
export interface ProductSelectLayout {
|
|
9
|
+
grid: boolean;
|
|
10
|
+
config: string;
|
|
11
|
+
}
|
|
12
|
+
export declare type NumberBoolean = 0 | 1;
|
|
13
|
+
/** ProductSelect 列表设置 */
|
|
14
|
+
export interface ProductListSetting {
|
|
15
|
+
/** 是否显示产品封面 */
|
|
16
|
+
isProductCover?: NumberBoolean;
|
|
17
|
+
/** 是否显示标题 */
|
|
18
|
+
isTitle?: NumberBoolean;
|
|
19
|
+
/** 是否显示副标题 */
|
|
20
|
+
isSubtitle?: NumberBoolean;
|
|
21
|
+
/** 是否显示价格 */
|
|
22
|
+
isPrice?: NumberBoolean;
|
|
23
|
+
/** 是否显示原价 */
|
|
24
|
+
isOriginPrice?: NumberBoolean;
|
|
25
|
+
/** 是否显示库存 */
|
|
26
|
+
isStock?: NumberBoolean;
|
|
27
|
+
}
|
|
28
|
+
/** ProductSelect 模式配置 */
|
|
29
|
+
export interface ProductSelectConfig {
|
|
30
|
+
/** 是否显示搜索框 */
|
|
31
|
+
showSearch?: boolean;
|
|
32
|
+
/** 是否显示分类Tab */
|
|
33
|
+
showTab?: boolean;
|
|
34
|
+
/** 布局配置 */
|
|
35
|
+
layout?: ProductSelectLayout;
|
|
36
|
+
/** 产品列表设置 */
|
|
37
|
+
productListSetting?: ProductListSetting;
|
|
38
|
+
}
|
|
39
|
+
/** SkuCard 显示模式 */
|
|
40
|
+
export declare type SkuCardDisplayMode = 'display_a1' | 'display_a2' | 'display_a5' | 'display_a9' | 'display_custom';
|
|
41
|
+
/**
|
|
42
|
+
* SkuCard 配置
|
|
43
|
+
* 直接使用 ProductCardConfig 类型,保持类型同步
|
|
44
|
+
*
|
|
45
|
+
* @see packages/private-materials/src/plus/productSelect/ProductCard/SkuCard/type.ts ProductCardConfig
|
|
46
|
+
*/
|
|
47
|
+
export declare type SkuCardAllConfig = ProductCardConfig;
|
|
48
|
+
/** List 布局类型 */
|
|
49
|
+
export declare type ListLayoutType = 'grid' | 'list';
|
|
50
|
+
/** Tab 样式类型 */
|
|
51
|
+
export declare type TabStyleType = 'switch' | 'anchor' | 'none';
|
|
52
|
+
/** List 组件配置 */
|
|
53
|
+
export interface ListConfig {
|
|
54
|
+
/** 布局类型 */
|
|
55
|
+
layout?: ListLayoutType;
|
|
56
|
+
/** 列数 */
|
|
57
|
+
columns?: number;
|
|
58
|
+
/** 是否显示分页 */
|
|
59
|
+
showPagination?: boolean;
|
|
60
|
+
/** 是否显示Tab */
|
|
61
|
+
showTab?: boolean;
|
|
62
|
+
/** Tab 样式类型:switch-切换模式,anchor-锚点模式,none-不显示 */
|
|
63
|
+
tabStyle?: TabStyleType;
|
|
64
|
+
/** Tab 是否吸顶 */
|
|
65
|
+
stickyTop?: boolean;
|
|
66
|
+
/** Tab配置 */
|
|
67
|
+
tabConfig?: any;
|
|
68
|
+
/** 分页配置 */
|
|
69
|
+
paginationConfig?: any;
|
|
70
|
+
[key: string]: any;
|
|
71
|
+
}
|
|
72
|
+
/** SkuList 模式配置 */
|
|
73
|
+
export interface SkuListConfig {
|
|
74
|
+
/** List 组件配置 */
|
|
75
|
+
listConfig?: ListConfig;
|
|
76
|
+
/** SkuCard 配置 */
|
|
77
|
+
skuCardAllConfig?: SkuCardAllConfig;
|
|
78
|
+
}
|
|
79
|
+
/** 展示模式类型 */
|
|
80
|
+
export declare type DisplayMode = 'product-select' | 'sku-list';
|
|
81
|
+
/**
|
|
82
|
+
* 产品展示配置
|
|
83
|
+
* 用于配置化控制产品展示的方式
|
|
84
|
+
*/
|
|
85
|
+
export interface ProductDisplayConfig {
|
|
86
|
+
/** 展示模式 */
|
|
87
|
+
displayMode: DisplayMode;
|
|
88
|
+
/** ProductSelect 模式配置 */
|
|
89
|
+
productSelectConfig?: ProductSelectConfig;
|
|
90
|
+
/** SkuList 模式配置 */
|
|
91
|
+
skuListConfig?: SkuListConfig;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* 产品展示配置预设
|
|
95
|
+
* 支持通过字符串键或直接使用配置对象
|
|
96
|
+
*/
|
|
97
|
+
export declare const ProductDisplayPresets: Record<ProductDisplayPresetKey, ProductDisplayConfig>;
|
|
98
|
+
/**
|
|
99
|
+
* 兼容性:保持原有的导出方式
|
|
100
|
+
* @deprecated 建议使用 ProductDisplayPresets['product-select'] 或字符串键访问
|
|
101
|
+
*/
|
|
102
|
+
export declare const LegacyProductDisplayPresets: {
|
|
103
|
+
/** @deprecated 使用 ProductDisplayPresets['product-select'] */
|
|
104
|
+
DEFAULT_PRODUCT_SELECT: ProductDisplayConfig;
|
|
105
|
+
/** @deprecated 使用 ProductDisplayPresets['sku-list-a1'] */
|
|
106
|
+
DEFAULT_SKU_LIST_A1: ProductDisplayConfig;
|
|
107
|
+
/** @deprecated 使用 ProductDisplayPresets['sku-list-a2'] */
|
|
108
|
+
DEFAULT_SKU_LIST_A2: ProductDisplayConfig;
|
|
109
|
+
/** @deprecated 使用 ProductDisplayPresets['sku-list-a5'] */
|
|
110
|
+
DEFAULT_SKU_LIST_A5: ProductDisplayConfig;
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* 工具函数:将字符串键或配置对象解析为配置对象
|
|
114
|
+
*/
|
|
115
|
+
export declare function resolveProductDisplayConfig(config?: ProductDisplayPresetKey | ProductDisplayConfig): ProductDisplayConfig;
|