@gjsify/adwaita-core 0.45.0 → 0.46.0

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.
@@ -1 +1 @@
1
- import"./_virtual/_rolldown/runtime.js";import{stripMnemonic as e}from"./glib.js";const t=`image-text-button`,n=`image-missing`,r={iconName:``,label:``,useUnderline:!1,canShrink:!1};function buttonContentIconIsEmpty(e){return e.length===0}function buttonContentIconName(e){return buttonContentIconIsEmpty(e)?n:e}function buttonContentLabelVisible(e){return e.length>0}function buttonContentIconExpands(e){return!buttonContentLabelVisible(e)}function buttonContentLabelText(t,n){return n?e(t):t}function buttonContentEllipsize(e){return e?`end`:`none`}function buttonContentStyleTargetIndex(e){let t=e.indexOf(`button`);return t<0?null:e[t+1]===`split-button`?t+1:t}function buttonContentRenderState(e={}){let n={...r,...e};return{iconName:buttonContentIconName(n.iconName),iconIsFallback:buttonContentIconIsEmpty(n.iconName),iconExpands:buttonContentIconExpands(n.label),labelVisible:buttonContentLabelVisible(n.label),labelText:buttonContentLabelText(n.label,n.useUnderline),ellipsize:buttonContentEllipsize(n.canShrink),parentClass:t}}export{r as ADW_BUTTON_CONTENT_DEFAULTS,n as BUTTON_CONTENT_FALLBACK_ICON,t as BUTTON_CONTENT_STYLE_CLASS,buttonContentEllipsize,buttonContentIconExpands,buttonContentIconIsEmpty,buttonContentIconName,buttonContentLabelText,buttonContentLabelVisible,buttonContentRenderState,buttonContentStyleTargetIndex};
1
+ import"./_virtual/_rolldown/runtime.js";import{stripMnemonic as e}from"./glib.js";const t=`image-text-button`,n=6,r=`image-missing`,i={iconName:``,label:``,useUnderline:!1,canShrink:!1};function buttonContentIconIsEmpty(e){return e.length===0}function buttonContentIconName(e){return buttonContentIconIsEmpty(e)?r:e}function buttonContentLabelVisible(e){return e.length>0}function buttonContentIconExpands(e){return!buttonContentLabelVisible(e)}function buttonContentLabelText(t,n){return n?e(t):t}function buttonContentEllipsize(e){return e?`end`:`none`}function buttonContentStyleTargetIndex(e){let t=e.indexOf(`button`);return t<0?null:e[t+1]===`split-button`?t+1:t}function buttonContentRenderState(e={}){let n={...i,...e};return{iconName:buttonContentIconName(n.iconName),iconIsFallback:buttonContentIconIsEmpty(n.iconName),iconExpands:buttonContentIconExpands(n.label),labelVisible:buttonContentLabelVisible(n.label),labelText:buttonContentLabelText(n.label,n.useUnderline),ellipsize:buttonContentEllipsize(n.canShrink),parentClass:t}}export{i as ADW_BUTTON_CONTENT_DEFAULTS,n as BUTTON_CONTENT_BOX_SPACING,r as BUTTON_CONTENT_FALLBACK_ICON,t as BUTTON_CONTENT_STYLE_CLASS,buttonContentEllipsize,buttonContentIconExpands,buttonContentIconIsEmpty,buttonContentIconName,buttonContentLabelText,buttonContentLabelVisible,buttonContentRenderState,buttonContentStyleTargetIndex};
package/lib/esm/index.js CHANGED
@@ -1 +1 @@
1
- import{gStrStrip as e,glibClamp as t,stringIsNotEmpty as n,stripMnemonic as r}from"./glib.js";import{ADW_ABOUT_DIALOG_LABELS as i,ADW_CREDITS_SECTION_TITLES as a,ADW_LICENSES as o,ADW_LICENSE_ALIASES as s,ADW_LICENSE_DEFAULTS as c,ADW_LICENSE_WARRANTY_TEMPLATE as l,ADW_TRANSLATOR_CREDITS_SENTINELS as u,GTK_LICENSE as d,aboutDialogVisibility as f,creditsSections as p,isLicenseType as m,legalSectionVisible as h,licenseText as g,licenseTypeForSpdxId as _,parseCreditPerson as v,setLicense as y,setLicenseType as b,translatorCreditsPeople as x}from"./about-dialog.js";import{ADW_ACCENT_BG_COLORS as S,ADW_ACCENT_COLOR_NAMES as C,ADW_ACCENT_FG_COLOR as w,ADW_DEFAULT_ACCENT_COLOR as T,adwaitaAccent as E,adwaitaAccentBgColor as D,adwaitaAccentColor as O,adwaitaStandaloneColor as k,isAdwAccentColorName as A,onAdwaitaAccentChanged as j,setAdwaitaAccent as M}from"./accent.js";import{ActionRowState as N,BUTTON_ROW_ACTIVATABLE as P,ButtonRowState as F,SwitchRowState as I,WindowTitleState as L,deriveRowLabels as R}from"./action-row.js";import{AVATAR_COLORS as z,AVATAR_COLOR_COUNT as B,avatarColor as V,avatarColorClass as H,avatarFontSize as U,avatarInitials as W,avatarMaxFontSize as G,avatarMode as K,flattenAvatarGradient as q,gStrHash as J,randomAvatarColorClass as Y}from"./avatar.js";import{ADW_BANNER_BUTTON_STYLES as X,ADW_BANNER_BUTTON_STYLE_CLASSES as Z,ADW_BANNER_DEFAULTS as Q,bannerButtonStyleClasses as $,bannerButtonText as ee,bannerButtonVisible as te,bannerRenderState as ne,isBannerButtonStyle as re,parseBannerButtonStyle as ie}from"./banner.js";import{AdwBreakpoint as ae,evaluateBreakpointCondition as oe,parseBreakpointCondition as se}from"./breakpoint.js";import{BreakpointBinState as ce}from"./breakpoint-bin.js";import{ADW_BUTTON_CONTENT_DEFAULTS as le,BUTTON_CONTENT_FALLBACK_ICON as ue,BUTTON_CONTENT_STYLE_CLASS as de,buttonContentEllipsize as fe,buttonContentIconExpands as pe,buttonContentIconIsEmpty as me,buttonContentIconName as he,buttonContentLabelText as ge,buttonContentLabelVisible as _e,buttonContentRenderState as ve,buttonContentStyleTargetIndex as ye}from"./button-content.js";import{ADW_BUTTON_STYLE_ALIASES as be,ADW_BUTTON_STYLE_CLASSES as xe,buttonStyleClass as Se,buttonStyleClasses as Ce}from"./button.js";import{ADW_SWIPE_DECELERATION_TOUCH as we,ADW_SWIPE_DECELERATION_TOUCHPAD as Te,ADW_SWIPE_DRAG_THRESHOLD as Ee,ADW_SWIPE_EPSILON as De,ADW_SWIPE_HISTORY_THRESHOLD_MS as Oe,ADW_SWIPE_PARABOLA_MULTIPLIER as ke,ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_H as Ae,ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_V as je,ADW_SWIPE_VELOCITY_CURVE_THRESHOLD as Me,ADW_SWIPE_VELOCITY_THRESHOLD_TOUCH as Ne,ADW_SWIPE_VELOCITY_THRESHOLD_TOUCHPAD as Pe,SwipeTracker as Fe,swipeBounds as Ie,swipeClosestPointIndex as Le,swipeEndProgress as Re,swipeNextPointIndex as ze,swipePreviousPointIndex as Be,swipeProjectedPointIndex as Ve,swipeSlope as He,swipeVelocityThreshold as Ue}from"./swipe.js";import{CAROUSEL_SCROLL_TIMEOUT_MS as We,CAROUSEL_SETTLE_EPSILON as Ge,CarouselState as Ke,carouselClampPosition as qe,carouselClosestSnapPoint as Je,carouselNavigateTarget as Ye,carouselPageAllocation as Xe,carouselPageAtPosition as Ze,carouselRange as Qe,carouselReorderShift as $e,carouselSizesFromSnapPoints as et,carouselSnapPoints as tt,carouselWheelStep as nt}from"./carousel.js";import{RadioGroupState as rt,resolveCheckState as it}from"./checks.js";import{adwLerp as at,easeInOutSine as ot,easeOutCubic as st,inverseLerp as ct}from"./easing.js";import{ADW_CLAMP_DEFAULTS as lt,ADW_CLAMP_SIZE_CLASSES as ut,ADW_SPINNER_MAX_SIZE as dt,ADW_SPINNER_MIN_SIZE as ft,ADW_TOOLBAR_BAR_CLASSES as pt,ADW_TOOLBAR_VIEW_CLASSES as mt,ADW_TOOLBAR_VIEW_DEFAULTS as ht,clampAllocate as gt,clampChildSize as _t,clampSizeFromChild as vt,clampThresholds as yt,normalizeClampSize as bt,parseToolbarStyle as xt,resolveSpinnerSize as St,spinnerGeometry as Ct,toolbarBarStyleClasses as wt,toolbarViewAllocate as Tt,toolbarViewClasses as Et,toolbarViewContentForSize as Dt,toolbarViewMeasure as Ot}from"./chrome.js";import{DEFAULT_ICON_COLOR as kt,DEFAULT_ICON_COLOR_DARK as At,adwaitaColorScheme as jt,isThemeIconColor as Mt,onAdwaitaColorSchemeChanged as Nt,setAdwaitaColorScheme as Pt,themeIconColor as Ft,toggleAdwaitaColorScheme as It}from"./color-scheme.js";import{ADW_DATA_GRID_ROW_VARIANTS as Lt,DATA_GRID_CELL_CLASS as Rt,DATA_GRID_ROW_CLASS as zt,dataGridCellText as Bt,dataGridColumnAlign as Vt,dataGridColumnClasses as Ht,dataGridRowInteractive as Ut,dataGridTrackTemplate as Wt,dataGridTracks as Gt,normalizeDataGridColumns as Kt,normalizeDataGridVariant as qt}from"./data-grid.js";import{AdwAlertResponses as Jt,BottomSheetPresentation as Yt,resolveBottomSheetClose as Xt}from"./dialog.js";import{CAPS_LOCK_ICON_NAME as Zt,CAPS_LOCK_TOOLTIP as Qt,EMPTY_ANIMATION_DURATION_MS as $t,ENTRY_ROW_APPLY_ICON_NAME as en,ENTRY_ROW_APPLY_TOOLTIP as tn,ENTRY_ROW_EDIT_ICON_NAME as nn,ENTRY_ROW_MAX_LENGTH_LIMIT as rn,ENTRY_ROW_TITLE_SPACING as an,EntryRowState as on,PASSWORD_CONCEAL_ICON_NAME as sn,PASSWORD_CONCEAL_LABEL as cn,PASSWORD_REVEAL_ICON_NAME as ln,PASSWORD_REVEAL_LABEL as un,PasswordEntryRowState as dn,clampEntryText as fn,entryTextLength as pn}from"./entry-row.js";import{HeaderBarState as mn,resolveHeaderBarTitle as hn}from"./header-bar.js";import{AdwToast as gn,AdwToastQueue as _n,DEFAULT_TOAST_TIMEOUT as vn}from"./toast.js";import{ADW_COMBO_NO_SELECTION as yn,ComboState as bn,ExpanderState as xn,SpinState as Sn,ToggleGroupState as Cn,normalizeComboOptions as wn}from"./rows.js";import{ViewStackState as Tn,normalizeIconName as En,resolvePageTitle as Dn}from"./view-stack.js";import{BACK_BUTTON_FALLBACK_TOOLTIP as On,NavigationViewState as kn,describeNavigationDiagnostic as An}from"./navigation-view.js";import{ADW_SIDEBAR_NO_SELECTION as jn,SidebarState as Mn,adjustSidebarSelection as Nn,clampSidebarSelection as Pn,flattenSidebarItems as Fn,sidebarHeaders as In}from"./sidebar.js";import{ADW_SPINNER_CONTRACT_DISTANCE as Ln,ADW_SPINNER_CYCLES_PER_LOOP as Rn,ADW_SPINNER_CYCLE_LENGTH as zn,ADW_SPINNER_EXTEND_DISTANCE as Bn,ADW_SPINNER_IDLE_DISTANCE as Vn,ADW_SPINNER_MAX_ARC_LENGTH as Hn,ADW_SPINNER_MIN_ARC_LENGTH as Un,ADW_SPINNER_N_CYCLES as Wn,ADW_SPINNER_OVERLAP_DISTANCE as Gn,ADW_SPINNER_SPIN_DURATION_MS as Kn,ADW_SPINNER_START_ANGLE as qn,ADW_SPINNER_STILL_PROGRESS as Jn,ADW_SPINNER_TRACK_OPACITY as Yn,normalizeSpinnerAngle as Xn,spinnerArc as Zn,spinnerArcEnd as Qn,spinnerArcStart as $n,spinnerProgressAt as er}from"./spinner.js";import{parseAccelerator as tr,parseShortcutLabel as nr,shortcutKeycaps as rr}from"./shortcut-label.js";import{ADW_LENGTH_UNITS as ir,DEFAULT_DPI as ar,adwLengthToPx as or,normalizeLengthUnit as sr}from"./length-unit.js";import{ADW_SWIPE_BORDER as cr,DEFAULT_MAX_SIDEBAR_WIDTH as lr,DEFAULT_MIN_SIDEBAR_WIDTH as ur,DEFAULT_SIDEBAR_WIDTH_FRACTION as dr,DEFAULT_SIDEBAR_WIDTH_UNIT as fr,INSTANT_SPLIT_VIEW_ANIMATOR as pr,NAVIGATION_SPLIT_VIEW_CRITICALS as mr,NavigationSplitViewState as hr,OverlaySplitViewState as gr,isSidebarAtVisualStart as _r,layoutNavigationSplitView as vr,layoutOverlaySplitView as yr,measureSplitViewHorizontal as br,resolveNaturalSidebarWidth as xr,resolveNavigationAction as Sr,resolveNavigationSidebarWidth as Cr,resolveNavigationStack as wr,resolveOverlaySidebarWidth as Tr,resolveSidebarBounds as Er,resolveSwipeArea as Dr,resolveSwipeRelease as Or,resolveSwipeSnapPoints as kr,resolveSwipeStart as Ar,swipeCancelProgress as jr,tagsConflict as Mr}from"./split-view.js";import{DEFAULT_DROPDOWN_TOOLTIP as Nr,SPLIT_BUTTON_DISABLED_OPACITY as Pr,SplitButtonState as Fr,isSplitButtonDirection as Ir,menuButtonArrowIcon as Lr,menuButtonPopupDirection as Rr,parseMenuEntries as zr,resolveDropdownTooltip as Br,splitButtonArrowIcon as Vr,splitButtonPopupDirection as Hr,splitButtonRootState as Ur,splitButtonStyleClasses as Wr}from"./split-button.js";import{DEFAULT_INDICATOR_DESCRIPTION_STRINGS as Gr,INLINE_VIEW_SWITCHER_DISPLAY_MODES as Kr,VIEW_SWITCHER_BADGE_LIMIT as qr,VIEW_SWITCHER_DRAG_SWITCH_DELAY as Jr,VIEW_SWITCHER_FALLBACK_ICON as Yr,VIEW_SWITCHER_NO_SELECTION as Xr,VIEW_SWITCHER_POLICIES as Zr,ViewSwitcherBarState as Qr,ViewSwitcherDragSwitch as $r,ViewSwitcherState as ei,buildInlineToggles as ti,buildViewSwitcherButtons as ni,createViewSwitcherPage as ri,inlineToggleTooltip as ii,isInlineViewSwitcherDisplayMode as ai,isViewSwitcherButtonVisible as oi,isViewSwitcherPolicy as si,pageIndexForToggle as ci,shouldRevealViewSwitcherBar as li,toggleIndexForPage as ui,viewSwitcherBadgeLabel as di,viewSwitcherButtonOrientation as fi,viewSwitcherIconName as pi,viewSwitcherIndicatorDescription as mi,viewSwitcherLabel as hi,viewSwitcherPageFromStackPage as gi,viewSwitcherPagesFromStack as _i}from"./view-switcher.js";import{DEFAULT_TAB_AUTOHIDE as vi,TabViewState as yi,isDescendantOfPage as bi,successorAfterClose as xi,tabCloseVisible as Si,tabIconState as Ci,tabTooltip as wi,tabTooltipIsMarkup as Ti,tabsRevealed as Ei}from"./tab-view.js";import{UNTITLED_PAGE_LABEL as Di,collectSearchRows as Oi,countVisiblePages as ki,createSearchRowSubtitle as Ai,defaultCaseFolder as ji,derivePreferencesGroupHeader as Mi,escapeMarkup as Ni,makeComparable as Pi,rowMatchesQuery as Fi,searchPreferences as Ii,stripMarkup as Li}from"./preferences.js";import{ADW_MAX_OVERSHOOT_DISTANCE as Ri,ADW_OVERSHOOT_SETTLE_MS as zi,ADW_UNDERSHOOT_CLASSES as Bi,ADW_UNDERSHOOT_SIZE as Vi,accumulateOvershoot as Hi,isScrolledFromEnd as Ui,isScrolledFromStart as Wi,overshootDistance as Gi,scrollMaxValue as Ki,scrollUndershootClasses as qi}from"./scrolling.js";import{POPOVER_ITEM_RADIUS as Ji,POPOVER_MENU_PADDING as Yi,POPOVER_PADDING as Xi,POPOVER_RADIUS as Zi,PopoverState as Qi,resolvePopoverKey as $i}from"./popover.js";import{ADW_WRAP_BOX_DEFAULT_ALIGN as ea,ADW_WRAP_BOX_DEFAULT_JUSTIFY as ta,ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE as na,ADW_WRAP_BOX_DEFAULT_LENGTH_UNIT as ra,ADW_WRAP_BOX_DEFAULT_PACK_DIRECTION as ia,ADW_WRAP_BOX_DEFAULT_SPACING as aa,ADW_WRAP_BOX_DEFAULT_WRAP_POLICY as oa,ADW_WRAP_BOX_JUSTIFY_MODES as sa,ADW_WRAP_BOX_NATURAL_LINE_LENGTH_UNSET as ca,ADW_WRAP_BOX_PACK_DIRECTIONS as la,ADW_WRAP_POLICIES as ua,normalizeNaturalLineLength as da,normalizeWrapBoxAlign as fa,normalizeWrapBoxJustify as pa,normalizeWrapBoxLengthUnit as ma,normalizeWrapBoxPackDirection as ha,normalizeWrapBoxSpacing as ga,normalizeWrapPolicy as _a,resolveWrapBoxChildOrder as va,resolveWrapBoxLine as ya,wrapBoxLengthToPx as ba,wrapPolicyFlexShrink as xa}from"./wrap-box.js";export{i as ADW_ABOUT_DIALOG_LABELS,S as ADW_ACCENT_BG_COLORS,C as ADW_ACCENT_COLOR_NAMES,w as ADW_ACCENT_FG_COLOR,X as ADW_BANNER_BUTTON_STYLES,Z as ADW_BANNER_BUTTON_STYLE_CLASSES,Q as ADW_BANNER_DEFAULTS,le as ADW_BUTTON_CONTENT_DEFAULTS,be as ADW_BUTTON_STYLE_ALIASES,xe as ADW_BUTTON_STYLE_CLASSES,lt as ADW_CLAMP_DEFAULTS,ut as ADW_CLAMP_SIZE_CLASSES,yn as ADW_COMBO_NO_SELECTION,a as ADW_CREDITS_SECTION_TITLES,Lt as ADW_DATA_GRID_ROW_VARIANTS,T as ADW_DEFAULT_ACCENT_COLOR,ir as ADW_LENGTH_UNITS,o as ADW_LICENSES,s as ADW_LICENSE_ALIASES,c as ADW_LICENSE_DEFAULTS,l as ADW_LICENSE_WARRANTY_TEMPLATE,Ri as ADW_MAX_OVERSHOOT_DISTANCE,zi as ADW_OVERSHOOT_SETTLE_MS,jn as ADW_SIDEBAR_NO_SELECTION,Ln as ADW_SPINNER_CONTRACT_DISTANCE,Rn as ADW_SPINNER_CYCLES_PER_LOOP,zn as ADW_SPINNER_CYCLE_LENGTH,Bn as ADW_SPINNER_EXTEND_DISTANCE,Vn as ADW_SPINNER_IDLE_DISTANCE,Hn as ADW_SPINNER_MAX_ARC_LENGTH,dt as ADW_SPINNER_MAX_SIZE,Un as ADW_SPINNER_MIN_ARC_LENGTH,ft as ADW_SPINNER_MIN_SIZE,Wn as ADW_SPINNER_N_CYCLES,Gn as ADW_SPINNER_OVERLAP_DISTANCE,Kn as ADW_SPINNER_SPIN_DURATION_MS,qn as ADW_SPINNER_START_ANGLE,Jn as ADW_SPINNER_STILL_PROGRESS,Yn as ADW_SPINNER_TRACK_OPACITY,cr as ADW_SWIPE_BORDER,we as ADW_SWIPE_DECELERATION_TOUCH,Te as ADW_SWIPE_DECELERATION_TOUCHPAD,Ee as ADW_SWIPE_DRAG_THRESHOLD,De as ADW_SWIPE_EPSILON,Oe as ADW_SWIPE_HISTORY_THRESHOLD_MS,ke as ADW_SWIPE_PARABOLA_MULTIPLIER,Ae as ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_H,je as ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_V,Me as ADW_SWIPE_VELOCITY_CURVE_THRESHOLD,Ne as ADW_SWIPE_VELOCITY_THRESHOLD_TOUCH,Pe as ADW_SWIPE_VELOCITY_THRESHOLD_TOUCHPAD,pt as ADW_TOOLBAR_BAR_CLASSES,mt as ADW_TOOLBAR_VIEW_CLASSES,ht as ADW_TOOLBAR_VIEW_DEFAULTS,u as ADW_TRANSLATOR_CREDITS_SENTINELS,Bi as ADW_UNDERSHOOT_CLASSES,Vi as ADW_UNDERSHOOT_SIZE,ea as ADW_WRAP_BOX_DEFAULT_ALIGN,ta as ADW_WRAP_BOX_DEFAULT_JUSTIFY,na as ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE,ra as ADW_WRAP_BOX_DEFAULT_LENGTH_UNIT,ia as ADW_WRAP_BOX_DEFAULT_PACK_DIRECTION,aa as ADW_WRAP_BOX_DEFAULT_SPACING,oa as ADW_WRAP_BOX_DEFAULT_WRAP_POLICY,sa as ADW_WRAP_BOX_JUSTIFY_MODES,ca as ADW_WRAP_BOX_NATURAL_LINE_LENGTH_UNSET,la as ADW_WRAP_BOX_PACK_DIRECTIONS,ua as ADW_WRAP_POLICIES,z as AVATAR_COLORS,B as AVATAR_COLOR_COUNT,N as ActionRowState,Jt as AdwAlertResponses,ae as AdwBreakpoint,gn as AdwToast,_n as AdwToastQueue,On as BACK_BUTTON_FALLBACK_TOOLTIP,ue as BUTTON_CONTENT_FALLBACK_ICON,de as BUTTON_CONTENT_STYLE_CLASS,P as BUTTON_ROW_ACTIVATABLE,Yt as BottomSheetPresentation,ce as BreakpointBinState,F as ButtonRowState,Zt as CAPS_LOCK_ICON_NAME,Qt as CAPS_LOCK_TOOLTIP,We as CAROUSEL_SCROLL_TIMEOUT_MS,Ge as CAROUSEL_SETTLE_EPSILON,Ke as CarouselState,bn as ComboState,Rt as DATA_GRID_CELL_CLASS,zt as DATA_GRID_ROW_CLASS,ar as DEFAULT_DPI,Nr as DEFAULT_DROPDOWN_TOOLTIP,kt as DEFAULT_ICON_COLOR,At as DEFAULT_ICON_COLOR_DARK,Gr as DEFAULT_INDICATOR_DESCRIPTION_STRINGS,lr as DEFAULT_MAX_SIDEBAR_WIDTH,ur as DEFAULT_MIN_SIDEBAR_WIDTH,dr as DEFAULT_SIDEBAR_WIDTH_FRACTION,fr as DEFAULT_SIDEBAR_WIDTH_UNIT,vi as DEFAULT_TAB_AUTOHIDE,vn as DEFAULT_TOAST_TIMEOUT,$t as EMPTY_ANIMATION_DURATION_MS,en as ENTRY_ROW_APPLY_ICON_NAME,tn as ENTRY_ROW_APPLY_TOOLTIP,nn as ENTRY_ROW_EDIT_ICON_NAME,rn as ENTRY_ROW_MAX_LENGTH_LIMIT,an as ENTRY_ROW_TITLE_SPACING,on as EntryRowState,xn as ExpanderState,d as GTK_LICENSE,mn as HeaderBarState,Kr as INLINE_VIEW_SWITCHER_DISPLAY_MODES,pr as INSTANT_SPLIT_VIEW_ANIMATOR,mr as NAVIGATION_SPLIT_VIEW_CRITICALS,hr as NavigationSplitViewState,kn as NavigationViewState,gr as OverlaySplitViewState,sn as PASSWORD_CONCEAL_ICON_NAME,cn as PASSWORD_CONCEAL_LABEL,ln as PASSWORD_REVEAL_ICON_NAME,un as PASSWORD_REVEAL_LABEL,Ji as POPOVER_ITEM_RADIUS,Yi as POPOVER_MENU_PADDING,Xi as POPOVER_PADDING,Zi as POPOVER_RADIUS,dn as PasswordEntryRowState,Qi as PopoverState,rt as RadioGroupState,Pr as SPLIT_BUTTON_DISABLED_OPACITY,Mn as SidebarState,Sn as SpinState,Fr as SplitButtonState,Fe as SwipeTracker,I as SwitchRowState,yi as TabViewState,Cn as ToggleGroupState,Di as UNTITLED_PAGE_LABEL,qr as VIEW_SWITCHER_BADGE_LIMIT,Jr as VIEW_SWITCHER_DRAG_SWITCH_DELAY,Yr as VIEW_SWITCHER_FALLBACK_ICON,Xr as VIEW_SWITCHER_NO_SELECTION,Zr as VIEW_SWITCHER_POLICIES,Tn as ViewStackState,Qr as ViewSwitcherBarState,$r as ViewSwitcherDragSwitch,ei as ViewSwitcherState,L as WindowTitleState,f as aboutDialogVisibility,Hi as accumulateOvershoot,Nn as adjustSidebarSelection,or as adwLengthToPx,at as adwLerp,E as adwaitaAccent,D as adwaitaAccentBgColor,O as adwaitaAccentColor,jt as adwaitaColorScheme,k as adwaitaStandaloneColor,V as avatarColor,H as avatarColorClass,U as avatarFontSize,W as avatarInitials,G as avatarMaxFontSize,K as avatarMode,$ as bannerButtonStyleClasses,ee as bannerButtonText,te as bannerButtonVisible,ne as bannerRenderState,ti as buildInlineToggles,ni as buildViewSwitcherButtons,fe as buttonContentEllipsize,pe as buttonContentIconExpands,me as buttonContentIconIsEmpty,he as buttonContentIconName,ge as buttonContentLabelText,_e as buttonContentLabelVisible,ve as buttonContentRenderState,ye as buttonContentStyleTargetIndex,Se as buttonStyleClass,Ce as buttonStyleClasses,qe as carouselClampPosition,Je as carouselClosestSnapPoint,Ye as carouselNavigateTarget,Xe as carouselPageAllocation,Ze as carouselPageAtPosition,Qe as carouselRange,$e as carouselReorderShift,et as carouselSizesFromSnapPoints,tt as carouselSnapPoints,nt as carouselWheelStep,gt as clampAllocate,_t as clampChildSize,fn as clampEntryText,Pn as clampSidebarSelection,vt as clampSizeFromChild,yt as clampThresholds,Oi as collectSearchRows,ki as countVisiblePages,Ai as createSearchRowSubtitle,ri as createViewSwitcherPage,p as creditsSections,Bt as dataGridCellText,Vt as dataGridColumnAlign,Ht as dataGridColumnClasses,Ut as dataGridRowInteractive,Wt as dataGridTrackTemplate,Gt as dataGridTracks,ji as defaultCaseFolder,Mi as derivePreferencesGroupHeader,R as deriveRowLabels,An as describeNavigationDiagnostic,ot as easeInOutSine,st as easeOutCubic,pn as entryTextLength,Ni as escapeMarkup,oe as evaluateBreakpointCondition,q as flattenAvatarGradient,Fn as flattenSidebarItems,J as gStrHash,e as gStrStrip,t as glibClamp,ii as inlineToggleTooltip,ct as inverseLerp,A as isAdwAccentColorName,re as isBannerButtonStyle,bi as isDescendantOfPage,ai as isInlineViewSwitcherDisplayMode,m as isLicenseType,Ui as isScrolledFromEnd,Wi as isScrolledFromStart,_r as isSidebarAtVisualStart,Ir as isSplitButtonDirection,Mt as isThemeIconColor,oi as isViewSwitcherButtonVisible,si as isViewSwitcherPolicy,vr as layoutNavigationSplitView,yr as layoutOverlaySplitView,h as legalSectionVisible,g as licenseText,_ as licenseTypeForSpdxId,Pi as makeComparable,br as measureSplitViewHorizontal,Lr as menuButtonArrowIcon,Rr as menuButtonPopupDirection,bt as normalizeClampSize,wn as normalizeComboOptions,Kt as normalizeDataGridColumns,qt as normalizeDataGridVariant,En as normalizeIconName,sr as normalizeLengthUnit,da as normalizeNaturalLineLength,Xn as normalizeSpinnerAngle,fa as normalizeWrapBoxAlign,pa as normalizeWrapBoxJustify,ma as normalizeWrapBoxLengthUnit,ha as normalizeWrapBoxPackDirection,ga as normalizeWrapBoxSpacing,_a as normalizeWrapPolicy,j as onAdwaitaAccentChanged,Nt as onAdwaitaColorSchemeChanged,Gi as overshootDistance,ci as pageIndexForToggle,tr as parseAccelerator,ie as parseBannerButtonStyle,se as parseBreakpointCondition,v as parseCreditPerson,zr as parseMenuEntries,nr as parseShortcutLabel,xt as parseToolbarStyle,Y as randomAvatarColorClass,Xt as resolveBottomSheetClose,it as resolveCheckState,Br as resolveDropdownTooltip,hn as resolveHeaderBarTitle,xr as resolveNaturalSidebarWidth,Sr as resolveNavigationAction,Cr as resolveNavigationSidebarWidth,wr as resolveNavigationStack,Tr as resolveOverlaySidebarWidth,Dn as resolvePageTitle,$i as resolvePopoverKey,Er as resolveSidebarBounds,St as resolveSpinnerSize,Dr as resolveSwipeArea,Or as resolveSwipeRelease,kr as resolveSwipeSnapPoints,Ar as resolveSwipeStart,va as resolveWrapBoxChildOrder,ya as resolveWrapBoxLine,Fi as rowMatchesQuery,Ki as scrollMaxValue,qi as scrollUndershootClasses,Ii as searchPreferences,M as setAdwaitaAccent,Pt as setAdwaitaColorScheme,y as setLicense,b as setLicenseType,rr as shortcutKeycaps,li as shouldRevealViewSwitcherBar,In as sidebarHeaders,Zn as spinnerArc,Qn as spinnerArcEnd,$n as spinnerArcStart,Ct as spinnerGeometry,er as spinnerProgressAt,Vr as splitButtonArrowIcon,Hr as splitButtonPopupDirection,Ur as splitButtonRootState,Wr as splitButtonStyleClasses,n as stringIsNotEmpty,Li as stripMarkup,r as stripMnemonic,xi as successorAfterClose,Ie as swipeBounds,jr as swipeCancelProgress,Le as swipeClosestPointIndex,Re as swipeEndProgress,ze as swipeNextPointIndex,Be as swipePreviousPointIndex,Ve as swipeProjectedPointIndex,He as swipeSlope,Ue as swipeVelocityThreshold,Si as tabCloseVisible,Ci as tabIconState,wi as tabTooltip,Ti as tabTooltipIsMarkup,Ei as tabsRevealed,Mr as tagsConflict,Ft as themeIconColor,It as toggleAdwaitaColorScheme,ui as toggleIndexForPage,wt as toolbarBarStyleClasses,Tt as toolbarViewAllocate,Et as toolbarViewClasses,Dt as toolbarViewContentForSize,Ot as toolbarViewMeasure,x as translatorCreditsPeople,di as viewSwitcherBadgeLabel,fi as viewSwitcherButtonOrientation,pi as viewSwitcherIconName,mi as viewSwitcherIndicatorDescription,hi as viewSwitcherLabel,gi as viewSwitcherPageFromStackPage,_i as viewSwitcherPagesFromStack,ba as wrapBoxLengthToPx,xa as wrapPolicyFlexShrink};
1
+ import{gStrStrip as e,glibClamp as t,stringIsNotEmpty as n,stripMnemonic as r}from"./glib.js";import{ADW_ABOUT_DIALOG_LABELS as i,ADW_CREDITS_SECTION_TITLES as a,ADW_LICENSES as o,ADW_LICENSE_ALIASES as s,ADW_LICENSE_DEFAULTS as c,ADW_LICENSE_WARRANTY_TEMPLATE as l,ADW_TRANSLATOR_CREDITS_SENTINELS as u,GTK_LICENSE as d,aboutDialogVisibility as f,creditsSections as p,isLicenseType as m,legalSectionVisible as h,licenseText as g,licenseTypeForSpdxId as _,parseCreditPerson as v,setLicense as y,setLicenseType as b,translatorCreditsPeople as x}from"./about-dialog.js";import{ADW_ACCENT_BG_COLORS as S,ADW_ACCENT_COLOR_NAMES as C,ADW_ACCENT_FG_COLOR as w,ADW_DEFAULT_ACCENT_COLOR as T,adwaitaAccent as E,adwaitaAccentBgColor as D,adwaitaAccentColor as O,adwaitaStandaloneColor as k,isAdwAccentColorName as A,onAdwaitaAccentChanged as j,setAdwaitaAccent as M}from"./accent.js";import{ActionRowState as N,BUTTON_ROW_ACTIVATABLE as P,ButtonRowState as F,SwitchRowState as I,WindowTitleState as L,deriveRowLabels as R}from"./action-row.js";import{AVATAR_COLORS as z,AVATAR_COLOR_COUNT as B,avatarColor as V,avatarColorClass as H,avatarFontSize as U,avatarInitials as W,avatarMaxFontSize as G,avatarMode as K,flattenAvatarGradient as q,gStrHash as J,randomAvatarColorClass as Y}from"./avatar.js";import{ADW_BANNER_BUTTON_STYLES as X,ADW_BANNER_BUTTON_STYLE_CLASSES as Z,ADW_BANNER_DEFAULTS as Q,bannerButtonStyleClasses as $,bannerButtonText as ee,bannerButtonVisible as te,bannerRenderState as ne,isBannerButtonStyle as re,parseBannerButtonStyle as ie}from"./banner.js";import{AdwBreakpoint as ae,evaluateBreakpointCondition as oe,parseBreakpointCondition as se}from"./breakpoint.js";import{BreakpointBinState as ce}from"./breakpoint-bin.js";import{ADW_BUTTON_CONTENT_DEFAULTS as le,BUTTON_CONTENT_BOX_SPACING as ue,BUTTON_CONTENT_FALLBACK_ICON as de,BUTTON_CONTENT_STYLE_CLASS as fe,buttonContentEllipsize as pe,buttonContentIconExpands as me,buttonContentIconIsEmpty as he,buttonContentIconName as ge,buttonContentLabelText as _e,buttonContentLabelVisible as ve,buttonContentRenderState as ye,buttonContentStyleTargetIndex as be}from"./button-content.js";import{ADW_BUTTON_STYLE_ALIASES as xe,ADW_BUTTON_STYLE_CLASSES as Se,buttonStyleClass as Ce,buttonStyleClasses as we}from"./button.js";import{ADW_SWIPE_DECELERATION_TOUCH as Te,ADW_SWIPE_DECELERATION_TOUCHPAD as Ee,ADW_SWIPE_DRAG_THRESHOLD as De,ADW_SWIPE_EPSILON as Oe,ADW_SWIPE_HISTORY_THRESHOLD_MS as ke,ADW_SWIPE_PARABOLA_MULTIPLIER as Ae,ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_H as je,ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_V as Me,ADW_SWIPE_VELOCITY_CURVE_THRESHOLD as Ne,ADW_SWIPE_VELOCITY_THRESHOLD_TOUCH as Pe,ADW_SWIPE_VELOCITY_THRESHOLD_TOUCHPAD as Fe,SwipeTracker as Ie,swipeBounds as Le,swipeClosestPointIndex as Re,swipeEndProgress as ze,swipeNextPointIndex as Be,swipePreviousPointIndex as Ve,swipeProjectedPointIndex as He,swipeSlope as Ue,swipeVelocityThreshold as We}from"./swipe.js";import{CAROUSEL_SCROLL_TIMEOUT_MS as Ge,CAROUSEL_SETTLE_EPSILON as Ke,CarouselState as qe,carouselClampPosition as Je,carouselClosestSnapPoint as Ye,carouselNavigateTarget as Xe,carouselPageAllocation as Ze,carouselPageAtPosition as Qe,carouselRange as $e,carouselReorderShift as et,carouselSizesFromSnapPoints as tt,carouselSnapPoints as nt,carouselWheelStep as rt}from"./carousel.js";import{RadioGroupState as it,resolveCheckState as at}from"./checks.js";import{adwLerp as ot,easeInOutSine as st,easeOutCubic as ct,inverseLerp as lt}from"./easing.js";import{ADW_CLAMP_DEFAULTS as ut,ADW_CLAMP_SIZE_CLASSES as dt,ADW_SPINNER_MAX_SIZE as ft,ADW_SPINNER_MIN_SIZE as pt,ADW_TOOLBAR_BAR_CLASSES as mt,ADW_TOOLBAR_VIEW_CLASSES as ht,ADW_TOOLBAR_VIEW_DEFAULTS as gt,clampAllocate as _t,clampChildSize as vt,clampSizeFromChild as yt,clampThresholds as bt,normalizeClampSize as xt,parseToolbarStyle as St,resolveSpinnerSize as Ct,spinnerGeometry as wt,toolbarBarStyleClasses as Tt,toolbarViewAllocate as Et,toolbarViewClasses as Dt,toolbarViewContentForSize as Ot,toolbarViewMeasure as kt}from"./chrome.js";import{DEFAULT_ICON_COLOR as At,DEFAULT_ICON_COLOR_DARK as jt,adwaitaColorScheme as Mt,isThemeIconColor as Nt,onAdwaitaColorSchemeChanged as Pt,setAdwaitaColorScheme as Ft,themeIconColor as It,toggleAdwaitaColorScheme as Lt}from"./color-scheme.js";import{ADW_DATA_GRID_ROW_VARIANTS as Rt,DATA_GRID_CELL_CLASS as zt,DATA_GRID_ROW_CLASS as Bt,dataGridCellText as Vt,dataGridColumnAlign as Ht,dataGridColumnClasses as Ut,dataGridRowInteractive as Wt,dataGridTrackTemplate as Gt,dataGridTracks as Kt,normalizeDataGridColumns as qt,normalizeDataGridVariant as Jt}from"./data-grid.js";import{AdwAlertResponses as Yt,BottomSheetPresentation as Xt,resolveBottomSheetClose as Zt}from"./dialog.js";import{CAPS_LOCK_ICON_NAME as Qt,CAPS_LOCK_TOOLTIP as $t,EMPTY_ANIMATION_DURATION_MS as en,ENTRY_ROW_APPLY_ICON_NAME as tn,ENTRY_ROW_APPLY_TOOLTIP as nn,ENTRY_ROW_EDIT_ICON_NAME as rn,ENTRY_ROW_MAX_LENGTH_LIMIT as an,ENTRY_ROW_TITLE_SPACING as on,EntryRowState as sn,PASSWORD_CONCEAL_ICON_NAME as cn,PASSWORD_CONCEAL_LABEL as ln,PASSWORD_REVEAL_ICON_NAME as un,PASSWORD_REVEAL_LABEL as dn,PasswordEntryRowState as fn,clampEntryText as pn,entryTextLength as mn}from"./entry-row.js";import{HeaderBarState as hn,resolveHeaderBarTitle as gn}from"./header-bar.js";import{AdwToast as _n,AdwToastQueue as vn,DEFAULT_TOAST_TIMEOUT as yn}from"./toast.js";import{ADW_COMBO_NO_SELECTION as bn,ComboState as xn,ExpanderState as Sn,SpinState as Cn,ToggleGroupState as wn,normalizeComboOptions as Tn}from"./rows.js";import{ViewStackState as En,normalizeIconName as Dn,resolvePageTitle as On}from"./view-stack.js";import{BACK_BUTTON_FALLBACK_TOOLTIP as kn,NavigationViewState as An,describeNavigationDiagnostic as jn}from"./navigation-view.js";import{ADW_SIDEBAR_NO_SELECTION as Mn,SidebarState as Nn,adjustSidebarSelection as Pn,clampSidebarSelection as Fn,flattenSidebarItems as In,sidebarHeaders as Ln}from"./sidebar.js";import{ADW_SPINNER_CONTRACT_DISTANCE as Rn,ADW_SPINNER_CYCLES_PER_LOOP as zn,ADW_SPINNER_CYCLE_LENGTH as Bn,ADW_SPINNER_EXTEND_DISTANCE as Vn,ADW_SPINNER_IDLE_DISTANCE as Hn,ADW_SPINNER_MAX_ARC_LENGTH as Un,ADW_SPINNER_MIN_ARC_LENGTH as Wn,ADW_SPINNER_N_CYCLES as Gn,ADW_SPINNER_OVERLAP_DISTANCE as Kn,ADW_SPINNER_SPIN_DURATION_MS as qn,ADW_SPINNER_START_ANGLE as Jn,ADW_SPINNER_STILL_PROGRESS as Yn,ADW_SPINNER_TRACK_OPACITY as Xn,normalizeSpinnerAngle as Zn,spinnerArc as Qn,spinnerArcEnd as $n,spinnerArcStart as er,spinnerProgressAt as tr}from"./spinner.js";import{parseAccelerator as nr,parseShortcutLabel as rr,shortcutKeycaps as ir}from"./shortcut-label.js";import{ADW_LENGTH_UNITS as ar,DEFAULT_DPI as or,adwLengthToPx as sr,normalizeLengthUnit as cr}from"./length-unit.js";import{ADW_SWIPE_BORDER as lr,DEFAULT_MAX_SIDEBAR_WIDTH as ur,DEFAULT_MIN_SIDEBAR_WIDTH as dr,DEFAULT_SIDEBAR_WIDTH_FRACTION as fr,DEFAULT_SIDEBAR_WIDTH_UNIT as pr,INSTANT_SPLIT_VIEW_ANIMATOR as mr,NAVIGATION_SPLIT_VIEW_CRITICALS as hr,NavigationSplitViewState as gr,OverlaySplitViewState as _r,isSidebarAtVisualStart as vr,layoutNavigationSplitView as yr,layoutOverlaySplitView as br,measureSplitViewHorizontal as xr,resolveNaturalSidebarWidth as Sr,resolveNavigationAction as Cr,resolveNavigationSidebarWidth as wr,resolveNavigationStack as Tr,resolveOverlaySidebarWidth as Er,resolveSidebarBounds as Dr,resolveSwipeArea as Or,resolveSwipeRelease as kr,resolveSwipeSnapPoints as Ar,resolveSwipeStart as jr,swipeCancelProgress as Mr,tagsConflict as Nr}from"./split-view.js";import{DEFAULT_DROPDOWN_TOOLTIP as Pr,SPLIT_BUTTON_DISABLED_OPACITY as Fr,SplitButtonState as Ir,isSplitButtonDirection as Lr,menuButtonArrowIcon as Rr,menuButtonPopupDirection as zr,parseMenuEntries as Br,resolveDropdownTooltip as Vr,splitButtonArrowIcon as Hr,splitButtonPopupDirection as Ur,splitButtonRootState as Wr,splitButtonStyleClasses as Gr}from"./split-button.js";import{DEFAULT_INDICATOR_DESCRIPTION_STRINGS as Kr,INLINE_VIEW_SWITCHER_DISPLAY_MODES as qr,VIEW_SWITCHER_BADGE_LIMIT as Jr,VIEW_SWITCHER_DRAG_SWITCH_DELAY as Yr,VIEW_SWITCHER_FALLBACK_ICON as Xr,VIEW_SWITCHER_NO_SELECTION as Zr,VIEW_SWITCHER_POLICIES as Qr,ViewSwitcherBarState as $r,ViewSwitcherDragSwitch as ei,ViewSwitcherState as ti,buildInlineToggles as ni,buildViewSwitcherButtons as ri,createViewSwitcherPage as ii,inlineToggleTooltip as ai,isInlineViewSwitcherDisplayMode as oi,isViewSwitcherButtonVisible as si,isViewSwitcherPolicy as ci,pageIndexForToggle as li,shouldRevealViewSwitcherBar as ui,toggleIndexForPage as di,viewSwitcherBadgeLabel as fi,viewSwitcherButtonOrientation as pi,viewSwitcherIconName as mi,viewSwitcherIndicatorDescription as hi,viewSwitcherLabel as gi,viewSwitcherPageFromStackPage as _i,viewSwitcherPagesFromStack as vi}from"./view-switcher.js";import{DEFAULT_TAB_AUTOHIDE as yi,TabViewState as bi,isDescendantOfPage as xi,successorAfterClose as Si,tabCloseVisible as Ci,tabIconState as wi,tabTooltip as Ti,tabTooltipIsMarkup as Ei,tabsRevealed as Di}from"./tab-view.js";import{UNTITLED_PAGE_LABEL as Oi,collectSearchRows as ki,countVisiblePages as Ai,createSearchRowSubtitle as ji,defaultCaseFolder as Mi,derivePreferencesGroupHeader as Ni,escapeMarkup as Pi,makeComparable as Fi,rowMatchesQuery as Ii,searchPreferences as Li,stripMarkup as Ri}from"./preferences.js";import{ADW_MAX_OVERSHOOT_DISTANCE as zi,ADW_OVERSHOOT_SETTLE_MS as Bi,ADW_UNDERSHOOT_CLASSES as Vi,ADW_UNDERSHOOT_SIZE as Hi,accumulateOvershoot as Ui,isScrolledFromEnd as Wi,isScrolledFromStart as Gi,overshootDistance as Ki,scrollMaxValue as qi,scrollUndershootClasses as Ji}from"./scrolling.js";import{POPOVER_ITEM_RADIUS as Yi,POPOVER_MENU_PADDING as Xi,POPOVER_PADDING as Zi,POPOVER_RADIUS as Qi,PopoverState as $i,resolvePopoverKey as ea}from"./popover.js";import{ADW_WRAP_BOX_DEFAULT_ALIGN as ta,ADW_WRAP_BOX_DEFAULT_JUSTIFY as na,ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE as ra,ADW_WRAP_BOX_DEFAULT_LENGTH_UNIT as ia,ADW_WRAP_BOX_DEFAULT_PACK_DIRECTION as aa,ADW_WRAP_BOX_DEFAULT_SPACING as oa,ADW_WRAP_BOX_DEFAULT_WRAP_POLICY as sa,ADW_WRAP_BOX_JUSTIFY_MODES as ca,ADW_WRAP_BOX_NATURAL_LINE_LENGTH_UNSET as la,ADW_WRAP_BOX_PACK_DIRECTIONS as ua,ADW_WRAP_POLICIES as da,normalizeNaturalLineLength as fa,normalizeWrapBoxAlign as pa,normalizeWrapBoxJustify as ma,normalizeWrapBoxLengthUnit as ha,normalizeWrapBoxPackDirection as ga,normalizeWrapBoxSpacing as _a,normalizeWrapPolicy as va,resolveWrapBoxChildOrder as ya,resolveWrapBoxLine as ba,wrapBoxChildFlex as xa,wrapBoxFlexStyle as Sa,wrapBoxLengthToPx as Ca,wrapPolicyFlexShrink as wa}from"./wrap-box.js";export{i as ADW_ABOUT_DIALOG_LABELS,S as ADW_ACCENT_BG_COLORS,C as ADW_ACCENT_COLOR_NAMES,w as ADW_ACCENT_FG_COLOR,X as ADW_BANNER_BUTTON_STYLES,Z as ADW_BANNER_BUTTON_STYLE_CLASSES,Q as ADW_BANNER_DEFAULTS,le as ADW_BUTTON_CONTENT_DEFAULTS,xe as ADW_BUTTON_STYLE_ALIASES,Se as ADW_BUTTON_STYLE_CLASSES,ut as ADW_CLAMP_DEFAULTS,dt as ADW_CLAMP_SIZE_CLASSES,bn as ADW_COMBO_NO_SELECTION,a as ADW_CREDITS_SECTION_TITLES,Rt as ADW_DATA_GRID_ROW_VARIANTS,T as ADW_DEFAULT_ACCENT_COLOR,ar as ADW_LENGTH_UNITS,o as ADW_LICENSES,s as ADW_LICENSE_ALIASES,c as ADW_LICENSE_DEFAULTS,l as ADW_LICENSE_WARRANTY_TEMPLATE,zi as ADW_MAX_OVERSHOOT_DISTANCE,Bi as ADW_OVERSHOOT_SETTLE_MS,Mn as ADW_SIDEBAR_NO_SELECTION,Rn as ADW_SPINNER_CONTRACT_DISTANCE,zn as ADW_SPINNER_CYCLES_PER_LOOP,Bn as ADW_SPINNER_CYCLE_LENGTH,Vn as ADW_SPINNER_EXTEND_DISTANCE,Hn as ADW_SPINNER_IDLE_DISTANCE,Un as ADW_SPINNER_MAX_ARC_LENGTH,ft as ADW_SPINNER_MAX_SIZE,Wn as ADW_SPINNER_MIN_ARC_LENGTH,pt as ADW_SPINNER_MIN_SIZE,Gn as ADW_SPINNER_N_CYCLES,Kn as ADW_SPINNER_OVERLAP_DISTANCE,qn as ADW_SPINNER_SPIN_DURATION_MS,Jn as ADW_SPINNER_START_ANGLE,Yn as ADW_SPINNER_STILL_PROGRESS,Xn as ADW_SPINNER_TRACK_OPACITY,lr as ADW_SWIPE_BORDER,Te as ADW_SWIPE_DECELERATION_TOUCH,Ee as ADW_SWIPE_DECELERATION_TOUCHPAD,De as ADW_SWIPE_DRAG_THRESHOLD,Oe as ADW_SWIPE_EPSILON,ke as ADW_SWIPE_HISTORY_THRESHOLD_MS,Ae as ADW_SWIPE_PARABOLA_MULTIPLIER,je as ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_H,Me as ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_V,Ne as ADW_SWIPE_VELOCITY_CURVE_THRESHOLD,Pe as ADW_SWIPE_VELOCITY_THRESHOLD_TOUCH,Fe as ADW_SWIPE_VELOCITY_THRESHOLD_TOUCHPAD,mt as ADW_TOOLBAR_BAR_CLASSES,ht as ADW_TOOLBAR_VIEW_CLASSES,gt as ADW_TOOLBAR_VIEW_DEFAULTS,u as ADW_TRANSLATOR_CREDITS_SENTINELS,Vi as ADW_UNDERSHOOT_CLASSES,Hi as ADW_UNDERSHOOT_SIZE,ta as ADW_WRAP_BOX_DEFAULT_ALIGN,na as ADW_WRAP_BOX_DEFAULT_JUSTIFY,ra as ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE,ia as ADW_WRAP_BOX_DEFAULT_LENGTH_UNIT,aa as ADW_WRAP_BOX_DEFAULT_PACK_DIRECTION,oa as ADW_WRAP_BOX_DEFAULT_SPACING,sa as ADW_WRAP_BOX_DEFAULT_WRAP_POLICY,ca as ADW_WRAP_BOX_JUSTIFY_MODES,la as ADW_WRAP_BOX_NATURAL_LINE_LENGTH_UNSET,ua as ADW_WRAP_BOX_PACK_DIRECTIONS,da as ADW_WRAP_POLICIES,z as AVATAR_COLORS,B as AVATAR_COLOR_COUNT,N as ActionRowState,Yt as AdwAlertResponses,ae as AdwBreakpoint,_n as AdwToast,vn as AdwToastQueue,kn as BACK_BUTTON_FALLBACK_TOOLTIP,ue as BUTTON_CONTENT_BOX_SPACING,de as BUTTON_CONTENT_FALLBACK_ICON,fe as BUTTON_CONTENT_STYLE_CLASS,P as BUTTON_ROW_ACTIVATABLE,Xt as BottomSheetPresentation,ce as BreakpointBinState,F as ButtonRowState,Qt as CAPS_LOCK_ICON_NAME,$t as CAPS_LOCK_TOOLTIP,Ge as CAROUSEL_SCROLL_TIMEOUT_MS,Ke as CAROUSEL_SETTLE_EPSILON,qe as CarouselState,xn as ComboState,zt as DATA_GRID_CELL_CLASS,Bt as DATA_GRID_ROW_CLASS,or as DEFAULT_DPI,Pr as DEFAULT_DROPDOWN_TOOLTIP,At as DEFAULT_ICON_COLOR,jt as DEFAULT_ICON_COLOR_DARK,Kr as DEFAULT_INDICATOR_DESCRIPTION_STRINGS,ur as DEFAULT_MAX_SIDEBAR_WIDTH,dr as DEFAULT_MIN_SIDEBAR_WIDTH,fr as DEFAULT_SIDEBAR_WIDTH_FRACTION,pr as DEFAULT_SIDEBAR_WIDTH_UNIT,yi as DEFAULT_TAB_AUTOHIDE,yn as DEFAULT_TOAST_TIMEOUT,en as EMPTY_ANIMATION_DURATION_MS,tn as ENTRY_ROW_APPLY_ICON_NAME,nn as ENTRY_ROW_APPLY_TOOLTIP,rn as ENTRY_ROW_EDIT_ICON_NAME,an as ENTRY_ROW_MAX_LENGTH_LIMIT,on as ENTRY_ROW_TITLE_SPACING,sn as EntryRowState,Sn as ExpanderState,d as GTK_LICENSE,hn as HeaderBarState,qr as INLINE_VIEW_SWITCHER_DISPLAY_MODES,mr as INSTANT_SPLIT_VIEW_ANIMATOR,hr as NAVIGATION_SPLIT_VIEW_CRITICALS,gr as NavigationSplitViewState,An as NavigationViewState,_r as OverlaySplitViewState,cn as PASSWORD_CONCEAL_ICON_NAME,ln as PASSWORD_CONCEAL_LABEL,un as PASSWORD_REVEAL_ICON_NAME,dn as PASSWORD_REVEAL_LABEL,Yi as POPOVER_ITEM_RADIUS,Xi as POPOVER_MENU_PADDING,Zi as POPOVER_PADDING,Qi as POPOVER_RADIUS,fn as PasswordEntryRowState,$i as PopoverState,it as RadioGroupState,Fr as SPLIT_BUTTON_DISABLED_OPACITY,Nn as SidebarState,Cn as SpinState,Ir as SplitButtonState,Ie as SwipeTracker,I as SwitchRowState,bi as TabViewState,wn as ToggleGroupState,Oi as UNTITLED_PAGE_LABEL,Jr as VIEW_SWITCHER_BADGE_LIMIT,Yr as VIEW_SWITCHER_DRAG_SWITCH_DELAY,Xr as VIEW_SWITCHER_FALLBACK_ICON,Zr as VIEW_SWITCHER_NO_SELECTION,Qr as VIEW_SWITCHER_POLICIES,En as ViewStackState,$r as ViewSwitcherBarState,ei as ViewSwitcherDragSwitch,ti as ViewSwitcherState,L as WindowTitleState,f as aboutDialogVisibility,Ui as accumulateOvershoot,Pn as adjustSidebarSelection,sr as adwLengthToPx,ot as adwLerp,E as adwaitaAccent,D as adwaitaAccentBgColor,O as adwaitaAccentColor,Mt as adwaitaColorScheme,k as adwaitaStandaloneColor,V as avatarColor,H as avatarColorClass,U as avatarFontSize,W as avatarInitials,G as avatarMaxFontSize,K as avatarMode,$ as bannerButtonStyleClasses,ee as bannerButtonText,te as bannerButtonVisible,ne as bannerRenderState,ni as buildInlineToggles,ri as buildViewSwitcherButtons,pe as buttonContentEllipsize,me as buttonContentIconExpands,he as buttonContentIconIsEmpty,ge as buttonContentIconName,_e as buttonContentLabelText,ve as buttonContentLabelVisible,ye as buttonContentRenderState,be as buttonContentStyleTargetIndex,Ce as buttonStyleClass,we as buttonStyleClasses,Je as carouselClampPosition,Ye as carouselClosestSnapPoint,Xe as carouselNavigateTarget,Ze as carouselPageAllocation,Qe as carouselPageAtPosition,$e as carouselRange,et as carouselReorderShift,tt as carouselSizesFromSnapPoints,nt as carouselSnapPoints,rt as carouselWheelStep,_t as clampAllocate,vt as clampChildSize,pn as clampEntryText,Fn as clampSidebarSelection,yt as clampSizeFromChild,bt as clampThresholds,ki as collectSearchRows,Ai as countVisiblePages,ji as createSearchRowSubtitle,ii as createViewSwitcherPage,p as creditsSections,Vt as dataGridCellText,Ht as dataGridColumnAlign,Ut as dataGridColumnClasses,Wt as dataGridRowInteractive,Gt as dataGridTrackTemplate,Kt as dataGridTracks,Mi as defaultCaseFolder,Ni as derivePreferencesGroupHeader,R as deriveRowLabels,jn as describeNavigationDiagnostic,st as easeInOutSine,ct as easeOutCubic,mn as entryTextLength,Pi as escapeMarkup,oe as evaluateBreakpointCondition,q as flattenAvatarGradient,In as flattenSidebarItems,J as gStrHash,e as gStrStrip,t as glibClamp,ai as inlineToggleTooltip,lt as inverseLerp,A as isAdwAccentColorName,re as isBannerButtonStyle,xi as isDescendantOfPage,oi as isInlineViewSwitcherDisplayMode,m as isLicenseType,Wi as isScrolledFromEnd,Gi as isScrolledFromStart,vr as isSidebarAtVisualStart,Lr as isSplitButtonDirection,Nt as isThemeIconColor,si as isViewSwitcherButtonVisible,ci as isViewSwitcherPolicy,yr as layoutNavigationSplitView,br as layoutOverlaySplitView,h as legalSectionVisible,g as licenseText,_ as licenseTypeForSpdxId,Fi as makeComparable,xr as measureSplitViewHorizontal,Rr as menuButtonArrowIcon,zr as menuButtonPopupDirection,xt as normalizeClampSize,Tn as normalizeComboOptions,qt as normalizeDataGridColumns,Jt as normalizeDataGridVariant,Dn as normalizeIconName,cr as normalizeLengthUnit,fa as normalizeNaturalLineLength,Zn as normalizeSpinnerAngle,pa as normalizeWrapBoxAlign,ma as normalizeWrapBoxJustify,ha as normalizeWrapBoxLengthUnit,ga as normalizeWrapBoxPackDirection,_a as normalizeWrapBoxSpacing,va as normalizeWrapPolicy,j as onAdwaitaAccentChanged,Pt as onAdwaitaColorSchemeChanged,Ki as overshootDistance,li as pageIndexForToggle,nr as parseAccelerator,ie as parseBannerButtonStyle,se as parseBreakpointCondition,v as parseCreditPerson,Br as parseMenuEntries,rr as parseShortcutLabel,St as parseToolbarStyle,Y as randomAvatarColorClass,Zt as resolveBottomSheetClose,at as resolveCheckState,Vr as resolveDropdownTooltip,gn as resolveHeaderBarTitle,Sr as resolveNaturalSidebarWidth,Cr as resolveNavigationAction,wr as resolveNavigationSidebarWidth,Tr as resolveNavigationStack,Er as resolveOverlaySidebarWidth,On as resolvePageTitle,ea as resolvePopoverKey,Dr as resolveSidebarBounds,Ct as resolveSpinnerSize,Or as resolveSwipeArea,kr as resolveSwipeRelease,Ar as resolveSwipeSnapPoints,jr as resolveSwipeStart,ya as resolveWrapBoxChildOrder,ba as resolveWrapBoxLine,Ii as rowMatchesQuery,qi as scrollMaxValue,Ji as scrollUndershootClasses,Li as searchPreferences,M as setAdwaitaAccent,Ft as setAdwaitaColorScheme,y as setLicense,b as setLicenseType,ir as shortcutKeycaps,ui as shouldRevealViewSwitcherBar,Ln as sidebarHeaders,Qn as spinnerArc,$n as spinnerArcEnd,er as spinnerArcStart,wt as spinnerGeometry,tr as spinnerProgressAt,Hr as splitButtonArrowIcon,Ur as splitButtonPopupDirection,Wr as splitButtonRootState,Gr as splitButtonStyleClasses,n as stringIsNotEmpty,Ri as stripMarkup,r as stripMnemonic,Si as successorAfterClose,Le as swipeBounds,Mr as swipeCancelProgress,Re as swipeClosestPointIndex,ze as swipeEndProgress,Be as swipeNextPointIndex,Ve as swipePreviousPointIndex,He as swipeProjectedPointIndex,Ue as swipeSlope,We as swipeVelocityThreshold,Ci as tabCloseVisible,wi as tabIconState,Ti as tabTooltip,Ei as tabTooltipIsMarkup,Di as tabsRevealed,Nr as tagsConflict,It as themeIconColor,Lt as toggleAdwaitaColorScheme,di as toggleIndexForPage,Tt as toolbarBarStyleClasses,Et as toolbarViewAllocate,Dt as toolbarViewClasses,Ot as toolbarViewContentForSize,kt as toolbarViewMeasure,x as translatorCreditsPeople,fi as viewSwitcherBadgeLabel,pi as viewSwitcherButtonOrientation,mi as viewSwitcherIconName,hi as viewSwitcherIndicatorDescription,gi as viewSwitcherLabel,_i as viewSwitcherPageFromStackPage,vi as viewSwitcherPagesFromStack,xa as wrapBoxChildFlex,Sa as wrapBoxFlexStyle,Ca as wrapBoxLengthToPx,wa as wrapPolicyFlexShrink};
@@ -1 +1 @@
1
- import"./_virtual/_rolldown/runtime.js";import{adwLengthToPx as e,normalizeLengthUnit as t}from"./length-unit.js";const n=[`none`,`fill`,`spread`],r=[`minimum`,`natural`],i=0,a=0,o=`none`,s=!1,c=`natural`,l=-1,u=`px`,d=`start-to-end`,f=[`start-to-end`,`end-to-start`];function normalizeWrapBoxSpacing(e){let t=typeof e==`number`?e:Number.parseFloat(String(e??``));return!Number.isFinite(t)||t<0?0:t}function normalizeWrapBoxAlign(e){let t=typeof e==`number`?e:Number.parseFloat(String(e??``));return Number.isFinite(t)?Math.min(1,Math.max(0,t)):0}function normalizeWrapBoxJustify(e){return n.includes(e)?e:o}function normalizeWrapPolicy(e){return r.includes(e)?e:c}function normalizeNaturalLineLength(e){let t=typeof e==`number`?e:Number.parseFloat(String(e??``));return!Number.isFinite(t)||t<0?-1:Math.trunc(t)}function normalizeWrapBoxLengthUnit(e){return t(e,`px`)}function normalizeWrapBoxPackDirection(e){return f.includes(e)?e:d}function wrapBoxLengthToPx(t,n,r=96){return t<0?-1:e(n,t,r)}function resolveWrapBoxLine(e){let t=e.lastLine&&!e.justifyLastLine?`none`:e.justify;if(t===`none`)return{justify:`none`,growChildren:!1,growGaps:!1,align:e.align};let n=t===`spread`&&e.childrenInLine>1;return{justify:t,growChildren:!n,growGaps:n,align:0}}function wrapPolicyFlexShrink(e){return+(e===`minimum`)}function resolveWrapBoxChildOrder(e){let{children:t,child:n,op:r}=e,i=e.sibling??null;if(i!==null&&i===n)return null;let a=t.indexOf(n);if(r===`insert-after`&&a!==-1||r===`reorder-after`&&a===-1)return null;let o=a===-1?[...t]:t.filter((e,t)=>t!==a);if(i===null)return[n,...o];let s=o.indexOf(i);return s===-1?null:[...o.slice(0,s+1),n,...o.slice(s+1)]}export{a as ADW_WRAP_BOX_DEFAULT_ALIGN,o as ADW_WRAP_BOX_DEFAULT_JUSTIFY,s as ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE,u as ADW_WRAP_BOX_DEFAULT_LENGTH_UNIT,d as ADW_WRAP_BOX_DEFAULT_PACK_DIRECTION,i as ADW_WRAP_BOX_DEFAULT_SPACING,c as ADW_WRAP_BOX_DEFAULT_WRAP_POLICY,n as ADW_WRAP_BOX_JUSTIFY_MODES,l as ADW_WRAP_BOX_NATURAL_LINE_LENGTH_UNSET,f as ADW_WRAP_BOX_PACK_DIRECTIONS,r as ADW_WRAP_POLICIES,normalizeNaturalLineLength,normalizeWrapBoxAlign,normalizeWrapBoxJustify,normalizeWrapBoxLengthUnit,normalizeWrapBoxPackDirection,normalizeWrapBoxSpacing,normalizeWrapPolicy,resolveWrapBoxChildOrder,resolveWrapBoxLine,wrapBoxLengthToPx,wrapPolicyFlexShrink};
1
+ import"./_virtual/_rolldown/runtime.js";import{adwLengthToPx as e,normalizeLengthUnit as t}from"./length-unit.js";const n=[`none`,`fill`,`spread`],r=[`minimum`,`natural`],i=0,a=0,o=`none`,s=!1,c=`natural`,l=-1,u=`px`,d=`start-to-end`,f=[`start-to-end`,`end-to-start`];function normalizeWrapBoxSpacing(e){let t=typeof e==`number`?e:Number.parseFloat(String(e??``));return!Number.isFinite(t)||t<0?0:t}function normalizeWrapBoxAlign(e){let t=typeof e==`number`?e:Number.parseFloat(String(e??``));return Number.isFinite(t)?Math.min(1,Math.max(0,t)):0}function normalizeWrapBoxJustify(e){return n.includes(e)?e:o}function normalizeWrapPolicy(e){return r.includes(e)?e:c}function normalizeNaturalLineLength(e){let t=typeof e==`number`?e:Number.parseFloat(String(e??``));return!Number.isFinite(t)||t<0?-1:Math.trunc(t)}function normalizeWrapBoxLengthUnit(e){return t(e,`px`)}function normalizeWrapBoxPackDirection(e){return f.includes(e)?e:d}function wrapBoxLengthToPx(t,n,r=96){return t<0?-1:e(n,t,r)}function resolveWrapBoxLine(e){let t=e.lastLine&&!e.justifyLastLine?`none`:e.justify;if(t===`none`)return{justify:`none`,growChildren:!1,growGaps:!1,align:e.align};let n=t===`spread`&&e.childrenInLine>1;return{justify:t,growChildren:!n,growGaps:n,align:0}}function wrapPolicyFlexShrink(e){return+(e===`minimum`)}function alignToJustifyContent(e){return e<.25?`flex-start`:e<.75?`center`:`flex-end`}function wrapBoxFlexStyle(e){let t=e.orientation===`vertical`?`column`:`row`,n=resolveWrapBoxLine({justify:e.justify,justifyLastLine:e.justifyLastLine,align:e.align,lastLine:!1,childrenInLine:2});return{flexDirection:e.packDirection===`end-to-start`?`${t}-reverse`:t,flexWrap:e.wrapReverse?`wrap-reverse`:`wrap`,justifyContent:n.growGaps?`space-between`:alignToJustifyContent(n.align),alignContent:e.lineHomogeneous?`stretch`:`flex-start`,childFlexGrow:+!!n.growChildren,childFlexShrink:wrapPolicyFlexShrink(e.wrapPolicy)}}function wrapBoxChildFlex(e,t){let n=t===1;return{flexGrow:+!!resolveWrapBoxLine({justify:e.justify,justifyLastLine:e.justifyLastLine,align:e.align,lastLine:n,childrenInLine:n?1:2}).growChildren,flexShrink:wrapPolicyFlexShrink(e.wrapPolicy)}}function resolveWrapBoxChildOrder(e){let{children:t,child:n,op:r}=e,i=e.sibling??null;if(i!==null&&i===n)return null;let a=t.indexOf(n);if(r===`insert-after`&&a!==-1||r===`reorder-after`&&a===-1)return null;let o=a===-1?[...t]:t.filter((e,t)=>t!==a);if(i===null)return[n,...o];let s=o.indexOf(i);return s===-1?null:[...o.slice(0,s+1),n,...o.slice(s+1)]}export{a as ADW_WRAP_BOX_DEFAULT_ALIGN,o as ADW_WRAP_BOX_DEFAULT_JUSTIFY,s as ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE,u as ADW_WRAP_BOX_DEFAULT_LENGTH_UNIT,d as ADW_WRAP_BOX_DEFAULT_PACK_DIRECTION,i as ADW_WRAP_BOX_DEFAULT_SPACING,c as ADW_WRAP_BOX_DEFAULT_WRAP_POLICY,n as ADW_WRAP_BOX_JUSTIFY_MODES,l as ADW_WRAP_BOX_NATURAL_LINE_LENGTH_UNSET,f as ADW_WRAP_BOX_PACK_DIRECTIONS,r as ADW_WRAP_POLICIES,normalizeNaturalLineLength,normalizeWrapBoxAlign,normalizeWrapBoxJustify,normalizeWrapBoxLengthUnit,normalizeWrapBoxPackDirection,normalizeWrapBoxSpacing,normalizeWrapPolicy,resolveWrapBoxChildOrder,resolveWrapBoxLine,wrapBoxChildFlex,wrapBoxFlexStyle,wrapBoxLengthToPx,wrapPolicyFlexShrink};
@@ -1,5 +1,19 @@
1
1
  /** The style class `AdwButtonContent` stamps on its parent button, removed on unroot. */
