@pisell/materials 3.3.75 → 3.3.77

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 (502) 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 +5 -5
  6. package/build/lowcode/preview.css +1 -1
  7. package/build/lowcode/preview.js +10 -19
  8. package/build/lowcode/render/default/view.js +45 -31
  9. package/build/lowcode/view.js +45 -31
  10. package/es/components/DragSortList/index.d.ts +1 -1
  11. package/es/components/MultipleContainersSortList/index.d.ts +1 -1
  12. package/es/components/Pagination/index.d.ts +2 -2
  13. package/es/components/appVersionControl/index.d.ts +1 -2
  14. package/es/components/auto-complete-number/index.d.ts +2 -2
  15. package/es/components/badge/index.d.ts +2 -2
  16. package/es/components/batch-editor/fields/Image/index.d.ts +1 -1
  17. package/es/components/batch-editor/fields/Text/index.d.ts +1 -1
  18. package/es/components/batch-editor/fields/index.d.ts +3 -2
  19. package/es/components/batch-editor/index.d.ts +2 -2
  20. package/es/components/browserSelect/index.d.ts +1 -1
  21. package/es/components/calendar/index.d.ts +2 -1
  22. package/es/components/cardMetricItem/index.d.ts +1 -1
  23. package/es/components/cardPro/index.d.ts +1 -2
  24. package/es/components/checkbox/index.d.ts +2 -1
  25. package/es/components/classicLayout/index.d.ts +2 -2
  26. package/es/components/colorPicker/index.d.ts +2 -2
  27. package/es/components/config-provider/index.d.ts +2 -2
  28. package/es/components/customSelect/index.d.ts +1 -1
  29. package/es/components/dataSourceComponents/dataSourceForm/formItem.d.ts +2 -2
  30. package/es/components/dataSourceComponents/dataSourceForm/group/index.d.ts +1 -1
  31. package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +16 -0
  32. package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +8 -0
  33. package/es/components/dataSourceComponents/dataSourceForm/serve.d.ts +179 -0
  34. package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +1 -1
  35. package/es/components/dataSourceComponents/dataSourceForm/type.d.ts +32 -0
  36. package/es/components/dataSourceComponents/dataSourceForm/urlUtils.d.ts +24 -0
  37. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +3 -3
  38. package/es/components/dataSourceComponents/dataSourceMenu/index.d.ts +1 -1
  39. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -2
  40. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -1
  41. package/es/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.d.ts +2 -2
  42. package/es/components/dataSourceComponents/dataSourceShow/utils.d.ts +1 -1
  43. package/es/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +2 -2
  44. package/es/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +3 -3
  45. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
  46. package/es/components/dataSourceComponents/dataSourceTable/hooks/useFormat.d.ts +3 -3
  47. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  48. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +6 -5
  49. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +84 -0
  50. package/es/components/dataSourceComponents/dataSourceWrapper/BaseWrapper.d.ts +1 -1
  51. package/es/components/dataSourceComponents/dataSourceWrapper/index.d.ts +2 -2
  52. package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +2 -2
  53. package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +2 -2
  54. package/es/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +2 -2
  55. package/es/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +2 -2
  56. package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +2 -2
  57. package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +2 -2
  58. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  59. package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +2 -2
  60. package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +2 -2
  61. package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +2 -2
  62. package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +2 -2
  63. package/es/components/dataSourceComponents/fields/Select/index.d.ts +2 -2
  64. package/es/components/dataSourceComponents/fields/Switch/ReadPretty.d.ts +5 -0
  65. package/es/components/dataSourceComponents/fields/Switch/type.d.ts +16 -0
  66. package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +2 -2
  67. package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +5 -0
  68. package/es/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +2 -2
  69. package/es/components/dataSourceComponents/fields/Translation/type.d.ts +16 -0
  70. package/es/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +2 -2
  71. package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +2 -2
  72. package/es/components/dataSourceComponents/fields/index.d.ts +4 -4
  73. package/es/components/dataSourceComponents/hooks/useActions.d.ts +5 -5
  74. package/es/components/dataSourceComponents/hooks/useParseActionsVariable.d.ts +3 -8
  75. package/es/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +120 -0
  76. package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +12 -0
  77. package/es/components/date-picker/datePickerCpt.d.ts +2 -2
  78. package/es/components/date-picker/index.d.ts +1 -1
  79. package/es/components/drag-sort-tree/TreeItem/index.d.ts +1 -2
  80. package/es/components/drag-sort-tree/index.d.ts +4 -0
  81. package/es/components/dropdown/index.d.ts +2 -2
  82. package/es/components/filter/components/items/index.d.ts +7 -6
  83. package/es/components/filter/components/items/text/Editor/index.d.ts +2 -1
  84. package/es/components/filter/components/items/text/Preview/index.d.ts +2 -1
  85. package/es/components/filter/components/items/text/index.d.ts +3 -2
  86. package/es/components/filter/index.d.ts +2 -2
  87. package/es/components/list/index.d.ts +2 -2
  88. package/es/components/login-and-register/index.d.ts +82 -0
  89. package/es/components/lowCodePage/index.d.ts +2 -2
  90. package/es/components/page/index.d.ts +1 -2
  91. package/es/components/page-header/index.d.ts +1 -1
  92. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +2 -2
  93. package/es/components/pisellAdjustPrice/index.d.ts +1 -2
  94. package/es/components/pisellAlert/index.d.ts +1 -1
  95. package/es/components/pisellCard/index.d.ts +2 -2
  96. package/es/components/pisellCheckboxGroup/index.d.ts +1 -1
  97. package/es/components/pisellCountdown/index.d.ts +1 -1
  98. package/es/components/pisellDatePicker/datePickerCpt.d.ts +1 -2
  99. package/es/components/pisellDatePicker/index.d.ts +1 -1
  100. package/es/components/pisellDraggable/components/Remove/Remove.d.ts +2 -2
  101. package/es/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +1 -1
  102. package/es/components/pisellDraggable/index.d.ts +2 -2
  103. package/es/components/pisellDropSort/components/SortableItem/index.d.ts +1 -1
  104. package/es/components/pisellEmpty/index.d.ts +1 -1
  105. package/es/components/pisellFloatingPanel/index.d.ts +1 -1
  106. package/es/components/pisellGoodPassCard/index.d.ts +1 -1
  107. package/es/components/pisellInformationEntry/Input/index.d.ts +1 -1
  108. package/es/components/pisellInformationEntry/Scan/index.d.ts +2 -2
  109. package/es/components/pisellInformationEntry/index.d.ts +1 -1
  110. package/es/components/pisellInput/components/BankCard/index.d.ts +1 -2
  111. package/es/components/pisellInput/components/Copy/index.d.ts +1 -2
  112. package/es/components/pisellInput/components/SecurityCode/index.d.ts +1 -2
  113. package/es/components/pisellInput/index.d.ts +4 -5
  114. package/es/components/pisellLoading/index.d.ts +2 -2
  115. package/es/components/pisellModal/components/Information/index.d.ts +1 -1
  116. package/es/components/pisellModal/components/IpadModal/index.d.ts +2 -2
  117. package/es/components/pisellModal/components/MobileModal/index.d.ts +2 -2
  118. package/es/components/pisellModal/components/PcModal/index.d.ts +1 -1
  119. package/es/components/pisellModal/components/index.d.ts +3 -3
  120. package/es/components/pisellModal/index.d.ts +2 -2
  121. package/es/components/pisellRow/index.d.ts +1 -1
  122. package/es/components/pisellStatisticList/index.d.ts +1 -1
  123. package/es/components/pisellTags/index.d.ts +1 -1
  124. package/es/components/pisellText/components/Amount/index.d.ts +1 -1
  125. package/es/components/pisellText/index.d.ts +2 -2
  126. package/es/components/pisellTooltip/index.d.ts +1 -2
  127. package/es/components/pisellUpload/index.d.ts +2 -2
  128. package/es/components/pisellWalletPassCard/index.d.ts +1 -2
  129. package/es/components/productCard/components/Action/index.d.ts +1 -2
  130. package/es/components/productCard/components/AmountFooter/index.d.ts +2 -2
  131. package/es/components/productCard/components/AmountFooter/index.js +4 -2
  132. package/es/components/productCard/components/Divider/index.d.ts +2 -2
  133. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
  134. package/es/components/productCard/components/Header/EditButton/index.d.ts +2 -2
  135. package/es/components/productCard/components/Header/index.d.ts +1 -2
  136. package/es/components/productCard/components/MultiDay/index.d.ts +2 -2
  137. package/es/components/productCard/components/Note/index.d.ts +2 -2
  138. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +2 -2
  139. package/es/components/productCard/components/Packages/components/options/index.d.ts +2 -2
  140. package/es/components/productCard/components/Packages/index.d.ts +2 -2
  141. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  142. package/es/components/productCard/components/Sales/index.d.ts +1 -2
  143. package/es/components/productCard/components/Time/components/Like/index.d.ts +2 -2
  144. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +2 -2
  145. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +1 -2
  146. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +2 -2
  147. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +1 -2
  148. package/es/components/productCard/components/Time/index.d.ts +1 -2
  149. package/es/components/qrcode/index.d.ts +2 -2
  150. package/es/components/radio/index.d.ts +2 -1
  151. package/es/components/section-footers/index.d.ts +1 -1
  152. package/es/components/segmented/index.d.ts +2 -2
  153. package/es/components/select-time/RightPanel/index.d.ts +2 -2
  154. package/es/components/select-time/index.d.ts +2 -2
  155. package/es/components/skeleton/index.d.ts +2 -1
  156. package/es/components/slider/index.d.ts +2 -2
  157. package/es/components/sort/components/InlineMenu/index.d.ts +2 -2
  158. package/es/components/table/Actions/component/ColumnsSetting/PopoverContent.d.ts +1 -1
  159. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +2 -2
  160. package/es/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -2
  161. package/es/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -2
  162. package/es/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -2
  163. package/es/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +1 -2
  164. package/es/components/table/Actions/component/ExportImport/index.d.ts +1 -2
  165. package/es/components/table/Actions/component/GallerySetting/index.d.ts +2 -2
  166. package/es/components/table/Actions/component/Group/PopoverContent.d.ts +2 -2
  167. package/es/components/table/Actions/component/Group/index.d.ts +2 -2
  168. package/es/components/table/Actions/component/ViewMode/index.d.ts +1 -2
  169. package/es/components/table/Actions/index.d.ts +2 -2
  170. package/es/components/table/BasicTable/index.d.ts +2 -2
  171. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +2 -2
  172. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +2 -2
  173. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +2 -2
  174. package/es/components/table/Gallery/components/GalleryItem/index.d.ts +1 -1
  175. package/es/components/table/Gallery/components/VirtualGrid/index.d.ts +1 -1
  176. package/es/components/table/Gallery/index.d.ts +1 -1
  177. package/es/components/table/Header/index.d.ts +1 -1
  178. package/es/components/table/Summary/index.d.ts +2 -2
  179. package/es/components/table/Table/SelectField/index.d.ts +2 -2
  180. package/es/components/table/Table/fields/date/Config/index.d.ts +2 -2
  181. package/es/components/table/Table/fields/date/Show/index.d.ts +2 -2
  182. package/es/components/table/Table/fields/date/Sort/index.d.ts +2 -2
  183. package/es/components/table/Table/fields/date/index.d.ts +3 -3
  184. package/es/components/table/Table/fields/image/Config/index.d.ts +2 -2
  185. package/es/components/table/Table/fields/image/Show/index.d.ts +2 -2
  186. package/es/components/table/Table/fields/image/Sort/index.d.ts +2 -2
  187. package/es/components/table/Table/fields/image/index.d.ts +3 -3
  188. package/es/components/table/Table/fields/index.d.ts +75 -75
  189. package/es/components/table/Table/fields/link/Config/index.d.ts +2 -2
  190. package/es/components/table/Table/fields/link/Show/index.d.ts +2 -2
  191. package/es/components/table/Table/fields/link/Sort/index.d.ts +2 -2
  192. package/es/components/table/Table/fields/link/index.d.ts +3 -3
  193. package/es/components/table/Table/fields/number/Config/index.d.ts +2 -2
  194. package/es/components/table/Table/fields/number/Show/index.d.ts +2 -2
  195. package/es/components/table/Table/fields/number/Sort/index.d.ts +2 -2
  196. package/es/components/table/Table/fields/number/index.d.ts +3 -3
  197. package/es/components/table/Table/fields/numberRange/Config/index.d.ts +2 -2
  198. package/es/components/table/Table/fields/numberRange/Show/index.d.ts +2 -2
  199. package/es/components/table/Table/fields/numberRange/Sort/index.d.ts +2 -2
  200. package/es/components/table/Table/fields/numberRange/index.d.ts +3 -3
  201. package/es/components/table/Table/fields/oldRangePicker/Config/index.d.ts +2 -2
  202. package/es/components/table/Table/fields/oldRangePicker/Show/index.d.ts +2 -2
  203. package/es/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +2 -2
  204. package/es/components/table/Table/fields/oldRangePicker/index.d.ts +3 -3
  205. package/es/components/table/Table/fields/pSwitch/Config/index.d.ts +2 -2
  206. package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +2 -2
  207. package/es/components/table/Table/fields/pSwitch/Sort/index.d.ts +2 -2
  208. package/es/components/table/Table/fields/pSwitch/index.d.ts +3 -3
  209. package/es/components/table/Table/fields/rangePicker/Config/index.d.ts +2 -2
  210. package/es/components/table/Table/fields/rangePicker/Show/index.d.ts +2 -2
  211. package/es/components/table/Table/fields/rangePicker/Sort/index.d.ts +2 -2
  212. package/es/components/table/Table/fields/rangePicker/index.d.ts +3 -3
  213. package/es/components/table/Table/fields/search/Config/index.d.ts +2 -2
  214. package/es/components/table/Table/fields/search/Show/index.d.ts +2 -2
  215. package/es/components/table/Table/fields/search/Sort/index.d.ts +2 -2
  216. package/es/components/table/Table/fields/search/index.d.ts +3 -3
  217. package/es/components/table/Table/fields/select/Config/index.d.ts +2 -2
  218. package/es/components/table/Table/fields/select/Show/index.d.ts +2 -2
  219. package/es/components/table/Table/fields/select/Sort/index.d.ts +2 -2
  220. package/es/components/table/Table/fields/select/index.d.ts +4 -3
  221. package/es/components/table/Table/fields/text/Config/index.d.ts +2 -2
  222. package/es/components/table/Table/fields/text/Show/index.d.ts +2 -2
  223. package/es/components/table/Table/fields/text/Sort/index.d.ts +2 -2
  224. package/es/components/table/Table/fields/text/index.d.ts +3 -3
  225. package/es/components/table/Table/fields/treeSelect/Config/index.d.ts +2 -2
  226. package/es/components/table/Table/fields/treeSelect/Show/index.d.ts +2 -2
  227. package/es/components/table/Table/fields/treeSelect/Sort/index.d.ts +2 -2
  228. package/es/components/table/Table/fields/treeSelect/index.d.ts +4 -3
  229. package/es/components/table/Table/tableConfig/SortRow/index.d.ts +2 -2
  230. package/es/components/table/Table/tableConfig/summary/index.d.ts +2 -2
  231. package/es/components/table/Table/utils.d.ts +1 -1
  232. package/es/components/table/TableFilter/SortIcon.d.ts +2 -2
  233. package/es/components/table/View/index.d.ts +2 -2
  234. package/es/components/table/hooks/useMergeColumnSetting.d.ts +1 -1
  235. package/es/components/table/hooks/useTableSetting.d.ts +1 -1
  236. package/es/components/table/model.d.ts +1 -1
  237. package/es/components/table/types.d.ts +268 -0
  238. package/es/components/tabs/index.d.ts +2 -2
  239. package/es/components/time-picker/index.d.ts +2 -1
  240. package/es/components/upload/index.d.ts +2 -1
  241. package/es/components/versionSelect/index.d.ts +2 -2
  242. package/es/components/virtual-keyboard/Amount/index.d.ts +1 -1
  243. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +1 -2
  244. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +1 -1
  245. package/es/components/virtual-keyboard/Keyboard/index.d.ts +1 -1
  246. package/es/components/virtual-keyboard/Number/index.d.ts +1 -2
  247. package/es/components/virtual-keyboard/Time/index.d.ts +1 -1
  248. package/es/components/virtual-keyboard/Time/utils.d.ts +2 -1
  249. package/es/components/virtual-keyboard/VirtualInput/index.d.ts +1 -1
  250. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +1 -2
  251. package/es/components/virtual-keyboard/index.d.ts +1 -1
  252. package/es/components/walletCard/Guest/index.d.ts +2 -2
  253. package/es/components/walletCard/Guide/index.d.ts +2 -2
  254. package/es/utils/hoc.d.ts +5 -5
  255. package/es/utils/miniRedux.d.ts +1 -1
  256. package/lib/components/DragSortList/index.d.ts +1 -1
  257. package/lib/components/MultipleContainersSortList/index.d.ts +1 -1
  258. package/lib/components/Pagination/index.d.ts +2 -2
  259. package/lib/components/appVersionControl/index.d.ts +1 -2
  260. package/lib/components/auto-complete-number/index.d.ts +2 -2
  261. package/lib/components/badge/index.d.ts +2 -2
  262. package/lib/components/batch-editor/fields/Image/index.d.ts +1 -1
  263. package/lib/components/batch-editor/fields/Text/index.d.ts +1 -1
  264. package/lib/components/batch-editor/fields/index.d.ts +3 -2
  265. package/lib/components/batch-editor/index.d.ts +2 -2
  266. package/lib/components/browserSelect/index.d.ts +1 -1
  267. package/lib/components/calendar/index.d.ts +2 -1
  268. package/lib/components/cardMetricItem/index.d.ts +1 -1
  269. package/lib/components/cardPro/index.d.ts +1 -2
  270. package/lib/components/checkbox/index.d.ts +2 -1
  271. package/lib/components/classicLayout/index.d.ts +2 -2
  272. package/lib/components/colorPicker/index.d.ts +2 -2
  273. package/lib/components/config-provider/index.d.ts +2 -2
  274. package/lib/components/customSelect/index.d.ts +1 -1
  275. package/lib/components/dataSourceComponents/dataSourceForm/formItem.d.ts +2 -2
  276. package/lib/components/dataSourceComponents/dataSourceForm/group/index.d.ts +1 -1
  277. package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +16 -0
  278. package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +8 -0
  279. package/lib/components/dataSourceComponents/dataSourceForm/serve.d.ts +179 -0
  280. package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +1 -1
  281. package/lib/components/dataSourceComponents/dataSourceForm/type.d.ts +32 -0
  282. package/lib/components/dataSourceComponents/dataSourceForm/urlUtils.d.ts +24 -0
  283. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +3 -3
  284. package/lib/components/dataSourceComponents/dataSourceMenu/index.d.ts +1 -1
  285. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +1 -2
  286. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +1 -1
  287. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceTypography/index.d.ts +2 -2
  288. package/lib/components/dataSourceComponents/dataSourceShow/utils.d.ts +1 -1
  289. package/lib/components/dataSourceComponents/dataSourceTable/filter/index.d.ts +2 -2
  290. package/lib/components/dataSourceComponents/dataSourceTable/filter/utils.d.ts +3 -3
  291. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +1 -0
  292. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useFormat.d.ts +3 -3
  293. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  294. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +6 -5
  295. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +84 -0
  296. package/lib/components/dataSourceComponents/dataSourceWrapper/BaseWrapper.d.ts +1 -1
  297. package/lib/components/dataSourceComponents/dataSourceWrapper/index.d.ts +2 -2
  298. package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +2 -2
  299. package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +2 -2
  300. package/lib/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +2 -2
  301. package/lib/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +2 -2
  302. package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +2 -2
  303. package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +2 -2
  304. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  305. package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +2 -2
  306. package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +2 -2
  307. package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +2 -2
  308. package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +2 -2
  309. package/lib/components/dataSourceComponents/fields/Select/index.d.ts +2 -2
  310. package/lib/components/dataSourceComponents/fields/Switch/ReadPretty.d.ts +5 -0
  311. package/lib/components/dataSourceComponents/fields/Switch/type.d.ts +16 -0
  312. package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +2 -2
  313. package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +5 -0
  314. package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +2 -2
  315. package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +16 -0
  316. package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +2 -2
  317. package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +2 -2
  318. package/lib/components/dataSourceComponents/fields/index.d.ts +4 -4
  319. package/lib/components/dataSourceComponents/hooks/useActions.d.ts +5 -5
  320. package/lib/components/dataSourceComponents/hooks/useParseActionsVariable.d.ts +3 -8
  321. package/lib/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +120 -0
  322. package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +12 -0
  323. package/lib/components/date-picker/datePickerCpt.d.ts +2 -2
  324. package/lib/components/date-picker/index.d.ts +1 -1
  325. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +1 -2
  326. package/lib/components/drag-sort-tree/index.d.ts +4 -0
  327. package/lib/components/dropdown/index.d.ts +2 -2
  328. package/lib/components/filter/components/items/index.d.ts +7 -6
  329. package/lib/components/filter/components/items/text/Editor/index.d.ts +2 -1
  330. package/lib/components/filter/components/items/text/Preview/index.d.ts +2 -1
  331. package/lib/components/filter/components/items/text/index.d.ts +3 -2
  332. package/lib/components/filter/index.d.ts +2 -2
  333. package/lib/components/list/index.d.ts +2 -2
  334. package/lib/components/login-and-register/index.d.ts +82 -0
  335. package/lib/components/lowCodePage/index.d.ts +2 -2
  336. package/lib/components/page/index.d.ts +1 -2
  337. package/lib/components/page-header/index.d.ts +1 -1
  338. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +2 -2
  339. package/lib/components/pisellAdjustPrice/index.d.ts +1 -2
  340. package/lib/components/pisellAlert/index.d.ts +1 -1
  341. package/lib/components/pisellCard/index.d.ts +2 -2
  342. package/lib/components/pisellCheckboxGroup/index.d.ts +1 -1
  343. package/lib/components/pisellCountdown/index.d.ts +1 -1
  344. package/lib/components/pisellDatePicker/datePickerCpt.d.ts +1 -2
  345. package/lib/components/pisellDatePicker/index.d.ts +1 -1
  346. package/lib/components/pisellDraggable/components/Remove/Remove.d.ts +2 -2
  347. package/lib/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +1 -1
  348. package/lib/components/pisellDraggable/index.d.ts +2 -2
  349. package/lib/components/pisellDropSort/components/SortableItem/index.d.ts +1 -1
  350. package/lib/components/pisellEmpty/index.d.ts +1 -1
  351. package/lib/components/pisellFloatingPanel/index.d.ts +1 -1
  352. package/lib/components/pisellGoodPassCard/index.d.ts +1 -1
  353. package/lib/components/pisellInformationEntry/Input/index.d.ts +1 -1
  354. package/lib/components/pisellInformationEntry/Scan/index.d.ts +2 -2
  355. package/lib/components/pisellInformationEntry/index.d.ts +1 -1
  356. package/lib/components/pisellInput/components/BankCard/index.d.ts +1 -2
  357. package/lib/components/pisellInput/components/Copy/index.d.ts +1 -2
  358. package/lib/components/pisellInput/components/SecurityCode/index.d.ts +1 -2
  359. package/lib/components/pisellInput/index.d.ts +4 -5
  360. package/lib/components/pisellLoading/index.d.ts +2 -2
  361. package/lib/components/pisellModal/components/Information/index.d.ts +1 -1
  362. package/lib/components/pisellModal/components/IpadModal/index.d.ts +2 -2
  363. package/lib/components/pisellModal/components/MobileModal/index.d.ts +2 -2
  364. package/lib/components/pisellModal/components/PcModal/index.d.ts +1 -1
  365. package/lib/components/pisellModal/components/index.d.ts +3 -3
  366. package/lib/components/pisellModal/index.d.ts +2 -2
  367. package/lib/components/pisellRow/index.d.ts +1 -1
  368. package/lib/components/pisellStatisticList/index.d.ts +1 -1
  369. package/lib/components/pisellTags/index.d.ts +1 -1
  370. package/lib/components/pisellText/components/Amount/index.d.ts +1 -1
  371. package/lib/components/pisellText/index.d.ts +2 -2
  372. package/lib/components/pisellTooltip/index.d.ts +1 -2
  373. package/lib/components/pisellUpload/index.d.ts +2 -2
  374. package/lib/components/pisellWalletPassCard/index.d.ts +1 -2
  375. package/lib/components/productCard/components/Action/index.d.ts +1 -2
  376. package/lib/components/productCard/components/AmountFooter/index.d.ts +2 -2
  377. package/lib/components/productCard/components/AmountFooter/index.js +2 -2
  378. package/lib/components/productCard/components/Divider/index.d.ts +2 -2
  379. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
  380. package/lib/components/productCard/components/Header/EditButton/index.d.ts +2 -2
  381. package/lib/components/productCard/components/Header/index.d.ts +1 -2
  382. package/lib/components/productCard/components/MultiDay/index.d.ts +2 -2
  383. package/lib/components/productCard/components/Note/index.d.ts +2 -2
  384. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +2 -2
  385. package/lib/components/productCard/components/Packages/components/options/index.d.ts +2 -2
  386. package/lib/components/productCard/components/Packages/index.d.ts +2 -2
  387. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  388. package/lib/components/productCard/components/Sales/index.d.ts +1 -2
  389. package/lib/components/productCard/components/Time/components/Like/index.d.ts +2 -2
  390. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +2 -2
  391. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +1 -2
  392. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +2 -2
  393. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +1 -2
  394. package/lib/components/productCard/components/Time/index.d.ts +1 -2
  395. package/lib/components/qrcode/index.d.ts +2 -2
  396. package/lib/components/radio/index.d.ts +2 -1
  397. package/lib/components/section-footers/index.d.ts +1 -1
  398. package/lib/components/segmented/index.d.ts +2 -2
  399. package/lib/components/select-time/RightPanel/index.d.ts +2 -2
  400. package/lib/components/select-time/index.d.ts +2 -2
  401. package/lib/components/skeleton/index.d.ts +2 -1
  402. package/lib/components/slider/index.d.ts +2 -2
  403. package/lib/components/sort/components/InlineMenu/index.d.ts +2 -2
  404. package/lib/components/table/Actions/component/ColumnsSetting/PopoverContent.d.ts +1 -1
  405. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +2 -2
  406. package/lib/components/table/Actions/component/ExportImport/components/ExportFile/index.d.ts +1 -2
  407. package/lib/components/table/Actions/component/ExportImport/components/ExportTable/index.d.ts +1 -2
  408. package/lib/components/table/Actions/component/ExportImport/components/ImportLog/index.d.ts +1 -2
  409. package/lib/components/table/Actions/component/ExportImport/components/ImportTable/index.d.ts +1 -2
  410. package/lib/components/table/Actions/component/ExportImport/index.d.ts +1 -2
  411. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +2 -2
  412. package/lib/components/table/Actions/component/Group/PopoverContent.d.ts +2 -2
  413. package/lib/components/table/Actions/component/Group/index.d.ts +2 -2
  414. package/lib/components/table/Actions/component/ViewMode/index.d.ts +1 -2
  415. package/lib/components/table/Actions/index.d.ts +2 -2
  416. package/lib/components/table/BasicTable/index.d.ts +2 -2
  417. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +2 -2
  418. package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +2 -2
  419. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +2 -2
  420. package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +1 -1
  421. package/lib/components/table/Gallery/components/VirtualGrid/index.d.ts +1 -1
  422. package/lib/components/table/Gallery/index.d.ts +1 -1
  423. package/lib/components/table/Header/index.d.ts +1 -1
  424. package/lib/components/table/Summary/index.d.ts +2 -2
  425. package/lib/components/table/Table/SelectField/index.d.ts +2 -2
  426. package/lib/components/table/Table/fields/date/Config/index.d.ts +2 -2
  427. package/lib/components/table/Table/fields/date/Show/index.d.ts +2 -2
  428. package/lib/components/table/Table/fields/date/Sort/index.d.ts +2 -2
  429. package/lib/components/table/Table/fields/date/index.d.ts +3 -3
  430. package/lib/components/table/Table/fields/image/Config/index.d.ts +2 -2
  431. package/lib/components/table/Table/fields/image/Show/index.d.ts +2 -2
  432. package/lib/components/table/Table/fields/image/Sort/index.d.ts +2 -2
  433. package/lib/components/table/Table/fields/image/index.d.ts +3 -3
  434. package/lib/components/table/Table/fields/index.d.ts +75 -75
  435. package/lib/components/table/Table/fields/link/Config/index.d.ts +2 -2
  436. package/lib/components/table/Table/fields/link/Show/index.d.ts +2 -2
  437. package/lib/components/table/Table/fields/link/Sort/index.d.ts +2 -2
  438. package/lib/components/table/Table/fields/link/index.d.ts +3 -3
  439. package/lib/components/table/Table/fields/number/Config/index.d.ts +2 -2
  440. package/lib/components/table/Table/fields/number/Show/index.d.ts +2 -2
  441. package/lib/components/table/Table/fields/number/Sort/index.d.ts +2 -2
  442. package/lib/components/table/Table/fields/number/index.d.ts +3 -3
  443. package/lib/components/table/Table/fields/numberRange/Config/index.d.ts +2 -2
  444. package/lib/components/table/Table/fields/numberRange/Show/index.d.ts +2 -2
  445. package/lib/components/table/Table/fields/numberRange/Sort/index.d.ts +2 -2
  446. package/lib/components/table/Table/fields/numberRange/index.d.ts +3 -3
  447. package/lib/components/table/Table/fields/oldRangePicker/Config/index.d.ts +2 -2
  448. package/lib/components/table/Table/fields/oldRangePicker/Show/index.d.ts +2 -2
  449. package/lib/components/table/Table/fields/oldRangePicker/Sort/index.d.ts +2 -2
  450. package/lib/components/table/Table/fields/oldRangePicker/index.d.ts +3 -3
  451. package/lib/components/table/Table/fields/pSwitch/Config/index.d.ts +2 -2
  452. package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +2 -2
  453. package/lib/components/table/Table/fields/pSwitch/Sort/index.d.ts +2 -2
  454. package/lib/components/table/Table/fields/pSwitch/index.d.ts +3 -3
  455. package/lib/components/table/Table/fields/rangePicker/Config/index.d.ts +2 -2
  456. package/lib/components/table/Table/fields/rangePicker/Show/index.d.ts +2 -2
  457. package/lib/components/table/Table/fields/rangePicker/Sort/index.d.ts +2 -2
  458. package/lib/components/table/Table/fields/rangePicker/index.d.ts +3 -3
  459. package/lib/components/table/Table/fields/search/Config/index.d.ts +2 -2
  460. package/lib/components/table/Table/fields/search/Show/index.d.ts +2 -2
  461. package/lib/components/table/Table/fields/search/Sort/index.d.ts +2 -2
  462. package/lib/components/table/Table/fields/search/index.d.ts +3 -3
  463. package/lib/components/table/Table/fields/select/Config/index.d.ts +2 -2
  464. package/lib/components/table/Table/fields/select/Show/index.d.ts +2 -2
  465. package/lib/components/table/Table/fields/select/Sort/index.d.ts +2 -2
  466. package/lib/components/table/Table/fields/select/index.d.ts +4 -3
  467. package/lib/components/table/Table/fields/text/Config/index.d.ts +2 -2
  468. package/lib/components/table/Table/fields/text/Show/index.d.ts +2 -2
  469. package/lib/components/table/Table/fields/text/Sort/index.d.ts +2 -2
  470. package/lib/components/table/Table/fields/text/index.d.ts +3 -3
  471. package/lib/components/table/Table/fields/treeSelect/Config/index.d.ts +2 -2
  472. package/lib/components/table/Table/fields/treeSelect/Show/index.d.ts +2 -2
  473. package/lib/components/table/Table/fields/treeSelect/Sort/index.d.ts +2 -2
  474. package/lib/components/table/Table/fields/treeSelect/index.d.ts +4 -3
  475. package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +2 -2
  476. package/lib/components/table/Table/tableConfig/summary/index.d.ts +2 -2
  477. package/lib/components/table/Table/utils.d.ts +1 -1
  478. package/lib/components/table/TableFilter/SortIcon.d.ts +2 -2
  479. package/lib/components/table/View/index.d.ts +2 -2
  480. package/lib/components/table/hooks/useMergeColumnSetting.d.ts +1 -1
  481. package/lib/components/table/hooks/useTableSetting.d.ts +1 -1
  482. package/lib/components/table/model.d.ts +1 -1
  483. package/lib/components/table/types.d.ts +268 -0
  484. package/lib/components/tabs/index.d.ts +2 -2
  485. package/lib/components/time-picker/index.d.ts +2 -1
  486. package/lib/components/upload/index.d.ts +2 -1
  487. package/lib/components/versionSelect/index.d.ts +2 -2
  488. package/lib/components/virtual-keyboard/Amount/index.d.ts +1 -1
  489. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +1 -2
  490. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +1 -1
  491. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +1 -1
  492. package/lib/components/virtual-keyboard/Number/index.d.ts +1 -2
  493. package/lib/components/virtual-keyboard/Time/index.d.ts +1 -1
  494. package/lib/components/virtual-keyboard/Time/utils.d.ts +2 -1
  495. package/lib/components/virtual-keyboard/VirtualInput/index.d.ts +1 -1
  496. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +1 -2
  497. package/lib/components/virtual-keyboard/index.d.ts +1 -1
  498. package/lib/components/walletCard/Guest/index.d.ts +2 -2
  499. package/lib/components/walletCard/Guide/index.d.ts +2 -2
  500. package/lib/utils/hoc.d.ts +5 -5
  501. package/lib/utils/miniRedux.d.ts +1 -1
  502. package/package.json +4 -4
