@linzjs/step-ag-grid 17.4.7 → 17.4.9

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@linzjs/step-ag-grid",
3
3
  "repository": "github:linz/step-ag-grid.git",
4
4
  "license": "MIT",
5
- "version": "17.4.7",
5
+ "version": "17.4.9",
6
6
  "keywords": [
7
7
  "aggrid",
8
8
  "ag-grid",
@@ -644,6 +644,7 @@ export const Grid = ({
644
644
  className={clsx(
645
645
  "Grid-container",
646
646
  theme,
647
+ "theme-specific",
647
648
  staleGrid && "Grid-sortIsStale",
648
649
  gridReady && params.rowData && autoSized && "Grid-ready",
649
650
  )}
@@ -8,13 +8,13 @@ $grid-base-font-size: calc(#{lui.$base-font-size} - 1px);
8
8
  @include ag.grid-styles(
9
9
  (
10
10
  themes: (
11
- step-compact: (
11
+ 'step-compact.theme-specific': (
12
12
  extend-theme: alpine,
13
13
  --ag-row-height: 36px,
14
14
  --ag-header-height: 36px,
15
15
  --ag-font-size: calc($grid-base-font-size - 2px),
16
16
  ),
17
- step-default: (
17
+ 'step-default.theme-specific': (
18
18
  extend-theme: alpine,
19
19
  --ag-row-height: 40px,
20
20
  --ag-header-height: 40px,
@@ -47,8 +47,8 @@ $grid-base-font-size: calc(#{lui.$base-font-size} - 1px);
47
47
  )
48
48
  );
49
49
 
50
- .ag-theme-step-default,
51
- .ag-theme-step-compact {
50
+ .ag-theme-step-default.theme-specific,
51
+ .ag-theme-step-compact.theme-specific {
52
52
  .ag-cell[col-id="selection"] {
53
53
  display: flex; // Fix that when you click below checkbox it doesn't process a click
54
54
  }
@@ -91,13 +91,7 @@ $grid-base-font-size: calc(#{lui.$base-font-size} - 1px);
91
91
  padding-right: 15px;
92
92
  }
93
93
 
94
- .ag-cell[role="gridcell"] {
95
- border-right: none;
96
- border-left: 1px var(--ag-cell-horizontal-border);
97
- }
98
-
99
94
  .ag-cell[aria-colindex="1"] {
100
- border-left: 1px solid transparent;
101
95
  padding-left: lui.$unit-rg;
102
96
  }
103
97
 
@@ -28,15 +28,20 @@ export const findRow = async (rowId: number | string, within?: HTMLElement): Pro
28
28
  { tagName: `.ag-center-cols-container div[row-id='${rowId}']:not(:empty)` },
29
29
  within,
30
30
  );
31
- const leftCols = await findQuick<HTMLDivElement>(
31
+ let combineChildren = [...row.children];
32
+
33
+ const leftCols = queryQuick<HTMLDivElement>(
32
34
  { tagName: `.ag-pinned-left-cols-container div[row-id='${rowId}']` },
33
35
  within,
34
36
  );
35
- const rightCols = await findQuick<HTMLDivElement>(
37
+ if (leftCols) combineChildren = [...leftCols.children, ...combineChildren];
38
+
39
+ const rightCols = queryQuick<HTMLDivElement>(
36
40
  { tagName: `.ag-pinned-right-cols-container div[row-id='${rowId}']` },
37
41
  within,
38
42
  );
39
- const combineChildren = [...leftCols.children, ...row.children, ...rightCols.children];
43
+ if (rightCols) combineChildren = [...rightCols.children, ...combineChildren];
44
+
40
45
  row.replaceChildren(...combineChildren);
41
46
  });
42
47
  return row;