@pisell/private-materials 6.9.1 → 6.9.3
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/README.md +5 -1
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- 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/Sales/Cart/index.js +20 -3
- package/es/components/Sales/Cart/utils.d.ts +5 -0
- package/es/components/Sales/Cart/utils.js +16 -0
- package/es/components/Sales/Summary/utils.js +5 -4
- package/es/components/appointmentBooking/components/Header/index.js +12 -12
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +2 -0
- package/es/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.js +82 -0
- package/es/components/appointmentBooking/components/TimeSlicing/index.js +46 -5
- package/es/components/appointmentBooking/components/Voucher/index.js +26 -5
- package/es/components/appointmentBooking/hooks.d.ts +1 -1
- package/es/components/appointmentBooking/hooks.js +6 -13
- package/es/components/appointmentBooking/locales.d.ts +3 -0
- package/es/components/appointmentBooking/locales.js +3 -0
- package/es/components/appointmentBooking/utils.d.ts +23 -0
- package/es/components/appointmentBooking/utils.js +159 -0
- package/es/components/booking/addons/index.js +3 -2
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/actionButtons/index.js +10 -0
- package/es/components/booking/components/customiseItemModal/index.js +4 -7
- package/es/components/booking/components/footer/amount.d.ts +1 -0
- package/es/components/booking/components/footer/amount.js +358 -165
- package/es/components/booking/components/footer/index.js +496 -170
- package/es/components/booking/components/footer/utils.d.ts +1 -1
- package/es/components/booking/components/footer/utils.js +134 -78
- package/es/components/booking/components/voucher/index.js +15 -6
- package/es/components/booking/components/voucher/index.less +4 -1
- package/es/components/booking/components/voucherModal/index.less +1 -0
- package/es/components/booking/dashboard/index.js +78 -92
- package/es/components/booking/dashboard/serve.d.ts +1 -0
- package/es/components/booking/dashboard/serve.js +22 -0
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/hooks/useQuotation.js +32 -10
- package/es/components/booking/info/client/index.js +16 -6
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/service/addService/index.d.ts +1 -0
- package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info/service2/Group/utils.js +2 -2
- package/es/components/booking/info/service2/utils.js +45 -41
- package/es/components/booking/info2/cartClientCard/index.js +16 -10
- package/es/components/booking/info2/service/addService/index.d.ts +1 -0
- package/es/components/booking/info2/service/editNormalService/index.js +21 -18
- package/es/components/booking/info2/service/editService/index.js +33 -2
- package/es/components/booking/info2/service/editService/utils.js +9 -5
- package/es/components/booking/locales.d.ts +3 -0
- package/es/components/booking/locales.js +6 -3
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/booking/utils.js +4 -4
- package/es/components/checkout/PaymentModal.d.ts +1 -0
- package/es/components/checkout/PaymentModal.js +172 -65
- package/es/components/checkout/components/PaymentDetailModal/index.less +426 -429
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +1 -0
- package/es/components/checkout/components/PaymentOptionsModule/index.js +3 -2
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +0 -1
- package/es/components/checkout/components/PaymentResultToast/index.js +2 -0
- package/es/components/checkout/components/WalletPassModule/index.js +1 -0
- package/es/components/checkout/components/WalletPassModule/utils.d.ts +1 -0
- package/es/components/checkout/components/WalletPassModule/utils.js +17 -3
- package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/es/components/checkout/hooks/useWalletPass.js +324 -198
- package/es/components/checkout/index.less +6 -0
- package/es/components/checkout/plugin.js +59 -12
- package/es/components/ecocup/components/AddCustomerModal/index.d.ts +9 -0
- package/es/components/ecocup/components/AddCustomerModal/index.js +216 -0
- package/es/components/ecocup/components/AddCustomerModal/index.less +9 -0
- package/es/components/ecocup/components/CupActionList/index.d.ts +13 -0
- package/es/components/ecocup/components/CupActionList/index.js +91 -0
- package/es/components/ecocup/components/CupActionList/index.less +102 -0
- package/es/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
- package/es/components/ecocup/components/CupActionModal/hooks.js +68 -0
- package/es/components/ecocup/components/CupActionModal/index.d.ts +14 -0
- package/es/components/ecocup/components/CupActionModal/index.js +92 -0
- package/es/components/ecocup/components/CupActionModal/index.less +38 -0
- package/es/components/ecocup/components/CupInfoCard/index.d.ts +8 -0
- package/es/components/ecocup/components/CupInfoCard/index.js +12 -0
- package/es/components/ecocup/components/CupInfoCard/index.less +11 -0
- package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +5 -0
- package/es/components/ecocup/components/CupStatusModal/hooks.js +68 -0
- package/es/components/ecocup/components/CupStatusModal/index.d.ts +13 -0
- package/es/components/ecocup/components/CupStatusModal/index.js +147 -0
- package/es/components/ecocup/components/CupStatusModal/index.less +35 -0
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.js +133 -0
- package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +16 -0
- package/es/components/ecocup/components/CustomerAndCupModal/index.js +227 -0
- package/es/components/ecocup/components/CustomerAndCupModal/index.less +68 -0
- package/es/components/ecocup/components/CustomerCard/index.d.ts +7 -0
- package/es/components/ecocup/components/CustomerCard/index.js +34 -0
- package/es/components/ecocup/components/CustomerCard/index.less +50 -0
- package/es/components/ecocup/components/MoreDropdown/index.d.ts +8 -0
- package/es/components/ecocup/components/MoreDropdown/index.js +33 -0
- package/es/components/ecocup/components/PageHeader/index.d.ts +6 -0
- package/es/components/ecocup/components/PageHeader/index.js +37 -0
- package/es/components/ecocup/components/PageHeader/index.less +19 -0
- package/es/components/ecocup/components/SearchBar/const.d.ts +4 -0
- package/es/components/ecocup/components/SearchBar/const.js +16 -0
- package/es/components/ecocup/components/SearchBar/hooks.d.ts +44 -0
- package/es/components/ecocup/components/SearchBar/hooks.js +184 -0
- package/es/components/ecocup/components/SearchBar/index.d.ts +12 -0
- package/es/components/ecocup/components/SearchBar/index.js +218 -0
- package/es/components/ecocup/components/SearchBar/index.less +88 -0
- package/es/components/ecocup/cupList/const.d.ts +133 -0
- package/es/components/ecocup/cupList/const.js +306 -0
- package/es/components/ecocup/cupList/hooks/index.d.ts +4 -0
- package/es/components/ecocup/cupList/hooks/index.js +4 -0
- package/es/components/ecocup/cupList/hooks/useColumns.d.ts +43 -0
- package/es/components/ecocup/cupList/hooks/useColumns.js +168 -0
- package/es/components/ecocup/cupList/hooks/useCupApi.d.ts +32 -0
- package/es/{plus/myTeamLogin/index.js → components/ecocup/cupList/hooks/useCupApi.js} +129 -259
- package/es/components/ecocup/cupList/hooks/useSummary.d.ts +2 -0
- package/es/components/ecocup/cupList/hooks/useSummary.js +40 -0
- package/es/components/ecocup/cupList/index.d.ts +6 -0
- package/es/components/ecocup/cupList/index.js +220 -0
- package/es/components/ecocup/cupList/index.less +113 -0
- package/es/components/ecocup/cupProject/const.d.ts +7 -0
- package/es/components/ecocup/cupProject/const.js +27 -0
- package/es/components/ecocup/cupProject/index.d.ts +3 -0
- package/es/components/ecocup/cupProject/index.js +103 -0
- package/es/components/ecocup/cupProject/index.less +41 -0
- package/es/components/ecocup/customerList/const.d.ts +44 -0
- package/es/components/ecocup/customerList/const.js +67 -0
- package/es/components/ecocup/customerList/hooks/index.d.ts +3 -0
- package/es/components/ecocup/customerList/hooks/index.js +3 -0
- package/es/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
- package/es/components/ecocup/customerList/hooks/useColumns.js +44 -0
- package/es/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
- package/es/components/ecocup/customerList/hooks/useCustomerApi.js +70 -0
- package/es/components/ecocup/customerList/index.d.ts +7 -0
- package/es/components/ecocup/customerList/index.js +127 -0
- package/es/components/ecocup/customerList/index.less +15 -0
- package/es/components/ecocup/hooks.d.ts +49 -0
- package/es/components/ecocup/hooks.js +151 -0
- package/es/components/ecocup/locales.d.ts +339 -0
- package/es/components/ecocup/locales.js +372 -0
- package/es/components/ecocup/types.d.ts +103 -0
- package/es/components/ecocup/types.js +36 -0
- package/es/components/ecocup/utils/scanListener.d.ts +20 -0
- package/es/components/ecocup/utils/scanListener.js +107 -0
- package/es/components/eftposPay/EFTPos.js +15 -6
- 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/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/unknow.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/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/store/index.d.ts +9 -2
- package/es/components/eftposPay/tyro/index.js +97 -4
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/index.js +2 -1
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/es/components/eventBooking/components/Voucher/components/Voucher.d.ts +20 -0
- package/es/components/eventBooking/components/Voucher/components/Voucher.js +99 -0
- package/es/components/eventBooking/components/Voucher/components/index.less +124 -0
- package/es/components/eventBooking/components/Voucher/components/locales.d.ts +39 -0
- package/es/components/eventBooking/components/Voucher/components/locales.js +38 -0
- package/es/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
- package/es/components/eventBooking/components/Voucher/hooks.js +212 -0
- package/es/components/eventBooking/components/Voucher/index.d.ts +2 -0
- package/es/components/eventBooking/components/Voucher/index.js +266 -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 +268 -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/pay/toB/components/EFTPOS/index.js +8 -1
- package/es/components/pay/toB/components/MX51/index.js +2 -1
- package/es/components/pay/toB/paymentMethods/index.js +2 -1
- package/es/components/pay/toB/types/index.d.ts +9 -0
- package/es/components/pay/toC/PaymentList/index.d.ts +1 -1
- package/es/components/pay/toC/PaymentList/index.js +54 -5
- package/es/components/pay/toC/PaymentList/index.less +58 -1
- package/es/components/pay/toC/PaymentList/payment/credit_card.png +0 -0
- package/es/components/pay/toC/PaymentList/payment/visa.png +0 -0
- package/es/components/pay/toC/PaymentList/serve.d.ts +1 -1
- package/es/components/pay/toC/PaymentList/serve.js +22 -0
- package/es/components/pay/toC/PaymentList/utils.d.ts +26 -0
- package/es/components/pay/toC/PaymentList/utils.js +188 -6
- package/es/components/pay/toC/PaymentMethods/BankDeposit/index.js +1 -3
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +139 -42
- package/es/components/pay/toC/PaymentMethods/StripePay/index.js +1 -1
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +166 -145
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +3 -3
- package/es/components/pay/toC/WalletPassBlock/index.js +3 -1
- package/es/components/pay/toC/index.js +68 -28
- package/es/components/pay/toC/locales.d.ts +6 -0
- package/es/components/pay/toC/locales.js +9 -3
- package/es/components/pay/toC/model.d.ts +2 -9
- package/es/components/pay/toC/serve.d.ts +18 -0
- package/es/components/pay/toC/serve.js +29 -1
- package/es/components/pay/toC/utils.d.ts +2 -2
- package/es/components/pay/toC/utils.js +4 -0
- package/es/components/productSelect/components/productGroup/index.js +1 -1
- package/es/components/ruleSetting/index.d.ts +1 -0
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/shoppingCart/components/Cart/Product.js +1 -1
- package/es/components/systemSettings/registry/components/SectionList.js +5 -1
- package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +5 -8
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +142 -63
- package/es/components/ticketBooking/components/bookingDataPanel/index.js +2 -1
- package/es/components/ticketBooking/components/ticketBooking/index.js +18 -4
- package/es/components/ticketBooking/context/OsKeyContext.d.ts +3 -0
- package/es/components/ticketBooking/context/OsKeyContext.js +12 -2
- package/es/components/ticketBooking/context/index.d.ts +1 -1
- package/es/components/ticketBooking/context/index.js +1 -1
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +1 -1
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +14 -11
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +69 -10
- package/es/components/ticketBooking/index.d.ts +2 -0
- package/es/components/ticketBooking/index.js +2 -1
- package/es/components/walletList/index.js +7 -2
- package/es/index.d.ts +7 -4
- package/es/index.js +7 -4
- package/es/plus/clinetSearch/index.d.ts +1 -0
- package/es/plus/clinetSearch/index.js +27 -5
- package/es/plus/clinetSearch/locales.d.ts +3 -0
- package/es/plus/clinetSearch/locales.js +6 -3
- package/es/plus/clinetSearch/types.d.ts +9 -0
- package/es/plus/orderList/components/BatchActionBar.d.ts +9 -0
- package/es/plus/orderList/components/BatchActionBar.js +861 -0
- package/es/plus/orderList/components/FilterList.d.ts +8 -0
- package/es/plus/orderList/components/FilterList.js +78 -0
- package/es/plus/orderList/components/HandleActions.d.ts +4 -0
- package/es/plus/orderList/components/HandleActions.js +24 -0
- package/es/plus/orderList/components/QuickFilter.d.ts +4 -0
- package/es/plus/orderList/components/QuickFilter.js +14 -0
- package/es/plus/orderList/components/Reset.d.ts +6 -0
- package/es/plus/orderList/components/Reset.js +23 -0
- package/es/plus/orderList/components/Toolbar.d.ts +5 -0
- package/es/plus/orderList/components/Toolbar.js +57 -0
- package/es/plus/orderList/config.d.ts +152 -0
- package/es/plus/orderList/config.js +785 -0
- package/es/plus/orderList/index.d.ts +9 -0
- package/es/plus/orderList/index.js +128 -0
- package/es/plus/orderList/index.less +125 -0
- package/es/plus/orderList/locales.d.ts +372 -0
- package/es/plus/orderList/locales.js +459 -0
- package/es/plus/orderList/serve.d.ts +42 -0
- package/es/plus/orderList/serve.js +351 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
- package/es/plus/productSelect/ProductCard/index.js +12 -3
- package/es/plus/productSelect/ProductList/gridComponents.d.ts +6 -4
- package/es/plus/productSelect/ProductList/gridComponents.js +30 -10
- package/es/plus/productSelect/index.d.ts +3 -1
- package/es/plus/productSelect/index.js +85 -14
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.js +1 -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/locales.d.ts +3 -0
- package/es/plus/skuOptionsSelection/locales.js +3 -0
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.js +11 -2
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.js +10 -0
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +1 -0
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +2 -0
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +10 -0
- package/es/plus/walletPassGallery/components/passDetail/index.js +6 -5
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.js +9 -3
- package/es/plus/walletPassGallery/index.js +2 -2
- package/es/plus/walletPassGallery/index.less +1 -1
- package/es/plus/walletPassGallery/serve.d.ts +8 -0
- package/es/plus/walletPassGallery/serve.js +78 -50
- package/es/plus/webPosLogin/WebPosLogin.d.ts +2 -2
- package/es/plus/webPosLogin/WebPosLogin.js +7 -2
- package/es/plus/webPosLogin/components/MediaDisplay/index.js +5 -5
- package/es/plus/webPosLogin/components/MediaDisplay/index.less +10 -6
- package/es/plus/webPosLogin/service.js +2 -1
- package/es/pro/Login2.0/AuthModal.js +12 -4
- package/es/pro/Login2.0/Login2.js +7 -0
- package/es/pro/Login2.0/components/LoginCodeInput.js +36 -3
- package/es/pro/Login2.0/index.less +15 -3
- package/es/pro/Login2.0/steps/CodeInput.js +37 -7
- package/es/pro/NumericStepper/index.d.ts +27 -1
- package/es/pro/NumericStepper/index.js +84 -68
- package/es/pro/NumericStepper/index.less +261 -136
- package/es/pro/Selector/Selector.js +17 -10
- package/es/pro/Selector/demo.d.ts +1 -0
- package/es/pro/Selector/hooks/usePresetItemProps.js +2 -0
- package/es/pro/Selector/hooks/usePresetProps.js +4 -2
- package/es/pro/Selector/types.d.ts +1 -0
- package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/es/pro/keyboards/index.d.ts +2 -0
- package/es/pro/keyboards/index.js +1 -0
- package/es/pro/keyboards/locales.d.ts +24 -0
- package/es/pro/keyboards/locales.js +35 -0
- package/es/pro/keyboards/numberKeyboard/index.d.ts +16 -0
- package/es/pro/keyboards/numberKeyboard/index.js +523 -0
- package/es/pro/keyboards/numberKeyboard/index.less +59 -0
- package/es/pro/keyboards/numberKeyboard/types.d.ts +63 -0
- package/es/pro/keyboards/numberKeyboard/types.js +1 -0
- package/es/pro/pisellPaymentList/example.d.ts +1 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +2 -1
- package/es/pro/priceKeyboard/components/discountKeyboard/index.js +2 -1
- package/es/pro/priceKeyboard/components/paymentKeyboard/index.js +6 -3
- package/es/pro/skuDetailModal/index.js +57 -55
- package/es/pro/skuDetailModal/index.less +46 -4
- package/es/pro/skuDetailModal/types.d.ts +7 -0
- package/lib/components/Sales/Cart/index.js +25 -7
- package/lib/components/Sales/Cart/utils.d.ts +5 -0
- package/lib/components/Sales/Cart/utils.js +13 -1
- package/lib/components/Sales/Summary/utils.js +2 -4
- package/lib/components/appointmentBooking/components/Header/index.js +3 -8
- package/lib/components/appointmentBooking/components/Services/index.js +5 -1
- package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +2 -0
- package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.js +89 -0
- package/lib/components/appointmentBooking/components/TimeSlicing/index.js +27 -7
- package/lib/components/appointmentBooking/components/Voucher/index.js +37 -6
- package/lib/components/appointmentBooking/hooks.d.ts +1 -1
- package/lib/components/appointmentBooking/hooks.js +6 -11
- package/lib/components/appointmentBooking/locales.d.ts +3 -0
- package/lib/components/appointmentBooking/locales.js +3 -0
- package/lib/components/appointmentBooking/utils.d.ts +23 -0
- package/lib/components/appointmentBooking/utils.js +103 -0
- package/lib/components/booking/addons/index.js +3 -2
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/actionButtons/index.js +10 -0
- package/lib/components/booking/components/customiseItemModal/index.js +4 -5
- package/lib/components/booking/components/footer/amount.d.ts +1 -0
- package/lib/components/booking/components/footer/amount.js +122 -25
- package/lib/components/booking/components/footer/index.js +243 -5
- package/lib/components/booking/components/footer/utils.d.ts +1 -1
- package/lib/components/booking/components/footer/utils.js +52 -18
- package/lib/components/booking/components/voucher/index.js +18 -4
- package/lib/components/booking/components/voucher/index.less +4 -1
- package/lib/components/booking/components/voucherModal/index.less +1 -0
- package/lib/components/booking/dashboard/index.js +38 -59
- package/lib/components/booking/dashboard/serve.d.ts +1 -0
- package/lib/components/booking/dashboard/serve.js +8 -2
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/hooks/useQuotation.js +65 -21
- package/lib/components/booking/info/client/index.js +16 -8
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info/service2/Group/utils.js +2 -2
- package/lib/components/booking/info/service2/utils.js +6 -2
- package/lib/components/booking/info2/cartClientCard/index.js +17 -11
- package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info2/service/editNormalService/index.js +20 -17
- package/lib/components/booking/info2/service/editService/index.js +48 -24
- package/lib/components/booking/info2/service/editService/utils.js +7 -4
- package/lib/components/booking/locales.d.ts +3 -0
- package/lib/components/booking/locales.js +6 -3
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/booking/utils.js +3 -3
- package/lib/components/checkout/PaymentModal.d.ts +1 -0
- package/lib/components/checkout/PaymentModal.js +105 -31
- package/lib/components/checkout/components/PaymentDetailModal/index.less +426 -429
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +1 -0
- package/lib/components/checkout/components/PaymentOptionsModule/index.js +6 -2
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +0 -1
- package/lib/components/checkout/components/PaymentResultToast/index.js +2 -0
- package/lib/components/checkout/components/WalletPassModule/index.js +1 -0
- package/lib/components/checkout/components/WalletPassModule/utils.d.ts +1 -0
- package/lib/components/checkout/components/WalletPassModule/utils.js +18 -2
- package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/lib/components/checkout/hooks/useWalletPass.js +160 -109
- package/lib/components/checkout/index.less +6 -0
- package/lib/components/checkout/plugin.js +195 -150
- package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +9 -0
- package/lib/components/ecocup/components/AddCustomerModal/index.js +212 -0
- package/lib/components/ecocup/components/AddCustomerModal/index.less +9 -0
- package/lib/components/ecocup/components/CupActionList/index.d.ts +13 -0
- package/lib/components/ecocup/components/CupActionList/index.js +116 -0
- package/lib/components/ecocup/components/CupActionList/index.less +102 -0
- package/lib/components/ecocup/components/CupActionModal/hooks.d.ts +5 -0
- package/lib/components/ecocup/components/CupActionModal/hooks.js +55 -0
- package/lib/components/ecocup/components/CupActionModal/index.d.ts +14 -0
- package/lib/components/ecocup/components/CupActionModal/index.js +125 -0
- package/lib/components/ecocup/components/CupActionModal/index.less +38 -0
- package/lib/components/ecocup/components/CupInfoCard/index.d.ts +8 -0
- package/lib/components/ecocup/components/CupInfoCard/index.js +43 -0
- package/lib/components/ecocup/components/CupInfoCard/index.less +11 -0
- package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +5 -0
- package/lib/components/ecocup/components/CupStatusModal/hooks.js +55 -0
- package/lib/components/ecocup/components/CupStatusModal/index.d.ts +13 -0
- package/lib/components/ecocup/components/CupStatusModal/index.js +140 -0
- package/lib/components/ecocup/components/CupStatusModal/index.less +35 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.d.ts +14 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.js +89 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +16 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/index.js +178 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/index.less +68 -0
- package/lib/components/ecocup/components/CustomerCard/index.d.ts +7 -0
- package/lib/components/ecocup/components/CustomerCard/index.js +48 -0
- package/lib/components/ecocup/components/CustomerCard/index.less +50 -0
- package/lib/components/ecocup/components/MoreDropdown/index.d.ts +8 -0
- package/lib/components/ecocup/components/MoreDropdown/index.js +68 -0
- package/lib/components/ecocup/components/PageHeader/index.d.ts +6 -0
- package/lib/components/ecocup/components/PageHeader/index.js +59 -0
- package/lib/components/ecocup/components/PageHeader/index.less +19 -0
- package/lib/components/ecocup/components/SearchBar/const.d.ts +4 -0
- package/lib/components/ecocup/components/SearchBar/const.js +50 -0
- package/lib/components/ecocup/components/SearchBar/hooks.d.ts +44 -0
- package/lib/components/ecocup/components/SearchBar/hooks.js +135 -0
- package/lib/components/ecocup/components/SearchBar/index.d.ts +12 -0
- package/lib/components/ecocup/components/SearchBar/index.js +213 -0
- package/lib/components/ecocup/components/SearchBar/index.less +88 -0
- package/lib/components/ecocup/cupList/const.d.ts +133 -0
- package/lib/components/ecocup/cupList/const.js +326 -0
- package/lib/components/ecocup/cupList/hooks/index.d.ts +4 -0
- package/lib/components/ecocup/cupList/hooks/index.js +39 -0
- package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +43 -0
- package/lib/components/ecocup/cupList/hooks/useColumns.js +202 -0
- package/lib/components/ecocup/cupList/hooks/useCupApi.d.ts +32 -0
- package/lib/components/ecocup/cupList/hooks/useCupApi.js +112 -0
- package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +2 -0
- package/lib/components/ecocup/cupList/hooks/useSummary.js +75 -0
- package/lib/components/ecocup/cupList/index.d.ts +6 -0
- package/lib/components/ecocup/cupList/index.js +208 -0
- package/lib/components/ecocup/cupList/index.less +113 -0
- package/lib/components/ecocup/cupProject/const.d.ts +7 -0
- package/lib/components/ecocup/cupProject/const.js +58 -0
- package/lib/components/ecocup/cupProject/index.d.ts +3 -0
- package/lib/components/ecocup/cupProject/index.js +126 -0
- package/lib/components/ecocup/cupProject/index.less +41 -0
- package/lib/components/ecocup/customerList/const.d.ts +44 -0
- package/lib/components/ecocup/customerList/const.js +93 -0
- package/lib/components/ecocup/customerList/hooks/index.d.ts +3 -0
- package/lib/components/ecocup/customerList/hooks/index.js +32 -0
- package/lib/components/ecocup/customerList/hooks/useColumns.d.ts +15 -0
- package/lib/components/ecocup/customerList/hooks/useColumns.js +89 -0
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.d.ts +15 -0
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.js +56 -0
- package/lib/components/ecocup/customerList/index.d.ts +7 -0
- package/lib/components/ecocup/customerList/index.js +138 -0
- package/lib/components/ecocup/customerList/index.less +15 -0
- package/lib/components/ecocup/hooks.d.ts +49 -0
- package/lib/components/ecocup/hooks.js +155 -0
- package/lib/components/ecocup/locales.d.ts +339 -0
- package/lib/components/ecocup/locales.js +389 -0
- package/lib/components/ecocup/types.d.ts +103 -0
- package/lib/components/ecocup/types.js +57 -0
- package/lib/components/ecocup/utils/scanListener.d.ts +20 -0
- package/lib/components/ecocup/utils/scanListener.js +90 -0
- package/lib/components/eftposPay/EFTPos.js +11 -7
- 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/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/unknow.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/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/store/index.d.ts +9 -2
- package/lib/components/eftposPay/tyro/index.js +64 -7
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +2 -1
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Voucher/components/Voucher.d.ts +20 -0
- package/lib/components/eventBooking/components/Voucher/components/Voucher.js +116 -0
- package/lib/components/eventBooking/components/Voucher/components/index.less +124 -0
- package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +39 -0
- package/lib/components/eventBooking/components/Voucher/components/locales.js +59 -0
- package/lib/components/eventBooking/components/Voucher/hooks.d.ts +7 -0
- package/lib/components/eventBooking/components/Voucher/hooks.js +176 -0
- package/lib/components/eventBooking/components/Voucher/index.d.ts +2 -0
- package/lib/components/eventBooking/components/Voucher/index.js +197 -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/pay/toB/components/EFTPOS/index.js +8 -1
- package/lib/components/pay/toB/components/MX51/index.js +2 -1
- package/lib/components/pay/toB/paymentMethods/index.js +2 -1
- package/lib/components/pay/toB/types/index.d.ts +9 -0
- package/lib/components/pay/toC/PaymentList/index.d.ts +1 -1
- package/lib/components/pay/toC/PaymentList/index.js +36 -5
- package/lib/components/pay/toC/PaymentList/index.less +58 -1
- package/lib/components/pay/toC/PaymentList/payment/credit_card.png +0 -0
- package/lib/components/pay/toC/PaymentList/payment/visa.png +0 -0
- package/lib/components/pay/toC/PaymentList/serve.d.ts +1 -1
- package/lib/components/pay/toC/PaymentList/serve.js +21 -1
- package/lib/components/pay/toC/PaymentList/utils.d.ts +26 -0
- package/lib/components/pay/toC/PaymentList/utils.js +156 -7
- package/lib/components/pay/toC/PaymentMethods/BankDeposit/index.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +97 -7
- package/lib/components/pay/toC/PaymentMethods/StripePay/index.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +90 -103
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -2
- package/lib/components/pay/toC/WalletPassBlock/index.js +3 -1
- package/lib/components/pay/toC/index.js +53 -11
- package/lib/components/pay/toC/locales.d.ts +6 -0
- package/lib/components/pay/toC/locales.js +9 -3
- package/lib/components/pay/toC/model.d.ts +2 -9
- package/lib/components/pay/toC/serve.d.ts +18 -0
- package/lib/components/pay/toC/serve.js +6 -0
- package/lib/components/pay/toC/utils.d.ts +2 -2
- package/lib/components/pay/toC/utils.js +4 -0
- package/lib/components/productSelect/components/productGroup/index.js +1 -1
- package/lib/components/ruleSetting/index.d.ts +1 -0
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/shoppingCart/components/Cart/Product.js +1 -1
- package/lib/components/systemSettings/registry/components/SectionList.js +4 -1
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +3 -7
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +46 -16
- package/lib/components/ticketBooking/components/bookingDataPanel/index.js +3 -2
- package/lib/components/ticketBooking/components/ticketBooking/index.js +20 -6
- package/lib/components/ticketBooking/context/OsKeyContext.d.ts +3 -0
- package/lib/components/ticketBooking/context/OsKeyContext.js +13 -3
- package/lib/components/ticketBooking/context/index.d.ts +1 -1
- package/lib/components/ticketBooking/context/index.js +2 -0
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +1 -1
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +3 -2
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +59 -0
- package/lib/components/ticketBooking/index.d.ts +2 -0
- package/lib/components/ticketBooking/index.js +1 -1
- package/lib/components/walletList/index.js +5 -1
- package/lib/index.d.ts +7 -4
- package/lib/index.js +15 -6
- package/lib/plus/clinetSearch/index.d.ts +1 -0
- package/lib/plus/clinetSearch/index.js +31 -7
- package/lib/plus/clinetSearch/locales.d.ts +3 -0
- package/lib/plus/clinetSearch/locales.js +6 -3
- package/lib/plus/clinetSearch/types.d.ts +9 -0
- package/lib/plus/orderList/components/BatchActionBar.d.ts +9 -0
- package/lib/plus/orderList/components/BatchActionBar.js +584 -0
- package/lib/plus/orderList/components/FilterList.d.ts +8 -0
- package/lib/plus/orderList/components/FilterList.js +121 -0
- package/lib/plus/orderList/components/HandleActions.d.ts +4 -0
- package/lib/plus/orderList/components/HandleActions.js +52 -0
- package/lib/plus/orderList/components/QuickFilter.d.ts +4 -0
- package/lib/plus/orderList/components/QuickFilter.js +43 -0
- package/lib/plus/orderList/components/Reset.d.ts +6 -0
- package/lib/plus/orderList/components/Reset.js +58 -0
- package/lib/plus/orderList/components/Toolbar.d.ts +5 -0
- package/lib/plus/orderList/components/Toolbar.js +68 -0
- package/lib/plus/orderList/config.d.ts +152 -0
- package/lib/plus/orderList/config.js +763 -0
- package/lib/plus/orderList/index.d.ts +9 -0
- package/lib/plus/orderList/index.js +132 -0
- package/lib/plus/orderList/index.less +125 -0
- package/lib/plus/orderList/locales.d.ts +372 -0
- package/lib/plus/orderList/locales.js +471 -0
- package/lib/plus/orderList/serve.d.ts +42 -0
- package/lib/plus/orderList/serve.js +177 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.d.ts +1 -0
- package/lib/plus/productSelect/ProductCard/index.js +3 -3
- package/lib/plus/productSelect/ProductList/gridComponents.d.ts +6 -4
- package/lib/plus/productSelect/ProductList/gridComponents.js +7 -1
- package/lib/plus/productSelect/index.d.ts +3 -1
- package/lib/plus/productSelect/index.js +56 -11
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.js +1 -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/locales.d.ts +3 -0
- package/lib/plus/skuOptionsSelection/locales.js +3 -0
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.js +10 -0
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.js +10 -0
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +1 -0
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +2 -0
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +10 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.js +24 -6
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.js +17 -10
- package/lib/plus/walletPassGallery/index.js +2 -2
- package/lib/plus/walletPassGallery/index.less +1 -1
- package/lib/plus/walletPassGallery/serve.d.ts +8 -0
- package/lib/plus/walletPassGallery/serve.js +23 -8
- package/lib/plus/webPosLogin/WebPosLogin.d.ts +2 -2
- package/lib/plus/webPosLogin/WebPosLogin.js +7 -2
- package/lib/plus/webPosLogin/components/MediaDisplay/index.js +1 -1
- package/lib/plus/webPosLogin/components/MediaDisplay/index.less +10 -6
- package/lib/plus/webPosLogin/service.js +2 -1
- package/lib/pro/Login2.0/AuthModal.js +15 -7
- package/lib/pro/Login2.0/Login2.js +7 -0
- package/lib/pro/Login2.0/components/LoginCodeInput.js +26 -4
- package/lib/pro/Login2.0/index.less +15 -3
- package/lib/pro/Login2.0/steps/CodeInput.js +27 -5
- package/lib/pro/NumericStepper/index.d.ts +27 -1
- package/lib/pro/NumericStepper/index.js +73 -70
- package/lib/pro/NumericStepper/index.less +261 -136
- package/lib/pro/Selector/Selector.js +11 -4
- package/lib/pro/Selector/demo.d.ts +1 -0
- package/lib/pro/Selector/hooks/usePresetItemProps.js +2 -0
- package/lib/pro/Selector/hooks/usePresetProps.js +4 -2
- package/lib/pro/Selector/types.d.ts +1 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/lib/pro/keyboards/index.d.ts +2 -0
- package/lib/pro/keyboards/index.js +39 -0
- package/lib/pro/keyboards/locales.d.ts +24 -0
- package/lib/pro/keyboards/locales.js +47 -0
- package/lib/pro/keyboards/numberKeyboard/index.d.ts +16 -0
- package/lib/pro/keyboards/numberKeyboard/index.js +400 -0
- package/lib/pro/keyboards/numberKeyboard/index.less +59 -0
- package/lib/pro/keyboards/numberKeyboard/types.d.ts +63 -0
- package/lib/pro/keyboards/numberKeyboard/types.js +17 -0
- package/lib/pro/pisellPaymentList/example.d.ts +1 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +2 -1
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +2 -1
- package/lib/pro/priceKeyboard/components/paymentKeyboard/index.js +6 -3
- package/lib/pro/skuDetailModal/index.js +114 -64
- package/lib/pro/skuDetailModal/index.less +46 -4
- package/lib/pro/skuDetailModal/types.d.ts +7 -0
- package/lowcode/eco-cup-list/meta.ts +63 -0
- package/lowcode/eco-customer-list/meta.ts +63 -0
- package/lowcode/ecocup-cup-list/meta.ts +38 -0
- package/lowcode/ecocup-cup-project/meta.ts +35 -0
- package/lowcode/ecocup-customer-list/meta.ts +38 -0
- package/lowcode/kiosk-sku-detail/meta.ts +229 -94
- package/lowcode/login2/meta.ts +15 -0
- package/lowcode/order-list/meta.ts +87 -0
- package/package.json +7 -22
- package/es/plus/myTeamLogin/MyTeamLoginCpt.d.ts +0 -9
- package/es/plus/myTeamLogin/MyTeamLoginCpt.js +0 -157
- package/es/plus/myTeamLogin/index.d.ts +0 -11
- package/es/pro/pisellNumberSelector/example.d.ts +0 -3
- package/es/pro/pisellNumberSelector/example.js +0 -68
- package/lib/plus/myTeamLogin/MyTeamLoginCpt.d.ts +0 -9
- package/lib/plus/myTeamLogin/MyTeamLoginCpt.js +0 -156
- package/lib/plus/myTeamLogin/index.d.ts +0 -11
- package/lib/plus/myTeamLogin/index.js +0 -198
- package/lib/pro/pisellNumberSelector/example.d.ts +0 -3
- package/lib/pro/pisellNumberSelector/example.js +0 -93
- package/lowcode/my-team-login/meta.ts +0 -71
|
@@ -39,7 +39,6 @@ var import_materials = require("@pisell/materials");
|
|
|
39
39
|
var import_dayjs = __toESM(require("dayjs"));
|
|
40
40
|
var import_utils = require("@pisell/utils");
|
|
41
41
|
var import_skuOptionsSelection = __toESM(require("../../plus/skuOptionsSelection"));
|
|
42
|
-
var import_pisellNumberSelector = __toESM(require("../../pro/pisellNumberSelector"));
|
|
43
42
|
var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
|
|
44
43
|
var import_serve = require("../booking/info/service/serve");
|
|
45
44
|
var import_locales = __toESM(require("./locales"));
|
|
@@ -47,41 +46,21 @@ var import_index = require("./index.less");
|
|
|
47
46
|
var import_utils2 = require("../booking/utils");
|
|
48
47
|
function KioskSkuDetail(props) {
|
|
49
48
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
50
|
-
const { className, style,
|
|
49
|
+
const { className, style, onAddToCart } = props;
|
|
51
50
|
const productIdFromUrl = (0, import_react.useMemo)(() => {
|
|
52
51
|
return getQueryFirstMatch({ keys: ["productId", "product_id", "id"] });
|
|
53
52
|
}, []);
|
|
54
|
-
const
|
|
53
|
+
const initialProductId = productIdFromUrl ?? props.productId ?? null;
|
|
55
54
|
const scheduleDate = (0, import_react.useMemo)(() => (0, import_dayjs.default)().format("YYYY-MM-DD"), []);
|
|
55
|
+
const stageScale = useDesignStageScale({ designWidth: 1080, designHeight: 1800 });
|
|
56
56
|
const context = (0, import_useEngineContext.default)();
|
|
57
57
|
const { interaction } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
|
|
58
58
|
import_utils.locales.init(import_locales.default, ((_c = (_b = context == null ? void 0 : context.engine) == null ? void 0 : _b.props) == null ? void 0 : _c.locale) || "en");
|
|
59
59
|
import_utils2.request.setRequest(context.appHelper.utils.request);
|
|
60
|
-
const { store, getData } = ((_d = context.appHelper) == null ? void 0 : _d.utils) || {};
|
|
60
|
+
const { store, getData, Toast } = ((_d = context.appHelper) == null ? void 0 : _d.utils) || {};
|
|
61
61
|
const state = (_e = store == null ? void 0 : store.getState) == null ? void 0 : _e.call(store);
|
|
62
62
|
const symbol = ((_h = (_g = (_f = store == null ? void 0 : store.getState) == null ? void 0 : _f.call(store)) == null ? void 0 : _g.global) == null ? void 0 : _h.symbol) || "$";
|
|
63
63
|
const currency_code = ((_k = (_j = (_i = store == null ? void 0 : store.getState) == null ? void 0 : _i.call(store)) == null ? void 0 : _j.global) == null ? void 0 : _k.currency_code) || "AUD";
|
|
64
|
-
(0, import_react.useEffect)(() => {
|
|
65
|
-
var _a2, _b2;
|
|
66
|
-
(_b2 = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.postMessageToApp) == null ? void 0 : _b2.call(_a2, {
|
|
67
|
-
module: "tickets",
|
|
68
|
-
key: "page_load"
|
|
69
|
-
});
|
|
70
|
-
interaction.utils.mountFunction(
|
|
71
|
-
"tickets",
|
|
72
|
-
"restore_buy_wallet_pass",
|
|
73
|
-
(data) => {
|
|
74
|
-
console.log("重置状态", data);
|
|
75
|
-
}
|
|
76
|
-
);
|
|
77
|
-
interaction.utils.mountFunction(
|
|
78
|
-
"tickets",
|
|
79
|
-
"edit_buy_wallet_pass",
|
|
80
|
-
(data) => {
|
|
81
|
-
console.log("编辑状态", data);
|
|
82
|
-
}
|
|
83
|
-
);
|
|
84
|
-
}, []);
|
|
85
64
|
const [isLoading, setIsLoading] = (0, import_react.useState)(false);
|
|
86
65
|
const [errorText, setErrorText] = (0, import_react.useState)(null);
|
|
87
66
|
const [productData, setProductData] = (0, import_react.useState)(null);
|
|
@@ -98,47 +77,130 @@ function KioskSkuDetail(props) {
|
|
|
98
77
|
bundle: [],
|
|
99
78
|
option: []
|
|
100
79
|
});
|
|
101
|
-
(0, import_react.
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
80
|
+
const [isEdit, setIsEdit] = (0, import_react.useState)(false);
|
|
81
|
+
const skuOptionsSelectionRef = (0, import_react.useRef)(null);
|
|
82
|
+
const requestSeqRef = (0, import_react.useRef)(0);
|
|
83
|
+
const resetForInit = (0, import_react.useCallback)(() => {
|
|
84
|
+
setProductData(null);
|
|
85
|
+
setErrorText(null);
|
|
86
|
+
setQuantity(1);
|
|
87
|
+
setSkuValue({
|
|
88
|
+
product_id: 0,
|
|
89
|
+
product_variant_id: 0,
|
|
90
|
+
bundle: [],
|
|
91
|
+
option: []
|
|
92
|
+
});
|
|
93
|
+
setSkuDefaultValue({
|
|
94
|
+
product_id: 0,
|
|
95
|
+
product_variant_id: 0,
|
|
96
|
+
bundle: [],
|
|
97
|
+
option: []
|
|
98
|
+
});
|
|
99
|
+
}, []);
|
|
100
|
+
const loadByProductId = (0, import_react.useCallback)(async (productId, options = {}) => {
|
|
101
|
+
var _a2, _b2;
|
|
102
|
+
console.log("准备 load", productId);
|
|
103
|
+
if (productId === null || typeof productId === "undefined" || productId === "") return;
|
|
104
|
+
const reqId = ++requestSeqRef.current;
|
|
105
|
+
setIsLoading(true);
|
|
106
|
+
setErrorText(null);
|
|
107
|
+
try {
|
|
108
|
+
const open_deposit = (getData == null ? void 0 : getData("bookingv2_deposit")) || 0;
|
|
109
|
+
const params = { open_deposit, "translate-locale": ((_b2 = (_a2 = context == null ? void 0 : context.engine) == null ? void 0 : _a2.props) == null ? void 0 : _b2.locale) || "en" };
|
|
110
|
+
params.schedule_date = scheduleDate;
|
|
111
|
+
const res = await (0, import_serve.getProductDetail)(String(productId), params);
|
|
112
|
+
console.log("详情接口");
|
|
113
|
+
console.log(JSON.stringify(res));
|
|
114
|
+
const apiData = ((res == null ? void 0 : res.id) ? res : res == null ? void 0 : res.data) || {};
|
|
115
|
+
if (reqId !== requestSeqRef.current) return;
|
|
116
|
+
setProductData(apiData);
|
|
117
|
+
console.log("已设置 productData");
|
|
118
|
+
const normalizedProductId = Number(
|
|
119
|
+
(apiData == null ? void 0 : apiData.product_id) || (apiData == null ? void 0 : apiData.id) || productId || 0
|
|
120
|
+
);
|
|
121
|
+
const minNumUnit = Number((apiData == null ? void 0 : apiData.min_num_unit) || 1);
|
|
122
|
+
if (options.shouldInitQuantity !== false) {
|
|
119
123
|
setQuantity(minNumUnit > 0 ? minNumUnit : 1);
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
}
|
|
125
|
+
const defaultVariantId = (() => {
|
|
126
|
+
var _a3, _b3;
|
|
127
|
+
const firstVariantId = Array.isArray(apiData == null ? void 0 : apiData.variant) ? Number(((_b3 = (_a3 = apiData == null ? void 0 : apiData.variant) == null ? void 0 : _a3[0]) == null ? void 0 : _b3.id) || 0) : 0;
|
|
128
|
+
return Number.isFinite(firstVariantId) ? firstVariantId : 0;
|
|
129
|
+
})();
|
|
130
|
+
const initialSkuValue = {
|
|
131
|
+
product_id: normalizedProductId,
|
|
132
|
+
product_variant_id: defaultVariantId,
|
|
133
|
+
bundle: [],
|
|
134
|
+
option: []
|
|
135
|
+
};
|
|
136
|
+
if (options.shouldInitSku !== false) {
|
|
126
137
|
setSkuValue(initialSkuValue);
|
|
127
138
|
setSkuDefaultValue(initialSkuValue);
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
setIsLoading(false);
|
|
139
|
+
setTimeout(() => {
|
|
140
|
+
var _a3;
|
|
141
|
+
if (initialSkuValue.product_variant_id) {
|
|
142
|
+
(_a3 = skuOptionsSelectionRef.current) == null ? void 0 : _a3.validate();
|
|
143
|
+
}
|
|
144
|
+
}, 0);
|
|
135
145
|
}
|
|
146
|
+
} catch (error) {
|
|
147
|
+
console.error(error);
|
|
148
|
+
setErrorText("Failed to load product detail");
|
|
149
|
+
} finally {
|
|
150
|
+
if (reqId !== requestSeqRef.current) return;
|
|
151
|
+
setIsLoading(false);
|
|
136
152
|
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
153
|
+
}, [getData, scheduleDate]);
|
|
154
|
+
const loadRef = (0, import_react.useRef)(loadByProductId);
|
|
155
|
+
loadRef.current = loadByProductId;
|
|
156
|
+
(0, import_react.useEffect)(() => {
|
|
157
|
+
var _a2, _b2, _c2, _d2, _e2, _f2;
|
|
158
|
+
(_b2 = (_a2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _a2.postMessageToApp) == null ? void 0 : _b2.call(_a2, {
|
|
159
|
+
module: "wallet_pass",
|
|
160
|
+
key: "page_load"
|
|
161
|
+
});
|
|
162
|
+
(_d2 = (_c2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _c2.mountFunction) == null ? void 0 : _d2.call(
|
|
163
|
+
_c2,
|
|
164
|
+
"wallet_pass",
|
|
165
|
+
"restore_buy_wallet_pass",
|
|
166
|
+
(id) => {
|
|
167
|
+
console.log("重置状态", id);
|
|
168
|
+
console.log("宽", window.innerWidth);
|
|
169
|
+
console.log("高", window.innerHeight);
|
|
170
|
+
console.log("设备像素比", window.devicePixelRatio);
|
|
171
|
+
resetForInit();
|
|
172
|
+
if (id || id === 0) loadRef.current(id);
|
|
173
|
+
setIsEdit(false);
|
|
174
|
+
}
|
|
175
|
+
);
|
|
176
|
+
(_f2 = (_e2 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _e2.mountFunction) == null ? void 0 : _f2.call(
|
|
177
|
+
_e2,
|
|
178
|
+
"wallet_pass",
|
|
179
|
+
"edit_buy_wallet_pass",
|
|
180
|
+
(data) => {
|
|
181
|
+
console.log("编辑状态", data);
|
|
182
|
+
const productData2 = JSON.parse(data);
|
|
183
|
+
loadRef.current(productData2.productId, {
|
|
184
|
+
shouldInitSku: false,
|
|
185
|
+
shouldInitQuantity: false
|
|
186
|
+
});
|
|
187
|
+
setSkuValue({
|
|
188
|
+
product_id: productData2.productId,
|
|
189
|
+
product_variant_id: Number(productData2.variantId),
|
|
190
|
+
bundle: [],
|
|
191
|
+
option: []
|
|
192
|
+
});
|
|
193
|
+
setSkuDefaultValue({
|
|
194
|
+
product_id: productData2.productId,
|
|
195
|
+
product_variant_id: Number(productData2.variantId),
|
|
196
|
+
bundle: [],
|
|
197
|
+
option: []
|
|
198
|
+
});
|
|
199
|
+
setIsEdit(true);
|
|
200
|
+
}
|
|
201
|
+
);
|
|
202
|
+
if (initialProductId || initialProductId === 0) loadRef.current(initialProductId);
|
|
203
|
+
}, []);
|
|
142
204
|
const coverUrl = (0, import_react.useMemo)(() => {
|
|
143
205
|
return (productData == null ? void 0 : productData.cover) || (productData == null ? void 0 : productData.image) || "";
|
|
144
206
|
}, [productData]);
|
|
@@ -182,55 +244,51 @@ function KioskSkuDetail(props) {
|
|
|
182
244
|
return `${priceSign}${symbol}${deTotal.abs().toNumber().toFixed(2)}`;
|
|
183
245
|
}, [itemTotal, symbol]);
|
|
184
246
|
const handleAddToCart = () => {
|
|
247
|
+
var _a2;
|
|
185
248
|
if (!productData) return;
|
|
186
|
-
|
|
187
|
-
skuValue.
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
const { id, bundle_item = [] } = productData.bundle_group[i];
|
|
193
|
-
for (let j = 0; j < bundle_item.length; j++) {
|
|
194
|
-
if (item.id === bundle_item[j].bundle_product_id) {
|
|
195
|
-
bundle_group_id = id;
|
|
196
|
-
targetBundleData = bundle_item[j];
|
|
197
|
-
break;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
productBundle.push({
|
|
202
|
-
bundle_group_id,
|
|
203
|
-
bundle_id: targetBundleData.id,
|
|
204
|
-
bundle_product_id: item.id,
|
|
205
|
-
bundle_variant_id: targetBundleData.bundle_variant_id,
|
|
206
|
-
num: item.num,
|
|
207
|
-
extension_id: targetBundleData.extension_id,
|
|
208
|
-
extension_type: targetBundleData.extension_type
|
|
209
|
-
});
|
|
210
|
-
});
|
|
211
|
-
productData.option_group = [];
|
|
212
|
-
productData.variant_group = [];
|
|
249
|
+
(_a2 = skuOptionsSelectionRef.current) == null ? void 0 : _a2.validate();
|
|
250
|
+
if (!skuValue.product_variant_id) {
|
|
251
|
+
Toast.info(import_utils.locales.getText("pisell2.text.kiosk.sku.detail.toast.select.variant"));
|
|
252
|
+
return;
|
|
253
|
+
}
|
|
254
|
+
;
|
|
213
255
|
const obj = {
|
|
214
256
|
productDetail: productData,
|
|
215
257
|
quantity,
|
|
258
|
+
variantId: skuValue.product_variant_id,
|
|
216
259
|
pricePerUnit: unitPrice,
|
|
217
|
-
|
|
218
|
-
productBundle
|
|
260
|
+
isWebBuyWalletPass: true
|
|
219
261
|
};
|
|
220
262
|
interaction.utils.postMessageToApp({
|
|
221
|
-
module: "
|
|
263
|
+
module: "wallet_pass",
|
|
222
264
|
key: "buy_wallet_pass",
|
|
223
265
|
data: {
|
|
224
266
|
// 把洗好的数据放这里
|
|
225
|
-
productData:
|
|
267
|
+
productData: obj,
|
|
268
|
+
isEdit
|
|
226
269
|
}
|
|
227
270
|
});
|
|
228
271
|
};
|
|
229
|
-
|
|
272
|
+
const onBack = () => {
|
|
273
|
+
interaction.utils.postMessageToApp({
|
|
274
|
+
module: "wallet_pass",
|
|
275
|
+
key: "back"
|
|
276
|
+
});
|
|
277
|
+
};
|
|
278
|
+
const stageStyle = (0, import_react.useMemo)(() => {
|
|
279
|
+
return {
|
|
280
|
+
...style || {},
|
|
281
|
+
width: 1080,
|
|
282
|
+
height: 1800,
|
|
283
|
+
transform: `translateX(-50%) scale(${stageScale})`,
|
|
284
|
+
transformOrigin: "top center"
|
|
285
|
+
};
|
|
286
|
+
}, [stageScale, style]);
|
|
287
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-kiosk-sku-detail-viewport" }, /* @__PURE__ */ import_react.default.createElement(
|
|
230
288
|
"div",
|
|
231
289
|
{
|
|
232
290
|
className: (0, import_classnames.default)("pisell-kiosk-sku-detail", className),
|
|
233
|
-
style
|
|
291
|
+
style: stageStyle
|
|
234
292
|
},
|
|
235
293
|
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-kiosk-sku-detail__content" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-kiosk-sku-detail__hero" }, coverUrl ? /* @__PURE__ */ import_react.default.createElement(
|
|
236
294
|
"img",
|
|
@@ -246,9 +304,10 @@ function KioskSkuDetail(props) {
|
|
|
246
304
|
__html: descriptionText
|
|
247
305
|
}
|
|
248
306
|
}
|
|
249
|
-
)), !!priceRangeText && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-kiosk-sku-detail__price-range" }, priceRangeText, " ", currency_code), !!errorText && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-kiosk-sku-detail__error" }, errorText)), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-kiosk-sku-detail__options-card" }, productData ? /* @__PURE__ */ import_react.default.createElement(
|
|
307
|
+
)), !!priceRangeText && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-kiosk-sku-detail__price-range" }, priceRangeText, " ", currency_code), !!errorText && /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-kiosk-sku-detail__error" }, errorText)), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-kiosk-sku-detail__options-card" }, productData && Array.isArray(productData == null ? void 0 : productData.variant) && productData.variant.length > 0 ? /* @__PURE__ */ import_react.default.createElement(
|
|
250
308
|
import_skuOptionsSelection.default,
|
|
251
309
|
{
|
|
310
|
+
ref: skuOptionsSelectionRef,
|
|
252
311
|
dataSource: productData,
|
|
253
312
|
value: skuDefaultValue,
|
|
254
313
|
skuCardConfig: {
|
|
@@ -273,22 +332,7 @@ function KioskSkuDetail(props) {
|
|
|
273
332
|
onClick: onBack
|
|
274
333
|
},
|
|
275
334
|
import_utils.locales.getText("pisell2.text.kiosk.sku.detail.btn.back")
|
|
276
|
-
), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-kiosk-sku-detail__footer-center" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-kiosk-sku-detail__item-total" }, import_utils.locales.getText("pisell2.text.kiosk.sku.detail.item.total"), ":", " ", itemTotalText), /* @__PURE__ */ import_react.default.createElement(
|
|
277
|
-
import_pisellNumberSelector.default,
|
|
278
|
-
{
|
|
279
|
-
value: quantity,
|
|
280
|
-
width: "140px",
|
|
281
|
-
onChange: (v) => {
|
|
282
|
-
if (!v) return;
|
|
283
|
-
setQuantity(v);
|
|
284
|
-
},
|
|
285
|
-
min: 1,
|
|
286
|
-
max: 99999,
|
|
287
|
-
step: 1,
|
|
288
|
-
size: "large",
|
|
289
|
-
enablePriceAdjust: false
|
|
290
|
-
}
|
|
291
|
-
))), /* @__PURE__ */ import_react.default.createElement(
|
|
335
|
+
), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-kiosk-sku-detail__footer-center" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-kiosk-sku-detail__item-total" }, import_utils.locales.getText("pisell2.text.kiosk.sku.detail.item.total"), ":", " ", itemTotalText)), /* @__PURE__ */ import_react.default.createElement(
|
|
292
336
|
import_materials.Button,
|
|
293
337
|
{
|
|
294
338
|
type: "primary",
|
|
@@ -297,9 +341,11 @@ function KioskSkuDetail(props) {
|
|
|
297
341
|
onClick: handleAddToCart,
|
|
298
342
|
disabled: !productData || isLoading
|
|
299
343
|
},
|
|
300
|
-
import_utils.locales.getText(
|
|
344
|
+
import_utils.locales.getText(
|
|
345
|
+
isEdit ? "pisell2.text.kiosk.sku.detail.btn.update" : "pisell2.text.kiosk.sku.detail.btn.add.to.cart"
|
|
346
|
+
)
|
|
301
347
|
))
|
|
302
|
-
);
|
|
348
|
+
));
|
|
303
349
|
}
|
|
304
350
|
var kioskSkuDetail_default = KioskSkuDetail;
|
|
305
351
|
function getQueryFirstMatch(params) {
|
|
@@ -324,3 +370,24 @@ function getQueryFirstMatch(params) {
|
|
|
324
370
|
if (queryIndex === -1) return null;
|
|
325
371
|
return tryRead(hash.slice(queryIndex + 1));
|
|
326
372
|
}
|
|
373
|
+
function useDesignStageScale(params) {
|
|
374
|
+
const designWidth = params.designWidth;
|
|
375
|
+
const designHeight = params.designHeight;
|
|
376
|
+
const [scale, setScale] = (0, import_react.useState)(1);
|
|
377
|
+
(0, import_react.useEffect)(() => {
|
|
378
|
+
const update = () => {
|
|
379
|
+
const viewportWidth = window.innerWidth || designWidth;
|
|
380
|
+
const viewportHeight = window.innerHeight || designHeight;
|
|
381
|
+
const nextScale = Math.min(
|
|
382
|
+
viewportWidth / designWidth,
|
|
383
|
+
viewportHeight / designHeight,
|
|
384
|
+
1
|
|
385
|
+
);
|
|
386
|
+
setScale(nextScale);
|
|
387
|
+
};
|
|
388
|
+
update();
|
|
389
|
+
window.addEventListener("resize", update);
|
|
390
|
+
return () => window.removeEventListener("resize", update);
|
|
391
|
+
}, [designHeight, designWidth]);
|
|
392
|
+
return scale;
|
|
393
|
+
}
|
|
@@ -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
|
};
|
|
@@ -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
|
};
|
|
@@ -84,7 +84,8 @@ var MX51 = (props, ref) => {
|
|
|
84
84
|
msg: _res == null ? void 0 : _res.msg,
|
|
85
85
|
amount: (_a2 = _res == null ? void 0 : _res.data) == null ? void 0 : _a2.amount,
|
|
86
86
|
surcharge: (_b2 = _res == null ? void 0 : _res.data) == null ? void 0 : _b2.surcharge,
|
|
87
|
-
uniquePaymentNumber: _res == null ? void 0 : _res.uuid
|
|
87
|
+
uniquePaymentNumber: _res == null ? void 0 : _res.uuid,
|
|
88
|
+
action: _res == null ? void 0 : _res.action
|
|
88
89
|
};
|
|
89
90
|
isSame = (_res == null ? void 0 : _res.uuid) === uniquePaymentNumber;
|
|
90
91
|
if (isSame) {
|
|
@@ -14,6 +14,7 @@ export interface ToBPayParams {
|
|
|
14
14
|
symbol?: string;
|
|
15
15
|
amount: string;
|
|
16
16
|
surcharge?: string;
|
|
17
|
+
[key: string]: any;
|
|
17
18
|
};
|
|
18
19
|
mode: 'pay' | 'refund';
|
|
19
20
|
};
|
|
@@ -27,6 +28,12 @@ export declare type ToBPayCallback = (res: {
|
|
|
27
28
|
surMoney?: number;
|
|
28
29
|
surcharge?: number;
|
|
29
30
|
uniquePaymentNumber?: string;
|
|
31
|
+
/**
|
|
32
|
+
* @description
|
|
33
|
+
* 支付组件返回的额外动作指令(例如:取消订单并开始新订单)
|
|
34
|
+
* PaymentModal 里会根据该字段执行对应流程。
|
|
35
|
+
*/
|
|
36
|
+
action?: 'cancel_order' | string;
|
|
30
37
|
};
|
|
31
38
|
msg?: string;
|
|
32
39
|
}) => void;
|
|
@@ -57,11 +64,13 @@ export interface MX51PayResult {
|
|
|
57
64
|
amount: number;
|
|
58
65
|
surcharge: number;
|
|
59
66
|
uniquePaymentNumber: string;
|
|
67
|
+
action?: 'cancel_order' | string;
|
|
60
68
|
}
|
|
61
69
|
/**
|
|
62
70
|
* @title 原生MX51支付结果
|
|
63
71
|
*/
|
|
64
72
|
export interface NativeMX51PayResult {
|
|
73
|
+
action?: 'cancel_order' | string;
|
|
65
74
|
code: string;
|
|
66
75
|
msg?: string;
|
|
67
76
|
data: {
|
|
@@ -12,7 +12,7 @@ export interface PaymentListProps {
|
|
|
12
12
|
renderTitle?: () => React.ReactNode;
|
|
13
13
|
}
|
|
14
14
|
export interface PaymentListRef {
|
|
15
|
-
init: (props: any) => {};
|
|
15
|
+
init: (props: any, amount?: number) => {};
|
|
16
16
|
calculateSurcharge: (amount: number) => any;
|
|
17
17
|
}
|
|
18
18
|
declare const _default: React.ForwardRefExoticComponent<PaymentListProps & React.RefAttributes<unknown>>;
|