@@ -0,0 +1,84 @@
1
+ /// <reference types="react" />
2
+ import { ColumnType } from 'antd/es/table';
3
+ import { LocalSettingsType } from '../../table/types';
4
+ import { DataSourceType } from '../provider/dataSource/DataSourceContext';
5
+ export declare type OperationItem = {
6
+ label?: string;
7
+ openMode: 'modal' | 'drawer' | 'custom';
8
+ openContentSize: 'small' | 'middle' | 'large';
9
+ openTitle: string;
10
+ actionType: 'detail' | 'edit' | 'delete' | 'custom';
11
+ key: string;
12
+ buttonProps?: any;
13
+ onClick?: (record: any) => void;
14
+ afterClose?: () => void;
15
+ };
16
+ export interface DataSourceTableProps {
17
+ __id?: string;
18
+ currentComponentId?: string;
19
+ currentSettingKey?: string;
20
+ title?: string | React.ReactNode | (() => React.ReactNode);
21
+ subTitle?: string | React.ReactNode | (() => React.ReactNode);
22
+ titleButtons?: {
23
+ show: boolean;
24
+ maxCount: number;
25
+ items: OperationItem[];
26
+ };
27
+ tableButtons?: {
28
+ show: boolean;
29
+ maxCount: number;
30
+ items: OperationItem[];
31
+ };
32
+ buttons?: any[];
33
+ operation?: {
34
+ show: boolean;
35
+ title: string;
36
+ width: number;
37
+ align: 'left' | 'center' | 'right';
38
+ fixed: 'left' | 'right' | false;
39
+ type: 'link' | 'button';
40
+ items: OperationItem[];
41
+ };
42
+ operationContent?: {
43
+ [key: string]: React.ReactNode;
44
+ };
45
+ dataSource: DataSourceType;
46
+ columns: ColumnType<any>[];
47
+ filter: any;
48
+ search?: {
49
+ show: boolean;
50
+ placeholder: string;
51
+ };
52
+ __designMode: string;
53
+ componentId: string;
54
+ clickToDetail?: {
55
+ show: boolean;
56
+ useCustomAction: boolean;
57
+ actionType: string;
58
+ openMode: 'modal' | 'drawer';
59
+ openContentSize: 'small' | 'middle' | 'large';
60
+ openTitle: string;
61
+ key: string;
62
+ };
63
+ onRow?: any;
64
+ filterBy?: Record<string, any>;
65
+ sortBy: string;
66
+ tabs?: {
67
+ show: boolean;
68
+ type: string;
69
+ items: {
70
+ name: string;
71
+ filterBy: Record<string, any>;
72
+ sortBy: string;
73
+ }[];
74
+ };
75
+ onValuesChange?: (changedValues: any, values: any) => void;
76
+ extraParams?: {
77
+ list?: Record<string, any>;
78
+ get?: Record<string, any>;
79
+ update?: Record<string, any>;
80
+ create?: Record<string, any>;
81
+ destroy?: Record<string, any>;
82
+ };
83
+ localSettings?: LocalSettingsType;
84
+ }
@@ -3,5 +3,5 @@ interface BaseWrapperProps {
3
3
  children: React.ReactNode;
4
4
  [key: string]: any;
5
5
  }
