es-grid-template 1.1.8 → 1.2.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.
Files changed (67) hide show
  1. package/assets/index.css +679 -0
  2. package/assets/index.scss +1006 -0
  3. package/es/grid-component/ColumnsChoose.d.ts +1 -0
  4. package/es/grid-component/ColumnsChoose.js +64 -29
  5. package/es/grid-component/ColumnsGroup/ColumnsGroup.d.ts +12 -0
  6. package/es/grid-component/ColumnsGroup/ColumnsGroup.js +223 -0
  7. package/es/grid-component/ColumnsGroup/index.d.ts +1 -0
  8. package/es/grid-component/ColumnsGroup/index.js +1 -0
  9. package/es/grid-component/ConvertColumnTable.d.ts +7 -0
  10. package/es/grid-component/ConvertColumnTable.js +143 -0
  11. package/es/grid-component/EditableCell.js +1 -1
  12. package/es/grid-component/GridStyle.js +1 -1
  13. package/es/grid-component/InternalTable.js +148 -244
  14. package/es/grid-component/TableGrid.d.ts +7 -2
  15. package/es/grid-component/TableGrid.js +33 -55
  16. package/es/grid-component/hooks/{useColumns → columns}/index.d.ts +2 -2
  17. package/es/grid-component/hooks/{useColumns → columns}/index.js +20 -16
  18. package/es/grid-component/hooks/content/HeaderContent.d.ts +11 -0
  19. package/es/grid-component/hooks/content/HeaderContent.js +80 -0
  20. package/es/grid-component/hooks/content/TooltipContent.d.ts +13 -0
  21. package/es/grid-component/hooks/content/TooltipContent.js +74 -0
  22. package/es/grid-component/hooks/useColumns.d.ts +16 -0
  23. package/es/grid-component/hooks/useColumns.js +272 -0
  24. package/es/grid-component/hooks/utils.d.ts +50 -1
  25. package/es/grid-component/hooks/utils.js +782 -2
  26. package/es/grid-component/index.js +3 -1
  27. package/es/grid-component/styles.scss +354 -63
  28. package/es/grid-component/table/Grid.d.ts +5 -0
  29. package/es/grid-component/table/Grid.js +1 -7
  30. package/es/grid-component/table/GridEdit.d.ts +4 -1
  31. package/es/grid-component/table/GridEdit.js +768 -264
  32. package/es/grid-component/table/Group.d.ts +13 -0
  33. package/es/grid-component/table/Group.js +154 -0
  34. package/es/grid-component/type.d.ts +43 -2
  35. package/lib/grid-component/ColumnsChoose.d.ts +1 -0
  36. package/lib/grid-component/ColumnsChoose.js +63 -28
  37. package/lib/grid-component/ColumnsGroup/ColumnsGroup.d.ts +12 -0
  38. package/lib/grid-component/ColumnsGroup/ColumnsGroup.js +234 -0
  39. package/lib/grid-component/ColumnsGroup/index.d.ts +1 -0
  40. package/lib/grid-component/ColumnsGroup/index.js +16 -0
  41. package/lib/grid-component/ConvertColumnTable.d.ts +7 -0
  42. package/lib/grid-component/ConvertColumnTable.js +152 -0
  43. package/lib/grid-component/EditableCell.js +1 -1
  44. package/lib/grid-component/GridStyle.js +1 -1
  45. package/lib/grid-component/InternalTable.js +142 -244
  46. package/lib/grid-component/TableGrid.d.ts +7 -2
  47. package/lib/grid-component/TableGrid.js +27 -53
  48. package/lib/grid-component/hooks/{useColumns → columns}/index.d.ts +2 -2
  49. package/lib/grid-component/hooks/{useColumns → columns}/index.js +20 -16
  50. package/lib/grid-component/hooks/content/HeaderContent.d.ts +11 -0
  51. package/lib/grid-component/hooks/content/HeaderContent.js +87 -0
  52. package/lib/grid-component/hooks/content/TooltipContent.d.ts +13 -0
  53. package/lib/grid-component/hooks/content/TooltipContent.js +81 -0
  54. package/lib/grid-component/hooks/useColumns.d.ts +16 -0
  55. package/lib/grid-component/hooks/useColumns.js +283 -0
  56. package/lib/grid-component/hooks/utils.d.ts +50 -1
  57. package/lib/grid-component/hooks/utils.js +809 -5
  58. package/lib/grid-component/index.js +2 -1
  59. package/lib/grid-component/styles.scss +354 -63
  60. package/lib/grid-component/table/Grid.d.ts +5 -0
  61. package/lib/grid-component/table/Grid.js +1 -7
  62. package/lib/grid-component/table/GridEdit.d.ts +4 -1
  63. package/lib/grid-component/table/GridEdit.js +764 -261
  64. package/lib/grid-component/table/Group.d.ts +13 -0
  65. package/lib/grid-component/table/Group.js +163 -0
  66. package/lib/grid-component/type.d.ts +43 -2
  67. package/package.json +106 -105
