@gooddata/sdk-ui 10.37.0-alpha.1 → 10.38.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.
Files changed (49) hide show
  1. package/esm/base/index.d.ts +2 -0
  2. package/esm/base/index.d.ts.map +1 -1
  3. package/esm/base/index.js +2 -0
  4. package/esm/base/index.js.map +1 -1
  5. package/esm/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.d.ts +2 -2
  6. package/esm/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.d.ts.map +1 -1
  7. package/esm/base/localization/TranslationsCustomizationProvider/TranslationsCustomizationProvider.js.map +1 -1
  8. package/esm/base/localization/bundles/en-US.json +16 -0
  9. package/esm/base/localization/bundles/en-US.localization-bundle.d.ts +4 -0
  10. package/esm/base/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
  11. package/esm/base/localization/bundles/en-US.localization-bundle.js +4 -0
  12. package/esm/base/localization/bundles/en-US.localization-bundle.js.map +1 -1
  13. package/esm/base/react/placeholders/context.d.ts +2 -2
  14. package/esm/base/react/placeholders/context.d.ts.map +1 -1
  15. package/esm/base/react/placeholders/context.js +1 -1
  16. package/esm/base/react/placeholders/context.js.map +1 -1
  17. package/esm/base/results/tableData/dataViewToTableData.d.ts.map +1 -1
  18. package/esm/base/results/tableData/dataViewToTableData.js +1 -1
  19. package/esm/base/results/tableData/dataViewToTableData.js.map +1 -1
  20. package/esm/base/results/tableData/interfaces/cells.d.ts +435 -34
  21. package/esm/base/results/tableData/interfaces/cells.d.ts.map +1 -1
  22. package/esm/base/results/tableData/interfaces/cells.js +73 -1
  23. package/esm/base/results/tableData/interfaces/cells.js.map +1 -1
  24. package/esm/base/results/tableData/interfaces/columns.d.ts +375 -14
  25. package/esm/base/results/tableData/interfaces/columns.d.ts.map +1 -1
  26. package/esm/base/results/tableData/interfaces/columns.js +47 -1
  27. package/esm/base/results/tableData/interfaces/columns.js.map +1 -1
  28. package/esm/base/results/tableData/interfaces/index.d.ts +24 -0
  29. package/esm/base/results/tableData/interfaces/index.d.ts.map +1 -1
  30. package/esm/base/results/tableData/interfaces/mappingOptions.d.ts +3 -0
  31. package/esm/base/results/tableData/interfaces/mappingOptions.d.ts.map +1 -1
  32. package/esm/base/results/tableData/interfaces/rows.d.ts +21 -0
  33. package/esm/base/results/tableData/interfaces/rows.d.ts.map +1 -1
  34. package/esm/base/results/tableData/interfaces/scope.d.ts +11 -0
  35. package/esm/base/results/tableData/interfaces/scope.d.ts.map +1 -1
  36. package/esm/base/results/tableData/mapping/collect/collectColumnDefinitions.d.ts +2 -1
  37. package/esm/base/results/tableData/mapping/collect/collectColumnDefinitions.d.ts.map +1 -1
  38. package/esm/base/results/tableData/mapping/collect/collectColumnDefinitions.js +100 -19
  39. package/esm/base/results/tableData/mapping/collect/collectColumnDefinitions.js.map +1 -1
  40. package/esm/base/results/tableData/mapping/grandTotalRow/grandTotal.d.ts.map +1 -1
  41. package/esm/base/results/tableData/mapping/grandTotalRow/grandTotal.js +6 -5
  42. package/esm/base/results/tableData/mapping/grandTotalRow/grandTotal.js.map +1 -1
  43. package/esm/base/results/tableData/mapping/grandTotalRow/measureGroupHeader.d.ts.map +1 -1
  44. package/esm/base/results/tableData/mapping/grandTotalRow/measureGroupHeader.js +1 -11
  45. package/esm/base/results/tableData/mapping/grandTotalRow/measureGroupHeader.js.map +1 -1
  46. package/esm/base/results/tableData/mapping/subtotalRow/grandTotal.js +5 -3
  47. package/esm/base/results/tableData/mapping/subtotalRow/grandTotal.js.map +1 -1
  48. package/esm/sdk-ui.d.ts +871 -37
  49. package/package.json +9 -9
@@ -1,60 +1,421 @@
1
- import { IAttributeDescriptor, IMeasureGroupDescriptor } from "@gooddata/sdk-model";
1
+ import { IAttributeDescriptor, IMeasureDescriptor, IMeasureGroupDescriptor, IResultAttributeHeader, IResultMeasureHeader, IResultTotalHeader } from "@gooddata/sdk-model";
2
2
  import { ITableDataHeaderScope } from "./scope.js";
