@itrocks/list 0.1.0 → 0.1.2
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/build.js +9 -9
- package/list.css +1 -1
- package/package.json +1 -1
package/build.js
CHANGED
|
@@ -6,16 +6,16 @@ import { TableFreezeInheritBorder } from '../table/freeze/inherit-border.js';
|
|
|
6
6
|
import { TableLink } from '../table/link.js';
|
|
7
7
|
import { tableByElement } from '../table/table.js';
|
|
8
8
|
import { xTargetCall } from '../xtarget/xtarget.js';
|
|
9
|
-
const tableLink = new TableLink({
|
|
10
|
-
call: url => xTargetCall(url, 'main'),
|
|
11
|
-
href: 'action',
|
|
12
|
-
id: (element) => {
|
|
13
|
-
const input = element.closest('tr')?.querySelector(':scope > th.select > input[name=id]');
|
|
14
|
-
if (input)
|
|
15
|
-
return { element: input, value: input.value };
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
9
|
build('article[data-action="list"] > form > table.objects', element => {
|
|
10
|
+
const tableLink = new TableLink({
|
|
11
|
+
call: url => xTargetCall(url, 'main'),
|
|
12
|
+
href: 'action',
|
|
13
|
+
id: (element) => {
|
|
14
|
+
const input = element.closest('tr')?.querySelector(':scope > th.select > input[name=id]');
|
|
15
|
+
if (input)
|
|
16
|
+
return { element: input, value: input.value };
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
19
|
tableByElement(element, {
|
|
20
20
|
plugins: [TableFeed, TableFreeze, TableFreezeInheritBackground, TableFreezeInheritBorder, tableLink]
|
|
21
21
|
});
|
package/list.css
CHANGED
|
@@ -46,7 +46,7 @@ table.objects > tbody > tr > td > ul {
|
|
|
46
46
|
table.objects > tbody > tr > td > ul > li {
|
|
47
47
|
display: inline-block;
|
|
48
48
|
}
|
|
49
|
-
table.objects > tbody > tr > td > ul > li:not(:last-child)
|
|
49
|
+
table.objects > tbody > tr > td > ul > li:not(:last-child)::after {
|
|
50
50
|
content: ", ";
|
|
51
51
|
margin-right: 0.3em;
|
|
52
52
|
}
|
package/package.json
CHANGED