@canvas-components/react-pivot-table 0.2.4 → 0.2.6
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/README.md +18 -0
- package/dist/index.cjs +667 -181
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -2
- package/dist/index.d.ts +9 -2
- package/dist/index.js +669 -184
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { CSSProperties, ReactNode, ForwardedRef } from 'react';
|
|
2
|
+
import { CSSProperties, ReactNode, ForwardedRef, PropsWithChildren } from 'react';
|
|
3
3
|
import { PivotTableOptions, PivotField, PivotFieldLayout, PivotModel, PivotTable, PivotSelectionState, PivotFilterState, PivotSortRule, PivotCellAddress, PivotAxis, PivotFilterAxis, PivotDimensionFilter, PivotFilterOptionItem, PivotExportOptions, PivotTableStateSnapshot } from '@canvas-components/pivot-table';
|
|
4
4
|
|
|
5
5
|
/** PivotTable 自定义字段面板配置。 */
|
|
@@ -80,4 +80,11 @@ declare const ReactPivotTable: <RecordType = Record<string, unknown>>(props: Rea
|
|
|
80
80
|
ref?: ForwardedRef<ReactPivotTableRef<RecordType>>;
|
|
81
81
|
}) => ReturnType<typeof ReactPivotTableInner>;
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
/** ReactPivotTable 调试模式上下文属性。 */
|
|
84
|
+
interface ReactPivotTableDebugProviderProps extends PropsWithChildren {
|
|
85
|
+
enabled: boolean;
|
|
86
|
+
}
|
|
87
|
+
/** 为后代 ReactPivotTable 统一切换核心调试模式。 */
|
|
88
|
+
declare function ReactPivotTableDebugProvider(props: ReactPivotTableDebugProviderProps): react.JSX.Element;
|
|
89
|
+
|
|
90
|
+
export { ReactPivotTable, type ReactPivotTableCustomizationOptions, ReactPivotTableDebugProvider, type ReactPivotTableDebugProviderProps, type ReactPivotTableProps, type ReactPivotTableRef };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { CSSProperties, ReactNode, ForwardedRef } from 'react';
|
|
2
|
+
import { CSSProperties, ReactNode, ForwardedRef, PropsWithChildren } from 'react';
|
|
3
3
|
import { PivotTableOptions, PivotField, PivotFieldLayout, PivotModel, PivotTable, PivotSelectionState, PivotFilterState, PivotSortRule, PivotCellAddress, PivotAxis, PivotFilterAxis, PivotDimensionFilter, PivotFilterOptionItem, PivotExportOptions, PivotTableStateSnapshot } from '@canvas-components/pivot-table';
|
|
4
4
|
|
|
5
5
|
/** PivotTable 自定义字段面板配置。 */
|
|
@@ -80,4 +80,11 @@ declare const ReactPivotTable: <RecordType = Record<string, unknown>>(props: Rea
|
|
|
80
80
|
ref?: ForwardedRef<ReactPivotTableRef<RecordType>>;
|
|
81
81
|
}) => ReturnType<typeof ReactPivotTableInner>;
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
/** ReactPivotTable 调试模式上下文属性。 */
|
|
84
|
+
interface ReactPivotTableDebugProviderProps extends PropsWithChildren {
|
|
85
|
+
enabled: boolean;
|
|
86
|
+
}
|
|
87
|
+
/** 为后代 ReactPivotTable 统一切换核心调试模式。 */
|
|
88
|
+
declare function ReactPivotTableDebugProvider(props: ReactPivotTableDebugProviderProps): react.JSX.Element;
|
|
89
|
+
|
|
90
|
+
export { ReactPivotTable, type ReactPivotTableCustomizationOptions, ReactPivotTableDebugProvider, type ReactPivotTableDebugProviderProps, type ReactPivotTableProps, type ReactPivotTableRef };
|