@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.
- package/lib/esm/index.js +1 -1
- package/lib/esm/language-host.js +1 -0
- package/lib/esm/language-source.android.js +1 -0
- package/lib/esm/language-source.ios.js +1 -0
- package/lib/esm/language-source.js +1 -0
- package/lib/esm/namespace/adw.js +1 -1
- package/lib/esm/namespace/glib.js +1 -1
- package/lib/esm/namespace/gobject.js +1 -1
- package/lib/esm/widgets/adw-about-dialog.js +7 -2
- package/lib/esm/widgets/adw-action-row.js +1 -1
- package/lib/esm/widgets/adw-button-row.js +1 -1
- package/lib/esm/widgets/adw-dialog.js +1 -1
- package/lib/esm/widgets/adw-preferences-dialog.js +1 -1
- package/lib/esm/widgets/adw-preferences-group.js +1 -1
- package/lib/esm/widgets/adw-preferences-page.js +1 -1
- package/lib/esm/widgets/adw-spinner.js +1 -1
- package/lib/esm/widgets/adw-switch-row.js +1 -1
- package/lib/esm/widgets/adw-window-title.js +1 -1
- package/lib/esm/widgets/gtk-check-button.js +1 -1
- package/lib/esm/widgets/index.js +1 -1
- package/lib/esm/widgets/signals.js +1 -1
- package/lib/esm/widgets/style-manager-host.js +1 -0
- package/lib/esm/widgets/style-manager.js +1 -1
- package/lib/esm/widgets/widget-layout.js +1 -1
- package/lib/esm/widgets/window-state.js +1 -1
- package/lib/types/about-dialog-credits.spec.d.ts +1 -0
- package/lib/types/about-dialog-links.spec.d.ts +1 -0
- package/lib/types/action-row-properties.spec.d.ts +2 -0
- package/lib/types/index.d.ts +1 -1
- package/lib/types/language-host.d.ts +3 -0
- package/lib/types/language-source.android.d.ts +1 -0
- package/lib/types/language-source.d.ts +1 -0
- package/lib/types/language-source.ios.d.ts +1 -0
- package/lib/types/namespace/adw.d.ts +1 -1
- package/lib/types/namespace/glib.d.ts +4 -2
- package/lib/types/signals-gobject.spec.d.ts +2 -0
- package/lib/types/signals.spec.d.ts +24 -0
- package/lib/types/spinner-properties.spec.d.ts +2 -0
- package/lib/types/switch-row-properties.spec.d.ts +2 -0
- package/lib/types/testing/ns-core.d.mts +6 -0
- package/lib/types/widgets/adw-about-dialog.d.ts +84 -16
- package/lib/types/widgets/adw-action-row.d.ts +50 -21
- package/lib/types/widgets/adw-alert-dialog.d.ts +6 -2
- package/lib/types/widgets/adw-avatar.d.ts +6 -2
- package/lib/types/widgets/adw-banner.d.ts +6 -2
- package/lib/types/widgets/adw-bottom-sheet.d.ts +6 -2
- package/lib/types/widgets/adw-button-content.d.ts +6 -2
- package/lib/types/widgets/adw-carousel.d.ts +6 -2
- package/lib/types/widgets/adw-clamp.d.ts +6 -2
- package/lib/types/widgets/adw-data-grid.d.ts +6 -2
- package/lib/types/widgets/adw-dialog.d.ts +8 -1
- package/lib/types/widgets/adw-header-bar.d.ts +6 -2
- package/lib/types/widgets/adw-image-button.d.ts +6 -2
- package/lib/types/widgets/adw-navigation-page.d.ts +6 -2
- package/lib/types/widgets/adw-navigation-view.d.ts +6 -2
- package/lib/types/widgets/adw-preferences-dialog.d.ts +15 -82
- package/lib/types/widgets/adw-preferences-group.d.ts +25 -2
- package/lib/types/widgets/adw-preferences-page.d.ts +26 -2
- package/lib/types/widgets/adw-shortcut-label.d.ts +6 -2
- package/lib/types/widgets/adw-sidebar.d.ts +6 -2
- package/lib/types/widgets/adw-slider-row.d.ts +6 -2
- package/lib/types/widgets/adw-spinner.d.ts +24 -16
- package/lib/types/widgets/adw-split-button.d.ts +6 -2
- package/lib/types/widgets/adw-status-page.d.ts +6 -2
- package/lib/types/widgets/adw-switch-row.d.ts +25 -20
- package/lib/types/widgets/adw-tab-view.d.ts +6 -2
- package/lib/types/widgets/adw-toast-overlay.d.ts +6 -2
- package/lib/types/widgets/adw-toggle-group.d.ts +6 -2
- package/lib/types/widgets/adw-toggle.d.ts +6 -2
- package/lib/types/widgets/adw-toolbar-view.d.ts +6 -2
- package/lib/types/widgets/adw-view-stack.d.ts +6 -2
- package/lib/types/widgets/adw-view-switcher-bar.d.ts +6 -2
- package/lib/types/widgets/adw-window-title.d.ts +16 -12
- package/lib/types/widgets/adw-wrap-box.d.ts +6 -2
- package/lib/types/widgets/carousel-indicator-base.d.ts +6 -2
- package/lib/types/widgets/gtk-action-bar.d.ts +6 -2
- package/lib/types/widgets/gtk-button.d.ts +6 -2
- package/lib/types/widgets/gtk-check-button.d.ts +10 -1
- package/lib/types/widgets/gtk-drop-down.d.ts +6 -2
- package/lib/types/widgets/gtk-entry.d.ts +6 -2
- package/lib/types/widgets/gtk-image.d.ts +6 -2
- package/lib/types/widgets/gtk-label.d.ts +6 -2
- package/lib/types/widgets/gtk-popover-menu.d.ts +6 -2
- package/lib/types/widgets/gtk-stack.d.ts +6 -2
- package/lib/types/widgets/gtk-text-view.d.ts +6 -2
- package/lib/types/widgets/index.d.ts +0 -1
- package/lib/types/widgets/signals.d.ts +69 -3
- package/lib/types/widgets/split-view-base.d.ts +6 -2
- package/lib/types/widgets/stack-page.d.ts +6 -2
- package/lib/types/widgets/style-manager-host.d.ts +2 -0
- package/lib/types/widgets/style-manager.d.ts +14 -1
- package/lib/types/widgets/styled-layout-base.d.ts +6 -2
- package/lib/types/widgets/view-stack-page.d.ts +6 -2
- package/lib/types/widgets/view-switcher-base.d.ts +6 -2
- package/lib/types/widgets/widget-layout.d.ts +4 -0
- package/lib/types/widgets/window-state.d.ts +26 -0
- package/lib/types/window-title-properties.spec.d.ts +2 -0
- package/package.json +14 -13
- package/src/testing/ns-core.mts +20 -0
- package/src/theme/adwaita.css +31 -4
|
@@ -21,6 +21,8 @@ export declare class AdwDialog extends AdwSingleChildBase {
|
|
|
21
21
|
private _presentationMode;
|
|
22
22
|
/** The window `present (parent)` mounted this in, so closing can take it back out. */
|
|
23
23
|
private _host;
|
|
24
|
+
/** The window size the card was last laid out against, in DIP; `null` before a layout. */
|
|
25
|
+
private _available;
|
|
24
26
|
constructor(props?: ConstructProps<AdwDialog>);
|
|
25
27
|
protected get _ownClass(): string;
|
|
26
28
|
protected _adopt(view: View): void;
|
|
@@ -58,6 +60,11 @@ export declare class AdwDialog extends AdwSingleChildBase {
|
|
|
58
60
|
close(): void;
|
|
59
61
|
/** `adw_dialog_force_close` — closes whatever `can-close` says. */
|
|
60
62
|
force_close(): void;
|
|
61
|
-
/**
|
|
63
|
+
/**
|
|
64
|
+
* Re-read the window size after a layout pass. Guarded on a real change: re-sizing the
|
|
65
|
+
* card schedules another pass, which lands here again.
|
|
66
|
+
*/
|
|
67
|
+
private _measureWindow;
|
|
68
|
+
/** The card's size and place, from `content-*`, `presentation-mode` and the window size. */
|
|
62
69
|
private _layoutCard;
|
|
63
70
|
}
|
|
@@ -2,6 +2,8 @@ import type { View } from '@nativescript/core';
|
|
|
2
2
|
import { GridLayout, StackLayout } from '@nativescript/core';
|
|
3
3
|
import { type ConstructProps } from './construct-props.js';
|
|
4
4
|
declare const AdwHeaderBar_base: ((abstract new (...args: any[]) => {
|
|
5
|
+
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
6
|
+
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
5
7
|
connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => unknown): number;
|
|
6
8
|
disconnect(handlerId: number): void;
|
|
7
9
|
emit(eventName: string, ...args: unknown[]): void;
|
|
@@ -48,10 +50,12 @@ declare const AdwHeaderBar_base: ((abstract new (...args: any[]) => {
|
|
|
48
50
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
49
51
|
get focusable(): boolean;
|
|
50
52
|
set focusable(value: boolean | string);
|
|
53
|
+
get focusOnClick(): boolean;
|
|
54
|
+
set focusOnClick(value: boolean | string);
|
|
55
|
+
get_focus_on_click(): boolean;
|
|
56
|
+
set_focus_on_click(focusOnClick: boolean): void;
|
|
51
57
|
grab_focus(): boolean;
|
|
52
58
|
_emit(eventName: string): void;
|
|
53
|
-
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
54
|
-
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
55
59
|
notify<T extends import("@nativescript/core").EventData>(data: T): void;
|
|
56
60
|
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
57
61
|
set(name: string, value: unknown): void;
|
|
@@ -12,6 +12,8 @@ import { type ConstructProps } from './construct-props.js';
|
|
|
12
12
|
*/
|
|
13
13
|
export declare const DEFAULT_ICON_BUTTON_ICON_SIZE: number;
|
|
14
14
|
declare const AdwImageButton_base: ((abstract new (...args: any[]) => {
|
|
15
|
+
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
16
|
+
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
15
17
|
connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => unknown): number;
|
|
16
18
|
disconnect(handlerId: number): void;
|
|
17
19
|
emit(eventName: string, ...args: unknown[]): void;
|
|
@@ -58,10 +60,12 @@ declare const AdwImageButton_base: ((abstract new (...args: any[]) => {
|
|
|
58
60
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
59
61
|
get focusable(): boolean;
|
|
60
62
|
set focusable(value: boolean | string);
|
|
63
|
+
get focusOnClick(): boolean;
|
|
64
|
+
set focusOnClick(value: boolean | string);
|
|
65
|
+
get_focus_on_click(): boolean;
|
|
66
|
+
set_focus_on_click(focusOnClick: boolean): void;
|
|
61
67
|
grab_focus(): boolean;
|
|
62
68
|
_emit(eventName: string): void;
|
|
63
|
-
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
64
|
-
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
65
69
|
notify<T extends import("@nativescript/core").EventData>(data: T): void;
|
|
66
70
|
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
67
71
|
set(name: string, value: unknown): void;
|
|
@@ -8,6 +8,8 @@ export interface NavigationPageOwner {
|
|
|
8
8
|
setPageCanPop(view: View, canPop: boolean): boolean;
|
|
9
9
|
}
|
|
10
10
|
declare const AdwNavigationPage_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 AdwNavigationPage_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;
|
|
@@ -15,6 +15,8 @@ export interface AdwNavigationEventData extends EventData {
|
|
|
15
15
|
/** Payload of the `notify::visible-page` event. */
|
|
16
16
|
export type NotifyVisiblePageEventData = AdwNavigationEventData;
|
|
17
17
|
declare const AdwNavigationView_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 AdwNavigationView_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;
|
|
@@ -1,86 +1,27 @@
|
|
|
1
1
|
import type { View } from '@nativescript/core';
|
|
2
|
-
import { GridLayout, Label
|
|
2
|
+
import { GridLayout, Label } from '@nativescript/core';
|
|
3
3
|
import type { SearchPreferencesOptions } from '@gjsify/adwaita-core';
|
|
4
|
+
import { AdwDialog } from './adw-dialog.js';
|
|
4
5
|
import { type NsPreferencesSearchResult, type NsSearchablePage } from './preferences-search.js';
|
|
5
6
|
import { type ConstructProps } from './construct-props.js';
|
|
6
7
|
/** Event name emitted when the dialog is closed. */
|
|
7
8
|
export declare const CLOSED = "closed";
|
|
8
|
-
declare
|
|
9
|
-
connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
|
|
10
|
-
disconnect(handlerId: number): void;
|
|
11
|
-
emit(eventName: string, ...args: unknown[]): void;
|
|
12
|
-
get_property(name: string): unknown;
|
|
13
|
-
set_property(name: string, value: unknown): void;
|
|
14
|
-
get halign(): string;
|
|
15
|
-
set halign(value: string | number);
|
|
16
|
-
get valign(): string;
|
|
17
|
-
set valign(value: string | number);
|
|
18
|
-
get hexpand(): boolean;
|
|
19
|
-
set hexpand(value: boolean | string);
|
|
20
|
-
get vexpand(): boolean;
|
|
21
|
-
set vexpand(value: boolean | string);
|
|
22
|
-
get marginStart(): number;
|
|
23
|
-
set marginStart(value: number | string);
|
|
24
|
-
get marginEnd(): number;
|
|
25
|
-
set marginEnd(value: number | string);
|
|
26
|
-
get visible(): boolean;
|
|
27
|
-
set visible(value: boolean | string);
|
|
28
|
-
get sensitive(): boolean;
|
|
29
|
-
set sensitive(value: boolean | string);
|
|
30
|
-
get name(): string;
|
|
31
|
-
set name(value: string | null);
|
|
32
|
-
get tooltipText(): string;
|
|
33
|
-
set tooltipText(value: string);
|
|
34
|
-
get tooltip_text(): string;
|
|
35
|
-
set tooltip_text(value: string);
|
|
36
|
-
get widthRequest(): number;
|
|
37
|
-
set widthRequest(value: number | string);
|
|
38
|
-
get heightRequest(): number;
|
|
39
|
-
set heightRequest(value: number | string);
|
|
40
|
-
get_visible(): boolean;
|
|
41
|
-
set_visible(visible: boolean): void;
|
|
42
|
-
get_mapped(): boolean;
|
|
43
|
-
get_tooltip_text(): string;
|
|
44
|
-
set_tooltip_text(text: string): void;
|
|
45
|
-
set_direction(direction: number): void;
|
|
46
|
-
get_direction(): number;
|
|
47
|
-
get_first_child(): object | null;
|
|
48
|
-
get_last_child(): object | null;
|
|
49
|
-
get_next_sibling(): object | null;
|
|
50
|
-
get_prev_sibling(): object | null;
|
|
51
|
-
get_parent(): object | null;
|
|
52
|
-
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
53
|
-
get focusable(): boolean;
|
|
54
|
-
set focusable(value: boolean | string);
|
|
55
|
-
grab_focus(): boolean;
|
|
56
|
-
_emit(eventName: string): void;
|
|
57
|
-
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
58
|
-
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
59
|
-
notify<T extends EventData>(data: T): void;
|
|
60
|
-
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
61
|
-
set(name: string, value: unknown): void;
|
|
62
|
-
get(name: string): unknown;
|
|
63
|
-
}) & {
|
|
64
|
-
readonly emittedSignals: readonly string[];
|
|
65
|
-
}) & typeof GridLayout;
|
|
66
|
-
export declare class AdwPreferencesDialog extends AdwPreferencesDialog_base {
|
|
9
|
+
export declare class AdwPreferencesDialog extends AdwDialog {
|
|
67
10
|
static readonly GTypeName: string;
|
|
68
|
-
protected readonly _card: GridLayout;
|
|
69
11
|
protected readonly _headerBox: GridLayout;
|
|
70
12
|
protected readonly _titleLabel: Label;
|
|
71
|
-
protected readonly _body:
|
|
72
|
-
/** The window `present (parent)` mounted this in, so closing can take it back out. */
|
|
73
|
-
private _host;
|
|
13
|
+
protected readonly _body: GridLayout;
|
|
74
14
|
constructor(props?: ConstructProps<AdwPreferencesDialog>);
|
|
75
|
-
|
|
15
|
+
protected get _ownClass(): string;
|
|
16
|
+
/** `AdwDialog:title`, shown in the header. */
|
|
76
17
|
get title(): string;
|
|
77
|
-
set title(value: string);
|
|
18
|
+
set title(value: string | null);
|
|
78
19
|
/** Add an `AdwPreferencesPage` (or any view) to the dialog body. */
|
|
79
20
|
add(view: View): void;
|
|
80
21
|
/**
|
|
81
|
-
* An XML child is a page in the dialog BODY, not
|
|
82
|
-
*
|
|
83
|
-
*
|
|
22
|
+
* An XML child is a page in the dialog BODY, not the dialog's `child` — which is
|
|
23
|
+
* where `AdwDialog`'s inherited `_addChildFromBuilder` would have put it, in place of
|
|
24
|
+
* the header and the body.
|
|
84
25
|
*/
|
|
85
26
|
_addChildFromBuilder(_name: string, view: View): void;
|
|
86
27
|
/** Remove a previously-added page from the body. */
|
|
@@ -101,19 +42,11 @@ export declare class AdwPreferencesDialog extends AdwPreferencesDialog_base {
|
|
|
101
42
|
* keeps a results list populated before the user types.
|
|
102
43
|
*/
|
|
103
44
|
search(query: string, options?: SearchPreferencesOptions): NsPreferencesSearchResult[];
|
|
104
|
-
/**
|
|
105
|
-
* Reveal the preferences overlay — `adw_dialog_present`.
|
|
106
|
-
*
|
|
107
|
-
* With a `parent` it is hosted in that widget's window like every other AdwDialog, so the
|
|
108
|
-
* window's back handling closes it first. Without one it must already sit in a layout.
|
|
109
|
-
*/
|
|
110
|
-
present(parent?: View | null): void;
|
|
111
|
-
/** Hide the preferences overlay, take it out of its window and emit `closed`. */
|
|
112
|
-
close(): void;
|
|
113
|
-
/** Whether the dialog is currently shown. */
|
|
45
|
+
/** Whether the dialog is currently shown; writing it presents or closes. */
|
|
114
46
|
get open(): boolean;
|
|
115
47
|
set open(value: boolean | string);
|
|
116
|
-
/** The
|
|
117
|
-
get body():
|
|
48
|
+
/** The body that hosts the preferences pages. */
|
|
49
|
+
get body(): GridLayout;
|
|
50
|
+
/** One star row per page, in add order. */
|
|
51
|
+
private _layoutBody;
|
|
118
52
|
}
|
|
119
|
-
export {};
|
|
@@ -2,7 +2,10 @@ import type { View } from '@nativescript/core';
|
|
|
2
2
|
import { GridLayout, Label, StackLayout } from '@nativescript/core';
|
|
3
3
|
import type { NsSearchableGroup, NsSearchableRow } from './preferences-search.js';
|
|
4
4
|
import { type ConstructProps } from './construct-props.js';
|
|
5
|
+
import { type AdwStyleClassesInput } from './style-classes.js';
|
|
5
6
|
declare const AdwPreferencesGroup_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;
|
|
6
9
|
connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => unknown): number;
|
|
7
10
|
disconnect(handlerId: number): void;
|
|
8
11
|
emit(eventName: string, ...args: unknown[]): void;
|
|
@@ -49,10 +52,12 @@ declare const AdwPreferencesGroup_base: ((abstract new (...args: any[]) => {
|
|
|
49
52
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
50
53
|
get focusable(): boolean;
|
|
51
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;
|
|
52
59
|
grab_focus(): boolean;
|
|
53
60
|
_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
61
|
notify<T extends import("@nativescript/core").EventData>(data: T): void;
|
|
57
62
|
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
58
63
|
set(name: string, value: unknown): void;
|
|
@@ -77,6 +82,7 @@ export declare class AdwPreferencesGroup extends AdwPreferencesGroup_base implem
|
|
|
77
82
|
private _title;
|
|
78
83
|
private _description;
|
|
79
84
|
private _headerSuffix;
|
|
85
|
+
private readonly _classList;
|
|
80
86
|
constructor(props?: ConstructProps<AdwPreferencesGroup>);
|
|
81
87
|
/**
|
|
82
88
|
* The group title (dim, uppercase header above the boxed list).
|
|
@@ -152,5 +158,22 @@ export declare class AdwPreferencesGroup extends AdwPreferencesGroup_base implem
|
|
|
152
158
|
private _setFlushTop;
|
|
153
159
|
/** The boxed-list container (column of rows). */
|
|
154
160
|
get listbox(): StackLayout;
|
|
161
|
+
/**
|
|
162
|
+
* `GtkWidget:css-classes`, spelled `styleClasses` (`style-classes.ts`). Learn6502's colour groups
|
|
163
|
+
* are `css-classes: ["custom-color-group"]`.
|
|
164
|
+
*/
|
|
165
|
+
get styleClasses(): string[];
|
|
166
|
+
set styleClasses(value: AdwStyleClassesInput);
|
|
167
|
+
/** `gtk_widget_add_css_class`. */
|
|
168
|
+
add_css_class(name: string): void;
|
|
169
|
+
/** `gtk_widget_remove_css_class`. */
|
|
170
|
+
remove_css_class(name: string): void;
|
|
171
|
+
/** `gtk_widget_has_css_class`. */
|
|
172
|
+
has_css_class(name: string): boolean;
|
|
173
|
+
/** `gtk_widget_get_css_classes` — the list, without the widget's own class. */
|
|
174
|
+
get_css_classes(): string[];
|
|
175
|
+
/** `gtk_widget_set_css_classes` — REPLACES the list. */
|
|
176
|
+
set_css_classes(names: readonly string[]): void;
|
|
177
|
+
private _restyle;
|
|
155
178
|
}
|
|
156
179
|
export {};
|
|
@@ -2,7 +2,10 @@ import type { View } from '@nativescript/core';
|
|
|
2
2
|
import { ScrollView, StackLayout } from '@nativescript/core';
|
|
3
3
|
import type { NsSearchableGroup, NsSearchablePage } from './preferences-search.js';
|
|
4
4
|
import { type ConstructProps } from './construct-props.js';
|
|
5
|
+
import { type AdwStyleClassesInput } from './style-classes.js';
|
|
5
6
|
declare const AdwPreferencesPage_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;
|
|
6
9
|
connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => unknown): number;
|
|
7
10
|
disconnect(handlerId: number): void;
|
|
8
11
|
emit(eventName: string, ...args: unknown[]): void;
|
|
@@ -49,10 +52,12 @@ declare const AdwPreferencesPage_base: ((abstract new (...args: any[]) => {
|
|
|
49
52
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
50
53
|
get focusable(): boolean;
|
|
51
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;
|
|
52
59
|
grab_focus(): boolean;
|
|
53
60
|
_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
61
|
notify<T extends import("@nativescript/core").EventData>(data: T): void;
|
|
57
62
|
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
58
63
|
set(name: string, value: unknown): void;
|
|
@@ -84,6 +89,7 @@ export declare class AdwPreferencesPage extends AdwPreferencesPage_base implemen
|
|
|
84
89
|
private _name;
|
|
85
90
|
private _iconName;
|
|
86
91
|
private _useUnderline;
|
|
92
|
+
private readonly _classList;
|
|
87
93
|
constructor(props?: ConstructProps<AdwPreferencesPage>);
|
|
88
94
|
/**
|
|
89
95
|
* `AdwPreferencesPage:title` — shown by a view switcher and by the search
|
|
@@ -123,5 +129,23 @@ export declare class AdwPreferencesPage extends AdwPreferencesPage_base implemen
|
|
|
123
129
|
searchGroups(): readonly NsSearchableGroup[];
|
|
124
130
|
/** The vertical content stack holding the groups. */
|
|
125
131
|
get groups(): StackLayout;
|
|
132
|
+
/**
|
|
133
|
+
* `GtkWidget:css-classes`, spelled `styleClasses` (`style-classes.ts`). A `.blp` scopes a page's
|
|
134
|
+
* CSS with `css-classes: ["appearance-page"]`, and the shared-tree builder refuses a class
|
|
135
|
+
* the widget has no door for.
|
|
136
|
+
*/
|
|
137
|
+
get styleClasses(): string[];
|
|
138
|
+
set styleClasses(value: AdwStyleClassesInput);
|
|
139
|
+
/** `gtk_widget_add_css_class`. */
|
|
140
|
+
add_css_class(name: string): void;
|
|
141
|
+
/** `gtk_widget_remove_css_class`. */
|
|
142
|
+
remove_css_class(name: string): void;
|
|
143
|
+
/** `gtk_widget_has_css_class`. */
|
|
144
|
+
has_css_class(name: string): boolean;
|
|
145
|
+
/** `gtk_widget_get_css_classes` — the list, without the widget's own class. */
|
|
146
|
+
get_css_classes(): string[];
|
|
147
|
+
/** `gtk_widget_set_css_classes` — REPLACES the list. */
|
|
148
|
+
set_css_classes(names: readonly string[]): void;
|
|
149
|
+
private _restyle;
|
|
126
150
|
}
|
|
127
151
|
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { StackLayout } from '@nativescript/core';
|
|
2
2
|
import { type ConstructProps } from './construct-props.js';
|
|
3
3
|
declare const AdwShortcutLabel_base: ((abstract new (...args: any[]) => {
|
|
4
|
+
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
5
|
+
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
4
6
|
connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => unknown): number;
|
|
5
7
|
disconnect(handlerId: number): void;
|
|
6
8
|
emit(eventName: string, ...args: unknown[]): void;
|
|
@@ -47,10 +49,12 @@ declare const AdwShortcutLabel_base: ((abstract new (...args: any[]) => {
|
|
|
47
49
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
48
50
|
get focusable(): boolean;
|
|
49
51
|
set focusable(value: boolean | string);
|
|
52
|
+
get focusOnClick(): boolean;
|
|
53
|
+
set focusOnClick(value: boolean | string);
|
|
54
|
+
get_focus_on_click(): boolean;
|
|
55
|
+
set_focus_on_click(focusOnClick: boolean): void;
|
|
50
56
|
grab_focus(): boolean;
|
|
51
57
|
_emit(eventName: string): void;
|
|
52
|
-
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
53
|
-
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
54
58
|
notify<T extends import("@nativescript/core").EventData>(data: T): void;
|
|
55
59
|
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
56
60
|
set(name: string, value: unknown): void;
|
|
@@ -27,6 +27,8 @@ export interface SidebarActivatedEventData extends EventData {
|
|
|
27
27
|
title: string;
|
|
28
28
|
}
|
|
29
29
|
declare const AdwSidebar_base: ((abstract new (...args: any[]) => {
|
|
30
|
+
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
31
|
+
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
30
32
|
connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
|
|
31
33
|
disconnect(handlerId: number): void;
|
|
32
34
|
emit(eventName: string, ...args: unknown[]): void;
|
|
@@ -73,10 +75,12 @@ declare const AdwSidebar_base: ((abstract new (...args: any[]) => {
|
|
|
73
75
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
74
76
|
get focusable(): boolean;
|
|
75
77
|
set focusable(value: boolean | string);
|
|
78
|
+
get focusOnClick(): boolean;
|
|
79
|
+
set focusOnClick(value: boolean | string);
|
|
80
|
+
get_focus_on_click(): boolean;
|
|
81
|
+
set_focus_on_click(focusOnClick: boolean): void;
|
|
76
82
|
grab_focus(): boolean;
|
|
77
83
|
_emit(eventName: string): void;
|
|
78
|
-
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
79
|
-
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
80
84
|
notify<T extends EventData>(data: T): void;
|
|
81
85
|
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
82
86
|
set(name: string, value: unknown): void;
|
|
@@ -9,6 +9,8 @@ export interface NotifySliderValueEventData extends EventData {
|
|
|
9
9
|
value: number;
|
|
10
10
|
}
|
|
11
11
|
declare const AdwSliderRow_base: ((abstract new (...args: any[]) => {
|
|
12
|
+
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
13
|
+
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
12
14
|
connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
|
|
13
15
|
disconnect(handlerId: number): void;
|
|
14
16
|
emit(eventName: string, ...args: unknown[]): void;
|
|
@@ -55,10 +57,12 @@ declare const AdwSliderRow_base: ((abstract new (...args: any[]) => {
|
|
|
55
57
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
56
58
|
get focusable(): boolean;
|
|
57
59
|
set focusable(value: boolean | string);
|
|
60
|
+
get focusOnClick(): boolean;
|
|
61
|
+
set focusOnClick(value: boolean | string);
|
|
62
|
+
get_focus_on_click(): boolean;
|
|
63
|
+
set_focus_on_click(focusOnClick: boolean): void;
|
|
58
64
|
grab_focus(): boolean;
|
|
59
65
|
_emit(eventName: string): void;
|
|
60
|
-
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
61
|
-
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
62
66
|
notify<T extends EventData>(data: T): void;
|
|
63
67
|
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
64
68
|
set(name: string, value: unknown): void;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { GridLayout } from '@nativescript/core';
|
|
2
2
|
import { DEFAULT_SPINNER_SIZE } from './chrome.js';
|
|
3
3
|
import { type ConstructProps } from './construct-props.js';
|
|
4
|
+
import type { GObjectNotify } from './signals.js';
|
|
4
5
|
export { DEFAULT_SPINNER_SIZE };
|
|
6
|
+
/** Event name emitted when {@link AdwSpinner.spinning} changes. */
|
|
7
|
+
export declare const NOTIFY_SPINNING = "notify::spinning";
|
|
8
|
+
/** Event name emitted when {@link AdwSpinner.size} changes. */
|
|
9
|
+
export declare const NOTIFY_SIZE = "notify::size";
|
|
5
10
|
declare const AdwSpinner_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;
|
|
6
13
|
connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => unknown): number;
|
|
7
14
|
disconnect(handlerId: number): void;
|
|
8
15
|
emit(eventName: string, ...args: unknown[]): void;
|
|
@@ -49,10 +56,12 @@ declare const AdwSpinner_base: ((abstract new (...args: any[]) => {
|
|
|
49
56
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
50
57
|
get focusable(): boolean;
|
|
51
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;
|
|
52
63
|
grab_focus(): boolean;
|
|
53
64
|
_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
65
|
notify<T extends import("@nativescript/core").EventData>(data: T): void;
|
|
57
66
|
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
58
67
|
set(name: string, value: unknown): void;
|
|
@@ -62,18 +71,11 @@ declare const AdwSpinner_base: ((abstract new (...args: any[]) => {
|
|
|
62
71
|
}) & typeof GridLayout;
|
|
63
72
|
export declare class AdwSpinner extends AdwSpinner_base {
|
|
64
73
|
static readonly GTypeName: string;
|
|
65
|
-
/**
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
private _spinning;
|
|
71
|
-
constructor(props?: ConstructProps<AdwSpinner>);
|
|
72
|
-
private _applySize;
|
|
73
|
-
private _applySpinning;
|
|
74
|
-
/** Whether the spinner is animating. Gated on being mapped, as in GTK. */
|
|
75
|
-
get spinning(): boolean;
|
|
76
|
-
set spinning(value: boolean | string);
|
|
74
|
+
/**
|
|
75
|
+
* Whether the spinner is animating. Gated on being mapped, as in GTK. A string from XML is
|
|
76
|
+
* parsed to a boolean by the seam; anything but `'true'` / `'false'` throws.
|
|
77
|
+
*/
|
|
78
|
+
spinning: boolean;
|
|
77
79
|
/**
|
|
78
80
|
* The BOX size in DIPs — what was requested, floored at the measured
|
|
79
81
|
* minimum 16 and NOT capped.
|
|
@@ -83,8 +85,14 @@ export declare class AdwSpinner extends AdwSpinner_base {
|
|
|
83
85
|
* the 64 cap lives. The two used to be one number, so an oversized spinner
|
|
84
86
|
* silently took 64 DIPs of layout instead of the 200 it was given.
|
|
85
87
|
*/
|
|
86
|
-
|
|
87
|
-
|
|
88
|
+
size: number;
|
|
89
|
+
/** `notify('size')` beside NativeScript's `notify({ eventName })` — see {@link GObjectNotify}. */
|
|
90
|
+
notify: GObjectNotify;
|
|
91
|
+
/** The platform indicator — the RING, capped at 64 DIPs. */
|
|
92
|
+
private readonly _indicator;
|
|
93
|
+
constructor(props?: ConstructProps<AdwSpinner>);
|
|
94
|
+
private _applySize;
|
|
95
|
+
private _applySpinning;
|
|
88
96
|
/** The drawn ring diameter — `spinnerGeometry`, capped at 64. */
|
|
89
97
|
get ringDiameter(): number;
|
|
90
98
|
}
|
|
@@ -24,6 +24,8 @@ export interface MenuTappedEventData extends EventData {
|
|
|
24
24
|
action?: string;
|
|
25
25
|
}
|
|
26
26
|
declare const AdwSplitButton_base: ((abstract new (...args: any[]) => {
|
|
27
|
+
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
28
|
+
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
27
29
|
connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
|
|
28
30
|
disconnect(handlerId: number): void;
|
|
29
31
|
emit(eventName: string, ...args: unknown[]): void;
|
|
@@ -70,10 +72,12 @@ declare const AdwSplitButton_base: ((abstract new (...args: any[]) => {
|
|
|
70
72
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
71
73
|
get focusable(): boolean;
|
|
72
74
|
set focusable(value: boolean | string);
|
|
75
|
+
get focusOnClick(): boolean;
|
|
76
|
+
set focusOnClick(value: boolean | string);
|
|
77
|
+
get_focus_on_click(): boolean;
|
|
78
|
+
set_focus_on_click(focusOnClick: boolean): void;
|
|
73
79
|
grab_focus(): boolean;
|
|
74
80
|
_emit(eventName: string): void;
|
|
75
|
-
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
76
|
-
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
77
81
|
notify<T extends EventData>(data: T): void;
|
|
78
82
|
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
79
83
|
set(name: string, value: unknown): void;
|
|
@@ -3,6 +3,8 @@ import { GridLayout, Label, StackLayout } from '@nativescript/core';
|
|
|
3
3
|
import { GtkImage } from './gtk-image.js';
|
|
4
4
|
import { type ConstructProps } from './construct-props.js';
|
|
5
5
|
declare const AdwStatusPage_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 AdwStatusPage_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;
|
|
@@ -1,25 +1,33 @@
|
|
|
1
|
-
import { Switch
|
|
1
|
+
import { Switch } from '@nativescript/core';
|
|
2
2
|
import { AdwActionRow } from './adw-action-row.js';
|
|
3
3
|
import { type ConstructProps } from './construct-props.js';
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Event name emitted when {@link AdwSwitchRow.active} changes. Mirrors GObject `notify::active`,
|
|
6
|
+
* and like every declared member it is subscribed with `connect` alone (see `signals.ts`).
|
|
7
|
+
*
|
|
8
|
+
* There is no payload TYPE to go with it: a real `notify::` carries a `GParamSpec`, not the
|
|
9
|
+
* value, and the seam hands a handler the port's plain `{ eventName, object }` on both legs.
|
|
10
|
+
* Read the state off the emitter — `(self) => self.active`.
|
|
11
|
+
*/
|
|
5
12
|
export declare const NOTIFY_ACTIVE = "notify::active";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
13
|
+
declare const AdwSwitchRow_base: ((abstract new (...args: any[]) => {
|
|
14
|
+
_emit(eventName: string): void;
|
|
15
|
+
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
16
|
+
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
17
|
+
notify<T extends import("@nativescript/core").EventData>(data: T): void;
|
|
18
|
+
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
19
|
+
set(name: string, value: unknown): void;
|
|
20
|
+
get(name: string): unknown;
|
|
21
|
+
}) & {
|
|
22
|
+
readonly emittedSignals: readonly string[];
|
|
23
|
+
}) & typeof AdwActionRow;
|
|
24
|
+
export declare class AdwSwitchRow extends AdwSwitchRow_base {
|
|
12
25
|
static readonly GTypeName: string;
|
|
13
|
-
/**
|
|
14
|
-
|
|
26
|
+
/** Whether the switch is on. */
|
|
27
|
+
active: boolean;
|
|
15
28
|
/** The suffix Switch control. */
|
|
16
29
|
protected readonly _switch: Switch;
|
|
17
|
-
/** The headless active flag + its notify rule (ADR 0004). */
|
|
18
|
-
private readonly _switchState;
|
|
19
30
|
constructor(props?: ConstructProps<AdwSwitchRow>);
|
|
20
|
-
/** Whether the switch is on. */
|
|
21
|
-
get active(): boolean;
|
|
22
|
-
set active(value: boolean | string);
|
|
23
31
|
get_active(): boolean;
|
|
24
32
|
set_active(active: boolean): void;
|
|
25
33
|
/**
|
|
@@ -34,10 +42,7 @@ export declare class AdwSwitchRow extends AdwActionRow {
|
|
|
34
42
|
* that — `row-press.ts` reasons about the same propagation for its highlight.
|
|
35
43
|
*/
|
|
36
44
|
activate(): void;
|
|
37
|
-
/**
|
|
38
|
-
* Push a state transition out to the Switch and emit `notify::active` — only
|
|
39
|
-
* when something actually changed, which is the `g_object_notify` gate
|
|
40
|
-
* libadwaita puts on the same transition (C:224-225 → :76).
|
|
41
|
-
*/
|
|
45
|
+
/** Push the state out to the `Switch`. Run from `notify::active`, which is already the gate. */
|
|
42
46
|
private _apply;
|
|
43
47
|
}
|
|
48
|
+
export {};
|
|
@@ -24,6 +24,8 @@ export interface ClosePageEventData extends EventData {
|
|
|
24
24
|
index: number;
|
|
25
25
|
}
|
|
26
26
|
declare const AdwTabView_base: ((abstract new (...args: any[]) => {
|
|
27
|
+
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
28
|
+
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
27
29
|
connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => unknown): number;
|
|
28
30
|
disconnect(handlerId: number): void;
|
|
29
31
|
emit(eventName: string, ...args: unknown[]): void;
|
|
@@ -70,10 +72,12 @@ declare const AdwTabView_base: ((abstract new (...args: any[]) => {
|
|
|
70
72
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
71
73
|
get focusable(): boolean;
|
|
72
74
|
set focusable(value: boolean | string);
|
|
75
|
+
get focusOnClick(): boolean;
|
|
76
|
+
set focusOnClick(value: boolean | string);
|
|
77
|
+
get_focus_on_click(): boolean;
|
|
78
|
+
set_focus_on_click(focusOnClick: boolean): void;
|
|
73
79
|
grab_focus(): boolean;
|
|
74
80
|
_emit(eventName: string): void;
|
|
75
|
-
addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
76
|
-
removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
|
|
77
81
|
notify<T extends EventData>(data: T): void;
|
|
78
82
|
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
79
83
|
set(name: string, value: unknown): void;
|