@pisell/materials 6.9.2 → 6.9.4

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 (257) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.js +15 -15
  8. package/build/lowcode/view.js +15 -15
  9. package/es/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +0 -1
  10. package/es/components/PisellCards/components/GraphicTextCard/types.d.ts +290 -0
  11. package/es/components/PisellCards/components/MultilevelCard/components/PanelWrapper.d.ts +7 -0
  12. package/es/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts +0 -1
  13. package/es/components/PisellCards/components/TextCard/TextCard.d.ts +7 -0
  14. package/es/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +26 -0
  15. package/es/components/PisellCards/components/TextCard/components/TextContent.d.ts +21 -0
  16. package/es/components/PisellCards/components/TextCard/types.d.ts +270 -0
  17. package/es/components/PisellCards/index.d.ts +0 -1
  18. package/es/components/cardPro/index.d.ts +3 -0
  19. package/es/components/dataSourceComponents/dataSourceForm/serve.d.ts +179 -0
  20. package/es/components/dataSourceComponents/dataSourceForm/urlUtils.d.ts +24 -0
  21. package/es/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +2 -0
  22. package/es/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  23. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +0 -1
  24. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +4 -0
  25. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  26. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +84 -0
  27. package/es/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +0 -1
  28. package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  29. package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +0 -1
  30. package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +5 -0
  31. package/es/components/dataSourceComponents/fields/Translation/type.d.ts +16 -0
  32. package/es/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +0 -1
  33. package/es/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +0 -1
  34. package/es/components/dataSourceComponents/fields/index.d.ts +15 -15
  35. package/es/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +15 -0
  36. package/es/components/date-picker/datePickerCpt.d.ts +0 -1
  37. package/es/components/date-picker/index.d.ts +0 -1
  38. package/es/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
  39. package/es/components/drag-sort-tree/index.d.ts +4 -0
  40. package/es/components/iconfont/index.d.ts +8 -0
  41. package/es/components/login-and-register/index.d.ts +82 -0
  42. package/es/components/lowCodePage/index.d.ts +0 -1
  43. package/es/components/pisell-config-provider/context.d.ts +22 -0
  44. package/es/components/pisell-config-provider/index.d.ts +13 -0
  45. package/es/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
  46. package/es/components/pisellAdjustPrice/index.d.ts +4 -0
  47. package/es/components/pisellAdjustPrice/status.d.ts +32 -0
  48. package/es/components/pisellAdjustPrice/type.d.ts +22 -0
  49. package/es/components/pisellCheckboxGroup/index.d.ts +40 -0
  50. package/es/components/pisellDataSourceContainer/components/ColumnsSetting/index.d.ts +7 -1
  51. package/es/components/pisellDataSourceContainer/components/ColumnsSetting/index.js +30 -3
  52. package/es/components/pisellDataSourceContainer/components/ColumnsSetting/utils.d.ts +22 -0
  53. package/es/components/pisellDataSourceContainer/components/ColumnsSetting/utils.js +117 -0
  54. package/es/components/pisellDataSourceContainer/components/Pagination/index.js +16 -7
  55. package/es/components/pisellDataSourceContainer/components/Table/index.d.ts +1 -0
  56. package/es/components/pisellDataSourceContainer/components/Table/index.js +5 -3
  57. package/es/components/pisellDataSourceContainer/components/Table/useColumns.d.ts +1 -0
  58. package/es/components/pisellDataSourceContainer/components/Table/useColumns.js +37 -15
  59. package/es/components/pisellDatePicker/index.d.ts +0 -1
  60. package/es/components/pisellEmpty/index.d.ts +19 -0
  61. package/es/components/pisellInput/components/Copy/index.d.ts +0 -1
  62. package/es/components/pisellInput/index.d.ts +0 -1
  63. package/es/components/pisellLoading/index.d.ts +0 -1
  64. package/es/components/pisellModal/components/IpadModal/index.d.ts +0 -1
  65. package/es/components/pisellModal/components/MobileModal/index.d.ts +0 -1
  66. package/es/components/pisellModal/components/index.d.ts +0 -1
  67. package/es/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +5 -0
  68. package/es/components/pisellText/components/Amount/index.d.ts +20 -0
  69. package/es/components/pisellToast/index.d.ts +17 -0
  70. package/es/components/pisellToast/squareToast/index.d.ts +15 -0
  71. package/es/components/pisellToast/squareToast/methods.d.ts +13 -0
  72. package/es/components/pisellToast/squareToast/renderImperatively.d.ts +28 -0
  73. package/es/components/pisellToast/squareToast/toast.d.ts +25 -0
  74. package/es/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +3 -0
  75. package/es/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +3 -0
  76. package/es/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
  77. package/es/components/productCard/cartSkuCard/components/Note/index.d.ts +3 -0
  78. package/es/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +32 -0
  79. package/es/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  80. package/es/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
  81. package/es/components/productCard/cartSkuCard/components/packages/index.d.ts +11 -0
  82. package/es/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  83. package/es/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
  84. package/es/components/productCard/cartSkuCard/components/sales/index.d.ts +12 -0
  85. package/es/components/productCard/cartSkuCard/components/specs/index.d.ts +21 -0
  86. package/es/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +46 -0
  87. package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
  88. package/es/components/productCard/cartSkuCard/index.d.ts +10 -0
  89. package/es/components/productCard/cartSkuCard/locales.d.ts +99 -0
  90. package/es/components/productCard/components/Action/index.d.ts +3 -0
  91. package/es/components/productCard/components/AmountFooter/index.d.ts +0 -1
  92. package/es/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
  93. package/es/components/productCard/components/Header/EditButton/index.d.ts +0 -1
  94. package/es/components/productCard/components/Header/index.d.ts +3 -0
  95. package/es/components/productCard/components/MultiDay/index.d.ts +0 -1
  96. package/es/components/productCard/components/Note/index.d.ts +0 -1
  97. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -1
  98. package/es/components/productCard/components/Packages/components/options/index.d.ts +0 -1
  99. package/es/components/productCard/components/Packages/index.d.ts +0 -1
  100. package/es/components/productCard/components/Sales/index.d.ts +3 -0
  101. package/es/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -1
  102. package/es/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
  103. package/es/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -1
  104. package/es/components/productCard/components/Time/components/SelectResource/index.d.ts +18 -0
  105. package/es/components/productCard/components/Time/index.d.ts +3 -0
  106. package/es/components/productCard/locales.d.ts +84 -0
  107. package/es/components/productCard/status.d.ts +32 -0
  108. package/es/components/productCard/types.d.ts +85 -0
  109. package/es/components/productCard/utils.d.ts +31 -0
  110. package/es/components/qrcode/index.d.ts +0 -1
  111. package/es/components/select-time/index.d.ts +0 -1
  112. package/es/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  113. package/es/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  114. package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +0 -1
  115. package/es/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  116. package/es/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
  117. package/es/components/table/Table/fields/index.d.ts +2 -2
  118. package/es/components/table/Table/fields/treeSelect/index.d.ts +0 -1
  119. package/es/components/table/Table/utils.d.ts +1 -1
  120. package/es/components/table/types.d.ts +268 -0
  121. package/es/components/translation/index.d.ts +14 -0
  122. package/es/components/virtual-keyboard/Amount/index.d.ts +5 -0
  123. package/es/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  124. package/es/components/virtual-keyboard/Amount/types.d.ts +44 -0
  125. package/es/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +15 -0
  126. package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +25 -0
  127. package/es/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  128. package/es/components/virtual-keyboard/Number/index.d.ts +5 -0
  129. package/es/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  130. package/es/components/virtual-keyboard/Number/types.d.ts +26 -0
  131. package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
  132. package/es/components/virtual-keyboard/index.d.ts +25 -0
  133. package/lib/components/PisellCards/components/GraphicTextCard/GraphicTextCard.d.ts +0 -1
  134. package/lib/components/PisellCards/components/GraphicTextCard/types.d.ts +290 -0
  135. package/lib/components/PisellCards/components/MultilevelCard/components/PanelWrapper.d.ts +7 -0
  136. package/lib/components/PisellCards/components/PisellImageCard/PisellImageCard.d.ts +0 -1
  137. package/lib/components/PisellCards/components/TextCard/TextCard.d.ts +7 -0
  138. package/lib/components/PisellCards/components/TextCard/components/BadgeWrapper.d.ts +26 -0
  139. package/lib/components/PisellCards/components/TextCard/components/TextContent.d.ts +21 -0
  140. package/lib/components/PisellCards/components/TextCard/types.d.ts +270 -0
  141. package/lib/components/PisellCards/index.d.ts +0 -1
  142. package/lib/components/cardPro/index.d.ts +3 -0
  143. package/lib/components/dataSourceComponents/dataSourceForm/serve.d.ts +179 -0
  144. package/lib/components/dataSourceComponents/dataSourceForm/urlUtils.d.ts +24 -0
  145. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceImage/index.d.ts +2 -0
  146. package/lib/components/dataSourceComponents/dataSourceShow/dataSourceQRCode/index.d.ts +0 -1
  147. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +0 -1
  148. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +4 -0
  149. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
  150. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +84 -0
  151. package/lib/components/dataSourceComponents/fields/Input.Json/ReadPretty.d.ts +0 -1
  152. package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +24 -0
  153. package/lib/components/dataSourceComponents/fields/Input.Password/ReadPretty.d.ts +0 -1
  154. package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.d.ts +5 -0
  155. package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +16 -0
  156. package/lib/components/dataSourceComponents/fields/Upload/CameraPopover.d.ts +0 -1
  157. package/lib/components/dataSourceComponents/fields/Upload/ReadPretty.d.ts +0 -1
  158. package/lib/components/dataSourceComponents/fields/index.d.ts +15 -15
  159. package/lib/components/dataSourceComponents/provider/variables/VariablesContext.d.ts +15 -0
  160. package/lib/components/date-picker/datePickerCpt.d.ts +0 -1
  161. package/lib/components/date-picker/index.d.ts +0 -1
  162. package/lib/components/drag-sort-tree/TreeItem/index.d.ts +18 -0
  163. package/lib/components/drag-sort-tree/index.d.ts +4 -0
  164. package/lib/components/iconfont/index.d.ts +8 -0
  165. package/lib/components/login-and-register/index.d.ts +82 -0
  166. package/lib/components/lowCodePage/index.d.ts +0 -1
  167. package/lib/components/pisell-config-provider/context.d.ts +22 -0
  168. package/lib/components/pisell-config-provider/index.d.ts +13 -0
  169. package/lib/components/pisellAdjustPrice/PisellAdjustPriceInputNumber.d.ts +0 -1
  170. package/lib/components/pisellAdjustPrice/index.d.ts +4 -0
  171. package/lib/components/pisellAdjustPrice/status.d.ts +32 -0
  172. package/lib/components/pisellAdjustPrice/type.d.ts +22 -0
  173. package/lib/components/pisellCheckboxGroup/index.d.ts +40 -0
  174. package/lib/components/pisellDataSourceContainer/components/ColumnsSetting/index.d.ts +7 -1
  175. package/lib/components/pisellDataSourceContainer/components/ColumnsSetting/index.js +18 -2
  176. package/lib/components/pisellDataSourceContainer/components/ColumnsSetting/utils.d.ts +22 -0
  177. package/lib/components/pisellDataSourceContainer/components/ColumnsSetting/utils.js +121 -0
  178. package/lib/components/pisellDataSourceContainer/components/Pagination/index.js +21 -10
  179. package/lib/components/pisellDataSourceContainer/components/Table/index.d.ts +1 -0
  180. package/lib/components/pisellDataSourceContainer/components/Table/index.js +3 -1
  181. package/lib/components/pisellDataSourceContainer/components/Table/useColumns.d.ts +1 -0
  182. package/lib/components/pisellDataSourceContainer/components/Table/useColumns.js +25 -14
  183. package/lib/components/pisellDatePicker/index.d.ts +0 -1
  184. package/lib/components/pisellEmpty/index.d.ts +19 -0
  185. package/lib/components/pisellInput/components/Copy/index.d.ts +0 -1
  186. package/lib/components/pisellInput/index.d.ts +0 -1
  187. package/lib/components/pisellLoading/index.d.ts +0 -1
  188. package/lib/components/pisellModal/components/IpadModal/index.d.ts +0 -1
  189. package/lib/components/pisellModal/components/MobileModal/index.d.ts +0 -1
  190. package/lib/components/pisellModal/components/index.d.ts +0 -1
  191. package/lib/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +5 -0
  192. package/lib/components/pisellText/components/Amount/index.d.ts +20 -0
  193. package/lib/components/pisellToast/index.d.ts +17 -0
  194. package/lib/components/pisellToast/squareToast/index.d.ts +15 -0
  195. package/lib/components/pisellToast/squareToast/methods.d.ts +13 -0
  196. package/lib/components/pisellToast/squareToast/renderImperatively.d.ts +28 -0
  197. package/lib/components/pisellToast/squareToast/toast.d.ts +25 -0
  198. package/lib/components/productCard/cartSkuCard/components/AmountFooter/index.d.ts +3 -0
  199. package/lib/components/productCard/cartSkuCard/components/MultiDay/index.d.ts +3 -0
  200. package/lib/components/productCard/cartSkuCard/components/MultiDay/utils.d.ts +14 -0
  201. package/lib/components/productCard/cartSkuCard/components/Note/index.d.ts +3 -0
  202. package/lib/components/productCard/cartSkuCard/components/basicInfo/index.d.ts +32 -0
  203. package/lib/components/productCard/cartSkuCard/components/discountReason/index.d.ts +2 -0
  204. package/lib/components/productCard/cartSkuCard/components/holders/index.d.ts +3 -0
  205. package/lib/components/productCard/cartSkuCard/components/packages/index.d.ts +11 -0
  206. package/lib/components/productCard/cartSkuCard/components/packages/utils.d.ts +20 -0
  207. package/lib/components/productCard/cartSkuCard/components/resources/index.d.ts +3 -0
  208. package/lib/components/productCard/cartSkuCard/components/sales/index.d.ts +12 -0
  209. package/lib/components/productCard/cartSkuCard/components/specs/index.d.ts +21 -0
  210. package/lib/components/productCard/cartSkuCard/components/swipeAction/index.d.ts +46 -0
  211. package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +6 -0
  212. package/lib/components/productCard/cartSkuCard/index.d.ts +10 -0
  213. package/lib/components/productCard/cartSkuCard/locales.d.ts +99 -0
  214. package/lib/components/productCard/components/Action/index.d.ts +3 -0
  215. package/lib/components/productCard/components/AmountFooter/index.d.ts +0 -1
  216. package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +3 -0
  217. package/lib/components/productCard/components/Header/EditButton/index.d.ts +0 -1
  218. package/lib/components/productCard/components/Header/index.d.ts +3 -0
  219. package/lib/components/productCard/components/MultiDay/index.d.ts +0 -1
  220. package/lib/components/productCard/components/Note/index.d.ts +0 -1
  221. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +0 -1
  222. package/lib/components/productCard/components/Packages/components/options/index.d.ts +0 -1
  223. package/lib/components/productCard/components/Packages/index.d.ts +0 -1
  224. package/lib/components/productCard/components/Sales/index.d.ts +3 -0
  225. package/lib/components/productCard/components/Time/components/SelectHolder/index.d.ts +0 -1
  226. package/lib/components/productCard/components/Time/components/SelectHolderModal/index.d.ts +13 -0
  227. package/lib/components/productCard/components/Time/components/SelectHolderMultiple/index.d.ts +0 -1
  228. package/lib/components/productCard/components/Time/components/SelectResource/index.d.ts +18 -0
  229. package/lib/components/productCard/components/Time/index.d.ts +3 -0
  230. package/lib/components/productCard/locales.d.ts +84 -0
  231. package/lib/components/productCard/status.d.ts +32 -0
  232. package/lib/components/productCard/types.d.ts +85 -0
  233. package/lib/components/productCard/utils.d.ts +31 -0
  234. package/lib/components/qrcode/index.d.ts +0 -1
  235. package/lib/components/select-time/index.d.ts +0 -1
  236. package/lib/components/table/Actions/component/ColumnsSetting/index.d.ts +0 -1
  237. package/lib/components/table/Gallery/components/GalleryItem/components/Cover/index.d.ts +0 -1
  238. package/lib/components/table/Gallery/components/GalleryItem/components/RenderFields/index.d.ts +0 -1
  239. package/lib/components/table/Gallery/components/GalleryItem/components/Title/index.d.ts +0 -1
  240. package/lib/components/table/Gallery/components/GalleryItem/index.d.ts +14 -0
  241. package/lib/components/table/Table/fields/index.d.ts +2 -2
  242. package/lib/components/table/Table/fields/treeSelect/index.d.ts +0 -1
  243. package/lib/components/table/Table/utils.d.ts +1 -1
  244. package/lib/components/table/types.d.ts +268 -0
  245. package/lib/components/translation/index.d.ts +14 -0
  246. package/lib/components/virtual-keyboard/Amount/index.d.ts +5 -0
  247. package/lib/components/virtual-keyboard/Amount/themeConfig.d.ts +32 -0
  248. package/lib/components/virtual-keyboard/Amount/types.d.ts +44 -0
  249. package/lib/components/virtual-keyboard/BaseNumberKeyboard/Presets.d.ts +15 -0
  250. package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +25 -0
  251. package/lib/components/virtual-keyboard/Keyboard/index.d.ts +21 -0
  252. package/lib/components/virtual-keyboard/Number/index.d.ts +5 -0
  253. package/lib/components/virtual-keyboard/Number/themeConfig.d.ts +32 -0
  254. package/lib/components/virtual-keyboard/Number/types.d.ts +26 -0
  255. package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +13 -0
  256. package/lib/components/virtual-keyboard/index.d.ts +25 -0
  257. package/package.json +2 -2