6
- declare const BaseWrapper: (props: BaseWrapperProps) => React.JSX.Element;
6
+ declare const BaseWrapper: (props: BaseWrapperProps) => JSX.Element;
7
7
  export default BaseWrapper;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { DataSourceContextProps } from '../provider/dataSource/DataSourceContext';
3
- declare const DataSourceWrapper: (props: DataSourceContextProps) => React.JSX.Element;
3
+ declare const DataSourceWrapper: (props: DataSourceContextProps) => JSX.Element;
4
4
  export default DataSourceWrapper;
@@ -1,5 +1,5 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { ColorPickerProps } from './type';
3
3
  import './ReadPretty.less';
4
- declare const ColorPickerReadPretty: (props: ColorPickerProps) => React.JSX.Element;
4
+ declare const ColorPickerReadPretty: (props: ColorPickerProps) => JSX.Element;
5
5
  export default ColorPickerReadPretty;
@@ -1,5 +1,5 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { DateRangePickerProps } from './type';
3
3
  import './ReadPretty.less';
4
- declare const DateRangePickerReadPretty: (props: DateRangePickerProps) => React.JSX.Element;
4
+ declare const DateRangePickerReadPretty: (props: DateRangePickerProps) => JSX.Element;
5
5
  export default DateRangePickerReadPretty;
