@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
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { Component } from "../../core/Component.js";
|
|
1
|
+
import { Component, ComponentOptions } from "../../core/Component.js";
|
|
2
|
+
import type { StyleBag } from "../../core/ClassStyleRules.js";
|
|
2
3
|
import type { Handle } from "../../core/DOM.js";
|
|
3
4
|
import { AbstractStore } from "../../data/AbstractStore.js";
|
|
4
5
|
import { ModelRecord } from "../../data/ModelRecord.js";
|
|
5
6
|
import { Row } from "../../component/table/Row.js";
|
|
7
|
+
import type { ColumnWindowSlidePlan } from "../../component/table/Row.js";
|
|
6
8
|
import { CellEditorPool } from "../../component/table/cell/editor/CellEditorPool.js";
|
|
7
9
|
import { Event } from "../../core/Event.js";
|
|
8
10
|
import { VirtualRowView } from "../../component/shared/VirtualRowView.js";
|
|
9
11
|
import type { ColumnConfig } from "../../component/table/ColumnConfig.js";
|
|
10
12
|
import { Column } from "../../component/table/Column.js";
|
|
11
13
|
import type { TableHeader } from "../../component/table/Header.js";
|
|
12
|
-
export type BodyEvent = "verticalscroll" | "horizontalscroll" | "selection" | "cellclick";
|
|
14
|
+
export type BodyEvent = "verticalscroll" | "horizontalscroll" | "selection" | "cellclick" | "cellcontextmenu";
|
|
13
15
|
export interface CellClickEvent {
|
|
14
16
|
record: ModelRecord;
|
|
15
17
|
field: string;
|
|
@@ -18,6 +20,19 @@ export interface CellClickEvent {
|
|
|
18
20
|
rowIndex: number;
|
|
19
21
|
event: MouseEvent;
|
|
20
22
|
}
|
|
23
|
+
export interface BodyViewState {
|
|
24
|
+
store: AbstractStore;
|
|
25
|
+
columns: Column[];
|
|
26
|
+
columnConfigs: Map<string, ColumnConfig>;
|
|
27
|
+
hiddenColumns: Set<string>;
|
|
28
|
+
rowReadOnly: ((record: ModelRecord) => boolean) | null;
|
|
29
|
+
rowVisible: ((record: ModelRecord) => boolean) | null;
|
|
30
|
+
rowSeparator: ((record: ModelRecord) => {
|
|
31
|
+
label: string;
|
|
32
|
+
color: string | null;
|
|
33
|
+
} | null) | null;
|
|
34
|
+
rowIndented: ((record: ModelRecord) => boolean) | null;
|
|
35
|
+
}
|
|
21
36
|
export declare function resolveClickedColumn(cells: Component[], target: Handle | null): number;
|
|
22
37
|
export interface ColumnWindow {
|
|
23
38
|
firstCol: number;
|
|
@@ -25,15 +40,10 @@ export interface ColumnWindow {
|
|
|
25
40
|
widths: number[];
|
|
26
41
|
lefts: number[];
|
|
27
42
|
}
|
|
43
|
+
export declare function computeColumnWindowSize(lefts: number[], viewportWidth: number): number;
|
|
28
44
|
export declare function computeColumnWindow(widths: number[], scrollX: number, viewportWidth: number): ColumnWindow;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
element: Handle;
|
|
32
|
-
}>>, target: Handle): {
|
|
33
|
-
row: number;
|
|
34
|
-
col: number;
|
|
35
|
-
} | null;
|
|
36
|
-
declare class Body extends VirtualRowView<Row> {
|
|
45
|
+
declare class TableBody extends VirtualRowView<Row> {
|
|
46
|
+
protected static readonly ownClassStyleDefaults: StyleBag;
|
|
37
47
|
private _store;
|
|
38
48
|
private _hiddenColumns;
|
|
39
49
|
private _columns;
|
|
@@ -42,7 +52,6 @@ declare class Body extends VirtualRowView<Row> {
|
|
|
42
52
|
private _rowVisible;
|
|
43
53
|
private _rowSeparator;
|
|
44
54
|
private _rowIndented;
|
|
45
|
-
private _cellGeom;
|
|
46
55
|
private _lastBodyWidth;
|
|
47
56
|
private _lastColumnWidths;
|
|
48
57
|
private _lastAriaRowCount;
|
|
@@ -53,10 +62,16 @@ declare class Body extends VirtualRowView<Row> {
|
|
|
53
62
|
private _selectedRecords;
|
|
54
63
|
private _anchorRecord;
|
|
55
64
|
private _focusedColIndex;
|
|
65
|
+
private _previousFocusedCell;
|
|
66
|
+
private _rangeAnchor;
|
|
67
|
+
private _rangeFocus;
|
|
68
|
+
private _rangeDragWidened;
|
|
69
|
+
private _contextMenuCell;
|
|
70
|
+
private _cellText;
|
|
56
71
|
private _editorPool;
|
|
57
72
|
private _header;
|
|
58
73
|
private _listeners;
|
|
59
|
-
constructor(store: AbstractStore);
|
|
74
|
+
constructor(store: AbstractStore, subclassDefaults?: Partial<ComponentOptions>);
|
|
60
75
|
protected onThemeReflow(): void;
|
|
61
76
|
private computeRowHeight;
|
|
62
77
|
protected getRowHeight(): number;
|
|
@@ -65,6 +80,7 @@ declare class Body extends VirtualRowView<Row> {
|
|
|
65
80
|
private bindStore;
|
|
66
81
|
protected onStoreChange(): void;
|
|
67
82
|
protected getVisibleRecords(): ModelRecord[];
|
|
83
|
+
private computeVisibleFields;
|
|
68
84
|
protected createRow(): Row;
|
|
69
85
|
protected getTreeFieldName(): string | undefined;
|
|
70
86
|
protected computeRowAria(row: Row, dataIndex: number): void;
|
|
@@ -74,8 +90,8 @@ declare class Body extends VirtualRowView<Row> {
|
|
|
74
90
|
protected getHiddenColumns(): Set<string>;
|
|
75
91
|
protected getColumnConfigs(): Map<string, ColumnConfig>;
|
|
76
92
|
protected getRowPool(): Row[];
|
|
77
|
-
protected invalidateGeom(): void;
|
|
78
93
|
setHiddenColumns(hidden: Set<string>): this;
|
|
94
|
+
private filterUnhideable;
|
|
79
95
|
setColumns(columns: Column[]): this;
|
|
80
96
|
setRowReadOnly(predicate: ((record: ModelRecord) => boolean) | null): this;
|
|
81
97
|
setRowSeparator(predicate: ((record: ModelRecord) => {
|
|
@@ -88,6 +104,9 @@ declare class Body extends VirtualRowView<Row> {
|
|
|
88
104
|
private registerComboEditors;
|
|
89
105
|
private syncPoolCells;
|
|
90
106
|
setStore(store: AbstractStore): this;
|
|
107
|
+
private rebindStore;
|
|
108
|
+
private unbindStore;
|
|
109
|
+
bindViewState(state: BodyViewState): this;
|
|
91
110
|
protected init(element?: Handle): this;
|
|
92
111
|
protected onScrollerTick(): void;
|
|
93
112
|
private onFocus;
|
|
@@ -95,15 +114,28 @@ declare class Body extends VirtualRowView<Row> {
|
|
|
95
114
|
protected destructor(): void;
|
|
96
115
|
doLayout(): this;
|
|
97
116
|
renderWindow(bodyWidth?: number, columnWidths?: number[]): void;
|
|
117
|
+
private computeColumnWindowSlidePlan;
|
|
98
118
|
private renderWindowPass;
|
|
99
119
|
private updateColumnWidthCache;
|
|
100
120
|
private commitEditsOutsideWindow;
|
|
101
|
-
protected bindAndPositionRows(firstRow: number, windowSize: number, rowWidth: number, records: ModelRecord[], columns: ColumnWindow): void;
|
|
121
|
+
protected bindAndPositionRows(firstRow: number, windowSize: number, rowWidth: number, records: ModelRecord[], columns: ColumnWindow, slidePlan?: ColumnWindowSlidePlan): void;
|
|
102
122
|
protected onSubtreeClick(e: MouseEvent): void;
|
|
103
123
|
private onRowClick;
|
|
104
|
-
private
|
|
105
|
-
private
|
|
106
|
-
private
|
|
124
|
+
private locateCellFromTarget;
|
|
125
|
+
private getCellRangeBounds;
|
|
126
|
+
private isCellWithinBounds;
|
|
127
|
+
private refreshCellRangeHighlight;
|
|
128
|
+
private updateCellRangeVisualState;
|
|
129
|
+
private buildCopyText;
|
|
130
|
+
copySelectionToClipboard(): void;
|
|
131
|
+
copyContextMenuSelection(): void;
|
|
132
|
+
protected onCellMouseDown(e: MouseEvent): void;
|
|
133
|
+
protected onCellDragMove(e: MouseEvent): Event.ListenerResult;
|
|
134
|
+
protected onCellDragEnd(): Event.ListenerResult;
|
|
135
|
+
private onCellDragSelectStart;
|
|
136
|
+
private widenRangeDragIfMultiCell;
|
|
137
|
+
private resetRangeDragWidening;
|
|
138
|
+
protected onCellContextMenu(e: MouseEvent): Event.ListenerResult;
|
|
107
139
|
selectRecord(record: ModelRecord | null): void;
|
|
108
140
|
getSelectedRecord(): ModelRecord | null;
|
|
109
141
|
getSelectedRecords(): ModelRecord[];
|
|
@@ -112,10 +144,12 @@ declare class Body extends VirtualRowView<Row> {
|
|
|
112
144
|
on(event: "horizontalscroll", listener: (scrollLeft: number) => void): this;
|
|
113
145
|
on(event: "selection", listener: (records: ModelRecord[]) => void): this;
|
|
114
146
|
on(event: "cellclick", listener: (e: CellClickEvent) => void): this;
|
|
147
|
+
on(event: "cellcontextmenu", listener: (x: number, y: number) => void): this;
|
|
115
148
|
off(event: BodyEvent, listener: Function): this;
|
|
116
149
|
protected emit(event: "verticalscroll" | "horizontalscroll", offset: number): void;
|
|
117
150
|
protected emit(event: "selection", records: ModelRecord[]): void;
|
|
118
151
|
protected emit(event: "cellclick", detail: CellClickEvent): void;
|
|
152
|
+
protected emit(event: "cellcontextmenu", x: number, y: number): void;
|
|
119
153
|
private notifySelectionChange;
|
|
120
154
|
scrollToRecord(record: ModelRecord): void;
|
|
121
155
|
private applyReadOnlyState;
|
|
@@ -130,6 +164,6 @@ declare class Body extends VirtualRowView<Row> {
|
|
|
130
164
|
protected scrollRecordIntoView(record: ModelRecord): void;
|
|
131
165
|
protected scrollColumnIntoView(colIndex: number): void;
|
|
132
166
|
}
|
|
133
|
-
declare const BodyCallable: import("../../core/Callable.js").Callable<typeof
|
|
134
|
-
type BodyCallable =
|
|
135
|
-
export {
|
|
167
|
+
declare const BodyCallable: import("../../core/Callable.js").Callable<typeof TableBody>;
|
|
168
|
+
type BodyCallable = TableBody;
|
|
169
|
+
export { TableBody as _Body, BodyCallable as Body };
|
|
@@ -6,6 +6,7 @@ export declare class Column {
|
|
|
6
6
|
private _maxWidth;
|
|
7
7
|
private _width;
|
|
8
8
|
private _maxContentLength;
|
|
9
|
+
private _preserveWidth;
|
|
9
10
|
private _hidden;
|
|
10
11
|
private _unhideable;
|
|
11
12
|
private _readOnly;
|
|
@@ -21,6 +22,7 @@ export declare class Column {
|
|
|
21
22
|
getMaxWidth(): number | undefined;
|
|
22
23
|
getWidth(): number | undefined;
|
|
23
24
|
getMaxContentLength(): number | undefined;
|
|
25
|
+
isWidthPreserved(): boolean;
|
|
24
26
|
isInitiallyHidden(): boolean;
|
|
25
27
|
isUnhideable(): boolean;
|
|
26
28
|
isReadOnly(): boolean;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Component } from "../../core/Component.js";
|
|
2
2
|
import { Row } from "../../component/table/Row.js";
|
|
3
|
+
import type { StyleBag } from "../../core/ClassStyleRules.js";
|
|
3
4
|
declare class FooterRow extends Component {
|
|
5
|
+
protected static readonly ownClassStyleDefaults: StyleBag;
|
|
4
6
|
constructor();
|
|
5
7
|
getColumns(): import("../../core/Component.js")._Component<import("../../core/Component.js").ComponentOptions>[];
|
|
6
8
|
addRow(row: Row): this;
|
|
@@ -5,6 +5,7 @@ import { AbstractStore } from "../../data/AbstractStore.js";
|
|
|
5
5
|
import { Column } from "../../component/table/Column.js";
|
|
6
6
|
import type { ColumnConfig } from "../../component/table/ColumnConfig.js";
|
|
7
7
|
import { Button } from "../../component/button/Button.js";
|
|
8
|
+
import type { StyleBag } from "../../core/ClassStyleRules.js";
|
|
8
9
|
export type TableHeaderEvent = "columnresizestart" | "columnresize" | "columncontextmenu";
|
|
9
10
|
export interface HeaderColumnGeometry {
|
|
10
11
|
columnWidths: number[];
|
|
@@ -14,6 +15,7 @@ export interface HeaderColumnGeometry {
|
|
|
14
15
|
filterRowHeight: number;
|
|
15
16
|
}
|
|
16
17
|
declare class TableHeader extends Component {
|
|
18
|
+
protected static readonly ownClassStyleDefaults: StyleBag;
|
|
17
19
|
private _model;
|
|
18
20
|
private _store;
|
|
19
21
|
private _hiddenColumns;
|
|
@@ -25,9 +27,10 @@ declare class TableHeader extends Component {
|
|
|
25
27
|
private _windowFirst;
|
|
26
28
|
private _scrollX;
|
|
27
29
|
private _focusedCol;
|
|
30
|
+
private _boundOnStoreSortChange;
|
|
28
31
|
private _columnsDirty;
|
|
32
|
+
private _lastEnteredCells;
|
|
29
33
|
private _geometry;
|
|
30
|
-
private _cellGeom;
|
|
31
34
|
private _filterRowVisible;
|
|
32
35
|
private _filterStates;
|
|
33
36
|
private _filterCellsDirty;
|
|
@@ -67,11 +70,13 @@ declare class TableHeader extends Component {
|
|
|
67
70
|
private rebuildCells;
|
|
68
71
|
private computeVisibleFields;
|
|
69
72
|
private reconcileColumnCells;
|
|
73
|
+
private reconcileColumnWindowSlide;
|
|
70
74
|
private rebuildParentCells;
|
|
71
75
|
private wireCell;
|
|
72
76
|
private columnIndexOf;
|
|
73
77
|
private handleSortClick;
|
|
74
78
|
private syncSortIndicators;
|
|
79
|
+
private onStoreSortChange;
|
|
75
80
|
private filterState;
|
|
76
81
|
private onFilterCellChange;
|
|
77
82
|
private filterTarget;
|
|
@@ -79,7 +84,9 @@ declare class TableHeader extends Component {
|
|
|
79
84
|
private onStoreFilterChange;
|
|
80
85
|
private wireFilterCell;
|
|
81
86
|
private reconcileFilterCells;
|
|
87
|
+
private reconcileFilterWindowSlide;
|
|
82
88
|
renderColumnWindow(geometry?: HeaderColumnGeometry): this;
|
|
89
|
+
private invalidateCellLayouts;
|
|
83
90
|
private positionFilterCells;
|
|
84
91
|
private positionColumnCells;
|
|
85
92
|
private positionParentCells;
|
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
import { Component } from "../../core/Component.js";
|
|
2
2
|
import { AbstractModel } from "../../data/AbstractModel.js";
|
|
3
|
+
import { Field } from "../../data/Field.js";
|
|
3
4
|
import { ModelRecord } from "../../data/ModelRecord.js";
|
|
4
5
|
import { Cell } from "../../component/table/cell/Cell.js";
|
|
5
6
|
import type { ColumnConfig } from "../../component/table/ColumnConfig.js";
|
|
6
7
|
import { LayoutConstraints } from "../../layout/LayoutConstraints.js";
|
|
8
|
+
import type { StyleStateSpec } from "../../core/ClassStyleRules.js";
|
|
9
|
+
export interface ColumnWindowSlidePlan {
|
|
10
|
+
prevFirstCol: number;
|
|
11
|
+
prevLastCol: number;
|
|
12
|
+
delta: number;
|
|
13
|
+
enteringKeys: Map<number, string>;
|
|
14
|
+
}
|
|
15
|
+
export interface RetargetedCell {
|
|
16
|
+
cell: Cell<any>;
|
|
17
|
+
fieldName: string;
|
|
18
|
+
}
|
|
7
19
|
declare class Row extends Component {
|
|
20
|
+
protected static readonly ownStyleStates: readonly StyleStateSpec[];
|
|
8
21
|
private _model?;
|
|
9
22
|
private _data?;
|
|
10
23
|
private _onCellCommit?;
|
|
@@ -16,12 +29,15 @@ declare class Row extends Component {
|
|
|
16
29
|
private _windowFirst;
|
|
17
30
|
private _cellKeys;
|
|
18
31
|
private _fieldNames;
|
|
32
|
+
private _cellCache;
|
|
33
|
+
private _lastRetargeted;
|
|
19
34
|
private _columnsDirty;
|
|
20
35
|
private _separatorMode;
|
|
21
36
|
constructor(model?: AbstractModel, data?: ModelRecord, hiddenColumns?: Set<string>, columnConfigs?: Map<string, ColumnConfig>, onCellCommit?: (record: ModelRecord) => void, treeFieldName?: string);
|
|
22
37
|
getTreeCell(): Cell<any> | null;
|
|
23
38
|
getColumnWindowStart(): number;
|
|
24
39
|
getFieldNames(): string[];
|
|
40
|
+
getRetargetedCells(): RetargetedCell[];
|
|
25
41
|
isSeparator(): boolean;
|
|
26
42
|
setFieldIndent(indented: boolean): void;
|
|
27
43
|
getData(): ModelRecord | undefined;
|
|
@@ -32,13 +48,17 @@ declare class Row extends Component {
|
|
|
32
48
|
addComponent(cell: Cell<any>, constraints?: LayoutConstraints): this;
|
|
33
49
|
setColumnFields(model: AbstractModel, hiddenColumns: Set<string>, columnConfigs: Map<string, ColumnConfig>, treeFieldName?: string): this;
|
|
34
50
|
renderSeparator(label: string, color: string | null): void;
|
|
35
|
-
setColumnWindow(firstCol: number, lastCol: number): boolean;
|
|
51
|
+
setColumnWindow(firstCol: number, lastCol: number, plan?: ColumnWindowSlidePlan): boolean;
|
|
52
|
+
private reconcileWindowSlide;
|
|
36
53
|
private commitCellValue;
|
|
37
|
-
|
|
54
|
+
static cellKey(field: Field, config: ColumnConfig | undefined, isTreeColumn: boolean): string;
|
|
38
55
|
private cellKeyFor;
|
|
39
56
|
private bindCell;
|
|
40
57
|
private static createCellForField;
|
|
58
|
+
private retireCell;
|
|
59
|
+
private disposeCellCache;
|
|
41
60
|
doLayout(): this;
|
|
61
|
+
protected destructor(): void;
|
|
42
62
|
}
|
|
43
63
|
declare const RowCallable: import("../../core/Callable.js").Callable<typeof Row>;
|
|
44
64
|
type RowCallable = Row;
|
|
@@ -8,12 +8,14 @@ import { ModelRecord } from "../../data/ModelRecord.js";
|
|
|
8
8
|
import { Column } from "../../component/table/Column.js";
|
|
9
9
|
import { ColumnSpec } from "../../component/table/ColumnConfig.js";
|
|
10
10
|
import { Component, ComponentOptions } from "../../core/Component.js";
|
|
11
|
+
import type { StyleBag } from "../../core/ClassStyleRules.js";
|
|
11
12
|
import { ExportOptions } from "../../component/table/TableExporter.js";
|
|
12
13
|
export type TableEvent = "selection" | "cellclick";
|
|
13
14
|
export type TableDisplayMode = "normal" | "rotated";
|
|
14
15
|
export interface TableOptions extends ComponentOptions {
|
|
15
16
|
}
|
|
16
17
|
declare class Table extends Component<TableOptions> {
|
|
18
|
+
protected static readonly ownClassStyleDefaults: StyleBag;
|
|
17
19
|
private _store;
|
|
18
20
|
private _spec;
|
|
19
21
|
private _resolvedColumns;
|
|
@@ -31,6 +33,7 @@ declare class Table extends Component<TableOptions> {
|
|
|
31
33
|
private _dragLastClientX;
|
|
32
34
|
private _columnWidthTarget;
|
|
33
35
|
private _savedColumnWidths;
|
|
36
|
+
private _pinnedColumnWidths;
|
|
34
37
|
private _columnConfigs;
|
|
35
38
|
private _exportMenuEnabled;
|
|
36
39
|
private _filterRowVisible;
|
|
@@ -48,7 +51,6 @@ declare class Table extends Component<TableOptions> {
|
|
|
48
51
|
private _sourceRefresh;
|
|
49
52
|
private _sourceUpdate;
|
|
50
53
|
private _suppressSelectionForward;
|
|
51
|
-
private _autoWidthsSampled;
|
|
52
54
|
private _widthRefs;
|
|
53
55
|
private _sampledCandidates;
|
|
54
56
|
private _cellText;
|
|
@@ -109,6 +111,7 @@ declare class Table extends Component<TableOptions> {
|
|
|
109
111
|
private bindView;
|
|
110
112
|
protected destructor(): void;
|
|
111
113
|
private showColumnMenu;
|
|
114
|
+
private showCellMenu;
|
|
112
115
|
private columnsInMenuOrder;
|
|
113
116
|
private buildColumnMenuItems;
|
|
114
117
|
private showColumnDialog;
|
|
@@ -119,6 +122,7 @@ declare class Table extends Component<TableOptions> {
|
|
|
119
122
|
setExportMenuEnabled(enabled: boolean): this;
|
|
120
123
|
exportCSV(options?: ExportOptions): void;
|
|
121
124
|
exportJSON(options?: ExportOptions): void;
|
|
125
|
+
exportTSV(options?: ExportOptions): void;
|
|
122
126
|
private getExportColumns;
|
|
123
127
|
getCellText(field: string, record: ModelRecord): string;
|
|
124
128
|
private onColumnResizeStart;
|
|
@@ -127,6 +131,7 @@ declare class Table extends Component<TableOptions> {
|
|
|
127
131
|
isAutoSizeColumns(): boolean;
|
|
128
132
|
getColumnMinWidth(column: Column): number;
|
|
129
133
|
getIntrinsicColumnWidths(): Array<number | null>;
|
|
134
|
+
private pinnedWidth;
|
|
130
135
|
private clampColumnWidth;
|
|
131
136
|
private flexColumnWidth;
|
|
132
137
|
private measureHeaders;
|
|
@@ -9,7 +9,10 @@ export interface ExportOptions {
|
|
|
9
9
|
export declare class TableExporter {
|
|
10
10
|
static exportCSV(columns: Column[], records: ModelRecord[], columnConfigs: Map<string, ColumnConfig>, display: CellTextResolver, options?: ExportOptions): void;
|
|
11
11
|
static exportJSON(columns: Column[], records: ModelRecord[], columnConfigs: Map<string, ColumnConfig>, display: CellTextResolver, options?: ExportOptions): void;
|
|
12
|
+
static exportTSV(columns: Column[], records: ModelRecord[], columnConfigs: Map<string, ColumnConfig>, display: CellTextResolver, options?: ExportOptions): void;
|
|
12
13
|
static formatValue(column: Column, value: any, columnConfigs: Map<string, ColumnConfig>, display: CellTextResolver): any;
|
|
13
14
|
private static escapeCSVField;
|
|
15
|
+
static buildRectangularTSV(rows: string[][]): string;
|
|
16
|
+
private static escapeTSVField;
|
|
14
17
|
private static download;
|
|
15
18
|
}
|
|
@@ -12,13 +12,19 @@ declare class TablePanel extends Container {
|
|
|
12
12
|
private _rejectBtn;
|
|
13
13
|
private _spinner;
|
|
14
14
|
private _paginationBar;
|
|
15
|
+
private readonly _store;
|
|
16
|
+
private readonly _handleLoadingChange;
|
|
17
|
+
private readonly _refreshSyncButtonsBound;
|
|
15
18
|
constructor(store: AbstractStore, spec?: ColumnSpec);
|
|
19
|
+
private handleStoreLoadingChange;
|
|
20
|
+
protected destructor(): void;
|
|
16
21
|
private refreshSyncButtons;
|
|
17
22
|
getTable(): Table;
|
|
18
23
|
getToolbar(): Component;
|
|
19
24
|
setExportMenuEnabled(enabled: boolean): this;
|
|
20
25
|
exportCSV(options?: ExportOptions): void;
|
|
21
26
|
exportJSON(options?: ExportOptions): void;
|
|
27
|
+
exportTSV(options?: ExportOptions): void;
|
|
22
28
|
setPaginationBar(bar: PaginationBar): this;
|
|
23
29
|
getPaginationBar(): PaginationBar | undefined;
|
|
24
30
|
}
|
|
@@ -12,7 +12,12 @@ declare class TreeTablePanel extends Container {
|
|
|
12
12
|
private _rejectBtn;
|
|
13
13
|
private _spinner;
|
|
14
14
|
private _paginationBar;
|
|
15
|
+
private readonly _store;
|
|
16
|
+
private readonly _handleLoadingChange;
|
|
17
|
+
private readonly _refreshSyncButtonsBound;
|
|
15
18
|
constructor(store: AbstractStore, spec: TreeTableSpec);
|
|
19
|
+
private handleStoreLoadingChange;
|
|
20
|
+
protected destructor(): void;
|
|
16
21
|
private addRowUnderSelection;
|
|
17
22
|
private refreshSyncButtons;
|
|
18
23
|
getTreeTable(): TreeTable;
|
|
@@ -20,6 +25,7 @@ declare class TreeTablePanel extends Container {
|
|
|
20
25
|
setExportMenuEnabled(enabled: boolean): this;
|
|
21
26
|
exportCSV(options?: ExportOptions): void;
|
|
22
27
|
exportJSON(options?: ExportOptions): void;
|
|
28
|
+
exportTSV(options?: ExportOptions): void;
|
|
23
29
|
setPaginationBar(bar: PaginationBar): this;
|
|
24
30
|
getPaginationBar(): PaginationBar | undefined;
|
|
25
31
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Component } from "../../../core/Component.js";
|
|
1
|
+
import { Component, ComponentOptions } from "../../../core/Component.js";
|
|
2
|
+
import type { StyleBag, StyleStateSpec } from "../../../core/ClassStyleRules.js";
|
|
2
3
|
import { ListenerBag } from "../../../core/ListenerBag.js";
|
|
3
4
|
import { Card } from "../../../layout/Card.js";
|
|
4
5
|
import { CellRenderer } from "../../../component/table/cell/renderer/CellRenderer.js";
|
|
@@ -8,8 +9,11 @@ import { CellEditorPool } from "../../../component/table/cell/editor/CellEditorP
|
|
|
8
9
|
import { LayoutConstraints } from "../../../layout/LayoutConstraints.js";
|
|
9
10
|
export type CellEvent = "commit" | "editend";
|
|
10
11
|
export declare class Cell<T> extends Component {
|
|
12
|
+
protected static readonly ownClassStyleDefaults: StyleBag;
|
|
13
|
+
protected static readonly ownStyleStates: readonly StyleStateSpec[];
|
|
11
14
|
private _readOnly;
|
|
12
15
|
private _requiredEmpty;
|
|
16
|
+
private _rangeSelected;
|
|
13
17
|
private _baseBackground;
|
|
14
18
|
private _renderer;
|
|
15
19
|
private _editor;
|
|
@@ -17,8 +21,9 @@ export declare class Cell<T> extends Component {
|
|
|
17
21
|
private _scrollIntoView;
|
|
18
22
|
protected _activeEditor: CellEditor<T> | null;
|
|
19
23
|
protected _listeners: ListenerBag<string>;
|
|
20
|
-
constructor(tag: string, renderer: CellRenderer<T>, editor?: CellEditor<T>, rendererConstraints?: LayoutConstraints, editorContraints?: LayoutConstraints);
|
|
24
|
+
constructor(tag: string, renderer: CellRenderer<T>, editor?: CellEditor<T>, rendererConstraints?: LayoutConstraints, editorContraints?: LayoutConstraints, subclassDefaults?: Partial<ComponentOptions>);
|
|
21
25
|
protected clampsToContentSize(): boolean;
|
|
26
|
+
protected canSkipUnchangedLayout(): boolean;
|
|
22
27
|
getEditorKey(): string | null;
|
|
23
28
|
setEditorPool(pool: CellEditorPool | null): this;
|
|
24
29
|
setScrollIntoViewHandler(handler: (() => void) | null): this;
|
|
@@ -30,6 +35,7 @@ export declare class Cell<T> extends Component {
|
|
|
30
35
|
isReadOnly(): boolean;
|
|
31
36
|
setReadOnly(value: boolean): this;
|
|
32
37
|
setRequiredEmpty(value: boolean): this;
|
|
38
|
+
setRangeSelected(value: boolean): this;
|
|
33
39
|
setBaseBackground(color: string | null): this;
|
|
34
40
|
private _applyStateTint;
|
|
35
41
|
onKeyDown(evnt: CustomEvent<ForwardedKeyDetail>): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StringRenderer } from "../../../component/table/cell/renderer/String.js";
|
|
2
2
|
import { Cell } from "../../../component/table/cell/Cell.js";
|
|
3
3
|
declare class DefaultCell extends Cell<String | null> {
|
|
4
|
-
constructor(tag?: string);
|
|
4
|
+
constructor(tag?: string, renderer?: StringRenderer);
|
|
5
5
|
getRenderer(): StringRenderer;
|
|
6
6
|
setValue(value: String | null): this;
|
|
7
7
|
}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { DefaultCell } from "../../../component/table/cell/Default.js";
|
|
2
2
|
import { CellEvent } from "../../../component/table/cell/Cell.js";
|
|
3
3
|
import type { Handle } from "../../../core/DOM.js";
|
|
4
|
+
import { type StyleStateSpec } from "../../../core/ClassStyleRules.js";
|
|
4
5
|
export type HeaderCellEvent = CellEvent | "sortclick" | "contextmenu" | "resizestart" | "resizedrag";
|
|
5
6
|
declare class HeaderCell extends DefaultCell {
|
|
7
|
+
protected static readonly ownStyleStates: readonly StyleStateSpec[];
|
|
6
8
|
private _text;
|
|
7
9
|
private _fieldName;
|
|
8
10
|
private _isDragging;
|
|
9
11
|
private _tooltipText;
|
|
12
|
+
private _tooltipTeardownWired;
|
|
10
13
|
private _resizeHandle;
|
|
11
14
|
private _priorityBadge;
|
|
12
15
|
private _sortState;
|
|
@@ -44,6 +47,7 @@ declare class HeaderCell extends DefaultCell {
|
|
|
44
47
|
protected emit(event: "resizestart", clientX: number): void;
|
|
45
48
|
protected emit(event: "resizedrag", clientX: number): void;
|
|
46
49
|
setTooltip(text: string): this;
|
|
50
|
+
private attachTooltip;
|
|
47
51
|
getTooltip(): string;
|
|
48
52
|
private onSortClick;
|
|
49
53
|
private onContextMenu;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { DefaultCell } from "../../../component/table/cell/Default.js";
|
|
2
2
|
import type { Handle } from "../../../core/DOM.js";
|
|
3
|
+
import { type StyleBag } from "../../../core/ClassStyleRules.js";
|
|
3
4
|
declare class ParentHeaderCell extends DefaultCell {
|
|
5
|
+
protected static readonly ownClassStyleDefaults: StyleBag;
|
|
4
6
|
private _text;
|
|
5
7
|
private _color;
|
|
6
8
|
private _tooltipText;
|
|
9
|
+
private _tooltipTeardownWired;
|
|
7
10
|
constructor(text: string, color: string | null);
|
|
8
11
|
on(event: "contextmenu", listener: (x: number, y: number) => void): this;
|
|
9
12
|
on(event: "commit", listener: (value: String | null) => void): this;
|
|
@@ -13,6 +16,7 @@ declare class ParentHeaderCell extends DefaultCell {
|
|
|
13
16
|
protected emit(event: "commit", value: String | null): void;
|
|
14
17
|
protected emit(event: "editend"): void;
|
|
15
18
|
setTooltip(text: string): this;
|
|
19
|
+
private attachTooltip;
|
|
16
20
|
getTooltip(): string;
|
|
17
21
|
getText(): string;
|
|
18
22
|
getColor(): string | null;
|
|
@@ -11,7 +11,7 @@ interface ResizeHandleOptions extends ComponentOptions {
|
|
|
11
11
|
declare const RESIZE_HANDLE_CURSOR = "var(--ts-ui-table-resize-handle-cursor, ew-resize)";
|
|
12
12
|
declare class ResizeHandle extends Component<ResizeHandleOptions> {
|
|
13
13
|
private _listeners;
|
|
14
|
-
constructor(options?: ResizeHandleOptions);
|
|
14
|
+
constructor(options?: ResizeHandleOptions, subclassDefaults?: Partial<ComponentOptions>);
|
|
15
15
|
protected init(element?: Handle): this;
|
|
16
16
|
on(event: "dragstart", listener: (e: MouseEvent) => void): this;
|
|
17
17
|
on(event: "dragmove", listener: (clientX: number) => void): this;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Component } from "../../../../core/Component.js";
|
|
1
|
+
import { Component, ComponentOptions } from "../../../../core/Component.js";
|
|
2
2
|
export declare abstract class CellRenderer<T> extends Component {
|
|
3
|
-
constructor();
|
|
3
|
+
constructor(subclassDefaults?: Partial<ComponentOptions>);
|
|
4
4
|
abstract getValue(): T;
|
|
5
5
|
abstract setValue(t: T): void;
|
|
6
6
|
getContentX(): number;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { CellRenderer } from "../../../../component/table/cell/renderer/CellRenderer.js";
|
|
2
|
+
import { ComponentOptions } from "../../../../core/Component.js";
|
|
2
3
|
import { Text } from "../../../../component/input/Text.js";
|
|
3
4
|
declare class StringRenderer extends CellRenderer<String | null> {
|
|
4
5
|
private _text;
|
|
5
6
|
private _value;
|
|
6
7
|
private _display;
|
|
7
|
-
constructor();
|
|
8
|
+
constructor(subclassDefaults?: Partial<ComponentOptions>);
|
|
9
|
+
protected createText(): Text;
|
|
8
10
|
getText(): Text;
|
|
9
11
|
getValue(): String | null;
|
|
10
12
|
setValue(value: String | null): this;
|
|
@@ -14,7 +14,7 @@ export type { ExportOptions } from '../../component/table/TableExporter.js';
|
|
|
14
14
|
export { TableHeader } from '../../component/table/Header.js';
|
|
15
15
|
export type { TableHeaderEvent, HeaderColumnGeometry } from '../../component/table/Header.js';
|
|
16
16
|
export { Body } from '../../component/table/Body.js';
|
|
17
|
-
export type { BodyEvent, CellClickEvent } from '../../component/table/Body.js';
|
|
17
|
+
export type { BodyEvent, CellClickEvent, BodyViewState } from '../../component/table/Body.js';
|
|
18
18
|
export { TreeBody } from '../../component/table/TreeBody.js';
|
|
19
19
|
export type { FlatRecord, TreeBodySpec } from '../../component/table/TreeBody.js';
|
|
20
20
|
export { FooterRow } from '../../component/table/Footer.js';
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { Component } from "../../core/Component.js";
|
|
2
2
|
import type { Handle } from "../../core/DOM.js";
|
|
3
|
+
import type { StyleStateSpec } from "../../core/ClassStyleRules.js";
|
|
3
4
|
import { Glyph } from "../../component/display/Glyph.js";
|
|
4
5
|
import { TreeNode } from "../../component/tree/TreeNode.js";
|
|
5
6
|
import { TreeNodeRenderer } from "../../component/tree/TreeNodeRenderer.js";
|
|
6
7
|
export declare const TOGGLE_WIDTH = 20;
|
|
7
8
|
declare class TreeRow extends Component {
|
|
9
|
+
protected static readonly ownStyleStates: readonly StyleStateSpec[];
|
|
8
10
|
private _toggle;
|
|
9
11
|
private _spinner;
|
|
10
12
|
private _renderer;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Component, ComponentOptions } from "../core/Component.js";
|
|
2
|
+
import type { StyleBag } from "../core/ClassStyleRules.js";
|
|
2
3
|
import { DismissableLayer, LayerDismissMode } from "../core/LayerManager.js";
|
|
3
4
|
import { type Rect, type Handle } from "../core/DOM.js";
|
|
4
5
|
export interface AnimatedDropdownOptions extends ComponentOptions {
|
|
@@ -7,6 +8,7 @@ export interface AnimatedDropdownOptions extends ComponentOptions {
|
|
|
7
8
|
translatePx?: number;
|
|
8
9
|
}
|
|
9
10
|
declare class AnimatedDropdown<TOptions extends AnimatedDropdownOptions = AnimatedDropdownOptions> extends Component<TOptions> implements DismissableLayer {
|
|
11
|
+
protected static readonly ownClassStyleDefaults: StyleBag;
|
|
10
12
|
private _dismissing;
|
|
11
13
|
private _open;
|
|
12
14
|
private _closeHandler;
|
|
@@ -27,6 +27,7 @@ export declare class Binding extends BaseObject {
|
|
|
27
27
|
protected emit(event: "change", fieldName: string, value: unknown): void;
|
|
28
28
|
protected emit(event: "commit"): void;
|
|
29
29
|
protected emit(event: "reject"): void;
|
|
30
|
+
dispose(): void;
|
|
30
31
|
addValidation(fieldName: string, component: Component, rules: ValidationRule | ValidationRule[]): this;
|
|
31
32
|
removeValidation(fieldName: string): this;
|
|
32
33
|
validate(): boolean;
|