@gjsify/adwaita-nativescript 0.54.0 → 0.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (188) hide show
  1. package/lib/esm/builder/index.js +1 -1
  2. package/lib/esm/builder/template-classes.js +1 -0
  3. package/lib/esm/capabilities.js +1 -0
  4. package/lib/esm/index.js +1 -1
  5. package/lib/esm/namespace/adw.js +1 -1
  6. package/lib/esm/namespace/gtk.js +1 -1
  7. package/lib/esm/widgets/accent-theme.js +1 -1
  8. package/lib/esm/widgets/adw-about-dialog.js +1 -1
  9. package/lib/esm/widgets/adw-accent.js +1 -1
  10. package/lib/esm/widgets/adw-alert-dialog.js +1 -1
  11. package/lib/esm/widgets/adw-application-window.js +1 -0
  12. package/lib/esm/widgets/adw-avatar.js +1 -1
  13. package/lib/esm/widgets/adw-banner.js +1 -1
  14. package/lib/esm/widgets/adw-bin.js +1 -0
  15. package/lib/esm/widgets/adw-button-content.js +1 -1
  16. package/lib/esm/widgets/adw-button-row.js +1 -1
  17. package/lib/esm/widgets/adw-combo-row.js +1 -1
  18. package/lib/esm/widgets/adw-data-grid.js +1 -1
  19. package/lib/esm/widgets/adw-dialog.js +1 -0
  20. package/lib/esm/widgets/adw-entry-row.js +1 -1
  21. package/lib/esm/widgets/adw-expander-row.js +1 -1
  22. package/lib/esm/widgets/adw-navigation-view.js +1 -1
  23. package/lib/esm/widgets/adw-slider-row.js +1 -1
  24. package/lib/esm/widgets/adw-spin-row.js +1 -1
  25. package/lib/esm/widgets/adw-spinner.js +1 -1
  26. package/lib/esm/widgets/adw-split-button.js +1 -1
  27. package/lib/esm/widgets/adw-status-page.js +1 -1
  28. package/lib/esm/widgets/adw-switch-row.js +1 -1
  29. package/lib/esm/widgets/adw-tab-view.js +1 -1
  30. package/lib/esm/widgets/adw-toast-overlay.js +1 -1
  31. package/lib/esm/widgets/adw-toggle-group.js +1 -1
  32. package/lib/esm/widgets/adw-toolbar-view.js +1 -1
  33. package/lib/esm/widgets/adw-view-stack.js +1 -1
  34. package/lib/esm/widgets/adw-view-switcher-bar.js +1 -1
  35. package/lib/esm/widgets/adw-window.js +1 -0
  36. package/lib/esm/widgets/adw-wrap-box.js +1 -1
  37. package/lib/esm/widgets/box-layout.js +1 -1
  38. package/lib/esm/widgets/breakpoint.js +1 -1
  39. package/lib/esm/widgets/grid-state.js +1 -0
  40. package/lib/esm/widgets/gtk-box.js +1 -1
  41. package/lib/esm/widgets/gtk-button.js +1 -1
  42. package/lib/esm/widgets/gtk-check-button.js +1 -0
  43. package/lib/esm/widgets/gtk-drawing-area.js +1 -0
  44. package/lib/esm/widgets/gtk-drop-down.js +1 -1
  45. package/lib/esm/widgets/gtk-entry.js +1 -1
  46. package/lib/esm/widgets/gtk-frame.js +1 -0
  47. package/lib/esm/widgets/gtk-grid.js +1 -0
  48. package/lib/esm/widgets/gtk-label.js +1 -1
  49. package/lib/esm/widgets/gtk-list-box.js +1 -0
  50. package/lib/esm/widgets/gtk-menu-button.js +1 -1
  51. package/lib/esm/widgets/gtk-overlay.js +1 -0
  52. package/lib/esm/widgets/gtk-revealer.js +1 -0
  53. package/lib/esm/widgets/gtk-scrolled-window.js +1 -0
  54. package/lib/esm/widgets/gtk-separator.js +1 -0
  55. package/lib/esm/widgets/gtk-stack.js +1 -0
  56. package/lib/esm/widgets/gtk-text-view.js +1 -0
  57. package/lib/esm/widgets/gtk-toggle-button.js +1 -0
  58. package/lib/esm/widgets/host-insets.android.js +1 -1
  59. package/lib/esm/widgets/icon-path.js +1 -1
  60. package/lib/esm/widgets/icon-theme.js +1 -1
  61. package/lib/esm/widgets/index.js +1 -1
  62. package/lib/esm/widgets/list-box-state.js +1 -0
  63. package/lib/esm/widgets/ns-length.js +1 -0
  64. package/lib/esm/widgets/revealer-state.js +1 -0
  65. package/lib/esm/widgets/row-state.js +1 -1
  66. package/lib/esm/widgets/scrolled-window-policy.js +1 -0
  67. package/lib/esm/widgets/single-child-base.js +1 -0
  68. package/lib/esm/widgets/stack-page.js +1 -0
  69. package/lib/esm/widgets/style-classes.js +1 -1
  70. package/lib/esm/widgets/styled-layout-base.js +1 -0
  71. package/lib/esm/widgets/system-bars-source.android.js +1 -0
  72. package/lib/esm/widgets/system-bars-source.ios.js +1 -0
  73. package/lib/esm/widgets/system-bars-source.js +1 -0
  74. package/lib/esm/widgets/system-bars.js +1 -0
  75. package/lib/esm/widgets/transition-type.js +1 -0
  76. package/lib/esm/widgets/view-switcher-base.js +1 -1
  77. package/lib/esm/widgets/widget-layout.js +1 -1
  78. package/lib/esm/widgets/window-base.js +1 -0
  79. package/lib/esm/widgets/window-state.js +1 -0
  80. package/lib/types/builder/index.d.ts +20 -3
  81. package/lib/types/builder/template-classes.d.ts +13 -0
  82. package/lib/types/capabilities.d.ts +2 -0
  83. package/lib/types/construct-vectors.spec.d.ts +1 -0
  84. package/lib/types/containers.spec.d.ts +2 -0
  85. package/lib/types/grid-layout.spec.d.ts +1 -0
  86. package/lib/types/grid-state.spec.d.ts +2 -0
  87. package/lib/types/gtk-box.spec.d.ts +1 -0
  88. package/lib/types/gtk-controls.spec.d.ts +1 -0
  89. package/lib/types/gtk-grid.spec.d.ts +1 -0
  90. package/lib/types/gtk-list-box.spec.d.ts +1 -0
  91. package/lib/types/gtk-stack.spec.d.ts +2 -0
  92. package/lib/types/gtk-toggle-button.spec.d.ts +2 -0
  93. package/lib/types/index.d.ts +1 -1
  94. package/lib/types/list-box-state.spec.d.ts +2 -0
  95. package/lib/types/namespace/adw.d.ts +4 -0
  96. package/lib/types/namespace/gtk.d.ts +13 -0
  97. package/lib/types/ns-length.spec.d.ts +2 -0
  98. package/lib/types/revealer-state.spec.d.ts +2 -0
  99. package/lib/types/scrolled-window-policy.spec.d.ts +2 -0
  100. package/lib/types/system-bars.spec.d.ts +2 -0
  101. package/lib/types/testing/ns-core.d.mts +44 -0
  102. package/lib/types/transition-type.spec.d.ts +2 -0
  103. package/lib/types/widget-base.spec.d.ts +1 -0
  104. package/lib/types/widgets/adw-about-dialog.d.ts +10 -0
  105. package/lib/types/widgets/adw-action-row.d.ts +10 -0
  106. package/lib/types/widgets/adw-alert-dialog.d.ts +10 -0
  107. package/lib/types/widgets/adw-application-window.d.ts +5 -0
  108. package/lib/types/widgets/adw-avatar.d.ts +10 -0
  109. package/lib/types/widgets/adw-banner.d.ts +10 -0
  110. package/lib/types/widgets/adw-bin.d.ts +7 -0
  111. package/lib/types/widgets/adw-bottom-sheet.d.ts +10 -0
  112. package/lib/types/widgets/adw-button-content.d.ts +10 -0
  113. package/lib/types/widgets/adw-carousel.d.ts +10 -0
  114. package/lib/types/widgets/adw-clamp.d.ts +10 -0
  115. package/lib/types/widgets/adw-data-grid.d.ts +10 -0
  116. package/lib/types/widgets/adw-dialog.d.ts +62 -0
  117. package/lib/types/widgets/adw-header-bar.d.ts +10 -0
  118. package/lib/types/widgets/adw-image-button.d.ts +10 -0
  119. package/lib/types/widgets/adw-navigation-page.d.ts +10 -0
  120. package/lib/types/widgets/adw-navigation-view.d.ts +10 -0
  121. package/lib/types/widgets/adw-preferences-dialog.d.ts +10 -0
  122. package/lib/types/widgets/adw-preferences-group.d.ts +10 -0
  123. package/lib/types/widgets/adw-preferences-page.d.ts +10 -0
  124. package/lib/types/widgets/adw-shortcut-label.d.ts +10 -0
  125. package/lib/types/widgets/adw-sidebar.d.ts +10 -0
  126. package/lib/types/widgets/adw-slider-row.d.ts +10 -0
  127. package/lib/types/widgets/adw-spinner.d.ts +10 -0
  128. package/lib/types/widgets/adw-split-button.d.ts +10 -0
  129. package/lib/types/widgets/adw-status-page.d.ts +10 -0
  130. package/lib/types/widgets/adw-tab-view.d.ts +10 -0
  131. package/lib/types/widgets/adw-toast-overlay.d.ts +16 -2
  132. package/lib/types/widgets/adw-toggle-group.d.ts +10 -0
  133. package/lib/types/widgets/adw-toggle.d.ts +10 -0
  134. package/lib/types/widgets/adw-toolbar-view.d.ts +21 -0
  135. package/lib/types/widgets/adw-view-stack.d.ts +23 -0
  136. package/lib/types/widgets/adw-view-switcher-bar.d.ts +10 -0
  137. package/lib/types/widgets/adw-window-title.d.ts +10 -0
  138. package/lib/types/widgets/adw-window.d.ts +5 -0
  139. package/lib/types/widgets/adw-wrap-box.d.ts +10 -0
  140. package/lib/types/widgets/box-layout.d.ts +19 -5
  141. package/lib/types/widgets/breakpoint.d.ts +7 -1
  142. package/lib/types/widgets/carousel-indicator-base.d.ts +10 -0
  143. package/lib/types/widgets/grid-state.d.ts +34 -0
  144. package/lib/types/widgets/gtk-action-bar.d.ts +10 -0
  145. package/lib/types/widgets/gtk-box.d.ts +27 -52
  146. package/lib/types/widgets/gtk-button.d.ts +20 -0
  147. package/lib/types/widgets/gtk-check-button.d.ts +51 -0
  148. package/lib/types/widgets/gtk-drawing-area.d.ts +19 -0
  149. package/lib/types/widgets/gtk-drop-down.d.ts +10 -0
  150. package/lib/types/widgets/gtk-entry.d.ts +10 -0
  151. package/lib/types/widgets/gtk-frame.d.ts +25 -0
  152. package/lib/types/widgets/gtk-grid.d.ts +57 -0
  153. package/lib/types/widgets/gtk-image.d.ts +10 -0
  154. package/lib/types/widgets/gtk-label.d.ts +10 -0
  155. package/lib/types/widgets/gtk-list-box.d.ts +73 -0
  156. package/lib/types/widgets/gtk-overlay.d.ts +17 -0
  157. package/lib/types/widgets/gtk-revealer.d.ts +30 -0
  158. package/lib/types/widgets/gtk-scrolled-window.d.ts +25 -0
  159. package/lib/types/widgets/gtk-separator.d.ts +11 -0
  160. package/lib/types/widgets/gtk-stack.d.ts +124 -0
  161. package/lib/types/widgets/gtk-text-view.d.ts +63 -0
  162. package/lib/types/widgets/gtk-toggle-button.d.ts +33 -0
  163. package/lib/types/widgets/index.d.ts +40 -2
  164. package/lib/types/widgets/list-box-state.d.ts +19 -0
  165. package/lib/types/widgets/ns-length.d.ts +10 -0
  166. package/lib/types/widgets/revealer-state.d.ts +7 -0
  167. package/lib/types/widgets/row-state.d.ts +6 -0
  168. package/lib/types/widgets/scrolled-window-policy.d.ts +17 -0
  169. package/lib/types/widgets/signals.d.ts +10 -0
  170. package/lib/types/widgets/single-child-base.d.ts +22 -0
  171. package/lib/types/widgets/split-view-base.d.ts +10 -0
  172. package/lib/types/widgets/stack-page.d.ts +93 -0
  173. package/lib/types/widgets/style-classes.d.ts +28 -0
  174. package/lib/types/widgets/styled-layout-base.d.ts +63 -0
  175. package/lib/types/widgets/system-bars-source.android.d.ts +2 -0
  176. package/lib/types/widgets/system-bars-source.d.ts +2 -0
  177. package/lib/types/widgets/system-bars-source.ios.d.ts +2 -0
  178. package/lib/types/widgets/system-bars.d.ts +71 -0
  179. package/lib/types/widgets/transition-type.d.ts +13 -0
  180. package/lib/types/widgets/view-stack-page.d.ts +10 -0
  181. package/lib/types/widgets/view-switcher-base.d.ts +10 -0
  182. package/lib/types/widgets/widget-layout.d.ts +23 -0
  183. package/lib/types/widgets/window-base.d.ts +41 -0
  184. package/lib/types/widgets/window-state.d.ts +37 -0
  185. package/lib/types/window-roots.spec.d.ts +1 -0
  186. package/lib/types/window-state.spec.d.ts +2 -0
  187. package/package.json +13 -9
  188. package/src/theme/adwaita.css +273 -40
