dcp-design-react 1.12.14 → 1.12.16

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.
@@ -1,503 +1,507 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2022-03-16 19:05:30
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2025-01-12 14:23:51
6
- */
7
- @import '../../style/common';
8
-
9
- .@{prefix-pivot-grid}__layout {
10
- .reset-container();
11
- width: 100%;
12
-
13
- &.col-resize {
14
- cursor: col-resize;
15
- .qm-scrollbar__view {
16
- pointer-events: none;
17
- }
18
- }
19
-
20
- // =========== 变量 ===========
21
- @header-bg-color: #d7f0ff;
22
- @border-radius: 8px;
23
- .bor-radius-left() {
24
- border-top-left-radius: @border-radius;
25
- border-bottom-left-radius: @border-radius;
26
- }
27
- .bor-radius-right() {
28
- border-top-right-radius: @border-radius;
29
- border-bottom-right-radius: @border-radius;
30
- }
31
- .bor-left-shadow() {
32
- box-shadow: -5px 0px 0 0px @--background-color-light;
33
- }
34
- .bor-right-shadow() {
35
- box-shadow: 5px 0px 0 0px @--background-color-light;
36
- }
37
- // =========== 变量 END ===========
38
-
39
- .@{qm-prefix}-scrollbar__wrap {
40
- // 调整为 flex 布局
41
- display: flex;
42
- flex-wrap: nowrap;
43
- & > div {
44
- height: fit-content;
45
- }
46
- }
47
- .header,
48
- .footer {
49
- display: flex;
50
- flex-direction: row;
51
- .fixed-left {
52
- position: sticky;
53
- left: 0;
54
- z-index: 1;
55
- display: flex;
56
- border-left: 1px solid @--border-color-secondary;
57
- border-bottom: 1px solid @--border-color-secondary;
58
- .bor-left-shadow();
59
- &,
60
- .table-cell:first-child {
61
- .bor-radius-left();
62
- }
63
- }
64
- .no-fixed {
65
- flex: 1 0;
66
- display: flex;
67
- border-bottom: 1px solid @--border-color-secondary;
68
- .bor-right-shadow();
69
- &,
70
- .table-cell:last-child {
71
- .bor-radius-right();
72
- }
73
- }
74
- }
75
- .header {
76
- position: sticky;
77
- top: 0;
78
- z-index: 2;
79
- .table-cell {
80
- position: relative;
81
- background-color: @header-bg-color !important;
82
- cursor: pointer;
83
- }
84
- .resize-bar {
85
- position: absolute;
86
- top: 0;
87
- bottom: 0;
88
- right: -3px;
89
- width: 6px;
90
- z-index: 2;
91
- cursor: col-resize;
92
- }
93
- }
94
- .body {
95
- display: flex;
96
- flex-direction: row;
97
- min-height: fit-content;
98
- }
99
- .footer {
100
- position: sticky;
101
- bottom: 0;
102
- z-index: 2;
103
- }
104
- .header,
105
- .body,
106
- .footer {
107
- .table-cell {
108
- align-self: stretch; // 子元素高度和父元素一致
109
- display: inline-flex;
110
- align-items: center;
111
- border-top: 1px solid @--border-color-secondary;
112
- border-right: 1px solid @--border-color-secondary;
113
- background-color: #fff;
114
- &.selection-column {
115
- justify-content: center;
116
- border-right-color: transparent;
117
- cursor: default;
118
- }
119
- .action {
120
- display: inline-flex;
121
- align-items: center;
122
- justify-content: center;
123
- .drag-icon,
124
- .expand-icon {
125
- display: inline-flex;
126
- align-items: center;
127
- justify-content: center;
128
- width: 20px;
129
- height: 20px;
130
- color: @--text-color-placeholder;
131
- cursor: pointer;
132
- visibility: hidden;
133
- }
134
- .drag-icon {
135
- cursor: grab;
136
- }
137
- .expand-icon:hover {
138
- color: @--primary-color;
139
- }
140
- .middle {
141
- text-align: center;
142
- width: 16px;
143
- margin: 0 2px;
144
- .order {
145
- display: inline-block;
146
- }
147
- .checkbox {
148
- display: none;
149
- }
150
- }
151
- }
152
- &.col--center {
153
- text-align: center;
154
- justify-content: center;
155
- }
156
- &.col--right {
157
- text-align: right;
158
- justify-content: flex-end;
159
- }
160
- &.col--fix-left {
161
- position: sticky;
162
- z-index: 1;
163
- }
164
- &.col--checked {
165
- background-color: @--primary-1;
166
- }
167
- &.active {
168
- box-shadow: inset 0 0 0 2px @--primary-color;
169
- background-color: rgba(255, 235, 140, 1);
170
- }
171
- .cell {
172
- .text-overflow-cut();
173
- padding: 0 @--padding-sm;
174
- }
175
- }
176
- .label-cell,
177
- .table-cell {
178
- &:hover {
179
- .count-select {
180
- visibility: visible;
181
- }
182
- }
183
- }
184
- .count-select {
185
- .text-overflow-cut();
186
- display: inline-flex;
187
- align-items: center;
188
- justify-content: flex-end;
189
- height: 100%;
190
- width: 100%;
191
- padding: 0 4px;
192
- color: @--text-color-placeholder;
193
- cursor: pointer;
194
- visibility: hidden;
195
- &:hover,
196
- &.ant-dropdown-open {
197
- visibility: visible;
198
- background-color: @--background-color-light;
199
- }
200
- &.show {
201
- visibility: visible;
202
- }
203
- .icon {
204
- margin-left: 4px;
205
- }
206
- }
207
- }
208
- .resize-line {
209
- position: absolute;
210
- left: -2px;
211
- top: 0;
212
- width: 2px;
213
- height: 100%;
214
- background-color: @--primary-color;
215
- z-index: 2;
216
- }
217
- .fixed-line {
218
- position: absolute;
219
- left: -1px;
220
- top: 0;
221
- width: 0;
222
- height: 100%;
223
- border-left: 1px solid @--border-color-base;
224
- z-index: 2;
225
- pointer-events: none;
226
- &::after {
227
- content: '';
228
- position: absolute;
229
- top: 0;
230
- right: 0;
231
- bottom: -1px;
232
- width: 20px;
233
- transform: translateX(100%);
234
- transition: box-shadow 0.3s, -webkit-box-shadow 0.3s;
235
- pointer-events: none;
236
- }
237
- &.leave {
238
- &::after {
239
- box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, 0.15);
240
- }
241
- }
242
- &.active {
243
- border-left: 1px solid @--primary-color;
244
- border-right: 1px solid @--primary-color;
245
- }
246
- }
247
- .fixed-bar {
248
- position: absolute;
249
- top: 0;
250
- left: -1px;
251
- width: 6px;
252
- height: 100%;
253
- margin-left: -2px;
254
- background-image: none;
255
- background-repeat: no-repeat;
256
- z-index: 1;
257
- cursor: col-resize;
258
- &:hover,
259
- &.active {
260
- background-image: linear-gradient(to right, transparent 2px, @--border-color-base 2px 4px, transparent 4px 6px);
261
- z-index: 2;
262
- .thumb {
263
- opacity: 1;
264
- }
265
- }
266
- .thumb {
267
- position: absolute;
268
- top: 0;
269
- left: 0;
270
- width: 100%;
271
- height: 32px;
272
- border-radius: 6px;
273
- background-color: @--primary-color;
274
- opacity: 0;
275
- pointer-events: none;
276
- }
277
- }
278
- .content-empty {
279
- position: absolute;
280
- width: 100%;
281
- margin: 20px 0;
282
- }
283
- // 左侧面板
284
- .left-panel {
285
- position: sticky;
286
- left: 0;
287
- z-index: 1;
288
- .group-label {
289
- border-right: 0 !important;
290
- .bor-radius-left();
291
- &.level0 {
292
- .bor-left-shadow();
293
- }
294
- }
295
- .row-item {
296
- &:nth-of-type(1) {
297
- border-top-left-radius: @border-radius;
298
- .bor-left-shadow();
299
- .table-cell:first-child {
300
- border-top-left-radius: @border-radius;
301
- }
302
- }
303
- &.last {
304
- border-bottom-left-radius: @border-radius;
305
- .table-cell:first-child {
306
- border-bottom-left-radius: @border-radius;
307
- }
308
- }
309
- &.is-leaf {
310
- .selection-column {
311
- border-top-color: transparent;
312
- }
313
- .cell--indent {
314
- display: flex;
315
- background-color: #fff;
316
- .line {
317
- flex: 1 0;
318
- position: relative;
319
- &::before {
320
- content: '';
321
- position: absolute;
322
- left: 10px;
323
- height: 100%;
324
- margin-top: -100%;
325
- border-left: 1px dashed rgba(0, 0, 0, 0.175);
326
- }
327
- }
328
- }
329
- }
330
- }
331
- .no-group {
332
- .row-item:last-child {
333
- .bor-left-shadow();
334
- }
335
- }
336
- }
337
- .main-panel {
338
- flex: 1 0;
339
- z-index: 0;
340
- .group-label,
341
- .row-item {
342
- border-left: 0 !important;
343
- }
344
- .group-label {
345
- .bor-radius-right();
346
- }
347
- .row-item {
348
- &:nth-of-type(1) {
349
- border-top-right-radius: @border-radius;
350
- .table-cell:last-child {
351
- border-top-right-radius: @border-radius;
352
- }
353
- }
354
- &.last {
355
- border-bottom-right-radius: @border-radius;
356
- .table-cell:last-child {
357
- border-bottom-right-radius: @border-radius;
358
- }
359
- }
360
- }
361
- }
362
- .container {
363
- position: relative;
364
- left: 0;
365
- top: 0;
366
- &.no-group {
367
- .row-item:last-child {
368
- .table-cell {
369
- border-bottom: 1px solid @--border-color-secondary;
370
- }
371
- .cell--indent {
372
- height: fill-available;
373
- height: -webkit-fill-available;
374
- }
375
- }
376
- }
377
- .group-label {
378
- position: absolute;
379
- box-sizing: content-box;
380
- border: 1px solid @--border-color-secondary;
381
- background-color: #fff;
382
- overflow: hidden;
383
- .label-row {
384
- display: flex;
385
- align-items: center;
386
- }
387
- .label-cell {
388
- align-self: stretch;
389
- display: inline-flex;
390
- align-items: center;
391
- &.expandable-column {
392
- justify-content: center;
393
- .button-icon {
394
- & > .anticon {
395
- transition: transform 0.3s ease;
396
- }
397
- &.expand > .anticon {
398
- transform: rotate(90deg);
399
- }
400
- }
401
- }
402
- &.col--fix-left {
403
- position: sticky;
404
- z-index: 1;
405
- }
406
- .title {
407
- flex-shrink: 0;
408
- margin-left: 8px;
409
- margin-right: 20px;
410
- font-weight: 600;
411
- .empty {
412
- color: @--text-color-placeholder;
413
- font-weight: 400;
414
- }
415
- }
416
- }
417
- }
418
- .row-item {
419
- position: absolute;
420
- border-left: 1px solid @--border-color-secondary;
421
- .table-row {
422
- display: flex;
423
- align-items: center;
424
- height: inherit;
425
- &.row--hover,
426
- &.row--selection {
427
- .table-cell,
428
- .cell--indent {
429
- background-color: @--background-color-light;
430
- .middle&:has(.checkbox) {
431
- .order {
432
- display: none;
433
- }
434
- .checkbox {
435
- display: inline-flex;
436
- }
437
- }
438
- }
439
- }
440
- &.row--highlight {
441
- .table-cell,
442
- .cell--indent {
443
- background-color: @--primary-1;
444
- }
445
- }
446
- &.row--hover {
447
- .table-cell {
448
- .drag-icon,
449
- .expand-icon {
450
- visibility: visible;
451
- }
452
- }
453
- }
454
- .cell--expand {
455
- display: inline-flex;
456
- align-items: center;
457
- justify-content: center;
458
- z-index: 1;
459
- padding: 3px;
460
- color: @--text-color-placeholder;
461
- border-radius: @--border-radius-lg;
462
- background-color: #fff;
463
- user-select: none;
464
- cursor: pointer;
465
- .icon {
466
- transition: transform 0.3s ease;
467
- }
468
- &.fold {
469
- .icon {
470
- transform: rotate(-90deg);
471
- }
472
- }
473
- &.disabled {
474
- color: @--disabled-color;
475
- cursor: not-allowed;
476
- }
477
- }
478
- }
479
- }
480
- }
481
- // size
482
- &.small {
483
- .label-row,
484
- .table-cell,
485
- .cell--indent {
486
- height: 26px;
487
- }
488
- }
489
- &.middle {
490
- .label-row,
491
- .table-cell,
492
- .cell--indent {
493
- height: 34px;
494
- }
495
- }
496
- &.large {
497
- .label-row,
498
- .table-cell,
499
- .cell--indent {
500
- height: 42px;
501
- }
502
- }
503
- }
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2022-03-16 19:05:30
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2025-01-12 14:23:51
6
+ */
7
+ @import '../../style/common';
8
+
9
+ .@{prefix-pivot-grid}__layout {
10
+ .reset-container();
11
+ width: 100%;
12
+
13
+ &.col-resize {
14
+ cursor: col-resize;
15
+ .qm-scrollbar__view {
16
+ pointer-events: none;
17
+ }
18
+ }
19
+
20
+ // =========== 变量 ===========
21
+ @header-bg-color: #d7f0ff;
22
+ @border-radius: 8px;
23
+ .bor-radius-left() {
24
+ border-top-left-radius: @border-radius;
25
+ border-bottom-left-radius: @border-radius;
26
+ }
27
+ .bor-radius-right() {
28
+ border-top-right-radius: @border-radius;
29
+ border-bottom-right-radius: @border-radius;
30
+ }
31
+ .bor-left-shadow() {
32
+ box-shadow: -5px 0px 0 0px @--background-color-light;
33
+ }
34
+ .bor-right-shadow() {
35
+ box-shadow: 5px 0px 0 0px @--background-color-light;
36
+ }
37
+ // =========== 变量 END ===========
38
+
39
+ .@{qm-prefix}-scrollbar__wrap {
40
+ // 调整为 flex 布局
41
+ display: flex;
42
+ flex-wrap: nowrap;
43
+ & > div {
44
+ height: fit-content;
45
+ }
46
+ }
47
+ .header,
48
+ .footer {
49
+ display: flex;
50
+ flex-direction: row;
51
+ .fixed-left {
52
+ position: sticky;
53
+ left: 0;
54
+ z-index: 1;
55
+ display: flex;
56
+ border-left: 1px solid @--border-color-secondary;
57
+ border-bottom: 1px solid @--border-color-secondary;
58
+ .bor-left-shadow();
59
+ &,
60
+ .table-cell:first-child {
61
+ .bor-radius-left();
62
+ }
63
+ }
64
+ .no-fixed {
65
+ flex: 1 0;
66
+ display: flex;
67
+ border-bottom: 1px solid @--border-color-secondary;
68
+ .bor-right-shadow();
69
+ &,
70
+ .table-cell:last-child {
71
+ .bor-radius-right();
72
+ }
73
+ }
74
+ }
75
+ .header {
76
+ position: sticky;
77
+ top: 0;
78
+ z-index: 2;
79
+ .table-cell {
80
+ position: relative;
81
+ background-color: @header-bg-color !important;
82
+ cursor: pointer;
83
+ }
84
+ .resize-bar {
85
+ position: absolute;
86
+ top: 0;
87
+ bottom: 0;
88
+ right: -3px;
89
+ width: 6px;
90
+ z-index: 2;
91
+ cursor: col-resize;
92
+ }
93
+ }
94
+ .body {
95
+ display: flex;
96
+ flex-direction: row;
97
+ min-height: fit-content;
98
+ }
99
+ .footer {
100
+ position: sticky;
101
+ bottom: 0;
102
+ z-index: 2;
103
+ }
104
+ .header,
105
+ .body,
106
+ .footer {
107
+ .table-cell {
108
+ align-self: stretch; // 子元素高度和父元素一致
109
+ display: inline-flex;
110
+ align-items: center;
111
+ border-top: 1px solid @--border-color-secondary;
112
+ border-right: 1px solid @--border-color-secondary;
113
+ background-color: #fff;
114
+ &.selection-column {
115
+ justify-content: center;
116
+ border-right-color: transparent;
117
+ cursor: default;
118
+ }
119
+ .action {
120
+ display: inline-flex;
121
+ align-items: center;
122
+ justify-content: center;
123
+ .drag-icon,
124
+ .expand-icon {
125
+ display: inline-flex;
126
+ align-items: center;
127
+ justify-content: center;
128
+ width: 20px;
129
+ height: 20px;
130
+ color: @--text-color-placeholder;
131
+ cursor: pointer;
132
+ visibility: hidden;
133
+ }
134
+ .drag-icon {
135
+ cursor: grab;
136
+ }
137
+ .expand-icon:hover {
138
+ color: @--primary-color;
139
+ }
140
+ .middle {
141
+ text-align: center;
142
+ width: 16px;
143
+ margin: 0 2px;
144
+ .order {
145
+ display: inline-block;
146
+ }
147
+ .checkbox {
148
+ display: none;
149
+ }
150
+ }
151
+ }
152
+ &.col--center {
153
+ text-align: center;
154
+ justify-content: center;
155
+ }
156
+ &.col--right {
157
+ text-align: right;
158
+ justify-content: flex-end;
159
+ }
160
+ &.col--fix-left {
161
+ position: sticky;
162
+ z-index: 1;
163
+ }
164
+ &.col--checked {
165
+ background-color: @--primary-1;
166
+ }
167
+ &.active {
168
+ box-shadow: inset 0 0 0 2px @--primary-color;
169
+ background-color: rgba(255, 235, 140, 1);
170
+ }
171
+ .cell {
172
+ .text-overflow-cut();
173
+ padding: 0 @--padding-sm;
174
+ }
175
+ }
176
+ .label-cell,
177
+ .table-cell {
178
+ &:hover {
179
+ .count-select {
180
+ visibility: visible;
181
+ }
182
+ }
183
+ }
184
+ .count-select {
185
+ .text-overflow-cut();
186
+ display: inline-flex;
187
+ align-items: center;
188
+ justify-content: flex-end;
189
+ height: 100%;
190
+ width: 100%;
191
+ padding: 0 4px;
192
+ color: @--text-color-placeholder;
193
+ cursor: pointer;
194
+ visibility: hidden;
195
+ &:hover,
196
+ &.ant-dropdown-open {
197
+ visibility: visible;
198
+ background-color: @--background-color-light;
199
+ }
200
+ &.show {
201
+ visibility: visible;
202
+ }
203
+ .icon {
204
+ margin-left: 4px;
205
+ }
206
+ }
207
+ }
208
+ .resize-line {
209
+ position: absolute;
210
+ left: -2px;
211
+ top: 0;
212
+ width: 2px;
213
+ height: 100%;
214
+ background-color: @--primary-color;
215
+ z-index: 2;
216
+ }
217
+ .fixed-line {
218
+ position: absolute;
219
+ left: -1px;
220
+ top: 0;
221
+ width: 0;
222
+ height: 100%;
223
+ border-left: 1px solid @--border-color-base;
224
+ z-index: 2;
225
+ pointer-events: none;
226
+ &::after {
227
+ content: '';
228
+ position: absolute;
229
+ top: 0;
230
+ right: 0;
231
+ bottom: -1px;
232
+ width: 20px;
233
+ transform: translateX(100%);
234
+ transition: box-shadow 0.3s, -webkit-box-shadow 0.3s;
235
+ pointer-events: none;
236
+ }
237
+ &.leave {
238
+ &::after {
239
+ box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, 0.15);
240
+ }
241
+ }
242
+ &.active {
243
+ border-left: 1px solid @--primary-color;
244
+ border-right: 1px solid @--primary-color;
245
+ }
246
+ }
247
+ .fixed-bar {
248
+ position: absolute;
249
+ top: 0;
250
+ left: -1px;
251
+ width: 6px;
252
+ height: 100%;
253
+ margin-left: -2px;
254
+ background-image: none;
255
+ background-repeat: no-repeat;
256
+ z-index: 1;
257
+ cursor: col-resize;
258
+ &:hover,
259
+ &.active {
260
+ background-image: linear-gradient(to right, transparent 2px, @--border-color-base 2px 4px, transparent 4px 6px);
261
+ z-index: 2;
262
+ .thumb {
263
+ opacity: 1;
264
+ }
265
+ }
266
+ .thumb {
267
+ position: absolute;
268
+ top: 0;
269
+ left: 0;
270
+ width: 100%;
271
+ height: 32px;
272
+ border-radius: 6px;
273
+ background-color: @--primary-color;
274
+ opacity: 0;
275
+ pointer-events: none;
276
+ }
277
+ }
278
+ .content-empty {
279
+ position: absolute;
280
+ width: 100%;
281
+ margin: 20px 0;
282
+ }
283
+ // 左侧面板
284
+ .left-panel {
285
+ position: sticky;
286
+ left: 0;
287
+ z-index: 1;
288
+ .group-label {
289
+ border-right: 0 !important;
290
+ .bor-radius-left();
291
+ &.level0 {
292
+ .bor-left-shadow();
293
+ }
294
+ }
295
+ .row-item {
296
+ &:nth-of-type(1) {
297
+ border-top-left-radius: @border-radius;
298
+ .bor-left-shadow();
299
+ .table-cell:first-child {
300
+ border-top-left-radius: @border-radius;
301
+ }
302
+ }
303
+ &.last {
304
+ border-bottom-left-radius: @border-radius;
305
+ .table-cell:first-child {
306
+ border-bottom-left-radius: @border-radius;
307
+ }
308
+ }
309
+ &.is-leaf {
310
+ .selection-column {
311
+ border-top-color: transparent;
312
+ }
313
+ .cell--indent {
314
+ display: flex;
315
+ background-color: #fff;
316
+ .line {
317
+ flex: 1 0;
318
+ position: relative;
319
+ &::before {
320
+ content: '';
321
+ position: absolute;
322
+ left: 10px;
323
+ height: 100%;
324
+ margin-top: -100%;
325
+ border-left: 1px dashed rgba(0, 0, 0, 0.175);
326
+ }
327
+ }
328
+ }
329
+ }
330
+ }
331
+ .no-group {
332
+ .row-item:last-child {
333
+ .bor-left-shadow();
334
+ }
335
+ }
336
+ }
337
+ .main-panel {
338
+ flex: 1 0;
339
+ z-index: 0;
340
+ .group-label,
341
+ .row-item {
342
+ border-left: 0 !important;
343
+ }
344
+ .group-label {
345
+ .bor-radius-right();
346
+ }
347
+ .row-item {
348
+ &:nth-of-type(1) {
349
+ border-top-right-radius: @border-radius;
350
+ .table-cell:last-child {
351
+ border-top-right-radius: @border-radius;
352
+ }
353
+ }
354
+ &.last {
355
+ border-bottom-right-radius: @border-radius;
356
+ .table-cell:last-child {
357
+ border-bottom-right-radius: @border-radius;
358
+ }
359
+ }
360
+ }
361
+ }
362
+ .container {
363
+ position: relative;
364
+ left: 0;
365
+ top: 0;
366
+ &.no-group {
367
+ .row-item:last-child {
368
+ .table-cell {
369
+ border-bottom: 1px solid @--border-color-secondary;
370
+ }
371
+ .cell--indent {
372
+ height: fill-available;
373
+ height: -webkit-fill-available;
374
+ }
375
+ }
376
+ }
377
+ .group-label {
378
+ position: absolute;
379
+ box-sizing: content-box;
380
+ border: 1px solid @--border-color-secondary;
381
+ background-color: #fff;
382
+ overflow: hidden;
383
+ .label-row {
384
+ display: flex;
385
+ align-items: center;
386
+ }
387
+ .label-cell {
388
+ align-self: stretch;
389
+ display: inline-flex;
390
+ align-items: center;
391
+ &.expandable-column {
392
+ justify-content: center;
393
+ .button-icon {
394
+ & > .anticon {
395
+ transition: transform 0.3s ease;
396
+ }
397
+ &.expand > .anticon {
398
+ transform: rotate(90deg);
399
+ }
400
+ }
401
+ }
402
+ &.col--fix-left {
403
+ position: sticky;
404
+ z-index: 1;
405
+ }
406
+ .title {
407
+ flex: 1 0;
408
+ margin-left: 8px;
409
+ font-weight: 600;
410
+ .text-overflow-cut();
411
+ & + .count-select {
412
+ width: fit-content;
413
+ padding-left: @--padding-md;
414
+ }
415
+ &.empty {
416
+ color: @--text-color-placeholder;
417
+ font-weight: 400;
418
+ }
419
+ }
420
+ }
421
+ }
422
+ .row-item {
423
+ position: absolute;
424
+ border-left: 1px solid @--border-color-secondary;
425
+ .table-row {
426
+ display: flex;
427
+ align-items: center;
428
+ height: inherit;
429
+ &.row--hover,
430
+ &.row--selection {
431
+ .table-cell,
432
+ .cell--indent {
433
+ background-color: @--background-color-light;
434
+ .middle&:has(.checkbox) {
435
+ .order {
436
+ display: none;
437
+ }
438
+ .checkbox {
439
+ display: inline-flex;
440
+ }
441
+ }
442
+ }
443
+ }
444
+ &.row--highlight {
445
+ .table-cell,
446
+ .cell--indent {
447
+ background-color: @--primary-1;
448
+ }
449
+ }
450
+ &.row--hover {
451
+ .table-cell {
452
+ .drag-icon,
453
+ .expand-icon {
454
+ visibility: visible;
455
+ }
456
+ }
457
+ }
458
+ .cell--expand {
459
+ display: inline-flex;
460
+ align-items: center;
461
+ justify-content: center;
462
+ z-index: 1;
463
+ padding: 3px;
464
+ color: @--text-color-placeholder;
465
+ border-radius: @--border-radius-lg;
466
+ background-color: #fff;
467
+ user-select: none;
468
+ cursor: pointer;
469
+ .icon {
470
+ transition: transform 0.3s ease;
471
+ }
472
+ &.fold {
473
+ .icon {
474
+ transform: rotate(-90deg);
475
+ }
476
+ }
477
+ &.disabled {
478
+ color: @--disabled-color;
479
+ cursor: not-allowed;
480
+ }
481
+ }
482
+ }
483
+ }
484
+ }
485
+ // size
486
+ &.small {
487
+ .label-row,
488
+ .table-cell,
489
+ .cell--indent {
490
+ height: 26px;
491
+ }
492
+ }
493
+ &.middle {
494
+ .label-row,
495
+ .table-cell,
496
+ .cell--indent {
497
+ height: 34px;
498
+ }
499
+ }
500
+ &.large {
501
+ .label-row,
502
+ .table-cell,
503
+ .cell--indent {
504
+ height: 42px;
505
+ }
506
+ }
507
+ }