@ithouse-bd/ngx-table 1.1.0 → 1.1.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 +31 -0
- package/DOCUMENTATION.md +8 -1
- package/fesm2022/ithouse-bd-ngx-table.mjs +82 -24
- package/fesm2022/ithouse-bd-ngx-table.mjs.map +1 -1
- package/index.d.ts +27 -4
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,35 @@ All notable changes to `@ithouse-bd/ngx-table` are documented here.
|
|
|
4
4
|
The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and
|
|
5
5
|
[Semantic Versioning](https://semver.org/).
|
|
6
6
|
|
|
7
|
+
## [1.1.1] — 2026-11-29
|
|
8
|
+
|
|
9
|
+
Patch release: the 1.1.0 tarball on npm was built before the fixes below, so they ship here.
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- **The cell copy button ignored the first click.** It was `pointer-events: none` until hover,
|
|
14
|
+
so a click landed on the row and opened the row instead of copying. It is now clickable while
|
|
15
|
+
invisible, and stays visible on touch devices (`@media (hover: none)`).
|
|
16
|
+
- **Copy failed silently where `navigator.clipboard` is unavailable** (plain http, some
|
|
17
|
+
iframes, denied permission) and still showed a ✓. Writes now fall back to a hidden
|
|
18
|
+
textarea + `execCommand('copy')`, and the ✓ only appears when the text really reached the
|
|
19
|
+
clipboard.
|
|
20
|
+
- **Unpin did nothing on a column declared with `sticky: 'start' | 'end'`.** `pinned` now
|
|
21
|
+
stores an explicit `null` for unpinned columns and `pinOf()` respects it, so the declared
|
|
22
|
+
sticky can be turned off. `TablePresetState.pinned` is `Record<string, TablePin | null>`.
|
|
23
|
+
- **A saved view stayed "active" after the layout changed.** Pinning, hiding, resizing,
|
|
24
|
+
reordering or changing density now clears the highlight and `activeView`, so the Views menu
|
|
25
|
+
never claims the table still matches a view it no longer matches.
|
|
26
|
+
- **A preset was only restored on the first change detection**, so a `storageKey` bound later
|
|
27
|
+
(`[storageKey]="'table-' + userId"`) never restored the saved layout. The restore is now
|
|
28
|
+
keyed to the current `storageKey`.
|
|
29
|
+
|
|
30
|
+
### Changed
|
|
31
|
+
|
|
32
|
+
- `DOCUMENTATION.md` now states exactly what a named view stores (`hidden`, `order`, `widths`,
|
|
33
|
+
`pinned`, `density` — not sort, filters, page or selection) and that views need a
|
|
34
|
+
`storageKey` to survive a reload.
|
|
35
|
+
|
|
7
36
|
## [1.1.0] — 2026-11-26
|
|
8
37
|
|
|
9
38
|
### Added
|
|
@@ -65,6 +94,8 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and
|
|
|
65
94
|
single toggle, and `setDensity(density)` sets it explicitly.
|
|
66
95
|
- Compact density now tokenises row/header heights (`--ith-table-row-height`,
|
|
67
96
|
`--ith-table-head-height`) so sticky offsets and the minimum height stay correct.
|
|
97
|
+
- Cell copy, clipboard fallback, explicit unpin, the Views highlight and the `storageKey`
|
|
98
|
+
restore landed after 1.1.0 was built; see [1.1.1].
|
|
68
99
|
|
|
69
100
|
## [1.0.0] — 2026-11-24
|
|
70
101
|
|
package/DOCUMENTATION.md
CHANGED
|
@@ -509,7 +509,14 @@ Replaces the default summary **only**; pagination controls stay. Context adds `p
|
|
|
509
509
|
|
|
510
510
|
The Views menu lists saved layouts ("Compact view", "Finance view" …), lets the user save the
|
|
511
511
|
current layout under a name, apply one with a click and delete one with `×`. Views live in the
|
|
512
|
-
same `storageKey` entry, and the
|
|
512
|
+
same `storageKey` entry, and the applied view stays highlighted until the layout is changed by
|
|
513
|
+
hand (pin, hide, resize, reorder or density) — then the table no longer matches it and the
|
|
514
|
+
highlight is dropped.
|
|
515
|
+
|
|
516
|
+
A view stores the **layout only**: `hidden`, `order`, `widths`, `pinned` and `density`. Sort,
|
|
517
|
+
search, filters, page and the selection are not part of a view; persist those yourself if a
|
|
518
|
+
"saved report" needs them. Without a `storageKey` the views live in memory and are lost on
|
|
519
|
+
reload.
|
|
513
520
|
|
|
514
521
|
### Filter chips
|
|
515
522
|
|