@bigpixelrocket/uiok 0.3.0 → 0.5.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/CHANGELOG.md +50 -1
- package/dist/button/TextLink.d.ts +19 -3
- package/dist/button/TextLink.js +4 -3
- package/dist/dialog/ConfirmDialog.d.ts +7 -1
- package/dist/dialog/ConfirmDialog.js +2 -2
- package/dist/dialog/ModalDialog.js +8 -2
- package/dist/dialog/ProgressDialog.d.ts +7 -1
- package/dist/dialog/ProgressDialog.js +2 -2
- package/dist/dialog/TypedNameDialog.d.ts +8 -0
- package/dist/field/Check.d.ts +9 -2
- package/dist/field/Check.js +5 -4
- package/dist/field/Controls.d.ts +198 -0
- package/dist/field/Controls.js +94 -0
- package/dist/field/FieldLayout.d.ts +126 -0
- package/dist/field/FieldLayout.js +89 -0
- package/dist/field/index.d.ts +9 -6
- package/dist/field/index.js +9 -6
- package/dist/frame/Dock.js +1 -1
- package/dist/frame/SidebarResizer.js +1 -1
- package/dist/frame/Tree.d.ts +17 -4
- package/dist/frame/Tree.js +34 -9
- package/dist/frame/WindowFrame.js +2 -1
- package/dist/frame/frame.css +26 -4
- package/dist/icon/ProductMark.d.ts +57 -0
- package/dist/icon/ProductMark.js +26 -0
- package/dist/icon/icon.css +53 -0
- package/dist/icon/index.d.ts +3 -1
- package/dist/icon/index.js +3 -1
- package/dist/labels/UiokLabels.d.ts +3 -0
- package/dist/labels/UiokLabels.js +3 -1
- package/dist/labels/index.d.ts +1 -0
- package/dist/labels/index.js +1 -0
- package/dist/labels/settings.d.ts +6 -0
- package/dist/labels/settings.js +1 -0
- package/dist/labels/viewer.d.ts +193 -0
- package/dist/labels/viewer.js +124 -0
- package/dist/listing/Listing.d.ts +60 -4
- package/dist/listing/Listing.js +39 -10
- package/dist/listing/ListingScope.d.ts +7 -0
- package/dist/listing/ListingScope.js +8 -0
- package/dist/listing/PaneMessage.d.ts +28 -0
- package/dist/listing/PaneMessage.js +12 -0
- package/dist/listing/Timeline.d.ts +51 -0
- package/dist/listing/Timeline.js +28 -0
- package/dist/listing/index.d.ts +7 -3
- package/dist/listing/index.js +6 -2
- package/dist/listing/listing.css +185 -22
- package/dist/log/Ansi.logic.d.ts +27 -0
- package/dist/log/Ansi.logic.js +203 -0
- package/dist/log/LogWell.d.ts +11 -2
- package/dist/log/LogWell.js +15 -3
- package/dist/log/index.d.ts +1 -0
- package/dist/log/index.js +1 -0
- package/dist/log/log.css +80 -0
- package/dist/menu/Menu.d.ts +89 -0
- package/dist/menu/Menu.js +143 -0
- package/dist/menu/Menu.logic.d.ts +56 -0
- package/dist/menu/Menu.logic.js +64 -0
- package/dist/menu/index.d.ts +5 -1
- package/dist/menu/index.js +5 -1
- package/dist/menu/menu.css +51 -0
- package/dist/palette/Palette.d.ts +3 -2
- package/dist/palette/Palette.js +8 -4
- package/dist/palette/PaletteRows.d.ts +129 -0
- package/dist/palette/PaletteRows.js +74 -0
- package/dist/palette/index.d.ts +5 -2
- package/dist/palette/index.js +5 -2
- package/dist/pane/PaneFrame.d.ts +22 -1
- package/dist/pane/PaneFrame.js +42 -5
- package/dist/pane/index.d.ts +1 -1
- package/dist/shell/SettingsDialog.d.ts +20 -2
- package/dist/shell/SettingsDialog.js +13 -3
- package/dist/shell/index.d.ts +1 -1
- package/dist/styles.css +4 -0
- package/dist/surface/Card.d.ts +18 -0
- package/dist/surface/Card.js +10 -0
- package/dist/surface/FactTable.d.ts +44 -0
- package/dist/surface/FactTable.js +33 -0
- package/dist/surface/Notice.d.ts +45 -0
- package/dist/surface/Notice.js +27 -0
- package/dist/surface/index.d.ts +7 -3
- package/dist/surface/index.js +7 -3
- package/dist/surface/surface.css +64 -0
- package/dist/tabs/PageTabs.d.ts +6 -0
- package/dist/tabs/PageTabs.js +1 -1
- package/dist/tabs/tabs.css +14 -0
- package/dist/terminal/TerminalBox.d.ts +30 -0
- package/dist/terminal/TerminalBox.js +17 -0
- package/dist/terminal/index.d.ts +3 -1
- package/dist/terminal/index.js +3 -1
- package/dist/terminal/terminal.css +29 -0
- package/dist/themes/themes.generated.css +21 -0
- package/dist/themes/tokens.d.ts +1 -0
- package/dist/themes/tokens.js +16 -1
- package/dist/viewer/AudioView.d.ts +13 -0
- package/dist/viewer/AudioView.js +25 -0
- package/dist/viewer/HexJump.logic.d.ts +16 -0
- package/dist/viewer/HexJump.logic.js +27 -0
- package/dist/viewer/HexRows.logic.d.ts +55 -0
- package/dist/viewer/HexRows.logic.js +84 -0
- package/dist/viewer/HexSelection.logic.d.ts +57 -0
- package/dist/viewer/HexSelection.logic.js +68 -0
- package/dist/viewer/HexView.d.ts +10 -0
- package/dist/viewer/HexView.js +291 -0
- package/dist/viewer/HexViewport.logic.d.ts +61 -0
- package/dist/viewer/HexViewport.logic.js +79 -0
- package/dist/viewer/ImageView.d.ts +19 -0
- package/dist/viewer/ImageView.js +230 -0
- package/dist/viewer/ImageZoom.logic.d.ts +65 -0
- package/dist/viewer/ImageZoom.logic.js +119 -0
- package/dist/viewer/LatestRead.logic.d.ts +27 -0
- package/dist/viewer/LatestRead.logic.js +55 -0
- package/dist/viewer/MediaControls.d.ts +25 -0
- package/dist/viewer/MediaControls.js +183 -0
- package/dist/viewer/MediaPlayer.logic.d.ts +53 -0
- package/dist/viewer/MediaPlayer.logic.js +68 -0
- package/dist/viewer/PdfView.d.ts +23 -0
- package/dist/viewer/PdfView.js +25 -0
- package/dist/viewer/QuietFocus.d.ts +19 -0
- package/dist/viewer/QuietFocus.js +27 -0
- package/dist/viewer/ScaledScroll.logic.d.ts +30 -0
- package/dist/viewer/ScaledScroll.logic.js +28 -0
- package/dist/viewer/ScaledScrollbar.d.ts +19 -0
- package/dist/viewer/ScaledScrollbar.js +71 -0
- package/dist/viewer/SyntaxHighlighter.d.ts +29 -0
- package/dist/viewer/SyntaxHighlighter.js +144 -0
- package/dist/viewer/SyntaxLanguage.logic.d.ts +110 -0
- package/dist/viewer/SyntaxLanguage.logic.js +283 -0
- package/dist/viewer/SyntaxService.d.ts +75 -0
- package/dist/viewer/SyntaxService.js +49 -0
- package/dist/viewer/SyntaxSession.logic.d.ts +78 -0
- package/dist/viewer/SyntaxSession.logic.js +221 -0
- package/dist/viewer/SyntaxWorker.d.ts +6 -0
- package/dist/viewer/SyntaxWorker.js +8 -0
- package/dist/viewer/TextEncoding.logic.d.ts +35 -0
- package/dist/viewer/TextEncoding.logic.js +58 -0
- package/dist/viewer/TextRows.logic.d.ts +86 -0
- package/dist/viewer/TextRows.logic.js +241 -0
- package/dist/viewer/TextSelection.logic.d.ts +97 -0
- package/dist/viewer/TextSelection.logic.js +139 -0
- package/dist/viewer/TextView.d.ts +13 -0
- package/dist/viewer/TextView.js +448 -0
- package/dist/viewer/TextViewport.logic.d.ts +70 -0
- package/dist/viewer/TextViewport.logic.js +116 -0
- package/dist/viewer/VideoView.d.ts +18 -0
- package/dist/viewer/VideoView.js +53 -0
- package/dist/viewer/ViewerClipboard.d.ts +30 -0
- package/dist/viewer/ViewerClipboard.js +70 -0
- package/dist/viewer/ViewerFrame.logic.d.ts +61 -0
- package/dist/viewer/ViewerFrame.logic.js +130 -0
- package/dist/viewer/ViewerKeys.d.ts +16 -0
- package/dist/viewer/ViewerKeys.js +14 -0
- package/dist/viewer/ViewerScope.d.ts +12 -0
- package/dist/viewer/ViewerScope.js +22 -0
- package/dist/viewer/ViewerViews.d.ts +28 -0
- package/dist/viewer/ViewerViews.js +22 -0
- package/dist/viewer/ViewerWindow.d.ts +53 -0
- package/dist/viewer/ViewerWindow.js +219 -0
- package/dist/viewer/index.d.ts +12 -0
- package/dist/viewer/index.js +12 -0
- package/dist/viewer/types.d.ts +151 -0
- package/dist/viewer/types.js +26 -0
- package/dist/viewer/useElementHeight.d.ts +6 -0
- package/dist/viewer/useElementHeight.js +22 -0
- package/dist/viewer/useElementSize.d.ts +7 -0
- package/dist/viewer/useElementSize.js +24 -0
- package/dist/viewer/useEscapeToClear.d.ts +8 -0
- package/dist/viewer/useEscapeToClear.js +26 -0
- package/dist/viewer/useHexDocument.d.ts +41 -0
- package/dist/viewer/useHexDocument.js +144 -0
- package/dist/viewer/useMediaElement.d.ts +10 -0
- package/dist/viewer/useMediaElement.js +24 -0
- package/dist/viewer/useSyntaxHighlight.d.ts +24 -0
- package/dist/viewer/useSyntaxHighlight.js +133 -0
- package/dist/viewer/useTextDocument.d.ts +66 -0
- package/dist/viewer/useTextDocument.js +245 -0
- package/dist/viewer/viewer.css +645 -0
- package/package.json +7 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* One line that says something about a listing, where its rows stand: a
|
|
4
|
+
* hint, a refusal led by the danger glyph, a warning led by the warning
|
|
5
|
+
* glyph, or the line of a list with no rows, in the interface face from the
|
|
6
|
+
* rows' inset, inside a listing root. For what `Listing`'s `empty` and
|
|
7
|
+
* `PageNote` do not cover. Draws `.pane-message` (`.danger`, `.warning`,
|
|
8
|
+
* `.empty`).
|
|
9
|
+
*/
|
|
10
|
+
export function PaneMessage({ children, tone, live = false }) {
|
|
11
|
+
return (_jsx("p", { className: tone === undefined ? 'pane-message' : `pane-message ${tone}`, role: live ? 'status' : undefined, children: children }));
|
|
12
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
/** Props for {@link TimelineCell}. */
|
|
3
|
+
export interface TimelineCellProps {
|
|
4
|
+
/** When the item began, on the scale's units (seconds after a start). */
|
|
5
|
+
readonly start: number;
|
|
6
|
+
/** When it ended, or where it stands now; not before `start`. */
|
|
7
|
+
readonly end: number;
|
|
8
|
+
/** The scale's end, shared by every row of the listing, so the bars line up. */
|
|
9
|
+
readonly max: number;
|
|
10
|
+
/**
|
|
11
|
+
* The item is on the path that matters (the slowest path of a start): its
|
|
12
|
+
* bar in the solid accent, the others in the accent's lighter line.
|
|
13
|
+
*/
|
|
14
|
+
readonly emphasis?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Draws the wait before `start` as a hairline from the scale's start, for
|
|
17
|
+
* an item that waited on another; none for one that began at once.
|
|
18
|
+
*/
|
|
19
|
+
readonly waited?: boolean;
|
|
20
|
+
/** The span in words, its accessible name and tooltip: "began at 1.9 s, took 0.8 s". */
|
|
21
|
+
readonly label: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* A row's span on a shared scale, as a cell (`Cell`'s place in a `Row`):
|
|
25
|
+
* a bar from `start` to `end` of a scale from 0 to `max`, after a hairline
|
|
26
|
+
* for the wait before it, in the solid accent on the path that matters and
|
|
27
|
+
* the accent's line otherwise. Every row of a listing passes the same
|
|
28
|
+
* `max`, and `TimelineScale` heads the column with its ticks. For a plan's
|
|
29
|
+
* startup timing or a dependency graph's, read as rows rather than drawn
|
|
30
|
+
* on a canvas. Draws `.timeline-cell` with `--timeline-start` and
|
|
31
|
+
* `--timeline-end`.
|
|
32
|
+
*/
|
|
33
|
+
export declare function TimelineCell({ start, end, max, emphasis, waited, label }: TimelineCellProps): ReactElement;
|
|
34
|
+
/** One tick of a `TimelineScale`: where it stands and its words ("1 s"). */
|
|
35
|
+
export interface TimelineTick {
|
|
36
|
+
readonly at: number;
|
|
37
|
+
readonly label: string;
|
|
38
|
+
}
|
|
39
|
+
/** Props for {@link TimelineScale}. */
|
|
40
|
+
export interface TimelineScaleProps {
|
|
41
|
+
/** The scale's end, the `max` every `TimelineCell` under it passes. */
|
|
42
|
+
readonly max: number;
|
|
43
|
+
/** Its ticks, each at its place on the scale. */
|
|
44
|
+
readonly ticks: readonly TimelineTick[];
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The ticks over a column of `TimelineCell`s, for the column's `control`
|
|
48
|
+
* in a `Listing`: each tick's words start at its place on the same scale,
|
|
49
|
+
* in the strip's quiet tone. Decorative: each cell names its own span.
|
|
50
|
+
*/
|
|
51
|
+
export declare function TimelineScale({ max, ticks }: TimelineScaleProps): ReactElement;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { tooltip } from '../tooltip/Tooltip.logic.js';
|
|
3
|
+
/** A share of a scale, clamped to it, as a CSS percentage. */
|
|
4
|
+
const share = (value, max) => `${max > 0 ? (Math.min(Math.max(value, 0), max) / max) * 100 : 0}%`;
|
|
5
|
+
/**
|
|
6
|
+
* A row's span on a shared scale, as a cell (`Cell`'s place in a `Row`):
|
|
7
|
+
* a bar from `start` to `end` of a scale from 0 to `max`, after a hairline
|
|
8
|
+
* for the wait before it, in the solid accent on the path that matters and
|
|
9
|
+
* the accent's line otherwise. Every row of a listing passes the same
|
|
10
|
+
* `max`, and `TimelineScale` heads the column with its ticks. For a plan's
|
|
11
|
+
* startup timing or a dependency graph's, read as rows rather than drawn
|
|
12
|
+
* on a canvas. Draws `.timeline-cell` with `--timeline-start` and
|
|
13
|
+
* `--timeline-end`.
|
|
14
|
+
*/
|
|
15
|
+
export function TimelineCell({ start, end, max, emphasis = false, waited = false, label }) {
|
|
16
|
+
return (_jsx("span", { "aria-label": label, className: "row-meta timeline-cell", "data-emphasis": emphasis || undefined, role: "cell", style: {
|
|
17
|
+
'--timeline-start': share(start, max),
|
|
18
|
+
'--timeline-end': share(Math.max(start, end), max)
|
|
19
|
+
}, ...tooltip(label), children: _jsxs("span", { "aria-hidden": true, className: "timeline-track", children: [waited ? _jsx("span", { className: "timeline-wait" }) : null, _jsx("span", { className: "timeline-bar" })] }) }));
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The ticks over a column of `TimelineCell`s, for the column's `control`
|
|
23
|
+
* in a `Listing`: each tick's words start at its place on the same scale,
|
|
24
|
+
* in the strip's quiet tone. Decorative: each cell names its own span.
|
|
25
|
+
*/
|
|
26
|
+
export function TimelineScale({ max, ticks }) {
|
|
27
|
+
return (_jsx("span", { "aria-hidden": true, className: "timeline-scale", children: ticks.map((tick) => (_jsx("span", { className: "timeline-tick", style: { '--timeline-at': share(tick.at, max) }, children: tick.label }, tick.label))) }));
|
|
28
|
+
}
|
package/dist/listing/index.d.ts
CHANGED
|
@@ -2,11 +2,15 @@
|
|
|
2
2
|
* Listings: the column strip, rows and cells in the listing look (scoped by
|
|
3
3
|
* `.listing-root`), the row cursor they share with the keys, column widths,
|
|
4
4
|
* and the state, path, and terminal-well cells; `CurrentDot` marks the
|
|
5
|
-
* current one in a list,
|
|
6
|
-
* yet or one that could not load
|
|
5
|
+
* current one in a list, `EmptyState` fills a pane with nothing in it
|
|
6
|
+
* yet or one that could not load, and `PaneMessage` is one line about a
|
|
7
|
+
* listing (a hint, a refusal, a warning); `TimelineCell` and
|
|
8
|
+
* `TimelineScale` draw a row's span on a shared scale.
|
|
7
9
|
*/
|
|
8
10
|
export { type SortDirection } from '../labels/listing.js';
|
|
9
11
|
export { CurrentDot, type CurrentDotProps } from './CurrentDot.js';
|
|
10
12
|
export { EmptyState, type EmptyStateProps, type EmptyStateStep } from './EmptyState.js';
|
|
11
|
-
export { ACTION_COLUMN, Cell, column, ICON_LINK_PX, iconLinksColumn, linksColumn, Listing, PathCell, Row, RowCursorContext, StateMark, Strip, WellColumn, type CellProps, type ColumnSort, type ListingColumn, type ListingProps, type PathCellProps, type RowCursor, type RowProps, type StateMarkProps, type StateTone, type StripProps, type WellColumnProps } from './Listing.js';
|
|
13
|
+
export { ACTION_COLUMN, Cell, column, ICON_LINK_PX, iconLinksColumn, linksColumn, Listing, PathCell, Row, RowCursorContext, StateMark, Strip, WellColumn, type CellProps, type CellTone, type ColumnSort, type ListingColumn, type ListingProps, type PathCellProps, type RowCursor, type RowProps, type StateMarkProps, type StateTone, type StripProps, type WellColumnProps } from './Listing.js';
|
|
14
|
+
export { PaneMessage, type PaneMessageProps, type PaneMessageTone } from './PaneMessage.js';
|
|
12
15
|
export { pathParts, type PathParts } from './PathParts.logic.js';
|
|
16
|
+
export { TimelineCell, TimelineScale, type TimelineCellProps, type TimelineScaleProps, type TimelineTick } from './Timeline.js';
|
package/dist/listing/index.js
CHANGED
|
@@ -2,11 +2,15 @@
|
|
|
2
2
|
* Listings: the column strip, rows and cells in the listing look (scoped by
|
|
3
3
|
* `.listing-root`), the row cursor they share with the keys, column widths,
|
|
4
4
|
* and the state, path, and terminal-well cells; `CurrentDot` marks the
|
|
5
|
-
* current one in a list,
|
|
6
|
-
* yet or one that could not load
|
|
5
|
+
* current one in a list, `EmptyState` fills a pane with nothing in it
|
|
6
|
+
* yet or one that could not load, and `PaneMessage` is one line about a
|
|
7
|
+
* listing (a hint, a refusal, a warning); `TimelineCell` and
|
|
8
|
+
* `TimelineScale` draw a row's span on a shared scale.
|
|
7
9
|
*/
|
|
8
10
|
export {} from '../labels/listing.js';
|
|
9
11
|
export { CurrentDot } from './CurrentDot.js';
|
|
10
12
|
export { EmptyState } from './EmptyState.js';
|
|
11
13
|
export { ACTION_COLUMN, Cell, column, ICON_LINK_PX, iconLinksColumn, linksColumn, Listing, PathCell, Row, RowCursorContext, StateMark, Strip, WellColumn } from './Listing.js';
|
|
14
|
+
export { PaneMessage } from './PaneMessage.js';
|
|
12
15
|
export { pathParts } from './PathParts.logic.js';
|
|
16
|
+
export { TimelineCell, TimelineScale } from './Timeline.js';
|
package/dist/listing/listing.css
CHANGED
|
@@ -92,7 +92,8 @@
|
|
|
92
92
|
/* The listing's face: the path bar, the list, and the status line are set
|
|
93
93
|
in the monospace face, whatever the space around them uses. An empty
|
|
94
94
|
pane's block is sentences, in the interface face. */
|
|
95
|
-
:where(.listing-root) :is(.pane-path-row, .pane-list, .pane-status)
|
|
95
|
+
:where(.listing-root) :is(.pane-path-row, .pane-list, .pane-status),
|
|
96
|
+
.pane-listing:where(.listing-root, .listing-root *) {
|
|
96
97
|
font-family: var(--font-mono);
|
|
97
98
|
font-size: var(--font-size-body);
|
|
98
99
|
}
|
|
@@ -348,6 +349,25 @@ button.crumb-label > .crumb-text {
|
|
|
348
349
|
pressed looks are the base sheet's shared quiet recipes, which weigh the
|
|
349
350
|
same, so a press shows over the hover. */
|
|
350
351
|
|
|
352
|
+
/* A last crumb with siblings (PanePathBar's `siblings`): its words, which
|
|
353
|
+
give way, then a ⌄ that never does. On a page it stands in the page's
|
|
354
|
+
heading, which draws no box of its own. While its menu is up it keeps
|
|
355
|
+
the hovered face (the base sheet's open pop-up recipe). */
|
|
356
|
+
.crumb-heading {
|
|
357
|
+
display: contents;
|
|
358
|
+
font: inherit;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
button.crumb-label.crumb-siblings {
|
|
362
|
+
gap: var(--space-1);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
button.crumb-label.crumb-siblings > svg {
|
|
366
|
+
position: relative;
|
|
367
|
+
z-index: var(--z-raised);
|
|
368
|
+
flex: none;
|
|
369
|
+
}
|
|
370
|
+
|
|
351
371
|
/* The trail's last crumb is where the pane is. */
|
|
352
372
|
.crumb.here .crumb-label {
|
|
353
373
|
color: var(--text);
|
|
@@ -837,7 +857,7 @@ button.crumb-label > .crumb-text {
|
|
|
837
857
|
it again, which a subgrid adds to its edge cells as margin: the two
|
|
838
858
|
cancel, so the cells sit exactly on the listing's tracks. Anything else
|
|
839
859
|
in the listing (a message, an app's own block) spans every track. */
|
|
840
|
-
:where(.listing-root
|
|
860
|
+
.pane-listing:where(.listing-root, .listing-root *):where([role='table']) {
|
|
841
861
|
display: grid;
|
|
842
862
|
grid-template-columns: var(
|
|
843
863
|
--pane-grid,
|
|
@@ -847,12 +867,12 @@ button.crumb-label > .crumb-text {
|
|
|
847
867
|
padding: 0 var(--pane-row-inset);
|
|
848
868
|
}
|
|
849
869
|
|
|
850
|
-
:where(.listing-root .
|
|
870
|
+
:where(.pane-listing:is(.listing-root, .listing-root *)[role='table']) > * {
|
|
851
871
|
grid-column: 1 / -1;
|
|
852
872
|
margin-inline: calc(-1 * var(--pane-row-inset));
|
|
853
873
|
}
|
|
854
874
|
|
|
855
|
-
:where(.listing-root .
|
|
875
|
+
:where(.pane-listing:is(.listing-root, .listing-root *)[role='table']) > :is(.row, .pane-columns) {
|
|
856
876
|
grid-template-columns: subgrid;
|
|
857
877
|
}
|
|
858
878
|
|
|
@@ -997,7 +1017,11 @@ button.crumb-label > .crumb-text {
|
|
|
997
1017
|
edge, as the headings of the sections around it do. The listing's part
|
|
998
1018
|
weighs nothing, so the rule weighs what the label's default above does,
|
|
999
1019
|
and an app's own placement of the label wins. */
|
|
1000
|
-
:where(
|
|
1020
|
+
:where(
|
|
1021
|
+
.pane-listing:is(.listing-root, .listing-root *):has(> .row):not(
|
|
1022
|
+
:has(> .row > .row-icon:not(:empty))
|
|
1023
|
+
)
|
|
1024
|
+
)
|
|
1001
1025
|
> .pane-columns
|
|
1002
1026
|
> .row-name:where(:not(:has(h3))) {
|
|
1003
1027
|
grid-column: 2;
|
|
@@ -1307,7 +1331,9 @@ button.crumb-label > .crumb-text {
|
|
|
1307
1331
|
mark, and the pointer: no rule here may recolour a word on a selected
|
|
1308
1332
|
row, whatever it weighs. The selection is left out with a :where(), so
|
|
1309
1333
|
each rule keeps the weight an app's own rule is measured against. */
|
|
1310
|
-
:where(.listing-root)
|
|
1334
|
+
:where(.listing-root)
|
|
1335
|
+
.row:is(.cursor, .marked):where(:not(.selected))
|
|
1336
|
+
:is(.row-icon, .row-meta:where(:not([data-tone]))),
|
|
1311
1337
|
:where(.listing-root)
|
|
1312
1338
|
.row:is(.cursor, .marked):where(:not(.selected))
|
|
1313
1339
|
.pane-state:is(.pane-tone-muted, .pane-tone-busy),
|
|
@@ -1316,13 +1342,31 @@ button.crumb-label > .crumb-text {
|
|
|
1316
1342
|
:is(.pane-act, .pane-icon-act):where(:not(.lit, :hover, .danger:focus-visible)),
|
|
1317
1343
|
:where(.listing-root .pane-list.pointer)
|
|
1318
1344
|
.row:hover:not(.selected)
|
|
1319
|
-
:is(
|
|
1345
|
+
:is(
|
|
1346
|
+
.row-icon,
|
|
1347
|
+
.row-meta:where(:not([data-tone])),
|
|
1348
|
+
.pane-state:is(.pane-tone-muted, .pane-tone-busy)
|
|
1349
|
+
),
|
|
1320
1350
|
:where(.listing-root .pane-list.pointer)
|
|
1321
1351
|
.row:hover:where(:not(.cursor, .marked, .selected))
|
|
1322
1352
|
:is(.pane-act, .pane-icon-act):where(:not(.lit, :hover, .danger:focus-visible)) {
|
|
1323
1353
|
color: var(--text-on-surface);
|
|
1324
1354
|
}
|
|
1325
1355
|
|
|
1356
|
+
/* A row whose item is not there yet (`.row-dim`: a version not
|
|
1357
|
+
installed, a product not added): its name in the row-meta tone, one
|
|
1358
|
+
step under the rows that are, rising to the on-surface tone on the
|
|
1359
|
+
cursor, a mark, or under the pointer, as every quiet word does. A
|
|
1360
|
+
selection paints it as it paints every name (below). */
|
|
1361
|
+
:where(.listing-root) .row.row-dim > .row-name {
|
|
1362
|
+
color: var(--row-meta-text);
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
:where(.listing-root) .row.row-dim:is(.cursor, .marked):where(:not(.selected)) > .row-name,
|
|
1366
|
+
:where(.listing-root .pane-list.pointer) .row.row-dim:hover:where(:not(.selected)) > .row-name {
|
|
1367
|
+
color: var(--text-on-surface);
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1326
1370
|
/* A row at a listing's foot that adds one (`.pane-add`: "Add service…"):
|
|
1327
1371
|
quiet dim words after an accent plus, which turn to full words under
|
|
1328
1372
|
the pointer, with the focus, and on the cursor row, as a control's do. */
|
|
@@ -1330,7 +1374,7 @@ button.crumb-label > .crumb-text {
|
|
|
1330
1374
|
color: var(--text-dim);
|
|
1331
1375
|
}
|
|
1332
1376
|
|
|
1333
|
-
:where(.listing-root) .row.pane-add > .row-icon {
|
|
1377
|
+
:where(.listing-root) .row.pane-add > :is(.row-icon, .tree-glyph) {
|
|
1334
1378
|
color: var(--accent);
|
|
1335
1379
|
}
|
|
1336
1380
|
|
|
@@ -1396,6 +1440,24 @@ button.crumb-label > .crumb-text {
|
|
|
1396
1440
|
font-variant-numeric: tabular-nums;
|
|
1397
1441
|
}
|
|
1398
1442
|
|
|
1443
|
+
/* A cell in a tone (`Cell`'s `tone`, as `data-tone`): a version with an
|
|
1444
|
+
update waiting in the warning tone, an offered one in the accent's, a
|
|
1445
|
+
failure in the danger tone. Each text tone keeps 4.5:1 on the listing
|
|
1446
|
+
and on the cursor and hover fills, so the quiet-word rules above leave a
|
|
1447
|
+
toned cell alone; a selection still paints it in its own words (below),
|
|
1448
|
+
which come later and weigh as much. */
|
|
1449
|
+
:where(.listing-root) .row .row-meta[data-tone='warning'] {
|
|
1450
|
+
color: var(--warning-text);
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
:where(.listing-root) .row .row-meta[data-tone='accent'] {
|
|
1454
|
+
color: var(--accent-text);
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
:where(.listing-root) .row .row-meta[data-tone='danger'] {
|
|
1458
|
+
color: var(--danger-text);
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1399
1461
|
/* Numbers line up on their column's right edge. */
|
|
1400
1462
|
:where(.listing-root) .row-meta.align-right {
|
|
1401
1463
|
text-align: right;
|
|
@@ -1466,7 +1528,9 @@ button.crumb-label > .crumb-text {
|
|
|
1466
1528
|
|
|
1467
1529
|
/* Each section is a listing of its own, so its strip pins only while the
|
|
1468
1530
|
listing is in view; a rule sets a listing off from the one above. */
|
|
1469
|
-
:
|
|
1531
|
+
:is(.pane-listing, .pane-message)
|
|
1532
|
+
+ .pane-listing:where(.listing-root, .listing-root *)
|
|
1533
|
+
> .pane-columns {
|
|
1470
1534
|
border-top: var(--line) solid var(--border);
|
|
1471
1535
|
}
|
|
1472
1536
|
|
|
@@ -1553,9 +1617,8 @@ button.crumb-label > .crumb-text {
|
|
|
1553
1617
|
/* A strip that follows a listing carries a rule above it inside its own
|
|
1554
1618
|
height, one line less room: there the button is one line shorter, so
|
|
1555
1619
|
it still stands 2px clear of both rules. */
|
|
1556
|
-
:
|
|
1557
|
-
:
|
|
1558
|
-
+ .pane-listing
|
|
1620
|
+
:is(.pane-listing, .pane-message)
|
|
1621
|
+
+ .pane-listing:where(.listing-root, .listing-root *)
|
|
1559
1622
|
> .pane-columns
|
|
1560
1623
|
:is(.pane-strip-link, .button-xs) {
|
|
1561
1624
|
height: calc(var(--pane-columns-height) - 2 * var(--line) - 2 * var(--space-1));
|
|
@@ -1874,7 +1937,7 @@ button.crumb-label > .crumb-text {
|
|
|
1874
1937
|
wide as the spinner (--icon-sm), so the words read from one edge: the
|
|
1875
1938
|
mark is --dot wide, and its margins take up the rest (a turned diamond
|
|
1876
1939
|
is about as wide). A listing with no spinner keeps the room. */
|
|
1877
|
-
:where(.listing-root
|
|
1940
|
+
.pane-listing:where(.listing-root, .listing-root *):has(.pane-state-busy) .pane-state-dot {
|
|
1878
1941
|
margin-inline: calc((var(--icon-sm) - var(--dot)) / 2);
|
|
1879
1942
|
}
|
|
1880
1943
|
|
|
@@ -2024,7 +2087,9 @@ button.crumb-label > .crumb-text {
|
|
|
2024
2087
|
/* Each pinned cell fills its row's height, so its ground and its hairline
|
|
2025
2088
|
run unbroken from the strip to the foot, and holds its controls at its
|
|
2026
2089
|
end, centred in the row. */
|
|
2027
|
-
:where(.
|
|
2090
|
+
:where(.pane-listing.pane-pin-end:is(.listing-root, .listing-root *))
|
|
2091
|
+
> :is(.row, .pane-columns)
|
|
2092
|
+
> :last-child {
|
|
2028
2093
|
position: sticky;
|
|
2029
2094
|
inset-inline-end: 0;
|
|
2030
2095
|
z-index: var(--z-raised);
|
|
@@ -2044,7 +2109,9 @@ button.crumb-label > .crumb-text {
|
|
|
2044
2109
|
|
|
2045
2110
|
/* The strip's pinned cell is a square band of the strip, not a sort
|
|
2046
2111
|
control's rounded box. */
|
|
2047
|
-
:where(.
|
|
2112
|
+
:where(.pane-listing.pane-pin-end:is(.listing-root, .listing-root *))
|
|
2113
|
+
> .pane-columns
|
|
2114
|
+
> :last-child {
|
|
2048
2115
|
border-radius: 0;
|
|
2049
2116
|
background: var(--strip);
|
|
2050
2117
|
}
|
|
@@ -2058,18 +2125,19 @@ button.crumb-label > .crumb-text {
|
|
|
2058
2125
|
and the pinned cells (`inset-inline-end: 0` above) reach over that track
|
|
2059
2126
|
to end with their row, then stop at the scroller's edge, its end inset
|
|
2060
2127
|
inside the scrollport, whichever box scrolls them. */
|
|
2061
|
-
:where(.listing-root
|
|
2128
|
+
.pane-listing.pane-pin-end:where(.listing-root, .listing-root *):where([role='table']) {
|
|
2062
2129
|
grid-template-columns:
|
|
2063
2130
|
var(--pane-grid, var(--icon-column) minmax(min(var(--pane-name-floor), 100%), 1fr))
|
|
2064
2131
|
var(--pane-row-inset);
|
|
2065
2132
|
padding-inline-end: 0;
|
|
2066
2133
|
}
|
|
2067
2134
|
|
|
2068
|
-
:where(.
|
|
2135
|
+
:where(.pane-listing.pane-pin-end:is(.listing-root, .listing-root *)[role='table']) > * {
|
|
2069
2136
|
margin-inline-end: 0;
|
|
2070
2137
|
}
|
|
2071
2138
|
|
|
2072
|
-
:where(.
|
|
2139
|
+
:where(.pane-listing.pane-pin-end:is(.listing-root, .listing-root *)[role='table'])
|
|
2140
|
+
> :is(.row, .pane-columns) {
|
|
2073
2141
|
padding-inline-end: 0;
|
|
2074
2142
|
}
|
|
2075
2143
|
|
|
@@ -2080,12 +2148,14 @@ button.crumb-label > .crumb-text {
|
|
|
2080
2148
|
the cells, so a listing that fits, or one scrolled to its end, keeps its
|
|
2081
2149
|
last column whole. */
|
|
2082
2150
|
@supports (animation-timeline: scroll()) {
|
|
2083
|
-
:where(.
|
|
2151
|
+
:where(.pane-listing.pane-pin-end:is(.listing-root, .listing-root *))
|
|
2152
|
+
> :is(.row, .pane-columns)
|
|
2153
|
+
> :last-child {
|
|
2084
2154
|
animation: uiok-pane-pin-edge linear both;
|
|
2085
2155
|
animation-timeline: scroll(nearest inline);
|
|
2086
2156
|
}
|
|
2087
2157
|
|
|
2088
|
-
:where(.
|
|
2158
|
+
:where(.pane-listing.pane-pin-end:is(.listing-root, .listing-root *))
|
|
2089
2159
|
> :is(.row, .pane-columns)
|
|
2090
2160
|
> :last-child::before {
|
|
2091
2161
|
content: '';
|
|
@@ -2104,8 +2174,8 @@ button.crumb-label > .crumb-text {
|
|
|
2104
2174
|
|
|
2105
2175
|
/* Right to left the columns before the cell lie on its right. */
|
|
2106
2176
|
:where(
|
|
2107
|
-
[dir='rtl'] .
|
|
2108
|
-
.listing-root[dir='rtl'] .pane-listing.pane-pin-end
|
|
2177
|
+
[dir='rtl'] .pane-listing.pane-pin-end:is(.listing-root, .listing-root *),
|
|
2178
|
+
:is(.listing-root[dir='rtl'], .listing-root[dir='rtl'] *).pane-listing.pane-pin-end
|
|
2109
2179
|
)
|
|
2110
2180
|
> :is(.row, .pane-columns)
|
|
2111
2181
|
> :last-child::before {
|
|
@@ -2460,3 +2530,96 @@ button.crumb-label > .crumb-text {
|
|
|
2460
2530
|
:where(:root[data-window-inactive] .listing-root) .pane.active::before {
|
|
2461
2531
|
border-color: var(--border-strong);
|
|
2462
2532
|
}
|
|
2533
|
+
|
|
2534
|
+
/* A row that stands out from its peers (Row's `emphasis`): its name in the
|
|
2535
|
+
strong weight. */
|
|
2536
|
+
:where(.listing-root) .row.row-emphasis > .row-name {
|
|
2537
|
+
font-weight: var(--font-weight-strong);
|
|
2538
|
+
}
|
|
2539
|
+
|
|
2540
|
+
/* A row's span on a shared scale (TimelineCell): inside the cell's content
|
|
2541
|
+
box (after the column gap), a hairline for the wait from the scale's
|
|
2542
|
+
start to --timeline-start, then a bar to --timeline-end, the solid
|
|
2543
|
+
accent on the path that matters and the accent's line otherwise. Every
|
|
2544
|
+
row's cell fills the same column, so their bars share one scale. */
|
|
2545
|
+
:where(.listing-root) .row-meta.timeline-cell {
|
|
2546
|
+
display: flex;
|
|
2547
|
+
align-self: stretch;
|
|
2548
|
+
align-items: center;
|
|
2549
|
+
}
|
|
2550
|
+
|
|
2551
|
+
.timeline-track {
|
|
2552
|
+
position: relative;
|
|
2553
|
+
flex: 1;
|
|
2554
|
+
align-self: stretch;
|
|
2555
|
+
}
|
|
2556
|
+
|
|
2557
|
+
.timeline-wait,
|
|
2558
|
+
.timeline-bar {
|
|
2559
|
+
position: absolute;
|
|
2560
|
+
top: 50%;
|
|
2561
|
+
}
|
|
2562
|
+
|
|
2563
|
+
.timeline-wait {
|
|
2564
|
+
inset-inline-start: 0;
|
|
2565
|
+
inline-size: var(--timeline-start);
|
|
2566
|
+
height: var(--line);
|
|
2567
|
+
background: var(--border-strong);
|
|
2568
|
+
}
|
|
2569
|
+
|
|
2570
|
+
.timeline-bar {
|
|
2571
|
+
inset-inline-start: var(--timeline-start);
|
|
2572
|
+
inline-size: max(var(--line-strong), calc(var(--timeline-end) - var(--timeline-start)));
|
|
2573
|
+
height: var(--space-4);
|
|
2574
|
+
margin-top: calc(-1 * var(--space-2));
|
|
2575
|
+
border-radius: var(--radius-xs);
|
|
2576
|
+
background: var(--accent-line);
|
|
2577
|
+
}
|
|
2578
|
+
|
|
2579
|
+
.timeline-cell[data-emphasis] .timeline-bar {
|
|
2580
|
+
background: var(--accent);
|
|
2581
|
+
}
|
|
2582
|
+
|
|
2583
|
+
/* On a selected row the accent fill would swallow the accent bar and the
|
|
2584
|
+
wait's grey line, so both take the selection's words' tone, as the state
|
|
2585
|
+
dots do; the lighter bar keeps its step under the solid one. */
|
|
2586
|
+
:where(.listing-root)
|
|
2587
|
+
.row.selected:where(
|
|
2588
|
+
:not(
|
|
2589
|
+
:root[data-window-inactive] .listing-root *,
|
|
2590
|
+
.listing-root:has(.pane.active) .pane:not(.active, .active .pane) *
|
|
2591
|
+
)
|
|
2592
|
+
)
|
|
2593
|
+
.timeline-cell
|
|
2594
|
+
:is(.timeline-wait, .timeline-bar) {
|
|
2595
|
+
background: var(--on-selected-dim);
|
|
2596
|
+
}
|
|
2597
|
+
|
|
2598
|
+
:where(.listing-root)
|
|
2599
|
+
.row.selected:where(
|
|
2600
|
+
:not(
|
|
2601
|
+
:root[data-window-inactive] .listing-root *,
|
|
2602
|
+
.listing-root:has(.pane.active) .pane:not(.active, .active .pane) *
|
|
2603
|
+
)
|
|
2604
|
+
)
|
|
2605
|
+
.timeline-cell[data-emphasis]
|
|
2606
|
+
.timeline-bar {
|
|
2607
|
+
background: var(--on-selected);
|
|
2608
|
+
}
|
|
2609
|
+
|
|
2610
|
+
/* The ticks over the column (TimelineScale), each tick's words starting at
|
|
2611
|
+
its place on the same scale, in the strip's quiet tone. */
|
|
2612
|
+
.timeline-scale {
|
|
2613
|
+
position: relative;
|
|
2614
|
+
flex: 1;
|
|
2615
|
+
align-self: stretch;
|
|
2616
|
+
color: var(--text-dim);
|
|
2617
|
+
}
|
|
2618
|
+
|
|
2619
|
+
.timeline-tick {
|
|
2620
|
+
position: absolute;
|
|
2621
|
+
top: 50%;
|
|
2622
|
+
inset-inline-start: var(--timeline-at);
|
|
2623
|
+
transform: translateY(-50%);
|
|
2624
|
+
white-space: nowrap;
|
|
2625
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** The eight ANSI colours by name, in SGR order (30–37, 40–47; 90–97 and 100–107 are the same names). */
|
|
2
|
+
export declare const ANSI_COLOURS: readonly ["black", "red", "green", "yellow", "blue", "magenta", "cyan", "white"];
|
|
3
|
+
/** One of the eight ANSI colours. */
|
|
4
|
+
export type AnsiColour = (typeof ANSI_COLOURS)[number];
|
|
5
|
+
/** A run of text in one style. */
|
|
6
|
+
export interface AnsiSegment {
|
|
7
|
+
readonly text: string;
|
|
8
|
+
/** Its foreground colour; the line's own when absent. */
|
|
9
|
+
readonly fg?: AnsiColour;
|
|
10
|
+
/** Its background colour: a filled run (an `INFO` badge). */
|
|
11
|
+
readonly bg?: AnsiColour;
|
|
12
|
+
readonly bold?: boolean;
|
|
13
|
+
readonly dim?: boolean;
|
|
14
|
+
readonly italic?: boolean;
|
|
15
|
+
readonly underline?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* A log line's text as runs of one style each, read from its SGR escape
|
|
19
|
+
* sequences: the eight colours and their bright forms (as the same name),
|
|
20
|
+
* backgrounds, bold, dim, italic, underline, and inverse, each reset as
|
|
21
|
+
* SGR resets it, in the 7-bit form (`ESC [`) or the 8-bit one. Extended
|
|
22
|
+
* colours (256 and true colour) are skipped, and every other escape
|
|
23
|
+
* sequence, control string, 8-bit control, and cut-off escape is dropped, so the runs hold printable text alone. A line with no escape is
|
|
24
|
+
* one plain run. Linear in the text's length, and pure: the text is never
|
|
25
|
+
* read as markup.
|
|
26
|
+
*/
|
|
27
|
+
export declare function ansiSegments(text: string): readonly AnsiSegment[];
|