@gjsify/adwaita-nativescript 0.64.12-next.279 → 0.64.12-next.281
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/builder/index.js +1 -1
- package/lib/esm/builder/param-values.js +1 -1
- package/lib/esm/gobject-siblings.d.blp.js +0 -0
- package/lib/esm/index.js +1 -1
- package/lib/esm/namespace/adw.js +1 -1
- package/lib/esm/namespace/gdk.js +1 -1
- package/lib/esm/namespace/gio.js +1 -1
- package/lib/esm/namespace/graphene.js +1 -0
- package/lib/esm/namespace/gtk.js +1 -1
- package/lib/esm/widgets/adw-alert-dialog.js +1 -1
- package/lib/esm/widgets/adw-button-content.js +1 -1
- package/lib/esm/widgets/adw-button-row.js +1 -1
- package/lib/esm/widgets/adw-combo-row.js +1 -1
- package/lib/esm/widgets/adw-expander-row.js +1 -1
- package/lib/esm/widgets/adw-overlay-split-view.js +1 -1
- package/lib/esm/widgets/adw-split-button.js +1 -1
- package/lib/esm/widgets/adw-view-stack.js +1 -1
- package/lib/esm/widgets/gtk-application-window.js +1 -0
- package/lib/esm/widgets/gtk-button.js +1 -1
- package/lib/esm/widgets/gtk-check-button.js +1 -1
- package/lib/esm/widgets/gtk-drop-down.js +1 -1
- package/lib/esm/widgets/gtk-list-box.js +1 -1
- package/lib/esm/widgets/gtk-menu-button.js +1 -1
- package/lib/esm/widgets/gtk-scrolled-window.js +1 -1
- package/lib/esm/widgets/gtk-stack.js +1 -1
- package/lib/esm/widgets/gtk-toggle-button.js +1 -1
- package/lib/esm/widgets/gtk-window.js +1 -1
- package/lib/esm/widgets/index.js +1 -1
- package/lib/esm/widgets/signals.js +1 -1
- package/lib/esm/widgets/split-button.js +1 -1
- package/lib/esm/widgets/style-manager-host.js +1 -1
- package/lib/esm/widgets/style-manager.js +1 -1
- package/lib/esm/widgets/system-accent.js +1 -0
- package/lib/esm/widgets/widget-layout.js +1 -1
- package/lib/types/builder/index.d.ts +5 -2
- package/lib/types/button-content-properties.spec.d.ts +1 -0
- package/lib/types/expander-row-properties.spec.d.ts +2 -0
- package/lib/types/gtk-button-clicked.spec.d.ts +1 -0
- package/lib/types/index.d.ts +3 -2
- package/lib/types/namespace/adw.d.ts +1 -1
- package/lib/types/namespace/gdk.d.ts +1 -0
- package/lib/types/namespace/gio.d.ts +1 -0
- package/lib/types/namespace/graphene.d.ts +1 -0
- package/lib/types/namespace/gtk.d.ts +2 -1
- package/lib/types/split-button-properties.spec.d.ts +1 -0
- package/lib/types/system-accent.spec.d.ts +2 -0
- package/lib/types/testing/ns-core.d.mts +9 -9
- package/lib/types/widgets/adw-about-dialog.d.ts +3 -0
- package/lib/types/widgets/adw-action-row.d.ts +3 -0
- package/lib/types/widgets/adw-alert-dialog.d.ts +3 -0
- package/lib/types/widgets/adw-application-window.d.ts +7 -0
- package/lib/types/widgets/adw-avatar.d.ts +3 -0
- package/lib/types/widgets/adw-banner.d.ts +3 -0
- package/lib/types/widgets/adw-bottom-sheet.d.ts +3 -0
- package/lib/types/widgets/adw-button-content.d.ts +24 -13
- package/lib/types/widgets/adw-carousel.d.ts +3 -0
- package/lib/types/widgets/adw-clamp.d.ts +3 -0
- package/lib/types/widgets/adw-combo-row.d.ts +1 -1
- package/lib/types/widgets/adw-data-grid.d.ts +3 -0
- package/lib/types/widgets/adw-expander-row.d.ts +93 -16
- package/lib/types/widgets/adw-header-bar.d.ts +3 -0
- package/lib/types/widgets/adw-image-button.d.ts +3 -0
- package/lib/types/widgets/adw-navigation-page.d.ts +3 -0
- package/lib/types/widgets/adw-navigation-view.d.ts +3 -0
- package/lib/types/widgets/adw-overlay-split-view.d.ts +5 -0
- package/lib/types/widgets/adw-preferences-group.d.ts +3 -0
- package/lib/types/widgets/adw-preferences-page.d.ts +3 -0
- package/lib/types/widgets/adw-shortcut-label.d.ts +3 -0
- package/lib/types/widgets/adw-sidebar.d.ts +3 -0
- package/lib/types/widgets/adw-slider-row.d.ts +3 -0
- package/lib/types/widgets/adw-spinner.d.ts +3 -0
- package/lib/types/widgets/adw-split-button.d.ts +31 -29
- package/lib/types/widgets/adw-status-page.d.ts +3 -0
- package/lib/types/widgets/adw-tab-view.d.ts +3 -0
- package/lib/types/widgets/adw-toast-overlay.d.ts +3 -0
- package/lib/types/widgets/adw-toggle-group.d.ts +3 -0
- package/lib/types/widgets/adw-toggle.d.ts +3 -0
- package/lib/types/widgets/adw-toolbar-view.d.ts +3 -0
- package/lib/types/widgets/adw-view-stack.d.ts +13 -0
- package/lib/types/widgets/adw-view-switcher-bar.d.ts +3 -0
- package/lib/types/widgets/adw-window-title.d.ts +3 -0
- package/lib/types/widgets/adw-wrap-box.d.ts +3 -0
- package/lib/types/widgets/carousel-indicator-base.d.ts +3 -0
- package/lib/types/widgets/gtk-action-bar.d.ts +3 -0
- package/lib/types/widgets/gtk-application-window.d.ts +13 -0
- package/lib/types/widgets/gtk-button.d.ts +3 -2
- package/lib/types/widgets/gtk-drop-down.d.ts +4 -1
- package/lib/types/widgets/gtk-entry.d.ts +3 -0
- package/lib/types/widgets/gtk-image.d.ts +3 -0
- package/lib/types/widgets/gtk-label.d.ts +3 -0
- package/lib/types/widgets/gtk-menu-button.d.ts +5 -0
- package/lib/types/widgets/gtk-popover-menu.d.ts +3 -0
- package/lib/types/widgets/gtk-scrolled-window.d.ts +11 -1
- package/lib/types/widgets/gtk-stack.d.ts +11 -0
- package/lib/types/widgets/gtk-text-view.d.ts +3 -0
- package/lib/types/widgets/gtk-window.d.ts +10 -2
- package/lib/types/widgets/index.d.ts +4 -4
- package/lib/types/widgets/signals.d.ts +9 -1
- package/lib/types/widgets/split-button.d.ts +1 -10
- package/lib/types/widgets/split-view-base.d.ts +3 -0
- package/lib/types/widgets/stack-page.d.ts +3 -0
- package/lib/types/widgets/style-manager.d.ts +7 -2
- package/lib/types/widgets/styled-layout-base.d.ts +3 -0
- package/lib/types/widgets/system-accent.d.ts +22 -0
- package/lib/types/widgets/view-stack-page.d.ts +3 -0
- package/lib/types/widgets/view-switcher-base.d.ts +3 -0
- package/lib/types/widgets/widget-layout.d.ts +7 -1
- package/package.json +13 -13
- package/src/testing/ns-core.mts +21 -15
- package/src/theme/adwaita.css +25 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{xmlBoolean as t,xmlNumber as n}from"./xml-values.js";import{surfaceSize as r}from"./window-state.js";import{windowHost as i}from"../window-host.js";import{
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{xmlBoolean as t,xmlNumber as n}from"./xml-values.js";import{surfaceSize as r}from"./window-state.js";import{windowHost as i}from"../window-host.js";import{AdwBottomSheet as a}from"./adw-bottom-sheet.js";import{defineWindowApplication as o}from"./application.js";import{AdwSingleChildBase as s}from"./single-child-base.js";import{CloseRequestState as c,HandledAccumulator as l,WindowMemberState as u,stepDefaultSize as d}from"@gjsify/adwaita-core";const f=`notify::is-active`,p=`notify::maximized`,m=`notify::focus-widget`,h=`close-request`;var g=class GtkWindow extends s{static GTypeName=`GtkWindow`;_title=``;_defaultWidth=0;_defaultHeight=0;_members=new u(e=>{let t=e===`is-active`?f:p;this.notify({eventName:t,object:this,value:e===`is-active`?this.isActive:this.maximized})},{maximized:!0});_closeRequest=new c;_unwatchForeground=null;_unwatchBack=null;constructor(t){super(),e(this,t)}onLoaded(){super.onLoaded();let e=i();this._unwatchForeground?.(),this._unwatchForeground=e.watchForeground(e=>this._members.reportActive(e)),this._members.reportActive(e.isForeground()),this._unwatchBack?.(),this._unwatchBack=this._isToplevel()?e.watchBack(()=>this._handleBack()):null}onUnloaded(){this._unwatchForeground?.(),this._unwatchForeground=null,this._unwatchBack?.(),this._unwatchBack=null,this._members.reportActive(!1),super.onUnloaded()}get isActive(){return this._members.active}get is_active(){return this._members.active}get maximized(){return this._members.maximized}set maximized(e){t(e,!0)?this.maximize():this.unmaximize()}is_maximized(){return this.maximized}maximize(){}unmaximize(){throw Error(`GtkWindow.unmaximize is not supported on NativeScript: the window is the whole screen and the platform has no un-maximized state to go back to.`)}present(){}get focusWidget(){return this.get_focus()}get focus_widget(){return this.get_focus()}set focus_widget(e){this.set_focus(e)}get_focus(){let e=i();return findView(this,t=>e.isFocused(t))}set_focus(e){let t=i();if(e===null){let e=this.get_focus();e!==null&&t.clearFocus(e);return}if(findView(this,t=>t===e)===null)throw Error(`GtkWindow.set_focus: the widget is not a descendant of this window.`);t.requestFocus(e)}close(){let e=i();if(this.isLoaded&&!e.canFinish)throw Error(`GtkWindow.close is not supported on this platform: iOS has no public API to close the root window. Android finishes the foreground activity.`);this._requestClose()}_requestClose(){let e=i();this._closeRequest.close({realized:this.isLoaded,hideOnClose:!1,emit:()=>{let e=new l;return this.notify({eventName:h,object:this,accumulator:e}),e.stopped},hide:()=>{},destroy:()=>e.finish()})}_handleBack(){return this._consumeBack()||closeOpenBottomSheet(this)||popInnermostNavigation(this)||this._requestClose(),!0}_consumeBack(){return!1}_isToplevel(){for(let e=this.parent;e;e=e.parent)if(e instanceof GtkWindow)return!1;return!0}connect(e,t){if(e===`notify::focus-widget`)throw Error(`GtkWindow notify::focus-widget is not supported on NativeScript: focus the user moves is not observable here. Read get_focus() when you need it.`);return super.connect(e,t)}get title(){return this._title}set title(e){this._title=e??``}get defaultWidth(){return this._defaultWidth}set defaultWidth(e){this._defaultWidth=r(n(e,NaN),e,this._defaultWidth,`defaultWidth`)}get defaultHeight(){return this._defaultHeight}set defaultHeight(e){this._defaultHeight=r(n(e,NaN),e,this._defaultHeight,`defaultHeight`)}get_default_size(){return[this._defaultWidth,this._defaultHeight]}set_default_size(e,t){let n=d(this.get_default_size(),e,t);if(n!==null){this._defaultWidth=n.width,this._defaultHeight=n.height;for(let e of n.changed){let t=e===`default-width`?n.width:n.height;this.notify({eventName:`notify::${e}`,object:this,value:t})}}}};function findView(e,t){let n=null;return e.eachChildView(e=>t(e)?(n=e,!1):(n=findView(e,t),n===null)),n}function closeOpenBottomSheet(e){let t=!1;return e.eachChildView(e=>e.visibility===`visible`?closeOpenBottomSheet(e)?(t=!0,!1):e instanceof a&&e.open&&e.canClose?(e.open=!1,t=!0,!1):!0:!0),t}const popsOnBack=e=>typeof e.popFromShortcut==`function`;function popInnermostNavigation(e){let t=!1;return e.eachChildView(e=>e.visibility===`visible`&&(popInnermostNavigation(e)||popsOnBack(e)&&e.isLoaded&&e.popFromShortcut()===`stop`)?(t=!0,!1):!0),t}o(g.prototype);export{h as CLOSE_REQUEST,g as GtkWindow,m as NOTIFY_FOCUS_WIDGET,f as NOTIFY_IS_ACTIVE,p as NOTIFY_MAXIMIZED};
|
package/lib/esm/widgets/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{AdwBreakpoint as e,addBreakpoints as t,evaluateBreakpointCondition as ee,observeViewSize as te,observeWindowSize as ne,parseBreakpointCondition as re}from"./breakpoint.js";import{GTK_ALIGN as ie}from"./gtk-align.js";import{DEFAULT_ICON_PIXEL_SIZE as ae,GTK_ICON_SIZE_NICKS as oe,GTK_ICON_SIZE_PIXELS as se,PIXEL_SIZE_UNSET as ce,isGtkIconSizeNick as le}from"./gtk-icon-size.js";import{applyConstructProps as ue,nsAlignment as de}from"./construct-props.js";import{lengthValue as fe}from"./ns-length.js";import{SimpleAction as pe,SimpleActionGroup as me,activateWidgetAction as he,findActionGroup as ge,insertActionGroup as _e}from"./actions.js";import{NOTIFY_HEXPAND as ve,NOTIFY_VEXPAND as ye,withGtkWidgetLayout as be}from"./widget-layout.js";import{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
|
+
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{CLOSE_ATTEMPT as et,NOTIFY_OPEN as tt,SHEET_CLOSE as nt}from"./bottom-sheet-state.js";import{SHEET_CONTENT_BOTTOM_GAP as rt,bottomSheetInsetPadding as it}from"./bottom-sheet-insets.js";import{attachRowPressFeedback as at}from"./row-press.js";import{AdwBottomSheet as i,bottomSheetPanel as ot}from"./adw-bottom-sheet.js";import{GtkWindow as a}from"./gtk-window.js";import{ADW_WINDOW_CLASS as st,AdwWindowBase as ct}from"./window-base.js";import{AdwApplicationWindow as o}from"./adw-application-window.js";import{avatarInitials as lt}from"./avatar-color.js";import{AVATAR_DEFAULT_ICON as ut}from"./avatar-view.js";import{AdwAvatar as s,DEFAULT_AVATAR_SIZE as dt}from"./adw-avatar.js";import{DEFAULT_CLAMP_MAX_SIZE as ft,DEFAULT_SPINNER_SIZE as pt}from"./chrome.js";import{AdwBanner as c,BUTTON_CLICKED as mt}from"./adw-banner.js";import{AdwBin as l}from"./adw-bin.js";import{AdwButtonContent as u,NOTIFY_BUTTON_CONTENT_CAN_SHRINK as ht,NOTIFY_BUTTON_CONTENT_ICON_NAME as gt,NOTIFY_BUTTON_CONTENT_LABEL as _t,NOTIFY_BUTTON_CONTENT_USE_UNDERLINE as vt}from"./adw-button-content.js";import{AdwButtonRow as d}from"./adw-button-row.js";import{CarouselScrollSync as yt,DEFAULT_CAROUSEL_PAGE_WIDTH as bt,applyMarkerClasses as xt,carouselDotClasses as St,carouselNotifyPayload as Ct,carouselPositionAtOffset as wt,carouselScrollOffset as Tt,createCarouselState as Et,indicatorMarkerClasses as Dt,normalizeCarouselPageWidth as Ot}from"./carousel-state.js";import{AdwCarousel as f,NOTIFY_N_PAGES as kt,NOTIFY_POSITION as At,PAGE_CHANGED as jt}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 Mt,NOTIFY_SELECTED as Nt}from"./adw-combo-row.js";import{ADW_DIALOG_CLASS as Pt,ADW_DIALOG_CLOSED as Ft,ADW_DIALOG_CLOSE_ATTEMPT as It,AdwDialog as _}from"./adw-dialog.js";import{AdwImageButton as v,DEFAULT_ICON_BUTTON_ICON_SIZE as Lt}from"./adw-image-button.js";import{AdwEntryRow as y,NOTIFY_ACTIVATES_DEFAULT as Rt,NOTIFY_EDITABLE as zt,NOTIFY_MAX_LENGTH as Bt,NOTIFY_SHOW_APPLY_BUTTON as Vt,NOTIFY_TEXT as Ht,NOTIFY_TEXT_LENGTH as Ut,SIGNAL_APPLY as Wt,SIGNAL_ENTRY_ACTIVATED as Gt}from"./adw-entry-row.js";import{AdwExpanderRow as b,NOTIFY_ENABLE_EXPANSION as Kt,NOTIFY_EXPANDED as qt,NOTIFY_SHOW_ENABLE_SWITCH as Jt,NS_EXPANDER_ARROW_DISABLED_OPACITY as Yt}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 Xt}from"./view-stack-page.js";import{AdwViewStack as C,NOTIFY_VISIBLE_CHILD as Zt}from"./adw-view-stack.js";import{AdwViewSwitcherBase as Qt,NOTIFY_SELECTED as $t}from"./view-switcher-base.js";import{AdwInlineViewSwitcher as w}from"./adw-inline-view-switcher.js";import{NsNavigationSplitViewState as en,NsOverlaySplitViewState as tn,splitViewColumns as nn}from"./split-view-state.js";import{AdwSplitViewBase as rn,NOTIFY_SHOW_SIDEBAR as an}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 on}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 sn}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 cn,SHORTCUT_LABEL_CLASS as ln,SHORTCUT_LABEL_DIMMED_CLASS as un,SHORTCUT_LABEL_DISABLED_CLASS as dn,SHORTCUT_LABEL_KEYCAP_CLASS as fn,SHORTCUT_LABEL_KEYS_CLASS as pn,SHORTCUT_LABEL_SIDE_CLASS as mn,SHORTCUT_LABEL_SPACED_CLASS as hn,shortcutLabelDirection as gn,shortcutLabelPlatform as _n,shortcutLabelRenderPlan as vn}from"./shortcut-label.js";import{AdwShortcutLabel as N}from"./adw-shortcut-label.js";import{AdwSidebarItem as yn,AdwSidebarSection as bn}from"../values/sidebar.js";import{AdwSidebar as P,NOTIFY_SELECTED as xn}from"./adw-sidebar.js";import{AdwSpinRow as F,NOTIFY_VALUE as Sn,SpinState as Cn}from"./adw-spin-row.js";import{AdwSpinner as I}from"./adw-spinner.js";import{GROUP_DIVIDER_API as wn,assertPopupMenuAssignable as Tn,fillPopupMenu as En,openPopupMenu as Dn,refuseMenuString as On}from"./popup-menu.js";import{showMenuPopup as kn}from"./popup-menu-view.js";import{DEFAULT_SCROLLBAR_POLICY as An,GTK_POLICY_TYPES as jn,normalizePolicy as Mn,policyScrolls as Nn,scrollOrientationFor as Pn}from"./scrolled-window-policy.js";import{AdwSplitButton as L,MENU_TAPPED as Fn}from"./adw-split-button.js";import{AdwStatusPage as R}from"./adw-status-page.js";import{AdwSwitchRow as z,NOTIFY_ACTIVE as In}from"./adw-switch-row.js";import{AdwTabPage as Ln}from"../values/tab-page.js";import{applyTabViewVisibility as Rn,createTabViewState as zn,tabBarVisibility as Bn,tabCloseVisibilities as Vn,tabLabelText as Hn,tabPageVisibilities as Un,tabTooltipText as Wn,tabViewNotifyPayload as Gn}from"./tab-view-state.js";import{AdwTabView as B,CLOSE_PAGE as Kn,NOTIFY_SELECTED_PAGE as qn,PAGES_CHANGED as Jn}from"./adw-tab-view.js";import{AdwToast as Yn,AdwToastOverlay as V,AdwToastQueue as Xn,DEFAULT_TOAST_TIMEOUT as Zn}from"./adw-toast-overlay.js";import{AdwToggle as Qn}from"./adw-toggle.js";import{AdwToggleGroup as H,NOTIFY_SELECTED as $n,ToggleGroupState as er}from"./adw-toggle-group.js";import{WINDOW_BACKGROUND as tr,configureSystemBars as nr,systemBarsConfig as rr}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{ADWAITA_NS_ACCENT_RULES as ir,adwaitaNsAccentColor as ar,adwaitaNsAccentCss as or}from"./accent-theme.js";import{applyAdwaitaNsAccent as sr,clearAdwaitaNsAccent as cr}from"./adw-accent.js";import{GtkActionBar as J}from"./gtk-action-bar.js";import{DEFAULT_BOX_SPACING as lr,boxChildTrack as ur,boxSpacingChanges as dr,boxTrackPlan as fr,normalizeBoxSpacing as pr}from"./box-layout.js";import{GtkBox as Y}from"./gtk-box.js";import{buttonSlotAfterWrite as mr,buttonSlotDetaches as hr}from"./button-slot.js";import{GTK_BUTTON_CLICKED as gr,GTK_BUTTON_LABEL_CLASS as _r,GtkButton as X}from"./gtk-button.js";import{GtkDropDown as Z,NOTIFY_SELECTED as vr}from"./gtk-drop-down.js";import{GTK_CHECK_BUTTON_ACTIVATE as yr,GTK_CHECK_BUTTON_CHECKED_CLASS as br,GTK_CHECK_BUTTON_INCONSISTENT_CLASS as xr,GTK_CHECK_BUTTON_TOGGLED as Sr,GtkCheckButton as Q,NOTIFY_CHECK_ACTIVE as Cr}from"./gtk-check-button.js";import{DRAWING_AREA_REFUSAL as wr,GtkDrawingArea as $}from"./gtk-drawing-area.js";import{ACTIVATE as Tr,GtkEntry as Er,NOTIFY_TEXT as Dr}from"./gtk-entry.js";import{gridChildAt as Or,gridGap as kr,gridSpacing as Ar,gridTrackCounts as jr}from"./grid-state.js";import{GtkGrid as Mr}from"./gtk-grid.js";import{GtkFrame as Nr}from"./gtk-frame.js";import{GtkLabel as Pr}from"./gtk-label.js";import{DEFAULT_LIST_SELECTION_MODE as Fr,GTK_SELECTION_MODES as Ir,selectionAfterModeChange as Lr,selectionAfterTap as Rr,selectionMode as zr}from"./list-box-state.js";import{GtkListBox as Br,LIST_BOX_ROW_ACTIVATED as Vr,LIST_BOX_ROW_SELECTED as Hr,LIST_ROW_SELECTED_CLASS as Ur}from"./gtk-list-box.js";import{GtkMenuButton as Wr,MENU_ITEM_ACTIVATED as Gr}from"./gtk-menu-button.js";import{GtkPopoverMenu as Kr}from"./gtk-popover-menu.js";import{GtkOverlay as qr}from"./gtk-overlay.js";import{revealerChildVisibility as Jr}from"./revealer-state.js";import{GtkRevealer as Yr,NOTIFY_REVEAL_CHILD as Xr}from"./gtk-revealer.js";import{GtkScrolledWindow as Zr}from"./gtk-scrolled-window.js";import{GtkApplicationWindow as Qr}from"./gtk-application-window.js";import{GtkSeparator as $r}from"./gtk-separator.js";import{GtkStackPage as ei}from"./stack-page.js";import{GtkStack as ti,NOTIFY_STACK_VISIBLE_CHILD as ni,NOTIFY_STACK_VISIBLE_CHILD_NAME as ri}from"./gtk-stack.js";import{GTK_WRAP_MODES as ii,GtkTextView as ai,NOTIFY_TEXT_VIEW_TEXT as oi}from"./gtk-text-view.js";import{GTK_TOGGLE_BUTTON_CHECKED_CLASS as si,GTK_TOGGLE_BUTTON_TOGGLED as ci,GtkToggleButton as li,NOTIFY_TOGGLE_ACTIVE as ui}from"./gtk-toggle-button.js";import{AdwSliderRow as di,NOTIFY_SLIDER_VALUE as fi}from"./adw-slider-row.js";import{DATA_GRID_HEADER_CELL_CLASS as pi,DATA_GRID_HEADER_ROW_CLASS as mi,DATA_GRID_SECTION_CELL_CLASS as hi,dataGridCellClass as gi,dataGridItemSpec as _i,dataGridRowClass as vi,dataGridShapeKey as yi,dataGridTracksKey as bi,parseDataGridWidth as xi}from"./data-grid-model.js";import{AdwDataGrid as Si,ROW_ACTIVATED as Ci}from"./adw-data-grid.js";import{padForSystemInsets as wi,padSheetForSystemInsets as Ti}from"./system-insets.js";import{labelDisplayText as Ei,labelMarkupIsUnparseable as Di}from"@gjsify/adwaita-core";const Oi={AdwPreferencesPage:M,AdwPreferencesGroup:j,AdwActionRow:r,AdwSwitchRow:z,AdwEntryRow:y,AdwPasswordEntryRow:k,GtkEntry:Er,AdwComboRow:g,GtkDropDown:Z,AdwSpinRow:F,AdwSliderRow:di,AdwExpanderRow:b,GtkButton:X,GtkBox:Y,GtkGrid:Mr,GtkListBox:Br,AdwWindow:K,AdwApplicationWindow:o,AdwDialog:_,GtkActionBar:J,AdwBin:l,GtkOverlay:qr,GtkRevealer:Yr,GtkScrolledWindow:Zr,GtkWindow:a,GtkApplicationWindow:Qr,GtkStack:ti,GtkToggleButton:li,GtkCheckButton:Q,GtkDrawingArea:$,GtkFrame:Nr,GtkSeparator:$r,GtkTextView:ai,GtkLabel:Pr,AdwImageButton:v,GtkMenuButton:Wr,GtkImage:t,AdwBanner:c,AdwAvatar:s,AdwWindowTitle:x,AdwClamp:h,AdwHeaderBar:S,AdwToolbarView:U,AdwWrapBox:q,AdwDataGrid:Si,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:i,AdwToastOverlay:V,AdwAboutDialog:n,AdwPreferencesDialog:A};let ki=!1;function registerAdwaitaElements(){if(!ki&&typeof registerElement==`function`){for(let[ee,e]of Object.entries(Oi))registerElement(ee,()=>e);ki=!0}}export{Xe as ABOUT_CLOSED,Ze as ACTIVATED,Oe as ADWAITA_ICON_GRID,ir as ADWAITA_NS_ACCENT_RULES,Pt as ADW_DIALOG_CLASS,Ft as ADW_DIALOG_CLOSED,It as ADW_DIALOG_CLOSE_ATTEMPT,Ge as ADW_DIALOG_PRESENTATION_MODES,st as ADW_WINDOW_CLASS,ut as AVATAR_DEFAULT_ICON,n as AdwAboutDialog,r as AdwActionRow,Qe as AdwAlertDialog,$e as AdwAlertResponses,o as AdwApplicationWindow,s as AdwAvatar,c as AdwBanner,l as AdwBin,i 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,Si 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,yn as AdwSidebarItem,bn as AdwSidebarSection,di as AdwSliderRow,F as AdwSpinRow,I as AdwSpinner,L as AdwSplitButton,rn as AdwSplitViewBase,R as AdwStatusPage,z as AdwSwitchRow,Ln as AdwTabPage,B as AdwTabView,Yn as AdwToast,V as AdwToastOverlay,Xn as AdwToastQueue,Qn as AdwToggle,H as AdwToggleGroup,U as AdwToolbarView,C as AdwViewStack,Xt as AdwViewStackPage,W as AdwViewSwitcher,G as AdwViewSwitcherBar,Qt as AdwViewSwitcherBase,K as AdwWindow,ct as AdwWindowBase,x as AdwWindowTitle,q as AdwWrapBox,mt as BUTTON_CLICKED,et as CLOSE_ATTEMPT,Kn as CLOSE_PAGE,yt as CarouselScrollSync,Mt as ComboState,pi as DATA_GRID_HEADER_CELL_CLASS,mi as DATA_GRID_HEADER_ROW_CLASS,hi as DATA_GRID_SECTION_CELL_CLASS,dt as DEFAULT_AVATAR_SIZE,lr as DEFAULT_BOX_SPACING,bt as DEFAULT_CAROUSEL_PAGE_WIDTH,ft as DEFAULT_CLAMP_MAX_SIZE,Ke as DEFAULT_DIALOG_PRESENTATION_MODE,ze as DEFAULT_GTK_IMAGE_SIZE,Lt as DEFAULT_ICON_BUTTON_ICON_SIZE,ke as DEFAULT_ICON_COLOR,Ae as DEFAULT_ICON_COLOR_DARK,oe as DEFAULT_ICON_PIXEL_SIZE,Fr as DEFAULT_LIST_SELECTION_MODE,Be as DEFAULT_REVEALER_TRANSITION_DURATION,An as DEFAULT_SCROLLBAR_POLICY,pt as DEFAULT_SPINNER_SIZE,Ve as DEFAULT_STACK_TRANSITION_DURATION,Zn as DEFAULT_TOAST_TIMEOUT,wr as DRAWING_AREA_REFUSAL,Tr as ENTRY_ACTIVATE,wn as GROUP_DIVIDER_API,ae as GTK_ALIGN,gr as GTK_BUTTON_CLICKED,_r as GTK_BUTTON_LABEL_CLASS,yr as GTK_CHECK_BUTTON_ACTIVATE,br as GTK_CHECK_BUTTON_CHECKED_CLASS,xr as GTK_CHECK_BUTTON_INCONSISTENT_CLASS,Sr as GTK_CHECK_BUTTON_TOGGLED,se as GTK_ICON_SIZE_NICKS,ce as GTK_ICON_SIZE_PIXELS,jn as GTK_POLICY_TYPES,He as GTK_REVEALER_TRANSITIONS,Ir as GTK_SELECTION_MODES,Ue as GTK_STACK_TRANSITIONS,si as GTK_TOGGLE_BUTTON_CHECKED_CLASS,ci as GTK_TOGGLE_BUTTON_TOGGLED,ii as GTK_WRAP_MODES,J as GtkActionBar,Qr as GtkApplicationWindow,Y as GtkBox,X as GtkButton,Q as GtkCheckButton,$ as GtkDrawingArea,Z as GtkDropDown,Er as GtkEntry,Nr as GtkFrame,Mr as GtkGrid,t as GtkImage,Pr as GtkLabel,Br as GtkListBox,Wr as GtkMenuButton,qr as GtkOverlay,Kr as GtkPopoverMenu,Yr as GtkRevealer,Zr as GtkScrolledWindow,$r as GtkSeparator,ti as GtkStack,ei as GtkStackPage,ai as GtkTextView,li as GtkToggleButton,a as GtkWindow,Ne as ICON_FALLBACK_NAME,Vr as LIST_BOX_ROW_ACTIVATED,Hr as LIST_BOX_ROW_SELECTED,Ur as LIST_ROW_SELECTED_CLASS,Gr as MENU_ITEM_ACTIVATED,Fn as MENU_TAPPED,Rt as NOTIFY_ACTIVATES_DEFAULT,In as NOTIFY_ACTIVE,ht as NOTIFY_BUTTON_CONTENT_CAN_SHRINK,gt as NOTIFY_BUTTON_CONTENT_ICON_NAME,_t as NOTIFY_BUTTON_CONTENT_LABEL,vt as NOTIFY_BUTTON_CONTENT_USE_UNDERLINE,Cr as NOTIFY_CHECK_ACTIVE,vr as NOTIFY_DROP_DOWN_SELECTED,zt as NOTIFY_EDITABLE,Kt as NOTIFY_ENABLE_EXPANSION,Dr as NOTIFY_ENTRY_TEXT,qt as NOTIFY_EXPANDED,ye as NOTIFY_HEXPAND,Bt as NOTIFY_MAX_LENGTH,kt as NOTIFY_N_PAGES,tt as NOTIFY_OPEN,At as NOTIFY_POSITION,Xr as NOTIFY_REVEAL_CHILD,Nt as NOTIFY_SELECTED,qn as NOTIFY_SELECTED_PAGE,Vt as NOTIFY_SHOW_APPLY_BUTTON,Jt as NOTIFY_SHOW_ENABLE_SWITCH,an as NOTIFY_SHOW_SIDEBAR,xn as NOTIFY_SIDEBAR_SELECTED,fi as NOTIFY_SLIDER_VALUE,ni as NOTIFY_STACK_VISIBLE_CHILD,ri as NOTIFY_STACK_VISIBLE_CHILD_NAME,Ht as NOTIFY_TEXT,Ut as NOTIFY_TEXT_LENGTH,oi as NOTIFY_TEXT_VIEW_TEXT,ui as NOTIFY_TOGGLE_ACTIVE,$n as NOTIFY_TOGGLE_SELECTED,Sn as NOTIFY_VALUE,be as NOTIFY_VEXPAND,$t as NOTIFY_VIEW_SELECTED,Zt as NOTIFY_VISIBLE_CHILD,on as NOTIFY_VISIBLE_PAGE,Yt as NS_EXPANDER_ARROW_DISABLED_OPACITY,en as NsNavigationSplitViewState,tn as NsOverlaySplitViewState,Jn as PAGES_CHANGED,jt as PAGE_CHANGED,le as PIXEL_SIZE_UNSET,sn as PREFERENCES_CLOSED,Ci as ROW_ACTIVATED,nt as SHEET_CLOSE,rt as SHEET_CONTENT_BOTTOM_GAP,cn as SHORTCUT_LABEL_CAP_TEXT_CLASS,ln as SHORTCUT_LABEL_CLASS,un as SHORTCUT_LABEL_DIMMED_CLASS,dn as SHORTCUT_LABEL_DISABLED_CLASS,fn as SHORTCUT_LABEL_KEYCAP_CLASS,pn as SHORTCUT_LABEL_KEYS_CLASS,mn as SHORTCUT_LABEL_SIDE_CLASS,hn as SHORTCUT_LABEL_SPACED_CLASS,Wt as SIGNAL_APPLY,Gt as SIGNAL_ENTRY_ACTIVATED,me as SimpleAction,he as SimpleActionGroup,Cn as SpinState,er as ToggleGroupState,tr as WINDOW_BACKGROUND,ge as activateWidgetAction,e as addBreakpoints,Se as adwaitaColorScheme,ar as adwaitaNsAccentColor,or as adwaitaNsAccentCss,sr as applyAdwaitaNsAccent,de as applyConstructProps,xt as applyMarkerClasses,Rn as applyTabViewVisibility,Tn as assertPopupMenuAssignable,at as attachRowPressFeedback,lt as avatarInitials,it as bottomSheetInsetPadding,ot as bottomSheetPanel,ur as boxChildTrack,dr as boxSpacingChanges,fr as boxTrackPlan,mr as buttonSlotAfterWrite,hr as buttonSlotDetaches,St as carouselDotClasses,Ct as carouselNotifyPayload,wt as carouselPositionAtOffset,Tt as carouselScrollOffset,cr as clearAdwaitaNsAccent,Pe as compiledIconNames,nr as configureSystemBars,Et as createCarouselState,zn as createTabViewState,gi as dataGridCellClass,_i as dataGridItemSpec,vi as dataGridRowClass,yi as dataGridShapeKey,bi as dataGridTracksKey,qe as dialogPresentationMode,te as evaluateBreakpointCondition,je as extractIconPaths,Me as extractPathData,En as fillPopupMenu,_e as findActionGroup,Je as findDialogHost,Or as gridChildAt,kr as gridGap,Ar as gridSpacing,jr as gridTrackCounts,Fe as iconValueKind,Dt as indicatorMarkerClasses,ve as insertActionGroup,ue as isGtkIconSizeNick,Ie as isIconAvailable,Ce as isThemeIconColor,Ei as labelDisplayText,Di as labelMarkupIsUnparseable,pe as lengthValue,pr as normalizeBoxSpacing,Ot as normalizeCarouselPageWidth,Mn as normalizePolicy,fe as nsAlignment,ne as observeViewSize,re as observeWindowSize,we as onAdwaitaColorSchemeChanged,Dn as openPopupMenu,wi as padForSystemInsets,Ti as padSheetForSystemInsets,ie as parseBreakpointCondition,xi as parseDataGridWidth,Nn as policyScrolls,On as refuseMenuString,registerAdwaitaElements,Re as renderSymbolicIcon,Le as resolveIconSource,Jr as revealerChildVisibility,Pn as scrollOrientationFor,Lr as selectionAfterModeChange,Rr as selectionAfterTap,zr as selectionMode,Te as setAdwaitaColorScheme,gn as shortcutLabelDirection,_n as shortcutLabelPlatform,vn as shortcutLabelRenderPlan,kn as showMenuPopup,nn as splitViewColumns,Ye as surfaceSize,rr as systemBarsConfig,Bn as tabBarVisibility,Vn as tabCloseVisibilities,Hn as tabLabelText,Un as tabPageVisibilities,Wn as tabTooltipText,Gn as tabViewNotifyPayload,Ee as themeIconColor,De as toggleAdwaitaColorScheme,We as transitionNick,xe 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,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
|
|
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 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}throw Error(`No signal '${e}' on object '${this.constructor.name}'. emit() is GObject's and takes a declared signal or a declared property's notify::<prop>; to dispatch a NativeScript event use notify({ eventName: '${e}', object: this }).`)}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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{splitButtonArrowIcon as e}from"@gjsify/adwaita-core";import{openMenuSymbolic as t}from"@gjsify/adwaita-icons/actions";import{panDownSymbolic as n,panEndSymbolic as r,panStartSymbolic as i,panUpSymbolic as a}from"@gjsify/adwaita-icons/ui";const o={"open-menu-symbolic":t,"pan-down-symbolic":n,"pan-up-symbolic":a,"pan-start-symbolic":i,"pan-end-symbolic":r};function splitButtonArrowSvg(t){return o[e(t)]}
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{splitButtonArrowIcon as e}from"@gjsify/adwaita-core";import{openMenuSymbolic as t}from"@gjsify/adwaita-icons/actions";import{panDownSymbolic as n,panEndSymbolic as r,panStartSymbolic as i,panUpSymbolic as a}from"@gjsify/adwaita-icons/ui";const o={"open-menu-symbolic":t,"pan-down-symbolic":n,"pan-up-symbolic":a,"pan-start-symbolic":i,"pan-end-symbolic":r};function splitButtonArrowSvg(t){return o[e(t)]}export{o as ARROW_SVGS,splitButtonArrowSvg};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{AdwStyleManager as
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{applyAdwaitaNsAccent as e}from"./adw-accent.js";import{AdwStyleManager as t,setAccentPainter as n,setSystemAppearance as r}from"./style-manager.js";import{systemAccent as i,systemHighContrast as a}from"./system-accent.js";import{Application as o}from"@nativescript/core";function asScheme(e){return e===`dark`||e===`light`?e:null}function androidContext(){return o.android?.context??null}function highContrast(){return a(typeof android>`u`?void 0:android,androidContext())}function accentColor(){return i(typeof android>`u`?void 0:android,androidContext())}r({highContrast,accentColor,current(){try{return asScheme(o.systemAppearance())}catch{return null}},subscribe(e){let handler=t=>{let n=asScheme(t.newValue);n!==null&&e(n)},reread=()=>e(null);return o.on(`systemAppearanceChanged`,handler),o.on(`resume`,reread),()=>{o.off(`systemAppearanceChanged`,handler),o.off(`resume`,reread)}}}),n(e);export{t as AdwStyleManager};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{ColorScheme as e,StyleManagerBase as t,adwaitaColorScheme as n,onAdwaitaColorSchemeChanged as r,setAdwaitaColorScheme as i}from"@gjsify/adwaita-core";let a=null,o=null,s=!1,c=!1,l=null;function follow(e){!c&&e!==null&&i(e)}function setSystemAppearance(e){o?.(),o=null,a=e,s&&attach()}function attach(){a===null||o!==null||(o=a.subscribe(follow),follow(a.current()))}const
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{ColorScheme as e,StyleManagerBase as t,adwaitaColorScheme as n,onAdwaitaColorSchemeChanged as r,setAdwaitaColorScheme as i}from"@gjsify/adwaita-core";let a=null,o=null,s=!1,c=!1,l=null;const u=new Set;let d=null,f=null;function setAccentPainter(e){d=e,f=null,s&&repaint()}function systemAccent(){try{return a?.accentColor?.()??null}catch{return null}}function systemHighContrast(){try{return a?.highContrast?.()??!1}catch{return!1}}function repaint(){let e=systemAccent();e===null||e===f||d===null||(f=e,d(e))}function follow(e){!c&&e!==null&&i(e),repaint();for(let e of Array.from(u))e()}function setSystemAppearance(e){o?.(),o=null,a=e,s&&attach()}function attach(){a===null||o!==null||(o=a.subscribe(follow),follow(a.current()))}const p={dark:()=>n()===`dark`,subscribe(e){let t=r(e);return u.add(e),s=!0,attach(),()=>{t(),u.delete(e)}},highContrast:systemHighContrast,accentColor:systemAccent,force(e){if(e===null){if(!c)return;c=!1;let e=a?.current()??l;l=null,e!==null&&i(e);return}c||(l=n()),c=!0,i(e?`dark`:`light`)},supportsColorSchemes(){return attach(),(a?.current()??null)!==null}};var AdwStyleManager=class extends t{static GTypeName=`AdwStyleManager`;static ColorScheme=e;static source=p};export{AdwStyleManager,p as nativeScriptStyleSource,setAccentPainter,setSystemAppearance};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{nearestAccent as e}from"@gjsify/adwaita-core";function sdk(e){return e?.os?.Build?.VERSION?.SDK_INT??0}function systemHighContrast(e,t){return sdk(e)<34?!1:((t?.getSystemService(`uimode`))?.getContrast?.()??0)>=1}function systemAccent(t,n){if(sdk(t)<31)return null;let r=n?.getResources?.()?.getIdentifier(`system_accent1_500`,`color`,`android`)??0;if(r===0)return null;let i=n?.getColor?.(r);return i===void 0?null:e({red:(i>>16&255)/255,green:(i>>8&255)/255,blue:(i&255)/255})}export{systemAccent,systemHighContrast};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{gtypeNameOfInstance as e}from"./gtype-name.js";import{GTK_ALIGN as t,NS_HORIZONTAL_ALIGNMENT as n,NS_VERTICAL_ALIGNMENT as r}from"./gtk-align.js";import{nsAlignment as i}from"./construct-props.js";import{lengthValue as a}from"./ns-length.js";import{xmlBoolean as o}from"./xml-values.js";import{insertActionGroup as s}from"./actions.js";import{focusView as c,isViewFocused as l}from"../window-source.js";import{applyNativeTooltip as u}from"./native-tooltip.js";import{isMapped as d}from"./widget-mapping.js";const
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{gtypeNameOfInstance as e}from"./gtype-name.js";import{GTK_ALIGN as t,NS_HORIZONTAL_ALIGNMENT as n,NS_VERTICAL_ALIGNMENT as r}from"./gtk-align.js";import{nsAlignment as i}from"./construct-props.js";import{lengthValue as a}from"./ns-length.js";import{xmlBoolean as o}from"./xml-values.js";import{insertActionGroup as s}from"./actions.js";import{focusView as c,isViewFocused as l}from"../window-source.js";import{applyNativeTooltip as u}from"./native-tooltip.js";import{isMapped as d}from"./widget-mapping.js";import{Point as f}from"@gjsify/adwaita-core";const p=`notify::hexpand`,m=`notify::vexpand`,h=32767;function laidOut(e,t){let n=viewOf(e);if(n!==null)return n;throw TypeError(`${e.constructor.name} is not laid out by a parent, so it has no '${t}'. The GtkWidget layout properties reach views only; this class extends Observable.`)}function viewOf(e){return`horizontalAlignment`in e?e:null}const g=[0,1,2];function isWidget(e){return typeof e.get_first_child==`function`}function childrenOf(e){let t=[];return e.eachChildView?.(e=>(isWidget(e)?t.push(e):t.push(...childrenOf(e)),!0)),t}function parentOf(e){let t=e.parent??null;for(;t!==null&&!isWidget(t);)t=t.parent??null;return t}function topOf(e){let t=e;for(;t.parent;)t=t.parent;return t}function computePointOf(e,t,n){let r=e,i=t;if(topOf(r)!==topOf(i))return[!1,new f];let a=r.getLocationInWindow?.(),o=i.getLocationInWindow?.();return!a||!o?[!1,new f]:[!0,new f({x:n.x+(a.x-o.x),y:n.y+(a.y-o.y)})]}function siblingOf(e,t){let n=parentOf(e);if(n===null)return null;let r=childrenOf(n);return r[r.indexOf(e)+t]??null}function alignNick(e,n){if(typeof e==`string`&&Object.hasOwn(t,e))return e;if(typeof e==`number`){let n=Object.keys(t).find(n=>t[n]===e);if(n!==void 0)return n}throw TypeError(`'${String(e)}' is not a Gtk.Align, so it cannot be '${n}'. The members are ${Object.keys(t).join(`, `)}; NativeScript's own alignment words go to ${n===`halign`?`horizontalAlignment`:`verticalAlignment`}.`)}function readAlign(e,t,n){for(let[n,r]of Object.entries(t))if(r===e)return n;return n!==null&&e===`left`?n?`end`:`start`:n!==null&&e===`right`?n?`start`:`end`:`fill`}function marginOf(e,t){let n=typeof e==`string`&&e.trim()!==``?Number(e):e;if(typeof n==`number`&&Number.isInteger(n)&&n>=0&&n<=h)return n;throw TypeError(`'${String(e)}' is not a margin: '${t}' takes an integer from 0 to ${h}.`)}function sizeRequestOf(e,t){let n=typeof e==`string`&&e.trim()!==``?Number(e):e;if(typeof n==`number`&&Number.isInteger(n)&&n>=-1&&n<=2147483647)return n;throw TypeError(`'${String(e)}' is not a size request: '${t}' takes an integer from -1 (unset) upward.`)}function readSizeRequest(e){let t=a(e);return t!==null&&t>0?Math.round(t):-1}const _=new WeakMap,v=new WeakMap,y=new WeakMap,b=new WeakMap,x=new WeakMap;function expandOf(e){let t=x.get(e);return t===void 0&&(t={h:!1,v:!1},x.set(e,t)),t}function withGtkWidgetLayout(t){class WithGtkWidgetLayout extends t{get halign(){let e=viewOf(this);return e===null?`fill`:readAlign(e.horizontalAlignment,n,e.style?.direction===`rtl`)}set halign(e){let t=laidOut(this,`halign`);t.horizontalAlignment=i(alignNick(e,`halign`),`horizontal`)}get valign(){let e=viewOf(this);return e===null?`fill`:readAlign(e.verticalAlignment,r,null)}set valign(e){let t=laidOut(this,`valign`);t.verticalAlignment=i(alignNick(e,`valign`),`vertical`)}get hexpand(){return x.get(this)?.h??!1}set hexpand(e){laidOut(this,`hexpand`);let t=expandOf(this),n=o(e,t.h);n!==t.h&&(t.h=n,this.notify({eventName:p,object:this}))}get vexpand(){return x.get(this)?.v??!1}set vexpand(e){laidOut(this,`vexpand`);let t=expandOf(this),n=o(e,t.v);n!==t.v&&(t.v=n,this.notify({eventName:m,object:this}))}get marginStart(){let e=viewOf(this);return e===null?0:a(e.style?.direction===`rtl`?e.marginRight:e.marginLeft)??0}set marginStart(e){let t=laidOut(this,`marginStart`),n=marginOf(e,`marginStart`);t.style?.direction===`rtl`?t.marginRight=n:t.marginLeft=n}get marginEnd(){let e=viewOf(this);return e===null?0:a(e.style?.direction===`rtl`?e.marginLeft:e.marginRight)??0}set marginEnd(e){let t=laidOut(this,`marginEnd`),n=marginOf(e,`marginEnd`);t.style?.direction===`rtl`?t.marginLeft=n:t.marginRight=n}get visible(){let e=viewOf(this);return e===null?!0:e.visibility===`visible`}set visible(e){let t=laidOut(this,`visible`);t.visibility=o(e,this.visible)?`visible`:`collapse`}get sensitive(){let e=viewOf(this);return e===null?!0:e.isEnabled!==!1}set sensitive(e){let t=laidOut(this,`sensitive`);t.isEnabled=o(e,this.sensitive)}get name(){return _.get(this)??e(this)}set name(e){let t=laidOut(this,`name`),n=_.get(this),r=e??``;r===``?_.delete(this):_.set(this,r),(t.id===void 0||t.id===n)&&(t.id=r===``?void 0:r)}get_visible(){return this.visible}set_visible(e){this.visible=e}get_mapped(){return d(this)}set_direction(e){if(!g.includes(e))throw TypeError(`${e} is not a valid value for enum argument dir`);let t=this.style;t!==void 0&&(t.direction=e===0?``:e===2?`rtl`:`ltr`)}get_direction(){return this.style?.direction===`rtl`?2:1}get_first_child(){return childrenOf(this)[0]??null}get_last_child(){return childrenOf(this).at(-1)??null}get_next_sibling(){return siblingOf(this,1)}get_prev_sibling(){return siblingOf(this,-1)}get_parent(){return parentOf(this)}get_width(){return Math.round(this.getActualSize?.().width??0)}get_height(){return Math.round(this.getActualSize?.().height??0)}compute_point(e,t){return computePointOf(this,e,t)}insert_action_group(e,t){s(this,e,t)}get focusable(){return y.get(this)??!1}set focusable(e){let t=laidOut(this,`focusable`),n=o(e,y.get(this)??!1);y.set(this,n),t.nativeViewProtected?.setFocusable?.(n)}get focusOnClick(){return b.get(this)??!0}set focusOnClick(e){b.set(this,o(e,b.get(this)??!0))}get_focus_on_click(){return this.focusOnClick}set_focus_on_click(e){this.focusOnClick=e}grab_focus(){let e=laidOut(this,`grab_focus`);return c(e),l(e)}get tooltipText(){return v.get(this)??``}set tooltipText(e){let t=laidOut(this,`tooltipText`),n=e??``;(t.accessibilityHint??``)===(v.get(this)??``)&&(t.accessibilityHint=n),v.set(this,n),u(this,n)}get tooltip_text(){return this.tooltipText}set tooltip_text(e){this.tooltipText=e}get_tooltip_text(){return this.tooltipText}set_tooltip_text(e){this.tooltipText=e}get widthRequest(){let e=viewOf(this);return e===null?-1:readSizeRequest(e.minWidth)}set widthRequest(e){let t=laidOut(this,`widthRequest`);t.minWidth=Math.max(0,sizeRequestOf(e,`widthRequest`))}get heightRequest(){let e=viewOf(this);return e===null?-1:readSizeRequest(e.minHeight)}set heightRequest(e){let t=laidOut(this,`heightRequest`);t.minHeight=Math.max(0,sizeRequestOf(e,`heightRequest`))}}return WithGtkWidgetLayout}export{p as NOTIFY_HEXPAND,m as NOTIFY_VEXPAND,withGtkWidgetLayout};
|
|
@@ -158,8 +158,11 @@ export declare function buildWithSiblings(node: SharedTreeNode, options?: BuildO
|
|
|
158
158
|
* `root`, whose class has to be the one the root names (or a subclass of it): a template of an
|
|
159
159
|
* `Adw.Bin` built into a `Gtk.Box` would be a different widget wearing the wrong tree. The ids of
|
|
160
160
|
* the tree stay reachable through `root.getViewById`, and the returned map holds every object the
|
|
161
|
-
* tree names by id (what `InternalChildren` installs).
|
|
162
|
-
*
|
|
161
|
+
* tree names by id (what `InternalChildren` installs). The objects written beside the template in
|
|
162
|
+
* the same file (`Adw.AlertDialog dialog { }`) are built in that id scope and are in the map too,
|
|
163
|
+
* as `gtk_widget_class_bind_template_child` reaches any object id of the template's builder; they
|
|
164
|
+
* are no children of `root`. A value object's id (a dialog, a `Gtk.StackPage`) is reachable here
|
|
165
|
+
* for the same reason.
|
|
163
166
|
*/
|
|
164
167
|
export declare function buildInto(root: View, node: SharedTreeNode, options?: BuildOptions): ReadonlyMap<string, object>;
|
|
165
168
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AdwButtonContentPropertiesNsTest: () => Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GtkButtonClickedNsTest: () => Promise<void>;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
export { assertNativeScript, isNativeScript, isAndroid, isIOS } from '@gjsify/native-platform';
|
|
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,
|
|
3
|
-
export type { BoxOrientation, ButtonSlot, ButtonSlotWrite, NotifyEntryTextEventData, AdwComboOption, ComboStateChange, ComboStateListener, NotifySelectedEventData, NotifyDropDownSelectedEventData, NotifyValueEventData, SpinStateChange, SpinStateListener, NotifySliderValueEventData,
|
|
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, NOTIFY_EXPANDED, NOTIFY_ENABLE_EXPANSION, NOTIFY_SHOW_ENABLE_SWITCH, NS_EXPANDER_ARROW_DISABLED_OPACITY, 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, 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, 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';
|
|
7
7
|
export * as Gio from './namespace/gio.js';
|
|
8
8
|
export * as Gdk from './namespace/gdk.js';
|
|
9
|
+
export * as Graphene from './namespace/graphene.js';
|
|
9
10
|
export * as GLib from './namespace/glib.js';
|
|
10
11
|
export { ENGINE_TARGET } from './engine-target.js';
|
|
11
12
|
export { ADWAITA_SANS_FONT_FAMILY, ADWAITA_SANS_TTF_FILES, adwaitaFontInstallInstructions, hasAdwaitaSans, } from './fonts.js';
|
|
@@ -50,4 +50,4 @@ export { AdwWindowTitle as WindowTitle } from '../widgets/adw-window-title.js';
|
|
|
50
50
|
export { AdwWrapBox as WrapBox } from '../widgets/adw-wrap-box.js';
|
|
51
51
|
export { AdwApplication as Application } from '../widgets/application.js';
|
|
52
52
|
export { AdwStyleManager as StyleManager } from '../widgets/style-manager-host.js';
|
|
53
|
-
export { ColorScheme, Toast, ToastPriority } from '@gjsify/adwaita-core';
|
|
53
|
+
export { AccentColor, ColorScheme, Toast, ToastPriority } from '@gjsify/adwaita-core';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import '../file-chooser-host.js';
|
|
2
2
|
export { GioMenu as Menu, GioMenuItem as MenuItem } from '@gjsify/adwaita-core';
|
|
3
|
+
export { ListModel } from '@gjsify/adwaita-core';
|
|
3
4
|
export { GioFile as File, GioListStore as ListStore, GioOutputStream as OutputStream, GioFileOutputStream as FileOutputStream, FileCreateFlags, IOErrorEnum, promisify as _promisify, } from '@gjsify/adwaita-core';
|
|
4
5
|
export { SimpleAction, SimpleActionGroup } from '../widgets/actions.js';
|
|
5
6
|
export { ApplicationFlags } from '@gjsify/adwaita-core';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Point } from '@gjsify/adwaita-core';
|
|
@@ -19,11 +19,12 @@ export { GtkOverlay as Overlay } from '../widgets/gtk-overlay.js';
|
|
|
19
19
|
export { GtkRevealer as Revealer } from '../widgets/gtk-revealer.js';
|
|
20
20
|
export { GtkScrolledWindow as ScrolledWindow } from '../widgets/gtk-scrolled-window.js';
|
|
21
21
|
export { GtkWindow as Window } from '../widgets/gtk-window.js';
|
|
22
|
+
export { GtkApplicationWindow as ApplicationWindow } from '../widgets/gtk-application-window.js';
|
|
22
23
|
export type { WindowCommon } from '@gjsify/adwaita-core';
|
|
23
24
|
export { GtkSeparator as Separator } from '../widgets/gtk-separator.js';
|
|
24
25
|
export { GtkStack as Stack } from '../widgets/gtk-stack.js';
|
|
25
26
|
export { GtkStackPage as StackPage } from '../widgets/stack-page.js';
|
|
26
|
-
export { GtkStringList as StringList } from '@gjsify/adwaita-core';
|
|
27
|
+
export { GtkStringList as StringList, GtkStringObject as StringObject } from '@gjsify/adwaita-core';
|
|
27
28
|
export { GtkTextView as TextView } from '../widgets/gtk-text-view.js';
|
|
28
29
|
export { GtkToggleButton as ToggleButton } from '../widgets/gtk-toggle-button.js';
|
|
29
30
|
export { ApplicationInhibitFlags } from '@gjsify/adwaita-core';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AdwSplitButtonPropertiesNsTest: () => Promise<void>;
|
|
@@ -224,6 +224,7 @@ export declare class LayoutBase extends View {
|
|
|
224
224
|
removeChild(view: View): void;
|
|
225
225
|
removeChildren(): void;
|
|
226
226
|
getChildAt(index: number): View;
|
|
227
|
+
getChildIndex(child: View): number;
|
|
227
228
|
getChildrenCount(): number;
|
|
228
229
|
eachChildView(callback: (child: View) => boolean): void;
|
|
229
230
|
/**
|
|
@@ -328,15 +329,6 @@ export declare class TextView extends View {
|
|
|
328
329
|
export declare class Button extends View {
|
|
329
330
|
text: string;
|
|
330
331
|
}
|
|
331
|
-
export declare class ScrollView extends View {
|
|
332
|
-
orientation: 'horizontal' | 'vertical';
|
|
333
|
-
content: View;
|
|
334
|
-
readonly horizontalOffset: number;
|
|
335
|
-
readonly verticalOffset: number;
|
|
336
|
-
scrollToHorizontalOffset(_value: number, _animated: boolean): void;
|
|
337
|
-
scrollToVerticalOffset(_value: number, _animated: boolean): void;
|
|
338
|
-
eachChildView(callback: (child: View) => boolean): void;
|
|
339
|
-
}
|
|
340
332
|
/**
|
|
341
333
|
* Upstream's `content` setter (`ui/content-view/index.ts`) `_removeView`s the old view and
|
|
342
334
|
* `_addView`s the new one, and `eachChildView` answers that one view — so the tree members see
|
|
@@ -348,6 +340,14 @@ export declare class ContentView extends LayoutBase {
|
|
|
348
340
|
set content(value: View | null);
|
|
349
341
|
eachChildView(callback: (child: View) => boolean): void;
|
|
350
342
|
}
|
|
343
|
+
/** Upstream's `ScrollView` is a `ContentView`: its content is `_addView`ed, so it has the scroller as its parent. */
|
|
344
|
+
export declare class ScrollView extends ContentView {
|
|
345
|
+
orientation: 'horizontal' | 'vertical';
|
|
346
|
+
horizontalOffset: number;
|
|
347
|
+
verticalOffset: number;
|
|
348
|
+
scrollToHorizontalOffset(value: number, _animated: boolean): void;
|
|
349
|
+
scrollToVerticalOffset(value: number, _animated: boolean): void;
|
|
350
|
+
}
|
|
351
351
|
export declare class WrapLayout extends LayoutBase {
|
|
352
352
|
orientation: 'horizontal' | 'vertical';
|
|
353
353
|
itemWidth: number;
|
|
@@ -52,6 +52,9 @@ declare const AdwAboutDialog_base: ((abstract new (...args: any[]) => {
|
|
|
52
52
|
get_next_sibling(): object | null;
|
|
53
53
|
get_prev_sibling(): object | null;
|
|
54
54
|
get_parent(): object | null;
|
|
55
|
+
get_width(): number;
|
|
56
|
+
get_height(): number;
|
|
57
|
+
compute_point(target: object, point: import("@gjsify/adwaita-core").Point): [boolean, import("@gjsify/adwaita-core").Point];
|
|
55
58
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
56
59
|
get focusable(): boolean;
|
|
57
60
|
set focusable(value: boolean | string);
|
|
@@ -59,6 +59,9 @@ declare const AdwActionRow_base: ((abstract new (...args: any[]) => {
|
|
|
59
59
|
get_next_sibling(): object | null;
|
|
60
60
|
get_prev_sibling(): object | null;
|
|
61
61
|
get_parent(): object | null;
|
|
62
|
+
get_width(): number;
|
|
63
|
+
get_height(): number;
|
|
64
|
+
compute_point(target: object, point: import("@gjsify/adwaita-core").Point): [boolean, import("@gjsify/adwaita-core").Point];
|
|
62
65
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
63
66
|
get focusable(): boolean;
|
|
64
67
|
set focusable(value: boolean | string);
|
|
@@ -50,6 +50,9 @@ declare const AdwAlertDialog_base: ((abstract new (...args: any[]) => {
|
|
|
50
50
|
get_next_sibling(): object | null;
|
|
51
51
|
get_prev_sibling(): object | null;
|
|
52
52
|
get_parent(): object | null;
|
|
53
|
+
get_width(): number;
|
|
54
|
+
get_height(): number;
|
|
55
|
+
compute_point(target: object, point: import("@gjsify/adwaita-core").Point): [boolean, import("@gjsify/adwaita-core").Point];
|
|
53
56
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
54
57
|
get focusable(): boolean;
|
|
55
58
|
set focusable(value: boolean | string);
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
import { type ActionLike } from '@gjsify/adwaita-core';
|
|
1
2
|
import { type ConstructProps } from './construct-props.js';
|
|
2
3
|
import { AdwWindowBase } from './window-base.js';
|
|
3
4
|
export declare class AdwApplicationWindow extends AdwWindowBase {
|
|
5
|
+
/** `Gio.ActionMap.add_action`: installed by `installActionMap`; reachable as `win.<name>`. */
|
|
6
|
+
add_action: (action: ActionLike) => void;
|
|
7
|
+
/** `Gio.ActionMap.lookup_action`: the window's own action, or `null`. */
|
|
8
|
+
lookup_action: (action_name: string) => ActionLike | null;
|
|
9
|
+
/** `Gio.ActionMap.remove_action`: an unknown name does nothing. */
|
|
10
|
+
remove_action: (action_name: string) => void;
|
|
4
11
|
static readonly GTypeName: string;
|
|
5
12
|
constructor(props?: ConstructProps<AdwApplicationWindow>);
|
|
6
13
|
}
|
|
@@ -53,6 +53,9 @@ declare const AdwAvatar_base: ((abstract new (...args: any[]) => {
|
|
|
53
53
|
get_next_sibling(): object | null;
|
|
54
54
|
get_prev_sibling(): object | null;
|
|
55
55
|
get_parent(): object | null;
|
|
56
|
+
get_width(): number;
|
|
57
|
+
get_height(): number;
|
|
58
|
+
compute_point(target: object, point: import("@gjsify/adwaita-core").Point): [boolean, import("@gjsify/adwaita-core").Point];
|
|
56
59
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
57
60
|
get focusable(): boolean;
|
|
58
61
|
set focusable(value: boolean | string);
|
|
@@ -49,6 +49,9 @@ declare const AdwBanner_base: ((abstract new (...args: any[]) => {
|
|
|
49
49
|
get_next_sibling(): object | null;
|
|
50
50
|
get_prev_sibling(): object | null;
|
|
51
51
|
get_parent(): object | null;
|
|
52
|
+
get_width(): number;
|
|
53
|
+
get_height(): number;
|
|
54
|
+
compute_point(target: object, point: import("@gjsify/adwaita-core").Point): [boolean, import("@gjsify/adwaita-core").Point];
|
|
52
55
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
53
56
|
get focusable(): boolean;
|
|
54
57
|
set focusable(value: boolean | string);
|
|
@@ -60,6 +60,9 @@ declare const AdwBottomSheet_base: ((abstract new (...args: any[]) => {
|
|
|
60
60
|
get_next_sibling(): object | null;
|
|
61
61
|
get_prev_sibling(): object | null;
|
|
62
62
|
get_parent(): object | null;
|
|
63
|
+
get_width(): number;
|
|
64
|
+
get_height(): number;
|
|
65
|
+
compute_point(target: object, point: import("@gjsify/adwaita-core").Point): [boolean, import("@gjsify/adwaita-core").Point];
|
|
63
66
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
64
67
|
get focusable(): boolean;
|
|
65
68
|
set focusable(value: boolean | string);
|
|
@@ -2,6 +2,14 @@ import { Label, StackLayout, type View } from '@nativescript/core';
|
|
|
2
2
|
import type { ButtonContentEllipsize } from '@gjsify/adwaita-core';
|
|
3
3
|
import { GtkImage } from './gtk-image.js';
|
|
4
4
|
import { type ConstructProps } from './construct-props.js';
|
|
5
|
+
/** Event name emitted when {@link AdwButtonContent.iconName} changes. Mirrors GObject `notify::icon-name`. */
|
|
6
|
+
export declare const NOTIFY_BUTTON_CONTENT_ICON_NAME = "notify::icon-name";
|
|
7
|
+
/** Event name emitted when {@link AdwButtonContent.label} changes. */
|
|
8
|
+
export declare const NOTIFY_BUTTON_CONTENT_LABEL = "notify::label";
|
|
9
|
+
/** Event name emitted when {@link AdwButtonContent.useUnderline} changes. */
|
|
10
|
+
export declare const NOTIFY_BUTTON_CONTENT_USE_UNDERLINE = "notify::use-underline";
|
|
11
|
+
/** Event name emitted when {@link AdwButtonContent.canShrink} changes. */
|
|
12
|
+
export declare const NOTIFY_BUTTON_CONTENT_CAN_SHRINK = "notify::can-shrink";
|
|
5
13
|
declare const AdwButtonContent_base: ((abstract new (...args: any[]) => {
|
|
6
14
|
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
7
15
|
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
@@ -48,6 +56,9 @@ declare const AdwButtonContent_base: ((abstract new (...args: any[]) => {
|
|
|
48
56
|
get_next_sibling(): object | null;
|
|
49
57
|
get_prev_sibling(): object | null;
|
|
50
58
|
get_parent(): object | null;
|
|
59
|
+
get_width(): number;
|
|
60
|
+
get_height(): number;
|
|
61
|
+
compute_point(target: object, point: import("@gjsify/adwaita-core").Point): [boolean, import("@gjsify/adwaita-core").Point];
|
|
51
62
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
52
63
|
get focusable(): boolean;
|
|
53
64
|
set focusable(value: boolean | string);
|
|
@@ -70,7 +81,6 @@ export declare class AdwButtonContent extends AdwButtonContent_base {
|
|
|
70
81
|
protected readonly _icon: GtkImage;
|
|
71
82
|
/** The text label. */
|
|
72
83
|
protected readonly _label: Label;
|
|
73
|
-
private readonly _props;
|
|
74
84
|
private _hostButton;
|
|
75
85
|
constructor(props?: ConstructProps<AdwButtonContent>);
|
|
76
86
|
/**
|
|
@@ -80,6 +90,12 @@ export declare class AdwButtonContent extends AdwButtonContent_base {
|
|
|
80
90
|
* Setting it adds `image-text-button` (:115); clearing it, or replacing it,
|
|
81
91
|
* removes the class from the previous host first (:126), so a button that
|
|
82
92
|
* loses its content goes back to plain-button padding.
|
|
93
|
+
*
|
|
94
|
+
* NATIVESCRIPT-ONLY, and deliberately NOT a declared property: `Adw.ButtonContent` has no
|
|
95
|
+
* `host-button` — C finds its button through `gtk_widget_get_ancestor`, so GJS has nothing
|
|
96
|
+
* to match. The value is a `View`, which is not a GObject, so no ParamSpec could hold it
|
|
97
|
+
* either. It is a plain accessor on both legs: equal writes (identity) are ignored and
|
|
98
|
+
* nothing emits `notify::host-button`.
|
|
83
99
|
*/
|
|
84
100
|
get hostButton(): View | null;
|
|
85
101
|
set hostButton(view: View | null);
|
|
@@ -91,22 +107,16 @@ export declare class AdwButtonContent extends AdwButtonContent_base {
|
|
|
91
107
|
* the C sets that fallback (:355-356) and never hides `self->icon`. The doc
|
|
92
108
|
* comments at :228/:343 say otherwise — see `buttonContentIcon`.
|
|
93
109
|
*/
|
|
94
|
-
|
|
95
|
-
set iconName(svg: string);
|
|
110
|
+
iconName: string;
|
|
96
111
|
/** Whether the icon currently shown is the empty-slot fallback. */
|
|
97
112
|
get iconIsFallback(): boolean;
|
|
98
113
|
/** The icon fill colour (hex). Set to the button's foreground (e.g. white on suggested-action). */
|
|
99
114
|
get iconColor(): string;
|
|
100
115
|
set iconColor(value: string);
|
|
101
116
|
/** The button content text. Empty collapses the label view (:398). */
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
* Whether an underline in {@link label} marks a mnemonic (:431-445).
|
|
106
|
-
* Defaults to FALSE (:253-256), so an underscore is a literal unless asked.
|
|
107
|
-
*/
|
|
108
|
-
get useUnderline(): boolean;
|
|
109
|
-
set useUnderline(raw: boolean | string);
|
|
117
|
+
label: string;
|
|
118
|
+
/** Whether an underline in {@link label} marks a mnemonic (:431-445). */
|
|
119
|
+
useUnderline: boolean;
|
|
110
120
|
/**
|
|
111
121
|
* Whether the label may be smaller than its natural size (:489-491).
|
|
112
122
|
*
|
|
@@ -115,10 +125,11 @@ export declare class AdwButtonContent extends AdwButtonContent_base {
|
|
|
115
125
|
* {@link ellipsize}, and reflected as a `can-shrink` class for the theme —
|
|
116
126
|
* but the truncation ellipsis is not available on this platform.
|
|
117
127
|
*/
|
|
118
|
-
|
|
119
|
-
set canShrink(raw: boolean | string);
|
|
128
|
+
canShrink: boolean;
|
|
120
129
|
/** The label's `PangoEllipsizeMode` for the current `canShrink` (:462). */
|
|
121
130
|
get ellipsize(): ButtonContentEllipsize;
|
|
131
|
+
private _applyIcon;
|
|
132
|
+
private _applyCanShrink;
|
|
122
133
|
private _renderLabel;
|
|
123
134
|
}
|
|
124
135
|
export {};
|
|
@@ -63,6 +63,9 @@ declare const AdwCarousel_base: ((abstract new (...args: any[]) => {
|
|
|
63
63
|
get_next_sibling(): object | null;
|
|
64
64
|
get_prev_sibling(): object | null;
|
|
65
65
|
get_parent(): object | null;
|
|
66
|
+
get_width(): number;
|
|
67
|
+
get_height(): number;
|
|
68
|
+
compute_point(target: object, point: import("@gjsify/adwaita-core").Point): [boolean, import("@gjsify/adwaita-core").Point];
|
|
66
69
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
67
70
|
get focusable(): boolean;
|
|
68
71
|
set focusable(value: boolean | string);
|
|
@@ -49,6 +49,9 @@ declare const AdwClamp_base: ((abstract new (...args: any[]) => {
|
|
|
49
49
|
get_next_sibling(): object | null;
|
|
50
50
|
get_prev_sibling(): object | null;
|
|
51
51
|
get_parent(): object | null;
|
|
52
|
+
get_width(): number;
|
|
53
|
+
get_height(): number;
|
|
54
|
+
compute_point(target: object, point: import("@gjsify/adwaita-core").Point): [boolean, import("@gjsify/adwaita-core").Point];
|
|
52
55
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
53
56
|
get focusable(): boolean;
|
|
54
57
|
set focusable(value: boolean | string);
|
|
@@ -49,7 +49,7 @@ export declare class AdwComboRow extends AdwActionRow {
|
|
|
49
49
|
private _openChooser;
|
|
50
50
|
/** The list model (`Adw.ComboRow:model`). Updates the inline value label. */
|
|
51
51
|
get model(): AdwComboOption[];
|
|
52
|
-
set model(value: AdwListModelInput);
|
|
52
|
+
set model(value: AdwListModelInput | string);
|
|
53
53
|
/** `adw_combo_row_set_model`. */
|
|
54
54
|
set_model(model: AdwListModelInput | null): void;
|
|
55
55
|
/**
|
|
@@ -55,6 +55,9 @@ declare const AdwDataGrid_base: ((abstract new (...args: any[]) => {
|
|
|
55
55
|
get_next_sibling(): object | null;
|
|
56
56
|
get_prev_sibling(): object | null;
|
|
57
57
|
get_parent(): object | null;
|
|
58
|
+
get_width(): number;
|
|
59
|
+
get_height(): number;
|
|
60
|
+
compute_point(target: object, point: import("@gjsify/adwaita-core").Point): [boolean, import("@gjsify/adwaita-core").Point];
|
|
58
61
|
insert_action_group(prefix: string, group: import("@gjsify/adwaita-core").ActionGroupLike | null): void;
|
|
59
62
|
get focusable(): boolean;
|
|
60
63
|
set focusable(value: boolean | string);
|