@gjsify/adwaita-nativescript 0.64.2 → 0.64.3-next.260

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.
Files changed (100) hide show
  1. package/lib/esm/index.js +1 -1
  2. package/lib/esm/language-host.js +1 -0
  3. package/lib/esm/language-source.android.js +1 -0
  4. package/lib/esm/language-source.ios.js +1 -0
  5. package/lib/esm/language-source.js +1 -0
  6. package/lib/esm/namespace/adw.js +1 -1
  7. package/lib/esm/namespace/glib.js +1 -1
  8. package/lib/esm/namespace/gobject.js +1 -1
  9. package/lib/esm/widgets/adw-about-dialog.js +7 -2
  10. package/lib/esm/widgets/adw-action-row.js +1 -1
  11. package/lib/esm/widgets/adw-button-row.js +1 -1
  12. package/lib/esm/widgets/adw-dialog.js +1 -1
  13. package/lib/esm/widgets/adw-preferences-dialog.js +1 -1
  14. package/lib/esm/widgets/adw-preferences-group.js +1 -1
  15. package/lib/esm/widgets/adw-preferences-page.js +1 -1
  16. package/lib/esm/widgets/adw-spinner.js +1 -1
  17. package/lib/esm/widgets/adw-switch-row.js +1 -1
  18. package/lib/esm/widgets/adw-window-title.js +1 -1
  19. package/lib/esm/widgets/gtk-check-button.js +1 -1
  20. package/lib/esm/widgets/index.js +1 -1
  21. package/lib/esm/widgets/signals.js +1 -1
  22. package/lib/esm/widgets/style-manager-host.js +1 -0
  23. package/lib/esm/widgets/style-manager.js +1 -1
  24. package/lib/esm/widgets/widget-layout.js +1 -1
  25. package/lib/esm/widgets/window-state.js +1 -1
  26. package/lib/types/about-dialog-credits.spec.d.ts +1 -0
  27. package/lib/types/about-dialog-links.spec.d.ts +1 -0
  28. package/lib/types/action-row-properties.spec.d.ts +2 -0
  29. package/lib/types/index.d.ts +1 -1
  30. package/lib/types/language-host.d.ts +3 -0
  31. package/lib/types/language-source.android.d.ts +1 -0
  32. package/lib/types/language-source.d.ts +1 -0
  33. package/lib/types/language-source.ios.d.ts +1 -0
  34. package/lib/types/namespace/adw.d.ts +1 -1
  35. package/lib/types/namespace/glib.d.ts +4 -2
  36. package/lib/types/signals-gobject.spec.d.ts +2 -0
  37. package/lib/types/signals.spec.d.ts +24 -0
  38. package/lib/types/spinner-properties.spec.d.ts +2 -0
  39. package/lib/types/switch-row-properties.spec.d.ts +2 -0
  40. package/lib/types/testing/ns-core.d.mts +6 -0
  41. package/lib/types/widgets/adw-about-dialog.d.ts +84 -16
  42. package/lib/types/widgets/adw-action-row.d.ts +50 -21
  43. package/lib/types/widgets/adw-alert-dialog.d.ts +6 -2
  44. package/lib/types/widgets/adw-avatar.d.ts +6 -2
  45. package/lib/types/widgets/adw-banner.d.ts +6 -2
  46. package/lib/types/widgets/adw-bottom-sheet.d.ts +6 -2
  47. package/lib/types/widgets/adw-button-content.d.ts +6 -2
  48. package/lib/types/widgets/adw-carousel.d.ts +6 -2
  49. package/lib/types/widgets/adw-clamp.d.ts +6 -2
  50. package/lib/types/widgets/adw-data-grid.d.ts +6 -2
  51. package/lib/types/widgets/adw-dialog.d.ts +8 -1
  52. package/lib/types/widgets/adw-header-bar.d.ts +6 -2
  53. package/lib/types/widgets/adw-image-button.d.ts +6 -2
  54. package/lib/types/widgets/adw-navigation-page.d.ts +6 -2
  55. package/lib/types/widgets/adw-navigation-view.d.ts +6 -2
  56. package/lib/types/widgets/adw-preferences-dialog.d.ts +15 -82
  57. package/lib/types/widgets/adw-preferences-group.d.ts +25 -2
  58. package/lib/types/widgets/adw-preferences-page.d.ts +26 -2
  59. package/lib/types/widgets/adw-shortcut-label.d.ts +6 -2
  60. package/lib/types/widgets/adw-sidebar.d.ts +6 -2
  61. package/lib/types/widgets/adw-slider-row.d.ts +6 -2
  62. package/lib/types/widgets/adw-spinner.d.ts +24 -16
  63. package/lib/types/widgets/adw-split-button.d.ts +6 -2
  64. package/lib/types/widgets/adw-status-page.d.ts +6 -2
  65. package/lib/types/widgets/adw-switch-row.d.ts +25 -20
  66. package/lib/types/widgets/adw-tab-view.d.ts +6 -2
  67. package/lib/types/widgets/adw-toast-overlay.d.ts +6 -2
  68. package/lib/types/widgets/adw-toggle-group.d.ts +6 -2
  69. package/lib/types/widgets/adw-toggle.d.ts +6 -2
  70. package/lib/types/widgets/adw-toolbar-view.d.ts +6 -2
  71. package/lib/types/widgets/adw-view-stack.d.ts +6 -2
  72. package/lib/types/widgets/adw-view-switcher-bar.d.ts +6 -2
  73. package/lib/types/widgets/adw-window-title.d.ts +16 -12
  74. package/lib/types/widgets/adw-wrap-box.d.ts +6 -2
  75. package/lib/types/widgets/carousel-indicator-base.d.ts +6 -2
  76. package/lib/types/widgets/gtk-action-bar.d.ts +6 -2
  77. package/lib/types/widgets/gtk-button.d.ts +6 -2
  78. package/lib/types/widgets/gtk-check-button.d.ts +10 -1
  79. package/lib/types/widgets/gtk-drop-down.d.ts +6 -2
  80. package/lib/types/widgets/gtk-entry.d.ts +6 -2
  81. package/lib/types/widgets/gtk-image.d.ts +6 -2
  82. package/lib/types/widgets/gtk-label.d.ts +6 -2
  83. package/lib/types/widgets/gtk-popover-menu.d.ts +6 -2
  84. package/lib/types/widgets/gtk-stack.d.ts +6 -2
  85. package/lib/types/widgets/gtk-text-view.d.ts +6 -2
  86. package/lib/types/widgets/index.d.ts +0 -1
  87. package/lib/types/widgets/signals.d.ts +69 -3
  88. package/lib/types/widgets/split-view-base.d.ts +6 -2
  89. package/lib/types/widgets/stack-page.d.ts +6 -2
  90. package/lib/types/widgets/style-manager-host.d.ts +2 -0
  91. package/lib/types/widgets/style-manager.d.ts +14 -1
  92. package/lib/types/widgets/styled-layout-base.d.ts +6 -2
  93. package/lib/types/widgets/view-stack-page.d.ts +6 -2
  94. package/lib/types/widgets/view-switcher-base.d.ts +6 -2
  95. package/lib/types/widgets/widget-layout.d.ts +4 -0
  96. package/lib/types/widgets/window-state.d.ts +26 -0
  97. package/lib/types/window-title-properties.spec.d.ts +2 -0
  98. package/package.json +14 -13
  99. package/src/testing/ns-core.mts +20 -0
  100. package/src/theme/adwaita.css +31 -4
