origam 2.46.0 → 2.46.1
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/CHANGELOG.md
CHANGED
|
@@ -18,6 +18,13 @@ This project follows [Semantic Versioning](https://semver.org).
|
|
|
18
18
|
|
|
19
19
|
## [Unreleased]
|
|
20
20
|
|
|
21
|
+
## [2.46.1] - 2026-11-26
|
|
22
|
+
|
|
23
|
+
### Fixed — le reflet `wave` du squelette de `OrigamDataTable` reste dans la barre (#1090)
|
|
24
|
+
|
|
25
|
+
- Cause : la cellule `<td>` est l'hôte du squelette ; son `::after` (la barre) était réduit à la largeur de la colonne, pas le `::before` (le reflet, `inset: 0` + `translateX`), qui couvrait toute la cellule.
|
|
26
|
+
- Correctif (CSS seul, `OrigamDataTableRows.vue`) : le `::before` partage la boîte exacte de la barre et balaie par `background-position`. Sous `prefers-reduced-motion`, aucun reflet n'est peint. Spec : `data-table-skeleton-wave.spec.ts`.
|
|
27
|
+
|
|
21
28
|
## [2.46.0] - 2026-11-26
|
|
22
29
|
|
|
23
30
|
### Fixed — `TShikiHighlighter` accepte un highlighter `shiki/core` (#1136)
|
|
@@ -465,9 +465,13 @@ defineExpose({ filterProps });
|
|
|
465
465
|
// height a real one-line row has, and its `::after` is narrowed to the
|
|
466
466
|
// bar the column would hold. Several rules compete for the `::after`
|
|
467
467
|
// box, so they all live under the same selector and the same `inset`.
|
|
468
|
+
// The wave highlight (`::before`) shares that exact box (#1090): a
|
|
469
|
+
// `translateX` would carry it out of the bar into the cell, so inside
|
|
470
|
+
// the bar it sweeps by `background-position` instead.
|
|
468
471
|
.origam-data-table-rows__skeleton-cell {
|
|
469
472
|
block-size: calc(2 * var(--origam-table__cell---padding-block, 12px) + 1.5em);
|
|
470
473
|
|
|
474
|
+
&::before,
|
|
471
475
|
&::after {
|
|
472
476
|
inset-block: auto;
|
|
473
477
|
inset-block-start: 50%;
|
|
@@ -479,12 +483,14 @@ defineExpose({ filterProps });
|
|
|
479
483
|
border-radius: var(--origam-skeleton---border-radius-pill);
|
|
480
484
|
}
|
|
481
485
|
|
|
486
|
+
&--end::before,
|
|
482
487
|
&--end::after {
|
|
483
488
|
inset-inline-start: auto;
|
|
484
489
|
inset-inline-end: var(--origam-table__cell---padding-inline, 16px);
|
|
485
490
|
inline-size: 40%;
|
|
486
491
|
}
|
|
487
492
|
|
|
493
|
+
&--control::before,
|
|
488
494
|
&--control::after {
|
|
489
495
|
block-size: var(--origam-skeleton---circular-size);
|
|
490
496
|
inline-size: var(--origam-skeleton---circular-size);
|
|
@@ -492,11 +498,32 @@ defineExpose({ filterProps });
|
|
|
492
498
|
}
|
|
493
499
|
}
|
|
494
500
|
|
|
501
|
+
tr:nth-child(2n) > .origam-data-table-rows__skeleton-cell--text::before,
|
|
495
502
|
tr:nth-child(2n) > .origam-data-table-rows__skeleton-cell--text::after {
|
|
496
503
|
inline-size: 52%;
|
|
497
504
|
}
|
|
498
505
|
|
|
506
|
+
tr:nth-child(3n) > .origam-data-table-rows__skeleton-cell--text::before,
|
|
499
507
|
tr:nth-child(3n) > .origam-data-table-rows__skeleton-cell--text::after {
|
|
500
508
|
inline-size: 84%;
|
|
501
509
|
}
|
|
510
|
+
|
|
511
|
+
@keyframes origam-data-table-skeleton-cell-wave {
|
|
512
|
+
from { background-position-x: 100%; }
|
|
513
|
+
to { background-position-x: -100%; }
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
// Gated: under reduced motion the shared `animation: none` stays in force
|
|
517
|
+
// and the highlight is not painted at all.
|
|
518
|
+
.origam-data-table-rows__skeleton-cell.origam--skeleton-wave::before {
|
|
519
|
+
transform: none;
|
|
520
|
+
background: none;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
524
|
+
.origam-data-table-rows__skeleton-cell.origam--skeleton-wave::before {
|
|
525
|
+
background: linear-gradient(105deg, transparent 35%, var(--origam-skeleton---highlight-color) 50%, transparent 65%) 100% 0 / 200% 100% no-repeat;
|
|
526
|
+
animation-name: origam-data-table-skeleton-cell-wave;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
502
529
|
</style>
|