@pisell/private-materials 6.7.7 → 6.7.9
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 +17 -8
- 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 +1 -2
- package/es/components/booking/addons/index.js +17 -25
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/components/footer/amount.d.ts +0 -1
- package/es/components/booking/components/footer/amount.js +84 -548
- package/es/components/booking/components/footer/index.js +56 -77
- package/es/components/booking/components/footer/utils.d.ts +0 -19
- package/es/components/booking/components/footer/utils.js +73 -194
- package/es/components/booking/components/voucher/index.js +7 -23
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/hooks/useQuotation.js +1 -4
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service2/utils.js +0 -1
- package/es/components/booking/info2/cartClientCard/index.js +6 -30
- package/es/components/booking/info2/index.js +1 -1
- package/es/components/booking/info2/service/addService/index.js +3 -2
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/editNormalService/index.js +0 -6
- package/es/components/booking/info2/service/editService/index.js +6 -16
- package/es/components/booking/info2/service/editService/utils.d.ts +0 -15
- package/es/components/booking/info2/service/editService/utils.js +0 -66
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/booking/utils.d.ts +0 -1
- package/es/components/booking/utils.js +3 -16
- package/es/components/checkout/PaymentModal.d.ts +5 -13
- package/es/components/checkout/PaymentModal.js +252 -304
- package/es/components/checkout/PaymentPlugin.d.ts +3 -0
- package/es/components/{systemSettings/registry/components/GroupModal.js → checkout/PaymentPlugin.js} +171 -132
- package/es/components/checkout/components/AdditionalModule/index.d.ts +1 -3
- package/es/components/checkout/components/AdditionalModule/index.js +12 -52
- package/es/components/checkout/components/AmountSummary/index.js +76 -9
- package/es/components/checkout/components/AmountSummary/index.less +6 -5
- package/es/components/checkout/components/CashPaymentModule/index.d.ts +1 -3
- package/es/components/checkout/components/CashPaymentModule/index.js +2 -5
- package/es/components/checkout/components/PaymentDetailModal/index.js +2 -2
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +0 -2
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +1 -6
- package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +0 -1
- package/es/components/checkout/components/PaymentOptionsModule/index.js +1 -2
- package/es/components/checkout/components/PaymentOptionsModule/index.less +0 -4
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -4
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +8 -31
- package/es/components/checkout/components/PaymentResultToast/index.js +6 -6
- package/es/components/checkout/components/PaymentResultToast/index.less +33 -94
- package/es/components/checkout/components/SearchAndClientModule/index.js +40 -39
- package/es/components/checkout/hooks/useWalletPass.js +1 -1
- package/es/components/checkout/index.less +1 -1
- package/es/components/checkout/locales.d.ts +0 -6
- package/es/components/checkout/locales.js +0 -6
- package/es/components/checkout/utils/PaymentResultToastUtils.d.ts +1 -0
- package/es/components/checkout/utils/PaymentResultToastUtils.js +1 -11
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +6 -14
- package/es/components/eftposPay/payo/config.js +32 -70
- package/es/components/eftposPay/store/index.d.ts +4 -4
- package/es/components/eftposPay/tyro/index.js +0 -12
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/index.d.ts +1 -2
- package/es/components/index.js +1 -2
- package/es/components/list/List.js +40 -56
- package/es/components/list/hooks/useListState.d.ts +3 -5
- package/es/components/list/hooks/useListState.js +2 -17
- package/es/components/list/styles/header.less +3 -3
- package/es/components/list/utils/index.d.ts +1 -13
- package/es/components/list/utils/index.js +1 -43
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +12 -14
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -6
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -4
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +0 -2
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +3 -13
- package/es/components/pay/toC/index.js +4 -7
- package/es/components/pay/toC/locales.d.ts +0 -3
- package/es/components/pay/toC/locales.js +3 -6
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/pay/toC/status.d.ts +0 -1
- package/es/components/pay/toC/status.js +0 -3
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/schedules/utils.d.ts +1 -1
- package/es/components/subTotal/index.js +1 -1
- package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +0 -1
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +2 -33
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.js +36 -139
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +86 -2
- package/es/components/ticketBooking/components/menuBar/index.js +12 -109
- package/es/components/ticketBooking/components/ticketBooking/index.js +2 -2
- package/es/components/ticketBooking/components/timeBar/index.js +7 -112
- package/es/components/ticketBooking/components/timeBar/index.less +0 -59
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +18 -29
- package/es/components/ticketBooking/locales.d.ts +0 -6
- package/es/components/ticketBooking/locales.js +3 -9
- package/es/components/ticketBooking/utils/index.d.ts +0 -3
- package/es/components/ticketBooking/utils/index.js +13 -36
- package/es/components/wallet/Detail/index.js +2 -34
- package/es/components/wallet/Detail/index.less +0 -11
- package/es/components/wallet/Detail/locales.d.ts +0 -6
- package/es/components/wallet/Detail/locales.js +2 -14
- package/es/components/wallet/Detail/model.d.ts +13 -1
- package/es/components/wallet/DiscountCard/model.d.ts +14 -1
- package/es/components/wallet/PointCard/model.d.ts +13 -1
- package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/es/components/wallet/Voucher/index.js +10 -11
- package/es/components/wallet/Voucher/model.d.ts +13 -1
- package/es/components/wallet/components/WalletCard.js +1 -5
- package/es/components/wallet/index.js +2 -4
- package/es/components/wallet/model.d.ts +9 -1
- package/es/components/wallet/serve.d.ts +0 -7
- package/es/hooks/usePaymentLogger.d.ts +0 -1
- package/es/index.d.ts +0 -4
- package/es/index.js +1 -5
- package/es/plus/clientCard/locales.js +3 -3
- package/es/plus/clinetSearch/index.js +30 -28
- package/es/plus/clinetSearch/locales.d.ts +0 -3
- package/es/plus/clinetSearch/locales.js +4 -7
- package/es/plus/clinetSearch/types.d.ts +0 -12
- package/es/plus/walletPassGallery/components/footerButton/index.js +4 -2
- package/es/plus/walletPassGallery/components/footerButton/index.less +59 -14
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +0 -1
- package/es/plus/walletPassGallery/components/passDetail/index.js +31 -84
- package/es/plus/walletPassGallery/components/passDetail/index.less +0 -4
- package/es/plus/walletPassGallery/components/recharge/index.js +8 -19
- package/es/plus/walletPassGallery/index.js +3 -7
- package/es/plus/walletPassGallery/serve.d.ts +0 -3
- package/es/plus/walletPassGallery/serve.js +2 -4
- package/es/pro/Login2.0/index.less +8 -15
- 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 +36 -45
- package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -1
- package/es/pro/priceKeyboard/components/cashKeyboard/index.js +2 -4
- package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -1
- package/es/pro/priceKeyboard/components/discountKeyboard/index.js +1 -10
- package/es/pro/priceKeyboard/components/discountKeyboard/index.less +0 -14
- package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -1
- package/es/pro/priceKeyboard/components/shortcuts/index.js +2 -5
- package/es/pro/priceKeyboard/components/shortcuts/index.less +0 -4
- package/es/utils/index.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Voucher/index.js +1 -2
- package/lib/components/booking/addons/index.js +7 -15
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/components/footer/amount.d.ts +0 -1
- package/lib/components/booking/components/footer/amount.js +41 -293
- package/lib/components/booking/components/footer/index.js +11 -30
- package/lib/components/booking/components/footer/utils.d.ts +0 -19
- package/lib/components/booking/components/footer/utils.js +41 -138
- package/lib/components/booking/components/voucher/index.js +9 -25
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/hooks/useQuotation.js +1 -2
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service2/utils.js +0 -1
- package/lib/components/booking/info2/cartClientCard/index.js +5 -25
- package/lib/components/booking/info2/index.js +2 -7
- package/lib/components/booking/info2/service/addService/index.js +2 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/editNormalService/index.js +0 -6
- package/lib/components/booking/info2/service/editService/index.js +3 -12
- package/lib/components/booking/info2/service/editService/utils.d.ts +0 -15
- package/lib/components/booking/info2/service/editService/utils.js +3 -40
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/booking/utils.d.ts +0 -1
- package/lib/components/booking/utils.js +0 -11
- package/lib/components/checkout/PaymentModal.d.ts +5 -13
- package/lib/components/checkout/PaymentModal.js +147 -190
- package/lib/components/checkout/PaymentPlugin.d.ts +3 -0
- package/lib/components/checkout/PaymentPlugin.js +181 -0
- package/lib/components/checkout/components/AdditionalModule/index.d.ts +1 -3
- package/lib/components/checkout/components/AdditionalModule/index.js +11 -52
- package/lib/components/checkout/components/AmountSummary/index.js +46 -5
- package/lib/components/checkout/components/AmountSummary/index.less +6 -5
- package/lib/components/checkout/components/CashPaymentModule/index.d.ts +1 -3
- package/lib/components/checkout/components/CashPaymentModule/index.js +2 -5
- package/lib/components/checkout/components/PaymentDetailModal/index.js +2 -2
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +0 -2
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +1 -5
- package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +0 -1
- package/lib/components/checkout/components/PaymentOptionsModule/index.js +0 -6
- package/lib/components/checkout/components/PaymentOptionsModule/index.less +0 -4
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -4
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +5 -23
- package/lib/components/checkout/components/PaymentResultToast/index.js +4 -4
- package/lib/components/checkout/components/PaymentResultToast/index.less +33 -94
- package/lib/components/checkout/components/SearchAndClientModule/index.js +3 -29
- package/lib/components/checkout/hooks/useWalletPass.js +1 -1
- package/lib/components/checkout/index.less +1 -1
- package/lib/components/checkout/locales.d.ts +0 -6
- package/lib/components/checkout/locales.js +0 -6
- package/lib/components/checkout/utils/PaymentResultToastUtils.d.ts +1 -0
- package/lib/components/checkout/utils/PaymentResultToastUtils.js +1 -11
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +6 -12
- package/lib/components/eftposPay/payo/config.js +73 -98
- package/lib/components/eftposPay/store/index.d.ts +4 -4
- package/lib/components/eftposPay/tyro/index.js +0 -12
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/index.d.ts +1 -2
- package/lib/components/index.js +0 -3
- package/lib/components/list/List.js +16 -34
- package/lib/components/list/hooks/useListState.d.ts +3 -5
- package/lib/components/list/hooks/useListState.js +1 -14
- package/lib/components/list/styles/header.less +3 -3
- package/lib/components/list/utils/index.d.ts +1 -13
- package/lib/components/list/utils/index.js +0 -27
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +12 -14
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +0 -6
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -4
- package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +3 -13
- package/lib/components/pay/toC/index.js +1 -4
- package/lib/components/pay/toC/locales.d.ts +0 -3
- package/lib/components/pay/toC/locales.js +3 -6
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/pay/toC/status.d.ts +0 -1
- package/lib/components/pay/toC/status.js +0 -5
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/schedules/utils.d.ts +1 -1
- package/lib/components/subTotal/index.js +1 -1
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +0 -1
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.d.ts +2 -33
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.js +24 -84
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -0
- package/lib/components/ticketBooking/components/menuBar/index.js +6 -42
- package/lib/components/ticketBooking/components/ticketBooking/index.js +2 -2
- package/lib/components/ticketBooking/components/timeBar/index.js +4 -105
- package/lib/components/ticketBooking/components/timeBar/index.less +0 -59
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +13 -17
- package/lib/components/ticketBooking/locales.d.ts +0 -6
- package/lib/components/ticketBooking/locales.js +3 -9
- package/lib/components/ticketBooking/utils/index.d.ts +0 -3
- package/lib/components/ticketBooking/utils/index.js +6 -20
- package/lib/components/wallet/Detail/index.js +3 -31
- package/lib/components/wallet/Detail/index.less +0 -11
- package/lib/components/wallet/Detail/locales.d.ts +0 -6
- package/lib/components/wallet/Detail/locales.js +2 -14
- package/lib/components/wallet/Detail/model.d.ts +13 -1
- package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
- package/lib/components/wallet/PointCard/model.d.ts +13 -1
- package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/lib/components/wallet/Voucher/index.js +8 -8
- package/lib/components/wallet/Voucher/model.d.ts +13 -1
- package/lib/components/wallet/components/WalletCard.js +0 -4
- package/lib/components/wallet/index.js +2 -2
- package/lib/components/wallet/model.d.ts +9 -1
- package/lib/components/wallet/serve.d.ts +0 -7
- package/lib/hooks/usePaymentLogger.d.ts +0 -1
- package/lib/index.d.ts +0 -4
- package/lib/index.js +0 -12
- package/lib/plus/clientCard/locales.js +3 -3
- package/lib/plus/clinetSearch/index.js +8 -17
- package/lib/plus/clinetSearch/locales.d.ts +0 -3
- package/lib/plus/clinetSearch/locales.js +4 -7
- package/lib/plus/clinetSearch/types.d.ts +0 -12
- package/lib/plus/walletPassGallery/components/footerButton/index.js +2 -2
- package/lib/plus/walletPassGallery/components/footerButton/index.less +59 -14
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +0 -1
- package/lib/plus/walletPassGallery/components/passDetail/index.js +15 -54
- package/lib/plus/walletPassGallery/components/passDetail/index.less +0 -4
- package/lib/plus/walletPassGallery/components/recharge/index.js +1 -7
- package/lib/plus/walletPassGallery/index.js +3 -7
- package/lib/plus/walletPassGallery/serve.d.ts +0 -3
- package/lib/plus/walletPassGallery/serve.js +2 -3
- package/lib/pro/Login2.0/index.less +8 -15
- 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 +43 -42
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +0 -1
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.js +2 -3
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +0 -1
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +1 -8
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.less +0 -14
- package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +0 -1
- package/lib/pro/priceKeyboard/components/shortcuts/index.js +2 -3
- package/lib/pro/priceKeyboard/components/shortcuts/index.less +0 -4
- package/lib/utils/index.d.ts +1 -1
- package/package.json +4 -4
- package/es/components/checkout/plugin.d.ts +0 -2
- package/es/components/checkout/plugin.js +0 -303
- package/es/components/eftposPay/payo/payment.d.ts +0 -66
- package/es/components/eftposPay/payo/payment.js +0 -579
- package/es/components/eftposPay/utils/log/index.d.ts +0 -110
- package/es/components/eftposPay/utils/log/index.js +0 -371
- package/es/components/systemSettings/registry/components/GroupModal.d.ts +0 -4
- package/es/components/systemSettings/registry/components/ItemModal.d.ts +0 -4
- package/es/components/systemSettings/registry/components/ItemModal.js +0 -547
- package/es/components/systemSettings/registry/components/ModuleList.d.ts +0 -4
- package/es/components/systemSettings/registry/components/ModuleList.js +0 -54
- package/es/components/systemSettings/registry/components/SectionList.d.ts +0 -4
- package/es/components/systemSettings/registry/components/SectionList.js +0 -174
- package/es/components/systemSettings/registry/components/SettingsTable.d.ts +0 -4
- package/es/components/systemSettings/registry/components/SettingsTable.js +0 -765
- package/es/components/systemSettings/registry/components/index.d.ts +0 -4
- package/es/components/systemSettings/registry/components/index.js +0 -4
- package/es/components/systemSettings/registry/index.d.ts +0 -5
- package/es/components/systemSettings/registry/index.js +0 -1059
- package/es/components/systemSettings/registry/index.less +0 -410
- package/es/components/systemSettings/registry/locales.d.ts +0 -272
- package/es/components/systemSettings/registry/locales.js +0 -300
- package/es/components/systemSettings/registry/services.d.ts +0 -77
- package/es/components/systemSettings/registry/services.js +0 -472
- package/es/components/systemSettings/registry/types.d.ts +0 -126
- package/es/components/systemSettings/registry/types.js +0 -1
- package/es/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
- package/es/components/systemSettings/registry/utils/typeValidation.js +0 -284
- package/es/components/systemSettings/registry/utils/validators.d.ts +0 -8
- package/es/components/systemSettings/registry/utils/validators.js +0 -44
- package/es/components/wallet/utils.d.ts +0 -48
- package/es/components/wallet/utils.js +0 -342
- package/lib/components/checkout/plugin.d.ts +0 -2
- package/lib/components/checkout/plugin.js +0 -263
- package/lib/components/eftposPay/payo/payment.d.ts +0 -66
- package/lib/components/eftposPay/payo/payment.js +0 -357
- package/lib/components/eftposPay/utils/log/index.d.ts +0 -110
- package/lib/components/eftposPay/utils/log/index.js +0 -294
- package/lib/components/systemSettings/registry/components/GroupModal.d.ts +0 -4
- package/lib/components/systemSettings/registry/components/GroupModal.js +0 -177
- package/lib/components/systemSettings/registry/components/ItemModal.d.ts +0 -4
- package/lib/components/systemSettings/registry/components/ItemModal.js +0 -508
- package/lib/components/systemSettings/registry/components/ModuleList.d.ts +0 -4
- package/lib/components/systemSettings/registry/components/ModuleList.js +0 -71
- package/lib/components/systemSettings/registry/components/SectionList.d.ts +0 -4
- package/lib/components/systemSettings/registry/components/SectionList.js +0 -181
- package/lib/components/systemSettings/registry/components/SettingsTable.d.ts +0 -4
- package/lib/components/systemSettings/registry/components/SettingsTable.js +0 -575
- package/lib/components/systemSettings/registry/components/index.d.ts +0 -4
- package/lib/components/systemSettings/registry/components/index.js +0 -48
- package/lib/components/systemSettings/registry/index.d.ts +0 -5
- package/lib/components/systemSettings/registry/index.js +0 -529
- package/lib/components/systemSettings/registry/index.less +0 -410
- package/lib/components/systemSettings/registry/locales.d.ts +0 -272
- package/lib/components/systemSettings/registry/locales.js +0 -324
- package/lib/components/systemSettings/registry/services.d.ts +0 -77
- package/lib/components/systemSettings/registry/services.js +0 -290
- package/lib/components/systemSettings/registry/types.d.ts +0 -126
- package/lib/components/systemSettings/registry/types.js +0 -17
- package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +0 -16
- package/lib/components/systemSettings/registry/utils/typeValidation.js +0 -228
- package/lib/components/systemSettings/registry/utils/validators.d.ts +0 -8
- package/lib/components/systemSettings/registry/utils/validators.js +0 -54
- package/lib/components/wallet/utils.d.ts +0 -48
- package/lib/components/wallet/utils.js +0 -287
- package/lowcode/payment-modal/meta.ts +0 -135
- package/lowcode/settings-registry/meta.ts +0 -29
- package/lowcode/wallet-pass-detail/meta.ts +0 -89
|
@@ -32,10 +32,6 @@ var Recharge = function Recharge(_ref) {
|
|
|
32
32
|
storage = _ref2.storage;
|
|
33
33
|
var dvaStore = (_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 || (_context$appHelper2 = _context$appHelper2.utils) === null || _context$appHelper2 === void 0 || (_context$appHelper2$g = _context$appHelper2.getStore) === null || _context$appHelper2$g === void 0 || (_context$appHelper2$g = _context$appHelper2$g.call(_context$appHelper2)) === null || _context$appHelper2$g === void 0 ? void 0 : _context$appHelper2$g.getState();
|
|
34
34
|
var shop = (dvaStore === null || dvaStore === void 0 || (_dvaStore$core = dvaStore.core) === null || _dvaStore$core === void 0 || (_dvaStore$core = _dvaStore$core.core) === null || _dvaStore$core === void 0 ? void 0 : _dvaStore$core.shop) || {};
|
|
35
|
-
var _useState3 = useState(false),
|
|
36
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
37
|
-
loading = _useState4[0],
|
|
38
|
-
setLoading = _useState4[1];
|
|
39
35
|
useEffect(function () {
|
|
40
36
|
if (detailData) {
|
|
41
37
|
setChargeItem(((detailData === null || detailData === void 0 ? void 0 : detailData.gift_option) || [])[0]);
|
|
@@ -48,7 +44,6 @@ var Recharge = function Recharge(_ref) {
|
|
|
48
44
|
while (1) switch (_context.prev = _context.next) {
|
|
49
45
|
case 0:
|
|
50
46
|
_context.prev = 0;
|
|
51
|
-
setLoading(true);
|
|
52
47
|
params = {
|
|
53
48
|
voucher_id: (detailData === null || detailData === void 0 ? void 0 : detailData.id) || '',
|
|
54
49
|
product_id: (detailData === null || detailData === void 0 ? void 0 : detailData.product_id) || '',
|
|
@@ -62,9 +57,9 @@ var Recharge = function Recharge(_ref) {
|
|
|
62
57
|
currency_format: (shop === null || shop === void 0 ? void 0 : shop.currency_format) || ''
|
|
63
58
|
}
|
|
64
59
|
};
|
|
65
|
-
_context.next =
|
|
60
|
+
_context.next = 4;
|
|
66
61
|
return orderRechargeProduct(params);
|
|
67
|
-
case
|
|
62
|
+
case 4:
|
|
68
63
|
data = _context.sent;
|
|
69
64
|
if (data !== null && data !== void 0 && data.order_id) {
|
|
70
65
|
storage === null || storage === void 0 || (_storage$set = storage.set) === null || _storage$set === void 0 || _storage$set.call(storage, 'orderId', data.order_id);
|
|
@@ -74,28 +69,23 @@ var Recharge = function Recharge(_ref) {
|
|
|
74
69
|
callback: function callback() {}
|
|
75
70
|
});
|
|
76
71
|
}
|
|
77
|
-
_context.next =
|
|
72
|
+
_context.next = 11;
|
|
78
73
|
break;
|
|
79
|
-
case
|
|
80
|
-
_context.prev =
|
|
74
|
+
case 8:
|
|
75
|
+
_context.prev = 8;
|
|
81
76
|
_context.t0 = _context["catch"](0);
|
|
82
77
|
console.error(locales.getText('wallet-pass-gallery.log.rechargeOrderFailed'), _context.t0);
|
|
83
|
-
case
|
|
84
|
-
_context.prev = 12;
|
|
85
|
-
setLoading(false);
|
|
86
|
-
return _context.finish(12);
|
|
87
|
-
case 15:
|
|
78
|
+
case 11:
|
|
88
79
|
case "end":
|
|
89
80
|
return _context.stop();
|
|
90
81
|
}
|
|
91
|
-
}, _callee, null, [[0,
|
|
82
|
+
}, _callee, null, [[0, 8]]);
|
|
92
83
|
}));
|
|
93
84
|
return function handleRecharge() {
|
|
94
85
|
return _ref3.apply(this, arguments);
|
|
95
86
|
};
|
|
96
87
|
}();
|
|
97
88
|
return /*#__PURE__*/React.createElement(Drawer, {
|
|
98
|
-
destroyOnClose: true,
|
|
99
89
|
title: locales.getText('wallet-pass-gallery.rechargeOptions'),
|
|
100
90
|
open: open,
|
|
101
91
|
zIndex: 999,
|
|
@@ -107,8 +97,7 @@ var Recharge = function Recharge(_ref) {
|
|
|
107
97
|
block: true,
|
|
108
98
|
size: "large",
|
|
109
99
|
onClick: handleRecharge,
|
|
110
|
-
disabled: !(chargeItem !== null && chargeItem !== void 0 && chargeItem.id)
|
|
111
|
-
loading: loading
|
|
100
|
+
disabled: !(chargeItem !== null && chargeItem !== void 0 && chargeItem.id)
|
|
112
101
|
}, locales.getText('wallet-pass-gallery.recharge'))
|
|
113
102
|
}, /*#__PURE__*/React.createElement("div", {
|
|
114
103
|
className: "pisell-wallet-pass-gallery_recharge"
|
|
@@ -82,8 +82,7 @@ var WalletPassGallery = function WalletPassGallery(props) {
|
|
|
82
82
|
num: 20,
|
|
83
83
|
skip: (d === null || d === void 0 ? void 0 : d.nextId) || 1,
|
|
84
84
|
tags: TAGS,
|
|
85
|
-
filter_wallet_id: walletId || undefined
|
|
86
|
-
"with": ['customScheduleSnapshot']
|
|
85
|
+
filter_wallet_id: walletId || undefined
|
|
87
86
|
});
|
|
88
87
|
case 3:
|
|
89
88
|
res = _context.sent;
|
|
@@ -122,8 +121,7 @@ var WalletPassGallery = function WalletPassGallery(props) {
|
|
|
122
121
|
num: 20,
|
|
123
122
|
skip: (d === null || d === void 0 ? void 0 : d.nextId) || 1,
|
|
124
123
|
tags: TAGS,
|
|
125
|
-
filter_wallet_id: walletId || undefined
|
|
126
|
-
"with": ['customScheduleSnapshot']
|
|
124
|
+
filter_wallet_id: walletId || undefined
|
|
127
125
|
});
|
|
128
126
|
case 3:
|
|
129
127
|
res = _context2.sent;
|
|
@@ -554,9 +552,7 @@ var WalletPassGallery = function WalletPassGallery(props) {
|
|
|
554
552
|
},
|
|
555
553
|
block: true
|
|
556
554
|
}, locales.getText('wallet-pass-gallery.button.add'))), /*#__PURE__*/React.createElement(PisellModal, {
|
|
557
|
-
|
|
558
|
-
destroyOnClose: true,
|
|
559
|
-
platform: platform,
|
|
555
|
+
platform: 'h5',
|
|
560
556
|
visible: !!_currentItem,
|
|
561
557
|
onCancel: function onCancel() {
|
|
562
558
|
return setCurrentItemId('');
|
|
@@ -17,7 +17,6 @@ export interface IWalletListParmsProps {
|
|
|
17
17
|
skip?: number;
|
|
18
18
|
filter_wallet_id?: string;
|
|
19
19
|
available: 0 | 1;
|
|
20
|
-
with?: string[];
|
|
21
20
|
}
|
|
22
21
|
/**
|
|
23
22
|
* 钱包列表项属性接口
|
|
@@ -172,8 +171,6 @@ export declare const getAssetList: (params: IAssetListProps) => Promise<{
|
|
|
172
171
|
*/
|
|
173
172
|
export declare const getDetailApi: (params: {
|
|
174
173
|
id: string;
|
|
175
|
-
order_behavior_count_customer_id: string;
|
|
176
|
-
apiPrefix: string;
|
|
177
174
|
}) => Promise<IDetailResponse>;
|
|
178
175
|
/**
|
|
179
176
|
* 详情响应数据结构,供组件消费
|
|
@@ -214,12 +214,10 @@ export var getDetailApi = /*#__PURE__*/function () {
|
|
|
214
214
|
while (1) switch (_context6.prev = _context6.next) {
|
|
215
215
|
case 0:
|
|
216
216
|
_context6.next = 2;
|
|
217
|
-
return request.getRequest().get("
|
|
217
|
+
return request.getRequest().get("/h5/machinecode/lowcode/detail/".concat(params.id), {
|
|
218
218
|
order_behavior_count: 1,
|
|
219
219
|
// 订单行为次数
|
|
220
|
-
order_behavior_count_customer: 1
|
|
221
|
-
// 客户订单行为次数
|
|
222
|
-
order_behavior_count_customer_id: params.apiPrefix === '/shop' ? params.order_behavior_count_customer_id : undefined
|
|
220
|
+
order_behavior_count_customer: 1 // 客户订单行为次数
|
|
223
221
|
});
|
|
224
222
|
case 2:
|
|
225
223
|
_yield$request$getReq6 = _context6.sent;
|
|
@@ -15,14 +15,6 @@
|
|
|
15
15
|
|
|
16
16
|
/* 默认底部内边距 */
|
|
17
17
|
padding-bottom: 24px;
|
|
18
|
-
|
|
19
|
-
// 加载状态优化
|
|
20
|
-
.pisell-lowcode-btn-loading-icon {
|
|
21
|
-
.anticon {
|
|
22
|
-
color: #ffffff !important;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
18
|
|
|
27
19
|
/* 在弹窗模式下不需要额外的底部内边距,因为使用 sticky 定位 */
|
|
28
20
|
.pisell-lowcode-modal-body & {
|
|
@@ -458,13 +450,6 @@
|
|
|
458
450
|
.login-lm-drawer-popover & {
|
|
459
451
|
padding-bottom: 100px;
|
|
460
452
|
}
|
|
461
|
-
// 加载状态优化
|
|
462
|
-
.pisell-lowcode-btn-loading-icon {
|
|
463
|
-
.anticon {
|
|
464
|
-
color: #ffffff !important;
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
|
|
468
453
|
}
|
|
469
454
|
|
|
470
455
|
// 错误提示样式优化
|
|
@@ -524,6 +509,14 @@
|
|
|
524
509
|
// }
|
|
525
510
|
// }
|
|
526
511
|
// }
|
|
512
|
+
|
|
513
|
+
// 加载状态优化
|
|
514
|
+
.pisell-lowcode-btn-loading-icon {
|
|
515
|
+
.anticon {
|
|
516
|
+
color: #ffffff !important;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
|
|
527
520
|
// 切换认证方式按钮
|
|
528
521
|
.login2-switch-button {
|
|
529
522
|
margin-top: 0;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
en: {
|
|
3
|
-
'pisell2.comprehensive-search.placeholder': 'WalletPass Code / Name / Mobile / Email
|
|
3
|
+
'pisell2.comprehensive-search.placeholder': 'WalletPass Code / Name / Mobile / Email',
|
|
4
4
|
'pisell2.text.search': 'Search'
|
|
5
5
|
},
|
|
6
6
|
'zh-CN': {
|
|
7
|
-
'pisell2.comprehensive-search.placeholder': '钱包码 / 姓名 / 电话 / 电子邮箱
|
|
7
|
+
'pisell2.comprehensive-search.placeholder': '钱包码 / 姓名 / 电话 / 电子邮箱',
|
|
8
8
|
'pisell2.text.search': '搜索'
|
|
9
9
|
},
|
|
10
10
|
'zh-HK': {
|
|
11
|
-
'pisell2.comprehensive-search.placeholder': '錢包碼 / 姓名 / 電話 / 電子郵箱
|
|
11
|
+
'pisell2.comprehensive-search.placeholder': '錢包碼 / 姓名 / 電話 / 電子郵箱',
|
|
12
12
|
'pisell2.text.search': '搜索'
|
|
13
13
|
}
|
|
14
14
|
};
|
|
@@ -22,6 +22,7 @@ import { useControllableValue } from 'ahooks';
|
|
|
22
22
|
import { merge, omit } from 'lodash';
|
|
23
23
|
//@ts-ignore
|
|
24
24
|
import { locales } from '@pisell/utils';
|
|
25
|
+
import { VirtualInput } from '@pisell/materials';
|
|
25
26
|
import Shortcuts from "../shortcuts";
|
|
26
27
|
import CashKeyboardSimple from "./CashKeyboardSimple";
|
|
27
28
|
import { setKeyboardTheme } from "../../utils";
|
|
@@ -29,7 +30,6 @@ import "./index.less";
|
|
|
29
30
|
import Decimal from 'decimal.js';
|
|
30
31
|
import { AutoResizeText } from '@pisell/materials';
|
|
31
32
|
import { formatAmountWithOptions } from '@pisell/utils';
|
|
32
|
-
import { Iconfont } from '@pisell/materials';
|
|
33
33
|
var CashKeyboardIntact = function CashKeyboardIntact(props) {
|
|
34
34
|
var _mergedDisplayField$b, _mergedDisplayField$c, _mergedDisplayField$c2;
|
|
35
35
|
var amountSymbol = props.amountSymbol,
|
|
@@ -46,8 +46,7 @@ var CashKeyboardIntact = function CashKeyboardIntact(props) {
|
|
|
46
46
|
doneText = props.doneText,
|
|
47
47
|
resetText = props.resetText,
|
|
48
48
|
disabled = props.disabled,
|
|
49
|
-
hiddenChangeDue = props.hiddenChangeDue
|
|
50
|
-
shortcutsSize = props.shortcutsSize;
|
|
49
|
+
hiddenChangeDue = props.hiddenChangeDue;
|
|
51
50
|
var _useControllableValue = useControllableValue(props),
|
|
52
51
|
_useControllableValue2 = _slicedToArray(_useControllableValue, 2),
|
|
53
52
|
internalValue = _useControllableValue2[0],
|
|
@@ -70,7 +69,7 @@ var CashKeyboardIntact = function CashKeyboardIntact(props) {
|
|
|
70
69
|
setKeyboardTheme(selectType);
|
|
71
70
|
}, [selectType]);
|
|
72
71
|
|
|
73
|
-
// 变体2:末尾有三个默认预设项,总数不大于
|
|
72
|
+
// 变体2:末尾有三个默认预设项,总数不大于8个
|
|
74
73
|
var getDefaultPresets = function getDefaultPresets() {
|
|
75
74
|
var defaultEndPresets = [{
|
|
76
75
|
label: locales.getText('cash-keyboard-other'),
|
|
@@ -114,8 +113,7 @@ var CashKeyboardIntact = function CashKeyboardIntact(props) {
|
|
|
114
113
|
value: 'pay',
|
|
115
114
|
style: {
|
|
116
115
|
color: 'white',
|
|
117
|
-
backgroundColor: '#7F56DA'
|
|
118
|
-
gridColumn: 'span 2'
|
|
116
|
+
backgroundColor: '#7F56DA'
|
|
119
117
|
},
|
|
120
118
|
onClick: function onClick() {
|
|
121
119
|
var _props$onEnter;
|
|
@@ -124,8 +122,8 @@ var CashKeyboardIntact = function CashKeyboardIntact(props) {
|
|
|
124
122
|
}];
|
|
125
123
|
var userPresets = presets || [];
|
|
126
124
|
|
|
127
|
-
// 计算可用的用户预设数量(总数
|
|
128
|
-
var maxUserPresets =
|
|
125
|
+
// 计算可用的用户预设数量(总数8 - 默认3个 = 5个)
|
|
126
|
+
var maxUserPresets = 8 - defaultEndPresets.length;
|
|
129
127
|
var limitedUserPresets = userPresets.slice(0, maxUserPresets);
|
|
130
128
|
return [].concat(_toConsumableArray(limitedUserPresets), defaultEndPresets);
|
|
131
129
|
};
|
|
@@ -251,52 +249,46 @@ var CashKeyboardIntact = function CashKeyboardIntact(props) {
|
|
|
251
249
|
showCurrencySymbol: true
|
|
252
250
|
}))))), ((_mergedDisplayField$c = mergedDisplayField.cashReceived) === null || _mergedDisplayField$c === void 0 ? void 0 : _mergedDisplayField$c.visible) && /*#__PURE__*/React.createElement("div", {
|
|
253
251
|
style: _objectSpread(_objectSpread({}, getGridStyle(1)), {}, {
|
|
254
|
-
padding: '
|
|
252
|
+
padding: '6px 16px',
|
|
255
253
|
borderRadius: '8px',
|
|
256
254
|
backgroundColor: 'white',
|
|
257
|
-
boxShadow: '
|
|
255
|
+
boxShadow: '0px 1px 2px rgba(16, 24, 40, 0.06)',
|
|
258
256
|
overflow: 'hidden',
|
|
259
257
|
maxWidth: 188,
|
|
260
|
-
cursor: 'pointer'
|
|
261
|
-
border: '1px solid #7f56da',
|
|
262
|
-
borderBottom: '1px solid #7f56da'
|
|
258
|
+
cursor: 'pointer'
|
|
263
259
|
}),
|
|
264
260
|
onClick: function onClick() {
|
|
265
261
|
setIsShowModal(true);
|
|
266
262
|
}
|
|
267
|
-
}, /*#__PURE__*/React.createElement(
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
hideDecimalForWholeNumbers: false,
|
|
289
|
-
precision: 2,
|
|
290
|
-
showCurrencySymbol: true
|
|
291
|
-
}) : ''), /*#__PURE__*/React.createElement(Iconfont, {
|
|
292
|
-
type: "pisell2-edit-05",
|
|
263
|
+
}, /*#__PURE__*/React.createElement(VirtualInput, {
|
|
264
|
+
showCursor: false,
|
|
265
|
+
focused: true,
|
|
266
|
+
wrapperStyle: {
|
|
267
|
+
width: '100%'
|
|
268
|
+
},
|
|
269
|
+
topContent: /*#__PURE__*/React.createElement("div", {
|
|
270
|
+
style: {
|
|
271
|
+
fontSize: '14px',
|
|
272
|
+
color: '#667085'
|
|
273
|
+
}
|
|
274
|
+
}, mergedDisplayField.cashReceived.label),
|
|
275
|
+
value: internalValue ? formatAmountWithOptions(internalValue || '', amountSymbol, {
|
|
276
|
+
value: internalValue,
|
|
277
|
+
hideDecimalForWholeNumbers: false,
|
|
278
|
+
precision: 2,
|
|
279
|
+
showCurrencySymbol: true
|
|
280
|
+
}) : '',
|
|
281
|
+
height: 30,
|
|
282
|
+
fontSize: 20,
|
|
283
|
+
placeholder: placeholder,
|
|
293
284
|
style: {
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
285
|
+
fontSize: '24px',
|
|
286
|
+
fontWeight: 'bold',
|
|
287
|
+
border: 'none',
|
|
288
|
+
background: 'transparent',
|
|
289
|
+
width: '100%'
|
|
298
290
|
}
|
|
299
|
-
}))
|
|
291
|
+
})), ((_mergedDisplayField$c2 = mergedDisplayField.changeDue) === null || _mergedDisplayField$c2 === void 0 ? void 0 : _mergedDisplayField$c2.visible) && /*#__PURE__*/React.createElement("div", {
|
|
300
292
|
className: "pisell-cash-keyboard-intact-container-top",
|
|
301
293
|
style: _objectSpread(_objectSpread({}, getGridStyle(2)), {}, {
|
|
302
294
|
overflow: 'hidden'
|
|
@@ -322,7 +314,6 @@ var CashKeyboardIntact = function CashKeyboardIntact(props) {
|
|
|
322
314
|
hideDecimalForWholeNumbers: false,
|
|
323
315
|
precision: 2
|
|
324
316
|
})))))), /*#__PURE__*/React.createElement(Shortcuts, {
|
|
325
|
-
size: shortcutsSize || 'default',
|
|
326
317
|
presets: getDefaultPresets(),
|
|
327
318
|
onChange: setInternalValue,
|
|
328
319
|
disabled: disabled
|
|
@@ -7,7 +7,6 @@ export interface CashKeyboardProps extends CashKeyboardBaseProps {
|
|
|
7
7
|
[key: string]: any;
|
|
8
8
|
};
|
|
9
9
|
variant?: 'intact' | 'simple';
|
|
10
|
-
shortcutsSize?: 'default' | 'large';
|
|
11
10
|
}
|
|
12
11
|
declare const CashKeyboard: (props: CashKeyboardProps) => React.JSX.Element;
|
|
13
12
|
export default CashKeyboard;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["variant", "value", "onChange"
|
|
1
|
+
var _excluded = ["variant", "value", "onChange"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
3
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
4
4
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -26,7 +26,6 @@ var CashKeyboard = function CashKeyboard(props) {
|
|
|
26
26
|
variant = _props$variant === void 0 ? 'intact' : _props$variant,
|
|
27
27
|
value = props.value,
|
|
28
28
|
onChange = props.onChange,
|
|
29
|
-
shortcutsSize = props.shortcutsSize,
|
|
30
29
|
otherProps = _objectWithoutProperties(props, _excluded);
|
|
31
30
|
var _useControllableValue = useControllableValue(props),
|
|
32
31
|
_useControllableValue2 = _slicedToArray(_useControllableValue, 2),
|
|
@@ -37,8 +36,7 @@ var CashKeyboard = function CashKeyboard(props) {
|
|
|
37
36
|
amountSymbol: amountSymbol,
|
|
38
37
|
value: internalValue,
|
|
39
38
|
placeholder: "".concat(amountSymbol, "0"),
|
|
40
|
-
onChange: setInternalValue
|
|
41
|
-
shortcutsSize: shortcutsSize
|
|
39
|
+
onChange: setInternalValue
|
|
42
40
|
}));
|
|
43
41
|
}
|
|
44
42
|
return /*#__PURE__*/React.createElement(CashKeyboardSimple, _extends({}, otherProps, {
|
|
@@ -46,7 +46,6 @@ var DiscountKeyboardBase = function DiscountKeyboardBase(props) {
|
|
|
46
46
|
originalValue = props.originalValue,
|
|
47
47
|
_props$selectType = props.selectType,
|
|
48
48
|
selectType = _props$selectType === void 0 ? 'light' : _props$selectType,
|
|
49
|
-
tips = props.tips,
|
|
50
49
|
resetText = props.resetText,
|
|
51
50
|
doneText = props.doneText,
|
|
52
51
|
onEnter = props.onEnter,
|
|
@@ -310,17 +309,9 @@ var DiscountKeyboardBase = function DiscountKeyboardBase(props) {
|
|
|
310
309
|
value: payableAmount
|
|
311
310
|
})))));
|
|
312
311
|
};
|
|
313
|
-
var renderTipsContent = function renderTipsContent() {
|
|
314
|
-
if (tips) {
|
|
315
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
316
|
-
className: "pisell-pro-price-keyboard-tips"
|
|
317
|
-
}, tips);
|
|
318
|
-
}
|
|
319
|
-
return null;
|
|
320
|
-
};
|
|
321
312
|
return /*#__PURE__*/React.createElement("div", {
|
|
322
313
|
className: "pisell-pro-price-keyboard-discount"
|
|
323
|
-
},
|
|
314
|
+
}, /*#__PURE__*/React.createElement(Segmented, {
|
|
324
315
|
size: "large",
|
|
325
316
|
style: {
|
|
326
317
|
padding: 6
|
|
@@ -7,20 +7,6 @@
|
|
|
7
7
|
gap: 10px;
|
|
8
8
|
background-color: var(--pisell-pro-price-keyboard-bg-color, #ffffff);
|
|
9
9
|
|
|
10
|
-
.pisell-pro-price-keyboard-tips {
|
|
11
|
-
background-color: var(
|
|
12
|
-
--pisell-pro-price-keyboard-bg-color-gray-200,
|
|
13
|
-
#eaecf0
|
|
14
|
-
);
|
|
15
|
-
color: #ffffff;
|
|
16
|
-
font-size: 14px;
|
|
17
|
-
font-weight: 600;
|
|
18
|
-
height: 36px;
|
|
19
|
-
line-height: 36px;
|
|
20
|
-
text-align: center;
|
|
21
|
-
border-radius: 8px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
10
|
.ellipsis {
|
|
25
11
|
overflow: hidden;
|
|
26
12
|
text-overflow: ellipsis;
|
|
@@ -12,7 +12,6 @@ export interface ShortcutsProps {
|
|
|
12
12
|
presets?: ShortcutsItem[];
|
|
13
13
|
onChange?: (val: string) => void;
|
|
14
14
|
disabled?: boolean;
|
|
15
|
-
size?: 'default' | 'large';
|
|
16
15
|
}
|
|
17
16
|
declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<ShortcutsProps & React.RefAttributes<HTMLDivElement>>>;
|
|
18
17
|
export default _default;
|
|
@@ -4,9 +4,7 @@ import "./index.less";
|
|
|
4
4
|
var Shortcuts = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
5
5
|
var presets = props.presets,
|
|
6
6
|
onChange = props.onChange,
|
|
7
|
-
disabled = props.disabled
|
|
8
|
-
_props$size = props.size,
|
|
9
|
-
size = _props$size === void 0 ? 'default' : _props$size;
|
|
7
|
+
disabled = props.disabled;
|
|
10
8
|
var handleItemClick = function handleItemClick(item) {
|
|
11
9
|
if (disabled || item.disabled) {
|
|
12
10
|
return;
|
|
@@ -34,8 +32,7 @@ var Shortcuts = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
34
32
|
var itemProps = {
|
|
35
33
|
key: index,
|
|
36
34
|
className: classNames('pisell-virtual-keyboard-shortcut', {
|
|
37
|
-
disabled: item.disabled
|
|
38
|
-
large: size === 'large'
|
|
35
|
+
disabled: item.disabled
|
|
39
36
|
}),
|
|
40
37
|
style: item.style,
|
|
41
38
|
onClick: function onClick() {
|
package/es/utils/index.d.ts
CHANGED
|
@@ -18,6 +18,6 @@ declare let modal: Omit<ModalStaticFunctions, 'warn'>;
|
|
|
18
18
|
export declare const setModal: (m: Omit<ModalStaticFunctions, 'warn'>) => void;
|
|
19
19
|
export declare const saveConfirm: () => Promise<{
|
|
20
20
|
destroy: () => void;
|
|
21
|
-
update: (configUpdate: import("antd
|
|
21
|
+
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
22
22
|
}>;
|
|
23
23
|
export { modal };
|
|
@@ -96,7 +96,7 @@ var VoucherCard = (props) => {
|
|
|
96
96
|
return {
|
|
97
97
|
_id: item._id,
|
|
98
98
|
quantity: item.num,
|
|
99
|
-
bundle: item.
|
|
99
|
+
bundle: item._bundleOrigin,
|
|
100
100
|
options: item._optionsOrigin,
|
|
101
101
|
product: {
|
|
102
102
|
...item._productOrigin
|
|
@@ -122,7 +122,6 @@ var VoucherCard = (props) => {
|
|
|
122
122
|
);
|
|
123
123
|
pisellos.effects.on("appointmentBooking_cart:onAddItem", onCartChange);
|
|
124
124
|
pisellos.effects.on("appointmentBooking_cart:onUpdateQuotationPrice", onCartChange);
|
|
125
|
-
pisellos.effects.on("appointmentBooking_cart:onUpdateBookingDate", onCartChange);
|
|
126
125
|
pisellos.effects.on("appointmentBooking_cart:onUpdateCartItemNums", onCartChange);
|
|
127
126
|
pisellos.effects.on("appointmentBooking_cart:onRemoveItem", onCartChange);
|
|
128
127
|
pisellos.effects.on(
|
|
@@ -51,31 +51,23 @@ var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext")
|
|
|
51
51
|
var formatProducts = (values) => {
|
|
52
52
|
let arr = [];
|
|
53
53
|
arr = values.map((item) => {
|
|
54
|
-
var _a, _b, _c, _d, _e, _f, _g
|
|
55
|
-
const bundleDiscountList = (0, import_utils.getBundleDiscountList)(((_b = (_a = item._extend) == null ? void 0 : _a.other) == null ? void 0 : _b.bundle) || []);
|
|
56
|
-
const discount_list = [...(item == null ? void 0 : item.discount_list) || []];
|
|
57
|
-
discount_list.push(...bundleDiscountList);
|
|
54
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
58
55
|
return {
|
|
59
56
|
order_detail_id: item.order_detail_id || 0,
|
|
60
57
|
num: item._extend.quantity,
|
|
61
58
|
price: (0, import_utils.formatProductPrice)(item),
|
|
62
59
|
product_id: item.id,
|
|
63
|
-
discount_list: discount_list || [],
|
|
60
|
+
discount_list: (item == null ? void 0 : item.discount_list) || [],
|
|
64
61
|
discount_amount: 0,
|
|
65
62
|
product_discount_reason: "",
|
|
66
63
|
is_charge_tax: item.is_charge_tax,
|
|
67
64
|
note: "",
|
|
68
65
|
discountway: "num",
|
|
69
66
|
discount_type: "discount",
|
|
70
|
-
bundle_edit: (
|
|
71
|
-
product_bundle: (0, import_utils.formatProductBundle)((
|
|
72
|
-
"product_option_item": (0, import_utils.formatProductOption)((
|
|
73
|
-
"product_variant_id": ((
|
|
74
|
-
"source_product_price": (0, import_utils.getSourceProductPrice)(item),
|
|
75
|
-
"main_product_selling_price": (0, import_utils.getMainProductSellingPrice)(item) ?? (0, import_utils.formatProductPrice)(item),
|
|
76
|
-
"calculated_original_price": (0, import_utils.formatOriginalPrice)(item),
|
|
77
|
-
"calculated_selling_price": (0, import_utils.formatSellingPrice)(item),
|
|
78
|
-
"tax_fee": item._extend.tax_fee
|
|
67
|
+
bundle_edit: (_a = item._extend) == null ? void 0 : _a.bundle_edit,
|
|
68
|
+
product_bundle: (0, import_utils.formatProductBundle)((_c = (_b = item._extend) == null ? void 0 : _b.other) == null ? void 0 : _c.bundle),
|
|
69
|
+
"product_option_item": (0, import_utils.formatProductOption)((_e = (_d = item._extend) == null ? void 0 : _d.other) == null ? void 0 : _e.option),
|
|
70
|
+
"product_variant_id": ((_g = (_f = item._extend) == null ? void 0 : _f.other) == null ? void 0 : _g.product_variant_id) || 0
|
|
79
71
|
};
|
|
80
72
|
});
|
|
81
73
|
return arr;
|
|
@@ -249,12 +241,12 @@ var Addons = (0, import_model.Provider)((props) => {
|
|
|
249
241
|
isAddons: true,
|
|
250
242
|
_key: e.key,
|
|
251
243
|
_extend: {
|
|
244
|
+
price: _detail.price,
|
|
252
245
|
other: e,
|
|
253
246
|
quantity: (e == null ? void 0 : e.quantity) || 1
|
|
254
247
|
},
|
|
255
248
|
quantity: (e == null ? void 0 : e.quantity) || 1
|
|
256
249
|
};
|
|
257
|
-
product._extend.price = (0, import_utils2.getMainPrice)(product, _detail.price);
|
|
258
250
|
let _total = (0, import_utils2.getProductTotalPrice)(product);
|
|
259
251
|
product._extend.total = _total;
|
|
260
252
|
product._extend.origin_total = _total;
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from "../model";
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
+
state: FormState;
|
|
5
|
+
} & {
|
|
6
|
+
dispatch: (params: {
|
|
7
|
+
type: string;
|
|
8
|
+
payload: any;
|
|
9
|
+
}) => void;
|
|
10
|
+
}>;
|