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.
Files changed (76) hide show
  1. package/dist/index.cjs.js +401 -222
  2. package/dist/index.es.js +35753 -20037
  3. package/dist/index.umd.js +468 -289
  4. package/dist/onchain-uikit.css +2 -2
  5. package/lib/src/app/main/model/context.d.ts +2 -0
  6. package/lib/src/components/OnChainAdvancedSearch/index.d.ts +22 -3
  7. package/lib/src/components/OnChainAdvancedSearch/index.stories.d.ts +1 -1
  8. package/lib/src/components/OnChainExcelTemplate/XlsxSheetManager.d.ts +5 -0
  9. package/lib/src/components/OnChainExcelTemplate/core.d.ts +14 -0
  10. package/lib/src/components/OnChainExcelTemplate/index.d.ts +5 -0
  11. package/lib/src/components/OnChainFormItem/index.d.ts +5 -5
  12. package/lib/src/components/OnChainGenAntImage/index.d.ts +1 -0
  13. package/lib/src/components/OnChainGlobalLoading/index.d.ts +3 -3
  14. package/lib/src/components/OnChainGlobalLoading/index.stories.d.ts +1 -1
  15. package/lib/src/components/OnChainIcon/index.d.ts +7 -3
  16. package/lib/src/components/OnChainModal/index.d.ts +1 -0
  17. package/lib/src/components/OnChainPopoverTransfer/index.d.ts +4 -4
  18. package/lib/src/components/OnChainPopoverTransfer/select/index.d.ts +5 -5
  19. package/lib/src/components/OnChainPopupSelect/index.d.ts +4 -1
  20. package/lib/src/components/OnChainProvider/index.d.ts +2 -1
  21. package/lib/src/components/OnChainPublicTree/index.d.ts +2 -2
  22. package/lib/src/components/OnChainPublicTree/index.stories.d.ts +1 -1
  23. package/lib/src/components/OnChainQueryBuilder/index.d.ts +14 -13
  24. package/lib/src/components/OnChainResourceTree/index.d.ts +2 -3
  25. package/lib/src/components/OnChainSearchSelect/index.d.ts +18 -0
  26. package/lib/src/components/OnChainSelectPopupForm/index.d.ts +2 -2
  27. package/lib/src/components/OnChainSelectPopupForm/select/index.d.ts +3 -3
  28. package/lib/src/components/OnChainTable/ContextMenu.d.ts +2 -2
  29. package/lib/src/components/OnChainTable/OnChainTableFormItem/index.d.ts +4 -3
  30. package/lib/src/components/OnChainTable/TableFooter.d.ts +2 -2
  31. package/lib/src/components/OnChainTable/TableUtils.d.ts +4 -4
  32. package/lib/src/components/OnChainTable/index.d.ts +6 -6
  33. package/lib/src/components/OnChainTable/index.stories.d.ts +4 -1
  34. package/lib/src/components/OnChainTable/useClipboard.d.ts +2 -2
  35. package/lib/src/components/OnChainTable/useColumn.d.ts +2 -2
  36. package/lib/src/components/OnChainTable/useCopy.d.ts +1 -2
  37. package/lib/src/components/OnChainTable/useDynamicHeight.d.ts +2 -2
  38. package/lib/src/components/OnChainTable/useFiltered.d.ts +2 -2
  39. package/lib/src/components/OnChainTable/usePaste.d.ts +1 -2
  40. package/lib/src/components/OnChainTableSelection/index.d.ts +8 -5
  41. package/lib/src/components/OnChainTableSelection/index.stories.d.ts +1 -1
  42. package/lib/src/components/OnChainUniverExcel/data.d.ts +2 -0
  43. package/lib/src/components/OnChainUniverExcel/index.d.ts +14 -0
  44. package/lib/src/components/OnChainUniverExcel/plugin.d.ts +1 -0
  45. package/lib/src/components/OnChainUniverExcel/plugins/controllers/controller.d.ts +11 -0
  46. package/lib/src/components/OnChainUniverExcel/plugins/controllers/menu/export.d.ts +13 -0
  47. package/lib/src/components/OnChainUniverExcel/plugins/controllers/menu/generate.d.ts +12 -0
  48. package/lib/src/components/OnChainUniverExcel/plugins/controllers/menu/import.d.ts +19 -0
  49. package/lib/src/components/OnChainUniverExcel/plugins/controllers/menu/save.d.ts +3 -0
  50. package/lib/src/components/OnChainUniverExcel/plugins/controllers/menu/saveDatabase.d.ts +12 -0
  51. package/lib/src/components/OnChainUniverExcel/plugins/index.d.ts +42 -0
  52. package/lib/src/components/OnChainUniverExcel/plugins/locale/en-US.d.ts +15 -0
  53. package/lib/src/components/OnChainUniverExcel/plugins/locale/zh-CN.d.ts +15 -0
  54. package/lib/src/components/OnChainVTable/ListTable.d.ts +30 -0
  55. package/lib/src/components/OnChainVTable/components/index.d.ts +1 -0
  56. package/lib/src/components/OnChainVTable/components/tooltip.d.ts +9 -0
  57. package/lib/src/components/OnChainVTable/const.d.ts +47 -0
  58. package/lib/src/components/OnChainVTable/demo.d.ts +1 -0
  59. package/lib/src/components/OnChainVTable/feature/customMergeCell.d.ts +33 -0
  60. package/lib/src/components/OnChainVTable/feature/fill-handle.d.ts +6 -0
  61. package/lib/src/components/OnChainVTable/feature/history-edit.d.ts +435 -0
  62. package/lib/src/components/OnChainVTable/feature/index.d.ts +6 -0
  63. package/lib/src/components/OnChainVTable/feature/right-click-menu.d.ts +24 -0
  64. package/lib/src/components/OnChainVTable/feature/style.d.ts +17 -0
  65. package/lib/src/components/OnChainVTable/feature/tooltip.d.ts +9 -0
  66. package/lib/src/components/OnChainVTable/feature/types.d.ts +34 -0
  67. package/lib/src/components/OnChainVTable/feature/utils.d.ts +141 -0
  68. package/lib/src/components/OnChainVTable/index.d.ts +6 -0
  69. package/lib/src/components/OnChainVTable/index.stories.d.ts +87 -0
  70. package/lib/src/components/OnChainVTable/type.d.ts +114 -0
  71. package/lib/src/index.d.ts +50 -2
  72. package/lib/src/types/gantt.d.ts +1 -1
  73. package/lib/src/typings.d.ts +3 -3
  74. package/lib/src/utils/utility.d.ts +3 -1
  75. package/lib/typings.d.ts +3 -1
  76. 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
