talented-args 0.2.4-beta → 0.3.0-beta
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/README.md +497 -10
- package/dist/clipboard.d.ts +10 -0
- package/dist/clipboard.js +79 -0
- package/dist/clipboard.js.map +1 -0
- package/dist/compile.d.ts +67 -0
- package/dist/compile.js +188 -0
- package/dist/compile.js.map +1 -0
- package/dist/descriptors.d.ts +322 -0
- package/dist/descriptors.js +362 -0
- package/dist/descriptors.js.map +1 -0
- package/dist/display.d.ts +31 -0
- package/dist/display.js +235 -0
- package/dist/display.js.map +1 -0
- package/dist/errors.d.ts +34 -17
- package/dist/errors.js +61 -75
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +10 -6
- package/dist/index.js +8 -9
- package/dist/index.js.map +1 -1
- package/dist/options.d.ts +69 -37
- package/dist/options.js +198 -31
- package/dist/options.js.map +1 -1
- package/dist/parse.d.ts +70 -0
- package/dist/parse.js +551 -0
- package/dist/parse.js.map +1 -0
- package/dist/program.d.ts +125 -0
- package/dist/program.js +337 -0
- package/dist/program.js.map +1 -0
- package/dist/remember.d.ts +71 -0
- package/dist/remember.js +216 -0
- package/dist/remember.js.map +1 -0
- package/dist/styling.d.ts +38 -9
- package/dist/styling.js +155 -75
- package/dist/styling.js.map +1 -1
- package/dist/terminal.d.ts +205 -0
- package/dist/terminal.js +152 -0
- package/dist/terminal.js.map +1 -0
- package/dist/tools.d.ts +35 -31
- package/dist/tools.js +68 -140
- package/dist/tools.js.map +1 -1
- package/dist/tui.d.ts +96 -0
- package/dist/tui.js +397 -0
- package/dist/tui.js.map +1 -0
- package/dist/tui_layout.d.ts +152 -0
- package/dist/tui_layout.js +554 -0
- package/dist/tui_layout.js.map +1 -0
- package/dist/tui_model.d.ts +149 -0
- package/dist/tui_model.js +666 -0
- package/dist/tui_model.js.map +1 -0
- package/package.json +18 -14
- package/.eslintrc.js +0 -24
- package/.idea/codeStyles/Project.xml +0 -364
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/compiler.xml +0 -7
- package/.idea/encodings.xml +0 -6
- package/.idea/inspectionProfiles/Project_Default.xml +0 -12
- package/.idea/jsLibraryMappings.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/prettier.xml +0 -8
- package/.idea/talented-args.iml +0 -11
- package/.idea/vcs.xml +0 -6
- package/.prettierrc.yaml +0 -4
- package/dist/definitions.d.ts +0 -70
- package/dist/definitions.js +0 -38
- package/dist/definitions.js.map +0 -1
- package/dist/main.d.ts +0 -33
- package/dist/main.js +0 -313
- package/dist/main.js.map +0 -1
- package/jest.config.js +0 -4
- package/tsconfig.json +0 -18
|
@@ -0,0 +1,554 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MIN_HEIGHT = exports.MIN_WIDTH = exports.ASCII_GLYPHS = exports.UNICODE_GLYPHS = void 0;
|
|
4
|
+
exports.createTheme = createTheme;
|
|
5
|
+
exports.sameTarget = sameTarget;
|
|
6
|
+
exports.messageOf = messageOf;
|
|
7
|
+
exports.planHeader = planHeader;
|
|
8
|
+
exports.layoutTui = layoutTui;
|
|
9
|
+
const display_1 = require("./display");
|
|
10
|
+
const styling_1 = require("./styling");
|
|
11
|
+
const tools_1 = require("./tools");
|
|
12
|
+
const tui_model_1 = require("./tui_model");
|
|
13
|
+
function createTheme(styles) {
|
|
14
|
+
const accented = { ...styling_1.PLAIN_ATTR, color: styles.accent.color };
|
|
15
|
+
const strong = { ...styling_1.PLAIN_ATTR, bold: true };
|
|
16
|
+
return {
|
|
17
|
+
text: styling_1.PLAIN_ATTR,
|
|
18
|
+
muted: { ...styling_1.PLAIN_ATTR, dim: true },
|
|
19
|
+
// Keep title emphasis from help while using the terminal's default foreground and background.
|
|
20
|
+
title: { ...styles.banner_title, color: 'default', bgColor: 'default' },
|
|
21
|
+
logo: styles.banner_logo,
|
|
22
|
+
frame: { ...styling_1.PLAIN_ATTR, dim: true },
|
|
23
|
+
frameActive: accented,
|
|
24
|
+
panelTitle: { ...styling_1.PLAIN_ATTR, dim: true },
|
|
25
|
+
panelTitleActive: strong,
|
|
26
|
+
selected: strong,
|
|
27
|
+
focused: { ...strong, inverse: true },
|
|
28
|
+
labelFocused: strong,
|
|
29
|
+
input: { ...styling_1.PLAIN_ATTR, underline: true },
|
|
30
|
+
inputFocused: { ...strong, underline: true },
|
|
31
|
+
button: strong,
|
|
32
|
+
error: styles.error,
|
|
33
|
+
problem: strong,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
exports.UNICODE_GLYPHS = {
|
|
37
|
+
topLeft: '╭',
|
|
38
|
+
topRight: '╮',
|
|
39
|
+
bottomLeft: '╰',
|
|
40
|
+
bottomRight: '╯',
|
|
41
|
+
horizontal: '─',
|
|
42
|
+
vertical: '│',
|
|
43
|
+
marker: '▸',
|
|
44
|
+
more: { up: '↑', down: '↓' },
|
|
45
|
+
problem: '!',
|
|
46
|
+
ellipsis: '…',
|
|
47
|
+
mask: '•',
|
|
48
|
+
separator: '·',
|
|
49
|
+
keys: { vertical: '↑↓', horizontal: '←→' },
|
|
50
|
+
};
|
|
51
|
+
/** Fallback glyphs for locales without detected UTF-8 support. */
|
|
52
|
+
exports.ASCII_GLYPHS = {
|
|
53
|
+
topLeft: '+',
|
|
54
|
+
topRight: '+',
|
|
55
|
+
bottomLeft: '+',
|
|
56
|
+
bottomRight: '+',
|
|
57
|
+
horizontal: '-',
|
|
58
|
+
vertical: '|',
|
|
59
|
+
marker: '>',
|
|
60
|
+
more: { up: '^', down: 'v' },
|
|
61
|
+
problem: '!',
|
|
62
|
+
ellipsis: '...',
|
|
63
|
+
mask: '*',
|
|
64
|
+
separator: '|',
|
|
65
|
+
keys: { vertical: 'Up/Down', horizontal: 'Left/Right' },
|
|
66
|
+
};
|
|
67
|
+
exports.MIN_WIDTH = 24;
|
|
68
|
+
exports.MIN_HEIGHT = 7;
|
|
69
|
+
/** Minimum terminal width for displaying both panels side by side. */
|
|
70
|
+
const TWO_PANEL_MIN_WIDTH = 60;
|
|
71
|
+
const MAX_INPUT_WIDTH = 40;
|
|
72
|
+
const COMFORTABLE_INPUT_WIDTH = 24;
|
|
73
|
+
const MIN_INPUT_WIDTH = 8;
|
|
74
|
+
const MAX_HINT_WIDTH = 32;
|
|
75
|
+
const MIN_HINT_WIDTH = 6;
|
|
76
|
+
/** Maximum field help lines, provided enough rows remain for the field list. */
|
|
77
|
+
const MAX_HELP_LINES = 2;
|
|
78
|
+
const MIN_LIST_ROWS = 3;
|
|
79
|
+
const BUTTON_LABELS = {
|
|
80
|
+
run: '[ Run ]',
|
|
81
|
+
copy: '[ Copy ]',
|
|
82
|
+
cancel: '[ Cancel ]',
|
|
83
|
+
};
|
|
84
|
+
function sameTarget(a, b) {
|
|
85
|
+
if (!a || !b || a.kind !== b.kind) {
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
88
|
+
switch (a.kind) {
|
|
89
|
+
case 'command':
|
|
90
|
+
return b.kind === 'command' && a.index === b.index;
|
|
91
|
+
case 'field':
|
|
92
|
+
return b.kind === 'field' && a.index === b.index;
|
|
93
|
+
case 'button':
|
|
94
|
+
return b.kind === 'button' && a.button === b.button;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
function focusOf(model) {
|
|
98
|
+
switch (model.region) {
|
|
99
|
+
case 'commands':
|
|
100
|
+
return { kind: 'command', index: model.selected };
|
|
101
|
+
case 'fields':
|
|
102
|
+
return { kind: 'field', index: model.fieldIndex };
|
|
103
|
+
case 'buttons':
|
|
104
|
+
return { kind: 'button', button: model.button };
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
/** Adjust the scroll offset only as far as needed to make the requested row visible. */
|
|
108
|
+
function scrollTo(current, row, visible, total) {
|
|
109
|
+
let top = Math.max(0, Math.min(current, total - visible));
|
|
110
|
+
if (row < top) {
|
|
111
|
+
top = row;
|
|
112
|
+
}
|
|
113
|
+
else if (row >= top + visible) {
|
|
114
|
+
top = row - visible + 1;
|
|
115
|
+
}
|
|
116
|
+
return Math.max(0, top);
|
|
117
|
+
}
|
|
118
|
+
/** Render a flag's current state. Negatable flags distinguish unset, `true`, and `false`. */
|
|
119
|
+
function checkbox(field, value) {
|
|
120
|
+
if (field.negation === null) {
|
|
121
|
+
return value ? '[x]' : '[ ]';
|
|
122
|
+
}
|
|
123
|
+
return value === null ? '[ ] ' : value ? '[x] yes' : '[-] no ';
|
|
124
|
+
}
|
|
125
|
+
class Canvas {
|
|
126
|
+
context;
|
|
127
|
+
nodes = [];
|
|
128
|
+
constructor(context) {
|
|
129
|
+
this.context = context;
|
|
130
|
+
}
|
|
131
|
+
/** Add a view node only if its rectangle fits entirely within the screen. */
|
|
132
|
+
add(node) {
|
|
133
|
+
const { width, height } = this.context;
|
|
134
|
+
if (node.width < 1 ||
|
|
135
|
+
node.height < 1 ||
|
|
136
|
+
node.x < 0 ||
|
|
137
|
+
node.y < 0 ||
|
|
138
|
+
node.x + node.width > width ||
|
|
139
|
+
node.y + node.height > height) {
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
this.nodes.push(node);
|
|
143
|
+
}
|
|
144
|
+
/** Add one text line, truncated and padded to the specified cell width. */
|
|
145
|
+
text(x, y, width, content, attr, role = 'static', field = null) {
|
|
146
|
+
this.add({
|
|
147
|
+
kind: 'text',
|
|
148
|
+
x,
|
|
149
|
+
y,
|
|
150
|
+
width,
|
|
151
|
+
height: 1,
|
|
152
|
+
lines: [this.fit(content, width)],
|
|
153
|
+
attr,
|
|
154
|
+
role,
|
|
155
|
+
field,
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
fit(content, width) {
|
|
159
|
+
return (0, tools_1.padEnd)(this.context.text.truncate(content, width), width, this.context.text);
|
|
160
|
+
}
|
|
161
|
+
frame(rect, title, active, more) {
|
|
162
|
+
const { glyphs, theme, text } = this.context;
|
|
163
|
+
const attr = active ? theme.frameActive : theme.frame;
|
|
164
|
+
const { x, y, width, height } = rect;
|
|
165
|
+
if (width < 2 || height < 2) {
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
const static_ = (nodeX, nodeY, lines, nodeAttr) => this.add({
|
|
169
|
+
kind: 'text',
|
|
170
|
+
x: nodeX,
|
|
171
|
+
y: nodeY,
|
|
172
|
+
width: Math.max(1, text.width(lines[0] ?? '')),
|
|
173
|
+
height: lines.length,
|
|
174
|
+
lines,
|
|
175
|
+
attr: nodeAttr,
|
|
176
|
+
role: 'static',
|
|
177
|
+
field: null,
|
|
178
|
+
});
|
|
179
|
+
static_(x, y, [glyphs.topLeft + glyphs.horizontal.repeat(width - 2) + glyphs.topRight], attr);
|
|
180
|
+
static_(x, y + height - 1, [glyphs.bottomLeft + glyphs.horizontal.repeat(width - 2) + glyphs.bottomRight], attr);
|
|
181
|
+
if (height > 2) {
|
|
182
|
+
const side = new Array(height - 2).fill(glyphs.vertical);
|
|
183
|
+
static_(x, y + 1, side, attr);
|
|
184
|
+
static_(x + width - 1, y + 1, side, attr);
|
|
185
|
+
}
|
|
186
|
+
const titleWidth = width - 6;
|
|
187
|
+
if (title && titleWidth >= 3) {
|
|
188
|
+
const shown = ` ${text.truncate(title, titleWidth)} `;
|
|
189
|
+
static_(x + 2, y, [shown], active ? theme.panelTitleActive : theme.panelTitle);
|
|
190
|
+
}
|
|
191
|
+
// Corner arrows indicate rows hidden above or below the visible list.
|
|
192
|
+
if (more.up && width >= 5) {
|
|
193
|
+
static_(x + width - 3, y, [glyphs.more.up], attr);
|
|
194
|
+
}
|
|
195
|
+
if (more.down && width >= 5) {
|
|
196
|
+
static_(x + width - 3, y + height - 1, [glyphs.more.down], attr);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
// *********************************************************************************************************************
|
|
201
|
+
function layoutCommands(canvas, model, context, rect) {
|
|
202
|
+
const { theme, glyphs, text, scroll } = context;
|
|
203
|
+
const active = model.region === 'commands';
|
|
204
|
+
const visible = rect.height - 2;
|
|
205
|
+
const total = model.entries.length;
|
|
206
|
+
scroll.commands = scrollTo(scroll.commands, model.selected, visible, total);
|
|
207
|
+
canvas.frame(rect, 'Commands', active, {
|
|
208
|
+
up: scroll.commands > 0,
|
|
209
|
+
down: scroll.commands + visible < total,
|
|
210
|
+
});
|
|
211
|
+
const innerWidth = rect.width - 2;
|
|
212
|
+
const labelWidth = Math.max(...model.entries.map(entry => text.width(entry.label)));
|
|
213
|
+
// Show command summaries beside names when the panel is wide enough.
|
|
214
|
+
const withSummary = innerWidth >= labelWidth + 3 + 24;
|
|
215
|
+
model.entries.slice(scroll.commands, scroll.commands + visible).forEach((entry, offset) => {
|
|
216
|
+
const index = scroll.commands + offset;
|
|
217
|
+
const isSelected = index === model.selected;
|
|
218
|
+
const label = withSummary
|
|
219
|
+
? `${(0, tools_1.padEnd)(entry.label, labelWidth, text)} ${entry.summary}`
|
|
220
|
+
: entry.label;
|
|
221
|
+
const mark = (shown) => canvas.fit(` ${shown ? glyphs.marker : ' '} ${label}`, innerWidth);
|
|
222
|
+
canvas.add({
|
|
223
|
+
kind: 'button',
|
|
224
|
+
target: { kind: 'command', index },
|
|
225
|
+
x: rect.x + 1,
|
|
226
|
+
y: rect.y + 1 + offset,
|
|
227
|
+
width: innerWidth,
|
|
228
|
+
height: 1,
|
|
229
|
+
content: mark(isSelected),
|
|
230
|
+
focusedContent: mark(true),
|
|
231
|
+
attr: isSelected ? theme.selected : theme.text,
|
|
232
|
+
focusedAttr: theme.focused,
|
|
233
|
+
});
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
function layoutFields(canvas, model, context, rect) {
|
|
237
|
+
const { theme, glyphs, text, scroll } = context;
|
|
238
|
+
const active = model.region === 'fields';
|
|
239
|
+
const { entry, fields } = model;
|
|
240
|
+
const innerHeight = rect.height - 2;
|
|
241
|
+
const innerWidth = rect.width - 2;
|
|
242
|
+
const innerX = rect.x + 1;
|
|
243
|
+
const nameX = innerX + 1;
|
|
244
|
+
const rows = [];
|
|
245
|
+
const hasBothGroups = fields.some(field => field.group === 'command') &&
|
|
246
|
+
fields.some(field => field.group === 'common');
|
|
247
|
+
fields.forEach((field, index) => {
|
|
248
|
+
if (hasBothGroups && field.group === 'common' && fields[index - 1]?.group === 'command') {
|
|
249
|
+
rows.push({ kind: 'blank' }, { kind: 'heading', title: 'Common options' });
|
|
250
|
+
}
|
|
251
|
+
rows.push({ kind: 'field', field, index });
|
|
252
|
+
});
|
|
253
|
+
// Reserve help space for the longest explanation available for this command,
|
|
254
|
+
// so moving focus does not shift the field rows.
|
|
255
|
+
const helpWidth = innerWidth - 2;
|
|
256
|
+
const helpHeight = Math.min(MAX_HELP_LINES, Math.max(0, ...model.possibleHelp.map(help => (help ? text.wrap(help, helpWidth).length : 0))));
|
|
257
|
+
const withHelp = helpHeight > 0 &&
|
|
258
|
+
innerHeight - helpHeight - 1 >= Math.min(Math.max(rows.length, 1), MIN_LIST_ROWS);
|
|
259
|
+
const visible = withHelp ? innerHeight - helpHeight - 1 : innerHeight;
|
|
260
|
+
if (withHelp) {
|
|
261
|
+
const lines = text.wrap(model.help, helpWidth);
|
|
262
|
+
if (lines.length > helpHeight) {
|
|
263
|
+
lines.splice(helpHeight - 1, Infinity, text.truncate(lines.slice(helpHeight - 1).join(' '), helpWidth));
|
|
264
|
+
}
|
|
265
|
+
lines.forEach((line, index) => canvas.text(nameX, rect.y + 1 + visible + 1 + index, helpWidth, line, theme.text));
|
|
266
|
+
}
|
|
267
|
+
const focusedRow = rows.findIndex(row => row.kind === 'field' && row.index === model.fieldIndex);
|
|
268
|
+
scroll.fields = scrollTo(scroll.fields, Math.max(0, focusedRow), visible, rows.length);
|
|
269
|
+
if (scroll.fields > 0 && rows[scroll.fields]?.kind === 'heading') {
|
|
270
|
+
// Keep the blank row above a group heading visible so the heading is distinct from fields.
|
|
271
|
+
scroll.fields = Math.max(0, scroll.fields - 1);
|
|
272
|
+
}
|
|
273
|
+
const title = entry.command
|
|
274
|
+
? [entry.label, entry.summary].filter(Boolean).join(` ${glyphs.separator} `)
|
|
275
|
+
: model.entries.length > 1
|
|
276
|
+
? 'Options without a command'
|
|
277
|
+
: 'Options';
|
|
278
|
+
canvas.frame(rect, title, active, {
|
|
279
|
+
up: scroll.fields > 0,
|
|
280
|
+
down: scroll.fields + visible < rows.length,
|
|
281
|
+
});
|
|
282
|
+
if (!fields.length) {
|
|
283
|
+
canvas.text(innerX + 1, rect.y + 1, innerWidth - 2, 'There are no options to fill in.', theme.muted);
|
|
284
|
+
return;
|
|
285
|
+
}
|
|
286
|
+
// Allocate columns for the marker, option name, value, and remaining hint space.
|
|
287
|
+
const nameOf = (field) => field.name + (field.required ? ' *' : '');
|
|
288
|
+
const nameWidth = Math.min(Math.max(...fields.map(field => text.width(nameOf(field)))), Math.max(8, Math.floor(innerWidth * 0.45)));
|
|
289
|
+
const valueX = nameX + 2 + nameWidth + 2;
|
|
290
|
+
const room = innerX + innerWidth - 1 - valueX;
|
|
291
|
+
// Allocate hint space while preserving enough width to edit values.
|
|
292
|
+
const wantedHintWidth = Math.min(MAX_HINT_WIDTH, Math.max(0, ...fields.map(field => text.width(field.hint))));
|
|
293
|
+
const inputWidth = Math.max(Math.min(MIN_INPUT_WIDTH, room), Math.min(MAX_INPUT_WIDTH, Math.max(Math.min(COMFORTABLE_INPUT_WIDTH, room), room - wantedHintWidth - 2)));
|
|
294
|
+
const hintX = valueX + inputWidth + 2;
|
|
295
|
+
const hintWidth = innerX + innerWidth - 1 - hintX;
|
|
296
|
+
const flagWidth = Math.max(...fields.map(field => text.width(checkbox(field, null))));
|
|
297
|
+
rows.slice(scroll.fields, scroll.fields + visible).forEach((row, offset) => {
|
|
298
|
+
const y = rect.y + 1 + offset;
|
|
299
|
+
if (row.kind === 'blank') {
|
|
300
|
+
return;
|
|
301
|
+
}
|
|
302
|
+
if (row.kind === 'heading') {
|
|
303
|
+
canvas.text(nameX, y, innerWidth - 2, row.title, theme.muted);
|
|
304
|
+
return;
|
|
305
|
+
}
|
|
306
|
+
const { field, index } = row;
|
|
307
|
+
const target = { kind: 'field', index };
|
|
308
|
+
const isFocused = active && index === model.fieldIndex;
|
|
309
|
+
const error = model.error(field);
|
|
310
|
+
const label = (marked) => `${marked ? glyphs.marker : ' '} ${canvas.fit(nameOf(field), nameWidth)}`;
|
|
311
|
+
if (field.kind === 'flag') {
|
|
312
|
+
const buttonWidth = Math.min(valueX - nameX + flagWidth, innerWidth - 2);
|
|
313
|
+
const content = (marked) => canvas.fit(`${label(marked)} ${checkbox(field, model.flag(field))}`, buttonWidth);
|
|
314
|
+
canvas.add({
|
|
315
|
+
kind: 'button',
|
|
316
|
+
target,
|
|
317
|
+
x: nameX,
|
|
318
|
+
y,
|
|
319
|
+
width: buttonWidth,
|
|
320
|
+
height: 1,
|
|
321
|
+
content: content(false),
|
|
322
|
+
focusedContent: content(true),
|
|
323
|
+
attr: theme.text,
|
|
324
|
+
focusedAttr: theme.labelFocused,
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
else {
|
|
328
|
+
canvas.text(nameX, y, 2 + nameWidth, label(isFocused), isFocused ? theme.labelFocused : error !== null ? theme.problem : theme.text);
|
|
329
|
+
if (error !== null && !isFocused) {
|
|
330
|
+
// Replace the focus marker with a colored problem marker, leaving the option name in default colors.
|
|
331
|
+
canvas.text(nameX, y, 1, glyphs.problem, theme.error);
|
|
332
|
+
}
|
|
333
|
+
canvas.add({
|
|
334
|
+
kind: 'input',
|
|
335
|
+
target,
|
|
336
|
+
field,
|
|
337
|
+
x: valueX,
|
|
338
|
+
y,
|
|
339
|
+
width: inputWidth,
|
|
340
|
+
height: 1,
|
|
341
|
+
value: model.text(field),
|
|
342
|
+
masked: field.input.sensitive,
|
|
343
|
+
attr: isFocused ? theme.inputFocused : theme.input,
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
if (hintWidth >= MIN_HINT_WIDTH) {
|
|
347
|
+
// Always create the hint marker node so edits can toggle it without rebuilding widgets.
|
|
348
|
+
canvas.text(hintX - 2, y, 1, error !== null ? glyphs.problem : '', error !== null ? theme.error : theme.text, 'hintSign', field);
|
|
349
|
+
canvas.text(hintX, y, hintWidth, error ?? field.hint, error !== null ? theme.problem : theme.muted, 'hint', field);
|
|
350
|
+
}
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
/** Key hints removed in this order when the footer is too narrow. */
|
|
354
|
+
const EXPENDABLE_HINTS = ['Enter open', 'Enter confirm', 'Tab switch'];
|
|
355
|
+
function hintLine(model, glyphs, text, width) {
|
|
356
|
+
const { vertical, horizontal } = glyphs.keys;
|
|
357
|
+
const parts = [];
|
|
358
|
+
const canSwitch = model.availableRegions().length > 1;
|
|
359
|
+
switch (model.region) {
|
|
360
|
+
case 'commands':
|
|
361
|
+
parts.push(`${vertical} select`, 'Enter open');
|
|
362
|
+
break;
|
|
363
|
+
case 'fields':
|
|
364
|
+
parts.push(`${vertical} move`);
|
|
365
|
+
parts.push(model.focusedField?.kind === 'flag' ? 'Space toggle' : 'Ctrl-U clear');
|
|
366
|
+
break;
|
|
367
|
+
case 'buttons':
|
|
368
|
+
parts.push(`${horizontal} choose`, 'Enter confirm');
|
|
369
|
+
break;
|
|
370
|
+
}
|
|
371
|
+
if (canSwitch) {
|
|
372
|
+
parts.push('Tab switch');
|
|
373
|
+
}
|
|
374
|
+
parts.push('Ctrl-R run', 'Ctrl-Y copy', model.escapeLeaves ? 'Esc cancel' : 'Esc back');
|
|
375
|
+
const separator = ` ${glyphs.separator} `;
|
|
376
|
+
for (const hint of EXPENDABLE_HINTS) {
|
|
377
|
+
if (text.width(parts.join(separator)) <= width) {
|
|
378
|
+
break;
|
|
379
|
+
}
|
|
380
|
+
const index = parts.indexOf(hint);
|
|
381
|
+
if (index >= 0) {
|
|
382
|
+
parts.splice(index, 1);
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
return parts.join(separator);
|
|
386
|
+
}
|
|
387
|
+
/** Choose the footer message: a validation error, an informational message, or key hints. */
|
|
388
|
+
function messageOf(model, theme, glyphs, text, width) {
|
|
389
|
+
if (model.message) {
|
|
390
|
+
const isProblem = model.message.kind === 'error';
|
|
391
|
+
return { text: model.message.text, attr: isProblem ? theme.problem : theme.text, isProblem };
|
|
392
|
+
}
|
|
393
|
+
const field = model.focusedField;
|
|
394
|
+
const error = field ? model.error(field) : null;
|
|
395
|
+
if (field && error !== null) {
|
|
396
|
+
// Repeat the focused field's error here in case the hint column is hidden or too narrow.
|
|
397
|
+
return { text: `${field.name}: ${error}`, attr: theme.problem, isProblem: true };
|
|
398
|
+
}
|
|
399
|
+
return { text: hintLine(model, glyphs, text, width), attr: theme.muted, isProblem: false };
|
|
400
|
+
}
|
|
401
|
+
/** Panel rows reserved before allocating space to the logo, including panel borders. */
|
|
402
|
+
const MIN_PANEL_ROWS = 12;
|
|
403
|
+
/** Minimum banner text width beside a logo, matching help layout. */
|
|
404
|
+
const MIN_BANNER_TEXT_WIDTH = 28;
|
|
405
|
+
/** Maximum editor width when a logo expands the usual 80-column layout. */
|
|
406
|
+
const MAX_SCREEN_WIDTH = 120;
|
|
407
|
+
/** Description line allowance beside a logo, expanded when the logo already requires more rows. */
|
|
408
|
+
const MAX_DESCRIPTION_ROWS = 3;
|
|
409
|
+
function footerHeightFor(height) {
|
|
410
|
+
// Reserve rows for the command preview and buttons, plus a message row when height permits.
|
|
411
|
+
return 2 + (height >= 9 ? 1 : 0);
|
|
412
|
+
}
|
|
413
|
+
/** Choose logo placement, editor width, and banner text dimensions for the available terminal size. */
|
|
414
|
+
function planHeader(appInfo, text, width, height) {
|
|
415
|
+
const logoWidth = Math.max(0, ...appInfo.logo.map(line => text.width(line)));
|
|
416
|
+
const logoHeight = appInfo.logo.length;
|
|
417
|
+
const panelsFit = (headerHeight) => height - headerHeight - footerHeightFor(height) >= MIN_PANEL_ROWS;
|
|
418
|
+
const descriptionLines = (textWidth) => appInfo.description ? text.wrap(appInfo.description, textWidth).length : 0;
|
|
419
|
+
if (logoHeight) {
|
|
420
|
+
// Width includes outer margins, the text column, a gap, and the logo.
|
|
421
|
+
const besideWidth = Math.min(width, MAX_SCREEN_WIDTH, Math.max(display_1.FALLBACK_WIDTH, 1 + display_1.BANNER_TEXT_WIDTH + 1 + logoWidth + 1));
|
|
422
|
+
const textWidth = Math.min(display_1.BANNER_TEXT_WIDTH, besideWidth - logoWidth - 3);
|
|
423
|
+
// Place the title on the second row with description lines below, matching help.
|
|
424
|
+
const descriptionRows = Math.min(descriptionLines(textWidth), Math.max(logoHeight - 2, MAX_DESCRIPTION_ROWS));
|
|
425
|
+
if (textWidth >= MIN_BANNER_TEXT_WIDTH &&
|
|
426
|
+
panelsFit(Math.max(logoHeight, 2 + descriptionRows))) {
|
|
427
|
+
return { logo: 'beside', width: besideWidth, textWidth, descriptionRows };
|
|
428
|
+
}
|
|
429
|
+
// Place the logo between outer margins with the title below it.
|
|
430
|
+
const aboveWidth = Math.max(display_1.FALLBACK_WIDTH, logoWidth + 2);
|
|
431
|
+
if (aboveWidth <= MAX_SCREEN_WIDTH && width >= logoWidth + 2 && panelsFit(logoHeight + 1)) {
|
|
432
|
+
const screenWidth = Math.min(width, aboveWidth);
|
|
433
|
+
return {
|
|
434
|
+
logo: 'above',
|
|
435
|
+
width: screenWidth,
|
|
436
|
+
textWidth: screenWidth - 2,
|
|
437
|
+
descriptionRows: descriptionLines(screenWidth - 2) > 0 && panelsFit(logoHeight + 2) ? 1 : 0,
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
const screenWidth = Math.min(width, display_1.FALLBACK_WIDTH);
|
|
442
|
+
return {
|
|
443
|
+
logo: 'none',
|
|
444
|
+
width: screenWidth,
|
|
445
|
+
textWidth: screenWidth - 2,
|
|
446
|
+
descriptionRows: appInfo.description && height >= 14 ? 1 : 0,
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
function layoutTui(model, context) {
|
|
450
|
+
const { height, theme, glyphs, text, appInfo } = context;
|
|
451
|
+
const plan = planHeader(appInfo, text, context.width, height);
|
|
452
|
+
const { width } = plan;
|
|
453
|
+
const canvas = new Canvas(context);
|
|
454
|
+
if (width < exports.MIN_WIDTH || height < exports.MIN_HEIGHT) {
|
|
455
|
+
text
|
|
456
|
+
.wrap('The terminal is too small. Make it bigger, or press Ctrl-C to leave.', Math.max(1, width))
|
|
457
|
+
.slice(0, height)
|
|
458
|
+
.forEach((line, index) => canvas.text(0, index, width, line, theme.text));
|
|
459
|
+
return { nodes: canvas.nodes, focus: null };
|
|
460
|
+
}
|
|
461
|
+
const footerHeight = footerHeightFor(height);
|
|
462
|
+
const showMessage = footerHeight > 2;
|
|
463
|
+
// Lay out the logo, title, and description using the header plan.
|
|
464
|
+
const { logo } = appInfo;
|
|
465
|
+
const { textWidth, descriptionRows } = plan;
|
|
466
|
+
const logoWidth = Math.max(0, ...logo.map(line => text.width(line)));
|
|
467
|
+
const textX = 1;
|
|
468
|
+
let titleY = 0;
|
|
469
|
+
let headerHeight = 1 + descriptionRows;
|
|
470
|
+
if (plan.logo === 'beside') {
|
|
471
|
+
// Place the logo beside a separate text column, matching the help banner.
|
|
472
|
+
logo.forEach((line, index) => canvas.text(textX + textWidth + 1, index, logoWidth, line, theme.logo));
|
|
473
|
+
titleY = 1;
|
|
474
|
+
headerHeight = Math.max(logo.length, 2 + descriptionRows);
|
|
475
|
+
}
|
|
476
|
+
else if (plan.logo === 'above') {
|
|
477
|
+
logo.forEach((line, index) => canvas.text(textX, index, logoWidth, line, theme.logo));
|
|
478
|
+
titleY = logo.length;
|
|
479
|
+
headerHeight = logo.length + 1 + descriptionRows;
|
|
480
|
+
}
|
|
481
|
+
const title = text.truncate(appInfo.title || 'Options', textWidth);
|
|
482
|
+
canvas.text(textX, titleY, text.width(title), title, theme.title);
|
|
483
|
+
const versionX = textX + text.width(title) + 2;
|
|
484
|
+
if (appInfo.version && textX + textWidth - versionX >= text.width(appInfo.version)) {
|
|
485
|
+
canvas.text(versionX, titleY, text.width(appInfo.version), appInfo.version, theme.muted);
|
|
486
|
+
}
|
|
487
|
+
const description = text.wrap(appInfo.description, textWidth);
|
|
488
|
+
if (description.length > descriptionRows && descriptionRows > 0) {
|
|
489
|
+
// Truncate overflowing header text with an ellipsis.
|
|
490
|
+
description.splice(descriptionRows - 1, Infinity, text.truncate(description
|
|
491
|
+
.slice(descriptionRows - 1)
|
|
492
|
+
.filter(Boolean)
|
|
493
|
+
.join(' '), textWidth));
|
|
494
|
+
}
|
|
495
|
+
description
|
|
496
|
+
.slice(0, descriptionRows)
|
|
497
|
+
.forEach((line, index) => canvas.text(textX, titleY + 1 + index, textWidth, line, theme.muted));
|
|
498
|
+
// Panels
|
|
499
|
+
const body = {
|
|
500
|
+
x: 0,
|
|
501
|
+
y: headerHeight,
|
|
502
|
+
width,
|
|
503
|
+
height: height - headerHeight - footerHeight,
|
|
504
|
+
};
|
|
505
|
+
const hasCommands = model.entries.length > 1;
|
|
506
|
+
if (hasCommands && width >= TWO_PANEL_MIN_WIDTH) {
|
|
507
|
+
const widestLabel = Math.max(...model.entries.map(entry => text.width(entry.label)));
|
|
508
|
+
const leftWidth = Math.min(Math.max(widestLabel + 6, 18), Math.floor(width * 0.4), 34);
|
|
509
|
+
layoutCommands(canvas, model, context, { ...body, width: leftWidth });
|
|
510
|
+
layoutFields(canvas, model, context, {
|
|
511
|
+
...body,
|
|
512
|
+
x: leftWidth,
|
|
513
|
+
width: width - leftWidth,
|
|
514
|
+
});
|
|
515
|
+
}
|
|
516
|
+
else if (hasCommands && model.region === 'commands') {
|
|
517
|
+
// On narrow terminals, show only the panel corresponding to the current focus.
|
|
518
|
+
layoutCommands(canvas, model, context, body);
|
|
519
|
+
}
|
|
520
|
+
else {
|
|
521
|
+
layoutFields(canvas, model, context, body);
|
|
522
|
+
}
|
|
523
|
+
// Footer
|
|
524
|
+
let y = body.y + body.height;
|
|
525
|
+
canvas.text(1, y, 2, '$', theme.muted);
|
|
526
|
+
canvas.text(3, y, width - 4, model.preview(), theme.text, 'preview');
|
|
527
|
+
y++;
|
|
528
|
+
// Align footer text with the command preview, leaving a column for prompts and problem markers.
|
|
529
|
+
let buttonX = 3;
|
|
530
|
+
for (const button of tui_model_1.TUI_BUTTONS) {
|
|
531
|
+
const content = BUTTON_LABELS[button];
|
|
532
|
+
canvas.add({
|
|
533
|
+
kind: 'button',
|
|
534
|
+
target: { kind: 'button', button },
|
|
535
|
+
x: buttonX,
|
|
536
|
+
y,
|
|
537
|
+
width: content.length,
|
|
538
|
+
height: 1,
|
|
539
|
+
content,
|
|
540
|
+
focusedContent: content,
|
|
541
|
+
attr: theme.button,
|
|
542
|
+
focusedAttr: theme.focused,
|
|
543
|
+
});
|
|
544
|
+
buttonX += content.length + 2;
|
|
545
|
+
}
|
|
546
|
+
y++;
|
|
547
|
+
if (showMessage) {
|
|
548
|
+
const message = messageOf(model, theme, glyphs, text, width - 4);
|
|
549
|
+
canvas.text(1, y, 2, message.isProblem ? glyphs.problem : '', message.isProblem ? theme.error : theme.text, 'messageSign');
|
|
550
|
+
canvas.text(3, y, width - 4, message.text, message.attr, 'message');
|
|
551
|
+
}
|
|
552
|
+
return { nodes: canvas.nodes, focus: focusOf(model) };
|
|
553
|
+
}
|
|
554
|
+
//# sourceMappingURL=tui_layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tui_layout.js","sourceRoot":"","sources":["../src/tui_layout.ts"],"names":[],"mappings":";;;AA+CA,kCAsBC;AAsJD,gCAYC;AAqZD,8BAkBC;AAmCD,gCAqDC;AAED,8BAiIC;AAz2BD,uCAA8D;AAE9D,uCAAmE;AACnE,mCAA6C;AAC7C,2CAA2E;AA2C3E,SAAgB,WAAW,CAAC,MAAuB;IACjD,MAAM,QAAQ,GAAc,EAAE,GAAG,oBAAU,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;IAC1E,MAAM,MAAM,GAAc,EAAE,GAAG,oBAAU,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxD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