@pisell/materials 1.0.965 → 1.0.966

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 (309) 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 +160 -144
  7. package/build/lowcode/render/default/view.js +39 -30
  8. package/build/lowcode/view.js +39 -30
  9. package/es/components/appVersionControl/index.d.ts +4 -0
  10. package/es/components/auto-resize-text/auto-text-size-standalone.d.ts +20 -0
  11. package/es/components/auto-resize-text/index.d.ts +6 -0
  12. package/es/components/cardPro/index.d.ts +3 -0
  13. package/es/components/dataSourceComponents/dataSourceForm/BaseForm.js +42 -8
  14. package/es/components/dataSourceComponents/dataSourceForm/serve.d.ts +30 -0
  15. package/es/components/dataSourceComponents/dataSourceForm/serve.js +93 -0
  16. package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.js +43 -20
  17. package/es/components/dataSourceComponents/dataSourceForm/urlUtils.d.ts +36 -0
  18. package/es/components/dataSourceComponents/dataSourceForm/urlUtils.js +129 -0
  19. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +56 -0
  20. package/es/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +8 -0
  21. package/es/components/dataSourceComponents/dataSourceTable/BaseTable.js +1 -0
  22. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +27 -0
  23. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  24. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +5 -0
  25. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +101 -0
  26. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +33 -0
  27. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +85 -0
  28. package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +17 -0
  29. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  30. package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +16 -0
  31. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +25 -0
  32. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  33. package/es/components/dataSourceComponents/fields/Upload/BaseUpload.d.ts +5 -0
  34. package/es/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +5 -0
  35. package/es/components/dataSourceComponents/fields/Upload/index.d.ts +3 -0
  36. package/es/components/dataSourceComponents/fields/Upload/type.d.ts +38 -0
  37. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  38. package/es/components/dataSourceComponents/fields/index.d.ts +11 -11
  39. package/es/components/dataSourceComponents/hooks/useActions.js +20 -14
  40. package/es/components/dataSourceComponents/hooks/usePlatform.d.ts +5 -0
  41. package/es/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +1 -0
  42. package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +15 -0
  43. package/es/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +4 -0
  44. package/es/components/date-picker/index.d.ts +0 -1
  45. package/es/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
  46. package/es/components/drag-sort-tree/index.d.ts +3 -0
  47. package/es/components/filter/types.d.ts +46 -0
  48. package/es/components/hardwareErrorTip/demo.d.ts +3 -0
  49. package/es/components/hardwareErrorTip/errorCard/index.d.ts +28 -0
  50. package/es/components/hardwareErrorTip/errorTipStatistics/index.d.ts +12 -0
  51. package/es/components/hardwareErrorTip/index.d.ts +19 -0
  52. package/es/components/hardwareErrorTip/logCard/index.d.ts +27 -0
  53. package/es/components/hardwareErrorTip/types.d.ts +28 -0
  54. package/es/components/iconfont/index.d.ts +8 -0
  55. package/es/components/iconfont/index.js +1 -1
  56. package/es/components/keyboard/index.d.ts +22 -0
  57. package/es/components/login-and-register/index.d.ts +82 -0
  58. package/es/components/page/index.d.ts +8 -0
  59. package/es/components/pisell-config-provider/context.d.ts +22 -0
  60. package/es/components/pisell-config-provider/index.d.ts +13 -0
  61. package/es/components/pisellAdjustPrice/index.d.ts +4 -0
  62. package/es/components/pisellAdjustPrice/status.d.ts +32 -0
  63. package/es/components/pisellAdjustPrice/type.d.ts +22 -0
  64. package/es/components/pisellCamera/index.d.ts +4 -0
  65. package/es/components/pisellCardList/index.d.ts +107 -0
  66. package/es/components/pisellCheckboxGroup/index.d.ts +40 -0
  67. package/es/components/pisellEmpty/index.d.ts +19 -0
  68. package/es/components/pisellGoodPassCard/index.d.ts +50 -0
  69. package/es/components/pisellQRScanner/index.d.ts +24 -0
  70. package/es/components/pisellQrcode/index.d.ts +10 -0
  71. package/es/components/pisellText/components/Amount/index.d.ts +20 -0
  72. package/es/components/pisellText/components/Editable/index.d.ts +29 -0
  73. package/es/components/pisellText/index.d.ts +9 -0
  74. package/es/components/pisellToast/index.d.ts +17 -0
  75. package/es/components/pisellToast/squareToast/index.d.ts +15 -0
  76. package/es/components/pisellToast/squareToast/methods.d.ts +13 -0
  77. package/es/components/pisellToast/squareToast/renderImperatively.d.ts +29 -0
  78. package/es/components/pisellToast/squareToast/toast.d.ts +25 -0
  79. package/es/components/pisellWalletPassCard/index.d.ts +148 -0
  80. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +3 -0
  81. package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +3 -0
  82. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
  83. package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +3 -0
  84. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +28 -0
  85. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  86. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
  87. package/es/components/productCard/cartSkuCard/components/holders/index.js +6 -1
  88. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
  89. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  90. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
  91. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +12 -0
  92. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
  93. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +46 -0
  94. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
  95. package/es/components/productCard/cartSkuCard/index.d.ts +10 -0
  96. package/es/components/productCard/cartSkuCard/locales.d.ts +99 -0
  97. package/es/components/productCard/components/Action/index.d.ts +3 -0
  98. package/es/components/productCard/components/Header/Actions/index.d.ts +3 -0
  99. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
  100. package/es/components/productCard/components/Header/index.d.ts +3 -0
  101. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  102. package/es/components/productCard/components/Sales/index.d.ts +3 -0
  103. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +3 -0
  104. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
  105. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +18 -0
  106. package/es/components/productCard/components/Time/index.d.ts +3 -0
  107. package/es/components/productCard/index.d.ts +7 -0
  108. package/es/components/productCard/locales.d.ts +84 -0
  109. package/es/components/productCard/status.d.ts +32 -0
  110. package/es/components/productCard/types.d.ts +85 -0
  111. package/es/components/productCard/utils.d.ts +31 -0
  112. package/es/components/select/index.d.ts +9 -0
  113. package/es/components/sortableList/index.d.ts +11 -0
  114. package/es/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +7 -0
  115. package/es/components/table/Actions/component/ExportImport/index.d.ts +7 -0
  116. package/es/components/table/Actions/index.d.ts +17 -0
  117. package/es/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
  118. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  119. package/es/components/table/Gallery/index.d.ts +5 -0
  120. package/es/components/table/Table/AddFieldModal/index.d.ts +4 -0
  121. package/es/components/table/Table/SelectField/index.d.ts +0 -1
  122. package/es/components/table/Table/fields/index.d.ts +0 -1
  123. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  124. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  125. package/es/components/table/Table/index.d.ts +4 -0
  126. package/es/components/table/Table/index.js +7 -3
  127. package/es/components/table/Table/utils.d.ts +167 -0
  128. package/es/components/table/hooks/useTableSetting.d.ts +21 -0
  129. package/es/components/table/hooks/useTransColumns.d.ts +1 -1
  130. package/es/components/table/hooks/useTransColumns.js +1 -1
  131. package/es/components/table/hooks/useTransDataSource.d.ts +12 -0
  132. package/es/components/table/index.d.ts +4 -0
  133. package/es/components/table/index.js +3 -1
  134. package/es/components/table/serve.d.ts +13 -0
  135. package/es/components/table/types.d.ts +270 -0
  136. package/es/components/tabs/index.d.ts +17 -0
  137. package/es/components/translation/index.d.ts +15 -0
  138. package/es/components/versionModal/index.d.ts +24 -0
  139. package/es/components/virtual-keyboard/Amount/index.d.ts +5 -0
  140. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  141. package/es/components/virtual-keyboard/Amount/types.d.ts +44 -0
  142. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +15 -0
  143. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +25 -0
  144. package/es/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  145. package/es/components/virtual-keyboard/Number/index.d.ts +5 -0
  146. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  147. package/es/components/virtual-keyboard/Number/types.d.ts +26 -0
  148. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
  149. package/es/components/virtual-keyboard/index.d.ts +25 -0
  150. package/es/components/virtualInput/BaseVirtualInput/index.d.ts +40 -0
  151. package/es/components/virtualInput/index.d.ts +23 -0
  152. package/es/components/walletCard/index.d.ts +79 -0
  153. package/es/index.d.ts +146 -0
  154. package/es/locales/en-US.d.ts +344 -0
  155. package/es/locales/zh-CN.d.ts +339 -0
  156. package/es/locales/zh-TW.d.ts +339 -0
  157. package/es/utils/index.d.ts +1 -1
  158. package/es/utils/platform.d.ts +1 -1
  159. package/lib/components/appVersionControl/index.d.ts +4 -0
  160. package/lib/components/auto-resize-text/auto-text-size-standalone.d.ts +20 -0
  161. package/lib/components/auto-resize-text/index.d.ts +6 -0
  162. package/lib/components/cardPro/index.d.ts +3 -0
  163. package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.js +20 -2
  164. package/lib/components/dataSourceComponents/dataSourceForm/serve.d.ts +30 -0
  165. package/lib/components/dataSourceComponents/dataSourceForm/serve.js +45 -2
  166. package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.js +16 -1
  167. package/lib/components/dataSourceComponents/dataSourceForm/urlUtils.d.ts +36 -0
  168. package/lib/components/dataSourceComponents/dataSourceForm/urlUtils.js +92 -0
  169. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +56 -0
  170. package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +8 -0
  171. package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.js +1 -0
  172. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +27 -0
  173. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  174. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +5 -0
  175. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +101 -0
  176. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +33 -0
  177. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +85 -0
  178. package/lib/components/dataSourceComponents/fields/Input.Mobile/WithMode.d.ts +17 -0
  179. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  180. package/lib/components/dataSourceComponents/fields/Input.Phone/WithMode.d.ts +16 -0
  181. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +25 -0
  182. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  183. package/lib/components/dataSourceComponents/fields/Upload/BaseUpload.d.ts +5 -0
  184. package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +5 -0
  185. package/lib/components/dataSourceComponents/fields/Upload/index.d.ts +3 -0
  186. package/lib/components/dataSourceComponents/fields/Upload/type.d.ts +38 -0
  187. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
  188. package/lib/components/dataSourceComponents/fields/index.d.ts +11 -11
  189. package/lib/components/dataSourceComponents/hooks/useActions.js +3 -0
  190. package/lib/components/dataSourceComponents/hooks/usePlatform.d.ts +5 -0
  191. package/lib/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +1 -0
  192. package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +15 -0
  193. package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +4 -0
  194. package/lib/components/date-picker/index.d.ts +0 -1
  195. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
  196. package/lib/components/drag-sort-tree/index.d.ts +3 -0
  197. package/lib/components/filter/types.d.ts +46 -0
  198. package/lib/components/hardwareErrorTip/demo.d.ts +3 -0
  199. package/lib/components/hardwareErrorTip/errorCard/index.d.ts +28 -0
  200. package/lib/components/hardwareErrorTip/errorTipStatistics/index.d.ts +12 -0
  201. package/lib/components/hardwareErrorTip/index.d.ts +19 -0
  202. package/lib/components/hardwareErrorTip/logCard/index.d.ts +27 -0
  203. package/lib/components/hardwareErrorTip/types.d.ts +28 -0
  204. package/lib/components/iconfont/index.d.ts +8 -0
  205. package/lib/components/iconfont/index.js +1 -1
  206. package/lib/components/keyboard/index.d.ts +22 -0
  207. package/lib/components/login-and-register/index.d.ts +82 -0
  208. package/lib/components/page/index.d.ts +8 -0
  209. package/lib/components/pisell-config-provider/context.d.ts +22 -0
  210. package/lib/components/pisell-config-provider/index.d.ts +13 -0
  211. package/lib/components/pisellAdjustPrice/index.d.ts +4 -0
  212. package/lib/components/pisellAdjustPrice/status.d.ts +32 -0
  213. package/lib/components/pisellAdjustPrice/type.d.ts +22 -0
  214. package/lib/components/pisellCamera/index.d.ts +4 -0
  215. package/lib/components/pisellCardList/index.d.ts +107 -0
  216. package/lib/components/pisellCheckboxGroup/index.d.ts +40 -0
  217. package/lib/components/pisellEmpty/index.d.ts +19 -0
  218. package/lib/components/pisellGoodPassCard/index.d.ts +50 -0
  219. package/lib/components/pisellQRScanner/index.d.ts +24 -0
  220. package/lib/components/pisellQrcode/index.d.ts +10 -0
  221. package/lib/components/pisellText/components/Amount/index.d.ts +20 -0
  222. package/lib/components/pisellText/components/Editable/index.d.ts +29 -0
  223. package/lib/components/pisellText/index.d.ts +9 -0
  224. package/lib/components/pisellToast/index.d.ts +17 -0
  225. package/lib/components/pisellToast/squareToast/index.d.ts +15 -0
  226. package/lib/components/pisellToast/squareToast/methods.d.ts +13 -0
  227. package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +29 -0
  228. package/lib/components/pisellToast/squareToast/toast.d.ts +25 -0
  229. package/lib/components/pisellWalletPassCard/index.d.ts +148 -0
  230. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +3 -0
  231. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +3 -0
  232. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
  233. package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +3 -0
  234. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +28 -0
  235. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  236. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
  237. package/lib/components/productCard/cartSkuCard/components/holders/index.js +6 -1
  238. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
  239. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  240. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
  241. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +12 -0
  242. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
  243. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +46 -0
  244. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
  245. package/lib/components/productCard/cartSkuCard/index.d.ts +10 -0
  246. package/lib/components/productCard/cartSkuCard/locales.d.ts +99 -0
  247. package/lib/components/productCard/components/Action/index.d.ts +3 -0
  248. package/lib/components/productCard/components/Header/Actions/index.d.ts +3 -0
  249. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
  250. package/lib/components/productCard/components/Header/index.d.ts +3 -0
  251. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  252. package/lib/components/productCard/components/Sales/index.d.ts +3 -0
  253. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +3 -0
  254. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
  255. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +18 -0
  256. package/lib/components/productCard/components/Time/index.d.ts +3 -0
  257. package/lib/components/productCard/index.d.ts +7 -0
  258. package/lib/components/productCard/locales.d.ts +84 -0
  259. package/lib/components/productCard/status.d.ts +32 -0
  260. package/lib/components/productCard/types.d.ts +85 -0
  261. package/lib/components/productCard/utils.d.ts +31 -0
  262. package/lib/components/select/index.d.ts +9 -0
  263. package/lib/components/sortableList/index.d.ts +11 -0
  264. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/function.d.ts +7 -0
  265. package/lib/components/table/Actions/component/ExportImport/index.d.ts +7 -0
  266. package/lib/components/table/Actions/index.d.ts +17 -0
  267. package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
  268. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  269. package/lib/components/table/Gallery/index.d.ts +5 -0
  270. package/lib/components/table/Table/AddFieldModal/index.d.ts +4 -0
  271. package/lib/components/table/Table/SelectField/index.d.ts +0 -1
  272. package/lib/components/table/Table/fields/index.d.ts +0 -1
  273. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  274. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  275. package/lib/components/table/Table/index.d.ts +4 -0
  276. package/lib/components/table/Table/index.js +8 -4
  277. package/lib/components/table/Table/utils.d.ts +167 -0
  278. package/lib/components/table/hooks/useTableSetting.d.ts +21 -0
  279. package/lib/components/table/hooks/useTransColumns.d.ts +1 -1
  280. package/lib/components/table/hooks/useTransColumns.js +1 -1
  281. package/lib/components/table/hooks/useTransDataSource.d.ts +12 -0
  282. package/lib/components/table/index.d.ts +4 -0
  283. package/lib/components/table/index.js +3 -1
  284. package/lib/components/table/serve.d.ts +13 -0
  285. package/lib/components/table/types.d.ts +270 -0
  286. package/lib/components/tabs/index.d.ts +17 -0
  287. package/lib/components/translation/index.d.ts +15 -0
  288. package/lib/components/versionModal/index.d.ts +24 -0
  289. package/lib/components/virtual-keyboard/Amount/index.d.ts +5 -0
  290. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  291. package/lib/components/virtual-keyboard/Amount/types.d.ts +44 -0
  292. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +15 -0
  293. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +25 -0
  294. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  295. package/lib/components/virtual-keyboard/Number/index.d.ts +5 -0
  296. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  297. package/lib/components/virtual-keyboard/Number/types.d.ts +26 -0
  298. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
  299. package/lib/components/virtual-keyboard/index.d.ts +25 -0
  300. package/lib/components/virtualInput/BaseVirtualInput/index.d.ts +40 -0
  301. package/lib/components/virtualInput/index.d.ts +23 -0
  302. package/lib/components/walletCard/index.d.ts +79 -0
  303. package/lib/index.d.ts +146 -0
  304. package/lib/locales/en-US.d.ts +344 -0
  305. package/lib/locales/zh-CN.d.ts +339 -0
  306. package/lib/locales/zh-TW.d.ts +339 -0
  307. package/lib/utils/index.d.ts +1 -1
  308. package/lib/utils/platform.d.ts +1 -1
  309. package/package.json +3 -3
