@agorapulse/ui-theme 22.0.7 → 22.0.8
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.
|
Binary file
|
package/assets/style/_table.scss
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
$cell-height: 52px;
|
|
6
6
|
$cell-height-small: 40px;
|
|
7
7
|
$sort-icon-size: 16px;
|
|
8
|
+
$grab-icon-size: 16px;
|
|
8
9
|
|
|
9
10
|
// ============================================================================
|
|
10
11
|
// Base Table Styles
|
|
@@ -177,6 +178,19 @@ $sort-icon-size: 16px;
|
|
|
177
178
|
width: $cell-height;
|
|
178
179
|
text-align: center;
|
|
179
180
|
}
|
|
181
|
+
|
|
182
|
+
&.ap-table__header-cell--draggable {
|
|
183
|
+
cursor: move;
|
|
184
|
+
|
|
185
|
+
&.cdk-drag-disabled {
|
|
186
|
+
cursor: default;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
&.ap-table__header-cell--dragging {
|
|
191
|
+
color: var(--ref-color-grey-40);
|
|
192
|
+
background-color: var(--ref-color-electric-blue-05);
|
|
193
|
+
}
|
|
180
194
|
}
|
|
181
195
|
|
|
182
196
|
// ========================================================================
|
|
@@ -211,6 +225,11 @@ $sort-icon-size: 16px;
|
|
|
211
225
|
padding: 0 var(--ref-spacing-sm);
|
|
212
226
|
}
|
|
213
227
|
|
|
228
|
+
&.ap-table__body-cell--dragging {
|
|
229
|
+
color: transparent;
|
|
230
|
+
background-color: var(--ref-color-electric-blue-05);
|
|
231
|
+
}
|
|
232
|
+
|
|
214
233
|
// Reserves matching right space so content aligns with the sortable
|
|
215
234
|
// header title text (shifted left by the sort icon + gap).
|
|
216
235
|
&.ap-table__body-cell--sortable {
|
|
@@ -315,6 +334,7 @@ $sort-icon-size: 16px;
|
|
|
315
334
|
|
|
316
335
|
.ap-table__drag-handle {
|
|
317
336
|
cursor: move;
|
|
337
|
+
color: var(--ref-color-grey-40);
|
|
318
338
|
}
|
|
319
339
|
}
|
|
320
340
|
|
|
@@ -366,3 +386,81 @@ tr[cdk-row] {
|
|
|
366
386
|
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
|
|
367
387
|
}
|
|
368
388
|
}
|
|
389
|
+
|
|
390
|
+
th[cdk-header-cell] {
|
|
391
|
+
&.cdk-drag-placeholder {
|
|
392
|
+
background-color: var(--ref-color-electric-blue-05) !important;
|
|
393
|
+
border-bottom: 1px dashed var(--ref-color-electric-blue-20) !important;
|
|
394
|
+
opacity: 0.7 !important;
|
|
395
|
+
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1) !important;
|
|
396
|
+
|
|
397
|
+
* {
|
|
398
|
+
visibility: hidden;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
&.cdk-drag-animating {
|
|
403
|
+
transition: transform 350ms cubic-bezier(0, 0, 0.2, 1);
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
table.ap-table.cdk-drop-list-dragging {
|
|
408
|
+
th[cdk-header-cell].cdk-drag,
|
|
409
|
+
td[cdk-cell] {
|
|
410
|
+
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.ap-table__column-preview {
|
|
415
|
+
display: flex;
|
|
416
|
+
flex-direction: column;
|
|
417
|
+
overflow: hidden;
|
|
418
|
+
border-radius: var(--ref-border-radius-md);
|
|
419
|
+
background-color: var(--ref-color-electric-blue-10);
|
|
420
|
+
border: 1px solid var(--ref-color-electric-blue-40);
|
|
421
|
+
font-family: Averta;
|
|
422
|
+
opacity: 0.95;
|
|
423
|
+
|
|
424
|
+
.ap-table__column-preview-header {
|
|
425
|
+
display: flex;
|
|
426
|
+
align-items: center;
|
|
427
|
+
gap: var(--ref-spacing-xxxs);
|
|
428
|
+
height: $cell-height;
|
|
429
|
+
padding: var(--ref-spacing-xxs) var(--ref-spacing-xs);
|
|
430
|
+
font-size: var(--ref-font-size-xs);
|
|
431
|
+
font-weight: var(--ref-font-weight-bold);
|
|
432
|
+
color: var(--ref-color-grey-100);
|
|
433
|
+
border-bottom: 1px solid var(--ref-color-electric-blue-40);
|
|
434
|
+
white-space: nowrap;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.ap-table__column-preview-cell {
|
|
438
|
+
display: flex;
|
|
439
|
+
align-items: center;
|
|
440
|
+
height: $cell-height;
|
|
441
|
+
padding: 0 var(--ref-spacing-xs);
|
|
442
|
+
font-size: var(--ref-font-size-sm);
|
|
443
|
+
color: var(--ref-color-grey-100);
|
|
444
|
+
white-space: nowrap;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.ap-table__drag-handle {
|
|
448
|
+
cursor: move;
|
|
449
|
+
color: var(--ref-color-grey-40);
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.ap-table__column-preview--small {
|
|
454
|
+
.ap-table__column-preview-header,
|
|
455
|
+
.ap-table__column-preview-cell {
|
|
456
|
+
height: $cell-height-small;
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
.ap-table__column-preview.cdk-drag-preview {
|
|
461
|
+
translate: calc(-1px - var(--ref-spacing-xs) - #{$grab-icon-size * 0.5}) calc(-1px - #{$cell-height * 0.5});
|
|
462
|
+
|
|
463
|
+
&.ap-table__column-preview--small {
|
|
464
|
+
translate: calc(-1px - var(--ref-spacing-xs) - #{$grab-icon-size * 0.5}) calc(-1px - #{$cell-height-small * 0.5});
|
|
465
|
+
}
|
|
466
|
+
}
|
package/package.json
CHANGED
|
Binary file
|