@@ -1,2 +1,4 @@
1
+ // import ConvertColumnTable from './ConvertColumnTable'
1
2
  import InternalTable from "./InternalTable";
2
- export default InternalTable;
3
+ export default InternalTable;
4
+ // export default ConvertColumnTable
@@ -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,10 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
31
32
 
32
33
  .#{$prefix}-table-wrapper {
33
34
 
35
+ p {
36
+ margin: 0;
37
+ }
38
+
34
39
 
35
40
  &.table-none-column-select {
36
41
  .#{$prefix}-table-cell {
@@ -44,11 +49,32 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
44
49
  }
45
50
  }
46
51
 
47
- .ui-rc-table {
52
+ .#{$prefix}-table {
48
53
  line-height: 20px;
49
- //color: #283046;
50
- //font-weight: 500;
51
- //font-family: $fontFamily !important;
54
+ .#{$prefix}-table-cell {
55
+
56
+ .#{$prefix}-table-filter-column {
57
+ .#{$prefix}-dropdown-trigger.#{$prefix}-table-filter-trigger {
58
+ margin-left: 0;
59
+ }
60
+ }
61
+
62
+ &.cell-group {
63
+ font-weight: 600;
64
+ background-color: #f5f5f5;
65
+ border-inline-end-color: transparent !important;
66
+
67
+ }
68
+ &.cell-group-fixed {
69
+ font-weight: 600;
70
+ position: sticky;
71
+ text-align: left !important;
72
+ left: 0;
73
+ z-index: 15;
74
+ }
75
+
76
+ }
77
+
52
78
  }
53
79
 
54
80
  .#{$prefix}-table-tbody-virtual {
@@ -65,6 +91,24 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
65
91
  border-inline-end: 1px solid $tableBorderColor;
66
92
  }
67
93
  }
94
+ .#{$prefix}-table-container {
95
+ .#{$prefix}-table-thead {
96
+
97
+ > tr{
98
+ > th.#{$prefix}-table-cell:last-of-type {
99
+ //border-inline-end: 0;
100
+ }
101
+ }
102
+
103
+ }
104
+ .#{$prefix}-table-summary {
105
+ > tr{
106
+ > td.#{$prefix}-table-cell:last-of-type {
107
+ //border-inline-end: 0;
108
+ }
109
+ }
110
+ }
111
+ }
68
112
 
69
113
  }
70
114
 
@@ -79,7 +123,7 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
79
123
  }
80
124
 
81
125
  &.row-disabled {
82
- .ui-rc-table-cell {
126
+ .#{$prefix}-table-cell {
83
127
  //background-color: #f5f5f5;
84
128
  }
85
129
  }
@@ -89,10 +133,10 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
89
133
  background: #FBDED6;
90
134
  }
91
135
 
