@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.
Files changed (487) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +10 -10
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +10 -10
  11. package/es/components/Sales/Summary/utils.d.ts +58 -0
  12. package/es/components/appointmentBooking/components/Date/state.d.ts +63 -0
  13. package/es/components/appointmentBooking/components/Date/state.js +3 -1
  14. package/es/components/appointmentBooking/locales.d.ts +606 -0
  15. package/es/components/appointmentBooking/locales.js +276 -0
  16. package/es/components/authentication/admin/AuthMethods/locales.d.ts +413 -0
  17. package/es/components/authentication/admin/AuthMethods/locales.js +164 -0
  18. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +27 -9
  19. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +138 -0
  20. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +54 -0
  21. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +43 -0
  22. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
  23. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +2 -0
  24. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +118 -0
  25. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +46 -0
  26. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +35 -0
  27. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +17 -9
  28. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +43 -0
  29. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +16 -0
  30. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +10 -2
  31. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +108 -0
  32. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +42 -0
  33. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +28 -0
  34. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +17 -9
  35. package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +63 -0
  36. package/es/components/authentication/admin/ChannelAuthSetting/locales.js +24 -0
  37. package/es/components/authentication/admin/CustomerAuth/locales.d.ts +108 -0
  38. package/es/components/authentication/admin/CustomerAuth/locales.js +42 -0
  39. package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +178 -0
  40. package/es/components/authentication/admin/CustomerOAuthConfig/locales.js +70 -0
  41. package/es/components/authentication/admin/DeviceAuth/locales.d.ts +93 -0
  42. package/es/components/authentication/admin/DeviceAuth/locales.js +36 -0
  43. package/es/components/authentication/admin/OAuthConfig/locales.d.ts +148 -0
  44. package/es/components/authentication/admin/OAuthConfig/locales.js +58 -0
  45. package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +88 -0
  46. package/es/components/authentication/admin/OrgAdminAuth/locales.js +34 -0
  47. package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +78 -0
  48. package/es/components/authentication/admin/POSOperatorAuth/locales.js +30 -0
  49. package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +88 -0
  50. package/es/components/authentication/admin/SaaSAdminAuth/locales.js +34 -0
  51. package/es/components/booking/addons/model.d.ts +10 -1
  52. package/es/components/booking/components/tabPane/index.d.ts +4 -0
  53. package/es/components/booking/components/voucher/utils.d.ts +4 -0
  54. package/es/components/booking/editBookingModal/locales.d.ts +33 -0
  55. package/es/components/booking/editBookingModal/locales.js +12 -0
  56. package/es/components/booking/editBookingModal/mock.d.ts +991 -0
  57. package/es/components/booking/editBookingModal/mock.js +22 -0
  58. package/es/components/booking/editBookingModal/utils.d.ts +12 -0
  59. package/es/components/booking/forms/model.d.ts +10 -1
  60. package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  61. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  62. package/es/components/booking/info/clientVariant/utils.d.ts +1 -0
  63. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  64. package/es/components/booking/info/model.d.ts +10 -1
  65. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  66. package/es/components/booking/info2/service/addService/mock.d.ts +216 -0
  67. package/es/components/booking/info2/service/addService/mock.js +4 -0
  68. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  69. package/es/components/booking/info2/service/editService/utils.d.ts +13 -0
  70. package/es/components/booking/locales.d.ts +628 -0
  71. package/es/components/booking/locales.js +722 -0
  72. package/es/components/booking/model.d.ts +9 -1
  73. package/es/components/booking/notes/addNote/index.d.ts +4 -0
  74. package/es/components/booking/notes/model.d.ts +10 -1
  75. package/es/components/booking/payments/model.d.ts +10 -1
  76. package/es/components/booking/utils.d.ts +2 -2
  77. package/es/components/ecocup/components/CupInfoCard/index.d.ts +8 -0
  78. package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +5 -0
  79. package/es/components/ecocup/components/CustomerCard/index.d.ts +7 -0
  80. package/es/components/ecocup/cupList/const.d.ts +133 -0
  81. package/es/components/ecocup/cupList/hooks/useCupApi.d.ts +32 -0
  82. package/es/components/ecocup/cupProject/const.d.ts +7 -0
  83. package/es/components/ecocup/hooks.d.ts +49 -0
  84. package/es/components/ecocup/locales.d.ts +563 -0
  85. package/es/components/ecocup/locales.js +228 -0
  86. package/es/components/eftpos/const.d.ts +64 -0
  87. package/es/components/eftpos/device.d.ts +9 -0
  88. package/es/components/eftpos/hooks.d.ts +33 -0
  89. package/es/components/eftpos/index.d.ts +47 -0
  90. package/es/components/eftpos/locales.d.ts +163 -0
  91. package/es/components/eftpos/locales.js +80 -0
  92. package/es/components/eftposPay/amount.d.ts +1 -1
  93. package/es/components/eftposPay/component/fail/unknow.d.ts +10 -0
  94. package/es/components/eftposPay/const.d.ts +184 -0
  95. package/es/components/eftposPay/device.d.ts +1 -1
  96. package/es/components/eftposPay/hooks.d.ts +35 -0
  97. package/es/components/eftposPay/linkly/const.d.ts +23 -0
  98. package/es/components/eftposPay/locales.d.ts +572 -0
  99. package/es/components/eftposPay/locales.js +326 -0
  100. package/es/components/eftposPay/payo/config.d.ts +13 -0
  101. package/es/components/eftposPay/payo/const.d.ts +26 -0
  102. package/es/components/eftposPay/store/index.d.ts +355 -0
  103. package/es/components/eftposPay/tyro/const.d.ts +17 -0
  104. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  105. package/es/components/eftposPay/tyro/index.d.ts +9 -0
  106. package/es/components/eftposPay/windcave/const.d.ts +119 -0
  107. package/es/components/eftposPay/windcave/helper.d.ts +23 -0
  108. package/es/components/eventBooking/components/Voucher/components/locales.d.ts +22 -0
  109. package/es/components/eventBooking/components/Voucher/components/locales.js +22 -0
  110. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  111. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  112. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  113. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  114. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  115. package/es/components/eventBooking/locales.d.ts +408 -0
  116. package/es/components/eventBooking/locales.js +186 -0
  117. package/es/components/kioskSkuDetail/index.js +39 -10
  118. package/es/components/kioskSkuDetail/locales.d.ts +21 -0
  119. package/es/components/kioskSkuDetail/locales.js +24 -3
  120. package/es/components/login/locales.d.ts +38 -0
  121. package/es/components/login/locales.js +14 -0
  122. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
  123. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +2 -0
  124. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +2 -0
  125. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
  126. package/es/components/pay/toC/locales.d.ts +511 -0
  127. package/es/components/pay/toC/locales.js +244 -0
  128. package/es/components/pay/toC/model.d.ts +40 -0
  129. package/es/components/pay/toC/serve.d.ts +2 -0
  130. package/es/components/pinModal/locales.d.ts +43 -0
  131. package/es/components/pinModal/locales.js +16 -0
  132. package/es/components/pinVerifyModal/locales.d.ts +38 -0
  133. package/es/components/pinVerifyModal/locales.js +14 -0
  134. package/es/components/pisellSelectCustomerModal/locales.d.ts +133 -0
  135. package/es/components/pisellSelectCustomerModal/locales.js +52 -0
  136. package/es/components/productExtension/locales.d.ts +78 -0
  137. package/es/components/productExtension/locales.js +30 -0
  138. package/es/components/productSelect/components/pisellPriceText/index.js +8 -4
  139. package/es/components/productSelect/locales.d.ts +38 -0
  140. package/es/components/productSelect/locales.js +23 -3
  141. package/es/components/ruleSetting/locales.d.ts +30 -0
  142. package/es/components/ruleSetting/locales.js +30 -0
  143. package/es/components/schedules/locales.d.ts +143 -0
  144. package/es/components/schedules/locales.js +56 -0
  145. package/es/components/schedules/model.d.ts +9 -1
  146. package/es/components/shoppingCart/locales.d.ts +53 -0
  147. package/es/components/shoppingCart/locales.js +24 -0
  148. package/es/components/shoppingCart/type.d.ts +48 -0
  149. package/es/components/stepController/locales.d.ts +43 -0
  150. package/es/components/stepController/locales.js +20 -0
  151. package/es/components/subTotal/locales.d.ts +68 -0
  152. package/es/components/subTotal/locales.js +26 -0
  153. package/es/components/systemSettings/registry/components/DataSourceTreeSelect/index.d.ts +59 -0
  154. package/es/components/systemSettings/registry/components/DataSourceTreeSelect/index.js +390 -0
  155. package/es/components/systemSettings/registry/components/DataSourceTreeSelect/serve.d.ts +70 -0
  156. package/es/components/systemSettings/registry/components/DataSourceTreeSelect/serve.js +367 -0
  157. package/es/components/systemSettings/registry/components/ItemModal.js +169 -35
  158. package/es/components/systemSettings/registry/components/OptionDataSource/OptionTable.d.ts +8 -0
  159. package/es/components/systemSettings/registry/components/OptionDataSource/OptionTable.js +163 -0
  160. package/es/components/systemSettings/registry/components/OptionDataSource/index.d.ts +10 -0
  161. package/es/components/systemSettings/registry/components/OptionDataSource/index.js +127 -0
  162. package/es/components/systemSettings/registry/components/OptionDataSource/index.less +37 -0
  163. package/es/components/systemSettings/registry/index.js +20 -16
  164. package/es/components/systemSettings/registry/index.less +6 -7
  165. package/es/components/systemSettings/registry/locales.d.ts +525 -0
  166. package/es/components/systemSettings/registry/locales.js +262 -3
  167. package/es/components/systemSettings/registry/services.d.ts +97 -0
  168. package/es/components/systemSettings/registry/types.d.ts +139 -0
  169. package/es/components/taxSelect/locales.d.ts +38 -0
  170. package/es/components/taxSelect/locales.js +14 -0
  171. package/es/components/ticketBooking/locales.d.ts +304 -0
  172. package/es/components/ticketBooking/locales.js +156 -0
  173. package/es/components/ticketBooking/utils/formatTime.d.ts +33 -0
  174. package/es/components/ticketBooking/utils/formatTime.js +8 -2
  175. package/es/components/wallet/utils.d.ts +48 -0
  176. package/es/components/walletList/index.js +10 -0
  177. package/es/components/walletList/locales.d.ts +43 -0
  178. package/es/components/walletList/locales.js +16 -0
  179. package/es/components/walletList/types/index.d.ts +196 -0
  180. package/es/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
  181. package/es/components/workSpaceList/components/Card/constants.d.ts +2 -0
  182. package/es/hooks/useEngineContext.d.ts +11 -0
  183. package/es/hooks/useWindowSize.d.ts +5 -0
  184. package/es/plus/clientCard/locales.d.ts +28 -0
  185. package/es/plus/clientCard/locales.js +10 -0
  186. package/es/plus/clinetSearch/locales.d.ts +178 -0
  187. package/es/plus/clinetSearch/locales.js +70 -0
  188. package/es/plus/contactInfo/locales.d.ts +23 -0
  189. package/es/plus/contactInfo/locales.js +8 -0
  190. package/es/plus/contactInfoModal/locales.d.ts +108 -0
  191. package/es/plus/contactInfoModal/locales.js +42 -0
  192. package/es/plus/orderList/locales.d.ts +246 -0
  193. package/es/plus/orderList/locales.js +274 -0
  194. package/es/plus/productSelect/components/pisellPriceText/index.js +8 -4
  195. package/es/plus/productSelect/locales.d.ts +38 -0
  196. package/es/plus/productSelect/locales.js +23 -3
  197. package/es/plus/saasAttendance/locales.d.ts +591 -0
  198. package/es/plus/saasAttendance/locales.js +234 -0
  199. package/es/plus/saasAttendance/settings/components/MapField.js +4 -2
  200. package/es/plus/saasAttendance/settings/types.d.ts +136 -0
  201. package/es/plus/saasCreateOrganization/locales.d.ts +23 -0
  202. package/es/plus/saasCreateOrganization/locales.js +8 -0
  203. package/es/plus/saasLogin/locales.d.ts +83 -0
  204. package/es/plus/saasLogin/locales.js +32 -0
  205. package/es/plus/saasRegister/locales.d.ts +193 -0
  206. package/es/plus/saasRegister/locales.js +76 -0
  207. package/es/plus/saasRole/locales.d.ts +319 -0
  208. package/es/plus/saasRole/locales.js +126 -0
  209. package/es/plus/saasRole/types.d.ts +177 -0
  210. package/es/plus/saasTeamMembers/locales.d.ts +546 -0
  211. package/es/plus/saasTeamMembers/locales.js +216 -0
  212. package/es/plus/saasTeamMembers/type.d.ts +158 -0
  213. package/es/plus/selectHolder/locales.d.ts +35 -0
  214. package/es/plus/selectHolder/locales.js +17 -5
  215. package/es/plus/skuOptionsSelection/locales.d.ts +20 -0
  216. package/es/plus/skuOptionsSelection/locales.js +20 -0
  217. package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  218. package/es/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +2 -0
  219. package/es/plus/walletEditor/components/sortableWalletPassTypes/index.js +12 -4
  220. package/es/plus/walletEditor/locales.d.ts +223 -0
  221. package/es/plus/walletEditor/locales.js +100 -0
  222. package/es/plus/walletEditor/types.d.ts +54 -0
  223. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +0 -1
  224. package/es/plus/walletPassGallery/components/passDetail/index.js +2 -26
  225. package/es/plus/walletPassGallery/components/passList/index.js +8 -1
  226. package/es/plus/walletPassGallery/index.js +0 -31
  227. package/es/plus/walletPassGallery/locales.d.ts +473 -0
  228. package/es/plus/walletPassGallery/locales.js +192 -0
  229. package/es/plus/walletPassGallery/utils.d.ts +48 -0
  230. package/es/pro/Login2.0/components/PhoneInput.d.ts +53 -0
  231. package/es/pro/Login2.0/locales.d.ts +903 -0
  232. package/es/pro/Login2.0/locales.js +360 -0
  233. package/es/pro/Login2.0/shared/types.d.ts +234 -0
  234. package/es/pro/Selector/Selector.d.ts +1 -1
  235. package/es/pro/Selector/locales.d.ts +22 -0
  236. package/es/pro/Selector/locales.js +58 -0
  237. package/es/pro/comprehensiveSearch/components/searchSection/locales.d.ts +23 -0
  238. package/es/pro/comprehensiveSearch/components/searchSection/locales.js +8 -0
  239. package/es/pro/comprehensiveSearch/locales.d.ts +23 -0
  240. package/es/pro/comprehensiveSearch/locales.js +8 -0
  241. package/es/pro/keyboards/locales.d.ts +14 -0
  242. package/es/pro/keyboards/locales.js +22 -0
  243. package/es/pro/numberKeyboard/locales.d.ts +18 -0
  244. package/es/pro/numberKeyboard/locales.js +6 -0
  245. package/es/pro/pisellPhoneKeyboard/locales.d.ts +18 -0
  246. package/es/pro/pisellPhoneKeyboard/locales.js +6 -0
  247. package/es/test/setup.d.ts +1 -0
  248. package/lib/components/Sales/Summary/utils.d.ts +58 -0
  249. package/lib/components/appointmentBooking/components/Date/state.d.ts +63 -0
  250. package/lib/components/appointmentBooking/components/Date/state.js +3 -1
  251. package/lib/components/appointmentBooking/locales.d.ts +606 -0
  252. package/lib/components/appointmentBooking/locales.js +240 -0
  253. package/lib/components/authentication/admin/AuthMethods/locales.d.ts +413 -0
  254. package/lib/components/authentication/admin/AuthMethods/locales.js +164 -0
  255. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +17 -9
  256. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +138 -0
  257. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +54 -0
  258. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +43 -0
  259. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
  260. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +2 -0
  261. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +118 -0
  262. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +46 -0
  263. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +35 -0
  264. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +14 -6
  265. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +43 -0
  266. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +16 -0
  267. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +10 -2
  268. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +108 -0
  269. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +42 -0
  270. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +28 -0
  271. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +14 -6
  272. package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +63 -0
  273. package/lib/components/authentication/admin/ChannelAuthSetting/locales.js +24 -0
  274. package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +108 -0
  275. package/lib/components/authentication/admin/CustomerAuth/locales.js +42 -0
  276. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +178 -0
  277. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.js +70 -0
  278. package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +93 -0
  279. package/lib/components/authentication/admin/DeviceAuth/locales.js +36 -0
  280. package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +148 -0
  281. package/lib/components/authentication/admin/OAuthConfig/locales.js +58 -0
  282. package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +88 -0
  283. package/lib/components/authentication/admin/OrgAdminAuth/locales.js +34 -0
  284. package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +78 -0
  285. package/lib/components/authentication/admin/POSOperatorAuth/locales.js +30 -0
  286. package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +88 -0
  287. package/lib/components/authentication/admin/SaaSAdminAuth/locales.js +34 -0
  288. package/lib/components/booking/addons/model.d.ts +10 -1
  289. package/lib/components/booking/components/tabPane/index.d.ts +4 -0
  290. package/lib/components/booking/components/voucher/utils.d.ts +4 -0
  291. package/lib/components/booking/editBookingModal/locales.d.ts +33 -0
  292. package/lib/components/booking/editBookingModal/locales.js +12 -0
  293. package/lib/components/booking/editBookingModal/mock.d.ts +991 -0
  294. package/lib/components/booking/editBookingModal/mock.js +22 -0
  295. package/lib/components/booking/editBookingModal/utils.d.ts +12 -0
  296. package/lib/components/booking/forms/model.d.ts +10 -1
  297. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  298. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  299. package/lib/components/booking/info/clientVariant/utils.d.ts +1 -0
  300. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  301. package/lib/components/booking/info/model.d.ts +10 -1
  302. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  303. package/lib/components/booking/info2/service/addService/mock.d.ts +216 -0
  304. package/lib/components/booking/info2/service/addService/mock.js +4 -0
  305. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  306. package/lib/components/booking/info2/service/editService/utils.d.ts +13 -0
  307. package/lib/components/booking/locales.d.ts +628 -0
  308. package/lib/components/booking/locales.js +680 -0
  309. package/lib/components/booking/model.d.ts +9 -1
  310. package/lib/components/booking/notes/addNote/index.d.ts +4 -0
  311. package/lib/components/booking/notes/model.d.ts +10 -1
  312. package/lib/components/booking/payments/model.d.ts +10 -1
  313. package/lib/components/booking/utils.d.ts +2 -2
  314. package/lib/components/ecocup/components/CupInfoCard/index.d.ts +8 -0
  315. package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +5 -0
  316. package/lib/components/ecocup/components/CustomerCard/index.d.ts +7 -0
  317. package/lib/components/ecocup/cupList/const.d.ts +133 -0
  318. package/lib/components/ecocup/cupList/hooks/useCupApi.d.ts +32 -0
  319. package/lib/components/ecocup/cupProject/const.d.ts +7 -0
  320. package/lib/components/ecocup/hooks.d.ts +49 -0
  321. package/lib/components/ecocup/locales.d.ts +563 -0
  322. package/lib/components/ecocup/locales.js +224 -0
  323. package/lib/components/eftpos/const.d.ts +64 -0
  324. package/lib/components/eftpos/device.d.ts +9 -0
  325. package/lib/components/eftpos/hooks.d.ts +33 -0
  326. package/lib/components/eftpos/index.d.ts +47 -0
  327. package/lib/components/eftpos/locales.d.ts +163 -0
  328. package/lib/components/eftpos/locales.js +76 -0
  329. package/lib/components/eftposPay/amount.d.ts +1 -1
  330. package/lib/components/eftposPay/component/fail/unknow.d.ts +10 -0
  331. package/lib/components/eftposPay/const.d.ts +184 -0
  332. package/lib/components/eftposPay/device.d.ts +1 -1
  333. package/lib/components/eftposPay/hooks.d.ts +35 -0
  334. package/lib/components/eftposPay/linkly/const.d.ts +23 -0
  335. package/lib/components/eftposPay/locales.d.ts +572 -0
  336. package/lib/components/eftposPay/locales.js +250 -0
  337. package/lib/components/eftposPay/payo/config.d.ts +13 -0
  338. package/lib/components/eftposPay/payo/const.d.ts +26 -0
  339. package/lib/components/eftposPay/store/index.d.ts +355 -0
  340. package/lib/components/eftposPay/tyro/const.d.ts +17 -0
  341. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  342. package/lib/components/eftposPay/tyro/index.d.ts +9 -0
  343. package/lib/components/eftposPay/windcave/const.d.ts +119 -0
  344. package/lib/components/eftposPay/windcave/helper.d.ts +23 -0
  345. package/lib/components/eventBooking/components/Voucher/components/locales.d.ts +22 -0
  346. package/lib/components/eventBooking/components/Voucher/components/locales.js +22 -0
  347. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  348. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  349. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  350. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  351. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  352. package/lib/components/eventBooking/locales.d.ts +408 -0
  353. package/lib/components/eventBooking/locales.js +162 -0
  354. package/lib/components/kioskSkuDetail/index.js +27 -3
  355. package/lib/components/kioskSkuDetail/locales.d.ts +21 -0
  356. package/lib/components/kioskSkuDetail/locales.js +24 -3
  357. package/lib/components/login/locales.d.ts +38 -0
  358. package/lib/components/login/locales.js +14 -0
  359. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
  360. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +2 -0
  361. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +2 -0
  362. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
  363. package/lib/components/pay/toC/locales.d.ts +511 -0
  364. package/lib/components/pay/toC/locales.js +204 -0
  365. package/lib/components/pay/toC/model.d.ts +40 -0
  366. package/lib/components/pay/toC/serve.d.ts +2 -0
  367. package/lib/components/pinModal/locales.d.ts +43 -0
  368. package/lib/components/pinModal/locales.js +16 -0
  369. package/lib/components/pinVerifyModal/locales.d.ts +38 -0
  370. package/lib/components/pinVerifyModal/locales.js +14 -0
  371. package/lib/components/pisellSelectCustomerModal/locales.d.ts +133 -0
  372. package/lib/components/pisellSelectCustomerModal/locales.js +52 -0
  373. package/lib/components/productExtension/locales.d.ts +78 -0
  374. package/lib/components/productExtension/locales.js +30 -0
  375. package/lib/components/productSelect/components/pisellPriceText/index.js +6 -4
  376. package/lib/components/productSelect/locales.d.ts +38 -0
  377. package/lib/components/productSelect/locales.js +23 -3
  378. package/lib/components/ruleSetting/locales.d.ts +30 -0
  379. package/lib/components/ruleSetting/locales.js +30 -0
  380. package/lib/components/schedules/locales.d.ts +143 -0
  381. package/lib/components/schedules/locales.js +56 -0
  382. package/lib/components/schedules/model.d.ts +9 -1
  383. package/lib/components/shoppingCart/locales.d.ts +53 -0
  384. package/lib/components/shoppingCart/locales.js +20 -0
  385. package/lib/components/shoppingCart/type.d.ts +48 -0
  386. package/lib/components/stepController/locales.d.ts +43 -0
  387. package/lib/components/stepController/locales.js +16 -0
  388. package/lib/components/subTotal/locales.d.ts +68 -0
  389. package/lib/components/subTotal/locales.js +26 -0
  390. package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/index.d.ts +59 -0
  391. package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/index.js +228 -0
  392. package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/serve.d.ts +70 -0
  393. package/lib/components/systemSettings/registry/components/DataSourceTreeSelect/serve.js +195 -0
  394. package/lib/components/systemSettings/registry/components/ItemModal.js +294 -225
  395. package/lib/components/systemSettings/registry/components/OptionDataSource/OptionTable.d.ts +8 -0
  396. package/lib/components/systemSettings/registry/components/OptionDataSource/OptionTable.js +166 -0
  397. package/lib/components/systemSettings/registry/components/OptionDataSource/index.d.ts +10 -0
  398. package/lib/components/systemSettings/registry/components/OptionDataSource/index.js +210 -0
  399. package/lib/components/systemSettings/registry/components/OptionDataSource/index.less +37 -0
  400. package/lib/components/systemSettings/registry/index.js +20 -16
  401. package/lib/components/systemSettings/registry/index.less +6 -7
  402. package/lib/components/systemSettings/registry/locales.d.ts +525 -0
  403. package/lib/components/systemSettings/registry/locales.js +262 -3
  404. package/lib/components/systemSettings/registry/services.d.ts +97 -0
  405. package/lib/components/systemSettings/registry/types.d.ts +139 -0
  406. package/lib/components/taxSelect/locales.d.ts +38 -0
  407. package/lib/components/taxSelect/locales.js +14 -0
  408. package/lib/components/ticketBooking/locales.d.ts +304 -0
  409. package/lib/components/ticketBooking/locales.js +136 -0
  410. package/lib/components/ticketBooking/utils/formatTime.d.ts +33 -0
  411. package/lib/components/ticketBooking/utils/formatTime.js +8 -2
  412. package/lib/components/wallet/utils.d.ts +48 -0
  413. package/lib/components/walletList/index.js +10 -0
  414. package/lib/components/walletList/locales.d.ts +43 -0
  415. package/lib/components/walletList/locales.js +16 -0
  416. package/lib/components/walletList/types/index.d.ts +196 -0
  417. package/lib/components/workSpaceList/components/AppearanceEdit/constants.d.ts +8 -0
  418. package/lib/components/workSpaceList/components/Card/constants.d.ts +2 -0
  419. package/lib/hooks/useEngineContext.d.ts +11 -0
  420. package/lib/hooks/useWindowSize.d.ts +5 -0
  421. package/lib/plus/clientCard/locales.d.ts +28 -0
  422. package/lib/plus/clientCard/locales.js +10 -0
  423. package/lib/plus/clinetSearch/locales.d.ts +178 -0
  424. package/lib/plus/clinetSearch/locales.js +70 -0
  425. package/lib/plus/contactInfo/locales.d.ts +23 -0
  426. package/lib/plus/contactInfo/locales.js +8 -0
  427. package/lib/plus/contactInfoModal/locales.d.ts +108 -0
  428. package/lib/plus/contactInfoModal/locales.js +42 -0
  429. package/lib/plus/orderList/locales.d.ts +246 -0
  430. package/lib/plus/orderList/locales.js +266 -0
  431. package/lib/plus/productSelect/components/pisellPriceText/index.js +6 -4
  432. package/lib/plus/productSelect/locales.d.ts +38 -0
  433. package/lib/plus/productSelect/locales.js +23 -3
  434. package/lib/plus/saasAttendance/locales.d.ts +591 -0
  435. package/lib/plus/saasAttendance/locales.js +210 -0
  436. package/lib/plus/saasAttendance/settings/components/MapField.js +2 -2
  437. package/lib/plus/saasAttendance/settings/types.d.ts +136 -0
  438. package/lib/plus/saasCreateOrganization/locales.d.ts +23 -0
  439. package/lib/plus/saasCreateOrganization/locales.js +8 -0
  440. package/lib/plus/saasLogin/locales.d.ts +83 -0
  441. package/lib/plus/saasLogin/locales.js +32 -0
  442. package/lib/plus/saasRegister/locales.d.ts +193 -0
  443. package/lib/plus/saasRegister/locales.js +76 -0
  444. package/lib/plus/saasRole/locales.d.ts +319 -0
  445. package/lib/plus/saasRole/locales.js +126 -0
  446. package/lib/plus/saasRole/types.d.ts +177 -0
  447. package/lib/plus/saasTeamMembers/locales.d.ts +546 -0
  448. package/lib/plus/saasTeamMembers/locales.js +216 -0
  449. package/lib/plus/saasTeamMembers/type.d.ts +158 -0
  450. package/lib/plus/selectHolder/locales.d.ts +35 -0
  451. package/lib/plus/selectHolder/locales.js +13 -5
  452. package/lib/plus/skuOptionsSelection/locales.d.ts +20 -0
  453. package/lib/plus/skuOptionsSelection/locales.js +20 -0
  454. package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  455. package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +2 -0
  456. package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.js +12 -4
  457. package/lib/plus/walletEditor/locales.d.ts +223 -0
  458. package/lib/plus/walletEditor/locales.js +100 -0
  459. package/lib/plus/walletEditor/types.d.ts +54 -0
  460. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +0 -1
  461. package/lib/plus/walletPassGallery/components/passDetail/index.js +1 -16
  462. package/lib/plus/walletPassGallery/components/passList/index.js +9 -3
  463. package/lib/plus/walletPassGallery/index.js +0 -29
  464. package/lib/plus/walletPassGallery/locales.d.ts +473 -0
  465. package/lib/plus/walletPassGallery/locales.js +192 -0
  466. package/lib/plus/walletPassGallery/utils.d.ts +48 -0
  467. package/lib/pro/Login2.0/components/PhoneInput.d.ts +53 -0
  468. package/lib/pro/Login2.0/locales.d.ts +903 -0
  469. package/lib/pro/Login2.0/locales.js +360 -0
  470. package/lib/pro/Login2.0/shared/types.d.ts +234 -0
  471. package/lib/pro/Selector/Selector.d.ts +1 -1
  472. package/lib/pro/Selector/locales.d.ts +22 -0
  473. package/lib/pro/Selector/locales.js +50 -0
  474. package/lib/pro/comprehensiveSearch/components/searchSection/locales.d.ts +23 -0
  475. package/lib/pro/comprehensiveSearch/components/searchSection/locales.js +8 -0
  476. package/lib/pro/comprehensiveSearch/locales.d.ts +23 -0
  477. package/lib/pro/comprehensiveSearch/locales.js +8 -0
  478. package/lib/pro/keyboards/locales.d.ts +14 -0
  479. package/lib/pro/keyboards/locales.js +14 -0
  480. package/lib/pro/numberKeyboard/locales.d.ts +18 -0
  481. package/lib/pro/numberKeyboard/locales.js +6 -0
  482. package/lib/pro/pisellPhoneKeyboard/locales.d.ts +18 -0
  483. package/lib/pro/pisellPhoneKeyboard/locales.js +6 -0
  484. package/lib/test/setup.d.ts +1 -0
  485. package/lowcode/eco-cup-list/meta.ts +1 -1
  486. package/lowcode/eco-customer-list/meta.ts +1 -1
  487. 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
