@teamix/pro 1.5.16 → 1.5.18-beta

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 (261) hide show
  1. package/dist/fonts/txddinmedium.woff +0 -0
  2. package/dist/pro.all.min.css +1 -0
  3. package/dist/pro.css +1 -0
  4. package/dist/pro.js +114772 -0
  5. package/dist/pro.min.css +1 -0
  6. package/dist/pro.min.js +2 -0
  7. package/dist/pro.min.js.LICENSE.txt +47 -0
  8. package/dist/pro.xconsole.min.css +1 -0
  9. package/es/actions/dialog-component.js +1 -4
  10. package/es/actions/dialog-form.js +4 -3
  11. package/es/actions/dialog.js +2 -1
  12. package/es/actions/index.js +35 -22
  13. package/es/actions/quick.js +1 -4
  14. package/es/card/card-container.js +12 -5
  15. package/es/card/divider.js +2 -4
  16. package/es/card/index.js +18 -7
  17. package/es/card/selectable.js +2 -4
  18. package/es/card/tab.js +2 -4
  19. package/es/form/Components/Editable/index.js +1 -1
  20. package/es/form/Components/FormGroup/index.js +4 -3
  21. package/es/form/Components/LightFilter/index.js +11 -2
  22. package/es/form/Components/ProField/index.js +2 -4
  23. package/es/form/Components/Text/index.js +2 -4
  24. package/es/form/Filter/AdvancedFilter.js +16 -14
  25. package/es/form/Filter/LightFilter.js +13 -9
  26. package/es/form/Filter/SimpleFilter.js +8 -5
  27. package/es/form/Filter/index.js +24 -7
  28. package/es/form/Filter/index.scss +1 -0
  29. package/es/form/Filter/index2.js +22 -17
  30. package/es/form/Filter/index2.scss +1 -0
  31. package/es/form/Filter/useBindUrl.js +3 -0
  32. package/es/form/Filter/useSpecialProps.js +1 -0
  33. package/es/form/ProForm/index.js +5 -2
  34. package/es/form/ProForm/useAutoLayout.js +4 -0
  35. package/es/form/ProForm/useFormDisplayValues.js +1 -0
  36. package/es/form/SchemaForm/adapterComponent.js +1 -0
  37. package/es/form/SchemaForm/adapterDecorator.js +1 -0
  38. package/es/form/SchemaForm/adapterType.js +1 -0
  39. package/es/form/SchemaForm/index.js +13 -0
  40. package/es/form/SchemaForm/initializeFormButton.js +2 -0
  41. package/es/form/SchemaForm/initializeReactions.js +1 -0
  42. package/es/form/SchemaForm/initializeSelectTable.js +1 -0
  43. package/es/form/SchemaForm/reactions.js +5 -0
  44. package/es/form/index.js +4 -0
  45. package/es/form/utils.js +12 -0
  46. package/es/form/warning.js +2 -0
  47. package/es/index.js +3 -1
  48. package/es/info/components/InfoGroup/index.js +2 -4
  49. package/es/info/components/InfoValueItem/index.js +32 -20
  50. package/es/info/components/ProInfoItem/index.js +1 -0
  51. package/es/info/components/baseInfo/index.js +3 -0
  52. package/es/info/components/tableInfo/index.js +6 -4
  53. package/es/info/index.js +11 -5
  54. package/es/info/utils/index.js +3 -0
  55. package/es/layout/index.js +2 -0
  56. package/es/nocode/index.js +2 -0
  57. package/es/nocode/pages/index.js +3 -0
  58. package/es/nocode/pages/playground.js +3 -5
  59. package/es/nocode/pages/renderer.js +4 -6
  60. package/es/nocode/playground.js +2 -4
  61. package/es/page-header/index.js +12 -7
  62. package/es/sidebar/components/sidebar-container/index.js +10 -7
  63. package/es/sidebar/components/tree/index.js +22 -4
  64. package/es/sidebar/components/tree-node/components/HoverTooltip/index.js +3 -4
  65. package/es/sidebar/components/tree-node/components/IconAction/index.js +4 -2
  66. package/es/sidebar/components/tree-node/components/IconSwitch/index.js +1 -0
  67. package/es/sidebar/components/tree-node/index.js +29 -16
  68. package/es/sidebar/index.js +15 -4
  69. package/es/sidebar/utils/index.js +19 -11
  70. package/es/table/components/CardView/index.js +29 -13
  71. package/es/table/components/Filter/index.js +11 -0
  72. package/es/table/components/Layout/index.js +13 -8
  73. package/es/table/components/LoadMore/index.js +3 -0
  74. package/es/table/components/Pagination/index.js +12 -10
  75. package/es/table/components/QuickAction/index.js +3 -2
  76. package/es/table/components/ToolBar/CardSwitch.js +2 -0
  77. package/es/table/components/ToolBar/DensityIcon.js +7 -2
  78. package/es/table/components/ToolBar/FilterColumnIcon.js +9 -0
  79. package/es/table/components/ToolBar/FullScreenIcon.js +1 -0
  80. package/es/table/components/ToolBar/Fullscreen.js +3 -0
  81. package/es/table/components/ToolBar/RefreshIcon.js +11 -0
  82. package/es/table/components/ToolBar/index.js +13 -10
  83. package/es/table/index.js +138 -51
  84. package/es/table/index.scss +26 -0
  85. package/es/table/utils/columnRender.js +78 -27
  86. package/es/table/utils/genAutoWidthColumns.js +340 -0
  87. package/es/table/utils/index.js +6 -0
  88. package/es/table/utils/pureColumnRender.js +9 -1
  89. package/es/templates/List/index.js +4 -6
  90. package/es/templates/index.js +2 -1
  91. package/es/timeline/ProTimeLineItem/index.js +8 -4
  92. package/es/timeline/index.js +5 -5
  93. package/es/utils/message.js +3 -5
  94. package/es/xconsole.scss +23 -0
  95. package/lib/form/Filter/index.scss +1 -0
  96. package/lib/form/Filter/index2.scss +1 -0
  97. package/lib/index.d.ts +1 -1
  98. package/lib/index.js +1 -1
  99. package/lib/table/components/CardView/index.js +5 -10
  100. package/lib/table/components/ToolBar/index.js +10 -7
  101. package/lib/table/index.js +72 -25
  102. package/lib/table/index.scss +26 -0
  103. package/lib/table/typing.d.ts +11 -1
  104. package/lib/table/utils/columnRender.d.ts +1 -0
  105. package/lib/table/utils/columnRender.js +51 -4
  106. package/lib/table/utils/genAutoWidthColumns.d.ts +35 -0
  107. package/lib/table/utils/genAutoWidthColumns.js +345 -0
  108. package/lib/xconsole.scss +23 -0
  109. package/package.json +1 -1
  110. package/es/actions/base.d.ts +0 -24
  111. package/es/actions/confirm.d.ts +0 -7
  112. package/es/actions/danger-confirm.d.ts +0 -7
  113. package/es/actions/danger-pop-confirm.d.ts +0 -5
  114. package/es/actions/dialog-component.d.ts +0 -10
  115. package/es/actions/dialog-form.d.ts +0 -29
  116. package/es/actions/dialog-info.d.ts +0 -9
  117. package/es/actions/dialog-table.d.ts +0 -9
  118. package/es/actions/dialog.d.ts +0 -40
  119. package/es/actions/drawer-form.d.ts +0 -6
  120. package/es/actions/drawer-info.d.ts +0 -6
  121. package/es/actions/drawer-table.d.ts +0 -6
  122. package/es/actions/drawer.d.ts +0 -6
  123. package/es/actions/error.d.ts +0 -7
  124. package/es/actions/index.d.ts +0 -114
  125. package/es/actions/link.d.ts +0 -8
  126. package/es/actions/notice.d.ts +0 -7
  127. package/es/actions/pop-confirm.d.ts +0 -9
  128. package/es/actions/quick.d.ts +0 -2
  129. package/es/actions/request.d.ts +0 -9
  130. package/es/actions/utils.d.ts +0 -1
  131. package/es/card/card-container.d.ts +0 -18
  132. package/es/card/divider.d.ts +0 -6
  133. package/es/card/index.d.ts +0 -109
  134. package/es/card/selectable.d.ts +0 -13
  135. package/es/card/tab.d.ts +0 -6
  136. package/es/card/utils.d.ts +0 -9
  137. package/es/field/index.d.ts +0 -3
  138. package/es/form/Components/Editable/index.d.ts +0 -20
  139. package/es/form/Components/FormGroup/index.d.ts +0 -14
  140. package/es/form/Components/LightFilter/componentMap.d.ts +0 -3
  141. package/es/form/Components/LightFilter/index.d.ts +0 -17
  142. package/es/form/Components/ProField/index.d.ts +0 -2
  143. package/es/form/Components/ProField/mapDateFormat.d.ts +0 -3
  144. package/es/form/Components/Text/index.d.ts +0 -8
  145. package/es/form/Filter/AdvancedFilter.d.ts +0 -7
  146. package/es/form/Filter/Layout.d.ts +0 -5
  147. package/es/form/Filter/LightFilter.d.ts +0 -7
  148. package/es/form/Filter/SimpleFilter.d.ts +0 -7
  149. package/es/form/Filter/index.d.ts +0 -9
  150. package/es/form/Filter/index2.d.ts +0 -13
  151. package/es/form/Filter/useBindUrl.d.ts +0 -2
  152. package/es/form/Filter/useSpecialProps.d.ts +0 -6
  153. package/es/form/ProForm/addCascadeEffect.d.ts +0 -2
  154. package/es/form/ProForm/customComponent.d.ts +0 -3
  155. package/es/form/ProForm/index.d.ts +0 -5
  156. package/es/form/ProForm/useAutoLayout.d.ts +0 -9
  157. package/es/form/ProForm/useAutoSubmit.d.ts +0 -6
  158. package/es/form/ProForm/useFieldRequest.d.ts +0 -5
  159. package/es/form/ProForm/useFormDisplayValues.d.ts +0 -4
  160. package/es/form/ProForm/useInitialRequest.d.ts +0 -6
  161. package/es/form/SchemaForm/adapterComponent.d.ts +0 -5
  162. package/es/form/SchemaForm/adapterDecorator.d.ts +0 -6
  163. package/es/form/SchemaForm/adapterType.d.ts +0 -5
  164. package/es/form/SchemaForm/index.d.ts +0 -4
  165. package/es/form/SchemaForm/initializeArrayCards.d.ts +0 -3
  166. package/es/form/SchemaForm/initializeArrayCollapse.d.ts +0 -3
  167. package/es/form/SchemaForm/initializeArrayItems.d.ts +0 -3
  168. package/es/form/SchemaForm/initializeArrayTable.d.ts +0 -3
  169. package/es/form/SchemaForm/initializeDataSource.d.ts +0 -15
  170. package/es/form/SchemaForm/initializeFormButton.d.ts +0 -3
  171. package/es/form/SchemaForm/initializeFormCollapse.d.ts +0 -3
  172. package/es/form/SchemaForm/initializeFormGroup.d.ts +0 -3
  173. package/es/form/SchemaForm/initializeFormStep.d.ts +0 -5
  174. package/es/form/SchemaForm/initializeFormTab.d.ts +0 -3
  175. package/es/form/SchemaForm/initializeReactions.d.ts +0 -2
  176. package/es/form/SchemaForm/initializeRequest.d.ts +0 -11
  177. package/es/form/SchemaForm/initializeRules.d.ts +0 -11
  178. package/es/form/SchemaForm/initializeSelectTable.d.ts +0 -3
  179. package/es/form/SchemaForm/reactions.d.ts +0 -6
  180. package/es/form/docs/ActionResponse.d.ts +0 -8
  181. package/es/form/fieldTypeMap.d.ts +0 -7
  182. package/es/form/index.d.ts +0 -125
  183. package/es/form/locales/validate.d.ts +0 -159
  184. package/es/form/schemaNameMap.d.ts +0 -5
  185. package/es/form/typing.d.ts +0 -194
  186. package/es/form/utils.d.ts +0 -55
  187. package/es/form/warning.d.ts +0 -3
  188. package/es/hooks/index.d.ts +0 -2
  189. package/es/index-without-icon.d.ts +0 -32
  190. package/es/index.d.ts +0 -32
  191. package/es/info/components/InfoGroup/index.d.ts +0 -5
  192. package/es/info/components/InfoValueItem/index.d.ts +0 -5
  193. package/es/info/components/ProInfoItem/index.d.ts +0 -5
  194. package/es/info/components/baseInfo/index.d.ts +0 -8
  195. package/es/info/components/headerInfo/index.d.ts +0 -8
  196. package/es/info/components/tableInfo/index.d.ts +0 -7
  197. package/es/info/index.d.ts +0 -10
  198. package/es/info/typing.d.ts +0 -220
  199. package/es/info/utils/index.d.ts +0 -20
  200. package/es/info/utils/layout.d.ts +0 -2
  201. package/es/info/utils/utils.d.ts +0 -1
  202. package/es/layout/index.d.ts +0 -2
  203. package/es/nocode/configurators/Card.d.ts +0 -3
  204. package/es/nocode/configurators/PageHeader.d.ts +0 -3
  205. package/es/nocode/configurators/ProTable.d.ts +0 -3
  206. package/es/nocode/configurators/common.d.ts +0 -280
  207. package/es/nocode/configurators/index.d.ts +0 -15
  208. package/es/nocode/configurators/map.d.ts +0 -2
  209. package/es/nocode/index.d.ts +0 -8
  210. package/es/nocode/pages/editor.d.ts +0 -12
  211. package/es/nocode/pages/index.d.ts +0 -14
  212. package/es/nocode/pages/playground.d.ts +0 -11
  213. package/es/nocode/pages/renderer.d.ts +0 -10
  214. package/es/nocode/playground.d.ts +0 -14
  215. package/es/page-container/index.d.ts +0 -3
  216. package/es/page-header/index.d.ts +0 -74
  217. package/es/sidebar/components/sidebar-container/index.d.ts +0 -5
  218. package/es/sidebar/components/tree/index.d.ts +0 -6
  219. package/es/sidebar/components/tree-node/components/HoverTooltip/index.d.ts +0 -15
  220. package/es/sidebar/components/tree-node/components/IconAction/index.d.ts +0 -12
  221. package/es/sidebar/components/tree-node/components/IconSwitch/index.d.ts +0 -23
  222. package/es/sidebar/components/tree-node/index.d.ts +0 -7
  223. package/es/sidebar/index.d.ts +0 -9
  224. package/es/sidebar/typing.d.ts +0 -141
  225. package/es/sidebar/utils/action-ref.d.ts +0 -3
  226. package/es/sidebar/utils/index.d.ts +0 -364
  227. package/es/skeleton/index.d.ts +0 -3
  228. package/es/table/components/CardView/index.d.ts +0 -5
  229. package/es/table/components/EmptyContent/index.d.ts +0 -2
  230. package/es/table/components/Filter/index.d.ts +0 -12
  231. package/es/table/components/Layout/index.d.ts +0 -5
  232. package/es/table/components/LoadMore/index.d.ts +0 -20
  233. package/es/table/components/Pagination/index.d.ts +0 -7
  234. package/es/table/components/QuickAction/index.d.ts +0 -11
  235. package/es/table/components/ToolBar/CardSwitch.d.ts +0 -8
  236. package/es/table/components/ToolBar/DensityIcon.d.ts +0 -4
  237. package/es/table/components/ToolBar/FilterColumnIcon.d.ts +0 -4
  238. package/es/table/components/ToolBar/FullScreenIcon.d.ts +0 -4
  239. package/es/table/components/ToolBar/Fullscreen.d.ts +0 -10
  240. package/es/table/components/ToolBar/RefreshIcon.d.ts +0 -4
  241. package/es/table/components/ToolBar/index.d.ts +0 -5
  242. package/es/table/index.d.ts +0 -5
  243. package/es/table/typing.d.ts +0 -418
  244. package/es/table/utils/columnRender.d.ts +0 -13
  245. package/es/table/utils/genProColumnToColumn.d.ts +0 -13
  246. package/es/table/utils/getTableProps.d.ts +0 -2
  247. package/es/table/utils/getTableSortIcons.d.ts +0 -3
  248. package/es/table/utils/index.d.ts +0 -19
  249. package/es/table/utils/pureColumnRender.d.ts +0 -9
  250. package/es/table/utils/pureGenProColumnToColumn.d.ts +0 -7
  251. package/es/table/utils/useTableSelection.d.ts +0 -3
  252. package/es/table/utils/util.d.ts +0 -5
  253. package/es/templates/Detail/index.d.ts +0 -2
  254. package/es/templates/Form/index.d.ts +0 -2
  255. package/es/templates/List/index.d.ts +0 -9
  256. package/es/templates/index.d.ts +0 -3
  257. package/es/timeline/ProTimeLineItem/index.d.ts +0 -5
  258. package/es/timeline/index.d.ts +0 -10
  259. package/es/timeline/typing.d.ts +0 -107
  260. package/es/utils/index.d.ts +0 -3
  261. package/es/utils/message.d.ts +0 -3
