onchain-uikit 3.9.4-alpha4 → 3.9.4-alpha40
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.
- package/dist/index.cjs.js +401 -222
- package/dist/index.es.js +35753 -20037
- package/dist/index.umd.js +468 -289
- package/dist/onchain-uikit.css +2 -2
- package/lib/src/app/main/model/context.d.ts +2 -0
- package/lib/src/components/OnChainAdvancedSearch/index.d.ts +22 -3
- package/lib/src/components/OnChainAdvancedSearch/index.stories.d.ts +1 -1
- package/lib/src/components/OnChainExcelTemplate/XlsxSheetManager.d.ts +5 -0
- package/lib/src/components/OnChainExcelTemplate/core.d.ts +14 -0
- package/lib/src/components/OnChainExcelTemplate/index.d.ts +5 -0
- package/lib/src/components/OnChainFormItem/index.d.ts +5 -5
- package/lib/src/components/OnChainGenAntImage/index.d.ts +1 -0
- package/lib/src/components/OnChainGlobalLoading/index.d.ts +3 -3
- package/lib/src/components/OnChainGlobalLoading/index.stories.d.ts +1 -1
- package/lib/src/components/OnChainIcon/index.d.ts +7 -3
- package/lib/src/components/OnChainModal/index.d.ts +1 -0
- package/lib/src/components/OnChainPopoverTransfer/index.d.ts +4 -4
- package/lib/src/components/OnChainPopoverTransfer/select/index.d.ts +5 -5
- package/lib/src/components/OnChainPopupSelect/index.d.ts +4 -1
- package/lib/src/components/OnChainProvider/index.d.ts +2 -1
- package/lib/src/components/OnChainPublicTree/index.d.ts +2 -2
- package/lib/src/components/OnChainPublicTree/index.stories.d.ts +1 -1
- package/lib/src/components/OnChainQueryBuilder/index.d.ts +14 -13
- package/lib/src/components/OnChainResourceTree/index.d.ts +2 -3
- package/lib/src/components/OnChainSearchSelect/index.d.ts +18 -0
- package/lib/src/components/OnChainSelectPopupForm/index.d.ts +2 -2
- package/lib/src/components/OnChainSelectPopupForm/select/index.d.ts +3 -3
- package/lib/src/components/OnChainTable/ContextMenu.d.ts +2 -2
- package/lib/src/components/OnChainTable/OnChainTableFormItem/index.d.ts +4 -3
- package/lib/src/components/OnChainTable/TableFooter.d.ts +2 -2
- package/lib/src/components/OnChainTable/TableUtils.d.ts +4 -4
- package/lib/src/components/OnChainTable/index.d.ts +6 -6
- package/lib/src/components/OnChainTable/index.stories.d.ts +4 -1
- package/lib/src/components/OnChainTable/useClipboard.d.ts +2 -2
- package/lib/src/components/OnChainTable/useColumn.d.ts +2 -2
- package/lib/src/components/OnChainTable/useCopy.d.ts +1 -2
- package/lib/src/components/OnChainTable/useDynamicHeight.d.ts +2 -2
- package/lib/src/components/OnChainTable/useFiltered.d.ts +2 -2
- package/lib/src/components/OnChainTable/usePaste.d.ts +1 -2
- package/lib/src/components/OnChainTableSelection/index.d.ts +8 -5
- package/lib/src/components/OnChainTableSelection/index.stories.d.ts +1 -1
- package/lib/src/components/OnChainUniverExcel/data.d.ts +2 -0
- package/lib/src/components/OnChainUniverExcel/index.d.ts +14 -0
- package/lib/src/components/OnChainUniverExcel/plugin.d.ts +1 -0
- package/lib/src/components/OnChainUniverExcel/plugins/controllers/controller.d.ts +11 -0
- package/lib/src/components/OnChainUniverExcel/plugins/controllers/menu/export.d.ts +13 -0
- package/lib/src/components/OnChainUniverExcel/plugins/controllers/menu/generate.d.ts +12 -0
- package/lib/src/components/OnChainUniverExcel/plugins/controllers/menu/import.d.ts +19 -0
- package/lib/src/components/OnChainUniverExcel/plugins/controllers/menu/save.d.ts +3 -0
- package/lib/src/components/OnChainUniverExcel/plugins/controllers/menu/saveDatabase.d.ts +12 -0
- package/lib/src/components/OnChainUniverExcel/plugins/index.d.ts +42 -0
- package/lib/src/components/OnChainUniverExcel/plugins/locale/en-US.d.ts +15 -0
- package/lib/src/components/OnChainUniverExcel/plugins/locale/zh-CN.d.ts +15 -0
- package/lib/src/components/OnChainVTable/ListTable.d.ts +30 -0
- package/lib/src/components/OnChainVTable/components/index.d.ts +1 -0
- package/lib/src/components/OnChainVTable/components/tooltip.d.ts +9 -0
- package/lib/src/components/OnChainVTable/const.d.ts +47 -0
- package/lib/src/components/OnChainVTable/demo.d.ts +1 -0
- package/lib/src/components/OnChainVTable/feature/customMergeCell.d.ts +33 -0
- package/lib/src/components/OnChainVTable/feature/fill-handle.d.ts +6 -0
- package/lib/src/components/OnChainVTable/feature/history-edit.d.ts +435 -0
- package/lib/src/components/OnChainVTable/feature/index.d.ts +6 -0
- package/lib/src/components/OnChainVTable/feature/right-click-menu.d.ts +24 -0
- package/lib/src/components/OnChainVTable/feature/style.d.ts +17 -0
- package/lib/src/components/OnChainVTable/feature/tooltip.d.ts +9 -0
- package/lib/src/components/OnChainVTable/feature/types.d.ts +34 -0
- package/lib/src/components/OnChainVTable/feature/utils.d.ts +141 -0
- package/lib/src/components/OnChainVTable/index.d.ts +6 -0
- package/lib/src/components/OnChainVTable/index.stories.d.ts +87 -0
- package/lib/src/components/OnChainVTable/type.d.ts +114 -0
- package/lib/src/index.d.ts +50 -2
- package/lib/src/types/gantt.d.ts +1 -1
- package/lib/src/typings.d.ts +3 -3
- package/lib/src/utils/utility.d.ts +3 -1
- package/lib/typings.d.ts +3 -1
- package/package.json +9 -1
|
@@ -13,6 +13,8 @@ export interface ContextData {
|
|
|
13
13
|
formItemCom?: Record<string, React.FC<any>>;
|
|
14
14
|
/** 覆盖a跳转标签 */
|
|
15
15
|
overrideLinkCom?: Record<string, React.FC<any>>;
|
|
16
|
+
/** LinkInstance组件 **/
|
|
17
|
+
linkInstanceCom?: Record<string, React.FC<any>>;
|
|
16
18
|
/**
|
|
17
19
|
* 根据patchCode翻译国际化文本
|
|
18
20
|
* @param key pathCode
|
|
@@ -1,8 +1,27 @@
|
|
|
1
1
|
export interface OnChainAdvancedSearchProps {
|
|
2
|
-
|
|
2
|
+
typeData: Array<object>;
|
|
3
|
+
treeData: Array<object>;
|
|
4
|
+
subcategory: Array<object>;
|
|
5
|
+
conditionObj: any;
|
|
3
6
|
advancedSearchClassify: Array<object>;
|
|
4
|
-
|
|
7
|
+
searchBtn?: () => void;
|
|
8
|
+
rightEmpty: (isClear?: boolean, option?: any) => void;
|
|
9
|
+
getInterface: (val: any, value: any, isDefaultAttribute: boolean) => void;
|
|
5
10
|
getAttribute: (val: any, value?: any, isDefaultAttribute?: boolean) => void;
|
|
11
|
+
storageCondition?: (v: any) => any;
|
|
12
|
+
conditionEdit: (v: any) => any;
|
|
13
|
+
getTreeList: (v: any, a?: any, b?: any) => any;
|
|
14
|
+
treeList: () => any;
|
|
15
|
+
getLifecycles: (code: string) => any;
|
|
16
|
+
getListbycode: (code: string) => any;
|
|
17
|
+
getOverview: (id: string) => any;
|
|
18
|
+
getLifecyclesNopage: (id: string, code: string) => any;
|
|
19
|
+
getHistory: () => any;
|
|
20
|
+
getRelation: () => any;
|
|
21
|
+
getObjects: (code: string) => any;
|
|
22
|
+
getRoles: () => any;
|
|
23
|
+
getInstanceParams: (val: any) => any;
|
|
24
|
+
searchTable: (val: any) => any;
|
|
6
25
|
}
|
|
7
|
-
declare const OnChainAdvancedSearch: (
|
|
26
|
+
declare const OnChainAdvancedSearch: import('react').ForwardRefExoticComponent<OnChainAdvancedSearchProps & import('react').RefAttributes<unknown>>;
|
|
8
27
|
export default OnChainAdvancedSearch;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: (
|
|
4
|
+
component: import('react').ForwardRefExoticComponent<import('.').OnChainAdvancedSearchProps & import('react').RefAttributes<unknown>>;
|
|
5
5
|
parameters: {
|
|
6
6
|
layout: string;
|
|
7
7
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface OnChainExcelViewerProps {
|
|
3
|
+
/** 文件URL */
|
|
4
|
+
url: string;
|
|
5
|
+
/**sheet单元格move */
|
|
6
|
+
onSheetMousemove?: (cell: any, postion: any, sheetFile: any, moveState: any, ctx: any) => void;
|
|
7
|
+
/**sheet单元格up */
|
|
8
|
+
onSheetMouseup?: (cell: any, postion: any, sheetFile: any, moveState: any, ctx: any) => void;
|
|
9
|
+
/**sheet单元格Drag */
|
|
10
|
+
onCellDragStop?: (cell: any, postion: any, sheetFile: any, moveState: any, ctx: any) => void;
|
|
11
|
+
}
|
|
12
|
+
/** Excel预览 */
|
|
13
|
+
declare const OnChainExcelCore: React.FC<OnChainExcelViewerProps>;
|
|
14
|
+
export default OnChainExcelCore;
|
|
@@ -4,10 +4,10 @@ import { RangePickerProps } from 'antd/lib/date-picker/generatePicker';
|
|
|
4
4
|
import { CheckboxGroupProps } from 'antd/lib/checkbox';
|
|
5
5
|
import { OnChainSelectProps } from '../OnChainSelect';
|
|
6
6
|
import { BasicsAttribute } from '../../utils/attribute';
|
|
7
|
-
import {
|
|
7
|
+
import { OnChainPopoverTransferProps } from '../OnChainPopoverTransfer';
|
|
8
8
|
import { FC } from 'react';
|
|
9
|
-
import {
|
|
10
|
-
export declare const
|
|
9
|
+
import { OnChainSelectPopupProps } from '../OnChainSelectPopupForm/select';
|
|
10
|
+
export declare const OnChainTreeSelect: FC<TreeSelectProps>;
|
|
11
11
|
export type contentProps = ({
|
|
12
12
|
formatFormProps?: (props: contentProps['props'], record: any, columnApicode: string) => contentProps;
|
|
13
13
|
} & ({
|
|
@@ -144,7 +144,7 @@ export type contentProps = ({
|
|
|
144
144
|
props?: OnChainSelectProps & {
|
|
145
145
|
attr: BasicsAttribute;
|
|
146
146
|
allListOptions: Record<string, any[]>;
|
|
147
|
-
popoverTransfer: Omit<
|
|
147
|
+
popoverTransfer: Omit<OnChainPopoverTransferProps, 'allListOptions' | 'attr'>;
|
|
148
148
|
};
|
|
149
149
|
} | {
|
|
150
150
|
type: 'CompositeForm';
|
|
@@ -160,7 +160,7 @@ export type contentProps = ({
|
|
|
160
160
|
type: 'SelectPopup';
|
|
161
161
|
middleware?: any;
|
|
162
162
|
cannotread?: string;
|
|
163
|
-
props?:
|
|
163
|
+
props?: OnChainSelectPopupProps['selectProps'];
|
|
164
164
|
}));
|
|
165
165
|
export interface OnChainFormItemProps extends BaseComponentProps, FormItemProps {
|
|
166
166
|
content: contentProps;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { ImageProps } from 'antd';
|
|
3
|
+
export declare const OnChainGenImage: FC<React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>>;
|
|
3
4
|
/** 图片 */
|
|
4
5
|
declare const OnChainGenAntImage: FC<ImageProps>;
|
|
5
6
|
export default OnChainGenAntImage;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BaseComponentProps } from '../../typings';
|
|
2
2
|
import { FC } from 'react';
|
|
3
|
-
export interface
|
|
3
|
+
export interface OnChainGlobalLoadingProps extends BaseComponentProps {
|
|
4
4
|
/** 是否加载 */
|
|
5
5
|
isSpinning?: boolean;
|
|
6
6
|
}
|
|
7
7
|
/** Global加载 */
|
|
8
|
-
declare const
|
|
9
|
-
export default
|
|
8
|
+
declare const OnChainGlobalLoading: FC<OnChainGlobalLoadingProps>;
|
|
9
|
+
export default OnChainGlobalLoading;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import('react').FC<import('.').
|
|
4
|
+
component: import('react').FC<import('.').OnChainGlobalLoadingProps>;
|
|
5
5
|
parameters: {
|
|
6
6
|
layout: string;
|
|
7
7
|
};
|
|
@@ -21,9 +21,13 @@ export interface OnChainIconProps extends BaseComponentProps {
|
|
|
21
21
|
popover?: PopoverProps;
|
|
22
22
|
placement?: string | boolean;
|
|
23
23
|
onClick?: (e?: any) => void;
|
|
24
|
-
onDivClick?: () => void;
|
|
25
|
-
onMouseEnter?: () => void;
|
|
26
|
-
onMouseLeave?: () => void;
|
|
24
|
+
onDivClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
25
|
+
onMouseEnter?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
26
|
+
onMouseLeave?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
27
|
+
/** 是否为鼠标停留显示删除的模式,有值则代表停留触发的毫秒数 */
|
|
28
|
+
isMouseHoldShowDeleteMode?: number;
|
|
29
|
+
/** 点击了悬停出现删除的按钮 */
|
|
30
|
+
onClickHoldDelete?: () => void;
|
|
27
31
|
}
|
|
28
32
|
/** 单纯的ali图标 */
|
|
29
33
|
export declare const AliIconFontFn: (scriptUrl?: string) => React.FC<import('@ant-design/icons/lib/components/IconFont').IconFontProps<string>>;
|
|
@@ -11,6 +11,7 @@ export interface OnChainModalProps extends BaseComponentProps, ModalProps {
|
|
|
11
11
|
progressPercent?: number;
|
|
12
12
|
styleUnify?: boolean;
|
|
13
13
|
}
|
|
14
|
+
export declare const confirm: import('antd/es/modal/confirm').ModalFunc;
|
|
14
15
|
export declare function confirmModalConfig(params: {
|
|
15
16
|
title: any;
|
|
16
17
|
content: any;
|
|
@@ -3,7 +3,7 @@ import { default as React } from 'react';
|
|
|
3
3
|
import { TransferDirection, TransferItem } from 'antd/es/transfer';
|
|
4
4
|
import { Panes } from '../OnChainTabs';
|
|
5
5
|
import { BasicsAttribute } from '../../utils/attribute';
|
|
6
|
-
export interface
|
|
6
|
+
export interface OnChainPopoverTransferProps {
|
|
7
7
|
title?: React.ReactNode;
|
|
8
8
|
allListOptions: Record<string, any[]>;
|
|
9
9
|
showFooter?: boolean;
|
|
@@ -35,7 +35,7 @@ export interface PlmPopoverTransferProps {
|
|
|
35
35
|
defaultActiveKey?: string;
|
|
36
36
|
placeholder?: string;
|
|
37
37
|
}
|
|
38
|
-
export interface
|
|
38
|
+
export interface OnChainPopoverTransferRef {
|
|
39
39
|
dataSource: any[];
|
|
40
40
|
targetKeys: any[];
|
|
41
41
|
loading: boolean;
|
|
@@ -45,5 +45,5 @@ export interface PlmPopoverTransferRef {
|
|
|
45
45
|
cancel?: () => void;
|
|
46
46
|
}) => void;
|
|
47
47
|
}
|
|
48
|
-
declare const
|
|
49
|
-
export default
|
|
48
|
+
declare const OnChainPopoverTransfer: React.ForwardRefExoticComponent<OnChainPopoverTransferProps & React.RefAttributes<OnChainPopoverTransferRef>>;
|
|
49
|
+
export default OnChainPopoverTransfer;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { BasicsAttribute } from '../../../utils/attribute';
|
|
2
2
|
import { SelectProps } from 'antd';
|
|
3
3
|
import { default as React } from 'react';
|
|
4
|
-
import {
|
|
5
|
-
export interface
|
|
4
|
+
import { OnChainPopoverTransferProps } from '..';
|
|
5
|
+
export interface OnChainSelectTransferProps {
|
|
6
6
|
selectProps: Omit<SelectProps, 'onChange'> & {
|
|
7
7
|
attr: BasicsAttribute;
|
|
8
8
|
allListOptions: Record<string, any[]>;
|
|
9
|
-
popoverTransfer: Omit<
|
|
9
|
+
popoverTransfer: Omit<OnChainPopoverTransferProps, 'allListOptions'>;
|
|
10
10
|
/** Table Form 发生改变后的回调 */
|
|
11
11
|
onBlur?: () => void;
|
|
12
12
|
};
|
|
@@ -14,5 +14,5 @@ export interface PlmSelectTransferProps {
|
|
|
14
14
|
value?: string;
|
|
15
15
|
onChange?: (value: string | string[]) => void;
|
|
16
16
|
}
|
|
17
|
-
declare const
|
|
18
|
-
export default
|
|
17
|
+
declare const OnChainSelectTransfer: React.ForwardRefExoticComponent<OnChainSelectTransferProps & React.RefAttributes<any>>;
|
|
18
|
+
export default OnChainSelectTransfer;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
export interface OnChainPopupSelectProps {
|
|
3
|
-
url: string;
|
|
4
3
|
columns: Array<{}>;
|
|
5
4
|
id?: any;
|
|
6
5
|
onChange?: (url: string) => {};
|
|
@@ -27,6 +26,10 @@ export interface OnChainPopupSelectProps {
|
|
|
27
26
|
modalWidth: number;
|
|
28
27
|
isBroadside?: boolean;
|
|
29
28
|
isLibrary?: boolean;
|
|
29
|
+
getUrlData: (data: any) => any;
|
|
30
|
+
getItems?: () => void;
|
|
31
|
+
getInstanceMenu?: () => any;
|
|
32
|
+
getAttributeByTab?: () => any;
|
|
30
33
|
}
|
|
31
34
|
declare const OnChainPopupSelect: FC<OnChainPopupSelectProps>;
|
|
32
35
|
export default OnChainPopupSelect;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ContextData } from '../../app/main/model/context';
|
|
2
|
+
import { ConfigProviderProps } from 'antd';
|
|
2
3
|
import { default as React } from 'react';
|
|
3
4
|
/**
|
|
4
5
|
* Antd Provider
|
|
5
6
|
*/
|
|
6
|
-
export interface OnChainProviderProps {
|
|
7
|
+
export interface OnChainProviderProps extends ConfigProviderProps {
|
|
7
8
|
/** context共享对象 */
|
|
8
9
|
contextData?: ContextData;
|
|
9
10
|
/** 设置AntD统一样式前缀 */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface OnChainPublicTree {
|
|
2
2
|
treeData: any[];
|
|
3
3
|
closeDrag?: boolean;
|
|
4
4
|
closeCondition?: boolean;
|
|
@@ -16,5 +16,5 @@ export interface PlmPublicTree {
|
|
|
16
16
|
conditionDelete: (val: any) => Promise<any>;
|
|
17
17
|
deleteFolder: (val: any) => Promise<any>;
|
|
18
18
|
}
|
|
19
|
-
declare const publicTree: React.FC<
|
|
19
|
+
declare const publicTree: React.FC<OnChainPublicTree>;
|
|
20
20
|
export default publicTree;
|
|
@@ -13,19 +13,20 @@ export interface OnChainQueryBuilderProps {
|
|
|
13
13
|
setConditionValue?: any;
|
|
14
14
|
searchBtn?: any;
|
|
15
15
|
defaultValue?: any;
|
|
16
|
-
storageCondition
|
|
17
|
-
conditionEdit: (v: any) =>
|
|
18
|
-
getTreeList: (v: any, a?: any, b?: any) =>
|
|
19
|
-
treeList: () =>
|
|
20
|
-
getLifecycles: (code: string) =>
|
|
21
|
-
getListbycode: (code: string) =>
|
|
22
|
-
getOverview: (id: string) =>
|
|
23
|
-
getLifecyclesNopage: (id: string, code: string) =>
|
|
24
|
-
getHistory: () =>
|
|
25
|
-
getRelation: () =>
|
|
26
|
-
getObjects: (code: string) =>
|
|
27
|
-
getRoles: () =>
|
|
28
|
-
getInstanceParams: (val: any) =>
|
|
16
|
+
storageCondition?: (v: any) => any;
|
|
17
|
+
conditionEdit: (v: any) => any;
|
|
18
|
+
getTreeList: (v: any, a?: any, b?: any) => any;
|
|
19
|
+
treeList: () => any;
|
|
20
|
+
getLifecycles: (code: string) => any;
|
|
21
|
+
getListbycode: (code: string) => any;
|
|
22
|
+
getOverview: (id: string) => any;
|
|
23
|
+
getLifecyclesNopage: (id: string, code: string) => any;
|
|
24
|
+
getHistory: () => any;
|
|
25
|
+
getRelation: () => any;
|
|
26
|
+
getObjects: (code: string) => any;
|
|
27
|
+
getRoles: () => any;
|
|
28
|
+
getInstanceParams: (val: any) => any;
|
|
29
|
+
searchTable: (val: any) => any;
|
|
29
30
|
}
|
|
30
31
|
declare const OnChainQueryBuilder: React.FC<OnChainQueryBuilderProps>;
|
|
31
32
|
export default OnChainQueryBuilder;
|
|
@@ -18,9 +18,8 @@ export interface OnChainResourceTreeProps {
|
|
|
18
18
|
onSelected: (dataRef: TreeDataRef) => void;
|
|
19
19
|
onGetTreeFields: (fields: any[]) => void;
|
|
20
20
|
itemCode?: BasicsItemCode;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
getAttributeByTab: (val: any) => void;
|
|
21
|
+
getInstanceMenu?: () => any;
|
|
22
|
+
getAttributeByTab?: () => any;
|
|
24
23
|
}
|
|
25
24
|
declare const OnChainResourceTree: (props: OnChainResourceTreeProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
25
|
export default OnChainResourceTree;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SelectProps } from 'antd';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
export interface OnChainPopupSelectProps {
|
|
4
|
+
url: any;
|
|
5
|
+
onChange?: (url: string) => {};
|
|
6
|
+
value?: any;
|
|
7
|
+
fieldNames?: Object;
|
|
8
|
+
params?: Object;
|
|
9
|
+
ischeckbox?: boolean;
|
|
10
|
+
getPageList?: (...arg: any[]) => any;
|
|
11
|
+
}
|
|
12
|
+
export interface DebounceSelectProps<ValueType = any> extends Omit<SelectProps<ValueType>, 'options' | 'children'> {
|
|
13
|
+
fetchOptions: (search: string, props: any) => Promise<ValueType[]>;
|
|
14
|
+
debounceTimeout?: number;
|
|
15
|
+
options: ValueType[];
|
|
16
|
+
}
|
|
17
|
+
declare const OnChainSearchSelect: FC<OnChainPopupSelectProps>;
|
|
18
|
+
export default OnChainSearchSelect;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { InputProps } from 'antd';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { OnChainTableColumnProps } from '../OnChainTable';
|
|
4
4
|
import { BasicsAttribute } from '../../utils/attribute';
|
|
5
5
|
import { APP } from '../../typings';
|
|
6
6
|
export interface PopupSelectProps {
|
|
7
|
-
generateColumns: (params: React.MutableRefObject<Record<string, any>>) =>
|
|
7
|
+
generateColumns: (params: React.MutableRefObject<Record<string, any>>) => OnChainTableColumnProps;
|
|
8
8
|
getDataSource: (params: {
|
|
9
9
|
search: string;
|
|
10
10
|
sorters: string;
|
|
@@ -3,7 +3,7 @@ import { SelectProps } from 'antd';
|
|
|
3
3
|
import { default as React } from 'react';
|
|
4
4
|
import { PopupSelectProps } from '..';
|
|
5
5
|
import { APP } from '../../../typings';
|
|
6
|
-
export interface
|
|
6
|
+
export interface OnChainSelectPopupProps {
|
|
7
7
|
selectProps: Omit<SelectProps, 'options'> & {
|
|
8
8
|
attr: BasicsAttribute;
|
|
9
9
|
allListOptions: Record<string, any[]>;
|
|
@@ -16,5 +16,5 @@ export interface PlmSelectPopupProps {
|
|
|
16
16
|
value?: string;
|
|
17
17
|
onChange?: (value: string | string[]) => void;
|
|
18
18
|
}
|
|
19
|
-
declare const
|
|
20
|
-
export default
|
|
19
|
+
declare const OnChainSelectPopupForm: React.ForwardRefExoticComponent<OnChainSelectPopupProps & React.RefAttributes<any>>;
|
|
20
|
+
export default OnChainSelectPopupForm;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { OnChainTableProps } from '.';
|
|
3
3
|
export declare const generateSnowId: () => string;
|
|
4
4
|
declare const ContextMenu: FC<{
|
|
5
|
-
onFill?:
|
|
5
|
+
onFill?: OnChainTableProps['onFill'];
|
|
6
6
|
menuId: string;
|
|
7
7
|
}>;
|
|
8
8
|
export default ContextMenu;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { contentProps } from '../../OnChainFormItem';
|
|
2
2
|
import { BaseComponentProps } from '../../../typings';
|
|
3
3
|
import { default as React } from 'react';
|
|
4
|
-
export interface
|
|
4
|
+
export interface OnChainTableFormItemProps extends BaseComponentProps {
|
|
5
5
|
formprops: contentProps;
|
|
6
6
|
onSave?: () => void;
|
|
7
|
+
onRemove?: () => void;
|
|
7
8
|
name: any;
|
|
8
9
|
value?: any;
|
|
9
10
|
record?: any;
|
|
10
11
|
apicode?: any;
|
|
11
12
|
}
|
|
12
13
|
export declare const inputFormat: Record<string, string>;
|
|
13
|
-
declare const
|
|
14
|
-
export default
|
|
14
|
+
declare const OnChainTableFormItem: React.ForwardRefExoticComponent<Omit<OnChainTableFormItemProps, "ref"> & React.RefAttributes<any>>;
|
|
15
|
+
export default OnChainTableFormItem;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { OnChainTableProps } from '.';
|
|
3
3
|
import { TableFooterDataRender } from './type';
|
|
4
|
-
interface TableFooterProps extends Pick<
|
|
4
|
+
interface TableFooterProps extends Pick<OnChainTableProps, 'hideFooter' | 'hideTableCount' | 'dataSource' | 'loading' | 'rowSelection' | 'total'> {
|
|
5
5
|
enterFullscreen: (() => void) | undefined;
|
|
6
6
|
clearFilters: (params?: {
|
|
7
7
|
isFooterRefresh?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BasicsAttribute } from '../../utils/attribute';
|
|
2
|
-
import {
|
|
2
|
+
import { OnChainColumn } from '.';
|
|
3
3
|
import { contentProps } from '../OnChainFormItem';
|
|
4
|
-
import {
|
|
4
|
+
import { OnChainTableFormItemProps } from './OnChainTableFormItem';
|
|
5
5
|
interface tabInfoProps {
|
|
6
6
|
itemCode: string | number;
|
|
7
7
|
tabCode: string | number;
|
|
@@ -11,7 +11,7 @@ interface tabInfoProps {
|
|
|
11
11
|
}
|
|
12
12
|
declare class TableUtils {
|
|
13
13
|
static getTrulyHighlight: ({ formitem, highlight, }: {
|
|
14
|
-
formitem:
|
|
14
|
+
formitem: OnChainTableFormItemProps["formprops"];
|
|
15
15
|
highlight?: string[];
|
|
16
16
|
}) => {
|
|
17
17
|
trulyHighlight: any;
|
|
@@ -52,7 +52,7 @@ declare class TableUtils {
|
|
|
52
52
|
filters: string;
|
|
53
53
|
sortersField: string;
|
|
54
54
|
/** 前端处理后的 columns */
|
|
55
|
-
tableColumns:
|
|
55
|
+
tableColumns: OnChainColumn[];
|
|
56
56
|
/** 版次记录页签、历史记录页签 需要该属性进行额外处理 */
|
|
57
57
|
tabInfo?: Partial<tabInfoProps>;
|
|
58
58
|
/** 服务端原始属性(版次记录页签需要该属性进行额外处理)*/
|
|
@@ -32,8 +32,8 @@ interface extendColumnType extends TableColumnType<any> {
|
|
|
32
32
|
listCodeMap?: any;
|
|
33
33
|
}
|
|
34
34
|
export type singleColumnType = Partial<extendColumnType>;
|
|
35
|
-
|
|
36
|
-
export interface
|
|
35
|
+
type TableColumnsType = Partial<extendColumnType>[];
|
|
36
|
+
export interface OnChainTableProps extends Omit<TableProps<any>, "onScroll">, BaseComponentProps {
|
|
37
37
|
selectedCell?: Record<string, any>;
|
|
38
38
|
columns: TableColumnsType;
|
|
39
39
|
onSubmit?: (values: any, col: any) => void;
|
|
@@ -83,10 +83,10 @@ export interface PlmTableProps extends TableProps<any>, BaseComponentProps {
|
|
|
83
83
|
tableFooterDateRender?: TableFooterDataRender;
|
|
84
84
|
tableFooterClassName?: string;
|
|
85
85
|
}
|
|
86
|
-
export type
|
|
87
|
-
export type
|
|
86
|
+
export type OnChainColumn = Partial<extendColumnType>;
|
|
87
|
+
export type OnChainTableColumnProps = Partial<extendColumnType>[];
|
|
88
88
|
export declare const EditableContext: React.Context<FormInstance<any> | null>;
|
|
89
|
-
export interface
|
|
89
|
+
export interface OnChainTableRef {
|
|
90
90
|
scrollTo: (y: number) => void;
|
|
91
91
|
scrollXTo: (x: number) => void;
|
|
92
92
|
clearFilters: () => void;
|
|
@@ -97,5 +97,5 @@ export interface PlmTableRef {
|
|
|
97
97
|
clipboard: ReturnType<typeof useClipboard>;
|
|
98
98
|
}
|
|
99
99
|
export declare const GLOBAL_TABLE_TOP_CLASS = "tableTopBox";
|
|
100
|
-
declare const OnChainTable: React.ForwardRefExoticComponent<Omit<
|
|
100
|
+
declare const OnChainTable: React.ForwardRefExoticComponent<Omit<OnChainTableProps, "ref"> & React.RefAttributes<OnChainTableRef>>;
|
|
101
101
|
export default OnChainTable;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import('react').ForwardRefExoticComponent<Omit<import('.').
|
|
4
|
+
component: import('react').ForwardRefExoticComponent<Omit<import('.').OnChainTableProps, "ref"> & import('react').RefAttributes<import('.').OnChainTableRef>>;
|
|
5
5
|
parameters: {
|
|
6
6
|
layout: string;
|
|
7
7
|
};
|
|
@@ -20,6 +20,9 @@ declare const meta: {
|
|
|
20
20
|
columns: {
|
|
21
21
|
dataIndex: string;
|
|
22
22
|
title: string;
|
|
23
|
+
search: {
|
|
24
|
+
type: string;
|
|
25
|
+
};
|
|
23
26
|
}[];
|
|
24
27
|
};
|
|
25
28
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnChainTableProps } from '.';
|
|
2
2
|
import { ClipboardArray } from '../../typings';
|
|
3
3
|
type PasteInto = 'child' | 'sibling';
|
|
4
4
|
export interface Clipboard {
|
|
@@ -52,7 +52,7 @@ export interface Clipboard {
|
|
|
52
52
|
/** 初始值 */
|
|
53
53
|
initialState?: any;
|
|
54
54
|
}
|
|
55
|
-
export declare const useClipboard: (params:
|
|
55
|
+
export declare const useClipboard: (params: OnChainTableProps, namespace: string) => {
|
|
56
56
|
namespace: string;
|
|
57
57
|
isGainFocus: boolean;
|
|
58
58
|
focus: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const useColumn: (props:
|
|
1
|
+
import { OnChainTableProps } from '.';
|
|
2
|
+
declare const useColumn: (props: OnChainTableProps, sortInfo: any, filterInfo: any, menuId: string, getColumnSearchProps: any, tableHeight: number, selectedCell?: Record<string, any>) => {
|
|
3
3
|
renderColumns: any[];
|
|
4
4
|
};
|
|
5
5
|
export default useColumn;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
declare const useCopy: (ref: any, dataSource: any, selectedCell?: Record<string, any>, columns?: TableColumnsType) => {
|
|
1
|
+
declare const useCopy: (ref: any, dataSource: any, selectedCell?: Record<string, any>, columns?: any) => {
|
|
3
2
|
copyData: string | undefined;
|
|
4
3
|
};
|
|
5
4
|
export default useCopy;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { TableProps } from 'antd';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { OnChainTableProps } from '.';
|
|
4
4
|
declare const useDynamicHeight: ({ hideFooter, contentRef, tableRef, scroll, fullScreenMinusHeight, scrollUpdate, onTableHeightChange, }: {
|
|
5
5
|
scroll: TableProps<any>["scroll"];
|
|
6
6
|
hideFooter: boolean | undefined;
|
|
7
7
|
fullScreenMinusHeight?: number;
|
|
8
8
|
contentRef: React.MutableRefObject<null>;
|
|
9
9
|
tableRef: React.MutableRefObject<null>;
|
|
10
|
-
onTableHeightChange:
|
|
10
|
+
onTableHeightChange: OnChainTableProps["onTableHeightChange"];
|
|
11
11
|
scrollUpdate?: (isFullscreen: boolean, autoHeight: number) => void;
|
|
12
12
|
}, deps: boolean) => number;
|
|
13
13
|
export { useDynamicHeight };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const useFiltered: (onFilterAndSorter:
|
|
1
|
+
import { OnChainTableProps } from '.';
|
|
2
|
+
declare const useFiltered: (onFilterAndSorter: OnChainTableProps["onFilterAndSorter"]) => {
|
|
3
3
|
getColumnSearchProps: (dataIndex: string, column: any) => {
|
|
4
4
|
filterIcon: (filtered: boolean) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
filterDropdown: ({ setSelectedKeys, selectedKeys, confirm, clearFilters }: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
declare const usePaste: (ref: any, dataSource: any, selectedCell?: Record<string, any>, columns?: TableColumnsType) => {
|
|
1
|
+
declare const usePaste: (ref: any, dataSource: any, selectedCell?: Record<string, any>, columns?: any) => {
|
|
3
2
|
pasteData: string[][] | undefined;
|
|
4
3
|
};
|
|
5
4
|
export default usePaste;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
export interface
|
|
2
|
+
export interface OnChainTableSelectionProps {
|
|
3
3
|
value?: string;
|
|
4
4
|
title: string;
|
|
5
5
|
visible: boolean;
|
|
6
6
|
columns: any;
|
|
7
|
-
url: string;
|
|
8
7
|
enter?: boolean;
|
|
9
8
|
params?: any;
|
|
10
9
|
formate?: any;
|
|
@@ -28,13 +27,17 @@ export interface TableSelectionProps {
|
|
|
28
27
|
maxSelect?: number;
|
|
29
28
|
convertFun?: any;
|
|
30
29
|
isLibrary?: boolean;
|
|
30
|
+
getInstanceMenu?: () => any;
|
|
31
|
+
getAttributeByTab?: () => any;
|
|
31
32
|
onChange?: (e: any) => void;
|
|
32
33
|
handleSubmit?: (e: any, v: any) => void;
|
|
33
34
|
onInit?: (data: any) => void;
|
|
35
|
+
getItems?: () => void;
|
|
36
|
+
getUrlData: (data: any) => object;
|
|
34
37
|
}
|
|
35
|
-
export interface
|
|
38
|
+
export interface OnChainBorrowRefProps {
|
|
36
39
|
getLoading: (e: any) => void;
|
|
37
40
|
backfill: (e: any) => void;
|
|
38
41
|
}
|
|
39
|
-
declare const
|
|
40
|
-
export default
|
|
42
|
+
declare const OnChainTableSelection: React.FC<OnChainTableSelectionProps>;
|
|
43
|
+
export default OnChainTableSelection;
|