@gooddata/sdk-ui-pivot 11.10.0-alpha.4 → 11.10.0-alpha.6

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 (48) hide show
  1. package/esm/index.d.ts +2 -2
  2. package/esm/index.d.ts.map +1 -1
  3. package/esm/index.js.map +1 -1
  4. package/esm/next/context/PivotTablePropsContext.d.ts.map +1 -1
  5. package/esm/next/context/PivotTablePropsContext.js +1 -0
  6. package/esm/next/context/PivotTablePropsContext.js.map +1 -1
  7. package/esm/next/features/aggregations/agGridAggregationsApi.d.ts +6 -1
  8. package/esm/next/features/aggregations/agGridAggregationsApi.d.ts.map +1 -1
  9. package/esm/next/features/aggregations/agGridAggregationsApi.js +26 -3
  10. package/esm/next/features/aggregations/agGridAggregationsApi.js.map +1 -1
  11. package/esm/next/features/data/createServerSideDataSource.d.ts +3 -1
  12. package/esm/next/features/data/createServerSideDataSource.d.ts.map +1 -1
  13. package/esm/next/features/data/createServerSideDataSource.js +17 -8
  14. package/esm/next/features/data/createServerSideDataSource.js.map +1 -1
  15. package/esm/next/features/data/dataViewToRowData.d.ts +8 -1
  16. package/esm/next/features/data/dataViewToRowData.d.ts.map +1 -1
  17. package/esm/next/features/data/dataViewToRowData.js +24 -2
  18. package/esm/next/features/data/dataViewToRowData.js.map +1 -1
  19. package/esm/next/features/styling/cell.d.ts +3 -0
  20. package/esm/next/features/styling/cell.d.ts.map +1 -1
  21. package/esm/next/features/styling/cell.js +46 -2
  22. package/esm/next/features/styling/cell.js.map +1 -1
  23. package/esm/next/hooks/useDataLoadingProps.d.ts.map +1 -1
  24. package/esm/next/hooks/useDataLoadingProps.js +3 -1
  25. package/esm/next/hooks/useDataLoadingProps.js.map +1 -1
  26. package/esm/next/hooks/useGrandTotalRows.d.ts.map +1 -1
  27. package/esm/next/hooks/useGrandTotalRows.js +5 -2
  28. package/esm/next/hooks/useGrandTotalRows.js.map +1 -1
  29. package/esm/next/index.d.ts +1 -0
  30. package/esm/next/index.d.ts.map +1 -1
  31. package/esm/next/index.js.map +1 -1
  32. package/esm/next/types/grandTotalsPosition.d.ts +30 -0
  33. package/esm/next/types/grandTotalsPosition.d.ts.map +1 -0
  34. package/esm/next/types/grandTotalsPosition.js +3 -0
  35. package/esm/next/types/grandTotalsPosition.js.map +1 -0
  36. package/esm/next/types/public.d.ts +2 -1
  37. package/esm/next/types/public.d.ts.map +1 -1
  38. package/esm/publicTypes.d.ts +23 -0
  39. package/esm/publicTypes.d.ts.map +1 -1
  40. package/esm/publicTypes.js +1 -0
  41. package/esm/publicTypes.js.map +1 -1
  42. package/esm/sdk-ui-pivot.d.ts +56 -1
  43. package/package.json +12 -12
  44. package/styles/css/main.css +14 -0
  45. package/styles/css/main.css.map +1 -1
  46. package/styles/css/pivotTableNext.css +14 -0
  47. package/styles/css/pivotTableNext.css.map +1 -1
  48. package/styles/scss/pivotTableNext.scss +33 -0
@@ -4,6 +4,18 @@
4
4
  .gd-pivot-table-next {
5
5
  @include ag.ag-grid-theme-variables;
6
6
 
7
+ // Align body rows with multi-row header without introducing a visual
8
+ // gap between them:
9
+ // - move the whole grid up by 1px
10
+ // - move the header viewport down by 1px
11
+ // This keeps the header in the same place relative to surrounding
12
+ // content but closes the 1px gap above the first data row.
13
+ margin-top: -1px;
14
+
15
+ .ag-header-viewport {
16
+ margin-top: 1px;
17
+ }
18
+
7
19
  --transparent-dash-border: 1px dashed transparent;
8
20
  --dash-border: 1px dashed var(--gd-table-gridColor);
9
21
  --solid-border: 1px solid var(--gd-table-gridColor);
@@ -509,6 +521,27 @@
509
521
  border-left: var(--dash-border);
510
522
  }
511
523
 
524
+ // When grand totals rows are pinned to the top, use a bottom border on the pinned cells.
525
+ &--pinned-top {
526
+ &:not(.ag-cell-range-selected) {
527
+ // stylelint-disable-next-line declaration-no-important
528
+ border-top-color: transparent !important;
529
+ border-bottom: var(--solid-border);
530
+ }
531
+ }
532
+
533
+ // For the last pinned row, reinforce the line with an inset
534
+ // box-shadow so it stays visible even if the container clips the border.
535
+ &--pinned-top-last {
536
+ &:not(.ag-cell-range-selected) {
537
+ box-shadow: inset 0 -1px 0 var(--gd-table-gridColor);
538
+ }
539
+
540
+ &.ag-cell-range-bottom {
541
+ box-shadow: inset 0 -1px 0 var(--ag-range-selection-border-color);
542
+ }
543
+ }
544
+
512
545
  // Show measure in row header menu button
513
546
  &:hover,
514
547
  &:has(:focus-visible) {