@@ -1,5 +1,5 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { IconSelectProps } from './type';
3
3
  import './ReadPretty.less';
4
- declare const IconSelectReadPretty: (props: IconSelectProps) => React.JSX.Element | null;
4
+ declare const IconSelectReadPretty: (props: IconSelectProps) => JSX.Element | null;
5
5
  export default IconSelectReadPretty;
@@ -1,5 +1,5 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { InputProps } from './type';
3
3
  import './ReadPretty.less';
4
- declare const InputReadPretty: (props: InputProps) => React.JSX.Element;
4
+ declare const InputReadPretty: (props: InputProps) => JSX.Element;
5
5
  export default InputReadPretty;
@@ -1,5 +1,5 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { InputProps } from './type';
3
3
  import './ReadPretty.less';
4
- declare const InputReadPretty: (props: InputProps) => React.JSX.Element;
4
+ declare const InputReadPretty: (props: InputProps) => JSX.Element;
5
5
  export default InputReadPretty;
@@ -1,5 +1,5 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { JsonProps } from "./type";
3
3
  import "./ReadPretty.less";
4
- declare const JsonReadPretty: (props: JsonProps) => React.JSX.Element | null;
4
+ declare const JsonReadPretty: (props: JsonProps) => JSX.Element | null;
5
5
  export default JsonReadPretty;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * 获取nocobase数据列表