@@ -0,0 +1 @@
1
+ import"../_virtual/_rolldown/runtime.js";import{builderSlotsOf as e}from"./builder-slots.js";import{xmlNumber as t}from"./xml-values.js";import{AdwSingleChildBase as n}from"./single-child-base.js";import{surfaceSize as r}from"./window-state.js";import{GridLayout as i}from"@nativescript/core";const a=`adw-window`;var AdwWindowBase=class extends n{static builderSlots=e([`content`],`content`);_title=``;_defaultWidth=0;_defaultHeight=0;_dialogs=[];constructor(){super(),this._restyle()}get _ownClass(){return a}get content(){return this.child}set content(e){this.child=e}set_content(e){this.child=e}get_content(){return this.child}get title(){return this._title}set title(e){this._title=e??``}get defaultWidth(){return this._defaultWidth}set defaultWidth(e){this._defaultWidth=r(t(e,NaN),e,this._defaultWidth,`defaultWidth`)}get defaultHeight(){return this._defaultHeight}set defaultHeight(e){this._defaultHeight=r(t(e,NaN),e,this._defaultHeight,`defaultHeight`)}get dialogs(){return[...this._dialogs]}_hostDialog(e){let t=e;this._dialogs.includes(t)||(i.setColumn(t,0),i.setRow(t,0),this.addChild(t),this._dialogs.push(t))}_unhostDialog(e){let t=e,n=this._dialogs.indexOf(t);n!==-1&&(this._dialogs.splice(n,1),this.removeChild(t))}};export{a as ADW_WINDOW_CLASS,AdwWindowBase};
@@ -0,0 +1 @@
1
+ import"../_virtual/_rolldown/runtime.js";import{transitionNick as e}from"./transition-type.js";const t=[`auto`,`floating`,`bottom-sheet`],n=`auto`;function dialogPresentationMode(n){return e(n,t,`Adw.DialogPresentationMode`)}function surfaceSize(e,t,n,r){if(typeof t==`string`&&t.trim()===``)return n;if(Number.isInteger(e)&&e>=-1)return e;throw TypeError(`'${String(t)}' is not a size: '${r}' takes an integer from -1 upward.`)}function isDialogHost(e){let t=e;return typeof t?._hostDialog==`function`&&typeof t._unhostDialog==`function`}function findDialogHost(e){let t=e;for(let e=0;t!=null&&e<4096;e++){if(isDialogHost(t))return t;t=t.parent}return null}export{t as ADW_DIALOG_PRESENTATION_MODES,n as DEFAULT_DIALOG_PRESENTATION_MODE,dialogPresentationMode,findDialogHost,surfaceSize};
@@ -1,5 +1,7 @@
1
- import type { SharedTreeNode } from '@gjsify/adwaita-core/conformance';
1
+ import { type BreakpointSize } from '@gjsify/adwaita-core';
2
+ import { type SharedTreeNode } from '@gjsify/adwaita-core/conformance';
2
3
  import { View } from '@nativescript/core';