@@ -0,0 +1,339 @@
1
+ declare const _default: {
2
+ 'table-filter-search': string;
3
+ 'table-filter-clear': string;
4
+ 'table-filter-filter': string;
5
+ 'table-filter-min': string;
6
+ 'table-filter-max': string;
7
+ 'table-pagination-previous': string;
8
+ 'table-pagination-next': string;
9
+ 'table-pagination-total': (current: string, total: string) => string;
10
+ 'select-dropdown-render-select-all': string;
11
+ 'select-dropdown-render-search': string;
12
+ 'sort-button-text': string;
13
+ 'sort-oldest-to-newest': string;
14
+ 'sort-newest-to-oldest': string;
15
+ 'sort-a-z': string;
16
+ 'sort-z-a': string;
17
+ 'sort-from-morning-to-night': string;
18
+ 'sort-from-evening-to-morning': string;
19
+ 'sort-0-9': string;
20
+ 'sort-9-0': string;
21
+ 'table-action-filter-button': string;
22
+ 'table-action-filter-quick-filter': string;
23
+ 'table-action-filter-quick-filter-tip': (count: number) => string;
24
+ 'table-action-filter-other-filter': string;
25
+ 'table-action-filter-other-filter-tip': () => string;
26
+ 'table-action-group-by-title': string;
27
+ 'table-action-group-by-title-tip': string;
28
+ 'table-action-column-title': string;
29
+ 'table-column-group-records': string;
30
+ 'table-column-group-lock-tip': string;
31
+ 'table-column-drag-sort-disabled-tip': string;
32
+ 'table-action-filter-no-filter': string;
33
+ 'table-action-range-picker-presets-today': string;
34
+ 'table-action-range-picker-presets-yesterday': string;
35
+ 'table-action-range-picker-presets-last-3-day': string;
36
+ 'table-action-range-picker-presets-last-7-day': string;
37
+ 'table-action-range-picker-presets-last-14-day': string;
38
+ 'table-action-range-picker-presets-last-30-day': string;
39
+ 'table-action-range-picker-presets-last-90-day': string;
40
+ 'virtual-keyboard-time-now': string;
41
+ 'virtual-keyboard-time-ok': string;
42
+ 'batch-editor-batch-edit': string;
43
+ 'batch-editor-actions': string;
44
+ 'batch-editor-remove': string;
45
+ 'batch-editor-price': string;
46
+ 'batch-editor-cancel': string;
47
+ 'batch-editor-search': string;
48
+ 'batch-editor-confirm': string;
49
+ 'batch-editor-batch-remove': string;
50
+ 'batch-editor-what-price': string;
51
+ 'batch-editor-quick-edit': string;
52
+ 'batch-editor-quick-edit-title': (product: string, num: string) => string;
53
+ 'batch-editor-quick-edit-title-2': (product: string) => string;
54
+ 'table-action-export-import-export-success': string;
55
+ 'table-action-export-import-button': string;
56
+ 'table-action-export-import-export-range': string;
57
+ 'table-action-export-import-current-page': string;
58
+ 'table-action-export-import-all-records': string;
59
+ 'table-action-export-import-selected-records': string;
60
+ 'table-action-export-import-selected': string;
61
+ 'table-action-export-import-item': (length: number) => string;
62
+ 'table-action-export-import-product': string;
63
+ 'table-action-export-import-table-text-input-title': string;
64
+ 'table-action-export-import-table-text-input-describe': string;
65
+ 'table-action-export-import-table-error-file': string;
66
+ 'table-action-export-import-import-success': string;
67
+ 'table-action-export-import-import-phone': string;
68
+ 'table-action-export-import-table-success-download': string;
69
+ 'table-action-export-import-table-textimport-product': string;
70
+ 'table-action-export-import-table-text-product-template': string;
71
+ 'table-action-export-import-table-text-click-download': string;
72
+ 'table-action-export-import-table-text-edit-file': string;
73
+ 'table-action-export-import-button-import': string;
74
+ 'table-action-export-import-cancel': string;
75
+ 'table-action-export-import-file-completed': string;
76
+ 'table-action-export-import-file-processing': string;
77
+ 'table-action-export-import-file-pending': string;
78
+ 'table-action-export-import-file-refresh': string;
79
+ 'table-action-export-import-export-title': string;
80
+ 'table-action-export-import-file-hint': string;
81
+ 'table-action-export-import-file-name': string;
82
+ 'table-action-export-import-file-content': string;
83
+ 'table-action-export-import-file-content-all': string;
84
+ 'table-action-export-import-file-content-part': string;
85
+ 'table-action-export-import-file-status': string;
86
+ 'table-action-export-import-file-account': string;
87
+ 'table-action-export-import-file-created': string;
88
+ 'table-action-export-import-file-record': (length: number) => string;
89
+ 'table-action-export-import-import-title': string;
90
+ 'table-action-export-import-log-hint': string;
91
+ 'table-action-export-import-log-name': string;
92
+ 'table-action-export-import-log-result': string;
93
+ 'table-action-export-import-log-ok': (num: number) => string;
94
+ 'table-action-export-import-log-err': (num: number) => string;
95
+ 'table-action-export-import-log-check': string;
96
+ 'table-action-export-import-log-detail-title': string;
97
+ 'table-action-export-import-log-err-log': string;
98
+ 'table-action-export-import-log-copy': string;
99
+ 'table-action-export-import-table-success-copy': string;
100
+ 'drag-sort-tree-unavailable-today-tip': string;
101
+ 'date-picker-today': string;
102
+ 'date-picker-yesterday': string;
103
+ 'date-picker-tomorrow': string;
104
+ 'date-picker-next_monday': string;
105
+ 'date-picker-last_friday': string;
106
+ 'date-picker-first_day_of_this_month': string;
107
+ 'date-picker-last_day_of_this_month': string;
108
+ 'date-picker-first_day_of_next_month': string;
109
+ 'date-picker-last_day_of_last_month': string;
110
+ 'date-picker-invalid-date': string;
111
+ 'date-picker-apply': string;
112
+ 'date-picker-shortcut-custom': string;
113
+ 'pisell-input-copy-success': string;
114
+ 'pisell-input-copy': string;
115
+ 'pisell-empty-description-no-data': string;
116
+ 'pisell-information-entry-input-search': string;
117
+ 'pisell-information-entry-input-confirm': string;
118
+ 'pisell-information-entry-scan-exit': string;
119
+ 'pisell-wallet-pass-card-detail': string;
120
+ 'pisell-wallet-pass-card-edit': string;
121
+ 'pisell-wallet-pass-card-name': string;
122
+ 'pisell-wallet-pass-card-store-name': string;
123
+ 'pisell-wallet-pass-card-balance': string;
124
+ 'pisell-wallet-pass-card-redeem': string;
125
+ 'pisell-wallet-pass-card-code': string;
126
+ 'pisell-wallet-pass-card-valid-to': string;
127
+ 'pisell-wallet-pass-card-valid': string;
128
+ 'pisell-wallet-pass-card-confirm': string;
129
+ 'pisell-wallet-pass-card-cancel': string;
130
+ 'pisell-wallet-pass-card-required': string;
131
+ 'pisell-wallet-pass-card-expireDate': string;
132
+ 'pisell-adjust-price-price-override': string;
133
+ 'pisell-adjust-price-discount': string;
134
+ 'pisell-adjust-price-discount-amount': string;
135
+ 'pisell-adjust-price-discount-percentage': string;
136
+ 'pisell-adjust-price-total-after-discount': string;
137
+ 'pisell-adjust-price-discount-can-be-maximum': string;
138
+ 'pisell-discount-card-title': string;
139
+ 'pisell-discount-card-unit': string;
140
+ 'pisell-discount-card-fixed-amount-prefix': string;
141
+ 'pisell-data-source-table-add': string;
142
+ 'pisell-data-source-table-edit': string;
143
+ 'pisell-data-source-table-detail': string;
144
+ 'pisell-data-source-table-delete': string;
145
+ 'pisell-record-view-available': string;
146
+ 'pisell-record-view-unavailable': string;
147
+ 'pisell-data-source-form-required-message': string;
148
+ 'pisell-data-source-form-email-message': string;
149
+ 'pisell-data-source-form-domain-message': string;
150
+ 'pisell-data-source-form-url-message': string;
151
+ 'pisell-data-source-form-phone-message': string;
152
+ 'pisell-data-source-form-min-length-message': (minLength: number) => string;
153
+ 'pisell-data-source-form-max-length-message': (maxLength: number) => string;
154
+ 'pisell-data-source-form-min-value-message': (minValue: number) => string;
155
+ 'pisell-data-source-form-max-value-message': (maxValue: number) => string;
156
+ 'pisell-data-source-form-mobile-message': string;
157
+ 'pisell-number-format-thousand': string;
158
+ 'pisell-number-format-million': string;
159
+ 'pisell-number-format-billion': string;
160
+ 'walletCard-done': string;
161
+ 'walletCard-qrcode': string;
162
+ 'walletCard-barcode': string;
163
+ 'walletCard-viewPin': string;
164
+ 'pisell-upload-button': string;
165
+ 'pisell-upload-setting-size-error': (maxSize: number) => string;
166
+ 'pisell-upload-setting-type-error': (type: string) => string;
167
+ 'pisell-upload-count-error': (count: number) => string;
168
+ 'pisell-upload-error': (name: string) => string;
169
+ 'pisell-upload-multilingual-title': string;
170
+ 'pisell-upload-multilingual-item-title-original': string;
171
+ 'pisell-upload-multilingual-item-title-en': string;
172
+ 'pisell-upload-multilingual-item-title-zh-CN': string;
173
+ 'pisell-upload-multilingual-item-title-zh-HK': string;
174
+ 'pisell-color-picker-default': string;
175
+ 'pisell-action-get-data': string;
176
+ 'pisell-action-delete-success': string;
177
+ 'pisell-action-delete-failed': string;
178
+ 'walletCard-point': string;
179
+ 'walletCard-rechargeable': string;
180
+ 'walletCard-voucher': string;
181
+ 'walletCard-discount': string;
182
+ 'pisellQrcode-done': string;
183
+ 'pisellQrcode-qrcode': string;
184
+ 'pisell-delete-confirm-title': string;
185
+ 'pisell-delete-confirm-content': string;
186
+ 'pisell-delete-confirm-ok': string;
187
+ 'pisell-delete-confirm-cancel': string;
188
+ 'pisell-design-mode-action-disabled': string;
189
+ 'pisell-translation-original': string;
190
+ 'pisell-version-modal-title': string;
191
+ 'pisell-version-modal-current-version': string;
192
+ 'pisell-version-modal-version': string;
193
+ 'pisell-version-modal-update-notes': string;
194
+ 'pisell-version-modal-patch': string;
195
+ 'pisell-version-modal-minor': string;
196
+ 'pisell-version-modal-major': string;
197
+ 'pisell-version-modal-custom': string;
198
+ 'pisell-version-modal-cancel': string;
199
+ 'pisell-version-modal-confirm': string;
200
+ 'pisell-version-modal-describe-update-notes': string;
201
+ 'pisell-version-modal-version-error': string;
202
+ 'pisell-version-modal-version-required': string;
203
+ 'pisell-version-modal-based-on-version': string;
204
+ 'subdomain-error-too-short': string;
205
+ 'subdomain-error-too-long': string;
206
+ 'subdomain-error-pattern': string;
207
+ 'subdomain-error-numbers-only': string;
208
+ 'subdomain-error-hyphen-ends': string;
209
+ 'subdomain-error-consecutive-hyphens': string;
210
+ 'pisell-icon-select-placeholder': string;
211
+ 'pisell-icon-select-outlined': string;
212
+ 'pisell-icon-select-filled': string;
213
+ 'pisell-icon-select-two-tone': string;
214
+ 'pisell-icon-select-iconfont': string;
215
+ 'pisell-icon-select-search': string;
216
+ 'pisell-icon-select-select': string;
217
+ 'pisell-lowcode-app-version-control-live': string;
218
+ 'pisell-lowcode-app-version-control-draft': string;
219
+ 'pisell-lowcode-app-version-control-deprecated': string;
220
+ 'pisell-lowcode-app-version-control-new-version': string;
221
+ 'pisell-lowcode-app-version-control-promote-to-live': string;
222
+ 'pisell-lowcode-app-version-control-promote-version': (version: string) => string;
223
+ 'pisell-lowcode-app-version-control-promote-version-describe': string;
224
+ 'pisell-lowcode-app-version-control-promote-version-ok': string;
225
+ 'pisell-lowcode-app-version-control-promote-version-cancel': string;
226
+ 'pisell-lowcode-app-version-control-version-exists': string;
227
+ 'pisell-lowcode-app-version-control-version-create-title': string;
228
+ 'pisell-lowcode-drop-sort-add': string;
229
+ 'pisell-lowcode-navigation-menu-add-sub-menu': string;
230
+ 'pisell-lowcode-navigation-menu-add-page': string;
231
+ 'pisell-lowcode-navigation-menu-add-page-tip': string;
232
+ 'pisell-lowcode-navigation-menu-tag-base': string;
233
+ 'pisell-lowcode-navigation-menu-tag-proCode': string;
234
+ 'pisell-lowcode-navigation-menu-tag-pisell1': string;
235
+ 'pisell-lowcode-navigation-menu-tag-group': string;
236
+ 'pisell-lowcode-navigation-menu-tag-sub-menu': string;
237
+ 'pisell-lowcode-navigation-menu-tag-custom': string;
238
+ 'pisell-data-source-form-app-identifier-pattern': string;
239
+ 'pisell-data-source-form-app-identifier-start-with-letter': string;
240
+ 'pisell-data-source-form-app-identifier-special-ends': string;
241
+ 'pisell-data-source-form-app-identifier-consecutive-special': string;
242
+ 'qrscanner-loading': string;
243
+ 'qrscanner-success': string;
244
+ 'qrscanner-success-qrcode': string;
245
+ 'qrscanner-success-barcode': string;
246
+ 'qrscanner-error-upload-image': string;
247
+ 'qrscanner-error-load-failed': string;
248
+ 'qrscanner-error-no-code': string;
249
+ 'qrscanner-error-camera-init': string;
250
+ 'qrscanner-error-process-image': string;
251
+ 'pisell-login-and-register-title': string;
252
+ 'pisell-login-and-register-subtitle': string;
253
+ 'pisell-login-and-register-email-label': string;
254
+ 'pisell-login-and-register-email-placeholder': string;
255
+ 'pisell-login-and-register-password-label': string;
256
+ 'pisell-login-and-register-password-placeholder': string;
257
+ 'pisell-login-and-register-email-error': string;
258
+ 'pisell-login-and-register-email-error-valid': string;
259
+ 'pisell-login-and-register-password-error': string;
260
+ 'pisell-login-and-register-login': string;
261
+ 'pisell-login-and-register-google': string;
262
+ 'pisell-login-and-register-facebook': string;
263
+ 'pisell-login-and-register-apple': string;
264
+ 'pisell-login-and-register-sign-up': string;
265
+ 'pisell-login-and-register-login-tab': string;
266
+ 'pisell-login-and-register-register-tab': string;
267
+ 'pisell-login-and-register-register-email-placeholder': string;
268
+ 'pisell-login-and-register-register-password-placeholder': string;
269
+ 'pisell-login-and-register-register-button-text': string;
270
+ 'pisell-login-and-register-remember-me': string;
271
+ 'pisell-login-and-register-forgot-password': string;
272
+ 'pisell-login-and-register-register-password-error': string;
273
+ 'pisell-login-and-register-register-password-error-valid': string;
274
+ 'pisell2.text.goodpass.product-vouchers': string;
275
+ 'pisell2.text.goodpass.last-settlement': string;
276
+ 'pisell2.text.goodpass.view-more': string;
277
+ 'pisell2.text.goodpass.save': string;
278
+ 'pisell2.text.hardware-error.fatal': string;
279
+ 'pisell2.text.hardware-error.critical': string;
280
+ 'pisell2.text.hardware-error.normal': string;
281
+ 'pisell2.text.hardware-error.info': string;
282
+ 'pisell2.text.hardware-error.error-center': string;
283
+ 'pisell2.text.hardware-error.error-list': string;
284
+ 'pisell2.text.hardware-error.error-code': string;
285
+ 'pisell2.text.hardware-error.time': string;
286
+ 'pisell2.text.hardware-error.error-description': string;
287
+ 'pisell2.text.hardware-error.solution': string;
288
+ 'pisell2.text.hardware-error.info-number': string;
289
+ 'pisell2.text.hardware-error.tip-content': string;
290
+ 'pisell2.text.hardware-error.device.all': string;
291
+ 'pisell2.text.hardware-error.device.printer': string;
292
+ 'pisell2.text.hardware-error.device.barcode-scanner': string;
293
+ 'pisell2.text.hardware-error.device.cds': string;
294
+ 'pisell2.text.hardware-error.device.kds': string;
295
+ 'pisell2.text.hardware-error.device.display': string;
296
+ 'pisell2.text.hardware-error.device.card-reader': string;
297
+ 'pisell2.text.hardware-error.device.till': string;
298
+ 'pisell2.text.hardware-error.device.scale': string;
299
+ 'pisell2.text.hardware-error.error-logs': string;
300
+ 'pisell2.text.hardware-error.all-devices': string;
301
+ 'pisell2.text.hardware-error.all-levels': string;
302
+ 'pisell2.text.hardware-error.debug-info': string;
303
+ 'pisell2.text.hardware-error.important-info': string;
304
+ 'pisell2.text.hardware-error.error-info': string;
305
+ 'pisell2.text.hardware-error.search-logs': string;
306
+ 'pisell2.text.hardware-error.export-logs': string;
307
+ 'pisell2.text.hardware-error.no-errors': string;
308
+ 'pisell2.text.hardware-error.no-logs': string;
309
+ 'pisell-wallet-pass-card-status-used': string;
310
+ 'pisell-wallet-pass-card-status-expired': string;
311
+ 'pisell-wallet-pass-card-status-disabled': string;
312
+ 'pisell-wallet-pass-card-status-conflict': string;
313
+ 'pisell-wallet-pass-card-status-lastPayment': string;
314
+ 'pisell-wallet-pass-card-reset': string;
315
+ 'pisell-wallet-pass-card-done': string;
316
+ 'pisell-list-tab-group-default': string;
317
+ 'pisell-list-empty-text-default': string;
318
+ 'pisell-list-load-more': string;
319
+ 'pisell-list-view-less': string;
320
+ 'pisell-list-pagination-total': (start: number, end: number, total: number) => string;
321
+ 'pisell-list-scroll-down': string;
322
+ 'pisell-list-scroll-right': string;
323
+ 'pisell-list-pagination-page-of': (current: number, total: number) => string;
324
+ 'pisell-list-pagination-previous': string;
325
+ 'pisell-list-pagination-next': string;
326
+ 'pisell-camera-no-camera-accessible': string;
327
+ 'pisell-camera-permission-denied': string;
328
+ 'pisell-camera-switch-camera': string;
329
+ 'pisell-camera-canvas': string;
330
+ 'pisell-camera-checking': string;
331
+ 'pisell-camera-no-camera-desc': string;
332
+ 'pisell-upload-camera-local-files': string;
333
+ 'pisell-upload-camera-capture': string;
334
+ 'pisell-upload-camera-retake': string;
335
+ 'pisell-upload-camera-use': string;
336
+ 'pisell2.wallet-card.add-holder-tip': string;
337
+ 'pisell2.wallet-card.add-holder-button-text': string;
338
+ };
339
+ export default _default;
@@ -1,4 +1,4 @@
1
1
  export declare const isBrowser: boolean;
