@pisell/private-materials 6.7.9 → 6.8.1
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 +2 -2
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/components/appointmentBooking/components/Voucher/index.js +2 -1
- package/es/components/booking/addons/index.js +25 -17
- package/es/components/booking/components/footer/amount.d.ts +1 -0
- package/es/components/booking/components/footer/amount.js +548 -84
- package/es/components/booking/components/footer/index.js +77 -56
- package/es/components/booking/components/footer/utils.d.ts +19 -0
- package/es/components/booking/components/footer/utils.js +194 -73
- package/es/components/booking/components/voucher/index.js +23 -7
- package/es/components/booking/hooks/useQuotation.js +4 -1
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/service2/utils.js +1 -0
- package/es/components/booking/info2/cartClientCard/index.js +30 -6
- package/es/components/booking/info2/index.js +1 -1
- package/es/components/booking/info2/service/addService/index.js +2 -3
- package/es/components/booking/info2/service/editNormalService/index.js +6 -0
- package/es/components/booking/info2/service/editService/index.js +16 -6
- package/es/components/booking/info2/service/editService/utils.d.ts +15 -0
- package/es/components/booking/info2/service/editService/utils.js +66 -0
- package/es/components/booking/utils.d.ts +1 -0
- package/es/components/booking/utils.js +16 -3
- package/es/components/checkout/PaymentModal.d.ts +13 -5
- package/es/components/checkout/PaymentModal.js +304 -252
- package/es/components/checkout/components/AdditionalModule/index.d.ts +3 -1
- package/es/components/checkout/components/AdditionalModule/index.js +52 -12
- package/es/components/checkout/components/AmountSummary/index.js +9 -76
- package/es/components/checkout/components/AmountSummary/index.less +5 -6
- package/es/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
- package/es/components/checkout/components/CashPaymentModule/index.js +5 -2
- package/es/components/checkout/components/PaymentDetailModal/index.js +2 -2
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +6 -1
- package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -0
- package/es/components/checkout/components/PaymentOptionsModule/index.js +2 -1
- package/es/components/checkout/components/PaymentOptionsModule/index.less +4 -0
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +4 -0
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +31 -8
- package/es/components/checkout/components/PaymentResultToast/index.js +6 -6
- package/es/components/checkout/components/PaymentResultToast/index.less +94 -33
- package/es/components/checkout/components/SearchAndClientModule/index.js +39 -40
- package/es/components/checkout/index.less +1 -1
- package/es/components/checkout/locales.d.ts +6 -0
- package/es/components/checkout/locales.js +6 -0
- package/es/components/checkout/plugin.d.ts +2 -0
- package/es/components/checkout/plugin.js +303 -0
- package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -1
- package/es/components/checkout/utils/PaymentResultToastUtils.js +11 -1
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +14 -6
- package/es/components/eftposPay/payo/config.js +70 -32
- package/es/components/eftposPay/payo/payment.d.ts +66 -0
- package/es/components/eftposPay/payo/payment.js +579 -0
- package/es/components/eftposPay/store/index.d.ts +4 -4
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eftposPay/tyro/index.js +12 -0
- package/es/components/eftposPay/utils/log/index.d.ts +110 -0
- package/es/components/eftposPay/utils/log/index.js +371 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +2 -1
- package/es/components/list/List.js +99 -56
- package/es/components/list/hooks/useListState.d.ts +5 -3
- package/es/components/list/hooks/useListState.js +10 -2
- package/es/components/list/styles/base.less +4 -0
- package/es/components/list/styles/content.less +1 -1
- package/es/components/list/styles/header.less +4 -4
- package/es/components/list/types.d.ts +1 -0
- package/es/components/list/utils/index.d.ts +13 -1
- package/es/components/list/utils/index.js +43 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +14 -12
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +4 -2
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +2 -0
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
- package/es/components/pay/toC/index.js +7 -4
- package/es/components/pay/toC/locales.d.ts +3 -0
- package/es/components/pay/toC/locales.js +6 -3
- package/es/components/pay/toC/status.d.ts +1 -0
- package/es/components/pay/toC/status.js +3 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/es/components/subTotal/index.js +1 -1
- package/es/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
- package/es/components/{checkout/PaymentPlugin.js → systemSettings/registry/components/GroupModal.js} +132 -171
- package/es/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
- package/es/components/systemSettings/registry/components/ItemModal.js +547 -0
- package/es/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
- package/es/components/systemSettings/registry/components/ModuleList.js +54 -0
- package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
- package/es/components/systemSettings/registry/components/SectionList.js +174 -0
- package/es/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
- package/es/components/systemSettings/registry/components/SettingsTable.js +765 -0
- package/es/components/systemSettings/registry/components/index.d.ts +4 -0
- package/es/components/systemSettings/registry/components/index.js +4 -0
- package/es/components/systemSettings/registry/index.d.ts +5 -0
- package/es/components/systemSettings/registry/index.js +1059 -0
- package/es/components/systemSettings/registry/index.less +410 -0
- package/es/components/systemSettings/registry/locales.d.ts +272 -0
- package/es/components/systemSettings/registry/locales.js +300 -0
- package/es/components/systemSettings/registry/services.d.ts +77 -0
- package/es/components/systemSettings/registry/services.js +472 -0
- package/es/components/systemSettings/registry/types.d.ts +126 -0
- package/es/components/systemSettings/registry/types.js +1 -0
- package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
- package/es/components/systemSettings/registry/utils/typeValidation.js +284 -0
- package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
- package/es/components/systemSettings/registry/utils/validators.js +44 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +58 -11
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.less +28 -1
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +35 -2
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.js +149 -36
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +2 -86
- package/es/components/ticketBooking/components/menuBar/index.js +109 -12
- package/es/components/ticketBooking/components/ticketBooking/index.js +2 -2
- package/es/components/ticketBooking/components/timeBar/index.js +112 -7
- package/es/components/ticketBooking/components/timeBar/index.less +59 -0
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +29 -18
- package/es/components/ticketBooking/locales.d.ts +9 -0
- package/es/components/ticketBooking/locales.js +12 -3
- package/es/components/ticketBooking/utils/index.d.ts +3 -0
- package/es/components/ticketBooking/utils/index.js +36 -13
- package/es/components/wallet/Detail/index.js +34 -2
- package/es/components/wallet/Detail/index.less +11 -0
- package/es/components/wallet/Detail/locales.d.ts +6 -0
- package/es/components/wallet/Detail/locales.js +14 -2
- package/es/components/wallet/Voucher/index.js +11 -10
- package/es/components/wallet/components/WalletCard.js +5 -1
- package/es/components/wallet/index.js +4 -2
- package/es/components/wallet/serve.d.ts +7 -0
- package/es/components/wallet/utils.d.ts +48 -0
- package/es/components/wallet/utils.js +342 -0
- package/es/index.d.ts +5 -0
- package/es/index.js +6 -1
- package/es/plus/clientCard/locales.js +3 -3
- package/es/plus/clinetSearch/index.js +28 -30
- package/es/plus/clinetSearch/locales.d.ts +3 -0
- package/es/plus/clinetSearch/locales.js +7 -4
- package/es/plus/clinetSearch/types.d.ts +12 -0
- package/es/plus/productSelect/CategoryTabs/index.d.ts +1 -0
- package/es/plus/productSelect/CategoryTabs/index.js +2 -1
- package/es/plus/walletPassGallery/components/footerButton/index.js +2 -4
- package/es/plus/walletPassGallery/components/footerButton/index.less +14 -59
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/passDetail/index.js +84 -31
- package/es/plus/walletPassGallery/components/passDetail/index.less +4 -0
- package/es/plus/walletPassGallery/components/recharge/index.js +19 -8
- package/es/plus/walletPassGallery/index.js +7 -3
- package/es/plus/walletPassGallery/serve.d.ts +3 -0
- package/es/plus/walletPassGallery/serve.js +4 -2
- package/es/pro/Login2.0/index.less +15 -8
- package/es/pro/Selector/BatchSelectorDemo.d.ts +3 -0
- package/es/pro/Selector/BatchSelectorDemo.js +470 -0
- package/es/pro/Selector/Selector.d.ts +5 -0
- package/es/pro/Selector/Selector.js +283 -0
- package/es/pro/Selector/SelectorGroup.d.ts +11 -0
- package/es/pro/Selector/SelectorGroup.js +537 -0
- package/es/pro/Selector/components/Card/index.d.ts +27 -0
- package/es/pro/Selector/components/Card/index.js +96 -0
- package/es/pro/Selector/components/Card/index.less +132 -0
- package/es/pro/Selector/components/IntersectionObserver.d.ts +105 -0
- package/es/pro/Selector/components/IntersectionObserver.js +384 -0
- package/es/pro/Selector/components/NumericStepper/index.d.ts +41 -0
- package/es/pro/Selector/components/NumericStepper/index.js +198 -0
- package/es/pro/Selector/components/NumericStepper/index.less +221 -0
- package/es/pro/Selector/components/index.d.ts +2 -0
- package/es/pro/Selector/components/index.js +2 -0
- package/es/pro/Selector/demo.d.ts +3 -0
- package/es/pro/Selector/demo.js +158 -0
- package/es/pro/Selector/hooks/useSelectionController.d.ts +42 -0
- package/es/pro/Selector/hooks/useSelectionController.js +414 -0
- package/es/pro/Selector/index.d.ts +8 -0
- package/es/pro/Selector/index.js +5 -0
- package/es/pro/Selector/locales.d.ts +42 -0
- package/es/pro/Selector/locales.js +80 -0
- package/es/pro/Selector/selector.less +3 -0
- package/es/pro/Selector/selectorGroup.less +8 -0
- package/es/pro/Selector/types.d.ts +114 -0
- package/es/pro/Selector/types.js +1 -0
- package/es/pro/Selector/utils/index.d.ts +49 -0
- package/es/pro/Selector/utils/index.js +229 -0
- package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/es/pro/comprehensiveSearch/locales.js +1 -1
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +45 -36
- package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/index.js +4 -2
- package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +1 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/index.js +10 -1
- package/es/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +1 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.js +5 -2
- package/es/pro/priceKeyboard/components/shortcuts/index.less +4 -0
- package/lib/components/appointmentBooking/components/Voucher/index.js +2 -1
- package/lib/components/booking/addons/index.js +15 -7
- package/lib/components/booking/components/footer/amount.d.ts +1 -0
- package/lib/components/booking/components/footer/amount.js +293 -41
- package/lib/components/booking/components/footer/index.js +30 -11
- package/lib/components/booking/components/footer/utils.d.ts +19 -0
- package/lib/components/booking/components/footer/utils.js +138 -41
- package/lib/components/booking/components/voucher/index.js +25 -9
- package/lib/components/booking/hooks/useQuotation.js +2 -1
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/service2/utils.js +1 -0
- package/lib/components/booking/info2/cartClientCard/index.js +25 -5
- package/lib/components/booking/info2/index.js +7 -2
- package/lib/components/booking/info2/service/addService/index.js +1 -2
- package/lib/components/booking/info2/service/editNormalService/index.js +6 -0
- package/lib/components/booking/info2/service/editService/index.js +12 -3
- package/lib/components/booking/info2/service/editService/utils.d.ts +15 -0
- package/lib/components/booking/info2/service/editService/utils.js +40 -3
- package/lib/components/booking/utils.d.ts +1 -0
- package/lib/components/booking/utils.js +11 -0
- package/lib/components/checkout/PaymentModal.d.ts +13 -5
- package/lib/components/checkout/PaymentModal.js +190 -147
- package/lib/components/checkout/components/AdditionalModule/index.d.ts +3 -1
- package/lib/components/checkout/components/AdditionalModule/index.js +52 -11
- package/lib/components/checkout/components/AmountSummary/index.js +5 -46
- package/lib/components/checkout/components/AmountSummary/index.less +5 -6
- package/lib/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
- package/lib/components/checkout/components/CashPaymentModule/index.js +5 -2
- package/lib/components/checkout/components/PaymentDetailModal/index.js +2 -2
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +5 -1
- package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -0
- package/lib/components/checkout/components/PaymentOptionsModule/index.js +6 -0
- package/lib/components/checkout/components/PaymentOptionsModule/index.less +4 -0
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +4 -0
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +23 -5
- package/lib/components/checkout/components/PaymentResultToast/index.js +4 -4
- package/lib/components/checkout/components/PaymentResultToast/index.less +94 -33
- package/lib/components/checkout/components/SearchAndClientModule/index.js +29 -3
- package/lib/components/checkout/index.less +1 -1
- package/lib/components/checkout/locales.d.ts +6 -0
- package/lib/components/checkout/locales.js +6 -0
- package/lib/components/checkout/plugin.d.ts +2 -0
- package/lib/components/checkout/plugin.js +263 -0
- package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +0 -1
- package/lib/components/checkout/utils/PaymentResultToastUtils.js +11 -1
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +12 -6
- package/lib/components/eftposPay/payo/config.js +98 -73
- package/lib/components/eftposPay/payo/payment.d.ts +66 -0
- package/lib/components/eftposPay/payo/payment.js +357 -0
- package/lib/components/eftposPay/store/index.d.ts +4 -4
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eftposPay/tyro/index.js +12 -0
- package/lib/components/eftposPay/utils/log/index.d.ts +110 -0
- package/lib/components/eftposPay/utils/log/index.js +294 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/lib/components/index.d.ts +2 -1
- package/lib/components/index.js +3 -0
- package/lib/components/list/List.js +58 -36
- package/lib/components/list/hooks/useListState.d.ts +5 -3
- package/lib/components/list/hooks/useListState.js +9 -1
- package/lib/components/list/styles/base.less +4 -0
- package/lib/components/list/styles/content.less +1 -1
- package/lib/components/list/styles/header.less +4 -4
- package/lib/components/list/types.d.ts +1 -0
- package/lib/components/list/utils/index.d.ts +13 -1
- package/lib/components/list/utils/index.js +27 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +14 -12
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +4 -2
- package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +13 -3
- package/lib/components/pay/toC/index.js +4 -1
- package/lib/components/pay/toC/locales.d.ts +3 -0
- package/lib/components/pay/toC/locales.js +6 -3
- package/lib/components/pay/toC/status.d.ts +1 -0
- package/lib/components/pay/toC/status.js +5 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/lib/components/subTotal/index.js +1 -1
- package/lib/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/GroupModal.js +177 -0
- package/lib/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/ItemModal.js +508 -0
- package/lib/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/ModuleList.js +71 -0
- package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/SectionList.js +181 -0
- package/lib/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/SettingsTable.js +575 -0
- package/lib/components/systemSettings/registry/components/index.d.ts +4 -0
- package/lib/components/systemSettings/registry/components/index.js +48 -0
- package/lib/components/systemSettings/registry/index.d.ts +5 -0
- package/lib/components/systemSettings/registry/index.js +529 -0
- package/lib/components/systemSettings/registry/index.less +410 -0
- package/lib/components/systemSettings/registry/locales.d.ts +272 -0
- package/lib/components/systemSettings/registry/locales.js +324 -0
- package/lib/components/systemSettings/registry/services.d.ts +77 -0
- package/lib/components/systemSettings/registry/services.js +290 -0
- package/lib/components/systemSettings/registry/types.d.ts +126 -0
- package/lib/components/systemSettings/registry/types.js +17 -0
- package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
- package/lib/components/systemSettings/registry/utils/typeValidation.js +228 -0
- package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
- package/lib/components/systemSettings/registry/utils/validators.js +54 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +40 -5
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.less +28 -1
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +35 -2
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.js +93 -24
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +0 -1
- package/lib/components/ticketBooking/components/menuBar/index.js +42 -6
- package/lib/components/ticketBooking/components/ticketBooking/index.js +2 -2
- package/lib/components/ticketBooking/components/timeBar/index.js +105 -4
- package/lib/components/ticketBooking/components/timeBar/index.less +59 -0
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +17 -13
- package/lib/components/ticketBooking/locales.d.ts +9 -0
- package/lib/components/ticketBooking/locales.js +12 -3
- package/lib/components/ticketBooking/utils/index.d.ts +3 -0
- package/lib/components/ticketBooking/utils/index.js +20 -6
- package/lib/components/wallet/Detail/index.js +31 -3
- package/lib/components/wallet/Detail/index.less +11 -0
- package/lib/components/wallet/Detail/locales.d.ts +6 -0
- package/lib/components/wallet/Detail/locales.js +14 -2
- package/lib/components/wallet/Voucher/index.js +8 -8
- package/lib/components/wallet/components/WalletCard.js +4 -0
- package/lib/components/wallet/index.js +2 -2
- package/lib/components/wallet/serve.d.ts +7 -0
- package/lib/components/wallet/utils.d.ts +48 -0
- package/lib/components/wallet/utils.js +287 -0
- package/lib/index.d.ts +5 -0
- package/lib/index.js +15 -0
- package/lib/plus/clientCard/locales.js +3 -3
- package/lib/plus/clinetSearch/index.js +17 -8
- package/lib/plus/clinetSearch/locales.d.ts +3 -0
- package/lib/plus/clinetSearch/locales.js +7 -4
- package/lib/plus/clinetSearch/types.d.ts +12 -0
- package/lib/plus/productSelect/CategoryTabs/index.d.ts +1 -0
- package/lib/plus/productSelect/CategoryTabs/index.js +2 -1
- package/lib/plus/walletPassGallery/components/footerButton/index.js +2 -2
- package/lib/plus/walletPassGallery/components/footerButton/index.less +14 -59
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.js +54 -15
- package/lib/plus/walletPassGallery/components/passDetail/index.less +4 -0
- package/lib/plus/walletPassGallery/components/recharge/index.js +7 -1
- package/lib/plus/walletPassGallery/index.js +7 -3
- package/lib/plus/walletPassGallery/serve.d.ts +3 -0
- package/lib/plus/walletPassGallery/serve.js +3 -2
- package/lib/pro/Login2.0/index.less +15 -8
- package/lib/pro/Selector/BatchSelectorDemo.d.ts +3 -0
- package/lib/pro/Selector/BatchSelectorDemo.js +376 -0
- package/lib/pro/Selector/Selector.d.ts +5 -0
- package/lib/pro/Selector/Selector.js +264 -0
- package/lib/pro/Selector/SelectorGroup.d.ts +11 -0
- package/lib/pro/Selector/SelectorGroup.js +463 -0
- package/lib/pro/Selector/components/Card/index.d.ts +27 -0
- package/lib/pro/Selector/components/Card/index.js +114 -0
- package/lib/pro/Selector/components/Card/index.less +132 -0
- package/lib/pro/Selector/components/IntersectionObserver.d.ts +105 -0
- package/lib/pro/Selector/components/IntersectionObserver.js +281 -0
- package/lib/pro/Selector/components/NumericStepper/index.d.ts +41 -0
- package/lib/pro/Selector/components/NumericStepper/index.js +221 -0
- package/lib/pro/Selector/components/NumericStepper/index.less +221 -0
- package/lib/pro/Selector/components/index.d.ts +2 -0
- package/lib/pro/Selector/components/index.js +42 -0
- package/lib/pro/Selector/demo.d.ts +3 -0
- package/lib/pro/Selector/demo.js +102 -0
- package/lib/pro/Selector/hooks/useSelectionController.d.ts +42 -0
- package/lib/pro/Selector/hooks/useSelectionController.js +338 -0
- package/lib/pro/Selector/index.d.ts +8 -0
- package/lib/pro/Selector/index.js +39 -0
- package/lib/pro/Selector/locales.d.ts +42 -0
- package/lib/pro/Selector/locales.js +80 -0
- package/lib/pro/Selector/selector.less +3 -0
- package/lib/pro/Selector/selectorGroup.less +8 -0
- package/lib/pro/Selector/types.d.ts +114 -0
- package/lib/pro/Selector/types.js +17 -0
- package/lib/pro/Selector/utils/index.d.ts +49 -0
- package/lib/pro/Selector/utils/index.js +221 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/lib/pro/comprehensiveSearch/locales.js +1 -1
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +42 -43
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.js +3 -2
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +1 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +8 -1
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +1 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.js +3 -2
- package/lib/pro/priceKeyboard/components/shortcuts/index.less +4 -0
- package/lowcode/payment-modal/meta.ts +135 -0
- package/lowcode/selector/meta.ts +352 -0
- package/lowcode/selector.group/meta.ts +200 -0
- package/lowcode/settings-registry/meta.ts +29 -0
- package/lowcode/wallet-pass-detail/meta.ts +89 -0
- package/package.json +4 -4
- package/es/components/checkout/PaymentPlugin.d.ts +0 -3
- package/lib/components/checkout/PaymentPlugin.d.ts +0 -3
- package/lib/components/checkout/PaymentPlugin.js +0 -181
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
2
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
8
3
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
4
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
@@ -11,10 +6,14 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
11
6
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
12
7
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
13
8
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
9
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
10
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
11
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
12
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
13
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
14
14
|
import React, { useEffect, useMemo, useRef, useCallback, cloneElement, isValidElement } from 'react';
|
|
15
15
|
import { Button } from 'antd';
|
|
16
16
|
import classNames from 'classnames';
|
|
17
|
-
import Tab from "./components/Tab";
|
|
18
17
|
import Pagination from "./components/Pagination";
|
|
19
18
|
import EmptyState from "./components/EmptyState";
|
|
20
19
|
import ScrollLoader from "./components/ScrollLoader";
|
|
@@ -22,12 +21,13 @@ import WaterfallList from "./components/WaterfallList";
|
|
|
22
21
|
import ListItemSkeleton from "./components/ListItemSkeleton";
|
|
23
22
|
import TabSkeleton from "./components/TabSkeleton";
|
|
24
23
|
import "./List.less";
|
|
25
|
-
import { Iconfont } from '@pisell/materials';
|
|
24
|
+
import { Iconfont, PisellTabbar } from '@pisell/materials';
|
|
26
25
|
// import { locales } from '@pisell/utils';
|
|
27
26
|
import listLocales from "./locales";
|
|
28
27
|
import useWaterfall from "./hooks/useWaterfall";
|
|
29
28
|
import { useListState } from "./hooks/useListState";
|
|
30
29
|
import useEngineContext from "../../hooks/useEngineContext";
|
|
30
|
+
import { findProductIdsByPath } from "./utils";
|
|
31
31
|
|
|
32
32
|
// 虚假数据常量,用于loading状态
|
|
33
33
|
var MOCK_LIST_DATA = function () {
|
|
@@ -136,7 +136,8 @@ var List = function List(props) {
|
|
|
136
136
|
} : _props$emptyConfig,
|
|
137
137
|
pagination = props.pagination,
|
|
138
138
|
_props$loading = props.loading,
|
|
139
|
-
loading = _props$loading === void 0 ? false : _props$loading
|
|
139
|
+
loading = _props$loading === void 0 ? false : _props$loading,
|
|
140
|
+
renderSearch = props.renderSearch;
|
|
140
141
|
console.log('List props', props);
|
|
141
142
|
var tabItems = tabStyle === 'none' ? [] : tabData || [];
|
|
142
143
|
|
|
@@ -145,6 +146,7 @@ var List = function List(props) {
|
|
|
145
146
|
externalCurrentPage: pagination === null || pagination === void 0 ? void 0 : pagination.current,
|
|
146
147
|
tabItems: tabItems,
|
|
147
148
|
defaultPageSize: defaultPageSize,
|
|
149
|
+
tabStyle: tabStyle,
|
|
148
150
|
onLoadData: onLoadData
|
|
149
151
|
}),
|
|
150
152
|
listState = _useListState.state,
|
|
@@ -174,6 +176,11 @@ var List = function List(props) {
|
|
|
174
176
|
// 否则使用严格相等比较
|
|
175
177
|
return fieldValue === targetValue;
|
|
176
178
|
};
|
|
179
|
+
var dataIdMap = useMemo(function () {
|
|
180
|
+
return data.reduce(function (pre, cur) {
|
|
181
|
+
return _objectSpread(_objectSpread({}, pre), {}, _defineProperty({}, cur.id, cur));
|
|
182
|
+
}, {});
|
|
183
|
+
}, [data]);
|
|
177
184
|
|
|
178
185
|
// 数据分组处理 - 按tab分组数据
|
|
179
186
|
var processedData = useMemo(function () {
|
|
@@ -273,40 +280,51 @@ var List = function List(props) {
|
|
|
273
280
|
items: filteredData
|
|
274
281
|
}];
|
|
275
282
|
}
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
283
|
+
if (Array.isArray(activeTab)) {
|
|
284
|
+
var productIds = findProductIdsByPath(tabItems, activeTab, 0);
|
|
285
|
+
var items = productIds.map(function (id) {
|
|
286
|
+
return dataIdMap[id];
|
|
287
|
+
});
|
|
288
|
+
return [{
|
|
289
|
+
tabKey: activeTab,
|
|
290
|
+
tabLabel: "",
|
|
291
|
+
items: items
|
|
292
|
+
}];
|
|
293
|
+
} else {
|
|
294
|
+
// 查找当前选中的tab
|
|
295
|
+
var currentTab = tabItems.find(function (tab) {
|
|
296
|
+
return tab.key === activeTab;
|
|
286
297
|
});
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
298
|
+
if (currentTab && currentTab.group) {
|
|
299
|
+
// 如果tab项有group属性,使用group值进行过滤
|
|
300
|
+
var filterField = 'category'; // 固定使用category字段,因为测试数据都使用这个字段
|
|
301
|
+
filteredData = filteredData.filter(function (item) {
|
|
302
|
+
return matchesFieldValue(item[filterField], currentTab.group);
|
|
303
|
+
});
|
|
304
|
+
} else if (currentTab) {
|
|
305
|
+
// 如果没有group属性,假设tab的key就是要过滤的值
|
|
306
|
+
var possibleFields = ['category', 'status', 'type', tabGroup];
|
|
307
|
+
var _loop2 = function _loop2() {
|
|
308
|
+
var field = _possibleFields[_i];
|
|
309
|
+
if (field && field !== '字段' && filteredData.some(function (item) {
|
|
296
310
|
return matchesFieldValue(item[field], activeTab);
|
|
297
|
-
})
|
|
298
|
-
|
|
311
|
+
})) {
|
|
312
|
+
filteredData = filteredData.filter(function (item) {
|
|
313
|
+
return matchesFieldValue(item[field], activeTab);
|
|
314
|
+
});
|
|
315
|
+
return 1; // break
|
|
316
|
+
}
|
|
317
|
+
};
|
|
318
|
+
for (var _i = 0, _possibleFields = possibleFields; _i < _possibleFields.length; _i++) {
|
|
319
|
+
if (_loop2()) break;
|
|
299
320
|
}
|
|
300
|
-
};
|
|
301
|
-
for (var _i = 0, _possibleFields = possibleFields; _i < _possibleFields.length; _i++) {
|
|
302
|
-
if (_loop2()) break;
|
|
303
321
|
}
|
|
322
|
+
return [{
|
|
323
|
+
tabKey: activeTab,
|
|
324
|
+
tabLabel: (currentTab === null || currentTab === void 0 ? void 0 : currentTab.label) || '',
|
|
325
|
+
items: filteredData
|
|
326
|
+
}];
|
|
304
327
|
}
|
|
305
|
-
return [{
|
|
306
|
-
tabKey: activeTab,
|
|
307
|
-
tabLabel: (currentTab === null || currentTab === void 0 ? void 0 : currentTab.label) || '',
|
|
308
|
-
items: filteredData
|
|
309
|
-
}];
|
|
310
328
|
}
|
|
311
329
|
}, [data, activeTab, tabItems, tabGroup, tabStyle, loading]);
|
|
312
330
|
|
|
@@ -593,18 +611,26 @@ var List = function List(props) {
|
|
|
593
611
|
rowGap: "".concat(rowGap, "px")
|
|
594
612
|
};
|
|
595
613
|
if (displayStyle === 'grid') {
|
|
614
|
+
return _objectSpread(_objectSpread({}, baseStyle), {}, {
|
|
615
|
+
display: 'grid',
|
|
616
|
+
gridTemplateColumns: "repeat(".concat(columns, ", 1fr)")
|
|
617
|
+
});
|
|
618
|
+
/*
|
|
596
619
|
if (layoutDirection === 'vertical') {
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
620
|
+
return {
|
|
621
|
+
...baseStyle,
|
|
622
|
+
display: 'grid',
|
|
623
|
+
gridTemplateColumns: `repeat(${columns}, 1fr)`,
|
|
624
|
+
};
|
|
601
625
|
} else {
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
626
|
+
return {
|
|
627
|
+
...baseStyle,
|
|
628
|
+
display: 'grid',
|
|
629
|
+
gridTemplateRows: `repeat(${rows}, 1fr)`,
|
|
630
|
+
gridAutoFlow: 'column',
|
|
631
|
+
};
|
|
607
632
|
}
|
|
633
|
+
*/
|
|
608
634
|
} else {
|
|
609
635
|
// 瀑布流布局 - 使用新的瀑布流实现
|
|
610
636
|
return _objectSpread(_objectSpread({}, baseStyle), {}, {
|
|
@@ -689,15 +715,27 @@ var List = function List(props) {
|
|
|
689
715
|
tabStyle: tabStyle
|
|
690
716
|
}));
|
|
691
717
|
}
|
|
692
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
718
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
719
|
+
id: "level1-wrap"
|
|
720
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
693
721
|
ref: headerRef,
|
|
694
722
|
className: headerClasses
|
|
695
|
-
}, /*#__PURE__*/React.createElement(
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
723
|
+
}, /*#__PURE__*/React.createElement(PisellTabbar, {
|
|
724
|
+
levelConfig: {
|
|
725
|
+
level1: {
|
|
726
|
+
positionId: "#level1-wrap"
|
|
727
|
+
},
|
|
728
|
+
level2: {
|
|
729
|
+
positionId: "#level2-wrap"
|
|
730
|
+
}
|
|
731
|
+
},
|
|
732
|
+
style: {
|
|
733
|
+
height: "100%"
|
|
734
|
+
},
|
|
735
|
+
dataSource: tabItems,
|
|
736
|
+
value: activeTab,
|
|
699
737
|
onChange: handleTabChangeWithScroll
|
|
700
|
-
}));
|
|
738
|
+
})));
|
|
701
739
|
};
|
|
702
740
|
|
|
703
741
|
// 渲染列表内容
|
|
@@ -733,7 +771,9 @@ var List = function List(props) {
|
|
|
733
771
|
}), paginationType === 'scroll' && {
|
|
734
772
|
overflow: layoutDirection === 'horizontal' ? 'auto hidden' : 'hidden auto'
|
|
735
773
|
})
|
|
736
|
-
},
|
|
774
|
+
}, renderSearch === null || renderSearch === void 0 ? void 0 : renderSearch(), /*#__PURE__*/React.createElement("div", {
|
|
775
|
+
id: "level2-wrap"
|
|
776
|
+
}), layoutDirection === 'vertical' && renderTabs(), totalDataLength === 0 && !loading ? /*#__PURE__*/React.createElement(EmptyState, {
|
|
737
777
|
config: emptyConfig,
|
|
738
778
|
hasData: totalDataLength > 0
|
|
739
779
|
}) : /*#__PURE__*/React.createElement("div", {
|
|
@@ -807,7 +847,7 @@ var List = function List(props) {
|
|
|
807
847
|
layoutDirection: layoutDirection,
|
|
808
848
|
paginationType: paginationType
|
|
809
849
|
})));
|
|
810
|
-
}, [displayStyle, layoutDirection, paginationType, listStyle, processedData, renderItem, loading, children, height, scrollLoadState, emptyConfig, totalDataLength, tabStyle]);
|
|
850
|
+
}, [displayStyle, layoutDirection, paginationType, listStyle, processedData, renderItem, loading, children, height, scrollLoadState, emptyConfig, totalDataLength, tabStyle, renderSearch]);
|
|
811
851
|
|
|
812
852
|
// 渲染底部工具栏
|
|
813
853
|
var renderFooter = function renderFooter() {
|
|
@@ -929,10 +969,13 @@ var List = function List(props) {
|
|
|
929
969
|
});
|
|
930
970
|
|
|
931
971
|
// 计算容器样式 - 直接计算,无需memo
|
|
932
|
-
var finalContainerStyle = _objectSpread(_objectSpread({}, containerStyle), {}, {
|
|
972
|
+
var finalContainerStyle = _objectSpread(_objectSpread(_objectSpread({}, containerStyle), {}, {
|
|
933
973
|
position: 'relative'
|
|
934
974
|
}, layoutDirection === 'vertical' && height !== 'auto' && {
|
|
935
975
|
overflowY: 'hidden'
|
|
976
|
+
}), layoutDirection === 'horizontal' && {
|
|
977
|
+
display: 'flex',
|
|
978
|
+
flexDirection: "row"
|
|
936
979
|
});
|
|
937
980
|
|
|
938
981
|
// 渲染主要内容区域
|
|
@@ -942,7 +985,7 @@ var List = function List(props) {
|
|
|
942
985
|
return renderContent();
|
|
943
986
|
} else {
|
|
944
987
|
// 左右排版:保持原有结构
|
|
945
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null,
|
|
988
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, renderContent(), renderTabs());
|
|
946
989
|
}
|
|
947
990
|
};
|
|
948
991
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -6,7 +6,7 @@ export interface ListState {
|
|
|
6
6
|
}
|
|
7
7
|
export declare type ListAction = {
|
|
8
8
|
type: 'SET_ACTIVE_TAB';
|
|
9
|
-
payload: string;
|
|
9
|
+
payload: string[] | string;
|
|
10
10
|
} | {
|
|
11
11
|
type: 'SET_CURRENT_PAGE';
|
|
12
12
|
payload: number;
|
|
@@ -25,6 +25,8 @@ export interface UseListStateProps {
|
|
|
25
25
|
defaultPageSize: number;
|
|
26
26
|
/** 数据加载回调 */
|
|
27
27
|
onLoadData?: (params: LoadDataParams) => void;
|
|
28
|
+
/** tab样式 */
|
|
29
|
+
tabStyle: 'anchor' | 'switch' | 'none';
|
|
28
30
|
}
|
|
29
31
|
export interface UseListStateReturn {
|
|
30
32
|
state: ListState;
|
|
@@ -32,7 +34,7 @@ export interface UseListStateReturn {
|
|
|
32
34
|
setCurrentPage: (page: number) => void;
|
|
33
35
|
setStickyActive: (active: boolean) => void;
|
|
34
36
|
resetPage: () => void;
|
|
35
|
-
handleTabChange: (key: string) => void;
|
|
37
|
+
handleTabChange: (key: string[] | string) => void;
|
|
36
38
|
handlePageChange: (page: number, size?: number) => void;
|
|
37
39
|
handleShowSizeChange: (current: number, size: number) => void;
|
|
38
40
|
handleLoadMore: () => void;
|
|
@@ -40,4 +42,4 @@ export interface UseListStateReturn {
|
|
|
40
42
|
handleScrollLoad: () => void;
|
|
41
43
|
actualCurrentPage: number;
|
|
42
44
|
}
|
|
43
|
-
export declare const useListState: ({ externalCurrentPage, tabItems, defaultPageSize, onLoadData, }: UseListStateProps) => UseListStateReturn;
|
|
45
|
+
export declare const useListState: ({ externalCurrentPage, tabItems, defaultPageSize, onLoadData, tabStyle, }: UseListStateProps) => UseListStateReturn;
|
|
@@ -10,7 +10,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
10
10
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
11
11
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
12
12
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
13
|
-
import { useReducer, useCallback } from 'react';
|
|
13
|
+
import { useReducer, useCallback, useEffect } from 'react';
|
|
14
|
+
import { PisellTabbar } from '@pisell/materials';
|
|
14
15
|
|
|
15
16
|
// 状态接口
|
|
16
17
|
|
|
@@ -48,7 +49,8 @@ export var useListState = function useListState(_ref) {
|
|
|
48
49
|
var externalCurrentPage = _ref.externalCurrentPage,
|
|
49
50
|
tabItems = _ref.tabItems,
|
|
50
51
|
defaultPageSize = _ref.defaultPageSize,
|
|
51
|
-
onLoadData = _ref.onLoadData
|
|
52
|
+
onLoadData = _ref.onLoadData,
|
|
53
|
+
tabStyle = _ref.tabStyle;
|
|
52
54
|
// 初始状态
|
|
53
55
|
var initialState = {
|
|
54
56
|
activeTab: tabItems.length > 0 ? tabItems[0].key : 'all',
|
|
@@ -59,6 +61,12 @@ export var useListState = function useListState(_ref) {
|
|
|
59
61
|
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
60
62
|
state = _useReducer2[0],
|
|
61
63
|
dispatch = _useReducer2[1];
|
|
64
|
+
useEffect(function () {
|
|
65
|
+
if (tabStyle === 'switch' && tabItems.length > 0) {
|
|
66
|
+
var defaultTab = PisellTabbar.getDefaultActiveKey(tabItems, 'id');
|
|
67
|
+
setActiveTab(defaultTab);
|
|
68
|
+
}
|
|
69
|
+
}, [tabItems]);
|
|
62
70
|
|
|
63
71
|
// 计算实际使用的当前页码
|
|
64
72
|
var actualCurrentPage = externalCurrentPage || state.currentPage;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* 头部Tab栏样式 */
|
|
2
2
|
|
|
3
3
|
.pisell-list-header {
|
|
4
|
-
padding:
|
|
4
|
+
padding: 0;
|
|
5
5
|
|
|
6
6
|
&.pisell-list-header-sticky {
|
|
7
7
|
position: sticky;
|
|
@@ -58,12 +58,12 @@
|
|
|
58
58
|
top: 0;
|
|
59
59
|
z-index: 10;
|
|
60
60
|
/* 毛玻璃效果 */
|
|
61
|
-
background:
|
|
61
|
+
background: transparent;
|
|
62
62
|
backdrop-filter: blur(12px);
|
|
63
|
-
|
|
64
|
-
padding-bottom: 12px;
|
|
63
|
+
padding: 0;
|
|
65
64
|
box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
|
|
66
65
|
transition: box-shadow 0.2s ease, backdrop-filter 0.2s ease, background 0.2s ease;
|
|
66
|
+
border: none;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
}
|
|
@@ -133,6 +133,7 @@ export interface ListProps<TItem extends BaseListItem = BaseListItem> {
|
|
|
133
133
|
/** 状态配置 */
|
|
134
134
|
emptyConfig?: EmptyStateConfig;
|
|
135
135
|
loading?: boolean;
|
|
136
|
+
renderSearch?: () => ReactNode;
|
|
136
137
|
}
|
|
137
138
|
/** 向后兼容的非泛型版本 */
|
|
138
139
|
export interface LegacyListProps extends ListProps<any> {
|
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* List 组件工具函数导出
|
|
3
3
|
*/
|
|
4
|
-
export { useGetText, createGetText, default as createGetTextDefault, type SupportedLanguage, type LocalesObject, type GetTextFunctions } from './getText';
|
|
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,则取倒数第二层节点的 productIds
|
|
14
|
+
* 例如:[1, 2, 0] -> 取 id=2 节点的 productIds
|
|
15
|
+
*/
|
|
16
|
+
export declare const findProductIdsByPath: (nodes: any[], levelPath: (string | number)[], currentLevel?: number) => number[];
|
|
@@ -2,4 +2,46 @@
|
|
|
2
2
|
* List 组件工具函数导出
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
export { useGetText, createGetText, default as createGetTextDefault } from "./getText";
|
|
5
|
+
export { useGetText, createGetText, default as createGetTextDefault } from "./getText";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* 根据层级路径数组递归查找对应节点的 productIds
|
|
9
|
+
* @param nodes 当前层级的节点列表
|
|
10
|
+
* @param levelPath 层级路径数组,每个元素是对应层级的分类 ID
|
|
11
|
+
* @param currentLevel 当前遍历的层级索引
|
|
12
|
+
* @returns 找到的节点的 productIds,找不到返回空数组
|
|
13
|
+
*
|
|
14
|
+
* @description
|
|
15
|
+
* 特殊逻辑:如果 levelPath 最后一位是 0,则取倒数第二层节点的 productIds
|
|
16
|
+
* 例如:[1, 2, 0] -> 取 id=2 节点的 productIds
|
|
17
|
+
*/
|
|
18
|
+
export var findProductIdsByPath = function findProductIdsByPath(nodes, levelPath) {
|
|
19
|
+
var currentLevel = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
20
|
+
// 处理最后一位是 0 的情况:去掉最后一位,取倒数第二层的 productIds
|
|
21
|
+
var lastItem = levelPath[levelPath.length - 1];
|
|
22
|
+
var effectivePath = (lastItem === 0 || lastItem === '0') && levelPath.length > 1 ? levelPath.slice(0, -1) : levelPath;
|
|
23
|
+
if (!nodes || nodes.length === 0 || currentLevel >= effectivePath.length) {
|
|
24
|
+
return [];
|
|
25
|
+
}
|
|
26
|
+
var targetId = effectivePath[currentLevel];
|
|
27
|
+
// 查找当前层级中匹配的节点(比较时转为字符串以兼容不同类型)
|
|
28
|
+
var targetNode = nodes.find(function (node) {
|
|
29
|
+
return String(node.id) === String(targetId) || String(node.key) === String(targetId);
|
|
30
|
+
});
|
|
31
|
+
if (!targetNode) {
|
|
32
|
+
return [];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// 如果是最后一层,返回该节点的 productIds
|
|
36
|
+
if (currentLevel === effectivePath.length - 1) {
|
|
37
|
+
return targetNode.productIds || [];
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// 如果还有下一层,递归查找子节点
|
|
41
|
+
if (targetNode.children && targetNode.children.length > 0) {
|
|
42
|
+
return findProductIdsByPath(targetNode.children, effectivePath, currentLevel + 1);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// 没有子节点但路径还没结束,返回当前节点的 productIds
|
|
46
|
+
return targetNode.productIds || [];
|
|
47
|
+
};
|
|
@@ -381,7 +381,7 @@ export var checkTDSAuth = /*#__PURE__*/function () {
|
|
|
381
381
|
billAddrLine1: paymentInfo.billingAddress.billAddrLine1,
|
|
382
382
|
billAddrPostCode: paymentInfo.billingAddress.billAddrPostCode,
|
|
383
383
|
billAddrState: paymentInfo.billingAddress.billAddrState,
|
|
384
|
-
threeDSCompInd: isPre ? '' : threeDSCompInd,
|
|
384
|
+
threeDSCompInd: isPre ? '' : threeDSCompInd || 'N',
|
|
385
385
|
threeDSServerTransID: isPre ? '' : threeDSServerTransID,
|
|
386
386
|
threeDSRequestorAuthenticationInd: '01',
|
|
387
387
|
threeDSRequestorURL: window.location.href,
|
|
@@ -476,16 +476,7 @@ export var createChallengeIframe = function createChallengeIframe(challengeData,
|
|
|
476
476
|
// 返回iframe
|
|
477
477
|
return new Promise(function (res, rej) {
|
|
478
478
|
var timer = null;
|
|
479
|
-
|
|
480
|
-
// 120秒没成功 认为失败
|
|
481
|
-
timer = setTimeout(function () {
|
|
482
|
-
log({
|
|
483
|
-
msg: '第五步: 60秒超时则走N逻辑',
|
|
484
|
-
data: challengeData
|
|
485
|
-
});
|
|
486
|
-
rej('time out');
|
|
487
|
-
}, 2 * 60 * 1000);
|
|
488
|
-
window.addEventListener('message', function (event) {
|
|
479
|
+
var handleMessage = function handleMessage(event) {
|
|
489
480
|
// loadingSpinnerAnimation("on");
|
|
490
481
|
if (event.origin.indexOf(postmessageUrl) !== -1 || event.origin.indexOf('securesuite') !== -1) {
|
|
491
482
|
if (typeof event.data.cres == 'string') {
|
|
@@ -496,7 +487,18 @@ export var createChallengeIframe = function createChallengeIframe(challengeData,
|
|
|
496
487
|
closeIframe();
|
|
497
488
|
}
|
|
498
489
|
}
|
|
499
|
-
}
|
|
490
|
+
};
|
|
491
|
+
|
|
492
|
+
// 120秒没成功 认为失败
|
|
493
|
+
timer = setTimeout(function () {
|
|
494
|
+
log({
|
|
495
|
+
msg: '第五步: 60秒超时则走N逻辑',
|
|
496
|
+
data: challengeData
|
|
497
|
+
});
|
|
498
|
+
window.removeEventListener('message', handleMessage);
|
|
499
|
+
rej('time out');
|
|
500
|
+
}, 2 * 60 * 1000);
|
|
501
|
+
window.addEventListener('message', handleMessage, false);
|
|
500
502
|
});
|
|
501
503
|
};
|
|
502
504
|
|
|
@@ -50,6 +50,12 @@ export declare type WalletPassDataType = {
|
|
|
50
50
|
shop: Shop;
|
|
51
51
|
wallet_pass_usage?: any;
|
|
52
52
|
balance_par_value: string;
|
|
53
|
+
custom_schedule_snapshot?: {
|
|
54
|
+
data: any[];
|
|
55
|
+
};
|
|
56
|
+
metadata?: {
|
|
57
|
+
validity_type: string;
|
|
58
|
+
};
|
|
53
59
|
};
|
|
54
60
|
declare type Shop = {
|
|
55
61
|
id: number;
|
|
@@ -11,7 +11,7 @@ var voucherTime = function voucherTime(data) {
|
|
|
11
11
|
export var formatMachineCodeServer2CardList = function formatMachineCodeServer2CardList(data) {
|
|
12
12
|
var selectId = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
13
13
|
return (data || []).map(function (item) {
|
|
14
|
-
var _item$shop, _item$unified_message, _item$product;
|
|
14
|
+
var _item$shop, _item$unified_message, _item$product, _item$custom_schedule, _item$metadata;
|
|
15
15
|
return {
|
|
16
16
|
id: item.id,
|
|
17
17
|
name: item.product_name,
|
|
@@ -30,7 +30,9 @@ export var formatMachineCodeServer2CardList = function formatMachineCodeServer2C
|
|
|
30
30
|
cover: (_item$product = item.product) === null || _item$product === void 0 ? void 0 : _item$product.cover,
|
|
31
31
|
qrCode: item.code,
|
|
32
32
|
validDate: voucherTime(item),
|
|
33
|
-
originData: item
|
|
33
|
+
originData: item,
|
|
34
|
+
scheduleList: ((_item$custom_schedule = item.custom_schedule_snapshot) === null || _item$custom_schedule === void 0 ? void 0 : _item$custom_schedule.data) || [],
|
|
35
|
+
validDateBySchedule: ((_item$metadata = item.metadata) === null || _item$metadata === void 0 ? void 0 : _item$metadata.validity_type) === 'custom_schedule_validity'
|
|
34
36
|
};
|
|
35
37
|
});
|
|
36
38
|
};
|
|
@@ -130,6 +130,8 @@ var PaymentReturnContent = function PaymentReturnContent(_ref) {
|
|
|
130
130
|
src: "".concat(prefix, "/payment-content.png"),
|
|
131
131
|
alt: "success"
|
|
132
132
|
})), /*#__PURE__*/React.createElement("div", {
|
|
133
|
+
className: "payment-return-content-text"
|
|
134
|
+
}, locales.getText('tocPay.text.weAreVerifyingYourPaymentPleaseCheckYourOrderStatusLater')), /*#__PURE__*/React.createElement("div", {
|
|
133
135
|
className: "payment-return-content-buttons"
|
|
134
136
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
135
137
|
block: true,
|
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
.payment-return-content {
|
|
2
2
|
padding: 100px 46px 0;
|
|
3
|
+
max-height: 100vh;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
gap: 24px;
|
|
3
7
|
|
|
4
8
|
.payment-return-content-img {
|
|
5
9
|
width: 100%;
|
|
6
|
-
margin-bottom: 60px;
|
|
7
10
|
min-height: 270px;
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
align-items: center;
|
|
8
14
|
img {
|
|
9
|
-
width: 100%;
|
|
15
|
+
max-width: 100%;
|
|
10
16
|
height: 100%;
|
|
17
|
+
max-height: 480px;
|
|
11
18
|
}
|
|
12
19
|
}
|
|
13
|
-
|
|
20
|
+
.payment-return-content-text {
|
|
21
|
+
color: var(--Gray-600, #475467);
|
|
22
|
+
text-align: center;
|
|
23
|
+
}
|
|
14
24
|
.payment-return-content-buttons {
|
|
15
25
|
display: flex;
|
|
16
26
|
flex-direction: column;
|
|
@@ -31,6 +31,7 @@ import { request } from "../../../utils";
|
|
|
31
31
|
import { removePayGroupFromStorage } from "./payGroup";
|
|
32
32
|
import localeTexts from "./locales";
|
|
33
33
|
import { getIsWalletPassAndTripartitePayment } from "./utils";
|
|
34
|
+
import { saleChannelMap } from "./status";
|
|
34
35
|
import "./index.less";
|
|
35
36
|
/**
|
|
36
37
|
* @title: C端支付
|
|
@@ -142,11 +143,12 @@ var ToCPay = function ToCPay(props, ref) {
|
|
|
142
143
|
while (1) switch (_context.prev = _context.next) {
|
|
143
144
|
case 0:
|
|
144
145
|
sale_channel = (initProps === null || initProps === void 0 || (_initProps$order = initProps.order) === null || _initProps$order === void 0 ? void 0 : _initProps$order.sale_channel) || 'online-store';
|
|
145
|
-
|
|
146
|
+
sale_channel = saleChannelMap[sale_channel] || sale_channel;
|
|
147
|
+
_context.next = 4;
|
|
146
148
|
return getWalletNameAndPopupStatus({
|
|
147
149
|
setting_type: "".concat(sale_channel, "-wallet-setting")
|
|
148
150
|
});
|
|
149
|
-
case
|
|
151
|
+
case 4:
|
|
150
152
|
_yield$getWalletNameA = _context.sent;
|
|
151
153
|
wallet = _yield$getWalletNameA.wallet;
|
|
152
154
|
wallet_setting = _yield$getWalletNameA.wallet_setting;
|
|
@@ -164,7 +166,7 @@ var ToCPay = function ToCPay(props, ref) {
|
|
|
164
166
|
type: 'setWalletSetting',
|
|
165
167
|
payload: setting
|
|
166
168
|
});
|
|
167
|
-
case
|
|
169
|
+
case 10:
|
|
168
170
|
case "end":
|
|
169
171
|
return _context.stop();
|
|
170
172
|
}
|
|
@@ -509,7 +511,8 @@ var ToCPay = function ToCPay(props, ref) {
|
|
|
509
511
|
fn: 'paymentInit'
|
|
510
512
|
}
|
|
511
513
|
});
|
|
512
|
-
|
|
514
|
+
throw _context5.t0;
|
|
515
|
+
case 19:
|
|
513
516
|
case "end":
|
|
514
517
|
return _context5.stop();
|
|
515
518
|
}
|