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