3
+ */
4
+ export declare const getCountryDataList: () => Promise<any>;
5
+ export interface Country {
6
+ id: number;
7
+ name: {
8
+ en: string;
9
+ 'zh-CN': string;
10
+ 'zh-HK': string;
11
+ original: string;
12
+ };
13
+ code: string;
14
+ calling_code: string;
15
+ currency_code: string;
16
+ sort: number;
17
+ status: string;
18
+ created_at: string;
19
+ updated_at: string;
20
+ prefix: string;
21
+ }
22
+ export declare const useCountries: () => {
23
+ data: Country[];
24
+ };
@@ -1,5 +1,5 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { PasswordProps } from './type';
3
3
  import './ReadPretty.less';
4
- declare const PasswordReadPretty: (props: PasswordProps) => React.JSX.Element;
4
+ declare const PasswordReadPretty: (props: PasswordProps) => JSX.Element;
5
5
  export default PasswordReadPretty;
@@ -1,5 +1,5 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { InputProps } from './type';
3
3
  import './ReadPretty.less';
4
- declare const InputReadPretty: (props: InputProps) => React.JSX.Element;
4
+ declare const InputReadPretty: (props: InputProps) => JSX.Element;
5
5
  export default InputReadPretty;
@@ -1,5 +1,5 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { TextAreaProps } from "./type";
3
3
  import "./ReadPretty.less";
