create-pmos 0.609.0 → 0.611.0
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/package.json +69 -27
- package/payload/KIT-VERSION +1 -1
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/workspace/board-columns-test.js +2 -1
- package/workspace/board-deliveries-test.js +2 -1
- package/workspace/board-programs-test.js +9 -5
- package/workspace/board-publish-ui-test.js +2 -1
- package/workspace/board-shared-ui-test.js +2 -1
- package/workspace/board-workflows-test.js +2 -1
- package/workspace/briefing-premium-adddoc-test.js +2 -1
- package/workspace/briefing-premium-board-test.js +10 -9
- package/workspace/briefing-premium-doc-edit-test.js +2 -1
- package/workspace/briefing-premium-initiative-test.js +7 -6
- package/workspace/briefing-premium-insights-test.js +12 -11
- package/workspace/briefing-premium-products-test.js +4 -2
- package/workspace/briefing-premium-sources-test.js +1 -1
- package/workspace/briefing-premium-test.js +6 -5
- package/workspace/briefing-premium-work-test.js +1 -1
- package/workspace/calm-timeline-test.js +2 -1
- package/workspace/changelog.json +68 -0
- package/workspace/core-docs-workflow-test.js +2 -1
- package/workspace/ev-everywhere-test.js +11 -10
- package/workspace/guide/home.md +2 -2
- package/workspace/guide/index.md +4 -0
- package/workspace/guide/layout.md +92 -11
- package/workspace/guide/programs.md +16 -2
- package/workspace/guide/routine.md +50 -0
- package/workspace/guide/scheduled-tasks-and-cli.md +1 -1
- package/workspace/guide/settings-and-switches.md +1 -1
- package/workspace/home-other-product-test.js +2 -1
- package/workspace/home-railcard-test.js +2 -1
- package/workspace/impact-screens-test.js +3 -1
- package/workspace/ini-workflow-test.js +2 -1
- package/workspace/lib/beside-page.js +15 -0
- package/workspace/lib/classic-board.js +15 -0
- package/workspace/lib/events-place.js +216 -0
- package/workspace/lib/library-items.js +78 -0
- package/workspace/lib/notes.js +6 -1
- package/workspace/lib/route-modules.js +4 -0
- package/workspace/lib/routes-events-place.js +166 -0
- package/workspace/lib/routes-library.js +89 -0
- package/workspace/lib/routes-pop-work.js +39 -0
- package/workspace/lib/routes-report-setups.js +20 -0
- package/workspace/lib/routes-today-log.js +48 -0
- package/workspace/lib/routine-reports.js +52 -0
- package/workspace/lib/today-log.js +131 -0
- package/workspace/live-pill-round-test.js +11 -9
- package/workspace/metric-drafts-ui-test.js +3 -1
- package/workspace/milestone-pins-test.js +2 -1
- package/workspace/milestone-suggest-test.js +3 -1
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/panels-test.js +6 -4
- package/workspace/premium-board-actions-test.js +3 -1
- package/workspace/premium-chat-context-test.js +6 -6
- package/workspace/premium-chat-line-test.js +1 -1
- package/workspace/premium-chat-notes-test.js +1 -1
- package/workspace/premium-core-doc-issue-test.js +2 -1
- package/workspace/premium-rec-tab-test.js +2 -1
- package/workspace/premium-vw-backlog-test.js +3 -1
- package/workspace/premium-vw-cal-test.js +1 -1
- package/workspace/premium-vw-doc-test.js +2 -1
- package/workspace/premium-vw-item-test.js +3 -1
- package/workspace/premium-vw-jira-test.js +3 -1
- package/workspace/product-lane-test.js +2 -1
- package/workspace/program-charter-test.js +3 -1
- package/workspace/program-leave-test.js +3 -1
- package/workspace/program-order-test.js +2 -1
- package/workspace/program-panel-test.js +5 -3
- package/workspace/public/pm/bd-ini-panel.js +75 -8
- package/workspace/public/pm/bd-prog-panel.js +55 -8
- package/workspace/public/pm/bd-scroll.js +4 -2
- package/workspace/public/pm/bd-work.css +130 -0
- package/workspace/public/pm/bd-work.js +356 -0
- package/workspace/public/pm/cozy-board.css +3 -0
- package/workspace/public/pm/cozy-ev.css +52 -0
- package/workspace/public/pm/cozy-events-view.js +142 -0
- package/workspace/public/pm/cozy-events.css +107 -0
- package/workspace/public/pm/cozy-events.js +210 -0
- package/workspace/public/pm/cozy-evmodel.js +1 -1
- package/workspace/public/pm/cozy-library.css +36 -0
- package/workspace/public/pm/cozy-live-pill.js +3 -1
- package/workspace/public/pm/cozy-nav.js +70 -7
- package/workspace/public/pm/cozy-panels.js +1 -1
- package/workspace/public/pm/cozy-pick.css +3 -0
- package/workspace/public/pm/cozy-pick.js +6 -2
- package/workspace/public/pm/cozy-pop-work.css +165 -0
- package/workspace/public/pm/cozy-pop-work.js +427 -0
- package/workspace/public/pm/cozy-popup.css +113 -0
- package/workspace/public/pm/cozy-popup.js +408 -0
- package/workspace/public/pm/cozy-routine-model.js +111 -0
- package/workspace/public/pm/cozy-routine-pop.js +196 -0
- package/workspace/public/pm/cozy-routine.css +102 -0
- package/workspace/public/pm/cozy-routine.js +156 -0
- package/workspace/public/pm/cozy-schedwork.js +6 -5
- package/workspace/public/pm/cozy-settings.js +10 -1
- package/workspace/public/pm/cozy-today-app.js +236 -0
- package/workspace/public/pm/cozy-today-model.js +176 -0
- package/workspace/public/pm/cozy-today-page.css +100 -0
- package/workspace/public/pm/cozy-today-view.js +76 -0
- package/workspace/public/pm/cozy-viewer.js +66 -18
- package/workspace/public/pm/home-app.js +29 -6
- package/workspace/public/pm/home-ini.js +39 -7
- package/workspace/public/pm/library-model.js +69 -0
- package/workspace/public/pm/library-open.js +34 -0
- package/workspace/public/pm/page-chat.js +16 -4
- package/workspace/public/pm/pop-sessions.js +65 -0
- package/workspace/public/pm/pop-work-model.js +335 -0
- package/workspace/public/pm/premium-board.js +137 -11
- package/workspace/public/pm/premium-insights.js +14 -2
- package/workspace/public/pm/premium-library.js +122 -0
- package/workspace/public/pm/premium-shell.js +1 -1
- package/workspace/public/premium-board.html +1 -0
- package/workspace/public/premium-events.html +42 -0
- package/workspace/public/premium-library.html +31 -0
- package/workspace/public/premium-routine.html +31 -0
- package/workspace/public/today.html +50 -0
- package/workspace/ready-dash-ui-test.js +3 -1
- package/workspace/rename-test.js +2 -1
- package/workspace/run-tests.js +4 -1
- package/workspace/server.js +3 -2
- package/workspace/sort-order-test.js +2 -1
- package/workspace/split-merge-ui-test.js +3 -1
- package/workspace/stage-card-tasks-test.js +5 -3
- package/workspace/stage-card-test.js +2 -1
- package/workspace/task-card-test.js +2 -1
- package/workspace/task-delete-test.js +3 -1
- package/workspace/task-links-test.js +4 -2
- package/workspace/task-milestones-test.js +4 -2
- package/workspace/task-plans-test.js +3 -1
- package/workspace/task-press-test.js +3 -1
- package/workspace/task-views-test.js +10 -8
- package/workspace/test-lists/events-place.json +11 -0
- package/workspace/test-lists/library-place.json +9 -0
- package/workspace/test-lists/one-popup.json +9 -0
- package/workspace/test-lists/pop-work.json +9 -0
- package/workspace/test-lists/routine-place.json +9 -0
- package/workspace/test-lists/today-log.json +9 -0
- package/workspace/test-lists/work-view.json +9 -0
- package/workspace/timeline-holds-test.js +3 -1
- package/workspace/tk-tasks-test.js +3 -1
- package/workspace/viewer-trail-test.js +1 -1
- package/workspace/workflows-setup-test.js +1 -1
|
@@ -21,6 +21,13 @@
|
|
|
21
21
|
* are Adler's ears over the phone button (AdP6): Your move is the one place that says what is yours.
|
|
22
22
|
* THE CHAT (C5, board CsB): the tray's chat icon opens the one chat over the page you are on (pm/page-chat.js openCos), with a soft
|
|
23
23
|
* "You are on …" chip. A page that has its own chat column (Home) passes opts.chat() and the icon focuses that chat instead.
|
|
24
|
+
* THE RAIL (slice 1 of the six places, boards StToday/StWorkList/StSettings, 2026-11-19): on a desktop (wider than 760 px) the menu is
|
|
25
|
+
* not a floating button: #czMenu is drawn as one thin panel at the left edge of every page, always shown, and it is not counted as a panel.
|
|
26
|
+
* Places on top (Today, Work, Goals; Events, Library and Routine show once their slice ships and gives them an href), then at the foot the
|
|
27
|
+
* chat icon with the number of sessions that wait for you, Search, Guide and Settings. One press changes place. The pages leave its width
|
|
28
|
+
* free (body.cz-railon in cozy-ev.css). Until the place of the same name ships, Today is Home, Work is the Board, Goals is Intelligence.
|
|
29
|
+
* The chat icon calls window.czOpenChat() when a page has it (the popup with the chat), else today's chat. While no popup is there,
|
|
30
|
+
* the round Live button keeps its list at the foot of the rail. A phone keeps the floating button and its menu as they were.
|
|
24
31
|
* FROM THE TOP BAR (batch 31 item 5, board RcBmenu): openMenu({ anchor, rows }) opens the same menu under a page's own ⋯ (the phone
|
|
25
32
|
* chat has no round button). rows go on top of the places, each { label, icon, dot, go }; the menu closes and focus goes back to the anchor.
|
|
26
33
|
*/
|
|
@@ -29,15 +36,32 @@ import { fabLabel, bannerOf } from './cozy-evmodel.js';
|
|
|
29
36
|
import { mountToastFaces, loadPrefs } from './cozy-adler.js';
|
|
30
37
|
import { pmPost } from './http.js'; // Adler (batch 16 item 2): every toast carries his S face; Settings > Adler is read once
|
|
31
38
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
39
|
+
/* The six places (slice 1). A place shows once it has an href: Events, Library and Routine get theirs when their slice ships. Until then
|
|
40
|
+
* Today is today.html (slice 5; Home before it), Work is the Board and Goals is Intelligence; the keys stay the pages' own (home, board, insights). */
|
|
41
|
+
const RAIL_ICON = {
|
|
42
|
+
today: 'M12 8a4 4 0 1 0 0 8a4 4 0 1 0 0-8M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6l1.4 1.4M17 17l1.4 1.4M5.6 18.4L7 17M17 7l1.4-1.4',
|
|
43
|
+
work: 'M5.5 5h13a1.5 1.5 0 0 1 0 3h-13a1.5 1.5 0 0 1 0-3zM5.5 11h8a1.5 1.5 0 0 1 0 3h-8a1.5 1.5 0 0 1 0-3zM5.5 17h11a1.5 1.5 0 0 1 0 3h-11a1.5 1.5 0 0 1 0-3z',
|
|
44
|
+
goals: ICON.insights,
|
|
45
|
+
events: 'M7 5.5h10a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3v-8a3 3 0 0 1 3-3zM4 10h16M8.5 3.5v4M15.5 3.5v4',
|
|
46
|
+
library: 'M5 5.5h4.5v13H5zM9.5 5.5H14v13H9.5zM14.6 7.2l3.9-1 2.6 11.6-3.9 1z',
|
|
47
|
+
routine: 'M4 12a8 8 0 0 1 14-5.3M20 12a8 8 0 0 1-14 5.3M18 3v4h-4M6 21v-4h4',
|
|
48
|
+
};
|
|
49
|
+
const ALL_PLACES = [
|
|
50
|
+
{ key: 'home', label: 'Today', href: '/today.html', d: RAIL_ICON.today }, // slice 5: Today is its own page (Home with data-today)
|
|
51
|
+
{ key: 'board', label: 'Work', href: '/premium-board.html', d: RAIL_ICON.work },
|
|
52
|
+
{ key: 'insights', label: 'Goals', href: '/premium-intelligence.html', d: RAIL_ICON.goals },
|
|
53
|
+
{ key: 'events', label: 'Events', href: '/premium-events.html', d: RAIL_ICON.events },
|
|
54
|
+
{ key: 'library', label: 'Library', href: '/premium-library.html', d: RAIL_ICON.library }, // slice 7 (library-place)
|
|
55
|
+
{ key: 'routine', label: 'Routine', href: '/premium-routine.html', d: RAIL_ICON.routine }, // slice 8 shipped: Routine is a place
|
|
36
56
|
];
|
|
57
|
+
export const PLACES = ALL_PLACES.filter((p) => p.href);
|
|
58
|
+
const DESK = '(min-width: 761px)';
|
|
59
|
+
/** The rail is drawn on a desktop; a phone keeps the floating button. */
|
|
60
|
+
export const railOn = () => typeof matchMedia === 'function' && matchMedia(DESK).matches;
|
|
37
61
|
export { fabLabel };
|
|
38
62
|
const THEME_KEY = 'pmos.c3.theme';
|
|
39
63
|
const CSS = new URL('./cozy-ev.css', import.meta.url).href;
|
|
40
|
-
const N = { news: 0, stale: null, here: 'home', calls: 0, fresh: new Set(), extra: [], from: null };
|
|
64
|
+
const N = { news: 0, stale: null, here: 'home', calls: 0, fresh: new Set(), extra: [], from: null, waiting: 0, rail: false };
|
|
41
65
|
let OPEN = null; // mountNav's own open(o): openMenu reaches the one menu of the page
|
|
42
66
|
/* A place that just opened (onboarding B3, ObA4Gradual; GET /api/moments places[p].dot): its menu row gets one soft blue dot until the PM
|
|
43
67
|
* first opens it. Reports live in Intelligence, so their dot is on the Intelligence row. */
|
|
@@ -76,6 +100,24 @@ export function menuHtml(here, o = {}) {
|
|
|
76
100
|
+ '</div>';
|
|
77
101
|
}
|
|
78
102
|
|
|
103
|
+
/** The rail's markup; pure, so a unit test can read it. here: home | board | insights. o: { calls, stale, fresh, waiting }
|
|
104
|
+
* calls: the calls that are yours (Today's number); waiting: the sessions that wait for you (the chat icon's number). Zero is silence. */
|
|
105
|
+
export function railHtml(here, o = {}) {
|
|
106
|
+
const n = (v) => (v > 0 ? `<i class="ev-rn" aria-hidden="true">${v > 99 ? '99+' : v}</i>` : '');
|
|
107
|
+
const places = PLACES.map((p) => {
|
|
108
|
+
const cur = p.key === here, calls = p.key === 'home' && o.calls > 0, opened = !cur && !!(o.fresh && o.fresh.has(p.key));
|
|
109
|
+
const lab = calls ? `${p.label}. ${callWords(o.calls)}` : opened ? `${p.label}. New: it has something to show now` : '';
|
|
110
|
+
return `<a class="ev-rp" href="${p.href}"${cur ? ' aria-current="page"' : ''}${lab ? ` aria-label="${esc(lab)}"` : ''}>${svg(p.d, 20)}<span>${esc(p.label)}</span>${calls ? n(o.calls) : opened ? '<i class="ev-rd" aria-hidden="true"></i>' : ''}</a>`;
|
|
111
|
+
}).join('');
|
|
112
|
+
const w = o.waiting > 0 ? `Ask PMOS. ${o.waiting === 1 ? 'One session waits' : o.waiting + ' sessions wait'} for you` : 'Ask PMOS';
|
|
113
|
+
return places + '<div class="ev-rsp"></div><div class="ev-rtray">'
|
|
114
|
+
+ `<button type="button" class="ev-rb" data-cz-chat aria-label="${esc(w)}" title="${esc(w)}">${svg(ICON.chat, 20)}${n(o.waiting)}</button>`
|
|
115
|
+
+ `<button type="button" class="ev-rb" data-cz-search aria-label="Search (⌘K)" title="Search ⌘K">${svg(ICON.search, 20)}</button>`
|
|
116
|
+
+ `<button type="button" class="ev-rb" data-cz-guide aria-label="Guide" title="Guide">${svg(ICON.guide, 20)}</button>`
|
|
117
|
+
+ `<button type="button" class="ev-rb" data-cz-settings aria-label="Settings${o.stale ? '. ' + esc(o.stale.text) : ''}" title="Settings">${svg(ICON.settings, 20)}${o.stale ? '<i class="ev-rd risk" aria-hidden="true"></i>' : ''}</button>`
|
|
118
|
+
+ '</div>';
|
|
119
|
+
}
|
|
120
|
+
|
|
79
121
|
function addCss(doc) {
|
|
80
122
|
if (doc.querySelector(`link[href="${CSS}"]`)) return;
|
|
81
123
|
const l = doc.createElement('link'); l.rel = 'stylesheet'; l.href = CSS; doc.head.append(l);
|
|
@@ -106,6 +148,20 @@ export function mountNav(here, doc = document, opts = {}) {
|
|
|
106
148
|
mountToastFaces(doc); loadPrefs();
|
|
107
149
|
const fab = w.querySelector('#czFab'), menu = w.querySelector('#czMenu'), scrim = w.querySelector('#czScrim');
|
|
108
150
|
const draw = () => {
|
|
151
|
+
N.rail = railOn();
|
|
152
|
+
doc.body.classList.toggle('cz-railon', N.rail);
|
|
153
|
+
doc.body.classList.toggle('cz-chatpop', N.rail && typeof window.czOpenChat === 'function'); // the popup's chat holds the sessions: no Live button
|
|
154
|
+
menu.classList.toggle('ev-rail', N.rail);
|
|
155
|
+
menu.setAttribute('aria-label', N.rail ? 'Places' : 'Menu');
|
|
156
|
+
if (N.rail) {
|
|
157
|
+
if (menu.hidden) { menu.hidden = false; scrim.hidden = true; }
|
|
158
|
+
const f = doc.activeElement && menu.contains(doc.activeElement) ? [...menu.querySelectorAll('a, button')].indexOf(doc.activeElement) : -1;
|
|
159
|
+
const h = railHtml(here, { calls: N.calls, stale: N.stale, fresh: N.fresh, waiting: N.waiting });
|
|
160
|
+
if (menu.__h !== h) { menu.__h = h; menu.innerHTML = h; if (f >= 0) { const e = menu.querySelectorAll('a, button')[f]; if (e) e.focus(); } }
|
|
161
|
+
w.querySelector('#czFdRisk').hidden = true; w.querySelector('#czFdYou').hidden = true;
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
menu.__h = '';
|
|
109
165
|
menu.innerHTML = menuHtml(here, { calls: N.calls, stale: N.stale, fresh: N.fresh, extra: N.extra });
|
|
110
166
|
const opened = [...N.fresh].some((k) => k !== here);
|
|
111
167
|
// one dot: amber while a source needs the PM, else blue while a call is theirs or a place has something new
|
|
@@ -114,6 +170,7 @@ export function mountNav(here, doc = document, opts = {}) {
|
|
|
114
170
|
if (menu.hidden) fab.setAttribute('aria-label', fabLabel(here, false, N.stale) + (opened ? '. A place has something new to show' : '') + (N.calls > 0 ? '. ' + callWords(N.calls) : ''));
|
|
115
171
|
};
|
|
116
172
|
const set = (open) => {
|
|
173
|
+
if (N.rail) { if (N.from) { N.from.setAttribute('aria-expanded', 'false'); N.from = null; N.extra = []; } draw(); return; } // the rail is always shown
|
|
117
174
|
if (!open && N.from) { N.from.setAttribute('aria-expanded', 'false'); N.from = null; N.extra = []; w.classList.remove('cz-top'); }
|
|
118
175
|
menu.hidden = !open; scrim.hidden = !open; fab.setAttribute('aria-expanded', String(open));
|
|
119
176
|
fab.setAttribute('aria-label', fabLabel(here, open, N.stale)); fab.innerHTML = svg(open ? ICON.close : ICON.menu, 22);
|
|
@@ -121,6 +178,7 @@ export function mountNav(here, doc = document, opts = {}) {
|
|
|
121
178
|
if (open) { const f = menu.querySelector('a, button'); if (f) f.focus(); }
|
|
122
179
|
};
|
|
123
180
|
OPEN = (o) => {
|
|
181
|
+
if (N.rail) return; // a desktop has no menu to open: the rail is the menu (the ⋯ that calls this is the phone chat's)
|
|
124
182
|
const back = N.from;
|
|
125
183
|
if (!menu.hidden) { set(false); if (back === o.anchor) { if (back) back.focus(); return; } }
|
|
126
184
|
N.from = o.anchor || null; N.extra = o.rows || [];
|
|
@@ -131,18 +189,20 @@ export function mountNav(here, doc = document, opts = {}) {
|
|
|
131
189
|
draw();
|
|
132
190
|
fab.addEventListener('click', () => set(menu.hidden));
|
|
133
191
|
scrim.addEventListener('click', () => set(false));
|
|
134
|
-
doc.addEventListener('keydown', (e) => { if (e.key === 'Escape' && !menu.hidden) { e.stopPropagation(); const back = N.from || fab; set(false); back.focus(); } }, true);
|
|
192
|
+
doc.addEventListener('keydown', (e) => { if (e.key === 'Escape' && !menu.hidden && !N.rail) { e.stopPropagation(); const back = N.from || fab; set(false); back.focus(); } }, true);
|
|
135
193
|
// set() redraws the button's icon, so the pressed icon may be gone from the page by now: only a press still on the page closes the menu
|
|
136
194
|
// (the ⋯ that opened it toggles it itself)
|
|
137
|
-
doc.addEventListener('click', (e) => { if (!menu.hidden && e.target.isConnected && !w.contains(e.target) && !(N.from && N.from.contains(e.target))) set(false); });
|
|
195
|
+
doc.addEventListener('click', (e) => { if (!menu.hidden && !N.rail && e.target.isConnected && !w.contains(e.target) && !(N.from && N.from.contains(e.target))) set(false); });
|
|
138
196
|
menu.addEventListener('click', (e) => {
|
|
139
197
|
// the page you are on, pressed again: a page that passes opts.here goes back to its start without a reload (Home: the list, no page open)
|
|
140
198
|
const a = e.target.closest('a[aria-current="page"]');
|
|
199
|
+
if (a && N.rail && !opts.here) { e.preventDefault(); return; } // the rail: pressing the place you are on reloads nothing
|
|
141
200
|
if (a && opts.here && !e.metaKey && !e.ctrlKey && !e.shiftKey) { e.preventDefault(); set(false); opts.here(); return; }
|
|
142
201
|
const b = e.target.closest('button'); if (!b) return;
|
|
143
202
|
const x = 'czExtra' in b.dataset ? N.extra[+b.dataset.czExtra] : null;
|
|
144
203
|
set(false);
|
|
145
204
|
if (x) { if (x.go) x.go(); return; }
|
|
205
|
+
if ('czChat' in b.dataset && N.rail && typeof window.czOpenChat === 'function') { window.czOpenChat(); return; } // the popup with the chat (slice 2)
|
|
146
206
|
if ('czChat' in b.dataset) { if (opts.chat) opts.chat(); else import('./page-chat.js').then((M) => M.openCos({ here: opts.where ? opts.where() : PLACES.find((p) => p.key === here) ? PLACES.find((p) => p.key === here).label : '' })); }
|
|
147
207
|
else if ('czSearch' in b.dataset) import('./cozy-search.js').then((M) => M.openSearch({ ...(opts.search ? { go: opts.search() } : {}), ...(opts.scope ? { scope: opts.scope() } : {}) }));
|
|
148
208
|
// a stale source opens Settings at Connectors, the stale one first (FmA3Settings: open where it matters)
|
|
@@ -178,6 +238,9 @@ export function mountNav(here, doc = document, opts = {}) {
|
|
|
178
238
|
doc.addEventListener('cz:news', (e) => { if (e.detail && Number.isFinite(e.detail.count)) { N.news = e.detail.count; draw(); } else read(); });
|
|
179
239
|
doc.addEventListener('cz:calls', (e) => { const n = e.detail && Number(e.detail.count); N.calls = Number.isFinite(n) && n > 0 ? n : 0; draw(); });
|
|
180
240
|
doc.addEventListener('adler:prefs', () => draw());
|
|
241
|
+
// the chat icon's number: the sessions that wait for you (cozy-live-pill.js counts them)
|
|
242
|
+
doc.addEventListener('cz:live-n', (e) => { const a = e.detail && Number(e.detail.asks); const v = Number.isFinite(a) && a > 0 ? a : 0; if (v !== N.waiting) { N.waiting = v; draw(); } });
|
|
243
|
+
if (typeof matchMedia === 'function') { const mq = matchMedia(DESK); const f = () => { if (!N.rail) set(false); draw(); }; if (mq.addEventListener) mq.addEventListener('change', f); }
|
|
181
244
|
window.addEventListener('pm:sources', (e) => { const d = e.detail; if (d && d.ok) { N.stale = bannerOf(d.sources); draw(); } });
|
|
182
245
|
return w;
|
|
183
246
|
}
|
|
@@ -466,7 +466,7 @@ function openBeside(x) {
|
|
|
466
466
|
|
|
467
467
|
/* ── a new or closed Viewer ── */
|
|
468
468
|
function onViewer(d) {
|
|
469
|
-
if (!S.on || !d || !d.panel) return;
|
|
469
|
+
if (!S.on || !d || !d.panel || d.pop) return; // the popup (cozy-popup.js) is the one slide-over: it is never a panel of the row
|
|
470
470
|
if (d.shut) { drop(d.panel); S.fr = []; layout(); return; }
|
|
471
471
|
mark(d.panel);
|
|
472
472
|
if (S.row.includes(d.panel) || S.over === d.panel || S.away.includes(d.panel)) {
|
|
@@ -39,3 +39,6 @@
|
|
|
39
39
|
.ppk-menu.sheet .ppk-tk { width: 24px; height: 24px; border-radius: 8px; }
|
|
40
40
|
@media (prefers-reduced-motion: no-preference) { .ppk-menu.sheet { animation: ppk-up .18s ease-out; } }
|
|
41
41
|
@keyframes ppk-up { from { transform: translateY(24px); opacity: .6; } }
|
|
42
|
+
/* the chip with names (Work and Goals, slice 1): the full product name, then "+2" in grey */
|
|
43
|
+
.ppk-nmc { padding: 0 2px 0 9px; color: var(--cz-ink); white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
|
|
44
|
+
.ppk-nmc em { font-style: normal; color: var(--cz-ink3); }
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* A saved pick fires pp:changed on the window (detail: the answer); each page follows it there
|
|
7
7
|
* tonesOf(products) → { [ws]: 0 | 1 | 2 }: a product's tint, by its place with the default workspace first (Home's groups use the same)
|
|
8
8
|
* codeOf(p) → the tile's letters: the workspace's own abbreviation, else two letters of its name
|
|
9
|
-
* chipHtml(P, o) → the chip: the ticked products' tiles, overlapped, +N past 3; the word All when every one is ticked
|
|
9
|
+
* chipHtml(P, o) → the chip: the ticked products' tiles, overlapped, +N past 3; the word All when every one is ticked.
|
|
10
|
+
* o.names: the full name instead ("pmos-idpf", "pmos-idpf +2", "All products"), as Work and Goals show it
|
|
10
11
|
* openPicker(chip, o) → the list under the chip (a sheet on a phone). o: { P, label, lines(ws), tones?, onApply(on), onAdd()?, note? };
|
|
11
12
|
* Add a product opens Settings › Workspaces (the add flow) unless the page gives its own onAdd
|
|
12
13
|
*
|
|
@@ -48,7 +49,10 @@ export function chipWords(P, label) {
|
|
|
48
49
|
}
|
|
49
50
|
export function chipHtml(P, o = {}) {
|
|
50
51
|
const T = o.tones || tonesOf(P ? P.products : []), on = P ? P.products.filter((p) => p.on) : [];
|
|
51
|
-
|
|
52
|
+
// o.names (Work and Goals, slice 1): the full name of the first ticked product, "+2" for the others, "All products" when every one is ticked
|
|
53
|
+
const first = on.slice().sort((a, b) => (b.primary ? 1 : 0) - (a.primary ? 1 : 0))[0];
|
|
54
|
+
const inner = !P ? '' : o.names ? `<span class="ppk-all ppk-nmc">${isAll(P) ? 'All products' : first ? esc(first.name) + (on.length > 1 ? ` <em>+${on.length - 1}</em>` : '') : 'No product'}</span>`
|
|
55
|
+
: isAll(P) ? '<span class="ppk-all">All</span>'
|
|
52
56
|
: `<span class="ppk-stk">${on.slice(0, 3).map((p) => `<i class="ppk-t t${T[p.ws] || 0}">${esc(codeOf(p))}</i>`).join('')}${on.length > 3 ? `<i class="ppk-t ppk-n">+${on.length - 3}</i>` : ''}</span>`;
|
|
53
57
|
const words = chipWords(P, o.label || 'Products'), id = o.id || 'ppChip', open = !!cur && cur.id === id; // a page that draws again keeps the open state
|
|
54
58
|
return `<button type="button" class="ppk-chip${open ? ' open' : ''}" id="${esc(id)}"${o.attrs ? ' ' + o.attrs : ''} aria-haspopup="menu" aria-expanded="${open}" aria-label="${esc(words)}" title="${esc(words)}">${inner}${svg(open ? CHEV_U : CHEV_D, 14)}</button>`;
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
/* pm/cozy-pop-work.css — what the popup shows for work (slice 3 of the six-place navigation; boards 3, 20, 21, 22, 25, 26, 27). pm/cozy-pop-work.js draws
|
|
2
|
+
* it. One container: the popup's white panel; each table sits in one card with a thin border; the Overview is one grey box. Tokens: cozy.css. */
|
|
3
|
+
.pw { container-type: inline-size; display: flex; flex-direction: column; gap: 22px; padding: 4px 4px 32px; font-family: var(--cz-sans); font-size: var(--fs-body); line-height: var(--lh-body, 1.5); color: var(--cz-ink); }
|
|
4
|
+
.pw h3 { margin: 0; font-size: var(--fs-section); font-weight: var(--fw-strong); color: var(--cz-ink); }
|
|
5
|
+
.pw h4 { margin: 8px 0 6px; font-size: var(--fs-row); font-weight: var(--fw-strong); }
|
|
6
|
+
.pw .warn { color: var(--cz-late); }
|
|
7
|
+
.pw .grey { color: var(--cz-ink3); }
|
|
8
|
+
|
|
9
|
+
/* icon buttons */
|
|
10
|
+
.pw-ib { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent; color: var(--cz-ink2); cursor: pointer; padding: 0; flex: none; }
|
|
11
|
+
.pw-ib:hover, .pw-ib[aria-pressed="true"] { background: var(--cz-well); color: var(--cz-ink); }
|
|
12
|
+
.pw-ib.sm { width: 26px; height: 26px; border-radius: 999px; box-shadow: 0 0 0 1px var(--cz-hair) inset; background: var(--cz-card); }
|
|
13
|
+
.pw-ib.xs { width: 22px; height: 22px; border-radius: 6px; }
|
|
14
|
+
.pw-ib.solid { width: 38px; height: 38px; border-radius: 999px; background: var(--cz-solid); color: var(--cz-onsolid); }
|
|
15
|
+
.pw-ib:focus-visible, .pw button:focus-visible, .pw [data-pw-sum]:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
|
|
16
|
+
|
|
17
|
+
/* Overview: one grey box (board 3) */
|
|
18
|
+
.pw-ov { background: var(--cz-well); border-radius: 16px; padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 12px; }
|
|
19
|
+
.pw-ovh { display: flex; align-items: center; justify-content: space-between; }
|
|
20
|
+
.pw-ovh h3 { font-size: var(--fs-meta); font-weight: var(--fw-strong); letter-spacing: .08em; text-transform: uppercase; color: var(--cz-ink2); }
|
|
21
|
+
.pw-det { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--cz-ink2); font: inherit; font-size: var(--fs-meta); cursor: pointer; padding: 2px 4px; border-radius: 6px; }
|
|
22
|
+
.pw-det:hover { color: var(--cz-ink); background: var(--cz-well2); }
|
|
23
|
+
.pw-sum { display: flex; align-items: flex-start; gap: 6px; }
|
|
24
|
+
.pw-sum-t { margin: 0; flex: 1; font-size: var(--fs-row); }
|
|
25
|
+
.pw-spark { color: var(--cz-blue); display: inline-flex; margin-top: 4px; }
|
|
26
|
+
.pw-lead { cursor: text; border-radius: 4px; }
|
|
27
|
+
.pw-lead:hover { background: var(--cz-card); box-shadow: 0 0 0 3px var(--cz-card); }
|
|
28
|
+
.pw-sumed { width: 100%; box-sizing: border-box; font: inherit; font-size: var(--fs-row); color: var(--cz-ink); background: var(--cz-card); border: 1px solid var(--cz-blue); border-radius: 10px; padding: 8px 10px; resize: vertical; }
|
|
29
|
+
.pw-sugs { background: var(--cz-card); border: 1px solid var(--cz-bluebg); border-radius: 12px; padding: 8px 12px 6px; }
|
|
30
|
+
.pw-sugh { margin: 0 0 4px; font-size: var(--fs-meta); color: var(--cz-blueink, var(--cz-blue)); display: flex; align-items: center; gap: 4px; }
|
|
31
|
+
.pw-sug { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-top: 1px solid var(--cz-hair); }
|
|
32
|
+
.pw-sugh + .pw-sug { border-top: 0; }
|
|
33
|
+
.pw-sug.under { border-top: 0; padding: 0; }
|
|
34
|
+
.pw-sugt { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; border: 0; background: none; font: inherit; color: var(--cz-ink); text-align: left; cursor: pointer; padding: 4px 0; }
|
|
35
|
+
.pw-sugt svg:first-child { color: var(--cz-blue); flex: none; }
|
|
36
|
+
.pw-sugt svg:last-child { color: var(--cz-ink3); flex: none; }
|
|
37
|
+
.pw-sugt span { overflow: hidden; text-overflow: ellipsis; }
|
|
38
|
+
.pw-sugb { display: inline-flex; gap: 6px; flex: none; }
|
|
39
|
+
.pw-lk { border: 0; background: none; color: var(--cz-blue); font: inherit; font-size: var(--fs-meta); cursor: pointer; padding: 4px 0; }
|
|
40
|
+
.pw-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; background: var(--cz-card); border: 1px solid var(--cz-hair); border-radius: 12px; overflow: hidden; }
|
|
41
|
+
.pw-f { display: grid; grid-template-columns: 130px 1fr; border-top: 1px solid var(--cz-hair); min-width: 0; }
|
|
42
|
+
.pw-f:nth-child(-n+2) { border-top: 0; }
|
|
43
|
+
.pw-f:nth-child(even) { border-left: 1px solid var(--cz-hair); }
|
|
44
|
+
.pw-f dt { padding: 7px 12px; background: var(--cz-well); color: var(--cz-ink2); font-size: var(--fs-meta); }
|
|
45
|
+
.pw-f dd { margin: 0; padding: 0; min-width: 0; }
|
|
46
|
+
.pw-fv { display: block; width: 100%; height: 100%; box-sizing: border-box; padding: 7px 12px; border: 0; background: none; font: inherit; color: var(--cz-ink); text-align: left; overflow: hidden; text-overflow: ellipsis; }
|
|
47
|
+
button.pw-fv { cursor: pointer; }
|
|
48
|
+
button.pw-fv:hover { background: var(--cz-well); }
|
|
49
|
+
@container (max-width: 620px) { .pw-facts { grid-template-columns: 1fr; } .pw-f:nth-child(even) { border-left: 0; } .pw-f:nth-child(2) { border-top: 1px solid var(--cz-hair); } }
|
|
50
|
+
|
|
51
|
+
/* a section and its card */
|
|
52
|
+
.pw-sec { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
|
|
53
|
+
.pw-sech { display: flex; align-items: center; gap: 6px; min-height: 32px; }
|
|
54
|
+
.pw-tools { margin-left: auto; display: inline-flex; gap: 2px; }
|
|
55
|
+
.pw-card { border: 1px solid var(--cz-hair); border-radius: 14px; overflow: clip; background: var(--cz-card); }
|
|
56
|
+
|
|
57
|
+
/* the breakdown: rows on the left, the timeline on the right (boards 3, 20) */
|
|
58
|
+
.pw-wbs { --pw-tl: 36%; }
|
|
59
|
+
.pw-tr { display: grid; grid-template-columns: minmax(0, 1fr) 112px 168px var(--pw-tl); align-items: stretch; min-height: 40px; border-top: 1px solid var(--cz-hair); }
|
|
60
|
+
.pw-wbs.nost .pw-tr { grid-template-columns: minmax(0, 1fr) 168px var(--pw-tl); }
|
|
61
|
+
.pw-wbs.nodt .pw-tr { grid-template-columns: minmax(0, 1fr) 112px var(--pw-tl); }
|
|
62
|
+
.pw-wbs.nost.nodt .pw-tr { grid-template-columns: minmax(0, 1fr) var(--pw-tl); }
|
|
63
|
+
.pw-wbs.notl .pw-tr { grid-template-columns: minmax(0, 1fr) 110px 160px; }
|
|
64
|
+
.pw-wbs.notl.nost .pw-tr { grid-template-columns: minmax(0, 1fr) 160px; }
|
|
65
|
+
.pw-wbs.notl.nodt .pw-tr { grid-template-columns: minmax(0, 1fr) 110px; }
|
|
66
|
+
.pw-wbs.notl.nost.nodt .pw-tr { grid-template-columns: minmax(0, 1fr); }
|
|
67
|
+
.pw-tr > span { display: flex; align-items: center; min-width: 0; padding: 0 10px; }
|
|
68
|
+
.pw-th { border-top: 0; background: var(--cz-well); color: var(--cz-ink2); font-size: var(--fs-meta); min-height: 38px; position: sticky; top: 0; z-index: 1; }
|
|
69
|
+
.pw-th > span:first-child { padding-left: 16px; }
|
|
70
|
+
.pw-it { padding-left: 14px !important; gap: 6px; }
|
|
71
|
+
.pw-st, .pw-dt { color: var(--cz-ink2); font-size: var(--fs-meta); white-space: nowrap; }
|
|
72
|
+
.pw-dt.warn { color: var(--cz-late); }
|
|
73
|
+
.pw-stg { display: flex; align-items: center; gap: 8px; min-width: 0; border: 0; background: none; font: inherit; color: var(--cz-ink); cursor: pointer; padding: 0; text-align: left; }
|
|
74
|
+
.pw-stg:disabled { cursor: default; }
|
|
75
|
+
.pw-stg b { font-weight: var(--fw-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
76
|
+
.pw-stg svg { color: var(--cz-ink3); flex: none; }
|
|
77
|
+
.pw-stg small { color: var(--cz-ink2); font-size: var(--fs-meta); white-space: nowrap; }
|
|
78
|
+
.pw-stg.lv b { font-weight: var(--fw-strong); }
|
|
79
|
+
.pw-grp { font-weight: var(--fw-strong); color: var(--cz-ink2); }
|
|
80
|
+
.pw-n { color: var(--cz-ink2); min-width: 14px; }
|
|
81
|
+
.pw-kr .pw-it { padding-left: 38px !important; }
|
|
82
|
+
.pw-bul { width: 5px; height: 5px; border-radius: 99px; background: var(--cz-ink); flex: none; }
|
|
83
|
+
.pw-bul.ms { width: 7px; height: 7px; border-radius: 1px; transform: rotate(45deg); background: none; box-shadow: 0 0 0 1.5px var(--cz-ink) inset; }
|
|
84
|
+
.pw-kr.done .pw-tt { color: var(--cz-ink3); text-decoration: line-through; }
|
|
85
|
+
.pw-tt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 0; background: none; font: inherit; color: var(--cz-ink); padding: 2px 0; text-align: left; cursor: text; }
|
|
86
|
+
.pw-namei { flex: 1; min-width: 0; font: inherit; color: var(--cz-ink); border: 1px solid var(--cz-blue); border-radius: 8px; padding: 3px 8px; background: var(--cz-card); }
|
|
87
|
+
.pw-ib.hov { opacity: 0; }
|
|
88
|
+
.pw-kr:hover .pw-ib.hov, .pw-ib.hov:focus-visible { opacity: 1; }
|
|
89
|
+
.pw-cell { border: 0; background: none; font: inherit; color: inherit; padding: 3px 6px; margin-left: -6px; border-radius: 6px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
|
|
90
|
+
.pw-cell:hover { background: var(--cz-well); }
|
|
91
|
+
.pw-cell.empty { color: var(--cz-ink3); opacity: 0; }
|
|
92
|
+
.pw-kr:hover .pw-cell.empty, .pw-cell.empty:focus-visible { opacity: 1; }
|
|
93
|
+
.pw-dn { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; font: inherit; color: var(--cz-ink2); cursor: pointer; padding: 0 0 0 24px; }
|
|
94
|
+
.pw-dr .pw-it { padding-left: 38px !important; }
|
|
95
|
+
.pw-sugrow { grid-template-columns: minmax(0, 1fr) !important; min-height: 34px; }
|
|
96
|
+
.pw-sugrow .pw-it { padding-left: 52px !important; font-size: var(--fs-meta); }
|
|
97
|
+
.pw-add { grid-template-columns: minmax(0, 1fr) !important; min-height: 36px; }
|
|
98
|
+
.pw-add .pw-it { padding-left: 34px !important; }
|
|
99
|
+
.pw-addf { display: flex; align-items: center; gap: 6px; flex: 1; color: var(--cz-ink3); }
|
|
100
|
+
.pw-addf input { flex: 1; border: 0; background: none; font: inherit; color: var(--cz-ink); padding: 4px 0; outline: none; }
|
|
101
|
+
.pw-addf input::placeholder { color: var(--cz-ink3); }
|
|
102
|
+
.pw-empty > span { color: var(--cz-ink3); padding: 0 16px !important; }
|
|
103
|
+
|
|
104
|
+
/* the timeline cell */
|
|
105
|
+
.pw-tl { position: relative; border-left: 1px solid var(--cz-hair); overflow: hidden; min-height: 40px; }
|
|
106
|
+
.pw-tlh { overflow: visible; display: flex; align-items: center; gap: 4px; padding: 0 6px; }
|
|
107
|
+
.pw-tlh .pw-ib, .pw-span { position: relative; z-index: 2; }
|
|
108
|
+
.pw-span { display: inline-flex; align-items: center; gap: 2px; border: 0; border-radius: 6px; background: var(--cz-card); color: var(--cz-ink); font: inherit; font-size: var(--fs-meta); padding: 2px 6px; cursor: pointer; box-shadow: 0 0 0 1px var(--cz-hair); }
|
|
109
|
+
.pw-mk { position: absolute; top: 50%; transform: translate(-1px, -50%); font-size: var(--fs-meta); color: var(--cz-ink2); padding-left: 6px; border-left: 1px solid var(--cz-hair); line-height: 18px; pointer-events: none; }
|
|
110
|
+
.pw-tday { position: absolute; top: 4px; transform: translateX(-50%); font-size: var(--fs-badge); font-weight: var(--fw-strong); color: var(--cz-onsolid); background: var(--cz-solid); padding: 0 6px; border-radius: 99px; line-height: 16px; pointer-events: none; z-index: 1; }
|
|
111
|
+
.pw-now { position: absolute; top: 0; bottom: 0; width: 1.5px; background: var(--cz-ink2); transform: translateX(-.75px); pointer-events: none; }
|
|
112
|
+
.pw-bar { position: absolute; top: 50%; height: 14px; margin-top: -7px; border-radius: 99px; background: var(--cz-c-d9dce1); overflow: hidden; }
|
|
113
|
+
.pw-bar.t { height: 12px; margin-top: -6px; }
|
|
114
|
+
.pw-bar.dot { min-width: 10px; }
|
|
115
|
+
.pw-bar b { display: block; height: 100%; background: var(--cz-c-8c929b); }
|
|
116
|
+
.pw-late { position: absolute; top: 50%; height: 3px; margin-top: -1.5px; background: var(--cz-late); border-radius: 2px; }
|
|
117
|
+
.pw-late::after { content: ''; position: absolute; right: -3px; top: -2px; width: 7px; height: 7px; border-radius: 99px; background: var(--cz-late); }
|
|
118
|
+
.pw-dia { position: absolute; top: 50%; width: 9px; height: 9px; margin: -5.5px 0 0 -5.5px; transform: rotate(45deg); background: var(--cz-card); border: 1.5px solid var(--cz-late); }
|
|
119
|
+
.pw-key { display: flex; gap: 18px; flex-wrap: wrap; margin: 0; font-size: var(--fs-meta); color: var(--cz-ink2); }
|
|
120
|
+
.pw-key span { display: inline-flex; align-items: center; gap: 6px; }
|
|
121
|
+
.k-bar { width: 26px; height: 9px; border-radius: 99px; background: linear-gradient(90deg, var(--cz-c-8c929b) 50%, var(--cz-c-d9dce1) 50%); }
|
|
122
|
+
.k-dia { width: 8px; height: 8px; transform: rotate(45deg); border: 1.5px solid var(--cz-late); }
|
|
123
|
+
.k-late { width: 22px; height: 3px; border-radius: 2px; background: var(--cz-late); }
|
|
124
|
+
|
|
125
|
+
/* artefacts (board 21) */
|
|
126
|
+
.pw-ar { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; min-height: 34px; border-top: 1px solid var(--cz-hair); padding: 0 16px; gap: 10px; }
|
|
127
|
+
.pw-arts.nok .pw-ar { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
|
|
128
|
+
.pw-arts.now .pw-ar { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
|
|
129
|
+
.pw-arts.nok.now .pw-ar { grid-template-columns: minmax(0, 1fr); }
|
|
130
|
+
.pw-ar.pw-th { border-top: 0; }
|
|
131
|
+
.pw-ar > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
132
|
+
.pw-an { border: 0; background: none; font: inherit; font-weight: var(--fw-strong); color: var(--cz-ink); padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
|
|
133
|
+
.pw-an:hover { text-decoration: underline; }
|
|
134
|
+
.pw-an svg { color: var(--cz-ink3); flex: none; }
|
|
135
|
+
.pw-ar.miss { color: var(--cz-ink3); }
|
|
136
|
+
.pw-addart { width: 100%; border: 0; border-top: 1px solid var(--cz-hair); background: none; font: inherit; color: var(--cz-ink2); cursor: pointer; display: flex !important; gap: 8px; text-align: left; }
|
|
137
|
+
.pw-addart:hover { background: var(--cz-well); color: var(--cz-ink); }
|
|
138
|
+
|
|
139
|
+
/* the suggestion as its own page (board 22) */
|
|
140
|
+
.pw-sp { gap: 14px; }
|
|
141
|
+
.pw-sp p { margin: 0; }
|
|
142
|
+
.pw-spc { position: relative; border: 1px solid var(--cz-bluebg); border-radius: 16px; padding: 14px 120px 14px 18px; }
|
|
143
|
+
.pw-spc h3 { font-size: var(--fs-panel); font-weight: var(--fw-strong); margin-top: 2px; }
|
|
144
|
+
.pw-spb { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: inline-flex; gap: 10px; align-items: center; }
|
|
145
|
+
.pw-spb .pw-ib:not(.solid) { width: 38px; height: 38px; border-radius: 99px; box-shadow: 0 0 0 1px var(--cz-hair) inset; }
|
|
146
|
+
.pw-chg { display: block; }
|
|
147
|
+
.pw-cr { display: grid; grid-template-columns: 1.3fr 1fr 1fr; min-height: 38px; align-items: center; border-top: 1px solid var(--cz-hair); padding: 0 14px; gap: 10px; }
|
|
148
|
+
.pw-cr.pw-th { border-top: 0; }
|
|
149
|
+
.pw-ul { margin: 0; padding-left: 20px; }
|
|
150
|
+
.pw-src { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 42px; padding: 0 14px; border: 0; border-top: 1px solid var(--cz-hair); background: none; font: inherit; color: var(--cz-ink); text-align: left; cursor: pointer; }
|
|
151
|
+
.pw-src:first-child { border-top: 0; }
|
|
152
|
+
.pw-src:hover { background: var(--cz-well); }
|
|
153
|
+
.pw-ask { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--cz-blue); font: inherit; font-weight: var(--fw-strong); cursor: pointer; padding: 6px 0; }
|
|
154
|
+
|
|
155
|
+
/* the tune menu's switches */
|
|
156
|
+
.hi-pop .pw-sw { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
|
|
157
|
+
.hi-pop .pw-sw i { width: 30px; height: 18px; border-radius: 99px; background: var(--cz-well2); position: relative; flex: none; }
|
|
158
|
+
.hi-pop .pw-sw i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 99px; background: var(--cz-card); transition: left .15s; }
|
|
159
|
+
.hi-pop .pw-sw[aria-checked="true"] i { background: var(--cz-blue); }
|
|
160
|
+
.hi-pop .pw-sw[aria-checked="true"] i::after { left: 14px; }
|
|
161
|
+
.pw-lead.ph { color: var(--cz-ink3); }
|
|
162
|
+
.pw-lead.ph::after { content: '.'; }
|
|
163
|
+
.pw-facts .warn, .pw-fv .warn { color: var(--cz-late); }
|
|
164
|
+
/* a narrow popup: the timeline gives way first (the hide button brings it back on a wider screen) */
|
|
165
|
+
@container (max-width: 640px) { .pw-wbs .pw-tr { grid-template-columns: minmax(0, 1fr) 96px 120px !important; } .pw-wbs .pw-tl { display: none; } .pw-sugrow, .pw-add { grid-template-columns: minmax(0, 1fr) !important; } }
|