@pisell/private-materials 6.3.97 → 6.3.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +10 -10
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +10 -10
- package/es/components/Sales/Summary/utils.d.ts +58 -0
- package/es/components/appointmentBooking/components/Date/state.d.ts +63 -0
- package/es/components/appointmentBooking/components/Date/state.js +3 -1
- package/es/components/appointmentBooking/locales.d.ts +606 -0
- package/es/components/appointmentBooking/locales.js +276 -0
- package/es/components/authentication/admin/AuthMethods/locales.d.ts +413 -0
- package/es/components/authentication/admin/AuthMethods/locales.js +164 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +27 -9
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +138 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +54 -0
- package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +43 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +2 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +118 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +46 -0
- package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +35 -0
- package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +17 -9
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +43 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +16 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +10 -2
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +108 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +42 -0
- package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +28 -0
- package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +17 -9
- package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +63 -0
- package/es/components/authentication/admin/ChannelAuthSetting/locales.js +24 -0
- package/es/components/authentication/admin/CustomerAuth/locales.d.ts +108 -0
- package/es/components/authentication/admin/CustomerAuth/locales.js +42 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +178 -0
- package/es/components/authentication/admin/CustomerOAuthConfig/locales.js +70 -0
- package/es/components/authentication/admin/DeviceAuth/locales.d.ts +93 -0
- package/es/components/authentication/admin/DeviceAuth/locales.js +36 -0
- package/es/components/authentication/admin/OAuthConfig/locales.d.ts +148 -0
- package/es/components/authentication/admin/OAuthConfig/locales.js +58 -0
- package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +88 -0
- package/es/components/authentication/admin/OrgAdminAuth/locales.js +34 -0
- package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +78 -0
- package/es/components/authentication/admin/POSOperatorAuth/locales.js +30 -0
- package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +88 -0
- package/es/components/authentication/admin/SaaSAdminAuth/locales.js +34 -0
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/components/tabPane/index.d.ts +4 -0
- package/es/components/booking/components/voucher/utils.d.ts +4 -0
- package/es/components/booking/editBookingModal/locales.d.ts +33 -0
- package/es/components/booking/editBookingModal/locales.js +12 -0
- package/es/components/booking/editBookingModal/mock.d.ts +991 -0
- package/es/components/booking/editBookingModal/mock.js +22 -0
- package/es/components/booking/editBookingModal/utils.d.ts +12 -0
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/clientVariant/utils.d.ts +1 -0
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/mock.d.ts +216 -0
- package/es/components/booking/info2/service/addService/mock.js +4 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/editService/utils.d.ts +13 -0
- package/es/components/booking/locales.d.ts +628 -0
- package/es/components/booking/locales.js +722 -0
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/addNote/index.d.ts +4 -0
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/ecocup/components/CupInfoCard/index.d.ts +8 -0
- package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +5 -0
- package/es/components/ecocup/components/CustomerCard/index.d.ts +7 -0
- package/es/components/ecocup/cupList/const.d.ts +133 -0
- package/es/components/ecocup/cupList/hooks/useCupApi.d.ts +32 -0
- package/es/components/ecocup/cupProject/const.d.ts +7 -0
- package/es/components/ecocup/hooks.d.ts +49 -0
- package/es/components/ecocup/locales.d.ts +563 -0
- package/es/components/ecocup/locales.js +228 -0
- package/es/components/eftpos/const.d.ts +64 -0
- package/es/components/eftpos/device.d.ts +9 -0
- package/es/components/eftpos/hooks.d.ts +33 -0
- package/es/components/eftpos/index.d.ts +47 -0
- package/es/components/eftpos/locales.d.ts +163 -0
- package/es/components/eftpos/locales.js +80 -0
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/component/fail/unknow.d.ts +10 -0
- package/es/components/eftposPay/const.d.ts +184 -0
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +35 -0
- package/es/components/eftposPay/linkly/const.d.ts +23 -0
- package/es/components/eftposPay/locales.d.ts +572 -0
- package/es/components/eftposPay/locales.js +326 -0
- package/es/components/eftposPay/payo/config.d.ts +13 -0
- package/es/components/eftposPay/payo/const.d.ts +26 -0
- package/es/components/eftposPay/store/index.d.ts +355 -0
- package/es/components/eftposPay/tyro/const.d.ts +17 -0
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eftposPay/tyro/index.d.ts +9 -0
- package/es/components/eftposPay/windcave/const.d.ts +119 -0
- package/es/components/eftposPay/windcave/helper.d.ts +23 -0
- package/es/components/eventBooking/components/Voucher/components/locales.d.ts +22 -0
- package/es/components/eventBooking/components/Voucher/components/locales.js +22 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- 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/locales.d.ts +408 -0
- package/es/components/eventBooking/locales.js +186 -0
- package/es/components/kioskSkuDetail/index.js +39 -10
- package/es/components/kioskSkuDetail/locales.d.ts +21 -0
- package/es/components/kioskSkuDetail/locales.js +24 -3
- package/es/components/login/locales.d.ts +38 -0
- package/es/components/login/locales.js +14 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
- package/es/components/pay/toC/locales.d.ts +511 -0
- package/es/components/pay/toC/locales.js +244 -0
- package/es/components/pay/toC/model.d.ts +40 -0
- package/es/components/pay/toC/serve.d.ts +2 -0
- package/es/components/pinModal/locales.d.ts +43 -0
- package/es/components/pinModal/locales.js +16 -0
- package/es/components/pinVerifyModal/locales.d.ts +38 -0
- package/es/components/pinVerifyModal/locales.js +14 -0
- package/es/components/pisellSelectCustomerModal/locales.d.ts +133 -0
- package/es/components/pisellSelectCustomerModal/locales.js +52 -0
- package/es/components/productExtension/locales.d.ts +78 -0
- package/es/components/productExtension/locales.js +30 -0
- package/es/components/productSelect/components/pisellPriceText/index.js +8 -4
- package/es/components/productSelect/locales.d.ts +38 -0
- package/es/components/productSelect/locales.js +23 -3
- package/es/components/ruleSetting/locales.d.ts +30 -0
- package/es/components/ruleSetting/locales.js +30 -0
- package/es/components/schedules/locales.d.ts +143 -0
- package/es/components/schedules/locales.js +56 -0
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/shoppingCart/locales.d.ts +53 -0
- package/es/components/shoppingCart/locales.js +24 -0
- package/es/components/shoppingCart/type.d.ts +48 -0
- package/es/components/stepController/locales.d.ts +43 -0
- package/es/components/stepController/locales.js +20 -0
- package/es/components/subTotal/locales.d.ts +68 -0
- package/es/components/subTotal/locales.js +26 -0
- package/es/components/systemSettings/registry/components/DataSourceTreeSelect/index.d.ts +59 -0
- package/es/components/systemSettings/registry/components/DataSourceTreeSelect/index.js +390 -0
- package/es/components/systemSettings/registry/components/DataSourceTreeSelect/serve.d.ts +70 -0
- package/es/components/systemSettings/registry/components/DataSourceTreeSelect/serve.js +367 -0
- package/es/components/systemSettings/registry/components/ItemModal.js +169 -35
- package/es/components/systemSettings/registry/components/OptionDataSource/OptionTable.d.ts +8 -0
- package/es/components/systemSettings/registry/components/OptionDataSource/OptionTable.js +163 -0
- package/es/components/systemSettings/registry/components/OptionDataSource/index.d.ts +10 -0
- package/es/components/systemSettings/registry/components/OptionDataSource/index.js +127 -0
- package/es/components/systemSettings/registry/components/OptionDataSource/index.less +37 -0
- package/es/components/systemSettings/registry/index.js +20 -16
- package/es/components/systemSettings/registry/index.less +6 -7
- package/es/components/systemSettings/registry/locales.d.ts +525 -0
- package/es/components/systemSettings/registry/locales.js +262 -3
- package/es/components/systemSettings/registry/services.d.ts +97 -0
- package/es/components/systemSettings/registry/types.d.ts +139 -0
- package/es/components/taxSelect/locales.d.ts +38 -0
- package/es/components/taxSelect/locales.js +14 -0
- package/es/components/ticketBooking/locales.d.ts +304 -0
- package/es/components/ticketBooking/locales.js +156 -0
- package/es/components/ticketBooking/utils/formatTime.d.ts +33 -0
- package/es/components/ticketBooking/utils/formatTime.js +8 -2
- package/es/components/wallet/utils.d.ts +48 -0
- package/es/components/walletList/index.js +10 -0
- package/es/components/walletList/locales.d.ts +43 -0
- package/es/components/walletList/locales.js +16 -0
- package/es/components/walletList/types/index.d.ts +196 -0
- package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
- package/es/components/workSpaceList/components/Card/constants.d.ts +2 -0
- package/es/hooks/useEngineContext.d.ts +11 -0
- package/es/hooks/useWindowSize.d.ts +5 -0
- package/es/plus/clientCard/locales.d.ts +28 -0
- package/es/plus/clientCard/locales.js +10 -0
- package/es/plus/clinetSearch/locales.d.ts +178 -0
- package/es/plus/clinetSearch/locales.js +70 -0
- package/es/plus/contactInfo/locales.d.ts +23 -0
- package/es/plus/contactInfo/locales.js +8 -0
- package/es/plus/contactInfoModal/locales.d.ts +108 -0
- package/es/plus/contactInfoModal/locales.js +42 -0
- package/es/plus/orderList/locales.d.ts +246 -0
- package/es/plus/orderList/locales.js +274 -0
- package/es/plus/productSelect/components/pisellPriceText/index.js +8 -4
- package/es/plus/productSelect/locales.d.ts +38 -0
- package/es/plus/productSelect/locales.js +23 -3
- package/es/plus/saasAttendance/locales.d.ts +591 -0
- package/es/plus/saasAttendance/locales.js +234 -0
- package/es/plus/saasAttendance/settings/components/MapField.js +4 -2
- package/es/plus/saasAttendance/settings/types.d.ts +136 -0
- package/es/plus/saasCreateOrganization/locales.d.ts +23 -0
- package/es/plus/saasCreateOrganization/locales.js +8 -0
- package/es/plus/saasLogin/locales.d.ts +83 -0
- package/es/plus/saasLogin/locales.js +32 -0
- package/es/plus/saasRegister/locales.d.ts +193 -0
- package/es/plus/saasRegister/locales.js +76 -0
- package/es/plus/saasRole/locales.d.ts +319 -0
- package/es/plus/saasRole/locales.js +126 -0
- package/es/plus/saasRole/types.d.ts +177 -0
- package/es/plus/saasTeamMembers/locales.d.ts +546 -0
- package/es/plus/saasTeamMembers/locales.js +216 -0
- package/es/plus/saasTeamMembers/type.d.ts +158 -0
- package/es/plus/selectHolder/locales.d.ts +35 -0
- package/es/plus/selectHolder/locales.js +17 -5
- package/es/plus/skuOptionsSelection/locales.d.ts +20 -0
- package/es/plus/skuOptionsSelection/locales.js +20 -0
- package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/es/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +2 -0
- package/es/plus/walletEditor/components/sortableWalletPassTypes/index.js +12 -4
- package/es/plus/walletEditor/locales.d.ts +223 -0
- package/es/plus/walletEditor/locales.js +100 -0
- package/es/plus/walletEditor/types.d.ts +54 -0
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +0 -1
- package/es/plus/walletPassGallery/components/passDetail/index.js +2 -26
- package/es/plus/walletPassGallery/components/passList/index.js +8 -1
- package/es/plus/walletPassGallery/index.js +0 -31
- package/es/plus/walletPassGallery/locales.d.ts +473 -0
- package/es/plus/walletPassGallery/locales.js +192 -0
- package/es/plus/walletPassGallery/utils.d.ts +48 -0
- package/es/pro/Login2.0/components/PhoneInput.d.ts +53 -0
- package/es/pro/Login2.0/locales.d.ts +903 -0
- package/es/pro/Login2.0/locales.js +360 -0
- package/es/pro/Login2.0/shared/types.d.ts +234 -0
- package/es/pro/Selector/Selector.d.ts +1 -1
- package/es/pro/Selector/locales.d.ts +22 -0
- package/es/pro/Selector/locales.js +58 -0
- package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +23 -0
- package/es/pro/comprehensiveSearch/components/searchSection/locales.js +8 -0
- package/es/pro/comprehensiveSearch/locales.d.ts +23 -0
- package/es/pro/comprehensiveSearch/locales.js +8 -0
- package/es/pro/keyboards/locales.d.ts +14 -0
- package/es/pro/keyboards/locales.js +22 -0
- package/es/pro/numberKeyboard/locales.d.ts +18 -0
- package/es/pro/numberKeyboard/locales.js +6 -0
- package/es/pro/pisellPhoneKeyboard/locales.d.ts +18 -0
- package/es/pro/pisellPhoneKeyboard/locales.js +6 -0
- package/es/test/setup.d.ts +1 -0
- package/lib/components/Sales/Summary/utils.d.ts +58 -0
- package/lib/components/appointmentBooking/components/Date/state.d.ts +63 -0
- package/lib/components/appointmentBooking/components/Date/state.js +3 -1
- package/lib/components/appointmentBooking/locales.d.ts +606 -0
- package/lib/components/appointmentBooking/locales.js +240 -0
- package/lib/components/authentication/admin/AuthMethods/locales.d.ts +413 -0
- package/lib/components/authentication/admin/AuthMethods/locales.js +164 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +17 -9
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +138 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +54 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +43 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +2 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +118 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +46 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +35 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +14 -6
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +43 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +16 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +10 -2
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +108 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +42 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +28 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +14 -6
- package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +63 -0
- package/lib/components/authentication/admin/ChannelAuthSetting/locales.js +24 -0
- package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +108 -0
- package/lib/components/authentication/admin/CustomerAuth/locales.js +42 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +178 -0
- package/lib/components/authentication/admin/CustomerOAuthConfig/locales.js +70 -0
- package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +93 -0
- package/lib/components/authentication/admin/DeviceAuth/locales.js +36 -0
- package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +148 -0
- package/lib/components/authentication/admin/OAuthConfig/locales.js +58 -0
- package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +88 -0
- package/lib/components/authentication/admin/OrgAdminAuth/locales.js +34 -0
- package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +78 -0
- package/lib/components/authentication/admin/POSOperatorAuth/locales.js +30 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +88 -0
- package/lib/components/authentication/admin/SaaSAdminAuth/locales.js +34 -0
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/components/tabPane/index.d.ts +4 -0
- package/lib/components/booking/components/voucher/utils.d.ts +4 -0
- package/lib/components/booking/editBookingModal/locales.d.ts +33 -0
- package/lib/components/booking/editBookingModal/locales.js +12 -0
- package/lib/components/booking/editBookingModal/mock.d.ts +991 -0
- package/lib/components/booking/editBookingModal/mock.js +22 -0
- package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/utils.d.ts +1 -0
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/mock.d.ts +216 -0
- package/lib/components/booking/info2/service/addService/mock.js +4 -0
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/editService/utils.d.ts +13 -0
- package/lib/components/booking/locales.d.ts +628 -0
- package/lib/components/booking/locales.js +680 -0
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/addNote/index.d.ts +4 -0
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/ecocup/components/CupInfoCard/index.d.ts +8 -0
- package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +5 -0
- package/lib/components/ecocup/components/CustomerCard/index.d.ts +7 -0
- package/lib/components/ecocup/cupList/const.d.ts +133 -0
- package/lib/components/ecocup/cupList/hooks/useCupApi.d.ts +32 -0
- package/lib/components/ecocup/cupProject/const.d.ts +7 -0
- package/lib/components/ecocup/hooks.d.ts +49 -0
- package/lib/components/ecocup/locales.d.ts +563 -0
- package/lib/components/ecocup/locales.js +224 -0
- package/lib/components/eftpos/const.d.ts +64 -0
- package/lib/components/eftpos/device.d.ts +9 -0
- package/lib/components/eftpos/hooks.d.ts +33 -0
- package/lib/components/eftpos/index.d.ts +47 -0
- package/lib/components/eftpos/locales.d.ts +163 -0
- package/lib/components/eftpos/locales.js +76 -0
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/component/fail/unknow.d.ts +10 -0
- package/lib/components/eftposPay/const.d.ts +184 -0
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +35 -0
- package/lib/components/eftposPay/linkly/const.d.ts +23 -0
- package/lib/components/eftposPay/locales.d.ts +572 -0
- package/lib/components/eftposPay/locales.js +250 -0
- package/lib/components/eftposPay/payo/config.d.ts +13 -0
- package/lib/components/eftposPay/payo/const.d.ts +26 -0
- package/lib/components/eftposPay/store/index.d.ts +355 -0
- package/lib/components/eftposPay/tyro/const.d.ts +17 -0
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eftposPay/tyro/index.d.ts +9 -0
- package/lib/components/eftposPay/windcave/const.d.ts +119 -0
- package/lib/components/eftposPay/windcave/helper.d.ts +23 -0
- package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +22 -0
- package/lib/components/eventBooking/components/Voucher/components/locales.js +22 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- 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/locales.d.ts +408 -0
- package/lib/components/eventBooking/locales.js +162 -0
- package/lib/components/kioskSkuDetail/index.js +27 -3
- package/lib/components/kioskSkuDetail/locales.d.ts +21 -0
- package/lib/components/kioskSkuDetail/locales.js +24 -3
- package/lib/components/login/locales.d.ts +38 -0
- package/lib/components/login/locales.js +14 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
- package/lib/components/pay/toC/locales.d.ts +511 -0
- package/lib/components/pay/toC/locales.js +204 -0
- package/lib/components/pay/toC/model.d.ts +40 -0
- package/lib/components/pay/toC/serve.d.ts +2 -0
- package/lib/components/pinModal/locales.d.ts +43 -0
- package/lib/components/pinModal/locales.js +16 -0
- package/lib/components/pinVerifyModal/locales.d.ts +38 -0
- package/lib/components/pinVerifyModal/locales.js +14 -0
- package/lib/components/pisellSelectCustomerModal/locales.d.ts +133 -0
- package/lib/components/pisellSelectCustomerModal/locales.js +52 -0
- package/lib/components/productExtension/locales.d.ts +78 -0
- package/lib/components/productExtension/locales.js +30 -0
- package/lib/components/productSelect/components/pisellPriceText/index.js +6 -4
- package/lib/components/productSelect/locales.d.ts +38 -0
- package/lib/components/productSelect/locales.js +23 -3
- package/lib/components/ruleSetting/locales.d.ts +30 -0
- package/lib/components/ruleSetting/locales.js +30 -0
- package/lib/components/schedules/locales.d.ts +143 -0
- package/lib/components/schedules/locales.js +56 -0
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/shoppingCart/locales.d.ts +53 -0
- package/lib/components/shoppingCart/locales.js +20 -0
- package/lib/components/shoppingCart/type.d.ts +48 -0
- package/lib/components/stepController/locales.d.ts +43 -0
- package/lib/components/stepController/locales.js +16 -0
- package/lib/components/subTotal/locales.d.ts +68 -0
- package/lib/components/subTotal/locales.js +26 -0
- package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/index.d.ts +59 -0
- package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/index.js +228 -0
- package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/serve.d.ts +70 -0
- package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/serve.js +195 -0
- package/lib/components/systemSettings/registry/components/ItemModal.js +294 -225
- package/lib/components/systemSettings/registry/components/OptionDataSource/OptionTable.d.ts +8 -0
- package/lib/components/systemSettings/registry/components/OptionDataSource/OptionTable.js +166 -0
- package/lib/components/systemSettings/registry/components/OptionDataSource/index.d.ts +10 -0
- package/lib/components/systemSettings/registry/components/OptionDataSource/index.js +210 -0
- package/lib/components/systemSettings/registry/components/OptionDataSource/index.less +37 -0
- package/lib/components/systemSettings/registry/index.js +20 -16
- package/lib/components/systemSettings/registry/index.less +6 -7
- package/lib/components/systemSettings/registry/locales.d.ts +525 -0
- package/lib/components/systemSettings/registry/locales.js +262 -3
- package/lib/components/systemSettings/registry/services.d.ts +97 -0
- package/lib/components/systemSettings/registry/types.d.ts +139 -0
- package/lib/components/taxSelect/locales.d.ts +38 -0
- package/lib/components/taxSelect/locales.js +14 -0
- package/lib/components/ticketBooking/locales.d.ts +304 -0
- package/lib/components/ticketBooking/locales.js +136 -0
- package/lib/components/ticketBooking/utils/formatTime.d.ts +33 -0
- package/lib/components/ticketBooking/utils/formatTime.js +8 -2
- package/lib/components/wallet/utils.d.ts +48 -0
- package/lib/components/walletList/index.js +10 -0
- package/lib/components/walletList/locales.d.ts +43 -0
- package/lib/components/walletList/locales.js +16 -0
- package/lib/components/walletList/types/index.d.ts +196 -0
- package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
- package/lib/components/workSpaceList/components/Card/constants.d.ts +2 -0
- package/lib/hooks/useEngineContext.d.ts +11 -0
- package/lib/hooks/useWindowSize.d.ts +5 -0
- package/lib/plus/clientCard/locales.d.ts +28 -0
- package/lib/plus/clientCard/locales.js +10 -0
- package/lib/plus/clinetSearch/locales.d.ts +178 -0
- package/lib/plus/clinetSearch/locales.js +70 -0
- package/lib/plus/contactInfo/locales.d.ts +23 -0
- package/lib/plus/contactInfo/locales.js +8 -0
- package/lib/plus/contactInfoModal/locales.d.ts +108 -0
- package/lib/plus/contactInfoModal/locales.js +42 -0
- package/lib/plus/orderList/locales.d.ts +246 -0
- package/lib/plus/orderList/locales.js +266 -0
- package/lib/plus/productSelect/components/pisellPriceText/index.js +6 -4
- package/lib/plus/productSelect/locales.d.ts +38 -0
- package/lib/plus/productSelect/locales.js +23 -3
- package/lib/plus/saasAttendance/locales.d.ts +591 -0
- package/lib/plus/saasAttendance/locales.js +210 -0
- package/lib/plus/saasAttendance/settings/components/MapField.js +2 -2
- package/lib/plus/saasAttendance/settings/types.d.ts +136 -0
- package/lib/plus/saasCreateOrganization/locales.d.ts +23 -0
- package/lib/plus/saasCreateOrganization/locales.js +8 -0
- package/lib/plus/saasLogin/locales.d.ts +83 -0
- package/lib/plus/saasLogin/locales.js +32 -0
- package/lib/plus/saasRegister/locales.d.ts +193 -0
- package/lib/plus/saasRegister/locales.js +76 -0
- package/lib/plus/saasRole/locales.d.ts +319 -0
- package/lib/plus/saasRole/locales.js +126 -0
- package/lib/plus/saasRole/types.d.ts +177 -0
- package/lib/plus/saasTeamMembers/locales.d.ts +546 -0
- package/lib/plus/saasTeamMembers/locales.js +216 -0
- package/lib/plus/saasTeamMembers/type.d.ts +158 -0
- package/lib/plus/selectHolder/locales.d.ts +35 -0
- package/lib/plus/selectHolder/locales.js +13 -5
- package/lib/plus/skuOptionsSelection/locales.d.ts +20 -0
- package/lib/plus/skuOptionsSelection/locales.js +20 -0
- package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +2 -0
- package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.js +12 -4
- package/lib/plus/walletEditor/locales.d.ts +223 -0
- package/lib/plus/walletEditor/locales.js +100 -0
- package/lib/plus/walletEditor/types.d.ts +54 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +0 -1
- package/lib/plus/walletPassGallery/components/passDetail/index.js +1 -16
- package/lib/plus/walletPassGallery/components/passList/index.js +9 -3
- package/lib/plus/walletPassGallery/index.js +0 -29
- package/lib/plus/walletPassGallery/locales.d.ts +473 -0
- package/lib/plus/walletPassGallery/locales.js +192 -0
- package/lib/plus/walletPassGallery/utils.d.ts +48 -0
- package/lib/pro/Login2.0/components/PhoneInput.d.ts +53 -0
- package/lib/pro/Login2.0/locales.d.ts +903 -0
- package/lib/pro/Login2.0/locales.js +360 -0
- package/lib/pro/Login2.0/shared/types.d.ts +234 -0
- package/lib/pro/Selector/Selector.d.ts +1 -1
- package/lib/pro/Selector/locales.d.ts +22 -0
- package/lib/pro/Selector/locales.js +50 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +23 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +8 -0
- package/lib/pro/comprehensiveSearch/locales.d.ts +23 -0
- package/lib/pro/comprehensiveSearch/locales.js +8 -0
- package/lib/pro/keyboards/locales.d.ts +14 -0
- package/lib/pro/keyboards/locales.js +14 -0
- package/lib/pro/numberKeyboard/locales.d.ts +18 -0
- package/lib/pro/numberKeyboard/locales.js +6 -0
- package/lib/pro/pisellPhoneKeyboard/locales.d.ts +18 -0
- package/lib/pro/pisellPhoneKeyboard/locales.js +6 -0
- package/lib/test/setup.d.ts +1 -0
- package/lowcode/eco-cup-list/meta.ts +1 -1
- package/lowcode/eco-customer-list/meta.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.step.controller.step': (step: number) => string;
|
|
4
|
+
'pisell2.step.controller.sendEmail': string;
|
|
5
|
+
'pisell2.step.controller.copy': string;
|
|
6
|
+
'pisell2.step.controller.download': string;
|
|
7
|
+
'pisell2.step.controller.preview': string;
|
|
8
|
+
'pisell2.step.controller.continue': string;
|
|
9
|
+
};
|
|
10
|
+
'zh-CN': {
|
|
11
|
+
'pisell2.step.controller.step': (step: number) => string;
|
|
12
|
+
'pisell2.step.controller.sendEmail': string;
|
|
13
|
+
'pisell2.step.controller.copy': string;
|
|
14
|
+
'pisell2.step.controller.download': string;
|
|
15
|
+
'pisell2.step.controller.preview': string;
|
|
16
|
+
'pisell2.step.controller.continue': string;
|
|
17
|
+
};
|
|
18
|
+
'zh-HK': {
|
|
19
|
+
'pisell2.step.controller.step': (step: number) => string;
|
|
20
|
+
'pisell2.step.controller.sendEmail': string;
|
|
21
|
+
'pisell2.step.controller.copy': string;
|
|
22
|
+
'pisell2.step.controller.download': string;
|
|
23
|
+
'pisell2.step.controller.preview': string;
|
|
24
|
+
'pisell2.step.controller.continue': string;
|
|
25
|
+
};
|
|
26
|
+
ja: {
|
|
27
|
+
'pisell2.step.controller.step': (step: number) => string;
|
|
28
|
+
'pisell2.step.controller.sendEmail': string;
|
|
29
|
+
'pisell2.step.controller.copy': string;
|
|
30
|
+
'pisell2.step.controller.download': string;
|
|
31
|
+
'pisell2.step.controller.preview': string;
|
|
32
|
+
'pisell2.step.controller.continue': string;
|
|
33
|
+
};
|
|
34
|
+
pt: {
|
|
35
|
+
'pisell2.step.controller.step': (step: number) => string;
|
|
36
|
+
'pisell2.step.controller.sendEmail': string;
|
|
37
|
+
'pisell2.step.controller.copy': string;
|
|
38
|
+
'pisell2.step.controller.download': string;
|
|
39
|
+
'pisell2.step.controller.preview': string;
|
|
40
|
+
'pisell2.step.controller.continue': string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export default _default;
|
|
@@ -46,5 +46,21 @@ var locales_default = {
|
|
|
46
46
|
"pisell2.step.controller.download": "下載",
|
|
47
47
|
"pisell2.step.controller.preview": "預覽",
|
|
48
48
|
"pisell2.step.controller.continue": "繼續"
|
|
49
|
+
},
|
|
50
|
+
ja: {
|
|
51
|
+
"pisell2.step.controller.step": (step) => `ステップ ${step || 1}`,
|
|
52
|
+
"pisell2.step.controller.sendEmail": "メールを送信",
|
|
53
|
+
"pisell2.step.controller.copy": "コピー",
|
|
54
|
+
"pisell2.step.controller.download": "ダウンロード",
|
|
55
|
+
"pisell2.step.controller.preview": "プレビュー",
|
|
56
|
+
"pisell2.step.controller.continue": "続ける"
|
|
57
|
+
},
|
|
58
|
+
pt: {
|
|
59
|
+
"pisell2.step.controller.step": (step) => `Etapa ${step || 1}`,
|
|
60
|
+
"pisell2.step.controller.sendEmail": "Enviar E-mail",
|
|
61
|
+
"pisell2.step.controller.copy": "Copiar",
|
|
62
|
+
"pisell2.step.controller.download": "Baixar",
|
|
63
|
+
"pisell2.step.controller.preview": "Visualizar",
|
|
64
|
+
"pisell2.step.controller.continue": "Continuar"
|
|
49
65
|
}
|
|
50
66
|
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.subtotal.deposit': string;
|
|
4
|
+
'pisell2.subtotal.total': string;
|
|
5
|
+
'pisell2.subtotal.subtotal': string;
|
|
6
|
+
'pisell2.subtotal.tax': string;
|
|
7
|
+
'pisell2.subtotal.delivery-fee': string;
|
|
8
|
+
'pisell2.subtotal.discount': string;
|
|
9
|
+
'pisell2.subtotal.point-deduction': string;
|
|
10
|
+
'pisell2.subtotal.member-deduction': string;
|
|
11
|
+
'pisell2.subtotal.items': string;
|
|
12
|
+
'pisell2.subtotal.not-contain': string;
|
|
13
|
+
'pisell2.subtotal.included': string;
|
|
14
|
+
};
|
|
15
|
+
'zh-CN': {
|
|
16
|
+
'pisell2.subtotal.deposit': string;
|
|
17
|
+
'pisell2.subtotal.total': string;
|
|
18
|
+
'pisell2.subtotal.subtotal': string;
|
|
19
|
+
'pisell2.subtotal.tax': string;
|
|
20
|
+
'pisell2.subtotal.delivery-fee': string;
|
|
21
|
+
'pisell2.subtotal.discount': string;
|
|
22
|
+
'pisell2.subtotal.point-deduction': string;
|
|
23
|
+
'pisell2.subtotal.member-deduction': string;
|
|
24
|
+
'pisell2.subtotal.items': string;
|
|
25
|
+
'pisell2.subtotal.not-contain': string;
|
|
26
|
+
'pisell2.subtotal.included': string;
|
|
27
|
+
};
|
|
28
|
+
'zh-HK': {
|
|
29
|
+
'pisell2.subtotal.deposit': string;
|
|
30
|
+
'pisell2.subtotal.total': string;
|
|
31
|
+
'pisell2.subtotal.subtotal': string;
|
|
32
|
+
'pisell2.subtotal.tax': string;
|
|
33
|
+
'pisell2.subtotal.delivery-fee': string;
|
|
34
|
+
'pisell2.subtotal.discount': string;
|
|
35
|
+
'pisell2.subtotal.point-deduction': string;
|
|
36
|
+
'pisell2.subtotal.member-deduction': string;
|
|
37
|
+
'pisell2.subtotal.items': string;
|
|
38
|
+
'pisell2.subtotal.not-contain': string;
|
|
39
|
+
'pisell2.subtotal.included': string;
|
|
40
|
+
};
|
|
41
|
+
ja: {
|
|
42
|
+
'pisell2.subtotal.deposit': string;
|
|
43
|
+
'pisell2.subtotal.total': string;
|
|
44
|
+
'pisell2.subtotal.subtotal': string;
|
|
45
|
+
'pisell2.subtotal.tax': string;
|
|
46
|
+
'pisell2.subtotal.delivery-fee': string;
|
|
47
|
+
'pisell2.subtotal.discount': string;
|
|
48
|
+
'pisell2.subtotal.point-deduction': string;
|
|
49
|
+
'pisell2.subtotal.member-deduction': string;
|
|
50
|
+
'pisell2.subtotal.items': string;
|
|
51
|
+
'pisell2.subtotal.not-contain': string;
|
|
52
|
+
'pisell2.subtotal.included': string;
|
|
53
|
+
};
|
|
54
|
+
pt: {
|
|
55
|
+
'pisell2.subtotal.deposit': string;
|
|
56
|
+
'pisell2.subtotal.total': string;
|
|
57
|
+
'pisell2.subtotal.subtotal': string;
|
|
58
|
+
'pisell2.subtotal.tax': string;
|
|
59
|
+
'pisell2.subtotal.delivery-fee': string;
|
|
60
|
+
'pisell2.subtotal.discount': string;
|
|
61
|
+
'pisell2.subtotal.point-deduction': string;
|
|
62
|
+
'pisell2.subtotal.member-deduction': string;
|
|
63
|
+
'pisell2.subtotal.items': string;
|
|
64
|
+
'pisell2.subtotal.not-contain': string;
|
|
65
|
+
'pisell2.subtotal.included': string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
export default _default;
|
|
@@ -61,5 +61,31 @@ var locales_default = {
|
|
|
61
61
|
"pisell2.subtotal.items": "項",
|
|
62
62
|
"pisell2.subtotal.not-contain": "(未包含)",
|
|
63
63
|
"pisell2.subtotal.included": "(包含)"
|
|
64
|
+
},
|
|
65
|
+
ja: {
|
|
66
|
+
"pisell2.subtotal.deposit": "デポジット",
|
|
67
|
+
"pisell2.subtotal.total": "合計",
|
|
68
|
+
"pisell2.subtotal.subtotal": "小計",
|
|
69
|
+
"pisell2.subtotal.tax": "税金",
|
|
70
|
+
"pisell2.subtotal.delivery-fee": "配送料",
|
|
71
|
+
"pisell2.subtotal.discount": "割引",
|
|
72
|
+
"pisell2.subtotal.point-deduction": "ポイント控除",
|
|
73
|
+
"pisell2.subtotal.member-deduction": "会員控除",
|
|
74
|
+
"pisell2.subtotal.items": "件",
|
|
75
|
+
"pisell2.subtotal.not-contain": "(含まれていません)",
|
|
76
|
+
"pisell2.subtotal.included": "(含まれています)"
|
|
77
|
+
},
|
|
78
|
+
pt: {
|
|
79
|
+
"pisell2.subtotal.deposit": "Depósito",
|
|
80
|
+
"pisell2.subtotal.total": "Total",
|
|
81
|
+
"pisell2.subtotal.subtotal": "Subtotal",
|
|
82
|
+
"pisell2.subtotal.tax": "Imposto",
|
|
83
|
+
"pisell2.subtotal.delivery-fee": "Taxa de Entrega",
|
|
84
|
+
"pisell2.subtotal.discount": "Desconto",
|
|
85
|
+
"pisell2.subtotal.point-deduction": "Dedução de Pontos",
|
|
86
|
+
"pisell2.subtotal.member-deduction": "Dedução de Membro",
|
|
87
|
+
"pisell2.subtotal.items": "itens",
|
|
88
|
+
"pisell2.subtotal.not-contain": "(Não contém)",
|
|
89
|
+
"pisell2.subtotal.included": "(Incluído)"
|
|
64
90
|
}
|
|
65
91
|
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DataSourceType } from './serve';
|
|
3
|
+
/**
|
|
4
|
+
* 过滤项类型定义
|
|
5
|
+
*/
|
|
6
|
+
declare type BaseFilterItem = {
|
|
7
|
+
[key: string]: 'all' | BaseFilterItem;
|
|
8
|
+
};
|
|
9
|
+
declare type FilterItem = 'all' | BaseFilterItem;
|
|
10
|
+
/**
|
|
11
|
+
* 树节点数据类型
|
|
12
|
+
*/
|
|
13
|
+
interface TreeNodeType {
|
|
14
|
+
title: string;
|
|
15
|
+
value: string;
|
|
16
|
+
selectable?: boolean;
|
|
17
|
+
children?: TreeNodeType[];
|
|
18
|
+
item?: any;
|
|
19
|
+
isVariable?: boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* 变量项类型定义
|
|
23
|
+
*/
|
|
24
|
+
interface VariableItem extends Omit<TreeNodeType, 'children'> {
|
|
25
|
+
label: string;
|
|
26
|
+
value: string;
|
|
27
|
+
item: any;
|
|
28
|
+
children?: VariableItem[];
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* 数据源选择器属性定义
|
|
32
|
+
*/
|
|
33
|
+
export interface DataSourceTreeSelectProps {
|
|
34
|
+
/** 当前选中的值 */
|
|
35
|
+
value?: any;
|
|
36
|
+
/** 值变化时的回调函数 */
|
|
37
|
+
onChange?: (value: any) => void;
|
|
38
|
+
/** 是否禁用 */
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
/** 模式:添加/编辑/查看/列表 */
|
|
41
|
+
mode?: 'add' | 'edit' | 'view' | 'list';
|
|
42
|
+
/** 可用变量列表 */
|
|
43
|
+
variables?: VariableItem[];
|
|
44
|
+
/** 是否显示原始数据源 */
|
|
45
|
+
isShowOriginalDataSource?: boolean;
|
|
46
|
+
/** 过滤条件 */
|
|
47
|
+
filters?: {
|
|
48
|
+
tables?: FilterItem;
|
|
49
|
+
variables?: FilterItem;
|
|
50
|
+
};
|
|
51
|
+
/** 数据源列表(从外部传入) */
|
|
52
|
+
dataSource?: DataSourceType[];
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* 数据源选择器组件
|
|
56
|
+
* @param props 组件属性
|
|
57
|
+
*/
|
|
58
|
+
declare const DataSourceTreeSelect: (props: DataSourceTreeSelectProps) => React.JSX.Element;
|
|
59
|
+
export default DataSourceTreeSelect;
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/systemSettings/registry/components/DataSourceTreeSelect/index.tsx
|
|
30
|
+
var DataSourceTreeSelect_exports = {};
|
|
31
|
+
__export(DataSourceTreeSelect_exports, {
|
|
32
|
+
default: () => DataSourceTreeSelect_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(DataSourceTreeSelect_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_materials = require("@pisell/materials");
|
|
37
|
+
var import_react2 = require("react");
|
|
38
|
+
var import_serve = require("./serve");
|
|
39
|
+
var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
|
|
40
|
+
var import_utils = require("../../../../../utils");
|
|
41
|
+
var isString = (value) => {
|
|
42
|
+
return typeof value === "string";
|
|
43
|
+
};
|
|
44
|
+
var defaultArr = [];
|
|
45
|
+
var DataSourceTreeSelect = (props) => {
|
|
46
|
+
var _a, _b, _c;
|
|
47
|
+
const {
|
|
48
|
+
value,
|
|
49
|
+
onChange,
|
|
50
|
+
disabled,
|
|
51
|
+
mode,
|
|
52
|
+
variables = defaultArr,
|
|
53
|
+
isShowOriginalDataSource = true,
|
|
54
|
+
filters,
|
|
55
|
+
dataSource = []
|
|
56
|
+
// 从 props 中获取数据源,默认为空数组
|
|
57
|
+
} = props;
|
|
58
|
+
console.log("dataSource>>>>", dataSource);
|
|
59
|
+
console.log("value>>>", value);
|
|
60
|
+
const context = (0, import_useEngineContext.default)();
|
|
61
|
+
const { request: apiRequest } = ((_c = (_b = (_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) == null ? void 0 : _b.getApp) == null ? void 0 : _c.call(_b)) || {};
|
|
62
|
+
import_utils.request.setRequest(apiRequest);
|
|
63
|
+
const valueRef = (0, import_react2.useRef)(value);
|
|
64
|
+
valueRef.current = value;
|
|
65
|
+
const [treeData, setTreeData] = (0, import_react2.useState)([]);
|
|
66
|
+
const getTableDataSource = async () => {
|
|
67
|
+
if (!isShowOriginalDataSource) {
|
|
68
|
+
return [];
|
|
69
|
+
}
|
|
70
|
+
return dataSource.map((item) => {
|
|
71
|
+
let collections = item.collections;
|
|
72
|
+
if (item.type === "custom-api") {
|
|
73
|
+
if (mode === "add") {
|
|
74
|
+
collections = item.collections.filter(
|
|
75
|
+
(collection) => {
|
|
76
|
+
var _a2;
|
|
77
|
+
return (_a2 = collection == null ? void 0 : collection.types) == null ? void 0 : _a2.includes("create");
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
} else if (mode === "edit") {
|
|
81
|
+
collections = item.collections.filter(
|
|
82
|
+
(collection) => {
|
|
83
|
+
var _a2;
|
|
84
|
+
return (_a2 = collection == null ? void 0 : collection.types) == null ? void 0 : _a2.includes("update");
|
|
85
|
+
}
|
|
86
|
+
);
|
|
87
|
+
} else if (mode === "view") {
|
|
88
|
+
collections = item.collections.filter(
|
|
89
|
+
(collection) => {
|
|
90
|
+
var _a2;
|
|
91
|
+
return (_a2 = collection == null ? void 0 : collection.types) == null ? void 0 : _a2.includes("get");
|
|
92
|
+
}
|
|
93
|
+
);
|
|
94
|
+
} else if (mode === "list") {
|
|
95
|
+
collections = item.collections.filter(
|
|
96
|
+
(collection) => {
|
|
97
|
+
var _a2;
|
|
98
|
+
return (_a2 = collection == null ? void 0 : collection.types) == null ? void 0 : _a2.includes("list");
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
const children = collections == null ? void 0 : collections.map((collection) => {
|
|
104
|
+
var _a2;
|
|
105
|
+
return {
|
|
106
|
+
title: collection.title,
|
|
107
|
+
value: collection.key || collection.tableName,
|
|
108
|
+
item: {
|
|
109
|
+
...collection,
|
|
110
|
+
headerDataSource: item.key,
|
|
111
|
+
options: item.type === "mysql" ? {} : (_a2 = item == null ? void 0 : item.options) == null ? void 0 : _a2.options
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
});
|
|
115
|
+
return {
|
|
116
|
+
title: item.displayName,
|
|
117
|
+
value: item.key,
|
|
118
|
+
selectable: false,
|
|
119
|
+
children
|
|
120
|
+
};
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
const getVariablesDataSource = async (filterItem) => {
|
|
124
|
+
if (filterItem !== "all") {
|
|
125
|
+
if (filterItem) {
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
return {
|
|
129
|
+
title: "变量",
|
|
130
|
+
value: "variables",
|
|
131
|
+
selectable: false,
|
|
132
|
+
children: variables.map((item) => {
|
|
133
|
+
const treeNode = {
|
|
134
|
+
title: item.label,
|
|
135
|
+
value: item.value,
|
|
136
|
+
item: item.item,
|
|
137
|
+
isVariable: true
|
|
138
|
+
};
|
|
139
|
+
if (item.children) {
|
|
140
|
+
treeNode.children = item.children.map((child) => ({
|
|
141
|
+
title: child.label,
|
|
142
|
+
value: child.value,
|
|
143
|
+
item: child.item,
|
|
144
|
+
isVariable: true
|
|
145
|
+
}));
|
|
146
|
+
}
|
|
147
|
+
return treeNode;
|
|
148
|
+
})
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
const dataSources = {
|
|
152
|
+
tables: getTableDataSource
|
|
153
|
+
// variables: getVariablesDataSource,
|
|
154
|
+
};
|
|
155
|
+
const getMenuDataSource = async (_treeData) => {
|
|
156
|
+
if ((filters == null ? void 0 : filters.variables) && typeof filters.variables !== "string") {
|
|
157
|
+
if (filters.variables.menu !== "all") {
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
const res = await (0, import_serve.getNocobaseMenuDataSource)();
|
|
162
|
+
setTreeData(
|
|
163
|
+
_treeData.map((d) => {
|
|
164
|
+
if (d.value === "variables") {
|
|
165
|
+
d.children = d.children || [];
|
|
166
|
+
d.children.push(res);
|
|
167
|
+
}
|
|
168
|
+
return d;
|
|
169
|
+
})
|
|
170
|
+
);
|
|
171
|
+
};
|
|
172
|
+
const initDataSource = async () => {
|
|
173
|
+
let _treeData = [];
|
|
174
|
+
for (const key in dataSources) {
|
|
175
|
+
const fn = dataSources[key];
|
|
176
|
+
const filterKey = key;
|
|
177
|
+
if (!filters || filters[filterKey]) {
|
|
178
|
+
const res = await fn(filters ? filters[filterKey] : "all");
|
|
179
|
+
_treeData = _treeData.concat(res);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
setTreeData(_treeData);
|
|
183
|
+
getMenuDataSource(_treeData);
|
|
184
|
+
};
|
|
185
|
+
const _onChange = async (value2) => {
|
|
186
|
+
onChange((value2 == null ? void 0 : value2.item) || null);
|
|
187
|
+
};
|
|
188
|
+
const handleSelect = async (val, option) => {
|
|
189
|
+
_onChange({
|
|
190
|
+
value: val,
|
|
191
|
+
title: option.title,
|
|
192
|
+
item: option.item,
|
|
193
|
+
isSelect: true,
|
|
194
|
+
isVariable: option.isVariable
|
|
195
|
+
});
|
|
196
|
+
};
|
|
197
|
+
const handleChange = async (val, option) => {
|
|
198
|
+
if (!val) {
|
|
199
|
+
_onChange({ value: "", item: null, title: "" });
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
const currentValue = (0, import_react2.useMemo)(() => {
|
|
203
|
+
if (isString(value)) {
|
|
204
|
+
return value;
|
|
205
|
+
}
|
|
206
|
+
return (value == null ? void 0 : value.key) || (value == null ? void 0 : value.tableName);
|
|
207
|
+
}, [JSON.stringify(value)]);
|
|
208
|
+
(0, import_react2.useEffect)(() => {
|
|
209
|
+
initDataSource();
|
|
210
|
+
}, [dataSource, variables]);
|
|
211
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
212
|
+
import_materials.TreeSelect,
|
|
213
|
+
{
|
|
214
|
+
treeExpandAction: "click",
|
|
215
|
+
disabled,
|
|
216
|
+
showSearch: true,
|
|
217
|
+
popupMatchSelectWidth: false,
|
|
218
|
+
treeNodeFilterProp: "title",
|
|
219
|
+
style: { width: "100%" },
|
|
220
|
+
value: currentValue,
|
|
221
|
+
allowClear: true,
|
|
222
|
+
onChange: handleChange,
|
|
223
|
+
treeData,
|
|
224
|
+
onSelect: handleSelect
|
|
225
|
+
}
|
|
226
|
+
));
|
|
227
|
+
};
|
|
228
|
+
var DataSourceTreeSelect_default = DataSourceTreeSelect;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 集合/表类型定义
|
|
3
|
+
*/
|
|
4
|
+
export interface Collection {
|
|
5
|
+
title: string;
|
|
6
|
+
tableName: string;
|
|
7
|
+
key?: string;
|
|
8
|
+
types?: string[];
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* 数据源类型定义
|
|
13
|
+
*/
|
|
14
|
+
export interface DataSourceType {
|
|
15
|
+
key: string;
|
|
16
|
+
type: string;
|
|
17
|
+
displayName: string;
|
|
18
|
+
collections: Collection[];
|
|
19
|
+
options?: {
|
|
20
|
+
options?: Record<string, any>;
|
|
21
|
+
};
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* 数据源配置选项类型
|
|
26
|
+
*/
|
|
27
|
+
export interface DataSourceOption {
|
|
28
|
+
key: string;
|
|
29
|
+
options?: Record<string, any>;
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* 获取 Nocobase 自定义数据源
|
|
34
|
+
* @returns 自定义数据源列表(如 API 数据源等)
|
|
35
|
+
*/
|
|
36
|
+
export declare const getNocobaseDataSource: () => Promise<DataSourceType[]>;
|
|
37
|
+
/**
|
|
38
|
+
* 获取 Nocobase 主数据源(集合列表)
|
|
39
|
+
* @returns 主数据源的集合列表
|
|
40
|
+
*/
|
|
41
|
+
export declare const getNocobaseMainDataSource: () => Promise<Collection[]>;
|
|
42
|
+
/**
|
|
43
|
+
* 获取 Nocobase 数据源配置选项
|
|
44
|
+
* @returns 数据源配置选项列表
|
|
45
|
+
*/
|
|
46
|
+
export declare const getNocobaseDataSourceOptions: () => Promise<DataSourceOption[]>;
|
|
47
|
+
/**
|
|
48
|
+
* 合并主数据源和其他数据源
|
|
49
|
+
* @param main - 主数据源集合列表
|
|
50
|
+
* @param other - 其他数据源列表
|
|
51
|
+
* @param options - 数据源配置选项
|
|
52
|
+
* @returns 合并后的数据源列表
|
|
53
|
+
*/
|
|
54
|
+
export declare const mergeDataSources: (main: Collection[], other: DataSourceType[], options: DataSourceOption[]) => DataSourceType[];
|
|
55
|
+
/**
|
|
56
|
+
* 获取所有数据源(主数据源 + 其他数据源)
|
|
57
|
+
* 自动调用三个接口并合并数据
|
|
58
|
+
* @returns 合并后的数据源列表
|
|
59
|
+
*/
|
|
60
|
+
export declare const getAllDataSources: () => Promise<DataSourceType[]>;
|
|
61
|
+
/**
|
|
62
|
+
* 获取菜单数据源
|
|
63
|
+
* @returns 菜单树节点数据
|
|
64
|
+
*/
|
|
65
|
+
export declare const getNocobaseMenuDataSource: () => Promise<{
|
|
66
|
+
title: string;
|
|
67
|
+
value: string;
|
|
68
|
+
selectable: boolean;
|
|
69
|
+
children: any;
|
|
70
|
+
}>;
|