@@ -1,6 +1,6 @@
1
1
  export { assertNativeScript, isNativeScript, isAndroid, isIOS } from '@gjsify/native-platform';
2
2
  export { NOTIFY_ACTIVE, NOTIFY_TEXT, ENTRY_ACTIVATE, NOTIFY_ENTRY_TEXT, ComboState, NOTIFY_SELECTED, NOTIFY_DROP_DOWN_SELECTED, SpinState, NOTIFY_VALUE, AdwSliderRow, NOTIFY_SLIDER_VALUE, ExpanderState, NOTIFY_EXPANDED, AdwImageButton, DEFAULT_ICON_BUTTON_ICON_SIZE, MENU_ITEM_ACTIVATED, DEFAULT_GTK_IMAGE_SIZE, DEFAULT_BOX_SPACING, GTK_BUTTON_CLICKED, GTK_BUTTON_LABEL_CLASS, buttonSlotAfterWrite, buttonSlotDetaches, boxChildTrack, boxTrackPlan, boxSpacingChanges, normalizeBoxSpacing, NOTIFY_REVEAL_CHILD, ADW_DIALOG_CLOSED, ADW_DIALOG_CLOSE_ATTEMPT, LIST_BOX_ROW_ACTIVATED, LIST_BOX_ROW_SELECTED, NOTIFY_HEXPAND, NOTIFY_VEXPAND, withGtkWidgetLayout, NOTIFY_STACK_VISIBLE_CHILD, NOTIFY_STACK_VISIBLE_CHILD_NAME, DRAWING_AREA_REFUSAL, GTK_CHECK_BUTTON_TOGGLED, GTK_CHECK_BUTTON_ACTIVATE, GTK_CHECK_BUTTON_CHECKED_CLASS, GTK_CHECK_BUTTON_INCONSISTENT_CLASS, NOTIFY_CHECK_ACTIVE, GTK_WRAP_MODES, NOTIFY_TEXT_VIEW_TEXT, GTK_TOGGLE_BUTTON_CHECKED_CLASS, GTK_TOGGLE_BUTTON_TOGGLED, NOTIFY_TOGGLE_ACTIVE, labelDisplayText, labelMarkupIsUnparseable, BUTTON_CLICKED, AVATAR_DEFAULT_ICON, DEFAULT_AVATAR_SIZE, avatarInitials, DEFAULT_CLAMP_MAX_SIZE, padForSystemInsets, padSheetForSystemInsets, bottomSheetPanel, AdwDataGrid, ROW_ACTIVATED, dataGridCellClass, dataGridItemSpec, dataGridRowClass, dataGridShapeKey, dataGridTracksKey, parseDataGridWidth, DATA_GRID_HEADER_CELL_CLASS, DATA_GRID_HEADER_ROW_CLASS, DATA_GRID_SECTION_CELL_CLASS, DEFAULT_SPINNER_SIZE, ACTIVATED, CLICKED, MENU_TAPPED, ToggleGroupState, NOTIFY_TOGGLE_SELECTED, applyAdwaitaNsAccent, clearAdwaitaNsAccent, ADWAITA_NS_ACCENT_RULES, adwaitaNsAccentColor, adwaitaNsAccentCss, SHORTCUT_LABEL_CAP_TEXT_CLASS, SHORTCUT_LABEL_CLASS, SHORTCUT_LABEL_DIMMED_CLASS, SHORTCUT_LABEL_DISABLED_CLASS, SHORTCUT_LABEL_KEYCAP_CLASS, SHORTCUT_LABEL_KEYS_CLASS, SHORTCUT_LABEL_SIDE_CLASS, SHORTCUT_LABEL_SPACED_CLASS, shortcutLabelDirection, shortcutLabelPlatform, shortcutLabelRenderPlan, NOTIFY_VISIBLE_CHILD, AdwViewSwitcherBase, NOTIFY_VIEW_SELECTED, DEFAULT_CAROUSEL_PAGE_WIDTH, NOTIFY_POSITION, NOTIFY_VISIBLE_PAGE, AdwSplitViewBase, NOTIFY_SHOW_SIDEBAR, NsNavigationSplitViewState, NsOverlaySplitViewState, splitViewColumns, NOTIFY_SIDEBAR_SELECTED, NOTIFY_OPEN, AdwToast, AdwToastQueue, DEFAULT_TOAST_TIMEOUT, AdwAlertResponses, ABOUT_CLOSED, PREFERENCES_CLOSED, applyConstructProps, nsAlignment, GTK_ALIGN, DEFAULT_ICON_PIXEL_SIZE, GTK_ICON_SIZE_NICKS, GTK_ICON_SIZE_PIXELS, type GtkIconSizeNick, isGtkIconSizeNick, PIXEL_SIZE_UNSET, activateWidgetAction, findActionGroup, insertActionGroup, attachRowPressFeedback, ICON_FALLBACK_NAME, compiledIconNames, iconValueKind, isIconAvailable, resolveIconSource, renderSymbolicIcon, extractIconPaths, extractPathData, ADWAITA_ICON_GRID, DEFAULT_ICON_COLOR, DEFAULT_ICON_COLOR_DARK, adwaitaColorScheme, isThemeIconColor, onAdwaitaColorSchemeChanged, setAdwaitaColorScheme, themeIconColor, toggleAdwaitaColorScheme, AdwBreakpoint, addBreakpoints, evaluateBreakpointCondition, observeViewSize, observeWindowSize, parseBreakpointCondition, registerAdwaitaElements, } from './widgets/index.js';
