@gjsify/adwaita-nativescript 0.64.19 → 0.64.21
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/namespace/adw.js +1 -1
- package/lib/esm/namespace/gtk.js +1 -1
- package/lib/esm/platform-host.js +1 -1
- package/lib/esm/widgets/accent-theme.js +1 -1
- package/lib/esm/widgets/adw-about-dialog.js +3 -3
- package/lib/esm/widgets/adw-action-row.js +1 -1
- package/lib/esm/widgets/adw-bundled-icons.js +1 -0
- package/lib/esm/widgets/adw-button-row.js +1 -1
- package/lib/esm/widgets/adw-entry-row.js +1 -1
- package/lib/esm/widgets/adw-expander-row.js +1 -1
- package/lib/esm/widgets/adw-status-page.js +1 -1
- package/lib/esm/widgets/gtk-button.js +1 -1
- package/lib/esm/widgets/gtk-check-button.js +1 -1
- package/lib/esm/widgets/gtk-scrolled-window.js +1 -1
- package/lib/esm/widgets/icons.android.js +1 -1
- package/lib/esm/widgets/index.js +1 -1
- package/lib/esm/widgets/named-colors-theme.js +1 -1
- package/lib/esm/widgets/status-icon-color.js +1 -0
- package/lib/esm/widgets/widget-layout.js +1 -1
- package/lib/types/scrolled-window-height.spec.d.ts +1 -0
- package/lib/types/widgets/adw-about-dialog.d.ts +36 -7
- package/lib/types/widgets/adw-action-row.d.ts +9 -0
- package/lib/types/widgets/adw-alert-dialog.d.ts +4 -0
- package/lib/types/widgets/adw-avatar.d.ts +4 -0
- package/lib/types/widgets/adw-banner.d.ts +4 -0
- package/lib/types/widgets/adw-bottom-sheet.d.ts +4 -0
- package/lib/types/widgets/adw-bundled-icons.d.ts +7 -0
- package/lib/types/widgets/adw-button-content.d.ts +4 -0
- package/lib/types/widgets/adw-carousel.d.ts +4 -0
- package/lib/types/widgets/adw-clamp.d.ts +4 -0
- package/lib/types/widgets/adw-data-grid.d.ts +4 -0
- package/lib/types/widgets/adw-header-bar.d.ts +4 -0
- package/lib/types/widgets/adw-image-button.d.ts +4 -0
- package/lib/types/widgets/adw-navigation-page.d.ts +4 -0
- package/lib/types/widgets/adw-navigation-view.d.ts +4 -0
- package/lib/types/widgets/adw-preferences-group.d.ts +4 -0
- package/lib/types/widgets/adw-preferences-page.d.ts +4 -0
- package/lib/types/widgets/adw-shortcut-label.d.ts +4 -0
- package/lib/types/widgets/adw-sidebar.d.ts +4 -0
- package/lib/types/widgets/adw-slider-row.d.ts +4 -0
- package/lib/types/widgets/adw-spinner.d.ts +4 -0
- package/lib/types/widgets/adw-split-button.d.ts +4 -0
- package/lib/types/widgets/adw-status-page.d.ts +9 -0
- package/lib/types/widgets/adw-tab-view.d.ts +4 -0
- package/lib/types/widgets/adw-toast-overlay.d.ts +4 -0
- package/lib/types/widgets/adw-toggle-group.d.ts +4 -0
- package/lib/types/widgets/adw-toggle.d.ts +4 -0
- package/lib/types/widgets/adw-toolbar-view.d.ts +4 -0
- package/lib/types/widgets/adw-view-stack.d.ts +4 -0
- package/lib/types/widgets/adw-view-switcher-bar.d.ts +4 -0
- package/lib/types/widgets/adw-window-title.d.ts +4 -0
- package/lib/types/widgets/adw-wrap-box.d.ts +4 -0
- package/lib/types/widgets/carousel-indicator-base.d.ts +4 -0
- package/lib/types/widgets/gtk-action-bar.d.ts +4 -0
- package/lib/types/widgets/gtk-button.d.ts +4 -0
- package/lib/types/widgets/gtk-drop-down.d.ts +4 -0
- package/lib/types/widgets/gtk-entry.d.ts +4 -0
- package/lib/types/widgets/gtk-image.d.ts +4 -0
- package/lib/types/widgets/gtk-label.d.ts +4 -0
- package/lib/types/widgets/gtk-popover-menu.d.ts +4 -0
- package/lib/types/widgets/gtk-scrolled-window.d.ts +3 -0
- package/lib/types/widgets/gtk-stack.d.ts +4 -0
- package/lib/types/widgets/gtk-text-view.d.ts +4 -0
- package/lib/types/widgets/signals.d.ts +4 -0
- package/lib/types/widgets/split-view-base.d.ts +4 -0
- package/lib/types/widgets/stack-page.d.ts +4 -0
- package/lib/types/widgets/status-icon-color.d.ts +13 -0
- package/lib/types/widgets/status-icon-color.spec.d.ts +2 -0
- package/lib/types/widgets/styled-layout-base.d.ts +4 -0
- package/lib/types/widgets/view-stack-page.d.ts +4 -0
- package/lib/types/widgets/view-switcher-base.d.ts +4 -0
- package/lib/types/widgets/widget-layout.d.ts +8 -0
- package/package.json +13 -13
- package/src/theme/adwaita.css +28 -17
package/lib/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./_virtual/_rolldown/runtime.js";import{AdwBreakpoint as ee,addBreakpoints as te,evaluateBreakpointCondition as ne,observeViewSize as e,observeWindowSize as t,parseBreakpointCondition as n}from"./widgets/breakpoint.js";import{ENGINE_TARGET as r}from"./engine-target.js";import{GTK_ALIGN as i}from"./widgets/gtk-align.js";import{DEFAULT_ICON_PIXEL_SIZE as a,GTK_ICON_SIZE_NICKS as o,GTK_ICON_SIZE_PIXELS as s,PIXEL_SIZE_UNSET as c,isGtkIconSizeNick as l}from"./widgets/gtk-icon-size.js";import{applyConstructProps as u,nsAlignment as d}from"./widgets/construct-props.js";import{activateWidgetAction as f,findActionGroup as p,insertActionGroup as m}from"./widgets/actions.js";import{NOTIFY_HEXPAND as h,NOTIFY_VEXPAND as g,withGtkWidgetLayout as _}from"./widgets/widget-layout.js";import{ADWAITA_NS_ACCENT_RULES as v,adwaitaNsAccentColor as y,adwaitaNsAccentCss as b}from"./widgets/accent-theme.js";import{adwaitaColorScheme as x,isThemeIconColor as S,onAdwaitaColorSchemeChanged as C,setAdwaitaColorScheme as w,themeIconColor as T,toggleAdwaitaColorScheme as E}from"./widgets/color-scheme.js";import{ADWAITA_ICON_GRID as D,DEFAULT_ICON_COLOR as O,DEFAULT_ICON_COLOR_DARK as k,extractIconPaths as A,extractPathData as j}from"./widgets/icon-path.js";import{ICON_FALLBACK_NAME as M,compiledIconNames as N,iconValueKind as P,isIconAvailable as F,resolveIconSource as I}from"./widgets/icon-theme.js";import{renderSymbolicIcon as L}from"./widgets/icons.js";import{DEFAULT_GTK_IMAGE_SIZE as R}from"./widgets/gtk-image.js";import{CLOSED as z}from"./widgets/adw-about-dialog.js";import{ACTIVATED as B}from"./widgets/adw-action-row.js";import{AdwAlertResponses as V}from"./widgets/adw-alert-dialog.js";import{NOTIFY_OPEN as H}from"./widgets/bottom-sheet-state.js";import{attachRowPressFeedback as U}from"./widgets/row-press.js";import{bottomSheetPanel as W}from"./widgets/adw-bottom-sheet.js";import{avatarInitials as G}from"./widgets/avatar-color.js";import{AVATAR_DEFAULT_ICON as K}from"./widgets/avatar-view.js";import{DEFAULT_AVATAR_SIZE as q}from"./widgets/adw-avatar.js";import{DEFAULT_CLAMP_MAX_SIZE as J,DEFAULT_SPINNER_SIZE as Y}from"./widgets/chrome.js";import{BUTTON_CLICKED as X}from"./widgets/adw-banner.js";import{DEFAULT_CAROUSEL_PAGE_WIDTH as Z}from"./widgets/carousel-state.js";import{NOTIFY_POSITION as re}from"./widgets/adw-carousel.js";import{ComboState as ie,NOTIFY_SELECTED as ae}from"./widgets/adw-combo-row.js";import{ADW_DIALOG_CLOSED as oe,ADW_DIALOG_CLOSE_ATTEMPT as se}from"./widgets/adw-dialog.js";import{AdwImageButton as ce,DEFAULT_ICON_BUTTON_ICON_SIZE as le}from"./widgets/adw-image-button.js";import{NOTIFY_ACTIVATES_DEFAULT as ue,NOTIFY_EDITABLE as de,NOTIFY_MAX_LENGTH as fe,NOTIFY_SHOW_APPLY_BUTTON as pe,NOTIFY_TEXT as me,NOTIFY_TEXT_LENGTH as he,SIGNAL_APPLY as ge,SIGNAL_ENTRY_ACTIVATED as _e}from"./widgets/adw-entry-row.js";import{NOTIFY_ENABLE_EXPANSION as ve,NOTIFY_EXPANDED as ye,NOTIFY_SHOW_ENABLE_SWITCH as be,NS_EXPANDER_ARROW_DISABLED_OPACITY as xe}from"./widgets/adw-expander-row.js";import{NOTIFY_VISIBLE_CHILD as Se}from"./widgets/adw-view-stack.js";import{AdwViewSwitcherBase as Ce,NOTIFY_SELECTED as we}from"./widgets/view-switcher-base.js";import{NsNavigationSplitViewState as Te,NsOverlaySplitViewState as Ee,splitViewColumns as De}from"./widgets/split-view-state.js";import{AdwSplitViewBase as Oe,NOTIFY_SHOW_SIDEBAR as ke}from"./widgets/split-view-base.js";import{NOTIFY_VISIBLE_PAGE as Ae}from"./widgets/navigation-stack.js";import{CLOSED as je}from"./widgets/adw-preferences-dialog.js";import{SHORTCUT_LABEL_CAP_TEXT_CLASS as Me,SHORTCUT_LABEL_CLASS as Ne,SHORTCUT_LABEL_DIMMED_CLASS as Pe,SHORTCUT_LABEL_DISABLED_CLASS as Fe,SHORTCUT_LABEL_KEYCAP_CLASS as Ie,SHORTCUT_LABEL_KEYS_CLASS as Le,SHORTCUT_LABEL_SIDE_CLASS as Re,SHORTCUT_LABEL_SPACED_CLASS as ze,shortcutLabelDirection as Be,shortcutLabelPlatform as Ve,shortcutLabelRenderPlan as He}from"./widgets/shortcut-label.js";import{NOTIFY_SELECTED as Ue}from"./widgets/adw-sidebar.js";import{NOTIFY_VALUE as Q,SpinState as We}from"./widgets/adw-spin-row.js";import{MENU_TAPPED as Ge}from"./widgets/adw-split-button.js";import{NOTIFY_ACTIVE as Ke}from"./widgets/adw-switch-row.js";import{AdwToast as qe,AdwToastQueue as Je,DEFAULT_TOAST_TIMEOUT as Ye}from"./widgets/adw-toast-overlay.js";import{NOTIFY_SELECTED as Xe,ToggleGroupState as Ze}from"./widgets/adw-toggle-group.js";import{applyAdwaitaNsAccent as Qe,clearAdwaitaNsAccent as $e}from"./widgets/adw-accent.js";import{adw_exports as et}from"./namespace/adw.js";import{DEFAULT_BOX_SPACING as tt,boxChildTrack as nt,boxSpacingChanges as rt,boxTrackPlan as it,normalizeBoxSpacing as at}from"./widgets/box-layout.js";import{buttonSlotAfterWrite as ot,buttonSlotDetaches as st}from"./widgets/button-slot.js";import{GTK_BUTTON_CLICKED as ct,GTK_BUTTON_LABEL_CLASS as lt}from"./widgets/gtk-button.js";import{NOTIFY_SELECTED as ut}from"./widgets/gtk-drop-down.js";import{GTK_CHECK_BUTTON_ACTIVATE as dt,GTK_CHECK_BUTTON_CHECKED_CLASS as ft,GTK_CHECK_BUTTON_INCONSISTENT_CLASS as pt,GTK_CHECK_BUTTON_TOGGLED as mt,NOTIFY_CHECK_ACTIVE as ht,NOTIFY_CHECK_INCONSISTENT as gt,NOTIFY_CHECK_LABEL as _t,NOTIFY_CHECK_USE_UNDERLINE as vt}from"./widgets/gtk-check-button.js";import{DRAWING_AREA_REFUSAL as yt}from"./widgets/gtk-drawing-area.js";import{ACTIVATE as bt,CHANGED as xt,NOTIFY_EDITABLE as St,NOTIFY_MAX_LENGTH as Ct,NOTIFY_PLACEHOLDER_TEXT as wt,NOTIFY_TEXT as Tt,NOTIFY_TEXT_LENGTH as Et}from"./widgets/gtk-entry.js";import{LIST_BOX_ROW_ACTIVATED as Dt,LIST_BOX_ROW_SELECTED as Ot}from"./widgets/gtk-list-box.js";import{MENU_ITEM_ACTIVATED as kt}from"./widgets/gtk-menu-button.js";import{NOTIFY_REVEAL_CHILD as At}from"./widgets/gtk-revealer.js";import{NOTIFY_STACK_VISIBLE_CHILD as jt,NOTIFY_STACK_VISIBLE_CHILD_NAME as Mt}from"./widgets/gtk-stack.js";import{GTK_WRAP_MODES as Nt,NOTIFY_TEXT_VIEW_TEXT as Pt}from"./widgets/gtk-text-view.js";import{GTK_TOGGLE_BUTTON_CHECKED_CLASS as Ft,GTK_TOGGLE_BUTTON_TOGGLED as It,NOTIFY_TOGGLE_ACTIVE as Lt}from"./widgets/gtk-toggle-button.js";import{gtk_exports as Rt}from"./namespace/gtk.js";import{ADWAITA_SANS_FONT_FAMILY as zt,ADWAITA_SANS_TTF_FILES as Bt,adwaitaFontInstallInstructions as Vt,hasAdwaitaSans as Ht}from"./fonts.js";import{AdwSliderRow as Ut,NOTIFY_SLIDER_VALUE as Wt}from"./widgets/adw-slider-row.js";import{DATA_GRID_HEADER_CELL_CLASS as Gt,DATA_GRID_HEADER_ROW_CLASS as Kt,DATA_GRID_SECTION_CELL_CLASS as qt,dataGridCellClass as Jt,dataGridItemSpec as Yt,dataGridRowClass as Xt,dataGridShapeKey as Zt,dataGridTracksKey as Qt,parseDataGridWidth as $t}from"./widgets/data-grid-model.js";import{AdwDataGrid as en,ROW_ACTIVATED as tn}from"./widgets/adw-data-grid.js";import{padForSystemInsets as nn,padSheetForSystemInsets as rn}from"./widgets/system-insets.js";import{labelDisplayText as an,labelMarkupIsUnparseable as on,registerAdwaitaElements as $}from"./widgets/index.js";import{gio_exports as sn}from"./namespace/gio.js";import{gdk_exports as cn}from"./namespace/gdk.js";import{graphene_exports as ln}from"./namespace/graphene.js";import{glib_exports as un}from"./namespace/glib.js";import{buildMenu as dn,menuTree as fn,watchMenuModel as pn}from"@gjsify/adwaita-core";import{assertNativeScript as mn,assertNativeScript as hn,isAndroid as gn,isIOS as _n,isNativeScript as vn}from"@gjsify/native-platform";function registerAdwaita(){hn(),$()}export{z as ABOUT_CLOSED,B as ACTIVATED,D as ADWAITA_ICON_GRID,v as ADWAITA_NS_ACCENT_RULES,zt as ADWAITA_SANS_FONT_FAMILY,Bt as ADWAITA_SANS_TTF_FILES,oe as ADW_DIALOG_CLOSED,se as ADW_DIALOG_CLOSE_ATTEMPT,K as AVATAR_DEFAULT_ICON,et as Adw,V as AdwAlertResponses,ee as AdwBreakpoint,en as AdwDataGrid,ce as AdwImageButton,Ut as AdwSliderRow,Oe as AdwSplitViewBase,qe as AdwToast,Je as AdwToastQueue,Ce as AdwViewSwitcherBase,X as BUTTON_CLICKED,ie as ComboState,Gt as DATA_GRID_HEADER_CELL_CLASS,Kt as DATA_GRID_HEADER_ROW_CLASS,qt as DATA_GRID_SECTION_CELL_CLASS,q as DEFAULT_AVATAR_SIZE,tt as DEFAULT_BOX_SPACING,Z as DEFAULT_CAROUSEL_PAGE_WIDTH,J as DEFAULT_CLAMP_MAX_SIZE,R as DEFAULT_GTK_IMAGE_SIZE,le as DEFAULT_ICON_BUTTON_ICON_SIZE,O as DEFAULT_ICON_COLOR,k as DEFAULT_ICON_COLOR_DARK,a as DEFAULT_ICON_PIXEL_SIZE,Y as DEFAULT_SPINNER_SIZE,Ye as DEFAULT_TOAST_TIMEOUT,yt as DRAWING_AREA_REFUSAL,r as ENGINE_TARGET,bt as ENTRY_ACTIVATE,xt as ENTRY_CHANGED,un as GLib,i as GTK_ALIGN,ct as GTK_BUTTON_CLICKED,lt as GTK_BUTTON_LABEL_CLASS,dt as GTK_CHECK_BUTTON_ACTIVATE,ft as GTK_CHECK_BUTTON_CHECKED_CLASS,pt as GTK_CHECK_BUTTON_INCONSISTENT_CLASS,mt as GTK_CHECK_BUTTON_TOGGLED,o as GTK_ICON_SIZE_NICKS,s as GTK_ICON_SIZE_PIXELS,Ft as GTK_TOGGLE_BUTTON_CHECKED_CLASS,It as GTK_TOGGLE_BUTTON_TOGGLED,Nt as GTK_WRAP_MODES,cn as Gdk,sn as Gio,ln as Graphene,Rt as Gtk,M as ICON_FALLBACK_NAME,Dt as LIST_BOX_ROW_ACTIVATED,Ot as LIST_BOX_ROW_SELECTED,kt as MENU_ITEM_ACTIVATED,Ge as MENU_TAPPED,ue as NOTIFY_ACTIVATES_DEFAULT,Ke as NOTIFY_ACTIVE,ht as NOTIFY_CHECK_ACTIVE,gt as NOTIFY_CHECK_INCONSISTENT,_t as NOTIFY_CHECK_LABEL,vt as NOTIFY_CHECK_USE_UNDERLINE,ut as NOTIFY_DROP_DOWN_SELECTED,de as NOTIFY_EDITABLE,ve as NOTIFY_ENABLE_EXPANSION,St as NOTIFY_ENTRY_EDITABLE,Ct as NOTIFY_ENTRY_MAX_LENGTH,Tt as NOTIFY_ENTRY_TEXT,Et as NOTIFY_ENTRY_TEXT_LENGTH,ye as NOTIFY_EXPANDED,h as NOTIFY_HEXPAND,fe as NOTIFY_MAX_LENGTH,H as NOTIFY_OPEN,wt as NOTIFY_PLACEHOLDER_TEXT,re as NOTIFY_POSITION,At as NOTIFY_REVEAL_CHILD,ae as NOTIFY_SELECTED,pe as NOTIFY_SHOW_APPLY_BUTTON,be as NOTIFY_SHOW_ENABLE_SWITCH,ke as NOTIFY_SHOW_SIDEBAR,Ue as NOTIFY_SIDEBAR_SELECTED,Wt as NOTIFY_SLIDER_VALUE,jt as NOTIFY_STACK_VISIBLE_CHILD,Mt as NOTIFY_STACK_VISIBLE_CHILD_NAME,me as NOTIFY_TEXT,he as NOTIFY_TEXT_LENGTH,Pt as NOTIFY_TEXT_VIEW_TEXT,Lt as NOTIFY_TOGGLE_ACTIVE,Xe as NOTIFY_TOGGLE_SELECTED,Q as NOTIFY_VALUE,g as NOTIFY_VEXPAND,we as NOTIFY_VIEW_SELECTED,Se as NOTIFY_VISIBLE_CHILD,Ae as NOTIFY_VISIBLE_PAGE,xe as NS_EXPANDER_ARROW_DISABLED_OPACITY,Te as NsNavigationSplitViewState,Ee as NsOverlaySplitViewState,c as PIXEL_SIZE_UNSET,je as PREFERENCES_CLOSED,tn as ROW_ACTIVATED,Me as SHORTCUT_LABEL_CAP_TEXT_CLASS,Ne as SHORTCUT_LABEL_CLASS,Pe as SHORTCUT_LABEL_DIMMED_CLASS,Fe as SHORTCUT_LABEL_DISABLED_CLASS,Ie as SHORTCUT_LABEL_KEYCAP_CLASS,Le as SHORTCUT_LABEL_KEYS_CLASS,Re as SHORTCUT_LABEL_SIDE_CLASS,ze as SHORTCUT_LABEL_SPACED_CLASS,ge as SIGNAL_APPLY,_e as SIGNAL_ENTRY_ACTIVATED,We as SpinState,Ze as ToggleGroupState,f as activateWidgetAction,te as addBreakpoints,x as adwaitaColorScheme,Vt as adwaitaFontInstallInstructions,y as adwaitaNsAccentColor,b as adwaitaNsAccentCss,Qe as applyAdwaitaNsAccent,u as applyConstructProps,mn as assertNativeScript,U as attachRowPressFeedback,G as avatarInitials,W as bottomSheetPanel,nt as boxChildTrack,rt as boxSpacingChanges,it as boxTrackPlan,dn as buildMenu,ot as buttonSlotAfterWrite,st as buttonSlotDetaches,$e as clearAdwaitaNsAccent,N as compiledIconNames,Jt as dataGridCellClass,Yt as dataGridItemSpec,Xt as dataGridRowClass,Zt as dataGridShapeKey,Qt as dataGridTracksKey,ne as evaluateBreakpointCondition,A as extractIconPaths,j as extractPathData,p as findActionGroup,Ht as hasAdwaitaSans,P as iconValueKind,m as insertActionGroup,gn as isAndroid,l as isGtkIconSizeNick,_n as isIOS,F as isIconAvailable,vn as isNativeScript,S as isThemeIconColor,an as labelDisplayText,on as labelMarkupIsUnparseable,fn as menuTree,at as normalizeBoxSpacing,d as nsAlignment,e as observeViewSize,t as observeWindowSize,C as onAdwaitaColorSchemeChanged,nn as padForSystemInsets,rn as padSheetForSystemInsets,n as parseBreakpointCondition,$t as parseDataGridWidth,registerAdwaita,$ as registerAdwaitaElements,L as renderSymbolicIcon,I as resolveIconSource,w as setAdwaitaColorScheme,Be as shortcutLabelDirection,Ve as shortcutLabelPlatform,He as shortcutLabelRenderPlan,De as splitViewColumns,T as themeIconColor,E as toggleAdwaitaColorScheme,pn as watchMenuModel,_ 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{ADWAITA_NS_ACCENT_RULES as v,adwaitaNsAccentColor as y,adwaitaNsAccentCss as b}from"./widgets/accent-theme.js";import{adwaitaColorScheme as x,isThemeIconColor as S,onAdwaitaColorSchemeChanged as C,setAdwaitaColorScheme as w,themeIconColor as T,toggleAdwaitaColorScheme as E}from"./widgets/color-scheme.js";import{ADWAITA_ICON_GRID as D,DEFAULT_ICON_COLOR as O,DEFAULT_ICON_COLOR_DARK as k,extractIconPaths as A,extractPathData as j}from"./widgets/icon-path.js";import{ICON_FALLBACK_NAME as M,compiledIconNames as N,iconValueKind as P,isIconAvailable as F,resolveIconSource as I}from"./widgets/icon-theme.js";import{renderSymbolicIcon as L}from"./widgets/icons.js";import{DEFAULT_GTK_IMAGE_SIZE as R}from"./widgets/gtk-image.js";import{ACTIVATED as z}from"./widgets/adw-action-row.js";import{CLOSED as B}from"./widgets/adw-about-dialog.js";import{AdwAlertResponses as V}from"./widgets/adw-alert-dialog.js";import{NOTIFY_OPEN as H}from"./widgets/bottom-sheet-state.js";import{attachRowPressFeedback as U}from"./widgets/row-press.js";import{bottomSheetPanel as W}from"./widgets/adw-bottom-sheet.js";import{avatarInitials as G}from"./widgets/avatar-color.js";import{AVATAR_DEFAULT_ICON as K}from"./widgets/avatar-view.js";import{DEFAULT_AVATAR_SIZE as q}from"./widgets/adw-avatar.js";import{DEFAULT_CLAMP_MAX_SIZE as J,DEFAULT_SPINNER_SIZE as Y}from"./widgets/chrome.js";import{BUTTON_CLICKED as X}from"./widgets/adw-banner.js";import{DEFAULT_CAROUSEL_PAGE_WIDTH as Z}from"./widgets/carousel-state.js";import{NOTIFY_POSITION as re}from"./widgets/adw-carousel.js";import{ComboState as ie,NOTIFY_SELECTED as ae}from"./widgets/adw-combo-row.js";import{ADW_DIALOG_CLOSED as oe,ADW_DIALOG_CLOSE_ATTEMPT as se}from"./widgets/adw-dialog.js";import{AdwImageButton as ce,DEFAULT_ICON_BUTTON_ICON_SIZE as le}from"./widgets/adw-image-button.js";import{NOTIFY_ACTIVATES_DEFAULT as ue,NOTIFY_EDITABLE as de,NOTIFY_MAX_LENGTH as fe,NOTIFY_SHOW_APPLY_BUTTON as pe,NOTIFY_TEXT as me,NOTIFY_TEXT_LENGTH as he,SIGNAL_APPLY as ge,SIGNAL_ENTRY_ACTIVATED as _e}from"./widgets/adw-entry-row.js";import{NOTIFY_ENABLE_EXPANSION as ve,NOTIFY_EXPANDED as ye,NOTIFY_SHOW_ENABLE_SWITCH as be,NS_EXPANDER_ARROW_DISABLED_OPACITY as xe}from"./widgets/adw-expander-row.js";import{NOTIFY_VISIBLE_CHILD as Se}from"./widgets/adw-view-stack.js";import{AdwViewSwitcherBase as Ce,NOTIFY_SELECTED as we}from"./widgets/view-switcher-base.js";import{NsNavigationSplitViewState as Te,NsOverlaySplitViewState as Ee,splitViewColumns as De}from"./widgets/split-view-state.js";import{AdwSplitViewBase as Oe,NOTIFY_SHOW_SIDEBAR as ke}from"./widgets/split-view-base.js";import{NOTIFY_VISIBLE_PAGE as Ae}from"./widgets/navigation-stack.js";import{CLOSED as je}from"./widgets/adw-preferences-dialog.js";import{SHORTCUT_LABEL_CAP_TEXT_CLASS as Me,SHORTCUT_LABEL_CLASS as Ne,SHORTCUT_LABEL_DIMMED_CLASS as Pe,SHORTCUT_LABEL_DISABLED_CLASS as Fe,SHORTCUT_LABEL_KEYCAP_CLASS as Ie,SHORTCUT_LABEL_KEYS_CLASS as Le,SHORTCUT_LABEL_SIDE_CLASS as Re,SHORTCUT_LABEL_SPACED_CLASS as ze,shortcutLabelDirection as Be,shortcutLabelPlatform as Ve,shortcutLabelRenderPlan as He}from"./widgets/shortcut-label.js";import{NOTIFY_SELECTED as Ue}from"./widgets/adw-sidebar.js";import{NOTIFY_VALUE as Q,SpinState as We}from"./widgets/adw-spin-row.js";import{MENU_TAPPED as Ge}from"./widgets/adw-split-button.js";import{NOTIFY_ACTIVE as Ke}from"./widgets/adw-switch-row.js";import{AdwToast as qe,AdwToastQueue as Je,DEFAULT_TOAST_TIMEOUT as Ye}from"./widgets/adw-toast-overlay.js";import{NOTIFY_SELECTED as Xe,ToggleGroupState as Ze}from"./widgets/adw-toggle-group.js";import{applyAdwaitaNsAccent as Qe,clearAdwaitaNsAccent as $e}from"./widgets/adw-accent.js";import{adw_exports as et}from"./namespace/adw.js";import{DEFAULT_BOX_SPACING as tt,boxChildTrack as nt,boxSpacingChanges as rt,boxTrackPlan as it,normalizeBoxSpacing as at}from"./widgets/box-layout.js";import{buttonSlotAfterWrite as ot,buttonSlotDetaches as st}from"./widgets/button-slot.js";import{GTK_BUTTON_CLICKED as ct,GTK_BUTTON_LABEL_CLASS as lt}from"./widgets/gtk-button.js";import{NOTIFY_SELECTED as ut}from"./widgets/gtk-drop-down.js";import{GTK_CHECK_BUTTON_ACTIVATE as dt,GTK_CHECK_BUTTON_CHECKED_CLASS as ft,GTK_CHECK_BUTTON_INCONSISTENT_CLASS as pt,GTK_CHECK_BUTTON_TOGGLED as mt,NOTIFY_CHECK_ACTIVE as ht,NOTIFY_CHECK_INCONSISTENT as gt,NOTIFY_CHECK_LABEL as _t,NOTIFY_CHECK_USE_UNDERLINE as vt}from"./widgets/gtk-check-button.js";import{DRAWING_AREA_REFUSAL as yt}from"./widgets/gtk-drawing-area.js";import{ACTIVATE as bt,CHANGED as xt,NOTIFY_EDITABLE as St,NOTIFY_MAX_LENGTH as Ct,NOTIFY_PLACEHOLDER_TEXT as wt,NOTIFY_TEXT as Tt,NOTIFY_TEXT_LENGTH as Et}from"./widgets/gtk-entry.js";import{LIST_BOX_ROW_ACTIVATED as Dt,LIST_BOX_ROW_SELECTED as Ot}from"./widgets/gtk-list-box.js";import{MENU_ITEM_ACTIVATED as kt}from"./widgets/gtk-menu-button.js";import{NOTIFY_REVEAL_CHILD as At}from"./widgets/gtk-revealer.js";import{NOTIFY_STACK_VISIBLE_CHILD as jt,NOTIFY_STACK_VISIBLE_CHILD_NAME as Mt}from"./widgets/gtk-stack.js";import{GTK_WRAP_MODES as Nt,NOTIFY_TEXT_VIEW_TEXT as Pt}from"./widgets/gtk-text-view.js";import{GTK_TOGGLE_BUTTON_CHECKED_CLASS as Ft,GTK_TOGGLE_BUTTON_TOGGLED as It,NOTIFY_TOGGLE_ACTIVE as Lt}from"./widgets/gtk-toggle-button.js";import{gtk_exports as Rt}from"./namespace/gtk.js";import{ADWAITA_SANS_FONT_FAMILY as zt,ADWAITA_SANS_TTF_FILES as Bt,adwaitaFontInstallInstructions as Vt,hasAdwaitaSans as Ht}from"./fonts.js";import{AdwSliderRow as Ut,NOTIFY_SLIDER_VALUE as Wt}from"./widgets/adw-slider-row.js";import{DATA_GRID_HEADER_CELL_CLASS as Gt,DATA_GRID_HEADER_ROW_CLASS as Kt,DATA_GRID_SECTION_CELL_CLASS as qt,dataGridCellClass as Jt,dataGridItemSpec as Yt,dataGridRowClass as Xt,dataGridShapeKey as Zt,dataGridTracksKey as Qt,parseDataGridWidth as $t}from"./widgets/data-grid-model.js";import{AdwDataGrid as en,ROW_ACTIVATED as tn}from"./widgets/adw-data-grid.js";import{padForSystemInsets as nn,padSheetForSystemInsets as rn}from"./widgets/system-insets.js";import{labelDisplayText as an,labelMarkupIsUnparseable as on,registerAdwaitaElements as $}from"./widgets/index.js";import{gio_exports as sn}from"./namespace/gio.js";import{gdk_exports as cn}from"./namespace/gdk.js";import{graphene_exports as ln}from"./namespace/graphene.js";import{glib_exports as un}from"./namespace/glib.js";import{buildMenu as dn,menuTree as fn,watchMenuModel as pn}from"@gjsify/adwaita-core";import{assertNativeScript as mn,assertNativeScript as hn,isAndroid as gn,isIOS as _n,isNativeScript as vn}from"@gjsify/native-platform";function registerAdwaita(){hn(),$()}export{B as ABOUT_CLOSED,z as ACTIVATED,D as ADWAITA_ICON_GRID,v as ADWAITA_NS_ACCENT_RULES,zt as ADWAITA_SANS_FONT_FAMILY,Bt as ADWAITA_SANS_TTF_FILES,oe as ADW_DIALOG_CLOSED,se as ADW_DIALOG_CLOSE_ATTEMPT,K as AVATAR_DEFAULT_ICON,et as Adw,V as AdwAlertResponses,ee as AdwBreakpoint,en as AdwDataGrid,ce as AdwImageButton,Ut as AdwSliderRow,Oe as AdwSplitViewBase,qe as AdwToast,Je as AdwToastQueue,Ce as AdwViewSwitcherBase,X as BUTTON_CLICKED,ie as ComboState,Gt as DATA_GRID_HEADER_CELL_CLASS,Kt as DATA_GRID_HEADER_ROW_CLASS,qt as DATA_GRID_SECTION_CELL_CLASS,q as DEFAULT_AVATAR_SIZE,tt as DEFAULT_BOX_SPACING,Z as DEFAULT_CAROUSEL_PAGE_WIDTH,J as DEFAULT_CLAMP_MAX_SIZE,R as DEFAULT_GTK_IMAGE_SIZE,le as DEFAULT_ICON_BUTTON_ICON_SIZE,O as DEFAULT_ICON_COLOR,k as DEFAULT_ICON_COLOR_DARK,a as DEFAULT_ICON_PIXEL_SIZE,Y as DEFAULT_SPINNER_SIZE,Ye as DEFAULT_TOAST_TIMEOUT,yt as DRAWING_AREA_REFUSAL,r as ENGINE_TARGET,bt as ENTRY_ACTIVATE,xt as ENTRY_CHANGED,un as GLib,i as GTK_ALIGN,ct as GTK_BUTTON_CLICKED,lt as GTK_BUTTON_LABEL_CLASS,dt as GTK_CHECK_BUTTON_ACTIVATE,ft as GTK_CHECK_BUTTON_CHECKED_CLASS,pt as GTK_CHECK_BUTTON_INCONSISTENT_CLASS,mt as GTK_CHECK_BUTTON_TOGGLED,o as GTK_ICON_SIZE_NICKS,s as GTK_ICON_SIZE_PIXELS,Ft as GTK_TOGGLE_BUTTON_CHECKED_CLASS,It as GTK_TOGGLE_BUTTON_TOGGLED,Nt as GTK_WRAP_MODES,cn as Gdk,sn as Gio,ln as Graphene,Rt as Gtk,M as ICON_FALLBACK_NAME,Dt as LIST_BOX_ROW_ACTIVATED,Ot as LIST_BOX_ROW_SELECTED,kt as MENU_ITEM_ACTIVATED,Ge as MENU_TAPPED,ue as NOTIFY_ACTIVATES_DEFAULT,Ke as NOTIFY_ACTIVE,ht as NOTIFY_CHECK_ACTIVE,gt as NOTIFY_CHECK_INCONSISTENT,_t as NOTIFY_CHECK_LABEL,vt as NOTIFY_CHECK_USE_UNDERLINE,ut as NOTIFY_DROP_DOWN_SELECTED,de as NOTIFY_EDITABLE,ve as NOTIFY_ENABLE_EXPANSION,St as NOTIFY_ENTRY_EDITABLE,Ct as NOTIFY_ENTRY_MAX_LENGTH,Tt as NOTIFY_ENTRY_TEXT,Et as NOTIFY_ENTRY_TEXT_LENGTH,ye as NOTIFY_EXPANDED,h as NOTIFY_HEXPAND,fe as NOTIFY_MAX_LENGTH,H as NOTIFY_OPEN,wt as NOTIFY_PLACEHOLDER_TEXT,re as NOTIFY_POSITION,At as NOTIFY_REVEAL_CHILD,ae as NOTIFY_SELECTED,pe as NOTIFY_SHOW_APPLY_BUTTON,be as NOTIFY_SHOW_ENABLE_SWITCH,ke as NOTIFY_SHOW_SIDEBAR,Ue as NOTIFY_SIDEBAR_SELECTED,Wt as NOTIFY_SLIDER_VALUE,jt as NOTIFY_STACK_VISIBLE_CHILD,Mt as NOTIFY_STACK_VISIBLE_CHILD_NAME,me as NOTIFY_TEXT,he as NOTIFY_TEXT_LENGTH,Pt as NOTIFY_TEXT_VIEW_TEXT,Lt as NOTIFY_TOGGLE_ACTIVE,Xe as NOTIFY_TOGGLE_SELECTED,Q as NOTIFY_VALUE,g as NOTIFY_VEXPAND,we as NOTIFY_VIEW_SELECTED,Se as NOTIFY_VISIBLE_CHILD,Ae as NOTIFY_VISIBLE_PAGE,xe as NS_EXPANDER_ARROW_DISABLED_OPACITY,Te as NsNavigationSplitViewState,Ee as NsOverlaySplitViewState,c as PIXEL_SIZE_UNSET,je as PREFERENCES_CLOSED,tn as ROW_ACTIVATED,Me as SHORTCUT_LABEL_CAP_TEXT_CLASS,Ne as SHORTCUT_LABEL_CLASS,Pe as SHORTCUT_LABEL_DIMMED_CLASS,Fe as SHORTCUT_LABEL_DISABLED_CLASS,Ie as SHORTCUT_LABEL_KEYCAP_CLASS,Le as SHORTCUT_LABEL_KEYS_CLASS,Re as SHORTCUT_LABEL_SIDE_CLASS,ze as SHORTCUT_LABEL_SPACED_CLASS,ge as SIGNAL_APPLY,_e as SIGNAL_ENTRY_ACTIVATED,We as SpinState,Ze as ToggleGroupState,f as activateWidgetAction,te as addBreakpoints,x as adwaitaColorScheme,Vt as adwaitaFontInstallInstructions,y as adwaitaNsAccentColor,b as adwaitaNsAccentCss,Qe as applyAdwaitaNsAccent,u as applyConstructProps,mn as assertNativeScript,U as attachRowPressFeedback,G as avatarInitials,W as bottomSheetPanel,nt as boxChildTrack,rt as boxSpacingChanges,it as boxTrackPlan,dn as buildMenu,ot as buttonSlotAfterWrite,st as buttonSlotDetaches,$e as clearAdwaitaNsAccent,N as compiledIconNames,Jt as dataGridCellClass,Yt as dataGridItemSpec,Xt as dataGridRowClass,Zt as dataGridShapeKey,Qt as dataGridTracksKey,ne as evaluateBreakpointCondition,A as extractIconPaths,j as extractPathData,p as findActionGroup,Ht as hasAdwaitaSans,P as iconValueKind,m as insertActionGroup,gn as isAndroid,l as isGtkIconSizeNick,_n as isIOS,F as isIconAvailable,vn as isNativeScript,S as isThemeIconColor,an as labelDisplayText,on as labelMarkupIsUnparseable,fn as menuTree,at as normalizeBoxSpacing,d as nsAlignment,e as observeViewSize,t as observeWindowSize,C as onAdwaitaColorSchemeChanged,nn as padForSystemInsets,rn as padSheetForSystemInsets,n as parseBreakpointCondition,$t as parseDataGridWidth,registerAdwaita,$ as registerAdwaitaElements,L as renderSymbolicIcon,I as resolveIconSource,w as setAdwaitaColorScheme,Be as shortcutLabelDirection,Ve as shortcutLabelPlatform,He as shortcutLabelRenderPlan,De as splitViewColumns,T as themeIconColor,E as toggleAdwaitaColorScheme,pn as watchMenuModel,_ as withGtkWidgetLayout};
|
package/lib/esm/namespace/adw.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__exportAll as ee}from"../_virtual/_rolldown/runtime.js";import{
|
|
1
|
+
import{__exportAll as ee}from"../_virtual/_rolldown/runtime.js";import{AdwActionRow as e}from"../widgets/adw-action-row.js";import{AdwPreferencesGroup as t}from"../widgets/adw-preferences-group.js";import{AdwAboutDialog as n}from"../widgets/adw-about-dialog.js";import{AdwAlertDialog as r}from"../widgets/adw-alert-dialog.js";import{AdwBottomSheet as i}from"../widgets/adw-bottom-sheet.js";import{AdwApplication as a}from"../widgets/application.js";import{AdwApplicationWindow as o}from"../widgets/adw-application-window.js";import{AdwAvatar as s}from"../widgets/adw-avatar.js";import{AdwBanner as c}from"../widgets/adw-banner.js";import{AdwBin as l}from"../widgets/adw-bin.js";import{AdwButtonContent as u}from"../widgets/adw-button-content.js";import{AdwButtonRow as d}from"../widgets/adw-button-row.js";import{AdwCarousel as f}from"../widgets/adw-carousel.js";import{AdwCarouselIndicatorDots as p}from"../widgets/adw-carousel-indicator-dots.js";import{AdwCarouselIndicatorLines as m}from"../widgets/adw-carousel-indicator-lines.js";import{AdwClamp as h}from"../widgets/adw-clamp.js";import{AdwComboRow as g}from"../widgets/adw-combo-row.js";import{AdwDialog as _}from"../widgets/adw-dialog.js";import{AdwEntryRow as v}from"../widgets/adw-entry-row.js";import{AdwExpanderRow as y}from"../widgets/adw-expander-row.js";import{AdwWindowTitle as b}from"../widgets/adw-window-title.js";import{AdwHeaderBar as x}from"../widgets/adw-header-bar.js";import{AdwViewStackPage as S}from"../widgets/view-stack-page.js";import{AdwViewStack as C}from"../widgets/adw-view-stack.js";import{AdwInlineViewSwitcher as w}from"../widgets/adw-inline-view-switcher.js";import{AdwNavigationSplitView as T}from"../widgets/adw-navigation-split-view.js";import{AdwNavigationPage as E}from"../widgets/adw-navigation-page.js";import{AdwNavigationView as D}from"../widgets/adw-navigation-view.js";import{AdwOverlaySplitView as te}from"../widgets/adw-overlay-split-view.js";import{AdwPasswordEntryRow as O}from"../widgets/adw-password-entry-row.js";import{AdwPreferencesDialog as k}from"../widgets/adw-preferences-dialog.js";import{AdwPreferencesPage as A}from"../widgets/adw-preferences-page.js";import{AdwShortcutLabel as j}from"../widgets/adw-shortcut-label.js";import{AdwSidebarItem as M,AdwSidebarSection as N}from"../values/sidebar.js";import{AdwSidebar as P}from"../widgets/adw-sidebar.js";import{AdwSpinRow as F}from"../widgets/adw-spin-row.js";import{AdwSpinner as I}from"../widgets/adw-spinner.js";import{AdwSplitButton as L}from"../widgets/adw-split-button.js";import{AdwStatusPage as R}from"../widgets/adw-status-page.js";import{AdwSwitchRow as z}from"../widgets/adw-switch-row.js";import{AdwTabPage as B}from"../values/tab-page.js";import{AdwTabView as V}from"../widgets/adw-tab-view.js";import{AdwToastOverlay as H}from"../widgets/adw-toast-overlay.js";import{AdwToggle as U}from"../widgets/adw-toggle.js";import{AdwToggleGroup as W}from"../widgets/adw-toggle-group.js";import{AdwToolbarView as G}from"../widgets/adw-toolbar-view.js";import{AdwViewSwitcher as K}from"../widgets/adw-view-switcher.js";import{AdwViewSwitcherBar as q}from"../widgets/adw-view-switcher-bar.js";import{AdwWindow as J}from"../widgets/adw-window.js";import{AdwWrapBox as Y}from"../widgets/adw-wrap-box.js";import{AdwStyleManager as X}from"../widgets/style-manager.js";import"../widgets/style-manager-host.js";import{AccentColor as Z,ColorScheme as Q,Toast as $,ToastPriority as ne}from"@gjsify/adwaita-core";var re=ee({AboutDialog:()=>n,AccentColor:()=>Z,ActionRow:()=>e,AlertDialog:()=>r,Application:()=>a,ApplicationWindow:()=>o,Avatar:()=>s,Banner:()=>c,Bin:()=>l,BottomSheet:()=>i,ButtonContent:()=>u,ButtonRow:()=>d,Carousel:()=>f,CarouselIndicatorDots:()=>p,CarouselIndicatorLines:()=>m,Clamp:()=>h,ColorScheme:()=>Q,ComboRow:()=>g,Dialog:()=>_,EntryRow:()=>v,ExpanderRow:()=>y,HeaderBar:()=>x,InlineViewSwitcher:()=>w,NavigationPage:()=>E,NavigationSplitView:()=>T,NavigationView:()=>D,OverlaySplitView:()=>te,PasswordEntryRow:()=>O,PreferencesDialog:()=>k,PreferencesGroup:()=>t,PreferencesPage:()=>A,ShortcutLabel:()=>j,Sidebar:()=>P,SidebarItem:()=>M,SidebarSection:()=>N,SpinRow:()=>F,Spinner:()=>I,SplitButton:()=>L,StatusPage:()=>R,StyleManager:()=>X,SwitchRow:()=>z,TabPage:()=>B,TabView:()=>V,Toast:()=>$,ToastOverlay:()=>H,ToastPriority:()=>ne,Toggle:()=>U,ToggleGroup:()=>W,ToolbarView:()=>G,ViewStack:()=>C,ViewStackPage:()=>S,ViewSwitcher:()=>K,ViewSwitcherBar:()=>q,Window:()=>J,WindowTitle:()=>b,WrapBox:()=>Y});export{n as AboutDialog,Z as AccentColor,e as ActionRow,r as AlertDialog,a as Application,o as ApplicationWindow,s as Avatar,c as Banner,l as Bin,i as BottomSheet,u as ButtonContent,d as ButtonRow,f as Carousel,p as CarouselIndicatorDots,m as CarouselIndicatorLines,h as Clamp,Q as ColorScheme,g as ComboRow,_ as Dialog,v as EntryRow,y as ExpanderRow,x as HeaderBar,w as InlineViewSwitcher,E as NavigationPage,T as NavigationSplitView,D as NavigationView,te as OverlaySplitView,O as PasswordEntryRow,k as PreferencesDialog,t as PreferencesGroup,A as PreferencesPage,j as ShortcutLabel,P as Sidebar,M as SidebarItem,N as SidebarSection,F as SpinRow,I as Spinner,L as SplitButton,R as StatusPage,X as StyleManager,z as SwitchRow,B as TabPage,V as TabView,$ as Toast,H as ToastOverlay,ne as ToastPriority,U as Toggle,W as ToggleGroup,G as ToolbarView,C as ViewStack,S as ViewStackPage,K as ViewSwitcher,q as ViewSwitcherBar,J as Window,b as WindowTitle,Y as WrapBox,re as adw_exports};
|
package/lib/esm/namespace/gtk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__exportAll as e}from"../_virtual/_rolldown/runtime.js";import{CssProvider as
|
|
1
|
+
import{__exportAll as e}from"../_virtual/_rolldown/runtime.js";import{GtkLabel as t}from"../widgets/gtk-label.js";import{CssProvider as n,EventControllerKey as r,IconTheme as i,Settings as a,StyleContext as o,show_uri as s}from"./gtk-platform.js";import{GtkImage as c}from"../widgets/gtk-image.js";import{GtkApplication as l}from"../widgets/application.js";import{GtkWindow as u}from"../widgets/gtk-window.js";import{ArrowType as d,License as f,PolicyType as p,TextDirection as m,TextExtendSelection as h,TextWindowType as g}from"../widgets/gtk-enums.js";import{GtkActionBar as _}from"../widgets/gtk-action-bar.js";import{GtkBox as v}from"../widgets/gtk-box.js";import{GtkButton as y}from"../widgets/gtk-button.js";import{GtkDropDown as b}from"../widgets/gtk-drop-down.js";import{GtkCheckButton as x}from"../widgets/gtk-check-button.js";import{GtkDrawingArea as S}from"../widgets/gtk-drawing-area.js";import{GtkEntry as C}from"../widgets/gtk-entry.js";import{GtkGrid as w}from"../widgets/gtk-grid.js";import{GtkFrame as T}from"../widgets/gtk-frame.js";import{GtkListBox as E}from"../widgets/gtk-list-box.js";import{GtkMenuButton as D}from"../widgets/gtk-menu-button.js";import{GtkPopoverMenu as O}from"../widgets/gtk-popover-menu.js";import{GtkOverlay as k}from"../widgets/gtk-overlay.js";import{GtkRevealer as A}from"../widgets/gtk-revealer.js";import{GtkScrolledWindow as j}from"../widgets/gtk-scrolled-window.js";import{GtkApplicationWindow as M}from"../widgets/gtk-application-window.js";import{GtkSeparator as N}from"../widgets/gtk-separator.js";import{GtkStackPage as P}from"../widgets/stack-page.js";import{GtkStack as F}from"../widgets/gtk-stack.js";import{GtkTextView as I}from"../widgets/gtk-text-view.js";import{GtkToggleButton as L}from"../widgets/gtk-toggle-button.js";import{ApplicationInhibitFlags as R,DialogError as z,GtkAdjustment as B,GtkFileDialog as V,GtkFileFilter as H,GtkStringList as U,GtkStringObject as W,STYLE_PROVIDER_PRIORITY_APPLICATION as G,STYLE_PROVIDER_PRIORITY_FALLBACK as K,STYLE_PROVIDER_PRIORITY_SETTINGS as q,STYLE_PROVIDER_PRIORITY_THEME as J,STYLE_PROVIDER_PRIORITY_USER as Y}from"@gjsify/adwaita-core";var X=e({ActionBar:()=>_,Adjustment:()=>B,Application:()=>l,ApplicationInhibitFlags:()=>R,ApplicationWindow:()=>M,ArrowType:()=>d,Box:()=>v,Button:()=>y,CheckButton:()=>x,CssProvider:()=>n,DialogError:()=>z,DrawingArea:()=>S,DropDown:()=>b,Entry:()=>C,EventControllerKey:()=>r,FileDialog:()=>V,FileFilter:()=>H,Frame:()=>T,Grid:()=>w,IconTheme:()=>i,Image:()=>c,Label:()=>t,License:()=>f,ListBox:()=>E,MenuButton:()=>D,Overlay:()=>k,PolicyType:()=>p,PopoverMenu:()=>O,Revealer:()=>A,STYLE_PROVIDER_PRIORITY_APPLICATION:()=>G,STYLE_PROVIDER_PRIORITY_FALLBACK:()=>K,STYLE_PROVIDER_PRIORITY_SETTINGS:()=>q,STYLE_PROVIDER_PRIORITY_THEME:()=>J,STYLE_PROVIDER_PRIORITY_USER:()=>Y,ScrolledWindow:()=>j,Separator:()=>N,Settings:()=>a,Stack:()=>F,StackPage:()=>P,StringList:()=>U,StringObject:()=>W,StyleContext:()=>o,TextDirection:()=>m,TextExtendSelection:()=>h,TextView:()=>I,TextWindowType:()=>g,ToggleButton:()=>L,Window:()=>u,show_uri:()=>s});export{_ as ActionBar,B as Adjustment,l as Application,R as ApplicationInhibitFlags,M as ApplicationWindow,d as ArrowType,v as Box,y as Button,x as CheckButton,n as CssProvider,z as DialogError,S as DrawingArea,b as DropDown,C as Entry,r as EventControllerKey,V as FileDialog,H as FileFilter,T as Frame,w as Grid,i as IconTheme,c as Image,t as Label,f as License,E as ListBox,D as MenuButton,k as Overlay,p as PolicyType,O as PopoverMenu,A as Revealer,G as STYLE_PROVIDER_PRIORITY_APPLICATION,K as STYLE_PROVIDER_PRIORITY_FALLBACK,q as STYLE_PROVIDER_PRIORITY_SETTINGS,J as STYLE_PROVIDER_PRIORITY_THEME,Y as STYLE_PROVIDER_PRIORITY_USER,j as ScrolledWindow,N as Separator,a as Settings,F as Stack,P as StackPage,U as StringList,W as StringObject,o as StyleContext,m as TextDirection,h as TextExtendSelection,I as TextView,g as TextWindowType,L as ToggleButton,u as Window,X as gtk_exports,s as show_uri};
|
package/lib/esm/platform-host.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./_virtual/_rolldown/runtime.js";import{provideIdSelector as e}from"./name-selector.js";import{createNamedColorsPublisher as
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";import{provideIdSelector as e}from"./name-selector.js";import{publishWindowFg as t}from"./widgets/status-icon-color.js";import{createNamedColorsPublisher as n,parseAdwaitaRootColors as r}from"./widgets/named-colors-theme.js";import{listenPlatformKeys as i,openPlatformUri as a}from"./platform-source.js";import{Application as o,CSSHelper as s}from"@nativescript/core";import{cssPxToDip as c}from"@gjsify/adwaita-core/css-length";e(()=>s.createSelector(`#x`).constructor);const l=new Map,u=n(),d={setStyles(e){let n=!1;for(let{owner:t,css:r}of e)l.get(t)!==r&&(l.set(t,r),r&&(o.addCss(c(r)),n=!0));let i=new Map;for(let{css:t}of e)for(let[e,n]of r(t))i.set(e,n);t(i.get(`window-fg-color`)??null);let a=u.update(i,n);a&&o.addCss(a)},openUri:e=>a(e),fontName:()=>null,listenKeys:(e,t)=>i(e,(e,n,r,i)=>t({key:e,keycode:n,state:r,pressed:i}))};export{d as nativePlatformHost};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{adwaitaAccentBgColor as e,adwaitaStandaloneColor as t,formatAdwRgb as n,isAdwAccentColorName as r,parseAdwRgb as i}from"@gjsify/adwaita-core";const a=[{selector:`.adw-switch`,property:`color`,role:`fill`},{selector:`.adw-slider`,property:`color`,role:`fill`},{selector:`.adw-button.suggested-action`,property:`background-color`,role:`fill`},{selector:`.adw-button.suggested-action:highlighted`,property:`background-color`,role:`shade`},{selector:`.adw-button.suggested-action.checked`,property:`background-color`,role:`shade`},{selector:`.adw-banner-button.suggested-action`,property:`background-color`,role:`fill`},{selector:`.adw-avatar`,property:`background-color`,role:`fill`},{selector:`.adw-viewswitcherbar-button-badge`,property:`background-color`,role:`fill`},{selector:`.adw-check-indicator.checked, .adw-check-indicator.inconsistent`,property:`background-color`,role:`fill`},{selector:`.adw-button-row`,property:`color`,role:`fill`},{selector:`.adw-button-row-title`,property:`color`,role:`fill`},{selector:`.adw-view-switcher-button-badge`,property:`background-color`,role:`fill`},{selector:`.adw-inline-view-switcher-button-badge`,property:`background-color`,role:`fill`},{selector:`.adw-carousel-dot.active`,property:`color`,role:`fill`},{selector:`.adw-image-button.adw-entry-apply`,property:`background-color`,role:`fill`},{selector:`.adw-image-button.adw-entry-apply:highlighted`,property:`background-color`,role:`shade`},{selector:`.ns-dark .adw-check-indicator.checked, .ns-dark .adw-check-indicator.inconsistent`,property:`background-color`,role:`fill`},{selector:`.ns-dark .adw-button.suggested-action`,property:`background-color`,role:`fill`},{selector:`.ns-dark .adw-button.suggested-action:highlighted`,property:`background-color`,role:`shade`},{selector:`.ns-dark .adw-button.suggested-action.checked`,property:`background-color`,role:`shade`},{selector:`.ns-dark .adw-avatar`,property:`background-color`,role:`shade`},{selector:`.ns-dark .adw-image-button.adw-entry-apply:highlighted`,property:`background-color`,role:`shade`},{selector:`.ns-dark .adw-switch`,property:`color`,role:`standalone-dark`},{selector:`.ns-dark .adw-button-row-title, .ns-dark .adw-button-row-start-icon`,property:`color`,role:`standalone-dark`},{selector:`.ns-dark .adw-carousel-dot.active`,property:`color`,role:`standalone-dark`}];function adwaitaNsAccentColor(a,o){let s;if(r(a))s=e(a);else{let e=i(a);if(!e)throw RangeError(`adwaitaNsAccentColor: '${a}' is neither an accent name nor a colour`);s=n(e)}return o===`fill`?s:t(s,o===`standalone-dark`)}function adwaitaNsAccentCss(e,t){return a.map(n=>{let r=n.role===`standalone-dark`&&t?.standaloneDark?t.standaloneDark:adwaitaNsAccentColor(e,n.role);return`${n.selector} { ${n.property}: ${r}; }`}).join(`
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{adwaitaAccentBgColor as e,adwaitaStandaloneColor as t,formatAdwRgb as n,isAdwAccentColorName as r,parseAdwRgb as i}from"@gjsify/adwaita-core";const a=[{selector:`.adw-switch`,property:`background-color`,role:`fill`},{selector:`.adw-slider`,property:`color`,role:`fill`},{selector:`.adw-button.suggested-action`,property:`background-color`,role:`fill`},{selector:`.adw-button.suggested-action:highlighted`,property:`background-color`,role:`shade`},{selector:`.adw-button.suggested-action.checked`,property:`background-color`,role:`shade`},{selector:`.adw-banner-button.suggested-action`,property:`background-color`,role:`fill`},{selector:`.adw-avatar`,property:`background-color`,role:`fill`},{selector:`.adw-viewswitcherbar-button-badge`,property:`background-color`,role:`fill`},{selector:`.adw-check-indicator.checked, .adw-check-indicator.inconsistent`,property:`background-color`,role:`fill`},{selector:`.adw-button-row`,property:`color`,role:`fill`},{selector:`.adw-button-row-title`,property:`color`,role:`fill`},{selector:`.adw-view-switcher-button-badge`,property:`background-color`,role:`fill`},{selector:`.adw-inline-view-switcher-button-badge`,property:`background-color`,role:`fill`},{selector:`.adw-carousel-dot.active`,property:`color`,role:`fill`},{selector:`.adw-image-button.adw-entry-apply`,property:`background-color`,role:`fill`},{selector:`.adw-image-button.adw-entry-apply:highlighted`,property:`background-color`,role:`shade`},{selector:`.ns-dark .adw-check-indicator.checked, .ns-dark .adw-check-indicator.inconsistent`,property:`background-color`,role:`fill`},{selector:`.ns-dark .adw-button.suggested-action`,property:`background-color`,role:`fill`},{selector:`.ns-dark .adw-button.suggested-action:highlighted`,property:`background-color`,role:`shade`},{selector:`.ns-dark .adw-button.suggested-action.checked`,property:`background-color`,role:`shade`},{selector:`.ns-dark .adw-avatar`,property:`background-color`,role:`shade`},{selector:`.ns-dark .adw-image-button.adw-entry-apply:highlighted`,property:`background-color`,role:`shade`},{selector:`.ns-dark .adw-switch`,property:`background-color`,role:`standalone-dark`},{selector:`.ns-dark .adw-button-row-title, .ns-dark .adw-button-row-start-icon`,property:`color`,role:`standalone-dark`},{selector:`.ns-dark .adw-carousel-dot.active`,property:`color`,role:`standalone-dark`}];function adwaitaNsAccentColor(a,o){let s;if(r(a))s=e(a);else{let e=i(a);if(!e)throw RangeError(`adwaitaNsAccentColor: '${a}' is neither an accent name nor a colour`);s=n(e)}return o===`fill`?s:t(s,o===`standalone-dark`)}function adwaitaNsAccentCss(e,t){return a.map(n=>{let r=n.role===`standalone-dark`&&t?.standaloneDark?t.standaloneDark:adwaitaNsAccentColor(e,n.role);return`${n.selector} { ${n.property}: ${r}; }`}).join(`
|
|
2
2
|
`)}export{a as ADWAITA_NS_ACCENT_RULES,adwaitaNsAccentColor,adwaitaNsAccentCss};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{xmlBoolean as e,xmlNumber as t}from"./xml-values.js";import{applyConstructProps as n}from"./construct-props.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{
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{xmlBoolean as e,xmlNumber as t}from"./xml-values.js";import{applyConstructProps as n}from"./construct-props.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{applyTemplateXalign as o}from"./gtk-label.js";import{GtkImage as s}from"./gtk-image.js";import{ACTIVATED as c,AdwActionRow as l}from"./adw-action-row.js";import{AdwPreferencesGroup as u}from"./adw-preferences-group.js";import{EXTERNAL_LINK_SVG as d}from"./adw-bundled-icons.js";import{findDialogHost as f}from"./window-state.js";import{ADW_ABOUT_DIALOG_LABELS as p,ADW_LICENSE_DEFAULTS as m,HandledAccumulator as h,aboutDialogVisibility as g,acknowledgementSections as _,createAppInfo as v,creditsSections as y,isLicenseType as b,legalMarkupText as x,legalSections as S,legalVisible as C,licenseTypeForNick as w,refuseNewFromAppdata as T,releaseNotesBuffer as E,setLicense as D,setLicenseType as O,stripMnemonic as k}from"@gjsify/adwaita-core";import{Button as A,GridLayout as j,ItemSpec as M,Label as N,ScrollView as P,StackLayout as F}from"@nativescript/core";const I=`closed`,L=`activate-link`,R=v(a);function linkIcon(e){return/^mailto:/i.test(e)?`mail-send-symbolic`:d}function creditsText(e){return e.map(e=>[...e.title===null?[]:[e.title],...e.people.map(e=>e.name)].join(`
|
|
2
2
|
`)).join(`
|
|
3
3
|
|
|
4
|
-
`)}var AdwAboutDialog=class extends r(O){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={...u};_developers=[];_designers=[];_artists=[];_documenters=[];_translatorCredits=``;_releaseNotes=``;_releaseNotesVersion=``;_debugInfo=``;_links=[];_creditSections=[];_acknowledgementSections=[];_legalSections=[];_releaseNotesSegments=[];_host=null;constructor(e){super(),this.className=`adw-about-dialog`,this.visibility=`collapse`,this.addColumn(new k(1,`star`)),this.addRow(new k(1,`star`));let t=new j;t.orientation=`vertical`,t.verticalAlignment=`middle`,t.horizontalAlignment=`center`,O.setColumn(t,0),O.setRow(t,0);let r=new M;r.orientation=`vertical`,r.className=`adw-about-dialog-card`,t.content=r,this.addChild(t),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`),s(this._commentsLabel,0),this._releaseNotesLabel=this._addCardLabel(r,`adw-about-dialog-release-notes`),this._websiteButton=this._addLinkButton(r,`adw-about-dialog-website`),this._linksBox=new M,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 D;a.text=E(l.copyText),a.className=`adw-about-dialog-copy`,a.set(`androidElevation`,0),a.addEventListener(`tap`,()=>this._copyDebugInfo()),r.addChild(a),this._copyButton=a;let c=new D;c.text=`Close`,c.className=`adw-about-dialog-close`,c.set(`androidElevation`,0),c.addEventListener(`tap`,()=>this.close()),r.addChild(c),this._render(),n(this,e)}_addCardLabel(e,t){let n=new A;return n.className=t,n.horizontalAlignment=`center`,n.textWrap=!0,e.addChild(n),n}_addLinkButton(e,t){let n=new D;return n.className=`adw-about-dialog-link ${t}`,n.set(`androidElevation`,0),e.addChild(n),n}_activateLink(e){let t=new d;if(this.notify({eventName:P,object:this,uri:e,accumulator:t}),!t.stopped)try{F.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=w(this._licenseState,e??``).state,this._render()}get licenseType(){return this._licenseState.licenseType}set licenseType(e){let n=(typeof e==`string`?x(e.trim()):void 0)??t(e,-1);this._licenseState=T(this._licenseState,n).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){_(n)&&(this._legalSections.push({title:e,copyright:t,licenseType:n,license:r}),this._render())}static new_from_appdata(e,t){S()}_updateReleaseNotes(){this._releaseNotesSegments=C({releaseNotes:this._releaseNotes,releaseNotesVersion:this._releaseNotesVersion,version:this._version},l).segments,this._render()}_render(){let e=h({developers:this._developers,designers:this._designers,artists:this._artists,documenters:this._documenters,translatorCredits:this._translatorCredits,creditSections:this._creditSections}),t=p(this._acknowledgementSections),n={copyright:this._copyright,licenseType:this._licenseState.licenseType,license:this._licenseState.license,legalSections:this._legalSections},r=f({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:b(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,E(l.websiteRow),this._website,g(r)),this._setLink(this._supportButton,E(l.supportRow),this._supportUrl,r.supportRow),this._setLink(this._issueButton,E(l.issueRow),this._issueUrl,r.issueRow),show(this._creditsLabel,creditsText(e),r.creditsRow),show(this._acknowledgementsLabel,creditsText(t),r.acknowledgementsRow),show(this._legalLabel,y(n).map(e=>[e.title??``,v(e.markup)].filter(e=>e.length>0).join(`
|
|
4
|
+
`)}var AdwAboutDialog=class extends r(j){static GTypeName=`AdwAboutDialog`;_card;_header;_mainBody;_appIcon;_nameLabel;_versionLabel;_developerLabel;_commentsLabel;_whatsNewRow;_detailsRow;_websiteRow;_supportRow;_issueRow;_troubleshootingRow;_creditsRow;_legalRow;_acknowledgementsRow;_detailsWebsiteRow;_detailsGroup;_supportGroup;_creditsLegalGroup;_linksGroup;_creditsLabel;_acknowledgementsLabel;_legalLabel;_releaseNotesLabel;_debugInfoLabel;_copyButton;_linkRows=[];_pages=new Map;_applicationName=``;_applicationIcon=``;_developerName=``;_version=``;_comments=``;_website=``;_supportUrl=``;_issueUrl=``;_copyright=``;_licenseState={...m};_developers=[];_designers=[];_artists=[];_documenters=[];_translatorCredits=``;_releaseNotes=``;_releaseNotesVersion=``;_debugInfo=``;_links=[];_creditSections=[];_acknowledgementSections=[];_legalSections=[];_releaseNotesSegments=[];_host=null;constructor(e){super(),this.className=`adw-about-dialog`,this.visibility=`collapse`,this.addColumn(new M(1,`star`)),this.addRow(new M(1,`star`));let t=new P;t.orientation=`vertical`,t.verticalAlignment=`middle`,t.horizontalAlignment=`center`,j.setColumn(t,0),j.setRow(t,0);let r=new F;r.orientation=`vertical`,r.className=`adw-about-dialog-card`,t.content=r,this.addChild(t),this._card=r;let i=new F;i.orientation=`vertical`,r.addChild(i),this._header=i;let a=new s;a.className=`adw-icon adw-about-dialog-icon`,a.pixelSize=128,a.horizontalAlignment=`center`,i.addChild(a),this._appIcon=a,this._nameLabel=this._addCardLabel(i,`adw-about-dialog-name`),this._versionLabel=this._addCardLabel(i,`adw-about-dialog-version`),this._developerLabel=this._addCardLabel(i,`adw-about-dialog-developer`);let o=new F;o.orientation=`vertical`,r.addChild(o),this._mainBody=o;let c=p,nav=(e,t)=>{let n=this._newRow(e,`go-next-symbolic`);return this._bindRow(n,()=>this._showPage(t)),n},group=(...e)=>{let t=new u;for(let n of e)t.add(n);return o.addChild(t),t};this._whatsNewRow=nav(c.whatsNewRow,`whatsnew`),this._detailsRow=nav(c.detailsRow,`details`),this._websiteRow=this._newRow(c.websiteRow,d),this._detailsGroup=group(this._whatsNewRow,this._detailsRow,this._websiteRow),this._supportRow=this._newRow(c.supportRow,d),this._issueRow=this._newRow(c.issueRow,d),this._troubleshootingRow=nav(c.troubleshootingRow,`troubleshooting`),this._supportGroup=group(this._supportRow,this._issueRow,this._troubleshootingRow),this._creditsRow=nav(c.creditsRow,`credits`),this._legalRow=nav(c.legalRow,`legal`),this._acknowledgementsRow=nav(c.acknowledgementsRow,`acknowledgements`),this._creditsLegalGroup=group(this._creditsRow,this._legalRow,this._acknowledgementsRow);let l=new A;l.text=`Close`,l.className=`adw-about-dialog-close`,l.set(`androidElevation`,0),l.addEventListener(`tap`,()=>this.close()),o.addChild(l),this._commentsLabel=this._makeLabel(`adw-about-dialog-comments`,!1),this._detailsWebsiteRow=this._newRow(c.websiteRow,d);let f=new u;f.add(this._detailsWebsiteRow),this._linksGroup=f,this._addPage(`details`,c.detailsPage,this._commentsLabel,f),this._releaseNotesLabel=this._makeLabel(`adw-about-dialog-release-notes`,!1),this._addPage(`whatsnew`,c.whatsNewPage,this._releaseNotesLabel);let m=this._makeLabel(`adw-about-dialog-debug-info`,!1);m.text=c.troubleshootingIntro,this._debugInfoLabel=this._makeLabel(`adw-about-dialog-debug-info`,!1);let h=new A;h.text=k(c.copyText),h.className=`adw-about-dialog-copy`,h.set(`androidElevation`,0),h.addEventListener(`tap`,()=>this._copyDebugInfo()),this._copyButton=h,this._addPage(`troubleshooting`,c.troubleshootingPage,m,this._debugInfoLabel,h),this._creditsLabel=this._makeLabel(`adw-about-dialog-credits`,!1),this._addPage(`credits`,c.creditsPage,this._creditsLabel),this._legalLabel=this._makeLabel(`adw-about-dialog-legal`,!1),this._addPage(`legal`,c.legalPage,this._legalLabel),this._acknowledgementsLabel=this._makeLabel(`adw-about-dialog-acknowledgements`,!1),this._addPage(`acknowledgements`,c.acknowledgementsPage,this._acknowledgementsLabel),this._render(),n(this,e)}_makeLabel(e,t){let n=new N;return n.className=e,n.textWrap=!0,t?n.horizontalAlignment=`center`:o(n,0),n}_addCardLabel(e,t){let n=this._makeLabel(t,!0);return e.addChild(n),n}_newRow(e,t){let n=new l;return n.title=k(e),n.activatable=!0,this._setTrailing(n,t),n}_setTrailing(e,t){let n=new s;n.className=`adw-icon`,n.pixelSize=16,n.iconName=t,e.add_suffix(n)}_bindRow(e,t){let n=e;n._run===void 0&&e.addEventListener(c,()=>n._run?.()),n._run=t}_addPage(e,t,...n){let r=new F;r.orientation=`vertical`,r.visibility=`collapse`;let i=new j;i.className=`adw-about-dialog-page-bar`,i.addColumn(new M(1,`auto`)),i.addColumn(new M(1,`star`)),i.addRow(new M(1,`auto`));let a=new A;a.text=`‹`,a.className=`adw-about-dialog-back`,a.set(`androidElevation`,0),a.addEventListener(`tap`,()=>this._showPage(null)),j.setColumn(a,0),i.addChild(a);let o=new N;o.text=t,o.className=`adw-about-dialog-page-title`,o.horizontalAlignment=`center`,j.setColumn(o,1),i.addChild(o),r.addChild(i);for(let e of n)r.addChild(e);this._card.addChild(r),this._pages.set(e,r)}_showPage(e){let t=e===null?`visible`:`collapse`;this._header.visibility=t,this._mainBody.visibility=t;for(let[t,n]of this._pages)n.visibility=t===e?`visible`:`collapse`}_activateLink(e){let t=new h;if(this.notify({eventName:L,object:this,uri:e,accumulator:t}),!t.stopped)try{R.launch_default_for_uri(e,null)}catch{}}_setLink(e,t,n){e.visibility=n?`visible`:`collapse`,this._bindRow(e,()=>this._activateLink(t))}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=D(this._licenseState,e??``).state,this._render()}get licenseType(){return this._licenseState.licenseType}set licenseType(e){let n=(typeof e==`string`?w(e.trim()):void 0)??t(e,-1);this._licenseState=O(this._licenseState,n).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){b(n)&&(this._legalSections.push({title:e,copyright:t,licenseType:n,license:r}),this._render())}static new_from_appdata(e,t){T()}_updateReleaseNotes(){this._releaseNotesSegments=E({releaseNotes:this._releaseNotes,releaseNotesVersion:this._releaseNotesVersion,version:this._version},p).segments,this._render()}_render(){let e=y({developers:this._developers,designers:this._designers,artists:this._artists,documenters:this._documenters,translatorCredits:this._translatorCredits,creditSections:this._creditSections}),t=_(this._acknowledgementSections),n={copyright:this._copyright,licenseType:this._licenseState.licenseType,license:this._licenseState.license,legalSections:this._legalSections},r=g({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:C(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);let shownIf=(e,t)=>{e.visibility=t?`visible`:`collapse`};shownIf(this._detailsGroup,r.detailsGroup),shownIf(this._whatsNewRow,r.whatsNewRow),shownIf(this._detailsRow,r.detailsRow),this._setLink(this._websiteRow,this._website,r.websiteRow),this._setLink(this._detailsWebsiteRow,this._website,r.detailsWebsiteRow),shownIf(this._supportGroup,r.supportGroup),this._setLink(this._supportRow,this._supportUrl,r.supportRow),this._setLink(this._issueRow,this._issueUrl,r.issueRow),shownIf(this._troubleshootingRow,r.troubleshootingRow),shownIf(this._creditsLegalGroup,r.creditsLegalGroup),shownIf(this._creditsRow,r.creditsRow),shownIf(this._legalRow,r.legalRow),shownIf(this._acknowledgementsRow,r.acknowledgementsRow),shownIf(this._linksGroup,r.linksGroup),this._creditsLabel.text=creditsText(e),this._acknowledgementsLabel.text=creditsText(t),this._legalLabel.text=S(n).map(e=>[e.title??``,x(e.markup)].filter(e=>e.length>0).join(`
|
|
5
5
|
`)).join(`
|
|
6
6
|
|
|
7
|
-
`),
|
|
7
|
+
`),this._releaseNotesLabel.text=this._releaseNotesSegments.map(e=>e.text).join(``);for(let e of this._linkRows)this._linksGroup.remove(e);this._linkRows=this._links.map(e=>{let t=this._newRow(e.title,linkIcon(e.url));return this._setLink(t,e.url,!0),this._linksGroup.add(t),t}),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=f(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:I,object:this};this.notify(e)}get open(){return this.visibility===`visible`}set open(t){e(t,!1)?this.present():this.close()}};export{L as ACTIVATE_LINK,AdwAboutDialog,I 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{
|
|
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{ActionRowState as i,isViewSensitive as a,rowLabelVisuals as o}from"./row-state.js";import{applyTemplateXalign as s}from"./gtk-label.js";import{GtkImage as c}from"./gtk-image.js";import{adwSubtitleWriteNotifies as l}from"@gjsify/adwaita-core";import{GridLayout as u,ItemSpec as d,Label as f,StackLayout as p}from"@nativescript/core";const m=`activated`,h=`notify::title`,g=`notify::subtitle`,_=`notify::icon-name`,v=`notify::activatable`,y=[`prefix`,`suffix`];var AdwActionRow=class extends r(u,{GTypeName:`AdwActionRow`,Properties:{title:{kind:`string`,default:``,blurb:`The title of the row`},subtitle:{kind:`string`,default:``,blurb:`The subtitle of the row`,normalize:e=>e==null?``:String(e),changed:(e,t,n)=>l(String(t),n==null?null:String(e))},"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 emittedSignals=[...super.emittedSignals,m];static builderSlots=e(y,`suffix`);isActionRow=!0;_textStack;_titleLabel;_subtitleLabel;_rowState=new i;_prefix=null;_iconImage=null;_suffix=null;constructor(e){super(),this.className=`adw-row adw-action-row`,this.addColumn(new d(1,`auto`)),this.addColumn(new d(1,`star`)),this.addColumn(new d(1,`auto`)),this.addRow(new d(1,`auto`));let t=new p;t.orientation=`vertical`,t.className=`adw-row-text`,u.setColumn(t,1);let r=new f;r.className=`adw-row-title`,r.textWrap=!0,s(r,0),t.addChild(r);let i=new f;i.className=`adw-row-subtitle`,i.textWrap=!0,s(i,0),t.addChild(i),this.addChild(t),this._textStack=t,this._titleLabel=r,this._subtitleLabel=i,this.connect(h,e=>e._applyLabels()),this.connect(g,e=>e._applyLabels()),this.connect(_,e=>e._applyIconName()),this.connect(v,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(),u.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(),u.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,y,`suffix`)===`prefix`?this.add_prefix(n):this.add_suffix(n)}get activatableWidget(){return this._rowState.activatableWidget}set activatableWidget(e){this._rowState.setActivatableWidget(e,a(e))&&e!==null&&(this.activatable=this._rowState.activatable)}syncActivatableWidgetSensitivity(){let e=this._rowState.activatableWidget;e&&this._rowState.setActivatableWidgetSensitive(a(e))&&(this.activatable=this._rowState.activatable)}activate(){if(!this.activatable)return;let e={eventName:m,object:this};this.notify(e)}_managesTitleVisibility=!0;_applyLabels(){let e=o({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 c,this.add_prefix(this._iconImage)),this._iconImage.iconName=e}};export{m as ACTIVATED,AdwActionRow,v as NOTIFY_ACTIVATABLE,_ as NOTIFY_ICON_NAME,g as NOTIFY_SUBTITLE,h as NOTIFY_TITLE};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M10 1H15V6L13.2 4.2L8.7 8.7L7.3 7.3L11.8 2.8Z"/><path d="M7 3V5H3V13H11V9H13V13A2 2 0 0 1 11 15H3A2 2 0 0 1 1 13V5A2 2 0 0 1 3 3Z"/></svg>`;export{e as EXTERNAL_LINK_SVG};
|
|
@@ -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{ButtonRowState as t,buttonRowIconColor as n,buttonRowIconVisuals as r}from"./row-state.js";import{classNameWith as i,normalizeStyleClasses as a,withCssClass as o,withoutCssClass as s}from"./style-classes.js";import{applyTemplateXalign as c}from"./gtk-label.js";import{GtkImage as l}from"./gtk-image.js";import{ACTIVATED as u,AdwActionRow as d}from"./adw-action-row.js";import{attachRowPressFeedback as f}from"./row-press.js";import{adwaitaAccent as p,onAdwaitaAccentChanged as m}from"@gjsify/adwaita-core";import{StackLayout as h}from"@nativescript/core";const g=`adw-row adw-action-row adw-button-row`;var _=class AdwButtonRow extends d{static GTypeName=`AdwButtonRow`;isActionRow=!1;_contentBox;_startIcon;_endIcon;_pinnedIconColor=null;_unsubAccent=null;_buttonState=new t;_styleClasses=[];constructor(t){super(),this.className=g,this._titleLabel.className=`adw-button-row-title`,this._titleLabel.horizontalAlignment=`center`,c(this._titleLabel,.5),this._textStack.removeChild(this._titleLabel);let n=new h;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??=m(()=>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(),f(this),e(this,t)}get styleClasses(){return[...this._styleClasses]}set styleClasses(e){this._setClasses(a(e))}add_css_class(e){this._setClasses(o(this._styleClasses,e))}remove_css_class(e){this._setClasses(s(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(a([...e].join(` `)))}_setClasses(e){this._styleClasses=e,this.className=i(g,e)}static _makeIcon(e){let t=new l;return t.className=`${t.className} ${e}`.trim(),t.verticalAlignment=`middle`,t}get startIconName(){return this._buttonState.startIconName}set startIconName(e){this._buttonState.setStartIconName(e)&&this._applyIcons()}get endIconName(){return this._buttonState.endIconName}set endIconName(e){this._buttonState.setEndIconName(e)&&this._applyIcons()}get startIconColor(){return this._startIcon.iconColor}set startIconColor(e){this._pinnedIconColor=e||null,this._applyIconColor()}_applyIconColor(){let e=n(this._pinnedIconColor,p());this._startIcon.iconColor=e,this._endIcon.iconColor=e}_applyIcons(){let e=r(this._buttonState.state);this._startIcon.iconName=e.startIcon,this._startIcon.visibility=e.startIconVisibility,this._endIcon.iconName=e.endIcon,this._endIcon.visibility=e.endIconVisibility}};export{u as ACTIVATED,_ as AdwButtonRow};
|
|
@@ -1 +1 @@
|
|
|
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{
|
|
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{applyTemplateXalign as r}from"./gtk-label.js";import{GtkImage as i}from"./gtk-image.js";import{AdwActionRow as a}from"./adw-action-row.js";import{AdwImageButton as o}from"./adw-image-button.js";import{NS_EDIT_ICON_CLASS as s,NS_ENTRY_ROW_CLASS as c,applyEntryRowState as l}from"./entry-row-view.js";import{ADW_ACCENT_FG_COLOR as u,clampEntryMaxLength as d,clampEntryText as f,deriveEntryRowState as p,entryRowLatches as m,entryTextLength as h,resolveEntryRowActivation as g}from"@gjsify/adwaita-core";import{Label as _,StackLayout as v,TextField as y}from"@nativescript/core";import{documentEditSymbolic as b,objectSelectSymbolic as x}from"@gjsify/adwaita-icons/actions";const S=`notify::text`,C=`notify::text-length`,w=`notify::max-length`,T=`notify::editable`,E=`notify::show-apply-button`,D=`notify::activates-default`,O=`apply`,k=`entry-activated`;var AdwEntryRow=class extends n(a,{GTypeName:`AdwEntryRow`,Properties:{text:{kind:`string`,default:``,blurb:`The entry text`,normalize:(e,t)=>e==null?t.text:f(String(e),t.maxLength)},"text-length":{kind:`uint`,default:0,blurb:`The length of the text, in characters`,normalize:(e,t)=>h(t.text)},"max-length":{kind:`int`,default:0,blurb:`The maximum length of the text, in characters`,normalize:e=>d(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`,r(this._titleLabel,0),this._managesTitleVisibility=!1;let n=new _;n.className=`adw-row-title adw-entry-empty-title`,n.textWrap=!0,r(n,0),this._textStack.insertChild(n,0),this._emptyTitle=n;let a=new y;a.className=`adw-entry-field`,a.set(`backgroundColor`,`transparent`),a.set(`borderWidth`,0),this._textStack.addChild(a),this._field=a;let c=new v;c.orientation=`horizontal`,c.className=`adw-entry-row-suffixes`,this._suffixes=c;let l=new i;l.className=`gtk-image adw-entry-indicator`,c.addChild(l),this._indicator=l;let d=new o;d.className=`${d.className} adw-entry-apply`.trim(),d.iconName=x,d.iconColor=u,d.addEventListener(`tap`,()=>this.apply()),c.addChild(d),this._applyButton=d;let f=new i;f.className=s,f.iconName=b,c.addChild(f),this._editIcon=f,super.add_suffix(c),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(S,e=>e._onTextChanged()),this.connect(w,e=>e._onMaxLengthChanged()),this.connect(T,e=>e._update()),this.connect(E,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(O)}_activate(){if(g(this._textChanged,this.activatesDefault).signal===`apply`){this.apply();return}this.emit(k)}_update(){this._render(p({text:this.text,editing:this._editing,editable:this.editable,showIndicator:this._showIndicator,textChanged:this._textChanged}))}_render(e){l({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 c}_setEditing(e){e!==this._editing&&(this._editing=e,this._update())}_onTextChanged(){m(this.showApplyButton,this._editing)&&(this._textChanged=!0),this._update(),this.textLength=h(this.text)}_onMaxLengthChanged(){this.text=f(this.text,this.maxLength)}_onShowApplyButtonChanged(){this.showApplyButton||!this._textChanged||(this._textChanged=!1,this._update())}};export{AdwEntryRow,D as NOTIFY_ACTIVATES_DEFAULT,T as NOTIFY_EDITABLE,w as NOTIFY_MAX_LENGTH,E as NOTIFY_SHOW_APPLY_BUTTON,S as NOTIFY_TEXT,C as NOTIFY_TEXT_LENGTH,O as SIGNAL_APPLY,k as SIGNAL_ENTRY_ACTIVATED};
|
|
@@ -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{readDeclaredValue as r,withProperties as i}from"./signals.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{readDeclaredValue as r,withProperties as i}from"./signals.js";import{switchClassName as a}from"./row-state.js";import{GtkImage as o}from"./gtk-image.js";import{AdwActionRow as s}from"./adw-action-row.js";import{GridLayout as c,ItemSpec as l,StackLayout as u,Switch as d}from"@nativescript/core";import{panDownSymbolic as f,panUpSymbolic as p}from"@gjsify/adwaita-icons/ui";const m=`notify::expanded`,h=`notify::enable-expansion`,g=`notify::show-enable-switch`,_=.5,v=[`prefix`,`suffix`];var AdwExpanderRow=class extends i(s,{GTypeName:`AdwExpanderRow`,Properties:{expanded:{kind:`boolean`,default:!1,blurb:`Whether the row is expanded`,normalize:(e,t)=>{let n=t;return r(`expanded`,`boolean`,e)&&(n._expansionGate??n.enableExpansion)}},"enable-expansion":{kind:`boolean`,default:!0,blurb:`Whether the expansion is enabled`,normalize:(e,t)=>{let n=t,i=r(`enable-expansion`,`boolean`,e);if(i===n.enableExpansion)return i;n._expansionGate=i;try{n.expanded=i}finally{n._expansionGate=void 0}return i}},"show-enable-switch":{kind:`boolean`,default:!1,blurb:`Whether the switch enabling the expansion is visible`}}}){static GTypeName=`AdwExpanderRow`;static builderSlots=e(v,`row`);isActionRow=!1;_toggle;_enableSwitch;_suffixes;_disclosure;_expansionGate=void 0;_slotSuffix=null;constructor(e){super(),this.className=`adw-row adw-action-row adw-expander-row`,this.activatable=!1,this.addRow(new l(1,`auto`));let t=new u;t.orientation=`vertical`,t.className=`adw-expander-disclosure`,t.visibility=`collapse`,c.setRow(t,1),c.setColumn(t,0),c.setColumnSpan(t,3),this.addChild(t),this._disclosure=t;let r=new u;r.orientation=`horizontal`,r.className=`adw-expander-row-cluster`;let i=new u;i.orientation=`horizontal`,i.className=`adw-expander-row-suffixes`,i.visibility=`collapse`,r.addChild(i),this._suffixes=i;let s=new d;s.className=a(!0),s.visibility=`collapse`,r.addChild(s),this._enableSwitch=s;let p=new o;p.iconName=f,p.className=`${p.className} adw-expander-toggle`.trim(),r.addChild(p),this._toggle=p,super.add_suffix(r),s.addEventListener(`checkedChange`,()=>{this.enableExpansion=s.checked}),this.connect(m,e=>e._applyExpanded()),this.connect(h,e=>e._applyEnableExpansion()),this.connect(g,e=>e._applyShowEnableSwitch()),this._applyExpanded(),this._applyEnableExpansion(),this._applyShowEnableSwitch();let toggleOnTap=()=>{this.expanded=!this.expanded};this._textStack.addEventListener(`tap`,toggleOnTap),p.addEventListener(`tap`,toggleOnTap),n(this,e)}get_expanded(){return this.expanded}set_expanded(e){this.expanded=e}get_enable_expansion(){return this.enableExpansion}set_enable_expansion(e){this.enableExpansion=e}get_show_enable_switch(){return this.showEnableSwitch}set_show_enable_switch(e){this.showEnableSwitch=e}add_row(e){this._disclosure.addChild(e)}add_suffix(e){e.className=`${e.className??``} adw-row-suffix`.trim(),this._suffixes.insertChild(e,0),this._suffixes.visibility=`visible`,this._slotSuffix=e}remove(e){if(e===this.prefix){super.remove(e);return}if(this._suffixes.getChildIndex(e)!==-1){this._suffixes.removeChild(e),this._suffixes.getChildrenCount()===0&&(this._suffixes.visibility=`collapse`),e===this._slotSuffix&&(this._slotSuffix=this._lastSuffix());return}this._disclosure.removeChild(e)}get suffix(){return this._slotSuffix}_addChildFromBuilder(e,n){let r=t(e,v,`row`);r===`row`?this.add_row(n):super._addChildFromBuilder(r,n)}get disclosureRows(){let e=[];for(let t=0;t<this._disclosure.getChildrenCount();t++)e.push(this._disclosure.getChildAt(t));return e}_lastSuffix(){return this._suffixes.getChildrenCount()===0?null:this._suffixes.getChildAt(0)}_applyExpanded(){let e=this.expanded;this._disclosure.visibility=e?`visible`:`collapse`,this._toggle.iconName=e?p:f}_applyEnableExpansion(){let e=this.enableExpansion;this._enableSwitch.checked=e,this._enableSwitch.className=a(e),this._toggle.opacity=e?1:_,this._toggle.isUserInteractionEnabled=e}_applyShowEnableSwitch(){this._enableSwitch.visibility=this.showEnableSwitch?`visible`:`collapse`}};export{AdwExpanderRow,h as NOTIFY_ENABLE_EXPANSION,m as NOTIFY_EXPANDED,g as NOTIFY_SHOW_ENABLE_SWITCH,_ as NS_EXPANDER_ARROW_DISABLED_OPACITY};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{builderSlotsOf as e}from"./builder-slots.js";import{applyConstructProps as t}from"./construct-props.js";import{withSignals as n}from"./signals.js";import{
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{builderSlotsOf as e}from"./builder-slots.js";import{applyConstructProps as t}from"./construct-props.js";import{withSignals as n}from"./signals.js";import{dimmedIconColor as r,onWindowFgChanged as i,publishedWindowFg as a}from"./status-icon-color.js";import{classNameWith as o,normalizeStyleClasses as s,withCssClass as c,withoutCssClass as l}from"./style-classes.js";import{onAdwaitaColorSchemeChanged as u,themeIconColor as d}from"./color-scheme.js";import{GtkImage as f}from"./gtk-image.js";import{statusPageIconVisibility as p,statusPageLabelVisibility as m}from"./status-page-content.js";import{GridLayout as h,ItemSpec as g,Label as _,StackLayout as v}from"@nativescript/core";const y=`adw-status-page`;var AdwStatusPage=class extends n(h){static GTypeName=`AdwStatusPage`;static builderSlots=e([`child`],`child`);_stack;_icon;_iconName=``;_iconLabel;_iconGlyph=``;_titleLabel;_descriptionLabel;_child=null;_styleClasses=[];_explicitIconColor=!1;_unsubFg=null;_unsubScheme=null;constructor(e){super(),this.className=y,this.addColumn(new g(1,`star`)),this.addRow(new g(1,`star`));let n=new v;n.orientation=`vertical`,n.className=`adw-status-page-content`,n.horizontalAlignment=`center`,n.verticalAlignment=`middle`,h.setColumn(n,0),h.setRow(n,0),this.addChild(n),this._stack=n;let o=new f;o.className=`${o.className} adw-status-page-icon`.trim(),o.horizontalAlignment=`center`,o.iconColor=r(a(),d()),o.pixelSize=128,o.visibility=p(this._iconName),this._icon=o;let s=new _;s.className=`adw-status-page-icon-glyph`,s.horizontalAlignment=`center`,s.visibility=p(this._iconGlyph),this._iconLabel=s;let c=new _;c.className=`adw-status-page-title`,c.horizontalAlignment=`center`,c.textWrap=!0,c.visibility=m(c.text),this._titleLabel=c;let l=new _;l.className=`adw-status-page-description`,l.horizontalAlignment=`center`,l.textWrap=!0,l.visibility=m(l.text),this._descriptionLabel=l;for(let e of[o,s,c,l])n.addChild(e);this.addEventListener(`loaded`,()=>{this._syncIconColor(),this._unsubFg??=i(()=>this._syncIconColor()),this._unsubScheme??=u(()=>this._syncIconColor())}),this.addEventListener(`unloaded`,()=>{this._unsubFg?.(),this._unsubFg=null,this._unsubScheme?.(),this._unsubScheme=null}),t(this,e)}get iconName(){return this._iconName}set iconName(e){this._iconName=e??``,this._icon.iconName=this._iconName,this._icon.visibility=p(this._iconName),this._iconLabel.visibility=`collapse`}get iconText(){return this._iconGlyph}set iconText(e){this._iconGlyph=e??``,this._iconLabel.text=this._iconGlyph,this._iconLabel.visibility=p(this._iconGlyph),this._icon.visibility=`collapse`}get iconColor(){return this._icon.iconColor}set iconColor(e){this._explicitIconColor=!0,this._icon.iconColor=e}_syncIconColor(){this._explicitIconColor||(this._icon.iconColor=r(a(),d()))}get title(){return this._titleLabel.text??``}set title(e){let t=e??``;this._titleLabel.text=t,this._titleLabel.visibility=m(t)}get description(){return this._descriptionLabel.text??``}set description(e){let t=e??``;this._descriptionLabel.text=t,this._descriptionLabel.visibility=m(t)}set_child(e){this._child&&=(this._stack.removeChild(this._child),null),e&&(e.className=`${e.className??``} adw-status-page-child`.trim(),e.horizontalAlignment=`center`,this._stack.addChild(e),this._child=e)}get child(){return this._child}set child(e){this.set_child(e)}_addChildFromBuilder(e,t){this.set_child(t)}get styleClasses(){return[...this._styleClasses]}set styleClasses(e){this._setClasses(s(e))}add_css_class(e){this._setClasses(c(this._styleClasses,e))}remove_css_class(e){this._setClasses(l(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(s([...e].join(` `)))}_setClasses(e){this._styleClasses=e,this.className=o(y,e)}};export{AdwStatusPage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{builderSlotsOf as e}from"./builder-slots.js";import{xmlBoolean as t}from"./xml-values.js";import{applyConstructProps as n}from"./construct-props.js";import{activateWidgetAction as r}from"./actions.js";import{applyNativeTooltip as i}from"./native-tooltip.js";import{withSignals as a}from"./signals.js";import{
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{builderSlotsOf as e}from"./builder-slots.js";import{xmlBoolean as t}from"./xml-values.js";import{applyConstructProps as n}from"./construct-props.js";import{activateWidgetAction as r}from"./actions.js";import{applyNativeTooltip as i}from"./native-tooltip.js";import{withSignals as a}from"./signals.js";import{classNameWith as o,normalizeStyleClasses as s,withCssClass as c,withoutCssClass as l}from"./style-classes.js";import{GtkImage as u}from"./gtk-image.js";import{attachRowPressFeedback as d}from"./row-press.js";import{adoptIntoBin as f}from"./bin-layout.js";import{buttonSlotAfterWrite as p,buttonSlotDetaches as m}from"./button-slot.js";import{needsOwnSizePass as h,ownSizeSpecs as g}from"./star-cell.js";import{labelDisplayText as _}from"@gjsify/adwaita-core";import{DockLayout as v,Label as y}from"@nativescript/core";const b=`clicked`,x=`image-button`,S=`adw-button-label`;var GtkButton=class extends a(v,{GTypeName:`GtkButton`,Signals:{clicked:{}}}){static GTypeName=`GtkButton`;static builderSlots=e([`child`],`child`);_styleClasses=[];_label=``;_iconName=``;_tooltipText=``;_useUnderline=!1;_slot=`empty`;_content=null;constructor(e){super(),this.className=o(`adw-button`,this._styleClasses),d(this),this.addEventListener(`tap`,()=>{this.emit(b),this.actionName&&r(this,this.actionName)}),this.addEventListener(`loaded`,()=>{i(this,this.tooltipText),this._pinIconColor()}),n(this,e)}onMeasure(e,t){if(super.onMeasure(e,t),!h(e,t))return;let[n,r]=g(this.getMeasuredWidth(),this.getMeasuredHeight());super.onMeasure(n,r)}get label(){return this._label}set label(e){this._label=e??``,this._fill(`label`,this._label)}actionName=null;get iconName(){return this._iconName}set iconName(e){this._iconName=e??``,this._fill(`icon`,this._iconName)}get tooltipText(){return this._tooltipText}set tooltipText(e){let t=e??``;(this.accessibilityHint??``)===this._tooltipText&&(this.accessibilityHint=t),this._tooltipText=t,i(this,t)}get child(){return this._slot===`child`?this._content:null}set child(e){this._fill(`child`,e??null)}set_child(e){this.child=e}get_child(){return this.child}_addChildFromBuilder(e,t){this.child=t}get useUnderline(){return this._useUnderline}set useUnderline(e){this._useUnderline=t(e,this._useUnderline),this._slot===`label`&&this._fill(`label`,this._label)}get styleClasses(){return[...this._styleClasses]}set styleClasses(e){this._setClasses(s(e))}add_css_class(e){this._setClasses(c(this._styleClasses,e))}remove_css_class(e){this._setClasses(l(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(s([...e].join(` `)))}_setClasses(e){this._styleClasses=[...e],this._restyle()}_restyle(){this.className=o(`adw-button`,[...this._styleClasses,...this._stateClasses()]),this._pinIconColor()}_stateClasses(){return this._slot===`icon`?[x]:[]}_fill(e,t){let n=p(e,t);m(this._slot,n)&&this._detach();let r=this._slot===`icon`;if(this._slot=n,r!==(n===`icon`)&&this._restyle(),n===`empty`){this._detach();return}if(n===`child`){let e=t;if(this._content===e)return;this._detach(),this._adopt(e);let n=e;`hostButton`in n&&(n.hostButton=this);return}if(n===`label`){let e=this._content instanceof y?this._content:this._adopt(new y);e.className=S,e.text=_(this._label,!1,this._useUnderline);return}let i=this._content instanceof u?this._content:this._adopt(new u);i.iconName=this._iconName,this._pinIconColor()}_pinIconColor(){this._content instanceof u&&(this._styleClasses.some(e=>e===`osd`||e===`suggested-action`)||this._inOsdContainer())&&(this._content.iconColor=`#ffffff`)}_inOsdContainer(){for(let e=this.parent;e;e=e.parent)if((e.className??``).split(/\s+/).includes(`osd`))return!0;return!1}_detach(){this._content&&this.removeChild(this._content),this._content=null}_adopt(e){return f(this,e),this._content=e,e}};export{b as GTK_BUTTON_CLICKED,x as GTK_BUTTON_IMAGE_CLASS,S as GTK_BUTTON_LABEL_CLASS,GtkButton};
|
|
@@ -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{readDeclaredValue as n,withProperties as r}from"./signals.js";import{
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{builderSlotsOf as e}from"./builder-slots.js";import{applyConstructProps as t}from"./construct-props.js";import{readDeclaredValue as n,withProperties as r}from"./signals.js";import{classNameWith as i}from"./style-classes.js";import{GtkImage as a}from"./gtk-image.js";import{attachRowPressFeedback as o}from"./row-press.js";import{AdwStyledLayoutBase as s}from"./styled-layout-base.js";import{resolveIdReference as c}from"./id-reference.js";import{checkActivationFlips as l,checkGroupNeighbours as u,isRadioCheck as d,labelDisplayText as f,setCheckGroup as p}from"@gjsify/adwaita-core";import{GridLayout as m,ItemSpec as h,Label as g}from"@nativescript/core";import{objectSelectSymbolic as _}from"@gjsify/adwaita-icons/actions";const v=`toggled`,y=`activate`,b=`notify::active`,x=`notify::inconsistent`,S=`notify::label`,C=`notify::use-underline`,w=`checked`,T=`inconsistent`;var E=class GtkCheckButton extends r(s,{GTypeName:`GtkCheckButton`,Properties:{active:{kind:`boolean`,default:!1,explicitNotify:!0,blurb:`If the check button is active`,normalize:(e,t)=>{let r=!!n(`active`,`boolean`,e);if(r&&!t.active)for(let e of u(t))e.active=!1;return r},afterNotify:e=>{let t=e;t._restyle(),t.notify(`active`),t.emit(v)}},inconsistent:{kind:`boolean`,default:!1,explicitNotify:!0,blurb:`If the check button is in an "in between" state`,afterNotify:e=>{let t=e;t._restyle(),t.notify(`inconsistent`)}},label:{kind:`string`,default:null,explicitNotify:!0,blurb:`Text of the label inside the check button`,normalize:e=>e==null||e===``?null:String(e),changed:()=>!0,afterNotify:e=>{let t=e;t._paintLabel(),t.notify(`label`)}},"use-underline":{kind:`boolean`,default:!1,explicitNotify:!0,blurb:`If set, an underline in the text indicates a mnemonic`,afterNotify:e=>{let t=e;t._paintLabel(),t.notify(`use-underline`)}}},Signals:{toggled:{},activate:{}}}){static GTypeName=`GtkCheckButton`;static builderSlots=e([`child`],`child`);static builderReferences=[`group`];_indicator;_mark;_text;_child=null;_groupId=null;_contentUnit=`auto`;constructor(e){super(),this.addColumn(new h(1,`auto`)),this.addColumn(new h(1,`auto`)),this.addRow(new h(1,`auto`));let n=new m;n.className=`adw-check-indicator`,n.addColumn(new h(1,`star`)),n.addRow(new h(1,`star`)),n.verticalAlignment=`middle`,m.setColumn(n,0),m.setRow(n,0);let r=new a;r.iconName=_,r.pixelSize=14,r.iconColor=`#ffffff`,r.horizontalAlignment=`center`,r.verticalAlignment=`middle`,r.visibility=`collapse`,n.addChild(r),this.addChild(n),this._indicator=n,this._mark=r;let i=new g;i.className=`adw-check-label`,i.verticalAlignment=`middle`,i.visibility=`collapse`,m.setColumn(i,1),m.setRow(i,0),this.addChild(i),this._text=i,this.addEventListener(`loaded`,()=>this._resolveGroupId()),o(this),this.addEventListener(`tap`,()=>this._toggle()),this.connect(`activate`,e=>e._toggle()),this._restyle(),t(this,e)}_toggle(){l(this,this.active)&&(this.active=!this.active)}set group(e){if(typeof e==`string`){this._groupId=e,this.isLoaded&&this.set_group(c(this,`group`,e,GtkCheckButton));return}this._groupId=null,this.set_group(e)}set_group(e){p(this,e),this._restyle(),e?._restyle()}_resolveGroupId(){let e=this._groupId;e!==null&&(this._groupId=null,this.set_group(c(this,`group`,e,GtkCheckButton)))}_paintLabel(){this._text.text=f(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&&(m.setColumn(t,1),m.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 h(1,`auto`)),this.addColumn(new h(1,t)))}get _ownClass(){return`adw-check-button`}_restyle(){let e=[];this.active&&e.push(w),this.inconsistent&&e.push(T),this.className=i(this._ownClass,[...this.styleClasses,...e]),this._indicator.className=i(`adw-check-indicator`,d(this)?[...e,`radio`]:e),this._mark.visibility=this.active||this.inconsistent?`visible`:`collapse`}};export{y as GTK_CHECK_BUTTON_ACTIVATE,w as GTK_CHECK_BUTTON_CHECKED_CLASS,T as GTK_CHECK_BUTTON_INCONSISTENT_CLASS,v as GTK_CHECK_BUTTON_TOGGLED,E as GtkCheckButton,b as NOTIFY_CHECK_ACTIVE,x as NOTIFY_CHECK_INCONSISTENT,S as NOTIFY_CHECK_LABEL,C as NOTIFY_CHECK_USE_UNDERLINE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{builderSlotsOf as e}from"./builder-slots.js";import{xmlBoolean as t}from"./xml-values.js";import{applyConstructProps as
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{builderSlotsOf as e}from"./builder-slots.js";import{xmlBoolean as t,xmlNumber as n}from"./xml-values.js";import{applyConstructProps as r}from"./construct-props.js";import{AdwSingleChildBase as i}from"./single-child-base.js";import{DEFAULT_SCROLLBAR_POLICY as a,GTK_POLICY_TYPES as o,normalizePolicy as s,policyScrolls as c,scrollOrientationFor as l,scrollsBothAxes as u}from"./scrolled-window-policy.js";import{GtkAdjustment as d}from"@gjsify/adwaita-core";import{ContentView as f,GridLayout as p,ScrollView as m}from"@nativescript/core";var GtkScrolledWindow=class extends i{static GTypeName=`GtkScrolledWindow`;static builderSlots=e([`child`],`child`);_scroll=new m;_viewport=new f;_hscroll=new m;_hbox=new f;_nested=!1;_hscrollbarPolicy=a;_vscrollbarPolicy=a;_hasFrame=!1;_hadjustment=null;_vadjustment=null;_listening=!1;_syncing=!1;constructor(e){super(),p.setColumn(this._scroll,0),p.setRow(this._scroll,0),this._scroll.content=this._viewport,this._hscroll.orientation=`horizontal`,this._hscroll.content=this._hbox,this.addChild(this._scroll),this._applyOrientation(),r(this,e)}get hscrollbarPolicy(){return this._hscrollbarPolicy}set hscrollbarPolicy(e){this._hscrollbarPolicy=s(e,`hscrollbar-policy`),this._applyOrientation()}get vscrollbarPolicy(){return this._vscrollbarPolicy}set vscrollbarPolicy(e){this._vscrollbarPolicy=s(e,`vscrollbar-policy`),this._applyOrientation()}get_policy(){return[o.indexOf(this._hscrollbarPolicy),o.indexOf(this._vscrollbarPolicy)]}set_policy(e,t){for(let[n,r]of[[e,`hscrollbar_policy`],[t,`vscrollbar_policy`]])if(!Number.isInteger(n)||o[n]===void 0)throw TypeError(`${n} is not a valid value for enum argument ${r}`);this.hscrollbarPolicy=o[e],this.vscrollbarPolicy=o[t]}get hadjustment(){return this._hadjustment??=this._track(`horizontal`,new d)}get vadjustment(){return this._vadjustment??=this._track(`vertical`,new d)}get_hadjustment(){return this.hadjustment}get_vadjustment(){return this.vadjustment}set_hadjustment(e){this._hadjustment=this._track(`horizontal`,e)}set_vadjustment(e){this._vadjustment=this._track(`vertical`,e)}_track(e,t){return this._listening||(this._listening=!0,this._scroll.addEventListener(`scroll`,this._syncAdjustments),this._hscroll.addEventListener(`scroll`,this._syncAdjustments),this._scroll.addEventListener(`layoutChanged`,this._syncAdjustments),this._viewport.addEventListener(`layoutChanged`,this._syncAdjustments)),t.connect(`value-changed`,()=>{let n=e===`horizontal`?this._hadjustment:this._vadjustment;this._syncing||n!==t||(e===`horizontal`?this._horizontalScroller.scrollToHorizontalOffset(t.value,!1):this._scroll.scrollToVerticalOffset(t.value,!1))}),this._syncAxis(e,t),t}_syncAdjustments=()=>{this._hadjustment&&this._syncAxis(`horizontal`,this._hadjustment),this._vadjustment&&this._syncAxis(`vertical`,this._vadjustment)};_syncAxis(e,t){let n=e===`vertical`,r=this._horizontalScroller,i=(n?this._scroll:r).getActualSize(),a=(n||!this._nested?this._viewport:this._hbox).getActualSize(),o=n?i.height:i.width,s=Math.max(n?a.height:a.width,o),c=n?this._scroll.verticalOffset:r.horizontalOffset;this._syncing=!0;try{t.configure(c,0,s,o*.1,o*.9,o)}finally{this._syncing=!1}}get heightRequest(){return super.heightRequest}set heightRequest(e){super.heightRequest=n(e,super.heightRequest),this._applyHeightRequest()}_applyHeightRequest(){let e=super.heightRequest;this._scroll.height=e>0&&c(this._vscrollbarPolicy)?e:`auto`}get hasFrame(){return this._hasFrame}set hasFrame(e){this._hasFrame=t(e,this._hasFrame)}get _horizontalScroller(){return this._nested?this._hscroll:this._scroll}get _holder(){return this._nested?this._hbox:this._viewport}_adopt(e){this._holder.content=e}_release(e){this._holder.content===e&&(this._holder.content=null)}_applyOrientation(){this._applyHeightRequest(),this._scroll.orientation=l(this._hscrollbarPolicy,this._vscrollbarPolicy);let e=u(this._hscrollbarPolicy,this._vscrollbarPolicy);if(e===this._nested&&this._viewport.content!==null)return;let t=this.child;this._holder.content=null,this._nested=e,this._viewport.content=e?this._hscroll:null,this._holder.content=t}};export{GtkScrolledWindow};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{ADWAITA_ICON_GRID as e,DEFAULT_ICON_COLOR as t,DEFAULT_ICON_COLOR_DARK as n,extractIconPaths as r,extractPathData as i}from"./icon-path.js";import{ImageSource as a,Screen as o}from"@nativescript/core";function renderSymbolicIcon(e,n){let i=android?.graphics,s=androidx?.core?.graphics?.PathParser;if(!i||!s)return null;let c=r(e);if(c.length===0)return null;let l=n?.size??16,u=o.mainScreen?.scale||1,d=Math.max(1,Math.round(l*u)),f=d/16,p=i.Bitmap.createBitmap(d,d,i.Bitmap.Config.ARGB_8888),m=new i.Canvas(p),h=i.Color.parseColor(n?.color??t),g=new i.Paint;g.setAntiAlias(!0),g.setStyle(i.Paint.Style.FILL);let _=!1;for(let{d:e,opacity:t,transform:n,fillRule:r,fill:a}of c){let o=null;try{o=s.createPathFromPathData(e)}catch{o=null}if(!o)continue;r===`evenodd`&&o.setFillType(i.Path.FillType.EVEN_ODD);let c=new i.Matrix;c.setValues([n[0],n[2],n[4],n[1],n[3],n[5],0,0,1]),c.postScale(f,f),o.transform(c);let l=h;if(a!==null)try{l=i.Color.parseColor(a)}catch{l=h}g.setColor(l),g.setAlpha(Math.round(255*t)),m.drawPath(o,g),_=!0}return _?new a(p):null}export{e as ADWAITA_ICON_GRID,t as DEFAULT_ICON_COLOR,n as DEFAULT_ICON_COLOR_DARK,r as extractIconPaths,i as extractPathData,renderSymbolicIcon};
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{ADWAITA_ICON_GRID as e,DEFAULT_ICON_COLOR as t,DEFAULT_ICON_COLOR_DARK as n,extractIconPaths as r,extractPathData as i}from"./icon-path.js";import{ImageSource as a,Screen as o}from"@nativescript/core";function renderSymbolicIcon(e,n){let i=android?.graphics,s=androidx?.core?.graphics?.PathParser;if(!i||!s)return null;let c=r(e);if(c.length===0)return null;let l=n?.size??16,u=o.mainScreen?.scale||1,d=Math.max(1,Math.round(l*u)),f=d/16,p=i.Bitmap.createBitmap(d,d,i.Bitmap.Config.ARGB_8888),m=new i.Canvas(p),h=i.Color.parseColor(n?.color??t),g=new i.Paint;g.setAntiAlias(!0),g.setStyle(i.Paint.Style.FILL);let _=!1;for(let{d:e,opacity:t,transform:n,fillRule:r,fill:a}of c){let o=null;try{o=s.createPathFromPathData(e)}catch{o=null}if(!o)continue;r===`evenodd`&&o.setFillType(i.Path.FillType.EVEN_ODD);let c=new i.Matrix;c.setValues([n[0],n[2],n[4],n[1],n[3],n[5],0,0,1]),c.postScale(f,f),o.transform(c);let l=h;if(a!==null)try{l=i.Color.parseColor(a)}catch{l=h}g.setColor(l),g.setAlpha(Math.round((l>>>24&255)*t)),m.drawPath(o,g),_=!0}return _?new a(p):null}export{e as ADWAITA_ICON_GRID,t as DEFAULT_ICON_COLOR,n as DEFAULT_ICON_COLOR_DARK,r as extractIconPaths,i as extractPathData,renderSymbolicIcon};
|
package/lib/esm/widgets/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{AdwBreakpoint as e,addBreakpoints as t,evaluateBreakpointCondition as ee,observeViewSize as te,observeWindowSize as ne,parseBreakpointCondition as re}from"./breakpoint.js";import{GTK_ALIGN as ie}from"./gtk-align.js";import{DEFAULT_ICON_PIXEL_SIZE as ae,GTK_ICON_SIZE_NICKS as oe,GTK_ICON_SIZE_PIXELS as se,PIXEL_SIZE_UNSET as ce,isGtkIconSizeNick as le}from"./gtk-icon-size.js";import{applyConstructProps as ue,nsAlignment as de}from"./construct-props.js";import{lengthValue as fe}from"./ns-length.js";import{SimpleAction as pe,SimpleActionGroup as me,activateWidgetAction as he,findActionGroup as ge,insertActionGroup as _e}from"./actions.js";import{NOTIFY_HEXPAND as ve,NOTIFY_VEXPAND as ye,withGtkWidgetLayout as be}from"./widget-layout.js";import{ADWAITA_NS_ACCENT_RULES as xe,adwaitaNsAccentColor as Se,adwaitaNsAccentCss as Ce}from"./accent-theme.js";import{adwaitaColorScheme as we,isThemeIconColor as Te,onAdwaitaColorSchemeChanged as Ee,setAdwaitaColorScheme as De,themeIconColor as Oe,toggleAdwaitaColorScheme as ke}from"./color-scheme.js";import{ADWAITA_ICON_GRID as Ae,DEFAULT_ICON_COLOR as je,DEFAULT_ICON_COLOR_DARK as Me,extractIconPaths as Ne,extractPathData as Pe}from"./icon-path.js";import{ICON_FALLBACK_NAME as Fe,compiledIconNames as Ie,iconValueKind as Le,isIconAvailable as Re,resolveIconSource as ze}from"./icon-theme.js";import{renderSymbolicIcon as Be}from"./icons.js";import{DEFAULT_GTK_IMAGE_SIZE as Ve,GtkImage as n}from"./gtk-image.js";import{GtkLabel as r}from"./gtk-label.js";import{DEFAULT_REVEALER_TRANSITION_DURATION as He,DEFAULT_STACK_TRANSITION_DURATION as Ue,GTK_REVEALER_TRANSITIONS as We,GTK_STACK_TRANSITIONS as Ge,transitionNick as Ke}from"./transition-type.js";import{ADW_DIALOG_PRESENTATION_MODES as qe,DEFAULT_DIALOG_PRESENTATION_MODE as Je,dialogPresentationMode as Ye,findDialogHost as Xe,surfaceSize as Ze}from"./window-state.js";import{AdwAboutDialog as i,CLOSED as Qe}from"./adw-about-dialog.js";import{ACTIVATED as $e,AdwActionRow as a}from"./adw-action-row.js";import{AdwAlertDialog as et,AdwAlertResponses as tt}from"./adw-alert-dialog.js";import{CLOSE_ATTEMPT as nt,NOTIFY_OPEN as rt,SHEET_CLOSE as it}from"./bottom-sheet-state.js";import{SHEET_CONTENT_BOTTOM_GAP as at,bottomSheetInsetPadding as ot}from"./bottom-sheet-insets.js";import{attachRowPressFeedback as st}from"./row-press.js";import{AdwBottomSheet as o,bottomSheetPanel as ct}from"./adw-bottom-sheet.js";import{GtkWindow as s}from"./gtk-window.js";import{ADW_WINDOW_CLASS as lt,AdwWindowBase as ut}from"./window-base.js";import{AdwApplicationWindow as c}from"./adw-application-window.js";import{avatarInitials as dt}from"./avatar-color.js";import{AVATAR_DEFAULT_ICON as ft}from"./avatar-view.js";import{AdwAvatar as l,DEFAULT_AVATAR_SIZE as pt}from"./adw-avatar.js";import{DEFAULT_CLAMP_MAX_SIZE as mt,DEFAULT_SPINNER_SIZE as ht}from"./chrome.js";import{AdwBanner as u,BUTTON_CLICKED as gt}from"./adw-banner.js";import{AdwBin as d}from"./adw-bin.js";import{AdwButtonContent as f,NOTIFY_BUTTON_CONTENT_CAN_SHRINK as _t,NOTIFY_BUTTON_CONTENT_ICON_NAME as vt,NOTIFY_BUTTON_CONTENT_LABEL as yt,NOTIFY_BUTTON_CONTENT_USE_UNDERLINE as bt}from"./adw-button-content.js";import{AdwButtonRow as p}from"./adw-button-row.js";import{CarouselScrollSync as xt,DEFAULT_CAROUSEL_PAGE_WIDTH as St,applyMarkerClasses as Ct,carouselDotClasses as wt,carouselNotifyPayload as Tt,carouselPositionAtOffset as Et,carouselScrollOffset as Dt,createCarouselState as Ot,indicatorMarkerClasses as kt,normalizeCarouselPageWidth as At}from"./carousel-state.js";import{AdwCarousel as m,NOTIFY_N_PAGES as jt,NOTIFY_POSITION as Mt,PAGE_CHANGED as Nt}from"./adw-carousel.js";import{AdwCarouselIndicatorDots as h}from"./adw-carousel-indicator-dots.js";import{AdwCarouselIndicatorLines as g}from"./adw-carousel-indicator-lines.js";import{AdwClamp as _}from"./adw-clamp.js";import{AdwComboRow as v,ComboState as Pt,NOTIFY_SELECTED as Ft}from"./adw-combo-row.js";import{ADW_DIALOG_CLASS as It,ADW_DIALOG_CLOSED as Lt,ADW_DIALOG_CLOSE_ATTEMPT as Rt,AdwDialog as y}from"./adw-dialog.js";import{AdwImageButton as b,DEFAULT_ICON_BUTTON_ICON_SIZE as zt}from"./adw-image-button.js";import{AdwEntryRow as x,NOTIFY_ACTIVATES_DEFAULT as Bt,NOTIFY_EDITABLE as Vt,NOTIFY_MAX_LENGTH as Ht,NOTIFY_SHOW_APPLY_BUTTON as Ut,NOTIFY_TEXT as Wt,NOTIFY_TEXT_LENGTH as Gt,SIGNAL_APPLY as Kt,SIGNAL_ENTRY_ACTIVATED as qt}from"./adw-entry-row.js";import{AdwExpanderRow as S,NOTIFY_ENABLE_EXPANSION as Jt,NOTIFY_EXPANDED as Yt,NOTIFY_SHOW_ENABLE_SWITCH as Xt,NS_EXPANDER_ARROW_DISABLED_OPACITY as Zt}from"./adw-expander-row.js";import{AdwWindowTitle as C}from"./adw-window-title.js";import{AdwHeaderBar as w}from"./adw-header-bar.js";import{AdwViewStackPage as Qt}from"./view-stack-page.js";import{AdwViewStack as T,NOTIFY_VISIBLE_CHILD as $t}from"./adw-view-stack.js";import{AdwViewSwitcherBase as en,NOTIFY_SELECTED as tn}from"./view-switcher-base.js";import{AdwInlineViewSwitcher as E}from"./adw-inline-view-switcher.js";import{NsNavigationSplitViewState as nn,NsOverlaySplitViewState as rn,splitViewColumns as an}from"./split-view-state.js";import{AdwSplitViewBase as on,NOTIFY_SHOW_SIDEBAR as sn}from"./split-view-base.js";import{AdwNavigationSplitView as D}from"./adw-navigation-split-view.js";import{AdwNavigationPage as O}from"./adw-navigation-page.js";import{NOTIFY_VISIBLE_PAGE as cn}from"./navigation-stack.js";import{AdwNavigationView as k}from"./adw-navigation-view.js";import{AdwOverlaySplitView as A}from"./adw-overlay-split-view.js";import{AdwPasswordEntryRow as j}from"./adw-password-entry-row.js";import{AdwPreferencesDialog as M,CLOSED as ln}from"./adw-preferences-dialog.js";import{AdwPreferencesGroup as N}from"./adw-preferences-group.js";import{AdwPreferencesPage as P}from"./adw-preferences-page.js";import{SHORTCUT_LABEL_CAP_TEXT_CLASS as un,SHORTCUT_LABEL_CLASS as dn,SHORTCUT_LABEL_DIMMED_CLASS as fn,SHORTCUT_LABEL_DISABLED_CLASS as pn,SHORTCUT_LABEL_KEYCAP_CLASS as mn,SHORTCUT_LABEL_KEYS_CLASS as hn,SHORTCUT_LABEL_SIDE_CLASS as gn,SHORTCUT_LABEL_SPACED_CLASS as _n,shortcutLabelDirection as vn,shortcutLabelPlatform as yn,shortcutLabelRenderPlan as bn}from"./shortcut-label.js";import{AdwShortcutLabel as F}from"./adw-shortcut-label.js";import{AdwSidebarItem as xn,AdwSidebarSection as Sn}from"../values/sidebar.js";import{AdwSidebar as I,NOTIFY_SELECTED as Cn}from"./adw-sidebar.js";import{AdwSpinRow as L,NOTIFY_VALUE as wn,SpinState as Tn}from"./adw-spin-row.js";import{AdwSpinner as En}from"./adw-spinner.js";import{GROUP_DIVIDER_API as Dn,assertPopupMenuAssignable as On,fillPopupMenu as kn,openPopupMenu as An,refuseMenuString as jn}from"./popup-menu.js";import{showMenuPopup as Mn}from"./popup-menu-view.js";import{DEFAULT_SCROLLBAR_POLICY as Nn,GTK_POLICY_TYPES as Pn,normalizePolicy as Fn,policyScrolls as In,scrollOrientationFor as Ln}from"./scrolled-window-policy.js";import{AdwSplitButton as R,MENU_TAPPED as Rn}from"./adw-split-button.js";import{AdwStatusPage as z}from"./adw-status-page.js";import{AdwSwitchRow as B,NOTIFY_ACTIVE as zn}from"./adw-switch-row.js";import{AdwTabPage as Bn}from"../values/tab-page.js";import{applyTabViewVisibility as Vn,createTabViewState as Hn,tabBarVisibility as Un,tabCloseVisibilities as Wn,tabLabelText as Gn,tabPageVisibilities as Kn,tabTooltipText as qn,tabViewNotifyPayload as Jn}from"./tab-view-state.js";import{AdwTabView as V,CLOSE_PAGE as Yn,NOTIFY_SELECTED_PAGE as Xn,PAGES_CHANGED as Zn}from"./adw-tab-view.js";import{AdwToast as Qn,AdwToastOverlay as H,AdwToastQueue as $n,DEFAULT_TOAST_TIMEOUT as er}from"./adw-toast-overlay.js";import{AdwToggle as tr}from"./adw-toggle.js";import{AdwToggleGroup as U,NOTIFY_SELECTED as nr,ToggleGroupState as rr}from"./adw-toggle-group.js";import{WINDOW_BACKGROUND as ir,configureSystemBars as ar,systemBarsConfig as or}from"./system-bars.js";import{AdwToolbarView as W}from"./adw-toolbar-view.js";import{AdwViewSwitcher as G}from"./adw-view-switcher.js";import{AdwViewSwitcherBar as K}from"./adw-view-switcher-bar.js";import{AdwWindow as q}from"./adw-window.js";import{AdwWrapBox as J}from"./adw-wrap-box.js";import{applyAdwaitaNsAccent as sr,clearAdwaitaNsAccent as cr}from"./adw-accent.js";import{GtkActionBar as Y}from"./gtk-action-bar.js";import{DEFAULT_BOX_SPACING as lr,boxChildTrack as ur,boxSpacingChanges as dr,boxTrackPlan as fr,normalizeBoxSpacing as pr}from"./box-layout.js";import{GtkBox as X}from"./gtk-box.js";import{buttonSlotAfterWrite as mr,buttonSlotDetaches as hr}from"./button-slot.js";import{GTK_BUTTON_CLICKED as gr,GTK_BUTTON_LABEL_CLASS as _r,GtkButton as Z}from"./gtk-button.js";import{GtkDropDown as Q,NOTIFY_SELECTED as vr}from"./gtk-drop-down.js";import{GTK_CHECK_BUTTON_ACTIVATE as yr,GTK_CHECK_BUTTON_CHECKED_CLASS as br,GTK_CHECK_BUTTON_INCONSISTENT_CLASS as xr,GTK_CHECK_BUTTON_TOGGLED as Sr,GtkCheckButton as $,NOTIFY_CHECK_ACTIVE as Cr,NOTIFY_CHECK_INCONSISTENT as wr,NOTIFY_CHECK_LABEL as Tr,NOTIFY_CHECK_USE_UNDERLINE as Er}from"./gtk-check-button.js";import{DRAWING_AREA_REFUSAL as Dr,GtkDrawingArea as Or}from"./gtk-drawing-area.js";import{ACTIVATE as kr,CHANGED as Ar,GtkEntry as jr,NOTIFY_EDITABLE as Mr,NOTIFY_MAX_LENGTH as Nr,NOTIFY_PLACEHOLDER_TEXT as Pr,NOTIFY_TEXT as Fr,NOTIFY_TEXT_LENGTH as Ir}from"./gtk-entry.js";import{gridChildAt as Lr,gridGap as Rr,gridSpacing as zr,gridTrackCounts as Br}from"./grid-state.js";import{GtkGrid as Vr}from"./gtk-grid.js";import{GtkFrame as Hr}from"./gtk-frame.js";import{DEFAULT_LIST_SELECTION_MODE as Ur,GTK_SELECTION_MODES as Wr,selectionAfterModeChange as Gr,selectionAfterTap as Kr,selectionMode as qr}from"./list-box-state.js";import{GtkListBox as Jr,LIST_BOX_ROW_ACTIVATED as Yr,LIST_BOX_ROW_SELECTED as Xr,LIST_ROW_SELECTED_CLASS as Zr}from"./gtk-list-box.js";import{GtkMenuButton as Qr,MENU_ITEM_ACTIVATED as $r}from"./gtk-menu-button.js";import{GtkPopoverMenu as ei}from"./gtk-popover-menu.js";import{GtkOverlay as ti}from"./gtk-overlay.js";import{revealerChildVisibility as ni}from"./revealer-state.js";import{GtkRevealer as ri,NOTIFY_REVEAL_CHILD as ii}from"./gtk-revealer.js";import{GtkScrolledWindow as ai}from"./gtk-scrolled-window.js";import{GtkApplicationWindow as oi}from"./gtk-application-window.js";import{GtkSeparator as si}from"./gtk-separator.js";import{GtkStackPage as ci}from"./stack-page.js";import{GtkStack as li,NOTIFY_STACK_VISIBLE_CHILD as ui,NOTIFY_STACK_VISIBLE_CHILD_NAME as di}from"./gtk-stack.js";import{GTK_WRAP_MODES as fi,GtkTextView as pi,NOTIFY_TEXT_VIEW_TEXT as mi}from"./gtk-text-view.js";import{GTK_TOGGLE_BUTTON_CHECKED_CLASS as hi,GTK_TOGGLE_BUTTON_TOGGLED as gi,GtkToggleButton as _i,NOTIFY_TOGGLE_ACTIVE as vi}from"./gtk-toggle-button.js";import{AdwSliderRow as yi,NOTIFY_SLIDER_VALUE as bi}from"./adw-slider-row.js";import{DATA_GRID_HEADER_CELL_CLASS as xi,DATA_GRID_HEADER_ROW_CLASS as Si,DATA_GRID_SECTION_CELL_CLASS as Ci,dataGridCellClass as wi,dataGridItemSpec as Ti,dataGridRowClass as Ei,dataGridShapeKey as Di,dataGridTracksKey as Oi,parseDataGridWidth as ki}from"./data-grid-model.js";import{AdwDataGrid as Ai,ROW_ACTIVATED as ji}from"./adw-data-grid.js";import{padForSystemInsets as Mi,padSheetForSystemInsets as Ni}from"./system-insets.js";import{labelDisplayText as Pi,labelMarkupIsUnparseable as Fi}from"@gjsify/adwaita-core";const Ii={AdwPreferencesPage:P,AdwPreferencesGroup:N,AdwActionRow:a,AdwSwitchRow:B,AdwEntryRow:x,AdwPasswordEntryRow:j,GtkEntry:jr,AdwComboRow:v,GtkDropDown:Q,AdwSpinRow:L,AdwSliderRow:yi,AdwExpanderRow:S,GtkButton:Z,GtkBox:X,GtkGrid:Vr,GtkListBox:Jr,AdwWindow:q,AdwApplicationWindow:c,AdwDialog:y,GtkActionBar:Y,AdwBin:d,GtkOverlay:ti,GtkRevealer:ri,GtkScrolledWindow:ai,GtkWindow:s,GtkApplicationWindow:oi,GtkStack:li,GtkToggleButton:_i,GtkCheckButton:$,GtkDrawingArea:Or,GtkFrame:Hr,GtkSeparator:si,GtkTextView:pi,GtkLabel:r,AdwImageButton:b,GtkMenuButton:Qr,GtkImage:n,AdwBanner:u,AdwAvatar:l,AdwWindowTitle:C,AdwClamp:_,AdwHeaderBar:w,AdwToolbarView:W,AdwWrapBox:J,AdwDataGrid:Ai,AdwSpinner:En,AdwStatusPage:z,AdwButtonRow:p,AdwButtonContent:f,AdwSplitButton:R,AdwToggleGroup:U,AdwShortcutLabel:F,AdwViewStack:T,AdwViewSwitcher:G,AdwViewSwitcherBar:K,AdwInlineViewSwitcher:E,AdwTabView:V,AdwCarousel:m,AdwCarouselIndicatorDots:h,AdwCarouselIndicatorLines:g,AdwNavigationPage:O,AdwNavigationView:k,AdwNavigationSplitView:D,AdwOverlaySplitView:A,AdwSidebar:I,AdwBottomSheet:o,AdwToastOverlay:H,AdwAboutDialog:i,AdwPreferencesDialog:M};let Li=!1;function registerAdwaitaElements(){if(!Li&&typeof registerElement==`function`){for(let[e,t]of Object.entries(Ii))registerElement(e,()=>t);Li=!0}}export{Qe as ABOUT_CLOSED,$e as ACTIVATED,Ae as ADWAITA_ICON_GRID,xe as ADWAITA_NS_ACCENT_RULES,It as ADW_DIALOG_CLASS,Lt as ADW_DIALOG_CLOSED,Rt as ADW_DIALOG_CLOSE_ATTEMPT,qe as ADW_DIALOG_PRESENTATION_MODES,lt as ADW_WINDOW_CLASS,ft as AVATAR_DEFAULT_ICON,i as AdwAboutDialog,a as AdwActionRow,et as AdwAlertDialog,tt as AdwAlertResponses,c as AdwApplicationWindow,l as AdwAvatar,u as AdwBanner,d as AdwBin,o as AdwBottomSheet,e as AdwBreakpoint,f as AdwButtonContent,p as AdwButtonRow,m as AdwCarousel,h as AdwCarouselIndicatorDots,g as AdwCarouselIndicatorLines,_ as AdwClamp,v as AdwComboRow,Ai as AdwDataGrid,y as AdwDialog,x as AdwEntryRow,S as AdwExpanderRow,w as AdwHeaderBar,b as AdwImageButton,E as AdwInlineViewSwitcher,O as AdwNavigationPage,D as AdwNavigationSplitView,k as AdwNavigationView,A as AdwOverlaySplitView,j as AdwPasswordEntryRow,M as AdwPreferencesDialog,N as AdwPreferencesGroup,P as AdwPreferencesPage,F as AdwShortcutLabel,I as AdwSidebar,xn as AdwSidebarItem,Sn as AdwSidebarSection,yi as AdwSliderRow,L as AdwSpinRow,En as AdwSpinner,R as AdwSplitButton,on as AdwSplitViewBase,z as AdwStatusPage,B as AdwSwitchRow,Bn as AdwTabPage,V as AdwTabView,Qn as AdwToast,H as AdwToastOverlay,$n as AdwToastQueue,tr as AdwToggle,U as AdwToggleGroup,W as AdwToolbarView,T as AdwViewStack,Qt as AdwViewStackPage,G as AdwViewSwitcher,K as AdwViewSwitcherBar,en as AdwViewSwitcherBase,q as AdwWindow,ut as AdwWindowBase,C as AdwWindowTitle,J as AdwWrapBox,gt as BUTTON_CLICKED,nt as CLOSE_ATTEMPT,Yn as CLOSE_PAGE,xt as CarouselScrollSync,Pt as ComboState,xi as DATA_GRID_HEADER_CELL_CLASS,Si as DATA_GRID_HEADER_ROW_CLASS,Ci as DATA_GRID_SECTION_CELL_CLASS,pt as DEFAULT_AVATAR_SIZE,lr as DEFAULT_BOX_SPACING,St as DEFAULT_CAROUSEL_PAGE_WIDTH,mt as DEFAULT_CLAMP_MAX_SIZE,Je as DEFAULT_DIALOG_PRESENTATION_MODE,Ve as DEFAULT_GTK_IMAGE_SIZE,zt as DEFAULT_ICON_BUTTON_ICON_SIZE,je as DEFAULT_ICON_COLOR,Me as DEFAULT_ICON_COLOR_DARK,ae as DEFAULT_ICON_PIXEL_SIZE,Ur as DEFAULT_LIST_SELECTION_MODE,He as DEFAULT_REVEALER_TRANSITION_DURATION,Nn as DEFAULT_SCROLLBAR_POLICY,ht as DEFAULT_SPINNER_SIZE,Ue as DEFAULT_STACK_TRANSITION_DURATION,er as DEFAULT_TOAST_TIMEOUT,Dr as DRAWING_AREA_REFUSAL,kr as ENTRY_ACTIVATE,Ar as ENTRY_CHANGED,Dn as GROUP_DIVIDER_API,ie as GTK_ALIGN,gr as GTK_BUTTON_CLICKED,_r as GTK_BUTTON_LABEL_CLASS,yr as GTK_CHECK_BUTTON_ACTIVATE,br as GTK_CHECK_BUTTON_CHECKED_CLASS,xr as GTK_CHECK_BUTTON_INCONSISTENT_CLASS,Sr as GTK_CHECK_BUTTON_TOGGLED,oe as GTK_ICON_SIZE_NICKS,se as GTK_ICON_SIZE_PIXELS,Pn as GTK_POLICY_TYPES,We as GTK_REVEALER_TRANSITIONS,Wr as GTK_SELECTION_MODES,Ge as GTK_STACK_TRANSITIONS,hi as GTK_TOGGLE_BUTTON_CHECKED_CLASS,gi as GTK_TOGGLE_BUTTON_TOGGLED,fi as GTK_WRAP_MODES,Y as GtkActionBar,oi as GtkApplicationWindow,X as GtkBox,Z as GtkButton,$ as GtkCheckButton,Or as GtkDrawingArea,Q as GtkDropDown,jr as GtkEntry,Hr as GtkFrame,Vr as GtkGrid,n as GtkImage,r as GtkLabel,Jr as GtkListBox,Qr as GtkMenuButton,ti as GtkOverlay,ei as GtkPopoverMenu,ri as GtkRevealer,ai as GtkScrolledWindow,si as GtkSeparator,li as GtkStack,ci as GtkStackPage,pi as GtkTextView,_i as GtkToggleButton,s as GtkWindow,Fe as ICON_FALLBACK_NAME,Yr as LIST_BOX_ROW_ACTIVATED,Xr as LIST_BOX_ROW_SELECTED,Zr as LIST_ROW_SELECTED_CLASS,$r as MENU_ITEM_ACTIVATED,Rn as MENU_TAPPED,Bt as NOTIFY_ACTIVATES_DEFAULT,zn as NOTIFY_ACTIVE,_t as NOTIFY_BUTTON_CONTENT_CAN_SHRINK,vt as NOTIFY_BUTTON_CONTENT_ICON_NAME,yt as NOTIFY_BUTTON_CONTENT_LABEL,bt as NOTIFY_BUTTON_CONTENT_USE_UNDERLINE,Cr as NOTIFY_CHECK_ACTIVE,wr as NOTIFY_CHECK_INCONSISTENT,Tr as NOTIFY_CHECK_LABEL,Er as NOTIFY_CHECK_USE_UNDERLINE,vr as NOTIFY_DROP_DOWN_SELECTED,Vt as NOTIFY_EDITABLE,Jt as NOTIFY_ENABLE_EXPANSION,Mr as NOTIFY_ENTRY_EDITABLE,Nr as NOTIFY_ENTRY_MAX_LENGTH,Fr as NOTIFY_ENTRY_TEXT,Ir as NOTIFY_ENTRY_TEXT_LENGTH,Yt as NOTIFY_EXPANDED,ve as NOTIFY_HEXPAND,Ht as NOTIFY_MAX_LENGTH,jt as NOTIFY_N_PAGES,rt as NOTIFY_OPEN,Pr as NOTIFY_PLACEHOLDER_TEXT,Mt as NOTIFY_POSITION,ii as NOTIFY_REVEAL_CHILD,Ft as NOTIFY_SELECTED,Xn as NOTIFY_SELECTED_PAGE,Ut as NOTIFY_SHOW_APPLY_BUTTON,Xt as NOTIFY_SHOW_ENABLE_SWITCH,sn as NOTIFY_SHOW_SIDEBAR,Cn as NOTIFY_SIDEBAR_SELECTED,bi as NOTIFY_SLIDER_VALUE,ui as NOTIFY_STACK_VISIBLE_CHILD,di as NOTIFY_STACK_VISIBLE_CHILD_NAME,Wt as NOTIFY_TEXT,Gt as NOTIFY_TEXT_LENGTH,mi as NOTIFY_TEXT_VIEW_TEXT,vi as NOTIFY_TOGGLE_ACTIVE,nr as NOTIFY_TOGGLE_SELECTED,wn as NOTIFY_VALUE,ye as NOTIFY_VEXPAND,tn as NOTIFY_VIEW_SELECTED,$t as NOTIFY_VISIBLE_CHILD,cn as NOTIFY_VISIBLE_PAGE,Zt as NS_EXPANDER_ARROW_DISABLED_OPACITY,nn as NsNavigationSplitViewState,rn as NsOverlaySplitViewState,Zn as PAGES_CHANGED,Nt as PAGE_CHANGED,ce as PIXEL_SIZE_UNSET,ln as PREFERENCES_CLOSED,ji as ROW_ACTIVATED,it as SHEET_CLOSE,at as SHEET_CONTENT_BOTTOM_GAP,un as SHORTCUT_LABEL_CAP_TEXT_CLASS,dn as SHORTCUT_LABEL_CLASS,fn as SHORTCUT_LABEL_DIMMED_CLASS,pn as SHORTCUT_LABEL_DISABLED_CLASS,mn as SHORTCUT_LABEL_KEYCAP_CLASS,hn as SHORTCUT_LABEL_KEYS_CLASS,gn as SHORTCUT_LABEL_SIDE_CLASS,_n as SHORTCUT_LABEL_SPACED_CLASS,Kt as SIGNAL_APPLY,qt as SIGNAL_ENTRY_ACTIVATED,pe as SimpleAction,me as SimpleActionGroup,Tn as SpinState,rr as ToggleGroupState,ir as WINDOW_BACKGROUND,he as activateWidgetAction,t as addBreakpoints,we as adwaitaColorScheme,Se as adwaitaNsAccentColor,Ce as adwaitaNsAccentCss,sr as applyAdwaitaNsAccent,ue as applyConstructProps,Ct as applyMarkerClasses,Vn as applyTabViewVisibility,On as assertPopupMenuAssignable,st as attachRowPressFeedback,dt as avatarInitials,ot as bottomSheetInsetPadding,ct as bottomSheetPanel,ur as boxChildTrack,dr as boxSpacingChanges,fr as boxTrackPlan,mr as buttonSlotAfterWrite,hr as buttonSlotDetaches,wt as carouselDotClasses,Tt as carouselNotifyPayload,Et as carouselPositionAtOffset,Dt as carouselScrollOffset,cr as clearAdwaitaNsAccent,Ie as compiledIconNames,ar as configureSystemBars,Ot as createCarouselState,Hn as createTabViewState,wi as dataGridCellClass,Ti as dataGridItemSpec,Ei as dataGridRowClass,Di as dataGridShapeKey,Oi as dataGridTracksKey,Ye as dialogPresentationMode,ee as evaluateBreakpointCondition,Ne as extractIconPaths,Pe as extractPathData,kn as fillPopupMenu,ge as findActionGroup,Xe as findDialogHost,Lr as gridChildAt,Rr as gridGap,zr as gridSpacing,Br as gridTrackCounts,Le as iconValueKind,kt as indicatorMarkerClasses,_e as insertActionGroup,le as isGtkIconSizeNick,Re as isIconAvailable,Te as isThemeIconColor,Pi as labelDisplayText,Fi as labelMarkupIsUnparseable,fe as lengthValue,pr as normalizeBoxSpacing,At as normalizeCarouselPageWidth,Fn as normalizePolicy,de as nsAlignment,te as observeViewSize,ne as observeWindowSize,Ee as onAdwaitaColorSchemeChanged,An as openPopupMenu,Mi as padForSystemInsets,Ni as padSheetForSystemInsets,re as parseBreakpointCondition,ki as parseDataGridWidth,In as policyScrolls,jn as refuseMenuString,registerAdwaitaElements,Be as renderSymbolicIcon,ze as resolveIconSource,ni as revealerChildVisibility,Ln as scrollOrientationFor,Gr as selectionAfterModeChange,Kr as selectionAfterTap,qr as selectionMode,De as setAdwaitaColorScheme,vn as shortcutLabelDirection,yn as shortcutLabelPlatform,bn as shortcutLabelRenderPlan,Mn as showMenuPopup,an as splitViewColumns,Ze as surfaceSize,or as systemBarsConfig,Un as tabBarVisibility,Wn as tabCloseVisibilities,Gn as tabLabelText,Kn as tabPageVisibilities,qn as tabTooltipText,Jn as tabViewNotifyPayload,Oe as themeIconColor,ke as toggleAdwaitaColorScheme,Ke as transitionNick,be 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{ADWAITA_NS_ACCENT_RULES as xe,adwaitaNsAccentColor as Se,adwaitaNsAccentCss as Ce}from"./accent-theme.js";import{GtkLabel as n}from"./gtk-label.js";import{adwaitaColorScheme as we,isThemeIconColor as Te,onAdwaitaColorSchemeChanged as Ee,setAdwaitaColorScheme as De,themeIconColor as Oe,toggleAdwaitaColorScheme as ke}from"./color-scheme.js";import{ADWAITA_ICON_GRID as Ae,DEFAULT_ICON_COLOR as je,DEFAULT_ICON_COLOR_DARK as Me,extractIconPaths as Ne,extractPathData as Pe}from"./icon-path.js";import{ICON_FALLBACK_NAME as Fe,compiledIconNames as Ie,iconValueKind as Le,isIconAvailable as Re,resolveIconSource as ze}from"./icon-theme.js";import{renderSymbolicIcon as Be}from"./icons.js";import{DEFAULT_GTK_IMAGE_SIZE as Ve,GtkImage as r}from"./gtk-image.js";import{ACTIVATED as He,AdwActionRow as i}from"./adw-action-row.js";import{AdwPreferencesGroup as a}from"./adw-preferences-group.js";import{DEFAULT_REVEALER_TRANSITION_DURATION as Ue,DEFAULT_STACK_TRANSITION_DURATION as We,GTK_REVEALER_TRANSITIONS as Ge,GTK_STACK_TRANSITIONS as Ke,transitionNick as qe}from"./transition-type.js";import{ADW_DIALOG_PRESENTATION_MODES as Je,DEFAULT_DIALOG_PRESENTATION_MODE as Ye,dialogPresentationMode as Xe,findDialogHost as Ze,surfaceSize as Qe}from"./window-state.js";import{AdwAboutDialog as o,CLOSED as $e}from"./adw-about-dialog.js";import{AdwAlertDialog as et,AdwAlertResponses as tt}from"./adw-alert-dialog.js";import{CLOSE_ATTEMPT as nt,NOTIFY_OPEN as rt,SHEET_CLOSE as it}from"./bottom-sheet-state.js";import{SHEET_CONTENT_BOTTOM_GAP as at,bottomSheetInsetPadding as ot}from"./bottom-sheet-insets.js";import{attachRowPressFeedback as st}from"./row-press.js";import{AdwBottomSheet as s,bottomSheetPanel as ct}from"./adw-bottom-sheet.js";import{GtkWindow as c}from"./gtk-window.js";import{ADW_WINDOW_CLASS as lt,AdwWindowBase as ut}from"./window-base.js";import{AdwApplicationWindow as l}from"./adw-application-window.js";import{avatarInitials as dt}from"./avatar-color.js";import{AVATAR_DEFAULT_ICON as ft}from"./avatar-view.js";import{AdwAvatar as u,DEFAULT_AVATAR_SIZE as pt}from"./adw-avatar.js";import{DEFAULT_CLAMP_MAX_SIZE as mt,DEFAULT_SPINNER_SIZE as ht}from"./chrome.js";import{AdwBanner as d,BUTTON_CLICKED as gt}from"./adw-banner.js";import{AdwBin as f}from"./adw-bin.js";import{AdwButtonContent as p,NOTIFY_BUTTON_CONTENT_CAN_SHRINK as _t,NOTIFY_BUTTON_CONTENT_ICON_NAME as vt,NOTIFY_BUTTON_CONTENT_LABEL as yt,NOTIFY_BUTTON_CONTENT_USE_UNDERLINE as bt}from"./adw-button-content.js";import{AdwButtonRow as m}from"./adw-button-row.js";import{CarouselScrollSync as xt,DEFAULT_CAROUSEL_PAGE_WIDTH as St,applyMarkerClasses as Ct,carouselDotClasses as wt,carouselNotifyPayload as Tt,carouselPositionAtOffset as Et,carouselScrollOffset as Dt,createCarouselState as Ot,indicatorMarkerClasses as kt,normalizeCarouselPageWidth as At}from"./carousel-state.js";import{AdwCarousel as h,NOTIFY_N_PAGES as jt,NOTIFY_POSITION as Mt,PAGE_CHANGED as Nt}from"./adw-carousel.js";import{AdwCarouselIndicatorDots as g}from"./adw-carousel-indicator-dots.js";import{AdwCarouselIndicatorLines as _}from"./adw-carousel-indicator-lines.js";import{AdwClamp as v}from"./adw-clamp.js";import{AdwComboRow as y,ComboState as Pt,NOTIFY_SELECTED as Ft}from"./adw-combo-row.js";import{ADW_DIALOG_CLASS as It,ADW_DIALOG_CLOSED as Lt,ADW_DIALOG_CLOSE_ATTEMPT as Rt,AdwDialog as b}from"./adw-dialog.js";import{AdwImageButton as x,DEFAULT_ICON_BUTTON_ICON_SIZE as zt}from"./adw-image-button.js";import{AdwEntryRow as S,NOTIFY_ACTIVATES_DEFAULT as Bt,NOTIFY_EDITABLE as Vt,NOTIFY_MAX_LENGTH as Ht,NOTIFY_SHOW_APPLY_BUTTON as Ut,NOTIFY_TEXT as Wt,NOTIFY_TEXT_LENGTH as Gt,SIGNAL_APPLY as Kt,SIGNAL_ENTRY_ACTIVATED as qt}from"./adw-entry-row.js";import{AdwExpanderRow as C,NOTIFY_ENABLE_EXPANSION as Jt,NOTIFY_EXPANDED as Yt,NOTIFY_SHOW_ENABLE_SWITCH as Xt,NS_EXPANDER_ARROW_DISABLED_OPACITY as Zt}from"./adw-expander-row.js";import{AdwWindowTitle as w}from"./adw-window-title.js";import{AdwHeaderBar as T}from"./adw-header-bar.js";import{AdwViewStackPage as Qt}from"./view-stack-page.js";import{AdwViewStack as E,NOTIFY_VISIBLE_CHILD as $t}from"./adw-view-stack.js";import{AdwViewSwitcherBase as en,NOTIFY_SELECTED as tn}from"./view-switcher-base.js";import{AdwInlineViewSwitcher as D}from"./adw-inline-view-switcher.js";import{NsNavigationSplitViewState as nn,NsOverlaySplitViewState as rn,splitViewColumns as an}from"./split-view-state.js";import{AdwSplitViewBase as on,NOTIFY_SHOW_SIDEBAR as sn}from"./split-view-base.js";import{AdwNavigationSplitView as O}from"./adw-navigation-split-view.js";import{AdwNavigationPage as k}from"./adw-navigation-page.js";import{NOTIFY_VISIBLE_PAGE as cn}from"./navigation-stack.js";import{AdwNavigationView as A}from"./adw-navigation-view.js";import{AdwOverlaySplitView as j}from"./adw-overlay-split-view.js";import{AdwPasswordEntryRow as M}from"./adw-password-entry-row.js";import{AdwPreferencesDialog as N,CLOSED as ln}from"./adw-preferences-dialog.js";import{AdwPreferencesPage as P}from"./adw-preferences-page.js";import{SHORTCUT_LABEL_CAP_TEXT_CLASS as un,SHORTCUT_LABEL_CLASS as dn,SHORTCUT_LABEL_DIMMED_CLASS as fn,SHORTCUT_LABEL_DISABLED_CLASS as pn,SHORTCUT_LABEL_KEYCAP_CLASS as mn,SHORTCUT_LABEL_KEYS_CLASS as hn,SHORTCUT_LABEL_SIDE_CLASS as gn,SHORTCUT_LABEL_SPACED_CLASS as _n,shortcutLabelDirection as vn,shortcutLabelPlatform as yn,shortcutLabelRenderPlan as bn}from"./shortcut-label.js";import{AdwShortcutLabel as F}from"./adw-shortcut-label.js";import{AdwSidebarItem as xn,AdwSidebarSection as Sn}from"../values/sidebar.js";import{AdwSidebar as I,NOTIFY_SELECTED as Cn}from"./adw-sidebar.js";import{AdwSpinRow as L,NOTIFY_VALUE as wn,SpinState as Tn}from"./adw-spin-row.js";import{AdwSpinner as En}from"./adw-spinner.js";import{GROUP_DIVIDER_API as Dn,assertPopupMenuAssignable as On,fillPopupMenu as kn,openPopupMenu as An,refuseMenuString as jn}from"./popup-menu.js";import{showMenuPopup as Mn}from"./popup-menu-view.js";import{DEFAULT_SCROLLBAR_POLICY as Nn,GTK_POLICY_TYPES as Pn,normalizePolicy as Fn,policyScrolls as In,scrollOrientationFor as Ln}from"./scrolled-window-policy.js";import{AdwSplitButton as R,MENU_TAPPED as Rn}from"./adw-split-button.js";import{AdwStatusPage as z}from"./adw-status-page.js";import{AdwSwitchRow as B,NOTIFY_ACTIVE as zn}from"./adw-switch-row.js";import{AdwTabPage as Bn}from"../values/tab-page.js";import{applyTabViewVisibility as Vn,createTabViewState as Hn,tabBarVisibility as Un,tabCloseVisibilities as Wn,tabLabelText as Gn,tabPageVisibilities as Kn,tabTooltipText as qn,tabViewNotifyPayload as Jn}from"./tab-view-state.js";import{AdwTabView as V,CLOSE_PAGE as Yn,NOTIFY_SELECTED_PAGE as Xn,PAGES_CHANGED as Zn}from"./adw-tab-view.js";import{AdwToast as Qn,AdwToastOverlay as H,AdwToastQueue as $n,DEFAULT_TOAST_TIMEOUT as er}from"./adw-toast-overlay.js";import{AdwToggle as tr}from"./adw-toggle.js";import{AdwToggleGroup as U,NOTIFY_SELECTED as nr,ToggleGroupState as rr}from"./adw-toggle-group.js";import{WINDOW_BACKGROUND as ir,configureSystemBars as ar,systemBarsConfig as or}from"./system-bars.js";import{AdwToolbarView as W}from"./adw-toolbar-view.js";import{AdwViewSwitcher as G}from"./adw-view-switcher.js";import{AdwViewSwitcherBar as K}from"./adw-view-switcher-bar.js";import{AdwWindow as q}from"./adw-window.js";import{AdwWrapBox as J}from"./adw-wrap-box.js";import{applyAdwaitaNsAccent as sr,clearAdwaitaNsAccent as cr}from"./adw-accent.js";import{GtkActionBar as Y}from"./gtk-action-bar.js";import{DEFAULT_BOX_SPACING as lr,boxChildTrack as ur,boxSpacingChanges as dr,boxTrackPlan as fr,normalizeBoxSpacing as pr}from"./box-layout.js";import{GtkBox as X}from"./gtk-box.js";import{buttonSlotAfterWrite as mr,buttonSlotDetaches as hr}from"./button-slot.js";import{GTK_BUTTON_CLICKED as gr,GTK_BUTTON_LABEL_CLASS as _r,GtkButton as Z}from"./gtk-button.js";import{GtkDropDown as Q,NOTIFY_SELECTED as vr}from"./gtk-drop-down.js";import{GTK_CHECK_BUTTON_ACTIVATE as yr,GTK_CHECK_BUTTON_CHECKED_CLASS as br,GTK_CHECK_BUTTON_INCONSISTENT_CLASS as xr,GTK_CHECK_BUTTON_TOGGLED as Sr,GtkCheckButton as $,NOTIFY_CHECK_ACTIVE as Cr,NOTIFY_CHECK_INCONSISTENT as wr,NOTIFY_CHECK_LABEL as Tr,NOTIFY_CHECK_USE_UNDERLINE as Er}from"./gtk-check-button.js";import{DRAWING_AREA_REFUSAL as Dr,GtkDrawingArea as Or}from"./gtk-drawing-area.js";import{ACTIVATE as kr,CHANGED as Ar,GtkEntry as jr,NOTIFY_EDITABLE as Mr,NOTIFY_MAX_LENGTH as Nr,NOTIFY_PLACEHOLDER_TEXT as Pr,NOTIFY_TEXT as Fr,NOTIFY_TEXT_LENGTH as Ir}from"./gtk-entry.js";import{gridChildAt as Lr,gridGap as Rr,gridSpacing as zr,gridTrackCounts as Br}from"./grid-state.js";import{GtkGrid as Vr}from"./gtk-grid.js";import{GtkFrame as Hr}from"./gtk-frame.js";import{DEFAULT_LIST_SELECTION_MODE as Ur,GTK_SELECTION_MODES as Wr,selectionAfterModeChange as Gr,selectionAfterTap as Kr,selectionMode as qr}from"./list-box-state.js";import{GtkListBox as Jr,LIST_BOX_ROW_ACTIVATED as Yr,LIST_BOX_ROW_SELECTED as Xr,LIST_ROW_SELECTED_CLASS as Zr}from"./gtk-list-box.js";import{GtkMenuButton as Qr,MENU_ITEM_ACTIVATED as $r}from"./gtk-menu-button.js";import{GtkPopoverMenu as ei}from"./gtk-popover-menu.js";import{GtkOverlay as ti}from"./gtk-overlay.js";import{revealerChildVisibility as ni}from"./revealer-state.js";import{GtkRevealer as ri,NOTIFY_REVEAL_CHILD as ii}from"./gtk-revealer.js";import{GtkScrolledWindow as ai}from"./gtk-scrolled-window.js";import{GtkApplicationWindow as oi}from"./gtk-application-window.js";import{GtkSeparator as si}from"./gtk-separator.js";import{GtkStackPage as ci}from"./stack-page.js";import{GtkStack as li,NOTIFY_STACK_VISIBLE_CHILD as ui,NOTIFY_STACK_VISIBLE_CHILD_NAME as di}from"./gtk-stack.js";import{GTK_WRAP_MODES as fi,GtkTextView as pi,NOTIFY_TEXT_VIEW_TEXT as mi}from"./gtk-text-view.js";import{GTK_TOGGLE_BUTTON_CHECKED_CLASS as hi,GTK_TOGGLE_BUTTON_TOGGLED as gi,GtkToggleButton as _i,NOTIFY_TOGGLE_ACTIVE as vi}from"./gtk-toggle-button.js";import{AdwSliderRow as yi,NOTIFY_SLIDER_VALUE as bi}from"./adw-slider-row.js";import{DATA_GRID_HEADER_CELL_CLASS as xi,DATA_GRID_HEADER_ROW_CLASS as Si,DATA_GRID_SECTION_CELL_CLASS as Ci,dataGridCellClass as wi,dataGridItemSpec as Ti,dataGridRowClass as Ei,dataGridShapeKey as Di,dataGridTracksKey as Oi,parseDataGridWidth as ki}from"./data-grid-model.js";import{AdwDataGrid as Ai,ROW_ACTIVATED as ji}from"./adw-data-grid.js";import{padForSystemInsets as Mi,padSheetForSystemInsets as Ni}from"./system-insets.js";import{labelDisplayText as Pi,labelMarkupIsUnparseable as Fi}from"@gjsify/adwaita-core";const Ii={AdwPreferencesPage:P,AdwPreferencesGroup:a,AdwActionRow:i,AdwSwitchRow:B,AdwEntryRow:S,AdwPasswordEntryRow:M,GtkEntry:jr,AdwComboRow:y,GtkDropDown:Q,AdwSpinRow:L,AdwSliderRow:yi,AdwExpanderRow:C,GtkButton:Z,GtkBox:X,GtkGrid:Vr,GtkListBox:Jr,AdwWindow:q,AdwApplicationWindow:l,AdwDialog:b,GtkActionBar:Y,AdwBin:f,GtkOverlay:ti,GtkRevealer:ri,GtkScrolledWindow:ai,GtkWindow:c,GtkApplicationWindow:oi,GtkStack:li,GtkToggleButton:_i,GtkCheckButton:$,GtkDrawingArea:Or,GtkFrame:Hr,GtkSeparator:si,GtkTextView:pi,GtkLabel:n,AdwImageButton:x,GtkMenuButton:Qr,GtkImage:r,AdwBanner:d,AdwAvatar:u,AdwWindowTitle:w,AdwClamp:v,AdwHeaderBar:T,AdwToolbarView:W,AdwWrapBox:J,AdwDataGrid:Ai,AdwSpinner:En,AdwStatusPage:z,AdwButtonRow:m,AdwButtonContent:p,AdwSplitButton:R,AdwToggleGroup:U,AdwShortcutLabel:F,AdwViewStack:E,AdwViewSwitcher:G,AdwViewSwitcherBar:K,AdwInlineViewSwitcher:D,AdwTabView:V,AdwCarousel:h,AdwCarouselIndicatorDots:g,AdwCarouselIndicatorLines:_,AdwNavigationPage:k,AdwNavigationView:A,AdwNavigationSplitView:O,AdwOverlaySplitView:j,AdwSidebar:I,AdwBottomSheet:s,AdwToastOverlay:H,AdwAboutDialog:o,AdwPreferencesDialog:N};let Li=!1;function registerAdwaitaElements(){if(!Li&&typeof registerElement==`function`){for(let[e,t]of Object.entries(Ii))registerElement(e,()=>t);Li=!0}}export{$e as ABOUT_CLOSED,He as ACTIVATED,Ae as ADWAITA_ICON_GRID,xe as ADWAITA_NS_ACCENT_RULES,It as ADW_DIALOG_CLASS,Lt as ADW_DIALOG_CLOSED,Rt as ADW_DIALOG_CLOSE_ATTEMPT,Je as ADW_DIALOG_PRESENTATION_MODES,lt as ADW_WINDOW_CLASS,ft as AVATAR_DEFAULT_ICON,o as AdwAboutDialog,i as AdwActionRow,et as AdwAlertDialog,tt as AdwAlertResponses,l as AdwApplicationWindow,u as AdwAvatar,d as AdwBanner,f as AdwBin,s as AdwBottomSheet,e as AdwBreakpoint,p as AdwButtonContent,m as AdwButtonRow,h as AdwCarousel,g as AdwCarouselIndicatorDots,_ as AdwCarouselIndicatorLines,v as AdwClamp,y as AdwComboRow,Ai as AdwDataGrid,b as AdwDialog,S as AdwEntryRow,C as AdwExpanderRow,T as AdwHeaderBar,x as AdwImageButton,D as AdwInlineViewSwitcher,k as AdwNavigationPage,O as AdwNavigationSplitView,A as AdwNavigationView,j as AdwOverlaySplitView,M as AdwPasswordEntryRow,N as AdwPreferencesDialog,a as AdwPreferencesGroup,P as AdwPreferencesPage,F as AdwShortcutLabel,I as AdwSidebar,xn as AdwSidebarItem,Sn as AdwSidebarSection,yi as AdwSliderRow,L as AdwSpinRow,En as AdwSpinner,R as AdwSplitButton,on as AdwSplitViewBase,z as AdwStatusPage,B as AdwSwitchRow,Bn as AdwTabPage,V as AdwTabView,Qn as AdwToast,H as AdwToastOverlay,$n as AdwToastQueue,tr as AdwToggle,U as AdwToggleGroup,W as AdwToolbarView,E as AdwViewStack,Qt as AdwViewStackPage,G as AdwViewSwitcher,K as AdwViewSwitcherBar,en as AdwViewSwitcherBase,q as AdwWindow,ut as AdwWindowBase,w as AdwWindowTitle,J as AdwWrapBox,gt as BUTTON_CLICKED,nt as CLOSE_ATTEMPT,Yn as CLOSE_PAGE,xt as CarouselScrollSync,Pt as ComboState,xi as DATA_GRID_HEADER_CELL_CLASS,Si as DATA_GRID_HEADER_ROW_CLASS,Ci as DATA_GRID_SECTION_CELL_CLASS,pt as DEFAULT_AVATAR_SIZE,lr as DEFAULT_BOX_SPACING,St as DEFAULT_CAROUSEL_PAGE_WIDTH,mt as DEFAULT_CLAMP_MAX_SIZE,Ye as DEFAULT_DIALOG_PRESENTATION_MODE,Ve as DEFAULT_GTK_IMAGE_SIZE,zt as DEFAULT_ICON_BUTTON_ICON_SIZE,je as DEFAULT_ICON_COLOR,Me as DEFAULT_ICON_COLOR_DARK,ae as DEFAULT_ICON_PIXEL_SIZE,Ur as DEFAULT_LIST_SELECTION_MODE,Ue as DEFAULT_REVEALER_TRANSITION_DURATION,Nn as DEFAULT_SCROLLBAR_POLICY,ht as DEFAULT_SPINNER_SIZE,We as DEFAULT_STACK_TRANSITION_DURATION,er as DEFAULT_TOAST_TIMEOUT,Dr as DRAWING_AREA_REFUSAL,kr as ENTRY_ACTIVATE,Ar as ENTRY_CHANGED,Dn as GROUP_DIVIDER_API,ie as GTK_ALIGN,gr as GTK_BUTTON_CLICKED,_r as GTK_BUTTON_LABEL_CLASS,yr as GTK_CHECK_BUTTON_ACTIVATE,br as GTK_CHECK_BUTTON_CHECKED_CLASS,xr as GTK_CHECK_BUTTON_INCONSISTENT_CLASS,Sr as GTK_CHECK_BUTTON_TOGGLED,oe as GTK_ICON_SIZE_NICKS,se as GTK_ICON_SIZE_PIXELS,Pn as GTK_POLICY_TYPES,Ge as GTK_REVEALER_TRANSITIONS,Wr as GTK_SELECTION_MODES,Ke as GTK_STACK_TRANSITIONS,hi as GTK_TOGGLE_BUTTON_CHECKED_CLASS,gi as GTK_TOGGLE_BUTTON_TOGGLED,fi as GTK_WRAP_MODES,Y as GtkActionBar,oi as GtkApplicationWindow,X as GtkBox,Z as GtkButton,$ as GtkCheckButton,Or as GtkDrawingArea,Q as GtkDropDown,jr as GtkEntry,Hr as GtkFrame,Vr as GtkGrid,r as GtkImage,n as GtkLabel,Jr as GtkListBox,Qr as GtkMenuButton,ti as GtkOverlay,ei as GtkPopoverMenu,ri as GtkRevealer,ai as GtkScrolledWindow,si as GtkSeparator,li as GtkStack,ci as GtkStackPage,pi as GtkTextView,_i as GtkToggleButton,c as GtkWindow,Fe as ICON_FALLBACK_NAME,Yr as LIST_BOX_ROW_ACTIVATED,Xr as LIST_BOX_ROW_SELECTED,Zr as LIST_ROW_SELECTED_CLASS,$r as MENU_ITEM_ACTIVATED,Rn as MENU_TAPPED,Bt as NOTIFY_ACTIVATES_DEFAULT,zn as NOTIFY_ACTIVE,_t as NOTIFY_BUTTON_CONTENT_CAN_SHRINK,vt as NOTIFY_BUTTON_CONTENT_ICON_NAME,yt as NOTIFY_BUTTON_CONTENT_LABEL,bt as NOTIFY_BUTTON_CONTENT_USE_UNDERLINE,Cr as NOTIFY_CHECK_ACTIVE,wr as NOTIFY_CHECK_INCONSISTENT,Tr as NOTIFY_CHECK_LABEL,Er as NOTIFY_CHECK_USE_UNDERLINE,vr as NOTIFY_DROP_DOWN_SELECTED,Vt as NOTIFY_EDITABLE,Jt as NOTIFY_ENABLE_EXPANSION,Mr as NOTIFY_ENTRY_EDITABLE,Nr as NOTIFY_ENTRY_MAX_LENGTH,Fr as NOTIFY_ENTRY_TEXT,Ir as NOTIFY_ENTRY_TEXT_LENGTH,Yt as NOTIFY_EXPANDED,ve as NOTIFY_HEXPAND,Ht as NOTIFY_MAX_LENGTH,jt as NOTIFY_N_PAGES,rt as NOTIFY_OPEN,Pr as NOTIFY_PLACEHOLDER_TEXT,Mt as NOTIFY_POSITION,ii as NOTIFY_REVEAL_CHILD,Ft as NOTIFY_SELECTED,Xn as NOTIFY_SELECTED_PAGE,Ut as NOTIFY_SHOW_APPLY_BUTTON,Xt as NOTIFY_SHOW_ENABLE_SWITCH,sn as NOTIFY_SHOW_SIDEBAR,Cn as NOTIFY_SIDEBAR_SELECTED,bi as NOTIFY_SLIDER_VALUE,ui as NOTIFY_STACK_VISIBLE_CHILD,di as NOTIFY_STACK_VISIBLE_CHILD_NAME,Wt as NOTIFY_TEXT,Gt as NOTIFY_TEXT_LENGTH,mi as NOTIFY_TEXT_VIEW_TEXT,vi as NOTIFY_TOGGLE_ACTIVE,nr as NOTIFY_TOGGLE_SELECTED,wn as NOTIFY_VALUE,ye as NOTIFY_VEXPAND,tn as NOTIFY_VIEW_SELECTED,$t as NOTIFY_VISIBLE_CHILD,cn as NOTIFY_VISIBLE_PAGE,Zt as NS_EXPANDER_ARROW_DISABLED_OPACITY,nn as NsNavigationSplitViewState,rn as NsOverlaySplitViewState,Zn as PAGES_CHANGED,Nt as PAGE_CHANGED,ce as PIXEL_SIZE_UNSET,ln as PREFERENCES_CLOSED,ji as ROW_ACTIVATED,it as SHEET_CLOSE,at as SHEET_CONTENT_BOTTOM_GAP,un as SHORTCUT_LABEL_CAP_TEXT_CLASS,dn as SHORTCUT_LABEL_CLASS,fn as SHORTCUT_LABEL_DIMMED_CLASS,pn as SHORTCUT_LABEL_DISABLED_CLASS,mn as SHORTCUT_LABEL_KEYCAP_CLASS,hn as SHORTCUT_LABEL_KEYS_CLASS,gn as SHORTCUT_LABEL_SIDE_CLASS,_n as SHORTCUT_LABEL_SPACED_CLASS,Kt as SIGNAL_APPLY,qt as SIGNAL_ENTRY_ACTIVATED,pe as SimpleAction,me as SimpleActionGroup,Tn as SpinState,rr as ToggleGroupState,ir as WINDOW_BACKGROUND,he as activateWidgetAction,t as addBreakpoints,we as adwaitaColorScheme,Se as adwaitaNsAccentColor,Ce as adwaitaNsAccentCss,sr as applyAdwaitaNsAccent,ue as applyConstructProps,Ct as applyMarkerClasses,Vn as applyTabViewVisibility,On as assertPopupMenuAssignable,st as attachRowPressFeedback,dt as avatarInitials,ot as bottomSheetInsetPadding,ct as bottomSheetPanel,ur as boxChildTrack,dr as boxSpacingChanges,fr as boxTrackPlan,mr as buttonSlotAfterWrite,hr as buttonSlotDetaches,wt as carouselDotClasses,Tt as carouselNotifyPayload,Et as carouselPositionAtOffset,Dt as carouselScrollOffset,cr as clearAdwaitaNsAccent,Ie as compiledIconNames,ar as configureSystemBars,Ot as createCarouselState,Hn as createTabViewState,wi as dataGridCellClass,Ti as dataGridItemSpec,Ei as dataGridRowClass,Di as dataGridShapeKey,Oi as dataGridTracksKey,Xe as dialogPresentationMode,ee as evaluateBreakpointCondition,Ne as extractIconPaths,Pe as extractPathData,kn as fillPopupMenu,ge as findActionGroup,Ze as findDialogHost,Lr as gridChildAt,Rr as gridGap,zr as gridSpacing,Br as gridTrackCounts,Le as iconValueKind,kt as indicatorMarkerClasses,_e as insertActionGroup,le as isGtkIconSizeNick,Re as isIconAvailable,Te as isThemeIconColor,Pi as labelDisplayText,Fi as labelMarkupIsUnparseable,fe as lengthValue,pr as normalizeBoxSpacing,At as normalizeCarouselPageWidth,Fn as normalizePolicy,de as nsAlignment,te as observeViewSize,ne as observeWindowSize,Ee as onAdwaitaColorSchemeChanged,An as openPopupMenu,Mi as padForSystemInsets,Ni as padSheetForSystemInsets,re as parseBreakpointCondition,ki as parseDataGridWidth,In as policyScrolls,jn as refuseMenuString,registerAdwaitaElements,Be as renderSymbolicIcon,ze as resolveIconSource,ni as revealerChildVisibility,Ln as scrollOrientationFor,Gr as selectionAfterModeChange,Kr as selectionAfterTap,qr as selectionMode,De as setAdwaitaColorScheme,vn as shortcutLabelDirection,yn as shortcutLabelPlatform,bn as shortcutLabelRenderPlan,Mn as showMenuPopup,an as splitViewColumns,Qe as surfaceSize,or as systemBarsConfig,Un as tabBarVisibility,Wn as tabCloseVisibilities,Gn as tabLabelText,Kn as tabPageVisibilities,qn as tabTooltipText,Jn as tabViewNotifyPayload,Oe as themeIconColor,ke as toggleAdwaitaColorScheme,qe as transitionNick,be as withGtkWidgetLayout};
|