@gjsify/adwaita-nativescript 0.47.0 → 0.49.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 (155) hide show
  1. package/lib/esm/_virtual/_rolldown/runtime.js +1 -1
  2. package/lib/esm/index.js +1 -1
  3. package/lib/esm/namespace/adw.js +1 -0
  4. package/lib/esm/namespace/gtk.js +1 -0
  5. package/lib/esm/widgets/adw-about-dialog.js +1 -1
  6. package/lib/esm/widgets/adw-action-row.js +1 -1
  7. package/lib/esm/widgets/adw-alert-dialog.js +1 -1
  8. package/lib/esm/widgets/adw-avatar.js +1 -1
  9. package/lib/esm/widgets/adw-banner.js +1 -1
  10. package/lib/esm/widgets/adw-bottom-sheet.js +1 -1
  11. package/lib/esm/widgets/adw-button-content.js +1 -1
  12. package/lib/esm/widgets/adw-button-row.js +1 -1
  13. package/lib/esm/widgets/adw-carousel.js +1 -1
  14. package/lib/esm/widgets/adw-clamp.js +1 -1
  15. package/lib/esm/widgets/adw-combo-row.js +1 -1
  16. package/lib/esm/widgets/adw-data-grid.js +1 -1
  17. package/lib/esm/widgets/adw-entry-row.js +1 -1
  18. package/lib/esm/widgets/adw-expander-row.js +1 -1
  19. package/lib/esm/widgets/adw-header-bar.js +1 -1
  20. package/lib/esm/widgets/adw-image-button.js +1 -1
  21. package/lib/esm/widgets/adw-inline-view-switcher.js +1 -1
  22. package/lib/esm/widgets/adw-navigation-split-view.js +1 -1
  23. package/lib/esm/widgets/adw-navigation-view.js +1 -1
  24. package/lib/esm/widgets/adw-overlay-split-view.js +1 -1
  25. package/lib/esm/widgets/adw-password-entry-row.js +1 -1
  26. package/lib/esm/widgets/adw-preferences-dialog.js +1 -1
  27. package/lib/esm/widgets/adw-preferences-group.js +1 -1
  28. package/lib/esm/widgets/adw-preferences-page.js +1 -1
  29. package/lib/esm/widgets/adw-shortcut-label.js +1 -1
  30. package/lib/esm/widgets/adw-sidebar.js +1 -1
  31. package/lib/esm/widgets/adw-slider-row.js +1 -1
  32. package/lib/esm/widgets/adw-spin-row.js +1 -1
  33. package/lib/esm/widgets/adw-spinner.js +1 -1
  34. package/lib/esm/widgets/adw-split-button.js +1 -1
  35. package/lib/esm/widgets/adw-status-page.js +1 -1
  36. package/lib/esm/widgets/adw-switch-row.js +1 -1
  37. package/lib/esm/widgets/adw-tab-view.js +1 -1
  38. package/lib/esm/widgets/adw-toast-overlay.js +1 -1
  39. package/lib/esm/widgets/adw-toggle-group.js +1 -1
  40. package/lib/esm/widgets/adw-toolbar-view.js +1 -1
  41. package/lib/esm/widgets/adw-view-stack.js +1 -1
  42. package/lib/esm/widgets/adw-view-switcher-bar.js +1 -1
  43. package/lib/esm/widgets/adw-view-switcher.js +1 -1
  44. package/lib/esm/widgets/adw-window-title.js +1 -1
  45. package/lib/esm/widgets/adw-wrap-box.js +1 -1
  46. package/lib/esm/widgets/avatar-view.js +1 -0
  47. package/lib/esm/widgets/box-layout.js +1 -0
  48. package/lib/esm/widgets/button-content.js +1 -1
  49. package/lib/esm/widgets/button-slot.js +1 -0
  50. package/lib/esm/widgets/construct-props.js +1 -0
  51. package/lib/esm/widgets/entry-row-view.js +1 -1
  52. package/lib/esm/widgets/gtk-align.js +1 -0
  53. package/lib/esm/widgets/gtk-box.js +1 -0
  54. package/lib/esm/widgets/gtk-button.js +1 -1
  55. package/lib/esm/widgets/gtk-drop-down.js +1 -1
  56. package/lib/esm/widgets/gtk-entry.js +1 -1
  57. package/lib/esm/widgets/gtk-image.js +1 -0
  58. package/lib/esm/widgets/gtk-label.js +1 -0
  59. package/lib/esm/widgets/gtk-menu-button.js +1 -1
  60. package/lib/esm/widgets/icon-theme.js +1 -0
  61. package/lib/esm/widgets/index.js +1 -1
  62. package/lib/esm/widgets/label-text.js +1 -0
  63. package/lib/esm/widgets/menu-sheet.js +1 -0
  64. package/lib/esm/widgets/signals.js +1 -0
  65. package/lib/esm/widgets/split-button.js +1 -1
  66. package/lib/esm/widgets/split-view-base.js +1 -1
  67. package/lib/esm/widgets/style-classes.js +1 -0
  68. package/lib/esm/widgets/view-switcher-base.js +1 -1
  69. package/lib/esm/widgets/view-switcher-model.js +1 -1
  70. package/lib/types/avatar.spec.d.ts +2 -0
  71. package/lib/types/box-layout.spec.d.ts +2 -0
  72. package/lib/types/button-slot.spec.d.ts +2 -0
  73. package/lib/types/construct-props.spec.d.ts +2 -0
  74. package/lib/types/icon-theme.spec.d.ts +2 -0
  75. package/lib/types/index.d.ts +4 -3
  76. package/lib/types/label-text.spec.d.ts +2 -0
  77. package/lib/types/namespace/adw.d.ts +38 -0
  78. package/lib/types/namespace/gtk.d.ts +7 -0
  79. package/lib/types/signals.spec.d.ts +2 -0
  80. package/lib/types/style-classes.spec.d.ts +2 -0
  81. package/lib/types/widgets/adw-about-dialog.d.ts +16 -3
  82. package/lib/types/widgets/adw-action-row.d.ts +38 -10
  83. package/lib/types/widgets/adw-alert-dialog.d.ts +30 -13
  84. package/lib/types/widgets/adw-avatar.d.ts +49 -3
  85. package/lib/types/widgets/adw-banner.d.ts +16 -3
  86. package/lib/types/widgets/adw-bottom-sheet.d.ts +32 -16
  87. package/lib/types/widgets/adw-button-content.d.ts +20 -6
  88. package/lib/types/widgets/adw-button-row.d.ts +10 -7
  89. package/lib/types/widgets/adw-carousel.d.ts +19 -7
  90. package/lib/types/widgets/adw-clamp.d.ts +17 -5
  91. package/lib/types/widgets/adw-combo-row.d.ts +8 -7
  92. package/lib/types/widgets/adw-data-grid.d.ts +17 -4
  93. package/lib/types/widgets/adw-entry-row.d.ts +16 -14
  94. package/lib/types/widgets/adw-expander-row.d.ts +21 -10
  95. package/lib/types/widgets/adw-header-bar.d.ts +39 -14
  96. package/lib/types/widgets/adw-image-button.d.ts +22 -5
  97. package/lib/types/widgets/adw-inline-view-switcher.d.ts +2 -1
  98. package/lib/types/widgets/adw-navigation-split-view.d.ts +2 -1
  99. package/lib/types/widgets/adw-navigation-view.d.ts +40 -21
  100. package/lib/types/widgets/adw-overlay-split-view.d.ts +3 -2
  101. package/lib/types/widgets/adw-password-entry-row.d.ts +2 -1
  102. package/lib/types/widgets/adw-preferences-dialog.d.ts +16 -3
  103. package/lib/types/widgets/adw-preferences-group.d.ts +19 -6
  104. package/lib/types/widgets/adw-preferences-page.d.ts +37 -8
  105. package/lib/types/widgets/adw-shortcut-label.d.ts +15 -2
  106. package/lib/types/widgets/adw-sidebar.d.ts +15 -2
  107. package/lib/types/widgets/adw-slider-row.d.ts +30 -19
  108. package/lib/types/widgets/adw-spin-row.d.ts +18 -14
  109. package/lib/types/widgets/adw-spinner.d.ts +14 -2
  110. package/lib/types/widgets/adw-split-button.d.ts +60 -12
  111. package/lib/types/widgets/adw-status-page.d.ts +22 -8
  112. package/lib/types/widgets/adw-switch-row.d.ts +2 -1
  113. package/lib/types/widgets/adw-tab-view.d.ts +34 -8
  114. package/lib/types/widgets/adw-toast-overlay.d.ts +19 -7
  115. package/lib/types/widgets/adw-toggle-group.d.ts +14 -2
  116. package/lib/types/widgets/adw-toolbar-view.d.ts +21 -8
  117. package/lib/types/widgets/adw-view-stack.d.ts +38 -5
  118. package/lib/types/widgets/adw-view-switcher-bar.d.ts +16 -3
  119. package/lib/types/widgets/adw-view-switcher.d.ts +2 -1
  120. package/lib/types/widgets/adw-window-title.d.ts +16 -3
  121. package/lib/types/widgets/adw-wrap-box.d.ts +21 -8
  122. package/lib/types/widgets/avatar-view.d.ts +57 -0
  123. package/lib/types/widgets/bottom-sheet-state.d.ts +1 -1
  124. package/lib/types/widgets/box-layout.d.ts +39 -0
  125. package/lib/types/widgets/button-content.d.ts +4 -4
  126. package/lib/types/widgets/button-slot.d.ts +16 -0
  127. package/lib/types/widgets/construct-props.d.ts +82 -0
  128. package/lib/types/widgets/entry-row-view.d.ts +9 -8
  129. package/lib/types/widgets/gtk-align.d.ts +59 -0
  130. package/lib/types/widgets/gtk-box.d.ts +75 -0
  131. package/lib/types/widgets/gtk-button.d.ts +110 -28
  132. package/lib/types/widgets/gtk-drop-down.d.ts +21 -8
  133. package/lib/types/widgets/gtk-entry.d.ts +15 -2
  134. package/lib/types/widgets/gtk-image.d.ts +42 -0
  135. package/lib/types/widgets/gtk-label.d.ts +82 -0
  136. package/lib/types/widgets/gtk-menu-button.d.ts +29 -18
  137. package/lib/types/widgets/icon-theme.d.ts +77 -0
  138. package/lib/types/widgets/icons.d.ts +3 -1
  139. package/lib/types/widgets/index.d.ts +18 -5
  140. package/lib/types/widgets/label-text.d.ts +13 -0
  141. package/lib/types/widgets/menu-sheet.d.ts +58 -0
  142. package/lib/types/widgets/row-state.d.ts +1 -1
  143. package/lib/types/widgets/signals.d.ts +40 -0
  144. package/lib/types/widgets/split-button.d.ts +2 -21
  145. package/lib/types/widgets/split-view-base.d.ts +18 -6
  146. package/lib/types/widgets/status-page-content.d.ts +1 -1
  147. package/lib/types/widgets/style-classes.d.ts +61 -0
  148. package/lib/types/widgets/view-switcher-base.d.ts +12 -1
  149. package/lib/types/widgets/view-switcher-model.d.ts +3 -12
  150. package/package.json +14 -10
  151. package/src/theme/adwaita.css +66 -8
  152. package/lib/esm/namespace.js +0 -1
  153. package/lib/esm/widgets/adw-icon.js +0 -1
  154. package/lib/types/namespace.d.ts +0 -92
  155. package/lib/types/widgets/adw-icon.d.ts +0 -25
