@panphora/clayjs 1.13.1 → 1.14.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/THIRD-PARTY-NOTICES.md +19 -0
- package/dist/clay.standalone.js +69667 -41708
- package/dist/server/checkpoint.cjs +70690 -0
- package/dist/server/checkpoint.mjs +8 -0
- package/dist/server/rooms.cjs +72039 -0
- package/dist/server/rooms.mjs +66 -0
- package/docs/guide.md +94 -93
- package/entries/clay.js +22 -0
- package/package.json +16 -2
- package/packed-contract.json +17 -3
- package/src/core/conflict-download.js +11 -2
- package/src/core/host-meta.js +75 -0
- package/src/core/persist.js +11 -0
- package/src/core/save-core.js +266 -31
- package/src/core/save.js +62 -32
- package/src/core/snapshot.js +39 -13
- package/src/core/style-comparisons.js +37 -0
- package/src/dom/insert-style-tag.js +11 -12
- package/src/lib/effect.js +130 -0
- package/src/lib/style-adoption.js +9 -0
- package/src/lib/style.js +44 -0
- package/src/live/fast-lane.js +347 -60
- package/src/live/local-lane.js +32 -6
- package/src/live/ops.js +77 -0
- package/src/live/provenance.js +129 -0
- package/src/live/save-history.js +188 -0
- package/src/live/server-lane.js +9 -2
- package/src/live/store.js +194 -16
- package/src/loader-logic.js +7 -3
- package/src/loader.js +6 -0
- package/src/page/address.js +20 -0
- package/src/page/adopt-boot.js +189 -0
- package/src/page/adopt.js +240 -0
- package/src/page/ai-tool.js +188 -0
- package/src/page/announce.js +21 -0
- package/src/page/blocks.js +1121 -0
- package/src/page/blocksel.js +269 -0
- package/src/page/board-drag.js +226 -0
- package/src/page/board-panel.js +353 -0
- package/src/page/board-style.js +146 -0
- package/src/page/board-view.js +447 -0
- package/src/page/board.js +41 -0
- package/src/page/chart.js +220 -0
- package/src/page/checklist.js +143 -0
- package/src/page/chrome.js +587 -0
- package/src/page/csv-import.js +169 -0
- package/src/page/drag.js +202 -0
- package/src/page/drop.js +112 -0
- package/src/page/editor.js +384 -0
- package/src/page/highlight.js +268 -0
- package/src/page/inline.js +60 -1
- package/src/page/items.js +159 -0
- package/src/page/link.js +247 -0
- package/src/page/markdown.js +71 -0
- package/src/page/media.js +570 -0
- package/src/page/merge.js +130 -0
- package/src/page/model.js +71 -9
- package/src/page/placeholder.js +23 -0
- package/src/page/projection.js +647 -0
- package/src/page/recover.js +193 -0
- package/src/page/rich/cell.js +16 -0
- package/src/page/rich/chart.js +104 -0
- package/src/page/rich/csv.js +118 -0
- package/src/page/rich/page-tool.js +86 -0
- package/src/page/rich/tool-runtime.js +195 -0
- package/src/page/save-projection.js +53 -0
- package/src/page/save-states.js +85 -0
- package/src/page/schema.js +12 -5
- package/src/page/table-kinds.js +20 -0
- package/src/page/table-paste.js +57 -0
- package/src/page/table-select.js +244 -0
- package/src/page/table-style.js +25 -0
- package/src/page/table.js +650 -0
- package/src/page/themes/content.css +46 -0
- package/src/page/themes/light-1.css +269 -0
- package/src/page/themes/light-2.css +211 -0
- package/src/page/themes/light-3.css +130 -0
- package/src/page/themes/light-4.css +299 -0
- package/src/page/tool-data.js +25 -0
- package/src/page/tool-view.js +68 -0
- package/src/page/tools.js +133 -0
- package/src/page/view.js +136 -0
- package/src/page/ybind/author.js +25 -0
- package/src/page/ybind/binding.js +92 -0
- package/src/page/ybind/board-commands.js +170 -0
- package/src/page/ybind/board.js +89 -0
- package/src/page/ybind/bridge.js +382 -0
- package/src/page/ybind/conversion.js +26 -0
- package/src/page/ybind/core.js +7 -0
- package/src/page/ybind/decode.js +208 -0
- package/src/page/ybind/doc.js +58 -0
- package/src/page/ybind/external.js +190 -0
- package/src/page/ybind/group.js +124 -0
- package/src/page/ybind/index.js +12 -0
- package/src/page/ybind/layout.js +27 -0
- package/src/page/ybind/marks.js +18 -0
- package/src/page/ybind/migrate.js +152 -0
- package/src/page/ybind/moves.js +288 -0
- package/src/page/ybind/origins.js +257 -0
- package/src/page/ybind/parts.js +44 -0
- package/src/page/ybind/projection-map.js +92 -0
- package/src/page/ybind/provider.js +285 -0
- package/src/page/ybind/recovery.js +411 -0
- package/src/page/ybind/seed.js +27 -0
- package/src/page/ybind/table.js +166 -0
- package/src/page/ybind/tokens.js +93 -0
- package/src/page/ybind/walk.js +333 -0
- package/src/page/ybind/writer.js +307 -0
- package/src/plugins/indicator.js +16 -6
- package/src/plugins/live.js +742 -65
- package/src/plugins/page.js +547 -0
- package/src/plugins/undo.js +60 -3
- package/src/server/checkpoint/index.js +218 -0
- package/src/server/rooms/index.js +59 -0
- package/src/server/rooms/live-data-ops.js +369 -0
- package/src/server/rooms/live-data-rooms.js +965 -0
- package/src/server/rooms/live-data-tags.js +49 -0
- package/src/server/rooms/live-page-history.js +41 -0
- package/src/server/rooms/live-provenance.js +142 -0
- package/src/server/rooms/page-admission.js +79 -0
- package/src/server/rooms/page-conversion.js +62 -0
- package/src/server/rooms/page-rebase.js +108 -0
- package/src/server/rooms/page-state.js +91 -0
- package/src/server/rooms/page-write-admission.js +63 -0
- package/src/server/rooms/page-write-guard.js +23 -0
- package/src/server/rooms/recent.js +18 -0
- package/src/server/rooms/spec-wire.js +17 -0
- package/src/standalone.js +22 -0
- package/src/sync/live-sync.js +13 -2
- package/src/sync/stream.js +62 -16
- package/src/ui/index.js +4 -0
- package/src/ui/toast.js +21 -5
- package/src/vendor/pierre/pierre.vendor.js +3 -0
- package/src/vendor/yjs.vendor.js +7 -0
- package/src/page/binding.js +0 -647
- package/src/page/replay.js +0 -578
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
import { state } from "../vendor/prosemirror.vendor.js";
|
|
2
|
+
import { schema } from "./schema.js";
|
|
3
|
+
import { announce } from "./announce.js";
|
|
4
|
+
import { BOARD_ICONS, el, iconButton, boardOf, cardFace, dueLabel, dueState, todayKey, placeAfter } from "./board-view.js";
|
|
5
|
+
|
|
6
|
+
const NARROW = "(max-width: 1039.98px)";
|
|
7
|
+
const isTyping = (target) => /^(INPUT|TEXTAREA|SELECT)$/.test(target?.tagName ?? "");
|
|
8
|
+
const panels = new WeakMap();
|
|
9
|
+
let count = 0;
|
|
10
|
+
|
|
11
|
+
export function cardPanel(view) {
|
|
12
|
+
if (!panels.has(view)) panels.set(view, new CardPanel(view));
|
|
13
|
+
return panels.get(view);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export class CardPanel {
|
|
17
|
+
constructor(view) {
|
|
18
|
+
this.view = view;
|
|
19
|
+
this.blockId = null;
|
|
20
|
+
this.cardId = null;
|
|
21
|
+
this.host = null;
|
|
22
|
+
this.node = null;
|
|
23
|
+
this.people = [];
|
|
24
|
+
this.dueInput = null;
|
|
25
|
+
this.rendering = false;
|
|
26
|
+
this.titleBase = "";
|
|
27
|
+
this.ownerBase = "";
|
|
28
|
+
const doc = view.dom.ownerDocument;
|
|
29
|
+
const id = `page-board-panel-${++count}`;
|
|
30
|
+
this.scrim = el(doc, "div", "page-board-scrim", { "aria-hidden": "true" });
|
|
31
|
+
this.dom = el(doc, "aside", "page-board-panel", { role: "dialog", "aria-modal": "false", "aria-labelledby": `${id}-title` });
|
|
32
|
+
const top = el(doc, "div", "page-board-panel-top");
|
|
33
|
+
this.title = el(doc, "textarea", "page-board-panel-title", { id: `${id}-title`, rows: 2, "aria-label": "Card title", spellcheck: "false", "data-focus": "title" });
|
|
34
|
+
top.append(this.title, iconButton(doc, "page-board-icon page-board-close", "close", null, { "aria-label": "Close", "aria-keyshortcuts": "Escape", "data-action": "close", "data-focus": "close" }));
|
|
35
|
+
this.ownerInput = el(doc, "input", "page-board-owner-input", { type: "text", "aria-label": "Owner name", placeholder: "Or type a name…", "data-focus": "owner-name" });
|
|
36
|
+
this.fields = el(doc, "div", "page-board-fields");
|
|
37
|
+
this.actions = el(doc, "div", "page-board-actions");
|
|
38
|
+
this.dom.append(top, this.fields, this.actions);
|
|
39
|
+
this.labels = { column: `${id}-column`, owner: `${id}-owner`, due: `${id}-due` };
|
|
40
|
+
this.textField(this.title, () => this.commitTitle());
|
|
41
|
+
this.textField(this.ownerInput, () => this.commitOwner());
|
|
42
|
+
this.dom.addEventListener("click", (event) => this.click(event));
|
|
43
|
+
this.dom.addEventListener("mousedown", (event) => { if (event.target.closest?.("button")) event.preventDefault(); });
|
|
44
|
+
this.dom.addEventListener("change", (event) => { if (event.target.dataset.focus === "column") this.moveTo(event.target.value); });
|
|
45
|
+
this.dom.addEventListener("keydown", (event) => this.keydown(event));
|
|
46
|
+
this.scrim.addEventListener("click", () => this.hide(true));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
textField(input, commit) {
|
|
50
|
+
input.addEventListener("keydown", (event) => {
|
|
51
|
+
if (event.isComposing || event.keyCode === 229) return;
|
|
52
|
+
if (event.key === "Enter" && !event.shiftKey) { event.preventDefault(); commit(); }
|
|
53
|
+
else if (event.key === "Escape") { event.preventDefault(); this.hide(true); }
|
|
54
|
+
});
|
|
55
|
+
input.addEventListener("blur", () => {
|
|
56
|
+
if (this.rendering) return;
|
|
57
|
+
setTimeout(() => { if (this.blockId !== null && input.ownerDocument.activeElement !== input) commit(); }, 0);
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
get shell() { return this.view.dom.parentElement; }
|
|
62
|
+
|
|
63
|
+
isOpen(blockId, cardId) { return this.blockId === blockId && this.cardId === cardId; }
|
|
64
|
+
|
|
65
|
+
boardNode() {
|
|
66
|
+
let found = null;
|
|
67
|
+
this.view.state.doc.forEach((node) => { if (!found && node.type === schema.nodes.board && node.attrs.id === this.blockId) found = node; });
|
|
68
|
+
return found;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
card() { return this.boardNode()?.attrs.cards?.[this.cardId] ?? null; }
|
|
72
|
+
|
|
73
|
+
boardButton(blockId, key) {
|
|
74
|
+
const board = [...this.view.dom.querySelectorAll(".page-board")].find((node) => node.dataset.id === blockId);
|
|
75
|
+
return board ? [...board.querySelectorAll("[data-focus]")].find((node) => node.dataset.focus === key && !node.disabled) ?? null : null;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
setExpanded(on) {
|
|
79
|
+
this.boardButton(this.blockId, `card:${this.cardId}`)?.setAttribute("aria-expanded", String(on));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
open(blockId, cardId, host) {
|
|
83
|
+
if (this.blockId !== null) {
|
|
84
|
+
this.commit();
|
|
85
|
+
this.setExpanded(false);
|
|
86
|
+
}
|
|
87
|
+
this.blockId = blockId;
|
|
88
|
+
this.cardId = cardId;
|
|
89
|
+
this.host = host;
|
|
90
|
+
this.dueInput = null;
|
|
91
|
+
if (!this.dom.isConnected) this.shell.append(this.scrim, this.dom);
|
|
92
|
+
this.shell.classList.add("has-board-panel");
|
|
93
|
+
const sheet = !!this.view.dom.ownerDocument.defaultView.matchMedia?.(NARROW).matches;
|
|
94
|
+
this.dom.setAttribute("aria-modal", String(sheet));
|
|
95
|
+
this.render(true);
|
|
96
|
+
this.setExpanded(true);
|
|
97
|
+
if (sheet) this.focusKey("close");
|
|
98
|
+
else this.title.focus();
|
|
99
|
+
this.loadPeople();
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
hide(refocus = false, commit = true) {
|
|
103
|
+
if (this.blockId === null) return;
|
|
104
|
+
if (commit) this.commit();
|
|
105
|
+
const { blockId, cardId } = this;
|
|
106
|
+
this.setExpanded(false);
|
|
107
|
+
this.blockId = this.cardId = this.node = null;
|
|
108
|
+
this.dueInput = null;
|
|
109
|
+
this.scrim.remove();
|
|
110
|
+
this.dom.remove();
|
|
111
|
+
this.shell?.classList.remove("has-board-panel");
|
|
112
|
+
if (refocus) this.boardButton(blockId, `card:${cardId}`)?.focus();
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
loadPeople() {
|
|
116
|
+
const source = globalThis.clay?.people?.available;
|
|
117
|
+
if (!source) return;
|
|
118
|
+
Promise.resolve().then(() => source()).then((people) => {
|
|
119
|
+
this.people = (Array.isArray(people) ? people : []).filter((person) => typeof person?.name === "string" && person.name);
|
|
120
|
+
if (this.blockId !== null) this.render(false);
|
|
121
|
+
}).catch(() => {});
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
run(name, ...args) {
|
|
125
|
+
if (!this.host?.commands || !this.view.editable) return { status: "refused", code: "read-only" };
|
|
126
|
+
const result = this.host.commands[name](this.blockId, this.cardId, ...args);
|
|
127
|
+
if (result?.status === "refused") this.sync(true);
|
|
128
|
+
return result;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
commit() {
|
|
132
|
+
this.commitTitle();
|
|
133
|
+
this.commitOwner();
|
|
134
|
+
if (this.dueInput) this.commitDue();
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
commitTitle() {
|
|
138
|
+
const card = this.card();
|
|
139
|
+
const title = this.title.value.replace(/\s*\n\s*/g, " ");
|
|
140
|
+
this.title.value = title;
|
|
141
|
+
if (card && title !== card.title) this.run("editCard", { title });
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
commitOwner() {
|
|
145
|
+
const card = this.card();
|
|
146
|
+
const typed = this.ownerInput.value.trim();
|
|
147
|
+
this.ownerInput.value = typed;
|
|
148
|
+
const owner = typed || null;
|
|
149
|
+
if (card && owner !== (card.owner ?? null)) this.run("editCard", { owner });
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
commitDue() {
|
|
153
|
+
const card = this.card();
|
|
154
|
+
const due = this.dueInput?.value || null;
|
|
155
|
+
this.dueInput = null;
|
|
156
|
+
if (card && due !== (card.due ?? null)) this.run("editCard", { due });
|
|
157
|
+
else if (this.blockId !== null) this.render(false);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
openDue() {
|
|
161
|
+
const doc = this.view.dom.ownerDocument;
|
|
162
|
+
const input = el(doc, "input", "page-board-control page-board-date", { type: "date", "aria-labelledby": this.labels.due, "data-focus": "due-input" });
|
|
163
|
+
input.value = this.card()?.due ?? "";
|
|
164
|
+
input.addEventListener("keydown", (event) => {
|
|
165
|
+
if (event.key === "Enter") { event.preventDefault(); this.commitDue(); this.focusKey("due"); }
|
|
166
|
+
else if (event.key === "Escape") { event.preventDefault(); event.stopPropagation(); this.dueInput = null; this.render(false); this.focusKey("due"); }
|
|
167
|
+
});
|
|
168
|
+
input.addEventListener("blur", () => {
|
|
169
|
+
if (this.rendering) return;
|
|
170
|
+
setTimeout(() => { if (this.dueInput === input && doc.activeElement !== input) this.commitDue(); }, 0);
|
|
171
|
+
});
|
|
172
|
+
this.dueInput = input;
|
|
173
|
+
this.render(false);
|
|
174
|
+
input.focus();
|
|
175
|
+
try { input.showPicker?.(); } catch {}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
sync(force = false) {
|
|
179
|
+
if (this.blockId === null) return;
|
|
180
|
+
const node = this.boardNode();
|
|
181
|
+
if (!force && node === this.node) return;
|
|
182
|
+
const col = this.node?.attrs.cards?.[this.cardId]?.col;
|
|
183
|
+
if (!node?.attrs.cards?.[this.cardId]) {
|
|
184
|
+
const inside = this.dom.contains(this.view.dom.ownerDocument.activeElement);
|
|
185
|
+
const blockId = this.blockId;
|
|
186
|
+
this.hide(false, false);
|
|
187
|
+
if (inside) (this.boardButton(blockId, `add:${col}`) ?? this.boardButton(blockId, "add-column"))?.focus();
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
this.render(false);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
focusKey(key) {
|
|
194
|
+
const target = [...this.dom.querySelectorAll("[data-focus]")].find((node) => node.dataset.focus === key && !node.disabled);
|
|
195
|
+
target?.focus();
|
|
196
|
+
return !!target;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
render(fresh) {
|
|
200
|
+
const doc = this.view.dom.ownerDocument;
|
|
201
|
+
this.node = this.boardNode();
|
|
202
|
+
const board = boardOf(this.node);
|
|
203
|
+
const card = board.cards[this.cardId];
|
|
204
|
+
if (!card) return this.hide(false, false);
|
|
205
|
+
const active = doc.activeElement;
|
|
206
|
+
const key = this.dom.contains(active) ? active.dataset.focus : null;
|
|
207
|
+
const range = key && typeof active.selectionStart === "number" ? [active.selectionStart, active.selectionEnd] : null;
|
|
208
|
+
this.rendering = true;
|
|
209
|
+
try {
|
|
210
|
+
const titleDirty = !fresh && this.title.value !== this.titleBase;
|
|
211
|
+
this.titleBase = card.title ?? "";
|
|
212
|
+
if (!titleDirty) this.title.value = this.titleBase;
|
|
213
|
+
const ownerDirty = !fresh && this.ownerInput.value !== this.ownerBase;
|
|
214
|
+
this.ownerBase = card.owner ?? "";
|
|
215
|
+
if (!ownerDirty) this.ownerInput.value = this.ownerBase;
|
|
216
|
+
this.fields.replaceChildren(this.columnField(board, card), this.ownerField(card), this.dueField(card));
|
|
217
|
+
this.actions.replaceChildren(...this.actionButtons(board, card));
|
|
218
|
+
if (key && key !== "title" && this.focusKey(key)) { if (range) doc.activeElement.setSelectionRange?.(...range); }
|
|
219
|
+
else if (key === "up" || key === "down") this.focusKey(key === "up" ? "down" : "up");
|
|
220
|
+
} finally {
|
|
221
|
+
this.rendering = false;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
field(name, label, control, owner = false) {
|
|
226
|
+
const doc = this.view.dom.ownerDocument;
|
|
227
|
+
const row = el(doc, "div", `page-board-field${owner ? " is-owner" : ""}`);
|
|
228
|
+
row.append(el(doc, "span", "page-board-label", { id: this.labels[name] }, label), control);
|
|
229
|
+
return row;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
columnField(board, card) {
|
|
233
|
+
const doc = this.view.dom.ownerDocument;
|
|
234
|
+
const wrap = el(doc, "span", "page-board-select");
|
|
235
|
+
const select = el(doc, "select", "page-board-control", { "aria-labelledby": this.labels.column, "data-focus": "column", disabled: !board.columnIds.length });
|
|
236
|
+
if (!board.lanes.has(card.col)) select.append(el(doc, "option", null, { value: "", selected: true, disabled: true }, "Deleted column"));
|
|
237
|
+
for (const col of board.columnIds) select.append(el(doc, "option", null, { value: col, selected: col === card.col }, board.columns[col].name || "Untitled"));
|
|
238
|
+
wrap.append(select);
|
|
239
|
+
wrap.insertAdjacentHTML("beforeend", BOARD_ICONS.chevron);
|
|
240
|
+
return this.field("column", "Column", wrap);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
ownerField(card) {
|
|
244
|
+
const doc = this.view.dom.ownerDocument;
|
|
245
|
+
const box = el(doc, "div", "page-board-owners");
|
|
246
|
+
const people = el(doc, "div", "page-board-people", { role: "group", "aria-labelledby": this.labels.owner });
|
|
247
|
+
for (const person of this.people) {
|
|
248
|
+
const chip = el(doc, "button", "page-board-person", { type: "button", "aria-pressed": String(person.name === card.owner), "data-action": "owner", "data-owner": person.name, "data-focus": `owner:${person.id ?? person.name}` });
|
|
249
|
+
chip.append(cardFace(doc, person.name), el(doc, "span", null, {}, person.name));
|
|
250
|
+
people.append(chip);
|
|
251
|
+
}
|
|
252
|
+
people.append(el(doc, "button", "page-board-person is-none", { type: "button", "aria-pressed": String(!card.owner), "data-action": "owner-none", "data-focus": "owner-none" }, "No owner"));
|
|
253
|
+
box.append(people, this.ownerInput);
|
|
254
|
+
return this.field("owner", "Owner", box, true);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
dueField(card) {
|
|
258
|
+
const doc = this.view.dom.ownerDocument;
|
|
259
|
+
if (this.dueInput) return this.field("due", "Due", this.dueInput);
|
|
260
|
+
const today = todayKey();
|
|
261
|
+
const state = card.due ? dueState(card.due, today) : null;
|
|
262
|
+
const label = card.due ? dueLabel(card.due, today, true) : null;
|
|
263
|
+
const button = el(doc, "button", "page-board-control", { type: "button", "aria-label": card.due ? `Due ${label}${state === "overdue" ? ", overdue" : ""}` : "Set due date", "data-action": "due", "data-focus": "due" });
|
|
264
|
+
if (card.due) {
|
|
265
|
+
button.append(el(doc, "span", "page-board-due", { "data-due": state }, label));
|
|
266
|
+
if (state === "overdue") button.append(el(doc, "span", "page-board-due-note", {}, "Overdue"));
|
|
267
|
+
} else button.append(el(doc, "span", "page-board-control-text page-board-none", {}, "No date"));
|
|
268
|
+
button.insertAdjacentHTML("beforeend", BOARD_ICONS.calendar);
|
|
269
|
+
return this.field("due", "Due", button);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
actionButtons(board, card) {
|
|
273
|
+
const doc = this.view.dom.ownerDocument;
|
|
274
|
+
const ids = board.lanes.get(card.col);
|
|
275
|
+
const index = ids ? ids.indexOf(this.cardId) : -1;
|
|
276
|
+
return [
|
|
277
|
+
iconButton(doc, "page-board-btn", "up", "Move up", { "data-action": "up", "data-focus": "up", disabled: index <= 0 }),
|
|
278
|
+
iconButton(doc, "page-board-btn", "down", "Move down", { "data-action": "down", "data-focus": "down", disabled: index < 0 || index >= ids.length - 1 }),
|
|
279
|
+
iconButton(doc, "page-board-btn page-board-delete", "trash", "Delete card", { "data-action": "delete", "data-focus": "delete" }),
|
|
280
|
+
];
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
step(delta) {
|
|
284
|
+
const card = this.card();
|
|
285
|
+
const ids = card ? boardOf(this.node).lanes.get(card.col) : null;
|
|
286
|
+
if (!ids) return;
|
|
287
|
+
const index = ids.indexOf(this.cardId);
|
|
288
|
+
this.run("moveCard", { columnId: card.col, afterId: delta < 0 ? placeAfter(ids, index) : ids[index + 1] });
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
moveTo(col) {
|
|
292
|
+
const ids = boardOf(this.node).lanes.get(col)?.filter((id) => id !== this.cardId);
|
|
293
|
+
if (ids) this.run("moveCard", { columnId: col, afterId: ids[ids.length - 1] ?? null });
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
remove() {
|
|
297
|
+
const card = this.card();
|
|
298
|
+
if (!card) return;
|
|
299
|
+
const board = boardOf(this.node);
|
|
300
|
+
const ids = board.lanes.get(card.col) ?? board.missing.get(card.col) ?? [];
|
|
301
|
+
const index = ids.indexOf(this.cardId);
|
|
302
|
+
const next = ids[index + 1] ?? ids[index - 1];
|
|
303
|
+
const { blockId, cardId, host } = this;
|
|
304
|
+
this.hide(false, false);
|
|
305
|
+
if (!host?.commands || !this.view.editable || host.commands.removeCard(blockId, cardId).status !== "removed") return;
|
|
306
|
+
announce(this.view, "Card deleted");
|
|
307
|
+
const target = (next && this.boardButton(blockId, `card:${next}`)) || this.boardButton(blockId, `add:${card.col}`) || this.boardButton(blockId, "add-column");
|
|
308
|
+
target?.focus();
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
click(event) {
|
|
312
|
+
const target = event.target.closest?.("[data-action]");
|
|
313
|
+
if (!target || target.disabled) return;
|
|
314
|
+
const action = target.dataset.action;
|
|
315
|
+
if (action !== "close") this.commitTitle();
|
|
316
|
+
if (action === "close") this.hide(true);
|
|
317
|
+
else if (action === "owner") { this.ownerInput.value = this.ownerBase; this.run("editCard", { owner: target.dataset.owner }); }
|
|
318
|
+
else if (action === "owner-none") { this.ownerInput.value = this.ownerBase; this.run("editCard", { owner: null }); }
|
|
319
|
+
else if (action === "due") this.openDue();
|
|
320
|
+
else if (action === "up" || action === "down") this.step(action === "up" ? -1 : 1);
|
|
321
|
+
else if (action === "delete") this.remove();
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
keydown(event) {
|
|
325
|
+
const key = event.key.toLowerCase();
|
|
326
|
+
if (event.defaultPrevented) return;
|
|
327
|
+
if (event.key === "Escape") {
|
|
328
|
+
event.preventDefault();
|
|
329
|
+
this.hide(true);
|
|
330
|
+
} else if ((event.metaKey || event.ctrlKey) && (key === "z" || key === "y") && !isTyping(event.target)) {
|
|
331
|
+
event.preventDefault();
|
|
332
|
+
if (key === "y" || event.shiftKey) this.host?.redo?.();
|
|
333
|
+
else this.host?.undo?.();
|
|
334
|
+
} else if (event.key === "Tab" && this.dom.getAttribute("aria-modal") === "true") {
|
|
335
|
+
const items = [...this.dom.querySelectorAll("button, input, select, textarea")].filter((node) => !node.disabled);
|
|
336
|
+
if (event.target !== items[event.shiftKey ? 0 : items.length - 1]) return;
|
|
337
|
+
event.preventDefault();
|
|
338
|
+
items[event.shiftKey ? items.length - 1 : 0].focus();
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
export function boardPlugin() {
|
|
344
|
+
return new state.Plugin({
|
|
345
|
+
view: (view) => ({
|
|
346
|
+
update: () => panels.get(view)?.sync(),
|
|
347
|
+
destroy: () => {
|
|
348
|
+
panels.get(view)?.hide(false, false);
|
|
349
|
+
panels.delete(view);
|
|
350
|
+
},
|
|
351
|
+
}),
|
|
352
|
+
});
|
|
353
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
export const BOARD_CSS = `
|
|
2
|
+
:where(article[data-page], .page-shell) { --page-board-lane: 274px; --page-board-gap: 14px; --page-board-radius: 8px; --page-board-panel: 360px; }
|
|
3
|
+
.page-editor .page-board { margin-block: 1.1em 1.5em; font-size: 15px; line-height: 1.4; white-space: normal; }
|
|
4
|
+
:is(.page-board, .page-board-panel) .i { flex: none; width: 16px; height: 16px; }
|
|
5
|
+
.page-board-scroll { position: relative; margin: -4px -4px 0; padding: 4px 4px 12px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--page-chrome-ink-rest) transparent; }
|
|
6
|
+
.page-board-lanes { display: flex; align-items: flex-start; gap: var(--page-board-gap); width: max-content; }
|
|
7
|
+
.page-board-lane { flex: 0 0 var(--page-board-lane); width: var(--page-board-lane); min-width: 0; }
|
|
8
|
+
.page-board-head { position: relative; display: flex; align-items: flex-start; gap: 8px; padding: 8px 0 7px; margin-bottom: 10px; border-bottom: 1px solid var(--page-rule); }
|
|
9
|
+
.page-board-name { min-width: 0; margin: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--page-ink-strong); font: 600 14px/20px var(--page-font-heading); overflow-wrap: anywhere; }
|
|
10
|
+
.page-board-count { flex: none; color: var(--page-ink-soft); font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; }
|
|
11
|
+
.page-board-icon { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; margin-block: -4px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--page-ink-faint); cursor: pointer; transition: background-color var(--page-fade), color var(--page-fade); }
|
|
12
|
+
.page-board-icon:hover, .page-board-icon[aria-expanded="true"] { background: var(--page-pop-hover); color: var(--page-ink-soft); }
|
|
13
|
+
.page-board-icon:focus-visible { color: var(--page-ink-soft); }
|
|
14
|
+
.page-board-colmenu { margin-inline: auto -4px; }
|
|
15
|
+
.page-board-cards { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
|
|
16
|
+
.page-board-cards > li { position: relative; }
|
|
17
|
+
.page-board-card { display: block; width: 100%; margin: 0; padding: 10px 12px 11px; border: 1px solid var(--page-rule); border-radius: var(--page-board-radius); background: var(--page-pop-bg); color: var(--page-ink); font: inherit; text-align: start; cursor: pointer; transition: background-color var(--page-fade), border-color var(--page-fade); }
|
|
18
|
+
.page-board-card:hover { background-color: color-mix(in srgb, var(--page-pop-bg) 96%, var(--page-ink)); }
|
|
19
|
+
.page-board-card[aria-expanded="true"] { border-color: var(--page-accent); box-shadow: inset 0 0 0 1px var(--page-accent); }
|
|
20
|
+
.page-board-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; font-size: 15px; font-weight: 500; line-height: 21px; overflow-wrap: anywhere; }
|
|
21
|
+
.page-board-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--page-ink-soft); font-size: 13px; line-height: 20px; }
|
|
22
|
+
.page-board-owner { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
|
|
23
|
+
.page-board-owner-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
24
|
+
.page-board-face { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--page-code-bg); box-shadow: inset 0 0 0 1px var(--page-rule); color: var(--page-ink-soft); font-size: 10.5px; font-weight: 600; line-height: 1; }
|
|
25
|
+
.page-board-due { flex: none; display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
|
|
26
|
+
.page-board-due[data-due="today"] { color: var(--page-ink); font-weight: 500; }
|
|
27
|
+
.page-board-due[data-due="overdue"] { color: var(--page-ink); }
|
|
28
|
+
.page-board-due[data-due="overdue"]::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--page-danger); }
|
|
29
|
+
.page-board-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
30
|
+
.page-board-add { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 36px; margin-top: 6px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--page-ink-soft); font: inherit; font-size: 14px; text-align: start; cursor: pointer; transition: background-color var(--page-fade); }
|
|
31
|
+
.page-board-add .i { width: 14px; height: 14px; color: var(--page-ink-faint); }
|
|
32
|
+
.page-board-add:hover { background: var(--page-pop-hover); }
|
|
33
|
+
.page-board-addcol { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; margin-top: 2px; padding: 0; border: 1px solid var(--page-chrome-line-rest); border-radius: var(--page-chrome-radius); background: var(--page-chrome-bg-rest); color: var(--page-ink-faint); cursor: pointer; transition: color var(--page-fade), background-color var(--page-fade), border-color var(--page-fade); }
|
|
34
|
+
.page-board-addcol:hover { border-color: var(--page-chrome-line-moved); background: var(--page-chrome-bg-moved); color: var(--page-ink-soft); }
|
|
35
|
+
.page-board-addcol .i { width: 14px; height: 14px; }
|
|
36
|
+
.page-board-tray { margin-bottom: 18px; padding: 6px 12px 12px; border-radius: 10px; background: var(--page-callout-bg); }
|
|
37
|
+
.page-board-tray-head { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 4px; }
|
|
38
|
+
.page-board-tray .page-board-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
|
|
39
|
+
.page-board-select { position: relative; display: block; min-width: 0; }
|
|
40
|
+
.page-board-select > .i { position: absolute; inset-inline-end: 8px; top: 50%; margin-top: -8px; color: var(--page-ink-faint); pointer-events: none; }
|
|
41
|
+
.page-board-select select { appearance: none; -webkit-appearance: none; padding-inline-end: 32px; text-overflow: ellipsis; }
|
|
42
|
+
.page-board-move { margin-top: 6px; }
|
|
43
|
+
.page-board-move select { width: 100%; min-height: 32px; padding-inline-start: 10px; border: 1px solid var(--page-pop-line); border-radius: 7px; background: var(--page-pop-bg); color: var(--page-ink); font: inherit; font-size: 14px; cursor: pointer; }
|
|
44
|
+
.page-board-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 0 12px 0 10px; border: 1px solid var(--page-pop-line); border-radius: 7px; background: none; color: var(--page-pop-ink); font: inherit; font-size: 14px; cursor: pointer; transition: background-color var(--page-fade), color var(--page-fade); }
|
|
45
|
+
.page-board-btn:hover { background: var(--page-pop-hover); }
|
|
46
|
+
.page-board-btn .i { width: 14px; height: 14px; color: var(--page-pop-muted); }
|
|
47
|
+
.page-board-btn:disabled { background: none; color: var(--page-ink-faint); cursor: default; }
|
|
48
|
+
.page-board-btn:disabled .i { color: var(--page-ink-faint); }
|
|
49
|
+
.page-board-restore { flex: none; margin-inline-start: auto; }
|
|
50
|
+
.page-board-deleted { background: none; padding: 0; }
|
|
51
|
+
.page-board-deleted-toggle[aria-expanded="false"] svg { transform: rotate(-90deg); }
|
|
52
|
+
.page-board-deleted-list { list-style: none; margin: 0; padding: 0 0 0 12px; }
|
|
53
|
+
.page-board-deleted-item { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--page-ink-soft); }
|
|
54
|
+
.page-board :is(button, select, input, textarea):focus-visible, .page-board-panel :is(button, select, input, textarea):focus-visible { outline: 2px solid var(--page-accent); outline-offset: 2px; }
|
|
55
|
+
.page-board-pop { position: absolute; z-index: 6; padding: 6px; border: 1px solid var(--page-pop-line); border-radius: var(--page-pop-radius); background: var(--page-pop-bg); box-shadow: var(--page-pop-shadow); color: var(--page-pop-ink); font-size: 14px; line-height: 1.4; }
|
|
56
|
+
.page-board-menu { top: calc(100% - 2px); inset-inline-end: -6px; width: 208px; }
|
|
57
|
+
.page-board-option { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; padding: 4px 10px; border: 0; border-radius: 7px; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
|
|
58
|
+
.page-board-option:hover, .page-board-option[aria-selected="true"], .page-board-option[aria-pressed="true"] { background: var(--page-pop-hover); }
|
|
59
|
+
.page-board-option > .i { color: var(--page-pop-muted); }
|
|
60
|
+
.page-board-option.is-danger { color: var(--page-danger); }
|
|
61
|
+
.page-board-option.is-danger > .i { color: inherit; }
|
|
62
|
+
.page-board-option:disabled { color: var(--page-ink-faint); cursor: default; background: none; }
|
|
63
|
+
.page-board-option:disabled > .i { color: var(--page-ink-faint); }
|
|
64
|
+
.page-board-sep { height: 1px; margin: 4px 6px; background: var(--page-pop-line); }
|
|
65
|
+
.page-board-rename { flex: 1 1 auto; min-width: 0; height: 28px; margin: -4px 0 -4px -6px; padding: 0 6px; border: 0; border-radius: 6px; background: var(--page-pop-hover); color: var(--page-ink-strong); font: 600 14px/20px var(--page-font-heading); }
|
|
66
|
+
.page-board-new { display: block; width: 100%; min-height: 44px; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--page-rule); border-radius: var(--page-board-radius); background: var(--page-pop-bg); color: var(--page-ink); font: 500 15px/21px var(--page-font); }
|
|
67
|
+
.page-board-new::placeholder, .page-board-rename::placeholder { color: var(--page-ink-faint); font-weight: 400; }
|
|
68
|
+
.page-board-card, .page-board-name, .page-board-count { -webkit-user-select: none; user-select: none; }
|
|
69
|
+
.page-editor[contenteditable="true"] .page-board-head[data-col] .page-board-name { cursor: grab; }
|
|
70
|
+
.page-board.is-dragging, .page-board.is-dragging * { cursor: grabbing; }
|
|
71
|
+
.page-board .is-drag-source { opacity: 0.45; }
|
|
72
|
+
.page-board-drop { height: 2px; margin-block: -5px; border-radius: 1px; background: var(--page-drop, var(--page-accent)); pointer-events: none; }
|
|
73
|
+
.page-board-drop.is-column { flex: 0 0 2px; align-self: stretch; width: 2px; height: auto; margin-block: 0; margin-inline: calc((var(--page-board-gap) + 2px) / -2); }
|
|
74
|
+
.page-board-ghost { position: fixed; z-index: 6; top: 0; left: 0; box-sizing: border-box; margin: 0; box-shadow: var(--page-pop-shadow); pointer-events: none; }
|
|
75
|
+
.page-board-lane.page-board-ghost { padding: 0 10px 10px; border-radius: var(--page-board-radius); background: var(--page-bg); }
|
|
76
|
+
.page-board-scrim { display: none; position: fixed; inset: 0; z-index: 4; background: var(--page-scrim); }
|
|
77
|
+
.page-board-panel { position: fixed; z-index: 5; inset-block: 0; inset-inline-end: 0; width: var(--page-board-panel); box-sizing: border-box; overflow-y: auto; padding: 18px 20px 24px; border-inline-start: 1px solid var(--page-pop-line); background: var(--page-pop-bg); color: var(--page-pop-ink); font-family: var(--page-font); font-size: 15px; line-height: 1.4; }
|
|
78
|
+
.page-shell.has-board-panel { padding-inline-end: calc(var(--page-board-panel) + 16px); }
|
|
79
|
+
.page-board-panel-top { display: flex; align-items: flex-start; gap: 8px; }
|
|
80
|
+
.page-board-panel-title { flex: 1 1 0; min-width: 0; margin: -4px 0 0 -8px; padding: 4px 8px; border: 0; border-radius: 7px; background: none; color: var(--page-ink-strong); font: 600 20px/28px var(--page-font-heading); field-sizing: content; resize: none; overflow: hidden; }
|
|
81
|
+
.page-board-panel-title:hover { background: var(--page-pop-hover); }
|
|
82
|
+
.page-board-close { width: 32px; height: 32px; margin: -2px -6px 0 0; color: var(--page-ink-soft); }
|
|
83
|
+
.page-board-fields { margin: 18px 0 0; border-top: 1px solid var(--page-pop-line); }
|
|
84
|
+
.page-board-field { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; column-gap: 8px; min-height: 44px; border-bottom: 1px solid var(--page-pop-line); }
|
|
85
|
+
.page-board-field.is-owner { align-items: start; padding-block: 8px; }
|
|
86
|
+
.page-board-field.is-owner .page-board-label { padding-top: 4px; }
|
|
87
|
+
.page-board-label { color: var(--page-pop-muted); font-size: 14px; }
|
|
88
|
+
.page-board-control { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; min-height: 34px; margin: 0; padding: 0 8px; border: 0; border-radius: 7px; background: none; color: var(--page-pop-ink); font: inherit; font-size: 15px; text-align: start; cursor: pointer; transition: background-color var(--page-fade); }
|
|
89
|
+
.page-board-control:hover { background: var(--page-pop-hover); }
|
|
90
|
+
.page-board-control > .i:last-child { margin-inline-start: auto; color: var(--page-ink-faint); }
|
|
91
|
+
.page-board-control-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
92
|
+
.page-board-none { color: var(--page-ink-faint); }
|
|
93
|
+
.page-board-control .page-board-due { margin: 0; color: var(--page-pop-ink); font-weight: 400; }
|
|
94
|
+
.page-board-due-note { color: var(--page-pop-muted); font-size: 13px; }
|
|
95
|
+
.page-board-control .page-board-due + .page-board-due-note { margin-inline-start: auto; }
|
|
96
|
+
.page-board-control .page-board-due-note + .i { margin-inline-start: 0; }
|
|
97
|
+
.page-board-date { border: 1px solid var(--page-pop-line); cursor: text; }
|
|
98
|
+
.page-board-owners { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-inline: 8px; }
|
|
99
|
+
.page-board-people { display: flex; flex-wrap: wrap; gap: 4px; }
|
|
100
|
+
.page-board-person { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 4px; border: 1px solid var(--page-rule); border-radius: 14px; background: var(--page-pop-bg); color: var(--page-pop-ink); font: inherit; font-size: 13px; cursor: pointer; transition: background-color var(--page-fade), border-color var(--page-fade); }
|
|
101
|
+
.page-board-person.is-none { padding-inline-start: 10px; color: var(--page-pop-muted); }
|
|
102
|
+
.page-board-person:hover { background: var(--page-pop-hover); }
|
|
103
|
+
.page-board-person[aria-pressed="true"] { border-color: var(--page-accent); background: var(--page-selection); color: var(--page-pop-ink); }
|
|
104
|
+
.page-board-owner-input { width: 100%; height: 32px; box-sizing: border-box; padding: 0 8px; border: 1px solid var(--page-pop-line); border-radius: 7px; background: var(--page-pop-bg); color: var(--page-pop-ink); font: inherit; font-size: 14px; }
|
|
105
|
+
.page-board-owner-input::placeholder { color: var(--page-ink-faint); }
|
|
106
|
+
.page-board-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
|
|
107
|
+
.page-board-delete { margin-inline-start: auto; border-color: transparent; color: var(--page-pop-muted); }
|
|
108
|
+
.page-board-delete:hover { background: var(--page-pop-hover); color: var(--page-danger); }
|
|
109
|
+
.page-board-delete:hover .i { color: inherit; }
|
|
110
|
+
@media (max-width: 1039.98px) {
|
|
111
|
+
.page-shell.has-board-panel { padding-inline-end: 16px; }
|
|
112
|
+
.page-board-scrim { display: block; }
|
|
113
|
+
.page-board-panel { inset: auto 0 0 0; width: auto; max-width: 640px; max-height: 85%; margin-inline: auto; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); border: 1px solid var(--page-pop-line); border-bottom: 0; border-radius: 16px 16px 0 0; box-shadow: var(--page-pop-shadow); }
|
|
114
|
+
.page-board-close { width: 44px; height: 44px; margin: -8px -10px 0 0; }
|
|
115
|
+
.page-board-panel-top { min-height: 36px; }
|
|
116
|
+
.page-board-field { min-height: 48px; }
|
|
117
|
+
.page-board-control { min-height: 44px; }
|
|
118
|
+
.page-board-actions { margin-top: 16px; }
|
|
119
|
+
.page-board-actions .page-board-btn { flex: 1 1 0; min-height: 44px; }
|
|
120
|
+
.page-board-actions .page-board-delete { flex: 1 1 100%; margin-inline-start: 0; }
|
|
121
|
+
}
|
|
122
|
+
@media (max-width: 560px) {
|
|
123
|
+
.page-board-scroll { scroll-snap-type: x proximity; scroll-padding-inline: 4px; }
|
|
124
|
+
.page-board-lane { scroll-snap-align: start; }
|
|
125
|
+
.page-board-head { padding: 12px 0 11px; }
|
|
126
|
+
.page-board-head .page-board-icon { width: 44px; height: 44px; margin-block: -12px; }
|
|
127
|
+
.page-board-colmenu { margin-inline-end: -12px; }
|
|
128
|
+
.page-board-card { min-height: 44px; padding: 12px 14px 13px; }
|
|
129
|
+
.page-board-add { min-height: 44px; padding-inline: 14px; }
|
|
130
|
+
.page-board-addcol { width: 44px; height: 44px; margin-top: 0; }
|
|
131
|
+
.page-board-tray-head { min-height: 48px; }
|
|
132
|
+
.page-board-move select, .page-board-btn { min-height: 44px; }
|
|
133
|
+
.page-board-move select, .page-board-new { font-size: 16px; }
|
|
134
|
+
.page-board-option { min-height: 44px; }
|
|
135
|
+
.page-board-rename { height: 44px; margin-block: -12px; font-size: 16px; }
|
|
136
|
+
.page-board-panel { border-width: 1px 0 0; }
|
|
137
|
+
.page-board-panel-title { margin-top: -8px; padding-block: 8px; }
|
|
138
|
+
.page-board-control, .page-board-owner-input { font-size: 16px; }
|
|
139
|
+
.page-board-label { font-size: 15px; }
|
|
140
|
+
.page-board-person { height: 44px; border-radius: 22px; }
|
|
141
|
+
.page-board-owner-input { height: 44px; }
|
|
142
|
+
}
|
|
143
|
+
@media (prefers-reduced-motion: reduce) {
|
|
144
|
+
.page-board-icon, .page-board-card, .page-board-add, .page-board-addcol, .page-board-btn, .page-board-control, .page-board-person { transition: none; }
|
|
145
|
+
}
|
|
146
|
+
`;
|