ngx-wapp-components 3.4.1-alpha.5 → 3.4.1-alpha.6
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 +31 -39
- package/fesm2022/ngx-wapp-components.mjs +58 -10
- package/fesm2022/ngx-wapp-components.mjs.map +1 -1
- package/package.json +1 -1
- package/types/ngx-wapp-components.d.ts +226 -215
package/README.md
CHANGED
|
@@ -19,45 +19,37 @@ 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
|
-
Use
|
|
25
|
-
`w-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
pagination in session. For backwards compatibility, `w-table-lazy` continues
|
|
54
|
-
using `wappTableLazyLoadingObject.identificator` as its key when the new input
|
|
55
|
-
is omitted. With an explicit id, only that id is used, not the legacy key.
|
|
56
|
-
|
|
57
|
-
Pagination is stored directly under its id, without an automatic prefix.
|
|
58
|
-
Choose ids distinct from other tenant session entries (such as filter panels).
|
|
59
|
-
Existing entries using the old `table-paginator_` prefix are not restored;
|
|
60
|
-
new pagination is saved under the unprefixed id.
|
|
22
|
+
## Filter panels and session pagination
|
|
23
|
+
|
|
24
|
+
Use a stable, unique `paginationId` on `w-table`, `w-tree-table` and
|
|
25
|
+
`w-table-lazy`. The tables store the offset, page size, `sortField` and
|
|
26
|
+
`sortOrder` per tenant. Local tables restore after data arrives; lazy tables
|
|
27
|
+
include the restored state in the initial `queryElements` event.
|
|
28
|
+
|
|
29
|
+
`w-filter-panel.searchClicked` fires on initialization as well as on manual
|
|
30
|
+
searches. `options.source` is `init-storage`, `init-default` or `user-click`.
|
|
31
|
+
For new integrations subscribe only to `searchClicked`, not also to `lastQuery`;
|
|
32
|
+
the latter remains available for backwards compatibility.
|
|
33
|
+
|
|
34
|
+
In `w-table-lazy`, call `applyFilterQuery(filterQuery)` after receiving
|
|
35
|
+
`queryElements` and obtaining the table reference. It returns the query to send
|
|
36
|
+
to the API, preserves initial/restored pagination and resets only the offset
|
|
37
|
+
for manual searches. The reset and sorting are saved under the table's own
|
|
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.
|
|
61
53
|
|
|
62
54
|
## Further help
|
|
63
55
|
|