3
- export type { BoxOrientation, ButtonSlot, ButtonSlotWrite, NotifyActiveEventData, NotifyTextEventData, NotifyEntryTextEventData, AdwComboOption, ComboStateChange, ComboStateListener, NotifySelectedEventData, NotifyDropDownSelectedEventData, NotifyValueEventData, SpinStateChange, SpinStateListener, NotifySliderValueEventData, NotifyExpandedEventData, ExpanderStateListener, MenuItemActivatedEventData, MenuTappedEventData, RowActivatedEventData, DataGridItemSpec, NotifyToggleSelectedEventData, ToggleGroupStateChange, ToggleGroupStateListener, AccentRole, AccentRule, ShortcutLabelRenderPlan, ShortcutLabelViewSpec, AdwViewStackPageInfo, NotifyVisibleChildEventData, AdwViewPage, NotifyViewSelectedEventData, NotifyPositionEventData, NotifyVisiblePageEventData, NotifyShowSidebarEventData, NsShowSidebarNotification, NsSplitViewHost, NsSplitViewState, NotifySidebarSelectedEventData, NotifyOpenEventData, AdwToastOptions, AdwToastQueueHandlers, AdwToastQueueOptions, ToastScheduler, ToastTimerHandle, AdwAlertResponse, AdwResponseAppearance, AdwResponseOptions, OrderedConfirmResponses, ConstructProps, SystemInsetEdges, IconValueKind, SymbolicIconOptions, IconPath, AdwColorScheme, AdwBreakpointHandlers, BreakpointBound, BreakpointConditionGroup, BreakpointConditionLeaf, BreakpointConditionNode, BreakpointDimension, BreakpointSize, } from './widgets/index.js';
3
+ export type { BoxOrientation, ButtonSlot, ButtonSlotWrite, NotifyTextEventData, NotifyEntryTextEventData, AdwComboOption, ComboStateChange, ComboStateListener, NotifySelectedEventData, NotifyDropDownSelectedEventData, NotifyValueEventData, SpinStateChange, SpinStateListener, NotifySliderValueEventData, NotifyExpandedEventData, ExpanderStateListener, MenuItemActivatedEventData, MenuTappedEventData, RowActivatedEventData, DataGridItemSpec, NotifyToggleSelectedEventData, ToggleGroupStateChange, ToggleGroupStateListener, AccentRole, AccentRule, ShortcutLabelRenderPlan, ShortcutLabelViewSpec, AdwViewStackPageInfo, NotifyVisibleChildEventData, AdwViewPage, NotifyViewSelectedEventData, NotifyPositionEventData, NotifyVisiblePageEventData, NotifyShowSidebarEventData, NsShowSidebarNotification, NsSplitViewHost, NsSplitViewState, NotifySidebarSelectedEventData, NotifyOpenEventData, AdwToastOptions, AdwToastQueueHandlers, AdwToastQueueOptions, ToastScheduler, ToastTimerHandle, AdwAlertResponse, AdwResponseAppearance, AdwResponseOptions, OrderedConfirmResponses, ConstructProps, SystemInsetEdges, IconValueKind, SymbolicIconOptions, IconPath, AdwColorScheme, AdwBreakpointHandlers, BreakpointBound, BreakpointConditionGroup, BreakpointConditionLeaf, BreakpointConditionNode, BreakpointDimension, BreakpointSize, } from './widgets/index.js';
4
4
  export type { GtkWidgetLayout, GtkWidgetLayoutMembers } from './widgets/widget-layout.js';
5
5
  export * as Adw from './namespace/adw.js';
6
6
  export * as Gtk from './namespace/gtk.js';
@@ -0,0 +1,3 @@
1
+ /** @internal A seam for the specs: `null` restores the platform's own. */
2
+ export declare function useLanguageHost(host: (() => string[]) | null): void;
3
+ export declare function hostLanguageTags(): string[];
@@ -0,0 +1 @@
1
+ export declare function platformLanguageTags(): string[];
@@ -0,0 +1 @@
1
+ export declare function platformLanguageTags(): string[];
@@ -0,0 +1 @@
1
+ export declare function platformLanguageTags(): string[];
@@ -49,5 +49,5 @@ export { AdwWindow as Window } from '../widgets/adw-window.js';
49
49
  export { AdwWindowTitle as WindowTitle } from '../widgets/adw-window-title.js';
50
50
  export { AdwWrapBox as WrapBox } from '../widgets/adw-wrap-box.js';
51
51
  export { AdwApplication as Application } from '../widgets/application.js';
52
- export { AdwStyleManager as StyleManager } from '../widgets/style-manager.js';
52
+ export { AdwStyleManager as StyleManager } from '../widgets/style-manager-host.js';
53
53
  export { ColorScheme, Toast, ToastPriority } from '@gjsify/adwaita-core';
@@ -1,5 +1,5 @@
1
- export { GLibBytes as Bytes, GLibError as Error } from '@gjsify/adwaita-core';
2
- import { buildFilenamev, getCurrentDir, getSystemDataDirs, uriEscapeString } from '@gjsify/adwaita-core';
1
+ export { GLibBytes as Bytes, GLibError as Error, GLibVariant as Variant } from '@gjsify/adwaita-core';
2
+ import { buildFilenamev, getCurrentDir, getSystemDataDirs, unicharIsalpha, uriEscapeString } from '@gjsify/adwaita-core';
3
3
  export declare const PRIORITY_HIGH: number;
