create-pmos 0.398.0 → 0.399.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 +13 -13
- 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/briefing-premium-adddoc-test.js +18 -14
- package/workspace/briefing-premium-board-test.js +80 -48
- package/workspace/briefing-premium-calendar-2-test.js +36 -36
- package/workspace/briefing-premium-calendar-3-test.js +39 -39
- package/workspace/briefing-premium-calendar-test.js +23 -24
- package/workspace/briefing-premium-doc-edit-test.js +6 -2
- package/workspace/briefing-premium-initiative-test.js +38 -16
- package/workspace/briefing-premium-insights-test.js +114 -37
- package/workspace/briefing-premium-metrics-test.js +6 -4
- package/workspace/briefing-premium-products-test.js +10 -7
- package/workspace/briefing-premium-sources-test.js +25 -22
- package/workspace/briefing-premium-test.js +46 -42
- package/workspace/briefing-premium-work-test.js +9 -9
- package/workspace/changelog.json +12 -0
- package/workspace/ev-everywhere-test.js +210 -0
- package/workspace/fixtures/premium-viewer-fixtures.js +11 -6
- package/workspace/guide/home.md +39 -18
- package/workspace/guide/index.md +1 -1
- package/workspace/lib/board-grill.js +63 -0
- package/workspace/lib/board-premium.js +36 -5
- package/workspace/lib/initiative-layout.js +77 -0
- package/workspace/lib/insights-premium.js +3 -2
- package/workspace/lib/insights-records.js +21 -7
- package/workspace/lib/meeting-points.js +52 -0
- package/workspace/lib/news-for-you.js +88 -0
- package/workspace/lib/notes-series.js +29 -6
- package/workspace/lib/report-confirm.js +48 -0
- package/workspace/lib/route-modules.js +8 -0
- package/workspace/lib/routes-board-docs.js +46 -0
- package/workspace/lib/routes-board-grill.js +90 -0
- package/workspace/lib/routes-home-review.js +108 -0
- package/workspace/lib/routes-initiative-layout.js +57 -0
- package/workspace/lib/routes-insights-premium.js +4 -1
- package/workspace/lib/routes-insights-records.js +8 -4
- package/workspace/lib/routes-meeting-points.js +37 -0
- package/workspace/lib/routes-news.js +57 -0
- package/workspace/lib/routes-notes.js +2 -1
- package/workspace/lib/routes-report-confirm.js +31 -0
- package/workspace/lib/routes-search.js +38 -0
- package/workspace/lib/search-index.js +176 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-board-actions-test.js +86 -50
- package/workspace/premium-briefing-depth-test.js +55 -54
- package/workspace/premium-chat-chart-tab-test.js +4 -2
- package/workspace/premium-chat-report-tab-test.js +16 -2
- package/workspace/premium-core-doc-issue-test.js +15 -13
- package/workspace/premium-phone-card-test.js +5 -3
- package/workspace/premium-report-read-test.js +55 -18
- package/workspace/premium-vw-backlog-test.js +2 -2
- package/workspace/premium-vw-cal-test.js +50 -35
- package/workspace/premium-vw-doc-test.js +9 -3
- package/workspace/premium-vw-item-test.js +1 -1
- package/workspace/premium-vw-jira-test.js +2 -2
- package/workspace/premium-vw-meet-test.js +37 -40
- package/workspace/premium-vw-notes-test.js +21 -19
- package/workspace/premium-vw-rec-test.js +11 -12
- package/workspace/premium-welcome-test.js +3 -3
- package/workspace/premium-work-depth-test.js +3 -3
- package/workspace/public/pm/bd-acts.js +303 -225
- package/workspace/public/pm/bd-asks.js +261 -0
- package/workspace/public/pm/bd-pop.js +59 -0
- package/workspace/public/pm/bd-span.js +49 -13
- package/workspace/public/pm/bd-views.js +169 -0
- package/workspace/public/pm/cozy-board.css +301 -0
- package/workspace/public/pm/cozy-ev.css +228 -0
- package/workspace/public/pm/cozy-evmodel.js +106 -0
- package/workspace/public/pm/cozy-evui.js +47 -0
- package/workspace/public/pm/cozy-insights.css +148 -10
- package/workspace/public/pm/cozy-nav.js +103 -39
- package/workspace/public/pm/cozy-news.js +140 -0
- package/workspace/public/pm/cozy-search.js +203 -0
- package/workspace/public/pm/cozy-settings.js +198 -0
- package/workspace/public/pm/cozy-sources.js +89 -0
- package/workspace/public/pm/cozy-today.css +217 -0
- package/workspace/public/pm/cozy-viewer.js +1 -0
- package/workspace/public/pm/cozy-vw-mtg.css +350 -0
- package/workspace/public/pm/cozy-vw-rp.css +152 -0
- package/workspace/public/pm/home-adddoc.js +5 -5
- package/workspace/public/pm/home-app.js +329 -55
- package/workspace/public/pm/home-around.js +24 -126
- package/workspace/public/pm/home-chat.js +67 -14
- package/workspace/public/pm/home-data.js +6 -6
- package/workspace/public/pm/home-dictate.js +54 -0
- package/workspace/public/pm/home-draft.js +6 -6
- package/workspace/public/pm/home-ini-model.js +190 -0
- package/workspace/public/pm/home-ini.css +171 -0
- package/workspace/public/pm/home-ini.js +456 -0
- package/workspace/public/pm/home-list.js +276 -0
- package/workspace/public/pm/home-more.js +17 -134
- package/workspace/public/pm/home-phone-card.js +4 -4
- package/workspace/public/pm/home-review.js +104 -0
- package/workspace/public/pm/home-task.js +67 -0
- package/workspace/public/pm/home-today.js +144 -0
- package/workspace/public/pm/home-work.js +54 -26
- package/workspace/public/pm/premium-board.js +163 -39
- package/workspace/public/pm/premium-chart-tab.js +4 -5
- package/workspace/public/pm/premium-first.js +5 -7
- package/workspace/public/pm/premium-insights.js +499 -202
- package/workspace/public/pm/premium-mtg-present.js +138 -0
- package/workspace/public/pm/premium-mtg-replay.js +142 -0
- package/workspace/public/pm/premium-report-read.js +216 -52
- package/workspace/public/pm/premium-report-tab.js +44 -19
- package/workspace/public/pm/premium-shell.js +7 -7
- package/workspace/public/pm/premium-vw-cal.js +150 -60
- package/workspace/public/pm/premium-vw-mtg.js +488 -261
- package/workspace/public/pm/premium-vw-notes.js +61 -0
- package/workspace/public/pm/rp-parts.js +269 -0
- package/workspace/public/premium-board.html +4 -3
- package/workspace/public/premium-insights.html +10 -10
- package/workspace/public/premium.html +3 -1
- package/workspace/r/m1.png +0 -0
- package/workspace/r/m2.png +0 -0
- package/workspace/r/m3.png +0 -0
- package/workspace/r/nl.png +0 -0
- package/workspace/test-lists/initiative-layout.json +9 -0
- package/workspace/test-lists/premium-uncovered-meetings.json +9 -0
- package/workspace/test-lists/premium-uncovered-reports.json +9 -0
- package/workspace/test-lists/uf-everywhere.json +15 -0
- package/workspace/test-lists/uf-home.json +9 -0
- package/workspace/test-lists/uncovered-board.json +9 -0
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
/* cozy-ev.css — the Everywhere parts (initiative premium-uncovered-features, E1 to E4; canvas EvMenu, EvSearch, EvInbox, EvSources, EvSettings,
|
|
2
|
+
* EvStates, EvDark, EvPhone). cozy-nav.js adds this sheet to every page that mounts the place menu. Only the cozy tokens of cozy.css are used,
|
|
3
|
+
* so the light and the dark theme come from there. Motion: none here; a dot only appears (EvMenu: "Nothing moves; the dots only appear"). */
|
|
4
|
+
|
|
5
|
+
/* ── shared small parts (the canvas's mi, kbd, pill, chip, box, warn, trow, th, lbl, skel) ── */
|
|
6
|
+
.cz .ev-kbd { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 7px; background: var(--cz-well); font-size: 11.5px; font-weight: 700; color: var(--cz-ink3); font-family: var(--cz-sans); }
|
|
7
|
+
.cz .ev-pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--cz-well); color: var(--cz-ink2); white-space: nowrap; }
|
|
8
|
+
.cz .ev-pill.y { background: var(--cz-bluebg); color: var(--cz-blueink); }
|
|
9
|
+
.cz .ev-pill.ok { background: var(--cz-okbg); color: var(--cz-ok); }
|
|
10
|
+
.cz .ev-lbl { margin: 0; font-size: 12px; font-weight: 800; color: var(--cz-ink3); }
|
|
11
|
+
.cz .ev-mlbl { margin: 0; font-size: 12px; font-weight: 800; color: var(--cz-ink3); padding: 8px 12px 4px; }
|
|
12
|
+
.cz .ev-mut { color: var(--cz-ink3); }
|
|
13
|
+
.cz .ev-small { font-size: 12.5px; }
|
|
14
|
+
.cz .ev-h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--cz-ink); }
|
|
15
|
+
.cz .ev-sub { margin: 2px 0 0; font-size: 13px; color: var(--cz-ink3); }
|
|
16
|
+
.cz .ev-hr { height: 1px; background: var(--cz-hair); width: 100%; flex: none; border: 0; margin: 6px 0; }
|
|
17
|
+
.cz .ev-box { background: var(--cz-well); border-radius: 16px; padding: 12px 14px; font-size: 13px; color: var(--cz-ink2); }
|
|
18
|
+
.cz .ev-box.blue { background: var(--cz-bluebg); }
|
|
19
|
+
.cz .ev-box b { color: var(--cz-ink); }
|
|
20
|
+
.cz .ev-warn { background: var(--cz-riskbg); border-radius: 14px; padding: 12px 14px; color: var(--cz-risk); font-size: 13.5px; }
|
|
21
|
+
.cz .ev-warn b { color: inherit; }
|
|
22
|
+
.cz .ev-line { display: flex; align-items: center; gap: 10px; }
|
|
23
|
+
.cz .ev-line p { margin: 0; }
|
|
24
|
+
.cz .ev-grow { flex: 1; min-width: 0; }
|
|
25
|
+
.cz .ev-card { background: var(--cz-card); border-radius: 16px; border: 1px solid var(--cz-hair); padding: 12px 14px; }
|
|
26
|
+
.cz .ev-btn { height: 36px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: 13.5px; font-weight: 700; border: 1px solid var(--cz-hair); background: var(--cz-card); color: var(--cz-ink); white-space: nowrap; cursor: pointer; text-decoration: none; box-sizing: border-box; }
|
|
27
|
+
.cz .ev-btn.sm { height: 30px; padding: 0 11px; font-size: 12.5px; }
|
|
28
|
+
.cz .ev-btn.pri { background: var(--cz-solid); border-color: transparent; color: var(--cz-onsolid); }
|
|
29
|
+
.cz .ev-btn.dark { background: var(--cz-ink); border-color: transparent; color: var(--cz-card); }
|
|
30
|
+
.cz .ev-btn.soft { background: var(--cz-well); border-color: transparent; }
|
|
31
|
+
.cz .ev-btn.ghost { border-color: transparent; background: transparent; color: var(--cz-ink2); }
|
|
32
|
+
.cz .ev-btn:disabled { opacity: .5; cursor: not-allowed; }
|
|
33
|
+
.cz .ev-btn svg, .cz .ev-ib svg, .cz .ev-mi svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
|
|
34
|
+
.cz .ev-ib { width: 32px; height: 32px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--cz-ink2); background: none; border: 0; padding: 0; cursor: pointer; flex: none; }
|
|
35
|
+
.cz .ev-ib:hover { background: var(--cz-well); }
|
|
36
|
+
.cz .ev-chip { height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--cz-hair); background: var(--cz-card); display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--cz-ink2); white-space: nowrap; cursor: pointer; }
|
|
37
|
+
.cz .ev-chip.on { background: var(--cz-bluebg); border-color: transparent; color: var(--cz-blueink); }
|
|
38
|
+
.cz .ev-chip.gh { border-color: transparent; background: transparent; padding: 0 8px; }
|
|
39
|
+
.cz .ev-chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
|
|
40
|
+
.cz .ev-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--cz-well); gap: 2px; flex: none; }
|
|
41
|
+
.cz .ev-seg button { height: 32px; padding: 0 12px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 700; color: var(--cz-ink3); background: none; border: 0; cursor: pointer; }
|
|
42
|
+
.cz .ev-seg.sm button { height: 28px; padding: 0 9px; font-size: 12px; }
|
|
43
|
+
.cz .ev-seg button[aria-pressed="true"] { background: var(--cz-card); color: var(--cz-ink); box-shadow: 0 1px 3px rgba(42,46,53,.12); }
|
|
44
|
+
.cz .ev-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; display: inline-block; background: var(--cz-dot-q); }
|
|
45
|
+
.cz .ev-dot.you { background: var(--cz-blue); } .cz .ev-dot.risk { background: var(--cz-dot-risk); } .cz .ev-dot.ok { background: var(--cz-dot-ok); } .cz .ev-dot.none { background: transparent; }
|
|
46
|
+
.cz .ev-av { width: 22px; height: 22px; border-radius: 50%; background: var(--cz-well2); color: var(--cz-ink2); font-size: 9.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
|
|
47
|
+
.cz .ev-av.b { background: var(--cz-bluebg); color: var(--cz-blueink); }
|
|
48
|
+
.cz .ev-trow { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--cz-hair); font-size: 13.5px; color: var(--cz-ink); }
|
|
49
|
+
.cz .ev-trow:last-child { border-bottom: 0; }
|
|
50
|
+
.cz .ev-trow p { margin: 0; }
|
|
51
|
+
.cz .ev-th { font-size: 12px; font-weight: 800; color: var(--cz-ink3); padding: 8px 4px; border-bottom: 1px solid var(--cz-hair); display: flex; gap: 10px; }
|
|
52
|
+
.cz .ev-skel { display: block; background: var(--cz-well2); border-radius: 8px; height: 12px; }
|
|
53
|
+
.cz .ev-tile { width: 30px; height: 30px; border-radius: 10px; background: var(--cz-well); display: inline-flex; align-items: center; justify-content: center; color: var(--cz-ink2); flex: none; }
|
|
54
|
+
.cz .ev-tile svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
|
|
55
|
+
.cz .ev-vh { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
|
|
56
|
+
|
|
57
|
+
/* ── the place menu (EvMenu, EvPhone): Home, Board, Insights, then Search, New for you, Sources, Settings and Theme ── */
|
|
58
|
+
.cz-fabm.ev-menu { width: 300px; padding: 10px; gap: 2px; border-radius: 20px; border: 0; box-shadow: 0 24px 60px -24px rgba(42,46,53,.45), 0 0 0 1px var(--cz-hair); }
|
|
59
|
+
.cz-fabm.ev-menu a, .cz-fabm.ev-menu button.ev-mi, .cz-fabm.ev-menu .ev-mi { min-height: 40px; padding: 0 12px; gap: 10px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--cz-ink); width: 100%; box-sizing: border-box; border-top: 0; margin: 0; }
|
|
60
|
+
.cz-fabm.ev-menu svg { width: 18px; height: 18px; color: var(--cz-ink2); stroke-width: 1.8; }
|
|
61
|
+
.cz-fabm.ev-menu [aria-current="page"] { background: var(--cz-well); color: var(--cz-ink); font-weight: 800; }
|
|
62
|
+
.cz-fabm.ev-menu a:hover, .cz-fabm.ev-menu button.ev-mi:hover { background: var(--cz-well); }
|
|
63
|
+
.cz-fabm.ev-menu .ev-k { margin-left: auto; font-size: 12px; color: var(--cz-ink3); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
|
|
64
|
+
.cz-fabm.ev-menu .ev-theme { cursor: default; }
|
|
65
|
+
.cz-fabm.ev-menu .ev-theme .ev-seg { margin-left: auto; }
|
|
66
|
+
.cz-fabm.ev-menu .ev-theme .ev-seg button { min-height: 0; height: 28px; padding: 0 9px; font-size: 12px; width: auto; border-radius: 999px; }
|
|
67
|
+
.cz-fabm.ev-menu .ev-mmore { color: var(--cz-ink2); font-weight: 600; }
|
|
68
|
+
.ev-scrim { position: fixed; inset: 0; z-index: 0; background: rgba(42,46,53,.08); }
|
|
69
|
+
.ev-scrim[hidden] { display: none; }
|
|
70
|
+
/* the closed menu's dots: blue, something new for you (top left); amber, a source is stale (top right). They appear; they never move. */
|
|
71
|
+
.cz-fabw { position: fixed; }
|
|
72
|
+
.cz-fab, .cz-fabw > .cz-fabm { position: relative; z-index: 1; } /* above the scrim, which shares the menu's stacking context */
|
|
73
|
+
.ev-fd { z-index: 2; }
|
|
74
|
+
.ev-fd { position: absolute; top: 6px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--cz-card); box-sizing: content-box; pointer-events: none; }
|
|
75
|
+
.ev-fd[hidden] { display: none; }
|
|
76
|
+
.ev-fd.you { left: 4px; background: var(--cz-blue); }
|
|
77
|
+
.ev-fd.risk { right: 2px; background: var(--cz-dot-risk); }
|
|
78
|
+
@media (max-width: 760px) {
|
|
79
|
+
.cz-fabm.ev-menu a, .cz-fabm.ev-menu button.ev-mi, .cz-fabm.ev-menu .ev-mi { min-height: 46px; }
|
|
80
|
+
.cz-fabm.ev-menu .ev-theme .ev-seg button { min-height: 0; }
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* ── Search (EvSearch, EvPhone right) ── */
|
|
84
|
+
.ev-sp-scrim { position: fixed; inset: 0; z-index: 80; background: rgba(42,46,53,.18); }
|
|
85
|
+
.ev-sp { position: fixed; z-index: 81; left: 50%; top: 70px; transform: translateX(-50%); width: min(740px, calc(100vw - 32px)); max-height: calc(100vh - 110px); display: flex; flex-direction: column;
|
|
86
|
+
background: var(--cz-card); color: var(--cz-ink); border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px -24px rgba(42,46,53,.45), 0 0 0 1px var(--cz-hair); font-family: var(--cz-sans); font-size: 14px; }
|
|
87
|
+
.ev-sp[hidden], .ev-sp-scrim[hidden] { display: none; }
|
|
88
|
+
.ev-sp-in { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--cz-hair); }
|
|
89
|
+
.ev-sp-in > svg { width: 20px; height: 20px; color: var(--cz-ink3); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; flex: none; }
|
|
90
|
+
.ev-sp-in input { flex: 1; min-width: 0; font: inherit; font-size: 17px; font-weight: 600; color: var(--cz-ink); border: 0; background: transparent; outline: 0; }
|
|
91
|
+
.cz .ev-sp-in input:focus-visible { outline: 0; } /* the open palette is the focus sign; the box draws no ring of its own (EvSearch) */
|
|
92
|
+
.ev-sp-in input::placeholder { color: var(--cz-ink3); font-weight: 600; }
|
|
93
|
+
.ev-sp-in .ev-ib.x { display: none; }
|
|
94
|
+
.ev-sp-chips { display: flex; gap: 6px; align-items: center; padding: 10px 14px 2px; flex-wrap: wrap; position: relative; }
|
|
95
|
+
.ev-sp-chips .ev-wt { margin-left: auto; }
|
|
96
|
+
.ev-sp-list { padding: 4px 8px 8px; display: flex; flex-direction: column; gap: 2px; overflow: auto; min-height: 0; }
|
|
97
|
+
.ev-mi { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 12px; font: inherit; font-size: 14px; font-weight: 600; color: var(--cz-ink); width: 100%; background: none; border: 0; text-align: left; cursor: pointer; box-sizing: border-box; text-decoration: none; }
|
|
98
|
+
.ev-mi:hover, .ev-mi.hl { background: var(--cz-well); }
|
|
99
|
+
.ev-mi > svg { color: var(--cz-ink2); width: 18px; height: 18px; }
|
|
100
|
+
.ev-mi .ev-t { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
101
|
+
.ev-mi .ev-t b { font-weight: 800; }
|
|
102
|
+
.ev-mi .ev-t .ev-mut { font-weight: 600; }
|
|
103
|
+
.ev-mi .ev-k { margin-left: auto; font-size: 12px; color: var(--cz-ink3); font-weight: 600; white-space: nowrap; flex: none; }
|
|
104
|
+
.ev-sp-ft { display: flex; gap: 14px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--cz-hair); background: var(--cz-well); font-size: 12px; color: var(--cz-ink3); flex: none; }
|
|
105
|
+
.ev-sp-ft .ev-r { margin-left: auto; text-align: right; }
|
|
106
|
+
.ev-sp-empty { padding: 10px 12px; font-size: 13px; color: var(--cz-ink3); margin: 0; }
|
|
107
|
+
.ev-wtm { position: absolute; right: 14px; top: 44px; z-index: 2; width: 300px; background: var(--cz-card); border-radius: 16px; box-shadow: 0 24px 60px -24px rgba(42,46,53,.45), 0 0 0 1px var(--cz-hair); padding: 8px; display: flex; flex-direction: column; gap: 2px; }
|
|
108
|
+
.ev-wtm[hidden] { display: none; }
|
|
109
|
+
.ev-wtm label { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 12px; font-size: 13.5px; cursor: pointer; }
|
|
110
|
+
.ev-wtm label:hover { background: var(--cz-well); }
|
|
111
|
+
.ev-wtm input { accent-color: var(--cz-solid); width: 16px; height: 16px; }
|
|
112
|
+
.ev-wtm small { margin-left: auto; color: var(--cz-ink3); font-size: 12px; }
|
|
113
|
+
@media (max-width: 760px) {
|
|
114
|
+
.ev-sp { left: 0; top: 0; transform: none; width: 100vw; height: 100%; max-height: none; border-radius: 0; box-shadow: none; }
|
|
115
|
+
.ev-sp-in { margin: 22px 16px 0; height: 52px; border-radius: 999px; background: var(--cz-well); padding: 0 8px 0 16px; border: 0; }
|
|
116
|
+
.ev-sp-in input { font-size: 16px; }
|
|
117
|
+
.ev-sp-in .ev-kbd { display: none; }
|
|
118
|
+
.ev-sp-in .ev-ib.x { display: inline-flex; width: 44px; height: 44px; }
|
|
119
|
+
.ev-sp-chips { flex-wrap: nowrap; overflow-x: auto; padding: 6px 16px 0; scrollbar-width: none; }
|
|
120
|
+
.ev-sp-chips .ev-wt { display: none; }
|
|
121
|
+
.ev-sp-list { padding: 4px 12px 16px; }
|
|
122
|
+
.ev-sp .ev-mi { min-height: 52px; }
|
|
123
|
+
.ev-sp .ev-mi .ev-t { white-space: normal; }
|
|
124
|
+
.ev-sp .ev-mi .ev-k { display: none; }
|
|
125
|
+
.ev-sp-ft { display: none; }
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/* ── the Viewer's Everywhere cards: New for you, Sources, a file read from a worktree ── */
|
|
129
|
+
.cz .ev-card-b { padding: 16px 18px 24px; display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; color: var(--cz-ink); box-sizing: border-box; }
|
|
130
|
+
.cz .ev-head { display: flex; align-items: center; gap: 10px; }
|
|
131
|
+
.cz .ev-head .ev-h2 { flex: 1; }
|
|
132
|
+
.cz .ev-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
|
|
133
|
+
.cz .ev-two .ev-box { font-size: 12.5px; }
|
|
134
|
+
.cz .ev-news .ev-trow { align-items: flex-start; }
|
|
135
|
+
.cz .ev-news .ev-trow .ev-dot { margin-top: 7px; }
|
|
136
|
+
.cz .ev-news .ev-trow .ev-av { margin-top: 1px; }
|
|
137
|
+
.cz .ev-news .ev-tx { flex: 1; min-width: 0; }
|
|
138
|
+
.cz .ev-news .ev-tx p { overflow-wrap: anywhere; }
|
|
139
|
+
.cz .ev-rest { display: flex; flex-direction: column; gap: 4px; }
|
|
140
|
+
.cz .ev-rest button { display: flex; gap: 10px; font: inherit; font-size: 13px; text-align: left; background: none; border: 0; padding: 4px 0; color: var(--cz-ink2); cursor: pointer; border-radius: 8px; }
|
|
141
|
+
.cz .ev-rest button { min-height: 32px; align-items: center; }
|
|
142
|
+
.cz .ev-rest button:hover b { text-decoration: underline; }
|
|
143
|
+
.cz .ev-rest button:focus { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
|
|
144
|
+
.cz .ev-rest b { width: 150px; flex: none; color: var(--cz-ink); }
|
|
145
|
+
.cz .ev-rest span { flex: 1; }
|
|
146
|
+
.cz .ev-foot { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
|
|
147
|
+
.cz .ev-detail .ev-q { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--cz-well); font-size: 14px; color: var(--cz-ink); }
|
|
148
|
+
.cz .ev-acts { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
149
|
+
.cz .ev-src .ev-w-140 { width: 140px; flex: none; }
|
|
150
|
+
.cz .ev-src .ev-w-96 { width: 96px; flex: none; display: inline-flex; justify-content: flex-end; }
|
|
151
|
+
.cz .ev-src .ev-w-96 .ev-btn { width: 96px; }
|
|
152
|
+
.cz .ev-src .ev-late { color: var(--cz-risk); font-weight: 700; }
|
|
153
|
+
.cz .ev-src .ev-tx { flex: 1; min-width: 0; }
|
|
154
|
+
.cz .ev-pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--cz-mono); font-size: 12px; line-height: 1.5; color: var(--cz-ink2); background: var(--cz-well); border-radius: 14px; padding: 12px 14px; }
|
|
155
|
+
.cz .ev-frame { width: 100%; height: 60vh; border: 1px solid var(--cz-hair); border-radius: 14px; background: var(--cz-card); }
|
|
156
|
+
.cz .ev-md h1, .cz .ev-md h2, .cz .ev-md h3 { margin: 10px 0 4px; font-size: 15px; font-weight: 800; }
|
|
157
|
+
.cz .ev-md p, .cz .ev-md li { font-size: 13.5px; line-height: 1.5; color: var(--cz-ink2); }
|
|
158
|
+
@media (max-width: 760px) {
|
|
159
|
+
.cz .ev-two { grid-template-columns: 1fr; }
|
|
160
|
+
.cz .ev-ib, .cz .ev-btn, .cz .ev-btn.sm, .cz .ev-chip { min-height: 44px; }
|
|
161
|
+
.cz .ev-ib { width: 44px; }
|
|
162
|
+
.cz .ev-src .ev-w-140 { width: 96px; }
|
|
163
|
+
.cz .ev-rest b { width: 120px; }
|
|
164
|
+
.cz .ev-rest button { min-height: 44px; }
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/* ── the states (EvStates): reading, could not be read, all clear, a Viewer item that failed ── */
|
|
168
|
+
.cz .ev-skelrow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
|
|
169
|
+
.cz .ev-skelrow .ev-ic { width: 32px; height: 32px; border-radius: 50%; background: var(--cz-well2); flex: none; }
|
|
170
|
+
.cz .ev-skelrow .ev-tx { flex: 1; display: flex; flex-direction: column; gap: 6px; }
|
|
171
|
+
.cz .ev-skel.ev-s { height: 10px; }
|
|
172
|
+
.cz .ev-w40 { width: 40%; } .cz .ev-w45 { width: 45%; } .cz .ev-w50 { width: 50%; } .cz .ev-w65 { width: 65%; } .cz .ev-w70 { width: 70%; } .cz .ev-w80 { width: 80%; }
|
|
173
|
+
.cz .ev-right { margin-left: auto; font-weight: 600; }
|
|
174
|
+
.cz .ev-cant { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
|
|
175
|
+
.cz .ev-cant .ev-acts .ev-btn { background: var(--cz-card); }
|
|
176
|
+
.cz .ev-cant .ev-acts .ev-btn.ghost { background: transparent; color: var(--cz-risk); }
|
|
177
|
+
.cz .ev-fail { display: flex; flex-direction: column; gap: 10px; }
|
|
178
|
+
.cz .ev-fail .ev-btn:not(.ghost) { background: var(--cz-card); }
|
|
179
|
+
.cz .ev-clear { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; margin: 0; }
|
|
180
|
+
.cz .ev-more { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--cz-well); border-radius: 0 0 18px 18px; }
|
|
181
|
+
.cz .ev-more .ev-btn { margin-left: auto; background: var(--cz-card); }
|
|
182
|
+
|
|
183
|
+
/* ── Settings (EvSettings): a dialog over the page, its sections on the left ── */
|
|
184
|
+
.ev-st-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(42,46,53,.18); }
|
|
185
|
+
.ev-st { position: fixed; z-index: 91; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(920px, calc(100vw - 32px)); height: min(700px, calc(100vh - 32px)); display: flex; overflow: hidden;
|
|
186
|
+
background: var(--cz-card); color: var(--cz-ink); border-radius: 28px; box-shadow: 0 24px 60px -24px rgba(42,46,53,.45), 0 0 0 1px var(--cz-hair); font-family: var(--cz-sans); font-size: 14px; }
|
|
187
|
+
.ev-st[hidden], .ev-st-scrim[hidden] { display: none; }
|
|
188
|
+
.ev-st-nav { width: 240px; flex: none; background: var(--cz-well); padding: 22px 12px; display: flex; flex-direction: column; gap: 2px; box-sizing: border-box; }
|
|
189
|
+
.ev-st-nav .ev-h2 { padding: 0 12px 12px; }
|
|
190
|
+
.ev-st-nav .ev-mi { text-decoration: none; }
|
|
191
|
+
.ev-st-nav .ev-mi[aria-current="page"] { background: var(--cz-card); font-weight: 800; }
|
|
192
|
+
.ev-st-nav .ev-mi:hover { background: var(--cz-card); }
|
|
193
|
+
.ev-st-main { flex: 1; min-width: 0; padding: 24px 28px; display: flex; flex-direction: column; gap: 6px; overflow: auto; box-sizing: border-box; }
|
|
194
|
+
.ev-st-main > .ev-top { display: flex; align-items: center; margin-bottom: 8px; }
|
|
195
|
+
.ev-st-main > .ev-top .ev-h2 { flex: 1; }
|
|
196
|
+
.ev-st .ev-trow { padding: 14px 0; }
|
|
197
|
+
.ev-st .ev-trow .ev-tx { flex: 1; min-width: 0; }
|
|
198
|
+
.ev-st .ev-trow .ev-tx p { margin: 0; }
|
|
199
|
+
.ev-st select.ev-inp, .ev-st input.ev-inp { height: 36px; border-radius: 14px; background: var(--cz-well); padding: 0 12px; font: inherit; font-size: 14px; color: var(--cz-ink); border: 0; box-sizing: border-box; }
|
|
200
|
+
.ev-st input.ev-inp { flex: 1; min-width: 0; }
|
|
201
|
+
.ev-st .ev-pick { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 12px; border-radius: 999px; background: var(--cz-well); font: inherit; font-size: 13px; font-weight: 700; color: var(--cz-ink2); border: 0; cursor: pointer; }
|
|
202
|
+
.ev-st .ev-pick svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
|
|
203
|
+
.ev-st .ev-upd { display: flex; align-items: center; gap: 12px; margin-top: auto; }
|
|
204
|
+
.ev-st .ev-upd p { flex: 1; margin: 0; }
|
|
205
|
+
.ev-st .ev-sw { height: 28px; min-width: 52px; border-radius: 999px; border: 0; background: var(--cz-well2); color: var(--cz-ink3); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
|
|
206
|
+
.ev-st .ev-sw[aria-checked="true"] { background: var(--cz-bluebg); color: var(--cz-blueink); }
|
|
207
|
+
.ev-st .ev-add { display: flex; gap: 8px; margin-top: 8px; }
|
|
208
|
+
.ev-st .ev-kv { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
|
|
209
|
+
.ev-st .ev-kv li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--cz-hair); }
|
|
210
|
+
.ev-st .ev-kv li b { width: 64px; flex: none; }
|
|
211
|
+
.ev-st .ev-kv li .ev-tx p { margin: 0 0 2px; font-size: 13px; color: var(--cz-ink2); }
|
|
212
|
+
.ev-st [role="status"] { min-height: 1.2em; margin: 0; font-size: 12.5px; color: var(--cz-ink3); }
|
|
213
|
+
@media (max-width: 760px) {
|
|
214
|
+
.ev-st { left: 0; top: 0; transform: none; width: 100vw; height: 100%; border-radius: 0; flex-direction: column; }
|
|
215
|
+
.ev-st-nav { width: auto; flex-direction: row; overflow-x: auto; padding: 14px 12px 8px; gap: 4px; scrollbar-width: none; }
|
|
216
|
+
.ev-st-nav .ev-h2 { display: none; }
|
|
217
|
+
.ev-st-nav .ev-mi { width: auto; flex: none; min-height: 44px; }
|
|
218
|
+
.ev-st-main { padding: 16px 16px 32px; }
|
|
219
|
+
.ev-st .ev-trow { flex-wrap: wrap; }
|
|
220
|
+
.ev-st .ev-upd { flex-wrap: wrap; }
|
|
221
|
+
.ev-st .ev-sw, .ev-st .ev-pick, .ev-st select.ev-inp, .ev-st input.ev-inp { min-height: 44px; font-size: 16px; }
|
|
222
|
+
.ev-st .ev-seg button { min-height: 40px; }
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/* ── Settings › Viewer opens as Popup: the Viewer floats over the page instead of taking a column ── */
|
|
226
|
+
@media (min-width: 761px) {
|
|
227
|
+
body.ev-vw-popup .cz-vw:not(.cz-vw-float) { position: fixed; z-index: 70; top: 16px; right: 16px; bottom: 16px; width: min(500px, calc(100vw - 32px)); box-shadow: var(--cz-sheet); }
|
|
228
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/* pm/cozy-evmodel.js — the words and groupings of the Everywhere parts (initiative premium-uncovered-features, E1 to E4; canvas EvMenu, EvSearch,
|
|
2
|
+
* EvInbox, EvSources, EvSettings, EvStates, EvPhone). PURE: no DOM, no fetch, so a suite can import it (cozy-evmodel.test.mjs).
|
|
3
|
+
*
|
|
4
|
+
* ago(iso, now) → '2 min ago' · '1 hour ago' · '5 days ago' · ''
|
|
5
|
+
* sourceName(row) → the name a source shows: 'Jira', 'Calendar', 'Repository', …
|
|
6
|
+
* staleOf(sources, now) → { id, name, text: 'Jira 5 days old', ago, state } | null the source furthest behind (failed, then the oldest)
|
|
7
|
+
* sourceRows(sources, now) → [{ id, name, sub, when, risk, act: 'read' | 'connect' | '' }] the Sources table (EvSources)
|
|
8
|
+
* partsOf(id) → what may be out of date when that source is old ('Board and the Jira-linked initiatives')
|
|
9
|
+
* fabLabel(here, open, stale) → 'Open the menu. You are in Home. A source is stale'
|
|
10
|
+
* SEARCH_KINDS · searchGroups(results, { phone }) → [{ key, label, rows }] EvSearch's groups, in its order
|
|
11
|
+
* resultSub(r) · resultTag(r) → the grey line after a result's title, and the word at its right
|
|
12
|
+
* wtChip(worktrees) → 'main + 3 worktrees'
|
|
13
|
+
* initials(name) → 'Mei' · 'DL' (EvInbox's avatars: a short first name, else two initials) */
|
|
14
|
+
|
|
15
|
+
const PLACE = { home: 'Home', board: 'Board', insights: 'Insights' };
|
|
16
|
+
const SRC_NAME = { repository: 'Repository', initiatives: 'Initiatives', calendar: 'Calendar', jira: 'Jira', 'my-work': 'Your tasks', tracker: 'Tracker items', tools: 'Mail, Slack and meeting notes' };
|
|
17
|
+
const SRC_SUB = { repository: 'This product\'s repository', initiatives: 'Read from the repository', calendar: 'Your calendar', jira: 'The Jira projects of your initiatives', 'my-work': 'The work assigned to you', tracker: 'The tracker items of your initiatives', tools: 'Mail, Slack, Confluence and Wispr Flow' };
|
|
18
|
+
const PARTS = { jira: 'Board and the Jira-linked initiatives', calendar: 'Today and your meetings', 'my-work': 'Your tasks', tracker: 'The tracker items on Board', tools: 'New for you and the digests', initiatives: 'Home and Board', repository: 'Home and Board' };
|
|
19
|
+
|
|
20
|
+
export function ago(iso, now = Date.now()) {
|
|
21
|
+
const t = Date.parse(iso || '');
|
|
22
|
+
if (!Number.isFinite(t)) return '';
|
|
23
|
+
const m = Math.max(0, Math.round((now - t) / 60000));
|
|
24
|
+
if (m < 1) return 'just now';
|
|
25
|
+
if (m < 60) return m + ' min ago';
|
|
26
|
+
const h = Math.round(m / 60);
|
|
27
|
+
if (h < 24) return h + (h === 1 ? ' hour ago' : ' hours ago');
|
|
28
|
+
const d = Math.round(h / 24);
|
|
29
|
+
return d + (d === 1 ? ' day ago' : ' days ago');
|
|
30
|
+
}
|
|
31
|
+
const old = (iso, now) => ago(iso, now).replace(/ ago$/, ' old');
|
|
32
|
+
|
|
33
|
+
export const sourceName = (s) => (s && (SRC_NAME[s.id] || String(s.label || s.id || '').replace(/ status$/, ''))) || 'A source';
|
|
34
|
+
export const partsOf = (id) => PARTS[id] || 'What PMOS shows from it';
|
|
35
|
+
|
|
36
|
+
/** The source furthest behind: one that failed first, then the oldest stale one, then one never read. The repository's watch is never it. */
|
|
37
|
+
export function staleOf(sources, now = Date.now()) {
|
|
38
|
+
const L = (sources || []).filter((s) => s && s.id !== 'repository' && (s.state === 'stale' || s.state === 'failed' || s.state === 'never'));
|
|
39
|
+
if (!L.length) return null;
|
|
40
|
+
const rank = (s) => (s.state === 'failed' ? 0 : s.state === 'stale' ? 1 : 2);
|
|
41
|
+
L.sort((a, b) => rank(a) - rank(b) || (Date.parse(a.as_of || '') || 0) - (Date.parse(b.as_of || '') || 0));
|
|
42
|
+
const s = L[0], name = sourceName(s);
|
|
43
|
+
const text = s.state === 'never' ? name + ' never read' : s.state === 'failed' ? name + ' could not be read' : name + ' ' + (old(s.as_of, now) || 'old');
|
|
44
|
+
return { id: s.id, name, text, ago: ago(s.as_of, now), state: s.state };
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/** The Sources table: one row per source, in the order the server lists them. */
|
|
48
|
+
export function sourceRows(sources, now = Date.now()) {
|
|
49
|
+
return (sources || []).filter(Boolean).map((s) => {
|
|
50
|
+
const behind = s.state === 'stale' || s.state === 'failed' || s.state === 'never';
|
|
51
|
+
const when = s.state === 'off' ? 'Not connected' : s.state === 'building' ? 'Reading now' : s.state === 'never' ? 'Never read'
|
|
52
|
+
: s.state === 'failed' ? 'Could not be read' : s.id === 'repository' && s.state === 'fresh' ? 'Watching' : ago(s.as_of, now) || 'Never read';
|
|
53
|
+
return { id: s.id, name: sourceName(s), sub: SRC_SUB[s.id] || s.label || '', when, risk: behind, act: s.state === 'off' ? 'connect' : behind && s.id !== 'repository' ? 'read' : '' };
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function fabLabel(here, open, stale) {
|
|
58
|
+
if (open) return 'Close the menu';
|
|
59
|
+
return 'Open the menu. You are in ' + (PLACE[here] || 'PMOS') + (stale ? '. A source is stale' : '');
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* ── Search ── */
|
|
63
|
+
export const SEARCH_KINDS = [['all', 'All'], ['initiative', 'Initiatives'], ['document', 'Documents'], ['slides', 'Slides'], ['report', 'Reports'], ['artifact', 'Artifacts'], ['meeting', 'Meetings']];
|
|
64
|
+
export const PHONE_KINDS = [['all', 'All'], ['document', 'Docs'], ['slides', 'Slides'], ['report', 'Reports'], ['artifact', 'Artifacts']];
|
|
65
|
+
/** The result groups in EvSearch's order. A row is a result of /api/find, or a session ({ kind: 'session' }), or an initiative of the board. */
|
|
66
|
+
export function searchGroups(rows, { phone = false } = {}) {
|
|
67
|
+
const by = (keys) => (rows || []).filter((r) => keys.includes(r.group || r.kind));
|
|
68
|
+
const meet = by(['meeting', 'session']);
|
|
69
|
+
const G = [
|
|
70
|
+
{ key: 'initiative', label: 'Initiatives', rows: by(['initiative']) },
|
|
71
|
+
{ key: 'docs', label: 'Documents, slides and reports', rows: by(['document', 'slides', 'report']) },
|
|
72
|
+
{ key: 'artifact', label: 'Artifacts and designs', rows: by(['artifact', 'file']) },
|
|
73
|
+
{ key: 'meeting', label: phone || meet.some((r) => r.kind === 'session') ? 'Meetings and sessions' : 'Meetings', rows: meet },
|
|
74
|
+
];
|
|
75
|
+
return G.filter((g) => g.rows.length);
|
|
76
|
+
}
|
|
77
|
+
const DAYS = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
|
|
78
|
+
const two = (n) => String(n).padStart(2, '0');
|
|
79
|
+
const when = (iso) => { const d = new Date(iso || ''); return Number.isNaN(d.getTime()) ? '' : DAYS[d.getDay()] + ' ' + two(d.getHours()) + ':' + two(d.getMinutes()); };
|
|
80
|
+
/** The grey line after a result's title (EvSearch: "planning/prd · main", "worktree viewer-calendar · not merged", "12 slides · …"). */
|
|
81
|
+
export function resultSub(r) {
|
|
82
|
+
if (!r) return '';
|
|
83
|
+
if (r.kind === 'initiative') return [r.lane ? r.lane[0].toUpperCase() + r.lane.slice(1) : 'Initiative', r.stage ? 'in ' + r.stage : '', r.days ? r.days + (r.days === 1 ? ' day' : ' days') : ''].filter(Boolean).join(' · ');
|
|
84
|
+
if (r.kind === 'meeting') return [when(r.at), r.summary ? 'notes ready' : ''].filter(Boolean).join(' · ');
|
|
85
|
+
if (r.kind === 'session') return [r.where, r.state].filter(Boolean).join(' · ');
|
|
86
|
+
const where = r.draft ? 'worktree ' + (r.branch || r.wt) + ' · ' + (r.today ? 'changed today' : 'not merged') : (r.dir && r.dir !== '.' ? r.dir : 'the repository root') + ' · main';
|
|
87
|
+
return r.why === 'text' && r.line ? where + ' · “' + r.line + '”' : where;
|
|
88
|
+
}
|
|
89
|
+
/** The word at a result's right (EvSearch: Open in Home, Viewer, Draft, Slides, Report, Artifact, File). */
|
|
90
|
+
export function resultTag(r) {
|
|
91
|
+
if (!r) return '';
|
|
92
|
+
if (r.kind === 'initiative') return 'Open in Home';
|
|
93
|
+
if (r.kind === 'document') return r.draft ? 'Draft' : 'Viewer';
|
|
94
|
+
return { slides: 'Slides', report: 'Report', artifact: 'Artifact', file: 'File', session: 'Session' }[r.kind] || '';
|
|
95
|
+
}
|
|
96
|
+
export function wtChip(wts) {
|
|
97
|
+
const L = (wts || []).filter((w) => !w.main), on = L.filter((w) => w.on !== false).length;
|
|
98
|
+
if (!L.length) return 'main';
|
|
99
|
+
return 'main + ' + on + (on === 1 ? ' worktree' : ' worktrees');
|
|
100
|
+
}
|
|
101
|
+
export function initials(name) {
|
|
102
|
+
const w = String(name || '').trim().split(/\s+/).filter(Boolean);
|
|
103
|
+
if (!w.length) return '?';
|
|
104
|
+
if (w.length === 1) return w[0].length <= 3 ? w[0] : w[0].slice(0, 2);
|
|
105
|
+
return (w[0][0] + w[w.length - 1][0]).toUpperCase();
|
|
106
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* pm/cozy-evui.js — the small shared parts of the Everywhere views (initiative premium-uncovered-features, E1 to E4) and the states of EvStates.
|
|
2
|
+
*
|
|
3
|
+
* esc(s) · svg(d, w) · ICON the canvas's icons (EvMenu, EvSearch, EvInbox, EvSources)
|
|
4
|
+
* toast(text) the page's toast (#toast), when it has one
|
|
5
|
+
* wsParam() · wsQ(pre) the workspace the address names (?ws=)
|
|
6
|
+
* STATES (also window.czStates) — EvStates, for any page:
|
|
7
|
+
* skelRows(n) reading: grey rows in place of the list
|
|
8
|
+
* cantRead({ what, why, retry, sources }) could not be read: what failed, what it answered, Read again and Sources
|
|
9
|
+
* failedItem({ what, why, retry, find }) a Viewer item that failed: "This document could not be opened." Try again, Find it
|
|
10
|
+
* allClear(text, right) nothing is your turn: one line with a green dot
|
|
11
|
+
* moreRow(shown, total) "Showing 25 of 48" with Show 25 more */
|
|
12
|
+
export const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c]));
|
|
13
|
+
export const svg = (d, w = 16) => `<svg aria-hidden="true" width="${w}" height="${w}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="${d}"/></svg>`;
|
|
14
|
+
export const ICON = {
|
|
15
|
+
home: 'M4 11l8-7 8 7v9h-5v-6H9v6H4z', board: 'M4 4h4v16H4zM10 4h4v10h-4zM16 4h4v13h-4z', insights: 'M5 20V11M12 20V5M19 20v-6',
|
|
16
|
+
search: 'M11 4a7 7 0 1 0 0 14a7 7 0 1 0 0-14M20 20l-4-4', news: 'M12 3v3M12 18v3M3 12h3M18 12h3M6 6l2 2M16 16l2 2M6 18l2-2M16 8l2-2',
|
|
17
|
+
sources: 'M12 4c4.4 0 8 1.3 8 3s-3.6 3-8 3-8-1.3-8-3 3.6-3 8-3zM4 7v10c0 1.7 3.6 3 8 3s8-1.3 8-3V7M4 12c0 1.7 3.6 3 8 3s8-1.3 8-3',
|
|
18
|
+
settings: 'M4 7h10M18 7h2M4 17h4M12 17h8M14 5v4M8 15v4', theme: 'M20 14A8 8 0 1 1 10 4a6 6 0 0 0 10 10z', more: 'M5 12h.01M12 12h.01M19 12h.01',
|
|
19
|
+
menu: 'M4 7h16M4 12h16M4 17h16', close: 'M6 6l12 12M18 6L6 18', open: 'M7 17L17 7M9 7h8v8', back: 'M15 6l-6 6 6 6', down: 'M7 10l5 5 5-5',
|
|
20
|
+
flag: 'M5 21V4h11l-2 4 2 4H5', doc: 'M7 3h7l5 5v13H7zM14 3v5h5', slides: 'M3 5h18v12H3zM8 21h8M12 17v4', report: 'M5 20V11M12 20V5M19 20v-6',
|
|
21
|
+
design: 'M4 4h16v16H4zM4 9h16M9 9v11', file: 'M8 6l-5 6 5 6M16 6l5 6-5 6', meet: 'M4 5h16v15H4zM4 10h16M8 3v4M16 3v4', session: 'M5 4l14 8-14 8z',
|
|
22
|
+
chat: 'M4 5h16v11H9l-5 4z', branch: 'M6 3v12M18 9a3 3 0 1 0 0-6a3 3 0 1 0 0 6M6 21a3 3 0 1 0 0-6a3 3 0 1 0 0 6M18 9a9 9 0 0 1-9 9',
|
|
23
|
+
refresh: 'M4 12a8 8 0 0 1 14-5.3M20 4v4h-4M20 12a8 8 0 0 1-14 5.3M4 20v-4h4', jira: 'M4 4h16v16H4zM8.5 12.5l2.5 2.5 4.5-5', cal: 'M4 5h16v15H4zM4 10h16M8 3v4M16 3v4',
|
|
24
|
+
repo: 'M6 3h12v18l-6-4-6 4z', mic: 'M12 3a3 3 0 0 0-3 3v6a3 3 0 0 0 6 0V6a3 3 0 0 0-3-3zM5 11a7 7 0 0 0 14 0M12 18v3', tools: 'M3 6h18v12H3zM3 7l9 6 9-6',
|
|
25
|
+
analytics: 'M4 20V10M10 20V4M16 20v-8M22 20H2', check: 'M5 12l4.5 4.5L19 7',
|
|
26
|
+
};
|
|
27
|
+
export function toast(t) { const el = typeof document !== 'undefined' && document.getElementById('toast'); if (!el) return; el.textContent = t; el.classList.add('on'); clearTimeout(toast.t); toast.t = setTimeout(() => el.classList.remove('on'), 4200); }
|
|
28
|
+
export const wsParam = () => (typeof location !== 'undefined' ? new URLSearchParams(location.search).get('ws') || '' : '');
|
|
29
|
+
export const wsQ = (pre = '?') => (wsParam() ? pre + 'ws=' + encodeURIComponent(wsParam()) : '');
|
|
30
|
+
|
|
31
|
+
/* ── EvStates ── */
|
|
32
|
+
export function skelRows(n = 3) {
|
|
33
|
+
const w = [[80, 50], [65, 40], [70, 0]];
|
|
34
|
+
return Array.from({ length: n }, (_, i) => { const [a, b] = w[i % 3]; return `<div class="ev-skelrow" aria-hidden="true"><span class="ev-ic"></span><span class="ev-tx"><span class="ev-skel ev-w${a}"></span>${b ? `<span class="ev-skel ev-s ev-w${b}"></span>` : ''}</span></div>`; }).join('');
|
|
35
|
+
}
|
|
36
|
+
export function cantRead({ what = 'This', why = '', since = '', retry = true, sources = true } = {}) {
|
|
37
|
+
return `<div class="ev-warn ev-cant" role="alert"><p><b>${esc(what)} could not be read.</b>${why ? ' It answered “' + esc(why) + '”.' : ''}${since ? ' ' + esc(since) : ''}</p>`
|
|
38
|
+
+ `<div class="ev-acts">${retry ? '<button type="button" class="ev-btn sm" data-ev-retry>Read again</button>' : ''}${sources ? '<button type="button" class="ev-btn sm ghost" data-ev-sources>Sources</button>' : ''}</div></div>`;
|
|
39
|
+
}
|
|
40
|
+
export function failedItem({ what = 'This document', why = '', retry = true, find = '' } = {}) {
|
|
41
|
+
return `<div class="ev-box ev-fail" role="alert"><p><b>${esc(what)} could not be opened.</b></p>${why ? `<p class="ev-small ev-mut">${esc(why)}</p>` : ''}`
|
|
42
|
+
+ `<div class="ev-acts">${retry ? '<button type="button" class="ev-btn sm" data-ev-retry>Try again</button>' : ''}${find ? `<button type="button" class="ev-btn sm ghost" data-ev-find="${esc(find)}">Find it</button>` : ''}</div></div>`;
|
|
43
|
+
}
|
|
44
|
+
export const allClear = (text = 'All clear', right = '') => `<p class="ev-clear"><i class="ev-dot ok" aria-hidden="true"></i>${esc(text)}${right ? `<span class="ev-sub ev-right">${esc(right)}</span>` : ''}</p>`;
|
|
45
|
+
export const moreRow = (shown, total, step = 25) => (total > shown ? `<div class="ev-more"><span class="ev-small ev-mut">Showing ${shown} of ${total}</span><button type="button" class="ev-btn sm" data-ev-more>Show ${Math.min(step, total - shown)} more</button></div>` : '');
|
|
46
|
+
export const STATES = { skelRows, cantRead, failedItem, allClear, moreRow };
|
|
47
|
+
if (typeof window !== 'undefined') window.czStates = STATES;
|
|
@@ -58,9 +58,6 @@ body.cz { padding: 0; }
|
|
|
58
58
|
.ins-cust[hidden] { display: none; }
|
|
59
59
|
.ins-cust label { display: flex; flex-direction: column; font-size: 12px; font-weight: 700; color: var(--cz-ink2); gap: 3px; }
|
|
60
60
|
.ins-cust input { height: 32px; border: 1px solid var(--cz-hair); border-radius: 10px; padding: 0 8px; font: inherit; font-size: 13px; background: var(--cz-card); color: var(--cz-ink); }
|
|
61
|
-
.ins-find { display: flex; align-items: center; gap: 8px; background: var(--cz-well); border-radius: 16px; padding: 4px 6px 4px 14px; }
|
|
62
|
-
.ins-find[hidden] { display: none; }
|
|
63
|
-
.ins-find input { flex: 1; height: 34px; border: 0; background: transparent; font: inherit; font-size: 13.5px; color: var(--cz-ink); outline: 0; }
|
|
64
61
|
|
|
65
62
|
/* ── the strip ── */
|
|
66
63
|
.ins-strip { display: flex; align-items: center; gap: 10px; background: var(--cz-well); border-radius: 16px; padding: 8px 8px 8px 14px; font-size: 13.5px; }
|
|
@@ -187,7 +184,6 @@ body.cz { padding: 0; }
|
|
|
187
184
|
.ins-lbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
188
185
|
.ins-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
|
|
189
186
|
.ins-chips .cz-chip { color: var(--cz-ink2); }
|
|
190
|
-
.ins-lbar #sugB { color: var(--cz-ink2); }
|
|
191
187
|
.ins-lnote { margin-left: auto; }
|
|
192
188
|
.ins-sec { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--cz-ink2); padding: 2px 4px; }
|
|
193
189
|
.ins-sec h3 { margin: 0; font-size: 13px; font-weight: 800; color: var(--cz-ink2); }
|
|
@@ -287,8 +283,8 @@ p.ins-fl { flex-direction: row; align-items: center; margin: 0 0 6px; flex-wrap:
|
|
|
287
283
|
.ins-desc { display: flex; align-items: center; gap: 6px; background: var(--cz-well); border-radius: 18px; padding: 6px 6px 6px 14px; margin: 0; }
|
|
288
284
|
.ins-desc .sp { color: var(--cz-blueink); display: inline-flex; }
|
|
289
285
|
.ins-desc input { flex: 1; height: 36px; border: 0; background: transparent; font: inherit; font-size: 13.5px; color: var(--cz-ink); outline: 0; min-width: 0; }
|
|
290
|
-
.ins-side .ins-desc input:focus-visible, .ins .ins-
|
|
291
|
-
.ins-desc:focus-within, .ins-
|
|
286
|
+
.ins-side .ins-desc input:focus-visible, .ins .ins-finp input:focus-visible { outline: none; } /* the rounded box shows the focus, not a square ring inside it */
|
|
287
|
+
.ins-desc:focus-within, .ins-finp:focus-within { box-shadow: 0 0 0 2px var(--cz-blue); }
|
|
292
288
|
.ins-side .cz-ib.sm { width: 32px; height: 32px; }
|
|
293
289
|
.ins-side .cz-ib:disabled { opacity: .45; cursor: not-allowed; }
|
|
294
290
|
.ins-picked { display: flex; flex-direction: column; }
|
|
@@ -331,9 +327,6 @@ p.ins-fl { flex-direction: row; align-items: center; margin: 0 0 6px; flex-wrap:
|
|
|
331
327
|
.ins-meter { position: relative; height: 14px; border-radius: 7px; background: var(--cz-c-eceae6); margin: 22px 0; }
|
|
332
328
|
.ins-meter i { display: block; height: 100%; border-radius: 7px; }
|
|
333
329
|
.ins-meter .tg { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--cz-ink); }
|
|
334
|
-
.ins-wait { background: var(--cz-well); border-radius: 14px; padding: 14px 16px; }
|
|
335
|
-
.ins-wait b { font-size: 14px; font-weight: 800; }
|
|
336
|
-
.ins-wait p { margin: 4px 0 0; font-size: 12.5px; color: var(--cz-ink2); line-height: 1.45; }
|
|
337
330
|
.ins-src { display: flex; flex-direction: column; }
|
|
338
331
|
.ins-src div { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--cz-hair); font-size: 12.5px; color: var(--cz-ink2); }
|
|
339
332
|
.ins-src b { color: var(--cz-ink); font-weight: 800; }
|
|
@@ -402,7 +395,6 @@ p.ins-fl { flex-direction: row; align-items: center; margin: 0 0 6px; flex-wrap:
|
|
|
402
395
|
}
|
|
403
396
|
|
|
404
397
|
/* the minimal panels the Agreed design does not draw yet (goal detail, budget, tile target, report flows), in the Viewer card */
|
|
405
|
-
.ins-wmark { display: inline-block; margin: 0 0 12px; padding: 4px 10px; border-radius: 999px; background: var(--cz-well); color: var(--cz-ink3); font-size: 12px; font-weight: 700; }
|
|
406
398
|
.ins-vbody .cz-ph { margin-bottom: 12px; }
|
|
407
399
|
.ins-kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 6px 12px; margin: 0 0 14px; font-size: 13px; }
|
|
408
400
|
.ins-kv dt { color: var(--cz-ink3); font-weight: 700; }
|
|
@@ -419,3 +411,149 @@ p.ins-fl { flex-direction: row; align-items: center; margin: 0 0 6px; flex-wrap:
|
|
|
419
411
|
.ins-fnd:last-child { border-bottom: 0; }
|
|
420
412
|
.ins-fnd > b { font-size: 14px; font-weight: 800; color: var(--cz-ink); }
|
|
421
413
|
.ins-side [hidden], .ins-vbody [hidden] { display: none !important; }
|
|
414
|
+
|
|
415
|
+
/* ── premium-uncovered-features: IsGoal, IsTarget, IsLibrary, IsMenus, IsPhone ─────────────────────────────────────────────────────── */
|
|
416
|
+
/* menus: a key at the right of an item, a hairline between groups, the filter's chip groups and Find's popover (IsMenus) */
|
|
417
|
+
.ins-menu button .k { margin-left: auto; padding-left: 12px; font-size: 12px; font-weight: 600; color: var(--cz-ink3); white-space: nowrap; align-self: center; }
|
|
418
|
+
.ins-menu button > svg { width: 16px; height: 16px; color: var(--cz-ink2); align-self: center; }
|
|
419
|
+
.ins-hr { height: 1px; background: var(--cz-hair); margin: 4px 0; flex: none; }
|
|
420
|
+
.ins-filtp { width: 330px; padding: 10px 6px 12px; }
|
|
421
|
+
.ins-fchips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 12px 6px; }
|
|
422
|
+
.ins-menu .ins-fchips .cz-chip { width: auto; padding: 0 11px; font-size: 12.5px; font-weight: 600; border-radius: 999px; align-items: center; min-height: 30px; }
|
|
423
|
+
.ins-menu .ins-fclr { color: var(--cz-blueink); }
|
|
424
|
+
.ins-findp { width: 380px; padding: 10px; }
|
|
425
|
+
.ins-finp { display: flex; align-items: center; gap: 8px; height: 42px; border-radius: 14px; background: var(--cz-well); padding: 0 8px 0 14px; margin-bottom: 4px; }
|
|
426
|
+
.ins-finp > svg { width: 16px; height: 16px; color: var(--cz-ink3); }
|
|
427
|
+
.ins-finp input { flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 700; color: var(--cz-ink); outline: 0; }
|
|
428
|
+
.ins-menu .ins-kbd, .ins-kbd { width: auto; display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 7px; background: var(--cz-card); font-size: 11.5px; font-weight: 700; color: var(--cz-ink3); }
|
|
429
|
+
.ins-fres .ins-fo > span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; gap: 2px; }
|
|
430
|
+
.ins-fres small { font-size: 12px; font-weight: 600; color: var(--cz-ink3); }
|
|
431
|
+
.ins-fres mark { background: var(--cz-bluebg); color: var(--cz-blueink); border-radius: 4px; padding: 0 2px; }
|
|
432
|
+
/* the empty trend: the one value, not a flat line (IsMenus) */
|
|
433
|
+
.ins-one { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
434
|
+
.cz-pill.ins-dash { background: transparent; border: 1px dashed var(--cz-hair); box-shadow: inset 0 0 0 1px var(--cz-hair); color: var(--cz-ink3); }
|
|
435
|
+
|
|
436
|
+
/* buttons and parts the frames share, in the page and in the Viewer card */
|
|
437
|
+
.ins-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--cz-hair); box-shadow: inset 0 0 0 1px var(--cz-hair); background: var(--cz-card); color: var(--cz-ink); font: inherit; font-size: 13.5px; font-weight: 700; white-space: nowrap; cursor: pointer; text-decoration: none; }
|
|
438
|
+
.ins-btn.sm { height: 30px; padding: 0 11px; font-size: 12.5px; }
|
|
439
|
+
.ins-btn.dark { background: var(--cz-ink); color: var(--cz-card); border-color: transparent; box-shadow: none; }
|
|
440
|
+
.ins-btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--cz-ink2); }
|
|
441
|
+
.ins-btn.wide { width: 100%; height: 44px; }
|
|
442
|
+
.ins-btn:disabled { opacity: .55; cursor: default; }
|
|
443
|
+
.ins-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
|
|
444
|
+
.ins-clip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 30px; }
|
|
445
|
+
.ins-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
446
|
+
.ins-lbl { font-size: 12px; font-weight: 800; color: var(--cz-ink3); margin: 4px 0 0; }
|
|
447
|
+
.ins-h3 { font-size: 15px; font-weight: 800; margin: 0; }
|
|
448
|
+
.ins-box { background: var(--cz-well); border-radius: 16px; padding: 12px 14px; font-size: 13px; }
|
|
449
|
+
.ins-need { background: var(--cz-bluebg); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
|
|
450
|
+
.ins-need .ins-kv { margin: 0; }
|
|
451
|
+
.ins-trow { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--cz-hair); font-size: 13.5px; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; font-family: inherit; color: var(--cz-ink); text-align: left; }
|
|
452
|
+
.ins-trow > span:first-child { flex: 1; min-width: 0; }
|
|
453
|
+
.ins-trow:last-child { border-bottom: 0; }
|
|
454
|
+
.ins-th2, .ins-rd3 { display: grid; grid-template-columns: minmax(0, 1fr) 80px 130px; gap: 10px; align-items: center; }
|
|
455
|
+
.ins-th2 { font-size: 12px; font-weight: 800; color: var(--cz-ink3); padding: 8px 4px; border-bottom: 1px solid var(--cz-hair); }
|
|
456
|
+
.ins-rd3 > span:first-child { flex: none; }
|
|
457
|
+
.ins-chips2 { display: flex; gap: 6px; flex-wrap: wrap; }
|
|
458
|
+
.ins-chk { width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--cz-hair); box-shadow: inset 0 0 0 1px var(--cz-hair); flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0; background: transparent; cursor: pointer; color: transparent; }
|
|
459
|
+
.ins-chk svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; }
|
|
460
|
+
.ins-chk.on { background: var(--cz-ink); border-color: var(--cz-ink); box-shadow: none; color: var(--cz-card); }
|
|
461
|
+
.ins-chkl { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--cz-ink); }
|
|
462
|
+
|
|
463
|
+
/* the Viewer card's frames: a tab row, the sub line, the chart, the body (IsGoal, IsLibrary) */
|
|
464
|
+
.ins-vbody svg[aria-hidden="true"] { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
|
|
465
|
+
.ins-gd { display: flex; flex-direction: column; gap: 12px; font-family: var(--cz-sans); color: var(--cz-ink); }
|
|
466
|
+
.ins-gd p { margin: 0; }
|
|
467
|
+
.ins-vbar { display: flex; align-items: center; gap: 4px; padding: 3px; border-radius: 14px; background: var(--cz-well); }
|
|
468
|
+
.ins-vtab { height: 32px; padding: 0 12px; border-radius: 12px; border: 0; background: transparent; display: inline-flex; align-items: center; font: inherit; font-size: 13px; font-weight: 700; color: var(--cz-ink3); cursor: pointer; }
|
|
469
|
+
.ins-vtab.on { background: var(--cz-card); color: var(--cz-ink); box-shadow: 0 1px 2px rgba(42,46,53,.06); }
|
|
470
|
+
.ins-vbar .ins-vedit { margin-left: auto; }
|
|
471
|
+
.ins-gh { display: flex; flex-direction: column; gap: 2px; }
|
|
472
|
+
.ins-gsub { font-size: 13px; color: var(--cz-ink3); }
|
|
473
|
+
.ins-gb { display: flex; flex-direction: column; gap: 10px; }
|
|
474
|
+
.ins-gch { width: 100%; height: auto; display: block; overflow: visible; }
|
|
475
|
+
.ins-gch path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
|
|
476
|
+
.ins-gch .base { stroke: var(--cz-hair); stroke-width: 1; }
|
|
477
|
+
.ins-gch .tg { stroke: var(--cz-ok); stroke-dasharray: 4 4; stroke-width: 1.5; }
|
|
478
|
+
.ins-gch .tgl { fill: var(--cz-ok); font-size: 11px; font-weight: 700; }
|
|
479
|
+
.ins-gch .ln { stroke: var(--cz-blue); }
|
|
480
|
+
.ins-gch .pj { stroke: var(--cz-blue); stroke-dasharray: 3 5; }
|
|
481
|
+
.ins-gch .pt { fill: var(--cz-card); stroke: var(--cz-blue); stroke-width: 2; }
|
|
482
|
+
.ins-gch .pt.now { fill: var(--cz-blue); }
|
|
483
|
+
.ins-gch .ship { stroke: var(--cz-ink3); stroke-width: 1; }
|
|
484
|
+
.ins-gch .shipl { fill: var(--cz-ink3); font-size: 11px; }
|
|
485
|
+
.ins-etr { display: flex; align-items: center; gap: 10px; }
|
|
486
|
+
.ins-etr > span { flex: 1; }
|
|
487
|
+
.ins-mvl { display: flex; flex-direction: column; gap: 8px; }
|
|
488
|
+
.ins-gd.ph .ins-vbar { background: transparent; padding: 0; }
|
|
489
|
+
.ins-gd.ph .ins-vtab.on { background: var(--cz-well); box-shadow: none; }
|
|
490
|
+
.ins-gd .ins-trow .ins-tog { margin-left: auto; }
|
|
491
|
+
.ins-iss { cursor: pointer; }
|
|
492
|
+
.ins-iss > span:first-child { flex: none; width: 110px; }
|
|
493
|
+
.ins-nb { display: flex; align-items: center; gap: 10px; }
|
|
494
|
+
.ins-nb > span { flex: 1; }
|
|
495
|
+
|
|
496
|
+
/* Delivery trends: the target line under each tile, the open tile, the view of the tiles alone, and the target popover (IsTarget) */
|
|
497
|
+
.ins-tile .tg { font-size: 11px; font-weight: 700; color: var(--cz-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
498
|
+
.ins-tile.sel { box-shadow: 0 0 0 1px rgba(72,148,234,.55), 0 0 0 4px rgba(72,148,234,.12); }
|
|
499
|
+
.ins-tile.sel .tg { color: var(--cz-blueink); }
|
|
500
|
+
body.ins-trv #insHero, body.ins-trv #goalCards { display: none; }
|
|
501
|
+
.ins-trh { display: flex; align-items: baseline; gap: 10px; padding: 4px 0 14px; }
|
|
502
|
+
.ins-trh h2 { margin: 0; font-size: 18px; font-weight: 800; }
|
|
503
|
+
.ins-trends.big { border-top: 0; }
|
|
504
|
+
.ins-trends.big .ins-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0; border-top: 0; }
|
|
505
|
+
.ins-trends.big .ins-tile { background: var(--cz-card); border: 1px solid var(--cz-hair); border-radius: 18px; padding: 14px 16px; gap: 6px; }
|
|
506
|
+
.ins-trends.big .ins-tile.warn { background: var(--cz-latebg); }
|
|
507
|
+
.ins-trends.big .ins-tile .l { font-size: 12.5px; font-weight: 800; color: var(--cz-ink); }
|
|
508
|
+
.ins-trends.big .ins-tile .v { font-size: 26px; line-height: 1; }
|
|
509
|
+
.ins-trends.big .ins-tile .tg { font-size: 12px; }
|
|
510
|
+
.ins-trends.big .ins-tsp { width: 100%; height: 34px; }
|
|
511
|
+
.ins-pop { position: absolute; z-index: 40; background: var(--cz-card); border-radius: 20px; box-shadow: 0 24px 60px -24px rgba(42,46,53,.45), 0 0 0 1px var(--cz-hair); padding: 16px; display: flex; flex-direction: column; gap: 12px; font-family: var(--cz-sans); color: var(--cz-ink); }
|
|
512
|
+
.ins-tgpop { width: 400px; }
|
|
513
|
+
.ins-tgpop.ph { position: fixed; left: 12px; right: 12px; bottom: 12px; width: auto; }
|
|
514
|
+
.ins-tgpop .ins-seg { align-self: flex-start; }
|
|
515
|
+
.ins-tgpop .ins-inp { background: var(--cz-well); border-color: transparent; }
|
|
516
|
+
.ins-tgpop .ins-inp:disabled { opacity: .5; }
|
|
517
|
+
|
|
518
|
+
/* Library (IsLibrary): the bar, Found in your work, the reports table */
|
|
519
|
+
.ins-lbar { justify-content: flex-end; }
|
|
520
|
+
.ins-lbar .ins-lnote { margin-left: 0; margin-right: auto; font-size: 12.5px; color: var(--cz-ink3); }
|
|
521
|
+
.ins-fd { border: 1px dashed var(--cz-c-9aa1ab); border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
|
|
522
|
+
.ins-fdh { display: flex; align-items: center; gap: 8px; }
|
|
523
|
+
.ins-fdh b { flex: 1; font-size: 13.5px; }
|
|
524
|
+
.ins-fcard { background: var(--cz-card); border-radius: 16px; border: 1px solid var(--cz-hair); padding: 12px 14px; display: flex; align-items: center; gap: 10px; box-shadow: 0 1px 2px rgba(42,46,53,.04); }
|
|
525
|
+
.ins-fcard .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; background: none; border: 0; padding: 0; font: inherit; color: var(--cz-ink); text-align: left; cursor: pointer; }
|
|
526
|
+
.ins-fcard .nm b { font-size: 13.5px; }
|
|
527
|
+
.ins-fcard .nm small, .ins-rl .nm small { font-size: 12.5px; color: var(--cz-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
|
|
528
|
+
.ins-rtbl { border: 1px solid var(--cz-hair); border-radius: 18px; overflow: hidden; }
|
|
529
|
+
.ins-rl { display: grid; grid-template-columns: minmax(0, 1fr) 150px 160px; align-items: center; gap: 0 14px; min-height: 58px; padding: 0 14px; width: 100%; border: 0; border-top: 1px solid var(--cz-hair); background: none; font: inherit; font-size: 13.5px; color: var(--cz-ink); text-align: left; cursor: pointer; }
|
|
530
|
+
.ins-rl.ins-rlh { min-height: 36px; border-top: 0; background: var(--cz-well); font-size: 12px; font-weight: 800; color: var(--cz-ink2); cursor: default; }
|
|
531
|
+
.ins-rl.sel { background: var(--cz-bluebg); }
|
|
532
|
+
.ins-rl .nm { display: flex; flex-direction: column; min-width: 0; }
|
|
533
|
+
.ins-rl .nx.q { color: var(--cz-ink3); }
|
|
534
|
+
@media (hover: hover) { .ins-rl:not(.ins-rlh):not(.sel):hover { background: rgba(244, 243, 240, .5); } }
|
|
535
|
+
/* the phone sheet of a report setup (IsPhone right) */
|
|
536
|
+
.ins-scrim { position: fixed; inset: 0; background: rgba(42,46,53,.18); z-index: 80; }
|
|
537
|
+
.ins-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 81; background: var(--cz-card); border-radius: 28px 28px 0 0; box-shadow: 0 -20px 50px -20px rgba(42,46,53,.35); padding: 10px 16px 24px; display: flex; flex-direction: column; gap: 10px; font-family: var(--cz-sans); color: var(--cz-ink); }
|
|
538
|
+
.ins-sheet p { margin: 0; }
|
|
539
|
+
.ins-sheet .ins-acts { flex-wrap: nowrap; }
|
|
540
|
+
.ins-sheet .ins-acts .ins-btn { flex: 1; }
|
|
541
|
+
.ins-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--cz-hair); box-shadow: inset 0 0 0 3px var(--cz-hair); align-self: center; margin-bottom: 4px; }
|
|
542
|
+
@media (max-width: 720px) {
|
|
543
|
+
.ins-findp, .ins-filtp { width: min(380px, calc(100vw - 32px)); }
|
|
544
|
+
.ins-lbar .ins-lnote { display: none; }
|
|
545
|
+
.ins-fcard { flex-wrap: wrap; }
|
|
546
|
+
.ins-fcard .nm { flex-basis: 100%; }
|
|
547
|
+
.ins-rtbl { border: 0; border-radius: 0; display: flex; flex-direction: column; gap: 2px; }
|
|
548
|
+
.ins-rl.ins-rlh { display: none; }
|
|
549
|
+
.ins-rl { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nm st" "nx st"; border-top: 0; border-radius: 16px; padding: 8px 10px; min-height: 0; gap: 1px 10px; }
|
|
550
|
+
.ins-rl .nm { grid-area: nm; } .ins-rl .nm small { display: none; } .ins-rl .nx { grid-area: nx; font-size: 12.5px; color: var(--cz-blueink); } .ins-rl .st { grid-area: st; }
|
|
551
|
+
.ins-rl.sel { background: var(--cz-card); box-shadow: 0 6px 18px -10px rgba(42,46,53,.25); }
|
|
552
|
+
.ins-trends.big .ins-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
553
|
+
.ins-th2, .ins-rd3 { grid-template-columns: minmax(0, 1fr) 70px 90px; }
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
/* The page makes room for the floating Viewer on a desktop; the notes in the Viewer, the popover and the sheet; the trends view has no table frame */
|
|
557
|
+
@media (min-width: 761px) { body.ins-vwon main.ins.stage { margin-right: 532px; } }
|
|
558
|
+
.ins-gd .note, .ins-pop .note, .ins-sheet .note { margin: 4px 0 0; font-size: 12px; color: var(--cz-ink3); }
|
|
559
|
+
body.ins-trv #goalTbl { border: 0; background: none; border-radius: 0; overflow: visible; }
|