@pisell/materials 3.2.6 → 3.2.8

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 (272) 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/meta.js +1 -1
  5. package/es/components/appVersionControl/types.d.ts +24 -0
  6. package/es/components/appVersionControl/utils.d.ts +13 -0
  7. package/es/components/badge/index.d.ts +7 -0
  8. package/es/components/browserSelect/index.d.ts +21 -0
  9. package/es/components/buttonGroupPreview/index.d.ts +19 -0
  10. package/es/components/cardPro/index.d.ts +3 -0
  11. package/es/components/checkbox/index.d.ts +2 -0
  12. package/es/components/colorPicker/index.d.ts +3 -0
  13. package/es/components/config-provider/index.d.ts +7 -0
  14. package/es/components/cropPhoto/index.d.ts +3 -0
  15. package/es/components/customSelect/index.d.ts +17 -0
  16. package/es/components/dataSourceComponents/dataSourceForm/group/index.d.ts +20 -0
  17. package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +15 -0
  18. package/es/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +8 -0
  19. package/es/components/dataSourceComponents/dataSourceForm/provider/hooks/useFormSetting.d.ts +5 -0
  20. package/es/components/dataSourceComponents/dataSourceForm/provider/hooks/useJsonPrefixPath.d.ts +5 -0
  21. package/es/components/dataSourceComponents/dataSourceForm/provider/jsonWrapper/JsonWrapperContext.d.ts +6 -0
  22. package/es/components/dataSourceComponents/dataSourceForm/serve.d.ts +149 -0
  23. package/es/components/dataSourceComponents/dataSourceForm/type.d.ts +31 -0
  24. package/es/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -0
  25. package/es/components/dataSourceComponents/dataSourceMenu/index.d.ts +8 -0
  26. package/es/components/dataSourceComponents/dataSourceTable/hooks/usePagination.d.ts +16 -0
  27. package/es/components/dataSourceComponents/dataSourceTable/provider/tableSetting/TableSettingContext.d.ts +7 -0
  28. package/es/components/dataSourceComponents/dataSourceTable/provider/tableSetting/TableSettingProvider.d.ts +8 -0
  29. package/es/components/dataSourceComponents/dataSourceWrapper/BaseWrapper.d.ts +7 -0
  30. package/es/components/dataSourceComponents/fields/Checkbox/type.d.ts +9 -0
  31. package/es/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +4 -0
  32. package/es/components/dataSourceComponents/fields/ColorPicker/type.d.ts +5 -0
  33. package/es/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +5 -0
  34. package/es/components/dataSourceComponents/fields/DatePicker/type.d.ts +6 -0
  35. package/es/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +4 -0
  36. package/es/components/dataSourceComponents/fields/DateRangePicker/type.d.ts +4 -0
  37. package/es/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +4 -0
  38. package/es/components/dataSourceComponents/fields/IconSelect/type.d.ts +8 -0
  39. package/es/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +4 -0
  40. package/es/components/dataSourceComponents/fields/Input/type.d.ts +8 -0
  41. package/es/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +4 -0
  42. package/es/components/dataSourceComponents/fields/Input.Email/type.d.ts +5 -0
  43. package/es/components/dataSourceComponents/fields/Input.Json/type.d.ts +5 -0
  44. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  45. package/es/components/dataSourceComponents/fields/Input.Mobile/type.d.ts +5 -0
  46. package/es/components/dataSourceComponents/fields/Input.Password/type.d.ts +5 -0
  47. package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +24 -0
  48. package/es/components/dataSourceComponents/fields/Input.Phone/type.d.ts +5 -0
  49. package/es/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +4 -0
  50. package/es/components/dataSourceComponents/fields/Input.Subdomain/serve.d.ts +11 -0
  51. package/es/components/dataSourceComponents/fields/Input.Subdomain/type.d.ts +5 -0
  52. package/es/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +4 -0
  53. package/es/components/dataSourceComponents/fields/Input.TextArea/type.d.ts +5 -0
  54. package/es/components/dataSourceComponents/fields/Input.Url/type.d.ts +5 -0
  55. package/es/components/dataSourceComponents/fields/InputNumber/ReadPretty.d.ts +5 -0
  56. package/es/components/dataSourceComponents/fields/InputNumber/type.d.ts +7 -0
  57. package/es/components/dataSourceComponents/fields/InputNumber/utils.d.ts +1 -0
  58. package/es/components/dataSourceComponents/fields/Radio/type.d.ts +8 -0
  59. package/es/components/dataSourceComponents/fields/Select/type.d.ts +5 -0
  60. package/es/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +4 -0
  61. package/es/components/dataSourceComponents/fields/TimePicker/type.d.ts +5 -0
  62. package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +5 -0
  63. package/es/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +4 -0
  64. package/es/components/dataSourceComponents/fields/Translation/type.d.ts +16 -0
  65. package/es/components/dataSourceComponents/fields/Upload/constants.d.ts +9 -0
  66. package/es/components/dataSourceComponents/fields/Upload/type.d.ts +37 -0
  67. package/es/components/dataSourceComponents/fields/Upload/types.d.ts +48 -0
  68. package/es/components/dataSourceComponents/hooks/useComponentId.d.ts +2 -0
  69. package/es/components/dataSourceComponents/hooks/useCtxActions.d.ts +8 -0
  70. package/es/components/dataSourceComponents/hooks/useDataSource.d.ts +5 -0
  71. package/es/components/dataSourceComponents/hooks/useParseActionsVariable.d.ts +6 -0
  72. package/es/components/dataSourceComponents/hooks/usePlatform.d.ts +3 -0
  73. package/es/components/dataSourceComponents/hooks/useVariables.d.ts +2 -0
  74. package/es/components/dataSourceComponents/provider/actions/ActionsContext.d.ts +11 -0
  75. package/es/components/dataSourceComponents/provider/actions/ActionsProvider.d.ts +12 -0
  76. package/es/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +119 -0
  77. package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +12 -0
  78. package/es/components/dataSourceComponents/provider/variables/utils.d.ts +12 -0
  79. package/es/components/dataSourceComponents/utils/index.d.ts +0 -0
  80. package/es/components/date-picker/constants.d.ts +39 -0
  81. package/es/components/date-picker/hooks/useMediaQuery.d.ts +2 -0
  82. package/es/components/iconSelect/utils.d.ts +14 -0
  83. package/es/components/iconfont/index.d.ts +8 -0
  84. package/es/components/image/index.d.ts +10 -0
  85. package/es/components/login-and-register/index.d.ts +82 -0
  86. package/es/components/organizationTenantSwitcher/index.d.ts +17 -0
  87. package/es/components/page-header/index.d.ts +14 -0
  88. package/es/components/pisellAnchor/index.d.ts +23 -0
  89. package/es/components/pisellAppCard/index.d.ts +3 -0
  90. package/es/components/pisellAppCard/types.d.ts +34 -0
  91. package/es/components/pisellDraggable/components/Action/Action.d.ts +10 -0
  92. package/es/components/pisellDraggable/components/Action/index.d.ts +2 -0
  93. package/es/components/pisellDraggable/components/Handle/Handle.d.ts +3 -0
  94. package/es/components/pisellDraggable/components/Handle/index.d.ts +1 -0
  95. package/es/components/pisellDraggable/components/Remove/Remove.d.ts +3 -0
  96. package/es/components/pisellDraggable/components/Remove/index.d.ts +1 -0
  97. package/es/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +9 -0
  98. package/es/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +23 -0
  99. package/es/components/pisellDraggable/components/TreeItem/index.d.ts +2 -0
  100. package/es/components/pisellDraggable/components/index.d.ts +4 -0
  101. package/es/components/pisellDraggable/index.d.ts +32 -0
  102. package/es/components/pisellDraggable/types.d.ts +19 -0
  103. package/es/components/pisellDraggable/utilities.d.ts +17 -0
  104. package/es/components/pisellDropSort/PisellDropSort.d.ts +5 -0
  105. package/es/components/pisellDropSort/components/SortableItem/index.d.ts +25 -0
  106. package/es/components/pisellDropSort/index.d.ts +3 -0
  107. package/es/components/pisellDropSort/types.d.ts +52 -0
  108. package/es/components/pisellLayout/content.d.ts +10 -0
  109. package/es/components/pisellLayout/footer.d.ts +8 -0
  110. package/es/components/pisellLayout/header.d.ts +10 -0
  111. package/es/components/pisellLayout/index.d.ts +14 -0
  112. package/es/components/pisellLayout/sider.d.ts +8 -0
  113. package/es/components/pisellMenu/PisellMenu.d.ts +9 -0
  114. package/es/components/pisellMenu/index.d.ts +3 -0
  115. package/es/components/pisellMenu/types.d.ts +26 -0
  116. package/es/components/pisellModal/components/Information/index.d.ts +21 -0
  117. package/es/components/pisellNavigationMenu/index.d.ts +3 -0
  118. package/es/components/pisellNavigationMenu/types.d.ts +64 -0
  119. package/es/components/pisellNavigationMenu/utils.d.ts +15 -0
  120. package/es/components/pisellQRScanner/index.d.ts +37 -0
  121. package/es/components/pisellQrcode/index.d.ts +10 -0
  122. package/es/components/pisellStatisticList/index.d.ts +21 -0
  123. package/es/components/pisellTags/index.d.ts +13 -0
  124. package/es/components/pisellTags/utils.d.ts +1 -0
  125. package/es/components/pisellUpload/index.d.ts +10 -0
  126. package/es/components/pisellViewGrid/index.d.ts +16 -0
  127. package/es/components/profileMenu/index.d.ts +26 -0
  128. package/es/components/radio/index.d.ts +2 -0
  129. package/es/components/select/index.d.ts +9 -0
  130. package/es/components/table/Tabs/index.d.ts +14 -0
  131. package/es/components/table/utils.d.ts +14 -0
  132. package/es/components/tabs/index.d.ts +16 -0
  133. package/es/components/typography/index.d.ts +2 -0
  134. package/es/components/versionModal/index.d.ts +23 -0
  135. package/es/hooks/useEngineContext.d.ts +9 -0
  136. package/es/hooks/useSetRequest.d.ts +2 -0
  137. package/es/utils/mergeWith.d.ts +1 -0
  138. package/lib/components/appVersionControl/types.d.ts +24 -0
  139. package/lib/components/appVersionControl/utils.d.ts +13 -0
  140. package/lib/components/badge/index.d.ts +7 -0
  141. package/lib/components/browserSelect/index.d.ts +21 -0
  142. package/lib/components/buttonGroupPreview/index.d.ts +19 -0
  143. package/lib/components/cardPro/index.d.ts +3 -0
  144. package/lib/components/checkbox/index.d.ts +2 -0
  145. package/lib/components/colorPicker/index.d.ts +3 -0
  146. package/lib/components/config-provider/index.d.ts +7 -0
  147. package/lib/components/cropPhoto/index.d.ts +3 -0
  148. package/lib/components/customSelect/index.d.ts +17 -0
  149. package/lib/components/dataSourceComponents/dataSourceForm/group/index.d.ts +20 -0
  150. package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingContext.d.ts +15 -0
  151. package/lib/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.d.ts +8 -0
  152. package/lib/components/dataSourceComponents/dataSourceForm/provider/hooks/useFormSetting.d.ts +5 -0
  153. package/lib/components/dataSourceComponents/dataSourceForm/provider/hooks/useJsonPrefixPath.d.ts +5 -0
  154. package/lib/components/dataSourceComponents/dataSourceForm/provider/jsonWrapper/JsonWrapperContext.d.ts +6 -0
  155. package/lib/components/dataSourceComponents/dataSourceForm/serve.d.ts +149 -0
  156. package/lib/components/dataSourceComponents/dataSourceForm/type.d.ts +31 -0
  157. package/lib/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -0
  158. package/lib/components/dataSourceComponents/dataSourceMenu/index.d.ts +8 -0
  159. package/lib/components/dataSourceComponents/dataSourceTable/hooks/usePagination.d.ts +16 -0
  160. package/lib/components/dataSourceComponents/dataSourceTable/provider/tableSetting/TableSettingContext.d.ts +7 -0
  161. package/lib/components/dataSourceComponents/dataSourceTable/provider/tableSetting/TableSettingProvider.d.ts +8 -0
  162. package/lib/components/dataSourceComponents/dataSourceWrapper/BaseWrapper.d.ts +7 -0
  163. package/lib/components/dataSourceComponents/fields/Checkbox/type.d.ts +9 -0
  164. package/lib/components/dataSourceComponents/fields/ColorPicker/ReadPretty.d.ts +4 -0
  165. package/lib/components/dataSourceComponents/fields/ColorPicker/type.d.ts +5 -0
  166. package/lib/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +5 -0
  167. package/lib/components/dataSourceComponents/fields/DatePicker/type.d.ts +6 -0
  168. package/lib/components/dataSourceComponents/fields/DateRangePicker/ReadPretty.d.ts +4 -0
  169. package/lib/components/dataSourceComponents/fields/DateRangePicker/type.d.ts +4 -0
  170. package/lib/components/dataSourceComponents/fields/IconSelect/ReadPretty.d.ts +4 -0
  171. package/lib/components/dataSourceComponents/fields/IconSelect/type.d.ts +8 -0
  172. package/lib/components/dataSourceComponents/fields/Input/ReadPretty.d.ts +4 -0
  173. package/lib/components/dataSourceComponents/fields/Input/type.d.ts +8 -0
  174. package/lib/components/dataSourceComponents/fields/Input.Email/ReadPretty.d.ts +4 -0
  175. package/lib/components/dataSourceComponents/fields/Input.Email/type.d.ts +5 -0
  176. package/lib/components/dataSourceComponents/fields/Input.Json/type.d.ts +5 -0
  177. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  178. package/lib/components/dataSourceComponents/fields/Input.Mobile/type.d.ts +5 -0
  179. package/lib/components/dataSourceComponents/fields/Input.Password/type.d.ts +5 -0
  180. package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +24 -0
  181. package/lib/components/dataSourceComponents/fields/Input.Phone/type.d.ts +5 -0
  182. package/lib/components/dataSourceComponents/fields/Input.Subdomain/ReadPretty.d.ts +4 -0
  183. package/lib/components/dataSourceComponents/fields/Input.Subdomain/serve.d.ts +11 -0
  184. package/lib/components/dataSourceComponents/fields/Input.Subdomain/type.d.ts +5 -0
  185. package/lib/components/dataSourceComponents/fields/Input.TextArea/ReadPretty.d.ts +4 -0
  186. package/lib/components/dataSourceComponents/fields/Input.TextArea/type.d.ts +5 -0
  187. package/lib/components/dataSourceComponents/fields/Input.Url/type.d.ts +5 -0
  188. package/lib/components/dataSourceComponents/fields/InputNumber/ReadPretty.d.ts +5 -0
  189. package/lib/components/dataSourceComponents/fields/InputNumber/type.d.ts +7 -0
  190. package/lib/components/dataSourceComponents/fields/InputNumber/utils.d.ts +1 -0
  191. package/lib/components/dataSourceComponents/fields/Radio/type.d.ts +8 -0
  192. package/lib/components/dataSourceComponents/fields/Select/type.d.ts +5 -0
  193. package/lib/components/dataSourceComponents/fields/TimePicker/ReadPretty.d.ts +4 -0
  194. package/lib/components/dataSourceComponents/fields/TimePicker/type.d.ts +5 -0
  195. package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +5 -0
  196. package/lib/components/dataSourceComponents/fields/Translation/ReadPretty.d.ts +4 -0
  197. package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +16 -0
  198. package/lib/components/dataSourceComponents/fields/Upload/constants.d.ts +9 -0
  199. package/lib/components/dataSourceComponents/fields/Upload/type.d.ts +37 -0
  200. package/lib/components/dataSourceComponents/fields/Upload/types.d.ts +48 -0
  201. package/lib/components/dataSourceComponents/hooks/useComponentId.d.ts +2 -0
  202. package/lib/components/dataSourceComponents/hooks/useCtxActions.d.ts +8 -0
  203. package/lib/components/dataSourceComponents/hooks/useDataSource.d.ts +5 -0
  204. package/lib/components/dataSourceComponents/hooks/useParseActionsVariable.d.ts +6 -0
  205. package/lib/components/dataSourceComponents/hooks/usePlatform.d.ts +3 -0
  206. package/lib/components/dataSourceComponents/hooks/useVariables.d.ts +2 -0
  207. package/lib/components/dataSourceComponents/provider/actions/ActionsContext.d.ts +11 -0
  208. package/lib/components/dataSourceComponents/provider/actions/ActionsProvider.d.ts +12 -0
  209. package/lib/components/dataSourceComponents/provider/dataSource/DataSourceContext.d.ts +119 -0
  210. package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +12 -0
  211. package/lib/components/dataSourceComponents/provider/variables/utils.d.ts +12 -0
  212. package/lib/components/dataSourceComponents/utils/index.d.ts +0 -0
  213. package/lib/components/date-picker/constants.d.ts +39 -0
  214. package/lib/components/date-picker/hooks/useMediaQuery.d.ts +2 -0
  215. package/lib/components/iconSelect/utils.d.ts +14 -0
  216. package/lib/components/iconfont/index.d.ts +8 -0
  217. package/lib/components/image/index.d.ts +10 -0
  218. package/lib/components/login-and-register/index.d.ts +82 -0
  219. package/lib/components/organizationTenantSwitcher/index.d.ts +17 -0
  220. package/lib/components/page-header/index.d.ts +14 -0
  221. package/lib/components/pisellAnchor/index.d.ts +23 -0
  222. package/lib/components/pisellAppCard/index.d.ts +3 -0
  223. package/lib/components/pisellAppCard/types.d.ts +34 -0
  224. package/lib/components/pisellDraggable/components/Action/Action.d.ts +10 -0
  225. package/lib/components/pisellDraggable/components/Action/index.d.ts +2 -0
  226. package/lib/components/pisellDraggable/components/Handle/Handle.d.ts +3 -0
  227. package/lib/components/pisellDraggable/components/Handle/index.d.ts +1 -0
  228. package/lib/components/pisellDraggable/components/Remove/Remove.d.ts +3 -0
  229. package/lib/components/pisellDraggable/components/Remove/index.d.ts +1 -0
  230. package/lib/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +9 -0
  231. package/lib/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +23 -0
  232. package/lib/components/pisellDraggable/components/TreeItem/index.d.ts +2 -0
  233. package/lib/components/pisellDraggable/components/index.d.ts +4 -0
  234. package/lib/components/pisellDraggable/index.d.ts +32 -0
  235. package/lib/components/pisellDraggable/types.d.ts +19 -0
  236. package/lib/components/pisellDraggable/utilities.d.ts +17 -0
  237. package/lib/components/pisellDropSort/PisellDropSort.d.ts +5 -0
  238. package/lib/components/pisellDropSort/components/SortableItem/index.d.ts +25 -0
  239. package/lib/components/pisellDropSort/index.d.ts +3 -0
  240. package/lib/components/pisellDropSort/types.d.ts +52 -0
  241. package/lib/components/pisellLayout/content.d.ts +10 -0
  242. package/lib/components/pisellLayout/footer.d.ts +8 -0
  243. package/lib/components/pisellLayout/header.d.ts +10 -0
  244. package/lib/components/pisellLayout/index.d.ts +14 -0
  245. package/lib/components/pisellLayout/sider.d.ts +8 -0
  246. package/lib/components/pisellMenu/PisellMenu.d.ts +9 -0
  247. package/lib/components/pisellMenu/index.d.ts +3 -0
  248. package/lib/components/pisellMenu/types.d.ts +26 -0
  249. package/lib/components/pisellModal/components/Information/index.d.ts +21 -0
  250. package/lib/components/pisellNavigationMenu/index.d.ts +3 -0
  251. package/lib/components/pisellNavigationMenu/types.d.ts +64 -0
  252. package/lib/components/pisellNavigationMenu/utils.d.ts +15 -0
  253. package/lib/components/pisellQRScanner/index.d.ts +37 -0
  254. package/lib/components/pisellQrcode/index.d.ts +10 -0
  255. package/lib/components/pisellStatisticList/index.d.ts +21 -0
  256. package/lib/components/pisellTags/index.d.ts +13 -0
  257. package/lib/components/pisellTags/utils.d.ts +1 -0
  258. package/lib/components/pisellUpload/index.d.ts +10 -0
  259. package/lib/components/pisellViewGrid/index.d.ts +16 -0
  260. package/lib/components/profileMenu/index.d.ts +26 -0
  261. package/lib/components/radio/index.d.ts +2 -0
  262. package/lib/components/select/index.d.ts +9 -0
  263. package/lib/components/table/Tabs/index.d.ts +14 -0
  264. package/lib/components/table/utils.d.ts +14 -0
  265. package/lib/components/tabs/index.d.ts +16 -0
  266. package/lib/components/typography/index.d.ts +2 -0
  267. package/lib/components/versionModal/index.d.ts +23 -0
  268. package/lib/hooks/useEngineContext.d.ts +9 -0
  269. package/lib/hooks/useSetRequest.d.ts +2 -0
  270. package/lib/utils/mergeWith.d.ts +1 -0
  271. package/lowcode/button-group/meta.ts +1 -4
  272. package/package.json +1 -1
