ngx-wapp-components 3.4.1-alpha.6 → 3.4.1-alpha.7
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
|
@@ -19,37 +19,22 @@ After building your library with `ng build wapp-components`, go to the dist fold
|
|
|
19
19
|
|
|
20
20
|
Run `ng test wapp-components` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
21
|
|
|
22
|
-
##
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
`w-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
the
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
pagination id. Missing source is treated as a manual search for compatibility.
|
|
39
|
-
This method does not emit `queryElements` or call the API.
|
|
40
|
-
|
|
41
|
-
The consumer must wait for both the filter query and the table query, then
|
|
42
|
-
combine the filter rules with the returned lazy query. Do not replace it with
|
|
43
|
-
fixed `first`/`rows` values, or call `refreshPagination(0)` during initialization.
|
|
44
|
-
Later page and sort events should reuse the current panel filters without
|
|
45
|
-
calling `applyFilterQuery` again.
|
|
46
|
-
|
|
47
|
-
### Local alpha validation
|
|
48
|
-
|
|
49
|
-
Build the library with the production configuration and run `npm pack` from
|
|
50
|
-
`dist/wapp-components`. Install the resulting `3.5.0-alpha.1` archive in the
|
|
51
|
-
consumer for local testing. Publication is a separate step; use an alpha dist
|
|
52
|
-
tag when publishing a prerelease, never the default `latest` tag.
|
|
22
|
+
## Local table search persistence
|
|
23
|
+
|
|
24
|
+
Set a stable, unique `paginationId` on `w-table` or `w-tree-table` to persist
|
|
25
|
+
the page offset, page size, sorting and global search text in session storage.
|
|
26
|
+
The optional `StoreableTablePagination.query.searchInput` field stores the text.
|
|
27
|
+
|
|
28
|
+
- `w-table` restores search only when `wappTableObject.hasGlobalSearch` is enabled.
|
|
29
|
+
- `w-tree-table` restores the text of its global search input.
|
|
30
|
+
- Restoration updates both the visible input and the actual filter, preserving
|
|
31
|
+
the saved page within the filtered results, including when data arrives asynchronously.
|
|
32
|
+
- Clearing the search stores an empty string so an older search is not restored.
|
|
33
|
+
Calling `w-table.clearFilters()` also clears the visible and stored search.
|
|
34
|
+
- Existing entries without `searchInput` remain compatible and start with an empty search.
|
|
35
|
+
- Without `paginationId`, searching still works but its state is not persisted.
|
|
36
|
+
|
|
37
|
+
This search persistence does not apply to `w-table-lazy`.
|
|
53
38
|
|
|
54
39
|
## Further help
|
|
55
40
|
|