@pisell/private-materials 6.5.27 → 6.5.28
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 +146 -165
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +24 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +24 -9
- package/es/components/Sales/Event/Detail.js +4 -3
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.js +3 -2
- package/es/components/appointmentBooking/components/ConfirmInformation/index.js +273 -76
- package/es/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
- package/es/components/appointmentBooking/components/Services/index.js +22 -8
- package/es/components/appointmentBooking/hooks.d.ts +1 -0
- package/es/components/appointmentBooking/hooks.js +35 -30
- package/es/components/appointmentBooking/locales.d.ts +3 -0
- package/es/components/appointmentBooking/locales.js +9 -6
- package/es/components/authentication/admin/AuthMethods/AuthMethods.less +136 -0
- package/es/components/authentication/admin/AuthMethods/SettingList.d.ts +5 -0
- package/es/components/authentication/admin/AuthMethods/SettingList.js +62 -0
- package/es/components/authentication/admin/AuthMethods/SettingList.less +85 -0
- package/es/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +22 -0
- package/es/components/authentication/admin/AuthMethods/SettingsDrawer.js +121 -0
- package/es/components/authentication/admin/AuthMethods/SettingsDrawer.less +163 -0
- package/es/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
- package/es/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.js +15 -0
- package/es/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +13 -0
- package/es/components/authentication/admin/AuthMethods/components/EmailSettingsContent.js +152 -0
- package/es/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
- package/es/components/authentication/admin/AuthMethods/components/LoginMethodsList.js +114 -0
- package/es/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +14 -0
- package/es/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.js +170 -0
- package/es/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +13 -0
- package/es/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.js +116 -0
- package/es/components/authentication/admin/AuthMethods/components/index.d.ts +10 -0
- package/es/components/authentication/admin/AuthMethods/components/index.js +5 -0
- package/es/components/authentication/admin/AuthMethods/constants.d.ts +22 -0
- package/es/components/authentication/admin/AuthMethods/constants.js +121 -0
- package/es/components/authentication/admin/AuthMethods/index.d.ts +8 -0
- package/es/components/authentication/admin/AuthMethods/index.js +233 -0
- package/es/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
- package/es/components/authentication/admin/AuthMethods/locales.js +290 -0
- package/es/components/authentication/admin/AuthMethods/types.d.ts +76 -0
- package/es/components/authentication/admin/AuthMethods/types.js +23 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/AuthenticationMethods.less +231 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +447 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +107 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.js +1 -0
- package/es/components/authentication/admin/ChannelAuthSetting/ChannelAuthSetting.less +111 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/CollectInfo.less +259 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +530 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +86 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.js +1 -0
- package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +460 -0
- package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.less +111 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/PageSetting.less +105 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/index.js +185 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +32 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.js +1 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/PageSettingItem.less +272 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.d.ts +8 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +214 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +71 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.js +1 -0
- package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +287 -0
- package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.less +111 -0
- package/es/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
- package/es/components/authentication/admin/ChannelAuthSetting/index.js +228 -0
- package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
- package/es/components/authentication/admin/ChannelAuthSetting/locales.js +50 -0
- package/es/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
- package/es/components/authentication/admin/ChannelAuthSetting/types.js +1 -0
- package/es/components/authentication/admin/CustomerAuth/CustomerAuth.less +104 -0
- package/es/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/CustomerAuth/index.js +711 -0
- package/es/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
- package/es/components/authentication/admin/CustomerAuth/locales.js +86 -0
- package/es/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
- package/es/components/authentication/admin/CustomerAuth/types.js +1 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/CustomerOAuthConfig.less +164 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/index.d.ts +6 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/index.js +545 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/locales.js +137 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/types.js +1 -0
- package/es/components/authentication/admin/DeviceAuth/DeviceAuth.less +104 -0
- package/es/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/DeviceAuth/index.js +366 -0
- package/es/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
- package/es/components/authentication/admin/DeviceAuth/locales.js +74 -0
- package/es/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
- package/es/components/authentication/admin/DeviceAuth/types.js +1 -0
- package/es/components/authentication/admin/OAuthConfig/OAuthConfig.less +165 -0
- package/es/components/authentication/admin/OAuthConfig/index.d.ts +6 -0
- package/es/components/authentication/admin/OAuthConfig/index.js +347 -0
- package/es/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
- package/es/components/authentication/admin/OAuthConfig/locales.js +116 -0
- package/es/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
- package/es/components/authentication/admin/OAuthConfig/types.js +1 -0
- package/es/components/authentication/admin/OrgAdminAuth/OrgAdminAuth.less +104 -0
- package/es/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/OrgAdminAuth/index.js +543 -0
- package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
- package/es/components/authentication/admin/OrgAdminAuth/locales.js +74 -0
- package/es/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
- package/es/components/authentication/admin/OrgAdminAuth/types.js +1 -0
- package/es/components/authentication/admin/POSOperatorAuth/POSOperatorAuth.less +104 -0
- package/es/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/POSOperatorAuth/index.js +374 -0
- package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
- package/es/components/authentication/admin/POSOperatorAuth/locales.js +65 -0
- package/es/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
- package/es/components/authentication/admin/POSOperatorAuth/types.js +1 -0
- package/es/components/authentication/admin/SaaSAdminAuth/SaaSAdminAuth.less +104 -0
- package/es/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
- package/es/components/authentication/admin/SaaSAdminAuth/index.js +625 -0
- package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
- package/es/components/authentication/admin/SaaSAdminAuth/locales.js +74 -0
- package/es/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
- package/es/components/authentication/admin/SaaSAdminAuth/types.js +1 -0
- package/es/components/authentication/admin/index.d.ts +26 -0
- package/es/components/authentication/admin/index.js +23 -0
- package/es/components/authentication/index.d.ts +0 -0
- package/es/components/authentication/index.js +0 -0
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/es/components/booking/components/customSelect/index.js +23 -4
- package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/es/components/booking/components/footer/index.js +66 -54
- package/es/components/booking/components/footer/utils.js +87 -74
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/forms/footer.js +24 -10
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/hooks/useClearCart.d.ts +1 -0
- package/es/components/booking/info/client/index.js +28 -13
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.js +16 -10
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +10 -2
- package/es/components/booking/info/clientVariant/vertical/index.js +1 -1
- package/es/components/booking/info/date/index.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +1 -0
- package/es/components/booking/info/main.js +3 -2
- package/es/components/booking/info/model.js +5 -0
- package/es/components/booking/info/service/Lists.js +1 -1
- package/es/components/booking/info/service/actions/index.d.ts +1 -0
- package/es/components/booking/info/service/like/index.d.ts +1 -0
- package/es/components/booking/info2/cartClientCard/index.js +30 -6
- package/es/components/booking/info2/index.js +3 -2
- package/es/components/booking/info2/service/actions/index.d.ts +1 -0
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
- package/es/components/booking/info2/service/contactInfoMode/index.js +94 -0
- package/es/components/booking/locales.d.ts +6 -0
- package/es/components/booking/locales.js +12 -3
- package/es/components/booking/materiels/duration/index.d.ts +1 -0
- package/es/components/booking/materiels/holder/index.d.ts +1 -0
- package/es/components/booking/materiels/startTime/index.d.ts +1 -0
- package/es/components/booking/model.d.ts +4 -0
- package/es/components/booking/model.js +3 -0
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/es/components/checkout/PaymentModal.js +219 -112
- package/es/components/checkout/components/AdditionalModule/index.d.ts +3 -1
- package/es/components/checkout/components/AdditionalModule/index.js +44 -12
- package/es/components/checkout/components/AmountSummary/index.js +9 -76
- package/es/components/checkout/components/AmountSummary/index.less +1 -1
- package/es/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
- package/es/components/checkout/components/CashPaymentModule/index.js +5 -2
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +6 -1
- package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -0
- package/es/components/checkout/components/PaymentOptionsModule/index.js +2 -1
- package/es/components/checkout/components/PaymentOptionsModule/index.less +4 -0
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +4 -0
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +31 -8
- package/es/components/checkout/components/PaymentResultToast/index.js +6 -6
- package/es/components/checkout/components/PaymentResultToast/index.less +94 -33
- package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/es/components/checkout/index.less +1 -1
- package/es/components/checkout/locales.d.ts +6 -0
- package/es/components/checkout/locales.js +6 -0
- package/es/components/checkout/utils/PaymentResultToastUtils.js +11 -1
- package/es/components/eftpos/deviceList/index.d.ts +1 -0
- package/es/components/eftpos/group/index.d.ts +1 -0
- package/es/components/eftpos/icon/apiKey.d.ts +1 -0
- package/es/components/eftpos/icon/device.d.ts +1 -0
- package/es/components/eftpos/receipt/index.d.ts +1 -0
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/es/components/eftposPay/component/step/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/step.d.ts +1 -0
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/linkly/index.js +64 -2
- package/es/components/eftposPay/store/index.d.ts +2 -2
- package/es/components/eftposPay/tip.d.ts +1 -0
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eftposPay/tyro/index.js +12 -0
- package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/es/components/index.d.ts +3 -2
- package/es/components/index.js +3 -2
- package/es/components/login/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/ApplePay/index.js +68 -35
- package/es/components/pay/toC/PaymentMethods/GooglePay/index.js +70 -42
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +72 -41
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.d.ts +15 -0
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +143 -0
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +34 -0
- package/es/components/pay/toC/PaymentMethods/hooks/index.d.ts +19 -0
- package/es/components/pay/toC/PaymentMethods/hooks/index.js +126 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/es/components/pay/toC/index.js +26 -22
- package/es/components/pay/toC/locales.d.ts +9 -0
- package/es/components/pay/toC/locales.js +12 -3
- package/es/components/pay/toC/model.d.ts +1 -0
- package/es/components/pay/toC/serve.d.ts +5 -0
- package/es/components/pay/toC/serve.js +9 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/es/components/schedules/calendar/index.d.ts +1 -0
- package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/es/components/schedules/products/list/index.d.ts +1 -0
- package/es/components/schedules/resources/list/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +1 -86
- package/es/components/ticketBooking/components/menuBar/index.js +109 -12
- package/es/components/ticketBooking/components/ticketBooking/index.js +2 -2
- package/es/components/ticketBooking/components/ticketBooking/index.less +2 -1
- package/es/components/ticketBooking/components/timeBar/index.js +112 -7
- package/es/components/ticketBooking/components/timeBar/index.less +59 -0
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +29 -18
- package/es/components/ticketBooking/locales.d.ts +6 -0
- package/es/components/ticketBooking/locales.js +9 -3
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/components/walletList/index.js +92 -56
- package/es/components/walletList/serve.d.ts +4 -0
- package/es/components/walletList/serve.js +46 -13
- package/es/components/walletList/types/index.d.ts +12 -12
- package/es/components/walletList/types/index.js +2 -2
- package/es/hooks/usePaymentLogger.d.ts +1 -0
- package/es/index.d.ts +7 -1
- package/es/index.js +7 -2
- package/es/plus/clientCard/locales.js +3 -3
- package/es/plus/clientName/index.d.ts +1 -0
- package/es/plus/clinetSearch/index.js +28 -30
- package/es/plus/clinetSearch/locales.d.ts +3 -0
- package/es/plus/clinetSearch/locales.js +7 -4
- package/es/plus/clinetSearch/types.d.ts +12 -0
- package/es/plus/contactInfo/components/Avatar/index.d.ts +10 -0
- package/es/plus/contactInfo/components/Avatar/index.js +30 -0
- package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/es/plus/contactInfo/components/SwipeAction/index.js +360 -0
- package/es/plus/contactInfo/components/SwipeAction/index.less +74 -0
- package/es/plus/contactInfo/index.d.ts +6 -0
- package/es/plus/contactInfo/index.js +198 -0
- package/es/plus/contactInfo/index.less +621 -0
- package/es/plus/contactInfo/locales.d.ts +15 -0
- package/es/plus/contactInfo/locales.js +14 -0
- package/es/plus/contactInfo/types.d.ts +91 -0
- package/es/plus/contactInfo/types.js +1 -0
- package/es/plus/contactInfo/utils.d.ts +7 -0
- package/es/plus/contactInfo/utils.js +50 -0
- package/es/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
- package/es/plus/contactInfoModal/ContactInfoContent.js +74 -0
- package/es/plus/contactInfoModal/index.d.ts +41 -0
- package/es/plus/contactInfoModal/index.js +155 -0
- package/es/plus/contactInfoModal/index.less +19 -0
- package/es/plus/contactInfoModal/locales.d.ts +66 -0
- package/es/plus/contactInfoModal/locales.js +65 -0
- package/es/plus/productSelect/CategoryTabs/index.d.ts +2 -0
- package/es/plus/productSelect/CategoryTabs/index.js +6 -3
- package/es/plus/productSelect/ProductCard/index.d.ts +3 -1
- package/es/plus/productSelect/ProductCard/index.js +9 -1
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.less +0 -11
- package/es/plus/productSelect/index.d.ts +3 -2
- package/es/plus/productSelect/index.js +33 -8
- package/es/plus/productSelect/index.less +4 -0
- package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
- package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
- package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
- package/es/plus/saasRegister/components/Header.d.ts +1 -0
- package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
- package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
- package/es/plus/walletEditor/WalletEditor.d.ts +5 -0
- package/es/plus/walletEditor/WalletEditor.js +316 -0
- package/es/plus/walletEditor/WalletEditor.less +129 -0
- package/es/plus/walletEditor/components/ImageUpload/index.d.ts +8 -0
- package/es/plus/walletEditor/components/ImageUpload/index.js +223 -0
- package/es/plus/walletEditor/components/JsonEditor/index.d.ts +11 -0
- package/es/plus/walletEditor/components/JsonEditor/index.js +68 -0
- package/es/plus/walletEditor/components/JsonEditor/index.less +4 -0
- package/es/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +20 -0
- package/es/plus/walletEditor/components/ValidityPeriodSelector/index.js +222 -0
- package/es/plus/walletEditor/components/ValidityPeriodSelector/index.less +4 -0
- package/es/plus/walletEditor/components/relationProduct/index.d.ts +6 -0
- package/es/plus/walletEditor/components/relationProduct/index.js +49 -0
- package/es/plus/walletEditor/components/relationProduct/index.less +15 -0
- package/es/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +37 -0
- package/es/plus/walletEditor/components/sortableWalletPassTypes/index.js +193 -0
- package/es/plus/walletEditor/components/sortableWalletPassTypes/index.less +110 -0
- package/es/plus/walletEditor/index.d.ts +3 -0
- package/es/plus/walletEditor/index.js +3 -0
- package/es/plus/walletEditor/locales.d.ts +126 -0
- package/es/plus/walletEditor/locales.js +143 -0
- package/es/plus/walletEditor/types.d.ts +52 -0
- package/es/plus/walletEditor/types.js +1 -0
- package/es/plus/walletPassGallery/components/footerButton/index.d.ts +14 -0
- package/es/plus/walletPassGallery/components/footerButton/index.js +247 -0
- package/es/plus/walletPassGallery/components/footerButton/index.less +93 -0
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +8 -0
- package/es/plus/walletPassGallery/components/passDetail/index.js +274 -0
- package/es/plus/walletPassGallery/components/passDetail/index.less +57 -0
- package/es/plus/walletPassGallery/components/passList/index.d.ts +12 -0
- package/es/plus/walletPassGallery/components/passList/index.js +115 -0
- package/es/plus/walletPassGallery/components/recharge/index.d.ts +11 -0
- package/es/plus/walletPassGallery/components/recharge/index.js +134 -0
- package/es/plus/walletPassGallery/components/recharge/index.less +16 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +9 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.js +176 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.less +67 -0
- package/es/plus/walletPassGallery/components/usageRule/index.d.ts +9 -0
- package/es/plus/walletPassGallery/components/usageRule/index.js +248 -0
- package/es/plus/walletPassGallery/components/usageRule/index.less +157 -0
- package/es/plus/walletPassGallery/index.d.ts +6 -0
- package/es/plus/walletPassGallery/index.js +602 -0
- package/es/plus/walletPassGallery/index.less +115 -0
- package/es/plus/walletPassGallery/locales.d.ts +270 -0
- package/es/plus/walletPassGallery/locales.js +279 -0
- package/es/plus/walletPassGallery/serve.d.ts +218 -0
- package/es/plus/walletPassGallery/serve.js +289 -0
- package/es/pro/Login2.0/AuthModal.d.ts +143 -0
- package/es/pro/Login2.0/AuthModal.js +630 -0
- package/es/pro/Login2.0/Login2.d.ts +61 -0
- package/es/pro/Login2.0/Login2.js +2236 -0
- package/es/pro/Login2.0/Register2.d.ts +65 -0
- package/es/pro/Login2.0/Register2.js +1502 -0
- package/es/pro/Login2.0/components/ForgotPasswordFlow.d.ts +31 -0
- package/es/pro/Login2.0/components/ForgotPasswordFlow.js +330 -0
- package/es/pro/Login2.0/components/LegalTerms.d.ts +8 -0
- package/es/pro/Login2.0/components/LegalTerms.js +51 -0
- package/es/pro/Login2.0/components/LegalTerms.less +74 -0
- package/es/pro/Login2.0/components/LoginCodeInput.d.ts +27 -0
- package/es/pro/Login2.0/components/LoginCodeInput.js +207 -0
- package/es/pro/Login2.0/components/OAuthButtonGroup.d.ts +22 -0
- package/es/pro/Login2.0/components/OAuthButtonGroup.js +55 -0
- package/es/pro/Login2.0/components/PhoneInput.d.ts +53 -0
- package/es/pro/Login2.0/components/PhoneInput.js +414 -0
- package/es/pro/Login2.0/components/PhoneInput.less +148 -0
- package/es/pro/Login2.0/components/phoneValidation.d.ts +17 -0
- package/es/pro/Login2.0/components/phoneValidation.js +228 -0
- package/es/pro/Login2.0/hooks/index.d.ts +2 -0
- package/es/pro/Login2.0/hooks/index.js +1 -0
- package/es/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
- package/es/pro/Login2.0/hooks/usePasswordValidationRules.js +87 -0
- package/es/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
- package/es/pro/Login2.0/hooks/useRegisterFlow.js +158 -0
- package/es/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
- package/es/pro/Login2.0/hooks/useRegistrationMethods.js +31 -0
- package/es/pro/Login2.0/index.js +8 -0
- package/es/pro/Login2.0/index.less +1002 -0
- package/es/pro/Login2.0/locales.d.ts +543 -0
- package/es/pro/Login2.0/locales.js +622 -0
- package/es/pro/Login2.0/shared/Header.d.ts +11 -0
- package/es/pro/Login2.0/shared/Header.js +42 -0
- package/es/pro/Login2.0/shared/OAuthButtons.d.ts +11 -0
- package/es/pro/Login2.0/shared/OAuthButtons.js +59 -0
- package/es/pro/Login2.0/shared/registerFlow.d.ts +116 -0
- package/es/pro/Login2.0/shared/registerFlow.js +171 -0
- package/es/pro/Login2.0/shared/types.d.ts +232 -0
- package/es/pro/Login2.0/shared/types.js +1 -0
- package/es/pro/Login2.0/steps/CodeInput.d.ts +24 -0
- package/es/pro/Login2.0/steps/CodeInput.js +209 -0
- package/es/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +12 -0
- package/es/pro/Login2.0/steps/EmailAlreadyRegistered.js +35 -0
- package/es/pro/Login2.0/steps/EmailLinkAlreadyUsed.d.ts +7 -0
- package/es/pro/Login2.0/steps/EmailLinkAlreadyUsed.js +25 -0
- package/es/pro/Login2.0/steps/EmailLinkExpired.d.ts +9 -0
- package/es/pro/Login2.0/steps/EmailLinkExpired.js +33 -0
- package/es/pro/Login2.0/steps/SetPassword.d.ts +19 -0
- package/es/pro/Login2.0/steps/SetPassword.js +148 -0
- package/es/pro/Login2.0/steps/VerificationSuccess.d.ts +8 -0
- package/es/pro/Login2.0/steps/VerificationSuccess.js +35 -0
- package/es/pro/Login2.0/steps/VerifyingEmailLink.d.ts +7 -0
- package/es/pro/Login2.0/steps/VerifyingEmailLink.js +17 -0
- package/es/pro/Login2.0/steps/WaitEmailLink.d.ts +18 -0
- package/es/pro/Login2.0/steps/WaitEmailLink.js +54 -0
- package/es/pro/Login2.0/steps/index.d.ts +19 -0
- package/es/pro/Login2.0/steps/index.js +11 -0
- package/es/pro/Login2.0/steps/steps.less +423 -0
- package/es/pro/Login2.0/types.d.ts +167 -0
- package/es/pro/Login2.0/types.js +1 -0
- package/es/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/es/pro/comprehensiveSearch/locales.js +1 -1
- package/es/pro/pisellPaymentList/example.d.ts +20 -0
- package/es/pro/pisellPaymentList/example.js +434 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +11 -7
- package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/index.js +4 -2
- package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +1 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/index.js +10 -1
- package/es/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +1 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.js +5 -2
- package/es/pro/priceKeyboard/components/shortcuts/index.less +4 -0
- package/lib/components/Sales/Event/Detail.js +3 -2
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +5 -3
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +156 -13
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
- package/lib/components/appointmentBooking/components/Services/index.js +8 -3
- package/lib/components/appointmentBooking/hooks.d.ts +1 -0
- package/lib/components/appointmentBooking/hooks.js +76 -35
- package/lib/components/appointmentBooking/locales.d.ts +3 -0
- package/lib/components/appointmentBooking/locales.js +6 -3
- package/lib/components/authentication/admin/AuthMethods/AuthMethods.less +136 -0
- package/lib/components/authentication/admin/AuthMethods/SettingList.d.ts +5 -0
- package/lib/components/authentication/admin/AuthMethods/SettingList.js +75 -0
- package/lib/components/authentication/admin/AuthMethods/SettingList.less +85 -0
- package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +22 -0
- package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.js +126 -0
- package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.less +163 -0
- package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
- package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.js +42 -0
- package/lib/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +13 -0
- package/lib/components/authentication/admin/AuthMethods/components/EmailSettingsContent.js +108 -0
- package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
- package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.js +108 -0
- package/lib/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +14 -0
- package/lib/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.js +93 -0
- package/lib/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +13 -0
- package/lib/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.js +85 -0
- package/lib/components/authentication/admin/AuthMethods/components/index.d.ts +10 -0
- package/lib/components/authentication/admin/AuthMethods/components/index.js +51 -0
- package/lib/components/authentication/admin/AuthMethods/constants.d.ts +22 -0
- package/lib/components/authentication/admin/AuthMethods/constants.js +115 -0
- package/lib/components/authentication/admin/AuthMethods/index.d.ts +8 -0
- package/lib/components/authentication/admin/AuthMethods/index.js +196 -0
- package/lib/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
- package/lib/components/authentication/admin/AuthMethods/locales.js +314 -0
- package/lib/components/authentication/admin/AuthMethods/types.d.ts +76 -0
- package/lib/components/authentication/admin/AuthMethods/types.js +53 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/AuthenticationMethods.less +231 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +311 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +131 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.js +17 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/ChannelAuthSetting.less +111 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/CollectInfo.less +259 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +410 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +110 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.js +17 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +383 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.less +111 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/PageSetting.less +105 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/index.js +148 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +56 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.js +17 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/PageSettingItem.less +272 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.d.ts +8 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +206 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +95 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.js +17 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +246 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.less +111 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/index.js +177 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/locales.js +74 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/types.js +17 -0
- package/lib/components/authentication/admin/CustomerAuth/CustomerAuth.less +104 -0
- package/lib/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/CustomerAuth/index.js +507 -0
- package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
- package/lib/components/authentication/admin/CustomerAuth/locales.js +110 -0
- package/lib/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
- package/lib/components/authentication/admin/CustomerAuth/types.js +17 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/CustomerOAuthConfig.less +164 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/index.d.ts +6 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/index.js +331 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/locales.js +161 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/types.js +17 -0
- package/lib/components/authentication/admin/DeviceAuth/DeviceAuth.less +104 -0
- package/lib/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/DeviceAuth/index.js +254 -0
- package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
- package/lib/components/authentication/admin/DeviceAuth/locales.js +98 -0
- package/lib/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
- package/lib/components/authentication/admin/DeviceAuth/types.js +17 -0
- package/lib/components/authentication/admin/OAuthConfig/OAuthConfig.less +165 -0
- package/lib/components/authentication/admin/OAuthConfig/index.d.ts +6 -0
- package/lib/components/authentication/admin/OAuthConfig/index.js +226 -0
- package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
- package/lib/components/authentication/admin/OAuthConfig/locales.js +140 -0
- package/lib/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
- package/lib/components/authentication/admin/OAuthConfig/types.js +17 -0
- package/lib/components/authentication/admin/OrgAdminAuth/OrgAdminAuth.less +104 -0
- package/lib/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/OrgAdminAuth/index.js +398 -0
- package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
- package/lib/components/authentication/admin/OrgAdminAuth/locales.js +98 -0
- package/lib/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
- package/lib/components/authentication/admin/OrgAdminAuth/types.js +17 -0
- package/lib/components/authentication/admin/POSOperatorAuth/POSOperatorAuth.less +104 -0
- package/lib/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/POSOperatorAuth/index.js +262 -0
- package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
- package/lib/components/authentication/admin/POSOperatorAuth/locales.js +89 -0
- package/lib/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
- package/lib/components/authentication/admin/POSOperatorAuth/types.js +17 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/SaaSAdminAuth.less +104 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/index.js +481 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/locales.js +98 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/types.js +17 -0
- package/lib/components/authentication/admin/index.d.ts +26 -0
- package/lib/components/authentication/admin/index.js +83 -0
- package/lib/components/authentication/index.d.ts +0 -0
- package/lib/components/authentication/index.js +0 -0
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/lib/components/booking/components/customSelect/index.js +27 -4
- package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/lib/components/booking/components/footer/index.js +19 -9
- package/lib/components/booking/components/footer/utils.js +82 -51
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/forms/footer.js +29 -11
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
- package/lib/components/booking/info/client/index.js +14 -1
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +7 -2
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +11 -4
- package/lib/components/booking/info/clientVariant/vertical/index.js +34 -17
- package/lib/components/booking/info/date/index.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +1 -0
- package/lib/components/booking/info/main.js +5 -4
- package/lib/components/booking/info/model.js +5 -0
- package/lib/components/booking/info/service/Lists.js +1 -1
- package/lib/components/booking/info/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info/service/like/index.d.ts +1 -0
- package/lib/components/booking/info2/cartClientCard/index.js +25 -5
- package/lib/components/booking/info2/index.js +11 -5
- package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
- package/lib/components/booking/info2/service/contactInfoMode/index.js +111 -0
- package/lib/components/booking/locales.d.ts +6 -0
- package/lib/components/booking/locales.js +12 -3
- package/lib/components/booking/materiels/duration/index.d.ts +1 -0
- package/lib/components/booking/materiels/holder/index.d.ts +1 -0
- package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
- package/lib/components/booking/model.d.ts +4 -0
- package/lib/components/booking/model.js +3 -0
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/lib/components/checkout/PaymentModal.js +110 -21
- package/lib/components/checkout/components/AdditionalModule/index.d.ts +3 -1
- package/lib/components/checkout/components/AdditionalModule/index.js +44 -11
- package/lib/components/checkout/components/AmountSummary/index.js +5 -46
- package/lib/components/checkout/components/AmountSummary/index.less +1 -1
- package/lib/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
- package/lib/components/checkout/components/CashPaymentModule/index.js +5 -2
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +5 -1
- package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -0
- package/lib/components/checkout/components/PaymentOptionsModule/index.js +6 -0
- package/lib/components/checkout/components/PaymentOptionsModule/index.less +4 -0
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +4 -0
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +23 -5
- package/lib/components/checkout/components/PaymentResultToast/index.js +4 -4
- package/lib/components/checkout/components/PaymentResultToast/index.less +94 -33
- package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/lib/components/checkout/index.less +1 -1
- package/lib/components/checkout/locales.d.ts +6 -0
- package/lib/components/checkout/locales.js +6 -0
- package/lib/components/checkout/utils/PaymentResultToastUtils.js +11 -1
- package/lib/components/eftpos/deviceList/index.d.ts +1 -0
- package/lib/components/eftpos/group/index.d.ts +1 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
- package/lib/components/eftpos/icon/device.d.ts +1 -0
- package/lib/components/eftpos/receipt/index.d.ts +1 -0
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/lib/components/eftposPay/component/step/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/step.d.ts +1 -0
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/linkly/index.js +31 -1
- package/lib/components/eftposPay/store/index.d.ts +2 -2
- package/lib/components/eftposPay/tip.d.ts +1 -0
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eftposPay/tyro/index.js +12 -0
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/lib/components/index.d.ts +3 -2
- package/lib/components/index.js +20 -1
- package/lib/components/login/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/ApplePay/index.js +27 -7
- package/lib/components/pay/toC/PaymentMethods/GooglePay/index.js +32 -8
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +30 -4
- package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.d.ts +15 -0
- package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +88 -0
- package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +34 -0
- package/lib/components/pay/toC/PaymentMethods/hooks/index.d.ts +19 -0
- package/lib/components/pay/toC/PaymentMethods/hooks/index.js +90 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/lib/components/pay/toC/index.js +11 -2
- package/lib/components/pay/toC/locales.d.ts +9 -0
- package/lib/components/pay/toC/locales.js +12 -3
- package/lib/components/pay/toC/model.d.ts +1 -0
- package/lib/components/pay/toC/serve.d.ts +5 -0
- package/lib/components/pay/toC/serve.js +3 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/lib/components/schedules/calendar/index.d.ts +1 -0
- package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/lib/components/schedules/products/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/list/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +0 -1
- package/lib/components/ticketBooking/components/menuBar/index.js +42 -6
- package/lib/components/ticketBooking/components/ticketBooking/index.js +2 -2
- package/lib/components/ticketBooking/components/ticketBooking/index.less +2 -1
- package/lib/components/ticketBooking/components/timeBar/index.js +105 -4
- package/lib/components/ticketBooking/components/timeBar/index.less +59 -0
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +17 -13
- package/lib/components/ticketBooking/locales.d.ts +6 -0
- package/lib/components/ticketBooking/locales.js +9 -3
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/components/walletList/index.js +88 -47
- package/lib/components/walletList/serve.d.ts +4 -0
- package/lib/components/walletList/serve.js +12 -0
- package/lib/components/walletList/types/index.d.ts +12 -12
- package/lib/hooks/usePaymentLogger.d.ts +1 -0
- package/lib/index.d.ts +7 -1
- package/lib/index.js +38 -3
- package/lib/plus/clientCard/locales.js +3 -3
- package/lib/plus/clientName/index.d.ts +1 -0
- package/lib/plus/clinetSearch/index.js +17 -8
- package/lib/plus/clinetSearch/locales.d.ts +3 -0
- package/lib/plus/clinetSearch/locales.js +7 -4
- package/lib/plus/clinetSearch/types.d.ts +12 -0
- package/lib/plus/contactInfo/components/Avatar/index.d.ts +10 -0
- package/lib/plus/contactInfo/components/Avatar/index.js +56 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.js +373 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.less +74 -0
- package/lib/plus/contactInfo/index.d.ts +6 -0
- package/lib/plus/contactInfo/index.js +226 -0
- package/lib/plus/contactInfo/index.less +621 -0
- package/lib/plus/contactInfo/locales.d.ts +15 -0
- package/lib/plus/contactInfo/locales.js +38 -0
- package/lib/plus/contactInfo/types.d.ts +91 -0
- package/lib/plus/contactInfo/types.js +17 -0
- package/lib/plus/contactInfo/utils.d.ts +7 -0
- package/lib/plus/contactInfo/utils.js +64 -0
- package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
- package/lib/plus/contactInfoModal/ContactInfoContent.js +129 -0
- package/lib/plus/contactInfoModal/index.d.ts +41 -0
- package/lib/plus/contactInfoModal/index.js +139 -0
- package/lib/plus/contactInfoModal/index.less +19 -0
- package/lib/plus/contactInfoModal/locales.d.ts +66 -0
- package/lib/plus/contactInfoModal/locales.js +89 -0
- package/lib/plus/productSelect/CategoryTabs/index.d.ts +2 -0
- package/lib/plus/productSelect/CategoryTabs/index.js +86 -71
- package/lib/plus/productSelect/ProductCard/index.d.ts +3 -1
- package/lib/plus/productSelect/ProductCard/index.js +18 -1
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.less +0 -11
- package/lib/plus/productSelect/index.d.ts +3 -2
- package/lib/plus/productSelect/index.js +20 -6
- package/lib/plus/productSelect/index.less +4 -0
- package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
- package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
- package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
- package/lib/plus/saasRegister/components/Header.d.ts +1 -0
- package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
- package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
- package/lib/plus/walletEditor/WalletEditor.d.ts +5 -0
- package/lib/plus/walletEditor/WalletEditor.js +354 -0
- package/lib/plus/walletEditor/WalletEditor.less +129 -0
- package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +8 -0
- package/lib/plus/walletEditor/components/ImageUpload/index.js +201 -0
- package/lib/plus/walletEditor/components/JsonEditor/index.d.ts +11 -0
- package/lib/plus/walletEditor/components/JsonEditor/index.js +89 -0
- package/lib/plus/walletEditor/components/JsonEditor/index.less +4 -0
- package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +20 -0
- package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.js +176 -0
- package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.less +4 -0
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +6 -0
- package/lib/plus/walletEditor/components/relationProduct/index.js +73 -0
- package/lib/plus/walletEditor/components/relationProduct/index.less +15 -0
- package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +37 -0
- package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.js +211 -0
- package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.less +110 -0
- package/lib/plus/walletEditor/index.d.ts +3 -0
- package/lib/plus/walletEditor/index.js +42 -0
- package/lib/plus/walletEditor/locales.d.ts +126 -0
- package/lib/plus/walletEditor/locales.js +167 -0
- package/lib/plus/walletEditor/types.d.ts +52 -0
- package/lib/plus/walletEditor/types.js +17 -0
- package/lib/plus/walletPassGallery/components/footerButton/index.d.ts +14 -0
- package/lib/plus/walletPassGallery/components/footerButton/index.js +187 -0
- package/lib/plus/walletPassGallery/components/footerButton/index.less +93 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +8 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.js +287 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.less +57 -0
- package/lib/plus/walletPassGallery/components/passList/index.d.ts +12 -0
- package/lib/plus/walletPassGallery/components/passList/index.js +136 -0
- package/lib/plus/walletPassGallery/components/recharge/index.d.ts +11 -0
- package/lib/plus/walletPassGallery/components/recharge/index.js +146 -0
- package/lib/plus/walletPassGallery/components/recharge/index.less +16 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +9 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.js +212 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.less +67 -0
- package/lib/plus/walletPassGallery/components/usageRule/index.d.ts +9 -0
- package/lib/plus/walletPassGallery/components/usageRule/index.js +209 -0
- package/lib/plus/walletPassGallery/components/usageRule/index.less +157 -0
- package/lib/plus/walletPassGallery/index.d.ts +6 -0
- package/lib/plus/walletPassGallery/index.js +498 -0
- package/lib/plus/walletPassGallery/index.less +115 -0
- package/lib/plus/walletPassGallery/locales.d.ts +270 -0
- package/lib/plus/walletPassGallery/locales.js +299 -0
- package/lib/plus/walletPassGallery/serve.d.ts +218 -0
- package/lib/plus/walletPassGallery/serve.js +98 -0
- package/lib/pro/Login2.0/AuthModal.d.ts +143 -0
- package/lib/pro/Login2.0/AuthModal.js +503 -0
- package/lib/pro/Login2.0/Login2.d.ts +61 -0
- package/lib/pro/Login2.0/Login2.js +1545 -0
- package/lib/pro/Login2.0/Register2.d.ts +65 -0
- package/lib/pro/Login2.0/Register2.js +1063 -0
- package/lib/pro/Login2.0/components/ForgotPasswordFlow.d.ts +31 -0
- package/lib/pro/Login2.0/components/ForgotPasswordFlow.js +213 -0
- package/lib/pro/Login2.0/components/LegalTerms.d.ts +8 -0
- package/lib/pro/Login2.0/components/LegalTerms.js +76 -0
- package/lib/pro/Login2.0/components/LegalTerms.less +74 -0
- package/lib/pro/Login2.0/components/LoginCodeInput.d.ts +27 -0
- package/lib/pro/Login2.0/components/LoginCodeInput.js +161 -0
- package/lib/pro/Login2.0/components/OAuthButtonGroup.d.ts +22 -0
- package/lib/pro/Login2.0/components/OAuthButtonGroup.js +87 -0
- package/lib/pro/Login2.0/components/PhoneInput.d.ts +53 -0
- package/lib/pro/Login2.0/components/PhoneInput.js +263 -0
- package/lib/pro/Login2.0/components/PhoneInput.less +148 -0
- package/lib/pro/Login2.0/components/phoneValidation.d.ts +17 -0
- package/lib/pro/Login2.0/components/phoneValidation.js +153 -0
- package/lib/pro/Login2.0/hooks/index.d.ts +2 -0
- package/lib/pro/Login2.0/hooks/index.js +29 -0
- package/lib/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
- package/lib/pro/Login2.0/hooks/usePasswordValidationRules.js +140 -0
- package/lib/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
- package/lib/pro/Login2.0/hooks/useRegisterFlow.js +149 -0
- package/lib/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
- package/lib/pro/Login2.0/hooks/useRegistrationMethods.js +51 -0
- package/lib/pro/Login2.0/index.js +45 -0
- package/lib/pro/Login2.0/index.less +1002 -0
- package/lib/pro/Login2.0/locales.d.ts +543 -0
- package/lib/pro/Login2.0/locales.js +646 -0
- package/lib/pro/Login2.0/shared/Header.d.ts +11 -0
- package/lib/pro/Login2.0/shared/Header.js +81 -0
- package/lib/pro/Login2.0/shared/OAuthButtons.d.ts +11 -0
- package/lib/pro/Login2.0/shared/OAuthButtons.js +78 -0
- package/lib/pro/Login2.0/shared/registerFlow.d.ts +116 -0
- package/lib/pro/Login2.0/shared/registerFlow.js +235 -0
- package/lib/pro/Login2.0/shared/types.d.ts +232 -0
- package/lib/pro/Login2.0/shared/types.js +17 -0
- package/lib/pro/Login2.0/steps/CodeInput.d.ts +24 -0
- package/lib/pro/Login2.0/steps/CodeInput.js +160 -0
- package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +12 -0
- package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.js +46 -0
- package/lib/pro/Login2.0/steps/EmailLinkAlreadyUsed.d.ts +7 -0
- package/lib/pro/Login2.0/steps/EmailLinkAlreadyUsed.js +51 -0
- package/lib/pro/Login2.0/steps/EmailLinkExpired.d.ts +9 -0
- package/lib/pro/Login2.0/steps/EmailLinkExpired.js +51 -0
- package/lib/pro/Login2.0/steps/SetPassword.d.ts +19 -0
- package/lib/pro/Login2.0/steps/SetPassword.js +131 -0
- package/lib/pro/Login2.0/steps/VerificationSuccess.d.ts +8 -0
- package/lib/pro/Login2.0/steps/VerificationSuccess.js +49 -0
- package/lib/pro/Login2.0/steps/VerifyingEmailLink.d.ts +7 -0
- package/lib/pro/Login2.0/steps/VerifyingEmailLink.js +41 -0
- package/lib/pro/Login2.0/steps/WaitEmailLink.d.ts +18 -0
- package/lib/pro/Login2.0/steps/WaitEmailLink.js +67 -0
- package/lib/pro/Login2.0/steps/index.d.ts +19 -0
- package/lib/pro/Login2.0/steps/index.js +60 -0
- package/lib/pro/Login2.0/steps/steps.less +423 -0
- package/lib/pro/Login2.0/types.d.ts +167 -0
- package/lib/pro/Login2.0/types.js +17 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/lib/pro/comprehensiveSearch/locales.js +1 -1
- package/lib/pro/pisellPaymentList/example.d.ts +20 -0
- package/lib/pro/pisellPaymentList/example.js +416 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +9 -5
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.js +3 -2
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +1 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +8 -1
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +1 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.js +3 -2
- package/lib/pro/priceKeyboard/components/shortcuts/index.less +4 -0
- package/lowcode/admin-auth-customer-auth/meta.ts +29 -0
- package/lowcode/admin-auth-customer-oauth-config/meta.ts +55 -0
- package/lowcode/admin-auth-device-auth/meta.ts +30 -0
- package/lowcode/admin-auth-methods/meta.ts +385 -0
- package/lowcode/admin-auth-oauth-config/meta.ts +29 -0
- package/lowcode/admin-auth-online-shop-auth/meta.ts +29 -0
- package/lowcode/admin-auth-org-admin-auth/meta.ts +29 -0
- package/lowcode/admin-auth-pos-operator-auth/meta.ts +30 -0
- package/lowcode/admin-auth-saas-admin-auth/meta.ts +29 -0
- package/lowcode/admin-auth-saas-managerment-auth/meta.ts +30 -0
- package/lowcode/admin-setting-list/meta.ts +125 -0
- package/lowcode/authmodal/meta.ts +395 -0
- package/lowcode/contact-info/fragments/cardStyle.ts +68 -0
- package/lowcode/contact-info/fragments/nameStyle.ts +33 -0
- package/lowcode/contact-info/fragments/pisellAvatar.ts +103 -0
- package/lowcode/contact-info/fragments/textStyle.ts +33 -0
- package/lowcode/contact-info/meta.ts +199 -0
- package/lowcode/contact-info-modal/meta.ts +98 -0
- package/lowcode/login2/CONFIG.md +447 -0
- package/lowcode/login2/TEST_CONFIG.md +324 -0
- package/lowcode/login2/VERIFICATION_METHODS.md +364 -0
- package/lowcode/login2/meta.ts +560 -0
- package/lowcode/login2/snippets.ts +124 -0
- package/lowcode/pro-register/meta.ts +385 -0
- package/lowcode/register2/meta.ts +562 -0
- package/lowcode/register2/snippets.ts +257 -0
- package/lowcode/sortable-wallet-pass-types/meta.ts +267 -0
- package/lowcode/wallet-editor/meta.ts +57 -0
- package/lowcode/wallet-editor/snippets.ts +13 -0
- package/lowcode/wallet-pass-gallery/meta.ts +35 -0
- package/package.json +6 -4
- package/lowcode/wallet/meta.ts +0 -79
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
4
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6
|
+
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; }
|
|
7
|
+
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; } }
|
|
8
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
9
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
10
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
11
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
12
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
13
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
14
|
+
import { animated, useSpring } from '@react-spring/web';
|
|
15
|
+
import { useDrag } from '@use-gesture/react/dist/use-gesture-react.cjs';
|
|
16
|
+
import React, { forwardRef, useEffect, useImperativeHandle, useRef, useState } from 'react';
|
|
17
|
+
|
|
18
|
+
// 本地实现的工具函数和类型
|
|
19
|
+
|
|
20
|
+
// withNativeProps 工具函数
|
|
21
|
+
function withNativeProps(props, element) {
|
|
22
|
+
var p = _objectSpread({}, element.props);
|
|
23
|
+
if (props.className) {
|
|
24
|
+
p.className = props.className + (element.props.className ? " ".concat(element.props.className) : '');
|
|
25
|
+
}
|
|
26
|
+
if (props.style) {
|
|
27
|
+
p.style = _objectSpread(_objectSpread({}, props.style), element.props.style);
|
|
28
|
+
}
|
|
29
|
+
return /*#__PURE__*/React.cloneElement(element, p);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// nearest 工具函数
|
|
33
|
+
function nearest(arr, target) {
|
|
34
|
+
return arr.reduce(function (prev, curr) {
|
|
35
|
+
return Math.abs(curr - target) < Math.abs(prev - target) ? curr : prev;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// mergeProps 工具函数
|
|
40
|
+
function mergeProps(a, b) {
|
|
41
|
+
return _objectSpread(_objectSpread({}, a), b);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// withStopPropagation 工具函数
|
|
45
|
+
function withStopPropagation(events, element) {
|
|
46
|
+
if (!events.includes('click')) {
|
|
47
|
+
return element;
|
|
48
|
+
}
|
|
49
|
+
var onClick = function onClick(e) {
|
|
50
|
+
var _element$props$onClic, _element$props;
|
|
51
|
+
e.stopPropagation();
|
|
52
|
+
(_element$props$onClic = (_element$props = element.props).onClick) === null || _element$props$onClic === void 0 || _element$props$onClic.call(_element$props, e);
|
|
53
|
+
};
|
|
54
|
+
return /*#__PURE__*/React.cloneElement(element, _objectSpread(_objectSpread({}, element.props), {}, {
|
|
55
|
+
onClick: onClick
|
|
56
|
+
}));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Button 组件实现
|
|
60
|
+
|
|
61
|
+
var Button = function Button(_ref) {
|
|
62
|
+
var children = _ref.children,
|
|
63
|
+
className = _ref.className,
|
|
64
|
+
style = _ref.style,
|
|
65
|
+
onClick = _ref.onClick;
|
|
66
|
+
return /*#__PURE__*/React.createElement("button", {
|
|
67
|
+
className: className,
|
|
68
|
+
style: _objectSpread({
|
|
69
|
+
border: 'none',
|
|
70
|
+
background: (style === null || style === void 0 ? void 0 : style['--background-color']) || 'transparent'
|
|
71
|
+
}, style),
|
|
72
|
+
onClick: onClick
|
|
73
|
+
}, children);
|
|
74
|
+
};
|
|
75
|
+
import "./index.less";
|
|
76
|
+
var classPrefix = "pisell-custom-swipe-action";
|
|
77
|
+
var defaultProps = {
|
|
78
|
+
rightActions: [],
|
|
79
|
+
leftActions: [],
|
|
80
|
+
closeOnTouchOutside: true,
|
|
81
|
+
closeOnAction: true,
|
|
82
|
+
stopPropagation: []
|
|
83
|
+
};
|
|
84
|
+
export var SwipeAction = /*#__PURE__*/forwardRef(function (p, ref) {
|
|
85
|
+
var props = mergeProps(defaultProps, p);
|
|
86
|
+
var rootRef = useRef(null);
|
|
87
|
+
var leftRef = useRef(null);
|
|
88
|
+
var rightRef = useRef(null);
|
|
89
|
+
|
|
90
|
+
// 添加容器高度状态
|
|
91
|
+
var _useState = useState(0),
|
|
92
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
93
|
+
containerHeight = _useState2[0],
|
|
94
|
+
setContainerHeight = _useState2[1];
|
|
95
|
+
function getWidth(ref) {
|
|
96
|
+
var element = ref.current;
|
|
97
|
+
if (!element) return 0;
|
|
98
|
+
return element.offsetWidth;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// 添加获取高度的函数
|
|
102
|
+
function getHeight(ref) {
|
|
103
|
+
var element = ref.current;
|
|
104
|
+
if (!element) return 0;
|
|
105
|
+
return element.offsetHeight;
|
|
106
|
+
}
|
|
107
|
+
function getLeftWidth() {
|
|
108
|
+
return getWidth(leftRef);
|
|
109
|
+
}
|
|
110
|
+
function getRightWidth() {
|
|
111
|
+
return getWidth(rightRef);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// 添加获取根容器高度的函数
|
|
115
|
+
function getRootHeight() {
|
|
116
|
+
return getHeight(rootRef);
|
|
117
|
+
}
|
|
118
|
+
var _useSpring = useSpring(function () {
|
|
119
|
+
return {
|
|
120
|
+
x: 0,
|
|
121
|
+
config: {
|
|
122
|
+
tension: 200,
|
|
123
|
+
friction: 30
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
}, []),
|
|
127
|
+
_useSpring2 = _slicedToArray(_useSpring, 2),
|
|
128
|
+
x = _useSpring2[0].x,
|
|
129
|
+
api = _useSpring2[1];
|
|
130
|
+
var draggingRef = useRef(false);
|
|
131
|
+
var dragCancelRef = useRef(null);
|
|
132
|
+
function forceCancelDrag() {
|
|
133
|
+
var _dragCancelRef$curren;
|
|
134
|
+
(_dragCancelRef$curren = dragCancelRef.current) === null || _dragCancelRef$curren === void 0 || _dragCancelRef$curren.call(dragCancelRef);
|
|
135
|
+
draggingRef.current = false;
|
|
136
|
+
}
|
|
137
|
+
var bind = useDrag(function (state) {
|
|
138
|
+
dragCancelRef.current = state.cancel;
|
|
139
|
+
if (!state.intentional) return;
|
|
140
|
+
if (state.down) {
|
|
141
|
+
draggingRef.current = true;
|
|
142
|
+
}
|
|
143
|
+
if (!draggingRef.current) return;
|
|
144
|
+
var _state$offset = _slicedToArray(state.offset, 1),
|
|
145
|
+
offsetX = _state$offset[0];
|
|
146
|
+
if (state.last) {
|
|
147
|
+
var leftWidth = getLeftWidth();
|
|
148
|
+
var rightWidth = getRightWidth();
|
|
149
|
+
var position = offsetX + state.velocity[0] * state.direction[0] * 50;
|
|
150
|
+
if (offsetX > 0) {
|
|
151
|
+
position = Math.max(0, position);
|
|
152
|
+
} else if (offsetX < 0) {
|
|
153
|
+
position = Math.min(0, position);
|
|
154
|
+
} else {
|
|
155
|
+
position = 0;
|
|
156
|
+
}
|
|
157
|
+
var targetX = nearest([-rightWidth, 0, leftWidth], position);
|
|
158
|
+
api.start({
|
|
159
|
+
x: targetX
|
|
160
|
+
});
|
|
161
|
+
if (targetX !== 0) {
|
|
162
|
+
var _p$onActionsReveal;
|
|
163
|
+
(_p$onActionsReveal = p.onActionsReveal) === null || _p$onActionsReveal === void 0 || _p$onActionsReveal.call(p, targetX > 0 ? 'left' : 'right');
|
|
164
|
+
}
|
|
165
|
+
window.setTimeout(function () {
|
|
166
|
+
draggingRef.current = false;
|
|
167
|
+
});
|
|
168
|
+
} else {
|
|
169
|
+
api.start({
|
|
170
|
+
x: offsetX,
|
|
171
|
+
immediate: true
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
}, {
|
|
175
|
+
from: function from() {
|
|
176
|
+
return [x.get(), 0];
|
|
177
|
+
},
|
|
178
|
+
bounds: function bounds() {
|
|
179
|
+
var leftWidth = getLeftWidth();
|
|
180
|
+
var rightWidth = getRightWidth();
|
|
181
|
+
return {
|
|
182
|
+
left: -rightWidth,
|
|
183
|
+
right: leftWidth
|
|
184
|
+
};
|
|
185
|
+
},
|
|
186
|
+
axis: 'x',
|
|
187
|
+
preventScroll: true,
|
|
188
|
+
pointer: {
|
|
189
|
+
touch: true
|
|
190
|
+
},
|
|
191
|
+
triggerAllEvents: true
|
|
192
|
+
});
|
|
193
|
+
var close = function close() {
|
|
194
|
+
var _props$onClose;
|
|
195
|
+
api.start({
|
|
196
|
+
x: 0
|
|
197
|
+
});
|
|
198
|
+
forceCancelDrag();
|
|
199
|
+
(_props$onClose = props.onClose) === null || _props$onClose === void 0 || _props$onClose.call(props);
|
|
200
|
+
};
|
|
201
|
+
useImperativeHandle(ref, function () {
|
|
202
|
+
return {
|
|
203
|
+
show: function show() {
|
|
204
|
+
var _p$onActionsReveal2;
|
|
205
|
+
var side = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'right';
|
|
206
|
+
if (side === 'right') {
|
|
207
|
+
api.start({
|
|
208
|
+
x: -getRightWidth()
|
|
209
|
+
});
|
|
210
|
+
} else if (side === 'left') {
|
|
211
|
+
api.start({
|
|
212
|
+
x: getLeftWidth()
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
(_p$onActionsReveal2 = p.onActionsReveal) === null || _p$onActionsReveal2 === void 0 || _p$onActionsReveal2.call(p, side);
|
|
216
|
+
},
|
|
217
|
+
close: close
|
|
218
|
+
};
|
|
219
|
+
});
|
|
220
|
+
|
|
221
|
+
// 添加高度检测的 useEffect
|
|
222
|
+
useEffect(function () {
|
|
223
|
+
var updateHeight = function updateHeight() {
|
|
224
|
+
var height = getRootHeight();
|
|
225
|
+
setContainerHeight(height);
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
// 组件挂载后检测高度
|
|
229
|
+
updateHeight();
|
|
230
|
+
|
|
231
|
+
// 监听窗口大小变化
|
|
232
|
+
var resizeObserver = new ResizeObserver(updateHeight);
|
|
233
|
+
if (rootRef.current) {
|
|
234
|
+
resizeObserver.observe(rootRef.current);
|
|
235
|
+
}
|
|
236
|
+
return function () {
|
|
237
|
+
resizeObserver.disconnect();
|
|
238
|
+
};
|
|
239
|
+
}, []);
|
|
240
|
+
useEffect(function () {
|
|
241
|
+
if (!props.closeOnTouchOutside) return;
|
|
242
|
+
function handle(e) {
|
|
243
|
+
// 检查点击的元素或其祖先元素是否有特定 class
|
|
244
|
+
if (e.target && props.escapeDom) {
|
|
245
|
+
var container = document.querySelector(props.escapeDom);
|
|
246
|
+
if (container !== null && container !== void 0 && container.contains(e.target)) return;
|
|
247
|
+
}
|
|
248
|
+
if (x.get() === 0) {
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
var root = rootRef.current;
|
|
252
|
+
if (root && !root.contains(e.target)) {
|
|
253
|
+
close();
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
if ('ontouchstart' in window) {
|
|
257
|
+
document.addEventListener('touchstart', handle);
|
|
258
|
+
} else {
|
|
259
|
+
document.addEventListener('mousedown', handle);
|
|
260
|
+
}
|
|
261
|
+
return function () {
|
|
262
|
+
document.removeEventListener('touchstart', handle);
|
|
263
|
+
document.removeEventListener('mousedown', handle);
|
|
264
|
+
};
|
|
265
|
+
}, [props.closeOnTouchOutside, props.escapeDom]);
|
|
266
|
+
|
|
267
|
+
// 根据容器高度获取右侧容器的 class 名称
|
|
268
|
+
var getRightContainerClass = function getRightContainerClass() {
|
|
269
|
+
var baseClass = "".concat(classPrefix, "-actions ").concat(classPrefix, "-actions-right");
|
|
270
|
+
if (containerHeight > 180) {
|
|
271
|
+
return "".concat(baseClass, " ").concat(classPrefix, "-height-large");
|
|
272
|
+
} else if (containerHeight > 120) {
|
|
273
|
+
return "".concat(baseClass, " ").concat(classPrefix, "-height-medium");
|
|
274
|
+
}
|
|
275
|
+
return "".concat(baseClass, " ").concat(classPrefix, "-height-small");
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
// 根据容器高度获取右侧按钮的 class 名称
|
|
279
|
+
var getRightActionButtonClass = function getRightActionButtonClass() {
|
|
280
|
+
if (containerHeight > 180) {
|
|
281
|
+
return "".concat(classPrefix, "-action-height-large");
|
|
282
|
+
} else if (containerHeight > 120) {
|
|
283
|
+
return "".concat(classPrefix, "-action-height-medium");
|
|
284
|
+
}
|
|
285
|
+
return "".concat(classPrefix, "-action-height-small");
|
|
286
|
+
};
|
|
287
|
+
function renderAction(action) {
|
|
288
|
+
var _action$color, _colorRecord$color;
|
|
289
|
+
var isRightAction = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
290
|
+
var color = (_action$color = action.color) !== null && _action$color !== void 0 ? _action$color : 'light';
|
|
291
|
+
var _style = action.style || {};
|
|
292
|
+
|
|
293
|
+
// 为右侧按钮添加基于高度的 class
|
|
294
|
+
var buttonClass = isRightAction ? "".concat(classPrefix, "-action-button ").concat(getRightActionButtonClass()) : "".concat(classPrefix, "-action-button");
|
|
295
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
296
|
+
key: action.key,
|
|
297
|
+
className: buttonClass,
|
|
298
|
+
style: _objectSpread({
|
|
299
|
+
'--background-color': (_colorRecord$color = colorRecord[color]) !== null && _colorRecord$color !== void 0 ? _colorRecord$color : color
|
|
300
|
+
}, _style),
|
|
301
|
+
onClick: function onClick(e) {
|
|
302
|
+
var _action$onClick, _props$onAction;
|
|
303
|
+
if (props.closeOnAction) {
|
|
304
|
+
close();
|
|
305
|
+
}
|
|
306
|
+
(_action$onClick = action.onClick) === null || _action$onClick === void 0 || _action$onClick.call(action, e);
|
|
307
|
+
(_props$onAction = props.onAction) === null || _props$onAction === void 0 || _props$onAction.call(props, action, e);
|
|
308
|
+
}
|
|
309
|
+
}, action.text);
|
|
310
|
+
}
|
|
311
|
+
return withNativeProps(props, /*#__PURE__*/React.createElement("div", _extends({
|
|
312
|
+
className: classPrefix
|
|
313
|
+
}, bind(), {
|
|
314
|
+
ref: rootRef,
|
|
315
|
+
onClickCapture: function onClickCapture(e) {
|
|
316
|
+
if (draggingRef.current) {
|
|
317
|
+
e.stopPropagation();
|
|
318
|
+
e.preventDefault();
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}), /*#__PURE__*/React.createElement(animated.div, {
|
|
322
|
+
className: "".concat(classPrefix, "-track"),
|
|
323
|
+
style: {
|
|
324
|
+
x: x
|
|
325
|
+
}
|
|
326
|
+
}, withStopPropagation(props.stopPropagation, /*#__PURE__*/React.createElement("div", {
|
|
327
|
+
className: "".concat(classPrefix, "-actions ").concat(classPrefix, "-actions-left"),
|
|
328
|
+
ref: leftRef
|
|
329
|
+
}, props.leftActions.map(function (action) {
|
|
330
|
+
return renderAction(action, false);
|
|
331
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
332
|
+
className: "".concat(classPrefix, "-content"),
|
|
333
|
+
onClickCapture: function onClickCapture(e) {
|
|
334
|
+
if (x.goal !== 0) {
|
|
335
|
+
e.preventDefault();
|
|
336
|
+
e.stopPropagation();
|
|
337
|
+
close();
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}, /*#__PURE__*/React.createElement(animated.div, {
|
|
341
|
+
style: {
|
|
342
|
+
pointerEvents: x.to(function (v) {
|
|
343
|
+
return v !== 0 && x.goal !== 0 ? 'none' : 'auto';
|
|
344
|
+
})
|
|
345
|
+
}
|
|
346
|
+
}, props.children)), withStopPropagation(props.stopPropagation, /*#__PURE__*/React.createElement("div", {
|
|
347
|
+
className: getRightContainerClass(),
|
|
348
|
+
ref: rightRef
|
|
349
|
+
}, props.rightActions.map(function (action) {
|
|
350
|
+
return renderAction(action, true);
|
|
351
|
+
}))))));
|
|
352
|
+
});
|
|
353
|
+
var colorRecord = {
|
|
354
|
+
light: '#ccc',
|
|
355
|
+
weak: '#999',
|
|
356
|
+
primary: '#1677ff',
|
|
357
|
+
success: '#00b578',
|
|
358
|
+
warning: '#ff8f1f',
|
|
359
|
+
danger: '#ff3141'
|
|
360
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
.pisell-custom-swipe-action {
|
|
2
|
+
cursor: grab;
|
|
3
|
+
overflow: hidden;
|
|
4
|
+
touch-action: pan-y;
|
|
5
|
+
&-track {
|
|
6
|
+
position: relative;
|
|
7
|
+
overflow: visible;
|
|
8
|
+
}
|
|
9
|
+
&-content {
|
|
10
|
+
}
|
|
11
|
+
&-actions {
|
|
12
|
+
position: absolute;
|
|
13
|
+
display: flex;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
align-items: stretch;
|
|
16
|
+
width: auto;
|
|
17
|
+
white-space: nowrap;
|
|
18
|
+
&-right {
|
|
19
|
+
left: 100%;
|
|
20
|
+
top: 0;
|
|
21
|
+
height: 100%;
|
|
22
|
+
}
|
|
23
|
+
&-left {
|
|
24
|
+
right: 100%;
|
|
25
|
+
top: 0;
|
|
26
|
+
height: 100%;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
&-action-button {
|
|
30
|
+
--border-radius: 0;
|
|
31
|
+
--border-width: 0;
|
|
32
|
+
padding-left: 4px;
|
|
33
|
+
padding-right: 4px;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.pisell-custom-swipe-action-action-button {
|
|
38
|
+
min-width: 80px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* 容器样式 */
|
|
42
|
+
.pisell-custom-swipe-action-height-large {
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
background-color: rgba(67, 93, 147, 0.3);
|
|
46
|
+
justify-content: flex-start;
|
|
47
|
+
|
|
48
|
+
.pisell-number-selector-btn {
|
|
49
|
+
width: 40px !important;
|
|
50
|
+
height: 40px !important;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.pisell-custom-swipe-action-height-medium {
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
background-color: rgba(67, 93, 147, 0.3);
|
|
58
|
+
|
|
59
|
+
.pisell-number-selector-btn {
|
|
60
|
+
width: 40px !important;
|
|
61
|
+
height: 40px !important;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* 按钮样式 */
|
|
66
|
+
.pisell-custom-swipe-action-action-height-large {
|
|
67
|
+
height: 60px;
|
|
68
|
+
width: 200px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.pisell-custom-swipe-action-action-height-medium {
|
|
72
|
+
flex: 1;
|
|
73
|
+
width: 200px;
|
|
74
|
+
}
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
+
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; }
|
|
11
|
+
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; } }
|
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
+
import React, { useMemo, useState } from 'react';
|
|
14
|
+
import { Iconfont } from '@pisell/materials';
|
|
15
|
+
import { locales } from '@pisell/utils';
|
|
16
|
+
import useEngineContext from "../../hooks/useEngineContext";
|
|
17
|
+
import Avatar from "./components/Avatar";
|
|
18
|
+
import { SwipeAction } from "./components/SwipeAction";
|
|
19
|
+
import ContactInfoModal from "../contactInfoModal";
|
|
20
|
+
import localeTexts from "./locales";
|
|
21
|
+
import "./index.less";
|
|
22
|
+
export var PREFIX = 'pisell-plus-contact-info';
|
|
23
|
+
var ContactInfo = function ContactInfo(props) {
|
|
24
|
+
var _context$appHelper$ut, _props$style2;
|
|
25
|
+
console.log('props>>>>>>>>>', props);
|
|
26
|
+
var dataSource = props.dataSource,
|
|
27
|
+
defaultName = props.defaultName,
|
|
28
|
+
placeholder = props.placeholder,
|
|
29
|
+
_props$direction = props.direction,
|
|
30
|
+
direction = _props$direction === void 0 ? 'horizontal' : _props$direction,
|
|
31
|
+
isShowDelete = props.isShowDelete,
|
|
32
|
+
isShowAvatar = props.isShowAvatar,
|
|
33
|
+
isShowPhone = props.isShowPhone,
|
|
34
|
+
isShowEmail = props.isShowEmail,
|
|
35
|
+
horizontalGap = props.horizontalGap,
|
|
36
|
+
verticalGap = props.verticalGap,
|
|
37
|
+
_onSave = props.onSave,
|
|
38
|
+
_onDelete = props.onDelete,
|
|
39
|
+
_onCancel = props.onCancel;
|
|
40
|
+
var context = useEngineContext();
|
|
41
|
+
locales.init(localeTexts, ((_context$appHelper$ut = context.appHelper.utils) === null || _context$appHelper$ut === void 0 || (_context$appHelper$ut = _context$appHelper$ut.storage) === null || _context$appHelper$ut === void 0 ? void 0 : _context$appHelper$ut.get('umi_locale')) || 'en');
|
|
42
|
+
var _useState = useState(false),
|
|
43
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
44
|
+
modalVisible = _useState2[0],
|
|
45
|
+
setModalVisible = _useState2[1];
|
|
46
|
+
var isHorizontal = useMemo(function () {
|
|
47
|
+
return direction === 'horizontal';
|
|
48
|
+
}, [direction]);
|
|
49
|
+
var displayName = useMemo(function () {
|
|
50
|
+
var _ref = dataSource || {},
|
|
51
|
+
first_name = _ref.first_name,
|
|
52
|
+
last_name = _ref.last_name;
|
|
53
|
+
if (!first_name && !last_name) {
|
|
54
|
+
return defaultName || '';
|
|
55
|
+
}
|
|
56
|
+
return "".concat(first_name || '', " ").concat(last_name || '');
|
|
57
|
+
}, [dataSource, defaultName]);
|
|
58
|
+
var displayPhone = useMemo(function () {
|
|
59
|
+
var _ref2 = (dataSource === null || dataSource === void 0 ? void 0 : dataSource.phone) || {},
|
|
60
|
+
country_calling_code = _ref2.country_calling_code,
|
|
61
|
+
phone = _ref2.phone;
|
|
62
|
+
if (!country_calling_code || !phone) {
|
|
63
|
+
return '';
|
|
64
|
+
}
|
|
65
|
+
// 需要对country_calling_code做兼容处理,部分数据可能没有+号前缀
|
|
66
|
+
var countryCallingCode = country_calling_code !== null && country_calling_code !== void 0 && country_calling_code.startsWith('+') ? country_calling_code : "+".concat(country_calling_code);
|
|
67
|
+
return "".concat(countryCallingCode || '', " ").concat(phone || '');
|
|
68
|
+
}, [dataSource === null || dataSource === void 0 ? void 0 : dataSource.phone]);
|
|
69
|
+
var isEmpty = useMemo(function () {
|
|
70
|
+
var _dataSource$phone;
|
|
71
|
+
return !(dataSource !== null && dataSource !== void 0 && dataSource.first_name) && !(dataSource !== null && dataSource !== void 0 && dataSource.last_name) && !(dataSource !== null && dataSource !== void 0 && (_dataSource$phone = dataSource.phone) !== null && _dataSource$phone !== void 0 && _dataSource$phone.phone) && !(dataSource !== null && dataSource !== void 0 && dataSource.email);
|
|
72
|
+
}, [dataSource]);
|
|
73
|
+
var handleClick = function handleClick() {
|
|
74
|
+
console.log('handleClick');
|
|
75
|
+
setModalVisible(true);
|
|
76
|
+
};
|
|
77
|
+
var _rightActions = useMemo(function () {
|
|
78
|
+
var deleteAction = {
|
|
79
|
+
key: 'delete',
|
|
80
|
+
text: /*#__PURE__*/React.createElement("div", {
|
|
81
|
+
style: {
|
|
82
|
+
display: 'flex',
|
|
83
|
+
justifyContent: 'center',
|
|
84
|
+
alignItems: 'center',
|
|
85
|
+
color: 'white',
|
|
86
|
+
cursor: 'pointer',
|
|
87
|
+
padding: '10px 0px',
|
|
88
|
+
borderRadius: '8px'
|
|
89
|
+
}
|
|
90
|
+
}, /*#__PURE__*/React.createElement(Iconfont, {
|
|
91
|
+
type: "pisell2-trash-01",
|
|
92
|
+
style: {
|
|
93
|
+
fontSize: 20,
|
|
94
|
+
marginRight: 4
|
|
95
|
+
}
|
|
96
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
97
|
+
style: {
|
|
98
|
+
fontSize: 12,
|
|
99
|
+
fontWeight: 500
|
|
100
|
+
}
|
|
101
|
+
}, locales.getText('pisell2.text.contact-info.actions.delete'))),
|
|
102
|
+
color: 'danger',
|
|
103
|
+
onClick: function onClick(e) {
|
|
104
|
+
e.preventDefault();
|
|
105
|
+
e.stopPropagation();
|
|
106
|
+
_onDelete === null || _onDelete === void 0 || _onDelete();
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
return [deleteAction];
|
|
110
|
+
}, [dataSource, _onDelete]);
|
|
111
|
+
var renderContent = function renderContent() {
|
|
112
|
+
var _props$style;
|
|
113
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
114
|
+
className: "".concat(PREFIX, "__").concat(direction),
|
|
115
|
+
style: {
|
|
116
|
+
gap: verticalGap,
|
|
117
|
+
padding: (props === null || props === void 0 || (_props$style = props.style) === null || _props$style === void 0 ? void 0 : _props$style.padding) || '8px'
|
|
118
|
+
}
|
|
119
|
+
}, isHorizontal ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
120
|
+
className: "".concat(PREFIX, "__horizontal-left"),
|
|
121
|
+
style: {
|
|
122
|
+
gap: horizontalGap
|
|
123
|
+
}
|
|
124
|
+
}, isShowAvatar && /*#__PURE__*/React.createElement(Avatar, {
|
|
125
|
+
config: props.avatar,
|
|
126
|
+
name: displayName,
|
|
127
|
+
cover: ''
|
|
128
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
129
|
+
className: "".concat(PREFIX, "__horizontal-left-content"),
|
|
130
|
+
style: {
|
|
131
|
+
gap: verticalGap
|
|
132
|
+
}
|
|
133
|
+
}, isEmpty ? /*#__PURE__*/React.createElement("div", {
|
|
134
|
+
className: "".concat(PREFIX, "__empty-description")
|
|
135
|
+
}, placeholder || locales.getText('pisell2.text.contact-info.placeholder')) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
136
|
+
className: "".concat(PREFIX, "__name-horizontal-container")
|
|
137
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
138
|
+
className: "".concat(PREFIX, "__name-horizontal"),
|
|
139
|
+
style: props.nameStyle
|
|
140
|
+
}, displayName), isShowPhone && displayPhone && /*#__PURE__*/React.createElement("span", {
|
|
141
|
+
className: "".concat(PREFIX, "__phone-horizontal"),
|
|
142
|
+
style: props.textStyle
|
|
143
|
+
}, "(", displayPhone, ")")), isShowEmail && (dataSource === null || dataSource === void 0 ? void 0 : dataSource.email) && /*#__PURE__*/React.createElement("div", {
|
|
144
|
+
className: "".concat(PREFIX, "__text"),
|
|
145
|
+
style: props.textStyle
|
|
146
|
+
}, dataSource === null || dataSource === void 0 ? void 0 : dataSource.email)))), /*#__PURE__*/React.createElement("div", {
|
|
147
|
+
className: "".concat(PREFIX, "__horizontal-right")
|
|
148
|
+
}, /*#__PURE__*/React.createElement(Iconfont, {
|
|
149
|
+
type: isEmpty ? 'pisell2-plus-circle' : 'pisell2-edit-05',
|
|
150
|
+
className: "".concat(PREFIX, "__horizontal-right-icon")
|
|
151
|
+
}))) : /*#__PURE__*/React.createElement(React.Fragment, null, isShowAvatar && /*#__PURE__*/React.createElement(Avatar, {
|
|
152
|
+
config: props.avatar,
|
|
153
|
+
name: 'hhhhh',
|
|
154
|
+
cover: ''
|
|
155
|
+
}), isEmpty ? /*#__PURE__*/React.createElement("div", {
|
|
156
|
+
className: "".concat(PREFIX, "__empty-description")
|
|
157
|
+
}, placeholder || locales.getText('pisell2.text.contact-info.placeholder')) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
158
|
+
className: "".concat(PREFIX, "__name"),
|
|
159
|
+
style: props.nameStyle
|
|
160
|
+
}, displayName), isShowPhone && displayPhone && /*#__PURE__*/React.createElement("div", {
|
|
161
|
+
className: "".concat(PREFIX, "__text"),
|
|
162
|
+
style: props.textStyle
|
|
163
|
+
}, displayPhone), isShowEmail && (dataSource === null || dataSource === void 0 ? void 0 : dataSource.email) && /*#__PURE__*/React.createElement("div", {
|
|
164
|
+
className: "".concat(PREFIX, "__text"),
|
|
165
|
+
style: props.textStyle
|
|
166
|
+
}, dataSource === null || dataSource === void 0 ? void 0 : dataSource.email))));
|
|
167
|
+
};
|
|
168
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
169
|
+
className: "".concat(PREFIX),
|
|
170
|
+
style: _objectSpread(_objectSpread({}, props.style || {}), {}, {
|
|
171
|
+
padding: 0
|
|
172
|
+
}),
|
|
173
|
+
onClick: handleClick
|
|
174
|
+
}, isShowDelete && !isEmpty ? /*#__PURE__*/React.createElement(SwipeAction, {
|
|
175
|
+
closeOnAction: false,
|
|
176
|
+
rightActions: _rightActions,
|
|
177
|
+
style: {
|
|
178
|
+
borderRadius: (props === null || props === void 0 || (_props$style2 = props.style) === null || _props$style2 === void 0 ? void 0 : _props$style2.borderRadius) || 0
|
|
179
|
+
}
|
|
180
|
+
}, renderContent()) : renderContent()), /*#__PURE__*/React.createElement(ContactInfoModal, {
|
|
181
|
+
open: modalVisible,
|
|
182
|
+
dataSource: dataSource,
|
|
183
|
+
isShowDelete: isShowDelete,
|
|
184
|
+
onCancel: function onCancel() {
|
|
185
|
+
setModalVisible(false);
|
|
186
|
+
_onCancel === null || _onCancel === void 0 || _onCancel();
|
|
187
|
+
},
|
|
188
|
+
onSave: function onSave(value) {
|
|
189
|
+
setModalVisible(false);
|
|
190
|
+
_onSave === null || _onSave === void 0 || _onSave(value);
|
|
191
|
+
},
|
|
192
|
+
onDelete: function onDelete() {
|
|
193
|
+
setModalVisible(false);
|
|
194
|
+
_onDelete === null || _onDelete === void 0 || _onDelete();
|
|
195
|
+
}
|
|
196
|
+
}));
|
|
197
|
+
};
|
|
198
|
+
export default ContactInfo;
|