@@ -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
+ };
@@ -0,0 +1,5 @@
1
+ import { InputProps as AntInputProps } from 'antd';
2
+ import { ModeType } from "../../dataSourceForm/type";
3
+ export interface InputProps extends AntInputProps {
4
+ renderMode: ModeType;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { PasswordProps as AntPasswordProps } from 'antd/es/input/Password';
2
+ import { ModeType } from "../../dataSourceForm/type";
3
+ export interface PasswordProps extends AntPasswordProps {
4
+ renderMode: ModeType;
5
+ }
@@ -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
+ };
@@ -0,0 +1,5 @@
1
+ import { InputProps as AntInputProps } from 'antd';
2
+ import { ModeType } from "../../dataSourceForm/type";
3
+ export interface InputProps extends AntInputProps {
4
+ renderMode: ModeType;
5
+ }
@@ -0,0 +1,4 @@
1
+ import { InputProps } from './type';
2
+ import './ReadPretty.less';
3
+ declare const InputReadPretty: (props: InputProps) => JSX.Element;
4
+ export default InputReadPretty;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * 获取nocobase数据列表 获取域名后缀
3
+ */
4
+ export declare const getTenantData: (id: string) => Promise<TenantData>;
5
+ export interface TenantData {
6
+ 'saas.domain': string;
7
+ }
8
+ /**
9
+ * 自定义 Hook,用于获取租户数据
10
+ */
11
+ export declare const useTenantData: (rootDomain: string, tenantId?: string) => TenantData | undefined;
@@ -0,0 +1,5 @@
1
+ import { InputProps as AntInputProps } from 'antd';
2
+ import { ModeType } from "../../dataSourceForm/type";
3
+ export interface InputProps extends AntInputProps {
4
+ renderMode: ModeType;
5
+ }
@@ -0,0 +1,4 @@
1
+ import { TextAreaProps } from "./type";
2
+ import "./ReadPretty.less";
3
+ declare const TextAreaReadPretty: (props: TextAreaProps) => JSX.Element;
4
+ export default TextAreaReadPretty;
@@ -0,0 +1,5 @@
1
+ import { TextAreaProps as AntTextAreaProps } from 'antd/es/input/TextArea';
2
+ import { ModeType } from "../../dataSourceForm/type";
3
+ export interface TextAreaProps extends AntTextAreaProps {
4
+ renderMode: ModeType;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { InputProps as AntInputProps } from 'antd';
2
+ import { ModeType } from "../../dataSourceForm/type";
3
+ export interface UrlProps extends AntInputProps {
4
+ renderMode: ModeType;
5
+ }
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { InputNumberProps } from './type';
3
+ import './ReadPretty.less';
4
+ declare const ReadPretty: React.FC<InputNumberProps>;
5
+ export default ReadPretty;
@@ -0,0 +1,7 @@
1
+ import { InputNumberProps as AntInputNumberProps } from "antd/es/input-number";
2
+ import { ModeType } from "../../dataSourceForm/type";
3
+ export interface InputNumberProps extends AntInputNumberProps {
4
+ renderMode: ModeType;
5
+ useThousandsSeparator: boolean;
6
+ previewFormatter?: 'none' | 'thousand' | 'million' | 'billion';
7
+ }
@@ -0,0 +1 @@
1
+ export declare const formatNumberWithUnit: (value: number, precision?: number, previewFormatter?: 'none' | 'thousand' | 'million' | 'billion') => string;
@@ -0,0 +1,8 @@
1
+ import { RadioProps as AntRadioProps, RadioGroupProps as AntRadioGroupProps } from 'antd';
2
+ import { ModeType } from "../../dataSourceForm/type";
3
+ export interface RadioProps extends AntRadioProps {
4
+ renderMode: ModeType;
5
+ }
6
+ export interface RadioGroupProps extends AntRadioGroupProps {
7
+ renderMode: ModeType;
8
+ }
@@ -0,0 +1,5 @@
1
+ import { SelectProps as AntSelectProps } from 'antd';
2
+ import { ModeType } from "../../dataSourceForm/type";
3
+ export interface SelectProps extends AntSelectProps {
4
+ renderMode: ModeType;
5
+ }
@@ -0,0 +1,4 @@
1
+ import { TimePickerProps } from './type';
2
+ import './ReadPretty.less';
3
+ declare const TimePickerReadPretty: (props: TimePickerProps) => JSX.Element;
4
+ export default TimePickerReadPretty;
@@ -0,0 +1,5 @@
1
+ import { TimePickerProps as AntTimePickerProps } from 'antd';
2
+ import { ModeType } from "../../dataSourceForm/type";
3
+ export interface TimePickerProps extends Omit<AntTimePickerProps, 'renderMode'> {
4
+ renderMode: ModeType;
5
+ }
@@ -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,4 @@
1
+ import { TranslationProps } from './type';
2
+ import './ReadPretty.less';
3
+ declare const TranslationReadPretty: (props: TranslationProps) => JSX.Element;
4
+ 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
+ }
@@ -0,0 +1,9 @@
1
+ export declare const SUPPORTED_LANGUAGES: readonly ["original", "en", "zh-CN", "zh-HK"];
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,37 @@
1
+ import { UploadFile as AntdUploadFile } from 'antd/es/upload/interface';
2
+ import type { UploadValue, UploadChangeHandler } from './types';
3
+ export interface UploadFile extends AntdUploadFile {
4
+ metadata?: {
5
+ width?: number;
6
+ height?: number;
7
+ duration?: number;
8
+ bitrate?: number;
9
+ };
10
+ }
11
+ export interface UploadProps {
12
+ renderMode?: string;
13
+ fieldKey: string;
14
+ maxSize?: number;
15
+ minCount?: number;
16
+ maxCount?: number;
17
+ multiple?: boolean;
18
+ presetType?: string[];
19
+ presetTypeString?: string[];
20
+ customType?: string[];
21
+ enablePresetType?: boolean;
22
+ enableCustomType?: boolean;
23
+ allowPreview?: boolean;
24
+ value?: UploadValue;
25
+ typeMaxSizeMap?: Record<string, number>;
26
+ enableMultilingual?: boolean;
27
+ onChange?: UploadChangeHandler;
28
+ disabled?: boolean;
29
+ mediaUploadUrl?: string;
30
+ getHeaders?: () => Record<string, string>;
31
+ mediaConfig?: {
32
+ data: {
33
+ upload_onetime_limit: number;
34
+ upload_maxsize: number;
35
+ };
36
+ };
37
+ }
@@ -0,0 +1,48 @@
1
+ import type { UploadFile } from 'antd/es/upload/interface';
2
+ import { SUPPORTED_LANGUAGES } from './constants';
3
+ export declare type Language = typeof SUPPORTED_LANGUAGES[number];
4
+ export interface MediaMetadata {
5
+ width?: number;
6
+ height?: number;
7
+ duration?: number;
8
+ bitrate?: number;
9
+ cover?: File;
10
+ }
11
+ export interface FileCountValidation {
12
+ multiple: boolean;
13
+ minCount: number;
14
+ maxCount: number;
15
+ valueLength: number;
16
+ }
17
+ export interface ValidationResult {
18
+ success: boolean;
19
+ message?: string;
20
+ }
21
+ export interface MultilingualFile extends UploadFile {
22
+ multilingual?: SingleMultilingualValue;
23
+ multilingualFileList?: Record<Language, UploadFile[]>;
24
+ response?: {
25
+ status: boolean;
26
+ data: {
27
+ url: string;
28
+ };
29
+ };
30
+ }
31
+ export interface FileListOptions {
32
+ enableMultilingual: boolean;
33
+ multiple: boolean;
34
+ }
35
+ export declare type SingleUploadValue = string;
36
+ export declare type MultipleUploadValue = string[];
37
+ export declare type SingleMultilingualValue = Record<Language, string>;
38
+ export declare type MultipleMultilingualValue = SingleMultilingualValue[];
39
+ export declare type UploadValue = SingleUploadValue | MultipleUploadValue | SingleMultilingualValue | MultipleMultilingualValue;
40
+ export interface MultilingualUploadResponse {
41
+ status: boolean;
42
+ data: {
43
+ url: string;
44
+ };
45
+ }
46
+ export declare type UploadChangeHandler = (value: UploadValue) => void;
47
+ export declare type NonNullMultilingualValue = NonNullable<SingleMultilingualValue>;
48
+ export declare type NonNullMultilingualArray = NonNullMultilingualValue[];
@@ -0,0 +1,2 @@
1
+ declare const useComponentId: (props: Record<string, any>) => any;
2
+ export default useComponentId;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 组件上下文中操作的provider
3
+ * visible
4
+ * setVisible
5
+ * @returns
6
+ */
7
+ declare const useCtxActions: () => import("../provider/actions/ActionsContext").ActionsContextType;
8
+ export default useCtxActions;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * 获取当前dataSource
3
+ */
4
+ declare const useDataSource: () => import("../provider/dataSource/DataSourceContext").DataSourceContextType;
5
+ export default useDataSource;
@@ -0,0 +1,6 @@
1
+ import { Collection } from '../dataSourceForm/serve';
2
+ declare type Actions = Collection['actions'];
3
+ declare const useParseActionsVariable: () => {
4
+ parseActions: (actions: Actions, localVariables: Record<string, any>) => Record<string, any>;
5
+ };
6
+ export default useParseActionsVariable;
@@ -0,0 +1,3 @@
1
+ declare const usePlatform: () => any;
2
+ declare const useIsShop: () => boolean;
3
+ export { usePlatform, useIsShop };
@@ -0,0 +1,2 @@
1
+ declare const useVariables: () => import("../provider/variables/VariablesContext").VariablesContextType;
2
+ export default useVariables;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ export interface ActionsContextType {
3
+ visible?: boolean;
4
+ setVisible?: (visible: boolean) => void;
5
+ refreshTableData?: () => void;
6
+ onClose?: () => void;
7
+ beforeClose?: () => boolean | Promise<boolean>;
8
+ setBeforeClose?: (beforeClose: () => boolean | Promise<boolean>) => void;
9
+ }
10
+ declare const ActionsContext: import("react").Context<ActionsContextType>;
11
+ export default ActionsContext;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { ActionsContextType } from './ActionsContext';
3
+ interface ActionsProviderProps extends ActionsContextType {
4
+ children: React.ReactNode;
5
+ }
6
+ /**
7
+ * 自定义请求的provider
8
+ * @param props
9
+ * @constructor
10
+ */
11
+ declare const ActionsProvider: React.FC<ActionsProviderProps>;
12
+ export default ActionsProvider;
@@ -0,0 +1,119 @@
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
+ actions: {
48
+ get: ActionsItem;
49
+ update: ActionsItem;
50
+ create: ActionsItem;
51
+ delete: ActionsItem;
52
+ list: ActionsItem;
53
+ };
54
+ headerDataSource: string;
55
+ dataSourceKey: string;
56
+ filterTargetKey: string;
57
+ introspected: boolean;
58
+ isCustomApi: boolean;
59
+ key: string;
60
+ tableName: string;
61
+ logging: boolean;
62
+ name: string;
63
+ title: string;
64
+ titleField: string;
65
+ types: ActionTypes[];
66
+ fields: Field[];
67
+ options: {
68
+ apiType: string;
69
+ baseUrl: string;
70
+ };
71
+ };
72
+ export declare type DataSourceContextProps = {
73
+ dataSource: DataSourceType;
74
+ children?: React.ReactNode;
75
+ currentValue?: string;
76
+ actions?: {
77
+ list?: () => Promise<any>;
78
+ get?: () => Promise<any>;
79
+ update?: () => Promise<any>;
80
+ create?: () => Promise<any>;
81
+ destroy?: () => Promise<any>;
82
+ };
83
+ requestOptions?: {
84
+ list?: any;
85
+ get?: any;
86
+ update?: any;
87
+ create?: any;
88
+ destroy?: any;
89
+ };
90
+ overrideData?: {
91
+ list?: any;
92
+ get?: any;
93
+ };
94
+ autoRun?: {
95
+ list?: boolean;
96
+ get?: boolean;
97
+ };
98
+ extraParams?: {
99
+ list?: Record<string, any>;
100
+ get?: Record<string, any>;
101
+ update?: Record<string, any>;
102
+ create?: Record<string, any>;
103
+ destroy?: Record<string, any>;
104
+ };
105
+ __id?: string;
106
+ __designMode?: string;
107
+ };
108
+ export interface DataSourceContextType {
109
+ dataSource?: DataSourceType;
110
+ list: Result<any, any>;
111
+ destroy: Result<any, any>;
112
+ get: Result<any, any>;
113
+ update: Result<any, any>;
114
+ create: Result<any, any>;
115
+ __designMode?: string;
116
+ getCurrentRecord: () => any;
117
+ }
118
+ export declare const DataSourceContext: import("react").Context<DataSourceContextType>;
119
+ 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,12 @@
1
+ export declare const genComponentValueVariable: (componentId: string, value: Record<string, any>) => {
2
+ [x: string]: {
3
+ value: Record<string, any>;
4
+ };
5
+ };
6
+ export declare const genComponentFunctionVariable: (componentId: string, value: Record<string, any>) => {
7
+ [x: string]: {
8
+ functions: Record<string, any>;
9
+ };
10
+ };
11
+ export declare const isVariableKey: (key: string) => boolean;
12
+ export declare const getVariableKey: (str: string) => string | undefined;
@@ -0,0 +1,39 @@
1
+ import dayjs from 'dayjs';
2
+ export declare const presetDetailMap: {
3
+ today: {
4
+ getValue: () => dayjs.Dayjs;
5
+ label: () => any;
6
+ };
7
+ yesterday: {
8
+ getValue: () => dayjs.Dayjs;
9
+ label: () => any;
10
+ };
11
+ tomorrow: {
12
+ getValue: () => dayjs.Dayjs;
13
+ label: () => any;
14
+ };
15
+ next_monday: {
16
+ getValue: () => dayjs.Dayjs;
17
+ label: () => any;
18
+ };
19
+ last_friday: {
20
+ getValue: () => dayjs.Dayjs;
21
+ label: () => any;
22
+ };
23
+ first_day_of_this_month: {
24
+ getValue: () => dayjs.Dayjs;
25
+ label: () => any;
26
+ };
27
+ last_day_of_this_month: {
28
+ getValue: () => dayjs.Dayjs;
29
+ label: () => any;
30
+ };
31
+ first_day_of_next_month: {
32
+ getValue: () => dayjs.Dayjs;
33
+ label: () => any;
34
+ };
35
+ last_day_of_last_month: {
36
+ getValue: () => dayjs.Dayjs;
37
+ label: () => any;
38
+ };
39
+ };
@@ -0,0 +1,2 @@
1
+ declare const useMediaQuery: (query: string) => boolean;
2
+ export default useMediaQuery;
@@ -0,0 +1,14 @@
1
+ export declare type IconGroup = 'outlined' | 'filled' | 'two-tone' | 'iconfont';
2
+ export declare function get(obj: any, path: string, defaultValue?: any): any;
3
+ export declare function getAntdIconList(): ({
4
+ name: any;
5
+ group: "filled" | "outlined" | "two-tone";
6
+ icon: any;
7
+ } | null)[];
8
+ interface IconItem {
9
+ name: string;
10
+ group: IconGroup;
11
+ icon: any;
12
+ }
13
+ export declare function getIconList(): IconItem[];
14
+ export {};
@@ -0,0 +1,8 @@
1
+ import { IconComponentProps } from '@ant-design/icons/es/components/Icon';
2
+ import React from 'react';
3
+ interface IconFontProps extends IconComponentProps {
4
+ type: string;
5
+ onClick?: React.MouseEventHandler<HTMLSpanElement>;
6
+ }
7
+ declare const IconFont: React.FC<IconFontProps>;
8
+ export default IconFont;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { ImageProps as AntdImageProps } from 'antd';
3
+ export interface ImageProps extends Omit<AntdImageProps, 'placeholder'> {
4
+ /**
5
+ * 占位图类型
6
+ */
7
+ fallbackType?: 'image' | 'avatar' | 'product';
8
+ }
9
+ declare const Image: React.FC<ImageProps>;
10
+ export default Image;