2
- export declare const getCssNumber: (val: string | number) => string | number;
2
+ export declare const getCssNumber: (val: string | number) => string;
3
3
  export declare function uuid(): string;
4
4
  export * from './mergeWith';
@@ -1 +1 @@
1
- export declare const isMobile: () => any;
1
+ export declare const isMobile: () => boolean;
@@ -0,0 +1,4 @@
1
+ import { AppVersionControlProps } from './types';
2
+ import './index.less';
3
+ declare const AppVersionControl: (props: AppVersionControlProps) => JSX.Element;
4
+ export default AppVersionControl;
@@ -0,0 +1,20 @@
1
+ export declare type Options = {
2
+ mode?: 'oneline' | 'multiline' | 'box' | 'boxoneline' | undefined;
3
+ minFontSizePx?: number | undefined;
4
+ maxFontSizePx?: number | undefined;
5
+ fontSizePrecisionPx?: number | undefined;
6
+ scrollToEnd?: boolean | undefined;
7
+ };
8
+ export declare function updateTextSize({ innerEl, containerEl, mode, minFontSizePx, maxFontSizePx, fontSizePrecisionPx, scrollToEnd, }: Options & {
9
+ innerEl: HTMLElement;
10
+ containerEl: HTMLElement;
11
+ }): void;
12
+ declare type DisconnectableFunction = {
13
+ (): void;
14
+ disconnect: () => void;
15
+ };
16
+ export declare function autoTextSize({ innerEl, containerEl, mode, minFontSizePx, maxFontSizePx, fontSizePrecisionPx, scrollToEnd, }: Options & {
17
+ innerEl: HTMLElement;
18
+ containerEl: HTMLElement;
19
+ }): DisconnectableFunction;
20
+ export {};
@@ -0,0 +1,6 @@
1
+ import React, { DetailedHTMLProps, HTMLAttributes, ReactElement, ReactHTML } from 'react';
2
+ import { Options } from './auto-text-size-standalone';
3
+ export default function AutoResizeText({ mode, minFontSizePx, maxFontSizePx, fontSizePrecisionPx, scrollToEnd, as: Comp, children, ...rest }: Options & {
4
+ as?: keyof ReactHTML | React.ComponentType<any>;
5
+ children?: React.ReactNode;
6
+ } & DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>): ReactElement;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const _default: (props: any) => JSX.Element;
3
+ export default _default;
@@ -43,6 +43,8 @@ var import_form = __toESM(require("../../form"));
43
43
  var import_FormSettingProvider = __toESM(require("./provider/formSetting/FormSettingProvider"));
