es-grid-template 1.2.1 → 1.2.3

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