4
4
  export declare const PRIORITY_DEFAULT: number;
5
5
  export declare const PRIORITY_HIGH_IDLE: number;
@@ -14,4 +14,6 @@ export declare const MAXUINT32 = 4294967295;
14
14
  export declare const build_filenamev: typeof buildFilenamev;
15
15
  export declare const get_current_dir: typeof getCurrentDir;
16
16
  export declare const get_system_data_dirs: typeof getSystemDataDirs;
17
+ export declare const get_language_names: () => string[];
17
18
  export declare const uri_escape_string: typeof uriEscapeString;
19
+ export declare const unichar_isalpha: typeof unicharIsalpha;
@@ -0,0 +1,2 @@
1
+ declare const _default: () => Promise<void>;
2
+ export default _default;
@@ -1,2 +1,26 @@
1
+ import type { EventData } from '@nativescript/core';
2
+ /**
3
+ * The event half of `Observable`, as `ns-core.d.ts` declares it: enough for the mixin
4
+ * to subscribe, unsubscribe and be notified, and nothing the mixin does not touch.
5
+ *
6
+ * Exported for `signals-gobject.spec.ts`, which drives the same mixin with a declaration
7
+ * attached and needs the same platform boundary under it. One stand-in, so the two legs of
8
+ * the seam are measured against one base rather than against two that can drift.
9
+ */
10
+ export declare class ObservableShape {
11
+ private readonly _listeners;
12
+ _emit(eventName: string): void;
13
+ addEventListener(eventName: string, callback: (data: EventData) => void, _thisArg?: unknown, _once?: boolean): void;
14
+ removeEventListener(eventName: string, callback?: (data: EventData) => void, _thisArg?: unknown): void;
15
+ on(eventName: string, callback: (data: EventData) => void, thisArg?: unknown): void;
16
+ once(eventName: string, callback: (data: EventData) => void, thisArg?: unknown): void;
17
+ off(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
18
+ notify<T extends EventData>(data: T): void;
19
+ notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
20
+ set(name: string, value: unknown): void;
21
+ get(name: string): unknown;
22
+ /** How many listeners `eventName` has — what the mixin's bookkeeping is measured against. */
23
+ listenerCount(eventName: string): number;
24
+ }
1
25
  declare const _default: () => Promise<void>;
2
26
  export default _default;
@@ -0,0 +1,2 @@
1
+ export declare const AdwSpinnerPropertiesNsTest: () => Promise<void>;
2
+ export default AdwSpinnerPropertiesNsTest;
@@ -0,0 +1,2 @@
1
+ export declare const AdwSwitchRowPropertiesNsTest: () => Promise<void>;
2
+ export default AdwSwitchRowPropertiesNsTest;
@@ -259,6 +259,8 @@ export declare class GridLayout extends LayoutBase {
259
259
  addColumn(itemSpec: ItemSpec): void;
260
260
  addRow(itemSpec: ItemSpec): void;
261
261
  removeRow(itemSpec: ItemSpec): void;
262
+ /** `GridLayoutBase.getColumns` — a copy, as on a device. */
263
+ getColumns(): ItemSpec[];
262
264
  removeColumns(): void;
263
265
  removeRows(): void;
264
266
  /** Where a child was placed — the read-back the `set*` statics have on a device. */
@@ -440,6 +442,10 @@ export declare const Application: {
440
442
  }): void;
441
443
  on(event: string, callback: (args: unknown) => void): void;
442
444
  off(event: string, callback: (args: unknown) => void): void;
445
+ /** The double has no configuration to read, so it cannot tell — until a spec says otherwise. */
446
+ systemAppearance(): "dark" | "light" | null;
447
+ /** Change the system's appearance and deliver `systemAppearanceChanged`, as the platform does. */
448
+ emitSystemAppearance(value: "dark" | "light"): void;
443
449
  /** Deliver a lifecycle event (`resume`, `suspend`) to its subscribers, as the platform does. */
444
450
  emitLifecycle(event: string): void;
445
451
  /** Absent, as on every platform that is not Android — and this is not Android. */
@@ -1,9 +1,14 @@
1
- import { GridLayout, Label, StackLayout, type EventData } from '@nativescript/core';
1
+ import { Button, GridLayout, Label, StackLayout, type EventData } from '@nativescript/core';
2
+ import { GtkImage } from './gtk-image.js';
2
3
  import { type ConstructProps } from './construct-props.js';
3
4
  import type { View } from '@nativescript/core';
4
5
  /** Event name emitted when the dialog is closed. */
5
6
  export declare const CLOSED = "closed";
7
+ /** Event name emitted when a link is tapped, before it is opened. */
8
+ export declare const ACTIVATE_LINK = "activate-link";
6
9
  declare const AdwAboutDialog_base: ((abstract new (...args: any[]) => {
10
+ addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
11
+ removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
7
12
  connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
8
13
  disconnect(handlerId: number): void;
9
14
  emit(eventName: string, ...args: unknown[]): void;
@@ -50,10 +55,12 @@ declare const AdwAboutDialog_base: ((abstract new (...args: any[]) => {
50
55
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
51
56
  get focusable(): boolean;
52
57
  set focusable(value: boolean | string);
58
+ get focusOnClick(): boolean;
59
+ set focusOnClick(value: boolean | string);
60
+ get_focus_on_click(): boolean;
61
+ set_focus_on_click(focusOnClick: boolean): void;
53
62
  grab_focus(): boolean;
54
63
  _emit(eventName: string): void;
55
- addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
56
- removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
57
64
  notify<T extends EventData>(data: T): void;
58
65
  notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
59
66
  set(name: string, value: unknown): void;
@@ -64,37 +71,62 @@ declare const AdwAboutDialog_base: ((abstract new (...args: any[]) => {
64
71
  export declare class AdwAboutDialog extends AdwAboutDialog_base {
65
72
  static readonly GTypeName: string;
66
73
  protected readonly _card: StackLayout;
67
- protected readonly _iconLabel: Label;
74
+ protected readonly _appIcon: GtkImage;
68
75
  protected readonly _nameLabel: Label;
69
76
  protected readonly _versionLabel: Label;
70
77
  protected readonly _developerLabel: Label;
71
78
  protected readonly _commentsLabel: Label;
72
- protected readonly _websiteLabel: Label;
73
- protected readonly _copyrightLabel: Label;
79
+ protected readonly _websiteButton: Button;
80
+ protected readonly _supportButton: Button;
81
+ protected readonly _issueButton: Button;
82
+ protected readonly _creditsLabel: Label;
83
+ protected readonly _acknowledgementsLabel: Label;
84
+ protected readonly _legalLabel: Label;
74
85
  protected readonly _releaseNotesLabel: Label;
75
- protected readonly _linksLabel: Label;
86
+ protected readonly _linksBox: StackLayout;
76
87
  protected readonly _debugInfoLabel: Label;
88
+ protected readonly _copyButton: Button;
77
89
  private _applicationName;
78
90
  private _applicationIcon;
79
91
  private _developerName;
80
92
  private _version;
81
93
  private _comments;
82
94
  private _website;
95
+ private _supportUrl;
96
+ private _issueUrl;
83
97
  private _copyright;
98
+ private _licenseState;
99
+ private _developers;
100
+ private _designers;
101
+ private _artists;
102
+ private _documenters;
103
+ private _translatorCredits;
84
104
  private _releaseNotes;
85
105
  private _releaseNotesVersion;
86
106
  private _debugInfo;
87
107
  private _links;
108
+ private _creditSections;
109
+ private _acknowledgementSections;
110
+ private _legalSections;
88
111
  /** The What's New buffer; `version` alone never rebuilds it. */
89
112
  private _releaseNotesSegments;
90
113
  /** The window `present (parent)` mounted this in, so closing can take it back out. */
91
114
  private _host;
92
115
  constructor(props?: ConstructProps<AdwAboutDialog>);
93
116
  private _addCardLabel;
117
+ /** A link row: tapping it activates whatever URI the render last gave it. */
118
+ private _addLinkButton;
119
+ /**
120
+ * `activate-link`: emit with GTK's handled accumulator, then launch unless a handler
121
+ * returned true. A URI the host cannot launch is dropped, as a failed launch is.
122
+ */
123
+ private _activateLink;
124
+ /** Point a link button at `uri`; the tap handler is replaced, never stacked. */
125
+ private _setLink;
94
126
  /** The application name (bold, centered). */
95
127
  get applicationName(): string;
96
128
  set applicationName(value: string);
97
- /** A glyph standing in for the app icon (no icon-theme lookup in the NS subset). */
129
+ /** The icon name, drawn like any `Gtk.Image` icon name. */
98
130
  get applicationIcon(): string;
99
131
  set applicationIcon(value: string);
100
132
  /** The version string. */
@@ -106,12 +138,42 @@ export declare class AdwAboutDialog extends AdwAboutDialog_base {
106
138
  /** A short comments/description line. */
107
139
  get comments(): string;
108
140
  set comments(value: string);
109
- /** The website URL (plain text — not a tappable link in this subset). */
141
+ /** The website URL, a link button. */
110
142
  get website(): string;
111
143
  set website(value: string);
112
- /** The copyright line. */
144
+ /** The support-questions URL, a link button. */
145
+ get supportUrl(): string;
146
+ set supportUrl(value: string);
147
+ /** The issue-tracker URL, a link button. */
148
+ get issueUrl(): string;
149
+ set issueUrl(value: string);
150
+ /** The copyright line, the first part of the Legal text. */
113
151
  get copyright(): string;
114
152
  set copyright(value: string);
153
+ /** The custom licence text, `''` for a stock licence. */
154
+ get license(): string;
155
+ set license(value: string);
156
+ /**
157
+ * A `Gtk.License` value. A string from an XML attribute is an integer or a licence nick;
158
+ * anything outside `Gtk.License` is refused, as the C setter does.
159
+ */
160
+ get licenseType(): number;
161
+ set licenseType(value: number | string);
162
+ /** Names for the "Code by" credits; each line is `Name`, `Name <email>` or `Name https://url`. */
163
+ get developers(): string[];
164
+ set developers(value: string[]);
165
+ /** Names for the "Design by" credits. */
166
+ get designers(): string[];
167
+ set designers(value: string[]);
168
+ /** Names for the "Artwork by" credits. */
169
+ get artists(): string[];
170
+ set artists(value: string[]);
171
+ /** Names for the "Documentation by" credits. */
172
+ get documenters(): string[];
173
+ set documenters(value: string[]);
174
+ /** The translators, one per line; the untranslated gettext sentinel shows nothing. */
175
+ get translatorCredits(): string;
176
+ set translatorCredits(value: string);
115
177
  /** AppStream release-notes markup, shown as the What's New text. */
116
178
  get releaseNotes(): string;
117
179
  set releaseNotes(value: string);
@@ -123,11 +185,17 @@ export declare class AdwAboutDialog extends AdwAboutDialog_base {
123
185
  set debugInfo(value: string);
124
186
  /** `adw_about_dialog_add_link`: an extra link; `_` marks a mnemonic. */
125
187
  add_link(title: string, url: string): void;
188
+ /** `adw_about_dialog_add_credit_section`: a Credits block; `name` may be `null`. */
189
+ add_credit_section(name: string | null, people: string[]): void;
190
+ /** `adw_about_dialog_add_acknowledgement_section`: an Acknowledgements block. */
191
+ add_acknowledgement_section(name: string | null, people: string[]): void;
192
+ /** `adw_about_dialog_add_legal_section`: a Legal block. A `license_type` outside `Gtk.License` is refused. */
193
+ add_legal_section(title: string, copyright: string | null, license_type: number, license: string | null): void;
126
194
  /** `adw_about_dialog_new_from_appdata`, refused by name. */
127
195
  static new_from_appdata(_resourcePath: string, _releaseNotesVersion?: string | null): never;
128
196
  private _updateReleaseNotes;
129
197
  /**
130
- * Push the ten strings onto their labels, and COLLAPSE the ones with nothing
198
+ * Push the card's strings onto their labels, and COLLAPSE the ones with nothing
131
199
  * to say.
132
200
  *
133
201
  * Every label used to be unconditionally visible, so an about dialog without a
@@ -137,13 +205,13 @@ export declare class AdwAboutDialog extends AdwAboutDialog_base {
137
205
  * Same input, two different dialogs, and nothing said so.
138
206
  *
139
207
  * The core's record covers a nineteen-part dialog; this port is a flat card, so
140
- * it reads the parts it has. `copyright` is NOT one of them: upstream has no
141
- * copyright LABEL, it derives the string into the Legal page this port does not
142
- * build (`legalSectionVisible` takes it as a separate argument). It therefore
143
- * keeps the same non-empty rule directly. The website row is the core's
144
- * `websiteRow`, which is the flat-card equivalent here.
208
+ * it reads the parts it has. Upstream has no copyright label, it derives the string
209
+ * into the Legal page, so `copyright` reaches the card through `legalSections`. The
210
+ * website row is the core's `websiteRow`, which is the flat-card equivalent here.
145
211
  */
146
212
  private _render;
213
+ /** Copy Text: the debug info to the platform clipboard. A host without one keeps the text on screen. */
214
+ private _copyDebugInfo;
147
215
  /**
148
216
  * Reveal the about overlay — `adw_dialog_present`.
149
217
  *
@@ -2,9 +2,20 @@ import type { View } from '@nativescript/core';
2
2
  import { GridLayout, StackLayout, Label, type EventData } from '@nativescript/core';
3
3
  import { ActionRowState } from './row-state.js';
4
4
  import { type ConstructProps } from './construct-props.js';
5
+ import type { GObjectNotify } from './signals.js';
5
6
  /** Event name emitted when the row is activated. Mirrors `Adw.ActionRow::activated`. */
6
7
  export declare const ACTIVATED = "activated";
8
+ /** Event name emitted when {@link AdwActionRow.title} changes. */
9
+ export declare const NOTIFY_TITLE = "notify::title";
10
+ /** Event name emitted when {@link AdwActionRow.subtitle} changes. */
11
+ export declare const NOTIFY_SUBTITLE = "notify::subtitle";
12
+ /** Event name emitted when {@link AdwActionRow.iconName} changes. */
13
+ export declare const NOTIFY_ICON_NAME = "notify::icon-name";
14
+ /** Event name emitted when {@link AdwActionRow.activatable} changes. */
15
+ export declare const NOTIFY_ACTIVATABLE = "notify::activatable";
7
16
  declare const AdwActionRow_base: ((abstract new (...args: any[]) => {
17
+ addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
18
+ removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
8
19
  connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
9
20
  disconnect(handlerId: number): void;
10
21
  emit(eventName: string, ...args: unknown[]): void;
@@ -51,10 +62,12 @@ declare const AdwActionRow_base: ((abstract new (...args: any[]) => {
51
62
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
52
63
  get focusable(): boolean;
53
64
  set focusable(value: boolean | string);
65
+ get focusOnClick(): boolean;
66
+ set focusOnClick(value: boolean | string);
67
+ get_focus_on_click(): boolean;
68
+ set_focus_on_click(focusOnClick: boolean): void;
54
69
  grab_focus(): boolean;
55
70
  _emit(eventName: string): void;
56
- addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
57
- removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
58
71
  notify<T extends EventData>(data: T): void;
59
72
  notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
60
73
  set(name: string, value: unknown): void;
@@ -77,11 +90,33 @@ export declare class AdwActionRow extends AdwActionRow_base {
77
90
  * search behaves as GTK does.
78
91
  */
79
92
  readonly isActionRow: boolean;
93
+ /** The row title (column 1, top line). Empty collapses its label. */
94
+ title: string;
95
+ /**
96
+ * The row subtitle (column 1, dim second line). Empty collapses its label so it
97
+ * leaves no blank gap — `string_is_not_empty`, the rule the title follows too.
98
+ */
99
+ subtitle: string;
100
+ /**
101
+ * `AdwActionRow:icon-name` — an icon in the prefix slot, before the title.
102
+ *
103
+ * It TAKES that slot: setting it over a widget `add_prefix` put there replaces it, the same
104
+ * one-slot rule `add_prefix` applies to itself. The twin threw instead, which a declared
105
+ * property cannot (see the header).
106
+ */
107
+ iconName: string;
108
+ /** `GtkListBoxRow:activatable` — whether a tap activates this row at all. */
109
+ activatable: boolean;
110
+ /** `notify('title')` beside NativeScript's `notify({ eventName })` — see {@link GObjectNotify}. */
111
+ notify: GObjectNotify;
80
112
  /** The text/value column (column 1). */
81
113
  protected readonly _textStack: StackLayout;
82
114
  protected readonly _titleLabel: Label;
83
115
  protected readonly _subtitleLabel: Label;
84
- /** The headless labels + activatable-widget coupling (ADR 0004). */
116
+ /**
117
+ * The activatable-widget ↔ sensitivity binding (ADR 0004). No longer the labels' store:
118
+ * `title` and `subtitle` are the declared properties', and their change detection with them.
119
+ */
85
120
  protected readonly _rowState: ActionRowState<View>;
86
121
  private _prefix;
87
122
  private _iconImage;
@@ -103,24 +138,12 @@ export declare class AdwActionRow extends AdwActionRow_base {
103
138
  * `<div class="adw-entry-row-prefixes">` both put it first. `adwaita-web`'s own slot
104
139
  * binding already records the rule ("`addPrefix` PREPENDS, mirroring `gtk_box_prepend`");
105
140
  * this is the third renderer joining it.
141
+ *
142
+ * An icon {@link AdwActionRow.iconName} put there is displaced like any other prefix, and
143
+ * clearing the property is part of that — see `remove()`.
106
144
  */
107
145
  add_prefix(view: View): void;
108
- /**
109
- * `AdwActionRow:icon-name` — an icon in the prefix slot, before the title. It takes that slot,
110
- * so a row whose prefix was set with {@link add_prefix} refuses it rather than replace it.
111
- */
112
- get iconName(): string;
113
- set iconName(value: string | null);
114
146
  get prefix(): View | null;
115
- /** The row title (column 1, top line). */
116
- get title(): string;
117
- set title(value: string);
118
- /**
119
- * The row subtitle (column 1, dim second line). Empty collapses its label so it
120
- * leaves no blank gap — `string_is_not_empty`, the rule the title follows too.
121
- */
122
- get subtitle(): string;
123
- set subtitle(value: string);
124
147
  /** Install a suffix widget in column 2 — `adw_action_row_add_suffix`. Same one-slot rule as {@link add_prefix}. */
125
148
  add_suffix(view: View): void;
126
149
  /**
@@ -158,9 +181,6 @@ export declare class AdwActionRow extends AdwActionRow_base {
158
181
  set activatableWidget(widget: View | null);
159
182
  /** Re-read the activatable widget's sensitivity — the live half of the binding. */
160
183
  syncActivatableWidgetSensitivity(): void;
161
- /** `GtkListBoxRow:activatable` — whether a tap activates this row at all. */
162
- get activatable(): boolean;
163
- set activatable(value: boolean | string);
164
184
  /**
165
185
  * `adw_action_row_activate`: forward to the activatable widget, then emit
166
186
  * `activated`. A no-op while unactivatable, because a tap on a non-activatable
@@ -183,5 +203,14 @@ export declare class AdwActionRow extends AdwActionRow_base {
183
203
  protected _managesTitleVisibility: boolean;
184
204
  /** Push the derived label text + visibility onto the two `Label`s. */
185
205
  protected _applyLabels(): void;
206
+ /**
207
+ * Put the named icon in the prefix slot, or take it out again — the render half of
208
+ * `icon-name`, run from `notify::icon-name`.
209
+ *
210
+ * Everything that can refuse happens BEFORE the write reaches here: an unparseable value is
211
+ * the seam's throw, and there is nothing left for this to reject (see the header on why it
212
+ * could not throw anyway). `remove()` is what clears the field on the way out.
213
+ */
214
+ private _applyIconName;
186
215
  }
187
216
  export {};
@@ -5,6 +5,8 @@ import { type ConstructProps } from './construct-props.js';
5
5
  export { AdwAlertResponses } from '@gjsify/adwaita-core';
6
6
  export type { AdwAlertResponse, AdwResponseAppearance, AdwResponseOptions, OrderedConfirmResponses, } from '@gjsify/adwaita-core';
7
7
  declare const AdwAlertDialog_base: ((abstract new (...args: any[]) => {
8
+ addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
9
+ removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
8
10
  connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
9
11
  disconnect(handlerId: number): void;
10
12
  emit(eventName: string, ...args: unknown[]): void;
@@ -51,10 +53,12 @@ declare const AdwAlertDialog_base: ((abstract new (...args: any[]) => {
51
53
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
52
54
  get focusable(): boolean;
53
55
  set focusable(value: boolean | string);
56
+ get focusOnClick(): boolean;
57
+ set focusOnClick(value: boolean | string);
58
+ get_focus_on_click(): boolean;
59
+ set_focus_on_click(focusOnClick: boolean): void;
54
60
  grab_focus(): boolean;
55
61
  _emit(eventName: string): void;
56
- addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
57
- removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
58
62
  notify<T extends EventData>(data: T): void;
59
63
  notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
60
64
  set(name: string, value: unknown): void;
@@ -8,6 +8,8 @@ export declare const DEFAULT_AVATAR_SIZE = 48;
8
8
  export { avatarColor, avatarInitials };
9
9
  export { AVATAR_DEFAULT_ICON };
10
10
  declare const AdwAvatar_base: ((abstract new (...args: any[]) => {
11
+ addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
12
+ removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
11
13
  connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => unknown): number;
12
14
  disconnect(handlerId: number): void;
13
15
  emit(eventName: string, ...args: unknown[]): void;
@@ -54,10 +56,12 @@ declare const AdwAvatar_base: ((abstract new (...args: any[]) => {
54
56
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
55
57
  get focusable(): boolean;
56
58
  set focusable(value: boolean | string);
59
+ get focusOnClick(): boolean;
60
+ set focusOnClick(value: boolean | string);
61
+ get_focus_on_click(): boolean;
62
+ set_focus_on_click(focusOnClick: boolean): void;
57
63
  grab_focus(): boolean;
58
64
  _emit(eventName: string): void;
59
- addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
60
- removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
61
65
  notify<T extends import("@nativescript/core").EventData>(data: T): void;
62
66
  notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
63
67
  set(name: string, value: unknown): void;
@@ -4,6 +4,8 @@ import { type ConstructProps } from './construct-props.js';
4
4
  /** Event name emitted when the banner's action button is tapped. */
5
5
  export declare const BUTTON_CLICKED = "buttonClicked";
6
6
  declare const AdwBanner_base: ((abstract new (...args: any[]) => {
7
+ addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
8
+ removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
7
9
  connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
8
10
  disconnect(handlerId: number): void;
9
11
  emit(eventName: string, ...args: unknown[]): void;
@@ -50,10 +52,12 @@ declare const AdwBanner_base: ((abstract new (...args: any[]) => {
50
52
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
51
53
  get focusable(): boolean;
52
54
  set focusable(value: boolean | string);
55
+ get focusOnClick(): boolean;
56
+ set focusOnClick(value: boolean | string);
57
+ get_focus_on_click(): boolean;
58
+ set_focus_on_click(focusOnClick: boolean): void;
53
59
  grab_focus(): boolean;
54
60
  _emit(eventName: string): void;
55
- addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
56
- removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
57
61
  notify<T extends EventData>(data: T): void;
58
62
  notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
59
63
  set(name: string, value: unknown): void;
@@ -15,6 +15,8 @@ export declare const NOTIFY_MODAL = "notify::modal";
15
15
  export declare function bottomSheetPanel(sheet: AdwBottomSheet): View;
16
16
  export type { NotifyOpenEventData };
17
17
  declare const AdwBottomSheet_base: ((abstract new (...args: any[]) => {
18
+ addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
19
+ removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
18
20
  connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
19
21
  disconnect(handlerId: number): void;
20
22
  emit(eventName: string, ...args: unknown[]): void;
@@ -61,10 +63,12 @@ declare const AdwBottomSheet_base: ((abstract new (...args: any[]) => {
61
63
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
62
64
  get focusable(): boolean;
63
65
  set focusable(value: boolean | string);
66
+ get focusOnClick(): boolean;
67
+ set focusOnClick(value: boolean | string);
68
+ get_focus_on_click(): boolean;
69
+ set_focus_on_click(focusOnClick: boolean): void;
64
70
  grab_focus(): boolean;
65
71
  _emit(eventName: string): void;
66
- addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
67
- removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
68
72
  notify<T extends EventData>(data: T): void;
69
73
  notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
70
74
  set(name: string, value: unknown): void;
@@ -3,6 +3,8 @@ import type { ButtonContentEllipsize } from '@gjsify/adwaita-core';
3
3
  import { GtkImage } from './gtk-image.js';
4
4
  import { type ConstructProps } from './construct-props.js';
5
5
  declare const AdwButtonContent_base: ((abstract new (...args: any[]) => {
6
+ addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
7
+ removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
6
8
  connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => unknown): number;
7
9
  disconnect(handlerId: number): void;
8
10
  emit(eventName: string, ...args: unknown[]): void;
@@ -49,10 +51,12 @@ declare const AdwButtonContent_base: ((abstract new (...args: any[]) => {
49
51
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
50
52
  get focusable(): boolean;
51
53
  set focusable(value: boolean | string);
54
+ get focusOnClick(): boolean;
55
+ set focusOnClick(value: boolean | string);
56
+ get_focus_on_click(): boolean;
57
+ set_focus_on_click(focusOnClick: boolean): void;
52
58
  grab_focus(): boolean;
53
59
  _emit(eventName: string): void;
54
- addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
55
- removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
56
60
  notify<T extends import("@nativescript/core").EventData>(data: T): void;
57
61
  notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
58
62
  set(name: string, value: unknown): void;
@@ -18,6 +18,8 @@ export interface PageChangedEventData extends EventData {
18
18
  index: number;
19
19
  }
20
20
  declare const AdwCarousel_base: ((abstract new (...args: any[]) => {
21
+ addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
22
+ removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
21
23
  connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
22
24
  disconnect(handlerId: number): void;
23
25
  emit(eventName: string, ...args: unknown[]): void;
@@ -64,10 +66,12 @@ declare const AdwCarousel_base: ((abstract new (...args: any[]) => {
64
66
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
65
67
  get focusable(): boolean;
66
68
  set focusable(value: boolean | string);
69
+ get focusOnClick(): boolean;
70
+ set focusOnClick(value: boolean | string);
71
+ get_focus_on_click(): boolean;
72
+ set_focus_on_click(focusOnClick: boolean): void;
67
73
  grab_focus(): boolean;
68
74
  _emit(eventName: string): void;
69
- addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
70
- removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
71
75
  notify<T extends EventData>(data: T): void;
72
76
  notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
73
77
  set(name: string, value: unknown): void;
@@ -4,6 +4,8 @@ import { DEFAULT_CLAMP_MAX_SIZE, DEFAULT_CLAMP_TIGHTENING_THRESHOLD } from './ch
4
4
  import { type ConstructProps } from './construct-props.js';
5
5
  export { DEFAULT_CLAMP_MAX_SIZE, DEFAULT_CLAMP_TIGHTENING_THRESHOLD };
6
6
  declare const AdwClamp_base: ((abstract new (...args: any[]) => {
7
+ addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
8
+ removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
7
9
  connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => unknown): number;
8
10
  disconnect(handlerId: number): void;
9
11
  emit(eventName: string, ...args: unknown[]): void;
@@ -50,10 +52,12 @@ declare const AdwClamp_base: ((abstract new (...args: any[]) => {
50
52
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
51
53
  get focusable(): boolean;
52
54
  set focusable(value: boolean | string);
55
+ get focusOnClick(): boolean;
56
+ set focusOnClick(value: boolean | string);
57
+ get_focus_on_click(): boolean;
58
+ set_focus_on_click(focusOnClick: boolean): void;
53
59
  grab_focus(): boolean;
54
60
  _emit(eventName: string): void;
55
- addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
56
- removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
57
61
  notify<T extends import("@nativescript/core").EventData>(data: T): void;
58
62
  notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
59
63
  set(name: string, value: unknown): void;
@@ -10,6 +10,8 @@ export interface RowActivatedEventData extends EventData {
10
10
  row: AdwDataGridRow;
11
11
  }
12
12
  declare const AdwDataGrid_base: ((abstract new (...args: any[]) => {
13
+ addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
14
+ removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
13
15
  connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
14
16
  disconnect(handlerId: number): void;
15
17
  emit(eventName: string, ...args: unknown[]): void;
@@ -56,10 +58,12 @@ declare const AdwDataGrid_base: ((abstract new (...args: any[]) => {
56
58
  insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
57
59
  get focusable(): boolean;
58
60
  set focusable(value: boolean | string);
61
+ get focusOnClick(): boolean;
62
+ set focusOnClick(value: boolean | string);
63
+ get_focus_on_click(): boolean;
64
+ set_focus_on_click(focusOnClick: boolean): void;
59
65
  grab_focus(): boolean;
60
66
  _emit(eventName: string): void;
61
- addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
62
- removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
63
67
  notify<T extends EventData>(data: T): void;
64
68
  notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
65
69
  set(name: string, value: unknown): void;