92
- &.ui-rc-cell-command {
93
- padding: 3px 8px;
136
+ &.#{$prefix}-cell-command {
137
+ padding: 5px 8px;
94
138
 
95
- .ui-rc-cell-command__content {
139
+ .#{$prefix}-cell-command__content {
96
140
  display: flex;
97
141
  gap: 5px;
98
142
  overflow: hidden;
@@ -102,20 +146,30 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
102
146
 
103
147
  }
104
148
 
105
- &:has(.indent-level-1) {
106
- .ui-rc-table-cell {
107
- &.cell-number {
108
- padding-left: 15px;
149
+ .#{$prefix}-table-cell:last-of-type {
150
+ //border-inline-end: 0;
151
+ }
152
+
153
+
154
+ @for $i from 0 through 10 {
155
+ &:has(.indent-level-#{$i}) {
156
+ .#{$prefix}-table-cell {
157
+ &.cell-number {
158
+ .ui-rc_content {
159
+ padding-left: $i * 10px;
160
+ }
161
+ }
109
162
  }
110
163
  }
111
164
  }
165
+
112
166
  }
113
167
 
114
- .ui-rc-table-placeholder {
115
- .ui-rc-table-cell {
168
+ .#{$prefix}-table-placeholder {
169
+ .#{$prefix}-table-cell {
116
170
  padding-top: 0 !important;
117
171
  padding-bottom: 0 !important;
118
- .ui-rc-table-expanded-row-fixed {
172
+ .#{$prefix}-table-expanded-row-fixed {
119
173
  margin-top: 0 !important;
120
174
  margin-bottom: 0 !important;
121
175
  }
@@ -129,15 +183,20 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
129
183
  > th,
130
184
  > td {
131
185
  border-bottom: 1px solid $tableBorderColor;
186
+ background: #fff;
132
187
  }
133
188
  }
134
189
 
135
- .ui-rc-table-cell {
136
- &.ui-rc-table-cell-fix-left-last {
137
- .ui-rc-table-cell-content {
190
+ .#{$prefix}-table-cell {
191
+
192
+ &.#{$prefix}-table-cell-fix-left-last {
193
+ .#{$prefix}-table-cell-content {
138
194
  //overflow: visible;
139
195
  }
140
196
  }
197
+ .#{$prefix}-table-column-title {
198
+ //display: flex;
199
+ }
141
200
  }
142
201
  }
143
202
 
@@ -164,6 +223,10 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
164
223
  border-inline-start: 1px solid $tableBorderColor;
165
224
  border-top: 1px solid $tableBorderColor;
166
225
 
226
+ &::after {
227
+ border-inline-end: 1px solid $tableBorderColor;
228
+ }
229
+
167
230
  > .#{$prefix}-table-content,
168
231
  > .#{$prefix}-table-header,
169
232
  > .#{$prefix}-table-body,
@@ -208,8 +271,10 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
208
271
 
209
272
  &.#{$prefix}-table-ping-right:not(.#{$prefix}-table-has-fix-right) .#{$prefix}-table-container::after {
210
273
  box-shadow: inset -10px 0 8px -8px $boxShadowColor;
274
+ //box-shadow: none;
211
275
  }
212
276
 
277
+
213
278
  }
214
279
 
215
280
  .#{$prefix}-table-ping-left {
@@ -251,17 +316,170 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
251
316
 
252
317
  &.grid-editable {
253
318
 
319
+ .#{$prefix}-table-row {
320
+ &:has(+ .#{$prefix}-table-cell) {
321
+
322
+ }
323
+ }
324
+
325
+ .#{$prefix}-table .#{$prefix}-table-tbody .rc-ui-cell-editable {
326
+ overflow: unset;
254
327
 
255
- //.#{$prefix}-table.#{$prefix}-table-small .ui-rc-table-tbody .rc-ui-cell-editable{
256
- .#{$prefix}-table .ui-rc-table-tbody .rc-ui-cell-editable{
257
328
  display: flex;
258
329
  padding: 0;
259
- .ui-rc-table-row-expand-icon {
330
+
331
+ .#{$prefix}-table-row-expand-icon {
260
332
  top: 8px;
261
333
  left: 8px;
262
334
  }
335
+
336
+ &.cell-editable {
337
+ &.cell-border-top {
338
+ border-bottom: 1px solid $border-selected-color;
339
+ }
340
+
341
+ &.cell-border-bottom {
342
+ border-bottom: 1px solid $border-selected-color;
343
+ }
344
+
345
+ &.cell-border-left {
346
+ border-inline-end: 1px solid $border-selected-color;
347
+ }
348
+
349
+ &.cell-border-right {
350
+ border-inline-end: 1px solid $border-selected-color;
351
+ }
352
+
353
+ &.#{$prefix}-table-cell-fix-left {
354
+ &:has(.ui-rc_cell-content.selected) {
355
+ }
356
+
357
+ }
358
+
359
+ &.#{$prefix}-table-cell-fix-right {
360
+ &:has(.ui-rc_cell-content.selected) {
361
+ }
362
+
363
+ &.cell-border-end {
364
+ z-index: 3;
365
+ }
366
+
367
+ }
368
+
369
+
370
+ &.cell-border-end {
371
+ z-index: 1;
372
+ }
373
+
374
+ &.#{$prefix}-table-cell-fix-right-first {
375
+
376
+ &.cell-border-end {
377
+ z-index: 3;
378
+ }
379
+
380
+ &.next-cell-border-left {
381
+ &::before {
382
+ border-inline-start: 1px solid $border-selected-color;
383
+ }
384
+ }
385
+
386
+ &.fixed-cell-border-left {
387
+ &::before {
388
+ border-inline-start: 1px solid $border-selected-color;
389
+ }
390
+ }
391
+
392
+ }
393
+
394
+ &.#{$prefix}-table-cell-fix-left-last {
395
+
396
+ &.cell-border-end {
397
+ z-index: 3;
398
+ }
399
+
400
+ }
401
+
402
+ }
403
+
404
+
263
405
  }
