@gjsify/adwaita-nativescript 0.46.0 → 0.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/lib/esm/_virtual/_rolldown/runtime.js +1 -1
  2. package/lib/esm/index.js +1 -1
  3. package/lib/esm/namespace/adw.js +1 -0
  4. package/lib/esm/namespace/gtk.js +1 -0
  5. package/lib/esm/widgets/adw-button-content.js +1 -1
  6. package/lib/esm/widgets/adw-button-row.js +1 -1
  7. package/lib/esm/widgets/adw-combo-row.js +1 -1
  8. package/lib/esm/widgets/adw-entry-row.js +1 -1
  9. package/lib/esm/widgets/adw-expander-row.js +1 -1
  10. package/lib/esm/widgets/adw-slider-row.js +1 -1
  11. package/lib/esm/widgets/adw-spin-row.js +1 -1
  12. package/lib/esm/widgets/adw-split-button.js +1 -1
  13. package/lib/esm/widgets/adw-status-page.js +1 -1
  14. package/lib/esm/widgets/adw-tab-view.js +1 -1
  15. package/lib/esm/widgets/adw-toggle-group.js +1 -1
  16. package/lib/esm/widgets/adw-view-switcher-bar.js +1 -1
  17. package/lib/esm/widgets/entry-row-view.js +1 -1
  18. package/lib/esm/widgets/gtk-drop-down.js +1 -1
  19. package/lib/esm/widgets/gtk-image.js +1 -0
  20. package/lib/esm/widgets/gtk-menu-button.js +1 -1
  21. package/lib/esm/widgets/index.js +1 -1
  22. package/lib/esm/widgets/menu-sheet.js +1 -0
  23. package/lib/esm/widgets/split-button.js +1 -1
  24. package/lib/esm/widgets/view-switcher-base.js +1 -1
  25. package/lib/types/index.d.ts +4 -3
  26. package/lib/types/namespace/adw.d.ts +38 -0
  27. package/lib/types/namespace/gtk.d.ts +5 -0
  28. package/lib/types/widgets/adw-button-content.d.ts +2 -2
  29. package/lib/types/widgets/adw-button-row.d.ts +4 -4
  30. package/lib/types/widgets/adw-combo-row.d.ts +6 -6
  31. package/lib/types/widgets/adw-entry-row.d.ts +3 -3
  32. package/lib/types/widgets/adw-expander-row.d.ts +2 -2
  33. package/lib/types/widgets/adw-slider-row.d.ts +15 -17
  34. package/lib/types/widgets/adw-spin-row.d.ts +16 -13
  35. package/lib/types/widgets/adw-split-button.d.ts +45 -10
  36. package/lib/types/widgets/adw-status-page.d.ts +2 -2
  37. package/lib/types/widgets/entry-row-view.d.ts +1 -1
  38. package/lib/types/widgets/gtk-drop-down.d.ts +6 -6
  39. package/lib/types/widgets/{adw-icon.d.ts → gtk-image.d.ts} +2 -2
  40. package/lib/types/widgets/gtk-menu-button.d.ts +27 -17
  41. package/lib/types/widgets/index.d.ts +4 -2
  42. package/lib/types/widgets/menu-sheet.d.ts +58 -0
  43. package/lib/types/widgets/row-state.d.ts +1 -1
  44. package/lib/types/widgets/split-button.d.ts +2 -21
  45. package/lib/types/widgets/status-page-content.d.ts +1 -1
  46. package/lib/types/widgets/view-switcher-model.d.ts +2 -2
  47. package/package.json +14 -10
  48. package/src/theme/adwaita.css +8 -8
  49. package/lib/esm/namespace.js +0 -1
  50. package/lib/esm/widgets/adw-icon.js +0 -1
  51. package/lib/types/namespace.d.ts +0 -92