3
3
  /**
4
+ * Represents all possible column types in a pivot table structure.
5
+ *
6
+ * Think of a pivot table as having these column types from left to right:
7
+ * 1. **Attribute columns** - Show row grouping labels (like "Country", "City")
8
+ * 2. **Measure header column** - Shows measure names (only when measures are in rows)
9
+ * 3. **Value/Total columns** - Show actual numbers and totals
10
+ *
11
+ * The exact combination depends on your data setup:
12
+ *
13
+ * **When measures are in columns (normal pivot table):**
14
+ * ```
15
+ * | | | Brand > Product | | |
16
+ * | | |---------------------|----------------|----------------|
17
+ * | | | GoodData | | ColMin Σ |
18
+ * | | |---------------------|----------------| |
19
+ * | | | Panther | Bear | Sum A | |
20
+ * |---------|--------|---------------------|----------------|----------------|
21
+ * | Country | City | Sales | Sales | Sales | Sales |
22
+ * |---------|--------|----------|----------|----------------|----------------|
23
+ * | USA | NYC | 100 | 150 | 250 | 100 |
24
+ * | USA | LA | 200 | 250 | 450 | 200 |
25
+ * ```
26
+ * - Country, City are {@link ITableAttributeColumnDefinition}
27
+ * - Sales is {@link ITableValueColumnDefinition}
28
+ * - Sum A is {@link ITableSubtotalColumnDefinition}
29
+ * - ColSum Σ is {@link ITableGrandTotalColumnDefinition}
30
+ *
31
+ * **When measures are in rows (transposed + non-pivoted):**
32
+ * ```
33
+ * | Country | City | MeasureGroupHeader | MeasureGroupValue |
34
+ * |---------|------|---------------------|-----------------------|
35
+ * | USA | NYC | Sales | 100 |
36
+ * | USA | NYC | Profit | 20 |
37
+ * ```
38
+ * - Country, City are {@link ITableAttributeColumnDefinition}
39
+ * - MeasureGroupHeader is {@link ITableMeasureGroupHeaderColumnDefinition}
40
+ * - MeasureGroupValue is {@link ITableMeasureGroupValueColumnDefinition}
41
+ *
42
+ * **When measures are in rows (transposed + pivoted):**
43
+ * ```
44
+ * | | Quarter | |
45
+ * |----------------------------------------|----------------| |
46
+ * | Country | City | MeasureGroupHeader | Q1 | ColSum Σ |
47
+ * |---------|------|-----------------------|----------------|----------------|
48
+ * | USA | NYC | Sales | 250 | 500 |
49
+ * | USA | NYC | Profit | 450 | 900 |
50
+ * ```
51
+ * - Country, City are {@link ITableAttributeColumnDefinition}
52
+ * - MeasureGroupHeader is {@link ITableMeasureGroupHeaderColumnDefinition}
53
+ * - Q1 is {@link ITableValueColumnDefinition}
54
+ * - ColSum Σ is {@link ITableGrandTotalColumnDefinition}
55
+ *
4
56
  * @alpha
5
57
  */
6
58
  export type ITableColumnDefinition = ITableAttributeColumnDefinition | ITableValueColumnDefinition | ITableMeasureGroupHeaderColumnDefinition | ITableMeasureGroupValueColumnDefinition | ITableSubtotalColumnDefinition | ITableGrandTotalColumnDefinition;
7
59
  /**
60
+ * Defines a column that shows row attribute values (like "Country" or "City").
61
+ *
62
+ * **What it does:**
63
+ * These are the leftmost columns that show your row groupings. If you have
64
+ * "Country" and "City" in your rows bucket, you'll get two attribute columns.
65
+ *
66
+ * **When it's created:**
67
+ * - Automatically created for each attribute in the rows bucket
68
+ * - Always appears first (leftmost) in the table
69
+ * - Created regardless of whether you have measures in rows or columns
70
+ *
71
+ * **Real example:**
72
+ * ```
73
+ * | Country | City | Sales | <- "Country" and "City" are attribute columns
74
+ * |---------|------|-------|
75
+ * | USA | NYC | 100 |
76
+ * | USA | LA | 200 |
77
+ * ```
78
+ *
8
79
  * @alpha
9
80
  */
10
81
  export interface ITableAttributeColumnDefinition {
82
+ /**
83
+ * Always "attribute" - identifies this as an attribute column.
84
+ */
11
85
  type: "attribute";
86
+ /**
87
+ * Position of this column in the final table (0-based).
88
+ */
12
89
  columnIndex: number;
90
+ /**
91
+ * Which attribute from the rows bucket this column represents (0-based).
92
+ */
13
93
  rowHeaderIndex: number;
94
+ /**
95
+ * Metadata about this attribute (name, data type, formatting, etc.).
96
+ * Contains information like the attribute's display name, local identifier, etc.
97
+ */
14
98
  attributeDescriptor: IAttributeDescriptor;
15
99
  }
16
100
  /**
101
+ * Defines columns that contain actual data values (values and subtotals).
102
+ *
103
+ * **What it does:**
104
+ * These columns show your actual data - sales numbers, counts, percentages, etc.
105
+ * The `columnScope` tells you exactly what this column represents.
106
+ *
107
+ * **When it's created:**
108
+ * The system creates these based on your column headers. Here's how:
109
+ *
110
+ * **Simple case - just measures:**
111
+ * ```
112
+ * | Country | Sales | Profit | <- Sales and Profit are value columns
113
+ * |---------|-------|--------|
114
+ * | USA | 100 | 20 |
115
+ * ```
116
+ *
117
+ * **Pivoted case - attributes + measures in columns:**
118
+ * ```
119
+ * | Country | East Sales | East Profit | West Sales | West Profit |
120
+ * |---------|------------|-------------|------------|-------------|
121
+ * | USA | 100 | 20 | 150 | 30 |
122
+ * ```
123
+ *
124
+ * **Transposed case - measures in rows, attributes in columns:**
125
+ * ```
126
+ * | Country | Measure | East | West |
127
+ * |---------|---------|------|------|
128
+ * | USA | Sales | 100 | 150 |
129
+ * | USA | Profit | 20 | 30 |
130
+ * ```
131
+ *
17
132
  * @alpha
18
133
  */
