@gjsify/adwaita-web 0.64.1 → 0.64.2-next.254
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -88
- package/dist/adwaita-web.css +91 -12
- package/dist/adwaita-web.css.map +1 -1
- package/lib/types/accessible.d.ts +8 -0
- package/lib/types/application.d.ts +1 -1
- package/lib/types/child-slot.spec.d.ts +1 -0
- package/lib/types/compute-expand.d.ts +5 -0
- package/lib/types/compute-expand.spec.d.ts +1 -0
- package/lib/types/container-fill.spec.d.ts +1 -0
- package/lib/types/elements/adw-about-dialog.d.ts +28 -1
- package/lib/types/elements/adw-action-row.d.ts +2 -1
- package/lib/types/elements/adw-alert-dialog.d.ts +80 -19
- package/lib/types/elements/adw-avatar.d.ts +2 -1
- package/lib/types/elements/adw-banner.d.ts +2 -1
- package/lib/types/elements/adw-bin.d.ts +2 -1
- package/lib/types/elements/adw-bottom-sheet.d.ts +5 -4
- package/lib/types/elements/adw-breakpoint-bin.d.ts +2 -1
- package/lib/types/elements/adw-button-content.d.ts +2 -1
- package/lib/types/elements/adw-button-row.d.ts +2 -1
- package/lib/types/elements/adw-card.d.ts +2 -1
- package/lib/types/elements/adw-carousel.d.ts +20 -3
- package/lib/types/elements/adw-clamp-scrollable.d.ts +2 -1
- package/lib/types/elements/adw-clamp.d.ts +2 -1
- package/lib/types/elements/adw-combo-row.d.ts +6 -1
- package/lib/types/elements/adw-data-grid.d.ts +2 -1
- package/lib/types/elements/adw-dialog.d.ts +2 -1
- package/lib/types/elements/adw-entry-row.d.ts +2 -1
- package/lib/types/elements/adw-expander-row.d.ts +2 -1
- package/lib/types/elements/adw-header-bar.d.ts +2 -1
- package/lib/types/elements/adw-inline-view-switcher.d.ts +3 -2
- package/lib/types/elements/adw-layout-slot.d.ts +2 -1
- package/lib/types/elements/adw-multi-layout-view.d.ts +2 -1
- package/lib/types/elements/adw-navigation-split-view.d.ts +2 -1
- package/lib/types/elements/adw-navigation-view.d.ts +3 -2
- package/lib/types/elements/adw-overlay-split-view.d.ts +2 -1
- package/lib/types/elements/adw-preferences-dialog.d.ts +5 -4
- package/lib/types/elements/adw-preferences-group.d.ts +2 -1
- package/lib/types/elements/adw-preferences-row.d.ts +2 -1
- package/lib/types/elements/adw-shortcut-label.d.ts +2 -1
- package/lib/types/elements/adw-shortcuts-item.d.ts +2 -1
- package/lib/types/elements/adw-shortcuts-section.d.ts +2 -1
- package/lib/types/elements/adw-sidebar.d.ts +4 -3
- package/lib/types/elements/adw-spin-row.d.ts +2 -1
- package/lib/types/elements/adw-spinner.d.ts +2 -1
- package/lib/types/elements/adw-split-button.d.ts +2 -1
- package/lib/types/elements/adw-status-page.d.ts +2 -1
- package/lib/types/elements/adw-switch-row.d.ts +4 -1
- package/lib/types/elements/adw-tab-bar.d.ts +2 -1
- package/lib/types/elements/adw-tab-button.d.ts +2 -1
- package/lib/types/elements/adw-tab-overview.d.ts +2 -1
- package/lib/types/elements/adw-tab-view.d.ts +3 -2
- package/lib/types/elements/adw-toast-overlay.d.ts +10 -30
- package/lib/types/elements/adw-toggle-group.d.ts +3 -2
- package/lib/types/elements/adw-toolbar-view.d.ts +2 -1
- package/lib/types/elements/adw-view-stack.d.ts +3 -1
- package/lib/types/elements/adw-view-switcher-bar.d.ts +2 -1
- package/lib/types/elements/adw-view-switcher-sidebar.d.ts +2 -1
- package/lib/types/elements/adw-view-switcher.d.ts +3 -2
- package/lib/types/elements/adw-window-features.d.ts +8 -0
- package/lib/types/elements/adw-window-title.d.ts +2 -1
- package/lib/types/elements/adw-wrap-box.d.ts +2 -1
- package/lib/types/elements/checks.d.ts +16 -1
- package/lib/types/elements/gtk-action-bar.d.ts +2 -1
- package/lib/types/elements/gtk-application-window.d.ts +1 -4
- package/lib/types/elements/gtk-aspect-frame.d.ts +2 -1
- package/lib/types/elements/gtk-box.d.ts +5 -1
- package/lib/types/elements/gtk-button.d.ts +5 -7
- package/lib/types/elements/gtk-calendar.d.ts +2 -1
- package/lib/types/elements/gtk-center-box.d.ts +2 -1
- package/lib/types/elements/gtk-color-dialog-button.d.ts +2 -1
- package/lib/types/elements/gtk-drag-icon.d.ts +2 -1
- package/lib/types/elements/gtk-drawing-area.d.ts +2 -1
- package/lib/types/elements/gtk-drop-down.d.ts +2 -1
- package/lib/types/elements/gtk-editable-label.d.ts +2 -1
- package/lib/types/elements/gtk-emoji-chooser.d.ts +2 -0
- package/lib/types/elements/gtk-entry.d.ts +2 -1
- package/lib/types/elements/gtk-expander.d.ts +2 -1
- package/lib/types/elements/gtk-fixed.d.ts +2 -1
- package/lib/types/elements/gtk-flow-box-child.d.ts +2 -1
- package/lib/types/elements/gtk-flow-box.d.ts +2 -1
- package/lib/types/elements/gtk-font-dialog-button.d.ts +2 -1
- package/lib/types/elements/gtk-frame.d.ts +2 -1
- package/lib/types/elements/gtk-gl-area.d.ts +2 -1
- package/lib/types/elements/gtk-graphics-offload.d.ts +2 -1
- package/lib/types/elements/gtk-grid.d.ts +2 -1
- package/lib/types/elements/gtk-header-bar.d.ts +2 -1
- package/lib/types/elements/gtk-image.d.ts +5 -6
- package/lib/types/elements/gtk-inscription.d.ts +2 -1
- package/lib/types/elements/gtk-label.d.ts +10 -3
- package/lib/types/elements/gtk-level-bar.d.ts +2 -1
- package/lib/types/elements/gtk-list-box-row.d.ts +2 -1
- package/lib/types/elements/gtk-list-box.d.ts +2 -1
- package/lib/types/elements/gtk-list-view.d.ts +2 -1
- package/lib/types/elements/gtk-media-controls.d.ts +2 -1
- package/lib/types/elements/gtk-menu-button.d.ts +2 -1
- package/lib/types/elements/gtk-notebook.d.ts +2 -1
- package/lib/types/elements/gtk-overlay.d.ts +2 -1
- package/lib/types/elements/gtk-paned.d.ts +2 -1
- package/lib/types/elements/gtk-picture.d.ts +2 -1
- package/lib/types/elements/gtk-popover-bin.d.ts +2 -1
- package/lib/types/elements/gtk-popover-menu-bar.d.ts +2 -1
- package/lib/types/elements/gtk-popover-menu.d.ts +2 -0
- package/lib/types/elements/gtk-popover.d.ts +7 -1
- package/lib/types/elements/gtk-progress-bar.d.ts +2 -1
- package/lib/types/elements/gtk-revealer.d.ts +2 -1
- package/lib/types/elements/gtk-scale-button.d.ts +2 -1
- package/lib/types/elements/gtk-scale.d.ts +2 -1
- package/lib/types/elements/gtk-scrollbar.d.ts +2 -1
- package/lib/types/elements/gtk-scrolled-window.d.ts +2 -1
- package/lib/types/elements/gtk-search-bar.d.ts +2 -1
- package/lib/types/elements/gtk-separator.d.ts +2 -1
- package/lib/types/elements/gtk-spin-button.d.ts +2 -1
- package/lib/types/elements/gtk-spinner.d.ts +2 -1
- package/lib/types/elements/gtk-stack-page.d.ts +29 -0
- package/lib/types/elements/gtk-stack-sidebar.d.ts +2 -1
- package/lib/types/elements/gtk-stack-switcher.d.ts +2 -1
- package/lib/types/elements/gtk-stack.d.ts +13 -1
- package/lib/types/elements/gtk-switch.d.ts +2 -1
- package/lib/types/elements/gtk-text-view.d.ts +2 -1
- package/lib/types/elements/gtk-text.d.ts +2 -1
- package/lib/types/elements/gtk-tree-expander.d.ts +2 -1
- package/lib/types/elements/gtk-video.d.ts +2 -1
- package/lib/types/elements/gtk-viewport.d.ts +2 -1
- package/lib/types/elements/gtk-window-controls.d.ts +2 -1
- package/lib/types/elements/gtk-window-handle.d.ts +2 -1
- package/lib/types/elements/gtk-window.d.ts +18 -2
- package/lib/types/gobject-elements.d.ts +15 -0
- package/lib/types/gtksource/gtk-source-view.d.ts +2 -1
- package/lib/types/{icon-registry.spec.d.ts → icon-masks.spec.d.ts} +1 -1
- package/lib/types/icon-theme.d.ts +15 -35
- package/lib/types/index.d.ts +3 -4
- package/lib/types/learn6502-window.spec.d.ts +1 -0
- package/lib/types/namespace/adw.d.ts +1 -1
- package/lib/types/namespace/gdk.d.ts +1 -0
- package/lib/types/namespace/gio.d.ts +1 -0
- package/lib/types/namespace/glib.d.ts +2 -1
- package/lib/types/namespace/gtk.d.ts +2 -0
- package/lib/types/shared-tree-builder.d.ts +31 -0
- package/lib/types/signals.d.ts +5 -1
- package/lib/types/source-view/adw-source-view.d.ts +2 -1
- package/lib/types/styles.generated.d.ts +1 -1
- package/lib/types/widget-element.d.ts +25 -0
- package/lib/types/widget-map.spec.d.ts +1 -0
- package/lib/types/widget-mapping.d.ts +7 -0
- package/lib/types/widget-visible.spec.d.ts +1 -0
- package/lib/types/window-maximize.spec.d.ts +1 -0
- package/package.json +13 -12
- package/scss/_about_dialog.scss +46 -1
- package/scss/_bin.scss +6 -3
- package/scss/_checks.scss +5 -2
- package/scss/_icon.scss +3 -4
- package/scss/_labels.scss +2 -2
- package/scss/_overlay.scss +11 -1
- package/scss/_overlay_split_view.scss +10 -0
- package/scss/_reset.scss +1 -1
- package/scss/_scrolled_window.scss +15 -0
- package/scss/_stack.scss +8 -2
- package/scss/_toast.scss +13 -3
- package/scss/_widget.scss +5 -1
- package/scss/_window.scss +16 -0
- package/src/accessible.ts +29 -0
- package/src/adw-about-dialog.spec.ts +81 -12
- package/src/adw-action-rows.spec.ts +2 -2
- package/src/adw-alert-dialog.spec.ts +71 -5
- package/src/adw-bin.spec.ts +4 -3
- package/src/adw-button-content.spec.ts +1 -1
- package/src/adw-carousel.spec.ts +49 -1
- package/src/adw-header-bar.spec.ts +18 -0
- package/src/adw-toast-overlay.spec.ts +68 -24
- package/src/application.spec.ts +44 -0
- package/src/application.ts +13 -18
- package/src/capabilities.mjs +2 -3
- package/src/checks.spec.ts +51 -1
- package/src/child-slot.spec.ts +71 -0
- package/src/compute-expand.spec.ts +186 -0
- package/src/compute-expand.ts +134 -0
- package/src/construct-vectors.spec.ts +97 -7
- package/src/container-fill.spec.ts +70 -0
- package/src/elements/adw-about-dialog.ts +152 -9
- package/src/elements/adw-action-row.ts +2 -1
- package/src/elements/adw-alert-dialog.ts +177 -46
- package/src/elements/adw-application-window.ts +0 -3
- package/src/elements/adw-avatar.ts +2 -1
- package/src/elements/adw-banner.ts +2 -1
- package/src/elements/adw-bin.ts +2 -1
- package/src/elements/adw-bottom-sheet.ts +5 -4
- package/src/elements/adw-breakpoint-bin.ts +5 -1
- package/src/elements/adw-button-content.ts +2 -1
- package/src/elements/adw-button-row.ts +2 -1
- package/src/elements/adw-card.ts +2 -1
- package/src/elements/adw-carousel.ts +62 -3
- package/src/elements/adw-clamp-scrollable.ts +2 -1
- package/src/elements/adw-clamp.ts +2 -1
- package/src/elements/adw-combo-row.ts +15 -1
- package/src/elements/adw-data-grid.ts +2 -1
- package/src/elements/adw-dialog.ts +5 -2
- package/src/elements/adw-entry-row.ts +2 -1
- package/src/elements/adw-expander-row.ts +2 -1
- package/src/elements/adw-header-bar.ts +6 -1
- package/src/elements/adw-inline-view-switcher.ts +3 -2
- package/src/elements/adw-layout-slot.ts +2 -1
- package/src/elements/adw-multi-layout-view.ts +2 -1
- package/src/elements/adw-navigation-split-view.ts +2 -1
- package/src/elements/adw-navigation-view.ts +3 -2
- package/src/elements/adw-overlay-split-view.ts +2 -1
- package/src/elements/adw-preferences-dialog.ts +6 -4
- package/src/elements/adw-preferences-group.ts +2 -1
- package/src/elements/adw-preferences-row.ts +2 -1
- package/src/elements/adw-shortcut-label.ts +2 -1
- package/src/elements/adw-shortcuts-item.ts +2 -1
- package/src/elements/adw-shortcuts-section.ts +2 -1
- package/src/elements/adw-sidebar.ts +4 -3
- package/src/elements/adw-spin-row.ts +2 -1
- package/src/elements/adw-spinner.ts +2 -1
- package/src/elements/adw-split-button.ts +2 -1
- package/src/elements/adw-status-page.ts +2 -1
- package/src/elements/adw-switch-row.ts +10 -1
- package/src/elements/adw-tab-bar.ts +2 -1
- package/src/elements/adw-tab-button.ts +2 -1
- package/src/elements/adw-tab-overview.ts +2 -1
- package/src/elements/adw-tab-view.ts +3 -2
- package/src/elements/adw-toast-overlay.ts +37 -70
- package/src/elements/adw-toggle-group.ts +3 -2
- package/src/elements/adw-toolbar-view.ts +2 -1
- package/src/elements/adw-view-stack.ts +39 -1
- package/src/elements/adw-view-switcher-bar.ts +2 -1
- package/src/elements/adw-view-switcher-sidebar.ts +2 -1
- package/src/elements/adw-view-switcher.ts +3 -2
- package/src/elements/adw-window-features.ts +14 -2
- package/src/elements/adw-window-title.ts +2 -1
- package/src/elements/adw-wrap-box.ts +2 -1
- package/src/elements/checks.ts +85 -6
- package/src/elements/gtk-action-bar.ts +2 -1
- package/src/elements/gtk-application-window.ts +3 -8
- package/src/elements/gtk-aspect-frame.ts +2 -1
- package/src/elements/gtk-box.ts +56 -1
- package/src/elements/gtk-button.ts +10 -22
- package/src/elements/gtk-calendar.ts +2 -1
- package/src/elements/gtk-center-box.ts +2 -1
- package/src/elements/gtk-color-dialog-button.ts +2 -1
- package/src/elements/gtk-drag-icon.ts +6 -1
- package/src/elements/gtk-drawing-area.ts +2 -1
- package/src/elements/gtk-drop-down.ts +2 -1
- package/src/elements/gtk-editable-label.ts +2 -1
- package/src/elements/gtk-emoji-chooser.ts +5 -0
- package/src/elements/gtk-entry.ts +2 -1
- package/src/elements/gtk-expander.ts +2 -1
- package/src/elements/gtk-fixed.ts +2 -1
- package/src/elements/gtk-flow-box-child.ts +5 -2
- package/src/elements/gtk-flow-box.ts +2 -1
- package/src/elements/gtk-font-dialog-button.ts +2 -1
- package/src/elements/gtk-frame.ts +2 -1
- package/src/elements/gtk-gl-area.ts +2 -1
- package/src/elements/gtk-graphics-offload.ts +5 -2
- package/src/elements/gtk-grid.ts +2 -1
- package/src/elements/gtk-header-bar.ts +2 -1
- package/src/elements/gtk-image.ts +14 -15
- package/src/elements/gtk-inscription.ts +2 -1
- package/src/elements/gtk-label.ts +12 -5
- package/src/elements/gtk-level-bar.ts +2 -1
- package/src/elements/gtk-list-box-row.ts +5 -2
- package/src/elements/gtk-list-box.ts +2 -1
- package/src/elements/gtk-list-view.ts +2 -1
- package/src/elements/gtk-media-controls.ts +2 -1
- package/src/elements/gtk-menu-button.ts +2 -1
- package/src/elements/gtk-notebook.ts +2 -1
- package/src/elements/gtk-overlay.ts +7 -5
- package/src/elements/gtk-paned.ts +9 -2
- package/src/elements/gtk-picture.ts +2 -1
- package/src/elements/gtk-popover-bin.ts +5 -1
- package/src/elements/gtk-popover-menu-bar.ts +2 -1
- package/src/elements/gtk-popover-menu.ts +5 -0
- package/src/elements/gtk-popover.ts +14 -1
- package/src/elements/gtk-progress-bar.ts +2 -1
- package/src/elements/gtk-revealer.ts +2 -1
- package/src/elements/gtk-scale-button.ts +2 -1
- package/src/elements/gtk-scale.ts +2 -1
- package/src/elements/gtk-scrollbar.ts +2 -1
- package/src/elements/gtk-scrolled-window.ts +8 -5
- package/src/elements/gtk-search-bar.ts +7 -6
- package/src/elements/gtk-separator.ts +2 -1
- package/src/elements/gtk-spin-button.ts +2 -1
- package/src/elements/gtk-spinner.ts +2 -1
- package/src/elements/gtk-stack-page.ts +112 -0
- package/src/elements/gtk-stack-sidebar.ts +2 -1
- package/src/elements/gtk-stack-switcher.ts +2 -1
- package/src/elements/gtk-stack.ts +52 -6
- package/src/elements/gtk-switch.ts +2 -1
- package/src/elements/gtk-text-view.ts +2 -1
- package/src/elements/gtk-text.ts +2 -1
- package/src/elements/gtk-tree-expander.ts +5 -1
- package/src/elements/gtk-video.ts +2 -1
- package/src/elements/gtk-viewport.ts +6 -1
- package/src/elements/gtk-window-controls.ts +2 -1
- package/src/elements/gtk-window-handle.ts +6 -1
- package/src/elements/gtk-window.ts +57 -7
- package/src/gio.spec.ts +13 -3
- package/src/glib.spec.ts +9 -0
- package/src/gobject-elements.ts +44 -2
- package/src/gtk-label.spec.ts +39 -0
- package/src/gtk-scrolled-window.spec.ts +6 -6
- package/src/gtk-stack.spec.ts +170 -0
- package/src/gtk-value-doors.spec.ts +19 -0
- package/src/gtk-window.spec.ts +2 -2
- package/src/gtksource/gtk-source-view.ts +2 -1
- package/src/{icon-registry.spec.ts → icon-masks.spec.ts} +4 -100
- package/src/icon-theme.spec.ts +69 -124
- package/src/icon-theme.ts +29 -119
- package/src/index.ts +5 -9
- package/src/keyboard-operable.spec.ts +3 -3
- package/src/learn6502-window.spec.ts +113 -0
- package/src/namespace/adw.ts +1 -1
- package/src/namespace/gdk.ts +1 -0
- package/src/namespace/gio.ts +8 -0
- package/src/namespace/glib.ts +4 -0
- package/src/namespace/gtk.ts +2 -0
- package/src/shared-tree-builder.ts +131 -13
- package/src/shared-trees.spec.ts +15 -1
- package/src/signals.ts +11 -2
- package/src/slotted-children.spec.ts +24 -0
- package/src/slotted-children.ts +18 -2
- package/src/source-view/adw-source-view.ts +2 -1
- package/src/split-button.spec.ts +1 -1
- package/src/style-manager.spec.ts +13 -0
- package/src/style-manager.ts +6 -0
- package/src/styles.generated.ts +1 -1
- package/src/test.browser.mts +16 -2
- package/src/value-lists.spec.ts +3 -3
- package/src/widget-element.ts +75 -0
- package/src/widget-map.spec.ts +116 -0
- package/src/widget-mapping.ts +100 -0
- package/src/widget-visible.spec.ts +148 -0
- package/src/window-maximize.spec.ts +93 -0
- package/lib/types/icon-registry.d.ts +0 -37
- package/src/icon-registry.ts +0 -163
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type AdwSidebarItemSpec, type AdwSidebarSectionSpec, type SidebarItemFilter } from '@gjsify/adwaita-core';
|
|
2
|
+
import { WidgetElement } from '../widget-element.js';
|
|
2
3
|
/** A single sidebar item. Child of <adw-sidebar-section>; consumed at connect time. */
|
|
3
|
-
export declare class AdwSidebarItem extends
|
|
4
|
+
export declare class AdwSidebarItem extends WidgetElement {
|
|
4
5
|
static get observedAttributes(): string[];
|
|
5
6
|
/**
|
|
6
7
|
* `AdwSidebarItem:enabled`, under the GIR name — the `disabled` attribute inverted.
|
|
@@ -16,11 +17,11 @@ export declare class AdwSidebarItem extends HTMLElement {
|
|
|
16
17
|
attributeChangedCallback(name: string, _oldValue: string | null, newValue: string | null): void;
|
|
17
18
|
}
|
|
18
19
|
/** A titled group of items. Child of <adw-sidebar>; consumed at connect time. */
|
|
19
|
-
export declare class AdwSidebarSection extends
|
|
20
|
+
export declare class AdwSidebarSection extends WidgetElement {
|
|
20
21
|
static get observedAttributes(): string[];
|
|
21
22
|
attributeChangedCallback(_name: string, _oldValue: string | null, newValue: string | null): void;
|
|
22
23
|
}
|
|
23
|
-
export declare class AdwSidebar extends
|
|
24
|
+
export declare class AdwSidebar extends WidgetElement {
|
|
24
25
|
private readonly _state;
|
|
25
26
|
private _listEl;
|
|
26
27
|
private _rows;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { AdwAdjustment, AdwAdjustmentInput } from '@gjsify/adwaita-core';
|
|
2
|
-
|
|
2
|
+
import { TooltipElement } from '../widget-element.js';
|
|
3
|
+
export declare class AdwSpinRow extends TooltipElement {
|
|
3
4
|
private _input;
|
|
4
5
|
/** The label column — kept for `tooltip-text`, which the browser reads off a PART. */
|
|
5
6
|
private _textEl;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { AdwMenuActions, AdwMenuInput, AdwMenuModel, SplitButtonDirection } from '@gjsify/adwaita-core';
|
|
2
2
|
import './gtk-popover.js';
|
|
3
|
-
|
|
3
|
+
import { WidgetElement } from '../widget-element.js';
|
|
4
|
+
export declare class AdwSplitButton extends WidgetElement {
|
|
4
5
|
private readonly _state;
|
|
5
6
|
private _actionEl;
|
|
6
7
|
private _dropdownEl;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { DispatchedSignals } from '../signals.js';
|
|
2
2
|
import './gtk-switch.js';
|
|
3
|
-
|
|
3
|
+
import { TooltipElement } from '../widget-element.js';
|
|
4
|
+
export declare class AdwSwitchRow extends TooltipElement {
|
|
4
5
|
/** The GTK signals this element dispatches, each with the DOM event it arrives as (ADR 0093). */
|
|
5
6
|
static readonly signals: DispatchedSignals;
|
|
6
7
|
private _switchEl;
|
|
@@ -17,6 +18,8 @@ export declare class AdwSwitchRow extends HTMLElement {
|
|
|
17
18
|
get prefixSection(): HTMLDivElement;
|
|
18
19
|
get active(): boolean;
|
|
19
20
|
set active(value: boolean);
|
|
21
|
+
get_active(): boolean;
|
|
22
|
+
set_active(active: boolean): void;
|
|
20
23
|
constructor();
|
|
21
24
|
connectedCallback(): void;
|
|
22
25
|
attributeChangedCallback(name: string): void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { AdwTabView } from './adw-tab-view.js';
|
|
2
|
+
import { WidgetElement } from '../widget-element.js';
|
|
2
3
|
/** The CSS classes a chip's own layout reads — the states C puts on the widget. */
|
|
3
|
-
export declare class AdwTabBar extends
|
|
4
|
+
export declare class AdwTabBar extends WidgetElement {
|
|
4
5
|
private _boxEl;
|
|
5
6
|
private _startEl;
|
|
6
7
|
private _endEl;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { AdwTabView } from './adw-tab-view.js';
|
|
2
|
-
|
|
2
|
+
import { WidgetElement } from '../widget-element.js';
|
|
3
|
+
export declare class AdwTabButton extends WidgetElement {
|
|
3
4
|
private _button;
|
|
4
5
|
private _binEl;
|
|
5
6
|
private _labelEl;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type AdwMenuInput, type AdwMenuModel } from '@gjsify/adwaita-core';
|
|
2
2
|
import type { AdwTabView } from './adw-tab-view.js';
|
|
3
|
-
|
|
3
|
+
import { WidgetElement } from '../widget-element.js';
|
|
4
|
+
export declare class AdwTabOverview extends WidgetElement {
|
|
4
5
|
private _childEl;
|
|
5
6
|
private _overviewEl;
|
|
6
7
|
private _headerEl;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { AdwTabPageSpec, AdwTabPageState } from '@gjsify/adwaita-core';
|
|
2
|
+
import { WidgetElement } from '../widget-element.js';
|
|
2
3
|
export type AdwTabViewPage = AdwTabPageState<HTMLElement>;
|
|
3
4
|
export type AdwTabViewPageSpec = AdwTabPageSpec<HTMLElement>;
|
|
4
5
|
/**
|
|
@@ -7,12 +8,12 @@ export type AdwTabViewPageSpec = AdwTabPageSpec<HTMLElement>;
|
|
|
7
8
|
* moves the children out and discards the element leaves `observedAttributes` with
|
|
8
9
|
* nothing to act on.
|
|
9
10
|
*/
|
|
10
|
-
export declare class AdwTabPage extends
|
|
11
|
+
export declare class AdwTabPage extends WidgetElement {
|
|
11
12
|
static get observedAttributes(): string[];
|
|
12
13
|
connectedCallback(): void;
|
|
13
14
|
attributeChangedCallback(name: string, _old: string | null, value: string | null): void;
|
|
14
15
|
}
|
|
15
|
-
export declare class AdwTabView extends
|
|
16
|
+
export declare class AdwTabView extends WidgetElement {
|
|
16
17
|
private readonly _state;
|
|
17
18
|
private readonly _barEl;
|
|
18
19
|
private readonly _tabBoxEl;
|
|
@@ -1,26 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import type { Toast, ToastScheduler } from '@gjsify/adwaita-core';
|
|
2
|
+
import { WidgetElement } from '../widget-element.js';
|
|
3
3
|
export type { ToastScheduler, ToastTimerHandle } from '@gjsify/adwaita-core';
|
|
4
|
-
|
|
5
|
-
export interface AdwToastOptions {
|
|
6
|
-
/** Seconds before the toast auto-dismisses; `0` keeps it until dismissed. Mirrors Adw.Toast:timeout (default 5). */
|
|
7
|
-
timeout?: number;
|
|
8
|
-
/** Label for the action button; omitted/empty means no button. Mirrors Adw.Toast:button-label. */
|
|
9
|
-
buttonLabel?: string;
|
|
10
|
-
/** Invoked when the action button is pressed. Mirrors the activation of Adw.Toast:action-name. */
|
|
11
|
-
onAction?: () => void;
|
|
12
|
-
}
|
|
13
|
-
export declare class AdwToastOverlay extends HTMLElement {
|
|
4
|
+
export declare class AdwToastOverlay extends WidgetElement {
|
|
14
5
|
private _toasts;
|
|
15
6
|
private _initialized;
|
|
16
|
-
/** The headless
|
|
7
|
+
/** The headless queue of `adw-toast-overlay.c` (ADR 0004). */
|
|
17
8
|
private readonly _queue;
|
|
18
9
|
/** The timing source the queue's auto-dismiss runs on — swappable, see {@link scheduler}. */
|
|
19
10
|
private _scheduler;
|
|
20
|
-
/** The strip currently mounted for {@link
|
|
11
|
+
/** The strip currently mounted for {@link ToastOverlayQueue.current}, if any. */
|
|
21
12
|
private _currentEl;
|
|
22
|
-
/** Per-toast action callbacks (the core toast descriptor carries only the label). */
|
|
23
|
-
private readonly _actions;
|
|
24
13
|
constructor();
|
|
25
14
|
connectedCallback(): void;
|
|
26
15
|
/**
|
|
@@ -32,22 +21,13 @@ export declare class AdwToastOverlay extends HTMLElement {
|
|
|
32
21
|
get scheduler(): ToastScheduler;
|
|
33
22
|
set scheduler(scheduler: ToastScheduler);
|
|
34
23
|
/** The toast currently on screen, or `null` when nothing is shown. */
|
|
35
|
-
get currentToast():
|
|
24
|
+
get currentToast(): Toast | null;
|
|
36
25
|
/** Number of toasts queued behind the visible one. */
|
|
37
26
|
get pendingToasts(): number;
|
|
38
|
-
/**
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
*
|
|
43
|
-
* `options` is either an {@link AdwToastOptions} bag or, as a legacy shorthand, a
|
|
44
|
-
* timeout in MILLISECONDS.
|
|
45
|
-
*/
|
|
46
|
-
addToast(title: string, options?: number | AdwToastOptions): void;
|
|
47
|
-
/** Dismiss the visible toast early; the next queued toast takes its place. */
|
|
48
|
-
dismiss(): void;
|
|
49
|
-
/** Dismiss the visible toast and discard everything still queued behind it. */
|
|
50
|
-
clearToasts(): void;
|
|
27
|
+
/** `adw_toast_overlay_add_toast`: show `toast` now, or queue it by its priority. */
|
|
28
|
+
add_toast(toast: Toast): void;
|
|
29
|
+
/** `adw_toast_overlay_dismiss_all`: dismiss every queued toast, then the visible one. */
|
|
30
|
+
dismiss_all(): void;
|
|
51
31
|
/** Build + attach the strip for `toast` — the DOM half of the queue's `onShow`. */
|
|
52
32
|
private _mountToast;
|
|
53
33
|
/**
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { WidgetElement } from '../widget-element.js';
|
|
1
2
|
/** A single toggle. Children of <adw-toggle-group>; consumed at connect time. */
|
|
2
|
-
export declare class AdwToggle extends
|
|
3
|
+
export declare class AdwToggle extends WidgetElement {
|
|
3
4
|
static get observedAttributes(): string[];
|
|
4
5
|
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
5
6
|
}
|
|
6
|
-
export declare class AdwToggleGroup extends
|
|
7
|
+
export declare class AdwToggleGroup extends WidgetElement {
|
|
7
8
|
private _innerEl;
|
|
8
9
|
private _buttons;
|
|
9
10
|
/** The headless segment list + guarded selection state machine (ADR 0004). */
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { AdwViewStackPageInfo as CorePageInfo } from '@gjsify/adwaita-core';
|
|
2
2
|
import type { DispatchedSignals } from '../signals.js';
|
|
3
|
+
import { WidgetElement } from '../widget-element.js';
|
|
3
4
|
export type AdwViewStackPageInfo = CorePageInfo<HTMLElement>;
|
|
4
|
-
export declare class AdwViewStack extends
|
|
5
|
+
export declare class AdwViewStack extends WidgetElement {
|
|
5
6
|
/** The GTK signals this element dispatches, each with the DOM event it arrives as (ADR 0093). */
|
|
6
7
|
static readonly signals: DispatchedSignals;
|
|
7
8
|
private readonly _state;
|
|
@@ -60,6 +61,7 @@ export declare class AdwViewStack extends HTMLElement {
|
|
|
60
61
|
*/
|
|
61
62
|
private _emitItemsChanged;
|
|
62
63
|
private _onStateChange;
|
|
64
|
+
private _onChildrenRemoved;
|
|
63
65
|
private _applyVisibility;
|
|
64
66
|
private _reflectName;
|
|
65
67
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { AdwViewStack } from './adw-view-stack.js';
|
|
2
|
-
|
|
2
|
+
import { WidgetElement } from '../widget-element.js';
|
|
3
|
+
export declare class AdwViewSwitcherBar extends WidgetElement {
|
|
3
4
|
private readonly _barState;
|
|
4
5
|
private _barEl;
|
|
5
6
|
private _nodes;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { SidebarItemFilter } from '@gjsify/adwaita-core';
|
|
2
2
|
import type { AdwViewStack } from './adw-view-stack.js';
|
|
3
|
-
|
|
3
|
+
import { WidgetElement } from '../widget-element.js';
|
|
4
|
+
export declare class AdwViewSwitcherSidebar extends WidgetElement {
|
|
4
5
|
private _sidebar;
|
|
5
6
|
private _placeholderEl;
|
|
6
7
|
private _prefixEl;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ViewSwitcherScheduler } from '@gjsify/adwaita-core';
|
|
2
2
|
import type { AdwViewSwitcherPage as AdwViewSwitcherPageInfo, AdwViewSwitcherPolicy } from '@gjsify/adwaita-core';
|
|
3
|
+
import { WidgetElement } from '../widget-element.js';
|
|
3
4
|
/**
|
|
4
5
|
* A single page. Children of `<adw-view-switcher>`; consumed at connect time.
|
|
5
6
|
*
|
|
@@ -9,9 +10,9 @@ import type { AdwViewSwitcherPage as AdwViewSwitcherPageInfo, AdwViewSwitcherPol
|
|
|
9
10
|
* switcher watches them with a `MutationObserver` instead — the DOM stand-in for
|
|
10
11
|
* the per-page `notify` C rebinds on.
|
|
11
12
|
*/
|
|
12
|
-
export declare class AdwViewSwitcherPage extends
|
|
13
|
+
export declare class AdwViewSwitcherPage extends WidgetElement {
|
|
13
14
|
}
|
|
14
|
-
export declare class AdwViewSwitcher extends
|
|
15
|
+
export declare class AdwViewSwitcher extends WidgetElement {
|
|
15
16
|
/**
|
|
16
17
|
* The dwell timer, injectable so a test can hand in a clock and drive
|
|
17
18
|
* `VIEW_SWITCHER_DRAG_VECTORS` against the real element. Replace it before the
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { AdwBreakpoint } from '@gjsify/adwaita-core';
|
|
2
|
+
/**
|
|
3
|
+
* A maximized or fullscreen `Gtk.Window` ignores its default size and fills the monitor's work
|
|
4
|
+
* area (gtkwindow.c: the default size is only the RESTORED size). The page's work area is the
|
|
5
|
+
* frame's containing block, which the skin sizes from these two attributes.
|
|
6
|
+
*/
|
|
7
|
+
export declare function fillsContainingBlock(host: HTMLElement): boolean;
|
|
2
8
|
export declare class AdwWindowFeatures {
|
|
3
9
|
private readonly _host;
|
|
4
10
|
private _contentEl;
|
|
@@ -39,6 +45,8 @@ export declare class AdwWindowFeatures {
|
|
|
39
45
|
* size; `width-request`/`height-request` override it). `default-width/height` is only
|
|
40
46
|
* a default: an authored size is the box, and an absent one leaves the box to the
|
|
41
47
|
* stylesheet, which fills the viewport — a page has no window manager to pick a size.
|
|
48
|
+
* While maximized or fullscreened the default size is not applied at all: the stylesheet
|
|
49
|
+
* fills the containing block, and the minimum still holds.
|
|
42
50
|
*/
|
|
43
51
|
applySizeRequest(): void;
|
|
44
52
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { WidgetElement } from '../widget-element.js';
|
|
2
|
+
export declare class AdwWindowTitle extends WidgetElement {
|
|
2
3
|
private _titleEl;
|
|
3
4
|
private _subtitleEl;
|
|
4
5
|
/** The headless title/subtitle pair + change detection (ADR 0004). */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type AdwLengthUnit } from '@gjsify/adwaita-core';
|
|
2
|
-
|
|
2
|
+
import { WidgetElement } from '../widget-element.js';
|
|
3
|
+
export declare class AdwWrapBox extends WidgetElement {
|
|
3
4
|
private _initialized;
|
|
4
5
|
static get observedAttributes(): ("orientation" | "align" | "child-spacing" | "child-spacing-unit" | "pack-direction" | "justify" | "justify-last-line" | "line-spacing" | "line-spacing-unit" | "line-homogeneous" | "natural-line-length" | "natural-line-length-unit" | "wrap-reverse" | "wrap-policy")[];
|
|
5
6
|
/** Spacing between children on the same line, in `child-spacing-unit`. */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DispatchedSignals } from '../signals.js';
|
|
2
|
+
import { WidgetElement } from '../widget-element.js';
|
|
2
3
|
/**
|
|
3
4
|
* The markup + state shared by `<gtk-check-button>` and `<adw-radio>`.
|
|
4
5
|
*
|
|
@@ -7,7 +8,7 @@ import type { DispatchedSignals } from '../signals.js';
|
|
|
7
8
|
* `.adw-check-indicator` and `.adw-check-label`, which are the Adwaita SKIN, and the
|
|
8
9
|
* skin is not what the tag names. It is also not a widget — nothing registers it.
|
|
9
10
|
*/
|
|
10
|
-
declare abstract class AdwCheckBase extends
|
|
11
|
+
declare abstract class AdwCheckBase extends WidgetElement {
|
|
11
12
|
protected _input: HTMLInputElement;
|
|
12
13
|
protected _indicator: HTMLSpanElement;
|
|
13
14
|
protected _label: HTMLSpanElement;
|
|
@@ -41,6 +42,20 @@ export declare class GtkCheckButton extends AdwCheckBase {
|
|
|
41
42
|
static readonly signals: DispatchedSignals;
|
|
42
43
|
static get observedAttributes(): string[];
|
|
43
44
|
protected get inputType(): 'checkbox';
|
|
45
|
+
/**
|
|
46
|
+
* `Gtk.CheckButton:group`, WRITE-ONLY as in GTK (`G_PARAM_WRITABLE`, gtkcheckbutton.c:665-668):
|
|
47
|
+
* another check button, or its id as a projected `.blp` writes it, or `null` to leave.
|
|
48
|
+
*/
|
|
49
|
+
set group(value: GtkCheckButton | string | null);
|
|
50
|
+
/** `gtk_check_button_set_group`. */
|
|
51
|
+
set_group(group: GtkCheckButton | null): void;
|
|
52
|
+
get_active(): boolean;
|
|
53
|
+
set_active(active: boolean): void;
|
|
54
|
+
attributeChangedCallback(name: string): void;
|
|
55
|
+
protected onConnected(): void;
|
|
56
|
+
/** The `group` attribute names a check button by id, looked up once the tree is in a document. */
|
|
57
|
+
private _resolveGroup;
|
|
58
|
+
protected render(): void;
|
|
44
59
|
protected activate(): void;
|
|
45
60
|
}
|
|
46
61
|
/** The Adwaita radio — `checkbutton > radio`, exclusive within its `name`. */
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { GtkApplication } from '../application.js';
|
|
1
|
+
import { type ActionLike } from '@gjsify/adwaita-core';
|
|
3
2
|
import type { DispatchedSignals } from '../signals.js';
|
|
4
3
|
import type { AdwSlot } from '../slotted-children.js';
|
|
5
4
|
import { GtkWindow } from './gtk-window.js';
|
|
6
5
|
export declare class GtkApplicationWindow extends GtkWindow {
|
|
7
|
-
/** `Gtk.Window:application`: setting it is `add_window` (ADR 0098), set by `defineWindowApplication`. */
|
|
8
|
-
application: GtkApplication | null;
|
|
9
6
|
/** `Gio.ActionMap.add_action`: installed by `installActionMap`; the action is reachable as `win.<name>`. */
|
|
10
7
|
add_action: (action: ActionLike) => void;
|
|
11
8
|
/** `Gio.ActionMap.lookup_action`: the window's own action, or `null`. */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { WidgetElement } from '../widget-element.js';
|
|
2
|
+
export declare class GtkAspectFrame extends WidgetElement {
|
|
2
3
|
static get observedAttributes(): string[];
|
|
3
4
|
/** `Gtk.AspectFrame:ratio` — the width/height of the child. Ignored under `obey-child`. */
|
|
4
5
|
get ratio(): number;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { type BoxOrientation } from '@gjsify/adwaita-core';
|
|
2
|
-
|
|
2
|
+
import { WidgetElement } from '../widget-element.js';
|
|
3
|
+
export declare class GtkBox extends WidgetElement {
|
|
4
|
+
private _expandObserver;
|
|
3
5
|
static get observedAttributes(): ("spacing" | "orientation" | "homogeneous")[];
|
|
4
6
|
/** `GtkOrientable:orientation` — `horizontal` (the default) or `vertical`. */
|
|
5
7
|
get orientation(): BoxOrientation;
|
|
@@ -11,7 +13,9 @@ export declare class GtkBox extends HTMLElement {
|
|
|
11
13
|
get homogeneous(): boolean;
|
|
12
14
|
set homogeneous(value: boolean);
|
|
13
15
|
connectedCallback(): void;
|
|
16
|
+
disconnectedCallback(): void;
|
|
14
17
|
attributeChangedCallback(name: string, old: string | null, value: string | null): void;
|
|
15
18
|
private _normalized;
|
|
16
19
|
private _sync;
|
|
20
|
+
private _syncComputedExpand;
|
|
17
21
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { DispatchedSignals } from '../signals.js';
|
|
2
|
-
|
|
2
|
+
import { TooltipElement } from '../widget-element.js';
|
|
3
|
+
export declare class GtkButton extends TooltipElement {
|
|
3
4
|
/** The GTK signals this element dispatches, each with the DOM event it arrives as (ADR 0093). */
|
|
4
5
|
static readonly signals: DispatchedSignals;
|
|
5
6
|
private _button;
|
|
@@ -9,17 +10,14 @@ export declare class GtkButton extends HTMLElement {
|
|
|
9
10
|
private _child;
|
|
10
11
|
static get observedAttributes(): string[];
|
|
11
12
|
/**
|
|
12
|
-
* `Gtk.Button:icon-name
|
|
13
|
-
*
|
|
13
|
+
* `Gtk.Button:icon-name`, the GObject spelling: a class that holds a button as a template
|
|
14
|
+
* child writes `button.icon_name = …`, which must reach the DOM. `Gtk.Widget:tooltip-text`
|
|
15
|
+
* comes from `TooltipElement`.
|
|
14
16
|
*/
|
|
15
17
|
get icon_name(): string | null;
|
|
16
18
|
set icon_name(value: string | null);
|
|
17
19
|
get iconName(): string | null;
|
|
18
20
|
set iconName(value: string | null);
|
|
19
|
-
get tooltip_text(): string | null;
|
|
20
|
-
set tooltip_text(value: string | null);
|
|
21
|
-
get tooltipText(): string | null;
|
|
22
|
-
set tooltipText(value: string | null);
|
|
23
21
|
private reflect;
|
|
24
22
|
/** The inner native button (for focus/imperative access). */
|
|
25
23
|
get button(): HTMLButtonElement;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type AdwCalendarCell, type AdwCalendarDate } from '@gjsify/adwaita-core';
|
|
2
|
-
|
|
2
|
+
import { WidgetElement } from '../widget-element.js';
|
|
3
|
+
export declare class GtkCalendar extends WidgetElement {
|
|
3
4
|
private _headerEl;
|
|
4
5
|
private _monthEl;
|
|
5
6
|
private _yearEl;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { WidgetElement } from '../widget-element.js';
|
|
1
2
|
/** `Gtk.BaselinePosition`'s three nicks, in the order GTK measures them (gtkcenterbox.c:267-271). */
|
|
2
3
|
declare const BASELINE_POSITIONS: {
|
|
3
4
|
readonly top: 0;
|
|
@@ -5,7 +6,7 @@ declare const BASELINE_POSITIONS: {
|
|
|
5
6
|
readonly bottom: 1;
|
|
6
7
|
};
|
|
7
8
|
export type BaselinePosition = keyof typeof BASELINE_POSITIONS;
|
|
8
|
-
export declare class GtkCenterBox extends
|
|
9
|
+
export declare class GtkCenterBox extends WidgetElement {
|
|
9
10
|
static get observedAttributes(): string[];
|
|
10
11
|
/**
|
|
11
12
|
* `Gtk.CenterBox:baseline-position` — `top`, `center` (the pspec default) or `bottom`.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { WidgetElement } from '../widget-element.js';
|
|
1
2
|
/** A `GdkRGBA` — the four channels of `GtkColorDialogButton:rgba`, each 0…1. */
|
|
2
3
|
export interface GdkRgbaValue {
|
|
3
4
|
red: number;
|
|
@@ -17,7 +18,7 @@ export interface ColorDialogParameters {
|
|
|
17
18
|
/** Whether colours may carry alpha. Default `TRUE`, as in the GIR. */
|
|
18
19
|
withAlpha?: boolean;
|
|
19
20
|
}
|
|
20
|
-
export declare class GtkColorDialogButton extends
|
|
21
|
+
export declare class GtkColorDialogButton extends WidgetElement {
|
|
21
22
|
private _buttonEl;
|
|
22
23
|
private _swatchEl;
|
|
23
24
|
private _inputEl;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { WidgetElement } from '../widget-element.js';
|
|
1
2
|
/** The `rgba()` string a `GdkRGBA` value paints, as the colour swatch shows it. */
|
|
2
3
|
interface Rgba {
|
|
3
4
|
readonly red: number;
|
|
@@ -5,7 +6,7 @@ interface Rgba {
|
|
|
5
6
|
readonly blue: number;
|
|
6
7
|
readonly alpha?: number;
|
|
7
8
|
}
|
|
8
|
-
export declare class GtkDragIcon extends
|
|
9
|
+
export declare class GtkDragIcon extends WidgetElement {
|
|
9
10
|
private _pointerX;
|
|
10
11
|
private _pointerY;
|
|
11
12
|
private _dragging;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { WidgetElement } from '../widget-element.js';
|
|
1
2
|
/**
|
|
2
3
|
* `GtkDrawingAreaDrawFunc` with the `user_data` / `destroy` pair dropped — see the header.
|
|
3
4
|
*
|
|
@@ -7,7 +8,7 @@
|
|
|
7
8
|
* @param height the height of the allocation — NOT of `content-height`
|
|
8
9
|
*/
|
|
9
10
|
export type GtkDrawingAreaDrawFunc = (area: GtkDrawingArea, cr: CanvasRenderingContext2D, width: number, height: number) => void;
|
|
10
|
-
export declare class GtkDrawingArea extends
|
|
11
|
+
export declare class GtkDrawingArea extends WidgetElement {
|
|
11
12
|
private _canvas;
|
|
12
13
|
private _context;
|
|
13
14
|
private _initialized;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import './gtk-popover.js';
|
|
2
2
|
import type { AdwComboOption, AdwListModelInput } from '@gjsify/adwaita-core';
|
|
3
3
|
import type { DispatchedSignals } from '../signals.js';
|
|
4
|
+
import { WidgetElement } from '../widget-element.js';
|
|
4
5
|
/**
|
|
5
6
|
* A dropdown option — `value` is the stable id, `label` the shown text. An alias of
|
|
6
7
|
* core's {@link AdwComboOption}, since the drop-down and the combo row are the same
|
|
7
8
|
* selection model behind two chromes; still exported so the published name keeps working.
|
|
8
9
|
*/
|
|
9
10
|
export type GtkDropDownOption = AdwComboOption;
|
|
10
|
-
export declare class GtkDropDown extends
|
|
11
|
+
export declare class GtkDropDown extends WidgetElement {
|
|
11
12
|
/** The GTK signals this element dispatches, each with the DOM event it arrives as (ADR 0093). */
|
|
12
13
|
static readonly signals: DispatchedSignals;
|
|
13
14
|
private _buttonEl;
|
|
@@ -17,6 +17,8 @@ export declare class GtkEmojiChooser extends GtkPopover {
|
|
|
17
17
|
* events themselves — which is what `gdk_device_get_modifier_state` answers.
|
|
18
18
|
*/
|
|
19
19
|
private _ctrl;
|
|
20
|
+
/** The chooser's template is the child (gtkemojichooser.ui). */
|
|
21
|
+
protected takesChild(): boolean;
|
|
20
22
|
connectedCallback(): void;
|
|
21
23
|
/** The emoji picked most recently, newest first — what `recently-used-emoji` holds. */
|
|
22
24
|
get recentEmoji(): EmojiEntry[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { DispatchedSignals } from '../signals.js';
|
|
2
|
-
|
|
2
|
+
import { WidgetElement } from '../widget-element.js';
|
|
3
|
+
export declare class GtkEntry extends WidgetElement {
|
|
3
4
|
/**
|
|
4
5
|
* `protected`, not `private`: `GtkPasswordEntry` and `GtkSearchEntry` subclass this
|
|
5
6
|
* element and restyle or wrap the very input it builds (the password field's Caps Lock
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { type AdwBoxSelectionMode } from '@gjsify/adwaita-core';
|
|
2
2
|
import type { GtkFlowBoxChild } from './gtk-flow-box-child.js';
|
|
3
3
|
import './gtk-flow-box-child.js';
|
|
4
|
+
import { WidgetElement } from '../widget-element.js';
|
|
4
5
|
/** `GtkFlowBox:max-children-per-line`'s default — `DEFAULT_MAX_CHILDREN_PER_LINE` (:728). */
|
|
5
6
|
export declare const ADW_FLOW_BOX_MAX_CHILDREN_PER_LINE = 7;
|
|
6
7
|
/** `GtkFlowBox:orientation` — HORIZONTAL by default here, unlike a `GtkListBase` (:3981). */
|
|
7
8
|
export type AdwFlowBoxOrientation = 'horizontal' | 'vertical';
|
|
8
|
-
export declare class GtkFlowBox extends
|
|
9
|
+
export declare class GtkFlowBox extends WidgetElement {
|
|
9
10
|
private _children;
|
|
10
11
|
private _selection;
|
|
11
12
|
/** `priv->selected_child`, `-1` for the C's NULL. */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type PangoFontDescription } from '../font-description.js';
|
|
2
2
|
import './gtk-popover.js';
|
|
3
3
|
import './gtk-separator.js';
|
|
4
|
+
import { WidgetElement } from '../widget-element.js';
|
|
4
5
|
/** `GtkFontLevel`'s four values, under the nicks a string property carries. */
|
|
5
6
|
export type FontLevel = 'family' | 'face' | 'font' | 'features';
|
|
6
7
|
/** `GtkFontDialog`'s own parameters; `font-map` has no browser counterpart and is absent. */
|
|
@@ -14,7 +15,7 @@ export interface FontDialogParameters {
|
|
|
14
15
|
/** Whether only scalable fonts are offered. */
|
|
15
16
|
filter?: number;
|
|
16
17
|
}
|
|
17
|
-
export declare class GtkFontDialogButton extends
|
|
18
|
+
export declare class GtkFontDialogButton extends WidgetElement {
|
|
18
19
|
private _buttonEl;
|
|
19
20
|
private _labelEl;
|
|
20
21
|
private _sizeBoxEl;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { WidgetElement } from '../widget-element.js';
|
|
2
|
+
export declare class GtkFrame extends WidgetElement {
|
|
2
3
|
private _mutations;
|
|
3
4
|
static get observedAttributes(): string[];
|
|
4
5
|
/** The element's own `<gtk-label>`, built from `label` — null while no string is set. */
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { WidgetElement } from '../widget-element.js';
|
|
1
2
|
/** `GdkGLAPI`'s nicks, as `GdkGLAPINickSet` spells them. */
|
|
2
3
|
declare const APIS: readonly ["gl", "gles"];
|
|
3
4
|
type GlApi = (typeof APIS)[number];
|
|
4
5
|
/** A WebGL context, whichever version the browser handed out. */
|
|
5
6
|
type GlContext = WebGLRenderingContext | WebGL2RenderingContext;
|
|
6
|
-
export declare class GtkGLArea extends
|
|
7
|
+
export declare class GtkGLArea extends WidgetElement {
|
|
7
8
|
private _canvas;
|
|
8
9
|
private _messageEl;
|
|
9
10
|
private _initialized;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { WidgetElement } from '../widget-element.js';
|
|
1
2
|
/** `GtkGraphicsOffloadEnabled`, spelled as the GIR's enum nicks. */
|
|
2
3
|
type OffloadEnabled = 'enabled' | 'disabled';
|
|
3
|
-
export declare class GtkGraphicsOffload extends
|
|
4
|
+
export declare class GtkGraphicsOffload extends WidgetElement {
|
|
4
5
|
private _childEl;
|
|
5
6
|
private _initialized;
|
|
6
7
|
static get observedAttributes(): string[];
|