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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/lib/esm/index.js +1 -1
  2. package/lib/esm/language-host.js +1 -0
  3. package/lib/esm/language-source.android.js +1 -0
  4. package/lib/esm/language-source.ios.js +1 -0
  5. package/lib/esm/language-source.js +1 -0
  6. package/lib/esm/namespace/adw.js +1 -1
  7. package/lib/esm/namespace/glib.js +1 -1
  8. package/lib/esm/namespace/gobject.js +1 -1
  9. package/lib/esm/widgets/adw-about-dialog.js +7 -2
  10. package/lib/esm/widgets/adw-action-row.js +1 -1
  11. package/lib/esm/widgets/adw-button-row.js +1 -1
  12. package/lib/esm/widgets/adw-dialog.js +1 -1
  13. package/lib/esm/widgets/adw-preferences-dialog.js +1 -1
  14. package/lib/esm/widgets/adw-preferences-group.js +1 -1
  15. package/lib/esm/widgets/adw-preferences-page.js +1 -1
  16. package/lib/esm/widgets/adw-spinner.js +1 -1
  17. package/lib/esm/widgets/adw-switch-row.js +1 -1
  18. package/lib/esm/widgets/adw-window-title.js +1 -1
  19. package/lib/esm/widgets/gtk-check-button.js +1 -1
  20. package/lib/esm/widgets/index.js +1 -1
  21. package/lib/esm/widgets/signals.js +1 -1
  22. package/lib/esm/widgets/style-manager-host.js +1 -0
  23. package/lib/esm/widgets/style-manager.js +1 -1
  24. package/lib/esm/widgets/widget-layout.js +1 -1
  25. package/lib/esm/widgets/window-state.js +1 -1
  26. package/lib/types/about-dialog-credits.spec.d.ts +1 -0
  27. package/lib/types/about-dialog-links.spec.d.ts +1 -0
  28. package/lib/types/action-row-properties.spec.d.ts +2 -0
  29. package/lib/types/index.d.ts +1 -1
  30. package/lib/types/language-host.d.ts +3 -0
  31. package/lib/types/language-source.android.d.ts +1 -0
  32. package/lib/types/language-source.d.ts +1 -0
  33. package/lib/types/language-source.ios.d.ts +1 -0
  34. package/lib/types/namespace/adw.d.ts +1 -1
  35. package/lib/types/namespace/glib.d.ts +4 -2
  36. package/lib/types/signals-gobject.spec.d.ts +2 -0
  37. package/lib/types/signals.spec.d.ts +24 -0
  38. package/lib/types/spinner-properties.spec.d.ts +2 -0
  39. package/lib/types/switch-row-properties.spec.d.ts +2 -0
  40. package/lib/types/testing/ns-core.d.mts +6 -0
  41. package/lib/types/widgets/adw-about-dialog.d.ts +84 -16
  42. package/lib/types/widgets/adw-action-row.d.ts +50 -21
  43. package/lib/types/widgets/adw-alert-dialog.d.ts +6 -2
  44. package/lib/types/widgets/adw-avatar.d.ts +6 -2
  45. package/lib/types/widgets/adw-banner.d.ts +6 -2
  46. package/lib/types/widgets/adw-bottom-sheet.d.ts +6 -2
  47. package/lib/types/widgets/adw-button-content.d.ts +6 -2
  48. package/lib/types/widgets/adw-carousel.d.ts +6 -2
  49. package/lib/types/widgets/adw-clamp.d.ts +6 -2
  50. package/lib/types/widgets/adw-data-grid.d.ts +6 -2
  51. package/lib/types/widgets/adw-dialog.d.ts +8 -1
  52. package/lib/types/widgets/adw-header-bar.d.ts +6 -2
  53. package/lib/types/widgets/adw-image-button.d.ts +6 -2
  54. package/lib/types/widgets/adw-navigation-page.d.ts +6 -2
  55. package/lib/types/widgets/adw-navigation-view.d.ts +6 -2
  56. package/lib/types/widgets/adw-preferences-dialog.d.ts +15 -75
  57. package/lib/types/widgets/adw-preferences-group.d.ts +25 -2
  58. package/lib/types/widgets/adw-preferences-page.d.ts +26 -2
  59. package/lib/types/widgets/adw-shortcut-label.d.ts +6 -2
  60. package/lib/types/widgets/adw-sidebar.d.ts +6 -2
  61. package/lib/types/widgets/adw-slider-row.d.ts +6 -2
  62. package/lib/types/widgets/adw-spinner.d.ts +24 -16
  63. package/lib/types/widgets/adw-split-button.d.ts +6 -2
  64. package/lib/types/widgets/adw-status-page.d.ts +6 -2
  65. package/lib/types/widgets/adw-switch-row.d.ts +25 -20
  66. package/lib/types/widgets/adw-tab-view.d.ts +6 -2
  67. package/lib/types/widgets/adw-toast-overlay.d.ts +6 -2
  68. package/lib/types/widgets/adw-toggle-group.d.ts +6 -2
  69. package/lib/types/widgets/adw-toggle.d.ts +6 -2
  70. package/lib/types/widgets/adw-toolbar-view.d.ts +6 -2
  71. package/lib/types/widgets/adw-view-stack.d.ts +6 -2
  72. package/lib/types/widgets/adw-view-switcher-bar.d.ts +6 -2
  73. package/lib/types/widgets/adw-window-title.d.ts +16 -12
  74. package/lib/types/widgets/adw-wrap-box.d.ts +6 -2
  75. package/lib/types/widgets/carousel-indicator-base.d.ts +6 -2
  76. package/lib/types/widgets/gtk-action-bar.d.ts +6 -2
  77. package/lib/types/widgets/gtk-button.d.ts +6 -2
  78. package/lib/types/widgets/gtk-check-button.d.ts +10 -1
  79. package/lib/types/widgets/gtk-drop-down.d.ts +6 -2
  80. package/lib/types/widgets/gtk-entry.d.ts +6 -2
  81. package/lib/types/widgets/gtk-image.d.ts +6 -2
  82. package/lib/types/widgets/gtk-label.d.ts +6 -2
  83. package/lib/types/widgets/gtk-popover-menu.d.ts +6 -2
  84. package/lib/types/widgets/gtk-stack.d.ts +6 -2
  85. package/lib/types/widgets/gtk-text-view.d.ts +6 -2
  86. package/lib/types/widgets/index.d.ts +0 -1
  87. package/lib/types/widgets/signals.d.ts +69 -3
  88. package/lib/types/widgets/split-view-base.d.ts +6 -2
  89. package/lib/types/widgets/stack-page.d.ts +6 -2
  90. package/lib/types/widgets/style-manager-host.d.ts +2 -0
  91. package/lib/types/widgets/style-manager.d.ts +14 -1
  92. package/lib/types/widgets/styled-layout-base.d.ts +6 -2
  93. package/lib/types/widgets/view-stack-page.d.ts +6 -2
  94. package/lib/types/widgets/view-switcher-base.d.ts +6 -2
  95. package/lib/types/widgets/widget-layout.d.ts +4 -0
  96. package/lib/types/widgets/window-state.d.ts +26 -0
  97. package/lib/types/window-title-properties.spec.d.ts +2 -0
  98. package/package.json +13 -13
  99. package/src/testing/ns-core.mts +20 -0
  100. package/src/theme/adwaita.css +31 -4
