@gooddata/sdk-ui-pivot 11.4.0 → 11.5.0-alpha.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/esm/next/PivotTableNext.d.ts.map +1 -1
- package/esm/next/PivotTableNext.js +10 -2
- package/esm/next/PivotTableNext.js.map +1 -1
- package/esm/next/components/Header/AttributeHeader.d.ts.map +1 -1
- package/esm/next/components/Header/AttributeHeader.js +15 -3
- package/esm/next/components/Header/AttributeHeader.js.map +1 -1
- package/esm/next/components/Header/EmptyMeasureGroupHeader.d.ts +2 -1
- package/esm/next/components/Header/EmptyMeasureGroupHeader.d.ts.map +1 -1
- package/esm/next/components/Header/EmptyMeasureGroupHeader.js +6 -2
- package/esm/next/components/Header/EmptyMeasureGroupHeader.js.map +1 -1
- package/esm/next/components/Header/EmptyMeasureGroupValueHeader.d.ts +8 -0
- package/esm/next/components/Header/EmptyMeasureGroupValueHeader.d.ts.map +1 -0
- package/esm/next/components/Header/EmptyMeasureGroupValueHeader.js +34 -0
- package/esm/next/components/Header/EmptyMeasureGroupValueHeader.js.map +1 -0
- package/esm/next/components/Header/MeasureGroupHeader.d.ts.map +1 -1
- package/esm/next/components/Header/MeasureGroupHeader.js +21 -2
- package/esm/next/components/Header/MeasureGroupHeader.js.map +1 -1
- package/esm/next/components/Header/MeasureHeader.d.ts.map +1 -1
- package/esm/next/components/Header/MeasureHeader.js +10 -1
- package/esm/next/components/Header/MeasureHeader.js.map +1 -1
- package/esm/next/components/Header/PivotGroupHeader.d.ts.map +1 -1
- package/esm/next/components/Header/PivotGroupHeader.js +8 -2
- package/esm/next/components/Header/PivotGroupHeader.js.map +1 -1
- package/esm/next/components/Header/utils/constructTextWrappingMenuItems.d.ts +5 -1
- package/esm/next/components/Header/utils/constructTextWrappingMenuItems.d.ts.map +1 -1
- package/esm/next/components/Header/utils/constructTextWrappingMenuItems.js +11 -7
- package/esm/next/components/Header/utils/constructTextWrappingMenuItems.js.map +1 -1
- package/esm/next/constants/agGridDefaultProps.d.ts.map +1 -1
- package/esm/next/constants/agGridDefaultProps.js +1 -0
- package/esm/next/constants/agGridDefaultProps.js.map +1 -1
- package/esm/next/features/data/dataViewToColDefs.d.ts.map +1 -1
- package/esm/next/features/data/dataViewToColDefs.js +17 -1
- package/esm/next/features/data/dataViewToColDefs.js.map +1 -1
- package/esm/next/features/pivoting/columnDefsToPivotGroups.d.ts.map +1 -1
- package/esm/next/features/pivoting/columnDefsToPivotGroups.js +2 -1
- package/esm/next/features/pivoting/columnDefsToPivotGroups.js.map +1 -1
- package/esm/next/features/resizing/createColumnWidthItemForColumnDefinition.d.ts.map +1 -1
- package/esm/next/features/resizing/createColumnWidthItemForColumnDefinition.js +2 -1
- package/esm/next/features/resizing/createColumnWidthItemForColumnDefinition.js.map +1 -1
- package/esm/next/features/textWrapping/allowCellWrappingByColumnDefinition.d.ts +29 -0
- package/esm/next/features/textWrapping/allowCellWrappingByColumnDefinition.d.ts.map +1 -0
- package/esm/next/features/textWrapping/allowCellWrappingByColumnDefinition.js +44 -0
- package/esm/next/features/textWrapping/allowCellWrappingByColumnDefinition.js.map +1 -0
- package/esm/next/features/textWrapping/applyTextWrappingToColDef.d.ts +9 -0
- package/esm/next/features/textWrapping/applyTextWrappingToColDef.d.ts.map +1 -1
- package/esm/next/features/textWrapping/applyTextWrappingToColDef.js +35 -9
- package/esm/next/features/textWrapping/applyTextWrappingToColDef.js.map +1 -1
- package/esm/next/features/textWrapping/applyTextWrappingToGroupDef.d.ts +14 -0
- package/esm/next/features/textWrapping/applyTextWrappingToGroupDef.d.ts.map +1 -0
- package/esm/next/features/textWrapping/applyTextWrappingToGroupDef.js +28 -0
- package/esm/next/features/textWrapping/applyTextWrappingToGroupDef.js.map +1 -0
- package/esm/next/features/textWrapping/createColumnTextWrappingItemForColumnDefinition.d.ts +28 -0
- package/esm/next/features/textWrapping/createColumnTextWrappingItemForColumnDefinition.d.ts.map +1 -0
- package/esm/next/features/textWrapping/createColumnTextWrappingItemForColumnDefinition.js +96 -0
- package/esm/next/features/textWrapping/createColumnTextWrappingItemForColumnDefinition.js.map +1 -0
- package/esm/next/features/textWrapping/getColumnTextWrappingItemForColumnDefinition.d.ts +9 -0
- package/esm/next/features/textWrapping/getColumnTextWrappingItemForColumnDefinition.d.ts.map +1 -0
- package/esm/next/features/textWrapping/getColumnTextWrappingItemForColumnDefinition.js +14 -0
- package/esm/next/features/textWrapping/getColumnTextWrappingItemForColumnDefinition.js.map +1 -0
- package/esm/next/features/textWrapping/getPivotGroupTextWrappingItemForColumnDefinition.d.ts +18 -0
- package/esm/next/features/textWrapping/getPivotGroupTextWrappingItemForColumnDefinition.d.ts.map +1 -0
- package/esm/next/features/textWrapping/getPivotGroupTextWrappingItemForColumnDefinition.js +99 -0
- package/esm/next/features/textWrapping/getPivotGroupTextWrappingItemForColumnDefinition.js.map +1 -0
- package/esm/next/features/textWrapping/isColumnTextWrappingItemMatch.d.ts +13 -0
- package/esm/next/features/textWrapping/isColumnTextWrappingItemMatch.d.ts.map +1 -0
- package/esm/next/features/textWrapping/isColumnTextWrappingItemMatch.js +18 -0
- package/esm/next/features/textWrapping/isColumnTextWrappingItemMatch.js.map +1 -0
- package/esm/next/features/transposition/measureGroupValueColDef.js +1 -1
- package/esm/next/features/transposition/measureGroupValueColDef.js.map +1 -1
- package/esm/next/hooks/columns/useUpdateAgGridColumnDefs.d.ts.map +1 -1
- package/esm/next/hooks/columns/useUpdateAgGridColumnDefs.js +18 -2
- package/esm/next/hooks/columns/useUpdateAgGridColumnDefs.js.map +1 -1
- package/esm/next/hooks/header/useHeaderDrilling.d.ts +2 -5
- package/esm/next/hooks/header/useHeaderDrilling.d.ts.map +1 -1
- package/esm/next/hooks/header/useHeaderDrilling.js +11 -13
- package/esm/next/hooks/header/useHeaderDrilling.js.map +1 -1
- package/esm/next/hooks/header/useHeaderMenu.d.ts +23 -3
- package/esm/next/hooks/header/useHeaderMenu.d.ts.map +1 -1
- package/esm/next/hooks/header/useHeaderMenu.js +9 -2
- package/esm/next/hooks/header/useHeaderMenu.js.map +1 -1
- package/esm/next/hooks/header/useHeaderMenuSorting.d.ts +2 -2
- package/esm/next/hooks/header/useHeaderMenuSorting.d.ts.map +1 -1
- package/esm/next/hooks/header/useHeaderMenuSorting.js +23 -24
- package/esm/next/hooks/header/useHeaderMenuSorting.js.map +1 -1
- package/esm/next/hooks/header/useHeaderMenuTextWrapping.d.ts +6 -5
- package/esm/next/hooks/header/useHeaderMenuTextWrapping.d.ts.map +1 -1
- package/esm/next/hooks/header/useHeaderMenuTextWrapping.js +341 -23
- package/esm/next/hooks/header/useHeaderMenuTextWrapping.js.map +1 -1
- package/esm/next/hooks/textWrapping/useUpdateTextWrapping.d.ts.map +1 -1
- package/esm/next/hooks/textWrapping/useUpdateTextWrapping.js +7 -2
- package/esm/next/hooks/textWrapping/useUpdateTextWrapping.js.map +1 -1
- package/esm/next/hooks/useAgGridReactProps.d.ts.map +1 -1
- package/esm/next/hooks/useAgGridReactProps.js +8 -0
- package/esm/next/hooks/useAgGridReactProps.js.map +1 -1
- package/esm/next/hooks/useCellSelectionProps.d.ts +8 -0
- package/esm/next/hooks/useCellSelectionProps.d.ts.map +1 -0
- package/esm/next/hooks/useCellSelectionProps.js +23 -0
- package/esm/next/hooks/useCellSelectionProps.js.map +1 -0
- package/esm/next/hooks/useClearCellSelection.d.ts +7 -0
- package/esm/next/hooks/useClearCellSelection.d.ts.map +1 -0
- package/esm/next/hooks/useClearCellSelection.js +15 -0
- package/esm/next/hooks/useClearCellSelection.js.map +1 -0
- package/esm/next/hooks/useClipboardProps.d.ts +13 -0
- package/esm/next/hooks/useClipboardProps.d.ts.map +1 -0
- package/esm/next/hooks/useClipboardProps.js +46 -0
- package/esm/next/hooks/useClipboardProps.js.map +1 -0
- package/esm/next/hooks/useHeaderComponents.d.ts.map +1 -1
- package/esm/next/hooks/useHeaderComponents.js +4 -1
- package/esm/next/hooks/useHeaderComponents.js.map +1 -1
- package/esm/next/hooks/useInteractionProps.d.ts.map +1 -1
- package/esm/next/hooks/useInteractionProps.js +15 -10
- package/esm/next/hooks/useInteractionProps.js.map +1 -1
- package/esm/next/index.d.ts +4 -2
- package/esm/next/index.d.ts.map +1 -1
- package/esm/next/index.js +2 -1
- package/esm/next/index.js.map +1 -1
- package/esm/next/types/agGrid.d.ts +16 -0
- package/esm/next/types/agGrid.d.ts.map +1 -1
- package/esm/next/types/agGrid.js +22 -0
- package/esm/next/types/agGrid.js.map +1 -1
- package/esm/next/types/cellSelection.d.ts +17 -0
- package/esm/next/types/cellSelection.d.ts.map +1 -0
- package/esm/next/types/cellSelection.js +3 -0
- package/esm/next/types/cellSelection.js.map +1 -0
- package/esm/next/types/locators.d.ts +119 -0
- package/esm/next/types/locators.d.ts.map +1 -0
- package/esm/next/types/locators.js +79 -0
- package/esm/next/types/locators.js.map +1 -0
- package/esm/next/types/public.d.ts +2 -1
- package/esm/next/types/public.d.ts.map +1 -1
- package/esm/next/types/public.js +1 -0
- package/esm/next/types/public.js.map +1 -1
- package/esm/next/types/resizing.d.ts +1 -117
- package/esm/next/types/resizing.d.ts.map +1 -1
- package/esm/next/types/resizing.js +2 -76
- package/esm/next/types/resizing.js.map +1 -1
- package/esm/next/types/textWrapping.d.ts +41 -2
- package/esm/next/types/textWrapping.d.ts.map +1 -1
- package/package.json +11 -11
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IAttribute, IMeasure, Identifier } from "@gooddata/sdk-model";
|
|
2
|
+
import { ColumnLocator, IAttributeColumnLocator, IMeasureColumnLocator, ITotalColumnLocator } from "./locators.js";
|
|
2
3
|
/**
|
|
3
4
|
* @alpha
|
|
4
5
|
*/
|
|
@@ -165,93 +166,6 @@ export interface IWeakMeasureColumnWidthItem {
|
|
|
165
166
|
* @alpha
|
|
166
167
|
*/
|
|
167
168
|
export type ColumnWidthItem = IAttributeColumnWidthItem | IMeasureColumnWidthItem | ISliceMeasureColumnWidthItem | IMixedValuesColumnWidthItem | IAllMeasureColumnWidthItem | IWeakMeasureColumnWidthItem;
|
|
168
|
-
/**
|
|
169
|
-
* @alpha
|
|
170
|
-
*/
|
|
171
|
-
export type ColumnLocator = IAttributeColumnLocator | IMeasureColumnLocator | ITotalColumnLocator;
|
|
172
|
-
/**
|
|
173
|
-
* Object defining the {@link IMeasureColumnLocator} object body.
|
|
174
|
-
*
|
|
175
|
-
* @alpha
|
|
176
|
-
*/
|
|
177
|
-
export interface IMeasureColumnLocatorBody {
|
|
178
|
-
/**
|
|
179
|
-
* Local identifier of the measure.
|
|
180
|
-
*/
|
|
181
|
-
measureIdentifier: Identifier;
|
|
182
|
-
}
|
|
183
|
-
/**
|
|
184
|
-
* Locates table column by column measure's localId.
|
|
185
|
-
*
|
|
186
|
-
* @alpha
|
|
187
|
-
*/
|
|
188
|
-
export interface IMeasureColumnLocator {
|
|
189
|
-
measureLocatorItem: IMeasureColumnLocatorBody;
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
|
-
* Object defining the {@link IAttributeColumnLocator} object body.
|
|
193
|
-
*
|
|
194
|
-
* @alpha
|
|
195
|
-
*/
|
|
196
|
-
export interface IAttributeColumnLocatorBody {
|
|
197
|
-
/**
|
|
198
|
-
* Local identifier of the attribute
|
|
199
|
-
*/
|
|
200
|
-
attributeIdentifier: Identifier;
|
|
201
|
-
/**
|
|
202
|
-
* Attribute element URI / primary key.
|
|
203
|
-
*/
|
|
204
|
-
element?: string | null;
|
|
205
|
-
}
|
|
206
|
-
/**
|
|
207
|
-
* Object defining the {@link ITotalColumnLocator} object body.
|
|
208
|
-
*
|
|
209
|
-
* @alpha
|
|
210
|
-
*/
|
|
211
|
-
export interface ITotalColumnLocatorBody {
|
|
212
|
-
/**
|
|
213
|
-
* Local identifier of the attribute inside which the subtotal is put
|
|
214
|
-
*/
|
|
215
|
-
attributeIdentifier: Identifier;
|
|
216
|
-
/**
|
|
217
|
-
* Function for the total, such as sum, max, min, ...
|
|
218
|
-
*/
|
|
219
|
-
totalFunction: string;
|
|
220
|
-
}
|
|
221
|
-
/**
|
|
222
|
-
* Locates all columns for an attribute or columns for particular attribute element.
|
|
223
|
-
*
|
|
224
|
-
* @alpha
|
|
225
|
-
*/
|
|
226
|
-
export interface IAttributeColumnLocator {
|
|
227
|
-
attributeLocatorItem: IAttributeColumnLocatorBody;
|
|
228
|
-
}
|
|
229
|
-
/**
|
|
230
|
-
* Locates all columns for a columns for particular total.
|
|
231
|
-
*
|
|
232
|
-
* @alpha
|
|
233
|
-
*/
|
|
234
|
-
export interface ITotalColumnLocator {
|
|
235
|
-
totalLocatorItem: ITotalColumnLocatorBody;
|
|
236
|
-
}
|
|
237
|
-
/**
|
|
238
|
-
* Tests whether object is an instance of {@link IMeasureColumnLocator}
|
|
239
|
-
*
|
|
240
|
-
* @alpha
|
|
241
|
-
*/
|
|
242
|
-
export declare function isMeasureColumnLocator(obj: unknown): obj is IMeasureColumnLocator;
|
|
243
|
-
/**
|
|
244
|
-
* Tests whether object is an instance of {@link IAttributeColumnLocator}
|
|
245
|
-
*
|
|
246
|
-
* @alpha
|
|
247
|
-
*/
|
|
248
|
-
export declare function isAttributeColumnLocator(obj: unknown): obj is IAttributeColumnLocator;
|
|
249
|
-
/**
|
|
250
|
-
* Tests whether object is an instance of {@link ITotalColumnLocator}
|
|
251
|
-
*
|
|
252
|
-
* @alpha
|
|
253
|
-
*/
|
|
254
|
-
export declare function isTotalColumnLocator(obj: unknown): obj is ITotalColumnLocator;
|
|
255
169
|
/**
|
|
256
170
|
* Tests whether object is an instance of {@link IAbsoluteColumnWidth}
|
|
257
171
|
*
|
|
@@ -294,18 +208,6 @@ export declare function isAllMeasureColumnWidthItem(obj: unknown): obj is IAllMe
|
|
|
294
208
|
* @alpha
|
|
295
209
|
*/
|
|
296
210
|
export declare function isWeakMeasureColumnWidthItem(obj: unknown): obj is IWeakMeasureColumnWidthItem;
|
|
297
|
-
/**
|
|
298
|
-
* @internal
|
|
299
|
-
*/
|
|
300
|
-
export declare function newMeasureColumnLocator(measureOrId: IMeasure | string): IMeasureColumnLocator;
|
|
301
|
-
/**
|
|
302
|
-
* Creates a new total column locator
|
|
303
|
-
*
|
|
304
|
-
* @param attributeOrId - Column attribute specified by either value or by localId reference
|
|
305
|
-
* @param totalFunction - Function for the total, such as sum, max, min...
|
|
306
|
-
* @alpha
|
|
307
|
-
*/
|
|
308
|
-
export declare function newTotalColumnLocator(attributeOrId: IAttribute | string, totalFunction: string): ITotalColumnLocator;
|
|
309
211
|
/**
|
|
310
212
|
* Creates width item that will set width of a column which contains values of a row attribute.
|
|
311
213
|
*
|
|
@@ -361,22 +263,4 @@ export declare function newWidthForSelectedColumns(measureOrId: IMeasure | strin
|
|
|
361
263
|
* @alpha
|
|
362
264
|
*/
|
|
363
265
|
export declare function setNewWidthForSelectedColumns(measuresOrIds: IMeasure | string | IMeasure[] | string[] | null, locators: (IAttributeColumnLocator | ITotalColumnLocator)[], width: number | "auto", allowGrowToFit?: boolean): IMeasureColumnWidthItem;
|
|
364
|
-
/**
|
|
365
|
-
* Creates a new attribute column locator
|
|
366
|
-
*
|
|
367
|
-
* @remarks
|
|
368
|
-
* This is used to narrow down location of measure columns in pivot table, where
|
|
369
|
-
* measures are further scoped by different attribute elements - imagine pivot table with defined for measure 'Amount' and column
|
|
370
|
-
* attribute 'Product'. The table will have multiple columns for the 'Amount' measure - each for different element of the
|
|
371
|
-
* 'Product' attribute. In this context, identifying particular measure columns needs to be more specific.
|
|
372
|
-
*
|
|
373
|
-
* The attribute column locator can match either single element of particular attribute, or all elements of particular
|
|
374
|
-
* attribute.
|
|
375
|
-
*
|
|
376
|
-
* @param attributeOrId - Column attribute specified by either value or by localId reference
|
|
377
|
-
* @param element - specify attribute element URI or primary key; if not specified, the locator will match
|
|
378
|
-
* all elements of the attribute
|
|
379
|
-
* @alpha
|
|
380
|
-
*/
|
|
381
|
-
export declare function newAttributeColumnLocator(attributeOrId: IAttribute | string, element?: string): IAttributeColumnLocator;
|
|
382
266
|
//# sourceMappingURL=resizing.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resizing.d.ts","sourceRoot":"","sources":["../../../src/next/types/resizing.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"resizing.d.ts","sourceRoot":"","sources":["../../../src/next/types/resizing.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAoB,MAAM,qBAAqB,CAAC;AAEzF,OAAO,EACH,aAAa,EACb,uBAAuB,EACvB,qBAAqB,EACrB,mBAAmB,EAEtB,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,CAAC,EAAE,eAAe,EAAE,CAAC;CACpC;AAMD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,CAAC,gBAAgB,EAAE,MAAM,GAAG,2BAA2B,CAAC;CAC3D;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AAMD;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;GAE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Aa7B;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,30 +1,7 @@
|
|
|
1
1
|
// (C) 2025 GoodData Corporation
|
|
2
2
|
import { isEmpty } from "lodash-es";
|
|
3
|
-
import { attributeLocalId
|
|
4
|
-
|
|
5
|
-
* Tests whether object is an instance of {@link IMeasureColumnLocator}
|
|
6
|
-
*
|
|
7
|
-
* @alpha
|
|
8
|
-
*/
|
|
9
|
-
export function isMeasureColumnLocator(obj) {
|
|
10
|
-
return !isEmpty(obj) && obj.measureLocatorItem !== undefined;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Tests whether object is an instance of {@link IAttributeColumnLocator}
|
|
14
|
-
*
|
|
15
|
-
* @alpha
|
|
16
|
-
*/
|
|
17
|
-
export function isAttributeColumnLocator(obj) {
|
|
18
|
-
return !isEmpty(obj) && obj.attributeLocatorItem !== undefined;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Tests whether object is an instance of {@link ITotalColumnLocator}
|
|
22
|
-
*
|
|
23
|
-
* @alpha
|
|
24
|
-
*/
|
|
25
|
-
export function isTotalColumnLocator(obj) {
|
|
26
|
-
return !isEmpty(obj) && obj.totalLocatorItem !== undefined;
|
|
27
|
-
}
|
|
3
|
+
import { attributeLocalId } from "@gooddata/sdk-model";
|
|
4
|
+
import { newMeasureColumnLocator, } from "./locators.js";
|
|
28
5
|
/**
|
|
29
6
|
* Tests whether object is an instance of {@link IAbsoluteColumnWidth}
|
|
30
7
|
*
|
|
@@ -86,32 +63,6 @@ export function isAllMeasureColumnWidthItem(obj) {
|
|
|
86
63
|
export function isWeakMeasureColumnWidthItem(obj) {
|
|
87
64
|
return (!isEmpty(obj) && obj.measureColumnWidthItem?.locator !== undefined);
|
|
88
65
|
}
|
|
89
|
-
/**
|
|
90
|
-
* @internal
|
|
91
|
-
*/
|
|
92
|
-
export function newMeasureColumnLocator(measureOrId) {
|
|
93
|
-
const measureIdentifier = measureLocalId(measureOrId);
|
|
94
|
-
return {
|
|
95
|
-
measureLocatorItem: {
|
|
96
|
-
measureIdentifier,
|
|
97
|
-
},
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Creates a new total column locator
|
|
102
|
-
*
|
|
103
|
-
* @param attributeOrId - Column attribute specified by either value or by localId reference
|
|
104
|
-
* @param totalFunction - Function for the total, such as sum, max, min...
|
|
105
|
-
* @alpha
|
|
106
|
-
*/
|
|
107
|
-
export function newTotalColumnLocator(attributeOrId, totalFunction) {
|
|
108
|
-
return {
|
|
109
|
-
totalLocatorItem: {
|
|
110
|
-
attributeIdentifier: attributeLocalId(attributeOrId),
|
|
111
|
-
totalFunction,
|
|
112
|
-
},
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
66
|
/**
|
|
116
67
|
* Creates width item that will set width of a column which contains values of a row attribute.
|
|
117
68
|
*
|
|
@@ -221,29 +172,4 @@ export function setNewWidthForSelectedColumns(measuresOrIds, locators, width, al
|
|
|
221
172
|
},
|
|
222
173
|
};
|
|
223
174
|
}
|
|
224
|
-
/**
|
|
225
|
-
* Creates a new attribute column locator
|
|
226
|
-
*
|
|
227
|
-
* @remarks
|
|
228
|
-
* This is used to narrow down location of measure columns in pivot table, where
|
|
229
|
-
* measures are further scoped by different attribute elements - imagine pivot table with defined for measure 'Amount' and column
|
|
230
|
-
* attribute 'Product'. The table will have multiple columns for the 'Amount' measure - each for different element of the
|
|
231
|
-
* 'Product' attribute. In this context, identifying particular measure columns needs to be more specific.
|
|
232
|
-
*
|
|
233
|
-
* The attribute column locator can match either single element of particular attribute, or all elements of particular
|
|
234
|
-
* attribute.
|
|
235
|
-
*
|
|
236
|
-
* @param attributeOrId - Column attribute specified by either value or by localId reference
|
|
237
|
-
* @param element - specify attribute element URI or primary key; if not specified, the locator will match
|
|
238
|
-
* all elements of the attribute
|
|
239
|
-
* @alpha
|
|
240
|
-
*/
|
|
241
|
-
export function newAttributeColumnLocator(attributeOrId, element) {
|
|
242
|
-
return {
|
|
243
|
-
attributeLocatorItem: {
|
|
244
|
-
attributeIdentifier: attributeLocalId(attributeOrId),
|
|
245
|
-
element,
|
|
246
|
-
},
|
|
247
|
-
};
|
|
248
|
-
}
|
|
249
175
|
//# sourceMappingURL=resizing.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resizing.js","sourceRoot":"","sources":["../../../src/next/types/resizing.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAoC,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"resizing.js","sourceRoot":"","sources":["../../../src/next/types/resizing.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAoC,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEzF,OAAO,EAKH,uBAAuB,GAC1B,MAAM,eAAe,CAAC;AA8MvB;;;;GAIG;AACH,MAAM,UAAU,qBAAqB,CAAC,WAAwB;IAC1D,OAAO,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,WAAW,CAAC,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,EAC3D,KAAsB,EACtB,cAAwB;IAExB,IAAI,eAAe,GAA4B,EAAE,CAAC;IAElD,IAAI,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,CAAC;QAC/B,eAAe,GAAG,aAAa,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;IACjE,CAAC;SAAM,IAAI,aAAa,EAAE,CAAC;QACvB,eAAe,CAAC,IAAI,CAAC,uBAAuB,CAAC,aAAa,CAAC,CAAC,CAAC;IACjE,CAAC;IAED,MAAM,aAAa,GAAG,cAAc,KAAK,SAAS,IAAI,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAEjG,sGAAsG;IACtG,OAAO;QACH,sBAAsB,EAAE;YACpB,KAAK,EAAE;gBACH,KAAK,EAAE,KAAK;gBACZ,GAAG,aAAa;aACnB;YACD,QAAQ,EAAE,CAAC,GAAG,QAAQ,EAAE,GAAG,eAAe,CAAC;SAC9C;KACJ,CAAC;AACN,CAAC"}
|
|
@@ -1,15 +1,54 @@
|
|
|
1
|
+
import { ColumnLocator } from "./locators.js";
|
|
2
|
+
/**
|
|
3
|
+
* Column text wrapping item that specifies text wrapping settings for specific column(s).
|
|
4
|
+
*
|
|
5
|
+
* @alpha
|
|
6
|
+
*/
|
|
7
|
+
export interface IColumnTextWrappingItem {
|
|
8
|
+
/**
|
|
9
|
+
* Column locators to identify which column this wrapping applies to.
|
|
10
|
+
*/
|
|
11
|
+
locators: ColumnLocator[];
|
|
12
|
+
/**
|
|
13
|
+
* Whether to wrap text in cells for the specified columns.
|
|
14
|
+
*/
|
|
15
|
+
wrapText?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Whether to wrap text in column headers for the specified columns.
|
|
18
|
+
*/
|
|
19
|
+
wrapHeaderText?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Match type determines how the locators are matched against columns.
|
|
22
|
+
*
|
|
23
|
+
* - "column" (default): Exact match - all locators must match exactly
|
|
24
|
+
* - "pivotGroup": Pivot group match - locators match the pivot group and all its descendant columns
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* Use "pivotGroup" for pivot group headers to match all descendant columns.
|
|
28
|
+
* Use "column" (or omit) for specific column overrides.
|
|
29
|
+
*/
|
|
30
|
+
matchType?: "column" | "pivotGroup";
|
|
31
|
+
}
|
|
1
32
|
/**
|
|
2
33
|
* @alpha
|
|
3
34
|
*/
|
|
4
35
|
export interface ITextWrapping {
|
|
5
36
|
/**
|
|
6
|
-
* Whether to wrap text in cells.
|
|
37
|
+
* Whether to wrap text in cells (global for all columns).
|
|
7
38
|
*/
|
|
8
39
|
wrapText?: boolean;
|
|
9
40
|
/**
|
|
10
|
-
* Whether to wrap text in column headers.
|
|
41
|
+
* Whether to wrap text in column headers (global for all columns).
|
|
11
42
|
*/
|
|
12
43
|
wrapHeaderText?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Per-column text wrapping overrides that take precedence over the global settings.
|
|
46
|
+
*
|
|
47
|
+
* @remarks
|
|
48
|
+
* Each item specifies text wrapping for one or more columns identified by locators.
|
|
49
|
+
* This allows different columns to have different text wrapping settings.
|
|
50
|
+
*/
|
|
51
|
+
columnOverrides?: IColumnTextWrappingItem[];
|
|
13
52
|
}
|
|
14
53
|
/**
|
|
15
54
|
* @alpha
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textWrapping.d.ts","sourceRoot":"","sources":["../../../src/next/types/textWrapping.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"textWrapping.d.ts","sourceRoot":"","sources":["../../../src/next/types/textWrapping.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC;;OAEG;IACH,QAAQ,EAAE,aAAa,EAAE,CAAC;IAE1B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;;;;;;;OASG;IACH,SAAS,CAAC,EAAE,QAAQ,GAAG,YAAY,CAAC;CACvC;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,uBAAuB,EAAE,CAAC;CAC/C;AAED;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG;IAC3C;;OAEG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC;CAChC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-pivot",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.5.0-alpha.1",
|
|
4
4
|
"description": "GoodData.UI SDK - Pivot Table",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"ts-invariant": "^0.7.5",
|
|
44
44
|
"tslib": "2.8.1",
|
|
45
45
|
"uuid": "^11.1.0",
|
|
46
|
-
"@gooddata/sdk-backend-spi": "11.
|
|
47
|
-
"@gooddata/sdk-model": "11.
|
|
48
|
-
"@gooddata/sdk-ui
|
|
49
|
-
"@gooddata/sdk-ui": "11.
|
|
50
|
-
"@gooddata/sdk-ui-
|
|
51
|
-
"@gooddata/sdk-ui-vis-commons": "11.
|
|
46
|
+
"@gooddata/sdk-backend-spi": "11.5.0-alpha.1",
|
|
47
|
+
"@gooddata/sdk-model": "11.5.0-alpha.1",
|
|
48
|
+
"@gooddata/sdk-ui": "11.5.0-alpha.1",
|
|
49
|
+
"@gooddata/sdk-ui-kit": "11.5.0-alpha.1",
|
|
50
|
+
"@gooddata/sdk-ui-theme-provider": "11.5.0-alpha.1",
|
|
51
|
+
"@gooddata/sdk-ui-vis-commons": "11.5.0-alpha.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@gooddata/stylelint-config": "^5.0.0",
|
|
@@ -91,10 +91,10 @@
|
|
|
91
91
|
"typescript": "5.8.3",
|
|
92
92
|
"vitest": "3.2.4",
|
|
93
93
|
"vitest-dom": "0.1.1",
|
|
94
|
-
"@gooddata/
|
|
95
|
-
"@gooddata/
|
|
96
|
-
"@gooddata/sdk-backend-base": "11.
|
|
97
|
-
"@gooddata/sdk-backend-mockingbird": "11.
|
|
94
|
+
"@gooddata/reference-workspace": "11.5.0-alpha.1",
|
|
95
|
+
"@gooddata/eslint-config": "11.5.0-alpha.1",
|
|
96
|
+
"@gooddata/sdk-backend-base": "11.5.0-alpha.1",
|
|
97
|
+
"@gooddata/sdk-backend-mockingbird": "11.5.0-alpha.1"
|
|
98
98
|
},
|
|
99
99
|
"peerDependencies": {
|
|
100
100
|
"react": "^18.0.0 || ^19.0.0",
|