ep-craft 0.1.2 → 0.1.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.
Files changed (154) hide show
  1. package/dist/components/button/EpButton.vue.d.ts +4 -4
  2. package/dist/components/button/EpButton.vue.js +19 -19
  3. package/dist/components/button/button.d.ts +2 -2
  4. package/dist/components/button/button.js +1 -1
  5. package/dist/components/button/index.d.ts +2 -1
  6. package/dist/components/button/index.js +4 -3
  7. package/dist/index.css +2 -2
  8. package/dist/resolver.js +9 -12
  9. package/package.json +4 -2
  10. package/theme-chalk/src/affix.scss +7 -0
  11. package/theme-chalk/src/alert.scss +115 -0
  12. package/theme-chalk/src/anchor-link.scss +45 -0
  13. package/theme-chalk/src/anchor.scss +93 -0
  14. package/theme-chalk/src/aside.scss +8 -0
  15. package/theme-chalk/src/autocomplete.scss +95 -0
  16. package/theme-chalk/src/avatar-group.scss +25 -0
  17. package/theme-chalk/src/avatar.scss +55 -0
  18. package/theme-chalk/src/backtop.scss +29 -0
  19. package/theme-chalk/src/badge.scss +58 -0
  20. package/theme-chalk/src/base.scss +3 -0
  21. package/theme-chalk/src/breadcrumb-item.scss +58 -0
  22. package/theme-chalk/src/breadcrumb.scss +9 -0
  23. package/theme-chalk/src/button-group.scss +133 -0
  24. package/theme-chalk/src/button.scss +325 -0
  25. package/theme-chalk/src/calendar.scss +94 -0
  26. package/theme-chalk/src/card.scss +49 -0
  27. package/theme-chalk/src/carousel-item.scss +58 -0
  28. package/theme-chalk/src/carousel.scss +195 -0
  29. package/theme-chalk/src/cascader-panel.scss +150 -0
  30. package/theme-chalk/src/cascader.scss +289 -0
  31. package/theme-chalk/src/check-tag.scss +60 -0
  32. package/theme-chalk/src/checkbox-button.scss +142 -0
  33. package/theme-chalk/src/checkbox-group.scss +7 -0
  34. package/theme-chalk/src/checkbox.scss +300 -0
  35. package/theme-chalk/src/col.scss +56 -0
  36. package/theme-chalk/src/collapse-item.scss +72 -0
  37. package/theme-chalk/src/collapse-transition.scss +1 -0
  38. package/theme-chalk/src/collapse.scss +29 -0
  39. package/theme-chalk/src/color/index.scss +20 -0
  40. package/theme-chalk/src/color-picker-panel.scss +294 -0
  41. package/theme-chalk/src/color-picker.scss +165 -0
  42. package/theme-chalk/src/common/popup.scss +47 -0
  43. package/theme-chalk/src/common/transition.scss +125 -0
  44. package/theme-chalk/src/common/var.scss +1730 -0
  45. package/theme-chalk/src/config-provider.scss +0 -0
  46. package/theme-chalk/src/container.scss +14 -0
  47. package/theme-chalk/src/dark/css-vars.scss +45 -0
  48. package/theme-chalk/src/dark/var.scss +224 -0
  49. package/theme-chalk/src/date-picker/date-picker.scss +121 -0
  50. package/theme-chalk/src/date-picker/date-range-picker.scss +165 -0
  51. package/theme-chalk/src/date-picker/date-table.scss +164 -0
  52. package/theme-chalk/src/date-picker/month-table.scss +112 -0
  53. package/theme-chalk/src/date-picker/picker-panel.scss +152 -0
  54. package/theme-chalk/src/date-picker/picker.scss +217 -0
  55. package/theme-chalk/src/date-picker/time-picker.scss +90 -0
  56. package/theme-chalk/src/date-picker/time-range-picker.scss +33 -0
  57. package/theme-chalk/src/date-picker/time-spinner.scss +115 -0
  58. package/theme-chalk/src/date-picker/utils.scss +14 -0
  59. package/theme-chalk/src/date-picker/year-table.scss +108 -0
  60. package/theme-chalk/src/date-picker-panel.scss +34 -0
  61. package/theme-chalk/src/date-picker.scss +0 -0
  62. package/theme-chalk/src/descriptions-item.scss +77 -0
  63. package/theme-chalk/src/descriptions.scss +151 -0
  64. package/theme-chalk/src/dialog.scss +207 -0
  65. package/theme-chalk/src/display.scss +12 -0
  66. package/theme-chalk/src/divider.scss +48 -0
  67. package/theme-chalk/src/drawer.scss +251 -0
  68. package/theme-chalk/src/dropdown-item.scss +0 -0
  69. package/theme-chalk/src/dropdown-menu.scss +0 -0
  70. package/theme-chalk/src/dropdown.scss +208 -0
  71. package/theme-chalk/src/empty.scss +49 -0
  72. package/theme-chalk/src/footer.scss +12 -0
  73. package/theme-chalk/src/form-item.scss +246 -0
  74. package/theme-chalk/src/form.scss +28 -0
  75. package/theme-chalk/src/header.scss +12 -0
  76. package/theme-chalk/src/icon.scss +41 -0
  77. package/theme-chalk/src/image-viewer.scss +161 -0
  78. package/theme-chalk/src/image.scss +49 -0
  79. package/theme-chalk/src/index.scss +116 -0
  80. package/theme-chalk/src/infinite-scroll.scss +0 -0
  81. package/theme-chalk/src/input-number.scss +192 -0
  82. package/theme-chalk/src/input-otp.scss +191 -0
  83. package/theme-chalk/src/input-tag.scss +249 -0
  84. package/theme-chalk/src/input.scss +541 -0
  85. package/theme-chalk/src/link.scss +90 -0
  86. package/theme-chalk/src/loading.scss +104 -0
  87. package/theme-chalk/src/main.scss +14 -0
  88. package/theme-chalk/src/mention.scss +88 -0
  89. package/theme-chalk/src/menu-item-group.scss +0 -0
  90. package/theme-chalk/src/menu-item.scss +0 -0
  91. package/theme-chalk/src/menu.scss +376 -0
  92. package/theme-chalk/src/message-box.scss +220 -0
  93. package/theme-chalk/src/message.scss +123 -0
  94. package/theme-chalk/src/mixins/_button.scss +240 -0
  95. package/theme-chalk/src/mixins/_col.scss +41 -0
  96. package/theme-chalk/src/mixins/_var.scss +67 -0
  97. package/theme-chalk/src/mixins/config.scss +5 -0
  98. package/theme-chalk/src/mixins/function.scss +99 -0
  99. package/theme-chalk/src/mixins/mixins.scss +257 -0
  100. package/theme-chalk/src/mixins/utils.scss +39 -0
  101. package/theme-chalk/src/notification.scss +109 -0
  102. package/theme-chalk/src/option-group.scss +33 -0
  103. package/theme-chalk/src/option.scss +71 -0
  104. package/theme-chalk/src/overlay.scss +17 -0
  105. package/theme-chalk/src/page-header.scss +60 -0
  106. package/theme-chalk/src/pagination.scss +235 -0
  107. package/theme-chalk/src/popconfirm.scss +17 -0
  108. package/theme-chalk/src/popover.scss +61 -0
  109. package/theme-chalk/src/popper.scss +117 -0
  110. package/theme-chalk/src/progress.scss +179 -0
  111. package/theme-chalk/src/radio-button.scss +165 -0
  112. package/theme-chalk/src/radio-group.scss +9 -0
  113. package/theme-chalk/src/radio.scss +220 -0
  114. package/theme-chalk/src/rate.scss +121 -0
  115. package/theme-chalk/src/reset.scss +99 -0
  116. package/theme-chalk/src/result.scss +57 -0
  117. package/theme-chalk/src/row.scss +34 -0
  118. package/theme-chalk/src/scrollbar.scss +97 -0
  119. package/theme-chalk/src/segmented.scss +186 -0
  120. package/theme-chalk/src/select-dropdown-v2.scss +1 -0
  121. package/theme-chalk/src/select-dropdown.scss +57 -0
  122. package/theme-chalk/src/select-v2.scss +4 -0
  123. package/theme-chalk/src/select.scss +269 -0
  124. package/theme-chalk/src/skeleton-item.scss +83 -0
  125. package/theme-chalk/src/skeleton.scss +44 -0
  126. package/theme-chalk/src/slider.scss +212 -0
  127. package/theme-chalk/src/space.scss +20 -0
  128. package/theme-chalk/src/spinner.scss +43 -0
  129. package/theme-chalk/src/splitter-panel.scss +8 -0
  130. package/theme-chalk/src/splitter.scss +148 -0
  131. package/theme-chalk/src/statistic.scss +35 -0
  132. package/theme-chalk/src/step.scss +320 -0
  133. package/theme-chalk/src/steps.scss +22 -0
  134. package/theme-chalk/src/sub-menu.scss +0 -0
  135. package/theme-chalk/src/switch.scss +294 -0
  136. package/theme-chalk/src/tab-pane.scss +0 -0
  137. package/theme-chalk/src/table-column.scss +100 -0
  138. package/theme-chalk/src/table-v2.scss +239 -0
  139. package/theme-chalk/src/table.scss +698 -0
  140. package/theme-chalk/src/tabs.scss +699 -0
  141. package/theme-chalk/src/tag.scss +195 -0
  142. package/theme-chalk/src/text.scss +51 -0
  143. package/theme-chalk/src/time-picker.scss +5 -0
  144. package/theme-chalk/src/time-select.scss +37 -0
  145. package/theme-chalk/src/timeline-item.scss +135 -0
  146. package/theme-chalk/src/timeline.scss +101 -0
  147. package/theme-chalk/src/tooltip.scss +0 -0
  148. package/theme-chalk/src/tour.scss +187 -0
  149. package/theme-chalk/src/transfer.scss +201 -0
  150. package/theme-chalk/src/tree-select.scss +41 -0
  151. package/theme-chalk/src/tree.scss +134 -0
  152. package/theme-chalk/src/upload.scss +660 -0
  153. package/theme-chalk/src/var.scss +87 -0
  154. package/theme-chalk/src/virtual-list.scss +40 -0