- children: any;
2
+ typeData: Array<object>;
3
+ treeData: Array<object>;
4
+ subcategory: Array<object>;
5
+ conditionObj: any;
3
6
  advancedSearchClassify: Array<object>;
4
- getInterface: (value: string, objectId?: any, isDefaultAttribute?: boolean) => void;
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: (props: OnChainAdvancedSearchProps) => import("react/jsx-runtime").JSX.Element;
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: (props: import('.').OnChainAdvancedSearchProps) => import("react/jsx-runtime").JSX.Element;
4
+ component: import('react').ForwardRefExoticComponent<import('.').OnChainAdvancedSearchProps & import('react').RefAttributes<unknown>>;
5
5
  parameters: {
6
6
  layout: string;
7
7
  };
@@ -0,0 +1,5 @@
1
+ declare class XlsxSheetManager {
2
+ constructor();
3
+ getRange(): any;
4
+ }
5
+ export default XlsxSheetManager;
@@ -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;
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ export interface OnChainExcelTemplateProps {
3
+ }
4
+ declare const OnChainExcelTemplate: FC<OnChainExcelTemplateProps>;
5
+ export default OnChainExcelTemplate;
@@ -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 { PlmPopoverTransferProps } from '../OnChainPopoverTransfer';
7
+ import { OnChainPopoverTransferProps } from '../OnChainPopoverTransfer';
8
8
  import { FC } from 'react';
