es-grid-template 1.2.2 → 1.2.4

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 (31) hide show
  1. package/assets/index.css +0 -17
  2. package/assets/index.scss +1082 -1063
  3. package/es/grid-component/ColumnsChoose.d.ts +1 -0
  4. package/es/grid-component/ColumnsChoose.js +351 -61
  5. package/es/grid-component/GridStyle.js +1 -1
  6. package/es/grid-component/InternalTable.js +7 -0
  7. package/es/grid-component/TableGrid.js +3 -2
  8. package/es/grid-component/hooks/useColumns.js +3 -3
  9. package/es/grid-component/hooks/useForceUpdate.d.ts +2 -0
  10. package/es/grid-component/hooks/useForceUpdate.js +5 -0
  11. package/es/grid-component/hooks/utils.d.ts +2 -0
  12. package/es/grid-component/hooks/utils.js +77 -16
  13. package/es/grid-component/styles.scss +22 -3
  14. package/es/grid-component/table/Grid.js +2 -1
  15. package/es/grid-component/table/GridEdit.js +72 -9
  16. package/es/grid-component/type.d.ts +1 -0
  17. package/lib/grid-component/ColumnsChoose.d.ts +1 -0
  18. package/lib/grid-component/ColumnsChoose.js +350 -60
  19. package/lib/grid-component/GridStyle.js +1 -1
  20. package/lib/grid-component/InternalTable.js +7 -0
  21. package/lib/grid-component/TableGrid.js +3 -2
  22. package/lib/grid-component/hooks/useColumns.js +3 -3
  23. package/lib/grid-component/hooks/useForceUpdate.d.ts +2 -0
  24. package/lib/grid-component/hooks/useForceUpdate.js +13 -0
  25. package/lib/grid-component/hooks/utils.d.ts +2 -0
  26. package/lib/grid-component/hooks/utils.js +81 -17
  27. package/lib/grid-component/styles.scss +22 -3
  28. package/lib/grid-component/table/Grid.js +2 -1
  29. package/lib/grid-component/table/GridEdit.js +71 -8
  30. package/lib/grid-component/type.d.ts +1 -0
  31. package/package.json +106 -106
