@progress/kendo-react-pivotgrid 7.2.4-develop.3 → 7.3.0-develop.1
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/PivotGrid.js +8 -0
- package/PivotGrid.mjs +252 -0
- package/components/AxesEditor.js +8 -0
- package/components/AxesEditor.mjs +43 -0
- package/components/AxisEditor.js +8 -0
- package/components/AxisEditor.mjs +108 -0
- package/components/AxisFilterFieldsEditor.js +8 -0
- package/components/AxisFilterFieldsEditor.mjs +159 -0
- package/components/Cell.js +8 -0
- package/components/Cell.mjs +45 -0
- package/components/Column.js +8 -0
- package/components/Column.mjs +40 -0
- package/components/Configurator.js +8 -0
- package/components/Configurator.mjs +134 -0
- package/components/ConfiguratorButton.js +8 -0
- package/components/ConfiguratorButton.mjs +42 -0
- package/components/ConfiguratorEditor.js +8 -0
- package/components/ConfiguratorEditor.mjs +240 -0
- package/components/Container.js +8 -0
- package/components/Container.mjs +40 -0
- package/components/EditorContext.js +8 -0
- package/components/EditorContext.mjs +13 -0
- package/components/FieldsEditor.js +8 -0
- package/components/FieldsEditor.mjs +78 -0
- package/components/HeaderCell.js +8 -0
- package/components/HeaderCell.mjs +69 -0
- package/components/Row.js +8 -0
- package/components/Row.mjs +42 -0
- package/dist/cdn/js/kendo-react-pivotgrid.js +8 -5
- package/hooks/useExpansion.js +8 -0
- package/hooks/useExpansion.mjs +46 -0
- package/hooks/useHeaders.js +8 -0
- package/hooks/useHeaders.mjs +18 -0
- package/hooks/useHorizontalScrollSync.js +8 -0
- package/hooks/useHorizontalScrollSync.mjs +25 -0
- package/hooks/usePivotConfiguratorEditor.js +8 -0
- package/hooks/usePivotConfiguratorEditor.mjs +67 -0
- package/hooks/usePivotLocalDataService.js +8 -0
- package/hooks/usePivotLocalDataService.mjs +94 -0
- package/hooks/usePivotOLAPService.js +8 -0
- package/hooks/usePivotOLAPService.mjs +230 -0
- package/hooks/useVerticalScrollSync.js +8 -0
- package/hooks/useVerticalScrollSync.mjs +25 -0
- package/index.d.mts +1342 -5
- package/index.d.ts +1342 -22
- package/index.js +8 -5
- package/index.mjs +46 -1583
- package/messages/index.js +8 -0
- package/messages/index.mjs +39 -0
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +19 -0
- package/package.json +9 -9
- package/shared/PivotGridConfiguratorEditorEventsContext.js +8 -0
- package/shared/PivotGridConfiguratorEditorEventsContext.mjs +13 -0
- package/shared/PivotGridConfiguratorEditorStateContext.js +8 -0
- package/shared/PivotGridConfiguratorEditorStateContext.mjs +28 -0
- package/utils/index.js +8 -0
- package/utils/index.mjs +59 -0
- package/PivotGrid.d.ts +0 -181
- package/components/AxesEditor.d.ts +0 -44
- package/components/AxisEditor.d.ts +0 -56
- package/components/AxisFilterFieldsEditor.d.ts +0 -118
- package/components/Cell.d.ts +0 -69
- package/components/Column.d.ts +0 -46
- package/components/Configurator.d.ts +0 -129
- package/components/ConfiguratorButton.d.ts +0 -44
- package/components/ConfiguratorEditor.d.ts +0 -130
- package/components/Container.d.ts +0 -50
- package/components/EditorContext.d.ts +0 -11
- package/components/FieldsEditor.d.ts +0 -78
- package/components/HeaderCell.d.ts +0 -100
- package/components/Row.d.ts +0 -54
- package/hooks/index.d.ts +0 -6
- package/hooks/useExpansion.d.ts +0 -23
- package/hooks/useHeaders.d.ts +0 -16
- package/hooks/useHorizontalScrollSync.d.ts +0 -9
- package/hooks/usePivotConfiguratorEditor.d.ts +0 -87
- package/hooks/usePivotLocalDataService.d.ts +0 -83
- package/hooks/usePivotOLAPService.d.ts +0 -45
- package/hooks/useVerticalScrollSync.d.ts +0 -9
- package/messages/index.d.ts +0 -74
- package/models/index.d.ts +0 -48
- package/package-metadata.d.ts +0 -9
- package/shared/PivotGridConfiguratorEditorEventsContext.d.ts +0 -17
- package/shared/PivotGridConfiguratorEditorStateContext.d.ts +0 -10
- package/shared/index.d.ts +0 -6
- package/utils/index.d.ts +0 -51
package/components/Row.d.ts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { KendoMouse } from '@progress/kendo-react-common';
|
|
7
|
-
/**
|
|
8
|
-
* Represents the object which is passed to the [`ref`](https://reactjs.org/docs/refs-and-the-dom.html) callback of the PivotGridRow component.
|
|
9
|
-
*/
|
|
10
|
-
export interface PivotGridRowHandle {
|
|
11
|
-
props: PivotGridRowProps;
|
|
12
|
-
element: HTMLTableRowElement | null;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Represents the props of the [KendoReact PivotGridRow component]({% slug api_pivotgrid_pivotgridrow %}).
|
|
16
|
-
*/
|
|
17
|
-
export interface PivotGridRowProps extends KendoMouse<PivotGridRowHandle, HTMLTableRowElement> {
|
|
18
|
-
/**
|
|
19
|
-
* Sets the `className` property of the top-most element of the PivotGridRow in addition to the default `k-pivotgrid-row` class.
|
|
20
|
-
*/
|
|
21
|
-
className?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Sets the `id` property of the top-most element of the PivotGridRow.
|
|
24
|
-
*/
|
|
25
|
-
id?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Sets the `children` property of the top-most element of the PivotGridRow.
|
|
28
|
-
*/
|
|
29
|
-
children?: React.ReactNode;
|
|
30
|
-
/**
|
|
31
|
-
* Sets the `style` property of the top-most element of the PivotGridRow.
|
|
32
|
-
*/
|
|
33
|
-
style?: React.CSSProperties;
|
|
34
|
-
/**
|
|
35
|
-
* Sets the `tabIndex` property of the top-most element of the PivotGridRow.
|
|
36
|
-
*/
|
|
37
|
-
tabIndex?: number;
|
|
38
|
-
/**
|
|
39
|
-
* Represents the `path` leading to the current `row`.
|
|
40
|
-
*/
|
|
41
|
-
path?: string[];
|
|
42
|
-
/**
|
|
43
|
-
* Sets the `role` property of the top-most element of the PivotGridRow.
|
|
44
|
-
*/
|
|
45
|
-
role?: string;
|
|
46
|
-
/**
|
|
47
|
-
* Sets the `aria-owns` property of the top-most element of the PivotGridRow.
|
|
48
|
-
*/
|
|
49
|
-
ariaOwns?: string;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Represents the [KendoReact PivotGridRow component]({% slug api_pivotgrid_pivotgridrowprops %}).
|
|
53
|
-
*/
|
|
54
|
-
export declare const PivotGridRow: React.ForwardRefExoticComponent<PivotGridRowProps & React.RefAttributes<PivotGridRowHandle | null>>;
|
package/hooks/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export * from './useExpansion';
|
|
6
|
-
export * from './usePivotConfiguratorEditor';
|
package/hooks/useExpansion.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export declare enum EXPANSION_ACTION {
|
|
9
|
-
toggle = "EXPAND_TOGGLE",
|
|
10
|
-
expand = "EXPAND_EXPAND",
|
|
11
|
-
collapse = "EXPAND_COLLAPSE"
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
export type ExpansionAction = {
|
|
17
|
-
type: EXPANSION_ACTION;
|
|
18
|
-
payload: any;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* @hidden
|
|
22
|
-
*/
|
|
23
|
-
export declare const useExpansion: (defaultValue: never[] | undefined, callback: any, target: any, compare?: (a: any, b: any) => boolean) => any[];
|
package/hooks/useHeaders.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { HeadersAction, PivotGridAxis } from '@progress/kendo-pivotgrid-common';
|
|
7
|
-
import { AxisDataItem } from '@progress/kendo-pivotgrid-common';
|
|
8
|
-
export { HEADERS_ACTION } from '@progress/kendo-pivotgrid-common';
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export declare const useHeaders: (prop: PivotGridAxis[], tree: AxisDataItem, onChange?: ((value: PivotGridAxis[], event: React.SyntheticEvent) => void) | undefined) => [PivotGridAxis[], (action: Omit<HeadersAction, 'tree'>, event: React.SyntheticEvent) => void];
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare const useHorizontalScrollSync: (...elements: React.RefObject<HTMLElement>[]) => (event: React.SyntheticEvent) => void;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { PivotGridConfiguratorEditorProps } from '../components/ConfiguratorEditor';
|
|
7
|
-
import { PivotGridConfiguratorState as CommonConfiguratorState, PivotGridField, PIVOT_CONFIGURATOR_ACTION as COMMON_CONFIGURATOR_ACTION } from '@progress/kendo-pivotgrid-common';
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export interface PivotGridConfiguratorEditorState extends CommonConfiguratorState {
|
|
12
|
-
expanded: PivotGridField[];
|
|
13
|
-
}
|
|
14
|
-
declare enum EXTENDED_CONFIGURATOR_ACTION {
|
|
15
|
-
toggleExpansion = "PIVOT_CONFIGURATOR_ACTION_TOGGLE_EXPANSION"
|
|
16
|
-
}
|
|
17
|
-
type PIVOT_CONFIGURATOR_ACTION_TYPE = COMMON_CONFIGURATOR_ACTION | EXTENDED_CONFIGURATOR_ACTION;
|
|
18
|
-
/**
|
|
19
|
-
* @hidden
|
|
20
|
-
*/
|
|
21
|
-
export declare const PIVOT_CONFIGURATOR_ACTION: {
|
|
22
|
-
toggleExpansion: EXTENDED_CONFIGURATOR_ACTION.toggleExpansion;
|
|
23
|
-
toggleSelection: COMMON_CONFIGURATOR_ACTION.toggleSelection;
|
|
24
|
-
addColumnAxis: COMMON_CONFIGURATOR_ACTION.addColumnAxis;
|
|
25
|
-
addColumnAxes: COMMON_CONFIGURATOR_ACTION.addColumnAxes;
|
|
26
|
-
removeColumnAxis: COMMON_CONFIGURATOR_ACTION.removeColumnAxis;
|
|
27
|
-
removeColumnAxes: COMMON_CONFIGURATOR_ACTION.removeColumnAxes;
|
|
28
|
-
addRowAxis: COMMON_CONFIGURATOR_ACTION.addRowAxis;
|
|
29
|
-
addRowAxes: COMMON_CONFIGURATOR_ACTION.addRowAxes;
|
|
30
|
-
removeRowAxis: COMMON_CONFIGURATOR_ACTION.removeRowAxis;
|
|
31
|
-
removeRowAxes: COMMON_CONFIGURATOR_ACTION.removeRowAxes;
|
|
32
|
-
addMeasureAxis: COMMON_CONFIGURATOR_ACTION.addMeasureAxis;
|
|
33
|
-
addMeasureAxes: COMMON_CONFIGURATOR_ACTION.addMeasureAxes;
|
|
34
|
-
removeMeasureAxis: COMMON_CONFIGURATOR_ACTION.removeMeasureAxis;
|
|
35
|
-
removeMeasureAxes: COMMON_CONFIGURATOR_ACTION.removeMeasureAxes;
|
|
36
|
-
remove: COMMON_CONFIGURATOR_ACTION.remove;
|
|
37
|
-
setSort: COMMON_CONFIGURATOR_ACTION.setSort;
|
|
38
|
-
setFilter: COMMON_CONFIGURATOR_ACTION.setFilter;
|
|
39
|
-
addFilter: COMMON_CONFIGURATOR_ACTION.addFilter;
|
|
40
|
-
changeFilter: COMMON_CONFIGURATOR_ACTION.changeFilter;
|
|
41
|
-
removeFilter: COMMON_CONFIGURATOR_ACTION.removeFilter;
|
|
42
|
-
setDragItem: COMMON_CONFIGURATOR_ACTION.setDragItem;
|
|
43
|
-
drop: COMMON_CONFIGURATOR_ACTION.drop;
|
|
44
|
-
setDropZone: COMMON_CONFIGURATOR_ACTION.setDropZone;
|
|
45
|
-
setDropTarget: COMMON_CONFIGURATOR_ACTION.setDropTarget;
|
|
46
|
-
setDropDirection: COMMON_CONFIGURATOR_ACTION.setDropDirection;
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
* @hidden
|
|
50
|
-
*/
|
|
51
|
-
export interface PivotGridConfiguratorExpandAction {
|
|
52
|
-
type: PIVOT_CONFIGURATOR_ACTION_TYPE;
|
|
53
|
-
payload: any;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Represents the available PivotGridConfigurator actions.
|
|
57
|
-
*
|
|
58
|
-
* Can be one of:
|
|
59
|
-
* - [PivotGridConfiguratorSelectionAction]({% slug api_pivotgrid_pivotgridconfiguratorselectionaction %})
|
|
60
|
-
* - [PivotGridConfiguratorMultipleSelectionAction]({% slug api_pivotgrid_pivotgridconfiguratormultipleselectionaction %})
|
|
61
|
-
* - [PivotGridConfiguratorRemoveAction]({% slug api_pivotgrid_pivotgridconfiguratorremoveaction %})
|
|
62
|
-
* - [PivotGridConfiguratorSortAction]({% slug api_pivotgrid_pivotgridconfiguratorsortaction %})
|
|
63
|
-
* - [PivotGridConfiguratorFilterAction]({% slug api_pivotgrid_pivotgridconfiguratorfilteraction %})
|
|
64
|
-
* - [PivotConfiguratorDragAction]({% slug api_pivotgrid_pivotconfiguratordragaction %})
|
|
65
|
-
* - [PivotConfiguratorDropAction]({% slug api_pivotgrid_pivotconfiguratordropaction %})
|
|
66
|
-
* - [PivotGridConfiguratorDropZoneAction]({% slug api_pivotgrid_pivotgridconfiguratordropzoneaction %})
|
|
67
|
-
* - [PivotGridConfiguratorDropTargetAction]({% slug api_pivotgrid_pivotgridconfiguratordroptargetaction %})
|
|
68
|
-
* - [PivotGridConfiguratorDropDirectionAction]({% slug api_pivotgrid_pivotgridconfiguratordropdirectionaction %})
|
|
69
|
-
* - [PivotGridConfiguratorExpandAction]({% slug api_pivotgrid_pivotgridconfiguratorexpandaction %})
|
|
70
|
-
*
|
|
71
|
-
* The following `falsy` values will be ignored:
|
|
72
|
-
* - `null`
|
|
73
|
-
* - `false`
|
|
74
|
-
* - `undefined`
|
|
75
|
-
*
|
|
76
|
-
* @hidden
|
|
77
|
-
*/
|
|
78
|
-
export interface PivotGridConfiguratorAction {
|
|
79
|
-
type: PIVOT_CONFIGURATOR_ACTION_TYPE;
|
|
80
|
-
payload: any;
|
|
81
|
-
override?: PivotGridConfiguratorEditorState;
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* @hidden
|
|
85
|
-
*/
|
|
86
|
-
export declare const usePivotConfiguratorEditor: (props: PivotGridConfiguratorEditorProps, target: any) => [PivotGridConfiguratorEditorState, (action: PivotGridConfiguratorAction, syntheticEvent?: React.SyntheticEvent) => void];
|
|
87
|
-
export {};
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { PivotGridAxis, Measure, Dimension } from '@progress/kendo-pivotgrid-common';
|
|
6
|
-
import { SortDescriptor, FilterDescriptor } from '@progress/kendo-data-query';
|
|
7
|
-
import { PivotGridProps } from '../PivotGrid';
|
|
8
|
-
import { PivotGridConfiguratorProps } from '../components/Configurator';
|
|
9
|
-
/**
|
|
10
|
-
* Represents the arguments of the [usePivotLocalDataService]({% slug api_pivotgrid_usepivotlocaldataservice %}) hook.
|
|
11
|
-
*/
|
|
12
|
-
export interface PivotLocalDataServiceArgs {
|
|
13
|
-
/**
|
|
14
|
-
* Represents the dimensions object of the [usePivotLocalDataService]({% slug api_pivotgrid_usepivotlocaldataservice %}) hook and the [PivotLocalDataService]({% slug api_pivotgrid_pivotlocaldataservice %}) component.
|
|
15
|
-
*/
|
|
16
|
-
dimensions: {
|
|
17
|
-
[key: string]: Dimension;
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* Represents the measures collection of the [usePivotLocalDataService]({% slug api_pivotgrid_usepivotlocaldataservice %}) hook and the [PivotLocalDataService]({% slug api_pivotgrid_pivotlocaldataservice %}) component.
|
|
21
|
-
*/
|
|
22
|
-
measures: Measure[];
|
|
23
|
-
/**
|
|
24
|
-
* Represents the local data of the [usePivotLocalDataService]({% slug api_pivotgrid_usepivotlocaldataservice %}) hook and the [PivotLocalDataService]({% slug api_pivotgrid_pivotlocaldataservice %}) component.
|
|
25
|
-
*/
|
|
26
|
-
data: any[];
|
|
27
|
-
/**
|
|
28
|
-
* Represents the default column axes configuration of the [usePivotLocalDataService]({% slug api_pivotgrid_usepivotlocaldataservice %}) hook and the [PivotLocalDataService]({% slug api_pivotgrid_pivotlocaldataservice %}) component.
|
|
29
|
-
*/
|
|
30
|
-
defaultColumnAxes: PivotGridAxis[];
|
|
31
|
-
/**
|
|
32
|
-
* Represents the default row axes configuration of the [usePivotLocalDataService]({% slug api_pivotgrid_usepivotlocaldataservice %}) hook and the [PivotLocalDataService]({% slug api_pivotgrid_pivotlocaldataservice %}) component.
|
|
33
|
-
*/
|
|
34
|
-
defaultRowAxes: PivotGridAxis[];
|
|
35
|
-
/**
|
|
36
|
-
* Represents the default measure axes configuration of the [usePivotLocalDataService]({% slug api_pivotgrid_usepivotlocaldataservice %}) hook and the [PivotLocalDataService]({% slug api_pivotgrid_pivotlocaldataservice %}) component.
|
|
37
|
-
*/
|
|
38
|
-
defaultMeasureAxes: PivotGridAxis[];
|
|
39
|
-
/**
|
|
40
|
-
* Represents the default sort descriptors of the [usePivotLocalDataService]({% slug api_pivotgrid_usepivotlocaldataservice %}) hook and the [PivotLocalDataService]({% slug api_pivotgrid_pivotlocaldataservice %}) component.
|
|
41
|
-
*/
|
|
42
|
-
defaultSort: SortDescriptor[];
|
|
43
|
-
/**
|
|
44
|
-
* Represents the default filter descriptors of the [usePivotLocalDataService]({% slug api_pivotgrid_usepivotlocaldataservice %}) hook and the [PivotLocalDataService]({% slug api_pivotgrid_pivotlocaldataservice %}) component.
|
|
45
|
-
*/
|
|
46
|
-
defaultFilter: FilterDescriptor[];
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Represents the `state` of the [usePivotLocalDataService]({% slug api_pivotgrid_usepivotlocaldataservice %}) hook and the [PivotLocalDataService]({% slug api_pivotgrid_pivotlocaldataservice %}) component.
|
|
50
|
-
*/
|
|
51
|
-
export interface PivotLocalDataServiceState {
|
|
52
|
-
/**
|
|
53
|
-
* Represents the `PivotGrid` component props.
|
|
54
|
-
*/
|
|
55
|
-
pivotProps: PivotGridProps;
|
|
56
|
-
/**
|
|
57
|
-
* Represents the `PivotGridConfigurator` component props.
|
|
58
|
-
*/
|
|
59
|
-
configuratorProps: PivotGridConfiguratorProps;
|
|
60
|
-
/**
|
|
61
|
-
* Represents an object containing additional state data.
|
|
62
|
-
*/
|
|
63
|
-
state: {
|
|
64
|
-
loading: boolean;
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* A [custom React hook](https://reactjs.org/docs/hooks-custom.html) which provides data-binding to local data.
|
|
69
|
-
*/
|
|
70
|
-
export declare const usePivotLocalDataService: (args: PivotLocalDataServiceArgs) => PivotLocalDataServiceState;
|
|
71
|
-
/**
|
|
72
|
-
* Represents the properties of the [PivotLocalDataService]({% slug api_pivotgrid_pivotlocaldataservice %}) component.
|
|
73
|
-
*/
|
|
74
|
-
export interface PivotLocalDataServiceProps extends PivotLocalDataServiceArgs {
|
|
75
|
-
/**
|
|
76
|
-
* Represents the children prop of the [PivotLocalDataService]({% slug api_pivotgrid_pivotlocaldataservice %}) component.
|
|
77
|
-
*/
|
|
78
|
-
children: (args: PivotLocalDataServiceState) => any;
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* A [React higher-order component](https://reactjs.org/docs/higher-order-components.html) which provides data-binding to local data.
|
|
82
|
-
*/
|
|
83
|
-
export declare const PivotLocalDataService: (props: PivotLocalDataServiceProps) => any;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { PivotGridAxis } from '@progress/kendo-pivotgrid-common';
|
|
6
|
-
import { SortDescriptor, FilterDescriptor } from '@progress/kendo-data-query';
|
|
7
|
-
import { PivotGridProps } from '../PivotGrid';
|
|
8
|
-
import { PivotGridConfiguratorProps } from '../components/Configurator';
|
|
9
|
-
/**
|
|
10
|
-
* Represents the arguments of the [usePivotOLAPService]({% slug api_pivotgrid_usepivotolapservice %}) hook.
|
|
11
|
-
*/
|
|
12
|
-
export interface PivotOLAPServiceArgs {
|
|
13
|
-
url: string;
|
|
14
|
-
cube: string;
|
|
15
|
-
catalog: string;
|
|
16
|
-
defaultColumnAxes?: PivotGridAxis[];
|
|
17
|
-
defaultRowAxes?: PivotGridAxis[];
|
|
18
|
-
defaultMeasureAxes?: PivotGridAxis[];
|
|
19
|
-
defaultSort?: SortDescriptor[];
|
|
20
|
-
defaultFilter?: FilterDescriptor[];
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Represents the `state` of the [usePivotOLAPService]({% slug api_pivotgrid_usepivotolapservice %}) hook and the [PivotOLAPService]({% slug api_pivotgrid_pivotolapservice %}) component.
|
|
24
|
-
*/
|
|
25
|
-
export interface PivotOLAPServiceState {
|
|
26
|
-
pivotProps: PivotGridProps;
|
|
27
|
-
configuratorProps: PivotGridConfiguratorProps;
|
|
28
|
-
state: {
|
|
29
|
-
loading: boolean;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* A [custom React hook](https://reactjs.org/docs/hooks-custom.html) which provides data-binding to an OLAP service.
|
|
34
|
-
*/
|
|
35
|
-
export declare const usePivotOLAPService: (args: PivotOLAPServiceArgs) => PivotOLAPServiceState;
|
|
36
|
-
/**
|
|
37
|
-
* Represents the properties of the [PivotOLAPService]({% slug api_pivotgrid_pivotolapservice %}) component.
|
|
38
|
-
*/
|
|
39
|
-
export interface PivotOLAPServiceProps extends PivotOLAPServiceArgs {
|
|
40
|
-
children: (args: PivotOLAPServiceState) => any;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* A [React higher-order component](https://reactjs.org/docs/higher-order-components.html) which provides data-binding to an OLAP service.
|
|
44
|
-
*/
|
|
45
|
-
export declare const PivotOLAPService: (props: PivotOLAPServiceProps) => any;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare const useVerticalScrollSync: (...elements: React.RefObject<HTMLElement>[]) => (event: React.SyntheticEvent) => void;
|
package/messages/index.d.ts
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export declare const emptyCellAriaLabel = "pivotgrid.emptyCellAriaLabel";
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export declare const fieldMenuReset = "pivotgrid.fieldMenuReset";
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
export declare const fieldMenuApply = "pivotgrid.fieldMenuApply";
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
export declare const configuratorTitle = "pivotgrid.configuratorTitle";
|
|
21
|
-
/**
|
|
22
|
-
* @hidden
|
|
23
|
-
*/
|
|
24
|
-
export declare const configuratorCancel = "pivotgrid.configuratorCancel";
|
|
25
|
-
/**
|
|
26
|
-
* @hidden
|
|
27
|
-
*/
|
|
28
|
-
export declare const configuratorApply = "pivotgrid.configuratorApply";
|
|
29
|
-
/**
|
|
30
|
-
* @hidden
|
|
31
|
-
*/
|
|
32
|
-
export declare const configuratorColumnsTitle = "pivotgrid.configuratorColumnsTitle";
|
|
33
|
-
/**
|
|
34
|
-
* @hidden
|
|
35
|
-
*/
|
|
36
|
-
export declare const configuratorRowsTitle = "pivotgrid.configuratorRowsTitle";
|
|
37
|
-
/**
|
|
38
|
-
* @hidden
|
|
39
|
-
*/
|
|
40
|
-
export declare const configuratorMeasuresTitle = "pivotgrid.configuratorMeasuresTitle";
|
|
41
|
-
/**
|
|
42
|
-
* @hidden
|
|
43
|
-
*/
|
|
44
|
-
export declare const configuratorEditorSearchTitle = "pivotgrid.configuratorEditorSearchTitle";
|
|
45
|
-
/**
|
|
46
|
-
* @hidden
|
|
47
|
-
*/
|
|
48
|
-
export declare const configuratorEditorSearchPlaceholder = "pivotgrid.configuratorEditorSearchPlaceholder";
|
|
49
|
-
/**
|
|
50
|
-
* @hidden
|
|
51
|
-
*/
|
|
52
|
-
export declare const configuratorMissingFields = "pivotgrid.configuratorMissingFields";
|
|
53
|
-
/**
|
|
54
|
-
* @hidden
|
|
55
|
-
*/
|
|
56
|
-
export declare const configuratorButtonLabel = "pivotgrid.configuratorButtonLabel";
|
|
57
|
-
/**
|
|
58
|
-
* @hidden
|
|
59
|
-
*/
|
|
60
|
-
export declare const messages: {
|
|
61
|
-
"pivotgrid.emptyCellAriaLabel": string;
|
|
62
|
-
"pivotgrid.fieldMenuReset": string;
|
|
63
|
-
"pivotgrid.fieldMenuApply": string;
|
|
64
|
-
"pivotgrid.configuratorCancel": string;
|
|
65
|
-
"pivotgrid.configuratorApply": string;
|
|
66
|
-
"pivotgrid.configuratorTitle": string;
|
|
67
|
-
"pivotgrid.configuratorEditorSearchTitle": string;
|
|
68
|
-
"pivotgrid.configuratorEditorSearchPlaceholder": string;
|
|
69
|
-
"pivotgrid.configuratorColumnsTitle": string;
|
|
70
|
-
"pivotgrid.configuratorRowsTitle": string;
|
|
71
|
-
"pivotgrid.configuratorMeasuresTitle": string;
|
|
72
|
-
"pivotgrid.configuratorButtonLabel": string;
|
|
73
|
-
"pivotgrid.configuratorMissingFields": string;
|
|
74
|
-
};
|
package/models/index.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { SortDescriptor, FilterDescriptor } from '@progress/kendo-data-query';
|
|
6
|
-
import { PivotGridField, PivotGridAxis } from '@progress/kendo-pivotgrid-common';
|
|
7
|
-
import { PivotGridHandle } from '../PivotGrid';
|
|
8
|
-
import { PivotGridConfiguratorHandle } from '../components/Configurator';
|
|
9
|
-
/**
|
|
10
|
-
* represents the `data` structure of the [TreeView]({% slug api_treeview_treeview %}) component inside the `PivotGrid`.
|
|
11
|
-
*/
|
|
12
|
-
export interface PivotGridTreeViewData {
|
|
13
|
-
checked?: boolean;
|
|
14
|
-
value?: string;
|
|
15
|
-
dataItem?: PivotGridField[];
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Represents the event arguments of the [`onColumnAxesChange`]({% slug api_pivotgrid_pivotgridprops %}#toc-oncolumnaxeschange) and [`onRowAxesChange`]({% slug api_pivotgrid_pivotgridprops %}#toc-onrowaxeschange) callbacks of the [`PivotGrid`]({% slug api_pivotgrid_pivotgrid %}) component.
|
|
19
|
-
*/
|
|
20
|
-
export interface PivotGridAxesChangeEvent {
|
|
21
|
-
value: PivotGridAxis[];
|
|
22
|
-
target: PivotGridHandle | null;
|
|
23
|
-
syntheticEvent: React.SyntheticEvent;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Represents the event arguments of the [`onColumnAxesChange`]({% slug api_pivotgrid_pivotgridconfiguratorprops %}#toc-oncolumnaxeschange), [`onRowAxesChange`]({% slug api_pivotgrid_pivotgridconfiguratorprops %}#toc-onrowaxeschange) and [`onMeasureAxesChange`]({% slug api_pivotgrid_pivotgridconfiguratorprops %}#toc-onmeasureaxeschange) callbacks of the [`PivotGridConfigurator`]({% slug api_pivotgrid_pivotgridconfigurator %}) component.
|
|
27
|
-
*/
|
|
28
|
-
export interface PivotGridConfiguratorAxesChangeEvent {
|
|
29
|
-
value: PivotGridAxis[];
|
|
30
|
-
target: PivotGridConfiguratorHandle | null;
|
|
31
|
-
syntheticEvent: React.SyntheticEvent;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Represents the event arguments of the [`onSortChange`]({% slug api_pivotgrid_pivotgridconfiguratorprops %}#toc-onsortchange) callbacks of the [`PivotGridConfigurator`]({% slug api_pivotgrid_pivotgridconfigurator %}) component.
|
|
35
|
-
*/
|
|
36
|
-
export interface PivotGridConfiguratorSortChangeEvent {
|
|
37
|
-
value: SortDescriptor[];
|
|
38
|
-
target: PivotGridConfiguratorHandle | null;
|
|
39
|
-
syntheticEvent: React.SyntheticEvent;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Represents the event arguments of the [`onFilterChange`]({% slug api_pivotgrid_pivotgridconfiguratorprops %}#toc-onfilterchange) callbacks of the [`PivotGridConfigurator`]({% slug api_pivotgrid_pivotgridconfigurator %}) component.
|
|
43
|
-
*/
|
|
44
|
-
export interface PivotGridConfiguratorFilterChangeEvent {
|
|
45
|
-
value: FilterDescriptor[];
|
|
46
|
-
target: PivotGridConfiguratorHandle | null;
|
|
47
|
-
syntheticEvent: React.SyntheticEvent;
|
|
48
|
-
}
|
package/package-metadata.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { PackageMetadata } from '@progress/kendo-licensing';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare const packageMetadata: PackageMetadata;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { PivotGridAxisFilterFieldsExpandChangeEvent, PivotGridAxisFilterFieldExpandEvent } from '../components/AxisFilterFieldsEditor';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export interface PivotGridConfiguratorEditorEventsContextType {
|
|
11
|
-
onAxisFilterFieldsExpandChange?: (event: PivotGridAxisFilterFieldsExpandChangeEvent) => void;
|
|
12
|
-
onAxisFilterFieldExpand?: (event: PivotGridAxisFilterFieldExpandEvent) => void;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
export declare const PivotGridConfiguratorEditorEventsContext: React.Context<PivotGridConfiguratorEditorEventsContextType>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { PivotGridConfiguratorAction, PivotGridConfiguratorEditorState } from '../hooks/usePivotConfiguratorEditor';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export declare const PivotGridConfiguratorEditorStateContext: React.Context<[PivotGridConfiguratorEditorState, (action: PivotGridConfiguratorAction, event?: React.SyntheticEvent) => void]>;
|
package/shared/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
export * from './PivotGridConfiguratorEditorEventsContext';
|
|
6
|
-
export * from './PivotGridConfiguratorEditorStateContext';
|
package/utils/index.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { AxisDescriptor, PivotDataItem, PivotGridField, Tuple } from '@progress/kendo-pivotgrid-common';
|
|
6
|
-
/**
|
|
7
|
-
* Generates suitable data for Charting visualization.
|
|
8
|
-
*
|
|
9
|
-
* @param rows - The PivotGrid's rows prop.
|
|
10
|
-
* @param columns - The PivotGrid's columns prop.
|
|
11
|
-
* @param data - The PivotGrid's data prop.
|
|
12
|
-
* @returns - Suitable data for Charting visualization.
|
|
13
|
-
*/
|
|
14
|
-
export declare const dataCells: (rows?: Tuple[], columns?: Tuple[], data?: PivotDataItem[]) => {
|
|
15
|
-
row: string[];
|
|
16
|
-
cells: PivotDataItem[];
|
|
17
|
-
}[];
|
|
18
|
-
/**
|
|
19
|
-
* @hidden
|
|
20
|
-
*/
|
|
21
|
-
export declare const recursiveMap: <I extends unknown, O extends unknown>(nodes?: I[], map?: {
|
|
22
|
-
[key: string]: Function;
|
|
23
|
-
}, parent?: null) => O[];
|
|
24
|
-
/**
|
|
25
|
-
* @hidden
|
|
26
|
-
*/
|
|
27
|
-
export declare const flatMap: <T extends unknown>(nodes?: T[]) => T[];
|
|
28
|
-
/**
|
|
29
|
-
* @hidden
|
|
30
|
-
*/
|
|
31
|
-
export declare const extractDefaultFields: (columns?: AxisDescriptor[]) => unknown[];
|
|
32
|
-
/**
|
|
33
|
-
* @hidden
|
|
34
|
-
*/
|
|
35
|
-
export declare const generateKey: (args?: string[]) => string;
|
|
36
|
-
/**
|
|
37
|
-
* @hidden
|
|
38
|
-
*/
|
|
39
|
-
export declare const generateDataKey: (rows: any, columns: any) => string;
|
|
40
|
-
/**
|
|
41
|
-
* @hidden
|
|
42
|
-
*/
|
|
43
|
-
export declare const findFilter: (filter: any[] | undefined, member: any, operator?: any) => any;
|
|
44
|
-
/**
|
|
45
|
-
* @hidden
|
|
46
|
-
*/
|
|
47
|
-
export declare const findFilters: (filter: any[] | undefined, member: any, operator?: any) => any;
|
|
48
|
-
/**
|
|
49
|
-
* @hidden
|
|
50
|
-
*/
|
|
51
|
-
export declare const compareFields: (a: PivotGridField, b: PivotGridField) => boolean;
|