4
+ export { registerTemplateClass } from './template-classes.js';
3
5
  /**
4
6
  * A class the barrel offers as an element. A widget is built with NO arguments, as
5
7
  * NativeScript builds one; a value object ({@link build}) takes its construct bag.
@@ -28,6 +30,15 @@ export interface Element {
28
30
  * rather than resolving to a stranger.)
29
31
  */
30
32
  export declare function elementFor(tag: string): Element;
33
+ /** Calls `onSize` with the view's measured size, now and on every change; returns its disposer. */
34
+ export type SizeSource = (view: View, onSize: (size: BreakpointSize) => void) => () => void;
35
+ /** What a caller hands {@link build} beside the tree. */
36
+ export interface BuildOptions {
37
+ /** Where a `breakpoints` node reads its size from; the view's post-layout size unless supplied. */
38
+ observeSize?: SizeSource;
39
+ /** The object a signal handler's NAME is resolved against (ADR 0093 § 3), as `Gtk.BuilderScope` does. */
40
+ scope?: Readonly<Record<string, unknown>>;
41
+ }
31
42
  /**
32
43
  * Build one authored node the way NativeScript's XML builder does: construct with no
33
44
  * arguments, write the attributes, then hand each child to the parent's own child door
@@ -54,7 +65,7 @@ export declare function elementFor(tag: string): Element;
54
65
  *
55
66
  * The root is always a widget: a tree whose root is a value object has nothing to show.
56
67
  */
