@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,166 @@
|
|
|
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/OptionDataSource/OptionTable.tsx
|
|
30
|
+
var OptionTable_exports = {};
|
|
31
|
+
__export(OptionTable_exports, {
|
|
32
|
+
default: () => OptionTable_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(OptionTable_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_materials = require("@pisell/materials");
|
|
37
|
+
var import_utils = require("@pisell/utils");
|
|
38
|
+
var import_icons = require("@ant-design/icons");
|
|
39
|
+
var import_ahooks = require("ahooks");
|
|
40
|
+
var import__ = require("../../index.less");
|
|
41
|
+
var OptionsTable = (props) => {
|
|
42
|
+
const [value, onChange] = (0, import_ahooks.useControllableValue)(props);
|
|
43
|
+
const updateOptionField = (index, field, fieldValue) => {
|
|
44
|
+
onChange == null ? void 0 : onChange((prev) => {
|
|
45
|
+
const newOptions = [...prev];
|
|
46
|
+
newOptions[index] = {
|
|
47
|
+
...(newOptions == null ? void 0 : newOptions[index]) || {},
|
|
48
|
+
[field]: fieldValue
|
|
49
|
+
};
|
|
50
|
+
return newOptions;
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
const handleAdd = () => {
|
|
54
|
+
onChange == null ? void 0 : onChange((prev) => {
|
|
55
|
+
return [
|
|
56
|
+
...prev || [],
|
|
57
|
+
{
|
|
58
|
+
id: (/* @__PURE__ */ new Date()).getTime().toString(),
|
|
59
|
+
label: "",
|
|
60
|
+
value: "",
|
|
61
|
+
color: "default"
|
|
62
|
+
}
|
|
63
|
+
];
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
const handleRemove = (index) => {
|
|
67
|
+
onChange == null ? void 0 : onChange((prev) => {
|
|
68
|
+
return (prev || []).filter((_, i) => i !== index);
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
const handleSortChange = (detail) => {
|
|
72
|
+
const { dataSource: newDataSource } = detail;
|
|
73
|
+
const newOptions = newDataSource.map((item) => ({
|
|
74
|
+
id: item.id,
|
|
75
|
+
label: item.label,
|
|
76
|
+
value: item.value,
|
|
77
|
+
color: item.color
|
|
78
|
+
}));
|
|
79
|
+
onChange == null ? void 0 : onChange(newOptions);
|
|
80
|
+
return false;
|
|
81
|
+
};
|
|
82
|
+
const columns = [
|
|
83
|
+
{
|
|
84
|
+
title: import_utils.locales.getText("registry.optionDataSource.options.label-field"),
|
|
85
|
+
dataIndex: "label",
|
|
86
|
+
key: "label",
|
|
87
|
+
render: (_, record, index) => {
|
|
88
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
89
|
+
import_materials.BaseTranslation,
|
|
90
|
+
{
|
|
91
|
+
renderMode: "edit",
|
|
92
|
+
type: "text",
|
|
93
|
+
value: record.label,
|
|
94
|
+
onChange: (value2) => updateOptionField(index, "label", value2),
|
|
95
|
+
placeholder: import_utils.locales.getText(
|
|
96
|
+
"registry.optionDataSource.options.label-placeholder"
|
|
97
|
+
),
|
|
98
|
+
inputStyle: record.label ? { borderColor: "#D0D5DD" } : {}
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
title: import_utils.locales.getText("registry.optionDataSource.options.value-field"),
|
|
105
|
+
dataIndex: "value",
|
|
106
|
+
key: "value",
|
|
107
|
+
render: (_, record, index) => {
|
|
108
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
109
|
+
import_materials.Input,
|
|
110
|
+
{
|
|
111
|
+
value: record.value,
|
|
112
|
+
onChange: (e) => updateOptionField(index, "value", e.target.value),
|
|
113
|
+
placeholder: import_utils.locales.getText(
|
|
114
|
+
"registry.optionDataSource.options.value-placeholder"
|
|
115
|
+
),
|
|
116
|
+
style: record.value ? { borderColor: "#D0D5DD" } : {}
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
title: "",
|
|
123
|
+
key: "action",
|
|
124
|
+
width: 80,
|
|
125
|
+
align: "center",
|
|
126
|
+
render: (_, record, index) => {
|
|
127
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
128
|
+
import_materials.Button,
|
|
129
|
+
{
|
|
130
|
+
type: "text",
|
|
131
|
+
danger: true,
|
|
132
|
+
size: "small",
|
|
133
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.DeleteOutlined, null),
|
|
134
|
+
onClick: () => handleRemove(index)
|
|
135
|
+
}
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
];
|
|
140
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
141
|
+
import_materials.Button,
|
|
142
|
+
{
|
|
143
|
+
type: "text",
|
|
144
|
+
onClick: handleAdd,
|
|
145
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_icons.PlusOutlined, null),
|
|
146
|
+
style: { position: "absolute", right: 0, top: "-36px", zIndex: 9 }
|
|
147
|
+
},
|
|
148
|
+
import_utils.locales.getText("registry.optionDataSource.options.add")
|
|
149
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
150
|
+
import_materials.Table,
|
|
151
|
+
{
|
|
152
|
+
rowKey: "id",
|
|
153
|
+
columns,
|
|
154
|
+
dataSource: value || [],
|
|
155
|
+
pagination: false,
|
|
156
|
+
dragSort: true,
|
|
157
|
+
virtual: false,
|
|
158
|
+
tableLayout: "",
|
|
159
|
+
onSortChange: handleSortChange,
|
|
160
|
+
locale: {
|
|
161
|
+
emptyText: import_utils.locales.getText("registry.optionDataSource.options.empty")
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
));
|
|
165
|
+
};
|
|
166
|
+
var OptionTable_default = OptionsTable;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FormInstance } from 'antd';
|
|
3
|
+
import './index.less';
|
|
4
|
+
import { DataSourceType } from '../DataSourceTreeSelect/serve';
|
|
5
|
+
interface OptionDataSourceProps {
|
|
6
|
+
form: FormInstance<any>;
|
|
7
|
+
treeDataSource: DataSourceType[];
|
|
8
|
+
}
|
|
9
|
+
declare const OptionDataSource: React.FC<OptionDataSourceProps>;
|
|
10
|
+
export default OptionDataSource;
|
|
@@ -0,0 +1,210 @@
|
|
|
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/OptionDataSource/index.tsx
|
|
30
|
+
var OptionDataSource_exports = {};
|
|
31
|
+
__export(OptionDataSource_exports, {
|
|
32
|
+
default: () => OptionDataSource_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(OptionDataSource_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_utils = require("@pisell/utils");
|
|
38
|
+
var import_OptionTable = __toESM(require("./OptionTable"));
|
|
39
|
+
var import_DataSourceTreeSelect = __toESM(require("../DataSourceTreeSelect"));
|
|
40
|
+
var import_index = require("./index.less");
|
|
41
|
+
var { TextArea } = import_antd.Input;
|
|
42
|
+
var optionSourceTypeOptions = [
|
|
43
|
+
{
|
|
44
|
+
title: "registry.optionDataSource.type.default-label",
|
|
45
|
+
description: "registry.optionDataSource.type.default-desc",
|
|
46
|
+
value: "default"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
title: "registry.optionDataSource.type.api-label",
|
|
50
|
+
description: "registry.optionDataSource.type.api-desc",
|
|
51
|
+
value: "api"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
title: "registry.optionDataSource.type.custom-label",
|
|
55
|
+
description: "registry.optionDataSource.type.custom-desc",
|
|
56
|
+
value: "custom"
|
|
57
|
+
}
|
|
58
|
+
];
|
|
59
|
+
var OptionDataSource = ({
|
|
60
|
+
form,
|
|
61
|
+
treeDataSource
|
|
62
|
+
}) => {
|
|
63
|
+
const type = import_antd.Form.useWatch(["xDataSource", "type"], form);
|
|
64
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
65
|
+
import_antd.Form.Item,
|
|
66
|
+
{
|
|
67
|
+
name: ["xDataSource", "type"],
|
|
68
|
+
label: import_utils.locales.getText("registry.optionDataSource.type.title"),
|
|
69
|
+
rules: [
|
|
70
|
+
{
|
|
71
|
+
required: true,
|
|
72
|
+
message: import_utils.locales.getText("registry.optionDataSource.type.desc")
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
/* @__PURE__ */ import_react.default.createElement(import_antd.Radio.Group, { style: { width: "100%" } }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-settings-registry-option-source-type-options-desc" }, import_utils.locales.getText("registry.optionDataSource.type.desc")), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-settings-registry-option-source-type-options" }, optionSourceTypeOptions.map((option) => /* @__PURE__ */ import_react.default.createElement(import_antd.Radio, { key: option.value, value: option.value }, /* @__PURE__ */ import_react.default.createElement("div", { style: { display: "inline-block" } }, /* @__PURE__ */ import_react.default.createElement("div", null, import_utils.locales.getText(option.title)), /* @__PURE__ */ import_react.default.createElement(
|
|
77
|
+
"div",
|
|
78
|
+
{
|
|
79
|
+
style: {
|
|
80
|
+
fontSize: "12px",
|
|
81
|
+
color: "#8c8c8c",
|
|
82
|
+
marginTop: "2px"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
import_utils.locales.getText(option.description)
|
|
86
|
+
))))))
|
|
87
|
+
), type === "default" && /* @__PURE__ */ import_react.default.createElement(
|
|
88
|
+
import_antd.Form.Item,
|
|
89
|
+
{
|
|
90
|
+
name: ["xDataSource", "options"],
|
|
91
|
+
label: import_utils.locales.getText("registry.optionDataSource.options.label"),
|
|
92
|
+
validateTrigger: ["onSubmit", "onChange"],
|
|
93
|
+
rules: [
|
|
94
|
+
{
|
|
95
|
+
required: true,
|
|
96
|
+
validator: (_, value) => {
|
|
97
|
+
if (!value || !Array.isArray(value) || value.length === 0) {
|
|
98
|
+
return Promise.reject(
|
|
99
|
+
new Error(
|
|
100
|
+
import_utils.locales.getText("registry.optionDataSource.options.empty")
|
|
101
|
+
)
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
for (let i = 0; i < value.length; i++) {
|
|
105
|
+
const item = value[i];
|
|
106
|
+
if (!item.label || !item.value || !item.value.trim()) {
|
|
107
|
+
return Promise.reject(
|
|
108
|
+
new Error(
|
|
109
|
+
import_utils.locales.getText(
|
|
110
|
+
"registry.optionDataSource.options.required-desc"
|
|
111
|
+
)
|
|
112
|
+
)
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return Promise.resolve();
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
/* @__PURE__ */ import_react.default.createElement(import_OptionTable.default, null)
|
|
122
|
+
), type === "api" && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
123
|
+
import_antd.Form.Item,
|
|
124
|
+
{
|
|
125
|
+
name: ["xDataSource", "dataSource"],
|
|
126
|
+
label: import_utils.locales.getText(
|
|
127
|
+
"registry.optionDataSource.api.dataSource-label"
|
|
128
|
+
),
|
|
129
|
+
rules: [
|
|
130
|
+
{
|
|
131
|
+
required: true,
|
|
132
|
+
validator: (_, value) => {
|
|
133
|
+
if (!value || !(value == null ? void 0 : value.key) && !(value == null ? void 0 : value.tableName)) {
|
|
134
|
+
return Promise.reject(
|
|
135
|
+
new Error(
|
|
136
|
+
import_utils.locales.getText(
|
|
137
|
+
"registry.optionDataSource.api.dataSource-required"
|
|
138
|
+
)
|
|
139
|
+
)
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
return Promise.resolve();
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
148
|
+
import_DataSourceTreeSelect.default,
|
|
149
|
+
{
|
|
150
|
+
mode: "list",
|
|
151
|
+
filters: {
|
|
152
|
+
tables: "all",
|
|
153
|
+
variables: {}
|
|
154
|
+
},
|
|
155
|
+
dataSource: treeDataSource
|
|
156
|
+
}
|
|
157
|
+
)
|
|
158
|
+
), /* @__PURE__ */ import_react.default.createElement(
|
|
159
|
+
import_antd.Form.Item,
|
|
160
|
+
{
|
|
161
|
+
name: ["xDataSource", "extraParams"],
|
|
162
|
+
label: import_utils.locales.getText(
|
|
163
|
+
"registry.optionDataSource.api.extraParams-label"
|
|
164
|
+
),
|
|
165
|
+
rules: [
|
|
166
|
+
{
|
|
167
|
+
validator: (_, value) => {
|
|
168
|
+
if (!value || value.trim() === "") {
|
|
169
|
+
return Promise.resolve();
|
|
170
|
+
}
|
|
171
|
+
try {
|
|
172
|
+
JSON.parse(value);
|
|
173
|
+
return Promise.resolve();
|
|
174
|
+
} catch (error) {
|
|
175
|
+
return Promise.reject(
|
|
176
|
+
new Error(
|
|
177
|
+
import_utils.locales.getText("registry.message.uiSchema.invalid")
|
|
178
|
+
)
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
186
|
+
TextArea,
|
|
187
|
+
{
|
|
188
|
+
placeholder: import_utils.locales.getText(
|
|
189
|
+
"registry.optionDataSource.api.extraParams-label"
|
|
190
|
+
),
|
|
191
|
+
rows: 6,
|
|
192
|
+
style: { fontFamily: "monospace" }
|
|
193
|
+
}
|
|
194
|
+
)
|
|
195
|
+
)), type === "custom" && /* @__PURE__ */ import_react.default.createElement(
|
|
196
|
+
import_antd.Alert,
|
|
197
|
+
{
|
|
198
|
+
type: "warning",
|
|
199
|
+
showIcon: true,
|
|
200
|
+
message: import_utils.locales.getText(
|
|
201
|
+
"registry.optionDataSource.type.custom.warning-title"
|
|
202
|
+
),
|
|
203
|
+
description: import_utils.locales.getText(
|
|
204
|
+
"registry.optionDataSource.type.custom.warning-description"
|
|
205
|
+
),
|
|
206
|
+
className: "pisell-settings-registry-option-custom-alert"
|
|
207
|
+
}
|
|
208
|
+
));
|
|
209
|
+
};
|
|
210
|
+
var OptionDataSource_default = OptionDataSource;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
.pisell-settings-registry-option-source-type-options-desc {
|
|
2
|
+
margin-bottom: 8px;
|
|
3
|
+
font-size: 12px;
|
|
4
|
+
color: #8c8c8c;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.pisell-settings-registry-option-source-type-options {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
gap: 12px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.pisell-settings-registry-option-custom-alert {
|
|
14
|
+
padding: 14px !important;
|
|
15
|
+
margin-bottom: 16px;
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: row;
|
|
18
|
+
align-items: center;
|
|
19
|
+
|
|
20
|
+
.pisell-lowcode-alert-icon {
|
|
21
|
+
color: #faad14;
|
|
22
|
+
font-size: 20px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.pisell-lowcode-alert-message {
|
|
26
|
+
margin-bottom: 0 !important;
|
|
27
|
+
font-size: 14px;
|
|
28
|
+
color: #101828;
|
|
29
|
+
font-weight: 500;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.pisell-lowcode-alert-description {
|
|
33
|
+
font-size: 12px;
|
|
34
|
+
color: rgb(140, 140, 140);
|
|
35
|
+
margin-top: 2px;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -43,6 +43,7 @@ var import_services = require("./services");
|
|
|
43
43
|
var import_typeValidation = require("./utils/typeValidation");
|
|
44
44
|
var import_locales = __toESM(require("./locales"));
|
|
45
45
|
var import_index = require("./index.less");
|
|
46
|
+
var import_utils2 = require("../../../utils");
|
|
46
47
|
var Registry = ({
|
|
47
48
|
className,
|
|
48
49
|
style,
|
|
@@ -58,6 +59,7 @@ var Registry = ({
|
|
|
58
59
|
const [currentSectionId, setCurrentSectionId] = (0, import_react.useState)(
|
|
59
60
|
selectedSectionId || (sections.length > 0 ? sections[0].id : 0)
|
|
60
61
|
);
|
|
62
|
+
import_utils2.request.setRequest(request);
|
|
61
63
|
const [loading, setLoading] = (0, import_react.useState)(false);
|
|
62
64
|
const [hasMore, setHasMore] = (0, import_react.useState)(true);
|
|
63
65
|
const [currentPage, setCurrentPage] = (0, import_react.useState)(1);
|
|
@@ -429,14 +431,15 @@ var Registry = ({
|
|
|
429
431
|
interface: formData.interfaceType,
|
|
430
432
|
default: processedDefaultValue,
|
|
431
433
|
scopes: formData.scopes,
|
|
432
|
-
schema: formData.uiSchema ? (() => {
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
})() :
|
|
434
|
+
// schema: formData.uiSchema ? (() => {
|
|
435
|
+
// try {
|
|
436
|
+
// return JSON.parse(formData.uiSchema);
|
|
437
|
+
// } catch (e) {
|
|
438
|
+
// console.warn('Invalid JSON in uiSchema:', e);
|
|
439
|
+
// return formData.uiSchema;
|
|
440
|
+
// }
|
|
441
|
+
// })() : undefined,
|
|
442
|
+
schema: (formData == null ? void 0 : formData.schema) || void 0,
|
|
440
443
|
sort: newSort
|
|
441
444
|
});
|
|
442
445
|
} else {
|
|
@@ -455,14 +458,15 @@ var Registry = ({
|
|
|
455
458
|
interface: formData.interfaceType,
|
|
456
459
|
default: processedDefaultValue,
|
|
457
460
|
scopes: formData.scopes,
|
|
458
|
-
schema: formData.uiSchema ? (() => {
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
})() :
|
|
461
|
+
// schema: formData.uiSchema ? (() => {
|
|
462
|
+
// try {
|
|
463
|
+
// return JSON.parse(formData.uiSchema);
|
|
464
|
+
// } catch (e) {
|
|
465
|
+
// console.warn('Invalid JSON in uiSchema:', e);
|
|
466
|
+
// return formData.uiSchema;
|
|
467
|
+
// }
|
|
468
|
+
// })() : undefined,
|
|
469
|
+
schema: (formData == null ? void 0 : formData.schema) || void 0,
|
|
466
470
|
sort: editingItem.sort
|
|
467
471
|
});
|
|
468
472
|
}
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
justify-content: center;
|
|
38
38
|
height: 200px;
|
|
39
39
|
}
|
|
40
|
-
|
|
41
40
|
}
|
|
42
41
|
|
|
43
42
|
// 区块卡片
|
|
@@ -55,7 +54,7 @@
|
|
|
55
54
|
&.active {
|
|
56
55
|
border-color: #1890ff;
|
|
57
56
|
background: #f0f8ff;
|
|
58
|
-
|
|
57
|
+
|
|
59
58
|
.pisell-settings-registry-section-name {
|
|
60
59
|
color: #1890ff;
|
|
61
60
|
}
|
|
@@ -186,7 +185,6 @@
|
|
|
186
185
|
// 代码和键的样式
|
|
187
186
|
&-code,
|
|
188
187
|
&-key {
|
|
189
|
-
|
|
190
188
|
font-size: 12px;
|
|
191
189
|
background: #f6f8fa;
|
|
192
190
|
padding: 2px 6px;
|
|
@@ -297,7 +295,7 @@
|
|
|
297
295
|
// 项目容器的拖动区域
|
|
298
296
|
min-height: 40px;
|
|
299
297
|
border-radius: 4px;
|
|
300
|
-
|
|
298
|
+
|
|
301
299
|
&.drop-active {
|
|
302
300
|
background-color: rgba(24, 144, 255, 0.1);
|
|
303
301
|
border: 2px dashed #1890ff;
|
|
@@ -352,7 +350,8 @@
|
|
|
352
350
|
|
|
353
351
|
// 拖拽动画
|
|
354
352
|
@keyframes pulse {
|
|
355
|
-
0%,
|
|
353
|
+
0%,
|
|
354
|
+
100% {
|
|
356
355
|
opacity: 1;
|
|
357
356
|
transform: scaleX(1);
|
|
358
357
|
}
|
|
@@ -394,9 +393,9 @@
|
|
|
394
393
|
|
|
395
394
|
// 空容器行的样式
|
|
396
395
|
.pisell-settings-registry-table-content {
|
|
397
|
-
.ant-table-tbody > tr[data-row-key*=
|
|
396
|
+
.ant-table-tbody > tr[data-row-key*='empty-container'] {
|
|
398
397
|
background-color: #fafafa;
|
|
399
|
-
|
|
398
|
+
|
|
400
399
|
&:hover {
|
|
401
400
|
background-color: #f0f8ff;
|
|
402
401
|
}
|