@pisell/private-materials 6.6.5 → 6.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +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/Footer/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Services/index.js +25 -22
- package/es/components/appointmentBooking/components/Voucher/index.js +15 -1
- package/es/components/booking/addons/index.js +25 -17
- package/es/components/booking/components/actionButtons/index.js +3 -1
- 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 +36 -33
- package/es/components/booking/components/footer/utils.d.ts +19 -0
- package/es/components/booking/components/footer/utils.js +166 -67
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/es/components/booking/components/voucher/index.js +53 -15
- package/es/components/booking/forms/table/index.d.ts +0 -1
- 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/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/service/like/index.d.ts +0 -1
- package/es/components/booking/info/service2/utils.js +1 -0
- package/es/components/booking/info2/cartClientCard/index.js +5 -3
- package/es/components/booking/info2/service/addService/index.js +9 -9
- package/es/components/booking/info2/service/editNormalService/index.js +6 -0
- package/es/components/booking/info2/service/editService/index.js +27 -17
- 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/materiels/startTime/index.d.ts +0 -1
- package/es/components/booking/utils.d.ts +1 -0
- package/es/components/booking/utils.js +15 -2
- package/es/components/checkout/components/AmountSummary/index.less +4 -5
- package/es/components/eftpos/deviceList/index.d.ts +0 -1
- package/es/components/eftpos/form/index.d.ts +0 -1
- package/es/components/eftpos/group/index.d.ts +0 -1
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftpos/icon/apiKey.d.ts +0 -1
- package/es/components/eftpos/icon/device.d.ts +0 -1
- package/es/components/eftpos/receipt/index.d.ts +0 -1
- package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/es/components/eftposPay/component/step/index.d.ts +0 -1
- package/es/components/eftposPay/component/step/step.d.ts +0 -1
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +14 -6
- package/es/components/eftposPay/payo/config.d.ts +1 -0
- 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 +1 -1
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- 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/Provider/InformationOptionsModal/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/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 -2
- package/es/components/index.js +2 -2
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +13 -11
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- 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/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- 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/productExtension/fields/Forms/index.d.ts +0 -1
- package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/es/components/schedules/products/index.d.ts +0 -1
- package/es/components/schedules/resources/relationProduct/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/{wallet/serve.js → systemSettings/registry/components/GroupModal.js} +145 -190
- 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/addServiceVariant/addService.js +7 -5
- package/es/components/ticketBooking/utils/index.d.ts +5 -1
- package/es/components/ticketBooking/utils/index.js +37 -17
- package/es/components/walletList/index.d.ts +0 -25
- package/es/components/walletList/index.js +173 -41
- package/es/components/walletList/locales.d.ts +9 -0
- package/es/components/walletList/locales.js +12 -3
- package/es/components/walletList/serve.d.ts +19 -0
- package/es/components/walletList/serve.js +94 -5
- package/es/components/walletList/tempHolderSelector/index.d.ts +14 -0
- package/es/components/walletList/tempHolderSelector/index.js +196 -0
- package/es/components/walletList/tempHolderSelector/index.less +63 -0
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/index.d.ts +3 -2
- package/es/index.js +4 -3
- package/es/plus/clientName/index.d.ts +0 -1
- package/es/plus/walletEditor/WalletEditor.js +60 -2
- package/es/plus/walletEditor/locales.d.ts +9 -0
- package/es/plus/walletEditor/locales.js +12 -3
- 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.js +5 -1
- package/es/plus/walletPassGallery/components/passDetail/index.less +4 -0
- package/es/plus/walletPassGallery/components/passList/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/passList/index.js +17 -5
- package/es/plus/walletPassGallery/components/recharge/index.js +19 -8
- package/es/plus/walletPassGallery/index.js +226 -42
- package/es/plus/walletPassGallery/locales.d.ts +15 -0
- package/es/plus/walletPassGallery/locales.js +29 -5
- package/es/plus/walletPassGallery/serve.d.ts +15 -1
- package/es/plus/walletPassGallery/serve.js +59 -2
- package/es/plus/walletPassGallery/utils.d.ts +48 -0
- package/es/plus/walletPassGallery/utils.js +342 -0
- package/es/pro/Login2.0/index.less +15 -8
- package/es/pro/pisellPaymentList/example.d.ts +0 -1
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +35 -30
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Services/index.js +5 -2
- package/lib/components/appointmentBooking/components/Voucher/index.js +13 -1
- package/lib/components/booking/addons/index.js +15 -7
- package/lib/components/booking/components/actionButtons/index.js +4 -2
- 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 +5 -2
- package/lib/components/booking/components/footer/utils.d.ts +19 -0
- package/lib/components/booking/components/footer/utils.js +111 -35
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/lib/components/booking/components/voucher/index.js +56 -16
- package/lib/components/booking/forms/table/index.d.ts +0 -1
- 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/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/service/like/index.d.ts +0 -1
- package/lib/components/booking/info/service2/utils.js +1 -0
- package/lib/components/booking/info2/cartClientCard/index.js +4 -2
- package/lib/components/booking/info2/service/addService/index.js +1 -1
- package/lib/components/booking/info2/service/editNormalService/index.js +6 -0
- package/lib/components/booking/info2/service/editService/index.js +30 -8
- 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/materiels/startTime/index.d.ts +0 -1
- package/lib/components/booking/utils.d.ts +1 -0
- package/lib/components/booking/utils.js +11 -0
- package/lib/components/checkout/components/AmountSummary/index.less +4 -5
- package/lib/components/eftpos/deviceList/index.d.ts +0 -1
- package/lib/components/eftpos/form/index.d.ts +0 -1
- package/lib/components/eftpos/group/index.d.ts +0 -1
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
- package/lib/components/eftpos/icon/device.d.ts +0 -1
- package/lib/components/eftpos/receipt/index.d.ts +0 -1
- package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/lib/components/eftposPay/component/step/index.d.ts +0 -1
- package/lib/components/eftposPay/component/step/step.d.ts +0 -1
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +12 -6
- package/lib/components/eftposPay/payo/config.d.ts +1 -0
- 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 +1 -1
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- 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/Provider/InformationOptionsModal/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/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 -2
- package/lib/components/index.js +3 -3
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +13 -11
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- 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/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- 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/productExtension/fields/Forms/index.d.ts +0 -1
- package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/lib/components/schedules/products/index.d.ts +0 -1
- package/lib/components/schedules/resources/relationProduct/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/{wallet → systemSettings/registry}/components/index.js +13 -10
- 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/{wallet/RechargeableCard/serve.js → systemSettings/registry/types.js} +3 -19
- 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/addServiceVariant/addService.js +9 -7
- package/lib/components/ticketBooking/utils/index.d.ts +5 -1
- package/lib/components/ticketBooking/utils/index.js +21 -6
- package/lib/components/walletList/index.d.ts +0 -25
- package/lib/components/walletList/index.js +100 -4
- package/lib/components/walletList/locales.d.ts +9 -0
- package/lib/components/walletList/locales.js +12 -3
- package/lib/components/walletList/serve.d.ts +19 -0
- package/lib/components/walletList/serve.js +26 -3
- package/lib/components/walletList/tempHolderSelector/index.d.ts +14 -0
- package/lib/components/walletList/tempHolderSelector/index.js +166 -0
- package/lib/components/walletList/tempHolderSelector/index.less +63 -0
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/index.d.ts +3 -2
- package/lib/index.js +5 -2
- package/lib/plus/clientName/index.d.ts +0 -1
- package/lib/plus/walletEditor/WalletEditor.js +53 -0
- package/lib/plus/walletEditor/locales.d.ts +9 -0
- package/lib/plus/walletEditor/locales.js +12 -3
- 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.js +4 -1
- package/lib/plus/walletPassGallery/components/passDetail/index.less +4 -0
- package/lib/plus/walletPassGallery/components/passList/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/passList/index.js +16 -4
- package/lib/plus/walletPassGallery/components/recharge/index.js +7 -1
- package/lib/plus/walletPassGallery/index.js +157 -28
- package/lib/plus/walletPassGallery/locales.d.ts +15 -0
- package/lib/plus/walletPassGallery/locales.js +32 -5
- package/lib/plus/walletPassGallery/serve.d.ts +15 -1
- package/lib/plus/walletPassGallery/serve.js +17 -5
- package/lib/plus/walletPassGallery/utils.d.ts +48 -0
- package/lib/plus/walletPassGallery/utils.js +287 -0
- package/lib/pro/Login2.0/index.less +15 -8
- package/lib/pro/pisellPaymentList/example.d.ts +0 -1
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +34 -39
- package/lowcode/settings-registry/meta.ts +29 -0
- package/package.json +3 -3
- package/es/components/wallet/Detail/index.d.ts +0 -42
- package/es/components/wallet/Detail/index.js +0 -1182
- package/es/components/wallet/Detail/index.less +0 -386
- package/es/components/wallet/Detail/locales.d.ts +0 -153
- package/es/components/wallet/Detail/locales.js +0 -170
- package/es/components/wallet/Detail/model.d.ts +0 -13
- package/es/components/wallet/Detail/model.js +0 -22
- package/es/components/wallet/Detail/serve.d.ts +0 -39
- package/es/components/wallet/Detail/serve.js +0 -64
- package/es/components/wallet/DetailContext.d.ts +0 -25
- package/es/components/wallet/DetailContext.js +0 -162
- package/es/components/wallet/DiscountCard/index.d.ts +0 -3
- package/es/components/wallet/DiscountCard/index.js +0 -218
- package/es/components/wallet/DiscountCard/index.less +0 -9
- package/es/components/wallet/DiscountCard/model.d.ts +0 -14
- package/es/components/wallet/DiscountCard/model.js +0 -22
- package/es/components/wallet/PointCard/index.d.ts +0 -3
- package/es/components/wallet/PointCard/index.js +0 -169
- package/es/components/wallet/PointCard/index.less +0 -9
- package/es/components/wallet/PointCard/model.d.ts +0 -13
- package/es/components/wallet/PointCard/model.js +0 -22
- package/es/components/wallet/RechargeableCard/index.d.ts +0 -13
- package/es/components/wallet/RechargeableCard/index.js +0 -463
- package/es/components/wallet/RechargeableCard/index.less +0 -108
- package/es/components/wallet/RechargeableCard/model.d.ts +0 -29
- package/es/components/wallet/RechargeableCard/model.js +0 -28
- package/es/components/wallet/RechargeableCard/serve.d.ts +0 -23
- package/es/components/wallet/RechargeableCard/serve.js +0 -32
- package/es/components/wallet/Voucher/index.d.ts +0 -12
- package/es/components/wallet/Voucher/index.js +0 -131
- package/es/components/wallet/Voucher/index.less +0 -9
- package/es/components/wallet/Voucher/locales.d.ts +0 -21
- package/es/components/wallet/Voucher/locales.js +0 -20
- package/es/components/wallet/Voucher/model.d.ts +0 -13
- package/es/components/wallet/Voucher/model.js +0 -22
- package/es/components/wallet/carouselArrow.png +0 -0
- package/es/components/wallet/components/FooterButtons/index.d.ts +0 -18
- package/es/components/wallet/components/FooterButtons/index.js +0 -81
- package/es/components/wallet/components/FooterButtons/index.less +0 -91
- package/es/components/wallet/components/UsageRules/index.d.ts +0 -23
- package/es/components/wallet/components/UsageRules/index.js +0 -147
- package/es/components/wallet/components/UsageRules/index.less +0 -157
- package/es/components/wallet/components/WalletBar/index.d.ts +0 -8
- package/es/components/wallet/components/WalletBar/index.js +0 -19
- package/es/components/wallet/components/WalletBar/index.less +0 -36
- package/es/components/wallet/components/WalletCard.d.ts +0 -11
- package/es/components/wallet/components/WalletCard.js +0 -91
- package/es/components/wallet/components/index.d.ts +0 -3
- package/es/components/wallet/components/index.js +0 -4
- package/es/components/wallet/hooks/useWalletCard.d.ts +0 -34
- package/es/components/wallet/hooks/useWalletCard.js +0 -147
- package/es/components/wallet/index.d.ts +0 -10
- package/es/components/wallet/index.js +0 -807
- package/es/components/wallet/index.less +0 -151
- package/es/components/wallet/locales.d.ts +0 -132
- package/es/components/wallet/locales.js +0 -139
- package/es/components/wallet/model.d.ts +0 -37
- package/es/components/wallet/model.js +0 -86
- package/es/components/wallet/serve.d.ts +0 -150
- package/es/components/wallet/utils/formatUtils.d.ts +0 -36
- package/es/components/wallet/utils/formatUtils.js +0 -73
- package/lib/components/wallet/Detail/index.d.ts +0 -42
- package/lib/components/wallet/Detail/index.js +0 -874
- package/lib/components/wallet/Detail/index.less +0 -386
- package/lib/components/wallet/Detail/locales.d.ts +0 -153
- package/lib/components/wallet/Detail/locales.js +0 -194
- package/lib/components/wallet/Detail/model.d.ts +0 -13
- package/lib/components/wallet/Detail/model.js +0 -43
- package/lib/components/wallet/Detail/serve.d.ts +0 -39
- package/lib/components/wallet/Detail/serve.js +0 -44
- package/lib/components/wallet/DetailContext.d.ts +0 -25
- package/lib/components/wallet/DetailContext.js +0 -118
- package/lib/components/wallet/DiscountCard/index.d.ts +0 -3
- package/lib/components/wallet/DiscountCard/index.js +0 -209
- package/lib/components/wallet/DiscountCard/index.less +0 -9
- package/lib/components/wallet/DiscountCard/model.d.ts +0 -14
- package/lib/components/wallet/DiscountCard/model.js +0 -43
- package/lib/components/wallet/PointCard/index.d.ts +0 -3
- package/lib/components/wallet/PointCard/index.js +0 -190
- package/lib/components/wallet/PointCard/index.less +0 -9
- package/lib/components/wallet/PointCard/model.d.ts +0 -13
- package/lib/components/wallet/PointCard/model.js +0 -43
- package/lib/components/wallet/RechargeableCard/index.d.ts +0 -13
- package/lib/components/wallet/RechargeableCard/index.js +0 -380
- package/lib/components/wallet/RechargeableCard/index.less +0 -108
- package/lib/components/wallet/RechargeableCard/model.d.ts +0 -29
- package/lib/components/wallet/RechargeableCard/model.js +0 -49
- package/lib/components/wallet/RechargeableCard/serve.d.ts +0 -23
- package/lib/components/wallet/Voucher/index.d.ts +0 -12
- package/lib/components/wallet/Voucher/index.js +0 -146
- package/lib/components/wallet/Voucher/index.less +0 -9
- package/lib/components/wallet/Voucher/locales.d.ts +0 -21
- package/lib/components/wallet/Voucher/locales.js +0 -44
- package/lib/components/wallet/Voucher/model.d.ts +0 -13
- package/lib/components/wallet/Voucher/model.js +0 -43
- package/lib/components/wallet/carouselArrow.png +0 -0
- package/lib/components/wallet/components/FooterButtons/index.d.ts +0 -18
- package/lib/components/wallet/components/FooterButtons/index.js +0 -109
- package/lib/components/wallet/components/FooterButtons/index.less +0 -91
- package/lib/components/wallet/components/UsageRules/index.d.ts +0 -23
- package/lib/components/wallet/components/UsageRules/index.js +0 -113
- package/lib/components/wallet/components/UsageRules/index.less +0 -157
- package/lib/components/wallet/components/WalletBar/index.d.ts +0 -8
- package/lib/components/wallet/components/WalletBar/index.js +0 -49
- package/lib/components/wallet/components/WalletBar/index.less +0 -36
- package/lib/components/wallet/components/WalletCard.d.ts +0 -11
- package/lib/components/wallet/components/WalletCard.js +0 -97
- package/lib/components/wallet/components/index.d.ts +0 -3
- package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -34
- package/lib/components/wallet/hooks/useWalletCard.js +0 -111
- package/lib/components/wallet/index.d.ts +0 -10
- package/lib/components/wallet/index.js +0 -580
- package/lib/components/wallet/index.less +0 -151
- package/lib/components/wallet/locales.d.ts +0 -132
- package/lib/components/wallet/locales.js +0 -163
- package/lib/components/wallet/model.d.ts +0 -37
- package/lib/components/wallet/model.js +0 -91
- package/lib/components/wallet/serve.d.ts +0 -150
- package/lib/components/wallet/serve.js +0 -85
- package/lib/components/wallet/utils/formatUtils.d.ts +0 -36
- package/lib/components/wallet/utils/formatUtils.js +0 -73
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 钱包列表查询参数接口
|
|
3
|
-
*/
|
|
4
|
-
export interface IWalletListParmsProps {
|
|
5
|
-
tag?: string;
|
|
6
|
-
sales_status?: 1 | 0 | -1;
|
|
7
|
-
machine_search?: string;
|
|
8
|
-
createdDate?: string;
|
|
9
|
-
limit_status?: string;
|
|
10
|
-
relation_id?: string;
|
|
11
|
-
relation_type?: string;
|
|
12
|
-
customer_id?: number;
|
|
13
|
-
sort?: 'desc' | 'asc';
|
|
14
|
-
order_by?: string;
|
|
15
|
-
used_status?: string;
|
|
16
|
-
num?: number;
|
|
17
|
-
skip?: number;
|
|
18
|
-
with?: string[];
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* 钱包列表项属性接口
|
|
22
|
-
*/
|
|
23
|
-
export interface IWalletListItemProps {
|
|
24
|
-
id?: number | string;
|
|
25
|
-
encoded?: string;
|
|
26
|
-
code?: string;
|
|
27
|
-
limit_status?: string;
|
|
28
|
-
customer_id?: number;
|
|
29
|
-
generate_method?: 'not_settable' | 'before_order' | 'after_order';
|
|
30
|
-
created_at?: string;
|
|
31
|
-
product_id?: number;
|
|
32
|
-
sales_status?: 1 | 0;
|
|
33
|
-
tag?: string;
|
|
34
|
-
status?: string;
|
|
35
|
-
redeemed_at?: string;
|
|
36
|
-
collection_time?: string;
|
|
37
|
-
order_id?: number;
|
|
38
|
-
par_value?: string;
|
|
39
|
-
write_status?: number;
|
|
40
|
-
expire_date?: string;
|
|
41
|
-
balance?: string;
|
|
42
|
-
extension_id?: string;
|
|
43
|
-
product_title?: string;
|
|
44
|
-
product_cover?: string;
|
|
45
|
-
product?: IProductProps;
|
|
46
|
-
unified_available_status?: IUnifiedAvailableStatus;
|
|
47
|
-
shop: IShop;
|
|
48
|
-
unified_messages: any;
|
|
49
|
-
machinecode_config?: {
|
|
50
|
-
hide_recharge?: number;
|
|
51
|
-
};
|
|
52
|
-
metadata: {
|
|
53
|
-
validity_type: string;
|
|
54
|
-
};
|
|
55
|
-
custom_schedule_snapshot: {
|
|
56
|
-
data: any[];
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* 商店信息接口
|
|
61
|
-
*/
|
|
62
|
-
export interface IShop {
|
|
63
|
-
name: string;
|
|
64
|
-
id: number;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* 统一可用状态接口
|
|
68
|
-
*/
|
|
69
|
-
export interface IUnifiedAvailableStatus {
|
|
70
|
-
title?: string;
|
|
71
|
-
desc?: string;
|
|
72
|
-
alert?: string;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* 商品属性接口
|
|
76
|
-
*/
|
|
77
|
-
export interface IProductProps {
|
|
78
|
-
id?: number;
|
|
79
|
-
title?: string;
|
|
80
|
-
description?: string;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* API响应接口
|
|
84
|
-
*/
|
|
85
|
-
export interface ApiResponse<T> {
|
|
86
|
-
data: T;
|
|
87
|
-
code?: number;
|
|
88
|
-
message?: string;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* 错误处理函数类型
|
|
92
|
-
*/
|
|
93
|
-
export declare type ErrorCallback = () => void;
|
|
94
|
-
/**
|
|
95
|
-
* 获取钱包列表
|
|
96
|
-
* @param params 查询参数
|
|
97
|
-
* @returns Promise<{list: IWalletListItemProps[], count: number}> 钱包列表和总数
|
|
98
|
-
* @throws 请求失败时抛出错误
|
|
99
|
-
*/
|
|
100
|
-
export declare const getWalletList: (params?: IWalletListParmsProps) => Promise<{
|
|
101
|
-
list: IWalletListItemProps[];
|
|
102
|
-
count: number;
|
|
103
|
-
}>;
|
|
104
|
-
/**
|
|
105
|
-
* 通过code绑定客户
|
|
106
|
-
* @param params 请求参数,包含code
|
|
107
|
-
* @param errCallback 错误回调
|
|
108
|
-
* @returns Promise<any> 绑定结果
|
|
109
|
-
*/
|
|
110
|
-
export declare const customer: (params: {
|
|
111
|
-
code: string;
|
|
112
|
-
}, errCallback: ErrorCallback) => Promise<any>;
|
|
113
|
-
/**
|
|
114
|
-
* 用户根据code查询待绑定识别码列表
|
|
115
|
-
* @param params 请求参数,包含code和tag
|
|
116
|
-
* @param errCallback 错误回调函数
|
|
117
|
-
* @returns Promise<IWalletListItemProps[] | null> 未绑定的钱包卡列表
|
|
118
|
-
*/
|
|
119
|
-
export declare const unbindList: (params: {
|
|
120
|
-
code: string;
|
|
121
|
-
tag: string;
|
|
122
|
-
}, errCallback: ErrorCallback) => Promise<IWalletListItemProps[] | null>;
|
|
123
|
-
/**
|
|
124
|
-
* 下单请求参数接口
|
|
125
|
-
*/
|
|
126
|
-
export interface IOrderParams {
|
|
127
|
-
voucher_id: string;
|
|
128
|
-
product_id: string;
|
|
129
|
-
product_variant_id: string;
|
|
130
|
-
quantity: number;
|
|
131
|
-
type: string;
|
|
132
|
-
platform: string;
|
|
133
|
-
currency_code: {
|
|
134
|
-
currency_code: string;
|
|
135
|
-
currency_symbol: string;
|
|
136
|
-
currency_format: string;
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* 下单
|
|
141
|
-
* @param params 下单参数
|
|
142
|
-
* @returns Promise<any> 下单结果
|
|
143
|
-
* @throws 请求失败时抛出错误
|
|
144
|
-
*/
|
|
145
|
-
export declare const goOrder: (params: IOrderParams) => Promise<any>;
|
|
146
|
-
/**
|
|
147
|
-
* 设置请求对象
|
|
148
|
-
* @param req 请求对象
|
|
149
|
-
*/
|
|
150
|
-
export declare const setRequest: (req: any) => void;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { IWalletListItemProps } from '../serve';
|
|
2
|
-
/**
|
|
3
|
-
* 格式化数据为可用和不可用两组
|
|
4
|
-
* @param dataList 数据列表
|
|
5
|
-
* @returns [available, unavailable] 格式化后的数据
|
|
6
|
-
*/
|
|
7
|
-
export declare const formatDataToGroups: (dataList: IWalletListItemProps[]) => {
|
|
8
|
-
title: any;
|
|
9
|
-
dataSource: IWalletListItemProps[];
|
|
10
|
-
}[];
|
|
11
|
-
/**
|
|
12
|
-
* 计算可用卡片总余额
|
|
13
|
-
* @param dataList 数据列表
|
|
14
|
-
* @param valueField 值字段名,默认为balance
|
|
15
|
-
* @returns number 总余额
|
|
16
|
-
*/
|
|
17
|
-
export declare const calculateTotalValue: (dataList: IWalletListItemProps[], valueField?: string) => number;
|
|
18
|
-
/**
|
|
19
|
-
* 检查是否存在可用卡片
|
|
20
|
-
* @param dataList 数据列表
|
|
21
|
-
* @returns boolean 是否有可用卡片
|
|
22
|
-
*/
|
|
23
|
-
export declare const hasAvailableCards: (dataList: IWalletListItemProps[]) => boolean;
|
|
24
|
-
/**
|
|
25
|
-
* 查找卡片详情
|
|
26
|
-
* @param dataList 数据列表
|
|
27
|
-
* @param id 卡片ID
|
|
28
|
-
* @returns 卡片详情或undefined
|
|
29
|
-
*/
|
|
30
|
-
export declare const findCardById: (dataList: IWalletListItemProps[], id?: string | number) => IWalletListItemProps | undefined;
|
|
31
|
-
/**
|
|
32
|
-
* 创建状态转换对象
|
|
33
|
-
* @param translations 转换映射
|
|
34
|
-
* @returns 转换对象
|
|
35
|
-
*/
|
|
36
|
-
export declare const createStatusMap: (translations: Record<string, string>) => (status: string) => string;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { locales } from '@pisell/utils';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* 格式化数据为可用和不可用两组
|
|
5
|
-
* @param dataList 数据列表
|
|
6
|
-
* @returns [available, unavailable] 格式化后的数据
|
|
7
|
-
*/
|
|
8
|
-
export var formatDataToGroups = function formatDataToGroups(dataList) {
|
|
9
|
-
var available = {
|
|
10
|
-
title: locales.getText('page.wallet.available'),
|
|
11
|
-
dataSource: dataList.filter(function (item) {
|
|
12
|
-
return item.limit_status === 'enable';
|
|
13
|
-
})
|
|
14
|
-
};
|
|
15
|
-
var unavailable = {
|
|
16
|
-
title: locales.getText('page.wallet.unavailable'),
|
|
17
|
-
dataSource: dataList.filter(function (item) {
|
|
18
|
-
return item.limit_status === 'disable';
|
|
19
|
-
})
|
|
20
|
-
};
|
|
21
|
-
return [available, unavailable];
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* 计算可用卡片总余额
|
|
26
|
-
* @param dataList 数据列表
|
|
27
|
-
* @param valueField 值字段名,默认为balance
|
|
28
|
-
* @returns number 总余额
|
|
29
|
-
*/
|
|
30
|
-
export var calculateTotalValue = function calculateTotalValue(dataList) {
|
|
31
|
-
var valueField = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'balance';
|
|
32
|
-
var enabledCards = dataList.filter(function (item) {
|
|
33
|
-
return item.limit_status === 'enable' && item.tag !== 'good_pass';
|
|
34
|
-
});
|
|
35
|
-
return enabledCards.reduce(function (sum, item) {
|
|
36
|
-
return sum + Number(item[valueField] || 0);
|
|
37
|
-
}, 0);
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* 检查是否存在可用卡片
|
|
42
|
-
* @param dataList 数据列表
|
|
43
|
-
* @returns boolean 是否有可用卡片
|
|
44
|
-
*/
|
|
45
|
-
export var hasAvailableCards = function hasAvailableCards(dataList) {
|
|
46
|
-
return dataList.some(function (item) {
|
|
47
|
-
return item.limit_status === 'enable';
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* 查找卡片详情
|
|
53
|
-
* @param dataList 数据列表
|
|
54
|
-
* @param id 卡片ID
|
|
55
|
-
* @returns 卡片详情或undefined
|
|
56
|
-
*/
|
|
57
|
-
export var findCardById = function findCardById(dataList, id) {
|
|
58
|
-
if (!id) return undefined;
|
|
59
|
-
return dataList.find(function (item) {
|
|
60
|
-
return item.id === id;
|
|
61
|
-
});
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* 创建状态转换对象
|
|
66
|
-
* @param translations 转换映射
|
|
67
|
-
* @returns 转换对象
|
|
68
|
-
*/
|
|
69
|
-
export var createStatusMap = function createStatusMap(translations) {
|
|
70
|
-
return function (status) {
|
|
71
|
-
return translations[status] || status;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
declare global {
|
|
4
|
-
interface Window {
|
|
5
|
-
PKPass?: any;
|
|
6
|
-
GoogleWalletPass?: any;
|
|
7
|
-
}
|
|
8
|
-
interface Navigator {
|
|
9
|
-
pkpass?: {
|
|
10
|
-
addPass(pass: any): Promise<string>;
|
|
11
|
-
};
|
|
12
|
-
googlewallet?: {
|
|
13
|
-
addPass(pass: any): Promise<string>;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
interface DetailProps {
|
|
18
|
-
detail: {
|
|
19
|
-
id?: string;
|
|
20
|
-
tag?: string;
|
|
21
|
-
code?: string;
|
|
22
|
-
product_title?: string;
|
|
23
|
-
encoded?: string;
|
|
24
|
-
balance?: number;
|
|
25
|
-
expire_date?: string;
|
|
26
|
-
product?: any;
|
|
27
|
-
machinecode_config?: any;
|
|
28
|
-
[key: string]: any;
|
|
29
|
-
};
|
|
30
|
-
isDiscoundCard?: boolean;
|
|
31
|
-
showWalletBar?: boolean;
|
|
32
|
-
onBack?: () => void;
|
|
33
|
-
buttonGroupList?: any[][];
|
|
34
|
-
className?: string;
|
|
35
|
-
style?: React.CSSProperties;
|
|
36
|
-
addWalletCallback?: (addWallet: () => void) => void;
|
|
37
|
-
}
|
|
38
|
-
export interface WalletDetailRef {
|
|
39
|
-
addWalletCard: () => void;
|
|
40
|
-
}
|
|
41
|
-
declare const Detail: React.ForwardRefExoticComponent<DetailProps & React.RefAttributes<WalletDetailRef>>;
|
|
42
|
-
export default Detail;
|