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
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
tags: string[];
|
|
9
|
+
argTypes: {};
|
|
10
|
+
args: {
|
|
11
|
+
rowKey: string;
|
|
12
|
+
widthMode: "standard";
|
|
13
|
+
style: {
|
|
14
|
+
flex: number;
|
|
15
|
+
height: string;
|
|
16
|
+
};
|
|
17
|
+
hover: {
|
|
18
|
+
highlightMode: "row";
|
|
19
|
+
disableHeaderHover: true;
|
|
20
|
+
};
|
|
21
|
+
dragHeaderMode: "all";
|
|
22
|
+
keyboardOptions: {
|
|
23
|
+
copySelected: true;
|
|
24
|
+
pasteValueToCell: true;
|
|
25
|
+
};
|
|
26
|
+
select: {
|
|
27
|
+
disableHeaderSelect: true;
|
|
28
|
+
};
|
|
29
|
+
theme: {
|
|
30
|
+
frameStyle: {
|
|
31
|
+
borderLineWidth: number;
|
|
32
|
+
};
|
|
33
|
+
defaultStyle: {
|
|
34
|
+
borderColor: string;
|
|
35
|
+
};
|
|
36
|
+
selectionStyle: {
|
|
37
|
+
cellBorderColor: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
tooltip: {
|
|
41
|
+
format(cellInfo: Omit<import('@visactor/vtable').MousePointerCellEvent, "target"> & {
|
|
42
|
+
targetText?: string;
|
|
43
|
+
}): any;
|
|
44
|
+
template(cellInfo: Omit<import('@visactor/vtable').MousePointerCellEvent, "target"> & {
|
|
45
|
+
targetText?: string;
|
|
46
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
47
|
+
className: string;
|
|
48
|
+
style: {
|
|
49
|
+
bgColor: string;
|
|
50
|
+
color: string;
|
|
51
|
+
padding: number[];
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
menu: {
|
|
55
|
+
dropDownMenuHighlight: {
|
|
56
|
+
field: string;
|
|
57
|
+
menuKey: string;
|
|
58
|
+
}[];
|
|
59
|
+
};
|
|
60
|
+
frozenColDragHeaderMode: "adjustFrozenCount";
|
|
61
|
+
excelOptions: {
|
|
62
|
+
fillHandle: true;
|
|
63
|
+
};
|
|
64
|
+
extra: {
|
|
65
|
+
historyEditOptions: {
|
|
66
|
+
modifyMark: true;
|
|
67
|
+
modifyMarkStyle: {
|
|
68
|
+
delete: {
|
|
69
|
+
bgColor: string;
|
|
70
|
+
lineThrough: true;
|
|
71
|
+
lineThroughColor: string;
|
|
72
|
+
};
|
|
73
|
+
update: {
|
|
74
|
+
bgColor: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
onCreated: ({ tableInstance }: {
|
|
79
|
+
tableInstance: import('./ListTable').ListTable<import('./feature/types').WholeRow>;
|
|
80
|
+
}) => void;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
export default meta;
|
|
85
|
+
type Story = StoryObj<typeof meta>;
|
|
86
|
+
export declare const Init: Story;
|
|
87
|
+
export declare const Init2: Story;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { default as VTable, ColumnsDefine } from '@visactor/vtable';
|
|
2
|
+
import { TableEventHandlersEventArgumentMap } from '@visactor/vtable/es/ts-types/events';
|
|
3
|
+
import { IGraphic, IStage, IArc3dGraphicAttribute, IArcGraphicAttribute, IAreaGraphicAttribute, ICircleGraphicAttribute, IGlyphGraphicAttribute, IGroupGraphicAttribute, IImageGraphicAttribute, ILineGraphicAttribute, IPathGraphicAttribute, IPolygonGraphicAttribute, IPyramid3dGraphicAttribute, IRect3dGraphicAttribute, IRectGraphicAttribute, IRichTextGraphicAttribute, ISymbolGraphicAttribute, ITextGraphicAttribute, REACT_TO_CANOPUS_EVENTS, IGraphicAttribute } from '@visactor/vtable/es/vrender';
|
|
4
|
+
import { ListTable } from './ListTable';
|
|
5
|
+
import { CellInfo } from '@visactor/vtable/es/ts-types';
|
|
6
|
+
import { HistoryEditOptions, VTableTooltipOptions, WholeRow } from './feature/types';
|
|
7
|
+
import { BaseComponentProps } from '../../typings';
|
|
8
|
+
import { CustomMergeRender } from './feature/customMergeCell';
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
export type VTableColumn<Row extends WholeRow> = {
|
|
12
|
+
field: string | number;
|
|
13
|
+
render?: (
|
|
14
|
+
params: VTable.TYPES.CustomRenderFunctionArg,
|
|
15
|
+
vTable: Omit<
|
|
16
|
+
typeof VTable,
|
|
17
|
+
| 'VArc'
|
|
18
|
+
| 'VArc3d'
|
|
19
|
+
| 'VArea'
|
|
20
|
+
| 'VCircle'
|
|
21
|
+
| 'VGroup'
|
|
22
|
+
| 'VGlyph'
|
|
23
|
+
| 'VImage'
|
|
24
|
+
| 'VLine'
|
|
25
|
+
| 'VPath'
|
|
26
|
+
| 'VPolygon'
|
|
27
|
+
| 'VPyramid3d'
|
|
28
|
+
| 'VRect'
|
|
29
|
+
| 'VRect3d'
|
|
30
|
+
| 'VSymbol'
|
|
31
|
+
| 'VText'
|
|
32
|
+
| 'VRichText'
|
|
33
|
+
> &
|
|
34
|
+
HasEventComponent<Row>,
|
|
35
|
+
) => VTable.TYPES.ICustomLayoutObj;
|
|
36
|
+
} & Omit<ColumnsDefine[0], 'customLayout' | 'field'>;
|
|
37
|
+
|
|
38
|
+
export interface OnChainVTableProps<Row extends WholeRow>
|
|
39
|
+
extends Omit<VTable.TYPES.ListTableConstructorOptions, 'columns' | 'menu' | 'tooltip' | 'records' | 'customMergeCell'>,
|
|
40
|
+
BaseComponentProps {
|
|
41
|
+
rowKey: string | (() => string);
|
|
42
|
+
columns: VTableColumn<Row>[];
|
|
43
|
+
menu?: Menu;
|
|
44
|
+
records?: Row[];
|
|
45
|
+
namespace?: string | (() => string);
|
|
46
|
+
tooltip?: VTableTooltipOptions;
|
|
47
|
+
customMergeRender?: (vTable: HasEventComponent<Row>, ...params: Parameters<CustomMergeRender<Row>>) => ReturnType<CustomMergeRender<Row>>;
|
|
48
|
+
extra?: {
|
|
49
|
+
group?: {
|
|
50
|
+
dimension: string;
|
|
51
|
+
};
|
|
52
|
+
historyEditOptions?: HistoryEditOptions;
|
|
53
|
+
onCreated?: (param: { tableInstance: ListTable<Row> }) => void;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
type CustomEventName = keyof TableEventHandlersEventArgumentMap;
|
|
58
|
+
type CustomEvent<K extends CustomEventName, Row extends WholeRow> = {
|
|
59
|
+
[P in K]?: (this: ListTable<Row>, params: Parameters<VTable.TYPES.TableEventListener<P>>[0]) => void | false;
|
|
60
|
+
};
|
|
61
|
+
type CustomAttribute<Row extends WholeRow> = { event?: CustomEvent<CustomEventName, Row>; cellInfo?: CellInfo };
|
|
62
|
+
|
|
63
|
+
type IDefaultGraphicParamsType<T extends Partial<IGraphicAttribute> = Partial<IGraphicAttribute>> = {
|
|
64
|
+
attribute?: T;
|
|
65
|
+
stateProxy?: (stateName: string, targetStates?: string[]) => Partial<T>;
|
|
66
|
+
children?: any;
|
|
67
|
+
name?: string;
|
|
68
|
+
id?: string;
|
|
69
|
+
} & IEventParamsType<T>;
|
|
70
|
+
|
|
71
|
+
type Coordinate = { x: number; y: number };
|
|
72
|
+
|
|
73
|
+
type IEventParamsType<T extends Partial<IGraphicAttribute> = Partial<IGraphicAttribute>> = {
|
|
74
|
+
[t in keyof typeof REACT_TO_CANOPUS_EVENTS]?: (
|
|
75
|
+
this: IGraphic<T>,
|
|
76
|
+
event: {
|
|
77
|
+
currentTarget: IGraphic;
|
|
78
|
+
target: IStage;
|
|
79
|
+
canvas: Coordinate;
|
|
80
|
+
client: Coordinate;
|
|
81
|
+
global: Coordinate;
|
|
82
|
+
layer: Coordinate;
|
|
83
|
+
movement: Coordinate;
|
|
84
|
+
offset: Coordinate;
|
|
85
|
+
page: Coordinate;
|
|
86
|
+
screen: Coordinate;
|
|
87
|
+
viewprot: Coordinate;
|
|
88
|
+
},
|
|
89
|
+
) => void;
|
|
90
|
+
};
|
|
91
|
+
interface HasEventComponent<Row extends WholeRow> {
|
|
92
|
+
VArc(params: IDefaultGraphicParamsType<IArcGraphicAttribute & CustomAttribute<Row>>): any;
|
|
93
|
+
VArc3d(params: IDefaultGraphicParamsType<IArc3dGraphicAttribute & CustomAttribute<Row>>): any;
|
|
94
|
+
VArea(params: IDefaultGraphicParamsType<IAreaGraphicAttribute & CustomAttribute<Row>>): any;
|
|
95
|
+
VCircle(params: IDefaultGraphicParamsType<ICircleGraphicAttribute & CustomAttribute<Row>>): any;
|
|
96
|
+
VGroup(params: IDefaultGraphicParamsType<IGroupGraphicAttribute & CustomAttribute<Row>>): any;
|
|
97
|
+
VGlyph(params: IDefaultGraphicParamsType<IGlyphGraphicAttribute & CustomAttribute<Row>>): any;
|
|
98
|
+
VImage(params: IDefaultGraphicParamsType<IImageGraphicAttribute & CustomAttribute<Row>>): any;
|
|
99
|
+
VLine(params: IDefaultGraphicParamsType<ILineGraphicAttribute & CustomAttribute<Row>>): any;
|
|
100
|
+
VPath(params: IDefaultGraphicParamsType<IPathGraphicAttribute & CustomAttribute<Row>>): any;
|
|
101
|
+
VPolygon(params: IDefaultGraphicParamsType<IPolygonGraphicAttribute & CustomAttribute<Row>>): any;
|
|
102
|
+
VPyramid3d(params: IDefaultGraphicParamsType<IPyramid3dGraphicAttribute & CustomAttribute<Row>>): any;
|
|
103
|
+
VRect(params: IDefaultGraphicParamsType<IRectGraphicAttribute & CustomAttribute<Row>>): any;
|
|
104
|
+
VRect3d(params: IDefaultGraphicParamsType<IRect3dGraphicAttribute & CustomAttribute<Row>>): any;
|
|
105
|
+
VSymbol(params: IDefaultGraphicParamsType<ISymbolGraphicAttribute & CustomAttribute<Row>>): any;
|
|
106
|
+
VText(params: IDefaultGraphicParamsType<ITextGraphicAttribute & CustomAttribute<Row>>): any;
|
|
107
|
+
VRichText(params: IDefaultGraphicParamsType<IRichTextGraphicAttribute & CustomAttribute<Row>>): any;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
type BasisMenu = Required<VTable.TYPES.ListTableConstructorOptions>['menu'];
|
|
111
|
+
type CanHideTypeMenu = VTable.TYPES.MenuListItem & { show?: false };
|
|
112
|
+
interface Menu extends BasisMenu {
|
|
113
|
+
contextMenuItems?: CanHideTypeMenu[] | ((field: string, row: number, col: number) => CanHideTypeMenu[]);
|
|
114
|
+
}
|
package/lib/src/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { default as CollapsePanel } from 'antd/es/collapse/CollapsePanel';
|
|
1
2
|
import { default as OnChainProvider } from './components/OnChainProvider';
|
|
2
3
|
import { default as OnChainSelect } from './components/OnChainSelect';
|
|
4
|
+
import { default as Paragraph } from 'antd/es/typography/Paragraph';
|
|
3
5
|
import { default as OnChainIcon } from './components/OnChainIcon';
|
|
4
|
-
import { default as OnChainBadge
|
|
6
|
+
import { default as OnChainBadge } from './components/OnChainBadge';
|
|
5
7
|
import { default as OnChainHighLightWords } from './components/OnChainHighLightWords';
|
|
6
8
|
import { default as OnChainInput } from './components/OnChainInput';
|
|
7
9
|
import { default as OnChainLoading } from './components/OnChainLoading';
|
|
@@ -29,4 +31,50 @@ import { default as OnChainSelectPopupForm } from './components/OnChainSelectPop
|
|
|
29
31
|
import { default as OnChainPublicTree } from './components/OnChainPublicTree';
|
|
30
32
|
import { default as OnChainTable } from './components/OnChainTable';
|
|
31
33
|
import { default as OnChainAI } from './components/OnChainAI';
|
|
32
|
-
|
|
34
|
+
import { default as OnChainProgress } from './components/OnChainProgress';
|
|
35
|
+
import { default as OnChainTabs } from './components/OnChainTabs';
|
|
36
|
+
import { default as zhCN } from 'antd/locale/zh_CN';
|
|
37
|
+
import { default as en_US } from 'antd/locale/en_US';
|
|
38
|
+
import { DefaultOptionType } from 'antd/lib/select';
|
|
39
|
+
import { TableRowSelection } from 'antd/lib/table/interface';
|
|
40
|
+
import { CheckboxOptionType } from 'antd/lib/checkbox';
|
|
41
|
+
import { TransferDirection, TransferItem } from 'antd/es/transfer';
|
|
42
|
+
import { TransferListBodyProps } from 'antd/es/transfer/ListBody';
|
|
43
|
+
export * from './components/OnChainProvider';
|
|
44
|
+
export * from './components/OnChainSelect';
|
|
45
|
+
export * from './components/OnChainIcon';
|
|
46
|
+
export * from './components/OnChainBadge';
|
|
47
|
+
export * from './components/OnChainHighLightWords';
|
|
48
|
+
export * from './components/OnChainInput';
|
|
49
|
+
export * from './components/OnChainLoading';
|
|
50
|
+
export * from './components/OnChainLoadingSkCube';
|
|
51
|
+
export * from './components/OnChainGlobalLoading';
|
|
52
|
+
export * from './components/OnChainMarkdown';
|
|
53
|
+
export * from './components/OnChainModal';
|
|
54
|
+
export * from './components/OnChainMosaic';
|
|
55
|
+
export * from './components/OnChainScrollBar';
|
|
56
|
+
export * from './components/OnChainViewerError';
|
|
57
|
+
export * from './components/OnChainDropMenu';
|
|
58
|
+
export * from './components/OnChainCompositeForm';
|
|
59
|
+
export * from './components/OnChainExcelViewer';
|
|
60
|
+
export * from './components/OnChainForm';
|
|
61
|
+
export * from './components/OnChainFormItem';
|
|
62
|
+
export * from './components/OnChainGenAntImage';
|
|
63
|
+
export * from './components/OnChainImage';
|
|
64
|
+
export * from './components/OnChainTableSelection';
|
|
65
|
+
export * from './components/OnChainResourceTree';
|
|
66
|
+
export * from './components/OnChainAdvancedSearch';
|
|
67
|
+
export * from './components/OnChainPopupSelect';
|
|
68
|
+
export * from './components/OnChainQueryBuilder';
|
|
69
|
+
export * from './components/OnChainScrollBarAssembly';
|
|
70
|
+
export * from './components/OnChainSelectPopupForm';
|
|
71
|
+
export * from './components/OnChainPublicTree';
|
|
72
|
+
export * from './components/OnChainTable';
|
|
73
|
+
export * from './components/OnChainAI';
|
|
74
|
+
export * from './components/OnChainProgress';
|
|
75
|
+
export * from './components/OnChainTabs';
|
|
76
|
+
export * from 'antd';
|
|
77
|
+
export * from 'antd/es/typography/Paragraph';
|
|
78
|
+
export * from 'antd/es/transfer/ListBody';
|
|
79
|
+
export type { DefaultOptionType, TableRowSelection, CheckboxOptionType, TransferDirection, TransferItem, TransferListBodyProps };
|
|
80
|
+
export { OnChainAI, OnChainTable, OnChainProvider, OnChainSelect, OnChainIcon, OnChainBadge, OnChainHighLightWords, zhCN, en_US, OnChainInput, OnChainLoading, OnChainLoadingSkCube, OnChainGlobalLoading, OnChainMarkdown, OnChainModal, OnChainMosaic, OnChainScrollBar, OnChainViewerError, Paragraph, OnChainDropMenu, OnChainCompositeForm, OnChainExcelViewer, OnChainForm, OnChainFormItem, OnChainGenAntImage, OnChainImage, OnChainTableSelection, OnChainResourceTree, OnChainAdvancedSearch, OnChainPopupSelect, OnChainQueryBuilder, OnChainScrollBarAssembly, OnChainSelectPopupForm, OnChainPublicTree, OnChainProgress, OnChainTabs, CollapsePanel };
|
package/lib/src/types/gantt.d.ts
CHANGED
package/lib/src/typings.d.ts
CHANGED
|
@@ -150,12 +150,12 @@ declare namespace APP {
|
|
|
150
150
|
isTopDown: boolean;
|
|
151
151
|
/** 日历 */
|
|
152
152
|
ownerType: "" | "1";
|
|
153
|
-
calendar: Partial<
|
|
153
|
+
calendar: Partial<OnChainProject.Calendar> & {
|
|
154
154
|
startFormat: string;
|
|
155
155
|
endFormat: string;
|
|
156
156
|
isInit: boolean;
|
|
157
157
|
};
|
|
158
|
-
calendarInstance:
|
|
158
|
+
calendarInstance: OnChainProject.GanttCalendarInstance<Moment> | null;
|
|
159
159
|
/** 项目经理 */
|
|
160
160
|
projectManager: string;
|
|
161
161
|
projectStatusName: string;
|
|
@@ -417,7 +417,7 @@ declare namespace APP {
|
|
|
417
417
|
}
|
|
418
418
|
|
|
419
419
|
/** 个性化配置 */
|
|
420
|
-
interface Personality extends
|
|
420
|
+
interface Personality extends OnChainProject.Personality {
|
|
421
421
|
/** 是否有科目数据 */
|
|
422
422
|
isHasSubject: boolean;
|
|
423
423
|
/** 全局可替代bom */
|
|
@@ -41,6 +41,8 @@ export declare class utility {
|
|
|
41
41
|
data: T[];
|
|
42
42
|
lookup: (item: T, index: number) => boolean;
|
|
43
43
|
childrenKey?: string;
|
|
44
|
-
}):
|
|
44
|
+
}): OnChainProject.Relation<T>;
|
|
45
45
|
static judgeParentIcon(itemCode: string, icon?: string): string | undefined;
|
|
46
|
+
static generateCacheFn<Params, Result>(fn: (...params: Params[]) => Result): Required<Readonly<Omit<CacheFn<Result, Result, Params>, "_value">>> & BasicsFn<Result, Params>;
|
|
47
|
+
static generateSnowId(): string;
|
|
46
48
|
}
|
package/lib/typings.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "onchain-uikit",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "3.9.4-
|
|
4
|
+
"version": "3.9.4-alpha40",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite",
|
|
7
7
|
"build": "vite build",
|
|
8
|
+
"yalc:publish": "cross-env NODE_OPTIONS=--max_old_space_size=4096 vite --mode production --config vite.config.ts build && yalc publish",
|
|
8
9
|
"yalc:push": "cross-env NODE_OPTIONS=--max_old_space_size=4096 vite --mode production --config vite.config.ts build && yalc push",
|
|
9
10
|
"lint": "eslint .",
|
|
10
11
|
"preview": "vite preview",
|
|
@@ -36,11 +37,15 @@
|
|
|
36
37
|
"@ant-design/icons": "^4.7.0",
|
|
37
38
|
"@ant-design/x": "^1.0.5",
|
|
38
39
|
"@storybook/theming": "^8.5.8",
|
|
40
|
+
"@univerjs/presets": "^0.6.4",
|
|
39
41
|
"@uppy/core": "^3.5.1",
|
|
40
42
|
"@uppy/react": "^3.1.0",
|
|
41
43
|
"@uppy/tus": "^3.0.5",
|
|
44
|
+
"@visactor/vtable": "^1.17.0",
|
|
45
|
+
"@zwight/luckyexcel": "^1.0.8",
|
|
42
46
|
"ahooks": "^3.1.9",
|
|
43
47
|
"antd": "5.24.1",
|
|
48
|
+
"async-validator": "^4.2.5",
|
|
44
49
|
"lodash": "^4.17.21",
|
|
45
50
|
"markdown-it": "^14.1.0",
|
|
46
51
|
"moment": "^2.29.4",
|
|
@@ -56,6 +61,8 @@
|
|
|
56
61
|
"react-highlight-words": "^0.21.0",
|
|
57
62
|
"react-mde": "^11.5.0",
|
|
58
63
|
"react-resizable": "^3.0.5",
|
|
64
|
+
"react-split-pane": "^0.1.92",
|
|
65
|
+
"rxjs": "^7.8.2",
|
|
59
66
|
"showdown": "^2.1.0",
|
|
60
67
|
"video-react": "^0.16.0",
|
|
61
68
|
"vite-plugin-dts": "^4.5.0",
|
|
@@ -77,6 +84,7 @@
|
|
|
77
84
|
"@types/react-dom": "^18.3.5",
|
|
78
85
|
"@vitejs/plugin-react": "^4.3.4",
|
|
79
86
|
"babel-plugin-import": "^1.13.8",
|
|
87
|
+
"cross-env": "^7.0.3",
|
|
80
88
|
"eslint": "^9.17.0",
|
|
81
89
|
"eslint-plugin-react-hooks": "^5.0.0",
|
|
82
90
|
"eslint-plugin-react-refresh": "^0.4.16",
|