@jimka/typescript-ui 0.4.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/dist/lib/{AbstractBooleanInput-DSwKBAic.js → AbstractBooleanInput-CbW7ZrDT.js} +2 -2
- package/dist/lib/{AbstractBooleanInput-DSwKBAic.js.map → AbstractBooleanInput-CbW7ZrDT.js.map} +1 -1
- package/dist/lib/{AbstractInput-BmWGJTs1.js → AbstractInput-B10DfLOf.js} +2 -2
- package/dist/lib/{AbstractInput-BmWGJTs1.js.map → AbstractInput-B10DfLOf.js.map} +1 -1
- package/dist/lib/Anchor-BsblS5it.js +2 -0
- package/dist/lib/Anchor-BsblS5it.js.map +1 -0
- package/dist/lib/AnchorConstraints-Bfkt8019.js +2 -0
- package/dist/lib/AnchorConstraints-Bfkt8019.js.map +1 -0
- package/dist/lib/{AnimatedDropdown-DKas40B-.js → AnimatedDropdown-kL47HPGP.js} +2 -2
- package/dist/lib/{AnimatedDropdown-DKas40B-.js.map → AnimatedDropdown-kL47HPGP.js.map} +1 -1
- package/dist/lib/{Border-Bz29z-_7.js → Border-CNS6aEXB.js} +2 -2
- package/dist/lib/Border-CNS6aEXB.js.map +1 -0
- package/dist/lib/Button-T16zSZip.js +2 -0
- package/dist/lib/Button-T16zSZip.js.map +1 -0
- package/dist/lib/{Card-BdfbvOD_.js → Card-CD3jxshU.js} +2 -2
- package/dist/lib/{Card-BdfbvOD_.js.map → Card-CD3jxshU.js.map} +1 -1
- package/dist/lib/CodeEditor-BGlB232h.js +2 -0
- package/dist/lib/CodeEditor-BGlB232h.js.map +1 -0
- package/dist/lib/ComboBox-C9FYMuLv.js +2 -0
- package/dist/lib/ComboBox-C9FYMuLv.js.map +1 -0
- package/dist/lib/Component-w65rPK75.js +2 -0
- package/dist/lib/Component-w65rPK75.js.map +1 -0
- package/dist/lib/Container-C7RPLQEc.js +2 -0
- package/dist/lib/{Container-CAQpj4yb.js.map → Container-C7RPLQEc.js.map} +1 -1
- package/dist/lib/DOM-Ba8YRVel.js +2 -0
- package/dist/lib/{DOM-67StIm5G.js.map → DOM-Ba8YRVel.js.map} +1 -1
- package/dist/lib/DragManager-UvPHSoRm.js +2 -0
- package/dist/lib/{DragManager-CHWCe3-8.js.map → DragManager-UvPHSoRm.js.map} +1 -1
- package/dist/lib/{FieldDecorator-CgAGcqCk.js → FieldDecorator-HG65hEtk.js} +2 -2
- package/dist/lib/{FieldDecorator-CgAGcqCk.js.map → FieldDecorator-HG65hEtk.js.map} +1 -1
- package/dist/lib/{Fit-DIYt2aQB.js → Fit-Cg3dPyZg.js} +2 -2
- package/dist/lib/{Fit-DIYt2aQB.js.map → Fit-Cg3dPyZg.js.map} +1 -1
- package/dist/lib/FloatingPanel-D5buuVrQ.js +2 -0
- package/dist/lib/FloatingPanel-D5buuVrQ.js.map +1 -0
- package/dist/lib/{Glyph-CeAIWyPB.js → Glyph-DeJF_zsR.js} +2 -2
- package/dist/lib/{Glyph-CeAIWyPB.js.map → Glyph-DeJF_zsR.js.map} +1 -1
- package/dist/lib/{Grid-ViA0joow.js → Grid-BYBohJIA.js} +2 -2
- package/dist/lib/{Grid-ViA0joow.js.map → Grid-BYBohJIA.js.map} +1 -1
- package/dist/lib/{GridConstraints-B1rxCw9B.js → GridConstraints-Bts284FI.js} +2 -2
- package/dist/lib/{GridConstraints-B1rxCw9B.js.map → GridConstraints-Bts284FI.js.map} +1 -1
- package/dist/lib/{Header-mKaqgfat.js → Header-BIFJK9nR.js} +2 -2
- package/dist/lib/{Header-mKaqgfat.js.map → Header-BIFJK9nR.js.map} +1 -1
- package/dist/lib/{IconText-BqwXA82-.js → IconText-Dsb1xS-E.js} +2 -2
- package/dist/lib/{IconText-BqwXA82-.js.map → IconText-Dsb1xS-E.js.map} +1 -1
- package/dist/lib/LanguageRegistry-CcVnbKuh.js +2 -0
- package/dist/lib/LanguageRegistry-CcVnbKuh.js.map +1 -0
- package/dist/lib/LayoutConstraints-LIHYYd2F.js +2 -0
- package/dist/lib/LayoutConstraints-LIHYYd2F.js.map +1 -0
- package/dist/lib/LayoutSerialization-ySzY1h2l.js +2 -0
- package/dist/lib/{LayoutSerialization-D82UtnDD.js.map → LayoutSerialization-ySzY1h2l.js.map} +1 -1
- package/dist/lib/LayoutSizes-DKDK1Cle.js +2 -0
- package/dist/lib/LayoutSizes-DKDK1Cle.js.map +1 -0
- package/dist/lib/List-BPd-IXZR.js +2 -0
- package/dist/lib/{List-CUntS8ux.js.map → List-BPd-IXZR.js.map} +1 -1
- package/dist/lib/MemoryStore-BgP7-Uzn.js +2 -0
- package/dist/lib/{MemoryStore-DT6iWWco.js.map → MemoryStore-BgP7-Uzn.js.map} +1 -1
- package/dist/lib/Menu-C0roOCY7.js +2 -0
- package/dist/lib/Menu-C0roOCY7.js.map +1 -0
- package/dist/lib/MenuButton-BR4KOFld.js +2 -0
- package/dist/lib/MenuButton-BR4KOFld.js.map +1 -0
- package/dist/lib/Panel-CpNQTLNF.js +2 -0
- package/dist/lib/{Panel-D2X33qR6.js.map → Panel-CpNQTLNF.js.map} +1 -1
- package/dist/lib/{Position-Ck_KD4cR.js → Position-PBVBW1JS.js} +2 -2
- package/dist/lib/{Position-Ck_KD4cR.js.map → Position-PBVBW1JS.js.map} +1 -1
- package/dist/lib/{ProgressSpinner-DCyq02pd.js → ProgressSpinner-lAsK26C-.js} +2 -2
- package/dist/lib/{ProgressSpinner-DCyq02pd.js.map → ProgressSpinner-lAsK26C-.js.map} +1 -1
- package/dist/lib/RadioButton-CCcIaL54.js +2 -0
- package/dist/lib/RadioButton-CCcIaL54.js.map +1 -0
- package/dist/lib/{RovingTabIndex-DFJyoveq.js → RovingTabIndex-C2Vzq0IX.js} +2 -2
- package/dist/lib/{RovingTabIndex-DFJyoveq.js.map → RovingTabIndex-C2Vzq0IX.js.map} +1 -1
- package/dist/lib/Scrollbar-C3ZZyZ1e.js +2 -0
- package/dist/lib/Scrollbar-C3ZZyZ1e.js.map +1 -0
- package/dist/lib/Slider-DZ9drUxn.js +2 -0
- package/dist/lib/Slider-DZ9drUxn.js.map +1 -0
- package/dist/lib/Spacer-SDhOMp2g.js +2 -0
- package/dist/lib/{Spacer-D159iJy9.js.map → Spacer-SDhOMp2g.js.map} +1 -1
- package/dist/lib/TabButton-DNo4ZgV8.js +2 -0
- package/dist/lib/TabButton-DNo4ZgV8.js.map +1 -0
- package/dist/lib/Text-CdHf3B-1.js +2 -0
- package/dist/lib/Text-CdHf3B-1.js.map +1 -0
- package/dist/lib/{Tooltip-DzK6LxUt.js → Tooltip-B_UF5bXD.js} +2 -2
- package/dist/lib/{Tooltip-DzK6LxUt.js.map → Tooltip-B_UF5bXD.js.map} +1 -1
- package/dist/lib/Tree-C7qLbIYH.js +2 -0
- package/dist/lib/Tree-C7qLbIYH.js.map +1 -0
- package/dist/lib/VBox-32fxpkDl.js +2 -0
- package/dist/lib/VBox-32fxpkDl.js.map +1 -0
- package/dist/lib/{Validator-Du8PqS5i.js → Validator-Cjs1EU5Q.js} +2 -2
- package/dist/lib/{Validator-Du8PqS5i.js.map → Validator-Cjs1EU5Q.js.map} +1 -1
- package/dist/lib/{VirtualScroller-zQr-vKrO.js → VirtualScroller-cvFNMS7U.js} +2 -2
- package/dist/lib/{VirtualScroller-zQr-vKrO.js.map → VirtualScroller-cvFNMS7U.js.map} +1 -1
- package/dist/lib/component/button.es.js +1 -1
- package/dist/lib/component/button.es.js.map +1 -1
- package/dist/lib/component/chart.es.js +1 -1
- package/dist/lib/component/chart.es.js.map +1 -1
- package/dist/lib/component/container.es.js +1 -1
- package/dist/lib/component/container.es.js.map +1 -1
- package/dist/lib/component/diagram.es.js +1 -1
- package/dist/lib/component/diagram.es.js.map +1 -1
- package/dist/lib/component/display.es.js +1 -1
- package/dist/lib/component/display.es.js.map +1 -1
- package/dist/lib/component/editor.es.js +3 -3
- package/dist/lib/component/editor.es.js.map +1 -1
- package/dist/lib/component/input.es.js +1 -1
- package/dist/lib/component/input.es.js.map +1 -1
- package/dist/lib/component/list.es.js +1 -1
- package/dist/lib/component/list.es.js.map +1 -1
- package/dist/lib/component/menubar.es.js +1 -1
- package/dist/lib/component/menubar.es.js.map +1 -1
- package/dist/lib/component/table.es.js +2 -2
- package/dist/lib/component/table.es.js.map +1 -1
- package/dist/lib/component/tree.es.js +1 -1
- package/dist/lib/component/tree.es.js.map +1 -1
- package/dist/lib/core.es.js +1 -1
- package/dist/lib/core.es.js.map +1 -1
- package/dist/lib/data.es.js +1 -1
- package/dist/lib/glyphs/solid/index.es.js +1 -1
- package/dist/lib/languages-Dl8qdL8a.js +2 -0
- package/dist/lib/languages-Dl8qdL8a.js.map +1 -0
- package/dist/lib/layout.es.js +1 -1
- package/dist/lib/layout.es.js.map +1 -1
- package/dist/lib/overlay.es.js +1 -1
- package/dist/lib/overlay.es.js.map +1 -1
- package/dist/lib/primitive.es.js +1 -1
- package/dist/lib/router.es.js +1 -1
- package/dist/lib/router.es.js.map +1 -1
- package/dist/lib/selectionsEqual-BrTxPMmK.js +2 -0
- package/dist/lib/{selectionsEqual-4r5R7pTK.js.map → selectionsEqual-BrTxPMmK.js.map} +1 -1
- package/dist/lib/types/component/button/MenuButton.d.ts +1 -0
- package/dist/lib/types/component/button/SplitButton.d.ts +1 -0
- package/dist/lib/types/component/button/TabButton.d.ts +2 -1
- package/dist/lib/types/component/button/ToggleButton.d.ts +1 -1
- package/dist/lib/types/component/chart/ChartLegend.d.ts +1 -2
- package/dist/lib/types/component/container/CollapseButton.d.ts +0 -1
- package/dist/lib/types/component/container/FloatingPanel.d.ts +23 -0
- package/dist/lib/types/component/container/ScrollStrip.d.ts +1 -1
- package/dist/lib/types/component/container/Scrollbar.d.ts +1 -3
- package/dist/lib/types/component/container/TabBar.d.ts +1 -1
- package/dist/lib/types/component/container/TabPanel.d.ts +3 -0
- package/dist/lib/types/component/container/index.d.ts +2 -0
- package/dist/lib/types/component/diagram/DiagramGroupNode.d.ts +1 -1
- package/dist/lib/types/component/display/Markdown.d.ts +42 -1
- package/dist/lib/types/component/display/MarkdownMinimap.d.ts +38 -0
- package/dist/lib/types/component/display/MarkdownViewer.d.ts +60 -0
- package/dist/lib/types/component/display/index.d.ts +6 -0
- package/dist/lib/types/component/editor/CodeEditor.d.ts +13 -0
- package/dist/lib/types/component/editor/index.d.ts +1 -1
- package/dist/lib/types/component/input/Checkbox.d.ts +1 -1
- package/dist/lib/types/component/input/Link.d.ts +0 -1
- package/dist/lib/types/component/input/RadioButton.d.ts +1 -1
- package/dist/lib/types/component/input/Slider.d.ts +1 -1
- package/dist/lib/types/component/input/Text.d.ts +0 -2
- package/dist/lib/types/component/input/Toggle.d.ts +1 -1
- package/dist/lib/types/component/menubar/MenuBar.d.ts +2 -1
- package/dist/lib/types/component/menubar/MenuBarButton.d.ts +0 -1
- package/dist/lib/types/component/menubar/ToolBar.d.ts +2 -0
- package/dist/lib/types/component/table/Body.d.ts +1 -0
- package/dist/lib/types/component/table/Table.d.ts +1 -0
- package/dist/lib/types/component/table/cell/SortPriorityBadge.d.ts +1 -1
- package/dist/lib/types/component/table/cell/editor/CellEditorPool.d.ts +1 -0
- package/dist/lib/types/component/table/cell/editor/Date.d.ts +1 -0
- package/dist/lib/types/component/table/cell/editor/DateTime.d.ts +1 -0
- package/dist/lib/types/component/table/cell/editor/Time.d.ts +1 -0
- package/dist/lib/types/component/tree/Tree.d.ts +9 -1
- package/dist/lib/types/component/tree/index.d.ts +1 -1
- package/dist/lib/types/component/tree/renderer/Label.d.ts +1 -1
- package/dist/lib/types/core/BorderWidths.d.ts +12 -0
- package/dist/lib/types/core/Component.d.ts +6 -0
- package/dist/lib/types/core/Event.d.ts +2 -0
- package/dist/lib/types/core/Theme.d.ts +4 -2
- package/dist/lib/types/layout/LayoutConstraints.d.ts +1 -0
- package/dist/lib/types/layout/LayoutManager.d.ts +8 -0
- package/dist/lib/types/layout/LayoutSerialization.d.ts +3 -0
- package/dist/lib/types/overlay/Dock.d.ts +1 -0
- package/dist/lib/validation.es.js +1 -1
- package/llms.txt +3 -0
- package/package.json +15 -15
- package/dist/lib/AnchorConstraints-CVrMP9rz.js +0 -2
- package/dist/lib/AnchorConstraints-CVrMP9rz.js.map +0 -1
- package/dist/lib/Border-Bz29z-_7.js.map +0 -1
- package/dist/lib/Button-bjpWruNc.js +0 -2
- package/dist/lib/Button-bjpWruNc.js.map +0 -1
- package/dist/lib/ComboBox-CBw2VLLN.js +0 -2
- package/dist/lib/ComboBox-CBw2VLLN.js.map +0 -1
- package/dist/lib/Component-DHqrPwAw.js +0 -2
- package/dist/lib/Component-DHqrPwAw.js.map +0 -1
- package/dist/lib/Container-CAQpj4yb.js +0 -2
- package/dist/lib/DOM-67StIm5G.js +0 -2
- package/dist/lib/DragManager-CHWCe3-8.js +0 -2
- package/dist/lib/LayoutConstraints-DkctJZXB.js +0 -2
- package/dist/lib/LayoutConstraints-DkctJZXB.js.map +0 -1
- package/dist/lib/LayoutSerialization-D82UtnDD.js +0 -2
- package/dist/lib/LayoutSizes-DG9aW9k6.js +0 -2
- package/dist/lib/LayoutSizes-DG9aW9k6.js.map +0 -1
- package/dist/lib/List-CUntS8ux.js +0 -2
- package/dist/lib/MemoryStore-DT6iWWco.js +0 -2
- package/dist/lib/Menu-B_-SQj72.js +0 -2
- package/dist/lib/Menu-B_-SQj72.js.map +0 -1
- package/dist/lib/MenuButton-C79l8Ysf.js +0 -2
- package/dist/lib/MenuButton-C79l8Ysf.js.map +0 -1
- package/dist/lib/Panel-D2X33qR6.js +0 -2
- package/dist/lib/RadioButton-BJIAQkII.js +0 -2
- package/dist/lib/RadioButton-BJIAQkII.js.map +0 -1
- package/dist/lib/Scrollbar-CSFK-Y57.js +0 -2
- package/dist/lib/Scrollbar-CSFK-Y57.js.map +0 -1
- package/dist/lib/Slider-C-kQQYCj.js +0 -2
- package/dist/lib/Slider-C-kQQYCj.js.map +0 -1
- package/dist/lib/Spacer-D159iJy9.js +0 -2
- package/dist/lib/TabButton-CHkXBgCj.js +0 -2
- package/dist/lib/TabButton-CHkXBgCj.js.map +0 -1
- package/dist/lib/Text-D5pg7taZ.js +0 -2
- package/dist/lib/Text-D5pg7taZ.js.map +0 -1
- package/dist/lib/VBox-BNegDPs_.js +0 -2
- package/dist/lib/VBox-BNegDPs_.js.map +0 -1
- package/dist/lib/selectionsEqual-4r5R7pTK.js +0 -2
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { FloatingPanel, FloatingPanelOptions } from "../../component/container/FloatingPanel.js";
|
|
2
|
+
import type { Size } from "../../primitive/Size.js";
|
|
3
|
+
import type { MarkdownHeading } from "../../component/display/Markdown.js";
|
|
4
|
+
export interface HeadingScrollSource {
|
|
5
|
+
on(event: "activeheadingchange", listener: (headingId: string | null) => void): unknown;
|
|
6
|
+
off(event: "activeheadingchange", listener: (headingId: string | null) => void): unknown;
|
|
7
|
+
}
|
|
8
|
+
export type MarkdownMinimapEvent = "select";
|
|
9
|
+
export interface MarkdownMinimapOptions extends FloatingPanelOptions {
|
|
10
|
+
maxHeadingDepth?: number;
|
|
11
|
+
scrollSource?: HeadingScrollSource;
|
|
12
|
+
listeners?: {
|
|
13
|
+
select?: (headingId: string) => void;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
declare class MarkdownMinimap extends FloatingPanel<MarkdownMinimapOptions> {
|
|
17
|
+
private readonly _tree;
|
|
18
|
+
private readonly _listeners;
|
|
19
|
+
private readonly _scrollSource;
|
|
20
|
+
private _nodesById;
|
|
21
|
+
private _nearestShown;
|
|
22
|
+
private readonly handleSelection;
|
|
23
|
+
private readonly handleActiveHeadingChange;
|
|
24
|
+
constructor(options?: MarkdownMinimapOptions, subclassDefaults?: Partial<MarkdownMinimapOptions>);
|
|
25
|
+
getPreferredSize(): Size | null;
|
|
26
|
+
protected applyOptions(options: MarkdownMinimapOptions): this;
|
|
27
|
+
getMaxHeadingDepth(): number;
|
|
28
|
+
setHeadings(headings: MarkdownHeading[]): this;
|
|
29
|
+
on(event: "select", listener: (headingId: string) => void): this;
|
|
30
|
+
off(event: "select", listener: (headingId: string) => void): this;
|
|
31
|
+
protected emit(event: "select", headingId: string): void;
|
|
32
|
+
private onTreeSelection;
|
|
33
|
+
private applyActiveHeading;
|
|
34
|
+
protected destructor(): void;
|
|
35
|
+
}
|
|
36
|
+
declare const MarkdownMinimapCallable: import("../../core/Callable.js").Callable<typeof MarkdownMinimap>;
|
|
37
|
+
type MarkdownMinimapCallable = MarkdownMinimap;
|
|
38
|
+
export { MarkdownMinimap as _MarkdownMinimap, MarkdownMinimapCallable as MarkdownMinimap, };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Panel, PanelOptions } from "../../core/Panel.js";
|
|
2
|
+
import { Markdown } from "../../component/display/Markdown.js";
|
|
3
|
+
import type { MarkdownLinkResolver } from "../../component/display/Markdown.js";
|
|
4
|
+
import type { HeadingScrollSource } from "../../component/display/MarkdownMinimap.js";
|
|
5
|
+
export interface MarkdownViewerOptions extends PanelOptions {
|
|
6
|
+
markdown?: string;
|
|
7
|
+
linkResolver?: MarkdownLinkResolver;
|
|
8
|
+
maxHeadingDepth?: number;
|
|
9
|
+
showMinimap?: boolean;
|
|
10
|
+
showControls?: boolean;
|
|
11
|
+
listeners?: {
|
|
12
|
+
activeheadingchange?: (headingId: string | null) => void;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
declare class MarkdownViewer extends Panel<MarkdownViewerOptions> implements HeadingScrollSource {
|
|
16
|
+
private readonly _markdown;
|
|
17
|
+
private readonly _minimap;
|
|
18
|
+
private _controls;
|
|
19
|
+
private _narrowerBtn;
|
|
20
|
+
private _widerBtn;
|
|
21
|
+
private _zoomOutBtn;
|
|
22
|
+
private _zoomInBtn;
|
|
23
|
+
private _resetBtn;
|
|
24
|
+
private _headings;
|
|
25
|
+
private _widthIndex;
|
|
26
|
+
private _zoomIndex;
|
|
27
|
+
private _lastActiveHeadingId;
|
|
28
|
+
private _pendingClickScrollTop;
|
|
29
|
+
private readonly _listeners;
|
|
30
|
+
private readonly handleNativeScroll;
|
|
31
|
+
private readonly handleMinimapSelect;
|
|
32
|
+
private readonly _onNarrower;
|
|
33
|
+
private readonly _onWider;
|
|
34
|
+
private readonly _onZoomOut;
|
|
35
|
+
private readonly _onZoomIn;
|
|
36
|
+
private readonly _onReset;
|
|
37
|
+
constructor(options?: MarkdownViewerOptions, subclassDefaults?: Partial<MarkdownViewerOptions>);
|
|
38
|
+
doLayout(): this;
|
|
39
|
+
protected applyOptions(options: MarkdownViewerOptions): this;
|
|
40
|
+
getMarkdown(): Markdown;
|
|
41
|
+
setMarkdown(markdown: string): this;
|
|
42
|
+
isMinimapVisible(): boolean;
|
|
43
|
+
setMinimapVisible(value: boolean): this;
|
|
44
|
+
isControlsVisible(): boolean;
|
|
45
|
+
setControlsVisible(value: boolean): this;
|
|
46
|
+
on(event: "activeheadingchange", listener: (headingId: string | null) => void): this;
|
|
47
|
+
off(event: "activeheadingchange", listener: (headingId: string | null) => void): this;
|
|
48
|
+
protected emit(event: "activeheadingchange", headingId: string | null): void;
|
|
49
|
+
private buildControls;
|
|
50
|
+
private makeControlButton;
|
|
51
|
+
private wireControlListeners;
|
|
52
|
+
private stepWidth;
|
|
53
|
+
private stepZoom;
|
|
54
|
+
private resetViewerProperties;
|
|
55
|
+
private onNativeScroll;
|
|
56
|
+
private scrollToHeading;
|
|
57
|
+
}
|
|
58
|
+
declare const MarkdownViewerCallable: import("../../core/Callable.js").Callable<typeof MarkdownViewer>;
|
|
59
|
+
type MarkdownViewerCallable = MarkdownViewer;
|
|
60
|
+
export { MarkdownViewer as _MarkdownViewer, MarkdownViewerCallable as MarkdownViewer, };
|
|
@@ -13,6 +13,12 @@ export { IconText } from '../../component/display/IconText.js';
|
|
|
13
13
|
export type { IconTextOptions } from '../../component/display/IconText.js';
|
|
14
14
|
export { Markdown } from '../../component/display/Markdown.js';
|
|
15
15
|
export type { MarkdownOptions, MarkdownLinkResolution, MarkdownLinkResolver } from '../../component/display/Markdown.js';
|
|
16
|
+
export { extractMarkdownHeadings, findActiveHeading } from '../../component/display/Markdown.js';
|
|
17
|
+
export type { MarkdownHeading } from '../../component/display/Markdown.js';
|
|
18
|
+
export { MarkdownMinimap } from '../../component/display/MarkdownMinimap.js';
|
|
19
|
+
export type { MarkdownMinimapOptions, MarkdownMinimapEvent, HeadingScrollSource } from '../../component/display/MarkdownMinimap.js';
|
|
20
|
+
export { MarkdownViewer } from '../../component/display/MarkdownViewer.js';
|
|
21
|
+
export type { MarkdownViewerOptions } from '../../component/display/MarkdownViewer.js';
|
|
16
22
|
export { IconLabel } from '../../component/display/IconLabel.js';
|
|
17
23
|
export type { IconLabelOptions } from '../../component/display/IconLabel.js';
|
|
18
24
|
export { ProgressBar } from '../../component/display/ProgressBar.js';
|
|
@@ -3,13 +3,18 @@ import type { Handle } from "../../core/DOM.js";
|
|
|
3
3
|
export interface CodeEditorChange {
|
|
4
4
|
value: string;
|
|
5
5
|
}
|
|
6
|
+
export interface CodeEditorHeightChange {
|
|
7
|
+
height: number;
|
|
8
|
+
}
|
|
6
9
|
export interface CodeEditorOptions extends ComponentOptions {
|
|
7
10
|
value?: string;
|
|
8
11
|
language?: string;
|
|
9
12
|
readOnly?: boolean;
|
|
13
|
+
autoHeightMaxRows?: number;
|
|
10
14
|
listeners?: {
|
|
11
15
|
change?: (payload: CodeEditorChange) => void;
|
|
12
16
|
readonlyedit?: () => void;
|
|
17
|
+
heightchange?: (payload: CodeEditorHeightChange) => void;
|
|
13
18
|
};
|
|
14
19
|
}
|
|
15
20
|
declare class CodeEditor extends Component<CodeEditorOptions> {
|
|
@@ -22,6 +27,9 @@ declare class CodeEditor extends Component<CodeEditorOptions> {
|
|
|
22
27
|
private readonly _listeners;
|
|
23
28
|
private readonly _unsubscribeTheme;
|
|
24
29
|
private _scrollElement;
|
|
30
|
+
private _contentElement;
|
|
31
|
+
private _lastSyncedShape;
|
|
32
|
+
private _lastHbarReserve;
|
|
25
33
|
constructor(value?: string, options?: CodeEditorOptions, subclassDefaults?: Partial<CodeEditorOptions>);
|
|
26
34
|
protected applyOptions(options: CodeEditorOptions): this;
|
|
27
35
|
getValue(): string;
|
|
@@ -30,19 +38,24 @@ declare class CodeEditor extends Component<CodeEditorOptions> {
|
|
|
30
38
|
setLanguage(id: string | null): this;
|
|
31
39
|
getReadOnly(): boolean;
|
|
32
40
|
setReadOnly(readOnly: boolean): this;
|
|
41
|
+
getAutoHeightMaxRows(): number | null;
|
|
33
42
|
focus(preventScroll?: boolean): this;
|
|
34
43
|
moveCursorToEnd(): this;
|
|
35
44
|
format(): Promise<void>;
|
|
36
45
|
private reindentFallback;
|
|
37
46
|
on(event: "change", listener: (payload: CodeEditorChange) => void): this;
|
|
38
47
|
on(event: "readonlyedit", listener: () => void): this;
|
|
48
|
+
on(event: "heightchange", listener: (payload: CodeEditorHeightChange) => void): this;
|
|
39
49
|
off(event: "change", listener: (payload: CodeEditorChange) => void): this;
|
|
40
50
|
off(event: "readonlyedit", listener: () => void): this;
|
|
51
|
+
off(event: "heightchange", listener: (payload: CodeEditorHeightChange) => void): this;
|
|
41
52
|
protected emit(event: "change", payload: CodeEditorChange): void;
|
|
42
53
|
protected emit(event: "readonlyedit"): void;
|
|
54
|
+
protected emit(event: "heightchange", payload: CodeEditorHeightChange): void;
|
|
43
55
|
protected destructor(): void;
|
|
44
56
|
protected getScrollElement(): Handle | undefined;
|
|
45
57
|
private mount;
|
|
58
|
+
private syncAutoHeight;
|
|
46
59
|
private mountFlashOverlay;
|
|
47
60
|
private onThemeChange;
|
|
48
61
|
private onEditIntent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../component/editor/languages.js';
|
|
2
2
|
export { CodeEditor } from '../../component/editor/CodeEditor.js';
|
|
3
|
-
export type { CodeEditorOptions, CodeEditorChange } from '../../component/editor/CodeEditor.js';
|
|
3
|
+
export type { CodeEditorOptions, CodeEditorChange, CodeEditorHeightChange } from '../../component/editor/CodeEditor.js';
|
|
4
4
|
export { registerLanguage, getLanguage, listLanguages } from '../../component/editor/LanguageRegistry.js';
|
|
5
5
|
export type { LanguageDefinition, Formatter } from '../../component/editor/LanguageRegistry.js';
|
|
6
6
|
export { MarkdownEditor } from '../../component/editor/MarkdownEditor.js';
|
|
@@ -15,7 +15,7 @@ declare class Checkbox<TOptions extends CheckboxOptions = CheckboxOptions> exten
|
|
|
15
15
|
private _box;
|
|
16
16
|
private _check;
|
|
17
17
|
private _dash;
|
|
18
|
-
constructor(options?:
|
|
18
|
+
constructor(options?: CheckboxOptions, subclassDefaults?: Partial<CheckboxOptions>);
|
|
19
19
|
protected applyOptions(options: TOptions): this;
|
|
20
20
|
protected activate(): void;
|
|
21
21
|
protected getInteractiveSurface(): Component;
|
|
@@ -15,7 +15,6 @@ declare class Link extends Text<LinkOptions> {
|
|
|
15
15
|
on(event: "action", listener: ClickListener): this;
|
|
16
16
|
off(event: "action", listener: ClickListener): this;
|
|
17
17
|
click(): this;
|
|
18
|
-
protected destructor(): void;
|
|
19
18
|
private handleKeyDown;
|
|
20
19
|
}
|
|
21
20
|
declare const LinkCallable: import("../../core/Callable.js").Callable<typeof Link>;
|
|
@@ -15,7 +15,7 @@ export interface RadioButtonOptions extends AbstractBooleanInputOptions {
|
|
|
15
15
|
declare class RadioButton<TOptions extends RadioButtonOptions = RadioButtonOptions> extends AbstractBooleanInput<TOptions> {
|
|
16
16
|
private _ring;
|
|
17
17
|
private _dot;
|
|
18
|
-
constructor(text?: string, options?:
|
|
18
|
+
constructor(text?: string, options?: RadioButtonOptions, subclassDefaults?: Partial<RadioButtonOptions>);
|
|
19
19
|
protected applyOptions(options: TOptions): this;
|
|
20
20
|
protected activate(): void;
|
|
21
21
|
protected getInteractiveSurface(): Component;
|
|
@@ -22,7 +22,7 @@ declare class Slider<TOptions extends SliderOptions = SliderOptions> extends Abs
|
|
|
22
22
|
private _activeTrack;
|
|
23
23
|
private _thumb;
|
|
24
24
|
private _draggingPointer;
|
|
25
|
-
constructor(options?:
|
|
25
|
+
constructor(options?: SliderOptions, subclassDefaults?: Partial<SliderOptions>);
|
|
26
26
|
protected applyOptions(options: TOptions): this;
|
|
27
27
|
getValue(): number;
|
|
28
28
|
setValue(value: number): this;
|
|
@@ -32,8 +32,6 @@ declare class Text<TOptions extends TextOptions = TextOptions> extends Component
|
|
|
32
32
|
private _measuredGeneration;
|
|
33
33
|
private _wordBreak;
|
|
34
34
|
private _lineClamp;
|
|
35
|
-
private _textOverflow;
|
|
36
|
-
private _truncate;
|
|
37
35
|
constructor(text?: String, options?: NoInfer<TOptions>, subclassDefaults?: Partial<TOptions>);
|
|
38
36
|
protected applyOptions(options: TOptions): this;
|
|
39
37
|
private readThemeLineHeightPx;
|
|
@@ -6,7 +6,7 @@ export interface ToggleOptions extends AbstractBooleanInputOptions {
|
|
|
6
6
|
declare class Toggle<TOptions extends ToggleOptions = ToggleOptions> extends AbstractBooleanInput<TOptions> {
|
|
7
7
|
private _track;
|
|
8
8
|
private _thumb;
|
|
9
|
-
constructor(options?:
|
|
9
|
+
constructor(options?: ToggleOptions, subclassDefaults?: Partial<ToggleOptions>);
|
|
10
10
|
protected applyOptions(options: TOptions): this;
|
|
11
11
|
protected activate(): void;
|
|
12
12
|
protected getInteractiveSurface(): Component;
|
|
@@ -10,8 +10,9 @@ declare class MenuBar extends Component {
|
|
|
10
10
|
private _quickSwitchActive;
|
|
11
11
|
private _keydownListening;
|
|
12
12
|
private readonly _onKeyDown;
|
|
13
|
-
constructor(options?: MenuBarOptions);
|
|
13
|
+
constructor(options?: MenuBarOptions, subclassDefaults?: Partial<MenuBarOptions>);
|
|
14
14
|
setMenus(menus: MenuConfig[]): this;
|
|
15
|
+
protected destructor(): void;
|
|
15
16
|
openMenu(index: number): this;
|
|
16
17
|
closeMenu(): this;
|
|
17
18
|
getOpenIndex(): number;
|
|
@@ -11,7 +11,6 @@ declare class MenuBarButton extends Button<MenuBarButtonOptions> {
|
|
|
11
11
|
height: number;
|
|
12
12
|
};
|
|
13
13
|
setActive(active: boolean): this;
|
|
14
|
-
protected destructor(): void;
|
|
15
14
|
}
|
|
16
15
|
declare const MenuBarButtonCallable: import("../../core/Callable.js").Callable<typeof MenuBarButton>;
|
|
17
16
|
type MenuBarButtonCallable = MenuBarButton;
|
|
@@ -24,6 +24,7 @@ declare class ToolBar<TOptions extends ToolBarOptions = ToolBarOptions> extends
|
|
|
24
24
|
constructor(options?: ToolBarOptions, subclassDefaults?: Partial<ToolBarOptions>);
|
|
25
25
|
protected applyOptions(options: TOptions): this;
|
|
26
26
|
setOrientation(value: AxisOrientation): this;
|
|
27
|
+
private applyOrientation;
|
|
27
28
|
getOrientation(): AxisOrientation;
|
|
28
29
|
setCompact(value: boolean): this;
|
|
29
30
|
isCompact(): boolean;
|
|
@@ -39,6 +40,7 @@ declare class ToolBar<TOptions extends ToolBarOptions = ToolBarOptions> extends
|
|
|
39
40
|
doLayout(): this;
|
|
40
41
|
private _reflowOverflow;
|
|
41
42
|
private _computeOverflowed;
|
|
43
|
+
protected destructor(): void;
|
|
42
44
|
private _toggleOverflowMenu;
|
|
43
45
|
}
|
|
44
46
|
declare const ToolBarCallable: import("../../core/Callable.js").Callable<typeof ToolBar>;
|
|
@@ -75,6 +75,7 @@ declare class Body extends VirtualRowView<Row> {
|
|
|
75
75
|
protected onScrollerTick(): void;
|
|
76
76
|
private onFocus;
|
|
77
77
|
getEditorPool(): CellEditorPool;
|
|
78
|
+
protected destructor(): void;
|
|
78
79
|
doLayout(): this;
|
|
79
80
|
renderWindow(bodyWidth?: number, columnWidths?: number[]): void;
|
|
80
81
|
private renderWindowPass;
|
|
@@ -88,6 +88,7 @@ declare class Table extends Component<TableOptions> {
|
|
|
88
88
|
private rotatedCellType;
|
|
89
89
|
private rotatedCellValues;
|
|
90
90
|
private bindView;
|
|
91
|
+
protected destructor(): void;
|
|
91
92
|
private showColumnMenu;
|
|
92
93
|
setExportMenuEnabled(enabled: boolean): this;
|
|
93
94
|
exportCSV(options?: ExportOptions): void;
|
|
@@ -5,7 +5,7 @@ interface SortPriorityBadgeOptions extends ComponentOptions {
|
|
|
5
5
|
}
|
|
6
6
|
declare class SortPriorityBadge extends Component<SortPriorityBadgeOptions> {
|
|
7
7
|
private _priority;
|
|
8
|
-
constructor(options?: SortPriorityBadgeOptions);
|
|
8
|
+
constructor(options?: SortPriorityBadgeOptions, subclassDefaults?: Partial<SortPriorityBadgeOptions>);
|
|
9
9
|
protected applyOptions(options: SortPriorityBadgeOptions): this;
|
|
10
10
|
protected render(): Handle;
|
|
11
11
|
getPriority(): number | null;
|
|
@@ -7,6 +7,7 @@ declare class DateTimeEditor extends TextInputCellEditor<Date | null> {
|
|
|
7
7
|
private _animated;
|
|
8
8
|
private _text;
|
|
9
9
|
constructor(showSeconds?: boolean);
|
|
10
|
+
protected destructor(): void;
|
|
10
11
|
retainsFocus(relatedTarget: Handle | null): boolean;
|
|
11
12
|
isEmpty(): boolean;
|
|
12
13
|
getValue(): Date | null;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { ComponentOptions } from "../../core/Component.js";
|
|
2
2
|
import type { Handle } from "../../core/DOM.js";
|
|
3
|
+
import type { Size } from "../../primitive/Size.js";
|
|
3
4
|
import { VirtualRowView } from "../../component/shared/VirtualRowView.js";
|
|
4
5
|
import { TreeNode } from "../../component/tree/TreeNode.js";
|
|
5
6
|
import { TreeRow } from "../../component/tree/TreeRow.js";
|
|
6
7
|
import { TreeNodeRenderer } from "../../component/tree/TreeNodeRenderer.js";
|
|
7
8
|
export type TreeEvent = "selection" | "loaderror" | "contextmenu" | "dblclick";
|
|
9
|
+
export type TreeRowOverflow = "scroll" | "clip";
|
|
8
10
|
export interface TreeOptions extends ComponentOptions {
|
|
11
|
+
rowOverflow?: TreeRowOverflow;
|
|
9
12
|
listeners?: {
|
|
10
13
|
selection?: (nodes: TreeNode[]) => void;
|
|
11
14
|
loaderror?: (node: TreeNode, error: unknown) => void;
|
|
@@ -26,7 +29,11 @@ declare class Tree extends VirtualRowView<TreeRow, TreeOptions> {
|
|
|
26
29
|
private _focusNode;
|
|
27
30
|
private _listeners;
|
|
28
31
|
private _rendererFactory;
|
|
29
|
-
constructor(options?: TreeOptions);
|
|
32
|
+
constructor(options?: TreeOptions, subclassDefaults?: Partial<TreeOptions>);
|
|
33
|
+
protected applyOptions(options: TreeOptions): this;
|
|
34
|
+
getRowOverflow(): TreeRowOverflow;
|
|
35
|
+
setRowOverflow(rowOverflow: TreeRowOverflow): this;
|
|
36
|
+
getPreferredSize(): Size | null;
|
|
30
37
|
setNodes(nodes: TreeNode[]): this;
|
|
31
38
|
expandAll(): this;
|
|
32
39
|
protected getRowHeight(): number;
|
|
@@ -52,6 +59,7 @@ declare class Tree extends VirtualRowView<TreeRow, TreeOptions> {
|
|
|
52
59
|
private _isExpandable;
|
|
53
60
|
private _flatten;
|
|
54
61
|
private _reflattenAndRender;
|
|
62
|
+
expandNode(node: TreeNode): this;
|
|
55
63
|
private _onToggle;
|
|
56
64
|
private _loadAndExpand;
|
|
57
65
|
private _notifySelectionChange;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Tree } from '../../component/tree/Tree.js';
|
|
2
|
-
export type { TreeOptions, TreeEvent } from '../../component/tree/Tree.js';
|
|
2
|
+
export type { TreeOptions, TreeEvent, TreeRowOverflow } from '../../component/tree/Tree.js';
|
|
3
3
|
export type { TreeNode } from '../../component/tree/TreeNode.js';
|
|
4
4
|
export type { TreeNodeRenderContext } from '../../component/tree/TreeNodeRenderContext.js';
|
|
5
5
|
export { TreeNodeRenderer } from '../../component/tree/TreeNodeRenderer.js';
|
|
@@ -8,6 +8,6 @@ export declare class LabelTreeNodeRenderer extends TreeNodeRenderer {
|
|
|
8
8
|
getLabel(): Text;
|
|
9
9
|
update(context: TreeNodeRenderContext): void;
|
|
10
10
|
getContentWidth(): number;
|
|
11
|
-
layoutChildren(
|
|
11
|
+
layoutChildren(width: number, height: number): void;
|
|
12
12
|
protected init(element?: Handle): this;
|
|
13
13
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type Handle } from "../core/DOM.js";
|
|
2
|
+
import { type BorderOptions } from "../primitive/Border.js";
|
|
3
|
+
interface SideWidths {
|
|
4
|
+
top: number;
|
|
5
|
+
right: number;
|
|
6
|
+
bottom: number;
|
|
7
|
+
left: number;
|
|
8
|
+
}
|
|
9
|
+
export declare function measureBorderWidths(spec: BorderOptions, element: Handle): SideWidths;
|
|
10
|
+
export declare function clearBorderWidths(): void;
|
|
11
|
+
export declare function _borderWidthCacheSize(): number;
|
|
12
|
+
export {};
|
|
@@ -95,6 +95,8 @@ declare class Component<TOptions extends ComponentOptions = ComponentOptions> ex
|
|
|
95
95
|
private _contain;
|
|
96
96
|
private _animation;
|
|
97
97
|
private _lastEffectiveVisible;
|
|
98
|
+
private _pendingRematerialize;
|
|
99
|
+
private _refocusOnRematerialize;
|
|
98
100
|
private _animationPlayState;
|
|
99
101
|
private _outline;
|
|
100
102
|
private _appearance;
|
|
@@ -142,6 +144,7 @@ declare class Component<TOptions extends ComponentOptions = ComponentOptions> ex
|
|
|
142
144
|
getElement(createIfMissing?: boolean): Handle | undefined;
|
|
143
145
|
protected getScrollElement(): Handle | undefined;
|
|
144
146
|
removeElement(): this;
|
|
147
|
+
release(): boolean;
|
|
145
148
|
setClipFrame(x: number, y: number, width: number, height: number): this;
|
|
146
149
|
clearClipFrame(): this;
|
|
147
150
|
private createFrame;
|
|
@@ -268,6 +271,7 @@ declare class Component<TOptions extends ComponentOptions = ComponentOptions> ex
|
|
|
268
271
|
getWidth(): number;
|
|
269
272
|
setWidth(width: number): this;
|
|
270
273
|
protected clampsToContentSize(): boolean;
|
|
274
|
+
protected canRelease(): boolean;
|
|
271
275
|
private clampWidth;
|
|
272
276
|
getHeight(): number;
|
|
273
277
|
setHeight(height: number): this;
|
|
@@ -280,6 +284,7 @@ declare class Component<TOptions extends ComponentOptions = ComponentOptions> ex
|
|
|
280
284
|
getScrollTop(): number;
|
|
281
285
|
setScrollLeft(value: number): this;
|
|
282
286
|
setScrollTop(value: number): this;
|
|
287
|
+
private restoreReleasedState;
|
|
283
288
|
syncScrollOffsets(): this;
|
|
284
289
|
getMaxScrollLeft(): number;
|
|
285
290
|
getMaxScrollTop(): number;
|
|
@@ -357,6 +362,7 @@ declare class Component<TOptions extends ComponentOptions = ComponentOptions> ex
|
|
|
357
362
|
moveComponent(child: Component, index?: number, constraints?: LayoutConstraints): this;
|
|
358
363
|
removeComponent(component: Component): LayoutConstraints | undefined;
|
|
359
364
|
removeAllComponents(): this;
|
|
365
|
+
disposeAllComponents(): this;
|
|
360
366
|
sortComponents(comparator: Comparator<Component, Component> | undefined): this;
|
|
361
367
|
getComponents(): Component<ComponentOptions>[];
|
|
362
368
|
getLaidOutComponents(): Component[];
|
|
@@ -17,6 +17,8 @@ export declare namespace Event {
|
|
|
17
17
|
function addSubtreeListener(component: Component, type: string, listener: Listener, options?: ListenerOptions): void;
|
|
18
18
|
function removeSubtreeListener(component: Component, type: string, listener: Listener): void;
|
|
19
19
|
function reindexComponent(oldId: string, newId: string): void;
|
|
20
|
+
function purgeComponent(componentId: string): void;
|
|
21
|
+
function _registeredComponentIds(): readonly string[];
|
|
20
22
|
function addViewportListener(component: Component, type: string, listener: Listener): void;
|
|
21
23
|
function removeViewportListener(component: Component, type: string, listener: Listener): void;
|
|
22
24
|
}
|
|
@@ -317,12 +317,10 @@ export interface Theme {
|
|
|
317
317
|
};
|
|
318
318
|
};
|
|
319
319
|
drawer: {
|
|
320
|
-
background: string;
|
|
321
320
|
shadow: string;
|
|
322
321
|
border: string;
|
|
323
322
|
};
|
|
324
323
|
rail: {
|
|
325
|
-
background: string;
|
|
326
324
|
border: string;
|
|
327
325
|
shadow: string;
|
|
328
326
|
handle: {
|
|
@@ -450,6 +448,10 @@ export interface Theme {
|
|
|
450
448
|
scroll: {
|
|
451
449
|
shadowColor: string;
|
|
452
450
|
};
|
|
451
|
+
markdown: {
|
|
452
|
+
lineHeight: string;
|
|
453
|
+
maxMeasure: string;
|
|
454
|
+
};
|
|
453
455
|
chart: {
|
|
454
456
|
series: string[];
|
|
455
457
|
axis: string;
|
|
@@ -7,6 +7,13 @@ import type { ComponentFactory } from "../core/Component.js";
|
|
|
7
7
|
import { BaseObject } from "../core/BaseObject.js";
|
|
8
8
|
export interface LayoutManagerOptions {
|
|
9
9
|
}
|
|
10
|
+
export interface ResolvedPlacement {
|
|
11
|
+
component: Component;
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
width: number;
|
|
15
|
+
height: number;
|
|
16
|
+
}
|
|
10
17
|
export declare abstract class LayoutManager extends BaseObject {
|
|
11
18
|
private _container;
|
|
12
19
|
private _layoutConstraints;
|
|
@@ -37,6 +44,7 @@ export declare abstract class LayoutManager extends BaseObject {
|
|
|
37
44
|
height: number;
|
|
38
45
|
};
|
|
39
46
|
protected commitBounds(component: Component, x: number, y: number, width: number, height: number): void;
|
|
47
|
+
protected commitPlacements(placements: ResolvedPlacement[]): void;
|
|
40
48
|
setLayoutConstraints(component: Component, constraints?: LayoutConstraints): LayoutConstraints | undefined;
|
|
41
49
|
delLayoutConstraints(component: Component): LayoutConstraints | undefined;
|
|
42
50
|
getLayoutConstraints(component: Component): LayoutConstraints | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./FieldDecorator-
|
|
1
|
+
import{t as e}from"./FieldDecorator-HG65hEtk.js";export{e as FieldDecorator};
|
package/llms.txt
CHANGED
|
@@ -31,6 +31,7 @@ Organized by task. Columns: task → symbol · import subpath · summary · docs
|
|
|
31
31
|
- Bottom status bar with segments → **StatusBar** · `@jimka/typescript-ui/component/container` · A thin horizontal strip mounted at the bottom of a window or panel that surfaces a transient status message and small persistent indicators. · docs/components/StatusBar.md
|
|
32
32
|
- Virtualize a huge child list (render only visible rows) → **VirtualScroller** · `@jimka/typescript-ui/component/container` · Shared scroll machinery for transform-based virtual lists (e.g. table body, tree). Owns the rows-container element, two custom Scrollbar ov… · docs/components/VirtualScroller.md
|
|
33
33
|
- Mutually-exclusive group of toggle buttons → **ButtonGroup** · `@jimka/typescript-ui/overlay` · Manages mutual exclusivity among a set of RadioButton or ToggleButton instances. · docs/components/ButtonGroup.md
|
|
34
|
+
- Corner-pinned floating panel → **FloatingPanel** · `@jimka/typescript-ui/component/container` · A `Panel` that pins itself to one corner of its host's inner box, via an owned AnchorConstraints instance. · docs/components/FloatingPanel.md
|
|
34
35
|
|
|
35
36
|
### Inputs / Forms
|
|
36
37
|
- Semantic <form> container with submit handling → **Form** · `@jimka/typescript-ui/core` · A Panel that bakes the semantic `<form>` tag and wires the native `submit` event to a single `onSubmit` callback. · docs/components/Form.md
|
|
@@ -68,6 +69,8 @@ Organized by task. Columns: task → symbol · import subpath · summary · docs
|
|
|
68
69
|
- Font-Awesome icon glyph → **Glyph** · `@jimka/typescript-ui/component/display` · A small icon rendered from the internal `Glyphs` registry. · docs/components/Glyph.md
|
|
69
70
|
- Icon paired with a label → **IconLabel** · `@jimka/typescript-ui/component/display` · A small composite pairing a leading `Glyph` with a trailing `Label`, laid out horizontally with a configurable gap (default 2). · docs/components/IconLabel.md
|
|
70
71
|
- Render a Markdown string as formatted content → **Markdown** · `@jimka/typescript-ui/component/display` · A display component that renders a Markdown source string as a live DOM subtree. · docs/components/Markdown.md
|
|
72
|
+
- Floating heading-outline minimap → **MarkdownMinimap** · `@jimka/typescript-ui/component/display` · A floating card showing a document's heading outline as a `Tree`. · docs/components/MarkdownMinimap.md
|
|
73
|
+
- Markdown viewer with minimap and zoom controls → **MarkdownViewer** · `@jimka/typescript-ui/component/display` · A single-document Markdown viewer with a floating outline minimap and width/zoom controls, both pinned over the prose. · docs/components/MarkdownViewer.md
|
|
71
74
|
- Syntax-highlighted code editor with one-command formatting → **CodeEditor** · `@jimka/typescript-ui/component/editor` · A syntax-highlighting, formatting code editor wrapping CodeMirror 6. · docs/components/CodeEditor.md
|
|
72
75
|
- WYSIWYG rich-text editor whose value is a Markdown string → **MarkdownEditor** · `@jimka/typescript-ui/component/editor` · A WYSIWYG rich-text editor whose public value is a Markdown string, with an optional raw-Markdown source mode. · docs/components/MarkdownEditor.md
|
|
73
76
|
- Determinate/indeterminate progress bar → **ProgressBar** · `@jimka/typescript-ui/component/display` · A horizontal progress indicator with a determinate (0–100%) and an indeterminate (continuously animated) mode. · docs/components/ProgressBar.md
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jimka/typescript-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "A web-based layout manager and UI component framework written in TypeScript.",
|
|
5
5
|
"keywords": ["ui", "ui-components", "typescript", "layout", "layout-manager", "widgets", "framework", "dock", "data-table", "retained-mode"],
|
|
6
6
|
"author": "Jimmy Karlsson",
|
|
@@ -153,12 +153,12 @@
|
|
|
153
153
|
"@types/prismjs": "^1.26.6",
|
|
154
154
|
"@vitest/coverage-v8": "^4.1.9",
|
|
155
155
|
"cloc": "^2.6.0-cloc",
|
|
156
|
-
"concurrently": "^
|
|
156
|
+
"concurrently": "^10.0.4",
|
|
157
157
|
"elkjs": "^0.12.0",
|
|
158
|
-
"eslint": "^
|
|
159
|
-
"google-closure-compiler": "^
|
|
158
|
+
"eslint": "^10.8.0",
|
|
159
|
+
"google-closure-compiler": "^20260803.0.0",
|
|
160
160
|
"jsdom": "^29.1.1",
|
|
161
|
-
"rimraf": "^
|
|
161
|
+
"rimraf": "^6.1.3",
|
|
162
162
|
"ts-morph": "^28.0.0",
|
|
163
163
|
"tsc-alias": "^1.9.0",
|
|
164
164
|
"tsx": "^4.22.1",
|
|
@@ -181,21 +181,21 @@
|
|
|
181
181
|
"@codemirror/state": "^6.7.1",
|
|
182
182
|
"@codemirror/view": "^6.43.6",
|
|
183
183
|
"@fontsource-variable/manrope": "^5.2.8",
|
|
184
|
-
"@lexical/code": "^0.
|
|
185
|
-
"@lexical/history": "^0.
|
|
186
|
-
"@lexical/link": "^0.
|
|
187
|
-
"@lexical/list": "^0.
|
|
188
|
-
"@lexical/markdown": "^0.
|
|
189
|
-
"@lexical/rich-text": "^0.
|
|
190
|
-
"@lexical/selection": "^0.
|
|
191
|
-
"@lexical/table": "^0.
|
|
192
|
-
"@lexical/utils": "^0.
|
|
184
|
+
"@lexical/code": "^0.49.0",
|
|
185
|
+
"@lexical/history": "^0.49.0",
|
|
186
|
+
"@lexical/link": "^0.49.0",
|
|
187
|
+
"@lexical/list": "^0.49.0",
|
|
188
|
+
"@lexical/markdown": "^0.49.0",
|
|
189
|
+
"@lexical/rich-text": "^0.49.0",
|
|
190
|
+
"@lexical/selection": "^0.49.0",
|
|
191
|
+
"@lexical/table": "^0.49.0",
|
|
192
|
+
"@lexical/utils": "^0.49.0",
|
|
193
193
|
"@lezer/highlight": "^1.2.3",
|
|
194
194
|
"codemirror": "^6.0.2",
|
|
195
195
|
"d3-array": "^3.2.4",
|
|
196
196
|
"d3-scale": "^4.0.2",
|
|
197
197
|
"d3-shape": "^3.2.0",
|
|
198
|
-
"lexical": "^0.
|
|
198
|
+
"lexical": "^0.49.0",
|
|
199
199
|
"marked": "^18.0.5",
|
|
200
200
|
"prettier": "^3.9.4",
|
|
201
201
|
"sql-formatter": "^15.8.2"
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{f as e,h as t}from"./Component-DHqrPwAw.js";import{t as n}from"./LayoutConstraints-DkctJZXB.js";var Anchor=class extends e{constructor(e){super(),e&&this.applyOptions(e)}resolve(e,t){if(e!==void 0)return typeof e==`number`?e:t*e.percent/100}resolveAxis(e,t,n,r,i,a,o){if(e!==void 0&&t!==void 0){let n=Math.max(0,r-e-t);return{start:o+e,extent:n}}let s=n??i;return e===void 0?t===void 0?{start:a,extent:s}:{start:o+r-t-s,extent:s}:{start:o+e,extent:s}}doLayout(){let e=this.getContainer();if(!e)return;let t=e.getInnerSize();if(!t)return;let n=e.getContentInsets(),r=n.getLeft(),i=n.getTop();for(let n of e.getLaidOutComponents()){let e=this.getLayoutConstraints(n),a=n.getPreferredSize(),o=n.getSize(),s=a?.width??o?.width??0,c=a?.height??o?.height??0,l=this.resolveAxis(this.resolve(e?.left,t.width),this.resolve(e?.right,t.width),this.resolve(e?.width,t.width),t.width,s,n.getX(),r),u=this.resolveAxis(this.resolve(e?.top,t.height),this.resolve(e?.bottom,t.height),this.resolve(e?.height,t.height),t.height,c,n.getY(),i);this.commitBounds(n,l.start,u.start,l.extent,u.extent)}}},r=t(Anchor),AnchorConstraints=class extends n{left;right;top;bottom;width;height;constructor(){super()}};export{r as n,AnchorConstraints as t};
|
|
2
|
-
//# sourceMappingURL=AnchorConstraints-CVrMP9rz.js.map
|