@gooddata/sdk-ui-pivot 11.68.0-alpha.1 → 11.68.0-alpha.10
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/NOTICE +4575 -63876
- package/esm/CorePivotTable.js +4 -4
- package/esm/PivotTable.d.ts.map +1 -1
- package/esm/PivotTable.js +3 -3
- package/esm/columnWidths.d.ts.map +1 -1
- package/esm/columnWidths.js +11 -11
- package/esm/impl/cell/cellClass.js +3 -3
- package/esm/impl/data/dataSource.d.ts.map +1 -1
- package/esm/impl/data/dataSource.js +4 -4
- package/esm/impl/data/dataSourceUtils.d.ts.map +1 -1
- package/esm/impl/data/dataSourceUtils.js +2 -2
- package/esm/impl/eventHandlers/dataLoadingEventHandlers.d.ts.map +1 -1
- package/esm/impl/eventHandlers/dataLoadingEventHandlers.js +3 -3
- package/esm/impl/resizing/columnSizing.d.ts.map +1 -1
- package/esm/impl/resizing/columnSizing.js +6 -5
- package/esm/impl/stickyRowHandler.d.ts.map +1 -1
- package/esm/impl/stickyRowHandler.js +3 -2
- package/esm/impl/structure/colLocatorMatching.d.ts.map +1 -1
- package/esm/impl/structure/colLocatorMatching.js +2 -2
- package/esm/impl/structure/headers/aggregationsMenuHelper.d.ts.map +1 -1
- package/esm/impl/structure/headers/aggregationsMenuHelper.js +5 -4
- package/esm/impl/structure/tableDescriptorFactory.d.ts.map +1 -1
- package/esm/impl/structure/tableDescriptorFactory.js +2 -2
- package/esm/impl/updates/componentUpdateAnalyzer.d.ts.map +1 -1
- package/esm/impl/updates/componentUpdateAnalyzer.js +6 -6
- package/esm/next/PivotTableNextPluggable.js +2 -2
- package/esm/next/components/Header/MeasureGroupHeader.js +2 -2
- package/esm/next/components/Header/utils/constructAggregationsMenuItems.d.ts.map +1 -1
- package/esm/next/components/Header/utils/constructAggregationsMenuItems.js +3 -3
- package/esm/next/features/data/createServerSideDataSource.d.ts.map +1 -1
- package/esm/next/features/data/createServerSideDataSource.js +2 -2
- package/esm/next/features/resizing/isColumnWidthItemMatch.d.ts.map +1 -1
- package/esm/next/features/resizing/isColumnWidthItemMatch.js +5 -5
- package/esm/next/features/sorting/getSortForColumnDefinition.d.ts.map +1 -1
- package/esm/next/features/sorting/getSortForColumnDefinition.js +3 -3
- package/esm/next/features/textWrapping/isColumnTextWrappingItemMatch.js +3 -3
- package/esm/next/hooks/resizing/useInitialAutoResizeVisibility.js +2 -2
- package/esm/next/hooks/resizing/useSyncColumnWidths.d.ts.map +1 -1
- package/esm/next/hooks/resizing/useSyncColumnWidths.js +2 -2
- package/esm/next/hooks/resizing/useVirtualColumnAutoResize.js +2 -2
- package/esm/next/hooks/useSortingProps.js +2 -2
- package/esm/next/types/locators.d.ts.map +1 -1
- package/esm/next/types/locators.js +5 -5
- package/esm/next/types/resizing.d.ts.map +1 -1
- package/esm/next/types/resizing.js +8 -8
- package/package.json +14 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createServerSideDataSource.d.ts","sourceRoot":"","sources":["../../../../src/next/features/data/createServerSideDataSource.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,qBAAqB,EAG7B,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"createServerSideDataSource.d.ts","sourceRoot":"","sources":["../../../../src/next/features/data/createServerSideDataSource.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,qBAAqB,EAG7B,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,QAAQ,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACvG,OAAO,EACH,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,OAAO,EACZ,KAAK,aAAa,EAErB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,KAAK,mBAAmB,EA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Data Corporation
|
|
2
|
-
import { isEqual } from "lodash-es";
|
|
3
2
|
import { convertDataWindowError, } from "@gooddata/sdk-ui";
|
|
3
|
+
import { _isEqual } from "@gooddata/util";
|
|
4
4
|
import { handleExportReady } from "../exports/exports.js";
|
|
5
5
|
import { getSortModel } from "../sorting/agGridSortingApi.js";
|
|
6
6
|
import { sortModelToSortItems } from "../sorting/sortModelToSortItems.js";
|
|
@@ -99,7 +99,7 @@ export const createServerSideDataSource = ({ measures, rows, sortBy, initialExec
|
|
|
99
99
|
// once fixed in ag-grid, we can replace getSortModel this with it
|
|
100
100
|
const sortModel = getSortModel(params.api);
|
|
101
101
|
const updatedSortBy = sortModelToSortItems(sortModel, columnDefinitionByColId);
|
|
102
|
-
if (!
|
|
102
|
+
if (!_isEqual(lastSortBy, updatedSortBy)) {
|
|
103
103
|
// Always rebuild from the initial execution result to avoid accumulating
|
|
104
104
|
// multiple layers of execution result decorators over time.
|
|
105
105
|
currentExecutionResult = await initialExecutionResult
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isColumnWidthItemMatch.d.ts","sourceRoot":"","sources":["../../../../src/next/features/resizing/isColumnWidthItemMatch.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"isColumnWidthItemMatch.d.ts","sourceRoot":"","sources":["../../../../src/next/features/resizing/isColumnWidthItemMatch.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,eAAe,EAMvB,MAAM,yBAAyB,CAAC;AAEjC;;;;GAIG;AACH,wBAAgB,sBAAsB,CAClC,gBAAgB,EAAE,eAAe,EACjC,gBAAgB,EAAE,eAAe,GAClC,OAAO,CAqCT"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// (C) 2025 GoodData Corporation
|
|
2
|
-
import {
|
|
1
|
+
// (C) 2025-2026 GoodData Corporation
|
|
2
|
+
import { _isEqual } from "@gooddata/util";
|
|
3
3
|
import { isAttributeColumnWidthItem, isMeasureColumnWidthItem, isMixedValuesColumnWidthItem, isSliceMeasureColumnWidthItem, isWeakMeasureColumnWidthItem, } from "../../types/resizing.js";
|
|
4
4
|
/**
|
|
5
5
|
* Returns true if the provided {@link ColumnWidthItem}s match by locators / identifiers.
|
|
@@ -16,13 +16,13 @@ export function isColumnWidthItemMatch(columnWidthItem1, columnWidthItem2) {
|
|
|
16
16
|
columnWidthItem2.measureColumnWidthItem.locator.measureLocatorItem.measureIdentifier);
|
|
17
17
|
}
|
|
18
18
|
if (isMeasureColumnWidthItem(columnWidthItem1) && isMeasureColumnWidthItem(columnWidthItem2)) {
|
|
19
|
-
return
|
|
19
|
+
return _isEqual(columnWidthItem1.measureColumnWidthItem.locators, columnWidthItem2.measureColumnWidthItem.locators);
|
|
20
20
|
}
|
|
21
21
|
if (isSliceMeasureColumnWidthItem(columnWidthItem1) && isSliceMeasureColumnWidthItem(columnWidthItem2)) {
|
|
22
|
-
return
|
|
22
|
+
return _isEqual(columnWidthItem1.sliceMeasureColumnWidthItem.locators, columnWidthItem2.sliceMeasureColumnWidthItem.locators);
|
|
23
23
|
}
|
|
24
24
|
if (isMixedValuesColumnWidthItem(columnWidthItem1) && isMixedValuesColumnWidthItem(columnWidthItem2)) {
|
|
25
|
-
return
|
|
25
|
+
return _isEqual(columnWidthItem1.mixedValuesColumnWidthItem.locators, columnWidthItem2.mixedValuesColumnWidthItem.locators);
|
|
26
26
|
}
|
|
27
27
|
return false;
|
|
28
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSortForColumnDefinition.d.ts","sourceRoot":"","sources":["../../../../src/next/features/sorting/getSortForColumnDefinition.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getSortForColumnDefinition.d.ts","sourceRoot":"","sources":["../../../../src/next/features/sorting/getSortForColumnDefinition.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAkC,MAAM,qBAAqB,CAAC;AACrF,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAK/D;;;;GAIG;AACH,wBAAgB,0BAA0B,CACtC,gBAAgB,EAAE,sBAAsB,EACxC,MAAM,EAAE,SAAS,EAAE,GACpB,SAAS,GAAG,SAAS,CA2BvB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// (C) 2025 GoodData Corporation
|
|
2
|
-
import { isEqual } from "lodash-es";
|
|
1
|
+
// (C) 2025-2026 GoodData Corporation
|
|
3
2
|
import { isAttributeSort, isMeasureSort } from "@gooddata/sdk-model";
|
|
3
|
+
import { _isEqual } from "@gooddata/util";
|
|
4
4
|
import { columnScopeToLocators } from "./locators.js";
|
|
5
5
|
/**
|
|
6
6
|
* Returns sort item for the provided column definition, if match is found, undefined otherwise.
|
|
@@ -20,7 +20,7 @@ export function getSortForColumnDefinition(columnDefinition, sortBy) {
|
|
|
20
20
|
if (locators.length === 0) {
|
|
21
21
|
return undefined;
|
|
22
22
|
}
|
|
23
|
-
return sortBy.find((sort) => isMeasureSort(sort) &&
|
|
23
|
+
return sortBy.find((sort) => isMeasureSort(sort) && _isEqual(sort.measureSortItem.locators, locators));
|
|
24
24
|
}
|
|
25
25
|
return undefined;
|
|
26
26
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// (C) 2025 GoodData Corporation
|
|
2
|
-
import {
|
|
1
|
+
// (C) 2025-2026 GoodData Corporation
|
|
2
|
+
import { _isEqual } from "@gooddata/util";
|
|
3
3
|
/**
|
|
4
4
|
* Checks if two {@link IColumnTextWrappingItem}s match (have the same locators).
|
|
5
5
|
*
|
|
@@ -13,5 +13,5 @@ import { isEqual } from "lodash-es";
|
|
|
13
13
|
export function isColumnTextWrappingItemMatch(item1, item2) {
|
|
14
14
|
// Deep equality check on locator arrays
|
|
15
15
|
// Locators must match exactly in order and content
|
|
16
|
-
return
|
|
16
|
+
return _isEqual(item1.locators, item2.locators);
|
|
17
17
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2025-2026 GoodData Corporation
|
|
2
2
|
import { useEffect, useRef, useState } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { _debounce } from "@gooddata/util";
|
|
4
4
|
import { useAgGridApi } from "../../context/AgGridApiContext.js";
|
|
5
5
|
import { useCurrentDataView } from "../../context/CurrentDataViewContext.js";
|
|
6
6
|
import { usePivotTableProps } from "../../context/PivotTablePropsContext.js";
|
|
@@ -50,7 +50,7 @@ export function useInitialAutoResizeVisibility(options) {
|
|
|
50
50
|
markReady();
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
|
-
const setIsReadyForPaint =
|
|
53
|
+
const setIsReadyForPaint = _debounce(() => {
|
|
54
54
|
markReady();
|
|
55
55
|
}, debounceTime);
|
|
56
56
|
// Start debounce immediately - events will reset it if they fire
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSyncColumnWidths.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/resizing/useSyncColumnWidths.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSyncColumnWidths.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/resizing/useSyncColumnWidths.ts"],"names":[],"mappings":"AAgBA;;;;GAIG;AACH,wBAAgB,mBAAmB;;EAkGlC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2025-2026 GoodData Corporation
|
|
2
2
|
import { useCallback, useEffect, useRef } from "react";
|
|
3
|
-
import { isEqual } from "lodash-es";
|
|
4
3
|
import { usePrevious } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _isEqual } from "@gooddata/util";
|
|
5
5
|
import { useAgGridApi } from "../../context/AgGridApiContext.js";
|
|
6
6
|
import { useColumnDefs } from "../../context/ColumnDefsContext.js";
|
|
7
7
|
import { usePivotTableProps } from "../../context/PivotTablePropsContext.js";
|
|
@@ -42,7 +42,7 @@ export function useSyncColumnWidths() {
|
|
|
42
42
|
});
|
|
43
43
|
}, [getAgGridColumns]);
|
|
44
44
|
useEffect(() => {
|
|
45
|
-
if (agGridApi && !
|
|
45
|
+
if (agGridApi && !_isEqual(columnWidths, prevColumnWidths)) {
|
|
46
46
|
const allColumns = getAgGridColumns(agGridApi);
|
|
47
47
|
const updatedColDefs = allColumns?.map((column) => {
|
|
48
48
|
const colDef = column.getColDef();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2025-2026 GoodData Corporation
|
|
2
2
|
import { useCallback, useRef } from "react";
|
|
3
|
-
import { debounce } from "lodash-es";
|
|
4
3
|
import { usePrevious } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _debounce } from "@gooddata/util";
|
|
5
5
|
import { usePivotTableProps } from "../../context/PivotTablePropsContext.js";
|
|
6
6
|
import { getColumnsPendingAutoResize } from "../../features/resizing/getColumnsPendingAutoResize.js";
|
|
7
7
|
/**
|
|
@@ -23,7 +23,7 @@ export function useVirtualColumnAutoResize(processedColumnsRef) {
|
|
|
23
23
|
if (columnHeadersPosition !== previousColumnHeadersPosition) {
|
|
24
24
|
processedColumnsRef.current = new Set();
|
|
25
25
|
}
|
|
26
|
-
const debouncedAutoSize = useRef(
|
|
26
|
+
const debouncedAutoSize = useRef(_debounce((api, columns) => {
|
|
27
27
|
if (columns.length > 0) {
|
|
28
28
|
// Only auto-size columns that haven't been processed yet, help with lagging a bit
|
|
29
29
|
// Also skip columns that have a width set as it may be fixed by column config
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2025-2026 GoodData Corporation
|
|
2
2
|
import { useCallback } from "react";
|
|
3
|
-
import { isEqual } from "lodash-es";
|
|
4
3
|
import { UnexpectedSdkError } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _isEqual } from "@gooddata/util";
|
|
5
5
|
import { useColumnDefs } from "../context/ColumnDefsContext.js";
|
|
6
6
|
import { usePivotTableProps } from "../context/PivotTablePropsContext.js";
|
|
7
7
|
import { getSortModel } from "../features/sorting/agGridSortingApi.js";
|
|
@@ -23,7 +23,7 @@ export function useSortingProps() {
|
|
|
23
23
|
// Get the current sort model from ag-grid
|
|
24
24
|
const sortModel = getSortModel(event.api);
|
|
25
25
|
const sortItems = sortModelToSortItems(sortModel, columnDefinitionByColId);
|
|
26
|
-
if (!
|
|
26
|
+
if (!_isEqual(sortItems, sortBy)) {
|
|
27
27
|
pushData({
|
|
28
28
|
properties: {
|
|
29
29
|
sortItems,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locators.d.ts","sourceRoot":"","sources":["../../../src/next/types/locators.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"locators.d.ts","sourceRoot":"","sources":["../../../src/next/types/locators.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,UAAU,EAGlB,MAAM,qBAAqB,CAAC;AAG7B;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,uBAAuB,GAAG,qBAAqB,GAAG,mBAAmB,CAAC;AAElG;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC,oBAAoB,EAAE,2BAA2B,CAAC;CACrD;AAED;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC,kBAAkB,EAAE,yBAAyB,CAAC;CACjD;AAED;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC,gBAAgB,EAAE,uBAAuB,CAAC;CAC7C;AAED;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IACxC;;OAEG;IACH,mBAAmB,EAAE,UAAU,CAAC;IAEhC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACtC;;OAEG;IACH,iBAAiB,EAAE,UAAU,CAAC;CACjC;AAED;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC;;OAEG;IACH,mBAAmB,EAAE,UAAU,CAAC;IAEhC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;CACzB;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,uBAAuB,CAErF;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,qBAAqB,CAEjF;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,mBAAmB,CAE7E;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,yBAAyB,CACrC,aAAa,EAAE,UAAU,GAAG,MAAM,EAClC,OAAO,CAAC,EAAE,MAAM,GACjB,uBAAuB,CASzB;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,QAAQ,GAAG,MAAM,GAAG,qBAAqB,CAQ7F;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACjC,aAAa,EAAE,UAAU,GAAG,MAAM,EAClC,aAAa,EAAE,MAAM,GACtB,mBAAmB,CAOrB"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
// (C) 2025 GoodData Corporation
|
|
2
|
-
import { isEmpty } from "lodash-es";
|
|
1
|
+
// (C) 2025-2026 GoodData Corporation
|
|
3
2
|
import { attributeLocalId, measureLocalId, } from "@gooddata/sdk-model";
|
|
3
|
+
import { _isEmpty } from "@gooddata/util";
|
|
4
4
|
/**
|
|
5
5
|
* Tests whether object is an instance of {@link IAttributeColumnLocator}
|
|
6
6
|
*
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
9
|
export function isAttributeColumnLocator(obj) {
|
|
10
|
-
return !
|
|
10
|
+
return !_isEmpty(obj) && obj.attributeLocatorItem !== undefined;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* Tests whether object is an instance of {@link IMeasureColumnLocator}
|
|
@@ -15,7 +15,7 @@ export function isAttributeColumnLocator(obj) {
|
|
|
15
15
|
* @public
|
|
16
16
|
*/
|
|
17
17
|
export function isMeasureColumnLocator(obj) {
|
|
18
|
-
return !
|
|
18
|
+
return !_isEmpty(obj) && obj.measureLocatorItem !== undefined;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Tests whether object is an instance of {@link ITotalColumnLocator}
|
|
@@ -23,7 +23,7 @@ export function isMeasureColumnLocator(obj) {
|
|
|
23
23
|
* @public
|
|
24
24
|
*/
|
|
25
25
|
export function isTotalColumnLocator(obj) {
|
|
26
|
-
return !
|
|
26
|
+
return !_isEmpty(obj) && obj.totalLocatorItem !== undefined;
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* Creates a new attribute column locator
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resizing.d.ts","sourceRoot":"","sources":["../../../src/next/types/resizing.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resizing.d.ts","sourceRoot":"","sources":["../../../src/next/types/resizing.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,QAAQ,EAAE,KAAK,UAAU,EAAoB,MAAM,qBAAqB,CAAC;AAGxG,OAAO,EACH,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EAE3B,MAAM,eAAe,CAAC;AAEvB;;GAEG;AACH,MAAM,MAAM,iCAAiC,GAAG;IAC5C;;OAEG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC;CAChC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,YAAY,EAAE,eAAe,EAAE,KAAK,IAAI,CAAC;AAE9E;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,eAAe,GAAG,UAAU,CAAC;AAExE;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAElC;;;;;OAKG;IACH,YAAY,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Aa,EAAE,UAAU,GAAG,MAAM,EAClC,KAAK,EAAE,MAAM,EACb,cAAc,CAAC,EAAE,OAAO,GACzB,yBAAyB,CAY3B;AAED;;;;;;GAMG;AACH,wBAAgB,4BAA4B,CACxC,KAAK,EAAE,MAAM,EACb,cAAc,CAAC,EAAE,OAAO,GACzB,0BAA0B,CAW5B;AAED;;;;;;;GAOG;AACH,wBAAgB,+BAA+B,CAC3C,WAAW,EAAE,QAAQ,GAAG,MAAM,EAC9B,KAAK,EAAE,MAAM,EACb,cAAc,CAAC,EAAE,OAAO,GACzB,2BAA2B,CAa7B;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,0BAA0B,CACtC,WAAW,EAAE,QAAQ,GAAG,MAAM,EAC9B,QAAQ,EAAE,CAAC,uBAAuB,GAAG,mBAAmB,CAAC,EAAE,EAC3D,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,cAAc,CAAC,EAAE,OAAO,GACzB,uBAAuB,CAEzB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,6BAA6B,CACzC,aAAa,EAAE,QAAQ,GAAG,MAAM,GAAG,QAAQ,EAAE,GAAG,MAAM,EAAE,GAAG,IAAI,EAC/D,QAAQ,EAAE,CAAC,uBAAuB,GAAG,mBAAmB,CAAC,EAAE,EAC3D,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,cAAc,CAAC,EAAE,OAAO,GACzB,uBAAuB,CAqBzB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// (C) 2025 GoodData Corporation
|
|
2
|
-
import { isEmpty } from "lodash-es";
|
|
1
|
+
// (C) 2025-2026 GoodData Corporation
|
|
3
2
|
import { attributeLocalId } from "@gooddata/sdk-model";
|
|
3
|
+
import { _isEmpty } from "@gooddata/util";
|
|
4
4
|
import { newMeasureColumnLocator, } from "./locators.js";
|
|
5
5
|
/**
|
|
6
6
|
* Tests whether object is an instance of {@link IAbsoluteColumnWidth}
|
|
@@ -16,7 +16,7 @@ export function isAbsoluteColumnWidth(columnWidth) {
|
|
|
16
16
|
* @public
|
|
17
17
|
*/
|
|
18
18
|
export function isAttributeColumnWidthItem(obj) {
|
|
19
|
-
return !
|
|
19
|
+
return !_isEmpty(obj) && obj.attributeColumnWidthItem !== undefined;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
22
|
* Tests whether object is an instance of {@link IMeasureColumnWidthItem}
|
|
@@ -24,7 +24,7 @@ export function isAttributeColumnWidthItem(obj) {
|
|
|
24
24
|
* @public
|
|
25
25
|
*/
|
|
26
26
|
export function isMeasureColumnWidthItem(obj) {
|
|
27
|
-
return !
|
|
27
|
+
return !_isEmpty(obj) && obj.measureColumnWidthItem?.locators !== undefined;
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
30
|
* Tests whether object is an instance of {@link ISliceMeasureColumnWidthItem}
|
|
@@ -32,7 +32,7 @@ export function isMeasureColumnWidthItem(obj) {
|
|
|
32
32
|
* @public
|
|
33
33
|
*/
|
|
34
34
|
export function isSliceMeasureColumnWidthItem(obj) {
|
|
35
|
-
return (!
|
|
35
|
+
return (!_isEmpty(obj) &&
|
|
36
36
|
obj.sliceMeasureColumnWidthItem?.locators !== undefined);
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
@@ -41,7 +41,7 @@ export function isSliceMeasureColumnWidthItem(obj) {
|
|
|
41
41
|
* @public
|
|
42
42
|
*/
|
|
43
43
|
export function isMixedValuesColumnWidthItem(obj) {
|
|
44
|
-
return (!
|
|
44
|
+
return (!_isEmpty(obj) &&
|
|
45
45
|
obj.mixedValuesColumnWidthItem?.locators !== undefined);
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
@@ -50,7 +50,7 @@ export function isMixedValuesColumnWidthItem(obj) {
|
|
|
50
50
|
* @public
|
|
51
51
|
*/
|
|
52
52
|
export function isAllMeasureColumnWidthItem(obj) {
|
|
53
|
-
return (!
|
|
53
|
+
return (!_isEmpty(obj) &&
|
|
54
54
|
obj.measureColumnWidthItem !== undefined &&
|
|
55
55
|
obj.measureColumnWidthItem.locators === undefined &&
|
|
56
56
|
obj.measureColumnWidthItem.locator === undefined);
|
|
@@ -61,7 +61,7 @@ export function isAllMeasureColumnWidthItem(obj) {
|
|
|
61
61
|
* @public
|
|
62
62
|
*/
|
|
63
63
|
export function isWeakMeasureColumnWidthItem(obj) {
|
|
64
|
-
return (!
|
|
64
|
+
return (!_isEmpty(obj) && obj.measureColumnWidthItem?.locator !== undefined);
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
67
|
* Creates width item that will set width of a column which contains values of a row attribute.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-pivot",
|
|
3
|
-
"version": "11.68.0-alpha.
|
|
3
|
+
"version": "11.68.0-alpha.10",
|
|
4
4
|
"description": "GoodData.UI SDK - Pivot Table",
|
|
5
5
|
"license": "LicenseRef-LICENSE",
|
|
6
6
|
"author": "GoodData Corporation",
|
|
@@ -43,12 +43,13 @@
|
|
|
43
43
|
"ts-invariant": "0.10.3",
|
|
44
44
|
"tslib": "2.8.1",
|
|
45
45
|
"uuid": "11.1.1",
|
|
46
|
-
"@gooddata/sdk-
|
|
47
|
-
"@gooddata/sdk-
|
|
48
|
-
"@gooddata/sdk-
|
|
49
|
-
"@gooddata/sdk-ui-kit": "11.68.0-alpha.
|
|
50
|
-
"@gooddata/sdk-ui-theme-provider": "11.68.0-alpha.
|
|
51
|
-
"@gooddata/sdk-ui-vis-commons": "11.68.0-alpha.
|
|
46
|
+
"@gooddata/sdk-backend-spi": "11.68.0-alpha.10",
|
|
47
|
+
"@gooddata/sdk-model": "11.68.0-alpha.10",
|
|
48
|
+
"@gooddata/sdk-ui": "11.68.0-alpha.10",
|
|
49
|
+
"@gooddata/sdk-ui-kit": "11.68.0-alpha.10",
|
|
50
|
+
"@gooddata/sdk-ui-theme-provider": "11.68.0-alpha.10",
|
|
51
|
+
"@gooddata/sdk-ui-vis-commons": "11.68.0-alpha.10",
|
|
52
|
+
"@gooddata/util": "11.68.0-alpha.10"
|
|
52
53
|
},
|
|
53
54
|
"devDependencies": {
|
|
54
55
|
"@microsoft/api-documenter": "7.30.20",
|
|
@@ -86,12 +87,12 @@
|
|
|
86
87
|
"stylelint": "16.26.1",
|
|
87
88
|
"typescript": "7.0.2",
|
|
88
89
|
"vitest": "5.0.4",
|
|
89
|
-
"@gooddata/eslint-config": "11.68.0-alpha.
|
|
90
|
-
"@gooddata/
|
|
91
|
-
"@gooddata/
|
|
92
|
-
"@gooddata/sdk-backend-base": "11.68.0-alpha.
|
|
93
|
-
"@gooddata/sdk-backend-mockingbird": "11.68.0-alpha.
|
|
94
|
-
"@gooddata/stylelint-config": "11.68.0-alpha.
|
|
90
|
+
"@gooddata/eslint-config": "11.68.0-alpha.10",
|
|
91
|
+
"@gooddata/oxlint-config": "11.68.0-alpha.10",
|
|
92
|
+
"@gooddata/reference-workspace": "11.68.0-alpha.10",
|
|
93
|
+
"@gooddata/sdk-backend-base": "11.68.0-alpha.10",
|
|
94
|
+
"@gooddata/sdk-backend-mockingbird": "11.68.0-alpha.10",
|
|
95
|
+
"@gooddata/stylelint-config": "11.68.0-alpha.10"
|
|
95
96
|
},
|
|
96
97
|
"peerDependencies": {
|
|
97
98
|
"react": "^18.0.0 || ^19.0.0",
|