4
- declare const TextAreaReadPretty: (props: TextAreaProps) => React.JSX.Element;
4
+ declare const TextAreaReadPretty: (props: TextAreaProps) => JSX.Element;
5
5
  export default TextAreaReadPretty;
@@ -1,6 +1,6 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { UrlProps } from './type';
3
3
  import './ReadPretty.less';
4
4
  export declare const formatUrl: (url: string) => string;
5
- declare const UrlReadPretty: (props: UrlProps) => React.JSX.Element;
5
+ declare const UrlReadPretty: (props: UrlProps) => JSX.Element;
6
6
  export default UrlReadPretty;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  declare const SelectWithDataSource: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps & {
3
3
  options?: any;
4
4
  optionSourceType?: "default" | "custom" | "api" | undefined;
@@ -7,5 +7,5 @@ declare const SelectWithDataSource: (props: import("antd").SelectProps<any, impo
7
7
  extraParams?: Record<string, any> | undefined;
8
8
  } & {
9
9
  dataSource?: any;
10
- }) => React.JSX.Element;
10
+ }) => JSX.Element;
11
11
  export default SelectWithDataSource;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { SwitchProps } from './type';
3
+ import './ReadPretty.less';
4
+ declare const SwitchReadPretty: React.FC<SwitchProps>;
5
+ export default SwitchReadPretty;
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ export interface SwitchProps {
3
+ value?: boolean;
4
+ checked?: boolean;
5
+ defaultChecked?: boolean;
6
+ disabled?: boolean;
7
+ loading?: boolean;
8
+ size?: 'default' | 'small';
9
+ checkedChildren?: React.ReactNode;
10
+ unCheckedChildren?: React.ReactNode;
11
+ autoFocus?: boolean;
12
+ onChange?: (checked: boolean, event: React.MouseEvent<HTMLButtonElement>) => void;
13
+ onClick?: (checked: boolean, event: React.MouseEvent<HTMLButtonElement>) => void;
14
+ renderMode?: 'view' | 'edit' | 'disabled' | 'hidden';
15
+ [key: string]: any;
16
+ }
@@ -1,5 +1,5 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { TimePickerProps } from './type';
3
3
  import './ReadPretty.less';