@@ -1,7 +1,8 @@
1
1
  export { assertNativeScript, isNativeScript, isAndroid, isIOS } from '@gjsify/native-platform';
2
- export { AdwPreferencesPage, AdwPreferencesGroup, AdwActionRow, AdwSwitchRow, NOTIFY_ACTIVE, AdwEntryRow, NOTIFY_TEXT, AdwPasswordEntryRow, GtkEntry, ENTRY_ACTIVATE, NOTIFY_ENTRY_TEXT, AdwComboRow, ComboState, NOTIFY_SELECTED, GtkDropDown, NOTIFY_DROP_DOWN_SELECTED, AdwSpinRow, SpinState, NOTIFY_VALUE, AdwSliderRow, NOTIFY_SLIDER_VALUE, AdwExpanderRow, ExpanderState, NOTIFY_EXPANDED, GtkButton, AdwImageButton, DEFAULT_ICON_BUTTON_ICON_SIZE, GtkMenuButton, MENU_ITEM_ACTIVATED, AdwIcon, DEFAULT_ADW_ICON_SIZE, AdwBanner, BUTTON_CLICKED, AdwAvatar, DEFAULT_AVATAR_SIZE, avatarInitials, AdwWindowTitle, AdwClamp, DEFAULT_CLAMP_MAX_SIZE, AdwHeaderBar, AdwToolbarView, AdwWrapBox, AdwDataGrid, ROW_ACTIVATED, dataGridCellClass, dataGridItemSpec, dataGridRowClass, dataGridShapeKey, dataGridTracksKey, parseDataGridWidth, DATA_GRID_HEADER_CELL_CLASS, DATA_GRID_HEADER_ROW_CLASS, DATA_GRID_SECTION_CELL_CLASS, AdwSpinner, DEFAULT_SPINNER_SIZE, AdwStatusPage, AdwButtonRow, ACTIVATED, AdwButtonContent, AdwSplitButton, CLICKED, MENU_TAPPED, AdwToggleGroup, ToggleGroupState, NOTIFY_TOGGLE_SELECTED, applyAdwaitaNsAccent, clearAdwaitaNsAccent, ADWAITA_NS_ACCENT_RULES, adwaitaNsAccentColor, adwaitaNsAccentCss, AdwShortcutLabel, 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, AdwViewStack, NOTIFY_VISIBLE_CHILD, AdwViewSwitcherBase, NOTIFY_VIEW_SELECTED, AdwViewSwitcher, AdwViewSwitcherBar, AdwInlineViewSwitcher, AdwTabView, AdwCarousel, DEFAULT_CAROUSEL_PAGE_WIDTH, NOTIFY_POSITION, AdwNavigationView, NOTIFY_VISIBLE_PAGE, AdwSplitViewBase, NOTIFY_SHOW_SIDEBAR, AdwNavigationSplitView, AdwOverlaySplitView, NsNavigationSplitViewState, NsOverlaySplitViewState, splitViewColumns, AdwSidebar, NOTIFY_SIDEBAR_SELECTED, AdwBottomSheet, NOTIFY_OPEN, AdwToast, AdwToastOverlay, AdwToastQueue, DEFAULT_TOAST_TIMEOUT, TOAST_BUTTON_CLICKED, AdwAlertDialog, AdwAlertResponses, NOTIFY_RESPONSE, AdwAboutDialog, ABOUT_CLOSED, AdwPreferencesDialog, PREFERENCES_CLOSED, attachRowPressFeedback, 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';
3
- export type { NotifyActiveEventData, NotifyTextEventData, NotifyEntryTextEventData, AdwComboOption, ComboStateChange, ComboStateListener, NotifySelectedEventData, NotifyDropDownSelectedEventData, NotifyValueEventData, SpinStateChange, SpinStateListener, NotifySliderValueEventData, NotifyExpandedEventData, ExpanderStateListener, AdwButtonVariant, AdwMenuItem, MenuItemActivatedEventData, MenuTappedEventData, RowActivatedEventData, DataGridItemSpec, NotifyToggleSelectedEventData, ToggleGroupStateChange, ToggleGroupStateListener, AccentRole, AccentRule, ShortcutLabelRenderPlan, ShortcutLabelViewSpec, AdwViewStackPage, NotifyVisibleChildEventData, AdwViewPage, NotifyViewSelectedEventData, NotifyPositionEventData, NotifyVisiblePageEventData, NotifyShowSidebarEventData, NsShowSidebarNotification, NsSplitViewHost, NsSplitViewState, NotifySidebarSelectedEventData, NotifyOpenEventData, AdwToastOptions, AdwToastQueueHandlers, AdwToastQueueOptions, ToastScheduler, ToastTimerHandle, NotifyResponseEventData, AdwAlertResponse, AdwResponseAppearance, AdwResponseOptions, OrderedConfirmResponses, SymbolicIconOptions, IconPath, AdwColorScheme, AdwBreakpointHandlers, BreakpointBound, BreakpointConditionGroup, BreakpointConditionLeaf, BreakpointConditionNode, BreakpointDimension, BreakpointSize, } from './widgets/index.js';
4
- export { Adw, Gtk } from './namespace.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, 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, 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';
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, AdwViewStackPage, 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
+ export * as Adw from './namespace/adw.js';
5
+ export * as Gtk from './namespace/gtk.js';
5
6
  export { ADWAITA_SANS_FONT_FAMILY, ADWAITA_SANS_TTF_FILES, adwaitaFontInstallInstructions, hasAdwaitaSans, } from './fonts.js';
6
7
  /**
7
8
  * One-call convenience setup for the Adwaita NativeScript layer.
@@ -0,0 +1,2 @@
1
+ declare const _default: () => Promise<void>;
2
+ export default _default;
@@ -0,0 +1,38 @@
1
+ export { AdwAboutDialog as AboutDialog } from '../widgets/adw-about-dialog.js';
2
+ export { AdwActionRow as ActionRow } from '../widgets/adw-action-row.js';
3
+ export { AdwAlertDialog as AlertDialog } from '../widgets/adw-alert-dialog.js';
4
+ export { AdwAvatar as Avatar } from '../widgets/adw-avatar.js';
5
+ export { AdwBanner as Banner } from '../widgets/adw-banner.js';
6
+ export { AdwBottomSheet as BottomSheet } from '../widgets/adw-bottom-sheet.js';
7
+ export { AdwButtonContent as ButtonContent } from '../widgets/adw-button-content.js';
8
+ export { AdwButtonRow as ButtonRow } from '../widgets/adw-button-row.js';
9
+ export { AdwCarousel as Carousel } from '../widgets/adw-carousel.js';
10
+ export { AdwClamp as Clamp } from '../widgets/adw-clamp.js';
11
+ export { AdwComboRow as ComboRow } from '../widgets/adw-combo-row.js';
12
+ export { AdwEntryRow as EntryRow } from '../widgets/adw-entry-row.js';
13
+ export { AdwExpanderRow as ExpanderRow } from '../widgets/adw-expander-row.js';
14
+ export { AdwHeaderBar as HeaderBar } from '../widgets/adw-header-bar.js';
15
+ export { AdwInlineViewSwitcher as InlineViewSwitcher } from '../widgets/adw-inline-view-switcher.js';
16
+ export { AdwNavigationSplitView as NavigationSplitView } from '../widgets/adw-navigation-split-view.js';
17
+ export { AdwNavigationView as NavigationView } from '../widgets/adw-navigation-view.js';
18
+ export { AdwOverlaySplitView as OverlaySplitView } from '../widgets/adw-overlay-split-view.js';
19
+ export { AdwPasswordEntryRow as PasswordEntryRow } from '../widgets/adw-password-entry-row.js';
20
+ export { AdwPreferencesDialog as PreferencesDialog } from '../widgets/adw-preferences-dialog.js';
21
+ export { AdwPreferencesGroup as PreferencesGroup } from '../widgets/adw-preferences-group.js';
22
+ export { AdwPreferencesPage as PreferencesPage } from '../widgets/adw-preferences-page.js';
23
+ export { AdwShortcutLabel as ShortcutLabel } from '../widgets/adw-shortcut-label.js';
24
+ export { AdwSidebar as Sidebar } from '../widgets/adw-sidebar.js';
25
+ export { AdwSpinRow as SpinRow } from '../widgets/adw-spin-row.js';
26
+ export { AdwSpinner as Spinner } from '../widgets/adw-spinner.js';
27
+ export { AdwSplitButton as SplitButton } from '../widgets/adw-split-button.js';
28
+ export { AdwStatusPage as StatusPage } from '../widgets/adw-status-page.js';
29
+ export { AdwSwitchRow as SwitchRow } from '../widgets/adw-switch-row.js';
30
+ export { AdwTabView as TabView } from '../widgets/adw-tab-view.js';
31
+ export { AdwToastOverlay as ToastOverlay } from '../widgets/adw-toast-overlay.js';
32
+ export { AdwToggleGroup as ToggleGroup } from '../widgets/adw-toggle-group.js';
33
+ export { AdwToolbarView as ToolbarView } from '../widgets/adw-toolbar-view.js';
34
+ export { AdwViewStack as ViewStack } from '../widgets/adw-view-stack.js';
35
+ export { AdwViewSwitcher as ViewSwitcher } from '../widgets/adw-view-switcher.js';
36
+ export { AdwViewSwitcherBar as ViewSwitcherBar } from '../widgets/adw-view-switcher-bar.js';
37
+ export { AdwWindowTitle as WindowTitle } from '../widgets/adw-window-title.js';
38
+ export { AdwWrapBox as WrapBox } from '../widgets/adw-wrap-box.js';
@@ -0,0 +1,7 @@
1
+ export { GtkBox as Box } from '../widgets/gtk-box.js';
2
+ export { GtkButton as Button } from '../widgets/gtk-button.js';
3
+ export { GtkDropDown as DropDown } from '../widgets/gtk-drop-down.js';
4
+ export { GtkEntry as Entry } from '../widgets/gtk-entry.js';
5
+ export { GtkImage as Image } from '../widgets/gtk-image.js';
6
+ export { GtkLabel as Label } from '../widgets/gtk-label.js';
7
+ export { GtkMenuButton as MenuButton } from '../widgets/gtk-menu-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;
@@ -1,7 +1,19 @@
1
- import { GridLayout, Label, StackLayout } from '@nativescript/core';
1
+ import { GridLayout, Label, StackLayout, type EventData } from '@nativescript/core';
2
+ import { type ConstructProps } from './construct-props.js';
2
3
  /** Event name emitted when the dialog is closed. */
3
4
  export declare const CLOSED = "closed";
4
- export declare class AdwAboutDialog extends GridLayout {
5
+ declare const AdwAboutDialog_base: (abstract new (...args: any[]) => {
6
+ connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => void): number;
7
+ disconnect(handlerId: number): void;
8
+ _emit(eventName: string): void;
9
+ addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
10
+ removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
11
+ notify<T extends EventData>(data: T): void;
12
+ notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
13
+ set(name: string, value: unknown): void;
14
+ get(name: string): unknown;
15
+ }) & typeof GridLayout;
16
+ export declare class AdwAboutDialog extends AdwAboutDialog_base {
5
17
  protected readonly _card: StackLayout;
6
18
  protected readonly _iconLabel: Label;
7
19
  protected readonly _nameLabel: Label;
@@ -17,7 +29,7 @@ export declare class AdwAboutDialog extends GridLayout {
17
29
  private _comments;
18
30
  private _website;
19
31
  private _copyright;
20
- constructor();
32
+ constructor(props?: ConstructProps<AdwAboutDialog>);
21
33
  private _addCardLabel;
22
34
  /** The application name (bold, centered). */
23
35
  get applicationName(): string;
@@ -66,3 +78,4 @@ export declare class AdwAboutDialog extends GridLayout {
66
78
  get open(): boolean;
67
79
  set open(value: boolean | string);
68
80
  }
81
+ export {};
@@ -1,9 +1,21 @@
1
1
  import type { View } from '@nativescript/core';
2
- import { GridLayout, StackLayout, Label } from '@nativescript/core';
2
+ import { GridLayout, StackLayout, Label, type EventData } from '@nativescript/core';
3
3
  import { ActionRowState } from './row-state.js';
4
+ import { type ConstructProps } from './construct-props.js';
4
5
  /** Event name emitted when the row is activated. Mirrors `Adw.ActionRow::activated`. */
5
6
  export declare const ACTIVATED = "activated";
6
- export declare class AdwActionRow extends GridLayout {
7
+ declare const AdwActionRow_base: (abstract new (...args: any[]) => {
8
+ connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => void): number;
9
+ disconnect(handlerId: number): void;
10
+ _emit(eventName: string): void;
11
+ addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
12
+ removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
13
+ notify<T extends EventData>(data: T): void;
14
+ notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
15
+ set(name: string, value: unknown): void;
16
+ get(name: string): unknown;
17
+ }) & typeof GridLayout;
18
+ export declare class AdwActionRow extends AdwActionRow_base {
7
19
  /**
8
20
  * Whether libadwaita would answer `ADW_IS_ACTION_ROW` for this row, which decides
9
21
  * whether the preferences SEARCH consults its subtitle.
@@ -23,9 +35,17 @@ export declare class AdwActionRow extends GridLayout {
23
35
  protected readonly _rowState: ActionRowState<View>;
24
36
  private _prefix;
25
37
  private _suffix;
26
- constructor();
27
- /** Install a prefix widget in column 0. Replaces any previous one; `null` clears. */
28
- setPrefix(view: View | null): void;
38
+ constructor(props?: ConstructProps<AdwActionRow>);
39
+ /**
40
+ * Install a prefix widget in column 0 — `adw_action_row_add_prefix`.
41
+ *
42
+ * ONE slot per edge on this port, where libadwaita keeps a box: a second call
43
+ * REPLACES the first. The verb converges (a widget goes in, on both sides) and the
44
+ * cardinality is the declared remainder — the method ledger in
45
+ * `scripts/check-vocabulary-alignment.mjs` compares names, and ADR 0034 § Amendment 14
46
+ * names this as the divergence a name cannot carry. `remove()` clears the slot.
47
+ */
48
+ add_prefix(view: View): void;
29
49
  get prefix(): View | null;
30
50
  /** The row title (column 1, top line). */
31
51
  get title(): string;
@@ -36,8 +56,15 @@ export declare class AdwActionRow extends GridLayout {
36
56
  */
37
57
  get subtitle(): string;
38
58
  set subtitle(value: string);
39
- /** Install a suffix widget in column 2. Replaces any previous one; `null` clears. */
40
- setSuffix(view: View | null): void;
59
+ /** Install a suffix widget in column 2 — `adw_action_row_add_suffix`. Same one-slot rule as {@link add_prefix}. */
60
+ add_suffix(view: View): void;
61
+ /**
62
+ * Remove a prefix or suffix previously added — `adw_action_row_remove`.
63
+ *
64
+ * A view in neither slot throws, where C logs a critical and returns: a silent
65
+ * no-op here is the failure the construct-props bag refuses one door over.
66
+ */
67
+ remove(view: View): void;
41
68
  get suffix(): View | null;
42
69
  /**
43
70
  * An XML child goes to a named edge, and a bare one to the SUFFIX.
@@ -48,9 +75,9 @@ export declare class AdwActionRow extends GridLayout {
48
75
  * `adw-row-suffix` class and no column, so it lands on top of the title.
49
76
  *
50
77
  * The subclasses inherit it, and that is deliberate but sharp-edged: a switch row
51
- * builds its own `Switch` as the suffix in its constructor, and `setSuffix`
52
- * REPLACES. An explicit `<AdwSwitchRow.suffix>` therefore takes the switch's
53
- * place, which is what "set the suffix" has to mean.
78
+ * builds its own `Switch` as the suffix in its constructor, and `add_suffix` on this
79
+ * one-slot port REPLACES. An explicit `<adw:SwitchRow.suffix>` therefore takes the
80
+ * switch's place, which is what "the suffix" has to mean here.
54
81
  */
55
82
  _addChildFromBuilder(name: string, view: View): void;
56
83
  /** `Adw.ActionRow:activatable-widget` — the widget this row activates. */
@@ -92,3 +119,4 @@ export declare class AdwActionRow extends GridLayout {
92
119
  /** Push the derived label text + visibility onto the two `Label`s. */
93
120
  protected _applyLabels(): void;
94
121
  }
122
+ export {};
@@ -1,6 +1,7 @@
1
1
  import { Observable, type EventData } from '@nativescript/core';
2
2
  import { AdwAlertResponses } from '@gjsify/adwaita-core';
3
3
  import type { AdwResponseAppearance, AdwResponseOptions } from '@gjsify/adwaita-core';
4
+ import { type ConstructProps } from './construct-props.js';
4
5
  export { AdwAlertResponses } from '@gjsify/adwaita-core';
5
6
  export type { AdwAlertResponse, AdwResponseAppearance, AdwResponseOptions, OrderedConfirmResponses, } from '@gjsify/adwaita-core';
6
7
  /** Event name emitted when a response is chosen. Mirrors GObject `notify::response`. */
@@ -10,28 +11,44 @@ export interface NotifyResponseEventData extends EventData {
10
11
  /** The chosen response id. */
11
12
  response: string;
12
13
  }
13
- export declare class AdwAlertDialog extends Observable {
14
+ declare const AdwAlertDialog_base: (abstract new (...args: any[]) => {
15
+ connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => void): number;
16
+ disconnect(handlerId: number): void;
17
+ _emit(eventName: string): void;
18
+ addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
19
+ removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
20
+ notify<T extends EventData>(data: T): void;
21
+ notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
22
+ set(name: string, value: unknown): void;
23
+ get(name: string): unknown;
24
+ }) & typeof Observable;
25
+ export declare class AdwAlertDialog extends AdwAlertDialog_base {
14
26
  /** The headless response registry + ordering + resolution (ADR 0004). */
15
27
  private readonly _responses;
16
- constructor(heading?: string, body?: string);
28
+ constructor(heading?: string, body?: string, props?: ConstructProps<AdwAlertDialog>);
17
29
  /** The dialog heading (title). */
18
30
  get heading(): string;
19
31
  set heading(value: string);
20
32
  /** The dialog body text. */
21
33
  get body(): string;
22
34
  set body(value: string);
23
- /** Register a response button (`id` is what `present()` resolves to). */
24
- addResponse(id: string, label: string, options?: AdwResponseOptions): void;
25
- /** Register many responses at once (`id, label, id, label, …`). */
35
+ /** Register a response button — `adw_alert_dialog_add_response`; `id` is what `present()` resolves to. */
36
+ add_response(id: string, label: string, options?: AdwResponseOptions): void;
37
+ /**
38
+ * Register many responses at once (`id, label, id, label, …`).
39
+ *
40
+ * Keeps its own name: the C counterpart `adw_alert_dialog_add_responses` is varargs,
41
+ * which introspection skips, so no GJS caller has a spelling of it to converge on.
42
+ */
26
43
  addResponses(...idLabelPairs: string[]): void;
27
- /** Set a registered response's visual emphasis (suggested/destructive). */
28
- setResponseAppearance(id: string, appearance: AdwResponseAppearance): void;
29
- /** A registered response's emphasis (`'default'` for an unknown id). */
30
- getResponseAppearance(id: string): AdwResponseAppearance;
31
- /** Enable/disable a registered response. */
32
- setResponseEnabled(id: string, enabled: boolean): void;
33
- /** Whether a registered response is enabled (`true` for an unknown id). */
34
- getResponseEnabled(id: string): boolean;
44
+ /** Set a registered response's emphasis — `adw_alert_dialog_set_response_appearance`. */
45
+ set_response_appearance(id: string, appearance: AdwResponseAppearance): void;
46
+ /** A registered response's emphasis — `adw_alert_dialog_get_response_appearance`; `'default'` for an unknown id. */
47
+ get_response_appearance(id: string): AdwResponseAppearance;
48
+ /** Enable/disable a registered response — `adw_alert_dialog_set_response_enabled`. */
49
+ set_response_enabled(id: string, enabled: boolean): void;
50
+ /** Whether a registered response is enabled — `adw_alert_dialog_get_response_enabled`; `true` for an unknown id. */
51
+ get_response_enabled(id: string): boolean;
35
52
  /** The default (emphasised) response id, used as the OK button in `confirm()`. */
36
53
  get defaultResponse(): string | null;
37
54
  set defaultResponse(id: string | null);
@@ -1,20 +1,66 @@
1
1
  import { GridLayout, Label } from '@nativescript/core';
2
2
  import { avatarColor, avatarInitials } from './avatar-color.js';
3
+ import { AVATAR_DEFAULT_ICON } from './avatar-view.js';
4
+ import { GtkImage } from './gtk-image.js';
5
+ import { type ConstructProps } from './construct-props.js';
3
6
  /** Default avatar diameter in DIPs (Adwaita's common avatar size). */
4
7
  export declare const DEFAULT_AVATAR_SIZE = 48;
5
8
  export { avatarColor, avatarInitials };
6
- export declare class AdwAvatar extends GridLayout {
9
+ export { AVATAR_DEFAULT_ICON };
10
+ declare const AdwAvatar_base: (abstract new (...args: any[]) => {
11
+ connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => void): number;
12
+ disconnect(handlerId: number): void;
13
+ _emit(eventName: string): void;
14
+ addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
15
+ removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
16
+ notify<T extends import("@nativescript/core").EventData>(data: T): void;
17
+ notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
18
+ set(name: string, value: unknown): void;
19
+ get(name: string): unknown;
20
+ }) & typeof GridLayout;
21
+ export declare class AdwAvatar extends AdwAvatar_base {
7
22
  /** The centered initials label. */
8
23
  protected readonly _label: Label;
24
+ /** The fallback symbolic icon, shown when the initials are not. */
25
+ protected readonly _icon: GtkImage;
9
26
  private _text;
10
27
  private _size;
11
- constructor();
28
+ private _showInitials;
29
+ private _iconName;
30
+ constructor(props?: ConstructProps<AdwAvatar>);
12
31
  /** Sync the inline width/height/border-radius/font-size for the current size. */
13
32
  private _applySize;
14
- /** The name the initials are derived from. */
33
+ /**
34
+ * Paint the per-name colour (`set_class_color`) onto the circle and both children.
35
+ *
36
+ * The glyph is PINNED to the palette's `fg` rather than left following the light/dark
37
+ * scheme: it sits on the accent fill in both, where a scheme-coloured symbolic would
38
+ * go near-black on light and vanish.
39
+ */
40
+ private _applyColor;
41
+ /** Show the child `update_visibility` says, and give the icon arm its glyph. */
42
+ private _applyMode;
43
+ /** The name the initials are derived from, and the colour is hashed from. */
15
44
  get text(): string;
16
45
  set text(value: string);
17
46
  /** The circular diameter in DIPs. Updates width/height/border-radius. */
18
47
  get size(): number;
19
48
  set size(value: number | string);
49
+ /**
50
+ * Whether the derived initials are shown instead of the fallback icon.
51
+ *
52
+ * `false` by default, as in the C — and a name alone does not switch it: both
53
+ * halves of `has_initials` must hold.
54
+ */
55
+ get showInitials(): boolean;
56
+ set showInitials(value: boolean | string);
57
+ /**
58
+ * The fallback icon: an Adwaita icon NAME (`'avatar-default-symbolic'`) or a
59
+ * symbolic SVG SOURCE string (e.g. `contactNewSymbolic`
60
+ * from `@gjsify/adwaita-icons`) — NOT an icon-theme name, because nothing on this
61
+ * runtime resolves one. Empty falls back to {@link AVATAR_DEFAULT_ICON}, the way an
62
+ * unset `icon-name` falls back to `adw-avatar-default-symbolic` under GTK.
63
+ */
64
+ get iconName(): string;
65
+ set iconName(value: string);
20
66
  }
@@ -1,15 +1,27 @@
1
- import { Button, GridLayout, Label } from '@nativescript/core';
1
+ import { Button, GridLayout, Label, type EventData } from '@nativescript/core';
2
2
  import type { AdwBannerButtonStyle } from '@gjsify/adwaita-core';
3
+ import { type ConstructProps } from './construct-props.js';
3
4
  /** Event name emitted when the banner's action button is tapped. */
4
5
  export declare const BUTTON_CLICKED = "buttonClicked";
5
- export declare class AdwBanner extends GridLayout {
6
+ declare const AdwBanner_base: (abstract new (...args: any[]) => {
7
+ connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => void): number;
8
+ disconnect(handlerId: number): void;
9
+ _emit(eventName: string): void;
10
+ addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
11
+ removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
12
+ notify<T extends EventData>(data: T): void;
13
+ notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
14
+ set(name: string, value: unknown): void;
15
+ get(name: string): unknown;
16
+ }) & typeof GridLayout;
17
+ export declare class AdwBanner extends AdwBanner_base {
6
18
  /** The message label (column 0). */
7
19
  protected readonly _titleLabel: Label;
8
20
  /** The action button (column 1, only in the tree when a label is set). */
9
21
  protected readonly _button: Button;
10
22
  private _hasButton;
11
23
  private readonly _props;
12
- constructor();
24
+ constructor(props?: ConstructProps<AdwBanner>);
13
25
  /** The banner message. Pango markup when {@link useMarkup}. */
14
26
  get title(): string;
15
27
  set title(value: string);
@@ -42,3 +54,4 @@ export declare class AdwBanner extends GridLayout {
42
54
  set revealed(value: boolean | string);
43
55
  private _renderTitle;
44
56
  }
57
+ export {};
@@ -2,9 +2,21 @@ import type { View } from '@nativescript/core';
2
2
  import { GridLayout, StackLayout } from '@nativescript/core';
3
3
  import type { BottomSheetCloseOutcome, BottomSheetCloseSource } from '@gjsify/adwaita-core';
4
4
  import { CLOSE_ATTEMPT, NOTIFY_OPEN, SHEET_CLOSE, type NotifyOpenEventData } from './bottom-sheet-state.js';
5
+ import { type ConstructProps } from './construct-props.js';
5
6
  export { CLOSE_ATTEMPT, NOTIFY_OPEN, SHEET_CLOSE };
6
7
  export type { NotifyOpenEventData };
7
- export declare class AdwBottomSheet extends GridLayout {
8
+ declare const AdwBottomSheet_base: (abstract new (...args: any[]) => {
9
+ connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => void): number;
10
+ disconnect(handlerId: number): void;
11
+ _emit(eventName: string): void;
12
+ addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
13
+ removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
14
+ notify<T extends import("@nativescript/core").EventData>(data: T): void;
15
+ notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
16
+ set(name: string, value: unknown): void;
17
+ get(name: string): unknown;
18
+ }) & typeof GridLayout;
19
+ export declare class AdwBottomSheet extends AdwBottomSheet_base {
8
20
  /** The always-visible content layer. */
9
21
  private _content;
10
22
  /** The bottom sheet panel wrapper (drag handle + sheet child). */
@@ -12,11 +24,11 @@ export declare class AdwBottomSheet extends GridLayout {
12
24
  private _sheetChild;
13
25
  /** The shared open/can-close model — the single source of truth for both. */
14
26
  private readonly _state;
15
- constructor();
16
- /** Set (or replace) the always-visible content layer (painted under the sheet). */
17
- setContent(view: View | null): void;
18
- /** Set (or replace) the sheet panel's child (shown when open). */
19
- setSheet(view: View | null): void;
27
+ constructor(props?: ConstructProps<AdwBottomSheet>);
28
+ /** Set (or replace) the always-visible content layer (painted under the sheet) — `adw_bottom_sheet_set_content`. */
29
+ set_content(view: View | null): void;
30
+ /** Set (or replace) the sheet panel's child (shown when open) — `adw_bottom_sheet_set_sheet`. */
31
+ set_sheet(view: View | null): void;
20
32
  /**
21
33
  * An XML child asks for the sheet or for the content, and a bare one is CONTENT —
22
34
  * the always-visible layer, which is what a sheet with nothing behind it would be
@@ -28,23 +40,27 @@ export declare class AdwBottomSheet extends GridLayout {
28
40
  /**
29
41
  * The always-visible content layer, or `null`.
30
42
  *
31
- * A read-back for `setContent`: a write-only pane cannot be asserted, and the XML
43
+ * A read-back for `set_content`: a write-only pane cannot be asserted, and the XML
32
44
  * door made that concrete — the gallery probe has to ask the widget where the
33
45
  * child it declared actually went.
34
46
  */
35
47
  get content(): View | null;
36
- /** The sheet panel's child, or `null` — the read-back for `setSheet`. */
48
+ /** The sheet panel's child, or `null` — the read-back for `set_sheet`. */
37
49
  get sheet(): View | null;
38
- /** Open the sheet programmatically. */
39
- open(): void;
40
50
  /**
41
- * Close the sheet programmatically. Like `AdwBottomSheet:open` this ignores
42
- * `can-close`; a user-driven dismissal belongs in {@link requestClose}.
51
+ * Whether the sheet is open (`AdwBottomSheet:open`). Toggling shows/hides the panel
52
+ * and emits `notify::open`.
53
+ *
54
+ * Like the GTK property this ignores `can-close`; a user-driven dismissal belongs in
55
+ * {@link requestClose}.
56
+ *
57
+ * BREAKING: was `openState`, and `sheet.open = true` / `= false` replace the port's
58
+ * own `open()` / `close()` methods, which libadwaita has no counterpart for. Why the
59
+ * collision with them was not a reason to keep the divergent name is ADR 0034
60
+ * § Amendment 11.
43
61
  */
44
- close(): void;
45
- /** Whether the sheet is open. Toggling shows/hides the panel + emits `notify::open`. */
46
- get openState(): boolean;
47
- set openState(value: boolean | string);
62
+ get open(): boolean;
63
+ set open(value: boolean | string);
48
64
  /**
49
65
  * Whether the user may dismiss the sheet (`AdwBottomSheet:can-close`). When
50
66
  * off, a refused dismissal emits `close-attempt` instead of closing.
@@ -1,14 +1,26 @@
1
1
  import { Label, StackLayout, type View } from '@nativescript/core';
2
2
  import type { ButtonContentEllipsize } from '@gjsify/adwaita-core';
3
- import { AdwIcon } from './adw-icon.js';
4
- export declare class AdwButtonContent extends StackLayout {
3
+ import { GtkImage } from './gtk-image.js';
4
+ import { type ConstructProps } from './construct-props.js';
5
+ declare const AdwButtonContent_base: (abstract new (...args: any[]) => {
6
+ connect(eventName: string, callback: (self: /*elided*/ any, data: import("@nativescript/core").EventData) => void): number;
7
+ disconnect(handlerId: number): void;
8
+ _emit(eventName: string): void;
9
+ addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
10
+ removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
11
+ notify<T extends import("@nativescript/core").EventData>(data: T): void;
12
+ notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
13
+ set(name: string, value: unknown): void;
14
+ get(name: string): unknown;
15
+ }) & typeof StackLayout;
16
+ export declare class AdwButtonContent extends AdwButtonContent_base {
5
17
  /** The leading symbolic icon. Always parented — the C never hides the image. */
6
- protected readonly _icon: AdwIcon;
18
+ protected readonly _icon: GtkImage;
7
19
  /** The text label. */
8
20
  protected readonly _label: Label;
9
21
  private readonly _props;
10
22
  private _hostButton;
11
- constructor();
23
+ constructor(props?: ConstructProps<AdwButtonContent>);
12
24
  /**
13
25
  * The button view this content styles — NS's stand-in for the `GtkButton`
14
26
  * ancestor `adw_button_content_root` finds (:108).
@@ -20,11 +32,12 @@ export declare class AdwButtonContent extends StackLayout {
20
32
  get hostButton(): View | null;
21
33
  set hostButton(view: View | null);
22
34
  /**
23
- * A leading Adwaita symbolic SVG string (e.g. `folderDownloadSymbolic`).
35
+ * The leading icon — an Adwaita icon NAME (`'folder-download-symbolic'`) or a
36
+ * symbolic SVG SOURCE string (e.g. `folderDownloadSymbolic`).
24
37
  *
25
38
  * An empty value shows the `image-missing` asset rather than hiding the icon:
26
39
  * the C sets that fallback (:355-356) and never hides `self->icon`. The doc
27
- * comments at :228/:343 say otherwise — see `buttonContentIconSvg`.
40
+ * comments at :228/:343 say otherwise — see `buttonContentIcon`.
28
41
  */
29
42
  get iconName(): string;
30
43
  set iconName(svg: string);
@@ -56,3 +69,4 @@ export declare class AdwButtonContent extends StackLayout {
56
69
  get ellipsize(): ButtonContentEllipsize;
57
70
  private _renderLabel;
58
71
  }
72
+ export {};
@@ -1,6 +1,7 @@
1
1
  import { StackLayout } from '@nativescript/core';
2
2
  import { AdwActionRow } from './adw-action-row.js';
3
- import { AdwIcon } from './adw-icon.js';
3
+ import { GtkImage } from './gtk-image.js';
4
+ import { type ConstructProps } from './construct-props.js';
4
5
  /** Event name emitted when the row is tapped. Mirrors `Adw.ButtonRow::activated`. */
5
6
  export { ACTIVATED } from './adw-action-row.js';
6
7
  export declare class AdwButtonRow extends AdwActionRow {
@@ -10,9 +11,9 @@ export declare class AdwButtonRow extends AdwActionRow {
10
11
  /** The horizontal content box (leading icon + centered title + trailing icon). */
11
12
  protected readonly _contentBox: StackLayout;
12
13
  /** The leading symbolic icon. */
13
- protected readonly _startIcon: AdwIcon;
14
+ protected readonly _startIcon: GtkImage;
14
15
  /** The trailing symbolic icon. */
15
- protected readonly _endIcon: AdwIcon;
16
+ protected readonly _endIcon: GtkImage;
16
17
  /** An explicit icon fill (the destructive red), or `null` to follow the accent. */
17
18
  private _pinnedIconColor;
18
19
  /** Live accent subscription — held only while the row is on screen. */
@@ -26,18 +27,20 @@ export declare class AdwButtonRow extends AdwActionRow {
26
27
  * second state object would give one label two sources of truth.
27
28
  */
28
29
  private readonly _buttonState;
29
- constructor();
30
+ constructor(props?: ConstructProps<AdwButtonRow>);
30
31
  /** A centered symbolic icon, collapsed until it has content. Its fill is set by
31
32
  * {@link _applyIconColor}, which is also what follows an accent change. */
32
33
  private static _makeIcon;
33
34
  /**
34
- * A leading Adwaita symbolic SVG string before the centered title (e.g.
35
+ * The leading icon before the centered title — an Adwaita icon NAME
36
+ * (`'list-add-symbolic'`) or a symbolic SVG SOURCE string (e.g.
35
37
  * `listAddSymbolic`). Empty collapses the icon.
36
38
  */
37
39
  get startIconName(): string;
38
40
  set startIconName(value: string);
39
41
  /**
40
- * A trailing Adwaita symbolic SVG string after the centered title (e.g.
42
+ * The trailing icon after the centered title — an Adwaita icon NAME
43
+ * (`'go-next-symbolic'`) or a symbolic SVG SOURCE string (e.g.
41
44
  * `goNextSymbolic`) — `Adw.ButtonRow:end-icon-name`. Empty collapses it.
42
45
  */
43
46
  get endIconName(): string;
@@ -52,6 +55,6 @@ export declare class AdwButtonRow extends AdwActionRow {
52
55
  set startIconColor(value: string);
53
56
  /** Paint both icons in the pinned colour, or in the active accent's fill. */
54
57
  private _applyIconColor;
55
- /** Push the derived icon payload + visibility onto the two `AdwIcon`s. */
58
+ /** Push the derived icon payload + visibility onto the two `GtkImage`s. */
56
59
  private _applyIcons;
57
60
  }
@@ -1,6 +1,7 @@
1
1
  import type { View } from '@nativescript/core';
2
2
  import { GridLayout, ScrollView, StackLayout, type EventData } from '@nativescript/core';
3
3
  import { DEFAULT_CAROUSEL_PAGE_WIDTH, type CarouselNotifyPayload } from './carousel-state.js';
4
+ import { type ConstructProps } from './construct-props.js';
4
5
  export { DEFAULT_CAROUSEL_PAGE_WIDTH };
5
6
  /** Event name emitted when {@link AdwCarousel.position} changes. Mirrors GObject `notify::position`. */
6
7
  export declare const NOTIFY_POSITION = "notify::position";
@@ -16,7 +17,18 @@ export interface PageChangedEventData extends EventData {
16
17
  /** The page the carousel came to rest on, `-1` when it has none. */
17
18
  index: number;
18
19
  }
19
- export declare class AdwCarousel extends GridLayout {
20
+ declare const AdwCarousel_base: (abstract new (...args: any[]) => {
21
+ connect(eventName: string, callback: (self: /*elided*/ any, data: EventData) => void): number;
22
+ disconnect(handlerId: number): void;
23
+ _emit(eventName: string): void;
24
+ addEventListener(eventName: string, callback: (data: EventData) => void, thisArg?: unknown, once?: boolean): void;
25
+ removeEventListener(eventName: string, callback?: (data: EventData) => void, thisArg?: unknown): void;
26
+ notify<T extends EventData>(data: T): void;
27
+ notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
28
+ set(name: string, value: unknown): void;
29
+ get(name: string): unknown;
30
+ }) & typeof GridLayout;
31
+ export declare class AdwCarousel extends AdwCarousel_base {
20
32
  /** The horizontal scroller holding the pages. */
21
33
  protected readonly _scroller: ScrollView;
22
34
  /** The horizontal track inside the scroller (holds fixed-width pages). */
@@ -31,9 +43,9 @@ export declare class AdwCarousel extends GridLayout {
31
43
  private readonly _dotsById;
32
44
  private _nextPageId;
33
45
  private _pageWidth;
34
- constructor();
46
+ constructor(props?: ConstructProps<AdwCarousel>);
35
47
  /** Append a page — `adw_carousel_append` (adw-carousel.c:1348-1357). */
36
- addPage(view: View): void;
48
+ append(view: View): void;
37
49
  /**
38
50
  * An XML child is a PAGE, appended in document order.
39
51
  *
@@ -47,11 +59,11 @@ export declare class AdwCarousel extends GridLayout {
47
59
  * Insert a page at `position` — `adw_carousel_insert` (adw-carousel.c:1370-1407).
48
60
  * `-1` or a position past the end appends. Returns whether it was added.
49
61
  */
50
- insertPage(view: View, position?: number): boolean;
62
+ insert(view: View, position?: number): boolean;
51
63
  /** Remove a page — `adw_carousel_remove` (adw-carousel.c:1508-1532). */
52
- removePage(view: View): boolean;
64
+ remove(view: View): boolean;
53
65
  /** Move a page — `adw_carousel_reorder` (adw-carousel.c:1419-1499). */
54
- reorderPage(view: View, position: number): boolean;
66
+ reorder(view: View, position: number): boolean;
55
67
  /**
56
68
  * Scroll to a page by index. Out-of-range, fractional and NaN indices are
57
69
  * refused rather than clamped, matching `adw_carousel_get_nth_page`'s
@@ -61,7 +73,7 @@ export declare class AdwCarousel extends GridLayout {
61
73
  scrollToPage(index: number): void;
62
74
  /** One keynav step — `navigate_to_direction` (adw-carousel.c:475-508). */
63
75
  navigate(direction: 'back' | 'forward'): boolean;
64
- /** The pages on the track, in order — the read-back for `addPage`/`insertPage`. */
76
+ /** The pages on the track, in order — the read-back for `append`/`insert`. */
65
77
  get pages(): readonly View[];
66
78
  /** The number of pages. */
67
79
  get nPages(): number;