@@ -1 +1 @@
1
- var e=Object.defineProperty,__name=(t,n)=>e(t,`name`,{value:n,configurable:!0});export{__name};
1
+ var e=Object.defineProperty,__name=(t,n)=>e(t,`name`,{value:n,configurable:!0}),__exportAll=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};export{__exportAll,__name};
package/lib/esm/index.js CHANGED
@@ -1 +1 @@
1
- import"./_virtual/_rolldown/runtime.js";import{ADWAITA_SANS_FONT_FAMILY as ee,ADWAITA_SANS_TTF_FILES as te,adwaitaFontInstallInstructions as ne,hasAdwaitaSans as e}from"./fonts.js";import{AdwPreferencesPage as t}from"./widgets/adw-preferences-page.js";import{AdwPreferencesGroup as n}from"./widgets/adw-preferences-group.js";import{ACTIVATED as r,AdwActionRow as i}from"./widgets/adw-action-row.js";import{AdwSwitchRow as a,NOTIFY_ACTIVE as o}from"./widgets/adw-switch-row.js";import{adwaitaColorScheme as s,isThemeIconColor as c,onAdwaitaColorSchemeChanged as l,setAdwaitaColorScheme as u,themeIconColor as d,toggleAdwaitaColorScheme as f}from"./widgets/color-scheme.js";import{ADWAITA_ICON_GRID as p,DEFAULT_ICON_COLOR as m,DEFAULT_ICON_COLOR_DARK as h,extractIconPaths as g,extractPathData as _}from"./widgets/icon-path.js";import{renderSymbolicIcon as v}from"./widgets/icons.js";import{AdwIcon as y,DEFAULT_ADW_ICON_SIZE as b}from"./widgets/adw-icon.js";import{attachRowPressFeedback as x}from"./widgets/row-press.js";import{AdwImageButton as S,DEFAULT_ICON_BUTTON_ICON_SIZE as C}from"./widgets/adw-image-button.js";import{AdwEntryRow as w,NOTIFY_TEXT as T}from"./widgets/adw-entry-row.js";import{AdwPasswordEntryRow as E}from"./widgets/adw-password-entry-row.js";import{ACTIVATE as D,GtkEntry as O,NOTIFY_TEXT as k}from"./widgets/gtk-entry.js";import{AdwComboRow as A,ComboState as j,NOTIFY_SELECTED as M}from"./widgets/adw-combo-row.js";import{GtkDropDown as N,NOTIFY_SELECTED as P}from"./widgets/gtk-drop-down.js";import{AdwSpinRow as F,NOTIFY_VALUE as I,SpinState as L}from"./widgets/adw-spin-row.js";import{AdwSliderRow as R,NOTIFY_SLIDER_VALUE as z}from"./widgets/adw-slider-row.js";import{AdwExpanderRow as B,ExpanderState as V,NOTIFY_EXPANDED as H}from"./widgets/adw-expander-row.js";import{GtkButton as U}from"./widgets/gtk-button.js";import{GtkMenuButton as W,MENU_ITEM_ACTIVATED as G}from"./widgets/gtk-menu-button.js";import{DEFAULT_CLAMP_MAX_SIZE as K,DEFAULT_SPINNER_SIZE as q}from"./widgets/chrome.js";import{AdwBanner as J,BUTTON_CLICKED as Y}from"./widgets/adw-banner.js";import{avatarInitials as X}from"./widgets/avatar-color.js";import{AdwAvatar as Z,DEFAULT_AVATAR_SIZE as re}from"./widgets/adw-avatar.js";import{AdwWindowTitle as ie}from"./widgets/adw-window-title.js";import{AdwClamp as ae}from"./widgets/adw-clamp.js";import{AdwHeaderBar as oe}from"./widgets/adw-header-bar.js";import{AdwToolbarView as se}from"./widgets/adw-toolbar-view.js";import{AdwWrapBox as ce}from"./widgets/adw-wrap-box.js";import{DATA_GRID_HEADER_CELL_CLASS as le,DATA_GRID_HEADER_ROW_CLASS as ue,DATA_GRID_SECTION_CELL_CLASS as de,dataGridCellClass as fe,dataGridItemSpec as pe,dataGridRowClass as me,dataGridShapeKey as he,dataGridTracksKey as ge,parseDataGridWidth as _e}from"./widgets/data-grid-model.js";import{AdwDataGrid as ve,ROW_ACTIVATED as ye}from"./widgets/adw-data-grid.js";import{AdwSpinner as be}from"./widgets/adw-spinner.js";import{AdwStatusPage as xe}from"./widgets/adw-status-page.js";import{AdwButtonRow as Se}from"./widgets/adw-button-row.js";import{AdwButtonContent as Ce}from"./widgets/adw-button-content.js";import{AdwSplitButton as we,CLICKED as Te,MENU_TAPPED as Ee}from"./widgets/adw-split-button.js";import{AdwToggleGroup as De,NOTIFY_SELECTED as Q,ToggleGroupState as Oe}from"./widgets/adw-toggle-group.js";import{ADWAITA_NS_ACCENT_RULES as ke,adwaitaNsAccentColor as Ae,adwaitaNsAccentCss as je}from"./widgets/accent-theme.js";import{applyAdwaitaNsAccent as Me,clearAdwaitaNsAccent as Ne}from"./widgets/adw-accent.js";import{SHORTCUT_LABEL_CAP_TEXT_CLASS as Pe,SHORTCUT_LABEL_CLASS as Fe,SHORTCUT_LABEL_DIMMED_CLASS as Ie,SHORTCUT_LABEL_DISABLED_CLASS as Le,SHORTCUT_LABEL_KEYCAP_CLASS as Re,SHORTCUT_LABEL_KEYS_CLASS as ze,SHORTCUT_LABEL_SIDE_CLASS as Be,SHORTCUT_LABEL_SPACED_CLASS as Ve,shortcutLabelDirection as He,shortcutLabelPlatform as Ue,shortcutLabelRenderPlan as We}from"./widgets/shortcut-label.js";import{AdwShortcutLabel as Ge}from"./widgets/adw-shortcut-label.js";import{AdwViewStack as Ke,NOTIFY_VISIBLE_CHILD as qe}from"./widgets/adw-view-stack.js";import{AdwViewSwitcherBase as Je,NOTIFY_SELECTED as Ye}from"./widgets/view-switcher-base.js";import{AdwViewSwitcher as Xe}from"./widgets/adw-view-switcher.js";import{AdwViewSwitcherBar as Ze}from"./widgets/adw-view-switcher-bar.js";import{AdwInlineViewSwitcher as Qe}from"./widgets/adw-inline-view-switcher.js";import{AdwTabView as $e}from"./widgets/adw-tab-view.js";import{DEFAULT_CAROUSEL_PAGE_WIDTH as et}from"./widgets/carousel-state.js";import{AdwCarousel as tt,NOTIFY_POSITION as nt}from"./widgets/adw-carousel.js";import{NOTIFY_VISIBLE_PAGE as rt}from"./widgets/navigation-stack.js";import{AdwNavigationView as it}from"./widgets/adw-navigation-view.js";import{NsNavigationSplitViewState as at,NsOverlaySplitViewState as ot,splitViewColumns as st}from"./widgets/split-view-state.js";import{AdwSplitViewBase as ct,NOTIFY_SHOW_SIDEBAR as lt}from"./widgets/split-view-base.js";import{AdwNavigationSplitView as ut}from"./widgets/adw-navigation-split-view.js";import{AdwOverlaySplitView as dt}from"./widgets/adw-overlay-split-view.js";import{AdwSidebar as ft,NOTIFY_SELECTED as pt}from"./widgets/adw-sidebar.js";import{NOTIFY_OPEN as mt}from"./widgets/bottom-sheet-state.js";import{AdwBottomSheet as ht}from"./widgets/adw-bottom-sheet.js";import{AdwToast as gt,AdwToastOverlay as _t,AdwToastQueue as vt,DEFAULT_TOAST_TIMEOUT as yt,TOAST_BUTTON_CLICKED as bt}from"./widgets/adw-toast-overlay.js";import{AdwAlertDialog as xt,AdwAlertResponses as St,NOTIFY_RESPONSE as Ct}from"./widgets/adw-alert-dialog.js";import{AdwAboutDialog as wt,CLOSED as Tt}from"./widgets/adw-about-dialog.js";import{AdwPreferencesDialog as Et,CLOSED as Dt}from"./widgets/adw-preferences-dialog.js";import{AdwBreakpoint as Ot,addBreakpoints as kt,evaluateBreakpointCondition as At,parseBreakpointCondition as jt}from"./widgets/breakpoint.js";import{registerAdwaitaElements as $}from"./widgets/index.js";import{Adw as Mt,Gtk as Nt}from"./namespace.js";import{assertNativeScript as Pt,assertNativeScript as Ft,isAndroid as It,isIOS as Lt,isNativeScript as Rt}from"@gjsify/native-platform";function registerAdwaita(){Ft(),$()}export{Tt as ABOUT_CLOSED,r as ACTIVATED,p as ADWAITA_ICON_GRID,ke as ADWAITA_NS_ACCENT_RULES,ee as ADWAITA_SANS_FONT_FAMILY,te as ADWAITA_SANS_TTF_FILES,Mt as Adw,wt as AdwAboutDialog,i as AdwActionRow,xt as AdwAlertDialog,St as AdwAlertResponses,Z as AdwAvatar,J as AdwBanner,ht as AdwBottomSheet,Ot as AdwBreakpoint,Ce as AdwButtonContent,Se as AdwButtonRow,tt as AdwCarousel,ae as AdwClamp,A as AdwComboRow,ve as AdwDataGrid,w as AdwEntryRow,B as AdwExpanderRow,oe as AdwHeaderBar,y as AdwIcon,S as AdwImageButton,Qe as AdwInlineViewSwitcher,ut as AdwNavigationSplitView,it as AdwNavigationView,dt as AdwOverlaySplitView,E as AdwPasswordEntryRow,Et as AdwPreferencesDialog,n as AdwPreferencesGroup,t as AdwPreferencesPage,Ge as AdwShortcutLabel,ft as AdwSidebar,R as AdwSliderRow,F as AdwSpinRow,be as AdwSpinner,we as AdwSplitButton,ct as AdwSplitViewBase,xe as AdwStatusPage,a as AdwSwitchRow,$e as AdwTabView,gt as AdwToast,_t as AdwToastOverlay,vt as AdwToastQueue,De as AdwToggleGroup,se as AdwToolbarView,Ke as AdwViewStack,Xe as AdwViewSwitcher,Ze as AdwViewSwitcherBar,Je as AdwViewSwitcherBase,ie as AdwWindowTitle,ce as AdwWrapBox,Y as BUTTON_CLICKED,Te as CLICKED,j as ComboState,le as DATA_GRID_HEADER_CELL_CLASS,ue as DATA_GRID_HEADER_ROW_CLASS,de as DATA_GRID_SECTION_CELL_CLASS,b as DEFAULT_ADW_ICON_SIZE,re as DEFAULT_AVATAR_SIZE,et as DEFAULT_CAROUSEL_PAGE_WIDTH,K as DEFAULT_CLAMP_MAX_SIZE,C as DEFAULT_ICON_BUTTON_ICON_SIZE,m as DEFAULT_ICON_COLOR,h as DEFAULT_ICON_COLOR_DARK,q as DEFAULT_SPINNER_SIZE,yt as DEFAULT_TOAST_TIMEOUT,D as ENTRY_ACTIVATE,V as ExpanderState,Nt as Gtk,U as GtkButton,N as GtkDropDown,O as GtkEntry,W as GtkMenuButton,G as MENU_ITEM_ACTIVATED,Ee as MENU_TAPPED,o as NOTIFY_ACTIVE,P as NOTIFY_DROP_DOWN_SELECTED,k as NOTIFY_ENTRY_TEXT,H as NOTIFY_EXPANDED,mt as NOTIFY_OPEN,nt as NOTIFY_POSITION,Ct as NOTIFY_RESPONSE,M as NOTIFY_SELECTED,lt as NOTIFY_SHOW_SIDEBAR,pt as NOTIFY_SIDEBAR_SELECTED,z as NOTIFY_SLIDER_VALUE,T as NOTIFY_TEXT,Q as NOTIFY_TOGGLE_SELECTED,I as NOTIFY_VALUE,Ye as NOTIFY_VIEW_SELECTED,qe as NOTIFY_VISIBLE_CHILD,rt as NOTIFY_VISIBLE_PAGE,at as NsNavigationSplitViewState,ot as NsOverlaySplitViewState,Dt as PREFERENCES_CLOSED,ye as ROW_ACTIVATED,Pe as SHORTCUT_LABEL_CAP_TEXT_CLASS,Fe as SHORTCUT_LABEL_CLASS,Ie as SHORTCUT_LABEL_DIMMED_CLASS,Le as SHORTCUT_LABEL_DISABLED_CLASS,Re as SHORTCUT_LABEL_KEYCAP_CLASS,ze as SHORTCUT_LABEL_KEYS_CLASS,Be as SHORTCUT_LABEL_SIDE_CLASS,Ve as SHORTCUT_LABEL_SPACED_CLASS,L as SpinState,bt as TOAST_BUTTON_CLICKED,Oe as ToggleGroupState,kt as addBreakpoints,s as adwaitaColorScheme,ne as adwaitaFontInstallInstructions,Ae as adwaitaNsAccentColor,je as adwaitaNsAccentCss,Me as applyAdwaitaNsAccent,Pt as assertNativeScript,x as attachRowPressFeedback,X as avatarInitials,Ne as clearAdwaitaNsAccent,fe as dataGridCellClass,pe as dataGridItemSpec,me as dataGridRowClass,he as dataGridShapeKey,ge as dataGridTracksKey,At as evaluateBreakpointCondition,g as extractIconPaths,_ as extractPathData,e as hasAdwaitaSans,It as isAndroid,Lt as isIOS,Rt as isNativeScript,c as isThemeIconColor,l as onAdwaitaColorSchemeChanged,jt as parseBreakpointCondition,_e as parseDataGridWidth,registerAdwaita,$ as registerAdwaitaElements,v as renderSymbolicIcon,u as setAdwaitaColorScheme,He as shortcutLabelDirection,Ue as shortcutLabelPlatform,We as shortcutLabelRenderPlan,st as splitViewColumns,d as themeIconColor,f as toggleAdwaitaColorScheme};
1
+ import"./_virtual/_rolldown/runtime.js";import{ADWAITA_SANS_FONT_FAMILY as ee,ADWAITA_SANS_TTF_FILES as e,adwaitaFontInstallInstructions as te,hasAdwaitaSans as t}from"./fonts.js";import{ACTIVATED as n}from"./widgets/adw-action-row.js";import{NOTIFY_ACTIVE as r}from"./widgets/adw-switch-row.js";import{adwaitaColorScheme as i,isThemeIconColor as a,onAdwaitaColorSchemeChanged as o,setAdwaitaColorScheme as s,themeIconColor as c,toggleAdwaitaColorScheme as l}from"./widgets/color-scheme.js";import{ADWAITA_ICON_GRID as u,DEFAULT_ICON_COLOR as d,DEFAULT_ICON_COLOR_DARK as f,extractIconPaths as p,extractPathData as m}from"./widgets/icon-path.js";import{renderSymbolicIcon as h}from"./widgets/icons.js";import{DEFAULT_GTK_IMAGE_SIZE as g}from"./widgets/gtk-image.js";import{attachRowPressFeedback as _}from"./widgets/row-press.js";import{AdwImageButton as v,DEFAULT_ICON_BUTTON_ICON_SIZE as y}from"./widgets/adw-image-button.js";import{NOTIFY_TEXT as b}from"./widgets/adw-entry-row.js";import{ACTIVATE as x,NOTIFY_TEXT as S}from"./widgets/gtk-entry.js";import{ComboState as C,NOTIFY_SELECTED as w}from"./widgets/adw-combo-row.js";import{NOTIFY_SELECTED as T}from"./widgets/gtk-drop-down.js";import{NOTIFY_VALUE as E,SpinState as D}from"./widgets/adw-spin-row.js";import{AdwSliderRow as O,NOTIFY_SLIDER_VALUE as k}from"./widgets/adw-slider-row.js";import{ExpanderState as A,NOTIFY_EXPANDED as j}from"./widgets/adw-expander-row.js";import{MENU_ITEM_ACTIVATED as M}from"./widgets/gtk-menu-button.js";import{DEFAULT_CLAMP_MAX_SIZE as N,DEFAULT_SPINNER_SIZE as P}from"./widgets/chrome.js";import{BUTTON_CLICKED as F}from"./widgets/adw-banner.js";import{avatarInitials as I}from"./widgets/avatar-color.js";import{DEFAULT_AVATAR_SIZE as L}from"./widgets/adw-avatar.js";import{DATA_GRID_HEADER_CELL_CLASS as R,DATA_GRID_HEADER_ROW_CLASS as z,DATA_GRID_SECTION_CELL_CLASS as B,dataGridCellClass as V,dataGridItemSpec as H,dataGridRowClass as U,dataGridShapeKey as W,dataGridTracksKey as G,parseDataGridWidth as K}from"./widgets/data-grid-model.js";import{AdwDataGrid as q,ROW_ACTIVATED as J}from"./widgets/adw-data-grid.js";import{CLICKED as Y,MENU_TAPPED as X}from"./widgets/adw-split-button.js";import{NOTIFY_SELECTED as Z,ToggleGroupState as ne}from"./widgets/adw-toggle-group.js";import{ADWAITA_NS_ACCENT_RULES as re,adwaitaNsAccentColor as Q,adwaitaNsAccentCss as ie}from"./widgets/accent-theme.js";import{applyAdwaitaNsAccent as ae,clearAdwaitaNsAccent as oe}from"./widgets/adw-accent.js";import{SHORTCUT_LABEL_CAP_TEXT_CLASS as se,SHORTCUT_LABEL_CLASS as ce,SHORTCUT_LABEL_DIMMED_CLASS as le,SHORTCUT_LABEL_DISABLED_CLASS as ue,SHORTCUT_LABEL_KEYCAP_CLASS as de,SHORTCUT_LABEL_KEYS_CLASS as fe,SHORTCUT_LABEL_SIDE_CLASS as pe,SHORTCUT_LABEL_SPACED_CLASS as me,shortcutLabelDirection as he,shortcutLabelPlatform as ge,shortcutLabelRenderPlan as _e}from"./widgets/shortcut-label.js";import{NOTIFY_VISIBLE_CHILD as ve}from"./widgets/adw-view-stack.js";import{AdwViewSwitcherBase as ye,NOTIFY_SELECTED as be}from"./widgets/view-switcher-base.js";import{DEFAULT_CAROUSEL_PAGE_WIDTH as xe}from"./widgets/carousel-state.js";import{NOTIFY_POSITION as Se}from"./widgets/adw-carousel.js";import{NOTIFY_VISIBLE_PAGE as Ce}from"./widgets/navigation-stack.js";import{NsNavigationSplitViewState as we,NsOverlaySplitViewState as Te,splitViewColumns as Ee}from"./widgets/split-view-state.js";import{AdwSplitViewBase as De,NOTIFY_SHOW_SIDEBAR as Oe}from"./widgets/split-view-base.js";import{NOTIFY_SELECTED as ke}from"./widgets/adw-sidebar.js";import{NOTIFY_OPEN as Ae}from"./widgets/bottom-sheet-state.js";import{AdwToast as je,AdwToastQueue as Me,DEFAULT_TOAST_TIMEOUT as Ne,TOAST_BUTTON_CLICKED as Pe}from"./widgets/adw-toast-overlay.js";import{AdwAlertResponses as Fe,NOTIFY_RESPONSE as Ie}from"./widgets/adw-alert-dialog.js";import{CLOSED as Le}from"./widgets/adw-about-dialog.js";import{CLOSED as Re}from"./widgets/adw-preferences-dialog.js";import{AdwBreakpoint as ze,addBreakpoints as Be,evaluateBreakpointCondition as Ve,parseBreakpointCondition as He}from"./widgets/breakpoint.js";import{registerAdwaitaElements as $}from"./widgets/index.js";import{adw_exports as Ue}from"./namespace/adw.js";import{gtk_exports as We}from"./namespace/gtk.js";import{assertNativeScript as Ge,assertNativeScript as Ke,isAndroid as qe,isIOS as Je,isNativeScript as Ye}from"@gjsify/native-platform";function registerAdwaita(){Ke(),$()}export{Le as ABOUT_CLOSED,n as ACTIVATED,u as ADWAITA_ICON_GRID,re as ADWAITA_NS_ACCENT_RULES,ee as ADWAITA_SANS_FONT_FAMILY,e as ADWAITA_SANS_TTF_FILES,Ue as Adw,Fe as AdwAlertResponses,ze as AdwBreakpoint,q as AdwDataGrid,v as AdwImageButton,O as AdwSliderRow,De as AdwSplitViewBase,je as AdwToast,Me as AdwToastQueue,ye as AdwViewSwitcherBase,F as BUTTON_CLICKED,Y as CLICKED,C as ComboState,R as DATA_GRID_HEADER_CELL_CLASS,z as DATA_GRID_HEADER_ROW_CLASS,B as DATA_GRID_SECTION_CELL_CLASS,L as DEFAULT_AVATAR_SIZE,xe as DEFAULT_CAROUSEL_PAGE_WIDTH,N as DEFAULT_CLAMP_MAX_SIZE,g as DEFAULT_GTK_IMAGE_SIZE,y as DEFAULT_ICON_BUTTON_ICON_SIZE,d as DEFAULT_ICON_COLOR,f as DEFAULT_ICON_COLOR_DARK,P as DEFAULT_SPINNER_SIZE,Ne as DEFAULT_TOAST_TIMEOUT,x as ENTRY_ACTIVATE,A as ExpanderState,We as Gtk,M as MENU_ITEM_ACTIVATED,X as MENU_TAPPED,r as NOTIFY_ACTIVE,T as NOTIFY_DROP_DOWN_SELECTED,S as NOTIFY_ENTRY_TEXT,j as NOTIFY_EXPANDED,Ae as NOTIFY_OPEN,Se as NOTIFY_POSITION,Ie as NOTIFY_RESPONSE,w as NOTIFY_SELECTED,Oe as NOTIFY_SHOW_SIDEBAR,ke as NOTIFY_SIDEBAR_SELECTED,k as NOTIFY_SLIDER_VALUE,b as NOTIFY_TEXT,Z as NOTIFY_TOGGLE_SELECTED,E as NOTIFY_VALUE,be as NOTIFY_VIEW_SELECTED,ve as NOTIFY_VISIBLE_CHILD,Ce as NOTIFY_VISIBLE_PAGE,we as NsNavigationSplitViewState,Te as NsOverlaySplitViewState,Re as PREFERENCES_CLOSED,J as ROW_ACTIVATED,se as SHORTCUT_LABEL_CAP_TEXT_CLASS,ce as SHORTCUT_LABEL_CLASS,le as SHORTCUT_LABEL_DIMMED_CLASS,ue as SHORTCUT_LABEL_DISABLED_CLASS,de as SHORTCUT_LABEL_KEYCAP_CLASS,fe as SHORTCUT_LABEL_KEYS_CLASS,pe as SHORTCUT_LABEL_SIDE_CLASS,me as SHORTCUT_LABEL_SPACED_CLASS,D as SpinState,Pe as TOAST_BUTTON_CLICKED,ne as ToggleGroupState,Be as addBreakpoints,i as adwaitaColorScheme,te as adwaitaFontInstallInstructions,Q as adwaitaNsAccentColor,ie as adwaitaNsAccentCss,ae as applyAdwaitaNsAccent,Ge as assertNativeScript,_ as attachRowPressFeedback,I as avatarInitials,oe as clearAdwaitaNsAccent,V as dataGridCellClass,H as dataGridItemSpec,U as dataGridRowClass,W as dataGridShapeKey,G as dataGridTracksKey,Ve as evaluateBreakpointCondition,p as extractIconPaths,m as extractPathData,t as hasAdwaitaSans,qe as isAndroid,Je as isIOS,Ye as isNativeScript,a as isThemeIconColor,o as onAdwaitaColorSchemeChanged,He as parseBreakpointCondition,K as parseDataGridWidth,registerAdwaita,$ as registerAdwaitaElements,h as renderSymbolicIcon,s as setAdwaitaColorScheme,he as shortcutLabelDirection,ge as shortcutLabelPlatform,_e as shortcutLabelRenderPlan,Ee as splitViewColumns,c as themeIconColor,l as toggleAdwaitaColorScheme};
@@ -0,0 +1 @@
1
+ import{__exportAll as e}from"../_virtual/_rolldown/runtime.js";import{AdwPreferencesPage as t}from"../widgets/adw-preferences-page.js";import{AdwPreferencesGroup as n}from"../widgets/adw-preferences-group.js";import{AdwActionRow as r}from"../widgets/adw-action-row.js";import{AdwSwitchRow as i}from"../widgets/adw-switch-row.js";import{AdwEntryRow as a}from"../widgets/adw-entry-row.js";import{AdwPasswordEntryRow as o}from"../widgets/adw-password-entry-row.js";import{AdwComboRow as s}from"../widgets/adw-combo-row.js";import{AdwSpinRow as c}from"../widgets/adw-spin-row.js";import{AdwExpanderRow as l}from"../widgets/adw-expander-row.js";import{AdwBanner as u}from"../widgets/adw-banner.js";import{AdwAvatar as d}from"../widgets/adw-avatar.js";import{AdwWindowTitle as f}from"../widgets/adw-window-title.js";import{AdwClamp as p}from"../widgets/adw-clamp.js";import{AdwHeaderBar as m}from"../widgets/adw-header-bar.js";import{AdwToolbarView as h}from"../widgets/adw-toolbar-view.js";import{AdwWrapBox as g}from"../widgets/adw-wrap-box.js";import{AdwSpinner as _}from"../widgets/adw-spinner.js";import{AdwStatusPage as v}from"../widgets/adw-status-page.js";import{AdwButtonRow as y}from"../widgets/adw-button-row.js";import{AdwButtonContent as b}from"../widgets/adw-button-content.js";import{AdwSplitButton as x}from"../widgets/adw-split-button.js";import{AdwToggleGroup as S}from"../widgets/adw-toggle-group.js";import{AdwShortcutLabel as C}from"../widgets/adw-shortcut-label.js";import{AdwViewStack as w}from"../widgets/adw-view-stack.js";import{AdwViewSwitcher as T}from"../widgets/adw-view-switcher.js";import{AdwViewSwitcherBar as E}from"../widgets/adw-view-switcher-bar.js";import{AdwInlineViewSwitcher as D}from"../widgets/adw-inline-view-switcher.js";import{AdwTabView as O}from"../widgets/adw-tab-view.js";import{AdwCarousel as k}from"../widgets/adw-carousel.js";import{AdwNavigationView as A}from"../widgets/adw-navigation-view.js";import{AdwNavigationSplitView as j}from"../widgets/adw-navigation-split-view.js";import{AdwOverlaySplitView as M}from"../widgets/adw-overlay-split-view.js";import{AdwSidebar as N}from"../widgets/adw-sidebar.js";import{AdwBottomSheet as P}from"../widgets/adw-bottom-sheet.js";import{AdwToastOverlay as F}from"../widgets/adw-toast-overlay.js";import{AdwAlertDialog as I}from"../widgets/adw-alert-dialog.js";import{AdwAboutDialog as L}from"../widgets/adw-about-dialog.js";import{AdwPreferencesDialog as R}from"../widgets/adw-preferences-dialog.js";var z=e({AboutDialog:()=>L,ActionRow:()=>r,AlertDialog:()=>I,Avatar:()=>d,Banner:()=>u,BottomSheet:()=>P,ButtonContent:()=>b,ButtonRow:()=>y,Carousel:()=>k,Clamp:()=>p,ComboRow:()=>s,EntryRow:()=>a,ExpanderRow:()=>l,HeaderBar:()=>m,InlineViewSwitcher:()=>D,NavigationSplitView:()=>j,NavigationView:()=>A,OverlaySplitView:()=>M,PasswordEntryRow:()=>o,PreferencesDialog:()=>R,PreferencesGroup:()=>n,PreferencesPage:()=>t,ShortcutLabel:()=>C,Sidebar:()=>N,SpinRow:()=>c,Spinner:()=>_,SplitButton:()=>x,StatusPage:()=>v,SwitchRow:()=>i,TabView:()=>O,ToastOverlay:()=>F,ToggleGroup:()=>S,ToolbarView:()=>h,ViewStack:()=>w,ViewSwitcher:()=>T,ViewSwitcherBar:()=>E,WindowTitle:()=>f,WrapBox:()=>g});export{L as AboutDialog,r as ActionRow,I as AlertDialog,d as Avatar,u as Banner,P as BottomSheet,b as ButtonContent,y as ButtonRow,k as Carousel,p as Clamp,s as ComboRow,a as EntryRow,l as ExpanderRow,m as HeaderBar,D as InlineViewSwitcher,j as NavigationSplitView,A as NavigationView,M as OverlaySplitView,o as PasswordEntryRow,R as PreferencesDialog,n as PreferencesGroup,t as PreferencesPage,C as ShortcutLabel,N as Sidebar,c as SpinRow,_ as Spinner,x as SplitButton,v as StatusPage,i as SwitchRow,O as TabView,F as ToastOverlay,S as ToggleGroup,h as ToolbarView,w as ViewStack,T as ViewSwitcher,E as ViewSwitcherBar,f as WindowTitle,g as WrapBox,z as adw_exports};
@@ -0,0 +1 @@
1
+ import{__exportAll as e}from"../_virtual/_rolldown/runtime.js";import{GtkImage as t}from"../widgets/gtk-image.js";import{GtkEntry as n}from"../widgets/gtk-entry.js";import{GtkDropDown as r}from"../widgets/gtk-drop-down.js";import{GtkButton as i}from"../widgets/gtk-button.js";import{GtkMenuButton as a}from"../widgets/gtk-menu-button.js";var o=e({Button:()=>i,DropDown:()=>r,Entry:()=>n,Image:()=>t,MenuButton:()=>a});export{i as Button,r as DropDown,n as Entry,t as Image,a as MenuButton,o as gtk_exports};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{xmlBoolean as e}from"./xml-values.js";import{AdwIcon as t}from"./adw-icon.js";import{buttonContentClassName as n,buttonContentEllipsize as r,buttonContentIconIsFallback as i,buttonContentIconSvg as a,buttonContentLabelText as o,buttonContentLabelVisibility as s,buttonContentRootedParentClassName as c,buttonContentUnrootedParentClassName as l}from"./button-content.js";import{Label as u,StackLayout as d}from"@nativescript/core";import{ADW_BUTTON_CONTENT_DEFAULTS as f}from"@gjsify/adwaita-core";var AdwButtonContent=class extends d{_icon;_label;_props={...f};_hostButton=null;constructor(){super(),this.orientation=`horizontal`,this.className=`adw-button-content`,this.horizontalAlignment=`center`;let e=new t;e.className=`${e.className} adw-button-content-icon`.trim(),e.verticalAlignment=`middle`,e.iconName=a(``),this.addChild(e),this._icon=e;let n=new u;n.className=`adw-button-content-label`,n.verticalAlignment=`middle`,n.visibility=s(``),this.addChild(n),this._label=n}get hostButton(){return this._hostButton}set hostButton(e){this._hostButton!==e&&(this._hostButton&&(this._hostButton.className=l(this._hostButton.className??``)),this._hostButton=e,e&&(e.className=c(e.className??``)))}get iconName(){return this._props.iconName}set iconName(e){this._props.iconName=e??``,this._icon.iconName=a(this._props.iconName)}get iconIsFallback(){return i(this._props.iconName)}get iconColor(){return this._icon.iconColor}set iconColor(e){this._icon.iconColor=e}get label(){return this._props.label}set label(e){this._props.label=e??``,this._renderLabel()}get useUnderline(){return this._props.useUnderline}set useUnderline(t){let n=e(t,this.useUnderline);this._props.useUnderline=!!n,this._renderLabel()}get canShrink(){return this._props.canShrink}set canShrink(t){let r=e(t,this.canShrink);this._props.canShrink=!!r,this.className=n(this.className,this._props.canShrink)}get ellipsize(){return r(this._props.canShrink)}_renderLabel(){this._label.text=o(this._props.label,this._props.useUnderline),this._label.visibility=s(this._props.label)}};export{AdwButtonContent};
1
+ import"../_virtual/_rolldown/runtime.js";import{xmlBoolean as e}from"./xml-values.js";import{GtkImage as t}from"./gtk-image.js";import{buttonContentClassName as n,buttonContentEllipsize as r,buttonContentIconIsFallback as i,buttonContentIconSvg as a,buttonContentLabelText as o,buttonContentLabelVisibility as s,buttonContentRootedParentClassName as c,buttonContentUnrootedParentClassName as l}from"./button-content.js";import{Label as u,StackLayout as d}from"@nativescript/core";import{ADW_BUTTON_CONTENT_DEFAULTS as f}from"@gjsify/adwaita-core";var AdwButtonContent=class extends d{_icon;_label;_props={...f};_hostButton=null;constructor(){super(),this.orientation=`horizontal`,this.className=`adw-button-content`,this.horizontalAlignment=`center`;let e=new t;e.className=`${e.className} adw-button-content-icon`.trim(),e.verticalAlignment=`middle`,e.iconName=a(``),this.addChild(e),this._icon=e;let n=new u;n.className=`adw-button-content-label`,n.verticalAlignment=`middle`,n.visibility=s(``),this.addChild(n),this._label=n}get hostButton(){return this._hostButton}set hostButton(e){this._hostButton!==e&&(this._hostButton&&(this._hostButton.className=l(this._hostButton.className??``)),this._hostButton=e,e&&(e.className=c(e.className??``)))}get iconName(){return this._props.iconName}set iconName(e){this._props.iconName=e??``,this._icon.iconName=a(this._props.iconName)}get iconIsFallback(){return i(this._props.iconName)}get iconColor(){return this._icon.iconColor}set iconColor(e){this._icon.iconColor=e}get label(){return this._props.label}set label(e){this._props.label=e??``,this._renderLabel()}get useUnderline(){return this._props.useUnderline}set useUnderline(t){let n=e(t,this.useUnderline);this._props.useUnderline=!!n,this._renderLabel()}get canShrink(){return this._props.canShrink}set canShrink(t){let r=e(t,this.canShrink);this._props.canShrink=!!r,this.className=n(this.className,this._props.canShrink)}get ellipsize(){return r(this._props.canShrink)}_renderLabel(){this._label.text=o(this._props.label,this._props.useUnderline),this._label.visibility=s(this._props.label)}};export{AdwButtonContent};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{ButtonRowState as e,buttonRowIconColor as t,buttonRowIconVisuals as n}from"./row-state.js";import{ACTIVATED as r,AdwActionRow as i}from"./adw-action-row.js";import{AdwIcon as a}from"./adw-icon.js";import{attachRowPressFeedback as o}from"./row-press.js";import{StackLayout as s}from"@nativescript/core";import{adwaitaAccent as c,onAdwaitaAccentChanged as l}from"@gjsify/adwaita-core";var u=class AdwButtonRow extends i{isActionRow=!1;_contentBox;_startIcon;_endIcon;_pinnedIconColor=null;_unsubAccent=null;_buttonState=new e;constructor(){super(),this.className=`adw-row adw-action-row adw-button-row`,this._titleLabel.className=`adw-button-row-title`,this._titleLabel.horizontalAlignment=`center`,this._textStack.removeChild(this._titleLabel);let e=new s;e.orientation=`horizontal`,e.className=`adw-button-row-content`,e.horizontalAlignment=`center`,this._startIcon=AdwButtonRow._makeIcon(`adw-button-row-start-icon`),this._endIcon=AdwButtonRow._makeIcon(`adw-button-row-end-icon`),this._applyIconColor(),this.addEventListener(`loaded`,()=>{this._applyIconColor(),this._unsubAccent??=l(()=>this._applyIconColor())}),this.addEventListener(`unloaded`,()=>{this._unsubAccent?.(),this._unsubAccent=null}),e.addChild(this._startIcon),e.addChild(this._titleLabel),e.addChild(this._endIcon),this._textStack.addChild(e),this._textStack.horizontalAlignment=`center`,this._contentBox=e,this.activatable=!0,this._applyIcons(),o(this)}static _makeIcon(e){let t=new a;return t.className=`${t.className} ${e}`.trim(),t.verticalAlignment=`middle`,t}get startIconName(){return this._buttonState.startIconName}set startIconName(e){this._buttonState.setStartIconName(e)&&this._applyIcons()}get endIconName(){return this._buttonState.endIconName}set endIconName(e){this._buttonState.setEndIconName(e)&&this._applyIcons()}get startIconColor(){return this._startIcon.iconColor}set startIconColor(e){this._pinnedIconColor=e||null,this._applyIconColor()}_applyIconColor(){let e=t(this._pinnedIconColor,c());this._startIcon.iconColor=e,this._endIcon.iconColor=e}_applyIcons(){let e=n(this._buttonState.state);this._startIcon.iconName=e.startIcon,this._startIcon.visibility=e.startIconVisibility,this._endIcon.iconName=e.endIcon,this._endIcon.visibility=e.endIconVisibility}};export{r as ACTIVATED,u as AdwButtonRow};
1
+ import"../_virtual/_rolldown/runtime.js";import{ButtonRowState as e,buttonRowIconColor as t,buttonRowIconVisuals as n}from"./row-state.js";import{ACTIVATED as r,AdwActionRow as i}from"./adw-action-row.js";import{GtkImage as a}from"./gtk-image.js";import{attachRowPressFeedback as o}from"./row-press.js";import{StackLayout as s}from"@nativescript/core";import{adwaitaAccent as c,onAdwaitaAccentChanged as l}from"@gjsify/adwaita-core";var u=class AdwButtonRow extends i{isActionRow=!1;_contentBox;_startIcon;_endIcon;_pinnedIconColor=null;_unsubAccent=null;_buttonState=new e;constructor(){super(),this.className=`adw-row adw-action-row adw-button-row`,this._titleLabel.className=`adw-button-row-title`,this._titleLabel.horizontalAlignment=`center`,this._textStack.removeChild(this._titleLabel);let e=new s;e.orientation=`horizontal`,e.className=`adw-button-row-content`,e.horizontalAlignment=`center`,this._startIcon=AdwButtonRow._makeIcon(`adw-button-row-start-icon`),this._endIcon=AdwButtonRow._makeIcon(`adw-button-row-end-icon`),this._applyIconColor(),this.addEventListener(`loaded`,()=>{this._applyIconColor(),this._unsubAccent??=l(()=>this._applyIconColor())}),this.addEventListener(`unloaded`,()=>{this._unsubAccent?.(),this._unsubAccent=null}),e.addChild(this._startIcon),e.addChild(this._titleLabel),e.addChild(this._endIcon),this._textStack.addChild(e),this._textStack.horizontalAlignment=`center`,this._contentBox=e,this.activatable=!0,this._applyIcons(),o(this)}static _makeIcon(e){let t=new a;return t.className=`${t.className} ${e}`.trim(),t.verticalAlignment=`middle`,t}get startIconName(){return this._buttonState.startIconName}set startIconName(e){this._buttonState.setStartIconName(e)&&this._applyIcons()}get endIconName(){return this._buttonState.endIconName}set endIconName(e){this._buttonState.setEndIconName(e)&&this._applyIcons()}get startIconColor(){return this._startIcon.iconColor}set startIconColor(e){this._pinnedIconColor=e||null,this._applyIconColor()}_applyIconColor(){let e=t(this._pinnedIconColor,c());this._startIcon.iconColor=e,this._endIcon.iconColor=e}_applyIcons(){let e=n(this._buttonState.state);this._startIcon.iconName=e.startIcon,this._startIcon.visibility=e.startIconVisibility,this._endIcon.iconName=e.endIcon,this._endIcon.visibility=e.endIconVisibility}};export{r as ACTIVATED,u as AdwButtonRow};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{xmlNumber as e}from"./xml-values.js";import{AdwActionRow as t}from"./adw-action-row.js";import{AdwIcon as n}from"./adw-icon.js";import{attachRowPressFeedback as r}from"./row-press.js";import{Label as i,StackLayout as a,action as o}from"@nativescript/core";import{ComboState as s,ComboState as c}from"@gjsify/adwaita-core";import{panDownSymbolic as l}from"@gjsify/adwaita-icons/ui";const u=`notify::selected`;var AdwComboRow=class extends t{_valueLabel;_chevron;_state=new c;constructor(){super(),this.className=`adw-row adw-action-row adw-combo-row`;let e=new a;e.orientation=`horizontal`,e.className=`adw-combo-suffix`;let t=new i;t.className=`adw-combo-value`,t.text=``;let o=new n;o.className=`adw-combo-chevron`,o.iconColor=`#9a9a9a`,o.iconSize=16,o.iconName=l,e.addChild(t),e.addChild(o),this.setSuffix(e),this._valueLabel=t,this._chevron=o,this._state.subscribe(e=>{if(this._valueLabel.text=e.label,this._syncChooser(),e.interactive){let t={eventName:u,object:this,selected:e.selected,value:e.value};this.notify(t)}}),this.addEventListener(`tap`,()=>{this._openChooser()}),r(this),this._syncChooser()}_syncChooser(){this._chevron.visibility=this._state.presentsChooser?`visible`:`collapse`}async _openChooser(){if(!this._state.presentsChooser)return;let e=this._state.options.map(e=>e.label),t=await o({title:this.title||void 0,cancelButtonText:`Cancel`,actions:e});this._state.select(e.indexOf(t))}get options(){return this._state.options}set options(e){this._state.setOptions(e)}get selected(){return this._state.selectedIndex}set selected(t){let n=e(t,this.selected);this._state.setSelectedIndex(n)}get selectedValue(){return this._state.selectedValue}set selectedValue(e){this._state.setSelectedValue(e)}};export{AdwComboRow,s as ComboState,u as NOTIFY_SELECTED};
1
+ import"../_virtual/_rolldown/runtime.js";import{xmlNumber as e}from"./xml-values.js";import{AdwActionRow as t}from"./adw-action-row.js";import{GtkImage as n}from"./gtk-image.js";import{attachRowPressFeedback as r}from"./row-press.js";import{Label as i,StackLayout as a,action as o}from"@nativescript/core";import{ComboState as s,ComboState as c,normalizeComboOptions as l}from"@gjsify/adwaita-core";import{panDownSymbolic as u}from"@gjsify/adwaita-icons/ui";const d=`notify::selected`;var AdwComboRow=class extends t{_valueLabel;_chevron;_state=new c;constructor(){super(),this.className=`adw-row adw-action-row adw-combo-row`;let e=new a;e.orientation=`horizontal`,e.className=`adw-combo-suffix`;let t=new i;t.className=`adw-combo-value`,t.text=``;let o=new n;o.className=`adw-combo-chevron`,o.iconColor=`#9a9a9a`,o.iconSize=16,o.iconName=u,e.addChild(t),e.addChild(o),this.setSuffix(e),this._valueLabel=t,this._chevron=o,this._state.subscribe(e=>{if(this._valueLabel.text=e.label,this._syncChooser(),e.interactive){let t={eventName:d,object:this,selected:e.selected,value:e.value};this.notify(t)}}),this.addEventListener(`tap`,()=>{this._openChooser()}),r(this),this._syncChooser()}_syncChooser(){this._chevron.visibility=this._state.presentsChooser?`visible`:`collapse`}async _openChooser(){if(!this._state.presentsChooser)return;let e=this._state.model.map(e=>e.label),t=await o({title:this.title||void 0,cancelButtonText:`Cancel`,actions:e});this._state.select(e.indexOf(t))}get model(){return this._state.model}set model(e){this._state.setModel(l(e))}get selected(){return this._state.selectedIndex}set selected(t){let n=e(t,this.selected);this._state.setSelectedIndex(n)}get selectedValue(){return this._state.selectedValue}set selectedValue(e){this._state.setSelectedValue(e)}};export{AdwComboRow,s as ComboState,d as NOTIFY_SELECTED};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{xmlBoolean as e,xmlNumber as t}from"./xml-values.js";import{AdwActionRow as n}from"./adw-action-row.js";import{AdwIcon as r}from"./adw-icon.js";import{AdwImageButton as i}from"./adw-image-button.js";import{NS_EDIT_ICON_CLASS as a,NS_ENTRY_ROW_CLASS as o,applyEntryRowState as s}from"./entry-row-view.js";import{Label as c,StackLayout as l,TextField as u}from"@nativescript/core";import{ADW_ACCENT_FG_COLOR as d,EntryRowState as f,EntryRowState as p}from"@gjsify/adwaita-core";import{documentEditSymbolic as m,objectSelectSymbolic as h}from"@gjsify/adwaita-icons/actions";const g=`notify::text`,_=`notify::text-length`,v=`apply`,y=`entry-activated`;var AdwEntryRow=class extends n{isActionRow=!1;_state=new p;_field;_emptyTitle;_suffixes;_editIcon;_indicator;_applyButton;_slotSuffix=null;_lastText=``;_lastLength=0;constructor(){super(),this._titleLabel.className=`adw-row-title adw-entry-title`,this._managesTitleVisibility=!1;let e=new c;e.className=`adw-row-title adw-entry-empty-title`,e.textWrap=!0,this._textStack.insertChild(e,0),this._emptyTitle=e;let t=new u;t.className=`adw-entry-field`,t.set(`backgroundColor`,`transparent`),t.set(`borderWidth`,0),this._textStack.addChild(t),this._field=t;let n=new l;n.orientation=`horizontal`,n.className=`adw-entry-row-suffixes`,this._suffixes=n;let o=new r;o.className=`adw-icon adw-entry-indicator`,n.addChild(o),this._indicator=o;let s=new i;s.className=`${s.className} adw-entry-apply`.trim(),s.iconName=h,s.iconColor=d,s.addEventListener(`tap`,()=>this.apply()),n.addChild(s),this._applyButton=s;let f=new r;f.className=a,f.iconName=m,n.addChild(f),this._editIcon=f,super.setSuffix(n),this._field.addEventListener(`textChange`,()=>{this._state.setText(this._field.text??``)}),this._field.addEventListener(`focus`,()=>this._state.setEditing(!0)),this._field.addEventListener(`blur`,()=>this._state.setEditing(!1)),this._field.addEventListener(`returnPress`,()=>this._activate()),this._lastText=this._state.text,this._lastLength=this._state.textLength,this._render(this._state.state),this._state.subscribe(e=>this._onStateChanged(e))}get text(){return this._state.text}set text(e){this._state.setText(e??``)}get textLength(){return this._state.textLength}get maxLength(){return this._state.maxLength}set maxLength(e){let n=t(e,this.maxLength);this._state.setMaxLength(n)}get editable(){return this._state.editable}set editable(t){let n=e(t,this.editable);this._state.setEditable(n)}get showApplyButton(){return this._state.showApplyButton}set showApplyButton(t){let n=e(t,this.showApplyButton);this._state.setShowApplyButton(n)}get activatesDefault(){return this._state.activatesDefault}set activatesDefault(t){let n=e(t,this.activatesDefault);this._state.setActivatesDefault(n)}get editing(){return this._state.editing}addSuffix(e){e.className=`${e.className??``} adw-row-suffix`.trim(),this._suffixes.addChild(e)}setSuffix(e){this._slotSuffix&&=(this._suffixes.removeChild(this._slotSuffix),null),e&&(this.addSuffix(e),this._slotSuffix=e)}get suffix(){return this._slotSuffix}setShowIndicator(e){this._state.setShowIndicator(e)}setIndicatorIcon(e){this._indicator.iconName=e}apply(){this._state.apply(),this.notify({eventName:v,object:this})}_activate(){let e=this._state.activate();if(e.signal===`apply`){this.notify({eventName:v,object:this});return}let t={eventName:y,object:this,activateDefault:e.activateDefault};this.notify(t)}_render(e){s({row:this,emptyTitle:this._emptyTitle,title:this._titleLabel,field:this._field,editIcon:this._editIcon,indicator:this._indicator,applyButton:this._applyButton},e,this._baseClassName)}get _baseClassName(){return o}_onStateChanged(e){if(this._render(e),e.text!==this._lastText){this._lastText=e.text;let t={eventName:g,object:this,text:e.text};this.notify(t)}if(e.textLength!==this._lastLength){this._lastLength=e.textLength;let t={eventName:_,object:this,textLength:e.textLength};this.notify(t)}}};export{AdwEntryRow,f as EntryRowState,g as NOTIFY_TEXT,_ as NOTIFY_TEXT_LENGTH,v as SIGNAL_APPLY,y as SIGNAL_ENTRY_ACTIVATED};
1
+ import"../_virtual/_rolldown/runtime.js";import{xmlBoolean as e,xmlNumber as t}from"./xml-values.js";import{AdwActionRow as n}from"./adw-action-row.js";import{GtkImage as r}from"./gtk-image.js";import{AdwImageButton as i}from"./adw-image-button.js";import{NS_EDIT_ICON_CLASS as a,NS_ENTRY_ROW_CLASS as o,applyEntryRowState as s}from"./entry-row-view.js";import{Label as c,StackLayout as l,TextField as u}from"@nativescript/core";import{ADW_ACCENT_FG_COLOR as d,EntryRowState as f,EntryRowState as p}from"@gjsify/adwaita-core";import{documentEditSymbolic as m,objectSelectSymbolic as h}from"@gjsify/adwaita-icons/actions";const g=`notify::text`,_=`notify::text-length`,v=`apply`,y=`entry-activated`;var AdwEntryRow=class extends n{isActionRow=!1;_state=new p;_field;_emptyTitle;_suffixes;_editIcon;_indicator;_applyButton;_slotSuffix=null;_lastText=``;_lastLength=0;constructor(){super(),this._titleLabel.className=`adw-row-title adw-entry-title`,this._managesTitleVisibility=!1;let e=new c;e.className=`adw-row-title adw-entry-empty-title`,e.textWrap=!0,this._textStack.insertChild(e,0),this._emptyTitle=e;let t=new u;t.className=`adw-entry-field`,t.set(`backgroundColor`,`transparent`),t.set(`borderWidth`,0),this._textStack.addChild(t),this._field=t;let n=new l;n.orientation=`horizontal`,n.className=`adw-entry-row-suffixes`,this._suffixes=n;let o=new r;o.className=`gtk-image adw-entry-indicator`,n.addChild(o),this._indicator=o;let s=new i;s.className=`${s.className} adw-entry-apply`.trim(),s.iconName=h,s.iconColor=d,s.addEventListener(`tap`,()=>this.apply()),n.addChild(s),this._applyButton=s;let f=new r;f.className=a,f.iconName=m,n.addChild(f),this._editIcon=f,super.setSuffix(n),this._field.addEventListener(`textChange`,()=>{this._state.setText(this._field.text??``)}),this._field.addEventListener(`focus`,()=>this._state.setEditing(!0)),this._field.addEventListener(`blur`,()=>this._state.setEditing(!1)),this._field.addEventListener(`returnPress`,()=>this._activate()),this._lastText=this._state.text,this._lastLength=this._state.textLength,this._render(this._state.state),this._state.subscribe(e=>this._onStateChanged(e))}get text(){return this._state.text}set text(e){this._state.setText(e??``)}get textLength(){return this._state.textLength}get maxLength(){return this._state.maxLength}set maxLength(e){let n=t(e,this.maxLength);this._state.setMaxLength(n)}get editable(){return this._state.editable}set editable(t){let n=e(t,this.editable);this._state.setEditable(n)}get showApplyButton(){return this._state.showApplyButton}set showApplyButton(t){let n=e(t,this.showApplyButton);this._state.setShowApplyButton(n)}get activatesDefault(){return this._state.activatesDefault}set activatesDefault(t){let n=e(t,this.activatesDefault);this._state.setActivatesDefault(n)}get editing(){return this._state.editing}addSuffix(e){e.className=`${e.className??``} adw-row-suffix`.trim(),this._suffixes.addChild(e)}setSuffix(e){this._slotSuffix&&=(this._suffixes.removeChild(this._slotSuffix),null),e&&(this.addSuffix(e),this._slotSuffix=e)}get suffix(){return this._slotSuffix}setShowIndicator(e){this._state.setShowIndicator(e)}setIndicatorIcon(e){this._indicator.iconName=e}apply(){this._state.apply(),this.notify({eventName:v,object:this})}_activate(){let e=this._state.activate();if(e.signal===`apply`){this.notify({eventName:v,object:this});return}let t={eventName:y,object:this,activateDefault:e.activateDefault};this.notify(t)}_render(e){s({row:this,emptyTitle:this._emptyTitle,title:this._titleLabel,field:this._field,editIcon:this._editIcon,indicator:this._indicator,applyButton:this._applyButton},e,this._baseClassName)}get _baseClassName(){return o}_onStateChanged(e){if(this._render(e),e.text!==this._lastText){this._lastText=e.text;let t={eventName:g,object:this,text:e.text};this.notify(t)}if(e.textLength!==this._lastLength){this._lastLength=e.textLength;let t={eventName:_,object:this,textLength:e.textLength};this.notify(t)}}};export{AdwEntryRow,f as EntryRowState,g as NOTIFY_TEXT,_ as NOTIFY_TEXT_LENGTH,v as SIGNAL_APPLY,y as SIGNAL_ENTRY_ACTIVATED};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{xmlBoolean as e}from"./xml-values.js";import{resolveBuilderSlot as t}from"./builder-slots.js";import{AdwActionRow as n}from"./adw-action-row.js";import{AdwIcon as r}from"./adw-icon.js";import{GridLayout as i,ItemSpec as a,StackLayout as o}from"@nativescript/core";import{ExpanderState as s,ExpanderState as c}from"@gjsify/adwaita-core";import{panDownSymbolic as l,panUpSymbolic as u}from"@gjsify/adwaita-icons/ui";const d=`notify::expanded`,f=[`prefix`,`suffix`];var AdwExpanderRow=class extends n{isActionRow=!1;_toggle;_disclosure;_state=new c;constructor(){super(),this.className=`adw-row adw-action-row adw-expander-row`,this.addRow(new a(1,`auto`));let e=new o;e.orientation=`vertical`,e.className=`adw-expander-disclosure`,e.visibility=`collapse`,i.setRow(e,1),i.setColumn(e,0),i.setColumnSpan(e,3),this.addChild(e),this._disclosure=e;let t=new r;t.iconName=l,t.className=`${t.className} adw-expander-toggle`.trim(),this.setSuffix(t),this._toggle=t,this._state.subscribe(e=>{this._disclosure.visibility=e?`visible`:`collapse`,this._toggle.iconName=e?u:l;let t={eventName:d,object:this,expanded:e};this.notify(t)});let toggleOnTap=()=>{this._state.toggle()};this._textStack.addEventListener(`tap`,toggleOnTap),t.addEventListener(`tap`,toggleOnTap)}addRow(e){if(e instanceof a){super.addRow(e);return}this._disclosure.addChild(e)}removeRow(e){this._disclosure.removeChild(e)}_addChildFromBuilder(e,n){let r=t(e,f,`row`);r===`row`?this.addRow(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(t){this._state.setExpanded(e(t,!1))}};export{AdwExpanderRow,s as ExpanderState,d as NOTIFY_EXPANDED};
1
+ import"../_virtual/_rolldown/runtime.js";import{xmlBoolean as e}from"./xml-values.js";import{resolveBuilderSlot as t}from"./builder-slots.js";import{AdwActionRow as n}from"./adw-action-row.js";import{GtkImage as r}from"./gtk-image.js";import{GridLayout as i,ItemSpec as a,StackLayout as o}from"@nativescript/core";import{ExpanderState as s,ExpanderState as c}from"@gjsify/adwaita-core";import{panDownSymbolic as l,panUpSymbolic as u}from"@gjsify/adwaita-icons/ui";const d=`notify::expanded`,f=[`prefix`,`suffix`];var AdwExpanderRow=class extends n{isActionRow=!1;_toggle;_disclosure;_state=new c;constructor(){super(),this.className=`adw-row adw-action-row adw-expander-row`,this.addRow(new a(1,`auto`));let e=new o;e.orientation=`vertical`,e.className=`adw-expander-disclosure`,e.visibility=`collapse`,i.setRow(e,1),i.setColumn(e,0),i.setColumnSpan(e,3),this.addChild(e),this._disclosure=e;let t=new r;t.iconName=l,t.className=`${t.className} adw-expander-toggle`.trim(),this.setSuffix(t),this._toggle=t,this._state.subscribe(e=>{this._disclosure.visibility=e?`visible`:`collapse`,this._toggle.iconName=e?u:l;let t={eventName:d,object:this,expanded:e};this.notify(t)});let toggleOnTap=()=>{this._state.toggle()};this._textStack.addEventListener(`tap`,toggleOnTap),t.addEventListener(`tap`,toggleOnTap)}addRow(e){if(e instanceof a){super.addRow(e);return}this._disclosure.addChild(e)}removeRow(e){this._disclosure.removeChild(e)}_addChildFromBuilder(e,n){let r=t(e,f,`row`);r===`row`?this.addRow(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(t){this._state.setExpanded(e(t,!1))}};export{AdwExpanderRow,s as ExpanderState,d as NOTIFY_EXPANDED};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{xmlNumber as e}from"./xml-values.js";import{GridLayout as t,ItemSpec as n,Label as r,Slider as i,StackLayout as a}from"@nativescript/core";const o=`notify::value`;var AdwSliderRow=class extends a{_titleLabel;_valueLabel;_slider;_value=0;_min=0;_max=100;_step=1;_suppress=!1;constructor(){super(),this.orientation=`vertical`,this.className=`adw-slider-row`;let e=new t;e.className=`adw-slider-header`,e.addRow(new n(1,`auto`)),e.addColumn(new n(1,`star`)),e.addColumn(new n(1,`auto`));let a=new r;a.className=`adw-slider-title`,a.textWrap=!1,t.setColumn(a,0),e.addChild(a);let s=new r;s.className=`adw-slider-value`,s.text=String(this._value),t.setColumn(s,1),e.addChild(s);let c=new i;c.className=`adw-slider`,c.minValue=this._min,c.maxValue=this._max,c.value=this._value,this.addChild(e),this.addChild(c),this._titleLabel=a,this._valueLabel=s,this._slider=c,c.addEventListener(`valueChange`,()=>{if(this._suppress)return;let e=this._snap(this._slider.value);if(e!==this._slider.value&&(this._suppress=!0,this._slider.value=e,this._suppress=!1),e!==this._value){this._value=e,this._valueLabel.text=String(e);let t={eventName:o,object:this,value:e};this.notify(t)}})}_snap(e){let t=Math.min(this._max,Math.max(this._min,e)),n=Math.round((t-this._min)/this._step);return Math.min(this._max,this._min+n*this._step)}_sync(){this._suppress=!0,this._slider.value=this._value,this._suppress=!1,this._valueLabel.text=String(this._value)}get title(){return this._titleLabel.text??``}set title(e){this._titleLabel.text=e??``}get value(){return this._value}set value(t){let n=e(t,this.value),r=this._snap(Number.isFinite(n)?n:0);r!==this._value&&(this._value=r,this._sync())}get min(){return this._min}set min(t){let n=e(t,this.min);this._min=Number.isFinite(n)?n:0,this._slider.minValue=this._min,this.value=this._value}get max(){return this._max}set max(t){let n=e(t,this.max);this._max=Number.isFinite(n)?n:100,this._slider.maxValue=this._max,this.value=this._value}get step(){return this._step}set step(t){let n=e(t,this.step);this._step=Number.isFinite(n)&&n>0?n:1}get slider(){return this._slider}};export{AdwSliderRow,o as NOTIFY_SLIDER_VALUE};
1
+ import"../_virtual/_rolldown/runtime.js";import{xmlNumber as e}from"./xml-values.js";import{GridLayout as t,ItemSpec as n,Label as r,Slider as i,StackLayout as a}from"@nativescript/core";import{SpinState as o,parseAdjustment as s,snapAdjustmentValue as c}from"@gjsify/adwaita-core";const l=`notify::value`;var AdwSliderRow=class extends a{_titleLabel;_valueLabel;_slider;_state=new o;_suppress=!1;constructor(){super(),this.orientation=`vertical`,this.className=`adw-slider-row`;let e=new t;e.className=`adw-slider-header`,e.addRow(new n(1,`auto`)),e.addColumn(new n(1,`star`)),e.addColumn(new n(1,`auto`));let a=new r;a.className=`adw-slider-title`,a.textWrap=!1,t.setColumn(a,0),e.addChild(a);let o=new r;o.className=`adw-slider-value`,o.text=String(this._state.value),t.setColumn(o,1),e.addChild(o);let s=this._state.adjustment,u=new i;u.className=`adw-slider`,u.minValue=s.lower,u.maxValue=s.upper,u.value=s.value,this.addChild(e),this.addChild(u),this._titleLabel=a,this._valueLabel=o,this._slider=u,this._state.subscribe(e=>{if(this._valueLabel.text=String(e.value),e.interactive){let t={eventName:l,object:this,value:e.value};this.notify(t)}else this._sync()}),this._state.subscribeChanged(e=>{this._slider.minValue=e.lower,this._slider.maxValue=e.upper;let t=c(e,this._state.value);t===this._state.value?this._sync():this._state.setValue(t)}),u.addEventListener(`valueChange`,()=>{if(this._suppress)return;let e=c(this._state.adjustment,this._slider.value);e!==this._slider.value&&(this._suppress=!0,this._slider.value=e,this._suppress=!1),this._state.setValueInteractive(e)})}_sync(){this._suppress=!0,this._slider.value=this._state.value,this._suppress=!1,this._valueLabel.text=String(this._state.value)}get title(){return this._titleLabel.text??``}set title(e){this._titleLabel.text=e??``}get value(){return this._state.value}set value(t){this._state.setValue(c(this._state.adjustment,e(t,this.value)))}get adjustment(){return this._state.adjustment}set adjustment(e){this._state.configure(typeof e==`string`?s(e):e)}get slider(){return this._slider}};export{AdwSliderRow,l as NOTIFY_SLIDER_VALUE};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{xmlNumber as e}from"./xml-values.js";import{AdwActionRow as t}from"./adw-action-row.js";import{AdwImageButton as n}from"./adw-image-button.js";import{Label as r,StackLayout as i}from"@nativescript/core";import{SpinState as a,SpinState as o}from"@gjsify/adwaita-core";import{valueDecreaseSymbolic as s,valueIncreaseSymbolic as c}from"@gjsify/adwaita-icons/actions";const l=`notify::value`;var AdwSpinRow=class extends t{_minusButton;_plusButton;_valueLabel;_state=new o;constructor(){super(),this.className=`adw-row adw-action-row adw-spin-row`;let e=new i;e.orientation=`horizontal`,e.className=`adw-spin-control`;let t=new r;t.className=`adw-spin-value`,t.text=String(this._state.value);let a=new n;a.iconName=s,a.className=`${a.className} adw-spin-button adw-spin-minus`.trim();let o=new n;o.iconName=c,o.className=`${o.className} adw-spin-button adw-spin-plus`.trim(),e.addChild(t),e.addChild(a),e.addChild(o),this.setSuffix(e),this._minusButton=a,this._plusButton=o,this._valueLabel=t,this._state.subscribe(e=>{if(this._valueLabel.text=String(e.value),e.interactive){let t={eventName:l,object:this,value:e.value};this.notify(t)}}),a.addEventListener(`tap`,()=>this._state.decrement()),o.addEventListener(`tap`,()=>this._state.increment())}get value(){return this._state.value}set value(t){this._state.setValue(e(t,this._state.value))}get min(){return this._state.min}set min(t){this._state.setMin(e(t,this._state.min))}get max(){return this._state.max}set max(t){this._state.setMax(e(t,this._state.max))}get step(){return this._state.step}set step(t){this._state.setStep(e(t,this._state.step))}};export{AdwSpinRow,l as NOTIFY_VALUE,a as SpinState};
1
+ import"../_virtual/_rolldown/runtime.js";import{xmlNumber as e}from"./xml-values.js";import{AdwActionRow as t}from"./adw-action-row.js";import{AdwImageButton as n}from"./adw-image-button.js";import{Label as r,StackLayout as i}from"@nativescript/core";import{SpinState as a,SpinState as o,parseAdjustment as s}from"@gjsify/adwaita-core";import{valueDecreaseSymbolic as c,valueIncreaseSymbolic as l}from"@gjsify/adwaita-icons/actions";const u=`notify::value`;var AdwSpinRow=class extends t{_minusButton;_plusButton;_valueLabel;_state=new o;constructor(){super(),this.className=`adw-row adw-action-row adw-spin-row`;let e=new i;e.orientation=`horizontal`,e.className=`adw-spin-control`;let t=new r;t.className=`adw-spin-value`,t.text=String(this._state.value);let a=new n;a.iconName=c,a.className=`${a.className} adw-spin-button adw-spin-minus`.trim();let o=new n;o.iconName=l,o.className=`${o.className} adw-spin-button adw-spin-plus`.trim(),e.addChild(t),e.addChild(a),e.addChild(o),this.setSuffix(e),this._minusButton=a,this._plusButton=o,this._valueLabel=t,this._state.subscribe(e=>{if(this._valueLabel.text=String(e.value),e.interactive){let t={eventName:u,object:this,value:e.value};this.notify(t)}}),a.addEventListener(`tap`,()=>this._state.decrement()),o.addEventListener(`tap`,()=>this._state.increment())}get value(){return this._state.value}set value(t){this._state.setValue(e(t,this._state.value))}get adjustment(){return this._state.adjustment}set adjustment(e){this._state.configure(typeof e==`string`?s(e):e)}};export{AdwSpinRow,u as NOTIFY_VALUE,a as SpinState};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{xmlBoolean as e}from"./xml-values.js";import{AdwIcon as t}from"./adw-icon.js";import{attachRowPressFeedback as n}from"./row-press.js";import{MENU_CANCEL_LABEL as r,menuSheetActions as i,resolveMenuChoice as a,setActionIcon as o,splitButtonArrowSvg as s,toMenuEntries as c}from"./split-button.js";import{GridLayout as l,ItemSpec as u,Label as d,StackLayout as f,action as p}from"@nativescript/core";import{SPLIT_BUTTON_DISABLED_OPACITY as m,SplitButtonState as h}from"@gjsify/adwaita-core";const g=`clicked`,_=`menuTapped`;var AdwSplitButton=class extends l{_actionPart;_actionLabel;_actionIcon;_dropdownPart;_chevron;_state=new h;_showingIcon=!1;_sensitive=!0;constructor(){super(),this.className=`adw-split-button`,this.addColumn(new u(1,`auto`)),this.addColumn(new u(1,`auto`)),this.addRow(new u(1,`auto`));let e=new f;e.orientation=`horizontal`,e.className=`adw-split-button-action`,e.horizontalAlignment=`center`,l.setColumn(e,0);let r=new d;r.className=`adw-split-button-label`,r.verticalAlignment=`middle`,e.addChild(r);let i=new t;i.className=`${i.className} adw-split-button-action-icon`.trim(),i.verticalAlignment=`middle`,this.addChild(e),this._actionPart=e,this._actionLabel=r,this._actionIcon=i;let a=new l;a.className=`adw-split-button-dropdown`,a.addColumn(new u(1,`star`)),a.addRow(new u(1,`star`)),l.setColumn(a,1);let o=new t;o.className=`${o.className} adw-split-button-chevron`.trim(),o.iconName=s(this._state.direction),o.horizontalAlignment=`center`,o.verticalAlignment=`middle`,a.addChild(o),this.addChild(a),this._dropdownPart=a,this._chevron=o,e.addEventListener(`tap`,()=>{if(!this._sensitive)return;let e={eventName:g,object:this};this.notify(e)}),a.addEventListener(`tap`,()=>{this._openMenu()}),n(e),n(a),this._state.subscribe(()=>this._render()),this._render()}async _openMenu(){if(!this._sensitive||this._state.open||!this._state.dropdownEnabled)return;let e=i(this._state.menuModel??[],r);this._state.toggleMenu();let t=a(e,await p({title:this._state.label||void 0,cancelButtonText:r,actions:e})),n=this._state.activateMenuEntry(t);if(n===null){this._state.closeMenu();return}let o={eventName:_,object:this,item:n.label,index:t,action:n.action};this.notify(o)}_render(){let{mode:e,label:t,iconName:n,direction:r,dropdownEnabled:i}=this._state,a=e===`icon`;a?this._actionIcon.iconName=n??``:this._actionLabel.text=t??``,a!==this._showingIcon&&(this._actionPart.removeChild(this._showingIcon?this._actionIcon:this._actionLabel),this._actionPart.addChild(a?this._actionIcon:this._actionLabel),this._showingIcon=a),this._chevron.iconName=s(r),this._dropdownPart.opacity=i?1:m,this.opacity=this._sensitive?1:m}get label(){return this._state.label??``}set label(e){this._state.setLabel(e??``)}get iconName(){return this._state.iconName??``}set iconName(e){o(this._state,e)}get menu(){return this._state.menuModel??[]}set menu(e){this._state.setMenuModel(c(e))}get direction(){return this._state.direction}set direction(e){this._state.setDirection(e)}get dropdownTooltip(){return this._state.dropdownTooltip}set dropdownTooltip(e){this._state.setDropdownTooltip(e??``)}get useUnderline(){return this._state.useUnderline}set useUnderline(t){let n=e(t,this.useUnderline);this._state.setUseUnderline(!!n)}get sensitive(){return this._sensitive}set sensitive(t){let n=!!e(t,this._sensitive);n!==this._sensitive&&(this._sensitive=n,this._render())}get actionButton(){return this._actionPart}};export{AdwSplitButton,g as CLICKED,_ as MENU_TAPPED};
1
+ import"../_virtual/_rolldown/runtime.js";import{xmlBoolean as e}from"./xml-values.js";import{GtkImage as t}from"./gtk-image.js";import{attachRowPressFeedback as n}from"./row-press.js";import{MENU_CANCEL_LABEL as r,presentMenuSheet as i,refuseMenuString as a}from"./menu-sheet.js";import{setActionIcon as o,splitButtonArrowSvg as s}from"./split-button.js";import{GridLayout as c,ItemSpec as l,Label as u,StackLayout as d,action as f}from"@nativescript/core";import{ADW_MENU_SURFACE_NATIVESCRIPT as p,SPLIT_BUTTON_DISABLED_OPACITY as m,SplitButtonState as h,assertMenuRenderable as g}from"@gjsify/adwaita-core";const _=`clicked`,v=`menuTapped`;var AdwSplitButton=class extends c{_actionPart;_actionLabel;_actionIcon;_dropdownPart;_chevron;_state=new h;_actions=null;_showingIcon=!1;_sensitive=!0;constructor(){super(),this.className=`adw-split-button`,this.addColumn(new l(1,`auto`)),this.addColumn(new l(1,`auto`)),this.addRow(new l(1,`auto`));let e=new d;e.orientation=`horizontal`,e.className=`adw-split-button-action`,e.horizontalAlignment=`center`,c.setColumn(e,0);let r=new u;r.className=`adw-split-button-label`,r.verticalAlignment=`middle`,e.addChild(r);let i=new t;i.className=`${i.className} adw-split-button-action-icon`.trim(),i.verticalAlignment=`middle`,this.addChild(e),this._actionPart=e,this._actionLabel=r,this._actionIcon=i;let a=new c;a.className=`adw-split-button-dropdown`,a.addColumn(new l(1,`star`)),a.addRow(new l(1,`star`)),c.setColumn(a,1);let o=new t;o.className=`${o.className} adw-split-button-chevron`.trim(),o.iconName=s(this._state.direction),o.horizontalAlignment=`center`,o.verticalAlignment=`middle`,a.addChild(o),this.addChild(a),this._dropdownPart=a,this._chevron=o,e.addEventListener(`tap`,()=>{if(!this._sensitive)return;let e={eventName:_,object:this};this.notify(e)}),a.addEventListener(`tap`,()=>{this._openMenu()}),n(e),n(a),this._state.subscribe(()=>this._render()),this._render()}async _openMenu(){if(!this._sensitive||this._state.open||!this._state.dropdownEnabled)return;this._state.toggleMenu();let e=await i(f,this._state.menuModel??[],{title:this._state.label??void 0,actions:this._actions??void 0,cancelLabel:r}),t=e===null?null:this._state.activateMenuItem(e);if(t===null||e===null){this._state.closeMenu();return}let n={eventName:v,object:this,item:t.label,id:t.id??t.label,path:e,action:t.action};this.notify(n)}_render(){let{mode:e,label:t,iconName:n,direction:r,dropdownEnabled:i}=this._state,a=e===`icon`;a?this._actionIcon.iconName=n??``:this._actionLabel.text=t??``,a!==this._showingIcon&&(this._actionPart.removeChild(this._showingIcon?this._actionIcon:this._actionLabel),this._actionPart.addChild(a?this._actionIcon:this._actionLabel),this._showingIcon=a),this._chevron.iconName=s(r),this._dropdownPart.opacity=i?1:m,this.opacity=this._sensitive?1:m}get label(){return this._state.label??``}set label(e){this._state.setLabel(e??``)}get iconName(){return this._state.iconName??``}set iconName(e){o(this._state,e)}get menuModel(){return this._state.menuModel??[]}set menuModel(e){a(e,`AdwSplitButton`),this._state.setMenuModel(e),g(this._state.menuModel??[],p)}get actions(){return this._actions}set actions(e){this._actions=e??null}get direction(){return this._state.direction}set direction(e){this._state.setDirection(e)}get dropdownTooltip(){return this._state.dropdownTooltip}set dropdownTooltip(e){this._state.setDropdownTooltip(e??``)}get useUnderline(){return this._state.useUnderline}set useUnderline(t){let n=e(t,this.useUnderline);this._state.setUseUnderline(!!n)}get sensitive(){return this._sensitive}set sensitive(t){let n=!!e(t,this._sensitive);n!==this._sensitive&&(this._sensitive=n,this._render())}get actionButton(){return this._actionPart}};export{AdwSplitButton,_ as CLICKED,v as MENU_TAPPED};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{AdwIcon as e}from"./adw-icon.js";import{statusPageIconVisibility as t,statusPageLabelVisibility as n}from"./status-page-content.js";import{GridLayout as r,ItemSpec as i,Label as a,StackLayout as o}from"@nativescript/core";var AdwStatusPage=class extends r{_stack;_icon;_iconSvg=``;_iconLabel;_iconGlyph=``;_titleLabel;_descriptionLabel;_child=null;constructor(){super(),this.className=`adw-status-page`,this.addColumn(new i(1,`star`)),this.addRow(new i(1,`star`));let s=new o;s.orientation=`vertical`,s.className=`adw-status-page-content`,s.horizontalAlignment=`center`,s.verticalAlignment=`middle`,r.setColumn(s,0),r.setRow(s,0),this.addChild(s),this._stack=s;let c=new e;c.className=`${c.className} adw-status-page-icon`.trim(),c.horizontalAlignment=`center`,c.iconColor=`#9b9b9b`,c.iconSize=96,c.visibility=t(this._iconSvg),this._icon=c;let l=new a;l.className=`adw-status-page-icon-glyph`,l.horizontalAlignment=`center`,l.visibility=t(this._iconGlyph),this._iconLabel=l;let u=new a;u.className=`adw-status-page-title`,u.horizontalAlignment=`center`,u.textWrap=!0,u.visibility=n(u.text),this._titleLabel=u;let d=new a;d.className=`adw-status-page-description`,d.horizontalAlignment=`center`,d.textWrap=!0,d.visibility=n(d.text),this._descriptionLabel=d;for(let e of[c,l,u,d])s.addChild(e)}get iconName(){return this._iconSvg}set iconName(e){this._iconSvg=e??``,this._icon.iconName=this._iconSvg,this._icon.visibility=t(this._iconSvg),this._iconLabel.visibility=`collapse`}get iconText(){return this._iconGlyph}set iconText(e){this._iconGlyph=e??``,this._iconLabel.text=this._iconGlyph,this._iconLabel.visibility=t(this._iconGlyph),this._icon.visibility=`collapse`}get iconColor(){return this._icon.iconColor}set iconColor(e){this._icon.iconColor=e}get title(){return this._titleLabel.text??``}set title(e){let t=e??``;this._titleLabel.text=t,this._titleLabel.visibility=n(t)}get description(){return this._descriptionLabel.text??``}set description(e){let t=e??``;this._descriptionLabel.text=t,this._descriptionLabel.visibility=n(t)}setChild(e){this._child&&=(this._stack.removeChild(this._child),null),e&&(e.className=`${e.className??``} adw-status-page-child`.trim(),e.horizontalAlignment=`center`,this._stack.addChild(e),this._child=e)}get child(){return this._child}_addChildFromBuilder(e,t){this.setChild(t)}};export{AdwStatusPage};
1
+ import"../_virtual/_rolldown/runtime.js";import{GtkImage as e}from"./gtk-image.js";import{statusPageIconVisibility as t,statusPageLabelVisibility as n}from"./status-page-content.js";import{GridLayout as r,ItemSpec as i,Label as a,StackLayout as o}from"@nativescript/core";var AdwStatusPage=class extends r{_stack;_icon;_iconSvg=``;_iconLabel;_iconGlyph=``;_titleLabel;_descriptionLabel;_child=null;constructor(){super(),this.className=`adw-status-page`,this.addColumn(new i(1,`star`)),this.addRow(new i(1,`star`));let s=new o;s.orientation=`vertical`,s.className=`adw-status-page-content`,s.horizontalAlignment=`center`,s.verticalAlignment=`middle`,r.setColumn(s,0),r.setRow(s,0),this.addChild(s),this._stack=s;let c=new e;c.className=`${c.className} adw-status-page-icon`.trim(),c.horizontalAlignment=`center`,c.iconColor=`#9b9b9b`,c.iconSize=96,c.visibility=t(this._iconSvg),this._icon=c;let l=new a;l.className=`adw-status-page-icon-glyph`,l.horizontalAlignment=`center`,l.visibility=t(this._iconGlyph),this._iconLabel=l;let u=new a;u.className=`adw-status-page-title`,u.horizontalAlignment=`center`,u.textWrap=!0,u.visibility=n(u.text),this._titleLabel=u;let d=new a;d.className=`adw-status-page-description`,d.horizontalAlignment=`center`,d.textWrap=!0,d.visibility=n(d.text),this._descriptionLabel=d;for(let e of[c,l,u,d])s.addChild(e)}get iconName(){return this._iconSvg}set iconName(e){this._iconSvg=e??``,this._icon.iconName=this._iconSvg,this._icon.visibility=t(this._iconSvg),this._iconLabel.visibility=`collapse`}get iconText(){return this._iconGlyph}set iconText(e){this._iconGlyph=e??``,this._iconLabel.text=this._iconGlyph,this._iconLabel.visibility=t(this._iconGlyph),this._icon.visibility=`collapse`}get iconColor(){return this._icon.iconColor}set iconColor(e){this._icon.iconColor=e}get title(){return this._titleLabel.text??``}set title(e){let t=e??``;this._titleLabel.text=t,this._titleLabel.visibility=n(t)}get description(){return this._descriptionLabel.text??``}set description(e){let t=e??``;this._descriptionLabel.text=t,this._descriptionLabel.visibility=n(t)}setChild(e){this._child&&=(this._stack.removeChild(this._child),null),e&&(e.className=`${e.className??``} adw-status-page-child`.trim(),e.horizontalAlignment=`center`,this._stack.addChild(e),this._child=e)}get child(){return this._child}_addChildFromBuilder(e,t){this.setChild(t)}};export{AdwStatusPage};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{xmlBoolean as e,xmlNumber as t}from"./xml-values.js";import{AdwIcon as n}from"./adw-icon.js";import{attachRowPressFeedback as r}from"./row-press.js";import{AdwImageButton as i}from"./adw-image-button.js";import{applyTabViewVisibility as a,createTabViewState as o,tabBarVisibility as s,tabCloseVisibilities as c,tabLabelText as l,tabViewNotifyPayload as u}from"./tab-view-state.js";import{GridLayout as d,ItemSpec as f,Label as p,StackLayout as m}from"@nativescript/core";import{tabIconState as h}from"@gjsify/adwaita-core";import{windowCloseSymbolic as g}from"@gjsify/adwaita-icons/ui";const _=`notify::selected-page`,v=`pages-changed`,y=`close-page`;var AdwTabView=class extends d{_state=o({onClosePage:e=>this._requestClose(e)});_bar;_contentArea;_chips=new Map;_autohide=!1;_defaultIcon=null;_generatedIds=0;closeHandler=null;constructor(){super(),this.className=`adw-tab-view`,this.addColumn(new f(1,`star`)),this.addRow(new f(1,`auto`)),this.addRow(new f(1,`star`));let e=new m;e.orientation=`horizontal`,e.horizontalAlignment=`stretch`,e.className=`adw-tab-view-bar`,d.setRow(e,0),this.addChild(e),this._bar=e;let t=new d;t.addColumn(new f(1,`star`)),t.addRow(new f(1,`star`)),d.setRow(t,1),this.addChild(t),this._contentArea=t,this._state.subscribePages(e=>this._onPagesChange(e)),this._state.subscribe(e=>{this._applySelection();let t={eventName:_,object:this,...u(e)};this.notify(t)})}get pages(){return this._state.pages}get nPages(){return this._state.nPages}get nPinnedPages(){return this._state.nPinnedPages}get selectedId(){return this._state.selectedId}get selectedIndex(){return this._state.selectedIndex}get selected(){return this._state.selectedIndex}set selected(e){let n=t(e,this.selected);this._state.selectNthPage(n)}isClosing(e){return this._state.isClosing(e)}setSelectedPage(e){return this._state.setSelectedPage(e)}selectNthPage(e){return this._state.selectNthPage(e)}selectPreviousPage(){return this._state.selectPreviousPage()}selectNextPage(){return this._state.selectNextPage()}selectFirstPage(){return this._state.selectFirstPage()}selectLastPage(){return this._state.selectLastPage()}cycleNextPage(){return this._state.cycleNextPage()}cyclePreviousPage(){return this._state.cyclePreviousPage()}addPage(e,t=null){return this._state.addPage(e,t)}insertPage(e,t){return this._state.insertPage(e,t)}prependPage(e){return this._state.prependPage(e)}appendPage(e){return this._state.appendPage(e)}insertPinnedPage(e,t){return this._state.insertPinnedPage(e,t)}prependPinnedPage(e){return this._state.prependPinnedPage(e)}appendPinnedPage(e){return this._state.appendPinnedPage(e)}setPagePinned(e,t){return this._state.setPagePinned(e,t)}closePage(e){return this._state.closePage(e)}closePageFinish(e,t){return this._state.closePageFinish(e,t)}closeOtherPages(e){this._state.closeOtherPages(e)}closePagesBefore(e){this._state.closePagesBefore(e)}closePagesAfter(e){this._state.closePagesAfter(e)}detachPage(e){return this._state.detachPage(e)}reorderPage(e,t){return this._state.reorderPage(e,t)}reorderBackward(e){return this._state.reorderBackward(e)}reorderForward(e){return this._state.reorderForward(e)}reorderFirst(e){return this._state.reorderFirst(e)}reorderLast(e){return this._state.reorderLast(e)}setPageTitle(e,t){return this._state.setPageTitle(e,t)}setPageIcon(e,t){return this._state.setPageIcon(e,t)}setPageLoading(e,t){return this._state.setPageLoading(e,t)}setPageNeedsAttention(e,t){return this._state.setPageNeedsAttention(e,t)}get diagnostics(){return this._state.diagnostics}get autohide(){return this._autohide}set autohide(t){let n=e(t,this.autohide);this._autohide=!!n,this._applyBarVisibility()}get defaultIcon(){return this._defaultIcon}set defaultIcon(e){this._defaultIcon=e;for(let e of this._state.pages)this._refreshChip(e.id)}setViews(e){for(let e of this._state.pages)this._state.detachPage(e.id);for(let t of e)this._state.appendPage({id:this._nextId(),title:t.title,icon:t.icon??null,content:t.content})}get views(){return this._state.pages.map(e=>({title:e.title,content:e.content,icon:e.icon??void 0}))}set views(e){this.setViews(Array.isArray(e)?e:[])}get tabs(){return this.views}set tabs(e){this.views=e}_onPagesChange(e){switch(e.kind){case`attached`:{let t=this._state.getPage(e.id);t&&this._insertChip(t,e.position);break}case`detached`:{let t=this._chips.get(e.id);t&&this._bar.removeChild(t.button),this._chips.delete(e.id);break}case`reordered`:case`pinned`:{let t=this._chips.get(e.id);t&&(this._bar.removeChild(t.button),this._bar.insertChild(t.button,e.position)),this._refreshChip(e.id);break}case`updated`:this._refreshChip(e.id);break}this._applyBarVisibility(),this._applySelection();let t={eventName:v,object:this,...e};this.notify(t)}_insertChip(e,t){let a=new m;a.orientation=`horizontal`,a.className=`adw-tab-view-tab`,a.verticalAlignment=`middle`;let o=new n;o.className=`${o.className} adw-tab-view-tab-icon`.trim(),o.verticalAlignment=`middle`,a.addChild(o);let s=new n;s.className=`${s.className} adw-tab-view-tab-icon`.trim(),s.verticalAlignment=`middle`,a.addChild(s);let c=new p;c.className=`adw-tab-view-tab-label`,c.verticalAlignment=`middle`,a.addChild(c);let l=new i;l.className=`${l.className} adw-tab-close`.trim(),l.iconName=g,l.iconSize=12,l.verticalAlignment=`middle`,l.addEventListener(`tap`,()=>this._state.closePage(e.id)),a.addChild(l),r(a),a.addEventListener(`tap`,()=>this._state.setSelectedPage(e.id)),this._bar.insertChild(a,t),this._chips.set(e.id,{button:a,icon:o,indicator:s,label:c,close:l});let u=e.content;u&&(d.setColumn(u,0),d.setRow(u,0),this._contentArea.addChild(u)),this._refreshChip(e.id)}_refreshChip(e){let t=this._state.getPage(e),n=this._chips.get(e);if(!t||!n)return;n.label.text=l(t),n.label.visibility=t.pinned?`collapse`:`visible`;let r=h(t,this._defaultIcon);n.icon.iconName=r.icon??``,n.icon.visibility=r.iconVisible&&r.icon!==null?`visible`:`collapse`,n.indicator.iconName=t.indicatorIcon??``,n.indicator.visibility=r.indicatorVisible?`visible`:`collapse`}_applySelection(){a(this._state);let e=c(this._state),t=this._state.selectedId;this._state.pages.forEach((n,r)=>{let i=this._chips.get(n.id);i&&(i.button.className=n.id===t?`adw-tab-view-tab active`:`adw-tab-view-tab`,i.close.visibility=e[r])})}_applyBarVisibility(){this._bar.visibility=s(this._state,this._autohide)}_requestClose(e){let t={eventName:y,object:this,id:e.id,index:this._state.getPagePosition(e.id)};return this.notify(t),this.closeHandler?this.closeHandler(e):!e.pinned}_nextId(){return this._generatedIds+=1,`tab-${this._generatedIds}`}};export{AdwTabView,y as CLOSE_PAGE,_ as NOTIFY_SELECTED_PAGE,v as PAGES_CHANGED};
1
+ import"../_virtual/_rolldown/runtime.js";import{xmlBoolean as e,xmlNumber as t}from"./xml-values.js";import{GtkImage as n}from"./gtk-image.js";import{attachRowPressFeedback as r}from"./row-press.js";import{AdwImageButton as i}from"./adw-image-button.js";import{applyTabViewVisibility as a,createTabViewState as o,tabBarVisibility as s,tabCloseVisibilities as c,tabLabelText as l,tabViewNotifyPayload as u}from"./tab-view-state.js";import{GridLayout as d,ItemSpec as f,Label as p,StackLayout as m}from"@nativescript/core";import{tabIconState as h}from"@gjsify/adwaita-core";import{windowCloseSymbolic as g}from"@gjsify/adwaita-icons/ui";const _=`notify::selected-page`,v=`pages-changed`,y=`close-page`;var AdwTabView=class extends d{_state=o({onClosePage:e=>this._requestClose(e)});_bar;_contentArea;_chips=new Map;_autohide=!1;_defaultIcon=null;_generatedIds=0;closeHandler=null;constructor(){super(),this.className=`adw-tab-view`,this.addColumn(new f(1,`star`)),this.addRow(new f(1,`auto`)),this.addRow(new f(1,`star`));let e=new m;e.orientation=`horizontal`,e.horizontalAlignment=`stretch`,e.className=`adw-tab-view-bar`,d.setRow(e,0),this.addChild(e),this._bar=e;let t=new d;t.addColumn(new f(1,`star`)),t.addRow(new f(1,`star`)),d.setRow(t,1),this.addChild(t),this._contentArea=t,this._state.subscribePages(e=>this._onPagesChange(e)),this._state.subscribe(e=>{this._applySelection();let t={eventName:_,object:this,...u(e)};this.notify(t)})}get pages(){return this._state.pages}get nPages(){return this._state.nPages}get nPinnedPages(){return this._state.nPinnedPages}get selectedId(){return this._state.selectedId}get selectedIndex(){return this._state.selectedIndex}get selected(){return this._state.selectedIndex}set selected(e){let n=t(e,this.selected);this._state.selectNthPage(n)}isClosing(e){return this._state.isClosing(e)}setSelectedPage(e){return this._state.setSelectedPage(e)}selectNthPage(e){return this._state.selectNthPage(e)}selectPreviousPage(){return this._state.selectPreviousPage()}selectNextPage(){return this._state.selectNextPage()}selectFirstPage(){return this._state.selectFirstPage()}selectLastPage(){return this._state.selectLastPage()}cycleNextPage(){return this._state.cycleNextPage()}cyclePreviousPage(){return this._state.cyclePreviousPage()}addPage(e,t=null){return this._state.addPage(e,t)}insertPage(e,t){return this._state.insertPage(e,t)}prependPage(e){return this._state.prependPage(e)}appendPage(e){return this._state.appendPage(e)}insertPinnedPage(e,t){return this._state.insertPinnedPage(e,t)}prependPinnedPage(e){return this._state.prependPinnedPage(e)}appendPinnedPage(e){return this._state.appendPinnedPage(e)}setPagePinned(e,t){return this._state.setPagePinned(e,t)}closePage(e){return this._state.closePage(e)}closePageFinish(e,t){return this._state.closePageFinish(e,t)}closeOtherPages(e){this._state.closeOtherPages(e)}closePagesBefore(e){this._state.closePagesBefore(e)}closePagesAfter(e){this._state.closePagesAfter(e)}detachPage(e){return this._state.detachPage(e)}reorderPage(e,t){return this._state.reorderPage(e,t)}reorderBackward(e){return this._state.reorderBackward(e)}reorderForward(e){return this._state.reorderForward(e)}reorderFirst(e){return this._state.reorderFirst(e)}reorderLast(e){return this._state.reorderLast(e)}setPageTitle(e,t){return this._state.setPageTitle(e,t)}setPageIcon(e,t){return this._state.setPageIcon(e,t)}setPageLoading(e,t){return this._state.setPageLoading(e,t)}setPageNeedsAttention(e,t){return this._state.setPageNeedsAttention(e,t)}get diagnostics(){return this._state.diagnostics}get autohide(){return this._autohide}set autohide(t){let n=e(t,this.autohide);this._autohide=!!n,this._applyBarVisibility()}get defaultIcon(){return this._defaultIcon}set defaultIcon(e){this._defaultIcon=e;for(let e of this._state.pages)this._refreshChip(e.id)}setViews(e){for(let e of this._state.pages)this._state.detachPage(e.id);for(let t of e)this._state.appendPage({id:this._nextId(),title:t.title,icon:t.icon??null,content:t.content})}get views(){return this._state.pages.map(e=>({title:e.title,content:e.content,icon:e.icon??void 0}))}set views(e){this.setViews(Array.isArray(e)?e:[])}get tabs(){return this.views}set tabs(e){this.views=e}_onPagesChange(e){switch(e.kind){case`attached`:{let t=this._state.getPage(e.id);t&&this._insertChip(t,e.position);break}case`detached`:{let t=this._chips.get(e.id);t&&this._bar.removeChild(t.button),this._chips.delete(e.id);break}case`reordered`:case`pinned`:{let t=this._chips.get(e.id);t&&(this._bar.removeChild(t.button),this._bar.insertChild(t.button,e.position)),this._refreshChip(e.id);break}case`updated`:this._refreshChip(e.id);break}this._applyBarVisibility(),this._applySelection();let t={eventName:v,object:this,...e};this.notify(t)}_insertChip(e,t){let a=new m;a.orientation=`horizontal`,a.className=`adw-tab-view-tab`,a.verticalAlignment=`middle`;let o=new n;o.className=`${o.className} adw-tab-view-tab-icon`.trim(),o.verticalAlignment=`middle`,a.addChild(o);let s=new n;s.className=`${s.className} adw-tab-view-tab-icon`.trim(),s.verticalAlignment=`middle`,a.addChild(s);let c=new p;c.className=`adw-tab-view-tab-label`,c.verticalAlignment=`middle`,a.addChild(c);let l=new i;l.className=`${l.className} adw-tab-close`.trim(),l.iconName=g,l.iconSize=12,l.verticalAlignment=`middle`,l.addEventListener(`tap`,()=>this._state.closePage(e.id)),a.addChild(l),r(a),a.addEventListener(`tap`,()=>this._state.setSelectedPage(e.id)),this._bar.insertChild(a,t),this._chips.set(e.id,{button:a,icon:o,indicator:s,label:c,close:l});let u=e.content;u&&(d.setColumn(u,0),d.setRow(u,0),this._contentArea.addChild(u)),this._refreshChip(e.id)}_refreshChip(e){let t=this._state.getPage(e),n=this._chips.get(e);if(!t||!n)return;n.label.text=l(t),n.label.visibility=t.pinned?`collapse`:`visible`;let r=h(t,this._defaultIcon);n.icon.iconName=r.icon??``,n.icon.visibility=r.iconVisible&&r.icon!==null?`visible`:`collapse`,n.indicator.iconName=t.indicatorIcon??``,n.indicator.visibility=r.indicatorVisible?`visible`:`collapse`}_applySelection(){a(this._state);let e=c(this._state),t=this._state.selectedId;this._state.pages.forEach((n,r)=>{let i=this._chips.get(n.id);i&&(i.button.className=n.id===t?`adw-tab-view-tab active`:`adw-tab-view-tab`,i.close.visibility=e[r])})}_applyBarVisibility(){this._bar.visibility=s(this._state,this._autohide)}_requestClose(e){let t={eventName:y,object:this,id:e.id,index:this._state.getPagePosition(e.id)};return this.notify(t),this.closeHandler?this.closeHandler(e):!e.pinned}_nextId(){return this._generatedIds+=1,`tab-${this._generatedIds}`}};export{AdwTabView,y as CLOSE_PAGE,_ as NOTIFY_SELECTED_PAGE,v as PAGES_CHANGED};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{xmlNumber as e}from"./xml-values.js";import{AdwIcon as t}from"./adw-icon.js";import{Label as n,StackLayout as r}from"@nativescript/core";import{ToggleGroupState as i,ToggleGroupState as a}from"@gjsify/adwaita-core";const o=`notify::selected`;var AdwToggleGroup=class extends r{_toggles=[];_segments=[];_state=new a;constructor(){super(),this.orientation=`horizontal`,this.className=`adw-toggle-group`,this.horizontalAlignment=`center`,this._state.subscribe(e=>{this._applySelection();let t={eventName:o,object:this,selected:e.selected,value:e.value};this.notify(t)})}get options(){return this._toggles.map(e=>e.label)}set options(e){this.setToggles((Array.isArray(e)?e:[]).map(e=>({label:e})))}setToggles(e){for(let e of this._segments)this.removeChild(e);this._segments.length=0,this._toggles=Array.isArray(e)?e:[],this._toggles.forEach((e,i)=>{let a=new r;if(a.orientation=`horizontal`,a.className=`adw-toggle-button`,a.horizontalAlignment=`center`,e.icon){let n=new t;n.className=`${n.className} adw-toggle-icon`.trim(),n.verticalAlignment=`middle`,n.iconName=e.icon,a.addChild(n)}let o=new n;o.text=e.label,o.className=`adw-toggle-label`,o.verticalAlignment=`middle`,a.addChild(o),a.addEventListener(`tap`,()=>{this._state.setSelected(i)}),this.addChild(a),this._segments.push(a)}),this._state.setLabels(this._toggles.map(e=>e.label)),this._applySelection()}_applySelection(){let e=this._state.selected;this._segments.forEach((t,n)=>{t.className=n===e?`adw-toggle-button active`:`adw-toggle-button`})}get active(){return this._state.selected}set active(t){let n=e(t,this.active);this._state.setSelected(n)}get selectedValue(){return this._state.selectedValue}};export{AdwToggleGroup,o as NOTIFY_SELECTED,i as ToggleGroupState};
1
+ import"../_virtual/_rolldown/runtime.js";import{xmlNumber as e}from"./xml-values.js";import{GtkImage as t}from"./gtk-image.js";import{Label as n,StackLayout as r}from"@nativescript/core";import{ToggleGroupState as i,ToggleGroupState as a}from"@gjsify/adwaita-core";const o=`notify::selected`;var AdwToggleGroup=class extends r{_toggles=[];_segments=[];_state=new a;constructor(){super(),this.orientation=`horizontal`,this.className=`adw-toggle-group`,this.horizontalAlignment=`center`,this._state.subscribe(e=>{this._applySelection();let t={eventName:o,object:this,selected:e.selected,value:e.value};this.notify(t)})}get options(){return this._toggles.map(e=>e.label)}set options(e){this.setToggles((Array.isArray(e)?e:[]).map(e=>({label:e})))}setToggles(e){for(let e of this._segments)this.removeChild(e);this._segments.length=0,this._toggles=Array.isArray(e)?e:[],this._toggles.forEach((e,i)=>{let a=new r;if(a.orientation=`horizontal`,a.className=`adw-toggle-button`,a.horizontalAlignment=`center`,e.icon){let n=new t;n.className=`${n.className} adw-toggle-icon`.trim(),n.verticalAlignment=`middle`,n.iconName=e.icon,a.addChild(n)}let o=new n;o.text=e.label,o.className=`adw-toggle-label`,o.verticalAlignment=`middle`,a.addChild(o),a.addEventListener(`tap`,()=>{this._state.setSelected(i)}),this.addChild(a),this._segments.push(a)}),this._state.setLabels(this._toggles.map(e=>e.label)),this._applySelection()}_applySelection(){let e=this._state.selected;this._segments.forEach((t,n)=>{t.className=n===e?`adw-toggle-button active`:`adw-toggle-button`})}get active(){return this._state.selected}set active(t){let n=e(t,this.active);this._state.setSelected(n)}get selectedValue(){return this._state.selectedValue}};export{AdwToggleGroup,o as NOTIFY_SELECTED,i as ToggleGroupState};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{xmlBoolean as e}from"./xml-values.js";import{AdwIcon as t}from"./adw-icon.js";import{attachRowPressFeedback as n}from"./row-press.js";import{NOTIFY_VISIBLE_CHILD as r}from"./adw-view-stack.js";import{createViewSwitcherBarState as i,nsIconSvg as a}from"./view-switcher-model.js";import{GridLayout as o,ItemSpec as s,Label as c,StackLayout as l}from"@nativescript/core";import{buildViewSwitcherButtons as u,viewSwitcherPagesFromStack as d}from"@gjsify/adwaita-core";var AdwViewSwitcherBar=class extends o{_bar;_nodes=[];_stack=null;_stackListener=null;_barState=i();constructor(){super(),this.className=`adw-viewswitcherbar`,this.addColumn(new s(1,`star`)),this.addRow(new s(1,`auto`));let e=new o;e.className=`adw-viewswitcherbar-box`,e.addRow(new s(1,`auto`)),o.setRow(e,0),this.addChild(e),this._bar=e,this._barState.subscribe(()=>this._applyRevealed()),this._applyRevealed(),this.addEventListener(`loaded`,()=>{this._bindStack(),this._rebuild()}),this.addEventListener(`unloaded`,()=>this._unbindStack())}setStack(e){this._unbindStack(),this._stack=e,this._bindStack(),this._rebuild()}get stack(){return this._stack}set stack(e){this.setStack(e)}get reveal(){return this._barState.reveal}set reveal(t){let n=e(t,this.reveal);this._barState.setReveal(n)}get revealed(){return this._barState.revealed}refresh(){this._rebuild()}_bindStack(){if(!this._stack||this._stackListener)return;let listener=()=>this._rebuild();this._stack.addEventListener(r,listener),this._stackListener=listener}_unbindStack(){!this._stack||!this._stackListener||(this._stack.removeEventListener(r,this._stackListener),this._stackListener=null)}_rebuild(){let e=this._stack?.pages??[];this._barState.setPages(e);let t=u(d(e),this._stack?.visibleChildIndex??-1,`narrow`);if(t.length!==this._nodes.length){for(let e of this._nodes)this._bar.removeChild(e.button);this._nodes=[],this._bar.removeColumns(),this._nodes=t.map((e,t)=>(this._bar.addColumn(new s(1,`star`)),this._buildButton(e.pageIndex,t)))}t.forEach((e,t)=>{let n=this._nodes[t];n&&(n.button.visibility=e.visible?`visible`:`collapse`,n.button.className=e.selected?`adw-viewswitcherbar-button active`:`adw-viewswitcherbar-button`,n.icon.iconName=a(e.iconName),n.label.text=e.label,n.badge.text=e.badgeLabel,n.badge.visibility=e.badgeLabel.length>0||e.needsAttention?`visible`:`collapse`,n.badge.className=e.badgeLabel.length===0&&e.needsAttention?`adw-viewswitcherbar-button-badge needs-attention`:`adw-viewswitcherbar-button-badge`)}),this._applyRevealed()}_buildButton(e,r){let i=new l;i.orientation=`vertical`,i.className=`adw-viewswitcherbar-button`,i.horizontalAlignment=`stretch`;let a=new t;a.className=`${a.className} adw-viewswitcherbar-button-icon`.trim(),a.horizontalAlignment=`center`,i.addChild(a);let s=new c;s.className=`adw-viewswitcherbar-button-label`,s.horizontalAlignment=`center`,s.textAlignment=`center`,i.addChild(s);let u=new c;return u.className=`adw-viewswitcherbar-button-badge`,u.horizontalAlignment=`center`,u.textAlignment=`center`,i.addChild(u),n(i),i.addEventListener(`tap`,()=>{this._stack&&(this._stack.visibleChildIndex=e)}),o.setColumn(i,r),this._bar.addChild(i),{button:i,icon:a,label:s,badge:u}}_applyRevealed(){this.visibility=this._barState.revealed?`visible`:`collapse`}};export{AdwViewSwitcherBar};
1
+ import"../_virtual/_rolldown/runtime.js";import{xmlBoolean as e}from"./xml-values.js";import{GtkImage as t}from"./gtk-image.js";import{attachRowPressFeedback as n}from"./row-press.js";import{NOTIFY_VISIBLE_CHILD as r}from"./adw-view-stack.js";import{createViewSwitcherBarState as i,nsIconSvg as a}from"./view-switcher-model.js";import{GridLayout as o,ItemSpec as s,Label as c,StackLayout as l}from"@nativescript/core";import{buildViewSwitcherButtons as u,viewSwitcherPagesFromStack as d}from"@gjsify/adwaita-core";var AdwViewSwitcherBar=class extends o{_bar;_nodes=[];_stack=null;_stackListener=null;_barState=i();constructor(){super(),this.className=`adw-viewswitcherbar`,this.addColumn(new s(1,`star`)),this.addRow(new s(1,`auto`));let e=new o;e.className=`adw-viewswitcherbar-box`,e.addRow(new s(1,`auto`)),o.setRow(e,0),this.addChild(e),this._bar=e,this._barState.subscribe(()=>this._applyRevealed()),this._applyRevealed(),this.addEventListener(`loaded`,()=>{this._bindStack(),this._rebuild()}),this.addEventListener(`unloaded`,()=>this._unbindStack())}setStack(e){this._unbindStack(),this._stack=e,this._bindStack(),this._rebuild()}get stack(){return this._stack}set stack(e){this.setStack(e)}get reveal(){return this._barState.reveal}set reveal(t){let n=e(t,this.reveal);this._barState.setReveal(n)}get revealed(){return this._barState.revealed}refresh(){this._rebuild()}_bindStack(){if(!this._stack||this._stackListener)return;let listener=()=>this._rebuild();this._stack.addEventListener(r,listener),this._stackListener=listener}_unbindStack(){!this._stack||!this._stackListener||(this._stack.removeEventListener(r,this._stackListener),this._stackListener=null)}_rebuild(){let e=this._stack?.pages??[];this._barState.setPages(e);let t=u(d(e),this._stack?.visibleChildIndex??-1,`narrow`);if(t.length!==this._nodes.length){for(let e of this._nodes)this._bar.removeChild(e.button);this._nodes=[],this._bar.removeColumns(),this._nodes=t.map((e,t)=>(this._bar.addColumn(new s(1,`star`)),this._buildButton(e.pageIndex,t)))}t.forEach((e,t)=>{let n=this._nodes[t];n&&(n.button.visibility=e.visible?`visible`:`collapse`,n.button.className=e.selected?`adw-viewswitcherbar-button active`:`adw-viewswitcherbar-button`,n.icon.iconName=a(e.iconName),n.label.text=e.label,n.badge.text=e.badgeLabel,n.badge.visibility=e.badgeLabel.length>0||e.needsAttention?`visible`:`collapse`,n.badge.className=e.badgeLabel.length===0&&e.needsAttention?`adw-viewswitcherbar-button-badge needs-attention`:`adw-viewswitcherbar-button-badge`)}),this._applyRevealed()}_buildButton(e,r){let i=new l;i.orientation=`vertical`,i.className=`adw-viewswitcherbar-button`,i.horizontalAlignment=`stretch`;let a=new t;a.className=`${a.className} adw-viewswitcherbar-button-icon`.trim(),a.horizontalAlignment=`center`,i.addChild(a);let s=new c;s.className=`adw-viewswitcherbar-button-label`,s.horizontalAlignment=`center`,s.textAlignment=`center`,i.addChild(s);let u=new c;return u.className=`adw-viewswitcherbar-button-badge`,u.horizontalAlignment=`center`,u.textAlignment=`center`,i.addChild(u),n(i),i.addEventListener(`tap`,()=>{this._stack&&(this._stack.visibleChildIndex=e)}),o.setColumn(i,r),this._bar.addChild(i),{button:i,icon:a,label:s,badge:u}}_applyRevealed(){this.visibility=this._barState.revealed?`visible`:`collapse`}};export{AdwViewSwitcherBar};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{viewConcealSymbolic as e,viewRevealSymbolic as t}from"@gjsify/adwaita-icons/actions";const n=`adw-row adw-action-row adw-entry-row`,r=`${n} adw-password-entry-row`,i=`adw-icon adw-entry-edit`,a=`adw-insensitive`,o=.3;function nsVisibility(e){return e?`visible`:`collapse`}function entryRowClassName(e,t){let n=e;return t.editing&&(n+=` focused`),t.empty&&(n+=` empty`),n}function applyEntryRowState(e,t,n){e.row.className=entryRowClassName(n,t),e.field.text!==t.text&&(e.field.text=t.text),e.field.editable=t.editable,e.emptyTitle.visibility=nsVisibility(t.emptyTarget===0),e.title.visibility=nsVisibility(t.emptyTarget===1),e.editIcon.visibility=nsVisibility(t.editIconVisible),e.editIcon.className=t.editIconSensitive?i:`${i} ${a}`,e.editIcon.opacity=t.editIconSensitive?1:o,e.indicator.visibility=nsVisibility(t.indicatorVisible),e.applyButton.visibility=nsVisibility(t.applyButtonVisible)}function peekIconSvg(n){return n===`view-conceal-symbolic`?e:t}function applyPasswordEntryRowState(e,t){e.field.secure=!t.revealed,e.peekButton.iconName=peekIconSvg(t.peekIconName)}export{i as NS_EDIT_ICON_CLASS,n as NS_ENTRY_ROW_CLASS,a as NS_INSENSITIVE_CLASS,o as NS_INSENSITIVE_OPACITY,r as NS_PASSWORD_ENTRY_ROW_CLASS,applyEntryRowState,applyPasswordEntryRowState,entryRowClassName,nsVisibility,peekIconSvg};
1
+ import"../_virtual/_rolldown/runtime.js";import{viewConcealSymbolic as e,viewRevealSymbolic as t}from"@gjsify/adwaita-icons/actions";const n=`adw-row adw-action-row adw-entry-row`,r=`${n} adw-password-entry-row`,i=`gtk-image adw-entry-edit`,a=`adw-insensitive`,o=.3;function nsVisibility(e){return e?`visible`:`collapse`}function entryRowClassName(e,t){let n=e;return t.editing&&(n+=` focused`),t.empty&&(n+=` empty`),n}function applyEntryRowState(e,t,n){e.row.className=entryRowClassName(n,t),e.field.text!==t.text&&(e.field.text=t.text),e.field.editable=t.editable,e.emptyTitle.visibility=nsVisibility(t.emptyTarget===0),e.title.visibility=nsVisibility(t.emptyTarget===1),e.editIcon.visibility=nsVisibility(t.editIconVisible),e.editIcon.className=t.editIconSensitive?i:`${i} ${a}`,e.editIcon.opacity=t.editIconSensitive?1:o,e.indicator.visibility=nsVisibility(t.indicatorVisible),e.applyButton.visibility=nsVisibility(t.applyButtonVisible)}function peekIconSvg(n){return n===`view-conceal-symbolic`?e:t}function applyPasswordEntryRowState(e,t){e.field.secure=!t.revealed,e.peekButton.iconName=peekIconSvg(t.peekIconName)}export{i as NS_EDIT_ICON_CLASS,n as NS_ENTRY_ROW_CLASS,a as NS_INSENSITIVE_CLASS,o as NS_INSENSITIVE_OPACITY,r as NS_PASSWORD_ENTRY_ROW_CLASS,applyEntryRowState,applyPasswordEntryRowState,entryRowClassName,nsVisibility,peekIconSvg};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{xmlNumber as e}from"./xml-values.js";import{AdwIcon as t}from"./adw-icon.js";import{attachRowPressFeedback as n}from"./row-press.js";import{Label as r,StackLayout as i,action as a}from"@nativescript/core";import{ComboState as o}from"@gjsify/adwaita-core";import{panDownSymbolic as s}from"@gjsify/adwaita-icons/ui";const c=`notify::selected`;var GtkDropDown=class extends i{_label;_chevron;_state=new o;_chooserTitle=``;constructor(){super(),this.orientation=`horizontal`,this.className=`adw-drop-down`;let e=new r;e.className=`adw-drop-down-label`,e.text=``;let i=new t;i.className=`adw-drop-down-chevron`,i.iconName=s,this.addChild(e),this.addChild(i),this._label=e,this._chevron=i,this._state.subscribe(e=>{if(this._label.text=e.label,e.interactive){let t={eventName:c,object:this,selected:e.selected,value:e.value,label:e.label};this.notify(t)}}),this.addEventListener(`tap`,()=>{this._openChooser()}),n(this)}async _openChooser(){if(this._state.count===0)return;let e=this._state.options.map(e=>e.label),t=await a({title:this._chooserTitle||void 0,cancelButtonText:`Cancel`,actions:e});this._state.select(e.indexOf(t))}get options(){return this._state.options}set options(e){this._state.setOptions(e)}get selected(){return this._state.selectedIndex}set selected(t){let n=e(t,this.selected);this._state.setSelectedIndex(n)}get selectedValue(){return this._state.selectedValue}set selectedValue(e){this._state.setSelectedValue(e)}get selectedItem(){return this._state.options[this._state.selectedIndex]??null}get chooserTitle(){return this._chooserTitle}set chooserTitle(e){this._chooserTitle=e??``}};export{GtkDropDown,c as NOTIFY_SELECTED};
1
+ import"../_virtual/_rolldown/runtime.js";import{xmlNumber as e}from"./xml-values.js";import{GtkImage as t}from"./gtk-image.js";import{attachRowPressFeedback as n}from"./row-press.js";import{Label as r,StackLayout as i,action as a}from"@nativescript/core";import{ComboState as o,normalizeComboOptions as s}from"@gjsify/adwaita-core";import{panDownSymbolic as c}from"@gjsify/adwaita-icons/ui";const l=`notify::selected`;var GtkDropDown=class extends i{_label;_chevron;_state=new o;_chooserTitle=``;constructor(){super(),this.orientation=`horizontal`,this.className=`adw-drop-down`;let e=new r;e.className=`adw-drop-down-label`,e.text=``;let i=new t;i.className=`adw-drop-down-chevron`,i.iconName=c,this.addChild(e),this.addChild(i),this._label=e,this._chevron=i,this._state.subscribe(e=>{if(this._label.text=e.label,e.interactive){let t={eventName:l,object:this,selected:e.selected,value:e.value,label:e.label};this.notify(t)}}),this.addEventListener(`tap`,()=>{this._openChooser()}),n(this)}async _openChooser(){if(this._state.count===0)return;let e=this._state.model.map(e=>e.label),t=await a({title:this._chooserTitle||void 0,cancelButtonText:`Cancel`,actions:e});this._state.select(e.indexOf(t))}get model(){return this._state.model}set model(e){this._state.setModel(s(e))}get selected(){return this._state.selectedIndex}set selected(t){let n=e(t,this.selected);this._state.setSelectedIndex(n)}get selectedValue(){return this._state.selectedValue}set selectedValue(e){this._state.setSelectedValue(e)}get selectedItem(){return this._state.model[this._state.selectedIndex]??null}get chooserTitle(){return this._chooserTitle}set chooserTitle(e){this._chooserTitle=e??``}};export{GtkDropDown,l as NOTIFY_SELECTED};
@@ -0,0 +1 @@
1
+ import"../_virtual/_rolldown/runtime.js";import{xmlNumber as e}from"./xml-values.js";import{onAdwaitaColorSchemeChanged as t,themeIconColor as n}from"./color-scheme.js";import{DEFAULT_ICON_COLOR as r}from"./icon-path.js";import{renderSymbolicIcon as i}from"./icons.js";import{Image as a}from"@nativescript/core";const o=16;var GtkImage=class extends a{_iconSvg=``;_iconColor=n();_explicitColor=!1;_iconSize=16;_unsubScheme=null;constructor(){super(),this.className=`adw-icon`,this.stretch=`aspectFit`,this.width=this._iconSize,this.height=this._iconSize,this.addEventListener(`loaded`,()=>{this._syncThemeColor(),this._unsubScheme??=t(()=>this._syncThemeColor())}),this.addEventListener(`unloaded`,()=>{this._unsubScheme?.(),this._unsubScheme=null})}_syncThemeColor(){if(this._explicitColor)return;let e=n();e!==this._iconColor&&(this._iconColor=e,this._render())}_render(){if(!this._iconSvg)return;let e=i(this._iconSvg,{size:this._iconSize,color:this._iconColor});e&&(this.imageSource=e)}get iconName(){return this._iconSvg}set iconName(e){this._iconSvg=e??``,this._render()}get iconColor(){return this._iconColor}set iconColor(e){this._explicitColor=!0,this._iconColor=e||r,this._render()}get iconSize(){return this._iconSize}set iconSize(t){let n=e(t,this.iconSize);this._iconSize=Number.isFinite(n)&&n>0?n:16,this.width=this._iconSize,this.height=this._iconSize,this._render()}};export{o as DEFAULT_GTK_IMAGE_SIZE,GtkImage};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{AdwImageButton as e}from"./adw-image-button.js";import{action as t}from"@nativescript/core";const n=`menuItemActivated`;var GtkMenuButton=class extends e{_items=[];_menuTitle=``;constructor(){super(),this.className=`${this.className} adw-menu-button`.trim(),this.addEventListener(`tap`,()=>{this._openMenu()})}get menuItems(){return this._items}set menuItems(e){this._items=Array.isArray(e)?e:[]}get menuTitle(){return this._menuTitle}set menuTitle(e){this._menuTitle=e??``}async _openMenu(){if(this._items.length===0)return;let e=this._items.map(e=>e.label),r=await t({title:this._menuTitle||void 0,cancelButtonText:`Cancel`,actions:e}),i=e.indexOf(r);if(i<0)return;let a=this._items[i],o={eventName:n,object:this,id:a.id??a.label,label:a.label,index:i};this.notify(o)}};export{GtkMenuButton,n as MENU_ITEM_ACTIVATED};
1
+ import"../_virtual/_rolldown/runtime.js";import{AdwImageButton as e}from"./adw-image-button.js";import{MENU_CANCEL_LABEL as t,presentMenuSheet as n,refuseMenuString as r}from"./menu-sheet.js";import{action as i}from"@nativescript/core";import{ADW_MENU_SURFACE_NATIVESCRIPT as a,assertMenuRenderable as o,menuItemAt as s,normalizeMenuModel as c}from"@gjsify/adwaita-core";const l=`menuItemActivated`;var GtkMenuButton=class extends e{_model=[];_actions=null;_menuTitle=``;constructor(){super(),this.className=`${this.className} adw-menu-button`.trim(),this.addEventListener(`tap`,()=>{this._openMenu()})}get menuModel(){return this._model}set menuModel(e){r(e,`GtkMenuButton`);let t=c(e);o(t,a),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??``}async _openMenu(){if(this._model.length===0)return;let e=await n(i,this._model,{title:this._menuTitle,actions:this._actions??void 0,cancelLabel:t});if(e===null)return;let r=s(this._model,e);if(r===null)return;let a={eventName:l,object:this,id:r.id??r.label,label:r.label,path:e,action:r.action};this.notify(a)}};export{GtkMenuButton,l as MENU_ITEM_ACTIVATED};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{AdwPreferencesPage as e}from"./adw-preferences-page.js";import{AdwPreferencesGroup as t}from"./adw-preferences-group.js";import{ACTIVATED as n,AdwActionRow as r}from"./adw-action-row.js";import{AdwSwitchRow as i,NOTIFY_ACTIVE as ee}from"./adw-switch-row.js";import{adwaitaColorScheme as te,isThemeIconColor as ne,onAdwaitaColorSchemeChanged as re,setAdwaitaColorScheme as ie,themeIconColor as ae,toggleAdwaitaColorScheme as oe}from"./color-scheme.js";import{ADWAITA_ICON_GRID as se,DEFAULT_ICON_COLOR as ce,DEFAULT_ICON_COLOR_DARK as le,extractIconPaths as ue,extractPathData as de}from"./icon-path.js";import{renderSymbolicIcon as a}from"./icons.js";import{AdwIcon as o,DEFAULT_ADW_ICON_SIZE as s}from"./adw-icon.js";import{attachRowPressFeedback as c}from"./row-press.js";import{AdwImageButton as l,DEFAULT_ICON_BUTTON_ICON_SIZE as fe}from"./adw-image-button.js";import{AdwEntryRow as u,NOTIFY_TEXT as pe}from"./adw-entry-row.js";import{AdwPasswordEntryRow as d}from"./adw-password-entry-row.js";import{ACTIVATE as me,GtkEntry as f,NOTIFY_TEXT as he}from"./gtk-entry.js";import{AdwComboRow as p,ComboState as ge,NOTIFY_SELECTED as _e}from"./adw-combo-row.js";import{GtkDropDown as m,NOTIFY_SELECTED as ve}from"./gtk-drop-down.js";import{AdwSpinRow as h,NOTIFY_VALUE as ye,SpinState as be}from"./adw-spin-row.js";import{AdwSliderRow as g,NOTIFY_SLIDER_VALUE as xe}from"./adw-slider-row.js";import{AdwExpanderRow as _,ExpanderState as Se,NOTIFY_EXPANDED as Ce}from"./adw-expander-row.js";import{GtkButton as v}from"./gtk-button.js";import{GtkMenuButton as y,MENU_ITEM_ACTIVATED as we}from"./gtk-menu-button.js";import{DEFAULT_CLAMP_MAX_SIZE as Te,DEFAULT_SPINNER_SIZE as Ee}from"./chrome.js";import{AdwBanner as b,BUTTON_CLICKED as x}from"./adw-banner.js";import{avatarInitials as S}from"./avatar-color.js";import{AdwAvatar as C,DEFAULT_AVATAR_SIZE as w}from"./adw-avatar.js";import{AdwWindowTitle as T}from"./adw-window-title.js";import{AdwClamp as E}from"./adw-clamp.js";import{AdwHeaderBar as D}from"./adw-header-bar.js";import{AdwToolbarView as O}from"./adw-toolbar-view.js";import{AdwWrapBox as k}from"./adw-wrap-box.js";import{DATA_GRID_HEADER_CELL_CLASS as De,DATA_GRID_HEADER_ROW_CLASS as Oe,DATA_GRID_SECTION_CELL_CLASS as ke,dataGridCellClass as Ae,dataGridItemSpec as je,dataGridRowClass as Me,dataGridShapeKey as Ne,dataGridTracksKey as Pe,parseDataGridWidth as Fe}from"./data-grid-model.js";import{AdwDataGrid as A,ROW_ACTIVATED as Ie}from"./adw-data-grid.js";import{AdwSpinner as j}from"./adw-spinner.js";import{AdwStatusPage as M}from"./adw-status-page.js";import{AdwButtonRow as N}from"./adw-button-row.js";import{AdwButtonContent as P}from"./adw-button-content.js";import{AdwSplitButton as F,CLICKED as Le,MENU_TAPPED as Re}from"./adw-split-button.js";import{AdwToggleGroup as I,NOTIFY_SELECTED as ze,ToggleGroupState as Be}from"./adw-toggle-group.js";import{ADWAITA_NS_ACCENT_RULES as Ve,adwaitaNsAccentColor as He,adwaitaNsAccentCss as Ue}from"./accent-theme.js";import{applyAdwaitaNsAccent as We,clearAdwaitaNsAccent as Ge}from"./adw-accent.js";import{SHORTCUT_LABEL_CAP_TEXT_CLASS as Ke,SHORTCUT_LABEL_CLASS as qe,SHORTCUT_LABEL_DIMMED_CLASS as Je,SHORTCUT_LABEL_DISABLED_CLASS as Ye,SHORTCUT_LABEL_KEYCAP_CLASS as Xe,SHORTCUT_LABEL_KEYS_CLASS as L,SHORTCUT_LABEL_SIDE_CLASS as Ze,SHORTCUT_LABEL_SPACED_CLASS as Qe,shortcutLabelDirection as $e,shortcutLabelPlatform as et,shortcutLabelRenderPlan as tt}from"./shortcut-label.js";import{AdwShortcutLabel as R}from"./adw-shortcut-label.js";import{AdwViewStack as z,NOTIFY_VISIBLE_CHILD as nt}from"./adw-view-stack.js";import{AdwViewSwitcherBase as rt,NOTIFY_SELECTED as it}from"./view-switcher-base.js";import{AdwViewSwitcher as B}from"./adw-view-switcher.js";import{AdwViewSwitcherBar as V}from"./adw-view-switcher-bar.js";import{AdwInlineViewSwitcher as H}from"./adw-inline-view-switcher.js";import{applyTabViewVisibility as at,createTabViewState as ot,tabBarVisibility as st,tabCloseVisibilities as ct,tabLabelText as lt,tabPageVisibilities as ut,tabTooltipText as dt,tabViewNotifyPayload as ft}from"./tab-view-state.js";import{AdwTabView as U,CLOSE_PAGE as pt,NOTIFY_SELECTED_PAGE as mt,PAGES_CHANGED as ht}from"./adw-tab-view.js";import{CarouselScrollSync as gt,DEFAULT_CAROUSEL_PAGE_WIDTH as _t,applyCarouselDots as vt,carouselDotClasses as yt,carouselNotifyPayload as bt,carouselPositionAtOffset as xt,carouselScrollOffset as St,createCarouselState as Ct,normalizeCarouselPageWidth as wt}from"./carousel-state.js";import{AdwCarousel as W,NOTIFY_N_PAGES as Tt,NOTIFY_POSITION as Et,PAGE_CHANGED as Dt}from"./adw-carousel.js";import{NOTIFY_VISIBLE_PAGE as Ot}from"./navigation-stack.js";import{AdwNavigationView as G}from"./adw-navigation-view.js";import{NsNavigationSplitViewState as kt,NsOverlaySplitViewState as At,splitViewColumns as jt}from"./split-view-state.js";import{AdwSplitViewBase as Mt,NOTIFY_SHOW_SIDEBAR as Nt}from"./split-view-base.js";import{AdwNavigationSplitView as K}from"./adw-navigation-split-view.js";import{AdwOverlaySplitView as q}from"./adw-overlay-split-view.js";import{AdwSidebar as J,NOTIFY_SELECTED as Pt}from"./adw-sidebar.js";import{CLOSE_ATTEMPT as Ft,NOTIFY_OPEN as It,SHEET_CLOSE as Lt}from"./bottom-sheet-state.js";import{AdwBottomSheet as Y}from"./adw-bottom-sheet.js";import{AdwToast as Rt,AdwToastOverlay as X,AdwToastQueue as zt,DEFAULT_TOAST_TIMEOUT as Bt,TOAST_BUTTON_CLICKED as Vt}from"./adw-toast-overlay.js";import{AdwAlertDialog as Ht,AdwAlertResponses as Ut,NOTIFY_RESPONSE as Wt}from"./adw-alert-dialog.js";import{AdwAboutDialog as Z,CLOSED as Gt}from"./adw-about-dialog.js";import{AdwPreferencesDialog as Q,CLOSED as Kt}from"./adw-preferences-dialog.js";import{AdwBreakpoint as qt,addBreakpoints as Jt,evaluateBreakpointCondition as Yt,parseBreakpointCondition as Xt}from"./breakpoint.js";const Zt={AdwPreferencesPage:e,AdwPreferencesGroup:t,AdwActionRow:r,AdwSwitchRow:i,AdwEntryRow:u,AdwPasswordEntryRow:d,GtkEntry:f,AdwComboRow:p,GtkDropDown:m,AdwSpinRow:h,AdwSliderRow:g,AdwExpanderRow:_,GtkButton:v,AdwImageButton:l,GtkMenuButton:y,AdwIcon:o,AdwBanner:b,AdwAvatar:C,AdwWindowTitle:T,AdwClamp:E,AdwHeaderBar:D,AdwToolbarView:O,AdwWrapBox:k,AdwDataGrid:A,AdwSpinner:j,AdwStatusPage:M,AdwButtonRow:N,AdwButtonContent:P,AdwSplitButton:F,AdwToggleGroup:I,AdwShortcutLabel:R,AdwViewStack:z,AdwViewSwitcher:B,AdwViewSwitcherBar:V,AdwInlineViewSwitcher:H,AdwTabView:U,AdwCarousel:W,AdwNavigationView:G,AdwNavigationSplitView:K,AdwOverlaySplitView:q,AdwSidebar:J,AdwBottomSheet:Y,AdwToastOverlay:X,AdwAboutDialog:Z,AdwPreferencesDialog:Q};let $=!1;function registerAdwaitaElements(){if(!$&&typeof registerElement==`function`){for(let[e,t]of Object.entries(Zt))registerElement(e,()=>t);$=!0}}export{Gt as ABOUT_CLOSED,n as ACTIVATED,se as ADWAITA_ICON_GRID,Ve as ADWAITA_NS_ACCENT_RULES,Z as AdwAboutDialog,r as AdwActionRow,Ht as AdwAlertDialog,Ut as AdwAlertResponses,C as AdwAvatar,b as AdwBanner,Y as AdwBottomSheet,qt as AdwBreakpoint,P as AdwButtonContent,N as AdwButtonRow,W as AdwCarousel,E as AdwClamp,p as AdwComboRow,A as AdwDataGrid,u as AdwEntryRow,_ as AdwExpanderRow,D as AdwHeaderBar,o as AdwIcon,l as AdwImageButton,H as AdwInlineViewSwitcher,K as AdwNavigationSplitView,G as AdwNavigationView,q as AdwOverlaySplitView,d as AdwPasswordEntryRow,Q as AdwPreferencesDialog,t as AdwPreferencesGroup,e as AdwPreferencesPage,R as AdwShortcutLabel,J as AdwSidebar,g as AdwSliderRow,h as AdwSpinRow,j as AdwSpinner,F as AdwSplitButton,Mt as AdwSplitViewBase,M as AdwStatusPage,i as AdwSwitchRow,U as AdwTabView,Rt as AdwToast,X as AdwToastOverlay,zt as AdwToastQueue,I as AdwToggleGroup,O as AdwToolbarView,z as AdwViewStack,B as AdwViewSwitcher,V as AdwViewSwitcherBar,rt as AdwViewSwitcherBase,T as AdwWindowTitle,k as AdwWrapBox,x as BUTTON_CLICKED,Le as CLICKED,Ft as CLOSE_ATTEMPT,pt as CLOSE_PAGE,gt as CarouselScrollSync,ge as ComboState,De as DATA_GRID_HEADER_CELL_CLASS,Oe as DATA_GRID_HEADER_ROW_CLASS,ke as DATA_GRID_SECTION_CELL_CLASS,s as DEFAULT_ADW_ICON_SIZE,w as DEFAULT_AVATAR_SIZE,_t as DEFAULT_CAROUSEL_PAGE_WIDTH,Te as DEFAULT_CLAMP_MAX_SIZE,fe as DEFAULT_ICON_BUTTON_ICON_SIZE,ce as DEFAULT_ICON_COLOR,le as DEFAULT_ICON_COLOR_DARK,Ee as DEFAULT_SPINNER_SIZE,Bt as DEFAULT_TOAST_TIMEOUT,me as ENTRY_ACTIVATE,Se as ExpanderState,v as GtkButton,m as GtkDropDown,f as GtkEntry,y as GtkMenuButton,we as MENU_ITEM_ACTIVATED,Re as MENU_TAPPED,ee as NOTIFY_ACTIVE,ve as NOTIFY_DROP_DOWN_SELECTED,he as NOTIFY_ENTRY_TEXT,Ce as NOTIFY_EXPANDED,Tt as NOTIFY_N_PAGES,It as NOTIFY_OPEN,Et as NOTIFY_POSITION,Wt as NOTIFY_RESPONSE,_e as NOTIFY_SELECTED,mt as NOTIFY_SELECTED_PAGE,Nt as NOTIFY_SHOW_SIDEBAR,Pt as NOTIFY_SIDEBAR_SELECTED,xe as NOTIFY_SLIDER_VALUE,pe as NOTIFY_TEXT,ze as NOTIFY_TOGGLE_SELECTED,ye as NOTIFY_VALUE,it as NOTIFY_VIEW_SELECTED,nt as NOTIFY_VISIBLE_CHILD,Ot as NOTIFY_VISIBLE_PAGE,kt as NsNavigationSplitViewState,At as NsOverlaySplitViewState,ht as PAGES_CHANGED,Dt as PAGE_CHANGED,Kt as PREFERENCES_CLOSED,Ie as ROW_ACTIVATED,Lt as SHEET_CLOSE,Ke as SHORTCUT_LABEL_CAP_TEXT_CLASS,qe as SHORTCUT_LABEL_CLASS,Je as SHORTCUT_LABEL_DIMMED_CLASS,Ye as SHORTCUT_LABEL_DISABLED_CLASS,Xe as SHORTCUT_LABEL_KEYCAP_CLASS,L as SHORTCUT_LABEL_KEYS_CLASS,Ze as SHORTCUT_LABEL_SIDE_CLASS,Qe as SHORTCUT_LABEL_SPACED_CLASS,be as SpinState,Vt as TOAST_BUTTON_CLICKED,Be as ToggleGroupState,Jt as addBreakpoints,te as adwaitaColorScheme,He as adwaitaNsAccentColor,Ue as adwaitaNsAccentCss,We as applyAdwaitaNsAccent,vt as applyCarouselDots,at as applyTabViewVisibility,c as attachRowPressFeedback,S as avatarInitials,yt as carouselDotClasses,bt as carouselNotifyPayload,xt as carouselPositionAtOffset,St as carouselScrollOffset,Ge as clearAdwaitaNsAccent,Ct as createCarouselState,ot as createTabViewState,Ae as dataGridCellClass,je as dataGridItemSpec,Me as dataGridRowClass,Ne as dataGridShapeKey,Pe as dataGridTracksKey,Yt as evaluateBreakpointCondition,ue as extractIconPaths,de as extractPathData,ne as isThemeIconColor,wt as normalizeCarouselPageWidth,re as onAdwaitaColorSchemeChanged,Xt as parseBreakpointCondition,Fe as parseDataGridWidth,registerAdwaitaElements,a as renderSymbolicIcon,ie as setAdwaitaColorScheme,$e as shortcutLabelDirection,et as shortcutLabelPlatform,tt as shortcutLabelRenderPlan,jt as splitViewColumns,st as tabBarVisibility,ct as tabCloseVisibilities,lt as tabLabelText,ut as tabPageVisibilities,dt as tabTooltipText,ft as tabViewNotifyPayload,ae as themeIconColor,oe as toggleAdwaitaColorScheme};
1
+ import"../_virtual/_rolldown/runtime.js";import{AdwPreferencesPage as e}from"./adw-preferences-page.js";import{AdwPreferencesGroup as t}from"./adw-preferences-group.js";import{ACTIVATED as ee,AdwActionRow as n}from"./adw-action-row.js";import{AdwSwitchRow as r,NOTIFY_ACTIVE as te}from"./adw-switch-row.js";import{adwaitaColorScheme as ne,isThemeIconColor as re,onAdwaitaColorSchemeChanged as ie,setAdwaitaColorScheme as ae,themeIconColor as oe,toggleAdwaitaColorScheme as se}from"./color-scheme.js";import{ADWAITA_ICON_GRID as ce,DEFAULT_ICON_COLOR as le,DEFAULT_ICON_COLOR_DARK as ue,extractIconPaths as i,extractPathData as a}from"./icon-path.js";import{renderSymbolicIcon as de}from"./icons.js";import{DEFAULT_GTK_IMAGE_SIZE as fe,GtkImage as o}from"./gtk-image.js";import{attachRowPressFeedback as pe}from"./row-press.js";import{AdwImageButton as s,DEFAULT_ICON_BUTTON_ICON_SIZE as me}from"./adw-image-button.js";import{AdwEntryRow as c,NOTIFY_TEXT as he}from"./adw-entry-row.js";import{AdwPasswordEntryRow as l}from"./adw-password-entry-row.js";import{ACTIVATE as ge,GtkEntry as u,NOTIFY_TEXT as _e}from"./gtk-entry.js";import{AdwComboRow as d,ComboState as ve,NOTIFY_SELECTED as ye}from"./adw-combo-row.js";import{GtkDropDown as f,NOTIFY_SELECTED as be}from"./gtk-drop-down.js";import{AdwSpinRow as p,NOTIFY_VALUE as xe,SpinState as Se}from"./adw-spin-row.js";import{AdwSliderRow as m,NOTIFY_SLIDER_VALUE as Ce}from"./adw-slider-row.js";import{AdwExpanderRow as h,ExpanderState as we,NOTIFY_EXPANDED as Te}from"./adw-expander-row.js";import{GtkButton as g}from"./gtk-button.js";import{MENU_CANCEL_LABEL as Ee,menuSheetActions as De,menuSheetRows as Oe,presentMenuSheet as ke,resolveMenuChoice as Ae}from"./menu-sheet.js";import{GtkMenuButton as _,MENU_ITEM_ACTIVATED as v}from"./gtk-menu-button.js";import{DEFAULT_CLAMP_MAX_SIZE as y,DEFAULT_SPINNER_SIZE as b}from"./chrome.js";import{AdwBanner as x,BUTTON_CLICKED as S}from"./adw-banner.js";import{avatarInitials as C}from"./avatar-color.js";import{AdwAvatar as w,DEFAULT_AVATAR_SIZE as je}from"./adw-avatar.js";import{AdwWindowTitle as T}from"./adw-window-title.js";import{AdwClamp as E}from"./adw-clamp.js";import{AdwHeaderBar as D}from"./adw-header-bar.js";import{AdwToolbarView as O}from"./adw-toolbar-view.js";import{AdwWrapBox as k}from"./adw-wrap-box.js";import{DATA_GRID_HEADER_CELL_CLASS as Me,DATA_GRID_HEADER_ROW_CLASS as Ne,DATA_GRID_SECTION_CELL_CLASS as Pe,dataGridCellClass as Fe,dataGridItemSpec as Ie,dataGridRowClass as Le,dataGridShapeKey as Re,dataGridTracksKey as ze,parseDataGridWidth as Be}from"./data-grid-model.js";import{AdwDataGrid as A,ROW_ACTIVATED as Ve}from"./adw-data-grid.js";import{AdwSpinner as j}from"./adw-spinner.js";import{AdwStatusPage as M}from"./adw-status-page.js";import{AdwButtonRow as N}from"./adw-button-row.js";import{AdwButtonContent as P}from"./adw-button-content.js";import{AdwSplitButton as F,CLICKED as He,MENU_TAPPED as Ue}from"./adw-split-button.js";import{AdwToggleGroup as I,NOTIFY_SELECTED as We,ToggleGroupState as Ge}from"./adw-toggle-group.js";import{ADWAITA_NS_ACCENT_RULES as Ke,adwaitaNsAccentColor as qe,adwaitaNsAccentCss as Je}from"./accent-theme.js";import{applyAdwaitaNsAccent as Ye,clearAdwaitaNsAccent as Xe}from"./adw-accent.js";import{SHORTCUT_LABEL_CAP_TEXT_CLASS as Ze,SHORTCUT_LABEL_CLASS as Qe,SHORTCUT_LABEL_DIMMED_CLASS as $e,SHORTCUT_LABEL_DISABLED_CLASS as et,SHORTCUT_LABEL_KEYCAP_CLASS as tt,SHORTCUT_LABEL_KEYS_CLASS as nt,SHORTCUT_LABEL_SIDE_CLASS as L,SHORTCUT_LABEL_SPACED_CLASS as rt,shortcutLabelDirection as it,shortcutLabelPlatform as at,shortcutLabelRenderPlan as ot}from"./shortcut-label.js";import{AdwShortcutLabel as R}from"./adw-shortcut-label.js";import{AdwViewStack as z,NOTIFY_VISIBLE_CHILD as st}from"./adw-view-stack.js";import{AdwViewSwitcherBase as ct,NOTIFY_SELECTED as lt}from"./view-switcher-base.js";import{AdwViewSwitcher as B}from"./adw-view-switcher.js";import{AdwViewSwitcherBar as V}from"./adw-view-switcher-bar.js";import{AdwInlineViewSwitcher as H}from"./adw-inline-view-switcher.js";import{applyTabViewVisibility as ut,createTabViewState as dt,tabBarVisibility as ft,tabCloseVisibilities as pt,tabLabelText as mt,tabPageVisibilities as ht,tabTooltipText as gt,tabViewNotifyPayload as _t}from"./tab-view-state.js";import{AdwTabView as U,CLOSE_PAGE as vt,NOTIFY_SELECTED_PAGE as yt,PAGES_CHANGED as bt}from"./adw-tab-view.js";import{CarouselScrollSync as xt,DEFAULT_CAROUSEL_PAGE_WIDTH as St,applyCarouselDots as Ct,carouselDotClasses as wt,carouselNotifyPayload as Tt,carouselPositionAtOffset as Et,carouselScrollOffset as Dt,createCarouselState as Ot,normalizeCarouselPageWidth as kt}from"./carousel-state.js";import{AdwCarousel as W,NOTIFY_N_PAGES as At,NOTIFY_POSITION as jt,PAGE_CHANGED as Mt}from"./adw-carousel.js";import{NOTIFY_VISIBLE_PAGE as Nt}from"./navigation-stack.js";import{AdwNavigationView as G}from"./adw-navigation-view.js";import{NsNavigationSplitViewState as Pt,NsOverlaySplitViewState as Ft,splitViewColumns as It}from"./split-view-state.js";import{AdwSplitViewBase as Lt,NOTIFY_SHOW_SIDEBAR as Rt}from"./split-view-base.js";import{AdwNavigationSplitView as K}from"./adw-navigation-split-view.js";import{AdwOverlaySplitView as q}from"./adw-overlay-split-view.js";import{AdwSidebar as J,NOTIFY_SELECTED as zt}from"./adw-sidebar.js";import{CLOSE_ATTEMPT as Bt,NOTIFY_OPEN as Vt,SHEET_CLOSE as Ht}from"./bottom-sheet-state.js";import{AdwBottomSheet as Y}from"./adw-bottom-sheet.js";import{AdwToast as Ut,AdwToastOverlay as X,AdwToastQueue as Wt,DEFAULT_TOAST_TIMEOUT as Gt,TOAST_BUTTON_CLICKED as Kt}from"./adw-toast-overlay.js";import{AdwAlertDialog as qt,AdwAlertResponses as Jt,NOTIFY_RESPONSE as Yt}from"./adw-alert-dialog.js";import{AdwAboutDialog as Z,CLOSED as Xt}from"./adw-about-dialog.js";import{AdwPreferencesDialog as Q,CLOSED as Zt}from"./adw-preferences-dialog.js";import{AdwBreakpoint as Qt,addBreakpoints as $t,evaluateBreakpointCondition as en,parseBreakpointCondition as tn}from"./breakpoint.js";const nn={AdwPreferencesPage:e,AdwPreferencesGroup:t,AdwActionRow:n,AdwSwitchRow:r,AdwEntryRow:c,AdwPasswordEntryRow:l,GtkEntry:u,AdwComboRow:d,GtkDropDown:f,AdwSpinRow:p,AdwSliderRow:m,AdwExpanderRow:h,GtkButton:g,AdwImageButton:s,GtkMenuButton:_,GtkImage:o,AdwBanner:x,AdwAvatar:w,AdwWindowTitle:T,AdwClamp:E,AdwHeaderBar:D,AdwToolbarView:O,AdwWrapBox:k,AdwDataGrid:A,AdwSpinner:j,AdwStatusPage:M,AdwButtonRow:N,AdwButtonContent:P,AdwSplitButton:F,AdwToggleGroup:I,AdwShortcutLabel:R,AdwViewStack:z,AdwViewSwitcher:B,AdwViewSwitcherBar:V,AdwInlineViewSwitcher:H,AdwTabView:U,AdwCarousel:W,AdwNavigationView:G,AdwNavigationSplitView:K,AdwOverlaySplitView:q,AdwSidebar:J,AdwBottomSheet:Y,AdwToastOverlay:X,AdwAboutDialog:Z,AdwPreferencesDialog:Q};let $=!1;function registerAdwaitaElements(){if(!$&&typeof registerElement==`function`){for(let[e,t]of Object.entries(nn))registerElement(e,()=>t);$=!0}}export{Xt as ABOUT_CLOSED,ee as ACTIVATED,ce as ADWAITA_ICON_GRID,Ke as ADWAITA_NS_ACCENT_RULES,Z as AdwAboutDialog,n as AdwActionRow,qt as AdwAlertDialog,Jt as AdwAlertResponses,w as AdwAvatar,x as AdwBanner,Y as AdwBottomSheet,Qt as AdwBreakpoint,P as AdwButtonContent,N as AdwButtonRow,W as AdwCarousel,E as AdwClamp,d as AdwComboRow,A as AdwDataGrid,c as AdwEntryRow,h as AdwExpanderRow,D as AdwHeaderBar,s as AdwImageButton,H as AdwInlineViewSwitcher,K as AdwNavigationSplitView,G as AdwNavigationView,q as AdwOverlaySplitView,l as AdwPasswordEntryRow,Q as AdwPreferencesDialog,t as AdwPreferencesGroup,e as AdwPreferencesPage,R as AdwShortcutLabel,J as AdwSidebar,m as AdwSliderRow,p as AdwSpinRow,j as AdwSpinner,F as AdwSplitButton,Lt as AdwSplitViewBase,M as AdwStatusPage,r as AdwSwitchRow,U as AdwTabView,Ut as AdwToast,X as AdwToastOverlay,Wt as AdwToastQueue,I as AdwToggleGroup,O as AdwToolbarView,z as AdwViewStack,B as AdwViewSwitcher,V as AdwViewSwitcherBar,ct as AdwViewSwitcherBase,T as AdwWindowTitle,k as AdwWrapBox,S as BUTTON_CLICKED,He as CLICKED,Bt as CLOSE_ATTEMPT,vt as CLOSE_PAGE,xt as CarouselScrollSync,ve as ComboState,Me as DATA_GRID_HEADER_CELL_CLASS,Ne as DATA_GRID_HEADER_ROW_CLASS,Pe as DATA_GRID_SECTION_CELL_CLASS,je as DEFAULT_AVATAR_SIZE,St as DEFAULT_CAROUSEL_PAGE_WIDTH,y as DEFAULT_CLAMP_MAX_SIZE,fe as DEFAULT_GTK_IMAGE_SIZE,me as DEFAULT_ICON_BUTTON_ICON_SIZE,le as DEFAULT_ICON_COLOR,ue as DEFAULT_ICON_COLOR_DARK,b as DEFAULT_SPINNER_SIZE,Gt as DEFAULT_TOAST_TIMEOUT,ge as ENTRY_ACTIVATE,we as ExpanderState,g as GtkButton,f as GtkDropDown,u as GtkEntry,o as GtkImage,_ as GtkMenuButton,Ee as MENU_CANCEL_LABEL,v as MENU_ITEM_ACTIVATED,Ue as MENU_TAPPED,te as NOTIFY_ACTIVE,be as NOTIFY_DROP_DOWN_SELECTED,_e as NOTIFY_ENTRY_TEXT,Te as NOTIFY_EXPANDED,At as NOTIFY_N_PAGES,Vt as NOTIFY_OPEN,jt as NOTIFY_POSITION,Yt as NOTIFY_RESPONSE,ye as NOTIFY_SELECTED,yt as NOTIFY_SELECTED_PAGE,Rt as NOTIFY_SHOW_SIDEBAR,zt as NOTIFY_SIDEBAR_SELECTED,Ce as NOTIFY_SLIDER_VALUE,he as NOTIFY_TEXT,We as NOTIFY_TOGGLE_SELECTED,xe as NOTIFY_VALUE,lt as NOTIFY_VIEW_SELECTED,st as NOTIFY_VISIBLE_CHILD,Nt as NOTIFY_VISIBLE_PAGE,Pt as NsNavigationSplitViewState,Ft as NsOverlaySplitViewState,bt as PAGES_CHANGED,Mt as PAGE_CHANGED,Zt as PREFERENCES_CLOSED,Ve as ROW_ACTIVATED,Ht as SHEET_CLOSE,Ze as SHORTCUT_LABEL_CAP_TEXT_CLASS,Qe as SHORTCUT_LABEL_CLASS,$e as SHORTCUT_LABEL_DIMMED_CLASS,et as SHORTCUT_LABEL_DISABLED_CLASS,tt as SHORTCUT_LABEL_KEYCAP_CLASS,nt as SHORTCUT_LABEL_KEYS_CLASS,L as SHORTCUT_LABEL_SIDE_CLASS,rt as SHORTCUT_LABEL_SPACED_CLASS,Se as SpinState,Kt as TOAST_BUTTON_CLICKED,Ge as ToggleGroupState,$t as addBreakpoints,ne as adwaitaColorScheme,qe as adwaitaNsAccentColor,Je as adwaitaNsAccentCss,Ye as applyAdwaitaNsAccent,Ct as applyCarouselDots,ut as applyTabViewVisibility,pe as attachRowPressFeedback,C as avatarInitials,wt as carouselDotClasses,Tt as carouselNotifyPayload,Et as carouselPositionAtOffset,Dt as carouselScrollOffset,Xe as clearAdwaitaNsAccent,Ot as createCarouselState,dt as createTabViewState,Fe as dataGridCellClass,Ie as dataGridItemSpec,Le as dataGridRowClass,Re as dataGridShapeKey,ze as dataGridTracksKey,en as evaluateBreakpointCondition,i as extractIconPaths,a as extractPathData,re as isThemeIconColor,De as menuSheetActions,Oe as menuSheetRows,kt as normalizeCarouselPageWidth,ie as onAdwaitaColorSchemeChanged,tn as parseBreakpointCondition,Be as parseDataGridWidth,ke as presentMenuSheet,registerAdwaitaElements,de as renderSymbolicIcon,Ae as resolveMenuChoice,ae as setAdwaitaColorScheme,it as shortcutLabelDirection,at as shortcutLabelPlatform,ot as shortcutLabelRenderPlan,It as splitViewColumns,ft as tabBarVisibility,pt as tabCloseVisibilities,mt as tabLabelText,ht as tabPageVisibilities,gt as tabTooltipText,_t as tabViewNotifyPayload,oe as themeIconColor,se as toggleAdwaitaColorScheme};
@@ -0,0 +1 @@
1
+ import"../_virtual/_rolldown/runtime.js";import{flattenMenu as e,menuNodeAt as t,resolveMenuItemState as n}from"@gjsify/adwaita-core";const r=`Cancel`;function menuSheetRows(n,i=[],a,o=r){let s=i.length===0?null:t(n,i),c=s!==null&&s.kind!==`item`?s.items:n,l=new Set([o]),u=[];for(let t of e(c,i)){let e=sheetLabel(t,a);if(e===null)continue;let n=e;for(;l.has(n);)n+=`​`;l.add(n),u.push({action:n,path:t.path,submenu:t.node.kind===`submenu`})}return u}function sheetLabel(e,t){if(e.node.kind===`submenu`)return`${e.node.label} ›`;let r=n(e.node,t);return!r.visible||!r.sensitive?null:r.toggled?`✓ ${e.node.label}`:e.node.label}const menuSheetActions=e=>e.map(e=>e.action);function resolveMenuChoice(e,t){return typeof t==`string`?e.find(e=>e.action===t)??null:null}async function presentMenuSheet(e,n,r={}){let i=r.cancelLabel??`Cancel`,a=[],o=r.title;for(;;){let s=menuSheetRows(n,a,r.actions,i);if(s.length===0)return null;let c=resolveMenuChoice(s,await e({title:o!==void 0&&o.length>0?o:void 0,cancelButtonText:i,actions:menuSheetActions(s)}));if(c===null)return null;if(!c.submenu)return c.path;a=c.path;let l=t(n,a);o=l!==null&&l.kind===`submenu`?l.label:void 0}}function refuseMenuString(e,t){if(typeof e==`string`)throw TypeError(`${t}.menuModel takes a menu model, not the string ${JSON.stringify(e.slice(0,40))}. NativeScript's XML Builder writes an attribute straight onto the property, so a menuModel="…" in a view file arrives here as text — which this port deliberately does not parse (ADR 0042). Assign the model from code, or keep this menu on a surface whose attribute door is open.`)}export{r as MENU_CANCEL_LABEL,menuSheetActions,menuSheetRows,presentMenuSheet,refuseMenuString,resolveMenuChoice};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{splitButtonArrowIcon as e}from"@gjsify/adwaita-core";import{openMenuSymbolic as t}from"@gjsify/adwaita-icons/actions";import{panDownSymbolic as n,panEndSymbolic as r,panStartSymbolic as i,panUpSymbolic as a}from"@gjsify/adwaita-icons/ui";const o=`Cancel`,s={"open-menu-symbolic":t,"pan-down-symbolic":n,"pan-up-symbolic":a,"pan-start-symbolic":i,"pan-end-symbolic":r};function toMenuEntries(e){if(!Array.isArray(e))return[];let t=[];for(let n of e)typeof n==`string`?t.push({label:n}):typeof n==`object`&&n&&typeof n.label==`string`&&t.push({...n});return t}function menuSheetActions(e,t=o){let n=new Set([t]),r=[];for(let t of e){let e=t.label;for(;n.has(e);)e+=`​`;n.add(e),r.push(e)}return r}function resolveMenuChoice(e,t){return typeof t==`string`?e.indexOf(t):-1}function splitButtonArrowSvg(t){return s[e(t)]}function setActionIcon(e,t){let n=t??``;n.length>0?e.setIconName(n):e.mode===`icon`&&e.setChild(null)}export{s as ARROW_SVGS,o as MENU_CANCEL_LABEL,menuSheetActions,resolveMenuChoice,setActionIcon,splitButtonArrowSvg,toMenuEntries};
1
+ import"../_virtual/_rolldown/runtime.js";import{splitButtonArrowIcon as e}from"@gjsify/adwaita-core";import{openMenuSymbolic as t}from"@gjsify/adwaita-icons/actions";import{panDownSymbolic as n,panEndSymbolic as r,panStartSymbolic as i,panUpSymbolic as a}from"@gjsify/adwaita-icons/ui";const o={"open-menu-symbolic":t,"pan-down-symbolic":n,"pan-up-symbolic":a,"pan-start-symbolic":i,"pan-end-symbolic":r};function splitButtonArrowSvg(t){return o[e(t)]}function setActionIcon(e,t){let n=t??``;n.length>0?e.setIconName(n):e.mode===`icon`&&e.setChild(null)}export{o as ARROW_SVGS,setActionIcon,splitButtonArrowSvg};
@@ -1 +1 @@
1
- import"../_virtual/_rolldown/runtime.js";import{xmlNumber as e}from"./xml-values.js";import{AdwIcon as t}from"./adw-icon.js";import{attachRowPressFeedback as n}from"./row-press.js";import{applyViewSwitcherVisibility as r,createViewSwitcherState as i,nsIconSvg as a,switcherButtonVisible as o,viewSwitcherNotifyPayload as s,viewSwitcherPageSpecs as c}from"./view-switcher-model.js";import{GridLayout as l,ItemSpec as u,Label as d,StackLayout as f}from"@nativescript/core";import{buildViewSwitcherButtons as p}from"@gjsify/adwaita-core";const m=`notify::selected`;var AdwViewSwitcherBase=class extends l{_bar;_policy=`narrow`;_contentArea;_pages=[];_state=i();_nodes=[];get policy(){return this._policy}get switcherPolicy(){return this._policy}set switcherPolicy(e){let t=e===`wide`?`wide`:`narrow`;t!==this._policy&&(this._policy=t,this._applySelection(),this.notify({eventName:`notify::policy`,object:this}))}get buttonDisplayMode(){return`both`}constructor(e){super(),this.className=e,this.addColumn(new u(1,`star`)),this.addRow(new u(1,`auto`)),this.addRow(new u(1,`star`));let t=new l;t.horizontalAlignment=`stretch`,t.addRow(new u(1,`auto`)),l.setRow(t,0),this.addChild(t),this._bar=t;let n=new l;n.addColumn(new u(1,`star`)),n.addRow(new u(1,`star`)),l.setRow(n,1),this.addChild(n),this._contentArea=n,this._state.subscribe(e=>{this._applySelection();let t={eventName:m,object:this,...s(e)};this.notify(t)})}_initClasses(){this._bar.className=this.barClass}setViews(e){for(let e of this._nodes)this._bar.removeChild(e.button);this._nodes=[],this._bar.removeColumns();for(let e of this._pages)this._contentArea.removeChild(e.content);this._pages.length=0,this._pages.push(...e);for(let[e,t]of this._pages.entries())this._nodes.push(this._buildButton(e)),l.setColumn(t.content,0),l.setRow(t.content,0),this._contentArea.addChild(t.content);this._state.setPages(c(this._pages)),this._applySelection()}_buildButton(e){let r=new f;r.orientation=`horizontal`,r.className=this.buttonClass,r.horizontalAlignment=`center`;let i=new t;i.className=`${i.className} ${this.buttonClass}-icon`.trim(),i.verticalAlignment=`middle`,r.addChild(i);let a=new d;a.className=`${this.buttonClass}-label`,a.verticalAlignment=`middle`,r.addChild(a);let o=new d;return o.className=`${this.buttonClass}-badge`,o.verticalAlignment=`middle`,r.addChild(o),n(r),r.addEventListener(`tap`,()=>{this._state.setSelected(e)}),this._bar.addColumn(new u(1,`star`)),l.setColumn(r,e),l.setRow(r,0),this._bar.addChild(r),{button:r,icon:i,label:a,badge:o}}get switcherKind(){return`switcher`}_applySelection(){r(this._pages,this._state.selected);let e=this.buttonDisplayMode!==`labels`,t=this.buttonDisplayMode!==`icons`;p(this._state.pages,this._state.selected,this.policy).forEach((n,r)=>{let i=this._nodes[r];if(!i)return;let s=this._state.pages[r]?.visible??!1;i.button.visibility=o(this.switcherKind,n.visible,s)?`visible`:`collapse`,i.button.orientation=n.orientation===`horizontal`?`horizontal`:`vertical`,i.button.className=n.selected?`${this.buttonClass} active`:this.buttonClass,i.icon.iconName=a(n.iconName),i.icon.visibility=e?`visible`:`collapse`,i.label.text=n.label,i.label.visibility=t?`visible`:`collapse`,i.badge.text=n.badgeLabel,i.badge.visibility=n.badgeLabel.length>0||n.needsAttention?`visible`:`collapse`,n.badgeLabel.length===0&&n.needsAttention?i.badge.className=`${this.buttonClass}-badge needs-attention`:i.badge.className=`${this.buttonClass}-badge`,i.button.accessibilityLabel=n.description||n.label})}get views(){return this._pages}set views(e){this.setViews(Array.isArray(e)?e:[])}get selected(){return this._state.selected}set selected(t){let n=e(t,this.selected);this._state.setSelected(n)}get selectedName(){return this._state.selectedName}setPageVisible(e,t){let n=this._state.setPageVisible(e,t);return this._applySelection(),n}};export{AdwViewSwitcherBase,m as NOTIFY_SELECTED};
1
+ import"../_virtual/_rolldown/runtime.js";import{xmlNumber as e}from"./xml-values.js";import{GtkImage as t}from"./gtk-image.js";import{attachRowPressFeedback as n}from"./row-press.js";import{applyViewSwitcherVisibility as r,createViewSwitcherState as i,nsIconSvg as a,switcherButtonVisible as o,viewSwitcherNotifyPayload as s,viewSwitcherPageSpecs as c}from"./view-switcher-model.js";import{GridLayout as l,ItemSpec as u,Label as d,StackLayout as f}from"@nativescript/core";import{buildViewSwitcherButtons as p}from"@gjsify/adwaita-core";const m=`notify::selected`;var AdwViewSwitcherBase=class extends l{_bar;_policy=`narrow`;_contentArea;_pages=[];_state=i();_nodes=[];get policy(){return this._policy}get switcherPolicy(){return this._policy}set switcherPolicy(e){let t=e===`wide`?`wide`:`narrow`;t!==this._policy&&(this._policy=t,this._applySelection(),this.notify({eventName:`notify::policy`,object:this}))}get buttonDisplayMode(){return`both`}constructor(e){super(),this.className=e,this.addColumn(new u(1,`star`)),this.addRow(new u(1,`auto`)),this.addRow(new u(1,`star`));let t=new l;t.horizontalAlignment=`stretch`,t.addRow(new u(1,`auto`)),l.setRow(t,0),this.addChild(t),this._bar=t;let n=new l;n.addColumn(new u(1,`star`)),n.addRow(new u(1,`star`)),l.setRow(n,1),this.addChild(n),this._contentArea=n,this._state.subscribe(e=>{this._applySelection();let t={eventName:m,object:this,...s(e)};this.notify(t)})}_initClasses(){this._bar.className=this.barClass}setViews(e){for(let e of this._nodes)this._bar.removeChild(e.button);this._nodes=[],this._bar.removeColumns();for(let e of this._pages)this._contentArea.removeChild(e.content);this._pages.length=0,this._pages.push(...e);for(let[e,t]of this._pages.entries())this._nodes.push(this._buildButton(e)),l.setColumn(t.content,0),l.setRow(t.content,0),this._contentArea.addChild(t.content);this._state.setPages(c(this._pages)),this._applySelection()}_buildButton(e){let r=new f;r.orientation=`horizontal`,r.className=this.buttonClass,r.horizontalAlignment=`center`;let i=new t;i.className=`${i.className} ${this.buttonClass}-icon`.trim(),i.verticalAlignment=`middle`,r.addChild(i);let a=new d;a.className=`${this.buttonClass}-label`,a.verticalAlignment=`middle`,r.addChild(a);let o=new d;return o.className=`${this.buttonClass}-badge`,o.verticalAlignment=`middle`,r.addChild(o),n(r),r.addEventListener(`tap`,()=>{this._state.setSelected(e)}),this._bar.addColumn(new u(1,`star`)),l.setColumn(r,e),l.setRow(r,0),this._bar.addChild(r),{button:r,icon:i,label:a,badge:o}}get switcherKind(){return`switcher`}_applySelection(){r(this._pages,this._state.selected);let e=this.buttonDisplayMode!==`labels`,t=this.buttonDisplayMode!==`icons`;p(this._state.pages,this._state.selected,this.policy).forEach((n,r)=>{let i=this._nodes[r];if(!i)return;let s=this._state.pages[r]?.visible??!1;i.button.visibility=o(this.switcherKind,n.visible,s)?`visible`:`collapse`,i.button.orientation=n.orientation===`horizontal`?`horizontal`:`vertical`,i.button.className=n.selected?`${this.buttonClass} active`:this.buttonClass,i.icon.iconName=a(n.iconName),i.icon.visibility=e?`visible`:`collapse`,i.label.text=n.label,i.label.visibility=t?`visible`:`collapse`,i.badge.text=n.badgeLabel,i.badge.visibility=n.badgeLabel.length>0||n.needsAttention?`visible`:`collapse`,n.badgeLabel.length===0&&n.needsAttention?i.badge.className=`${this.buttonClass}-badge needs-attention`:i.badge.className=`${this.buttonClass}-badge`,i.button.accessibilityLabel=n.description||n.label})}get views(){return this._pages}set views(e){this.setViews(Array.isArray(e)?e:[])}get selected(){return this._state.selected}set selected(t){let n=e(t,this.selected);this._state.setSelected(n)}get selectedName(){return this._state.selectedName}setPageVisible(e,t){let n=this._state.setPageVisible(e,t);return this._applySelection(),n}};export{AdwViewSwitcherBase,m as NOTIFY_SELECTED};
@@ -1,7 +1,8 @@
1
1
  export { assertNativeScript, isNativeScript, isAndroid, isIOS } from '@gjsify/native-platform';
2
- export { AdwPreferencesPage, AdwPreferencesGroup, AdwActionRow, AdwSwitchRow, NOTIFY_ACTIVE, AdwEntryRow, NOTIFY_TEXT, AdwPasswordEntryRow, GtkEntry, ENTRY_ACTIVATE, NOTIFY_ENTRY_TEXT, AdwComboRow, ComboState, NOTIFY_SELECTED, GtkDropDown, NOTIFY_DROP_DOWN_SELECTED, AdwSpinRow, SpinState, NOTIFY_VALUE, AdwSliderRow, NOTIFY_SLIDER_VALUE, AdwExpanderRow, ExpanderState, NOTIFY_EXPANDED, GtkButton, AdwImageButton, DEFAULT_ICON_BUTTON_ICON_SIZE, GtkMenuButton, MENU_ITEM_ACTIVATED, AdwIcon, DEFAULT_ADW_ICON_SIZE, AdwBanner, BUTTON_CLICKED, AdwAvatar, DEFAULT_AVATAR_SIZE, avatarInitials, AdwWindowTitle, AdwClamp, DEFAULT_CLAMP_MAX_SIZE, AdwHeaderBar, AdwToolbarView, AdwWrapBox, AdwDataGrid, ROW_ACTIVATED, dataGridCellClass, dataGridItemSpec, dataGridRowClass, dataGridShapeKey, dataGridTracksKey, parseDataGridWidth, DATA_GRID_HEADER_CELL_CLASS, DATA_GRID_HEADER_ROW_CLASS, DATA_GRID_SECTION_CELL_CLASS, AdwSpinner, DEFAULT_SPINNER_SIZE, AdwStatusPage, AdwButtonRow, ACTIVATED, AdwButtonContent, AdwSplitButton, CLICKED, MENU_TAPPED, AdwToggleGroup, ToggleGroupState, NOTIFY_TOGGLE_SELECTED, applyAdwaitaNsAccent, clearAdwaitaNsAccent, ADWAITA_NS_ACCENT_RULES, adwaitaNsAccentColor, adwaitaNsAccentCss, AdwShortcutLabel, SHORTCUT_LABEL_CAP_TEXT_CLASS, SHORTCUT_LABEL_CLASS, SHORTCUT_LABEL_DIMMED_CLASS, SHORTCUT_LABEL_DISABLED_CLASS, SHORTCUT_LABEL_KEYCAP_CLASS, SHORTCUT_LABEL_KEYS_CLASS, SHORTCUT_LABEL_SIDE_CLASS, SHORTCUT_LABEL_SPACED_CLASS, shortcutLabelDirection, shortcutLabelPlatform, shortcutLabelRenderPlan, AdwViewStack, NOTIFY_VISIBLE_CHILD, AdwViewSwitcherBase, NOTIFY_VIEW_SELECTED, AdwViewSwitcher, AdwViewSwitcherBar, AdwInlineViewSwitcher, AdwTabView, AdwCarousel, DEFAULT_CAROUSEL_PAGE_WIDTH, NOTIFY_POSITION, AdwNavigationView, NOTIFY_VISIBLE_PAGE, AdwSplitViewBase, NOTIFY_SHOW_SIDEBAR, AdwNavigationSplitView, AdwOverlaySplitView, NsNavigationSplitViewState, NsOverlaySplitViewState, splitViewColumns, AdwSidebar, NOTIFY_SIDEBAR_SELECTED, AdwBottomSheet, NOTIFY_OPEN, AdwToast, AdwToastOverlay, AdwToastQueue, DEFAULT_TOAST_TIMEOUT, TOAST_BUTTON_CLICKED, AdwAlertDialog, AdwAlertResponses, NOTIFY_RESPONSE, AdwAboutDialog, ABOUT_CLOSED, AdwPreferencesDialog, PREFERENCES_CLOSED, attachRowPressFeedback, renderSymbolicIcon, extractIconPaths, extractPathData, ADWAITA_ICON_GRID, DEFAULT_ICON_COLOR, DEFAULT_ICON_COLOR_DARK, adwaitaColorScheme, isThemeIconColor, onAdwaitaColorSchemeChanged, setAdwaitaColorScheme, themeIconColor, toggleAdwaitaColorScheme, AdwBreakpoint, addBreakpoints, evaluateBreakpointCondition, parseBreakpointCondition, registerAdwaitaElements, } from './widgets/index.js';
3
- export type { NotifyActiveEventData, NotifyTextEventData, NotifyEntryTextEventData, AdwComboOption, ComboStateChange, ComboStateListener, NotifySelectedEventData, NotifyDropDownSelectedEventData, NotifyValueEventData, SpinStateChange, SpinStateListener, NotifySliderValueEventData, NotifyExpandedEventData, ExpanderStateListener, AdwButtonVariant, AdwMenuItem, MenuItemActivatedEventData, MenuTappedEventData, RowActivatedEventData, DataGridItemSpec, NotifyToggleSelectedEventData, ToggleGroupStateChange, ToggleGroupStateListener, AccentRole, AccentRule, ShortcutLabelRenderPlan, ShortcutLabelViewSpec, AdwViewStackPage, NotifyVisibleChildEventData, AdwViewPage, NotifyViewSelectedEventData, NotifyPositionEventData, NotifyVisiblePageEventData, NotifyShowSidebarEventData, NsShowSidebarNotification, NsSplitViewHost, NsSplitViewState, NotifySidebarSelectedEventData, NotifyOpenEventData, AdwToastOptions, AdwToastQueueHandlers, AdwToastQueueOptions, ToastScheduler, ToastTimerHandle, NotifyResponseEventData, AdwAlertResponse, AdwResponseAppearance, AdwResponseOptions, OrderedConfirmResponses, SymbolicIconOptions, IconPath, AdwColorScheme, AdwBreakpointHandlers, BreakpointBound, BreakpointConditionGroup, BreakpointConditionLeaf, BreakpointConditionNode, BreakpointDimension, BreakpointSize, } from './widgets/index.js';
4
- export { Adw, Gtk } from './namespace.js';
2
+ export { NOTIFY_ACTIVE, NOTIFY_TEXT, ENTRY_ACTIVATE, NOTIFY_ENTRY_TEXT, ComboState, NOTIFY_SELECTED, NOTIFY_DROP_DOWN_SELECTED, SpinState, NOTIFY_VALUE, AdwSliderRow, NOTIFY_SLIDER_VALUE, ExpanderState, NOTIFY_EXPANDED, AdwImageButton, DEFAULT_ICON_BUTTON_ICON_SIZE, MENU_ITEM_ACTIVATED, DEFAULT_GTK_IMAGE_SIZE, BUTTON_CLICKED, DEFAULT_AVATAR_SIZE, avatarInitials, DEFAULT_CLAMP_MAX_SIZE, AdwDataGrid, ROW_ACTIVATED, dataGridCellClass, dataGridItemSpec, dataGridRowClass, dataGridShapeKey, dataGridTracksKey, parseDataGridWidth, DATA_GRID_HEADER_CELL_CLASS, DATA_GRID_HEADER_ROW_CLASS, DATA_GRID_SECTION_CELL_CLASS, DEFAULT_SPINNER_SIZE, ACTIVATED, CLICKED, MENU_TAPPED, ToggleGroupState, NOTIFY_TOGGLE_SELECTED, applyAdwaitaNsAccent, clearAdwaitaNsAccent, ADWAITA_NS_ACCENT_RULES, adwaitaNsAccentColor, adwaitaNsAccentCss, SHORTCUT_LABEL_CAP_TEXT_CLASS, SHORTCUT_LABEL_CLASS, SHORTCUT_LABEL_DIMMED_CLASS, SHORTCUT_LABEL_DISABLED_CLASS, SHORTCUT_LABEL_KEYCAP_CLASS, SHORTCUT_LABEL_KEYS_CLASS, SHORTCUT_LABEL_SIDE_CLASS, SHORTCUT_LABEL_SPACED_CLASS, shortcutLabelDirection, shortcutLabelPlatform, shortcutLabelRenderPlan, NOTIFY_VISIBLE_CHILD, AdwViewSwitcherBase, NOTIFY_VIEW_SELECTED, DEFAULT_CAROUSEL_PAGE_WIDTH, NOTIFY_POSITION, NOTIFY_VISIBLE_PAGE, AdwSplitViewBase, NOTIFY_SHOW_SIDEBAR, NsNavigationSplitViewState, NsOverlaySplitViewState, splitViewColumns, NOTIFY_SIDEBAR_SELECTED, NOTIFY_OPEN, AdwToast, AdwToastQueue, DEFAULT_TOAST_TIMEOUT, TOAST_BUTTON_CLICKED, AdwAlertResponses, NOTIFY_RESPONSE, ABOUT_CLOSED, PREFERENCES_CLOSED, attachRowPressFeedback, renderSymbolicIcon, extractIconPaths, extractPathData, ADWAITA_ICON_GRID, DEFAULT_ICON_COLOR, DEFAULT_ICON_COLOR_DARK, adwaitaColorScheme, isThemeIconColor, onAdwaitaColorSchemeChanged, setAdwaitaColorScheme, themeIconColor, toggleAdwaitaColorScheme, AdwBreakpoint, addBreakpoints, evaluateBreakpointCondition, parseBreakpointCondition, registerAdwaitaElements, } from './widgets/index.js';
3
+ export type { NotifyActiveEventData, NotifyTextEventData, NotifyEntryTextEventData, AdwComboOption, ComboStateChange, ComboStateListener, NotifySelectedEventData, NotifyDropDownSelectedEventData, NotifyValueEventData, SpinStateChange, SpinStateListener, NotifySliderValueEventData, NotifyExpandedEventData, ExpanderStateListener, AdwButtonVariant, MenuItemActivatedEventData, MenuSheetPresenter, MenuSheetRow, MenuTappedEventData, RowActivatedEventData, DataGridItemSpec, NotifyToggleSelectedEventData, ToggleGroupStateChange, ToggleGroupStateListener, AccentRole, AccentRule, ShortcutLabelRenderPlan, ShortcutLabelViewSpec, AdwViewStackPage, NotifyVisibleChildEventData, AdwViewPage, NotifyViewSelectedEventData, NotifyPositionEventData, NotifyVisiblePageEventData, NotifyShowSidebarEventData, NsShowSidebarNotification, NsSplitViewHost, NsSplitViewState, NotifySidebarSelectedEventData, NotifyOpenEventData, AdwToastOptions, AdwToastQueueHandlers, AdwToastQueueOptions, ToastScheduler, ToastTimerHandle, NotifyResponseEventData, AdwAlertResponse, AdwResponseAppearance, AdwResponseOptions, OrderedConfirmResponses, SymbolicIconOptions, IconPath, AdwColorScheme, AdwBreakpointHandlers, BreakpointBound, BreakpointConditionGroup, BreakpointConditionLeaf, BreakpointConditionNode, BreakpointDimension, BreakpointSize, } from './widgets/index.js';
4
+ export * as Adw from './namespace/adw.js';
5
+ export * as Gtk from './namespace/gtk.js';
5
6
  export { ADWAITA_SANS_FONT_FAMILY, ADWAITA_SANS_TTF_FILES, adwaitaFontInstallInstructions, hasAdwaitaSans, } from './fonts.js';
6
7
  /**
7
8
  * One-call convenience setup for the Adwaita NativeScript layer.
@@ -0,0 +1,38 @@
1
+ export { AdwAboutDialog as AboutDialog } from '../widgets/adw-about-dialog.js';
2
+ export { AdwActionRow as ActionRow } from '../widgets/adw-action-row.js';
3
+ export { AdwAlertDialog as AlertDialog } from '../widgets/adw-alert-dialog.js';
4
+ export { AdwAvatar as Avatar } from '../widgets/adw-avatar.js';
5
+ export { AdwBanner as Banner } from '../widgets/adw-banner.js';
6
+ export { AdwBottomSheet as BottomSheet } from '../widgets/adw-bottom-sheet.js';
7
+ export { AdwButtonContent as ButtonContent } from '../widgets/adw-button-content.js';
8
+ export { AdwButtonRow as ButtonRow } from '../widgets/adw-button-row.js';
9
+ export { AdwCarousel as Carousel } from '../widgets/adw-carousel.js';
10
+ export { AdwClamp as Clamp } from '../widgets/adw-clamp.js';
11
+ export { AdwComboRow as ComboRow } from '../widgets/adw-combo-row.js';
12
+ export { AdwEntryRow as EntryRow } from '../widgets/adw-entry-row.js';
13
+ export { AdwExpanderRow as ExpanderRow } from '../widgets/adw-expander-row.js';
14
+ export { AdwHeaderBar as HeaderBar } from '../widgets/adw-header-bar.js';
15
+ export { AdwInlineViewSwitcher as InlineViewSwitcher } from '../widgets/adw-inline-view-switcher.js';
16
+ export { AdwNavigationSplitView as NavigationSplitView } from '../widgets/adw-navigation-split-view.js';
17
+ export { AdwNavigationView as NavigationView } from '../widgets/adw-navigation-view.js';
18
+ export { AdwOverlaySplitView as OverlaySplitView } from '../widgets/adw-overlay-split-view.js';
19
+ export { AdwPasswordEntryRow as PasswordEntryRow } from '../widgets/adw-password-entry-row.js';
20
+ export { AdwPreferencesDialog as PreferencesDialog } from '../widgets/adw-preferences-dialog.js';
21
+ export { AdwPreferencesGroup as PreferencesGroup } from '../widgets/adw-preferences-group.js';
22
+ export { AdwPreferencesPage as PreferencesPage } from '../widgets/adw-preferences-page.js';
23
+ export { AdwShortcutLabel as ShortcutLabel } from '../widgets/adw-shortcut-label.js';
24
+ export { AdwSidebar as Sidebar } from '../widgets/adw-sidebar.js';
25
+ export { AdwSpinRow as SpinRow } from '../widgets/adw-spin-row.js';
26
+ export { AdwSpinner as Spinner } from '../widgets/adw-spinner.js';
27
+ export { AdwSplitButton as SplitButton } from '../widgets/adw-split-button.js';
28
+ export { AdwStatusPage as StatusPage } from '../widgets/adw-status-page.js';
29
+ export { AdwSwitchRow as SwitchRow } from '../widgets/adw-switch-row.js';
30
+ export { AdwTabView as TabView } from '../widgets/adw-tab-view.js';
31
+ export { AdwToastOverlay as ToastOverlay } from '../widgets/adw-toast-overlay.js';
32
+ export { AdwToggleGroup as ToggleGroup } from '../widgets/adw-toggle-group.js';
33
+ export { AdwToolbarView as ToolbarView } from '../widgets/adw-toolbar-view.js';
34
+ export { AdwViewStack as ViewStack } from '../widgets/adw-view-stack.js';
35
+ export { AdwViewSwitcher as ViewSwitcher } from '../widgets/adw-view-switcher.js';
36
+ export { AdwViewSwitcherBar as ViewSwitcherBar } from '../widgets/adw-view-switcher-bar.js';
37
+ export { AdwWindowTitle as WindowTitle } from '../widgets/adw-window-title.js';
38
+ export { AdwWrapBox as WrapBox } from '../widgets/adw-wrap-box.js';
@@ -0,0 +1,5 @@
1
+ export { GtkButton as Button } from '../widgets/gtk-button.js';
2
+ export { GtkDropDown as DropDown } from '../widgets/gtk-drop-down.js';
3
+ export { GtkEntry as Entry } from '../widgets/gtk-entry.js';
4
+ export { GtkImage as Image } from '../widgets/gtk-image.js';
5
+ export { GtkMenuButton as MenuButton } from '../widgets/gtk-menu-button.js';
@@ -1,9 +1,9 @@
1
1
  import { Label, StackLayout, type View } from '@nativescript/core';
2
2
  import type { ButtonContentEllipsize } from '@gjsify/adwaita-core';
3
- import { AdwIcon } from './adw-icon.js';
3
+ import { GtkImage } from './gtk-image.js';
4
4
  export declare class AdwButtonContent extends StackLayout {
5
5
  /** The leading symbolic icon. Always parented — the C never hides the image. */
6
- protected readonly _icon: AdwIcon;
6
+ protected readonly _icon: GtkImage;
7
7
  /** The text label. */
8
8
  protected readonly _label: Label;
9
9
  private readonly _props;
@@ -1,6 +1,6 @@
1
1
  import { StackLayout } from '@nativescript/core';
2
2
  import { AdwActionRow } from './adw-action-row.js';
3
- import { AdwIcon } from './adw-icon.js';
3
+ import { GtkImage } from './gtk-image.js';
4
4
  /** Event name emitted when the row is tapped. Mirrors `Adw.ButtonRow::activated`. */
5
5
  export { ACTIVATED } from './adw-action-row.js';
6
6
  export declare class AdwButtonRow extends AdwActionRow {
@@ -10,9 +10,9 @@ export declare class AdwButtonRow extends AdwActionRow {
10
10
  /** The horizontal content box (leading icon + centered title + trailing icon). */
11
11
  protected readonly _contentBox: StackLayout;
12
12
  /** The leading symbolic icon. */
13
- protected readonly _startIcon: AdwIcon;
13
+ protected readonly _startIcon: GtkImage;
14
14
  /** The trailing symbolic icon. */
15
- protected readonly _endIcon: AdwIcon;
15
+ protected readonly _endIcon: GtkImage;
16
16
  /** An explicit icon fill (the destructive red), or `null` to follow the accent. */
17
17
  private _pinnedIconColor;
18
18
  /** Live accent subscription — held only while the row is on screen. */
@@ -52,6 +52,6 @@ export declare class AdwButtonRow extends AdwActionRow {
52
52
  set startIconColor(value: string);
53
53
  /** Paint both icons in the pinned colour, or in the active accent's fill. */
54
54
  private _applyIconColor;
55
- /** Push the derived icon payload + visibility onto the two `AdwIcon`s. */
55
+ /** Push the derived icon payload + visibility onto the two `GtkImage`s. */
56
56
  private _applyIcons;
57
57
  }
@@ -1,7 +1,7 @@
1
1
  import { Label, type EventData } from '@nativescript/core';
2
- import type { AdwComboOption } from '@gjsify/adwaita-core';
2
+ import type { AdwComboOption, AdwListModelInput } from '@gjsify/adwaita-core';
3
3
  import { AdwActionRow } from './adw-action-row.js';
4
- import { AdwIcon } from './adw-icon.js';
4
+ import { GtkImage } from './gtk-image.js';
5
5
  export { ComboState } from '@gjsify/adwaita-core';
6
6
  export type { AdwComboOption, ComboStateChange, ComboStateListener } from '@gjsify/adwaita-core';
7
7
  /** Event name emitted when {@link AdwComboRow.selected} changes. Mirrors GObject `notify::selected`. */
@@ -17,7 +17,7 @@ export declare class AdwComboRow extends AdwActionRow {
17
17
  /** The dim inline value label (selected option). */
18
18
  protected readonly _valueLabel: Label;
19
19
  /** The down-chevron — a real Adwaita `pan-down-symbolic` icon. */
20
- protected readonly _chevron: AdwIcon;
20
+ protected readonly _chevron: GtkImage;
21
21
  /** The headless options list + selectedIndex↔selectedValue state machine (ADR 0004). */
22
22
  private readonly _state;
23
23
  constructor();
@@ -32,9 +32,9 @@ export declare class AdwComboRow extends AdwActionRow {
32
32
  private _syncChooser;
33
33
  /** Open the native action chooser and apply the picked option. */
34
34
  private _openChooser;
35
- /** The selectable options. Updates the inline value label. */
36
- get options(): AdwComboOption[];
37
- set options(value: AdwComboOption[]);
35
+ /** The list model (`Adw.ComboRow:model`). Updates the inline value label. */
36
+ get model(): AdwComboOption[];
37
+ set model(value: AdwListModelInput);
38
38
  /** The selected option index. Updates the inline value label. */
39
39
  get selected(): number;
40
40
  set selected(raw: number | string);