@jimka/typescript-ui 0.3.0 → 0.4.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-C3O4kv7_.js → AbstractBooleanInput-DSwKBAic.js} +2 -2
- package/dist/lib/{AbstractBooleanInput-C3O4kv7_.js.map → AbstractBooleanInput-DSwKBAic.js.map} +1 -1
- package/dist/lib/{AbstractInput-DFWniHqq.js → AbstractInput-BmWGJTs1.js} +2 -2
- package/dist/lib/{AbstractInput-DFWniHqq.js.map → AbstractInput-BmWGJTs1.js.map} +1 -1
- package/dist/lib/{AnchorConstraints-CSUcj8Wx.js → AnchorConstraints-CVrMP9rz.js} +2 -2
- package/dist/lib/{AnchorConstraints-CSUcj8Wx.js.map → AnchorConstraints-CVrMP9rz.js.map} +1 -1
- package/dist/lib/{AnimatedDropdown-e9urCXK1.js → AnimatedDropdown-DKas40B-.js} +2 -2
- package/dist/lib/{AnimatedDropdown-e9urCXK1.js.map → AnimatedDropdown-DKas40B-.js.map} +1 -1
- package/dist/lib/Border-Bz29z-_7.js +2 -0
- package/dist/lib/Border-Bz29z-_7.js.map +1 -0
- package/dist/lib/Button-bjpWruNc.js +2 -0
- package/dist/lib/{Button-B36rBMKC.js.map → Button-bjpWruNc.js.map} +1 -1
- package/dist/lib/{Card-P8iUH2-C.js → Card-BdfbvOD_.js} +2 -2
- package/dist/lib/{Card-P8iUH2-C.js.map → Card-BdfbvOD_.js.map} +1 -1
- package/dist/lib/ComboBox-CBw2VLLN.js +2 -0
- package/dist/lib/ComboBox-CBw2VLLN.js.map +1 -0
- package/dist/lib/Component-DHqrPwAw.js +2 -0
- package/dist/lib/Component-DHqrPwAw.js.map +1 -0
- package/dist/lib/Container-CAQpj4yb.js +2 -0
- package/dist/lib/{Container-xUbHk6l_.js.map → Container-CAQpj4yb.js.map} +1 -1
- package/dist/lib/{DOM-BeR95tE8.js → DOM-67StIm5G.js} +2 -2
- package/dist/lib/DOM-67StIm5G.js.map +1 -0
- package/dist/lib/DragChain-CYGuT7OA.js +2 -0
- package/dist/lib/DragChain-CYGuT7OA.js.map +1 -0
- package/dist/lib/DragManager-CHWCe3-8.js +2 -0
- package/dist/lib/DragManager-CHWCe3-8.js.map +1 -0
- package/dist/lib/{FieldDecorator-BaTGfKiW.js → FieldDecorator-CgAGcqCk.js} +2 -2
- package/dist/lib/{FieldDecorator-BaTGfKiW.js.map → FieldDecorator-CgAGcqCk.js.map} +1 -1
- package/dist/lib/{Fit-E-EIZv1k.js → Fit-DIYt2aQB.js} +2 -2
- package/dist/lib/{Fit-E-EIZv1k.js.map → Fit-DIYt2aQB.js.map} +1 -1
- package/dist/lib/Glyph-CeAIWyPB.js +2 -0
- package/dist/lib/Glyph-CeAIWyPB.js.map +1 -0
- package/dist/lib/{Grid-BXS2T8MT.js → Grid-ViA0joow.js} +2 -2
- package/dist/lib/{Grid-BXS2T8MT.js.map → Grid-ViA0joow.js.map} +1 -1
- package/dist/lib/GridConstraints-B1rxCw9B.js +2 -0
- package/dist/lib/GridConstraints-B1rxCw9B.js.map +1 -0
- package/dist/lib/Header-mKaqgfat.js +2 -0
- package/dist/lib/Header-mKaqgfat.js.map +1 -0
- package/dist/lib/IconText-BqwXA82-.js +2 -0
- package/dist/lib/IconText-BqwXA82-.js.map +1 -0
- package/dist/lib/{LayoutSerialization-D1OHmxSB.js → LayoutSerialization-D82UtnDD.js} +2 -2
- package/dist/lib/{LayoutSerialization-D1OHmxSB.js.map → LayoutSerialization-D82UtnDD.js.map} +1 -1
- package/dist/lib/LayoutSizes-DG9aW9k6.js +2 -0
- package/dist/lib/LayoutSizes-DG9aW9k6.js.map +1 -0
- package/dist/lib/List-CUntS8ux.js +2 -0
- package/dist/lib/List-CUntS8ux.js.map +1 -0
- package/dist/lib/MemoryStore-DT6iWWco.js.map +1 -1
- package/dist/lib/Menu-B_-SQj72.js +2 -0
- package/dist/lib/Menu-B_-SQj72.js.map +1 -0
- package/dist/lib/{MenuButton-Bjm1OyB-.js → MenuButton-C79l8Ysf.js} +2 -2
- package/dist/lib/{MenuButton-Bjm1OyB-.js.map → MenuButton-C79l8Ysf.js.map} +1 -1
- package/dist/lib/{Panel-D9lTLGqP.js → Panel-D2X33qR6.js} +2 -2
- package/dist/lib/{Panel-D9lTLGqP.js.map → Panel-D2X33qR6.js.map} +1 -1
- package/dist/lib/Position-Ck_KD4cR.js +2 -0
- package/dist/lib/Position-Ck_KD4cR.js.map +1 -0
- package/dist/lib/{ProgressSpinner-glv-29eK.js → ProgressSpinner-DCyq02pd.js} +2 -2
- package/dist/lib/{ProgressSpinner-glv-29eK.js.map → ProgressSpinner-DCyq02pd.js.map} +1 -1
- package/dist/lib/{RadioButton-R4S3c9WD.js → RadioButton-BJIAQkII.js} +2 -2
- package/dist/lib/{RadioButton-R4S3c9WD.js.map → RadioButton-BJIAQkII.js.map} +1 -1
- package/dist/lib/{RovingTabIndex-Dgt01LOE.js → RovingTabIndex-DFJyoveq.js} +2 -2
- package/dist/lib/{RovingTabIndex-Dgt01LOE.js.map → RovingTabIndex-DFJyoveq.js.map} +1 -1
- package/dist/lib/Scrollbar-CSFK-Y57.js +2 -0
- package/dist/lib/Scrollbar-CSFK-Y57.js.map +1 -0
- package/dist/lib/Slider-C-kQQYCj.js +2 -0
- package/dist/lib/Slider-C-kQQYCj.js.map +1 -0
- package/dist/lib/{Spacer-B57i2-_G.js → Spacer-D159iJy9.js} +2 -2
- package/dist/lib/{Spacer-B57i2-_G.js.map → Spacer-D159iJy9.js.map} +1 -1
- package/dist/lib/TabButton-CHkXBgCj.js +2 -0
- package/dist/lib/TabButton-CHkXBgCj.js.map +1 -0
- package/dist/lib/{Text-Bni4icFY.js → Text-D5pg7taZ.js} +2 -2
- package/dist/lib/{Text-Bni4icFY.js.map → Text-D5pg7taZ.js.map} +1 -1
- package/dist/lib/Tooltip-DzK6LxUt.js +3 -0
- package/dist/lib/{Tooltip-BUy6uFKN.js.map → Tooltip-DzK6LxUt.js.map} +1 -1
- package/dist/lib/VBox-BNegDPs_.js +2 -0
- package/dist/lib/VBox-BNegDPs_.js.map +1 -0
- package/dist/lib/VirtualScroller-zQr-vKrO.js +2 -0
- package/dist/lib/VirtualScroller-zQr-vKrO.js.map +1 -0
- package/dist/lib/component/button.es.js +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 +2 -2
- 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/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/selectionsEqual-4r5R7pTK.js +2 -0
- package/dist/lib/selectionsEqual-4r5R7pTK.js.map +1 -0
- package/dist/lib/types/component/button/TabCloseButton.d.ts +1 -1
- package/dist/lib/types/component/container/CollapseButton.d.ts +1 -1
- package/dist/lib/types/component/container/DialogBackdrop.d.ts +1 -1
- package/dist/lib/types/component/container/MenuItem.d.ts +4 -0
- package/dist/lib/types/component/container/MenuSeparator.d.ts +1 -1
- package/dist/lib/types/component/container/Scrollbar.d.ts +1 -0
- package/dist/lib/types/component/container/SplitGutter.d.ts +2 -2
- package/dist/lib/types/component/container/StatusBar.d.ts +1 -1
- package/dist/lib/types/component/container/VirtualScroller.d.ts +1 -0
- package/dist/lib/types/component/container/WindowBorder.d.ts +1 -1
- package/dist/lib/types/component/diagram/DiagramNode.d.ts +1 -1
- package/dist/lib/types/component/display/Canvas.d.ts +8 -2
- package/dist/lib/types/component/display/Glyph.d.ts +2 -1
- package/dist/lib/types/component/display/Header.d.ts +1 -1
- package/dist/lib/types/component/display/IconLabel.d.ts +1 -1
- package/dist/lib/types/component/display/IconText.d.ts +1 -1
- package/dist/lib/types/component/display/Image.d.ts +1 -1
- package/dist/lib/types/component/display/Video.d.ts +1 -1
- package/dist/lib/types/component/display/WebGLCanvas.d.ts +8 -2
- package/dist/lib/types/component/editor/CodeEditor.d.ts +1 -1
- package/dist/lib/types/component/input/AbstractPickerField.d.ts +1 -1
- package/dist/lib/types/component/input/AutoCompleteDropdown.d.ts +1 -1
- package/dist/lib/types/component/input/Link.d.ts +1 -1
- package/dist/lib/types/component/input/NumberSpinner.d.ts +1 -1
- package/dist/lib/types/component/input/PasswordField.d.ts +1 -1
- package/dist/lib/types/component/input/SpinButton.d.ts +1 -1
- package/dist/lib/types/component/input/TextArea.d.ts +1 -1
- package/dist/lib/types/component/input/TextField.d.ts +3 -1
- package/dist/lib/types/component/input/UsernameField.d.ts +1 -1
- package/dist/lib/types/component/list/AbstractMarkerList.d.ts +9 -1
- package/dist/lib/types/component/list/BulletedList.d.ts +1 -0
- package/dist/lib/types/component/list/ListItem.d.ts +10 -4
- package/dist/lib/types/component/list/NumberedList.d.ts +1 -0
- package/dist/lib/types/component/menubar/MenuBarButton.d.ts +1 -1
- package/dist/lib/types/component/menubar/ToolBar.d.ts +1 -1
- package/dist/lib/types/component/menubar/ToolBarSeparator.d.ts +1 -1
- package/dist/lib/types/component/shared/VirtualRowView.d.ts +13 -1
- package/dist/lib/types/component/table/Body.d.ts +15 -2
- package/dist/lib/types/component/table/CellGeometry.d.ts +6 -0
- package/dist/lib/types/component/table/Column.d.ts +4 -0
- package/dist/lib/types/component/table/ColumnConfig.d.ts +3 -0
- package/dist/lib/types/component/table/Header.d.ts +24 -2
- package/dist/lib/types/component/table/Row.d.ts +13 -2
- package/dist/lib/types/component/table/Table.d.ts +25 -4
- package/dist/lib/types/component/table/TableExporter.d.ts +1 -1
- package/dist/lib/types/component/table/TablePanel.d.ts +2 -1
- package/dist/lib/types/component/table/cell/Cell.d.ts +1 -1
- package/dist/lib/types/component/table/cell/Header.d.ts +3 -0
- package/dist/lib/types/component/table/index.d.ts +1 -1
- package/dist/lib/types/component/tree/Tree.d.ts +1 -0
- package/dist/lib/types/core/Aria.d.ts +1 -1
- package/dist/lib/types/core/Body.d.ts +8 -2
- package/dist/lib/types/core/Component.d.ts +6 -0
- package/dist/lib/types/core/DOM.d.ts +4 -0
- package/dist/lib/types/core/DragChain.d.ts +3 -0
- package/dist/lib/types/core/Favicon.d.ts +7 -0
- package/dist/lib/types/core/FirstLayoutGate.d.ts +5 -0
- package/dist/lib/types/core/Theme.d.ts +1 -0
- package/dist/lib/types/core/Util.d.ts +1 -0
- package/dist/lib/types/core/index.d.ts +2 -0
- package/dist/lib/types/layout/Accordion.d.ts +0 -1
- package/dist/lib/types/layout/FlowLayout.d.ts +4 -0
- package/dist/lib/types/layout/HFlow.d.ts +3 -0
- package/dist/lib/types/layout/VFlow.d.ts +1 -0
- package/dist/lib/types/overlay/AbstractWindow.d.ts +1 -1
- package/dist/lib/types/overlay/Dock.d.ts +1 -0
- package/dist/lib/types/overlay/DropZoneOverlay.d.ts +1 -0
- package/dist/lib/types/overlay/Popover.d.ts +1 -1
- package/dist/lib/validation.es.js +1 -1
- package/llms.txt +1 -0
- package/package.json +2 -2
- package/dist/lib/Border-Dq6dXkmS.js +0 -2
- package/dist/lib/Border-Dq6dXkmS.js.map +0 -1
- package/dist/lib/Button-B36rBMKC.js +0 -2
- package/dist/lib/ComboBox-BjAhXXkY.js +0 -2
- package/dist/lib/ComboBox-BjAhXXkY.js.map +0 -1
- package/dist/lib/Component-CHTzJxEf.js +0 -2
- package/dist/lib/Component-CHTzJxEf.js.map +0 -1
- package/dist/lib/Container-xUbHk6l_.js +0 -2
- package/dist/lib/DOM-BeR95tE8.js.map +0 -1
- package/dist/lib/DragManager-T5Oljd0F.js +0 -2
- package/dist/lib/DragManager-T5Oljd0F.js.map +0 -1
- package/dist/lib/Glyph-CnNslL95.js +0 -2
- package/dist/lib/Glyph-CnNslL95.js.map +0 -1
- package/dist/lib/GridConstraints-D_kbd-h2.js +0 -2
- package/dist/lib/GridConstraints-D_kbd-h2.js.map +0 -1
- package/dist/lib/HBox-Dm3xgsDE.js +0 -2
- package/dist/lib/HBox-Dm3xgsDE.js.map +0 -1
- package/dist/lib/Header-CqFc2OUx.js +0 -2
- package/dist/lib/Header-CqFc2OUx.js.map +0 -1
- package/dist/lib/IconText-CTM2r0Tv.js +0 -2
- package/dist/lib/IconText-CTM2r0Tv.js.map +0 -1
- package/dist/lib/LayoutSizes-CvMmMgHJ.js +0 -2
- package/dist/lib/LayoutSizes-CvMmMgHJ.js.map +0 -1
- package/dist/lib/List-DHeOPAK2.js +0 -2
- package/dist/lib/List-DHeOPAK2.js.map +0 -1
- package/dist/lib/Menu-B6ippw-p.js +0 -2
- package/dist/lib/Menu-B6ippw-p.js.map +0 -1
- package/dist/lib/Position-DRSlWn4Z.js +0 -2
- package/dist/lib/Position-DRSlWn4Z.js.map +0 -1
- package/dist/lib/Scrollbar-CiVV3axj.js +0 -2
- package/dist/lib/Scrollbar-CiVV3axj.js.map +0 -1
- package/dist/lib/Slider-_JVvuQ8M.js +0 -2
- package/dist/lib/Slider-_JVvuQ8M.js.map +0 -1
- package/dist/lib/TabButton-DEypdlZf.js +0 -2
- package/dist/lib/TabButton-DEypdlZf.js.map +0 -1
- package/dist/lib/Tooltip-BUy6uFKN.js +0 -3
- package/dist/lib/VBox-Dr7Ge9M6.js +0 -2
- package/dist/lib/VBox-Dr7Ge9M6.js.map +0 -1
- package/dist/lib/VirtualScroller-BPy6KmSX.js +0 -2
- package/dist/lib/VirtualScroller-BPy6KmSX.js.map +0 -1
- package/dist/lib/selectionsEqual-2PJrcimg.js +0 -2
- package/dist/lib/selectionsEqual-2PJrcimg.js.map +0 -1
|
@@ -11,14 +11,21 @@ declare abstract class VirtualRowView<TRow extends Component, TOptions extends C
|
|
|
11
11
|
} | null>;
|
|
12
12
|
protected _rowDisplayed: boolean[];
|
|
13
13
|
protected _scroller: VirtualScroller | null;
|
|
14
|
+
private _renderDeferred;
|
|
15
|
+
private _renderResumed;
|
|
16
|
+
private _pendingScrollX;
|
|
17
|
+
private _pendingScrollY;
|
|
18
|
+
private _pendingScrollRow;
|
|
14
19
|
protected abstract getRowHeight(): number;
|
|
15
20
|
protected abstract createPoolRow(): TRow;
|
|
16
21
|
protected abstract renderWindow(): void;
|
|
17
22
|
protected initScroller(element: Handle): void;
|
|
18
23
|
protected onScrollerTick(): void;
|
|
19
|
-
protected
|
|
24
|
+
protected destructor(): void;
|
|
20
25
|
setScrollX(x: number): this;
|
|
21
26
|
setScrollY(y: number): this;
|
|
27
|
+
private holdScrollWhileFirstLayoutHeld;
|
|
28
|
+
private applyPendingScroll;
|
|
22
29
|
protected computeVisibleWindow(scrollY: number, visibleHeight: number, totalRows: number): {
|
|
23
30
|
firstRow: number;
|
|
24
31
|
lastRow: number;
|
|
@@ -30,6 +37,11 @@ declare abstract class VirtualRowView<TRow extends Component, TOptions extends C
|
|
|
30
37
|
protected positionRow(slot: number, targetY: number, rowWidth: number): boolean;
|
|
31
38
|
protected hideExcessPoolRows(windowSize: number): void;
|
|
32
39
|
protected invalidateGeom(): void;
|
|
40
|
+
protected deferRenderWhileFirstLayoutHeld(): boolean;
|
|
41
|
+
protected wasRenderDeferred(): boolean;
|
|
42
|
+
protected finishResumedRender(): boolean;
|
|
43
|
+
protected renderWindowIfDeferred(): boolean;
|
|
44
|
+
protected onThemeReflow(): void;
|
|
33
45
|
protected scrollRowIntoView(index: number): void;
|
|
34
46
|
}
|
|
35
47
|
export { VirtualRowView };
|
|
@@ -18,6 +18,13 @@ export interface CellClickEvent {
|
|
|
18
18
|
event: MouseEvent;
|
|
19
19
|
}
|
|
20
20
|
export declare function resolveClickedColumn(cells: Component[], target: Handle | null): number;
|
|
21
|
+
export interface ColumnWindow {
|
|
22
|
+
firstCol: number;
|
|
23
|
+
lastCol: number;
|
|
24
|
+
widths: number[];
|
|
25
|
+
lefts: number[];
|
|
26
|
+
}
|
|
27
|
+
export declare function computeColumnWindow(widths: number[], scrollX: number, viewportWidth: number): ColumnWindow;
|
|
21
28
|
declare class Body extends VirtualRowView<Row> {
|
|
22
29
|
private _store;
|
|
23
30
|
private _hiddenColumns;
|
|
@@ -29,6 +36,8 @@ declare class Body extends VirtualRowView<Row> {
|
|
|
29
36
|
private _lastColumnWidths;
|
|
30
37
|
private _lastAriaRowCount;
|
|
31
38
|
private _rowHeight;
|
|
39
|
+
private _colWindow;
|
|
40
|
+
private _reconciling;
|
|
32
41
|
private _storeRefresh;
|
|
33
42
|
private _selectedRecords;
|
|
34
43
|
private _anchorRecord;
|
|
@@ -37,10 +46,11 @@ declare class Body extends VirtualRowView<Row> {
|
|
|
37
46
|
private _header;
|
|
38
47
|
private _listeners;
|
|
39
48
|
constructor(store: AbstractStore);
|
|
49
|
+
protected onThemeReflow(): void;
|
|
40
50
|
private computeRowHeight;
|
|
41
51
|
protected getRowHeight(): number;
|
|
42
52
|
protected createPoolRow(): Row;
|
|
43
|
-
|
|
53
|
+
private wireRowCells;
|
|
44
54
|
private bindStore;
|
|
45
55
|
protected onStoreChange(): void;
|
|
46
56
|
protected getVisibleRecords(): ModelRecord[];
|
|
@@ -65,9 +75,12 @@ declare class Body extends VirtualRowView<Row> {
|
|
|
65
75
|
protected onScrollerTick(): void;
|
|
66
76
|
private onFocus;
|
|
67
77
|
getEditorPool(): CellEditorPool;
|
|
78
|
+
doLayout(): this;
|
|
68
79
|
renderWindow(bodyWidth?: number, columnWidths?: number[]): void;
|
|
80
|
+
private renderWindowPass;
|
|
69
81
|
private updateColumnWidthCache;
|
|
70
|
-
|
|
82
|
+
private commitEditsOutsideWindow;
|
|
83
|
+
protected bindAndPositionRows(firstRow: number, windowSize: number, rowWidth: number, records: ModelRecord[], columns: ColumnWindow): void;
|
|
71
84
|
protected onSubtreeClick(e: MouseEvent): void;
|
|
72
85
|
private onRowClick;
|
|
73
86
|
selectRecord(record: ModelRecord | null): void;
|
|
@@ -4,6 +4,8 @@ export declare class Column {
|
|
|
4
4
|
private _field;
|
|
5
5
|
private _minWidth;
|
|
6
6
|
private _maxWidth;
|
|
7
|
+
private _width;
|
|
8
|
+
private _maxContentLength;
|
|
7
9
|
private _hidden;
|
|
8
10
|
private _unhideable;
|
|
9
11
|
private _readOnly;
|
|
@@ -16,6 +18,8 @@ export declare class Column {
|
|
|
16
18
|
getField(): Field;
|
|
17
19
|
getMinWidth(): number | undefined;
|
|
18
20
|
getMaxWidth(): number | undefined;
|
|
21
|
+
getWidth(): number | undefined;
|
|
22
|
+
getMaxContentLength(): number | undefined;
|
|
19
23
|
isInitiallyHidden(): boolean;
|
|
20
24
|
isUnhideable(): boolean;
|
|
21
25
|
isReadOnly(): boolean;
|
|
@@ -11,6 +11,8 @@ export interface ColumnConfig {
|
|
|
11
11
|
field: string;
|
|
12
12
|
minWidth?: number;
|
|
13
13
|
maxWidth?: number;
|
|
14
|
+
width?: number;
|
|
15
|
+
maxContentLength?: number;
|
|
14
16
|
hidden?: boolean;
|
|
15
17
|
unhideable?: boolean;
|
|
16
18
|
readOnly?: boolean;
|
|
@@ -31,4 +33,5 @@ export interface ColumnSpec {
|
|
|
31
33
|
columns: ColumnConfig[];
|
|
32
34
|
appendUnlisted?: boolean;
|
|
33
35
|
rowReadOnly?: (record: ModelRecord) => boolean;
|
|
36
|
+
autoSizeColumns?: boolean;
|
|
34
37
|
}
|
|
@@ -5,6 +5,12 @@ import { AbstractModel } from "../../data/AbstractModel.js";
|
|
|
5
5
|
import { AbstractStore } from "../../data/AbstractStore.js";
|
|
6
6
|
import { Column } from "../../component/table/Column.js";
|
|
7
7
|
export type TableHeaderEvent = "columnresizestart" | "columnresize" | "columncontextmenu";
|
|
8
|
+
export interface HeaderColumnGeometry {
|
|
9
|
+
columnWidths: number[];
|
|
10
|
+
viewportWidth: number;
|
|
11
|
+
columnHeight: number;
|
|
12
|
+
parentRowHeight: number;
|
|
13
|
+
}
|
|
8
14
|
declare class TableHeader extends Component {
|
|
9
15
|
private _model;
|
|
10
16
|
private _store;
|
|
@@ -12,6 +18,13 @@ declare class TableHeader extends Component {
|
|
|
12
18
|
private _columns;
|
|
13
19
|
private _listeners;
|
|
14
20
|
private _scrollbarCover;
|
|
21
|
+
private _visibleFields;
|
|
22
|
+
private _windowFirst;
|
|
23
|
+
private _scrollX;
|
|
24
|
+
private _focusedCol;
|
|
25
|
+
private _columnsDirty;
|
|
26
|
+
private _geometry;
|
|
27
|
+
private _cellGeom;
|
|
15
28
|
constructor(model: AbstractModel, store: AbstractStore);
|
|
16
29
|
getModel(): AbstractModel;
|
|
17
30
|
setStore(store: AbstractStore): this;
|
|
@@ -26,19 +39,28 @@ declare class TableHeader extends Component {
|
|
|
26
39
|
protected emit(event: "columnresize", colIndex: number, clientX: number): void;
|
|
27
40
|
protected emit(event: "columncontextmenu", fieldName: string, x: number, y: number): void;
|
|
28
41
|
getColumns(): import("../../core/Component.js")._Component<import("../../core/Component.js").ComponentOptions>[];
|
|
42
|
+
getColumnWindowStart(): number;
|
|
29
43
|
getParentRow(): Row;
|
|
30
44
|
hasParentRow(): boolean;
|
|
31
45
|
getScrollbarCover(): Handle;
|
|
32
|
-
sortColumns(): void;
|
|
33
46
|
addRow(row: Row): this;
|
|
34
47
|
addComponent(row: Row): this;
|
|
35
|
-
setWidth(width: number): this;
|
|
36
48
|
setHeight(height: number): this;
|
|
37
49
|
private rebuildCells;
|
|
50
|
+
private computeVisibleFields;
|
|
51
|
+
private reconcileColumnCells;
|
|
38
52
|
private rebuildParentCells;
|
|
39
53
|
private wireCell;
|
|
54
|
+
private columnIndexOf;
|
|
40
55
|
private handleSortClick;
|
|
41
56
|
private syncSortIndicators;
|
|
57
|
+
renderColumnWindow(geometry?: HeaderColumnGeometry): this;
|
|
58
|
+
private positionColumnCells;
|
|
59
|
+
private positionParentCells;
|
|
60
|
+
setScrollX(scrollLeft: number): this;
|
|
61
|
+
getScrollX(): number;
|
|
62
|
+
setFocusedColumn(colIndex: number | null): this;
|
|
63
|
+
private applyFocusedColumn;
|
|
42
64
|
}
|
|
43
65
|
declare const TableHeaderCallable: import("../../core/Callable.js").Callable<typeof TableHeader>;
|
|
44
66
|
type TableHeaderCallable = TableHeader;
|
|
@@ -8,11 +8,18 @@ declare class Row extends Component {
|
|
|
8
8
|
private _model?;
|
|
9
9
|
private _data?;
|
|
10
10
|
private _onCellCommit?;
|
|
11
|
-
private _fieldNames;
|
|
12
11
|
private _treeCell;
|
|
13
12
|
private _stripe;
|
|
13
|
+
private _visibleFields;
|
|
14
|
+
private _columnConfigs;
|
|
15
|
+
private _treeFieldName;
|
|
16
|
+
private _windowFirst;
|
|
17
|
+
private _cellKeys;
|
|
18
|
+
private _fieldNames;
|
|
19
|
+
private _columnsDirty;
|
|
14
20
|
constructor(model?: AbstractModel, data?: ModelRecord, hiddenColumns?: Set<string>, columnConfigs?: Map<string, ColumnConfig>, onCellCommit?: (record: ModelRecord) => void, treeFieldName?: string);
|
|
15
21
|
getTreeCell(): Cell<any> | null;
|
|
22
|
+
getColumnWindowStart(): number;
|
|
16
23
|
getFieldNames(): string[];
|
|
17
24
|
getData(): ModelRecord | undefined;
|
|
18
25
|
setData(record: ModelRecord): this;
|
|
@@ -20,7 +27,11 @@ declare class Row extends Component {
|
|
|
20
27
|
updateVisualState(): void;
|
|
21
28
|
addColumn(cell: Cell<any>, constraints?: LayoutConstraints): this;
|
|
22
29
|
addComponent(cell: Cell<any>, constraints?: LayoutConstraints): this;
|
|
23
|
-
|
|
30
|
+
setColumnFields(model: AbstractModel, hiddenColumns: Set<string>, columnConfigs: Map<string, ColumnConfig>, treeFieldName?: string): this;
|
|
31
|
+
setColumnWindow(firstCol: number, lastCol: number): boolean;
|
|
32
|
+
private commitCellValue;
|
|
33
|
+
private static cellKey;
|
|
34
|
+
private cellKeyFor;
|
|
24
35
|
private bindCell;
|
|
25
36
|
private static createCellForField;
|
|
26
37
|
doLayout(): this;
|
|
@@ -26,9 +26,9 @@ declare class Table extends Component<TableOptions> {
|
|
|
26
26
|
private _footer;
|
|
27
27
|
private _footerVisible;
|
|
28
28
|
private _columnWidths;
|
|
29
|
-
private
|
|
30
|
-
private
|
|
31
|
-
private
|
|
29
|
+
private _dragEdgeIndex;
|
|
30
|
+
private _dragLastClientX;
|
|
31
|
+
private _columnWidthTarget;
|
|
32
32
|
private _savedColumnWidths;
|
|
33
33
|
private _columnConfigs;
|
|
34
34
|
private _exportMenuEnabled;
|
|
@@ -41,6 +41,9 @@ declare class Table extends Component<TableOptions> {
|
|
|
41
41
|
private _rotatedFieldByName;
|
|
42
42
|
private _sourceRefresh;
|
|
43
43
|
private _suppressSelectionForward;
|
|
44
|
+
private _autoWidthsSampled;
|
|
45
|
+
private _widthRefs;
|
|
46
|
+
private _sampledCandidates;
|
|
44
47
|
constructor(store: AbstractStore, spec?: ColumnSpec, bodyFactory?: (store: AbstractStore) => Body);
|
|
45
48
|
on(event: "selection", listener: (records: ModelRecord[]) => void): this;
|
|
46
49
|
on(event: "cellclick", listener: (e: CellClickEvent) => void): this;
|
|
@@ -56,6 +59,8 @@ declare class Table extends Component<TableOptions> {
|
|
|
56
59
|
setStore(store: AbstractStore): this;
|
|
57
60
|
getColumnWidths(): number[];
|
|
58
61
|
setColumnWidths(widths: number[]): this;
|
|
62
|
+
getAvailableColumnWidth(): number;
|
|
63
|
+
getColumnWidthTarget(): number;
|
|
59
64
|
setColumnVisible(fieldName: string, visible: boolean): this;
|
|
60
65
|
getHeader(): import("../../component/table/Header.js")._TableHeader;
|
|
61
66
|
isHeaderVisible(): boolean;
|
|
@@ -71,7 +76,6 @@ declare class Table extends Component<TableOptions> {
|
|
|
71
76
|
getSelectedRecord(): ModelRecord | null;
|
|
72
77
|
getSelectedRecords(): ModelRecord[];
|
|
73
78
|
addComponent(row: TableHeader | Body | FooterRow, constraints?: LayoutConstraints): this;
|
|
74
|
-
private defaultColumnWidth;
|
|
75
79
|
private trimToTarget;
|
|
76
80
|
private buildColumnConfigs;
|
|
77
81
|
private initHiddenFromSpec;
|
|
@@ -92,6 +96,23 @@ declare class Table extends Component<TableOptions> {
|
|
|
92
96
|
private onColumnResizeStart;
|
|
93
97
|
private onColumnResize;
|
|
94
98
|
private resetColumns;
|
|
99
|
+
isAutoSizeColumns(): boolean;
|
|
100
|
+
getColumnMinWidth(column: Column): number;
|
|
101
|
+
getIntrinsicColumnWidths(): Array<number | null>;
|
|
102
|
+
private clampColumnWidth;
|
|
103
|
+
private flexColumnWidth;
|
|
104
|
+
private measureHeaders;
|
|
105
|
+
private measureContent;
|
|
106
|
+
private resolveContentCandidates;
|
|
107
|
+
private collectCandidates;
|
|
108
|
+
private keepLongest;
|
|
109
|
+
private samplesRecordText;
|
|
110
|
+
private sampledDigits;
|
|
111
|
+
private showsSeconds;
|
|
112
|
+
private columnWidthPolicy;
|
|
113
|
+
private ensureWidthReferences;
|
|
114
|
+
private dateReferenceKeys;
|
|
115
|
+
private maybeResampleColumnWidths;
|
|
95
116
|
}
|
|
96
117
|
declare const TableCallable: import("../../core/Callable.js").Callable<typeof Table>;
|
|
97
118
|
type TableCallable = Table;
|
|
@@ -8,7 +8,7 @@ export interface ExportOptions {
|
|
|
8
8
|
export declare class TableExporter {
|
|
9
9
|
static exportCSV(columns: Column[], records: ModelRecord[], columnConfigs: Map<string, ColumnConfig>, options?: ExportOptions): void;
|
|
10
10
|
static exportJSON(columns: Column[], records: ModelRecord[], columnConfigs: Map<string, ColumnConfig>, options?: ExportOptions): void;
|
|
11
|
-
|
|
11
|
+
static formatValue(column: Column, value: any, columnConfigs: Map<string, ColumnConfig>): any;
|
|
12
12
|
private static escapeCSVField;
|
|
13
13
|
private static download;
|
|
14
14
|
}
|
|
@@ -3,6 +3,7 @@ import { AbstractStore } from "../../data/AbstractStore.js";
|
|
|
3
3
|
import { Container } from "../../core/Container.js";
|
|
4
4
|
import { PaginationBar } from "../../component/display/PaginationBar.js";
|
|
5
5
|
import { Table } from "../../component/table/Table.js";
|
|
6
|
+
import type { ColumnSpec } from "../../component/table/ColumnConfig.js";
|
|
6
7
|
import { ExportOptions } from "../../component/table/TableExporter.js";
|
|
7
8
|
declare class TablePanel extends Container {
|
|
8
9
|
private _table;
|
|
@@ -11,7 +12,7 @@ declare class TablePanel extends Container {
|
|
|
11
12
|
private _rejectBtn;
|
|
12
13
|
private _spinner;
|
|
13
14
|
private _paginationBar;
|
|
14
|
-
constructor(store: AbstractStore);
|
|
15
|
+
constructor(store: AbstractStore, spec?: ColumnSpec);
|
|
15
16
|
private refreshSyncButtons;
|
|
16
17
|
getTable(): Table;
|
|
17
18
|
getToolbar(): Component;
|
|
@@ -30,7 +30,7 @@ export declare class Cell<T> extends Component {
|
|
|
30
30
|
isReadOnly(): boolean;
|
|
31
31
|
setReadOnly(value: boolean): this;
|
|
32
32
|
setRequiredEmpty(value: boolean): this;
|
|
33
|
-
setBaseBackground(color: string): this;
|
|
33
|
+
setBaseBackground(color: string | null): this;
|
|
34
34
|
private _applyStateTint;
|
|
35
35
|
onKeyDown(evnt: CustomEvent<ForwardedKeyDetail>): void;
|
|
36
36
|
isEditing(): boolean;
|
|
@@ -16,6 +16,8 @@ declare class HeaderCell extends DefaultCell {
|
|
|
16
16
|
private _required;
|
|
17
17
|
constructor(text: String, fieldName: string, headerGlyph?: string | null);
|
|
18
18
|
protected init(element?: Handle): this;
|
|
19
|
+
setFieldName(name: string): this;
|
|
20
|
+
getFieldName(): string;
|
|
19
21
|
getHeaderGlyph(): string | null;
|
|
20
22
|
setHeaderGlyph(name: string | null): this;
|
|
21
23
|
private _mountHeaderGlyph;
|
|
@@ -49,6 +51,7 @@ declare class HeaderCell extends DefaultCell {
|
|
|
49
51
|
private onResizeDragStop;
|
|
50
52
|
setColumnFocused(focused: boolean): this;
|
|
51
53
|
isColumnFocused(): boolean;
|
|
54
|
+
protected destructor(): void;
|
|
52
55
|
}
|
|
53
56
|
declare const HeaderCellCallable: import("../../../core/Callable.js").Callable<typeof HeaderCell>;
|
|
54
57
|
type HeaderCellCallable = HeaderCell;
|
|
@@ -10,7 +10,7 @@ export type { CellType, ColumnConfig, ColumnSpec, ComboOption } from '../../comp
|
|
|
10
10
|
export { TableExporter } from '../../component/table/TableExporter.js';
|
|
11
11
|
export type { ExportOptions } from '../../component/table/TableExporter.js';
|
|
12
12
|
export { TableHeader } from '../../component/table/Header.js';
|
|
13
|
-
export type { TableHeaderEvent } from '../../component/table/Header.js';
|
|
13
|
+
export type { TableHeaderEvent, HeaderColumnGeometry } from '../../component/table/Header.js';
|
|
14
14
|
export { Body } from '../../component/table/Body.js';
|
|
15
15
|
export type { BodyEvent, CellClickEvent } from '../../component/table/Body.js';
|
|
16
16
|
export { TreeBody } from '../../component/table/TreeBody.js';
|
|
@@ -65,6 +65,7 @@ declare class Tree extends VirtualRowView<TreeRow, TreeOptions> {
|
|
|
65
65
|
private _handleDblClick;
|
|
66
66
|
private _updateSelectionStyle;
|
|
67
67
|
private _updateActiveDescendant;
|
|
68
|
+
protected onThemeReflow(): void;
|
|
68
69
|
protected renderWindow(): void;
|
|
69
70
|
private _bindAndMeasure;
|
|
70
71
|
private _positionRows;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component } from "../core/Component.js";
|
|
2
|
-
export type AriaRole = 'grid' | 'treegrid' | 'rowgroup' | 'row' | 'gridcell' | 'columnheader' | 'tablist' | 'tab' | 'tabpanel' | 'tree' | 'treeitem' | 'group' | 'button' | 'link' | 'region' | 'combobox' | 'listbox' | 'option' | 'menubar' | 'menuitem' | 'menu' | 'toolbar' | 'separator' | 'spinbutton' | 'progressbar' | 'status' | 'alert' | 'dialog' | 'checkbox' | 'radio' | 'slider' | 'switch';
|
|
2
|
+
export type AriaRole = 'grid' | 'treegrid' | 'rowgroup' | 'row' | 'gridcell' | 'columnheader' | 'tablist' | 'tab' | 'tabpanel' | 'tree' | 'treeitem' | 'group' | 'button' | 'link' | 'region' | 'combobox' | 'listbox' | 'option' | 'menubar' | 'menuitem' | 'menu' | 'toolbar' | 'separator' | 'spinbutton' | 'progressbar' | 'status' | 'alert' | 'dialog' | 'checkbox' | 'radio' | 'slider' | 'switch' | 'list' | 'listitem';
|
|
3
3
|
export type AriaSort = 'none' | 'ascending' | 'descending';
|
|
4
4
|
export type AriaLive = 'off' | 'polite' | 'assertive';
|
|
5
5
|
export type AriaOrientation = 'horizontal' | 'vertical';
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { Component, ComponentOptions } from "../core/Component.js";
|
|
2
|
-
export
|
|
2
|
+
export interface BodyOptions extends ComponentOptions {
|
|
3
|
+
favicon?: string | false;
|
|
4
|
+
}
|
|
5
|
+
export declare class Body extends Component<BodyOptions> {
|
|
3
6
|
private static readonly INSTANCE;
|
|
4
7
|
static getInstance(): Body;
|
|
5
|
-
static init(options?:
|
|
8
|
+
static init(options?: BodyOptions): Body;
|
|
9
|
+
protected applyOptions(options: BodyOptions): this;
|
|
10
|
+
setFavicon(favicon: string | false): this;
|
|
11
|
+
getFavicon(): string | false;
|
|
6
12
|
private constructor();
|
|
7
13
|
getElement(): import("../core/DOM.js").Handle;
|
|
8
14
|
protected init(): this;
|
|
@@ -250,6 +250,12 @@ declare class Component<TOptions extends ComponentOptions = ComponentOptions> ex
|
|
|
250
250
|
getMaxSize(): Size | null;
|
|
251
251
|
setMaxSize(size: Size): this;
|
|
252
252
|
getInnerSize(): Size | null;
|
|
253
|
+
getContentBounds(): {
|
|
254
|
+
x: number;
|
|
255
|
+
y: number;
|
|
256
|
+
width: number;
|
|
257
|
+
height: number;
|
|
258
|
+
} | null;
|
|
253
259
|
getBorderSize(): PerimeterSize;
|
|
254
260
|
private estimateBorderSideWidth;
|
|
255
261
|
getPerimeterSize(): PerimeterSize;
|
|
@@ -117,6 +117,7 @@ export interface DOMSource {
|
|
|
117
117
|
getViewportRect(component: Component): Rect;
|
|
118
118
|
getElementRect(handle: Handle): Rect;
|
|
119
119
|
measureText(text: string, options?: TextMeasureOptions): TextMetrics;
|
|
120
|
+
measureTextWidths(texts: string[], options?: TextMeasureOptions): number[];
|
|
120
121
|
resolveFontSizePx(fontSizeCSS: string): number;
|
|
121
122
|
measureFontMetrics(): {
|
|
122
123
|
ascent: number;
|
|
@@ -163,6 +164,7 @@ export interface DOMSource {
|
|
|
163
164
|
getBody(): Handle;
|
|
164
165
|
getHead(): Handle;
|
|
165
166
|
onFontsReady(callback: () => void): void;
|
|
167
|
+
startFontLoad(family: string): boolean;
|
|
166
168
|
getElementById(id: string): Handle | null;
|
|
167
169
|
getId(handle: Handle): string;
|
|
168
170
|
getDataset(handle: Handle, key: string): string | undefined;
|
|
@@ -246,6 +248,7 @@ export declare class ProductionDOMSource implements DOMSource {
|
|
|
246
248
|
getViewportRect(component: Component): Rect;
|
|
247
249
|
getElementRect(handle: Handle): Rect;
|
|
248
250
|
measureText(text: string, options?: TextMeasureOptions): TextMetrics;
|
|
251
|
+
measureTextWidths(texts: string[], options?: TextMeasureOptions): number[];
|
|
249
252
|
resolveFontSizePx(fontSizeCSS: string): number;
|
|
250
253
|
measureFontMetrics(): {
|
|
251
254
|
ascent: number;
|
|
@@ -292,6 +295,7 @@ export declare class ProductionDOMSource implements DOMSource {
|
|
|
292
295
|
getBody(): Handle;
|
|
293
296
|
getHead(): Handle;
|
|
294
297
|
onFontsReady(callback: () => void): void;
|
|
298
|
+
startFontLoad(family: string): boolean;
|
|
295
299
|
getElementById(id: string): Handle | null;
|
|
296
300
|
getId(handle: Handle): string;
|
|
297
301
|
getDataset(handle: Handle, key: string): string | undefined;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const DRAG_DISTRIBUTION_EPSILON = 0.000001;
|
|
2
|
+
export declare function chainRoom(group: number[], current: number[], sign: number, mins: number[], maxs: number[]): number;
|
|
3
|
+
export declare function distributeDragChain(group: number[], current: number[], delta: number, sign: number, mins: number[], maxs: number[], out: number[]): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const MARK_SVG = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\"><style>.pane{fill:#FFFFFF}.region{fill:#000000}@media(prefers-color-scheme:dark){.pane{fill:#505050}.region{fill:#78AAF0}}</style><clipPath id=\"plate\"><rect width=\"32\" height=\"32\" rx=\"6\"/></clipPath><g clip-path=\"url(#plate)\"><rect class=\"pane\" width=\"32\" height=\"32\"/><rect class=\"region\" width=\"32\" height=\"10\"/><rect class=\"region\" y=\"12\" width=\"10\" height=\"20\"/><rect class=\"region\" x=\"12\" y=\"12\" width=\"20\" height=\"20\"/></g></svg>";
|
|
2
|
+
export declare const DEFAULT_FAVICON: string;
|
|
3
|
+
export declare class Favicon {
|
|
4
|
+
private static _link;
|
|
5
|
+
static install(href?: string): boolean;
|
|
6
|
+
static _reset(): void;
|
|
7
|
+
}
|
|
@@ -485,6 +485,7 @@ export declare class ThemeManager {
|
|
|
485
485
|
static setTheme(theme: Theme): void;
|
|
486
486
|
private static fontReflowScheduled;
|
|
487
487
|
private static scheduleFontReflow;
|
|
488
|
+
private static onFontsSettled;
|
|
488
489
|
private static reflowText;
|
|
489
490
|
static getTheme(): Theme;
|
|
490
491
|
static getResolvedScale(): ResolvedScale;
|
|
@@ -18,6 +18,7 @@ export interface TextMetrics {
|
|
|
18
18
|
export declare namespace Util {
|
|
19
19
|
function measureTextSize(text: string, options?: TextMeasureOptions): Size;
|
|
20
20
|
function measureTextWidth(text: string, options?: TextMeasureOptions): number;
|
|
21
|
+
function measureTextWidths(texts: string[], options?: TextMeasureOptions): number[];
|
|
21
22
|
function lineHeightPx(options?: {
|
|
22
23
|
fontSizePx?: number;
|
|
23
24
|
linePadding?: boolean | number;
|
|
@@ -24,6 +24,8 @@ export { Aria } from '../core/Aria.js';
|
|
|
24
24
|
export type { AriaRole, AriaSort, AriaLive, AriaOrientation } from '../core/Aria.js';
|
|
25
25
|
export { RovingTabIndex } from '../core/RovingTabIndex.js';
|
|
26
26
|
export { Body } from '../core/Body.js';
|
|
27
|
+
export type { BodyOptions } from '../core/Body.js';
|
|
28
|
+
export { Favicon, DEFAULT_FAVICON } from '../core/Favicon.js';
|
|
27
29
|
export { AnimatedDropdown, fadeShow, fadeHideAndDetach } from '../core/AnimatedDropdown.js';
|
|
28
30
|
export type { AnimatedDropdownOptions, FadeOptions } from '../core/AnimatedDropdown.js';
|
|
29
31
|
export { LayerManager } from '../core/LayerManager.js';
|
|
@@ -119,7 +119,6 @@ declare class Accordion extends LayoutManager {
|
|
|
119
119
|
private placeGutter;
|
|
120
120
|
private onGutterDragStart;
|
|
121
121
|
private onGutterDrag;
|
|
122
|
-
private distributeDragChain;
|
|
123
122
|
private onGutterDragEnd;
|
|
124
123
|
private computeShrinkRatio;
|
|
125
124
|
private openContentHeight;
|
|
@@ -19,12 +19,16 @@ export declare abstract class FlowLayout extends LayoutManager {
|
|
|
19
19
|
protected _align: AxisPosition;
|
|
20
20
|
protected _itemAlign: FlowItemAlign;
|
|
21
21
|
protected _justify: AxisSpread;
|
|
22
|
+
private _wrappedLineExtent;
|
|
22
23
|
constructor(options?: FlowLayoutOptions);
|
|
23
24
|
protected applyOptions(options: FlowLayoutOptions): void;
|
|
24
25
|
getComponentSpacing(): number;
|
|
25
26
|
setComponentSpacing(spacing: number): this;
|
|
26
27
|
getLineSpacing(): number;
|
|
27
28
|
setLineSpacing(lineSpacing: number): this;
|
|
29
|
+
protected getWrappedLineExtent(): number | null;
|
|
30
|
+
protected publishWrappedLineExtent(extent: number): void;
|
|
31
|
+
attach(container: Component): this;
|
|
28
32
|
getUniform(): FlowUniformity;
|
|
29
33
|
setUniform(uniform: FlowUniformity): this;
|
|
30
34
|
getAlign(): AxisPosition;
|
|
@@ -10,6 +10,9 @@ declare class HFlow extends FlowLayout {
|
|
|
10
10
|
private groupIntoRows;
|
|
11
11
|
private placeRows;
|
|
12
12
|
private cellsMainExtent;
|
|
13
|
+
private rowsCrossExtent;
|
|
14
|
+
private rowExtent;
|
|
15
|
+
private lineExtent;
|
|
13
16
|
}
|
|
14
17
|
declare const HFlowCallable: import("../core/Callable.js").Callable<typeof HFlow>;
|
|
15
18
|
type HFlowCallable = HFlow;
|
|
@@ -10,6 +10,7 @@ declare class VFlow extends FlowLayout {
|
|
|
10
10
|
private groupIntoColumns;
|
|
11
11
|
private placeColumns;
|
|
12
12
|
private cellsMainExtent;
|
|
13
|
+
private columnsCrossExtent;
|
|
13
14
|
}
|
|
14
15
|
declare const VFlowCallable: import("../core/Callable.js").Callable<typeof VFlow>;
|
|
15
16
|
type VFlowCallable = VFlow;
|
|
@@ -91,7 +91,7 @@ export declare abstract class AbstractWindow extends Container<WindowOptions> im
|
|
|
91
91
|
private readonly _boundOnBorderResize;
|
|
92
92
|
private readonly _boundOnBringToFront;
|
|
93
93
|
private readonly _boundOnThemeReflow;
|
|
94
|
-
constructor(options?: WindowOptions);
|
|
94
|
+
constructor(options?: WindowOptions, subclassDefaults?: Partial<WindowOptions>);
|
|
95
95
|
protected initChrome(options?: WindowOptions): void;
|
|
96
96
|
protected applyOptions(options: WindowOptions): this;
|
|
97
97
|
protected abstract wireMoveTrigger(): void;
|
|
@@ -138,6 +138,7 @@ declare class Dock extends Container<DockOptions> {
|
|
|
138
138
|
protected emit(event: "focus", payload: DockPanelEvent | null): void;
|
|
139
139
|
protected emit(event: "emptychange", payload: DockEmptyEvent): void;
|
|
140
140
|
protected emit(event: "exception", payload: DockExceptionEvent): void;
|
|
141
|
+
protected destructor(): void;
|
|
141
142
|
}
|
|
142
143
|
declare const DockCallable: import("../core/Callable.js").Callable<typeof Dock>;
|
|
143
144
|
type DockCallable = Dock;
|
|
@@ -11,6 +11,7 @@ declare class DropZoneOverlay extends Component {
|
|
|
11
11
|
setHighlight(zone: DropZone | null, valid?: boolean): void;
|
|
12
12
|
highlightFull(): void;
|
|
13
13
|
detach(): void;
|
|
14
|
+
protected destructor(): void;
|
|
14
15
|
}
|
|
15
16
|
declare const DropZoneOverlayCallable: import("../core/Callable.js").Callable<typeof DropZoneOverlay>;
|
|
16
17
|
type DropZoneOverlayCallable = DropZoneOverlay;
|
|
@@ -28,7 +28,7 @@ declare class Popover extends Container<PopoverOptions> implements DismissableLa
|
|
|
28
28
|
private _scrollAncestors;
|
|
29
29
|
private readonly _onWindowResize;
|
|
30
30
|
private readonly _onScroll;
|
|
31
|
-
constructor(options?: PopoverOptions);
|
|
31
|
+
constructor(options?: PopoverOptions, subclassDefaults?: Partial<PopoverOptions>);
|
|
32
32
|
protected applyOptions(options: PopoverOptions): this;
|
|
33
33
|
setPlacement(p: PopoverPlacement): this;
|
|
34
34
|
getPlacement(): PopoverPlacement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./FieldDecorator-
|
|
1
|
+
import{t as e}from"./FieldDecorator-CgAGcqCk.js";export{e as FieldDecorator};
|
package/llms.txt
CHANGED
|
@@ -101,6 +101,7 @@ Organized by task. Columns: task → symbol · import subpath · summary · docs
|
|
|
101
101
|
|
|
102
102
|
### App shell
|
|
103
103
|
- Map the URL to a top-level app section → **Router** · `@jimka/typescript-ui/router` · Maps the URL hash or path to a single top-level app section. Patterns are registered with register (e.g. `"/data/rows/:sel"`); on a navigat… · docs/concepts/routing.md
|
|
104
|
+
- Give the app a browser-tab icon → **Favicon** · `@jimka/typescript-ui/core` · Installs the browser-tab icon by appending a `<link rel="icon">` to `<head>`. · docs/components/Body.md
|
|
104
105
|
|
|
105
106
|
## Conventions (hard rules)
|
|
106
107
|
1. Never use CSS flex/grid or `position: relative` — arrange children with a LayoutManager (HBox/VBox/Border/Grid/Split/…). → docs/concepts/layout-system.md
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jimka/typescript-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.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",
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
"lint:fix": "eslint src --fix",
|
|
141
141
|
"lint:baseline": "node scripts/eslint/update-baseline.mjs",
|
|
142
142
|
"lint:dom-audit": "node scripts/eslint/dom-audit.mjs",
|
|
143
|
-
"test:lint": "node scripts/eslint/forward-super-options.test.mjs && node scripts/eslint/no-element-style.test.mjs && node scripts/eslint/no-raw-dom.test.mjs",
|
|
143
|
+
"test:lint": "node scripts/eslint/forward-super-options.test.mjs && node scripts/eslint/no-element-style.test.mjs && node scripts/eslint/no-raw-dom.test.mjs && node scripts/eslint/require-content-bounds.test.mjs && node scripts/eslint/require-subclass-defaults.test.mjs",
|
|
144
144
|
"test": "npm run typecheck:test && vitest run",
|
|
145
145
|
"test:watch": "vitest",
|
|
146
146
|
"test:coverage": "vitest run --coverage",
|