@pisell/private-materials 6.3.116 → 6.3.117
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 +152 -152
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +18 -10
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +18 -10
- package/es/components/appointmentBooking/components/Date/state.d.ts +63 -0
- package/es/components/appointmentBooking/components/Date/state.js +3 -1
- package/es/components/appointmentBooking/locales.js +276 -0
- package/es/components/authentication/admin/AuthMethods/locales.d.ts +413 -0
- package/es/components/authentication/admin/AuthMethods/locales.js +164 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +27 -9
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +138 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +54 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +43 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +2 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +118 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +46 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +35 -0
- package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +17 -9
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +43 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +16 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +10 -2
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +108 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +42 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +28 -0
- package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +17 -9
- package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +63 -0
- package/es/components/authentication/admin/ChannelAuthSetting/locales.js +24 -0
- package/es/components/authentication/admin/CustomerAuth/locales.d.ts +108 -0
- package/es/components/authentication/admin/CustomerAuth/locales.js +42 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +178 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/locales.js +70 -0
- package/es/components/authentication/admin/DeviceAuth/locales.d.ts +93 -0
- package/es/components/authentication/admin/DeviceAuth/locales.js +36 -0
- package/es/components/authentication/admin/OAuthConfig/locales.d.ts +148 -0
- package/es/components/authentication/admin/OAuthConfig/locales.js +58 -0
- package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +88 -0
- package/es/components/authentication/admin/OrgAdminAuth/locales.js +34 -0
- package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +78 -0
- package/es/components/authentication/admin/POSOperatorAuth/locales.js +30 -0
- package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +88 -0
- package/es/components/authentication/admin/SaaSAdminAuth/locales.js +34 -0
- package/es/components/booking/components/footer/index.js +26 -20
- package/es/components/booking/components/footer/utils.js +24 -11
- package/es/components/booking/dashboard/serve.d.ts +1 -0
- package/es/components/booking/editBookingModal/locales.d.ts +33 -0
- package/es/components/booking/editBookingModal/locales.js +12 -0
- package/es/components/booking/editBookingModal/mock.d.ts +991 -0
- package/es/components/booking/editBookingModal/mock.js +22 -0
- package/es/components/booking/forms/serve.d.ts +18 -0
- package/es/components/booking/hooks/useClearCart.d.ts +1 -1
- package/es/components/booking/hooks/useClearCart.js +39 -9
- package/es/components/booking/info/client/serve.d.ts +2 -0
- package/es/components/booking/info/header/index.js +7 -7
- package/es/components/booking/info/header/index.less +5 -5
- package/es/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
- package/es/components/booking/info/pet/serve.d.ts +1 -0
- package/es/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
- package/es/components/booking/info/service/index.less +4 -2
- package/es/components/booking/info/service/serve.d.ts +20 -0
- package/es/components/booking/info2/serve.d.ts +6 -0
- package/es/components/booking/info2/service/addService/mock.d.ts +216 -0
- package/es/components/booking/info2/service/addService/mock.js +4 -0
- package/es/components/booking/info2/service/editService/index.js +36 -6
- package/es/components/booking/info2/service/editService/utils.d.ts +15 -0
- package/es/components/booking/info2/service/editService/utils.js +76 -0
- package/es/components/booking/locales.d.ts +1494 -0
- package/es/components/booking/locales.js +742 -0
- package/es/components/booking/notes/NoteBlock/index.js +3 -2
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/ecocup/components/AddCustomerModal/index.d.ts +10 -0
- package/es/components/{eftpos/PairModal → ecocup/components/AddCustomerModal}/index.js +159 -189
- package/es/components/ecocup/components/AddCustomerModal/index.less +9 -0
- package/es/components/ecocup/components/CupActionList/index.d.ts +14 -0
- package/es/components/ecocup/components/CupActionList/index.js +91 -0
- package/es/components/ecocup/components/CupActionList/index.less +102 -0
- package/es/components/ecocup/components/CupActionModal/hooks.js +68 -0
- package/es/components/ecocup/components/CupActionModal/index.d.ts +15 -0
- package/es/components/ecocup/components/CupActionModal/index.js +92 -0
- package/es/components/ecocup/components/CupActionModal/index.less +38 -0
- package/es/components/ecocup/components/CupInfoCard/index.d.ts +10 -0
- package/es/components/ecocup/components/CupInfoCard/index.js +14 -0
- package/es/components/ecocup/components/CupInfoCard/index.less +11 -0
- package/es/components/ecocup/components/CupStatusModal/hooks.js +176 -0
- package/es/components/ecocup/components/CupStatusModal/index.d.ts +14 -0
- package/es/components/ecocup/components/CupStatusModal/index.js +281 -0
- package/es/components/ecocup/components/CupStatusModal/index.less +73 -0
- package/es/components/ecocup/components/CustomerAndCupModal/hooks.js +133 -0
- package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +20 -0
- package/es/components/ecocup/components/CustomerAndCupModal/index.js +227 -0
- package/es/components/ecocup/components/CustomerAndCupModal/index.less +68 -0
- package/es/components/ecocup/components/CustomerCard/index.d.ts +9 -0
- package/es/components/ecocup/components/CustomerCard/index.js +37 -0
- package/es/components/ecocup/components/CustomerCard/index.less +50 -0
- package/es/components/ecocup/components/MoreDropdown/index.d.ts +9 -0
- package/es/components/ecocup/components/MoreDropdown/index.js +33 -0
- package/es/components/ecocup/components/PageHeader/index.d.ts +9 -0
- package/es/components/ecocup/components/PageHeader/index.js +47 -0
- package/es/components/ecocup/components/PageHeader/index.less +31 -0
- package/es/components/ecocup/components/SearchBar/const.js +16 -0
- package/es/components/ecocup/components/SearchBar/hooks.d.ts +44 -0
- package/es/components/ecocup/components/SearchBar/hooks.js +184 -0
- package/es/components/ecocup/components/SearchBar/index.d.ts +14 -0
- package/es/components/ecocup/components/SearchBar/index.js +248 -0
- package/es/components/ecocup/components/SearchBar/index.less +88 -0
- package/es/components/ecocup/components/SettingModal/const.js +17 -0
- package/es/components/ecocup/components/SettingModal/index.d.ts +9 -0
- package/es/components/ecocup/components/SettingModal/index.js +253 -0
- package/es/components/ecocup/components/SettingModal/index.less +9 -0
- package/es/components/ecocup/cupList/const.js +319 -0
- package/es/components/ecocup/cupList/hooks/index.d.ts +4 -0
- package/es/components/ecocup/cupList/hooks/index.js +4 -0
- package/es/components/ecocup/cupList/hooks/useColumns.d.ts +45 -0
- package/es/components/ecocup/cupList/hooks/useColumns.js +166 -0
- package/es/components/ecocup/cupList/hooks/useCupApi.d.ts +41 -0
- package/es/components/ecocup/cupList/hooks/useCupApi.js +312 -0
- package/es/components/ecocup/cupList/hooks/useSummary.d.ts +3 -0
- package/es/components/ecocup/cupList/hooks/useSummary.js +42 -0
- package/es/components/ecocup/cupList/index.d.ts +7 -0
- package/es/components/ecocup/cupList/index.js +268 -0
- package/es/components/ecocup/cupList/index.less +159 -0
- package/es/components/ecocup/cupProject/const.js +33 -0
- package/es/components/ecocup/cupProject/index.d.ts +3 -0
- package/es/components/ecocup/cupProject/index.js +112 -0
- package/es/components/ecocup/cupProject/index.less +41 -0
- package/es/components/ecocup/customerList/const.js +67 -0
- package/es/components/ecocup/customerList/hooks/index.js +3 -0
- package/es/components/ecocup/customerList/hooks/useColumns.js +44 -0
- package/es/components/ecocup/customerList/hooks/useCustomerApi.js +70 -0
- package/es/components/ecocup/customerList/index.d.ts +7 -0
- package/es/components/ecocup/customerList/index.js +127 -0
- package/es/components/ecocup/customerList/index.less +15 -0
- package/es/components/ecocup/hooks.js +168 -0
- package/es/components/ecocup/locales.js +699 -0
- package/es/components/ecocup/types.js +36 -0
- package/es/components/ecocup/utils/download.js +34 -0
- package/es/components/ecocup/utils/index.js +2 -0
- package/es/components/ecocup/utils/scanListener.js +107 -0
- package/es/components/eftpos/const.js +0 -2
- package/es/components/eftpos/device.d.ts +1 -3
- package/es/components/eftpos/device.js +3 -5
- package/es/components/eftpos/hooks.js +0 -35
- package/es/components/eftpos/index.js +25 -184
- package/es/components/eftpos/index.less +1 -26
- package/es/components/eftpos/locales.js +85 -104
- package/es/components/eftpos/table.js +3 -47
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/app.d.ts +11 -0
- package/es/components/eftposPay/component/fail/failCustom.js +17 -12
- package/es/components/eftposPay/component/fail/index.js +5 -4
- package/es/components/eftposPay/const.js +0 -2
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/device.js +210 -42
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/index.js +5 -1
- package/es/components/eftposPay/linkly/const.js +1 -1
- package/es/components/eftposPay/linkly/index.js +0 -1
- package/es/components/eftposPay/locales.js +328 -5
- package/es/components/eftposPay/manufacturer.js +0 -4
- package/es/components/eftposPay/pay.js +2 -7
- package/es/components/eftposPay/payo/config.js +1 -0
- package/es/components/eftposPay/payo/const.js +1 -1
- package/es/components/eftposPay/tyro/const.js +1 -1
- package/es/components/eftposPay/windcave/const.js +1 -1
- package/es/components/eftposPay/windcave/windcave.js +9 -9
- package/es/components/eventBooking/components/Voucher/components/locales.js +22 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/eventBooking/locales.d.ts +408 -0
- package/es/components/eventBooking/locales.js +186 -0
- package/es/components/kioskSkuDetail/index.js +39 -10
- package/es/components/kioskSkuDetail/locales.d.ts +48 -0
- package/es/components/kioskSkuDetail/locales.js +24 -3
- package/es/components/login/locales.d.ts +38 -0
- package/es/components/login/locales.js +14 -0
- package/es/components/pay/toC/PaymentList/payment/google_pay.svg +26 -8
- package/es/components/pay/toC/PaymentList/payment/google_pay2.svg +9 -0
- package/es/components/pay/toC/PaymentList/serve.js +2 -2
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.js +65 -21
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.less +110 -9
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/index.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/index.js +46 -18
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +20 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +14 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +20 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +7 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.js +167 -56
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.less +47 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.d.ts +34 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.js +83 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.less +52 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +9 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.js +260 -33
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +23 -3
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +309 -126
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.js +18 -7
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +3 -4
- package/es/components/pay/toC/PaymentMethods/index.js +12 -2
- package/es/components/pay/toC/index.js +53 -18
- package/es/components/pay/toC/locales.js +381 -12
- package/es/components/pay/toC/serve.d.ts +12 -0
- package/es/components/pay/toC/serve.js +42 -3
- package/es/components/pay/toC/utils.d.ts +5 -0
- package/es/components/pay/toC/utils.js +10 -0
- package/es/components/pinModal/locales.d.ts +43 -0
- package/es/components/pinModal/locales.js +16 -0
- package/es/components/pinVerifyModal/locales.d.ts +38 -0
- package/es/components/pinVerifyModal/locales.js +14 -0
- package/es/components/pisellSelectCustomerModal/locales.js +52 -0
- package/es/components/productExtension/locales.d.ts +78 -0
- package/es/components/productExtension/locales.js +30 -0
- package/es/components/productSelect/components/pisellPriceText/index.js +8 -4
- package/es/components/productSelect/locales.d.ts +38 -0
- package/es/components/productSelect/locales.js +23 -3
- package/es/components/ruleSetting/locales.d.ts +78 -0
- package/es/components/ruleSetting/locales.js +30 -0
- package/es/components/schedules/locales.js +56 -0
- package/es/components/shoppingCart/Provider.d.ts +3 -0
- package/es/components/shoppingCart/components/Cart/index.less +1 -0
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -1
- package/es/components/shoppingCart/hooks/useClearCart.js +41 -11
- package/es/components/shoppingCart/locales.js +24 -0
- package/es/components/shoppingCart/mock.d.ts +40 -0
- package/es/components/shoppingCart/utils.d.ts +63 -0
- package/es/components/stepController/locales.d.ts +43 -0
- package/es/components/stepController/locales.js +20 -0
- package/es/components/subTotal/locales.js +26 -0
- package/es/components/systemSettings/registry/components/DataSourceTreeSelect/index.d.ts +59 -0
- package/es/components/systemSettings/registry/components/DataSourceTreeSelect/index.js +390 -0
- package/es/components/systemSettings/registry/components/DataSourceTreeSelect/serve.d.ts +70 -0
- package/es/components/systemSettings/registry/components/DataSourceTreeSelect/serve.js +367 -0
- package/es/components/systemSettings/registry/components/ItemModal.js +251 -47
- package/es/components/systemSettings/registry/components/OptionDataSource/OptionTable.d.ts +8 -0
- package/es/components/systemSettings/registry/components/OptionDataSource/OptionTable.js +163 -0
- package/es/components/systemSettings/registry/components/OptionDataSource/index.d.ts +10 -0
- package/es/components/systemSettings/registry/components/OptionDataSource/index.js +127 -0
- package/es/components/systemSettings/registry/components/OptionDataSource/index.less +37 -0
- package/es/components/systemSettings/registry/index.js +20 -16
- package/es/components/systemSettings/registry/index.less +6 -7
- package/es/components/systemSettings/registry/locales.js +274 -3
- package/es/components/taxSelect/locales.js +14 -0
- package/es/components/ticketBooking/locales.js +156 -0
- package/es/components/ticketBooking/utils/formatTime.d.ts +2 -0
- package/es/components/ticketBooking/utils/formatTime.js +8 -2
- package/es/components/wallet/utils.d.ts +48 -0
- package/es/components/walletList/index.js +10 -0
- package/es/components/walletList/locales.d.ts +43 -0
- package/es/components/walletList/locales.js +16 -0
- package/es/components/walletList/types/index.d.ts +196 -0
- package/es/hooks/useEngineContext.js +7 -0
- package/es/hooks/useLocale.js +8 -1
- package/es/hooks/useThemeTokens.js +20 -0
- package/es/hooks/useTranslationOriginal.d.ts +1 -0
- package/es/hooks/useTranslationOriginal.js +10 -0
- package/es/index.d.ts +16 -3
- package/es/index.js +13 -1
- package/es/plus/clientCard/index.d.ts +7 -0
- package/es/plus/clientCard/index.js +462 -0
- package/es/plus/clientCard/index.less +515 -0
- package/es/plus/clientCard/line/index.d.ts +9 -0
- package/es/plus/clientCard/line/index.js +157 -0
- package/es/plus/clientCard/line/index.less +142 -0
- package/es/plus/clientCard/locales.d.ts +28 -0
- package/es/plus/clientCard/locales.js +27 -0
- package/es/plus/clientCard/types.d.ts +135 -0
- package/es/plus/clientCard/types.js +1 -0
- package/es/plus/clientCard/utils.d.ts +8 -0
- package/es/plus/clientCard/utils.js +59 -0
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +3 -0
- package/es/plus/clinetSearch/Add/BirthdayField/index.js +277 -0
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +3 -0
- package/es/plus/clinetSearch/Add/GenderField/index.js +18 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +3 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.js +52 -0
- package/es/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
- package/es/plus/clinetSearch/Add/PhoneField/serve.js +166 -0
- package/es/plus/clinetSearch/Add/index.d.ts +18 -0
- package/es/plus/clinetSearch/Add/index.js +213 -0
- package/es/plus/clinetSearch/Add/index.less +30 -0
- package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
- package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +265 -0
- package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
- package/es/plus/clinetSearch/InfiniteScroll/index.js +1 -0
- package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
- package/es/plus/clinetSearch/InfiniteScroll/types.js +1 -0
- package/es/plus/clinetSearch/index.d.ts +18 -0
- package/es/plus/clinetSearch/index.js +234 -0
- package/es/plus/clinetSearch/index.less +95 -0
- package/es/plus/clinetSearch/locales.d.ts +178 -0
- package/es/plus/clinetSearch/locales.js +177 -0
- package/es/plus/clinetSearch/serve.d.ts +1 -0
- package/es/plus/clinetSearch/serve.js +31 -0
- package/es/plus/clinetSearch/types.d.ts +70 -0
- package/es/plus/clinetSearch/types.js +1 -0
- package/es/plus/contactInfo/components/SwipeAction/index.js +1 -1
- package/es/plus/contactInfo/locales.d.ts +23 -0
- package/es/plus/contactInfo/locales.js +8 -0
- package/es/plus/contactInfoModal/locales.d.ts +108 -0
- package/es/plus/contactInfoModal/locales.js +42 -0
- package/es/plus/orderList/components/BatchActionBar.d.ts +9 -0
- package/es/plus/orderList/components/BatchActionBar.js +835 -0
- package/es/plus/orderList/components/FilterList.d.ts +8 -0
- package/es/plus/orderList/components/FilterList.js +78 -0
- package/es/plus/orderList/components/HandleActions.d.ts +6 -0
- package/es/plus/orderList/components/HandleActions.js +27 -0
- package/es/plus/orderList/components/QuickFilter.d.ts +5 -0
- package/es/plus/orderList/components/QuickFilter.js +14 -0
- package/es/plus/orderList/components/Reset.d.ts +7 -0
- package/es/plus/orderList/components/Reset.js +23 -0
- package/es/plus/orderList/components/Toolbar.d.ts +7 -0
- package/es/plus/orderList/components/Toolbar.js +59 -0
- package/es/plus/orderList/config.d.ts +155 -0
- package/es/plus/orderList/config.js +786 -0
- package/es/plus/orderList/index.d.ts +10 -0
- package/es/plus/orderList/index.js +133 -0
- package/es/plus/orderList/index.less +125 -0
- package/es/plus/orderList/locales.js +733 -0
- package/es/plus/orderList/serve.d.ts +42 -0
- package/es/plus/orderList/serve.js +351 -0
- package/es/plus/pisellSalesGrid/PisellSalesGrid.d.ts +5 -0
- package/es/plus/pisellSalesGrid/PisellSalesGrid.js +363 -0
- package/es/plus/pisellSalesGrid/PisellSalesGrid.less +16 -0
- package/es/plus/pisellSalesGrid/PisellSalesGrid.stories.d.ts +14 -0
- package/es/plus/pisellSalesGrid/PisellSalesGrid.stories.js +559 -0
- package/es/plus/pisellSalesGrid/hooks/useActions.d.ts +19 -0
- package/es/plus/pisellSalesGrid/hooks/useActions.js +723 -0
- package/es/plus/pisellSalesGrid/index.d.ts +4 -0
- package/es/plus/pisellSalesGrid/index.js +3 -0
- package/es/plus/pisellSalesGrid/locales.js +8 -0
- package/es/plus/pisellSalesGrid/serve.d.ts +19 -0
- package/es/plus/pisellSalesGrid/serve.js +151 -0
- package/es/plus/pisellSalesGrid/types.js +1 -0
- package/es/plus/pisellSalesManagement/components/BookingFormsPreview.d.ts +15 -0
- package/es/plus/pisellSalesManagement/components/BookingFormsPreview.js +221 -0
- package/es/plus/pisellSalesManagement/components/BookingNotesPreview.d.ts +19 -0
- package/es/plus/pisellSalesManagement/components/BookingNotesPreview.js +167 -0
- package/es/plus/pisellSalesManagement/components/ResourceSelector.d.ts +9 -0
- package/es/plus/pisellSalesManagement/components/ResourceSelector.js +102 -0
- package/es/plus/pisellSalesManagement/config/booking.d.ts +185 -0
- package/es/plus/pisellSalesManagement/config/booking.js +380 -0
- package/es/plus/pisellSalesManagement/config/index.d.ts +2 -0
- package/es/plus/pisellSalesManagement/config/index.js +11 -0
- package/es/plus/pisellSalesManagement/config/order.d.ts +172 -0
- package/es/plus/pisellSalesManagement/config/order.js +460 -0
- package/es/plus/pisellSalesManagement/hooks/perspectiveUtils.js +66 -0
- package/es/plus/pisellSalesManagement/hooks/useBookingPerspective.d.ts +2 -0
- package/es/plus/pisellSalesManagement/hooks/useBookingPerspective.js +651 -0
- package/es/plus/pisellSalesManagement/hooks/useOrderPerspective.d.ts +2 -0
- package/es/plus/pisellSalesManagement/hooks/useOrderPerspective.js +656 -0
- package/es/plus/pisellSalesManagement/hooks/usePerspectives.d.ts +5 -0
- package/es/plus/pisellSalesManagement/hooks/usePerspectives.js +12 -0
- package/es/plus/pisellSalesManagement/index.d.ts +10 -0
- package/es/plus/pisellSalesManagement/index.js +84 -0
- package/es/plus/pisellSalesManagement/locales.js +302 -0
- package/es/plus/pisellSalesManagement/serve.d.ts +26 -0
- package/es/plus/pisellSalesManagement/serve.js +222 -0
- package/es/plus/productSelect/ProductList/gridComponents.d.ts +44 -0
- package/es/plus/productSelect/components/pisellPriceText/index.js +8 -4
- package/es/plus/productSelect/locales.d.ts +38 -0
- package/es/plus/productSelect/locales.js +23 -3
- package/es/plus/saasAttendance/index.d.ts +6 -0
- package/es/plus/saasAttendance/index.js +5 -0
- package/es/plus/saasAttendance/locales.js +657 -0
- package/es/plus/saasAttendance/settings/BasicInfoTab.d.ts +5 -0
- package/es/plus/saasAttendance/settings/BasicInfoTab.js +96 -0
- package/es/plus/saasAttendance/settings/ClockInMethodTab.d.ts +8 -0
- package/es/plus/saasAttendance/settings/ClockInMethodTab.js +81 -0
- package/es/plus/saasAttendance/settings/CorrectionPolicyTab.d.ts +8 -0
- package/es/plus/saasAttendance/settings/CorrectionPolicyTab.js +293 -0
- package/es/plus/saasAttendance/settings/PermissonTab.d.ts +5 -0
- package/es/plus/saasAttendance/settings/PermissonTab.js +79 -0
- package/es/plus/saasAttendance/settings/ShiftScheduleTab.d.ts +5 -0
- package/es/plus/saasAttendance/settings/ShiftScheduleTab.js +115 -0
- package/es/plus/saasAttendance/settings/components/MapField.d.ts +78 -0
- package/es/plus/saasAttendance/settings/components/MapField.js +848 -0
- package/es/plus/saasAttendance/settings/components/index.d.ts +3 -0
- package/es/plus/saasAttendance/settings/components/index.js +2 -0
- package/es/plus/saasAttendance/settings/components/membersField/index.d.ts +8 -0
- package/es/plus/saasAttendance/settings/components/membersField/index.js +216 -0
- package/es/plus/saasAttendance/settings/components/membersField/index.less +70 -0
- package/es/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.d.ts +7 -0
- package/es/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.js +149 -0
- package/es/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.less +119 -0
- package/es/plus/saasAttendance/settings/components/shiftModal/index.d.ts +18 -0
- package/es/plus/saasAttendance/settings/components/shiftModal/index.js +438 -0
- package/es/plus/saasAttendance/settings/index.d.ts +18 -0
- package/es/plus/saasAttendance/settings/index.js +262 -0
- package/es/plus/saasAttendance/settings/index.less +510 -0
- package/es/plus/saasAttendance/settings/serve.d.ts +27 -0
- package/es/plus/saasAttendance/settings/serve.js +83 -0
- package/es/plus/saasAttendance/settings/types.js +1 -0
- package/es/plus/saasCreateOrganization/locales.d.ts +23 -0
- package/es/plus/saasCreateOrganization/locales.js +8 -0
- package/es/plus/saasLogin/locales.d.ts +83 -0
- package/es/plus/saasLogin/locales.js +32 -0
- package/es/plus/saasRegister/locales.d.ts +193 -0
- package/es/plus/saasRegister/locales.js +76 -0
- package/es/plus/saasRole/components/PermissionManager/index.d.ts +19 -0
- package/es/plus/saasRole/components/PermissionManager/index.js +211 -0
- package/es/plus/saasRole/components/PermissionManager/index.less +71 -0
- package/es/plus/saasRole/index.d.ts +14 -0
- package/es/plus/saasRole/index.js +1036 -0
- package/es/plus/saasRole/index.less +196 -0
- package/es/plus/saasRole/locales.d.ts +319 -0
- package/es/plus/saasRole/locales.js +319 -0
- package/es/plus/saasRole/serve.d.ts +72 -0
- package/es/plus/saasRole/serve.js +304 -0
- package/es/plus/saasRole/types.d.ts +177 -0
- package/es/plus/saasRole/types.js +1 -0
- package/es/plus/saasRole/utils.d.ts +0 -0
- package/es/plus/saasRole/utils.js +0 -0
- package/es/plus/saasTeamMembers/components/MemberDrawer/ExtensionFormTabContent.d.ts +31 -0
- package/es/plus/saasTeamMembers/components/MemberDrawer/ExtensionFormTabContent.js +503 -0
- package/es/plus/saasTeamMembers/components/MemberDrawer/index.d.ts +23 -0
- package/es/plus/saasTeamMembers/components/MemberDrawer/index.js +634 -0
- package/es/plus/saasTeamMembers/components/MemberDrawer/index.less +178 -0
- package/es/plus/saasTeamMembers/index.d.ts +5 -0
- package/es/plus/saasTeamMembers/index.js +529 -0
- package/es/plus/saasTeamMembers/index.less +87 -0
- package/es/plus/saasTeamMembers/locales.js +591 -0
- package/es/plus/saasTeamMembers/serve.d.ts +95 -0
- package/es/plus/saasTeamMembers/serve.js +374 -0
- package/es/plus/saasTeamMembers/type.d.ts +158 -0
- package/es/plus/saasTeamMembers/type.js +1 -0
- package/es/plus/selectHolder/locales.js +18 -0
- package/es/plus/skuOptionsSelection/components/NormalCard/index.js +6 -5
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.js +3 -2
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.less +2 -0
- package/es/plus/skuOptionsSelection/index.js +2 -2
- package/es/plus/skuOptionsSelection/locales.js +20 -0
- package/es/plus/skuOptionsSelection/store/store.js +2 -1
- package/es/plus/skuOptionsSelection/types.js +4 -0
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.js +10 -1
- package/es/plus/skuOptionsSelection/utils/transformOptionGroup.js +10 -1
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
- package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +9 -2
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +8 -4
- package/es/plus/skuOptionsSelection/utils/transformVariantGroup.js +8 -2
- package/es/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +2 -0
- package/es/plus/walletEditor/components/sortableWalletPassTypes/index.js +12 -4
- package/es/plus/walletEditor/locales.d.ts +223 -0
- package/es/plus/walletEditor/locales.js +100 -0
- package/es/plus/walletEditor/types.d.ts +54 -0
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/passDetail/index.js +80 -39
- package/es/plus/walletPassGallery/components/passList/index.js +12 -4
- package/es/plus/walletPassGallery/components/recharge/index.js +13 -5
- package/es/plus/walletPassGallery/components/recharge/index.less +70 -1
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +2 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.js +19 -2
- package/es/plus/walletPassGallery/index.d.ts +4 -0
- package/es/plus/walletPassGallery/index.js +95 -46
- package/es/plus/walletPassGallery/locales.js +216 -3
- package/es/plus/walletPassGallery/serve.d.ts +3 -1
- package/es/plus/walletPassGallery/serve.js +13 -13
- package/es/plus/walletPassGallery/utils.d.ts +48 -0
- package/es/pro/Cards/components/SKUCard/index.d.ts +1 -56
- package/es/pro/Cards/components/SKUCard/index.js +50 -20
- package/es/pro/Cards/components/SKUCard/index.less +23 -2
- package/es/pro/Cards/components/SKUCard/locales.js +11 -0
- package/es/pro/Cards/components/SKUCard/types.js +1 -0
- package/es/pro/Login2.0/Login2.js +8 -8
- package/es/pro/Login2.0/locales.js +365 -0
- package/es/pro/NumericStepper/index.d.ts +73 -0
- package/es/pro/NumericStepper/index.js +181 -107
- package/es/pro/NumericStepper/index.less +287 -143
- package/es/pro/Selector/BatchSelectorDemo.js +2 -12
- package/es/pro/Selector/Selector.js +39 -30
- package/es/pro/Selector/SelectorGroup.d.ts +1 -1
- package/es/pro/Selector/SelectorGroup.js +5 -1
- package/es/pro/Selector/components/Card/index.js +11 -10
- package/es/pro/Selector/components/Card/index.less +30 -14
- package/es/pro/Selector/components/Indicator/index.js +3 -2
- package/es/pro/Selector/components/Indicator/index.less +16 -13
- package/es/pro/Selector/components/LayoutContainer/index.js +226 -9
- package/es/pro/Selector/components/LayoutContainer/index.less +19 -0
- package/es/pro/Selector/components/Media/index.less +1 -1
- package/es/pro/Selector/demo.js +1 -1
- package/es/pro/Selector/hooks/usePresetItemProps.js +2 -0
- package/es/pro/Selector/hooks/usePresetProps.js +60 -6
- package/es/pro/Selector/locales.js +58 -0
- package/es/pro/Selector/selector.less +0 -64
- package/es/pro/Selector/selectorGroup.less +9 -1
- package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.d.ts +11 -0
- package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.js +54 -0
- package/es/pro/comprehensiveSearch/components/deviceIconGroup/index.less +28 -0
- package/es/pro/comprehensiveSearch/components/index.d.ts +2 -0
- package/es/pro/comprehensiveSearch/components/index.js +2 -0
- package/es/pro/comprehensiveSearch/components/searchSection/index.d.ts +24 -0
- package/es/pro/comprehensiveSearch/components/searchSection/index.js +141 -0
- package/es/pro/comprehensiveSearch/components/searchSection/index.less +100 -0
- package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +23 -0
- package/es/pro/comprehensiveSearch/components/searchSection/locales.js +22 -0
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
- package/es/pro/comprehensiveSearch/hooks/useNativeScanner.js +24 -0
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
- package/es/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +44 -0
- package/es/pro/comprehensiveSearch/index.d.ts +7 -0
- package/es/pro/comprehensiveSearch/index.js +207 -0
- package/es/pro/comprehensiveSearch/index.less +196 -0
- package/es/pro/comprehensiveSearch/locales.d.ts +23 -0
- package/es/pro/comprehensiveSearch/locales.js +22 -0
- package/es/pro/comprehensiveSearch/types.d.ts +32 -0
- package/es/pro/comprehensiveSearch/types.js +1 -0
- package/es/pro/keyboards/index.d.ts +2 -0
- package/es/pro/keyboards/index.js +1 -0
- package/es/pro/keyboards/locales.js +57 -0
- package/es/pro/keyboards/numberKeyboard/index.d.ts +16 -0
- package/es/pro/keyboards/numberKeyboard/index.js +523 -0
- package/es/pro/keyboards/numberKeyboard/index.less +59 -0
- package/es/pro/keyboards/numberKeyboard/types.js +1 -0
- package/es/pro/numberKeyboard/locales.d.ts +18 -0
- package/es/pro/numberKeyboard/locales.js +6 -0
- package/es/pro/pisellPhoneKeyboard/index.d.ts +13 -0
- package/es/pro/pisellPhoneKeyboard/index.js +210 -0
- package/es/pro/pisellPhoneKeyboard/index.less +157 -0
- package/es/pro/pisellPhoneKeyboard/locales.d.ts +18 -0
- package/es/pro/pisellPhoneKeyboard/locales.js +17 -0
- package/lib/components/appointmentBooking/components/Date/state.d.ts +63 -0
- package/lib/components/appointmentBooking/components/Date/state.js +3 -1
- package/lib/components/appointmentBooking/locales.js +240 -0
- package/lib/components/authentication/admin/AuthMethods/locales.d.ts +413 -0
- package/lib/components/authentication/admin/AuthMethods/locales.js +164 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +17 -9
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +138 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +54 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +43 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +2 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +118 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +46 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +35 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +14 -6
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +43 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +16 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +10 -2
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +108 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +42 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +28 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +14 -6
- package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +63 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/locales.js +24 -0
- package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +108 -0
- package/lib/components/authentication/admin/CustomerAuth/locales.js +42 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +178 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/locales.js +70 -0
- package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +93 -0
- package/lib/components/authentication/admin/DeviceAuth/locales.js +36 -0
- package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +148 -0
- package/lib/components/authentication/admin/OAuthConfig/locales.js +58 -0
- package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +88 -0
- package/lib/components/authentication/admin/OrgAdminAuth/locales.js +34 -0
- package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +78 -0
- package/lib/components/authentication/admin/POSOperatorAuth/locales.js +30 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +88 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/locales.js +34 -0
- package/lib/components/booking/components/footer/index.js +5 -0
- package/lib/components/booking/components/footer/utils.js +15 -3
- package/lib/components/booking/dashboard/serve.d.ts +1 -0
- package/lib/components/booking/editBookingModal/locales.d.ts +33 -0
- package/lib/components/booking/editBookingModal/locales.js +12 -0
- package/lib/components/booking/editBookingModal/mock.d.ts +991 -0
- package/lib/components/booking/editBookingModal/mock.js +22 -0
- package/lib/components/booking/forms/serve.d.ts +18 -0
- package/lib/components/booking/hooks/useClearCart.d.ts +1 -1
- package/lib/components/booking/hooks/useClearCart.js +28 -6
- package/lib/components/booking/info/client/serve.d.ts +2 -0
- package/lib/components/booking/info/header/index.js +7 -7
- package/lib/components/booking/info/header/index.less +5 -5
- package/lib/components/booking/info/hooks/useHolderConfig.d.ts +9 -0
- package/lib/components/booking/info/pet/serve.d.ts +1 -0
- package/lib/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
- package/lib/components/booking/info/service/index.less +4 -2
- package/lib/components/booking/info/service/serve.d.ts +20 -0
- package/lib/components/booking/info2/serve.d.ts +6 -0
- package/lib/components/booking/info2/service/addService/mock.d.ts +216 -0
- package/lib/components/booking/info2/service/addService/mock.js +4 -0
- package/lib/components/booking/info2/service/editService/index.js +24 -1
- package/lib/components/booking/info2/service/editService/utils.d.ts +15 -0
- package/lib/components/booking/info2/service/editService/utils.js +38 -2
- package/lib/components/booking/locales.d.ts +1494 -0
- package/lib/components/booking/locales.js +700 -0
- package/lib/components/booking/notes/NoteBlock/index.js +2 -1
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +10 -0
- package/lib/components/ecocup/components/AddCustomerModal/index.js +212 -0
- package/lib/components/ecocup/components/AddCustomerModal/index.less +9 -0
- package/lib/components/ecocup/components/CupActionList/index.d.ts +14 -0
- package/lib/components/ecocup/components/CupActionList/index.js +116 -0
- package/lib/components/ecocup/components/CupActionList/index.less +102 -0
- package/lib/components/ecocup/components/CupActionModal/hooks.js +55 -0
- package/lib/components/ecocup/components/CupActionModal/index.d.ts +15 -0
- package/lib/components/ecocup/components/CupActionModal/index.js +125 -0
- package/lib/components/ecocup/components/CupActionModal/index.less +38 -0
- package/lib/components/ecocup/components/CupInfoCard/index.d.ts +10 -0
- package/lib/components/ecocup/components/CupInfoCard/index.js +43 -0
- package/lib/components/ecocup/components/CupInfoCard/index.less +11 -0
- package/lib/components/ecocup/components/CupStatusModal/hooks.js +115 -0
- package/lib/components/ecocup/components/CupStatusModal/index.d.ts +14 -0
- package/lib/components/ecocup/components/CupStatusModal/index.js +221 -0
- package/lib/components/ecocup/components/CupStatusModal/index.less +73 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/hooks.js +89 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +20 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/index.js +178 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/index.less +68 -0
- package/lib/components/ecocup/components/CustomerCard/index.d.ts +9 -0
- package/lib/components/ecocup/components/CustomerCard/index.js +58 -0
- package/lib/components/ecocup/components/CustomerCard/index.less +50 -0
- package/lib/components/ecocup/components/MoreDropdown/index.d.ts +9 -0
- package/lib/components/{eftposPay/mx51/Result.js → ecocup/components/MoreDropdown/index.js} +31 -43
- package/lib/components/ecocup/components/PageHeader/index.d.ts +9 -0
- package/lib/components/ecocup/components/PageHeader/index.js +66 -0
- package/lib/components/ecocup/components/PageHeader/index.less +31 -0
- package/lib/components/{eftposPay/mx51/types.js → ecocup/components/SearchBar/const.js} +28 -18
- package/lib/components/ecocup/components/SearchBar/hooks.d.ts +44 -0
- package/lib/components/ecocup/components/SearchBar/hooks.js +135 -0
- package/lib/components/ecocup/components/SearchBar/index.d.ts +14 -0
- package/lib/components/ecocup/components/SearchBar/index.js +226 -0
- package/lib/components/ecocup/components/SearchBar/index.less +88 -0
- package/lib/components/ecocup/components/SettingModal/const.js +48 -0
- package/lib/components/ecocup/components/SettingModal/index.d.ts +9 -0
- package/lib/components/ecocup/components/SettingModal/index.js +199 -0
- package/lib/components/ecocup/components/SettingModal/index.less +9 -0
- package/lib/components/ecocup/cupList/const.js +344 -0
- package/lib/components/ecocup/cupList/hooks/index.d.ts +4 -0
- package/lib/components/ecocup/cupList/hooks/index.js +43 -0
- package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +45 -0
- package/lib/components/ecocup/cupList/hooks/useColumns.js +200 -0
- package/lib/components/ecocup/cupList/hooks/useCupApi.d.ts +41 -0
- package/lib/components/ecocup/cupList/hooks/useCupApi.js +227 -0
- package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +3 -0
- package/lib/components/ecocup/cupList/hooks/useSummary.js +83 -0
- package/lib/components/ecocup/cupList/index.d.ts +7 -0
- package/lib/components/ecocup/cupList/index.js +262 -0
- package/lib/components/ecocup/cupList/index.less +159 -0
- package/lib/components/ecocup/cupProject/const.js +65 -0
- package/lib/components/ecocup/cupProject/index.d.ts +3 -0
- package/lib/components/ecocup/cupProject/index.js +135 -0
- package/lib/components/ecocup/cupProject/index.less +41 -0
- package/lib/components/ecocup/customerList/const.js +93 -0
- package/lib/components/ecocup/customerList/hooks/index.js +32 -0
- package/lib/components/ecocup/customerList/hooks/useColumns.js +89 -0
- package/lib/components/ecocup/customerList/hooks/useCustomerApi.js +56 -0
- package/lib/components/ecocup/customerList/index.d.ts +7 -0
- package/lib/components/ecocup/customerList/index.js +138 -0
- package/lib/components/ecocup/customerList/index.less +15 -0
- package/lib/components/ecocup/hooks.js +169 -0
- package/lib/components/ecocup/locales.js +706 -0
- package/lib/components/ecocup/types.js +57 -0
- package/lib/components/ecocup/utils/download.js +47 -0
- package/lib/components/ecocup/utils/index.js +42 -0
- package/lib/components/ecocup/utils/scanListener.js +90 -0
- package/lib/components/eftpos/const.js +0 -2
- package/lib/components/eftpos/device.d.ts +1 -3
- package/lib/components/eftpos/device.js +3 -3
- package/lib/components/eftpos/hooks.js +0 -30
- package/lib/components/eftpos/index.js +8 -106
- package/lib/components/eftpos/index.less +1 -26
- package/lib/components/eftpos/locales.js +78 -101
- package/lib/components/eftpos/table.js +2 -30
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/app.d.ts +11 -0
- package/lib/components/eftposPay/component/fail/failCustom.js +15 -9
- package/lib/components/eftposPay/component/fail/index.js +4 -1
- package/lib/components/eftposPay/const.js +0 -2
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/device.js +94 -12
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/index.js +5 -1
- package/lib/components/eftposPay/linkly/const.js +1 -1
- package/lib/components/eftposPay/linkly/index.js +0 -1
- package/lib/components/eftposPay/locales.js +252 -5
- package/lib/components/eftposPay/manufacturer.js +0 -6
- package/lib/components/eftposPay/pay.js +2 -4
- package/lib/components/eftposPay/payo/config.js +1 -0
- package/lib/components/eftposPay/payo/const.js +1 -1
- package/lib/components/eftposPay/tyro/const.js +1 -1
- package/lib/components/eftposPay/windcave/const.js +1 -1
- package/lib/components/eftposPay/windcave/windcave.js +9 -9
- package/lib/components/eventBooking/components/Voucher/components/locales.js +22 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/eventBooking/locales.d.ts +408 -0
- package/lib/components/eventBooking/locales.js +162 -0
- package/lib/components/kioskSkuDetail/index.js +27 -3
- package/lib/components/kioskSkuDetail/locales.d.ts +48 -0
- package/lib/components/kioskSkuDetail/locales.js +24 -3
- package/lib/components/login/locales.d.ts +38 -0
- package/lib/components/login/locales.js +14 -0
- package/lib/components/pay/toC/PaymentList/payment/google_pay.svg +26 -8
- package/lib/components/pay/toC/PaymentList/payment/google_pay2.svg +9 -0
- package/lib/components/pay/toC/PaymentList/serve.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.js +40 -17
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.less +110 -9
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/index.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/index.js +32 -12
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +20 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +8 -2
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +20 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +7 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.js +98 -24
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.less +47 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.d.ts +34 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.js +107 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/components/TDSErrorModal/index.less +52 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +9 -1
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.js +149 -5
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +23 -3
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +121 -39
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.js +7 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +3 -4
- package/lib/components/pay/toC/PaymentMethods/index.js +17 -12
- package/lib/components/pay/toC/index.js +34 -3
- package/lib/components/pay/toC/locales.js +331 -12
- package/lib/components/pay/toC/serve.d.ts +12 -0
- package/lib/components/pay/toC/serve.js +11 -1
- package/lib/components/pay/toC/utils.d.ts +5 -0
- package/lib/components/pay/toC/utils.js +17 -0
- package/lib/components/pinModal/locales.d.ts +43 -0
- package/lib/components/pinModal/locales.js +16 -0
- package/lib/components/pinVerifyModal/locales.d.ts +38 -0
- package/lib/components/pinVerifyModal/locales.js +14 -0
- package/lib/components/pisellSelectCustomerModal/locales.js +52 -0
- package/lib/components/productExtension/locales.d.ts +78 -0
- package/lib/components/productExtension/locales.js +30 -0
- package/lib/components/productSelect/components/pisellPriceText/index.js +6 -4
- package/lib/components/productSelect/locales.d.ts +38 -0
- package/lib/components/productSelect/locales.js +23 -3
- package/lib/components/ruleSetting/locales.d.ts +78 -0
- package/lib/components/ruleSetting/locales.js +30 -0
- package/lib/components/schedules/locales.js +56 -0
- package/lib/components/shoppingCart/Provider.d.ts +3 -0
- package/lib/components/shoppingCart/components/Cart/index.less +1 -0
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -1
- package/lib/components/shoppingCart/hooks/useClearCart.js +42 -11
- package/lib/components/shoppingCart/locales.js +20 -0
- package/lib/components/shoppingCart/mock.d.ts +40 -0
- package/lib/components/shoppingCart/utils.d.ts +63 -0
- package/lib/components/stepController/locales.d.ts +43 -0
- package/lib/components/stepController/locales.js +16 -0
- package/lib/components/subTotal/locales.js +26 -0
- package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/index.d.ts +59 -0
- package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/index.js +228 -0
- package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/serve.d.ts +70 -0
- package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/serve.js +195 -0
- package/lib/components/systemSettings/registry/components/ItemModal.js +347 -224
- package/lib/components/systemSettings/registry/components/OptionDataSource/OptionTable.d.ts +8 -0
- package/lib/components/systemSettings/registry/components/OptionDataSource/OptionTable.js +166 -0
- package/lib/components/systemSettings/registry/components/OptionDataSource/index.d.ts +10 -0
- package/lib/components/systemSettings/registry/components/OptionDataSource/index.js +210 -0
- package/lib/components/systemSettings/registry/components/OptionDataSource/index.less +37 -0
- package/lib/components/systemSettings/registry/index.js +20 -16
- package/lib/components/systemSettings/registry/index.less +6 -7
- package/lib/components/systemSettings/registry/locales.js +274 -3
- package/lib/components/taxSelect/locales.js +14 -0
- package/lib/components/ticketBooking/locales.js +136 -0
- package/lib/components/ticketBooking/utils/formatTime.d.ts +2 -0
- package/lib/components/ticketBooking/utils/formatTime.js +8 -2
- package/lib/components/wallet/utils.d.ts +48 -0
- package/lib/components/walletList/index.js +10 -0
- package/lib/components/walletList/locales.d.ts +43 -0
- package/lib/components/walletList/locales.js +16 -0
- package/lib/components/walletList/types/index.d.ts +196 -0
- package/lib/hooks/useEngineContext.js +10 -2
- package/lib/hooks/useLocale.js +7 -2
- package/lib/hooks/useThemeTokens.js +40 -0
- package/lib/hooks/useTranslationOriginal.d.ts +1 -0
- package/lib/hooks/useTranslationOriginal.js +42 -0
- package/lib/index.d.ts +16 -3
- package/lib/index.js +39 -3
- package/lib/plus/clientCard/index.d.ts +7 -0
- package/lib/plus/clientCard/index.js +457 -0
- package/lib/plus/clientCard/index.less +515 -0
- package/lib/plus/clientCard/line/index.d.ts +9 -0
- package/lib/plus/clientCard/line/index.js +153 -0
- package/lib/plus/clientCard/line/index.less +142 -0
- package/lib/plus/clientCard/locales.d.ts +28 -0
- package/lib/plus/clientCard/locales.js +51 -0
- package/lib/plus/clientCard/types.d.ts +135 -0
- package/lib/plus/clientCard/types.js +17 -0
- package/lib/plus/clientCard/utils.d.ts +8 -0
- package/lib/plus/clientCard/utils.js +75 -0
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +3 -0
- package/lib/plus/clinetSearch/Add/BirthdayField/index.js +256 -0
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +3 -0
- package/lib/plus/clinetSearch/Add/GenderField/index.js +52 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +3 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.js +78 -0
- package/lib/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
- package/lib/plus/clinetSearch/Add/PhoneField/serve.js +193 -0
- package/lib/plus/clinetSearch/Add/index.d.ts +18 -0
- package/lib/plus/clinetSearch/Add/index.js +244 -0
- package/lib/plus/clinetSearch/Add/index.less +30 -0
- package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
- package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +235 -0
- package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
- package/lib/plus/clinetSearch/InfiniteScroll/index.js +35 -0
- package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
- package/lib/plus/clinetSearch/InfiniteScroll/types.js +17 -0
- package/lib/plus/clinetSearch/index.d.ts +18 -0
- package/lib/plus/clinetSearch/index.js +237 -0
- package/lib/plus/clinetSearch/index.less +95 -0
- package/lib/plus/clinetSearch/locales.d.ts +178 -0
- package/lib/plus/clinetSearch/locales.js +201 -0
- package/lib/plus/clinetSearch/serve.d.ts +1 -0
- package/lib/{components/eftposPay/aggregatePayment/index.js → plus/clinetSearch/serve.js} +11 -10
- package/lib/plus/clinetSearch/types.d.ts +70 -0
- package/lib/plus/clinetSearch/types.js +17 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.js +23 -23
- package/lib/plus/contactInfo/locales.d.ts +23 -0
- package/lib/plus/contactInfo/locales.js +8 -0
- package/lib/plus/contactInfoModal/locales.d.ts +108 -0
- package/lib/plus/contactInfoModal/locales.js +42 -0
- package/lib/plus/orderList/components/BatchActionBar.d.ts +9 -0
- package/lib/plus/orderList/components/BatchActionBar.js +567 -0
- package/lib/plus/orderList/components/FilterList.d.ts +8 -0
- package/lib/plus/orderList/components/FilterList.js +121 -0
- package/lib/plus/orderList/components/HandleActions.d.ts +6 -0
- package/lib/plus/orderList/components/HandleActions.js +52 -0
- package/lib/plus/orderList/components/QuickFilter.d.ts +5 -0
- package/lib/plus/orderList/components/QuickFilter.js +43 -0
- package/lib/plus/orderList/components/Reset.d.ts +7 -0
- package/lib/plus/orderList/components/Reset.js +58 -0
- package/lib/plus/orderList/components/Toolbar.d.ts +7 -0
- package/lib/plus/orderList/components/Toolbar.js +68 -0
- package/lib/plus/orderList/config.d.ts +155 -0
- package/lib/plus/orderList/config.js +764 -0
- package/lib/plus/orderList/index.d.ts +10 -0
- package/lib/plus/orderList/index.js +132 -0
- package/lib/plus/orderList/index.less +125 -0
- package/lib/plus/orderList/locales.js +737 -0
- package/lib/plus/orderList/serve.d.ts +42 -0
- package/lib/plus/orderList/serve.js +177 -0
- package/lib/plus/pisellSalesGrid/PisellSalesGrid.d.ts +5 -0
- package/lib/plus/pisellSalesGrid/PisellSalesGrid.js +339 -0
- package/lib/plus/pisellSalesGrid/PisellSalesGrid.less +16 -0
- package/lib/plus/pisellSalesGrid/PisellSalesGrid.stories.d.ts +14 -0
- package/lib/plus/pisellSalesGrid/PisellSalesGrid.stories.js +455 -0
- package/lib/plus/pisellSalesGrid/hooks/useActions.d.ts +19 -0
- package/lib/plus/pisellSalesGrid/hooks/useActions.js +545 -0
- package/lib/plus/pisellSalesGrid/index.d.ts +4 -0
- package/lib/plus/pisellSalesGrid/index.js +42 -0
- package/lib/plus/pisellSalesGrid/locales.js +29 -0
- package/lib/plus/pisellSalesGrid/serve.d.ts +19 -0
- package/lib/plus/pisellSalesGrid/serve.js +142 -0
- package/lib/plus/pisellSalesGrid/types.js +17 -0
- package/lib/plus/pisellSalesManagement/components/BookingFormsPreview.d.ts +15 -0
- package/lib/plus/pisellSalesManagement/components/BookingFormsPreview.js +253 -0
- package/lib/plus/pisellSalesManagement/components/BookingNotesPreview.d.ts +19 -0
- package/lib/plus/pisellSalesManagement/components/BookingNotesPreview.js +193 -0
- package/lib/plus/pisellSalesManagement/components/ResourceSelector.d.ts +9 -0
- package/lib/plus/pisellSalesManagement/components/ResourceSelector.js +106 -0
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +185 -0
- package/lib/plus/pisellSalesManagement/config/booking.js +500 -0
- package/lib/plus/pisellSalesManagement/config/index.d.ts +2 -0
- package/lib/plus/pisellSalesManagement/config/index.js +43 -0
- package/lib/plus/pisellSalesManagement/config/order.d.ts +172 -0
- package/lib/plus/pisellSalesManagement/config/order.js +492 -0
- package/lib/plus/pisellSalesManagement/hooks/perspectiveUtils.js +113 -0
- package/lib/plus/pisellSalesManagement/hooks/useBookingPerspective.d.ts +2 -0
- package/lib/plus/pisellSalesManagement/hooks/useBookingPerspective.js +699 -0
- package/lib/plus/pisellSalesManagement/hooks/useOrderPerspective.d.ts +2 -0
- package/lib/plus/pisellSalesManagement/hooks/useOrderPerspective.js +700 -0
- package/lib/plus/pisellSalesManagement/hooks/usePerspectives.d.ts +5 -0
- package/lib/plus/pisellSalesManagement/hooks/usePerspectives.js +42 -0
- package/lib/plus/pisellSalesManagement/index.d.ts +10 -0
- package/lib/plus/pisellSalesManagement/index.js +113 -0
- package/lib/plus/pisellSalesManagement/locales.js +326 -0
- package/lib/plus/pisellSalesManagement/serve.d.ts +26 -0
- package/lib/plus/pisellSalesManagement/serve.js +120 -0
- package/lib/plus/productSelect/ProductList/gridComponents.d.ts +44 -0
- package/lib/plus/productSelect/components/pisellPriceText/index.js +6 -4
- package/lib/plus/productSelect/locales.d.ts +38 -0
- package/lib/plus/productSelect/locales.js +23 -3
- package/lib/plus/saasAttendance/index.d.ts +6 -0
- package/lib/plus/saasAttendance/index.js +39 -0
- package/lib/plus/saasAttendance/locales.js +615 -0
- package/lib/plus/saasAttendance/settings/BasicInfoTab.d.ts +5 -0
- package/lib/plus/saasAttendance/settings/BasicInfoTab.js +152 -0
- package/lib/plus/saasAttendance/settings/ClockInMethodTab.d.ts +8 -0
- package/lib/plus/saasAttendance/settings/ClockInMethodTab.js +88 -0
- package/lib/plus/saasAttendance/settings/CorrectionPolicyTab.d.ts +8 -0
- package/lib/plus/saasAttendance/settings/CorrectionPolicyTab.js +369 -0
- package/lib/plus/saasAttendance/settings/PermissonTab.d.ts +5 -0
- package/lib/plus/saasAttendance/settings/PermissonTab.js +128 -0
- package/lib/plus/saasAttendance/settings/ShiftScheduleTab.d.ts +5 -0
- package/lib/plus/saasAttendance/settings/ShiftScheduleTab.js +107 -0
- package/lib/plus/saasAttendance/settings/components/MapField.d.ts +78 -0
- package/lib/plus/saasAttendance/settings/components/MapField.js +670 -0
- package/lib/plus/saasAttendance/settings/components/index.d.ts +3 -0
- package/lib/plus/saasAttendance/settings/components/index.js +42 -0
- package/lib/plus/saasAttendance/settings/components/membersField/index.d.ts +8 -0
- package/lib/plus/saasAttendance/settings/components/membersField/index.js +247 -0
- package/lib/plus/saasAttendance/settings/components/membersField/index.less +70 -0
- package/lib/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.d.ts +7 -0
- package/lib/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.js +150 -0
- package/lib/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.less +119 -0
- package/lib/plus/saasAttendance/settings/components/shiftModal/index.d.ts +18 -0
- package/lib/plus/saasAttendance/settings/components/shiftModal/index.js +447 -0
- package/lib/plus/saasAttendance/settings/index.d.ts +18 -0
- package/lib/plus/saasAttendance/settings/index.js +295 -0
- package/lib/plus/saasAttendance/settings/index.less +510 -0
- package/lib/plus/saasAttendance/settings/serve.d.ts +27 -0
- package/lib/{components/eftpos/SettlementModal → plus/saasAttendance/settings}/serve.js +25 -16
- package/lib/plus/saasAttendance/settings/types.js +17 -0
- package/lib/plus/saasCreateOrganization/locales.d.ts +23 -0
- package/lib/plus/saasCreateOrganization/locales.js +8 -0
- package/lib/plus/saasLogin/locales.d.ts +83 -0
- package/lib/plus/saasLogin/locales.js +32 -0
- package/lib/plus/saasRegister/locales.d.ts +193 -0
- package/lib/plus/saasRegister/locales.js +76 -0
- package/lib/plus/saasRole/components/PermissionManager/index.d.ts +19 -0
- package/lib/plus/saasRole/components/PermissionManager/index.js +159 -0
- package/lib/plus/saasRole/components/PermissionManager/index.less +71 -0
- package/lib/plus/saasRole/index.d.ts +14 -0
- package/lib/plus/saasRole/index.js +780 -0
- package/lib/plus/saasRole/index.less +196 -0
- package/lib/plus/saasRole/locales.d.ts +319 -0
- package/lib/plus/saasRole/locales.js +345 -0
- package/lib/plus/saasRole/serve.d.ts +72 -0
- package/lib/plus/saasRole/serve.js +100 -0
- package/lib/plus/saasRole/types.d.ts +177 -0
- package/lib/plus/saasRole/types.js +17 -0
- package/lib/plus/saasRole/utils.d.ts +0 -0
- package/lib/plus/saasRole/utils.js +0 -0
- package/lib/plus/saasTeamMembers/components/MemberDrawer/ExtensionFormTabContent.d.ts +31 -0
- package/lib/plus/saasTeamMembers/components/MemberDrawer/ExtensionFormTabContent.js +393 -0
- package/lib/plus/saasTeamMembers/components/MemberDrawer/index.d.ts +23 -0
- package/lib/plus/saasTeamMembers/components/MemberDrawer/index.js +672 -0
- package/lib/plus/saasTeamMembers/components/MemberDrawer/index.less +178 -0
- package/lib/plus/saasTeamMembers/index.d.ts +5 -0
- package/lib/plus/saasTeamMembers/index.js +448 -0
- package/lib/plus/saasTeamMembers/index.less +87 -0
- package/lib/plus/saasTeamMembers/locales.js +617 -0
- package/lib/plus/saasTeamMembers/serve.d.ts +95 -0
- package/lib/plus/saasTeamMembers/serve.js +132 -0
- package/lib/plus/saasTeamMembers/type.d.ts +158 -0
- package/lib/plus/saasTeamMembers/type.js +17 -0
- package/lib/plus/selectHolder/locales.js +14 -0
- package/lib/plus/skuOptionsSelection/components/NormalCard/index.js +11 -10
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.js +3 -2
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.less +2 -0
- package/lib/plus/skuOptionsSelection/index.js +2 -2
- package/lib/plus/skuOptionsSelection/locales.js +20 -0
- package/lib/plus/skuOptionsSelection/store/store.js +2 -1
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.js +15 -9
- package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.js +9 -6
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.js +9 -2
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +4 -0
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +7 -3
- package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.js +8 -7
- package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +2 -0
- package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.js +12 -4
- package/lib/plus/walletEditor/locales.d.ts +223 -0
- package/lib/plus/walletEditor/locales.js +100 -0
- package/lib/plus/walletEditor/types.d.ts +54 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.js +42 -5
- package/lib/plus/walletPassGallery/components/passList/index.js +12 -5
- package/lib/plus/walletPassGallery/components/recharge/index.js +7 -5
- package/lib/plus/walletPassGallery/components/recharge/index.less +70 -1
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +2 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.js +17 -2
- package/lib/plus/walletPassGallery/index.d.ts +4 -0
- package/lib/plus/walletPassGallery/index.js +116 -45
- package/lib/plus/walletPassGallery/locales.js +210 -3
- package/lib/plus/walletPassGallery/serve.d.ts +3 -1
- package/lib/plus/walletPassGallery/serve.js +2 -2
- package/lib/plus/walletPassGallery/utils.d.ts +48 -0
- package/lib/pro/Cards/components/SKUCard/index.d.ts +1 -56
- package/lib/pro/Cards/components/SKUCard/index.js +59 -15
- package/lib/pro/Cards/components/SKUCard/index.less +23 -2
- package/lib/pro/Cards/components/SKUCard/locales.js +35 -0
- package/lib/pro/Cards/components/SKUCard/types.js +17 -0
- package/lib/pro/Login2.0/Login2.js +8 -8
- package/lib/pro/Login2.0/locales.js +365 -0
- package/lib/pro/NumericStepper/index.d.ts +73 -0
- package/lib/pro/NumericStepper/index.js +184 -88
- package/lib/pro/NumericStepper/index.less +287 -143
- package/lib/pro/Selector/BatchSelectorDemo.js +13 -19
- package/lib/pro/Selector/Selector.js +34 -17
- package/lib/pro/Selector/SelectorGroup.d.ts +1 -1
- package/lib/pro/Selector/SelectorGroup.js +7 -1
- package/lib/pro/Selector/components/Card/index.js +19 -8
- package/lib/pro/Selector/components/Card/index.less +30 -14
- package/lib/pro/Selector/components/Indicator/index.js +2 -2
- package/lib/pro/Selector/components/Indicator/index.less +16 -13
- package/lib/pro/Selector/components/LayoutContainer/index.js +130 -2
- package/lib/pro/Selector/components/LayoutContainer/index.less +19 -0
- package/lib/pro/Selector/components/Media/index.js +7 -4
- package/lib/pro/Selector/components/Media/index.less +1 -1
- package/lib/pro/Selector/demo.js +1 -1
- package/lib/pro/Selector/hooks/usePresetItemProps.js +2 -0
- package/lib/pro/Selector/hooks/usePresetProps.js +28 -6
- package/lib/pro/Selector/locales.js +50 -0
- package/lib/pro/Selector/selector.less +0 -64
- package/lib/pro/Selector/selectorGroup.less +9 -1
- package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.d.ts +11 -0
- package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.js +64 -0
- package/lib/pro/comprehensiveSearch/components/deviceIconGroup/index.less +28 -0
- package/lib/pro/comprehensiveSearch/components/index.d.ts +2 -0
- package/lib/pro/comprehensiveSearch/components/index.js +42 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/index.d.ts +24 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/index.js +154 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/index.less +100 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +23 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +46 -0
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.d.ts +5 -0
- package/lib/pro/comprehensiveSearch/hooks/useNativeScanner.js +56 -0
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.d.ts +9 -0
- package/lib/pro/comprehensiveSearch/hooks/useTerminalPeripherals.js +70 -0
- package/lib/pro/comprehensiveSearch/index.d.ts +7 -0
- package/lib/pro/comprehensiveSearch/index.js +190 -0
- package/lib/pro/comprehensiveSearch/index.less +196 -0
- package/lib/pro/comprehensiveSearch/locales.d.ts +23 -0
- package/lib/pro/comprehensiveSearch/locales.js +46 -0
- package/lib/pro/comprehensiveSearch/types.d.ts +32 -0
- package/lib/pro/comprehensiveSearch/types.js +17 -0
- package/lib/pro/keyboards/index.d.ts +2 -0
- package/lib/pro/keyboards/index.js +39 -0
- package/lib/pro/keyboards/locales.js +61 -0
- package/lib/pro/keyboards/numberKeyboard/index.d.ts +16 -0
- package/lib/pro/keyboards/numberKeyboard/index.js +400 -0
- package/lib/pro/keyboards/numberKeyboard/index.less +59 -0
- package/lib/pro/keyboards/numberKeyboard/types.js +17 -0
- package/lib/pro/numberKeyboard/locales.d.ts +18 -0
- package/lib/pro/numberKeyboard/locales.js +6 -0
- package/lib/pro/pisellPhoneKeyboard/index.d.ts +13 -0
- package/lib/pro/pisellPhoneKeyboard/index.js +219 -0
- package/lib/pro/pisellPhoneKeyboard/index.less +157 -0
- package/lib/pro/pisellPhoneKeyboard/locales.d.ts +18 -0
- package/lib/pro/pisellPhoneKeyboard/locales.js +41 -0
- package/lowcode/client-card/fragments/cardStyle.ts +63 -0
- package/lowcode/client-card/fragments/nameStyle.ts +34 -0
- package/lowcode/client-card/fragments/pisellAvatar.ts +87 -0
- package/lowcode/client-card/fragments/tagConfig.ts +88 -0
- package/lowcode/client-card/meta.ts +343 -0
- package/lowcode/client-search/meta.ts +316 -0
- package/lowcode/eco-cup-list/meta.ts +27 -0
- package/lowcode/eco-customer-list/meta.ts +27 -0
- package/lowcode/ecocup-cup-list/meta.ts +38 -0
- package/lowcode/ecocup-cup-project/meta.ts +35 -0
- package/lowcode/ecocup-customer-list/meta.ts +38 -0
- package/lowcode/order-list/meta.ts +87 -0
- package/lowcode/pisell-sales-management/meta.ts +88 -0
- package/lowcode/saas-attendance-settings/meta.ts +56 -0
- package/lowcode/saas-role/meta.ts +35 -0
- package/lowcode/saas-team-members/meta.ts +35 -0
- package/lowcode/selector/meta.ts +15 -2
- package/lowcode/selector.group/meta.ts +15 -2
- package/lowcode/sku-options-selection/meta.ts +106 -2
- package/lowcode/wallet-pass-gallery/meta.ts +66 -1
- package/package.json +6 -6
- package/es/components/Sales/Cart/utils.d.ts +0 -68
- package/es/components/Sales/Checkout/utils.d.ts +0 -41
- package/es/components/Sales/Summary/utils.d.ts +0 -58
- package/es/components/booking/components/voucher/utils.d.ts +0 -4
- package/es/components/booking/editBookingModal/utils.d.ts +0 -12
- package/es/components/booking/info/index.d.ts +0 -4
- package/es/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
- package/es/components/eftpos/PairModal/hooks.js +0 -67
- package/es/components/eftpos/PairModal/index.d.ts +0 -11
- package/es/components/eftpos/PairModal/index.less +0 -70
- package/es/components/eftpos/SettlementModal/Action.js +0 -141
- package/es/components/eftpos/SettlementModal/index.d.ts +0 -8
- package/es/components/eftpos/SettlementModal/index.js +0 -135
- package/es/components/eftpos/SettlementModal/index.less +0 -33
- package/es/components/eftpos/SettlementModal/serve.d.ts +0 -8
- package/es/components/eftpos/SettlementModal/serve.js +0 -171
- package/es/components/eftpos/SettlementModal/types.js +0 -35
- package/es/components/eftpos/SettlementModal/utils.d.ts +0 -18
- package/es/components/eftpos/SettlementModal/utils.js +0 -351
- package/es/components/eftpos/assets/mx51SCI.svg +0 -15
- package/es/components/eftposPay/aggregatePayment/hooks/usePayment.d.ts +0 -6
- package/es/components/eftposPay/aggregatePayment/hooks/usePayment.js +0 -125
- package/es/components/eftposPay/aggregatePayment/index.js +0 -3
- package/es/components/eftposPay/aggregatePayment/mock.js +0 -567
- package/es/components/eftposPay/aggregatePayment/service.d.ts +0 -24
- package/es/components/eftposPay/aggregatePayment/service.js +0 -70
- package/es/components/eftposPay/aggregatePayment/types.js +0 -61
- package/es/components/eftposPay/aggregatePayment/utils/logs.d.ts +0 -110
- package/es/components/eftposPay/aggregatePayment/utils/logs.js +0 -385
- package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +0 -132
- package/es/components/eftposPay/aggregatePayment/utils/payment.js +0 -1146
- package/es/components/eftposPay/manufacturer.d.ts +0 -8
- package/es/components/eftposPay/mx51/Action.js +0 -139
- package/es/components/eftposPay/mx51/Result.d.ts +0 -5
- package/es/components/eftposPay/mx51/Result.js +0 -46
- package/es/components/eftposPay/mx51/const.d.ts +0 -5
- package/es/components/eftposPay/mx51/const.js +0 -69
- package/es/components/eftposPay/mx51/index.d.ts +0 -6
- package/es/components/eftposPay/mx51/index.js +0 -401
- package/es/components/eftposPay/mx51/types.js +0 -30
- package/es/components/eftposPay/mx51/utils.js +0 -121
- package/es/components/pay/toC/PaymentList/utils.d.ts +0 -36
- package/es/components/pay/toC/PaymentMethods/StripePay/index.d.ts +0 -10
- package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
- package/es/components/workSpaceList/components/Card/constants.d.ts +0 -2
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +0 -30
- package/es/plus/skuOptionsSelection/hooks/index.d.ts +0 -3
- package/es/plus/skuOptionsSelection/hooks/useLanguage.d.ts +0 -2
- package/es/plus/skuOptionsSelection/hooks/useStore.d.ts +0 -2
- package/es/plus/skuOptionsSelection/hooks/useSymbol.d.ts +0 -2
- package/es/plus/skuOptionsSelection/store/actions.d.ts +0 -22
- package/es/plus/skuOptionsSelection/store/createStore.d.ts +0 -15
- package/es/plus/skuOptionsSelection/store/index.d.ts +0 -2
- package/es/plus/skuOptionsSelection/utils/calculateOption.d.ts +0 -6
- package/es/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +0 -37
- package/es/pro/Selector/Selector.stories.d.ts +0 -78
- package/es/pro/Selector/components/Card/types.d.ts +0 -1
- package/es/pro/Selector/components/IntersectionObserver.d.ts +0 -105
- package/es/pro/Selector/components/Media/types.d.ts +0 -47
- package/es/pro/Selector/components/index.d.ts +0 -4
- package/es/pro/Selector/index.d.ts +0 -11
- package/es/test/setup.d.ts +0 -1
- package/lib/components/Sales/Cart/utils.d.ts +0 -68
- package/lib/components/Sales/Checkout/utils.d.ts +0 -41
- package/lib/components/Sales/Summary/utils.d.ts +0 -58
- package/lib/components/booking/components/voucher/utils.d.ts +0 -4
- package/lib/components/booking/editBookingModal/utils.d.ts +0 -12
- package/lib/components/booking/info/index.d.ts +0 -4
- package/lib/components/booking/info/service/serviceManager/distributeDiscount.d.ts +0 -11
- package/lib/components/eftpos/PairModal/hooks.js +0 -70
- package/lib/components/eftpos/PairModal/index.d.ts +0 -11
- package/lib/components/eftpos/PairModal/index.js +0 -197
- package/lib/components/eftpos/PairModal/index.less +0 -70
- package/lib/components/eftpos/SettlementModal/Action.js +0 -153
- package/lib/components/eftpos/SettlementModal/index.d.ts +0 -8
- package/lib/components/eftpos/SettlementModal/index.js +0 -170
- package/lib/components/eftpos/SettlementModal/index.less +0 -33
- package/lib/components/eftpos/SettlementModal/serve.d.ts +0 -8
- package/lib/components/eftpos/SettlementModal/types.js +0 -43
- package/lib/components/eftpos/SettlementModal/utils.d.ts +0 -18
- package/lib/components/eftpos/SettlementModal/utils.js +0 -248
- package/lib/components/eftpos/assets/mx51SCI.svg +0 -15
- package/lib/components/eftposPay/aggregatePayment/hooks/usePayment.d.ts +0 -6
- package/lib/components/eftposPay/aggregatePayment/hooks/usePayment.js +0 -152
- package/lib/components/eftposPay/aggregatePayment/mock.js +0 -679
- package/lib/components/eftposPay/aggregatePayment/service.d.ts +0 -24
- package/lib/components/eftposPay/aggregatePayment/service.js +0 -81
- package/lib/components/eftposPay/aggregatePayment/types.js +0 -74
- package/lib/components/eftposPay/aggregatePayment/utils/logs.d.ts +0 -110
- package/lib/components/eftposPay/aggregatePayment/utils/logs.js +0 -302
- package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +0 -132
- package/lib/components/eftposPay/aggregatePayment/utils/payment.js +0 -760
- package/lib/components/eftposPay/manufacturer.d.ts +0 -8
- package/lib/components/eftposPay/mx51/Action.js +0 -152
- package/lib/components/eftposPay/mx51/Result.d.ts +0 -5
- package/lib/components/eftposPay/mx51/const.d.ts +0 -5
- package/lib/components/eftposPay/mx51/const.js +0 -85
- package/lib/components/eftposPay/mx51/index.d.ts +0 -6
- package/lib/components/eftposPay/mx51/index.js +0 -360
- package/lib/components/eftposPay/mx51/utils.js +0 -115
- package/lib/components/pay/toC/PaymentList/utils.d.ts +0 -36
- package/lib/components/pay/toC/PaymentMethods/StripePay/index.d.ts +0 -10
- package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +0 -8
- package/lib/components/workSpaceList/components/Card/constants.d.ts +0 -2
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +0 -30
- package/lib/plus/skuOptionsSelection/hooks/index.d.ts +0 -3
- package/lib/plus/skuOptionsSelection/hooks/useLanguage.d.ts +0 -2
- package/lib/plus/skuOptionsSelection/hooks/useStore.d.ts +0 -2
- package/lib/plus/skuOptionsSelection/hooks/useSymbol.d.ts +0 -2
- package/lib/plus/skuOptionsSelection/store/actions.d.ts +0 -22
- package/lib/plus/skuOptionsSelection/store/createStore.d.ts +0 -15
- package/lib/plus/skuOptionsSelection/store/index.d.ts +0 -2
- package/lib/plus/skuOptionsSelection/utils/calculateOption.d.ts +0 -6
- package/lib/plus/skuOptionsSelection/utils/checkSkuStatus.d.ts +0 -37
- package/lib/pro/Selector/Selector.stories.d.ts +0 -78
- package/lib/pro/Selector/components/Card/types.d.ts +0 -1
- package/lib/pro/Selector/components/IntersectionObserver.d.ts +0 -105
- package/lib/pro/Selector/components/Media/types.d.ts +0 -47
- package/lib/pro/Selector/components/index.d.ts +0 -4
- package/lib/pro/Selector/index.d.ts +0 -11
- package/lib/test/setup.d.ts +0 -1
|
@@ -15,6 +15,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
15
15
|
import React, { useState, useImperativeHandle, forwardRef, useMemo, useContext } from 'react';
|
|
16
16
|
import { Button } from 'antd';
|
|
17
17
|
import { locales } from '@pisell/utils';
|
|
18
|
+
import { useDebounceFn } from 'ahooks';
|
|
18
19
|
import { PisellModal, Iconfont, PisellCheckboxGroup, PisellRow, getBankCardTypeImg, PisellLoading, PisellText } from '@pisell/materials';
|
|
19
20
|
import classNames from 'classnames';
|
|
20
21
|
import { Context } from "../../../model";
|
|
@@ -70,7 +71,7 @@ var MWCreditCardList = function MWCreditCardList(props, ref) {
|
|
|
70
71
|
*/
|
|
71
72
|
var _getCreditCardList = /*#__PURE__*/function () {
|
|
72
73
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
73
|
-
var cardList;
|
|
74
|
+
var cardList, _props$onAdd;
|
|
74
75
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
75
76
|
while (1) switch (_context.prev = _context.next) {
|
|
76
77
|
case 0:
|
|
@@ -78,6 +79,15 @@ var MWCreditCardList = function MWCreditCardList(props, ref) {
|
|
|
78
79
|
return getCreditCardList();
|
|
79
80
|
case 2:
|
|
80
81
|
cardList = _context.sent;
|
|
82
|
+
if (cardList.length) {
|
|
83
|
+
_context.next = 7;
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
(_props$onAdd = props.onAdd) === null || _props$onAdd === void 0 || _props$onAdd.call(props);
|
|
87
|
+
// 解除loading
|
|
88
|
+
setLoading(false);
|
|
89
|
+
return _context.abrupt("return");
|
|
90
|
+
case 7:
|
|
81
91
|
// 设置数据
|
|
82
92
|
setCreditCardList(cardList);
|
|
83
93
|
|
|
@@ -88,7 +98,7 @@ var MWCreditCardList = function MWCreditCardList(props, ref) {
|
|
|
88
98
|
|
|
89
99
|
// 解除loading
|
|
90
100
|
setLoading(false);
|
|
91
|
-
case
|
|
101
|
+
case 10:
|
|
92
102
|
case "end":
|
|
93
103
|
return _context.stop();
|
|
94
104
|
}
|
|
@@ -153,9 +163,18 @@ var MWCreditCardList = function MWCreditCardList(props, ref) {
|
|
|
153
163
|
var cardChange = function cardChange(id) {
|
|
154
164
|
setCurrentCard(id);
|
|
155
165
|
};
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* @title: 关闭弹窗
|
|
169
|
+
* @description: 供外部调用,直接关闭卡列表弹窗
|
|
170
|
+
*/
|
|
171
|
+
var close = function close() {
|
|
172
|
+
setOpen(false);
|
|
173
|
+
};
|
|
156
174
|
useImperativeHandle(ref, function () {
|
|
157
175
|
return {
|
|
158
|
-
init: init
|
|
176
|
+
init: init,
|
|
177
|
+
close: close
|
|
159
178
|
};
|
|
160
179
|
});
|
|
161
180
|
|
|
@@ -266,21 +285,24 @@ var MWCreditCardList = function MWCreditCardList(props, ref) {
|
|
|
266
285
|
* @Author: zhiwei.Wang
|
|
267
286
|
* @Date: 2024-08-16 11:11
|
|
268
287
|
*/
|
|
269
|
-
var
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
288
|
+
var _useDebounceFn = useDebounceFn(function () {
|
|
289
|
+
var _props$onChange;
|
|
290
|
+
// 管理卡模式下, 则执行删除卡操作
|
|
291
|
+
if (manage) {
|
|
292
|
+
setManage(false);
|
|
293
|
+
handleBatchDeleteCards();
|
|
294
|
+
return;
|
|
295
|
+
}
|
|
277
296
|
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
297
|
+
// 否则回调到外部
|
|
298
|
+
var cur = creditCardList.find(function (d) {
|
|
299
|
+
return d.id === currentCard;
|
|
300
|
+
});
|
|
301
|
+
(_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, cur);
|
|
302
|
+
}, {
|
|
303
|
+
wait: 300
|
|
304
|
+
}),
|
|
305
|
+
onOk = _useDebounceFn.run;
|
|
284
306
|
|
|
285
307
|
// 渲染列表
|
|
286
308
|
var renderList = useMemo(function () {
|
|
@@ -330,7 +352,13 @@ var MWCreditCardList = function MWCreditCardList(props, ref) {
|
|
|
330
352
|
okText: manage ? locales.getText('tocPay.text.done') : okText,
|
|
331
353
|
onOk: onOk,
|
|
332
354
|
okButtonProps: {
|
|
333
|
-
disabled: !currentCard
|
|
355
|
+
disabled: !currentCard,
|
|
356
|
+
loading: props.btnLoading,
|
|
357
|
+
style: {
|
|
358
|
+
display: 'flex',
|
|
359
|
+
justifyContent: 'center',
|
|
360
|
+
alignItems: 'center'
|
|
361
|
+
}
|
|
334
362
|
},
|
|
335
363
|
bodyStyle: {
|
|
336
364
|
padding: 24
|
|
@@ -1,4 +1,23 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './index.less';
|
|
3
|
-
|
|
3
|
+
interface ThreedsLoadingProps {
|
|
4
|
+
/** 主标题(单行模式使用,覆盖默认文案) */
|
|
5
|
+
title?: string;
|
|
6
|
+
/** 副标题(多行模式第二行,可选) */
|
|
7
|
+
subtitle?: string;
|
|
8
|
+
/** 描述说明(多行模式第三行,可选) */
|
|
9
|
+
description?: string;
|
|
10
|
+
/** 是否展示"支付完成返回"按钮 */
|
|
11
|
+
showSuccessBackButton?: boolean;
|
|
12
|
+
/** "支付完成返回"按钮点击回调 */
|
|
13
|
+
onSuccessBack?: () => void;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @title: 等待加载页
|
|
17
|
+
* @description: 通用的支付等待 loading 页面。
|
|
18
|
+
* - 默认单行文案模式(传 title 或使用默认文案)
|
|
19
|
+
* - 传入 subtitle / description 后进入多行文案模式
|
|
20
|
+
* 向后兼容:不传新 props 时行为与原来完全一致。
|
|
21
|
+
*/
|
|
22
|
+
declare const ThreedsLoading: React.FC<ThreedsLoadingProps>;
|
|
4
23
|
export default ThreedsLoading;
|
|
@@ -2,9 +2,18 @@ import React from 'react';
|
|
|
2
2
|
import useEngineContext from "../../../../../../../hooks/useEngineContext";
|
|
3
3
|
import "./index.less";
|
|
4
4
|
import { locales } from '@pisell/utils';
|
|
5
|
+
/**
|
|
6
|
+
* @title: 等待加载页
|
|
7
|
+
* @description: 通用的支付等待 loading 页面。
|
|
8
|
+
* - 默认单行文案模式(传 title 或使用默认文案)
|
|
9
|
+
* - 传入 subtitle / description 后进入多行文案模式
|
|
10
|
+
* 向后兼容:不传新 props 时行为与原来完全一致。
|
|
11
|
+
*/
|
|
5
12
|
var ThreedsLoading = function ThreedsLoading(_ref) {
|
|
6
13
|
var _context$appHelper;
|
|
7
14
|
var title = _ref.title,
|
|
15
|
+
subtitle = _ref.subtitle,
|
|
16
|
+
description = _ref.description,
|
|
8
17
|
showSuccessBackButton = _ref.showSuccessBackButton,
|
|
9
18
|
onSuccessBack = _ref.onSuccessBack;
|
|
10
19
|
var context = useEngineContext();
|
|
@@ -18,7 +27,11 @@ var ThreedsLoading = function ThreedsLoading(_ref) {
|
|
|
18
27
|
alt: ""
|
|
19
28
|
}), /*#__PURE__*/React.createElement("div", {
|
|
20
29
|
className: 'threeds-loading-title'
|
|
21
|
-
}, title || locales.getText('tocPay.text.waitingForBankVerification')),
|
|
30
|
+
}, title || locales.getText('tocPay.text.waitingForBankVerification')), subtitle && /*#__PURE__*/React.createElement("div", {
|
|
31
|
+
className: 'threeds-loading-subtitle'
|
|
32
|
+
}, subtitle), description && /*#__PURE__*/React.createElement("div", {
|
|
33
|
+
className: 'threeds-loading-description'
|
|
34
|
+
}, description), showSuccessBackButton && /*#__PURE__*/React.createElement("div", {
|
|
22
35
|
onClick: onSuccessBack,
|
|
23
36
|
className: "threeds-loading-success-back-button"
|
|
24
37
|
}, locales.getText('tocPay.text.successBack')));
|
|
@@ -22,6 +22,26 @@
|
|
|
22
22
|
color: #353535;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
.threeds-loading-subtitle {
|
|
26
|
+
margin-top: 8px;
|
|
27
|
+
padding: 0 40px;
|
|
28
|
+
text-align: center;
|
|
29
|
+
font-size: 14px;
|
|
30
|
+
font-weight: 400;
|
|
31
|
+
line-height: 20px;
|
|
32
|
+
color: #475467;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.threeds-loading-description {
|
|
36
|
+
margin-top: 4px;
|
|
37
|
+
padding: 0 40px;
|
|
38
|
+
text-align: center;
|
|
39
|
+
font-size: 13px;
|
|
40
|
+
font-weight: 400;
|
|
41
|
+
line-height: 18px;
|
|
42
|
+
color: #667085;
|
|
43
|
+
}
|
|
44
|
+
|
|
25
45
|
.threeds-loading-success-back-button {
|
|
26
46
|
margin-top: 20px;
|
|
27
47
|
color: #4b6b99;
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './index.less';
|
|
3
3
|
export interface TDSPayRef {
|
|
4
|
-
|
|
4
|
+
/** 初始化 3DS 支付流程
|
|
5
|
+
* @param res 卡信息(已保存卡含 id,新卡含表单字段)
|
|
6
|
+
* @param order 订单信息
|
|
7
|
+
* @param preCheckData 可选,外部预检查已获取的数据(跳过内部 fastPayNew / checkEnrollment)
|
|
8
|
+
*/
|
|
9
|
+
init: (res: any, order: any, preCheckData?: any) => void;
|
|
5
10
|
}
|
|
6
11
|
export interface TDSPayProps {
|
|
7
12
|
onChange?: (values: any) => void;
|
|
13
|
+
closeAll: () => void;
|
|
8
14
|
}
|
|
9
15
|
declare const _default: React.ForwardRefExoticComponent<TDSPayProps & React.RefAttributes<any>>;
|
|
10
16
|
export default _default;
|
|
@@ -8,10 +8,11 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
8
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
9
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
10
10
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
|
-
import React, { useState, useImperativeHandle, forwardRef, useContext } from 'react';
|
|
11
|
+
import React, { useState, useRef, useEffect, useImperativeHandle, forwardRef, useContext } from 'react';
|
|
12
|
+
import { Button } from 'antd';
|
|
12
13
|
import { PisellModal } from '@pisell/materials';
|
|
13
14
|
import ThreedsLoading from "./ThreedsLoading";
|
|
14
|
-
import { startPayment } from "../tds2";
|
|
15
|
+
import { startPayment, cancelCurrentPayment } from "../tds2";
|
|
15
16
|
import { fastPayNew } from "../List/serve";
|
|
16
17
|
import { Context } from "../../../model";
|
|
17
18
|
import { getPayGroupParamsFromStorage, setPayNumber } from "../../../payGroup";
|
|
@@ -30,62 +31,138 @@ import { locales } from '@pisell/utils';
|
|
|
30
31
|
* @Date: 2024-08-16 11:15
|
|
31
32
|
*/
|
|
32
33
|
var TDSPay = function TDSPay(props, ref) {
|
|
33
|
-
var onChange = props.onChange
|
|
34
|
+
var onChange = props.onChange,
|
|
35
|
+
closeAll = props.closeAll;
|
|
34
36
|
var _useState = useState(false),
|
|
35
37
|
_useState2 = _slicedToArray(_useState, 2),
|
|
36
38
|
open = _useState2[0],
|
|
37
39
|
setOpen = _useState2[1];
|
|
40
|
+
// 关闭确认弹窗可见性
|
|
41
|
+
var _useState3 = useState(false),
|
|
42
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
43
|
+
showCloseConfirm = _useState4[0],
|
|
44
|
+
setShowCloseConfirm = _useState4[1];
|
|
45
|
+
/**
|
|
46
|
+
* 递增会话 ID:每次 init 递增,旧流程通过比对 ID 判断自身是否已被取代。
|
|
47
|
+
* 解决了旧 cancelledRef 的缺陷——旧方案用单一 boolean,新 init 的 reset 会误将
|
|
48
|
+
* 上一次仍在运行的 startPayment 重新"激活"。
|
|
49
|
+
*/
|
|
50
|
+
var sessionIdRef = useRef(0);
|
|
51
|
+
// 支付流程进行中标记,阻止并发 init 调用
|
|
52
|
+
var payingRef = useRef(false);
|
|
38
53
|
var _useContext = useContext(Context),
|
|
39
54
|
state = _useContext.state;
|
|
40
55
|
|
|
56
|
+
/** 组件卸载时:递增 sessionId 使旧流程的 isCancelled 失效 + 清理残留的 message 监听器 */
|
|
57
|
+
useEffect(function () {
|
|
58
|
+
return function () {
|
|
59
|
+
sessionIdRef.current += 1;
|
|
60
|
+
cancelCurrentPayment();
|
|
61
|
+
};
|
|
62
|
+
}, []);
|
|
63
|
+
|
|
41
64
|
/**
|
|
42
|
-
* @title:
|
|
43
|
-
* @description:
|
|
44
|
-
*
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
65
|
+
* @title: 创建绑定当前会话的回调
|
|
66
|
+
* @description: 回调内部比对 sessionId,若已被新会话取代则忽略调用。
|
|
67
|
+
* hideModal 为中间态回调(不释放锁);其他 key 为终态(释放锁 + 通知外部)。
|
|
68
|
+
*/
|
|
69
|
+
var createSessionCallback = function createSessionCallback(session) {
|
|
70
|
+
return function (res) {
|
|
71
|
+
if (sessionIdRef.current !== session) return;
|
|
72
|
+
setOpen(false);
|
|
73
|
+
setShowCloseConfirm(false);
|
|
74
|
+
payingRef.current = false;
|
|
75
|
+
if (res.key === 'hideModal') return;
|
|
76
|
+
onChange === null || onChange === void 0 || onChange(res);
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @title: 初始化 3DS 支付流程
|
|
82
|
+
* @description: 若已有流程在执行中则忽略本次调用。
|
|
83
|
+
* 通过递增 sessionId 自动废弃前一次残留的异步流程。
|
|
49
84
|
*/
|
|
50
85
|
var init = /*#__PURE__*/function () {
|
|
51
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res, order) {
|
|
86
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res, order, preCheckData) {
|
|
87
|
+
var session, isCancelled, callback;
|
|
52
88
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
53
89
|
while (1) switch (_context.prev = _context.next) {
|
|
54
90
|
case 0:
|
|
91
|
+
if (!payingRef.current) {
|
|
92
|
+
_context.next = 2;
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
95
|
+
return _context.abrupt("return");
|
|
96
|
+
case 2:
|
|
97
|
+
payingRef.current = true;
|
|
98
|
+
sessionIdRef.current += 1;
|
|
99
|
+
cancelCurrentPayment();
|
|
100
|
+
session = sessionIdRef.current;
|
|
55
101
|
setOpen(true);
|
|
56
|
-
|
|
102
|
+
isCancelled = function isCancelled() {
|
|
103
|
+
return sessionIdRef.current !== session;
|
|
104
|
+
};
|
|
105
|
+
callback = createSessionCallback(session); // 如果有预检查数据,直接走 startPayment(跳过 checkEnrollment)
|
|
106
|
+
if (!preCheckData) {
|
|
107
|
+
_context.next = 12;
|
|
108
|
+
break;
|
|
109
|
+
}
|
|
110
|
+
startPayment({
|
|
111
|
+
payData: preCheckData
|
|
112
|
+
}, {
|
|
113
|
+
callback: callback,
|
|
114
|
+
isCancelled: isCancelled
|
|
115
|
+
});
|
|
116
|
+
return _context.abrupt("return");
|
|
117
|
+
case 12:
|
|
57
118
|
// 已保存的卡
|
|
58
119
|
if (res.id) {
|
|
59
|
-
_fastPayNew(res);
|
|
120
|
+
_fastPayNew(res, callback, isCancelled);
|
|
60
121
|
} else {
|
|
61
122
|
// 新卡
|
|
62
|
-
newCardPay(res);
|
|
123
|
+
newCardPay(res, callback, isCancelled);
|
|
63
124
|
}
|
|
64
|
-
case
|
|
125
|
+
case 13:
|
|
65
126
|
case "end":
|
|
66
127
|
return _context.stop();
|
|
67
128
|
}
|
|
68
129
|
}, _callee);
|
|
69
130
|
}));
|
|
70
|
-
return function init(_x, _x2) {
|
|
131
|
+
return function init(_x, _x2, _x3) {
|
|
71
132
|
return _ref.apply(this, arguments);
|
|
72
133
|
};
|
|
73
134
|
}();
|
|
74
135
|
|
|
75
136
|
/**
|
|
76
|
-
* @title:
|
|
77
|
-
* @description:
|
|
78
|
-
* @param {any} res
|
|
79
|
-
* @return {*}
|
|
80
|
-
* @Author: zhiwei.Wang
|
|
81
|
-
* @Date: 2024-08-16 11:15
|
|
137
|
+
* @title: 等待页关闭按钮点击
|
|
138
|
+
* @description: 点击 PisellModal 关闭按钮时,弹出确认弹窗而非直接关闭
|
|
82
139
|
*/
|
|
83
|
-
var
|
|
140
|
+
var handleCloseClick = function handleCloseClick() {
|
|
141
|
+
setShowCloseConfirm(true);
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* @title: 确认弹窗 - 继续等待
|
|
146
|
+
* @description: 关闭确认弹窗,继续等待支付结果
|
|
147
|
+
*/
|
|
148
|
+
var handleContinueWaiting = function handleContinueWaiting() {
|
|
149
|
+
setShowCloseConfirm(false);
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* @title: 确认弹窗 - 查看订单
|
|
154
|
+
* @description: 递增 sessionId 使旧流程的 isCancelled 返回 true,释放锁并关闭弹窗
|
|
155
|
+
*/
|
|
156
|
+
var handleViewOrder = function handleViewOrder() {
|
|
157
|
+
sessionIdRef.current += 1;
|
|
158
|
+
cancelCurrentPayment();
|
|
159
|
+
payingRef.current = false;
|
|
160
|
+
setShowCloseConfirm(false);
|
|
84
161
|
setOpen(false);
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
162
|
+
closeAll === null || closeAll === void 0 || closeAll();
|
|
163
|
+
onChange === null || onChange === void 0 || onChange({
|
|
164
|
+
key: 'cancel'
|
|
165
|
+
});
|
|
89
166
|
};
|
|
90
167
|
|
|
91
168
|
/**
|
|
@@ -97,13 +174,12 @@ var TDSPay = function TDSPay(props, ref) {
|
|
|
97
174
|
* @Date: 2024-08-16 11:15
|
|
98
175
|
*/
|
|
99
176
|
var _fastPayNew = /*#__PURE__*/function () {
|
|
100
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(res) {
|
|
177
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(res, callback, isCancelled) {
|
|
101
178
|
var _state$payGroup, _state$payGroup2, _state$payGroup3, params, _yield$fastPayNew, data;
|
|
102
179
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
103
180
|
while (1) switch (_context2.prev = _context2.next) {
|
|
104
181
|
case 0:
|
|
105
182
|
_context2.prev = 0;
|
|
106
|
-
// 获取交易组
|
|
107
183
|
params = getPayGroupParamsFromStorage((_state$payGroup = state.payGroup) === null || _state$payGroup === void 0 ? void 0 : _state$payGroup.order_id, {
|
|
108
184
|
card_id: res.id
|
|
109
185
|
});
|
|
@@ -111,7 +187,7 @@ var TDSPay = function TDSPay(props, ref) {
|
|
|
111
187
|
_context2.next = 5;
|
|
112
188
|
break;
|
|
113
189
|
}
|
|
114
|
-
|
|
190
|
+
callback({
|
|
115
191
|
key: 'fail',
|
|
116
192
|
data: {
|
|
117
193
|
res: res,
|
|
@@ -129,30 +205,33 @@ var TDSPay = function TDSPay(props, ref) {
|
|
|
129
205
|
case 7:
|
|
130
206
|
_yield$fastPayNew = _context2.sent;
|
|
131
207
|
data = _yield$fastPayNew.data;
|
|
132
|
-
|
|
208
|
+
if (!isCancelled()) {
|
|
209
|
+
_context2.next = 11;
|
|
210
|
+
break;
|
|
211
|
+
}
|
|
212
|
+
return _context2.abrupt("return");
|
|
213
|
+
case 11:
|
|
133
214
|
setPayNumber((_state$payGroup3 = state.payGroup) === null || _state$payGroup3 === void 0 ? void 0 : _state$payGroup3.order_id, data === null || data === void 0 ? void 0 : data.pay_number);
|
|
134
|
-
|
|
135
|
-
// token 直接跳转成功页面
|
|
136
215
|
if ((data === null || data === void 0 ? void 0 : data.type) === 'token') {
|
|
137
|
-
|
|
216
|
+
callback({
|
|
138
217
|
key: 'success',
|
|
139
218
|
data: data
|
|
140
219
|
});
|
|
141
220
|
}
|
|
142
|
-
|
|
143
|
-
// 3DS 跳转3DS验证页面
|
|
144
221
|
if ((data === null || data === void 0 ? void 0 : data.type) === '3ds') {
|
|
145
222
|
startPayment({
|
|
146
223
|
payData: data
|
|
147
|
-
},
|
|
224
|
+
}, {
|
|
225
|
+
callback: callback,
|
|
226
|
+
isCancelled: isCancelled
|
|
227
|
+
});
|
|
148
228
|
}
|
|
149
|
-
_context2.next =
|
|
229
|
+
_context2.next = 19;
|
|
150
230
|
break;
|
|
151
|
-
case
|
|
152
|
-
_context2.prev =
|
|
231
|
+
case 16:
|
|
232
|
+
_context2.prev = 16;
|
|
153
233
|
_context2.t0 = _context2["catch"](0);
|
|
154
|
-
|
|
155
|
-
payCallback === null || payCallback === void 0 || payCallback({
|
|
234
|
+
callback({
|
|
156
235
|
key: 'fail',
|
|
157
236
|
data: {
|
|
158
237
|
res: res,
|
|
@@ -160,13 +239,13 @@ var TDSPay = function TDSPay(props, ref) {
|
|
|
160
239
|
message: locales.getText('tocPay.text.getParamsFail')
|
|
161
240
|
}
|
|
162
241
|
});
|
|
163
|
-
case
|
|
242
|
+
case 19:
|
|
164
243
|
case "end":
|
|
165
244
|
return _context2.stop();
|
|
166
245
|
}
|
|
167
|
-
}, _callee2, null, [[0,
|
|
246
|
+
}, _callee2, null, [[0, 16]]);
|
|
168
247
|
}));
|
|
169
|
-
return function _fastPayNew(
|
|
248
|
+
return function _fastPayNew(_x4, _x5, _x6) {
|
|
170
249
|
return _ref2.apply(this, arguments);
|
|
171
250
|
};
|
|
172
251
|
}();
|
|
@@ -179,7 +258,7 @@ var TDSPay = function TDSPay(props, ref) {
|
|
|
179
258
|
* @Author: zhiwei.Wang
|
|
180
259
|
* @Date: 2024-08-16 11:16
|
|
181
260
|
*/
|
|
182
|
-
var newCardPay = function newCardPay(res) {
|
|
261
|
+
var newCardPay = function newCardPay(res, callback, isCancelled) {
|
|
183
262
|
var _state$payGroup4, _state$payGroup5;
|
|
184
263
|
var _cardInfo = {
|
|
185
264
|
card_name: res.card_name,
|
|
@@ -189,11 +268,9 @@ var TDSPay = function TDSPay(props, ref) {
|
|
|
189
268
|
card_ccv: res.card_ccv,
|
|
190
269
|
is_save: res.is_save ? 1 : 0
|
|
191
270
|
};
|
|
192
|
-
|
|
193
|
-
// 补全交易组信息
|
|
194
271
|
_cardInfo = getPayGroupParamsFromStorage((_state$payGroup4 = state.payGroup) === null || _state$payGroup4 === void 0 ? void 0 : _state$payGroup4.order_id, _cardInfo);
|
|
195
272
|
if (!_cardInfo) {
|
|
196
|
-
|
|
273
|
+
callback({
|
|
197
274
|
key: 'fail',
|
|
198
275
|
data: {
|
|
199
276
|
_cardInfo: _cardInfo,
|
|
@@ -203,31 +280,65 @@ var TDSPay = function TDSPay(props, ref) {
|
|
|
203
280
|
});
|
|
204
281
|
return;
|
|
205
282
|
}
|
|
206
|
-
|
|
207
|
-
// 3ds支付
|
|
208
283
|
startPayment({
|
|
209
284
|
orderId: (_state$payGroup5 = state.payGroup) === null || _state$payGroup5 === void 0 ? void 0 : _state$payGroup5.order_id,
|
|
210
285
|
cardInfo: _cardInfo
|
|
211
|
-
},
|
|
286
|
+
}, {
|
|
287
|
+
callback: callback,
|
|
288
|
+
isCancelled: isCancelled
|
|
289
|
+
});
|
|
212
290
|
};
|
|
213
291
|
useImperativeHandle(ref, function () {
|
|
214
292
|
return {
|
|
215
293
|
init: init
|
|
216
294
|
};
|
|
217
295
|
});
|
|
218
|
-
return /*#__PURE__*/React.createElement(PisellModal, {
|
|
296
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PisellModal, {
|
|
219
297
|
platform: 'h5',
|
|
220
298
|
open: open,
|
|
221
299
|
footer: false,
|
|
222
300
|
header: false,
|
|
223
|
-
closable:
|
|
301
|
+
closable: true,
|
|
302
|
+
onCancel: handleCloseClick,
|
|
224
303
|
bodyStyle: {
|
|
225
304
|
padding: 0
|
|
226
305
|
}
|
|
227
306
|
}, /*#__PURE__*/React.createElement("div", {
|
|
228
307
|
className: ""
|
|
229
|
-
}, /*#__PURE__*/React.createElement(ThreedsLoading,
|
|
308
|
+
}, /*#__PURE__*/React.createElement(ThreedsLoading, {
|
|
309
|
+
title: locales.getText('tocPay.text.processingPayment'),
|
|
310
|
+
subtitle: locales.getText('tocPay.text.securityCheckRequired'),
|
|
311
|
+
description: locales.getText('tocPay.text.doNotClosePage')
|
|
312
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
230
313
|
id: "threeds-container"
|
|
231
|
-
})))
|
|
314
|
+
}))), /*#__PURE__*/React.createElement(PisellModal, {
|
|
315
|
+
open: showCloseConfirm,
|
|
316
|
+
closable: false,
|
|
317
|
+
footer: null,
|
|
318
|
+
header: false,
|
|
319
|
+
mobileModalHeight: "auto",
|
|
320
|
+
headerDivider: false,
|
|
321
|
+
footerDivider: false,
|
|
322
|
+
bodyStyle: {
|
|
323
|
+
padding: 24
|
|
324
|
+
},
|
|
325
|
+
transitionName: "pisell-move-down"
|
|
326
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
327
|
+
className: "tds-close-confirm-modal"
|
|
328
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
329
|
+
className: "tds-close-confirm-title"
|
|
330
|
+
}, locales.getText('tocPay.text.stopWaitingTitle')), /*#__PURE__*/React.createElement("div", {
|
|
331
|
+
className: "tds-close-confirm-desc"
|
|
332
|
+
}, locales.getText('tocPay.text.stopWaitingDesc')), /*#__PURE__*/React.createElement("div", {
|
|
333
|
+
className: "tds-close-confirm-actions"
|
|
334
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
335
|
+
type: "primary",
|
|
336
|
+
block: true,
|
|
337
|
+
className: "tds-close-confirm-btn-primary",
|
|
338
|
+
onClick: handleContinueWaiting
|
|
339
|
+
}, locales.getText('tocPay.text.continueWaiting')), /*#__PURE__*/React.createElement("div", {
|
|
340
|
+
className: "tds-close-confirm-link",
|
|
341
|
+
onClick: handleViewOrder
|
|
342
|
+
}, locales.getText('tocPay.text.viewOrder'))))));
|
|
232
343
|
};
|
|
233
344
|
export default /*#__PURE__*/forwardRef(TDSPay);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/** 关闭确认弹窗样式 */
|
|
2
|
+
.tds-close-confirm-modal {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.tds-close-confirm-title {
|
|
9
|
+
color: var(--Gray-900, #101828);
|
|
10
|
+
font-size: 20px;
|
|
11
|
+
font-weight: 600;
|
|
12
|
+
line-height: 28px;
|
|
13
|
+
margin-bottom: 8px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.tds-close-confirm-desc {
|
|
17
|
+
color: var(--Gray-600, #475467);
|
|
18
|
+
font-size: 14px;
|
|
19
|
+
font-weight: 400;
|
|
20
|
+
line-height: 20px;
|
|
21
|
+
margin-bottom: 24px;
|
|
22
|
+
white-space: pre-line;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.tds-close-confirm-actions {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
align-items: center;
|
|
29
|
+
gap: 12px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.tds-close-confirm-btn-primary {
|
|
33
|
+
height: 44px;
|
|
34
|
+
font-size: 16px;
|
|
35
|
+
font-weight: 500;
|
|
36
|
+
border-radius: 8px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.tds-close-confirm-link {
|
|
40
|
+
color: var(--Gray-500, #667085);
|
|
41
|
+
font-size: 14px;
|
|
42
|
+
font-weight: 400;
|
|
43
|
+
line-height: 20px;
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
text-decoration: underline;
|
|
46
|
+
padding: 4px 0;
|
|
47
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
/** 弹窗场景类型 */
|
|
4
|
+
export declare type TDSErrorModalType = 'tds-not-supported' | 'bank-verify-failed';
|
|
5
|
+
export interface TDSErrorModalProps {
|
|
6
|
+
/** 弹窗是否可见 */
|
|
7
|
+
open: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* 弹窗场景类型,决定标题与描述文案
|
|
10
|
+
* - 'tds-not-supported':卡不支持 3DS 验证(默认)
|
|
11
|
+
* - 'bank-verify-failed':银行安全验证失败(700500)
|
|
12
|
+
*/
|
|
13
|
+
type?: TDSErrorModalType;
|
|
14
|
+
/** 商家联系电话 */
|
|
15
|
+
shopPhone?: string;
|
|
16
|
+
/** 商家联系邮箱 */
|
|
17
|
+
shopEmail?: string;
|
|
18
|
+
/** 更换卡片(留在卡列表页面) */
|
|
19
|
+
onUseAnotherCard?: () => void;
|
|
20
|
+
/** 使用其他支付方式(返回支付方式列表) */
|
|
21
|
+
onUseAnotherPayment?: () => void;
|
|
22
|
+
/** 稍后支付(跳转订单详情页) */
|
|
23
|
+
onPayLater?: () => void;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @title: 支付错误弹窗(通用)
|
|
27
|
+
* @description: 根据 type 展示不同文案,按钮行为一致:
|
|
28
|
+
* 更换卡片 / 使用其他支付方式 / 稍后支付。
|
|
29
|
+
* 支持两种场景:
|
|
30
|
+
* 1. tds-not-supported —— 预检查发现卡不支持 3DS 验证
|
|
31
|
+
* 2. bank-verify-failed —— 3DS 流程中银行安全验证失败(700500)
|
|
32
|
+
*/
|
|
33
|
+
declare const TDSErrorModal: React.FC<TDSErrorModalProps>;
|
|
34
|
+
export default TDSErrorModal;
|