@itrocks/list 0.0.17 → 0.0.19
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/cjs/list.js +1 -1
- package/list.css +36 -22
- package/package.json +1 -1
package/cjs/list.js
CHANGED
|
@@ -64,7 +64,7 @@ let List = (() => {
|
|
|
64
64
|
const xhrInfo = header ? JSON.parse(header) : {};
|
|
65
65
|
const limit = xhrInfo.targetHeight
|
|
66
66
|
? Math.ceil(xhrInfo.targetHeight / this.lineHeight)
|
|
67
|
-
:
|
|
67
|
+
: (xhrInfo.visibleRows ?? 50);
|
|
68
68
|
const offset = request.request.data.offset;
|
|
69
69
|
const type = request.type;
|
|
70
70
|
const objects = await (0, storage_1.dataSource)().readAll(type, [new storage_2.Limit(limit, +offset), storage_3.Sort]);
|
package/list.css
CHANGED
|
@@ -9,48 +9,62 @@ main > article[data-action=list] > form {
|
|
|
9
9
|
grid-template-areas: "table" "footer";
|
|
10
10
|
grid-template-rows: 1fr min-content;
|
|
11
11
|
}
|
|
12
|
-
main > article[data-action=list] > form >
|
|
12
|
+
main > article[data-action=list] > form > footer {
|
|
13
|
+
grid-area: footer;
|
|
14
|
+
position: relative;
|
|
15
|
+
}
|
|
16
|
+
main > article[data-action=list] > form > table.objects > tbody > tr > :not(:first-child) {
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
table.objects {
|
|
13
21
|
border-collapse: collapse;
|
|
14
22
|
display: block;
|
|
15
23
|
grid-area: table;
|
|
16
24
|
margin-bottom: -1px;
|
|
17
25
|
overflow-y: auto;
|
|
18
26
|
}
|
|
19
|
-
|
|
27
|
+
table.objects th {
|
|
28
|
+
background: #f8f8f8;
|
|
29
|
+
}
|
|
30
|
+
table.objects tr td, table.objects tr th {
|
|
20
31
|
border-bottom: 1px solid #d8d8d8;
|
|
21
32
|
border-spacing: 0;
|
|
22
33
|
padding: 0.6em;
|
|
23
34
|
}
|
|
24
|
-
|
|
35
|
+
table.objects tr td:last-child, table.objects tr th:last-child {
|
|
25
36
|
border-right: 1px solid #d8d8d8;
|
|
26
37
|
}
|
|
27
|
-
|
|
28
|
-
cursor: pointer;
|
|
29
|
-
}
|
|
30
|
-
main > article[data-action=list] > form > table > thead > tr > * {
|
|
31
|
-
background: #f8f8f8;
|
|
32
|
-
}
|
|
33
|
-
main > article[data-action=list] > form > table > thead > .properties > .select > input[name=select] {
|
|
38
|
+
table.objects tr.properties > .select > input[name=select] {
|
|
34
39
|
display: none;
|
|
35
40
|
}
|
|
36
|
-
|
|
37
|
-
background: #f8f8f8;
|
|
38
|
-
}
|
|
39
|
-
main > article[data-action=list] > form > table > tbody > tr:nth-child(odd) > * {
|
|
40
|
-
background: white;
|
|
41
|
-
}
|
|
42
|
-
main > article[data-action=list] > form > table > tbody > tr > td > ul {
|
|
41
|
+
table.objects > tbody > tr > td > ul {
|
|
43
42
|
display: block;
|
|
44
43
|
margin: 0;
|
|
45
44
|
padding: 0;
|
|
46
45
|
}
|
|
47
|
-
|
|
46
|
+
table.objects > tbody > tr > td > ul > li {
|
|
48
47
|
display: inline-block;
|
|
49
48
|
}
|
|
50
|
-
|
|
49
|
+
table.objects > tbody > tr > td > ul > li:not(:first-child):before {
|
|
51
50
|
content: ", ";
|
|
52
51
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
table.objects > tbody:first-child > tr:nth-child(even) > td {
|
|
53
|
+
background: white;
|
|
54
|
+
}
|
|
55
|
+
table.objects > tbody:first-child > tr:nth-child(odd) > td {
|
|
56
|
+
background: #f8f8f8;
|
|
57
|
+
}
|
|
58
|
+
table.objects > thead + tbody > tr:nth-child(even) > td {
|
|
59
|
+
background: #f8f8f8;
|
|
60
|
+
}
|
|
61
|
+
table.objects > thead + tbody > tr:nth-child(odd) > td {
|
|
62
|
+
background: white;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
:not(article, article > form) > table.objects td, :not(article, article > form) > table.objects th {
|
|
66
|
+
border-top: 1px solid #d8d8d8;
|
|
67
|
+
}
|
|
68
|
+
:not(article, article > form) > table.objects td:first-child, :not(article, article > form) > table.objects th:first-child {
|
|
69
|
+
border-left: 1px solid #d8d8d8;
|
|
56
70
|
}
|
package/package.json
CHANGED