2
2
  export declare const BUTTON_CONTENT_STYLE_CLASS = "image-text-button";
3
+ /**
4
+ * The gap between the icon and the label, in px.
5
+ *
6
+ * MEASURED rather than read off a selector, because the selector is easy to read
7
+ * wrong — the header above says why `_buttons.scss`'s 4px variant never reaches an
8
+ * `AdwButtonContent`. Against libadwaita 1.9.3: an `AdwButtonContent` with
9
+ * `icon-name` and `label` inside a `GtkButton` in a presented window puts the image
10
+ * at x=161 width=16 and the label at x=183, i.e. exactly 6px apart.
11
+ *
12
+ * It is `border-spacing` on `buttoncontent > box` and NOT `GtkBox:spacing`, which
13
+ * reads 0 on the same widget — a renderer copying the property would draw them
14
+ * touching.
15
+ */
16
+ export declare const BUTTON_CONTENT_BOX_SPACING = 6;
3
17
  /** The icon `GtkImage` falls back to for an empty `icon-name`. */
4
18
  export declare const BUTTON_CONTENT_FALLBACK_ICON = "image-missing";
5
19
  /** How `can-shrink` reaches the label — `PangoEllipsizeMode` as a string union. */
@@ -41,13 +41,13 @@ export interface PopoverKeyVector {
41
41
  rule: string;
42
42
  }
