@perspective-dev/viewer-datagrid 4.3.0 → 4.4.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/cdn/perspective-viewer-datagrid.js +5 -5
- package/dist/cdn/perspective-viewer-datagrid.js.map +4 -4
- package/dist/css/perspective-viewer-datagrid-toolbar.css +1 -1
- package/dist/css/perspective-viewer-datagrid.css +1 -1
- package/dist/esm/perspective-viewer-datagrid.js +2 -2
- package/dist/esm/perspective-viewer-datagrid.js.map +3 -3
- package/dist/esm/style_handlers/table_cell/datetime.d.ts +6 -2
- package/package.json +2 -2
- package/src/css/mitered-headers.css +64 -0
- package/src/css/perspective-viewer-datagrid.css +6 -0
- package/src/{less/pro.less → css/pro.css} +32 -31
- package/src/{less/regular_table.less → css/regular_table.css} +163 -156
- package/src/{less/row-hover.less → css/row-hover.css} +28 -22
- package/src/{less/scrollbar.less → css/scrollbar.css} +16 -15
- package/src/{less/sub-cell-scroll.less → css/sub-cell-scroll.css} +14 -13
- package/src/{less/toolbar.less → css/toolbar.css} +46 -39
- package/src/ts/model/create.ts +4 -4
- package/src/ts/style_handlers/body.ts +15 -13
- package/src/ts/style_handlers/table_cell/datetime.ts +12 -9
- package/src/less/mitered-headers.less +0 -65
|
@@ -1,53 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
@
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
// }
|
|
40
|
-
|
|
41
|
-
// @mixin settings-not-open {
|
|
42
|
-
// regular-table table tr.rt-autosize + tr th {
|
|
43
|
-
// height: 0px;
|
|
44
|
-
// span {
|
|
45
|
-
// display: none;
|
|
46
|
-
// }
|
|
47
|
-
// }
|
|
48
|
-
// }
|
|
49
|
-
|
|
50
|
-
@mixin settings-open {
|
|
1
|
+
/* ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
|
2
|
+
* ┃ ██████ ██████ ██████ █ █ █ █ █ █▄ ▀███ █ ┃
|
|
3
|
+
* ┃ ▄▄▄▄▄█ █▄▄▄▄▄ ▄▄▄▄▄█ ▀▀▀▀▀█▀▀▀▀▀ █ ▀▀▀▀▀█ ████████▌▐███ ███▄ ▀█ █ ▀▀▀▀▀ ┃
|
|
4
|
+
* ┃ █▀▀▀▀▀ █▀▀▀▀▀ █▀██▀▀ ▄▄▄▄▄ █ ▄▄▄▄▄█ ▄▄▄▄▄█ ████████▌▐███ █████▄ █ ▄▄▄▄▄ ┃
|
|
5
|
+
* ┃ █ ██████ █ ▀█▄ █ ██████ █ ███▌▐███ ███████▄ █ ┃
|
|
6
|
+
* ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
|
|
7
|
+
* ┃ Copyright (c) 2017, the Perspective Authors. ┃
|
|
8
|
+
* ┃ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ ┃
|
|
9
|
+
* ┃ This file is part of the Perspective library, distributed under the terms ┃
|
|
10
|
+
* ┃ of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). ┃
|
|
11
|
+
* ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
|
|
12
|
+
*/
|
|
13
|
+
/*
|
|
14
|
+
|
|
15
|
+
/* Row Selection */
|
|
16
|
+
|
|
17
|
+
/* // TODO this makes the UI flash a CSS layout for a millsiecond when toggling */
|
|
18
|
+
/* // settings butit could be fixed. */
|
|
19
|
+
|
|
20
|
+
/* perspective-viewer:not([settings]) { */
|
|
21
|
+
/* @include settings-not-open; */
|
|
22
|
+
/* } */
|
|
23
|
+
|
|
24
|
+
/* :host-context(perspective-viewer:not([settings])) { */
|
|
25
|
+
/* @include settings-not-open; */
|
|
26
|
+
/* } */
|
|
27
|
+
|
|
28
|
+
/* @mixin settings-not-open { */
|
|
29
|
+
/* regular-table table tr.rt-autosize + tr th { */
|
|
30
|
+
/* height: 0px; */
|
|
31
|
+
/* span { */
|
|
32
|
+
/* display: none; */
|
|
33
|
+
/* } */
|
|
34
|
+
/* } */
|
|
35
|
+
/* } */
|
|
36
|
+
|
|
37
|
+
perspective-viewer,
|
|
38
|
+
:host {
|
|
51
39
|
.psp-menu-enabled {
|
|
52
40
|
padding: 0 6px;
|
|
53
41
|
font-size: 8px;
|
|
@@ -56,65 +44,55 @@
|
|
|
56
44
|
|
|
57
45
|
.psp-menu-enabled:hover,
|
|
58
46
|
tr:not(.rt-autosize) th.psp-menu-open {
|
|
59
|
-
color: var(--
|
|
60
|
-
background-color: var(--
|
|
61
|
-
border-bottom-color: var(--
|
|
47
|
+
color: var(--psp--background-color);
|
|
48
|
+
background-color: var(--psp--color);
|
|
49
|
+
border-bottom-color: var(--psp--color);
|
|
62
50
|
cursor: pointer;
|
|
63
51
|
}
|
|
64
52
|
|
|
65
53
|
tr:not(.rt-autosize) th.psp-menu-open {
|
|
66
54
|
&:before {
|
|
67
|
-
|
|
55
|
+
background-repeat: no-repeat;
|
|
56
|
+
background-color: var(--psp--color);
|
|
57
|
+
content: "";
|
|
58
|
+
display: inline-block;
|
|
59
|
+
-webkit-mask-size: cover;
|
|
60
|
+
mask-size: cover;
|
|
68
61
|
height: 8px;
|
|
69
62
|
width: 10px;
|
|
70
|
-
-webkit-mask-image: var(--column-settings
|
|
71
|
-
mask-image: var(--column-settings
|
|
63
|
+
-webkit-mask-image: var(--psp-icon--column-settings--mask-image);
|
|
64
|
+
mask-image: var(--psp-icon--column-settings--mask-image);
|
|
72
65
|
margin-right: 4px;
|
|
73
|
-
background-color: var(--
|
|
66
|
+
background-color: var(--psp--background-color);
|
|
74
67
|
}
|
|
75
68
|
}
|
|
76
69
|
|
|
77
70
|
td.psp-menu-open {
|
|
78
71
|
box-shadow:
|
|
79
|
-
inset -2px 0px 0px var(--
|
|
80
|
-
inset 2px 0px 0px var(--
|
|
72
|
+
inset -2px 0px 0px var(--psp--color),
|
|
73
|
+
inset 2px 0px 0px var(--psp--color);
|
|
81
74
|
}
|
|
82
75
|
|
|
83
76
|
tr:first-child td.psp-menu-open {
|
|
84
|
-
border-top-color: var(--
|
|
77
|
+
border-top-color: var(--psp--color) !important;
|
|
85
78
|
}
|
|
86
79
|
|
|
87
80
|
tr:last-child td.psp-menu-open {
|
|
88
81
|
box-shadow:
|
|
89
|
-
inset -2px 0px 0px var(--
|
|
90
|
-
inset 2px 0px 0px var(--
|
|
91
|
-
inset 0px -2px 0px var(--
|
|
82
|
+
inset -2px 0px 0px var(--psp--color),
|
|
83
|
+
inset 2px 0px 0px var(--psp--color),
|
|
84
|
+
inset 0px -2px 0px var(--psp--color);
|
|
92
85
|
}
|
|
93
86
|
}
|
|
94
87
|
|
|
95
|
-
perspective-viewer
|
|
96
|
-
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
:host {
|
|
100
|
-
@include settings-open;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
@mixin viewer-table-styles {
|
|
88
|
+
perspective-viewer,
|
|
89
|
+
:host-context(perspective-viewer) {
|
|
104
90
|
regular-table table thead tr:last-child th {
|
|
105
91
|
border-bottom-width: 1px;
|
|
106
|
-
border-bottom-color: var(--inactive--border-color, #8b868045);
|
|
92
|
+
border-bottom-color: var(--psp-inactive--border-color, #8b868045);
|
|
107
93
|
}
|
|
108
94
|
}
|
|
109
95
|
|
|
110
|
-
perspective-viewer {
|
|
111
|
-
@include viewer-table-styles;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
:host-context(perspective-viewer) {
|
|
115
|
-
@include viewer-table-styles;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
96
|
.psp-sort-enabled:hover {
|
|
119
97
|
cursor: pointer;
|
|
120
98
|
}
|
|
@@ -159,96 +137,131 @@ td:focus {
|
|
|
159
137
|
outline-width: 1px;
|
|
160
138
|
}
|
|
161
139
|
|
|
162
|
-
|
|
140
|
+
perspective-viewer.dragging,
|
|
141
|
+
:host-context(perspective-viewer.dragging) {
|
|
163
142
|
regular-table {
|
|
164
143
|
pointer-events: none;
|
|
165
144
|
}
|
|
166
145
|
}
|
|
167
|
-
perspective-viewer.dragging {
|
|
168
|
-
@include table-no-dragging;
|
|
169
|
-
}
|
|
170
|
-
:host-context(perspective-viewer.dragging) {
|
|
171
|
-
@include table-no-dragging;
|
|
172
|
-
}
|
|
173
146
|
|
|
174
147
|
.psp-header-border:last-child {
|
|
175
148
|
border-right-width: 0px;
|
|
176
149
|
}
|
|
177
150
|
|
|
178
151
|
.psp-header-sort-desc:after {
|
|
179
|
-
|
|
152
|
+
background-repeat: no-repeat;
|
|
153
|
+
background-color: var(--psp--color);
|
|
154
|
+
content: "";
|
|
155
|
+
display: inline-block;
|
|
156
|
+
-webkit-mask-size: cover;
|
|
157
|
+
mask-size: cover;
|
|
180
158
|
width: 14px;
|
|
181
159
|
height: 11px;
|
|
182
160
|
margin-left: 4px;
|
|
183
|
-
-webkit-mask-image: var(--sort-desc
|
|
184
|
-
mask-image: var(--sort-desc
|
|
161
|
+
-webkit-mask-image: var(--psp-icon--sort-desc--mask-image);
|
|
162
|
+
mask-image: var(--psp-icon--sort-desc--mask-image);
|
|
185
163
|
}
|
|
186
164
|
|
|
187
165
|
.psp-header-sort-asc:after {
|
|
188
|
-
|
|
166
|
+
background-repeat: no-repeat;
|
|
167
|
+
background-color: var(--psp--color);
|
|
168
|
+
content: "";
|
|
169
|
+
display: inline-block;
|
|
170
|
+
-webkit-mask-size: cover;
|
|
171
|
+
mask-size: cover;
|
|
189
172
|
width: 14px;
|
|
190
173
|
height: 11px;
|
|
191
174
|
margin-left: 4px;
|
|
192
|
-
-webkit-mask-image: var(--sort-asc
|
|
193
|
-
mask-image: var(--sort-asc
|
|
175
|
+
-webkit-mask-image: var(--psp-icon--sort-asc--mask-image);
|
|
176
|
+
mask-image: var(--psp-icon--sort-asc--mask-image);
|
|
194
177
|
}
|
|
195
178
|
|
|
196
179
|
.psp-header-sort-col-desc:after {
|
|
197
|
-
|
|
180
|
+
background-repeat: no-repeat;
|
|
181
|
+
background-color: var(--psp--color);
|
|
182
|
+
content: "";
|
|
183
|
+
display: inline-block;
|
|
184
|
+
-webkit-mask-size: cover;
|
|
185
|
+
mask-size: cover;
|
|
198
186
|
width: 14px;
|
|
199
187
|
height: 11px;
|
|
200
188
|
margin-left: 4px;
|
|
201
|
-
-webkit-mask-image: var(--sort-col-desc
|
|
202
|
-
mask-image: var(--sort-col-desc
|
|
189
|
+
-webkit-mask-image: var(--psp-icon--sort-col-desc--mask-image);
|
|
190
|
+
mask-image: var(--psp-icon--sort-col-desc--mask-image);
|
|
203
191
|
}
|
|
204
192
|
|
|
205
193
|
.psp-header-sort-col-asc:after {
|
|
206
|
-
|
|
194
|
+
background-repeat: no-repeat;
|
|
195
|
+
background-color: var(--psp--color);
|
|
196
|
+
content: "";
|
|
197
|
+
display: inline-block;
|
|
198
|
+
-webkit-mask-size: cover;
|
|
199
|
+
mask-size: cover;
|
|
207
200
|
width: 14px;
|
|
208
201
|
height: 11px;
|
|
209
202
|
margin-left: 4px;
|
|
210
|
-
-webkit-mask-image: var(--sort-col-asc
|
|
211
|
-
mask-image: var(--sort-col-asc
|
|
203
|
+
-webkit-mask-image: var(--psp-icon--sort-col-asc--mask-image);
|
|
204
|
+
mask-image: var(--psp-icon--sort-col-asc--mask-image);
|
|
212
205
|
}
|
|
213
206
|
|
|
214
207
|
.psp-header-sort-abs-desc:after {
|
|
215
|
-
|
|
208
|
+
background-repeat: no-repeat;
|
|
209
|
+
background-color: var(--psp--color);
|
|
210
|
+
content: "";
|
|
211
|
+
display: inline-block;
|
|
212
|
+
-webkit-mask-size: cover;
|
|
213
|
+
mask-size: cover;
|
|
216
214
|
width: 14px;
|
|
217
215
|
height: 11px;
|
|
218
216
|
margin-left: 4px;
|
|
219
|
-
-webkit-mask-image: var(--sort-abs-desc
|
|
220
|
-
mask-image: var(--sort-abs-desc
|
|
217
|
+
-webkit-mask-image: var(--psp-icon--sort-abs-desc--mask-image);
|
|
218
|
+
mask-image: var(--psp-icon--sort-abs-desc--mask-image);
|
|
221
219
|
}
|
|
222
220
|
|
|
223
221
|
.psp-header-sort-abs-asc:after {
|
|
224
|
-
|
|
222
|
+
background-repeat: no-repeat;
|
|
223
|
+
background-color: var(--psp--color);
|
|
224
|
+
content: "";
|
|
225
|
+
display: inline-block;
|
|
226
|
+
-webkit-mask-size: cover;
|
|
227
|
+
mask-size: cover;
|
|
225
228
|
width: 14px;
|
|
226
229
|
height: 11px;
|
|
227
230
|
margin-left: 4px;
|
|
228
|
-
-webkit-mask-image: var(--sort-abs-asc
|
|
229
|
-
mask-image: var(--sort-abs-asc
|
|
231
|
+
-webkit-mask-image: var(--psp-icon--sort-abs-asc--mask-image);
|
|
232
|
+
mask-image: var(--psp-icon--sort-abs-asc--mask-image);
|
|
230
233
|
}
|
|
231
234
|
|
|
232
235
|
.psp-header-sort-abs-col-desc:after {
|
|
233
|
-
|
|
236
|
+
background-repeat: no-repeat;
|
|
237
|
+
background-color: var(--psp--color);
|
|
238
|
+
content: "";
|
|
239
|
+
display: inline-block;
|
|
240
|
+
-webkit-mask-size: cover;
|
|
241
|
+
mask-size: cover;
|
|
234
242
|
width: 14px;
|
|
235
243
|
height: 11px;
|
|
236
244
|
margin-left: 4px;
|
|
237
|
-
-webkit-mask-image: var(--sort-abs-col-desc
|
|
238
|
-
mask-image: var(--sort-abs-col-desc
|
|
245
|
+
-webkit-mask-image: var(--psp-icon--sort-abs-col-desc--mask-image);
|
|
246
|
+
mask-image: var(--psp-icon--sort-abs-col-desc--mask-image);
|
|
239
247
|
}
|
|
240
248
|
|
|
241
249
|
.psp-header-sort-abs-col-asc:after {
|
|
242
|
-
|
|
250
|
+
background-repeat: no-repeat;
|
|
251
|
+
background-color: var(--psp--color);
|
|
252
|
+
content: "";
|
|
253
|
+
display: inline-block;
|
|
254
|
+
-webkit-mask-size: cover;
|
|
255
|
+
mask-size: cover;
|
|
243
256
|
width: 14px;
|
|
244
257
|
height: 11px;
|
|
245
258
|
margin-left: 4px;
|
|
246
|
-
-webkit-mask-image: var(--sort-abs-col-asc
|
|
247
|
-
mask-image: var(--sort-abs-col-asc
|
|
259
|
+
-webkit-mask-image: var(--psp-icon--sort-abs-col-asc--mask-image);
|
|
260
|
+
mask-image: var(--psp-icon--sort-abs-col-asc--mask-image);
|
|
248
261
|
}
|
|
249
262
|
|
|
250
263
|
tbody th:last-of-type {
|
|
251
|
-
border-right: 1px solid var(--inactive--border-color, #8b868045);
|
|
264
|
+
border-right: 1px solid var(--psp-inactive--border-color, #8b868045);
|
|
252
265
|
overflow: hidden;
|
|
253
266
|
text-overflow: ellipsis;
|
|
254
267
|
}
|
|
@@ -256,7 +269,7 @@ tbody th:empty {
|
|
|
256
269
|
background-image: linear-gradient(
|
|
257
270
|
to right,
|
|
258
271
|
transparent 9px,
|
|
259
|
-
var(--inactive--border-color, #eee) 10px,
|
|
272
|
+
var(--psp-inactive--border-color, #eee) 10px,
|
|
260
273
|
transparent 11px
|
|
261
274
|
);
|
|
262
275
|
background-repeat: no-repeat;
|
|
@@ -272,17 +285,17 @@ regular-table:not(.flat-group-rollup-mode) {
|
|
|
272
285
|
}
|
|
273
286
|
|
|
274
287
|
.psp-tree-label:before {
|
|
275
|
-
color: var(--
|
|
276
|
-
font-family: var(--button--font-family, inherit);
|
|
288
|
+
color: var(--psp--color);
|
|
289
|
+
font-family: var(--psp-button--font-family, inherit);
|
|
277
290
|
padding-right: 11px;
|
|
278
291
|
}
|
|
279
292
|
|
|
280
293
|
.psp-tree-label-expand:before {
|
|
281
|
-
content: var(--
|
|
294
|
+
content: var(--psp-label--tree-expand--content, "+");
|
|
282
295
|
}
|
|
283
296
|
|
|
284
297
|
.psp-tree-label-collapse:before {
|
|
285
|
-
content: var(--
|
|
298
|
+
content: var(--psp-label--tree-collapse--content, "-");
|
|
286
299
|
}
|
|
287
300
|
|
|
288
301
|
.psp-tree-label-expand,
|
|
@@ -291,8 +304,8 @@ regular-table:not(.flat-group-rollup-mode) {
|
|
|
291
304
|
}
|
|
292
305
|
|
|
293
306
|
.psp-tree-label:hover:before {
|
|
294
|
-
color: var(--active--color);
|
|
295
|
-
text-shadow: 0px 0px 5px var(--active--color);
|
|
307
|
+
color: var(--psp-active--color);
|
|
308
|
+
text-shadow: 0px 0px 5px var(--psp-active--color);
|
|
296
309
|
}
|
|
297
310
|
}
|
|
298
311
|
|
|
@@ -307,10 +320,10 @@ regular-table:not(.flat-group-rollup-mode) {
|
|
|
307
320
|
text-align: left;
|
|
308
321
|
}
|
|
309
322
|
.psp-positive:not(:focus) {
|
|
310
|
-
color: var(--
|
|
323
|
+
color: var(--psp-datagrid--pos-cell--color);
|
|
311
324
|
}
|
|
312
325
|
.psp-negative:not(:focus) {
|
|
313
|
-
color: var(--
|
|
326
|
+
color: var(--psp-datagrid--neg-cell--color);
|
|
314
327
|
}
|
|
315
328
|
|
|
316
329
|
regular-table table tbody td {
|
|
@@ -329,6 +342,7 @@ regular-table table tbody td {
|
|
|
329
342
|
}
|
|
330
343
|
|
|
331
344
|
regular-table table {
|
|
345
|
+
font-size: 1em;
|
|
332
346
|
user-select: none;
|
|
333
347
|
color: inherit;
|
|
334
348
|
border-collapse: separate;
|
|
@@ -339,7 +353,7 @@ regular-table table {
|
|
|
339
353
|
|
|
340
354
|
td,
|
|
341
355
|
th {
|
|
342
|
-
border-color: var(--inactive--border-color, #8b868045);
|
|
356
|
+
border-color: var(--psp-inactive--border-color, #8b868045);
|
|
343
357
|
height: 23px;
|
|
344
358
|
}
|
|
345
359
|
|
|
@@ -371,10 +385,10 @@ regular-table table {
|
|
|
371
385
|
|
|
372
386
|
td.psp-select-region,
|
|
373
387
|
th.psp-select-region {
|
|
374
|
-
|
|
375
|
-
background-color: var(--
|
|
376
|
-
color: var(--
|
|
377
|
-
border-color: var(--
|
|
388
|
+
/* transition: background-color 0.5s, color 0.5s, border-color 0.5s; */
|
|
389
|
+
background-color: var(--psp--color) !important;
|
|
390
|
+
color: var(--psp--background-color) !important;
|
|
391
|
+
border-color: var(--psp--background-color) !important;
|
|
378
392
|
}
|
|
379
393
|
}
|
|
380
394
|
|
|
@@ -387,63 +401,56 @@ regular-table
|
|
|
387
401
|
tr:hover
|
|
388
402
|
+ tr
|
|
389
403
|
td.psp-select-region:not(.psp-row-selected):not(.psp-row-subselected) {
|
|
390
|
-
border-color: var(--
|
|
404
|
+
border-color: var(--psp--background-color) !important;
|
|
391
405
|
}
|
|
392
406
|
|
|
393
407
|
regular-table tbody tr:hover {
|
|
394
408
|
td.psp-select-region.psp-menu-open {
|
|
395
409
|
&:not(.psp-row-selected):not(.psp-row-subselected) {
|
|
396
410
|
box-shadow:
|
|
397
|
-
inset -2px 0px 0px var(--
|
|
398
|
-
inset 2px 0px 0px var(--
|
|
411
|
+
inset -2px 0px 0px var(--psp--background-color),
|
|
412
|
+
inset 2px 0px 0px var(--psp--background-color);
|
|
399
413
|
}
|
|
400
414
|
}
|
|
401
415
|
}
|
|
402
416
|
|
|
403
417
|
:host-context(perspective-viewer[settings]) td.psp-select-region.psp-menu-open {
|
|
404
418
|
box-shadow:
|
|
405
|
-
inset -2px 0px 0px var(--
|
|
406
|
-
inset 2px 0px 0px var(--
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
// This is a design/architecture bug. When the datagrid draws during a sidepanel
|
|
410
|
-
// collapse/uncollapse, the `settings` attribute is set to the _previous_ state
|
|
411
|
-
// as this collapse takes a while and we dont want the new state CSS to apply
|
|
412
|
-
// until the drawing is done. However, this causes the datagrid to draw its
|
|
413
|
-
// _first_ frame as if its in the wrong state, as it detects sidepanel state
|
|
414
|
-
// via HTML attribute checking.
|
|
415
|
-
@mixin design-slash-architecture-bug {
|
|
416
|
-
regular-table #psp-column-edit-buttons:after {
|
|
417
|
-
content: none;
|
|
418
|
-
}
|
|
419
|
+
inset -2px 0px 0px var(--psp--background-color),
|
|
420
|
+
inset 2px 0px 0px var(--psp--background-color);
|
|
419
421
|
}
|
|
420
422
|
|
|
423
|
+
/* This is a design/architecture bug. When the datagrid draws during a sidepanel */
|
|
424
|
+
/* collapse/uncollapse, the `settings` attribute is set to the _previous_ state */
|
|
425
|
+
/* as this collapse takes a while and we dont want the new state CSS to apply */
|
|
426
|
+
/* until the drawing is done. However, this causes the datagrid to draw its */
|
|
427
|
+
/* _first_ frame as if its in the wrong state, as it detects sidepanel state */
|
|
428
|
+
/* via HTML attribute checking. */
|
|
421
429
|
regular-table
|
|
422
430
|
#psp-column-edit-buttons
|
|
423
431
|
th:not(.rt-group-corner)
|
|
424
432
|
span:not(.rt-column-resize):before {
|
|
425
|
-
content: var(--datagrid
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
perspective-viewer:not([settings]) {
|
|
429
|
-
@include design-slash-architecture-bug;
|
|
433
|
+
content: var(--psp-datagrid--column-edit-button--content, "Edit");
|
|
430
434
|
}
|
|
431
435
|
|
|
436
|
+
perspective-viewer:not([settings]),
|
|
432
437
|
:host-context(perspective-viewer:not([settings])) {
|
|
433
|
-
|
|
438
|
+
regular-table #psp-column-edit-buttons:after {
|
|
439
|
+
content: none;
|
|
440
|
+
}
|
|
434
441
|
}
|
|
435
442
|
|
|
436
|
-
|
|
443
|
+
/* Style the last row of the `<thead>` so that is has a bottom border. */
|
|
437
444
|
regular-table table thead tr:last-child:after {
|
|
438
445
|
width: 10000px;
|
|
439
446
|
box-sizing: border-box;
|
|
440
447
|
display: block;
|
|
441
448
|
height: 23px;
|
|
442
449
|
content: " ";
|
|
443
|
-
border-bottom: 1px solid var(--inactive--border-color);
|
|
450
|
+
border-bottom: 1px solid var(--psp-inactive--border-color);
|
|
444
451
|
}
|
|
445
452
|
|
|
446
|
-
|
|
453
|
+
/* Extend every row to the right edge of the page with a fake column. */
|
|
447
454
|
regular-table table tbody tr:after {
|
|
448
455
|
width: 10000px;
|
|
449
456
|
box-sizing: border-box;
|
|
@@ -454,15 +461,15 @@ regular-table table tbody tr:after {
|
|
|
454
461
|
}
|
|
455
462
|
|
|
456
463
|
regular-table table tbody tr:not(:first-child):after {
|
|
457
|
-
border-top: 1px solid var(--inactive--border-color);
|
|
464
|
+
border-top: 1px solid var(--psp-inactive--border-color);
|
|
458
465
|
}
|
|
459
466
|
|
|
460
467
|
regular-table table tbody tr:hover:not(:first-child):after {
|
|
461
|
-
border-top: 1px solid var(--
|
|
468
|
+
border-top: 1px solid var(--psp-datagrid--hover--border-color);
|
|
462
469
|
}
|
|
463
470
|
|
|
464
471
|
regular-table table tbody tr:hover + tr:after {
|
|
465
|
-
border-top: 1px solid var(--
|
|
472
|
+
border-top: 1px solid var(--psp-datagrid--hover--border-color);
|
|
466
473
|
}
|
|
467
474
|
|
|
468
475
|
@keyframes pulse_pos {
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
/* ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
|
2
|
+
* ┃ ██████ ██████ ██████ █ █ █ █ █ █▄ ▀███ █ ┃
|
|
3
|
+
* ┃ ▄▄▄▄▄█ █▄▄▄▄▄ ▄▄▄▄▄█ ▀▀▀▀▀█▀▀▀▀▀ █ ▀▀▀▀▀█ ████████▌▐███ ███▄ ▀█ █ ▀▀▀▀▀ ┃
|
|
4
|
+
* ┃ █▀▀▀▀▀ █▀▀▀▀▀ █▀██▀▀ ▄▄▄▄▄ █ ▄▄▄▄▄█ ▄▄▄▄▄█ ████████▌▐███ █████▄ █ ▄▄▄▄▄ ┃
|
|
5
|
+
* ┃ █ ██████ █ ▀█▄ █ ██████ █ ███▌▐███ ███████▄ █ ┃
|
|
6
|
+
* ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
|
|
7
|
+
* ┃ Copyright (c) 2017, the Perspective Authors. ┃
|
|
8
|
+
* ┃ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ ┃
|
|
9
|
+
* ┃ This file is part of the Perspective library, distributed under the terms ┃
|
|
10
|
+
* ┃ of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). ┃
|
|
11
|
+
* ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
|
|
12
|
+
*/
|
|
12
13
|
|
|
13
14
|
regular-table {
|
|
14
15
|
tbody {
|
|
@@ -18,24 +19,29 @@ regular-table {
|
|
|
18
19
|
th.psp-tree-label:not(.psp-row-selected):not(.psp-row-subselected),
|
|
19
20
|
tr:hover td:not(.psp-row-selected):not(.psp-row-subselected),
|
|
20
21
|
tr:hover:after {
|
|
21
|
-
border-color: var(
|
|
22
|
-
|
|
22
|
+
border-color: var(
|
|
23
|
+
--psp-datagrid--hover--border-color,
|
|
24
|
+
#c5c9d080
|
|
25
|
+
) !important;
|
|
26
|
+
box-shadow: 0px 1px 0px
|
|
27
|
+
var(--psp-datagrid--hover--border-color, #c5c9d080);
|
|
23
28
|
|
|
24
29
|
&.psp-menu-open {
|
|
25
30
|
box-shadow:
|
|
26
|
-
inset -2px 0px 0px var(--
|
|
27
|
-
inset 2px 0px 0px var(--
|
|
28
|
-
0px 1px 0px
|
|
31
|
+
inset -2px 0px 0px var(--psp--color),
|
|
32
|
+
inset 2px 0px 0px var(--psp--color),
|
|
33
|
+
0px 1px 0px
|
|
34
|
+
var(--psp-datagrid--hover--border-color, #c5c9d080);
|
|
29
35
|
}
|
|
30
36
|
}
|
|
31
37
|
|
|
32
38
|
tr:last-child:hover
|
|
33
39
|
td:not(.psp-row-selected):not(.psp-row-subselected).psp-menu-open {
|
|
34
40
|
box-shadow:
|
|
35
|
-
inset -2px 0px 0px var(--
|
|
36
|
-
inset 2px 0px 0px var(--
|
|
37
|
-
inset 0px -2px 0px var(--
|
|
38
|
-
0px 1px 0px var(--
|
|
41
|
+
inset -2px 0px 0px var(--psp--color),
|
|
42
|
+
inset 2px 0px 0px var(--psp--color),
|
|
43
|
+
inset 0px -2px 0px var(--psp--color),
|
|
44
|
+
0px 1px 0px var(--psp-datagrid--hover--border-color, #c5c9d080);
|
|
39
45
|
}
|
|
40
46
|
|
|
41
47
|
tr:hover
|
|
@@ -71,7 +77,7 @@ regular-table {
|
|
|
71
77
|
th:first-child:empty ~ th:empty + th:not(:empty),
|
|
72
78
|
td:first-child {
|
|
73
79
|
border-left-color: var(
|
|
74
|
-
--
|
|
80
|
+
--psp-datagrid--hover--border-color,
|
|
75
81
|
#c5c9d080
|
|
76
82
|
) !important;
|
|
77
83
|
}
|
|
@@ -79,7 +85,7 @@ regular-table {
|
|
|
79
85
|
th:last-child,
|
|
80
86
|
td:last-child {
|
|
81
87
|
border-right-color: var(
|
|
82
|
-
--
|
|
88
|
+
--psp-datagrid--hover--border-color,
|
|
83
89
|
#c5c9d080
|
|
84
90
|
) !important;
|
|
85
91
|
}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
/* ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
|
|
2
|
+
* ┃ ██████ ██████ ██████ █ █ █ █ █ █▄ ▀███ █ ┃
|
|
3
|
+
* ┃ ▄▄▄▄▄█ █▄▄▄▄▄ ▄▄▄▄▄█ ▀▀▀▀▀█▀▀▀▀▀ █ ▀▀▀▀▀█ ████████▌▐███ ███▄ ▀█ █ ▀▀▀▀▀ ┃
|
|
4
|
+
* ┃ █▀▀▀▀▀ █▀▀▀▀▀ █▀██▀▀ ▄▄▄▄▄ █ ▄▄▄▄▄█ ▄▄▄▄▄█ ████████▌▐███ █████▄ █ ▄▄▄▄▄ ┃
|
|
5
|
+
* ┃ █ ██████ █ ▀█▄ █ ██████ █ ███▌▐███ ███████▄ █ ┃
|
|
6
|
+
* ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
|
|
7
|
+
* ┃ Copyright (c) 2017, the Perspective Authors. ┃
|
|
8
|
+
* ┃ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ ┃
|
|
9
|
+
* ┃ This file is part of the Perspective library, distributed under the terms ┃
|
|
10
|
+
* ┃ of the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). ┃
|
|
11
|
+
* ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
|
|
12
|
+
*/
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
/* Scrollbar styling */
|
|
14
15
|
regular-table {
|
|
15
16
|
outline: none;
|
|
16
17
|
|
|
17
|
-
|
|
18
|
+
/* webkit (chrome, safari, etc) scrollbar styling */
|
|
18
19
|
&::-webkit-scrollbar,
|
|
19
20
|
&::-webkit-scrollbar-corner {
|
|
20
21
|
background-color: transparent;
|
|
@@ -24,8 +25,8 @@ regular-table {
|
|
|
24
25
|
|
|
25
26
|
&::-webkit-scrollbar-thumb {
|
|
26
27
|
background-clip: content-box;
|
|
27
|
-
background: var(--
|
|
28
|
-
border: 5.5px solid var(--
|
|
28
|
+
background: var(--psp--color);
|
|
29
|
+
border: 5.5px solid var(--psp--background-color);
|
|
29
30
|
max-height: 50%;
|
|
30
31
|
max-width: 50%;
|
|
31
32
|
min-width: 10%;
|