@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,5 +1,8 @@
|
|
|
1
|
+
import { Position } from "../primitive/Position.js";
|
|
2
|
+
import { type BorderOptions } from "../primitive/Border.js";
|
|
3
|
+
import { Insets } from "../primitive/Insets.js";
|
|
1
4
|
export declare const COMPONENT_CLASS = "ts-ui-component";
|
|
2
|
-
interface
|
|
5
|
+
export interface StyleBag {
|
|
3
6
|
visible?: boolean | null;
|
|
4
7
|
displayed?: boolean;
|
|
5
8
|
minSize?: {
|
|
@@ -11,8 +14,70 @@ interface ClassStyleDefaults {
|
|
|
11
14
|
height: number;
|
|
12
15
|
} | null;
|
|
13
16
|
overflow?: string | null;
|
|
17
|
+
overflowX?: string | null;
|
|
18
|
+
overflowY?: string | null;
|
|
14
19
|
cursor?: string | null;
|
|
20
|
+
userSelect?: string | null;
|
|
21
|
+
outline?: string | null;
|
|
22
|
+
foregroundColor?: string | null;
|
|
23
|
+
font?: TextStyleBag | null;
|
|
24
|
+
background?: string | null;
|
|
25
|
+
backgroundColor?: string | null;
|
|
26
|
+
backgroundImage?: string | null;
|
|
27
|
+
shadow?: string | null;
|
|
28
|
+
borderRadius?: string | null;
|
|
29
|
+
borderColor?: string | null;
|
|
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;
|
|
15
37
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
38
|
+
export interface TextStyleBag {
|
|
39
|
+
fontFamily?: string | null;
|
|
40
|
+
fontKerning?: string | null;
|
|
41
|
+
fontSize?: string | null;
|
|
42
|
+
fontSizeAdjust?: string | null;
|
|
43
|
+
fontStretch?: string | null;
|
|
44
|
+
fontStyle?: string | null;
|
|
45
|
+
fontVariant?: string | null;
|
|
46
|
+
fontWeight?: string | null;
|
|
47
|
+
textAlign?: string | null;
|
|
48
|
+
textShadow?: string | null;
|
|
49
|
+
lineHeight?: string | null;
|
|
50
|
+
textOverflow?: string | null;
|
|
51
|
+
}
|
|
52
|
+
export type ResolvedStyleBag = Readonly<Record<string, string | null>>;
|
|
53
|
+
export declare function registerStyleChainRoot(ctor: Function): void;
|
|
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;
|
|
72
|
+
export declare function getStyleClassChain(rawCtor: Function): readonly string[];
|
|
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;
|
|
77
|
+
}
|
|
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,6 +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 { ListenerBag } from "../core/ListenerBag.js";
|
|
13
|
+
import { type StyleBag, type StyleLayer, type StyleStateSpec, type StyleTrait, type TextStyleBag } from "../core/ClassStyleRules.js";
|
|
12
14
|
export interface Comparator<V, U> {
|
|
13
15
|
(a: V, b: U): number;
|
|
14
16
|
}
|
|
@@ -47,6 +49,7 @@ export interface ComponentOptions {
|
|
|
47
49
|
shadow?: string;
|
|
48
50
|
outline?: string;
|
|
49
51
|
cursor?: string;
|
|
52
|
+
userSelect?: string;
|
|
50
53
|
preferredSize?: Size;
|
|
51
54
|
minSize?: Size;
|
|
52
55
|
maxSize?: Size;
|
|
@@ -65,40 +68,40 @@ export interface ComponentOptions {
|
|
|
65
68
|
attributes?: Record<string, string>;
|
|
66
69
|
components?: Array<Component | ComponentFactory | ConstrainedComponent>;
|
|
67
70
|
styleRules?: ComponentStyleRuleSpec[];
|
|
71
|
+
styleTrait?: StyleTrait | null;
|
|
68
72
|
}
|
|
69
73
|
declare class Component<TOptions extends ComponentOptions = ComponentOptions> extends BaseObject {
|
|
74
|
+
protected static readonly ownStyleStates: readonly StyleStateSpec[];
|
|
70
75
|
private _components;
|
|
71
76
|
private _firstLayoutCallbacks;
|
|
72
77
|
private _element;
|
|
73
78
|
private readonly _ownedHandles;
|
|
74
79
|
private readonly _ownedSelectors;
|
|
75
80
|
private readonly _themeCleanups;
|
|
81
|
+
private readonly _destroyCleanups;
|
|
76
82
|
private _tag;
|
|
77
83
|
private _elementAttributes;
|
|
78
|
-
private _boxSizing;
|
|
79
84
|
private _left;
|
|
80
85
|
private _top;
|
|
81
86
|
private _width;
|
|
82
87
|
private _height;
|
|
88
|
+
private _layoutDirty;
|
|
83
89
|
private _translateX;
|
|
84
90
|
private _translateY;
|
|
85
91
|
private _scrollLeft;
|
|
86
92
|
private _scrollTop;
|
|
87
93
|
private _willChange;
|
|
88
94
|
private _transition;
|
|
89
|
-
private _position;
|
|
90
95
|
private _onPreferredSizeChange;
|
|
91
96
|
private _onConstraintSizeChange;
|
|
92
|
-
private _overflowX;
|
|
93
|
-
private _overflowY;
|
|
94
97
|
private _wheelScroller;
|
|
95
98
|
private _contain;
|
|
96
99
|
private _animation;
|
|
97
100
|
private _lastEffectiveVisible;
|
|
98
101
|
private _pendingRematerialize;
|
|
99
102
|
private _refocusOnRematerialize;
|
|
103
|
+
private _destroyed;
|
|
100
104
|
private _animationPlayState;
|
|
101
|
-
private _outline;
|
|
102
105
|
private _appearance;
|
|
103
106
|
private _borderImage;
|
|
104
107
|
private _transform;
|
|
@@ -112,12 +115,20 @@ declare class Component<TOptions extends ComponentOptions = ComponentOptions> ex
|
|
|
112
115
|
private _autoCommitAttributes;
|
|
113
116
|
private _layoutPaused;
|
|
114
117
|
private _aria;
|
|
115
|
-
private _whiteSpace;
|
|
116
|
-
private _userSelect;
|
|
117
118
|
private _verticalAlign;
|
|
118
119
|
private _styleRule;
|
|
119
120
|
private _inlineStyle;
|
|
120
|
-
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;
|
|
121
132
|
private _clipFrame;
|
|
122
133
|
private _clipFrameStyle;
|
|
123
134
|
private _contentFrame;
|
|
@@ -132,6 +143,8 @@ declare class Component<TOptions extends ComponentOptions = ComponentOptions> ex
|
|
|
132
143
|
protected applyChromeOptions(options: TOptions): void;
|
|
133
144
|
protected applyListeners(listeners: Record<string, ((...args: any[]) => void) | undefined> | undefined): void;
|
|
134
145
|
protected subscribeTheme(listener: () => void): void;
|
|
146
|
+
onDestroy(cleanup: () => void): void;
|
|
147
|
+
protected registerListenerBag<T extends string>(bag: ListenerBag<T>): ListenerBag<T>;
|
|
135
148
|
dispose(): void;
|
|
136
149
|
protected destructor(): void;
|
|
137
150
|
protected trackHandle(handle: Handle): Handle;
|
|
@@ -172,6 +185,9 @@ declare class Component<TOptions extends ComponentOptions = ComponentOptions> ex
|
|
|
172
185
|
setId(id: string): this;
|
|
173
186
|
getName(): string | null;
|
|
174
187
|
setName(name: string | null): this;
|
|
188
|
+
getStyleTrait(): StyleTrait | null;
|
|
189
|
+
setStyleTrait(trait: StyleTrait | null): this;
|
|
190
|
+
private ensureTraitLayer;
|
|
175
191
|
getDataAttribute(key: string): string | undefined;
|
|
176
192
|
setDataAttribute(key: string, value: string): this;
|
|
177
193
|
delDataAttribute(key: string): this;
|
|
@@ -185,7 +201,7 @@ declare class Component<TOptions extends ComponentOptions = ComponentOptions> ex
|
|
|
185
201
|
isEffectivelyVisible(): boolean;
|
|
186
202
|
protected onEffectiveVisibilityChange(effective: boolean): void;
|
|
187
203
|
propagateEffectiveVisibility(effective: boolean): void;
|
|
188
|
-
|
|
204
|
+
protected scheduleEffectiveVisibilityReconcile(): void;
|
|
189
205
|
getInsets(): Insets;
|
|
190
206
|
setInsets(insets: Insets): this;
|
|
191
207
|
clearInsets(): this;
|
|
@@ -212,6 +228,7 @@ declare class Component<TOptions extends ComponentOptions = ComponentOptions> ex
|
|
|
212
228
|
getBorder(): BorderOptions | null;
|
|
213
229
|
clearBorder(): this;
|
|
214
230
|
setBorder(options: BorderOptions | string): this;
|
|
231
|
+
protected cacheBorderSpec(options: BorderOptions | string): void;
|
|
215
232
|
getCursor(): string | null;
|
|
216
233
|
setCursor(cursor: string): this;
|
|
217
234
|
clearCursor(): this;
|
|
@@ -252,6 +269,7 @@ declare class Component<TOptions extends ComponentOptions = ComponentOptions> ex
|
|
|
252
269
|
setMinSize(size: Size): this;
|
|
253
270
|
getMaxSize(): Size | null;
|
|
254
271
|
setMaxSize(size: Size): this;
|
|
272
|
+
protected notifyConstraintSizeChange(): void;
|
|
255
273
|
getInnerSize(): Size | null;
|
|
256
274
|
getContentBounds(): {
|
|
257
275
|
x: number;
|
|
@@ -268,6 +286,10 @@ declare class Component<TOptions extends ComponentOptions = ComponentOptions> ex
|
|
|
268
286
|
setVerticalAlign(align: string): this;
|
|
269
287
|
clearVerticalAlign(): this;
|
|
270
288
|
setSize(size: Size): this;
|
|
289
|
+
setBounds(x: number, y: number, width: number, height: number): boolean;
|
|
290
|
+
applyBounds(x: number, y: number, width: number, height: number): this;
|
|
291
|
+
protected canSkipUnchangedLayout(): boolean;
|
|
292
|
+
private writeBounds;
|
|
271
293
|
getWidth(): number;
|
|
272
294
|
setWidth(width: number): this;
|
|
273
295
|
protected clampsToContentSize(): boolean;
|
|
@@ -342,14 +364,45 @@ declare class Component<TOptions extends ComponentOptions = ComponentOptions> ex
|
|
|
342
364
|
clearUserSelect(): this;
|
|
343
365
|
focus(preventScroll?: boolean): this;
|
|
344
366
|
unfocus(): this;
|
|
345
|
-
|
|
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;
|
|
388
|
+
protected isRestingChromeIsolated(): boolean;
|
|
389
|
+
protected restingIsolationKeys(): ReadonlySet<string>;
|
|
390
|
+
protected _restingStyleRule?: StyleRule;
|
|
391
|
+
protected get restingStyleRule(): StyleRule;
|
|
392
|
+
protected materialiseRestingRule(): void;
|
|
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;
|
|
346
401
|
applyStyle(element: Handle): this;
|
|
347
|
-
private applyBoxAndVisibilityStyles;
|
|
348
402
|
private replayGeometryStyles;
|
|
349
|
-
private applySizeConstraintStyles;
|
|
350
|
-
private applyOverflowStyles;
|
|
351
|
-
private applyChromeStyles;
|
|
352
403
|
private applyMiscInlineStyles;
|
|
404
|
+
protected applySubclassStyles(): void;
|
|
405
|
+
private materialiseWhenNeeded;
|
|
353
406
|
protected materialiseStyleRule(): void;
|
|
354
407
|
private materialiseDeferredRules;
|
|
355
408
|
sync(): void;
|
|
@@ -378,6 +431,8 @@ declare class Component<TOptions extends ComponentOptions = ComponentOptions> ex
|
|
|
378
431
|
doLayout(): this;
|
|
379
432
|
onFirstLayout(callback: () => void): this;
|
|
380
433
|
private runFirstLayoutCallbacks;
|
|
434
|
+
invalidateLayout(): this;
|
|
435
|
+
isLayoutDirty(): boolean;
|
|
381
436
|
scheduleLayout(): this;
|
|
382
437
|
notifyIntrinsicSizeChanged(): this;
|
|
383
438
|
static afterNextLayout(callback: () => void): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TextMeasureOptions, TextMetrics } from "../core/Util.js";
|
|
1
|
+
import type { TextMeasureOptions, TextMeasureRequest, TextMetrics } from "../core/Util.js";
|
|
2
2
|
import type { Size } from "../primitive/Size.js";
|
|
3
3
|
import type { Component } from "../core/Component.js";
|
|
4
4
|
export interface Rect {
|
|
@@ -83,6 +83,8 @@ export interface DOMSink {
|
|
|
83
83
|
replaceLocationHash(hash: string): void;
|
|
84
84
|
pushHistoryPath(url: string): void;
|
|
85
85
|
replaceHistoryPath(url: string): void;
|
|
86
|
+
writeClipboardText(text: string): void;
|
|
87
|
+
clearDocumentSelection(): void;
|
|
86
88
|
addListener<T extends Event = Event>(target: Handle, type: string, handler: (event: T) => void, options?: boolean | AddEventListenerOptions): void;
|
|
87
89
|
removeListener<T extends Event = Event>(target: Handle, type: string, handler: (event: T) => void, options?: boolean | EventListenerOptions): void;
|
|
88
90
|
dispatchEvent(target: Handle, event: Event): void;
|
|
@@ -118,6 +120,7 @@ export interface DOMSource {
|
|
|
118
120
|
getElementRect(handle: Handle): Rect;
|
|
119
121
|
measureText(text: string, options?: TextMeasureOptions): TextMetrics;
|
|
120
122
|
measureTextWidths(texts: string[], options?: TextMeasureOptions): number[];
|
|
123
|
+
measureTexts(requests: TextMeasureRequest[]): TextMetrics[];
|
|
121
124
|
resolveFontSizePx(fontSizeCSS: string): number;
|
|
122
125
|
measureFontMetrics(): {
|
|
123
126
|
ascent: number;
|
|
@@ -146,6 +149,8 @@ export interface DOMSource {
|
|
|
146
149
|
contains(ancestor: Handle, node: Handle | null): boolean;
|
|
147
150
|
querySelector(root: Handle, selector: string): Handle | null;
|
|
148
151
|
querySelectorAll(root: Handle, selector: string): Handle[];
|
|
152
|
+
countElements(): number;
|
|
153
|
+
getRuleCssText(rule: CSSStyleRule): string;
|
|
149
154
|
matches(handle: Handle, selector: string): boolean;
|
|
150
155
|
getParentElement(handle: Handle): Handle | null;
|
|
151
156
|
getParentNode(handle: Handle): Handle | null;
|
|
@@ -222,6 +227,8 @@ export declare class ProductionDOMSink implements DOMSink {
|
|
|
222
227
|
replaceLocationHash(hash: string): void;
|
|
223
228
|
pushHistoryPath(url: string): void;
|
|
224
229
|
replaceHistoryPath(url: string): void;
|
|
230
|
+
writeClipboardText(text: string): void;
|
|
231
|
+
clearDocumentSelection(): void;
|
|
225
232
|
addListener<T extends Event = Event>(target: Handle, type: string, handler: (event: T) => void, options?: boolean | AddEventListenerOptions): void;
|
|
226
233
|
removeListener<T extends Event = Event>(target: Handle, type: string, handler: (event: T) => void, options?: boolean | EventListenerOptions): void;
|
|
227
234
|
dispatchEvent(target: Handle, event: Event): void;
|
|
@@ -257,6 +264,7 @@ export declare class ProductionDOMSource implements DOMSource {
|
|
|
257
264
|
getElementRect(handle: Handle): Rect;
|
|
258
265
|
measureText(text: string, options?: TextMeasureOptions): TextMetrics;
|
|
259
266
|
measureTextWidths(texts: string[], options?: TextMeasureOptions): number[];
|
|
267
|
+
measureTexts(requests: TextMeasureRequest[]): TextMetrics[];
|
|
260
268
|
resolveFontSizePx(fontSizeCSS: string): number;
|
|
261
269
|
measureFontMetrics(): {
|
|
262
270
|
ascent: number;
|
|
@@ -285,6 +293,8 @@ export declare class ProductionDOMSource implements DOMSource {
|
|
|
285
293
|
contains(ancestor: Handle, node: Handle | null): boolean;
|
|
286
294
|
querySelector(root: Handle, selector: string): Handle | null;
|
|
287
295
|
querySelectorAll(root: Handle, selector: string): Handle[];
|
|
296
|
+
countElements(): number;
|
|
297
|
+
getRuleCssText(rule: CSSStyleRule): string;
|
|
288
298
|
matches(handle: Handle, selector: string): boolean;
|
|
289
299
|
getParentElement(handle: Handle): Handle | null;
|
|
290
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;
|
|
@@ -23,6 +24,8 @@ export declare namespace LayerManager {
|
|
|
23
24
|
function unregister(layer: DismissableLayer): void;
|
|
24
25
|
function containsAcrossLayers(layer: DismissableLayer, node: Handle | null): boolean;
|
|
25
26
|
function getTopLayer(): DismissableLayer | null;
|
|
27
|
+
function isTopmostInputLayer(layer: DismissableLayer): boolean;
|
|
26
28
|
function bringToFront(layer: DismissableLayer): void;
|
|
29
|
+
function setBand(layer: DismissableLayer, band: number): void;
|
|
27
30
|
function getZIndex(layer: DismissableLayer): number;
|
|
28
31
|
}
|
|
@@ -9,6 +9,7 @@ declare abstract class StyleTarget<T> {
|
|
|
9
9
|
flush(): void;
|
|
10
10
|
isMaterialized(): boolean;
|
|
11
11
|
hasQueuedWrites(): boolean;
|
|
12
|
+
hasQueuedDeclarations(): boolean;
|
|
12
13
|
protected materialize(target: T): void;
|
|
13
14
|
protected abstract writeStyle(key: string, value: string | null): void;
|
|
14
15
|
protected abstract flushDirty(dirty: Record<string, string | null>): void;
|
|
@@ -16,6 +17,7 @@ declare abstract class StyleTarget<T> {
|
|
|
16
17
|
export type StyleRuleScope = {
|
|
17
18
|
scope: "class";
|
|
18
19
|
name: string;
|
|
20
|
+
suffix?: string;
|
|
19
21
|
} | {
|
|
20
22
|
scope: "component";
|
|
21
23
|
name: string;
|
|
@@ -31,6 +33,18 @@ export type StyleRuleSpec = StyleRuleScope & {
|
|
|
31
33
|
export declare function disposeStyleRule(selector: string): void;
|
|
32
34
|
export declare function _ruleCacheHas(selector: string): boolean;
|
|
33
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[];
|
|
34
48
|
declare class StyleRule extends StyleTarget<CSSStyleRule> {
|
|
35
49
|
private _factory;
|
|
36
50
|
private _selector;
|
|
@@ -204,6 +204,7 @@ export interface Theme {
|
|
|
204
204
|
padding: number;
|
|
205
205
|
background: string;
|
|
206
206
|
readonlyBackground: string;
|
|
207
|
+
rangeSelectedBackground: string;
|
|
207
208
|
requiredEmptyOutlineColor: string;
|
|
208
209
|
color: string;
|
|
209
210
|
border: string;
|
|
@@ -472,9 +473,12 @@ export interface Theme {
|
|
|
472
473
|
};
|
|
473
474
|
scale: {
|
|
474
475
|
base: number;
|
|
475
|
-
|
|
476
|
+
glyphXs: ScaleToken;
|
|
477
|
+
glyphSm: ScaleToken;
|
|
478
|
+
glyphMd: ScaleToken;
|
|
479
|
+
glyphLg: ScaleToken;
|
|
480
|
+
glyphXl: ScaleToken;
|
|
476
481
|
tabClose: ScaleToken;
|
|
477
|
-
tabCloseGlyph: ScaleToken;
|
|
478
482
|
tabButtonInset: ScaleToken;
|
|
479
483
|
};
|
|
480
484
|
}
|
|
@@ -15,6 +15,10 @@ export interface TextMetrics {
|
|
|
15
15
|
height: number;
|
|
16
16
|
baseline: number;
|
|
17
17
|
}
|
|
18
|
+
export interface TextMeasureRequest {
|
|
19
|
+
text: string;
|
|
20
|
+
options?: TextMeasureOptions;
|
|
21
|
+
}
|
|
18
22
|
export declare namespace Util {
|
|
19
23
|
function measureTextSize(text: string, options?: TextMeasureOptions): Size;
|
|
20
24
|
function measureTextWidth(text: string, options?: TextMeasureOptions): number;
|
|
@@ -7,13 +7,14 @@ export { Animation } from '../core/Animation.js';
|
|
|
7
7
|
export { SmoothScroller } from '../core/SmoothScroller.js';
|
|
8
8
|
export type { SmoothScrollTarget, ScrollAxis } from '../core/SmoothScroller.js';
|
|
9
9
|
export { Util } from '../core/Util.js';
|
|
10
|
-
export type { TextMeasureOptions, TextMetrics } from '../core/Util.js';
|
|
10
|
+
export type { TextMeasureOptions, TextMeasureRequest, TextMetrics } from '../core/Util.js';
|
|
11
11
|
export { DOM, ProductionDOMSink, ProductionDOMSource, PatchBuilder } from '../core/DOM.js';
|
|
12
12
|
export type { DOMSink, DOMSource, DOMSeams, DocumentSelectionRange, Rect, ScrollMetrics, OffsetSize, MediaState, Handle, TimerId, ElementPatch, MediaQueryResult } from '../core/DOM.js';
|
|
13
13
|
export { callable } from '../core/Callable.js';
|
|
14
14
|
export type { Callable } from '../core/Callable.js';
|
|
15
15
|
export { Component } from '../core/Component.js';
|
|
16
16
|
export type { Comparator, Style, ComponentOptions, ComponentStyleRuleSpec, ComponentFactory, ConstrainedComponent, PerimeterSize } from '../core/Component.js';
|
|
17
|
+
export type { StyleTrait, StyleBag, TextStyleBag } from '../core/ClassStyleRules.js';
|
|
17
18
|
export { Container } from '../core/Container.js';
|
|
18
19
|
export type { ContainerOptions } from '../core/Container.js';
|
|
19
20
|
export { Panel } from '../core/Panel.js';
|
|
@@ -36,9 +37,11 @@ export { FocusHistory } from '../core/FocusHistory.js';
|
|
|
36
37
|
export type { FocusHistoryOptions, FocusHistoryKeyCombo, FocusHistoryEvent, FocusHistoryChange } from '../core/FocusHistory.js';
|
|
37
38
|
export { ThemeManager, BaseTheme, ClassicTheme, DarkTheme, ModernTheme, defineTheme } from '../core/Theme.js';
|
|
38
39
|
export type { Theme, DeepPartial, ScaleToken, ResolvedScale, FontSizeToken } from '../core/Theme.js';
|
|
39
|
-
export { StyleTarget, StyleRule, InlineStyle } from '../core/StyleTarget.js';
|
|
40
|
-
export type { StyleRuleScope, StyleRuleSpec } from '../core/StyleTarget.js';
|
|
40
|
+
export { StyleTarget, StyleRule, InlineStyle, styleRuleCounts, styleRuleEntries } from '../core/StyleTarget.js';
|
|
41
|
+
export type { StyleRuleScope, StyleRuleSpec, StyleRuleCounts, StyleRuleEntry } from '../core/StyleTarget.js';
|
|
41
42
|
export { ElementAttributes } from '../core/ElementAttributes.js';
|
|
43
|
+
export { Diagnostics } from '../core/Diagnostics.js';
|
|
44
|
+
export type { DiagnosticsCounters } from '../core/Diagnostics.js';
|
|
42
45
|
export { Binding } from '../core/Binding.js';
|
|
43
46
|
export type { BeforeRecordListener, BindingEvent } from '../core/Binding.js';
|
|
44
47
|
export type { Bindable, BindingAccessors } from '../core/Bindable.js';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Window } from "../overlay/Window.js";
|
|
2
|
+
export declare class DiagnosticsOverlay extends Window {
|
|
3
|
+
private static instance;
|
|
4
|
+
private readonly _sampler;
|
|
5
|
+
private readonly _fps;
|
|
6
|
+
private readonly _frameTime;
|
|
7
|
+
private readonly _heap;
|
|
8
|
+
private readonly _domNodes;
|
|
9
|
+
private readonly _longTasks;
|
|
10
|
+
private readonly _componentsText;
|
|
11
|
+
private readonly _constructedDisposed;
|
|
12
|
+
private readonly _layoutPasses;
|
|
13
|
+
private readonly _layoutFlush;
|
|
14
|
+
private readonly _domListeners;
|
|
15
|
+
private readonly _semanticListeners;
|
|
16
|
+
private readonly _styleRules;
|
|
17
|
+
private readonly _boundOnSample;
|
|
18
|
+
private readonly _styleAuditButton;
|
|
19
|
+
private readonly _boundOnOpenStyleAudit;
|
|
20
|
+
private constructor();
|
|
21
|
+
static open(): void;
|
|
22
|
+
static close(): void;
|
|
23
|
+
static toggle(): void;
|
|
24
|
+
static isOpen(): boolean;
|
|
25
|
+
private teardown;
|
|
26
|
+
onExitAction(): void;
|
|
27
|
+
protected destructor(): void;
|
|
28
|
+
private onSample;
|
|
29
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Event } from "../core/Event.js";
|
|
2
|
+
import { type StyleRuleCounts } from "../core/StyleTarget.js";
|
|
3
|
+
export interface FrameworkCounts {
|
|
4
|
+
components: number;
|
|
5
|
+
componentsConstructed: number;
|
|
6
|
+
componentsDestroyed: number;
|
|
7
|
+
layoutPasses: number;
|
|
8
|
+
layoutFlushes: number;
|
|
9
|
+
layoutFlushTotalMs: number;
|
|
10
|
+
layoutFlushMaxMs: number;
|
|
11
|
+
domListeners: Event.ListenerCounts;
|
|
12
|
+
semanticListeners: number;
|
|
13
|
+
styleRules: StyleRuleCounts;
|
|
14
|
+
}
|
|
15
|
+
export declare function readFrameworkCounts(): FrameworkCounts;
|
|
16
|
+
export interface DiagnosticsSample {
|
|
17
|
+
fps: number;
|
|
18
|
+
frameTimeMs: number;
|
|
19
|
+
frameTimeMaxMs: number;
|
|
20
|
+
heapUsedMB: number | null;
|
|
21
|
+
heapLimitMB: number | null;
|
|
22
|
+
domNodes: number;
|
|
23
|
+
longTasks: number;
|
|
24
|
+
longTasksRecent: number;
|
|
25
|
+
components: number;
|
|
26
|
+
componentsConstructed: number;
|
|
27
|
+
componentsDestroyed: number;
|
|
28
|
+
layoutPassesPerSec: number;
|
|
29
|
+
layoutFlushAvgMs: number;
|
|
30
|
+
layoutFlushMaxMs: number;
|
|
31
|
+
domListeners: number;
|
|
32
|
+
semanticListeners: number;
|
|
33
|
+
styleRules: StyleRuleCounts;
|
|
34
|
+
}
|
|
35
|
+
export interface DiagnosticsSamplerOptions {
|
|
36
|
+
intervalMs?: number;
|
|
37
|
+
onSample: (sample: DiagnosticsSample) => void;
|
|
38
|
+
}
|
|
39
|
+
export declare class DiagnosticsSampler {
|
|
40
|
+
private readonly _onSample;
|
|
41
|
+
private readonly _intervalMs;
|
|
42
|
+
private _running;
|
|
43
|
+
private _rafHandle;
|
|
44
|
+
private _observer;
|
|
45
|
+
private _windowStart;
|
|
46
|
+
private _lastFrameTs;
|
|
47
|
+
private _frameCount;
|
|
48
|
+
private _frameTimeMaxMs;
|
|
49
|
+
private _longTasksThisWindow;
|
|
50
|
+
private _longTasksTotal;
|
|
51
|
+
private _prevLayoutPasses;
|
|
52
|
+
private readonly _boundOnFrame;
|
|
53
|
+
private readonly _boundOnLongTasks;
|
|
54
|
+
constructor(options: DiagnosticsSamplerOptions);
|
|
55
|
+
start(): void;
|
|
56
|
+
stop(): void;
|
|
57
|
+
isRunning(): boolean;
|
|
58
|
+
private onFrame;
|
|
59
|
+
private onLongTasks;
|
|
60
|
+
private emitSample;
|
|
61
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface StyleAuditSummary {
|
|
2
|
+
totalRules: number;
|
|
3
|
+
totalSizeKB: string;
|
|
4
|
+
componentRuleCount: number;
|
|
5
|
+
uniqueBodyCount: number;
|
|
6
|
+
wastedKB: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DuplicateRuleRow {
|
|
9
|
+
count: number;
|
|
10
|
+
wastedKB: string;
|
|
11
|
+
component: string;
|
|
12
|
+
scope: string;
|
|
13
|
+
body: string;
|
|
14
|
+
}
|
|
15
|
+
export interface StyleAuditResult {
|
|
16
|
+
summary: StyleAuditSummary;
|
|
17
|
+
duplicates: DuplicateRuleRow[];
|
|
18
|
+
}
|
|
19
|
+
export declare function auditStyleRules(): StyleAuditResult;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Window } from "../overlay/Window.js";
|
|
2
|
+
export declare class StyleAuditOverlay extends Window {
|
|
3
|
+
private static instance;
|
|
4
|
+
private constructor();
|
|
5
|
+
static open(): void;
|
|
6
|
+
static close(): void;
|
|
7
|
+
static toggle(): void;
|
|
8
|
+
static isOpen(): boolean;
|
|
9
|
+
private teardown;
|
|
10
|
+
onExitAction(): void;
|
|
11
|
+
protected destructor(): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Container } from "../core";
|
|
2
|
+
declare class StyleAuditView extends Container {
|
|
3
|
+
private readonly _summary;
|
|
4
|
+
private readonly _refreshButton;
|
|
5
|
+
private readonly _store;
|
|
6
|
+
private readonly _boundRefresh;
|
|
7
|
+
constructor();
|
|
8
|
+
private refresh;
|
|
9
|
+
protected destructor(): void;
|
|
10
|
+
}
|
|
11
|
+
declare const StyleAuditViewCallable: import("../core/Callable.js").Callable<typeof StyleAuditView>;
|
|
12
|
+
type StyleAuditViewCallable = StyleAuditView;
|
|
13
|
+
export { StyleAuditView as _StyleAuditView, StyleAuditViewCallable as StyleAuditView };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { DiagnosticsOverlay } from '../diagnostics/DiagnosticsOverlay.js';
|
|
2
|
+
export { DiagnosticsSampler, readFrameworkCounts } from '../diagnostics/DiagnosticsSampler.js';
|
|
3
|
+
export type { DiagnosticsSample, DiagnosticsSamplerOptions, FrameworkCounts } from '../diagnostics/DiagnosticsSampler.js';
|
|
4
|
+
export { StyleAuditOverlay } from '../diagnostics/StyleAuditOverlay.js';
|
|
5
|
+
export { StyleAuditView } from '../diagnostics/StyleAuditView.js';
|
|
6
|
+
export { auditStyleRules } from '../diagnostics/StyleAudit.js';
|
|
7
|
+
export type { StyleAuditSummary, DuplicateRuleRow, StyleAuditResult } from '../diagnostics/StyleAudit.js';
|