@progress/kendo-react-pivotgrid 5.4.0-dev.202205200719 → 5.4.0-dev.202206061009
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/dist/cdn/js/kendo-react-pivotgrid.js +1 -15
- package/dist/es/PivotGrid.d.ts +1 -1
- package/dist/es/PivotGrid.js +4 -4
- package/dist/es/components/AxesEditor.d.ts +2 -2
- package/dist/es/components/AxesEditor.js +2 -2
- package/dist/es/components/AxisEditor.d.ts +1 -1
- package/dist/es/components/AxisEditor.js +12 -3
- package/dist/es/components/AxisFilterFieldsEditor.d.ts +1 -1
- package/dist/es/components/AxisFilterFieldsEditor.js +1 -1
- package/dist/es/components/Cell.d.ts +1 -1
- package/dist/es/components/Column.d.ts +1 -1
- package/dist/es/components/Configurator.d.ts +1 -1
- package/dist/es/components/Configurator.js +1 -1
- package/dist/es/components/ConfiguratorButton.d.ts +1 -1
- package/dist/es/components/ConfiguratorEditor.js +4 -4
- package/dist/es/components/Container.d.ts +1 -1
- package/dist/es/components/FieldsEditor.d.ts +1 -1
- package/dist/es/components/FieldsEditor.js +12 -3
- package/dist/es/components/HeaderCell.d.ts +2 -2
- package/dist/es/components/HeaderCell.js +1 -1
- package/dist/es/components/Row.d.ts +1 -1
- package/dist/es/hooks/useExpansion.d.ts +1 -1
- package/dist/es/hooks/useExpansion.js +13 -4
- package/dist/es/hooks/useHeaders.d.ts +5 -1
- package/dist/es/hooks/useHeaders.js +1 -1
- package/dist/es/hooks/useHorizontalScrollSync.d.ts +1 -1
- package/dist/es/hooks/usePivotConfiguratorEditor.d.ts +1 -2
- package/dist/es/hooks/usePivotConfiguratorEditor.js +1 -1
- package/dist/es/hooks/usePivotLocalDataService.js +8 -3
- package/dist/es/hooks/usePivotOLAPService.js +16 -10
- package/dist/es/hooks/useVerticalScrollSync.d.ts +1 -1
- package/dist/es/messages/index.d.ts +12 -12
- package/dist/es/models/index.js +1 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/shared/PivotGridConfiguratorEditorStateContext.d.ts +1 -1
- package/dist/es/utils/index.d.ts +6 -6
- package/dist/es/utils/index.js +12 -3
- package/dist/npm/PivotGrid.d.ts +1 -1
- package/dist/npm/PivotGrid.js +26 -25
- package/dist/npm/components/AxesEditor.d.ts +2 -2
- package/dist/npm/components/AxesEditor.js +5 -4
- package/dist/npm/components/AxisEditor.d.ts +1 -1
- package/dist/npm/components/AxisEditor.js +24 -14
- package/dist/npm/components/AxisFilterFieldsEditor.d.ts +1 -1
- package/dist/npm/components/AxisFilterFieldsEditor.js +14 -13
- package/dist/npm/components/Cell.d.ts +1 -1
- package/dist/npm/components/Cell.js +3 -2
- package/dist/npm/components/Column.d.ts +1 -1
- package/dist/npm/components/Column.js +2 -1
- package/dist/npm/components/Configurator.d.ts +1 -1
- package/dist/npm/components/Configurator.js +9 -8
- package/dist/npm/components/ConfiguratorButton.d.ts +1 -1
- package/dist/npm/components/ConfiguratorButton.js +5 -4
- package/dist/npm/components/ConfiguratorEditor.js +12 -11
- package/dist/npm/components/Container.d.ts +1 -1
- package/dist/npm/components/Container.js +2 -1
- package/dist/npm/components/FieldsEditor.d.ts +1 -1
- package/dist/npm/components/FieldsEditor.js +22 -12
- package/dist/npm/components/HeaderCell.d.ts +2 -2
- package/dist/npm/components/HeaderCell.js +5 -4
- package/dist/npm/components/Row.d.ts +1 -1
- package/dist/npm/components/Row.js +3 -2
- package/dist/npm/hooks/index.js +16 -5
- package/dist/npm/hooks/useExpansion.d.ts +1 -1
- package/dist/npm/hooks/useExpansion.js +16 -5
- package/dist/npm/hooks/useHeaders.d.ts +5 -1
- package/dist/npm/hooks/useHeaders.js +5 -3
- package/dist/npm/hooks/useHorizontalScrollSync.d.ts +1 -1
- package/dist/npm/hooks/useHorizontalScrollSync.js +3 -1
- package/dist/npm/hooks/usePivotConfiguratorEditor.d.ts +1 -2
- package/dist/npm/hooks/usePivotConfiguratorEditor.js +6 -4
- package/dist/npm/hooks/usePivotLocalDataService.js +19 -11
- package/dist/npm/hooks/usePivotOLAPService.js +30 -21
- package/dist/npm/hooks/useVerticalScrollSync.d.ts +1 -1
- package/dist/npm/hooks/useVerticalScrollSync.js +3 -1
- package/dist/npm/main.js +23 -22
- package/dist/npm/messages/index.d.ts +12 -12
- package/dist/npm/messages/index.js +2 -1
- package/dist/npm/package-metadata.js +2 -1
- package/dist/npm/shared/PivotGridConfiguratorEditorEventsContext.js +1 -0
- package/dist/npm/shared/PivotGridConfiguratorEditorStateContext.d.ts +1 -1
- package/dist/npm/shared/PivotGridConfiguratorEditorStateContext.js +1 -0
- package/dist/npm/shared/index.js +16 -5
- package/dist/npm/utils/index.d.ts +6 -6
- package/dist/npm/utils/index.js +29 -11
- package/dist/systemjs/kendo-react-pivotgrid.js +1 -1
- package/package.json +11 -11
package/dist/es/PivotGrid.d.ts
CHANGED
|
@@ -161,4 +161,4 @@ export interface PivotGridHandle {
|
|
|
161
161
|
/**
|
|
162
162
|
* Represents the [KendoReact PivotGrid component]({% slug api_pivotgrid_pivotgridprops %}).
|
|
163
163
|
*/
|
|
164
|
-
export declare const PivotGrid: React.ForwardRefExoticComponent<PivotGridProps & React.RefAttributes<PivotGridHandle>>;
|
|
164
|
+
export declare const PivotGrid: React.ForwardRefExoticComponent<PivotGridProps & React.RefAttributes<PivotGridHandle | null>>;
|
package/dist/es/PivotGrid.js
CHANGED
|
@@ -27,7 +27,7 @@ import { toColumns, toRows, toTree, toData } from '@progress/kendo-pivotgrid-com
|
|
|
27
27
|
*/
|
|
28
28
|
export var PivotGrid = React.forwardRef(function (props, ref) {
|
|
29
29
|
validatePackage(packageMetadata);
|
|
30
|
-
var _a = __assign({}, defaultProps, props), rows = _a.rows, rowAxes = _a.rowAxes, columns = _a.columns, columnAxes = _a.columnAxes, data = _a.data;
|
|
30
|
+
var _a = __assign(__assign({}, defaultProps), props), rows = _a.rows, rowAxes = _a.rowAxes, columns = _a.columns, columnAxes = _a.columnAxes, data = _a.data;
|
|
31
31
|
var element = React.useRef(null);
|
|
32
32
|
var target = React.useRef(null);
|
|
33
33
|
React.useImperativeHandle(target, function () { return ({ props: props, element: element.current }); });
|
|
@@ -112,14 +112,14 @@ export var PivotGrid = React.forwardRef(function (props, ref) {
|
|
|
112
112
|
if (element.current && columnHeadersTable.current) {
|
|
113
113
|
// Reset gridTemplateRows before getting the new size
|
|
114
114
|
element.current.style.gridTemplateRows = '';
|
|
115
|
-
element.current.style.gridTemplateRows = columnHeadersTable.current.offsetHeight
|
|
115
|
+
element.current.style.gridTemplateRows = "".concat(columnHeadersTable.current.offsetHeight, "px 1fr");
|
|
116
116
|
}
|
|
117
117
|
}, []);
|
|
118
118
|
var setColumnsTemplate = React.useCallback(function () {
|
|
119
119
|
if (element.current && rowHeadersTable.current) {
|
|
120
120
|
// Reset gridTemplateColumns before getting the new size
|
|
121
121
|
element.current.style.gridTemplateColumns = '';
|
|
122
|
-
element.current.style.gridTemplateColumns = rowHeadersTable.current.offsetWidth
|
|
122
|
+
element.current.style.gridTemplateColumns = "".concat(rowHeadersTable.current.offsetWidth, "px 1fr");
|
|
123
123
|
}
|
|
124
124
|
}, []);
|
|
125
125
|
React.useEffect(function () {
|
|
@@ -180,7 +180,7 @@ export var PivotGrid = React.forwardRef(function (props, ref) {
|
|
|
180
180
|
React.createElement("div", { ref: valuesHeadersContainer, className: "k-pivotgrid-values", onScroll: handleValuesContainerScroll },
|
|
181
181
|
React.createElement("table", { className: "k-pivotgrid-table" },
|
|
182
182
|
React.createElement("colgroup", null, dataColumns),
|
|
183
|
-
React.createElement("tbody", { className: "k-pivotgrid-tbody" }, measures.map(function (row, rowId) { return (React.createElement(DataRowComponent, __assign({ key: generateKey(rowHeaderLeafs[rowId].path) }, RowProps, { path: rowHeaderLeafs[rowId].path }), row.cells.map(function (cell, cellId) { return (React.createElement(CellComponent, __assign({ key: ""
|
|
183
|
+
React.createElement("tbody", { className: "k-pivotgrid-tbody" }, measures.map(function (row, rowId) { return (React.createElement(DataRowComponent, __assign({ key: generateKey(rowHeaderLeafs[rowId].path) }, RowProps, { path: rowHeaderLeafs[rowId].path }), row.cells.map(function (cell, cellId) { return (React.createElement(CellComponent, __assign({ key: "".concat(generateDataKey(cell.rowTuple.members, cell.columnTuple.members)), "data-key": "".concat(generateDataKey(cell.rowTuple.members, cell.columnTuple.members)) }, CellProps, { rowPath: cell.rowTuple.members.map(function (m) { return m.name; }), columnPath: cell.columnTuple.members.map(function (m) { return m.name; }), dataItem: cell, total: rowHeaderLeafs[rowId].total || columnHeaderLeafs[cellId].total }), (cell && cell.data && cell.data.fmtValue) ? cell.data.fmtValue : '\u00A0')); }))); }))))));
|
|
184
184
|
});
|
|
185
185
|
var defaultProps = {
|
|
186
186
|
rowAxes: [],
|
|
@@ -31,7 +31,7 @@ export interface PivotGridAxesEditorProps extends FieldProps {
|
|
|
31
31
|
* @hidden
|
|
32
32
|
*/
|
|
33
33
|
export declare const PivotGridConfiguratorEditorAxesContext: React.Context<{
|
|
34
|
-
axes: string;
|
|
34
|
+
axes: string | null;
|
|
35
35
|
}>;
|
|
36
36
|
/**
|
|
37
37
|
* Represents the object which is passed to the [`ref`](https://reactjs.org/docs/refs-and-the-dom.html) callback of the PivotGridAxesEditor component.
|
|
@@ -43,4 +43,4 @@ export interface PivotGridAxesEditorHandle {
|
|
|
43
43
|
/**
|
|
44
44
|
* Represents the [KendoReact PivotGridAxesEditor component]({% slug api_pivotgrid_pivotgridaxeseditorprops %}).
|
|
45
45
|
*/
|
|
46
|
-
export declare const PivotGridAxesEditor: React.ForwardRefExoticComponent<Pick<PivotGridAxesEditorProps,
|
|
46
|
+
export declare const PivotGridAxesEditor: React.ForwardRefExoticComponent<Pick<PivotGridAxesEditorProps, keyof PivotGridAxesEditorProps> & React.RefAttributes<PivotGridAxesEditorHandle | null>>;
|
|
@@ -21,7 +21,7 @@ export var PivotGridConfiguratorEditorAxesContext = React.createContext({ axes:
|
|
|
21
21
|
* Represents the [KendoReact PivotGridAxesEditor component]({% slug api_pivotgrid_pivotgridaxeseditorprops %}).
|
|
22
22
|
*/
|
|
23
23
|
export var PivotGridAxesEditor = React.forwardRef(function (props, ref) {
|
|
24
|
-
var _a = __assign({}, defaultProps, props), value = _a.value, field = _a.field;
|
|
24
|
+
var _a = __assign(__assign({}, defaultProps), props), value = _a.value, field = _a.field;
|
|
25
25
|
var chipList = React.useRef(null);
|
|
26
26
|
var element = React.useRef(null);
|
|
27
27
|
var target = React.useRef(null);
|
|
@@ -31,7 +31,7 @@ export var PivotGridAxesEditor = React.forwardRef(function (props, ref) {
|
|
|
31
31
|
React.useImperativeHandle(ref, function () { return target.current; });
|
|
32
32
|
var data = value
|
|
33
33
|
.filter(function (v) { return v.name.length === 1 && v.name.every(function (n) { return n.indexOf('&') === -1; }); })
|
|
34
|
-
.map(function (i) { return (__assign({}, i, { text: String(i.name) })); });
|
|
34
|
+
.map(function (i) { return (__assign(__assign({}, i), { text: String(i.name) })); });
|
|
35
35
|
return (React.createElement(PivotGridConfiguratorEditorAxesContext.Provider, { value: { axes: field } },
|
|
36
36
|
React.createElement(ChipListComponent, __assign({ ref: canUseRef(ChipListComponent) ? chipList : undefined, textField: "text", valueField: "name", data: data, chip: PivotGridAxisEditor, style: { position: 'relative' }, className: props.className, selection: "none" }, ChipListProps))));
|
|
37
37
|
});
|
|
@@ -49,4 +49,4 @@ export interface PivotGridAxisEditorHandle {
|
|
|
49
49
|
/**
|
|
50
50
|
* Represents the [KendoReact PivotGridAxisEditor component]({% slug api_pivotgrid_pivotgridaxiseditorprops %}).
|
|
51
51
|
*/
|
|
52
|
-
export declare const PivotGridAxisEditor: React.ForwardRefExoticComponent<PivotGridAxisEditorProps & React.RefAttributes<PivotGridAxisEditorHandle>>;
|
|
52
|
+
export declare const PivotGridAxisEditor: React.ForwardRefExoticComponent<PivotGridAxisEditorProps & React.RefAttributes<PivotGridAxisEditorHandle | null>>;
|
|
@@ -9,6 +9,15 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
13
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
14
|
+
if (ar || !(i in from)) {
|
|
15
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
16
|
+
ar[i] = from[i];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
20
|
+
};
|
|
12
21
|
import * as React from 'react';
|
|
13
22
|
import { compareAxes } from '@progress/kendo-pivotgrid-common';
|
|
14
23
|
import { useDraggable, useCustomComponent, canUseRef } from '@progress/kendo-react-common';
|
|
@@ -47,7 +56,7 @@ export var PivotGridAxisEditor = React.forwardRef(function (props, ref) {
|
|
|
47
56
|
if (filter.length) {
|
|
48
57
|
dispatchState({
|
|
49
58
|
type: PIVOT_CONFIGURATOR_ACTION.setFilter,
|
|
50
|
-
payload: (inFilter || [])
|
|
59
|
+
payload: __spreadArray(__spreadArray([], (inFilter || []), true), filter.reduce(function (acc, current) { return __spreadArray(__spreadArray([], acc, true), current.filters.filter(function (f) { return f.value; }), true); }, []), true)
|
|
51
60
|
}, syntheticEvent);
|
|
52
61
|
}
|
|
53
62
|
else {
|
|
@@ -73,7 +82,7 @@ export var PivotGridAxisEditor = React.forwardRef(function (props, ref) {
|
|
|
73
82
|
return;
|
|
74
83
|
}
|
|
75
84
|
if (element.current) {
|
|
76
|
-
element.current.style.transform = "translate("
|
|
85
|
+
element.current.style.transform = "translate(".concat(event.clientX - initialX.current, "px, ").concat(event.clientY - initialY.current, "px)");
|
|
77
86
|
}
|
|
78
87
|
setDrag(true);
|
|
79
88
|
dispatchState({ type: PIVOT_CONFIGURATOR_ACTION.setDragItem, payload: props.dataItem });
|
|
@@ -82,7 +91,7 @@ export var PivotGridAxisEditor = React.forwardRef(function (props, ref) {
|
|
|
82
91
|
setDrag(false);
|
|
83
92
|
if (state.dragItem) {
|
|
84
93
|
if (element.current) {
|
|
85
|
-
element.current.style.transform =
|
|
94
|
+
element.current.style.transform = '';
|
|
86
95
|
}
|
|
87
96
|
dispatchState({ type: PIVOT_CONFIGURATOR_ACTION.drop, payload: props.dataItem });
|
|
88
97
|
}
|
|
@@ -111,4 +111,4 @@ export interface PivotGridAxisFilterFieldsEditorHandle {
|
|
|
111
111
|
/**
|
|
112
112
|
* Represents the [KendoReact PivotGridAxisFilterFieldsEditor component]({% slug api_pivotgrid_pivotgridaxisfilterfieldseditorprops %}).
|
|
113
113
|
*/
|
|
114
|
-
export declare const PivotGridAxisFilterFieldsEditor: React.ForwardRefExoticComponent<PivotGridAxisFilterFieldsEditorProps & React.RefAttributes<PivotGridAxisFilterFieldsEditorHandle>>;
|
|
114
|
+
export declare const PivotGridAxisFilterFieldsEditor: React.ForwardRefExoticComponent<PivotGridAxisFilterFieldsEditorProps & React.RefAttributes<PivotGridAxisFilterFieldsEditorHandle | null>>;
|
|
@@ -25,7 +25,7 @@ import { PivotGridConfiguratorEditorEventsContext, PivotGridConfiguratorEditorSt
|
|
|
25
25
|
* Represents the [KendoReact PivotGridAxisFilterFieldsEditor component]({% slug api_pivotgrid_pivotgridaxisfilterfieldseditorprops %}).
|
|
26
26
|
*/
|
|
27
27
|
export var PivotGridAxisFilterFieldsEditor = React.forwardRef(function (props, ref) {
|
|
28
|
-
var _a = __assign({}, defaultProps, props), data = _a.data, dataItem = _a.dataItem, defaultFilter = _a.defaultFilter;
|
|
28
|
+
var _a = __assign(__assign({}, defaultProps), props), data = _a.data, dataItem = _a.dataItem, defaultFilter = _a.defaultFilter;
|
|
29
29
|
var element = React.useRef(null);
|
|
30
30
|
var target = React.useRef(null);
|
|
31
31
|
var localization = useLocalization();
|
|
@@ -54,4 +54,4 @@ export interface PivotGridCellProps extends KendoMouse<PivotGridCellHandle, HTML
|
|
|
54
54
|
/**
|
|
55
55
|
* Represents the [KendoReact PivotGridCell component]({% slug api_pivotgrid_pivotgridcellprops %}).
|
|
56
56
|
*/
|
|
57
|
-
export declare const PivotGridCell: React.ForwardRefExoticComponent<PivotGridCellProps & React.RefAttributes<PivotGridCellHandle>>;
|
|
57
|
+
export declare const PivotGridCell: React.ForwardRefExoticComponent<PivotGridCellProps & React.RefAttributes<PivotGridCellHandle | null>>;
|
|
@@ -39,4 +39,4 @@ export interface PivotGridColumnProps extends KendoMouse<PivotGridColumnHandle,
|
|
|
39
39
|
/**
|
|
40
40
|
* Represents the [KendoReact PivotGridColumn component]({% slug api_pivotgrid_pivotgridcolumnprops %}).
|
|
41
41
|
*/
|
|
42
|
-
export declare const PivotGridColumn: React.ForwardRefExoticComponent<PivotGridColumnProps & React.RefAttributes<PivotGridColumnHandle>>;
|
|
42
|
+
export declare const PivotGridColumn: React.ForwardRefExoticComponent<PivotGridColumnProps & React.RefAttributes<PivotGridColumnHandle | null>>;
|
|
@@ -122,4 +122,4 @@ export interface PivotGridConfiguratorHandle {
|
|
|
122
122
|
/**
|
|
123
123
|
* Represents the [KendoReact PivotGridConfigurator component]({% slug api_pivotgrid_pivotgridconfiguratorprops %}).
|
|
124
124
|
*/
|
|
125
|
-
export declare const PivotGridConfigurator: React.ForwardRefExoticComponent<PivotGridConfiguratorProps & React.RefAttributes<PivotGridConfiguratorHandle>>;
|
|
125
|
+
export declare const PivotGridConfigurator: React.ForwardRefExoticComponent<PivotGridConfiguratorProps & React.RefAttributes<PivotGridConfiguratorHandle | null>>;
|
|
@@ -20,7 +20,7 @@ import { messages, configuratorTitle, configuratorCancel, configuratorApply } fr
|
|
|
20
20
|
* Represents the [KendoReact PivotGridConfigurator component]({% slug api_pivotgrid_pivotgridconfiguratorprops %}).
|
|
21
21
|
*/
|
|
22
22
|
export var PivotGridConfigurator = React.forwardRef(function (props, ref) {
|
|
23
|
-
var _a = __assign({}, defaultProps, props), horizontal = _a.horizontal, data = _a.data, rowAxes = _a.rowAxes, columnAxes = _a.columnAxes, measureAxes = _a.measureAxes;
|
|
23
|
+
var _a = __assign(__assign({}, defaultProps), props), horizontal = _a.horizontal, data = _a.data, rowAxes = _a.rowAxes, columnAxes = _a.columnAxes, measureAxes = _a.measureAxes;
|
|
24
24
|
var element = React.useRef(null);
|
|
25
25
|
var target = React.useRef(null);
|
|
26
26
|
var form = React.useRef(null);
|
|
@@ -37,4 +37,4 @@ export interface PivotGridConfiguratorButtonHandle {
|
|
|
37
37
|
/**
|
|
38
38
|
* Represents the [KendoReact PivotGridConfiguratorButton component]({% slug api_pivotgrid_pivotgridconfiguratorbuttonprops %}).
|
|
39
39
|
*/
|
|
40
|
-
export declare const PivotGridConfiguratorButton: React.ForwardRefExoticComponent<PivotGridConfiguratorButtonProps & React.RefAttributes<PivotGridConfiguratorButtonHandle>>;
|
|
40
|
+
export declare const PivotGridConfiguratorButton: React.ForwardRefExoticComponent<PivotGridConfiguratorButtonProps & React.RefAttributes<PivotGridConfiguratorButtonHandle | null>>;
|
|
@@ -27,11 +27,11 @@ export var PivotGridConfiguratorEditor = React.forwardRef(function (props, ref)
|
|
|
27
27
|
var _a = useCustomComponent(props.fieldsLabel || defaultProps.fieldsLabel), FieldsLabelComponent = _a[0], FieldsLabelProps = _a[1];
|
|
28
28
|
var _b = useCustomComponent(props.fieldsEditor || defaultProps.fieldsEditor), FieldsEditorComponent = _b[0], FieldsEditorProps = _b[1];
|
|
29
29
|
var _c = useCustomComponent(props.columnAxesLabel || defaultProps.columnAxesLabel), ColumnAxesLabelComponent = _c[0], ColumnAxesLabelProps = _c[1];
|
|
30
|
-
var _d = useCustomComponent(props.columnAxesEditor || defaultProps.columnAxesEditor), ColumnAxesEditorComponent = _d[0], ColumnAxesEditorProps = _d[1];
|
|
30
|
+
var _d = useCustomComponent((props.columnAxesEditor || defaultProps.columnAxesEditor)), ColumnAxesEditorComponent = _d[0], ColumnAxesEditorProps = _d[1];
|
|
31
31
|
var _e = useCustomComponent(props.rowAxesLabel || defaultProps.rowAxesLabel), RowAxesLabelComponent = _e[0], RowAxesLabelProps = _e[1];
|
|
32
|
-
var _f = useCustomComponent(props.rowAxesEditor || defaultProps.rowAxesEditor), RowAxesEditorComponent = _f[0], RowAxesEditorProps = _f[1];
|
|
32
|
+
var _f = useCustomComponent((props.rowAxesEditor || defaultProps.rowAxesEditor)), RowAxesEditorComponent = _f[0], RowAxesEditorProps = _f[1];
|
|
33
33
|
var _g = useCustomComponent(props.measureAxesLabel || defaultProps.measureAxesLabel), MeasureAxesLabelComponent = _g[0], MeasureAxesLabelProps = _g[1];
|
|
34
|
-
var _h = useCustomComponent(props.measureAxesEditor || defaultProps.measureAxesEditor), MeasureAxesEditorComponent = _h[0], MeasureAxesEditorProps = _h[1];
|
|
34
|
+
var _h = useCustomComponent((props.measureAxesEditor || defaultProps.measureAxesEditor)), MeasureAxesEditorComponent = _h[0], MeasureAxesEditorProps = _h[1];
|
|
35
35
|
var element = React.useRef(null);
|
|
36
36
|
var target = React.useRef(null);
|
|
37
37
|
var localization = useLocalization();
|
|
@@ -146,7 +146,7 @@ export var PivotGridConfiguratorEditor = React.forwardRef(function (props, ref)
|
|
|
146
146
|
React.createElement(PivotGridConfiguratorEditorStateContext.Provider, { value: [state, dispatchState] },
|
|
147
147
|
React.createElement(Container, __assign({}, ContainerProps),
|
|
148
148
|
React.createElement("div", { className: "k-form-field" },
|
|
149
|
-
React.createElement(FieldsLabelComponent, __assign({}, FieldsLabelProps), localization.toLanguageString(configuratorEditorSearchTitle, messages[configuratorEditorSearchTitle]))),
|
|
149
|
+
React.createElement(FieldsLabelComponent, __assign({ name: "", component: Label }, FieldsLabelProps), localization.toLanguageString(configuratorEditorSearchTitle, messages[configuratorEditorSearchTitle]))),
|
|
150
150
|
React.createElement("div", { className: "k-form-field" },
|
|
151
151
|
React.createElement("div", { className: "k-fields-list-wrapper" },
|
|
152
152
|
React.createElement(FieldsEditorComponent, __assign({ data: props.data, onExpand: handleFieldsEditorFieldExpand, onCheck: handleFieldsEditorFieldCheck, columnAxes: state.columnAxes, rowAxes: state.rowAxes, measureAxes: state.measureAxes }, FieldsEditorProps))))),
|
|
@@ -43,4 +43,4 @@ export interface PivotGridContainerHandle {
|
|
|
43
43
|
/**
|
|
44
44
|
* Represents the [KendoReact PivotGridContainer component]({% slug api_pivotgrid_pivotgridcontainerprops %}).
|
|
45
45
|
*/
|
|
46
|
-
export declare const PivotGridContainer: React.ForwardRefExoticComponent<PivotGridContainerProps & React.RefAttributes<PivotGridContainerHandle>>;
|
|
46
|
+
export declare const PivotGridContainer: React.ForwardRefExoticComponent<PivotGridContainerProps & React.RefAttributes<PivotGridContainerHandle | null>>;
|
|
@@ -71,4 +71,4 @@ export interface PivotGridFieldsEditorHandle {
|
|
|
71
71
|
/**
|
|
72
72
|
* Represents the [KendoReact PivotGridFieldsEditor component]({% slug api_pivotgrid_pivotgridfieldseditorprops %}).
|
|
73
73
|
*/
|
|
74
|
-
export declare const PivotGridFieldsEditor: React.ForwardRefExoticComponent<PivotGridFieldsEditorProps & React.RefAttributes<PivotGridFieldsEditorHandle>>;
|
|
74
|
+
export declare const PivotGridFieldsEditor: React.ForwardRefExoticComponent<PivotGridFieldsEditorProps & React.RefAttributes<PivotGridFieldsEditorHandle | null>>;
|
|
@@ -9,6 +9,15 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
13
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
14
|
+
if (ar || !(i in from)) {
|
|
15
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
16
|
+
ar[i] = from[i];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
20
|
+
};
|
|
12
21
|
import * as React from 'react';
|
|
13
22
|
import { TreeView as KendoReactTreeView, TreeViewItemPropsContext } from '@progress/kendo-react-treeview';
|
|
14
23
|
import { useCustomComponent, canUseRef } from '@progress/kendo-react-common';
|
|
@@ -18,7 +27,7 @@ import { recursiveMap, flatMap, extractDefaultFields } from '../utils';
|
|
|
18
27
|
* Represents the [KendoReact PivotGridFieldsEditor component]({% slug api_pivotgrid_pivotgridfieldseditorprops %}).
|
|
19
28
|
*/
|
|
20
29
|
export var PivotGridFieldsEditor = React.forwardRef(function (props, ref) {
|
|
21
|
-
var _a = __assign({}, defaultProps, props), data = _a.data, rowAxes = _a.rowAxes, columnAxes = _a.columnAxes, measureAxes = _a.measureAxes, onExpand = _a.onExpand, onCheck = _a.onCheck;
|
|
30
|
+
var _a = __assign(__assign({}, defaultProps), props), data = _a.data, rowAxes = _a.rowAxes, columnAxes = _a.columnAxes, measureAxes = _a.measureAxes, onExpand = _a.onExpand, onCheck = _a.onCheck;
|
|
22
31
|
var treeView = React.useRef(null);
|
|
23
32
|
var target = React.useRef(null);
|
|
24
33
|
var _b = useCustomComponent(props.treeView || defaultProps.treeView), TreeViewComponent = _b[0], TreeViewProps = _b[1];
|
|
@@ -30,7 +39,7 @@ export var PivotGridFieldsEditor = React.forwardRef(function (props, ref) {
|
|
|
30
39
|
var rowHierarchies = extractDefaultFields(rowAxes);
|
|
31
40
|
var measureHierarchies = extractDefaultFields(measureAxes);
|
|
32
41
|
var fieldsFlatMap = flatMap(data);
|
|
33
|
-
var checked = fieldsFlatMap.filter(function (f) { return columnHierarchies
|
|
42
|
+
var checked = fieldsFlatMap.filter(function (f) { return __spreadArray(__spreadArray(__spreadArray([], columnHierarchies, true), rowHierarchies, true), measureHierarchies, true).some(function (h) { return (h === f.uniqueName || h === f.defaultHierarchy); }); });
|
|
34
43
|
var map = {
|
|
35
44
|
caption: function (node) { return node.dataItem.caption; },
|
|
36
45
|
id: function (node) { return node.dataItem.uniqueName; },
|
|
@@ -65,7 +74,7 @@ export var PivotGridFieldsEditor = React.forwardRef(function (props, ref) {
|
|
|
65
74
|
}
|
|
66
75
|
};
|
|
67
76
|
var fields = recursiveMap(props.data, map);
|
|
68
|
-
return (React.createElement(TreeViewItemPropsContext.Provider, { value: function (p) { return (__assign({}, p, { checkboxes: p.item.selectable })); } }, (fields && fields.length)
|
|
77
|
+
return (React.createElement(TreeViewItemPropsContext.Provider, { value: function (p) { return (__assign(__assign({}, p), { checkboxes: p.item.selectable })); } }, (fields && fields.length)
|
|
69
78
|
? React.createElement(TreeViewComponent, __assign({ ref: canUseRef(TreeViewComponent) ? treeView : undefined, data: fields, checkboxes: true, onExpandChange: handleExpand, onCheckChange: handleCheck, textField: 'caption', expandIcons: true, hasChildrenField: "hasChildren", checkIndeterminateField: "checkIndeterminate", childrenField: "children" }, TreeViewProps))
|
|
70
79
|
: (React.createElement(NoDataComponent, __assign({}, NoDataProps)))));
|
|
71
80
|
});
|
|
@@ -84,9 +84,9 @@ export interface PivotGridHeaderCellProps extends KendoMouse<PivotGridHeaderCell
|
|
|
84
84
|
/**
|
|
85
85
|
* A callback, fired whenever the `icon` is clicked.
|
|
86
86
|
*/
|
|
87
|
-
onIconClick?: (args: KendoMouseEvent<PivotGridHeaderCellHandle
|
|
87
|
+
onIconClick?: (args: KendoMouseEvent<PivotGridHeaderCellHandle, HTMLSpanElement>) => void;
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
90
90
|
* Represents the [KendoReact PivotGridHeaderCell component]({% slug api_pivotgrid_pivotgridheadercellprops %}).
|
|
91
91
|
*/
|
|
92
|
-
export declare const PivotGridHeaderCell: React.ForwardRefExoticComponent<PivotGridHeaderCellProps & React.RefAttributes<PivotGridHeaderCellHandle>>;
|
|
92
|
+
export declare const PivotGridHeaderCell: React.ForwardRefExoticComponent<PivotGridHeaderCellProps & React.RefAttributes<PivotGridHeaderCellHandle | null>>;
|
|
@@ -40,7 +40,7 @@ export var PivotGridHeaderCell = React.forwardRef(function (props, ref) {
|
|
|
40
40
|
'k-pivotgrid-expanded': props.expanded,
|
|
41
41
|
'k-first': props.first
|
|
42
42
|
}, props.className) }),
|
|
43
|
-
props.expandable && (React.createElement(IconComponent, __assign({}, IconProps, { onClick: handleIconClick, name: "arrow-chevron-"
|
|
43
|
+
props.expandable && (React.createElement(IconComponent, __assign({}, IconProps, { onClick: handleIconClick, name: "arrow-chevron-".concat(props.expanded ? 'up' : 'down') }))),
|
|
44
44
|
props.children));
|
|
45
45
|
});
|
|
46
46
|
var defaultProps = {
|
|
@@ -39,4 +39,4 @@ export interface PivotGridRowProps extends KendoMouse<PivotGridRowHandle, HTMLTa
|
|
|
39
39
|
/**
|
|
40
40
|
* Represents the [KendoReact PivotGridRow component]({% slug api_pivotgrid_pivotgridrowprops %}).
|
|
41
41
|
*/
|
|
42
|
-
export declare const PivotGridRow: React.ForwardRefExoticComponent<PivotGridRowProps & React.RefAttributes<PivotGridRowHandle>>;
|
|
42
|
+
export declare const PivotGridRow: React.ForwardRefExoticComponent<PivotGridRowProps & React.RefAttributes<PivotGridRowHandle | null>>;
|
|
@@ -16,4 +16,4 @@ export declare type ExpansionAction = {
|
|
|
16
16
|
/**
|
|
17
17
|
* @hidden
|
|
18
18
|
*/
|
|
19
|
-
export declare const useExpansion: (defaultValue:
|
|
19
|
+
export declare const useExpansion: (defaultValue: never[] | undefined, callback: any, target: any, compare?: (a: any, b: any) => boolean) => any[];
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
2
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3
|
+
if (ar || !(i in from)) {
|
|
4
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
5
|
+
ar[i] = from[i];
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9
|
+
};
|
|
1
10
|
import * as React from 'react';
|
|
2
11
|
/**
|
|
3
12
|
* @hidden
|
|
@@ -16,10 +25,10 @@ var expansionReducer = function (state, action, compare) {
|
|
|
16
25
|
case EXPANSION_ACTION.toggle:
|
|
17
26
|
if (Array.isArray(state)) {
|
|
18
27
|
if (state.find(function (s) { return compare(s, action.payload); })) {
|
|
19
|
-
return state.filter(function (s) { return !compare(s, action.payload); })
|
|
28
|
+
return __spreadArray([], state.filter(function (s) { return !compare(s, action.payload); }), true);
|
|
20
29
|
}
|
|
21
30
|
else {
|
|
22
|
-
return
|
|
31
|
+
return __spreadArray(__spreadArray([], state, true), [action.payload], false);
|
|
23
32
|
}
|
|
24
33
|
}
|
|
25
34
|
else {
|
|
@@ -33,7 +42,7 @@ var expansionReducer = function (state, action, compare) {
|
|
|
33
42
|
case EXPANSION_ACTION.expand:
|
|
34
43
|
if (Array.isArray(state)) {
|
|
35
44
|
if (!state.find(function (s) { return compare(s, action.payload); })) {
|
|
36
|
-
return
|
|
45
|
+
return __spreadArray(__spreadArray([], state, true), [action.payload], false);
|
|
37
46
|
}
|
|
38
47
|
}
|
|
39
48
|
else {
|
|
@@ -45,7 +54,7 @@ var expansionReducer = function (state, action, compare) {
|
|
|
45
54
|
case EXPANSION_ACTION.collapse:
|
|
46
55
|
if (Array.isArray(state)) {
|
|
47
56
|
if (state.find(function (s) { return compare(s, action.payload); })) {
|
|
48
|
-
return state.filter(function (s) { return !compare(s, action.payload); })
|
|
57
|
+
return __spreadArray([], state.filter(function (s) { return !compare(s, action.payload); }), true);
|
|
49
58
|
}
|
|
50
59
|
}
|
|
51
60
|
else {
|
|
@@ -5,4 +5,8 @@ export { HEADERS_ACTION } from '@progress/kendo-pivotgrid-common';
|
|
|
5
5
|
/**
|
|
6
6
|
* @hidden
|
|
7
7
|
*/
|
|
8
|
-
export declare const useHeaders: (prop: PivotGridAxis[], tree: AxisDataItem, onChange?: (value: PivotGridAxis[], event: React.SyntheticEvent
|
|
8
|
+
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];
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
declare type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
@@ -16,7 +16,7 @@ export { HEADERS_ACTION } from '@progress/kendo-pivotgrid-common';
|
|
|
16
16
|
*/
|
|
17
17
|
export var useHeaders = function (prop, tree, onChange) {
|
|
18
18
|
var handleHeadersAction = function (action, event) {
|
|
19
|
-
var newHeaders = headersReducer(prop, __assign({}, action, { tree: tree }));
|
|
19
|
+
var newHeaders = headersReducer(prop, __assign(__assign({}, action), { tree: tree }));
|
|
20
20
|
if (onChange) {
|
|
21
21
|
onChange(newHeaders, event);
|
|
22
22
|
}
|
|
@@ -2,4 +2,4 @@ import * as React from 'react';
|
|
|
2
2
|
/**
|
|
3
3
|
* @hidden
|
|
4
4
|
*/
|
|
5
|
-
export declare const useHorizontalScrollSync: (...elements: React.RefObject<HTMLElement>[]) => (event: React.SyntheticEvent
|
|
5
|
+
export declare const useHorizontalScrollSync: (...elements: React.RefObject<HTMLElement>[]) => (event: React.SyntheticEvent) => void;
|
|
@@ -15,7 +15,6 @@ declare type PIVOT_CONFIGURATOR_ACTION_TYPE = COMMON_CONFIGURATOR_ACTION | EXTEN
|
|
|
15
15
|
* @hidden
|
|
16
16
|
*/
|
|
17
17
|
export declare const PIVOT_CONFIGURATOR_ACTION: {
|
|
18
|
-
[x: number]: string;
|
|
19
18
|
toggleExpansion: EXTENDED_CONFIGURATOR_ACTION.toggleExpansion;
|
|
20
19
|
toggleSelection: COMMON_CONFIGURATOR_ACTION.toggleSelection;
|
|
21
20
|
addColumnAxis: COMMON_CONFIGURATOR_ACTION.addColumnAxis;
|
|
@@ -80,5 +79,5 @@ export interface PivotGridConfiguratorAction {
|
|
|
80
79
|
/**
|
|
81
80
|
* @hidden
|
|
82
81
|
*/
|
|
83
|
-
export declare const usePivotConfiguratorEditor: (props: PivotGridConfiguratorEditorProps, target: any) => [PivotGridConfiguratorEditorState, (action: PivotGridConfiguratorAction, syntheticEvent?: React.SyntheticEvent
|
|
82
|
+
export declare const usePivotConfiguratorEditor: (props: PivotGridConfiguratorEditorProps, target: any) => [PivotGridConfiguratorEditorState, (action: PivotGridConfiguratorAction, syntheticEvent?: React.SyntheticEvent) => void];
|
|
84
83
|
export {};
|
|
@@ -21,7 +21,7 @@ var EXTENDED_CONFIGURATOR_ACTION;
|
|
|
21
21
|
/**
|
|
22
22
|
* @hidden
|
|
23
23
|
*/
|
|
24
|
-
export var PIVOT_CONFIGURATOR_ACTION = __assign({}, COMMON_CONFIGURATOR_ACTION, EXTENDED_CONFIGURATOR_ACTION);
|
|
24
|
+
export var PIVOT_CONFIGURATOR_ACTION = __assign(__assign({}, COMMON_CONFIGURATOR_ACTION), EXTENDED_CONFIGURATOR_ACTION);
|
|
25
25
|
;
|
|
26
26
|
/**
|
|
27
27
|
* @hidden
|
|
@@ -50,9 +50,14 @@ export var usePivotLocalDataService = function (args) {
|
|
|
50
50
|
var dataTree = React.useMemo(function () { return createDataTree(args.data, rowSettings, columnSettings, measuresSettings, bindingFields, filter); }, [args.data, rowSettings, columnSettings, measuresSettings, filter]);
|
|
51
51
|
var configuratorData = React.useMemo(function () { return createFlatSchemaDimensions(args.dimensions, args.measures); }, [args.dimensions, args.measures]);
|
|
52
52
|
var dataState = React.useMemo(function () { return createLocalDataState({
|
|
53
|
-
dataTree: dataTree,
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
dataTree: dataTree,
|
|
54
|
+
rowSettings: rowSettings,
|
|
55
|
+
columnSettings: columnSettings,
|
|
56
|
+
rowAxes: rowAxes,
|
|
57
|
+
columnAxes: columnAxes,
|
|
58
|
+
measures: measuresSettings,
|
|
59
|
+
sort: sort,
|
|
60
|
+
fields: bindingFields
|
|
56
61
|
}); }, [columnAxes, columnSettings, dataTree, measuresSettings, rowAxes, rowSettings, sort]);
|
|
57
62
|
return {
|
|
58
63
|
pivotProps: {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
2
3
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
3
4
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
4
5
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
5
|
-
function step(result) { result.done ? resolve(result.value) :
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
6
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
7
8
|
});
|
|
8
9
|
};
|
|
@@ -33,7 +34,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
33
34
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
34
35
|
}
|
|
35
36
|
};
|
|
36
|
-
var _this = this;
|
|
37
37
|
/* eslint-disable max-len */
|
|
38
38
|
import * as React from 'react';
|
|
39
39
|
import { fetchData, createDataState, fetchDiscover, addKPI, buildKPIMeasures } from '@progress/kendo-pivotgrid-common';
|
|
@@ -132,12 +132,12 @@ export var usePivotOLAPService = function (args) {
|
|
|
132
132
|
}
|
|
133
133
|
return null;
|
|
134
134
|
};
|
|
135
|
-
var loadAxisFields = function (axis) { return __awaiter(
|
|
135
|
+
var loadAxisFields = function (axis) { return __awaiter(void 0, void 0, void 0, function () {
|
|
136
136
|
var command, dimensionUniqueName, hierarchyUniqueName, levelUniqueName, memberUniqueName, treeOp, options;
|
|
137
137
|
return __generator(this, function (_a) {
|
|
138
138
|
if (axis.name) {
|
|
139
139
|
command = 'schemaMembers';
|
|
140
|
-
levelUniqueName = String(axis.name)
|
|
140
|
+
levelUniqueName = "".concat(String(axis.name), ".[(ALL)]");
|
|
141
141
|
}
|
|
142
142
|
options = {
|
|
143
143
|
connection: {
|
|
@@ -158,7 +158,7 @@ export var usePivotOLAPService = function (args) {
|
|
|
158
158
|
return [2 /*return*/, fetchDiscover({ url: args.url }, options)];
|
|
159
159
|
});
|
|
160
160
|
}); };
|
|
161
|
-
var loadSubFields = function (axis) { return __awaiter(
|
|
161
|
+
var loadSubFields = function (axis) { return __awaiter(void 0, void 0, void 0, function () {
|
|
162
162
|
var command, dimensionUniqueName, hierarchyUniqueName, levelUniqueName, memberUniqueName, treeOp, options;
|
|
163
163
|
return __generator(this, function (_a) {
|
|
164
164
|
if (axis.uniqueName) {
|
|
@@ -185,7 +185,7 @@ export var usePivotOLAPService = function (args) {
|
|
|
185
185
|
return [2 /*return*/, fetchDiscover({ url: args.url }, options)];
|
|
186
186
|
});
|
|
187
187
|
}); };
|
|
188
|
-
var loadFields = function (field) { return __awaiter(
|
|
188
|
+
var loadFields = function (field) { return __awaiter(void 0, void 0, void 0, function () {
|
|
189
189
|
var command, dimensionUniqueName, hierarchyUniqueName, levelUniqueName, memberUniqueName, treeOp, options;
|
|
190
190
|
return __generator(this, function (_a) {
|
|
191
191
|
if (field.type === 2) {
|
|
@@ -218,7 +218,7 @@ export var usePivotOLAPService = function (args) {
|
|
|
218
218
|
return [2 /*return*/, fetchDiscover({ url: args.url }, options)];
|
|
219
219
|
});
|
|
220
220
|
}); };
|
|
221
|
-
var loadKPIs = function () { return __awaiter(
|
|
221
|
+
var loadKPIs = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
222
222
|
var options;
|
|
223
223
|
return __generator(this, function (_a) {
|
|
224
224
|
options = {
|
|
@@ -235,7 +235,7 @@ export var usePivotOLAPService = function (args) {
|
|
|
235
235
|
return [2 /*return*/, fetchDiscover({ url: args.url }, options)];
|
|
236
236
|
});
|
|
237
237
|
}); };
|
|
238
|
-
var handleFieldExpand = function (event) { return __awaiter(
|
|
238
|
+
var handleFieldExpand = function (event) { return __awaiter(void 0, void 0, void 0, function () {
|
|
239
239
|
var newFields, field, KPIs, _a, additionalFields;
|
|
240
240
|
return __generator(this, function (_b) {
|
|
241
241
|
switch (_b.label) {
|
|
@@ -266,11 +266,14 @@ export var usePivotOLAPService = function (args) {
|
|
|
266
266
|
}
|
|
267
267
|
});
|
|
268
268
|
}); };
|
|
269
|
-
var handleAxisFilterFieldsExpandChange = function (event) { return __awaiter(
|
|
269
|
+
var handleAxisFilterFieldsExpandChange = function (event) { return __awaiter(void 0, void 0, void 0, function () {
|
|
270
270
|
var map, _a, axes, setter, newAxes, axis, axisFields;
|
|
271
271
|
return __generator(this, function (_b) {
|
|
272
272
|
switch (_b.label) {
|
|
273
273
|
case 0:
|
|
274
|
+
if (!event) {
|
|
275
|
+
return [2 /*return*/];
|
|
276
|
+
}
|
|
274
277
|
map = {
|
|
275
278
|
rowAxes: [rowAxes, setRowAxes],
|
|
276
279
|
columnAxes: [columnAxes, setColumnAxes],
|
|
@@ -290,11 +293,14 @@ export var usePivotOLAPService = function (args) {
|
|
|
290
293
|
}
|
|
291
294
|
});
|
|
292
295
|
}); };
|
|
293
|
-
var handleAxisFilterFieldExpand = function (event) { return __awaiter(
|
|
296
|
+
var handleAxisFilterFieldExpand = function (event) { return __awaiter(void 0, void 0, void 0, function () {
|
|
294
297
|
var map, _a, axes, setter, newAxes, axis, newFields, field, axisFilterFieldChildren;
|
|
295
298
|
return __generator(this, function (_b) {
|
|
296
299
|
switch (_b.label) {
|
|
297
300
|
case 0:
|
|
301
|
+
if (!event) {
|
|
302
|
+
return [2 /*return*/];
|
|
303
|
+
}
|
|
298
304
|
map = {
|
|
299
305
|
rowAxes: [rowAxes, setRowAxes],
|
|
300
306
|
columnAxes: [columnAxes, setColumnAxes],
|
|
@@ -2,4 +2,4 @@ import * as React from 'react';
|
|
|
2
2
|
/**
|
|
3
3
|
* @hidden
|
|
4
4
|
*/
|
|
5
|
-
export declare const useVerticalScrollSync: (...elements: React.RefObject<HTMLElement>[]) => (event: React.SyntheticEvent
|
|
5
|
+
export declare const useVerticalScrollSync: (...elements: React.RefObject<HTMLElement>[]) => (event: React.SyntheticEvent) => void;
|
|
@@ -50,16 +50,16 @@ export declare const configuratorButtonLabel = "pivotgrid.configuratorButtonLabe
|
|
|
50
50
|
* @hidden
|
|
51
51
|
*/
|
|
52
52
|
export declare const messages: {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
53
|
+
"pivotgrid.fieldMenuReset": string;
|
|
54
|
+
"pivotgrid.fieldMenuApply": string;
|
|
55
|
+
"pivotgrid.configuratorCancel": string;
|
|
56
|
+
"pivotgrid.configuratorApply": string;
|
|
57
|
+
"pivotgrid.configuratorTitle": string;
|
|
58
|
+
"pivotgrid.configuratorEditorSearchTitle": string;
|
|
59
|
+
"pivotgrid.configuratorEditorSearchPlaceholder": string;
|
|
60
|
+
"pivotgrid.configuratorColumnsTitle": string;
|
|
61
|
+
"pivotgrid.configuratorRowsTitle": string;
|
|
62
|
+
"pivotgrid.configuratorMeasuresTitle": string;
|
|
63
|
+
"pivotgrid.configuratorButtonLabel": string;
|
|
64
|
+
"pivotgrid.configuratorMissingFields": string;
|
|
65
65
|
};
|
package/dist/es/models/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-react-pivotgrid',
|
|
6
6
|
productName: 'KendoReact',
|
|
7
7
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1654509685,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
11
11
|
};
|
|
@@ -3,4 +3,4 @@ import { PivotGridConfiguratorAction, PivotGridConfiguratorEditorState } from '.
|
|
|
3
3
|
/**
|
|
4
4
|
* @hidden
|
|
5
5
|
*/
|
|
6
|
-
export declare const PivotGridConfiguratorEditorStateContext: React.Context<[PivotGridConfiguratorEditorState, (action: PivotGridConfiguratorAction, event?: React.SyntheticEvent
|
|
6
|
+
export declare const PivotGridConfiguratorEditorStateContext: React.Context<[PivotGridConfiguratorEditorState, (action: PivotGridConfiguratorAction, event?: React.SyntheticEvent) => void]>;
|