onchain-uikit 0.0.7 → 3.9.4-alpha2
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/filePreview/fontawesome-webfont.woff2 +0 -0
- package/dist/filePreview/iconfont.css +457 -0
- package/dist/filePreview/loading.gif +0 -0
- package/dist/filePreview/logo.svg +1 -0
- package/dist/filePreview/luckyexcel.umd.js +26153 -0
- package/dist/filePreview/luckysheet.css +7145 -0
- package/dist/filePreview/luckysheet.umd.js +137608 -0
- package/dist/filePreview/plugin.js +29474 -0
- package/dist/filePreview/plugins.css +10 -0
- package/dist/filePreview/pluginsCss.css +1 -0
- package/dist/filePreview/waffle_sprite.png +0 -0
- package/dist/font/demo.css +539 -0
- package/dist/font/demo_index.html +20820 -0
- package/dist/font/iconfont.css +3604 -0
- package/dist/font/iconfont.js +70 -0
- package/dist/font/iconfont.json +6288 -0
- package/dist/font/iconfont.svg +1813 -0
- package/dist/font/iconfont.ttf +0 -0
- package/dist/font/iconfont.woff +0 -0
- package/dist/font/iconfont.woff2 +0 -0
- package/dist/index.cjs.js +529 -0
- package/dist/index.es.js +44594 -0
- package/dist/index.umd.js +633 -0
- package/dist/logo.svg +1 -0
- package/dist/onchain-uikit.css +10 -0
- package/dist/xlsx-C9icP-aY.mjs +24775 -0
- package/dist/xlsx-qn1xoUuv.js +105 -0
- package/lib/src/App.d.ts +1 -1
- package/lib/src/app/main/model/context.d.ts +30 -0
- package/lib/src/components/OnChainAI/index.d.ts +3 -0
- package/lib/src/{stories/Page.stories.d.ts → components/OnChainAI/index.stories.d.ts} +4 -2
- package/lib/src/components/OnChainAI/welcome.d.ts +6 -0
- package/lib/src/components/OnChainAdvancedSearch/index.d.ts +8 -0
- package/lib/src/{stories/XsButton.stories.d.ts → components/OnChainAdvancedSearch/index.stories.d.ts} +1 -1
- package/lib/src/components/OnChainBadge/index.d.ts +52 -0
- package/lib/src/{stories/PlmMosaic.stories.d.ts → components/OnChainBadge/index.stories.d.ts} +2 -2
- package/lib/src/components/OnChainCompositeForm/index.d.ts +26 -0
- package/lib/src/components/OnChainCompositeForm/index.stories.d.ts +14 -0
- package/lib/src/components/OnChainDropMenu/index.d.ts +21 -0
- package/lib/src/components/OnChainDropMenu/index.stories.d.ts +14 -0
- package/lib/src/components/OnChainExcelViewer/index.d.ts +8 -0
- package/lib/src/components/OnChainExcelViewer/index.stories.d.ts +14 -0
- package/lib/src/components/OnChainForm/index.d.ts +14 -0
- package/lib/src/components/OnChainForm/index.stories.d.ts +14 -0
- package/lib/src/components/OnChainFormItem/index.d.ts +175 -0
- package/lib/src/components/OnChainFormItem/index.stories.d.ts +19 -0
- package/lib/src/components/OnChainFormItem/title/index.d.ts +2 -0
- package/lib/src/components/OnChainGenAntImage/index.d.ts +5 -0
- package/lib/src/components/OnChainGenAntImage/index.stories.d.ts +14 -0
- package/lib/src/components/OnChainGlobalLoading/index.d.ts +9 -0
- package/lib/src/components/OnChainGlobalLoading/index.stories.d.ts +14 -0
- package/lib/src/components/OnChainHighLightWords/index.d.ts +9 -0
- package/lib/src/components/OnChainHighLightWords/index.stories.d.ts +14 -0
- package/lib/src/components/OnChainIcon/index.d.ts +31 -0
- package/lib/src/components/OnChainIcon/index.stories.d.ts +15 -0
- package/lib/src/components/OnChainImage/index.d.ts +9 -0
- package/lib/src/components/OnChainImage/index.stories.d.ts +18 -0
- package/lib/src/components/OnChainInput/index.d.ts +13 -0
- package/lib/src/components/OnChainInput/index.stories.d.ts +14 -0
- package/lib/src/components/OnChainLinkInstance/index.d.ts +1 -0
- package/lib/src/components/OnChainLoading/index.d.ts +10 -0
- package/lib/src/components/OnChainLoading/index.stories.d.ts +14 -0
- package/lib/src/components/OnChainLoadingSkCube/index.d.ts +6 -0
- package/lib/src/components/OnChainLoadingSkCube/index.stories.d.ts +14 -0
- package/lib/src/components/OnChainMarkdown/index.d.ts +16 -0
- package/lib/src/components/OnChainMarkdown/index.stories.d.ts +14 -0
- package/lib/src/components/OnChainModal/index.d.ts +22 -0
- package/lib/src/components/OnChainModal/index.stories.d.ts +14 -0
- package/lib/src/components/OnChainMosaic/index.d.ts +7 -0
- package/lib/src/components/OnChainMosaic/index.stories.d.ts +14 -0
- package/lib/src/components/OnChainPopoverTransfer/index.d.ts +49 -0
- package/lib/src/components/OnChainPopoverTransfer/select/index.d.ts +18 -0
- package/lib/src/components/OnChainPopupSelect/index.d.ts +32 -0
- package/lib/src/components/OnChainPopupSelect/index.stories.d.ts +14 -0
- package/lib/src/components/OnChainProgress/index.d.ts +7 -0
- package/lib/src/components/OnChainProgress/index.stories.d.ts +16 -0
- package/lib/src/components/OnChainProvider/index.d.ts +18 -0
- package/lib/src/components/OnChainProvider/index.stories.d.ts +14 -0
- package/lib/src/components/OnChainPublicTree/index.d.ts +20 -0
- package/lib/src/components/OnChainPublicTree/index.stories.d.ts +14 -0
- package/lib/src/components/OnChainQueryBuilder/AbcSelectTransfer/index.d.ts +15 -0
- package/lib/src/components/OnChainQueryBuilder/index.d.ts +31 -0
- package/lib/src/components/OnChainResourceTree/index.d.ts +26 -0
- package/lib/src/components/OnChainResourceTree/index.stories.d.ts +14 -0
- package/lib/src/components/OnChainScrollBar/index.d.ts +7 -0
- package/lib/src/components/OnChainScrollBar/index.stories.d.ts +14 -0
- package/lib/src/components/OnChainScrollBarAssembly/index.d.ts +11 -0
- package/lib/src/components/OnChainScrollBarAssembly/index.stories.d.ts +14 -0
- package/lib/src/components/OnChainSelect/index.d.ts +14 -0
- package/lib/src/{stories/PlmSelect/PlmSelect.stories.d.ts → components/OnChainSelect/index.stories.d.ts} +8 -3
- package/lib/src/components/OnChainSelectPopupForm/index.d.ts +45 -0
- package/lib/src/components/OnChainSelectPopupForm/select/index.d.ts +20 -0
- package/lib/src/components/OnChainTable/ContextMenu.d.ts +8 -0
- package/lib/src/components/OnChainTable/EditableCell.d.ts +39 -0
- package/lib/src/components/OnChainTable/EditableRow.d.ts +6 -0
- package/lib/src/components/OnChainTable/OnChainTableFormItem/index.d.ts +14 -0
- package/lib/src/components/OnChainTable/ResizableTitle.d.ts +2 -0
- package/lib/src/components/OnChainTable/TableFooter.d.ts +13 -0
- package/lib/src/components/OnChainTable/TableUtils.d.ts +78 -0
- package/lib/src/components/OnChainTable/const.d.ts +2 -0
- package/lib/src/components/OnChainTable/index.d.ts +101 -0
- package/lib/src/components/OnChainTable/index.stories.d.ts +28 -0
- package/lib/src/components/OnChainTable/type.d.ts +10 -0
- package/lib/src/components/OnChainTable/useClipboard.d.ts +67 -0
- package/lib/src/components/OnChainTable/useColumn.d.ts +5 -0
- package/lib/src/components/OnChainTable/useCopy.d.ts +5 -0
- package/lib/src/components/OnChainTable/useDynamicHeight.d.ts +13 -0
- package/lib/src/components/OnChainTable/useFiltered.d.ts +23 -0
- package/lib/src/components/OnChainTable/usePaste.d.ts +5 -0
- package/lib/src/components/OnChainTable/useVirtualScroll.d.ts +3 -0
- package/lib/src/components/OnChainTable/virtualScroll.d.ts +91 -0
- package/lib/src/components/OnChainTableSelection/index.d.ts +40 -0
- package/lib/src/components/OnChainTableSelection/index.stories.d.ts +14 -0
- package/lib/src/components/OnChainTabs/index.d.ts +20 -0
- package/lib/src/components/OnChainTabs/index.stories.d.ts +14 -0
- package/lib/src/components/OnChainViewerError/index.d.ts +6 -0
- package/lib/src/components/OnChainViewerError/index.stories.d.ts +14 -0
- package/lib/src/components/OnChainformUploader/index.d.ts +1 -0
- package/lib/src/components/PlmSearchSelect/index.d.ts +18 -0
- package/lib/src/hooks/useShortcutKey/index.d.ts +5 -0
- package/lib/src/hooks/useStore/index.d.ts +14 -0
- package/lib/src/index.d.ts +32 -4
- package/lib/src/language/index.d.ts +23 -0
- package/lib/src/language/translate.d.ts +5 -0
- package/lib/src/types/gantt.d.ts +269 -0
- package/lib/src/typings.d.ts +610 -612
- package/lib/src/utils/attribute.d.ts +70 -0
- package/lib/src/utils/authority/basicsAuthority.d.ts +0 -5
- package/lib/src/utils/authority/const.d.ts +30 -0
- package/lib/src/utils/itemCode.d.ts +159 -0
- package/lib/src/utils/utility.d.ts +46 -0
- package/lib/typings.d.ts +126 -130
- package/package.json +31 -7
- package/lib/instance.cjs.mjs +0 -366
- package/lib/instance.es.mjs +0 -29301
- package/lib/instance.umd.mjs +0 -366
- package/lib/src/components/PlmMosaic/index.d.ts +0 -5
- package/lib/src/stories/Button.d.ts +0 -14
- package/lib/src/stories/Button.stories.d.ts +0 -23
- package/lib/src/stories/Header.d.ts +0 -11
- package/lib/src/stories/Header.stories.d.ts +0 -18
- package/lib/src/stories/OnChainProvider.d.ts +0 -12
- package/lib/src/stories/Page.d.ts +0 -2
- package/lib/src/stories/PlmSelect/index.d.ts +0 -20
- package/lib/src/stories/XsButton.d.ts +0 -22
- /package/{lib → dist}/vite.svg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SpinProps } from 'antd';
|
|
3
|
+
import { BaseComponentProps } from '../../typings';
|
|
4
|
+
export interface OnChainLoadingProps extends BaseComponentProps, SpinProps {
|
|
5
|
+
/** 大小,单位px */
|
|
6
|
+
loadingSize?: number;
|
|
7
|
+
}
|
|
8
|
+
/** 加载框 */
|
|
9
|
+
declare const OnChainLoading: React.FC<OnChainLoadingProps>;
|
|
10
|
+
export default OnChainLoading;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import('react').FC<import('.').OnChainLoadingProps>;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {};
|
|
10
|
+
args: {};
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof meta>;
|
|
14
|
+
export declare const Init: Story;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import('react').FC<import('.').OnChainLoadingSkCubeProps>;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {};
|
|
10
|
+
args: {};
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof meta>;
|
|
14
|
+
export declare const Init: Story;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface OnChainMarkdownProps {
|
|
3
|
+
value?: string;
|
|
4
|
+
readOnly: boolean;
|
|
5
|
+
onChange?: (value: string) => void;
|
|
6
|
+
height?: number;
|
|
7
|
+
OSS_URL?: string;
|
|
8
|
+
token?: string;
|
|
9
|
+
toPostFileRecord?: ({ file, response, type }: {
|
|
10
|
+
file: any;
|
|
11
|
+
response: any;
|
|
12
|
+
type: any;
|
|
13
|
+
}) => void;
|
|
14
|
+
}
|
|
15
|
+
declare const OnChainMarkdown: React.FC<OnChainMarkdownProps>;
|
|
16
|
+
export default OnChainMarkdown;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import('react').FC<import('.').OnChainMarkdownProps>;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {};
|
|
10
|
+
args: {};
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof meta>;
|
|
14
|
+
export declare const Init: Story;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ModalFuncProps, ModalProps } from 'antd';
|
|
3
|
+
import { BaseComponentProps } from '../../typings';
|
|
4
|
+
export interface OnChainModalProps extends BaseComponentProps, ModalProps {
|
|
5
|
+
modalTitle: any;
|
|
6
|
+
visible: boolean;
|
|
7
|
+
okText?: string;
|
|
8
|
+
/**
|
|
9
|
+
* 彩色进度条的进度 0-1 ,空则不显示
|
|
10
|
+
*/
|
|
11
|
+
progressPercent?: number;
|
|
12
|
+
styleUnify?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare function confirmModalConfig(params: {
|
|
15
|
+
title: any;
|
|
16
|
+
content: any;
|
|
17
|
+
onOk: () => any;
|
|
18
|
+
onCancel?: () => any;
|
|
19
|
+
isShowBtnIcon?: boolean;
|
|
20
|
+
} & ModalFuncProps): ModalFuncProps;
|
|
21
|
+
declare const OnChainModal: React.FC<OnChainModalProps>;
|
|
22
|
+
export default OnChainModal;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import('react').FC<import('.').OnChainModalProps>;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {};
|
|
10
|
+
args: {};
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof meta>;
|
|
14
|
+
export declare const Init: Story;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import('react').FC<import('.').OnChainMosaicProps>;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {};
|
|
10
|
+
args: {};
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof meta>;
|
|
14
|
+
export declare const Init: Story;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { TableProps, TransferProps } from 'antd';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { TransferDirection, TransferItem } from 'antd/es/transfer';
|
|
4
|
+
import { Panes } from '../OnChainTabs';
|
|
5
|
+
import { BasicsAttribute } from '../../utils/attribute';
|
|
6
|
+
export interface PlmPopoverTransferProps {
|
|
7
|
+
title?: React.ReactNode;
|
|
8
|
+
allListOptions: Record<string, any[]>;
|
|
9
|
+
showFooter?: boolean;
|
|
10
|
+
getListCodeItem: (params: {
|
|
11
|
+
search: Record<TransferDirection, string>;
|
|
12
|
+
tabKey: Panes['tabKey'];
|
|
13
|
+
pageNo: Record<TransferDirection, number>;
|
|
14
|
+
isPaging?: boolean;
|
|
15
|
+
}) => Promise<any[] | void>;
|
|
16
|
+
onTabsChange?: (e: string) => void;
|
|
17
|
+
isRadio?: boolean;
|
|
18
|
+
pager?: Record<string, {
|
|
19
|
+
pageSize?: number;
|
|
20
|
+
total?: number;
|
|
21
|
+
}>;
|
|
22
|
+
mandatory?: boolean;
|
|
23
|
+
panes?: Panes[];
|
|
24
|
+
modalWidth?: number;
|
|
25
|
+
scroll?: {
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
};
|
|
29
|
+
columns?: TableProps<TransferItem>['columns'] | Record<string, TableProps<TransferItem>['columns']>;
|
|
30
|
+
transfer?: TransferProps<TransferItem>;
|
|
31
|
+
defaultValue?: string | string[];
|
|
32
|
+
onCancel?: () => void;
|
|
33
|
+
onSubmit?: (keys: string[], currentTabKey: string, getActualTabKey?: (allOptions?: Record<string, any[]>) => string, targets?: Record<string, any>) => void;
|
|
34
|
+
attr?: BasicsAttribute;
|
|
35
|
+
defaultActiveKey?: string;
|
|
36
|
+
placeholder?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface PlmPopoverTransferRef {
|
|
39
|
+
dataSource: any[];
|
|
40
|
+
targetKeys: any[];
|
|
41
|
+
loading: boolean;
|
|
42
|
+
submit: () => Promise<any>;
|
|
43
|
+
open: (params: {
|
|
44
|
+
ok?: (keys: string[], tabKey: string, targets: Record<string, any>) => void;
|
|
45
|
+
cancel?: () => void;
|
|
46
|
+
}) => void;
|
|
47
|
+
}
|
|
48
|
+
declare const PlmPopoverTransfer: React.ForwardRefExoticComponent<PlmPopoverTransferProps & React.RefAttributes<PlmPopoverTransferRef>>;
|
|
49
|
+
export default PlmPopoverTransfer;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BasicsAttribute } from '../../../utils/attribute';
|
|
2
|
+
import { SelectProps } from 'antd';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
import { PlmPopoverTransferProps } from '..';
|
|
5
|
+
export interface PlmSelectTransferProps {
|
|
6
|
+
selectProps: Omit<SelectProps, 'onChange'> & {
|
|
7
|
+
attr: BasicsAttribute;
|
|
8
|
+
allListOptions: Record<string, any[]>;
|
|
9
|
+
popoverTransfer: Omit<PlmPopoverTransferProps, 'allListOptions'>;
|
|
10
|
+
/** Table Form 发生改变后的回调 */
|
|
11
|
+
onBlur?: () => void;
|
|
12
|
+
};
|
|
13
|
+
readOnly?: boolean;
|
|
14
|
+
value?: string;
|
|
15
|
+
onChange?: (value: string | string[]) => void;
|
|
16
|
+
}
|
|
17
|
+
declare const PlmSelectTransfer: React.ForwardRefExoticComponent<PlmSelectTransferProps & React.RefAttributes<any>>;
|
|
18
|
+
export default PlmSelectTransfer;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
export interface OnChainPopupSelectProps {
|
|
3
|
+
url: string;
|
|
4
|
+
columns: Array<{}>;
|
|
5
|
+
id?: any;
|
|
6
|
+
onChange?: (url: string) => {};
|
|
7
|
+
value?: any;
|
|
8
|
+
height?: any;
|
|
9
|
+
width: any;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
userLink?: boolean;
|
|
12
|
+
options?: any;
|
|
13
|
+
fieldNames?: Object;
|
|
14
|
+
noSearch?: boolean;
|
|
15
|
+
title?: string;
|
|
16
|
+
formate?: string;
|
|
17
|
+
showButton?: boolean;
|
|
18
|
+
params?: Object;
|
|
19
|
+
isCheckbox?: boolean;
|
|
20
|
+
maxSelect?: number;
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
searchPlaceholder?: string;
|
|
23
|
+
placeholderCode?: string;
|
|
24
|
+
isUseRuleSort?: boolean;
|
|
25
|
+
onClick?: (e: any) => void;
|
|
26
|
+
onSubmit?: (row: any) => void;
|
|
27
|
+
modalWidth: number;
|
|
28
|
+
isBroadside?: boolean;
|
|
29
|
+
isLibrary?: boolean;
|
|
30
|
+
}
|
|
31
|
+
declare const OnChainPopupSelect: FC<OnChainPopupSelectProps>;
|
|
32
|
+
export default OnChainPopupSelect;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import('react').FC<import('.').OnChainPopupSelectProps>;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {};
|
|
10
|
+
args: {};
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof meta>;
|
|
14
|
+
export declare const Init: Story;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import('react').FC<import('antd').ProgressProps & {
|
|
5
|
+
highlight?: string[];
|
|
6
|
+
}>;
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: string;
|
|
9
|
+
};
|
|
10
|
+
tags: string[];
|
|
11
|
+
argTypes: {};
|
|
12
|
+
args: {};
|
|
13
|
+
};
|
|
14
|
+
export default meta;
|
|
15
|
+
type Story = StoryObj<typeof meta>;
|
|
16
|
+
export declare const Init: Story;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ContextData } from '../../app/main/model/context';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Antd Provider
|
|
5
|
+
*/
|
|
6
|
+
export interface OnChainProviderProps {
|
|
7
|
+
/** context共享对象 */
|
|
8
|
+
contextData?: ContextData;
|
|
9
|
+
/** 设置AntD统一样式前缀 */
|
|
10
|
+
prefixCls?: string;
|
|
11
|
+
/** 内容 */
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* icon、AntD、国际化等全局配置
|
|
16
|
+
*/
|
|
17
|
+
declare const OnChainProvider: ({ prefixCls, ...props }: OnChainProviderProps, ref: any) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default OnChainProvider;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ prefixCls, ...props }: import('.').OnChainProviderProps, ref: any) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {};
|
|
10
|
+
args: {};
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof meta>;
|
|
14
|
+
export declare const Init: Story;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface PlmPublicTree {
|
|
2
|
+
treeData: any[];
|
|
3
|
+
closeDrag?: boolean;
|
|
4
|
+
closeCondition?: boolean;
|
|
5
|
+
selectedKeys: any;
|
|
6
|
+
treeCrumbs?: any;
|
|
7
|
+
readOnly?: boolean;
|
|
8
|
+
editLoading?: boolean;
|
|
9
|
+
editConditioLoading?: boolean;
|
|
10
|
+
confirmLoading?: boolean;
|
|
11
|
+
onSelect?: (selectedKeys: any[], info: any) => void;
|
|
12
|
+
getTreeList: (id?: any) => void;
|
|
13
|
+
conditionEdit: (val: any) => void;
|
|
14
|
+
addRun: (val: any) => void;
|
|
15
|
+
editRun: (val: any) => void;
|
|
16
|
+
conditionDelete: (val: any) => Promise<any>;
|
|
17
|
+
deleteFolder: (val: any) => Promise<any>;
|
|
18
|
+
}
|
|
19
|
+
declare const publicTree: React.FC<PlmPublicTree>;
|
|
20
|
+
export default publicTree;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import('react').FC<import('.').PlmPublicTree>;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {};
|
|
10
|
+
args: {};
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof meta>;
|
|
14
|
+
export declare const Init: Story;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface SelectTransferProps {
|
|
2
|
+
title: string;
|
|
3
|
+
dataSource: any;
|
|
4
|
+
loading: boolean;
|
|
5
|
+
visible: boolean;
|
|
6
|
+
targetKeys: any;
|
|
7
|
+
searchPlaceholder?: string;
|
|
8
|
+
isRadio?: boolean;
|
|
9
|
+
onCancel?: any;
|
|
10
|
+
onSubmit?: any;
|
|
11
|
+
columns: any[];
|
|
12
|
+
defaultPageSize?: number;
|
|
13
|
+
}
|
|
14
|
+
declare const AbcSelectTransfer: React.FC<SelectTransferProps>;
|
|
15
|
+
export default AbcSelectTransfer;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface OnChainQueryBuilderProps {
|
|
2
|
+
typeData: any;
|
|
3
|
+
searchTree: any;
|
|
4
|
+
readOnly?: boolean;
|
|
5
|
+
cleanUpBtn?: boolean;
|
|
6
|
+
subcategory?: any;
|
|
7
|
+
horizontalStyle?: any;
|
|
8
|
+
closeAdvancedSearch?: any;
|
|
9
|
+
conditionObj?: any;
|
|
10
|
+
setCondition?: any;
|
|
11
|
+
emptyCondition?: any;
|
|
12
|
+
eliminateSearch?: any;
|
|
13
|
+
setConditionValue?: any;
|
|
14
|
+
searchBtn?: any;
|
|
15
|
+
defaultValue?: any;
|
|
16
|
+
storageCondition: (v: any) => Promise<any>;
|
|
17
|
+
conditionEdit: (v: any) => Promise<any>;
|
|
18
|
+
getTreeList: (v: any, a?: any, b?: any) => Promise<any>;
|
|
19
|
+
treeList: () => Promise<any>;
|
|
20
|
+
getLifecycles: (code: string) => Promise<any>;
|
|
21
|
+
getListbycode: (code: string) => Promise<any>;
|
|
22
|
+
getOverview: (id: string) => Promise<any>;
|
|
23
|
+
getLifecyclesNopage: (id: string, code: string) => Promise<any>;
|
|
24
|
+
getHistory: () => Promise<any>;
|
|
25
|
+
getRelation: () => Promise<any>;
|
|
26
|
+
getObjects: (code: string) => Promise<any>;
|
|
27
|
+
getRoles: () => Promise<any>;
|
|
28
|
+
getInstanceParams: (val: any) => Promise<any>;
|
|
29
|
+
}
|
|
30
|
+
declare const OnChainQueryBuilder: React.FC<OnChainQueryBuilderProps>;
|
|
31
|
+
export default OnChainQueryBuilder;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BasicsItemCode } from '../../utils/itemCode';
|
|
2
|
+
export type TreeDataRef = {
|
|
3
|
+
id: string;
|
|
4
|
+
icon: string;
|
|
5
|
+
name: string;
|
|
6
|
+
apicode: string;
|
|
7
|
+
attrId: string;
|
|
8
|
+
attrValue: string;
|
|
9
|
+
itemCode: string;
|
|
10
|
+
itemEditPurview: boolean;
|
|
11
|
+
parentId: string;
|
|
12
|
+
isDelete: boolean;
|
|
13
|
+
sort: number;
|
|
14
|
+
children: [];
|
|
15
|
+
};
|
|
16
|
+
export interface OnChainResourceTreeProps {
|
|
17
|
+
outIsSelected: boolean;
|
|
18
|
+
onSelected: (dataRef: TreeDataRef) => void;
|
|
19
|
+
onGetTreeFields: (fields: any[]) => void;
|
|
20
|
+
itemCode?: BasicsItemCode;
|
|
21
|
+
treeResult?: Array<object>;
|
|
22
|
+
getInstanceMenu: (val: any) => void;
|
|
23
|
+
getAttributeByTab: (val: any) => void;
|
|
24
|
+
}
|
|
25
|
+
declare const OnChainResourceTree: (props: OnChainResourceTreeProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export default OnChainResourceTree;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: (props: import('.').OnChainResourceTreeProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {};
|
|
10
|
+
args: {};
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof meta>;
|
|
14
|
+
export declare const Init: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ScrollbarProps } from 'react-custom-scrollbars';
|
|
3
|
+
import { BaseComponentProps } from '../../typings';
|
|
4
|
+
export interface OnChainScrollBarProps extends BaseComponentProps, ScrollbarProps {
|
|
5
|
+
}
|
|
6
|
+
declare const OnChainScrollBar: React.FC<OnChainScrollBarProps>;
|
|
7
|
+
export default OnChainScrollBar;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import('react').FC<import('.').OnChainScrollBarProps>;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {};
|
|
10
|
+
args: {};
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof meta>;
|
|
14
|
+
export declare const Init: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface ScrollBarAssembly {
|
|
2
|
+
loading?: boolean;
|
|
3
|
+
dataList?: any;
|
|
4
|
+
style?: any;
|
|
5
|
+
direction?: boolean;
|
|
6
|
+
class?: string;
|
|
7
|
+
resetButton?: boolean;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
declare const OnChainScrollBarAssembly: React.FC<ScrollBarAssembly>;
|
|
11
|
+
export default OnChainScrollBarAssembly;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import('react').FC<import('.').ScrollBarAssembly>;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {};
|
|
10
|
+
args: {};
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof meta>;
|
|
14
|
+
export declare const Init: Story;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseComponentProps } from '../../typings';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { SelectProps } from 'antd';
|
|
4
|
+
export interface OnChainSelectProps extends BaseComponentProps, SelectProps<any> {
|
|
5
|
+
pane?: {
|
|
6
|
+
cols?: number;
|
|
7
|
+
item?: BaseComponentProps;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export interface OnChainSelectForwardRefProps {
|
|
11
|
+
}
|
|
12
|
+
/** select组件 */
|
|
13
|
+
declare const OnChainSelect: React.FC<OnChainSelectProps>;
|
|
14
|
+
export default OnChainSelect;
|
|
@@ -1,21 +1,26 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import('react').
|
|
4
|
+
component: import('react').FC<import('.').OnChainSelectProps>;
|
|
5
5
|
parameters: {
|
|
6
6
|
layout: string;
|
|
7
7
|
};
|
|
8
8
|
tags: string[];
|
|
9
|
-
argTypes: {
|
|
9
|
+
argTypes: {
|
|
10
|
+
style: {
|
|
11
|
+
width: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
10
14
|
args: {
|
|
11
15
|
/** 列表值 */
|
|
12
16
|
options: {
|
|
13
17
|
label: string;
|
|
14
18
|
value: string;
|
|
15
19
|
}[];
|
|
20
|
+
/** 默认值 */
|
|
21
|
+
defaultValue: string;
|
|
16
22
|
};
|
|
17
23
|
};
|
|
18
24
|
export default meta;
|
|
19
25
|
type Story = StoryObj<typeof meta>;
|
|
20
26
|
export declare const Large: Story;
|
|
21
|
-
export declare const Small: Story;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { InputProps } from 'antd';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { PlmTableColumnProps } from '../OnChainTable';
|
|
4
|
+
import { BasicsAttribute } from '../../utils/attribute';
|
|
5
|
+
import { APP } from '../../typings';
|
|
6
|
+
export interface PopupSelectProps {
|
|
7
|
+
generateColumns: (params: React.MutableRefObject<Record<string, any>>) => PlmTableColumnProps;
|
|
8
|
+
getDataSource: (params: {
|
|
9
|
+
search: string;
|
|
10
|
+
sorters: string;
|
|
11
|
+
filters: string;
|
|
12
|
+
pageNo: number;
|
|
13
|
+
pageSize: number;
|
|
14
|
+
record?: APP.instanceInfoType;
|
|
15
|
+
}) => Promise<{
|
|
16
|
+
data: any[];
|
|
17
|
+
total: number;
|
|
18
|
+
}>;
|
|
19
|
+
rowKey?: string;
|
|
20
|
+
searchProps?: Partial<Omit<InputProps, 'value' | 'onChange' | 'onSearch' | 'suffix'>>;
|
|
21
|
+
record?: APP.instanceInfoType;
|
|
22
|
+
attr?: BasicsAttribute;
|
|
23
|
+
title?: React.ReactNode;
|
|
24
|
+
showFooter?: boolean;
|
|
25
|
+
mandatory?: boolean;
|
|
26
|
+
modalWidth?: number;
|
|
27
|
+
scroll?: {
|
|
28
|
+
x: number;
|
|
29
|
+
y: number;
|
|
30
|
+
};
|
|
31
|
+
defaultValue?: string | string[];
|
|
32
|
+
onCancel?: () => void;
|
|
33
|
+
onSubmit?: (keys: string[], currentTabKey: string, getActualTabKey?: (allOptions?: Record<string, any[]>) => string) => void;
|
|
34
|
+
}
|
|
35
|
+
export interface PopupSelectRef {
|
|
36
|
+
dataSource: any[];
|
|
37
|
+
loading: boolean;
|
|
38
|
+
submit: () => Promise<any>;
|
|
39
|
+
open: (params: {
|
|
40
|
+
ok?: (keys: string[]) => void;
|
|
41
|
+
cancel?: () => void;
|
|
42
|
+
}) => void;
|
|
43
|
+
}
|
|
44
|
+
declare const PopupSelect: React.ForwardRefExoticComponent<PopupSelectProps & React.RefAttributes<PopupSelectRef>>;
|
|
45
|
+
export default PopupSelect;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BasicsAttribute } from '../../../utils/attribute';
|
|
2
|
+
import { SelectProps } from 'antd';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
import { PopupSelectProps } from '..';
|
|
5
|
+
import { APP } from '../../../typings';
|
|
6
|
+
export interface PlmSelectPopupProps {
|
|
7
|
+
selectProps: Omit<SelectProps, 'options'> & {
|
|
8
|
+
attr: BasicsAttribute;
|
|
9
|
+
allListOptions: Record<string, any[]>;
|
|
10
|
+
selectPopupProps: Omit<PopupSelectProps, 'attr' | 'record'>;
|
|
11
|
+
record?: APP.instanceInfoType;
|
|
12
|
+
/** Table Form 发生改变后的回调 */
|
|
13
|
+
onBlur?: () => void;
|
|
14
|
+
};
|
|
15
|
+
readOnly?: boolean;
|
|
16
|
+
value?: string;
|
|
17
|
+
onChange?: (value: string | string[]) => void;
|
|
18
|
+
}
|
|
19
|
+
declare const PlmSelectPopupForm: React.ForwardRefExoticComponent<PlmSelectPopupProps & React.RefAttributes<any>>;
|
|
20
|
+
export default PlmSelectPopupForm;
|