package/assets/index.scss CHANGED
@@ -1,1063 +1,1082 @@
1
- $prefix: 'ui-rc' !default;
2
- $antdPrefix: 'ant' !default;
3
- $primary: #eb4619 !default;
4
- $rowHoverBg: #FBDED6 !default;
5
- $rowSelectedBg: #FEF2EF !default;
6
- //$tableBorderColor: red !default;
7
- $tableBorderColor: #e0e0e0 !default;
8
- //$tableBorderColor: #f0f0f0 !default;
9
- $border-radius: 6px !default;
10
- $border-selected-color: #0550C5 !default;
11
- $body-color: #ffffff !default;
12
- $cell-selected-bg: #E6EFFD !default;
13
- $cell-index-selected-bg: #0550C5 !default;
14
- $cell-index-focus-bg: #CEDBEF !default;
15
- $rowSelectedHoverBg: 'ui-rc' !default;
16
- $boxShadowColor: rgba(5, 5, 5, 0.09) !default;
17
- $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
18
-
19
- .react-hot-toast {
20
- font-size: 1rem;
21
- color: $body-color;
22
- letter-spacing: 0.14px;
23
- box-shadow: 0px 4px 10px -4px rgb(58 53 65 / 60%);
24
- border-radius: $border-radius;
25
- }
26
-
27
- .popup-context-menu {
28
- min-width: 200px;
29
- }
30
-
31
- // -------------- Table -------------
32
-
33
- .#{$prefix}-table-wrapper {
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
-
46
-
47
- &.table-none-column-select {
48
- .#{$prefix}-table-cell {
49
- &.#{$prefix}-table-selection-column {
50
- padding: 0 !important;
51
- overflow: hidden !important;
52
- border-inline-end: 0 !important;
53
- //flex: 0 0 0 !important;
54
- //width: 0 !important;
55
- }
56
- }
57
- }
58
-
59
- .#{$prefix}-table {
60
- line-height: 20px;
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
-
85
- }
86
-
87
- .#{$prefix}-table-tbody-virtual {
88
- .#{$prefix}-table-cell {
89
- border-bottom: 1px solid $tableBorderColor;
90
- }
91
- }
92
-
93
- .#{$prefix}-table-bordered {
94
-
95
- .#{$prefix}-table-tbody-virtual {
96
- .#{$prefix}-table-cell {
97
- //display: flex;
98
- border-inline-end: 1px solid $tableBorderColor;
99
- }
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
- }
119
-
120
- }
121
-
122
- .#{$prefix}-table-tbody {
123
-
124
- .#{$prefix}-table-row {
125
-
126
- &.#{$prefix}-table-row-selected {
127
- > .#{$prefix}-table-cell {
128
- background: #FEF2EF;
129
- }
130
- }
131
-
132
- &.row-disabled {
133
- .#{$prefix}-table-cell {
134
- //background-color: #f5f5f5;
135
- }
136
- }
137
-
138
- > .#{$prefix}-table-cell {
139
- &.#{$prefix}-table-cell-row-hover {
140
- background: #FBDED6;
141
- }
142
-
143
- &.#{$prefix}-cell-command {
144
- padding: 5px 8px;
145
-
146
- .#{$prefix}-cell-command__content {
147
- display: flex;
148
- gap: 5px;
149
- overflow: hidden;
150
- }
151
- }
152
-
153
-
154
- }
155
-
156
- .#{$prefix}-table-cell:last-of-type {
157
- //border-inline-end: 0;
158
- }
159
-
160
-
161
- @for $i from 0 through 10 {
162
- &:has(.indent-level-#{$i}) {
163
- .#{$prefix}-table-cell {
164
- &.cell-number {
165
- .ui-rc_content {
166
- padding-left: $i * 10px;
167
- }
168
- }
169
- }
170
- }
171
- }
172
-
173
- }
174
-
175
- .#{$prefix}-table-placeholder {
176
- .#{$prefix}-table-cell {
177
- padding-top: 0 !important;
178
- padding-bottom: 0 !important;
179
- .#{$prefix}-table-expanded-row-fixed {
180
- margin-top: 0 !important;
181
- margin-bottom: 0 !important;
182
- }
183
- }
184
- }
185
- }
186
-
187
- .#{$prefix}-table-thead {
188
- //font-weight: 400;
189
-
190
- > tr {
191
- > th,
192
- > td {
193
- border-bottom: 1px solid $tableBorderColor;
194
- //background: #fff;
195
- font-weight: 500;
196
- }
197
- }
198
-
199
- .#{$prefix}-table-cell {
200
-
201
- &.#{$prefix}-table-cell-fix-left-last {
202
- .#{$prefix}-table-cell-content {
203
- //overflow: visible;
204
- }
205
- }
206
- .#{$prefix}-table-column-title {
207
- //display: flex;
208
- }
209
- }
210
- }
211
-
212
- .#{$prefix}-table-summary {
213
- .#{$prefix}-table-cell {
214
- background-color: #fafafa;
215
- height: 39px;
216
- font-weight: 600;
217
- }
218
-
219
- > tr > td {
220
- border-bottom: 1px solid $tableBorderColor;
221
- }
222
- }
223
-
224
- .#{$prefix}-table-bordered .#{$prefix}-table-tbody-virtual .#{$prefix}-table-cell.#{$prefix}-table-cell-fix-right-first:before {
225
- border-inline-start: 1px solid $tableBorderColor;
226
- }
227
-
228
- .#{$prefix}-table {
229
-
230
- &.#{$prefix}-table-bordered {
231
- > .#{$prefix}-table-container {
232
- border-inline-start: 1px solid $tableBorderColor;
233
- border-top: 1px solid $tableBorderColor;
234
-
235
- &::after {
236
- border-inline-end: 1px solid $tableBorderColor;
237
- }
238
-
239
- > .#{$prefix}-table-content,
240
- > .#{$prefix}-table-header,
241
- > .#{$prefix}-table-body,
242
- > .#{$prefix}-table-summary {
243
- > table {
244
- > thead {
245
- > tr:not(:last-child) {
246
- > th {
247
- border-bottom: 1px solid $tableBorderColor;
248
- }
249
- }
250
- }
251
- }
252
- }
253
-
254
-
255
- > .#{$prefix}-table-content,
256
- > .#{$prefix}-table-header,
257
- > .#{$prefix}-table-body,
258
- > .#{$prefix}-table-summary {
259
- > table {
260
- > thead,
261
- > tbody,
262
- > tfoot {
263
- > tr {
264
- > th,
265
- > td {
266
- border-inline-end: 1px solid $tableBorderColor;
267
- }
268
- }
269
- }
270
- }
271
- }
272
-
273
- }
274
-
275
- > .#{$prefix}-table-title {
276
- border: 1px solid $tableBorderColor;
277
- border-bottom: 0;
278
- }
279
- }
280
-
281
- &.#{$prefix}-table-ping-right:not(.#{$prefix}-table-has-fix-right) .#{$prefix}-table-container::after {
282
- box-shadow: inset -10px 0 8px -8px $boxShadowColor;
283
- //box-shadow: none;
284
- }
285
-
286
-
287
- }
288
-
289
- .#{$prefix}-table-ping-left {
290
- .#{$prefix}-table-cell-fix-left-first::after,
291
- .#{$prefix}-table-cell-fix-left-last::after {
292
- box-shadow: inset 10px 0 8px -8px $boxShadowColor;
293
- }
294
- }
295
-
296
- .#{$prefix}-table-ping-right {
297
- .#{$prefix}-table-cell-fix-right-first::after,
298
- .#{$prefix}-table-cell-fix-right-last::after {
299
- box-shadow: inset -10px 0 8px -8px $boxShadowColor;
300
- }
301
- }
302
-
303
-
304
- .#{$prefix}-table.#{$prefix}-table-bordered {
305
- > .#{$prefix}-table-container {
306
- > .#{$prefix}-table-header > table > thead > tr,
307
- > .#{$prefix}-table-summary > table > tfoot > tr {
308
- > .#{$prefix}-table-cell-fix-right-first::before {
309
- border-inline-start: 1px solid $tableBorderColor;
310
- content: "";
311
- position: absolute;
312
- inset-block: 0;
313
- inset-inline-start: -1px;
314
- }
315
- }
316
- }
317
- }
318
-
319
-
320
- }
321
-
322
- // -------------- Table edit-------------
323
-
324
- .#{$prefix}-table-wrapper {
325
-
326
- &.grid-editable {
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;
336
-
337
- display: flex;
338
- //--------
339
- padding: 0;
340
-
341
- .#{$prefix}-table-row-expand-icon {
342
- top: 8px;
343
- left: 8px;
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
-
481
- }
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
-
517
- .#{$prefix}-table.#{$prefix}-table-small {
518
- .#{$prefix}-table-thead > tr > th,
519
- tfoot > tr > th,
520
- tfoot > tr > td,
521
- tfoot > tr > td.#{$prefix}-table-cell
522
- {
523
- //padding: 8px 8px;
524
- }
525
- }
526
-
527
- .#{$prefix}-table.#{$prefix}-table-small {
528
- .#{$prefix}-table-selection-column{
529
- //padding: 8px 8px;
530
- padding: 6px 8px;
531
- }
532
- }
533
-
534
- .ui-rc_cell-content {
535
- //position: relative;
536
- user-select: none;
537
- //padding: 8px 8px;
538
- padding: 7px 8px;
539
- //min-height: 23px;
540
- overflow: hidden;
541
-
542
- .ui-rc_content {
543
- width: 100%;
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
- }
572
- }
573
-
574
- .ui-rc_cell-content.selected {
575
- background-color: $cell-selected-bg;
576
- }
577
-
578
- .ui-rc_cell-content--index {
579
- &.focus {
580
- background-color: $cell-index-focus-bg;
581
- //color: #fff;
582
- //font-weight: 500;
583
- }
584
- &.selected {
585
- background-color: $cell-index-selected-bg;
586
- color: #fff;
587
- //font-weight: 500;
588
- }
589
- }
590
-
591
- .#{$prefix}-table-tbody {
592
-
593
- .#{$prefix}-table-row {
594
- &.#{$prefix}-table-row-selected {
595
- >.#{$prefix}-table-cell {
596
- background: #FEF2EF;
597
- }
598
- }
599
- >.#{$prefix}-table-cell {
600
- &.#{$prefix}-table-cell-row-hover {
601
- background: #FBDED6;
602
- }
603
- }
604
-
605
- .#{$prefix}-table-cell {
606
-
607
- .#{$prefix}-table-row-indent {
608
- position: absolute;
609
- @for $i from 1 through 10 {
610
- &.indent-level-#{$i} {
611
- padding-left: $i * 25px;;
612
- }
613
- }
614
- }
615
-
616
- @for $i from 0 through 10 {
617
- &:has(.indent-level-#{$i}) {
618
-
619
- .#{$prefix}-table-row-expand-icon {
620
- position: absolute;
621
- //.ui-rc_content {
622
- padding-left: $i * 10px;
623
- //}
624
- }
625
-
626
- .ui-rc_cell-content {
627
- padding-left: $i * 25px + 8px;
628
- }
629
-
630
- }
631
- }
632
-
633
- @for $i from 0 through 10 {
634
- &:has(.indent-level-#{$i}) {
635
-
636
- .#{$prefix}-table-row-expand-icon {
637
- position: absolute;
638
- left: $i * 25px + 8px !important;
639
- }
640
-
641
- .ui-rc_cell-content {
642
- padding-left: ($i + 1)* 25px + 8px;
643
- }
644
-
645
- }
646
- }
647
- }
648
- }
649
-
650
-
651
- .#{$prefix}-table-cell{
652
-
653
- &.#{$prefix}-table-cell-ellipsis {
654
- .ui-rc_cell-content {
655
-
656
- .ui-rc_content {
657
- text-overflow: ellipsis;
658
- text-decoration: none;
659
- transition: 0.3s;
660
- white-space: nowrap;
661
- overflow: hidden;
662
- }
663
- }
664
- }
665
-
666
- &.cell-editing {
667
- //padding: 0 !important;
668
- &:focus-visible {
669
- outline: none;
670
- }
671
- .ant-form-item ,
672
- .ant-row.ant-form-item-row,
673
- .ant-col.ant-form-item-control,
674
- .ant-form-item-control-input,
675
- .ant-form-item-control-input-content,
676
- .ant-input{
677
- height: 100%;
678
- &:focus-visible {
679
- outline: none;
680
- }
681
- }
682
-
683
- .#{$prefix}-checkbox-wrapper {
684
- .#{$prefix}-checkbox {
685
- background-color: red;
686
- }
687
- .#{$prefix}-checkbox-input {
688
- &:focus-visible {
689
- outline: none;
690
- }
691
- }
692
- }
693
-
694
-
695
- .ant-input, .ant-picker{
696
- border-radius: 0;
697
- }
698
-
699
- // color picker
700
-
701
- .ant-color-picker-trigger{
702
- height: 100%;
703
- border-radius: 0;
704
- .ant-color-picker-color-block {
705
- height: 100%;
706
- width: 100%;
707
- }
708
-
709
- }
710
-
711
-
712
- // ------------ select ---------------
713
-
714
- .#{$prefix}-table-select-single .#{$prefix}-table-select-selector,
715
- .#{$prefix}-select-single .#{$prefix}-select-selector {
716
-
717
- border-radius: 0;
718
-
719
- }
720
-
721
- .#{$prefix}-table-select-single:not(.#{$prefix}-table-select-customize-input) {
722
- .#{$prefix}-table-select-selector {
723
- .#{$prefix}-table-select-selection-search-input {
724
- height: auto;
725
- }
726
- }
727
- }
728
-
729
- // ------------ select ---------------
730
-
731
-
732
- }
733
- &.cell-editable {
734
- &:focus-visible {
735
- outline: none;
736
- }
737
- }
738
- .#{$prefix}-table-cell-content {
739
- display: flex;
740
- height: 100%;
741
- }
742
-
743
- .ui-rc_cell-content,
744
- .#{$prefix}-table-cell-content{
745
- //width: 100%;
746
- flex: 1;
747
- }
748
- .ui-rc_content {
749
- //padding: 5px 8px;
750
- }
751
- .ui-rc_content:has(.ant-color-picker-trigger) {
752
- padding: 1px 8px;
753
- }
754
- }
755
- }
756
-
757
- }
758
-
759
- }
760
- // ---------------- Table edit end---------------
761
-
762
-
763
- // -------------- Checkbox ----------
764
-
765
- .#{$prefix}-checkbox-indeterminate {
766
- &:hover {
767
- .#{$prefix}-checkbox-inner {
768
- border-color: $primary !important;;
769
- }
770
- }
771
-
772
- .#{$prefix}-checkbox-inner {
773
- &:after {
774
- background-color: $primary;
775
- }
776
- }
777
- }
778
- //.#{$prefix}-checkbox-input {
779
- // &:focus-visible {
780
- // outline: none;
781
- // }
782
- //}
783
-
784
- .#{$prefix}-checkbox .#{$prefix}-checkbox-input:focus-visible+.#{$prefix}-checkbox-inner {
785
- outline: none;
786
- }
787
-
788
- .#{$prefix}-checkbox {
789
- &.#{$prefix}-checkbox-checked {
790
- &:hover {
791
- .#{$prefix}-checkbox-inner {
792
- background-color: $primary;
793
- border-color: $primary;
794
- }
795
- }
796
-
797
- .#{$prefix}-checkbox-inner {
798
- background-color: $primary;
799
- border-color: $primary;
800
- }
801
- }
802
- }
803
-
804
- .#{$prefix}-checkbox:not(.#{$prefix}-checkbox-disabled):hover {
805
- .#{$prefix}-checkbox-inner {
806
- border-color: $primary;
807
- }
808
- }
809
-
810
- .#{$prefix}-checkbox-wrapper:not(.#{$prefix}-checkbox-wrapper-disabled):hover {
811
- .#{$prefix}-checkbox-inner {
812
- border-color: $primary;
813
- }
814
-
815
- .#{$prefix}-checkbox-checked:not(.#{$prefix}-checkbox-disabled) {
816
- .#{$prefix}-checkbox-inner {
817
- background-color: $primary;
818
- }
819
- }
820
- }
821
-
822
- // ------------ Tree ---------------
823
-
824
- .#{$prefix}-tree {
825
- .#{$prefix}-tree-checkbox-checked {
826
- .#{$prefix}-tree-checkbox-inner {
827
- background-color: $primary;
828
- border-color: $primary;
829
- }
830
- }
831
-
832
- .#{$prefix}-tree-checkbox-wrapper-checked:not(.#{$prefix}-tree-checkbox-wrapper-disabled):hover,
833
- .#{$prefix}-tree-checkbox-checked:not(.#{$prefix}-tree-checkbox-disabled):hover {
834
- .#{$prefix}-tree-checkbox-inner {
835
- background-color: $primary;
836
- }
837
- }
838
-
839
- .#{$prefix}-tree-checkbox-wrapper:not(.#{$prefix}-tree-checkbox-wrapper-disabled):hover,
840
- .#{$prefix}-tree-checkbox:not(.#{$prefix}-tree-checkbox-disabled):hover {
841
- .#{$prefix}-tree-checkbox-inner {
842
- border-color: $primary;
843
- }
844
- }
845
- }
846
-
847
-
848
- // ------------ ant Tree ---------------
849
-
850
- .#{$antdPrefix}-tree {
851
- .#{$antdPrefix}-tree-checkbox-checked {
852
- .#{$antdPrefix}-tree-checkbox-inner {
853
- background-color: $primary;
854
- border-color: $primary;
855
- }
856
- }
857
-
858
- .#{$antdPrefix}-tree-checkbox-wrapper-checked:not(.#{$antdPrefix}-tree-checkbox-wrapper-disabled):hover,
859
- .#{$antdPrefix}-tree-checkbox-checked:not(.#{$antdPrefix}-tree-checkbox-disabled):hover {
860
- .#{$antdPrefix}-tree-checkbox-inner {
861
- background-color: $primary;
862
- }
863
- }
864
-
865
- .#{$antdPrefix}-tree-checkbox-wrapper:not(.#{$antdPrefix}-tree-checkbox-wrapper-disabled):hover,
866
- .#{$antdPrefix}-tree-checkbox:not(.#{$antdPrefix}-tree-checkbox-disabled):hover {
867
- .#{$antdPrefix}-tree-checkbox-inner {
868
- border-color: $primary;
869
- }
870
- }
871
- }
872
-
873
-
874
- // ------------ paging ---------------
875
-
876
- .#{$prefix}-table-wrapper .#{$prefix}-table-pagination.#{$prefix}-pagination {
877
- margin: 0;
878
- }
879
-
880
- .#{$prefix}-table-wrapper {
881
- .#{$prefix}-table {
882
- .#{$prefix}-pagination {
883
- &::before {
884
- content: "";
885
- position: absolute;
886
- border-left: 1px solid $tableBorderColor;
887
- height: 55px;
888
- bottom: 0;
889
- left: 0;
890
- }
891
-
892
- &::after {
893
- content: "";
894
- position: absolute;
895
- border-left: 1px solid $tableBorderColor;
896
- height: 55px;
897
- bottom: 0;
898
- visibility: visible;
899
- right: 0;
900
- }
901
-
902
- &.top-pagination {
903
- border: none;
904
- padding-top: 0;
905
- padding-bottom: 0;
906
- .#{$prefix}-pagination-total-text {
907
- margin-left: auto;
908
- }
909
- }
910
- border-bottom: 1px solid $tableBorderColor;
911
-
912
- }
913
- }
914
- }
915
-
916
-
917
- .#{$prefix}-pagination {
918
-
919
- .#{$prefix}-pagination-total-text {
920
- white-space: nowrap;
921
- }
922
-
923
- .#{$prefix}-pagination-item-active {
924
- border-color: $primary;
925
-
926
- &:hover {
927
- border-color: $primary;
928
-
929
- a {
930
- color: $primary;
931
- }
932
- }
933
-
934
- a {
935
- color: $primary;
936
- }
937
- }
938
-
939
- .#{$prefix}-pagination-jump-prev, .#{$prefix}-pagination-jump-next {
940
- .#{$prefix}-pagination-item-container {
941
- .#{$prefix}-pagination-item-link-icon {
942
- color: $primary;
943
- }
944
- }
945
- }
946
- }
947
-
948
-
949
-
950
- //.#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-content >table >tbody>tr>td >.#{$prefix}-table-expanded-row-fixed {
951
- // border-inline-end: 1px solid $tableBorderColor;
952
- //}
953
- //
954
- //.#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-content >table >tbody>tr>td >.#{$prefix}-table-expanded-row-fixed::after {
955
- // //border-inline-end: 1px solid $tableBorderColor;
956
- // border-inline-end: 0 solid $tableBorderColor;
957
- //}
958
- //
959
- //
960
- //.#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered.#{$prefix}-table-small >.#{$prefix}-table-container >.#{$prefix}-table-body >table>tbody>tr>td >.#{$prefix}-table-expanded-row-fixed {
961
- // margin-top: 0;
962
- // margin-bottom: 0;
963
- // border-inline-end: 1px solid $tableBorderColor;
964
- //}
965
- //
966
- //.#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered.#{$prefix}-table-small >.#{$prefix}-table-container >.#{$prefix}-table-body >table>tbody>tr>td >.#{$prefix}-table-expanded-row-fixed::after {
967
- // border-inline-end: 0 solid $tableBorderColor;
968
- //}
969
-
970
-
971
- .#{$prefix}-table-wrapper {
972
- .#{$prefix}-table {
973
- &.#{$prefix}-table-bordered {
974
- > .#{$prefix}-table-container {
975
- > .#{$prefix}-table-content,
976
- > .#{$prefix}-table-header,
977
- > .#{$prefix}-table-body,
978
- > .#{$prefix}-table-summary {
979
- > table > tbody > tr {
980
- > th,
981
- > td {
982
- > .#{$prefix}-table-expanded-row-fixed::after {
983
- // Thêm CSS ở đây
984
- }
985
- }
986
- }
987
- }
988
- }
989
- }
990
- }
991
- }
992
-
993
-
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,
1002
- tfoot > tr > th,
1003
- tfoot > tr > td {
1004
- //padding: 8px 8px;
1005
- //font-size: 13px;
1006
- }
1007
- }
1008
- }
1009
- .#{$prefix}-table-wrapper {
1010
- .#{$prefix}-table.#{$prefix}-table-small {
1011
- .#{$prefix}-table-cell {
1012
- &:has(.ant-color-picker-trigger) {
1013
- padding: 1px 8px;
1014
- }
1015
- .ant-color-picker-trigger{
1016
- width: 100%;
1017
- min-height: 20px;
1018
- .ant-color-picker-clear {
1019
- height: 20px;
1020
- }
1021
- }
1022
- }
1023
- }
1024
- }
1025
-
1026
-
1027
-
1028
- //ui-rc-table-ping-right
1029
-
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 {
1042
- border-inline-end: 1px solid $tableBorderColor;
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
- }
1
+ $prefix: 'ui-rc' !default;
2
+ $antdPrefix: 'ant' !default;
3
+ $primary: #eb4619 !default;
4
+ $rowHoverBg: #FBDED6 !default;
5
+ $rowSelectedBg: #FEF2EF !default;
6
+ //$tableBorderColor: red !default;
7
+ $tableBorderColor: #e0e0e0 !default;
8
+ //$tableBorderColor: #f0f0f0 !default;
9
+ $border-radius: 6px !default;
10
+ $border-selected-color: #0550C5 !default;
11
+ $body-color: #ffffff !default;
12
+ $cell-selected-bg: #E6EFFD !default;
13
+ $cell-index-selected-bg: #0550C5 !default;
14
+ $cell-index-focus-bg: #CEDBEF !default;
15
+ $rowSelectedHoverBg: 'ui-rc' !default;
16
+ $boxShadowColor: rgba(5, 5, 5, 0.09) !default;
17
+ $fontFamily: "Montserrat",Helvetica,Arial,serif !default;
18
+
19
+ .react-hot-toast {
20
+ font-size: 1rem;
21
+ color: $body-color;
22
+ letter-spacing: 0.14px;
23
+ box-shadow: 0px 4px 10px -4px rgb(58 53 65 / 60%);
24
+ border-radius: $border-radius;
25
+ }
26
+
27
+ .popup-context-menu {
28
+ min-width: 200px;
29
+ }
30
+
31
+ // -------------- Table -------------
32
+
33
+ .#{$prefix}-table-wrapper {
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
+ .ui-rc-table {
46
+ .#{$prefix}-table-cell {
47
+ &.#{$prefix}-table-selection-column {
48
+ //padding: 6px 8px !important;
49
+ //padding: 6px 8px !important;
50
+ }
51
+ }
52
+ }
53
+
54
+
55
+ &.table-none-column-select {
56
+ .#{$prefix}-table-cell {
57
+ &.#{$prefix}-table-selection-column {
58
+ padding: 0 !important;
59
+ overflow: hidden !important;
60
+ border-inline-end: 0 !important;
61
+ //flex: 0 0 0 !important;
62
+ //width: 0 !important;
63
+ }
64
+ }
65
+ }
66
+
67
+ .#{$prefix}-table {
68
+
69
+ //line-height: 20px;
70
+
71
+ .#{$prefix}-table-cell {
72
+ //min-height: 35px;
73
+ //height: 35px;
74
+
75
+ .#{$prefix}-table-filter-column {
76
+ .#{$prefix}-dropdown-trigger.#{$prefix}-table-filter-trigger {
77
+ margin-left: 0;
78
+ }
79
+ }
80
+
81
+ &.cell-group {
82
+ font-weight: 600;
83
+ background-color: #f5f5f5;
84
+ border-inline-end-color: transparent !important;
85
+
86
+ }
87
+ &.cell-group-fixed {
88
+ font-weight: 600;
89
+ position: sticky;
90
+ text-align: left !important;
91
+ left: 0;
92
+ z-index: 15;
93
+ }
94
+
95
+ }
96
+
97
+ }
98
+
99
+ .#{$prefix}-table-tbody-virtual {
100
+ .#{$prefix}-table-cell {
101
+ border-bottom: 1px solid $tableBorderColor;
102
+ }
103
+ }
104
+
105
+ .#{$prefix}-table-bordered {
106
+
107
+ .#{$prefix}-table-tbody-virtual {
108
+ .#{$prefix}-table-cell {
109
+ //display: flex;
110
+ border-inline-end: 1px solid $tableBorderColor;
111
+ }
112
+ }
113
+ .#{$prefix}-table-container {
114
+ .#{$prefix}-table-thead {
115
+
116
+ > tr{
117
+ > th.#{$prefix}-table-cell:last-of-type {
118
+ //border-inline-end: 0;
119
+ }
120
+ }
121
+
122
+ }
123
+ .#{$prefix}-table-summary {
124
+ > tr{
125
+ > td.#{$prefix}-table-cell:last-of-type {
126
+ //border-inline-end: 0;
127
+ }
128
+ }
129
+ }
130
+ }
131
+
132
+ }
133
+
134
+ .#{$prefix}-table-tbody {
135
+
136
+ .#{$prefix}-table-row {
137
+
138
+ &.#{$prefix}-table-row-selected {
139
+ > .#{$prefix}-table-cell {
140
+ background: #FEF2EF;
141
+ }
142
+ }
143
+
144
+ &.row-disabled {
145
+ .#{$prefix}-table-cell {
146
+ //background-color: #f5f5f5;
147
+ }
148
+ }
149
+
150
+ > .#{$prefix}-table-cell {
151
+ &.#{$prefix}-table-cell-row-hover {
152
+ background: #FBDED6;
153
+ }
154
+
155
+ &.#{$prefix}-cell-command {
156
+ padding: 5px 8px;
157
+
158
+ .#{$prefix}-cell-command__content {
159
+ display: flex;
160
+ gap: 5px;
161
+ overflow: hidden;
162
+ }
163
+ }
164
+
165
+
166
+ }
167
+
168
+ .#{$prefix}-table-cell:last-of-type {
169
+ //border-inline-end: 0;
170
+ }
171
+
172
+
173
+ @for $i from 0 through 10 {
174
+ &:has(.indent-level-#{$i}) {
175
+ .#{$prefix}-table-cell {
176
+ &.cell-number {
177
+ .ui-rc_content {
178
+ padding-left: $i * 10px;
179
+ }
180
+ }
181
+ }
182
+ }
183
+ }
184
+
185
+ }
186
+
187
+ .#{$prefix}-table-placeholder {
188
+ .#{$prefix}-table-cell {
189
+ padding-top: 0 !important;
190
+ padding-bottom: 0 !important;
191
+ .#{$prefix}-table-expanded-row-fixed {
192
+ margin-top: 0 !important;
193
+ margin-bottom: 0 !important;
194
+ }
195
+ }
196
+ }
197
+ }
198
+
199
+ .#{$prefix}-table-thead {
200
+ //font-weight: 400;
201
+
202
+ > tr {
203
+ > th,
204
+ > td {
205
+ border-bottom: 1px solid $tableBorderColor;
206
+ //background: #fff;
207
+ font-weight: 500;
208
+ }
209
+ }
210
+
211
+ .#{$prefix}-table-cell {
212
+
213
+ &.#{$prefix}-table-cell-fix-left-last {
214
+ .#{$prefix}-table-cell-content {
215
+ //overflow: visible;
216
+ }
217
+ }
218
+ .#{$prefix}-table-column-title {
219
+ //display: flex;
220
+ }
221
+ }
222
+ }
223
+
224
+ .#{$prefix}-table-summary {
225
+ .#{$prefix}-table-cell {
226
+ background-color: #fafafa;
227
+ height: 39px;
228
+ font-weight: 600;
229
+ }
230
+
231
+ > tr > td {
232
+ border-bottom: 1px solid $tableBorderColor;
233
+ }
234
+ }
235
+
236
+ .#{$prefix}-table-bordered .#{$prefix}-table-tbody-virtual .#{$prefix}-table-cell.#{$prefix}-table-cell-fix-right-first:before {
237
+ border-inline-start: 1px solid $tableBorderColor;
238
+ }
239
+
240
+ .#{$prefix}-table {
241
+
242
+ &.#{$prefix}-table-bordered {
243
+ > .#{$prefix}-table-container {
244
+ border-inline-start: 1px solid $tableBorderColor;
245
+ border-top: 1px solid $tableBorderColor;
246
+
247
+ &::after {
248
+ border-inline-end: 1px solid $tableBorderColor;
249
+ }
250
+
251
+ > .#{$prefix}-table-content,
252
+ > .#{$prefix}-table-header,
253
+ > .#{$prefix}-table-body,
254
+ > .#{$prefix}-table-summary {
255
+ > table {
256
+ > thead {
257
+ > tr:not(:last-child) {
258
+ > th {
259
+ border-bottom: 1px solid $tableBorderColor;
260
+ }
261
+ }
262
+ }
263
+ }
264
+ }
265
+
266
+
267
+ > .#{$prefix}-table-content,
268
+ > .#{$prefix}-table-header,
269
+ > .#{$prefix}-table-body,
270
+ > .#{$prefix}-table-summary {
271
+ > table {
272
+ > thead,
273
+ > tbody,
274
+ > tfoot {
275
+ > tr {
276
+ > th,
277
+ > td {
278
+ border-inline-end: 1px solid $tableBorderColor;
279
+ }
280
+ }
281
+ }
282
+ }
283
+ }
284
+
285
+ }
286
+
287
+ > .#{$prefix}-table-title {
288
+ border: 1px solid $tableBorderColor;
289
+ border-bottom: 0;
290
+ }
291
+ }
292
+
293
+ &.#{$prefix}-table-ping-right:not(.#{$prefix}-table-has-fix-right) .#{$prefix}-table-container::after {
294
+ box-shadow: inset -10px 0 8px -8px $boxShadowColor;
295
+ //box-shadow: none;
296
+ }
297
+
298
+
299
+ }
300
+
301
+ .#{$prefix}-table-ping-left {
302
+ .#{$prefix}-table-cell-fix-left-first::after,
303
+ .#{$prefix}-table-cell-fix-left-last::after {
304
+ box-shadow: inset 10px 0 8px -8px $boxShadowColor;
305
+ }
306
+ }
307
+
308
+ .#{$prefix}-table-ping-right {
309
+ .#{$prefix}-table-cell-fix-right-first::after,
310
+ .#{$prefix}-table-cell-fix-right-last::after {
311
+ box-shadow: inset -10px 0 8px -8px $boxShadowColor;
312
+ }
313
+ }
314
+
315
+
316
+ .#{$prefix}-table.#{$prefix}-table-bordered {
317
+ > .#{$prefix}-table-container {
318
+ > .#{$prefix}-table-header > table > thead > tr,
319
+ > .#{$prefix}-table-summary > table > tfoot > tr {
320
+ > .#{$prefix}-table-cell-fix-right-first::before {
321
+ border-inline-start: 1px solid $tableBorderColor;
322
+ content: "";
323
+ position: absolute;
324
+ inset-block: 0;
325
+ inset-inline-start: -1px;
326
+ }
327
+ }
328
+ }
329
+ }
330
+
331
+
332
+ }
333
+
334
+ // -------------- Table edit-------------
335
+
336
+ .#{$prefix}-table-wrapper {
337
+
338
+ .#{$prefix}-table.#{$prefix}-table-small {
339
+ .#{$prefix}-table-selection-column{
340
+ //padding: 8px 8px;
341
+ //padding: 6px 8px;
342
+ }
343
+ }
344
+
345
+ &.grid-editable {
346
+
347
+ .#{$prefix}-table-row {
348
+ &:has(+ .#{$prefix}-table-cell) {
349
+
350
+ }
351
+ }
352
+
353
+ .#{$prefix}-table .#{$prefix}-table-tbody .rc-ui-cell-editable {
354
+ overflow: unset;
355
+
356
+ display: flex;
357
+ //--------
358
+ padding: 0;
359
+
360
+ .#{$prefix}-table-row-expand-icon {
361
+ top: 8px;
362
+ left: 8px;
363
+ }
364
+
365
+ &.cell-editable {
366
+ &.cell-border-top {
367
+ border-bottom: 1px solid $border-selected-color;
368
+ }
369
+
370
+ &.cell-border-bottom {
371
+ border-bottom: 1px solid $border-selected-color;
372
+ }
373
+
374
+ &.cell-paste-border-bottom {
375
+ border-bottom: 1px dashed #949494;
376
+ }
377
+
378
+ &.cell-border-left {
379
+ border-inline-end: 1px solid $border-selected-color;
380
+ }
381
+
382
+ &.cell-paste-border-left {
383
+ border-inline-end: 1px dashed #949494;
384
+ }
385
+
386
+ &.cell-border-right {
387
+ border-inline-end: 1px solid $border-selected-color;
388
+ }
389
+
390
+ &.cell-paste-border-right {
391
+ border-inline-end: 1px dashed #949494;
392
+ }
393
+
394
+ &.#{$prefix}-table-cell-fix-left {
395
+ &:has(.ui-rc_cell-content.selected) {
396
+ }
397
+
398
+ }
399
+
400
+ &.#{$prefix}-table-cell-fix-right {
401
+ &:has(.ui-rc_cell-content.selected) {
402
+ }
403
+
404
+ &.cell-border-end {
405
+ z-index: 3;
406
+ }
407
+
408
+ }
409
+
410
+
411
+ &.cell-border-end {
412
+ z-index: 1;
413
+ }
414
+
415
+ &.#{$prefix}-table-cell-fix-right-first {
416
+
417
+ &.cell-border-end {
418
+ z-index: 3;
419
+ }
420
+
421
+ &.next-cell-border-left {
422
+ &::before {
423
+ border-inline-start: 1px solid $border-selected-color;
424
+ }
425
+ }
426
+
427
+
428
+ &.next-cell-paste-border-left {
429
+ &::before {
430
+ border-inline-start: 1px dashed #949494;
431
+ }
432
+ }
433
+
434
+ &.fixed-cell-border-left {
435
+ &::before {
436
+ border-inline-start: 1px solid $border-selected-color;
437
+ }
438
+ }
439
+ &.fixed-cell-paste-border-left {
440
+ &::before {
441
+ border-inline-start: 1px dashed #949494;
442
+ }
443
+ }
444
+
445
+ }
446
+
447
+ &.#{$prefix}-table-cell-fix-left-last {
448
+
449
+ &.cell-border-end {
450
+ z-index: 3;
451
+ }
452
+
453
+ }
454
+
455
+ }
456
+
457
+
458
+ }
459
+
460
+ .#{$prefix}-table.#{$prefix}-table-ping-left {
461
+ .#{$prefix}-table-tbody .rc-ui-cell-editable{
462
+ &.cell-editable {
463
+
464
+
465
+ &.#{$prefix}-table-cell-fix-left-last {
466
+
467
+ &.cell-border-left {
468
+ border-inline-end: 1px solid $tableBorderColor;
469
+ }
470
+
471
+ }
472
+
473
+
474
+
475
+ }
476
+ }
477
+
478
+ &:not(.#{$prefix}-table.#{$prefix}-table-ping-right) {
479
+
480
+ .#{$prefix}-table-tbody .rc-ui-cell-editable {
481
+ &.cell-editable {
482
+
483
+ // //&.cell-border-end {
484
+ // // z-index: 1;
485
+ // //}
486
+
487
+ &.#{$prefix}-table-cell-fix-right {
488
+ z-index: 0;
489
+
490
+ &.cell-border-end {
491
+ z-index: 3;
492
+ }
493
+ }
494
+
495
+ }
496
+ }
497
+
498
+ }
499
+
500
+ }
501
+
502
+ .#{$prefix}-table.#{$prefix}-table-ping-right {
503
+ .#{$prefix}-table-tbody .rc-ui-cell-editable{
504
+
505
+ &.cell-editable {
506
+
507
+ &.#{$prefix}-table-cell-fix-right-first {
508
+
509
+ &.next-cell-border-left {
510
+ &::before {
511
+ border-inline-start: 1px solid $tableBorderColor;
512
+ }
513
+ }
514
+
515
+
516
+
517
+ }
518
+
519
+ &.#{$prefix}-table-cell-fix-left-last {
520
+ &.cell-border-end {
521
+ z-index: 3;
522
+ }
523
+ }
524
+
525
+ }
526
+
527
+ &.cell-border-end {
528
+ z-index: 1;
529
+ }
530
+
531
+ }
532
+
533
+ }
534
+
535
+
536
+ .#{$prefix}-table.#{$prefix}-table-small {
537
+ .#{$prefix}-table-thead > tr > th,
538
+ tfoot > tr > th,
539
+ tfoot > tr > td,
540
+ tfoot > tr > td.#{$prefix}-table-cell
541
+ {
542
+ //padding: 8px 8px;
543
+ }
544
+ }
545
+
546
+ .#{$prefix}-table.#{$prefix}-table-small {
547
+ .#{$prefix}-table-selection-column{
548
+ //padding: 8px 8px;
549
+ //padding: 6px 8px;
550
+ }
551
+ }
552
+
553
+ .ui-rc_cell-content {
554
+ //position: relative;
555
+ user-select: none;
556
+ //padding: 8px 8px;
557
+ padding: 7px 8px;
558
+ //min-height: 23px;
559
+ overflow: hidden;
560
+
561
+ .ui-rc_content {
562
+ width: 100%;
563
+ }
564
+ &:hover {
565
+ .dragging-point {
566
+ //visibility: visible;
567
+ }
568
+ }
569
+
570
+ .dragging-point {
571
+ //visibility: hidden;
572
+ width: 10px;
573
+ height: 10px;
574
+ position: absolute;
575
+ cursor: crosshair;
576
+ right: 0;
577
+ bottom: 0;
578
+ //background: red;
579
+
580
+ .dot-point {
581
+ position: absolute;
582
+ width: 8px;
583
+ height: 8px;
584
+ border-radius: 6px;
585
+ background-color: $border-selected-color;
586
+ bottom: -4px;
587
+ right: -4px;
588
+ }
589
+
590
+ }
591
+ }
592
+
593
+ .ui-rc_cell-content.selected {
594
+ background-color: $cell-selected-bg;
595
+ }
596
+
597
+ .ui-rc_cell-content--index {
598
+ &.focus {
599
+ background-color: $cell-index-focus-bg;
600
+ //color: #fff;
601
+ //font-weight: 500;
602
+ }
603
+ &.selected {
604
+ background-color: $cell-index-selected-bg;
605
+ color: #fff;
606
+ //font-weight: 500;
607
+ }
608
+ }
609
+
610
+ .#{$prefix}-table-tbody {
611
+
612
+ .#{$prefix}-table-row {
613
+ &.#{$prefix}-table-row-selected {
614
+ >.#{$prefix}-table-cell {
615
+ background: #FEF2EF;
616
+ }
617
+ }
618
+ >.#{$prefix}-table-cell {
619
+ &.#{$prefix}-table-cell-row-hover {
620
+ background: #FBDED6;
621
+ }
622
+ }
623
+
624
+ .#{$prefix}-table-cell {
625
+
626
+ .#{$prefix}-table-row-indent {
627
+ position: absolute;
628
+ @for $i from 1 through 10 {
629
+ &.indent-level-#{$i} {
630
+ padding-left: $i * 25px;;
631
+ }
632
+ }
633
+ }
634
+
635
+ @for $i from 0 through 10 {
636
+ &:has(.indent-level-#{$i}) {
637
+
638
+ .#{$prefix}-table-row-expand-icon {
639
+ position: absolute;
640
+ //.ui-rc_content {
641
+ //padding-left: $i * 10px;
642
+ //}
643
+ }
644
+
645
+ .ui-rc_cell-content {
646
+ padding-left: $i * 25px + 8px;
647
+ }
648
+
649
+ }
650
+ }
651
+
652
+ @for $i from 0 through 10 {
653
+ &:has(.indent-level-#{$i}) {
654
+
655
+ .#{$prefix}-table-row-expand-icon {
656
+ position: absolute;
657
+ left: $i * 25px + 8px !important;
658
+ }
659
+
660
+ .ui-rc_cell-content {
661
+ padding-left: ($i + 1)* 25px + 8px;
662
+ }
663
+
664
+ }
665
+ }
666
+ }
667
+ }
668
+
669
+
670
+ .#{$prefix}-table-cell{
671
+
672
+ &.#{$prefix}-table-cell-ellipsis {
673
+ .ui-rc_cell-content {
674
+
675
+ .ui-rc_content {
676
+ text-overflow: ellipsis;
677
+ text-decoration: none;
678
+ transition: 0.3s;
679
+ white-space: nowrap;
680
+ overflow: hidden;
681
+ }
682
+ }
683
+ }
684
+
685
+ &.cell-editing {
686
+ //padding: 0 !important;
687
+ &:focus-visible {
688
+ outline: none;
689
+ }
690
+ .ant-form-item ,
691
+ .ant-row.ant-form-item-row,
692
+ .ant-col.ant-form-item-control,
693
+ .ant-form-item-control-input,
694
+ .ant-form-item-control-input-content,
695
+ .ant-input{
696
+ height: 100%;
697
+ &:focus-visible {
698
+ outline: none;
699
+ }
700
+ }
701
+
702
+ .#{$prefix}-checkbox-wrapper {
703
+ .#{$prefix}-checkbox {
704
+ background-color: red;
705
+ }
706
+ .#{$prefix}-checkbox-input {
707
+ &:focus-visible {
708
+ outline: none;
709
+ }
710
+ }
711
+ }
712
+
713
+
714
+ .ant-input, .ant-picker{
715
+ border-radius: 0;
716
+ }
717
+
718
+ // color picker
719
+
720
+ .ant-color-picker-trigger{
721
+ height: 100%;
722
+ border-radius: 0;
723
+ .ant-color-picker-color-block {
724
+ height: 100%;
725
+ width: 100%;
726
+ }
727
+
728
+ }
729
+
730
+
731
+ // ------------ select ---------------
732
+
733
+ .#{$prefix}-table-select-single .#{$prefix}-table-select-selector,
734
+ .#{$prefix}-select-single .#{$prefix}-select-selector {
735
+
736
+ border-radius: 0;
737
+
738
+ }
739
+
740
+ .#{$prefix}-table-select-single:not(.#{$prefix}-table-select-customize-input) {
741
+ .#{$prefix}-table-select-selector {
742
+ .#{$prefix}-table-select-selection-search-input {
743
+ height: auto;
744
+ }
745
+ }
746
+ }
747
+
748
+ // ------------ select ---------------
749
+
750
+
751
+ }
752
+ &.cell-editable {
753
+ &:focus-visible {
754
+ outline: none;
755
+ }
756
+ }
757
+ .#{$prefix}-table-cell-content {
758
+ display: flex;
759
+ height: 100%;
760
+ }
761
+
762
+ .ui-rc_cell-content,
763
+ .#{$prefix}-table-cell-content{
764
+ //width: 100%;
765
+ flex: 1;
766
+ }
767
+ .ui-rc_content {
768
+ //padding: 5px 8px;
769
+ }
770
+ .ui-rc_content:has(.ant-color-picker-trigger) {
771
+ padding: 1px 8px;
772
+ }
773
+ }
774
+ }
775
+
776
+ }
777
+
778
+ }
779
+ // ---------------- Table edit end---------------
780
+
781
+
782
+ // -------------- Checkbox ----------
783
+
784
+ .#{$prefix}-checkbox-indeterminate {
785
+ &:hover {
786
+ .#{$prefix}-checkbox-inner {
787
+ border-color: $primary !important;;
788
+ }
789
+ }
790
+
791
+ .#{$prefix}-checkbox-inner {
792
+ &:after {
793
+ background-color: $primary;
794
+ }
795
+ }
796
+ }
797
+ //.#{$prefix}-checkbox-input {
798
+ // &:focus-visible {
799
+ // outline: none;
800
+ // }
801
+ //}
802
+
803
+ .#{$prefix}-checkbox .#{$prefix}-checkbox-input:focus-visible+.#{$prefix}-checkbox-inner {
804
+ outline: none;
805
+ }
806
+
807
+ .#{$prefix}-checkbox {
808
+ &.#{$prefix}-checkbox-checked {
809
+ &:hover {
810
+ .#{$prefix}-checkbox-inner {
811
+ background-color: $primary;
812
+ border-color: $primary;
813
+ }
814
+ }
815
+
816
+ .#{$prefix}-checkbox-inner {
817
+ background-color: $primary;
818
+ border-color: $primary;
819
+ }
820
+ }
821
+ }
822
+
823
+ .#{$prefix}-checkbox:not(.#{$prefix}-checkbox-disabled):hover {
824
+ .#{$prefix}-checkbox-inner {
825
+ border-color: $primary;
826
+ }
827
+ }
828
+
829
+ .#{$prefix}-checkbox-wrapper:not(.#{$prefix}-checkbox-wrapper-disabled):hover {
830
+ .#{$prefix}-checkbox-inner {
831
+ border-color: $primary;
832
+ }
833
+
834
+ .#{$prefix}-checkbox-checked:not(.#{$prefix}-checkbox-disabled) {
835
+ .#{$prefix}-checkbox-inner {
836
+ background-color: $primary;
837
+ }
838
+ }
839
+ }
840
+
841
+ // ------------ Tree ---------------
842
+
843
+ .#{$prefix}-tree {
844
+ .#{$prefix}-tree-checkbox-checked {
845
+ .#{$prefix}-tree-checkbox-inner {
846
+ background-color: $primary;
847
+ border-color: $primary;
848
+ }
849
+ }
850
+
851
+ .#{$prefix}-tree-checkbox-wrapper-checked:not(.#{$prefix}-tree-checkbox-wrapper-disabled):hover,
852
+ .#{$prefix}-tree-checkbox-checked:not(.#{$prefix}-tree-checkbox-disabled):hover {
853
+ .#{$prefix}-tree-checkbox-inner {
854
+ background-color: $primary;
855
+ }
856
+ }
857
+
858
+ .#{$prefix}-tree-checkbox-wrapper:not(.#{$prefix}-tree-checkbox-wrapper-disabled):hover,
859
+ .#{$prefix}-tree-checkbox:not(.#{$prefix}-tree-checkbox-disabled):hover {
860
+ .#{$prefix}-tree-checkbox-inner {
861
+ border-color: $primary;
862
+ }
863
+ }
864
+ }
865
+
866
+
867
+ // ------------ ant Tree ---------------
868
+
869
+ .#{$antdPrefix}-tree {
870
+ .#{$antdPrefix}-tree-checkbox-checked {
871
+ .#{$antdPrefix}-tree-checkbox-inner {
872
+ background-color: $primary;
873
+ border-color: $primary;
874
+ }
875
+ }
876
+
877
+ .#{$antdPrefix}-tree-checkbox-wrapper-checked:not(.#{$antdPrefix}-tree-checkbox-wrapper-disabled):hover,
878
+ .#{$antdPrefix}-tree-checkbox-checked:not(.#{$antdPrefix}-tree-checkbox-disabled):hover {
879
+ .#{$antdPrefix}-tree-checkbox-inner {
880
+ background-color: $primary;
881
+ }
882
+ }
883
+
884
+ .#{$antdPrefix}-tree-checkbox-wrapper:not(.#{$antdPrefix}-tree-checkbox-wrapper-disabled):hover,
885
+ .#{$antdPrefix}-tree-checkbox:not(.#{$antdPrefix}-tree-checkbox-disabled):hover {
886
+ .#{$antdPrefix}-tree-checkbox-inner {
887
+ border-color: $primary;
888
+ }
889
+ }
890
+ }
891
+
892
+
893
+ // ------------ paging ---------------
894
+
895
+ .#{$prefix}-table-wrapper .#{$prefix}-table-pagination.#{$prefix}-pagination {
896
+ margin: 0;
897
+ }
898
+
899
+ .#{$prefix}-table-wrapper {
900
+ .#{$prefix}-table {
901
+ .#{$prefix}-pagination {
902
+ &::before {
903
+ content: "";
904
+ position: absolute;
905
+ border-left: 1px solid $tableBorderColor;
906
+ height: 55px;
907
+ bottom: 0;
908
+ left: 0;
909
+ }
910
+
911
+ &::after {
912
+ content: "";
913
+ position: absolute;
914
+ border-left: 1px solid $tableBorderColor;
915
+ height: 55px;
916
+ bottom: 0;
917
+ visibility: visible;
918
+ right: 0;
919
+ }
920
+
921
+ &.top-pagination {
922
+ border: none;
923
+ padding-top: 0;
924
+ padding-bottom: 0;
925
+ .#{$prefix}-pagination-total-text {
926
+ margin-left: auto;
927
+ }
928
+ }
929
+ border-bottom: 1px solid $tableBorderColor;
930
+
931
+ }
932
+ }
933
+ }
934
+
935
+
936
+ .#{$prefix}-pagination {
937
+
938
+ .#{$prefix}-pagination-total-text {
939
+ white-space: nowrap;
940
+ }
941
+
942
+ .#{$prefix}-pagination-item-active {
943
+ border-color: $primary;
944
+
945
+ &:hover {
946
+ border-color: $primary;
947
+
948
+ a {
949
+ color: $primary;
950
+ }
951
+ }
952
+
953
+ a {
954
+ color: $primary;
955
+ }
956
+ }
957
+
958
+ .#{$prefix}-pagination-jump-prev, .#{$prefix}-pagination-jump-next {
959
+ .#{$prefix}-pagination-item-container {
960
+ .#{$prefix}-pagination-item-link-icon {
961
+ color: $primary;
962
+ }
963
+ }
964
+ }
965
+ }
966
+
967
+
968
+
969
+ //.#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-content >table >tbody>tr>td >.#{$prefix}-table-expanded-row-fixed {
970
+ // border-inline-end: 1px solid $tableBorderColor;
971
+ //}
972
+ //
973
+ //.#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-content >table >tbody>tr>td >.#{$prefix}-table-expanded-row-fixed::after {
974
+ // //border-inline-end: 1px solid $tableBorderColor;
975
+ // border-inline-end: 0 solid $tableBorderColor;
976
+ //}
977
+ //
978
+ //
979
+ //.#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered.#{$prefix}-table-small >.#{$prefix}-table-container >.#{$prefix}-table-body >table>tbody>tr>td >.#{$prefix}-table-expanded-row-fixed {
980
+ // margin-top: 0;
981
+ // margin-bottom: 0;
982
+ // border-inline-end: 1px solid $tableBorderColor;
983
+ //}
984
+ //
985
+ //.#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered.#{$prefix}-table-small >.#{$prefix}-table-container >.#{$prefix}-table-body >table>tbody>tr>td >.#{$prefix}-table-expanded-row-fixed::after {
986
+ // border-inline-end: 0 solid $tableBorderColor;
987
+ //}
988
+
989
+
990
+ .#{$prefix}-table-wrapper {
991
+ .#{$prefix}-table {
992
+ &.#{$prefix}-table-bordered {
993
+ > .#{$prefix}-table-container {
994
+ > .#{$prefix}-table-content,
995
+ > .#{$prefix}-table-header,
996
+ > .#{$prefix}-table-body,
997
+ > .#{$prefix}-table-summary {
998
+ > table > tbody > tr {
999
+ > th,
1000
+ > td {
1001
+ > .#{$prefix}-table-expanded-row-fixed::after {
1002
+ // Thêm CSS đây
1003
+ }
1004
+ }
1005
+ }
1006
+ }
1007
+ }
1008
+ }
1009
+ }
1010
+ }
1011
+
1012
+
1013
+ .#{$prefix}-table-wrapper {
1014
+ .#{$prefix}-table.#{$prefix}-table-small {
1015
+ .#{$prefix}-table-title,
1016
+ .#{$prefix}-table-footer,
1017
+ .#{$prefix}-table-cell,
1018
+ .#{$prefix}-table-thead > tr > th,
1019
+ .#{$prefix}-table-tbody > tr > th,
1020
+ .#{$prefix}-table-tbody > tr > td,
1021
+ tfoot > tr > th,
1022
+ tfoot > tr > td {
1023
+ //padding: 8px 8px;
1024
+ //font-size: 13px;
1025
+ }
1026
+ }
1027
+ }
1028
+ .#{$prefix}-table-wrapper {
1029
+ .#{$prefix}-table.#{$prefix}-table-small {
1030
+ .#{$prefix}-table-cell {
1031
+ &:has(.ant-color-picker-trigger) {
1032
+ padding: 1px 8px;
1033
+ }
1034
+ .ant-color-picker-trigger{
1035
+ width: 100%;
1036
+ min-height: 20px;
1037
+ .ant-color-picker-clear {
1038
+ height: 20px;
1039
+ }
1040
+ }
1041
+ }
1042
+ }
1043
+ }
1044
+
1045
+
1046
+
1047
+ //ui-rc-table-ping-right
1048
+
1049
+ .#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-content >table >thead>tr >.#{$prefix}-table-cell-fix-right-first::after,
1050
+ .#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-header >table >thead>tr >.#{$prefix}-table-cell-fix-right-first::after,
1051
+ .#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-body >table >thead>tr >.#{$prefix}-table-cell-fix-right-first::after,
1052
+ .#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-summary >table >thead>tr >.#{$prefix}-table-cell-fix-right-first::after,
1053
+ .#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-content >table >tbody>tr >.#{$prefix}-table-cell-fix-right-first::after,
1054
+ .#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-header >table >tbody>tr >.#{$prefix}-table-cell-fix-right-first::after,
1055
+ .#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-body >table >tbody>tr >.#{$prefix}-table-cell-fix-right-first::after,
1056
+ .#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-summary >table >tbody>tr >.#{$prefix}-table-cell-fix-right-first::after,
1057
+ .#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-content >table >tfoot>tr >.#{$prefix}-table-cell-fix-right-first::after,
1058
+ .#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-header >table >tfoot>tr >.#{$prefix}-table-cell-fix-right-first::after,
1059
+ .#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-body >table >tfoot>tr >.#{$prefix}-table-cell-fix-right-first::after,
1060
+ .#{$prefix}-table-wrapper .#{$prefix}-table.#{$prefix}-table-bordered >.#{$prefix}-table-container >.#{$prefix}-table-summary >table >tfoot>tr >.#{$prefix}-table-cell-fix-right-first::after {
1061
+ border-inline-end: 1px solid $tableBorderColor;
1062
+ }
1063
+
1064
+
1065
+ // toolbar
1066
+
1067
+ .ui-rc-toolbar-bottom {
1068
+ .be-toolbar-item {
1069
+ .toolbar-dropdown-button {
1070
+ .ant-btn.ant-btn-default.ant-btn-variant-outlined.ant-btn-compact-item.ant-btn-compact-first-item {
1071
+ border-color: #28c76f;
1072
+ }
1073
+ .ant-btn.ant-btn-default.ant-btn-variant-outlined.ant-btn-compact-item.ant-btn-compact-last-item {
1074
+ border-color: #28c76f;
1075
+ .ant-btn-icon {
1076
+ color: #28c76f;
1077
+ }
1078
+ }
1079
+ }
1080
+
1081
+ }
1082
+ }