44
44
  var import_page_header = __toESM(require("../../page-header"));
45
45
  var import_utils = require("./utils");
46
+ var import_serve = require("./serve");
47
+ var import_urlUtils = require("./urlUtils");
46
48
  var import_index = require("./index.less");
47
49
  var BaseForm = (0, import_react.forwardRef)(
48
50
  (props, ref) => {
@@ -83,11 +85,27 @@ var BaseForm = (0, import_react.forwardRef)(
83
85
  }, []);
84
86
  (0, import_react.useImperativeHandle)(ref, () => formRef.current);
85
87
  (0, import_react.useEffect)(() => {
88
+ var _a2;
86
89
  if (["edit", "view"].includes(renderMode || "") && dataSource) {
90
+ if (dataSource == null ? void 0 : dataSource.fromSettingMeta) {
91
+ if (props.__designMode === "design") return;
92
+ const { businessCode, channelCode, includeBoard } = (0, import_urlUtils.getFormSettingParams)();
93
+ const sectionCodes = Array.from(new Set((_a2 = dataSource == null ? void 0 : dataSource.fields) == null ? void 0 : _a2.map((field) => field.name.split(".").shift())));
94
+ (0, import_serve.getFormSettingMetaData)({ sectionCodes, businessCode, channelCode, includeBoard }).then((res) => {
95
+ var _a3;
96
+ const formattedValues = formatInitialValues ? formatInitialValues(res.data) : res.data || {};
97
+ (_a3 = formRef.current) == null ? void 0 : _a3.setFields((0, import_utils.transformFormObjToArrayWithUntouched)({
98
+ ...formattedValues
99
+ }));
100
+ }).catch((error) => {
101
+ console.error("获取formSettingMeta数据失败:", error);
102
+ });
103
+ return;
104
+ }
87
105
  get == null ? void 0 : get.runAsync().then((res) => {
88
- var _a2;
106
+ var _a3;
89
107
  const formattedValues = formatInitialValues ? formatInitialValues(res) : res;
90
- (_a2 = formRef.current) == null ? void 0 : _a2.setFields((0, import_utils.transformFormObjToArrayWithUntouched)(formattedValues));
108
+ (_a3 = formRef.current) == null ? void 0 : _a3.setFields((0, import_utils.transformFormObjToArrayWithUntouched)(formattedValues));
91
109
  });
92
110
  }
93
111
  }, [renderMode, dataSource]);
@@ -146,4 +146,34 @@ export declare const getNocobaseDataList: (allParams: {
146
146
  * 删除nocobase数据
147
147
  */
148
148
  export declare const deleteNocobaseData: (key: string, id: string, headers?: any) => Promise<any>;
149
+ /**
150
+ * 获取formSettingMeta数据
151
+ * @param params 请求参数
152
+ * @param params.sectionCodes 配置段代码数组,如 ['payment']
153
+ * @param params.businessCode 业务代码
154
+ * @param params.channelCode 渠道代码
155
+ * @param params.includeBoard 是否包含board_code参数(当board=1时)
156
+ * @returns Promise<any> 返回设置元数据
157
+ */
158
+ export declare const getFormSettingMetaData: (params: {
159
+ sectionCodes: string[];
160
+ businessCode?: string | undefined;
161
+ channelCode?: string | undefined;
162
+ includeBoard?: boolean | undefined;
163
+ }) => Promise<any>;
164
+ /**
165
+ * 更新租户设置数据
166
+ * @param params 请求参数
167
+ * @param params.businessCode 业务代码
168
+ * @param params.channelCode 渠道代码
169
+ * @param params.boardCode 板块代码
170
+ * @param params.data 要更新的数据对象,如 {"order.prefix":"","order.suffix":"","payment.number":""}
171
+ * @returns Promise<any> 返回更新结果
172
+ */
173
+ export declare const updateTenantSetting: (params: {
174
+ business_code?: string | undefined;
175
+ channel_code?: string | undefined;
176
+ board_code?: string | undefined;
177
+ data: Record<string, any>;
178
+ }) => Promise<any>;
149
179
  export {};
@@ -22,12 +22,14 @@ __export(serve_exports, {
22
22
  createNocobaseData: () => createNocobaseData,
23
23
  customApi: () => customApi,
24
24
  deleteNocobaseData: () => deleteNocobaseData,
25
+ getFormSettingMetaData: () => getFormSettingMetaData,
25
26
  getNocobaseData: () => getNocobaseData,
26
27
  getNocobaseDataList: () => getNocobaseDataList,
27
28
  getNocobaseDataSource: () => getNocobaseDataSource,
28
29
  getNocobaseDataSourceOptions: () => getNocobaseDataSourceOptions,
29
30
  getNocobaseMainDataSource: () => getNocobaseMainDataSource,
30
- updateNocobaseData: () => updateNocobaseData
31
+ updateNocobaseData: () => updateNocobaseData,
32
+ updateTenantSetting: () => updateTenantSetting
31
33
  });
32
34
  module.exports = __toCommonJS(serve_exports);
33
35
  var import_utils = require("../../table/utils");
@@ -137,15 +139,56 @@ var deleteNocobaseData = async (key, id, headers) => {
137
139
  }
138
140
  );
139
141
  };
142
+ var getFormSettingMetaData = async (params) => {
143
+ console.log("getFormSettingMetaData", params);
144
+ const { sectionCodes, businessCode, channelCode, includeBoard } = params;
145
+ const queryParams = new URLSearchParams();
146
+ sectionCodes.forEach((code) => {
147
+ queryParams.append("section_code[]", code);
148
+ });
149
+ if (businessCode) {
150
+ queryParams.append("business_code", businessCode);
151
+ }
152
+ if (channelCode) {
153
+ queryParams.append("channel_code", channelCode);
154
+ }
155
+ if (includeBoard && businessCode && channelCode) {
156
+ queryParams.append("board_code", `${businessCode}×${channelCode}`);
157
+ }
158
+ const url = `/tenant/setting?${queryParams.toString()}`;
159
+ return import_utils.request.getRequest().get(url, {}, {
160
+ headers: {
161
+ "Content-Type": "application/json"
162
+ }
163
+ });
164
+ };
165
+ var updateTenantSetting = async (params) => {
166
+ console.log("updateTenantSetting", params);
167
+ const { business_code, channel_code, board_code, data } = params;
168
+ const requestBody = {
169
+ business_code,
170
+ channel_code,
171
+ board_code,
172
+ data
173
+ };
174
+ const url = "/tenant/setting";
175
+ return import_utils.request.getRequest().post(url, requestBody, {
176
+ headers: {
177
+ "Content-Type": "application/json"
178
+ }
179
+ });
180
+ };
140
181
  // Annotate the CommonJS export names for ESM import in node:
141
182
  0 && (module.exports = {
142
183
  createNocobaseData,
143
184
  customApi,
144
185
  deleteNocobaseData,
186
+ getFormSettingMetaData,
145
187
  getNocobaseData,
146
188
  getNocobaseDataList,
147
189
  getNocobaseDataSource,
148
190
  getNocobaseDataSourceOptions,
149
191
  getNocobaseMainDataSource,
150
- updateNocobaseData
192
+ updateNocobaseData,
193
+ updateTenantSetting
151
194
  });
@@ -41,7 +41,9 @@ var import_useFormSetting = __toESM(require("../provider/hooks/useFormSetting"))
41
41
  var import_useCtxActions = __toESM(require("../../hooks/useCtxActions"));
42
42
  var import_useDataSource = __toESM(require("../../hooks/useDataSource"));
43
43
  var import_utils = require("../utils");
44
+ var import_urlUtils = require("../urlUtils");
44
45
  var import_index = require("./index.less");
46
+ var import_serve = require("../serve");
45
47
  var SubmitButton = (props) => {
46
48
  const {
47
49
  children,
@@ -60,11 +62,23 @@ var SubmitButton = (props) => {
60
62
  const form = import_antd.Form.useFormInstance();
61
63
  const { renderMode, onDataSourceFinish, formatSubmitValues, customSubmit } = (0, import_useFormSetting.default)();
62
64
  const { setVisible, refreshTableData } = (0, import_useCtxActions.default)();
63
- const { create, update } = (0, import_useDataSource.default)();
65
+ const { create, update, dataSource } = (0, import_useDataSource.default)();
64
66
  const isDisabled = status === "disabled";
65
67
  const onSubmit = async (values) => {
66
68
  setLoading(true);
67
69
  try {
70
+ if (dataSource == null ? void 0 : dataSource.fromSettingMeta) {
71
+ const urlParams = (0, import_urlUtils.getUrlParams)();
72
+ const business_code = urlParams.business_code;
73
+ const channel_code = urlParams.channel_code;
74
+ const board_code = urlParams.isBoard === "1" && channel_code && channel_code ? `${business_code}x${channel_code}` : void 0;
75
+ return await (0, import_serve.updateTenantSetting)({
76
+ business_code,
77
+ channel_code,
78
+ board_code,
79
+ data: values
80
+ });
81
+ }
68
82
  if (customSubmit) {
69
83
  return await customSubmit(values);
70
84
  }
@@ -138,6 +152,7 @@ var SubmitButton = (props) => {
138
152
  }
139
153
  (0, import_utils.setFormFieldsUntouched)(form);
140
154
  } catch (error) {
155
+ debugger;
141
156
  (0, import_pisellToast.default)({
142
157
  content: `${error.message}`
143
158
  });
@@ -0,0 +1,36 @@
1
+ /**
2
+ * URL参数处理工具方法
3
+ */
4
+ /**
5
+ * 从浏览器URL获取查询参数
6
+ * @returns Record<string, string> URL查询参数对象
7
+ */
8
+ export declare const getUrlParams: () => Record<string, string>;
9
+ /**
10
+ * 从URL参数中提取formSettingMeta相关的参数
11
+ * @param urlParams URL查询参数对象,如果不传则自动从浏览器获取
12
+ * @returns 包含business_code、channel_code和board相关参数的对象
13
+ */
14
+ export declare const getFormSettingParams: (urlParams?: Record<string, string>) => {
15
+ businessCode: string;
16
+ channelCode: string;
17
+ board: string;
18
+ includeBoard: boolean;
19
+ isBoard: string;
20
+ };
21
+ /**
22
+ * 保存formSettingMeta数据
23
+ * @param sectionCodes 配置段代码数组,如 ['payment']
24
+ * @param data 要保存的数据
25
+ * @param businessCode 业务代码
26
+ * @param channelCode 渠道代码
27
+ * @param includeBoard 是否包含board_code参数
28
+ * @returns Promise<any> 返回保存结果
29
+ */
30
+ export declare const saveFormSettingMeta: (sectionCodes: string[], data: Record<string, any>, businessCode: string, channelCode: string, includeBoard: boolean) => Promise<any>;
31
+ /**
32
+ * 根据URL参数更新租户设置数据
33
+ * @param data 要更新的数据对象,如 {"order.prefix":"","order.suffix":"","payment.number":""}
34
+ * @returns Promise<any> 返回更新结果
35
+ */
36
+ export declare const updateTenantSettingFromUrl: (data: Record<string, any>) => Promise<any>;