57
- export declare function build(node: SharedTreeNode): View;
68
+ export declare function build(node: SharedTreeNode, options?: BuildOptions): View;
58
69
  /** What {@link buildDialog} hands back: the object `present()` is called on. */
59
70
  export interface PresentableRoot {
60
71
  present(): unknown;
@@ -67,4 +78,10 @@ export interface PresentableRoot {
67
78
  * refusal intact for every other value object, and admits a root by the one method a dialog
68
79
  * is for rather than by a class list.
69
80
  */
70
- export declare function buildDialog(node: SharedTreeNode): PresentableRoot;
81
+ export declare function buildDialog(node: SharedTreeNode, options?: BuildOptions): PresentableRoot;
82
+ /**
83
+ * The breakpoints of a view the application built itself, for a shell that is not (yet) a tree:
84
+ * the same data `breakpoints` carries, wired the same way. `ids` names the views the setters
85
+ * address; `host` is the view whose size decides (the window's, when it is the root).
86
+ */
87
+ export declare function applyBreakpoints(host: View, breakpoints: NonNullable<SharedTreeNode['breakpoints']>, ids: Readonly<Record<string, View>>, options?: Pick<BuildOptions, 'observeSize'>): void;
@@ -0,0 +1,13 @@
1
+ /** What the builder constructs: no arguments for a widget, a construct bag for a value object. */
2
+ export type TemplateClass = new (props?: Record<string, unknown>) => object;
3
+ /**
4
+ * Registers `ctor` as the class a `.blp` means by `$name`, spelled as the file spells it
5
+ * (`SourceView` for `$SourceView`). The class builds its own internals, typically from its own
6
+ * `.blp?shared-tree`.
7
+ *
8
+ * Registering the same class again is a no-op; a different class under the same name is
9
+ * refused, as `Gtk.Builder` refuses a type registered twice.
10
+ */
11
+ export declare function registerTemplateClass(name: string, ctor: TemplateClass): void;
12
+ /** The class registered under `name`, or a refusal that names it. */
13
+ export declare function templateClassFor(name: string): TemplateClass;
@@ -0,0 +1,2 @@
1
+ import type { ConstructCapabilities } from '@gjsify/adwaita-core/conformance';
2
+ export declare const capabilities: ConstructCapabilities;
@@ -0,0 +1 @@
1
+ export declare const AdwConstructVectorsNsTest: () => Promise<void>;
@@ -0,0 +1,2 @@
1
+ export declare const AdwContainersNsTest: () => Promise<void>;
2
+ export default AdwContainersNsTest;
@@ -0,0 +1 @@
1
+ export declare const AdwGridLayoutNsTest: () => Promise<void>;
@@ -0,0 +1,2 @@
1
+ declare const _default: () => Promise<void>;
2
+ export default _default;
@@ -0,0 +1 @@
1
+ export declare const GtkBoxNsTest: () => Promise<void>;
@@ -0,0 +1 @@
1
+ export declare const GtkControlsNsTest: () => Promise<void>;
@@ -0,0 +1 @@
1
+ export declare const GtkGridNsTest: () => Promise<void>;
@@ -0,0 +1 @@
1
+ export declare const GtkListBoxNsTest: () => Promise<void>;
@@ -0,0 +1,2 @@
1
+ export declare const GtkStackNsTest: () => Promise<void>;
2
+ export default GtkStackNsTest;
@@ -0,0 +1,2 @@
1
+ export declare const GtkToggleButtonNsTest: () => Promise<void>;
2
+ export default GtkToggleButtonNsTest;
@@ -1,5 +1,5 @@
1
1
  export { assertNativeScript, isNativeScript, isAndroid, isIOS } from '@gjsify/native-platform';
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, boxChildMargin, boxSpacingChanges, normalizeBoxSpacing, labelDisplayText, labelMarkupIsUnparseable, BUTTON_CLICKED, AVATAR_DEFAULT_ICON, DEFAULT_AVATAR_SIZE, avatarInitials, DEFAULT_CLAMP_MAX_SIZE, 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, TOAST_BUTTON_CLICKED, AdwAlertResponses, NOTIFY_RESPONSE, 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, attachRowPressFeedback, ICON_FALLBACK_NAME, compiledIconNames, iconValueKind, isIconAvailable, registerIcon, registeredIconNames, resolveIconSource, unregisterIcon, renderSymbolicIcon, extractIconPaths, extractPathData, ADWAITA_ICON_GRID, DEFAULT_ICON_COLOR, DEFAULT_ICON_COLOR_DARK, adwaitaColorScheme, isThemeIconColor, onAdwaitaColorSchemeChanged, setAdwaitaColorScheme, themeIconColor, toggleAdwaitaColorScheme, AdwBreakpoint, addBreakpoints, evaluateBreakpointCondition, parseBreakpointCondition, registerAdwaitaElements, } from './widgets/index.js';
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, 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, 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, TOAST_BUTTON_CLICKED, AdwAlertResponses, NOTIFY_RESPONSE, 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, attachRowPressFeedback, ICON_FALLBACK_NAME, compiledIconNames, iconValueKind, isIconAvailable, registerIcon, registeredIconNames, resolveIconSource, unregisterIcon, renderSymbolicIcon, extractIconPaths, extractPathData, ADWAITA_ICON_GRID, DEFAULT_ICON_COLOR, DEFAULT_ICON_COLOR_DARK, adwaitaColorScheme, isThemeIconColor, onAdwaitaColorSchemeChanged, setAdwaitaColorScheme, themeIconColor, toggleAdwaitaColorScheme, AdwBreakpoint, addBreakpoints, evaluateBreakpointCondition, observeViewSize, parseBreakpointCondition, registerAdwaitaElements, } from './widgets/index.js';
3
3
  export type { BoxOrientation, ButtonSlot, ButtonSlotWrite, NotifyActiveEventData, NotifyTextEventData, NotifyEntryTextEventData, AdwComboOption, ComboStateChange, ComboStateListener, NotifySelectedEventData, NotifyDropDownSelectedEventData, NotifyValueEventData, SpinStateChange, SpinStateListener, NotifySliderValueEventData, NotifyExpandedEventData, ExpanderStateListener, MenuItemActivatedEventData, MenuSheetPresenter, MenuSheetRow, 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, NotifyResponseEventData, AdwAlertResponse, AdwResponseAppearance, AdwResponseOptions, OrderedConfirmResponses, ConstructProps, IconValueKind, SymbolicIconOptions, IconPath, AdwColorScheme, AdwBreakpointHandlers, BreakpointBound, BreakpointConditionGroup, BreakpointConditionLeaf, BreakpointConditionNode, BreakpointDimension, BreakpointSize, } from './widgets/index.js';
