@linzjs/step-ag-grid 30.4.4 → 31.2.0
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/dist/GridTheme.scss +12 -7
- package/dist/index.css +6 -3
- package/dist/src/components/gridDragUtil.d.ts +10 -0
- package/dist/src/components/gridDragUtil.test.d.ts +1 -0
- package/dist/src/components/index.d.ts +1 -0
- package/dist/src/components/types.d.ts +4 -0
- package/dist/src/utils/__tests__/testQuick.ts +7 -7
- package/dist/src/utils/__tests__/testUtil.ts +3 -1
- package/dist/src/utils/__tests__/vitestUtil.ts +3 -1
- package/dist/src/utils/storybook.d.ts +4 -0
- package/dist/src/utils/useInterval.d.ts +17 -0
- package/dist/src/utils/useIsomorphicLayoutEffect.d.ts +17 -0
- package/dist/step-ag-grid.cjs +402 -218
- package/dist/step-ag-grid.cjs.map +1 -1
- package/dist/step-ag-grid.esm.js +402 -219
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +26 -52
- package/src/components/Grid.tsx +75 -8
- package/src/components/PostSortRowsHook.ts +3 -1
- package/src/components/gridDragUtil.test.ts +115 -0
- package/src/components/gridDragUtil.ts +32 -0
- package/src/components/gridFilter/GridFilterColumnsMultiSelect.scss +18 -20
- package/src/components/gridFilter/GridFilterColumnsToggle.tsx +3 -4
- package/src/components/gridFilter/useGridFilter.ts +2 -2
- package/src/components/gridForm/GridFormDropDown.tsx +1 -1
- package/src/components/gridForm/GridFormInlineTextInput.tsx +1 -2
- package/src/components/gridForm/GridFormMultiSelect.tsx +10 -4
- package/src/components/gridForm/GridFormSubComponentTextArea.tsx +1 -2
- package/src/components/gridForm/GridFormSubComponentTextInput.tsx +1 -2
- package/src/components/gridForm/GridFormTextArea.tsx +1 -2
- package/src/components/gridForm/GridFormTextInput.tsx +1 -2
- package/src/components/gridHeader/GridHeaderSelect.tsx +3 -1
- package/src/components/gridHook/useGridCopy.ts +13 -3
- package/src/components/gridHook/useGridRangeSelection.ts +29 -16
- package/src/components/index.ts +1 -0
- package/src/components/types.ts +4 -0
- package/src/contexts/GridContextProvider.tsx +18 -7
- package/src/lui/ActionButton.scss +1 -1
- package/src/lui/ActionButton.tsx +5 -1
- package/src/lui/FormError.scss +1 -1
- package/src/lui/TextAreaInput.tsx +1 -1
- package/src/lui/TextInputFormatted.scss +13 -13
- package/src/lui/TextInputFormatted.tsx +1 -1
- package/src/react-menu3/README.md +66 -67
- package/src/react-menu3/components/ControlledMenu.tsx +2 -2
- package/src/react-menu3/components/Menu.tsx +1 -1
- package/src/react-menu3/components/MenuItem.tsx +1 -1
- package/src/react-menu3/components/MenuList.tsx +8 -2
- package/src/react-menu3/components/SubMenu.tsx +6 -6
- package/src/react-menu3/hooks/useBEM.ts +2 -1
- package/src/react-menu3/hooks/useItemState.ts +8 -4
- package/src/react-menu3/styles/_var.scss +1 -1
- package/src/react-menu3/styles/core.scss +6 -6
- package/src/react-menu3/styles/index.scss +11 -8
- package/src/react-menu3/styles/theme-dark.scss +1 -1
- package/src/react-menu3/styles/transitions/slide.scss +8 -8
- package/src/react-menu3/utils/utils.ts +2 -1
- package/src/stories/grid/FormTest.scss +13 -13
- package/src/stories/grid/GridDragRow.stories.tsx +61 -8
- package/src/stories/grid/GridInlineText.stories.tsx +2 -2
- package/src/stories/grid/GridSorting.stories.tsx +6 -2
- package/src/styles/ComponentLoadingWrapper.scss +1 -1
- package/src/styles/ContextMenu.scss +1 -1
- package/src/styles/Grid.scss +11 -9
- package/src/styles/GridCell.scss +1 -1
- package/src/styles/GridFilterColumnsToggle.scss +1 -1
- package/src/styles/GridFormInlineTextInput.scss +7 -7
- package/src/styles/GridFormMultiSelectGrid.scss +1 -1
- package/src/styles/GridFormSubComponentTextInput.scss +4 -4
- package/src/styles/GridIcon.scss +1 -1
- package/src/styles/GridPopoverMenu.scss +1 -1
- package/src/styles/GridTheme.scss +12 -7
- package/src/styles/index.scss +16 -16
- package/src/styles/react-menu-customisations.scss +119 -120
- package/src/utils/__tests__/testQuick.ts +7 -7
- package/src/utils/__tests__/testUtil.ts +3 -1
- package/src/utils/__tests__/vitestUtil.ts +3 -1
- package/src/utils/deferredPromise.ts +1 -1
- package/src/utils/storybook.ts +5 -0
- package/src/utils/useInterval.ts +44 -0
- package/src/utils/useIsomorphicLayoutEffect.ts +18 -0
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
@use
|
|
2
|
-
@use
|
|
1
|
+
@use 'var';
|
|
2
|
+
@use 'core';
|
|
3
3
|
|
|
4
4
|
.szh-menu {
|
|
5
5
|
user-select: none;
|
|
6
6
|
color: var.$color;
|
|
7
7
|
border: none;
|
|
8
8
|
border-radius: 0.25rem;
|
|
9
|
-
box-shadow:
|
|
9
|
+
box-shadow:
|
|
10
|
+
0 3px 7px rgb(0 0 0 / 13.3%),
|
|
11
|
+
0 0.6px 2px rgb(0 0 0 / 10%);
|
|
10
12
|
min-width: 10rem;
|
|
11
13
|
padding: 0.5rem 0;
|
|
12
14
|
|
|
@@ -28,7 +30,7 @@
|
|
|
28
30
|
padding-left: 2.2rem;
|
|
29
31
|
|
|
30
32
|
&::before {
|
|
31
|
-
content:
|
|
33
|
+
content: '\25cb';
|
|
32
34
|
position: absolute;
|
|
33
35
|
left: 0.8rem;
|
|
34
36
|
top: 0.55rem;
|
|
@@ -37,7 +39,7 @@
|
|
|
37
39
|
}
|
|
38
40
|
|
|
39
41
|
&--type-radio#{&}--checked::before {
|
|
40
|
-
content:
|
|
42
|
+
content: '\25cf';
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
&--type-checkbox {
|
|
@@ -50,7 +52,7 @@
|
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
&--type-checkbox#{&}--checked::before {
|
|
53
|
-
content:
|
|
55
|
+
content: '\2714';
|
|
54
56
|
}
|
|
55
57
|
}
|
|
56
58
|
|
|
@@ -58,7 +60,7 @@
|
|
|
58
60
|
padding-right: 2.5rem;
|
|
59
61
|
|
|
60
62
|
&::after {
|
|
61
|
-
content:
|
|
63
|
+
content: '\276f';
|
|
62
64
|
position: absolute;
|
|
63
65
|
right: 1rem;
|
|
64
66
|
}
|
|
@@ -72,6 +74,7 @@
|
|
|
72
74
|
}
|
|
73
75
|
}
|
|
74
76
|
|
|
75
|
-
.react-menu-inline-test .szh-menu-container,
|
|
77
|
+
.react-menu-inline-test .szh-menu-container,
|
|
78
|
+
.react-menu-inline-test .szh-menu {
|
|
76
79
|
position: static !important;
|
|
77
80
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
@use
|
|
2
|
-
@use
|
|
1
|
+
@use 'sass:list';
|
|
2
|
+
@use 'sass:map';
|
|
3
3
|
|
|
4
|
-
$menu:
|
|
4
|
+
$menu: 'szh-menu';
|
|
5
5
|
$duration: 0.15s;
|
|
6
6
|
$directions: (
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
'left': 'X' 1,
|
|
8
|
+
'right': 'X' -1,
|
|
9
|
+
'top': 'Y' 1,
|
|
10
|
+
'bottom': 'Y' -1,
|
|
11
11
|
);
|
|
12
12
|
|
|
13
13
|
@mixin animation($name, $dir) {
|
|
@@ -43,5 +43,5 @@ $directions: (
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
@each $dir in map.keys($directions) {
|
|
46
|
-
@include animation(
|
|
46
|
+
@include animation('slide', $dir);
|
|
47
47
|
}
|
|
@@ -34,7 +34,7 @@ export const defineName = (
|
|
|
34
34
|
) => Object.defineProperty(component, internalKey, { value: name });
|
|
35
35
|
|
|
36
36
|
export const mergeProps = (target: any, source: any) => {
|
|
37
|
-
source
|
|
37
|
+
if (source) {
|
|
38
38
|
Object.keys(source).forEach((key) => {
|
|
39
39
|
const targetProp = target[key];
|
|
40
40
|
const sourceProp = source[key];
|
|
@@ -47,6 +47,7 @@ export const mergeProps = (target: any, source: any) => {
|
|
|
47
47
|
target[key] = sourceProp;
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
|
+
}
|
|
50
51
|
|
|
51
52
|
return target;
|
|
52
53
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
.FormTest {
|
|
2
|
-
display: inline-flex;
|
|
3
|
-
flex-wrap: nowrap;
|
|
4
|
-
gap: 12px;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.FormTest .LuiTextInput {
|
|
8
|
-
margin-bottom: 0;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.FormTest-textInput {
|
|
12
|
-
width: 100px;
|
|
13
|
-
}
|
|
1
|
+
.FormTest {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
flex-wrap: nowrap;
|
|
4
|
+
gap: 12px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.FormTest .LuiTextInput {
|
|
8
|
+
margin-bottom: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.FormTest-textInput {
|
|
12
|
+
width: 100px;
|
|
13
|
+
}
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
GridProps,
|
|
16
16
|
GridUpdatingContextProvider,
|
|
17
17
|
GridWrapper,
|
|
18
|
+
reorderRows,
|
|
18
19
|
} from '../..';
|
|
19
20
|
import { waitForGridReady } from '../../utils/__tests__/storybookTestUtil';
|
|
20
21
|
|
|
@@ -98,14 +99,8 @@ const GridDragRowTemplate: StoryFn<typeof Grid<ITestRow>> = (props: GridProps<IT
|
|
|
98
99
|
{ id: 1003, position: 'BA', age: 42, height: `5'7"`, desc: 'BAs', dd: '4' },
|
|
99
100
|
]);
|
|
100
101
|
|
|
101
|
-
const onRowDragEnd = useCallback(({
|
|
102
|
-
setRowData((rowData) =>
|
|
103
|
-
rowData.map((r) => {
|
|
104
|
-
if (r.id === movedRow.id) return targetRow;
|
|
105
|
-
if (r.id === targetRow.id) return movedRow;
|
|
106
|
-
return r;
|
|
107
|
-
}),
|
|
108
|
-
);
|
|
102
|
+
const onRowDragEnd = useCallback(({ movedRows, targetRow, direction }: GridOnRowDragEndProps<ITestRow>) => {
|
|
103
|
+
setRowData((rowData) => reorderRows(rowData, movedRows, targetRow, direction));
|
|
109
104
|
}, []);
|
|
110
105
|
|
|
111
106
|
return (
|
|
@@ -128,3 +123,61 @@ const GridDragRowTemplate: StoryFn<typeof Grid<ITestRow>> = (props: GridProps<IT
|
|
|
128
123
|
|
|
129
124
|
export const DragRowSingleSelection = GridDragRowTemplate.bind({});
|
|
130
125
|
DragRowSingleSelection.play = waitForGridReady;
|
|
126
|
+
|
|
127
|
+
const GridDragRowMultiTemplate: StoryFn<typeof Grid<ITestRow>> = (props: GridProps<ITestRow>) => {
|
|
128
|
+
const columnDefs: ColDefT<ITestRow>[] = useMemo(
|
|
129
|
+
() => [
|
|
130
|
+
GridCell({
|
|
131
|
+
field: 'id',
|
|
132
|
+
headerName: 'Id',
|
|
133
|
+
lockVisible: true,
|
|
134
|
+
}),
|
|
135
|
+
GridCell<ITestRow, ITestRow['position']>({
|
|
136
|
+
field: 'position',
|
|
137
|
+
headerName: 'Position',
|
|
138
|
+
}),
|
|
139
|
+
GridCell({
|
|
140
|
+
field: 'age',
|
|
141
|
+
headerName: 'Age',
|
|
142
|
+
}),
|
|
143
|
+
GridCell({
|
|
144
|
+
field: 'desc',
|
|
145
|
+
headerName: 'Description',
|
|
146
|
+
flex: 1,
|
|
147
|
+
}),
|
|
148
|
+
],
|
|
149
|
+
[],
|
|
150
|
+
);
|
|
151
|
+
|
|
152
|
+
const [rowData, setRowData] = useState<ITestRow[]>([
|
|
153
|
+
{ id: 1, position: 'Tester', age: 30, height: `6'4"`, desc: 'Tests application', dd: '1' },
|
|
154
|
+
{ id: 2, position: 'Developer', age: 12, height: `5'3"`, desc: 'Develops application', dd: '2' },
|
|
155
|
+
{ id: 3, position: 'Manager', age: 65, height: `5'9"`, desc: 'Manages', dd: '3' },
|
|
156
|
+
{ id: 4, position: 'BA', age: 42, height: `5'7"`, desc: 'BAs', dd: '4' },
|
|
157
|
+
{ id: 5, position: 'Designer', age: 28, height: `5'6"`, desc: 'Designs', dd: '5' },
|
|
158
|
+
{ id: 6, position: 'DevOps', age: 35, height: `5'11"`, desc: 'Deploys', dd: '6' },
|
|
159
|
+
]);
|
|
160
|
+
|
|
161
|
+
const onRowDragEnd = useCallback(({ movedRows, targetRow, direction }: GridOnRowDragEndProps<ITestRow>) => {
|
|
162
|
+
setRowData((rowData) => reorderRows(rowData, movedRows, targetRow, direction));
|
|
163
|
+
}, []);
|
|
164
|
+
|
|
165
|
+
return (
|
|
166
|
+
<GridWrapper maxHeight={400}>
|
|
167
|
+
<Grid
|
|
168
|
+
data-testid={'drag-multi'}
|
|
169
|
+
{...props}
|
|
170
|
+
selectable={true}
|
|
171
|
+
rowSelection="multiple"
|
|
172
|
+
animateRows={true}
|
|
173
|
+
columnDefs={columnDefs}
|
|
174
|
+
defaultColDef={{ sortable: false }}
|
|
175
|
+
rowData={rowData}
|
|
176
|
+
onRowDragEnd={onRowDragEnd}
|
|
177
|
+
/>
|
|
178
|
+
</GridWrapper>
|
|
179
|
+
);
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
export const DragRowMultiSelection = GridDragRowMultiTemplate.bind({});
|
|
183
|
+
DragRowMultiSelection.play = waitForGridReady;
|
|
@@ -174,7 +174,7 @@ const GridInlineTextTemplate: StoryFn<typeof Grid<IFormTestRow>> = (props: GridP
|
|
|
174
174
|
export const _EditInlineText = GridInlineTextTemplate.bind({});
|
|
175
175
|
_EditInlineText.play = waitForGridReady;
|
|
176
176
|
|
|
177
|
-
const
|
|
177
|
+
const InlineText_ChangeEventsTemplate: StoryFn<typeof Grid<IFormTestRow>> = (props: GridProps<IFormTestRow>) => {
|
|
178
178
|
const [externalSelectedItems, setExternalSelectedItems] = useState<any[]>([]);
|
|
179
179
|
const [isDirty, setIsDirty] = useState(false);
|
|
180
180
|
const [rowData, setRowData] = useState<IFormTestRow[]>(initialRows);
|
|
@@ -251,7 +251,7 @@ const _InlineText_ChangeEventsTemplate: StoryFn<typeof Grid<IFormTestRow>> = (pr
|
|
|
251
251
|
);
|
|
252
252
|
};
|
|
253
253
|
|
|
254
|
-
export const _InlineText_ChangeEvents =
|
|
254
|
+
export const _InlineText_ChangeEvents = InlineText_ChangeEventsTemplate.bind({});
|
|
255
255
|
_InlineText_ChangeEvents.play = async (context) => {
|
|
256
256
|
await waitForGridReady(context);
|
|
257
257
|
const canvas = within(context.canvasElement);
|
|
@@ -137,9 +137,13 @@ Sorting.play = async (context) => {
|
|
|
137
137
|
if (colId !== null) {
|
|
138
138
|
await clickColumnHeaderToSort(colId, canvasElement);
|
|
139
139
|
await wait(500);
|
|
140
|
-
|
|
140
|
+
if (expected) {
|
|
141
|
+
expect(gridColumnValues(colId, canvasElement)).toEqual(expected);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
if (idExpected) {
|
|
145
|
+
expect(gridColumnValues('id', canvasElement)).toEqual(idExpected);
|
|
141
146
|
}
|
|
142
|
-
idExpected && expect(gridColumnValues('id', canvasElement)).toEqual(idExpected);
|
|
143
147
|
};
|
|
144
148
|
|
|
145
149
|
// Default sort order
|
package/src/styles/Grid.scss
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
@use
|
|
2
|
-
@use
|
|
3
|
-
@use
|
|
1
|
+
@use '../react-menu3/styles/index';
|
|
2
|
+
@use './react-menu-customisations';
|
|
3
|
+
@use '../../node_modules/@linzjs/lui/dist/scss/Core' as lui;
|
|
4
4
|
|
|
5
5
|
.LabelPreferencesPanelGridCellAlignCenter .ag-wrapper {
|
|
6
6
|
margin-left: auto;
|
|
7
7
|
margin-right: auto;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
.ag-cell:not([col-id=
|
|
10
|
+
.ag-cell:not([col-id='ag-Grid-SelectionColumn']) {
|
|
11
11
|
user-select: text;
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
user-select: none;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.LabelPreferencesPanelGridCellAlignCenter .ag-cell-wrapper,
|
|
18
|
+
.LabelPreferencesPanelGridCellAlignCenter .ag-cell-wrapper,
|
|
19
|
+
.LabelPreferencesPanelGridCellAlignCenter .GridCell-container {
|
|
19
20
|
display: flex;
|
|
20
21
|
justify-content: center;
|
|
21
22
|
}
|
|
@@ -28,7 +29,7 @@
|
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
.Grid-hideSelectedRow div.ag-row::before {
|
|
31
|
-
content:
|
|
32
|
+
content: '';
|
|
32
33
|
background-color: white !important;
|
|
33
34
|
}
|
|
34
35
|
|
|
@@ -42,7 +43,7 @@
|
|
|
42
43
|
span.ag-sort-indicator-icon::before {
|
|
43
44
|
margin-left: -6px;
|
|
44
45
|
position: absolute;
|
|
45
|
-
content:
|
|
46
|
+
content: '*';
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
49
|
|
|
@@ -92,7 +93,7 @@
|
|
|
92
93
|
border-radius: 3px;
|
|
93
94
|
padding-left: 36px;
|
|
94
95
|
padding-right: 0.75rem;
|
|
95
|
-
font-family:
|
|
96
|
+
font-family: 'Open Sans', system-ui, sans-serif;
|
|
96
97
|
|
|
97
98
|
&::placeholder {
|
|
98
99
|
color: lui.$fuscous;
|
|
@@ -144,7 +145,8 @@
|
|
|
144
145
|
margin-right: auto;
|
|
145
146
|
}
|
|
146
147
|
|
|
147
|
-
.GridCellAlignCenter .ag-cell-wrapper,
|
|
148
|
+
.GridCellAlignCenter .ag-cell-wrapper,
|
|
149
|
+
.LabelPreferencesPanelGridCellAlignCenter .GridCell-container {
|
|
148
150
|
display: flex;
|
|
149
151
|
justify-content: center;
|
|
150
152
|
}
|
package/src/styles/GridCell.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use
|
|
1
|
+
@use '../../node_modules/@linzjs/lui/dist/scss/Core' as lui;
|
|
2
2
|
|
|
3
3
|
.GridFormInlineTextInput {
|
|
4
4
|
height: 100%;
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
|
|
11
11
|
.GridFormInlineTextInput > input {
|
|
12
12
|
display: block;
|
|
13
|
-
left:0;
|
|
14
|
-
top:0;
|
|
15
|
-
right:0;
|
|
16
|
-
bottom:0;
|
|
13
|
+
left: 0;
|
|
14
|
+
top: 0;
|
|
15
|
+
right: 0;
|
|
16
|
+
bottom: 0;
|
|
17
17
|
position: absolute;
|
|
18
18
|
padding-left: 9px;
|
|
19
19
|
padding-right: 9px;
|
|
20
20
|
outline: 0;
|
|
21
21
|
border: 0;
|
|
22
|
-
font-family:
|
|
23
|
-
}
|
|
22
|
+
font-family: 'Open Sans', system-ui, sans-serif;
|
|
23
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.GridFormSubComponentTextInput-full-width-input {
|
|
2
|
-
width: 100%;
|
|
3
|
-
padding: 0;
|
|
4
|
-
}
|
|
1
|
+
.GridFormSubComponentTextInput-full-width-input {
|
|
2
|
+
width: 100%;
|
|
3
|
+
padding: 0;
|
|
4
|
+
}
|
package/src/styles/GridIcon.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@use
|
|
2
|
-
@use
|
|
1
|
+
@use '@linzjs/lui/dist/scss/Core' as lui;
|
|
2
|
+
@use 'ag-grid-community/styles' as ag;
|
|
3
3
|
|
|
4
4
|
// ag-grid likes to add 1px to this, so we subtract to compensate
|
|
5
5
|
$grid-base-font-size: calc(#{lui.$base-font-size} - 1px);
|
|
@@ -44,7 +44,7 @@ $grid-base-font-size: calc(#{lui.$base-font-size} - 1px);
|
|
|
44
44
|
data-color: lui.$charcoal,
|
|
45
45
|
foreground-color: lui.$charcoal,
|
|
46
46
|
font-family: (
|
|
47
|
-
|
|
47
|
+
'Open Sans',
|
|
48
48
|
system-ui,
|
|
49
49
|
sans-serif,
|
|
50
50
|
),
|
|
@@ -58,6 +58,7 @@ $grid-base-font-size: calc(#{lui.$base-font-size} - 1px);
|
|
|
58
58
|
)
|
|
59
59
|
);
|
|
60
60
|
|
|
61
|
+
.ag-theme-step-view-list-default,
|
|
61
62
|
.ag-theme-step-default.theme-specific,
|
|
62
63
|
.ag-theme-step-compact.theme-specific {
|
|
63
64
|
// Don't hide the drag handle
|
|
@@ -154,7 +155,7 @@ $grid-base-font-size: calc(#{lui.$base-font-size} - 1px);
|
|
|
154
155
|
content: none !important;
|
|
155
156
|
}
|
|
156
157
|
}
|
|
157
|
-
|
|
158
|
+
|
|
158
159
|
.ag-header-cell-filter-button.ag-has-popup-positioned-under .ag-icon-filter {
|
|
159
160
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M6 12.984v-1.969h12v1.969zM3 6h18v2.016H3zm6.984 12v-2.016h4.031V18z'/%3E%3C/svg%3E") !important;
|
|
160
161
|
background-color: #007198;
|
|
@@ -243,7 +244,8 @@ $grid-base-font-size: calc(#{lui.$base-font-size} - 1px);
|
|
|
243
244
|
visibility: inherit;
|
|
244
245
|
}
|
|
245
246
|
|
|
246
|
-
.ag-row-highlight-above::after,
|
|
247
|
+
.ag-row-highlight-above::after,
|
|
248
|
+
.ag-row-highlight-below::after {
|
|
247
249
|
content: '';
|
|
248
250
|
height: 3px;
|
|
249
251
|
background-color: transparent;
|
|
@@ -257,6 +259,10 @@ $grid-base-font-size: calc(#{lui.$base-font-size} - 1px);
|
|
|
257
259
|
border-bottom: 2px dashed lui.$andrea;
|
|
258
260
|
}
|
|
259
261
|
|
|
262
|
+
.ag-row-dragging {
|
|
263
|
+
opacity: 0.5;
|
|
264
|
+
}
|
|
265
|
+
|
|
260
266
|
.ag-pinned-left-header,
|
|
261
267
|
.ag-pinned-right-header,
|
|
262
268
|
.ag-pinned-right-cols-container,
|
|
@@ -268,7 +274,7 @@ $grid-base-font-size: calc(#{lui.$base-font-size} - 1px);
|
|
|
268
274
|
|
|
269
275
|
.ag-pinned-left-header,
|
|
270
276
|
.ag-pinned-left-cols-container {
|
|
271
|
-
|
|
277
|
+
clip-path: polygon(0% 0%, 120% 0%, 120% 100%, 0% 100%);
|
|
272
278
|
}
|
|
273
279
|
|
|
274
280
|
.ag-pinned-right-header,
|
|
@@ -278,7 +284,6 @@ $grid-base-font-size: calc(#{lui.$base-font-size} - 1px);
|
|
|
278
284
|
}
|
|
279
285
|
|
|
280
286
|
.ag-theme-step-view-list-default.theme-specific {
|
|
281
|
-
|
|
282
287
|
.ag-header-hide-default-select .ag-labeled {
|
|
283
288
|
display: none;
|
|
284
289
|
}
|
package/src/styles/index.scss
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
@use
|
|
2
|
-
@use
|
|
3
|
-
@use
|
|
4
|
-
@use
|
|
5
|
-
@use
|
|
6
|
-
@use
|
|
7
|
-
@use
|
|
8
|
-
@use
|
|
9
|
-
@use
|
|
10
|
-
@use
|
|
11
|
-
@use
|
|
12
|
-
@use
|
|
13
|
-
@use
|
|
14
|
-
@use
|
|
15
|
-
@use
|
|
16
|
-
@use
|
|
1
|
+
@use './lui-overrides';
|
|
2
|
+
@use './react-menu-customisations';
|
|
3
|
+
@use './ComponentLoadingWrapper';
|
|
4
|
+
@use './Grid';
|
|
5
|
+
@use './GridCell';
|
|
6
|
+
@use './GridFormDropDown';
|
|
7
|
+
@use './GridFormEditBearing';
|
|
8
|
+
@use './GridFormMultiSelect';
|
|
9
|
+
@use './GridFormMultiSelectGrid';
|
|
10
|
+
@use './GridFormSubComponentTextInput';
|
|
11
|
+
@use './GridIcon';
|
|
12
|
+
@use './GridLoadableCell';
|
|
13
|
+
@use './GridPopoverMenu';
|
|
14
|
+
@use './GridFilterColumnsToggle';
|
|
15
|
+
@use './GridFilterHeaderIconButton';
|
|
16
|
+
@use './GridFormInlineTextInput';
|