dcp-design-react 1.11.7 → 1.11.9

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,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import dayjs, { Dayjs } from 'dayjs';
3
- import type { IColumn, IDerivedRowKey, IDerivedRowKeys, IRecord, IRowKey, ISorter } from '../table/types';
3
+ import type { IColumn, IDerivedRowKey, IDerivedRowKeys, IMergeCellItem, 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[];
@@ -56,3 +56,4 @@ export declare const sortableFormatter: <T>(items: T[]) => T[];
56
56
  * @returns
57
57
  */
58
58
  export declare const equalFn: <T = any>(obj1: T, obj2: T, shallow?: boolean) => boolean;
59
+ export declare const calcMergedCells: (mergeCells: IMergeCellItem[], visibleRowIndices: number[]) => IMergeCellItem[];
@@ -54,6 +54,7 @@ export interface VirtualizerOptions<TScrollElement extends Element | Window, TIt
54
54
  observeElementRect: (instance: Virtualizer<TScrollElement, TItemElement>, cb: (rect: Rect) => void) => void | (() => void);
55
55
  observeElementOffset: (instance: Virtualizer<TScrollElement, TItemElement>, cb: ObserveOffsetCallBack) => void | (() => void);
56
56
  debug?: boolean;
57
+ noCache?: boolean;
57
58
  initialRect?: Rect;
58
59
  onChange?: (instance: Virtualizer<TScrollElement, TItemElement>, sync: boolean) => void;
59
60
  measureElement?: (element: TItemElement, entry: ResizeObserverEntry | undefined, instance: Virtualizer<TScrollElement, TItemElement>) => number;
@@ -3,6 +3,7 @@ export type NoInfer<A> = [A][A extends any ? 0 : never];
3
3
  export type PartialKeys<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
4
4
  export declare function memo<TDeps extends ReadonlyArray<any>, TResult>(getDeps: () => [...TDeps], fn: (...args: NoInfer<[...TDeps]>) => TResult, opts: {
5
5
  key: false | string;
6
+ noCache?: () => boolean;
6
7
  debug?: () => boolean;
7
8
  onChange?: (result: TResult) => void;
8
9
  initialDeps?: TDeps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dcp-design-react",
3
- "version": "1.11.7",
3
+ "version": "1.11.9",
4
4
  "description": "A Component Library for React",
5
5
  "keywords": [
6
6
  "React",