@pisell/materials 6.6.16 → 6.6.18

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 (321) 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 +145 -145
  7. package/build/lowcode/render/default/view.js +18 -18
  8. package/build/lowcode/view.js +18 -18
  9. package/es/components/Pagination/index.d.ts +14 -0
  10. package/es/components/appVersionControl/index.d.ts +4 -0
  11. package/es/components/auto-resize-text/auto-text-size-standalone.d.ts +20 -0
  12. package/es/components/auto-resize-text/index.d.ts +6 -0
  13. package/es/components/buttonGroupPreview/index.d.ts +19 -0
  14. package/es/components/cardMetricItem/index.d.ts +12 -0
  15. package/es/components/cardPro/index.d.ts +3 -0
  16. package/es/components/config-provider/index.d.ts +9 -0
  17. package/es/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +3 -0
  18. package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +16 -0
  19. package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +8 -0
  20. package/es/components/dataSourceComponents/dataSourceForm/serve.d.ts +179 -0
  21. package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +39 -0
  22. package/es/components/dataSourceComponents/dataSourceForm/type.d.ts +32 -0
  23. package/es/components/dataSourceComponents/dataSourceForm/urlUtils.d.ts +24 -0
  24. package/es/components/dataSourceComponents/dataSourceForm/utils.d.ts +56 -0
  25. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +2 -0
  26. package/es/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +8 -0
  27. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +38 -0
  28. package/es/components/dataSourceComponents/dataSourceTable/hooks/useFormat.d.ts +48 -0
  29. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +100 -0
  30. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +84 -0
  31. package/es/components/dataSourceComponents/fields/DatePicker/WithMode.d.ts +4 -0
  32. package/es/components/dataSourceComponents/fields/DatePicker/index.d.ts +3 -0
  33. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +26 -0
  34. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +27 -0
  35. package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  36. package/es/components/dataSourceComponents/fields/Switch/ReadPretty.d.ts +5 -0
  37. package/es/components/dataSourceComponents/fields/Switch/WithMode.d.ts +3 -0
  38. package/es/components/dataSourceComponents/fields/Switch/index.d.ts +3 -0
  39. package/es/components/dataSourceComponents/fields/Switch/type.d.ts +16 -0
  40. package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +5 -0
  41. package/es/components/dataSourceComponents/fields/Translation/type.d.ts +18 -0
  42. package/es/components/dataSourceComponents/fields/Upload/constants.d.ts +9 -0
  43. package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +18 -0
  44. package/es/components/dataSourceComponents/fields/index.d.ts +101 -0
  45. package/es/components/dataSourceComponents/fields/utils.d.ts +3 -0
  46. package/es/components/dataSourceComponents/hooks/useActions.d.ts +18 -0
  47. package/es/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +120 -0
  48. package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +12 -0
  49. package/es/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +4 -0
  50. package/es/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
  51. package/es/components/drag-sort-tree/index.d.ts +4 -0
  52. package/es/components/drawer/index.d.ts +3 -0
  53. package/es/components/filter/components/Dropdown/index.d.ts +9 -0
  54. package/es/components/filter/components/Dropdown/types.d.ts +11 -0
  55. package/es/components/filter/components/FilterButton/index.d.ts +4 -0
  56. package/es/components/filter/components/FilterButton/types.d.ts +13 -0
  57. package/es/components/filter/components/FilterItem/index.d.ts +5 -0
  58. package/es/components/filter/components/QuickFilter/index.d.ts +12 -0
  59. package/es/components/filter/types.d.ts +46 -0
  60. package/es/components/iconfont/index.d.ts +8 -0
  61. package/es/components/keyboard/index.d.ts +22 -0
  62. package/es/components/login-and-register/index.d.ts +82 -0
  63. package/es/components/page/index.d.ts +5 -0
  64. package/es/components/pisell-config-provider/context.d.ts +22 -0
  65. package/es/components/pisell-config-provider/index.d.ts +13 -0
  66. package/es/components/pisellAdjustPrice/index.d.ts +4 -0
  67. package/es/components/pisellAdjustPrice/status.d.ts +32 -0
  68. package/es/components/pisellAdjustPrice/type.d.ts +22 -0
  69. package/es/components/pisellCardList/index.d.ts +107 -0
  70. package/es/components/pisellCheckboxGroup/index.d.ts +40 -0
  71. package/es/components/pisellEmpty/index.d.ts +19 -0
  72. package/es/components/pisellGoodPassCard/index.d.ts +50 -0
  73. package/es/components/pisellLayout/index.d.ts +14 -0
  74. package/es/components/pisellModal/index.d.ts +58 -0
  75. package/es/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +5 -0
  76. package/es/components/pisellQrcode/index.d.ts +10 -0
  77. package/es/components/pisellRow/index.d.ts +22 -0
  78. package/es/components/pisellStatisticList/index.d.ts +22 -0
  79. package/es/components/pisellText/components/Amount/index.d.ts +20 -0
  80. package/es/components/pisellText/components/Editable/index.d.ts +32 -0
  81. package/es/components/pisellToast/index.d.ts +17 -0
  82. package/es/components/pisellToast/squareToast/index.d.ts +15 -0
  83. package/es/components/pisellToast/squareToast/methods.d.ts +13 -0
  84. package/es/components/pisellToast/squareToast/renderImperatively.d.ts +28 -0
  85. package/es/components/pisellToast/squareToast/toast.d.ts +25 -0
  86. package/es/components/pisellWalletPassCard/index.d.ts +146 -0
  87. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +3 -0
  88. package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +3 -0
  89. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
  90. package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +3 -0
  91. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +29 -0
  92. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  93. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
  94. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
  95. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  96. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
  97. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +12 -0
  98. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
  99. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +46 -0
  100. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +8 -0
  101. package/es/components/productCard/cartSkuCard/index.d.ts +10 -0
  102. package/es/components/productCard/cartSkuCard/locales.d.ts +163 -0
  103. package/es/components/productCard/components/Action/index.d.ts +3 -0
  104. package/es/components/productCard/components/AmountFooter/index.d.ts +3 -0
  105. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
  106. package/es/components/productCard/components/Header/EditButton/index.d.ts +3 -0
  107. package/es/components/productCard/components/Header/index.d.ts +3 -0
  108. package/es/components/productCard/components/Sales/index.d.ts +3 -0
  109. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +3 -0
  110. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
  111. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +2 -0
  112. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +18 -0
  113. package/es/components/productCard/components/Time/index.d.ts +3 -0
  114. package/es/components/productCard/index.d.ts +7 -0
  115. package/es/components/productCard/locales.d.ts +138 -0
  116. package/es/components/productCard/status.d.ts +32 -0
  117. package/es/components/productCard/types.d.ts +85 -0
  118. package/es/components/productCard/utils.d.ts +33 -0
  119. package/es/components/select/index.d.ts +9 -0
  120. package/es/components/select-time/index.d.ts +13 -0
  121. package/es/components/sort/index.d.ts +5 -0
  122. package/es/components/sort/types.d.ts +20 -0
  123. package/es/components/table/Actions/component/ExportImport/index.d.ts +7 -0
  124. package/es/components/table/Actions/component/GallerySetting/index.d.ts +8 -0
  125. package/es/components/table/Actions/component/ViewMode/index.d.ts +8 -0
  126. package/es/components/table/BasicTable/index.d.ts +3 -0
  127. package/es/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
  128. package/es/components/table/Gallery/index.d.ts +5 -0
  129. package/es/components/table/Table/AddFieldModal/index.d.ts +4 -0
  130. package/es/components/table/Table/fields/index.d.ts +2 -2
  131. package/es/components/table/Table/fields/select/Edit/index.d.ts +4 -0
  132. package/es/components/table/Table/fields/types/index.d.ts +30 -0
  133. package/es/components/table/Table/index.d.ts +4 -0
  134. package/es/components/table/Table/utils.d.ts +161 -0
  135. package/es/components/table/hooks/useTableSetting.d.ts +21 -0
  136. package/es/components/table/hooks/useTransDataSource.d.ts +11 -0
  137. package/es/components/table/index.d.ts +4 -0
  138. package/es/components/table/types.d.ts +268 -0
  139. package/es/components/translation/index.d.ts +17 -0
  140. package/es/components/translation/utils.d.ts +9 -0
  141. package/es/components/versionModal/index.d.ts +23 -0
  142. package/es/components/virtual-keyboard/Amount/index.d.ts +5 -0
  143. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  144. package/es/components/virtual-keyboard/Amount/types.d.ts +45 -0
  145. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +15 -0
  146. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +25 -0
  147. package/es/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  148. package/es/components/virtual-keyboard/Number/index.d.ts +5 -0
  149. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  150. package/es/components/virtual-keyboard/Number/types.d.ts +26 -0
  151. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
  152. package/es/components/virtual-keyboard/index.d.ts +25 -0
  153. package/es/components/virtualInput/BaseVirtualInput/index.d.ts +40 -0
  154. package/es/components/virtualInput/index.d.ts +24 -0
  155. package/es/components/walletCard/index.d.ts +79 -0
  156. package/es/components/walletCard/index.js +8 -2
  157. package/es/index.d.ts +146 -0
  158. package/es/locales/en-US.d.ts +313 -0
  159. package/es/locales/index.d.ts +1 -0
  160. package/es/locales/ja.d.ts +313 -0
  161. package/es/locales/pt.d.ts +313 -0
  162. package/es/locales/zh-CN.d.ts +308 -0
  163. package/es/locales/zh-TW.d.ts +308 -0
  164. package/lib/components/Pagination/index.d.ts +14 -0
  165. package/lib/components/appVersionControl/index.d.ts +4 -0
  166. package/lib/components/auto-resize-text/auto-text-size-standalone.d.ts +20 -0
  167. package/lib/components/auto-resize-text/index.d.ts +6 -0
  168. package/lib/components/buttonGroupPreview/index.d.ts +19 -0
  169. package/lib/components/cardMetricItem/index.d.ts +12 -0
  170. package/lib/components/cardPro/index.d.ts +3 -0
  171. package/lib/components/config-provider/index.d.ts +9 -0
  172. package/lib/components/dataSourceComponents/dataSourceForm/BaseForm.d.ts +3 -0
  173. package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +16 -0
  174. package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +8 -0
  175. package/lib/components/dataSourceComponents/dataSourceForm/serve.d.ts +179 -0
  176. package/lib/components/dataSourceComponents/dataSourceForm/submitButton/index.d.ts +39 -0
  177. package/lib/components/dataSourceComponents/dataSourceForm/type.d.ts +32 -0
  178. package/lib/components/dataSourceComponents/dataSourceForm/urlUtils.d.ts +24 -0
  179. package/lib/components/dataSourceComponents/dataSourceForm/utils.d.ts +56 -0
  180. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +2 -0
  181. package/lib/components/dataSourceComponents/dataSourceTable/BaseTable.d.ts +8 -0
  182. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +38 -0
  183. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useFormat.d.ts +48 -0
  184. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +100 -0
  185. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +84 -0
  186. package/lib/components/dataSourceComponents/fields/DatePicker/WithMode.d.ts +4 -0
  187. package/lib/components/dataSourceComponents/fields/DatePicker/index.d.ts +3 -0
  188. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +26 -0
  189. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +27 -0
  190. package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
  191. package/lib/components/dataSourceComponents/fields/Switch/ReadPretty.d.ts +5 -0
  192. package/lib/components/dataSourceComponents/fields/Switch/WithMode.d.ts +3 -0
  193. package/lib/components/dataSourceComponents/fields/Switch/index.d.ts +3 -0
  194. package/lib/components/dataSourceComponents/fields/Switch/type.d.ts +16 -0
  195. package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +5 -0
  196. package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +18 -0
  197. package/lib/components/dataSourceComponents/fields/Upload/constants.d.ts +9 -0
  198. package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +18 -0
  199. package/lib/components/dataSourceComponents/fields/index.d.ts +101 -0
  200. package/lib/components/dataSourceComponents/fields/utils.d.ts +3 -0
  201. package/lib/components/dataSourceComponents/hooks/useActions.d.ts +18 -0
  202. package/lib/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +120 -0
  203. package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +12 -0
  204. package/lib/components/dataSourceComponents/provider/variables/VariablesProvider.d.ts +4 -0
  205. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
  206. package/lib/components/drag-sort-tree/index.d.ts +4 -0
  207. package/lib/components/drawer/index.d.ts +3 -0
  208. package/lib/components/filter/components/Dropdown/index.d.ts +9 -0
  209. package/lib/components/filter/components/Dropdown/types.d.ts +11 -0
  210. package/lib/components/filter/components/FilterButton/index.d.ts +4 -0
  211. package/lib/components/filter/components/FilterButton/types.d.ts +13 -0
  212. package/lib/components/filter/components/FilterItem/index.d.ts +5 -0
  213. package/lib/components/filter/components/QuickFilter/index.d.ts +12 -0
  214. package/lib/components/filter/types.d.ts +46 -0
  215. package/lib/components/iconfont/index.d.ts +8 -0
  216. package/lib/components/keyboard/index.d.ts +22 -0
  217. package/lib/components/login-and-register/index.d.ts +82 -0
  218. package/lib/components/page/index.d.ts +5 -0
  219. package/lib/components/pisell-config-provider/context.d.ts +22 -0
  220. package/lib/components/pisell-config-provider/index.d.ts +13 -0
  221. package/lib/components/pisellAdjustPrice/index.d.ts +4 -0
  222. package/lib/components/pisellAdjustPrice/status.d.ts +32 -0
  223. package/lib/components/pisellAdjustPrice/type.d.ts +22 -0
  224. package/lib/components/pisellCardList/index.d.ts +107 -0
  225. package/lib/components/pisellCheckboxGroup/index.d.ts +40 -0
  226. package/lib/components/pisellEmpty/index.d.ts +19 -0
  227. package/lib/components/pisellGoodPassCard/index.d.ts +50 -0
  228. package/lib/components/pisellLayout/index.d.ts +14 -0
  229. package/lib/components/pisellModal/index.d.ts +58 -0
  230. package/lib/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +5 -0
  231. package/lib/components/pisellQrcode/index.d.ts +10 -0
  232. package/lib/components/pisellRow/index.d.ts +22 -0
  233. package/lib/components/pisellStatisticList/index.d.ts +22 -0
  234. package/lib/components/pisellText/components/Amount/index.d.ts +20 -0
  235. package/lib/components/pisellText/components/Editable/index.d.ts +32 -0
  236. package/lib/components/pisellToast/index.d.ts +17 -0
  237. package/lib/components/pisellToast/squareToast/index.d.ts +15 -0
  238. package/lib/components/pisellToast/squareToast/methods.d.ts +13 -0
  239. package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +28 -0
  240. package/lib/components/pisellToast/squareToast/toast.d.ts +25 -0
  241. package/lib/components/pisellWalletPassCard/index.d.ts +146 -0
  242. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +3 -0
  243. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +3 -0
  244. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
  245. package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +3 -0
  246. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +29 -0
  247. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  248. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
  249. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +10 -0
  250. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  251. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
  252. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +12 -0
  253. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +3 -0
  254. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +46 -0
  255. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +8 -0
  256. package/lib/components/productCard/cartSkuCard/index.d.ts +10 -0
  257. package/lib/components/productCard/cartSkuCard/locales.d.ts +163 -0
  258. package/lib/components/productCard/components/Action/index.d.ts +3 -0
  259. package/lib/components/productCard/components/AmountFooter/index.d.ts +3 -0
  260. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
  261. package/lib/components/productCard/components/Header/EditButton/index.d.ts +3 -0
  262. package/lib/components/productCard/components/Header/index.d.ts +3 -0
  263. package/lib/components/productCard/components/Sales/index.d.ts +3 -0
  264. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +3 -0
  265. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
  266. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +2 -0
  267. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +18 -0
  268. package/lib/components/productCard/components/Time/index.d.ts +3 -0
  269. package/lib/components/productCard/index.d.ts +7 -0
  270. package/lib/components/productCard/locales.d.ts +138 -0
  271. package/lib/components/productCard/status.d.ts +32 -0
  272. package/lib/components/productCard/types.d.ts +85 -0
  273. package/lib/components/productCard/utils.d.ts +33 -0
  274. package/lib/components/select/index.d.ts +9 -0
  275. package/lib/components/select-time/index.d.ts +13 -0
  276. package/lib/components/sort/index.d.ts +5 -0
  277. package/lib/components/sort/types.d.ts +20 -0
  278. package/lib/components/table/Actions/component/ExportImport/index.d.ts +7 -0
  279. package/lib/components/table/Actions/component/GallerySetting/index.d.ts +8 -0
  280. package/lib/components/table/Actions/component/ViewMode/index.d.ts +8 -0
  281. package/lib/components/table/BasicTable/index.d.ts +3 -0
  282. package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
  283. package/lib/components/table/Gallery/index.d.ts +5 -0
  284. package/lib/components/table/Table/AddFieldModal/index.d.ts +4 -0
  285. package/lib/components/table/Table/fields/index.d.ts +2 -2
  286. package/lib/components/table/Table/fields/select/Edit/index.d.ts +4 -0
  287. package/lib/components/table/Table/fields/types/index.d.ts +30 -0
  288. package/lib/components/table/Table/index.d.ts +4 -0
  289. package/lib/components/table/Table/utils.d.ts +161 -0
  290. package/lib/components/table/hooks/useTableSetting.d.ts +21 -0
  291. package/lib/components/table/hooks/useTransDataSource.d.ts +11 -0
  292. package/lib/components/table/index.d.ts +4 -0
  293. package/lib/components/table/types.d.ts +268 -0
  294. package/lib/components/translation/index.d.ts +17 -0
  295. package/lib/components/translation/utils.d.ts +9 -0
  296. package/lib/components/versionModal/index.d.ts +23 -0
  297. package/lib/components/virtual-keyboard/Amount/index.d.ts +5 -0
  298. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  299. package/lib/components/virtual-keyboard/Amount/types.d.ts +45 -0
  300. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +15 -0
  301. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +25 -0
  302. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  303. package/lib/components/virtual-keyboard/Number/index.d.ts +5 -0
  304. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  305. package/lib/components/virtual-keyboard/Number/types.d.ts +26 -0
  306. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
  307. package/lib/components/virtual-keyboard/index.d.ts +25 -0
  308. package/lib/components/virtualInput/BaseVirtualInput/index.d.ts +40 -0
  309. package/lib/components/virtualInput/index.d.ts +24 -0
  310. package/lib/components/walletCard/index.d.ts +79 -0
  311. package/lib/components/walletCard/index.js +7 -3
  312. package/lib/index.d.ts +146 -0
  313. package/lib/locales/en-US.d.ts +313 -0
  314. package/lib/locales/index.d.ts +1 -0
  315. package/lib/locales/ja.d.ts +313 -0
  316. package/lib/locales/pt.d.ts +313 -0
  317. package/lib/locales/zh-CN.d.ts +308 -0
  318. package/lib/locales/zh-TW.d.ts +308 -0
  319. package/package.json +1 -1
  320. package/es/pisell-materials.tw.css +0 -3
  321. package/lib/pisell-materials.tw.css +0 -3
