@itrocks/list 0.0.13 → 0.0.15

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.
Files changed (3) hide show
  1. package/cjs/list.js +2 -1
  2. package/list.css +0 -12
  3. package/package.json +1 -1
package/cjs/list.js CHANGED
@@ -41,6 +41,7 @@ const action_3 = require("@itrocks/action");
41
41
  const route_1 = require("@itrocks/route");
42
42
  const route_2 = require("@itrocks/route");
43
43
  const storage_1 = require("@itrocks/storage");
44
+ const storage_2 = require("@itrocks/storage");
44
45
  let List = (() => {
45
46
  let _classDecorators = [(0, action_3.Need)('Store', 'new'), (0, route_1.Route)('/list')];
46
47
  let _classDescriptor;
@@ -58,7 +59,7 @@ let List = (() => {
58
59
  }
59
60
  async html(request) {
60
61
  const type = request.type;
61
- const objects = await (0, storage_1.dataSource)().search(type);
62
+ const objects = await (0, storage_1.dataSource)().readAll(type, storage_2.Sort);
62
63
  const generalActions = [];
63
64
  const selectionActions = [];
64
65
  const route = (0, route_2.routeOf)(this);
package/list.css CHANGED
@@ -1,12 +1,3 @@
1
- main > article[data-action=list] {
2
- display: grid;
3
- grid-template-areas: "header" "form";
4
- grid-template-rows: min-content 1fr;
5
- height: 100%;
6
- }
7
- main > article[data-action=list] > header {
8
- grid-area: header;
9
- }
10
1
  main > article[data-action=list] > header > .summary {
11
2
  padding: 13px 10px 12px;
12
3
  position: absolute;
@@ -15,11 +6,8 @@ main > article[data-action=list] > header > .summary {
15
6
  }
16
7
  main > article[data-action=list] > form {
17
8
  display: grid;
18
- grid-area: form;
19
9
  grid-template-areas: "table" "footer";
20
10
  grid-template-rows: 1fr min-content;
21
- height: 100%;
22
- overflow: auto;
23
11
  }
24
12
  main > article[data-action=list] > form > table {
25
13
  border-collapse: collapse;
package/package.json CHANGED
@@ -63,5 +63,5 @@
63
63
  "build:front": "tsc -p esm/tsconfig.json && ../prepare-module/prepare-module.js esm"
64
64
  },
65
65
  "types": "./cjs/list.d.ts",
66
- "version": "0.0.13"
66
+ "version": "0.0.15"
67
67
  }