@messaia/cdk 22.0.1-rc.9 → 22.0.2-rc.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/README.md CHANGED
@@ -40,6 +40,30 @@ Once the project is built, you can publish your library by following these steps
40
40
  npm publish
41
41
  ```
42
42
 
43
+ ## Table row selection
44
+
45
+ `TableDataSource` matches selected rows by their non-null `id`, so selections remain
46
+ checked when server-side pagination or `reload(false)` returns new row instances.
47
+ IDs must be unique and stable across pages. Rows without an ID use reference equality.
48
+ Toggling a reloaded row removes its existing selection instead of adding a duplicate.
49
+ `reload()` still clears selection by default.
50
+
51
+ Set `@Table({ rememberSelection: true })` on a row model to restore checked rows
52
+ when returning to server-backed lists for that model. This is off by default.
53
+ `GenericListComponent` uses its existing list configuration scope; standalone
54
+ `vd-dynamic-table` instances with `[classType]` use their route and data source.
55
+ For multiple standalone tables that share the same model and scope on one page,
56
+ use distinct `[rememberSelectionKey]` overrides. Only rows with IDs are remembered,
57
+ and the selection is kept in memory until it is cleared or the app is reloaded.
58
+
59
+ ## Server-backed table filters
60
+
61
+ For overlapping field and static filters, the data source intersects exact values
62
+ and exclusions and sends the narrowed result under the original query key. If
63
+ there is no match, it shows an empty page without requesting unfiltered rows.
64
+ If a compound or pattern filter cannot be reduced to an exact filter, the table
65
+ logs a warning and keeps the static restriction.
66
+
43
67
  ## Running unit tests
44
68
 
45
69
  To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command: