system-dashboard-frontend 1.34.20 → 1.35.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "system-dashboard-frontend",
3
- "version": "1.34.20",
3
+ "version": "1.35.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -28,7 +28,7 @@
28
28
  "@kronos-integration/svelte-components": "^2.5.6",
29
29
  "mf-styling": "^3.0.2",
30
30
  "reader-line-iterator": "^1.1.6",
31
- "svelte-command": "^1.1.45",
31
+ "svelte-command": "^1.1.46",
32
32
  "svelte-common": "^6.4.1",
33
33
  "svelte-guard-history-router": "^5.6.0",
34
34
  "svelte-log-view": "^4.2.29",
@@ -1,11 +1,16 @@
1
1
  <script>
2
2
  import { ObjectLink } from "svelte-guard-history-router";
3
- import { sortable, sorter, filter, keyPrefixStore } from "svelte-common";
3
+ import { sortable, sorter, filter, keyPrefixStore, Pagination, pageNavigation } from "svelte-common";
4
4
 
5
5
  export let router;
6
6
 
7
7
  const sortBy = keyPrefixStore(router.searchParamStore, "sort.");
8
8
  const filterBy = keyPrefixStore(router.searchParamStore, "filter.");
9
+
10
+ const pg = new Pagination(router.value);
11
+
12
+ $: pg.filter = filter($filterBy);
13
+ $: pg.sorter = sorter($sortBy);
9
14
  </script>
10
15
 
11
16
  <table class="bordered">
@@ -28,9 +33,7 @@
28
33
  </tr>
29
34
  </thead>
30
35
  <tbody class="striped hoverable">
31
- {#each router.value
32
- .filter(filter($filterBy))
33
- .sort(sorter($sortBy)) as unit, i (unit.name)}
36
+ {#each [...pg] as unit, i (unit.name)}
34
37
  <tr>
35
38
  <td>
36
39
  <ObjectLink object={unit} />
@@ -42,4 +45,7 @@
42
45
  </tr>
43
46
  {/each}
44
47
  </tbody>
48
+ <tfooter>
49
+ <td colspan="2" use:pageNavigation={pg} />
50
+ </tfooter>
45
51
  </table>