4
4
  export * as Adw from './namespace/adw.js';
5
5
  export * as Gtk from './namespace/gtk.js';
@@ -0,0 +1,2 @@
1
+ declare const _default: () => Promise<void>;
2
+ export default _default;
@@ -1,8 +1,10 @@
1
1
  export { AdwAboutDialog as AboutDialog } from '../widgets/adw-about-dialog.js';
2
2
  export { AdwActionRow as ActionRow } from '../widgets/adw-action-row.js';
3
3
  export { AdwAlertDialog as AlertDialog } from '../widgets/adw-alert-dialog.js';
4
+ export { AdwApplicationWindow as ApplicationWindow } from '../widgets/adw-application-window.js';
4
5
  export { AdwAvatar as Avatar } from '../widgets/adw-avatar.js';
5
6
  export { AdwBanner as Banner } from '../widgets/adw-banner.js';
7
+ export { AdwBin as Bin } from '../widgets/adw-bin.js';
6
8
  export { AdwBottomSheet as BottomSheet } from '../widgets/adw-bottom-sheet.js';
7
9
  export { AdwButtonContent as ButtonContent } from '../widgets/adw-button-content.js';
8
10
  export { AdwButtonRow as ButtonRow } from '../widgets/adw-button-row.js';
@@ -11,6 +13,7 @@ export { AdwCarouselIndicatorDots as CarouselIndicatorDots } from '../widgets/ad
11
13
  export { AdwCarouselIndicatorLines as CarouselIndicatorLines } from '../widgets/adw-carousel-indicator-lines.js';
12
14
  export { AdwClamp as Clamp } from '../widgets/adw-clamp.js';
13
15
  export { AdwComboRow as ComboRow } from '../widgets/adw-combo-row.js';
16
+ export { AdwDialog as Dialog } from '../widgets/adw-dialog.js';
14
17
  export { AdwEntryRow as EntryRow } from '../widgets/adw-entry-row.js';
15
18
  export { AdwExpanderRow as ExpanderRow } from '../widgets/adw-expander-row.js';
16
19
  export { AdwHeaderBar as HeaderBar } from '../widgets/adw-header-bar.js';
@@ -42,5 +45,6 @@ export { AdwViewStack as ViewStack } from '../widgets/adw-view-stack.js';
42
45
  export { AdwViewStackPage as ViewStackPage } from '../widgets/view-stack-page.js';
43
46
  export { AdwViewSwitcher as ViewSwitcher } from '../widgets/adw-view-switcher.js';
44
47
  export { AdwViewSwitcherBar as ViewSwitcherBar } from '../widgets/adw-view-switcher-bar.js';
48
+ export { AdwWindow as Window } from '../widgets/adw-window.js';
45
49
  export { AdwWindowTitle as WindowTitle } from '../widgets/adw-window-title.js';
46
50
  export { AdwWrapBox as WrapBox } from '../widgets/adw-wrap-box.js';
@@ -3,8 +3,21 @@ export { GtkActionBar as ActionBar } from '../widgets/gtk-action-bar.js';
3
3
  export { GtkBox as Box } from '../widgets/gtk-box.js';
4
4
  export { GtkButton as Button } from '../widgets/gtk-button.js';
5
5
  export { GtkDropDown as DropDown } from '../widgets/gtk-drop-down.js';
6
+ export { GtkCheckButton as CheckButton } from '../widgets/gtk-check-button.js';
7
+ export { GtkDrawingArea as DrawingArea } from '../widgets/gtk-drawing-area.js';
6
8
  export { GtkEntry as Entry } from '../widgets/gtk-entry.js';
9
+ export { GtkGrid as Grid } from '../widgets/gtk-grid.js';
10
+ export { GtkFrame as Frame } from '../widgets/gtk-frame.js';
7
11
  export { GtkImage as Image } from '../widgets/gtk-image.js';
8
12
  export { GtkLabel as Label } from '../widgets/gtk-label.js';
13
+ export { GtkListBox as ListBox } from '../widgets/gtk-list-box.js';
9
14
  export { GtkMenuButton as MenuButton } from '../widgets/gtk-menu-button.js';
15
+ export { GtkOverlay as Overlay } from '../widgets/gtk-overlay.js';
16
+ export { GtkRevealer as Revealer } from '../widgets/gtk-revealer.js';
17
+ export { GtkScrolledWindow as ScrolledWindow } from '../widgets/gtk-scrolled-window.js';
18
+ export { GtkSeparator as Separator } from '../widgets/gtk-separator.js';
19
+ export { GtkStack as Stack } from '../widgets/gtk-stack.js';
20
+ export { GtkStackPage as StackPage } from '../widgets/stack-page.js';
10
21
  export { GtkStringList as StringList } from '@gjsify/adwaita-core';
