clavarium 0.2.479-next.1 → 0.2.480-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 +2 -2
- package/package.json +1 -1
- package/web/app.js +15 -5
- package/web/style.css +18 -0
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.480-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.480-next.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
package/package.json
CHANGED
package/web/app.js
CHANGED
|
@@ -6364,10 +6364,20 @@
|
|
|
6364
6364
|
if (answer.partial) notes.push(el('p', 'hint', uiSaid('set-ag-partial', 'Start times only, for now')));
|
|
6365
6365
|
holder.replaceChildren(shown, list, ...notes);
|
|
6366
6366
|
}
|
|
6367
|
+
/* WHILE A CALENDAR, A MAILBOX OR AN ADDRESS BOOK IS READ (17-11, the transitions persona): seen at once -- a turning
|
|
6368
|
+
sign, the word, and grey lines where the rows will come; read again over what is shown, a moving bar on top
|
|
6369
|
+
(style.css, [aria-busy]). Said once to a screen reader (role=status). */
|
|
6370
|
+
function readingNote(rows) {
|
|
6371
|
+
const box = el('div', 'as-reading'); box.setAttribute('role', 'status');
|
|
6372
|
+
const head = el('p', 'as-reading-head'); head.append(el('span', 'as-spin'), el('span', '', uiSaid('set-ag-reading', 'Reading…')));
|
|
6373
|
+
box.append(head);
|
|
6374
|
+
for (let i = 0; i < rows; i++) { const r = el('div', 'as-skel'); r.setAttribute('aria-hidden', 'true'); r.style.setProperty('--w', `${[78, 62, 86, 54][i % 4]}%`); box.append(r); }
|
|
6375
|
+
return box;
|
|
6376
|
+
}
|
|
6367
6377
|
async function agendaFill(holder, target, opts) {
|
|
6368
6378
|
const from = agendaFrom.get(target) ?? wallNow(agendaZone).slice(0, 10);
|
|
6369
6379
|
holder.setAttribute('aria-busy', 'true');
|
|
6370
|
-
if (!holder.childElementCount) holder.append(
|
|
6380
|
+
if (!holder.childElementCount) holder.append(readingNote(4));
|
|
6371
6381
|
const answer = await agendaRead(target, from, opts);
|
|
6372
6382
|
holder.removeAttribute('aria-busy');
|
|
6373
6383
|
if (!holder.isConnected) return;
|
|
@@ -6760,7 +6770,7 @@
|
|
|
6760
6770
|
const body = box.querySelector('.mv-body');
|
|
6761
6771
|
if (body.dataset.filled) return;
|
|
6762
6772
|
body.dataset.filled = '1';
|
|
6763
|
-
body.replaceChildren(
|
|
6773
|
+
body.replaceChildren(readingNote(2));
|
|
6764
6774
|
const got = await peekRead(`mail-read|${target}|${folder}|${m.id}`, 'mail-read', { target, id: m.id, folder }, uiSaid('set-mv-failed-one', 'This message could not be read.'));
|
|
6765
6775
|
if (!body.isConnected) return;
|
|
6766
6776
|
if (got.error) { delete body.dataset.filled; body.replaceChildren(el('p', 'error', got.error)); return; }
|
|
@@ -6804,7 +6814,7 @@
|
|
|
6804
6814
|
async function mailFill(holder, target, opts) {
|
|
6805
6815
|
const s = peekOf(target);
|
|
6806
6816
|
holder.setAttribute('aria-busy', 'true');
|
|
6807
|
-
if (!holder.childElementCount) holder.append(
|
|
6817
|
+
if (!holder.childElementCount) holder.append(readingNote(4));
|
|
6808
6818
|
const answer = await peekRead(`mail-list|${target}|${s.folder}|${s.text}`, 'mail-list', { target, folder: s.folder, text: s.text }, uiSaid('set-mv-failed', 'The mailbox could not be read.'), opts);
|
|
6809
6819
|
holder.removeAttribute('aria-busy');
|
|
6810
6820
|
if (!holder.isConnected) return;
|
|
@@ -6846,7 +6856,7 @@
|
|
|
6846
6856
|
const body = box.querySelector('.mv-body');
|
|
6847
6857
|
if (body.dataset.filled) return;
|
|
6848
6858
|
body.dataset.filled = '1';
|
|
6849
|
-
body.replaceChildren(
|
|
6859
|
+
body.replaceChildren(readingNote(2));
|
|
6850
6860
|
const got = await peekRead(`contact|${target}|${c.id}`, 'contact', { target, id: c.id }, uiSaid('set-ct-failed-one', 'This contact could not be read.'));
|
|
6851
6861
|
if (!body.isConnected) return;
|
|
6852
6862
|
if (got.error) { delete body.dataset.filled; body.replaceChildren(el('p', 'error', got.error)); return; }
|
|
@@ -6877,7 +6887,7 @@
|
|
|
6877
6887
|
async function contactsFill(holder, target, opts) {
|
|
6878
6888
|
const s = peekOf(target);
|
|
6879
6889
|
holder.setAttribute('aria-busy', 'true');
|
|
6880
|
-
if (!holder.childElementCount) holder.append(
|
|
6890
|
+
if (!holder.childElementCount) holder.append(readingNote(4));
|
|
6881
6891
|
const answer = await peekRead(`contacts|${target}|${s.text}`, 'contacts', { target, text: s.text }, uiSaid('set-ct-failed', 'The address book could not be read.'), opts);
|
|
6882
6892
|
holder.removeAttribute('aria-busy');
|
|
6883
6893
|
if (!holder.isConnected) return;
|
package/web/style.css
CHANGED
|
@@ -789,6 +789,12 @@ svg.lk-links path.temp { stroke: var(--k-pick); stroke-dasharray: 4 4; }
|
|
|
789
789
|
#nav button[aria-current="page"] .nav-ic { stroke: var(--brass); }
|
|
790
790
|
/* On a wide screen the list above is the menu, always there (the « button shows it when folded): the bar holds only the places of the whole. A phone keeps it: there the list is a screen of its own. */
|
|
791
791
|
@media (min-width: 701px) { #nav #nav-conversations { display: none; } }
|
|
792
|
+
/* Wide enough, the four places two by two (17-11: a lighter block under the list); narrow, one a line. */
|
|
793
|
+
@media (min-width: 701px) {
|
|
794
|
+
#nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 6.5rem), 1fr)); }
|
|
795
|
+
#nav button { gap: 8px; padding-inline: 8px; min-width: 0; }
|
|
796
|
+
#nav button > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
797
|
+
}
|
|
792
798
|
@media (max-width: 700px) {
|
|
793
799
|
/* A phone: a bar along the bottom, above the system's own strip; gone inside a conversation and while typing. */
|
|
794
800
|
#nav { grid-row: 2; flex-direction: row; gap: 0; padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0)); border-right: 0; }
|
|
@@ -1259,6 +1265,18 @@ header .ic, #folders .ic { width: 18px; height: 18px; fill: none; stroke: curren
|
|
|
1259
1265
|
.ag-bar button { padding: 4px 10px; }
|
|
1260
1266
|
.as-agenda { display: flex; flex-direction: column; gap: 6px; }
|
|
1261
1267
|
.as-agenda[aria-busy="true"] .ag-days { opacity: .6; }
|
|
1268
|
+
.as-reading { display: flex; flex-direction: column; gap: 8px; padding: 10px 2px; }
|
|
1269
|
+
.as-reading-head { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink2); font-size: .875rem; }
|
|
1270
|
+
.as-spin { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--ink2) 30%, transparent); border-top-color: var(--brass); animation: as-spin .8s linear infinite; }
|
|
1271
|
+
.as-skel { height: 12px; width: var(--w, 70%); border-radius: 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 7%, transparent) 25%, color-mix(in srgb, var(--ink) 14%, transparent) 50%, color-mix(in srgb, var(--ink) 7%, transparent) 75%); background-size: 200% 100%; animation: as-shimmer 1.4s ease-in-out infinite; }
|
|
1272
|
+
/* Read again over what is shown: a bar moving along the top, the rows dimmed. */
|
|
1273
|
+
.as-agenda { position: relative; }
|
|
1274
|
+
.as-agenda[aria-busy="true"]:has(> :not(.as-reading))::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; border-radius: 3px; z-index: 1; background: linear-gradient(90deg, transparent, var(--brass), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: as-bar 1.1s ease-in-out infinite; }
|
|
1275
|
+
.as-agenda[aria-busy="true"] > :not(.as-reading) { opacity: .6; transition: opacity .2s; }
|
|
1276
|
+
@keyframes as-spin { to { transform: rotate(360deg); } }
|
|
1277
|
+
@keyframes as-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
|
|
1278
|
+
@keyframes as-bar { from { background-position: -40% 0; } to { background-position: 140% 0; } }
|
|
1279
|
+
@media (prefers-reduced-motion: reduce) { .as-spin, .as-skel, .as-agenda[aria-busy="true"]::before { animation: none; } }
|
|
1262
1280
|
.ag-days { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bar); padding: 8px 12px; }
|
|
1263
1281
|
.ag-day { display: flex; flex-direction: column; gap: 2px; }
|
|
1264
1282
|
.ag-dayhead { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; font-size: .8125rem; color: var(--ink2); text-transform: capitalize; }
|