@gjsify/adwaita-nativescript 0.64.3-next.260 → 0.64.3-next.263
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/index.js +1 -1
- package/lib/esm/widgets/adw-entry-row.js +1 -1
- package/lib/esm/widgets/adw-password-entry-row.js +1 -1
- package/lib/esm/widgets/index.js +1 -1
- package/lib/esm/widgets/signals.js +1 -1
- package/lib/types/entry-row-properties.spec.d.ts +2 -0
- package/lib/types/index.d.ts +2 -2
- package/lib/types/widgets/adw-entry-row.d.ts +85 -48
- package/lib/types/widgets/adw-password-entry-row.d.ts +6 -1
- package/lib/types/widgets/index.d.ts +1 -2
- package/lib/types/widgets/signals.d.ts +13 -1
- package/package.json +13 -13
package/lib/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./_virtual/_rolldown/runtime.js";import{AdwBreakpoint as ee,addBreakpoints as te,evaluateBreakpointCondition as ne,observeViewSize as e,observeWindowSize as t,parseBreakpointCondition as n}from"./widgets/breakpoint.js";import{ENGINE_TARGET as r}from"./engine-target.js";import{GTK_ALIGN as i}from"./widgets/gtk-align.js";import{DEFAULT_ICON_PIXEL_SIZE as a,GTK_ICON_SIZE_NICKS as o,GTK_ICON_SIZE_PIXELS as s,PIXEL_SIZE_UNSET as c,isGtkIconSizeNick as l}from"./widgets/gtk-icon-size.js";import{applyConstructProps as u,nsAlignment as d}from"./widgets/construct-props.js";import{activateWidgetAction as f,findActionGroup as p,insertActionGroup as m}from"./widgets/actions.js";import{NOTIFY_HEXPAND as h,NOTIFY_VEXPAND as g,withGtkWidgetLayout as _}from"./widgets/widget-layout.js";import{adwaitaColorScheme as v,isThemeIconColor as y,onAdwaitaColorSchemeChanged as b,setAdwaitaColorScheme as x,themeIconColor as S,toggleAdwaitaColorScheme as C}from"./widgets/color-scheme.js";import{ADWAITA_ICON_GRID as w,DEFAULT_ICON_COLOR as T,DEFAULT_ICON_COLOR_DARK as E,extractIconPaths as D,extractPathData as O}from"./widgets/icon-path.js";import{ICON_FALLBACK_NAME as k,compiledIconNames as A,iconValueKind as j,isIconAvailable as M,resolveIconSource as N}from"./widgets/icon-theme.js";import{renderSymbolicIcon as P}from"./widgets/icons.js";import{DEFAULT_GTK_IMAGE_SIZE as F}from"./widgets/gtk-image.js";import{CLOSED as I}from"./widgets/adw-about-dialog.js";import{ACTIVATED as L}from"./widgets/adw-action-row.js";import{AdwAlertResponses as R}from"./widgets/adw-alert-dialog.js";import{avatarInitials as z}from"./widgets/avatar-color.js";import{AVATAR_DEFAULT_ICON as B}from"./widgets/avatar-view.js";import{DEFAULT_AVATAR_SIZE as V}from"./widgets/adw-avatar.js";import{DEFAULT_CLAMP_MAX_SIZE as H,DEFAULT_SPINNER_SIZE as U}from"./widgets/chrome.js";import{BUTTON_CLICKED as W}from"./widgets/adw-banner.js";import{NOTIFY_OPEN as G}from"./widgets/bottom-sheet-state.js";import{attachRowPressFeedback as K}from"./widgets/row-press.js";import{bottomSheetPanel as q}from"./widgets/adw-bottom-sheet.js";import{DEFAULT_CAROUSEL_PAGE_WIDTH as J}from"./widgets/carousel-state.js";import{NOTIFY_POSITION as Y}from"./widgets/adw-carousel.js";import{ComboState as X,NOTIFY_SELECTED as Z}from"./widgets/adw-combo-row.js";import{ADW_DIALOG_CLOSED as re,ADW_DIALOG_CLOSE_ATTEMPT as ie}from"./widgets/adw-dialog.js";import{AdwImageButton as ae,DEFAULT_ICON_BUTTON_ICON_SIZE as oe}from"./widgets/adw-image-button.js";import{NOTIFY_TEXT as se}from"./widgets/adw-entry-row.js";import{ExpanderState as ce,NOTIFY_EXPANDED as le}from"./widgets/adw-expander-row.js";import{NOTIFY_VISIBLE_CHILD as ue}from"./widgets/adw-view-stack.js";import{AdwViewSwitcherBase as de,NOTIFY_SELECTED as fe}from"./widgets/view-switcher-base.js";import{NsNavigationSplitViewState as pe,NsOverlaySplitViewState as me,splitViewColumns as he}from"./widgets/split-view-state.js";import{AdwSplitViewBase as ge,NOTIFY_SHOW_SIDEBAR as _e}from"./widgets/split-view-base.js";import{NOTIFY_VISIBLE_PAGE as ve}from"./widgets/navigation-stack.js";import{CLOSED as ye}from"./widgets/adw-preferences-dialog.js";import{SHORTCUT_LABEL_CAP_TEXT_CLASS as be,SHORTCUT_LABEL_CLASS as xe,SHORTCUT_LABEL_DIMMED_CLASS as Se,SHORTCUT_LABEL_DISABLED_CLASS as Ce,SHORTCUT_LABEL_KEYCAP_CLASS as we,SHORTCUT_LABEL_KEYS_CLASS as Te,SHORTCUT_LABEL_SIDE_CLASS as Ee,SHORTCUT_LABEL_SPACED_CLASS as De,shortcutLabelDirection as Oe,shortcutLabelPlatform as ke,shortcutLabelRenderPlan as Ae}from"./widgets/shortcut-label.js";import{NOTIFY_SELECTED as je}from"./widgets/adw-sidebar.js";import{NOTIFY_VALUE as Me,SpinState as Ne}from"./widgets/adw-spin-row.js";import{CLICKED as Pe,MENU_TAPPED as Fe}from"./widgets/adw-split-button.js";import{NOTIFY_ACTIVE as Q}from"./widgets/adw-switch-row.js";import{AdwToast as Ie,AdwToastQueue as Le,DEFAULT_TOAST_TIMEOUT as Re}from"./widgets/adw-toast-overlay.js";import{NOTIFY_SELECTED as ze,ToggleGroupState as Be}from"./widgets/adw-toggle-group.js";import{adw_exports as Ve}from"./namespace/adw.js";import{DEFAULT_BOX_SPACING as He,boxChildTrack as Ue,boxSpacingChanges as We,boxTrackPlan as Ge,normalizeBoxSpacing as Ke}from"./widgets/box-layout.js";import{buttonSlotAfterWrite as qe,buttonSlotDetaches as Je}from"./widgets/button-slot.js";import{GTK_BUTTON_CLICKED as Ye,GTK_BUTTON_LABEL_CLASS as Xe}from"./widgets/gtk-button.js";import{NOTIFY_SELECTED as Ze}from"./widgets/gtk-drop-down.js";import{GTK_CHECK_BUTTON_ACTIVATE as Qe,GTK_CHECK_BUTTON_CHECKED_CLASS as $e,GTK_CHECK_BUTTON_INCONSISTENT_CLASS as et,GTK_CHECK_BUTTON_TOGGLED as tt,NOTIFY_CHECK_ACTIVE as nt}from"./widgets/gtk-check-button.js";import{DRAWING_AREA_REFUSAL as rt}from"./widgets/gtk-drawing-area.js";import{ACTIVATE as it,NOTIFY_TEXT as at}from"./widgets/gtk-entry.js";import{LIST_BOX_ROW_ACTIVATED as ot,LIST_BOX_ROW_SELECTED as st}from"./widgets/gtk-list-box.js";import{MENU_ITEM_ACTIVATED as ct}from"./widgets/gtk-menu-button.js";import{NOTIFY_REVEAL_CHILD as lt}from"./widgets/gtk-revealer.js";import{NOTIFY_STACK_VISIBLE_CHILD as ut,NOTIFY_STACK_VISIBLE_CHILD_NAME as dt}from"./widgets/gtk-stack.js";import{GTK_WRAP_MODES as ft,NOTIFY_TEXT_VIEW_TEXT as pt}from"./widgets/gtk-text-view.js";import{GTK_TOGGLE_BUTTON_CHECKED_CLASS as mt,GTK_TOGGLE_BUTTON_TOGGLED as ht,NOTIFY_TOGGLE_ACTIVE as gt}from"./widgets/gtk-toggle-button.js";import{gtk_exports as _t}from"./namespace/gtk.js";import{ADWAITA_SANS_FONT_FAMILY as vt,ADWAITA_SANS_TTF_FILES as yt,adwaitaFontInstallInstructions as bt,hasAdwaitaSans as xt}from"./fonts.js";import{AdwSliderRow as St,NOTIFY_SLIDER_VALUE as Ct}from"./widgets/adw-slider-row.js";import{DATA_GRID_HEADER_CELL_CLASS as wt,DATA_GRID_HEADER_ROW_CLASS as Tt,DATA_GRID_SECTION_CELL_CLASS as Et,dataGridCellClass as Dt,dataGridItemSpec as Ot,dataGridRowClass as kt,dataGridShapeKey as At,dataGridTracksKey as jt,parseDataGridWidth as Mt}from"./widgets/data-grid-model.js";import{AdwDataGrid as Nt,ROW_ACTIVATED as Pt}from"./widgets/adw-data-grid.js";import{ADWAITA_NS_ACCENT_RULES as Ft,adwaitaNsAccentColor as It,adwaitaNsAccentCss as Lt}from"./widgets/accent-theme.js";import{applyAdwaitaNsAccent as Rt,clearAdwaitaNsAccent as zt}from"./widgets/adw-accent.js";import{padForSystemInsets as Bt,padSheetForSystemInsets as Vt}from"./widgets/system-insets.js";import{labelDisplayText as Ht,labelMarkupIsUnparseable as Ut,registerAdwaitaElements as $}from"./widgets/index.js";import{gio_exports as Wt}from"./namespace/gio.js";import{gdk_exports as Gt}from"./namespace/gdk.js";import{glib_exports as Kt}from"./namespace/glib.js";import{assertNativeScript as qt,assertNativeScript as Jt,isAndroid as Yt,isIOS as Xt,isNativeScript as Zt}from"@gjsify/native-platform";function registerAdwaita(){Jt(),$()}export{I as ABOUT_CLOSED,L as ACTIVATED,w as ADWAITA_ICON_GRID,Ft as ADWAITA_NS_ACCENT_RULES,vt as ADWAITA_SANS_FONT_FAMILY,yt as ADWAITA_SANS_TTF_FILES,re as ADW_DIALOG_CLOSED,ie as ADW_DIALOG_CLOSE_ATTEMPT,B as AVATAR_DEFAULT_ICON,Ve as Adw,R as AdwAlertResponses,ee as AdwBreakpoint,Nt as AdwDataGrid,ae as AdwImageButton,St as AdwSliderRow,ge as AdwSplitViewBase,Ie as AdwToast,Le as AdwToastQueue,de as AdwViewSwitcherBase,W as BUTTON_CLICKED,Pe as CLICKED,X as ComboState,wt as DATA_GRID_HEADER_CELL_CLASS,Tt as DATA_GRID_HEADER_ROW_CLASS,Et as DATA_GRID_SECTION_CELL_CLASS,V as DEFAULT_AVATAR_SIZE,He as DEFAULT_BOX_SPACING,J as DEFAULT_CAROUSEL_PAGE_WIDTH,H as DEFAULT_CLAMP_MAX_SIZE,F as DEFAULT_GTK_IMAGE_SIZE,oe as DEFAULT_ICON_BUTTON_ICON_SIZE,T as DEFAULT_ICON_COLOR,E as DEFAULT_ICON_COLOR_DARK,a as DEFAULT_ICON_PIXEL_SIZE,U as DEFAULT_SPINNER_SIZE,Re as DEFAULT_TOAST_TIMEOUT,rt as DRAWING_AREA_REFUSAL,r as ENGINE_TARGET,it as ENTRY_ACTIVATE,ce as ExpanderState,Kt as GLib,i as GTK_ALIGN,Ye as GTK_BUTTON_CLICKED,Xe as GTK_BUTTON_LABEL_CLASS,Qe as GTK_CHECK_BUTTON_ACTIVATE,$e as GTK_CHECK_BUTTON_CHECKED_CLASS,et as GTK_CHECK_BUTTON_INCONSISTENT_CLASS,tt as GTK_CHECK_BUTTON_TOGGLED,o as GTK_ICON_SIZE_NICKS,s as GTK_ICON_SIZE_PIXELS,mt as GTK_TOGGLE_BUTTON_CHECKED_CLASS,ht as GTK_TOGGLE_BUTTON_TOGGLED,ft as GTK_WRAP_MODES,Gt as Gdk,Wt as Gio,_t as Gtk,k as ICON_FALLBACK_NAME,ot as LIST_BOX_ROW_ACTIVATED,st as LIST_BOX_ROW_SELECTED,ct as MENU_ITEM_ACTIVATED,Fe as MENU_TAPPED,Q as NOTIFY_ACTIVE,nt as NOTIFY_CHECK_ACTIVE,Ze as NOTIFY_DROP_DOWN_SELECTED,at as NOTIFY_ENTRY_TEXT,le as NOTIFY_EXPANDED,h as NOTIFY_HEXPAND,G as NOTIFY_OPEN,Y as NOTIFY_POSITION,lt as NOTIFY_REVEAL_CHILD,Z as NOTIFY_SELECTED,_e as NOTIFY_SHOW_SIDEBAR,je as NOTIFY_SIDEBAR_SELECTED,Ct as NOTIFY_SLIDER_VALUE,ut as NOTIFY_STACK_VISIBLE_CHILD,dt as NOTIFY_STACK_VISIBLE_CHILD_NAME,se as NOTIFY_TEXT,pt as NOTIFY_TEXT_VIEW_TEXT,gt as NOTIFY_TOGGLE_ACTIVE,ze as NOTIFY_TOGGLE_SELECTED,Me as NOTIFY_VALUE,g as NOTIFY_VEXPAND,fe as NOTIFY_VIEW_SELECTED,ue as NOTIFY_VISIBLE_CHILD,ve as NOTIFY_VISIBLE_PAGE,pe as NsNavigationSplitViewState,me as NsOverlaySplitViewState,c as PIXEL_SIZE_UNSET,ye as PREFERENCES_CLOSED,Pt as ROW_ACTIVATED,be as SHORTCUT_LABEL_CAP_TEXT_CLASS,xe as SHORTCUT_LABEL_CLASS,Se as SHORTCUT_LABEL_DIMMED_CLASS,Ce as SHORTCUT_LABEL_DISABLED_CLASS,we as SHORTCUT_LABEL_KEYCAP_CLASS,Te as SHORTCUT_LABEL_KEYS_CLASS,Ee as SHORTCUT_LABEL_SIDE_CLASS,De as SHORTCUT_LABEL_SPACED_CLASS,Ne as SpinState,Be as ToggleGroupState,f as activateWidgetAction,te as addBreakpoints,v as adwaitaColorScheme,bt as adwaitaFontInstallInstructions,It as adwaitaNsAccentColor,Lt as adwaitaNsAccentCss,Rt as applyAdwaitaNsAccent,u as applyConstructProps,qt as assertNativeScript,K as attachRowPressFeedback,z as avatarInitials,q as bottomSheetPanel,Ue as boxChildTrack,We as boxSpacingChanges,Ge as boxTrackPlan,qe as buttonSlotAfterWrite,Je as buttonSlotDetaches,zt as clearAdwaitaNsAccent,A as compiledIconNames,Dt as dataGridCellClass,Ot as dataGridItemSpec,kt as dataGridRowClass,At as dataGridShapeKey,jt as dataGridTracksKey,ne as evaluateBreakpointCondition,D as extractIconPaths,O as extractPathData,p as findActionGroup,xt as hasAdwaitaSans,j as iconValueKind,m as insertActionGroup,Yt as isAndroid,l as isGtkIconSizeNick,Xt as isIOS,M as isIconAvailable,Zt as isNativeScript,y as isThemeIconColor,Ht as labelDisplayText,Ut as labelMarkupIsUnparseable,Ke as normalizeBoxSpacing,d as nsAlignment,e as observeViewSize,t as observeWindowSize,b as onAdwaitaColorSchemeChanged,Bt as padForSystemInsets,Vt as padSheetForSystemInsets,n as parseBreakpointCondition,Mt as parseDataGridWidth,registerAdwaita,$ as registerAdwaitaElements,P as renderSymbolicIcon,N as resolveIconSource,x as setAdwaitaColorScheme,Oe as shortcutLabelDirection,ke as shortcutLabelPlatform,Ae as shortcutLabelRenderPlan,he as splitViewColumns,S as themeIconColor,C as toggleAdwaitaColorScheme,_ as withGtkWidgetLayout};
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";import{AdwBreakpoint as ee,addBreakpoints as te,evaluateBreakpointCondition as ne,observeViewSize as e,observeWindowSize as t,parseBreakpointCondition as n}from"./widgets/breakpoint.js";import{ENGINE_TARGET as r}from"./engine-target.js";import{GTK_ALIGN as i}from"./widgets/gtk-align.js";import{DEFAULT_ICON_PIXEL_SIZE as a,GTK_ICON_SIZE_NICKS as o,GTK_ICON_SIZE_PIXELS as s,PIXEL_SIZE_UNSET as c,isGtkIconSizeNick as l}from"./widgets/gtk-icon-size.js";import{applyConstructProps as u,nsAlignment as d}from"./widgets/construct-props.js";import{activateWidgetAction as f,findActionGroup as p,insertActionGroup as m}from"./widgets/actions.js";import{NOTIFY_HEXPAND as h,NOTIFY_VEXPAND as g,withGtkWidgetLayout as _}from"./widgets/widget-layout.js";import{adwaitaColorScheme as v,isThemeIconColor as y,onAdwaitaColorSchemeChanged as b,setAdwaitaColorScheme as x,themeIconColor as S,toggleAdwaitaColorScheme as C}from"./widgets/color-scheme.js";import{ADWAITA_ICON_GRID as w,DEFAULT_ICON_COLOR as T,DEFAULT_ICON_COLOR_DARK as E,extractIconPaths as D,extractPathData as O}from"./widgets/icon-path.js";import{ICON_FALLBACK_NAME as k,compiledIconNames as A,iconValueKind as j,isIconAvailable as M,resolveIconSource as N}from"./widgets/icon-theme.js";import{renderSymbolicIcon as P}from"./widgets/icons.js";import{DEFAULT_GTK_IMAGE_SIZE as F}from"./widgets/gtk-image.js";import{CLOSED as I}from"./widgets/adw-about-dialog.js";import{ACTIVATED as L}from"./widgets/adw-action-row.js";import{AdwAlertResponses as R}from"./widgets/adw-alert-dialog.js";import{avatarInitials as z}from"./widgets/avatar-color.js";import{AVATAR_DEFAULT_ICON as B}from"./widgets/avatar-view.js";import{DEFAULT_AVATAR_SIZE as V}from"./widgets/adw-avatar.js";import{DEFAULT_CLAMP_MAX_SIZE as H,DEFAULT_SPINNER_SIZE as U}from"./widgets/chrome.js";import{BUTTON_CLICKED as W}from"./widgets/adw-banner.js";import{NOTIFY_OPEN as G}from"./widgets/bottom-sheet-state.js";import{attachRowPressFeedback as K}from"./widgets/row-press.js";import{bottomSheetPanel as q}from"./widgets/adw-bottom-sheet.js";import{DEFAULT_CAROUSEL_PAGE_WIDTH as J}from"./widgets/carousel-state.js";import{NOTIFY_POSITION as Y}from"./widgets/adw-carousel.js";import{ComboState as X,NOTIFY_SELECTED as Z}from"./widgets/adw-combo-row.js";import{ADW_DIALOG_CLOSED as re,ADW_DIALOG_CLOSE_ATTEMPT as ie}from"./widgets/adw-dialog.js";import{AdwImageButton as ae,DEFAULT_ICON_BUTTON_ICON_SIZE as oe}from"./widgets/adw-image-button.js";import{NOTIFY_ACTIVATES_DEFAULT as se,NOTIFY_EDITABLE as ce,NOTIFY_MAX_LENGTH as le,NOTIFY_SHOW_APPLY_BUTTON as ue,NOTIFY_TEXT as de,NOTIFY_TEXT_LENGTH as fe,SIGNAL_APPLY as pe,SIGNAL_ENTRY_ACTIVATED as me}from"./widgets/adw-entry-row.js";import{ExpanderState as he,NOTIFY_EXPANDED as ge}from"./widgets/adw-expander-row.js";import{NOTIFY_VISIBLE_CHILD as _e}from"./widgets/adw-view-stack.js";import{AdwViewSwitcherBase as ve,NOTIFY_SELECTED as ye}from"./widgets/view-switcher-base.js";import{NsNavigationSplitViewState as be,NsOverlaySplitViewState as xe,splitViewColumns as Se}from"./widgets/split-view-state.js";import{AdwSplitViewBase as Ce,NOTIFY_SHOW_SIDEBAR as we}from"./widgets/split-view-base.js";import{NOTIFY_VISIBLE_PAGE as Te}from"./widgets/navigation-stack.js";import{CLOSED as Ee}from"./widgets/adw-preferences-dialog.js";import{SHORTCUT_LABEL_CAP_TEXT_CLASS as De,SHORTCUT_LABEL_CLASS as Oe,SHORTCUT_LABEL_DIMMED_CLASS as ke,SHORTCUT_LABEL_DISABLED_CLASS as Ae,SHORTCUT_LABEL_KEYCAP_CLASS as je,SHORTCUT_LABEL_KEYS_CLASS as Me,SHORTCUT_LABEL_SIDE_CLASS as Ne,SHORTCUT_LABEL_SPACED_CLASS as Pe,shortcutLabelDirection as Fe,shortcutLabelPlatform as Q,shortcutLabelRenderPlan as Ie}from"./widgets/shortcut-label.js";import{NOTIFY_SELECTED as Le}from"./widgets/adw-sidebar.js";import{NOTIFY_VALUE as Re,SpinState as ze}from"./widgets/adw-spin-row.js";import{CLICKED as Be,MENU_TAPPED as Ve}from"./widgets/adw-split-button.js";import{NOTIFY_ACTIVE as He}from"./widgets/adw-switch-row.js";import{AdwToast as Ue,AdwToastQueue as We,DEFAULT_TOAST_TIMEOUT as Ge}from"./widgets/adw-toast-overlay.js";import{NOTIFY_SELECTED as Ke,ToggleGroupState as qe}from"./widgets/adw-toggle-group.js";import{adw_exports as Je}from"./namespace/adw.js";import{DEFAULT_BOX_SPACING as Ye,boxChildTrack as Xe,boxSpacingChanges as Ze,boxTrackPlan as Qe,normalizeBoxSpacing as $e}from"./widgets/box-layout.js";import{buttonSlotAfterWrite as et,buttonSlotDetaches as tt}from"./widgets/button-slot.js";import{GTK_BUTTON_CLICKED as nt,GTK_BUTTON_LABEL_CLASS as rt}from"./widgets/gtk-button.js";import{NOTIFY_SELECTED as it}from"./widgets/gtk-drop-down.js";import{GTK_CHECK_BUTTON_ACTIVATE as at,GTK_CHECK_BUTTON_CHECKED_CLASS as ot,GTK_CHECK_BUTTON_INCONSISTENT_CLASS as st,GTK_CHECK_BUTTON_TOGGLED as ct,NOTIFY_CHECK_ACTIVE as lt}from"./widgets/gtk-check-button.js";import{DRAWING_AREA_REFUSAL as ut}from"./widgets/gtk-drawing-area.js";import{ACTIVATE as dt,NOTIFY_TEXT as ft}from"./widgets/gtk-entry.js";import{LIST_BOX_ROW_ACTIVATED as pt,LIST_BOX_ROW_SELECTED as mt}from"./widgets/gtk-list-box.js";import{MENU_ITEM_ACTIVATED as ht}from"./widgets/gtk-menu-button.js";import{NOTIFY_REVEAL_CHILD as gt}from"./widgets/gtk-revealer.js";import{NOTIFY_STACK_VISIBLE_CHILD as _t,NOTIFY_STACK_VISIBLE_CHILD_NAME as vt}from"./widgets/gtk-stack.js";import{GTK_WRAP_MODES as yt,NOTIFY_TEXT_VIEW_TEXT as bt}from"./widgets/gtk-text-view.js";import{GTK_TOGGLE_BUTTON_CHECKED_CLASS as xt,GTK_TOGGLE_BUTTON_TOGGLED as St,NOTIFY_TOGGLE_ACTIVE as Ct}from"./widgets/gtk-toggle-button.js";import{gtk_exports as wt}from"./namespace/gtk.js";import{ADWAITA_SANS_FONT_FAMILY as Tt,ADWAITA_SANS_TTF_FILES as Et,adwaitaFontInstallInstructions as Dt,hasAdwaitaSans as Ot}from"./fonts.js";import{AdwSliderRow as kt,NOTIFY_SLIDER_VALUE as At}from"./widgets/adw-slider-row.js";import{DATA_GRID_HEADER_CELL_CLASS as jt,DATA_GRID_HEADER_ROW_CLASS as Mt,DATA_GRID_SECTION_CELL_CLASS as Nt,dataGridCellClass as Pt,dataGridItemSpec as Ft,dataGridRowClass as It,dataGridShapeKey as Lt,dataGridTracksKey as Rt,parseDataGridWidth as zt}from"./widgets/data-grid-model.js";import{AdwDataGrid as Bt,ROW_ACTIVATED as Vt}from"./widgets/adw-data-grid.js";import{ADWAITA_NS_ACCENT_RULES as Ht,adwaitaNsAccentColor as Ut,adwaitaNsAccentCss as Wt}from"./widgets/accent-theme.js";import{applyAdwaitaNsAccent as Gt,clearAdwaitaNsAccent as Kt}from"./widgets/adw-accent.js";import{padForSystemInsets as qt,padSheetForSystemInsets as Jt}from"./widgets/system-insets.js";import{labelDisplayText as Yt,labelMarkupIsUnparseable as Xt,registerAdwaitaElements as $}from"./widgets/index.js";import{gio_exports as Zt}from"./namespace/gio.js";import{gdk_exports as Qt}from"./namespace/gdk.js";import{glib_exports as $t}from"./namespace/glib.js";import{assertNativeScript as en,assertNativeScript as tn,isAndroid as nn,isIOS as rn,isNativeScript as an}from"@gjsify/native-platform";function registerAdwaita(){tn(),$()}export{I as ABOUT_CLOSED,L as ACTIVATED,w as ADWAITA_ICON_GRID,Ht as ADWAITA_NS_ACCENT_RULES,Tt as ADWAITA_SANS_FONT_FAMILY,Et as ADWAITA_SANS_TTF_FILES,re as ADW_DIALOG_CLOSED,ie as ADW_DIALOG_CLOSE_ATTEMPT,B as AVATAR_DEFAULT_ICON,Je as Adw,R as AdwAlertResponses,ee as AdwBreakpoint,Bt as AdwDataGrid,ae as AdwImageButton,kt as AdwSliderRow,Ce as AdwSplitViewBase,Ue as AdwToast,We as AdwToastQueue,ve as AdwViewSwitcherBase,W as BUTTON_CLICKED,Be as CLICKED,X as ComboState,jt as DATA_GRID_HEADER_CELL_CLASS,Mt as DATA_GRID_HEADER_ROW_CLASS,Nt as DATA_GRID_SECTION_CELL_CLASS,V as DEFAULT_AVATAR_SIZE,Ye as DEFAULT_BOX_SPACING,J as DEFAULT_CAROUSEL_PAGE_WIDTH,H as DEFAULT_CLAMP_MAX_SIZE,F as DEFAULT_GTK_IMAGE_SIZE,oe as DEFAULT_ICON_BUTTON_ICON_SIZE,T as DEFAULT_ICON_COLOR,E as DEFAULT_ICON_COLOR_DARK,a as DEFAULT_ICON_PIXEL_SIZE,U as DEFAULT_SPINNER_SIZE,Ge as DEFAULT_TOAST_TIMEOUT,ut as DRAWING_AREA_REFUSAL,r as ENGINE_TARGET,dt as ENTRY_ACTIVATE,he as ExpanderState,$t as GLib,i as GTK_ALIGN,nt as GTK_BUTTON_CLICKED,rt as GTK_BUTTON_LABEL_CLASS,at as GTK_CHECK_BUTTON_ACTIVATE,ot as GTK_CHECK_BUTTON_CHECKED_CLASS,st as GTK_CHECK_BUTTON_INCONSISTENT_CLASS,ct as GTK_CHECK_BUTTON_TOGGLED,o as GTK_ICON_SIZE_NICKS,s as GTK_ICON_SIZE_PIXELS,xt as GTK_TOGGLE_BUTTON_CHECKED_CLASS,St as GTK_TOGGLE_BUTTON_TOGGLED,yt as GTK_WRAP_MODES,Qt as Gdk,Zt as Gio,wt as Gtk,k as ICON_FALLBACK_NAME,pt as LIST_BOX_ROW_ACTIVATED,mt as LIST_BOX_ROW_SELECTED,ht as MENU_ITEM_ACTIVATED,Ve as MENU_TAPPED,se as NOTIFY_ACTIVATES_DEFAULT,He as NOTIFY_ACTIVE,lt as NOTIFY_CHECK_ACTIVE,it as NOTIFY_DROP_DOWN_SELECTED,ce as NOTIFY_EDITABLE,ft as NOTIFY_ENTRY_TEXT,ge as NOTIFY_EXPANDED,h as NOTIFY_HEXPAND,le as NOTIFY_MAX_LENGTH,G as NOTIFY_OPEN,Y as NOTIFY_POSITION,gt as NOTIFY_REVEAL_CHILD,Z as NOTIFY_SELECTED,ue as NOTIFY_SHOW_APPLY_BUTTON,we as NOTIFY_SHOW_SIDEBAR,Le as NOTIFY_SIDEBAR_SELECTED,At as NOTIFY_SLIDER_VALUE,_t as NOTIFY_STACK_VISIBLE_CHILD,vt as NOTIFY_STACK_VISIBLE_CHILD_NAME,de as NOTIFY_TEXT,fe as NOTIFY_TEXT_LENGTH,bt as NOTIFY_TEXT_VIEW_TEXT,Ct as NOTIFY_TOGGLE_ACTIVE,Ke as NOTIFY_TOGGLE_SELECTED,Re as NOTIFY_VALUE,g as NOTIFY_VEXPAND,ye as NOTIFY_VIEW_SELECTED,_e as NOTIFY_VISIBLE_CHILD,Te as NOTIFY_VISIBLE_PAGE,be as NsNavigationSplitViewState,xe as NsOverlaySplitViewState,c as PIXEL_SIZE_UNSET,Ee as PREFERENCES_CLOSED,Vt as ROW_ACTIVATED,De as SHORTCUT_LABEL_CAP_TEXT_CLASS,Oe as SHORTCUT_LABEL_CLASS,ke as SHORTCUT_LABEL_DIMMED_CLASS,Ae as SHORTCUT_LABEL_DISABLED_CLASS,je as SHORTCUT_LABEL_KEYCAP_CLASS,Me as SHORTCUT_LABEL_KEYS_CLASS,Ne as SHORTCUT_LABEL_SIDE_CLASS,Pe as SHORTCUT_LABEL_SPACED_CLASS,pe as SIGNAL_APPLY,me as SIGNAL_ENTRY_ACTIVATED,ze as SpinState,qe as ToggleGroupState,f as activateWidgetAction,te as addBreakpoints,v as adwaitaColorScheme,Dt as adwaitaFontInstallInstructions,Ut as adwaitaNsAccentColor,Wt as adwaitaNsAccentCss,Gt as applyAdwaitaNsAccent,u as applyConstructProps,en as assertNativeScript,K as attachRowPressFeedback,z as avatarInitials,q as bottomSheetPanel,Xe as boxChildTrack,Ze as boxSpacingChanges,Qe as boxTrackPlan,et as buttonSlotAfterWrite,tt as buttonSlotDetaches,Kt as clearAdwaitaNsAccent,A as compiledIconNames,Pt as dataGridCellClass,Ft as dataGridItemSpec,It as dataGridRowClass,Lt as dataGridShapeKey,Rt as dataGridTracksKey,ne as evaluateBreakpointCondition,D as extractIconPaths,O as extractPathData,p as findActionGroup,Ot as hasAdwaitaSans,j as iconValueKind,m as insertActionGroup,nn as isAndroid,l as isGtkIconSizeNick,rn as isIOS,M as isIconAvailable,an as isNativeScript,y as isThemeIconColor,Yt as labelDisplayText,Xt as labelMarkupIsUnparseable,$e as normalizeBoxSpacing,d as nsAlignment,e as observeViewSize,t as observeWindowSize,b as onAdwaitaColorSchemeChanged,qt as padForSystemInsets,Jt as padSheetForSystemInsets,n as parseBreakpointCondition,zt as parseDataGridWidth,registerAdwaita,$ as registerAdwaitaElements,P as renderSymbolicIcon,N as resolveIconSource,x as setAdwaitaColorScheme,Fe as shortcutLabelDirection,Q as shortcutLabelPlatform,Ie as shortcutLabelRenderPlan,Se as splitViewColumns,S as themeIconColor,C as toggleAdwaitaColorScheme,_ as withGtkWidgetLayout};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{readDeclaredValue as t,withProperties as n}from"./signals.js";import{GtkImage as r}from"./gtk-image.js";import{AdwActionRow as i}from"./adw-action-row.js";import{AdwImageButton as a}from"./adw-image-button.js";import{NS_EDIT_ICON_CLASS as o,NS_ENTRY_ROW_CLASS as s,applyEntryRowState as c}from"./entry-row-view.js";import{ADW_ACCENT_FG_COLOR as l,clampEntryMaxLength as u,clampEntryText as d,deriveEntryRowState as f,entryRowLatches as p,entryTextLength as m,resolveEntryRowActivation as h}from"@gjsify/adwaita-core";import{Label as g,StackLayout as _,TextField as v}from"@nativescript/core";import{documentEditSymbolic as y,objectSelectSymbolic as b}from"@gjsify/adwaita-icons/actions";const x=`notify::text`,S=`notify::text-length`,C=`notify::max-length`,w=`notify::editable`,T=`notify::show-apply-button`,E=`notify::activates-default`,D=`apply`,O=`entry-activated`;var AdwEntryRow=class extends n(i,{GTypeName:`AdwEntryRow`,Properties:{text:{kind:`string`,default:``,blurb:`The entry text`,normalize:(e,t)=>d(String(e??``),t.maxLength)},"text-length":{kind:`uint`,default:0,blurb:`The length of the text, in characters`,normalize:(e,t)=>m(t.text)},"max-length":{kind:`int`,default:0,blurb:`The maximum length of the text, in characters`,normalize:e=>u(t(`max-length`,`int`,e))},editable:{kind:`boolean`,default:!0,blurb:`Whether the entry is editable`},"show-apply-button":{kind:`boolean`,default:!1,blurb:`Whether to show the apply button`},"activates-default":{kind:`boolean`,default:!1,blurb:`Whether activating the embedded entry can activate the default widget`}},Signals:{apply:{},"entry-activated":{}}}){static GTypeName=`AdwEntryRow`;isActionRow=!1;_editing=!1;_showIndicator=!1;_textChanged=!1;_field;_emptyTitle;_suffixes;_editIcon;_indicator;_applyButton;_slotSuffix=null;constructor(t){super(),this._titleLabel.className=`adw-row-title adw-entry-title`,this._managesTitleVisibility=!1;let n=new g;n.className=`adw-row-title adw-entry-empty-title`,n.textWrap=!0,this._textStack.insertChild(n,0),this._emptyTitle=n;let i=new v;i.className=`adw-entry-field`,i.set(`backgroundColor`,`transparent`),i.set(`borderWidth`,0),this._textStack.addChild(i),this._field=i;let s=new _;s.orientation=`horizontal`,s.className=`adw-entry-row-suffixes`,this._suffixes=s;let c=new r;c.className=`gtk-image adw-entry-indicator`,s.addChild(c),this._indicator=c;let u=new a;u.className=`${u.className} adw-entry-apply`.trim(),u.iconName=b,u.iconColor=l,u.addEventListener(`tap`,()=>this.apply()),s.addChild(u),this._applyButton=u;let d=new r;d.className=o,d.iconName=y,s.addChild(d),this._editIcon=d,super.add_suffix(s),this._field.addEventListener(`textChange`,()=>{this.text=this._field.text??``}),this._field.addEventListener(`focus`,()=>this._setEditing(!0)),this._field.addEventListener(`blur`,()=>this._setEditing(!1)),this._field.addEventListener(`returnPress`,()=>this._activate()),this.connect(x,e=>e._onTextChanged()),this.connect(C,e=>e._onMaxLengthChanged()),this.connect(w,e=>e._update()),this.connect(T,e=>e._onShowApplyButtonChanged()),this._update(),e(this,t)}get editing(){return this._editing}get textChanged(){return this._textChanged}add_suffix(e){e.className=`${e.className??``} adw-row-suffix`.trim(),this._suffixes.addChild(e),this._slotSuffix=e}remove(e){if(e===this.prefix){super.remove(e);return}this._suffixes.removeChild(e),e===this._slotSuffix&&(this._slotSuffix=null)}get suffix(){return this._slotSuffix}setShowIndicator(e){this._showIndicator=!!e,this._update()}setIndicatorIcon(e){this._indicator.iconName=e}apply(){this._textChanged=!1,this._update(),this.emit(D)}_activate(){if(h(this._textChanged,this.activatesDefault).signal===`apply`){this.apply();return}this.emit(O)}_update(){this._render(f({text:this.text,editing:this._editing,editable:this.editable,showIndicator:this._showIndicator,textChanged:this._textChanged}))}_render(e){c({row:this,emptyTitle:this._emptyTitle,title:this._titleLabel,field:this._field,editIcon:this._editIcon,indicator:this._indicator,applyButton:this._applyButton},e,this._baseClassName)}get _baseClassName(){return s}_setEditing(e){e!==this._editing&&(this._editing=e,this._update())}_onTextChanged(){p(this.showApplyButton,this._editing)&&(this._textChanged=!0),this._update(),this.textLength=m(this.text)}_onMaxLengthChanged(){this.text=d(this.text,this.maxLength)}_onShowApplyButtonChanged(){this.showApplyButton||!this._textChanged||(this._textChanged=!1,this._update())}};export{AdwEntryRow,E as NOTIFY_ACTIVATES_DEFAULT,w as NOTIFY_EDITABLE,C as NOTIFY_MAX_LENGTH,T as NOTIFY_SHOW_APPLY_BUTTON,x as NOTIFY_TEXT,S as NOTIFY_TEXT_LENGTH,D as SIGNAL_APPLY,O as SIGNAL_ENTRY_ACTIVATED};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{xmlBoolean as t}from"./xml-values.js";import{AdwImageButton as n}from"./adw-image-button.js";import{NS_PASSWORD_ENTRY_ROW_CLASS as r,applyPasswordEntryRowState as i}from"./entry-row-view.js";import{AdwEntryRow as a}from"./adw-entry-row.js";import{PasswordEntryRowState as o,PasswordEntryRowState as s}from"@gjsify/adwaita-core";import{dialogWarningSymbolic as c}from"@gjsify/adwaita-icons/status";const l=`notify::revealed`;var AdwPasswordEntryRow=class extends a{static GTypeName=`AdwPasswordEntryRow`;_password=new s(this
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{xmlBoolean as t}from"./xml-values.js";import{AdwImageButton as n}from"./adw-image-button.js";import{NS_PASSWORD_ENTRY_ROW_CLASS as r,applyPasswordEntryRowState as i}from"./entry-row-view.js";import{AdwEntryRow as a}from"./adw-entry-row.js";import{PasswordEntryRowState as o,PasswordEntryRowState as s}from"@gjsify/adwaita-core";import{dialogWarningSymbolic as c}from"@gjsify/adwaita-icons/status";const l=`notify::revealed`;var AdwPasswordEntryRow=class extends a{static GTypeName=`AdwPasswordEntryRow`;_password=new s(this);_peekButton;constructor(t){super(),this._field.className=`adw-entry-field adw-password-field`;let r=new n;r.className=`${r.className} adw-password-peek`.trim(),r.addEventListener(`tap`,()=>this._password.togglePeek()),this.add_suffix(r),this._peekButton=r,this.setIndicatorIcon(c),this._renderPassword(this._password.state),this._password.subscribe(e=>{this._renderPassword(e);let t={eventName:l,object:this,revealed:e.revealed};this.notify(t)}),e(this,t)}get revealed(){return this._password.revealed}set revealed(e){this._password.setRevealed(t(e,!1))}get peeking(){return this._password.revealed}set peeking(e){this._password.setRevealed(t(e,!1))}togglePeek(){return this._password.togglePeek()}get capsLockOn(){return this._password.capsLockOn}setCapsLockOn(e){this._password.setCapsLockOn(e)}get _baseClassName(){return r}_renderPassword(e){i({field:this._field,peekButton:this._peekButton},e)}};export{AdwPasswordEntryRow,l as NOTIFY_REVEALED,o as PasswordEntryRowState};
|
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{adwaitaColorScheme as Se,isThemeIconColor as Ce,onAdwaitaColorSchemeChanged as we,setAdwaitaColorScheme as Te,themeIconColor as Ee,toggleAdwaitaColorScheme as De}from"./color-scheme.js";import{ADWAITA_ICON_GRID as Oe,DEFAULT_ICON_COLOR as ke,DEFAULT_ICON_COLOR_DARK as Ae,extractIconPaths as je,extractPathData as Me}from"./icon-path.js";import{ICON_FALLBACK_NAME as Ne,compiledIconNames as Pe,iconValueKind as Fe,isIconAvailable as Ie,resolveIconSource as Le}from"./icon-theme.js";import{renderSymbolicIcon as Re}from"./icons.js";import{DEFAULT_GTK_IMAGE_SIZE as ze,GtkImage as t}from"./gtk-image.js";import{DEFAULT_REVEALER_TRANSITION_DURATION as Be,DEFAULT_STACK_TRANSITION_DURATION as Ve,GTK_REVEALER_TRANSITIONS as He,GTK_STACK_TRANSITIONS as Ue,transitionNick as We}from"./transition-type.js";import{ADW_DIALOG_PRESENTATION_MODES as Ge,DEFAULT_DIALOG_PRESENTATION_MODE as Ke,dialogPresentationMode as qe,findDialogHost as Je,surfaceSize as Ye}from"./window-state.js";import{AdwAboutDialog as n,CLOSED as Xe}from"./adw-about-dialog.js";import{ACTIVATED as Ze,AdwActionRow as r}from"./adw-action-row.js";import{AdwAlertDialog as Qe,AdwAlertResponses as $e}from"./adw-alert-dialog.js";import{GtkWindow as i}from"./gtk-window.js";import{ADW_WINDOW_CLASS as et,AdwWindowBase as tt}from"./window-base.js";import{AdwApplicationWindow as a}from"./adw-application-window.js";import{avatarInitials as nt}from"./avatar-color.js";import{AVATAR_DEFAULT_ICON as rt}from"./avatar-view.js";import{AdwAvatar as o,DEFAULT_AVATAR_SIZE as it}from"./adw-avatar.js";import{DEFAULT_CLAMP_MAX_SIZE as at,DEFAULT_SPINNER_SIZE as ot}from"./chrome.js";import{AdwBanner as s,BUTTON_CLICKED as st}from"./adw-banner.js";import{AdwBin as c}from"./adw-bin.js";import{CLOSE_ATTEMPT as ct,NOTIFY_OPEN as lt,SHEET_CLOSE as ut}from"./bottom-sheet-state.js";import{SHEET_CONTENT_BOTTOM_GAP as dt,bottomSheetInsetPadding as ft}from"./bottom-sheet-insets.js";import{attachRowPressFeedback as pt}from"./row-press.js";import{AdwBottomSheet as l,bottomSheetPanel as mt}from"./adw-bottom-sheet.js";import{AdwButtonContent as u}from"./adw-button-content.js";import{AdwButtonRow as d}from"./adw-button-row.js";import{CarouselScrollSync as ht,DEFAULT_CAROUSEL_PAGE_WIDTH as gt,applyMarkerClasses as _t,carouselDotClasses as vt,carouselNotifyPayload as yt,carouselPositionAtOffset as bt,carouselScrollOffset as xt,createCarouselState as St,indicatorMarkerClasses as Ct,normalizeCarouselPageWidth as wt}from"./carousel-state.js";import{AdwCarousel as f,NOTIFY_N_PAGES as Tt,NOTIFY_POSITION as Et,PAGE_CHANGED as Dt}from"./adw-carousel.js";import{AdwCarouselIndicatorDots as p}from"./adw-carousel-indicator-dots.js";import{AdwCarouselIndicatorLines as m}from"./adw-carousel-indicator-lines.js";import{AdwClamp as h}from"./adw-clamp.js";import{AdwComboRow as g,ComboState as Ot,NOTIFY_SELECTED as kt}from"./adw-combo-row.js";import{ADW_DIALOG_CLASS as At,ADW_DIALOG_CLOSED as jt,ADW_DIALOG_CLOSE_ATTEMPT as Mt,AdwDialog as _}from"./adw-dialog.js";import{AdwImageButton as v,DEFAULT_ICON_BUTTON_ICON_SIZE as Nt}from"./adw-image-button.js";import{AdwEntryRow as y,NOTIFY_TEXT as Pt}from"./adw-entry-row.js";import{AdwExpanderRow as b,ExpanderState as Ft,NOTIFY_EXPANDED as It}from"./adw-expander-row.js";import{AdwWindowTitle as x}from"./adw-window-title.js";import{AdwHeaderBar as S}from"./adw-header-bar.js";import{AdwViewStackPage as Lt}from"./view-stack-page.js";import{AdwViewStack as C,NOTIFY_VISIBLE_CHILD as Rt}from"./adw-view-stack.js";import{AdwViewSwitcherBase as zt,NOTIFY_SELECTED as Bt}from"./view-switcher-base.js";import{AdwInlineViewSwitcher as w}from"./adw-inline-view-switcher.js";import{NsNavigationSplitViewState as Vt,NsOverlaySplitViewState as Ht,splitViewColumns as Ut}from"./split-view-state.js";import{AdwSplitViewBase as Wt,NOTIFY_SHOW_SIDEBAR as Gt}from"./split-view-base.js";import{AdwNavigationSplitView as T}from"./adw-navigation-split-view.js";import{AdwNavigationPage as E}from"./adw-navigation-page.js";import{NOTIFY_VISIBLE_PAGE as Kt}from"./navigation-stack.js";import{AdwNavigationView as D}from"./adw-navigation-view.js";import{AdwOverlaySplitView as O}from"./adw-overlay-split-view.js";import{AdwPasswordEntryRow as k}from"./adw-password-entry-row.js";import{AdwPreferencesDialog as A,CLOSED as qt}from"./adw-preferences-dialog.js";import{AdwPreferencesGroup as j}from"./adw-preferences-group.js";import{AdwPreferencesPage as M}from"./adw-preferences-page.js";import{SHORTCUT_LABEL_CAP_TEXT_CLASS as Jt,SHORTCUT_LABEL_CLASS as Yt,SHORTCUT_LABEL_DIMMED_CLASS as Xt,SHORTCUT_LABEL_DISABLED_CLASS as Zt,SHORTCUT_LABEL_KEYCAP_CLASS as Qt,SHORTCUT_LABEL_KEYS_CLASS as $t,SHORTCUT_LABEL_SIDE_CLASS as en,SHORTCUT_LABEL_SPACED_CLASS as tn,shortcutLabelDirection as nn,shortcutLabelPlatform as rn,shortcutLabelRenderPlan as an}from"./shortcut-label.js";import{AdwShortcutLabel as N}from"./adw-shortcut-label.js";import{AdwSidebarItem as on,AdwSidebarSection as sn}from"../values/sidebar.js";import{AdwSidebar as P,NOTIFY_SELECTED as cn}from"./adw-sidebar.js";import{AdwSpinRow as F,NOTIFY_VALUE as ln,SpinState as un}from"./adw-spin-row.js";import{AdwSpinner as I}from"./adw-spinner.js";import{GROUP_DIVIDER_API as dn,assertPopupMenuAssignable as fn,fillPopupMenu as pn,openPopupMenu as mn,refuseMenuString as hn}from"./popup-menu.js";import{showMenuPopup as gn}from"./popup-menu-view.js";import{DEFAULT_SCROLLBAR_POLICY as _n,GTK_POLICY_TYPES as vn,normalizePolicy as yn,policyScrolls as bn,scrollOrientationFor as xn}from"./scrolled-window-policy.js";import{AdwSplitButton as L,CLICKED as Sn,MENU_TAPPED as Cn}from"./adw-split-button.js";import{AdwStatusPage as R}from"./adw-status-page.js";import{AdwSwitchRow as z,NOTIFY_ACTIVE as wn}from"./adw-switch-row.js";import{AdwTabPage as Tn}from"../values/tab-page.js";import{applyTabViewVisibility as En,createTabViewState as Dn,tabBarVisibility as On,tabCloseVisibilities as kn,tabLabelText as An,tabPageVisibilities as jn,tabTooltipText as Mn,tabViewNotifyPayload as Nn}from"./tab-view-state.js";import{AdwTabView as B,CLOSE_PAGE as Pn,NOTIFY_SELECTED_PAGE as Fn,PAGES_CHANGED as In}from"./adw-tab-view.js";import{AdwToast as Ln,AdwToastOverlay as V,AdwToastQueue as Rn,DEFAULT_TOAST_TIMEOUT as zn}from"./adw-toast-overlay.js";import{AdwToggle as Bn}from"./adw-toggle.js";import{AdwToggleGroup as H,NOTIFY_SELECTED as Vn,ToggleGroupState as Hn}from"./adw-toggle-group.js";import{WINDOW_BACKGROUND as Un,configureSystemBars as Wn,systemBarsConfig as Gn}from"./system-bars.js";import{AdwToolbarView as U}from"./adw-toolbar-view.js";import{AdwViewSwitcher as W}from"./adw-view-switcher.js";import{AdwViewSwitcherBar as G}from"./adw-view-switcher-bar.js";import{AdwWindow as K}from"./adw-window.js";import{AdwWrapBox as q}from"./adw-wrap-box.js";import{GtkActionBar as J}from"./gtk-action-bar.js";import{DEFAULT_BOX_SPACING as Kn,boxChildTrack as qn,boxSpacingChanges as Jn,boxTrackPlan as Yn,normalizeBoxSpacing as Xn}from"./box-layout.js";import{GtkBox as Y}from"./gtk-box.js";import{buttonSlotAfterWrite as Zn,buttonSlotDetaches as Qn}from"./button-slot.js";import{GTK_BUTTON_CLICKED as $n,GTK_BUTTON_LABEL_CLASS as er,GtkButton as X}from"./gtk-button.js";import{GtkDropDown as Z,NOTIFY_SELECTED as tr}from"./gtk-drop-down.js";import{GTK_CHECK_BUTTON_ACTIVATE as nr,GTK_CHECK_BUTTON_CHECKED_CLASS as rr,GTK_CHECK_BUTTON_INCONSISTENT_CLASS as ir,GTK_CHECK_BUTTON_TOGGLED as ar,GtkCheckButton as Q,NOTIFY_CHECK_ACTIVE as or}from"./gtk-check-button.js";import{DRAWING_AREA_REFUSAL as sr,GtkDrawingArea as $}from"./gtk-drawing-area.js";import{ACTIVATE as cr,GtkEntry as lr,NOTIFY_TEXT as ur}from"./gtk-entry.js";import{gridChildAt as dr,gridGap as fr,gridSpacing as pr,gridTrackCounts as mr}from"./grid-state.js";import{GtkGrid as hr}from"./gtk-grid.js";import{GtkFrame as gr}from"./gtk-frame.js";import{GtkLabel as _r}from"./gtk-label.js";import{DEFAULT_LIST_SELECTION_MODE as vr,GTK_SELECTION_MODES as yr,selectionAfterModeChange as br,selectionAfterTap as xr,selectionMode as Sr}from"./list-box-state.js";import{GtkListBox as Cr,LIST_BOX_ROW_ACTIVATED as wr,LIST_BOX_ROW_SELECTED as Tr,LIST_ROW_SELECTED_CLASS as Er}from"./gtk-list-box.js";import{GtkMenuButton as Dr,MENU_ITEM_ACTIVATED as Or}from"./gtk-menu-button.js";import{GtkPopoverMenu as kr}from"./gtk-popover-menu.js";import{GtkOverlay as Ar}from"./gtk-overlay.js";import{revealerChildVisibility as jr}from"./revealer-state.js";import{GtkRevealer as Mr,NOTIFY_REVEAL_CHILD as Nr}from"./gtk-revealer.js";import{GtkScrolledWindow as Pr}from"./gtk-scrolled-window.js";import{GtkSeparator as Fr}from"./gtk-separator.js";import{GtkStackPage as Ir}from"./stack-page.js";import{GtkStack as Lr,NOTIFY_STACK_VISIBLE_CHILD as Rr,NOTIFY_STACK_VISIBLE_CHILD_NAME as zr}from"./gtk-stack.js";import{GTK_WRAP_MODES as Br,GtkTextView as Vr,NOTIFY_TEXT_VIEW_TEXT as Hr}from"./gtk-text-view.js";import{GTK_TOGGLE_BUTTON_CHECKED_CLASS as Ur,GTK_TOGGLE_BUTTON_TOGGLED as Wr,GtkToggleButton as Gr,NOTIFY_TOGGLE_ACTIVE as Kr}from"./gtk-toggle-button.js";import{AdwSliderRow as qr,NOTIFY_SLIDER_VALUE as Jr}from"./adw-slider-row.js";import{DATA_GRID_HEADER_CELL_CLASS as Yr,DATA_GRID_HEADER_ROW_CLASS as Xr,DATA_GRID_SECTION_CELL_CLASS as Zr,dataGridCellClass as Qr,dataGridItemSpec as $r,dataGridRowClass as ei,dataGridShapeKey as ti,dataGridTracksKey as ni,parseDataGridWidth as ri}from"./data-grid-model.js";import{AdwDataGrid as ii,ROW_ACTIVATED as ai}from"./adw-data-grid.js";import{ADWAITA_NS_ACCENT_RULES as oi,adwaitaNsAccentColor as si,adwaitaNsAccentCss as ci}from"./accent-theme.js";import{applyAdwaitaNsAccent as li,clearAdwaitaNsAccent as ui}from"./adw-accent.js";import{padForSystemInsets as di,padSheetForSystemInsets as fi}from"./system-insets.js";import{labelDisplayText as pi,labelMarkupIsUnparseable as mi}from"@gjsify/adwaita-core";const hi={AdwPreferencesPage:M,AdwPreferencesGroup:j,AdwActionRow:r,AdwSwitchRow:z,AdwEntryRow:y,AdwPasswordEntryRow:k,GtkEntry:lr,AdwComboRow:g,GtkDropDown:Z,AdwSpinRow:F,AdwSliderRow:qr,AdwExpanderRow:b,GtkButton:X,GtkBox:Y,GtkGrid:hr,GtkListBox:Cr,AdwWindow:K,AdwApplicationWindow:a,AdwDialog:_,GtkActionBar:J,AdwBin:c,GtkOverlay:Ar,GtkRevealer:Mr,GtkScrolledWindow:Pr,GtkWindow:i,GtkStack:Lr,GtkToggleButton:Gr,GtkCheckButton:Q,GtkDrawingArea:$,GtkFrame:gr,GtkSeparator:Fr,GtkTextView:Vr,GtkLabel:_r,AdwImageButton:v,GtkMenuButton:Dr,GtkImage:t,AdwBanner:s,AdwAvatar:o,AdwWindowTitle:x,AdwClamp:h,AdwHeaderBar:S,AdwToolbarView:U,AdwWrapBox:q,AdwDataGrid:ii,AdwSpinner:I,AdwStatusPage:R,AdwButtonRow:d,AdwButtonContent:u,AdwSplitButton:L,AdwToggleGroup:H,AdwShortcutLabel:N,AdwViewStack:C,AdwViewSwitcher:W,AdwViewSwitcherBar:G,AdwInlineViewSwitcher:w,AdwTabView:B,AdwCarousel:f,AdwCarouselIndicatorDots:p,AdwCarouselIndicatorLines:m,AdwNavigationPage:E,AdwNavigationView:D,AdwNavigationSplitView:T,AdwOverlaySplitView:O,AdwSidebar:P,AdwBottomSheet:l,AdwToastOverlay:V,AdwAboutDialog:n,AdwPreferencesDialog:A};let gi=!1;function registerAdwaitaElements(){if(!gi&&typeof registerElement==`function`){for(let[ee,e]of Object.entries(hi))registerElement(ee,()=>e);gi=!0}}export{Xe as ABOUT_CLOSED,Ze as ACTIVATED,Oe as ADWAITA_ICON_GRID,oi as ADWAITA_NS_ACCENT_RULES,At as ADW_DIALOG_CLASS,jt as ADW_DIALOG_CLOSED,Mt as ADW_DIALOG_CLOSE_ATTEMPT,Ge as ADW_DIALOG_PRESENTATION_MODES,et as ADW_WINDOW_CLASS,rt as AVATAR_DEFAULT_ICON,n as AdwAboutDialog,r as AdwActionRow,Qe as AdwAlertDialog,$e as AdwAlertResponses,a as AdwApplicationWindow,o as AdwAvatar,s as AdwBanner,c as AdwBin,l as AdwBottomSheet,ee as AdwBreakpoint,u as AdwButtonContent,d as AdwButtonRow,f as AdwCarousel,p as AdwCarouselIndicatorDots,m as AdwCarouselIndicatorLines,h as AdwClamp,g as AdwComboRow,ii as AdwDataGrid,_ as AdwDialog,y as AdwEntryRow,b as AdwExpanderRow,S as AdwHeaderBar,v as AdwImageButton,w as AdwInlineViewSwitcher,E as AdwNavigationPage,T as AdwNavigationSplitView,D as AdwNavigationView,O as AdwOverlaySplitView,k as AdwPasswordEntryRow,A as AdwPreferencesDialog,j as AdwPreferencesGroup,M as AdwPreferencesPage,N as AdwShortcutLabel,P as AdwSidebar,on as AdwSidebarItem,sn as AdwSidebarSection,qr as AdwSliderRow,F as AdwSpinRow,I as AdwSpinner,L as AdwSplitButton,Wt as AdwSplitViewBase,R as AdwStatusPage,z as AdwSwitchRow,Tn as AdwTabPage,B as AdwTabView,Ln as AdwToast,V as AdwToastOverlay,Rn as AdwToastQueue,Bn as AdwToggle,H as AdwToggleGroup,U as AdwToolbarView,C as AdwViewStack,Lt as AdwViewStackPage,W as AdwViewSwitcher,G as AdwViewSwitcherBar,zt as AdwViewSwitcherBase,K as AdwWindow,tt as AdwWindowBase,x as AdwWindowTitle,q as AdwWrapBox,st as BUTTON_CLICKED,Sn as CLICKED,ct as CLOSE_ATTEMPT,Pn as CLOSE_PAGE,ht as CarouselScrollSync,Ot as ComboState,Yr as DATA_GRID_HEADER_CELL_CLASS,Xr as DATA_GRID_HEADER_ROW_CLASS,Zr as DATA_GRID_SECTION_CELL_CLASS,it as DEFAULT_AVATAR_SIZE,Kn as DEFAULT_BOX_SPACING,gt as DEFAULT_CAROUSEL_PAGE_WIDTH,at as DEFAULT_CLAMP_MAX_SIZE,Ke as DEFAULT_DIALOG_PRESENTATION_MODE,ze as DEFAULT_GTK_IMAGE_SIZE,Nt as DEFAULT_ICON_BUTTON_ICON_SIZE,ke as DEFAULT_ICON_COLOR,Ae as DEFAULT_ICON_COLOR_DARK,oe as DEFAULT_ICON_PIXEL_SIZE,vr as DEFAULT_LIST_SELECTION_MODE,Be as DEFAULT_REVEALER_TRANSITION_DURATION,_n as DEFAULT_SCROLLBAR_POLICY,ot as DEFAULT_SPINNER_SIZE,Ve as DEFAULT_STACK_TRANSITION_DURATION,zn as DEFAULT_TOAST_TIMEOUT,sr as DRAWING_AREA_REFUSAL,cr as ENTRY_ACTIVATE,Ft as ExpanderState,dn as GROUP_DIVIDER_API,ae as GTK_ALIGN,$n as GTK_BUTTON_CLICKED,er as GTK_BUTTON_LABEL_CLASS,nr as GTK_CHECK_BUTTON_ACTIVATE,rr as GTK_CHECK_BUTTON_CHECKED_CLASS,ir as GTK_CHECK_BUTTON_INCONSISTENT_CLASS,ar as GTK_CHECK_BUTTON_TOGGLED,se as GTK_ICON_SIZE_NICKS,ce as GTK_ICON_SIZE_PIXELS,vn as GTK_POLICY_TYPES,He as GTK_REVEALER_TRANSITIONS,yr as GTK_SELECTION_MODES,Ue as GTK_STACK_TRANSITIONS,Ur as GTK_TOGGLE_BUTTON_CHECKED_CLASS,Wr as GTK_TOGGLE_BUTTON_TOGGLED,Br as GTK_WRAP_MODES,J as GtkActionBar,Y as GtkBox,X as GtkButton,Q as GtkCheckButton,$ as GtkDrawingArea,Z as GtkDropDown,lr as GtkEntry,gr as GtkFrame,hr as GtkGrid,t as GtkImage,_r as GtkLabel,Cr as GtkListBox,Dr as GtkMenuButton,Ar as GtkOverlay,kr as GtkPopoverMenu,Mr as GtkRevealer,Pr as GtkScrolledWindow,Fr as GtkSeparator,Lr as GtkStack,Ir as GtkStackPage,Vr as GtkTextView,Gr as GtkToggleButton,i as GtkWindow,Ne as ICON_FALLBACK_NAME,wr as LIST_BOX_ROW_ACTIVATED,Tr as LIST_BOX_ROW_SELECTED,Er as LIST_ROW_SELECTED_CLASS,Or as MENU_ITEM_ACTIVATED,Cn as MENU_TAPPED,wn as NOTIFY_ACTIVE,or as NOTIFY_CHECK_ACTIVE,tr as NOTIFY_DROP_DOWN_SELECTED,ur as NOTIFY_ENTRY_TEXT,It as NOTIFY_EXPANDED,ye as NOTIFY_HEXPAND,Tt as NOTIFY_N_PAGES,lt as NOTIFY_OPEN,Et as NOTIFY_POSITION,Nr as NOTIFY_REVEAL_CHILD,kt as NOTIFY_SELECTED,Fn as NOTIFY_SELECTED_PAGE,Gt as NOTIFY_SHOW_SIDEBAR,cn as NOTIFY_SIDEBAR_SELECTED,Jr as NOTIFY_SLIDER_VALUE,Rr as NOTIFY_STACK_VISIBLE_CHILD,zr as NOTIFY_STACK_VISIBLE_CHILD_NAME,Pt as NOTIFY_TEXT,Hr as NOTIFY_TEXT_VIEW_TEXT,Kr as NOTIFY_TOGGLE_ACTIVE,Vn as NOTIFY_TOGGLE_SELECTED,ln as NOTIFY_VALUE,be as NOTIFY_VEXPAND,Bt as NOTIFY_VIEW_SELECTED,Rt as NOTIFY_VISIBLE_CHILD,Kt as NOTIFY_VISIBLE_PAGE,Vt as NsNavigationSplitViewState,Ht as NsOverlaySplitViewState,In as PAGES_CHANGED,Dt as PAGE_CHANGED,le as PIXEL_SIZE_UNSET,qt as PREFERENCES_CLOSED,ai as ROW_ACTIVATED,ut as SHEET_CLOSE,dt as SHEET_CONTENT_BOTTOM_GAP,Jt as SHORTCUT_LABEL_CAP_TEXT_CLASS,Yt as SHORTCUT_LABEL_CLASS,Xt as SHORTCUT_LABEL_DIMMED_CLASS,Zt as SHORTCUT_LABEL_DISABLED_CLASS,Qt as SHORTCUT_LABEL_KEYCAP_CLASS,$t as SHORTCUT_LABEL_KEYS_CLASS,en as SHORTCUT_LABEL_SIDE_CLASS,tn as SHORTCUT_LABEL_SPACED_CLASS,me as SimpleAction,he as SimpleActionGroup,un as SpinState,Hn as ToggleGroupState,Un as WINDOW_BACKGROUND,ge as activateWidgetAction,e as addBreakpoints,Se as adwaitaColorScheme,si as adwaitaNsAccentColor,ci as adwaitaNsAccentCss,li as applyAdwaitaNsAccent,de as applyConstructProps,_t as applyMarkerClasses,En as applyTabViewVisibility,fn as assertPopupMenuAssignable,pt as attachRowPressFeedback,nt as avatarInitials,ft as bottomSheetInsetPadding,mt as bottomSheetPanel,qn as boxChildTrack,Jn as boxSpacingChanges,Yn as boxTrackPlan,Zn as buttonSlotAfterWrite,Qn as buttonSlotDetaches,vt as carouselDotClasses,yt as carouselNotifyPayload,bt as carouselPositionAtOffset,xt as carouselScrollOffset,ui as clearAdwaitaNsAccent,Pe as compiledIconNames,Wn as configureSystemBars,St as createCarouselState,Dn as createTabViewState,Qr as dataGridCellClass,$r as dataGridItemSpec,ei as dataGridRowClass,ti as dataGridShapeKey,ni as dataGridTracksKey,qe as dialogPresentationMode,te as evaluateBreakpointCondition,je as extractIconPaths,Me as extractPathData,pn as fillPopupMenu,_e as findActionGroup,Je as findDialogHost,dr as gridChildAt,fr as gridGap,pr as gridSpacing,mr as gridTrackCounts,Fe as iconValueKind,Ct as indicatorMarkerClasses,ve as insertActionGroup,ue as isGtkIconSizeNick,Ie as isIconAvailable,Ce as isThemeIconColor,pi as labelDisplayText,mi as labelMarkupIsUnparseable,pe as lengthValue,Xn as normalizeBoxSpacing,wt as normalizeCarouselPageWidth,yn as normalizePolicy,fe as nsAlignment,ne as observeViewSize,re as observeWindowSize,we as onAdwaitaColorSchemeChanged,mn as openPopupMenu,di as padForSystemInsets,fi as padSheetForSystemInsets,ie as parseBreakpointCondition,ri as parseDataGridWidth,bn as policyScrolls,hn as refuseMenuString,registerAdwaitaElements,Re as renderSymbolicIcon,Le as resolveIconSource,jr as revealerChildVisibility,xn as scrollOrientationFor,br as selectionAfterModeChange,xr as selectionAfterTap,Sr as selectionMode,Te as setAdwaitaColorScheme,nn as shortcutLabelDirection,rn as shortcutLabelPlatform,an as shortcutLabelRenderPlan,gn as showMenuPopup,Ut as splitViewColumns,Ye as surfaceSize,Gn as systemBarsConfig,On as tabBarVisibility,kn as tabCloseVisibilities,An as tabLabelText,jn as tabPageVisibilities,Mn as tabTooltipText,Nn as tabViewNotifyPayload,Ee as themeIconColor,De as toggleAdwaitaColorScheme,We as transitionNick,xe as withGtkWidgetLayout};
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{AdwBreakpoint as e,addBreakpoints as t,evaluateBreakpointCondition as ee,observeViewSize as te,observeWindowSize as ne,parseBreakpointCondition as re}from"./breakpoint.js";import{GTK_ALIGN as ie}from"./gtk-align.js";import{DEFAULT_ICON_PIXEL_SIZE as ae,GTK_ICON_SIZE_NICKS as oe,GTK_ICON_SIZE_PIXELS as se,PIXEL_SIZE_UNSET as ce,isGtkIconSizeNick as le}from"./gtk-icon-size.js";import{applyConstructProps as ue,nsAlignment as de}from"./construct-props.js";import{lengthValue as fe}from"./ns-length.js";import{SimpleAction as pe,SimpleActionGroup as me,activateWidgetAction as he,findActionGroup as ge,insertActionGroup as _e}from"./actions.js";import{NOTIFY_HEXPAND as ve,NOTIFY_VEXPAND as ye,withGtkWidgetLayout as be}from"./widget-layout.js";import{adwaitaColorScheme as xe,isThemeIconColor as Se,onAdwaitaColorSchemeChanged as Ce,setAdwaitaColorScheme as we,themeIconColor as Te,toggleAdwaitaColorScheme as Ee}from"./color-scheme.js";import{ADWAITA_ICON_GRID as De,DEFAULT_ICON_COLOR as Oe,DEFAULT_ICON_COLOR_DARK as ke,extractIconPaths as Ae,extractPathData as je}from"./icon-path.js";import{ICON_FALLBACK_NAME as Me,compiledIconNames as Ne,iconValueKind as Pe,isIconAvailable as Fe,resolveIconSource as Ie}from"./icon-theme.js";import{renderSymbolicIcon as Le}from"./icons.js";import{DEFAULT_GTK_IMAGE_SIZE as Re,GtkImage as n}from"./gtk-image.js";import{DEFAULT_REVEALER_TRANSITION_DURATION as ze,DEFAULT_STACK_TRANSITION_DURATION as Be,GTK_REVEALER_TRANSITIONS as Ve,GTK_STACK_TRANSITIONS as He,transitionNick as Ue}from"./transition-type.js";import{ADW_DIALOG_PRESENTATION_MODES as We,DEFAULT_DIALOG_PRESENTATION_MODE as Ge,dialogPresentationMode as Ke,findDialogHost as qe,surfaceSize as Je}from"./window-state.js";import{AdwAboutDialog as r,CLOSED as Ye}from"./adw-about-dialog.js";import{ACTIVATED as Xe,AdwActionRow as i}from"./adw-action-row.js";import{AdwAlertDialog as Ze,AdwAlertResponses as Qe}from"./adw-alert-dialog.js";import{GtkWindow as a}from"./gtk-window.js";import{ADW_WINDOW_CLASS as $e,AdwWindowBase as et}from"./window-base.js";import{AdwApplicationWindow as o}from"./adw-application-window.js";import{avatarInitials as tt}from"./avatar-color.js";import{AVATAR_DEFAULT_ICON as nt}from"./avatar-view.js";import{AdwAvatar as s,DEFAULT_AVATAR_SIZE as rt}from"./adw-avatar.js";import{DEFAULT_CLAMP_MAX_SIZE as it,DEFAULT_SPINNER_SIZE as at}from"./chrome.js";import{AdwBanner as c,BUTTON_CLICKED as ot}from"./adw-banner.js";import{AdwBin as l}from"./adw-bin.js";import{CLOSE_ATTEMPT as st,NOTIFY_OPEN as ct,SHEET_CLOSE as lt}from"./bottom-sheet-state.js";import{SHEET_CONTENT_BOTTOM_GAP as ut,bottomSheetInsetPadding as dt}from"./bottom-sheet-insets.js";import{attachRowPressFeedback as ft}from"./row-press.js";import{AdwBottomSheet as u,bottomSheetPanel as pt}from"./adw-bottom-sheet.js";import{AdwButtonContent as d}from"./adw-button-content.js";import{AdwButtonRow as f}from"./adw-button-row.js";import{CarouselScrollSync as mt,DEFAULT_CAROUSEL_PAGE_WIDTH as ht,applyMarkerClasses as gt,carouselDotClasses as _t,carouselNotifyPayload as vt,carouselPositionAtOffset as yt,carouselScrollOffset as bt,createCarouselState as xt,indicatorMarkerClasses as St,normalizeCarouselPageWidth as Ct}from"./carousel-state.js";import{AdwCarousel as p,NOTIFY_N_PAGES as wt,NOTIFY_POSITION as Tt,PAGE_CHANGED as Et}from"./adw-carousel.js";import{AdwCarouselIndicatorDots as m}from"./adw-carousel-indicator-dots.js";import{AdwCarouselIndicatorLines as h}from"./adw-carousel-indicator-lines.js";import{AdwClamp as g}from"./adw-clamp.js";import{AdwComboRow as _,ComboState as Dt,NOTIFY_SELECTED as Ot}from"./adw-combo-row.js";import{ADW_DIALOG_CLASS as kt,ADW_DIALOG_CLOSED as At,ADW_DIALOG_CLOSE_ATTEMPT as jt,AdwDialog as v}from"./adw-dialog.js";import{AdwImageButton as y,DEFAULT_ICON_BUTTON_ICON_SIZE as Mt}from"./adw-image-button.js";import{AdwEntryRow as b,NOTIFY_ACTIVATES_DEFAULT as Nt,NOTIFY_EDITABLE as Pt,NOTIFY_MAX_LENGTH as Ft,NOTIFY_SHOW_APPLY_BUTTON as It,NOTIFY_TEXT as Lt,NOTIFY_TEXT_LENGTH as Rt,SIGNAL_APPLY as zt,SIGNAL_ENTRY_ACTIVATED as Bt}from"./adw-entry-row.js";import{AdwExpanderRow as x,ExpanderState as Vt,NOTIFY_EXPANDED as Ht}from"./adw-expander-row.js";import{AdwWindowTitle as S}from"./adw-window-title.js";import{AdwHeaderBar as C}from"./adw-header-bar.js";import{AdwViewStackPage as Ut}from"./view-stack-page.js";import{AdwViewStack as w,NOTIFY_VISIBLE_CHILD as Wt}from"./adw-view-stack.js";import{AdwViewSwitcherBase as Gt,NOTIFY_SELECTED as Kt}from"./view-switcher-base.js";import{AdwInlineViewSwitcher as T}from"./adw-inline-view-switcher.js";import{NsNavigationSplitViewState as qt,NsOverlaySplitViewState as Jt,splitViewColumns as Yt}from"./split-view-state.js";import{AdwSplitViewBase as Xt,NOTIFY_SHOW_SIDEBAR as Zt}from"./split-view-base.js";import{AdwNavigationSplitView as E}from"./adw-navigation-split-view.js";import{AdwNavigationPage as D}from"./adw-navigation-page.js";import{NOTIFY_VISIBLE_PAGE as Qt}from"./navigation-stack.js";import{AdwNavigationView as O}from"./adw-navigation-view.js";import{AdwOverlaySplitView as k}from"./adw-overlay-split-view.js";import{AdwPasswordEntryRow as A}from"./adw-password-entry-row.js";import{AdwPreferencesDialog as j,CLOSED as $t}from"./adw-preferences-dialog.js";import{AdwPreferencesGroup as M}from"./adw-preferences-group.js";import{AdwPreferencesPage as N}from"./adw-preferences-page.js";import{SHORTCUT_LABEL_CAP_TEXT_CLASS as en,SHORTCUT_LABEL_CLASS as tn,SHORTCUT_LABEL_DIMMED_CLASS as nn,SHORTCUT_LABEL_DISABLED_CLASS as rn,SHORTCUT_LABEL_KEYCAP_CLASS as an,SHORTCUT_LABEL_KEYS_CLASS as on,SHORTCUT_LABEL_SIDE_CLASS as sn,SHORTCUT_LABEL_SPACED_CLASS as cn,shortcutLabelDirection as ln,shortcutLabelPlatform as un,shortcutLabelRenderPlan as dn}from"./shortcut-label.js";import{AdwShortcutLabel as P}from"./adw-shortcut-label.js";import{AdwSidebarItem as fn,AdwSidebarSection as pn}from"../values/sidebar.js";import{AdwSidebar as F,NOTIFY_SELECTED as mn}from"./adw-sidebar.js";import{AdwSpinRow as I,NOTIFY_VALUE as hn,SpinState as gn}from"./adw-spin-row.js";import{AdwSpinner as _n}from"./adw-spinner.js";import{GROUP_DIVIDER_API as vn,assertPopupMenuAssignable as yn,fillPopupMenu as bn,openPopupMenu as xn,refuseMenuString as Sn}from"./popup-menu.js";import{showMenuPopup as Cn}from"./popup-menu-view.js";import{DEFAULT_SCROLLBAR_POLICY as wn,GTK_POLICY_TYPES as Tn,normalizePolicy as En,policyScrolls as Dn,scrollOrientationFor as On}from"./scrolled-window-policy.js";import{AdwSplitButton as L,CLICKED as kn,MENU_TAPPED as An}from"./adw-split-button.js";import{AdwStatusPage as R}from"./adw-status-page.js";import{AdwSwitchRow as z,NOTIFY_ACTIVE as jn}from"./adw-switch-row.js";import{AdwTabPage as Mn}from"../values/tab-page.js";import{applyTabViewVisibility as Nn,createTabViewState as Pn,tabBarVisibility as Fn,tabCloseVisibilities as In,tabLabelText as Ln,tabPageVisibilities as Rn,tabTooltipText as zn,tabViewNotifyPayload as Bn}from"./tab-view-state.js";import{AdwTabView as B,CLOSE_PAGE as Vn,NOTIFY_SELECTED_PAGE as Hn,PAGES_CHANGED as Un}from"./adw-tab-view.js";import{AdwToast as Wn,AdwToastOverlay as V,AdwToastQueue as Gn,DEFAULT_TOAST_TIMEOUT as Kn}from"./adw-toast-overlay.js";import{AdwToggle as qn}from"./adw-toggle.js";import{AdwToggleGroup as H,NOTIFY_SELECTED as Jn,ToggleGroupState as Yn}from"./adw-toggle-group.js";import{WINDOW_BACKGROUND as Xn,configureSystemBars as Zn,systemBarsConfig as Qn}from"./system-bars.js";import{AdwToolbarView as U}from"./adw-toolbar-view.js";import{AdwViewSwitcher as W}from"./adw-view-switcher.js";import{AdwViewSwitcherBar as G}from"./adw-view-switcher-bar.js";import{AdwWindow as K}from"./adw-window.js";import{AdwWrapBox as q}from"./adw-wrap-box.js";import{GtkActionBar as J}from"./gtk-action-bar.js";import{DEFAULT_BOX_SPACING as $n,boxChildTrack as er,boxSpacingChanges as tr,boxTrackPlan as nr,normalizeBoxSpacing as rr}from"./box-layout.js";import{GtkBox as Y}from"./gtk-box.js";import{buttonSlotAfterWrite as ir,buttonSlotDetaches as ar}from"./button-slot.js";import{GTK_BUTTON_CLICKED as or,GTK_BUTTON_LABEL_CLASS as sr,GtkButton as X}from"./gtk-button.js";import{GtkDropDown as Z,NOTIFY_SELECTED as cr}from"./gtk-drop-down.js";import{GTK_CHECK_BUTTON_ACTIVATE as lr,GTK_CHECK_BUTTON_CHECKED_CLASS as ur,GTK_CHECK_BUTTON_INCONSISTENT_CLASS as dr,GTK_CHECK_BUTTON_TOGGLED as fr,GtkCheckButton as Q,NOTIFY_CHECK_ACTIVE as pr}from"./gtk-check-button.js";import{DRAWING_AREA_REFUSAL as mr,GtkDrawingArea as $}from"./gtk-drawing-area.js";import{ACTIVATE as hr,GtkEntry as gr,NOTIFY_TEXT as _r}from"./gtk-entry.js";import{gridChildAt as vr,gridGap as yr,gridSpacing as br,gridTrackCounts as xr}from"./grid-state.js";import{GtkGrid as Sr}from"./gtk-grid.js";import{GtkFrame as Cr}from"./gtk-frame.js";import{GtkLabel as wr}from"./gtk-label.js";import{DEFAULT_LIST_SELECTION_MODE as Tr,GTK_SELECTION_MODES as Er,selectionAfterModeChange as Dr,selectionAfterTap as Or,selectionMode as kr}from"./list-box-state.js";import{GtkListBox as Ar,LIST_BOX_ROW_ACTIVATED as jr,LIST_BOX_ROW_SELECTED as Mr,LIST_ROW_SELECTED_CLASS as Nr}from"./gtk-list-box.js";import{GtkMenuButton as Pr,MENU_ITEM_ACTIVATED as Fr}from"./gtk-menu-button.js";import{GtkPopoverMenu as Ir}from"./gtk-popover-menu.js";import{GtkOverlay as Lr}from"./gtk-overlay.js";import{revealerChildVisibility as Rr}from"./revealer-state.js";import{GtkRevealer as zr,NOTIFY_REVEAL_CHILD as Br}from"./gtk-revealer.js";import{GtkScrolledWindow as Vr}from"./gtk-scrolled-window.js";import{GtkSeparator as Hr}from"./gtk-separator.js";import{GtkStackPage as Ur}from"./stack-page.js";import{GtkStack as Wr,NOTIFY_STACK_VISIBLE_CHILD as Gr,NOTIFY_STACK_VISIBLE_CHILD_NAME as Kr}from"./gtk-stack.js";import{GTK_WRAP_MODES as qr,GtkTextView as Jr,NOTIFY_TEXT_VIEW_TEXT as Yr}from"./gtk-text-view.js";import{GTK_TOGGLE_BUTTON_CHECKED_CLASS as Xr,GTK_TOGGLE_BUTTON_TOGGLED as Zr,GtkToggleButton as Qr,NOTIFY_TOGGLE_ACTIVE as $r}from"./gtk-toggle-button.js";import{AdwSliderRow as ei,NOTIFY_SLIDER_VALUE as ti}from"./adw-slider-row.js";import{DATA_GRID_HEADER_CELL_CLASS as ni,DATA_GRID_HEADER_ROW_CLASS as ri,DATA_GRID_SECTION_CELL_CLASS as ii,dataGridCellClass as ai,dataGridItemSpec as oi,dataGridRowClass as si,dataGridShapeKey as ci,dataGridTracksKey as li,parseDataGridWidth as ui}from"./data-grid-model.js";import{AdwDataGrid as di,ROW_ACTIVATED as fi}from"./adw-data-grid.js";import{ADWAITA_NS_ACCENT_RULES as pi,adwaitaNsAccentColor as mi,adwaitaNsAccentCss as hi}from"./accent-theme.js";import{applyAdwaitaNsAccent as gi,clearAdwaitaNsAccent as _i}from"./adw-accent.js";import{padForSystemInsets as vi,padSheetForSystemInsets as yi}from"./system-insets.js";import{labelDisplayText as bi,labelMarkupIsUnparseable as xi}from"@gjsify/adwaita-core";const Si={AdwPreferencesPage:N,AdwPreferencesGroup:M,AdwActionRow:i,AdwSwitchRow:z,AdwEntryRow:b,AdwPasswordEntryRow:A,GtkEntry:gr,AdwComboRow:_,GtkDropDown:Z,AdwSpinRow:I,AdwSliderRow:ei,AdwExpanderRow:x,GtkButton:X,GtkBox:Y,GtkGrid:Sr,GtkListBox:Ar,AdwWindow:K,AdwApplicationWindow:o,AdwDialog:v,GtkActionBar:J,AdwBin:l,GtkOverlay:Lr,GtkRevealer:zr,GtkScrolledWindow:Vr,GtkWindow:a,GtkStack:Wr,GtkToggleButton:Qr,GtkCheckButton:Q,GtkDrawingArea:$,GtkFrame:Cr,GtkSeparator:Hr,GtkTextView:Jr,GtkLabel:wr,AdwImageButton:y,GtkMenuButton:Pr,GtkImage:n,AdwBanner:c,AdwAvatar:s,AdwWindowTitle:S,AdwClamp:g,AdwHeaderBar:C,AdwToolbarView:U,AdwWrapBox:q,AdwDataGrid:di,AdwSpinner:_n,AdwStatusPage:R,AdwButtonRow:f,AdwButtonContent:d,AdwSplitButton:L,AdwToggleGroup:H,AdwShortcutLabel:P,AdwViewStack:w,AdwViewSwitcher:W,AdwViewSwitcherBar:G,AdwInlineViewSwitcher:T,AdwTabView:B,AdwCarousel:p,AdwCarouselIndicatorDots:m,AdwCarouselIndicatorLines:h,AdwNavigationPage:D,AdwNavigationView:O,AdwNavigationSplitView:E,AdwOverlaySplitView:k,AdwSidebar:F,AdwBottomSheet:u,AdwToastOverlay:V,AdwAboutDialog:r,AdwPreferencesDialog:j};let Ci=!1;function registerAdwaitaElements(){if(!Ci&&typeof registerElement==`function`){for(let[e,t]of Object.entries(Si))registerElement(e,()=>t);Ci=!0}}export{Ye as ABOUT_CLOSED,Xe as ACTIVATED,De as ADWAITA_ICON_GRID,pi as ADWAITA_NS_ACCENT_RULES,kt as ADW_DIALOG_CLASS,At as ADW_DIALOG_CLOSED,jt as ADW_DIALOG_CLOSE_ATTEMPT,We as ADW_DIALOG_PRESENTATION_MODES,$e as ADW_WINDOW_CLASS,nt as AVATAR_DEFAULT_ICON,r as AdwAboutDialog,i as AdwActionRow,Ze as AdwAlertDialog,Qe as AdwAlertResponses,o as AdwApplicationWindow,s as AdwAvatar,c as AdwBanner,l as AdwBin,u as AdwBottomSheet,e as AdwBreakpoint,d as AdwButtonContent,f as AdwButtonRow,p as AdwCarousel,m as AdwCarouselIndicatorDots,h as AdwCarouselIndicatorLines,g as AdwClamp,_ as AdwComboRow,di as AdwDataGrid,v as AdwDialog,b as AdwEntryRow,x as AdwExpanderRow,C as AdwHeaderBar,y as AdwImageButton,T as AdwInlineViewSwitcher,D as AdwNavigationPage,E as AdwNavigationSplitView,O as AdwNavigationView,k as AdwOverlaySplitView,A as AdwPasswordEntryRow,j as AdwPreferencesDialog,M as AdwPreferencesGroup,N as AdwPreferencesPage,P as AdwShortcutLabel,F as AdwSidebar,fn as AdwSidebarItem,pn as AdwSidebarSection,ei as AdwSliderRow,I as AdwSpinRow,_n as AdwSpinner,L as AdwSplitButton,Xt as AdwSplitViewBase,R as AdwStatusPage,z as AdwSwitchRow,Mn as AdwTabPage,B as AdwTabView,Wn as AdwToast,V as AdwToastOverlay,Gn as AdwToastQueue,qn as AdwToggle,H as AdwToggleGroup,U as AdwToolbarView,w as AdwViewStack,Ut as AdwViewStackPage,W as AdwViewSwitcher,G as AdwViewSwitcherBar,Gt as AdwViewSwitcherBase,K as AdwWindow,et as AdwWindowBase,S as AdwWindowTitle,q as AdwWrapBox,ot as BUTTON_CLICKED,kn as CLICKED,st as CLOSE_ATTEMPT,Vn as CLOSE_PAGE,mt as CarouselScrollSync,Dt as ComboState,ni as DATA_GRID_HEADER_CELL_CLASS,ri as DATA_GRID_HEADER_ROW_CLASS,ii as DATA_GRID_SECTION_CELL_CLASS,rt as DEFAULT_AVATAR_SIZE,$n as DEFAULT_BOX_SPACING,ht as DEFAULT_CAROUSEL_PAGE_WIDTH,it as DEFAULT_CLAMP_MAX_SIZE,Ge as DEFAULT_DIALOG_PRESENTATION_MODE,Re as DEFAULT_GTK_IMAGE_SIZE,Mt as DEFAULT_ICON_BUTTON_ICON_SIZE,Oe as DEFAULT_ICON_COLOR,ke as DEFAULT_ICON_COLOR_DARK,ae as DEFAULT_ICON_PIXEL_SIZE,Tr as DEFAULT_LIST_SELECTION_MODE,ze as DEFAULT_REVEALER_TRANSITION_DURATION,wn as DEFAULT_SCROLLBAR_POLICY,at as DEFAULT_SPINNER_SIZE,Be as DEFAULT_STACK_TRANSITION_DURATION,Kn as DEFAULT_TOAST_TIMEOUT,mr as DRAWING_AREA_REFUSAL,hr as ENTRY_ACTIVATE,Vt as ExpanderState,vn as GROUP_DIVIDER_API,ie as GTK_ALIGN,or as GTK_BUTTON_CLICKED,sr as GTK_BUTTON_LABEL_CLASS,lr as GTK_CHECK_BUTTON_ACTIVATE,ur as GTK_CHECK_BUTTON_CHECKED_CLASS,dr as GTK_CHECK_BUTTON_INCONSISTENT_CLASS,fr as GTK_CHECK_BUTTON_TOGGLED,oe as GTK_ICON_SIZE_NICKS,se as GTK_ICON_SIZE_PIXELS,Tn as GTK_POLICY_TYPES,Ve as GTK_REVEALER_TRANSITIONS,Er as GTK_SELECTION_MODES,He as GTK_STACK_TRANSITIONS,Xr as GTK_TOGGLE_BUTTON_CHECKED_CLASS,Zr as GTK_TOGGLE_BUTTON_TOGGLED,qr as GTK_WRAP_MODES,J as GtkActionBar,Y as GtkBox,X as GtkButton,Q as GtkCheckButton,$ as GtkDrawingArea,Z as GtkDropDown,gr as GtkEntry,Cr as GtkFrame,Sr as GtkGrid,n as GtkImage,wr as GtkLabel,Ar as GtkListBox,Pr as GtkMenuButton,Lr as GtkOverlay,Ir as GtkPopoverMenu,zr as GtkRevealer,Vr as GtkScrolledWindow,Hr as GtkSeparator,Wr as GtkStack,Ur as GtkStackPage,Jr as GtkTextView,Qr as GtkToggleButton,a as GtkWindow,Me as ICON_FALLBACK_NAME,jr as LIST_BOX_ROW_ACTIVATED,Mr as LIST_BOX_ROW_SELECTED,Nr as LIST_ROW_SELECTED_CLASS,Fr as MENU_ITEM_ACTIVATED,An as MENU_TAPPED,Nt as NOTIFY_ACTIVATES_DEFAULT,jn as NOTIFY_ACTIVE,pr as NOTIFY_CHECK_ACTIVE,cr as NOTIFY_DROP_DOWN_SELECTED,Pt as NOTIFY_EDITABLE,_r as NOTIFY_ENTRY_TEXT,Ht as NOTIFY_EXPANDED,ve as NOTIFY_HEXPAND,Ft as NOTIFY_MAX_LENGTH,wt as NOTIFY_N_PAGES,ct as NOTIFY_OPEN,Tt as NOTIFY_POSITION,Br as NOTIFY_REVEAL_CHILD,Ot as NOTIFY_SELECTED,Hn as NOTIFY_SELECTED_PAGE,It as NOTIFY_SHOW_APPLY_BUTTON,Zt as NOTIFY_SHOW_SIDEBAR,mn as NOTIFY_SIDEBAR_SELECTED,ti as NOTIFY_SLIDER_VALUE,Gr as NOTIFY_STACK_VISIBLE_CHILD,Kr as NOTIFY_STACK_VISIBLE_CHILD_NAME,Lt as NOTIFY_TEXT,Rt as NOTIFY_TEXT_LENGTH,Yr as NOTIFY_TEXT_VIEW_TEXT,$r as NOTIFY_TOGGLE_ACTIVE,Jn as NOTIFY_TOGGLE_SELECTED,hn as NOTIFY_VALUE,ye as NOTIFY_VEXPAND,Kt as NOTIFY_VIEW_SELECTED,Wt as NOTIFY_VISIBLE_CHILD,Qt as NOTIFY_VISIBLE_PAGE,qt as NsNavigationSplitViewState,Jt as NsOverlaySplitViewState,Un as PAGES_CHANGED,Et as PAGE_CHANGED,ce as PIXEL_SIZE_UNSET,$t as PREFERENCES_CLOSED,fi as ROW_ACTIVATED,lt as SHEET_CLOSE,ut as SHEET_CONTENT_BOTTOM_GAP,en as SHORTCUT_LABEL_CAP_TEXT_CLASS,tn as SHORTCUT_LABEL_CLASS,nn as SHORTCUT_LABEL_DIMMED_CLASS,rn as SHORTCUT_LABEL_DISABLED_CLASS,an as SHORTCUT_LABEL_KEYCAP_CLASS,on as SHORTCUT_LABEL_KEYS_CLASS,sn as SHORTCUT_LABEL_SIDE_CLASS,cn as SHORTCUT_LABEL_SPACED_CLASS,zt as SIGNAL_APPLY,Bt as SIGNAL_ENTRY_ACTIVATED,pe as SimpleAction,me as SimpleActionGroup,gn as SpinState,Yn as ToggleGroupState,Xn as WINDOW_BACKGROUND,he as activateWidgetAction,t as addBreakpoints,xe as adwaitaColorScheme,mi as adwaitaNsAccentColor,hi as adwaitaNsAccentCss,gi as applyAdwaitaNsAccent,ue as applyConstructProps,gt as applyMarkerClasses,Nn as applyTabViewVisibility,yn as assertPopupMenuAssignable,ft as attachRowPressFeedback,tt as avatarInitials,dt as bottomSheetInsetPadding,pt as bottomSheetPanel,er as boxChildTrack,tr as boxSpacingChanges,nr as boxTrackPlan,ir as buttonSlotAfterWrite,ar as buttonSlotDetaches,_t as carouselDotClasses,vt as carouselNotifyPayload,yt as carouselPositionAtOffset,bt as carouselScrollOffset,_i as clearAdwaitaNsAccent,Ne as compiledIconNames,Zn as configureSystemBars,xt as createCarouselState,Pn as createTabViewState,ai as dataGridCellClass,oi as dataGridItemSpec,si as dataGridRowClass,ci as dataGridShapeKey,li as dataGridTracksKey,Ke as dialogPresentationMode,ee as evaluateBreakpointCondition,Ae as extractIconPaths,je as extractPathData,bn as fillPopupMenu,ge as findActionGroup,qe as findDialogHost,vr as gridChildAt,yr as gridGap,br as gridSpacing,xr as gridTrackCounts,Pe as iconValueKind,St as indicatorMarkerClasses,_e as insertActionGroup,le as isGtkIconSizeNick,Fe as isIconAvailable,Se as isThemeIconColor,bi as labelDisplayText,xi as labelMarkupIsUnparseable,fe as lengthValue,rr as normalizeBoxSpacing,Ct as normalizeCarouselPageWidth,En as normalizePolicy,de as nsAlignment,te as observeViewSize,ne as observeWindowSize,Ce as onAdwaitaColorSchemeChanged,xn as openPopupMenu,vi as padForSystemInsets,yi as padSheetForSystemInsets,re as parseBreakpointCondition,ui as parseDataGridWidth,Dn as policyScrolls,Sn as refuseMenuString,registerAdwaitaElements,Le as renderSymbolicIcon,Ie as resolveIconSource,Rr as revealerChildVisibility,On as scrollOrientationFor,Dr as selectionAfterModeChange,Or as selectionAfterTap,kr as selectionMode,we as setAdwaitaColorScheme,ln as shortcutLabelDirection,un as shortcutLabelPlatform,dn as shortcutLabelRenderPlan,Cn as showMenuPopup,Yt as splitViewColumns,Je as surfaceSize,Qn as systemBarsConfig,Fn as tabBarVisibility,In as tabCloseVisibilities,Ln as tabLabelText,Rn as tabPageVisibilities,zn as tabTooltipText,Bn as tabViewNotifyPayload,Te as themeIconColor,Ee as toggleAdwaitaColorScheme,Ue as transitionNick,be as withGtkWidgetLayout};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{ENGINE_TARGET as e}from"../engine-target.js";import{camelProperty as t,readGtkProperty as n,writeGtkProperty as r}from"./shadowed-properties.js";import{WIDGET_SIGNALS as i,watchMapping as a}from"./widget-mapping.js";import{withGtkWidgetLayout as o}from"./widget-layout.js";import{engineForTarget as s}from"@gjsify/adwaita-core";function coerceDeclared(e,t,n){
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{ENGINE_TARGET as e}from"../engine-target.js";import{camelProperty as t,readGtkProperty as n,writeGtkProperty as r}from"./shadowed-properties.js";import{WIDGET_SIGNALS as i,watchMapping as a}from"./widget-mapping.js";import{withGtkWidgetLayout as o}from"./widget-layout.js";import{engineForTarget as s}from"@gjsify/adwaita-core";function coerceDeclared(e,t,n,r){return t.normalize===void 0?readDeclaredValue(e,t.kind,n):t.normalize(n,r)}function readDeclaredValue(e,t,n){if(typeof n!=`string`||t===`string`)return n;let r=n.trim();if(t===`boolean`){let t=r.toLowerCase();if(t===`true`)return!0;if(t===`false`)return!1;throw TypeError(`Property '${e}' is a boolean; '${n}' is neither 'true' nor 'false'.`)}let i=r===``?NaN:Number(r);if(!Number.isFinite(i))throw TypeError(`Property '${e}' is a number; '${n}' is not one.`);return i}const c=new WeakMap;let l=1;const u=1073741824,d=new WeakMap,f=new WeakMap;function unknownHandler(e,t){return TypeError(`${e.constructor.name} has no handler with id ${t}. connect() hands out each id once and disconnect() takes it once; a second disconnect, or an id another widget returned, is refused here rather than left as a silent no-op.`)}const p=new WeakMap;function pureConnect(e,t,n){let r=l++,o=c.get(e);o===void 0&&(o=new Map,c.set(e,o));let s=i.includes(t)?a(e):void 0;return o.set(r,{eventName:t,listener:n,unwatch:s}),e.addEventListener(t,n),r}function pureDisconnect(e,t){let n=c.get(e)?.get(t);if(n===void 0)throw unknownHandler(e,t);e.removeEventListener(n.eventName,n.listener),n.unwatch?.(),c.get(e)?.delete(t)}function pureEmit(e,t,n){e.notify({eventName:t,object:e,args:n})}function declaredConnect(e,t,n,r){let i=l++,a=p.get(e);return a===void 0&&p.set(e,a=new Map),a.set(i,{key:t,eventName:n,callback:r}),i}function declaredDisconnect(e,t){return p.get(e)?.delete(t)===!0}function emitDeclared(e,t,n){let r=p.get(e);if(r===void 0)return;let i=t.startsWith(`notify::`),a=[...r];for(let[o,s]of a){if(s.key!==t||r.get(o)!==s)continue;let a=i?{eventName:s.eventName,object:e}:{eventName:s.eventName,object:e,args:n};try{s.callback(e,a)}catch(t){console.error(`[${e.constructor.name}] unhandled exception in a '${s.eventName}' handler:`,t)}}}function refuseDeclaredEvent(e,t,n){let r=giKeyOf(resolvedFor(e.constructor),t);if(r===null)return;let i=r.startsWith(`notify::`),a=i?`a declared property's notification`:`a declared signal`,o=n===`notify`?i?`write the property, or emit it with notify('${r.slice(8)}')`:`emit it with emit('${r}', …)`:`subscribe with connect('${t}', (self, data) => …), whose id disconnect() takes`;throw TypeError(`${e.constructor.name}.${n}('${t}'): '${r}' is ${a} and GObject owns it — ${o}. On Android the emission belongs to the GObject and no NativeScript listener can see it, so ${n} would work off-device and be silent on it.`)}function spellingsOf(e){return[...new Set([e,e.replace(/-/g,`_`),t(e)])]}function emittedSignalsOf(e){let t=[];for(let n=e;typeof n==`function`;n=Object.getPrototypeOf(n))t.unshift(n);let n=new Set;for(let e of t)if(Object.hasOwn(e,`emittedSignals`))for(let t of e.emittedSignals)n.add(t);return[...n]}const m=new WeakMap,h=new WeakSet,g=new WeakSet,_=new WeakMap;function declarationsOf(e){let t=[];for(let n=e;typeof n==`function`;n=Object.getPrototypeOf(n)){let e=m.get(n);e!==void 0&&t.unshift(e)}return t}function resolvedFor(e){let t=_.get(e);if(t!==void 0)return t;let n=new Map,r=new Set,i={canonicalOf:n,declaredSignals:r,routeD:!1,giConnect:void 0,giDisconnect:void 0,giEmit:void 0},a=i;for(let t of declarationsOf(e)){for(let[e,r]of t.canonicalOf)n.set(e,r);for(let e of t.declaredSignals)r.add(e);t.routeD&&(a.routeD=!0),t.giConnect!==void 0&&(a.giConnect=t.giConnect),t.giDisconnect!==void 0&&(a.giDisconnect=t.giDisconnect),t.giEmit!==void 0&&(a.giEmit=t.giEmit)}return _.set(e,i),i}function giKeyOf(e,t){if(e.declaredSignals.has(t))return t;if(!t.startsWith(`notify::`))return null;let n=e.canonicalOf.get(t.slice(8));return n===void 0?null:`notify::${n}`}function declare(e,t,n){let r=new Map;for(let e of Object.keys(t?.Properties??{}))for(let t of spellingsOf(e))r.set(t,e);let i={meta:t,klass:e,prototype:e.prototype,canonicalOf:r,declaredSignals:new Set(Object.keys(t?.Signals??{})),routers:n,realized:!1,routeD:!1};return m.set(e,i),i}function declaredEmissionsOf(e){return[...Object.keys(e?.Signals??{}),...Object.keys(e?.Properties??{}).map(e=>`notify::${e}`)]}function realizeChain(e){if(!h.has(e)){h.add(e);for(let t of declarationsOf(e))realize(t)}}function realize(t){if(t.realized||(t.realized=!0,t.meta===void 0))return;let n=s(e);if(n?.supportsForeignParentClasses===!0){registerRouteD(t,n.registerForeignClass.bind(n));return}installPureJsProperties(t)}function registerRouteD(e,t){let{meta:n,prototype:r,routers:i}=e;if(i!==void 0&&(delete r.connect,delete r.disconnect,delete r.emit,delete r.notify),t(e.klass,n),wrapRouteDAccessors(e),i!==void 0){if(e.giConnect=r.connect,e.giDisconnect=r.disconnect,e.giEmit=r.emit,e.giConnect===void 0||e.giDisconnect===void 0||e.giEmit===void 0)throw Error(`Registering '${n.GTypeName}' over its NativeScript base installed no connect/disconnect/emit, so the widget would answer neither GObject nor this port. ADR 0105 refuses a silent fallback here: the subset is reachable only by calling usePureJsGObjectEngine() from '@gjsify/adwaita-core' before the port loads.`);for(let[e,t]of Object.entries(i))Object.defineProperty(r,e,{configurable:!0,writable:!0,enumerable:!1,value:t});refuseDeclaredNotifyPayload(r,r.notify)}e.routeD=!0}function refuseDeclaredNotifyPayload(e,t){let n=function notify(e,...n){if(typeof e==`object`&&e){let{eventName:t}=e;typeof t==`string`&&refuseDeclaredEvent(this,t,`notify`)}return t.call(this,e,...n)};g.add(n),Object.defineProperty(e,"notify",{configurable:!0,writable:!0,enumerable:!1,value:n})}function wrapRouteDAccessors(e){let{meta:t,prototype:n}=e;for(let[e,r]of Object.entries(t.Properties??{}))if(!(r.kind===`string`&&r.normalize===void 0))for(let i of spellingsOf(e)){let a=Object.getOwnPropertyDescriptor(n,i);if(a?.set===void 0)throw Error(`Registering '${t.GTypeName}' installed no setter for '${i}', so a string from XML would reach the GObject uncoerced. The host chain probably owns that name (see the class's \$foreignSkipped); rename the property.`);let o=a.set;Object.defineProperty(n,i,{...a,set(t){o.call(this,coerceDeclared(e,r,t,this))}})}}function installPureJsProperties(e){let{meta:t,prototype:n}=e;for(let[e,r]of Object.entries(t.Properties??{})){let t=defaultValueOf(r);for(let i of spellingsOf(e))i in n||Object.defineProperty(n,i,{configurable:!0,enumerable:!1,get(){let n=valuesOf(this);return n.has(e)||n.set(e,t),n.get(e)},set(t){let n=coerceDeclared(e,r,t,this),i=valuesOf(this);i.has(e)&&i.get(e)===n||(i.set(e,n),emitDeclared(this,`notify::${e}`,[]))}})}installPureNotify(e)}function installPureNotify(e){let{prototype:t}=e,n=t.notify;if(g.has(n))return;let r=function notify(e,...t){if(typeof e!=`string`){if(typeof e==`object`&&e){let{eventName:t}=e;typeof t==`string`&&refuseDeclaredEvent(this,t,`notify`)}return n.call(this,e,...t)}let{canonicalOf:r}=resolvedFor(this.constructor),i=r.get(e);if(i===void 0)throw TypeError(`${this.constructor.name} has no property '${e}' to notify. The declared ones are ${[...r.keys()].join(`, `)||`(none)`}; a NativeScript event is notified with its payload object, not with a name.`);emitDeclared(this,`notify::${i}`,[])};g.add(r),Object.defineProperty(t,"notify",{configurable:!0,writable:!0,enumerable:!1,value:r})}function withSignals(e,a){class WithSignals extends o(e){static emittedSignals=[...i,...declaredEmissionsOf(a)];constructor(...e){super(...e),realizeChain(new.target)}addEventListener(e,t,n,r){refuseDeclaredEvent(this,e,`addEventListener`),super.addEventListener(e,t,n,r)}removeEventListener(e,t,n){refuseDeclaredEvent(this,e,`removeEventListener`),super.removeEventListener(e,t,n)}connect(e,t){let n=resolvedFor(this.constructor),r=giKeyOf(n,e);if(n.routeD&&r!==null){let i=r.startsWith(`notify::`),a=n.giConnect.call(this,r,(n,...r)=>{let a=n;return t(n,i?{eventName:e,object:a}:{eventName:e,object:a,args:r})}),o=d.get(this);return o===void 0&&d.set(this,o=new Set),o.add(a),u+a}if(r!==null)return declaredConnect(this,r,e,t);let listener=e=>{let n=e.accumulator;if(n===void 0){t(this,e);return}n.stopped||n.collect(t(this,e))};return pureConnect(this,e,listener)}disconnect(e){if(e>=u){let t=e-u;if(d.get(this)?.delete(t)!==!0)throw unknownHandler(this,e);resolvedFor(this.constructor).giDisconnect.call(this,t);return}declaredDisconnect(this,e)||pureDisconnect(this,e)}emit(e,...t){let n=resolvedFor(this.constructor),r=giKeyOf(n,e);if(r!==null){n.routeD?n.giEmit.call(this,r,...t):emitDeclared(this,r,t);return}pureEmit(this,e,t)}get_property(e){return n(this,t(e))}set_property(e,n){r(this,t(e),n)}}return declare(WithSignals,a,{connect:WithSignals.prototype.connect,disconnect:WithSignals.prototype.disconnect,emit:WithSignals.prototype.emit}),WithSignals}function withProperties(e,t){class WithProperties extends e{static emittedSignals=declaredEmissionsOf(t)}return declare(WithProperties,t,void 0),WithProperties}function valuesOf(e){let t=f.get(e);return t===void 0&&f.set(e,t=new Map),t}function defaultValueOf(e){return e.default===void 0?e.kind===`string`?``:e.kind===`boolean`?!1:0:e.default}export{emittedSignalsOf,readDeclaredValue,withProperties,withSignals};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { assertNativeScript, isNativeScript, isAndroid, isIOS } from '@gjsify/native-platform';
|
|
2
|
-
export { NOTIFY_ACTIVE, NOTIFY_TEXT, ENTRY_ACTIVATE, NOTIFY_ENTRY_TEXT, ComboState, NOTIFY_SELECTED, NOTIFY_DROP_DOWN_SELECTED, SpinState, NOTIFY_VALUE, AdwSliderRow, NOTIFY_SLIDER_VALUE, ExpanderState, NOTIFY_EXPANDED, AdwImageButton, DEFAULT_ICON_BUTTON_ICON_SIZE, MENU_ITEM_ACTIVATED, DEFAULT_GTK_IMAGE_SIZE, DEFAULT_BOX_SPACING, GTK_BUTTON_CLICKED, GTK_BUTTON_LABEL_CLASS, buttonSlotAfterWrite, buttonSlotDetaches, boxChildTrack, boxTrackPlan, boxSpacingChanges, normalizeBoxSpacing, NOTIFY_REVEAL_CHILD, ADW_DIALOG_CLOSED, ADW_DIALOG_CLOSE_ATTEMPT, LIST_BOX_ROW_ACTIVATED, LIST_BOX_ROW_SELECTED, NOTIFY_HEXPAND, NOTIFY_VEXPAND, withGtkWidgetLayout, NOTIFY_STACK_VISIBLE_CHILD, NOTIFY_STACK_VISIBLE_CHILD_NAME, DRAWING_AREA_REFUSAL, GTK_CHECK_BUTTON_TOGGLED, GTK_CHECK_BUTTON_ACTIVATE, GTK_CHECK_BUTTON_CHECKED_CLASS, GTK_CHECK_BUTTON_INCONSISTENT_CLASS, NOTIFY_CHECK_ACTIVE, GTK_WRAP_MODES, NOTIFY_TEXT_VIEW_TEXT, GTK_TOGGLE_BUTTON_CHECKED_CLASS, GTK_TOGGLE_BUTTON_TOGGLED, NOTIFY_TOGGLE_ACTIVE, labelDisplayText, labelMarkupIsUnparseable, BUTTON_CLICKED, AVATAR_DEFAULT_ICON, DEFAULT_AVATAR_SIZE, avatarInitials, DEFAULT_CLAMP_MAX_SIZE, padForSystemInsets, padSheetForSystemInsets, bottomSheetPanel, AdwDataGrid, ROW_ACTIVATED, dataGridCellClass, dataGridItemSpec, dataGridRowClass, dataGridShapeKey, dataGridTracksKey, parseDataGridWidth, DATA_GRID_HEADER_CELL_CLASS, DATA_GRID_HEADER_ROW_CLASS, DATA_GRID_SECTION_CELL_CLASS, DEFAULT_SPINNER_SIZE, ACTIVATED, CLICKED, MENU_TAPPED, ToggleGroupState, NOTIFY_TOGGLE_SELECTED, applyAdwaitaNsAccent, clearAdwaitaNsAccent, ADWAITA_NS_ACCENT_RULES, adwaitaNsAccentColor, adwaitaNsAccentCss, SHORTCUT_LABEL_CAP_TEXT_CLASS, SHORTCUT_LABEL_CLASS, SHORTCUT_LABEL_DIMMED_CLASS, SHORTCUT_LABEL_DISABLED_CLASS, SHORTCUT_LABEL_KEYCAP_CLASS, SHORTCUT_LABEL_KEYS_CLASS, SHORTCUT_LABEL_SIDE_CLASS, SHORTCUT_LABEL_SPACED_CLASS, shortcutLabelDirection, shortcutLabelPlatform, shortcutLabelRenderPlan, NOTIFY_VISIBLE_CHILD, AdwViewSwitcherBase, NOTIFY_VIEW_SELECTED, DEFAULT_CAROUSEL_PAGE_WIDTH, NOTIFY_POSITION, NOTIFY_VISIBLE_PAGE, AdwSplitViewBase, NOTIFY_SHOW_SIDEBAR, NsNavigationSplitViewState, NsOverlaySplitViewState, splitViewColumns, NOTIFY_SIDEBAR_SELECTED, NOTIFY_OPEN, AdwToast, AdwToastQueue, DEFAULT_TOAST_TIMEOUT, AdwAlertResponses, ABOUT_CLOSED, PREFERENCES_CLOSED, applyConstructProps, nsAlignment, GTK_ALIGN, DEFAULT_ICON_PIXEL_SIZE, GTK_ICON_SIZE_NICKS, GTK_ICON_SIZE_PIXELS, type GtkIconSizeNick, isGtkIconSizeNick, PIXEL_SIZE_UNSET, activateWidgetAction, findActionGroup, insertActionGroup, attachRowPressFeedback, ICON_FALLBACK_NAME, compiledIconNames, iconValueKind, isIconAvailable, resolveIconSource, renderSymbolicIcon, extractIconPaths, extractPathData, ADWAITA_ICON_GRID, DEFAULT_ICON_COLOR, DEFAULT_ICON_COLOR_DARK, adwaitaColorScheme, isThemeIconColor, onAdwaitaColorSchemeChanged, setAdwaitaColorScheme, themeIconColor, toggleAdwaitaColorScheme, AdwBreakpoint, addBreakpoints, evaluateBreakpointCondition, observeViewSize, observeWindowSize, parseBreakpointCondition, registerAdwaitaElements, } from './widgets/index.js';
|
|
3
|
-
export type { BoxOrientation, ButtonSlot, ButtonSlotWrite,
|
|
2
|
+
export { NOTIFY_ACTIVE, NOTIFY_TEXT, NOTIFY_TEXT_LENGTH, NOTIFY_MAX_LENGTH, NOTIFY_EDITABLE, NOTIFY_SHOW_APPLY_BUTTON, NOTIFY_ACTIVATES_DEFAULT, SIGNAL_APPLY, SIGNAL_ENTRY_ACTIVATED, ENTRY_ACTIVATE, NOTIFY_ENTRY_TEXT, ComboState, NOTIFY_SELECTED, NOTIFY_DROP_DOWN_SELECTED, SpinState, NOTIFY_VALUE, AdwSliderRow, NOTIFY_SLIDER_VALUE, ExpanderState, NOTIFY_EXPANDED, AdwImageButton, DEFAULT_ICON_BUTTON_ICON_SIZE, MENU_ITEM_ACTIVATED, DEFAULT_GTK_IMAGE_SIZE, DEFAULT_BOX_SPACING, GTK_BUTTON_CLICKED, GTK_BUTTON_LABEL_CLASS, buttonSlotAfterWrite, buttonSlotDetaches, boxChildTrack, boxTrackPlan, boxSpacingChanges, normalizeBoxSpacing, NOTIFY_REVEAL_CHILD, ADW_DIALOG_CLOSED, ADW_DIALOG_CLOSE_ATTEMPT, LIST_BOX_ROW_ACTIVATED, LIST_BOX_ROW_SELECTED, NOTIFY_HEXPAND, NOTIFY_VEXPAND, withGtkWidgetLayout, NOTIFY_STACK_VISIBLE_CHILD, NOTIFY_STACK_VISIBLE_CHILD_NAME, DRAWING_AREA_REFUSAL, GTK_CHECK_BUTTON_TOGGLED, GTK_CHECK_BUTTON_ACTIVATE, GTK_CHECK_BUTTON_CHECKED_CLASS, GTK_CHECK_BUTTON_INCONSISTENT_CLASS, NOTIFY_CHECK_ACTIVE, GTK_WRAP_MODES, NOTIFY_TEXT_VIEW_TEXT, GTK_TOGGLE_BUTTON_CHECKED_CLASS, GTK_TOGGLE_BUTTON_TOGGLED, NOTIFY_TOGGLE_ACTIVE, labelDisplayText, labelMarkupIsUnparseable, BUTTON_CLICKED, AVATAR_DEFAULT_ICON, DEFAULT_AVATAR_SIZE, avatarInitials, DEFAULT_CLAMP_MAX_SIZE, padForSystemInsets, padSheetForSystemInsets, bottomSheetPanel, AdwDataGrid, ROW_ACTIVATED, dataGridCellClass, dataGridItemSpec, dataGridRowClass, dataGridShapeKey, dataGridTracksKey, parseDataGridWidth, DATA_GRID_HEADER_CELL_CLASS, DATA_GRID_HEADER_ROW_CLASS, DATA_GRID_SECTION_CELL_CLASS, DEFAULT_SPINNER_SIZE, ACTIVATED, CLICKED, MENU_TAPPED, ToggleGroupState, NOTIFY_TOGGLE_SELECTED, applyAdwaitaNsAccent, clearAdwaitaNsAccent, ADWAITA_NS_ACCENT_RULES, adwaitaNsAccentColor, adwaitaNsAccentCss, SHORTCUT_LABEL_CAP_TEXT_CLASS, SHORTCUT_LABEL_CLASS, SHORTCUT_LABEL_DIMMED_CLASS, SHORTCUT_LABEL_DISABLED_CLASS, SHORTCUT_LABEL_KEYCAP_CLASS, SHORTCUT_LABEL_KEYS_CLASS, SHORTCUT_LABEL_SIDE_CLASS, SHORTCUT_LABEL_SPACED_CLASS, shortcutLabelDirection, shortcutLabelPlatform, shortcutLabelRenderPlan, NOTIFY_VISIBLE_CHILD, AdwViewSwitcherBase, NOTIFY_VIEW_SELECTED, DEFAULT_CAROUSEL_PAGE_WIDTH, NOTIFY_POSITION, NOTIFY_VISIBLE_PAGE, AdwSplitViewBase, NOTIFY_SHOW_SIDEBAR, NsNavigationSplitViewState, NsOverlaySplitViewState, splitViewColumns, NOTIFY_SIDEBAR_SELECTED, NOTIFY_OPEN, AdwToast, AdwToastQueue, DEFAULT_TOAST_TIMEOUT, AdwAlertResponses, ABOUT_CLOSED, PREFERENCES_CLOSED, applyConstructProps, nsAlignment, GTK_ALIGN, DEFAULT_ICON_PIXEL_SIZE, GTK_ICON_SIZE_NICKS, GTK_ICON_SIZE_PIXELS, type GtkIconSizeNick, isGtkIconSizeNick, PIXEL_SIZE_UNSET, activateWidgetAction, findActionGroup, insertActionGroup, attachRowPressFeedback, ICON_FALLBACK_NAME, compiledIconNames, iconValueKind, isIconAvailable, resolveIconSource, renderSymbolicIcon, extractIconPaths, extractPathData, ADWAITA_ICON_GRID, DEFAULT_ICON_COLOR, DEFAULT_ICON_COLOR_DARK, adwaitaColorScheme, isThemeIconColor, onAdwaitaColorSchemeChanged, setAdwaitaColorScheme, themeIconColor, toggleAdwaitaColorScheme, AdwBreakpoint, addBreakpoints, evaluateBreakpointCondition, observeViewSize, observeWindowSize, parseBreakpointCondition, registerAdwaitaElements, } from './widgets/index.js';
|
|
3
|
+
export type { BoxOrientation, ButtonSlot, ButtonSlotWrite, NotifyEntryTextEventData, AdwComboOption, ComboStateChange, ComboStateListener, NotifySelectedEventData, NotifyDropDownSelectedEventData, NotifyValueEventData, SpinStateChange, SpinStateListener, NotifySliderValueEventData, NotifyExpandedEventData, ExpanderStateListener, MenuItemActivatedEventData, MenuTappedEventData, RowActivatedEventData, DataGridItemSpec, NotifyToggleSelectedEventData, ToggleGroupStateChange, ToggleGroupStateListener, AccentRole, AccentRule, ShortcutLabelRenderPlan, ShortcutLabelViewSpec, AdwViewStackPageInfo, NotifyVisibleChildEventData, AdwViewPage, NotifyViewSelectedEventData, NotifyPositionEventData, NotifyVisiblePageEventData, NotifyShowSidebarEventData, NsShowSidebarNotification, NsSplitViewHost, NsSplitViewState, NotifySidebarSelectedEventData, NotifyOpenEventData, AdwToastOptions, AdwToastQueueHandlers, AdwToastQueueOptions, ToastScheduler, ToastTimerHandle, AdwAlertResponse, AdwResponseAppearance, AdwResponseOptions, OrderedConfirmResponses, ConstructProps, SystemInsetEdges, IconValueKind, SymbolicIconOptions, IconPath, AdwColorScheme, AdwBreakpointHandlers, BreakpointBound, BreakpointConditionGroup, BreakpointConditionLeaf, BreakpointConditionNode, BreakpointDimension, BreakpointSize, } from './widgets/index.js';
|
|
4
4
|
export type { GtkWidgetLayout, GtkWidgetLayoutMembers } from './widgets/widget-layout.js';
|
|
5
5
|
export * as Adw from './namespace/adw.js';
|
|
6
6
|
export * as Gtk from './namespace/gtk.js';
|
|
@@ -1,44 +1,78 @@
|
|
|
1
|
-
import { Label, StackLayout, TextField, type
|
|
2
|
-
import {
|
|
1
|
+
import { Label, StackLayout, TextField, type View } from '@nativescript/core';
|
|
2
|
+
import { type EntryRowRenderState } from '@gjsify/adwaita-core';
|
|
3
3
|
import { AdwActionRow } from './adw-action-row.js';
|
|
4
4
|
import { GtkImage } from './gtk-image.js';
|
|
5
5
|
import { AdwImageButton } from './adw-image-button.js';
|
|
6
6
|
import { type ConstructProps } from './construct-props.js';
|
|
7
|
-
export { EntryRowState } from '@gjsify/adwaita-core';
|
|
8
7
|
export type { EntryRowRenderState, EntryRowActivation } from '@gjsify/adwaita-core';
|
|
9
8
|
/** Event name emitted when {@link AdwEntryRow.text} changes. Mirrors GObject `notify::text`. */
|
|
10
9
|
export declare const NOTIFY_TEXT = "notify::text";
|
|
11
10
|
/** Event name emitted when the character count changes. */
|
|
12
11
|
export declare const NOTIFY_TEXT_LENGTH = "notify::text-length";
|
|
12
|
+
/** Event name emitted when {@link AdwEntryRow.maxLength} changes. */
|
|
13
|
+
export declare const NOTIFY_MAX_LENGTH = "notify::max-length";
|
|
14
|
+
/** Event name emitted when {@link AdwEntryRow.editable} changes. */
|
|
15
|
+
export declare const NOTIFY_EDITABLE = "notify::editable";
|
|
16
|
+
/** Event name emitted when {@link AdwEntryRow.showApplyButton} changes. */
|
|
17
|
+
export declare const NOTIFY_SHOW_APPLY_BUTTON = "notify::show-apply-button";
|
|
18
|
+
/** Event name emitted when {@link AdwEntryRow.activatesDefault} changes. */
|
|
19
|
+
export declare const NOTIFY_ACTIVATES_DEFAULT = "notify::activates-default";
|
|
13
20
|
/** `AdwEntryRow::apply` — the apply button, or the return key while it shows. */
|
|
14
21
|
export declare const SIGNAL_APPLY = "apply";
|
|
15
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* `AdwEntryRow::entry-activated` — the return key when there is nothing to apply.
|
|
24
|
+
*
|
|
25
|
+
* No parameters, as upstream declares it. The C activates the default widget itself before
|
|
26
|
+
* emitting and NativeScript has no default-widget concept, so that ordering is the host's
|
|
27
|
+
* here — and what it needs to know is the row's own `activates-default`, which a handler
|
|
28
|
+
* reads off the emitter: `(self) => self.activatesDefault`.
|
|
29
|
+
*/
|
|
16
30
|
export declare const SIGNAL_ENTRY_ACTIVATED = "entry-activated";
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
* Whether the host must activate its default action FIRST — C calls
|
|
30
|
-
* `gtk_widget_activate_default` before emitting, and NS has no default-widget
|
|
31
|
-
* concept, so the ordering becomes the host's.
|
|
32
|
-
*/
|
|
33
|
-
activateDefault: boolean;
|
|
34
|
-
}
|
|
35
|
-
export declare class AdwEntryRow extends AdwActionRow {
|
|
31
|
+
declare const AdwEntryRow_base: ((abstract new (...args: any[]) => {
|
|
32
|
+
_emit(eventName: string): void;
|
|
33
|
+
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
34
|
+
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
35
|
+
notify<T extends import("@nativescript/core").EventData>(data: T): void;
|
|
36
|
+
notifyPropertyChange(name: string, value: unknown, oldValue?: unknown): void;
|
|
37
|
+
set(name: string, value: unknown): void;
|
|
38
|
+
get(name: string): unknown;
|
|
39
|
+
}) & {
|
|
40
|
+
readonly emittedSignals: readonly string[];
|
|
41
|
+
}) & typeof AdwActionRow;
|
|
42
|
+
export declare class AdwEntryRow extends AdwEntryRow_base {
|
|
36
43
|
static readonly GTypeName: string;
|
|
37
44
|
/** `AdwEntryRow` derives from `AdwPreferencesRow` in C, so the preferences search
|
|
38
45
|
* must NOT read the text typed into it. */
|
|
39
46
|
readonly isActionRow: boolean;
|
|
40
|
-
/** The
|
|
41
|
-
|
|
47
|
+
/** The editable text, truncated to {@link maxLength} by the property's normalizer. */
|
|
48
|
+
text: string;
|
|
49
|
+
/**
|
|
50
|
+
* `Adw.EntryRow:text-length` — the number of CHARACTERS, not UTF-16 units.
|
|
51
|
+
*
|
|
52
|
+
* READ-ONLY, as upstream declares it: a write is normalized back to the count derived from
|
|
53
|
+
* this row's own {@link text}, so it resolves to the value already held and changes nothing
|
|
54
|
+
* (module header). Not `readonly` in TypeScript, because the seam installs one accessor pair
|
|
55
|
+
* per declared property and the row itself is what writes the derived value.
|
|
56
|
+
*/
|
|
57
|
+
textLength: number;
|
|
58
|
+
/** `Adw.EntryRow:max-length` — maximum number of characters, `0` = unlimited. */
|
|
59
|
+
maxLength: number;
|
|
60
|
+
/** Whether the entry accepts edits (`GtkEditable:editable`). */
|
|
61
|
+
editable: boolean;
|
|
62
|
+
/** `Adw.EntryRow:show-apply-button` — typing reveals an apply button. */
|
|
63
|
+
showApplyButton: boolean;
|
|
64
|
+
/** `Adw.EntryRow:activates-default` — read by the host on `entry-activated`. */
|
|
65
|
+
activatesDefault: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* `priv->editing` — whether the embedded entry has focus. A private field and NOT a declared
|
|
68
|
+
* property, because it is not one upstream either: `text_state_flags_changed_cb` keeps it,
|
|
69
|
+
* nothing outside the widget may set it, and the focus events below are its only writers.
|
|
70
|
+
*/
|
|
71
|
+
private _editing;
|
|
72
|
+
/** The private `adw_entry_row_set_show_indicator` hook's state — see {@link setShowIndicator}. */
|
|
73
|
+
private _showIndicator;
|
|
74
|
+
/** `priv->text_changed` — the pending-apply latch. Private upstream too. */
|
|
75
|
+
private _textChanged;
|
|
42
76
|
/** The TextField stacked below the title in column 0. */
|
|
43
77
|
protected readonly _field: TextField;
|
|
44
78
|
/** The large placeholder title (`empty_title` in adw-entry-row.ui). */
|
|
@@ -52,28 +86,11 @@ export declare class AdwEntryRow extends AdwActionRow {
|
|
|
52
86
|
protected readonly _applyButton: AdwImageButton;
|
|
53
87
|
/** The suffix installed through the inherited single-slot {@link add_suffix}. */
|
|
54
88
|
private _slotSuffix;
|
|
55
|
-
private _lastText;
|
|
56
|
-
private _lastLength;
|
|
57
89
|
constructor(props?: ConstructProps<AdwEntryRow>);
|
|
58
|
-
/**
|
|
59
|
-
get text(): string;
|
|
60
|
-
set text(value: string);
|
|
61
|
-
/** `Adw.EntryRow:text-length` — the number of CHARACTERS, not UTF-16 units. */
|
|
62
|
-
get textLength(): number;
|
|
63
|
-
/** `Adw.EntryRow:max-length` — maximum number of characters, `0` = unlimited. */
|
|
64
|
-
get maxLength(): number;
|
|
65
|
-
set maxLength(raw: number | string);
|
|
66
|
-
/** Whether the entry accepts edits (`GtkEditable:editable`). */
|
|
67
|
-
get editable(): boolean;
|
|
68
|
-
set editable(raw: boolean | string);
|
|
69
|
-
/** `Adw.EntryRow:show-apply-button` — typing reveals an apply button. */
|
|
70
|
-
get showApplyButton(): boolean;
|
|
71
|
-
set showApplyButton(raw: boolean | string);
|
|
72
|
-
/** `Adw.EntryRow:activates-default` — reported on `entry-activated`, acted on by the host. */
|
|
73
|
-
get activatesDefault(): boolean;
|
|
74
|
-
set activatesDefault(raw: boolean | string);
|
|
75
|
-
/** Whether the field currently has focus. */
|
|
90
|
+
/** Whether the field currently has focus — `priv->editing`, not a property upstream. */
|
|
76
91
|
get editing(): boolean;
|
|
92
|
+
/** The pending-apply latch — `true` exactly while the apply button shows. */
|
|
93
|
+
get textChanged(): boolean;
|
|
77
94
|
/**
|
|
78
95
|
* Append a suffix — `adw_entry_row_add_suffix` appends into a BOX, so suffixes
|
|
79
96
|
* COEXIST here as upstream, unlike the one-slot rule `AdwActionRow.add_suffix` states.
|
|
@@ -95,13 +112,33 @@ export declare class AdwEntryRow extends AdwActionRow {
|
|
|
95
112
|
setShowIndicator(show: boolean): void;
|
|
96
113
|
/** `adw_entry_row_set_indicator_icon_name`, as an Adwaita symbolic SVG. */
|
|
97
114
|
setIndicatorIcon(svg: string): void;
|
|
98
|
-
/** Apply the pending edit — the apply button tap. */
|
|
115
|
+
/** Apply the pending edit — the apply button tap (`apply_button_clicked_cb`). */
|
|
99
116
|
apply(): void;
|
|
100
|
-
/** `text_activated_cb` — exactly one of the two signals. */
|
|
117
|
+
/** `text_activated_cb` — exactly one of the two signals, never both. */
|
|
101
118
|
private _activate;
|
|
119
|
+
/**
|
|
120
|
+
* Re-run `update_empty` over the row's current inputs and paint the result — the one place
|
|
121
|
+
* the derivation is read, standing in for the subscription the state object used to push.
|
|
122
|
+
*/
|
|
123
|
+
protected _update(): void;
|
|
102
124
|
/** Paint one render snapshot through the shared (spec-driven) painter. */
|
|
103
125
|
protected _render(state: EntryRowRenderState): void;
|
|
104
126
|
/** Base class list this row paints its state classes onto. */
|
|
105
127
|
protected get _baseClassName(): string;
|
|
106
|
-
|
|
128
|
+
/** Feed the focus state in — `text_state_flags_changed_cb`, guarded as the C's flag is. */
|
|
129
|
+
private _setEditing;
|
|
130
|
+
/**
|
|
131
|
+
* `text_changed_cb` (C:166-174) plus the derived count.
|
|
132
|
+
*
|
|
133
|
+
* `text-length` SETTLES INSIDE THIS EMISSION, so a handler of `notify::text` reads the new
|
|
134
|
+
* count off the emitter — and a handler of both sees `notify::text-length` first, because a
|
|
135
|
+
* notify emitted from within another one nests. That is what deriving a property from a
|
|
136
|
+
* property costs in GObject, with no `g_object_freeze_notify` in this seam to reorder it;
|
|
137
|
+
* the old payload-carrying events had the opposite order and no emitter to read.
|
|
138
|
+
*/
|
|
139
|
+
private _onTextChanged;
|
|
140
|
+
/** Over-long contents are truncated the moment the limit drops — `adw_entry_row_set_max_length`. */
|
|
141
|
+
private _onMaxLengthChanged;
|
|
142
|
+
/** Turning the apply button OFF retracts a pending apply; turning it on derives nothing (C:989-992). */
|
|
143
|
+
private _onShowApplyButtonChanged;
|
|
107
144
|
}
|
|
@@ -13,7 +13,12 @@ export interface NotifyRevealedEventData extends EventData {
|
|
|
13
13
|
}
|
|
14
14
|
export declare class AdwPasswordEntryRow extends AdwEntryRow {
|
|
15
15
|
static readonly GTypeName: string;
|
|
16
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* The headless peek + caps-lock derivation, composing the parent ROW — since the entry row
|
|
18
|
+
* became a real GObject (ADR 0105 § 2) there is no `EntryRowState` beside it to hand over,
|
|
19
|
+
* and the composition never wanted one: all it reaches the parent through is the private
|
|
20
|
+
* `setShowIndicator` hook, which the row itself answers.
|
|
21
|
+
*/
|
|
17
22
|
private readonly _password;
|
|
18
23
|
/** The trailing peek (reveal/conceal) toggle button. */
|
|
19
24
|
protected readonly _peekButton: AdwImageButton;
|
|
@@ -2,8 +2,7 @@ export { AdwPreferencesPage } from './adw-preferences-page.js';
|
|
|
2
2
|
export { AdwPreferencesGroup } from './adw-preferences-group.js';
|
|
3
3
|
export { AdwActionRow } from './adw-action-row.js';
|
|
4
4
|
export { AdwSwitchRow, NOTIFY_ACTIVE } from './adw-switch-row.js';
|
|
5
|
-
export { AdwEntryRow, NOTIFY_TEXT } from './adw-entry-row.js';
|
|
6
|
-
export type { NotifyTextEventData } from './adw-entry-row.js';
|
|
5
|
+
export { AdwEntryRow, NOTIFY_TEXT, NOTIFY_TEXT_LENGTH, NOTIFY_MAX_LENGTH, NOTIFY_EDITABLE, NOTIFY_SHOW_APPLY_BUTTON, NOTIFY_ACTIVATES_DEFAULT, SIGNAL_APPLY, SIGNAL_ENTRY_ACTIVATED, } from './adw-entry-row.js';
|
|
7
6
|
export { AdwPasswordEntryRow } from './adw-password-entry-row.js';
|
|
8
7
|
export { GtkEntry, ACTIVATE as ENTRY_ACTIVATE, NOTIFY_TEXT as NOTIFY_ENTRY_TEXT } from './gtk-entry.js';
|
|
9
8
|
export type { NotifyEntryTextEventData } from './gtk-entry.js';
|
|
@@ -9,13 +9,25 @@ export interface DeclaredProperty extends ForeignProperty {
|
|
|
9
9
|
* Replaces the seam's own coercion for EVERY write, typed or not — a floor, a clamp, a lenient
|
|
10
10
|
* parse. Runs identically on both legs, ahead of the store and of the equal-write check, so a
|
|
11
11
|
* write the normalizer maps onto the held value is not a change.
|
|
12
|
+
*
|
|
13
|
+
* `self` is the INSTANCE being written, so a normalizer may read the row's other properties:
|
|
14
|
+
* `AdwEntryRow` clamps `text` to that row's own `max-length`, and derives `text-length` from
|
|
15
|
+
* its own `text` — which is also how a property that is read-only upstream is held read-only
|
|
16
|
+
* here, since a write that resolves to the value already held is not a change.
|
|
12
17
|
*/
|
|
13
|
-
readonly normalize?: (value: unknown) => unknown;
|
|
18
|
+
readonly normalize?: (value: unknown, self: object) => unknown;
|
|
14
19
|
}
|
|
15
20
|
/** {@link ForeignClassMeta} whose properties may carry a {@link DeclaredProperty.normalize}. */
|
|
16
21
|
export interface DeclaredClassMeta extends Omit<ForeignClassMeta, 'Properties'> {
|
|
17
22
|
readonly Properties?: Readonly<Record<string, DeclaredProperty>>;
|
|
18
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* {@link coerceDeclared}'s string reading on its own, so a {@link DeclaredProperty.normalize} that
|
|
26
|
+
* only wants to ADD a rule — a clamp, a floor — does not have to restate it. Without it every
|
|
27
|
+
* normalizer re-decides what `<AdwEntryRow maxLength="12">` means, and XML would answer one way
|
|
28
|
+
* for a property that has a normalizer and another way for one that does not.
|
|
29
|
+
*/
|
|
30
|
+
export declare function readDeclaredValue(name: string, kind: ForeignProperty['kind'], value: unknown): unknown;
|
|
19
31
|
/**
|
|
20
32
|
* `notify` on a class that DECLARES properties — GJS's `notify('<prop>')` beside NativeScript's
|
|
21
33
|
* `notify({ eventName })`, which is how both legs install it (node-gi routes on the argument's
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/adwaita-nativescript",
|
|
3
|
-
"version": "0.64.3-next.
|
|
3
|
+
"version": "0.64.3-next.263",
|
|
4
4
|
"description": "Native Adwaita widgets for the NativeScript runtime — real NativeScript components (StackLayout/GridLayout/Switch/Label) styled like Libadwaita, not a webview",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "lib/esm/index.js",
|
|
@@ -73,15 +73,15 @@
|
|
|
73
73
|
"design-system"
|
|
74
74
|
],
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@gjsify/adwaita-core": "0.64.3-next.
|
|
77
|
-
"@gjsify/adwaita-fonts": "0.64.3-next.
|
|
78
|
-
"@gjsify/adwaita-icons": "0.64.3-next.
|
|
79
|
-
"@gjsify/canvas2d-core": "0.64.3-next.
|
|
80
|
-
"@gjsify/native-platform": "0.64.3-next.
|
|
76
|
+
"@gjsify/adwaita-core": "0.64.3-next.263",
|
|
77
|
+
"@gjsify/adwaita-fonts": "0.64.3-next.263",
|
|
78
|
+
"@gjsify/adwaita-icons": "0.64.3-next.263",
|
|
79
|
+
"@gjsify/canvas2d-core": "0.64.3-next.263",
|
|
80
|
+
"@gjsify/native-platform": "0.64.3-next.263"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
83
|
"@nativescript/core": "*",
|
|
84
|
-
"@gjsify/app-settings": "0.64.3-next.
|
|
84
|
+
"@gjsify/app-settings": "0.64.3-next.263"
|
|
85
85
|
},
|
|
86
86
|
"peerDependenciesMeta": {
|
|
87
87
|
"@nativescript/core": {
|
|
@@ -92,11 +92,11 @@
|
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
|
-
"@gjsify/app-settings": "0.64.3-next.
|
|
96
|
-
"@gjsify/blueprint": "0.64.3-next.
|
|
97
|
-
"@gjsify/cli": "0.64.3-next.
|
|
98
|
-
"@gjsify/unit": "0.64.3-next.
|
|
99
|
-
"@gjsify/vite-plugin-blueprint": "0.64.3-next.
|
|
95
|
+
"@gjsify/app-settings": "0.64.3-next.263",
|
|
96
|
+
"@gjsify/blueprint": "0.64.3-next.263",
|
|
97
|
+
"@gjsify/cli": "0.64.3-next.263",
|
|
98
|
+
"@gjsify/unit": "0.64.3-next.263",
|
|
99
|
+
"@gjsify/vite-plugin-blueprint": "0.64.3-next.263",
|
|
100
100
|
"@types/node": "^25.9.2",
|
|
101
101
|
"typescript": "^6.0.3"
|
|
102
102
|
},
|
|
@@ -126,5 +126,5 @@
|
|
|
126
126
|
"url": "https://github.com/gjsify/gjsify/issues"
|
|
127
127
|
},
|
|
128
128
|
"homepage": "https://github.com/gjsify/gjsify/tree/main/packages/nativescript-bridge/adwaita#readme",
|
|
129
|
-
"gitHead": "
|
|
129
|
+
"gitHead": "0f5ca82aab25bf9df8d1e790d28483b1f90fe3a9"
|
|
130
130
|
}
|