@svelte-lean/table 0.7.0 → 0.7.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 +9 -0
- package/dist/style.css +12 -0
- package/dist/table/data-table.svelte +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @svelte-lean/table
|
|
2
2
|
|
|
3
|
+
## 0.7.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- cadfe5b: A cell holding a value the browser's find opened (`data-slean-found`, the findable primitive) lets it
|
|
8
|
+
stand past its edge and above the pinned cells beside it. A pinned cell's `position: sticky` and
|
|
9
|
+
`z-index` now come from the stylesheet (`[data-pin]`); the renderer's inline style carries only its
|
|
10
|
+
inset.
|
|
11
|
+
|
|
3
12
|
## 0.7.0
|
|
4
13
|
|
|
5
14
|
No changes in this release.
|
package/dist/style.css
CHANGED
|
@@ -558,6 +558,18 @@
|
|
|
558
558
|
border-inline-end: 0;
|
|
559
559
|
}
|
|
560
560
|
|
|
561
|
+
/* A pinned cell sticks at the inset the renderer computes (an inline inset-inline-start/end). */
|
|
562
|
+
:where(.slean-table-scroll > table > * > tr > [data-pin]) {
|
|
563
|
+
position: sticky;
|
|
564
|
+
z-index: 2;
|
|
565
|
+
}
|
|
566
|
+
/* A cell holding a value the browser's find opened (a findable, `data-slean-found`) lets it
|
|
567
|
+
stand past its edge, above the pinned cells beside it and below the sticky header. */
|
|
568
|
+
:where(.slean-table-scroll > table > tbody > tr > :has([data-slean-found])) {
|
|
569
|
+
overflow: visible;
|
|
570
|
+
z-index: 4;
|
|
571
|
+
}
|
|
572
|
+
|
|
561
573
|
/* Leading control columns and pinned columns. */
|
|
562
574
|
:where(.slean-table-selection, .slean-table-expander) {
|
|
563
575
|
position: sticky;
|
|
@@ -828,7 +828,7 @@
|
|
|
828
828
|
? `calc(${offset}px + ${lead.join(' + ')})`
|
|
829
829
|
: `${offset}px`;
|
|
830
830
|
const property = side === 'left' ? 'inset-inline-start' : 'inset-inline-end';
|
|
831
|
-
result.set(col.id, { pin: side, style:
|
|
831
|
+
result.set(col.id, { pin: side, style: `${property}:${inset};` });
|
|
832
832
|
offset += grid ? gridWidth(col) : table.columnWidth(col);
|
|
833
833
|
last = col.id;
|
|
834
834
|
}
|