@itrocks/list 0.28.0 → 0.28.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/cjs/filter-summary.html +2 -1
- package/list.css +10 -15
- package/package.json +1 -1
- package/toolbar.js +1 -2
package/cjs/filter-summary.html
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<!--criteria-->
|
|
2
2
|
<span class="list-filter-icon" aria-hidden="true"></span>
|
|
3
3
|
<span aria-label="Active list filters" class="list-filter-text" role="group"
|
|
4
|
-
><!--items--><code
|
|
4
|
+
><!--items--><code class="list-filter-criterion"
|
|
5
|
+
>{caption}<span class="list-filter-value">{value}</span></code>{space}<!--end--></span>
|
|
5
6
|
<!--end-->
|
package/list.css
CHANGED
|
@@ -257,11 +257,9 @@ table.objects > thead > tr.properties > th > input:focus:not(.search-submit) {
|
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
main > article[data-action=list] > header > .list-toolbar {
|
|
260
|
-
--list-toolbar-gap: 5px;
|
|
261
260
|
align-items: center;
|
|
262
261
|
border-bottom: 1px solid #ccc;
|
|
263
262
|
display: grid;
|
|
264
|
-
gap: var(--list-toolbar-gap);
|
|
265
263
|
grid-template-areas: "actions filter count add";
|
|
266
264
|
grid-template-columns: auto minmax(0, 1fr) auto max-content;
|
|
267
265
|
}
|
|
@@ -270,7 +268,6 @@ main > article[data-action=list] > header > .list-toolbar:has(> .add-column[hidd
|
|
|
270
268
|
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
271
269
|
}
|
|
272
270
|
main > article[data-action=list] > header > .list-toolbar[data-filter-row] {
|
|
273
|
-
gap: 0;
|
|
274
271
|
grid-template-areas: "actions count count" "filter filter add";
|
|
275
272
|
grid-template-columns: minmax(0, 1fr) auto max-content;
|
|
276
273
|
}
|
|
@@ -278,11 +275,9 @@ main > article[data-action=list] > header > .list-toolbar[data-filter-row]:has(>
|
|
|
278
275
|
grid-template-areas: "actions count" "filter filter";
|
|
279
276
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
280
277
|
}
|
|
281
|
-
main > article[data-action=list] > header > .list-toolbar[data-filter-row] >
|
|
278
|
+
main > article[data-action=list] > header > .list-toolbar[data-filter-row] > .general.actions {
|
|
282
279
|
align-self: stretch;
|
|
283
280
|
border-bottom: 1px solid #ccc;
|
|
284
|
-
}
|
|
285
|
-
main > article[data-action=list] > header > .list-toolbar[data-filter-row] > .general.actions {
|
|
286
281
|
flex-wrap: wrap;
|
|
287
282
|
overflow-x: auto;
|
|
288
283
|
}
|
|
@@ -290,9 +285,7 @@ main > article[data-action=list] > header > .list-toolbar[data-filter-row] > .li
|
|
|
290
285
|
align-self: stretch;
|
|
291
286
|
}
|
|
292
287
|
main > article[data-action=list] > header > .list-toolbar[data-filter-row] > .summary {
|
|
293
|
-
|
|
294
|
-
justify-self: stretch;
|
|
295
|
-
text-align: end;
|
|
288
|
+
border-bottom: 1px solid #ccc;
|
|
296
289
|
}
|
|
297
290
|
main > article[data-action=list] > header > .list-toolbar > .add-column {
|
|
298
291
|
align-self: stretch;
|
|
@@ -312,23 +305,24 @@ main > article[data-action=list] > header > .list-toolbar > .add-column:hover {
|
|
|
312
305
|
}
|
|
313
306
|
main > article[data-action=list] > header > .list-toolbar > .list-filter {
|
|
314
307
|
grid-area: filter;
|
|
315
|
-
padding-inline: 5px;
|
|
316
308
|
}
|
|
317
309
|
main > article[data-action=list] > header > .list-toolbar > .general.actions {
|
|
318
310
|
border-bottom: 0;
|
|
319
311
|
flex-wrap: nowrap;
|
|
320
312
|
grid-area: actions;
|
|
321
313
|
min-width: 0;
|
|
314
|
+
padding-inline-end: 0;
|
|
322
315
|
}
|
|
323
316
|
main > article[data-action=list] > header > .list-toolbar > .general.actions > li {
|
|
324
317
|
flex: none;
|
|
325
318
|
white-space: nowrap;
|
|
326
319
|
}
|
|
327
320
|
main > article[data-action=list] > header > .list-toolbar > .summary {
|
|
328
|
-
|
|
321
|
+
align-content: center;
|
|
322
|
+
align-self: stretch;
|
|
329
323
|
grid-area: count;
|
|
330
|
-
|
|
331
|
-
|
|
324
|
+
padding-inline: 4px 10px;
|
|
325
|
+
text-align: end;
|
|
332
326
|
white-space: nowrap;
|
|
333
327
|
}
|
|
334
328
|
|
|
@@ -336,7 +330,6 @@ main > article[data-action=list] > header > .list-toolbar > .summary {
|
|
|
336
330
|
align-items: center;
|
|
337
331
|
display: flex;
|
|
338
332
|
flex: 1;
|
|
339
|
-
gap: 0.4em;
|
|
340
333
|
min-width: 0;
|
|
341
334
|
}
|
|
342
335
|
.list-filter .list-filter-icon {
|
|
@@ -371,7 +364,6 @@ main > article[data-action=list] > header > .list-toolbar > .summary {
|
|
|
371
364
|
display: block;
|
|
372
365
|
}
|
|
373
366
|
.list-filter .list-filter-text {
|
|
374
|
-
border-bottom: 1px dotted #888;
|
|
375
367
|
flex: 1;
|
|
376
368
|
min-width: 0;
|
|
377
369
|
overflow-x: auto;
|
|
@@ -380,6 +372,9 @@ main > article[data-action=list] > header > .list-toolbar > .summary {
|
|
|
380
372
|
.list-filter code {
|
|
381
373
|
font: inherit;
|
|
382
374
|
}
|
|
375
|
+
.list-filter .list-filter-criterion {
|
|
376
|
+
text-decoration: underline dotted #888;
|
|
377
|
+
}
|
|
383
378
|
.list-filter .list-filter-value {
|
|
384
379
|
background: #d5edff;
|
|
385
380
|
color: #12365b;
|
package/package.json
CHANGED
package/toolbar.js
CHANGED
|
@@ -58,9 +58,8 @@ function watchToolbar(toolbar) {
|
|
|
58
58
|
frame = undefined;
|
|
59
59
|
const style = getComputedStyle(toolbar);
|
|
60
60
|
const available = toolbar.getBoundingClientRect().width - inlineEdges(style);
|
|
61
|
-
const gaps = (add.hidden ? 2 : 3) * pixels(style.getPropertyValue('--list-toolbar-gap'));
|
|
62
61
|
const required = actionsWidth(actions) + filterWidth(filter) + contentWidth(count, getComputedStyle(count))
|
|
63
|
-
+ add.getBoundingClientRect().width
|
|
62
|
+
+ add.getBoundingClientRect().width;
|
|
64
63
|
toolbar.toggleAttribute('data-filter-row', required > available);
|
|
65
64
|
}
|
|
66
65
|
function schedule() {
|