@@ -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
+ }
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { DatePickerProps } from 'antd';
3
+ declare const DatePickerWithMode: import("react").FC<DatePickerProps & import("../../dataSourceForm/utils").WithModeProps>;
4
+ export default DatePickerWithMode;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const DatePicker: React.FC<(import("antd").DatePickerProps & import("../../dataSourceForm/utils").WithModeProps) & import("../../dataSourceForm/utils").WithFormItemProps>;
3
+ export default DatePicker;
@@ -0,0 +1,26 @@
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
+ 'ja': string;
12
+ 'pt': string;
13
+ original: string;
14
+ };
15
+ code: string;
16
+ calling_code: string;
17
+ currency_code: string;
18
+ sort: number;
19
+ status: string;
20
+ created_at: string;
21
+ updated_at: string;
22
+ prefix: string;
23
+ }
24
+ export declare const useCountries: () => {
25
+ data: Country[];
26
+ };
@@ -0,0 +1,27 @@
1
+ /**
2
+ * 获取nocobase数据列表
3
+ */
4
+ export declare const getCountryDataList: () => Promise<any>;
5
+ export declare const getShopCountryDataList: (locale?: any) => Promise<any>;
6
+ export interface Country {
7
+ id: number;
8
+ name: {
9
+ en: string;
10
+ 'zh-CN': string;
11
+ 'zh-HK': string;
12
+ 'ja': string;
13
+ 'pt': string;
14
+ original: string;
15
+ };
16
+ code: string;
17
+ calling_code: string;
18
+ currency_code: string;
19
+ sort: number;
20
+ status: string;
21
+ created_at: string;
22
+ updated_at: string;
23
+ prefix: string;
24
+ }
25
+ export declare const useCountries: () => {
26
+ data: Country[];
27
+ };
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  declare const Subdomain: React.FC<import("antd").InputProps & {
3
3
  onChange: (value: string) => void;
4
4
  onBlur?: ((e: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
5
- rootDomain: "custom" | "saas" | "xzero";
5
+ rootDomain: "custom" | "xzero" | "saas";
6
6
  customDomain?: string | undefined;
7
7
  value?: string | undefined;
8
8
  tenantId: string;
@@ -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,3 @@
1
+ /// <reference types="react" />
2
+ declare const SwitchWithMode: import("react").FC<import("antd").SwitchProps & import("react").RefAttributes<HTMLElement> & import("../../dataSourceForm/utils").WithModeProps>;
3
+ export default SwitchWithMode;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const Switch: React.FC<import("antd").SwitchProps & React.RefAttributes<HTMLElement> & import("../../dataSourceForm/utils").WithModeProps & import("../../dataSourceForm/utils").WithFormItemProps>;
3
+ export default Switch;
@@ -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
+ }
@@ -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;
@@ -0,0 +1,18 @@
1
+ import { ModeType } from "../../dataSourceForm/type";
2
+ export interface TranslationValue {
3
+ en: string;
4
+ 'zh-CN': string;
5
+ 'zh-HK': string;
6
+ 'ja': string;
7
+ 'pt': string;
8
+ original: string;
9
+ }
10
+ export interface TranslationProps {
11
+ renderMode: ModeType;
12
+ value?: TranslationValue;
13
+ onChange?: (value: TranslationValue) => void;
14
+ disabled?: boolean;
15
+ placeholder?: string;
16
+ className?: string;
17
+ type?: 'text' | 'textarea';
18
+ }
@@ -0,0 +1,9 @@
1
+ export declare const SUPPORTED_LANGUAGES: readonly ["original", "en", "zh-CN", "zh-HK", "ja", "pt"];
2
+ export declare const DEFAULT_MAX_COUNT = 9;
3
+ export declare const DEFAULT_UID = "-1";
4
+ export declare const MEDIA_TYPES: {
5
+ readonly VIDEO: "video/";
6
+ readonly AUDIO: "audio/";
7
+ };
8
+ export declare const IMAGE_QUALITY = 0.8;
9
+ export declare const IMAGE_TYPE = "image/jpeg";
@@ -0,0 +1,18 @@
1
+ import { RcFile, UploadFile } from 'antd/es/upload/interface';
2
+ import type { MediaMetadata, FileCountValidation, ValidationResult, MultilingualFile, FileListOptions, UploadValue, SingleMultilingualValue } from './types';
3
+ export declare const generateUid: () => string;
4
+ export declare const getSuffix: (name: string) => string;
5
+ export declare const getPointSuffix: (name: string) => string;
6
+ export declare const getFileType: (name: string) => string;
7
+ export declare const getFileName: (url: string) => string;
8
+ export declare const checkFileCount: ({ multiple, minCount, maxCount, valueLength, }: FileCountValidation) => ValidationResult;
9
+ export declare const getMediaMetadata: (file: RcFile) => Promise<MediaMetadata | null>;
10
+ export declare const genFileListByString: (value: string) => UploadFile[];
11
+ export declare const createMultilingualData: (value: string) => SingleMultilingualValue;
12
+ export declare const createMultilingualFileList: (value: string) => Record<string, UploadFile<any>[]>;
13
+ export declare const getDefaultFileList: (value: UploadValue | undefined, options: FileListOptions) => MultilingualFile[];
14
+ export declare const getFileMetadataParams: (file: RcFile & {
15
+ metadata?: MediaMetadata;
16
+ }) => Record<string, any>;
17
+ export declare const isValueEqual: (value: any, fileListValue: any) => boolean;
18
+ export declare const getBaseTime: (size: number) => 1000 | 2000 | 4000 | 8000;
@@ -0,0 +1,101 @@
1
+ declare const formFieldMap: {
2
+ FormItemCheckbox: import("react").FC<{}> & {
3
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
4
+ } & {
5
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
6
+ };
7
+ FormItemColorPicker: import("react").FC<import("./ColorPicker/type").ColorPickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
8
+ FormItemDatePicker: import("react").FC<(import("antd").DatePickerProps & import("../dataSourceForm/utils").WithModeProps) & import("../dataSourceForm/utils").WithFormItemProps>;
9
+ FormItemInput: import("react").FC<import("./Input/type").InputProps> & {
10
+ JSON: import("react").FC<any>;
11
+ Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
12
+ 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>;
13
+ URL: import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
14
+ Email: import("react").FC<import("antd").InputProps & {
15
+ onChange: (value: string) => void;
16
+ } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
17
+ Phone: import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
18
+ Mobile: import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
19
+ Subdomain: import("react").FC<import("antd").InputProps & {
20
+ onChange: (value: string) => void;
21
+ onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
22
+ rootDomain: "custom" | "xzero" | "saas";
23
+ customDomain?: string | undefined;
24
+ value?: string | undefined;
25
+ tenantId: string;
26
+ name?: string | undefined;
27
+ fieldKey?: string | undefined;
28
+ } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
29
+ };
30
+ FormItemRadio: import("react").FC<{}> & {
31
+ Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
32
+ } & {
33
+ Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
34
+ };
35
+ FormItemSelect: (props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
36
+ options?: any;
37
+ optionSourceType?: "default" | "custom" | "api" | undefined;
38
+ labelField: string;
39
+ valueField: string;
40
+ extraParams?: Record<string, any> | undefined;
41
+ } & {
42
+ dataSource?: any;
43
+ }) => JSX.Element;
44
+ FormItemInputNumber: import("react").FC<any>;
45
+ FormItemPercent: import("react").FC<any>;
46
+ FormItemTimePicker: import("react").FC<import("./TimePicker/type").TimePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
47
+ 'FormItemInput.JSON': import("react").FC<any>;
48
+ 'FormItemInput.Phone': import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
49
+ 'FormItemInput.Mobile': import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
50
+ 'FormItemInput.Email': import("react").FC<import("antd").InputProps & {
51
+ onChange: (value: string) => void;
52
+ } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
53
+ 'FormItemInput.URL': import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
54
+ 'FormItemInput.Password': import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
55
+ 'FormItemRadio.Group': import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
56
+ 'FormItemCheckbox.Group': import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
57
+ FormItemDateRangePicker: import("react").FC<import("./DateRangePicker/type").DateRangePickerProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
58
+ FormItemUpload: import("react").FC<import("./Upload/type").UploadProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
59
+ FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
60
+ FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
+ };
62
+ declare const getFieldComponent: (fieldComponent: string) => (import("react").FC<import("./Input/type").InputProps> & {
63
+ JSON: import("react").FC<any>;
64
+ Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
65
+ 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>;
66
+ URL: import("react").FC<import("antd").InputProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
67
+ Email: import("react").FC<import("antd").InputProps & {
68
+ onChange: (value: string) => void;
69
+ } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
70
+ Phone: import("react").FC<import("./Input.Phone/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
71
+ Mobile: import("react").FC<import("./Input.Mobile/WithMode").PhoneInputProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
72
+ Subdomain: import("react").FC<import("antd").InputProps & {
73
+ onChange: (value: string) => void;
74
+ onBlur?: ((e: import("react").FocusEvent<HTMLInputElement, Element>) => void) | undefined;
75
+ rootDomain: "custom" | "xzero" | "saas";
76
+ customDomain?: string | undefined;
77
+ value?: string | undefined;
78
+ tenantId: string;
79
+ name?: string | undefined;
80
+ fieldKey?: string | undefined;
81
+ } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
82
+ }) | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps> | (import("react").FC<{}> & {
83
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
84
+ } & {
85
+ Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
86
+ }) | 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<{}> & {
87
+ Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
88
+ } & {
89
+ Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
90
+ }) | ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
91
+ options?: any;
92
+ optionSourceType?: "default" | "custom" | "api" | undefined;
93
+ labelField: string;
94
+ valueField: string;
95
+ extraParams?: Record<string, any> | undefined;
96
+ } & {
97
+ dataSource?: any;
98
+ }) => 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
+ onChange: (value: string) => void;
100
+ } & 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>;
101
+ export { getFieldComponent, formFieldMap };
@@ -0,0 +1,3 @@
1
+ import { FormFieldFilterFuncMapType } from './type';
2
+ declare const formFieldFilterFuncMap: FormFieldFilterFuncMapType;
3
+ export { formFieldFilterFuncMap };
@@ -0,0 +1,18 @@
1
+ import { DataSourceType } from '../provider/dataSource/DataSourceContext';
2
+ export interface UseActionsParams {
3
+ dataSource?: DataSourceType;
4
+ currentValue?: 'server' | 'local';
5
+ __designMode?: string;
6
+ extraParams?: Record<string, any>;
7
+ }
8
+ declare const useActions: ({ dataSource: propsDataSource, currentValue: propsCurrentValue, __designMode, extraParams: propsExtraParams, }?: UseActionsParams) => {
9
+ create: (values: Record<string, any>) => Promise<any>;
10
+ get: () => Promise<any>;
11
+ update: (values: Record<string, any>) => Promise<any>;
12
+ list: (params: {
13
+ page: number;
14
+ pageSize: number;
15
+ }) => Promise<any>;
16
+ destroy: (id: string) => Promise<any>;
17
+ };
18
+ export default useActions;
@@ -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;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { VariablesContextType } from './VariablesContext';
3
+ declare const VariablesProvider: React.FC<VariablesContextType>;
4
+ export default VariablesProvider;
@@ -0,0 +1,18 @@
1
+ import './index.less';
2
+ import { ValueProps, SortType } from '../types';
3
+ declare type IdType = string | number;
4
+ declare type TreeItemProps = {
5
+ id: string | number;
6
+ key: string | number;
7
+ item: ValueProps | any;
8
+ depth: number;
9
+ lists: any[];
10
+ childrenProps?: SortType;
11
+ sensors?: any;
12
+ expandedKeys?: IdType[];
13
+ setExpandedKeys?: any;
14
+ onSelectKeys?: (ids: IdType) => void;
15
+ onChange?: (value: any[]) => void;
16
+ };
17
+ declare const TreeItem: (props: TreeItemProps) => JSX.Element;
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;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Drawer: any;
3
+ export default Drawer;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ import { DropdownProps } from './types';
4
+ declare const Dropdown: React.FC<DropdownProps & {
5
+ onOpen: () => void;
6
+ onClose: () => void;
7
+ renderItem?: (item: any, otherProps?: any) => React.ReactNode;
8
+ }>;
9
+ export default Dropdown;
@@ -0,0 +1,11 @@
1
+ import { FilterItemProps } from "../../types";
2
+ export interface DropdownProps {
3
+ quickFilter: FilterItemProps[];
4
+ otherFilter: FilterItemProps[];
5
+ onChange: (list: {
6
+ quickFilter: FilterItemProps[];
7
+ otherFilter: FilterItemProps[];
8
+ }) => void;
9
+ quickFilterMaxLength: number;
10
+ formFiltersPrefix: string;
11
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { FilterListProps } from './types';
3
+ declare const Filter: React.FC<FilterListProps>;
4
+ export default Filter;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { FilterItemProps } from "../../types";
3
+ export declare type FilterValueType = {
4
+ quickFilter: FilterItemProps[];
5
+ otherFilter: FilterItemProps[];
6
+ };
7
+ export declare type FilterListProps = {
8
+ value?: FilterValueType;
9
+ onChange?: (value: FilterValueType) => void;
10
+ quickFilterMaxLength: number;
11
+ formFiltersPrefix: string;
12
+ renderItem?: (item: any, otherProps?: any) => React.ReactNode;
13
+ };
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import { FilterItemProps } from "../../types";
3
+ import "./index.less";
4
+ declare const FilterItem: React.FC<FilterItemProps>;
5
+ export default FilterItem;
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import { FilterItemProps } from "../../types";
3
+ interface QuickFilterProps {
4
+ children?: React.ReactNode;
5
+ formFiltersPrefix: string;
6
+ value?: {
7
+ quickFilter?: FilterItemProps[];
8
+ notSortFilter?: FilterItemProps[];
9
+ };
10
+ }
11
+ declare const QuickFilter: React.FC<QuickFilterProps>;
12
+ export default QuickFilter;