- { value: "InputNumber", label: "数字输入框(整数模式)" }
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)(values.fieldType, values.default);
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)(values.fieldType, values.default);
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)(values.fieldType, values.default);
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
- if (values.uiSchema) {
291
+ let schema = {};
292
+ if (values == null ? void 0 : values.xCustomUiSchema) {
264
293
  try {
265
- values.uiSchema = JSON.parse(values.uiSchema);
294
+ schema["x-custom-ui-schema"] = JSON.parse(values.xCustomUiSchema);
266
295
  } catch (error) {
267
- throw new Error(`UI Schema格式错误: ${error instanceof Error ? error.message : "未知错误"}`);
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
- form,
298
- layout: "vertical",
299
- requiredMark: true
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
- import_antd.Form.Item,
378
+ import_materials.BaseTranslation,
303
379
  {
304
- name: "name",
305
- label: import_utils.locales.getText("registry.form.name"),
306
- rules: [
307
- {
308
- required: true,
309
- validator: (_, value) => {
310
- if (!value || !value.original) {
311
- return Promise.reject(new Error(import_utils.locales.getText("registry.message.required")));
312
- }
313
- if (value.original.length > 100) {
314
- return Promise.reject(new Error(import_utils.locales.getText("registry.message.name.maxLength")));
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
- placeholder: import_utils.locales.getText("registry.form.name.placeholder"),
325
- type: "text",
326
- renderMode: "edit"
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.Form.Item,
408
+ import_antd.Input,
332
409
  {
333
- name: "key",
334
- label: import_utils.locales.getText("registry.form.key"),
335
- rules: [
336
- {
337
- required: true,
338
- message: import_utils.locales.getText("registry.message.required")
339
- },
340
- {
341
- max: 100,
342
- message: import_utils.locales.getText("registry.message.key.maxLength")
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
- placeholder: import_utils.locales.getText("registry.form.key.placeholder"),
356
- maxLength: 100
421
+ required: true,
422
+ message: import_utils.locales.getText("registry.message.required")
357
423
  }
358
- )
359
- ),
360
- /* @__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(
361
- import_antd.Form.Item,
424
+ ]
425
+ },
426
+ /* @__PURE__ */ import_react.default.createElement(
427
+ import_antd.Select,
362
428
  {
363
- name: "fieldType",
364
- label: import_utils.locales.getText("registry.form.fieldType"),
365
- rules: [
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
- import_antd.Select,
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
- placeholder: import_utils.locales.getText("registry.form.fieldType.placeholder"),
376
- onChange: handleFieldTypeChange
377
- },
378
- fieldTypeOptions.map((option) => /* @__PURE__ */ import_react.default.createElement(Option, { key: option.value, value: option.value }, option.label))
379
- )
380
- )), /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 12 }, /* @__PURE__ */ import_react.default.createElement(
381
- import_antd.Form.Item,
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
- name: "interfaceType",
384
- label: import_utils.locales.getText("registry.form.interfaceType"),
385
- rules: [
386
- {
387
- required: true,
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
- /* @__PURE__ */ import_react.default.createElement(
393
- import_antd.Select,
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.Form.Item,
474
+ import_antd.Checkbox.Group,
403
475
  {
404
- name: "scopes",
405
- label: import_utils.locales.getText("registry.form.scopes"),
406
- rules: [
407
- {
408
- required: true,
409
- message: import_utils.locales.getText("registry.message.required")
410
- }
411
- ]
412
- },
413
- /* @__PURE__ */ import_react.default.createElement(
414
- import_antd.Checkbox.Group,
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
- options: scopeOptions.map((option) => ({
417
- label: import_utils.locales.getText(option.label),
418
- value: option.value
419
- })),
420
- onChange: handleScopesChange
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
- import_antd.Form.Item,
504
+ import_materials.BaseTranslation,
426
505
  {
427
- name: "description",
428
- label: import_utils.locales.getText("registry.form.description"),
429
- rules: [
430
- {
431
- validator: (_, value) => {
432
- if (value && value.original && value.original.length > 500) {
433
- return Promise.reject(new Error(import_utils.locales.getText("registry.message.description.maxLength")));
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
- showSystemDefaultValue && /* @__PURE__ */ import_react.default.createElement(
450
- import_antd.Form.Item,
451
- {
452
- name: "default",
453
- label: import_utils.locales.getText("registry.form.systemDefaultValue"),
454
- rules: [
455
- {
456
- validator: (_, value) => {
457
- if (value === null || value === void 0 || value === "") {
458
- return Promise.resolve();
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
- renderDefaultValueInput(selectedFieldType)
474
- ),
475
- /* @__PURE__ */ import_react.default.createElement(
476
- import_antd.Form.Item,
477
- {
478
- name: "uiSchema",
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;