@gjsify/adwaita-nativescript 0.64.11 → 0.64.12-next.280

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 (92) hide show
  1. package/lib/esm/index.js +1 -1
  2. package/lib/esm/namespace/adw.js +1 -1
  3. package/lib/esm/namespace/gdk.js +1 -1
  4. package/lib/esm/namespace/graphene.js +1 -0
  5. package/lib/esm/namespace/gtk.js +1 -1
  6. package/lib/esm/widgets/adw-alert-dialog.js +1 -1
  7. package/lib/esm/widgets/adw-expander-row.js +1 -1
  8. package/lib/esm/widgets/adw-overlay-split-view.js +1 -1
  9. package/lib/esm/widgets/adw-view-stack.js +1 -1
  10. package/lib/esm/widgets/gtk-application-window.js +1 -0
  11. package/lib/esm/widgets/gtk-button.js +1 -1
  12. package/lib/esm/widgets/gtk-menu-button.js +1 -1
  13. package/lib/esm/widgets/gtk-scrolled-window.js +1 -1
  14. package/lib/esm/widgets/gtk-stack.js +1 -1
  15. package/lib/esm/widgets/gtk-toggle-button.js +1 -1
  16. package/lib/esm/widgets/gtk-window.js +1 -1
  17. package/lib/esm/widgets/index.js +1 -1
  18. package/lib/esm/widgets/signals.js +1 -1
  19. package/lib/esm/widgets/style-manager-host.js +1 -1
  20. package/lib/esm/widgets/style-manager.js +1 -1
  21. package/lib/esm/widgets/system-accent.js +1 -0
  22. package/lib/esm/widgets/widget-layout.js +1 -1
  23. package/lib/types/expander-row-properties.spec.d.ts +2 -0
  24. package/lib/types/gtk-button-clicked.spec.d.ts +1 -0
  25. package/lib/types/index.d.ts +3 -2
  26. package/lib/types/namespace/adw.d.ts +1 -1
  27. package/lib/types/namespace/gdk.d.ts +1 -0
  28. package/lib/types/namespace/graphene.d.ts +1 -0
  29. package/lib/types/namespace/gtk.d.ts +1 -0
  30. package/lib/types/system-accent.spec.d.ts +2 -0
  31. package/lib/types/testing/ns-core.d.mts +9 -9
  32. package/lib/types/widgets/adw-about-dialog.d.ts +3 -0
  33. package/lib/types/widgets/adw-action-row.d.ts +3 -0
  34. package/lib/types/widgets/adw-alert-dialog.d.ts +3 -0
  35. package/lib/types/widgets/adw-application-window.d.ts +7 -0
  36. package/lib/types/widgets/adw-avatar.d.ts +3 -0
  37. package/lib/types/widgets/adw-banner.d.ts +3 -0
  38. package/lib/types/widgets/adw-bottom-sheet.d.ts +3 -0
  39. package/lib/types/widgets/adw-button-content.d.ts +3 -0
  40. package/lib/types/widgets/adw-carousel.d.ts +3 -0
  41. package/lib/types/widgets/adw-clamp.d.ts +3 -0
  42. package/lib/types/widgets/adw-data-grid.d.ts +3 -0
  43. package/lib/types/widgets/adw-expander-row.d.ts +93 -16
  44. package/lib/types/widgets/adw-header-bar.d.ts +3 -0
  45. package/lib/types/widgets/adw-image-button.d.ts +3 -0
  46. package/lib/types/widgets/adw-navigation-page.d.ts +3 -0
  47. package/lib/types/widgets/adw-navigation-view.d.ts +3 -0
  48. package/lib/types/widgets/adw-overlay-split-view.d.ts +5 -0
  49. package/lib/types/widgets/adw-preferences-group.d.ts +3 -0
  50. package/lib/types/widgets/adw-preferences-page.d.ts +3 -0
  51. package/lib/types/widgets/adw-shortcut-label.d.ts +3 -0
  52. package/lib/types/widgets/adw-sidebar.d.ts +3 -0
  53. package/lib/types/widgets/adw-slider-row.d.ts +3 -0
  54. package/lib/types/widgets/adw-spinner.d.ts +3 -0
  55. package/lib/types/widgets/adw-split-button.d.ts +3 -0
  56. package/lib/types/widgets/adw-status-page.d.ts +3 -0
  57. package/lib/types/widgets/adw-tab-view.d.ts +3 -0
  58. package/lib/types/widgets/adw-toast-overlay.d.ts +3 -0
  59. package/lib/types/widgets/adw-toggle-group.d.ts +3 -0
  60. package/lib/types/widgets/adw-toggle.d.ts +3 -0
  61. package/lib/types/widgets/adw-toolbar-view.d.ts +3 -0
  62. package/lib/types/widgets/adw-view-stack.d.ts +13 -0
  63. package/lib/types/widgets/adw-view-switcher-bar.d.ts +3 -0
  64. package/lib/types/widgets/adw-window-title.d.ts +3 -0
  65. package/lib/types/widgets/adw-wrap-box.d.ts +3 -0
  66. package/lib/types/widgets/carousel-indicator-base.d.ts +3 -0
  67. package/lib/types/widgets/gtk-action-bar.d.ts +3 -0
  68. package/lib/types/widgets/gtk-application-window.d.ts +13 -0
  69. package/lib/types/widgets/gtk-button.d.ts +3 -2
  70. package/lib/types/widgets/gtk-drop-down.d.ts +3 -0
  71. package/lib/types/widgets/gtk-entry.d.ts +3 -0
  72. package/lib/types/widgets/gtk-image.d.ts +3 -0
  73. package/lib/types/widgets/gtk-label.d.ts +3 -0
  74. package/lib/types/widgets/gtk-menu-button.d.ts +5 -0
  75. package/lib/types/widgets/gtk-popover-menu.d.ts +3 -0
  76. package/lib/types/widgets/gtk-scrolled-window.d.ts +11 -1
  77. package/lib/types/widgets/gtk-stack.d.ts +11 -0
  78. package/lib/types/widgets/gtk-text-view.d.ts +3 -0
  79. package/lib/types/widgets/gtk-window.d.ts +7 -0
  80. package/lib/types/widgets/index.d.ts +2 -2
  81. package/lib/types/widgets/signals.d.ts +9 -1
  82. package/lib/types/widgets/split-view-base.d.ts +3 -0
  83. package/lib/types/widgets/stack-page.d.ts +3 -0
  84. package/lib/types/widgets/style-manager.d.ts +7 -2
  85. package/lib/types/widgets/styled-layout-base.d.ts +3 -0
  86. package/lib/types/widgets/system-accent.d.ts +22 -0
  87. package/lib/types/widgets/view-stack-page.d.ts +3 -0
  88. package/lib/types/widgets/view-switcher-base.d.ts +3 -0
  89. package/lib/types/widgets/widget-layout.d.ts +7 -1
  90. package/package.json +14 -13
  91. package/src/testing/ns-core.mts +21 -15
  92. package/src/theme/adwaita.css +25 -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{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_ACTIVATES_DEFAULT as se,NOTIFY_EDITABLE as ce,NOTIFY_MAX_LENGTH as le,NOTIFY_SHOW_APPLY_BUTTON as ue,NOTIFY_TEXT as de,NOTIFY_TEXT_LENGTH as fe,SIGNAL_APPLY as pe,SIGNAL_ENTRY_ACTIVATED as me}from"./widgets/adw-entry-row.js";import{ExpanderState as he,NOTIFY_EXPANDED as ge}from"./widgets/adw-expander-row.js";import{NOTIFY_VISIBLE_CHILD as _e}from"./widgets/adw-view-stack.js";import{AdwViewSwitcherBase as ve,NOTIFY_SELECTED as ye}from"./widgets/view-switcher-base.js";import{NsNavigationSplitViewState as be,NsOverlaySplitViewState as xe,splitViewColumns as Se}from"./widgets/split-view-state.js";import{AdwSplitViewBase as Ce,NOTIFY_SHOW_SIDEBAR as we}from"./widgets/split-view-base.js";import{NOTIFY_VISIBLE_PAGE as Te}from"./widgets/navigation-stack.js";import{CLOSED as Ee}from"./widgets/adw-preferences-dialog.js";import{SHORTCUT_LABEL_CAP_TEXT_CLASS as De,SHORTCUT_LABEL_CLASS as Oe,SHORTCUT_LABEL_DIMMED_CLASS as ke,SHORTCUT_LABEL_DISABLED_CLASS as Ae,SHORTCUT_LABEL_KEYCAP_CLASS as je,SHORTCUT_LABEL_KEYS_CLASS as Me,SHORTCUT_LABEL_SIDE_CLASS as Ne,SHORTCUT_LABEL_SPACED_CLASS as Pe,shortcutLabelDirection as Fe,shortcutLabelPlatform as Q,shortcutLabelRenderPlan as Ie}from"./widgets/shortcut-label.js";import{NOTIFY_SELECTED as Le}from"./widgets/adw-sidebar.js";import{NOTIFY_VALUE as Re,SpinState as ze}from"./widgets/adw-spin-row.js";import{CLICKED as Be,MENU_TAPPED as Ve}from"./widgets/adw-split-button.js";import{NOTIFY_ACTIVE as He}from"./widgets/adw-switch-row.js";import{AdwToast as Ue,AdwToastQueue as We,DEFAULT_TOAST_TIMEOUT as Ge}from"./widgets/adw-toast-overlay.js";import{NOTIFY_SELECTED as Ke,ToggleGroupState as qe}from"./widgets/adw-toggle-group.js";import{adw_exports as Je}from"./namespace/adw.js";import{DEFAULT_BOX_SPACING as Ye,boxChildTrack as Xe,boxSpacingChanges as Ze,boxTrackPlan as Qe,normalizeBoxSpacing as $e}from"./widgets/box-layout.js";import{buttonSlotAfterWrite as et,buttonSlotDetaches as tt}from"./widgets/button-slot.js";import{GTK_BUTTON_CLICKED as nt,GTK_BUTTON_LABEL_CLASS as rt}from"./widgets/gtk-button.js";import{NOTIFY_SELECTED as it}from"./widgets/gtk-drop-down.js";import{GTK_CHECK_BUTTON_ACTIVATE as at,GTK_CHECK_BUTTON_CHECKED_CLASS as ot,GTK_CHECK_BUTTON_INCONSISTENT_CLASS as st,GTK_CHECK_BUTTON_TOGGLED as ct,NOTIFY_CHECK_ACTIVE as lt}from"./widgets/gtk-check-button.js";import{DRAWING_AREA_REFUSAL as ut}from"./widgets/gtk-drawing-area.js";import{ACTIVATE as dt,NOTIFY_TEXT as ft}from"./widgets/gtk-entry.js";import{LIST_BOX_ROW_ACTIVATED as pt,LIST_BOX_ROW_SELECTED as mt}from"./widgets/gtk-list-box.js";import{MENU_ITEM_ACTIVATED as ht}from"./widgets/gtk-menu-button.js";import{NOTIFY_REVEAL_CHILD as gt}from"./widgets/gtk-revealer.js";import{NOTIFY_STACK_VISIBLE_CHILD as _t,NOTIFY_STACK_VISIBLE_CHILD_NAME as vt}from"./widgets/gtk-stack.js";import{GTK_WRAP_MODES as yt,NOTIFY_TEXT_VIEW_TEXT as bt}from"./widgets/gtk-text-view.js";import{GTK_TOGGLE_BUTTON_CHECKED_CLASS as xt,GTK_TOGGLE_BUTTON_TOGGLED as St,NOTIFY_TOGGLE_ACTIVE as Ct}from"./widgets/gtk-toggle-button.js";import{gtk_exports as wt}from"./namespace/gtk.js";import{ADWAITA_SANS_FONT_FAMILY as Tt,ADWAITA_SANS_TTF_FILES as Et,adwaitaFontInstallInstructions as Dt,hasAdwaitaSans as Ot}from"./fonts.js";import{AdwSliderRow as kt,NOTIFY_SLIDER_VALUE as At}from"./widgets/adw-slider-row.js";import{DATA_GRID_HEADER_CELL_CLASS as jt,DATA_GRID_HEADER_ROW_CLASS as Mt,DATA_GRID_SECTION_CELL_CLASS as Nt,dataGridCellClass as Pt,dataGridItemSpec as Ft,dataGridRowClass as It,dataGridShapeKey as Lt,dataGridTracksKey as Rt,parseDataGridWidth as zt}from"./widgets/data-grid-model.js";import{AdwDataGrid as Bt,ROW_ACTIVATED as Vt}from"./widgets/adw-data-grid.js";import{ADWAITA_NS_ACCENT_RULES as Ht,adwaitaNsAccentColor as Ut,adwaitaNsAccentCss as Wt}from"./widgets/accent-theme.js";import{applyAdwaitaNsAccent as Gt,clearAdwaitaNsAccent as Kt}from"./widgets/adw-accent.js";import{padForSystemInsets as qt,padSheetForSystemInsets as Jt}from"./widgets/system-insets.js";import{labelDisplayText as Yt,labelMarkupIsUnparseable as Xt,registerAdwaitaElements as $}from"./widgets/index.js";import{gio_exports as Zt}from"./namespace/gio.js";import{gdk_exports as Qt}from"./namespace/gdk.js";import{glib_exports as $t}from"./namespace/glib.js";import{assertNativeScript as en,assertNativeScript as tn,isAndroid as nn,isIOS as rn,isNativeScript as an}from"@gjsify/native-platform";function registerAdwaita(){tn(),$()}export{I as ABOUT_CLOSED,L as ACTIVATED,w as ADWAITA_ICON_GRID,Ht as ADWAITA_NS_ACCENT_RULES,Tt as ADWAITA_SANS_FONT_FAMILY,Et as ADWAITA_SANS_TTF_FILES,re as ADW_DIALOG_CLOSED,ie as ADW_DIALOG_CLOSE_ATTEMPT,B as AVATAR_DEFAULT_ICON,Je as Adw,R as AdwAlertResponses,ee as AdwBreakpoint,Bt as AdwDataGrid,ae as AdwImageButton,kt as AdwSliderRow,Ce as AdwSplitViewBase,Ue as AdwToast,We as AdwToastQueue,ve as AdwViewSwitcherBase,W as BUTTON_CLICKED,Be as CLICKED,X as ComboState,jt as DATA_GRID_HEADER_CELL_CLASS,Mt as DATA_GRID_HEADER_ROW_CLASS,Nt as DATA_GRID_SECTION_CELL_CLASS,V as DEFAULT_AVATAR_SIZE,Ye 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,Ge as DEFAULT_TOAST_TIMEOUT,ut as DRAWING_AREA_REFUSAL,r as ENGINE_TARGET,dt as ENTRY_ACTIVATE,he as ExpanderState,$t as GLib,i as GTK_ALIGN,nt as GTK_BUTTON_CLICKED,rt as GTK_BUTTON_LABEL_CLASS,at as GTK_CHECK_BUTTON_ACTIVATE,ot as GTK_CHECK_BUTTON_CHECKED_CLASS,st as GTK_CHECK_BUTTON_INCONSISTENT_CLASS,ct as GTK_CHECK_BUTTON_TOGGLED,o as GTK_ICON_SIZE_NICKS,s as GTK_ICON_SIZE_PIXELS,xt as GTK_TOGGLE_BUTTON_CHECKED_CLASS,St as GTK_TOGGLE_BUTTON_TOGGLED,yt as GTK_WRAP_MODES,Qt as Gdk,Zt as Gio,wt as Gtk,k as ICON_FALLBACK_NAME,pt as LIST_BOX_ROW_ACTIVATED,mt as LIST_BOX_ROW_SELECTED,ht as MENU_ITEM_ACTIVATED,Ve as MENU_TAPPED,se as NOTIFY_ACTIVATES_DEFAULT,He as NOTIFY_ACTIVE,lt as NOTIFY_CHECK_ACTIVE,it as NOTIFY_DROP_DOWN_SELECTED,ce as NOTIFY_EDITABLE,ft as NOTIFY_ENTRY_TEXT,ge as NOTIFY_EXPANDED,h as NOTIFY_HEXPAND,le as NOTIFY_MAX_LENGTH,G as NOTIFY_OPEN,Y as NOTIFY_POSITION,gt as NOTIFY_REVEAL_CHILD,Z as NOTIFY_SELECTED,ue as NOTIFY_SHOW_APPLY_BUTTON,we as NOTIFY_SHOW_SIDEBAR,Le as NOTIFY_SIDEBAR_SELECTED,At as NOTIFY_SLIDER_VALUE,_t as NOTIFY_STACK_VISIBLE_CHILD,vt as NOTIFY_STACK_VISIBLE_CHILD_NAME,de as NOTIFY_TEXT,fe as NOTIFY_TEXT_LENGTH,bt as NOTIFY_TEXT_VIEW_TEXT,Ct as NOTIFY_TOGGLE_ACTIVE,Ke as NOTIFY_TOGGLE_SELECTED,Re as NOTIFY_VALUE,g as NOTIFY_VEXPAND,ye as NOTIFY_VIEW_SELECTED,_e as NOTIFY_VISIBLE_CHILD,Te as NOTIFY_VISIBLE_PAGE,be as NsNavigationSplitViewState,xe as NsOverlaySplitViewState,c as PIXEL_SIZE_UNSET,Ee as PREFERENCES_CLOSED,Vt as ROW_ACTIVATED,De as SHORTCUT_LABEL_CAP_TEXT_CLASS,Oe as SHORTCUT_LABEL_CLASS,ke as SHORTCUT_LABEL_DIMMED_CLASS,Ae as SHORTCUT_LABEL_DISABLED_CLASS,je as SHORTCUT_LABEL_KEYCAP_CLASS,Me as SHORTCUT_LABEL_KEYS_CLASS,Ne as SHORTCUT_LABEL_SIDE_CLASS,Pe as SHORTCUT_LABEL_SPACED_CLASS,pe as SIGNAL_APPLY,me as SIGNAL_ENTRY_ACTIVATED,ze as SpinState,qe as ToggleGroupState,f as activateWidgetAction,te as addBreakpoints,v as adwaitaColorScheme,Dt as adwaitaFontInstallInstructions,Ut as adwaitaNsAccentColor,Wt as adwaitaNsAccentCss,Gt as applyAdwaitaNsAccent,u as applyConstructProps,en as assertNativeScript,K as attachRowPressFeedback,z as avatarInitials,q as bottomSheetPanel,Xe as boxChildTrack,Ze as boxSpacingChanges,Qe as boxTrackPlan,et as buttonSlotAfterWrite,tt as buttonSlotDetaches,Kt as clearAdwaitaNsAccent,A as compiledIconNames,Pt as dataGridCellClass,Ft as dataGridItemSpec,It as dataGridRowClass,Lt as dataGridShapeKey,Rt as dataGridTracksKey,ne as evaluateBreakpointCondition,D as extractIconPaths,O as extractPathData,p as findActionGroup,Ot as hasAdwaitaSans,j as iconValueKind,m as insertActionGroup,nn as isAndroid,l as isGtkIconSizeNick,rn as isIOS,M as isIconAvailable,an as isNativeScript,y as isThemeIconColor,Yt as labelDisplayText,Xt as labelMarkupIsUnparseable,$e as normalizeBoxSpacing,d as nsAlignment,e as observeViewSize,t as observeWindowSize,b as onAdwaitaColorSchemeChanged,qt as padForSystemInsets,Jt as padSheetForSystemInsets,n as parseBreakpointCondition,zt as parseDataGridWidth,registerAdwaita,$ as registerAdwaitaElements,P as renderSymbolicIcon,N as resolveIconSource,x as setAdwaitaColorScheme,Fe as shortcutLabelDirection,Q as shortcutLabelPlatform,Ie as shortcutLabelRenderPlan,Se as splitViewColumns,S as themeIconColor,C as toggleAdwaitaColorScheme,_ 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_ACTIVATES_DEFAULT as se,NOTIFY_EDITABLE as ce,NOTIFY_MAX_LENGTH as le,NOTIFY_SHOW_APPLY_BUTTON as ue,NOTIFY_TEXT as de,NOTIFY_TEXT_LENGTH as fe,SIGNAL_APPLY as pe,SIGNAL_ENTRY_ACTIVATED as me}from"./widgets/adw-entry-row.js";import{NOTIFY_ENABLE_EXPANSION as he,NOTIFY_EXPANDED as ge,NOTIFY_SHOW_ENABLE_SWITCH as _e,NS_EXPANDER_ARROW_DISABLED_OPACITY as ve}from"./widgets/adw-expander-row.js";import{NOTIFY_VISIBLE_CHILD as ye}from"./widgets/adw-view-stack.js";import{AdwViewSwitcherBase as be,NOTIFY_SELECTED as xe}from"./widgets/view-switcher-base.js";import{NsNavigationSplitViewState as Se,NsOverlaySplitViewState as Ce,splitViewColumns as we}from"./widgets/split-view-state.js";import{AdwSplitViewBase as Te,NOTIFY_SHOW_SIDEBAR as Ee}from"./widgets/split-view-base.js";import{NOTIFY_VISIBLE_PAGE as De}from"./widgets/navigation-stack.js";import{CLOSED as Oe}from"./widgets/adw-preferences-dialog.js";import{SHORTCUT_LABEL_CAP_TEXT_CLASS as ke,SHORTCUT_LABEL_CLASS as Ae,SHORTCUT_LABEL_DIMMED_CLASS as je,SHORTCUT_LABEL_DISABLED_CLASS as Me,SHORTCUT_LABEL_KEYCAP_CLASS as Ne,SHORTCUT_LABEL_KEYS_CLASS as Pe,SHORTCUT_LABEL_SIDE_CLASS as Fe,SHORTCUT_LABEL_SPACED_CLASS as Ie,shortcutLabelDirection as Le,shortcutLabelPlatform as Re,shortcutLabelRenderPlan as ze}from"./widgets/shortcut-label.js";import{NOTIFY_SELECTED as Q}from"./widgets/adw-sidebar.js";import{NOTIFY_VALUE as Be,SpinState as Ve}from"./widgets/adw-spin-row.js";import{CLICKED as He,MENU_TAPPED as Ue}from"./widgets/adw-split-button.js";import{NOTIFY_ACTIVE as We}from"./widgets/adw-switch-row.js";import{AdwToast as Ge,AdwToastQueue as Ke,DEFAULT_TOAST_TIMEOUT as qe}from"./widgets/adw-toast-overlay.js";import{NOTIFY_SELECTED as Je,ToggleGroupState as Ye}from"./widgets/adw-toggle-group.js";import{ADWAITA_NS_ACCENT_RULES as Xe,adwaitaNsAccentColor as Ze,adwaitaNsAccentCss as Qe}from"./widgets/accent-theme.js";import{applyAdwaitaNsAccent as $e,clearAdwaitaNsAccent as et}from"./widgets/adw-accent.js";import{adw_exports as tt}from"./namespace/adw.js";import{DEFAULT_BOX_SPACING as nt,boxChildTrack as rt,boxSpacingChanges as it,boxTrackPlan as at,normalizeBoxSpacing as ot}from"./widgets/box-layout.js";import{buttonSlotAfterWrite as st,buttonSlotDetaches as ct}from"./widgets/button-slot.js";import{GTK_BUTTON_CLICKED as lt,GTK_BUTTON_LABEL_CLASS as ut}from"./widgets/gtk-button.js";import{NOTIFY_SELECTED as dt}from"./widgets/gtk-drop-down.js";import{GTK_CHECK_BUTTON_ACTIVATE as ft,GTK_CHECK_BUTTON_CHECKED_CLASS as pt,GTK_CHECK_BUTTON_INCONSISTENT_CLASS as mt,GTK_CHECK_BUTTON_TOGGLED as ht,NOTIFY_CHECK_ACTIVE as gt}from"./widgets/gtk-check-button.js";import{DRAWING_AREA_REFUSAL as _t}from"./widgets/gtk-drawing-area.js";import{ACTIVATE as vt,NOTIFY_TEXT as yt}from"./widgets/gtk-entry.js";import{LIST_BOX_ROW_ACTIVATED as bt,LIST_BOX_ROW_SELECTED as xt}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 wt,NOTIFY_STACK_VISIBLE_CHILD_NAME as Tt}from"./widgets/gtk-stack.js";import{GTK_WRAP_MODES as Et,NOTIFY_TEXT_VIEW_TEXT as Dt}from"./widgets/gtk-text-view.js";import{GTK_TOGGLE_BUTTON_CHECKED_CLASS as Ot,GTK_TOGGLE_BUTTON_TOGGLED as kt,NOTIFY_TOGGLE_ACTIVE as At}from"./widgets/gtk-toggle-button.js";import{gtk_exports as jt}from"./namespace/gtk.js";import{ADWAITA_SANS_FONT_FAMILY as Mt,ADWAITA_SANS_TTF_FILES as Nt,adwaitaFontInstallInstructions as Pt,hasAdwaitaSans as Ft}from"./fonts.js";import{AdwSliderRow as It,NOTIFY_SLIDER_VALUE as Lt}from"./widgets/adw-slider-row.js";import{DATA_GRID_HEADER_CELL_CLASS as Rt,DATA_GRID_HEADER_ROW_CLASS as zt,DATA_GRID_SECTION_CELL_CLASS as Bt,dataGridCellClass as Vt,dataGridItemSpec as Ht,dataGridRowClass as Ut,dataGridShapeKey as Wt,dataGridTracksKey as Gt,parseDataGridWidth as Kt}from"./widgets/data-grid-model.js";import{AdwDataGrid as qt,ROW_ACTIVATED as Jt}from"./widgets/adw-data-grid.js";import{padForSystemInsets as Yt,padSheetForSystemInsets as Xt}from"./widgets/system-insets.js";import{labelDisplayText as Zt,labelMarkupIsUnparseable as Qt,registerAdwaitaElements as $}from"./widgets/index.js";import{gio_exports as $t}from"./namespace/gio.js";import{gdk_exports as en}from"./namespace/gdk.js";import{graphene_exports as tn}from"./namespace/graphene.js";import{glib_exports as nn}from"./namespace/glib.js";import{assertNativeScript as rn,assertNativeScript as an,isAndroid as on,isIOS as sn,isNativeScript as cn}from"@gjsify/native-platform";function registerAdwaita(){an(),$()}export{I as ABOUT_CLOSED,L as ACTIVATED,w as ADWAITA_ICON_GRID,Xe as ADWAITA_NS_ACCENT_RULES,Mt as ADWAITA_SANS_FONT_FAMILY,Nt as ADWAITA_SANS_TTF_FILES,re as ADW_DIALOG_CLOSED,ie as ADW_DIALOG_CLOSE_ATTEMPT,B as AVATAR_DEFAULT_ICON,tt as Adw,R as AdwAlertResponses,ee as AdwBreakpoint,qt as AdwDataGrid,ae as AdwImageButton,It as AdwSliderRow,Te as AdwSplitViewBase,Ge as AdwToast,Ke as AdwToastQueue,be as AdwViewSwitcherBase,W as BUTTON_CLICKED,He as CLICKED,X as ComboState,Rt as DATA_GRID_HEADER_CELL_CLASS,zt as DATA_GRID_HEADER_ROW_CLASS,Bt as DATA_GRID_SECTION_CELL_CLASS,V as DEFAULT_AVATAR_SIZE,nt 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,qe as DEFAULT_TOAST_TIMEOUT,_t as DRAWING_AREA_REFUSAL,r as ENGINE_TARGET,vt as ENTRY_ACTIVATE,nn as GLib,i as GTK_ALIGN,lt as GTK_BUTTON_CLICKED,ut as GTK_BUTTON_LABEL_CLASS,ft as GTK_CHECK_BUTTON_ACTIVATE,pt as GTK_CHECK_BUTTON_CHECKED_CLASS,mt as GTK_CHECK_BUTTON_INCONSISTENT_CLASS,ht as GTK_CHECK_BUTTON_TOGGLED,o as GTK_ICON_SIZE_NICKS,s as GTK_ICON_SIZE_PIXELS,Ot as GTK_TOGGLE_BUTTON_CHECKED_CLASS,kt as GTK_TOGGLE_BUTTON_TOGGLED,Et as GTK_WRAP_MODES,en as Gdk,$t as Gio,tn as Graphene,jt as Gtk,k as ICON_FALLBACK_NAME,bt as LIST_BOX_ROW_ACTIVATED,xt as LIST_BOX_ROW_SELECTED,St as MENU_ITEM_ACTIVATED,Ue as MENU_TAPPED,se as NOTIFY_ACTIVATES_DEFAULT,We as NOTIFY_ACTIVE,gt as NOTIFY_CHECK_ACTIVE,dt as NOTIFY_DROP_DOWN_SELECTED,ce as NOTIFY_EDITABLE,he as NOTIFY_ENABLE_EXPANSION,yt as NOTIFY_ENTRY_TEXT,ge as NOTIFY_EXPANDED,h as NOTIFY_HEXPAND,le as NOTIFY_MAX_LENGTH,G as NOTIFY_OPEN,Y as NOTIFY_POSITION,Ct as NOTIFY_REVEAL_CHILD,Z as NOTIFY_SELECTED,ue as NOTIFY_SHOW_APPLY_BUTTON,_e as NOTIFY_SHOW_ENABLE_SWITCH,Ee as NOTIFY_SHOW_SIDEBAR,Q as NOTIFY_SIDEBAR_SELECTED,Lt as NOTIFY_SLIDER_VALUE,wt as NOTIFY_STACK_VISIBLE_CHILD,Tt as NOTIFY_STACK_VISIBLE_CHILD_NAME,de as NOTIFY_TEXT,fe as NOTIFY_TEXT_LENGTH,Dt as NOTIFY_TEXT_VIEW_TEXT,At as NOTIFY_TOGGLE_ACTIVE,Je as NOTIFY_TOGGLE_SELECTED,Be as NOTIFY_VALUE,g as NOTIFY_VEXPAND,xe as NOTIFY_VIEW_SELECTED,ye as NOTIFY_VISIBLE_CHILD,De as NOTIFY_VISIBLE_PAGE,ve as NS_EXPANDER_ARROW_DISABLED_OPACITY,Se as NsNavigationSplitViewState,Ce as NsOverlaySplitViewState,c as PIXEL_SIZE_UNSET,Oe as PREFERENCES_CLOSED,Jt as ROW_ACTIVATED,ke as SHORTCUT_LABEL_CAP_TEXT_CLASS,Ae as SHORTCUT_LABEL_CLASS,je as SHORTCUT_LABEL_DIMMED_CLASS,Me as SHORTCUT_LABEL_DISABLED_CLASS,Ne as SHORTCUT_LABEL_KEYCAP_CLASS,Pe as SHORTCUT_LABEL_KEYS_CLASS,Fe as SHORTCUT_LABEL_SIDE_CLASS,Ie as SHORTCUT_LABEL_SPACED_CLASS,pe as SIGNAL_APPLY,me as SIGNAL_ENTRY_ACTIVATED,Ve as SpinState,Ye as ToggleGroupState,f as activateWidgetAction,te as addBreakpoints,v as adwaitaColorScheme,Pt as adwaitaFontInstallInstructions,Ze as adwaitaNsAccentColor,Qe as adwaitaNsAccentCss,$e as applyAdwaitaNsAccent,u as applyConstructProps,rn as assertNativeScript,K as attachRowPressFeedback,z as avatarInitials,q as bottomSheetPanel,rt as boxChildTrack,it as boxSpacingChanges,at as boxTrackPlan,st as buttonSlotAfterWrite,ct as buttonSlotDetaches,et as clearAdwaitaNsAccent,A as compiledIconNames,Vt as dataGridCellClass,Ht as dataGridItemSpec,Ut as dataGridRowClass,Wt as dataGridShapeKey,Gt as dataGridTracksKey,ne as evaluateBreakpointCondition,D as extractIconPaths,O as extractPathData,p as findActionGroup,Ft as hasAdwaitaSans,j as iconValueKind,m as insertActionGroup,on as isAndroid,l as isGtkIconSizeNick,sn as isIOS,M as isIconAvailable,cn as isNativeScript,y as isThemeIconColor,Zt as labelDisplayText,Qt as labelMarkupIsUnparseable,ot as normalizeBoxSpacing,d as nsAlignment,e as observeViewSize,t as observeWindowSize,b as onAdwaitaColorSchemeChanged,Yt as padForSystemInsets,Xt as padSheetForSystemInsets,n as parseBreakpointCondition,Kt as parseDataGridWidth,registerAdwaita,$ as registerAdwaitaElements,P as renderSymbolicIcon,N as resolveIconSource,x as setAdwaitaColorScheme,Le as shortcutLabelDirection,Re as shortcutLabelPlatform,ze as shortcutLabelRenderPlan,we as splitViewColumns,S as themeIconColor,C as toggleAdwaitaColorScheme,_ as withGtkWidgetLayout};
