@jimka/typescript-ui 0.2.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/README.md +4 -0
- package/THIRD-PARTY-NOTICES.md +7 -3
- package/dist/lib/{AbstractBooleanInput-BGesvIZy.js → AbstractBooleanInput-DSwKBAic.js} +2 -2
- package/dist/lib/{AbstractBooleanInput-BGesvIZy.js.map → AbstractBooleanInput-DSwKBAic.js.map} +1 -1
- package/dist/lib/{AbstractInput-BxOtFrER.js → AbstractInput-BmWGJTs1.js} +2 -2
- package/dist/lib/{AbstractInput-BxOtFrER.js.map → AbstractInput-BmWGJTs1.js.map} +1 -1
- package/dist/lib/AnchorConstraints-CVrMP9rz.js +2 -0
- package/dist/lib/AnchorConstraints-CVrMP9rz.js.map +1 -0
- package/dist/lib/{AnimatedDropdown-CZQEqQi-.js → AnimatedDropdown-DKas40B-.js} +2 -2
- package/dist/lib/{AnimatedDropdown-CZQEqQi-.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-U1rsP4v8.js.map → Button-bjpWruNc.js.map} +1 -1
- package/dist/lib/{Card-BVwOS8AG.js → Card-BdfbvOD_.js} +2 -2
- package/dist/lib/{Card-BVwOS8AG.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-D5H8VxJK.js.map → Container-CAQpj4yb.js.map} +1 -1
- package/dist/lib/DOM-67StIm5G.js +2 -0
- 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-CJs9gwqH.js → FieldDecorator-CgAGcqCk.js} +2 -2
- package/dist/lib/{FieldDecorator-CJs9gwqH.js.map → FieldDecorator-CgAGcqCk.js.map} +1 -1
- package/dist/lib/{Fit-DjRsiwlg.js → Fit-DIYt2aQB.js} +2 -2
- package/dist/lib/{Fit-DjRsiwlg.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-DdL9TVeJ.js → Grid-ViA0joow.js} +2 -2
- package/dist/lib/{Grid-DdL9TVeJ.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-BT66TY83.js → LayoutSerialization-D82UtnDD.js} +2 -2
- package/dist/lib/{LayoutSerialization-BT66TY83.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 +2 -0
- package/dist/lib/MemoryStore-DT6iWWco.js.map +1 -0
- package/dist/lib/Menu-B_-SQj72.js +2 -0
- package/dist/lib/Menu-B_-SQj72.js.map +1 -0
- package/dist/lib/{MenuButton-VJ5uC3c1.js → MenuButton-C79l8Ysf.js} +2 -2
- package/dist/lib/{MenuButton-VJ5uC3c1.js.map → MenuButton-C79l8Ysf.js.map} +1 -1
- package/dist/lib/{Panel-DzWdYwq1.js → Panel-D2X33qR6.js} +2 -2
- package/dist/lib/{Panel-DzWdYwq1.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-zJKtGyNJ.js → ProgressSpinner-DCyq02pd.js} +2 -2
- package/dist/lib/{ProgressSpinner-zJKtGyNJ.js.map → ProgressSpinner-DCyq02pd.js.map} +1 -1
- package/dist/lib/{RadioButton-CYSSv4nV.js → RadioButton-BJIAQkII.js} +2 -2
- package/dist/lib/{RadioButton-CYSSv4nV.js.map → RadioButton-BJIAQkII.js.map} +1 -1
- package/dist/lib/{RovingTabIndex-BSZ31Vp5.js → RovingTabIndex-DFJyoveq.js} +2 -2
- package/dist/lib/{RovingTabIndex-BSZ31Vp5.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-D9NGW4QG.js → Spacer-D159iJy9.js} +2 -2
- package/dist/lib/{Spacer-D9NGW4QG.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-D5pg7taZ.js +2 -0
- package/dist/lib/Text-D5pg7taZ.js.map +1 -0
- package/dist/lib/Tooltip-DzK6LxUt.js +3 -0
- package/dist/lib/{Tooltip-tkXDk5Bo.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 +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/data.es.js.map +1 -1
- package/dist/lib/glyphs/solid/index.es.js +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/router.es.js.map +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/DiagramEdgeLayer.d.ts +14 -1
- package/dist/lib/types/component/diagram/DiagramModel.d.ts +1 -0
- package/dist/lib/types/component/diagram/DiagramNode.d.ts +5 -1
- package/dist/lib/types/component/diagram/DiagramView.d.ts +76 -5
- package/dist/lib/types/component/diagram/ElkLayoutEngine.d.ts +14 -1
- package/dist/lib/types/component/diagram/index.d.ts +2 -2
- 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 +4 -3
- 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/Text.d.ts +3 -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/shared/selectionsEqual.d.ts +1 -0
- 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 +6 -0
- package/dist/lib/types/component/table/ColumnConfig.d.ts +4 -0
- package/dist/lib/types/component/table/Header.d.ts +25 -2
- package/dist/lib/types/component/table/Row.d.ts +13 -2
- package/dist/lib/types/component/table/Table.d.ts +45 -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 +4 -0
- package/dist/lib/types/component/table/index.d.ts +2 -2
- package/dist/lib/types/component/tree/Tree.d.ts +2 -0
- package/dist/lib/types/core/Aria.d.ts +1 -3
- package/dist/lib/types/core/Body.d.ts +9 -2
- package/dist/lib/types/core/ClassStyleRules.d.ts +17 -0
- package/dist/lib/types/core/Component.d.ts +16 -2
- package/dist/lib/types/core/ComponentDefaults.d.ts +1 -0
- package/dist/lib/types/core/DOM.d.ts +15 -2
- package/dist/lib/types/core/DragChain.d.ts +3 -0
- package/dist/lib/types/core/ElementAttributes.d.ts +15 -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/PendingTransitions.d.ts +4 -0
- package/dist/lib/types/core/StyleTarget.d.ts +1 -0
- package/dist/lib/types/core/Theme.d.ts +1 -0
- package/dist/lib/types/core/Util.d.ts +3 -0
- package/dist/lib/types/core/index.d.ts +3 -0
- package/dist/lib/types/layout/Accordion.d.ts +0 -1
- package/dist/lib/types/layout/Border.d.ts +1 -0
- 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/Tab.d.ts +4 -1
- package/dist/lib/types/layout/Table.d.ts +1 -0
- package/dist/lib/types/layout/VFlow.d.ts +1 -0
- package/dist/lib/types/overlay/AbstractWindow.d.ts +2 -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/types/router/RoutePattern.d.ts +7 -0
- package/dist/lib/types/router/Router.d.ts +13 -2
- package/dist/lib/types/router/index.d.ts +1 -1
- package/dist/lib/validation.es.js +1 -1
- package/llms.txt +2 -1
- package/package.json +5 -9
- package/dist/lib/Border-BgaZkc1R.js +0 -2
- package/dist/lib/Border-BgaZkc1R.js.map +0 -1
- package/dist/lib/BoxLayout-DrKGfsup.js +0 -2
- package/dist/lib/BoxLayout-DrKGfsup.js.map +0 -1
- package/dist/lib/Button-U1rsP4v8.js +0 -2
- package/dist/lib/ComboBox-B9EDPu6T.js +0 -2
- package/dist/lib/ComboBox-B9EDPu6T.js.map +0 -1
- package/dist/lib/Component-DXf5a3g0.js +0 -2
- package/dist/lib/Component-DXf5a3g0.js.map +0 -1
- package/dist/lib/Container-D5H8VxJK.js +0 -2
- package/dist/lib/DOM-CGn7xyTw.js +0 -2
- package/dist/lib/DOM-CGn7xyTw.js.map +0 -1
- package/dist/lib/DragManager-CI4mZQFy.js +0 -2
- package/dist/lib/DragManager-CI4mZQFy.js.map +0 -1
- package/dist/lib/Glyph-KEf4nIv2.js +0 -2
- package/dist/lib/Glyph-KEf4nIv2.js.map +0 -1
- package/dist/lib/GridConstraints-DkLueyrf.js +0 -2
- package/dist/lib/GridConstraints-DkLueyrf.js.map +0 -1
- package/dist/lib/HBox-Ce0GTCJP.js +0 -2
- package/dist/lib/HBox-Ce0GTCJP.js.map +0 -1
- package/dist/lib/Header-BQIVpBte.js +0 -2
- package/dist/lib/Header-BQIVpBte.js.map +0 -1
- package/dist/lib/IconText-Bo4Qcnot.js +0 -2
- package/dist/lib/IconText-Bo4Qcnot.js.map +0 -1
- package/dist/lib/LayoutSizes-DU3qSq0w.js +0 -2
- package/dist/lib/LayoutSizes-DU3qSq0w.js.map +0 -1
- package/dist/lib/List-DtTVTyWW.js +0 -2
- package/dist/lib/List-DtTVTyWW.js.map +0 -1
- package/dist/lib/Menu-Dz4L7EKJ.js +0 -2
- package/dist/lib/Menu-Dz4L7EKJ.js.map +0 -1
- package/dist/lib/Position-A39T7-_1.js +0 -2
- package/dist/lib/Position-A39T7-_1.js.map +0 -1
- package/dist/lib/Scrollbar-BhtOjqkG.js +0 -2
- package/dist/lib/Scrollbar-BhtOjqkG.js.map +0 -1
- package/dist/lib/Slider-CdXm7E64.js +0 -2
- package/dist/lib/Slider-CdXm7E64.js.map +0 -1
- package/dist/lib/TabButton-CThevdY_.js +0 -2
- package/dist/lib/TabButton-CThevdY_.js.map +0 -1
- package/dist/lib/Text-gz6qjFfP.js +0 -2
- package/dist/lib/Text-gz6qjFfP.js.map +0 -1
- package/dist/lib/Tooltip-tkXDk5Bo.js +0 -3
- package/dist/lib/VBox-EIqw85Rh.js +0 -2
- package/dist/lib/VBox-EIqw85Rh.js.map +0 -1
- package/dist/lib/VirtualRowView-BxpHQ_u8.js +0 -2
- package/dist/lib/VirtualRowView-BxpHQ_u8.js.map +0 -1
- package/dist/lib/VirtualScroller-DwEEJE1_.js +0 -2
- package/dist/lib/VirtualScroller-DwEEJE1_.js.map +0 -1
|
@@ -10,6 +10,7 @@ import { ColumnSpec } from "../../component/table/ColumnConfig.js";
|
|
|
10
10
|
import { Component, ComponentOptions } from "../../core/Component.js";
|
|
11
11
|
import { ExportOptions } from "../../component/table/TableExporter.js";
|
|
12
12
|
export type TableEvent = "selection" | "cellclick";
|
|
13
|
+
export type TableDisplayMode = "normal" | "rotated";
|
|
13
14
|
export interface TableOptions extends ComponentOptions {
|
|
14
15
|
}
|
|
15
16
|
declare class Table extends Component<TableOptions> {
|
|
@@ -25,13 +26,24 @@ declare class Table extends Component<TableOptions> {
|
|
|
25
26
|
private _footer;
|
|
26
27
|
private _footerVisible;
|
|
27
28
|
private _columnWidths;
|
|
28
|
-
private
|
|
29
|
-
private
|
|
30
|
-
private
|
|
29
|
+
private _dragEdgeIndex;
|
|
30
|
+
private _dragLastClientX;
|
|
31
|
+
private _columnWidthTarget;
|
|
31
32
|
private _savedColumnWidths;
|
|
32
33
|
private _columnConfigs;
|
|
33
34
|
private _exportMenuEnabled;
|
|
34
35
|
private _listeners;
|
|
36
|
+
private _displayMode;
|
|
37
|
+
private _rotatedRecord;
|
|
38
|
+
private _rotatedStore;
|
|
39
|
+
private _rotatedColumns;
|
|
40
|
+
private _rotatedConfigs;
|
|
41
|
+
private _rotatedFieldByName;
|
|
42
|
+
private _sourceRefresh;
|
|
43
|
+
private _suppressSelectionForward;
|
|
44
|
+
private _autoWidthsSampled;
|
|
45
|
+
private _widthRefs;
|
|
46
|
+
private _sampledCandidates;
|
|
35
47
|
constructor(store: AbstractStore, spec?: ColumnSpec, bodyFactory?: (store: AbstractStore) => Body);
|
|
36
48
|
on(event: "selection", listener: (records: ModelRecord[]) => void): this;
|
|
37
49
|
on(event: "cellclick", listener: (e: CellClickEvent) => void): this;
|
|
@@ -39,11 +51,16 @@ declare class Table extends Component<TableOptions> {
|
|
|
39
51
|
protected emit(event: "selection", records: ModelRecord[]): void;
|
|
40
52
|
protected emit(event: "cellclick", detail: CellClickEvent): void;
|
|
41
53
|
getColumns(): Column[];
|
|
54
|
+
private getSourceColumns;
|
|
55
|
+
getDisplayMode(): TableDisplayMode;
|
|
56
|
+
setDisplayMode(mode: TableDisplayMode): this;
|
|
42
57
|
getStore(): AbstractStore;
|
|
43
58
|
getModel(): import("../../data").AbstractModel;
|
|
44
59
|
setStore(store: AbstractStore): this;
|
|
45
60
|
getColumnWidths(): number[];
|
|
46
61
|
setColumnWidths(widths: number[]): this;
|
|
62
|
+
getAvailableColumnWidth(): number;
|
|
63
|
+
getColumnWidthTarget(): number;
|
|
47
64
|
setColumnVisible(fieldName: string, visible: boolean): this;
|
|
48
65
|
getHeader(): import("../../component/table/Header.js")._TableHeader;
|
|
49
66
|
isHeaderVisible(): boolean;
|
|
@@ -59,11 +76,18 @@ declare class Table extends Component<TableOptions> {
|
|
|
59
76
|
getSelectedRecord(): ModelRecord | null;
|
|
60
77
|
getSelectedRecords(): ModelRecord[];
|
|
61
78
|
addComponent(row: TableHeader | Body | FooterRow, constraints?: LayoutConstraints): this;
|
|
62
|
-
private defaultColumnWidth;
|
|
63
79
|
private trimToTarget;
|
|
64
80
|
private buildColumnConfigs;
|
|
65
81
|
private initHiddenFromSpec;
|
|
66
82
|
private getEffectiveHiddenSet;
|
|
83
|
+
private bindSourceStore;
|
|
84
|
+
private unbindSourceStore;
|
|
85
|
+
private onSourceStoreChange;
|
|
86
|
+
private ensureRotatedStore;
|
|
87
|
+
private rebuildRotatedStore;
|
|
88
|
+
private rotatedCellType;
|
|
89
|
+
private rotatedCellValues;
|
|
90
|
+
private bindView;
|
|
67
91
|
private showColumnMenu;
|
|
68
92
|
setExportMenuEnabled(enabled: boolean): this;
|
|
69
93
|
exportCSV(options?: ExportOptions): void;
|
|
@@ -72,6 +96,23 @@ declare class Table extends Component<TableOptions> {
|
|
|
72
96
|
private onColumnResizeStart;
|
|
73
97
|
private onColumnResize;
|
|
74
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;
|
|
75
116
|
}
|
|
76
117
|
declare const TableCallable: import("../../core/Callable.js").Callable<typeof Table>;
|
|
77
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;
|
|
@@ -26,6 +28,7 @@ declare class HeaderCell extends DefaultCell {
|
|
|
26
28
|
} | null;
|
|
27
29
|
clearSortState(): this;
|
|
28
30
|
setRequired(value: boolean): this;
|
|
31
|
+
setHeaderText(text: String): this;
|
|
29
32
|
private _renderTitle;
|
|
30
33
|
on(event: "commit", listener: (value: String | null) => void): this;
|
|
31
34
|
on(event: "editend", listener: () => void): this;
|
|
@@ -48,6 +51,7 @@ declare class HeaderCell extends DefaultCell {
|
|
|
48
51
|
private onResizeDragStop;
|
|
49
52
|
setColumnFocused(focused: boolean): this;
|
|
50
53
|
isColumnFocused(): boolean;
|
|
54
|
+
protected destructor(): void;
|
|
51
55
|
}
|
|
52
56
|
declare const HeaderCellCallable: import("../../../core/Callable.js").Callable<typeof HeaderCell>;
|
|
53
57
|
type HeaderCellCallable = HeaderCell;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Table } from '../../component/table/Table.js';
|
|
2
|
-
export type { TableOptions, TableEvent } from '../../component/table/Table.js';
|
|
2
|
+
export type { TableOptions, TableEvent, TableDisplayMode } from '../../component/table/Table.js';
|
|
3
3
|
export { TablePanel } from '../../component/table/TablePanel.js';
|
|
4
4
|
export { TreeTable } from '../../component/table/TreeTable.js';
|
|
5
5
|
export type { RowReparentDetail } from '../../component/table/TreeTable.js';
|
|
@@ -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';
|
|
@@ -54,6 +54,7 @@ declare class Tree extends VirtualRowView<TreeRow, TreeOptions> {
|
|
|
54
54
|
private _reflattenAndRender;
|
|
55
55
|
private _onToggle;
|
|
56
56
|
private _loadAndExpand;
|
|
57
|
+
private _notifySelectionChange;
|
|
57
58
|
private _rangeSelect;
|
|
58
59
|
private _selectAtIndex;
|
|
59
60
|
private _extendSelectionTo;
|
|
@@ -64,6 +65,7 @@ declare class Tree extends VirtualRowView<TreeRow, TreeOptions> {
|
|
|
64
65
|
private _handleDblClick;
|
|
65
66
|
private _updateSelectionStyle;
|
|
66
67
|
private _updateActiveDescendant;
|
|
68
|
+
protected onThemeReflow(): void;
|
|
67
69
|
protected renderWindow(): void;
|
|
68
70
|
private _bindAndMeasure;
|
|
69
71
|
private _positionRows;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Component } from "../core/Component.js";
|
|
2
|
-
|
|
3
|
-
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';
|
|
4
3
|
export type AriaSort = 'none' | 'ascending' | 'descending';
|
|
5
4
|
export type AriaLive = 'off' | 'polite' | 'assertive';
|
|
6
5
|
export type AriaOrientation = 'horizontal' | 'vertical';
|
|
@@ -70,6 +69,5 @@ export declare class Aria {
|
|
|
70
69
|
clearLabel(): this;
|
|
71
70
|
setOrientation(value: AriaOrientation): this;
|
|
72
71
|
getOrientation(): AriaOrientation | null;
|
|
73
|
-
applyToElement(element: Handle): void;
|
|
74
72
|
private setAttribute;
|
|
75
73
|
}
|
|
@@ -1,11 +1,18 @@
|
|
|
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;
|
|
9
15
|
private _onViewportResize;
|
|
16
|
+
private _onThemeReflow;
|
|
10
17
|
protected clampsToContentSize(): boolean;
|
|
11
18
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const COMPONENT_CLASS = "ts-ui-component";
|
|
2
|
+
interface ClassStyleDefaults {
|
|
3
|
+
visible?: boolean | null;
|
|
4
|
+
displayed?: boolean;
|
|
5
|
+
minSize?: {
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
} | null;
|
|
9
|
+
maxSize?: {
|
|
10
|
+
width: number;
|
|
11
|
+
height: number;
|
|
12
|
+
} | null;
|
|
13
|
+
overflow?: string | null;
|
|
14
|
+
}
|
|
15
|
+
type ClassStyleBag = Readonly<Record<string, string>>;
|
|
16
|
+
export declare function ensureClassStyleRule(ctor: Function, defaults: ClassStyleDefaults): ClassStyleBag | null;
|
|
17
|
+
export {};
|
|
@@ -74,7 +74,6 @@ declare class Component<TOptions extends ComponentOptions = ComponentOptions> ex
|
|
|
74
74
|
private readonly _ownedSelectors;
|
|
75
75
|
private readonly _themeCleanups;
|
|
76
76
|
private _tag;
|
|
77
|
-
private _attributes;
|
|
78
77
|
private _elementAttributes;
|
|
79
78
|
private _boxSizing;
|
|
80
79
|
private _left;
|
|
@@ -108,6 +107,7 @@ declare class Component<TOptions extends ComponentOptions = ComponentOptions> ex
|
|
|
108
107
|
private _borderWidths;
|
|
109
108
|
private _borderThemeSubscribed;
|
|
110
109
|
private _autoCommitStyle;
|
|
110
|
+
private _autoCommitAttributes;
|
|
111
111
|
private _layoutPaused;
|
|
112
112
|
private _aria;
|
|
113
113
|
private _whiteSpace;
|
|
@@ -115,6 +115,7 @@ declare class Component<TOptions extends ComponentOptions = ComponentOptions> ex
|
|
|
115
115
|
private _verticalAlign;
|
|
116
116
|
private _styleRule;
|
|
117
117
|
private _inlineStyle;
|
|
118
|
+
private _inheritedStyleBag;
|
|
118
119
|
private _clipFrame;
|
|
119
120
|
private _clipFrameStyle;
|
|
120
121
|
private _contentFrame;
|
|
@@ -122,7 +123,8 @@ declare class Component<TOptions extends ComponentOptions = ComponentOptions> ex
|
|
|
122
123
|
private _deferredStyleRules;
|
|
123
124
|
private _parent;
|
|
124
125
|
protected _options: TOptions;
|
|
125
|
-
protected _defaultOptions: TOptions
|
|
126
|
+
protected _defaultOptions: Readonly<TOptions>;
|
|
127
|
+
private _defaultLayoutManager;
|
|
126
128
|
constructor(options?: TOptions, subclassDefaults?: Partial<TOptions>);
|
|
127
129
|
protected applyOptions(options: TOptions): this;
|
|
128
130
|
protected applyChromeOptions(options: TOptions): void;
|
|
@@ -158,6 +160,9 @@ declare class Component<TOptions extends ComponentOptions = ComponentOptions> ex
|
|
|
158
160
|
getAutoCommitStyle(): boolean;
|
|
159
161
|
setAutoCommitStyle(value: boolean): this;
|
|
160
162
|
protected commitElementStyle(): this;
|
|
163
|
+
getAutoCommitAttributes(): boolean;
|
|
164
|
+
setAutoCommitAttributes(value: boolean): this;
|
|
165
|
+
protected commitElementAttributes(): this;
|
|
161
166
|
protected setElementCSSRules(values: Style): this;
|
|
162
167
|
protected setElementCSSRule(key: string, value: Object | null): this;
|
|
163
168
|
protected commitCSSRule(): this;
|
|
@@ -245,6 +250,12 @@ declare class Component<TOptions extends ComponentOptions = ComponentOptions> ex
|
|
|
245
250
|
getMaxSize(): Size | null;
|
|
246
251
|
setMaxSize(size: Size): this;
|
|
247
252
|
getInnerSize(): Size | null;
|
|
253
|
+
getContentBounds(): {
|
|
254
|
+
x: number;
|
|
255
|
+
y: number;
|
|
256
|
+
width: number;
|
|
257
|
+
height: number;
|
|
258
|
+
} | null;
|
|
248
259
|
getBorderSize(): PerimeterSize;
|
|
249
260
|
private estimateBorderSideWidth;
|
|
250
261
|
getPerimeterSize(): PerimeterSize;
|
|
@@ -326,6 +337,7 @@ declare class Component<TOptions extends ComponentOptions = ComponentOptions> ex
|
|
|
326
337
|
clearUserSelect(): this;
|
|
327
338
|
focus(preventScroll?: boolean): this;
|
|
328
339
|
unfocus(): this;
|
|
340
|
+
private writeRuleDeclaration;
|
|
329
341
|
applyStyle(element: Handle): this;
|
|
330
342
|
private applyBoxAndVisibilityStyles;
|
|
331
343
|
private replayGeometryStyles;
|
|
@@ -333,6 +345,7 @@ declare class Component<TOptions extends ComponentOptions = ComponentOptions> ex
|
|
|
333
345
|
private applyOverflowStyles;
|
|
334
346
|
private applyChromeStyles;
|
|
335
347
|
private applyMiscInlineStyles;
|
|
348
|
+
protected materialiseStyleRule(): void;
|
|
336
349
|
private materialiseDeferredRules;
|
|
337
350
|
sync(): void;
|
|
338
351
|
getParentComponent(): Component | null;
|
|
@@ -369,6 +382,7 @@ declare class Component<TOptions extends ComponentOptions = ComponentOptions> ex
|
|
|
369
382
|
addMouseDownSubtreeListener(listener: Event.Listener): this;
|
|
370
383
|
removeMouseDownSubtreeListener(listener: Event.Listener): this;
|
|
371
384
|
protected init(element?: Handle): this;
|
|
385
|
+
protected reattachElementBuffers(): this;
|
|
372
386
|
protected createRootElement(): Handle;
|
|
373
387
|
protected render(): Handle;
|
|
374
388
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function resolveClassDefaults<TOptions>(ctor: Function, subclassDefaults: Partial<TOptions> | undefined): Readonly<TOptions>;
|
|
@@ -63,7 +63,7 @@ export interface DOMSink {
|
|
|
63
63
|
apply(handle: Handle, patch: ElementPatch): void;
|
|
64
64
|
edit(handle: Handle): PatchBuilder;
|
|
65
65
|
release(handle: Handle): void;
|
|
66
|
-
|
|
66
|
+
setRuleStyles(rule: CSSStyleRule, styles: Record<string, string | null>): void;
|
|
67
67
|
ensureStyleRule(selector: string): CSSStyleRule;
|
|
68
68
|
deleteStyleRule(selector: string): void;
|
|
69
69
|
ensureKeyframes(name: string, body: string): void;
|
|
@@ -81,6 +81,8 @@ export interface DOMSink {
|
|
|
81
81
|
setSelectionRange(handle: Handle, start: number, end: number): void;
|
|
82
82
|
setLocationHash(hash: string): void;
|
|
83
83
|
replaceLocationHash(hash: string): void;
|
|
84
|
+
pushHistoryPath(url: string): void;
|
|
85
|
+
replaceHistoryPath(url: string): void;
|
|
84
86
|
addListener<T extends Event = Event>(target: Handle, type: string, handler: (event: T) => void, options?: boolean | AddEventListenerOptions): void;
|
|
85
87
|
removeListener<T extends Event = Event>(target: Handle, type: string, handler: (event: T) => void, options?: boolean | EventListenerOptions): void;
|
|
86
88
|
dispatchEvent(target: Handle, event: Event): void;
|
|
@@ -115,6 +117,7 @@ export interface DOMSource {
|
|
|
115
117
|
getViewportRect(component: Component): Rect;
|
|
116
118
|
getElementRect(handle: Handle): Rect;
|
|
117
119
|
measureText(text: string, options?: TextMeasureOptions): TextMetrics;
|
|
120
|
+
measureTextWidths(texts: string[], options?: TextMeasureOptions): number[];
|
|
118
121
|
resolveFontSizePx(fontSizeCSS: string): number;
|
|
119
122
|
measureFontMetrics(): {
|
|
120
123
|
ascent: number;
|
|
@@ -137,6 +140,7 @@ export interface DOMSource {
|
|
|
137
140
|
isWindow(target: Handle | null): boolean;
|
|
138
141
|
getWindow(): Handle;
|
|
139
142
|
getLocationHash(): string;
|
|
143
|
+
getLocationPathname(): string;
|
|
140
144
|
contains(ancestor: Handle, node: Handle | null): boolean;
|
|
141
145
|
querySelector(root: Handle, selector: string): Handle | null;
|
|
142
146
|
querySelectorAll(root: Handle, selector: string): Handle[];
|
|
@@ -160,6 +164,7 @@ export interface DOMSource {
|
|
|
160
164
|
getBody(): Handle;
|
|
161
165
|
getHead(): Handle;
|
|
162
166
|
onFontsReady(callback: () => void): void;
|
|
167
|
+
startFontLoad(family: string): boolean;
|
|
163
168
|
getElementById(id: string): Handle | null;
|
|
164
169
|
getId(handle: Handle): string;
|
|
165
170
|
getDataset(handle: Handle, key: string): string | undefined;
|
|
@@ -182,13 +187,16 @@ export interface MediaQueryResult {
|
|
|
182
187
|
}
|
|
183
188
|
export declare class ProductionDOMSink implements DOMSink {
|
|
184
189
|
private readonly _timers;
|
|
190
|
+
private _ruleIndex;
|
|
191
|
+
private _indexedSheet;
|
|
185
192
|
apply(handle: Handle, patch: ElementPatch): void;
|
|
186
193
|
edit(handle: Handle): PatchBuilder;
|
|
187
194
|
release(handle: Handle): void;
|
|
188
|
-
|
|
195
|
+
setRuleStyles(rule: CSSStyleRule, styles: Record<string, string | null>): void;
|
|
189
196
|
ensureStyleRule(selector: string): CSSStyleRule;
|
|
190
197
|
deleteStyleRule(selector: string): void;
|
|
191
198
|
ensureKeyframes(name: string, body: string): void;
|
|
199
|
+
private ruleIndex;
|
|
192
200
|
private mainSheet;
|
|
193
201
|
createElement(tag: string): Handle;
|
|
194
202
|
createElementNS(ns: string, tag: string): Handle;
|
|
@@ -204,6 +212,8 @@ export declare class ProductionDOMSink implements DOMSink {
|
|
|
204
212
|
setSelectionRange(handle: Handle, start: number, end: number): void;
|
|
205
213
|
setLocationHash(hash: string): void;
|
|
206
214
|
replaceLocationHash(hash: string): void;
|
|
215
|
+
pushHistoryPath(url: string): void;
|
|
216
|
+
replaceHistoryPath(url: string): void;
|
|
207
217
|
addListener<T extends Event = Event>(target: Handle, type: string, handler: (event: T) => void, options?: boolean | AddEventListenerOptions): void;
|
|
208
218
|
removeListener<T extends Event = Event>(target: Handle, type: string, handler: (event: T) => void, options?: boolean | EventListenerOptions): void;
|
|
209
219
|
dispatchEvent(target: Handle, event: Event): void;
|
|
@@ -238,6 +248,7 @@ export declare class ProductionDOMSource implements DOMSource {
|
|
|
238
248
|
getViewportRect(component: Component): Rect;
|
|
239
249
|
getElementRect(handle: Handle): Rect;
|
|
240
250
|
measureText(text: string, options?: TextMeasureOptions): TextMetrics;
|
|
251
|
+
measureTextWidths(texts: string[], options?: TextMeasureOptions): number[];
|
|
241
252
|
resolveFontSizePx(fontSizeCSS: string): number;
|
|
242
253
|
measureFontMetrics(): {
|
|
243
254
|
ascent: number;
|
|
@@ -260,6 +271,7 @@ export declare class ProductionDOMSource implements DOMSource {
|
|
|
260
271
|
isWindow(target: Handle | null): boolean;
|
|
261
272
|
getWindow(): Handle;
|
|
262
273
|
getLocationHash(): string;
|
|
274
|
+
getLocationPathname(): string;
|
|
263
275
|
contains(ancestor: Handle, node: Handle | null): boolean;
|
|
264
276
|
querySelector(root: Handle, selector: string): Handle | null;
|
|
265
277
|
querySelectorAll(root: Handle, selector: string): Handle[];
|
|
@@ -283,6 +295,7 @@ export declare class ProductionDOMSource implements DOMSource {
|
|
|
283
295
|
getBody(): Handle;
|
|
284
296
|
getHead(): Handle;
|
|
285
297
|
onFontsReady(callback: () => void): void;
|
|
298
|
+
startFontLoad(family: string): boolean;
|
|
286
299
|
getElementById(id: string): Handle | null;
|
|
287
300
|
getId(handle: Handle): string;
|
|
288
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,15 @@
|
|
|
1
|
+
import type { Handle } from "../core/DOM.js";
|
|
2
|
+
declare class ElementAttributes {
|
|
3
|
+
private _handle;
|
|
4
|
+
private _state;
|
|
5
|
+
private _pending;
|
|
6
|
+
set(key: string, value: string): void;
|
|
7
|
+
remove(key: string): void;
|
|
8
|
+
queue(key: string, value: string): void;
|
|
9
|
+
queueRemove(key: string): void;
|
|
10
|
+
get(key: string): string | undefined;
|
|
11
|
+
flush(): void;
|
|
12
|
+
attach(handle: Handle): void;
|
|
13
|
+
isMaterialized(): boolean;
|
|
14
|
+
}
|
|
15
|
+
export { ElementAttributes };
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Handle } from "../core/DOM.js";
|
|
2
|
+
export declare function registerTransition(handle: Handle, cancel: () => void): void;
|
|
3
|
+
export declare function unregisterTransition(handle: Handle, cancel: () => void): void;
|
|
4
|
+
export declare function cancelTransitions(handle: Handle): void;
|
|
@@ -8,6 +8,7 @@ declare abstract class StyleTarget<T> {
|
|
|
8
8
|
queueMany(values: Record<string, string | null>): void;
|
|
9
9
|
flush(): void;
|
|
10
10
|
isMaterialized(): boolean;
|
|
11
|
+
hasQueuedWrites(): boolean;
|
|
11
12
|
protected materialize(target: T): void;
|
|
12
13
|
protected abstract writeStyle(key: string, value: string | null): void;
|
|
13
14
|
protected abstract flushDirty(dirty: Record<string, string | null>): void;
|
|
@@ -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;
|
|
@@ -28,6 +29,8 @@ export declare namespace Util {
|
|
|
28
29
|
bottom: number;
|
|
29
30
|
}): number;
|
|
30
31
|
function opticalCenterOffset(): number;
|
|
32
|
+
function textMetricsGeneration(): number;
|
|
33
|
+
function boundFontSizePx(cssVar: string, cssRule: string | null): number | null;
|
|
31
34
|
function invalidateTextMetricsCache(): void;
|
|
32
35
|
function generateUUID(): string;
|
|
33
36
|
function isInteger(value: Object): boolean;
|
|
@@ -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';
|
|
@@ -34,6 +36,7 @@ export { ThemeManager, BaseTheme, ClassicTheme, DarkTheme, ModernTheme, defineTh
|
|
|
34
36
|
export type { Theme, DeepPartial, ScaleToken, ResolvedScale, FontSizeToken } from '../core/Theme.js';
|
|
35
37
|
export { StyleTarget, StyleRule, InlineStyle } from '../core/StyleTarget.js';
|
|
36
38
|
export type { StyleRuleScope, StyleRuleSpec } from '../core/StyleTarget.js';
|
|
39
|
+
export { ElementAttributes } from '../core/ElementAttributes.js';
|
|
37
40
|
export { Binding } from '../core/Binding.js';
|
|
38
41
|
export type { BeforeRecordListener, BindingEvent } from '../core/Binding.js';
|
|
39
42
|
export type { Bindable, BindingAccessors } from '../core/Bindable.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;
|
|
@@ -32,6 +32,7 @@ declare class Border extends LayoutManager {
|
|
|
32
32
|
setRegionCollapsible(placement: Placement, value: boolean): this;
|
|
33
33
|
private ensureGutter;
|
|
34
34
|
private regionExtent;
|
|
35
|
+
private flooredMainExtent;
|
|
35
36
|
private applyRegionClip;
|
|
36
37
|
private updateRegionGutter;
|
|
37
38
|
private innerEdgeTrack;
|
|
@@ -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;
|
|
@@ -6,7 +6,7 @@ import type { ComponentFactory } from "../core/Component.js";
|
|
|
6
6
|
import { AbstractWindow } from "../overlay/AbstractWindow.js";
|
|
7
7
|
import type { TabToolDescriptor } from "../component/container/TabBar.js";
|
|
8
8
|
import type { AxisPosition, AxisEnd } from "../primitive/Axis.js";
|
|
9
|
-
export type TabEvent = "tabclose" | "empty" | "detach" | "activate" | "dock" | "exception";
|
|
9
|
+
export type TabEvent = "tabclose" | "empty" | "detach" | "select" | "activate" | "dock" | "exception";
|
|
10
10
|
export type TabDetachWindowMode = "bare" | "strip";
|
|
11
11
|
export type TabWidthMode = "fill" | "content" | "equal" | "fixed";
|
|
12
12
|
export type TabSide = "north" | "south" | "west" | "east";
|
|
@@ -109,6 +109,7 @@ declare class Tab extends LayoutManager {
|
|
|
109
109
|
addLazyTab(factory: ComponentFactory, name: string, constraints?: LayoutConstraints): void;
|
|
110
110
|
private syncUntabbedChildren;
|
|
111
111
|
private materializeAsync;
|
|
112
|
+
private announcePendingActivation;
|
|
112
113
|
private failEntry;
|
|
113
114
|
protected computeTotalMinSize(): Size;
|
|
114
115
|
doLayout(): void;
|
|
@@ -130,6 +131,7 @@ declare class Tab extends LayoutManager {
|
|
|
130
131
|
on(event: "tabclose", listener: (component: Component) => void): this;
|
|
131
132
|
on(event: "empty", listener: () => void): this;
|
|
132
133
|
on(event: "detach", listener: (window: AbstractWindow) => void): this;
|
|
134
|
+
on(event: "select", listener: (index: number, label: string) => void): this;
|
|
133
135
|
on(event: "activate", listener: (content: Component, index: number) => void): this;
|
|
134
136
|
on(event: "dock", listener: (content: Component) => void): this;
|
|
135
137
|
on(event: "exception", listener: (error: unknown, label: string) => void): this;
|
|
@@ -137,6 +139,7 @@ declare class Tab extends LayoutManager {
|
|
|
137
139
|
protected emit(event: "tabclose", component: Component): void;
|
|
138
140
|
protected emit(event: "empty"): void;
|
|
139
141
|
protected emit(event: "detach", window: AbstractWindow): void;
|
|
142
|
+
protected emit(event: "select", index: number, label: string): void;
|
|
140
143
|
protected emit(event: "activate", content: Component, index: number): void;
|
|
141
144
|
protected emit(event: "dock", content: Component): void;
|
|
142
145
|
protected emit(event: "exception", error: unknown, label: string): void;
|
|
@@ -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;
|
|
@@ -90,7 +90,8 @@ export declare abstract class AbstractWindow extends Container<WindowOptions> im
|
|
|
90
90
|
private readonly _boundOnSnapBlur;
|
|
91
91
|
private readonly _boundOnBorderResize;
|
|
92
92
|
private readonly _boundOnBringToFront;
|
|
93
|
-
|
|
93
|
+
private readonly _boundOnThemeReflow;
|
|
94
|
+
constructor(options?: WindowOptions, subclassDefaults?: Partial<WindowOptions>);
|
|
94
95
|
protected initChrome(options?: WindowOptions): void;
|
|
95
96
|
protected applyOptions(options: WindowOptions): this;
|
|
96
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;
|