@salt-ds/ag-grid-theme 2.5.1 → 2.6.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/package.json +3 -3
- package/salt-ag-theme.css +191 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salt-ds/ag-grid-theme",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"provenance": true
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"del": "^
|
|
28
|
+
"del": "^8.0.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@salt-ds/theme": "^1.
|
|
31
|
+
"@salt-ds/theme": "^1.38.0",
|
|
32
32
|
"ag-grid-community": ">=28.0.0"
|
|
33
33
|
}
|
|
34
34
|
}
|
package/salt-ag-theme.css
CHANGED
|
@@ -9,14 +9,18 @@
|
|
|
9
9
|
.ag-theme-salt-dark .ag-row-selected,
|
|
10
10
|
.ag-theme-salt-compact-light .ag-row-selected,
|
|
11
11
|
.ag-theme-salt-compact-dark .ag-row-selected {
|
|
12
|
-
background-color: var(--
|
|
13
|
-
border-color: var(--
|
|
12
|
+
background-color: var(--ag-selected-row-background-color);
|
|
13
|
+
border-color: var(--ag-selected-row-border-color);
|
|
14
14
|
}
|
|
15
15
|
.ag-theme-salt-light .ag-row-selected:before,
|
|
16
16
|
.ag-theme-salt-dark .ag-row-selected:before,
|
|
17
17
|
.ag-theme-salt-compact-light .ag-row-selected:before,
|
|
18
|
-
.ag-theme-salt-compact-dark .ag-row-selected:before
|
|
19
|
-
|
|
18
|
+
.ag-theme-salt-compact-dark .ag-row-selected:before,
|
|
19
|
+
.ag-theme-salt-light .ag-row-hover.ag-row-selected::before,
|
|
20
|
+
.ag-theme-salt-dark .ag-row-hover.ag-row-selected::before,
|
|
21
|
+
.ag-theme-salt-compact-light .ag-row-hover.ag-row-selected::before,
|
|
22
|
+
.ag-theme-salt-compact-dark .ag-row-hover.ag-row-selected::before {
|
|
23
|
+
background-color: var(--ag-selected-row-border-color);
|
|
20
24
|
background-image: none;
|
|
21
25
|
height: var(--salt-size-fixed-100);
|
|
22
26
|
top: -1px;
|
|
@@ -72,6 +76,147 @@
|
|
|
72
76
|
outline: var(--salt-size-fixed-100) var(--salt-borderStyle-solid) var(--salt-editable-borderColor);
|
|
73
77
|
outline-offset: -1px;
|
|
74
78
|
}
|
|
79
|
+
.ag-theme-salt-light .editable-cell.error-cell,
|
|
80
|
+
.ag-theme-salt-dark .editable-cell.error-cell,
|
|
81
|
+
.ag-theme-salt-compact-light .editable-cell.error-cell,
|
|
82
|
+
.ag-theme-salt-compact-dark .editable-cell.error-cell {
|
|
83
|
+
--salt-editable-borderColor: var(--salt-status-error-borderColor);
|
|
84
|
+
--salt-focused-outlineColor: var(--salt-status-error-borderColor);
|
|
85
|
+
--salt-editable-borderColor-hover: var(--salt-status-error-borderColor);
|
|
86
|
+
}
|
|
87
|
+
.ag-theme-salt-light .editable-cell.error-cell:not(.numeric-cell):not(.ag-cell-inline-editing),
|
|
88
|
+
.ag-theme-salt-dark .editable-cell.error-cell:not(.numeric-cell):not(.ag-cell-inline-editing),
|
|
89
|
+
.ag-theme-salt-compact-light .editable-cell.error-cell:not(.numeric-cell):not(.ag-cell-inline-editing),
|
|
90
|
+
.ag-theme-salt-compact-dark .editable-cell.error-cell:not(.numeric-cell):not(.ag-cell-inline-editing) {
|
|
91
|
+
background: var(--salt-status-error-background);
|
|
92
|
+
padding-right: calc(var(--salt-spacing-100) + var(--salt-size-adornment));
|
|
93
|
+
}
|
|
94
|
+
.ag-theme-salt-light .editable-cell.error-cell.numeric-cell:not(.ag-cell-inline-editing),
|
|
95
|
+
.ag-theme-salt-dark .editable-cell.error-cell.numeric-cell:not(.ag-cell-inline-editing),
|
|
96
|
+
.ag-theme-salt-compact-light .editable-cell.error-cell.numeric-cell:not(.ag-cell-inline-editing),
|
|
97
|
+
.ag-theme-salt-compact-dark .editable-cell.error-cell.numeric-cell:not(.ag-cell-inline-editing) {
|
|
98
|
+
background: var(--salt-status-error-background);
|
|
99
|
+
padding-left: calc(var(--salt-spacing-100) + var(--salt-size-adornment));
|
|
100
|
+
}
|
|
101
|
+
.ag-theme-salt-light .editable-cell.error-cell:not(.ag-cell-inline-editing)::after,
|
|
102
|
+
.ag-theme-salt-dark .editable-cell.error-cell:not(.ag-cell-inline-editing)::after,
|
|
103
|
+
.ag-theme-salt-compact-light .editable-cell.error-cell:not(.ag-cell-inline-editing)::after,
|
|
104
|
+
.ag-theme-salt-compact-dark .editable-cell.error-cell:not(.ag-cell-inline-editing)::after {
|
|
105
|
+
position: absolute;
|
|
106
|
+
top: 50%;
|
|
107
|
+
transform: translateY(-50%);
|
|
108
|
+
width: var(--salt-size-adornment);
|
|
109
|
+
height: var(--salt-size-adornment);
|
|
110
|
+
background-color: var(--salt-status-error-foreground-decorative);
|
|
111
|
+
content: "";
|
|
112
|
+
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 6' %3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3 6C4.65685 6 6 4.65685 6 3C6 1.34315 4.65685 0 3 0C1.34315 0 0 1.34315 0 3C0 4.65685 1.34315 6 3 6Z' /%3E%3C/svg%3E") no-repeat 50% 50%;
|
|
113
|
+
}
|
|
114
|
+
.ag-theme-salt-light .editable-cell.error-cell:not(.numeric-cell)::after,
|
|
115
|
+
.ag-theme-salt-dark .editable-cell.error-cell:not(.numeric-cell)::after,
|
|
116
|
+
.ag-theme-salt-compact-light .editable-cell.error-cell:not(.numeric-cell)::after,
|
|
117
|
+
.ag-theme-salt-compact-dark .editable-cell.error-cell:not(.numeric-cell)::after {
|
|
118
|
+
right: var(--salt-spacing-100);
|
|
119
|
+
}
|
|
120
|
+
.ag-theme-salt-light .editable-cell.error-cell.numeric-cell::after,
|
|
121
|
+
.ag-theme-salt-dark .editable-cell.error-cell.numeric-cell::after,
|
|
122
|
+
.ag-theme-salt-compact-light .editable-cell.error-cell.numeric-cell::after,
|
|
123
|
+
.ag-theme-salt-compact-dark .editable-cell.error-cell.numeric-cell::after {
|
|
124
|
+
left: var(--salt-spacing-100);
|
|
125
|
+
}
|
|
126
|
+
.ag-theme-salt-light .editable-cell.warning-cell,
|
|
127
|
+
.ag-theme-salt-dark .editable-cell.warning-cell,
|
|
128
|
+
.ag-theme-salt-compact-light .editable-cell.warning-cell,
|
|
129
|
+
.ag-theme-salt-compact-dark .editable-cell.warning-cell {
|
|
130
|
+
--salt-editable-borderColor: var(--salt-status-warning-borderColor);
|
|
131
|
+
--salt-focused-outlineColor: var(--salt-status-warning-borderColor);
|
|
132
|
+
--salt-editable-borderColor-hover: var(--salt-status-warning-borderColor);
|
|
133
|
+
}
|
|
134
|
+
.ag-theme-salt-light .editable-cell.warning-cell:not(.numeric-cell):not(.ag-cell-inline-editing),
|
|
135
|
+
.ag-theme-salt-dark .editable-cell.warning-cell:not(.numeric-cell):not(.ag-cell-inline-editing),
|
|
136
|
+
.ag-theme-salt-compact-light .editable-cell.warning-cell:not(.numeric-cell):not(.ag-cell-inline-editing),
|
|
137
|
+
.ag-theme-salt-compact-dark .editable-cell.warning-cell:not(.numeric-cell):not(.ag-cell-inline-editing) {
|
|
138
|
+
background: var(--salt-status-warning-background);
|
|
139
|
+
padding-right: calc(var(--salt-spacing-100) + var(--salt-size-adornment));
|
|
140
|
+
}
|
|
141
|
+
.ag-theme-salt-light .editable-cell.warning-cell.numeric-cell:not(.ag-cell-inline-editing),
|
|
142
|
+
.ag-theme-salt-dark .editable-cell.warning-cell.numeric-cell:not(.ag-cell-inline-editing),
|
|
143
|
+
.ag-theme-salt-compact-light .editable-cell.warning-cell.numeric-cell:not(.ag-cell-inline-editing),
|
|
144
|
+
.ag-theme-salt-compact-dark .editable-cell.warning-cell.numeric-cell:not(.ag-cell-inline-editing) {
|
|
145
|
+
background: var(--salt-status-warning-background);
|
|
146
|
+
padding-left: calc(var(--salt-spacing-100) + var(--salt-size-adornment));
|
|
147
|
+
}
|
|
148
|
+
.ag-theme-salt-light .editable-cell.warning-cell:not(.ag-cell-inline-editing)::after,
|
|
149
|
+
.ag-theme-salt-dark .editable-cell.warning-cell:not(.ag-cell-inline-editing)::after,
|
|
150
|
+
.ag-theme-salt-compact-light .editable-cell.warning-cell:not(.ag-cell-inline-editing)::after,
|
|
151
|
+
.ag-theme-salt-compact-dark .editable-cell.warning-cell:not(.ag-cell-inline-editing)::after {
|
|
152
|
+
position: absolute;
|
|
153
|
+
top: 50%;
|
|
154
|
+
transform: translateY(-50%);
|
|
155
|
+
width: var(--salt-size-adornment);
|
|
156
|
+
height: var(--salt-size-adornment);
|
|
157
|
+
background-color: var(--salt-status-warning-foreground-decorative);
|
|
158
|
+
content: "";
|
|
159
|
+
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 6' %3E%3Cpath d='M0 6L3 0L6 6H0Z' /%3E%3C/svg%3E") no-repeat 50% 50%;
|
|
160
|
+
}
|
|
161
|
+
.ag-theme-salt-light .editable-cell.warning-cell:not(.numeric-cell)::after,
|
|
162
|
+
.ag-theme-salt-dark .editable-cell.warning-cell:not(.numeric-cell)::after,
|
|
163
|
+
.ag-theme-salt-compact-light .editable-cell.warning-cell:not(.numeric-cell)::after,
|
|
164
|
+
.ag-theme-salt-compact-dark .editable-cell.warning-cell:not(.numeric-cell)::after {
|
|
165
|
+
right: var(--salt-spacing-100);
|
|
166
|
+
}
|
|
167
|
+
.ag-theme-salt-light .editable-cell.warning-cell.numeric-cell::after,
|
|
168
|
+
.ag-theme-salt-dark .editable-cell.warning-cell.numeric-cell::after,
|
|
169
|
+
.ag-theme-salt-compact-light .editable-cell.warning-cell.numeric-cell::after,
|
|
170
|
+
.ag-theme-salt-compact-dark .editable-cell.warning-cell.numeric-cell::after {
|
|
171
|
+
left: var(--salt-spacing-100);
|
|
172
|
+
}
|
|
173
|
+
.ag-theme-salt-light .editable-cell.success-cell,
|
|
174
|
+
.ag-theme-salt-dark .editable-cell.success-cell,
|
|
175
|
+
.ag-theme-salt-compact-light .editable-cell.success-cell,
|
|
176
|
+
.ag-theme-salt-compact-dark .editable-cell.success-cell {
|
|
177
|
+
--salt-editable-borderColor: var(--salt-status-success-borderColor);
|
|
178
|
+
--salt-focused-outlineColor: var(--salt-status-success-borderColor);
|
|
179
|
+
--salt-editable-borderColor-hover: var(--salt-status-success-borderColor);
|
|
180
|
+
}
|
|
181
|
+
.ag-theme-salt-light .editable-cell.success-cell:not(.numeric-cell):not(.ag-cell-inline-editing),
|
|
182
|
+
.ag-theme-salt-dark .editable-cell.success-cell:not(.numeric-cell):not(.ag-cell-inline-editing),
|
|
183
|
+
.ag-theme-salt-compact-light .editable-cell.success-cell:not(.numeric-cell):not(.ag-cell-inline-editing),
|
|
184
|
+
.ag-theme-salt-compact-dark .editable-cell.success-cell:not(.numeric-cell):not(.ag-cell-inline-editing) {
|
|
185
|
+
background: var(--salt-status-success-background);
|
|
186
|
+
padding-right: calc(var(--salt-spacing-100) + var(--salt-size-adornment));
|
|
187
|
+
}
|
|
188
|
+
.ag-theme-salt-light .editable-cell.success-cell.numeric-cell:not(.ag-cell-inline-editing),
|
|
189
|
+
.ag-theme-salt-dark .editable-cell.success-cell.numeric-cell:not(.ag-cell-inline-editing),
|
|
190
|
+
.ag-theme-salt-compact-light .editable-cell.success-cell.numeric-cell:not(.ag-cell-inline-editing),
|
|
191
|
+
.ag-theme-salt-compact-dark .editable-cell.success-cell.numeric-cell:not(.ag-cell-inline-editing) {
|
|
192
|
+
background: var(--salt-status-success-background);
|
|
193
|
+
padding-left: calc(var(--salt-spacing-100) + var(--salt-size-adornment));
|
|
194
|
+
}
|
|
195
|
+
.ag-theme-salt-light .editable-cell.success-cell:not(.ag-cell-inline-editing)::after,
|
|
196
|
+
.ag-theme-salt-dark .editable-cell.success-cell:not(.ag-cell-inline-editing)::after,
|
|
197
|
+
.ag-theme-salt-compact-light .editable-cell.success-cell:not(.ag-cell-inline-editing)::after,
|
|
198
|
+
.ag-theme-salt-compact-dark .editable-cell.success-cell:not(.ag-cell-inline-editing)::after {
|
|
199
|
+
position: absolute;
|
|
200
|
+
top: 50%;
|
|
201
|
+
transform: translateY(-50%);
|
|
202
|
+
width: var(--salt-size-adornment);
|
|
203
|
+
height: var(--salt-size-adornment);
|
|
204
|
+
background-color: var(--salt-status-success-foreground-decorative);
|
|
205
|
+
content: "";
|
|
206
|
+
mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.51878 8.36782L10.7368 1.1499L11.9742 2.38735L3.51877 10.8427L0.0299988 7.35389L1.26744 6.11646L3.51878 8.36782Z' /%3E%3C/svg%3E%0A") no-repeat 50% 50%;
|
|
207
|
+
}
|
|
208
|
+
.ag-theme-salt-light .editable-cell.success-cell:not(.numeric-cell)::after,
|
|
209
|
+
.ag-theme-salt-dark .editable-cell.success-cell:not(.numeric-cell)::after,
|
|
210
|
+
.ag-theme-salt-compact-light .editable-cell.success-cell:not(.numeric-cell)::after,
|
|
211
|
+
.ag-theme-salt-compact-dark .editable-cell.success-cell:not(.numeric-cell)::after {
|
|
212
|
+
right: var(--salt-spacing-100);
|
|
213
|
+
}
|
|
214
|
+
.ag-theme-salt-light .editable-cell.success-cell.numeric-cell::after,
|
|
215
|
+
.ag-theme-salt-dark .editable-cell.success-cell.numeric-cell::after,
|
|
216
|
+
.ag-theme-salt-compact-light .editable-cell.success-cell.numeric-cell::after,
|
|
217
|
+
.ag-theme-salt-compact-dark .editable-cell.success-cell.numeric-cell::after {
|
|
218
|
+
left: var(--salt-spacing-100);
|
|
219
|
+
}
|
|
75
220
|
.ag-theme-salt-light .ag-cell.numeric-cell,
|
|
76
221
|
.ag-theme-salt-light .editable-numeric-cell,
|
|
77
222
|
.ag-theme-salt-dark .ag-cell.numeric-cell,
|
|
@@ -88,6 +233,12 @@
|
|
|
88
233
|
.ag-theme-salt-compact-dark .ag-cell.numeric-cell.ag-cell-inline-editing .ag-cell-editor input:not(:focus) {
|
|
89
234
|
text-align: right;
|
|
90
235
|
}
|
|
236
|
+
.ag-theme-salt-light .ag-cell-wrapper.ag-row-group,
|
|
237
|
+
.ag-theme-salt-dark .ag-cell-wrapper.ag-row-group,
|
|
238
|
+
.ag-theme-salt-compact-light .ag-cell-wrapper.ag-row-group,
|
|
239
|
+
.ag-theme-salt-compact-dark .ag-cell-wrapper.ag-row-group {
|
|
240
|
+
align-items: center;
|
|
241
|
+
}
|
|
91
242
|
.ag-theme-salt-light .ag-ltr .ag-cell-focus:not(.ag-cell-range-selected):focus-within,
|
|
92
243
|
.ag-theme-salt-dark .ag-ltr .ag-cell-focus:not(.ag-cell-range-selected):focus-within,
|
|
93
244
|
.ag-theme-salt-compact-light .ag-ltr .ag-cell-focus:not(.ag-cell-range-selected):focus-within,
|
|
@@ -112,12 +263,6 @@
|
|
|
112
263
|
outline-offset: -2px;
|
|
113
264
|
border-color: transparent;
|
|
114
265
|
}
|
|
115
|
-
.ag-theme-salt-light .ag-cell-wrapper.ag-row-group,
|
|
116
|
-
.ag-theme-salt-dark .ag-cell-wrapper.ag-row-group,
|
|
117
|
-
.ag-theme-salt-compact-light .ag-cell-wrapper.ag-row-group,
|
|
118
|
-
.ag-theme-salt-compact-dark .ag-cell-wrapper.ag-row-group {
|
|
119
|
-
align-items: center;
|
|
120
|
-
}
|
|
121
266
|
.ag-theme-salt-light .ag-cell.editable-cell.ag-cell-focus:focus:before,
|
|
122
267
|
.ag-theme-salt-light .ag-cell.editable-numeric-cell.ag-cell-focus:focus:before,
|
|
123
268
|
.ag-theme-salt-light .ag-cell.editable-cell.ag-cell-focus:focus-within:before,
|
|
@@ -815,6 +960,7 @@
|
|
|
815
960
|
.ag-theme-salt-compact-light .ag-column-select input[class^=ag-][type=date],
|
|
816
961
|
.ag-theme-salt-compact-dark .ag-column-select input[class^=ag-][type=date] {
|
|
817
962
|
border: none;
|
|
963
|
+
background: transparent;
|
|
818
964
|
border-bottom: var(--salt-size-fixed-100) var(--salt-borderStyle-solid) var(--salt-editable-borderColor);
|
|
819
965
|
height: calc(var(--salt-size-base) + var(--salt-spacing-100));
|
|
820
966
|
padding: 0 var(--salt-spacing-100);
|
|
@@ -1016,6 +1162,7 @@ div[class*=ag-theme-salt] {
|
|
|
1016
1162
|
--ag-secondary-border-color: var(--salt-separable-tertiary-borderColor);
|
|
1017
1163
|
--ag-secondary-foreground-color: var(--salt-content-primary-foreground);
|
|
1018
1164
|
--ag-selected-row-background-color: var(--salt-selectable-background-selected);
|
|
1165
|
+
--ag-selected-row-border-color: var(--salt-selectable-borderColor-selected);
|
|
1019
1166
|
--ag-selected-tab-underline-color: var(--salt-navigable-accent-indicator-active);
|
|
1020
1167
|
--ag-selected-tab-underline-width: var(--salt-size-indicator);
|
|
1021
1168
|
--ag-subheader-background-color: var(--salt-container-primary-background);
|
|
@@ -1053,6 +1200,40 @@ div[class*=ag-theme-salt].ag-theme-salt-variant-zebra {
|
|
|
1053
1200
|
border: none;
|
|
1054
1201
|
}
|
|
1055
1202
|
|
|
1203
|
+
/* css/parts/ag-row.css */
|
|
1204
|
+
.ag-theme-salt-variant-secondary.ag-theme-salt-variant-secondary {
|
|
1205
|
+
--ag-header-background-color: var(--salt-container-secondary-background);
|
|
1206
|
+
--ag-secondary-border-color: var(--salt-separable-tertiary-borderColor);
|
|
1207
|
+
--ag-background-color: var(--salt-container-secondary-background);
|
|
1208
|
+
}
|
|
1209
|
+
.ag-theme-salt-variant-zebra.ag-theme-salt-variant-zebra {
|
|
1210
|
+
--ag-background-color: var(--salt-container-secondary-background);
|
|
1211
|
+
--ag-odd-row-background-color: var(--salt-container-primary-background);
|
|
1212
|
+
--ag-header-background-color: var(--salt-container-primary-background);
|
|
1213
|
+
--ag-secondary-border-color: var(--salt-separable-tertiary-borderColor);
|
|
1214
|
+
}
|
|
1215
|
+
.error-row {
|
|
1216
|
+
--ag-background-color: var(--salt-status-error-background);
|
|
1217
|
+
--ag-selected-row-background-color: var(--salt-status-error-background-selected);
|
|
1218
|
+
--ag-selected-row-border-color: var(--salt-status-error-borderColor);
|
|
1219
|
+
--ag-odd-row-background-color: var(--ag-background-color);
|
|
1220
|
+
--ag-row-hover-color: var(--salt-overlayable-background-hover);
|
|
1221
|
+
}
|
|
1222
|
+
.warning-row {
|
|
1223
|
+
--ag-background-color: var(--salt-status-warning-background);
|
|
1224
|
+
--ag-selected-row-background-color: var(--salt-status-warning-background-selected);
|
|
1225
|
+
--ag-selected-row-border-color: var(--salt-status-warning-borderColor);
|
|
1226
|
+
--ag-odd-row-background-color: var(--ag-background-color);
|
|
1227
|
+
--ag-row-hover-color: var(--salt-overlayable-background-hover);
|
|
1228
|
+
}
|
|
1229
|
+
.success-row {
|
|
1230
|
+
--ag-background-color: var(--salt-status-success-background);
|
|
1231
|
+
--ag-selected-row-background-color: var(--salt-status-success-background-selected);
|
|
1232
|
+
--ag-selected-row-border-color: var(--salt-status-success-borderColor);
|
|
1233
|
+
--ag-odd-row-background-color: var(--ag-background-color);
|
|
1234
|
+
--ag-row-hover-color: var(--salt-overlayable-background-hover);
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1056
1237
|
/* css/parts/ag-toggle-button.css */
|
|
1057
1238
|
.ag-toggle-button-input-wrapper::before {
|
|
1058
1239
|
top: calc(1px - var(--ag-toggle-button-border-width));
|