clavarium 0.2.45-next.1 → 0.2.47-next.1
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/npm-shrinkwrap.json +6 -6
- package/package.json +2 -2
- package/web/index.html +6 -0
- package/web/links.js +6 -10
- package/web/style.css +8 -3
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.47-next.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "clavarium",
|
|
9
|
-
"version": "0.2.
|
|
9
|
+
"version": "0.2.47-next.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
|
13
13
|
"@xterm/xterm": "^6.0.0",
|
|
14
|
-
"clavarium-binder": "0.1.
|
|
14
|
+
"clavarium-binder": "0.1.8-next.1",
|
|
15
15
|
"clavarium-docket": "0.1.1",
|
|
16
16
|
"clavarium-parley": "0.17.4-next.1",
|
|
17
17
|
"mermaid": "11.17.2",
|
|
@@ -688,9 +688,9 @@
|
|
|
688
688
|
}
|
|
689
689
|
},
|
|
690
690
|
"node_modules/clavarium-binder": {
|
|
691
|
-
"version": "0.1.
|
|
692
|
-
"resolved": "https://registry.npmjs.org/clavarium-binder/-/clavarium-binder-0.1.
|
|
693
|
-
"integrity": "sha512-
|
|
691
|
+
"version": "0.1.8-next.1",
|
|
692
|
+
"resolved": "https://registry.npmjs.org/clavarium-binder/-/clavarium-binder-0.1.8-next.1.tgz",
|
|
693
|
+
"integrity": "sha512-0ZvTgn4z3IzLWjVyt5H82tnrE4g4Zdh0eb0kKrpVYjJ8vEfun6CmzHFclce9lb7vH+CC5ozKETuTAmSVYkk+lg==",
|
|
694
694
|
"license": "MIT",
|
|
695
695
|
"bin": {
|
|
696
696
|
"binder": "bin/binder.mjs",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.47-next.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "A conversation is a VM with a terminal in it. Everything else is a folder.",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@xterm/addon-fit": "^0.11.0",
|
|
46
46
|
"@xterm/xterm": "^6.0.0",
|
|
47
|
-
"clavarium-binder": "0.1.
|
|
47
|
+
"clavarium-binder": "0.1.8-next.1",
|
|
48
48
|
"clavarium-docket": "0.1.1",
|
|
49
49
|
"clavarium-parley": "0.17.4-next.1",
|
|
50
50
|
"mermaid": "11.17.2",
|
package/web/index.html
CHANGED
|
@@ -372,6 +372,12 @@
|
|
|
372
372
|
<!-- THE MAP (once "Who gets what"): every device, conversation and asset, and the rights between them (links.js). -->
|
|
373
373
|
<div id="links" class="pane">
|
|
374
374
|
<div id="links-legend" class="lk-legend"></div>
|
|
375
|
+
<!-- The column filters, kept out of the board's zoom so a crowded map does not shrink them (links.js). -->
|
|
376
|
+
<div id="links-filters" class="lk-filters">
|
|
377
|
+
<label class="lk-filter"><span>Devices</span><input type="search" class="lk-find" data-k="device" placeholder="Filter…" aria-label="Filter devices"></label>
|
|
378
|
+
<label class="lk-filter"><span>Conversations</span><input type="search" class="lk-find" data-k="conversation" placeholder="Filter…" aria-label="Filter conversations"></label>
|
|
379
|
+
<label class="lk-filter"><span>Assets</span><input type="search" class="lk-find" data-k="asset" placeholder="Filter…" aria-label="Filter assets"></label>
|
|
380
|
+
</div>
|
|
375
381
|
<p id="links-hint" class="hint" aria-live="polite"></p>
|
|
376
382
|
<p id="links-error" class="error" role="alert" hidden></p>
|
|
377
383
|
<div id="links-card" class="lk-card" hidden aria-live="polite"></div>
|
package/web/links.js
CHANGED
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
const col = h('div', { class: 'lk-col' });
|
|
203
203
|
cols.forEach((k, i) => {
|
|
204
204
|
if (i) col.append(h('div', { class: 'lk-gap' }));
|
|
205
|
-
col.append(h('h3', { class: 'lk-colh' }, h('span', { class: 'lk-colt', text: TITLES[k] }),
|
|
205
|
+
col.append(h('h3', { class: 'lk-colh' }, h('span', { class: 'lk-colt', text: TITLES[k] }), plus(k)));
|
|
206
206
|
const whole = lists[ci][i];
|
|
207
207
|
const list = whole.filter((n) => matches(n, k));
|
|
208
208
|
for (const n of list) col.append(nodeEl(n));
|
|
@@ -212,15 +212,11 @@
|
|
|
212
212
|
});
|
|
213
213
|
fit(); draw(); hint(); paintPhone();
|
|
214
214
|
}
|
|
215
|
-
/*
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
const ni = board().querySelector(`.lk-find[data-k="${k}"]`);
|
|
221
|
-
if (ni) { ni.focus(); try { ni.setSelectionRange(at, at); } catch { /* a search input may refuse it */ } }
|
|
222
|
-
};
|
|
223
|
-
const find = (k) => h('input', { type: 'search', class: 'lk-find', 'data-k': k, value: filters[k], placeholder: 'Filter…', 'aria-label': `Filter ${TITLES[k]}`, oninput: onFind });
|
|
215
|
+
/* The filters sit in a bar of their own, ABOVE the board and out of its zoom, so that fitting
|
|
216
|
+
a crowded map (which zooms it down) never shrinks them. Each narrows its column; the board
|
|
217
|
+
is repainted without a relayout (the inputs are not rebuilt, so the caret stays). */
|
|
218
|
+
const onFind = (e) => { filters[e.target.dataset.k] = e.target.value; paint(false); };
|
|
219
|
+
for (const inp of document.querySelectorAll('#links-filters .lk-find')) inp.addEventListener('input', onFind);
|
|
224
220
|
/* How each kind is made: a device paired, a conversation created, an asset added. The same,
|
|
225
221
|
from the small round "+" by each column's title (always there, however many it holds)
|
|
226
222
|
and from an empty column. */
|
package/web/style.css
CHANGED
|
@@ -1280,10 +1280,15 @@ select.pill { appearance: auto; }
|
|
|
1280
1280
|
#copy-close, #files-close, #preview-close { font-size: 1.375rem; line-height: 1; min-width: 40px; padding: 4px 10px; }
|
|
1281
1281
|
/* The title of a column of the map, and its round "+" (a new device, conversation, asset): always there. */
|
|
1282
1282
|
.lk-col h3.lk-colh, .lk-phead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
|
1283
|
-
.lk-col h3.lk-colh .lk-colt { flex: none; }
|
|
1284
|
-
.lk-col h3.lk-colh .lk-find { flex: 1 1 auto; min-width: 0; width: auto; font: inherit; font-size: .72rem; letter-spacing: 0; text-transform: none; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); }
|
|
1285
|
-
.lk-col h3.lk-colh .lk-find::placeholder { color: var(--ink2); }
|
|
1286
1283
|
.lk-col h3.lk-colh .lk-add { width: 26px; height: 26px; font-size: .95rem; letter-spacing: 0; }
|
|
1284
|
+
/* The filters: their own bar above the board, out of its zoom, so they stay a usable size. */
|
|
1285
|
+
.lk-filters { display: flex; gap: 10px 16px; flex-wrap: wrap; margin: 2px 0 10px; }
|
|
1286
|
+
.lk-filter { display: flex; align-items: center; gap: 8px; flex: 1 1 200px; min-width: 160px; }
|
|
1287
|
+
.lk-filter > span { flex: none; font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
|
|
1288
|
+
.lk-filters .lk-find { flex: 1 1 auto; min-width: 0; font: inherit; font-size: .9rem; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); }
|
|
1289
|
+
.lk-filters .lk-find::placeholder { color: var(--ink2); }
|
|
1290
|
+
/* The phone shows a list of its own, not the board: the column filters do not apply there. */
|
|
1291
|
+
@media (max-width: 600px) { #links-filters { display: none; } }
|
|
1287
1292
|
.lk-phead { margin: 4px 0 6px; }
|
|
1288
1293
|
.as-kinds { display: flex; flex-wrap: wrap; gap: 8px; } .as-kinds button { display: inline-flex; align-items: center; gap: 8px; }
|
|
1289
1294
|
|