4
- declare const TimePickerReadPretty: (props: TimePickerProps) => React.JSX.Element;
4
+ declare const TimePickerReadPretty: (props: TimePickerProps) => JSX.Element;
5
5
  export default TimePickerReadPretty;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { TranslationProps } from './type';
3
+ import './index.less';
4
+ declare const Translation: React.FC<TranslationProps>;
5
+ export default Translation;
@@ -1,5 +1,5 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { TranslationProps } from './type';
3
3
  import './ReadPretty.less';
4
- declare const TranslationReadPretty: (props: TranslationProps) => React.JSX.Element;
4
+ declare const TranslationReadPretty: (props: TranslationProps) => JSX.Element;
5
5
  export default TranslationReadPretty;
@@ -0,0 +1,16 @@
1
+ import { ModeType } from "../../dataSourceForm/type";
2
+ export interface TranslationValue {
3
+ en: string;
4
+ 'zh-CN': string;
5
+ 'zh-HK': string;
6
+ original: string;
7
+ }
8
+ export interface TranslationProps {
9
+ renderMode: ModeType;
10
+ value?: TranslationValue;
11
+ onChange?: (value: TranslationValue) => void;
12
+ disabled?: boolean;
13
+ placeholder?: string;
14
+ className?: string;
15
+ type?: 'text' | 'textarea';
16
+ }
@@ -1,6 +1,6 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  declare const CameraPopover: (props: {
3
3
  onLocalFileClick: () => void;
4
4
  onCameraChange: (file: any) => void;
5
- }) => React.JSX.Element;
5
+ }) => JSX.Element;
6
6
  export default CameraPopover;
@@ -1,5 +1,5 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { UploadProps } from './type';
3
3
  import './ReadPretty.less';
4
- declare const UploadReadPretty: (props: UploadProps) => React.JSX.Element | null;
4
+ declare const UploadReadPretty: (props: UploadProps) => JSX.Element | null;
5
5
  export default UploadReadPretty;
@@ -41,7 +41,7 @@ declare const formFieldMap: {
41
41
  extraParams?: Record<string, any> | undefined;
42
42
  } & {
43
43
  dataSource?: any;
44
- }) => import("react").JSX.Element;
44
+ }) => JSX.Element;
45
45
  FormItemInputNumber: import("react").FC<any>;
46
46
  FormItemPercent: import("react").FC<any>;
47
47
  FormItemTimePicker: import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
@@ -60,11 +60,11 @@ declare const formFieldMap: {
60
60
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
61
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
62
62
  };
