es-grid-template 1.2.0 → 1.2.2
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/assets/index.css +695 -0
- package/assets/index.scss +1063 -0
- package/es/grid-component/ColumnsChoose.d.ts +1 -0
- package/es/grid-component/ColumnsChoose.js +63 -28
- package/es/grid-component/ColumnsGroup/ColumnsGroup.d.ts +12 -0
- package/es/grid-component/ColumnsGroup/ColumnsGroup.js +223 -0
- package/es/grid-component/ColumnsGroup/index.d.ts +1 -0
- package/es/grid-component/ColumnsGroup/index.js +1 -0
- package/es/grid-component/ConvertColumnTable.d.ts +7 -0
- package/es/grid-component/ConvertColumnTable.js +143 -0
- package/es/grid-component/EditableCell.js +1 -1
- package/es/grid-component/GridStyle.js +1 -1
- package/es/grid-component/InternalTable.d.ts +1 -0
- package/es/grid-component/InternalTable.js +150 -249
- package/es/grid-component/TableGrid.d.ts +4 -1
- package/es/grid-component/TableGrid.js +31 -70
- package/es/grid-component/hooks/{useColumns → columns}/index.d.ts +2 -2
- package/es/grid-component/hooks/{useColumns → columns}/index.js +20 -16
- package/es/grid-component/hooks/content/HeaderContent.d.ts +11 -0
- package/es/grid-component/hooks/content/HeaderContent.js +79 -0
- package/es/grid-component/hooks/content/TooltipContent.d.ts +13 -0
- package/es/grid-component/hooks/content/TooltipContent.js +74 -0
- package/es/grid-component/hooks/useColumns.d.ts +16 -0
- package/es/grid-component/hooks/useColumns.js +280 -0
- package/es/grid-component/hooks/utils.d.ts +26 -1
- package/es/grid-component/hooks/utils.js +331 -1
- package/es/grid-component/index.js +3 -1
- package/es/grid-component/styles.scss +365 -68
- package/es/grid-component/table/Grid.d.ts +2 -0
- package/es/grid-component/table/Grid.js +18 -6
- package/es/grid-component/table/GridEdit.d.ts +4 -1
- package/es/grid-component/table/GridEdit.js +941 -307
- package/es/grid-component/table/Group.d.ts +13 -0
- package/es/grid-component/table/Group.js +154 -0
- package/es/grid-component/type.d.ts +39 -2
- package/lib/grid-component/ColumnsChoose.d.ts +1 -0
- package/lib/grid-component/ColumnsChoose.js +62 -27
- package/lib/grid-component/ColumnsGroup/ColumnsGroup.d.ts +12 -0
- package/lib/grid-component/ColumnsGroup/ColumnsGroup.js +234 -0
- package/lib/grid-component/ColumnsGroup/index.d.ts +1 -0
- package/lib/grid-component/ColumnsGroup/index.js +16 -0
- package/lib/grid-component/ConvertColumnTable.d.ts +7 -0
- package/lib/grid-component/ConvertColumnTable.js +152 -0
- package/lib/grid-component/EditableCell.js +1 -1
- package/lib/grid-component/GridStyle.js +1 -1
- package/lib/grid-component/InternalTable.d.ts +1 -0
- package/lib/grid-component/InternalTable.js +144 -249
- package/lib/grid-component/TableGrid.d.ts +4 -1
- package/lib/grid-component/TableGrid.js +26 -68
- package/lib/grid-component/hooks/{useColumns → columns}/index.d.ts +2 -2
- package/lib/grid-component/hooks/{useColumns → columns}/index.js +20 -16
- package/lib/grid-component/hooks/content/HeaderContent.d.ts +11 -0
- package/lib/grid-component/hooks/content/HeaderContent.js +86 -0
- package/lib/grid-component/hooks/content/TooltipContent.d.ts +13 -0
- package/lib/grid-component/hooks/content/TooltipContent.js +81 -0
- package/lib/grid-component/hooks/useColumns.d.ts +16 -0
- package/lib/grid-component/hooks/useColumns.js +291 -0
- package/lib/grid-component/hooks/utils.d.ts +26 -1
- package/lib/grid-component/hooks/utils.js +347 -5
- package/lib/grid-component/index.js +2 -1
- package/lib/grid-component/styles.scss +365 -68
- package/lib/grid-component/table/Grid.d.ts +2 -0
- package/lib/grid-component/table/Grid.js +18 -6
- package/lib/grid-component/table/GridEdit.d.ts +4 -1
- package/lib/grid-component/table/GridEdit.js +939 -305
- package/lib/grid-component/table/Group.d.ts +13 -0
- package/lib/grid-component/table/Group.js +163 -0
- package/lib/grid-component/type.d.ts +39 -2
- package/package.json +106 -105
|
@@ -7,6 +7,7 @@ $rowSelectedBg: #FEF2EF !default;
|
|
|
7
7
|
$tableBorderColor: #e0e0e0 !default;
|
|
8
8
|
//$tableBorderColor: #f0f0f0 !default;
|
|
9
9
|
$border-radius: 6px !default;
|
|
10
|
+
$border-selected-color: #0550C5 !default;
|
|
10
11
|
$body-color: #ffffff !default;
|
|
11
12
|
$cell-selected-bg: #E6EFFD !default;
|
|
12
13
|
$cell-index-selected-bg: #0550C5 !default;
|
|
@@ -31,6 +32,17 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
31
32
|
|
|
32
33
|
.#{$prefix}-table-wrapper {
|
|
33
34
|
|
|
35
|
+
p {
|
|
36
|
+
margin: 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.ui-rc-table {
|
|
40
|
+
//font-family: $fontFamily;
|
|
41
|
+
color: #000000de;
|
|
42
|
+
//font-weight: 500;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
|
|
34
46
|
|
|
35
47
|
&.table-none-column-select {
|
|
36
48
|
.#{$prefix}-table-cell {
|
|
@@ -44,11 +56,32 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
44
56
|
}
|
|
45
57
|
}
|
|
46
58
|
|
|
47
|
-
|
|
59
|
+
.#{$prefix}-table {
|
|
48
60
|
line-height: 20px;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
61
|
+
.#{$prefix}-table-cell {
|
|
62
|
+
|
|
63
|
+
.#{$prefix}-table-filter-column {
|
|
64
|
+
.#{$prefix}-dropdown-trigger.#{$prefix}-table-filter-trigger {
|
|
65
|
+
margin-left: 0;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&.cell-group {
|
|
70
|
+
font-weight: 600;
|
|
71
|
+
background-color: #f5f5f5;
|
|
72
|
+
border-inline-end-color: transparent !important;
|
|
73
|
+
|
|
74
|
+
}
|
|
75
|
+
&.cell-group-fixed {
|
|
76
|
+
font-weight: 600;
|
|
77
|
+
position: sticky;
|
|
78
|
+
text-align: left !important;
|
|
79
|
+
left: 0;
|
|
80
|
+
z-index: 15;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
}
|
|
84
|
+
|
|
52
85
|
}
|
|
53
86
|
|
|
54
87
|
.#{$prefix}-table-tbody-virtual {
|
|
@@ -65,6 +98,24 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
65
98
|
border-inline-end: 1px solid $tableBorderColor;
|
|
66
99
|
}
|
|
67
100
|
}
|
|
101
|
+
.#{$prefix}-table-container {
|
|
102
|
+
.#{$prefix}-table-thead {
|
|
103
|
+
|
|
104
|
+
> tr{
|
|
105
|
+
> th.#{$prefix}-table-cell:last-of-type {
|
|
106
|
+
//border-inline-end: 0;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
}
|
|
111
|
+
.#{$prefix}-table-summary {
|
|
112
|
+
> tr{
|
|
113
|
+
> td.#{$prefix}-table-cell:last-of-type {
|
|
114
|
+
//border-inline-end: 0;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
68
119
|
|
|
69
120
|
}
|
|
70
121
|
|
|
@@ -79,7 +130,7 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
79
130
|
}
|
|
80
131
|
|
|
81
132
|
&.row-disabled {
|
|
82
|
-
|
|
133
|
+
.#{$prefix}-table-cell {
|
|
83
134
|
//background-color: #f5f5f5;
|
|
84
135
|
}
|
|
85
136
|
}
|
|
@@ -89,10 +140,10 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
89
140
|
background: #FBDED6;
|
|
90
141
|
}
|
|
91
142
|
|
|
92
|
-
|
|
93
|
-
padding:
|
|
143
|
+
&.#{$prefix}-cell-command {
|
|
144
|
+
padding: 5px 8px;
|
|
94
145
|
|
|
95
|
-
|
|
146
|
+
.#{$prefix}-cell-command__content {
|
|
96
147
|
display: flex;
|
|
97
148
|
gap: 5px;
|
|
98
149
|
overflow: hidden;
|
|
@@ -102,10 +153,14 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
102
153
|
|
|
103
154
|
}
|
|
104
155
|
|
|
156
|
+
.#{$prefix}-table-cell:last-of-type {
|
|
157
|
+
//border-inline-end: 0;
|
|
158
|
+
}
|
|
159
|
+
|
|
105
160
|
|
|
106
161
|
@for $i from 0 through 10 {
|
|
107
162
|
&:has(.indent-level-#{$i}) {
|
|
108
|
-
|
|
163
|
+
.#{$prefix}-table-cell {
|
|
109
164
|
&.cell-number {
|
|
110
165
|
.ui-rc_content {
|
|
111
166
|
padding-left: $i * 10px;
|
|
@@ -117,11 +172,11 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
117
172
|
|
|
118
173
|
}
|
|
119
174
|
|
|
120
|
-
|
|
121
|
-
|
|
175
|
+
.#{$prefix}-table-placeholder {
|
|
176
|
+
.#{$prefix}-table-cell {
|
|
122
177
|
padding-top: 0 !important;
|
|
123
178
|
padding-bottom: 0 !important;
|
|
124
|
-
|
|
179
|
+
.#{$prefix}-table-expanded-row-fixed {
|
|
125
180
|
margin-top: 0 !important;
|
|
126
181
|
margin-bottom: 0 !important;
|
|
127
182
|
}
|
|
@@ -130,20 +185,27 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
130
185
|
}
|
|
131
186
|
|
|
132
187
|
.#{$prefix}-table-thead {
|
|
188
|
+
//font-weight: 400;
|
|
133
189
|
|
|
134
190
|
> tr {
|
|
135
191
|
> th,
|
|
136
192
|
> td {
|
|
137
193
|
border-bottom: 1px solid $tableBorderColor;
|
|
194
|
+
//background: #fff;
|
|
195
|
+
font-weight: 500;
|
|
138
196
|
}
|
|
139
197
|
}
|
|
140
198
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
199
|
+
.#{$prefix}-table-cell {
|
|
200
|
+
|
|
201
|
+
&.#{$prefix}-table-cell-fix-left-last {
|
|
202
|
+
.#{$prefix}-table-cell-content {
|
|
144
203
|
//overflow: visible;
|
|
145
204
|
}
|
|
146
205
|
}
|
|
206
|
+
.#{$prefix}-table-column-title {
|
|
207
|
+
//display: flex;
|
|
208
|
+
}
|
|
147
209
|
}
|
|
148
210
|
}
|
|
149
211
|
|
|
@@ -170,6 +232,10 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
170
232
|
border-inline-start: 1px solid $tableBorderColor;
|
|
171
233
|
border-top: 1px solid $tableBorderColor;
|
|
172
234
|
|
|
235
|
+
&::after {
|
|
236
|
+
border-inline-end: 1px solid $tableBorderColor;
|
|
237
|
+
}
|
|
238
|
+
|
|
173
239
|
> .#{$prefix}-table-content,
|
|
174
240
|
> .#{$prefix}-table-header,
|
|
175
241
|
> .#{$prefix}-table-body,
|
|
@@ -214,8 +280,10 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
214
280
|
|
|
215
281
|
&.#{$prefix}-table-ping-right:not(.#{$prefix}-table-has-fix-right) .#{$prefix}-table-container::after {
|
|
216
282
|
box-shadow: inset -10px 0 8px -8px $boxShadowColor;
|
|
283
|
+
//box-shadow: none;
|
|
217
284
|
}
|
|
218
285
|
|
|
286
|
+
|
|
219
287
|
}
|
|
220
288
|
|
|
221
289
|
.#{$prefix}-table-ping-left {
|
|
@@ -257,17 +325,195 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
257
325
|
|
|
258
326
|
&.grid-editable {
|
|
259
327
|
|
|
328
|
+
.#{$prefix}-table-row {
|
|
329
|
+
&:has(+ .#{$prefix}-table-cell) {
|
|
330
|
+
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.#{$prefix}-table .#{$prefix}-table-tbody .rc-ui-cell-editable {
|
|
335
|
+
overflow: unset;
|
|
260
336
|
|
|
261
|
-
//.#{$prefix}-table.#{$prefix}-table-small .ui-rc-table-tbody .rc-ui-cell-editable{
|
|
262
|
-
.#{$prefix}-table .ui-rc-table-tbody .rc-ui-cell-editable{
|
|
263
337
|
display: flex;
|
|
338
|
+
//--------
|
|
264
339
|
padding: 0;
|
|
265
|
-
|
|
340
|
+
|
|
341
|
+
.#{$prefix}-table-row-expand-icon {
|
|
266
342
|
top: 8px;
|
|
267
343
|
left: 8px;
|
|
268
344
|
}
|
|
345
|
+
|
|
346
|
+
&.cell-editable {
|
|
347
|
+
&.cell-border-top {
|
|
348
|
+
border-bottom: 1px solid $border-selected-color;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
&.cell-border-bottom {
|
|
352
|
+
border-bottom: 1px solid $border-selected-color;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
&.cell-paste-border-bottom {
|
|
356
|
+
border-bottom: 1px dashed #949494;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
&.cell-border-left {
|
|
360
|
+
border-inline-end: 1px solid $border-selected-color;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
&.cell-paste-border-left {
|
|
364
|
+
border-inline-end: 1px dashed #949494;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
&.cell-border-right {
|
|
368
|
+
border-inline-end: 1px solid $border-selected-color;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
&.cell-paste-border-right {
|
|
372
|
+
border-inline-end: 1px dashed #949494;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
&.#{$prefix}-table-cell-fix-left {
|
|
376
|
+
&:has(.ui-rc_cell-content.selected) {
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
&.#{$prefix}-table-cell-fix-right {
|
|
382
|
+
&:has(.ui-rc_cell-content.selected) {
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
&.cell-border-end {
|
|
386
|
+
z-index: 3;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
&.cell-border-end {
|
|
393
|
+
z-index: 1;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
&.#{$prefix}-table-cell-fix-right-first {
|
|
397
|
+
|
|
398
|
+
&.cell-border-end {
|
|
399
|
+
z-index: 3;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
&.next-cell-border-left {
|
|
403
|
+
&::before {
|
|
404
|
+
border-inline-start: 1px solid $border-selected-color;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
&.next-cell-paste-border-left {
|
|
410
|
+
&::before {
|
|
411
|
+
border-inline-start: 1px dashed #949494;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
&.fixed-cell-border-left {
|
|
416
|
+
&::before {
|
|
417
|
+
border-inline-start: 1px solid $border-selected-color;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
&.fixed-cell-paste-border-left {
|
|
421
|
+
&::before {
|
|
422
|
+
border-inline-start: 1px dashed #949494;
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
&.#{$prefix}-table-cell-fix-left-last {
|
|
429
|
+
|
|
430
|
+
&.cell-border-end {
|
|
431
|
+
z-index: 3;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.#{$prefix}-table.#{$prefix}-table-ping-left {
|
|
442
|
+
.#{$prefix}-table-tbody .rc-ui-cell-editable{
|
|
443
|
+
&.cell-editable {
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
&.#{$prefix}-table-cell-fix-left-last {
|
|
447
|
+
|
|
448
|
+
&.cell-border-left {
|
|
449
|
+
border-inline-end: 1px solid $tableBorderColor;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
&:not(.#{$prefix}-table.#{$prefix}-table-ping-right) {
|
|
460
|
+
|
|
461
|
+
.#{$prefix}-table-tbody .rc-ui-cell-editable {
|
|
462
|
+
&.cell-editable {
|
|
463
|
+
|
|
464
|
+
// //&.cell-border-end {
|
|
465
|
+
// // z-index: 1;
|
|
466
|
+
// //}
|
|
467
|
+
|
|
468
|
+
&.#{$prefix}-table-cell-fix-right {
|
|
469
|
+
z-index: 0;
|
|
470
|
+
|
|
471
|
+
&.cell-border-end {
|
|
472
|
+
z-index: 3;
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
}
|
|
480
|
+
|
|
269
481
|
}
|
|
270
482
|
|
|
483
|
+
.#{$prefix}-table.#{$prefix}-table-ping-right {
|
|
484
|
+
.#{$prefix}-table-tbody .rc-ui-cell-editable{
|
|
485
|
+
|
|
486
|
+
&.cell-editable {
|
|
487
|
+
|
|
488
|
+
&.#{$prefix}-table-cell-fix-right-first {
|
|
489
|
+
|
|
490
|
+
&.next-cell-border-left {
|
|
491
|
+
&::before {
|
|
492
|
+
border-inline-start: 1px solid $tableBorderColor;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
&.#{$prefix}-table-cell-fix-left-last {
|
|
501
|
+
&.cell-border-end {
|
|
502
|
+
z-index: 3;
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
&.cell-border-end {
|
|
509
|
+
z-index: 1;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
|
|
271
517
|
.#{$prefix}-table.#{$prefix}-table-small {
|
|
272
518
|
.#{$prefix}-table-thead > tr > th,
|
|
273
519
|
tfoot > tr > th,
|
|
@@ -281,17 +527,48 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
281
527
|
.#{$prefix}-table.#{$prefix}-table-small {
|
|
282
528
|
.#{$prefix}-table-selection-column{
|
|
283
529
|
//padding: 8px 8px;
|
|
530
|
+
padding: 6px 8px;
|
|
284
531
|
}
|
|
285
532
|
}
|
|
286
533
|
|
|
287
534
|
.ui-rc_cell-content {
|
|
535
|
+
//position: relative;
|
|
288
536
|
user-select: none;
|
|
289
|
-
padding: 8px 8px;
|
|
290
|
-
|
|
537
|
+
//padding: 8px 8px;
|
|
538
|
+
padding: 7px 8px;
|
|
539
|
+
//min-height: 23px;
|
|
291
540
|
overflow: hidden;
|
|
541
|
+
|
|
292
542
|
.ui-rc_content {
|
|
293
543
|
width: 100%;
|
|
294
544
|
}
|
|
545
|
+
&:hover {
|
|
546
|
+
.dragging-point {
|
|
547
|
+
//visibility: visible;
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
.dragging-point {
|
|
552
|
+
//visibility: hidden;
|
|
553
|
+
width: 10px;
|
|
554
|
+
height: 10px;
|
|
555
|
+
position: absolute;
|
|
556
|
+
cursor: crosshair;
|
|
557
|
+
right: 0;
|
|
558
|
+
bottom: 0;
|
|
559
|
+
//background: red;
|
|
560
|
+
|
|
561
|
+
.dot-point {
|
|
562
|
+
position: absolute;
|
|
563
|
+
width: 8px;
|
|
564
|
+
height: 8px;
|
|
565
|
+
border-radius: 6px;
|
|
566
|
+
background-color: $border-selected-color;
|
|
567
|
+
bottom: -4px;
|
|
568
|
+
right: -4px;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
}
|
|
295
572
|
}
|
|
296
573
|
|
|
297
574
|
.ui-rc_cell-content.selected {
|
|
@@ -302,12 +579,12 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
302
579
|
&.focus {
|
|
303
580
|
background-color: $cell-index-focus-bg;
|
|
304
581
|
//color: #fff;
|
|
305
|
-
font-weight: 500;
|
|
582
|
+
//font-weight: 500;
|
|
306
583
|
}
|
|
307
584
|
&.selected {
|
|
308
585
|
background-color: $cell-index-selected-bg;
|
|
309
586
|
color: #fff;
|
|
310
|
-
font-weight: 500;
|
|
587
|
+
//font-weight: 500;
|
|
311
588
|
}
|
|
312
589
|
}
|
|
313
590
|
|
|
@@ -325,9 +602,9 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
325
602
|
}
|
|
326
603
|
}
|
|
327
604
|
|
|
328
|
-
|
|
605
|
+
.#{$prefix}-table-cell {
|
|
329
606
|
|
|
330
|
-
|
|
607
|
+
.#{$prefix}-table-row-indent {
|
|
331
608
|
position: absolute;
|
|
332
609
|
@for $i from 1 through 10 {
|
|
333
610
|
&.indent-level-#{$i} {
|
|
@@ -339,7 +616,7 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
339
616
|
@for $i from 0 through 10 {
|
|
340
617
|
&:has(.indent-level-#{$i}) {
|
|
341
618
|
|
|
342
|
-
|
|
619
|
+
.#{$prefix}-table-row-expand-icon {
|
|
343
620
|
position: absolute;
|
|
344
621
|
//.ui-rc_content {
|
|
345
622
|
padding-left: $i * 10px;
|
|
@@ -356,7 +633,7 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
356
633
|
@for $i from 0 through 10 {
|
|
357
634
|
&:has(.indent-level-#{$i}) {
|
|
358
635
|
|
|
359
|
-
|
|
636
|
+
.#{$prefix}-table-row-expand-icon {
|
|
360
637
|
position: absolute;
|
|
361
638
|
left: $i * 25px + 8px !important;
|
|
362
639
|
}
|
|
@@ -373,7 +650,7 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
373
650
|
|
|
374
651
|
.#{$prefix}-table-cell{
|
|
375
652
|
|
|
376
|
-
|
|
653
|
+
&.#{$prefix}-table-cell-ellipsis {
|
|
377
654
|
.ui-rc_cell-content {
|
|
378
655
|
|
|
379
656
|
.ui-rc_content {
|
|
@@ -387,7 +664,7 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
387
664
|
}
|
|
388
665
|
|
|
389
666
|
&.cell-editing {
|
|
390
|
-
padding: 0 !important;
|
|
667
|
+
//padding: 0 !important;
|
|
391
668
|
&:focus-visible {
|
|
392
669
|
outline: none;
|
|
393
670
|
}
|
|
@@ -403,11 +680,11 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
403
680
|
}
|
|
404
681
|
}
|
|
405
682
|
|
|
406
|
-
|
|
407
|
-
|
|
683
|
+
.#{$prefix}-checkbox-wrapper {
|
|
684
|
+
.#{$prefix}-checkbox {
|
|
408
685
|
background-color: red;
|
|
409
686
|
}
|
|
410
|
-
|
|
687
|
+
.#{$prefix}-checkbox-input {
|
|
411
688
|
&:focus-visible {
|
|
412
689
|
outline: none;
|
|
413
690
|
}
|
|
@@ -434,16 +711,16 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
434
711
|
|
|
435
712
|
// ------------ select ---------------
|
|
436
713
|
|
|
437
|
-
|
|
438
|
-
|
|
714
|
+
.#{$prefix}-table-select-single .#{$prefix}-table-select-selector,
|
|
715
|
+
.#{$prefix}-select-single .#{$prefix}-select-selector {
|
|
439
716
|
|
|
440
717
|
border-radius: 0;
|
|
441
718
|
|
|
442
719
|
}
|
|
443
720
|
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
721
|
+
.#{$prefix}-table-select-single:not(.#{$prefix}-table-select-customize-input) {
|
|
722
|
+
.#{$prefix}-table-select-selector {
|
|
723
|
+
.#{$prefix}-table-select-selection-search-input {
|
|
447
724
|
height: auto;
|
|
448
725
|
}
|
|
449
726
|
}
|
|
@@ -458,13 +735,13 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
458
735
|
outline: none;
|
|
459
736
|
}
|
|
460
737
|
}
|
|
461
|
-
|
|
738
|
+
.#{$prefix}-table-cell-content {
|
|
462
739
|
display: flex;
|
|
463
740
|
height: 100%;
|
|
464
741
|
}
|
|
465
742
|
|
|
466
743
|
.ui-rc_cell-content,
|
|
467
|
-
|
|
744
|
+
.#{$prefix}-table-cell-content{
|
|
468
745
|
//width: 100%;
|
|
469
746
|
flex: 1;
|
|
470
747
|
}
|
|
@@ -498,13 +775,13 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
498
775
|
}
|
|
499
776
|
}
|
|
500
777
|
}
|
|
501
|
-
|
|
778
|
+
//.#{$prefix}-checkbox-input {
|
|
502
779
|
// &:focus-visible {
|
|
503
780
|
// outline: none;
|
|
504
781
|
// }
|
|
505
782
|
//}
|
|
506
783
|
|
|
507
|
-
|
|
784
|
+
.#{$prefix}-checkbox .#{$prefix}-checkbox-input:focus-visible+.#{$prefix}-checkbox-inner {
|
|
508
785
|
outline: none;
|
|
509
786
|
}
|
|
510
787
|
|
|
@@ -600,8 +877,8 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
600
877
|
margin: 0;
|
|
601
878
|
}
|
|
602
879
|
|
|
603
|
-
|
|
604
|
-
|
|
880
|
+
.#{$prefix}-table-wrapper {
|
|
881
|
+
.#{$prefix}-table {
|
|
605
882
|
.#{$prefix}-pagination {
|
|
606
883
|
&::before {
|
|
607
884
|
content: "";
|
|
@@ -626,7 +903,7 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
626
903
|
border: none;
|
|
627
904
|
padding-top: 0;
|
|
628
905
|
padding-bottom: 0;
|
|
629
|
-
|
|
906
|
+
.#{$prefix}-pagination-total-text {
|
|
630
907
|
margin-left: auto;
|
|
631
908
|
}
|
|
632
909
|
}
|
|
@@ -639,7 +916,7 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
639
916
|
|
|
640
917
|
.#{$prefix}-pagination {
|
|
641
918
|
|
|
642
|
-
|
|
919
|
+
.#{$prefix}-pagination-total-text {
|
|
643
920
|
white-space: nowrap;
|
|
644
921
|
}
|
|
645
922
|
|
|
@@ -714,24 +991,24 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
714
991
|
}
|
|
715
992
|
|
|
716
993
|
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
994
|
+
.#{$prefix}-table-wrapper {
|
|
995
|
+
.#{$prefix}-table.#{$prefix}-table-small {
|
|
996
|
+
.#{$prefix}-table-title,
|
|
997
|
+
.#{$prefix}-table-footer,
|
|
998
|
+
.#{$prefix}-table-cell,
|
|
999
|
+
.#{$prefix}-table-thead > tr > th,
|
|
1000
|
+
.#{$prefix}-table-tbody > tr > th,
|
|
1001
|
+
.#{$prefix}-table-tbody > tr > td,
|
|
725
1002
|
tfoot > tr > th,
|
|
726
1003
|
tfoot > tr > td {
|
|
727
1004
|
//padding: 8px 8px;
|
|
728
|
-
font-size: 13px;
|
|
1005
|
+
//font-size: 13px;
|
|
729
1006
|
}
|
|
730
1007
|
}
|
|
731
1008
|
}
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
1009
|
+
.#{$prefix}-table-wrapper {
|
|
1010
|
+
.#{$prefix}-table.#{$prefix}-table-small {
|
|
1011
|
+
.#{$prefix}-table-cell {
|
|
735
1012
|
&:has(.ant-color-picker-trigger) {
|
|
736
1013
|
padding: 1px 8px;
|
|
737
1014
|
}
|
|
@@ -750,17 +1027,37 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
|
|
|
750
1027
|
|
|
751
1028
|
//ui-rc-table-ping-right
|
|
752
1029
|
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
1030
|
+
.#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-content >table >thead>tr >.#{$prefix}-table-cell-fix-right-first::after,
|
|
1031
|
+
.#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-header >table >thead>tr >.#{$prefix}-table-cell-fix-right-first::after,
|
|
1032
|
+
.#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-body >table >thead>tr >.#{$prefix}-table-cell-fix-right-first::after,
|
|
1033
|
+
.#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-summary >table >thead>tr >.#{$prefix}-table-cell-fix-right-first::after,
|
|
1034
|
+
.#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-content >table >tbody>tr >.#{$prefix}-table-cell-fix-right-first::after,
|
|
1035
|
+
.#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-header >table >tbody>tr >.#{$prefix}-table-cell-fix-right-first::after,
|
|
1036
|
+
.#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-body >table >tbody>tr >.#{$prefix}-table-cell-fix-right-first::after,
|
|
1037
|
+
.#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-summary >table >tbody>tr >.#{$prefix}-table-cell-fix-right-first::after,
|
|
1038
|
+
.#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-content >table >tfoot>tr >.#{$prefix}-table-cell-fix-right-first::after,
|
|
1039
|
+
.#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-header >table >tfoot>tr >.#{$prefix}-table-cell-fix-right-first::after,
|
|
1040
|
+
.#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-body >table >tfoot>tr >.#{$prefix}-table-cell-fix-right-first::after,
|
|
1041
|
+
.#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-summary >table >tfoot>tr >.#{$prefix}-table-cell-fix-right-first::after {
|
|
765
1042
|
border-inline-end: 1px solid $tableBorderColor;
|
|
766
1043
|
}
|
|
1044
|
+
|
|
1045
|
+
|
|
1046
|
+
// toolbar
|
|
1047
|
+
|
|
1048
|
+
.ui-rc-toolbar-bottom {
|
|
1049
|
+
.be-toolbar-item {
|
|
1050
|
+
.toolbar-dropdown-button {
|
|
1051
|
+
.ant-btn.ant-btn-default.ant-btn-variant-outlined.ant-btn-compact-item.ant-btn-compact-first-item {
|
|
1052
|
+
border-color: #28c76f;
|
|
1053
|
+
}
|
|
1054
|
+
.ant-btn.ant-btn-default.ant-btn-variant-outlined.ant-btn-compact-item.ant-btn-compact-last-item {
|
|
1055
|
+
border-color: #28c76f;
|
|
1056
|
+
.ant-btn-icon {
|
|
1057
|
+
color: #28c76f;
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
@@ -6,6 +6,8 @@ type Props<T> = GridTableProps<T> & {
|
|
|
6
6
|
triggerChangeColumns?: (columns: ColumnsTable<T>, type: string) => void;
|
|
7
7
|
triggerChangeData?: (newData: T[], type: string) => void;
|
|
8
8
|
getRowKey: GetRowKey<T>;
|
|
9
|
+
triggerGroupColumns?: (groupedColumns: string[]) => void;
|
|
10
|
+
triggerPaste?: (pastedRows: T[], pastedColumnsArray: string[], newData: T[]) => void;
|
|
9
11
|
};
|
|
10
12
|
declare const Grid: <RecordType extends object>(props: Props<RecordType>) => React.JSX.Element;
|
|
11
13
|
export default Grid;
|