@@ -0,0 +1,698 @@
1
+ @use 'sass:map';
2
+
3
+ @use 'mixins/mixins' as *;
4
+ @use 'mixins/var' as *;
5
+ @use 'common/var' as *;
6
+
7
+ @include b(table) {
8
+ @include set-component-css-var('table', $table);
9
+ }
10
+
11
+ @include b(table) {
12
+ position: relative;
13
+ overflow: hidden;
14
+ box-sizing: border-box;
15
+ height: fit-content;
16
+ width: 100%;
17
+ max-width: 100%;
18
+ background-color: getCssVar('table-bg-color');
19
+ font-size: getCssVar('font-size', 'base');
20
+ color: getCssVar('table-text-color');
21
+
22
+ @include e(inner-wrapper) {
23
+ position: relative;
24
+ display: flex;
25
+ flex-direction: column;
26
+ height: 100%;
27
+
28
+ // 表格底部伪 border,总是有的
29
+ &::before {
30
+ @include extend-rule(border-pseudo);
31
+ left: 0;
32
+ bottom: 0;
33
+ height: 1px;
34
+ }
35
+ }
36
+
37
+ tbody {
38
+ &:focus-visible {
39
+ outline: none;
40
+ }
41
+ }
42
+
43
+ &.has-footer {
44
+ &.#{$namespace}-table--scrollable-y,
45
+ &.#{$namespace}-table--fluid-height {
46
+ tr:last-child td.#{$namespace}-table__cell {
47
+ border-bottom-color: transparent;
48
+ }
49
+ }
50
+ }
51
+
52
+ // when data is empty
53
+ @include e(empty-block) {
54
+ position: sticky;
55
+ left: 0;
56
+ min-height: 60px;
57
+ text-align: center;
58
+ width: 100%;
59
+ display: flex;
60
+ justify-content: center;
61
+ align-items: center;
62
+ }
63
+
64
+ @include e(empty-text) {
65
+ // min-height doesn't work in IE10 and IE11 https://github.com/philipwalton/flexbugs#3-min-height-on-a-flex-container-wont-apply-to-its-flex-items
66
+ // set empty text line height up to contrainer min-height as workaround.
67
+ line-height: 60px;
68
+ width: 50%;
69
+ color: getCssVar('text-color', 'secondary');
70
+ }
71
+
72
+ // expand the row
73
+ @include e(expand-column) {
74
+ .cell {
75
+ padding: 0;
76
+ text-align: center;
77
+ user-select: none;
78
+ }
79
+ }
80
+
81
+ @include e(expand-icon) {
82
+ @include reset-button(-2px);
83
+
84
+ color: getCssVar('text-color', 'regular');
85
+ font-size: 12px;
86
+ line-height: 12px;
87
+ width: min(23px, 100%);
88
+ height: 23px;
89
+
90
+ @include when(disabled) {
91
+ color: getCssVar('disabled-text-color');
92
+ cursor: not-allowed;
93
+ }
94
+
95
+ @include m(expanded) {
96
+ transform: rotate(90deg);
97
+ }
98
+
99
+ > .#{$namespace}-icon {
100
+ font-size: 12px;
101
+ }
102
+ }
103
+
104
+ @include e(expanded-cell) {
105
+ background-color: getCssVar('table-expanded-cell-bg-color');
106
+
107
+ // increase the weight purely
108
+ &[class*='cell'] {
109
+ padding: 20px 50px;
110
+ }
111
+
112
+ &:hover {
113
+ background-color: transparent !important;
114
+ }
115
+ }
116
+
117
+ @include e(placeholder) {
118
+ display: inline-block;
119
+ width: 20px;
120
+ }
121
+
122
+ @include e(append-wrapper) {
123
+ // avoid overlapping margin https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_Box_Model/Mastering_margin_collapsing
124
+ overflow: hidden;
125
+ }
126
+
127
+ @include m(fit) {
128
+ border-right: 0;
129
+ border-bottom: 0;
130
+
131
+ .#{$namespace}-table__cell.gutter {
132
+ border-right-width: 1px;
133
+ }
134
+
135
+ @include e(inner-wrapper) {
136
+ &::before {
137
+ width: 100%;
138
+ }
139
+ }
140
+ }
141
+
142
+ thead {
143
+ color: getCssVar('table-header-text-color');
144
+
145
+ th {
146
+ font-weight: 600;
147
+ }
148
+
149
+ &.is-group {
150
+ th.#{$namespace}-table__cell {
151
+ background: getCssVar('fill-color', 'light');
152
+ }
153
+ }
154
+ }
155
+
156
+ .#{$namespace}-table__cell {
157
+ padding: map.get($table-padding, 'default');
158
+ min-width: 0;
159
+ box-sizing: border-box;
160
+ text-overflow: ellipsis;
161
+ vertical-align: middle;
162
+ position: relative;
163
+ text-align: left;
164
+ z-index: getCssVar('table-index');
165
+
166
+ @include when(center) {
167
+ text-align: center;
168
+ }
169
+
170
+ @include when(right) {
171
+ text-align: right;
172
+ }
173
+
174
+ &.gutter {
175
+ width: 15px;
176
+ border-right-width: 0;
177
+ border-bottom-width: 0;
178
+ padding: 0;
179
+ }
180
+
181
+ &.is-hidden {
182
+ > * {
183
+ visibility: hidden;
184
+ }
185
+ }
186
+ }
187
+
188
+ .cell {
189
+ box-sizing: border-box;
190
+ overflow: hidden;
191
+ text-overflow: ellipsis;
192
+ white-space: normal;
193
+ overflow-wrap: break-word;
194
+ line-height: 23px;
195
+ padding: 0 12px;
196
+
197
+ &.#{$namespace}-tooltip {
198
+ white-space: nowrap;
199
+ min-width: 50px;
200
+ }
201
+ }
202
+
203
+ @each $size in (large, default, small) {
204
+ @include m($size) {
205
+ font-size: map.get($table-font-size, $size);
206
+
207
+ .#{$namespace}-table__cell {
208
+ padding: map.get($table-padding, $size);
209
+ }
210
+
211
+ .cell {
212
+ padding: map.get($table-cell-padding, $size);
213
+ }
214
+ }
215
+ }
216
+
217
+ tr {
218
+ background-color: getCssVar('table-tr-bg-color');
219
+
220
+ input[type='checkbox'] {
221
+ margin: 0;
222
+ }
223
+ }
224
+
225
+ th.#{$namespace}-table__cell.is-leaf,
226
+ td.#{$namespace}-table__cell {
227
+ border-bottom: getCssVar('table-border');
228
+ }
229
+
230
+ th.#{$namespace}-table__cell.is-sortable {
231
+ cursor: pointer;
232
+ }
233
+
234
+ th.#{$namespace}-table__cell {
235
+ background-color: getCssVar('table-header-bg-color');
236
+
237
+ > .cell.highlight {
238
+ color: getCssVar('color-primary');
239
+ }
240
+
241
+ &.required > div::before {
242
+ display: inline-block;
243
+ content: '';
244
+ width: 8px;
245
+ height: 8px;
246
+ border-radius: 50%;
247
+ background: #ff4d51;
248
+ margin-right: 5px;
249
+ vertical-align: middle;
250
+ }
251
+ }
252
+
253
+ td.#{$namespace}-table__cell {
254
+ div {
255
+ box-sizing: border-box;
256
+ }
257
+
258
+ &.gutter {
259
+ width: 0;
260
+ }
261
+ }
262
+
263
+ // 拥有多级表头
264
+ @include m((group, border)) {
265
+ @include share-rule(border-pseudo) {
266
+ content: '';
267
+ position: absolute;
268
+ background-color: getCssVar('table-border-color');
269
+ z-index: calc(getCssVar('table-index') + 2);
270
+ }
271
+ }
272
+
273
+ // table--border
274
+ @include m(border) {
275
+ @include e(inner-wrapper) {
276
+ &::after {
277
+ @include extend-rule(border-pseudo);
278
+ left: 0;
279
+ top: 0;
280
+ width: 100%;
281
+ height: 1px;
282
+ z-index: calc(getCssVar('table-index') + 2);
283
+ }
284
+ }
285
+
286
+ &::before {
287
+ @include extend-rule(border-pseudo);
288
+ top: -1px;
289
+ left: 0;
290
+ width: 1px;
291
+ height: 100%;
292
+ }
293
+
294
+ &::after {
295
+ @include extend-rule(border-pseudo);
296
+ top: -1px;
297
+ right: 0;
298
+ width: 1px;
299
+ height: 100%;
300
+ }
301
+
302
+ @include e(inner-wrapper) {
303
+ border-right: none;
304
+ border-bottom: none;
305
+ }
306
+
307
+ @include e(footer-wrapper) {
308
+ position: relative;
309
+ flex-shrink: 0;
310
+ }
311
+
312
+ .#{$namespace}-table__cell {
313
+ border-right: getCssVar('table-border');
314
+ }
315
+
316
+ th.#{$namespace}-table__cell.gutter:last-of-type {
317
+ border-bottom: getCssVar('table-border');
318
+ border-bottom-width: 1px;
319
+ }
320
+
321
+ & th.#{$namespace}-table__cell {
322
+ border-bottom: getCssVar('table-border');
323
+ }
324
+ }
325
+
326
+ @include m(hidden) {
327
+ visibility: hidden;
328
+ }
329
+
330
+ @include e((header-wrapper, body-wrapper, footer-wrapper)) {
331
+ width: 100%;
332
+
333
+ tr {
334
+ td,
335
+ th {
336
+ &.#{$namespace}-table-fixed-column--left,
337
+ &.#{$namespace}-table-fixed-column--right {
338
+ position: sticky !important;
339
+ background: inherit;
340
+ z-index: calc(getCssVar('table-index') + 1);
341
+
342
+ &.is-last-column,
343
+ &.is-first-column {
344
+ &::before {
345
+ content: '';
346
+ position: absolute;
347
+ top: 0px;
348
+ width: 10px;
349
+ bottom: 0px;
350
+ overflow-x: hidden;
351
+ overflow-y: hidden;
352
+ box-shadow: none;
353
+ touch-action: none;
354
+ pointer-events: none;
355
+ }
356
+ }
357
+
358
+ &.is-first-column {
359
+ &::before {
360
+ left: -10px;
361
+ }
362
+ }
363
+
364
+ &.is-last-column {
365
+ &::before {
366
+ right: -10px;
367
+ }
368
+ }
369
+ }
370
+
371
+ &.#{$namespace}-table__fixed-right-patch {
372
+ position: sticky !important;
373
+ z-index: calc(getCssVar('table-index') + 1);
374
+ background: #fff;
375
+ right: 0;
376
+ }
377
+ }
378
+ }
379
+ }
380
+
381
+ @include e(header-wrapper) {
382
+ flex-shrink: 0;
383
+
384
+ tr {
385
+ th {
386
+ &.#{$namespace}-table-fixed-column--left,
387
+ &.#{$namespace}-table-fixed-column--right {
388
+ background-color: getCssVar('table-header-bg-color');
389
+ }
390
+ }
391
+ }
392
+ }
393
+
394
+ @include e((header, body, footer)) {
395
+ table-layout: fixed;
396
+ border-collapse: separate;
397
+ }
398
+
399
+ @include e((header-wrapper)) {
400
+ overflow: hidden;
401
+
402
+ & tbody td.#{$namespace}-table__cell {
403
+ background-color: getCssVar('table-row-hover-bg-color');
404
+ color: getCssVar('table-text-color');
405
+ }
406
+ }
407
+
408
+ @include e((footer-wrapper)) {
409
+ overflow: hidden;
410
+ flex-shrink: 0;
411
+
412
+ tfoot td.#{$namespace}-table__cell {
413
+ background-color: getCssVar('table-row-hover-bg-color');
414
+ color: getCssVar('table-text-color');
415
+ }
416
+ }
417
+
418
+ @include e((header-wrapper, body-wrapper)) {
419
+ .#{$namespace}-table-column--selection {
420
+ > .cell {
421
+ display: inline-flex;
422
+ align-items: center;
423
+ height: 23px;
424
+ }
425
+
426
+ .#{$namespace}-checkbox {
427
+ height: unset;
428
+ }
429
+ }
430
+ }
431
+
432
+ @include when(scrolling-left) {
433
+ .#{$namespace}-table-fixed-column--right.is-first-column {
434
+ &::before {
435
+ box-shadow: getCssVar('table-fixed-right-column');
436
+ }
437
+ }
438
+
439
+ &.#{$namespace}-table--border {
440
+ .#{$namespace}-table-fixed-column--left {
441
+ &.is-last-column {
442
+ &.#{$namespace}-table__cell {
443
+ border-right: getCssVar('table-border');
444
+ }
445
+ }
446
+ }
447
+ }
448
+
449
+ th.#{$namespace}-table-fixed-column--left {
450
+ background-color: getCssVar('table-header-bg-color');
451
+ }
452
+ }
453
+
454
+ @include when(scrolling-right) {
455
+ .#{$namespace}-table-fixed-column--left.is-last-column {
456
+ &::before {
457
+ box-shadow: getCssVar('table-fixed-left-column');
458
+ }
459
+ }
460
+
461
+ .#{$namespace}-table-fixed-column--left.is-last-column.#{$namespace}-table__cell {
462
+ border-right: none;
463
+ }
464
+
465
+ th.#{$namespace}-table-fixed-column--right {
466
+ background-color: getCssVar('table-header-bg-color');
467
+ }
468
+ }
469
+
470
+ @include when(scrolling-middle) {
471
+ .#{$namespace}-table-fixed-column--left.is-last-column.#{$namespace}-table__cell {
472
+ border-right: none;
473
+ }
474
+
475
+ .#{$namespace}-table-fixed-column--right.is-first-column {
476
+ &::before {
477
+ box-shadow: getCssVar('table-fixed-right-column');
478
+ }
479
+ }
480
+
481
+ .#{$namespace}-table-fixed-column--left.is-last-column {
482
+ &::before {
483
+ box-shadow: getCssVar('table-fixed-left-column');
484
+ }
485
+ }
486
+ }
487
+
488
+ @include when(scrolling-none) {
489
+ .#{$namespace}-table-fixed-column--left,
490
+ .#{$namespace}-table-fixed-column--right {
491
+ &.is-first-column,
492
+ &.is-last-column {
493
+ &::before {
494
+ box-shadow: none;
495
+ }
496
+ }
497
+ }
498
+
499
+ th.#{$namespace}-table-fixed-column--left,
500
+ th.#{$namespace}-table-fixed-column--right {
501
+ background-color: getCssVar('table-header-bg-color');
502
+ }
503
+ }
504
+
505
+ @include e(body-wrapper) {
506
+ overflow: hidden;
507
+ position: relative;
508
+ flex: 1;
509
+
510
+ .#{$namespace}-scrollbar__bar {
511
+ z-index: calc(getCssVar('table-index') + 2);
512
+ }
513
+ }
514
+
515
+ .caret-wrapper {
516
+ @include reset-button();
517
+
518
+ display: inline-flex;
519
+ flex-direction: column;
520
+ align-items: center;
521
+ height: 14px;
522
+ width: 24px;
523
+ vertical-align: middle;
524
+ overflow: initial;
525
+ position: relative;
526
+ }
527
+
528
+ .sort-caret {
529
+ width: 0;
530
+ height: 0;
531
+ border: solid 5px transparent;
532
+ position: absolute;
533
+ left: 7px;
534
+
535
+ &.ascending {
536
+ border-bottom-color: getCssVar('text-color', 'placeholder');
537
+ top: -5px;
538
+ }
539
+
540
+ &.descending {
541
+ border-top-color: getCssVar('text-color', 'placeholder');
542
+ bottom: -3px;
543
+ }
544
+ }
545
+
546
+ .ascending .sort-caret.ascending {
547
+ border-bottom-color: getCssVar('color-primary');
548
+ }
549
+
550
+ .descending .sort-caret.descending {
551
+ border-top-color: getCssVar('color-primary');
552
+ }
553
+
554
+ .hidden-columns {
555
+ visibility: hidden;
556
+ position: absolute;
557
+ z-index: -1;
558
+ }
559
+
560
+ @include m(striped) {
561
+ & .#{$namespace}-table__body {
562
+ & tr.#{$namespace}-table__row--striped {
563
+ td.#{$namespace}-table__cell {
564
+ background: getCssVar('fill-color', 'lighter');
565
+ }
566
+
567
+ &.current-row td.#{$namespace}-table__cell {
568
+ background-color: getCssVar('table-current-row-bg-color');
569
+ }
570
+ }
571
+ }
572
+ }
573
+
574
+ @include e(body) {
575
+ tr.hover-row {
576
+ &,
577
+ &.#{$namespace}-table__row--striped {
578
+ &,
579
+ &.current-row {
580
+ > td.#{$namespace}-table__cell {
581
+ background-color: getCssVar('table-row-hover-bg-color');
582
+ }
583
+ }
584
+ }
585
+ }
586
+
587
+ tr > td.hover-cell {
588
+ background-color: getCssVar('table-row-hover-bg-color');
589
+ }
590
+
591
+ tr.current-row > td.#{$namespace}-table__cell {
592
+ background-color: getCssVar('table-current-row-bg-color');
593
+ }
594
+ }
595
+
596
+ &.#{$namespace}-table--scrollable-y {
597
+ @include e(body-header) {
598
+ position: sticky;
599
+ top: 0;
600
+ z-index: calc(getCssVar('table-index') + 2);
601
+ }
602
+
603
+ @include e(body-footer) {
604
+ position: sticky;
605
+ bottom: 0;
606
+ z-index: calc(getCssVar('table-index') + 2);
607
+ }
608
+ }
609
+
610
+ @include e(column-resize-proxy) {
611
+ position: absolute;
612
+ left: 200px;
613
+ top: 0;
614
+ bottom: 0;
615
+ width: 0;
616
+ border-left: getCssVar('table-border');
617
+ z-index: calc(getCssVar('table-index') + 9);
618
+ }
619
+
620
+ @include e(column-filter-trigger) {
621
+ @include reset-button();
622
+
623
+ display: inline-block;
624
+
625
+ & i {
626
+ color: getCssVar('color-info');
627
+ font-size: 14px;
628
+ vertical-align: middle;
629
+ }
630
+ }
631
+
632
+ @include e(border-left-patch) {
633
+ top: 0;
634
+ left: 0;
635
+ width: 1px;
636
+ height: 100%;
637
+ z-index: calc(getCssVar('table-index') + 2);
638
+ position: absolute;
639
+ background-color: getCssVar('table-border-color');
640
+ }
641
+
642
+ @include e(border-bottom-patch) {
643
+ left: 0;
644
+ height: 1px;
645
+ z-index: calc(getCssVar('table-index') + 2);
646
+ position: absolute;
647
+ background-color: getCssVar('table-border-color');
648
+ }
649
+
650
+ @include e(border-right-patch) {
651
+ top: 0;
652
+ height: 100%;
653
+ width: 1px;
654
+ z-index: calc(getCssVar('table-index') + 2);
655
+ position: absolute;
656
+ background-color: getCssVar('table-border-color');
657
+ }
658
+
659
+ @include m(enable-row-transition) {
660
+ .#{$namespace}-table__body td.#{$namespace}-table__cell {
661
+ transition: background-color 0.25s ease 1ms; // #23955
662
+ }
663
+ }
664
+
665
+ @include m(enable-row-hover) {
666
+ .#{$namespace}-table__body tr:hover > td.#{$namespace}-table__cell {
667
+ background-color: getCssVar('table-row-hover-bg-color');
668
+ }
669
+ }
670
+
671
+ [class*='#{$namespace}-table__row--level'] {
672
+ .#{$namespace}-table__expand-icon {
673
+ display: inline-block;
674
+ width: 20px;
675
+ text-align: center;
676
+ }
677
+ }
678
+
679
+ @include b(table) {
680
+ &.#{$namespace}-table--border {
681
+ .#{$namespace}-table__cell {
682
+ border-right: getCssVar('table-border');
683
+ }
684
+ }
685
+ }
686
+
687
+ &:not(.#{$namespace}-table--border) {
688
+ .#{$namespace}-table__cell {
689
+ border-right: none;
690
+ }
691
+
692
+ > .#{$namespace}-table__inner-wrapper {
693
+ &::after {
694
+ content: none;
695
+ }
696
+ }
697
+ }
698
+ }