264
406
 
407
+ .#{$prefix}-table.#{$prefix}-table-ping-left {
408
+ .#{$prefix}-table-tbody .rc-ui-cell-editable{
409
+ &.cell-editable {
410
+
411
+
412
+ &.#{$prefix}-table-cell-fix-left-last {
413
+
414
+ &.cell-border-left {
415
+ border-inline-end: 1px solid $tableBorderColor;
416
+ }
417
+
418
+ }
419
+
420
+
421
+
422
+ }
423
+ }
424
+
425
+ &:not(.#{$prefix}-table.#{$prefix}-table-ping-right) {
426
+
427
+ .#{$prefix}-table-tbody .rc-ui-cell-editable {
428
+ &.cell-editable {
429
+
430
+ // //&.cell-border-end {
431
+ // // z-index: 1;
432
+ // //}
433
+
434
+ &.#{$prefix}-table-cell-fix-right {
435
+ z-index: 0;
436
+
437
+ &.cell-border-end {
438
+ z-index: 3;
439
+ }
440
+ }
441
+
442
+ }
443
+ }
444
+
445
+ }
446
+
447
+ }
448
+
449
+ .#{$prefix}-table.#{$prefix}-table-ping-right {
450
+ .#{$prefix}-table-tbody .rc-ui-cell-editable{
451
+
452
+ &.cell-editable {
453
+
454
+ &.#{$prefix}-table-cell-fix-right-first {
455
+
456
+ &.next-cell-border-left {
457
+ &::before {
458
+ border-inline-start: 1px solid $tableBorderColor;
459
+ }
460
+ }
461
+
462
+
463
+
464
+ }
465
+
466
+ &.#{$prefix}-table-cell-fix-left-last {
467
+ &.cell-border-end {
468
+ z-index: 3;
469
+ }
470
+ }
471
+
472
+ }
473
+
474
+ &.cell-border-end {
475
+ z-index: 1;
476
+ }
477
+
478
+ }
479
+
480
+ }
481
+
482
+
265
483
  .#{$prefix}-table.#{$prefix}-table-small {
266
484
  .#{$prefix}-table-thead > tr > th,
267
485
  tfoot > tr > th,
@@ -279,13 +497,41 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
279
497
  }
280
498
 
281
499
  .ui-rc_cell-content {
500
+ //position: relative;
282
501
  user-select: none;
283
502
  padding: 8px 8px;
284
503
  min-height: 23px;
285
504
  overflow: hidden;
505
+
286
506
  .ui-rc_content {
287
507
  width: 100%;
288
508
  }
509
+ &:hover {
510
+ .dragging-point {
511
+ //visibility: visible;
512
+ }
513
+ }
514
+
515
+ .dragging-point {
516
+ //visibility: hidden;
517
+ width: 10px;
518
+ height: 10px;
519
+ position: absolute;
520
+ cursor: crosshair;
521
+ right: 0;
522
+ bottom: 0;
523
+
524
+ .dot-point {
525
+ position: absolute;
526
+ width: 8px;
527
+ height: 8px;
528
+ border-radius: 6px;
529
+ background-color: $border-selected-color;
530
+ bottom: -4px;
531
+ right: -4px;
532
+ }
533
+
534
+ }
289
535
  }
290
536
 
291
537
  .ui-rc_cell-content.selected {
@@ -296,16 +542,17 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
296
542
  &.focus {
297
543
  background-color: $cell-index-focus-bg;
298
544
  //color: #fff;
299
- font-weight: 500;
545
+ //font-weight: 500;
300
546
  }
301
547
  &.selected {
302
548
  background-color: $cell-index-selected-bg;
303
549
  color: #fff;
304
- font-weight: 500;
550
+ //font-weight: 500;
305
551
  }
306
552
  }