63
- declare const getFieldComponent: (fieldComponent: string) => (import("react").FC<{}> & {
63
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
64
64
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
65
65
  } & {
66
66
  Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
67
- }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
67
+ }) | import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<import("./Input/type").InputProps> & {
68
68
  JSON: import("react").FC<any>;
69
69
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
70
70
  TextArea: import("react").FC<import("antd/es/input").TextAreaProps & import("react").RefAttributes<import("antd/es/input/TextArea").TextAreaRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
@@ -96,7 +96,7 @@ declare const getFieldComponent: (fieldComponent: string) => (import("react").FC
96
96
  extraParams?: Record<string, any> | undefined;
97
97
  } & {
98
98
  dataSource?: any;
99
- }) => import("react").JSX.Element) | import("react").FC<any> | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
99
+ }) => JSX.Element) | import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & {
100
100
  onChange: (value: string) => void;
101
101
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps> | import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
102
102
  export { getFieldComponent, formFieldMap };
@@ -6,13 +6,13 @@ export interface UseActionsParams {
6
6
  extraParams?: Record<string, any>;
7
7
  }
8
8
  declare const useActions: ({ dataSource: propsDataSource, currentValue: propsCurrentValue, __designMode, extraParams: propsExtraParams, }?: UseActionsParams) => {
9
- create: (this: unknown, values: Record<string, any>) => Promise<any>;
10
- get: (this: unknown) => Promise<any>;
11
- update: (this: unknown, values: Record<string, any>) => Promise<any>;
12
- list: (this: unknown, params: {
9
+ create: (values: Record<string, any>) => Promise<any>;
10
+ get: () => Promise<any>;
11
+ update: (values: Record<string, any>) => Promise<any>;
12
+ list: (params: {
13
13
  page: number;
14
14
  pageSize: number;
15
15
  }) => Promise<any>;
16
- destroy: (this: unknown, id: string) => Promise<any>;
16
+ destroy: (id: string) => Promise<any>;
17
17
  };
18
18
  export default useActions;
@@ -1,11 +1,6 @@
1
- import { ActionsItem } from '../dataSourceForm/serve';
1
+ import { Collection } from '../dataSourceForm/serve';
2
+ declare type Actions = Collection['actions'];
2
3
  declare const useParseActionsVariable: () => {
3
- parseActions: (this: unknown, actions: {
4
- get: ActionsItem;
5
- update: ActionsItem;
6
- create: ActionsItem;
7
- delete: ActionsItem;
8
- list: ActionsItem;
9
- }, localVariables: Record<string, any>) => Record<string, any>;
4
+ parseActions: (actions: Actions, localVariables: Record<string, any>) => Record<string, any>;
10
5
  };
11
6
  export default useParseActionsVariable;
@@ -0,0 +1,120 @@
1
+ /// <reference types="react" />
2
+ import { Result } from 'ahooks/es/useRequest/src/types';
3
+ import { ActionsItem } from '../../dataSourceForm/serve';
4
+ export interface Field {
5
+ name: string;
6
+ type: string;
7
+ allowNull: boolean;
8
+ primaryKey: boolean;
9
+ unique: boolean;
10
+ autoIncrement: boolean;
11
+ description?: (null | string)[];
12
+ possibleTypes?: string[];
13
+ rawType: string;
14
+ interface: string;
15
+ uiSchema: UiSchema;
16
+ key?: string;
17
+ collectionName?: string;
18
+ collectionKey?: any;
19
+ dataSourceKey?: string;
20
+ defaultValue?: any;
21
+ }
22
+ interface UiSchema {
23
+ type?: string;
24
+ 'x-component': string;
25
+ 'x-component-props'?: Xcomponentprops;
26
+ 'x-validator'?: string;
27
+ title: string;
28
+ default?: any;
29
+ enum?: any[];
30
+ }
31
+ interface Xcomponentprops {
32
+ style?: Style;
33
+ autoSize?: AutoSize;
34
+ stringMode?: boolean;
35
+ step?: string;
36
+ dateFormat?: string;
37
+ showTime?: boolean;
38
+ }
39
+ interface AutoSize {
40
+ minRows: number;
41
+ }
42
+ interface Style {
43
+ width: string;
44
+ }
45
+ export declare type ActionTypes = 'list' | 'get' | 'update' | 'create' | 'destroy';
46
+ export declare type DataSourceType = {
47
+ fromSettingMeta: boolean;
48
+ actions: {
49
+ get: ActionsItem;
50
+ update: ActionsItem;
51
+ create: ActionsItem;
52
+ delete: ActionsItem;
53
+ list: ActionsItem;
54
+ };
55
+ headerDataSource: string;
56
+ dataSourceKey: string;
57
+ filterTargetKey: string;
58
+ introspected: boolean;
59
+ isCustomApi: boolean;
60
+ key: string;
61
+ tableName: string;
62
+ logging: boolean;
63
+ name: string;
64
+ title: string;
65
+ titleField: string;
66
+ types: ActionTypes[];
67
+ fields: Field[];
68
+ options: {
69
+ apiType: string;
70
+ baseUrl: string;
71
+ };
72
+ };
73
+ export declare type DataSourceContextProps = {
74
+ dataSource: DataSourceType;
75
+ children?: React.ReactNode;
76
+ currentValue?: string;
77
+ actions?: {
78
+ list?: () => Promise<any>;
79
+ get?: () => Promise<any>;
80
+ update?: () => Promise<any>;
81
+ create?: () => Promise<any>;
82
+ destroy?: () => Promise<any>;
83
+ };
84
+ requestOptions?: {
85
+ list?: any;
86
+ get?: any;
87
+ update?: any;
88
+ create?: any;
89
+ destroy?: any;
90
+ };
91
+ overrideData?: {
92
+ list?: any;
93
+ get?: any;
94
+ };
95
+ autoRun?: {
96
+ list?: boolean;
97
+ get?: boolean;
98
+ };
99
+ extraParams?: {
100
+ list?: Record<string, any>;
101
+ get?: Record<string, any>;
102
+ update?: Record<string, any>;
103
+ create?: Record<string, any>;
104
+ destroy?: Record<string, any>;
105
+ };
106
+ __id?: string;
107
+ __designMode?: string;
108
+ };
109
+ export interface DataSourceContextType {
110
+ dataSource?: DataSourceType;
111
+ list: Result<any, any>;
112
+ destroy: Result<any, any>;
113
+ get: Result<any, any>;
114
+ update: Result<any, any>;
115
+ create: Result<any, any>;
116
+ __designMode?: string;
117
+ getCurrentRecord: () => any;
118
+ }
119
+ export declare const DataSourceContext: import("react").Context<DataSourceContextType>;
120
+ export default DataSourceContext;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ export interface VariablesContextType {
3
+ children?: React.ReactNode;
4
+ variables?: Record<string, any>;
5
+ registerVariable?: (value: Record<string, any>) => void;
6
+ parseVariable?: (str: string, localVariables?: Record<string, any>) => any;
7
+ registerValueVariable?: (componentId: string, value: Record<string, any>) => void;
8
+ registerFunctionVariable?: (componentId: string, value: Record<string, any>) => void;
9
+ subscribeVariables?: (listener: (allVariables: Record<string, any>, updateVariables: Record<string, any>) => void) => () => void;
10
+ }
11
+ export declare const VariablesContext: import("react").Context<VariablesContextType>;
12
+ export default VariablesContext;
@@ -1,9 +1,9 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { PickerDateProps } from 'antd/es/date-picker/generatePicker';
3
3
  import { Dayjs } from 'dayjs';
4
4
  import './index.less';
5
5
  interface DatePickerCptProps extends PickerDateProps<Dayjs> {
6
6
  showTime: any;
7
7
  }
8
- declare const DatePickerCpt: (props: DatePickerCptProps) => React.JSX.Element;
8
+ declare const DatePickerCpt: (props: DatePickerCptProps) => JSX.Element;
9
9
  export default DatePickerCpt;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const DatePicker: (props: any) => import("react").JSX.Element;
2
+ declare const DatePicker: (props: any) => JSX.Element;
3
3
  export default DatePicker;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import './index.less';
3
2
  import { ValueProps, SortType } from '../types';
4
3
  declare type IdType = string | number;
@@ -15,5 +14,5 @@ declare type TreeItemProps = {
15
14
  onSelectKeys?: (ids: IdType) => void;
16
15
  onChange?: (value: any[]) => void;
17
16
  };
18
- declare const TreeItem: (props: TreeItemProps) => React.JSX.Element;
17
+ declare const TreeItem: (props: TreeItemProps) => JSX.Element;
19
18
  export default TreeItem;
@@ -0,0 +1,4 @@
1
+ import './index.less';
2
+ import { SortType } from './types';
3
+ declare const DragSortTree: (props: SortType) => JSX.Element;
4
+ export default DragSortTree;
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- declare const Dropdown: (props: any) => React.JSX.Element;
1
+ /// <reference types="react" />
2
+ declare const Dropdown: (props: any) => JSX.Element;
3
3
  export default Dropdown;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const fieldMaps: {
2
3
  text: {
3
4
  field: {
@@ -6,8 +7,8 @@ export declare const fieldMaps: {
6
7
  field_type: string;
7
8
  default_value: string;
8
9
  };
9
- Preview: (props: any) => import("react").JSX.Element;
10
- Editor: () => import("react").JSX.Element;
10
+ Preview: (props: any) => JSX.Element;
11
+ Editor: () => JSX.Element;
11
12
  };
12
13
  };
13
14
  export declare const fieldList: {
@@ -23,8 +24,8 @@ export declare const getFieldByType: (type: string) => {
23
24
  field_type: string;
24
25
  default_value: string;
25
26
  };
26
- Preview: (props: any) => import("react").JSX.Element;
27
- Editor: () => import("react").JSX.Element;
27
+ Preview: (props: any) => JSX.Element;
28
+ Editor: () => JSX.Element;
28
29
  };
29
30
  declare const _default: {
30
31
  text: {
@@ -34,8 +35,8 @@ declare const _default: {
34
35
  field_type: string;
35
36
  default_value: string;
36
37
  };
37
- Preview: (props: any) => import("react").JSX.Element;
38
- Editor: () => import("react").JSX.Element;
38
+ Preview: (props: any) => JSX.Element;
39
+ Editor: () => JSX.Element;
39
40
  };
40
41
  };
41
42
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const Text: () => import("react").JSX.Element;
1
+ /// <reference types="react" />
2
+ declare const Text: () => JSX.Element;
2
3
  export default Text;
@@ -1,2 +1,3 @@
1
- declare const Text: (props: any) => import("react").JSX.Element;
1
+ /// <reference types="react" />
2
+ declare const Text: (props: any) => JSX.Element;
2
3
  export default Text;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: {
2
3
  field: {
3
4
  field_icon: string;
@@ -5,7 +6,7 @@ declare const _default: {
5
6
  field_type: string;
6
7
  default_value: string;
7
8
  };
8
- Preview: (props: any) => import("react").JSX.Element;
9
- Editor: () => import("react").JSX.Element;
9
+ Preview: (props: any) => JSX.Element;
10
+ Editor: () => JSX.Element;
10
11
  };
11
12
  export default _default;