43
43
  /**
44
- * `resolvePopoverKey` — the wrap arithmetic `adw-menu-button.ts` and
45
- * `adw-drop-down.ts` each carried a copy of, reconciled.
44
+ * `resolvePopoverKey` — the wrap arithmetic `gtk-menu-button.ts` and
45
+ * `gtk-drop-down.ts` each carried a copy of, reconciled.
46
46
  *
47
47
  * The rows that matter are the ones the two copies got WRONG rather than merely
48
48
  * duplicated: ArrowUp from an unfocused list (both computed `n - 2`), and Home/End while a
49
49
  * search entry owns the caret (the drop-down stole both).
50
50
  *
51
- * CORE-ONLY: GAP — `adw-popover` calls `resolvePopoverKey` on keydown but publishes no readable outcome for a spec to compare. Tracked in #1072
51
+ * CORE-ONLY: GAP — `gtk-popover` calls `resolvePopoverKey` on keydown but publishes no readable outcome for a spec to compare. Tracked in #1072
52
52
  */
53
53
  export declare const POPOVER_KEY_VECTORS: ReadonlyArray<PopoverKeyVector>;
@@ -100,7 +100,7 @@ export interface ViewStackIconNameVector {
100
100
  * that appeared exactly ONCE (`<adw-split-button>`) and was missing from every
101
101
  * other copy.
102
102
  *
103
- * The guard rows are not hypothetical: `<adw-menu-button>` interpolated the raw
103
+ * The guard rows are not hypothetical: `<gtk-menu-button>` interpolated the raw
104
104
  * name into `class="adw-icon adw-menu-button-icon adw-icon--<name>"`, so
105
105
  * `icon-name="a b"` shipped a stray `b` class — for its own icon and for every
106
106
  * JSON menu entry's. NOTHING in the build was in a position to notice, because
@@ -6,7 +6,7 @@ export { AVATAR_COLOR_COUNT, AVATAR_COLORS, avatarColor, avatarColorClass, avata
6
6
  export type { AdwAvatarColor, AdwAvatarMode } from './avatar.js';
7
7
  export { ADW_BANNER_BUTTON_STYLES, ADW_BANNER_BUTTON_STYLE_CLASSES, ADW_BANNER_DEFAULTS, bannerButtonStyleClasses, bannerButtonText, bannerButtonVisible, bannerRenderState, isBannerButtonStyle, parseBannerButtonStyle, } from './banner.js';
8
8
  export type { AdwBannerButtonStyle, AdwBannerProps, AdwBannerRenderState } from './banner.js';
9
- export { ADW_BUTTON_CONTENT_DEFAULTS, BUTTON_CONTENT_FALLBACK_ICON, BUTTON_CONTENT_STYLE_CLASS, buttonContentEllipsize, buttonContentIconExpands, buttonContentIconIsEmpty, buttonContentIconName, buttonContentLabelText, buttonContentLabelVisible, buttonContentRenderState, buttonContentStyleTargetIndex, } from './button-content.js';
9
+ export { ADW_BUTTON_CONTENT_DEFAULTS, BUTTON_CONTENT_BOX_SPACING, BUTTON_CONTENT_FALLBACK_ICON, BUTTON_CONTENT_STYLE_CLASS, buttonContentEllipsize, buttonContentIconExpands, buttonContentIconIsEmpty, buttonContentIconName, buttonContentLabelText, buttonContentLabelVisible, buttonContentRenderState, buttonContentStyleTargetIndex, } from './button-content.js';
10
10
  export type { AdwButtonContentProps, AdwButtonContentRenderState, ButtonContentAncestor, ButtonContentEllipsize, } from './button-content.js';
11
11
  export { ADW_BUTTON_STYLE_ALIASES, ADW_BUTTON_STYLE_CLASSES, buttonStyleClass, buttonStyleClasses } from './button.js';
12
12
  export type { AdwButtonStyleClass } from './button.js';
@@ -66,5 +66,5 @@ export { ADW_MAX_OVERSHOOT_DISTANCE, ADW_OVERSHOOT_SETTLE_MS, ADW_UNDERSHOOT_CLA
66
66
  export type { ScrollAdjustment, ScrollAdjustments } from './scrolling.js';
67
67
  export { POPOVER_ITEM_RADIUS, POPOVER_MENU_PADDING, POPOVER_PADDING, POPOVER_RADIUS, PopoverState, resolvePopoverKey, } from './popover.js';
68
68
  export type { PopoverKeyAction, PopoverKeyContext, PopoverKeyResolution, PopoverStateChange, PopoverStateListener, } from './popover.js';
69
- export { ADW_WRAP_BOX_DEFAULT_ALIGN, ADW_WRAP_BOX_DEFAULT_JUSTIFY, ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE, ADW_WRAP_BOX_DEFAULT_LENGTH_UNIT, ADW_WRAP_BOX_DEFAULT_PACK_DIRECTION, ADW_WRAP_BOX_DEFAULT_SPACING, ADW_WRAP_BOX_DEFAULT_WRAP_POLICY, ADW_WRAP_BOX_JUSTIFY_MODES, ADW_WRAP_BOX_NATURAL_LINE_LENGTH_UNSET, ADW_WRAP_BOX_PACK_DIRECTIONS, ADW_WRAP_POLICIES, normalizeNaturalLineLength, normalizeWrapBoxAlign, normalizeWrapBoxJustify, normalizeWrapBoxLengthUnit, normalizeWrapBoxPackDirection, normalizeWrapBoxSpacing, normalizeWrapPolicy, resolveWrapBoxChildOrder, resolveWrapBoxLine, wrapBoxLengthToPx, wrapPolicyFlexShrink, } from './wrap-box.js';
70
- export type { AdwWrapBoxJustify, AdwWrapBoxOrientation, AdwWrapBoxPackDirection, AdwWrapPolicy, WrapBoxChildOrderOp, WrapBoxLineLayout, } from './wrap-box.js';
69
+ export { ADW_WRAP_BOX_DEFAULT_ALIGN, ADW_WRAP_BOX_DEFAULT_JUSTIFY, ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE, ADW_WRAP_BOX_DEFAULT_LENGTH_UNIT, ADW_WRAP_BOX_DEFAULT_PACK_DIRECTION, ADW_WRAP_BOX_DEFAULT_SPACING, ADW_WRAP_BOX_DEFAULT_WRAP_POLICY, ADW_WRAP_BOX_JUSTIFY_MODES, ADW_WRAP_BOX_NATURAL_LINE_LENGTH_UNSET, ADW_WRAP_BOX_PACK_DIRECTIONS, ADW_WRAP_POLICIES, normalizeNaturalLineLength, normalizeWrapBoxAlign, normalizeWrapBoxJustify, normalizeWrapBoxLengthUnit, normalizeWrapBoxPackDirection, normalizeWrapBoxSpacing, normalizeWrapPolicy, resolveWrapBoxChildOrder, resolveWrapBoxLine, wrapBoxChildFlex, wrapBoxFlexStyle, wrapBoxLengthToPx, wrapPolicyFlexShrink, } from './wrap-box.js';
70
+ export type { AdwWrapBoxJustify, AdwWrapBoxOrientation, AdwWrapBoxPackDirection, AdwWrapPolicy, WrapBoxChildFlex, WrapBoxChildOrderOp, WrapBoxFlexInput, WrapBoxFlexStyle, WrapBoxLineLayout, } from './wrap-box.js';
@@ -42,7 +42,7 @@ export type PopoverStateListener = (change: PopoverStateChange) => void;
42
42
  *
43
43
  * NAMING: an `open` GETTER means the mutators cannot also be `open()`/`close()`, so
44
44
  * they take GTK's vocabulary ({@link popup} / {@link popdown}, after
45
- * `adw_split_button_popup()` / `..._popdown()`) — which is what `<adw-popover>`
45
+ * `adw_split_button_popup()` / `..._popdown()`) — which is what `<gtk-popover>`
46
46
  * exposes too.
47
47
  *
48
48
  * Idempotent: setting the current value again is a no-op and notifies nobody.
@@ -46,7 +46,7 @@ export type AdwComboOptionInput = string | {
46
46
  * A bare string is both value and label (`Gtk.StringList`'s model, which is what
47
47
  * `Adw.ComboRow` is fed in the common case). In a descriptor either half stands in for the
48
48
  * missing other, so `{ label: 'Apple' }` is addressable by the value `'Apple'` rather than
49
- * by `undefined`. ONE home for the rule, so `<adw-combo-row>` and `<adw-drop-down>` cannot
49
+ * by `undefined`. ONE home for the rule, so `<adw-combo-row>` and `<gtk-drop-down>` cannot
50
50
  * accept two different option vocabularies.
51
51
  */
52
52
  export declare function normalizeComboOptions(raw: ReadonlyArray<AdwComboOptionInput> | null | undefined): AdwComboOption[];
@@ -140,7 +140,7 @@ export declare class ComboState {
140
140
  * GtkSingleSelection does with it is not verifiable here. Each renderer therefore states
141
141
  * its own answer against this one predicate: {@link setSelectedIndex} keeps the permissive
142
142
  * model (an index past the end is how "nothing selected" is spelled and
143
- * {@link selectedValue} reads `''`), while `<adw-drop-down>` rejects the set, as its
143
+ * {@link selectedValue} reads `''`), while `<gtk-drop-down>` rejects the set, as its
144
144
  * published `selected` docs promise.
145
145
  */
146
146
  hasIndex(index: number): boolean;
@@ -112,6 +112,62 @@ export declare function resolveWrapBoxLine(input: {
112
112
  * no policy silently draws the one Adwaita does not choose.
113
113
  */
114
114
  export declare function wrapPolicyFlexShrink(policy: AdwWrapPolicy): number;
115
+ /** The flexbox knobs a wrap box's properties resolve to. */
116
+ export interface WrapBoxFlexStyle {
117
+ /** The main axis, reversed for `end-to-start`. */
118
+ flexDirection: 'row' | 'row-reverse' | 'column' | 'column-reverse';
119
+ /** Always wrapping; reversed by `wrap-reverse`. */
120
+ flexWrap: 'wrap' | 'wrap-reverse';
121
+ /** Where a COMPLETE line's leftover space goes. */
122
+ justifyContent: 'flex-start' | 'center' | 'flex-end' | 'space-between';
123
+ /** `line-homogeneous` stretches the lines across the cross axis. */
124
+ alignContent: 'stretch' | 'flex-start';
125
+ /** `flex-grow` for a child on a complete line. */
126
+ childFlexGrow: number;
127
+ /** `flex-shrink` for every child — `wrap-policy`. */
128
+ childFlexShrink: number;
129
+ }
130
+ /** The widget properties {@link wrapBoxFlexStyle} and {@link wrapBoxChildFlex} read. */
131
+ export interface WrapBoxFlexInput {
132
+ orientation: AdwWrapBoxOrientation;
133
+ packDirection: AdwWrapBoxPackDirection;
134
+ wrapReverse: boolean;
135
+ justify: AdwWrapBoxJustify;
136
+ justifyLastLine: boolean;
137
+ align: number;
138
+ lineHomogeneous: boolean;
139
+ wrapPolicy: AdwWrapPolicy;
140
+ }
141
+ /**
142
+ * The CONTAINER half of the line decision, resolved onto flexbox.
143
+ *
144
+ * The line DECISION is {@link resolveWrapBoxLine}, held to `WRAP_BOX_LINE_VECTORS`;
145
+ * this only maps its answer onto the knobs a flex container has. A flex container has
146
+ * ONE `justify-content` for every line, so it can carry the COMPLETE-line rule and
147
+ * nothing else — the final-line rule needs a per-child answer
148
+ * ({@link wrapBoxChildFlex}) or, in a browser, a `:only-child` selector.
149
+ */
150
+ export declare function wrapBoxFlexStyle(input: WrapBoxFlexInput): WrapBoxFlexStyle;
151
+ /** What one child of the box gets set on it. */
152
+ export interface WrapBoxChildFlex {
153
+ /** `flex-grow` — whether this child absorbs its line's leftover. */
154
+ flexGrow: number;
155
+ /** `flex-shrink` — `wrap-policy`, the same for every child. */
156
+ flexShrink: number;
157
+ }
158
+ /**
159
+ * The PER-CHILD half of the decision, which the container knobs cannot carry.
160
+ *
161
+ * A box with exactly ONE child has one line, that line is the LAST one, and its child
162
+ * is alone on it — so it is governed by `justify-last-line`, and `spread` STRETCHES it
163
+ * rather than spreading anything (C guards the keep-at-minimum branch with
164
+ * `n_children > 1`).
165
+ *
166
+ * `childCount` is the box's own child count, the most a renderer knows without a layout
167
+ * pass: 1 is the lone-child-on-the-final-line case exactly, anything more means at
168
+ * least one complete line.
169
+ */
170
+ export declare function wrapBoxChildFlex(input: WrapBoxFlexInput, childCount: number): WrapBoxChildFlex;
115
171
  /** Which child-list operation is being resolved. */
116
172
  export type WrapBoxChildOrderOp = 'insert-after' | 'reorder-after';
117
173
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/adwaita-core",
3
- "version": "0.45.0",
3
+ "version": "0.46.0",
4
4
  "description": "Headless Adwaita widget behavior (breakpoint condition grammar + apply/unapply state machine, color-scheme observable, avatar derivation) shared by the web and NativeScript Adwaita renderers — pure TS, no platform imports",
5
5
  "type": "module",
6
6
  "module": "lib/esm/index.js",
@@ -50,8 +50,8 @@
50
50
  "headless"
51
51
  ],
52
52
  "devDependencies": {
53
- "@gjsify/cli": "^0.45.0",
54
- "@gjsify/unit": "^0.45.0",
53
+ "@gjsify/cli": "^0.46.0",
54
+ "@gjsify/unit": "^0.46.0",
55
55
  "@types/node": "^25.9.2",
56
56
  "typescript": "^6.0.3"
57
57
  },