307
553
 
308
554
  .#{$prefix}-table-tbody {
555
+
309
556
  .#{$prefix}-table-row {
310
557
  &.#{$prefix}-table-row-selected {
311
558
  >.#{$prefix}-table-cell {
@@ -317,12 +564,56 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
317
564
  background: #FBDED6;
318
565
  }
319
566
  }
567
+
568
+ .#{$prefix}-table-cell {
569
+
570
+ .#{$prefix}-table-row-indent {
571
+ position: absolute;
572
+ @for $i from 1 through 10 {
573
+ &.indent-level-#{$i} {
574
+ padding-left: $i * 25px;;
575
+ }
576
+ }
577
+ }
578
+
579
+ @for $i from 0 through 10 {
580
+ &:has(.indent-level-#{$i}) {
581
+
582
+ .#{$prefix}-table-row-expand-icon {
583
+ position: absolute;
584
+ //.ui-rc_content {
585
+ padding-left: $i * 10px;
586
+ //}
587
+ }
588
+
589
+ .ui-rc_cell-content {
590
+ padding-left: $i * 25px + 8px;
591
+ }
592
+
593
+ }
594
+ }
595
+
596
+ @for $i from 0 through 10 {
597
+ &:has(.indent-level-#{$i}) {
598
+
599
+ .#{$prefix}-table-row-expand-icon {
600
+ position: absolute;
601
+ left: $i * 25px + 8px !important;
602
+ }
603
+
604
+ .ui-rc_cell-content {
605
+ padding-left: ($i + 1)* 25px + 8px;
606
+ }
607
+
608
+ }
609
+ }
610
+ }
320
611
  }
321
612
 
322
613
 
323
614
  .#{$prefix}-table-cell{
324
615
 
325
- &.ui-rc-table-cell-ellipsis {
616
+ &.#{$prefix}-table-cell-ellipsis {
326
617
  .ui-rc_cell-content {
327
618
 
328
619
  .ui-rc_content {
@@ -352,11 +643,11 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
352
643
  }
353
644
  }
354
645
 
355
- .ui-rc-checkbox-wrapper {
356
- .ui-rc-checkbox {
646
+ .#{$prefix}-checkbox-wrapper {
647
+ .#{$prefix}-checkbox {
357
648
  background-color: red;
358
649
  }
359
- .ui-rc-checkbox-input {
650
+ .#{$prefix}-checkbox-input {
360
651
  &:focus-visible {
361
652
  outline: none;
362
653
  }
@@ -383,16 +674,16 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
383
674
 
384
675
  // ------------ select ---------------
385
676
 
386
- .ui-rc-table-select-single .ui-rc-table-select-selector,
387
- .ui-rc-select-single .ui-rc-select-selector {
677
+ .#{$prefix}-table-select-single .#{$prefix}-table-select-selector,
678
+ .#{$prefix}-select-single .#{$prefix}-select-selector {
388
679
 
389
680
  border-radius: 0;
390
681
 
391
682
  }
392
683
 
393
- .ui-rc-table-select-single:not(.ui-rc-table-select-customize-input) {
394
- .ui-rc-table-select-selector {
395
- .ui-rc-table-select-selection-search-input {
684
+ .#{$prefix}-table-select-single:not(.#{$prefix}-table-select-customize-input) {
685
+ .#{$prefix}-table-select-selector {
686
+ .#{$prefix}-table-select-selection-search-input {
396
687
  height: auto;
397
688
  }
398
689
  }
@@ -407,13 +698,13 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
407
698
  outline: none;
408
699
  }
409
700
  }
410
- .ui-rc-table-cell-content {
701
+ .#{$prefix}-table-cell-content {
411
702
  display: flex;
412
703
  height: 100%;
413
704
  }
414
705
 
415
706
  .ui-rc_cell-content,
416
- .ui-rc-table-cell-content{
707
+ .#{$prefix}-table-cell-content{
417
708
  //width: 100%;
418
709
  flex: 1;
419
710
  }
@@ -447,13 +738,13 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
447
738
  }
448
739
  }
449
740
  }
450
- //.ui-rc-checkbox-input {
741
+ //.#{$prefix}-checkbox-input {
451
742
  // &:focus-visible {
452
743
  // outline: none;
453
744
  // }
454
745
  //}
455
746
 
