@jimka/typescript-ui 0.7.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-iZhsvMlT.js → Anchor-DdYgyn2V.js} +2 -2
- package/dist/lib/{Anchor-iZhsvMlT.js.map → Anchor-DdYgyn2V.js.map} +1 -1
- package/dist/lib/{AnimatedDropdown-D0RhVgv3.js → AnimatedDropdown-_KhHzX5D.js} +2 -2
- 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-C20k2YHU.js → Card-CAp7LcB5.js} +2 -2
- package/dist/lib/{Card-C20k2YHU.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-FWRjgF6T.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-DyPX8CFh.js → FieldDecorator-37IgKHHm.js} +2 -2
- package/dist/lib/{FieldDecorator-DyPX8CFh.js.map → FieldDecorator-37IgKHHm.js.map} +1 -1
- package/dist/lib/{Fit-CaPMj7Up.js → Fit-amTWlJM2.js} +2 -2
- package/dist/lib/{Fit-CaPMj7Up.js.map → Fit-amTWlJM2.js.map} +1 -1
- package/dist/lib/{FloatingPanel-Dsy_vJxi.js → FloatingPanel-CwsFPYbc.js} +2 -2
- package/dist/lib/{FloatingPanel-Dsy_vJxi.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-ft_UUpj8.js → Grid-BQZ4UIUH.js} +2 -2
- package/dist/lib/{Grid-ft_UUpj8.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-Osm3IjDw.js → Header-Cj33ABP1.js} +2 -2
- package/dist/lib/{Header-Osm3IjDw.js.map → Header-Cj33ABP1.js.map} +1 -1
- package/dist/lib/{IconText-BBaYJ2Fx.js → IconText-Dp64iq_q.js} +2 -2
- package/dist/lib/{IconText-BBaYJ2Fx.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-BqCT-1yv.js → MenuButton-BO4y3jf2.js} +2 -2
- package/dist/lib/{MenuButton-BqCT-1yv.js.map → MenuButton-BO4y3jf2.js.map} +1 -1
- package/dist/lib/{OverlayFade-CuEXgimf.js → OverlayFade-C1yQKffL.js} +2 -2
- package/dist/lib/{OverlayFade-CuEXgimf.js.map → OverlayFade-C1yQKffL.js.map} +1 -1
- package/dist/lib/{Panel-CtViePqY.js → Panel-DlsVVuvn.js} +2 -2
- package/dist/lib/{Panel-CtViePqY.js.map → Panel-DlsVVuvn.js.map} +1 -1
- package/dist/lib/{Position-BIEU1Eze.js → Position-DWR1nIpA.js} +2 -2
- package/dist/lib/{Position-BIEU1Eze.js.map → Position-DWR1nIpA.js.map} +1 -1
- 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--w28AnXc.js → RovingTabIndex-BttlsARv.js} +2 -2
- package/dist/lib/{RovingTabIndex--w28AnXc.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-DVe4UXwX.js → VBox-hFIZAEpT.js} +2 -2
- package/dist/lib/{VBox-DVe4UXwX.js.map → VBox-hFIZAEpT.js.map} +1 -1
- package/dist/lib/{VirtualScroller-ggPTCQb0.js → VirtualScroller-Csa3GBSM.js} +2 -2
- package/dist/lib/{VirtualScroller-ggPTCQb0.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-C7MrKMQr.js.map → selectionsEqual-DWdW5pxP.js.map} +1 -1
- package/dist/lib/types/component/button/Button.d.ts +6 -14
- package/dist/lib/types/component/button/TabButton.d.ts +3 -5
- package/dist/lib/types/component/button/TabCloseButton.d.ts +3 -0
- package/dist/lib/types/component/button/ToggleButton.d.ts +2 -5
- package/dist/lib/types/component/chart/AbstractChart.d.ts +2 -2
- 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/input/AbstractCalendarDropdown.d.ts +4 -4
- package/dist/lib/types/component/input/AbstractInput.d.ts +1 -0
- package/dist/lib/types/component/input/AbstractPickerField.d.ts +4 -2
- package/dist/lib/types/component/input/AutoCompleteDropdown.d.ts +2 -2
- package/dist/lib/types/component/input/AutoCompleteField.d.ts +1 -0
- package/dist/lib/types/component/input/ComboBox.d.ts +5 -2
- package/dist/lib/types/component/input/Link.d.ts +2 -2
- package/dist/lib/types/component/input/PasswordField.d.ts +2 -2
- package/dist/lib/types/component/input/PickerButton.d.ts +5 -2
- package/dist/lib/types/component/input/PickerInput.d.ts +2 -2
- package/dist/lib/types/component/input/SelectableText.d.ts +2 -2
- package/dist/lib/types/component/input/SpinButton.d.ts +3 -2
- package/dist/lib/types/component/input/Text.d.ts +3 -7
- package/dist/lib/types/component/input/TextArea.d.ts +2 -2
- package/dist/lib/types/component/input/TextField.d.ts +2 -2
- package/dist/lib/types/component/input/TextInput.d.ts +4 -2
- package/dist/lib/types/component/input/TimePickerDropdown.d.ts +2 -2
- package/dist/lib/types/component/input/UsernameField.d.ts +2 -2
- package/dist/lib/types/component/list/AbstractMarkerList.d.ts +2 -0
- package/dist/lib/types/component/list/AbstractSelectableList.d.ts +4 -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 +14 -6
- 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 +7 -0
- package/dist/lib/types/component/table/Row.d.ts +2 -0
- package/dist/lib/types/component/table/Table.d.ts +4 -1
- package/dist/lib/types/component/table/TablePanel.d.ts +5 -0
- package/dist/lib/types/component/table/TreeTablePanel.d.ts +5 -0
- package/dist/lib/types/component/table/cell/Cell.d.ts +3 -2
- package/dist/lib/types/component/table/cell/Header.d.ts +4 -3
- package/dist/lib/types/component/table/cell/ParentHeader.d.ts +4 -0
- package/dist/lib/types/component/tree/TreeRow.d.ts +2 -0
- package/dist/lib/types/core/AnimatedDropdown.d.ts +2 -2
- package/dist/lib/types/core/Binding.d.ts +1 -0
- package/dist/lib/types/core/ClassStyleRules.d.ts +44 -22
- package/dist/lib/types/core/Component.d.ts +55 -28
- package/dist/lib/types/core/DOM.d.ts +6 -0
- 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 +2 -0
- package/dist/lib/types/core/ListenerBag.d.ts +1 -0
- package/dist/lib/types/core/StyleTarget.d.ts +12 -0
- package/dist/lib/types/core/StyleTraits.d.ts +4 -0
- package/dist/lib/types/core/Theme.d.ts +5 -2
- package/dist/lib/types/core/index.d.ts +5 -2
- 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 +1 -0
- package/dist/lib/types/overlay/AbstractWindow.d.ts +35 -2
- 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 -2
- 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-W2PLJV5_.js +0 -2
- package/dist/lib/AbstractInput-W2PLJV5_.js.map +0 -1
- package/dist/lib/AnimatedDropdown-D0RhVgv3.js.map +0 -1
- package/dist/lib/Border-6GsTNV-2.js +0 -2
- package/dist/lib/Border-6GsTNV-2.js.map +0 -1
- package/dist/lib/Button-CnFAiQuV.js +0 -2
- package/dist/lib/Button-CnFAiQuV.js.map +0 -1
- package/dist/lib/Checkbox-CM1z8keM.js +0 -2
- package/dist/lib/Checkbox-CM1z8keM.js.map +0 -1
- package/dist/lib/CheckboxMenuRow-C1h4LPHR.js +0 -2
- package/dist/lib/CheckboxMenuRow-C1h4LPHR.js.map +0 -1
- package/dist/lib/CodeEditor-CTL2WjF8.js +0 -2
- package/dist/lib/CodeEditor-CTL2WjF8.js.map +0 -1
- package/dist/lib/ComboBox-PZ5YPL0X.js +0 -2
- package/dist/lib/ComboBox-PZ5YPL0X.js.map +0 -1
- package/dist/lib/Component-D99-15Zt.js +0 -2
- package/dist/lib/Component-D99-15Zt.js.map +0 -1
- package/dist/lib/Container-FWRjgF6T.js +0 -2
- package/dist/lib/DOM-Cjh7_7TF.js +0 -2
- package/dist/lib/DOM-Cjh7_7TF.js.map +0 -1
- package/dist/lib/Dialog-DN78RaVH.js +0 -2
- package/dist/lib/Dialog-DN78RaVH.js.map +0 -1
- package/dist/lib/Glyph-DiEpD3gy.js +0 -2
- package/dist/lib/Glyph-DiEpD3gy.js.map +0 -1
- package/dist/lib/GridConstraints-CvZ0Nzaw.js +0 -2
- package/dist/lib/GridConstraints-CvZ0Nzaw.js.map +0 -1
- package/dist/lib/LayoutSerialization-BC64__O7.js +0 -2
- package/dist/lib/LayoutSerialization-BC64__O7.js.map +0 -1
- package/dist/lib/List-CQbZK_pT.js +0 -2
- package/dist/lib/List-CQbZK_pT.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-CwHluLGT.js +0 -2
- package/dist/lib/Menu-CwHluLGT.js.map +0 -1
- package/dist/lib/ProgressSpinner-BuBvC1FY.js +0 -2
- package/dist/lib/ProgressSpinner-BuBvC1FY.js.map +0 -1
- package/dist/lib/RadioButton-Df5J-H6m.js +0 -2
- package/dist/lib/RadioButton-Df5J-H6m.js.map +0 -1
- package/dist/lib/RadioMenuRow-Cfv0x6Qj.js +0 -2
- package/dist/lib/RadioMenuRow-Cfv0x6Qj.js.map +0 -1
- package/dist/lib/Scrollbar-DcnueNJd.js +0 -2
- package/dist/lib/Scrollbar-DcnueNJd.js.map +0 -1
- package/dist/lib/SelectableText-DZNxjKXR.js +0 -2
- package/dist/lib/SelectableText-DZNxjKXR.js.map +0 -1
- package/dist/lib/Slider-DNfd8Lxz.js +0 -2
- package/dist/lib/Slider-DNfd8Lxz.js.map +0 -1
- package/dist/lib/Spacer-BznfGbwG.js +0 -2
- package/dist/lib/Spacer-BznfGbwG.js.map +0 -1
- package/dist/lib/TabButton-CAACsMov.js +0 -2
- package/dist/lib/TabButton-CAACsMov.js.map +0 -1
- package/dist/lib/TabCloseButton-CCiqsX3y.js +0 -2
- package/dist/lib/TabCloseButton-CCiqsX3y.js.map +0 -1
- package/dist/lib/Text-O-FWa5Cy.js +0 -2
- package/dist/lib/Text-O-FWa5Cy.js.map +0 -1
- package/dist/lib/Tooltip-CyICVu15.js +0 -3
- package/dist/lib/Tooltip-CyICVu15.js.map +0 -1
- package/dist/lib/Tree-CSEguhlk.js +0 -2
- package/dist/lib/Tree-CSEguhlk.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-C7MrKMQr.js +0 -2
|
@@ -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,7 +27,9 @@ 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
34
|
private _filterRowVisible;
|
|
31
35
|
private _filterStates;
|
|
@@ -66,11 +70,13 @@ declare class TableHeader extends Component {
|
|
|
66
70
|
private rebuildCells;
|
|
67
71
|
private computeVisibleFields;
|
|
68
72
|
private reconcileColumnCells;
|
|
73
|
+
private reconcileColumnWindowSlide;
|
|
69
74
|
private rebuildParentCells;
|
|
70
75
|
private wireCell;
|
|
71
76
|
private columnIndexOf;
|
|
72
77
|
private handleSortClick;
|
|
73
78
|
private syncSortIndicators;
|
|
79
|
+
private onStoreSortChange;
|
|
74
80
|
private filterState;
|
|
75
81
|
private onFilterCellChange;
|
|
76
82
|
private filterTarget;
|
|
@@ -78,6 +84,7 @@ declare class TableHeader extends Component {
|
|
|
78
84
|
private onStoreFilterChange;
|
|
79
85
|
private wireFilterCell;
|
|
80
86
|
private reconcileFilterCells;
|
|
87
|
+
private reconcileFilterWindowSlide;
|
|
81
88
|
renderColumnWindow(geometry?: HeaderColumnGeometry): this;
|
|
82
89
|
private invalidateCellLayouts;
|
|
83
90
|
private positionFilterCells;
|
|
@@ -5,6 +5,7 @@ import { ModelRecord } from "../../data/ModelRecord.js";
|
|
|
5
5
|
import { Cell } from "../../component/table/cell/Cell.js";
|
|
6
6
|
import type { ColumnConfig } from "../../component/table/ColumnConfig.js";
|
|
7
7
|
import { LayoutConstraints } from "../../layout/LayoutConstraints.js";
|
|
8
|
+
import type { StyleStateSpec } from "../../core/ClassStyleRules.js";
|
|
8
9
|
export interface ColumnWindowSlidePlan {
|
|
9
10
|
prevFirstCol: number;
|
|
10
11
|
prevLastCol: number;
|
|
@@ -16,6 +17,7 @@ export interface RetargetedCell {
|
|
|
16
17
|
fieldName: string;
|
|
17
18
|
}
|
|
18
19
|
declare class Row extends Component {
|
|
20
|
+
protected static readonly ownStyleStates: readonly StyleStateSpec[];
|
|
19
21
|
private _model?;
|
|
20
22
|
private _data?;
|
|
21
23
|
private _onCellCommit?;
|
|
@@ -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;
|
|
@@ -129,6 +131,7 @@ declare class Table extends Component<TableOptions> {
|
|
|
129
131
|
isAutoSizeColumns(): boolean;
|
|
130
132
|
getColumnMinWidth(column: Column): number;
|
|
131
133
|
getIntrinsicColumnWidths(): Array<number | null>;
|
|
134
|
+
private pinnedWidth;
|
|
132
135
|
private clampColumnWidth;
|
|
133
136
|
private flexColumnWidth;
|
|
134
137
|
private measureHeaders;
|
|
@@ -12,7 +12,12 @@ 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;
|
|
@@ -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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component, ComponentOptions } from "../../../core/Component.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { StyleBag, StyleStateSpec } from "../../../core/ClassStyleRules.js";
|
|
3
3
|
import { ListenerBag } from "../../../core/ListenerBag.js";
|
|
4
4
|
import { Card } from "../../../layout/Card.js";
|
|
5
5
|
import { CellRenderer } from "../../../component/table/cell/renderer/CellRenderer.js";
|
|
@@ -9,7 +9,8 @@ import { CellEditorPool } from "../../../component/table/cell/editor/CellEditorP
|
|
|
9
9
|
import { LayoutConstraints } from "../../../layout/LayoutConstraints.js";
|
|
10
10
|
export type CellEvent = "commit" | "editend";
|
|
11
11
|
export declare class Cell<T> extends Component {
|
|
12
|
-
protected static readonly ownClassStyleDefaults:
|
|
12
|
+
protected static readonly ownClassStyleDefaults: StyleBag;
|
|
13
|
+
protected static readonly ownStyleStates: readonly StyleStateSpec[];
|
|
13
14
|
private _readOnly;
|
|
14
15
|
private _requiredEmpty;
|
|
15
16
|
private _rangeSelected;
|
|
@@ -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;
|
|
@@ -14,9 +17,6 @@ declare class HeaderCell extends DefaultCell {
|
|
|
14
17
|
private _headerGlyphInstance;
|
|
15
18
|
private _columnFocused;
|
|
16
19
|
private _required;
|
|
17
|
-
private _activeStyleRule?;
|
|
18
|
-
private get activeStyleRule();
|
|
19
|
-
protected getRestingExclusionSuffixes(): readonly string[];
|
|
20
20
|
constructor(text: String, fieldName: string, headerGlyph?: string | null);
|
|
21
21
|
protected init(element?: Handle): this;
|
|
22
22
|
setFieldName(name: string): this;
|
|
@@ -47,6 +47,7 @@ declare class HeaderCell extends DefaultCell {
|
|
|
47
47
|
protected emit(event: "resizestart", clientX: number): void;
|
|
48
48
|
protected emit(event: "resizedrag", clientX: number): void;
|
|
49
49
|
setTooltip(text: string): this;
|
|
50
|
+
private attachTooltip;
|
|
50
51
|
getTooltip(): string;
|
|
51
52
|
private onSortClick;
|
|
52
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;
|
|
@@ -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,5 +1,5 @@
|
|
|
1
1
|
import { Component, ComponentOptions } from "../core/Component.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { StyleBag } from "../core/ClassStyleRules.js";
|
|
3
3
|
import { DismissableLayer, LayerDismissMode } from "../core/LayerManager.js";
|
|
4
4
|
import { type Rect, type Handle } from "../core/DOM.js";
|
|
5
5
|
export interface AnimatedDropdownOptions extends ComponentOptions {
|
|
@@ -8,7 +8,7 @@ export interface AnimatedDropdownOptions extends ComponentOptions {
|
|
|
8
8
|
translatePx?: number;
|
|
9
9
|
}
|
|
10
10
|
declare class AnimatedDropdown<TOptions extends AnimatedDropdownOptions = AnimatedDropdownOptions> extends Component<TOptions> implements DismissableLayer {
|
|
11
|
-
protected static readonly ownClassStyleDefaults:
|
|
11
|
+
protected static readonly ownClassStyleDefaults: StyleBag;
|
|
12
12
|
private _dismissing;
|
|
13
13
|
private _open;
|
|
14
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;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Position } from "../primitive/Position.js";
|
|
2
2
|
import { type BorderOptions } from "../primitive/Border.js";
|
|
3
|
+
import { Insets } from "../primitive/Insets.js";
|
|
3
4
|
export declare const COMPONENT_CLASS = "ts-ui-component";
|
|
4
|
-
export interface
|
|
5
|
+
export interface StyleBag {
|
|
5
6
|
visible?: boolean | null;
|
|
6
7
|
displayed?: boolean;
|
|
7
8
|
minSize?: {
|
|
@@ -13,18 +14,28 @@ export interface ClassStyleDefaults {
|
|
|
13
14
|
height: number;
|
|
14
15
|
} | null;
|
|
15
16
|
overflow?: string | null;
|
|
17
|
+
overflowX?: string | null;
|
|
18
|
+
overflowY?: string | null;
|
|
16
19
|
cursor?: string | null;
|
|
17
20
|
userSelect?: string | null;
|
|
18
21
|
outline?: string | null;
|
|
19
22
|
foregroundColor?: string | null;
|
|
20
|
-
font?:
|
|
23
|
+
font?: TextStyleBag | null;
|
|
24
|
+
background?: string | null;
|
|
21
25
|
backgroundColor?: string | null;
|
|
22
26
|
backgroundImage?: string | null;
|
|
23
27
|
shadow?: string | null;
|
|
24
28
|
borderRadius?: string | null;
|
|
29
|
+
borderColor?: string | null;
|
|
25
30
|
border?: BorderOptions | string | null;
|
|
31
|
+
marginLeft?: string | null;
|
|
32
|
+
boxSizing?: string | null;
|
|
33
|
+
position?: Position;
|
|
34
|
+
whiteSpace?: string | null;
|
|
35
|
+
margin?: string | null;
|
|
36
|
+
padding?: Insets | null;
|
|
26
37
|
}
|
|
27
|
-
interface
|
|
38
|
+
export interface TextStyleBag {
|
|
28
39
|
fontFamily?: string | null;
|
|
29
40
|
fontKerning?: string | null;
|
|
30
41
|
fontSize?: string | null;
|
|
@@ -38,24 +49,35 @@ interface TextClassStyleDefaults {
|
|
|
38
49
|
lineHeight?: string | null;
|
|
39
50
|
textOverflow?: string | null;
|
|
40
51
|
}
|
|
41
|
-
type
|
|
52
|
+
export type ResolvedStyleBag = Readonly<Record<string, string | null>>;
|
|
42
53
|
export declare function registerStyleChainRoot(ctor: Function): void;
|
|
43
|
-
export declare function resolveDeclarations(defaults:
|
|
44
|
-
export declare function
|
|
54
|
+
export declare function resolveDeclarations(defaults: StyleBag): Record<string, string | null>;
|
|
55
|
+
export declare function resolvePartialDeclarations(bag: StyleBag): Record<string, string | null>;
|
|
56
|
+
export interface StyleLayer {
|
|
57
|
+
readonly authored: StyleBag;
|
|
58
|
+
readonly resolved: ResolvedStyleBag;
|
|
59
|
+
}
|
|
60
|
+
export interface StyleStateSpec {
|
|
61
|
+
readonly selector: string;
|
|
62
|
+
readonly extract: (defaults: StyleBag) => StyleBag;
|
|
63
|
+
}
|
|
64
|
+
export interface ResolvedStyleState {
|
|
65
|
+
readonly selector: string;
|
|
66
|
+
readonly guardedSuffix: string;
|
|
67
|
+
readonly layer: StyleLayer;
|
|
68
|
+
}
|
|
69
|
+
export declare function resolveStyleStates(rawCtor: Function): readonly ResolvedStyleState[];
|
|
70
|
+
export declare function restingGuardSuffix(ctor: Function): string;
|
|
71
|
+
export declare function ensureClassStyleRule(rawCtor: Function, defaults: StyleBag): StyleLayer | null;
|
|
45
72
|
export declare function getStyleClassChain(rawCtor: Function): readonly string[];
|
|
46
|
-
export declare function ensureClassStateRule(ctor: Function, suffix: string, declarations: Record<string, string | null
|
|
47
|
-
export
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
export declare function writeManyClassStateDeclarations(rule: StyleRule, bag: ClassStyleBag | null, values: Record<string, string | null>): void;
|
|
51
|
-
export declare class StateStyleRule {
|
|
52
|
-
private readonly _rule;
|
|
53
|
-
private readonly _bag;
|
|
54
|
-
private readonly _hasElement;
|
|
55
|
-
constructor(ctor: Function, suffix: string, rule: StyleRule, resolveDefaults: () => Record<string, string | null>, hasElement: () => boolean, extractorMethodName?: string);
|
|
56
|
-
get classBag(): ClassStyleBag | null;
|
|
57
|
-
set(key: string, value: string | null): void;
|
|
58
|
-
setMany(values: Record<string, string | null>): void;
|
|
59
|
-
private _materialise;
|
|
73
|
+
export declare function ensureClassStateRule(ctor: Function, suffix: string, declarations: Record<string, string | null>): ResolvedStyleBag | null;
|
|
74
|
+
export interface StyleTrait {
|
|
75
|
+
readonly name: string;
|
|
76
|
+
readonly declarations: StyleBag;
|
|
60
77
|
}
|
|
61
|
-
export
|
|
78
|
+
export declare const TRAIT_CLASS_PREFIX = "ts-ui-trait-";
|
|
79
|
+
export declare function traitClassName(trait: StyleTrait): string;
|
|
80
|
+
export declare function resolveStyleTraits(rawCtor: Function): readonly StyleTrait[];
|
|
81
|
+
export declare function resolveTraitStyleDefaults(rawCtor: Function): StyleBag;
|
|
82
|
+
export declare function ensureTraitStyleRule(trait: StyleTrait): StyleLayer | null;
|
|
83
|
+
export declare function traitTopStateConflictKeys(ctor: Function, trait: StyleTrait): readonly string[];
|
|
@@ -9,7 +9,8 @@ import { Position } from "../primitive/Position.js";
|
|
|
9
9
|
import { Aria } from "../core/Aria.js";
|
|
10
10
|
import { Event } from "../core/Event.js";
|
|
11
11
|
import { StyleRule } from "../core/StyleTarget.js";
|
|
12
|
-
import {
|
|
12
|
+
import { ListenerBag } from "../core/ListenerBag.js";
|
|
13
|
+
import { type StyleBag, type StyleLayer, type StyleStateSpec, type StyleTrait, type TextStyleBag } from "../core/ClassStyleRules.js";
|
|
13
14
|
export interface Comparator<V, U> {
|
|
14
15
|
(a: V, b: U): number;
|
|
15
16
|
}
|
|
@@ -67,18 +68,19 @@ export interface ComponentOptions {
|
|
|
67
68
|
attributes?: Record<string, string>;
|
|
68
69
|
components?: Array<Component | ComponentFactory | ConstrainedComponent>;
|
|
69
70
|
styleRules?: ComponentStyleRuleSpec[];
|
|
70
|
-
|
|
71
|
+
styleTrait?: StyleTrait | null;
|
|
71
72
|
}
|
|
72
73
|
declare class Component<TOptions extends ComponentOptions = ComponentOptions> extends BaseObject {
|
|
74
|
+
protected static readonly ownStyleStates: readonly StyleStateSpec[];
|
|
73
75
|
private _components;
|
|
74
76
|
private _firstLayoutCallbacks;
|
|
75
77
|
private _element;
|
|
76
78
|
private readonly _ownedHandles;
|
|
77
79
|
private readonly _ownedSelectors;
|
|
78
80
|
private readonly _themeCleanups;
|
|
81
|
+
private readonly _destroyCleanups;
|
|
79
82
|
private _tag;
|
|
80
83
|
private _elementAttributes;
|
|
81
|
-
private _boxSizing;
|
|
82
84
|
private _left;
|
|
83
85
|
private _top;
|
|
84
86
|
private _width;
|
|
@@ -90,19 +92,16 @@ declare class Component<TOptions extends ComponentOptions = ComponentOptions> ex
|
|
|
90
92
|
private _scrollTop;
|
|
91
93
|
private _willChange;
|
|
92
94
|
private _transition;
|
|
93
|
-
private _position;
|
|
94
95
|
private _onPreferredSizeChange;
|
|
95
96
|
private _onConstraintSizeChange;
|
|
96
|
-
private _overflowX;
|
|
97
|
-
private _overflowY;
|
|
98
97
|
private _wheelScroller;
|
|
99
98
|
private _contain;
|
|
100
99
|
private _animation;
|
|
101
100
|
private _lastEffectiveVisible;
|
|
102
101
|
private _pendingRematerialize;
|
|
103
102
|
private _refocusOnRematerialize;
|
|
103
|
+
private _destroyed;
|
|
104
104
|
private _animationPlayState;
|
|
105
|
-
private _outline;
|
|
106
105
|
private _appearance;
|
|
107
106
|
private _borderImage;
|
|
108
107
|
private _transform;
|
|
@@ -116,12 +115,20 @@ declare class Component<TOptions extends ComponentOptions = ComponentOptions> ex
|
|
|
116
115
|
private _autoCommitAttributes;
|
|
117
116
|
private _layoutPaused;
|
|
118
117
|
private _aria;
|
|
119
|
-
private _whiteSpace;
|
|
120
118
|
private _verticalAlign;
|
|
121
119
|
private _styleRule;
|
|
122
120
|
private _inlineStyle;
|
|
123
|
-
private
|
|
124
|
-
private
|
|
121
|
+
private _classLayer;
|
|
122
|
+
private _instanceTraitLayer;
|
|
123
|
+
private _classTraitLayers;
|
|
124
|
+
private _instanceTraitToken;
|
|
125
|
+
private _instanceStyle;
|
|
126
|
+
private _resolvedCache;
|
|
127
|
+
private _pendingStyleKeys;
|
|
128
|
+
private _instanceStateStyle;
|
|
129
|
+
private _pendingStateKeys;
|
|
130
|
+
private _activeStates;
|
|
131
|
+
private _valueStyleTokens;
|
|
125
132
|
private _clipFrame;
|
|
126
133
|
private _clipFrameStyle;
|
|
127
134
|
private _contentFrame;
|
|
@@ -136,6 +143,8 @@ declare class Component<TOptions extends ComponentOptions = ComponentOptions> ex
|
|
|
136
143
|
protected applyChromeOptions(options: TOptions): void;
|
|
137
144
|
protected applyListeners(listeners: Record<string, ((...args: any[]) => void) | undefined> | undefined): void;
|
|
138
145
|
protected subscribeTheme(listener: () => void): void;
|
|
146
|
+
onDestroy(cleanup: () => void): void;
|
|
147
|
+
protected registerListenerBag<T extends string>(bag: ListenerBag<T>): ListenerBag<T>;
|
|
139
148
|
dispose(): void;
|
|
140
149
|
protected destructor(): void;
|
|
141
150
|
protected trackHandle(handle: Handle): Handle;
|
|
@@ -145,7 +154,6 @@ declare class Component<TOptions extends ComponentOptions = ComponentOptions> ex
|
|
|
145
154
|
protected getCSSRule(): CSSStyleRule;
|
|
146
155
|
private ensureCSSRule;
|
|
147
156
|
protected createStyleRule(selectorSuffix: string): StyleRule;
|
|
148
|
-
protected createStateStyleRule(selectorSuffix: string, resolveDefaults: () => Record<string, string | null>, extractorMethodName?: string): StateStyleRule;
|
|
149
157
|
getElement(createIfMissing?: boolean): Handle | undefined;
|
|
150
158
|
protected getScrollElement(): Handle | undefined;
|
|
151
159
|
removeElement(): this;
|
|
@@ -177,8 +185,9 @@ declare class Component<TOptions extends ComponentOptions = ComponentOptions> ex
|
|
|
177
185
|
setId(id: string): this;
|
|
178
186
|
getName(): string | null;
|
|
179
187
|
setName(name: string | null): this;
|
|
180
|
-
|
|
181
|
-
|
|
188
|
+
getStyleTrait(): StyleTrait | null;
|
|
189
|
+
setStyleTrait(trait: StyleTrait | null): this;
|
|
190
|
+
private ensureTraitLayer;
|
|
182
191
|
getDataAttribute(key: string): string | undefined;
|
|
183
192
|
setDataAttribute(key: string, value: string): this;
|
|
184
193
|
delDataAttribute(key: string): this;
|
|
@@ -192,7 +201,7 @@ declare class Component<TOptions extends ComponentOptions = ComponentOptions> ex
|
|
|
192
201
|
isEffectivelyVisible(): boolean;
|
|
193
202
|
protected onEffectiveVisibilityChange(effective: boolean): void;
|
|
194
203
|
propagateEffectiveVisibility(effective: boolean): void;
|
|
195
|
-
|
|
204
|
+
protected scheduleEffectiveVisibilityReconcile(): void;
|
|
196
205
|
getInsets(): Insets;
|
|
197
206
|
setInsets(insets: Insets): this;
|
|
198
207
|
clearInsets(): this;
|
|
@@ -219,6 +228,7 @@ declare class Component<TOptions extends ComponentOptions = ComponentOptions> ex
|
|
|
219
228
|
getBorder(): BorderOptions | null;
|
|
220
229
|
clearBorder(): this;
|
|
221
230
|
setBorder(options: BorderOptions | string): this;
|
|
231
|
+
protected cacheBorderSpec(options: BorderOptions | string): void;
|
|
222
232
|
getCursor(): string | null;
|
|
223
233
|
setCursor(cursor: string): this;
|
|
224
234
|
clearCursor(): this;
|
|
@@ -259,6 +269,7 @@ declare class Component<TOptions extends ComponentOptions = ComponentOptions> ex
|
|
|
259
269
|
setMinSize(size: Size): this;
|
|
260
270
|
getMaxSize(): Size | null;
|
|
261
271
|
setMaxSize(size: Size): this;
|
|
272
|
+
protected notifyConstraintSizeChange(): void;
|
|
262
273
|
getInnerSize(): Size | null;
|
|
263
274
|
getContentBounds(): {
|
|
264
275
|
x: number;
|
|
@@ -353,26 +364,42 @@ declare class Component<TOptions extends ComponentOptions = ComponentOptions> ex
|
|
|
353
364
|
clearUserSelect(): this;
|
|
354
365
|
focus(preventScroll?: boolean): this;
|
|
355
366
|
unfocus(): this;
|
|
356
|
-
protected
|
|
357
|
-
protected
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
protected
|
|
361
|
-
protected
|
|
367
|
+
protected styleLayers(): ReadonlyArray<StyleLayer>;
|
|
368
|
+
protected instanceLayer(): StyleLayer;
|
|
369
|
+
protected instanceStateLayer(selector: string): StyleLayer | null;
|
|
370
|
+
protected classStateLayer(selector: string): StyleLayer | null;
|
|
371
|
+
protected layersBelowInstance(): ReadonlyArray<StyleLayer>;
|
|
372
|
+
protected matchesLowerTier(key: string, value: string | null): boolean;
|
|
373
|
+
protected writeStyle(patch: StyleBag): void;
|
|
374
|
+
protected cacheStyleValue<K extends keyof StyleBag>(key: K, value: StyleBag[K]): void;
|
|
375
|
+
protected resolveStyleValue<K extends keyof StyleBag>(key: K): NonNullable<StyleBag[K]> | null;
|
|
376
|
+
protected resolveOverflowAxis(axisKey: "overflowX" | "overflowY"): string | null;
|
|
377
|
+
protected resolveFontValue<K extends keyof TextStyleBag>(key: K): NonNullable<TextStyleBag[K]> | null;
|
|
378
|
+
protected writeStateStyle(selector: string, patch: StyleBag): void;
|
|
379
|
+
protected pinStateStyle(selector: string, patch: StyleBag): void;
|
|
380
|
+
protected resolveStateStyleValue<K extends keyof StyleBag>(selector: string, key: K): NonNullable<StyleBag[K]> | null;
|
|
381
|
+
protected flushStyleBag(): void;
|
|
382
|
+
protected onStyleResolved(keys: ReadonlySet<string>): void;
|
|
383
|
+
protected flushStateStyleBag(): void;
|
|
384
|
+
protected ensureSharedStateRule(selectorSuffix: string, declarations: Record<string, string | null>): void;
|
|
385
|
+
private _isolationSuppressed?;
|
|
386
|
+
protected isIsolationSuppressed(): boolean;
|
|
387
|
+
protected suppressIsolation(suppressed: boolean): void;
|
|
362
388
|
protected isRestingChromeIsolated(): boolean;
|
|
389
|
+
protected restingIsolationKeys(): ReadonlySet<string>;
|
|
363
390
|
protected _restingStyleRule?: StyleRule;
|
|
364
391
|
protected get restingStyleRule(): StyleRule;
|
|
365
392
|
protected materialiseRestingRule(): void;
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
protected
|
|
369
|
-
protected
|
|
393
|
+
setStyleState(name: string, active: boolean): this;
|
|
394
|
+
isStyleState(name: string): boolean;
|
|
395
|
+
protected writeGuardedCSSRule(key: string, value: string | null): void;
|
|
396
|
+
protected setValueStyleState(prefix: string, cssValue: string, patch: StyleBag): void;
|
|
397
|
+
private valueClassGuardSuffix;
|
|
398
|
+
protected getValueStyleToken(prefix: string): string | null;
|
|
399
|
+
protected clearValueStyleState(prefix: string): void;
|
|
400
|
+
protected getClassStyleDefaults(): StyleBag;
|
|
370
401
|
applyStyle(element: Handle): this;
|
|
371
|
-
private applyBoxAndVisibilityStyles;
|
|
372
402
|
private replayGeometryStyles;
|
|
373
|
-
private applySizeConstraintStyles;
|
|
374
|
-
private applyOverflowStyles;
|
|
375
|
-
private applyChromeStyles;
|
|
376
403
|
private applyMiscInlineStyles;
|
|
377
404
|
protected applySubclassStyles(): void;
|
|
378
405
|
private materialiseWhenNeeded;
|
|
@@ -84,6 +84,7 @@ export interface DOMSink {
|
|
|
84
84
|
pushHistoryPath(url: string): void;
|
|
85
85
|
replaceHistoryPath(url: string): void;
|
|
86
86
|
writeClipboardText(text: string): void;
|
|
87
|
+
clearDocumentSelection(): void;
|
|
87
88
|
addListener<T extends Event = Event>(target: Handle, type: string, handler: (event: T) => void, options?: boolean | AddEventListenerOptions): void;
|
|
88
89
|
removeListener<T extends Event = Event>(target: Handle, type: string, handler: (event: T) => void, options?: boolean | EventListenerOptions): void;
|
|
89
90
|
dispatchEvent(target: Handle, event: Event): void;
|
|
@@ -148,6 +149,8 @@ export interface DOMSource {
|
|
|
148
149
|
contains(ancestor: Handle, node: Handle | null): boolean;
|
|
149
150
|
querySelector(root: Handle, selector: string): Handle | null;
|
|
150
151
|
querySelectorAll(root: Handle, selector: string): Handle[];
|
|
152
|
+
countElements(): number;
|
|
153
|
+
getRuleCssText(rule: CSSStyleRule): string;
|
|
151
154
|
matches(handle: Handle, selector: string): boolean;
|
|
152
155
|
getParentElement(handle: Handle): Handle | null;
|
|
153
156
|
getParentNode(handle: Handle): Handle | null;
|
|
@@ -225,6 +228,7 @@ export declare class ProductionDOMSink implements DOMSink {
|
|
|
225
228
|
pushHistoryPath(url: string): void;
|
|
226
229
|
replaceHistoryPath(url: string): void;
|
|
227
230
|
writeClipboardText(text: string): void;
|
|
231
|
+
clearDocumentSelection(): void;
|
|
228
232
|
addListener<T extends Event = Event>(target: Handle, type: string, handler: (event: T) => void, options?: boolean | AddEventListenerOptions): void;
|
|
229
233
|
removeListener<T extends Event = Event>(target: Handle, type: string, handler: (event: T) => void, options?: boolean | EventListenerOptions): void;
|
|
230
234
|
dispatchEvent(target: Handle, event: Event): void;
|
|
@@ -289,6 +293,8 @@ export declare class ProductionDOMSource implements DOMSource {
|
|
|
289
293
|
contains(ancestor: Handle, node: Handle | null): boolean;
|
|
290
294
|
querySelector(root: Handle, selector: string): Handle | null;
|
|
291
295
|
querySelectorAll(root: Handle, selector: string): Handle[];
|
|
296
|
+
countElements(): number;
|
|
297
|
+
getRuleCssText(rule: CSSStyleRule): string;
|
|
292
298
|
matches(handle: Handle, selector: string): boolean;
|
|
293
299
|
getParentElement(handle: Handle): Handle | null;
|
|
294
300
|
getParentNode(handle: Handle): Handle | null;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface DiagnosticsCounters {
|
|
2
|
+
componentsConstructed: number;
|
|
3
|
+
componentsDestroyed: number;
|
|
4
|
+
bagListenersAdded: number;
|
|
5
|
+
bagListenersRemoved: number;
|
|
6
|
+
layoutPasses: number;
|
|
7
|
+
layoutFlushes: number;
|
|
8
|
+
layoutFlushTotalMs: number;
|
|
9
|
+
layoutFlushMaxMs: number;
|
|
10
|
+
}
|
|
11
|
+
export declare namespace Diagnostics {
|
|
12
|
+
function noteComponentConstructed(): void;
|
|
13
|
+
function noteComponentDestroyed(): void;
|
|
14
|
+
function noteBagListenerAdded(): void;
|
|
15
|
+
function noteBagListenerRemoved(): void;
|
|
16
|
+
function noteLayoutPass(): void;
|
|
17
|
+
function noteLayoutFlush(durationMs: number): void;
|
|
18
|
+
function isTimingEnabled(): boolean;
|
|
19
|
+
function setTimingEnabled(enabled: boolean): void;
|
|
20
|
+
function counters(): DiagnosticsCounters;
|
|
21
|
+
function _reset(): void;
|
|
22
|
+
}
|
|
@@ -30,4 +30,11 @@ export declare namespace Event {
|
|
|
30
30
|
function _registeredComponentIds(): readonly string[];
|
|
31
31
|
function addViewportListener(component: Component, type: string, listener: Listener): void;
|
|
32
32
|
function removeViewportListener(component: Component, type: string, listener: Listener): void;
|
|
33
|
+
interface ListenerCounts {
|
|
34
|
+
exact: number;
|
|
35
|
+
subtree: number;
|
|
36
|
+
viewport: number;
|
|
37
|
+
total: number;
|
|
38
|
+
}
|
|
39
|
+
function listenerCounts(): ListenerCounts;
|
|
33
40
|
}
|
|
@@ -13,6 +13,7 @@ export interface DismissableLayer {
|
|
|
13
13
|
export declare namespace LayerManager {
|
|
14
14
|
const Band: {
|
|
15
15
|
readonly Window: number;
|
|
16
|
+
readonly PinnedWindow: number;
|
|
16
17
|
readonly Popover: number;
|
|
17
18
|
readonly Dropdown: number;
|
|
18
19
|
readonly Dialog: number;
|
|
@@ -25,5 +26,6 @@ export declare namespace LayerManager {
|
|
|
25
26
|
function getTopLayer(): DismissableLayer | null;
|
|
26
27
|
function isTopmostInputLayer(layer: DismissableLayer): boolean;
|
|
27
28
|
function bringToFront(layer: DismissableLayer): void;
|
|
29
|
+
function setBand(layer: DismissableLayer, band: number): void;
|
|
28
30
|
function getZIndex(layer: DismissableLayer): number;
|
|
29
31
|
}
|
|
@@ -33,6 +33,18 @@ export type StyleRuleSpec = StyleRuleScope & {
|
|
|
33
33
|
export declare function disposeStyleRule(selector: string): void;
|
|
34
34
|
export declare function _ruleCacheHas(selector: string): boolean;
|
|
35
35
|
export declare function _ruleCacheKeys(): readonly string[];
|
|
36
|
+
export interface StyleRuleCounts {
|
|
37
|
+
instance: number;
|
|
38
|
+
class: number;
|
|
39
|
+
other: number;
|
|
40
|
+
total: number;
|
|
41
|
+
}
|
|
42
|
+
export declare function styleRuleCounts(): StyleRuleCounts;
|
|
43
|
+
export interface StyleRuleEntry {
|
|
44
|
+
selector: string;
|
|
45
|
+
cssText: string;
|
|
46
|
+
}
|
|
47
|
+
export declare function styleRuleEntries(): StyleRuleEntry[];
|
|
36
48
|
declare class StyleRule extends StyleTarget<CSSStyleRule> {
|
|
37
49
|
private _factory;
|
|
38
50
|
private _selector;
|