@@ -0,0 +1,179 @@
1
+ export interface DataSourceType {
2
+ key: string;
3
+ displayName: string;
4
+ status: string;
5
+ type: string;
6
+ isDBInstance: boolean;
7
+ collections: Collection[];
8
+ }
9
+ export declare type ActionsItem = {
10
+ method: string;
11
+ path: string;
12
+ params: {
13
+ name: string;
14
+ value: string;
15
+ }[];
16
+ headers: {
17
+ name: string;
18
+ value: string;
19
+ }[];
20
+ body: Record<string, any>;
21
+ };
22
+ export interface Collection {
23
+ name: string;
24
+ title: string;
25
+ tableName: string;
26
+ timestamps: boolean;
27
+ autoGenId: boolean;
28
+ filterTargetKey: string;
29
+ fields: Field[];
30
+ introspected: boolean;
31
+ unavailableActions: any[];
32
+ actions: {
33
+ get: ActionsItem;
34
+ update: ActionsItem;
35
+ create: ActionsItem;
36
+ delete: ActionsItem;
37
+ list: ActionsItem;
38
+ };
39
+ }
40
+ interface Field {
41
+ name: string;
42
+ type: string;
43
+ allowNull: boolean;
44
+ primaryKey: boolean;
45
+ unique: boolean;
46
+ autoIncrement: boolean;
47
+ description?: (null | string)[];
48
+ possibleTypes?: string[];
49
+ rawType: string;
50
+ interface: string;
51
+ uiSchema: UiSchema;
52
+ key?: string;
53
+ collectionName?: string;
54
+ collectionKey?: any;
55
+ dataSourceKey?: string;
56
+ defaultValue?: any;
57
+ }
58
+ interface UiSchema {
59
+ type?: string;
60
+ 'x-component': string;
61
+ 'x-component-props'?: Xcomponentprops;
62
+ 'x-validator'?: string;
63
+ title: string;
64
+ default?: any;
65
+ enum?: any[];
66
+ }
67
+ interface Xcomponentprops {
68
+ style?: Style;
69
+ autoSize?: AutoSize;
70
+ stringMode?: boolean;
71
+ step?: string;
72
+ dateFormat?: string;
73
+ showTime?: boolean;
74
+ }
75
+ interface AutoSize {
76
+ minRows: number;
77
+ }
78
+ interface Style {
79
+ width: string;
80
+ }
81
+ /**
82
+ * 获取nocobase自定义数据源
83
+ */
84
+ export declare const getNocobaseDataSource: () => Promise<DataSourceType[]>;
85
+ /**
86
+ * 获取nocobase主数据源
87
+ */
88
+ export declare const getNocobaseMainDataSource: () => Promise<any>;
89
+ /**
90
+ * 获取nocobase数据源设置
91
+ */
92
+ export declare const getNocobaseDataSourceOptions: () => Promise<any>;
93
+ /**
94
+ * 创建nocobase数据
95
+ */
96
+ export declare const createNocobaseData: (params: {
97
+ key: string;
98
+ data: any;
99
+ headers?: any;
100
+ }) => Promise<any>;
101
+ /**
102
+ * nocobase get数据
103
+ */
104
+ export declare const getNocobaseData: (params: {
105
+ key: string;
106
+ query: Record<string, any>;
107
+ headers?: any;
108
+ }) => Promise<any>;
109
+ /**
110
+ * 自定义api接口
111
+ */
112
+ export declare const customApi: (url: string, data: Record<string, any>, options: {
113
+ method: 'GET' | 'POST' | 'PUT' | 'DELETE';
114
+ baseUrl?: string | undefined;
115
+ headers?: {
116
+ name: string;
117
+ value: any;
118
+ }[] | undefined;
119
+ params?: {
120
+ name: string;
121
+ value: any;
122
+ }[] | undefined;
123
+ body?: Record<string, any> | undefined;
124
+ }) => Promise<any>;
125
+ /**
126
+ * 更新nocobase数据
127
+ */
128
+ export declare const updateNocobaseData: (params: {
129
+ key: string;
130
+ data: any;
131
+ headers?: any;
132
+ query?: Record<string, any> | undefined;
133
+ }) => Promise<any>;
134
+ /**
135
+ * 获取nocobase数据列表
136
+ */
137
+ export declare const getNocobaseDataList: (allParams: {
138
+ key: string;
139
+ params: {
140
+ page: number;
141
+ pageSize: number;
142
+ };
143
+ headers?: any;
144
+ }) => Promise<any>;
145
+ /**
146
+ * 删除nocobase数据
147
+ */
148
+ export declare const deleteNocobaseData: (key: string, id: string, headers?: any) => Promise<any>;
149
+ /**
150
+ * 获取formSettingMeta数据
151
+ * @param params 请求参数
152
+ * @param params.sectionCodes 配置段代码数组,如 ['payment']
153
+ * @param params.businessCode 业务代码
154
+ * @param params.channelCode 渠道代码
155
+ * @param params.isBoard 是否包含board_code参数
156
+ * @returns Promise<any> 返回设置元数据
157
+ */
158
+ export declare const getFormSettingMetaData: (params: {
159
+ sectionCodes: string[];
160
+ businessCode?: string | undefined;
161
+ channelCode?: string | undefined;
162
+ isBoard?: boolean | undefined;
163
+ }) => Promise<any>;
164
+ /**
165
+ * 更新租户设置数据
166
+ * @param params 请求参数
167
+ * @param params.businessCode 业务代码
168
+ * @param params.channelCode 渠道代码
169
+ * @param params.boardCode 板块代码
170
+ * @param params.data 要更新的数据对象,如 {"order.prefix":"","order.suffix":"","payment.number":""}
171
+ * @returns Promise<any> 返回更新结果
172
+ */
173
+ export declare const updateTenantSetting: (params: {
174
+ business_code?: string | undefined;
175
+ channel_code?: string | undefined;
176
+ board_code?: string | undefined;
177
+ data: Record<string, any>;
178
+ }) => Promise<any>;
179
+ export {};
@@ -0,0 +1,24 @@
1
+ /**
2
+ * URL参数处理工具方法
3
+ */
4
+ /**
5
+ * 从浏览器URL获取查询参数
6
+ * @returns Record<string, string> URL查询参数对象
7
+ */
8
+ export declare const getUrlParams: () => Record<string, string>;
9
+ /**
10
+ * 从URL参数中提取formSettingMeta相关的参数
11
+ * @param urlParams URL查询参数对象,如果不传则自动从浏览器获取
12
+ * @returns 包含business_code、channel_code和isBoard参数的对象
13
+ */
14
+ export declare const getFormSettingParams: (urlParams?: Record<string, string>) => {
15
+ businessCode: string;
16
+ channelCode: string;
17
+ isBoard: boolean;
18
+ };
19
+ /**
20
+ * 根据URL参数更新租户设置数据
21
+ * @param data 要更新的数据对象,如 {"order.prefix":"","order.suffix":"","payment.number":""}
22
+ * @returns Promise<any> 返回更新结果
23
+ */
24
+ export declare const updateTenantSettingFromUrl: (data: Record<string, any>) => Promise<any>;
@@ -0,0 +1,2 @@
1
+ declare const DataSourceImage: (props: import("../utils").ParsedProps) => JSX.Element;
2
+ export default DataSourceImage;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const DataSourceQRCode: (props: any) => JSX.Element;
3
2
  export default DataSourceQRCode;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const useDataSourceKey: () => {
3
2
  dataSourceKey: string | undefined;
4
3
  dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
@@ -0,0 +1,4 @@
1
+ declare const useDrawerState: (operationContent?: {
2
+ [key: string]: import("react").ReactNode;
3
+ } | undefined) => any;
4
+ export default useDrawerState;
@@ -19,7 +19,7 @@ interface UseTablePropsProps {
19
19
  */
20
20
  declare const useTableProps: (props: UseTablePropsProps) => {
21
21
  currentComponentId: any;
22
- title: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
22
+ title: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
23
23
  pagination: {
24
24
  total: number;
25
25
  current: number;
@@ -28,7 +28,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
28
28
  showSizeChanger: boolean;
29
29
  };
30
30
  columns: import("./useColumns").Column[];
31
- subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
31
+ subTitle: number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
32
32
  buttons: any[] | null;
33
33
  filter: {
34
34
  dom: any;
@@ -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
+ }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { JsonProps } from "./type";
3
2
  import "./ReadPretty.less";
4
3
  declare const JsonReadPretty: (props: JsonProps) => JSX.Element | null;
@@ -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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PasswordProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  declare const PasswordReadPretty: (props: PasswordProps) => JSX.Element;
@@ -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,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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const CameraPopover: (props: {
3
2
  onLocalFileClick: () => void;
4
3
  onCameraChange: (file: any) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { UploadProps } from './type';
3
2
  import './ReadPretty.less';
4
3
  declare const UploadReadPretty: (props: UploadProps) => JSX.Element | null;
@@ -59,19 +59,7 @@ declare const formFieldMap: {
59
59
  FormItemTranslation: import("react").FC<import("./Translation/type").TranslationProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
60
60
  FormItemIconSelect: import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
61
61
  };
62
- declare const getFieldComponent: (fieldComponent: string) => ((props: import("antd").SelectProps<any, import("antd/es/select").DefaultOptionType> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps & {
63
- options?: any;
64
- optionSourceType?: "default" | "custom" | "api" | undefined;
65
- labelField: string;
66
- valueField: string;
67
- extraParams?: Record<string, any> | undefined;
68
- } & {
69
- dataSource?: any;
70
- }) => JSX.Element) | (import("react").FC<{}> & {
71
- Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
72
- } & {
73
- Group: import("react").FC<import("./Checkbox/type").CheckboxGroupProps & import("../dataSourceForm/utils").WithModeProps>;
74
- }) | 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> & {
62
+ declare const getFieldComponent: (fieldComponent: string) => import("react").FC<any> | 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("./Input/type").InputProps> & {
75
63
  JSON: import("react").FC<any>;
76
64
  Password: import("react").FC<import("antd/es/input").PasswordProps & import("react").RefAttributes<import("antd").InputRef> & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
77
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>;
@@ -92,10 +80,22 @@ declare const getFieldComponent: (fieldComponent: string) => ((props: import("an
92
80
  fieldKey?: string | undefined;
93
81
  } & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
94
82
  }) | (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<{}> & {
95
87
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
96
88
  } & {
97
89
  Group: import("react").FC<import("./Radio/type").RadioGroupProps & import("../dataSourceForm/utils").WithModeProps>;
98
- }) | 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 & {
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<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
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> | import("react").FC<import("./IconSelect/type").IconSelectProps & import("../dataSourceForm/utils").WithModeProps & import("../dataSourceForm/utils").WithFormItemProps>;
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("./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>;
101
101
  export { getFieldComponent, formFieldMap };
@@ -0,0 +1,15 @@
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
+ config?: {
11
+ disabledHistoryListener?: boolean;
12
+ };
13
+ }
14
+ export declare const VariablesContext: import("react").Context<VariablesContextType>;
15
+ export default VariablesContext;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PickerDateProps } from 'antd/es/date-picker/generatePicker';
3
2
  import { Dayjs } from 'dayjs';
4
3
  import './index.less';
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const DatePicker: (props: any) => JSX.Element;
3
2
  export default DatePicker;
@@ -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,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,82 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ /**
4
+ * loginAndRegister组件的属性接口
5
+ */
6
+ export interface loginAndRegisterProps {
7
+ /** Logo相关配置 */
8
+ showLogo?: boolean;
9
+ logo?: string;
10
+ logoPosition?: 'left' | 'center' | 'right';
11
+ logoSize?: {
12
+ width?: number;
13
+ height?: number;
14
+ };
15
+ /** 标题相关配置 */
16
+ title?: string;
17
+ showTitle?: boolean;
18
+ titleAlign?: 'left' | 'center' | 'right';
19
+ /** 副标题相关配置 */
20
+ subtitle?: string;
21
+ showSubtitle?: boolean;
22
+ subtitleAlign?: 'left' | 'center' | 'right';
23
+ /** 登录方式配置 */
24
+ loginMethods?: ('email' | 'google' | 'facebook' | 'apple')[];
25
+ defaultLoginMethod?: 'email' | 'google' | 'facebook' | 'apple';
26
+ /** 表单配置 */
27
+ emailLabel?: string;
28
+ passwordLabel?: string;
29
+ emailPlaceholder?: string;
30
+ passwordPlaceholder?: string;
31
+ emailRules?: any[];
32
+ buttonText?: string;
33
+ rememberMeText?: string;
34
+ forgotPasswordText?: string;
35
+ showRememberMe?: boolean;
36
+ showForgotPassword?: boolean;
37
+ /** 社交登录配置 */
38
+ socialLoginTexts?: {
39
+ google?: string;
40
+ facebook?: string;
41
+ apple?: string;
42
+ };
43
+ /** 底部配置 */
44
+ showFooter?: boolean;
45
+ showSignUp?: boolean;
46
+ signUpText?: string;
47
+ signUpLink?: string;
48
+ signUpPosition?: 'left' | 'center' | 'right';
49
+ otherLinks?: Array<{
50
+ text: string;
51
+ url: string;
52
+ }>;
53
+ otherLinksPosition?: 'left' | 'center' | 'right';
54
+ /** 登录/注册切换配置 */
55
+ showTabs?: boolean;
56
+ loginTabText?: string;
57
+ registerTabText?: string;
58
+ /** 注册表单配置 */
59
+ registerEmailPlaceholder?: string;
60
+ registerPasswordPlaceholder?: string;
61
+ registerButtonText?: string;
62
+ /** 事件回调 */
63
+ onLogin?: (values: {
64
+ email: string;
65
+ loginMethod: string;
66
+ }) => void;
67
+ onSocialLogin?: (type: 'google' | 'facebook' | 'apple') => void;
68
+ onSignUp?: () => void;
69
+ onRegister?: (values: {
70
+ email: string;
71
+ password: string;
72
+ }) => void;
73
+ /** 新增背景图片属性 */
74
+ backgroundImage?: string;
75
+ }
76
+ /**
77
+ * Saas登录组件
78
+ * @param props - 组件属性
79
+ * @returns React组件
80
+ */
81
+ declare const loginAndRegister: React.FC<loginAndRegisterProps>;
82
+ export default loginAndRegister;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare type LowCodePageProps = {
3
2
  id: number;
4
3
  };
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ export interface PisellContextType {
3
+ platform: 'h5' | 'pc' | 'ipad';
4
+ /** 货币符号 */
5
+ symbol?: string;
6
+ /** 当前语言环境 */
7
+ locale?: string;
8
+ /** 获取货币符号 */
9
+ getSymbolic?: () => string;
10
+ }
11
+ export declare const PisellContext: import("react").Context<PisellContextType>;
12
+ /**
13
+ * provider外获取当前全局配置
14
+ */
15
+ declare class GlobalConfig {
16
+ private config;
17
+ constructor();
18
+ setConfig(config: PisellContextType): void;
19
+ getConfig(): PisellContextType;
20
+ }
21
+ export declare const globalConfig: GlobalConfig;
22
+ export default PisellContext;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { PisellContextType } from './context';
3
+ interface PisellConfigProviderType {
4
+ platform?: PisellContextType['platform'];
5
+ children: React.ReactNode;
6
+ /** 货币符号 */
7
+ symbol?: string;
8
+ /** 当前语言环境 */
9
+ locale?: string;
10
+ getSymbolic?: () => string;
11
+ }
12
+ declare const PisellConfigProvider: React.FC<PisellConfigProviderType>;
13
+ export default PisellConfigProvider;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputNumberProps } from 'antd/es/input-number';
3
2
  export interface PisellAdjustPriceInputNumberProps extends Omit<InputNumberProps, 'onChange'> {
4
3
  value?: number;
@@ -0,0 +1,4 @@
1
+ import './index.less';
2
+ import { PisellAdjustPriceProps } from './type';
3
+ declare const PisellAdjustPrice: (props: PisellAdjustPriceProps) => JSX.Element;
4
+ export default PisellAdjustPrice;