@@ -1,6 +0,0 @@
1
- import { DialogTableAction } from './dialog-table';
2
- export declare type DrawerTableAction = DialogTableAction;
3
- export declare function useDrawerTableAction(action: DrawerTableAction, context?: any): {
4
- [x: string]: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
5
- };
6
- export default useDrawerTableAction;
@@ -1,6 +0,0 @@
1
- import { DialogAction } from './dialog';
2
- export declare type DrawerAction = Omit<DialogAction, 'dialogQuickShowType' | 'messageType'>;
3
- export declare function useDrawerAction(action: DrawerAction, context?: any): {
4
- [x: string]: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
5
- };
6
- export default useDrawerAction;
@@ -1,7 +0,0 @@
1
- import { DialogAction } from './dialog';
2
- export interface ErrorAction extends DialogAction {
3
- }
4
- export declare function useErrorAction(action: DialogAction, context?: any): {
5
- [x: string]: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
6
- };
7
- export default useErrorAction;
@@ -1,114 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import { ButtonProps } from '@alicloudfe/components/types/button';
3
- import { MenuButtonProps } from '@alicloudfe/components/types/menu-button';
4
- import { TooltipProps } from '@alicloudfe/components/types/balloon';
5
- import { LinkAction } from './link';
6
- import { RequestAction } from './request';
7
- import { DialogAction } from './dialog';
8
- import { DialogFormAction } from './dialog-form';
9
- import { DialogTableAction } from './dialog-table';
10
- import { DialogInfoAction } from './dialog-info';
11
- import { PopConfirmAction } from './pop-confirm';
12
- import './index.scss';
13
- export declare type ProActionConfig = ({
14
- type: 'dialog-form' | 'drawer-form';
15
- } & DialogFormAction) | ({
16
- type: 'dialog-table' | 'drawer-table';
17
- } & DialogTableAction) | ({
18
- type: 'dialog-info' | 'drawer-info';
19
- } & DialogInfoAction) | ({
20
- type: 'pop-confirm' | 'danger-pop-confirm';
21
- } & PopConfirmAction) | ({
22
- type: 'dialog' | 'drawer' | 'confirm' | 'danger-confirm' | 'notice' | 'error';
23
- } & DialogAction) | ({
24
- type: 'request';
25
- } & RequestAction) | ({
26
- type: 'link';
27
- } & LinkAction);
28
- export declare function registerActionHandler(id: string, extendActionId: string, defaultConfig: any): void;
29
- export declare function useAction(config?: ProActionConfig, context?: any): any;
30
- export interface ProActionButtonProps extends ProActionCommonProps, ButtonProps {
31
- config?: ProActionConfig;
32
- disabled?: any;
33
- tooltip?: ReactNode;
34
- disabledTooltip?: ReactNode;
35
- icon?: string;
36
- tooltipProps?: TooltipProps;
37
- onClick?: (event: React.MouseEvent<Element, MouseEvent>, context?: any) => void;
38
- }
39
- export declare const ProActionButton: (props: ProActionButtonProps) => JSX.Element;
40
- export interface ProActionCommonProps {
41
- key?: string | number;
42
- visible?: any;
43
- context?: any;
44
- 'data-teamix-spm'?: string;
45
- }
46
- export interface ProActionMenuButtonProps extends ProActionCommonProps, Omit<MenuButtonProps, 'visible'> {
47
- actions: ProActionProps[];
48
- icon?: string;
49
- noArrow?: boolean;
50
- 'data-teamix-spm'?: string;
51
- }
52
- export declare const ProActionMenuButton: (props: ProActionMenuButtonProps) => JSX.Element;
53
- export interface ProActionDividerProps extends ProActionCommonProps {
54
- type: 'divider';
55
- }
56
- export declare type ProActionProps = ProActionButtonProps | ProActionMenuButtonProps | ProActionDividerProps;
57
- export declare type ProActionGroupProps = {
58
- /** 操作组类型:按钮、文字按钮 */
59
- type?: 'button' | 'text';
60
- /** 上下文 */
61
- context?: any;
62
- /** 操作项配置 */
63
- actions: ProActionProps[];
64
- /** 操作按钮最长数量,超出后折叠,默认为4 */
65
- max?: number;
66
- /**
67
- * @deprecated 建议使用 more 代替
68
- */
69
- moreText?: string;
70
- /** 更多按钮的配置,只有在actions数量超过max时才有效 */
71
- more?: string | Omit<ProActionMenuButtonProps, 'actions'>;
72
- /** 是否有分割线,只有type="text"时生效,默认有分割线 */
73
- divider?: boolean;
74
- /** 用于埋点 */
75
- ['data-teamix-spm']?: string;
76
- /** icon */
77
- icon?: React.ReactNode;
78
- } & React.HTMLAttributes<HTMLElement>;
79
- export declare function ProActionGroup(props: ProActionGroupProps): JSX.Element;
80
- declare const ProAction: (props: ProActionProps) => JSX.Element;
81
- export default ProAction;
82
- export * from './quick';
83
- /**
84
- * @deprecated 建议使用 ProActionGroup 代替
85
- */
86
- export declare const ActionGroup: typeof ProActionGroup;
87
- /**
88
- * @deprecated 建议使用 ProActionButton 代替
89
- */
90
- export declare const ActionButton: (props: ProActionButtonProps) => JSX.Element;
91
- /**
92
- * @deprecated 建议使用 ProActionMenuButton 代替
93
- */
94
- export declare const ActionMenuButton: (props: ProActionMenuButtonProps) => JSX.Element;
95
- /**
96
- * @deprecated 建议使用 ProActionConfig 代替
97
- */
98
- export declare type ActionConfig = ProActionConfig;
99
- /**
100
- * @deprecated 建议使用 ProActionButtonProps 代替
101
- */
102
- export declare type IActionButton = ProActionButtonProps;
103
- /**
104
- * @deprecated 建议使用 ProActionMenuButtonProps 代替
105
- */
106
- export declare type IActionMenuButton = ProActionMenuButtonProps;
107
- /**
108
- * @deprecated 建议使用 ProActionGroupProps 代替
109
- */
110
- export declare type ActionGroupProps = ProActionGroupProps;
111
- /**
112
- * @deprecated 建议使用 ProActionProps 代替
113
- */
114
- export declare type ICommonActionButton = ProActionProps;
@@ -1,8 +0,0 @@
1
- import { LocationHistory } from '@teamix/utils';
2
- import { BaseAction } from './base';
3
- export interface LinkAction extends BaseAction, LocationHistory {
4
- }
5
- export declare function useLinkAction(action: LinkAction, actionContext?: any): {
6
- [x: string]: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
7
- };
8
- export default useLinkAction;
@@ -1,7 +0,0 @@
1
- import { DialogAction } from './dialog';
2
- export interface NoticeAction extends DialogAction {
3
- }
4
- export declare function useNoticeAction(action: DialogAction, context?: any): {
5
- [x: string]: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
6
- };
7
- export default useNoticeAction;
@@ -1,9 +0,0 @@
1
- import { IPopConfirmProps } from '@teamix/pop-confirm';
2
- import { DialogAction } from './dialog';
3
- export declare type PopConfirmAction = DialogAction & Omit<IPopConfirmProps, 'type' | 'trigger'> & {
4
- popType?: IPopConfirmProps['type'];
5
- };
6
- export declare function usePopConfirmAction(action: PopConfirmAction, context?: any): {
7
- [x: string]: (e: import("react").MouseEvent<HTMLElement, MouseEvent>) => Promise<void>;
8
- };
9
- export default usePopConfirmAction;
@@ -1,2 +0,0 @@
1
- import { ProActionProps } from './';
2
- export declare function createAction(props: ProActionProps): void;
@@ -1,9 +0,0 @@
1
- import { CommonRequestConfig } from '@teamix/utils';
2
- import { BaseAction } from './base';
3
- export interface RequestAction extends CommonRequestConfig, BaseAction {
4
- }
5
- export declare function doRequest(action: RequestAction, context?: any, history?: any, extraParams?: any): Promise<unknown>;
6
- export declare function useRequestAction(action: RequestAction, actionContext?: any): {
7
- loading: boolean;
8
- };
9
- export default useRequestAction;
@@ -1 +0,0 @@
1
- export declare function addContext(props?: any, context?: any): any;
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import { ProCardProps } from './index';
3
- /**
4
- * @deprecated 建议使用 ProCardProps 代替
5
- */
6
- export declare type ProCardContainerProps = ProCardProps;
7
- /**
8
- * @deprecated 建议使用 ProCard 代替
9
- */
10
- export declare const ProCardContainer: React.FC<ProCardContainerProps>;
11
- /**
12
- * @deprecated 建议使用 ProCardContainer 代替
13
- */
14
- export declare const CardContainer: React.FC<ProCardProps>;
15
- /**
16
- * @deprecated 建议使用 ProCardContainerProps 代替
17
- */
18
- export declare type CardContainerProps = ProCardContainerProps;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- declare const ProCardDivider: {
3
- (props: React.HTMLAttributes<HTMLElement>): JSX.Element;
4
- isProCardDivider: boolean;
5
- };
6
- export default ProCardDivider;
@@ -1,109 +0,0 @@
1
- import React from 'react';
2
- import { ProTagItem } from '../field';
3
- import { ProMessageProps } from '../utils/message';
4
- import { ProActionGroupProps } from '../actions';
5
- import './index.scss';
6
- export * from './card-container';
7
- export interface ProCardProps extends Omit<React.HTMLAttributes<HTMLElement>, 'title'> {
8
- /** 内容部分 */
9
- children?: React.ReactNode;
10
- /**卡片标题 */
11
- title?: React.ReactNode;
12
- /**卡片副标题 */
13
- subTitle?: React.ReactNode;
14
- /** 标题右侧图标 hover 提示信息 */
15
- tooltip?: React.ReactNode;
16
- /** 标题右侧图标 */
17
- tooltipIcon?: React.ReactNode;
18
- /** 标签组 */
19
- tags?: ProTagItem[];
20
- /** 标题右侧描述 */
21
- description?: React.ReactNode;
22
- /** 额外信息区域,位于卡片右上角,可以配置一些常用轻量操作 */
23
- extra?: React.ReactNode | ProActionGroupProps;
24
- /** 卡片操作区域,位于卡片最下方,可以配置一些常用轻量操作 */
25
- actions?: React.ReactNode | ProActionGroupProps;
26
- /** 卡片背景图 */
27
- image?: string;
28
- /** 位于弹窗内容上方的消息提示区 */
29
- message?: ProMessageProps;
30
- /** 卡片标题下方是否有分割线 */
31
- divider?: boolean;
32
- /**
33
- * @deprecated 建议使用 borderColor = 'none' 代替
34
- */
35
- bordered?: boolean;
36
- /** 卡片在 hover 时拥有阴影效果 */
37
- hoveredShadow?: boolean;
38
- /** 卡片是否为紧凑模式,紧凑模式下卡片没有内边距和边框 */
39
- compacted?: boolean;
40
- /** 卡片内容是否居中展示 */
41
- centered?: boolean;
42
- /** 加载中状态 */
43
- loading?: boolean;
44
- /** 是否只是内容区加载,标题正常显示 */
45
- contentLoading?: boolean;
46
- /** 空状态 */
47
- empty?: boolean;
48
- /** 边框颜色 */
49
- borderColor?: 'blue' | 'green' | 'red' | 'orange' | 'yellow' | 'grey' | 'transparent' | 'none';
50
- /** 背景色 */
51
- backgroundColor?: 'blue' | 'green' | 'red' | 'orange' | 'yellow' | 'grey' | 'transparent';
52
- /** 内容区栅格排列 flex 方向,仅仅在卡片嵌套模式下生效 */
53
- direction?: 'row' | 'column' | 'row-reverse' | 'column-reverse';
54
- /** 内容区栅格的间距,仅仅在卡片嵌套模式下生效 */
55
- spacing?: [number, number] | number;
56
- /** 内容区栅格超出部分是否换行展示,仅仅在卡片嵌套模式下生效 */
57
- wrap?: boolean;
58
- /** 卡片嵌套使用的模式下,子卡片分隔 */
59
- split?: 'horizontal' | 'vertical';
60
- /** 卡片嵌套使用的模式下,卡片占父卡片内容区域的栅格数量 */
61
- col?: number | string;
62
- /** 卡片是否可折叠 */
63
- collapsible?: boolean;
64
- /** 默认是否折叠,用于非受控模式 */
65
- defaultCollapsed?: boolean;
66
- /** 是否折叠,受控模式 */
67
- collapsed?: boolean;
68
- /** 折叠状态改变的回调函数 */
69
- onCollapse?: (collapsed: boolean) => void;
70
- /** 卡片 class */
71
- className?: string;
72
- /** 卡片样式 */
73
- style?: React.CSSProperties;
74
- /** 卡片内容 class */
75
- contentClassName?: string;
76
- /** 卡片内容样式 */
77
- contentStyle?: React.CSSProperties;
78
- /** 上下文 */
79
- context?: any;
80
- }
81
- export declare const ProCard: {
82
- (props: ProCardProps): JSX.Element;
83
- defaultProps: {
84
- bordered: boolean;
85
- spacing: number;
86
- direction: string;
87
- };
88
- Divider: {
89
- (props: React.HTMLAttributes<HTMLElement>): JSX.Element;
90
- isProCardDivider: boolean;
91
- };
92
- Selectable: {
93
- (props: import("./selectable").ProCardSelectableProps): JSX.Element;
94
- defaultProps: {
95
- hoveredShadow: boolean;
96
- };
97
- isProCard: boolean;
98
- };
99
- Tab: {
100
- (props: import("@alifd/next/types/tab").TabProps): JSX.Element;
101
- Item: typeof import("@alifd/next/types/tab").Item;
102
- };
103
- isProCard: boolean;
104
- };
105
- export default ProCard;
106
- /**
107
- * @deprecated 建议使用 ProCardProps 代替
108
- */
109
- export declare type CardProps = ProCardProps;
@@ -1,13 +0,0 @@
1
- import { ProCardProps } from './index';
2
- export interface ProCardSelectableProps extends Omit<ProCardProps, 'onSelect'> {
3
- selected?: boolean;
4
- onSelect?: (selected: boolean) => void;
5
- }
6
- declare const ProCardSelectable: {
7
- (props: ProCardSelectableProps): JSX.Element;
8
- defaultProps: {
9
- hoveredShadow: boolean;
10
- };
11
- isProCard: boolean;
12
- };
13
- export default ProCardSelectable;
package/es/card/tab.d.ts DELETED
@@ -1,6 +0,0 @@
1
- import { TabProps } from '@alicloudfe/components/types/tab';
2
- declare const ProCardTab: {
3
- (props: TabProps): JSX.Element;
4
- Item: typeof import("@alifd/next/types/tab").Item;
5
- };
6
- export default ProCardTab;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function formatSpacing(spacing?: [number, number] | number): {
3
- horizonal: number;
4
- vertical: number;
5
- };
6
- export declare function getColClassAndStyle(col?: number | string): {
7
- className?: string;
8
- style: React.CSSProperties;
9
- };
@@ -1,3 +0,0 @@
1
- import ProField from '@teamix/pro-field';
2
- export * from '@teamix/pro-field';
3
- export default ProField;
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
- import { BalloonProps as IPopoverProps } from '@alicloudfe/components/types/balloon';
3
- import { DialogProps } from '@alicloudfe/components/types/dialog';
4
- import { DrawerProps } from '@alicloudfe/components/types/drawer';
5
- import { IFormItemProps } from '@teamix/formily';
6
- declare type ComposedEditable = React.FC<IFormItemProps> & {
7
- BaseBuilder?: (type: any) => React.FC<DialogProps> | React.FC<DrawerProps>;
8
- Dialog?: React.FC;
9
- Drawer?: React.FC;
10
- Popover?: React.FC<IPopoverProps & {
11
- title?: React.ReactNode;
12
- }>;
13
- };
14
- export declare const Editable: ComposedEditable;
15
- declare const EditableDialog: React.FC<{}>;
16
- declare const EditableDrawer: React.FC<{}>;
17
- declare const EditablePopover: React.FC<IPopoverProps & {
18
- title?: React.ReactNode;
19
- }>;
20
- export { EditableDialog, EditableDrawer, EditablePopover };
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- interface IGroupPanelProps {
4
- title?: React.ReactNode;
5
- xIndex?: number;
6
- className?: string;
7
- children?: React.ReactNode;
8
- }
9
- declare type IGroupPanel = React.FC<IGroupPanelProps>;
10
- declare type IFormGroup = React.FC<any> & {
11
- GroupPanel?: IGroupPanel;
12
- };
13
- declare const FormGroup: IFormGroup;
14
- export default FormGroup;
@@ -1,3 +0,0 @@
1
- declare const componentMap: any;
2
- declare const inputCategory: any[];
3
- export { componentMap, inputCategory };
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- import type { SelectProps } from '@alicloudfe/components/types/select';
3
- import type { ButtonProps } from '@alicloudfe/components/types/button';
4
- import './index.scss';
5
- /**
6
- * LightFilter
7
- */
8
- interface ILightFiter {
9
- size?: 'small' | 'medium' | 'large';
10
- defaultFilterValue?: string;
11
- filterValues?: string[];
12
- onFilterChange?: (schema?: any) => any;
13
- filterProps?: SelectProps;
14
- buttonProps?: ButtonProps;
15
- }
16
- declare const LightFilter: React.FC<ILightFiter>;
17
- export default LightFilter;
@@ -1,2 +0,0 @@
1
- declare const _default: any;
2
- export default _default;
@@ -1,3 +0,0 @@
1
- import { GeneralField } from '@formily/core';
2
- declare const mapDateFormat: (props: any, field: GeneralField) => {};
3
- export default mapDateFormat;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import './index.scss';
3
- interface ITextProps {
4
- className?: string;
5
- children?: React.ReactNode;
6
- }
7
- declare const Text: React.FC<ITextProps>;
8
- export default Text;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import type { FilterProps } from '../typing';
3
- /**
4
- * 高级筛选
5
- */
6
- declare const AdvancedFilter: React.FC<FilterProps>;
7
- export default AdvancedFilter;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import type { QueryFilterLayoutProps } from '../typing';
3
- import './layout.scss';
4
- declare const QueryFilterLayout: React.FC<QueryFilterLayoutProps>;
5
- export { QueryFilterLayout };
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import type { FilterProps } from '../typing';
3
- /**
4
- * 轻量筛选
5
- */
6
- declare const LightFilter: React.FC<FilterProps>;
7
- export default LightFilter;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import type { FilterProps } from '../typing';
3
- /**
4
- * 简单筛选
5
- */
6
- declare const SimpleFilter: React.FC<FilterProps>;
7
- export default SimpleFilter;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { QueryFilterLayout } from './Layout';
3
- import type { QueryFilterProps } from '../typing';
4
- import './index.scss';
5
- /**
6
- * 查询筛选
7
- */
8
- declare const QueryFilter: React.FC<QueryFilterProps>;
9
- export { QueryFilter, QueryFilterLayout };
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import type { IFilterProps } from '../typing';
3
- import './index2.scss';
4
- /**
5
- * 简单筛选
6
- */
7
- declare const SimpleFilter: React.FC<IFilterProps>;
8
- /**
9
- * 高级筛选
10
- */
11
- declare const AdvancedFilter: React.FC<IFilterProps>;
12
- export { AdvancedFilter, SimpleFilter };
13
- export default AdvancedFilter;
@@ -1,2 +0,0 @@
1
- declare const _default: (bindUrl: any, functions: any, formRef: any) => any;
2
- export default _default;
@@ -1,6 +0,0 @@
1
- declare const useSpecialProps: (props: any) => {
2
- hasDefault: boolean;
3
- hasChangeDefault: boolean;
4
- hasRequired: boolean;
5
- };
6
- export default useSpecialProps;
@@ -1,2 +0,0 @@
1
- declare const _default: (form: any, schema: any, scope: any) => void;
2
- export default _default;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const customComponent: (component: React.FC<any>) => React.ForwardRefExoticComponent<Pick<Partial<any>, string | number | symbol> & React.RefAttributes<unknown>>;
3
- export { customComponent };
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import type { ProFormProps } from '../typing';
3
- import './index.scss';
4
- declare const ProForm: React.FC<ProFormProps>;
5
- export default ProForm;
@@ -1,9 +0,0 @@
1
- declare const useAutoLayout: ({ breakpoints: outBreakpoints, layout, labelAlign, wrapperAlign, labelCol: outLabelCol, wrapperCol: outWrapperCol, autoLayout, schema, }: any, formRef: any) => {
2
- breakpoints: any;
3
- layout: any;
4
- labelAlign: any;
5
- wrapperAlign: any;
6
- labelCol: any;
7
- wrapperCol: any;
8
- };
9
- export default useAutoLayout;
@@ -1,6 +0,0 @@
1
- import { CommonRequestConfig } from '@teamix/utils';
2
- interface IUseAutoSubmit {
3
- (onSubmit?: ((values: any) => any) | CommonRequestConfig, context?: any): any;
4
- }
5
- declare const useAutoSubmit: IUseAutoSubmit;
6
- export default useAutoSubmit;
@@ -1,5 +0,0 @@
1
- declare const _default: () => {
2
- refresh: () => void;
3
- field: any;
4
- };
5
- export default _default;
@@ -1,4 +0,0 @@
1
- import type { Form } from '@formily/core';
2
- declare const useFormDisplayValues: () => any;
3
- declare const getFormDisplayValues: (form: Form) => any;
4
- export { useFormDisplayValues, getFormDisplayValues };
@@ -1,6 +0,0 @@
1
- import { CommonRequestConfig } from '@teamix/utils';
2
- interface IUseInitialRequest {
3
- (initialRequest: CommonRequestConfig, context?: any): Promise<any>;
4
- }
5
- declare const useInitialRequest: IUseInitialRequest;
6
- export default useInitialRequest;
@@ -1,5 +0,0 @@
1
- /**
2
- * Formily组件在ProForm的别名
3
- */
4
- declare const _default: (component: any) => any;
5
- export default _default;
@@ -1,6 +0,0 @@
1
- /**
2
- * 优先使用配置,即非 undefined
3
- * 未配置则按默认规则为基础组件和某些聚合组件添加FormItem
4
- */
5
- declare const _default: (decorator?: string | null, component?: any) => string | null | undefined;
6
- export default _default;
@@ -1,5 +0,0 @@
1
- /**
2
- * 组件的默认type类型,未指定类型为void
3
- */
4
- declare const _default: (type: string | undefined, component?: any) => any;
5
- export default _default;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import type { ProFormProps } from '../typing';
3
- declare const _default: React.MemoExoticComponent<({ schema, scope, components }: ProFormProps) => JSX.Element>;
4
- export default _default;
@@ -1,3 +0,0 @@
1
- import type { ProFormInitializeItem } from '../typing';
2
- declare const initialize: ProFormInitializeItem;
3
- export default initialize;
@@ -1,3 +0,0 @@
1
- import type { ProFormInitializeItem } from '../typing';
2
- declare const initialize: ProFormInitializeItem;
3
- export default initialize;
@@ -1,3 +0,0 @@
1
- import type { ProFormInitializeItem } from '../typing';
2
- declare const initialize: ProFormInitializeItem;
3
- export default initialize;
@@ -1,3 +0,0 @@
1
- import type { ProFormInitializeItem } from '../typing';
2
- declare const initialize: ProFormInitializeItem;
3
- export default initialize;
@@ -1,15 +0,0 @@
1
- interface IInitializeDataSource {
2
- (requestConfig: any, suffix: string): {
3
- dataSource?: any[];
4
- reactions: any[];
5
- scope: {
6
- [x: string]: any;
7
- };
8
- data?: any;
9
- props?: {
10
- [x: string]: any;
11
- };
12
- };
13
- }
14
- declare const initializeDataSource: IInitializeDataSource;
15
- export default initializeDataSource;
@@ -1,3 +0,0 @@
1
- import type { ProFormInitializeItem } from '../typing';
2
- declare const initialize: ProFormInitializeItem;
3
- export default initialize;
@@ -1,3 +0,0 @@
1
- import type { ProFormInitializeItem } from '../typing';
2
- declare const initialize: ProFormInitializeItem;
3
- export default initialize;