456
- .ui-rc-checkbox .ui-rc-checkbox-input:focus-visible+.ui-rc-checkbox-inner {
747
+ .#{$prefix}-checkbox .#{$prefix}-checkbox-input:focus-visible+.#{$prefix}-checkbox-inner {
457
748
  outline: none;
458
749
  }
459
750
 
@@ -549,8 +840,8 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
549
840
  margin: 0;
550
841
  }
551
842
 
552
- .ui-rc-table-wrapper {
553
- .ui-rc-table {
843
+ .#{$prefix}-table-wrapper {
844
+ .#{$prefix}-table {
554
845
  .#{$prefix}-pagination {
555
846
  &::before {
556
847
  content: "";
@@ -575,7 +866,7 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
575
866
  border: none;
576
867
  padding-top: 0;
577
868
  padding-bottom: 0;
578
- .ui-rc-pagination-total-text {
869
+ .#{$prefix}-pagination-total-text {
579
870
  margin-left: auto;
580
871
  }
581
872
  }
@@ -588,7 +879,7 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
588
879
 
589
880
  .#{$prefix}-pagination {
590
881
 
591
- .ui-rc-pagination-total-text {
882
+ .#{$prefix}-pagination-total-text {
592
883
  white-space: nowrap;
593
884
  }
594
885
 
@@ -663,14 +954,14 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
663
954
  }
664
955
 
665
956
 
666
- .ui-rc-table-wrapper {
667
- .ui-rc-table.ui-rc-table-small {
668
- .ui-rc-table-title,
669
- .ui-rc-table-footer,
670
- .ui-rc-table-cell,
671
- .ui-rc-table-thead > tr > th,
672
- .ui-rc-table-tbody > tr > th,
673
- .ui-rc-table-tbody > tr > td,
957
+ .#{$prefix}-table-wrapper {
958
+ .#{$prefix}-table.#{$prefix}-table-small {
959
+ .#{$prefix}-table-title,
960
+ .#{$prefix}-table-footer,
961
+ .#{$prefix}-table-cell,
962
+ .#{$prefix}-table-thead > tr > th,
963
+ .#{$prefix}-table-tbody > tr > th,
964
+ .#{$prefix}-table-tbody > tr > td,
674
965
  tfoot > tr > th,
675
966
  tfoot > tr > td {
676
967
  //padding: 8px 8px;
@@ -678,9 +969,9 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
678
969
  }
679
970
  }
680
971
  }
681
- .ui-rc-table-wrapper {
682
- .ui-rc-table.ui-rc-table-small {
683
- .ui-rc-table-cell {
972
+ .#{$prefix}-table-wrapper {
973
+ .#{$prefix}-table.#{$prefix}-table-small {
974
+ .#{$prefix}-table-cell {
684
975
  &:has(.ant-color-picker-trigger) {
685
976
  padding: 1px 8px;
686
977
  }
@@ -699,17 +990,17 @@ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
699
990
 
700
991
  //ui-rc-table-ping-right
701
992
 
702
- .ui-rc-table-wrapper .ui-rc-table.ui-rc-table-bordered >.ui-rc-table-container >.ui-rc-table-content >table >thead>tr >.ui-rc-table-cell-fix-right-first::after,
703
- .ui-rc-table-wrapper .ui-rc-table.ui-rc-table-bordered >.ui-rc-table-container >.ui-rc-table-header >table >thead>tr >.ui-rc-table-cell-fix-right-first::after,
704
- .ui-rc-table-wrapper .ui-rc-table.ui-rc-table-bordered >.ui-rc-table-container >.ui-rc-table-body >table >thead>tr >.ui-rc-table-cell-fix-right-first::after,
705
- .ui-rc-table-wrapper .ui-rc-table.ui-rc-table-bordered >.ui-rc-table-container >.ui-rc-table-summary >table >thead>tr >.ui-rc-table-cell-fix-right-first::after,
706
- .ui-rc-table-wrapper .ui-rc-table.ui-rc-table-bordered >.ui-rc-table-container >.ui-rc-table-content >table >tbody>tr >.ui-rc-table-cell-fix-right-first::after,
707
- .ui-rc-table-wrapper .ui-rc-table.ui-rc-table-bordered >.ui-rc-table-container >.ui-rc-table-header >table >tbody>tr >.ui-rc-table-cell-fix-right-first::after,
708
- .ui-rc-table-wrapper .ui-rc-table.ui-rc-table-bordered >.ui-rc-table-container >.ui-rc-table-body >table >tbody>tr >.ui-rc-table-cell-fix-right-first::after,
709
- .ui-rc-table-wrapper .ui-rc-table.ui-rc-table-bordered >.ui-rc-table-container >.ui-rc-table-summary >table >tbody>tr >.ui-rc-table-cell-fix-right-first::after,
710
- .ui-rc-table-wrapper .ui-rc-table.ui-rc-table-bordered >.ui-rc-table-container >.ui-rc-table-content >table >tfoot>tr >.ui-rc-table-cell-fix-right-first::after,
711
- .ui-rc-table-wrapper .ui-rc-table.ui-rc-table-bordered >.ui-rc-table-container >.ui-rc-table-header >table >tfoot>tr >.ui-rc-table-cell-fix-right-first::after,
712
- .ui-rc-table-wrapper .ui-rc-table.ui-rc-table-bordered >.ui-rc-table-container >.ui-rc-table-body >table >tfoot>tr >.ui-rc-table-cell-fix-right-first::after,
713
- .ui-rc-table-wrapper .ui-rc-table.ui-rc-table-bordered >.ui-rc-table-container >.ui-rc-table-summary >table >tfoot>tr >.ui-rc-table-cell-fix-right-first::after {
993
+ .#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-content >table >thead>tr >.#{$prefix}-table-cell-fix-right-first::after,
994
+ .#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-header >table >thead>tr >.#{$prefix}-table-cell-fix-right-first::after,
995
+ .#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-body >table >thead>tr >.#{$prefix}-table-cell-fix-right-first::after,
996
+ .#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-summary >table >thead>tr >.#{$prefix}-table-cell-fix-right-first::after,
997
+ .#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-content >table >tbody>tr >.#{$prefix}-table-cell-fix-right-first::after,
998
+ .#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-header >table >tbody>tr >.#{$prefix}-table-cell-fix-right-first::after,
999
+ .#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-body >table >tbody>tr >.#{$prefix}-table-cell-fix-right-first::after,
1000
+ .#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-summary >table >tbody>tr >.#{$prefix}-table-cell-fix-right-first::after,
1001
+ .#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-content >table >tfoot>tr >.#{$prefix}-table-cell-fix-right-first::after,
1002
+ .#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-header >table >tfoot>tr >.#{$prefix}-table-cell-fix-right-first::after,
1003
+ .#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-body >table >tfoot>tr >.#{$prefix}-table-cell-fix-right-first::after,
1004
+ .#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-summary >table >tfoot>tr >.#{$prefix}-table-cell-fix-right-first::after {
714
1005
  border-inline-end: 1px solid $tableBorderColor;
715
1006
  }
@@ -1,8 +1,13 @@
1
1
  import React from 'react';
2
2
  import type { ColumnsTable, GridTableProps } from "../type";
3
+ import type { GetRowKey } from "../type";
3
4
  type Props<T> = GridTableProps<T> & {
4
5
  tableRef: any;
5
6
  triggerChangeColumns?: (columns: ColumnsTable<T>, type: string) => void;
7
+ triggerChangeData?: (newData: T[], type: string) => void;
8
+ getRowKey: GetRowKey<T>;
9
+ triggerGroupColumns?: (groupedColumns: string[]) => void;
10
+ triggerPaste?: (pastedRows: T[], pastedColumnsArray: string[], newData: T[]) => void;
6
11
  };
7
12
  declare const Grid: <RecordType extends object>(props: Props<RecordType>) => React.JSX.Element;
8
13
  export default Grid;
@@ -4,12 +4,9 @@ import { GridStyle } from "../GridStyle";
4
4
  import TableGrid from "../TableGrid";
5
5
  // import type {ColumnsTable} from "../type";
6
6
 
7
- // import {renderContent} from "../hooks/useColumns";
8
-
9
7
  const Grid = props => {
10
8
  const {
11
9
  height,
12
- style,
13
10
  rowHoverable,
14
11
  ...rest
15
12
  } = props;
@@ -19,10 +16,7 @@ const Grid = props => {
19
16
  position: 'relative'
20
17
  }
21
18
  }, /*#__PURE__*/React.createElement(TableGrid, _extends({}, rest, {
22
- style: {
23
- ...style,
24
- minHeight: height
25
- },
19
+ // style={{...style, minHeight: height}}
26
20
  rowHoverable: rowHoverable ?? true
27
21
  }))));
28
22
  };