9
- import { PlmSelectPopupProps } from '../OnChainSelectPopupForm/select';
10
- export declare const PlmTreeSelect: FC<TreeSelectProps>;
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<PlmPopoverTransferProps, 'allListOptions' | 'attr'>;
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?: PlmSelectPopupProps['selectProps'];
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 PlmGlobalModalLoadingProps extends BaseComponentProps {
3
+ export interface OnChainGlobalLoadingProps extends BaseComponentProps {
4
4
  /** 是否加载 */
5
5
  isSpinning?: boolean;
6
6
  }
7
7
  /** Global加载 */
8
- declare const PlmGlobalModalLoading: FC<PlmGlobalModalLoadingProps>;
9
- export default PlmGlobalModalLoading;
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('.').PlmGlobalModalLoadingProps>;
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 PlmPopoverTransferProps {
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 PlmPopoverTransferRef {
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 PlmPopoverTransfer: React.ForwardRefExoticComponent<PlmPopoverTransferProps & React.RefAttributes<PlmPopoverTransferRef>>;
49
- export default PlmPopoverTransfer;
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 { PlmPopoverTransferProps } from '..';
5
- export interface PlmSelectTransferProps {
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<PlmPopoverTransferProps, 'allListOptions'>;
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 PlmSelectTransfer: React.ForwardRefExoticComponent<PlmSelectTransferProps & React.RefAttributes<any>>;
18
- export default PlmSelectTransfer;
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 PlmPublicTree {
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<PlmPublicTree>;
19
+ declare const publicTree: React.FC<OnChainPublicTree>;
20
20
  export default publicTree;
@@ -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('.').PlmPublicTree>;
4
+ component: import('react').FC<import('.').OnChainPublicTree>;
5
5
  parameters: {
6
6
  layout: string;
7
7
  };
@@ -13,19 +13,20 @@ export interface OnChainQueryBuilderProps {
13
13
  setConditionValue?: any;
14
14
  searchBtn?: any;
15
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>;
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
- treeResult?: Array<object>;
22
- getInstanceMenu: (val: any) => void;
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 { PlmTableColumnProps } from '../OnChainTable';
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>>) => PlmTableColumnProps;
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 PlmSelectPopupProps {
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 PlmSelectPopupForm: React.ForwardRefExoticComponent<PlmSelectPopupProps & React.RefAttributes<any>>;
20
- export default PlmSelectPopupForm;
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 { PlmTableProps } from '.';
2
+ import { OnChainTableProps } from '.';
3
3
  export declare const generateSnowId: () => string;
4
4
  declare const ContextMenu: FC<{
5
- onFill?: PlmTableProps['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 PlmTableFormItemProps extends BaseComponentProps {
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 PlmTableFormItem: React.ForwardRefExoticComponent<Omit<PlmTableFormItemProps, "ref"> & React.RefAttributes<any>>;
14
- export default PlmTableFormItem;
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 { PlmTableProps } from '.';
2
+ import { OnChainTableProps } from '.';
3
3
  import { TableFooterDataRender } from './type';
4
- interface TableFooterProps extends Pick<PlmTableProps, 'hideFooter' | 'hideTableCount' | 'dataSource' | 'loading' | 'rowSelection' | 'total'> {
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 { PlmColumn } from '.';
2
+ import { OnChainColumn } from '.';
3
3
  import { contentProps } from '../OnChainFormItem';
4
- import { PlmTableFormItemProps } from './OnChainTableFormItem';
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: PlmTableFormItemProps["formprops"];
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: PlmColumn[];
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
- export type TableColumnsType = Partial<extendColumnType>[];
36
- export interface PlmTableProps extends TableProps<any>, BaseComponentProps {
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 PlmColumn = Partial<extendColumnType>;
87
- export type PlmTableColumnProps = Partial<extendColumnType>[];
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 PlmTableRef {
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<PlmTableProps, "ref"> & React.RefAttributes<PlmTableRef>>;
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('.').PlmTableProps, "ref"> & import('react').RefAttributes<import('.').PlmTableRef>>;
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 { PlmTableProps } from '.';
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: PlmTableProps, namespace: string) => {
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 { PlmTableProps } from '.';
2
- declare const useColumn: (props: PlmTableProps, sortInfo: any, filterInfo: any, menuId: string, getColumnSearchProps: any, tableHeight: number, selectedCell?: Record<string, any>) => {
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
- import { TableColumnsType } from './';
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 { PlmTableProps } from '.';
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: PlmTableProps["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 { PlmTableProps } from '.';
2
- declare const useFiltered: (onFilterAndSorter: PlmTableProps["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
- import { TableColumnsType } from './index';
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 TableSelectionProps {
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 PlmBorrowRefProps {
38
+ export interface OnChainBorrowRefProps {
36
39
  getLoading: (e: any) => void;
37
40
  backfill: (e: any) => void;
38
41
  }
39
- declare const TableSelection: React.FC<TableSelectionProps>;
40
- export default TableSelection;
42
+ declare const OnChainTableSelection: React.FC<OnChainTableSelectionProps>;
43
+ export default OnChainTableSelection;
@@ -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('.').TableSelectionProps>;
4
+ component: import('react').FC<import('.').OnChainTableSelectionProps>;
5
5
  parameters: {
6
6
  layout: string;
7
7
  };
@@ -0,0 +1,2 @@
1
+ import { IWorkbookData } from '@univerjs/core';
2
+ export declare const WORKBOOK_DATA: IWorkbookData;