@gjsify/adwaita-nativescript 0.64.1-next.240 → 0.64.1-next.243
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/canvas2d/canvas2d-bridge.js +1 -1
- package/lib/esm/canvas2d/native-canvas.ios.js +1 -1
- package/lib/esm/canvas2d/native-canvas.js +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/esm/namespace/gtk.js +1 -1
- package/lib/esm/widgets/adw-about-dialog.js +1 -1
- package/lib/esm/widgets/adw-action-row.js +1 -1
- package/lib/esm/widgets/adw-avatar.js +1 -1
- package/lib/esm/widgets/adw-button-row.js +1 -1
- package/lib/esm/widgets/adw-combo-row.js +1 -1
- package/lib/esm/widgets/adw-dialog.js +1 -1
- package/lib/esm/widgets/adw-entry-row.js +1 -1
- package/lib/esm/widgets/adw-expander-row.js +1 -1
- package/lib/esm/widgets/adw-navigation-view.js +1 -1
- package/lib/esm/widgets/adw-status-page.js +1 -1
- package/lib/esm/widgets/adw-switch-row.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-label.js +2 -1
- package/lib/esm/widgets/gtk-menu-button.js +1 -1
- package/lib/esm/widgets/gtk-revealer.js +1 -1
- package/lib/esm/widgets/gtk-stack.js +1 -1
- package/lib/esm/widgets/gtk-window.js +1 -1
- package/lib/esm/widgets/index.js +1 -1
- package/lib/esm/widgets/native-tooltip.js +1 -1
- package/lib/esm/widgets/widget-layout.js +1 -1
- package/lib/types/canvas2d/native-canvas.d.ts +2 -1
- package/lib/types/canvas2d/native-canvas.ios.d.ts +2 -1
- package/lib/types/widgets/adw-about-dialog.d.ts +14 -3
- package/lib/types/widgets/adw-action-row.d.ts +10 -0
- package/lib/types/widgets/adw-alert-dialog.d.ts +3 -0
- package/lib/types/widgets/adw-avatar.d.ts +3 -0
- package/lib/types/widgets/adw-banner.d.ts +3 -0
- package/lib/types/widgets/adw-bottom-sheet.d.ts +3 -0
- package/lib/types/widgets/adw-button-content.d.ts +3 -0
- package/lib/types/widgets/adw-carousel.d.ts +3 -0
- package/lib/types/widgets/adw-clamp.d.ts +3 -0
- package/lib/types/widgets/adw-data-grid.d.ts +3 -0
- package/lib/types/widgets/adw-header-bar.d.ts +3 -0
- package/lib/types/widgets/adw-image-button.d.ts +3 -0
- package/lib/types/widgets/adw-navigation-page.d.ts +3 -0
- package/lib/types/widgets/adw-navigation-view.d.ts +5 -0
- package/lib/types/widgets/adw-preferences-dialog.d.ts +3 -0
- package/lib/types/widgets/adw-preferences-group.d.ts +3 -0
- package/lib/types/widgets/adw-preferences-page.d.ts +3 -0
- package/lib/types/widgets/adw-shortcut-label.d.ts +3 -0
- package/lib/types/widgets/adw-sidebar.d.ts +3 -0
- package/lib/types/widgets/adw-slider-row.d.ts +3 -0
- package/lib/types/widgets/adw-spinner.d.ts +3 -0
- package/lib/types/widgets/adw-split-button.d.ts +3 -0
- package/lib/types/widgets/adw-status-page.d.ts +3 -0
- package/lib/types/widgets/adw-switch-row.d.ts +2 -0
- package/lib/types/widgets/adw-tab-view.d.ts +3 -0
- package/lib/types/widgets/adw-toast-overlay.d.ts +3 -0
- package/lib/types/widgets/adw-toggle-group.d.ts +3 -0
- package/lib/types/widgets/adw-toggle.d.ts +3 -0
- package/lib/types/widgets/adw-toolbar-view.d.ts +3 -0
- package/lib/types/widgets/adw-view-stack.d.ts +3 -0
- package/lib/types/widgets/adw-view-switcher-bar.d.ts +3 -0
- package/lib/types/widgets/adw-window-title.d.ts +3 -0
- package/lib/types/widgets/adw-wrap-box.d.ts +3 -0
- package/lib/types/widgets/carousel-indicator-base.d.ts +3 -0
- package/lib/types/widgets/gtk-action-bar.d.ts +3 -0
- package/lib/types/widgets/gtk-button.d.ts +3 -0
- package/lib/types/widgets/gtk-drop-down.d.ts +3 -0
- package/lib/types/widgets/gtk-entry.d.ts +3 -0
- package/lib/types/widgets/gtk-image.d.ts +3 -0
- package/lib/types/widgets/gtk-label.d.ts +24 -1
- package/lib/types/widgets/gtk-menu-button.d.ts +7 -0
- package/lib/types/widgets/gtk-popover-menu.d.ts +3 -0
- package/lib/types/widgets/gtk-stack.d.ts +3 -0
- package/lib/types/widgets/gtk-text-view.d.ts +3 -0
- package/lib/types/widgets/native-tooltip.d.ts +2 -0
- package/lib/types/widgets/signals.d.ts +3 -0
- package/lib/types/widgets/split-view-base.d.ts +3 -0
- package/lib/types/widgets/stack-page.d.ts +3 -0
- package/lib/types/widgets/styled-layout-base.d.ts +3 -0
- package/lib/types/widgets/view-stack-page.d.ts +3 -0
- package/lib/types/widgets/view-switcher-base.d.ts +3 -0
- package/lib/types/widgets/widget-layout.d.ts +4 -0
- package/package.json +13 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{registerTemplateClass as e}from"../builder/template-classes.js";import{xmlNumber as t}from"../widgets/xml-values.js";import{withGtkWidgetLayout as n}from"../widgets/widget-layout.js";import{NsCanvas as r}from"./canvas-subset.js";import{
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{registerTemplateClass as e}from"../builder/template-classes.js";import{xmlNumber as t}from"../widgets/xml-values.js";import{withGtkWidgetLayout as n}from"../widgets/widget-layout.js";import{NsCanvas as r}from"./canvas-subset.js";import{createNativeCanvasDriver as i}from"./native-canvas.js";import{View as a}from"@nativescript/core";var Canvas2DBridge=class extends n(a){static GTypeName=`GjsifyCanvas2DBridge`;driver=i();_canvas=null;_ctx=null;_readyCallbacks=[];_resizeCallbacks=[];_handlers=new Map;_nextHandler=0;_width=-1;_height=-1;_contentWidth=0;_contentHeight=0;createNativeView(){return this.driver.createNativeView(this._context)}initNativeView(){super.initNativeView(),this.driver.attach(this.nativeViewProtected,(e,t)=>this.allocated(e,t))}disposeNativeView(){this.driver.detach(),this._canvas=null,this._ctx=null,this._width=-1,this._height=-1,super.disposeNativeView()}get contentWidth(){return this._contentWidth}set contentWidth(e){this._contentWidth=Math.max(0,Math.trunc(t(e,this._contentWidth))),this.minWidth=this._contentWidth}get contentHeight(){return this._contentHeight}set contentHeight(e){this._contentHeight=Math.max(0,Math.trunc(t(e,this._contentHeight))),this.minHeight=this._contentHeight}get content_width(){return this.contentWidth}set content_width(e){this.contentWidth=e}get content_height(){return this.contentHeight}set content_height(e){this.contentHeight=e}get canvas(){return this._canvas}getContext(e){return this._ctx}onReady(e){if(this._canvas&&this._ctx){e(this._canvas,this._ctx);return}this._readyCallbacks.push(e)}onResize(e){this._resizeCallbacks.push(e)}requestAnimationFrame(e){return globalThis.requestAnimationFrame(e)}installGlobals(){}queue_draw(){this.driver.invalidate()}connect(e,t){if(e!==`resize`)throw Error(`Canvas2DBridge declares no signal '${e}'. It emits: resize.`);let n=++this._nextHandler;return this._handlers.set(n,t),n}disconnect(e){if(!this._handlers.delete(e))throw TypeError(`Canvas2DBridge has no handler with id ${e}.`)}allocated(e,t){if(!this._canvas){this._width=e,this._height=t,this._canvas=new r(e,t,this.driver),this._ctx=this._canvas.getContext(`2d`);let n=this._readyCallbacks;if(this._readyCallbacks=[],this._ctx)for(let e of n)e(this._canvas,this._ctx);return}if(!(this._width===e&&this._height===t)){this._width=e,this._height=t,this._canvas.width=e,this._canvas.height=t,this._canvas.dispatchEvent({type:`resize`});for(let n of Array.from(this._handlers.values()))n(this,e,t);for(let n of this._resizeCallbacks)n(e,t)}}};e(Canvas2DBridge.GTypeName,Canvas2DBridge);export{Canvas2DBridge};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createUnsupportedCanvasDriver as e}from"./native-driver.js";export{
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{createUnsupportedCanvasDriver as e}from"./native-driver.js";function createNativeCanvasDriver(){return e()}export{createNativeCanvasDriver};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createUnsupportedCanvasDriver as e}from"./native-driver.js";export{
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{createUnsupportedCanvasDriver as e}from"./native-driver.js";function createNativeCanvasDriver(){return e()}export{createNativeCanvasDriver};
|
package/lib/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./_virtual/_rolldown/runtime.js";import{AdwBreakpoint as ee,addBreakpoints as te,evaluateBreakpointCondition as ne,observeViewSize as e,observeWindowSize as t,parseBreakpointCondition as n}from"./widgets/breakpoint.js";import{GTK_ALIGN as r}from"./widgets/gtk-align.js";import{DEFAULT_ICON_PIXEL_SIZE as i,GTK_ICON_SIZE_NICKS as a,GTK_ICON_SIZE_PIXELS as o,PIXEL_SIZE_UNSET as s,isGtkIconSizeNick as c}from"./widgets/gtk-icon-size.js";import{applyConstructProps as l,nsAlignment as u}from"./widgets/construct-props.js";import{activateWidgetAction as d,findActionGroup as f,insertActionGroup as p}from"./widgets/actions.js";import{NOTIFY_HEXPAND as m,NOTIFY_VEXPAND as h,withGtkWidgetLayout as g}from"./widgets/widget-layout.js";import{CLOSED as _}from"./widgets/adw-about-dialog.js";import{ACTIVATED as v}from"./widgets/adw-action-row.js";import{AdwAlertResponses as y,NOTIFY_RESPONSE as b}from"./widgets/adw-alert-dialog.js";import{avatarInitials as x}from"./widgets/avatar-color.js";import{AVATAR_DEFAULT_ICON as S}from"./widgets/avatar-view.js";import{adwaitaColorScheme as C,isThemeIconColor as w,onAdwaitaColorSchemeChanged as T,setAdwaitaColorScheme as E,themeIconColor as D,toggleAdwaitaColorScheme as O}from"./widgets/color-scheme.js";import{ADWAITA_ICON_GRID as k,DEFAULT_ICON_COLOR as A,DEFAULT_ICON_COLOR_DARK as j,extractIconPaths as M,extractPathData as N}from"./widgets/icon-path.js";import{ICON_FALLBACK_NAME as P,compiledIconNames as F,iconValueKind as I,isIconAvailable as L,registerIcon as R,registerIcons as z,registeredIconNames as B,resolveIconSource as V,unregisterIcon as H}from"./widgets/icon-theme.js";import{renderSymbolicIcon as U}from"./widgets/icons.js";import{DEFAULT_GTK_IMAGE_SIZE as W}from"./widgets/gtk-image.js";import{DEFAULT_AVATAR_SIZE as G}from"./widgets/adw-avatar.js";import{DEFAULT_CLAMP_MAX_SIZE as K,DEFAULT_SPINNER_SIZE as q}from"./widgets/chrome.js";import{BUTTON_CLICKED as J}from"./widgets/adw-banner.js";import{NOTIFY_OPEN as Y}from"./widgets/bottom-sheet-state.js";import{attachRowPressFeedback as X}from"./widgets/row-press.js";import{bottomSheetPanel as Z}from"./widgets/adw-bottom-sheet.js";import{DEFAULT_CAROUSEL_PAGE_WIDTH as re}from"./widgets/carousel-state.js";import{NOTIFY_POSITION as ie}from"./widgets/adw-carousel.js";import{ComboState as ae,NOTIFY_SELECTED as oe}from"./widgets/adw-combo-row.js";import{ADW_DIALOG_CLOSED as se,ADW_DIALOG_CLOSE_ATTEMPT as ce}from"./widgets/adw-dialog.js";import{AdwImageButton as le,DEFAULT_ICON_BUTTON_ICON_SIZE as ue}from"./widgets/adw-image-button.js";import{NOTIFY_TEXT as de}from"./widgets/adw-entry-row.js";import{ExpanderState as fe,NOTIFY_EXPANDED as pe}from"./widgets/adw-expander-row.js";import{NOTIFY_VISIBLE_CHILD as me}from"./widgets/adw-view-stack.js";import{AdwViewSwitcherBase as he,NOTIFY_SELECTED as ge}from"./widgets/view-switcher-base.js";import{NsNavigationSplitViewState as _e,NsOverlaySplitViewState as ve,splitViewColumns as ye}from"./widgets/split-view-state.js";import{AdwSplitViewBase as be,NOTIFY_SHOW_SIDEBAR as xe}from"./widgets/split-view-base.js";import{NOTIFY_VISIBLE_PAGE as Se}from"./widgets/navigation-stack.js";import{CLOSED as Ce}from"./widgets/adw-preferences-dialog.js";import{SHORTCUT_LABEL_CAP_TEXT_CLASS as we,SHORTCUT_LABEL_CLASS as Te,SHORTCUT_LABEL_DIMMED_CLASS as Ee,SHORTCUT_LABEL_DISABLED_CLASS as De,SHORTCUT_LABEL_KEYCAP_CLASS as Oe,SHORTCUT_LABEL_KEYS_CLASS as ke,SHORTCUT_LABEL_SIDE_CLASS as Ae,SHORTCUT_LABEL_SPACED_CLASS as je,shortcutLabelDirection as Me,shortcutLabelPlatform as Ne,shortcutLabelRenderPlan as Pe}from"./widgets/shortcut-label.js";import{NOTIFY_SELECTED as Fe}from"./widgets/adw-sidebar.js";import{NOTIFY_VALUE as Q,SpinState as Ie}from"./widgets/adw-spin-row.js";import{CLICKED as Le,MENU_TAPPED as Re}from"./widgets/adw-split-button.js";import{NOTIFY_ACTIVE as ze}from"./widgets/adw-switch-row.js";import{AdwToast as Be,AdwToastQueue as Ve,DEFAULT_TOAST_TIMEOUT as He,TOAST_BUTTON_CLICKED as Ue}from"./widgets/adw-toast-overlay.js";import{NOTIFY_SELECTED as We,ToggleGroupState as Ge}from"./widgets/adw-toggle-group.js";import{adw_exports as Ke}from"./namespace/adw.js";import{DEFAULT_BOX_SPACING as qe,boxChildTrack as Je,boxSpacingChanges as Ye,boxTrackPlan as Xe,normalizeBoxSpacing as Ze}from"./widgets/box-layout.js";import{buttonSlotAfterWrite as Qe,buttonSlotDetaches as $e}from"./widgets/button-slot.js";import{GTK_BUTTON_CLICKED as et,GTK_BUTTON_LABEL_CLASS as tt}from"./widgets/gtk-button.js";import{NOTIFY_SELECTED as nt}from"./widgets/gtk-drop-down.js";import{GTK_CHECK_BUTTON_ACTIVATE as rt,GTK_CHECK_BUTTON_CHECKED_CLASS as it,GTK_CHECK_BUTTON_INCONSISTENT_CLASS as at,GTK_CHECK_BUTTON_TOGGLED as ot,NOTIFY_CHECK_ACTIVE as st}from"./widgets/gtk-check-button.js";import{DRAWING_AREA_REFUSAL as ct}from"./widgets/gtk-drawing-area.js";import{ACTIVATE as lt,NOTIFY_TEXT as ut}from"./widgets/gtk-entry.js";import{LIST_BOX_ROW_ACTIVATED as dt,LIST_BOX_ROW_SELECTED as ft}from"./widgets/gtk-list-box.js";import{MENU_ITEM_ACTIVATED as pt}from"./widgets/gtk-menu-button.js";import{NOTIFY_REVEAL_CHILD as mt}from"./widgets/gtk-revealer.js";import{NOTIFY_STACK_VISIBLE_CHILD as ht,NOTIFY_STACK_VISIBLE_CHILD_NAME as gt}from"./widgets/gtk-stack.js";import{GTK_WRAP_MODES as _t,NOTIFY_TEXT_VIEW_TEXT as vt}from"./widgets/gtk-text-view.js";import{GTK_TOGGLE_BUTTON_CHECKED_CLASS as yt,GTK_TOGGLE_BUTTON_TOGGLED as bt,NOTIFY_TOGGLE_ACTIVE as xt}from"./widgets/gtk-toggle-button.js";import{gtk_exports as St}from"./namespace/gtk.js";import{ADWAITA_SANS_FONT_FAMILY as Ct,ADWAITA_SANS_TTF_FILES as wt,adwaitaFontInstallInstructions as Tt,hasAdwaitaSans as Et}from"./fonts.js";import{AdwSliderRow as Dt,NOTIFY_SLIDER_VALUE as Ot}from"./widgets/adw-slider-row.js";import{DATA_GRID_HEADER_CELL_CLASS as kt,DATA_GRID_HEADER_ROW_CLASS as At,DATA_GRID_SECTION_CELL_CLASS as jt,dataGridCellClass as Mt,dataGridItemSpec as Nt,dataGridRowClass as Pt,dataGridShapeKey as Ft,dataGridTracksKey as It,parseDataGridWidth as Lt}from"./widgets/data-grid-model.js";import{AdwDataGrid as Rt,ROW_ACTIVATED as zt}from"./widgets/adw-data-grid.js";import{ADWAITA_NS_ACCENT_RULES as Bt,adwaitaNsAccentColor as Vt,adwaitaNsAccentCss as Ht}from"./widgets/accent-theme.js";import{applyAdwaitaNsAccent as Ut,clearAdwaitaNsAccent as Wt}from"./widgets/adw-accent.js";import{padForSystemInsets as Gt,padSheetForSystemInsets as Kt}from"./widgets/system-insets.js";import{labelDisplayText as qt,labelMarkupIsUnparseable as Jt,registerAdwaitaElements as $}from"./widgets/index.js";import{gio_exports as Yt}from"./namespace/gio.js";import{gdk_exports as Xt}from"./namespace/gdk.js";import{glib_exports as Zt}from"./namespace/glib.js";import{assertNativeScript as Qt,assertNativeScript as $t,isAndroid as en,isIOS as tn,isNativeScript as nn}from"@gjsify/native-platform";function registerAdwaita(){$t(),$()}export{_ as ABOUT_CLOSED,v as ACTIVATED,k as ADWAITA_ICON_GRID,Bt as ADWAITA_NS_ACCENT_RULES,Ct as ADWAITA_SANS_FONT_FAMILY,wt as ADWAITA_SANS_TTF_FILES,se as ADW_DIALOG_CLOSED,ce as ADW_DIALOG_CLOSE_ATTEMPT,S as AVATAR_DEFAULT_ICON,Ke as Adw,y as AdwAlertResponses,ee as AdwBreakpoint,Rt as AdwDataGrid,le as AdwImageButton,Dt as AdwSliderRow,be as AdwSplitViewBase,Be as AdwToast,Ve as AdwToastQueue,he as AdwViewSwitcherBase,J as BUTTON_CLICKED,Le as CLICKED,ae as ComboState,kt as DATA_GRID_HEADER_CELL_CLASS,At as DATA_GRID_HEADER_ROW_CLASS,jt as DATA_GRID_SECTION_CELL_CLASS,G as DEFAULT_AVATAR_SIZE,qe as DEFAULT_BOX_SPACING,re as DEFAULT_CAROUSEL_PAGE_WIDTH,K as DEFAULT_CLAMP_MAX_SIZE,W as DEFAULT_GTK_IMAGE_SIZE,ue as DEFAULT_ICON_BUTTON_ICON_SIZE,A as DEFAULT_ICON_COLOR,j as DEFAULT_ICON_COLOR_DARK,i as DEFAULT_ICON_PIXEL_SIZE,q as DEFAULT_SPINNER_SIZE,He as DEFAULT_TOAST_TIMEOUT,ct as DRAWING_AREA_REFUSAL,lt as ENTRY_ACTIVATE,fe as ExpanderState,Zt as GLib,r as GTK_ALIGN,et as GTK_BUTTON_CLICKED,tt as GTK_BUTTON_LABEL_CLASS,rt as GTK_CHECK_BUTTON_ACTIVATE,it as GTK_CHECK_BUTTON_CHECKED_CLASS,at as GTK_CHECK_BUTTON_INCONSISTENT_CLASS,ot as GTK_CHECK_BUTTON_TOGGLED,a as GTK_ICON_SIZE_NICKS,o as GTK_ICON_SIZE_PIXELS,yt as GTK_TOGGLE_BUTTON_CHECKED_CLASS,bt as GTK_TOGGLE_BUTTON_TOGGLED,_t as GTK_WRAP_MODES,Xt as Gdk,Yt as Gio,St as Gtk,P as ICON_FALLBACK_NAME,dt as LIST_BOX_ROW_ACTIVATED,ft as LIST_BOX_ROW_SELECTED,pt as MENU_ITEM_ACTIVATED,Re as MENU_TAPPED,ze as NOTIFY_ACTIVE,st as NOTIFY_CHECK_ACTIVE,nt as NOTIFY_DROP_DOWN_SELECTED,ut as NOTIFY_ENTRY_TEXT,pe as NOTIFY_EXPANDED,m as NOTIFY_HEXPAND,Y as NOTIFY_OPEN,ie as NOTIFY_POSITION,b as NOTIFY_RESPONSE,mt as NOTIFY_REVEAL_CHILD,oe as NOTIFY_SELECTED,xe as NOTIFY_SHOW_SIDEBAR,Fe as NOTIFY_SIDEBAR_SELECTED,Ot as NOTIFY_SLIDER_VALUE,ht as NOTIFY_STACK_VISIBLE_CHILD,gt as NOTIFY_STACK_VISIBLE_CHILD_NAME,de as NOTIFY_TEXT,vt as NOTIFY_TEXT_VIEW_TEXT,xt as NOTIFY_TOGGLE_ACTIVE,We as NOTIFY_TOGGLE_SELECTED,Q as NOTIFY_VALUE,h as NOTIFY_VEXPAND,ge as NOTIFY_VIEW_SELECTED,me as NOTIFY_VISIBLE_CHILD,Se as NOTIFY_VISIBLE_PAGE,_e as NsNavigationSplitViewState,ve as NsOverlaySplitViewState,s as PIXEL_SIZE_UNSET,Ce as PREFERENCES_CLOSED,zt as ROW_ACTIVATED,we as SHORTCUT_LABEL_CAP_TEXT_CLASS,Te as SHORTCUT_LABEL_CLASS,Ee as SHORTCUT_LABEL_DIMMED_CLASS,De as SHORTCUT_LABEL_DISABLED_CLASS,Oe as SHORTCUT_LABEL_KEYCAP_CLASS,ke as SHORTCUT_LABEL_KEYS_CLASS,Ae as SHORTCUT_LABEL_SIDE_CLASS,je as SHORTCUT_LABEL_SPACED_CLASS,Ie as SpinState,Ue as TOAST_BUTTON_CLICKED,Ge as ToggleGroupState,d as activateWidgetAction,te as addBreakpoints,C as adwaitaColorScheme,Tt as adwaitaFontInstallInstructions,Vt as adwaitaNsAccentColor,Ht as adwaitaNsAccentCss,Ut as applyAdwaitaNsAccent,l as applyConstructProps,Qt as assertNativeScript,X as attachRowPressFeedback,x as avatarInitials,Z as bottomSheetPanel,Je as boxChildTrack,Ye as boxSpacingChanges,Xe as boxTrackPlan,Qe as buttonSlotAfterWrite,$e as buttonSlotDetaches,Wt as clearAdwaitaNsAccent,F as compiledIconNames,Mt as dataGridCellClass,Nt as dataGridItemSpec,Pt as dataGridRowClass,Ft as dataGridShapeKey,It as dataGridTracksKey,ne as evaluateBreakpointCondition,M as extractIconPaths,N as extractPathData,f as findActionGroup,Et as hasAdwaitaSans,I as iconValueKind,p as insertActionGroup,en as isAndroid,c as isGtkIconSizeNick,tn as isIOS,L as isIconAvailable,nn as isNativeScript,w as isThemeIconColor,qt as labelDisplayText,Jt as labelMarkupIsUnparseable,Ze as normalizeBoxSpacing,u as nsAlignment,e as observeViewSize,t as observeWindowSize,T as onAdwaitaColorSchemeChanged,Gt as padForSystemInsets,Kt as padSheetForSystemInsets,n as parseBreakpointCondition,Lt as parseDataGridWidth,registerAdwaita,$ as registerAdwaitaElements,R as registerIcon,z as registerIcons,B as registeredIconNames,U as renderSymbolicIcon,V as resolveIconSource,E as setAdwaitaColorScheme,Me as shortcutLabelDirection,Ne as shortcutLabelPlatform,Pe as shortcutLabelRenderPlan,ye as splitViewColumns,D as themeIconColor,O as toggleAdwaitaColorScheme,H as unregisterIcon,g as withGtkWidgetLayout};
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";import{AdwBreakpoint as ee,addBreakpoints as te,evaluateBreakpointCondition as ne,observeViewSize as e,observeWindowSize as t,parseBreakpointCondition as n}from"./widgets/breakpoint.js";import{GTK_ALIGN as r}from"./widgets/gtk-align.js";import{DEFAULT_ICON_PIXEL_SIZE as i,GTK_ICON_SIZE_NICKS as a,GTK_ICON_SIZE_PIXELS as o,PIXEL_SIZE_UNSET as s,isGtkIconSizeNick as c}from"./widgets/gtk-icon-size.js";import{applyConstructProps as l,nsAlignment as u}from"./widgets/construct-props.js";import{activateWidgetAction as d,findActionGroup as f,insertActionGroup as p}from"./widgets/actions.js";import{NOTIFY_HEXPAND as m,NOTIFY_VEXPAND as h,withGtkWidgetLayout as g}from"./widgets/widget-layout.js";import{CLOSED as _}from"./widgets/adw-about-dialog.js";import{adwaitaColorScheme as v,isThemeIconColor as y,onAdwaitaColorSchemeChanged as b,setAdwaitaColorScheme as x,themeIconColor as S,toggleAdwaitaColorScheme as C}from"./widgets/color-scheme.js";import{ADWAITA_ICON_GRID as w,DEFAULT_ICON_COLOR as T,DEFAULT_ICON_COLOR_DARK as E,extractIconPaths as D,extractPathData as O}from"./widgets/icon-path.js";import{ICON_FALLBACK_NAME as k,compiledIconNames as A,iconValueKind as j,isIconAvailable as M,registerIcon as N,registerIcons as P,registeredIconNames as F,resolveIconSource as I,unregisterIcon as L}from"./widgets/icon-theme.js";import{renderSymbolicIcon as R}from"./widgets/icons.js";import{DEFAULT_GTK_IMAGE_SIZE as z}from"./widgets/gtk-image.js";import{ACTIVATED as B}from"./widgets/adw-action-row.js";import{AdwAlertResponses as V,NOTIFY_RESPONSE as H}from"./widgets/adw-alert-dialog.js";import{avatarInitials as U}from"./widgets/avatar-color.js";import{AVATAR_DEFAULT_ICON as W}from"./widgets/avatar-view.js";import{DEFAULT_AVATAR_SIZE as G}from"./widgets/adw-avatar.js";import{DEFAULT_CLAMP_MAX_SIZE as K,DEFAULT_SPINNER_SIZE as q}from"./widgets/chrome.js";import{BUTTON_CLICKED as J}from"./widgets/adw-banner.js";import{NOTIFY_OPEN as Y}from"./widgets/bottom-sheet-state.js";import{attachRowPressFeedback as X}from"./widgets/row-press.js";import{bottomSheetPanel as Z}from"./widgets/adw-bottom-sheet.js";import{DEFAULT_CAROUSEL_PAGE_WIDTH as re}from"./widgets/carousel-state.js";import{NOTIFY_POSITION as ie}from"./widgets/adw-carousel.js";import{ComboState as ae,NOTIFY_SELECTED as oe}from"./widgets/adw-combo-row.js";import{ADW_DIALOG_CLOSED as se,ADW_DIALOG_CLOSE_ATTEMPT as ce}from"./widgets/adw-dialog.js";import{AdwImageButton as le,DEFAULT_ICON_BUTTON_ICON_SIZE as ue}from"./widgets/adw-image-button.js";import{NOTIFY_TEXT as de}from"./widgets/adw-entry-row.js";import{ExpanderState as fe,NOTIFY_EXPANDED as pe}from"./widgets/adw-expander-row.js";import{NOTIFY_VISIBLE_CHILD as me}from"./widgets/adw-view-stack.js";import{AdwViewSwitcherBase as he,NOTIFY_SELECTED as ge}from"./widgets/view-switcher-base.js";import{NsNavigationSplitViewState as _e,NsOverlaySplitViewState as ve,splitViewColumns as ye}from"./widgets/split-view-state.js";import{AdwSplitViewBase as be,NOTIFY_SHOW_SIDEBAR as xe}from"./widgets/split-view-base.js";import{NOTIFY_VISIBLE_PAGE as Se}from"./widgets/navigation-stack.js";import{CLOSED as Ce}from"./widgets/adw-preferences-dialog.js";import{SHORTCUT_LABEL_CAP_TEXT_CLASS as we,SHORTCUT_LABEL_CLASS as Te,SHORTCUT_LABEL_DIMMED_CLASS as Ee,SHORTCUT_LABEL_DISABLED_CLASS as De,SHORTCUT_LABEL_KEYCAP_CLASS as Oe,SHORTCUT_LABEL_KEYS_CLASS as ke,SHORTCUT_LABEL_SIDE_CLASS as Ae,SHORTCUT_LABEL_SPACED_CLASS as je,shortcutLabelDirection as Me,shortcutLabelPlatform as Ne,shortcutLabelRenderPlan as Pe}from"./widgets/shortcut-label.js";import{NOTIFY_SELECTED as Fe}from"./widgets/adw-sidebar.js";import{NOTIFY_VALUE as Q,SpinState as Ie}from"./widgets/adw-spin-row.js";import{CLICKED as Le,MENU_TAPPED as Re}from"./widgets/adw-split-button.js";import{NOTIFY_ACTIVE as ze}from"./widgets/adw-switch-row.js";import{AdwToast as Be,AdwToastQueue as Ve,DEFAULT_TOAST_TIMEOUT as He,TOAST_BUTTON_CLICKED as Ue}from"./widgets/adw-toast-overlay.js";import{NOTIFY_SELECTED as We,ToggleGroupState as Ge}from"./widgets/adw-toggle-group.js";import{adw_exports as Ke}from"./namespace/adw.js";import{DEFAULT_BOX_SPACING as qe,boxChildTrack as Je,boxSpacingChanges as Ye,boxTrackPlan as Xe,normalizeBoxSpacing as Ze}from"./widgets/box-layout.js";import{buttonSlotAfterWrite as Qe,buttonSlotDetaches as $e}from"./widgets/button-slot.js";import{GTK_BUTTON_CLICKED as et,GTK_BUTTON_LABEL_CLASS as tt}from"./widgets/gtk-button.js";import{NOTIFY_SELECTED as nt}from"./widgets/gtk-drop-down.js";import{GTK_CHECK_BUTTON_ACTIVATE as rt,GTK_CHECK_BUTTON_CHECKED_CLASS as it,GTK_CHECK_BUTTON_INCONSISTENT_CLASS as at,GTK_CHECK_BUTTON_TOGGLED as ot,NOTIFY_CHECK_ACTIVE as st}from"./widgets/gtk-check-button.js";import{DRAWING_AREA_REFUSAL as ct}from"./widgets/gtk-drawing-area.js";import{ACTIVATE as lt,NOTIFY_TEXT as ut}from"./widgets/gtk-entry.js";import{LIST_BOX_ROW_ACTIVATED as dt,LIST_BOX_ROW_SELECTED as ft}from"./widgets/gtk-list-box.js";import{MENU_ITEM_ACTIVATED as pt}from"./widgets/gtk-menu-button.js";import{NOTIFY_REVEAL_CHILD as mt}from"./widgets/gtk-revealer.js";import{NOTIFY_STACK_VISIBLE_CHILD as ht,NOTIFY_STACK_VISIBLE_CHILD_NAME as gt}from"./widgets/gtk-stack.js";import{GTK_WRAP_MODES as _t,NOTIFY_TEXT_VIEW_TEXT as vt}from"./widgets/gtk-text-view.js";import{GTK_TOGGLE_BUTTON_CHECKED_CLASS as yt,GTK_TOGGLE_BUTTON_TOGGLED as bt,NOTIFY_TOGGLE_ACTIVE as xt}from"./widgets/gtk-toggle-button.js";import{gtk_exports as St}from"./namespace/gtk.js";import{ADWAITA_SANS_FONT_FAMILY as Ct,ADWAITA_SANS_TTF_FILES as wt,adwaitaFontInstallInstructions as Tt,hasAdwaitaSans as Et}from"./fonts.js";import{AdwSliderRow as Dt,NOTIFY_SLIDER_VALUE as Ot}from"./widgets/adw-slider-row.js";import{DATA_GRID_HEADER_CELL_CLASS as kt,DATA_GRID_HEADER_ROW_CLASS as At,DATA_GRID_SECTION_CELL_CLASS as jt,dataGridCellClass as Mt,dataGridItemSpec as Nt,dataGridRowClass as Pt,dataGridShapeKey as Ft,dataGridTracksKey as It,parseDataGridWidth as Lt}from"./widgets/data-grid-model.js";import{AdwDataGrid as Rt,ROW_ACTIVATED as zt}from"./widgets/adw-data-grid.js";import{ADWAITA_NS_ACCENT_RULES as Bt,adwaitaNsAccentColor as Vt,adwaitaNsAccentCss as Ht}from"./widgets/accent-theme.js";import{applyAdwaitaNsAccent as Ut,clearAdwaitaNsAccent as Wt}from"./widgets/adw-accent.js";import{padForSystemInsets as Gt,padSheetForSystemInsets as Kt}from"./widgets/system-insets.js";import{labelDisplayText as qt,labelMarkupIsUnparseable as Jt,registerAdwaitaElements as $}from"./widgets/index.js";import{gio_exports as Yt}from"./namespace/gio.js";import{gdk_exports as Xt}from"./namespace/gdk.js";import{glib_exports as Zt}from"./namespace/glib.js";import{assertNativeScript as Qt,assertNativeScript as $t,isAndroid as en,isIOS as tn,isNativeScript as nn}from"@gjsify/native-platform";function registerAdwaita(){$t(),$()}export{_ as ABOUT_CLOSED,B as ACTIVATED,w as ADWAITA_ICON_GRID,Bt as ADWAITA_NS_ACCENT_RULES,Ct as ADWAITA_SANS_FONT_FAMILY,wt as ADWAITA_SANS_TTF_FILES,se as ADW_DIALOG_CLOSED,ce as ADW_DIALOG_CLOSE_ATTEMPT,W as AVATAR_DEFAULT_ICON,Ke as Adw,V as AdwAlertResponses,ee as AdwBreakpoint,Rt as AdwDataGrid,le as AdwImageButton,Dt as AdwSliderRow,be as AdwSplitViewBase,Be as AdwToast,Ve as AdwToastQueue,he as AdwViewSwitcherBase,J as BUTTON_CLICKED,Le as CLICKED,ae as ComboState,kt as DATA_GRID_HEADER_CELL_CLASS,At as DATA_GRID_HEADER_ROW_CLASS,jt as DATA_GRID_SECTION_CELL_CLASS,G as DEFAULT_AVATAR_SIZE,qe as DEFAULT_BOX_SPACING,re as DEFAULT_CAROUSEL_PAGE_WIDTH,K as DEFAULT_CLAMP_MAX_SIZE,z as DEFAULT_GTK_IMAGE_SIZE,ue as DEFAULT_ICON_BUTTON_ICON_SIZE,T as DEFAULT_ICON_COLOR,E as DEFAULT_ICON_COLOR_DARK,i as DEFAULT_ICON_PIXEL_SIZE,q as DEFAULT_SPINNER_SIZE,He as DEFAULT_TOAST_TIMEOUT,ct as DRAWING_AREA_REFUSAL,lt as ENTRY_ACTIVATE,fe as ExpanderState,Zt as GLib,r as GTK_ALIGN,et as GTK_BUTTON_CLICKED,tt as GTK_BUTTON_LABEL_CLASS,rt as GTK_CHECK_BUTTON_ACTIVATE,it as GTK_CHECK_BUTTON_CHECKED_CLASS,at as GTK_CHECK_BUTTON_INCONSISTENT_CLASS,ot as GTK_CHECK_BUTTON_TOGGLED,a as GTK_ICON_SIZE_NICKS,o as GTK_ICON_SIZE_PIXELS,yt as GTK_TOGGLE_BUTTON_CHECKED_CLASS,bt as GTK_TOGGLE_BUTTON_TOGGLED,_t as GTK_WRAP_MODES,Xt as Gdk,Yt as Gio,St as Gtk,k as ICON_FALLBACK_NAME,dt as LIST_BOX_ROW_ACTIVATED,ft as LIST_BOX_ROW_SELECTED,pt as MENU_ITEM_ACTIVATED,Re as MENU_TAPPED,ze as NOTIFY_ACTIVE,st as NOTIFY_CHECK_ACTIVE,nt as NOTIFY_DROP_DOWN_SELECTED,ut as NOTIFY_ENTRY_TEXT,pe as NOTIFY_EXPANDED,m as NOTIFY_HEXPAND,Y as NOTIFY_OPEN,ie as NOTIFY_POSITION,H as NOTIFY_RESPONSE,mt as NOTIFY_REVEAL_CHILD,oe as NOTIFY_SELECTED,xe as NOTIFY_SHOW_SIDEBAR,Fe as NOTIFY_SIDEBAR_SELECTED,Ot as NOTIFY_SLIDER_VALUE,ht as NOTIFY_STACK_VISIBLE_CHILD,gt as NOTIFY_STACK_VISIBLE_CHILD_NAME,de as NOTIFY_TEXT,vt as NOTIFY_TEXT_VIEW_TEXT,xt as NOTIFY_TOGGLE_ACTIVE,We as NOTIFY_TOGGLE_SELECTED,Q as NOTIFY_VALUE,h as NOTIFY_VEXPAND,ge as NOTIFY_VIEW_SELECTED,me as NOTIFY_VISIBLE_CHILD,Se as NOTIFY_VISIBLE_PAGE,_e as NsNavigationSplitViewState,ve as NsOverlaySplitViewState,s as PIXEL_SIZE_UNSET,Ce as PREFERENCES_CLOSED,zt as ROW_ACTIVATED,we as SHORTCUT_LABEL_CAP_TEXT_CLASS,Te as SHORTCUT_LABEL_CLASS,Ee as SHORTCUT_LABEL_DIMMED_CLASS,De as SHORTCUT_LABEL_DISABLED_CLASS,Oe as SHORTCUT_LABEL_KEYCAP_CLASS,ke as SHORTCUT_LABEL_KEYS_CLASS,Ae as SHORTCUT_LABEL_SIDE_CLASS,je as SHORTCUT_LABEL_SPACED_CLASS,Ie as SpinState,Ue as TOAST_BUTTON_CLICKED,Ge as ToggleGroupState,d as activateWidgetAction,te as addBreakpoints,v as adwaitaColorScheme,Tt as adwaitaFontInstallInstructions,Vt as adwaitaNsAccentColor,Ht as adwaitaNsAccentCss,Ut as applyAdwaitaNsAccent,l as applyConstructProps,Qt as assertNativeScript,X as attachRowPressFeedback,U as avatarInitials,Z as bottomSheetPanel,Je as boxChildTrack,Ye as boxSpacingChanges,Xe as boxTrackPlan,Qe as buttonSlotAfterWrite,$e as buttonSlotDetaches,Wt as clearAdwaitaNsAccent,A as compiledIconNames,Mt as dataGridCellClass,Nt as dataGridItemSpec,Pt as dataGridRowClass,Ft as dataGridShapeKey,It as dataGridTracksKey,ne as evaluateBreakpointCondition,D as extractIconPaths,O as extractPathData,f as findActionGroup,Et as hasAdwaitaSans,j as iconValueKind,p as insertActionGroup,en as isAndroid,c as isGtkIconSizeNick,tn as isIOS,M as isIconAvailable,nn as isNativeScript,y as isThemeIconColor,qt as labelDisplayText,Jt as labelMarkupIsUnparseable,Ze as normalizeBoxSpacing,u as nsAlignment,e as observeViewSize,t as observeWindowSize,b as onAdwaitaColorSchemeChanged,Gt as padForSystemInsets,Kt as padSheetForSystemInsets,n as parseBreakpointCondition,Lt as parseDataGridWidth,registerAdwaita,$ as registerAdwaitaElements,N as registerIcon,P as registerIcons,F as registeredIconNames,R as renderSymbolicIcon,I as resolveIconSource,x as setAdwaitaColorScheme,Me as shortcutLabelDirection,Ne as shortcutLabelPlatform,Pe as shortcutLabelRenderPlan,ye as splitViewColumns,S as themeIconColor,C as toggleAdwaitaColorScheme,L as unregisterIcon,g as withGtkWidgetLayout};
|
package/lib/esm/namespace/gtk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__exportAll as e}from"../_virtual/_rolldown/runtime.js";import{
|
|
1
|
+
import{__exportAll as e}from"../_virtual/_rolldown/runtime.js";import{GtkImage as t}from"../widgets/gtk-image.js";import{GtkApplication as n}from"../widgets/application.js";import{GtkWindow as r}from"../widgets/gtk-window.js";import{ArrowType as i,License as a,PolicyType as o,TextDirection as s,TextExtendSelection as c,TextWindowType as l}from"../widgets/gtk-enums.js";import{GtkActionBar as u}from"../widgets/gtk-action-bar.js";import{GtkBox as d}from"../widgets/gtk-box.js";import{GtkButton as f}from"../widgets/gtk-button.js";import{GtkDropDown as p}from"../widgets/gtk-drop-down.js";import{GtkCheckButton as m}from"../widgets/gtk-check-button.js";import{GtkDrawingArea as h}from"../widgets/gtk-drawing-area.js";import{GtkEntry as g}from"../widgets/gtk-entry.js";import{GtkGrid as _}from"../widgets/gtk-grid.js";import{GtkFrame as v}from"../widgets/gtk-frame.js";import{GtkLabel as y}from"../widgets/gtk-label.js";import{GtkListBox as b}from"../widgets/gtk-list-box.js";import{GtkMenuButton as x}from"../widgets/gtk-menu-button.js";import{GtkPopoverMenu as S}from"../widgets/gtk-popover-menu.js";import{GtkOverlay as C}from"../widgets/gtk-overlay.js";import{GtkRevealer as w}from"../widgets/gtk-revealer.js";import{GtkScrolledWindow as T}from"../widgets/gtk-scrolled-window.js";import{GtkSeparator as E}from"../widgets/gtk-separator.js";import{GtkStackPage as D}from"../widgets/stack-page.js";import{GtkStack as O}from"../widgets/gtk-stack.js";import{GtkTextView as k}from"../widgets/gtk-text-view.js";import{GtkToggleButton as A}from"../widgets/gtk-toggle-button.js";import{CssProvider as j,EventControllerKey as M,IconTheme as N,Settings as P,StyleContext as F,show_uri as I}from"./gtk-platform.js";import{DialogError as L,GtkAdjustment as R,GtkFileDialog as z,GtkFileFilter as B,GtkStringList as V,STYLE_PROVIDER_PRIORITY_APPLICATION as H,STYLE_PROVIDER_PRIORITY_FALLBACK as U,STYLE_PROVIDER_PRIORITY_SETTINGS as W,STYLE_PROVIDER_PRIORITY_THEME as G,STYLE_PROVIDER_PRIORITY_USER as K}from"@gjsify/adwaita-core";var q=e({ActionBar:()=>u,Adjustment:()=>R,Application:()=>n,ArrowType:()=>i,Box:()=>d,Button:()=>f,CheckButton:()=>m,CssProvider:()=>j,DialogError:()=>L,DrawingArea:()=>h,DropDown:()=>p,Entry:()=>g,EventControllerKey:()=>M,FileDialog:()=>z,FileFilter:()=>B,Frame:()=>v,Grid:()=>_,IconTheme:()=>N,Image:()=>t,Label:()=>y,License:()=>a,ListBox:()=>b,MenuButton:()=>x,Overlay:()=>C,PolicyType:()=>o,PopoverMenu:()=>S,Revealer:()=>w,STYLE_PROVIDER_PRIORITY_APPLICATION:()=>H,STYLE_PROVIDER_PRIORITY_FALLBACK:()=>U,STYLE_PROVIDER_PRIORITY_SETTINGS:()=>W,STYLE_PROVIDER_PRIORITY_THEME:()=>G,STYLE_PROVIDER_PRIORITY_USER:()=>K,ScrolledWindow:()=>T,Separator:()=>E,Settings:()=>P,Stack:()=>O,StackPage:()=>D,StringList:()=>V,StyleContext:()=>F,TextDirection:()=>s,TextExtendSelection:()=>c,TextView:()=>k,TextWindowType:()=>l,ToggleButton:()=>A,Window:()=>r,show_uri:()=>I});export{u as ActionBar,R as Adjustment,n as Application,i as ArrowType,d as Box,f as Button,m as CheckButton,j as CssProvider,L as DialogError,h as DrawingArea,p as DropDown,g as Entry,M as EventControllerKey,z as FileDialog,B as FileFilter,v as Frame,_ as Grid,N as IconTheme,t as Image,y as Label,a as License,b as ListBox,x as MenuButton,C as Overlay,o as PolicyType,S as PopoverMenu,w as Revealer,H as STYLE_PROVIDER_PRIORITY_APPLICATION,U as STYLE_PROVIDER_PRIORITY_FALLBACK,W as STYLE_PROVIDER_PRIORITY_SETTINGS,G as STYLE_PROVIDER_PRIORITY_THEME,K as STYLE_PROVIDER_PRIORITY_USER,T as ScrolledWindow,E as Separator,P as Settings,O as Stack,D as StackPage,V as StringList,F as StyleContext,s as TextDirection,c as TextExtendSelection,k as TextView,l as TextWindowType,A as ToggleButton,r as Window,q as gtk_exports,I as show_uri};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{xmlBoolean as e}from"./xml-values.js";import{applyConstructProps as t}from"./construct-props.js";import{withSignals as n}from"./signals.js";import{
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{xmlBoolean as e}from"./xml-values.js";import{applyConstructProps as t}from"./construct-props.js";import{withSignals as n}from"./signals.js";import{findDialogHost as r}from"./window-state.js";import{aboutDialogVisibility as i}from"@gjsify/adwaita-core";import{Button as a,GridLayout as o,ItemSpec as s,Label as c,ScrollView as l,StackLayout as u}from"@nativescript/core";const d=`closed`;var AdwAboutDialog=class extends n(o){static GTypeName=`AdwAboutDialog`;_card;_iconLabel;_nameLabel;_versionLabel;_developerLabel;_commentsLabel;_websiteLabel;_copyrightLabel;_applicationName=``;_applicationIcon=``;_developerName=``;_version=``;_comments=``;_website=``;_copyright=``;_host=null;constructor(e){super(),this.className=`adw-about-dialog`,this.visibility=`collapse`,this.addColumn(new s(1,`star`)),this.addRow(new s(1,`star`));let n=new l;n.orientation=`vertical`,n.verticalAlignment=`middle`,n.horizontalAlignment=`center`,o.setColumn(n,0),o.setRow(n,0);let r=new u;r.orientation=`vertical`,r.className=`adw-about-dialog-card`,n.content=r,this.addChild(n),this._card=r,this._iconLabel=this._addCardLabel(r,`adw-about-dialog-icon`),this._nameLabel=this._addCardLabel(r,`adw-about-dialog-name`),this._versionLabel=this._addCardLabel(r,`adw-about-dialog-version`),this._developerLabel=this._addCardLabel(r,`adw-about-dialog-developer`),this._commentsLabel=this._addCardLabel(r,`adw-about-dialog-comments`),this._websiteLabel=this._addCardLabel(r,`adw-about-dialog-website`),this._copyrightLabel=this._addCardLabel(r,`adw-about-dialog-copyright`);let i=new a;i.text=`Close`,i.className=`adw-about-dialog-close`,i.set(`androidElevation`,0),i.addEventListener(`tap`,()=>this.close()),r.addChild(i),this._render(),t(this,e)}_addCardLabel(e,t){let n=new c;return n.className=t,n.horizontalAlignment=`center`,n.textWrap=!0,e.addChild(n),n}get applicationName(){return this._applicationName}set applicationName(e){this._applicationName=e??``,this._render()}get applicationIcon(){return this._applicationIcon}set applicationIcon(e){this._applicationIcon=e??``,this._render()}get version(){return this._version}set version(e){this._version=e??``,this._render()}get developerName(){return this._developerName}set developerName(e){this._developerName=e??``,this._render()}get comments(){return this._comments}set comments(e){this._comments=e??``,this._render()}get website(){return this._website}set website(e){this._website=e??``,this._render()}get copyright(){return this._copyright}set copyright(e){this._copyright=e??``,this._render()}_render(){let e=i({applicationName:this._applicationName,applicationIcon:this._applicationIcon,developerName:this._developerName,version:this._version,comments:this._comments,website:this._website}),show=(e,t,n)=>{e.text=t,e.visibility=n?`visible`:`collapse`};show(this._iconLabel,this._applicationIcon,e.appIcon),show(this._nameLabel,this._applicationName,e.appName),show(this._versionLabel,this._version,e.version),show(this._developerLabel,this._developerName,e.developerName),show(this._commentsLabel,this._comments,e.commentsLabel),show(this._websiteLabel,this._website,e.websiteRow),show(this._copyrightLabel,this._copyright,this._copyright.length>0)}present(e){if(!this.open){if(this.parent===null||this.parent===void 0){let t=r(e??null);if(t===null)throw Error(`${this.constructor.name} has no window to appear in: pass a widget that sits inside an Adw.Window / Adw.ApplicationWindow to present(), or add the dialog to a layout first.`);t._hostDialog(this),this._host=t}this.visibility=`visible`}}close(){this.visibility=`collapse`,this._host!==null&&(this._host._unhostDialog(this),this._host=null);let e={eventName:d,object:this};this.notify(e)}get open(){return this.visibility===`visible`}set open(t){e(t,!1)?this.present():this.close()}};export{AdwAboutDialog,d as CLOSED};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{builderSlotsOf as e,resolveBuilderSlot as t}from"./builder-slots.js";import{xmlBoolean as n}from"./xml-values.js";import{applyConstructProps as r}from"./construct-props.js";import{withSignals as i}from"./signals.js";import{ActionRowState as a,isViewSensitive as o,rowLabelVisuals as s}from"./row-state.js";import{GridLayout as
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{builderSlotsOf as e,resolveBuilderSlot as t}from"./builder-slots.js";import{xmlBoolean as n}from"./xml-values.js";import{applyConstructProps as r}from"./construct-props.js";import{withSignals as i}from"./signals.js";import{ActionRowState as a,isViewSensitive as o,rowLabelVisuals as s}from"./row-state.js";import{GtkImage as c}from"./gtk-image.js";import{GridLayout as l,ItemSpec as u,Label as d,StackLayout as f}from"@nativescript/core";const p=`activated`,m=[`prefix`,`suffix`];var AdwActionRow=class extends i(l){static GTypeName=`AdwActionRow`;static builderSlots=e(m,`suffix`);isActionRow=!0;_textStack;_titleLabel;_subtitleLabel;_rowState=new a;_prefix=null;_iconImage=null;_suffix=null;constructor(e){super(),this.className=`adw-row adw-action-row`,this.addColumn(new u(1,`auto`)),this.addColumn(new u(1,`star`)),this.addColumn(new u(1,`auto`)),this.addRow(new u(1,`auto`));let t=new f;t.orientation=`vertical`,t.className=`adw-row-text`,l.setColumn(t,1);let n=new d;n.className=`adw-row-title`,n.textWrap=!0,t.addChild(n);let i=new d;i.className=`adw-row-subtitle`,i.textWrap=!0,t.addChild(i),this.addChild(t),this._textStack=t,this._titleLabel=n,this._subtitleLabel=i,this._applyLabels(),this.addEventListener(`tap`,()=>this.activate()),r(this,e)}add_prefix(e){this._prefix&&this.remove(this._prefix),e.className=`${e.className??``} adw-row-prefix`.trim(),l.setColumn(e,0),this.insertChild(e,0),this._prefix=e}get iconName(){return this._iconImage!==null&&this._prefix===this._iconImage?this._iconImage.iconName:``}set iconName(e){let t=e??``;if(this._iconImage!==null&&this._prefix!==this._iconImage&&(this._iconImage=null),t===``){this._iconImage!==null&&(this.remove(this._iconImage),this._iconImage=null);return}if(this._iconImage===null){if(this._prefix)throw TypeError(`${this.constructor.name}.iconName needs the prefix slot, which add_prefix() already filled.`);this._iconImage=new c,this.add_prefix(this._iconImage)}this._iconImage.iconName=t}get prefix(){return this._prefix}get title(){return this._rowState.title}set title(e){this._rowState.setTitle(e)&&this._applyLabels()}get subtitle(){return this._rowState.subtitle}set subtitle(e){this._rowState.setSubtitle(e)&&this._applyLabels()}add_suffix(e){this._suffix&&this.remove(this._suffix),e.className=`${e.className??``} adw-row-suffix`.trim(),l.setColumn(e,2),this.addChild(e),this._suffix=e}remove(e){if(e===this._prefix)this._prefix=null;else if(e===this._suffix)this._suffix=null;else throw TypeError(`${this.constructor.name}.remove(): the view is neither this row's prefix nor its suffix. add_prefix()/add_suffix() are the only two slots remove() clears.`);this.removeChild(e)}get suffix(){return this._suffix}_addChildFromBuilder(e,n){t(e,m,`suffix`)===`prefix`?this.add_prefix(n):this.add_suffix(n)}get activatableWidget(){return this._rowState.activatableWidget}set activatableWidget(e){this._rowState.setActivatableWidget(e,o(e))}syncActivatableWidgetSensitivity(){let e=this._rowState.activatableWidget;e&&this._rowState.setActivatableWidgetSensitive(o(e))}get activatable(){return this._rowState.activatable}set activatable(e){this._rowState.setActivatable(n(e,!1))}activate(){if(!this._rowState.activatable)return;let e={eventName:p,object:this};this.notify(e)}_managesTitleVisibility=!0;_applyLabels(){let e=s({title:this._rowState.title,subtitle:this._rowState.subtitle});this._titleLabel.text=e.title,this._managesTitleVisibility&&(this._titleLabel.visibility=e.titleVisibility),this._subtitleLabel.text=e.subtitle,this._subtitleLabel.visibility=e.subtitleVisibility}};export{p as ACTIVATED,AdwActionRow};
|
|
@@ -1 +1 @@
|
|
|
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{
|
|
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{GtkImage as i}from"./gtk-image.js";import{avatarColor as a,avatarInitials as o}from"./avatar-color.js";import{AVATAR_DEFAULT_ICON as s,avatarViewState as c}from"./avatar-view.js";import{avatarIconSize as l,avatarMaxFontSize as u}from"@gjsify/adwaita-core";import{GridLayout as d,ItemSpec as f,Label as p}from"@nativescript/core";const m=48;var AdwAvatar=class extends r(d){static GTypeName=`AdwAvatar`;_label;_icon;_text=``;_size=48;_showInitials=!1;_iconName=``;constructor(e){super(),this.className=`adw-avatar`,this.addColumn(new f(1,`star`)),this.addRow(new f(1,`star`));let t=new p;t.className=`adw-avatar-label`,t.horizontalAlignment=`center`,t.verticalAlignment=`middle`,d.setColumn(t,0),d.setRow(t,0),this.addChild(t),this._label=t;let r=new i;r.className=`adw-icon adw-avatar-icon`,r.horizontalAlignment=`center`,r.verticalAlignment=`middle`,d.setColumn(r,0),d.setRow(r,0),this.addChild(r),this._icon=r,this._applySize(),this._applyColor(),this._applyMode(),n(this,e)}_applySize(){this.width=this._size,this.height=this._size,this.set(`borderRadius`,this._size/2),this._label.set(`fontSize`,Math.round(Math.min(this._size*.4,u(this._size)))),this._icon.pixelSize=l(this._size)}_applyColor(){let{fill:e,fg:t}=a(this._text);this.set(`backgroundColor`,e),this._label.set(`color`,t),this._icon.iconColor=t}_applyMode(){let e=c({showInitials:this._showInitials,text:this._text,iconName:this._iconName});this._label.visibility=e.label,this._icon.visibility=e.icon,e.icon===`visible`&&(this._icon.iconName=e.iconName)}get text(){return this._text}set text(e){this._text=e??``,this._label.text=o(this._text),this._applyColor(),this._applyMode()}get size(){return this._size}set size(e){let n=t(e,48);this._size=n>0?n:48,this._applySize()}get showInitials(){return this._showInitials}set showInitials(t){this._showInitials=e(t,!1),this._applyMode()}get iconName(){return this._iconName}set iconName(e){this._iconName=e??``,this._applyMode()}};export{s as AVATAR_DEFAULT_ICON,AdwAvatar,m as DEFAULT_AVATAR_SIZE,a as avatarColor,o as avatarInitials};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{ButtonRowState as t,buttonRowIconColor as n,buttonRowIconVisuals as r}from"./row-state.js";import{ACTIVATED as
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{ButtonRowState as t,buttonRowIconColor as n,buttonRowIconVisuals as r}from"./row-state.js";import{GtkImage as i}from"./gtk-image.js";import{ACTIVATED as a,AdwActionRow as o}from"./adw-action-row.js";import{classNameWith as s,normalizeStyleClasses as c,withCssClass as l,withoutCssClass as u}from"./style-classes.js";import{attachRowPressFeedback as d}from"./row-press.js";import{adwaitaAccent as f,onAdwaitaAccentChanged as p}from"@gjsify/adwaita-core";import{StackLayout as m}from"@nativescript/core";const h=`adw-row adw-action-row adw-button-row`;var g=class AdwButtonRow extends o{static GTypeName=`AdwButtonRow`;isActionRow=!1;_contentBox;_startIcon;_endIcon;_pinnedIconColor=null;_unsubAccent=null;_buttonState=new t;_styleClasses=[];constructor(t){super(),this.className=h,this._titleLabel.className=`adw-button-row-title`,this._titleLabel.horizontalAlignment=`center`,this._textStack.removeChild(this._titleLabel);let n=new m;n.orientation=`horizontal`,n.className=`adw-button-row-content`,n.horizontalAlignment=`center`,this._startIcon=AdwButtonRow._makeIcon(`adw-button-row-start-icon`),this._endIcon=AdwButtonRow._makeIcon(`adw-button-row-end-icon`),this._applyIconColor(),this.addEventListener(`loaded`,()=>{this._applyIconColor(),this._unsubAccent??=p(()=>this._applyIconColor())}),this.addEventListener(`unloaded`,()=>{this._unsubAccent?.(),this._unsubAccent=null}),n.addChild(this._startIcon),n.addChild(this._titleLabel),n.addChild(this._endIcon),this._textStack.addChild(n),this._textStack.horizontalAlignment=`center`,this._contentBox=n,this.activatable=!0,this._applyIcons(),d(this),e(this,t)}get styleClasses(){return[...this._styleClasses]}set styleClasses(e){this._setClasses(c(e))}add_css_class(e){this._setClasses(l(this._styleClasses,e))}remove_css_class(e){this._setClasses(u(this._styleClasses,e))}has_css_class(e){return this._styleClasses.includes((e??``).trim())}get_css_classes(){return[...this._styleClasses]}set_css_classes(e){this._setClasses(c([...e].join(` `)))}_setClasses(e){this._styleClasses=e,this.className=s(h,e)}static _makeIcon(e){let t=new i;return t.className=`${t.className} ${e}`.trim(),t.verticalAlignment=`middle`,t}get startIconName(){return this._buttonState.startIconName}set startIconName(e){this._buttonState.setStartIconName(e)&&this._applyIcons()}get endIconName(){return this._buttonState.endIconName}set endIconName(e){this._buttonState.setEndIconName(e)&&this._applyIcons()}get startIconColor(){return this._startIcon.iconColor}set startIconColor(e){this._pinnedIconColor=e||null,this._applyIconColor()}_applyIconColor(){let e=n(this._pinnedIconColor,f());this._startIcon.iconColor=e,this._endIcon.iconColor=e}_applyIcons(){let e=r(this._buttonState.state);this._startIcon.iconName=e.startIcon,this._startIcon.visibility=e.startIconVisibility,this._endIcon.iconName=e.endIcon,this._endIcon.visibility=e.endIconVisibility}};export{a as ACTIVATED,g as AdwButtonRow};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{builderSlotsOf as e,resolveBuilderSlot as t}from"./builder-slots.js";import{xmlNumber as n}from"./xml-values.js";import{applyConstructProps as r}from"./construct-props.js";import{
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{builderSlotsOf as e,resolveBuilderSlot as t}from"./builder-slots.js";import{xmlNumber as n}from"./xml-values.js";import{applyConstructProps as r}from"./construct-props.js";import{GtkImage as i}from"./gtk-image.js";import{AdwActionRow as a}from"./adw-action-row.js";import{attachRowPressFeedback as o}from"./row-press.js";import{ComboState as s,ComboState as c,normalizeComboOptions as l}from"@gjsify/adwaita-core";import{Label as u,StackLayout as d,action as f}from"@nativescript/core";import{panDownSymbolic as p}from"@gjsify/adwaita-icons/ui";const m=`notify::selected`;var AdwComboRow=class extends a{static GTypeName=`AdwComboRow`;static builderSlots=e([...a.builderSlots,`model`],`suffix`);_valueLabel;_chevron;_state=new c;_pendingSelected=null;constructor(e){super(),this.className=`adw-row adw-action-row adw-combo-row`;let t=new d;t.orientation=`horizontal`,t.className=`adw-combo-suffix`;let n=new u;n.className=`adw-combo-value`,n.text=``;let a=new i;a.className=`adw-combo-chevron`,a.iconColor=`#9a9a9a`,a.pixelSize=16,a.iconName=p,t.addChild(n),t.addChild(a),this.add_suffix(t),this._valueLabel=n,this._chevron=a,this._state.subscribe(e=>{if(this._valueLabel.text=e.label,this._syncChooser(),e.interactive){let t={eventName:m,object:this,selected:e.selected,value:e.value};this.notify(t)}}),this.addEventListener(`tap`,()=>{this._openChooser()}),o(this),this._syncChooser(),r(this,e)}_syncChooser(){this._chevron.visibility=this._state.presentsChooser?`visible`:`collapse`}async _openChooser(){if(!this._state.presentsChooser)return;let e=this._state.model.map(e=>e.label),t=await f({title:this.title||void 0,cancelButtonText:`Cancel`,actions:e});this._state.select(e.indexOf(t))}get model(){return this._state.model}set model(e){if(this._state.setModel(l(e)),this._pendingSelected!==null&&this._pendingSelected<this._state.model.length){let e=this._pendingSelected;this._pendingSelected=null,this._state.setSelectedIndex(e)}}_addChildFromBuilder(e,n){if(t(e,[`model`],`edge`)===`model`){this.model=n;return}super._addChildFromBuilder(e,n)}get selected(){return this._state.selectedIndex}set selected(e){let t=n(e,this.selected);if(this._state.model.length===0){this._pendingSelected=t;return}this._state.setSelectedIndex(t)}get selectedValue(){return this._state.selectedValue}set selectedValue(e){this._state.setSelectedValue(e)}};export{AdwComboRow,s as ComboState,m as NOTIFY_SELECTED};
|
|
@@ -1 +1 @@
|
|
|
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{
|
|
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{DEFAULT_DIALOG_PRESENTATION_MODE as i,dialogPresentationMode as a,findDialogHost as o,surfaceSize as s}from"./window-state.js";import{AdwSingleChildBase as c}from"./single-child-base.js";import{GridLayout as l,ItemSpec as u}from"@nativescript/core";const d=`closed`,f=`close-attempt`,p=`adw-dialog`;var AdwDialog=class extends c{static GTypeName=`AdwDialog`;static builderSlots=e([`child`],`child`);_card;_title=``;_contentWidth=-1;_contentHeight=-1;_followsContentSize=!0;_canClose=!0;_presentationMode=i;_host=null;constructor(e){super(),this._restyle(),this.visibility=`collapse`;let t=new l;t.className=`${p}-card`,t.addColumn(new u(1,`star`)),t.addRow(new u(1,`star`)),l.setColumn(t,0),l.setRow(t,0),this.addChild(t),this._card=t,this._layoutCard(),r(this,e)}get _ownClass(){return p}_adopt(e){l.setColumn(e,0),l.setRow(e,0),this._card.addChild(e)}_release(e){this._card.removeChild(e)}get title(){return this._title}set title(e){this._title=e??``,this._card.accessibilityLabel=this._title===``?void 0:this._title}get contentWidth(){return this._contentWidth}set contentWidth(e){this._contentWidth=s(n(e,NaN),e,this._contentWidth,`contentWidth`),this._layoutCard()}get contentHeight(){return this._contentHeight}set contentHeight(e){this._contentHeight=s(n(e,NaN),e,this._contentHeight,`contentHeight`),this._layoutCard()}get followsContentSize(){return this._followsContentSize}set followsContentSize(e){this._followsContentSize=t(e,this._followsContentSize)}get canClose(){return this._canClose}set canClose(e){this._canClose=t(e,this._canClose)}get presentationMode(){return this._presentationMode}set presentationMode(e){this._presentationMode=a(e),this._layoutCard()}get open(){return this.visibility===`visible`}present(e){if(!this.open){if(this.parent===null||this.parent===void 0){let t=o(e??null);if(t===null)throw Error(`${this.constructor.name} has no window to appear in: pass a widget that sits inside an Adw.Window / Adw.ApplicationWindow to present(), or add the dialog to a layout first.`);t._hostDialog(this),this._host=t}this.visibility=`visible`}}close(){if(!this._canClose){this.notify({eventName:f,object:this});return}this.force_close()}force_close(){this.open&&(this.visibility=`collapse`,this._host!==null&&(this._host._unhostDialog(this),this._host=null),this.notify({eventName:d,object:this}))}_layoutCard(){let e=this._card;e.width=this._contentWidth>0?this._contentWidth:`auto`,e.height=this._contentHeight>0?this._contentHeight:`auto`,this._presentationMode===`bottom-sheet`?(e.horizontalAlignment=`stretch`,e.verticalAlignment=`bottom`,e.width=`auto`):(e.horizontalAlignment=`center`,e.verticalAlignment=`middle`)}};export{p as ADW_DIALOG_CLASS,d as ADW_DIALOG_CLOSED,f as ADW_DIALOG_CLOSE_ATTEMPT,AdwDialog};
|
|
@@ -1 +1 @@
|
|
|
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{
|
|
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{GtkImage as r}from"./gtk-image.js";import{AdwActionRow as i}from"./adw-action-row.js";import{AdwImageButton as a}from"./adw-image-button.js";import{NS_EDIT_ICON_CLASS as o,NS_ENTRY_ROW_CLASS as s,applyEntryRowState as c}from"./entry-row-view.js";import{ADW_ACCENT_FG_COLOR as l,EntryRowState as u,EntryRowState as d}from"@gjsify/adwaita-core";import{Label as f,StackLayout as p,TextField as m}from"@nativescript/core";import{documentEditSymbolic as h,objectSelectSymbolic as g}from"@gjsify/adwaita-icons/actions";const _=`notify::text`,v=`notify::text-length`,y=`apply`,b=`entry-activated`;var AdwEntryRow=class extends i{static GTypeName=`AdwEntryRow`;isActionRow=!1;_state=new d;_field;_emptyTitle;_suffixes;_editIcon;_indicator;_applyButton;_slotSuffix=null;_lastText=``;_lastLength=0;constructor(e){super(),this._titleLabel.className=`adw-row-title adw-entry-title`,this._managesTitleVisibility=!1;let t=new f;t.className=`adw-row-title adw-entry-empty-title`,t.textWrap=!0,this._textStack.insertChild(t,0),this._emptyTitle=t;let i=new m;i.className=`adw-entry-field`,i.set(`backgroundColor`,`transparent`),i.set(`borderWidth`,0),this._textStack.addChild(i),this._field=i;let s=new p;s.orientation=`horizontal`,s.className=`adw-entry-row-suffixes`,this._suffixes=s;let c=new r;c.className=`gtk-image adw-entry-indicator`,s.addChild(c),this._indicator=c;let u=new a;u.className=`${u.className} adw-entry-apply`.trim(),u.iconName=g,u.iconColor=l,u.addEventListener(`tap`,()=>this.apply()),s.addChild(u),this._applyButton=u;let d=new r;d.className=o,d.iconName=h,s.addChild(d),this._editIcon=d,super.add_suffix(s),this._field.addEventListener(`textChange`,()=>{this._state.setText(this._field.text??``)}),this._field.addEventListener(`focus`,()=>this._state.setEditing(!0)),this._field.addEventListener(`blur`,()=>this._state.setEditing(!1)),this._field.addEventListener(`returnPress`,()=>this._activate()),this._lastText=this._state.text,this._lastLength=this._state.textLength,this._render(this._state.state),this._state.subscribe(e=>this._onStateChanged(e)),n(this,e)}get text(){return this._state.text}set text(e){this._state.setText(e??``)}get textLength(){return this._state.textLength}get maxLength(){return this._state.maxLength}set maxLength(e){let n=t(e,this.maxLength);this._state.setMaxLength(n)}get editable(){return this._state.editable}set editable(t){let n=e(t,this.editable);this._state.setEditable(n)}get showApplyButton(){return this._state.showApplyButton}set showApplyButton(t){let n=e(t,this.showApplyButton);this._state.setShowApplyButton(n)}get activatesDefault(){return this._state.activatesDefault}set activatesDefault(t){let n=e(t,this.activatesDefault);this._state.setActivatesDefault(n)}get editing(){return this._state.editing}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._state.setShowIndicator(e)}setIndicatorIcon(e){this._indicator.iconName=e}apply(){this._state.apply(),this.notify({eventName:y,object:this})}_activate(){let e=this._state.activate();if(e.signal===`apply`){this.notify({eventName:y,object:this});return}let t={eventName:b,object:this,activateDefault:e.activateDefault};this.notify(t)}_render(e){c({row:this,emptyTitle:this._emptyTitle,title:this._titleLabel,field:this._field,editIcon:this._editIcon,indicator:this._indicator,applyButton:this._applyButton},e,this._baseClassName)}get _baseClassName(){return s}_onStateChanged(e){if(this._render(e),e.text!==this._lastText){this._lastText=e.text;let t={eventName:_,object:this,text:e.text};this.notify(t)}if(e.textLength!==this._lastLength){this._lastLength=e.textLength;let t={eventName:v,object:this,textLength:e.textLength};this.notify(t)}}};export{AdwEntryRow,u as EntryRowState,_ as NOTIFY_TEXT,v as NOTIFY_TEXT_LENGTH,y as SIGNAL_APPLY,b as SIGNAL_ENTRY_ACTIVATED};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{builderSlotsOf as e,resolveBuilderSlot as t}from"./builder-slots.js";import{xmlBoolean as n}from"./xml-values.js";import{applyConstructProps as r}from"./construct-props.js";import{
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{builderSlotsOf as e,resolveBuilderSlot as t}from"./builder-slots.js";import{xmlBoolean as n}from"./xml-values.js";import{applyConstructProps as r}from"./construct-props.js";import{GtkImage as i}from"./gtk-image.js";import{AdwActionRow as a}from"./adw-action-row.js";import{ExpanderState as o,ExpanderState as s}from"@gjsify/adwaita-core";import{GridLayout as c,ItemSpec as l,StackLayout as u}from"@nativescript/core";import{panDownSymbolic as d,panUpSymbolic as f}from"@gjsify/adwaita-icons/ui";const p=`notify::expanded`,m=[`prefix`,`suffix`],h=[`prefix`];var AdwExpanderRow=class extends a{static GTypeName=`AdwExpanderRow`;static builderSlots=e(h,`row`);isActionRow=!1;_toggle;_disclosure;_state=new s;constructor(e){super(),this.className=`adw-row adw-action-row adw-expander-row`,this.addRow(new l(1,`auto`));let t=new u;t.orientation=`vertical`,t.className=`adw-expander-disclosure`,t.visibility=`collapse`,c.setRow(t,1),c.setColumn(t,0),c.setColumnSpan(t,3),this.addChild(t),this._disclosure=t;let n=new i;n.iconName=d,n.className=`${n.className} adw-expander-toggle`.trim(),this.add_suffix(n),this._toggle=n,this._state.subscribe(e=>{this._disclosure.visibility=e?`visible`:`collapse`,this._toggle.iconName=e?f:d;let t={eventName:p,object:this,expanded:e};this.notify(t)});let toggleOnTap=()=>{this._state.toggle()};this._textStack.addEventListener(`tap`,toggleOnTap),n.addEventListener(`tap`,toggleOnTap),r(this,e)}add_row(e){this._disclosure.addChild(e)}remove(e){this._disclosure.removeChild(e)}_addChildFromBuilder(e,n){let r=t(e,m,`row`);r===`row`?this.add_row(n):super._addChildFromBuilder(r,n)}get disclosureRows(){let e=[];for(let t=0;t<this._disclosure.getChildrenCount();t++)e.push(this._disclosure.getChildAt(t));return e}get expanded(){return this._state.expanded}set expanded(e){this._state.setExpanded(n(e,!1))}};export{AdwExpanderRow,o as ExpanderState,p as NOTIFY_EXPANDED};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{xmlBoolean as e}from"./xml-values.js";import{applyConstructProps as t}from"./construct-props.js";import{withSignals as n}from"./signals.js";import{AdwNavigationPage as r}from"./adw-navigation-page.js";import{NOTIFY_VISIBLE_PAGE as i,NsNavigationStack as a,POPPED as o,PUSHED as s,REPLACED as c,navigationPageClassName as l}from"./navigation-stack.js";import{describeNavigationDiagnostic as u}from"@gjsify/adwaita-core";import{GridLayout as d,ItemSpec as f}from"@nativescript/core";var AdwNavigationView=class extends n(d){static GTypeName=`AdwNavigationView`;_nav;constructor(e){super(),this.className=`adw-navigation-view`,this.addColumn(new f(1,`star`)),this.addRow(new f(1,`star`)),this._nav=new a({attachPage:e=>{e.className=l(e.className),d.setColumn(e,0),d.setRow(e,0),this.addChild(e)},detachPage:e=>this.removeChild(e),setPageVisibility:(e,t)=>{e.visibility=t},emit:e=>this._emitNavigation(e)},{onDiagnostic:e=>console.warn(`[AdwNavigationView] ${u(e)}`)}),t(this,e)}add(e,t=null,n={}){return this._nav.add(e,t,n)}_addChildFromBuilder(e,t){if(t instanceof r){this.add(t,t.tag,{title:t.title,canPop:t.canPop}),t._setOwner(this);return}this.add(t)}remove(e){return this._nav.remove(e)}push(e,t={}){return this._nav.push(e,t)}push_by_tag(e){return this._nav.pushByTag(e)}pop(){return this._nav.pop()}pop_to_page(e){return this._nav.popToPage(e)}pop_to_tag(e){return this._nav.popToTag(e)}replace(e){this._nav.replace(e)}replace_with_tags(e){this._nav.replaceWithTags(e)}find_page(e){return this._nav.findPage(e)}get_previous_page(e){return this._nav.getPreviousPage(e)}setPageTag(e,t){return this._nav.setTag(e,t)}setPageTitle(e,t){return this._nav.setTitle(e,t)}setPageCanPop(e,t){return this._nav.setCanPop(e,t)}canGoBack(){return this._nav.canGoBack()}backButtonTooltip(e){return this._nav.backButtonTooltip(e)}popFromShortcut(){return this._nav.popFromShortcut()}popFromEscape(){return this._nav.popFromEscape()}get visiblePage(){return this._nav.visiblePage}get visiblePageTag(){return this._nav.visiblePageTag}get depth(){return this._nav.depth}get navigationStack(){return this._nav.stack}get pages(){return this._nav.pages}get animateTransitions(){return this._nav.animateTransitions}set animateTransitions(t){let n=e(t,this.animateTransitions);this._nav.setAnimateTransitions(n)}get popOnEscape(){return this._nav.popOnEscape}set popOnEscape(t){let n=e(t,this.popOnEscape);this._nav.setPopOnEscape(n)}_emitNavigation(e){let t={eventName:e.name,object:this,page:e.page,tag:e.tag,depth:e.depth};this.notify(t)}};export{AdwNavigationView,i as NOTIFY_VISIBLE_PAGE,o as POPPED,s as PUSHED,c as REPLACED};
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{xmlBoolean as e}from"./xml-values.js";import{applyConstructProps as t}from"./construct-props.js";import{withSignals as n}from"./signals.js";import{AdwNavigationPage as r}from"./adw-navigation-page.js";import{NOTIFY_VISIBLE_PAGE as i,NsNavigationStack as a,POPPED as o,PUSHED as s,REPLACED as c,navigationPageClassName as l}from"./navigation-stack.js";import{describeNavigationDiagnostic as u}from"@gjsify/adwaita-core";import{GridLayout as d,ItemSpec as f}from"@nativescript/core";var AdwNavigationView=class extends n(d){static GTypeName=`AdwNavigationView`;_nav;constructor(e){super(),this.className=`adw-navigation-view`,this.addColumn(new f(1,`star`)),this.addRow(new f(1,`star`)),this._nav=new a({attachPage:e=>{e.className=l(e.className),d.setColumn(e,0),d.setRow(e,0),this.addChild(e)},detachPage:e=>this.removeChild(e),setPageVisibility:(e,t)=>{e.visibility=t},emit:e=>this._emitNavigation(e)},{onDiagnostic:e=>console.warn(`[AdwNavigationView] ${u(e)}`)}),t(this,e)}add(e,t=null,n={}){return this._nav.add(e,t,n)}_addChildFromBuilder(e,t){if(t instanceof r){this.add(t,t.tag,{title:t.title,canPop:t.canPop}),t._setOwner(this);return}this.add(t)}remove(e){return this._nav.remove(e)}push(e,t={}){return this._nav.push(e,t)}push_by_tag(e){return this._nav.pushByTag(e)}pop(){return this._nav.pop()}pop_to_page(e){return this._nav.popToPage(e)}pop_to_tag(e){return this._nav.popToTag(e)}replace(e){this._nav.replace(e)}replace_with_tags(e){this._nav.replaceWithTags(e)}find_page(e){return this._nav.findPage(e)}get_previous_page(e){return this._nav.getPreviousPage(e)}setPageTag(e,t){return this._nav.setTag(e,t)}setPageTitle(e,t){return this._nav.setTitle(e,t)}setPageCanPop(e,t){return this._nav.setCanPop(e,t)}canGoBack(){return this._nav.canGoBack()}backButtonTooltip(e){return this._nav.backButtonTooltip(e)}popFromShortcut(){return this._nav.popFromShortcut()}popFromEscape(){return this._nav.popFromEscape()}get visiblePage(){return this._nav.visiblePage}get visiblePageTag(){return this._nav.visiblePageTag}get_visible_page_tag(){return this._nav.visiblePageTag}get depth(){return this._nav.depth}get navigationStack(){return this._nav.stack}get pages(){return this._nav.pages}get animateTransitions(){return this._nav.animateTransitions}set animateTransitions(t){let n=e(t,this.animateTransitions);this._nav.setAnimateTransitions(n)}get popOnEscape(){return this._nav.popOnEscape}set popOnEscape(t){let n=e(t,this.popOnEscape);this._nav.setPopOnEscape(n)}_emitNavigation(e){let t={eventName:e.name,object:this,page:e.page,tag:e.tag,depth:e.depth};this.notify(t)}};export{AdwNavigationView,i as NOTIFY_VISIBLE_PAGE,o as POPPED,s as PUSHED,c as REPLACED};
|
|
@@ -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{GtkImage as r}from"./gtk-image.js";import{classNameWith as i,normalizeStyleClasses as a,withCssClass as o,withoutCssClass as s}from"./style-classes.js";import{statusPageIconVisibility as c,statusPageLabelVisibility as l}from"./status-page-content.js";import{GridLayout as u,ItemSpec as d,Label as f,StackLayout as p}from"@nativescript/core";const m=`adw-status-page`;var AdwStatusPage=class extends n(u){static GTypeName=`AdwStatusPage`;static builderSlots=e([`child`],`child`);_stack;_icon;_iconName=``;_iconLabel;_iconGlyph=``;_titleLabel;_descriptionLabel;_child=null;_styleClasses=[];constructor(e){super(),this.className=m,this.addColumn(new d(1,`star`)),this.addRow(new d(1,`star`));let n=new p;n.orientation=`vertical`,n.className=`adw-status-page-content`,n.horizontalAlignment=`center`,n.verticalAlignment=`middle`,u.setColumn(n,0),u.setRow(n,0),this.addChild(n),this._stack=n;let i=new r;i.className=`${i.className} adw-status-page-icon`.trim(),i.horizontalAlignment=`center`,i.iconColor=`#9b9b9b`,i.pixelSize=128,i.visibility=c(this._iconName),this._icon=i;let a=new f;a.className=`adw-status-page-icon-glyph`,a.horizontalAlignment=`center`,a.visibility=c(this._iconGlyph),this._iconLabel=a;let o=new f;o.className=`adw-status-page-title`,o.horizontalAlignment=`center`,o.textWrap=!0,o.visibility=l(o.text),this._titleLabel=o;let s=new f;s.className=`adw-status-page-description`,s.horizontalAlignment=`center`,s.textWrap=!0,s.visibility=l(s.text),this._descriptionLabel=s;for(let e of[i,a,o,s])n.addChild(e);t(this,e)}get iconName(){return this._iconName}set iconName(e){this._iconName=e??``,this._icon.iconName=this._iconName,this._icon.visibility=c(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=c(this._iconGlyph),this._icon.visibility=`collapse`}get iconColor(){return this._icon.iconColor}set iconColor(e){this._icon.iconColor=e}get title(){return this._titleLabel.text??``}set title(e){let t=e??``;this._titleLabel.text=t,this._titleLabel.visibility=l(t)}get description(){return this._descriptionLabel.text??``}set description(e){let t=e??``;this._descriptionLabel.text=t,this._descriptionLabel.visibility=l(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(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(m,e)}};export{AdwStatusPage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{xmlBoolean as e}from"./xml-values.js";import{applyConstructProps as t}from"./construct-props.js";import{SwitchRowState as n,switchClassName as r}from"./row-state.js";import{AdwActionRow as i}from"./adw-action-row.js";import{Switch as a}from"@nativescript/core";const o=`notify::active`;var AdwSwitchRow=class extends i{static GTypeName=`AdwSwitchRow`;_switch;_switchState=new n;constructor(e){super(),this.className=`adw-row adw-action-row adw-switch-row`;let n=new a;n.className=r(!1),this.add_suffix(n),this._switch=n,this.activatableWidget=n,this.activatable=!0,n.addEventListener(`checkedChange`,()=>{n.className=r(n.checked),this._apply(this._switchState.setActive(n.checked))}),t(this,e)}get active(){return this._switchState.active}set active(t){this._apply(this._switchState.setActive(e(t,!1)))}activate(){this.activatable&&(this._apply(this._switchState.activate()),super.activate())}_apply(e){if(!e)return;this._switch.checked=this._switchState.active;let t={eventName:o,object:this,active:this._switchState.active};this.notify(t)}};export{AdwSwitchRow,o as NOTIFY_ACTIVE};
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{xmlBoolean as e}from"./xml-values.js";import{applyConstructProps as t}from"./construct-props.js";import{SwitchRowState as n,switchClassName as r}from"./row-state.js";import{AdwActionRow as i}from"./adw-action-row.js";import{Switch as a}from"@nativescript/core";const o=`notify::active`;var AdwSwitchRow=class extends i{static GTypeName=`AdwSwitchRow`;static emittedSignals=[o];_switch;_switchState=new n;constructor(e){super(),this.className=`adw-row adw-action-row adw-switch-row`;let n=new a;n.className=r(!1),this.add_suffix(n),this._switch=n,this.activatableWidget=n,this.activatable=!0,n.addEventListener(`checkedChange`,()=>{n.className=r(n.checked),this._apply(this._switchState.setActive(n.checked))}),t(this,e)}get active(){return this._switchState.active}set active(t){this._apply(this._switchState.setActive(e(t,!1)))}activate(){this.activatable&&(this._apply(this._switchState.activate()),super.activate())}_apply(e){if(!e)return;this._switch.checked=this._switchState.active;let t={eventName:o,object:this,active:this._switchState.active};this.notify(t)}};export{AdwSwitchRow,o as NOTIFY_ACTIVE};
|
|
@@ -1 +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{GtkImage as o}from"./gtk-image.js";import{classNameWith as s,normalizeStyleClasses as c,withCssClass as l,withoutCssClass as u}from"./style-classes.js";import{attachRowPressFeedback as d}from"./row-press.js";import{buttonSlotAfterWrite as f,buttonSlotDetaches as p}from"./button-slot.js";import{labelDisplayText as m}from"@gjsify/adwaita-core";import{GridLayout as h,ItemSpec as g,Label as _}from"@nativescript/core";const v=`clicked`,y=`image-button`,b=`adw-button-label`;var GtkButton=class extends a(h){static GTypeName=`GtkButton`;static emittedSignals=[v];static builderSlots=e([`child`],`child`);_styleClasses=[];_label=``;_iconName=``;_useUnderline=!1;_slot=`empty`;_content=null;constructor(e){super(),this.className=s(`adw-button`,this._styleClasses),this.addRow(new g(1,`star`)),this.addColumn(new g(1,`star`)),d(this),this.addEventListener(`tap`,()=>{this.notify({eventName:v,object:this}),this.actionName&&r(this,this.actionName)}),this.addEventListener(`loaded`,()=>{i(this,this.tooltipText),this._pinIconColor()}),n(this,e)}get label(){return this._label}set label(e){this._label=e??``,this._fill(`label`,this._label)}actionName=null;get iconName(){return this._iconName}set iconName(e){this._iconName=e??``,this._fill(`icon`,this._iconName)}get tooltipText(){return this.accessibilityHint??``}set tooltipText(e){this.accessibilityHint=e??``,i(this,this.tooltipText)}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(c(e))}add_css_class(e){this._setClasses(l(this._styleClasses,e))}remove_css_class(e){this._setClasses(u(this._styleClasses,e))}has_css_class(e){return this._styleClasses.includes((e??``).trim())}get_css_classes(){return[...this._styleClasses]}set_css_classes(e){this._setClasses(c([...e].join(` `)))}_setClasses(e){this._styleClasses=[...e],this._restyle()}_restyle(){this.className=s(`adw-button`,[...this._styleClasses,...this._stateClasses()]),this._pinIconColor()}_stateClasses(){return this._slot===`icon`?[y]:[]}_fill(e,t){let n=f(e,t);p(this._slot,n)&&this._detach();let r=this._slot===`icon`;if(this._slot=n,r!==(n===`icon`)&&this._restyle(),n===`empty`){this._detach();return}if(n===`child`){let e=t;if(this._content===e)return;this._detach(),this._adopt(e);let n=e;`hostButton`in n&&(n.hostButton=this);return}if(n===`label`){let e=this._content instanceof _?this._content:this._adopt(new _);e.className=b,e.text=m(this._label,!1,this._useUnderline);return}let i=this._content instanceof o?this._content:this._adopt(new o);i.iconName=this._iconName,this._pinIconColor()}_pinIconColor(){this._content instanceof o&&(this._styleClasses.some(e=>e===`osd`||e===`suggested-action`)||this._inOsdContainer())&&(this._content.iconColor=`#ffffff`)}_inOsdContainer(){for(let e=this.parent;e;e=e.parent)if((e.className??``).split(/\s+/).includes(`osd`))return!0;return!1}_detach(){this._content&&this.removeChild(this._content),this._content=null}_adopt(e){return e.horizontalAlignment=`center`,e.verticalAlignment=`middle`,h.setColumn(e,0),h.setRow(e,0),this.addChild(e),this._content=e,e}};export{v as GTK_BUTTON_CLICKED,y as GTK_BUTTON_IMAGE_CLASS,b as GTK_BUTTON_LABEL_CLASS,GtkButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{builderSlotsOf as e}from"./builder-slots.js";import{xmlBoolean as t}from"./xml-values.js";import{applyConstructProps as n}from"./construct-props.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{GtkImage as r}from"./gtk-image.js";import{classNameWith as i}from"./style-classes.js";import{AdwStyledLayoutBase as a}from"./styled-layout-base.js";import{attachRowPressFeedback as o}from"./row-press.js";import{labelDisplayText as s}from"@gjsify/adwaita-core";import{GridLayout as c,ItemSpec as l,Label as u}from"@nativescript/core";import{objectSelectSymbolic as d}from"@gjsify/adwaita-icons/actions";const f=`toggled`,p=`activate`,m=`notify::active`,h=`checked`,g=`inconsistent`;var GtkCheckButton=class extends a{static GTypeName=`GtkCheckButton`;static emittedSignals=[f,p,m];static builderSlots=e([`child`],`child`);_indicator;_mark;_text;_active=!1;_inconsistent=!1;_label=null;_useUnderline=!1;_child=null;constructor(e){super(),this.addColumn(new l(1,`auto`)),this.addColumn(new l(1,`star`)),this.addRow(new l(1,`auto`));let t=new c;t.className=`adw-check-indicator`,t.addColumn(new l(1,`star`)),t.addRow(new l(1,`star`)),t.verticalAlignment=`middle`,c.setColumn(t,0),c.setRow(t,0);let i=new r;i.iconName=d,i.pixelSize=14,i.iconColor=`#ffffff`,i.horizontalAlignment=`center`,i.verticalAlignment=`middle`,i.visibility=`collapse`,t.addChild(i),this.addChild(t),this._indicator=t,this._mark=i;let a=new u;a.className=`adw-check-label`,a.verticalAlignment=`middle`,a.visibility=`collapse`,c.setColumn(a,1),c.setRow(a,0),this.addChild(a),this._text=a,o(this),this.addEventListener(`tap`,()=>{this._inconsistent=!1,this.active=!this._active,this._restyle(),this.notify({eventName:p,object:this})}),this._restyle(),n(this,e)}get active(){return this._active}set active(e){let n=t(e,this._active);n!==this._active&&(this._active=n,this._restyle(),this.notify({eventName:f,object:this}),this.notify({eventName:m,object:this}))}get inconsistent(){return this._inconsistent}set inconsistent(e){let n=t(e,this._inconsistent);n!==this._inconsistent&&(this._inconsistent=n,this._restyle(),this.notify({eventName:`notify::inconsistent`,object:this}))}get label(){return this._label}set label(e){this._label=e??null,this._paintLabel()}get useUnderline(){return this._useUnderline}set useUnderline(e){this._useUnderline=!!t(e,this._useUnderline),this._paintLabel()}_paintLabel(){this._text.text=s(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&&(c.setColumn(t,1),c.setRow(t,0),this.addChild(t)),this._syncContent())}set_child(e){this.child=e}get_child(){return this._child}get_active(){return this._active}set_active(e){this.active=e}_addChildFromBuilder(e,t){this.child=t}_syncContent(){this._text.visibility=!this._child&&this._label?`visible`:`collapse`}get _ownClass(){return`adw-check-button`}_restyle(){let e=[];this._active&&e.push(h),this._inconsistent&&e.push(g),this.className=i(this._ownClass,[...this.styleClasses,...e]),this._indicator.className=i(`adw-check-indicator`,e),this._mark.visibility=this._active||this._inconsistent?`visible`:`collapse`}};export{p as GTK_CHECK_BUTTON_ACTIVATE,h as GTK_CHECK_BUTTON_CHECKED_CLASS,g as GTK_CHECK_BUTTON_INCONSISTENT_CLASS,f as GTK_CHECK_BUTTON_TOGGLED,GtkCheckButton,m as NOTIFY_CHECK_ACTIVE};
|
|
@@ -1 +1,2 @@
|
|
|
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{
|
|
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{androidApiLevel as r}from"./native-tooltip.js";import{withSignals as i}from"./signals.js";import{classNameWith as a,normalizeStyleClasses as o,withCssClass as s,withoutCssClass as c}from"./style-classes.js";import{DEFAULT_LABEL_LINES as l,DEFAULT_LABEL_XALIGN as u,LABEL_JUSTIFICATIONS as d,labelDisplayText as f,labelEffectiveLines as p,labelEllipsizeOverflowValue as m,normalizeLabelEllipsize as h,normalizeLabelLines as g,normalizeLabelXalign as _}from"@gjsify/adwaita-core";import{Label as v}from"@nativescript/core";const y=new Map([[0,`start`],[.5,`center`],[1,`end`]]),b={left:`start`,right:`end`,center:`center`,fill:`start`};function physical(e,t){return e===`center`?`center`:e===`start`===t?`right`:`left`}var GtkLabel=class extends i(v){static GTypeName=`GtkLabel`;_label=``;_useMarkup=!1;_useUnderline=!1;_ellipsize=`none`;_lines=-1;_styleClasses=[];_xalign=u;_xalignWritten=!1;_justify=`left`;_selectable=!1;constructor(e){super(),this.addEventListener(`loaded`,()=>{this._applySelectable(),this._applyJustificationMode()}),n(this,e)}get label(){return this._label}set label(e){this._label=e??``,this._render()}get useMarkup(){return this._useMarkup}set useMarkup(t){this._useMarkup=e(t,this._useMarkup),this._render()}get useUnderline(){return this._useUnderline}set useUnderline(t){this._useUnderline=e(t,this._useUnderline),this._render()}get wrap(){return this.textWrap}set wrap(t){let n=e(t,this.textWrap);this._applyAlignment({wrap:n}),this.textWrap=n}get ellipsize(){return this._ellipsize}set ellipsize(e){this._ellipsize=h(e),this.textOverflow=m(this._ellipsize),this._applyLines()}get lines(){return this._lines}set lines(e){this._lines=g(t(e,l)),this._applyLines()}get selectable(){return this._selectable}set selectable(t){this._selectable=e(t,this._selectable),this._applySelectable()}_applySelectable(){this.nativeViewProtected?.setTextIsSelectable?.(this._selectable)}_applyLines(){this.maxLines=p(this._lines,this._ellipsize)??0}get justify(){return this._justify}set justify(e){let n=d.includes(e)?e:d[t(e,-1)];if(n===void 0)throw TypeError(`'${String(e)}' is not a Gtk.Justification, so it cannot be 'justify'. The members are ${d.join(`, `)}, or their values 0 to 3.`);this._applyAlignment({justify:n})}get xalign(){return this._xalign}set xalign(e){let n=_(t(e,u));if(!y.has(n))throw TypeError(`Gtk.Label xalign ${n} has no NativeScript counterpart: textAlignment places text at the start, the centre or the end, so only 0, 0.5 and 1 render as written. Snapping it would show a different label than GTK does with no sign of the difference.`);this._applyAlignment({xalign:n})}_applyAlignment(e){let t=e.xalign??(this._xalignWritten?this._xalign:null),n=e.justify??this._justify,r=e.text??this.text??``,i=(e.wrap??this.textWrap)||r.includes(`
|
|
2
|
+
`),a=b[n],o=t===null?null:y.get(t),s;if(o===null)s=n===`left`?null:a;else if(o===a||!i||n===`left`)s=o;else throw TypeError(`Gtk.Label justify ${n} beside xalign ${t} has no NativeScript counterpart on a label that can show several lines: GTK places the text block at its ${o} and aligns the lines inside it to their ${a}, and textAlignment is one alignment for both. An xalign on the justify edge, or a label without wrap and newline, renders exactly.`);if(e.xalign!==void 0&&(this._xalign=e.xalign,this._xalignWritten=!0),e.justify!==void 0&&(this._justify=e.justify),s===null){(e.xalign!==void 0||e.justify!==void 0)&&(this.textAlignment=`initial`);return}let c=physical(s,this.style?.direction===`rtl`);this.textAlignment=n===`fill`&&c===`left`?`justify`:c,this._applyJustificationMode()}_applyJustificationMode(){this.textAlignment===`justify`||r()<26||this.nativeViewProtected?.setJustificationMode?.(+(this._justify===`fill`))}get styleClasses(){return[...this._styleClasses]}set styleClasses(e){this._setClasses(o(e))}get_label(){return this.label}set_label(e){this.label=e}set_markup(e){this._label=e??``,this._useMarkup=!0,this._render()}get_text(){return this.text??``}add_css_class(e){this._setClasses(s(this._styleClasses,e))}remove_css_class(e){this._setClasses(c(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(o([...e].join(` `)))}_setClasses(e){this._styleClasses=[...e],this.className=a(``,this._styleClasses)}_render(){let e=f(this._label,this._useMarkup,this._useUnderline);this._applyAlignment({text:e}),this.text=e}};export{GtkLabel};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{xmlBoolean as e}from"./xml-values.js";import{applyConstructProps as t}from"./construct-props.js";import{classNameWith as n,normalizeStyleClasses as r,withCssClass as i,withoutCssClass as a}from"./style-classes.js";import{AdwImageButton as o}from"./adw-image-button.js";import{assertPopupMenuAssignable as s,refuseMenuString as c}from"./popup-menu.js";import{showMenuPopup as l}from"./popup-menu-view.js";import{normalizeMenuModel as u}from"@gjsify/adwaita-core";const d=`menuItemActivated`;var GtkMenuButton=class extends o{static GTypeName=`GtkMenuButton`;_model=[];_actions=null;_menuTitle=``;_primary=!1;_baseClassName;_styleClasses=[];constructor(e){super(),this._baseClassName=`${this.className} adw-menu-button`.trim(),this.className=this._baseClassName,this.addEventListener(`tap`,()=>this._openMenu()),t(this,e)}get menuModel(){return this._model}set menuModel(e){c(e,`GtkMenuButton`);let t=u(e);s(t),this._model=t}get actions(){return this._actions}set actions(e){this._actions=e??null}get menuTitle(){return this._menuTitle}set menuTitle(e){this._menuTitle=e??``}get styleClasses(){return[...this._styleClasses]}set styleClasses(e){this._setClasses(r(e))}get primary(){return this._primary}set primary(t){this._primary=e(t,this._primary)}add_css_class(e){this._setClasses(i(this._styleClasses,e))}remove_css_class(e){this._setClasses(a(this._styleClasses,e))}has_css_class(e){return this._styleClasses.includes((e??``).trim())}get_css_classes(){return[...this._styleClasses]}set_css_classes(e){this._setClasses(r([...e].join(` `)))}_setClasses(e){this._styleClasses=e,this.className=n(this._baseClassName,e)}_openMenu(){this._model.length!==0&&l(this,{model:this._model,actions:this._actions,onActivated:(e,t)=>{let n={eventName:d,object:this,id:e.id??e.label,label:e.label,path:t,action:e.action};this.notify(n)}})}};export{GtkMenuButton,d as MENU_ITEM_ACTIVATED};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{builderSlotsOf as e}from"./builder-slots.js";import{xmlBoolean as t,xmlNumber as n}from"./xml-values.js";import{applyConstructProps as r}from"./construct-props.js";import{
|
|
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{GTK_REVEALER_TRANSITIONS as i,transitionNick as a}from"./transition-type.js";import{AdwSingleChildBase as o}from"./single-child-base.js";import{revealerChildVisibility as s}from"./revealer-state.js";const c=`notify::reveal-child`;var GtkRevealer=class extends o{static GTypeName=`GtkRevealer`;static builderSlots=e([`child`],`child`);_revealChild=!1;_transitionType=`slide-down`;_transitionDuration=250;constructor(e){super(),r(this,e)}get revealChild(){return this._revealChild}set revealChild(e){let n=t(e,this._revealChild);n!==this._revealChild&&(this._revealChild=n,this._applyReveal(),this.notify({eventName:c,object:this}))}get childRevealed(){return this._revealChild}get transitionType(){return this._transitionType}set transitionType(e){this._transitionType=a(e,i,`Gtk.RevealerTransitionType`)}get transitionDuration(){return this._transitionDuration}set transitionDuration(e){this._transitionDuration=Math.max(0,n(e,this._transitionDuration))}_adopt(e){super._adopt(e),this._applyReveal()}_applyReveal(){let e=this.child;e&&(e.visibility=s(this._revealChild))}};export{GtkRevealer,c as NOTIFY_REVEAL_CHILD};
|
|
@@ -1 +1 @@
|
|
|
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{
|
|
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{GTK_STACK_TRANSITIONS as i,transitionNick as a}from"./transition-type.js";import{StyleClassList as o}from"./style-classes.js";import{applyViewStackVisibility as s,createViewStackState as c,viewStackNotifyPayload as l}from"./view-stack-state.js";import{GtkStackPage as u}from"./stack-page.js";import{GridLayout as d,ItemSpec as f}from"@nativescript/core";const p=`notify::visible-child`,m=`notify::visible-child-name`;var GtkStack=class extends r(d){static GTypeName=`GtkStack`;static emittedSignals=[p,m];static builderSlots=[];_state=c();_classList=new o;_transitionType=`none`;_transitionDuration=200;_hhomogeneous=!0;_vhomogeneous=!0;_interpolateSize=!1;constructor(e){super(),this.addColumn(new f(1,`star`)),this.addRow(new f(1,`star`)),this._state.subscribe(e=>{s(this._state);let t=l(e);for(let e of[p,m]){let n={eventName:e,object:this,...t};this.notify(n)}}),n(this,e)}add_named(e,t){return this._add(e,t??``)}add_titled(e,t,n){return this._add(e,t??``,n)}add_child(e){return this._add(e,``)}remove(e){let t=this._state.pages.find(t=>t.content===e);return!t||!this._state.removePage(t.name)?!1:(this.removeChild(e),s(this._state),!0)}get_child_by_name(e){return this._state.pages[this._state.indexOfName(e)]?.content??null}setPageVisible(e,t){let n=this._state.setPageVisible(e,t);return s(this._state),n}_addChildFromBuilder(e,t){if(!(t instanceof u)){this._add(t,``);return}let n=t.child;if(n===null){t._awaitChild(this);return}t._adoptBy(this),this._state.addPage({name:t.name,title:t.title,icon:t.iconName,content:n,visible:t.visible,needsAttention:t.needsAttention,useUnderline:t.useUnderline}),this._place(n)}get visibleChildName(){return this._state.visibleName||null}set visibleChildName(e){this._state.setVisibleName(e)}get visibleChild(){return this._state.visiblePage?.content??null}set visibleChild(e){let t=this._state.pages.findIndex(t=>t.content===e);t!==-1&&this._state.setVisibleIndex(t)}get transitionType(){return this._transitionType}set transitionType(e){this._transitionType=a(e,i,`Gtk.StackTransitionType`)}get transitionDuration(){return this._transitionDuration}set transitionDuration(e){this._transitionDuration=Math.max(0,t(e,this._transitionDuration))}get hhomogeneous(){return this._hhomogeneous}set hhomogeneous(t){this._hhomogeneous=e(t,this._hhomogeneous)}get vhomogeneous(){return this._vhomogeneous}set vhomogeneous(t){this._vhomogeneous=e(t,this._vhomogeneous)}get interpolateSize(){return this._interpolateSize}set interpolateSize(t){this._interpolateSize=e(t,this._interpolateSize)}get styleClasses(){return this._classList.classes}set styleClasses(e){this._classList.replace(e),this._restyle()}add_css_class(e){this._classList.add(e),this._restyle()}remove_css_class(e){this._classList.remove(e),this._restyle()}has_css_class(e){return this._classList.has(e)}get_css_classes(){return this._classList.classes}set_css_classes(e){this._classList.replaceAll(e),this._restyle()}_restyle(){this.className=this._classList.className}_add(e,t,n){let r=this._state.addPage({name:t,title:n,content:e});return this._place(e),r}_place(e){d.setColumn(e,0),d.setRow(e,0),this.addChild(e),s(this._state)}};export{GtkStack,p as NOTIFY_STACK_VISIBLE_CHILD,m as NOTIFY_STACK_VISIBLE_CHILD_NAME};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{xmlBoolean as e,xmlNumber as t}from"./xml-values.js";import{applyConstructProps as n}from"./construct-props.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{surfaceSize as r}from"./window-state.js";import{windowHost as i}from"../window-host.js";import{AdwSingleChildBase as a}from"./single-child-base.js";import{CloseRequestState as o,HandledAccumulator as s,WindowMemberState as c}from"@gjsify/adwaita-core";const l=`notify::is-active`,u=`notify::maximized`,d=`notify::focus-widget`,f=`close-request`;var p=class GtkWindow extends a{static GTypeName=`GtkWindow`;_title=``;_defaultWidth=0;_defaultHeight=0;_members=new c(e=>{let t=e===`is-active`?l:u;this.notify({eventName:t,object:this,value:e===`is-active`?this.isActive:this.maximized})},{maximized:!0});_closeRequest=new o;_unwatchForeground=null;_unwatchBack=null;constructor(e){super(),n(this,e)}onLoaded(){super.onLoaded();let e=i();this._unwatchForeground?.(),this._unwatchForeground=e.watchForeground(e=>this._members.reportActive(e)),this._members.reportActive(e.isForeground()),this._unwatchBack?.(),this._unwatchBack=this._isToplevel()?e.watchBack(()=>this._handleBack()):null}onUnloaded(){this._unwatchForeground?.(),this._unwatchForeground=null,this._unwatchBack?.(),this._unwatchBack=null,this._members.reportActive(!1),super.onUnloaded()}get isActive(){return this._members.active}is_active(){return this.isActive}get maximized(){return this._members.maximized}set maximized(t){e(t,!0)?this.maximize():this.unmaximize()}is_maximized(){return this.maximized}maximize(){}unmaximize(){throw Error(`GtkWindow.unmaximize is not supported on NativeScript: the window is the whole screen and the platform has no un-maximized state to go back to.`)}present(){}get focusWidget(){return this.get_focus()}get_focus(){let e=i();return findView(this,t=>e.isFocused(t))}set_focus(e){let t=i();if(e===null){let e=this.get_focus();e!==null&&t.clearFocus(e);return}if(findView(this,t=>t===e)===null)throw Error(`GtkWindow.set_focus: the widget is not a descendant of this window.`);t.requestFocus(e)}close(){let e=i();if(this.isLoaded&&!e.canFinish)throw Error(`GtkWindow.close is not supported on this platform: iOS has no public API to close the root window. Android finishes the foreground activity.`);this._requestClose()}_requestClose(){let e=i();this._closeRequest.close({realized:this.isLoaded,hideOnClose:!1,emit:()=>{let e=new s;return this.notify({eventName:f,object:this,accumulator:e}),e.stopped},hide:()=>{},destroy:()=>e.finish()})}_handleBack(){return this._consumeBack()||popInnermostNavigation(this)||this._requestClose(),!0}_consumeBack(){return!1}_isToplevel(){for(let e=this.parent;e;e=e.parent)if(e instanceof GtkWindow)return!1;return!0}connect(e,t){if(e===`notify::focus-widget`)throw Error(`GtkWindow notify::focus-widget is not supported on NativeScript: focus the user moves is not observable here. Read get_focus() when you need it.`);return super.connect(e,t)}get title(){return this._title}set title(e){this._title=e??``}get defaultWidth(){return this._defaultWidth}set defaultWidth(e){this._defaultWidth=r(t(e,NaN),e,this._defaultWidth,`defaultWidth`)}get defaultHeight(){return this._defaultHeight}set defaultHeight(e){this._defaultHeight=r(t(e,NaN),e,this._defaultHeight,`defaultHeight`)}};function findView(e,t){let n=null;return e.eachChildView(e=>t(e)?(n=e,!1):(n=findView(e,t),n===null)),n}const popsOnBack=e=>typeof e.popFromShortcut==`function`;function popInnermostNavigation(e){let t=!1;return e.eachChildView(e=>e.visibility===`visible`&&(popInnermostNavigation(e)||popsOnBack(e)&&e.isLoaded&&e.popFromShortcut()===`stop`)?(t=!0,!1):!0),t}export{f as CLOSE_REQUEST,p as GtkWindow,d as NOTIFY_FOCUS_WIDGET,l as NOTIFY_IS_ACTIVE,u as NOTIFY_MAXIMIZED};
|
package/lib/esm/widgets/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{AdwBreakpoint as ee,addBreakpoints as e,evaluateBreakpointCondition as te,observeViewSize as ne,observeWindowSize as re,parseBreakpointCondition as ie}from"./breakpoint.js";import{GTK_ALIGN as ae}from"./gtk-align.js";import{DEFAULT_ICON_PIXEL_SIZE as oe,GTK_ICON_SIZE_NICKS as se,GTK_ICON_SIZE_PIXELS as ce,PIXEL_SIZE_UNSET as le,isGtkIconSizeNick as ue}from"./gtk-icon-size.js";import{applyConstructProps as de,nsAlignment as fe}from"./construct-props.js";import{lengthValue as pe}from"./ns-length.js";import{SimpleAction as me,SimpleActionGroup as he,activateWidgetAction as ge,findActionGroup as _e,insertActionGroup as ve}from"./actions.js";import{NOTIFY_HEXPAND as ye,NOTIFY_VEXPAND as be,withGtkWidgetLayout as xe}from"./widget-layout.js";import{AdwAboutDialog as t,CLOSED as Se}from"./adw-about-dialog.js";import{ACTIVATED as Ce,AdwActionRow as n}from"./adw-action-row.js";import{AdwAlertDialog as we,AdwAlertResponses as Te,NOTIFY_RESPONSE as Ee}from"./adw-alert-dialog.js";import{DEFAULT_REVEALER_TRANSITION_DURATION as De,DEFAULT_STACK_TRANSITION_DURATION as Oe,GTK_REVEALER_TRANSITIONS as ke,GTK_STACK_TRANSITIONS as Ae,transitionNick as je}from"./transition-type.js";import{ADW_DIALOG_PRESENTATION_MODES as Me,DEFAULT_DIALOG_PRESENTATION_MODE as Ne,dialogPresentationMode as Pe,findDialogHost as Fe,surfaceSize as Ie}from"./window-state.js";import{GtkWindow as r}from"./gtk-window.js";import{ADW_WINDOW_CLASS as Le,AdwWindowBase as Re}from"./window-base.js";import{AdwApplicationWindow as i}from"./adw-application-window.js";import{avatarInitials as ze}from"./avatar-color.js";import{AVATAR_DEFAULT_ICON as Be}from"./avatar-view.js";import{adwaitaColorScheme as Ve,isThemeIconColor as He,onAdwaitaColorSchemeChanged as Ue,setAdwaitaColorScheme as We,themeIconColor as Ge,toggleAdwaitaColorScheme as Ke}from"./color-scheme.js";import{ADWAITA_ICON_GRID as qe,DEFAULT_ICON_COLOR as Je,DEFAULT_ICON_COLOR_DARK as Ye,extractIconPaths as Xe,extractPathData as Ze}from"./icon-path.js";import{ICON_FALLBACK_NAME as Qe,compiledIconNames as $e,iconValueKind as et,isIconAvailable as tt,registerIcon as nt,registerIcons as rt,registeredIconNames as it,resolveIconSource as at,unregisterIcon as ot}from"./icon-theme.js";import{renderSymbolicIcon as st}from"./icons.js";import{DEFAULT_GTK_IMAGE_SIZE as ct,GtkImage as a}from"./gtk-image.js";import{AdwAvatar as o,DEFAULT_AVATAR_SIZE as lt}from"./adw-avatar.js";import{DEFAULT_CLAMP_MAX_SIZE as ut,DEFAULT_SPINNER_SIZE as dt}from"./chrome.js";import{AdwBanner as s,BUTTON_CLICKED as ft}from"./adw-banner.js";import{AdwBin as c}from"./adw-bin.js";import{CLOSE_ATTEMPT as pt,NOTIFY_OPEN as mt,SHEET_CLOSE as ht}from"./bottom-sheet-state.js";import{SHEET_CONTENT_BOTTOM_GAP as gt,bottomSheetInsetPadding as _t}from"./bottom-sheet-insets.js";import{attachRowPressFeedback as vt}from"./row-press.js";import{AdwBottomSheet as l,bottomSheetPanel as yt}from"./adw-bottom-sheet.js";import{AdwButtonContent as u}from"./adw-button-content.js";import{AdwButtonRow as d}from"./adw-button-row.js";import{CarouselScrollSync as bt,DEFAULT_CAROUSEL_PAGE_WIDTH as xt,applyMarkerClasses as St,carouselDotClasses as Ct,carouselNotifyPayload as wt,carouselPositionAtOffset as Tt,carouselScrollOffset as Et,createCarouselState as Dt,indicatorMarkerClasses as Ot,normalizeCarouselPageWidth as kt}from"./carousel-state.js";import{AdwCarousel as f,NOTIFY_N_PAGES as At,NOTIFY_POSITION as jt,PAGE_CHANGED as Mt}from"./adw-carousel.js";import{AdwCarouselIndicatorDots as p}from"./adw-carousel-indicator-dots.js";import{AdwCarouselIndicatorLines as m}from"./adw-carousel-indicator-lines.js";import{AdwClamp as h}from"./adw-clamp.js";import{AdwComboRow as g,ComboState as Nt,NOTIFY_SELECTED as Pt}from"./adw-combo-row.js";import{ADW_DIALOG_CLASS as Ft,ADW_DIALOG_CLOSED as It,ADW_DIALOG_CLOSE_ATTEMPT as Lt,AdwDialog as _}from"./adw-dialog.js";import{AdwImageButton as v,DEFAULT_ICON_BUTTON_ICON_SIZE as Rt}from"./adw-image-button.js";import{AdwEntryRow as y,NOTIFY_TEXT as zt}from"./adw-entry-row.js";import{AdwExpanderRow as b,ExpanderState as Bt,NOTIFY_EXPANDED as Vt}from"./adw-expander-row.js";import{AdwWindowTitle as x}from"./adw-window-title.js";import{AdwHeaderBar as S}from"./adw-header-bar.js";import{AdwViewStackPage as Ht}from"./view-stack-page.js";import{AdwViewStack as C,NOTIFY_VISIBLE_CHILD as Ut}from"./adw-view-stack.js";import{AdwViewSwitcherBase as Wt,NOTIFY_SELECTED as Gt}from"./view-switcher-base.js";import{AdwInlineViewSwitcher as w}from"./adw-inline-view-switcher.js";import{NsNavigationSplitViewState as Kt,NsOverlaySplitViewState as qt,splitViewColumns as Jt}from"./split-view-state.js";import{AdwSplitViewBase as Yt,NOTIFY_SHOW_SIDEBAR as Xt}from"./split-view-base.js";import{AdwNavigationSplitView as T}from"./adw-navigation-split-view.js";import{AdwNavigationPage as E}from"./adw-navigation-page.js";import{NOTIFY_VISIBLE_PAGE as Zt}from"./navigation-stack.js";import{AdwNavigationView as D}from"./adw-navigation-view.js";import{AdwOverlaySplitView as O}from"./adw-overlay-split-view.js";import{AdwPasswordEntryRow as k}from"./adw-password-entry-row.js";import{AdwPreferencesDialog as A,CLOSED as Qt}from"./adw-preferences-dialog.js";import{AdwPreferencesGroup as j}from"./adw-preferences-group.js";import{AdwPreferencesPage as M}from"./adw-preferences-page.js";import{SHORTCUT_LABEL_CAP_TEXT_CLASS as $t,SHORTCUT_LABEL_CLASS as en,SHORTCUT_LABEL_DIMMED_CLASS as tn,SHORTCUT_LABEL_DISABLED_CLASS as nn,SHORTCUT_LABEL_KEYCAP_CLASS as rn,SHORTCUT_LABEL_KEYS_CLASS as an,SHORTCUT_LABEL_SIDE_CLASS as on,SHORTCUT_LABEL_SPACED_CLASS as sn,shortcutLabelDirection as cn,shortcutLabelPlatform as ln,shortcutLabelRenderPlan as un}from"./shortcut-label.js";import{AdwShortcutLabel as N}from"./adw-shortcut-label.js";import{AdwSidebarItem as dn,AdwSidebarSection as fn}from"../values/sidebar.js";import{AdwSidebar as P,NOTIFY_SELECTED as pn}from"./adw-sidebar.js";import{AdwSpinRow as F,NOTIFY_VALUE as mn,SpinState as hn}from"./adw-spin-row.js";import{AdwSpinner as I}from"./adw-spinner.js";import{GROUP_DIVIDER_API as gn,assertPopupMenuAssignable as _n,fillPopupMenu as vn,openPopupMenu as yn,refuseMenuString as bn}from"./popup-menu.js";import{showMenuPopup as xn}from"./popup-menu-view.js";import{DEFAULT_SCROLLBAR_POLICY as Sn,GTK_POLICY_TYPES as Cn,normalizePolicy as wn,policyScrolls as Tn,scrollOrientationFor as En}from"./scrolled-window-policy.js";import{AdwSplitButton as L,CLICKED as Dn,MENU_TAPPED as On}from"./adw-split-button.js";import{AdwStatusPage as R}from"./adw-status-page.js";import{AdwSwitchRow as z,NOTIFY_ACTIVE as kn}from"./adw-switch-row.js";import{AdwTabPage as An}from"../values/tab-page.js";import{applyTabViewVisibility as jn,createTabViewState as Mn,tabBarVisibility as Nn,tabCloseVisibilities as Pn,tabLabelText as Fn,tabPageVisibilities as In,tabTooltipText as Ln,tabViewNotifyPayload as Rn}from"./tab-view-state.js";import{AdwTabView as B,CLOSE_PAGE as zn,NOTIFY_SELECTED_PAGE as Bn,PAGES_CHANGED as Vn}from"./adw-tab-view.js";import{AdwToast as Hn,AdwToastOverlay as V,AdwToastQueue as Un,DEFAULT_TOAST_TIMEOUT as Wn,TOAST_BUTTON_CLICKED as Gn}from"./adw-toast-overlay.js";import{AdwToggle as Kn}from"./adw-toggle.js";import{AdwToggleGroup as H,NOTIFY_SELECTED as qn,ToggleGroupState as Jn}from"./adw-toggle-group.js";import{WINDOW_BACKGROUND as Yn,configureSystemBars as Xn,systemBarsConfig as Zn}from"./system-bars.js";import{AdwToolbarView as U}from"./adw-toolbar-view.js";import{AdwViewSwitcher as W}from"./adw-view-switcher.js";import{AdwViewSwitcherBar as G}from"./adw-view-switcher-bar.js";import{AdwWindow as K}from"./adw-window.js";import{AdwWrapBox as q}from"./adw-wrap-box.js";import{GtkActionBar as J}from"./gtk-action-bar.js";import{DEFAULT_BOX_SPACING as Qn,boxChildTrack as $n,boxSpacingChanges as er,boxTrackPlan as tr,normalizeBoxSpacing as nr}from"./box-layout.js";import{GtkBox as Y}from"./gtk-box.js";import{buttonSlotAfterWrite as rr,buttonSlotDetaches as ir}from"./button-slot.js";import{GTK_BUTTON_CLICKED as ar,GTK_BUTTON_LABEL_CLASS as or,GtkButton as X}from"./gtk-button.js";import{GtkDropDown as Z,NOTIFY_SELECTED as sr}from"./gtk-drop-down.js";import{GTK_CHECK_BUTTON_ACTIVATE as cr,GTK_CHECK_BUTTON_CHECKED_CLASS as lr,GTK_CHECK_BUTTON_INCONSISTENT_CLASS as ur,GTK_CHECK_BUTTON_TOGGLED as dr,GtkCheckButton as Q,NOTIFY_CHECK_ACTIVE as fr}from"./gtk-check-button.js";import{DRAWING_AREA_REFUSAL as pr,GtkDrawingArea as $}from"./gtk-drawing-area.js";import{ACTIVATE as mr,GtkEntry as hr,NOTIFY_TEXT as gr}from"./gtk-entry.js";import{gridChildAt as _r,gridGap as vr,gridSpacing as yr,gridTrackCounts as br}from"./grid-state.js";import{GtkGrid as xr}from"./gtk-grid.js";import{GtkFrame as Sr}from"./gtk-frame.js";import{GtkLabel as Cr}from"./gtk-label.js";import{DEFAULT_LIST_SELECTION_MODE as wr,GTK_SELECTION_MODES as Tr,selectionAfterModeChange as Er,selectionAfterTap as Dr,selectionMode as Or}from"./list-box-state.js";import{GtkListBox as kr,LIST_BOX_ROW_ACTIVATED as Ar,LIST_BOX_ROW_SELECTED as jr,LIST_ROW_SELECTED_CLASS as Mr}from"./gtk-list-box.js";import{GtkMenuButton as Nr,MENU_ITEM_ACTIVATED as Pr}from"./gtk-menu-button.js";import{GtkPopoverMenu as Fr}from"./gtk-popover-menu.js";import{GtkOverlay as Ir}from"./gtk-overlay.js";import{revealerChildVisibility as Lr}from"./revealer-state.js";import{GtkRevealer as Rr,NOTIFY_REVEAL_CHILD as zr}from"./gtk-revealer.js";import{GtkScrolledWindow as Br}from"./gtk-scrolled-window.js";import{GtkSeparator as Vr}from"./gtk-separator.js";import{GtkStackPage as Hr}from"./stack-page.js";import{GtkStack as Ur,NOTIFY_STACK_VISIBLE_CHILD as Wr,NOTIFY_STACK_VISIBLE_CHILD_NAME as Gr}from"./gtk-stack.js";import{GTK_WRAP_MODES as Kr,GtkTextView as qr,NOTIFY_TEXT_VIEW_TEXT as Jr}from"./gtk-text-view.js";import{GTK_TOGGLE_BUTTON_CHECKED_CLASS as Yr,GTK_TOGGLE_BUTTON_TOGGLED as Xr,GtkToggleButton as Zr,NOTIFY_TOGGLE_ACTIVE as Qr}from"./gtk-toggle-button.js";import{AdwSliderRow as $r,NOTIFY_SLIDER_VALUE as ei}from"./adw-slider-row.js";import{DATA_GRID_HEADER_CELL_CLASS as ti,DATA_GRID_HEADER_ROW_CLASS as ni,DATA_GRID_SECTION_CELL_CLASS as ri,dataGridCellClass as ii,dataGridItemSpec as ai,dataGridRowClass as oi,dataGridShapeKey as si,dataGridTracksKey as ci,parseDataGridWidth as li}from"./data-grid-model.js";import{AdwDataGrid as ui,ROW_ACTIVATED as di}from"./adw-data-grid.js";import{ADWAITA_NS_ACCENT_RULES as fi,adwaitaNsAccentColor as pi,adwaitaNsAccentCss as mi}from"./accent-theme.js";import{applyAdwaitaNsAccent as hi,clearAdwaitaNsAccent as gi}from"./adw-accent.js";import{padForSystemInsets as _i,padSheetForSystemInsets as vi}from"./system-insets.js";import{labelDisplayText as yi,labelMarkupIsUnparseable as bi}from"@gjsify/adwaita-core";const xi={AdwPreferencesPage:M,AdwPreferencesGroup:j,AdwActionRow:n,AdwSwitchRow:z,AdwEntryRow:y,AdwPasswordEntryRow:k,GtkEntry:hr,AdwComboRow:g,GtkDropDown:Z,AdwSpinRow:F,AdwSliderRow:$r,AdwExpanderRow:b,GtkButton:X,GtkBox:Y,GtkGrid:xr,GtkListBox:kr,AdwWindow:K,AdwApplicationWindow:i,AdwDialog:_,GtkActionBar:J,AdwBin:c,GtkOverlay:Ir,GtkRevealer:Rr,GtkScrolledWindow:Br,GtkWindow:r,GtkStack:Ur,GtkToggleButton:Zr,GtkCheckButton:Q,GtkDrawingArea:$,GtkFrame:Sr,GtkSeparator:Vr,GtkTextView:qr,GtkLabel:Cr,AdwImageButton:v,GtkMenuButton:Nr,GtkImage:a,AdwBanner:s,AdwAvatar:o,AdwWindowTitle:x,AdwClamp:h,AdwHeaderBar:S,AdwToolbarView:U,AdwWrapBox:q,AdwDataGrid:ui,AdwSpinner:I,AdwStatusPage:R,AdwButtonRow:d,AdwButtonContent:u,AdwSplitButton:L,AdwToggleGroup:H,AdwShortcutLabel:N,AdwViewStack:C,AdwViewSwitcher:W,AdwViewSwitcherBar:G,AdwInlineViewSwitcher:w,AdwTabView:B,AdwCarousel:f,AdwCarouselIndicatorDots:p,AdwCarouselIndicatorLines:m,AdwNavigationPage:E,AdwNavigationView:D,AdwNavigationSplitView:T,AdwOverlaySplitView:O,AdwSidebar:P,AdwBottomSheet:l,AdwToastOverlay:V,AdwAboutDialog:t,AdwPreferencesDialog:A};let Si=!1;function registerAdwaitaElements(){if(!Si&&typeof registerElement==`function`){for(let[ee,e]of Object.entries(xi))registerElement(ee,()=>e);Si=!0}}export{Se as ABOUT_CLOSED,Ce as ACTIVATED,qe as ADWAITA_ICON_GRID,fi as ADWAITA_NS_ACCENT_RULES,Ft as ADW_DIALOG_CLASS,It as ADW_DIALOG_CLOSED,Lt as ADW_DIALOG_CLOSE_ATTEMPT,Me as ADW_DIALOG_PRESENTATION_MODES,Le as ADW_WINDOW_CLASS,Be as AVATAR_DEFAULT_ICON,t as AdwAboutDialog,n as AdwActionRow,we as AdwAlertDialog,Te as AdwAlertResponses,i as AdwApplicationWindow,o as AdwAvatar,s as AdwBanner,c as AdwBin,l as AdwBottomSheet,ee as AdwBreakpoint,u as AdwButtonContent,d as AdwButtonRow,f as AdwCarousel,p as AdwCarouselIndicatorDots,m as AdwCarouselIndicatorLines,h as AdwClamp,g as AdwComboRow,ui as AdwDataGrid,_ as AdwDialog,y as AdwEntryRow,b as AdwExpanderRow,S as AdwHeaderBar,v as AdwImageButton,w as AdwInlineViewSwitcher,E as AdwNavigationPage,T as AdwNavigationSplitView,D as AdwNavigationView,O as AdwOverlaySplitView,k as AdwPasswordEntryRow,A as AdwPreferencesDialog,j as AdwPreferencesGroup,M as AdwPreferencesPage,N as AdwShortcutLabel,P as AdwSidebar,dn as AdwSidebarItem,fn as AdwSidebarSection,$r as AdwSliderRow,F as AdwSpinRow,I as AdwSpinner,L as AdwSplitButton,Yt as AdwSplitViewBase,R as AdwStatusPage,z as AdwSwitchRow,An as AdwTabPage,B as AdwTabView,Hn as AdwToast,V as AdwToastOverlay,Un as AdwToastQueue,Kn as AdwToggle,H as AdwToggleGroup,U as AdwToolbarView,C as AdwViewStack,Ht as AdwViewStackPage,W as AdwViewSwitcher,G as AdwViewSwitcherBar,Wt as AdwViewSwitcherBase,K as AdwWindow,Re as AdwWindowBase,x as AdwWindowTitle,q as AdwWrapBox,ft as BUTTON_CLICKED,Dn as CLICKED,pt as CLOSE_ATTEMPT,zn as CLOSE_PAGE,bt as CarouselScrollSync,Nt as ComboState,ti as DATA_GRID_HEADER_CELL_CLASS,ni as DATA_GRID_HEADER_ROW_CLASS,ri as DATA_GRID_SECTION_CELL_CLASS,lt as DEFAULT_AVATAR_SIZE,Qn as DEFAULT_BOX_SPACING,xt as DEFAULT_CAROUSEL_PAGE_WIDTH,ut as DEFAULT_CLAMP_MAX_SIZE,Ne as DEFAULT_DIALOG_PRESENTATION_MODE,ct as DEFAULT_GTK_IMAGE_SIZE,Rt as DEFAULT_ICON_BUTTON_ICON_SIZE,Je as DEFAULT_ICON_COLOR,Ye as DEFAULT_ICON_COLOR_DARK,oe as DEFAULT_ICON_PIXEL_SIZE,wr as DEFAULT_LIST_SELECTION_MODE,De as DEFAULT_REVEALER_TRANSITION_DURATION,Sn as DEFAULT_SCROLLBAR_POLICY,dt as DEFAULT_SPINNER_SIZE,Oe as DEFAULT_STACK_TRANSITION_DURATION,Wn as DEFAULT_TOAST_TIMEOUT,pr as DRAWING_AREA_REFUSAL,mr as ENTRY_ACTIVATE,Bt as ExpanderState,gn as GROUP_DIVIDER_API,ae as GTK_ALIGN,ar as GTK_BUTTON_CLICKED,or as GTK_BUTTON_LABEL_CLASS,cr as GTK_CHECK_BUTTON_ACTIVATE,lr as GTK_CHECK_BUTTON_CHECKED_CLASS,ur as GTK_CHECK_BUTTON_INCONSISTENT_CLASS,dr as GTK_CHECK_BUTTON_TOGGLED,se as GTK_ICON_SIZE_NICKS,ce as GTK_ICON_SIZE_PIXELS,Cn as GTK_POLICY_TYPES,ke as GTK_REVEALER_TRANSITIONS,Tr as GTK_SELECTION_MODES,Ae as GTK_STACK_TRANSITIONS,Yr as GTK_TOGGLE_BUTTON_CHECKED_CLASS,Xr as GTK_TOGGLE_BUTTON_TOGGLED,Kr as GTK_WRAP_MODES,J as GtkActionBar,Y as GtkBox,X as GtkButton,Q as GtkCheckButton,$ as GtkDrawingArea,Z as GtkDropDown,hr as GtkEntry,Sr as GtkFrame,xr as GtkGrid,a as GtkImage,Cr as GtkLabel,kr as GtkListBox,Nr as GtkMenuButton,Ir as GtkOverlay,Fr as GtkPopoverMenu,Rr as GtkRevealer,Br as GtkScrolledWindow,Vr as GtkSeparator,Ur as GtkStack,Hr as GtkStackPage,qr as GtkTextView,Zr as GtkToggleButton,r as GtkWindow,Qe as ICON_FALLBACK_NAME,Ar as LIST_BOX_ROW_ACTIVATED,jr as LIST_BOX_ROW_SELECTED,Mr as LIST_ROW_SELECTED_CLASS,Pr as MENU_ITEM_ACTIVATED,On as MENU_TAPPED,kn as NOTIFY_ACTIVE,fr as NOTIFY_CHECK_ACTIVE,sr as NOTIFY_DROP_DOWN_SELECTED,gr as NOTIFY_ENTRY_TEXT,Vt as NOTIFY_EXPANDED,ye as NOTIFY_HEXPAND,At as NOTIFY_N_PAGES,mt as NOTIFY_OPEN,jt as NOTIFY_POSITION,Ee as NOTIFY_RESPONSE,zr as NOTIFY_REVEAL_CHILD,Pt as NOTIFY_SELECTED,Bn as NOTIFY_SELECTED_PAGE,Xt as NOTIFY_SHOW_SIDEBAR,pn as NOTIFY_SIDEBAR_SELECTED,ei as NOTIFY_SLIDER_VALUE,Wr as NOTIFY_STACK_VISIBLE_CHILD,Gr as NOTIFY_STACK_VISIBLE_CHILD_NAME,zt as NOTIFY_TEXT,Jr as NOTIFY_TEXT_VIEW_TEXT,Qr as NOTIFY_TOGGLE_ACTIVE,qn as NOTIFY_TOGGLE_SELECTED,mn as NOTIFY_VALUE,be as NOTIFY_VEXPAND,Gt as NOTIFY_VIEW_SELECTED,Ut as NOTIFY_VISIBLE_CHILD,Zt as NOTIFY_VISIBLE_PAGE,Kt as NsNavigationSplitViewState,qt as NsOverlaySplitViewState,Vn as PAGES_CHANGED,Mt as PAGE_CHANGED,le as PIXEL_SIZE_UNSET,Qt as PREFERENCES_CLOSED,di as ROW_ACTIVATED,ht as SHEET_CLOSE,gt as SHEET_CONTENT_BOTTOM_GAP,$t as SHORTCUT_LABEL_CAP_TEXT_CLASS,en as SHORTCUT_LABEL_CLASS,tn as SHORTCUT_LABEL_DIMMED_CLASS,nn as SHORTCUT_LABEL_DISABLED_CLASS,rn as SHORTCUT_LABEL_KEYCAP_CLASS,an as SHORTCUT_LABEL_KEYS_CLASS,on as SHORTCUT_LABEL_SIDE_CLASS,sn as SHORTCUT_LABEL_SPACED_CLASS,me as SimpleAction,he as SimpleActionGroup,hn as SpinState,Gn as TOAST_BUTTON_CLICKED,Jn as ToggleGroupState,Yn as WINDOW_BACKGROUND,ge as activateWidgetAction,e as addBreakpoints,Ve as adwaitaColorScheme,pi as adwaitaNsAccentColor,mi as adwaitaNsAccentCss,hi as applyAdwaitaNsAccent,de as applyConstructProps,St as applyMarkerClasses,jn as applyTabViewVisibility,_n as assertPopupMenuAssignable,vt as attachRowPressFeedback,ze as avatarInitials,_t as bottomSheetInsetPadding,yt as bottomSheetPanel,$n as boxChildTrack,er as boxSpacingChanges,tr as boxTrackPlan,rr as buttonSlotAfterWrite,ir as buttonSlotDetaches,Ct as carouselDotClasses,wt as carouselNotifyPayload,Tt as carouselPositionAtOffset,Et as carouselScrollOffset,gi as clearAdwaitaNsAccent,$e as compiledIconNames,Xn as configureSystemBars,Dt as createCarouselState,Mn as createTabViewState,ii as dataGridCellClass,ai as dataGridItemSpec,oi as dataGridRowClass,si as dataGridShapeKey,ci as dataGridTracksKey,Pe as dialogPresentationMode,te as evaluateBreakpointCondition,Xe as extractIconPaths,Ze as extractPathData,vn as fillPopupMenu,_e as findActionGroup,Fe as findDialogHost,_r as gridChildAt,vr as gridGap,yr as gridSpacing,br as gridTrackCounts,et as iconValueKind,Ot as indicatorMarkerClasses,ve as insertActionGroup,ue as isGtkIconSizeNick,tt as isIconAvailable,He as isThemeIconColor,yi as labelDisplayText,bi as labelMarkupIsUnparseable,pe as lengthValue,nr as normalizeBoxSpacing,kt as normalizeCarouselPageWidth,wn as normalizePolicy,fe as nsAlignment,ne as observeViewSize,re as observeWindowSize,Ue as onAdwaitaColorSchemeChanged,yn as openPopupMenu,_i as padForSystemInsets,vi as padSheetForSystemInsets,ie as parseBreakpointCondition,li as parseDataGridWidth,Tn as policyScrolls,bn as refuseMenuString,registerAdwaitaElements,nt as registerIcon,rt as registerIcons,it as registeredIconNames,st as renderSymbolicIcon,at as resolveIconSource,Lr as revealerChildVisibility,En as scrollOrientationFor,Er as selectionAfterModeChange,Dr as selectionAfterTap,Or as selectionMode,We as setAdwaitaColorScheme,cn as shortcutLabelDirection,ln as shortcutLabelPlatform,un as shortcutLabelRenderPlan,xn as showMenuPopup,Jt as splitViewColumns,Ie as surfaceSize,Zn as systemBarsConfig,Nn as tabBarVisibility,Pn as tabCloseVisibilities,Fn as tabLabelText,In as tabPageVisibilities,Ln as tabTooltipText,Rn as tabViewNotifyPayload,Ge as themeIconColor,Ke as toggleAdwaitaColorScheme,je as transitionNick,ot as unregisterIcon,xe as withGtkWidgetLayout};
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{AdwBreakpoint as ee,addBreakpoints as e,evaluateBreakpointCondition as te,observeViewSize as ne,observeWindowSize as re,parseBreakpointCondition as ie}from"./breakpoint.js";import{GTK_ALIGN as ae}from"./gtk-align.js";import{DEFAULT_ICON_PIXEL_SIZE as oe,GTK_ICON_SIZE_NICKS as se,GTK_ICON_SIZE_PIXELS as ce,PIXEL_SIZE_UNSET as le,isGtkIconSizeNick as ue}from"./gtk-icon-size.js";import{applyConstructProps as de,nsAlignment as fe}from"./construct-props.js";import{lengthValue as pe}from"./ns-length.js";import{SimpleAction as me,SimpleActionGroup as he,activateWidgetAction as ge,findActionGroup as _e,insertActionGroup as ve}from"./actions.js";import{NOTIFY_HEXPAND as ye,NOTIFY_VEXPAND as be,withGtkWidgetLayout as xe}from"./widget-layout.js";import{DEFAULT_REVEALER_TRANSITION_DURATION as Se,DEFAULT_STACK_TRANSITION_DURATION as Ce,GTK_REVEALER_TRANSITIONS as we,GTK_STACK_TRANSITIONS as Te,transitionNick as Ee}from"./transition-type.js";import{ADW_DIALOG_PRESENTATION_MODES as De,DEFAULT_DIALOG_PRESENTATION_MODE as Oe,dialogPresentationMode as ke,findDialogHost as Ae,surfaceSize as je}from"./window-state.js";import{AdwAboutDialog as t,CLOSED as Me}from"./adw-about-dialog.js";import{adwaitaColorScheme as Ne,isThemeIconColor as Pe,onAdwaitaColorSchemeChanged as Fe,setAdwaitaColorScheme as Ie,themeIconColor as Le,toggleAdwaitaColorScheme as Re}from"./color-scheme.js";import{ADWAITA_ICON_GRID as ze,DEFAULT_ICON_COLOR as Be,DEFAULT_ICON_COLOR_DARK as Ve,extractIconPaths as He,extractPathData as Ue}from"./icon-path.js";import{ICON_FALLBACK_NAME as We,compiledIconNames as Ge,iconValueKind as Ke,isIconAvailable as qe,registerIcon as Je,registerIcons as Ye,registeredIconNames as Xe,resolveIconSource as Ze,unregisterIcon as Qe}from"./icon-theme.js";import{renderSymbolicIcon as $e}from"./icons.js";import{DEFAULT_GTK_IMAGE_SIZE as et,GtkImage as n}from"./gtk-image.js";import{ACTIVATED as tt,AdwActionRow as r}from"./adw-action-row.js";import{AdwAlertDialog as nt,AdwAlertResponses as rt,NOTIFY_RESPONSE as it}from"./adw-alert-dialog.js";import{GtkWindow as i}from"./gtk-window.js";import{ADW_WINDOW_CLASS as at,AdwWindowBase as ot}from"./window-base.js";import{AdwApplicationWindow as a}from"./adw-application-window.js";import{avatarInitials as st}from"./avatar-color.js";import{AVATAR_DEFAULT_ICON as ct}from"./avatar-view.js";import{AdwAvatar as o,DEFAULT_AVATAR_SIZE as lt}from"./adw-avatar.js";import{DEFAULT_CLAMP_MAX_SIZE as ut,DEFAULT_SPINNER_SIZE as dt}from"./chrome.js";import{AdwBanner as s,BUTTON_CLICKED as ft}from"./adw-banner.js";import{AdwBin as c}from"./adw-bin.js";import{CLOSE_ATTEMPT as pt,NOTIFY_OPEN as mt,SHEET_CLOSE as ht}from"./bottom-sheet-state.js";import{SHEET_CONTENT_BOTTOM_GAP as gt,bottomSheetInsetPadding as _t}from"./bottom-sheet-insets.js";import{attachRowPressFeedback as vt}from"./row-press.js";import{AdwBottomSheet as l,bottomSheetPanel as yt}from"./adw-bottom-sheet.js";import{AdwButtonContent as u}from"./adw-button-content.js";import{AdwButtonRow as d}from"./adw-button-row.js";import{CarouselScrollSync as bt,DEFAULT_CAROUSEL_PAGE_WIDTH as xt,applyMarkerClasses as St,carouselDotClasses as Ct,carouselNotifyPayload as wt,carouselPositionAtOffset as Tt,carouselScrollOffset as Et,createCarouselState as Dt,indicatorMarkerClasses as Ot,normalizeCarouselPageWidth as kt}from"./carousel-state.js";import{AdwCarousel as f,NOTIFY_N_PAGES as At,NOTIFY_POSITION as jt,PAGE_CHANGED as Mt}from"./adw-carousel.js";import{AdwCarouselIndicatorDots as p}from"./adw-carousel-indicator-dots.js";import{AdwCarouselIndicatorLines as m}from"./adw-carousel-indicator-lines.js";import{AdwClamp as h}from"./adw-clamp.js";import{AdwComboRow as g,ComboState as Nt,NOTIFY_SELECTED as Pt}from"./adw-combo-row.js";import{ADW_DIALOG_CLASS as Ft,ADW_DIALOG_CLOSED as It,ADW_DIALOG_CLOSE_ATTEMPT as Lt,AdwDialog as _}from"./adw-dialog.js";import{AdwImageButton as v,DEFAULT_ICON_BUTTON_ICON_SIZE as Rt}from"./adw-image-button.js";import{AdwEntryRow as y,NOTIFY_TEXT as zt}from"./adw-entry-row.js";import{AdwExpanderRow as b,ExpanderState as Bt,NOTIFY_EXPANDED as Vt}from"./adw-expander-row.js";import{AdwWindowTitle as x}from"./adw-window-title.js";import{AdwHeaderBar as S}from"./adw-header-bar.js";import{AdwViewStackPage as Ht}from"./view-stack-page.js";import{AdwViewStack as C,NOTIFY_VISIBLE_CHILD as Ut}from"./adw-view-stack.js";import{AdwViewSwitcherBase as Wt,NOTIFY_SELECTED as Gt}from"./view-switcher-base.js";import{AdwInlineViewSwitcher as w}from"./adw-inline-view-switcher.js";import{NsNavigationSplitViewState as Kt,NsOverlaySplitViewState as qt,splitViewColumns as Jt}from"./split-view-state.js";import{AdwSplitViewBase as Yt,NOTIFY_SHOW_SIDEBAR as Xt}from"./split-view-base.js";import{AdwNavigationSplitView as T}from"./adw-navigation-split-view.js";import{AdwNavigationPage as E}from"./adw-navigation-page.js";import{NOTIFY_VISIBLE_PAGE as Zt}from"./navigation-stack.js";import{AdwNavigationView as D}from"./adw-navigation-view.js";import{AdwOverlaySplitView as O}from"./adw-overlay-split-view.js";import{AdwPasswordEntryRow as k}from"./adw-password-entry-row.js";import{AdwPreferencesDialog as A,CLOSED as Qt}from"./adw-preferences-dialog.js";import{AdwPreferencesGroup as j}from"./adw-preferences-group.js";import{AdwPreferencesPage as M}from"./adw-preferences-page.js";import{SHORTCUT_LABEL_CAP_TEXT_CLASS as $t,SHORTCUT_LABEL_CLASS as en,SHORTCUT_LABEL_DIMMED_CLASS as tn,SHORTCUT_LABEL_DISABLED_CLASS as nn,SHORTCUT_LABEL_KEYCAP_CLASS as rn,SHORTCUT_LABEL_KEYS_CLASS as an,SHORTCUT_LABEL_SIDE_CLASS as on,SHORTCUT_LABEL_SPACED_CLASS as sn,shortcutLabelDirection as cn,shortcutLabelPlatform as ln,shortcutLabelRenderPlan as un}from"./shortcut-label.js";import{AdwShortcutLabel as N}from"./adw-shortcut-label.js";import{AdwSidebarItem as dn,AdwSidebarSection as fn}from"../values/sidebar.js";import{AdwSidebar as P,NOTIFY_SELECTED as pn}from"./adw-sidebar.js";import{AdwSpinRow as F,NOTIFY_VALUE as mn,SpinState as hn}from"./adw-spin-row.js";import{AdwSpinner as I}from"./adw-spinner.js";import{GROUP_DIVIDER_API as gn,assertPopupMenuAssignable as _n,fillPopupMenu as vn,openPopupMenu as yn,refuseMenuString as bn}from"./popup-menu.js";import{showMenuPopup as xn}from"./popup-menu-view.js";import{DEFAULT_SCROLLBAR_POLICY as Sn,GTK_POLICY_TYPES as Cn,normalizePolicy as wn,policyScrolls as Tn,scrollOrientationFor as En}from"./scrolled-window-policy.js";import{AdwSplitButton as L,CLICKED as Dn,MENU_TAPPED as On}from"./adw-split-button.js";import{AdwStatusPage as R}from"./adw-status-page.js";import{AdwSwitchRow as z,NOTIFY_ACTIVE as kn}from"./adw-switch-row.js";import{AdwTabPage as An}from"../values/tab-page.js";import{applyTabViewVisibility as jn,createTabViewState as Mn,tabBarVisibility as Nn,tabCloseVisibilities as Pn,tabLabelText as Fn,tabPageVisibilities as In,tabTooltipText as Ln,tabViewNotifyPayload as Rn}from"./tab-view-state.js";import{AdwTabView as B,CLOSE_PAGE as zn,NOTIFY_SELECTED_PAGE as Bn,PAGES_CHANGED as Vn}from"./adw-tab-view.js";import{AdwToast as Hn,AdwToastOverlay as V,AdwToastQueue as Un,DEFAULT_TOAST_TIMEOUT as Wn,TOAST_BUTTON_CLICKED as Gn}from"./adw-toast-overlay.js";import{AdwToggle as Kn}from"./adw-toggle.js";import{AdwToggleGroup as H,NOTIFY_SELECTED as qn,ToggleGroupState as Jn}from"./adw-toggle-group.js";import{WINDOW_BACKGROUND as Yn,configureSystemBars as Xn,systemBarsConfig as Zn}from"./system-bars.js";import{AdwToolbarView as U}from"./adw-toolbar-view.js";import{AdwViewSwitcher as W}from"./adw-view-switcher.js";import{AdwViewSwitcherBar as G}from"./adw-view-switcher-bar.js";import{AdwWindow as K}from"./adw-window.js";import{AdwWrapBox as q}from"./adw-wrap-box.js";import{GtkActionBar as J}from"./gtk-action-bar.js";import{DEFAULT_BOX_SPACING as Qn,boxChildTrack as $n,boxSpacingChanges as er,boxTrackPlan as tr,normalizeBoxSpacing as nr}from"./box-layout.js";import{GtkBox as Y}from"./gtk-box.js";import{buttonSlotAfterWrite as rr,buttonSlotDetaches as ir}from"./button-slot.js";import{GTK_BUTTON_CLICKED as ar,GTK_BUTTON_LABEL_CLASS as or,GtkButton as X}from"./gtk-button.js";import{GtkDropDown as Z,NOTIFY_SELECTED as sr}from"./gtk-drop-down.js";import{GTK_CHECK_BUTTON_ACTIVATE as cr,GTK_CHECK_BUTTON_CHECKED_CLASS as lr,GTK_CHECK_BUTTON_INCONSISTENT_CLASS as ur,GTK_CHECK_BUTTON_TOGGLED as dr,GtkCheckButton as Q,NOTIFY_CHECK_ACTIVE as fr}from"./gtk-check-button.js";import{DRAWING_AREA_REFUSAL as pr,GtkDrawingArea as $}from"./gtk-drawing-area.js";import{ACTIVATE as mr,GtkEntry as hr,NOTIFY_TEXT as gr}from"./gtk-entry.js";import{gridChildAt as _r,gridGap as vr,gridSpacing as yr,gridTrackCounts as br}from"./grid-state.js";import{GtkGrid as xr}from"./gtk-grid.js";import{GtkFrame as Sr}from"./gtk-frame.js";import{GtkLabel as Cr}from"./gtk-label.js";import{DEFAULT_LIST_SELECTION_MODE as wr,GTK_SELECTION_MODES as Tr,selectionAfterModeChange as Er,selectionAfterTap as Dr,selectionMode as Or}from"./list-box-state.js";import{GtkListBox as kr,LIST_BOX_ROW_ACTIVATED as Ar,LIST_BOX_ROW_SELECTED as jr,LIST_ROW_SELECTED_CLASS as Mr}from"./gtk-list-box.js";import{GtkMenuButton as Nr,MENU_ITEM_ACTIVATED as Pr}from"./gtk-menu-button.js";import{GtkPopoverMenu as Fr}from"./gtk-popover-menu.js";import{GtkOverlay as Ir}from"./gtk-overlay.js";import{revealerChildVisibility as Lr}from"./revealer-state.js";import{GtkRevealer as Rr,NOTIFY_REVEAL_CHILD as zr}from"./gtk-revealer.js";import{GtkScrolledWindow as Br}from"./gtk-scrolled-window.js";import{GtkSeparator as Vr}from"./gtk-separator.js";import{GtkStackPage as Hr}from"./stack-page.js";import{GtkStack as Ur,NOTIFY_STACK_VISIBLE_CHILD as Wr,NOTIFY_STACK_VISIBLE_CHILD_NAME as Gr}from"./gtk-stack.js";import{GTK_WRAP_MODES as Kr,GtkTextView as qr,NOTIFY_TEXT_VIEW_TEXT as Jr}from"./gtk-text-view.js";import{GTK_TOGGLE_BUTTON_CHECKED_CLASS as Yr,GTK_TOGGLE_BUTTON_TOGGLED as Xr,GtkToggleButton as Zr,NOTIFY_TOGGLE_ACTIVE as Qr}from"./gtk-toggle-button.js";import{AdwSliderRow as $r,NOTIFY_SLIDER_VALUE as ei}from"./adw-slider-row.js";import{DATA_GRID_HEADER_CELL_CLASS as ti,DATA_GRID_HEADER_ROW_CLASS as ni,DATA_GRID_SECTION_CELL_CLASS as ri,dataGridCellClass as ii,dataGridItemSpec as ai,dataGridRowClass as oi,dataGridShapeKey as si,dataGridTracksKey as ci,parseDataGridWidth as li}from"./data-grid-model.js";import{AdwDataGrid as ui,ROW_ACTIVATED as di}from"./adw-data-grid.js";import{ADWAITA_NS_ACCENT_RULES as fi,adwaitaNsAccentColor as pi,adwaitaNsAccentCss as mi}from"./accent-theme.js";import{applyAdwaitaNsAccent as hi,clearAdwaitaNsAccent as gi}from"./adw-accent.js";import{padForSystemInsets as _i,padSheetForSystemInsets as vi}from"./system-insets.js";import{labelDisplayText as yi,labelMarkupIsUnparseable as bi}from"@gjsify/adwaita-core";const xi={AdwPreferencesPage:M,AdwPreferencesGroup:j,AdwActionRow:r,AdwSwitchRow:z,AdwEntryRow:y,AdwPasswordEntryRow:k,GtkEntry:hr,AdwComboRow:g,GtkDropDown:Z,AdwSpinRow:F,AdwSliderRow:$r,AdwExpanderRow:b,GtkButton:X,GtkBox:Y,GtkGrid:xr,GtkListBox:kr,AdwWindow:K,AdwApplicationWindow:a,AdwDialog:_,GtkActionBar:J,AdwBin:c,GtkOverlay:Ir,GtkRevealer:Rr,GtkScrolledWindow:Br,GtkWindow:i,GtkStack:Ur,GtkToggleButton:Zr,GtkCheckButton:Q,GtkDrawingArea:$,GtkFrame:Sr,GtkSeparator:Vr,GtkTextView:qr,GtkLabel:Cr,AdwImageButton:v,GtkMenuButton:Nr,GtkImage:n,AdwBanner:s,AdwAvatar:o,AdwWindowTitle:x,AdwClamp:h,AdwHeaderBar:S,AdwToolbarView:U,AdwWrapBox:q,AdwDataGrid:ui,AdwSpinner:I,AdwStatusPage:R,AdwButtonRow:d,AdwButtonContent:u,AdwSplitButton:L,AdwToggleGroup:H,AdwShortcutLabel:N,AdwViewStack:C,AdwViewSwitcher:W,AdwViewSwitcherBar:G,AdwInlineViewSwitcher:w,AdwTabView:B,AdwCarousel:f,AdwCarouselIndicatorDots:p,AdwCarouselIndicatorLines:m,AdwNavigationPage:E,AdwNavigationView:D,AdwNavigationSplitView:T,AdwOverlaySplitView:O,AdwSidebar:P,AdwBottomSheet:l,AdwToastOverlay:V,AdwAboutDialog:t,AdwPreferencesDialog:A};let Si=!1;function registerAdwaitaElements(){if(!Si&&typeof registerElement==`function`){for(let[ee,e]of Object.entries(xi))registerElement(ee,()=>e);Si=!0}}export{Me as ABOUT_CLOSED,tt as ACTIVATED,ze as ADWAITA_ICON_GRID,fi as ADWAITA_NS_ACCENT_RULES,Ft as ADW_DIALOG_CLASS,It as ADW_DIALOG_CLOSED,Lt as ADW_DIALOG_CLOSE_ATTEMPT,De as ADW_DIALOG_PRESENTATION_MODES,at as ADW_WINDOW_CLASS,ct as AVATAR_DEFAULT_ICON,t as AdwAboutDialog,r as AdwActionRow,nt as AdwAlertDialog,rt as AdwAlertResponses,a as AdwApplicationWindow,o as AdwAvatar,s as AdwBanner,c as AdwBin,l as AdwBottomSheet,ee as AdwBreakpoint,u as AdwButtonContent,d as AdwButtonRow,f as AdwCarousel,p as AdwCarouselIndicatorDots,m as AdwCarouselIndicatorLines,h as AdwClamp,g as AdwComboRow,ui as AdwDataGrid,_ as AdwDialog,y as AdwEntryRow,b as AdwExpanderRow,S as AdwHeaderBar,v as AdwImageButton,w as AdwInlineViewSwitcher,E as AdwNavigationPage,T as AdwNavigationSplitView,D as AdwNavigationView,O as AdwOverlaySplitView,k as AdwPasswordEntryRow,A as AdwPreferencesDialog,j as AdwPreferencesGroup,M as AdwPreferencesPage,N as AdwShortcutLabel,P as AdwSidebar,dn as AdwSidebarItem,fn as AdwSidebarSection,$r as AdwSliderRow,F as AdwSpinRow,I as AdwSpinner,L as AdwSplitButton,Yt as AdwSplitViewBase,R as AdwStatusPage,z as AdwSwitchRow,An as AdwTabPage,B as AdwTabView,Hn as AdwToast,V as AdwToastOverlay,Un as AdwToastQueue,Kn as AdwToggle,H as AdwToggleGroup,U as AdwToolbarView,C as AdwViewStack,Ht as AdwViewStackPage,W as AdwViewSwitcher,G as AdwViewSwitcherBar,Wt as AdwViewSwitcherBase,K as AdwWindow,ot as AdwWindowBase,x as AdwWindowTitle,q as AdwWrapBox,ft as BUTTON_CLICKED,Dn as CLICKED,pt as CLOSE_ATTEMPT,zn as CLOSE_PAGE,bt as CarouselScrollSync,Nt as ComboState,ti as DATA_GRID_HEADER_CELL_CLASS,ni as DATA_GRID_HEADER_ROW_CLASS,ri as DATA_GRID_SECTION_CELL_CLASS,lt as DEFAULT_AVATAR_SIZE,Qn as DEFAULT_BOX_SPACING,xt as DEFAULT_CAROUSEL_PAGE_WIDTH,ut as DEFAULT_CLAMP_MAX_SIZE,Oe as DEFAULT_DIALOG_PRESENTATION_MODE,et as DEFAULT_GTK_IMAGE_SIZE,Rt as DEFAULT_ICON_BUTTON_ICON_SIZE,Be as DEFAULT_ICON_COLOR,Ve as DEFAULT_ICON_COLOR_DARK,oe as DEFAULT_ICON_PIXEL_SIZE,wr as DEFAULT_LIST_SELECTION_MODE,Se as DEFAULT_REVEALER_TRANSITION_DURATION,Sn as DEFAULT_SCROLLBAR_POLICY,dt as DEFAULT_SPINNER_SIZE,Ce as DEFAULT_STACK_TRANSITION_DURATION,Wn as DEFAULT_TOAST_TIMEOUT,pr as DRAWING_AREA_REFUSAL,mr as ENTRY_ACTIVATE,Bt as ExpanderState,gn as GROUP_DIVIDER_API,ae as GTK_ALIGN,ar as GTK_BUTTON_CLICKED,or as GTK_BUTTON_LABEL_CLASS,cr as GTK_CHECK_BUTTON_ACTIVATE,lr as GTK_CHECK_BUTTON_CHECKED_CLASS,ur as GTK_CHECK_BUTTON_INCONSISTENT_CLASS,dr as GTK_CHECK_BUTTON_TOGGLED,se as GTK_ICON_SIZE_NICKS,ce as GTK_ICON_SIZE_PIXELS,Cn as GTK_POLICY_TYPES,we as GTK_REVEALER_TRANSITIONS,Tr as GTK_SELECTION_MODES,Te as GTK_STACK_TRANSITIONS,Yr as GTK_TOGGLE_BUTTON_CHECKED_CLASS,Xr as GTK_TOGGLE_BUTTON_TOGGLED,Kr as GTK_WRAP_MODES,J as GtkActionBar,Y as GtkBox,X as GtkButton,Q as GtkCheckButton,$ as GtkDrawingArea,Z as GtkDropDown,hr as GtkEntry,Sr as GtkFrame,xr as GtkGrid,n as GtkImage,Cr as GtkLabel,kr as GtkListBox,Nr as GtkMenuButton,Ir as GtkOverlay,Fr as GtkPopoverMenu,Rr as GtkRevealer,Br as GtkScrolledWindow,Vr as GtkSeparator,Ur as GtkStack,Hr as GtkStackPage,qr as GtkTextView,Zr as GtkToggleButton,i as GtkWindow,We as ICON_FALLBACK_NAME,Ar as LIST_BOX_ROW_ACTIVATED,jr as LIST_BOX_ROW_SELECTED,Mr as LIST_ROW_SELECTED_CLASS,Pr as MENU_ITEM_ACTIVATED,On as MENU_TAPPED,kn as NOTIFY_ACTIVE,fr as NOTIFY_CHECK_ACTIVE,sr as NOTIFY_DROP_DOWN_SELECTED,gr as NOTIFY_ENTRY_TEXT,Vt as NOTIFY_EXPANDED,ye as NOTIFY_HEXPAND,At as NOTIFY_N_PAGES,mt as NOTIFY_OPEN,jt as NOTIFY_POSITION,it as NOTIFY_RESPONSE,zr as NOTIFY_REVEAL_CHILD,Pt as NOTIFY_SELECTED,Bn as NOTIFY_SELECTED_PAGE,Xt as NOTIFY_SHOW_SIDEBAR,pn as NOTIFY_SIDEBAR_SELECTED,ei as NOTIFY_SLIDER_VALUE,Wr as NOTIFY_STACK_VISIBLE_CHILD,Gr as NOTIFY_STACK_VISIBLE_CHILD_NAME,zt as NOTIFY_TEXT,Jr as NOTIFY_TEXT_VIEW_TEXT,Qr as NOTIFY_TOGGLE_ACTIVE,qn as NOTIFY_TOGGLE_SELECTED,mn as NOTIFY_VALUE,be as NOTIFY_VEXPAND,Gt as NOTIFY_VIEW_SELECTED,Ut as NOTIFY_VISIBLE_CHILD,Zt as NOTIFY_VISIBLE_PAGE,Kt as NsNavigationSplitViewState,qt as NsOverlaySplitViewState,Vn as PAGES_CHANGED,Mt as PAGE_CHANGED,le as PIXEL_SIZE_UNSET,Qt as PREFERENCES_CLOSED,di as ROW_ACTIVATED,ht as SHEET_CLOSE,gt as SHEET_CONTENT_BOTTOM_GAP,$t as SHORTCUT_LABEL_CAP_TEXT_CLASS,en as SHORTCUT_LABEL_CLASS,tn as SHORTCUT_LABEL_DIMMED_CLASS,nn as SHORTCUT_LABEL_DISABLED_CLASS,rn as SHORTCUT_LABEL_KEYCAP_CLASS,an as SHORTCUT_LABEL_KEYS_CLASS,on as SHORTCUT_LABEL_SIDE_CLASS,sn as SHORTCUT_LABEL_SPACED_CLASS,me as SimpleAction,he as SimpleActionGroup,hn as SpinState,Gn as TOAST_BUTTON_CLICKED,Jn as ToggleGroupState,Yn as WINDOW_BACKGROUND,ge as activateWidgetAction,e as addBreakpoints,Ne as adwaitaColorScheme,pi as adwaitaNsAccentColor,mi as adwaitaNsAccentCss,hi as applyAdwaitaNsAccent,de as applyConstructProps,St as applyMarkerClasses,jn as applyTabViewVisibility,_n as assertPopupMenuAssignable,vt as attachRowPressFeedback,st as avatarInitials,_t as bottomSheetInsetPadding,yt as bottomSheetPanel,$n as boxChildTrack,er as boxSpacingChanges,tr as boxTrackPlan,rr as buttonSlotAfterWrite,ir as buttonSlotDetaches,Ct as carouselDotClasses,wt as carouselNotifyPayload,Tt as carouselPositionAtOffset,Et as carouselScrollOffset,gi as clearAdwaitaNsAccent,Ge as compiledIconNames,Xn as configureSystemBars,Dt as createCarouselState,Mn as createTabViewState,ii as dataGridCellClass,ai as dataGridItemSpec,oi as dataGridRowClass,si as dataGridShapeKey,ci as dataGridTracksKey,ke as dialogPresentationMode,te as evaluateBreakpointCondition,He as extractIconPaths,Ue as extractPathData,vn as fillPopupMenu,_e as findActionGroup,Ae as findDialogHost,_r as gridChildAt,vr as gridGap,yr as gridSpacing,br as gridTrackCounts,Ke as iconValueKind,Ot as indicatorMarkerClasses,ve as insertActionGroup,ue as isGtkIconSizeNick,qe as isIconAvailable,Pe as isThemeIconColor,yi as labelDisplayText,bi as labelMarkupIsUnparseable,pe as lengthValue,nr as normalizeBoxSpacing,kt as normalizeCarouselPageWidth,wn as normalizePolicy,fe as nsAlignment,ne as observeViewSize,re as observeWindowSize,Fe as onAdwaitaColorSchemeChanged,yn as openPopupMenu,_i as padForSystemInsets,vi as padSheetForSystemInsets,ie as parseBreakpointCondition,li as parseDataGridWidth,Tn as policyScrolls,bn as refuseMenuString,registerAdwaitaElements,Je as registerIcon,Ye as registerIcons,Xe as registeredIconNames,$e as renderSymbolicIcon,Ze as resolveIconSource,Lr as revealerChildVisibility,En as scrollOrientationFor,Er as selectionAfterModeChange,Dr as selectionAfterTap,Or as selectionMode,Ie as setAdwaitaColorScheme,cn as shortcutLabelDirection,ln as shortcutLabelPlatform,un as shortcutLabelRenderPlan,xn as showMenuPopup,Jt as splitViewColumns,je as surfaceSize,Zn as systemBarsConfig,Nn as tabBarVisibility,Pn as tabCloseVisibilities,Fn as tabLabelText,In as tabPageVisibilities,Ln as tabTooltipText,Rn as tabViewNotifyPayload,Le as themeIconColor,Re as toggleAdwaitaColorScheme,Ee as transitionNick,Qe as unregisterIcon,xe as withGtkWidgetLayout};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";function androidApiLevel(){return typeof android<`u`&&android?.os?.Build?.VERSION?.SDK_INT||1/0}function applyNativeTooltip(e,t,n=androidApiLevel()){if(n<26)return;let r=e.nativeViewProtected;r&&typeof r.setTooltipText==`function`&&r.setTooltipText(t===``?null:t)}export{applyNativeTooltip};
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";function androidApiLevel(){return typeof android<`u`&&android?.os?.Build?.VERSION?.SDK_INT||1/0}function applyNativeTooltip(e,t,n=androidApiLevel()){if(n<26)return;let r=e.nativeViewProtected;r&&typeof r.setTooltipText==`function`&&r.setTooltipText(t===``?null:t)}export{androidApiLevel,applyNativeTooltip};
|