19
- export interface ITableValueColumnDefinition {
134
+ export type ITableValueColumnDefinition = {
135
+ /**
136
+ * Always "value" - identifies this as a value column.
137
+ */
20
138
  type: "value";
139
+ /**
140
+ * Position of this column in the final table (0-based).
141
+ * Comes after all row attribute columns.
142
+ */
21
143
  columnIndex: number;
144
+ /**
145
+ * Position in the original column headers array.
146
+ */
22
147
  columnHeaderIndex: number;
148
+ /**
149
+ * Describes exactly what this column represents.
150
+ * For value, its always only regular attribute / measure scopes.
151
+ */
23
152
  columnScope: ITableDataHeaderScope[];
153
+ } & (/**
154
+ * Handles case, when pivoting and measures are in rows.
155
+ */ {
156
+ isEmpty: false;
157
+ isTransposed: true;
158
+ attributeHeader: IResultAttributeHeader;
159
+ attributeDescriptor: IAttributeDescriptor;
160
+ }
161
+ /**
162
+ * Handles standard pivoting case without transposition.
163
+ */
164
+ | {
165
+ isEmpty: false;
166
+ isTransposed: false;
167
+ measureHeader: IResultMeasureHeader;
168
+ measureDescriptor: IMeasureDescriptor;
169
+ }
170
+ /**
171
+ * Handles case, when pivoting, but there are no measures.
172
+ */
173
+ | {
174
+ isEmpty: true;
175
+ isTransposed: false;
176
+ attributeHeader: IResultAttributeHeader;
177
+ attributeDescriptor: IAttributeDescriptor;
178
+ });
179
+ /**
180
+ * Defines columns that show subtotal values.
181
+ *
182
+ * **What it does:**
183
+ * Shows subtotals - these are columns that show the aggregation of values for a specific attribute pivoting subgroup.
184
+ *
185
+ * **When it's created:**
186
+ * - Only when you have at least 2 attributes in the columns bucket (pivoting).
187
+ * - Only when you set total for pivoting subgroup (not the leftmost column attribute - then it's grand total).
188
+ * - In the example, total is set for Product x Sales.
189
+ *
190
+ * **Real example:**
191
+ * ```
192
+ * | | | Brand > Product | |
193
+ * | | |---------------------|----------------|
194
+ * | | | GoodData | |
195
+ * | | |---------------------|----------------|
196
+ * | | | Panther | Bear | Sum A |
197
+ * |---------|--------|---------------------|----------------|
198
+ * | Country | City | Sales | Sales | Sales |
199
+ * |---------|--------|----------|----------|----------------|
200
+ * | USA | NYC | 100 | 150 | 250 |
201
+ * | USA | LA | 200 | 250 | 450 |
202
+ * ```
203
+ *
204
+ * @alpha
205
+ */
206
+ export type ITableSubtotalColumnDefinition = {
207
+ /**
208
+ * Always "subtotal" - identifies this as a subtotal column.
209
+ */
210
+ type: "subtotal";
211
+ /**
212
+ * Position of this column in the final table (0-based).
213
+ * Usually appears after regular value columns for each pivot subgroup.
214
+ */
215
+ columnIndex: number;
216
+ /**
217
+ * Position in the original headers array.
218
+ */
219
+ columnHeaderIndex: number;
220
+ /**
221
+ * Describes exactly what this column represents.
222
+ * For subtotal, its always mix of regular attribute / measure scopes and total scopes.
223
+ */
224
+ columnScope: ITableDataHeaderScope[];
225
+ } & (/**
226
+ * Handles case, when pivoting and measures are in rows.
227
+ */ {
228
+ isEmpty: false;
229
+ isTransposed: true;
230
+ totalHeader: IResultTotalHeader;
231
+ attributeDescriptor: IAttributeDescriptor;
24
232
  }
25
233
  /**
234
+ * Handles standard pivoting case without transposition.
235
+ */
236
+ | {
237
+ isEmpty: false;
238
+ isTransposed: false;
239
+ totalHeader: IResultTotalHeader;
240
+ measureDescriptor: IMeasureDescriptor;
241
+ });
242
+ /**
243
+ * Defines columns that show grand total values.
244
+ *
245
+ * **What it does:**
246
+ * Shows grand totals - these are columns that show the aggregation of values for the top level pivoting attribute,
247
+ * always appears as the rightmost columns.
248
+ *
249
+ * **When it's created:**
250
+ * - Only when you have at least 1 attribute in the columns bucket (pivoting).
251
+ * - Only when you set total for the leftmost column attribute.
252
+ * - In the example, total is set for Brand x Sales.
253
+ *
254
+ * **Real example:**
255
+ * ```
256
+ * | | | Brand > Product | |
257
+ * | | |---------------------|----------------|
258
+ * | | | GoodData | ColMin Σ |
259
+ * | | |---------------------| |
260
+ * | | | Panther | Bear | |
261
+ * |---------|--------|---------------------|----------------|
262
+ * | Country | City | Sales | Sales | Sales |
263
+ * |---------|--------|----------|----------|----------------|
264
+ * | USA | NYC | 100 | 150 | 100 |
265
+ * | USA | LA | 200 | 250 | 200 |
266
+ * ```
267
+ *
268
+ * @alpha
269
+ */
270
+ export type ITableGrandTotalColumnDefinition = {
271
+ /**
272
+ * Always "grandTotal" - identifies this as a grand total column.
273
+ */
274
+ type: "grandTotal";
275
+ /**
276
+ * Position of this column in the final table (0-based).
277
+ * Usually the rightmost column in the table.
278
+ */
279
+ columnIndex: number;
280
+ /**
281
+ * Position in the original column headers array.
282
+ */
283
+ columnHeaderIndex: number;
284
+ /**
285
+ * Describes exactly what this column represents.
286
+ */
287
+ columnScope: ITableDataHeaderScope[];
288
+ } & (/**
289
+ * Handles case, when pivoting and measures are in rows.
290
+ */ {
291
+ isEmpty: false;
292
+ isTransposed: true;
293
+ totalHeader: IResultTotalHeader;
294
+ attributeDescriptor: IAttributeDescriptor;
295
+ } | /**
296
+ * Handles standard pivoting case without transposition.
297
+ */ {
298
+ isEmpty: false;
299
+ isTransposed: false;
300
+ totalHeader: IResultTotalHeader;
301
+ measureDescriptor: IMeasureDescriptor;
302
+ });
303
+ /**
304
+ * Defines the column that shows measure names when measures are in rows.
305
+ *
306
+ * **What it does:**
307
+ * When you put measures in rows instead of columns, you need a column to show
308
+ * which measure each row represents ("Sales", "Profit", etc.).
309
+ *
310
+ * **When it's created:**
311
+ * - Only when `measureDimension === "rows"` (measures are transposed)
312
+ * - Always created when you have measures in rows
313
+ * - Appears right after your attribute columns
314
+ *
315
+ * **Real example:**
316
+ * ```
317
+ * | Country | City | Measure | Q1 | Q2 | <- "Measure" column shows measure names
318
+ * |---------|------|---------|-----|-----|
319
+ * | USA | NYC | Sales | 100 | 150 |
320
+ * | USA | NYC | Profit | 20 | 30 |
321
+ * | USA | LA | Sales | 200 | 250 |
322
+ * | USA | LA | Profit | 40 | 50 |
323
+ * ```
324
+ *
26
325
  * @alpha
27
326
  */
28
327
  export interface ITableMeasureGroupHeaderColumnDefinition {
328
+ /**
329
+ * Always "measureGroupHeader" - identifies this as a measure names column.
330
+ */
29
331
  type: "measureGroupHeader";
332
+ /**
333
+ * Position of this column in the final table (0-based).
334
+ * Always appears right after attribute columns, before value columns.
335
+ */
30
336
  columnIndex: number;
337
+ /**
338
+ * Metadata about the group of measures being displayed.
339
+ * Contains information about all measures that will appear in rows.
340
+ */
31
341
  measureGroupDescriptor: IMeasureGroupDescriptor;
342
+ /**
343
+ * Descriptors for attributes that are in the columns bucket.
344
+ */
32
345
  attributeDescriptors: IAttributeDescriptor[];
33
346
  }
34
347
  /**
348
+ * Defines the single value column when measures are in rows and there are no column attributes.
349
+ *
350
+ * **What it does:**
351
+ * When measures are in rows and you don't have any attributes in columns,
352
+ * you get one simple "Values" column that shows all the numbers.
353
+ *
354
+ * **When it's created:**
355
+ * - Only when measures are in rows and there are no pivoting columns.
356
+ * - Appears as the rightmost column after the measure header column
357
+ *
358
+ * **Real example:**
359
+ * ```
360
+ * | Country | City | Measure | Value | <- "Value" is the measure group value column
361
+ * |---------|------|---------|-------|
362
+ * | USA | NYC | Sales | 100 |
363
+ * | USA | NYC | Profit | 20 |
364
+ * | USA | LA | Sales | 200 |
365
+ * | USA | LA | Profit | 40 |
366
+ * ```
367
+ *
368
+ * **What happens if you DO have column attributes:**
369
+ * If you have attributes in columns (like "Q1", "Q2"), then instead of this single
370
+ * column, you get multiple `ITableValueColumnDefinition` columns - one for each
371
+ * column attribute combination.
372
+ *
35
373
  * @alpha
36
374
  */
37
375
  export interface ITableMeasureGroupValueColumnDefinition {
376
+ /**
377
+ * Always "measureGroupValue" - identifies this as the single values column
378
+ * when measures are in rows and there are no column attributes.
379
+ */
38
380
  type: "measureGroupValue";
381
+ /**
382
+ * Position of this column in the final table (0-based).
383
+ * Always the rightmost column when this type is used.
384
+ */
39
385
  columnIndex: number;
386
+ /**
387
+ * Metadata about the group of measures whose values are shown.
388
+ */
40
389
  measureGroupDescriptor: IMeasureGroupDescriptor;
41
390
  }
42
391
  /**
392
+ * Type guard to check if a column definition is an attribute column
43
393
  * @alpha
44
394
  */
45
- export interface ITableSubtotalColumnDefinition {
46
- type: "subtotal";
47
- columnIndex: number;
48
- columnHeaderIndex: number;
49
- columnScope: ITableDataHeaderScope[];
50
- }
395
+ export declare function isAttributeColumnDefinition(columnDefinition: unknown): columnDefinition is ITableAttributeColumnDefinition;
51
396
  /**
397
+ * Type guard to check if a column definition is a value column
52
398
  * @alpha
53
399
  */
54
- export interface ITableGrandTotalColumnDefinition {
55
- type: "grandTotal";
56
- columnIndex: number;
57
- columnHeaderIndex: number;
58
- columnScope: ITableDataHeaderScope[];
59
- }
400
+ export declare function isValueColumnDefinition(columnDefinition: unknown): columnDefinition is ITableValueColumnDefinition;
401
+ /**
402
+ * Type guard to check if a column definition is a measure group header column
403
+ * @alpha
404
+ */
405
+ export declare function isMeasureGroupHeaderColumnDefinition(columnDefinition: unknown): columnDefinition is ITableMeasureGroupHeaderColumnDefinition;
406
+ /**
407
+ * Type guard to check if a column definition is a measure group value column
408
+ * @alpha
409
+ */
410
+ export declare function isMeasureGroupValueColumnDefinition(columnDefinition: unknown): columnDefinition is ITableMeasureGroupValueColumnDefinition;
411
+ /**
412
+ * Type guard to check if a column definition is a subtotal column
413
+ * @alpha
414
+ */
415
+ export declare function isSubtotalColumnDefinition(columnDefinition: unknown): columnDefinition is ITableSubtotalColumnDefinition;
416
+ /**
417
+ * Type guard to check if a column definition is a grand total column
418
+ * @alpha
419
+ */
420
+ export declare function isGrandTotalColumnDefinition(columnDefinition: unknown): columnDefinition is ITableGrandTotalColumnDefinition;
60
421
  //# sourceMappingURL=columns.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"columns.d.ts","sourceRoot":"","sources":["../../../../../src/base/results/tableData/interfaces/columns.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAC5B,+BAA+B,GAC/B,2BAA2B,GAC3B,wCAAwC,GACxC,uCAAuC,GACvC,8BAA8B,GAC9B,gCAAgC,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC5C,IAAI,EAAE,WAAW,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,EAAE,oBAAoB,CAAC;CAC7C;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IACxC,IAAI,EAAE,OAAO,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,WAAW,EAAE,qBAAqB,EAAE,CAAC;CACxC;AAED;;GAEG;AACH,MAAM,WAAW,wCAAwC;IACrD,IAAI,EAAE,oBAAoB,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,sBAAsB,EAAE,uBAAuB,CAAC;IAChD,oBAAoB,EAAE,oBAAoB,EAAE,CAAC;CAChD;AAED;;GAEG;AACH,MAAM,WAAW,uCAAuC;IACpD,IAAI,EAAE,mBAAmB,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,sBAAsB,EAAE,uBAAuB,CAAC;CACnD;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC3C,IAAI,EAAE,UAAU,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,WAAW,EAAE,qBAAqB,EAAE,CAAC;CACxC;AAED;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC7C,IAAI,EAAE,YAAY,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,WAAW,EAAE,qBAAqB,EAAE,CAAC;CACxC"}
1
+ {"version":3,"file":"columns.d.ts","sourceRoot":"","sources":["../../../../../src/base/results/tableData/interfaces/columns.ts"],"names":[],"mappings":"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"}
@@ -1,2 +1,48 @@
1
- export {};
1
+ import isEmpty from "lodash/isEmpty.js";
2
+ /**
3
+ * Type guard to check if a column definition is an attribute column
4
+ * @alpha
5
+ */
6
+ export function isAttributeColumnDefinition(columnDefinition) {
7
+ return (!isEmpty(columnDefinition) &&
8
+ columnDefinition.type === "attribute");
9
+ }
10
+ /**
11
+ * Type guard to check if a column definition is a value column
12
+ * @alpha
13
+ */
14
+ export function isValueColumnDefinition(columnDefinition) {
15
+ return !isEmpty(columnDefinition) && columnDefinition.type === "value";
16
+ }
17
+ /**
18
+ * Type guard to check if a column definition is a measure group header column
19
+ * @alpha
20
+ */
21
+ export function isMeasureGroupHeaderColumnDefinition(columnDefinition) {
22
+ return (!isEmpty(columnDefinition) &&
23
+ columnDefinition.type === "measureGroupHeader");
24
+ }
25
+ /**
26
+ * Type guard to check if a column definition is a measure group value column
27
+ * @alpha
28
+ */
29
+ export function isMeasureGroupValueColumnDefinition(columnDefinition) {
30
+ return (!isEmpty(columnDefinition) &&
31
+ columnDefinition.type === "measureGroupValue");
32
+ }
33
+ /**
34
+ * Type guard to check if a column definition is a subtotal column
35
+ * @alpha
36
+ */
37
+ export function isSubtotalColumnDefinition(columnDefinition) {
38
+ return (!isEmpty(columnDefinition) && columnDefinition.type === "subtotal");
39
+ }
40
+ /**
41
+ * Type guard to check if a column definition is a grand total column
42
+ * @alpha
43
+ */
44
+ export function isGrandTotalColumnDefinition(columnDefinition) {
45
+ return (!isEmpty(columnDefinition) &&
46
+ columnDefinition.type === "grandTotal");
47
+ }
2
48
  //# sourceMappingURL=columns.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../../src/base/results/tableData/interfaces/columns.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"columns.js","sourceRoot":"","sources":["../../../../../src/base/results/tableData/interfaces/columns.ts"],"names":[],"mappings":"AAUA,OAAO,OAAO,MAAM,mBAAmB,CAAC;AA4axC;;;GAGG;AACH,MAAM,UAAU,2BAA2B,CACvC,gBAAyB;IAEzB,OAAO,CACH,CAAC,OAAO,CAAC,gBAAgB,CAAC;QACzB,gBAAoD,CAAC,IAAI,KAAK,WAAW,CAC7E,CAAC;AACN,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,uBAAuB,CACnC,gBAAyB;IAEzB,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,IAAK,gBAAgD,CAAC,IAAI,KAAK,OAAO,CAAC;AAC5G,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,oCAAoC,CAChD,gBAAyB;IAEzB,OAAO,CACH,CAAC,OAAO,CAAC,gBAAgB,CAAC;QACzB,gBAA6D,CAAC,IAAI,KAAK,oBAAoB,CAC/F,CAAC;AACN,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,mCAAmC,CAC/C,gBAAyB;IAEzB,OAAO,CACH,CAAC,OAAO,CAAC,gBAAgB,CAAC;QACzB,gBAA4D,CAAC,IAAI,KAAK,mBAAmB,CAC7F,CAAC;AACN,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,0BAA0B,CACtC,gBAAyB;IAEzB,OAAO,CACH,CAAC,OAAO,CAAC,gBAAgB,CAAC,IAAK,gBAAmD,CAAC,IAAI,KAAK,UAAU,CACzG,CAAC;AACN,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,4BAA4B,CACxC,gBAAyB;IAEzB,OAAO,CACH,CAAC,OAAO,CAAC,gBAAgB,CAAC;QACzB,gBAAqD,CAAC,IAAI,KAAK,YAAY,CAC/E,CAAC;AACN,CAAC"}
@@ -2,13 +2,37 @@ import { ITableDataValue } from "./cells.js";
2
2
  import { ITableColumnDefinition } from "./columns.js";
3
3
  import { ITableRowDefinition } from "./rows.js";
4
4
  /**
5
+ * **The complete table data structure**.
6
+ *
7
+ * This is the main interface that represents a fully processed table data with all the metadata
8
+ * needed to render pivot tables, flat tables, and transposed tables.
9
+ *
10
+ * It contains the structural definitions (rows/columns), the actual cell data, and flags
11
+ * that describe the table layout and data interpretation.
12
+ *
5
13
  * @alpha
6
14
  */
7
15
  export type ITableData = {
16
+ /**
17
+ * Array of column definitions that describe the structure and meaning of each column.
18
+ */
8
19
  columnDefinitions: ITableColumnDefinition[];
20
+ /**
21
+ * Array of row definitions that describe the structure and meaning of each row.
22
+ */
9
23
  rowDefinitions: ITableRowDefinition[];
24
+ /**
25
+ * 2D array of table cell data where `data[rowIndex][columnIndex]` contains
26
+ * the formatted and raw values for that specific table position.
27
+ */
10
28
  data: ITableDataValue[][];
29
+ /**
30
+ * Whether the table uses pivoting (attributes in columns bucket).
31
+ */
11
32
  isPivoted: boolean;
33
+ /**
34
+ * Whether measures are transposed from columns into rows.
35
+ */
12
36
  isTransposed: boolean;
13
37
  };
14
38
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/base/results/tableData/interfaces/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAEhD;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACrB,iBAAiB,EAAE,sBAAsB,EAAE,CAAC;IAC5C,cAAc,EAAE,mBAAmB,EAAE,CAAC;IACtC,IAAI,EAAE,eAAe,EAAE,EAAE,CAAC;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;CACzB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/base/results/tableData/interfaces/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAEhD;;;;;;;;;;GAUG;AACH,MAAM,MAAM,UAAU,GAAG;IACrB;;OAEG;IACH,iBAAiB,EAAE,sBAAsB,EAAE,CAAC;IAC5C;;OAEG;IACH,cAAc,EAAE,mBAAmB,EAAE,CAAC;IACtC;;;OAGG;IACH,IAAI,EAAE,eAAe,EAAE,EAAE,CAAC;IAC1B;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;CACzB,CAAC"}
@@ -1,6 +1,9 @@
1
1
  import { DataValue } from "@gooddata/sdk-model";
2
2
  import { DataAccessConfig } from "../../dataAccessConfig.js";
3
3
  /**
4
+ * Configuration object passed to all mapping functions that transform data view results
5
+ * into table data cells. Contains all the raw data arrays and configuration needed
6
+ * to properly map, format, and display values in the table structure.
4
7
  * @internal
5
8
  */
6
9
  export interface IMappingOptions {
@@ -1 +1 @@
1
- {"version":3,"file":"mappingOptions.d.ts","sourceRoot":"","sources":["../../../../../src/base/results/tableData/interfaces/mappingOptions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAE7D;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,MAAM,EAAE,gBAAgB,CAAC;IACzB,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,SAAS,EAAE,EAAE,CAAC;IACvB,kBAAkB,CAAC,EAAE,SAAS,EAAE,EAAE,CAAC;IACnC,qBAAqB,CAAC,EAAE,SAAS,EAAE,EAAE,CAAC;IACtC,iBAAiB,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;IACpC,WAAW,EAAE,OAAO,CAAC;CACxB"}
1
+ {"version":3,"file":"mappingOptions.d.ts","sourceRoot":"","sources":["../../../../../src/base/results/tableData/interfaces/mappingOptions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAE7D;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC5B,MAAM,EAAE,gBAAgB,CAAC;IACzB,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,SAAS,EAAE,EAAE,CAAC;IACvB,kBAAkB,CAAC,EAAE,SAAS,EAAE,EAAE,CAAC;IACnC,qBAAqB,CAAC,EAAE,SAAS,EAAE,EAAE,CAAC;IACtC,iBAAiB,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;IACpC,WAAW,EAAE,OAAO,CAAC;CACxB"}
@@ -1,6 +1,27 @@
1
1
  import { IMeasureDescriptor, IAttributeDescriptor, TotalType } from "@gooddata/sdk-model";
2
2
  import { ITableDataHeaderScope } from "./scope.js";
3
3
  /**
4
+ * Union of all possible row types in the table data structure.
5
+ *
6
+ * Think of the final table as a stack of these row types:
7
+ * 1. **Value rows** – normal data rows (one per combination of row attributes)
8
+ * 2. **Subtotal rows** – subtotal rows (only when subtotals are configured)
9
+ * 3. **Grand-total rows** – grand-total rows (only when grand totals are configured)
10
+ *
11
+ * The exact mix depends on your configuration (pivoting, transposition, totals settings).
12
+ *
13
+ * **Example layout (no transposition, subtotals + grand totals enabled):**
14
+ * ```
15
+ * | Country | City | Q1 Sales | Q2 Sales |
16
+ * |-------------|----------|----------|----------|
17
+ * | USA | NYC | 100 | 150 | <- value row
18
+ * | USA | LA | 200 | 250 | <- value row
19
+ * | USA | SUBTOTAL | 300 | 400 | <- subtotal row
20
+ * | CAN | TOR | 80 | 90 | <- value row
21
+ * | CAN | SUBTOTAL | 80 | 90 | <- subtotal row
22
+ * | GRAND TOTAL | | 380 | 490 | <- grand-total row
23
+ * ```
24
+ *
4
25
  * @alpha
5
26
  */
6
27
  export type ITableRowDefinition = ITableValueRowDefinition | ITableSubtotalRowDefinition | ITableGrandTotalRowDefinition;
@@ -1 +1 @@
1
- {"version":3,"file":"rows.d.ts","sourceRoot":"","sources":["../../../../../src/base/results/tableData/interfaces/rows.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAC1F,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,mBAAmB,GACzB,wBAAwB,GACxB,2BAA2B,GAC3B,6BAA6B,CAAC;AAEpC;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,qBAAqB,EAAE,CAAC;CACrC;AACD;;GAEG;AACH,MAAM,WAAW,2BAA2B;IACxC,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,qBAAqB,EAAE,CAAC;CACrC;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC1C,IAAI,EAAE,YAAY,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,mBAAmB,EAAE,oBAAoB,CAAC;IAC1C,kBAAkB,EAAE,kBAAkB,EAAE,CAAC;IACzC,SAAS,EAAE,SAAS,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;CAC9B"}
1
+ {"version":3,"file":"rows.d.ts","sourceRoot":"","sources":["../../../../../src/base/results/tableData/interfaces/rows.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAC1F,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,MAAM,mBAAmB,GACzB,wBAAwB,GACxB,2BAA2B,GAC3B,6BAA6B,CAAC;AAEpC;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,qBAAqB,EAAE,CAAC;CACrC;AACD;;GAEG;AACH,MAAM,WAAW,2BAA2B;IACxC,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,qBAAqB,EAAE,CAAC;CACrC;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC1C,IAAI,EAAE,YAAY,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,mBAAmB,EAAE,oBAAoB,CAAC;IAC1C,kBAAkB,EAAE,kBAAkB,EAAE,CAAC;IACzC,SAAS,EAAE,SAAS,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;CAC9B"}
@@ -1,5 +1,16 @@
1
1
  import { IMeasureDescriptor, IAttributeDescriptor, IResultAttributeHeader, IResultMeasureHeader, IResultTotalHeader, IMeasureGroupDescriptor } from "@gooddata/sdk-model";
2
2
  /**
3
+ * Union of all possible scope types that identify what a specific row or column represents.
4
+ *
5
+ * **Think of scopes as the "address" system for table data:**
6
+ * - Each row has a `rowScope: ITableDataHeaderScope[]` array
7
+ * - Each column has a `columnScope: ITableDataHeaderScope[]` array
8
+ * - These arrays describe the "path" to identify exactly what data belongs in each cell
9
+ *
10
+ * When all scopes are regular scopes (attributes and measures) it represents value column or value row.
11
+ * When scopes are mixed regular and total scopes, it represents subtotal column or subtotal row.
12
+ * When all scopes are total scopes it represents grand total column or grand total row.
13
+ *
3
14
  * @alpha
4
15
  */
5
16
  export type ITableDataHeaderScope = ITableDataAttributeScope | ITableDataAttributeTotalScope | ITableDataMeasureScope | ITableDataMeasureTotalScope | ITableDataMeasureGroupScope;
@@ -1 +1 @@
1
- {"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../../../../../src/base/results/tableData/interfaces/scope.ts"],"names":[],"mappings":"AACA,OAAO,EACH,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,oBAAoB,EACpB,kBAAkB,EAClB,uBAAuB,EAC1B,MAAM,qBAAqB,CAAC;AAE7B;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAC3B,wBAAwB,GACxB,6BAA6B,GAC7B,sBAAsB,GACtB,2BAA2B,GAC3B,2BAA2B,CAAC;AAElC;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,IAAI,EAAE,gBAAgB,CAAC;IACvB,UAAU,EAAE,oBAAoB,CAAC;IACjC,MAAM,EAAE,sBAAsB,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC,IAAI,EAAE,cAAc,CAAC;IACrB,UAAU,EAAE,kBAAkB,CAAC;IAC/B,MAAM,EAAE,oBAAoB,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IACxC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,UAAU,EAAE,kBAAkB,CAAC;IAC/B,MAAM,EAAE,kBAAkB,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC1C,IAAI,EAAE,qBAAqB,CAAC;IAC5B,UAAU,EAAE,oBAAoB,CAAC;IACjC,MAAM,EAAE,kBAAkB,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IACxC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,UAAU,EAAE,uBAAuB,CAAC;CACvC"}
1
+ {"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../../../../../src/base/results/tableData/interfaces/scope.ts"],"names":[],"mappings":"AACA,OAAO,EACH,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,oBAAoB,EACpB,kBAAkB,EAClB,uBAAuB,EAC1B,MAAM,qBAAqB,CAAC;AAE7B;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,qBAAqB,GAC3B,wBAAwB,GACxB,6BAA6B,GAC7B,sBAAsB,GACtB,2BAA2B,GAC3B,2BAA2B,CAAC;AAElC;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,IAAI,EAAE,gBAAgB,CAAC;IACvB,UAAU,EAAE,oBAAoB,CAAC;IACjC,MAAM,EAAE,sBAAsB,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC,IAAI,EAAE,cAAc,CAAC;IACrB,UAAU,EAAE,kBAAkB,CAAC;IAC/B,MAAM,EAAE,oBAAoB,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IACxC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,UAAU,EAAE,kBAAkB,CAAC;IAC/B,MAAM,EAAE,kBAAkB,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC1C,IAAI,EAAE,qBAAqB,CAAC;IAC5B,UAAU,EAAE,oBAAoB,CAAC;IACjC,MAAM,EAAE,kBAAkB,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IACxC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,UAAU,EAAE,uBAAuB,CAAC;CACvC"}
@@ -4,7 +4,8 @@ import { IMeasureDimensionInfo } from "./collectMeasureDimensionMeta.js";
4
4
  import { IHeadersInfo } from "./collectHeadersInfo.js";
5
5
  import { IDescriptorsInfo } from "./collectDescriptorsInfo.js";
6
6
  import { IBucketsInfo } from "./collectBucketsInfo.js";
7
- export declare function collectColumnDefinitions(dataView: IDataView, headersInfo: IHeadersInfo, descriptorsInfo: IDescriptorsInfo, bucketsInfo: IBucketsInfo, measureDimensionInfo: IMeasureDimensionInfo): {
7
+ import { ITranspositionInfo } from "./collectTranspositionInfo.js";
8
+ export declare function collectColumnDefinitions(dataView: IDataView, headersInfo: IHeadersInfo, descriptorsInfo: IDescriptorsInfo, bucketsInfo: IBucketsInfo, measureDimensionInfo: IMeasureDimensionInfo, transpositionInfo: ITranspositionInfo): {
8
9
  columnDefinitions: ITableColumnDefinition[];
9
10
  };
10
11
  //# sourceMappingURL=collectColumnDefinitions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"collectColumnDefinitions.d.ts","sourceRoot":"","sources":["../../../../../../src/base/results/tableData/mapping/collect/collectColumnDefinitions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,wBAAgB,wBAAwB,CACpC,QAAQ,EAAE,SAAS,EACnB,WAAW,EAAE,YAAY,EACzB,eAAe,EAAE,gBAAgB,EACjC,WAAW,EAAE,YAAY,EACzB,oBAAoB,EAAE,qBAAqB;;EA4F9C"}
1
+ {"version":3,"file":"collectColumnDefinitions.d.ts","sourceRoot":"","sources":["../../../../../../src/base/results/tableData/mapping/collect/collectColumnDefinitions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAQnE,wBAAgB,wBAAwB,CACpC,QAAQ,EAAE,SAAS,EACnB,WAAW,EAAE,YAAY,EACzB,eAAe,EAAE,gBAAgB,EACjC,WAAW,EAAE,YAAY,EACzB,oBAAoB,EAAE,qBAAqB,EAC3C,iBAAiB,EAAE,kBAAkB;;EAuLxC"}