22
+ export { GtkTextView as TextView } from '../widgets/gtk-text-view.js';
23
+ export { GtkToggleButton as ToggleButton } from '../widgets/gtk-toggle-button.js';
@@ -0,0 +1,2 @@
1
+ declare const _default: () => Promise<void>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: () => Promise<void>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: () => Promise<void>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: () => Promise<void>;
2
+ export default _default;
@@ -100,6 +100,38 @@ export declare class View extends Observable {
100
100
  marginRight: number;
101
101
  /** `'visible' | 'hidden' | 'collapse'` — NativeScript's own default is `'visible'`. */
102
102
  visibility: string;
103
+ /** `isEnabledProperty` registers `defaultValue: true`. */
104
+ isEnabled: boolean;
105
+ /**
106
+ * `minWidthProperty` registers `defaultValue: zeroLength`, so an unwritten read is the
107
+ * `{ value, unit }` object and not a number — the edge a reader of it must be tolerant of.
108
+ */
109
+ minWidth: number | string | {
110
+ value: number;
111
+ unit?: string;
112
+ };
113
+ minHeight: number | string | {
114
+ value: number;
115
+ unit?: string;
116
+ };
117
+ /**
118
+ * Grid placement, as the platform has it: `View.prototype.row/col/rowSpan/colSpan` are
119
+ * properties of EVERY view, `column` / `columnSpan` accessors over `col` / `colSpan`
120
+ * (`grid-layout-common.ts`), and a write emits `<name>Change` — which is what a grid
121
+ * subclass listens to when a child moves after it was added.
122
+ */
123
+ get row(): number;
124
+ set row(value: number);
125
+ get col(): number;
126
+ set col(value: number);
127
+ get column(): number;
128
+ set column(value: number);
129
+ get rowSpan(): number;
130
+ set rowSpan(value: number);
131
+ get colSpan(): number;
132
+ set colSpan(value: number);
133
+ get columnSpan(): number;
134
+ set columnSpan(value: number);
103
135
  isUserInteractionEnabled: boolean;
104
136
  translateX: number;
105
137
  translateY: number;
@@ -198,6 +230,10 @@ export declare class GridLayout extends LayoutBase {
198
230
  rowSpan: number;
199
231
  columnSpan: number;
200
232
  };
233
+ static getColumn(view: View): number;
234
+ static getRow(view: View): number;
235
+ static getColumnSpan(view: View): number;
236
+ static getRowSpan(view: View): number;
201
237
  static setColumn(view: View, value: number): void;
202
238
  static setRow(view: View, value: number): void;
203
239
  static setColumnSpan(view: View, value: number): void;
@@ -241,6 +277,14 @@ export declare class TextField extends View {
241
277
  /** `textChange` for a programmatic write too — same reasoning as `Switch.checked`. */
242
278
  set text(value: string);
243
279
  }
280
+ export declare class TextView extends View {
281
+ private _text;
282
+ hint: string;
283
+ editable: boolean;
284
+ get text(): string;
285
+ /** `textChange` for a programmatic write too — same reasoning as `TextField.text`. */
286
+ set text(value: string);
287
+ }
244
288
  export declare class Button extends View {
245
289
  text: string;
246
290
  }
@@ -0,0 +1,2 @@
1
+ declare const _default: () => Promise<void>;
2
+ export default _default;
@@ -0,0 +1 @@
1
+ export declare const AdwWidgetBaseNsTest: () => Promise<void>;
@@ -17,6 +17,16 @@ declare const AdwAboutDialog_base: (abstract new (...args: any[]) => {
17
17
  set marginStart(value: number | string);
18
18
  get marginEnd(): number;
19
19
  set marginEnd(value: number | string);
20
+ get visible(): boolean;
21
+ set visible(value: boolean | string);
22
+ get sensitive(): boolean;
23
+ set sensitive(value: boolean | string);
24
+ get name(): string;
25
+ set name(value: string | null);
26
+ get widthRequest(): number;
27
+ set widthRequest(value: number | string);
28
+ get heightRequest(): number;
29
+ set heightRequest(value: number | string);
20
30
  _emit(eventName: string): void;
21
31
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
22
32
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -19,6 +19,16 @@ declare const AdwActionRow_base: (abstract new (...args: any[]) => {
19
19
  set marginStart(value: number | string);
20
20
  get marginEnd(): number;
21
21
  set marginEnd(value: number | string);
22
+ get visible(): boolean;
23
+ set visible(value: boolean | string);
24
+ get sensitive(): boolean;
25
+ set sensitive(value: boolean | string);
26
+ get name(): string;
27
+ set name(value: string | null);
28
+ get widthRequest(): number;
29
+ set widthRequest(value: number | string);
30
+ get heightRequest(): number;
31
+ set heightRequest(value: number | string);
22
32
  _emit(eventName: string): void;
23
33
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
24
34
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -26,6 +26,16 @@ declare const AdwAlertDialog_base: (abstract new (...args: any[]) => {
26
26
  set marginStart(value: number | string);
27
27
  get marginEnd(): number;
28
28
  set marginEnd(value: number | string);
29
+ get visible(): boolean;
30
+ set visible(value: boolean | string);
31
+ get sensitive(): boolean;
32
+ set sensitive(value: boolean | string);
33
+ get name(): string;
34
+ set name(value: string | null);
35
+ get widthRequest(): number;
36
+ set widthRequest(value: number | string);
37
+ get heightRequest(): number;
38
+ set heightRequest(value: number | string);
29
39
  _emit(eventName: string): void;
30
40
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
31
41
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -0,0 +1,5 @@
1
+ import { type ConstructProps } from './construct-props.js';
2
+ import { AdwWindowBase } from './window-base.js';
3
+ export declare class AdwApplicationWindow extends AdwWindowBase {
4
+ constructor(props?: ConstructProps<AdwApplicationWindow>);
5
+ }
@@ -22,6 +22,16 @@ declare const AdwAvatar_base: (abstract new (...args: any[]) => {
22
22
  set marginStart(value: number | string);
23
23
  get marginEnd(): number;
24
24
  set marginEnd(value: number | string);
25
+ get visible(): boolean;
26
+ set visible(value: boolean | string);
27
+ get sensitive(): boolean;
28
+ set sensitive(value: boolean | string);
29
+ get name(): string;
30
+ set name(value: string | null);
31
+ get widthRequest(): number;
32
+ set widthRequest(value: number | string);
33
+ get heightRequest(): number;
34
+ set heightRequest(value: number | string);
25
35
  _emit(eventName: string): void;
26
36
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
27
37
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -18,6 +18,16 @@ declare const AdwBanner_base: (abstract new (...args: any[]) => {
18
18
  set marginStart(value: number | string);
19
19
  get marginEnd(): number;
20
20
  set marginEnd(value: number | string);
21
+ get visible(): boolean;
22
+ set visible(value: boolean | string);
23
+ get sensitive(): boolean;
24
+ set sensitive(value: boolean | string);
25
+ get name(): string;
26
+ set name(value: string | null);
27
+ get widthRequest(): number;
28
+ set widthRequest(value: number | string);
29
+ get heightRequest(): number;
30
+ set heightRequest(value: number | string);
21
31
  _emit(eventName: string): void;
22
32
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
23
33
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -0,0 +1,7 @@
1
+ import { type ConstructProps } from './construct-props.js';
2
+ import { AdwSingleChildBase } from './single-child-base.js';
3
+ export declare class AdwBin extends AdwSingleChildBase {
4
+ /** `Adw.Bin:child` is the one destination, so it is also the fallback. */
5
+ static readonly builderSlots: readonly string[];
6
+ constructor(props?: ConstructProps<AdwBin>);
7
+ }
@@ -20,6 +20,16 @@ declare const AdwBottomSheet_base: (abstract new (...args: any[]) => {
20
20
  set marginStart(value: number | string);
21
21
  get marginEnd(): number;
22
22
  set marginEnd(value: number | string);
23
+ get visible(): boolean;
24
+ set visible(value: boolean | string);
25
+ get sensitive(): boolean;
26
+ set sensitive(value: boolean | string);
27
+ get name(): string;
28
+ set name(value: string | null);
29
+ get widthRequest(): number;
30
+ set widthRequest(value: number | string);
31
+ get heightRequest(): number;
32
+ set heightRequest(value: number | string);
23
33
  _emit(eventName: string): void;
24
34
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
25
35
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -17,6 +17,16 @@ declare const AdwButtonContent_base: (abstract new (...args: any[]) => {
17
17
  set marginStart(value: number | string);
18
18
  get marginEnd(): number;
19
19
  set marginEnd(value: number | string);
20
+ get visible(): boolean;
21
+ set visible(value: boolean | string);
22
+ get sensitive(): boolean;
23
+ set sensitive(value: boolean | string);
24
+ get name(): string;
25
+ set name(value: string | null);
26
+ get widthRequest(): number;
27
+ set widthRequest(value: number | string);
28
+ get heightRequest(): number;
29
+ set heightRequest(value: number | string);
20
30
  _emit(eventName: string): void;
21
31
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
22
32
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -32,6 +32,16 @@ declare const AdwCarousel_base: (abstract new (...args: any[]) => {
32
32
  set marginStart(value: number | string);
33
33
  get marginEnd(): number;
34
34
  set marginEnd(value: number | string);
35
+ get visible(): boolean;
36
+ set visible(value: boolean | string);
37
+ get sensitive(): boolean;
38
+ set sensitive(value: boolean | string);
39
+ get name(): string;
40
+ set name(value: string | null);
41
+ get widthRequest(): number;
42
+ set widthRequest(value: number | string);
43
+ get heightRequest(): number;
44
+ set heightRequest(value: number | string);
35
45
  _emit(eventName: string): void;
36
46
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
37
47
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -18,6 +18,16 @@ declare const AdwClamp_base: (abstract new (...args: any[]) => {
18
18
  set marginStart(value: number | string);
19
19
  get marginEnd(): number;
20
20
  set marginEnd(value: number | string);
21
+ get visible(): boolean;
22
+ set visible(value: boolean | string);
23
+ get sensitive(): boolean;
24
+ set sensitive(value: boolean | string);
25
+ get name(): string;
26
+ set name(value: string | null);
27
+ get widthRequest(): number;
28
+ set widthRequest(value: number | string);
29
+ get heightRequest(): number;
30
+ set heightRequest(value: number | string);
21
31
  _emit(eventName: string): void;
22
32
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
23
33
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -24,6 +24,16 @@ declare const AdwDataGrid_base: (abstract new (...args: any[]) => {
24
24
  set marginStart(value: number | string);
25
25
  get marginEnd(): number;
26
26
  set marginEnd(value: number | string);
27
+ get visible(): boolean;
28
+ set visible(value: boolean | string);
29
+ get sensitive(): boolean;
30
+ set sensitive(value: boolean | string);
31
+ get name(): string;
32
+ set name(value: string | null);
33
+ get widthRequest(): number;
34
+ set widthRequest(value: number | string);
35
+ get heightRequest(): number;
36
+ set heightRequest(value: number | string);
27
37
  _emit(eventName: string): void;
28
38
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
29
39
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -0,0 +1,62 @@
1
+ import { GridLayout, type View } from '@nativescript/core';
2
+ import { type ConstructProps } from './construct-props.js';
3
+ import { AdwSingleChildBase } from './single-child-base.js';
4
+ import { type AdwDialogPresentationNick } from './window-state.js';
5
+ /** `AdwDialog::closed`. */
6
+ export declare const ADW_DIALOG_CLOSED = "closed";
7
+ /** `AdwDialog::close-attempt` — `close()` on a dialog whose `can-close` is false. */
8
+ export declare const ADW_DIALOG_CLOSE_ATTEMPT = "close-attempt";
9
+ /** The scrim class; the card is `${ADW_DIALOG_CLASS}-card`. */
10
+ export declare const ADW_DIALOG_CLASS = "adw-dialog";
11
+ export declare class AdwDialog extends AdwSingleChildBase {
12
+ /** `child` is the one destination, so it is also the fallback. */
13
+ static readonly builderSlots: readonly string[];
14
+ protected readonly _card: GridLayout;
15
+ private _title;
16
+ private _contentWidth;
17
+ private _contentHeight;
18
+ private _followsContentSize;
19
+ private _canClose;
20
+ private _presentationMode;
21
+ /** The window `present (parent)` mounted this in, so closing can take it back out. */
22
+ private _host;
23
+ constructor(props?: ConstructProps<AdwDialog>);
24
+ protected get _ownClass(): string;
25
+ protected _adopt(view: View): void;
26
+ protected _release(view: View): void;
27
+ /** `AdwDialog:title`. */
28
+ get title(): string;
29
+ set title(value: string | null);
30
+ /** `AdwDialog:content-width` — `-1` follows the content. */
31
+ get contentWidth(): number;
32
+ set contentWidth(value: number | string);
33
+ /** `AdwDialog:content-height` — `-1` follows the content. */
34
+ get contentHeight(): number;
35
+ set contentHeight(value: number | string);
36
+ /** `AdwDialog:follows-content-size` — held; the card is content-sized by default. */
37
+ get followsContentSize(): boolean;
38
+ set followsContentSize(value: boolean | string);
39
+ /** `AdwDialog:can-close`. */
40
+ get canClose(): boolean;
41
+ set canClose(value: boolean | string);
42
+ /** `AdwDialog:presentation-mode` — a nick, or the constant. */
43
+ get presentationMode(): AdwDialogPresentationNick;
44
+ set presentationMode(value: AdwDialogPresentationNick);
45
+ /** Whether the dialog is on screen. */
46
+ get open(): boolean;
47
+ /**
48
+ * Show the dialog — `adw_dialog_present`.
49
+ *
50
+ * With a `parent` it is shown in the window that parent sits in. Without one it must
51
+ * already be mounted somewhere (the caller added it to a layout) and is revealed in
52
+ * place; a dialog with neither has no surface to appear on, which is refused by name
53
+ * rather than left collapsed at exit 0.
54
+ */
55
+ present(parent?: View | null): void;
56
+ /** `adw_dialog_close` — honours `can-close`, and takes a presented dialog back out of its window. */
57
+ close(): void;
58
+ /** `adw_dialog_force_close` — closes whatever `can-close` says. */
59
+ force_close(): void;
60
+ /** The card's size and place, from `content-*` and `presentation-mode`. */
61
+ private _layoutCard;
62
+ }
@@ -16,6 +16,16 @@ declare const AdwHeaderBar_base: (abstract new (...args: any[]) => {
16
16
  set marginStart(value: number | string);
17
17
  get marginEnd(): number;
18
18
  set marginEnd(value: number | string);
19
+ get visible(): boolean;
20
+ set visible(value: boolean | string);
21
+ get sensitive(): boolean;
22
+ set sensitive(value: boolean | string);
23
+ get name(): string;
24
+ set name(value: string | null);
25
+ get widthRequest(): number;
26
+ set widthRequest(value: number | string);
27
+ get heightRequest(): number;
28
+ set heightRequest(value: number | string);
19
29
  _emit(eventName: string): void;
20
30
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
21
31
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -26,6 +26,16 @@ declare const AdwImageButton_base: (abstract new (...args: any[]) => {
26
26
  set marginStart(value: number | string);
27
27
  get marginEnd(): number;
28
28
  set marginEnd(value: number | string);
29
+ get visible(): boolean;
30
+ set visible(value: boolean | string);
31
+ get sensitive(): boolean;
32
+ set sensitive(value: boolean | string);
33
+ get name(): string;
34
+ set name(value: string | null);
35
+ get widthRequest(): number;
36
+ set widthRequest(value: number | string);
37
+ get heightRequest(): number;
38
+ set heightRequest(value: number | string);
29
39
  _emit(eventName: string): void;
30
40
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
31
41
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -22,6 +22,16 @@ declare const AdwNavigationPage_base: (abstract new (...args: any[]) => {
22
22
  set marginStart(value: number | string);
23
23
  get marginEnd(): number;
24
24
  set marginEnd(value: number | string);
25
+ get visible(): boolean;
26
+ set visible(value: boolean | string);
27
+ get sensitive(): boolean;
28
+ set sensitive(value: boolean | string);
29
+ get name(): string;
30
+ set name(value: string | null);
31
+ get widthRequest(): number;
32
+ set widthRequest(value: number | string);
33
+ get heightRequest(): number;
34
+ set heightRequest(value: number | string);
25
35
  _emit(eventName: string): void;
26
36
  addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
27
37
  removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
@@ -29,6 +29,16 @@ declare const AdwNavigationView_base: (abstract new (...args: any[]) => {
29
29
  set marginStart(value: number | string);
30
30
  get marginEnd(): number;
31
31
  set marginEnd(value: number | string);
32
+ get visible(): boolean;
33
+ set visible(value: boolean | string);
34
+ get sensitive(): boolean;
35
+ set sensitive(value: boolean | string);
36
+ get name(): string;
37
+ set name(value: string | null);
38
+ get widthRequest(): number;
39
+ set widthRequest(value: number | string);
40
+ get heightRequest(): number;
41
+ set heightRequest(value: number | string);
32
42
  _emit(eventName: string): void;
33
43
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
34
44
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
@@ -20,6 +20,16 @@ declare const AdwPreferencesDialog_base: (abstract new (...args: any[]) => {
20
20
  set marginStart(value: number | string);
21
21
  get marginEnd(): number;
22
22
  set marginEnd(value: number | string);
23
+ get visible(): boolean;
24
+ set visible(value: boolean | string);
25
+ get sensitive(): boolean;
26
+ set sensitive(value: boolean | string);
27
+ get name(): string;
28
+ set name(value: string | null);
29
+ get widthRequest(): number;
30
+ set widthRequest(value: number | string);
31
+ get heightRequest(): number;
32
+ set heightRequest(value: number | string);
23
33
  _emit(eventName: string): void;
24
34
  addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
25
35
  removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;