package/lib/esm/index.js CHANGED
@@ -1 +1 @@
1
- import"./_virtual/_rolldown/runtime.js";import{AdwBreakpoint as ee,addBreakpoints as te,evaluateBreakpointCondition as ne,observeViewSize as e,observeWindowSize as t,parseBreakpointCondition as n}from"./widgets/breakpoint.js";import{GTK_ALIGN as r}from"./widgets/gtk-align.js";import{DEFAULT_ICON_PIXEL_SIZE as i,GTK_ICON_SIZE_NICKS as a,GTK_ICON_SIZE_PIXELS as o,PIXEL_SIZE_UNSET as s,isGtkIconSizeNick as c}from"./widgets/gtk-icon-size.js";import{applyConstructProps as l,nsAlignment as u}from"./widgets/construct-props.js";import{activateWidgetAction as d,findActionGroup as f,insertActionGroup as p}from"./widgets/actions.js";import{NOTIFY_HEXPAND as m,NOTIFY_VEXPAND as h,withGtkWidgetLayout as g}from"./widgets/widget-layout.js";import{CLOSED as _}from"./widgets/adw-about-dialog.js";import{adwaitaColorScheme as v,isThemeIconColor as y,onAdwaitaColorSchemeChanged as b,setAdwaitaColorScheme as x,themeIconColor as S,toggleAdwaitaColorScheme as C}from"./widgets/color-scheme.js";import{ADWAITA_ICON_GRID as w,DEFAULT_ICON_COLOR as T,DEFAULT_ICON_COLOR_DARK as E,extractIconPaths as D,extractPathData as O}from"./widgets/icon-path.js";import{ICON_FALLBACK_NAME as k,compiledIconNames as A,iconValueKind as j,isIconAvailable as M,resolveIconSource as N}from"./widgets/icon-theme.js";import{renderSymbolicIcon as P}from"./widgets/icons.js";import{DEFAULT_GTK_IMAGE_SIZE as F}from"./widgets/gtk-image.js";import{ACTIVATED as I}from"./widgets/adw-action-row.js";import{AdwAlertResponses as L}from"./widgets/adw-alert-dialog.js";import{avatarInitials as R}from"./widgets/avatar-color.js";import{AVATAR_DEFAULT_ICON as z}from"./widgets/avatar-view.js";import{DEFAULT_AVATAR_SIZE as B}from"./widgets/adw-avatar.js";import{DEFAULT_CLAMP_MAX_SIZE as V,DEFAULT_SPINNER_SIZE as H}from"./widgets/chrome.js";import{BUTTON_CLICKED as U}from"./widgets/adw-banner.js";import{NOTIFY_OPEN as W}from"./widgets/bottom-sheet-state.js";import{attachRowPressFeedback as G}from"./widgets/row-press.js";import{bottomSheetPanel as K}from"./widgets/adw-bottom-sheet.js";import{DEFAULT_CAROUSEL_PAGE_WIDTH as q}from"./widgets/carousel-state.js";import{NOTIFY_POSITION as J}from"./widgets/adw-carousel.js";import{ComboState as Y,NOTIFY_SELECTED as X}from"./widgets/adw-combo-row.js";import{ADW_DIALOG_CLOSED as Z,ADW_DIALOG_CLOSE_ATTEMPT as re}from"./widgets/adw-dialog.js";import{AdwImageButton as ie,DEFAULT_ICON_BUTTON_ICON_SIZE as ae}from"./widgets/adw-image-button.js";import{NOTIFY_TEXT as oe}from"./widgets/adw-entry-row.js";import{ExpanderState as se,NOTIFY_EXPANDED as ce}from"./widgets/adw-expander-row.js";import{NOTIFY_VISIBLE_CHILD as le}from"./widgets/adw-view-stack.js";import{AdwViewSwitcherBase as ue,NOTIFY_SELECTED as de}from"./widgets/view-switcher-base.js";import{NsNavigationSplitViewState as fe,NsOverlaySplitViewState as pe,splitViewColumns as me}from"./widgets/split-view-state.js";import{AdwSplitViewBase as he,NOTIFY_SHOW_SIDEBAR as ge}from"./widgets/split-view-base.js";import{NOTIFY_VISIBLE_PAGE as _e}from"./widgets/navigation-stack.js";import{CLOSED as ve}from"./widgets/adw-preferences-dialog.js";import{SHORTCUT_LABEL_CAP_TEXT_CLASS as ye,SHORTCUT_LABEL_CLASS as be,SHORTCUT_LABEL_DIMMED_CLASS as xe,SHORTCUT_LABEL_DISABLED_CLASS as Se,SHORTCUT_LABEL_KEYCAP_CLASS as Ce,SHORTCUT_LABEL_KEYS_CLASS as we,SHORTCUT_LABEL_SIDE_CLASS as Te,SHORTCUT_LABEL_SPACED_CLASS as Ee,shortcutLabelDirection as De,shortcutLabelPlatform as Oe,shortcutLabelRenderPlan as ke}from"./widgets/shortcut-label.js";import{NOTIFY_SELECTED as Ae}from"./widgets/adw-sidebar.js";import{NOTIFY_VALUE as je,SpinState as Me}from"./widgets/adw-spin-row.js";import{CLICKED as Ne,MENU_TAPPED as Pe}from"./widgets/adw-split-button.js";import{NOTIFY_ACTIVE as Fe}from"./widgets/adw-switch-row.js";import{AdwToast as Q,AdwToastQueue as Ie,DEFAULT_TOAST_TIMEOUT as Le}from"./widgets/adw-toast-overlay.js";import{NOTIFY_SELECTED as Re,ToggleGroupState as ze}from"./widgets/adw-toggle-group.js";import{adw_exports as Be}from"./namespace/adw.js";import{DEFAULT_BOX_SPACING as Ve,boxChildTrack as He,boxSpacingChanges as Ue,boxTrackPlan as We,normalizeBoxSpacing as Ge}from"./widgets/box-layout.js";import{buttonSlotAfterWrite as Ke,buttonSlotDetaches as qe}from"./widgets/button-slot.js";import{GTK_BUTTON_CLICKED as Je,GTK_BUTTON_LABEL_CLASS as Ye}from"./widgets/gtk-button.js";import{NOTIFY_SELECTED as Xe}from"./widgets/gtk-drop-down.js";import{GTK_CHECK_BUTTON_ACTIVATE as Ze,GTK_CHECK_BUTTON_CHECKED_CLASS as Qe,GTK_CHECK_BUTTON_INCONSISTENT_CLASS as $e,GTK_CHECK_BUTTON_TOGGLED as et,NOTIFY_CHECK_ACTIVE as tt}from"./widgets/gtk-check-button.js";import{DRAWING_AREA_REFUSAL as nt}from"./widgets/gtk-drawing-area.js";import{ACTIVATE as rt,NOTIFY_TEXT as it}from"./widgets/gtk-entry.js";import{LIST_BOX_ROW_ACTIVATED as at,LIST_BOX_ROW_SELECTED as ot}from"./widgets/gtk-list-box.js";import{MENU_ITEM_ACTIVATED as st}from"./widgets/gtk-menu-button.js";import{NOTIFY_REVEAL_CHILD as ct}from"./widgets/gtk-revealer.js";import{NOTIFY_STACK_VISIBLE_CHILD as lt,NOTIFY_STACK_VISIBLE_CHILD_NAME as ut}from"./widgets/gtk-stack.js";import{GTK_WRAP_MODES as dt,NOTIFY_TEXT_VIEW_TEXT as ft}from"./widgets/gtk-text-view.js";import{GTK_TOGGLE_BUTTON_CHECKED_CLASS as pt,GTK_TOGGLE_BUTTON_TOGGLED as mt,NOTIFY_TOGGLE_ACTIVE as ht}from"./widgets/gtk-toggle-button.js";import{gtk_exports as gt}from"./namespace/gtk.js";import{ENGINE_TARGET as _t}from"./engine-target.js";import{ADWAITA_SANS_FONT_FAMILY as vt,ADWAITA_SANS_TTF_FILES as yt,adwaitaFontInstallInstructions as bt,hasAdwaitaSans as xt}from"./fonts.js";import{AdwSliderRow as St,NOTIFY_SLIDER_VALUE as Ct}from"./widgets/adw-slider-row.js";import{DATA_GRID_HEADER_CELL_CLASS as wt,DATA_GRID_HEADER_ROW_CLASS as Tt,DATA_GRID_SECTION_CELL_CLASS as Et,dataGridCellClass as Dt,dataGridItemSpec as Ot,dataGridRowClass as kt,dataGridShapeKey as At,dataGridTracksKey as jt,parseDataGridWidth as Mt}from"./widgets/data-grid-model.js";import{AdwDataGrid as Nt,ROW_ACTIVATED as Pt}from"./widgets/adw-data-grid.js";import{ADWAITA_NS_ACCENT_RULES as Ft,adwaitaNsAccentColor as It,adwaitaNsAccentCss as Lt}from"./widgets/accent-theme.js";import{applyAdwaitaNsAccent as Rt,clearAdwaitaNsAccent as zt}from"./widgets/adw-accent.js";import{padForSystemInsets as Bt,padSheetForSystemInsets as Vt}from"./widgets/system-insets.js";import{labelDisplayText as Ht,labelMarkupIsUnparseable as Ut,registerAdwaitaElements as $}from"./widgets/index.js";import{gio_exports as Wt}from"./namespace/gio.js";import{gdk_exports as Gt}from"./namespace/gdk.js";import{glib_exports as Kt}from"./namespace/glib.js";import{assertNativeScript as qt,assertNativeScript as Jt,isAndroid as Yt,isIOS as Xt,isNativeScript as Zt}from"@gjsify/native-platform";function registerAdwaita(){Jt(),$()}export{_ as ABOUT_CLOSED,I as ACTIVATED,w as ADWAITA_ICON_GRID,Ft as ADWAITA_NS_ACCENT_RULES,vt as ADWAITA_SANS_FONT_FAMILY,yt as ADWAITA_SANS_TTF_FILES,Z as ADW_DIALOG_CLOSED,re as ADW_DIALOG_CLOSE_ATTEMPT,z as AVATAR_DEFAULT_ICON,Be as Adw,L as AdwAlertResponses,ee as AdwBreakpoint,Nt as AdwDataGrid,ie as AdwImageButton,St as AdwSliderRow,he as AdwSplitViewBase,Q as AdwToast,Ie as AdwToastQueue,ue as AdwViewSwitcherBase,U as BUTTON_CLICKED,Ne as CLICKED,Y as ComboState,wt as DATA_GRID_HEADER_CELL_CLASS,Tt as DATA_GRID_HEADER_ROW_CLASS,Et as DATA_GRID_SECTION_CELL_CLASS,B as DEFAULT_AVATAR_SIZE,Ve as DEFAULT_BOX_SPACING,q as DEFAULT_CAROUSEL_PAGE_WIDTH,V as DEFAULT_CLAMP_MAX_SIZE,F as DEFAULT_GTK_IMAGE_SIZE,ae as DEFAULT_ICON_BUTTON_ICON_SIZE,T as DEFAULT_ICON_COLOR,E as DEFAULT_ICON_COLOR_DARK,i as DEFAULT_ICON_PIXEL_SIZE,H as DEFAULT_SPINNER_SIZE,Le as DEFAULT_TOAST_TIMEOUT,nt as DRAWING_AREA_REFUSAL,_t as ENGINE_TARGET,rt as ENTRY_ACTIVATE,se as ExpanderState,Kt as GLib,r as GTK_ALIGN,Je as GTK_BUTTON_CLICKED,Ye as GTK_BUTTON_LABEL_CLASS,Ze as GTK_CHECK_BUTTON_ACTIVATE,Qe as GTK_CHECK_BUTTON_CHECKED_CLASS,$e as GTK_CHECK_BUTTON_INCONSISTENT_CLASS,et as GTK_CHECK_BUTTON_TOGGLED,a as GTK_ICON_SIZE_NICKS,o as GTK_ICON_SIZE_PIXELS,pt as GTK_TOGGLE_BUTTON_CHECKED_CLASS,mt as GTK_TOGGLE_BUTTON_TOGGLED,dt as GTK_WRAP_MODES,Gt as Gdk,Wt as Gio,gt as Gtk,k as ICON_FALLBACK_NAME,at as LIST_BOX_ROW_ACTIVATED,ot as LIST_BOX_ROW_SELECTED,st as MENU_ITEM_ACTIVATED,Pe as MENU_TAPPED,Fe as NOTIFY_ACTIVE,tt as NOTIFY_CHECK_ACTIVE,Xe as NOTIFY_DROP_DOWN_SELECTED,it as NOTIFY_ENTRY_TEXT,ce as NOTIFY_EXPANDED,m as NOTIFY_HEXPAND,W as NOTIFY_OPEN,J as NOTIFY_POSITION,ct as NOTIFY_REVEAL_CHILD,X as NOTIFY_SELECTED,ge as NOTIFY_SHOW_SIDEBAR,Ae as NOTIFY_SIDEBAR_SELECTED,Ct as NOTIFY_SLIDER_VALUE,lt as NOTIFY_STACK_VISIBLE_CHILD,ut as NOTIFY_STACK_VISIBLE_CHILD_NAME,oe as NOTIFY_TEXT,ft as NOTIFY_TEXT_VIEW_TEXT,ht as NOTIFY_TOGGLE_ACTIVE,Re as NOTIFY_TOGGLE_SELECTED,je as NOTIFY_VALUE,h as NOTIFY_VEXPAND,de as NOTIFY_VIEW_SELECTED,le as NOTIFY_VISIBLE_CHILD,_e as NOTIFY_VISIBLE_PAGE,fe as NsNavigationSplitViewState,pe as NsOverlaySplitViewState,s as PIXEL_SIZE_UNSET,ve as PREFERENCES_CLOSED,Pt as ROW_ACTIVATED,ye as SHORTCUT_LABEL_CAP_TEXT_CLASS,be as SHORTCUT_LABEL_CLASS,xe as SHORTCUT_LABEL_DIMMED_CLASS,Se as SHORTCUT_LABEL_DISABLED_CLASS,Ce as SHORTCUT_LABEL_KEYCAP_CLASS,we as SHORTCUT_LABEL_KEYS_CLASS,Te as SHORTCUT_LABEL_SIDE_CLASS,Ee as SHORTCUT_LABEL_SPACED_CLASS,Me as SpinState,ze as ToggleGroupState,d as activateWidgetAction,te as addBreakpoints,v as adwaitaColorScheme,bt as adwaitaFontInstallInstructions,It as adwaitaNsAccentColor,Lt as adwaitaNsAccentCss,Rt as applyAdwaitaNsAccent,l as applyConstructProps,qt as assertNativeScript,G as attachRowPressFeedback,R as avatarInitials,K as bottomSheetPanel,He as boxChildTrack,Ue as boxSpacingChanges,We as boxTrackPlan,Ke as buttonSlotAfterWrite,qe as buttonSlotDetaches,zt as clearAdwaitaNsAccent,A as compiledIconNames,Dt as dataGridCellClass,Ot as dataGridItemSpec,kt as dataGridRowClass,At as dataGridShapeKey,jt as dataGridTracksKey,ne as evaluateBreakpointCondition,D as extractIconPaths,O as extractPathData,f as findActionGroup,xt as hasAdwaitaSans,j as iconValueKind,p as insertActionGroup,Yt as isAndroid,c as isGtkIconSizeNick,Xt as isIOS,M as isIconAvailable,Zt as isNativeScript,y as isThemeIconColor,Ht as labelDisplayText,Ut as labelMarkupIsUnparseable,Ge as normalizeBoxSpacing,u as nsAlignment,e as observeViewSize,t as observeWindowSize,b as onAdwaitaColorSchemeChanged,Bt as padForSystemInsets,Vt as padSheetForSystemInsets,n as parseBreakpointCondition,Mt as parseDataGridWidth,registerAdwaita,$ as registerAdwaitaElements,P as renderSymbolicIcon,N as resolveIconSource,x as setAdwaitaColorScheme,De as shortcutLabelDirection,Oe as shortcutLabelPlatform,ke as shortcutLabelRenderPlan,me as splitViewColumns,S as themeIconColor,C as toggleAdwaitaColorScheme,g as withGtkWidgetLayout};
1
+ import"./_virtual/_rolldown/runtime.js";import{AdwBreakpoint as ee,addBreakpoints as te,evaluateBreakpointCondition as ne,observeViewSize as e,observeWindowSize as t,parseBreakpointCondition as n}from"./widgets/breakpoint.js";import{ENGINE_TARGET as r}from"./engine-target.js";import{GTK_ALIGN as i}from"./widgets/gtk-align.js";import{DEFAULT_ICON_PIXEL_SIZE as a,GTK_ICON_SIZE_NICKS as o,GTK_ICON_SIZE_PIXELS as s,PIXEL_SIZE_UNSET as c,isGtkIconSizeNick as l}from"./widgets/gtk-icon-size.js";import{applyConstructProps as u,nsAlignment as d}from"./widgets/construct-props.js";import{activateWidgetAction as f,findActionGroup as p,insertActionGroup as m}from"./widgets/actions.js";import{NOTIFY_HEXPAND as h,NOTIFY_VEXPAND as g,withGtkWidgetLayout as _}from"./widgets/widget-layout.js";import{adwaitaColorScheme as v,isThemeIconColor as y,onAdwaitaColorSchemeChanged as b,setAdwaitaColorScheme as x,themeIconColor as S,toggleAdwaitaColorScheme as C}from"./widgets/color-scheme.js";import{ADWAITA_ICON_GRID as w,DEFAULT_ICON_COLOR as T,DEFAULT_ICON_COLOR_DARK as E,extractIconPaths as D,extractPathData as O}from"./widgets/icon-path.js";import{ICON_FALLBACK_NAME as k,compiledIconNames as A,iconValueKind as j,isIconAvailable as M,resolveIconSource as N}from"./widgets/icon-theme.js";import{renderSymbolicIcon as P}from"./widgets/icons.js";import{DEFAULT_GTK_IMAGE_SIZE as F}from"./widgets/gtk-image.js";import{CLOSED as I}from"./widgets/adw-about-dialog.js";import{ACTIVATED as L}from"./widgets/adw-action-row.js";import{AdwAlertResponses as R}from"./widgets/adw-alert-dialog.js";import{avatarInitials as z}from"./widgets/avatar-color.js";import{AVATAR_DEFAULT_ICON as B}from"./widgets/avatar-view.js";import{DEFAULT_AVATAR_SIZE as V}from"./widgets/adw-avatar.js";import{DEFAULT_CLAMP_MAX_SIZE as H,DEFAULT_SPINNER_SIZE as U}from"./widgets/chrome.js";import{BUTTON_CLICKED as W}from"./widgets/adw-banner.js";import{NOTIFY_OPEN as G}from"./widgets/bottom-sheet-state.js";import{attachRowPressFeedback as K}from"./widgets/row-press.js";import{bottomSheetPanel as q}from"./widgets/adw-bottom-sheet.js";import{DEFAULT_CAROUSEL_PAGE_WIDTH as J}from"./widgets/carousel-state.js";import{NOTIFY_POSITION as Y}from"./widgets/adw-carousel.js";import{ComboState as X,NOTIFY_SELECTED as Z}from"./widgets/adw-combo-row.js";import{ADW_DIALOG_CLOSED as re,ADW_DIALOG_CLOSE_ATTEMPT as ie}from"./widgets/adw-dialog.js";import{AdwImageButton as ae,DEFAULT_ICON_BUTTON_ICON_SIZE as oe}from"./widgets/adw-image-button.js";import{NOTIFY_TEXT as se}from"./widgets/adw-entry-row.js";import{ExpanderState as ce,NOTIFY_EXPANDED as le}from"./widgets/adw-expander-row.js";import{NOTIFY_VISIBLE_CHILD as ue}from"./widgets/adw-view-stack.js";import{AdwViewSwitcherBase as de,NOTIFY_SELECTED as fe}from"./widgets/view-switcher-base.js";import{NsNavigationSplitViewState as pe,NsOverlaySplitViewState as me,splitViewColumns as he}from"./widgets/split-view-state.js";import{AdwSplitViewBase as ge,NOTIFY_SHOW_SIDEBAR as _e}from"./widgets/split-view-base.js";import{NOTIFY_VISIBLE_PAGE as ve}from"./widgets/navigation-stack.js";import{CLOSED as ye}from"./widgets/adw-preferences-dialog.js";import{SHORTCUT_LABEL_CAP_TEXT_CLASS as be,SHORTCUT_LABEL_CLASS as xe,SHORTCUT_LABEL_DIMMED_CLASS as Se,SHORTCUT_LABEL_DISABLED_CLASS as Ce,SHORTCUT_LABEL_KEYCAP_CLASS as we,SHORTCUT_LABEL_KEYS_CLASS as Te,SHORTCUT_LABEL_SIDE_CLASS as Ee,SHORTCUT_LABEL_SPACED_CLASS as De,shortcutLabelDirection as Oe,shortcutLabelPlatform as ke,shortcutLabelRenderPlan as Ae}from"./widgets/shortcut-label.js";import{NOTIFY_SELECTED as je}from"./widgets/adw-sidebar.js";import{NOTIFY_VALUE as Me,SpinState as Ne}from"./widgets/adw-spin-row.js";import{CLICKED as Pe,MENU_TAPPED as Fe}from"./widgets/adw-split-button.js";import{NOTIFY_ACTIVE as Q}from"./widgets/adw-switch-row.js";import{AdwToast as Ie,AdwToastQueue as Le,DEFAULT_TOAST_TIMEOUT as Re}from"./widgets/adw-toast-overlay.js";import{NOTIFY_SELECTED as ze,ToggleGroupState as Be}from"./widgets/adw-toggle-group.js";import{adw_exports as Ve}from"./namespace/adw.js";import{DEFAULT_BOX_SPACING as He,boxChildTrack as Ue,boxSpacingChanges as We,boxTrackPlan as Ge,normalizeBoxSpacing as Ke}from"./widgets/box-layout.js";import{buttonSlotAfterWrite as qe,buttonSlotDetaches as Je}from"./widgets/button-slot.js";import{GTK_BUTTON_CLICKED as Ye,GTK_BUTTON_LABEL_CLASS as Xe}from"./widgets/gtk-button.js";import{NOTIFY_SELECTED as Ze}from"./widgets/gtk-drop-down.js";import{GTK_CHECK_BUTTON_ACTIVATE as Qe,GTK_CHECK_BUTTON_CHECKED_CLASS as $e,GTK_CHECK_BUTTON_INCONSISTENT_CLASS as et,GTK_CHECK_BUTTON_TOGGLED as tt,NOTIFY_CHECK_ACTIVE as nt}from"./widgets/gtk-check-button.js";import{DRAWING_AREA_REFUSAL as rt}from"./widgets/gtk-drawing-area.js";import{ACTIVATE as it,NOTIFY_TEXT as at}from"./widgets/gtk-entry.js";import{LIST_BOX_ROW_ACTIVATED as ot,LIST_BOX_ROW_SELECTED as st}from"./widgets/gtk-list-box.js";import{MENU_ITEM_ACTIVATED as ct}from"./widgets/gtk-menu-button.js";import{NOTIFY_REVEAL_CHILD as lt}from"./widgets/gtk-revealer.js";import{NOTIFY_STACK_VISIBLE_CHILD as ut,NOTIFY_STACK_VISIBLE_CHILD_NAME as dt}from"./widgets/gtk-stack.js";import{GTK_WRAP_MODES as ft,NOTIFY_TEXT_VIEW_TEXT as pt}from"./widgets/gtk-text-view.js";import{GTK_TOGGLE_BUTTON_CHECKED_CLASS as mt,GTK_TOGGLE_BUTTON_TOGGLED as ht,NOTIFY_TOGGLE_ACTIVE as gt}from"./widgets/gtk-toggle-button.js";import{gtk_exports as _t}from"./namespace/gtk.js";import{ADWAITA_SANS_FONT_FAMILY as vt,ADWAITA_SANS_TTF_FILES as yt,adwaitaFontInstallInstructions as bt,hasAdwaitaSans as xt}from"./fonts.js";import{AdwSliderRow as St,NOTIFY_SLIDER_VALUE as Ct}from"./widgets/adw-slider-row.js";import{DATA_GRID_HEADER_CELL_CLASS as wt,DATA_GRID_HEADER_ROW_CLASS as Tt,DATA_GRID_SECTION_CELL_CLASS as Et,dataGridCellClass as Dt,dataGridItemSpec as Ot,dataGridRowClass as kt,dataGridShapeKey as At,dataGridTracksKey as jt,parseDataGridWidth as Mt}from"./widgets/data-grid-model.js";import{AdwDataGrid as Nt,ROW_ACTIVATED as Pt}from"./widgets/adw-data-grid.js";import{ADWAITA_NS_ACCENT_RULES as Ft,adwaitaNsAccentColor as It,adwaitaNsAccentCss as Lt}from"./widgets/accent-theme.js";import{applyAdwaitaNsAccent as Rt,clearAdwaitaNsAccent as zt}from"./widgets/adw-accent.js";import{padForSystemInsets as Bt,padSheetForSystemInsets as Vt}from"./widgets/system-insets.js";import{labelDisplayText as Ht,labelMarkupIsUnparseable as Ut,registerAdwaitaElements as $}from"./widgets/index.js";import{gio_exports as Wt}from"./namespace/gio.js";import{gdk_exports as Gt}from"./namespace/gdk.js";import{glib_exports as Kt}from"./namespace/glib.js";import{assertNativeScript as qt,assertNativeScript as Jt,isAndroid as Yt,isIOS as Xt,isNativeScript as Zt}from"@gjsify/native-platform";function registerAdwaita(){Jt(),$()}export{I as ABOUT_CLOSED,L as ACTIVATED,w as ADWAITA_ICON_GRID,Ft as ADWAITA_NS_ACCENT_RULES,vt as ADWAITA_SANS_FONT_FAMILY,yt as ADWAITA_SANS_TTF_FILES,re as ADW_DIALOG_CLOSED,ie as ADW_DIALOG_CLOSE_ATTEMPT,B as AVATAR_DEFAULT_ICON,Ve as Adw,R as AdwAlertResponses,ee as AdwBreakpoint,Nt as AdwDataGrid,ae as AdwImageButton,St as AdwSliderRow,ge as AdwSplitViewBase,Ie as AdwToast,Le as AdwToastQueue,de as AdwViewSwitcherBase,W as BUTTON_CLICKED,Pe as CLICKED,X as ComboState,wt as DATA_GRID_HEADER_CELL_CLASS,Tt as DATA_GRID_HEADER_ROW_CLASS,Et as DATA_GRID_SECTION_CELL_CLASS,V as DEFAULT_AVATAR_SIZE,He as DEFAULT_BOX_SPACING,J as DEFAULT_CAROUSEL_PAGE_WIDTH,H as DEFAULT_CLAMP_MAX_SIZE,F as DEFAULT_GTK_IMAGE_SIZE,oe as DEFAULT_ICON_BUTTON_ICON_SIZE,T as DEFAULT_ICON_COLOR,E as DEFAULT_ICON_COLOR_DARK,a as DEFAULT_ICON_PIXEL_SIZE,U as DEFAULT_SPINNER_SIZE,Re as DEFAULT_TOAST_TIMEOUT,rt as DRAWING_AREA_REFUSAL,r as ENGINE_TARGET,it as ENTRY_ACTIVATE,ce as ExpanderState,Kt as GLib,i as GTK_ALIGN,Ye as GTK_BUTTON_CLICKED,Xe as GTK_BUTTON_LABEL_CLASS,Qe as GTK_CHECK_BUTTON_ACTIVATE,$e as GTK_CHECK_BUTTON_CHECKED_CLASS,et as GTK_CHECK_BUTTON_INCONSISTENT_CLASS,tt as GTK_CHECK_BUTTON_TOGGLED,o as GTK_ICON_SIZE_NICKS,s as GTK_ICON_SIZE_PIXELS,mt as GTK_TOGGLE_BUTTON_CHECKED_CLASS,ht as GTK_TOGGLE_BUTTON_TOGGLED,ft as GTK_WRAP_MODES,Gt as Gdk,Wt as Gio,_t as Gtk,k as ICON_FALLBACK_NAME,ot as LIST_BOX_ROW_ACTIVATED,st as LIST_BOX_ROW_SELECTED,ct as MENU_ITEM_ACTIVATED,Fe as MENU_TAPPED,Q as NOTIFY_ACTIVE,nt as NOTIFY_CHECK_ACTIVE,Ze as NOTIFY_DROP_DOWN_SELECTED,at as NOTIFY_ENTRY_TEXT,le as NOTIFY_EXPANDED,h as NOTIFY_HEXPAND,G as NOTIFY_OPEN,Y as NOTIFY_POSITION,lt as NOTIFY_REVEAL_CHILD,Z as NOTIFY_SELECTED,_e as NOTIFY_SHOW_SIDEBAR,je as NOTIFY_SIDEBAR_SELECTED,Ct as NOTIFY_SLIDER_VALUE,ut as NOTIFY_STACK_VISIBLE_CHILD,dt as NOTIFY_STACK_VISIBLE_CHILD_NAME,se as NOTIFY_TEXT,pt as NOTIFY_TEXT_VIEW_TEXT,gt as NOTIFY_TOGGLE_ACTIVE,ze as NOTIFY_TOGGLE_SELECTED,Me as NOTIFY_VALUE,g as NOTIFY_VEXPAND,fe as NOTIFY_VIEW_SELECTED,ue as NOTIFY_VISIBLE_CHILD,ve as NOTIFY_VISIBLE_PAGE,pe as NsNavigationSplitViewState,me as NsOverlaySplitViewState,c as PIXEL_SIZE_UNSET,ye as PREFERENCES_CLOSED,Pt as ROW_ACTIVATED,be as SHORTCUT_LABEL_CAP_TEXT_CLASS,xe as SHORTCUT_LABEL_CLASS,Se as SHORTCUT_LABEL_DIMMED_CLASS,Ce as SHORTCUT_LABEL_DISABLED_CLASS,we as SHORTCUT_LABEL_KEYCAP_CLASS,Te as SHORTCUT_LABEL_KEYS_CLASS,Ee as SHORTCUT_LABEL_SIDE_CLASS,De as SHORTCUT_LABEL_SPACED_CLASS,Ne as SpinState,Be as ToggleGroupState,f as activateWidgetAction,te as addBreakpoints,v as adwaitaColorScheme,bt as adwaitaFontInstallInstructions,It as adwaitaNsAccentColor,Lt as adwaitaNsAccentCss,Rt as applyAdwaitaNsAccent,u as applyConstructProps,qt as assertNativeScript,K as attachRowPressFeedback,z as avatarInitials,q as bottomSheetPanel,Ue as boxChildTrack,We as boxSpacingChanges,Ge as boxTrackPlan,qe as buttonSlotAfterWrite,Je as buttonSlotDetaches,zt as clearAdwaitaNsAccent,A as compiledIconNames,Dt as dataGridCellClass,Ot as dataGridItemSpec,kt as dataGridRowClass,At as dataGridShapeKey,jt as dataGridTracksKey,ne as evaluateBreakpointCondition,D as extractIconPaths,O as extractPathData,p as findActionGroup,xt as hasAdwaitaSans,j as iconValueKind,m as insertActionGroup,Yt as isAndroid,l as isGtkIconSizeNick,Xt as isIOS,M as isIconAvailable,Zt as isNativeScript,y as isThemeIconColor,Ht as labelDisplayText,Ut as labelMarkupIsUnparseable,Ke as normalizeBoxSpacing,d as nsAlignment,e as observeViewSize,t as observeWindowSize,b as onAdwaitaColorSchemeChanged,Bt as padForSystemInsets,Vt as padSheetForSystemInsets,n as parseBreakpointCondition,Mt as parseDataGridWidth,registerAdwaita,$ as registerAdwaitaElements,P as renderSymbolicIcon,N as resolveIconSource,x as setAdwaitaColorScheme,Oe as shortcutLabelDirection,ke as shortcutLabelPlatform,Ae as shortcutLabelRenderPlan,he as splitViewColumns,S as themeIconColor,C as toggleAdwaitaColorScheme,_ as withGtkWidgetLayout};
@@ -0,0 +1 @@
1
+ import"./_virtual/_rolldown/runtime.js";import{platformLanguageTags as e}from"./language-source.js";let t=null;function useLanguageHost(e){t=e}function hostLanguageTags(){return t?t():e()}export{hostLanguageTags,useLanguageHost};
@@ -0,0 +1 @@
1
+ import"./_virtual/_rolldown/runtime.js";function platformLanguageTags(){let e=[],t=typeof android>`u`?void 0:android.os?.LocaleList?.getDefault?.();if(t)for(let n=0;n<t.size();n++)e.push(String(t.get(n).toLanguageTag()));else typeof java<`u`&&e.push(String(java.util.Locale.getDefault().toLanguageTag()));return e}export{platformLanguageTags};
@@ -0,0 +1 @@
1
+ import"./_virtual/_rolldown/runtime.js";function platformLanguageTags(){if(typeof NSLocale>`u`)return[];let e=NSLocale.preferredLanguages,t=[];for(let n=0;n<(e?.count??0);n++)t.push(String(e.objectAtIndex(n)));return t}export{platformLanguageTags};
@@ -0,0 +1 @@
1
+ import"./_virtual/_rolldown/runtime.js";function platformLanguageTags(){return[]}export{platformLanguageTags};
@@ -1 +1 @@
1
- import{__exportAll as ee}from"../_virtual/_rolldown/runtime.js";import{AdwAboutDialog as e}from"../widgets/adw-about-dialog.js";import{AdwActionRow as t}from"../widgets/adw-action-row.js";import{AdwAlertDialog as n}from"../widgets/adw-alert-dialog.js";import{AdwApplication as r}from"../widgets/application.js";import{AdwApplicationWindow as i}from"../widgets/adw-application-window.js";import{AdwAvatar as a}from"../widgets/adw-avatar.js";import{AdwBanner as o}from"../widgets/adw-banner.js";import{AdwBin as s}from"../widgets/adw-bin.js";import{AdwBottomSheet as c}from"../widgets/adw-bottom-sheet.js";import{AdwButtonContent as l}from"../widgets/adw-button-content.js";import{AdwButtonRow as u}from"../widgets/adw-button-row.js";import{AdwCarousel as d}from"../widgets/adw-carousel.js";import{AdwCarouselIndicatorDots as f}from"../widgets/adw-carousel-indicator-dots.js";import{AdwCarouselIndicatorLines as p}from"../widgets/adw-carousel-indicator-lines.js";import{AdwClamp as m}from"../widgets/adw-clamp.js";import{AdwComboRow as h}from"../widgets/adw-combo-row.js";import{AdwDialog as g}from"../widgets/adw-dialog.js";import{AdwEntryRow as _}from"../widgets/adw-entry-row.js";import{AdwExpanderRow as v}from"../widgets/adw-expander-row.js";import{AdwWindowTitle as y}from"../widgets/adw-window-title.js";import{AdwHeaderBar as b}from"../widgets/adw-header-bar.js";import{AdwViewStackPage as x}from"../widgets/view-stack-page.js";import{AdwViewStack as S}from"../widgets/adw-view-stack.js";import{AdwInlineViewSwitcher as C}from"../widgets/adw-inline-view-switcher.js";import{AdwNavigationSplitView as w}from"../widgets/adw-navigation-split-view.js";import{AdwNavigationPage as T}from"../widgets/adw-navigation-page.js";import{AdwNavigationView as E}from"../widgets/adw-navigation-view.js";import{AdwOverlaySplitView as D}from"../widgets/adw-overlay-split-view.js";import{AdwPasswordEntryRow as te}from"../widgets/adw-password-entry-row.js";import{AdwPreferencesDialog as O}from"../widgets/adw-preferences-dialog.js";import{AdwPreferencesGroup as k}from"../widgets/adw-preferences-group.js";import{AdwPreferencesPage as A}from"../widgets/adw-preferences-page.js";import{AdwShortcutLabel as j}from"../widgets/adw-shortcut-label.js";import{AdwSidebarItem as M,AdwSidebarSection as N}from"../values/sidebar.js";import{AdwSidebar as P}from"../widgets/adw-sidebar.js";import{AdwSpinRow as F}from"../widgets/adw-spin-row.js";import{AdwSpinner as I}from"../widgets/adw-spinner.js";import{AdwSplitButton as L}from"../widgets/adw-split-button.js";import{AdwStatusPage as R}from"../widgets/adw-status-page.js";import{AdwSwitchRow as z}from"../widgets/adw-switch-row.js";import{AdwTabPage as B}from"../values/tab-page.js";import{AdwTabView as V}from"../widgets/adw-tab-view.js";import{AdwToastOverlay as H}from"../widgets/adw-toast-overlay.js";import{AdwToggle as U}from"../widgets/adw-toggle.js";import{AdwToggleGroup as W}from"../widgets/adw-toggle-group.js";import{AdwToolbarView as G}from"../widgets/adw-toolbar-view.js";import{AdwViewSwitcher as K}from"../widgets/adw-view-switcher.js";import{AdwViewSwitcherBar as q}from"../widgets/adw-view-switcher-bar.js";import{AdwWindow as J}from"../widgets/adw-window.js";import{AdwWrapBox as Y}from"../widgets/adw-wrap-box.js";import{AdwStyleManager as X}from"../widgets/style-manager.js";import{ColorScheme as Z,Toast as Q,ToastPriority as $}from"@gjsify/adwaita-core";var ne=ee({AboutDialog:()=>e,ActionRow:()=>t,AlertDialog:()=>n,Application:()=>r,ApplicationWindow:()=>i,Avatar:()=>a,Banner:()=>o,Bin:()=>s,BottomSheet:()=>c,ButtonContent:()=>l,ButtonRow:()=>u,Carousel:()=>d,CarouselIndicatorDots:()=>f,CarouselIndicatorLines:()=>p,Clamp:()=>m,ColorScheme:()=>Z,ComboRow:()=>h,Dialog:()=>g,EntryRow:()=>_,ExpanderRow:()=>v,HeaderBar:()=>b,InlineViewSwitcher:()=>C,NavigationPage:()=>T,NavigationSplitView:()=>w,NavigationView:()=>E,OverlaySplitView:()=>D,PasswordEntryRow:()=>te,PreferencesDialog:()=>O,PreferencesGroup:()=>k,PreferencesPage:()=>A,ShortcutLabel:()=>j,Sidebar:()=>P,SidebarItem:()=>M,SidebarSection:()=>N,SpinRow:()=>F,Spinner:()=>I,SplitButton:()=>L,StatusPage:()=>R,StyleManager:()=>X,SwitchRow:()=>z,TabPage:()=>B,TabView:()=>V,Toast:()=>Q,ToastOverlay:()=>H,ToastPriority:()=>$,Toggle:()=>U,ToggleGroup:()=>W,ToolbarView:()=>G,ViewStack:()=>S,ViewStackPage:()=>x,ViewSwitcher:()=>K,ViewSwitcherBar:()=>q,Window:()=>J,WindowTitle:()=>y,WrapBox:()=>Y});export{e as AboutDialog,t as ActionRow,n as AlertDialog,r as Application,i as ApplicationWindow,a as Avatar,o as Banner,s as Bin,c as BottomSheet,l as ButtonContent,u as ButtonRow,d as Carousel,f as CarouselIndicatorDots,p as CarouselIndicatorLines,m as Clamp,Z as ColorScheme,h as ComboRow,g as Dialog,_ as EntryRow,v as ExpanderRow,b as HeaderBar,C as InlineViewSwitcher,T as NavigationPage,w as NavigationSplitView,E as NavigationView,D as OverlaySplitView,te as PasswordEntryRow,O as PreferencesDialog,k as PreferencesGroup,A as PreferencesPage,j as ShortcutLabel,P as Sidebar,M as SidebarItem,N as SidebarSection,F as SpinRow,I as Spinner,L as SplitButton,R as StatusPage,X as StyleManager,z as SwitchRow,B as TabPage,V as TabView,Q as Toast,H as ToastOverlay,$ as ToastPriority,U as Toggle,W as ToggleGroup,G as ToolbarView,S as ViewStack,x as ViewStackPage,K as ViewSwitcher,q as ViewSwitcherBar,J as Window,y as WindowTitle,Y as WrapBox,ne as adw_exports};
1
+ import{__exportAll as ee}from"../_virtual/_rolldown/runtime.js";import{AdwAboutDialog as e}from"../widgets/adw-about-dialog.js";import{AdwActionRow as t}from"../widgets/adw-action-row.js";import{AdwAlertDialog as n}from"../widgets/adw-alert-dialog.js";import{AdwApplication as r}from"../widgets/application.js";import{AdwApplicationWindow as i}from"../widgets/adw-application-window.js";import{AdwAvatar as a}from"../widgets/adw-avatar.js";import{AdwBanner as o}from"../widgets/adw-banner.js";import{AdwBin as s}from"../widgets/adw-bin.js";import{AdwBottomSheet as c}from"../widgets/adw-bottom-sheet.js";import{AdwButtonContent as l}from"../widgets/adw-button-content.js";import{AdwButtonRow as u}from"../widgets/adw-button-row.js";import{AdwCarousel as d}from"../widgets/adw-carousel.js";import{AdwCarouselIndicatorDots as f}from"../widgets/adw-carousel-indicator-dots.js";import{AdwCarouselIndicatorLines as p}from"../widgets/adw-carousel-indicator-lines.js";import{AdwClamp as m}from"../widgets/adw-clamp.js";import{AdwComboRow as h}from"../widgets/adw-combo-row.js";import{AdwDialog as g}from"../widgets/adw-dialog.js";import{AdwEntryRow as _}from"../widgets/adw-entry-row.js";import{AdwExpanderRow as v}from"../widgets/adw-expander-row.js";import{AdwWindowTitle as y}from"../widgets/adw-window-title.js";import{AdwHeaderBar as b}from"../widgets/adw-header-bar.js";import{AdwViewStackPage as x}from"../widgets/view-stack-page.js";import{AdwViewStack as S}from"../widgets/adw-view-stack.js";import{AdwInlineViewSwitcher as C}from"../widgets/adw-inline-view-switcher.js";import{AdwNavigationSplitView as w}from"../widgets/adw-navigation-split-view.js";import{AdwNavigationPage as T}from"../widgets/adw-navigation-page.js";import{AdwNavigationView as E}from"../widgets/adw-navigation-view.js";import{AdwOverlaySplitView as D}from"../widgets/adw-overlay-split-view.js";import{AdwPasswordEntryRow as te}from"../widgets/adw-password-entry-row.js";import{AdwPreferencesDialog as O}from"../widgets/adw-preferences-dialog.js";import{AdwPreferencesGroup as k}from"../widgets/adw-preferences-group.js";import{AdwPreferencesPage as A}from"../widgets/adw-preferences-page.js";import{AdwShortcutLabel as j}from"../widgets/adw-shortcut-label.js";import{AdwSidebarItem as M,AdwSidebarSection as N}from"../values/sidebar.js";import{AdwSidebar as P}from"../widgets/adw-sidebar.js";import{AdwSpinRow as F}from"../widgets/adw-spin-row.js";import{AdwSpinner as I}from"../widgets/adw-spinner.js";import{AdwSplitButton as L}from"../widgets/adw-split-button.js";import{AdwStatusPage as R}from"../widgets/adw-status-page.js";import{AdwSwitchRow as z}from"../widgets/adw-switch-row.js";import{AdwTabPage as B}from"../values/tab-page.js";import{AdwTabView as V}from"../widgets/adw-tab-view.js";import{AdwToastOverlay as H}from"../widgets/adw-toast-overlay.js";import{AdwToggle as U}from"../widgets/adw-toggle.js";import{AdwToggleGroup as W}from"../widgets/adw-toggle-group.js";import{AdwToolbarView as G}from"../widgets/adw-toolbar-view.js";import{AdwViewSwitcher as K}from"../widgets/adw-view-switcher.js";import{AdwViewSwitcherBar as q}from"../widgets/adw-view-switcher-bar.js";import{AdwWindow as J}from"../widgets/adw-window.js";import{AdwWrapBox as Y}from"../widgets/adw-wrap-box.js";import{AdwStyleManager as X}from"../widgets/style-manager.js";import"../widgets/style-manager-host.js";import{ColorScheme as Z,Toast as Q,ToastPriority as $}from"@gjsify/adwaita-core";var ne=ee({AboutDialog:()=>e,ActionRow:()=>t,AlertDialog:()=>n,Application:()=>r,ApplicationWindow:()=>i,Avatar:()=>a,Banner:()=>o,Bin:()=>s,BottomSheet:()=>c,ButtonContent:()=>l,ButtonRow:()=>u,Carousel:()=>d,CarouselIndicatorDots:()=>f,CarouselIndicatorLines:()=>p,Clamp:()=>m,ColorScheme:()=>Z,ComboRow:()=>h,Dialog:()=>g,EntryRow:()=>_,ExpanderRow:()=>v,HeaderBar:()=>b,InlineViewSwitcher:()=>C,NavigationPage:()=>T,NavigationSplitView:()=>w,NavigationView:()=>E,OverlaySplitView:()=>D,PasswordEntryRow:()=>te,PreferencesDialog:()=>O,PreferencesGroup:()=>k,PreferencesPage:()=>A,ShortcutLabel:()=>j,Sidebar:()=>P,SidebarItem:()=>M,SidebarSection:()=>N,SpinRow:()=>F,Spinner:()=>I,SplitButton:()=>L,StatusPage:()=>R,StyleManager:()=>X,SwitchRow:()=>z,TabPage:()=>B,TabView:()=>V,Toast:()=>Q,ToastOverlay:()=>H,ToastPriority:()=>$,Toggle:()=>U,ToggleGroup:()=>W,ToolbarView:()=>G,ViewStack:()=>S,ViewStackPage:()=>x,ViewSwitcher:()=>K,ViewSwitcherBar:()=>q,Window:()=>J,WindowTitle:()=>y,WrapBox:()=>Y});export{e as AboutDialog,t as ActionRow,n as AlertDialog,r as Application,i as ApplicationWindow,a as Avatar,o as Banner,s as Bin,c as BottomSheet,l as ButtonContent,u as ButtonRow,d as Carousel,f as CarouselIndicatorDots,p as CarouselIndicatorLines,m as Clamp,Z as ColorScheme,h as ComboRow,g as Dialog,_ as EntryRow,v as ExpanderRow,b as HeaderBar,C as InlineViewSwitcher,T as NavigationPage,w as NavigationSplitView,E as NavigationView,D as OverlaySplitView,te as PasswordEntryRow,O as PreferencesDialog,k as PreferencesGroup,A as PreferencesPage,j as ShortcutLabel,P as Sidebar,M as SidebarItem,N as SidebarSection,F as SpinRow,I as Spinner,L as SplitButton,R as StatusPage,X as StyleManager,z as SwitchRow,B as TabPage,V as TabView,Q as Toast,H as ToastOverlay,$ as ToastPriority,U as Toggle,W as ToggleGroup,G as ToolbarView,S as ViewStack,x as ViewStackPage,K as ViewSwitcher,q as ViewSwitcherBar,J as Window,y as WindowTitle,Y as WrapBox,ne as adw_exports};
@@ -1 +1 @@
1
- import{__exportAll as e}from"../_virtual/_rolldown/runtime.js";import{GLibBytes as t,GLibError as n,MAXUINT32 as r,buildFilenamev as i,createGLibTimers as a,getCurrentDir as o,getSystemDataDirs as s,uriEscapeString as c}from"@gjsify/adwaita-core";var l=e({Bytes:()=>t,Error:()=>n,MAXUINT32:()=>x,PRIORITY_DEFAULT:()=>f,PRIORITY_DEFAULT_IDLE:()=>m,PRIORITY_HIGH:()=>d,PRIORITY_HIGH_IDLE:()=>p,PRIORITY_LOW:()=>h,SOURCE_CONTINUE:()=>_,SOURCE_REMOVE:()=>g,build_filenamev:()=>S,get_current_dir:()=>C,get_system_data_dirs:()=>w,idle_add:()=>v,source_remove:()=>b,timeout_add:()=>y,uri_escape_string:()=>T});const u=a(),d=u.PRIORITY_HIGH,f=u.PRIORITY_DEFAULT,p=u.PRIORITY_HIGH_IDLE,m=u.PRIORITY_DEFAULT_IDLE,h=u.PRIORITY_LOW,g=u.SOURCE_REMOVE,_=u.SOURCE_CONTINUE,v=u.idle_add,y=u.timeout_add,b=u.source_remove,x=r,S=i,C=o,w=s,T=c;export{t as Bytes,n as Error,x as MAXUINT32,f as PRIORITY_DEFAULT,m as PRIORITY_DEFAULT_IDLE,d as PRIORITY_HIGH,p as PRIORITY_HIGH_IDLE,h as PRIORITY_LOW,_ as SOURCE_CONTINUE,g as SOURCE_REMOVE,S as build_filenamev,C as get_current_dir,w as get_system_data_dirs,l as glib_exports,v as idle_add,b as source_remove,y as timeout_add,T as uri_escape_string};
1
+ import{__exportAll as e}from"../_virtual/_rolldown/runtime.js";import{hostLanguageTags as t}from"../language-host.js";import{GLibBytes as n,GLibError as r,GLibVariant as i,MAXUINT32 as a,buildFilenamev as o,createGLibTimers as s,getCurrentDir as c,getSystemDataDirs as l,languageNamesFromTags as u,unicharIsalpha as d,uriEscapeString as f}from"@gjsify/adwaita-core";var p=e({Bytes:()=>n,Error:()=>r,MAXUINT32:()=>T,PRIORITY_DEFAULT:()=>g,PRIORITY_DEFAULT_IDLE:()=>v,PRIORITY_HIGH:()=>h,PRIORITY_HIGH_IDLE:()=>_,PRIORITY_LOW:()=>y,SOURCE_CONTINUE:()=>x,SOURCE_REMOVE:()=>b,Variant:()=>i,build_filenamev:()=>E,get_current_dir:()=>D,get_language_names:()=>get_language_names,get_system_data_dirs:()=>O,idle_add:()=>S,source_remove:()=>w,timeout_add:()=>C,unichar_isalpha:()=>A,uri_escape_string:()=>k});const m=s(),h=m.PRIORITY_HIGH,g=m.PRIORITY_DEFAULT,_=m.PRIORITY_HIGH_IDLE,v=m.PRIORITY_DEFAULT_IDLE,y=m.PRIORITY_LOW,b=m.SOURCE_REMOVE,x=m.SOURCE_CONTINUE,S=m.idle_add,C=m.timeout_add,w=m.source_remove,T=a,E=o,D=c,O=l,get_language_names=()=>u(t()),k=f,A=d;export{n as Bytes,r as Error,T as MAXUINT32,g as PRIORITY_DEFAULT,v as PRIORITY_DEFAULT_IDLE,h as PRIORITY_HIGH,_ as PRIORITY_HIGH_IDLE,y as PRIORITY_LOW,x as SOURCE_CONTINUE,b as SOURCE_REMOVE,i as Variant,E as build_filenamev,D as get_current_dir,get_language_names,O as get_system_data_dirs,p as glib_exports,S as idle_add,w as source_remove,C as timeout_add,A as unichar_isalpha,k as uri_escape_string};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"../widgets/construct-props.js";import{WIDGET_SIGNALS as t,watchMapping as n}from"../widgets/widget-mapping.js";import{emittedSignalsOf as r}from"../widgets/signals.js";import{registerTemplateClass as i}from"../builder/template-classes.js";import{nativePlatformHost as a}from"../platform-host.js";import{buildInto as o}from"../builder/index.js";import{ENGINE_TARGET as s}from"../engine-target.js";import{gdk as c}from"./gdk.js";import{GObjectObject as l,connectInstance as u,constructRegistered as d,createGObject as f,disconnectInstance as p,emitInstance as m,engineForTarget as h,notifyInstance as g,registeredClassOf as _,widgetControllerMembers as v,widgetDisplayMembers as y}from"@gjsify/adwaita-core";function nearestRegistered(e){for(let t=e;typeof t==`function`;t=Object.getPrototypeOf(t))if(_(t)!==void 0)return t}function declareEmitted(e,t){let n=r(e),i=[...t.properties.map(e=>`notify::${e.name}`),...Object.keys(t.signals)];Object.defineProperty(e,"emittedSignals",{value:[...new Set([...n,...i])],enumerable:!1,configurable:!0,writable:!0})}function spliceLayer(t){let n=Object.getPrototypeOf(t),r=n.prototype.notify;class Registered extends n{constructor(n){if(super(),nearestRegistered(new.target)!==t)return;let r=d(this,n);e(this,r)}}let i={connect(e,t){return u(this,e,t)},disconnect(e){p(this,e)},emit(e,...t){m(this,e,...t)},notify(e){typeof e==`string`?g(this,e):r.call(this,e)}};for(let[e,t]of Object.entries({...y(c),...v(a)}))e in n.prototype||(i[e]=t);for(let[e,t]of Object.entries(i))Object.defineProperty(Registered.prototype,e,{value:t,writable:!0,configurable:!0,enumerable:!1});Object.setPrototypeOf(t,Registered),Object.setPrototypeOf(t.prototype,Registered.prototype)}const{engineName:b,Object:x,registerClass:S,ParamSpec:C,ParamFlags:w,Value:T,TYPE_STRING:E,TYPE_BOOLEAN:D,TYPE_INT:O,TYPE_UINT:k,TYPE_DOUBLE:A,GTypeName:j,GTypeFlags:M,interfaces:N,properties:P,signals:F,requires:I,__gtkTemplate__:L,__gtkCssName__:R,__gtkChildren__:z,__gtkInternalChildren__:B,type_ensure:V,signal_stop_emission_by_name:H}=f({name:`adwaita-nativescript`,dispatch(e,t,n){e.notify({eventName:t,object:e,args:n})},listen(e,r,i){let listener=t=>{i(e,t)},a=t.includes(r)?n(e):void 0;return e.addEventListener(r,listener),()=>{e.removeEventListener(r,listener),a?.()}},createFromTree(e,t,n){let r=o(n,e,{template:t});return{children:[],objects:Object.fromEntries(r)}},attach(e,t){},register(e,t){declareEmitted(e,t),!(e.prototype instanceof l)&&(spliceLayer(e),i(t.typeName,e))}},h(s));export{M as GTypeFlags,j as GTypeName,x as Object,w as ParamFlags,C as ParamSpec,D as TYPE_BOOLEAN,A as TYPE_DOUBLE,O as TYPE_INT,E as TYPE_STRING,k as TYPE_UINT,T as Value,z as __gtkChildren__,R as __gtkCssName__,B as __gtkInternalChildren__,L as __gtkTemplate__,b as engineName,N as interfaces,P as properties,S as registerClass,I as requires,H as signal_stop_emission_by_name,F as signals,V as type_ensure};
1
+ import"../_virtual/_rolldown/runtime.js";import{ENGINE_TARGET as e}from"../engine-target.js";import{applyConstructProps as t}from"../widgets/construct-props.js";import{WIDGET_SIGNALS as n,watchMapping as r}from"../widgets/widget-mapping.js";import{emittedSignalsOf as i}from"../widgets/signals.js";import{registerTemplateClass as a}from"../builder/template-classes.js";import{nativePlatformHost as o}from"../platform-host.js";import{buildInto as s}from"../builder/index.js";import{gdk as c}from"./gdk.js";import{GObjectObject as l,connectInstance as u,constructRegistered as d,createGObject as f,disconnectInstance as p,emitInstance as m,engineForTarget as h,notifyInstance as g,registeredClassOf as _,widgetControllerMembers as v,widgetDisplayMembers as y}from"@gjsify/adwaita-core";function nearestRegistered(e){for(let t=e;typeof t==`function`;t=Object.getPrototypeOf(t))if(_(t)!==void 0)return t}function declareEmitted(e,t){let n=i(e),r=[...t.properties.map(e=>`notify::${e.name}`),...Object.keys(t.signals)];Object.defineProperty(e,"emittedSignals",{value:[...new Set([...n,...r])],enumerable:!1,configurable:!0,writable:!0})}function spliceLayer(e){let n=Object.getPrototypeOf(e),r=n.prototype.notify;class Registered extends n{constructor(n){if(super(),nearestRegistered(new.target)!==e)return;let r=d(this,n);t(this,r)}}let i={connect(e,t){return u(this,e,t)},disconnect(e){p(this,e)},emit(e,...t){m(this,e,...t)},notify(e){typeof e==`string`?g(this,e):r.call(this,e)}};for(let[e,t]of Object.entries({...y(c),...v(o)}))e in n.prototype||(i[e]=t);for(let[e,t]of Object.entries(i))Object.defineProperty(Registered.prototype,e,{value:t,writable:!0,configurable:!0,enumerable:!1});Object.setPrototypeOf(e,Registered),Object.setPrototypeOf(e.prototype,Registered.prototype)}const{engineName:b,Object:x,registerClass:S,ParamSpec:C,ParamFlags:w,Value:T,TYPE_STRING:E,TYPE_BOOLEAN:D,TYPE_INT:O,TYPE_UINT:k,TYPE_DOUBLE:A,GTypeName:j,GTypeFlags:M,interfaces:N,properties:P,signals:F,requires:I,__gtkTemplate__:L,__gtkCssName__:R,__gtkChildren__:z,__gtkInternalChildren__:B,type_ensure:V,signal_stop_emission_by_name:H}=f({name:`adwaita-nativescript`,dispatch(e,t,n){e.notify({eventName:t,object:e,args:n})},listen(e,t,i){let listener=t=>{i(e,t)},a=n.includes(t)?r(e):void 0;return e.addEventListener(t,listener),()=>{e.removeEventListener(t,listener),a?.()}},createFromTree(e,t,n){let r=s(n,e,{template:t});return{children:[],objects:Object.fromEntries(r)}},attach(e,t){},register(e,t){declareEmitted(e,t),!(e.prototype instanceof l)&&(spliceLayer(e),a(t.typeName,e))}},h(e));export{M as GTypeFlags,j as GTypeName,x as Object,w as ParamFlags,C as ParamSpec,D as TYPE_BOOLEAN,A as TYPE_DOUBLE,O as TYPE_INT,E as TYPE_STRING,k as TYPE_UINT,T as Value,z as __gtkChildren__,R as __gtkCssName__,B as __gtkInternalChildren__,L as __gtkTemplate__,b as engineName,N as interfaces,P as properties,S as registerClass,I as requires,H as signal_stop_emission_by_name,F as signals,V as type_ensure};
@@ -1,2 +1,7 @@
1
- import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{xmlBoolean as t}from"./xml-values.js";import{withSignals as n}from"./signals.js";import{findDialogHost as r}from"./window-state.js";import{ADW_ABOUT_DIALOG_LABELS as i,aboutDialogVisibility as a,refuseNewFromAppdata as o,releaseNotesBuffer as s,stripMnemonic as c}from"@gjsify/adwaita-core";import{Button as l,GridLayout as u,ItemSpec as d,Label as f,ScrollView as p,StackLayout as m}from"@nativescript/core";const h=`closed`;var AdwAboutDialog=class extends n(u){static GTypeName=`AdwAboutDialog`;_card;_iconLabel;_nameLabel;_versionLabel;_developerLabel;_commentsLabel;_websiteLabel;_copyrightLabel;_releaseNotesLabel;_linksLabel;_debugInfoLabel;_applicationName=``;_applicationIcon=``;_developerName=``;_version=``;_comments=``;_website=``;_copyright=``;_releaseNotes=``;_releaseNotesVersion=``;_debugInfo=``;_links=[];_releaseNotesSegments=[];_host=null;constructor(t){super(),this.className=`adw-about-dialog`,this.visibility=`collapse`,this.addColumn(new d(1,`star`)),this.addRow(new d(1,`star`));let n=new p;n.orientation=`vertical`,n.verticalAlignment=`middle`,n.horizontalAlignment=`center`,u.setColumn(n,0),u.setRow(n,0);let r=new m;r.orientation=`vertical`,r.className=`adw-about-dialog-card`,n.content=r,this.addChild(n),this._card=r,this._iconLabel=this._addCardLabel(r,`adw-about-dialog-icon`),this._nameLabel=this._addCardLabel(r,`adw-about-dialog-name`),this._versionLabel=this._addCardLabel(r,`adw-about-dialog-version`),this._developerLabel=this._addCardLabel(r,`adw-about-dialog-developer`),this._commentsLabel=this._addCardLabel(r,`adw-about-dialog-comments`),this._releaseNotesLabel=this._addCardLabel(r,`adw-about-dialog-release-notes`),this._websiteLabel=this._addCardLabel(r,`adw-about-dialog-website`),this._linksLabel=this._addCardLabel(r,`adw-about-dialog-links`),this._copyrightLabel=this._addCardLabel(r,`adw-about-dialog-copyright`),this._debugInfoLabel=this._addCardLabel(r,`adw-about-dialog-debug-info`);let i=new l;i.text=`Close`,i.className=`adw-about-dialog-close`,i.set(`androidElevation`,0),i.addEventListener(`tap`,()=>this.close()),r.addChild(i),this._render(),e(this,t)}_addCardLabel(e,t){let n=new f;return n.className=t,n.horizontalAlignment=`center`,n.textWrap=!0,e.addChild(n),n}get applicationName(){return this._applicationName}set applicationName(e){this._applicationName=e??``,this._render()}get applicationIcon(){return this._applicationIcon}set applicationIcon(e){this._applicationIcon=e??``,this._render()}get version(){return this._version}set version(e){this._version=e??``,this._render()}get developerName(){return this._developerName}set developerName(e){this._developerName=e??``,this._render()}get comments(){return this._comments}set comments(e){this._comments=e??``,this._render()}get website(){return this._website}set website(e){this._website=e??``,this._render()}get copyright(){return this._copyright}set copyright(e){this._copyright=e??``,this._render()}get releaseNotes(){return this._releaseNotes}set releaseNotes(e){this._releaseNotes=e??``,this._updateReleaseNotes()}get releaseNotesVersion(){return this._releaseNotesVersion}set releaseNotesVersion(e){this._releaseNotesVersion=e??``,this._updateReleaseNotes()}get debugInfo(){return this._debugInfo}set debugInfo(e){this._debugInfo=e??``,this._render()}add_link(e,t){this._links.push({title:e,url:t}),this._render()}static new_from_appdata(e,t){o()}_updateReleaseNotes(){this._releaseNotesSegments=s({releaseNotes:this._releaseNotes,releaseNotesVersion:this._releaseNotesVersion,version:this._version},i).segments,this._render()}_render(){let e=a({applicationName:this._applicationName,applicationIcon:this._applicationIcon,developerName:this._developerName,version:this._version,comments:this._comments,website:this._website,debugInfo:this._debugInfo,releaseNotes:this._releaseNotes,hasCustomLinks:this._links.length>0}),show=(e,t,n)=>{e.text=t,e.visibility=n?`visible`:`collapse`};show(this._iconLabel,this._applicationIcon,e.appIcon),show(this._nameLabel,this._applicationName,e.appName),show(this._versionLabel,this._version,e.version),show(this._developerLabel,this._developerName,e.developerName),show(this._commentsLabel,this._comments,e.commentsLabel),show(this._websiteLabel,this._website,e.websiteRow),show(this._copyrightLabel,this._copyright,this._copyright.length>0),show(this._releaseNotesLabel,this._releaseNotesSegments.map(e=>e.text).join(``),e.whatsNewRow),show(this._linksLabel,this._links.map(e=>`${c(e.title)}: ${e.url}`).join(`
2
- `),this._links.length>0),show(this._debugInfoLabel,this._debugInfo,e.troubleshootingRow)}present(e){if(!this.open){if(this.parent===null||this.parent===void 0){let t=r(e??null);if(t===null)throw Error(`${this.constructor.name} has no window to appear in: pass a widget that sits inside an Adw.Window / Adw.ApplicationWindow to present(), or add the dialog to a layout first.`);t._hostDialog(this),this._host=t}this.visibility=`visible`}}close(){this.visibility=`collapse`,this._host!==null&&(this._host._unhostDialog(this),this._host=null);let e={eventName:h,object:this};this.notify(e)}get open(){return this.visibility===`visible`}set open(e){t(e,!1)?this.present():this.close()}};export{AdwAboutDialog,h as CLOSED};
1
+ import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{xmlBoolean as t,xmlNumber as n}from"./xml-values.js";import{withSignals as r}from"./signals.js";import{nativeClipboardHost as i}from"../clipboard-host.js";import{nativePlatformHost as a}from"../platform-host.js";import{GtkImage as o}from"./gtk-image.js";import{findDialogHost as s}from"./window-state.js";import{ADW_ABOUT_DIALOG_LABELS as c,ADW_LICENSE_DEFAULTS as l,HandledAccumulator as u,aboutDialogVisibility as d,acknowledgementSections as f,createAppInfo as p,creditsSections as m,flatCardShowsWebsite as h,isLicenseType as g,legalMarkupText as _,legalSections as v,legalVisible as y,licenseTypeForNick as b,refuseNewFromAppdata as x,releaseNotesBuffer as S,setLicense as C,setLicenseType as w,stripMnemonic as T}from"@gjsify/adwaita-core";import{Button as E,GridLayout as D,ItemSpec as O,Label as k,ScrollView as A,StackLayout as j}from"@nativescript/core";const M=`closed`,N=`activate-link`,P=p(a);function creditsText(e){return e.map(e=>[...e.title===null?[]:[e.title],...e.people.map(e=>e.name)].join(`
2
+ `)).join(`
3
+
4
+ `)}var AdwAboutDialog=class extends r(D){static GTypeName=`AdwAboutDialog`;_card;_appIcon;_nameLabel;_versionLabel;_developerLabel;_commentsLabel;_websiteButton;_supportButton;_issueButton;_creditsLabel;_acknowledgementsLabel;_legalLabel;_releaseNotesLabel;_linksBox;_debugInfoLabel;_copyButton;_applicationName=``;_applicationIcon=``;_developerName=``;_version=``;_comments=``;_website=``;_supportUrl=``;_issueUrl=``;_copyright=``;_licenseState={...l};_developers=[];_designers=[];_artists=[];_documenters=[];_translatorCredits=``;_releaseNotes=``;_releaseNotesVersion=``;_debugInfo=``;_links=[];_creditSections=[];_acknowledgementSections=[];_legalSections=[];_releaseNotesSegments=[];_host=null;constructor(t){super(),this.className=`adw-about-dialog`,this.visibility=`collapse`,this.addColumn(new O(1,`star`)),this.addRow(new O(1,`star`));let n=new A;n.orientation=`vertical`,n.verticalAlignment=`middle`,n.horizontalAlignment=`center`,D.setColumn(n,0),D.setRow(n,0);let r=new j;r.orientation=`vertical`,r.className=`adw-about-dialog-card`,n.content=r,this.addChild(n),this._card=r;let i=new o;i.className=`adw-icon adw-about-dialog-icon`,i.pixelSize=128,i.horizontalAlignment=`center`,r.addChild(i),this._appIcon=i,this._nameLabel=this._addCardLabel(r,`adw-about-dialog-name`),this._versionLabel=this._addCardLabel(r,`adw-about-dialog-version`),this._developerLabel=this._addCardLabel(r,`adw-about-dialog-developer`),this._commentsLabel=this._addCardLabel(r,`adw-about-dialog-comments`),this._releaseNotesLabel=this._addCardLabel(r,`adw-about-dialog-release-notes`),this._websiteButton=this._addLinkButton(r,`adw-about-dialog-website`),this._linksBox=new j,this._linksBox.className=`adw-about-dialog-links`,r.addChild(this._linksBox),this._supportButton=this._addLinkButton(r,`adw-about-dialog-support`),this._issueButton=this._addLinkButton(r,`adw-about-dialog-issue`),this._creditsLabel=this._addCardLabel(r,`adw-about-dialog-credits`),this._acknowledgementsLabel=this._addCardLabel(r,`adw-about-dialog-acknowledgements`),this._legalLabel=this._addCardLabel(r,`adw-about-dialog-legal`),this._debugInfoLabel=this._addCardLabel(r,`adw-about-dialog-debug-info`);let a=new E;a.text=T(c.copyText),a.className=`adw-about-dialog-copy`,a.set(`androidElevation`,0),a.addEventListener(`tap`,()=>this._copyDebugInfo()),r.addChild(a),this._copyButton=a;let s=new E;s.text=`Close`,s.className=`adw-about-dialog-close`,s.set(`androidElevation`,0),s.addEventListener(`tap`,()=>this.close()),r.addChild(s),this._render(),e(this,t)}_addCardLabel(e,t){let n=new k;return n.className=t,n.horizontalAlignment=`center`,n.textWrap=!0,e.addChild(n),n}_addLinkButton(e,t){let n=new E;return n.className=`adw-about-dialog-link ${t}`,n.set(`androidElevation`,0),e.addChild(n),n}_activateLink(e){let t=new u;if(this.notify({eventName:N,object:this,uri:e,accumulator:t}),!t.stopped)try{P.launch_default_for_uri(e,null)}catch{}}_setLink(e,t,n,r){e.text=t,e.visibility=r?`visible`:`collapse`;let i=e;i._uriTap&&e.removeEventListener(`tap`,i._uriTap),i._uriTap=()=>this._activateLink(n),e.addEventListener(`tap`,i._uriTap)}get applicationName(){return this._applicationName}set applicationName(e){this._applicationName=e??``,this._render()}get applicationIcon(){return this._applicationIcon}set applicationIcon(e){this._applicationIcon=e??``,this._render()}get version(){return this._version}set version(e){this._version=e??``,this._render()}get developerName(){return this._developerName}set developerName(e){this._developerName=e??``,this._render()}get comments(){return this._comments}set comments(e){this._comments=e??``,this._render()}get website(){return this._website}set website(e){this._website=e??``,this._render()}get supportUrl(){return this._supportUrl}set supportUrl(e){this._supportUrl=e??``,this._render()}get issueUrl(){return this._issueUrl}set issueUrl(e){this._issueUrl=e??``,this._render()}get copyright(){return this._copyright}set copyright(e){this._copyright=e??``,this._render()}get license(){return this._licenseState.license}set license(e){this._licenseState=C(this._licenseState,e??``).state,this._render()}get licenseType(){return this._licenseState.licenseType}set licenseType(e){let t=(typeof e==`string`?b(e.trim()):void 0)??n(e,-1);this._licenseState=w(this._licenseState,t).state,this._render()}get developers(){return this._developers}set developers(e){this._developers=[...e??[]],this._render()}get designers(){return this._designers}set designers(e){this._designers=[...e??[]],this._render()}get artists(){return this._artists}set artists(e){this._artists=[...e??[]],this._render()}get documenters(){return this._documenters}set documenters(e){this._documenters=[...e??[]],this._render()}get translatorCredits(){return this._translatorCredits}set translatorCredits(e){this._translatorCredits=e??``,this._render()}get releaseNotes(){return this._releaseNotes}set releaseNotes(e){this._releaseNotes=e??``,this._updateReleaseNotes()}get releaseNotesVersion(){return this._releaseNotesVersion}set releaseNotesVersion(e){this._releaseNotesVersion=e??``,this._updateReleaseNotes()}get debugInfo(){return this._debugInfo}set debugInfo(e){this._debugInfo=e??``,this._render()}add_link(e,t){this._links.push({title:e,url:t}),this._render()}add_credit_section(e,t){this._creditSections.push({title:e,people:[...t]}),this._render()}add_acknowledgement_section(e,t){this._acknowledgementSections.push({title:e,people:[...t]}),this._render()}add_legal_section(e,t,n,r){g(n)&&(this._legalSections.push({title:e,copyright:t,licenseType:n,license:r}),this._render())}static new_from_appdata(e,t){x()}_updateReleaseNotes(){this._releaseNotesSegments=S({releaseNotes:this._releaseNotes,releaseNotesVersion:this._releaseNotesVersion,version:this._version},c).segments,this._render()}_render(){let e=m({developers:this._developers,designers:this._designers,artists:this._artists,documenters:this._documenters,translatorCredits:this._translatorCredits,creditSections:this._creditSections}),t=f(this._acknowledgementSections),n={copyright:this._copyright,licenseType:this._licenseState.licenseType,license:this._licenseState.license,legalSections:this._legalSections},r=d({applicationName:this._applicationName,applicationIcon:this._applicationIcon,developerName:this._developerName,version:this._version,comments:this._comments,website:this._website,supportUrl:this._supportUrl,issueUrl:this._issueUrl,debugInfo:this._debugInfo,releaseNotes:this._releaseNotes,hasCustomLinks:this._links.length>0,hasCredits:e.length>0,hasLegal:y(n),hasAcknowledgements:t.length>0}),show=(e,t,n)=>{e.text=t,e.visibility=n?`visible`:`collapse`};this._appIcon.iconName=this._applicationIcon,this._appIcon.visibility=r.appIcon?`visible`:`collapse`,show(this._nameLabel,this._applicationName,r.appName),show(this._versionLabel,this._version,r.version),show(this._developerLabel,this._developerName,r.developerName),show(this._commentsLabel,this._comments,r.commentsLabel),this._setLink(this._websiteButton,T(c.websiteRow),this._website,h(r)),this._setLink(this._supportButton,T(c.supportRow),this._supportUrl,r.supportRow),this._setLink(this._issueButton,T(c.issueRow),this._issueUrl,r.issueRow),show(this._creditsLabel,creditsText(e),r.creditsRow),show(this._acknowledgementsLabel,creditsText(t),r.acknowledgementsRow),show(this._legalLabel,v(n).map(e=>[e.title??``,_(e.markup)].filter(e=>e.length>0).join(`
5
+ `)).join(`
6
+
7
+ `),r.legalRow),show(this._releaseNotesLabel,this._releaseNotesSegments.map(e=>e.text).join(``),r.whatsNewRow),this._linksBox.removeChildren();for(let e of this._links){let t=this._addLinkButton(this._linksBox,`adw-about-dialog-links-item`);this._setLink(t,T(e.title),e.url,!0)}this._linksBox.visibility=this._links.length>0?`visible`:`collapse`,show(this._debugInfoLabel,this._debugInfo,r.troubleshootingRow),this._copyButton.visibility=r.troubleshootingRow?`visible`:`collapse`}_copyDebugInfo(){let e=this._debugInfo;Promise.resolve().then(()=>i.writeText(e)).catch(()=>void 0)}present(e){if(!this.open){if(this.parent===null||this.parent===void 0){let t=s(e??null);if(t===null)throw Error(`${this.constructor.name} has no window to appear in: pass a widget that sits inside an Adw.Window / Adw.ApplicationWindow to present(), or add the dialog to a layout first.`);t._hostDialog(this),this._host=t}this.visibility=`visible`}}close(){this.visibility=`collapse`,this._host!==null&&(this._host._unhostDialog(this),this._host=null);let e={eventName:M,object:this};this.notify(e)}get open(){return this.visibility===`visible`}set open(e){t(e,!1)?this.present():this.close()}};export{N as ACTIVATE_LINK,AdwAboutDialog,M as CLOSED};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{builderSlotsOf as e,resolveBuilderSlot as t}from"./builder-slots.js";import{applyConstructProps as n}from"./construct-props.js";import{xmlBoolean as r}from"./xml-values.js";import{withSignals as i}from"./signals.js";import{ActionRowState as a,isViewSensitive as o,rowLabelVisuals as s}from"./row-state.js";import{GtkImage as c}from"./gtk-image.js";import{GridLayout as l,ItemSpec as u,Label as d,StackLayout as f}from"@nativescript/core";const p=`activated`,m=[`prefix`,`suffix`];var AdwActionRow=class extends i(l){static GTypeName=`AdwActionRow`;static builderSlots=e(m,`suffix`);isActionRow=!0;_textStack;_titleLabel;_subtitleLabel;_rowState=new a;_prefix=null;_iconImage=null;_suffix=null;constructor(e){super(),this.className=`adw-row adw-action-row`,this.addColumn(new u(1,`auto`)),this.addColumn(new u(1,`star`)),this.addColumn(new u(1,`auto`)),this.addRow(new u(1,`auto`));let t=new f;t.orientation=`vertical`,t.className=`adw-row-text`,l.setColumn(t,1);let r=new d;r.className=`adw-row-title`,r.textWrap=!0,t.addChild(r);let i=new d;i.className=`adw-row-subtitle`,i.textWrap=!0,t.addChild(i),this.addChild(t),this._textStack=t,this._titleLabel=r,this._subtitleLabel=i,this._applyLabels(),this.addEventListener(`tap`,()=>this.activate()),n(this,e)}add_prefix(e){this._prefix&&this.remove(this._prefix),e.className=`${e.className??``} adw-row-prefix`.trim(),l.setColumn(e,0),this.insertChild(e,0),this._prefix=e}get iconName(){return this._iconImage!==null&&this._prefix===this._iconImage?this._iconImage.iconName:``}set iconName(e){let t=e??``;if(this._iconImage!==null&&this._prefix!==this._iconImage&&(this._iconImage=null),t===``){this._iconImage!==null&&(this.remove(this._iconImage),this._iconImage=null);return}if(this._iconImage===null){if(this._prefix)throw TypeError(`${this.constructor.name}.iconName needs the prefix slot, which add_prefix() already filled.`);this._iconImage=new c,this.add_prefix(this._iconImage)}this._iconImage.iconName=t}get prefix(){return this._prefix}get title(){return this._rowState.title}set title(e){this._rowState.setTitle(e)&&this._applyLabels()}get subtitle(){return this._rowState.subtitle}set subtitle(e){this._rowState.setSubtitle(e)&&this._applyLabels()}add_suffix(e){this._suffix&&this.remove(this._suffix),e.className=`${e.className??``} adw-row-suffix`.trim(),l.setColumn(e,2),this.addChild(e),this._suffix=e}remove(e){if(e===this._prefix)this._prefix=null;else if(e===this._suffix)this._suffix=null;else throw TypeError(`${this.constructor.name}.remove(): the view is neither this row's prefix nor its suffix. add_prefix()/add_suffix() are the only two slots remove() clears.`);this.removeChild(e)}get suffix(){return this._suffix}_addChildFromBuilder(e,n){t(e,m,`suffix`)===`prefix`?this.add_prefix(n):this.add_suffix(n)}get activatableWidget(){return this._rowState.activatableWidget}set activatableWidget(e){this._rowState.setActivatableWidget(e,o(e))}syncActivatableWidgetSensitivity(){let e=this._rowState.activatableWidget;e&&this._rowState.setActivatableWidgetSensitive(o(e))}get activatable(){return this._rowState.activatable}set activatable(e){this._rowState.setActivatable(r(e,!1))}activate(){if(!this._rowState.activatable)return;let e={eventName:p,object:this};this.notify(e)}_managesTitleVisibility=!0;_applyLabels(){let e=s({title:this._rowState.title,subtitle:this._rowState.subtitle});this._titleLabel.text=e.title,this._managesTitleVisibility&&(this._titleLabel.visibility=e.titleVisibility),this._subtitleLabel.text=e.subtitle,this._subtitleLabel.visibility=e.subtitleVisibility}};export{p as ACTIVATED,AdwActionRow};
1
+ import"../_virtual/_rolldown/runtime.js";import{builderSlotsOf as e,resolveBuilderSlot as t}from"./builder-slots.js";import{applyConstructProps as n}from"./construct-props.js";import{withSignals as r}from"./signals.js";import{GtkImage as i}from"./gtk-image.js";import{ActionRowState as a,isViewSensitive as o,rowLabelVisuals as s}from"./row-state.js";import{GridLayout as c,ItemSpec as l,Label as u,StackLayout as d}from"@nativescript/core";const f=`activated`,p=`notify::title`,m=`notify::subtitle`,h=`notify::icon-name`,g=`notify::activatable`,_=[`prefix`,`suffix`];var AdwActionRow=class extends r(c,{GTypeName:`AdwActionRow`,Properties:{title:{kind:`string`,default:``,blurb:`The title of the row`},subtitle:{kind:`string`,default:``,blurb:`The subtitle of the row`},"icon-name":{kind:`string`,default:``,blurb:`The icon name for this row`},activatable:{kind:`boolean`,default:!1,blurb:`Whether this row can be activated`}}}){static GTypeName=`AdwActionRow`;static builderSlots=e(_,`suffix`);isActionRow=!0;_textStack;_titleLabel;_subtitleLabel;_rowState=new a;_prefix=null;_iconImage=null;_suffix=null;constructor(e){super(),this.className=`adw-row adw-action-row`,this.addColumn(new l(1,`auto`)),this.addColumn(new l(1,`star`)),this.addColumn(new l(1,`auto`)),this.addRow(new l(1,`auto`));let t=new d;t.orientation=`vertical`,t.className=`adw-row-text`,c.setColumn(t,1);let r=new u;r.className=`adw-row-title`,r.textWrap=!0,t.addChild(r);let i=new u;i.className=`adw-row-subtitle`,i.textWrap=!0,t.addChild(i),this.addChild(t),this._textStack=t,this._titleLabel=r,this._subtitleLabel=i,this.connect(p,e=>e._applyLabels()),this.connect(m,e=>e._applyLabels()),this.connect(h,e=>e._applyIconName()),this.connect(g,e=>{e._rowState.setActivatable(e.activatable)}),this._applyLabels(),this.addEventListener(`tap`,()=>this.activate()),n(this,e)}add_prefix(e){this._prefix&&this.remove(this._prefix),e.className=`${e.className??``} adw-row-prefix`.trim(),c.setColumn(e,0),this.insertChild(e,0),this._prefix=e}get prefix(){return this._prefix}add_suffix(e){this._suffix&&this.remove(this._suffix),e.className=`${e.className??``} adw-row-suffix`.trim(),c.setColumn(e,2),this.addChild(e),this._suffix=e}remove(e){if(e===this._prefix)this._prefix=null;else if(e===this._suffix)this._suffix=null;else throw TypeError(`${this.constructor.name}.remove(): the view is neither this row's prefix nor its suffix. add_prefix()/add_suffix() are the only two slots remove() clears.`);this.removeChild(e),e===this._iconImage&&(this._iconImage=null,this.iconName=``)}get suffix(){return this._suffix}_addChildFromBuilder(e,n){t(e,_,`suffix`)===`prefix`?this.add_prefix(n):this.add_suffix(n)}get activatableWidget(){return this._rowState.activatableWidget}set activatableWidget(e){this._rowState.setActivatableWidget(e,o(e))&&e!==null&&(this.activatable=this._rowState.activatable)}syncActivatableWidgetSensitivity(){let e=this._rowState.activatableWidget;e&&this._rowState.setActivatableWidgetSensitive(o(e))&&(this.activatable=this._rowState.activatable)}activate(){if(!this.activatable)return;let e={eventName:f,object:this};this.notify(e)}_managesTitleVisibility=!0;_applyLabels(){let e=s({title:this.title,subtitle:this.subtitle});this._titleLabel.text=e.title,this._managesTitleVisibility&&(this._titleLabel.visibility=e.titleVisibility),this._subtitleLabel.text=e.subtitle,this._subtitleLabel.visibility=e.subtitleVisibility}_applyIconName(){let e=this.iconName;if(e===``){this._iconImage!==null&&this.remove(this._iconImage);return}this._iconImage===null&&(this._iconImage=new i,this.add_prefix(this._iconImage)),this._iconImage.iconName=e}};export{f as ACTIVATED,AdwActionRow,g as NOTIFY_ACTIVATABLE,h as NOTIFY_ICON_NAME,m as NOTIFY_SUBTITLE,p as NOTIFY_TITLE};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{ButtonRowState as t,buttonRowIconColor as n,buttonRowIconVisuals as r}from"./row-state.js";import{GtkImage as i}from"./gtk-image.js";import{ACTIVATED as a,AdwActionRow as o}from"./adw-action-row.js";import{classNameWith as s,normalizeStyleClasses as c,withCssClass as l,withoutCssClass as u}from"./style-classes.js";import{attachRowPressFeedback as d}from"./row-press.js";import{adwaitaAccent as f,onAdwaitaAccentChanged as p}from"@gjsify/adwaita-core";import{StackLayout as m}from"@nativescript/core";const h=`adw-row adw-action-row adw-button-row`;var g=class AdwButtonRow extends o{static GTypeName=`AdwButtonRow`;isActionRow=!1;_contentBox;_startIcon;_endIcon;_pinnedIconColor=null;_unsubAccent=null;_buttonState=new t;_styleClasses=[];constructor(t){super(),this.className=h,this._titleLabel.className=`adw-button-row-title`,this._titleLabel.horizontalAlignment=`center`,this._textStack.removeChild(this._titleLabel);let n=new m;n.orientation=`horizontal`,n.className=`adw-button-row-content`,n.horizontalAlignment=`center`,this._startIcon=AdwButtonRow._makeIcon(`adw-button-row-start-icon`),this._endIcon=AdwButtonRow._makeIcon(`adw-button-row-end-icon`),this._applyIconColor(),this.addEventListener(`loaded`,()=>{this._applyIconColor(),this._unsubAccent??=p(()=>this._applyIconColor())}),this.addEventListener(`unloaded`,()=>{this._unsubAccent?.(),this._unsubAccent=null}),n.addChild(this._startIcon),n.addChild(this._titleLabel),n.addChild(this._endIcon),this._textStack.addChild(n),this._textStack.horizontalAlignment=`center`,this._contentBox=n,this.activatable=!0,this._applyIcons(),d(this),e(this,t)}get styleClasses(){return[...this._styleClasses]}set styleClasses(e){this._setClasses(c(e))}add_css_class(e){this._setClasses(l(this._styleClasses,e))}remove_css_class(e){this._setClasses(u(this._styleClasses,e))}has_css_class(e){return this._styleClasses.includes((e??``).trim())}get_css_classes(){return[...this._styleClasses]}set_css_classes(e){this._setClasses(c([...e].join(` `)))}_setClasses(e){this._styleClasses=e,this.className=s(h,e)}static _makeIcon(e){let t=new i;return t.className=`${t.className} ${e}`.trim(),t.verticalAlignment=`middle`,t}get startIconName(){return this._buttonState.startIconName}set startIconName(e){this._buttonState.setStartIconName(e)&&this._applyIcons()}get endIconName(){return this._buttonState.endIconName}set endIconName(e){this._buttonState.setEndIconName(e)&&this._applyIcons()}get startIconColor(){return this._startIcon.iconColor}set startIconColor(e){this._pinnedIconColor=e||null,this._applyIconColor()}_applyIconColor(){let e=n(this._pinnedIconColor,f());this._startIcon.iconColor=e,this._endIcon.iconColor=e}_applyIcons(){let e=r(this._buttonState.state);this._startIcon.iconName=e.startIcon,this._startIcon.visibility=e.startIconVisibility,this._endIcon.iconName=e.endIcon,this._endIcon.visibility=e.endIconVisibility}};export{a as ACTIVATED,g as AdwButtonRow};
1
+ import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{GtkImage as t}from"./gtk-image.js";import{ButtonRowState as n,buttonRowIconColor as r,buttonRowIconVisuals as i}from"./row-state.js";import{ACTIVATED as a,AdwActionRow as o}from"./adw-action-row.js";import{classNameWith as s,normalizeStyleClasses as c,withCssClass as l,withoutCssClass as u}from"./style-classes.js";import{attachRowPressFeedback as d}from"./row-press.js";import{adwaitaAccent as f,onAdwaitaAccentChanged as p}from"@gjsify/adwaita-core";import{StackLayout as m}from"@nativescript/core";const h=`adw-row adw-action-row adw-button-row`;var g=class AdwButtonRow extends o{static GTypeName=`AdwButtonRow`;isActionRow=!1;_contentBox;_startIcon;_endIcon;_pinnedIconColor=null;_unsubAccent=null;_buttonState=new n;_styleClasses=[];constructor(t){super(),this.className=h,this._titleLabel.className=`adw-button-row-title`,this._titleLabel.horizontalAlignment=`center`,this._textStack.removeChild(this._titleLabel);let n=new m;n.orientation=`horizontal`,n.className=`adw-button-row-content`,n.horizontalAlignment=`center`,this._startIcon=AdwButtonRow._makeIcon(`adw-button-row-start-icon`),this._endIcon=AdwButtonRow._makeIcon(`adw-button-row-end-icon`),this._applyIconColor(),this.addEventListener(`loaded`,()=>{this._applyIconColor(),this._unsubAccent??=p(()=>this._applyIconColor())}),this.addEventListener(`unloaded`,()=>{this._unsubAccent?.(),this._unsubAccent=null}),n.addChild(this._startIcon),n.addChild(this._titleLabel),n.addChild(this._endIcon),this._textStack.addChild(n),this._textStack.horizontalAlignment=`center`,this._contentBox=n,this.activatable=!0,this._applyIcons(),d(this),e(this,t)}get styleClasses(){return[...this._styleClasses]}set styleClasses(e){this._setClasses(c(e))}add_css_class(e){this._setClasses(l(this._styleClasses,e))}remove_css_class(e){this._setClasses(u(this._styleClasses,e))}has_css_class(e){return this._styleClasses.includes((e??``).trim())}get_css_classes(){return[...this._styleClasses]}set_css_classes(e){this._setClasses(c([...e].join(` `)))}_setClasses(e){this._styleClasses=e,this.className=s(h,e)}static _makeIcon(e){let n=new t;return n.className=`${n.className} ${e}`.trim(),n.verticalAlignment=`middle`,n}get startIconName(){return this._buttonState.startIconName}set startIconName(e){this._buttonState.setStartIconName(e)&&this._applyIcons()}get endIconName(){return this._buttonState.endIconName}set endIconName(e){this._buttonState.setEndIconName(e)&&this._applyIcons()}get startIconColor(){return this._startIcon.iconColor}set startIconColor(e){this._pinnedIconColor=e||null,this._applyIconColor()}_applyIconColor(){let e=r(this._pinnedIconColor,f());this._startIcon.iconColor=e,this._endIcon.iconColor=e}_applyIcons(){let e=i(this._buttonState.state);this._startIcon.iconName=e.startIcon,this._startIcon.visibility=e.startIconVisibility,this._endIcon.iconName=e.endIcon,this._endIcon.visibility=e.endIconVisibility}};export{a as ACTIVATED,g as AdwButtonRow};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{builderSlotsOf as e}from"./builder-slots.js";import{applyConstructProps as t}from"./construct-props.js";import{xmlBoolean as n,xmlNumber as r}from"./xml-values.js";import{DEFAULT_DIALOG_PRESENTATION_MODE as i,dialogPresentationMode as a,findDialogHost as o,surfaceSize as s}from"./window-state.js";import{AdwSingleChildBase as c}from"./single-child-base.js";import{GridLayout as l,ItemSpec as u}from"@nativescript/core";const d=`closed`,f=`close-attempt`,p=`adw-dialog`;var AdwDialog=class extends c{static GTypeName=`AdwDialog`;static builderSlots=e([`child`],`child`);_card;_title=``;_contentWidth=-1;_contentHeight=-1;_followsContentSize=!0;_canClose=!0;_presentationMode=i;_host=null;constructor(e){super(),this._restyle(),this.visibility=`collapse`;let n=new l;n.className=`${p}-card`,n.addColumn(new u(1,`star`)),n.addRow(new u(1,`star`)),l.setColumn(n,0),l.setRow(n,0),this.addChild(n),this._card=n,this._layoutCard(),t(this,e)}get _ownClass(){return p}_adopt(e){l.setColumn(e,0),l.setRow(e,0),this._card.addChild(e)}_release(e){this._card.removeChild(e)}get title(){return this._title}set title(e){this._title=e??``,this._card.accessibilityLabel=this._title===``?void 0:this._title}get contentWidth(){return this._contentWidth}set contentWidth(e){this._contentWidth=s(r(e,NaN),e,this._contentWidth,`contentWidth`),this._layoutCard()}get contentHeight(){return this._contentHeight}set contentHeight(e){this._contentHeight=s(r(e,NaN),e,this._contentHeight,`contentHeight`),this._layoutCard()}get followsContentSize(){return this._followsContentSize}set followsContentSize(e){this._followsContentSize=n(e,this._followsContentSize)}get canClose(){return this._canClose}set canClose(e){this._canClose=n(e,this._canClose)}get presentationMode(){return this._presentationMode}set presentationMode(e){this._presentationMode=a(e),this._layoutCard()}get open(){return this.visibility===`visible`}present(e){if(!this.open){if(this.parent===null||this.parent===void 0){let t=o(e??null);if(t===null)throw Error(`${this.constructor.name} has no window to appear in: pass a widget that sits inside an Adw.Window / Adw.ApplicationWindow to present(), or add the dialog to a layout first.`);t._hostDialog(this),this._host=t}this.visibility=`visible`}}close(){if(!this._canClose){this.notify({eventName:f,object:this});return}this.force_close()}force_close(){this.open&&(this.visibility=`collapse`,this._host!==null&&(this._host._unhostDialog(this),this._host=null),this.notify({eventName:d,object:this}))}_layoutCard(){let e=this._card;e.width=this._contentWidth>0?this._contentWidth:`auto`,e.height=this._contentHeight>0?this._contentHeight:`auto`,this._presentationMode===`bottom-sheet`?(e.horizontalAlignment=`stretch`,e.verticalAlignment=`bottom`,e.width=`auto`):(e.horizontalAlignment=`center`,e.verticalAlignment=`middle`)}};export{p as ADW_DIALOG_CLASS,d as ADW_DIALOG_CLOSED,f as ADW_DIALOG_CLOSE_ATTEMPT,AdwDialog};
1
+ import"../_virtual/_rolldown/runtime.js";import{builderSlotsOf as e}from"./builder-slots.js";import{applyConstructProps as t}from"./construct-props.js";import{xmlBoolean as n,xmlNumber as r}from"./xml-values.js";import{DEFAULT_DIALOG_PRESENTATION_MODE as i,dialogCardLayout as a,dialogPresentationMode as o,findDialogHost as s,surfaceSize as c}from"./window-state.js";import{AdwSingleChildBase as l}from"./single-child-base.js";import{GridLayout as u,ItemSpec as d}from"@nativescript/core";const f=`closed`,p=`close-attempt`,m=`adw-dialog`;var AdwDialog=class extends l{static GTypeName=`AdwDialog`;static builderSlots=e([`child`],`child`);_card;_title=``;_contentWidth=-1;_contentHeight=-1;_followsContentSize=!0;_canClose=!0;_presentationMode=i;_host=null;_available=null;constructor(e){super(),this._restyle(),this.visibility=`collapse`;let n=new u;n.className=`${m}-card`,n.addColumn(new d(1,`star`)),n.addRow(new d(1,`star`)),u.setColumn(n,0),u.setRow(n,0),this.addChild(n),this._card=n,this._layoutCard(),this.addEventListener(`layoutChanged`,()=>this._measureWindow()),t(this,e)}get _ownClass(){return m}_adopt(e){u.setColumn(e,0),u.setRow(e,0),this._card.addChild(e)}_release(e){this._card.removeChild(e)}get title(){return this._title}set title(e){this._title=e??``,this._card.accessibilityLabel=this._title===``?void 0:this._title}get contentWidth(){return this._contentWidth}set contentWidth(e){this._contentWidth=c(r(e,NaN),e,this._contentWidth,`contentWidth`),this._layoutCard()}get contentHeight(){return this._contentHeight}set contentHeight(e){this._contentHeight=c(r(e,NaN),e,this._contentHeight,`contentHeight`),this._layoutCard()}get followsContentSize(){return this._followsContentSize}set followsContentSize(e){this._followsContentSize=n(e,this._followsContentSize)}get canClose(){return this._canClose}set canClose(e){this._canClose=n(e,this._canClose)}get presentationMode(){return this._presentationMode}set presentationMode(e){this._presentationMode=o(e),this._layoutCard()}get open(){return this.visibility===`visible`}present(e){if(!this.open){if(this.parent===null||this.parent===void 0){let t=s(e??null);if(t===null)throw Error(`${this.constructor.name} has no window to appear in: pass a widget that sits inside an Adw.Window / Adw.ApplicationWindow to present(), or add the dialog to a layout first.`);t._hostDialog(this),this._host=t}this.visibility=`visible`}}close(){if(!this._canClose){this.notify({eventName:p,object:this});return}this.force_close()}force_close(){this.open&&(this.visibility=`collapse`,this._host!==null&&(this._host._unhostDialog(this),this._host=null),this.notify({eventName:f,object:this}))}_measureWindow(){let e=this.getActualSize?.();if(!e||e.width<=0||e.height<=0)return;let t=this._available;t!==null&&t.width===e.width&&t.height===e.height||(this._available={width:e.width,height:e.height},this._layoutCard())}_layoutCard(){let e=this._card,t=a(this._available,this._presentationMode,this._contentWidth,this._contentHeight);e.width=t.width,e.height=t.height,e.horizontalAlignment=t.sheet?`stretch`:`center`,e.verticalAlignment=t.sheet?`bottom`:`middle`}};export{m as ADW_DIALOG_CLASS,f as ADW_DIALOG_CLOSED,p as ADW_DIALOG_CLOSE_ATTEMPT,AdwDialog};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{xmlBoolean as t}from"./xml-values.js";import{withSignals as n}from"./signals.js";import{AdwImageButton as r}from"./adw-image-button.js";import{searchNsPreferences as i}from"./preferences-search.js";import{GridLayout as a,ItemSpec as o,Label as s,StackLayout as c}from"@nativescript/core";import{windowCloseSymbolic as l}from"@gjsify/adwaita-icons/ui";const u=`closed`;var AdwPreferencesDialog=class extends n(a){static GTypeName=`AdwPreferencesDialog`;_card;_headerBox;_titleLabel;_body;constructor(t){super(),this.className=`adw-preferences-dialog`,this.visibility=`collapse`,this.addColumn(new o(1,`star`)),this.addRow(new o(1,`star`));let n=new a;n.className=`adw-preferences-dialog-card`,n.verticalAlignment=`middle`,n.horizontalAlignment=`center`,n.addColumn(new o(1,`star`)),n.addRow(new o(1,`auto`)),n.addRow(new o(1,`star`)),a.setColumn(n,0),a.setRow(n,0),this.addChild(n),this._card=n;let i=new a;i.className=`adw-preferences-dialog-header`,i.addColumn(new o(1,`star`)),i.addColumn(new o(1,`auto`)),i.addRow(new o(1,`auto`)),a.setRow(i,0),n.addChild(i),this._headerBox=i;let u=new s;u.className=`adw-preferences-dialog-title`,u.text=`Preferences`,a.setColumn(u,0),i.addChild(u),this._titleLabel=u;let d=new r;d.iconName=l,d.className=`${d.className} adw-preferences-dialog-close`.trim(),d.addEventListener(`tap`,()=>this.close()),a.setColumn(d,1),i.addChild(d);let f=new c;f.orientation=`vertical`,f.className=`adw-preferences-dialog-body`,a.setRow(f,1),n.addChild(f),this._body=f,e(this,t)}get title(){return this._titleLabel.text??``}set title(e){this._titleLabel.text=e??`Preferences`}add(e){this._body.addChild(e)}_addChildFromBuilder(e,t){this.add(t)}remove(e){this._body.removeChild(e)}get searchPages(){let e=[],t=this._body.getChildrenCount();for(let n=0;n<t;n++){let t=this._body.getChildAt(n);typeof t.searchGroups==`function`&&e.push(t)}return e}search(e,t){return i(this.searchPages,e,t)}present(){this.visibility=`visible`}close(){this.visibility=`collapse`;let e={eventName:u,object:this};this.notify(e)}get open(){return this.visibility===`visible`}set open(e){t(e,!1)?this.present():this.close()}get body(){return this._body}};export{AdwPreferencesDialog,u as CLOSED};
1
+ import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{xmlBoolean as t}from"./xml-values.js";import{ADW_DIALOG_CLOSED as n,AdwDialog as r}from"./adw-dialog.js";import{AdwImageButton as i}from"./adw-image-button.js";import{searchNsPreferences as a}from"./preferences-search.js";import{GridLayout as o,ItemSpec as s,Label as c}from"@nativescript/core";import{windowCloseSymbolic as l}from"@gjsify/adwaita-icons/ui";const u=n;var AdwPreferencesDialog=class extends r{static GTypeName=`AdwPreferencesDialog`;_headerBox;_titleLabel;_body;constructor(t){super(),this._card.className=`adw-preferences-dialog-card`;let n=new o;n.addColumn(new s(1,`star`)),n.addRow(new s(1,`auto`)),n.addRow(new s(1,`star`));let r=new o;r.className=`adw-preferences-dialog-header`,r.addColumn(new s(1,`star`)),r.addColumn(new s(1,`auto`)),r.addRow(new s(1,`auto`)),o.setRow(r,0),n.addChild(r),this._headerBox=r;let a=new c;a.className=`adw-preferences-dialog-title`,o.setColumn(a,0),r.addChild(a),this._titleLabel=a;let u=new i;u.iconName=l,u.className=`${u.className} adw-preferences-dialog-close`.trim(),u.addEventListener(`tap`,()=>this.close()),o.setColumn(u,1),r.addChild(u);let d=new o;d.className=`adw-preferences-dialog-body`,d.addColumn(new s(1,`star`)),o.setRow(d,1),n.addChild(d),this._body=d,this.child=n,this.title=`Preferences`,this.contentWidth=640,e(this,t)}get _ownClass(){return`adw-preferences-dialog`}get title(){return super.title}set title(e){super.title=e,this._titleLabel.text=super.title}add(e){this._body.addChild(e),this._layoutBody()}_addChildFromBuilder(e,t){this.add(t)}remove(e){this._body.removeChild(e),this._layoutBody()}get searchPages(){let e=[],t=this._body.getChildrenCount();for(let n=0;n<t;n++){let t=this._body.getChildAt(n);typeof t.searchGroups==`function`&&e.push(t)}return e}search(e,t){return a(this.searchPages,e,t)}get open(){return super.open}set open(e){t(e,!1)?this.present():this.close()}get body(){return this._body}_layoutBody(){let e=this._body;e.removeRows();let t=e.getChildrenCount();for(let n=0;n<t;n++)e.addRow(new s(1,`star`)),o.setRow(e.getChildAt(n),n)}};export{AdwPreferencesDialog,u as CLOSED};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{builderSlotsOf as e,resolveBuilderSlot as t}from"./builder-slots.js";import{applyConstructProps as n}from"./construct-props.js";import{withSignals as r}from"./signals.js";import{PREFERENCES_GROUP_HEADER_CLASS as i,preferencesGroupVisuals as a}from"./preferences-group-state.js";import{GridLayout as o,ItemSpec as s,Label as c,StackLayout as l}from"@nativescript/core";const u=[`headerSuffix`,`header-suffix`];var AdwPreferencesGroup=class extends r(l){static GTypeName=`AdwPreferencesGroup`;static builderSlots=e(u,`row`);_header;_titleLabel;_descriptionLabel;_suffixHost;_listbox;_title=``;_description=``;_headerSuffix=null;constructor(e){super(),this.orientation=`vertical`,this.className=`adw-preferences-group`;let t=new o;t.className=i,t.addColumn(new s(1,`star`)),t.addColumn(new s(1,`auto`)),t.addRow(new s(1,`auto`));let r=new l;r.orientation=`vertical`,r.className=`adw-preferences-group-labels`,r.verticalAlignment=`middle`,o.setColumn(r,0),t.addChild(r);let a=new c;a.className=`adw-preferences-group-title`,a.textWrap=!0,r.addChild(a);let u=new c;u.className=`adw-preferences-group-description`,u.textWrap=!0,r.addChild(u);let d=new l;d.orientation=`horizontal`,d.className=`adw-preferences-group-suffix`,d.verticalAlignment=`middle`,o.setColumn(d,1),t.addChild(d);let f=new l;f.orientation=`vertical`,f.className=`boxed-list adw-preferences-group-listbox`,this.addChild(t),this.addChild(f),this._header=t,this._titleLabel=a,this._descriptionLabel=u,this._suffixHost=d,this._listbox=f,this._applyVisuals(),n(this,e)}get title(){return this._title}set title(e){this._title=e??``,this._titleLabel.text=this._title,this._applyVisuals()}get description(){return this._description}set description(e){this._description=e??``,this._descriptionLabel.text=this._description,this._applyVisuals()}get headerSuffix(){return this._headerSuffix}set headerSuffix(e){e!==this._headerSuffix&&(this._headerSuffix&&this._suffixHost.removeChild(this._headerSuffix),this._headerSuffix=e,this._headerSuffix&&this._suffixHost.addChild(this._headerSuffix),this._applyVisuals())}_addChildFromBuilder(e,n){let r=t(e,u,`row`);if(r===`headerSuffix`||r===`header-suffix`){this.headerSuffix=n;return}this.add(n)}add(e){this._listbox.addChild(e),this._refreshRowEdges(),this._applyVisuals()}remove(e){this._listbox.removeChild(e),this._refreshRowEdges(),this._applyVisuals()}searchRows(){let e=[],t=this._listbox.getChildrenCount();for(let n=0;n<t;n++)e.push(this._listbox.getChildAt(n));return e}_applyVisuals(){let e=a({title:this._title,description:this._description,hasHeaderSuffix:this._headerSuffix!==null,rowCount:this._listbox.getChildrenCount()});this._titleLabel.visibility=e.titleVisibility,this._descriptionLabel.visibility=e.descriptionVisibility,this._header.visibility=e.headerVisibility,this._header.className=e.headerClassName,this._listbox.visibility=e.listboxVisibility}_refreshRowEdges(){let e=this._listbox.getChildrenCount();for(let t=0;t<e;t++){let e=this._listbox.getChildAt(t);e&&this._setFlushTop(e,t===0)}}_setFlushTop(e,t){let n=(e.className??``).replace(/\s*\badw-row-flush-top\b/g,``);e.className=t?`${n} adw-row-flush-top`.trim():n.trim()}get listbox(){return this._listbox}};export{AdwPreferencesGroup};
1
+ import"../_virtual/_rolldown/runtime.js";import{builderSlotsOf as e,resolveBuilderSlot as t}from"./builder-slots.js";import{applyConstructProps as n}from"./construct-props.js";import{withSignals as r}from"./signals.js";import{StyleClassList as i}from"./style-classes.js";import{PREFERENCES_GROUP_HEADER_CLASS as a,preferencesGroupVisuals as o}from"./preferences-group-state.js";import{GridLayout as s,ItemSpec as c,Label as l,StackLayout as u}from"@nativescript/core";const d=[`headerSuffix`,`header-suffix`];var AdwPreferencesGroup=class extends r(u){static GTypeName=`AdwPreferencesGroup`;static builderSlots=e(d,`row`);_header;_titleLabel;_descriptionLabel;_suffixHost;_listbox;_title=``;_description=``;_headerSuffix=null;_classList=new i(`adw-preferences-group`);constructor(e){super(),this.orientation=`vertical`,this._restyle();let t=new s;t.className=a,t.addColumn(new c(1,`star`)),t.addColumn(new c(1,`auto`)),t.addRow(new c(1,`auto`));let r=new u;r.orientation=`vertical`,r.className=`adw-preferences-group-labels`,r.verticalAlignment=`middle`,s.setColumn(r,0),t.addChild(r);let i=new l;i.className=`adw-preferences-group-title`,i.textWrap=!0,r.addChild(i);let o=new l;o.className=`adw-preferences-group-description`,o.textWrap=!0,r.addChild(o);let d=new u;d.orientation=`horizontal`,d.className=`adw-preferences-group-suffix`,d.verticalAlignment=`middle`,s.setColumn(d,1),t.addChild(d);let f=new u;f.orientation=`vertical`,f.className=`boxed-list adw-preferences-group-listbox`,this.addChild(t),this.addChild(f),this._header=t,this._titleLabel=i,this._descriptionLabel=o,this._suffixHost=d,this._listbox=f,this._applyVisuals(),n(this,e)}get title(){return this._title}set title(e){this._title=e??``,this._titleLabel.text=this._title,this._applyVisuals()}get description(){return this._description}set description(e){this._description=e??``,this._descriptionLabel.text=this._description,this._applyVisuals()}get headerSuffix(){return this._headerSuffix}set headerSuffix(e){e!==this._headerSuffix&&(this._headerSuffix&&this._suffixHost.removeChild(this._headerSuffix),this._headerSuffix=e,this._headerSuffix&&this._suffixHost.addChild(this._headerSuffix),this._applyVisuals())}_addChildFromBuilder(e,n){let r=t(e,d,`row`);if(r===`headerSuffix`||r===`header-suffix`){this.headerSuffix=n;return}this.add(n)}add(e){this._listbox.addChild(e),this._refreshRowEdges(),this._applyVisuals()}remove(e){this._listbox.removeChild(e),this._refreshRowEdges(),this._applyVisuals()}searchRows(){let e=[],t=this._listbox.getChildrenCount();for(let n=0;n<t;n++)e.push(this._listbox.getChildAt(n));return e}_applyVisuals(){let e=o({title:this._title,description:this._description,hasHeaderSuffix:this._headerSuffix!==null,rowCount:this._listbox.getChildrenCount()});this._titleLabel.visibility=e.titleVisibility,this._descriptionLabel.visibility=e.descriptionVisibility,this._header.visibility=e.headerVisibility,this._header.className=e.headerClassName,this._listbox.visibility=e.listboxVisibility}_refreshRowEdges(){let e=this._listbox.getChildrenCount();for(let t=0;t<e;t++){let e=this._listbox.getChildAt(t);e&&this._setFlushTop(e,t===0)}}_setFlushTop(e,t){let n=(e.className??``).replace(/\s*\badw-row-flush-top\b/g,``);e.className=t?`${n} adw-row-flush-top`.trim():n.trim()}get listbox(){return this._listbox}get styleClasses(){return this._classList.classes}set styleClasses(e){this._classList.replace(e),this._restyle()}add_css_class(e){this._classList.add(e),this._restyle()}remove_css_class(e){this._classList.remove(e),this._restyle()}has_css_class(e){return this._classList.has(e)}get_css_classes(){return this._classList.classes}set_css_classes(e){this._classList.replaceAll(e),this._restyle()}_restyle(){this.className=this._classList.className}};export{AdwPreferencesGroup};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{xmlBoolean as t}from"./xml-values.js";import{withSignals as n}from"./signals.js";import{ScrollView as r,StackLayout as i}from"@nativescript/core";var AdwPreferencesPage=class extends n(r){static GTypeName=`AdwPreferencesPage`;_groups;_title=``;_name=``;_iconName=``;_useUnderline=!1;constructor(t){super(),this.orientation=`vertical`,this.className=`adw-preferences-page`;let n=new i;n.orientation=`vertical`,n.className=`adw-preferences-page-content`,this.content=n,this._groups=n,e(this,t)}get title(){return this._title}set title(e){this._title=e??``}get name(){return this._name}set name(e){this._name=e??``}get iconName(){return this._iconName}set iconName(e){this._iconName=e??``}get useUnderline(){return this._useUnderline}set useUnderline(e){this._useUnderline=t(e,!1)}add(e){this._groups.addChild(e)}remove(e){this._groups.removeChild(e)}_addChildFromBuilder(e,t){this.add(t)}searchGroups(){let e=[],t=this._groups.getChildrenCount();for(let n=0;n<t;n++){let t=this._groups.getChildAt(n);typeof t.searchRows==`function`&&e.push(t)}return e}get groups(){return this._groups}};export{AdwPreferencesPage};
1
+ import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{xmlBoolean as t}from"./xml-values.js";import{withSignals as n}from"./signals.js";import{StyleClassList as r}from"./style-classes.js";import{ScrollView as i,StackLayout as a}from"@nativescript/core";var AdwPreferencesPage=class extends n(i){static GTypeName=`AdwPreferencesPage`;_groups;_title=``;_name=``;_iconName=``;_useUnderline=!1;_classList=new r(`adw-preferences-page`);constructor(t){super(),this.orientation=`vertical`,this._restyle();let n=new a;n.orientation=`vertical`,n.className=`adw-preferences-page-content`,this.content=n,this._groups=n,e(this,t)}get title(){return this._title}set title(e){this._title=e??``}get name(){return this._name}set name(e){this._name=e??``}get iconName(){return this._iconName}set iconName(e){this._iconName=e??``}get useUnderline(){return this._useUnderline}set useUnderline(e){this._useUnderline=t(e,!1)}add(e){this._groups.addChild(e)}remove(e){this._groups.removeChild(e)}_addChildFromBuilder(e,t){this.add(t)}searchGroups(){let e=[],t=this._groups.getChildrenCount();for(let n=0;n<t;n++){let t=this._groups.getChildAt(n);typeof t.searchRows==`function`&&e.push(t)}return e}get groups(){return this._groups}get styleClasses(){return this._classList.classes}set styleClasses(e){this._classList.replace(e),this._restyle()}add_css_class(e){this._classList.add(e),this._restyle()}remove_css_class(e){this._classList.remove(e),this._restyle()}has_css_class(e){return this._classList.has(e)}get_css_classes(){return this._classList.classes}set_css_classes(e){this._classList.replaceAll(e),this._restyle()}_restyle(){this.className=this._classList.className}};export{AdwPreferencesPage};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{xmlBoolean as t}from"./xml-values.js";import{withSignals as n}from"./signals.js";import{DEFAULT_SPINNER_SIZE as r}from"./chrome.js";import{resolveSpinnerSize as i,spinnerGeometry as a}from"@gjsify/adwaita-core";import{ActivityIndicator as o,GridLayout as s,ItemSpec as c}from"@nativescript/core";var AdwSpinner=class extends n(s){static GTypeName=`AdwSpinner`;_indicator;_size=r;_spinning=!0;constructor(t){super(),this.className=`adw-spinner`,this.addRow(new c(1,`star`)),this.addColumn(new c(1,`star`));let n=new o;n.className=`adw-spinner-ring`,n.horizontalAlignment=`center`,n.verticalAlignment=`middle`,this._indicator=n,this.addChild(n),this.accessibilityRole=`progressbar`,this.accessibilityState=`busy`,this.addEventListener(`loaded`,()=>this._applySpinning()),this.addEventListener(`unloaded`,()=>{this._indicator.busy=!1}),this._applySize(),this._applySpinning(),e(this,t)}_applySize(){this.width=this._size,this.height=this._size;let{diameter:e}=a(this._size,this._size);this._indicator.width=e,this._indicator.height=e}_applySpinning(){let e=this.isLoaded!==!1;this._indicator.busy=this._spinning&&e}get spinning(){return this._spinning}set spinning(e){this._spinning=t(e,!1),this._applySpinning()}get size(){return this._size}set size(e){this._size=i(e),this._applySize()}get ringDiameter(){return a(this._size,this._size).diameter}};export{AdwSpinner,r as DEFAULT_SPINNER_SIZE};
1
+ import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{withSignals as t}from"./signals.js";import{DEFAULT_SPINNER_SIZE as n}from"./chrome.js";import{resolveSpinnerSize as r,spinnerGeometry as i}from"@gjsify/adwaita-core";import{ActivityIndicator as a,GridLayout as o,ItemSpec as s}from"@nativescript/core";const c=`notify::spinning`,l=`notify::size`;var AdwSpinner=class extends t(o,{GTypeName:`AdwSpinner`,Properties:{spinning:{kind:`boolean`,default:!0,blurb:`Whether the spinner is animating`},size:{kind:`double`,default:n,blurb:`The box size in DIPs, floored at the measured minimum`,normalize:e=>r(e)}}}){static GTypeName=`AdwSpinner`;_indicator;constructor(t){super(),this.className=`adw-spinner`,this.addRow(new s(1,`star`)),this.addColumn(new s(1,`star`));let n=new a;n.className=`adw-spinner-ring`,n.horizontalAlignment=`center`,n.verticalAlignment=`middle`,this._indicator=n,this.addChild(n),this.accessibilityRole=`progressbar`,this.accessibilityState=`busy`,this.addEventListener(`loaded`,()=>this._applySpinning()),this.addEventListener(`unloaded`,()=>{this._indicator.busy=!1}),this.connect(l,e=>e._applySize()),this.connect(c,e=>e._applySpinning()),this._applySize(),this._applySpinning(),e(this,t)}_applySize(){this.width=this.size,this.height=this.size;let{diameter:e}=i(this.size,this.size);this._indicator.width=e,this._indicator.height=e}_applySpinning(){let e=this.isLoaded!==!1;this._indicator.busy=this.spinning&&e}get ringDiameter(){return i(this.size,this.size).diameter}};export{AdwSpinner,n as DEFAULT_SPINNER_SIZE,l as NOTIFY_SIZE,c as NOTIFY_SPINNING};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{xmlBoolean as t}from"./xml-values.js";import{SwitchRowState as n,switchClassName as r}from"./row-state.js";import{AdwActionRow as i}from"./adw-action-row.js";import{Switch as a}from"@nativescript/core";const o=`notify::active`;var AdwSwitchRow=class extends i{static GTypeName=`AdwSwitchRow`;static emittedSignals=[o];_switch;_switchState=new n;constructor(t){super(),this.className=`adw-row adw-action-row adw-switch-row`;let n=new a;n.className=r(!1),this.add_suffix(n),this._switch=n,this.activatableWidget=n,this.activatable=!0,n.addEventListener(`checkedChange`,()=>{n.className=r(n.checked),this._apply(this._switchState.setActive(n.checked))}),e(this,t)}get active(){return this._switchState.active}set active(e){this._apply(this._switchState.setActive(t(e,!1)))}get_active(){return this.active}set_active(e){this.active=e}activate(){this.activatable&&(this._apply(this._switchState.activate()),super.activate())}_apply(e){if(!e)return;this._switch.checked=this._switchState.active;let t={eventName:o,object:this,active:this._switchState.active};this.notify(t)}};export{AdwSwitchRow,o as NOTIFY_ACTIVE};
1
+ import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{withProperties as t}from"./signals.js";import{switchClassName as n}from"./row-state.js";import{AdwActionRow as r}from"./adw-action-row.js";import{Switch as i}from"@nativescript/core";const a=`notify::active`;var AdwSwitchRow=class extends t(r,{GTypeName:`AdwSwitchRow`,Properties:{active:{kind:`boolean`,default:!1,blurb:`Whether the switch row is in its "on" or "off" position`}}}){static GTypeName=`AdwSwitchRow`;_switch;constructor(t){super(),this.className=`adw-row adw-action-row adw-switch-row`;let r=new i;r.className=n(!1),this.add_suffix(r),this._switch=r,this.activatableWidget=r,this.activatable=!0,r.addEventListener(`checkedChange`,()=>{this.active=r.checked}),this.connect(a,e=>e._apply()),e(this,t)}get_active(){return this.active}set_active(e){this.active=e}activate(){this.activatable&&(this.active=!this.active,super.activate())}_apply(){this._switch.checked=this.active,this._switch.className=n(this.active)}};export{AdwSwitchRow,a as NOTIFY_ACTIVE};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{withSignals as t}from"./signals.js";import{WindowTitleState as n,toLabelVisuals as r}from"./row-state.js";import{Label as i,StackLayout as a}from"@nativescript/core";const o=`notify::title`,s=`notify::subtitle`;var AdwWindowTitle=class extends t(a){static GTypeName=`AdwWindowTitle`;_titleLabel;_subtitleLabel;_state=new n;constructor(t){super(),this.orientation=`vertical`,this.className=`adw-window-title`,this.horizontalAlignment=`center`;let n=new i;n.className=`adw-window-title-title`,n.horizontalAlignment=`center`,this.addChild(n),this._titleLabel=n;let r=new i;r.className=`adw-window-title-subtitle`,r.horizontalAlignment=`center`,this.addChild(r),this._subtitleLabel=r,this._apply(),e(this,t)}get title(){return this._state.title}set title(e){this._state.setTitle(e)&&(this._apply(),this._notify(o))}get subtitle(){return this._state.subtitle}set subtitle(e){this._state.setSubtitle(e)&&(this._apply(),this._notify(s))}_apply(){let e=r(this._state.state);this._titleLabel.text=e.title,this._titleLabel.visibility=e.titleVisibility,this._subtitleLabel.text=e.subtitle,this._subtitleLabel.visibility=e.subtitleVisibility}_notify(e){let t={eventName:e,object:this};this.notify(t)}};export{AdwWindowTitle,s as NOTIFY_SUBTITLE,o as NOTIFY_TITLE};
1
+ import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{withSignals as t}from"./signals.js";import{WindowTitleState as n,toLabelVisuals as r}from"./row-state.js";import{Label as i,StackLayout as a}from"@nativescript/core";const o=`notify::title`,s=`notify::subtitle`;var AdwWindowTitle=class extends t(a,{GTypeName:`AdwWindowTitle`,Properties:{title:{kind:`string`,default:``,blurb:`The title to display`},subtitle:{kind:`string`,default:``,blurb:`The subtitle to display`}}}){static GTypeName=`AdwWindowTitle`;_titleLabel;_subtitleLabel;_state=new n;constructor(t){super(),this.orientation=`vertical`,this.className=`adw-window-title`,this.horizontalAlignment=`center`;let n=new i;n.className=`adw-window-title-title`,n.horizontalAlignment=`center`,this.addChild(n),this._titleLabel=n;let r=new i;r.className=`adw-window-title-subtitle`,r.horizontalAlignment=`center`,this.addChild(r),this._subtitleLabel=r,this.connect(o,e=>e._apply()),this.connect(s,e=>e._apply()),this._apply(),e(this,t)}_apply(){this._state.setTitle(this.title),this._state.setSubtitle(this.subtitle);let e=r(this._state.state);this._titleLabel.text=e.title,this._titleLabel.visibility=e.titleVisibility,this._subtitleLabel.text=e.subtitle,this._subtitleLabel.visibility=e.subtitleVisibility}};export{AdwWindowTitle,s as NOTIFY_SUBTITLE,o as NOTIFY_TITLE};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{builderSlotsOf as e}from"./builder-slots.js";import{applyConstructProps as t}from"./construct-props.js";import{xmlBoolean as n}from"./xml-values.js";import{GtkImage as r}from"./gtk-image.js";import{classNameWith as i}from"./style-classes.js";import{AdwStyledLayoutBase as a}from"./styled-layout-base.js";import{attachRowPressFeedback as o}from"./row-press.js";import{resolveIdReference as s}from"./id-reference.js";import{checkActivationFlips as c,checkGroupNeighbours as l,isRadioCheck as u,labelDisplayText as d,setCheckGroup as f}from"@gjsify/adwaita-core";import{GridLayout as p,ItemSpec as m,Label as h}from"@nativescript/core";import{objectSelectSymbolic as g}from"@gjsify/adwaita-icons/actions";const _=`toggled`,v=`activate`,y=`notify::active`,b=`checked`,x=`inconsistent`;var S=class GtkCheckButton extends a{static GTypeName=`GtkCheckButton`;static emittedSignals=[_,v,y];static builderSlots=e([`child`],`child`);static builderReferences=[`group`];_indicator;_mark;_text;_active=!1;_inconsistent=!1;_label=null;_useUnderline=!1;_child=null;_groupId=null;constructor(e){super(),this.addColumn(new m(1,`auto`)),this.addColumn(new m(1,`star`)),this.addRow(new m(1,`auto`));let n=new p;n.className=`adw-check-indicator`,n.addColumn(new m(1,`star`)),n.addRow(new m(1,`star`)),n.verticalAlignment=`middle`,p.setColumn(n,0),p.setRow(n,0);let i=new r;i.iconName=g,i.pixelSize=14,i.iconColor=`#ffffff`,i.horizontalAlignment=`center`,i.verticalAlignment=`middle`,i.visibility=`collapse`,n.addChild(i),this.addChild(n),this._indicator=n,this._mark=i;let a=new h;a.className=`adw-check-label`,a.verticalAlignment=`middle`,a.visibility=`collapse`,p.setColumn(a,1),p.setRow(a,0),this.addChild(a),this._text=a,this.addEventListener(`loaded`,()=>this._resolveGroupId()),o(this),this.addEventListener(`tap`,()=>{c(this,this._active)&&(this._inconsistent=!1,this.active=!this._active,this._restyle(),this.notify({eventName:v,object:this}))}),this._restyle(),t(this,e)}get active(){return this._active}set active(e){let t=n(e,this._active);if(t!==this._active){if(t)for(let e of l(this))e.active=!1;this._active=t,this._restyle(),this.notify({eventName:_,object:this}),this.notify({eventName:y,object:this})}}set group(e){if(typeof e==`string`){this._groupId=e,this.isLoaded&&this.set_group(s(this,`group`,e,GtkCheckButton));return}this._groupId=null,this.set_group(e)}set_group(e){f(this,e),this._restyle(),e?._restyle()}_resolveGroupId(){let e=this._groupId;e!==null&&(this._groupId=null,this.set_group(s(this,`group`,e,GtkCheckButton)))}get inconsistent(){return this._inconsistent}set inconsistent(e){let t=n(e,this._inconsistent);t!==this._inconsistent&&(this._inconsistent=t,this._restyle(),this.notify({eventName:`notify::inconsistent`,object:this}))}get label(){return this._label}set label(e){this._label=e??null,this._paintLabel()}get useUnderline(){return this._useUnderline}set useUnderline(e){this._useUnderline=!!n(e,this._useUnderline),this._paintLabel()}_paintLabel(){this._text.text=d(this._label??``,!1,this._useUnderline),this._syncContent()}get child(){return this._child}set child(e){let t=e??null;t!==this._child&&(this._child&&this.removeChild(this._child),this._child=t,t&&(p.setColumn(t,1),p.setRow(t,0),this.addChild(t)),this._syncContent())}set_child(e){this.child=e}get_child(){return this._child}get_active(){return this._active}set_active(e){this.active=e}_addChildFromBuilder(e,t){this.child=t}_syncContent(){this._text.visibility=!this._child&&this._label?`visible`:`collapse`}get _ownClass(){return`adw-check-button`}_restyle(){let e=[];this._active&&e.push(b),this._inconsistent&&e.push(x),this.className=i(this._ownClass,[...this.styleClasses,...e]),this._indicator.className=i(`adw-check-indicator`,u(this)?[...e,`radio`]:e),this._mark.visibility=this._active||this._inconsistent?`visible`:`collapse`}};export{v as GTK_CHECK_BUTTON_ACTIVATE,b as GTK_CHECK_BUTTON_CHECKED_CLASS,x as GTK_CHECK_BUTTON_INCONSISTENT_CLASS,_ as GTK_CHECK_BUTTON_TOGGLED,S as GtkCheckButton,y as NOTIFY_CHECK_ACTIVE};
1
+ import"../_virtual/_rolldown/runtime.js";import{builderSlotsOf as e}from"./builder-slots.js";import{applyConstructProps as t}from"./construct-props.js";import{xmlBoolean as n}from"./xml-values.js";import{GtkImage as r}from"./gtk-image.js";import{classNameWith as i}from"./style-classes.js";import{AdwStyledLayoutBase as a}from"./styled-layout-base.js";import{attachRowPressFeedback as o}from"./row-press.js";import{resolveIdReference as s}from"./id-reference.js";import{checkActivationFlips as c,checkGroupNeighbours as l,isRadioCheck as u,labelDisplayText as d,setCheckGroup as f}from"@gjsify/adwaita-core";import{GridLayout as p,ItemSpec as m,Label as h}from"@nativescript/core";import{objectSelectSymbolic as g}from"@gjsify/adwaita-icons/actions";const _=`toggled`,v=`activate`,y=`notify::active`,b=`checked`,x=`inconsistent`;var S=class GtkCheckButton extends a{static GTypeName=`GtkCheckButton`;static emittedSignals=[_,v,y];static builderSlots=e([`child`],`child`);static builderReferences=[`group`];_indicator;_mark;_text;_active=!1;_inconsistent=!1;_label=null;_useUnderline=!1;_child=null;_groupId=null;_contentUnit=`auto`;constructor(e){super(),this.addColumn(new m(1,`auto`)),this.addColumn(new m(1,`auto`)),this.addRow(new m(1,`auto`));let n=new p;n.className=`adw-check-indicator`,n.addColumn(new m(1,`star`)),n.addRow(new m(1,`star`)),n.verticalAlignment=`middle`,p.setColumn(n,0),p.setRow(n,0);let i=new r;i.iconName=g,i.pixelSize=14,i.iconColor=`#ffffff`,i.horizontalAlignment=`center`,i.verticalAlignment=`middle`,i.visibility=`collapse`,n.addChild(i),this.addChild(n),this._indicator=n,this._mark=i;let a=new h;a.className=`adw-check-label`,a.verticalAlignment=`middle`,a.visibility=`collapse`,p.setColumn(a,1),p.setRow(a,0),this.addChild(a),this._text=a,this.addEventListener(`loaded`,()=>this._resolveGroupId()),o(this),this.addEventListener(`tap`,()=>{c(this,this._active)&&(this._inconsistent=!1,this.active=!this._active,this._restyle(),this.notify({eventName:v,object:this}))}),this._restyle(),t(this,e)}get active(){return this._active}set active(e){let t=n(e,this._active);if(t!==this._active){if(t)for(let e of l(this))e.active=!1;this._active=t,this._restyle(),this.notify({eventName:_,object:this}),this.notify({eventName:y,object:this})}}set group(e){if(typeof e==`string`){this._groupId=e,this.isLoaded&&this.set_group(s(this,`group`,e,GtkCheckButton));return}this._groupId=null,this.set_group(e)}set_group(e){f(this,e),this._restyle(),e?._restyle()}_resolveGroupId(){let e=this._groupId;e!==null&&(this._groupId=null,this.set_group(s(this,`group`,e,GtkCheckButton)))}get inconsistent(){return this._inconsistent}set inconsistent(e){let t=n(e,this._inconsistent);t!==this._inconsistent&&(this._inconsistent=t,this._restyle(),this.notify({eventName:`notify::inconsistent`,object:this}))}get label(){return this._label}set label(e){this._label=e??null,this._paintLabel()}get useUnderline(){return this._useUnderline}set useUnderline(e){this._useUnderline=!!n(e,this._useUnderline),this._paintLabel()}_paintLabel(){this._text.text=d(this._label??``,!1,this._useUnderline),this._syncContent()}get child(){return this._child}set child(e){let t=e??null;t!==this._child&&(this._child&&this.removeChild(this._child),this._child=t,t&&(p.setColumn(t,1),p.setRow(t,0),this.addChild(t)),this._syncContent())}set_child(e){this.child=e}get_child(){return this._child}get_active(){return this._active}set_active(e){this.active=e}_addChildFromBuilder(e,t){this.child=t}_syncContent(){let e=!!this._child||!!this._label;this._text.visibility=!this._child&&this._label?`visible`:`collapse`;let t=e?`star`:`auto`;t!==this._contentUnit&&(this._contentUnit=t,this.removeColumns(),this.addColumn(new m(1,`auto`)),this.addColumn(new m(1,t)))}get _ownClass(){return`adw-check-button`}_restyle(){let e=[];this._active&&e.push(b),this._inconsistent&&e.push(x),this.className=i(this._ownClass,[...this.styleClasses,...e]),this._indicator.className=i(`adw-check-indicator`,u(this)?[...e,`radio`]:e),this._mark.visibility=this._active||this._inconsistent?`visible`:`collapse`}};export{v as GTK_CHECK_BUTTON_ACTIVATE,b as GTK_CHECK_BUTTON_CHECKED_CLASS,x as GTK_CHECK_BUTTON_INCONSISTENT_CLASS,_ as GTK_CHECK_BUTTON_TOGGLED,S as GtkCheckButton,y as NOTIFY_CHECK_ACTIVE};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{AdwBreakpoint as ee,addBreakpoints as e,evaluateBreakpointCondition as te,observeViewSize as ne,observeWindowSize as re,parseBreakpointCondition as ie}from"./breakpoint.js";import{GTK_ALIGN as ae}from"./gtk-align.js";import{DEFAULT_ICON_PIXEL_SIZE as oe,GTK_ICON_SIZE_NICKS as se,GTK_ICON_SIZE_PIXELS as ce,PIXEL_SIZE_UNSET as le,isGtkIconSizeNick as ue}from"./gtk-icon-size.js";import{applyConstructProps as de,nsAlignment as fe}from"./construct-props.js";import{lengthValue as pe}from"./ns-length.js";import{SimpleAction as me,SimpleActionGroup as he,activateWidgetAction as ge,findActionGroup as _e,insertActionGroup as ve}from"./actions.js";import{NOTIFY_HEXPAND as ye,NOTIFY_VEXPAND as be,withGtkWidgetLayout as xe}from"./widget-layout.js";import{DEFAULT_REVEALER_TRANSITION_DURATION as Se,DEFAULT_STACK_TRANSITION_DURATION as Ce,GTK_REVEALER_TRANSITIONS as we,GTK_STACK_TRANSITIONS as Te,transitionNick as Ee}from"./transition-type.js";import{ADW_DIALOG_PRESENTATION_MODES as De,DEFAULT_DIALOG_PRESENTATION_MODE as Oe,dialogPresentationMode as ke,findDialogHost as Ae,surfaceSize as je}from"./window-state.js";import{AdwAboutDialog as t,CLOSED as Me}from"./adw-about-dialog.js";import{adwaitaColorScheme as Ne,isThemeIconColor as Pe,onAdwaitaColorSchemeChanged as Fe,setAdwaitaColorScheme as Ie,themeIconColor as Le,toggleAdwaitaColorScheme as Re}from"./color-scheme.js";import{ADWAITA_ICON_GRID as ze,DEFAULT_ICON_COLOR as Be,DEFAULT_ICON_COLOR_DARK as Ve,extractIconPaths as He,extractPathData as Ue}from"./icon-path.js";import{ICON_FALLBACK_NAME as We,compiledIconNames as Ge,iconValueKind as Ke,isIconAvailable as qe,resolveIconSource as Je}from"./icon-theme.js";import{renderSymbolicIcon as Ye}from"./icons.js";import{DEFAULT_GTK_IMAGE_SIZE as Xe,GtkImage as n}from"./gtk-image.js";import{ACTIVATED as Ze,AdwActionRow as r}from"./adw-action-row.js";import{AdwAlertDialog as Qe,AdwAlertResponses as $e}from"./adw-alert-dialog.js";import{GtkWindow as i}from"./gtk-window.js";import{ADW_WINDOW_CLASS as et,AdwWindowBase as tt}from"./window-base.js";import{AdwApplicationWindow as a}from"./adw-application-window.js";import{avatarInitials as nt}from"./avatar-color.js";import{AVATAR_DEFAULT_ICON as rt}from"./avatar-view.js";import{AdwAvatar as o,DEFAULT_AVATAR_SIZE as it}from"./adw-avatar.js";import{DEFAULT_CLAMP_MAX_SIZE as at,DEFAULT_SPINNER_SIZE as ot}from"./chrome.js";import{AdwBanner as s,BUTTON_CLICKED as st}from"./adw-banner.js";import{AdwBin as c}from"./adw-bin.js";import{CLOSE_ATTEMPT as ct,NOTIFY_OPEN as lt,SHEET_CLOSE as ut}from"./bottom-sheet-state.js";import{SHEET_CONTENT_BOTTOM_GAP as dt,bottomSheetInsetPadding as ft}from"./bottom-sheet-insets.js";import{attachRowPressFeedback as pt}from"./row-press.js";import{AdwBottomSheet as l,bottomSheetPanel as mt}from"./adw-bottom-sheet.js";import{AdwButtonContent as u}from"./adw-button-content.js";import{AdwButtonRow as d}from"./adw-button-row.js";import{CarouselScrollSync as ht,DEFAULT_CAROUSEL_PAGE_WIDTH as gt,applyMarkerClasses as _t,carouselDotClasses as vt,carouselNotifyPayload as yt,carouselPositionAtOffset as bt,carouselScrollOffset as xt,createCarouselState as St,indicatorMarkerClasses as Ct,normalizeCarouselPageWidth as wt}from"./carousel-state.js";import{AdwCarousel as f,NOTIFY_N_PAGES as Tt,NOTIFY_POSITION as Et,PAGE_CHANGED as Dt}from"./adw-carousel.js";import{AdwCarouselIndicatorDots as p}from"./adw-carousel-indicator-dots.js";import{AdwCarouselIndicatorLines as m}from"./adw-carousel-indicator-lines.js";import{AdwClamp as h}from"./adw-clamp.js";import{AdwComboRow as g,ComboState as Ot,NOTIFY_SELECTED as kt}from"./adw-combo-row.js";import{ADW_DIALOG_CLASS as At,ADW_DIALOG_CLOSED as jt,ADW_DIALOG_CLOSE_ATTEMPT as Mt,AdwDialog as _}from"./adw-dialog.js";import{AdwImageButton as v,DEFAULT_ICON_BUTTON_ICON_SIZE as Nt}from"./adw-image-button.js";import{AdwEntryRow as y,NOTIFY_TEXT as Pt}from"./adw-entry-row.js";import{AdwExpanderRow as b,ExpanderState as Ft,NOTIFY_EXPANDED as It}from"./adw-expander-row.js";import{AdwWindowTitle as x}from"./adw-window-title.js";import{AdwHeaderBar as S}from"./adw-header-bar.js";import{AdwViewStackPage as Lt}from"./view-stack-page.js";import{AdwViewStack as C,NOTIFY_VISIBLE_CHILD as Rt}from"./adw-view-stack.js";import{AdwViewSwitcherBase as zt,NOTIFY_SELECTED as Bt}from"./view-switcher-base.js";import{AdwInlineViewSwitcher as w}from"./adw-inline-view-switcher.js";import{NsNavigationSplitViewState as Vt,NsOverlaySplitViewState as Ht,splitViewColumns as Ut}from"./split-view-state.js";import{AdwSplitViewBase as Wt,NOTIFY_SHOW_SIDEBAR as Gt}from"./split-view-base.js";import{AdwNavigationSplitView as T}from"./adw-navigation-split-view.js";import{AdwNavigationPage as E}from"./adw-navigation-page.js";import{NOTIFY_VISIBLE_PAGE as Kt}from"./navigation-stack.js";import{AdwNavigationView as D}from"./adw-navigation-view.js";import{AdwOverlaySplitView as O}from"./adw-overlay-split-view.js";import{AdwPasswordEntryRow as k}from"./adw-password-entry-row.js";import{AdwPreferencesDialog as A,CLOSED as qt}from"./adw-preferences-dialog.js";import{AdwPreferencesGroup as j}from"./adw-preferences-group.js";import{AdwPreferencesPage as M}from"./adw-preferences-page.js";import{SHORTCUT_LABEL_CAP_TEXT_CLASS as Jt,SHORTCUT_LABEL_CLASS as Yt,SHORTCUT_LABEL_DIMMED_CLASS as Xt,SHORTCUT_LABEL_DISABLED_CLASS as Zt,SHORTCUT_LABEL_KEYCAP_CLASS as Qt,SHORTCUT_LABEL_KEYS_CLASS as $t,SHORTCUT_LABEL_SIDE_CLASS as en,SHORTCUT_LABEL_SPACED_CLASS as tn,shortcutLabelDirection as nn,shortcutLabelPlatform as rn,shortcutLabelRenderPlan as an}from"./shortcut-label.js";import{AdwShortcutLabel as N}from"./adw-shortcut-label.js";import{AdwSidebarItem as on,AdwSidebarSection as sn}from"../values/sidebar.js";import{AdwSidebar as P,NOTIFY_SELECTED as cn}from"./adw-sidebar.js";import{AdwSpinRow as F,NOTIFY_VALUE as ln,SpinState as un}from"./adw-spin-row.js";import{AdwSpinner as I}from"./adw-spinner.js";import{GROUP_DIVIDER_API as dn,assertPopupMenuAssignable as fn,fillPopupMenu as pn,openPopupMenu as mn,refuseMenuString as hn}from"./popup-menu.js";import{showMenuPopup as gn}from"./popup-menu-view.js";import{DEFAULT_SCROLLBAR_POLICY as _n,GTK_POLICY_TYPES as vn,normalizePolicy as yn,policyScrolls as bn,scrollOrientationFor as xn}from"./scrolled-window-policy.js";import{AdwSplitButton as L,CLICKED as Sn,MENU_TAPPED as Cn}from"./adw-split-button.js";import{AdwStatusPage as R}from"./adw-status-page.js";import{AdwSwitchRow as z,NOTIFY_ACTIVE as wn}from"./adw-switch-row.js";import{AdwTabPage as Tn}from"../values/tab-page.js";import{applyTabViewVisibility as En,createTabViewState as Dn,tabBarVisibility as On,tabCloseVisibilities as kn,tabLabelText as An,tabPageVisibilities as jn,tabTooltipText as Mn,tabViewNotifyPayload as Nn}from"./tab-view-state.js";import{AdwTabView as B,CLOSE_PAGE as Pn,NOTIFY_SELECTED_PAGE as Fn,PAGES_CHANGED as In}from"./adw-tab-view.js";import{AdwToast as Ln,AdwToastOverlay as V,AdwToastQueue as Rn,DEFAULT_TOAST_TIMEOUT as zn}from"./adw-toast-overlay.js";import{AdwToggle as Bn}from"./adw-toggle.js";import{AdwToggleGroup as H,NOTIFY_SELECTED as Vn,ToggleGroupState as Hn}from"./adw-toggle-group.js";import{WINDOW_BACKGROUND as Un,configureSystemBars as Wn,systemBarsConfig as Gn}from"./system-bars.js";import{AdwToolbarView as U}from"./adw-toolbar-view.js";import{AdwViewSwitcher as W}from"./adw-view-switcher.js";import{AdwViewSwitcherBar as G}from"./adw-view-switcher-bar.js";import{AdwWindow as K}from"./adw-window.js";import{AdwWrapBox as q}from"./adw-wrap-box.js";import{GtkActionBar as J}from"./gtk-action-bar.js";import{DEFAULT_BOX_SPACING as Kn,boxChildTrack as qn,boxSpacingChanges as Jn,boxTrackPlan as Yn,normalizeBoxSpacing as Xn}from"./box-layout.js";import{GtkBox as Y}from"./gtk-box.js";import{buttonSlotAfterWrite as Zn,buttonSlotDetaches as Qn}from"./button-slot.js";import{GTK_BUTTON_CLICKED as $n,GTK_BUTTON_LABEL_CLASS as er,GtkButton as X}from"./gtk-button.js";import{GtkDropDown as Z,NOTIFY_SELECTED as tr}from"./gtk-drop-down.js";import{GTK_CHECK_BUTTON_ACTIVATE as nr,GTK_CHECK_BUTTON_CHECKED_CLASS as rr,GTK_CHECK_BUTTON_INCONSISTENT_CLASS as ir,GTK_CHECK_BUTTON_TOGGLED as ar,GtkCheckButton as Q,NOTIFY_CHECK_ACTIVE as or}from"./gtk-check-button.js";import{DRAWING_AREA_REFUSAL as sr,GtkDrawingArea as $}from"./gtk-drawing-area.js";import{ACTIVATE as cr,GtkEntry as lr,NOTIFY_TEXT as ur}from"./gtk-entry.js";import{gridChildAt as dr,gridGap as fr,gridSpacing as pr,gridTrackCounts as mr}from"./grid-state.js";import{GtkGrid as hr}from"./gtk-grid.js";import{GtkFrame as gr}from"./gtk-frame.js";import{GtkLabel as _r}from"./gtk-label.js";import{DEFAULT_LIST_SELECTION_MODE as vr,GTK_SELECTION_MODES as yr,selectionAfterModeChange as br,selectionAfterTap as xr,selectionMode as Sr}from"./list-box-state.js";import{GtkListBox as Cr,LIST_BOX_ROW_ACTIVATED as wr,LIST_BOX_ROW_SELECTED as Tr,LIST_ROW_SELECTED_CLASS as Er}from"./gtk-list-box.js";import{GtkMenuButton as Dr,MENU_ITEM_ACTIVATED as Or}from"./gtk-menu-button.js";import{GtkPopoverMenu as kr}from"./gtk-popover-menu.js";import{GtkOverlay as Ar}from"./gtk-overlay.js";import{revealerChildVisibility as jr}from"./revealer-state.js";import{GtkRevealer as Mr,NOTIFY_REVEAL_CHILD as Nr}from"./gtk-revealer.js";import{GtkScrolledWindow as Pr}from"./gtk-scrolled-window.js";import{GtkSeparator as Fr}from"./gtk-separator.js";import{GtkStackPage as Ir}from"./stack-page.js";import{GtkStack as Lr,NOTIFY_STACK_VISIBLE_CHILD as Rr,NOTIFY_STACK_VISIBLE_CHILD_NAME as zr}from"./gtk-stack.js";import{GTK_WRAP_MODES as Br,GtkTextView as Vr,NOTIFY_TEXT_VIEW_TEXT as Hr}from"./gtk-text-view.js";import{GTK_TOGGLE_BUTTON_CHECKED_CLASS as Ur,GTK_TOGGLE_BUTTON_TOGGLED as Wr,GtkToggleButton as Gr,NOTIFY_TOGGLE_ACTIVE as Kr}from"./gtk-toggle-button.js";import{AdwSliderRow as qr,NOTIFY_SLIDER_VALUE as Jr}from"./adw-slider-row.js";import{DATA_GRID_HEADER_CELL_CLASS as Yr,DATA_GRID_HEADER_ROW_CLASS as Xr,DATA_GRID_SECTION_CELL_CLASS as Zr,dataGridCellClass as Qr,dataGridItemSpec as $r,dataGridRowClass as ei,dataGridShapeKey as ti,dataGridTracksKey as ni,parseDataGridWidth as ri}from"./data-grid-model.js";import{AdwDataGrid as ii,ROW_ACTIVATED as ai}from"./adw-data-grid.js";import{ADWAITA_NS_ACCENT_RULES as oi,adwaitaNsAccentColor as si,adwaitaNsAccentCss as ci}from"./accent-theme.js";import{applyAdwaitaNsAccent as li,clearAdwaitaNsAccent as ui}from"./adw-accent.js";import{padForSystemInsets as di,padSheetForSystemInsets as fi}from"./system-insets.js";import{labelDisplayText as pi,labelMarkupIsUnparseable as mi}from"@gjsify/adwaita-core";const hi={AdwPreferencesPage:M,AdwPreferencesGroup:j,AdwActionRow:r,AdwSwitchRow:z,AdwEntryRow:y,AdwPasswordEntryRow:k,GtkEntry:lr,AdwComboRow:g,GtkDropDown:Z,AdwSpinRow:F,AdwSliderRow:qr,AdwExpanderRow:b,GtkButton:X,GtkBox:Y,GtkGrid:hr,GtkListBox:Cr,AdwWindow:K,AdwApplicationWindow:a,AdwDialog:_,GtkActionBar:J,AdwBin:c,GtkOverlay:Ar,GtkRevealer:Mr,GtkScrolledWindow:Pr,GtkWindow:i,GtkStack:Lr,GtkToggleButton:Gr,GtkCheckButton:Q,GtkDrawingArea:$,GtkFrame:gr,GtkSeparator:Fr,GtkTextView:Vr,GtkLabel:_r,AdwImageButton:v,GtkMenuButton:Dr,GtkImage:n,AdwBanner:s,AdwAvatar:o,AdwWindowTitle:x,AdwClamp:h,AdwHeaderBar:S,AdwToolbarView:U,AdwWrapBox:q,AdwDataGrid:ii,AdwSpinner:I,AdwStatusPage:R,AdwButtonRow:d,AdwButtonContent:u,AdwSplitButton:L,AdwToggleGroup:H,AdwShortcutLabel:N,AdwViewStack:C,AdwViewSwitcher:W,AdwViewSwitcherBar:G,AdwInlineViewSwitcher:w,AdwTabView:B,AdwCarousel:f,AdwCarouselIndicatorDots:p,AdwCarouselIndicatorLines:m,AdwNavigationPage:E,AdwNavigationView:D,AdwNavigationSplitView:T,AdwOverlaySplitView:O,AdwSidebar:P,AdwBottomSheet:l,AdwToastOverlay:V,AdwAboutDialog:t,AdwPreferencesDialog:A};let gi=!1;function registerAdwaitaElements(){if(!gi&&typeof registerElement==`function`){for(let[ee,e]of Object.entries(hi))registerElement(ee,()=>e);gi=!0}}export{Me as ABOUT_CLOSED,Ze as ACTIVATED,ze as ADWAITA_ICON_GRID,oi as ADWAITA_NS_ACCENT_RULES,At as ADW_DIALOG_CLASS,jt as ADW_DIALOG_CLOSED,Mt as ADW_DIALOG_CLOSE_ATTEMPT,De as ADW_DIALOG_PRESENTATION_MODES,et as ADW_WINDOW_CLASS,rt as AVATAR_DEFAULT_ICON,t as AdwAboutDialog,r as AdwActionRow,Qe as AdwAlertDialog,$e as AdwAlertResponses,a as AdwApplicationWindow,o as AdwAvatar,s as AdwBanner,c as AdwBin,l as AdwBottomSheet,ee as AdwBreakpoint,u as AdwButtonContent,d as AdwButtonRow,f as AdwCarousel,p as AdwCarouselIndicatorDots,m as AdwCarouselIndicatorLines,h as AdwClamp,g as AdwComboRow,ii as AdwDataGrid,_ as AdwDialog,y as AdwEntryRow,b as AdwExpanderRow,S as AdwHeaderBar,v as AdwImageButton,w as AdwInlineViewSwitcher,E as AdwNavigationPage,T as AdwNavigationSplitView,D as AdwNavigationView,O as AdwOverlaySplitView,k as AdwPasswordEntryRow,A as AdwPreferencesDialog,j as AdwPreferencesGroup,M as AdwPreferencesPage,N as AdwShortcutLabel,P as AdwSidebar,on as AdwSidebarItem,sn as AdwSidebarSection,qr as AdwSliderRow,F as AdwSpinRow,I as AdwSpinner,L as AdwSplitButton,Wt as AdwSplitViewBase,R as AdwStatusPage,z as AdwSwitchRow,Tn as AdwTabPage,B as AdwTabView,Ln as AdwToast,V as AdwToastOverlay,Rn as AdwToastQueue,Bn as AdwToggle,H as AdwToggleGroup,U as AdwToolbarView,C as AdwViewStack,Lt as AdwViewStackPage,W as AdwViewSwitcher,G as AdwViewSwitcherBar,zt as AdwViewSwitcherBase,K as AdwWindow,tt as AdwWindowBase,x as AdwWindowTitle,q as AdwWrapBox,st as BUTTON_CLICKED,Sn as CLICKED,ct as CLOSE_ATTEMPT,Pn as CLOSE_PAGE,ht as CarouselScrollSync,Ot as ComboState,Yr as DATA_GRID_HEADER_CELL_CLASS,Xr as DATA_GRID_HEADER_ROW_CLASS,Zr as DATA_GRID_SECTION_CELL_CLASS,it as DEFAULT_AVATAR_SIZE,Kn as DEFAULT_BOX_SPACING,gt as DEFAULT_CAROUSEL_PAGE_WIDTH,at as DEFAULT_CLAMP_MAX_SIZE,Oe as DEFAULT_DIALOG_PRESENTATION_MODE,Xe as DEFAULT_GTK_IMAGE_SIZE,Nt as DEFAULT_ICON_BUTTON_ICON_SIZE,Be as DEFAULT_ICON_COLOR,Ve as DEFAULT_ICON_COLOR_DARK,oe as DEFAULT_ICON_PIXEL_SIZE,vr as DEFAULT_LIST_SELECTION_MODE,Se as DEFAULT_REVEALER_TRANSITION_DURATION,_n as DEFAULT_SCROLLBAR_POLICY,ot as DEFAULT_SPINNER_SIZE,Ce as DEFAULT_STACK_TRANSITION_DURATION,zn as DEFAULT_TOAST_TIMEOUT,sr as DRAWING_AREA_REFUSAL,cr as ENTRY_ACTIVATE,Ft as ExpanderState,dn as GROUP_DIVIDER_API,ae as GTK_ALIGN,$n as GTK_BUTTON_CLICKED,er as GTK_BUTTON_LABEL_CLASS,nr as GTK_CHECK_BUTTON_ACTIVATE,rr as GTK_CHECK_BUTTON_CHECKED_CLASS,ir as GTK_CHECK_BUTTON_INCONSISTENT_CLASS,ar as GTK_CHECK_BUTTON_TOGGLED,se as GTK_ICON_SIZE_NICKS,ce as GTK_ICON_SIZE_PIXELS,vn as GTK_POLICY_TYPES,we as GTK_REVEALER_TRANSITIONS,yr as GTK_SELECTION_MODES,Te as GTK_STACK_TRANSITIONS,Ur as GTK_TOGGLE_BUTTON_CHECKED_CLASS,Wr as GTK_TOGGLE_BUTTON_TOGGLED,Br as GTK_WRAP_MODES,J as GtkActionBar,Y as GtkBox,X as GtkButton,Q as GtkCheckButton,$ as GtkDrawingArea,Z as GtkDropDown,lr as GtkEntry,gr as GtkFrame,hr as GtkGrid,n as GtkImage,_r as GtkLabel,Cr as GtkListBox,Dr as GtkMenuButton,Ar as GtkOverlay,kr as GtkPopoverMenu,Mr as GtkRevealer,Pr as GtkScrolledWindow,Fr as GtkSeparator,Lr as GtkStack,Ir as GtkStackPage,Vr as GtkTextView,Gr as GtkToggleButton,i as GtkWindow,We as ICON_FALLBACK_NAME,wr as LIST_BOX_ROW_ACTIVATED,Tr as LIST_BOX_ROW_SELECTED,Er as LIST_ROW_SELECTED_CLASS,Or as MENU_ITEM_ACTIVATED,Cn as MENU_TAPPED,wn as NOTIFY_ACTIVE,or as NOTIFY_CHECK_ACTIVE,tr as NOTIFY_DROP_DOWN_SELECTED,ur as NOTIFY_ENTRY_TEXT,It as NOTIFY_EXPANDED,ye as NOTIFY_HEXPAND,Tt as NOTIFY_N_PAGES,lt as NOTIFY_OPEN,Et as NOTIFY_POSITION,Nr as NOTIFY_REVEAL_CHILD,kt as NOTIFY_SELECTED,Fn as NOTIFY_SELECTED_PAGE,Gt as NOTIFY_SHOW_SIDEBAR,cn as NOTIFY_SIDEBAR_SELECTED,Jr as NOTIFY_SLIDER_VALUE,Rr as NOTIFY_STACK_VISIBLE_CHILD,zr as NOTIFY_STACK_VISIBLE_CHILD_NAME,Pt as NOTIFY_TEXT,Hr as NOTIFY_TEXT_VIEW_TEXT,Kr as NOTIFY_TOGGLE_ACTIVE,Vn as NOTIFY_TOGGLE_SELECTED,ln as NOTIFY_VALUE,be as NOTIFY_VEXPAND,Bt as NOTIFY_VIEW_SELECTED,Rt as NOTIFY_VISIBLE_CHILD,Kt as NOTIFY_VISIBLE_PAGE,Vt as NsNavigationSplitViewState,Ht as NsOverlaySplitViewState,In as PAGES_CHANGED,Dt as PAGE_CHANGED,le as PIXEL_SIZE_UNSET,qt as PREFERENCES_CLOSED,ai as ROW_ACTIVATED,ut as SHEET_CLOSE,dt as SHEET_CONTENT_BOTTOM_GAP,Jt as SHORTCUT_LABEL_CAP_TEXT_CLASS,Yt as SHORTCUT_LABEL_CLASS,Xt as SHORTCUT_LABEL_DIMMED_CLASS,Zt as SHORTCUT_LABEL_DISABLED_CLASS,Qt as SHORTCUT_LABEL_KEYCAP_CLASS,$t as SHORTCUT_LABEL_KEYS_CLASS,en as SHORTCUT_LABEL_SIDE_CLASS,tn as SHORTCUT_LABEL_SPACED_CLASS,me as SimpleAction,he as SimpleActionGroup,un as SpinState,Hn as ToggleGroupState,Un as WINDOW_BACKGROUND,ge as activateWidgetAction,e as addBreakpoints,Ne as adwaitaColorScheme,si as adwaitaNsAccentColor,ci as adwaitaNsAccentCss,li as applyAdwaitaNsAccent,de as applyConstructProps,_t as applyMarkerClasses,En as applyTabViewVisibility,fn as assertPopupMenuAssignable,pt as attachRowPressFeedback,nt as avatarInitials,ft as bottomSheetInsetPadding,mt as bottomSheetPanel,qn as boxChildTrack,Jn as boxSpacingChanges,Yn as boxTrackPlan,Zn as buttonSlotAfterWrite,Qn as buttonSlotDetaches,vt as carouselDotClasses,yt as carouselNotifyPayload,bt as carouselPositionAtOffset,xt as carouselScrollOffset,ui as clearAdwaitaNsAccent,Ge as compiledIconNames,Wn as configureSystemBars,St as createCarouselState,Dn as createTabViewState,Qr as dataGridCellClass,$r as dataGridItemSpec,ei as dataGridRowClass,ti as dataGridShapeKey,ni as dataGridTracksKey,ke as dialogPresentationMode,te as evaluateBreakpointCondition,He as extractIconPaths,Ue as extractPathData,pn as fillPopupMenu,_e as findActionGroup,Ae as findDialogHost,dr as gridChildAt,fr as gridGap,pr as gridSpacing,mr as gridTrackCounts,Ke as iconValueKind,Ct as indicatorMarkerClasses,ve as insertActionGroup,ue as isGtkIconSizeNick,qe as isIconAvailable,Pe as isThemeIconColor,pi as labelDisplayText,mi as labelMarkupIsUnparseable,pe as lengthValue,Xn as normalizeBoxSpacing,wt as normalizeCarouselPageWidth,yn as normalizePolicy,fe as nsAlignment,ne as observeViewSize,re as observeWindowSize,Fe as onAdwaitaColorSchemeChanged,mn as openPopupMenu,di as padForSystemInsets,fi as padSheetForSystemInsets,ie as parseBreakpointCondition,ri as parseDataGridWidth,bn as policyScrolls,hn as refuseMenuString,registerAdwaitaElements,Ye as renderSymbolicIcon,Je as resolveIconSource,jr as revealerChildVisibility,xn as scrollOrientationFor,br as selectionAfterModeChange,xr as selectionAfterTap,Sr as selectionMode,Ie as setAdwaitaColorScheme,nn as shortcutLabelDirection,rn as shortcutLabelPlatform,an as shortcutLabelRenderPlan,gn as showMenuPopup,Ut as splitViewColumns,je as surfaceSize,Gn as systemBarsConfig,On as tabBarVisibility,kn as tabCloseVisibilities,An as tabLabelText,jn as tabPageVisibilities,Mn as tabTooltipText,Nn as tabViewNotifyPayload,Le as themeIconColor,Re as toggleAdwaitaColorScheme,Ee as transitionNick,xe as withGtkWidgetLayout};
1
+ import"../_virtual/_rolldown/runtime.js";import{AdwBreakpoint as ee,addBreakpoints as e,evaluateBreakpointCondition as te,observeViewSize as ne,observeWindowSize as re,parseBreakpointCondition as ie}from"./breakpoint.js";import{GTK_ALIGN as ae}from"./gtk-align.js";import{DEFAULT_ICON_PIXEL_SIZE as oe,GTK_ICON_SIZE_NICKS as se,GTK_ICON_SIZE_PIXELS as ce,PIXEL_SIZE_UNSET as le,isGtkIconSizeNick as ue}from"./gtk-icon-size.js";import{applyConstructProps as de,nsAlignment as fe}from"./construct-props.js";import{lengthValue as pe}from"./ns-length.js";import{SimpleAction as me,SimpleActionGroup as he,activateWidgetAction as ge,findActionGroup as _e,insertActionGroup as ve}from"./actions.js";import{NOTIFY_HEXPAND as ye,NOTIFY_VEXPAND as be,withGtkWidgetLayout as xe}from"./widget-layout.js";import{adwaitaColorScheme as Se,isThemeIconColor as Ce,onAdwaitaColorSchemeChanged as we,setAdwaitaColorScheme as Te,themeIconColor as Ee,toggleAdwaitaColorScheme as De}from"./color-scheme.js";import{ADWAITA_ICON_GRID as Oe,DEFAULT_ICON_COLOR as ke,DEFAULT_ICON_COLOR_DARK as Ae,extractIconPaths as je,extractPathData as Me}from"./icon-path.js";import{ICON_FALLBACK_NAME as Ne,compiledIconNames as Pe,iconValueKind as Fe,isIconAvailable as Ie,resolveIconSource as Le}from"./icon-theme.js";import{renderSymbolicIcon as Re}from"./icons.js";import{DEFAULT_GTK_IMAGE_SIZE as ze,GtkImage as t}from"./gtk-image.js";import{DEFAULT_REVEALER_TRANSITION_DURATION as Be,DEFAULT_STACK_TRANSITION_DURATION as Ve,GTK_REVEALER_TRANSITIONS as He,GTK_STACK_TRANSITIONS as Ue,transitionNick as We}from"./transition-type.js";import{ADW_DIALOG_PRESENTATION_MODES as Ge,DEFAULT_DIALOG_PRESENTATION_MODE as Ke,dialogPresentationMode as qe,findDialogHost as Je,surfaceSize as Ye}from"./window-state.js";import{AdwAboutDialog as n,CLOSED as Xe}from"./adw-about-dialog.js";import{ACTIVATED as Ze,AdwActionRow as r}from"./adw-action-row.js";import{AdwAlertDialog as Qe,AdwAlertResponses as $e}from"./adw-alert-dialog.js";import{GtkWindow as i}from"./gtk-window.js";import{ADW_WINDOW_CLASS as et,AdwWindowBase as tt}from"./window-base.js";import{AdwApplicationWindow as a}from"./adw-application-window.js";import{avatarInitials as nt}from"./avatar-color.js";import{AVATAR_DEFAULT_ICON as rt}from"./avatar-view.js";import{AdwAvatar as o,DEFAULT_AVATAR_SIZE as it}from"./adw-avatar.js";import{DEFAULT_CLAMP_MAX_SIZE as at,DEFAULT_SPINNER_SIZE as ot}from"./chrome.js";import{AdwBanner as s,BUTTON_CLICKED as st}from"./adw-banner.js";import{AdwBin as c}from"./adw-bin.js";import{CLOSE_ATTEMPT as ct,NOTIFY_OPEN as lt,SHEET_CLOSE as ut}from"./bottom-sheet-state.js";import{SHEET_CONTENT_BOTTOM_GAP as dt,bottomSheetInsetPadding as ft}from"./bottom-sheet-insets.js";import{attachRowPressFeedback as pt}from"./row-press.js";import{AdwBottomSheet as l,bottomSheetPanel as mt}from"./adw-bottom-sheet.js";import{AdwButtonContent as u}from"./adw-button-content.js";import{AdwButtonRow as d}from"./adw-button-row.js";import{CarouselScrollSync as ht,DEFAULT_CAROUSEL_PAGE_WIDTH as gt,applyMarkerClasses as _t,carouselDotClasses as vt,carouselNotifyPayload as yt,carouselPositionAtOffset as bt,carouselScrollOffset as xt,createCarouselState as St,indicatorMarkerClasses as Ct,normalizeCarouselPageWidth as wt}from"./carousel-state.js";import{AdwCarousel as f,NOTIFY_N_PAGES as Tt,NOTIFY_POSITION as Et,PAGE_CHANGED as Dt}from"./adw-carousel.js";import{AdwCarouselIndicatorDots as p}from"./adw-carousel-indicator-dots.js";import{AdwCarouselIndicatorLines as m}from"./adw-carousel-indicator-lines.js";import{AdwClamp as h}from"./adw-clamp.js";import{AdwComboRow as g,ComboState as Ot,NOTIFY_SELECTED as kt}from"./adw-combo-row.js";import{ADW_DIALOG_CLASS as At,ADW_DIALOG_CLOSED as jt,ADW_DIALOG_CLOSE_ATTEMPT as Mt,AdwDialog as _}from"./adw-dialog.js";import{AdwImageButton as v,DEFAULT_ICON_BUTTON_ICON_SIZE as Nt}from"./adw-image-button.js";import{AdwEntryRow as y,NOTIFY_TEXT as Pt}from"./adw-entry-row.js";import{AdwExpanderRow as b,ExpanderState as Ft,NOTIFY_EXPANDED as It}from"./adw-expander-row.js";import{AdwWindowTitle as x}from"./adw-window-title.js";import{AdwHeaderBar as S}from"./adw-header-bar.js";import{AdwViewStackPage as Lt}from"./view-stack-page.js";import{AdwViewStack as C,NOTIFY_VISIBLE_CHILD as Rt}from"./adw-view-stack.js";import{AdwViewSwitcherBase as zt,NOTIFY_SELECTED as Bt}from"./view-switcher-base.js";import{AdwInlineViewSwitcher as w}from"./adw-inline-view-switcher.js";import{NsNavigationSplitViewState as Vt,NsOverlaySplitViewState as Ht,splitViewColumns as Ut}from"./split-view-state.js";import{AdwSplitViewBase as Wt,NOTIFY_SHOW_SIDEBAR as Gt}from"./split-view-base.js";import{AdwNavigationSplitView as T}from"./adw-navigation-split-view.js";import{AdwNavigationPage as E}from"./adw-navigation-page.js";import{NOTIFY_VISIBLE_PAGE as Kt}from"./navigation-stack.js";import{AdwNavigationView as D}from"./adw-navigation-view.js";import{AdwOverlaySplitView as O}from"./adw-overlay-split-view.js";import{AdwPasswordEntryRow as k}from"./adw-password-entry-row.js";import{AdwPreferencesDialog as A,CLOSED as qt}from"./adw-preferences-dialog.js";import{AdwPreferencesGroup as j}from"./adw-preferences-group.js";import{AdwPreferencesPage as M}from"./adw-preferences-page.js";import{SHORTCUT_LABEL_CAP_TEXT_CLASS as Jt,SHORTCUT_LABEL_CLASS as Yt,SHORTCUT_LABEL_DIMMED_CLASS as Xt,SHORTCUT_LABEL_DISABLED_CLASS as Zt,SHORTCUT_LABEL_KEYCAP_CLASS as Qt,SHORTCUT_LABEL_KEYS_CLASS as $t,SHORTCUT_LABEL_SIDE_CLASS as en,SHORTCUT_LABEL_SPACED_CLASS as tn,shortcutLabelDirection as nn,shortcutLabelPlatform as rn,shortcutLabelRenderPlan as an}from"./shortcut-label.js";import{AdwShortcutLabel as N}from"./adw-shortcut-label.js";import{AdwSidebarItem as on,AdwSidebarSection as sn}from"../values/sidebar.js";import{AdwSidebar as P,NOTIFY_SELECTED as cn}from"./adw-sidebar.js";import{AdwSpinRow as F,NOTIFY_VALUE as ln,SpinState as un}from"./adw-spin-row.js";import{AdwSpinner as I}from"./adw-spinner.js";import{GROUP_DIVIDER_API as dn,assertPopupMenuAssignable as fn,fillPopupMenu as pn,openPopupMenu as mn,refuseMenuString as hn}from"./popup-menu.js";import{showMenuPopup as gn}from"./popup-menu-view.js";import{DEFAULT_SCROLLBAR_POLICY as _n,GTK_POLICY_TYPES as vn,normalizePolicy as yn,policyScrolls as bn,scrollOrientationFor as xn}from"./scrolled-window-policy.js";import{AdwSplitButton as L,CLICKED as Sn,MENU_TAPPED as Cn}from"./adw-split-button.js";import{AdwStatusPage as R}from"./adw-status-page.js";import{AdwSwitchRow as z,NOTIFY_ACTIVE as wn}from"./adw-switch-row.js";import{AdwTabPage as Tn}from"../values/tab-page.js";import{applyTabViewVisibility as En,createTabViewState as Dn,tabBarVisibility as On,tabCloseVisibilities as kn,tabLabelText as An,tabPageVisibilities as jn,tabTooltipText as Mn,tabViewNotifyPayload as Nn}from"./tab-view-state.js";import{AdwTabView as B,CLOSE_PAGE as Pn,NOTIFY_SELECTED_PAGE as Fn,PAGES_CHANGED as In}from"./adw-tab-view.js";import{AdwToast as Ln,AdwToastOverlay as V,AdwToastQueue as Rn,DEFAULT_TOAST_TIMEOUT as zn}from"./adw-toast-overlay.js";import{AdwToggle as Bn}from"./adw-toggle.js";import{AdwToggleGroup as H,NOTIFY_SELECTED as Vn,ToggleGroupState as Hn}from"./adw-toggle-group.js";import{WINDOW_BACKGROUND as Un,configureSystemBars as Wn,systemBarsConfig as Gn}from"./system-bars.js";import{AdwToolbarView as U}from"./adw-toolbar-view.js";import{AdwViewSwitcher as W}from"./adw-view-switcher.js";import{AdwViewSwitcherBar as G}from"./adw-view-switcher-bar.js";import{AdwWindow as K}from"./adw-window.js";import{AdwWrapBox as q}from"./adw-wrap-box.js";import{GtkActionBar as J}from"./gtk-action-bar.js";import{DEFAULT_BOX_SPACING as Kn,boxChildTrack as qn,boxSpacingChanges as Jn,boxTrackPlan as Yn,normalizeBoxSpacing as Xn}from"./box-layout.js";import{GtkBox as Y}from"./gtk-box.js";import{buttonSlotAfterWrite as Zn,buttonSlotDetaches as Qn}from"./button-slot.js";import{GTK_BUTTON_CLICKED as $n,GTK_BUTTON_LABEL_CLASS as er,GtkButton as X}from"./gtk-button.js";import{GtkDropDown as Z,NOTIFY_SELECTED as tr}from"./gtk-drop-down.js";import{GTK_CHECK_BUTTON_ACTIVATE as nr,GTK_CHECK_BUTTON_CHECKED_CLASS as rr,GTK_CHECK_BUTTON_INCONSISTENT_CLASS as ir,GTK_CHECK_BUTTON_TOGGLED as ar,GtkCheckButton as Q,NOTIFY_CHECK_ACTIVE as or}from"./gtk-check-button.js";import{DRAWING_AREA_REFUSAL as sr,GtkDrawingArea as $}from"./gtk-drawing-area.js";import{ACTIVATE as cr,GtkEntry as lr,NOTIFY_TEXT as ur}from"./gtk-entry.js";import{gridChildAt as dr,gridGap as fr,gridSpacing as pr,gridTrackCounts as mr}from"./grid-state.js";import{GtkGrid as hr}from"./gtk-grid.js";import{GtkFrame as gr}from"./gtk-frame.js";import{GtkLabel as _r}from"./gtk-label.js";import{DEFAULT_LIST_SELECTION_MODE as vr,GTK_SELECTION_MODES as yr,selectionAfterModeChange as br,selectionAfterTap as xr,selectionMode as Sr}from"./list-box-state.js";import{GtkListBox as Cr,LIST_BOX_ROW_ACTIVATED as wr,LIST_BOX_ROW_SELECTED as Tr,LIST_ROW_SELECTED_CLASS as Er}from"./gtk-list-box.js";import{GtkMenuButton as Dr,MENU_ITEM_ACTIVATED as Or}from"./gtk-menu-button.js";import{GtkPopoverMenu as kr}from"./gtk-popover-menu.js";import{GtkOverlay as Ar}from"./gtk-overlay.js";import{revealerChildVisibility as jr}from"./revealer-state.js";import{GtkRevealer as Mr,NOTIFY_REVEAL_CHILD as Nr}from"./gtk-revealer.js";import{GtkScrolledWindow as Pr}from"./gtk-scrolled-window.js";import{GtkSeparator as Fr}from"./gtk-separator.js";import{GtkStackPage as Ir}from"./stack-page.js";import{GtkStack as Lr,NOTIFY_STACK_VISIBLE_CHILD as Rr,NOTIFY_STACK_VISIBLE_CHILD_NAME as zr}from"./gtk-stack.js";import{GTK_WRAP_MODES as Br,GtkTextView as Vr,NOTIFY_TEXT_VIEW_TEXT as Hr}from"./gtk-text-view.js";import{GTK_TOGGLE_BUTTON_CHECKED_CLASS as Ur,GTK_TOGGLE_BUTTON_TOGGLED as Wr,GtkToggleButton as Gr,NOTIFY_TOGGLE_ACTIVE as Kr}from"./gtk-toggle-button.js";import{AdwSliderRow as qr,NOTIFY_SLIDER_VALUE as Jr}from"./adw-slider-row.js";import{DATA_GRID_HEADER_CELL_CLASS as Yr,DATA_GRID_HEADER_ROW_CLASS as Xr,DATA_GRID_SECTION_CELL_CLASS as Zr,dataGridCellClass as Qr,dataGridItemSpec as $r,dataGridRowClass as ei,dataGridShapeKey as ti,dataGridTracksKey as ni,parseDataGridWidth as ri}from"./data-grid-model.js";import{AdwDataGrid as ii,ROW_ACTIVATED as ai}from"./adw-data-grid.js";import{ADWAITA_NS_ACCENT_RULES as oi,adwaitaNsAccentColor as si,adwaitaNsAccentCss as ci}from"./accent-theme.js";import{applyAdwaitaNsAccent as li,clearAdwaitaNsAccent as ui}from"./adw-accent.js";import{padForSystemInsets as di,padSheetForSystemInsets as fi}from"./system-insets.js";import{labelDisplayText as pi,labelMarkupIsUnparseable as mi}from"@gjsify/adwaita-core";const hi={AdwPreferencesPage:M,AdwPreferencesGroup:j,AdwActionRow:r,AdwSwitchRow:z,AdwEntryRow:y,AdwPasswordEntryRow:k,GtkEntry:lr,AdwComboRow:g,GtkDropDown:Z,AdwSpinRow:F,AdwSliderRow:qr,AdwExpanderRow:b,GtkButton:X,GtkBox:Y,GtkGrid:hr,GtkListBox:Cr,AdwWindow:K,AdwApplicationWindow:a,AdwDialog:_,GtkActionBar:J,AdwBin:c,GtkOverlay:Ar,GtkRevealer:Mr,GtkScrolledWindow:Pr,GtkWindow:i,GtkStack:Lr,GtkToggleButton:Gr,GtkCheckButton:Q,GtkDrawingArea:$,GtkFrame:gr,GtkSeparator:Fr,GtkTextView:Vr,GtkLabel:_r,AdwImageButton:v,GtkMenuButton:Dr,GtkImage:t,AdwBanner:s,AdwAvatar:o,AdwWindowTitle:x,AdwClamp:h,AdwHeaderBar:S,AdwToolbarView:U,AdwWrapBox:q,AdwDataGrid:ii,AdwSpinner:I,AdwStatusPage:R,AdwButtonRow:d,AdwButtonContent:u,AdwSplitButton:L,AdwToggleGroup:H,AdwShortcutLabel:N,AdwViewStack:C,AdwViewSwitcher:W,AdwViewSwitcherBar:G,AdwInlineViewSwitcher:w,AdwTabView:B,AdwCarousel:f,AdwCarouselIndicatorDots:p,AdwCarouselIndicatorLines:m,AdwNavigationPage:E,AdwNavigationView:D,AdwNavigationSplitView:T,AdwOverlaySplitView:O,AdwSidebar:P,AdwBottomSheet:l,AdwToastOverlay:V,AdwAboutDialog:n,AdwPreferencesDialog:A};let gi=!1;function registerAdwaitaElements(){if(!gi&&typeof registerElement==`function`){for(let[ee,e]of Object.entries(hi))registerElement(ee,()=>e);gi=!0}}export{Xe as ABOUT_CLOSED,Ze as ACTIVATED,Oe as ADWAITA_ICON_GRID,oi as ADWAITA_NS_ACCENT_RULES,At as ADW_DIALOG_CLASS,jt as ADW_DIALOG_CLOSED,Mt as ADW_DIALOG_CLOSE_ATTEMPT,Ge as ADW_DIALOG_PRESENTATION_MODES,et as ADW_WINDOW_CLASS,rt as AVATAR_DEFAULT_ICON,n as AdwAboutDialog,r as AdwActionRow,Qe as AdwAlertDialog,$e as AdwAlertResponses,a as AdwApplicationWindow,o as AdwAvatar,s as AdwBanner,c as AdwBin,l as AdwBottomSheet,ee as AdwBreakpoint,u as AdwButtonContent,d as AdwButtonRow,f as AdwCarousel,p as AdwCarouselIndicatorDots,m as AdwCarouselIndicatorLines,h as AdwClamp,g as AdwComboRow,ii as AdwDataGrid,_ as AdwDialog,y as AdwEntryRow,b as AdwExpanderRow,S as AdwHeaderBar,v as AdwImageButton,w as AdwInlineViewSwitcher,E as AdwNavigationPage,T as AdwNavigationSplitView,D as AdwNavigationView,O as AdwOverlaySplitView,k as AdwPasswordEntryRow,A as AdwPreferencesDialog,j as AdwPreferencesGroup,M as AdwPreferencesPage,N as AdwShortcutLabel,P as AdwSidebar,on as AdwSidebarItem,sn as AdwSidebarSection,qr as AdwSliderRow,F as AdwSpinRow,I as AdwSpinner,L as AdwSplitButton,Wt as AdwSplitViewBase,R as AdwStatusPage,z as AdwSwitchRow,Tn as AdwTabPage,B as AdwTabView,Ln as AdwToast,V as AdwToastOverlay,Rn as AdwToastQueue,Bn as AdwToggle,H as AdwToggleGroup,U as AdwToolbarView,C as AdwViewStack,Lt as AdwViewStackPage,W as AdwViewSwitcher,G as AdwViewSwitcherBar,zt as AdwViewSwitcherBase,K as AdwWindow,tt as AdwWindowBase,x as AdwWindowTitle,q as AdwWrapBox,st as BUTTON_CLICKED,Sn as CLICKED,ct as CLOSE_ATTEMPT,Pn as CLOSE_PAGE,ht as CarouselScrollSync,Ot as ComboState,Yr as DATA_GRID_HEADER_CELL_CLASS,Xr as DATA_GRID_HEADER_ROW_CLASS,Zr as DATA_GRID_SECTION_CELL_CLASS,it as DEFAULT_AVATAR_SIZE,Kn as DEFAULT_BOX_SPACING,gt as DEFAULT_CAROUSEL_PAGE_WIDTH,at as DEFAULT_CLAMP_MAX_SIZE,Ke as DEFAULT_DIALOG_PRESENTATION_MODE,ze as DEFAULT_GTK_IMAGE_SIZE,Nt as DEFAULT_ICON_BUTTON_ICON_SIZE,ke as DEFAULT_ICON_COLOR,Ae as DEFAULT_ICON_COLOR_DARK,oe as DEFAULT_ICON_PIXEL_SIZE,vr as DEFAULT_LIST_SELECTION_MODE,Be as DEFAULT_REVEALER_TRANSITION_DURATION,_n as DEFAULT_SCROLLBAR_POLICY,ot as DEFAULT_SPINNER_SIZE,Ve as DEFAULT_STACK_TRANSITION_DURATION,zn as DEFAULT_TOAST_TIMEOUT,sr as DRAWING_AREA_REFUSAL,cr as ENTRY_ACTIVATE,Ft as ExpanderState,dn as GROUP_DIVIDER_API,ae as GTK_ALIGN,$n as GTK_BUTTON_CLICKED,er as GTK_BUTTON_LABEL_CLASS,nr as GTK_CHECK_BUTTON_ACTIVATE,rr as GTK_CHECK_BUTTON_CHECKED_CLASS,ir as GTK_CHECK_BUTTON_INCONSISTENT_CLASS,ar as GTK_CHECK_BUTTON_TOGGLED,se as GTK_ICON_SIZE_NICKS,ce as GTK_ICON_SIZE_PIXELS,vn as GTK_POLICY_TYPES,He as GTK_REVEALER_TRANSITIONS,yr as GTK_SELECTION_MODES,Ue as GTK_STACK_TRANSITIONS,Ur as GTK_TOGGLE_BUTTON_CHECKED_CLASS,Wr as GTK_TOGGLE_BUTTON_TOGGLED,Br as GTK_WRAP_MODES,J as GtkActionBar,Y as GtkBox,X as GtkButton,Q as GtkCheckButton,$ as GtkDrawingArea,Z as GtkDropDown,lr as GtkEntry,gr as GtkFrame,hr as GtkGrid,t as GtkImage,_r as GtkLabel,Cr as GtkListBox,Dr as GtkMenuButton,Ar as GtkOverlay,kr as GtkPopoverMenu,Mr as GtkRevealer,Pr as GtkScrolledWindow,Fr as GtkSeparator,Lr as GtkStack,Ir as GtkStackPage,Vr as GtkTextView,Gr as GtkToggleButton,i as GtkWindow,Ne as ICON_FALLBACK_NAME,wr as LIST_BOX_ROW_ACTIVATED,Tr as LIST_BOX_ROW_SELECTED,Er as LIST_ROW_SELECTED_CLASS,Or as MENU_ITEM_ACTIVATED,Cn as MENU_TAPPED,wn as NOTIFY_ACTIVE,or as NOTIFY_CHECK_ACTIVE,tr as NOTIFY_DROP_DOWN_SELECTED,ur as NOTIFY_ENTRY_TEXT,It as NOTIFY_EXPANDED,ye as NOTIFY_HEXPAND,Tt as NOTIFY_N_PAGES,lt as NOTIFY_OPEN,Et as NOTIFY_POSITION,Nr as NOTIFY_REVEAL_CHILD,kt as NOTIFY_SELECTED,Fn as NOTIFY_SELECTED_PAGE,Gt as NOTIFY_SHOW_SIDEBAR,cn as NOTIFY_SIDEBAR_SELECTED,Jr as NOTIFY_SLIDER_VALUE,Rr as NOTIFY_STACK_VISIBLE_CHILD,zr as NOTIFY_STACK_VISIBLE_CHILD_NAME,Pt as NOTIFY_TEXT,Hr as NOTIFY_TEXT_VIEW_TEXT,Kr as NOTIFY_TOGGLE_ACTIVE,Vn as NOTIFY_TOGGLE_SELECTED,ln as NOTIFY_VALUE,be as NOTIFY_VEXPAND,Bt as NOTIFY_VIEW_SELECTED,Rt as NOTIFY_VISIBLE_CHILD,Kt as NOTIFY_VISIBLE_PAGE,Vt as NsNavigationSplitViewState,Ht as NsOverlaySplitViewState,In as PAGES_CHANGED,Dt as PAGE_CHANGED,le as PIXEL_SIZE_UNSET,qt as PREFERENCES_CLOSED,ai as ROW_ACTIVATED,ut as SHEET_CLOSE,dt as SHEET_CONTENT_BOTTOM_GAP,Jt as SHORTCUT_LABEL_CAP_TEXT_CLASS,Yt as SHORTCUT_LABEL_CLASS,Xt as SHORTCUT_LABEL_DIMMED_CLASS,Zt as SHORTCUT_LABEL_DISABLED_CLASS,Qt as SHORTCUT_LABEL_KEYCAP_CLASS,$t as SHORTCUT_LABEL_KEYS_CLASS,en as SHORTCUT_LABEL_SIDE_CLASS,tn as SHORTCUT_LABEL_SPACED_CLASS,me as SimpleAction,he as SimpleActionGroup,un as SpinState,Hn as ToggleGroupState,Un as WINDOW_BACKGROUND,ge as activateWidgetAction,e as addBreakpoints,Se as adwaitaColorScheme,si as adwaitaNsAccentColor,ci as adwaitaNsAccentCss,li as applyAdwaitaNsAccent,de as applyConstructProps,_t as applyMarkerClasses,En as applyTabViewVisibility,fn as assertPopupMenuAssignable,pt as attachRowPressFeedback,nt as avatarInitials,ft as bottomSheetInsetPadding,mt as bottomSheetPanel,qn as boxChildTrack,Jn as boxSpacingChanges,Yn as boxTrackPlan,Zn as buttonSlotAfterWrite,Qn as buttonSlotDetaches,vt as carouselDotClasses,yt as carouselNotifyPayload,bt as carouselPositionAtOffset,xt as carouselScrollOffset,ui as clearAdwaitaNsAccent,Pe as compiledIconNames,Wn as configureSystemBars,St as createCarouselState,Dn as createTabViewState,Qr as dataGridCellClass,$r as dataGridItemSpec,ei as dataGridRowClass,ti as dataGridShapeKey,ni as dataGridTracksKey,qe as dialogPresentationMode,te as evaluateBreakpointCondition,je as extractIconPaths,Me as extractPathData,pn as fillPopupMenu,_e as findActionGroup,Je as findDialogHost,dr as gridChildAt,fr as gridGap,pr as gridSpacing,mr as gridTrackCounts,Fe as iconValueKind,Ct as indicatorMarkerClasses,ve as insertActionGroup,ue as isGtkIconSizeNick,Ie as isIconAvailable,Ce as isThemeIconColor,pi as labelDisplayText,mi as labelMarkupIsUnparseable,pe as lengthValue,Xn as normalizeBoxSpacing,wt as normalizeCarouselPageWidth,yn as normalizePolicy,fe as nsAlignment,ne as observeViewSize,re as observeWindowSize,we as onAdwaitaColorSchemeChanged,mn as openPopupMenu,di as padForSystemInsets,fi as padSheetForSystemInsets,ie as parseBreakpointCondition,ri as parseDataGridWidth,bn as policyScrolls,hn as refuseMenuString,registerAdwaitaElements,Re as renderSymbolicIcon,Le as resolveIconSource,jr as revealerChildVisibility,xn as scrollOrientationFor,br as selectionAfterModeChange,xr as selectionAfterTap,Sr as selectionMode,Te as setAdwaitaColorScheme,nn as shortcutLabelDirection,rn as shortcutLabelPlatform,an as shortcutLabelRenderPlan,gn as showMenuPopup,Ut as splitViewColumns,Ye as surfaceSize,Gn as systemBarsConfig,On as tabBarVisibility,kn as tabCloseVisibilities,An as tabLabelText,jn as tabPageVisibilities,Mn as tabTooltipText,Nn as tabViewNotifyPayload,Ee as themeIconColor,De as toggleAdwaitaColorScheme,We as transitionNick,xe as withGtkWidgetLayout};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{camelProperty as e,readGtkProperty as t,writeGtkProperty as n}from"./shadowed-properties.js";import{WIDGET_SIGNALS as r,watchMapping as i}from"./widget-mapping.js";import{withGtkWidgetLayout as a}from"./widget-layout.js";const o=new WeakMap;let s=1;function emittedSignalsOf(e){let t=[];for(let n=e;typeof n==`function`;n=Object.getPrototypeOf(n))t.unshift(n);let n=new Set;for(let e of t)if(Object.hasOwn(e,`emittedSignals`))for(let t of e.emittedSignals)n.add(t);return[...n]}function withSignals(c){class WithSignals extends a(c){static emittedSignals=r;connect(e,t){let listener=e=>{let n=e.accumulator;if(n===void 0){t(this,e);return}n.stopped||n.collect(t(this,e))},n=s++,a=o.get(this);a===void 0&&(a=new Map,o.set(this,a));let c=r.includes(e)?i(this):void 0;return a.set(n,{eventName:e,listener,unwatch:c}),this.addEventListener(e,listener),n}disconnect(e){let t=o.get(this)?.get(e);if(t===void 0)throw TypeError(`${this.constructor.name} has no handler with id ${e}. connect() hands out each id once and disconnect() takes it once; a second disconnect, or an id another widget returned, is refused here rather than left as a silent no-op.`);this.removeEventListener(t.eventName,t.listener),t.unwatch?.(),o.get(this)?.delete(e)}emit(e,...t){this.notify({eventName:e,object:this,args:t})}get_property(n){return t(this,e(n))}set_property(t,r){n(this,e(t),r)}}return WithSignals}export{emittedSignalsOf,withSignals};
1
+ import"../_virtual/_rolldown/runtime.js";import{ENGINE_TARGET as e}from"../engine-target.js";import{camelProperty as t,readGtkProperty as n,writeGtkProperty as r}from"./shadowed-properties.js";import{WIDGET_SIGNALS as i,watchMapping as a}from"./widget-mapping.js";import{withGtkWidgetLayout as o}from"./widget-layout.js";import{engineForTarget as s}from"@gjsify/adwaita-core";function coerceDeclared(e,t,n){if(t.normalize!==void 0)return t.normalize(n);if(typeof n!=`string`||t.kind===`string`)return n;let r=n.trim();if(t.kind===`boolean`){let t=r.toLowerCase();if(t===`true`)return!0;if(t===`false`)return!1;throw TypeError(`Property '${e}' is a boolean; '${n}' is neither 'true' nor 'false'.`)}let i=r===``?NaN:Number(r);if(!Number.isFinite(i))throw TypeError(`Property '${e}' is a number; '${n}' is not one.`);return i}const c=new WeakMap;let l=1;const u=1073741824,d=new WeakMap,f=new WeakMap;function unknownHandler(e,t){return TypeError(`${e.constructor.name} has no handler with id ${t}. connect() hands out each id once and disconnect() takes it once; a second disconnect, or an id another widget returned, is refused here rather than left as a silent no-op.`)}const p=new WeakMap;function pureConnect(e,t,n){let r=l++,o=c.get(e);o===void 0&&(o=new Map,c.set(e,o));let s=i.includes(t)?a(e):void 0;return o.set(r,{eventName:t,listener:n,unwatch:s}),e.addEventListener(t,n),r}function pureDisconnect(e,t){let n=c.get(e)?.get(t);if(n===void 0)throw unknownHandler(e,t);e.removeEventListener(n.eventName,n.listener),n.unwatch?.(),c.get(e)?.delete(t)}function pureEmit(e,t,n){e.notify({eventName:t,object:e,args:n})}function declaredConnect(e,t,n,r){let i=l++,a=p.get(e);return a===void 0&&p.set(e,a=new Map),a.set(i,{key:t,eventName:n,callback:r}),i}function declaredDisconnect(e,t){return p.get(e)?.delete(t)===!0}function emitDeclared(e,t,n){let r=p.get(e);if(r===void 0)return;let i=t.startsWith(`notify::`),a=[...r];for(let[o,s]of a){if(s.key!==t||r.get(o)!==s)continue;let a=i?{eventName:s.eventName,object:e}:{eventName:s.eventName,object:e,args:n};try{s.callback(e,a)}catch(t){console.error(`[${e.constructor.name}] unhandled exception in a '${s.eventName}' handler:`,t)}}}function refuseDeclaredEvent(e,t,n){let r=giKeyOf(resolvedFor(e.constructor),t);if(r===null)return;let i=r.startsWith(`notify::`),a=i?`a declared property's notification`:`a declared signal`,o=n===`notify`?i?`write the property, or emit it with notify('${r.slice(8)}')`:`emit it with emit('${r}', …)`:`subscribe with connect('${t}', (self, data) => …), whose id disconnect() takes`;throw TypeError(`${e.constructor.name}.${n}('${t}'): '${r}' is ${a} and GObject owns it — ${o}. On Android the emission belongs to the GObject and no NativeScript listener can see it, so ${n} would work off-device and be silent on it.`)}function spellingsOf(e){return[...new Set([e,e.replace(/-/g,`_`),t(e)])]}function emittedSignalsOf(e){let t=[];for(let n=e;typeof n==`function`;n=Object.getPrototypeOf(n))t.unshift(n);let n=new Set;for(let e of t)if(Object.hasOwn(e,`emittedSignals`))for(let t of e.emittedSignals)n.add(t);return[...n]}const m=new WeakMap,h=new WeakSet,g=new WeakSet,_=new WeakMap;function declarationsOf(e){let t=[];for(let n=e;typeof n==`function`;n=Object.getPrototypeOf(n)){let e=m.get(n);e!==void 0&&t.unshift(e)}return t}function resolvedFor(e){let t=_.get(e);if(t!==void 0)return t;let n=new Map,r=new Set,i={canonicalOf:n,declaredSignals:r,routeD:!1,giConnect:void 0,giDisconnect:void 0,giEmit:void 0},a=i;for(let t of declarationsOf(e)){for(let[e,r]of t.canonicalOf)n.set(e,r);for(let e of t.declaredSignals)r.add(e);t.routeD&&(a.routeD=!0),t.giConnect!==void 0&&(a.giConnect=t.giConnect),t.giDisconnect!==void 0&&(a.giDisconnect=t.giDisconnect),t.giEmit!==void 0&&(a.giEmit=t.giEmit)}return _.set(e,i),i}function giKeyOf(e,t){if(e.declaredSignals.has(t))return t;if(!t.startsWith(`notify::`))return null;let n=e.canonicalOf.get(t.slice(8));return n===void 0?null:`notify::${n}`}function declare(e,t,n){let r=new Map;for(let e of Object.keys(t?.Properties??{}))for(let t of spellingsOf(e))r.set(t,e);let i={meta:t,klass:e,prototype:e.prototype,canonicalOf:r,declaredSignals:new Set(Object.keys(t?.Signals??{})),routers:n,realized:!1,routeD:!1};return m.set(e,i),i}function declaredEmissionsOf(e){return[...Object.keys(e?.Signals??{}),...Object.keys(e?.Properties??{}).map(e=>`notify::${e}`)]}function realizeChain(e){if(!h.has(e)){h.add(e);for(let t of declarationsOf(e))realize(t)}}function realize(t){if(t.realized||(t.realized=!0,t.meta===void 0))return;let n=s(e);if(n?.supportsForeignParentClasses===!0){registerRouteD(t,n.registerForeignClass.bind(n));return}installPureJsProperties(t)}function registerRouteD(e,t){let{meta:n,prototype:r,routers:i}=e;if(i!==void 0&&(delete r.connect,delete r.disconnect,delete r.emit,delete r.notify),t(e.klass,n),wrapRouteDAccessors(e),i!==void 0){if(e.giConnect=r.connect,e.giDisconnect=r.disconnect,e.giEmit=r.emit,e.giConnect===void 0||e.giDisconnect===void 0||e.giEmit===void 0)throw Error(`Registering '${n.GTypeName}' over its NativeScript base installed no connect/disconnect/emit, so the widget would answer neither GObject nor this port. ADR 0105 refuses a silent fallback here: the subset is reachable only by calling usePureJsGObjectEngine() from '@gjsify/adwaita-core' before the port loads.`);for(let[e,t]of Object.entries(i))Object.defineProperty(r,e,{configurable:!0,writable:!0,enumerable:!1,value:t});refuseDeclaredNotifyPayload(r,r.notify)}e.routeD=!0}function refuseDeclaredNotifyPayload(e,t){let n=function notify(e,...n){if(typeof e==`object`&&e){let{eventName:t}=e;typeof t==`string`&&refuseDeclaredEvent(this,t,`notify`)}return t.call(this,e,...n)};g.add(n),Object.defineProperty(e,"notify",{configurable:!0,writable:!0,enumerable:!1,value:n})}function wrapRouteDAccessors(e){let{meta:t,prototype:n}=e;for(let[e,r]of Object.entries(t.Properties??{}))if(!(r.kind===`string`&&r.normalize===void 0))for(let i of spellingsOf(e)){let a=Object.getOwnPropertyDescriptor(n,i);if(a?.set===void 0)throw Error(`Registering '${t.GTypeName}' installed no setter for '${i}', so a string from XML would reach the GObject uncoerced. The host chain probably owns that name (see the class's \$foreignSkipped); rename the property.`);let o=a.set;Object.defineProperty(n,i,{...a,set(t){o.call(this,coerceDeclared(e,r,t))}})}}function installPureJsProperties(e){let{meta:t,prototype:n}=e;for(let[e,r]of Object.entries(t.Properties??{})){let t=defaultValueOf(r);for(let i of spellingsOf(e))i in n||Object.defineProperty(n,i,{configurable:!0,enumerable:!1,get(){let n=valuesOf(this);return n.has(e)||n.set(e,t),n.get(e)},set(t){let n=coerceDeclared(e,r,t),i=valuesOf(this);i.has(e)&&i.get(e)===n||(i.set(e,n),emitDeclared(this,`notify::${e}`,[]))}})}installPureNotify(e)}function installPureNotify(e){let{prototype:t}=e,n=t.notify;if(g.has(n))return;let r=function notify(e,...t){if(typeof e!=`string`){if(typeof e==`object`&&e){let{eventName:t}=e;typeof t==`string`&&refuseDeclaredEvent(this,t,`notify`)}return n.call(this,e,...t)}let{canonicalOf:r}=resolvedFor(this.constructor),i=r.get(e);if(i===void 0)throw TypeError(`${this.constructor.name} has no property '${e}' to notify. The declared ones are ${[...r.keys()].join(`, `)||`(none)`}; a NativeScript event is notified with its payload object, not with a name.`);emitDeclared(this,`notify::${i}`,[])};g.add(r),Object.defineProperty(t,"notify",{configurable:!0,writable:!0,enumerable:!1,value:r})}function withSignals(e,a){class WithSignals extends o(e){static emittedSignals=[...i,...declaredEmissionsOf(a)];constructor(...e){super(...e),realizeChain(new.target)}addEventListener(e,t,n,r){refuseDeclaredEvent(this,e,`addEventListener`),super.addEventListener(e,t,n,r)}removeEventListener(e,t,n){refuseDeclaredEvent(this,e,`removeEventListener`),super.removeEventListener(e,t,n)}connect(e,t){let n=resolvedFor(this.constructor),r=giKeyOf(n,e);if(n.routeD&&r!==null){let i=r.startsWith(`notify::`),a=n.giConnect.call(this,r,(n,...r)=>{let a=n;return t(n,i?{eventName:e,object:a}:{eventName:e,object:a,args:r})}),o=d.get(this);return o===void 0&&d.set(this,o=new Set),o.add(a),u+a}if(r!==null)return declaredConnect(this,r,e,t);let listener=e=>{let n=e.accumulator;if(n===void 0){t(this,e);return}n.stopped||n.collect(t(this,e))};return pureConnect(this,e,listener)}disconnect(e){if(e>=u){let t=e-u;if(d.get(this)?.delete(t)!==!0)throw unknownHandler(this,e);resolvedFor(this.constructor).giDisconnect.call(this,t);return}declaredDisconnect(this,e)||pureDisconnect(this,e)}emit(e,...t){let n=resolvedFor(this.constructor),r=giKeyOf(n,e);if(r!==null){n.routeD?n.giEmit.call(this,r,...t):emitDeclared(this,r,t);return}pureEmit(this,e,t)}get_property(e){return n(this,t(e))}set_property(e,n){r(this,t(e),n)}}return declare(WithSignals,a,{connect:WithSignals.prototype.connect,disconnect:WithSignals.prototype.disconnect,emit:WithSignals.prototype.emit}),WithSignals}function withProperties(e,t){class WithProperties extends e{static emittedSignals=declaredEmissionsOf(t)}return declare(WithProperties,t,void 0),WithProperties}function valuesOf(e){let t=f.get(e);return t===void 0&&f.set(e,t=new Map),t}function defaultValueOf(e){return e.default===void 0?e.kind===`string`?``:e.kind===`boolean`?!1:0:e.default}export{emittedSignalsOf,withProperties,withSignals};
@@ -0,0 +1 @@
1
+ import"../_virtual/_rolldown/runtime.js";import{AdwStyleManager as e,setSystemAppearance as t}from"./style-manager.js";import{Application as n}from"@nativescript/core";function asScheme(e){return e===`dark`||e===`light`?e:null}t({current(){try{return asScheme(n.systemAppearance())}catch{return null}},subscribe(e){let handler=t=>{let n=asScheme(t.newValue);n!==null&&e(n)};return n.on(`systemAppearanceChanged`,handler),()=>n.off(`systemAppearanceChanged`,handler)}});export{e as AdwStyleManager};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{ColorScheme as e,StyleManagerBase as t,adwaitaColorScheme as n,onAdwaitaColorSchemeChanged as r,setAdwaitaColorScheme as i}from"@gjsify/adwaita-core";let a=null;const o={dark:()=>n()===`dark`,subscribe:r,force(e){if(e===null){a!==null&&i(a),a=null;return}a??=n(),i(e?`dark`:`light`)}};var AdwStyleManager=class extends t{static GTypeName=`AdwStyleManager`;static ColorScheme=e;static source=o};export{AdwStyleManager,o as nativeScriptStyleSource};
1
+ import"../_virtual/_rolldown/runtime.js";import{ColorScheme as e,StyleManagerBase as t,adwaitaColorScheme as n,onAdwaitaColorSchemeChanged as r,setAdwaitaColorScheme as i}from"@gjsify/adwaita-core";let a=null,o=null,s=!1,c=!1,l=null;function follow(e){!c&&e!==null&&i(e)}function setSystemAppearance(e){o?.(),o=null,a=e,s&&attach()}function attach(){a===null||o!==null||(o=a.subscribe(follow),follow(a.current()))}const u={dark:()=>n()===`dark`,subscribe(e){let t=r(e);return s=!0,attach(),t},force(e){if(e===null){if(!c)return;c=!1;let e=a?.current()??l;l=null,e!==null&&i(e);return}c||(l=n()),c=!0,i(e?`dark`:`light`)},supportsColorSchemes(){return attach(),(a?.current()??null)!==null}};var AdwStyleManager=class extends t{static GTypeName=`AdwStyleManager`;static ColorScheme=e;static source=u};export{AdwStyleManager,u as nativeScriptStyleSource,setSystemAppearance};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{gtypeNameOfInstance as e}from"./gtype-name.js";import{GTK_ALIGN as t,NS_HORIZONTAL_ALIGNMENT as n,NS_VERTICAL_ALIGNMENT as r}from"./gtk-align.js";import{nsAlignment as i}from"./construct-props.js";import{lengthValue as a}from"./ns-length.js";import{xmlBoolean as o}from"./xml-values.js";import{insertActionGroup as s}from"./actions.js";import{focusView as c,isViewFocused as l}from"../window-source.js";import{applyNativeTooltip as u}from"./native-tooltip.js";import{isMapped as d}from"./widget-mapping.js";const f=`notify::hexpand`,p=`notify::vexpand`,m=32767;function laidOut(e,t){let n=viewOf(e);if(n!==null)return n;throw TypeError(`${e.constructor.name} is not laid out by a parent, so it has no '${t}'. The GtkWidget layout properties reach views only; this class extends Observable.`)}function viewOf(e){return`horizontalAlignment`in e?e:null}const h=[0,1,2];function isWidget(e){return typeof e.get_first_child==`function`}function childrenOf(e){let t=[];return e.eachChildView?.(e=>(isWidget(e)?t.push(e):t.push(...childrenOf(e)),!0)),t}function parentOf(e){let t=e.parent??null;for(;t!==null&&!isWidget(t);)t=t.parent??null;return t}function siblingOf(e,t){let n=parentOf(e);if(n===null)return null;let r=childrenOf(n);return r[r.indexOf(e)+t]??null}function alignNick(e,n){if(typeof e==`string`&&Object.hasOwn(t,e))return e;if(typeof e==`number`){let n=Object.keys(t).find(n=>t[n]===e);if(n!==void 0)return n}throw TypeError(`'${String(e)}' is not a Gtk.Align, so it cannot be '${n}'. The members are ${Object.keys(t).join(`, `)}; NativeScript's own alignment words go to ${n===`halign`?`horizontalAlignment`:`verticalAlignment`}.`)}function readAlign(e,t,n){for(let[n,r]of Object.entries(t))if(r===e)return n;return n!==null&&e===`left`?n?`end`:`start`:n!==null&&e===`right`?n?`start`:`end`:`fill`}function marginOf(e,t){let n=typeof e==`string`&&e.trim()!==``?Number(e):e;if(typeof n==`number`&&Number.isInteger(n)&&n>=0&&n<=m)return n;throw TypeError(`'${String(e)}' is not a margin: '${t}' takes an integer from 0 to ${m}.`)}function sizeRequestOf(e,t){let n=typeof e==`string`&&e.trim()!==``?Number(e):e;if(typeof n==`number`&&Number.isInteger(n)&&n>=-1&&n<=2147483647)return n;throw TypeError(`'${String(e)}' is not a size request: '${t}' takes an integer from -1 (unset) upward.`)}function readSizeRequest(e){let t=a(e);return t!==null&&t>0?Math.round(t):-1}const g=new WeakMap,_=new WeakMap,v=new WeakMap,y=new WeakMap;function expandOf(e){let t=y.get(e);return t===void 0&&(t={h:!1,v:!1},y.set(e,t)),t}function withGtkWidgetLayout(t){class WithGtkWidgetLayout extends t{get halign(){let e=viewOf(this);return e===null?`fill`:readAlign(e.horizontalAlignment,n,e.style?.direction===`rtl`)}set halign(e){let t=laidOut(this,`halign`);t.horizontalAlignment=i(alignNick(e,`halign`),`horizontal`)}get valign(){let e=viewOf(this);return e===null?`fill`:readAlign(e.verticalAlignment,r,null)}set valign(e){let t=laidOut(this,`valign`);t.verticalAlignment=i(alignNick(e,`valign`),`vertical`)}get hexpand(){return y.get(this)?.h??!1}set hexpand(e){laidOut(this,`hexpand`);let t=expandOf(this),n=o(e,t.h);n!==t.h&&(t.h=n,this.notify({eventName:f,object:this}))}get vexpand(){return y.get(this)?.v??!1}set vexpand(e){laidOut(this,`vexpand`);let t=expandOf(this),n=o(e,t.v);n!==t.v&&(t.v=n,this.notify({eventName:p,object:this}))}get marginStart(){let e=viewOf(this);return e===null?0:a(e.style?.direction===`rtl`?e.marginRight:e.marginLeft)??0}set marginStart(e){let t=laidOut(this,`marginStart`),n=marginOf(e,`marginStart`);t.style?.direction===`rtl`?t.marginRight=n:t.marginLeft=n}get marginEnd(){let e=viewOf(this);return e===null?0:a(e.style?.direction===`rtl`?e.marginLeft:e.marginRight)??0}set marginEnd(e){let t=laidOut(this,`marginEnd`),n=marginOf(e,`marginEnd`);t.style?.direction===`rtl`?t.marginLeft=n:t.marginRight=n}get visible(){let e=viewOf(this);return e===null?!0:e.visibility===`visible`}set visible(e){let t=laidOut(this,`visible`);t.visibility=o(e,this.visible)?`visible`:`collapse`}get sensitive(){let e=viewOf(this);return e===null?!0:e.isEnabled!==!1}set sensitive(e){let t=laidOut(this,`sensitive`);t.isEnabled=o(e,this.sensitive)}get name(){return g.get(this)??e(this)}set name(e){let t=laidOut(this,`name`),n=g.get(this),r=e??``;r===``?g.delete(this):g.set(this,r),(t.id===void 0||t.id===n)&&(t.id=r===``?void 0:r)}get_visible(){return this.visible}set_visible(e){this.visible=e}get_mapped(){return d(this)}set_direction(e){if(!h.includes(e))throw TypeError(`${e} is not a valid value for enum argument dir`);let t=this.style;t!==void 0&&(t.direction=e===0?``:e===2?`rtl`:`ltr`)}get_direction(){return this.style?.direction===`rtl`?2:1}get_first_child(){return childrenOf(this)[0]??null}get_last_child(){return childrenOf(this).at(-1)??null}get_next_sibling(){return siblingOf(this,1)}get_prev_sibling(){return siblingOf(this,-1)}get_parent(){return parentOf(this)}insert_action_group(e,t){s(this,e,t)}get focusable(){return v.get(this)??!1}set focusable(e){let t=laidOut(this,`focusable`),n=o(e,v.get(this)??!1);v.set(this,n),t.nativeViewProtected?.setFocusable?.(n)}grab_focus(){let e=laidOut(this,`grab_focus`);return c(e),l(e)}get tooltipText(){return _.get(this)??``}set tooltipText(e){let t=laidOut(this,`tooltipText`),n=e??``;(t.accessibilityHint??``)===(_.get(this)??``)&&(t.accessibilityHint=n),_.set(this,n),u(this,n)}get tooltip_text(){return this.tooltipText}set tooltip_text(e){this.tooltipText=e}get_tooltip_text(){return this.tooltipText}set_tooltip_text(e){this.tooltipText=e}get widthRequest(){let e=viewOf(this);return e===null?-1:readSizeRequest(e.minWidth)}set widthRequest(e){let t=laidOut(this,`widthRequest`);t.minWidth=Math.max(0,sizeRequestOf(e,`widthRequest`))}get heightRequest(){let e=viewOf(this);return e===null?-1:readSizeRequest(e.minHeight)}set heightRequest(e){let t=laidOut(this,`heightRequest`);t.minHeight=Math.max(0,sizeRequestOf(e,`heightRequest`))}}return WithGtkWidgetLayout}export{f as NOTIFY_HEXPAND,p as NOTIFY_VEXPAND,withGtkWidgetLayout};
1
+ import"../_virtual/_rolldown/runtime.js";import{gtypeNameOfInstance as e}from"./gtype-name.js";import{GTK_ALIGN as t,NS_HORIZONTAL_ALIGNMENT as n,NS_VERTICAL_ALIGNMENT as r}from"./gtk-align.js";import{nsAlignment as i}from"./construct-props.js";import{lengthValue as a}from"./ns-length.js";import{xmlBoolean as o}from"./xml-values.js";import{insertActionGroup as s}from"./actions.js";import{focusView as c,isViewFocused as l}from"../window-source.js";import{applyNativeTooltip as u}from"./native-tooltip.js";import{isMapped as d}from"./widget-mapping.js";const f=`notify::hexpand`,p=`notify::vexpand`,m=32767;function laidOut(e,t){let n=viewOf(e);if(n!==null)return n;throw TypeError(`${e.constructor.name} is not laid out by a parent, so it has no '${t}'. The GtkWidget layout properties reach views only; this class extends Observable.`)}function viewOf(e){return`horizontalAlignment`in e?e:null}const h=[0,1,2];function isWidget(e){return typeof e.get_first_child==`function`}function childrenOf(e){let t=[];return e.eachChildView?.(e=>(isWidget(e)?t.push(e):t.push(...childrenOf(e)),!0)),t}function parentOf(e){let t=e.parent??null;for(;t!==null&&!isWidget(t);)t=t.parent??null;return t}function siblingOf(e,t){let n=parentOf(e);if(n===null)return null;let r=childrenOf(n);return r[r.indexOf(e)+t]??null}function alignNick(e,n){if(typeof e==`string`&&Object.hasOwn(t,e))return e;if(typeof e==`number`){let n=Object.keys(t).find(n=>t[n]===e);if(n!==void 0)return n}throw TypeError(`'${String(e)}' is not a Gtk.Align, so it cannot be '${n}'. The members are ${Object.keys(t).join(`, `)}; NativeScript's own alignment words go to ${n===`halign`?`horizontalAlignment`:`verticalAlignment`}.`)}function readAlign(e,t,n){for(let[n,r]of Object.entries(t))if(r===e)return n;return n!==null&&e===`left`?n?`end`:`start`:n!==null&&e===`right`?n?`start`:`end`:`fill`}function marginOf(e,t){let n=typeof e==`string`&&e.trim()!==``?Number(e):e;if(typeof n==`number`&&Number.isInteger(n)&&n>=0&&n<=m)return n;throw TypeError(`'${String(e)}' is not a margin: '${t}' takes an integer from 0 to ${m}.`)}function sizeRequestOf(e,t){let n=typeof e==`string`&&e.trim()!==``?Number(e):e;if(typeof n==`number`&&Number.isInteger(n)&&n>=-1&&n<=2147483647)return n;throw TypeError(`'${String(e)}' is not a size request: '${t}' takes an integer from -1 (unset) upward.`)}function readSizeRequest(e){let t=a(e);return t!==null&&t>0?Math.round(t):-1}const g=new WeakMap,_=new WeakMap,v=new WeakMap,y=new WeakMap,b=new WeakMap;function expandOf(e){let t=b.get(e);return t===void 0&&(t={h:!1,v:!1},b.set(e,t)),t}function withGtkWidgetLayout(t){class WithGtkWidgetLayout extends t{get halign(){let e=viewOf(this);return e===null?`fill`:readAlign(e.horizontalAlignment,n,e.style?.direction===`rtl`)}set halign(e){let t=laidOut(this,`halign`);t.horizontalAlignment=i(alignNick(e,`halign`),`horizontal`)}get valign(){let e=viewOf(this);return e===null?`fill`:readAlign(e.verticalAlignment,r,null)}set valign(e){let t=laidOut(this,`valign`);t.verticalAlignment=i(alignNick(e,`valign`),`vertical`)}get hexpand(){return b.get(this)?.h??!1}set hexpand(e){laidOut(this,`hexpand`);let t=expandOf(this),n=o(e,t.h);n!==t.h&&(t.h=n,this.notify({eventName:f,object:this}))}get vexpand(){return b.get(this)?.v??!1}set vexpand(e){laidOut(this,`vexpand`);let t=expandOf(this),n=o(e,t.v);n!==t.v&&(t.v=n,this.notify({eventName:p,object:this}))}get marginStart(){let e=viewOf(this);return e===null?0:a(e.style?.direction===`rtl`?e.marginRight:e.marginLeft)??0}set marginStart(e){let t=laidOut(this,`marginStart`),n=marginOf(e,`marginStart`);t.style?.direction===`rtl`?t.marginRight=n:t.marginLeft=n}get marginEnd(){let e=viewOf(this);return e===null?0:a(e.style?.direction===`rtl`?e.marginLeft:e.marginRight)??0}set marginEnd(e){let t=laidOut(this,`marginEnd`),n=marginOf(e,`marginEnd`);t.style?.direction===`rtl`?t.marginLeft=n:t.marginRight=n}get visible(){let e=viewOf(this);return e===null?!0:e.visibility===`visible`}set visible(e){let t=laidOut(this,`visible`);t.visibility=o(e,this.visible)?`visible`:`collapse`}get sensitive(){let e=viewOf(this);return e===null?!0:e.isEnabled!==!1}set sensitive(e){let t=laidOut(this,`sensitive`);t.isEnabled=o(e,this.sensitive)}get name(){return g.get(this)??e(this)}set name(e){let t=laidOut(this,`name`),n=g.get(this),r=e??``;r===``?g.delete(this):g.set(this,r),(t.id===void 0||t.id===n)&&(t.id=r===``?void 0:r)}get_visible(){return this.visible}set_visible(e){this.visible=e}get_mapped(){return d(this)}set_direction(e){if(!h.includes(e))throw TypeError(`${e} is not a valid value for enum argument dir`);let t=this.style;t!==void 0&&(t.direction=e===0?``:e===2?`rtl`:`ltr`)}get_direction(){return this.style?.direction===`rtl`?2:1}get_first_child(){return childrenOf(this)[0]??null}get_last_child(){return childrenOf(this).at(-1)??null}get_next_sibling(){return siblingOf(this,1)}get_prev_sibling(){return siblingOf(this,-1)}get_parent(){return parentOf(this)}insert_action_group(e,t){s(this,e,t)}get focusable(){return v.get(this)??!1}set focusable(e){let t=laidOut(this,`focusable`),n=o(e,v.get(this)??!1);v.set(this,n),t.nativeViewProtected?.setFocusable?.(n)}get focusOnClick(){return y.get(this)??!0}set focusOnClick(e){y.set(this,o(e,y.get(this)??!0))}get_focus_on_click(){return this.focusOnClick}set_focus_on_click(e){this.focusOnClick=e}grab_focus(){let e=laidOut(this,`grab_focus`);return c(e),l(e)}get tooltipText(){return _.get(this)??``}set tooltipText(e){let t=laidOut(this,`tooltipText`),n=e??``;(t.accessibilityHint??``)===(_.get(this)??``)&&(t.accessibilityHint=n),_.set(this,n),u(this,n)}get tooltip_text(){return this.tooltipText}set tooltip_text(e){this.tooltipText=e}get_tooltip_text(){return this.tooltipText}set_tooltip_text(e){this.tooltipText=e}get widthRequest(){let e=viewOf(this);return e===null?-1:readSizeRequest(e.minWidth)}set widthRequest(e){let t=laidOut(this,`widthRequest`);t.minWidth=Math.max(0,sizeRequestOf(e,`widthRequest`))}get heightRequest(){let e=viewOf(this);return e===null?-1:readSizeRequest(e.minHeight)}set heightRequest(e){let t=laidOut(this,`heightRequest`);t.minHeight=Math.max(0,sizeRequestOf(e,`heightRequest`))}}return WithGtkWidgetLayout}export{f as NOTIFY_HEXPAND,p as NOTIFY_VEXPAND,withGtkWidgetLayout};
@@ -1 +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
+ 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.`)}const r=450,i=360,a=24;function dialogCardLayout(e,t,n,r){let i=e!==null&&(e.width<=450||e.height<=360),a=t===`bottom-sheet`||t===`auto`&&i,fit=(e,t)=>e<=0?`auto`:t===void 0?e:Math.min(e,Math.max(0,t-48));return{sheet:a,width:a?`auto`:fit(n,e?.width),height:fit(r,e?.height)}}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,a as DIALOG_CARD_MARGIN,i as DIALOG_LANDSCAPE_MAX_HEIGHT,r as DIALOG_PORTRAIT_MAX_WIDTH,dialogCardLayout,dialogPresentationMode,findDialogHost,surfaceSize};
@@ -0,0 +1 @@
1
+ export declare const AdwAboutDialogCreditsNsTest: () => Promise<void>;
@@ -0,0 +1 @@
1
+ export declare const AdwAboutDialogLinksNsTest: () => Promise<void>;
@@ -0,0 +1,2 @@
1
+ export declare const AdwActionRowPropertiesNsTest: () => Promise<void>;
2
+ export default AdwActionRowPropertiesNsTest;