dcp-design-react 1.10.10 → 1.10.11

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.
@@ -1,3 +1,3 @@
1
1
  import Scrollbar from './src/scrollbar';
2
- export type { ScrollbarProps } from './src/scrollbar';
2
+ export type { ScrollbarRef, ScrollbarProps } from './src/scrollbar';
3
3
  export default Scrollbar;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { CSSProperties, ComponentSize } from '../../_utils/types';
3
3
  import type { IFetch, IRecord, ICheckStrategy } from '../../table/src/table/types';
4
- import type { TreeProps } from '../../antd';
4
+ import { type TreeProps } from '../../antd';
5
5
  type IProps = TreeProps<IRecord> & {
6
6
  size?: ComponentSize;
7
7
  filterable?: boolean;
@@ -1,3 +1,3 @@
1
1
  import Signature from './src/signature';
2
- export type { SignatureProps } from './src/signature';
2
+ export type { SignatureRef, SignatureProps } from './src/signature';
3
3
  export default Signature;
@@ -9,6 +9,7 @@ type ICellEditProps = {
9
9
  };
10
10
  type CellEditRef = {
11
11
  focus: () => void;
12
+ blur: () => void;
12
13
  isEditable: () => boolean;
13
14
  isOpening: () => boolean;
14
15
  };
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { ITableRef } from './useTableRef';
3
- import type { TableBodyRef, IColumn, IPagination, IRowKey, ITableProps, IDeriveRowKeys } from '../table/types';
3
+ import type { TableBodyRef, IColumn, IPagination, IRowKey, ITableProps, IDerivedRowKeys } from '../table/types';
4
4
  import type { ComponentSize } from '../../../_utils/types';
5
5
  type IExtra = {
6
6
  tableRef: React.MutableRefObject<ITableRef>;
@@ -8,14 +8,13 @@ type IExtra = {
8
8
  $size: ComponentSize;
9
9
  scrollX: boolean;
10
10
  pagination: IPagination;
11
- selectionKeys: IDeriveRowKeys;
12
- rowExpandedKeys: IDeriveRowKeys;
11
+ selectionKeys: IDerivedRowKeys;
12
+ rowExpandedKeys: IDerivedRowKeys;
13
13
  highlightKey: IRowKey;
14
14
  summationRows: Record<string, number | string>[];
15
15
  showSummary: boolean;
16
16
  isWebPagination: boolean;
17
17
  isScrollPagination: boolean;
18
- isTreeTable: boolean;
19
18
  checkDataIndex: () => void;
20
19
  toLastPage: () => void;
21
20
  toFirstPage: () => void;
@@ -15,7 +15,7 @@ export type IRecord<T = any> = {
15
15
  };
16
16
  export type getRowKeyType = (row: IRecord, index: number) => string | number;
17
17
  export type IRowKey = ReturnType<getRowKeyType>;
18
- export type IDeriveRowKeys = IRowKey[] & {
18
+ export type IDerivedRowKeys = IRowKey[] & {
19
19
  __prevent__?: boolean;
20
20
  };
21
21
  export declare const DEFAULT_DISTANCE = 10;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import dayjs, { Dayjs } from 'dayjs';
3
- import type { IColumn, IDerivedRowKey, IRecord, IRowKey, ISorter } from '../table/types';
3
+ import type { IColumn, IDerivedRowKey, IDerivedRowKeys, IRecord, IRowKey, ISorter } from '../table/types';
4
4
  import type { Nullable, AnyObject } from '../../../_utils/types';
5
5
  export declare const columnsFlatMap: (columns: IColumn[]) => IColumn[];
6
6
  export declare const createFilterColumns: (columns: IColumn[]) => IColumn[];
@@ -14,6 +14,9 @@ export declare const deepFindRowKey: (rowKeys: IDerivedRowKey[], mark: IRowKey)
14
14
  export declare const tableDataFlatMap: (list: IRecord[]) => IRecord[];
15
15
  export declare const getAllTableData: (list: IRecord[]) => IRecord[];
16
16
  export declare const convertToRows: (columns: IColumn[]) => IColumn[][];
17
+ export declare const deepGetTreeRows: (treeData: IRecord[], fn: (row: IRecord) => boolean) => IRecord<any>[];
18
+ export declare const createPreventKeys: (rowKeys: IDerivedRowKeys) => IDerivedRowKeys;
19
+ export declare const deletePreventKey: (rowKeys: IDerivedRowKeys) => void;
17
20
  export declare const getNodeOffset: (el: Nullable<HTMLElement>, container: HTMLElement, rest?: {
18
21
  left: number;
19
22
  top: number;
@@ -17,7 +17,7 @@ type IProps = Omit<UploadProps, 'onPreview'> & {
17
17
  readOnly?: boolean;
18
18
  draggable?: boolean;
19
19
  editable?: boolean;
20
- batchDownload?: (fileList: UploadFile[]) => Promise<void> | boolean;
20
+ batchDownload?: ((fileList: UploadFile[]) => Promise<void>) | boolean;
21
21
  fileDirection?: 'horizontal' | 'vertical';
22
22
  downloadWithHeaders?: boolean | HttpRequestHeader;
23
23
  button?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dcp-design-react",
3
- "version": "1.10.10",
3
+ "version": "1.10.11",
4
4
  "description": "A Component Library for React",
5
5
  "keywords": [
6
6
  "React",