@@ -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"../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
+ 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{AccentColor as Z,ColorScheme as Q,Toast as $,ToastPriority as ne}from"@gjsify/adwaita-core";var re=ee({AboutDialog:()=>e,AccentColor:()=>Z,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:()=>Q,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:()=>$,ToastOverlay:()=>H,ToastPriority:()=>ne,Toggle:()=>U,ToggleGroup:()=>W,ToolbarView:()=>G,ViewStack:()=>S,ViewStackPage:()=>x,ViewSwitcher:()=>K,ViewSwitcherBar:()=>q,Window:()=>J,WindowTitle:()=>y,WrapBox:()=>Y});export{e as AboutDialog,Z as AccentColor,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,Q 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,$ as Toast,H as ToastOverlay,ne 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,re as adw_exports};
@@ -1 +1 @@
1
- import{__exportAll as e}from"../_virtual/_rolldown/runtime.js";import{nativeClipboardHost as t}from"../clipboard-host.js";import{CURRENT_TIME as n,GDK_KEYS as r,createGdk as i}from"@gjsify/adwaita-core";var a=e({AppLaunchContext:()=>d,CURRENT_TIME:()=>f,Clipboard:()=>c,ContentFormats:()=>u,ContentProvider:()=>l,Display:()=>s,KEY_Down:()=>T,KEY_Escape:()=>x,KEY_Left:()=>S,KEY_Return:()=>b,KEY_Right:()=>w,KEY_Up:()=>C,KEY_a:()=>m,KEY_d:()=>h,KEY_e:()=>g,KEY_q:()=>_,KEY_s:()=>v,KEY_space:()=>p,KEY_w:()=>y,gdk:()=>o});const o=i(t),s=o.Display,c=o.Clipboard,l=o.ContentProvider,u=o.ContentFormats,d=o.AppLaunchContext,f=n,{KEY_space:p,KEY_a:m,KEY_d:h,KEY_e:g,KEY_q:_,KEY_s:v,KEY_w:y,KEY_Return:b,KEY_Escape:x,KEY_Left:S,KEY_Up:C,KEY_Right:w,KEY_Down:T}=r;export{d as AppLaunchContext,f as CURRENT_TIME,c as Clipboard,u as ContentFormats,l as ContentProvider,s as Display,T as KEY_Down,x as KEY_Escape,S as KEY_Left,b as KEY_Return,w as KEY_Right,C as KEY_Up,m as KEY_a,h as KEY_d,g as KEY_e,_ as KEY_q,v as KEY_s,p as KEY_space,y as KEY_w,o as gdk,a as gdk_exports};
1
+ import{__exportAll as e}from"../_virtual/_rolldown/runtime.js";import{nativeClipboardHost as t}from"../clipboard-host.js";import{CURRENT_TIME as n,GDK_KEYS as r,RGBA as i,createGdk as a}from"@gjsify/adwaita-core";var o=e({AppLaunchContext:()=>f,CURRENT_TIME:()=>p,Clipboard:()=>l,ContentFormats:()=>d,ContentProvider:()=>u,Display:()=>c,KEY_Down:()=>E,KEY_Escape:()=>S,KEY_Left:()=>C,KEY_Return:()=>x,KEY_Right:()=>T,KEY_Up:()=>w,KEY_a:()=>h,KEY_d:()=>g,KEY_e:()=>_,KEY_q:()=>v,KEY_s:()=>y,KEY_space:()=>m,KEY_w:()=>b,RGBA:()=>i,gdk:()=>s});const s=a(t),c=s.Display,l=s.Clipboard,u=s.ContentProvider,d=s.ContentFormats,f=s.AppLaunchContext,p=n,{KEY_space:m,KEY_a:h,KEY_d:g,KEY_e:_,KEY_q:v,KEY_s:y,KEY_w:b,KEY_Return:x,KEY_Escape:S,KEY_Left:C,KEY_Up:w,KEY_Right:T,KEY_Down:E}=r;export{f as AppLaunchContext,p as CURRENT_TIME,l as Clipboard,d as ContentFormats,u as ContentProvider,c as Display,E as KEY_Down,S as KEY_Escape,C as KEY_Left,x as KEY_Return,T as KEY_Right,w as KEY_Up,h as KEY_a,g as KEY_d,_ as KEY_e,v as KEY_q,y as KEY_s,m as KEY_space,b as KEY_w,i as RGBA,s as gdk,o as gdk_exports};
@@ -0,0 +1 @@
1
+ import{__exportAll as e}from"../_virtual/_rolldown/runtime.js";import{Point as t}from"@gjsify/adwaita-core";var n=e({Point:()=>t});export{t as Point,n as graphene_exports};
@@ -1 +1 @@
1
- import{__exportAll as e}from"../_virtual/_rolldown/runtime.js";import{CssProvider as t,EventControllerKey as n,IconTheme as r,Settings as i,StyleContext as a,show_uri as o}from"./gtk-platform.js";import{GtkImage as s}from"../widgets/gtk-image.js";import{GtkApplication as c}from"../widgets/application.js";import{GtkWindow as l}from"../widgets/gtk-window.js";import{ArrowType as u,License as d,PolicyType as f,TextDirection as p,TextExtendSelection as m,TextWindowType as h}from"../widgets/gtk-enums.js";import{GtkActionBar as g}from"../widgets/gtk-action-bar.js";import{GtkBox as _}from"../widgets/gtk-box.js";import{GtkButton as v}from"../widgets/gtk-button.js";import{GtkDropDown as y}from"../widgets/gtk-drop-down.js";import{GtkCheckButton as b}from"../widgets/gtk-check-button.js";import{GtkDrawingArea as x}from"../widgets/gtk-drawing-area.js";import{GtkEntry as S}from"../widgets/gtk-entry.js";import{GtkGrid as C}from"../widgets/gtk-grid.js";import{GtkFrame as w}from"../widgets/gtk-frame.js";import{GtkLabel as T}from"../widgets/gtk-label.js";import{GtkListBox as E}from"../widgets/gtk-list-box.js";import{GtkMenuButton as D}from"../widgets/gtk-menu-button.js";import{GtkPopoverMenu as O}from"../widgets/gtk-popover-menu.js";import{GtkOverlay as k}from"../widgets/gtk-overlay.js";import{GtkRevealer as A}from"../widgets/gtk-revealer.js";import{GtkScrolledWindow as j}from"../widgets/gtk-scrolled-window.js";import{GtkSeparator as M}from"../widgets/gtk-separator.js";import{GtkStackPage as N}from"../widgets/stack-page.js";import{GtkStack as P}from"../widgets/gtk-stack.js";import{GtkTextView as F}from"../widgets/gtk-text-view.js";import{GtkToggleButton as I}from"../widgets/gtk-toggle-button.js";import{ApplicationInhibitFlags as L,DialogError as R,GtkAdjustment as z,GtkFileDialog as B,GtkFileFilter as V,GtkStringList as H,STYLE_PROVIDER_PRIORITY_APPLICATION as U,STYLE_PROVIDER_PRIORITY_FALLBACK as W,STYLE_PROVIDER_PRIORITY_SETTINGS as G,STYLE_PROVIDER_PRIORITY_THEME as K,STYLE_PROVIDER_PRIORITY_USER as q}from"@gjsify/adwaita-core";var J=e({ActionBar:()=>g,Adjustment:()=>z,Application:()=>c,ApplicationInhibitFlags:()=>L,ArrowType:()=>u,Box:()=>_,Button:()=>v,CheckButton:()=>b,CssProvider:()=>t,DialogError:()=>R,DrawingArea:()=>x,DropDown:()=>y,Entry:()=>S,EventControllerKey:()=>n,FileDialog:()=>B,FileFilter:()=>V,Frame:()=>w,Grid:()=>C,IconTheme:()=>r,Image:()=>s,Label:()=>T,License:()=>d,ListBox:()=>E,MenuButton:()=>D,Overlay:()=>k,PolicyType:()=>f,PopoverMenu:()=>O,Revealer:()=>A,STYLE_PROVIDER_PRIORITY_APPLICATION:()=>U,STYLE_PROVIDER_PRIORITY_FALLBACK:()=>W,STYLE_PROVIDER_PRIORITY_SETTINGS:()=>G,STYLE_PROVIDER_PRIORITY_THEME:()=>K,STYLE_PROVIDER_PRIORITY_USER:()=>q,ScrolledWindow:()=>j,Separator:()=>M,Settings:()=>i,Stack:()=>P,StackPage:()=>N,StringList:()=>H,StyleContext:()=>a,TextDirection:()=>p,TextExtendSelection:()=>m,TextView:()=>F,TextWindowType:()=>h,ToggleButton:()=>I,Window:()=>l,show_uri:()=>o});export{g as ActionBar,z as Adjustment,c as Application,L as ApplicationInhibitFlags,u as ArrowType,_ as Box,v as Button,b as CheckButton,t as CssProvider,R as DialogError,x as DrawingArea,y as DropDown,S as Entry,n as EventControllerKey,B as FileDialog,V as FileFilter,w as Frame,C as Grid,r as IconTheme,s as Image,T as Label,d as License,E as ListBox,D as MenuButton,k as Overlay,f as PolicyType,O as PopoverMenu,A as Revealer,U as STYLE_PROVIDER_PRIORITY_APPLICATION,W as STYLE_PROVIDER_PRIORITY_FALLBACK,G as STYLE_PROVIDER_PRIORITY_SETTINGS,K as STYLE_PROVIDER_PRIORITY_THEME,q as STYLE_PROVIDER_PRIORITY_USER,j as ScrolledWindow,M as Separator,i as Settings,P as Stack,N as StackPage,H as StringList,a as StyleContext,p as TextDirection,m as TextExtendSelection,F as TextView,h as TextWindowType,I as ToggleButton,l as Window,J as gtk_exports,o as show_uri};
1
+ import{__exportAll as e}from"../_virtual/_rolldown/runtime.js";import{CssProvider as t,EventControllerKey as n,IconTheme as r,Settings as i,StyleContext as a,show_uri as o}from"./gtk-platform.js";import{GtkImage as s}from"../widgets/gtk-image.js";import{GtkApplication as c}from"../widgets/application.js";import{GtkWindow as l}from"../widgets/gtk-window.js";import{ArrowType as u,License as d,PolicyType as f,TextDirection as p,TextExtendSelection as m,TextWindowType as h}from"../widgets/gtk-enums.js";import{GtkActionBar as g}from"../widgets/gtk-action-bar.js";import{GtkBox as _}from"../widgets/gtk-box.js";import{GtkButton as v}from"../widgets/gtk-button.js";import{GtkDropDown as y}from"../widgets/gtk-drop-down.js";import{GtkCheckButton as b}from"../widgets/gtk-check-button.js";import{GtkDrawingArea as x}from"../widgets/gtk-drawing-area.js";import{GtkEntry as S}from"../widgets/gtk-entry.js";import{GtkGrid as C}from"../widgets/gtk-grid.js";import{GtkFrame as w}from"../widgets/gtk-frame.js";import{GtkLabel as T}from"../widgets/gtk-label.js";import{GtkListBox as E}from"../widgets/gtk-list-box.js";import{GtkMenuButton as D}from"../widgets/gtk-menu-button.js";import{GtkPopoverMenu as O}from"../widgets/gtk-popover-menu.js";import{GtkOverlay as k}from"../widgets/gtk-overlay.js";import{GtkRevealer as A}from"../widgets/gtk-revealer.js";import{GtkScrolledWindow as j}from"../widgets/gtk-scrolled-window.js";import{GtkApplicationWindow as M}from"../widgets/gtk-application-window.js";import{GtkSeparator as N}from"../widgets/gtk-separator.js";import{GtkStackPage as P}from"../widgets/stack-page.js";import{GtkStack as F}from"../widgets/gtk-stack.js";import{GtkTextView as I}from"../widgets/gtk-text-view.js";import{GtkToggleButton as L}from"../widgets/gtk-toggle-button.js";import{ApplicationInhibitFlags as R,DialogError as z,GtkAdjustment as B,GtkFileDialog as V,GtkFileFilter as H,GtkStringList as U,STYLE_PROVIDER_PRIORITY_APPLICATION as W,STYLE_PROVIDER_PRIORITY_FALLBACK as G,STYLE_PROVIDER_PRIORITY_SETTINGS as K,STYLE_PROVIDER_PRIORITY_THEME as q,STYLE_PROVIDER_PRIORITY_USER as J}from"@gjsify/adwaita-core";var Y=e({ActionBar:()=>g,Adjustment:()=>B,Application:()=>c,ApplicationInhibitFlags:()=>R,ApplicationWindow:()=>M,ArrowType:()=>u,Box:()=>_,Button:()=>v,CheckButton:()=>b,CssProvider:()=>t,DialogError:()=>z,DrawingArea:()=>x,DropDown:()=>y,Entry:()=>S,EventControllerKey:()=>n,FileDialog:()=>V,FileFilter:()=>H,Frame:()=>w,Grid:()=>C,IconTheme:()=>r,Image:()=>s,Label:()=>T,License:()=>d,ListBox:()=>E,MenuButton:()=>D,Overlay:()=>k,PolicyType:()=>f,PopoverMenu:()=>O,Revealer:()=>A,STYLE_PROVIDER_PRIORITY_APPLICATION:()=>W,STYLE_PROVIDER_PRIORITY_FALLBACK:()=>G,STYLE_PROVIDER_PRIORITY_SETTINGS:()=>K,STYLE_PROVIDER_PRIORITY_THEME:()=>q,STYLE_PROVIDER_PRIORITY_USER:()=>J,ScrolledWindow:()=>j,Separator:()=>N,Settings:()=>i,Stack:()=>F,StackPage:()=>P,StringList:()=>U,StyleContext:()=>a,TextDirection:()=>p,TextExtendSelection:()=>m,TextView:()=>I,TextWindowType:()=>h,ToggleButton:()=>L,Window:()=>l,show_uri:()=>o});export{g as ActionBar,B as Adjustment,c as Application,R as ApplicationInhibitFlags,M as ApplicationWindow,u as ArrowType,_ as Box,v as Button,b as CheckButton,t as CssProvider,z as DialogError,x as DrawingArea,y as DropDown,S as Entry,n as EventControllerKey,V as FileDialog,H as FileFilter,w as Frame,C as Grid,r as IconTheme,s as Image,T as Label,d as License,E as ListBox,D as MenuButton,k as Overlay,f as PolicyType,O as PopoverMenu,A as Revealer,W as STYLE_PROVIDER_PRIORITY_APPLICATION,G as STYLE_PROVIDER_PRIORITY_FALLBACK,K as STYLE_PROVIDER_PRIORITY_SETTINGS,q as STYLE_PROVIDER_PRIORITY_THEME,J as STYLE_PROVIDER_PRIORITY_USER,j as ScrolledWindow,N as Separator,i as Settings,F as Stack,P as StackPage,U as StringList,a as StyleContext,p as TextDirection,m as TextExtendSelection,I as TextView,h as TextWindowType,L as ToggleButton,l as Window,Y as gtk_exports,o as show_uri};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{withSignals as t}from"./signals.js";import{AdwAlertResponses as n,AdwAlertResponses as r}from"@gjsify/adwaita-core";import{Observable as i,action as a,confirm as o}from"@nativescript/core";var AdwAlertDialog=class extends t(i){static GTypeName=`AdwAlertDialog`;_responses;constructor(t=``,n=``,i){super();let a=typeof t==`string`;this._responses=new r(a?t:``,n),a||(i=t),e(this,i)}get heading(){return this._responses.heading}set heading(e){this._responses.heading=e}get body(){return this._responses.body}set body(e){this._responses.body=e}connect(e,t){return e===`response`?super.connect(e,(e,n)=>t(e,n.args?.[0])):super.connect(e,t)}add_response(e,t,n){this._responses.addResponse(e,t,n)}addResponses(...e){this._responses.addResponses(...e)}has_response(e){return this._responses.hasResponse(e)}get_response_label(e){return this._responses.responses.find(t=>t.id===e)?.label??null}set_response_label(e,t){if(!this._responses.hasResponse(e)){console.warn(`[AdwAlertDialog] Trying to set label on a response with id '${e}', but such a response does not exist`);return}this._responses.addResponse(e,t)}set_response_appearance(e,t){this._responses.setResponseAppearance(e,t)}get_response_appearance(e){return this._responses.getResponseAppearance(e)}set_response_enabled(e,t){this._responses.setResponseEnabled(e,t)}get_response_enabled(e){return this._responses.getResponseEnabled(e)}get defaultResponse(){return this._responses.defaultResponse}set defaultResponse(e){this._responses.defaultResponse=e}get_default_response(){return this._responses.defaultResponse}set_default_response(e){this._responses.defaultResponse=e}get closeResponse(){return this._responses.closeResponse}set closeResponse(e){this._responses.closeResponse=e}get_close_response(){return this._responses.closeResponse}set_close_response(e){this._responses.closeResponse=e}get responses(){return this._responses.responses}present(e){(this._responses.usesActionSheet?this._presentAction():this._presentConfirm()).then(e=>this.emit(`response`,e),e=>console.error(`[AdwAlertDialog] the native dialog failed:`,e))}async _presentConfirm(){let e=this._responses.orderResponses(),t=await o({title:this._responses.heading||void 0,message:this._responses.body||void 0,okButtonText:e.ok?.label,cancelButtonText:e.cancel?.label,neutralButtonText:e.neutral?.label,cancelable:!0});return t===!0?this._responses.resolveById(e.ok?.id):t===!1?this._responses.resolveById(e.cancel?.id):t===void 0?this._responses.resolveById(e.neutral?.id):this._responses.closeResponse}async _presentAction(){let e=await a({title:this._responses.heading||void 0,message:this._responses.body||void 0,cancelButtonText:`Cancel`,actions:this._responses.responses.map(e=>e.label)});return this._responses.resolveLabel(e)}};export{AdwAlertDialog,n as AdwAlertResponses};
1
+ import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{withSignals as t}from"./signals.js";import{AdwAlertResponses as n,AdwAlertResponses as r}from"@gjsify/adwaita-core";import{Observable as i,action as a,confirm as o}from"@nativescript/core";var AdwAlertDialog=class extends t(i){static GTypeName=`AdwAlertDialog`;_responses;constructor(t=``,n=``,i){super();let a=typeof t==`string`;this._responses=new r(a?t:``,n),a||(i=t),e(this,i)}get heading(){return this._responses.heading}set heading(e){this._responses.heading=e}get body(){return this._responses.body}set body(e){this._responses.body=e}connect(e,t){return e===`response`?super.connect(e,(e,n)=>t(e,n.args?.[0])):super.connect(e,t)}add_response(e,t,n){this._responses.addResponse(e,t,n)}addResponses(...e){this._responses.addResponses(...e)}has_response(e){return this._responses.hasResponse(e)}get_response_label(e){return this._responses.responses.find(t=>t.id===e)?.label??null}set_response_label(e,t){if(!this._responses.hasResponse(e)){console.warn(`[AdwAlertDialog] Trying to set label on a response with id '${e}', but such a response does not exist`);return}this._responses.addResponse(e,t)}set_response_appearance(e,t){this._responses.setResponseAppearance(e,t)}get_response_appearance(e){return this._responses.getResponseAppearance(e)}set_response_enabled(e,t){this._responses.setResponseEnabled(e,t)}get_response_enabled(e){return this._responses.getResponseEnabled(e)}get defaultResponse(){return this._responses.defaultResponse}set defaultResponse(e){this._responses.defaultResponse=e}get_default_response(){return this._responses.defaultResponse}set_default_response(e){this._responses.defaultResponse=e}get closeResponse(){return this._responses.closeResponse}set closeResponse(e){this._responses.closeResponse=e}get_close_response(){return this._responses.closeResponse}set_close_response(e){this._responses.closeResponse=e}get responses(){return this._responses.responses}present(e){(this._responses.usesActionSheet?this._presentAction():this._presentConfirm()).then(e=>this.notify({eventName:`response`,object:this,args:[e]}),e=>console.error(`[AdwAlertDialog] the native dialog failed:`,e))}async _presentConfirm(){let e=this._responses.orderResponses(),t=await o({title:this._responses.heading||void 0,message:this._responses.body||void 0,okButtonText:e.ok?.label,cancelButtonText:e.cancel?.label,neutralButtonText:e.neutral?.label,cancelable:!0});return t===!0?this._responses.resolveById(e.ok?.id):t===!1?this._responses.resolveById(e.cancel?.id):t===void 0?this._responses.resolveById(e.neutral?.id):this._responses.closeResponse}async _presentAction(){let e=await a({title:this._responses.heading||void 0,message:this._responses.body||void 0,cancelButtonText:`Cancel`,actions:this._responses.responses.map(e=>e.label)});return this._responses.resolveLabel(e)}};export{AdwAlertDialog,n as AdwAlertResponses};
@@ -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{GtkImage as i}from"./gtk-image.js";import{AdwActionRow as a}from"./adw-action-row.js";import{ExpanderState as o,ExpanderState as s}from"@gjsify/adwaita-core";import{GridLayout as c,ItemSpec as l,StackLayout as u}from"@nativescript/core";import{panDownSymbolic as d,panUpSymbolic as f}from"@gjsify/adwaita-icons/ui";const p=`notify::expanded`,m=[`prefix`,`suffix`],h=[`prefix`];var AdwExpanderRow=class extends a{static GTypeName=`AdwExpanderRow`;static builderSlots=e(h,`row`);isActionRow=!1;_toggle;_disclosure;_state=new s;constructor(e){super(),this.className=`adw-row adw-action-row adw-expander-row`,this.addRow(new l(1,`auto`));let t=new u;t.orientation=`vertical`,t.className=`adw-expander-disclosure`,t.visibility=`collapse`,c.setRow(t,1),c.setColumn(t,0),c.setColumnSpan(t,3),this.addChild(t),this._disclosure=t;let r=new i;r.iconName=d,r.className=`${r.className} adw-expander-toggle`.trim(),this.add_suffix(r),this._toggle=r,this._state.subscribe(e=>{this._disclosure.visibility=e?`visible`:`collapse`,this._toggle.iconName=e?f:d;let t={eventName:p,object:this,expanded:e};this.notify(t)});let toggleOnTap=()=>{this._state.toggle()};this._textStack.addEventListener(`tap`,toggleOnTap),r.addEventListener(`tap`,toggleOnTap),n(this,e)}add_row(e){this._disclosure.addChild(e)}remove(e){this._disclosure.removeChild(e)}_addChildFromBuilder(e,n){let r=t(e,m,`row`);r===`row`?this.add_row(n):super._addChildFromBuilder(r,n)}get disclosureRows(){let e=[];for(let t=0;t<this._disclosure.getChildrenCount();t++)e.push(this._disclosure.getChildAt(t));return e}get expanded(){return this._state.expanded}set expanded(e){this._state.setExpanded(r(e,!1))}};export{AdwExpanderRow,o as ExpanderState,p as NOTIFY_EXPANDED};
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{readDeclaredValue as r,withProperties as i}from"./signals.js";import{GtkImage as a}from"./gtk-image.js";import{switchClassName as o}from"./row-state.js";import{AdwActionRow as s}from"./adw-action-row.js";import{GridLayout as c,ItemSpec as l,StackLayout as u,Switch as d}from"@nativescript/core";import{panDownSymbolic as f,panUpSymbolic as p}from"@gjsify/adwaita-icons/ui";const m=`notify::expanded`,h=`notify::enable-expansion`,g=`notify::show-enable-switch`,_=.5,v=[`prefix`,`suffix`];var AdwExpanderRow=class extends i(s,{GTypeName:`AdwExpanderRow`,Properties:{expanded:{kind:`boolean`,default:!1,blurb:`Whether the row is expanded`,normalize:(e,t)=>{let n=t;return r(`expanded`,`boolean`,e)&&(n._expansionGate??n.enableExpansion)}},"enable-expansion":{kind:`boolean`,default:!0,blurb:`Whether the expansion is enabled`,normalize:(e,t)=>{let n=t,i=r(`enable-expansion`,`boolean`,e);if(i===n.enableExpansion)return i;n._expansionGate=i;try{n.expanded=i}finally{n._expansionGate=void 0}return i}},"show-enable-switch":{kind:`boolean`,default:!1,blurb:`Whether the switch enabling the expansion is visible`}}}){static GTypeName=`AdwExpanderRow`;static builderSlots=e(v,`row`);isActionRow=!1;_toggle;_enableSwitch;_suffixes;_disclosure;_expansionGate=void 0;_slotSuffix=null;constructor(e){super(),this.className=`adw-row adw-action-row adw-expander-row`,this.activatable=!1,this.addRow(new l(1,`auto`));let t=new u;t.orientation=`vertical`,t.className=`adw-expander-disclosure`,t.visibility=`collapse`,c.setRow(t,1),c.setColumn(t,0),c.setColumnSpan(t,3),this.addChild(t),this._disclosure=t;let r=new u;r.orientation=`horizontal`,r.className=`adw-expander-row-cluster`;let i=new u;i.orientation=`horizontal`,i.className=`adw-expander-row-suffixes`,i.visibility=`collapse`,r.addChild(i),this._suffixes=i;let s=new d;s.className=o(!0),s.visibility=`collapse`,r.addChild(s),this._enableSwitch=s;let p=new a;p.iconName=f,p.className=`${p.className} adw-expander-toggle`.trim(),r.addChild(p),this._toggle=p,super.add_suffix(r),s.addEventListener(`checkedChange`,()=>{this.enableExpansion=s.checked}),this.connect(m,e=>e._applyExpanded()),this.connect(h,e=>e._applyEnableExpansion()),this.connect(g,e=>e._applyShowEnableSwitch()),this._applyExpanded(),this._applyEnableExpansion(),this._applyShowEnableSwitch();let toggleOnTap=()=>{this.expanded=!this.expanded};this._textStack.addEventListener(`tap`,toggleOnTap),p.addEventListener(`tap`,toggleOnTap),n(this,e)}get_expanded(){return this.expanded}set_expanded(e){this.expanded=e}get_enable_expansion(){return this.enableExpansion}set_enable_expansion(e){this.enableExpansion=e}get_show_enable_switch(){return this.showEnableSwitch}set_show_enable_switch(e){this.showEnableSwitch=e}add_row(e){this._disclosure.addChild(e)}add_suffix(e){e.className=`${e.className??``} adw-row-suffix`.trim(),this._suffixes.insertChild(e,0),this._suffixes.visibility=`visible`,this._slotSuffix=e}remove(e){if(e===this.prefix){super.remove(e);return}if(this._suffixes.getChildIndex(e)!==-1){this._suffixes.removeChild(e),this._suffixes.getChildrenCount()===0&&(this._suffixes.visibility=`collapse`),e===this._slotSuffix&&(this._slotSuffix=this._lastSuffix());return}this._disclosure.removeChild(e)}get suffix(){return this._slotSuffix}_addChildFromBuilder(e,n){let r=t(e,v,`row`);r===`row`?this.add_row(n):super._addChildFromBuilder(r,n)}get disclosureRows(){let e=[];for(let t=0;t<this._disclosure.getChildrenCount();t++)e.push(this._disclosure.getChildAt(t));return e}_lastSuffix(){return this._suffixes.getChildrenCount()===0?null:this._suffixes.getChildAt(0)}_applyExpanded(){let e=this.expanded;this._disclosure.visibility=e?`visible`:`collapse`,this._toggle.iconName=e?p:f}_applyEnableExpansion(){let e=this.enableExpansion;this._enableSwitch.checked=e,this._enableSwitch.className=o(e),this._toggle.opacity=e?1:_,this._toggle.isUserInteractionEnabled=e}_applyShowEnableSwitch(){this._enableSwitch.visibility=this.showEnableSwitch?`visible`:`collapse`}};export{AdwExpanderRow,h as NOTIFY_ENABLE_EXPANSION,m as NOTIFY_EXPANDED,g as NOTIFY_SHOW_ENABLE_SWITCH,_ as NS_EXPANDER_ARROW_DISABLED_OPACITY};
@@ -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{NsOverlaySplitViewState as n,splitViewColumns as r}from"./split-view-state.js";import{AdwSplitViewBase as i}from"./split-view-base.js";import{GridLayout as a}from"@nativescript/core";var AdwOverlaySplitView=class extends i{static GTypeName=`AdwOverlaySplitView`;_scrim=null;constructor(t){super(`adw-overlay-split-view`,`overlay`,new n),this._applyLayout(),e(this,t)}get pinSidebar(){return this._state.pinSidebar}set pinSidebar(e){let n=t(e,this.pinSidebar);this._state.setPinSidebar(!!n)}_applyLayout(){let e=r(this._state.sidebarPosition),t=this._state.sidebarPosition===`end`;if(!this._state.collapsed){this._detachScrim();let t=this._state.showSidebar;this._sidebar&&(this._sidebar.visibility=t?`visible`:`collapse`,this._sidebar.translateX=0,this._sidebar.opacity=1,a.setColumn(this._sidebar,e.sidebar),a.setColumnSpan(this._sidebar,1),this._sidebar.width=this.sidebarWidth,this._sidebar.className=this._paneClassName(this._sidebar.className,!1),this._sidebar.horizontalAlignment=`stretch`),this._content&&(this._content.visibility=`visible`,a.setColumn(this._content,t?e.content:0),a.setColumnSpan(this._content,t?1:2)),this._applyPaneFocus();return}this._content&&(this._content.visibility=`visible`,a.setColumn(this._content,0),a.setColumnSpan(this._content,2)),this._raiseOverlayChildren(),this._scrim&&(a.setColumn(this._scrim,0),a.setColumnSpan(this._scrim,2),this._scrim.visibility=this._state.shieldVisible?`visible`:`collapse`,this._scrim.opacity=+!!this._state.shieldVisible),this._sidebar&&(a.setColumn(this._sidebar,0),a.setColumnSpan(this._sidebar,2),this._sidebar.width=this.sidebarWidth,this._sidebar.horizontalAlignment=t?`right`:`left`,this._sidebar.className=this._paneClassName(this._sidebar.className,!0),this._sidebar.visibility=this._state.showSidebar?`visible`:`collapse`,this._sidebar.translateX=this._state.showSidebar?0:this._hiddenOffset(),this._sidebar.opacity=1),this._applyPaneFocus()}_transitionSidebar(){if(!this._state.collapsed||!this._shouldAnimate()){this._applyLayout();return}this._cancelPending(),this._prepareCollapsedStructure(),this._applyPaneFocus(),this._state.showSidebar?this._animateOpen():this._animateClose()}_applyPaneFocus(){this._sidebar&&(this._sidebar.isUserInteractionEnabled=this._state.sidebarFocusable),this._content&&(this._content.isUserInteractionEnabled=this._state.contentFocusable)}_ensureScrim(){if(this._scrim)return this._scrim;let e=new a;return e.className=`adw-overlay-scrim`,e.visibility=`collapse`,e.opacity=0,e.addEventListener(`tap`,()=>this.hideSidebarPane()),this._scrim=e,e}_raiseOverlayChildren(){let e=this._ensureScrim();this._isChild(e)&&this.removeChild(e);let t=this._sidebar;t&&this._isChild(t)&&this.removeChild(t),this.addChild(e),t&&this.addChild(t)}_detachScrim(){this._scrim&&this._isChild(this._scrim)&&this.removeChild(this._scrim)}_prepareCollapsedStructure(){let e=this._state.sidebarPosition===`end`;this._content&&(this._content.visibility=`visible`,a.setColumn(this._content,0),a.setColumnSpan(this._content,2)),this._raiseOverlayChildren(),this._scrim&&(a.setColumn(this._scrim,0),a.setColumnSpan(this._scrim,2)),this._sidebar&&(a.setColumn(this._sidebar,0),a.setColumnSpan(this._sidebar,2),this._sidebar.width=this.sidebarWidth,this._sidebar.horizontalAlignment=e?`right`:`left`,this._sidebar.className=this._paneClassName(this._sidebar.className,!0))}_animateOpen(){let e=this._scrim;e&&(e.visibility=`visible`,e.opacity=0,this._track(e.animate({opacity:1,duration:200,curve:`easeOut`})));let t=this._sidebar;t&&(t.visibility=`visible`,t.translateX=this._hiddenOffset(),t.opacity=1,this._track(t.animate({translate:{x:0,y:0},duration:200,curve:`easeOut`})))}_animateClose(){let e=this._scrim,t=this._sidebar,n=[];e&&n.push(this._track(e.animate({opacity:0,duration:200,curve:`easeIn`}))),t&&n.push(this._track(t.animate({translate:{x:this._hiddenOffset(),y:0},duration:200,curve:`easeIn`}))),Promise.all(n).then(()=>{this._state.showSidebar||(t&&(t.visibility=`collapse`),e&&(e.visibility=`collapse`))}).catch(()=>{})}_hiddenOffset(){let e=this.sidebarWidth;return this._state.sidebarPosition===`end`?e:-e}_paneClassName(e,t){return`${(e??``).split(/\s+/).filter(e=>e&&e!==`adw-overlay-active`&&e!==`adw-split-view-sidebar`).join(` `)} adw-split-view-sidebar${t?` adw-overlay-active`:``}`.trim()}};export{AdwOverlaySplitView};
1
+ import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{xmlBoolean as t}from"./xml-values.js";import{NsOverlaySplitViewState as n,splitViewColumns as r}from"./split-view-state.js";import{AdwSplitViewBase as i}from"./split-view-base.js";import{GridLayout as a}from"@nativescript/core";var AdwOverlaySplitView=class extends i{static GTypeName=`AdwOverlaySplitView`;_scrim=null;constructor(t){super(`adw-overlay-split-view`,`overlay`,new n),this._applyLayout(),e(this,t)}get show_sidebar(){return this.showSidebar}set show_sidebar(e){this.showSidebar=t(e,this.showSidebar)}get_show_sidebar(){return this.showSidebar}set_show_sidebar(e){this.showSidebar=e}get pinSidebar(){return this._state.pinSidebar}set pinSidebar(e){let n=t(e,this.pinSidebar);this._state.setPinSidebar(!!n)}_applyLayout(){let e=r(this._state.sidebarPosition),t=this._state.sidebarPosition===`end`;if(!this._state.collapsed){this._detachScrim();let t=this._state.showSidebar;this._sidebar&&(this._sidebar.visibility=t?`visible`:`collapse`,this._sidebar.translateX=0,this._sidebar.opacity=1,a.setColumn(this._sidebar,e.sidebar),a.setColumnSpan(this._sidebar,1),this._sidebar.width=this.sidebarWidth,this._sidebar.className=this._paneClassName(this._sidebar.className,!1),this._sidebar.horizontalAlignment=`stretch`),this._content&&(this._content.visibility=`visible`,a.setColumn(this._content,t?e.content:0),a.setColumnSpan(this._content,t?1:2)),this._applyPaneFocus();return}this._content&&(this._content.visibility=`visible`,a.setColumn(this._content,0),a.setColumnSpan(this._content,2)),this._raiseOverlayChildren(),this._scrim&&(a.setColumn(this._scrim,0),a.setColumnSpan(this._scrim,2),this._scrim.visibility=this._state.shieldVisible?`visible`:`collapse`,this._scrim.opacity=+!!this._state.shieldVisible),this._sidebar&&(a.setColumn(this._sidebar,0),a.setColumnSpan(this._sidebar,2),this._sidebar.width=this.sidebarWidth,this._sidebar.horizontalAlignment=t?`right`:`left`,this._sidebar.className=this._paneClassName(this._sidebar.className,!0),this._sidebar.visibility=this._state.showSidebar?`visible`:`collapse`,this._sidebar.translateX=this._state.showSidebar?0:this._hiddenOffset(),this._sidebar.opacity=1),this._applyPaneFocus()}_transitionSidebar(){if(!this._state.collapsed||!this._shouldAnimate()){this._applyLayout();return}this._cancelPending(),this._prepareCollapsedStructure(),this._applyPaneFocus(),this._state.showSidebar?this._animateOpen():this._animateClose()}_applyPaneFocus(){this._sidebar&&(this._sidebar.isUserInteractionEnabled=this._state.sidebarFocusable),this._content&&(this._content.isUserInteractionEnabled=this._state.contentFocusable)}_ensureScrim(){if(this._scrim)return this._scrim;let e=new a;return e.className=`adw-overlay-scrim`,e.visibility=`collapse`,e.opacity=0,e.addEventListener(`tap`,()=>this.hideSidebarPane()),this._scrim=e,e}_raiseOverlayChildren(){let e=this._ensureScrim();this._isChild(e)&&this.removeChild(e);let t=this._sidebar;t&&this._isChild(t)&&this.removeChild(t),this.addChild(e),t&&this.addChild(t)}_detachScrim(){this._scrim&&this._isChild(this._scrim)&&this.removeChild(this._scrim)}_prepareCollapsedStructure(){let e=this._state.sidebarPosition===`end`;this._content&&(this._content.visibility=`visible`,a.setColumn(this._content,0),a.setColumnSpan(this._content,2)),this._raiseOverlayChildren(),this._scrim&&(a.setColumn(this._scrim,0),a.setColumnSpan(this._scrim,2)),this._sidebar&&(a.setColumn(this._sidebar,0),a.setColumnSpan(this._sidebar,2),this._sidebar.width=this.sidebarWidth,this._sidebar.horizontalAlignment=e?`right`:`left`,this._sidebar.className=this._paneClassName(this._sidebar.className,!0))}_animateOpen(){let e=this._scrim;e&&(e.visibility=`visible`,e.opacity=0,this._track(e.animate({opacity:1,duration:200,curve:`easeOut`})));let t=this._sidebar;t&&(t.visibility=`visible`,t.translateX=this._hiddenOffset(),t.opacity=1,this._track(t.animate({translate:{x:0,y:0},duration:200,curve:`easeOut`})))}_animateClose(){let e=this._scrim,t=this._sidebar,n=[];e&&n.push(this._track(e.animate({opacity:0,duration:200,curve:`easeIn`}))),t&&n.push(this._track(t.animate({translate:{x:this._hiddenOffset(),y:0},duration:200,curve:`easeIn`}))),Promise.all(n).then(()=>{this._state.showSidebar||(t&&(t.visibility=`collapse`),e&&(e.visibility=`collapse`))}).catch(()=>{})}_hiddenOffset(){let e=this.sidebarWidth;return this._state.sidebarPosition===`end`?e:-e}_paneClassName(e,t){return`${(e??``).split(/\s+/).filter(e=>e&&e!==`adw-overlay-active`&&e!==`adw-split-view-sidebar`).join(` `)} adw-split-view-sidebar${t?` adw-overlay-active`:``}`.trim()}};export{AdwOverlaySplitView};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{withSignals as t}from"./signals.js";import{iconValueKind as n}from"./icon-theme.js";import{applyViewStackVisibility as r,createViewStackState as i,viewStackNotifyPayload as a}from"./view-stack-state.js";import{AdwViewStackPage as o}from"./view-stack-page.js";import{GridLayout as s,ItemSpec as c}from"@nativescript/core";const l=`notify::visible-child`,u=`notify::visible-child-name`;var AdwViewStack=class extends t(s){static GTypeName=`AdwViewStack`;static emittedSignals=[l,u];static builderSlots=[];_state=i();_sourceIcons=new Map;constructor(t){super(),this.className=`adw-view-stack`,this.addColumn(new c(1,`star`)),this.addRow(new c(1,`star`)),this._state.subscribe(e=>{r(this._state);let t={eventName:l,object:this,...a(e)};this.notify(t),this.notify({...t,eventName:u})}),e(this,t)}add(e,t,n,r){let i=this._state.addPage({name:t,title:n,icon:r,content:e});return this._rememberSourceIcon(e,r),this._placePage(e),i}_placePage(e){s.setColumn(e,0),s.setRow(e,0),this.addChild(e),r(this._state)}_addChildFromBuilder(e,t){if(!(t instanceof o)){this.add(t,``);return}let n=t.child;if(n===null){t._awaitChild(this);return}t._adoptBy(this),this._state.addPage({name:t.name,title:t.title,icon:t.iconName,content:n,visible:t.visible,badgeNumber:t.badgeNumber,needsAttention:t.needsAttention,useUnderline:t.useUnderline}),this._rememberSourceIcon(n,t.iconName),this._placePage(n)}_rememberSourceIcon(e,t){t&&n(t)===`source`&&this._sourceIcons.set(e,t)}pageIcons(){return this._state.pages.map(e=>(e.content?this._sourceIcons.get(e.content):void 0)??e.icon)}add_titled(e,t,n){return this.add(e,t,n)}add_titled_with_icon(e,t,n,r){return this.add(e,t,n,r)}remove(e){let t=typeof e==`string`?e:this._nameOf(e)??``,n=this._state.pages[this._state.indexOfName(t)]?.content;return this._state.removePage(t)?(n&&(this.removeChild(n),this._sourceIcons.delete(n),n.visibility=`visible`),r(this._state),!0):!1}setPageVisible(e,t){let n=this._state.setPageVisible(e,t);return r(this._state),n}_nameOf(e){for(let t of this._state.pages)if(t.content===e)return t.name;return null}get pages(){return this._state.pages}get visibleChildIndex(){return this._state.visibleIndex}selectNthPage(e){return this._state.setVisibleIndex(e)}get visibleChildName(){return this._state.visibleName}set visibleChildName(e){this._state.setVisibleName(e)}get visibleChild(){return this._state.visiblePage?.content??null}};export{AdwViewStack,l as NOTIFY_VISIBLE_CHILD,u as NOTIFY_VISIBLE_CHILD_NAME};
1
+ import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{withSignals as t}from"./signals.js";import{iconValueKind as n}from"./icon-theme.js";import{applyViewStackVisibility as r,createViewStackState as i,viewStackNotifyPayload as a}from"./view-stack-state.js";import{AdwViewStackPage as o}from"./view-stack-page.js";import{GridLayout as s,ItemSpec as c}from"@nativescript/core";const l=`notify::visible-child`,u=`notify::visible-child-name`;var AdwViewStack=class extends t(s){static GTypeName=`AdwViewStack`;static emittedSignals=[l,u];static builderSlots=[];_state=i();_sourceIcons=new Map;constructor(t){super(),this.className=`adw-view-stack`,this.addColumn(new c(1,`star`)),this.addRow(new c(1,`star`)),this._state.subscribe(e=>{r(this._state);let t={eventName:l,object:this,...a(e)};this.notify(t),this.notify({...t,eventName:u})}),e(this,t)}add(e,t,n,r){let i=this._state.addPage({name:t,title:n,icon:r,content:e});return this._rememberSourceIcon(e,r),this._placePage(e),i}_placePage(e){s.setColumn(e,0),s.setRow(e,0),this.addChild(e),r(this._state)}_addChildFromBuilder(e,t){if(!(t instanceof o)){this.add(t,``);return}let n=t.child;if(n===null){t._awaitChild(this);return}t._adoptBy(this),this._state.addPage({name:t.name,title:t.title,icon:t.iconName,content:n,visible:t.visible,badgeNumber:t.badgeNumber,needsAttention:t.needsAttention,useUnderline:t.useUnderline}),this._rememberSourceIcon(n,t.iconName),this._placePage(n)}_rememberSourceIcon(e,t){t&&n(t)===`source`&&this._sourceIcons.set(e,t)}pageIcons(){return this._state.pages.map(e=>(e.content?this._sourceIcons.get(e.content):void 0)??e.icon)}add_titled(e,t,n){return this.add(e,t,n)}add_titled_with_icon(e,t,n,r){return this.add(e,t,n,r)}remove(e){let t=typeof e==`string`?e:this._nameOf(e)??``,n=this._state.pages[this._state.indexOfName(t)]?.content;return this._state.removePage(t)?(n&&(this.removeChild(n),this._sourceIcons.delete(n),n.visibility=`visible`),r(this._state),!0):!1}setPageVisible(e,t){let n=this._state.setPageVisible(e,t);return r(this._state),n}_nameOf(e){for(let t of this._state.pages)if(t.content===e)return t.name;return null}get pages(){return this._state.pages}get visibleChildIndex(){return this._state.visibleIndex}selectNthPage(e){return this._state.setVisibleIndex(e)}get visibleChildName(){return this._state.visibleName}set visibleChildName(e){this._state.setVisibleName(e)}get visibleChild(){return this._state.visiblePage?.content??null}add_named(e,t){return this.add(e,t??``)}get_visible_child_name(){return this._state.visibleIndex<0?null:this._state.visibleName}set_visible_child_name(e){this._state.setVisibleName(e)}get_visible_child(){return this.visibleChild}set_visible_child(e){let t=this._state.pages.findIndex(t=>t.content===e);t!==-1&&this._state.setVisibleIndex(t)}};export{AdwViewStack,l as NOTIFY_VISIBLE_CHILD,u as NOTIFY_VISIBLE_CHILD_NAME};
@@ -0,0 +1 @@
1
+ import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{GtkWindow as t}from"./gtk-window.js";import{installActionMap as n}from"@gjsify/adwaita-core";var GtkApplicationWindow=class extends t{static GTypeName=`GtkApplicationWindow`;constructor(t){super(),e(this,t)}};n(GtkApplicationWindow.prototype);export{GtkApplicationWindow};
@@ -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{activateWidgetAction as r}from"./actions.js";import{applyNativeTooltip as i}from"./native-tooltip.js";import{withSignals as a}from"./signals.js";import{GtkImage as o}from"./gtk-image.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{buttonSlotAfterWrite as f,buttonSlotDetaches as p}from"./button-slot.js";import{labelDisplayText as m}from"@gjsify/adwaita-core";import{GridLayout as h,ItemSpec as g,Label as _}from"@nativescript/core";const v=`clicked`,y=`image-button`,b=`adw-button-label`;var GtkButton=class extends a(h){static GTypeName=`GtkButton`;static emittedSignals=[v];static builderSlots=e([`child`],`child`);_styleClasses=[];_label=``;_iconName=``;_tooltipText=``;_useUnderline=!1;_slot=`empty`;_content=null;constructor(e){super(),this.className=s(`adw-button`,this._styleClasses),this.addRow(new g(1,`star`)),this.addColumn(new g(1,`star`)),d(this),this.addEventListener(`tap`,()=>{this.notify({eventName:v,object:this}),this.actionName&&r(this,this.actionName)}),this.addEventListener(`loaded`,()=>{i(this,this.tooltipText),this._pinIconColor()}),t(this,e)}get label(){return this._label}set label(e){this._label=e??``,this._fill(`label`,this._label)}actionName=null;get iconName(){return this._iconName}set iconName(e){this._iconName=e??``,this._fill(`icon`,this._iconName)}get tooltipText(){return this._tooltipText}set tooltipText(e){let t=e??``;(this.accessibilityHint??``)===this._tooltipText&&(this.accessibilityHint=t),this._tooltipText=t,i(this,t)}get child(){return this._slot===`child`?this._content:null}set child(e){this._fill(`child`,e??null)}set_child(e){this.child=e}get_child(){return this.child}_addChildFromBuilder(e,t){this.child=t}get useUnderline(){return this._useUnderline}set useUnderline(e){this._useUnderline=n(e,this._useUnderline),this._slot===`label`&&this._fill(`label`,this._label)}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._restyle()}_restyle(){this.className=s(`adw-button`,[...this._styleClasses,...this._stateClasses()]),this._pinIconColor()}_stateClasses(){return this._slot===`icon`?[y]:[]}_fill(e,t){let n=f(e,t);p(this._slot,n)&&this._detach();let r=this._slot===`icon`;if(this._slot=n,r!==(n===`icon`)&&this._restyle(),n===`empty`){this._detach();return}if(n===`child`){let e=t;if(this._content===e)return;this._detach(),this._adopt(e);let n=e;`hostButton`in n&&(n.hostButton=this);return}if(n===`label`){let e=this._content instanceof _?this._content:this._adopt(new _);e.className=b,e.text=m(this._label,!1,this._useUnderline);return}let i=this._content instanceof o?this._content:this._adopt(new o);i.iconName=this._iconName,this._pinIconColor()}_pinIconColor(){this._content instanceof o&&(this._styleClasses.some(e=>e===`osd`||e===`suggested-action`)||this._inOsdContainer())&&(this._content.iconColor=`#ffffff`)}_inOsdContainer(){for(let e=this.parent;e;e=e.parent)if((e.className??``).split(/\s+/).includes(`osd`))return!0;return!1}_detach(){this._content&&this.removeChild(this._content),this._content=null}_adopt(e){return e.horizontalAlignment=`center`,e.verticalAlignment=`middle`,h.setColumn(e,0),h.setRow(e,0),this.addChild(e),this._content=e,e}};export{v as GTK_BUTTON_CLICKED,y as GTK_BUTTON_IMAGE_CLASS,b as GTK_BUTTON_LABEL_CLASS,GtkButton};
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{activateWidgetAction as r}from"./actions.js";import{applyNativeTooltip as i}from"./native-tooltip.js";import{withSignals as a}from"./signals.js";import{GtkImage as o}from"./gtk-image.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{buttonSlotAfterWrite as f,buttonSlotDetaches as p}from"./button-slot.js";import{labelDisplayText as m}from"@gjsify/adwaita-core";import{GridLayout as h,ItemSpec as g,Label as _}from"@nativescript/core";const v=`clicked`,y=`image-button`,b=`adw-button-label`;var GtkButton=class extends a(h,{GTypeName:`GtkButton`,Signals:{clicked:{}}}){static GTypeName=`GtkButton`;static builderSlots=e([`child`],`child`);_styleClasses=[];_label=``;_iconName=``;_tooltipText=``;_useUnderline=!1;_slot=`empty`;_content=null;constructor(e){super(),this.className=s(`adw-button`,this._styleClasses),this.addRow(new g(1,`star`)),this.addColumn(new g(1,`star`)),d(this),this.addEventListener(`tap`,()=>{this.emit(v),this.actionName&&r(this,this.actionName)}),this.addEventListener(`loaded`,()=>{i(this,this.tooltipText),this._pinIconColor()}),t(this,e)}get label(){return this._label}set label(e){this._label=e??``,this._fill(`label`,this._label)}actionName=null;get iconName(){return this._iconName}set iconName(e){this._iconName=e??``,this._fill(`icon`,this._iconName)}get tooltipText(){return this._tooltipText}set tooltipText(e){let t=e??``;(this.accessibilityHint??``)===this._tooltipText&&(this.accessibilityHint=t),this._tooltipText=t,i(this,t)}get child(){return this._slot===`child`?this._content:null}set child(e){this._fill(`child`,e??null)}set_child(e){this.child=e}get_child(){return this.child}_addChildFromBuilder(e,t){this.child=t}get useUnderline(){return this._useUnderline}set useUnderline(e){this._useUnderline=n(e,this._useUnderline),this._slot===`label`&&this._fill(`label`,this._label)}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._restyle()}_restyle(){this.className=s(`adw-button`,[...this._styleClasses,...this._stateClasses()]),this._pinIconColor()}_stateClasses(){return this._slot===`icon`?[y]:[]}_fill(e,t){let n=f(e,t);p(this._slot,n)&&this._detach();let r=this._slot===`icon`;if(this._slot=n,r!==(n===`icon`)&&this._restyle(),n===`empty`){this._detach();return}if(n===`child`){let e=t;if(this._content===e)return;this._detach(),this._adopt(e);let n=e;`hostButton`in n&&(n.hostButton=this);return}if(n===`label`){let e=this._content instanceof _?this._content:this._adopt(new _);e.className=b,e.text=m(this._label,!1,this._useUnderline);return}let i=this._content instanceof o?this._content:this._adopt(new o);i.iconName=this._iconName,this._pinIconColor()}_pinIconColor(){this._content instanceof o&&(this._styleClasses.some(e=>e===`osd`||e===`suggested-action`)||this._inOsdContainer())&&(this._content.iconColor=`#ffffff`)}_inOsdContainer(){for(let e=this.parent;e;e=e.parent)if((e.className??``).split(/\s+/).includes(`osd`))return!0;return!1}_detach(){this._content&&this.removeChild(this._content),this._content=null}_adopt(e){return e.horizontalAlignment=`center`,e.verticalAlignment=`middle`,h.setColumn(e,0),h.setRow(e,0),this.addChild(e),this._content=e,e}};export{v as GTK_BUTTON_CLICKED,y as GTK_BUTTON_IMAGE_CLASS,b as GTK_BUTTON_LABEL_CLASS,GtkButton};
@@ -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{classNameWith as n,normalizeStyleClasses as r,withCssClass as i,withoutCssClass as a}from"./style-classes.js";import{AdwImageButton as o}from"./adw-image-button.js";import{assertPopupMenuAssignable as s,refuseMenuString as c}from"./popup-menu.js";import{showMenuPopup as l}from"./popup-menu-view.js";import{normalizeMenuModel as u}from"@gjsify/adwaita-core";const d=`menuItemActivated`;var GtkMenuButton=class extends o{static GTypeName=`GtkMenuButton`;_model=[];_actions=null;_menuTitle=``;_primary=!1;_baseClassName;_styleClasses=[];constructor(t){super(),this._baseClassName=`${this.className} adw-menu-button`.trim(),this.className=this._baseClassName,this.addEventListener(`tap`,()=>this._openMenu()),e(this,t)}get menuModel(){return this._model}set menuModel(e){c(e,`GtkMenuButton`);let t=u(e);s(t),this._model=t}get actions(){return this._actions}set actions(e){this._actions=e??null}get menuTitle(){return this._menuTitle}set menuTitle(e){this._menuTitle=e??``}get styleClasses(){return[...this._styleClasses]}set styleClasses(e){this._setClasses(r(e))}get primary(){return this._primary}set primary(e){this._primary=t(e,this._primary)}add_css_class(e){this._setClasses(i(this._styleClasses,e))}remove_css_class(e){this._setClasses(a(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(r([...e].join(` `)))}_setClasses(e){this._styleClasses=e,this.className=n(this._baseClassName,e)}_openMenu(){this._model.length!==0&&l(this,{model:this._model,actions:this._actions,onActivated:(e,t)=>{let n={eventName:d,object:this,id:e.id??e.label,label:e.label,path:t,action:e.action};this.notify(n)}})}};export{GtkMenuButton,d as MENU_ITEM_ACTIVATED};
1
+ import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{xmlBoolean as t}from"./xml-values.js";import{classNameWith as n,normalizeStyleClasses as r,withCssClass as i,withoutCssClass as a}from"./style-classes.js";import{AdwImageButton as o}from"./adw-image-button.js";import{assertPopupMenuAssignable as s,refuseMenuString as c}from"./popup-menu.js";import{showMenuPopup as l}from"./popup-menu-view.js";import{normalizeMenuModel as u}from"@gjsify/adwaita-core";const d=`menuItemActivated`;var GtkMenuButton=class extends o{static GTypeName=`GtkMenuButton`;_model=[];_actions=null;_menuTitle=``;_primary=!1;_baseClassName;_styleClasses=[];constructor(t){super(),this._baseClassName=`${this.className} adw-menu-button`.trim(),this.className=this._baseClassName,this.addEventListener(`tap`,()=>this._openMenu()),e(this,t)}get menuModel(){return this._model}set menuModel(e){c(e,`GtkMenuButton`);let t=u(e);s(t),this._model=t}get menu_model(){return this.menuModel}set menu_model(e){this.menuModel=e}get_menu_model(){return this.menuModel}set_menu_model(e){this.menuModel=e}get actions(){return this._actions}set actions(e){this._actions=e??null}get menuTitle(){return this._menuTitle}set menuTitle(e){this._menuTitle=e??``}get styleClasses(){return[...this._styleClasses]}set styleClasses(e){this._setClasses(r(e))}get primary(){return this._primary}set primary(e){this._primary=t(e,this._primary)}add_css_class(e){this._setClasses(i(this._styleClasses,e))}remove_css_class(e){this._setClasses(a(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(r([...e].join(` `)))}_setClasses(e){this._styleClasses=e,this.className=n(this._baseClassName,e)}_openMenu(){this._model.length!==0&&l(this,{model:this._model,actions:this._actions,onActivated:(e,t)=>{let n={eventName:d,object:this,id:e.id??e.label,label:e.label,path:t,action:e.action};this.notify(n)}})}};export{GtkMenuButton,d as MENU_ITEM_ACTIVATED};
@@ -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{AdwSingleChildBase as r}from"./single-child-base.js";import{DEFAULT_SCROLLBAR_POLICY as i,GTK_POLICY_TYPES as a,normalizePolicy as o,scrollOrientationFor as s}from"./scrolled-window-policy.js";import{GtkAdjustment as c}from"@gjsify/adwaita-core";import{ContentView as l,GridLayout as u,ScrollView as d}from"@nativescript/core";var GtkScrolledWindow=class extends r{static GTypeName=`GtkScrolledWindow`;static builderSlots=e([`child`],`child`);_scroll=new d;_viewport=new l;_hscrollbarPolicy=i;_vscrollbarPolicy=i;_hasFrame=!1;_hadjustment=null;_vadjustment=null;constructor(e){super(),u.setColumn(this._scroll,0),u.setRow(this._scroll,0),this._scroll.content=this._viewport,this.addChild(this._scroll),this._applyOrientation(),t(this,e)}get hscrollbarPolicy(){return this._hscrollbarPolicy}set hscrollbarPolicy(e){this._hscrollbarPolicy=o(e,`hscrollbar-policy`),this._applyOrientation()}get vscrollbarPolicy(){return this._vscrollbarPolicy}set vscrollbarPolicy(e){this._vscrollbarPolicy=o(e,`vscrollbar-policy`),this._applyOrientation()}get_policy(){return[a.indexOf(this._hscrollbarPolicy),a.indexOf(this._vscrollbarPolicy)]}set_policy(e,t){for(let[n,r]of[[e,`hscrollbar_policy`],[t,`vscrollbar_policy`]])if(!Number.isInteger(n)||a[n]===void 0)throw TypeError(`${n} is not a valid value for enum argument ${r}`);this.hscrollbarPolicy=a[e],this.vscrollbarPolicy=a[t]}get hadjustment(){return this._hadjustment??=new c}get vadjustment(){return this._vadjustment??=new c}get_hadjustment(){return this.hadjustment}get_vadjustment(){return this.vadjustment}set_hadjustment(e){this._hadjustment=e}set_vadjustment(e){this._vadjustment=e}get hasFrame(){return this._hasFrame}set hasFrame(e){this._hasFrame=n(e,this._hasFrame)}_adopt(e){this._viewport.content=e}_release(e){this._viewport.content===e&&(this._viewport.content=null)}_applyOrientation(){let e=s(this._hscrollbarPolicy,this._vscrollbarPolicy);this._scroll.orientation=e}};export{GtkScrolledWindow};
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{AdwSingleChildBase as r}from"./single-child-base.js";import{DEFAULT_SCROLLBAR_POLICY as i,GTK_POLICY_TYPES as a,normalizePolicy as o,scrollOrientationFor as s}from"./scrolled-window-policy.js";import{GtkAdjustment as c}from"@gjsify/adwaita-core";import{ContentView as l,GridLayout as u,ScrollView as d}from"@nativescript/core";var GtkScrolledWindow=class extends r{static GTypeName=`GtkScrolledWindow`;static builderSlots=e([`child`],`child`);_scroll=new d;_viewport=new l;_hscrollbarPolicy=i;_vscrollbarPolicy=i;_hasFrame=!1;_hadjustment=null;_vadjustment=null;_listening=!1;_syncing=!1;constructor(e){super(),u.setColumn(this._scroll,0),u.setRow(this._scroll,0),this._scroll.content=this._viewport,this.addChild(this._scroll),this._applyOrientation(),t(this,e)}get hscrollbarPolicy(){return this._hscrollbarPolicy}set hscrollbarPolicy(e){this._hscrollbarPolicy=o(e,`hscrollbar-policy`),this._applyOrientation()}get vscrollbarPolicy(){return this._vscrollbarPolicy}set vscrollbarPolicy(e){this._vscrollbarPolicy=o(e,`vscrollbar-policy`),this._applyOrientation()}get_policy(){return[a.indexOf(this._hscrollbarPolicy),a.indexOf(this._vscrollbarPolicy)]}set_policy(e,t){for(let[n,r]of[[e,`hscrollbar_policy`],[t,`vscrollbar_policy`]])if(!Number.isInteger(n)||a[n]===void 0)throw TypeError(`${n} is not a valid value for enum argument ${r}`);this.hscrollbarPolicy=a[e],this.vscrollbarPolicy=a[t]}get hadjustment(){return this._hadjustment??=this._track(`horizontal`,new c)}get vadjustment(){return this._vadjustment??=this._track(`vertical`,new c)}get_hadjustment(){return this.hadjustment}get_vadjustment(){return this.vadjustment}set_hadjustment(e){this._hadjustment=this._track(`horizontal`,e)}set_vadjustment(e){this._vadjustment=this._track(`vertical`,e)}_track(e,t){return this._listening||(this._listening=!0,this._scroll.addEventListener(`scroll`,this._syncAdjustments),this._scroll.addEventListener(`layoutChanged`,this._syncAdjustments),this._viewport.addEventListener(`layoutChanged`,this._syncAdjustments)),t.connect(`value-changed`,()=>{let n=e===`horizontal`?this._hadjustment:this._vadjustment;this._syncing||n!==t||(e===`horizontal`?this._scroll.scrollToHorizontalOffset(t.value,!1):this._scroll.scrollToVerticalOffset(t.value,!1))}),this._syncAxis(e,t),t}_syncAdjustments=()=>{this._hadjustment&&this._syncAxis(`horizontal`,this._hadjustment),this._vadjustment&&this._syncAxis(`vertical`,this._vadjustment)};_syncAxis(e,t){let n=e===`vertical`,r=this._scroll.getActualSize(),i=this._viewport.getActualSize(),a=n?r.height:r.width,o=Math.max(n?i.height:i.width,a),s=n?this._scroll.verticalOffset:this._scroll.horizontalOffset;this._syncing=!0;try{t.configure(s,0,o,a*.1,a*.9,a)}finally{this._syncing=!1}}get hasFrame(){return this._hasFrame}set hasFrame(e){this._hasFrame=n(e,this._hasFrame)}_adopt(e){this._viewport.content=e}_release(e){this._viewport.content===e&&(this._viewport.content=null)}_applyOrientation(){let e=s(this._hscrollbarPolicy,this._vscrollbarPolicy);this._scroll.orientation=e}};export{GtkScrolledWindow};
@@ -1 +1 @@
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{GTK_STACK_TRANSITIONS as i,transitionNick as a}from"./transition-type.js";import{StyleClassList as o}from"./style-classes.js";import{applyViewStackVisibility as s,createViewStackState as c,viewStackNotifyPayload as l}from"./view-stack-state.js";import{GtkStackPage as u}from"./stack-page.js";import{GridLayout as d,ItemSpec as f}from"@nativescript/core";const p=`notify::visible-child`,m=`notify::visible-child-name`;var GtkStack=class extends r(d){static GTypeName=`GtkStack`;static emittedSignals=[p,m];static builderSlots=[];_state=c();_classList=new o;_transitionType=`none`;_transitionDuration=200;_hhomogeneous=!0;_vhomogeneous=!0;_interpolateSize=!1;constructor(t){super(),this.addColumn(new f(1,`star`)),this.addRow(new f(1,`star`)),this._state.subscribe(e=>{s(this._state);let t=l(e);for(let e of[p,m]){let n={eventName:e,object:this,...t};this.notify(n)}}),e(this,t)}add_named(e,t){return this._add(e,t??``)}add_titled(e,t,n){return this._add(e,t??``,n)}add_child(e){return this._add(e,``)}remove(e){let t=this._state.pages.find(t=>t.content===e);return!t||!this._state.removePage(t.name)?!1:(this.removeChild(e),s(this._state),!0)}get_child_by_name(e){return this._state.pages[this._state.indexOfName(e)]?.content??null}setPageVisible(e,t){let n=this._state.setPageVisible(e,t);return s(this._state),n}_addChildFromBuilder(e,t){if(!(t instanceof u)){this._add(t,``);return}let n=t.child;if(n===null){t._awaitChild(this);return}t._adoptBy(this),this._state.addPage({name:t.name,title:t.title,icon:t.iconName,content:n,visible:t.visible,needsAttention:t.needsAttention,useUnderline:t.useUnderline}),this._place(n)}get visibleChildName(){return this._state.visibleName||null}set visibleChildName(e){this._state.setVisibleName(e)}get visibleChild(){return this._state.visiblePage?.content??null}set visibleChild(e){let t=this._state.pages.findIndex(t=>t.content===e);t!==-1&&this._state.setVisibleIndex(t)}get transitionType(){return this._transitionType}set transitionType(e){this._transitionType=a(e,i,`Gtk.StackTransitionType`)}get transitionDuration(){return this._transitionDuration}set transitionDuration(e){this._transitionDuration=Math.max(0,n(e,this._transitionDuration))}get hhomogeneous(){return this._hhomogeneous}set hhomogeneous(e){this._hhomogeneous=t(e,this._hhomogeneous)}get vhomogeneous(){return this._vhomogeneous}set vhomogeneous(e){this._vhomogeneous=t(e,this._vhomogeneous)}get interpolateSize(){return this._interpolateSize}set interpolateSize(e){this._interpolateSize=t(e,this._interpolateSize)}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}_add(e,t,n){let r=this._state.addPage({name:t,title:n,content:e});return this._place(e),r}_place(e){d.setColumn(e,0),d.setRow(e,0),this.addChild(e),s(this._state)}};export{GtkStack,p as NOTIFY_STACK_VISIBLE_CHILD,m as NOTIFY_STACK_VISIBLE_CHILD_NAME};
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{GTK_STACK_TRANSITIONS as i,transitionNick as a}from"./transition-type.js";import{StyleClassList as o}from"./style-classes.js";import{applyViewStackVisibility as s,createViewStackState as c,viewStackNotifyPayload as l}from"./view-stack-state.js";import{GtkStackPage as u}from"./stack-page.js";import{GridLayout as d,ItemSpec as f}from"@nativescript/core";const p=`notify::visible-child`,m=`notify::visible-child-name`;var GtkStack=class extends r(d){static GTypeName=`GtkStack`;static emittedSignals=[p,m];static builderSlots=[];_state=c();_classList=new o;_transitionType=`none`;_transitionDuration=200;_hhomogeneous=!0;_vhomogeneous=!0;_interpolateSize=!1;constructor(t){super(),this.addColumn(new f(1,`star`)),this.addRow(new f(1,`star`)),this._state.subscribe(e=>{s(this._state);let t=l(e);for(let e of[p,m]){let n={eventName:e,object:this,...t};this.notify(n)}}),e(this,t)}add_named(e,t){return this._add(e,t??``)}add_titled(e,t,n){return this._add(e,t??``,n)}add_child(e){return this._add(e,``)}remove(e){let t=this._state.pages.find(t=>t.content===e);return!t||!this._state.removePage(t.name)?!1:(this.removeChild(e),s(this._state),!0)}get_child_by_name(e){return this._state.pages[this._state.indexOfName(e)]?.content??null}setPageVisible(e,t){let n=this._state.setPageVisible(e,t);return s(this._state),n}_addChildFromBuilder(e,t){if(!(t instanceof u)){this._add(t,``);return}let n=t.child;if(n===null){t._awaitChild(this);return}t._adoptBy(this),this._state.addPage({name:t.name,title:t.title,icon:t.iconName,content:n,visible:t.visible,needsAttention:t.needsAttention,useUnderline:t.useUnderline}),this._place(n)}get visibleChildName(){return this._state.visibleName||null}set visibleChildName(e){this._state.setVisibleName(e)}get visibleChild(){return this._state.visiblePage?.content??null}set visibleChild(e){let t=this._state.pages.findIndex(t=>t.content===e);t!==-1&&this._state.setVisibleIndex(t)}get_visible_child_name(){return this.visibleChildName}set_visible_child_name(e){this.visibleChildName=e}get_visible_child(){return this.visibleChild}set_visible_child(e){this.visibleChild=e}get transitionType(){return this._transitionType}set transitionType(e){this._transitionType=a(e,i,`Gtk.StackTransitionType`)}get transitionDuration(){return this._transitionDuration}set transitionDuration(e){this._transitionDuration=Math.max(0,n(e,this._transitionDuration))}get hhomogeneous(){return this._hhomogeneous}set hhomogeneous(e){this._hhomogeneous=t(e,this._hhomogeneous)}get vhomogeneous(){return this._vhomogeneous}set vhomogeneous(e){this._vhomogeneous=t(e,this._vhomogeneous)}get interpolateSize(){return this._interpolateSize}set interpolateSize(e){this._interpolateSize=t(e,this._interpolateSize)}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}_add(e,t,n){let r=this._state.addPage({name:t,title:n,content:e});return this._place(e),r}_place(e){d.setColumn(e,0),d.setRow(e,0),this.addChild(e),s(this._state)}};export{GtkStack,p as NOTIFY_STACK_VISIBLE_CHILD,m as NOTIFY_STACK_VISIBLE_CHILD_NAME};
@@ -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{GtkButton as n}from"./gtk-button.js";const r=`toggled`,i=`notify::active`,a=`checked`,o=`notify::group`;var s=class GtkToggleButton extends n{static GTypeName=`GtkToggleButton`;static emittedSignals=[...n.emittedSignals,r,i];_active=!1;_groupNext=null;_groupPrev=null;constructor(t){super(),this.addEventListener(`clicked`,()=>{this._active&&this._grouped||(this.active=!this._active)}),e(this,t)}get active(){return this._active}set active(e){let n=t(e,this._active);n!==this._active&&(n&&this._grouped&&this._clearGroup(),this._active=n,this._restyle(),this.notify({eventName:r,object:this}),this.notify({eventName:i,object:this}))}set group(e){this._setGroup(e)}get _grouped(){return this._groupNext!==null||this._groupPrev!==null}_setGroup(e){if(e===this){console.error(`Gtk.ToggleButton cannot be its own group; the group is unchanged.`);return}if(e===null)this._groupPrev&&(this._groupPrev._groupNext=this._groupNext),this._groupNext&&(this._groupNext._groupPrev=this._groupPrev),this._groupNext=null,this._groupPrev=null;else{if(this._groupNext===e)return;if(this._groupPrev=null,e._groupPrev){let t=e._groupPrev;t._groupNext=this,this._groupPrev=t}e._groupPrev=this,this._groupNext=e}this.notify({eventName:o,object:this})}_clearGroup(){for(let e=GtkToggleButton._groupHead(this);e!==null;e=e._groupNext)e!==this&&(e.active=!1)}static _groupHead(e){let t=e;for(let e=0;t._groupPrev!==null&&e<1024;e++)t=t._groupPrev;return t}_stateClasses(){let e=super._stateClasses();return this._active?[...e,a]:e}};export{a as GTK_TOGGLE_BUTTON_CHECKED_CLASS,r as GTK_TOGGLE_BUTTON_TOGGLED,s as GtkToggleButton,i as NOTIFY_TOGGLE_ACTIVE,o as NOTIFY_TOGGLE_GROUP};
1
+ import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{xmlBoolean as t}from"./xml-values.js";import{GtkButton as n}from"./gtk-button.js";const r=`toggled`,i=`notify::active`,a=`checked`,o=`notify::group`;var s=class GtkToggleButton extends n{static GTypeName=`GtkToggleButton`;static emittedSignals=[r,i];_active=!1;_groupNext=null;_groupPrev=null;constructor(t){super(),this.connect(`clicked`,e=>{e._active&&e._grouped||(e.active=!e._active)}),e(this,t)}get active(){return this._active}set active(e){let n=t(e,this._active);n!==this._active&&(n&&this._grouped&&this._clearGroup(),this._active=n,this._restyle(),this.notify({eventName:r,object:this}),this.notify({eventName:i,object:this}))}set group(e){this._setGroup(e)}get _grouped(){return this._groupNext!==null||this._groupPrev!==null}_setGroup(e){if(e===this){console.error(`Gtk.ToggleButton cannot be its own group; the group is unchanged.`);return}if(e===null)this._groupPrev&&(this._groupPrev._groupNext=this._groupNext),this._groupNext&&(this._groupNext._groupPrev=this._groupPrev),this._groupNext=null,this._groupPrev=null;else{if(this._groupNext===e)return;if(this._groupPrev=null,e._groupPrev){let t=e._groupPrev;t._groupNext=this,this._groupPrev=t}e._groupPrev=this,this._groupNext=e}this.notify({eventName:o,object:this})}_clearGroup(){for(let e=GtkToggleButton._groupHead(this);e!==null;e=e._groupNext)e!==this&&(e.active=!1)}static _groupHead(e){let t=e;for(let e=0;t._groupPrev!==null&&e<1024;e++)t=t._groupPrev;return t}_stateClasses(){let e=super._stateClasses();return this._active?[...e,a]:e}};export{a as GTK_TOGGLE_BUTTON_CHECKED_CLASS,r as GTK_TOGGLE_BUTTON_TOGGLED,s as GtkToggleButton,i as NOTIFY_TOGGLE_ACTIVE,o as NOTIFY_TOGGLE_GROUP};
@@ -1 +1 @@
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{surfaceSize as r}from"./window-state.js";import{windowHost as i}from"../window-host.js";import{defineWindowApplication as a}from"./application.js";import{AdwSingleChildBase as o}from"./single-child-base.js";import{CloseRequestState as s,HandledAccumulator as c,WindowMemberState as l}from"@gjsify/adwaita-core";const u=`notify::is-active`,d=`notify::maximized`,f=`notify::focus-widget`,p=`close-request`;var m=class GtkWindow extends o{static GTypeName=`GtkWindow`;_title=``;_defaultWidth=0;_defaultHeight=0;_members=new l(e=>{let t=e===`is-active`?u:d;this.notify({eventName:t,object:this,value:e===`is-active`?this.isActive:this.maximized})},{maximized:!0});_closeRequest=new s;_unwatchForeground=null;_unwatchBack=null;constructor(t){super(),e(this,t)}onLoaded(){super.onLoaded();let e=i();this._unwatchForeground?.(),this._unwatchForeground=e.watchForeground(e=>this._members.reportActive(e)),this._members.reportActive(e.isForeground()),this._unwatchBack?.(),this._unwatchBack=this._isToplevel()?e.watchBack(()=>this._handleBack()):null}onUnloaded(){this._unwatchForeground?.(),this._unwatchForeground=null,this._unwatchBack?.(),this._unwatchBack=null,this._members.reportActive(!1),super.onUnloaded()}get isActive(){return this._members.active}get is_active(){return this._members.active}get maximized(){return this._members.maximized}set maximized(e){t(e,!0)?this.maximize():this.unmaximize()}is_maximized(){return this.maximized}maximize(){}unmaximize(){throw Error(`GtkWindow.unmaximize is not supported on NativeScript: the window is the whole screen and the platform has no un-maximized state to go back to.`)}present(){}get focusWidget(){return this.get_focus()}get focus_widget(){return this.get_focus()}set focus_widget(e){this.set_focus(e)}get_focus(){let e=i();return findView(this,t=>e.isFocused(t))}set_focus(e){let t=i();if(e===null){let e=this.get_focus();e!==null&&t.clearFocus(e);return}if(findView(this,t=>t===e)===null)throw Error(`GtkWindow.set_focus: the widget is not a descendant of this window.`);t.requestFocus(e)}close(){let e=i();if(this.isLoaded&&!e.canFinish)throw Error(`GtkWindow.close is not supported on this platform: iOS has no public API to close the root window. Android finishes the foreground activity.`);this._requestClose()}_requestClose(){let e=i();this._closeRequest.close({realized:this.isLoaded,hideOnClose:!1,emit:()=>{let e=new c;return this.notify({eventName:p,object:this,accumulator:e}),e.stopped},hide:()=>{},destroy:()=>e.finish()})}_handleBack(){return this._consumeBack()||popInnermostNavigation(this)||this._requestClose(),!0}_consumeBack(){return!1}_isToplevel(){for(let e=this.parent;e;e=e.parent)if(e instanceof GtkWindow)return!1;return!0}connect(e,t){if(e===`notify::focus-widget`)throw Error(`GtkWindow notify::focus-widget is not supported on NativeScript: focus the user moves is not observable here. Read get_focus() when you need it.`);return super.connect(e,t)}get title(){return this._title}set title(e){this._title=e??``}get defaultWidth(){return this._defaultWidth}set defaultWidth(e){this._defaultWidth=r(n(e,NaN),e,this._defaultWidth,`defaultWidth`)}get defaultHeight(){return this._defaultHeight}set defaultHeight(e){this._defaultHeight=r(n(e,NaN),e,this._defaultHeight,`defaultHeight`)}};function findView(e,t){let n=null;return e.eachChildView(e=>t(e)?(n=e,!1):(n=findView(e,t),n===null)),n}const popsOnBack=e=>typeof e.popFromShortcut==`function`;function popInnermostNavigation(e){let t=!1;return e.eachChildView(e=>e.visibility===`visible`&&(popInnermostNavigation(e)||popsOnBack(e)&&e.isLoaded&&e.popFromShortcut()===`stop`)?(t=!0,!1):!0),t}a(m.prototype);export{p as CLOSE_REQUEST,m as GtkWindow,f as NOTIFY_FOCUS_WIDGET,u as NOTIFY_IS_ACTIVE,d as NOTIFY_MAXIMIZED};
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{surfaceSize as r}from"./window-state.js";import{windowHost as i}from"../window-host.js";import{defineWindowApplication as a}from"./application.js";import{AdwSingleChildBase as o}from"./single-child-base.js";import{CloseRequestState as s,HandledAccumulator as c,WindowMemberState as l,stepDefaultSize as u}from"@gjsify/adwaita-core";const d=`notify::is-active`,f=`notify::maximized`,p=`notify::focus-widget`,m=`close-request`;var h=class GtkWindow extends o{static GTypeName=`GtkWindow`;_title=``;_defaultWidth=0;_defaultHeight=0;_members=new l(e=>{let t=e===`is-active`?d:f;this.notify({eventName:t,object:this,value:e===`is-active`?this.isActive:this.maximized})},{maximized:!0});_closeRequest=new s;_unwatchForeground=null;_unwatchBack=null;constructor(t){super(),e(this,t)}onLoaded(){super.onLoaded();let e=i();this._unwatchForeground?.(),this._unwatchForeground=e.watchForeground(e=>this._members.reportActive(e)),this._members.reportActive(e.isForeground()),this._unwatchBack?.(),this._unwatchBack=this._isToplevel()?e.watchBack(()=>this._handleBack()):null}onUnloaded(){this._unwatchForeground?.(),this._unwatchForeground=null,this._unwatchBack?.(),this._unwatchBack=null,this._members.reportActive(!1),super.onUnloaded()}get isActive(){return this._members.active}get is_active(){return this._members.active}get maximized(){return this._members.maximized}set maximized(e){t(e,!0)?this.maximize():this.unmaximize()}is_maximized(){return this.maximized}maximize(){}unmaximize(){throw Error(`GtkWindow.unmaximize is not supported on NativeScript: the window is the whole screen and the platform has no un-maximized state to go back to.`)}present(){}get focusWidget(){return this.get_focus()}get focus_widget(){return this.get_focus()}set focus_widget(e){this.set_focus(e)}get_focus(){let e=i();return findView(this,t=>e.isFocused(t))}set_focus(e){let t=i();if(e===null){let e=this.get_focus();e!==null&&t.clearFocus(e);return}if(findView(this,t=>t===e)===null)throw Error(`GtkWindow.set_focus: the widget is not a descendant of this window.`);t.requestFocus(e)}close(){let e=i();if(this.isLoaded&&!e.canFinish)throw Error(`GtkWindow.close is not supported on this platform: iOS has no public API to close the root window. Android finishes the foreground activity.`);this._requestClose()}_requestClose(){let e=i();this._closeRequest.close({realized:this.isLoaded,hideOnClose:!1,emit:()=>{let e=new c;return this.notify({eventName:m,object:this,accumulator:e}),e.stopped},hide:()=>{},destroy:()=>e.finish()})}_handleBack(){return this._consumeBack()||popInnermostNavigation(this)||this._requestClose(),!0}_consumeBack(){return!1}_isToplevel(){for(let e=this.parent;e;e=e.parent)if(e instanceof GtkWindow)return!1;return!0}connect(e,t){if(e===`notify::focus-widget`)throw Error(`GtkWindow notify::focus-widget is not supported on NativeScript: focus the user moves is not observable here. Read get_focus() when you need it.`);return super.connect(e,t)}get title(){return this._title}set title(e){this._title=e??``}get defaultWidth(){return this._defaultWidth}set defaultWidth(e){this._defaultWidth=r(n(e,NaN),e,this._defaultWidth,`defaultWidth`)}get defaultHeight(){return this._defaultHeight}set defaultHeight(e){this._defaultHeight=r(n(e,NaN),e,this._defaultHeight,`defaultHeight`)}get_default_size(){return[this._defaultWidth,this._defaultHeight]}set_default_size(e,t){let n=u(this.get_default_size(),e,t);if(n!==null){this._defaultWidth=n.width,this._defaultHeight=n.height;for(let e of n.changed){let t=e===`default-width`?n.width:n.height;this.notify({eventName:`notify::${e}`,object:this,value:t})}}}};function findView(e,t){let n=null;return e.eachChildView(e=>t(e)?(n=e,!1):(n=findView(e,t),n===null)),n}const popsOnBack=e=>typeof e.popFromShortcut==`function`;function popInnermostNavigation(e){let t=!1;return e.eachChildView(e=>e.visibility===`visible`&&(popInnermostNavigation(e)||popsOnBack(e)&&e.isLoaded&&e.popFromShortcut()===`stop`)?(t=!0,!1):!0),t}a(h.prototype);export{m as CLOSE_REQUEST,h as GtkWindow,p as NOTIFY_FOCUS_WIDGET,d as NOTIFY_IS_ACTIVE,f as NOTIFY_MAXIMIZED};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{AdwBreakpoint as e,addBreakpoints as t,evaluateBreakpointCondition as ee,observeViewSize as te,observeWindowSize as ne,parseBreakpointCondition as re}from"./breakpoint.js";import{GTK_ALIGN as ie}from"./gtk-align.js";import{DEFAULT_ICON_PIXEL_SIZE as ae,GTK_ICON_SIZE_NICKS as oe,GTK_ICON_SIZE_PIXELS as se,PIXEL_SIZE_UNSET as ce,isGtkIconSizeNick as le}from"./gtk-icon-size.js";import{applyConstructProps as ue,nsAlignment as de}from"./construct-props.js";import{lengthValue as fe}from"./ns-length.js";import{SimpleAction as pe,SimpleActionGroup as me,activateWidgetAction as he,findActionGroup as ge,insertActionGroup as _e}from"./actions.js";import{NOTIFY_HEXPAND as ve,NOTIFY_VEXPAND as ye,withGtkWidgetLayout as be}from"./widget-layout.js";import{adwaitaColorScheme as xe,isThemeIconColor as Se,onAdwaitaColorSchemeChanged as Ce,setAdwaitaColorScheme as we,themeIconColor as Te,toggleAdwaitaColorScheme as Ee}from"./color-scheme.js";import{ADWAITA_ICON_GRID as De,DEFAULT_ICON_COLOR as Oe,DEFAULT_ICON_COLOR_DARK as ke,extractIconPaths as Ae,extractPathData as je}from"./icon-path.js";import{ICON_FALLBACK_NAME as Me,compiledIconNames as Ne,iconValueKind as Pe,isIconAvailable as Fe,resolveIconSource as Ie}from"./icon-theme.js";import{renderSymbolicIcon as Le}from"./icons.js";import{DEFAULT_GTK_IMAGE_SIZE as Re,GtkImage as n}from"./gtk-image.js";import{DEFAULT_REVEALER_TRANSITION_DURATION as ze,DEFAULT_STACK_TRANSITION_DURATION as Be,GTK_REVEALER_TRANSITIONS as Ve,GTK_STACK_TRANSITIONS as He,transitionNick as Ue}from"./transition-type.js";import{ADW_DIALOG_PRESENTATION_MODES as We,DEFAULT_DIALOG_PRESENTATION_MODE as Ge,dialogPresentationMode as Ke,findDialogHost as qe,surfaceSize as Je}from"./window-state.js";import{AdwAboutDialog as r,CLOSED as Ye}from"./adw-about-dialog.js";import{ACTIVATED as Xe,AdwActionRow as i}from"./adw-action-row.js";import{AdwAlertDialog as Ze,AdwAlertResponses as Qe}from"./adw-alert-dialog.js";import{GtkWindow as a}from"./gtk-window.js";import{ADW_WINDOW_CLASS as $e,AdwWindowBase as et}from"./window-base.js";import{AdwApplicationWindow as o}from"./adw-application-window.js";import{avatarInitials as tt}from"./avatar-color.js";import{AVATAR_DEFAULT_ICON as nt}from"./avatar-view.js";import{AdwAvatar as s,DEFAULT_AVATAR_SIZE as rt}from"./adw-avatar.js";import{DEFAULT_CLAMP_MAX_SIZE as it,DEFAULT_SPINNER_SIZE as at}from"./chrome.js";import{AdwBanner as c,BUTTON_CLICKED as ot}from"./adw-banner.js";import{AdwBin as l}from"./adw-bin.js";import{CLOSE_ATTEMPT as st,NOTIFY_OPEN as ct,SHEET_CLOSE as lt}from"./bottom-sheet-state.js";import{SHEET_CONTENT_BOTTOM_GAP as ut,bottomSheetInsetPadding as dt}from"./bottom-sheet-insets.js";import{attachRowPressFeedback as ft}from"./row-press.js";import{AdwBottomSheet as u,bottomSheetPanel as pt}from"./adw-bottom-sheet.js";import{AdwButtonContent as d}from"./adw-button-content.js";import{AdwButtonRow as f}from"./adw-button-row.js";import{CarouselScrollSync as mt,DEFAULT_CAROUSEL_PAGE_WIDTH as ht,applyMarkerClasses as gt,carouselDotClasses as _t,carouselNotifyPayload as vt,carouselPositionAtOffset as yt,carouselScrollOffset as bt,createCarouselState as xt,indicatorMarkerClasses as St,normalizeCarouselPageWidth as Ct}from"./carousel-state.js";import{AdwCarousel as p,NOTIFY_N_PAGES as wt,NOTIFY_POSITION as Tt,PAGE_CHANGED as Et}from"./adw-carousel.js";import{AdwCarouselIndicatorDots as m}from"./adw-carousel-indicator-dots.js";import{AdwCarouselIndicatorLines as h}from"./adw-carousel-indicator-lines.js";import{AdwClamp as g}from"./adw-clamp.js";import{AdwComboRow as _,ComboState as Dt,NOTIFY_SELECTED as Ot}from"./adw-combo-row.js";import{ADW_DIALOG_CLASS as kt,ADW_DIALOG_CLOSED as At,ADW_DIALOG_CLOSE_ATTEMPT as jt,AdwDialog as v}from"./adw-dialog.js";import{AdwImageButton as y,DEFAULT_ICON_BUTTON_ICON_SIZE as Mt}from"./adw-image-button.js";import{AdwEntryRow as b,NOTIFY_ACTIVATES_DEFAULT as Nt,NOTIFY_EDITABLE as Pt,NOTIFY_MAX_LENGTH as Ft,NOTIFY_SHOW_APPLY_BUTTON as It,NOTIFY_TEXT as Lt,NOTIFY_TEXT_LENGTH as Rt,SIGNAL_APPLY as zt,SIGNAL_ENTRY_ACTIVATED as Bt}from"./adw-entry-row.js";import{AdwExpanderRow as x,ExpanderState as Vt,NOTIFY_EXPANDED as Ht}from"./adw-expander-row.js";import{AdwWindowTitle as S}from"./adw-window-title.js";import{AdwHeaderBar as C}from"./adw-header-bar.js";import{AdwViewStackPage as Ut}from"./view-stack-page.js";import{AdwViewStack as w,NOTIFY_VISIBLE_CHILD as Wt}from"./adw-view-stack.js";import{AdwViewSwitcherBase as Gt,NOTIFY_SELECTED as Kt}from"./view-switcher-base.js";import{AdwInlineViewSwitcher as T}from"./adw-inline-view-switcher.js";import{NsNavigationSplitViewState as qt,NsOverlaySplitViewState as Jt,splitViewColumns as Yt}from"./split-view-state.js";import{AdwSplitViewBase as Xt,NOTIFY_SHOW_SIDEBAR as Zt}from"./split-view-base.js";import{AdwNavigationSplitView as E}from"./adw-navigation-split-view.js";import{AdwNavigationPage as D}from"./adw-navigation-page.js";import{NOTIFY_VISIBLE_PAGE as Qt}from"./navigation-stack.js";import{AdwNavigationView as O}from"./adw-navigation-view.js";import{AdwOverlaySplitView as k}from"./adw-overlay-split-view.js";import{AdwPasswordEntryRow as A}from"./adw-password-entry-row.js";import{AdwPreferencesDialog as j,CLOSED as $t}from"./adw-preferences-dialog.js";import{AdwPreferencesGroup as M}from"./adw-preferences-group.js";import{AdwPreferencesPage as N}from"./adw-preferences-page.js";import{SHORTCUT_LABEL_CAP_TEXT_CLASS as en,SHORTCUT_LABEL_CLASS as tn,SHORTCUT_LABEL_DIMMED_CLASS as nn,SHORTCUT_LABEL_DISABLED_CLASS as rn,SHORTCUT_LABEL_KEYCAP_CLASS as an,SHORTCUT_LABEL_KEYS_CLASS as on,SHORTCUT_LABEL_SIDE_CLASS as sn,SHORTCUT_LABEL_SPACED_CLASS as cn,shortcutLabelDirection as ln,shortcutLabelPlatform as un,shortcutLabelRenderPlan as dn}from"./shortcut-label.js";import{AdwShortcutLabel as P}from"./adw-shortcut-label.js";import{AdwSidebarItem as fn,AdwSidebarSection as pn}from"../values/sidebar.js";import{AdwSidebar as F,NOTIFY_SELECTED as mn}from"./adw-sidebar.js";import{AdwSpinRow as I,NOTIFY_VALUE as hn,SpinState as gn}from"./adw-spin-row.js";import{AdwSpinner as _n}from"./adw-spinner.js";import{GROUP_DIVIDER_API as vn,assertPopupMenuAssignable as yn,fillPopupMenu as bn,openPopupMenu as xn,refuseMenuString as Sn}from"./popup-menu.js";import{showMenuPopup as Cn}from"./popup-menu-view.js";import{DEFAULT_SCROLLBAR_POLICY as wn,GTK_POLICY_TYPES as Tn,normalizePolicy as En,policyScrolls as Dn,scrollOrientationFor as On}from"./scrolled-window-policy.js";import{AdwSplitButton as L,CLICKED as kn,MENU_TAPPED as An}from"./adw-split-button.js";import{AdwStatusPage as R}from"./adw-status-page.js";import{AdwSwitchRow as z,NOTIFY_ACTIVE as jn}from"./adw-switch-row.js";import{AdwTabPage as Mn}from"../values/tab-page.js";import{applyTabViewVisibility as Nn,createTabViewState as Pn,tabBarVisibility as Fn,tabCloseVisibilities as In,tabLabelText as Ln,tabPageVisibilities as Rn,tabTooltipText as zn,tabViewNotifyPayload as Bn}from"./tab-view-state.js";import{AdwTabView as B,CLOSE_PAGE as Vn,NOTIFY_SELECTED_PAGE as Hn,PAGES_CHANGED as Un}from"./adw-tab-view.js";import{AdwToast as Wn,AdwToastOverlay as V,AdwToastQueue as Gn,DEFAULT_TOAST_TIMEOUT as Kn}from"./adw-toast-overlay.js";import{AdwToggle as qn}from"./adw-toggle.js";import{AdwToggleGroup as H,NOTIFY_SELECTED as Jn,ToggleGroupState as Yn}from"./adw-toggle-group.js";import{WINDOW_BACKGROUND as Xn,configureSystemBars as Zn,systemBarsConfig as Qn}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 $n,boxChildTrack as er,boxSpacingChanges as tr,boxTrackPlan as nr,normalizeBoxSpacing as rr}from"./box-layout.js";import{GtkBox as Y}from"./gtk-box.js";import{buttonSlotAfterWrite as ir,buttonSlotDetaches as ar}from"./button-slot.js";import{GTK_BUTTON_CLICKED as or,GTK_BUTTON_LABEL_CLASS as sr,GtkButton as X}from"./gtk-button.js";import{GtkDropDown as Z,NOTIFY_SELECTED as cr}from"./gtk-drop-down.js";import{GTK_CHECK_BUTTON_ACTIVATE as lr,GTK_CHECK_BUTTON_CHECKED_CLASS as ur,GTK_CHECK_BUTTON_INCONSISTENT_CLASS as dr,GTK_CHECK_BUTTON_TOGGLED as fr,GtkCheckButton as Q,NOTIFY_CHECK_ACTIVE as pr}from"./gtk-check-button.js";import{DRAWING_AREA_REFUSAL as mr,GtkDrawingArea as $}from"./gtk-drawing-area.js";import{ACTIVATE as hr,GtkEntry as gr,NOTIFY_TEXT as _r}from"./gtk-entry.js";import{gridChildAt as vr,gridGap as yr,gridSpacing as br,gridTrackCounts as xr}from"./grid-state.js";import{GtkGrid as Sr}from"./gtk-grid.js";import{GtkFrame as Cr}from"./gtk-frame.js";import{GtkLabel as wr}from"./gtk-label.js";import{DEFAULT_LIST_SELECTION_MODE as Tr,GTK_SELECTION_MODES as Er,selectionAfterModeChange as Dr,selectionAfterTap as Or,selectionMode as kr}from"./list-box-state.js";import{GtkListBox as Ar,LIST_BOX_ROW_ACTIVATED as jr,LIST_BOX_ROW_SELECTED as Mr,LIST_ROW_SELECTED_CLASS as Nr}from"./gtk-list-box.js";import{GtkMenuButton as Pr,MENU_ITEM_ACTIVATED as Fr}from"./gtk-menu-button.js";import{GtkPopoverMenu as Ir}from"./gtk-popover-menu.js";import{GtkOverlay as Lr}from"./gtk-overlay.js";import{revealerChildVisibility as Rr}from"./revealer-state.js";import{GtkRevealer as zr,NOTIFY_REVEAL_CHILD as Br}from"./gtk-revealer.js";import{GtkScrolledWindow as Vr}from"./gtk-scrolled-window.js";import{GtkSeparator as Hr}from"./gtk-separator.js";import{GtkStackPage as Ur}from"./stack-page.js";import{GtkStack as Wr,NOTIFY_STACK_VISIBLE_CHILD as Gr,NOTIFY_STACK_VISIBLE_CHILD_NAME as Kr}from"./gtk-stack.js";import{GTK_WRAP_MODES as qr,GtkTextView as Jr,NOTIFY_TEXT_VIEW_TEXT as Yr}from"./gtk-text-view.js";import{GTK_TOGGLE_BUTTON_CHECKED_CLASS as Xr,GTK_TOGGLE_BUTTON_TOGGLED as Zr,GtkToggleButton as Qr,NOTIFY_TOGGLE_ACTIVE as $r}from"./gtk-toggle-button.js";import{AdwSliderRow as ei,NOTIFY_SLIDER_VALUE as ti}from"./adw-slider-row.js";import{DATA_GRID_HEADER_CELL_CLASS as ni,DATA_GRID_HEADER_ROW_CLASS as ri,DATA_GRID_SECTION_CELL_CLASS as ii,dataGridCellClass as ai,dataGridItemSpec as oi,dataGridRowClass as si,dataGridShapeKey as ci,dataGridTracksKey as li,parseDataGridWidth as ui}from"./data-grid-model.js";import{AdwDataGrid as di,ROW_ACTIVATED as fi}from"./adw-data-grid.js";import{ADWAITA_NS_ACCENT_RULES as pi,adwaitaNsAccentColor as mi,adwaitaNsAccentCss as hi}from"./accent-theme.js";import{applyAdwaitaNsAccent as gi,clearAdwaitaNsAccent as _i}from"./adw-accent.js";import{padForSystemInsets as vi,padSheetForSystemInsets as yi}from"./system-insets.js";import{labelDisplayText as bi,labelMarkupIsUnparseable as xi}from"@gjsify/adwaita-core";const Si={AdwPreferencesPage:N,AdwPreferencesGroup:M,AdwActionRow:i,AdwSwitchRow:z,AdwEntryRow:b,AdwPasswordEntryRow:A,GtkEntry:gr,AdwComboRow:_,GtkDropDown:Z,AdwSpinRow:I,AdwSliderRow:ei,AdwExpanderRow:x,GtkButton:X,GtkBox:Y,GtkGrid:Sr,GtkListBox:Ar,AdwWindow:K,AdwApplicationWindow:o,AdwDialog:v,GtkActionBar:J,AdwBin:l,GtkOverlay:Lr,GtkRevealer:zr,GtkScrolledWindow:Vr,GtkWindow:a,GtkStack:Wr,GtkToggleButton:Qr,GtkCheckButton:Q,GtkDrawingArea:$,GtkFrame:Cr,GtkSeparator:Hr,GtkTextView:Jr,GtkLabel:wr,AdwImageButton:y,GtkMenuButton:Pr,GtkImage:n,AdwBanner:c,AdwAvatar:s,AdwWindowTitle:S,AdwClamp:g,AdwHeaderBar:C,AdwToolbarView:U,AdwWrapBox:q,AdwDataGrid:di,AdwSpinner:_n,AdwStatusPage:R,AdwButtonRow:f,AdwButtonContent:d,AdwSplitButton:L,AdwToggleGroup:H,AdwShortcutLabel:P,AdwViewStack:w,AdwViewSwitcher:W,AdwViewSwitcherBar:G,AdwInlineViewSwitcher:T,AdwTabView:B,AdwCarousel:p,AdwCarouselIndicatorDots:m,AdwCarouselIndicatorLines:h,AdwNavigationPage:D,AdwNavigationView:O,AdwNavigationSplitView:E,AdwOverlaySplitView:k,AdwSidebar:F,AdwBottomSheet:u,AdwToastOverlay:V,AdwAboutDialog:r,AdwPreferencesDialog:j};let Ci=!1;function registerAdwaitaElements(){if(!Ci&&typeof registerElement==`function`){for(let[e,t]of Object.entries(Si))registerElement(e,()=>t);Ci=!0}}export{Ye as ABOUT_CLOSED,Xe as ACTIVATED,De as ADWAITA_ICON_GRID,pi as ADWAITA_NS_ACCENT_RULES,kt as ADW_DIALOG_CLASS,At as ADW_DIALOG_CLOSED,jt as ADW_DIALOG_CLOSE_ATTEMPT,We as ADW_DIALOG_PRESENTATION_MODES,$e as ADW_WINDOW_CLASS,nt as AVATAR_DEFAULT_ICON,r as AdwAboutDialog,i as AdwActionRow,Ze as AdwAlertDialog,Qe as AdwAlertResponses,o as AdwApplicationWindow,s as AdwAvatar,c as AdwBanner,l as AdwBin,u as AdwBottomSheet,e as AdwBreakpoint,d as AdwButtonContent,f as AdwButtonRow,p as AdwCarousel,m as AdwCarouselIndicatorDots,h as AdwCarouselIndicatorLines,g as AdwClamp,_ as AdwComboRow,di as AdwDataGrid,v as AdwDialog,b as AdwEntryRow,x as AdwExpanderRow,C as AdwHeaderBar,y as AdwImageButton,T as AdwInlineViewSwitcher,D as AdwNavigationPage,E as AdwNavigationSplitView,O as AdwNavigationView,k as AdwOverlaySplitView,A as AdwPasswordEntryRow,j as AdwPreferencesDialog,M as AdwPreferencesGroup,N as AdwPreferencesPage,P as AdwShortcutLabel,F as AdwSidebar,fn as AdwSidebarItem,pn as AdwSidebarSection,ei as AdwSliderRow,I as AdwSpinRow,_n as AdwSpinner,L as AdwSplitButton,Xt as AdwSplitViewBase,R as AdwStatusPage,z as AdwSwitchRow,Mn as AdwTabPage,B as AdwTabView,Wn as AdwToast,V as AdwToastOverlay,Gn as AdwToastQueue,qn as AdwToggle,H as AdwToggleGroup,U as AdwToolbarView,w as AdwViewStack,Ut as AdwViewStackPage,W as AdwViewSwitcher,G as AdwViewSwitcherBar,Gt as AdwViewSwitcherBase,K as AdwWindow,et as AdwWindowBase,S as AdwWindowTitle,q as AdwWrapBox,ot as BUTTON_CLICKED,kn as CLICKED,st as CLOSE_ATTEMPT,Vn as CLOSE_PAGE,mt as CarouselScrollSync,Dt as ComboState,ni as DATA_GRID_HEADER_CELL_CLASS,ri as DATA_GRID_HEADER_ROW_CLASS,ii as DATA_GRID_SECTION_CELL_CLASS,rt as DEFAULT_AVATAR_SIZE,$n as DEFAULT_BOX_SPACING,ht as DEFAULT_CAROUSEL_PAGE_WIDTH,it as DEFAULT_CLAMP_MAX_SIZE,Ge as DEFAULT_DIALOG_PRESENTATION_MODE,Re as DEFAULT_GTK_IMAGE_SIZE,Mt as DEFAULT_ICON_BUTTON_ICON_SIZE,Oe as DEFAULT_ICON_COLOR,ke as DEFAULT_ICON_COLOR_DARK,ae as DEFAULT_ICON_PIXEL_SIZE,Tr as DEFAULT_LIST_SELECTION_MODE,ze as DEFAULT_REVEALER_TRANSITION_DURATION,wn as DEFAULT_SCROLLBAR_POLICY,at as DEFAULT_SPINNER_SIZE,Be as DEFAULT_STACK_TRANSITION_DURATION,Kn as DEFAULT_TOAST_TIMEOUT,mr as DRAWING_AREA_REFUSAL,hr as ENTRY_ACTIVATE,Vt as ExpanderState,vn as GROUP_DIVIDER_API,ie as GTK_ALIGN,or as GTK_BUTTON_CLICKED,sr as GTK_BUTTON_LABEL_CLASS,lr as GTK_CHECK_BUTTON_ACTIVATE,ur as GTK_CHECK_BUTTON_CHECKED_CLASS,dr as GTK_CHECK_BUTTON_INCONSISTENT_CLASS,fr as GTK_CHECK_BUTTON_TOGGLED,oe as GTK_ICON_SIZE_NICKS,se as GTK_ICON_SIZE_PIXELS,Tn as GTK_POLICY_TYPES,Ve as GTK_REVEALER_TRANSITIONS,Er as GTK_SELECTION_MODES,He as GTK_STACK_TRANSITIONS,Xr as GTK_TOGGLE_BUTTON_CHECKED_CLASS,Zr as GTK_TOGGLE_BUTTON_TOGGLED,qr as GTK_WRAP_MODES,J as GtkActionBar,Y as GtkBox,X as GtkButton,Q as GtkCheckButton,$ as GtkDrawingArea,Z as GtkDropDown,gr as GtkEntry,Cr as GtkFrame,Sr as GtkGrid,n as GtkImage,wr as GtkLabel,Ar as GtkListBox,Pr as GtkMenuButton,Lr as GtkOverlay,Ir as GtkPopoverMenu,zr as GtkRevealer,Vr as GtkScrolledWindow,Hr as GtkSeparator,Wr as GtkStack,Ur as GtkStackPage,Jr as GtkTextView,Qr as GtkToggleButton,a as GtkWindow,Me as ICON_FALLBACK_NAME,jr as LIST_BOX_ROW_ACTIVATED,Mr as LIST_BOX_ROW_SELECTED,Nr as LIST_ROW_SELECTED_CLASS,Fr as MENU_ITEM_ACTIVATED,An as MENU_TAPPED,Nt as NOTIFY_ACTIVATES_DEFAULT,jn as NOTIFY_ACTIVE,pr as NOTIFY_CHECK_ACTIVE,cr as NOTIFY_DROP_DOWN_SELECTED,Pt as NOTIFY_EDITABLE,_r as NOTIFY_ENTRY_TEXT,Ht as NOTIFY_EXPANDED,ve as NOTIFY_HEXPAND,Ft as NOTIFY_MAX_LENGTH,wt as NOTIFY_N_PAGES,ct as NOTIFY_OPEN,Tt as NOTIFY_POSITION,Br as NOTIFY_REVEAL_CHILD,Ot as NOTIFY_SELECTED,Hn as NOTIFY_SELECTED_PAGE,It as NOTIFY_SHOW_APPLY_BUTTON,Zt as NOTIFY_SHOW_SIDEBAR,mn as NOTIFY_SIDEBAR_SELECTED,ti as NOTIFY_SLIDER_VALUE,Gr as NOTIFY_STACK_VISIBLE_CHILD,Kr as NOTIFY_STACK_VISIBLE_CHILD_NAME,Lt as NOTIFY_TEXT,Rt as NOTIFY_TEXT_LENGTH,Yr as NOTIFY_TEXT_VIEW_TEXT,$r as NOTIFY_TOGGLE_ACTIVE,Jn as NOTIFY_TOGGLE_SELECTED,hn as NOTIFY_VALUE,ye as NOTIFY_VEXPAND,Kt as NOTIFY_VIEW_SELECTED,Wt as NOTIFY_VISIBLE_CHILD,Qt as NOTIFY_VISIBLE_PAGE,qt as NsNavigationSplitViewState,Jt as NsOverlaySplitViewState,Un as PAGES_CHANGED,Et as PAGE_CHANGED,ce as PIXEL_SIZE_UNSET,$t as PREFERENCES_CLOSED,fi as ROW_ACTIVATED,lt as SHEET_CLOSE,ut as SHEET_CONTENT_BOTTOM_GAP,en as SHORTCUT_LABEL_CAP_TEXT_CLASS,tn as SHORTCUT_LABEL_CLASS,nn as SHORTCUT_LABEL_DIMMED_CLASS,rn as SHORTCUT_LABEL_DISABLED_CLASS,an as SHORTCUT_LABEL_KEYCAP_CLASS,on as SHORTCUT_LABEL_KEYS_CLASS,sn as SHORTCUT_LABEL_SIDE_CLASS,cn as SHORTCUT_LABEL_SPACED_CLASS,zt as SIGNAL_APPLY,Bt as SIGNAL_ENTRY_ACTIVATED,pe as SimpleAction,me as SimpleActionGroup,gn as SpinState,Yn as ToggleGroupState,Xn as WINDOW_BACKGROUND,he as activateWidgetAction,t as addBreakpoints,xe as adwaitaColorScheme,mi as adwaitaNsAccentColor,hi as adwaitaNsAccentCss,gi as applyAdwaitaNsAccent,ue as applyConstructProps,gt as applyMarkerClasses,Nn as applyTabViewVisibility,yn as assertPopupMenuAssignable,ft as attachRowPressFeedback,tt as avatarInitials,dt as bottomSheetInsetPadding,pt as bottomSheetPanel,er as boxChildTrack,tr as boxSpacingChanges,nr as boxTrackPlan,ir as buttonSlotAfterWrite,ar as buttonSlotDetaches,_t as carouselDotClasses,vt as carouselNotifyPayload,yt as carouselPositionAtOffset,bt as carouselScrollOffset,_i as clearAdwaitaNsAccent,Ne as compiledIconNames,Zn as configureSystemBars,xt as createCarouselState,Pn as createTabViewState,ai as dataGridCellClass,oi as dataGridItemSpec,si as dataGridRowClass,ci as dataGridShapeKey,li as dataGridTracksKey,Ke as dialogPresentationMode,ee as evaluateBreakpointCondition,Ae as extractIconPaths,je as extractPathData,bn as fillPopupMenu,ge as findActionGroup,qe as findDialogHost,vr as gridChildAt,yr as gridGap,br as gridSpacing,xr as gridTrackCounts,Pe as iconValueKind,St as indicatorMarkerClasses,_e as insertActionGroup,le as isGtkIconSizeNick,Fe as isIconAvailable,Se as isThemeIconColor,bi as labelDisplayText,xi as labelMarkupIsUnparseable,fe as lengthValue,rr as normalizeBoxSpacing,Ct as normalizeCarouselPageWidth,En as normalizePolicy,de as nsAlignment,te as observeViewSize,ne as observeWindowSize,Ce as onAdwaitaColorSchemeChanged,xn as openPopupMenu,vi as padForSystemInsets,yi as padSheetForSystemInsets,re as parseBreakpointCondition,ui as parseDataGridWidth,Dn as policyScrolls,Sn as refuseMenuString,registerAdwaitaElements,Le as renderSymbolicIcon,Ie as resolveIconSource,Rr as revealerChildVisibility,On as scrollOrientationFor,Dr as selectionAfterModeChange,Or as selectionAfterTap,kr as selectionMode,we as setAdwaitaColorScheme,ln as shortcutLabelDirection,un as shortcutLabelPlatform,dn as shortcutLabelRenderPlan,Cn as showMenuPopup,Yt as splitViewColumns,Je as surfaceSize,Qn as systemBarsConfig,Fn as tabBarVisibility,In as tabCloseVisibilities,Ln as tabLabelText,Rn as tabPageVisibilities,zn as tabTooltipText,Bn as tabViewNotifyPayload,Te as themeIconColor,Ee as toggleAdwaitaColorScheme,Ue as transitionNick,be 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_ACTIVATES_DEFAULT as Pt,NOTIFY_EDITABLE as Ft,NOTIFY_MAX_LENGTH as It,NOTIFY_SHOW_APPLY_BUTTON as Lt,NOTIFY_TEXT as Rt,NOTIFY_TEXT_LENGTH as zt,SIGNAL_APPLY as Bt,SIGNAL_ENTRY_ACTIVATED as Vt}from"./adw-entry-row.js";import{AdwExpanderRow as b,NOTIFY_ENABLE_EXPANSION as Ht,NOTIFY_EXPANDED as Ut,NOTIFY_SHOW_ENABLE_SWITCH as Wt,NS_EXPANDER_ARROW_DISABLED_OPACITY as Gt}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 Kt}from"./view-stack-page.js";import{AdwViewStack as C,NOTIFY_VISIBLE_CHILD as qt}from"./adw-view-stack.js";import{AdwViewSwitcherBase as Jt,NOTIFY_SELECTED as Yt}from"./view-switcher-base.js";import{AdwInlineViewSwitcher as w}from"./adw-inline-view-switcher.js";import{NsNavigationSplitViewState as Xt,NsOverlaySplitViewState as Zt,splitViewColumns as Qt}from"./split-view-state.js";import{AdwSplitViewBase as $t,NOTIFY_SHOW_SIDEBAR as en}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 tn}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 nn}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 rn,SHORTCUT_LABEL_CLASS as an,SHORTCUT_LABEL_DIMMED_CLASS as on,SHORTCUT_LABEL_DISABLED_CLASS as sn,SHORTCUT_LABEL_KEYCAP_CLASS as cn,SHORTCUT_LABEL_KEYS_CLASS as ln,SHORTCUT_LABEL_SIDE_CLASS as un,SHORTCUT_LABEL_SPACED_CLASS as dn,shortcutLabelDirection as fn,shortcutLabelPlatform as pn,shortcutLabelRenderPlan as mn}from"./shortcut-label.js";import{AdwShortcutLabel as N}from"./adw-shortcut-label.js";import{AdwSidebarItem as hn,AdwSidebarSection as gn}from"../values/sidebar.js";import{AdwSidebar as P,NOTIFY_SELECTED as _n}from"./adw-sidebar.js";import{AdwSpinRow as F,NOTIFY_VALUE as vn,SpinState as yn}from"./adw-spin-row.js";import{AdwSpinner as I}from"./adw-spinner.js";import{GROUP_DIVIDER_API as bn,assertPopupMenuAssignable as xn,fillPopupMenu as Sn,openPopupMenu as Cn,refuseMenuString as wn}from"./popup-menu.js";import{showMenuPopup as Tn}from"./popup-menu-view.js";import{DEFAULT_SCROLLBAR_POLICY as En,GTK_POLICY_TYPES as Dn,normalizePolicy as On,policyScrolls as kn,scrollOrientationFor as An}from"./scrolled-window-policy.js";import{AdwSplitButton as L,CLICKED as jn,MENU_TAPPED as Mn}from"./adw-split-button.js";import{AdwStatusPage as R}from"./adw-status-page.js";import{AdwSwitchRow as z,NOTIFY_ACTIVE as Nn}from"./adw-switch-row.js";import{AdwTabPage as Pn}from"../values/tab-page.js";import{applyTabViewVisibility as Fn,createTabViewState as In,tabBarVisibility as Ln,tabCloseVisibilities as Rn,tabLabelText as zn,tabPageVisibilities as Bn,tabTooltipText as Vn,tabViewNotifyPayload as Hn}from"./tab-view-state.js";import{AdwTabView as B,CLOSE_PAGE as Un,NOTIFY_SELECTED_PAGE as Wn,PAGES_CHANGED as Gn}from"./adw-tab-view.js";import{AdwToast as Kn,AdwToastOverlay as V,AdwToastQueue as qn,DEFAULT_TOAST_TIMEOUT as Jn}from"./adw-toast-overlay.js";import{AdwToggle as Yn}from"./adw-toggle.js";import{AdwToggleGroup as H,NOTIFY_SELECTED as Xn,ToggleGroupState as Zn}from"./adw-toggle-group.js";import{WINDOW_BACKGROUND as Qn,configureSystemBars as $n,systemBarsConfig as er}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{ADWAITA_NS_ACCENT_RULES as tr,adwaitaNsAccentColor as nr,adwaitaNsAccentCss as rr}from"./accent-theme.js";import{applyAdwaitaNsAccent as ir,clearAdwaitaNsAccent as ar}from"./adw-accent.js";import{GtkActionBar as J}from"./gtk-action-bar.js";import{DEFAULT_BOX_SPACING as or,boxChildTrack as sr,boxSpacingChanges as cr,boxTrackPlan as lr,normalizeBoxSpacing as ur}from"./box-layout.js";import{GtkBox as Y}from"./gtk-box.js";import{buttonSlotAfterWrite as dr,buttonSlotDetaches as fr}from"./button-slot.js";import{GTK_BUTTON_CLICKED as pr,GTK_BUTTON_LABEL_CLASS as mr,GtkButton as X}from"./gtk-button.js";import{GtkDropDown as Z,NOTIFY_SELECTED as hr}from"./gtk-drop-down.js";import{GTK_CHECK_BUTTON_ACTIVATE as gr,GTK_CHECK_BUTTON_CHECKED_CLASS as _r,GTK_CHECK_BUTTON_INCONSISTENT_CLASS as vr,GTK_CHECK_BUTTON_TOGGLED as yr,GtkCheckButton as Q,NOTIFY_CHECK_ACTIVE as br}from"./gtk-check-button.js";import{DRAWING_AREA_REFUSAL as xr,GtkDrawingArea as $}from"./gtk-drawing-area.js";import{ACTIVATE as Sr,GtkEntry as Cr,NOTIFY_TEXT as wr}from"./gtk-entry.js";import{gridChildAt as Tr,gridGap as Er,gridSpacing as Dr,gridTrackCounts as Or}from"./grid-state.js";import{GtkGrid as kr}from"./gtk-grid.js";import{GtkFrame as Ar}from"./gtk-frame.js";import{GtkLabel as jr}from"./gtk-label.js";import{DEFAULT_LIST_SELECTION_MODE as Mr,GTK_SELECTION_MODES as Nr,selectionAfterModeChange as Pr,selectionAfterTap as Fr,selectionMode as Ir}from"./list-box-state.js";import{GtkListBox as Lr,LIST_BOX_ROW_ACTIVATED as Rr,LIST_BOX_ROW_SELECTED as zr,LIST_ROW_SELECTED_CLASS as Br}from"./gtk-list-box.js";import{GtkMenuButton as Vr,MENU_ITEM_ACTIVATED as Hr}from"./gtk-menu-button.js";import{GtkPopoverMenu as Ur}from"./gtk-popover-menu.js";import{GtkOverlay as Wr}from"./gtk-overlay.js";import{revealerChildVisibility as Gr}from"./revealer-state.js";import{GtkRevealer as Kr,NOTIFY_REVEAL_CHILD as qr}from"./gtk-revealer.js";import{GtkScrolledWindow as Jr}from"./gtk-scrolled-window.js";import{GtkApplicationWindow as Yr}from"./gtk-application-window.js";import{GtkSeparator as Xr}from"./gtk-separator.js";import{GtkStackPage as Zr}from"./stack-page.js";import{GtkStack as Qr,NOTIFY_STACK_VISIBLE_CHILD as $r,NOTIFY_STACK_VISIBLE_CHILD_NAME as ei}from"./gtk-stack.js";import{GTK_WRAP_MODES as ti,GtkTextView as ni,NOTIFY_TEXT_VIEW_TEXT as ri}from"./gtk-text-view.js";import{GTK_TOGGLE_BUTTON_CHECKED_CLASS as ii,GTK_TOGGLE_BUTTON_TOGGLED as ai,GtkToggleButton as oi,NOTIFY_TOGGLE_ACTIVE as si}from"./gtk-toggle-button.js";import{AdwSliderRow as ci,NOTIFY_SLIDER_VALUE as li}from"./adw-slider-row.js";import{DATA_GRID_HEADER_CELL_CLASS as ui,DATA_GRID_HEADER_ROW_CLASS as di,DATA_GRID_SECTION_CELL_CLASS as fi,dataGridCellClass as pi,dataGridItemSpec as mi,dataGridRowClass as hi,dataGridShapeKey as gi,dataGridTracksKey as _i,parseDataGridWidth as vi}from"./data-grid-model.js";import{AdwDataGrid as yi,ROW_ACTIVATED as bi}from"./adw-data-grid.js";import{padForSystemInsets as xi,padSheetForSystemInsets as Si}from"./system-insets.js";import{labelDisplayText as Ci,labelMarkupIsUnparseable as wi}from"@gjsify/adwaita-core";const Ti={AdwPreferencesPage:M,AdwPreferencesGroup:j,AdwActionRow:r,AdwSwitchRow:z,AdwEntryRow:y,AdwPasswordEntryRow:k,GtkEntry:Cr,AdwComboRow:g,GtkDropDown:Z,AdwSpinRow:F,AdwSliderRow:ci,AdwExpanderRow:b,GtkButton:X,GtkBox:Y,GtkGrid:kr,GtkListBox:Lr,AdwWindow:K,AdwApplicationWindow:a,AdwDialog:_,GtkActionBar:J,AdwBin:c,GtkOverlay:Wr,GtkRevealer:Kr,GtkScrolledWindow:Jr,GtkWindow:i,GtkApplicationWindow:Yr,GtkStack:Qr,GtkToggleButton:oi,GtkCheckButton:Q,GtkDrawingArea:$,GtkFrame:Ar,GtkSeparator:Xr,GtkTextView:ni,GtkLabel:jr,AdwImageButton:v,GtkMenuButton:Vr,GtkImage:t,AdwBanner:s,AdwAvatar:o,AdwWindowTitle:x,AdwClamp:h,AdwHeaderBar:S,AdwToolbarView:U,AdwWrapBox:q,AdwDataGrid:yi,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 Ei=!1;function registerAdwaitaElements(){if(!Ei&&typeof registerElement==`function`){for(let[ee,e]of Object.entries(Ti))registerElement(ee,()=>e);Ei=!0}}export{Xe as ABOUT_CLOSED,Ze as ACTIVATED,Oe as ADWAITA_ICON_GRID,tr 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,yi 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,hn as AdwSidebarItem,gn as AdwSidebarSection,ci as AdwSliderRow,F as AdwSpinRow,I as AdwSpinner,L as AdwSplitButton,$t as AdwSplitViewBase,R as AdwStatusPage,z as AdwSwitchRow,Pn as AdwTabPage,B as AdwTabView,Kn as AdwToast,V as AdwToastOverlay,qn as AdwToastQueue,Yn as AdwToggle,H as AdwToggleGroup,U as AdwToolbarView,C as AdwViewStack,Kt as AdwViewStackPage,W as AdwViewSwitcher,G as AdwViewSwitcherBar,Jt as AdwViewSwitcherBase,K as AdwWindow,tt as AdwWindowBase,x as AdwWindowTitle,q as AdwWrapBox,st as BUTTON_CLICKED,jn as CLICKED,ct as CLOSE_ATTEMPT,Un as CLOSE_PAGE,ht as CarouselScrollSync,Ot as ComboState,ui as DATA_GRID_HEADER_CELL_CLASS,di as DATA_GRID_HEADER_ROW_CLASS,fi as DATA_GRID_SECTION_CELL_CLASS,it as DEFAULT_AVATAR_SIZE,or 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,Mr as DEFAULT_LIST_SELECTION_MODE,Be as DEFAULT_REVEALER_TRANSITION_DURATION,En as DEFAULT_SCROLLBAR_POLICY,ot as DEFAULT_SPINNER_SIZE,Ve as DEFAULT_STACK_TRANSITION_DURATION,Jn as DEFAULT_TOAST_TIMEOUT,xr as DRAWING_AREA_REFUSAL,Sr as ENTRY_ACTIVATE,bn as GROUP_DIVIDER_API,ae as GTK_ALIGN,pr as GTK_BUTTON_CLICKED,mr as GTK_BUTTON_LABEL_CLASS,gr as GTK_CHECK_BUTTON_ACTIVATE,_r as GTK_CHECK_BUTTON_CHECKED_CLASS,vr as GTK_CHECK_BUTTON_INCONSISTENT_CLASS,yr as GTK_CHECK_BUTTON_TOGGLED,se as GTK_ICON_SIZE_NICKS,ce as GTK_ICON_SIZE_PIXELS,Dn as GTK_POLICY_TYPES,He as GTK_REVEALER_TRANSITIONS,Nr as GTK_SELECTION_MODES,Ue as GTK_STACK_TRANSITIONS,ii as GTK_TOGGLE_BUTTON_CHECKED_CLASS,ai as GTK_TOGGLE_BUTTON_TOGGLED,ti as GTK_WRAP_MODES,J as GtkActionBar,Yr as GtkApplicationWindow,Y as GtkBox,X as GtkButton,Q as GtkCheckButton,$ as GtkDrawingArea,Z as GtkDropDown,Cr as GtkEntry,Ar as GtkFrame,kr as GtkGrid,t as GtkImage,jr as GtkLabel,Lr as GtkListBox,Vr as GtkMenuButton,Wr as GtkOverlay,Ur as GtkPopoverMenu,Kr as GtkRevealer,Jr as GtkScrolledWindow,Xr as GtkSeparator,Qr as GtkStack,Zr as GtkStackPage,ni as GtkTextView,oi as GtkToggleButton,i as GtkWindow,Ne as ICON_FALLBACK_NAME,Rr as LIST_BOX_ROW_ACTIVATED,zr as LIST_BOX_ROW_SELECTED,Br as LIST_ROW_SELECTED_CLASS,Hr as MENU_ITEM_ACTIVATED,Mn as MENU_TAPPED,Pt as NOTIFY_ACTIVATES_DEFAULT,Nn as NOTIFY_ACTIVE,br as NOTIFY_CHECK_ACTIVE,hr as NOTIFY_DROP_DOWN_SELECTED,Ft as NOTIFY_EDITABLE,Ht as NOTIFY_ENABLE_EXPANSION,wr as NOTIFY_ENTRY_TEXT,Ut as NOTIFY_EXPANDED,ye as NOTIFY_HEXPAND,It as NOTIFY_MAX_LENGTH,Tt as NOTIFY_N_PAGES,lt as NOTIFY_OPEN,Et as NOTIFY_POSITION,qr as NOTIFY_REVEAL_CHILD,kt as NOTIFY_SELECTED,Wn as NOTIFY_SELECTED_PAGE,Lt as NOTIFY_SHOW_APPLY_BUTTON,Wt as NOTIFY_SHOW_ENABLE_SWITCH,en as NOTIFY_SHOW_SIDEBAR,_n as NOTIFY_SIDEBAR_SELECTED,li as NOTIFY_SLIDER_VALUE,$r as NOTIFY_STACK_VISIBLE_CHILD,ei as NOTIFY_STACK_VISIBLE_CHILD_NAME,Rt as NOTIFY_TEXT,zt as NOTIFY_TEXT_LENGTH,ri as NOTIFY_TEXT_VIEW_TEXT,si as NOTIFY_TOGGLE_ACTIVE,Xn as NOTIFY_TOGGLE_SELECTED,vn as NOTIFY_VALUE,be as NOTIFY_VEXPAND,Yt as NOTIFY_VIEW_SELECTED,qt as NOTIFY_VISIBLE_CHILD,tn as NOTIFY_VISIBLE_PAGE,Gt as NS_EXPANDER_ARROW_DISABLED_OPACITY,Xt as NsNavigationSplitViewState,Zt as NsOverlaySplitViewState,Gn as PAGES_CHANGED,Dt as PAGE_CHANGED,le as PIXEL_SIZE_UNSET,nn as PREFERENCES_CLOSED,bi as ROW_ACTIVATED,ut as SHEET_CLOSE,dt as SHEET_CONTENT_BOTTOM_GAP,rn as SHORTCUT_LABEL_CAP_TEXT_CLASS,an as SHORTCUT_LABEL_CLASS,on as SHORTCUT_LABEL_DIMMED_CLASS,sn as SHORTCUT_LABEL_DISABLED_CLASS,cn as SHORTCUT_LABEL_KEYCAP_CLASS,ln as SHORTCUT_LABEL_KEYS_CLASS,un as SHORTCUT_LABEL_SIDE_CLASS,dn as SHORTCUT_LABEL_SPACED_CLASS,Bt as SIGNAL_APPLY,Vt as SIGNAL_ENTRY_ACTIVATED,me as SimpleAction,he as SimpleActionGroup,yn as SpinState,Zn as ToggleGroupState,Qn as WINDOW_BACKGROUND,ge as activateWidgetAction,e as addBreakpoints,Se as adwaitaColorScheme,nr as adwaitaNsAccentColor,rr as adwaitaNsAccentCss,ir as applyAdwaitaNsAccent,de as applyConstructProps,_t as applyMarkerClasses,Fn as applyTabViewVisibility,xn as assertPopupMenuAssignable,pt as attachRowPressFeedback,nt as avatarInitials,ft as bottomSheetInsetPadding,mt as bottomSheetPanel,sr as boxChildTrack,cr as boxSpacingChanges,lr as boxTrackPlan,dr as buttonSlotAfterWrite,fr as buttonSlotDetaches,vt as carouselDotClasses,yt as carouselNotifyPayload,bt as carouselPositionAtOffset,xt as carouselScrollOffset,ar as clearAdwaitaNsAccent,Pe as compiledIconNames,$n as configureSystemBars,St as createCarouselState,In as createTabViewState,pi as dataGridCellClass,mi as dataGridItemSpec,hi as dataGridRowClass,gi as dataGridShapeKey,_i as dataGridTracksKey,qe as dialogPresentationMode,te as evaluateBreakpointCondition,je as extractIconPaths,Me as extractPathData,Sn as fillPopupMenu,_e as findActionGroup,Je as findDialogHost,Tr as gridChildAt,Er as gridGap,Dr as gridSpacing,Or as gridTrackCounts,Fe as iconValueKind,Ct as indicatorMarkerClasses,ve as insertActionGroup,ue as isGtkIconSizeNick,Ie as isIconAvailable,Ce as isThemeIconColor,Ci as labelDisplayText,wi as labelMarkupIsUnparseable,pe as lengthValue,ur as normalizeBoxSpacing,wt as normalizeCarouselPageWidth,On as normalizePolicy,fe as nsAlignment,ne as observeViewSize,re as observeWindowSize,we as onAdwaitaColorSchemeChanged,Cn as openPopupMenu,xi as padForSystemInsets,Si as padSheetForSystemInsets,ie as parseBreakpointCondition,vi as parseDataGridWidth,kn as policyScrolls,wn as refuseMenuString,registerAdwaitaElements,Re as renderSymbolicIcon,Le as resolveIconSource,Gr as revealerChildVisibility,An as scrollOrientationFor,Pr as selectionAfterModeChange,Fr as selectionAfterTap,Ir as selectionMode,Te as setAdwaitaColorScheme,fn as shortcutLabelDirection,pn as shortcutLabelPlatform,mn as shortcutLabelRenderPlan,Tn as showMenuPopup,Qt as splitViewColumns,Ye as surfaceSize,er as systemBarsConfig,Ln as tabBarVisibility,Rn as tabCloseVisibilities,zn as tabLabelText,Bn as tabPageVisibilities,Vn as tabTooltipText,Hn as tabViewNotifyPayload,Ee as themeIconColor,De as toggleAdwaitaColorScheme,We as transitionNick,xe as withGtkWidgetLayout};
@@ -1 +1 @@
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,r){return t.normalize===void 0?readDeclaredValue(e,t.kind,n):t.normalize(n,r)}function readDeclaredValue(e,t,n){if(typeof n!=`string`||t===`string`)return n;let r=n.trim();if(t===`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,this))}})}}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,this),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,readDeclaredValue,withProperties,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,r){return t.normalize===void 0?readDeclaredValue(e,t.kind,n):t.normalize(n,r)}function readDeclaredValue(e,t,n){if(typeof n!=`string`||t===`string`)return n;let r=n.trim();if(t===`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 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,this))}})}}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,this),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}throw Error(`No signal '${e}' on object '${this.constructor.name}'. emit() is GObject's and takes a declared signal or a declared property's notify::<prop>; to dispatch a NativeScript event use notify({ eventName: '${e}', object: this }).`)}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,readDeclaredValue,withProperties,withSignals};
@@ -1 +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
+ import"../_virtual/_rolldown/runtime.js";import{applyAdwaitaNsAccent as e}from"./adw-accent.js";import{AdwStyleManager as t,setAccentPainter as n,setSystemAppearance as r}from"./style-manager.js";import{systemAccent as i,systemHighContrast as a}from"./system-accent.js";import{Application as o}from"@nativescript/core";function asScheme(e){return e===`dark`||e===`light`?e:null}function androidContext(){return o.android?.context??null}function highContrast(){return a(typeof android>`u`?void 0:android,androidContext())}function accentColor(){return i(typeof android>`u`?void 0:android,androidContext())}r({highContrast,accentColor,current(){try{return asScheme(o.systemAppearance())}catch{return null}},subscribe(e){let handler=t=>{let n=asScheme(t.newValue);n!==null&&e(n)},reread=()=>e(null);return o.on(`systemAppearanceChanged`,handler),o.on(`resume`,reread),()=>{o.off(`systemAppearanceChanged`,handler),o.off(`resume`,reread)}}}),n(e);export{t 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,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
+ 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;const u=new Set;let d=null,f=null;function setAccentPainter(e){d=e,f=null,s&&repaint()}function systemAccent(){try{return a?.accentColor?.()??null}catch{return null}}function systemHighContrast(){try{return a?.highContrast?.()??!1}catch{return!1}}function repaint(){let e=systemAccent();e===null||e===f||d===null||(f=e,d(e))}function follow(e){!c&&e!==null&&i(e),repaint();for(let e of Array.from(u))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 p={dark:()=>n()===`dark`,subscribe(e){let t=r(e);return u.add(e),s=!0,attach(),()=>{t(),u.delete(e)}},highContrast:systemHighContrast,accentColor:systemAccent,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=p};export{AdwStyleManager,p as nativeScriptStyleSource,setAccentPainter,setSystemAppearance};
@@ -0,0 +1 @@
1
+ import"../_virtual/_rolldown/runtime.js";import{nearestAccent as e}from"@gjsify/adwaita-core";function sdk(e){return e?.os?.Build?.VERSION?.SDK_INT??0}function systemHighContrast(e,t){return sdk(e)<34?!1:((t?.getSystemService(`uimode`))?.getContrast?.()??0)>=1}function systemAccent(t,n){if(sdk(t)<31)return null;let r=n?.getResources?.()?.getIdentifier(`system_accent1_500`,`color`,`android`)??0;if(r===0)return null;let i=n?.getColor?.(r);return i===void 0?null:e({red:(i>>16&255)/255,green:(i>>8&255)/255,blue:(i&255)/255})}export{systemAccent,systemHighContrast};
@@ -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,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
+ 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";import{Point as f}from"@gjsify/adwaita-core";const p=`notify::hexpand`,m=`notify::vexpand`,h=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 g=[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 topOf(e){let t=e;for(;t.parent;)t=t.parent;return t}function computePointOf(e,t,n){let r=e,i=t;if(topOf(r)!==topOf(i))return[!1,new f];let a=r.getLocationInWindow?.(),o=i.getLocationInWindow?.();return!a||!o?[!1,new f]:[!0,new f({x:n.x+(a.x-o.x),y:n.y+(a.y-o.y)})]}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<=h)return n;throw TypeError(`'${String(e)}' is not a margin: '${t}' takes an integer from 0 to ${h}.`)}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 _=new WeakMap,v=new WeakMap,y=new WeakMap,b=new WeakMap,x=new WeakMap;function expandOf(e){let t=x.get(e);return t===void 0&&(t={h:!1,v:!1},x.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 x.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:p,object:this}))}get vexpand(){return x.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:m,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 _.get(this)??e(this)}set name(e){let t=laidOut(this,`name`),n=_.get(this),r=e??``;r===``?_.delete(this):_.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(!g.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)}get_width(){return Math.round(this.getActualSize?.().width??0)}get_height(){return Math.round(this.getActualSize?.().height??0)}compute_point(e,t){return computePointOf(this,e,t)}insert_action_group(e,t){s(this,e,t)}get focusable(){return y.get(this)??!1}set focusable(e){let t=laidOut(this,`focusable`),n=o(e,y.get(this)??!1);y.set(this,n),t.nativeViewProtected?.setFocusable?.(n)}get focusOnClick(){return b.get(this)??!0}set focusOnClick(e){b.set(this,o(e,b.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 v.get(this)??``}set tooltipText(e){let t=laidOut(this,`tooltipText`),n=e??``;(t.accessibilityHint??``)===(v.get(this)??``)&&(t.accessibilityHint=n),v.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{p as NOTIFY_HEXPAND,m as NOTIFY_VEXPAND,withGtkWidgetLayout};
@@ -0,0 +1,2 @@
1
+ export declare const AdwExpanderRowPropertiesNsTest: () => Promise<void>;
2
+ export default AdwExpanderRowPropertiesNsTest;
@@ -0,0 +1 @@
1
+ export declare const GtkButtonClickedNsTest: () => Promise<void>;