@jimka/typescript-ui 0.6.0 → 0.8.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/AbstractInput-Dt9ooHjo.js +2 -0
- package/dist/lib/AbstractInput-Dt9ooHjo.js.map +1 -0
- package/dist/lib/AccordionConstraints-DahZEfEp.js +2 -0
- package/dist/lib/AccordionConstraints-DahZEfEp.js.map +1 -0
- package/dist/lib/{Anchor-CwRhdP2J.js → Anchor-DdYgyn2V.js} +2 -2
- package/dist/lib/{Anchor-CwRhdP2J.js.map → Anchor-DdYgyn2V.js.map} +1 -1
- package/dist/lib/AnimatedDropdown-_KhHzX5D.js +2 -0
- package/dist/lib/AnimatedDropdown-_KhHzX5D.js.map +1 -0
- package/dist/lib/Border-BELbqMDJ.js +2 -0
- package/dist/lib/Border-BELbqMDJ.js.map +1 -0
- package/dist/lib/Button-CKzjQyqA.js +2 -0
- package/dist/lib/Button-CKzjQyqA.js.map +1 -0
- package/dist/lib/{Card-QYo27r5b.js → Card-CAp7LcB5.js} +2 -2
- package/dist/lib/{Card-QYo27r5b.js.map → Card-CAp7LcB5.js.map} +1 -1
- package/dist/lib/Checkbox-CvAZJ4_T.js +2 -0
- package/dist/lib/Checkbox-CvAZJ4_T.js.map +1 -0
- package/dist/lib/CodeEditor-DoGGdL1Y.js +2 -0
- package/dist/lib/CodeEditor-DoGGdL1Y.js.map +1 -0
- package/dist/lib/ComboBox-DgjMnpdh.js +2 -0
- package/dist/lib/ComboBox-DgjMnpdh.js.map +1 -0
- package/dist/lib/Component-YrLXKJZS.js +2 -0
- package/dist/lib/Component-YrLXKJZS.js.map +1 -0
- package/dist/lib/Container-C5cxnioS.js +2 -0
- package/dist/lib/{Container-abY5Ww3W.js.map → Container-C5cxnioS.js.map} +1 -1
- package/dist/lib/DOM-DDhDN8lQ.js +2 -0
- package/dist/lib/DOM-DDhDN8lQ.js.map +1 -0
- package/dist/lib/Diagnostics-MI6Yw-3E.js +2 -0
- package/dist/lib/Diagnostics-MI6Yw-3E.js.map +1 -0
- package/dist/lib/Dialog-CXQXRQQK.js +2 -0
- package/dist/lib/Dialog-CXQXRQQK.js.map +1 -0
- package/dist/lib/DragManager-D5pBaPPg.js +2 -0
- package/dist/lib/DragManager-D5pBaPPg.js.map +1 -0
- package/dist/lib/{FieldDecorator-BlYMfZ9L.js → FieldDecorator-37IgKHHm.js} +2 -2
- package/dist/lib/{FieldDecorator-BlYMfZ9L.js.map → FieldDecorator-37IgKHHm.js.map} +1 -1
- package/dist/lib/{Fit-BhlB-HAo.js → Fit-amTWlJM2.js} +2 -2
- package/dist/lib/{Fit-BhlB-HAo.js.map → Fit-amTWlJM2.js.map} +1 -1
- package/dist/lib/{FloatingPanel-DkJXsZ2D.js → FloatingPanel-CwsFPYbc.js} +2 -2
- package/dist/lib/{FloatingPanel-DkJXsZ2D.js.map → FloatingPanel-CwsFPYbc.js.map} +1 -1
- package/dist/lib/Glyph-Cof7BxfJ.js +2 -0
- package/dist/lib/Glyph-Cof7BxfJ.js.map +1 -0
- package/dist/lib/{Grid-Daiz7F5d.js → Grid-BQZ4UIUH.js} +2 -2
- package/dist/lib/{Grid-Daiz7F5d.js.map → Grid-BQZ4UIUH.js.map} +1 -1
- package/dist/lib/GridConstraints-BkXa62z0.js +2 -0
- package/dist/lib/GridConstraints-BkXa62z0.js.map +1 -0
- package/dist/lib/{Header-Dql3Zxc6.js → Header-Cj33ABP1.js} +2 -2
- package/dist/lib/{Header-Dql3Zxc6.js.map → Header-Cj33ABP1.js.map} +1 -1
- package/dist/lib/{IconText-PUjhTLlp.js → IconText-Dp64iq_q.js} +2 -2
- package/dist/lib/{IconText-PUjhTLlp.js.map → IconText-Dp64iq_q.js.map} +1 -1
- package/dist/lib/LabeledGrid-Dpelrc1k.js +2 -0
- package/dist/lib/LabeledGrid-Dpelrc1k.js.map +1 -0
- package/dist/lib/LayoutSerialization-DgLJSuew.js +2 -0
- package/dist/lib/LayoutSerialization-DgLJSuew.js.map +1 -0
- package/dist/lib/Link-DE8tE3u3.js +2 -0
- package/dist/lib/Link-DE8tE3u3.js.map +1 -0
- package/dist/lib/List-TfgHScl3.js +2 -0
- package/dist/lib/List-TfgHScl3.js.map +1 -0
- package/dist/lib/ListenerBag-DYRl4TSb.js +2 -0
- package/dist/lib/ListenerBag-DYRl4TSb.js.map +1 -0
- package/dist/lib/{MemoryStore-DhPoU-7X.js → MemoryStore-ByGDEKYI.js} +2 -2
- package/dist/lib/{MemoryStore-DhPoU-7X.js.map → MemoryStore-ByGDEKYI.js.map} +1 -1
- package/dist/lib/Menu-BCQISKiQ.js +2 -0
- package/dist/lib/Menu-BCQISKiQ.js.map +1 -0
- package/dist/lib/{MenuButton-DCXi0tsP.js → MenuButton-BO4y3jf2.js} +2 -2
- package/dist/lib/{MenuButton-DCXi0tsP.js.map → MenuButton-BO4y3jf2.js.map} +1 -1
- package/dist/lib/{OverlayFade-3pof2AJH.js → OverlayFade-C1yQKffL.js} +2 -2
- package/dist/lib/{OverlayFade-3pof2AJH.js.map → OverlayFade-C1yQKffL.js.map} +1 -1
- package/dist/lib/{Panel-Cy1pdlWO.js → Panel-DlsVVuvn.js} +2 -2
- package/dist/lib/{Panel-Cy1pdlWO.js.map → Panel-DlsVVuvn.js.map} +1 -1
- package/dist/lib/{Position-BwtxouxK.js → Position-DWR1nIpA.js} +2 -2
- package/dist/lib/Position-DWR1nIpA.js.map +1 -0
- package/dist/lib/ProgressSpinner-BI9tFIVm.js +2 -0
- package/dist/lib/ProgressSpinner-BI9tFIVm.js.map +1 -0
- package/dist/lib/RadioButton-BxcuFChp.js +2 -0
- package/dist/lib/RadioButton-BxcuFChp.js.map +1 -0
- package/dist/lib/RadioMenuRow-B2bthoxj.js +2 -0
- package/dist/lib/RadioMenuRow-B2bthoxj.js.map +1 -0
- package/dist/lib/{RovingTabIndex-pHEv5oLD.js → RovingTabIndex-BttlsARv.js} +2 -2
- package/dist/lib/{RovingTabIndex-pHEv5oLD.js.map → RovingTabIndex-BttlsARv.js.map} +1 -1
- package/dist/lib/Scrollbar-orAWHWap.js +2 -0
- package/dist/lib/Scrollbar-orAWHWap.js.map +1 -0
- package/dist/lib/SelectableText-BbS_lRzY.js +2 -0
- package/dist/lib/SelectableText-BbS_lRzY.js.map +1 -0
- package/dist/lib/Slider-BvXc-cx5.js +2 -0
- package/dist/lib/Slider-BvXc-cx5.js.map +1 -0
- package/dist/lib/Spacer-C6faKe1V.js +2 -0
- package/dist/lib/Spacer-C6faKe1V.js.map +1 -0
- package/dist/lib/StyleTraits-CAtzeyRR.js +2 -0
- package/dist/lib/StyleTraits-CAtzeyRR.js.map +1 -0
- package/dist/lib/TabButton-BQDaBszs.js +2 -0
- package/dist/lib/TabButton-BQDaBszs.js.map +1 -0
- package/dist/lib/TabCloseButton-B-iLVPGZ.js +2 -0
- package/dist/lib/TabCloseButton-B-iLVPGZ.js.map +1 -0
- package/dist/lib/Table-3McEw5gr.js +7 -0
- package/dist/lib/Table-3McEw5gr.js.map +1 -0
- package/dist/lib/Text-CGFXPhHD.js +2 -0
- package/dist/lib/Text-CGFXPhHD.js.map +1 -0
- package/dist/lib/Tooltip-DgRHQZhL.js +3 -0
- package/dist/lib/Tooltip-DgRHQZhL.js.map +1 -0
- package/dist/lib/Tree-Bq2pjjAz.js +2 -0
- package/dist/lib/Tree-Bq2pjjAz.js.map +1 -0
- package/dist/lib/{VBox-DfJPWXqc.js → VBox-hFIZAEpT.js} +2 -2
- package/dist/lib/{VBox-DfJPWXqc.js.map → VBox-hFIZAEpT.js.map} +1 -1
- package/dist/lib/{VirtualScroller-DTIn19o1.js → VirtualScroller-Csa3GBSM.js} +2 -2
- package/dist/lib/{VirtualScroller-DTIn19o1.js.map → VirtualScroller-Csa3GBSM.js.map} +1 -1
- package/dist/lib/Window-CQ14_65z.js +2 -0
- package/dist/lib/Window-CQ14_65z.js.map +1 -0
- 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 +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 +1 -6
- 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-DpzpKLWE.js +2 -0
- package/dist/lib/core-DpzpKLWE.js.map +1 -0
- package/dist/lib/core.es.js +1 -2
- package/dist/lib/data.es.js +1 -1
- package/dist/lib/diagnostics.es.js +24 -0
- package/dist/lib/diagnostics.es.js.map +1 -0
- 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-8YvORgGS.js +2 -0
- package/dist/lib/primitive-8YvORgGS.js.map +1 -0
- package/dist/lib/primitive.es.js +1 -2
- package/dist/lib/router.es.js +1 -1
- package/dist/lib/selectionsEqual-DWdW5pxP.js +2 -0
- package/dist/lib/{selectionsEqual-gMG7gCVI.js.map → selectionsEqual-DWdW5pxP.js.map} +1 -1
- package/dist/lib/types/component/button/Button.d.ts +7 -6
- package/dist/lib/types/component/button/TabButton.d.ts +3 -0
- package/dist/lib/types/component/button/TabCloseButton.d.ts +3 -0
- package/dist/lib/types/component/button/ToggleButton.d.ts +2 -2
- package/dist/lib/types/component/chart/AbstractChart.d.ts +2 -0
- package/dist/lib/types/component/container/AccordionHeader.d.ts +6 -1
- package/dist/lib/types/component/container/AccordionIndicator.d.ts +2 -0
- package/dist/lib/types/component/container/FieldSet.d.ts +2 -0
- package/dist/lib/types/component/container/LabeledFieldSet.d.ts +1 -1
- package/dist/lib/types/component/container/LabeledGrid.d.ts +4 -1
- package/dist/lib/types/component/container/Legend.d.ts +2 -2
- package/dist/lib/types/component/container/MenuItem.d.ts +1 -0
- package/dist/lib/types/component/container/WindowBorder.d.ts +2 -2
- package/dist/lib/types/component/container/WindowHeader.d.ts +6 -0
- package/dist/lib/types/component/diagram/DiagramEdgeLayer.d.ts +10 -0
- package/dist/lib/types/component/diagram/DiagramGroupNode.d.ts +2 -0
- package/dist/lib/types/component/diagram/DiagramNode.d.ts +6 -2
- package/dist/lib/types/component/diagram/DiagramNodeLayer.d.ts +25 -0
- package/dist/lib/types/component/diagram/DiagramResidency.d.ts +11 -0
- package/dist/lib/types/component/diagram/DiagramView.d.ts +22 -0
- package/dist/lib/types/component/display/Markdown.d.ts +2 -1
- package/dist/lib/types/component/input/AbstractCalendarDropdown.d.ts +4 -2
- package/dist/lib/types/component/input/AbstractInput.d.ts +1 -0
- package/dist/lib/types/component/input/AbstractPickerField.d.ts +4 -0
- package/dist/lib/types/component/input/AutoCompleteDropdown.d.ts +2 -0
- package/dist/lib/types/component/input/AutoCompleteField.d.ts +1 -0
- package/dist/lib/types/component/input/ComboBox.d.ts +6 -1
- package/dist/lib/types/component/input/Link.d.ts +2 -0
- package/dist/lib/types/component/input/PasswordField.d.ts +2 -0
- package/dist/lib/types/component/input/PickerButton.d.ts +5 -2
- package/dist/lib/types/component/input/PickerInput.d.ts +2 -0
- package/dist/lib/types/component/input/SelectableText.d.ts +11 -0
- package/dist/lib/types/component/input/SpinButton.d.ts +3 -0
- package/dist/lib/types/component/input/Text.d.ts +12 -2
- package/dist/lib/types/component/input/TextArea.d.ts +2 -0
- package/dist/lib/types/component/input/TextField.d.ts +2 -0
- package/dist/lib/types/component/input/TextInput.d.ts +4 -0
- package/dist/lib/types/component/input/TimePickerDropdown.d.ts +3 -1
- package/dist/lib/types/component/input/UsernameField.d.ts +2 -0
- package/dist/lib/types/component/input/index.d.ts +2 -0
- package/dist/lib/types/component/list/AbstractMarkerList.d.ts +2 -0
- package/dist/lib/types/component/list/AbstractSelectableList.d.ts +6 -2
- package/dist/lib/types/component/list/ListItem.d.ts +2 -1
- package/dist/lib/types/component/menubar/MenuBarButton.d.ts +3 -0
- package/dist/lib/types/component/menubar/ToolBar.d.ts +2 -0
- package/dist/lib/types/component/table/Body.d.ts +54 -20
- package/dist/lib/types/component/table/Column.d.ts +2 -0
- package/dist/lib/types/component/table/ColumnConfig.d.ts +1 -0
- package/dist/lib/types/component/table/Footer.d.ts +2 -0
- package/dist/lib/types/component/table/Header.d.ts +8 -1
- package/dist/lib/types/component/table/Row.d.ts +22 -2
- package/dist/lib/types/component/table/Table.d.ts +6 -1
- package/dist/lib/types/component/table/TableExporter.d.ts +3 -0
- package/dist/lib/types/component/table/TablePanel.d.ts +6 -0
- package/dist/lib/types/component/table/TreeTablePanel.d.ts +6 -0
- package/dist/lib/types/component/table/cell/Cell.d.ts +8 -2
- package/dist/lib/types/component/table/cell/Default.d.ts +1 -1
- package/dist/lib/types/component/table/cell/Header.d.ts +4 -0
- package/dist/lib/types/component/table/cell/ParentHeader.d.ts +4 -0
- package/dist/lib/types/component/table/cell/ResizeHandle.d.ts +1 -1
- package/dist/lib/types/component/table/cell/renderer/CellRenderer.d.ts +2 -2
- package/dist/lib/types/component/table/cell/renderer/String.d.ts +3 -1
- package/dist/lib/types/component/table/index.d.ts +1 -1
- package/dist/lib/types/component/tree/TreeRow.d.ts +2 -0
- package/dist/lib/types/core/AnimatedDropdown.d.ts +2 -0
- package/dist/lib/types/core/Binding.d.ts +1 -0
- package/dist/lib/types/core/ClassStyleRules.d.ts +69 -4
- package/dist/lib/types/core/Component.d.ts +69 -14
- package/dist/lib/types/core/DOM.d.ts +11 -1
- package/dist/lib/types/core/Diagnostics.d.ts +22 -0
- package/dist/lib/types/core/Event.d.ts +7 -0
- package/dist/lib/types/core/LayerManager.d.ts +3 -0
- package/dist/lib/types/core/ListenerBag.d.ts +1 -0
- package/dist/lib/types/core/StyleTarget.d.ts +14 -0
- package/dist/lib/types/core/StyleTraits.d.ts +4 -0
- package/dist/lib/types/core/Theme.d.ts +6 -2
- package/dist/lib/types/core/Util.d.ts +4 -0
- package/dist/lib/types/core/index.d.ts +6 -3
- package/dist/lib/types/diagnostics/DiagnosticsOverlay.d.ts +29 -0
- package/dist/lib/types/diagnostics/DiagnosticsSampler.d.ts +61 -0
- package/dist/lib/types/diagnostics/StyleAudit.d.ts +19 -0
- package/dist/lib/types/diagnostics/StyleAuditOverlay.d.ts +12 -0
- package/dist/lib/types/diagnostics/StyleAuditView.d.ts +13 -0
- package/dist/lib/types/diagnostics/index.d.ts +7 -0
- package/dist/lib/types/layout/LayoutManager.d.ts +3 -0
- package/dist/lib/types/layout/Table.d.ts +3 -0
- package/dist/lib/types/overlay/AbstractWindow.d.ts +36 -0
- package/dist/lib/types/overlay/ButtonGroup.d.ts +1 -0
- package/dist/lib/types/overlay/Dialog.d.ts +1 -0
- package/dist/lib/types/overlay/Menu.d.ts +2 -0
- package/dist/lib/types/overlay/Notification.d.ts +0 -1
- package/dist/lib/types/overlay/PopupPanel.d.ts +2 -0
- package/dist/lib/types/overlay/RailHandle.d.ts +4 -5
- package/dist/lib/types/overlay/TabWindow.d.ts +3 -0
- package/dist/lib/types/overlay/Tooltip.d.ts +1 -0
- package/dist/lib/types/overlay/Window.d.ts +4 -1
- package/dist/lib/validation.es.js +1 -1
- package/llms.txt +2 -0
- package/package.json +5 -1
- package/dist/lib/AbstractInput-sRNPzWel.js +0 -2
- package/dist/lib/AbstractInput-sRNPzWel.js.map +0 -1
- package/dist/lib/AnimatedDropdown-H3Rh-YMZ.js +0 -2
- package/dist/lib/AnimatedDropdown-H3Rh-YMZ.js.map +0 -1
- package/dist/lib/Border-0DJFDiij.js +0 -2
- package/dist/lib/Border-0DJFDiij.js.map +0 -1
- package/dist/lib/Button-MpMIYBYJ.js +0 -2
- package/dist/lib/Button-MpMIYBYJ.js.map +0 -1
- package/dist/lib/Checkbox-D0JYK-wc.js +0 -2
- package/dist/lib/Checkbox-D0JYK-wc.js.map +0 -1
- package/dist/lib/CheckboxMenuRow-CesLhSnp.js +0 -2
- package/dist/lib/CheckboxMenuRow-CesLhSnp.js.map +0 -1
- package/dist/lib/CodeEditor-N1FQodcF.js +0 -2
- package/dist/lib/CodeEditor-N1FQodcF.js.map +0 -1
- package/dist/lib/ComboBox-Dx8Tk9yg.js +0 -2
- package/dist/lib/ComboBox-Dx8Tk9yg.js.map +0 -1
- package/dist/lib/Component-B0ShfPVi.js +0 -2
- package/dist/lib/Component-B0ShfPVi.js.map +0 -1
- package/dist/lib/Container-abY5Ww3W.js +0 -2
- package/dist/lib/DOM-C-Edb3tA.js +0 -2
- package/dist/lib/DOM-C-Edb3tA.js.map +0 -1
- package/dist/lib/Dialog-cbA9V17e.js +0 -2
- package/dist/lib/Dialog-cbA9V17e.js.map +0 -1
- package/dist/lib/Glyph-_VeBacS2.js +0 -2
- package/dist/lib/Glyph-_VeBacS2.js.map +0 -1
- package/dist/lib/GridConstraints-C58LuTqM.js +0 -2
- package/dist/lib/GridConstraints-C58LuTqM.js.map +0 -1
- package/dist/lib/LayoutSerialization-CMxunLfV.js +0 -2
- package/dist/lib/LayoutSerialization-CMxunLfV.js.map +0 -1
- package/dist/lib/List-nx8220Fi.js +0 -2
- package/dist/lib/List-nx8220Fi.js.map +0 -1
- package/dist/lib/ListenerBag-WPdKuuds.js +0 -2
- package/dist/lib/ListenerBag-WPdKuuds.js.map +0 -1
- package/dist/lib/Menu-Q0bpXXze.js +0 -2
- package/dist/lib/Menu-Q0bpXXze.js.map +0 -1
- package/dist/lib/Position-BwtxouxK.js.map +0 -1
- package/dist/lib/ProgressSpinner-DK8xEQ9y.js +0 -2
- package/dist/lib/ProgressSpinner-DK8xEQ9y.js.map +0 -1
- package/dist/lib/RadioButton-BEwpqg1k.js +0 -2
- package/dist/lib/RadioButton-BEwpqg1k.js.map +0 -1
- package/dist/lib/RadioMenuRow-DP5qPyFR.js +0 -2
- package/dist/lib/RadioMenuRow-DP5qPyFR.js.map +0 -1
- package/dist/lib/Scrollbar-t8fFrUVQ.js +0 -2
- package/dist/lib/Scrollbar-t8fFrUVQ.js.map +0 -1
- package/dist/lib/Slider-CTbwR6HR.js +0 -2
- package/dist/lib/Slider-CTbwR6HR.js.map +0 -1
- package/dist/lib/Spacer-srdN2d2b.js +0 -2
- package/dist/lib/Spacer-srdN2d2b.js.map +0 -1
- package/dist/lib/TabButton-DLoMQzky.js +0 -2
- package/dist/lib/TabButton-DLoMQzky.js.map +0 -1
- package/dist/lib/TabCloseButton-CY7BGitY.js +0 -2
- package/dist/lib/TabCloseButton-CY7BGitY.js.map +0 -1
- package/dist/lib/Text-CMKnK9uB.js +0 -2
- package/dist/lib/Text-CMKnK9uB.js.map +0 -1
- package/dist/lib/Tooltip-CUOJOqQi.js +0 -3
- package/dist/lib/Tooltip-CUOJOqQi.js.map +0 -1
- package/dist/lib/Tree-C64JNPWJ.js +0 -2
- package/dist/lib/Tree-C64JNPWJ.js.map +0 -1
- package/dist/lib/core.es.js.map +0 -1
- package/dist/lib/primitive.es.js.map +0 -1
- package/dist/lib/selectionsEqual-gMG7gCVI.js +0 -2
- package/dist/lib/types/component/table/CellGeometry.d.ts +0 -6
|
@@ -3,8 +3,11 @@ import { Component } from "../../core/Component.js";
|
|
|
3
3
|
import type { Handle } from "../../core/DOM.js";
|
|
4
4
|
import { DiagramData, DiagramEdgeData, DiagramNodeData } from "../../component/diagram/DiagramModel.js";
|
|
5
5
|
import { ElkLayoutEngine } from "../../component/diagram/ElkLayoutEngine.js";
|
|
6
|
+
import type { DiagramRect } from "../../component/diagram/DiagramResidency.js";
|
|
6
7
|
export type DiagramNodeRenderer = (data: DiagramNodeData) => Component;
|
|
7
8
|
export type DiagramViewEvent = "selection" | "activate" | "layout" | "contextmenu" | "edgehover" | "edgeleave";
|
|
9
|
+
export declare function medianLeafHeight(rects: Map<string, DiagramRect>, containerIds: ReadonlySet<string>): number;
|
|
10
|
+
export declare function shouldSimplify(nodeCount: number, medianHeight: number, zoom: number, simplified: boolean): boolean;
|
|
8
11
|
export interface DiagramViewOptions extends PanelOptions {
|
|
9
12
|
data?: DiagramData;
|
|
10
13
|
nodeRenderer?: DiagramNodeRenderer;
|
|
@@ -16,7 +19,9 @@ export interface DiagramViewOptions extends PanelOptions {
|
|
|
16
19
|
maxZoom?: number;
|
|
17
20
|
zoom?: number;
|
|
18
21
|
controls?: boolean;
|
|
22
|
+
simplifyAtLowZoom?: boolean;
|
|
19
23
|
initialFocusNode?: string;
|
|
24
|
+
fitOnLoad?: boolean;
|
|
20
25
|
listeners?: {
|
|
21
26
|
selection?: (nodes: DiagramNodeData[]) => void;
|
|
22
27
|
activate?: (node: DiagramNodeData) => void;
|
|
@@ -29,13 +34,19 @@ export interface DiagramViewOptions extends PanelOptions {
|
|
|
29
34
|
declare class DiagramView extends Panel<DiagramViewOptions> {
|
|
30
35
|
private _contentHost;
|
|
31
36
|
private _edgeLayer;
|
|
37
|
+
private _nodeLayer;
|
|
32
38
|
private _engine;
|
|
33
39
|
private _nodeComponents;
|
|
40
|
+
private _nodeRects;
|
|
34
41
|
private _nodeData;
|
|
35
42
|
private _containerIds;
|
|
36
43
|
private _incomingComponents;
|
|
44
|
+
private _incomingRects;
|
|
37
45
|
private _incomingData;
|
|
38
46
|
private _incomingContainerIds;
|
|
47
|
+
private _residentIds;
|
|
48
|
+
private _residencyViewport;
|
|
49
|
+
private _simplified;
|
|
39
50
|
private _selection;
|
|
40
51
|
private _nodeEmphasis;
|
|
41
52
|
private _layoutGeneration;
|
|
@@ -56,6 +67,7 @@ declare class DiagramView extends Panel<DiagramViewOptions> {
|
|
|
56
67
|
private _panX;
|
|
57
68
|
private _panY;
|
|
58
69
|
private _needsInitialCentre;
|
|
70
|
+
private _hasCentredOnce;
|
|
59
71
|
private _focusNodeId;
|
|
60
72
|
private _lastViewportWidth;
|
|
61
73
|
private _lastViewportHeight;
|
|
@@ -88,12 +100,18 @@ declare class DiagramView extends Panel<DiagramViewOptions> {
|
|
|
88
100
|
private joinEdgeStyles;
|
|
89
101
|
private handleLayoutFailure;
|
|
90
102
|
private applyTransformToHost;
|
|
103
|
+
private viewportGraphRect;
|
|
104
|
+
private updateResidency;
|
|
105
|
+
private mountNode;
|
|
106
|
+
private unmountNode;
|
|
91
107
|
getZoom(): number;
|
|
92
108
|
setZoom(zoom: number): this;
|
|
93
109
|
zoomToFit(): this;
|
|
110
|
+
private fitGraph;
|
|
94
111
|
resetView(): this;
|
|
95
112
|
zoomIn(): this;
|
|
96
113
|
zoomOut(): this;
|
|
114
|
+
private rearmCentreIfOffScreen;
|
|
97
115
|
private tryInitialCentre;
|
|
98
116
|
private centreGraph;
|
|
99
117
|
private zoomAboutViewportPoint;
|
|
@@ -131,6 +149,8 @@ declare class DiagramView extends Panel<DiagramViewOptions> {
|
|
|
131
149
|
private _handleClick;
|
|
132
150
|
private _handleDoubleClick;
|
|
133
151
|
private nodeIdAt;
|
|
152
|
+
private nodeIdAtEvent;
|
|
153
|
+
private nodeIdAtGraphPoint;
|
|
134
154
|
private _handleEdgeMouseMove;
|
|
135
155
|
private _handleEdgeMouseOut;
|
|
136
156
|
private leaveEdges;
|
|
@@ -145,6 +165,8 @@ declare class DiagramView extends Panel<DiagramViewOptions> {
|
|
|
145
165
|
private wireControlListeners;
|
|
146
166
|
isControlsVisible(): boolean;
|
|
147
167
|
setControlsVisible(value: boolean): this;
|
|
168
|
+
isSimplifyAtLowZoom(): boolean;
|
|
169
|
+
setSimplifyAtLowZoom(value: boolean): this;
|
|
148
170
|
}
|
|
149
171
|
declare const DiagramViewCallable: import("../../core/Callable.js").Callable<typeof DiagramView>;
|
|
150
172
|
type DiagramViewCallable = DiagramView;
|
|
@@ -28,13 +28,14 @@ declare class Markdown extends Component<MarkdownOptions> {
|
|
|
28
28
|
private readonly handleScheduledMeasure;
|
|
29
29
|
private _renderGeneration;
|
|
30
30
|
private _maxMeasure;
|
|
31
|
-
constructor(markdown?: string, options?: MarkdownOptions);
|
|
31
|
+
constructor(markdown?: string, options?: MarkdownOptions, subclassDefaults?: Partial<MarkdownOptions>);
|
|
32
32
|
protected applyOptions(options: MarkdownOptions): this;
|
|
33
33
|
getMarkdown(): string;
|
|
34
34
|
setLinkResolver(resolver: MarkdownLinkResolver): this;
|
|
35
35
|
getLinkResolver(): MarkdownLinkResolver;
|
|
36
36
|
setMaxMeasure(value: string | number | null): this;
|
|
37
37
|
getMaxMeasure(): string | number | null;
|
|
38
|
+
applyStyle(element: Handle): this;
|
|
38
39
|
setFontScale(value: number): this;
|
|
39
40
|
getFontScale(): number;
|
|
40
41
|
setMarkdown(markdown: string): this;
|
|
@@ -3,13 +3,14 @@ import { Component } from "../../core/Component.js";
|
|
|
3
3
|
import type { Handle } from "../../core/DOM.js";
|
|
4
4
|
import { Text } from "../../component/input/Text.js";
|
|
5
5
|
import { PickerColumn } from "../../component/input/PickerColumn.js";
|
|
6
|
+
import type { StyleBag } from "../../core/ClassStyleRules.js";
|
|
6
7
|
declare const MONTH_HEIGHT: number;
|
|
7
8
|
declare const NAV_BTN_WIDTH: number;
|
|
8
9
|
declare const HEADER_HEIGHT: number;
|
|
9
10
|
declare const CELL_HEIGHT: number;
|
|
10
11
|
declare const DAY_GRID_HEIGHT: number;
|
|
11
12
|
declare const ROOT_GAP: number;
|
|
12
|
-
declare
|
|
13
|
+
declare function navGlyphPx(): number;
|
|
13
14
|
declare const DAY_GRID_INDEX: number;
|
|
14
15
|
declare const DEFAULT_YEAR_SPAN_BACK: number;
|
|
15
16
|
declare const DEFAULT_YEAR_SPAN_FORWARD: number;
|
|
@@ -52,6 +53,7 @@ export interface AbstractCalendarDropdownOptions extends AnimatedDropdownOptions
|
|
|
52
53
|
maxDate?: Date | null;
|
|
53
54
|
}
|
|
54
55
|
declare abstract class AbstractCalendarDropdown<TOptions extends AbstractCalendarDropdownOptions = AbstractCalendarDropdownOptions> extends AnimatedDropdown<TOptions> {
|
|
56
|
+
protected static readonly ownClassStyleDefaults: StyleBag;
|
|
55
57
|
private readonly _onSelect;
|
|
56
58
|
protected _value: Date | null;
|
|
57
59
|
protected _monthAnchor: Date;
|
|
@@ -116,4 +118,4 @@ declare abstract class AbstractCalendarDropdown<TOptions extends AbstractCalenda
|
|
|
116
118
|
protected applyDateSelection(date: Date): void;
|
|
117
119
|
protected applyYearSelection(_year: number): void;
|
|
118
120
|
}
|
|
119
|
-
export { AbstractCalendarDropdown, PickerDay, PickerBlankCell, PickerNavButton, PickerMonthLabel, PickerDayHeader, dayStart, dayEnd, MONTH_HEIGHT, NAV_BTN_WIDTH, HEADER_HEIGHT, CELL_HEIGHT, DAY_GRID_HEIGHT, ROOT_GAP,
|
|
121
|
+
export { AbstractCalendarDropdown, PickerDay, PickerBlankCell, PickerNavButton, PickerMonthLabel, PickerDayHeader, dayStart, dayEnd, MONTH_HEIGHT, NAV_BTN_WIDTH, HEADER_HEIGHT, CELL_HEIGHT, DAY_GRID_HEIGHT, ROOT_GAP, navGlyphPx, DAY_GRID_INDEX, DEFAULT_YEAR_SPAN_BACK, DEFAULT_YEAR_SPAN_FORWARD, YEAR_TYPE_IDLE_MS, };
|
|
@@ -26,6 +26,7 @@ declare abstract class AbstractInput<TValue, TOptions extends AbstractInputOptio
|
|
|
26
26
|
protected notifyChange(value: TValue): void;
|
|
27
27
|
protected abstract applyEnabled(value: boolean): void;
|
|
28
28
|
protected abstract applyReadOnly(value: boolean): void;
|
|
29
|
+
protected pinSingleLineBoxHeight(h: number): void;
|
|
29
30
|
protected applyOptions(options: TOptions): this;
|
|
30
31
|
}
|
|
31
32
|
export { AbstractInput };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AbstractInput, AbstractInputOptions } from "../../component/input/AbstractInput.js";
|
|
2
2
|
import { AnimatedDropdown } from "../../core/AnimatedDropdown.js";
|
|
3
|
+
import type { StyleBag, StyleTrait } from "../../core/ClassStyleRules.js";
|
|
3
4
|
import type { Handle } from "../../core/DOM.js";
|
|
4
5
|
import { PickerInput } from "../../component/input/PickerInput.js";
|
|
5
6
|
import { PickerButton } from "../../component/input/PickerButton.js";
|
|
@@ -10,6 +11,8 @@ export interface AbstractPickerFieldOptions extends AbstractInputOptions {
|
|
|
10
11
|
declare abstract class AbstractPickerField<TValue, TDropdown extends AnimatedDropdown & {
|
|
11
12
|
showAt(anchorEl: Handle, value: TValue | null): unknown;
|
|
12
13
|
}, TOptions extends AbstractPickerFieldOptions = AbstractPickerFieldOptions> extends AbstractInput<TValue | null, TOptions> {
|
|
14
|
+
protected static readonly ownClassStyleDefaults: StyleBag;
|
|
15
|
+
protected static readonly ownStyleTraits: readonly StyleTrait[];
|
|
13
16
|
protected _input: PickerInput;
|
|
14
17
|
protected _button: PickerButton;
|
|
15
18
|
protected _dropdown: TDropdown | null;
|
|
@@ -17,6 +20,7 @@ declare abstract class AbstractPickerField<TValue, TDropdown extends AnimatedDro
|
|
|
17
20
|
protected _invalid: boolean;
|
|
18
21
|
protected _showSeconds: boolean;
|
|
19
22
|
constructor(options?: AbstractPickerFieldOptions, subclassDefaults?: Partial<AbstractPickerFieldOptions>);
|
|
23
|
+
protected destructor(): void;
|
|
20
24
|
protected abstract formatValue(value: TValue): string;
|
|
21
25
|
protected abstract parseRaw(raw: string): TValue | null;
|
|
22
26
|
protected abstract createDropdown(): TDropdown;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { AnimatedDropdown, AnimatedDropdownOptions } from "../../core/AnimatedDropdown.js";
|
|
2
2
|
import type { Handle } from "../../core/DOM.js";
|
|
3
3
|
import { List } from "../../component/list/List.js";
|
|
4
|
+
import type { StyleBag } from "../../core/ClassStyleRules.js";
|
|
4
5
|
interface AutoCompleteDropdownOptions extends AnimatedDropdownOptions {
|
|
5
6
|
}
|
|
6
7
|
declare class AutoCompleteDropdown extends AnimatedDropdown<AutoCompleteDropdownOptions> {
|
|
8
|
+
protected static readonly ownClassStyleDefaults: StyleBag;
|
|
7
9
|
private readonly _list;
|
|
8
10
|
private readonly _onSelect;
|
|
9
11
|
private readonly _onHide;
|
|
@@ -48,6 +48,7 @@ declare class AutoCompleteField extends AbstractInput<string, AutoCompleteFieldO
|
|
|
48
48
|
private onDropdownHidden;
|
|
49
49
|
private updateActiveDescendant;
|
|
50
50
|
private onSuggestionSelected;
|
|
51
|
+
protected destructor(): void;
|
|
51
52
|
}
|
|
52
53
|
declare const AutoCompleteFieldCallable: import("../../core/Callable.js").Callable<typeof AutoCompleteField>;
|
|
53
54
|
type AutoCompleteFieldCallable = AutoCompleteField;
|
|
@@ -6,6 +6,7 @@ import { ModelRecord } from "../../data/ModelRecord.js";
|
|
|
6
6
|
import { SelectableListItem, SelectableListItemSpec } from "../../component/list/AbstractSelectableList.js";
|
|
7
7
|
import { ListItemRenderer } from "../../component/list/ListItemRenderer.js";
|
|
8
8
|
import { List } from "../../component/list/List.js";
|
|
9
|
+
import type { StyleBag, StyleTrait } from "../../core/ClassStyleRules.js";
|
|
9
10
|
export interface ComboBoxOptions extends AbstractInputOptions {
|
|
10
11
|
items?: SelectableListItemSpec | Array<SelectableListItemSpec>;
|
|
11
12
|
store?: AbstractStore;
|
|
@@ -25,9 +26,10 @@ export interface ComboBoxOptions extends AbstractInputOptions {
|
|
|
25
26
|
};
|
|
26
27
|
}
|
|
27
28
|
declare class ComboBoxDropdown extends AnimatedDropdown<AnimatedDropdownOptions> {
|
|
29
|
+
protected static readonly ownClassStyleDefaults: StyleBag;
|
|
28
30
|
private readonly _list;
|
|
29
31
|
private _minWidth;
|
|
30
|
-
constructor(onSelect: (index: number) => void);
|
|
32
|
+
constructor(onSelect: (index: number) => void, subclassDefaults?: Partial<AnimatedDropdownOptions>);
|
|
31
33
|
handleKey(e: KeyboardEvent): boolean;
|
|
32
34
|
showAt(anchorEl: Handle, items: Array<SelectableListItem>, selectedIndex: number): this;
|
|
33
35
|
setMinWidth(px: number): this;
|
|
@@ -36,6 +38,7 @@ declare class ComboBoxDropdown extends AnimatedDropdown<AnimatedDropdownOptions>
|
|
|
36
38
|
private measureWidestLabel;
|
|
37
39
|
}
|
|
38
40
|
declare class ComboBox<TOptions extends ComboBoxOptions = ComboBoxOptions> extends AbstractInput<string, TOptions> {
|
|
41
|
+
protected static readonly ownStyleTraits: readonly StyleTrait[];
|
|
39
42
|
private readonly _dropdown;
|
|
40
43
|
private _label;
|
|
41
44
|
private _caret;
|
|
@@ -67,6 +70,8 @@ declare class ComboBox<TOptions extends ComboBoxOptions = ComboBoxOptions> exten
|
|
|
67
70
|
setItems(items: SelectableListItemSpec | Array<SelectableListItemSpec>): this;
|
|
68
71
|
addItem(item: SelectableListItemSpec): this;
|
|
69
72
|
setStore(store: AbstractStore, displayField: string, valueField?: string, glyphField?: string): this;
|
|
73
|
+
private unbindStore;
|
|
74
|
+
protected destructor(): void;
|
|
70
75
|
getStore(): AbstractStore | null;
|
|
71
76
|
setRendererFactory(factory: () => ListItemRenderer): this;
|
|
72
77
|
getRendererFactory(): () => ListItemRenderer;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Text, TextOptions } from "../../component/input/Text.js";
|
|
2
2
|
import type { ClickListener } from "../../component/button/Button.js";
|
|
3
|
+
import type { StyleBag } from "../../core/ClassStyleRules.js";
|
|
3
4
|
export type LinkEvent = "action";
|
|
4
5
|
export interface LinkOptions extends TextOptions {
|
|
5
6
|
interactive?: boolean;
|
|
@@ -8,6 +9,7 @@ export interface LinkOptions extends TextOptions {
|
|
|
8
9
|
};
|
|
9
10
|
}
|
|
10
11
|
declare class Link extends Text<LinkOptions> {
|
|
12
|
+
protected static readonly ownClassStyleDefaults: StyleBag;
|
|
11
13
|
constructor(text?: String, options?: LinkOptions, subclassDefaults?: Partial<LinkOptions>);
|
|
12
14
|
protected applyOptions(options: LinkOptions): this;
|
|
13
15
|
isInteractive(): boolean;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { TextInput, TextInputOptions } from "../../component/input/TextInput.js";
|
|
2
|
+
import type { StyleBag } from "../../core/ClassStyleRules.js";
|
|
2
3
|
export interface PasswordFieldOptions extends TextInputOptions {
|
|
3
4
|
newPassword?: boolean;
|
|
4
5
|
}
|
|
5
6
|
declare class PasswordField extends TextInput<PasswordFieldOptions> {
|
|
7
|
+
protected static readonly ownClassStyleDefaults: StyleBag;
|
|
6
8
|
constructor(options?: PasswordFieldOptions, subclassDefaults?: Partial<PasswordFieldOptions>);
|
|
7
9
|
private updateHeight;
|
|
8
10
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { Button } from "../../component/button/Button.js";
|
|
1
|
+
import { Button, ButtonOptions } from "../../component/button/Button.js";
|
|
2
|
+
import type { StyleBag, StyleStateSpec } from "../../core/ClassStyleRules.js";
|
|
2
3
|
declare class PickerButton extends Button {
|
|
3
|
-
|
|
4
|
+
protected static readonly ownClassStyleDefaults: StyleBag;
|
|
5
|
+
protected static readonly ownStyleStates: readonly StyleStateSpec[];
|
|
6
|
+
constructor(subclassDefaults?: Partial<ButtonOptions>);
|
|
4
7
|
}
|
|
5
8
|
declare const PickerButtonCallable: import("../../core/Callable.js").Callable<typeof PickerButton>;
|
|
6
9
|
type PickerButtonCallable = PickerButton;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { TextInput, TextInputOptions } from "../../component/input/TextInput.js";
|
|
2
|
+
import type { StyleBag } from "../../core/ClassStyleRules.js";
|
|
2
3
|
declare class PickerInput extends TextInput<TextInputOptions> {
|
|
4
|
+
protected static readonly ownClassStyleDefaults: StyleBag;
|
|
3
5
|
constructor();
|
|
4
6
|
}
|
|
5
7
|
declare const PickerInputCallable: import("../../core/Callable.js").Callable<typeof PickerInput>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Text, TextOptions } from "../../component/input/Text.js";
|
|
2
|
+
import type { StyleBag } from "../../core/ClassStyleRules.js";
|
|
3
|
+
export interface SelectableTextOptions extends TextOptions {
|
|
4
|
+
}
|
|
5
|
+
declare class SelectableText extends Text<SelectableTextOptions> {
|
|
6
|
+
protected static readonly ownClassStyleDefaults: StyleBag;
|
|
7
|
+
constructor(text?: String, options?: SelectableTextOptions, subclassDefaults?: Partial<SelectableTextOptions>);
|
|
8
|
+
}
|
|
9
|
+
declare const SelectableTextCallable: import("../../core/Callable.js").Callable<typeof SelectableText>;
|
|
10
|
+
type SelectableTextCallable = SelectableText;
|
|
11
|
+
export { SelectableText as _SelectableText, SelectableTextCallable as SelectableText, };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Button, ButtonEvent, ButtonOptions, ClickListener } from "../../component/button/Button.js";
|
|
2
|
+
import type { StyleBag, StyleStateSpec } from "../../core/ClassStyleRules.js";
|
|
2
3
|
export type SpinButtonEvent = ButtonEvent | "tick";
|
|
3
4
|
export interface SpinButtonOptions extends ButtonOptions {
|
|
4
5
|
listeners?: {
|
|
@@ -7,6 +8,8 @@ export interface SpinButtonOptions extends ButtonOptions {
|
|
|
7
8
|
};
|
|
8
9
|
}
|
|
9
10
|
declare class SpinButton extends Button<SpinButtonOptions> {
|
|
11
|
+
protected static readonly ownClassStyleDefaults: StyleBag;
|
|
12
|
+
protected static readonly ownStyleStates: readonly StyleStateSpec[];
|
|
10
13
|
private _listeners;
|
|
11
14
|
private _repeat;
|
|
12
15
|
constructor(symbol: "▲" | "▼", options?: SpinButtonOptions, subclassDefaults?: Partial<SpinButtonOptions>);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Component, ComponentOptions } from "../../core/Component.js";
|
|
2
2
|
import type { Handle } from "../../core/DOM.js";
|
|
3
3
|
import { Size } from "../../primitive/Size.js";
|
|
4
|
+
import type { StyleBag } from "../../core/ClassStyleRules.js";
|
|
4
5
|
export interface TextOptions extends ComponentOptions {
|
|
5
6
|
tag?: string;
|
|
6
7
|
text?: string;
|
|
@@ -20,6 +21,7 @@ export interface TextOptions extends ComponentOptions {
|
|
|
20
21
|
truncate?: boolean;
|
|
21
22
|
}
|
|
22
23
|
declare class Text<TOptions extends TextOptions = TextOptions> extends Component<TOptions> {
|
|
24
|
+
protected static readonly ownClassStyleDefaults: StyleBag;
|
|
23
25
|
private _hasExplicitPreferredSize;
|
|
24
26
|
private _fontSizeCSSVar;
|
|
25
27
|
private _fontSizeCSSRule;
|
|
@@ -32,13 +34,18 @@ declare class Text<TOptions extends TextOptions = TextOptions> extends Component
|
|
|
32
34
|
private _measuredGeneration;
|
|
33
35
|
private _wordBreak;
|
|
34
36
|
private _lineClamp;
|
|
37
|
+
private readonly _measureRef;
|
|
35
38
|
constructor(text?: String, options?: NoInfer<TOptions>, subclassDefaults?: Partial<TOptions>);
|
|
39
|
+
protected destructor(): void;
|
|
36
40
|
protected applyOptions(options: TOptions): this;
|
|
37
41
|
private readThemeLineHeightPx;
|
|
38
42
|
getElement(createIfMissing?: boolean): Handle | undefined;
|
|
39
43
|
private resolveBoundFontSizePx;
|
|
40
44
|
setPreferredSize(size: Size): this;
|
|
41
45
|
private setCalculatedSize;
|
|
46
|
+
private applyNaturalMetrics;
|
|
47
|
+
private wantsBatchedMeasure;
|
|
48
|
+
private static batchMeasure;
|
|
42
49
|
private calculateSize;
|
|
43
50
|
private needsMeasure;
|
|
44
51
|
measure(): void;
|
|
@@ -87,9 +94,12 @@ declare class Text<TOptions extends TextOptions = TextOptions> extends Component
|
|
|
87
94
|
getLineClamp(): number | null;
|
|
88
95
|
setLineClamp(lines: number): this;
|
|
89
96
|
clearLineClamp(): this;
|
|
90
|
-
|
|
97
|
+
protected getClassStyleDefaults(): StyleBag;
|
|
98
|
+
protected applySubclassStyles(): void;
|
|
91
99
|
protected render(): Handle;
|
|
92
100
|
}
|
|
101
|
+
declare function _resetTextMeasurementRegistry(): void;
|
|
102
|
+
declare function _textMeasurementRegistrySize(): number;
|
|
93
103
|
declare const TextCallable: import("../../core/Callable.js").Callable<typeof Text>;
|
|
94
104
|
type TextCallable<TOptions extends TextOptions = TextOptions> = Text<TOptions>;
|
|
95
|
-
export { Text as _Text, TextCallable as Text };
|
|
105
|
+
export { Text as _Text, TextCallable as Text, _resetTextMeasurementRegistry, _textMeasurementRegistrySize, };
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { TextInput, TextInputOptions } from "../../component/input/TextInput.js";
|
|
2
2
|
import type { Handle } from "../../core/DOM.js";
|
|
3
|
+
import type { StyleBag } from "../../core/ClassStyleRules.js";
|
|
3
4
|
export interface TextAreaOptions extends TextInputOptions {
|
|
4
5
|
rows?: number;
|
|
5
6
|
cols?: number;
|
|
6
7
|
wrap?: string;
|
|
7
8
|
}
|
|
8
9
|
declare class TextArea extends TextInput<TextAreaOptions> {
|
|
10
|
+
protected static readonly ownClassStyleDefaults: StyleBag;
|
|
9
11
|
constructor(text?: string, options?: TextAreaOptions, subclassDefaults?: Partial<TextAreaOptions>);
|
|
10
12
|
protected applyOptions(options: TextAreaOptions): this;
|
|
11
13
|
getRows(): number | null;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { TextInput, TextInputOptions } from "../../component/input/TextInput.js";
|
|
2
2
|
import { BorderOptions } from "../../primitive/Border.js";
|
|
3
|
+
import type { StyleBag } from "../../core/ClassStyleRules.js";
|
|
3
4
|
export interface TextFieldOptions extends TextInputOptions {
|
|
4
5
|
}
|
|
5
6
|
declare class TextField extends TextInput<TextFieldOptions> {
|
|
7
|
+
protected static readonly ownClassStyleDefaults: StyleBag;
|
|
6
8
|
constructor(options?: TextFieldOptions, subclassDefaults?: Partial<TextFieldOptions>);
|
|
7
9
|
private updateHeight;
|
|
8
10
|
setBorder(options: BorderOptions | string): this;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AbstractInput, AbstractInputOptions } from "../../component/input/AbstractInput.js";
|
|
2
|
+
import type { StyleBag, StyleTrait } from "../../core/ClassStyleRules.js";
|
|
2
3
|
import type { Handle } from "../../core/DOM.js";
|
|
3
4
|
import { Event } from "../../core/Event.js";
|
|
4
5
|
export interface TextInputOptions extends AbstractInputOptions {
|
|
@@ -16,7 +17,10 @@ export interface TextInputOptions extends AbstractInputOptions {
|
|
|
16
17
|
};
|
|
17
18
|
}
|
|
18
19
|
declare class TextInput<TOptions extends TextInputOptions = TextInputOptions> extends AbstractInput<string, TOptions> {
|
|
20
|
+
protected static readonly ownClassStyleDefaults: StyleBag;
|
|
21
|
+
protected static readonly ownStyleTraits: readonly StyleTrait[];
|
|
19
22
|
constructor(options?: TOptions, subclassDefaults?: Partial<TOptions>);
|
|
23
|
+
protected getClassStyleDefaults(): StyleBag;
|
|
20
24
|
protected onInput(): void;
|
|
21
25
|
protected applyOptions(options: TOptions): this;
|
|
22
26
|
on(event: "action", listener: Event.Listener): this;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { AnimatedDropdown, AnimatedDropdownOptions } from "../../core/AnimatedDropdown.js";
|
|
2
2
|
import type { Handle } from "../../core/DOM.js";
|
|
3
|
+
import type { StyleBag } from "../../core/ClassStyleRules.js";
|
|
3
4
|
export interface TimePickerDropdownOptions extends AnimatedDropdownOptions {
|
|
4
5
|
showSeconds?: boolean;
|
|
5
6
|
}
|
|
6
7
|
declare class TimePickerDropdown extends AnimatedDropdown<TimePickerDropdownOptions> {
|
|
8
|
+
protected static readonly ownClassStyleDefaults: StyleBag;
|
|
7
9
|
private readonly _showSeconds;
|
|
8
10
|
private readonly _timeColumns;
|
|
9
|
-
constructor(onSelect: (hours: number, minutes: number, seconds: number) => void, options?: TimePickerDropdownOptions);
|
|
11
|
+
constructor(onSelect: (hours: number, minutes: number, seconds: number) => void, options?: TimePickerDropdownOptions, subclassDefaults?: Partial<TimePickerDropdownOptions>);
|
|
10
12
|
private onPointerDown;
|
|
11
13
|
showAt(anchorEl: Handle, selected: Date | null): this;
|
|
12
14
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { TextInput, TextInputOptions } from "../../component/input/TextInput.js";
|
|
2
|
+
import type { StyleBag } from "../../core/ClassStyleRules.js";
|
|
2
3
|
export interface UsernameFieldOptions extends TextInputOptions {
|
|
3
4
|
email?: boolean;
|
|
4
5
|
}
|
|
5
6
|
declare class UsernameField extends TextInput<UsernameFieldOptions> {
|
|
7
|
+
protected static readonly ownClassStyleDefaults: StyleBag;
|
|
6
8
|
constructor(options?: UsernameFieldOptions, subclassDefaults?: Partial<UsernameFieldOptions>);
|
|
7
9
|
private updateHeight;
|
|
8
10
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { Text } from '../../component/input/Text.js';
|
|
2
2
|
export type { TextOptions } from '../../component/input/Text.js';
|
|
3
|
+
export { SelectableText } from '../../component/input/SelectableText.js';
|
|
4
|
+
export type { SelectableTextOptions } from '../../component/input/SelectableText.js';
|
|
3
5
|
export { Label } from '../../component/input/Label.js';
|
|
4
6
|
export type { LabelOptions } from '../../component/input/Label.js';
|
|
5
7
|
export { Link } from '../../component/input/Link.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Comparator, Component, ComponentOptions } from "../../core/Component.js";
|
|
2
|
+
import type { Handle } from "../../core/DOM.js";
|
|
2
3
|
import { LayoutConstraints } from "../../layout/LayoutConstraints.js";
|
|
3
4
|
import { BulletedListItemStyle } from "../../component/list/BulletedListItemStyle.js";
|
|
4
5
|
import { NumberedListItemStyle } from "../../component/list/NumberedListItemStyle.js";
|
|
@@ -10,6 +11,7 @@ export declare abstract class AbstractMarkerList<U extends BulletedListItemStyle
|
|
|
10
11
|
private _style;
|
|
11
12
|
private _markerColumnWidth;
|
|
12
13
|
constructor(tag: string, style: U, options?: AbstractMarkerListOptions<U>, subclassDefaults?: Partial<AbstractMarkerListOptions<U>>);
|
|
14
|
+
protected render(): Handle;
|
|
13
15
|
protected applyOptions(options: AbstractMarkerListOptions<U>): this;
|
|
14
16
|
getStyle(): U | undefined;
|
|
15
17
|
setStyle(style: U): this;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { AbstractInput, AbstractInputOptions } from "../../component/input/AbstractInput.js";
|
|
2
|
-
import { Component } from "../../core/Component.js";
|
|
2
|
+
import { Component, ComponentOptions } from "../../core/Component.js";
|
|
3
3
|
import type { Handle } from "../../core/DOM.js";
|
|
4
4
|
import { Panel } from "../../core/Panel.js";
|
|
5
5
|
import { Event } from "../../core/Event.js";
|
|
6
6
|
import { AbstractStore } from "../../data/AbstractStore.js";
|
|
7
7
|
import { ModelRecord } from "../../data/ModelRecord.js";
|
|
8
8
|
import { ListItemRenderer } from "../../component/list/ListItemRenderer.js";
|
|
9
|
+
import { type StyleBag } from "../../core/ClassStyleRules.js";
|
|
9
10
|
export interface SelectableListItem {
|
|
10
11
|
key: string;
|
|
11
12
|
label: string;
|
|
@@ -37,7 +38,7 @@ declare class SelectableListRow extends Component {
|
|
|
37
38
|
private readonly _handlers;
|
|
38
39
|
private _tooltipAttached;
|
|
39
40
|
private _renderer;
|
|
40
|
-
constructor(handlers: RowHandlers, index: number, rendererFactory: () => ListItemRenderer);
|
|
41
|
+
constructor(handlers: RowHandlers, index: number, rendererFactory: () => ListItemRenderer, subclassDefaults?: Partial<ComponentOptions>);
|
|
41
42
|
updateItem(item: SelectableListItem, index: number): this;
|
|
42
43
|
private applyTooltip;
|
|
43
44
|
getNaturalWidth(): number;
|
|
@@ -63,6 +64,7 @@ interface RowHandlers {
|
|
|
63
64
|
onDblClick: (index: number, event: MouseEvent) => void;
|
|
64
65
|
}
|
|
65
66
|
declare abstract class AbstractSelectableList<TValue, TOptions extends AbstractSelectableListOptions = AbstractSelectableListOptions> extends AbstractInput<TValue, TOptions> {
|
|
67
|
+
protected static readonly ownClassStyleDefaults: StyleBag;
|
|
66
68
|
protected _items: Array<SelectableListItem>;
|
|
67
69
|
protected _rowPool: Array<SelectableListRow>;
|
|
68
70
|
protected _selectedSet: Set<number>;
|
|
@@ -80,6 +82,8 @@ declare abstract class AbstractSelectableList<TValue, TOptions extends AbstractS
|
|
|
80
82
|
private _rendererFactory;
|
|
81
83
|
private _rowListeners;
|
|
82
84
|
constructor(options?: TOptions, subclassDefaults?: Partial<TOptions>);
|
|
85
|
+
protected destructor(): void;
|
|
86
|
+
private unbindStore;
|
|
83
87
|
protected applyEnabled(value: boolean): void;
|
|
84
88
|
protected applyReadOnly(value: boolean): void;
|
|
85
89
|
protected applyOptions(options: TOptions): this;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Component, ComponentOptions } from "../../core/Component.js";
|
|
2
|
+
import type { Handle } from "../../core/DOM.js";
|
|
2
3
|
export interface ListItemOptions extends ComponentOptions {
|
|
3
4
|
text?: string;
|
|
4
5
|
}
|
|
@@ -15,7 +16,7 @@ declare class ListItem extends Component<ListItemOptions> {
|
|
|
15
16
|
setMarker(text: string): this;
|
|
16
17
|
getMarkerWidth(): number;
|
|
17
18
|
setMarkerColumnWidth(width: number): this;
|
|
18
|
-
protected render():
|
|
19
|
+
protected render(): Handle;
|
|
19
20
|
}
|
|
20
21
|
declare const ListItemCallable: import("../../core/Callable.js").Callable<typeof ListItem>;
|
|
21
22
|
type ListItemCallable = ListItem;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { Button, ButtonOptions } from "../../component/button/Button.js";
|
|
2
|
+
import type { StyleBag, StyleStateSpec } from "../../core/ClassStyleRules.js";
|
|
2
3
|
export interface MenuBarButtonOptions extends ButtonOptions {
|
|
3
4
|
}
|
|
4
5
|
export declare const MENU_BAR_BUTTON_HEIGHT: number;
|
|
5
6
|
declare class MenuBarButton extends Button<MenuBarButtonOptions> {
|
|
7
|
+
protected static readonly ownClassStyleDefaults: StyleBag;
|
|
8
|
+
protected static readonly ownStyleStates: readonly StyleStateSpec[];
|
|
6
9
|
private readonly _onClickHandler;
|
|
7
10
|
private readonly _onMouseOverHandler;
|
|
8
11
|
constructor(text: string, onClick: () => void, onHover: () => void, options?: MenuBarButtonOptions, subclassDefaults?: Partial<MenuBarButtonOptions>);
|
|
@@ -2,6 +2,7 @@ import { Component } from "../../core/Component.js";
|
|
|
2
2
|
import { Container, ContainerOptions } from "../../core/Container.js";
|
|
3
3
|
import { LayoutConstraints } from "../../layout/LayoutConstraints.js";
|
|
4
4
|
import type { AxisOrientation, AxisEnd } from "../../primitive/Axis.js";
|
|
5
|
+
import type { StyleBag } from "../../core/ClassStyleRules.js";
|
|
5
6
|
export type ToolBarOverflow = "clip" | "menu";
|
|
6
7
|
export interface ToolBarOptions extends ContainerOptions {
|
|
7
8
|
orientation?: AxisOrientation;
|
|
@@ -11,6 +12,7 @@ export interface ToolBarOptions extends ContainerOptions {
|
|
|
11
12
|
flat?: boolean;
|
|
12
13
|
}
|
|
13
14
|
declare class ToolBar<TOptions extends ToolBarOptions = ToolBarOptions> extends Container<TOptions> {
|
|
15
|
+
protected static readonly ownClassStyleDefaults: StyleBag;
|
|
14
16
|
private _orientation;
|
|
15
17
|
private _compact;
|
|
16
18
|
private _overflowMode;
|