@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
|
@@ -38,6 +38,8 @@ var import_materials = require("@pisell/materials");
|
|
|
38
38
|
var import_utils = require("@pisell/utils");
|
|
39
39
|
var import_typeValidation = require("../utils/typeValidation");
|
|
40
40
|
var import_validators = require("../utils/validators");
|
|
41
|
+
var import_OptionDataSource = __toESM(require("./OptionDataSource"));
|
|
42
|
+
var import_serve = require("./DataSourceTreeSelect/serve");
|
|
41
43
|
var { Option } = import_antd.Select;
|
|
42
44
|
var { TextArea } = import_antd.Input;
|
|
43
45
|
var scopeOptions = [
|
|
@@ -61,12 +63,8 @@ var interfaceTypeOptions = {
|
|
|
61
63
|
{ value: "Input.TextArea", label: "多行文本输入框" },
|
|
62
64
|
{ value: "Select", label: "单选下拉框" }
|
|
63
65
|
],
|
|
64
|
-
integer: [
|
|
65
|
-
|
|
66
|
-
],
|
|
67
|
-
float: [
|
|
68
|
-
{ value: "InputNumber", label: "数字输入框(支持小数)" }
|
|
69
|
-
],
|
|
66
|
+
integer: [{ value: "InputNumber", label: "数字输入框(整数模式)" }],
|
|
67
|
+
float: [{ value: "InputNumber", label: "数字输入框(支持小数)" }],
|
|
70
68
|
boolean: [
|
|
71
69
|
{ value: "Checkbox", label: "复选框" },
|
|
72
70
|
{ value: "Switch", label: "开关组件" }
|
|
@@ -88,16 +86,15 @@ var ItemModal = ({
|
|
|
88
86
|
const [selectedFieldType, setSelectedFieldType] = (0, import_react.useState)("string");
|
|
89
87
|
const [selectedScopes, setSelectedScopes] = (0, import_react.useState)([]);
|
|
90
88
|
const [showSystemDefaultValue, setShowSystemDefaultValue] = (0, import_react.useState)(false);
|
|
89
|
+
const _interfaceType = import_antd.Form.useWatch("interfaceType", form);
|
|
90
|
+
const [treeDataSource, setTreeDataSource] = (0, import_react.useState)([]);
|
|
91
|
+
(0, import_react.useEffect)(() => {
|
|
92
|
+
(0, import_serve.getAllDataSources)().then((data2) => setTreeDataSource(data2));
|
|
93
|
+
}, []);
|
|
91
94
|
const renderDefaultValueInput = (fieldType) => {
|
|
92
95
|
switch (fieldType) {
|
|
93
96
|
case "string":
|
|
94
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
95
|
-
import_antd.Input,
|
|
96
|
-
{
|
|
97
|
-
placeholder: "请输入默认值",
|
|
98
|
-
allowClear: true
|
|
99
|
-
}
|
|
100
|
-
);
|
|
97
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Input, { placeholder: "请输入默认值", allowClear: true });
|
|
101
98
|
case "integer":
|
|
102
99
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
103
100
|
import_antd.InputNumber,
|
|
@@ -118,15 +115,7 @@ var ItemModal = ({
|
|
|
118
115
|
}
|
|
119
116
|
);
|
|
120
117
|
case "boolean":
|
|
121
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
122
|
-
import_antd.Select,
|
|
123
|
-
{
|
|
124
|
-
placeholder: "请选择布尔值",
|
|
125
|
-
allowClear: true
|
|
126
|
-
},
|
|
127
|
-
/* @__PURE__ */ import_react.default.createElement(Option, { value: "true" }, "true"),
|
|
128
|
-
/* @__PURE__ */ import_react.default.createElement(Option, { value: "false" }, "false")
|
|
129
|
-
);
|
|
118
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Select, { placeholder: "请选择布尔值", allowClear: true }, /* @__PURE__ */ import_react.default.createElement(Option, { value: "true" }, "true"), /* @__PURE__ */ import_react.default.createElement(Option, { value: "false" }, "false"));
|
|
130
119
|
case "array":
|
|
131
120
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
132
121
|
TextArea,
|
|
@@ -137,13 +126,7 @@ var ItemModal = ({
|
|
|
137
126
|
}
|
|
138
127
|
);
|
|
139
128
|
default:
|
|
140
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
141
|
-
import_antd.Input,
|
|
142
|
-
{
|
|
143
|
-
placeholder: "请输入默认值",
|
|
144
|
-
allowClear: true
|
|
145
|
-
}
|
|
146
|
-
);
|
|
129
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Input, { placeholder: "请输入默认值", allowClear: true });
|
|
147
130
|
}
|
|
148
131
|
};
|
|
149
132
|
(0, import_react.useEffect)(() => {
|
|
@@ -162,6 +145,8 @@ var ItemModal = ({
|
|
|
162
145
|
en: "",
|
|
163
146
|
"zh-CN": "",
|
|
164
147
|
"zh-HK": "",
|
|
148
|
+
"ja": "",
|
|
149
|
+
"pt": "",
|
|
165
150
|
original: descField
|
|
166
151
|
};
|
|
167
152
|
}
|
|
@@ -170,6 +155,8 @@ var ItemModal = ({
|
|
|
170
155
|
en: descField.en || "",
|
|
171
156
|
"zh-CN": descField["zh-CN"] || "",
|
|
172
157
|
"zh-HK": descField["zh-HK"] || "",
|
|
158
|
+
"ja": descField["ja"] || "",
|
|
159
|
+
"pt": descField["pt"] || "",
|
|
173
160
|
original: descField.original || descField["zh-CN"] || descField.en || ""
|
|
174
161
|
};
|
|
175
162
|
}
|
|
@@ -177,6 +164,8 @@ var ItemModal = ({
|
|
|
177
164
|
en: "",
|
|
178
165
|
"zh-CN": "",
|
|
179
166
|
"zh-HK": "",
|
|
167
|
+
"ja": "",
|
|
168
|
+
"pt": "",
|
|
180
169
|
original: ""
|
|
181
170
|
};
|
|
182
171
|
};
|
|
@@ -187,14 +176,31 @@ var ItemModal = ({
|
|
|
187
176
|
interfaceType: data.interface || data.interfaceType,
|
|
188
177
|
scopes: data.scopes || [],
|
|
189
178
|
description: getDescription(data.description),
|
|
190
|
-
default: data.default
|
|
191
|
-
uiSchema: (() => {
|
|
192
|
-
const uiSchemaValue = data.schema || data.uiSchema;
|
|
193
|
-
if (!uiSchemaValue) return "";
|
|
194
|
-
if (typeof uiSchemaValue === "string") return uiSchemaValue;
|
|
195
|
-
return JSON.stringify(uiSchemaValue, null, 2);
|
|
196
|
-
})()
|
|
179
|
+
default: data.default
|
|
197
180
|
};
|
|
181
|
+
const schema = (data == null ? void 0 : data.schema) || {};
|
|
182
|
+
const xDataSource = schema["x-data-source"] || {};
|
|
183
|
+
if (Object.keys(xDataSource).length > 0) {
|
|
184
|
+
const extraParams = xDataSource == null ? void 0 : xDataSource.extraParams;
|
|
185
|
+
if (!extraParams) {
|
|
186
|
+
xDataSource.extraParams = "";
|
|
187
|
+
} else if (typeof extraParams === "string") {
|
|
188
|
+
xDataSource.extraParams = extraParams;
|
|
189
|
+
} else if (typeof extraParams === "object") {
|
|
190
|
+
xDataSource.extraParams = JSON.stringify(extraParams, null, 2);
|
|
191
|
+
}
|
|
192
|
+
formData.xDataSource = xDataSource;
|
|
193
|
+
} else {
|
|
194
|
+
formData.xDataSource = { type: "default", options: [] };
|
|
195
|
+
}
|
|
196
|
+
const xCustomUiSchema = schema["x-custom-ui-schema"];
|
|
197
|
+
if (!xCustomUiSchema) {
|
|
198
|
+
formData.xCustomUiSchema = "";
|
|
199
|
+
} else if (typeof xCustomUiSchema === "string") {
|
|
200
|
+
formData.uiSchema = xCustomUiSchema;
|
|
201
|
+
} else if (typeof xCustomUiSchema === "object") {
|
|
202
|
+
formData.uiSchema = JSON.stringify(xCustomUiSchema, null, 2);
|
|
203
|
+
}
|
|
198
204
|
form.setFieldsValue(formData);
|
|
199
205
|
setSelectedFieldType(formData.fieldType);
|
|
200
206
|
setSelectedScopes(formData.scopes);
|
|
@@ -206,18 +212,23 @@ var ItemModal = ({
|
|
|
206
212
|
en: "",
|
|
207
213
|
"zh-CN": "",
|
|
208
214
|
"zh-HK": "",
|
|
215
|
+
"ja": "",
|
|
216
|
+
"pt": "",
|
|
209
217
|
original: ""
|
|
210
218
|
},
|
|
211
219
|
description: {
|
|
212
220
|
en: "",
|
|
213
221
|
"zh-CN": "",
|
|
214
222
|
"zh-HK": "",
|
|
223
|
+
"ja": "",
|
|
224
|
+
"pt": "",
|
|
215
225
|
original: ""
|
|
216
226
|
},
|
|
217
227
|
fieldType: "string",
|
|
218
228
|
scopes: ["string"],
|
|
219
229
|
// 为key字段添加section code前缀作为默认值
|
|
220
|
-
key: (section == null ? void 0 : section.code) ? `${section.code}.` : ""
|
|
230
|
+
key: (section == null ? void 0 : section.code) ? `${section.code}.` : "",
|
|
231
|
+
xDataSource: { type: "default", options: [] }
|
|
221
232
|
};
|
|
222
233
|
form.setFieldsValue(defaultValues);
|
|
223
234
|
setSelectedFieldType("string");
|
|
@@ -229,9 +240,17 @@ var ItemModal = ({
|
|
|
229
240
|
setSelectedFieldType(value);
|
|
230
241
|
form.setFieldsValue({ interfaceType: void 0 });
|
|
231
242
|
form.setFieldsValue({ default: void 0 });
|
|
243
|
+
form.setFieldsValue({ xDataSource: { type: "default", options: [] } });
|
|
232
244
|
form.validateFields(["default"]).catch(() => {
|
|
233
245
|
});
|
|
234
246
|
};
|
|
247
|
+
const handleInterfaceTypeChange = (value) => {
|
|
248
|
+
if (value !== "Select") {
|
|
249
|
+
form.setFieldsValue({
|
|
250
|
+
xDataSource: { type: "default", options: [] }
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
};
|
|
235
254
|
const handleScopesChange = (values) => {
|
|
236
255
|
const stringValues = values.map((v) => String(v));
|
|
237
256
|
setSelectedScopes(stringValues);
|
|
@@ -244,14 +263,23 @@ var ItemModal = ({
|
|
|
244
263
|
if (values.default !== void 0 && values.default !== null && values.default !== "") {
|
|
245
264
|
if (values.fieldType === "integer" || values.fieldType === "float") {
|
|
246
265
|
if (typeof values.default !== "number") {
|
|
247
|
-
const validation = (0, import_typeValidation.validateDefaultValue)(
|
|
266
|
+
const validation = (0, import_typeValidation.validateDefaultValue)(
|
|
267
|
+
values.fieldType,
|
|
268
|
+
values.default
|
|
269
|
+
);
|
|
248
270
|
if (!validation.isValid) {
|
|
249
271
|
throw new Error(`默认值验证失败: ${validation.error}`);
|
|
250
272
|
}
|
|
251
|
-
values.default = (0, import_typeValidation.parseDefaultValue)(
|
|
273
|
+
values.default = (0, import_typeValidation.parseDefaultValue)(
|
|
274
|
+
values.fieldType,
|
|
275
|
+
values.default
|
|
276
|
+
);
|
|
252
277
|
}
|
|
253
278
|
} else {
|
|
254
|
-
const validation = (0, import_typeValidation.validateDefaultValue)(
|
|
279
|
+
const validation = (0, import_typeValidation.validateDefaultValue)(
|
|
280
|
+
values.fieldType,
|
|
281
|
+
values.default
|
|
282
|
+
);
|
|
255
283
|
if (!validation.isValid) {
|
|
256
284
|
throw new Error(`默认值验证失败: ${validation.error}`);
|
|
257
285
|
}
|
|
@@ -260,15 +288,44 @@ var ItemModal = ({
|
|
|
260
288
|
} else {
|
|
261
289
|
values.default = null;
|
|
262
290
|
}
|
|
263
|
-
|
|
291
|
+
let schema = {};
|
|
292
|
+
if (values == null ? void 0 : values.xCustomUiSchema) {
|
|
264
293
|
try {
|
|
265
|
-
|
|
294
|
+
schema["x-custom-ui-schema"] = JSON.parse(values.xCustomUiSchema);
|
|
266
295
|
} catch (error) {
|
|
267
|
-
throw new Error(
|
|
296
|
+
throw new Error(
|
|
297
|
+
`UI Schema格式错误: ${error instanceof Error ? error.message : "未知错误"}`
|
|
298
|
+
);
|
|
268
299
|
}
|
|
269
|
-
} else {
|
|
270
|
-
values.uiSchema = void 0;
|
|
271
300
|
}
|
|
301
|
+
if (values.interfaceType === "Select" && values.xDataSource) {
|
|
302
|
+
const {
|
|
303
|
+
type: type2 = "default",
|
|
304
|
+
options = [],
|
|
305
|
+
...rest
|
|
306
|
+
} = (values == null ? void 0 : values.xDataSource) || {};
|
|
307
|
+
if (type2 === "default") {
|
|
308
|
+
schema["x-data-source"] = { type: type2, options };
|
|
309
|
+
} else if (type2 === "api") {
|
|
310
|
+
schema["x-data-source"] = { type: type2, ...rest || {} };
|
|
311
|
+
if (rest == null ? void 0 : rest.extraParams) {
|
|
312
|
+
try {
|
|
313
|
+
schema["x-data-source"].extraParams = JSON.parse(
|
|
314
|
+
rest.extraParams
|
|
315
|
+
);
|
|
316
|
+
} catch (error) {
|
|
317
|
+
throw new Error(
|
|
318
|
+
`Extra Params格式错误: ${error instanceof Error ? error.message : "未知错误"}`
|
|
319
|
+
);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
} else if (type2 === "custom") {
|
|
323
|
+
schema["x-data-source"] = { type: type2 };
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
values.schema = Object.keys(schema).length > 0 ? schema : void 0;
|
|
327
|
+
delete values.xDataSource;
|
|
328
|
+
delete values.xCustomUiSchema;
|
|
272
329
|
await onOk(values);
|
|
273
330
|
} catch (error) {
|
|
274
331
|
console.error("Validation failed:", error);
|
|
@@ -291,218 +348,230 @@ var ItemModal = ({
|
|
|
291
348
|
destroyOnClose: true,
|
|
292
349
|
footer: /* @__PURE__ */ import_react.default.createElement("div", { style: { textAlign: "right" } }, /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { onClick: handleCancel, style: { marginRight: 8 } }, import_utils.locales.getText("registry.button.cancel")), /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { type: "primary", onClick: handleOk }, import_utils.locales.getText("registry.button.save")))
|
|
293
350
|
},
|
|
294
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
295
|
-
import_antd.Form,
|
|
351
|
+
/* @__PURE__ */ import_react.default.createElement(import_antd.Form, { form, layout: "vertical", requiredMark: true }, /* @__PURE__ */ import_react.default.createElement(
|
|
352
|
+
import_antd.Form.Item,
|
|
296
353
|
{
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
354
|
+
name: "name",
|
|
355
|
+
label: import_utils.locales.getText("registry.form.name"),
|
|
356
|
+
rules: [
|
|
357
|
+
{
|
|
358
|
+
required: true,
|
|
359
|
+
validator: (_, value) => {
|
|
360
|
+
if (!value || !value.original) {
|
|
361
|
+
return Promise.reject(
|
|
362
|
+
new Error(import_utils.locales.getText("registry.message.required"))
|
|
363
|
+
);
|
|
364
|
+
}
|
|
365
|
+
if (value.original.length > 100) {
|
|
366
|
+
return Promise.reject(
|
|
367
|
+
new Error(
|
|
368
|
+
import_utils.locales.getText("registry.message.name.maxLength")
|
|
369
|
+
)
|
|
370
|
+
);
|
|
371
|
+
}
|
|
372
|
+
return Promise.resolve();
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
]
|
|
300
376
|
},
|
|
301
377
|
/* @__PURE__ */ import_react.default.createElement(
|
|
302
|
-
|
|
378
|
+
import_materials.BaseTranslation,
|
|
303
379
|
{
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
}
|
|
316
|
-
return Promise.resolve();
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
]
|
|
320
|
-
},
|
|
321
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
322
|
-
import_materials.BaseTranslation,
|
|
380
|
+
placeholder: import_utils.locales.getText("registry.form.name.placeholder"),
|
|
381
|
+
type: "text",
|
|
382
|
+
renderMode: "edit"
|
|
383
|
+
}
|
|
384
|
+
)
|
|
385
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
386
|
+
import_antd.Form.Item,
|
|
387
|
+
{
|
|
388
|
+
name: "key",
|
|
389
|
+
label: import_utils.locales.getText("registry.form.key"),
|
|
390
|
+
rules: [
|
|
323
391
|
{
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
392
|
+
required: true,
|
|
393
|
+
message: import_utils.locales.getText("registry.message.required")
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
max: 100,
|
|
397
|
+
message: import_utils.locales.getText("registry.message.key.maxLength")
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
validator: (section == null ? void 0 : section.code) ? (0, import_validators.createPrefixedAppIdentifierValidator)(section.code) : (_, value) => {
|
|
401
|
+
if (!value) return Promise.resolve();
|
|
402
|
+
return Promise.reject(new Error("未找到当前区块信息"));
|
|
403
|
+
}
|
|
327
404
|
}
|
|
328
|
-
|
|
329
|
-
|
|
405
|
+
]
|
|
406
|
+
},
|
|
330
407
|
/* @__PURE__ */ import_react.default.createElement(
|
|
331
|
-
import_antd.
|
|
408
|
+
import_antd.Input,
|
|
332
409
|
{
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
validator: (section == null ? void 0 : section.code) ? (0, import_validators.createPrefixedAppIdentifierValidator)(section.code) : (_, value) => {
|
|
346
|
-
if (!value) return Promise.resolve();
|
|
347
|
-
return Promise.reject(new Error("未找到当前区块信息"));
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
]
|
|
351
|
-
},
|
|
352
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
353
|
-
import_antd.Input,
|
|
410
|
+
placeholder: import_utils.locales.getText("registry.form.key.placeholder"),
|
|
411
|
+
maxLength: 100
|
|
412
|
+
}
|
|
413
|
+
)
|
|
414
|
+
), /* @__PURE__ */ import_react.default.createElement(import_antd.Row, { gutter: 16 }, /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 12 }, /* @__PURE__ */ import_react.default.createElement(
|
|
415
|
+
import_antd.Form.Item,
|
|
416
|
+
{
|
|
417
|
+
name: "fieldType",
|
|
418
|
+
label: import_utils.locales.getText("registry.form.fieldType"),
|
|
419
|
+
rules: [
|
|
354
420
|
{
|
|
355
|
-
|
|
356
|
-
|
|
421
|
+
required: true,
|
|
422
|
+
message: import_utils.locales.getText("registry.message.required")
|
|
357
423
|
}
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
361
|
-
import_antd.
|
|
424
|
+
]
|
|
425
|
+
},
|
|
426
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
427
|
+
import_antd.Select,
|
|
362
428
|
{
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
required: true,
|
|
368
|
-
message: import_utils.locales.getText("registry.message.required")
|
|
369
|
-
}
|
|
370
|
-
]
|
|
429
|
+
placeholder: import_utils.locales.getText(
|
|
430
|
+
"registry.form.fieldType.placeholder"
|
|
431
|
+
),
|
|
432
|
+
onChange: handleFieldTypeChange
|
|
371
433
|
},
|
|
372
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
373
|
-
|
|
434
|
+
fieldTypeOptions.map((option) => /* @__PURE__ */ import_react.default.createElement(Option, { key: option.value, value: option.value }, option.label))
|
|
435
|
+
)
|
|
436
|
+
)), /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 12 }, /* @__PURE__ */ import_react.default.createElement(
|
|
437
|
+
import_antd.Form.Item,
|
|
438
|
+
{
|
|
439
|
+
name: "interfaceType",
|
|
440
|
+
label: import_utils.locales.getText("registry.form.interfaceType"),
|
|
441
|
+
rules: [
|
|
374
442
|
{
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
import_antd.
|
|
443
|
+
required: true,
|
|
444
|
+
message: import_utils.locales.getText("registry.message.required")
|
|
445
|
+
}
|
|
446
|
+
]
|
|
447
|
+
},
|
|
448
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
449
|
+
import_antd.Select,
|
|
382
450
|
{
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
message: import_utils.locales.getText("registry.message.required")
|
|
389
|
-
}
|
|
390
|
-
]
|
|
451
|
+
placeholder: import_utils.locales.getText(
|
|
452
|
+
"registry.form.interfaceType.placeholder"
|
|
453
|
+
),
|
|
454
|
+
allowClear: true,
|
|
455
|
+
onChange: handleInterfaceTypeChange
|
|
391
456
|
},
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
{
|
|
395
|
-
placeholder: import_utils.locales.getText("registry.form.interfaceType.placeholder"),
|
|
396
|
-
allowClear: true
|
|
397
|
-
},
|
|
398
|
-
(interfaceTypeOptions[selectedFieldType] || []).map((option) => /* @__PURE__ */ import_react.default.createElement(Option, { key: option.value, value: option.value }, option.label))
|
|
457
|
+
(interfaceTypeOptions[selectedFieldType] || []).map(
|
|
458
|
+
(option) => /* @__PURE__ */ import_react.default.createElement(Option, { key: option.value, value: option.value }, option.label)
|
|
399
459
|
)
|
|
400
|
-
)
|
|
460
|
+
)
|
|
461
|
+
))), _interfaceType === "Select" && /* @__PURE__ */ import_react.default.createElement(import_OptionDataSource.default, { form, treeDataSource }), /* @__PURE__ */ import_react.default.createElement(
|
|
462
|
+
import_antd.Form.Item,
|
|
463
|
+
{
|
|
464
|
+
name: "scopes",
|
|
465
|
+
label: import_utils.locales.getText("registry.form.scopes"),
|
|
466
|
+
rules: [
|
|
467
|
+
{
|
|
468
|
+
required: true,
|
|
469
|
+
message: import_utils.locales.getText("registry.message.required")
|
|
470
|
+
}
|
|
471
|
+
]
|
|
472
|
+
},
|
|
401
473
|
/* @__PURE__ */ import_react.default.createElement(
|
|
402
|
-
import_antd.
|
|
474
|
+
import_antd.Checkbox.Group,
|
|
403
475
|
{
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
476
|
+
options: scopeOptions.map((option) => ({
|
|
477
|
+
label: import_utils.locales.getText(option.label),
|
|
478
|
+
value: option.value
|
|
479
|
+
})),
|
|
480
|
+
onChange: handleScopesChange
|
|
481
|
+
}
|
|
482
|
+
)
|
|
483
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
484
|
+
import_antd.Form.Item,
|
|
485
|
+
{
|
|
486
|
+
name: "description",
|
|
487
|
+
label: import_utils.locales.getText("registry.form.description"),
|
|
488
|
+
rules: [
|
|
415
489
|
{
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
490
|
+
validator: (_, value) => {
|
|
491
|
+
if (value && value.original && value.original.length > 500) {
|
|
492
|
+
return Promise.reject(
|
|
493
|
+
new Error(
|
|
494
|
+
import_utils.locales.getText("registry.message.description.maxLength")
|
|
495
|
+
)
|
|
496
|
+
);
|
|
497
|
+
}
|
|
498
|
+
return Promise.resolve();
|
|
499
|
+
}
|
|
421
500
|
}
|
|
422
|
-
|
|
423
|
-
|
|
501
|
+
]
|
|
502
|
+
},
|
|
424
503
|
/* @__PURE__ */ import_react.default.createElement(
|
|
425
|
-
|
|
504
|
+
import_materials.BaseTranslation,
|
|
426
505
|
{
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
506
|
+
placeholder: import_utils.locales.getText(
|
|
507
|
+
"registry.form.description.placeholder"
|
|
508
|
+
),
|
|
509
|
+
type: "textarea",
|
|
510
|
+
renderMode: "edit"
|
|
511
|
+
}
|
|
512
|
+
)
|
|
513
|
+
), showSystemDefaultValue && /* @__PURE__ */ import_react.default.createElement(
|
|
514
|
+
import_antd.Form.Item,
|
|
515
|
+
{
|
|
516
|
+
name: "default",
|
|
517
|
+
label: import_utils.locales.getText("registry.form.systemDefaultValue"),
|
|
518
|
+
rules: [
|
|
519
|
+
{
|
|
520
|
+
validator: (_, value) => {
|
|
521
|
+
if (value === null || value === void 0 || value === "") {
|
|
435
522
|
return Promise.resolve();
|
|
436
523
|
}
|
|
524
|
+
const currentFieldType = form.getFieldValue("fieldType");
|
|
525
|
+
if (!currentFieldType) {
|
|
526
|
+
return Promise.reject(new Error("请先选择字段类型"));
|
|
527
|
+
}
|
|
528
|
+
const validation = (0, import_typeValidation.validateDefaultValue)(
|
|
529
|
+
currentFieldType,
|
|
530
|
+
value
|
|
531
|
+
);
|
|
532
|
+
if (!validation.isValid) {
|
|
533
|
+
return Promise.reject(new Error(validation.error));
|
|
534
|
+
}
|
|
535
|
+
return Promise.resolve();
|
|
437
536
|
}
|
|
438
|
-
]
|
|
439
|
-
},
|
|
440
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
441
|
-
import_materials.BaseTranslation,
|
|
442
|
-
{
|
|
443
|
-
placeholder: import_utils.locales.getText("registry.form.description.placeholder"),
|
|
444
|
-
type: "textarea",
|
|
445
|
-
renderMode: "edit"
|
|
446
537
|
}
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
}
|
|
460
|
-
const currentFieldType = form.getFieldValue("fieldType");
|
|
461
|
-
if (!currentFieldType) {
|
|
462
|
-
return Promise.reject(new Error("请先选择字段类型"));
|
|
463
|
-
}
|
|
464
|
-
const validation = (0, import_typeValidation.validateDefaultValue)(currentFieldType, value);
|
|
465
|
-
if (!validation.isValid) {
|
|
466
|
-
return Promise.reject(new Error(validation.error));
|
|
467
|
-
}
|
|
538
|
+
]
|
|
539
|
+
},
|
|
540
|
+
renderDefaultValueInput(selectedFieldType)
|
|
541
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
542
|
+
import_antd.Form.Item,
|
|
543
|
+
{
|
|
544
|
+
name: "xCustomUiSchema",
|
|
545
|
+
label: import_utils.locales.getText("registry.form.uiSchema"),
|
|
546
|
+
rules: [
|
|
547
|
+
{
|
|
548
|
+
validator: (_, value) => {
|
|
549
|
+
if (!value || value.trim() === "") {
|
|
468
550
|
return Promise.resolve();
|
|
469
551
|
}
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
label: import_utils.locales.getText("registry.form.uiSchema"),
|
|
480
|
-
rules: [
|
|
481
|
-
{
|
|
482
|
-
validator: (_, value) => {
|
|
483
|
-
if (!value || value.trim() === "") {
|
|
484
|
-
return Promise.resolve();
|
|
485
|
-
}
|
|
486
|
-
try {
|
|
487
|
-
JSON.parse(value);
|
|
488
|
-
return Promise.resolve();
|
|
489
|
-
} catch (error) {
|
|
490
|
-
return Promise.reject(new Error(import_utils.locales.getText("registry.message.uiSchema.invalid")));
|
|
491
|
-
}
|
|
552
|
+
try {
|
|
553
|
+
JSON.parse(value);
|
|
554
|
+
return Promise.resolve();
|
|
555
|
+
} catch (error) {
|
|
556
|
+
return Promise.reject(
|
|
557
|
+
new Error(
|
|
558
|
+
import_utils.locales.getText("registry.message.uiSchema.invalid")
|
|
559
|
+
)
|
|
560
|
+
);
|
|
492
561
|
}
|
|
493
562
|
}
|
|
494
|
-
]
|
|
495
|
-
},
|
|
496
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
497
|
-
TextArea,
|
|
498
|
-
{
|
|
499
|
-
placeholder: import_utils.locales.getText("registry.form.uiSchema.placeholder"),
|
|
500
|
-
rows: 6,
|
|
501
|
-
style: { fontFamily: "monospace" }
|
|
502
563
|
}
|
|
503
|
-
|
|
564
|
+
]
|
|
565
|
+
},
|
|
566
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
567
|
+
TextArea,
|
|
568
|
+
{
|
|
569
|
+
placeholder: import_utils.locales.getText("registry.form.uiSchema.placeholder"),
|
|
570
|
+
rows: 6,
|
|
571
|
+
style: { fontFamily: "monospace" }
|
|
572
|
+
}
|
|
504
573
|
)
|
|
505
|
-
)
|
|
574
|
+
))
|
|
506
575
|
);
|
|
507
576
|
};
|
|
508
577
|
var ItemModal_default = ItemModal;
|