@svelte-lean/table 0.7.0 → 0.8.0

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
@@ -1,5 +1,18 @@
1
1
  # @svelte-lean/table
2
2
 
3
+ ## 0.8.0
4
+
5
+ No changes in this release.
6
+
7
+ ## 0.7.1
8
+
9
+ ### Patch Changes
10
+
11
+ - cadfe5b: A cell holding a value the browser's find opened (`data-slean-found`, the findable primitive) lets it
12
+ stand past its edge and above the pinned cells beside it. A pinned cell's `position: sticky` and
13
+ `z-index` now come from the stylesheet (`[data-pin]`); the renderer's inline style carries only its
14
+ inset.
15
+
3
16
  ## 0.7.0
4
17
 
5
18
  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: `position:sticky;${property}:${inset};z-index:2;` });
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@svelte-lean/table",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "A Svelte-native table and data-grid engine that ships only the features you use.",
5
5
  "license": "MIT",
6
6
  "author": "Ömer Say",