@gjsify/adwaita-core 0.53.0 → 0.55.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.
Files changed (50) hide show
  1. package/lib/esm/box-selection.js +1 -0
  2. package/lib/esm/breakpoint-driver.js +1 -0
  3. package/lib/esm/calendar.js +1 -0
  4. package/lib/esm/conformance/box-selection.js +1 -0
  5. package/lib/esm/conformance/calendar.js +1 -0
  6. package/lib/esm/conformance/constructs.js +2 -0
  7. package/lib/esm/conformance/grid-navigation.js +1 -0
  8. package/lib/esm/conformance/index.js +1 -1
  9. package/lib/esm/conformance/list-view.js +1 -0
  10. package/lib/esm/conformance/tab-view.js +1 -1
  11. package/lib/esm/conformance/tree-expander.js +1 -0
  12. package/lib/esm/conformance/view-switcher.js +1 -1
  13. package/lib/esm/grid-navigation.js +1 -0
  14. package/lib/esm/index.js +1 -1
  15. package/lib/esm/list-view.js +1 -0
  16. package/lib/esm/tab-view.js +1 -1
  17. package/lib/esm/tokens.generated.js +1 -1
  18. package/lib/esm/tree-expander.js +1 -0
  19. package/lib/esm/view-stack.js +1 -1
  20. package/lib/esm/view-switcher.js +1 -1
  21. package/lib/types/box-selection.d.ts +104 -0
  22. package/lib/types/box-selection.spec.d.ts +2 -0
  23. package/lib/types/breakpoint-driver.d.ts +31 -0
  24. package/lib/types/breakpoint-driver.spec.d.ts +2 -0
  25. package/lib/types/calendar.d.ts +142 -0
  26. package/lib/types/calendar.spec.d.ts +2 -0
  27. package/lib/types/conformance/box-selection.d.ts +47 -0
  28. package/lib/types/conformance/breakpoint-bin.d.ts +11 -8
  29. package/lib/types/conformance/calendar.d.ts +71 -0
  30. package/lib/types/conformance/constructs.d.ts +86 -0
  31. package/lib/types/conformance/grid-navigation.d.ts +12 -0
  32. package/lib/types/conformance/index.d.ts +16 -4
  33. package/lib/types/conformance/list-view.d.ts +56 -0
  34. package/lib/types/conformance/shared-trees.d.ts +70 -0
  35. package/lib/types/conformance/tab-view.d.ts +29 -0
  36. package/lib/types/conformance/tree-expander.d.ts +29 -0
  37. package/lib/types/conformance/view-switcher.d.ts +25 -0
  38. package/lib/types/constructs.spec.d.ts +2 -0
  39. package/lib/types/grid-navigation.d.ts +11 -0
  40. package/lib/types/grid-navigation.spec.d.ts +2 -0
  41. package/lib/types/index.d.ts +14 -3
  42. package/lib/types/list-view.d.ts +276 -0
  43. package/lib/types/list-view.spec.d.ts +2 -0
  44. package/lib/types/sidebar.d.ts +9 -0
  45. package/lib/types/tab-view.d.ts +27 -0
  46. package/lib/types/tree-expander.d.ts +83 -0
  47. package/lib/types/tree-expander.spec.d.ts +2 -0
  48. package/lib/types/view-stack.d.ts +11 -0
  49. package/lib/types/view-switcher.d.ts +28 -0
  50. package/package.json +3 -3
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,formatAdwRgb as A,isAdwAccentColorName as j,nearestAccent as M,onAdwaitaAccentChanged as N,parseAdwRgb as P,setAdwaitaAccent as F}from"./accent.js";import{ActionRowState as I,BUTTON_ROW_ACTIVATABLE as L,ButtonRowState as R,SwitchRowState as z,WindowTitleState as B,deriveRowLabels as V}from"./action-row.js";import{ADW_ADJUSTMENT_DEFAULTS as H,SpinState as U,adjustmentRange as W,clampAdjustmentValue as G,normalizeAdjustment as K,parseAdjustment as q,snapAdjustmentValue as J}from"./adjustment.js";import{ADW_ACCENT_META as Y,ADW_ACCENT_META_SYSTEM as X,ADW_COLOR_SCHEME_META as Z,ADW_SYSTEM_COLOR_SCHEMES as Q,appearanceFromMeta as $,isAdwSystemColorScheme as ee,parseDesktopAppearance as te,renderAppearanceMeta as ne}from"./appearance.js";import{APPLE_ACCENT_COLORS as re,APPLE_MULTICOLOR_ACCENT as ie,adwAccentFromAppleAccentColor as ae}from"./apple-accent.js";import{AVATAR_COLORS as oe,AVATAR_COLOR_COUNT as se,avatarColor as ce,avatarColorClass as le,avatarFontSize as ue,avatarIconSize as de,avatarInitials as fe,avatarMaxFontSize as pe,avatarMode as me,flattenAvatarGradient as he,gStrHash as ge,randomAvatarColorClass as _e}from"./avatar.js";import{ADW_BANNER_BUTTON_STYLES as ve,ADW_BANNER_BUTTON_STYLE_CLASSES as ye,ADW_BANNER_DEFAULTS as be,bannerButtonStyleClasses as xe,bannerButtonText as Se,bannerButtonVisible as Ce,bannerRenderState as we,isBannerButtonStyle as Te,parseBannerButtonStyle as Ee}from"./banner.js";import{DEFAULT_BOX_SPACING as De,normalizeBoxOrientation as Oe,normalizeBoxSpacing as ke}from"./box.js";import{AdwBreakpoint as Ae,evaluateBreakpointCondition as je,parseBreakpointCondition as Me}from"./breakpoint.js";import{BreakpointBinState as Ne}from"./breakpoint-bin.js";import{ADW_BUTTON_CONTENT_DEFAULTS as Pe,BUTTON_CONTENT_BOX_SPACING as Fe,BUTTON_CONTENT_FALLBACK_ICON as Ie,BUTTON_CONTENT_STYLE_CLASS as Le,buttonContentEllipsize as Re,buttonContentIconExpands as ze,buttonContentIconIsEmpty as Be,buttonContentIconName as Ve,buttonContentLabelText as He,buttonContentLabelVisible as Ue,buttonContentRenderState as We,buttonContentStyleTargetIndex as Ge}from"./button-content.js";import{ADW_BUTTON_STYLE_ALIASES as Ke,ADW_BUTTON_STYLE_CLASSES as qe,buttonStyleClass as Je,buttonStyleClasses as Ye}from"./button.js";import{ADW_SWIPE_DECELERATION_TOUCH as Xe,ADW_SWIPE_DECELERATION_TOUCHPAD as Ze,ADW_SWIPE_DRAG_THRESHOLD as Qe,ADW_SWIPE_EPSILON as $e,ADW_SWIPE_HISTORY_THRESHOLD_MS as et,ADW_SWIPE_PARABOLA_MULTIPLIER as tt,ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_H as nt,ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_V as rt,ADW_SWIPE_VELOCITY_CURVE_THRESHOLD as it,ADW_SWIPE_VELOCITY_THRESHOLD_TOUCH as at,ADW_SWIPE_VELOCITY_THRESHOLD_TOUCHPAD as ot,SwipeTracker as st,swipeBounds as ct,swipeClosestPointIndex as lt,swipeEndProgress as ut,swipeNextPointIndex as dt,swipePreviousPointIndex as ft,swipeProjectedPointIndex as pt,swipeSlope as mt,swipeVelocityThreshold as ht}from"./swipe.js";import{CAROUSEL_SCROLL_TIMEOUT_MS as gt,CAROUSEL_SETTLE_EPSILON as _t,CarouselState as vt,carouselClampPosition as yt,carouselClosestSnapPoint as bt,carouselNavigateTarget as xt,carouselPageAllocation as St,carouselPageAtPosition as Ct,carouselRange as wt,carouselReorderShift as Tt,carouselSizesFromSnapPoints as Et,carouselSnapPoints as Dt,carouselWheelStep as Ot}from"./carousel.js";import{RadioGroupState as kt,resolveCheckState as At}from"./checks.js";import{adwLerp as jt,easeInOutSine as Mt,easeOutCubic as Nt,inverseLerp as Pt}from"./easing.js";import{ADW_CLAMP_DEFAULTS as Ft,ADW_CLAMP_SIZE_CLASSES as It,ADW_SPINNER_MAX_SIZE as Lt,ADW_SPINNER_MIN_SIZE as Rt,ADW_TOOLBAR_BAR_CLASSES as zt,ADW_TOOLBAR_VIEW_CLASSES as Bt,ADW_TOOLBAR_VIEW_DEFAULTS as Vt,clampAllocate as Ht,clampChildSize as Ut,clampSizeFromChild as Wt,clampThresholds as Gt,normalizeClampSize as Kt,parseToolbarStyle as qt,resolveSpinnerSize as Jt,spinnerGeometry as Yt,toolbarBarStyleClasses as Xt,toolbarViewAllocate as Zt,toolbarViewClasses as Qt,toolbarViewContentForSize as $t,toolbarViewMeasure as en}from"./chrome.js";import{DEFAULT_ICON_COLOR as tn,DEFAULT_ICON_COLOR_DARK as nn,adwaitaColorScheme as rn,isThemeIconColor as an,onAdwaitaColorSchemeChanged as on,setAdwaitaColorScheme as sn,themeIconColor as cn,toggleAdwaitaColorScheme as ln}from"./color-scheme.js";import{ViewStackState as un,normalizeIconName as dn,resolvePageTitle as fn}from"./view-stack.js";import{DEFAULT_TAB_AUTOHIDE as pn,TabViewState as mn,isDescendantOfPage as hn,successorAfterClose as gn,tabCloseVisible as _n,tabIconState as vn,tabTooltip as yn,tabTooltipIsMarkup as bn,tabViewItemsChanged as xn,tabsRevealed as Sn}from"./tab-view.js";import{ADW_DATA_GRID_ROW_VARIANTS as Cn,DATA_GRID_CELL_CLASS as wn,DATA_GRID_ROW_CLASS as Tn,dataGridCellText as En,dataGridColumnAlign as Dn,dataGridColumnClasses as On,dataGridRowInteractive as kn,dataGridTrackTemplate as An,dataGridTracks as jn,normalizeDataGridColumns as Mn,normalizeDataGridVariant as Nn}from"./data-grid.js";import{AdwAlertResponses as Pn,BottomSheetPresentation as Fn,resolveBottomSheetChrome as In,resolveBottomSheetClose as Ln,resolveBottomSheetOpen as Rn,resolveBottomSheetSwipeTracker as zn}from"./dialog.js";import{CAPS_LOCK_ICON_NAME as Bn,CAPS_LOCK_TOOLTIP as Vn,EMPTY_ANIMATION_DURATION_MS as Hn,ENTRY_ROW_APPLY_ICON_NAME as Un,ENTRY_ROW_APPLY_TOOLTIP as Wn,ENTRY_ROW_EDIT_ICON_NAME as Gn,ENTRY_ROW_MAX_LENGTH_LIMIT as Kn,ENTRY_ROW_TITLE_SPACING as qn,EntryRowState as Jn,PASSWORD_CONCEAL_ICON_NAME as Yn,PASSWORD_CONCEAL_LABEL as Xn,PASSWORD_REVEAL_ICON_NAME as Zn,PASSWORD_REVEAL_LABEL as Qn,PasswordEntryRowState as $n,clampEntryText as er,entryTextLength as tr}from"./entry-row.js";import{GioMenu as nr,GioMenuItem as rr}from"./gio-menu.js";import{GtkAdjustment as ir}from"./gtk-adjustment.js";import{GtkStringList as ar}from"./gtk-string-list.js";import{HeaderBarState as or,resolveHeaderBarTitle as sr}from"./header-bar.js";import{AdwToast as cr,AdwToastQueue as lr,DEFAULT_TOAST_TIMEOUT as ur}from"./toast.js";import{ADW_COMBO_NO_SELECTION as dr,clampListSelection as fr,listItemsChanged as pr,normalizeComboOptions as mr,parseListModel as hr}from"./list.js";import{ComboState as gr,ExpanderState as _r,ToggleGroupState as vr,keptToggles as yr,toggleIndexOfName as br}from"./rows.js";import{UNTITLED_PAGE_LABEL as xr,collectSearchRows as Sr,countVisiblePages as Cr,createSearchRowSubtitle as wr,defaultCaseFolder as Tr,derivePreferencesGroupHeader as Er,escapeMarkup as Dr,makeComparable as Or,rowMatchesQuery as kr,searchPreferences as Ar,stripMarkup as jr}from"./preferences.js";import{DEFAULT_LABEL_ELLIPSIZE as Mr,DEFAULT_LABEL_LINES as Nr,DEFAULT_LABEL_MAX_WIDTH_CHARS as Pr,DEFAULT_LABEL_WIDTH_CHARS as Fr,DEFAULT_LABEL_WRAP_MODE as Ir,DEFAULT_LABEL_XALIGN as Lr,DEFAULT_LABEL_YALIGN as Rr,LABEL_ELLIPSIZE_MODES as zr,LABEL_JUSTIFICATIONS as Br,LABEL_WRAP_MODES as Vr,labelDisplayText as Hr,labelEffectiveLines as Ur,labelEllipsizeOverflowValue as Wr,labelMarkupIsUnparseable as Gr,labelWidthCharsExtent as Kr,labelYalignAlignItems as qr,normalizeLabelEllipsize as Jr,normalizeLabelJustify as Yr,normalizeLabelLines as Xr,normalizeLabelMaxWidthChars as Zr,normalizeLabelWidthChars as Qr,normalizeLabelWrapMode as $r,normalizeLabelXalign as ei,normalizeLabelYalign as ti}from"./label.js";import{BACK_BUTTON_FALLBACK_TOOLTIP as ni,NavigationViewState as ri,describeNavigationDiagnostic as ii}from"./navigation-view.js";import{ADW_SIDEBAR_NO_SELECTION as ai,SidebarState as oi,adjustSidebarSelection as si,clampSidebarSelection as ci,flattenSidebarItems as li,sidebarHeaders as ui}from"./sidebar.js";import{ADW_SPINNER_CONTRACT_DISTANCE as di,ADW_SPINNER_CYCLES_PER_LOOP as fi,ADW_SPINNER_CYCLE_LENGTH as pi,ADW_SPINNER_EXTEND_DISTANCE as mi,ADW_SPINNER_IDLE_DISTANCE as hi,ADW_SPINNER_MAX_ARC_LENGTH as gi,ADW_SPINNER_MIN_ARC_LENGTH as _i,ADW_SPINNER_N_CYCLES as vi,ADW_SPINNER_OVERLAP_DISTANCE as yi,ADW_SPINNER_SPIN_DURATION_MS as bi,ADW_SPINNER_START_ANGLE as xi,ADW_SPINNER_STILL_PROGRESS as Si,ADW_SPINNER_TRACK_OPACITY as Ci,normalizeSpinnerAngle as wi,spinnerArc as Ti,spinnerArcEnd as Ei,spinnerArcStart as Di,spinnerProgressAt as Oi}from"./spinner.js";import{parseAccelerator as ki,parseShortcutLabel as Ai,shortcutKeycaps as ji}from"./shortcut-label.js";import{formatAcceleratorLabel as Mi,formatManifestShortcut as Ni}from"./shortcut-format.js";import{ADW_LENGTH_UNITS as Pi,DEFAULT_DPI as Fi,adwLengthToPx as Ii,normalizeLengthUnit as Li}from"./length-unit.js";import{ADW_SWIPE_BORDER as Ri,DEFAULT_MAX_SIDEBAR_WIDTH as zi,DEFAULT_MIN_SIDEBAR_WIDTH as Bi,DEFAULT_SIDEBAR_WIDTH_FRACTION as Vi,DEFAULT_SIDEBAR_WIDTH_UNIT as Hi,INSTANT_SPLIT_VIEW_ANIMATOR as Ui,NAVIGATION_SPLIT_VIEW_CRITICALS as Wi,NavigationSplitViewState as Gi,OverlaySplitViewState as Ki,isSidebarAtVisualStart as qi,layoutNavigationSplitView as Ji,layoutOverlaySplitView as Yi,measureSplitViewHorizontal as Xi,resolveNaturalSidebarWidth as Zi,resolveNavigationAction as Qi,resolveNavigationSidebarWidth as $i,resolveNavigationStack as ea,resolveOverlaySidebarWidth as ta,resolveSidebarBounds as na,resolveSwipeArea as ra,resolveSwipeRelease as ia,resolveSwipeSnapPoints as aa,resolveSwipeStart as oa,swipeCancelProgress as sa,tagsConflict as ca}from"./split-view.js";import{ADW_MENU_SURFACE_NATIVESCRIPT as la,ADW_MENU_SURFACE_WEB as ua,assertMenuRenderable as da,flattenMenu as fa,menuItemAt as pa,menuNodeAt as ma,menuRefusals as ha,normalizeMenuModel as ga,parseDetailedAction as _a,parseMenuModel as va,resolveMenuItemState as ya}from"./menu.js";import{DEFAULT_DROPDOWN_TOOLTIP as ba,SPLIT_BUTTON_DISABLED_OPACITY as xa,SplitButtonState as Sa,isSplitButtonDirection as Ca,menuButtonArrowIcon as wa,menuButtonPopupDirection as Ta,resolveDropdownTooltip as Ea,splitButtonArrowIcon as Da,splitButtonPopupDirection as Oa,splitButtonRootState as ka,splitButtonStyleClasses as Aa}from"./split-button.js";import{DEFAULT_INDICATOR_DESCRIPTION_STRINGS as ja,INLINE_VIEW_SWITCHER_DISPLAY_MODES as Ma,VIEW_SWITCHER_BADGE_LIMIT as Na,VIEW_SWITCHER_DRAG_SWITCH_DELAY as Pa,VIEW_SWITCHER_FALLBACK_ICON as Fa,VIEW_SWITCHER_NO_SELECTION as Ia,VIEW_SWITCHER_POLICIES as La,ViewSwitcherBarState as Ra,ViewSwitcherDragSwitch as za,ViewSwitcherState as Ba,buildInlineToggles as Va,buildViewSwitcherButtons as Ha,createViewSwitcherPage as Ua,inlineToggleTooltip as Wa,isInlineViewSwitcherDisplayMode as Ga,isViewSwitcherButtonVisible as Ka,isViewSwitcherPolicy as qa,pageIndexForToggle as Ja,shouldRevealViewSwitcherBar as Ya,toggleIndexForPage as Xa,viewSwitcherBadgeLabel as Za,viewSwitcherButtonOrientation as Qa,viewSwitcherIconName as $a,viewSwitcherIndicatorDescription as eo,viewSwitcherLabel as to,viewSwitcherPageFromStackPage as no,viewSwitcherPagesFromStack as ro}from"./view-switcher.js";import{ADW_MAX_OVERSHOOT_DISTANCE as io,ADW_OVERSHOOT_SETTLE_MS as ao,ADW_UNDERSHOOT_CLASSES as oo,ADW_UNDERSHOOT_SIZE as so,accumulateOvershoot as co,isScrolledFromEnd as lo,isScrolledFromStart as uo,overshootDistance as fo,scrollMaxValue as po,scrollUndershootClasses as mo}from"./scrolling.js";import{POPOVER_ITEM_RADIUS as ho,POPOVER_MENU_PADDING as go,POPOVER_PADDING as _o,POPOVER_RADIUS as vo,PopoverState as yo,resolvePopoverKey as bo}from"./popover.js";import{ADW_WRAP_BOX_DEFAULT_ALIGN as xo,ADW_WRAP_BOX_DEFAULT_JUSTIFY as So,ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE as Co,ADW_WRAP_BOX_DEFAULT_LENGTH_UNIT as wo,ADW_WRAP_BOX_DEFAULT_PACK_DIRECTION as To,ADW_WRAP_BOX_DEFAULT_SPACING as Eo,ADW_WRAP_BOX_DEFAULT_WRAP_POLICY as Do,ADW_WRAP_BOX_JUSTIFY_MODES as Oo,ADW_WRAP_BOX_NATURAL_LINE_LENGTH_UNSET as ko,ADW_WRAP_BOX_PACK_DIRECTIONS as Ao,ADW_WRAP_POLICIES as jo,normalizeNaturalLineLength as Mo,normalizeWrapBoxAlign as No,normalizeWrapBoxJustify as Po,normalizeWrapBoxLengthUnit as Fo,normalizeWrapBoxPackDirection as Io,normalizeWrapBoxSpacing as Lo,normalizeWrapPolicy as Ro,resolveWrapBoxChildOrder as zo,resolveWrapBoxLine as Bo,wrapBoxChildFlex as Vo,wrapBoxFlexStyle as Ho,wrapBoxLengthToPx as Uo,wrapPolicyFlexShrink as Wo}from"./wrap-box.js";import{ADW_SOURCE_6502_DIRECTIVES as Go,ADW_SOURCE_6502_LINE_COMMENT as Ko,ADW_SOURCE_6502_OPCODES as qo,ADW_SOURCE_6502_REGISTERS as Jo,ADW_SOURCE_6502_TOKEN_ROLES as Yo,ADW_SOURCE_HEX_STRIDE as Xo,ADW_SOURCE_PALETTE_DARK as Zo,ADW_SOURCE_PALETTE_LIGHT as Qo,ADW_SOURCE_SYNTAX_ROLES as $o,classifyAsm6502Word as es,formatHexAddress as ts,formatLineNumber as ns,stripSourceWhitespace as rs,tokenizeAsm6502 as is}from"./source.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,Y as ADW_ACCENT_META,X as ADW_ACCENT_META_SYSTEM,H as ADW_ADJUSTMENT_DEFAULTS,ve as ADW_BANNER_BUTTON_STYLES,ye as ADW_BANNER_BUTTON_STYLE_CLASSES,be as ADW_BANNER_DEFAULTS,Pe as ADW_BUTTON_CONTENT_DEFAULTS,Ke as ADW_BUTTON_STYLE_ALIASES,qe as ADW_BUTTON_STYLE_CLASSES,Ft as ADW_CLAMP_DEFAULTS,It as ADW_CLAMP_SIZE_CLASSES,Z as ADW_COLOR_SCHEME_META,dr as ADW_COMBO_NO_SELECTION,a as ADW_CREDITS_SECTION_TITLES,Cn as ADW_DATA_GRID_ROW_VARIANTS,T as ADW_DEFAULT_ACCENT_COLOR,Pi as ADW_LENGTH_UNITS,o as ADW_LICENSES,s as ADW_LICENSE_ALIASES,c as ADW_LICENSE_DEFAULTS,l as ADW_LICENSE_WARRANTY_TEMPLATE,io as ADW_MAX_OVERSHOOT_DISTANCE,la as ADW_MENU_SURFACE_NATIVESCRIPT,ua as ADW_MENU_SURFACE_WEB,ao as ADW_OVERSHOOT_SETTLE_MS,ai as ADW_SIDEBAR_NO_SELECTION,Go as ADW_SOURCE_6502_DIRECTIVES,Ko as ADW_SOURCE_6502_LINE_COMMENT,qo as ADW_SOURCE_6502_OPCODES,Jo as ADW_SOURCE_6502_REGISTERS,Yo as ADW_SOURCE_6502_TOKEN_ROLES,Xo as ADW_SOURCE_HEX_STRIDE,Zo as ADW_SOURCE_PALETTE_DARK,Qo as ADW_SOURCE_PALETTE_LIGHT,$o as ADW_SOURCE_SYNTAX_ROLES,di as ADW_SPINNER_CONTRACT_DISTANCE,fi as ADW_SPINNER_CYCLES_PER_LOOP,pi as ADW_SPINNER_CYCLE_LENGTH,mi as ADW_SPINNER_EXTEND_DISTANCE,hi as ADW_SPINNER_IDLE_DISTANCE,gi as ADW_SPINNER_MAX_ARC_LENGTH,Lt as ADW_SPINNER_MAX_SIZE,_i as ADW_SPINNER_MIN_ARC_LENGTH,Rt as ADW_SPINNER_MIN_SIZE,vi as ADW_SPINNER_N_CYCLES,yi as ADW_SPINNER_OVERLAP_DISTANCE,bi as ADW_SPINNER_SPIN_DURATION_MS,xi as ADW_SPINNER_START_ANGLE,Si as ADW_SPINNER_STILL_PROGRESS,Ci as ADW_SPINNER_TRACK_OPACITY,Ri as ADW_SWIPE_BORDER,Xe as ADW_SWIPE_DECELERATION_TOUCH,Ze as ADW_SWIPE_DECELERATION_TOUCHPAD,Qe as ADW_SWIPE_DRAG_THRESHOLD,$e as ADW_SWIPE_EPSILON,et as ADW_SWIPE_HISTORY_THRESHOLD_MS,tt as ADW_SWIPE_PARABOLA_MULTIPLIER,nt as ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_H,rt as ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_V,it as ADW_SWIPE_VELOCITY_CURVE_THRESHOLD,at as ADW_SWIPE_VELOCITY_THRESHOLD_TOUCH,ot as ADW_SWIPE_VELOCITY_THRESHOLD_TOUCHPAD,Q as ADW_SYSTEM_COLOR_SCHEMES,zt as ADW_TOOLBAR_BAR_CLASSES,Bt as ADW_TOOLBAR_VIEW_CLASSES,Vt as ADW_TOOLBAR_VIEW_DEFAULTS,u as ADW_TRANSLATOR_CREDITS_SENTINELS,oo as ADW_UNDERSHOOT_CLASSES,so as ADW_UNDERSHOOT_SIZE,xo as ADW_WRAP_BOX_DEFAULT_ALIGN,So as ADW_WRAP_BOX_DEFAULT_JUSTIFY,Co as ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE,wo as ADW_WRAP_BOX_DEFAULT_LENGTH_UNIT,To as ADW_WRAP_BOX_DEFAULT_PACK_DIRECTION,Eo as ADW_WRAP_BOX_DEFAULT_SPACING,Do as ADW_WRAP_BOX_DEFAULT_WRAP_POLICY,Oo as ADW_WRAP_BOX_JUSTIFY_MODES,ko as ADW_WRAP_BOX_NATURAL_LINE_LENGTH_UNSET,Ao as ADW_WRAP_BOX_PACK_DIRECTIONS,jo as ADW_WRAP_POLICIES,re as APPLE_ACCENT_COLORS,ie as APPLE_MULTICOLOR_ACCENT,oe as AVATAR_COLORS,se as AVATAR_COLOR_COUNT,I as ActionRowState,Pn as AdwAlertResponses,Ae as AdwBreakpoint,cr as AdwToast,lr as AdwToastQueue,ni as BACK_BUTTON_FALLBACK_TOOLTIP,Fe as BUTTON_CONTENT_BOX_SPACING,Ie as BUTTON_CONTENT_FALLBACK_ICON,Le as BUTTON_CONTENT_STYLE_CLASS,L as BUTTON_ROW_ACTIVATABLE,Fn as BottomSheetPresentation,Ne as BreakpointBinState,R as ButtonRowState,Bn as CAPS_LOCK_ICON_NAME,Vn as CAPS_LOCK_TOOLTIP,gt as CAROUSEL_SCROLL_TIMEOUT_MS,_t as CAROUSEL_SETTLE_EPSILON,vt as CarouselState,gr as ComboState,wn as DATA_GRID_CELL_CLASS,Tn as DATA_GRID_ROW_CLASS,De as DEFAULT_BOX_SPACING,Fi as DEFAULT_DPI,ba as DEFAULT_DROPDOWN_TOOLTIP,tn as DEFAULT_ICON_COLOR,nn as DEFAULT_ICON_COLOR_DARK,ja as DEFAULT_INDICATOR_DESCRIPTION_STRINGS,Mr as DEFAULT_LABEL_ELLIPSIZE,Nr as DEFAULT_LABEL_LINES,Pr as DEFAULT_LABEL_MAX_WIDTH_CHARS,Fr as DEFAULT_LABEL_WIDTH_CHARS,Ir as DEFAULT_LABEL_WRAP_MODE,Lr as DEFAULT_LABEL_XALIGN,Rr as DEFAULT_LABEL_YALIGN,zi as DEFAULT_MAX_SIDEBAR_WIDTH,Bi as DEFAULT_MIN_SIDEBAR_WIDTH,Vi as DEFAULT_SIDEBAR_WIDTH_FRACTION,Hi as DEFAULT_SIDEBAR_WIDTH_UNIT,pn as DEFAULT_TAB_AUTOHIDE,ur as DEFAULT_TOAST_TIMEOUT,Hn as EMPTY_ANIMATION_DURATION_MS,Un as ENTRY_ROW_APPLY_ICON_NAME,Wn as ENTRY_ROW_APPLY_TOOLTIP,Gn as ENTRY_ROW_EDIT_ICON_NAME,Kn as ENTRY_ROW_MAX_LENGTH_LIMIT,qn as ENTRY_ROW_TITLE_SPACING,Jn as EntryRowState,_r as ExpanderState,d as GTK_LICENSE,nr as GioMenu,rr as GioMenuItem,ir as GtkAdjustment,ar as GtkStringList,or as HeaderBarState,Ma as INLINE_VIEW_SWITCHER_DISPLAY_MODES,Ui as INSTANT_SPLIT_VIEW_ANIMATOR,zr as LABEL_ELLIPSIZE_MODES,Br as LABEL_JUSTIFICATIONS,Vr as LABEL_WRAP_MODES,Wi as NAVIGATION_SPLIT_VIEW_CRITICALS,Gi as NavigationSplitViewState,ri as NavigationViewState,Ki as OverlaySplitViewState,Yn as PASSWORD_CONCEAL_ICON_NAME,Xn as PASSWORD_CONCEAL_LABEL,Zn as PASSWORD_REVEAL_ICON_NAME,Qn as PASSWORD_REVEAL_LABEL,ho as POPOVER_ITEM_RADIUS,go as POPOVER_MENU_PADDING,_o as POPOVER_PADDING,vo as POPOVER_RADIUS,$n as PasswordEntryRowState,yo as PopoverState,kt as RadioGroupState,xa as SPLIT_BUTTON_DISABLED_OPACITY,oi as SidebarState,U as SpinState,Sa as SplitButtonState,st as SwipeTracker,z as SwitchRowState,mn as TabViewState,vr as ToggleGroupState,xr as UNTITLED_PAGE_LABEL,Na as VIEW_SWITCHER_BADGE_LIMIT,Pa as VIEW_SWITCHER_DRAG_SWITCH_DELAY,Fa as VIEW_SWITCHER_FALLBACK_ICON,Ia as VIEW_SWITCHER_NO_SELECTION,La as VIEW_SWITCHER_POLICIES,un as ViewStackState,Ra as ViewSwitcherBarState,za as ViewSwitcherDragSwitch,Ba as ViewSwitcherState,B as WindowTitleState,f as aboutDialogVisibility,co as accumulateOvershoot,si as adjustSidebarSelection,W as adjustmentRange,ae as adwAccentFromAppleAccentColor,Ii as adwLengthToPx,jt as adwLerp,E as adwaitaAccent,D as adwaitaAccentBgColor,O as adwaitaAccentColor,rn as adwaitaColorScheme,k as adwaitaStandaloneColor,$ as appearanceFromMeta,da as assertMenuRenderable,ce as avatarColor,le as avatarColorClass,ue as avatarFontSize,de as avatarIconSize,fe as avatarInitials,pe as avatarMaxFontSize,me as avatarMode,xe as bannerButtonStyleClasses,Se as bannerButtonText,Ce as bannerButtonVisible,we as bannerRenderState,Va as buildInlineToggles,Ha as buildViewSwitcherButtons,Re as buttonContentEllipsize,ze as buttonContentIconExpands,Be as buttonContentIconIsEmpty,Ve as buttonContentIconName,He as buttonContentLabelText,Ue as buttonContentLabelVisible,We as buttonContentRenderState,Ge as buttonContentStyleTargetIndex,Je as buttonStyleClass,Ye as buttonStyleClasses,yt as carouselClampPosition,bt as carouselClosestSnapPoint,xt as carouselNavigateTarget,St as carouselPageAllocation,Ct as carouselPageAtPosition,wt as carouselRange,Tt as carouselReorderShift,Et as carouselSizesFromSnapPoints,Dt as carouselSnapPoints,Ot as carouselWheelStep,G as clampAdjustmentValue,Ht as clampAllocate,Ut as clampChildSize,er as clampEntryText,fr as clampListSelection,ci as clampSidebarSelection,Wt as clampSizeFromChild,Gt as clampThresholds,es as classifyAsm6502Word,Sr as collectSearchRows,Cr as countVisiblePages,wr as createSearchRowSubtitle,Ua as createViewSwitcherPage,p as creditsSections,En as dataGridCellText,Dn as dataGridColumnAlign,On as dataGridColumnClasses,kn as dataGridRowInteractive,An as dataGridTrackTemplate,jn as dataGridTracks,Tr as defaultCaseFolder,Er as derivePreferencesGroupHeader,V as deriveRowLabels,ii as describeNavigationDiagnostic,Mt as easeInOutSine,Nt as easeOutCubic,tr as entryTextLength,Dr as escapeMarkup,je as evaluateBreakpointCondition,he as flattenAvatarGradient,fa as flattenMenu,li as flattenSidebarItems,Mi as formatAcceleratorLabel,A as formatAdwRgb,ts as formatHexAddress,ns as formatLineNumber,Ni as formatManifestShortcut,ge as gStrHash,e as gStrStrip,t as glibClamp,Wa as inlineToggleTooltip,Pt as inverseLerp,j as isAdwAccentColorName,ee as isAdwSystemColorScheme,Te as isBannerButtonStyle,hn as isDescendantOfPage,Ga as isInlineViewSwitcherDisplayMode,m as isLicenseType,lo as isScrolledFromEnd,uo as isScrolledFromStart,qi as isSidebarAtVisualStart,Ca as isSplitButtonDirection,an as isThemeIconColor,Ka as isViewSwitcherButtonVisible,qa as isViewSwitcherPolicy,yr as keptToggles,Hr as labelDisplayText,Ur as labelEffectiveLines,Wr as labelEllipsizeOverflowValue,Gr as labelMarkupIsUnparseable,Kr as labelWidthCharsExtent,qr as labelYalignAlignItems,Ji as layoutNavigationSplitView,Yi as layoutOverlaySplitView,h as legalSectionVisible,g as licenseText,_ as licenseTypeForSpdxId,pr as listItemsChanged,Or as makeComparable,Xi as measureSplitViewHorizontal,wa as menuButtonArrowIcon,Ta as menuButtonPopupDirection,pa as menuItemAt,ma as menuNodeAt,ha as menuRefusals,M as nearestAccent,K as normalizeAdjustment,Oe as normalizeBoxOrientation,ke as normalizeBoxSpacing,Kt as normalizeClampSize,mr as normalizeComboOptions,Mn as normalizeDataGridColumns,Nn as normalizeDataGridVariant,dn as normalizeIconName,Jr as normalizeLabelEllipsize,Yr as normalizeLabelJustify,Xr as normalizeLabelLines,Zr as normalizeLabelMaxWidthChars,Qr as normalizeLabelWidthChars,$r as normalizeLabelWrapMode,ei as normalizeLabelXalign,ti as normalizeLabelYalign,Li as normalizeLengthUnit,ga as normalizeMenuModel,Mo as normalizeNaturalLineLength,wi as normalizeSpinnerAngle,No as normalizeWrapBoxAlign,Po as normalizeWrapBoxJustify,Fo as normalizeWrapBoxLengthUnit,Io as normalizeWrapBoxPackDirection,Lo as normalizeWrapBoxSpacing,Ro as normalizeWrapPolicy,N as onAdwaitaAccentChanged,on as onAdwaitaColorSchemeChanged,fo as overshootDistance,Ja as pageIndexForToggle,ki as parseAccelerator,q as parseAdjustment,P as parseAdwRgb,Ee as parseBannerButtonStyle,Me as parseBreakpointCondition,v as parseCreditPerson,te as parseDesktopAppearance,_a as parseDetailedAction,hr as parseListModel,va as parseMenuModel,Ai as parseShortcutLabel,qt as parseToolbarStyle,_e as randomAvatarColorClass,ne as renderAppearanceMeta,In as resolveBottomSheetChrome,Ln as resolveBottomSheetClose,Rn as resolveBottomSheetOpen,zn as resolveBottomSheetSwipeTracker,At as resolveCheckState,Ea as resolveDropdownTooltip,sr as resolveHeaderBarTitle,ya as resolveMenuItemState,Zi as resolveNaturalSidebarWidth,Qi as resolveNavigationAction,$i as resolveNavigationSidebarWidth,ea as resolveNavigationStack,ta as resolveOverlaySidebarWidth,fn as resolvePageTitle,bo as resolvePopoverKey,na as resolveSidebarBounds,Jt as resolveSpinnerSize,ra as resolveSwipeArea,ia as resolveSwipeRelease,aa as resolveSwipeSnapPoints,oa as resolveSwipeStart,zo as resolveWrapBoxChildOrder,Bo as resolveWrapBoxLine,kr as rowMatchesQuery,po as scrollMaxValue,mo as scrollUndershootClasses,Ar as searchPreferences,F as setAdwaitaAccent,sn as setAdwaitaColorScheme,y as setLicense,b as setLicenseType,ji as shortcutKeycaps,Ya as shouldRevealViewSwitcherBar,ui as sidebarHeaders,J as snapAdjustmentValue,Ti as spinnerArc,Ei as spinnerArcEnd,Di as spinnerArcStart,Yt as spinnerGeometry,Oi as spinnerProgressAt,Da as splitButtonArrowIcon,Oa as splitButtonPopupDirection,ka as splitButtonRootState,Aa as splitButtonStyleClasses,n as stringIsNotEmpty,jr as stripMarkup,r as stripMnemonic,rs as stripSourceWhitespace,gn as successorAfterClose,ct as swipeBounds,sa as swipeCancelProgress,lt as swipeClosestPointIndex,ut as swipeEndProgress,dt as swipeNextPointIndex,ft as swipePreviousPointIndex,pt as swipeProjectedPointIndex,mt as swipeSlope,ht as swipeVelocityThreshold,_n as tabCloseVisible,vn as tabIconState,yn as tabTooltip,bn as tabTooltipIsMarkup,xn as tabViewItemsChanged,Sn as tabsRevealed,ca as tagsConflict,cn as themeIconColor,ln as toggleAdwaitaColorScheme,Xa as toggleIndexForPage,br as toggleIndexOfName,is as tokenizeAsm6502,Xt as toolbarBarStyleClasses,Zt as toolbarViewAllocate,Qt as toolbarViewClasses,$t as toolbarViewContentForSize,en as toolbarViewMeasure,x as translatorCreditsPeople,Za as viewSwitcherBadgeLabel,Qa as viewSwitcherButtonOrientation,$a as viewSwitcherIconName,eo as viewSwitcherIndicatorDescription,to as viewSwitcherLabel,no as viewSwitcherPageFromStackPage,ro as viewSwitcherPagesFromStack,Vo as wrapBoxChildFlex,Ho as wrapBoxFlexStyle,Uo as wrapBoxLengthToPx,Wo 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,formatAdwRgb as A,isAdwAccentColorName as j,nearestAccent as M,onAdwaitaAccentChanged as N,parseAdwRgb as P,setAdwaitaAccent as F}from"./accent.js";import{ActionRowState as I,BUTTON_ROW_ACTIVATABLE as L,ButtonRowState as R,SwitchRowState as z,WindowTitleState as B,deriveRowLabels as V}from"./action-row.js";import{ADW_ADJUSTMENT_DEFAULTS as H,SpinState as U,adjustmentRange as W,clampAdjustmentValue as G,normalizeAdjustment as K,parseAdjustment as q,snapAdjustmentValue as J}from"./adjustment.js";import{ADW_ACCENT_META as Y,ADW_ACCENT_META_SYSTEM as X,ADW_COLOR_SCHEME_META as Z,ADW_SYSTEM_COLOR_SCHEMES as Q,appearanceFromMeta as $,isAdwSystemColorScheme as ee,parseDesktopAppearance as te,renderAppearanceMeta as ne}from"./appearance.js";import{APPLE_ACCENT_COLORS as re,APPLE_MULTICOLOR_ACCENT as ie,adwAccentFromAppleAccentColor as ae}from"./apple-accent.js";import{AVATAR_COLORS as oe,AVATAR_COLOR_COUNT as se,avatarColor as ce,avatarColorClass as le,avatarFontSize as ue,avatarIconSize as de,avatarInitials as fe,avatarMaxFontSize as pe,avatarMode as me,flattenAvatarGradient as he,gStrHash as ge,randomAvatarColorClass as _e}from"./avatar.js";import{ADW_BANNER_BUTTON_STYLES as ve,ADW_BANNER_BUTTON_STYLE_CLASSES as ye,ADW_BANNER_DEFAULTS as be,bannerButtonStyleClasses as xe,bannerButtonText as Se,bannerButtonVisible as Ce,bannerRenderState as we,isBannerButtonStyle as Te,parseBannerButtonStyle as Ee}from"./banner.js";import{listBoxSelect as De,listBoxSelectAll as Oe,listBoxSelectRow as ke,listBoxUnselectAll as Ae,listBoxUnselectRow as je,normalizeBoxSelectionMode as Me}from"./box-selection.js";import{DEFAULT_BOX_SPACING as Ne,normalizeBoxOrientation as Pe,normalizeBoxSpacing as Fe}from"./box.js";import{AdwBreakpoint as Ie,evaluateBreakpointCondition as Le,parseBreakpointCondition as Re}from"./breakpoint.js";import{BreakpointBinState as ze}from"./breakpoint-bin.js";import{createBreakpointDriver as Be}from"./breakpoint-driver.js";import{ADW_BUTTON_CONTENT_DEFAULTS as Ve,BUTTON_CONTENT_BOX_SPACING as He,BUTTON_CONTENT_FALLBACK_ICON as Ue,BUTTON_CONTENT_STYLE_CLASS as We,buttonContentEllipsize as Ge,buttonContentIconExpands as Ke,buttonContentIconIsEmpty as qe,buttonContentIconName as Je,buttonContentLabelText as Ye,buttonContentLabelVisible as Xe,buttonContentRenderState as Ze,buttonContentStyleTargetIndex as Qe}from"./button-content.js";import{ADW_BUTTON_STYLE_ALIASES as $e,ADW_BUTTON_STYLE_CLASSES as et,buttonStyleClass as tt,buttonStyleClasses as nt}from"./button.js";import{CALENDAR_MARK_MAX as rt,CALENDAR_MARK_MIN as it,CALENDAR_YEAR_MAX as at,CALENDAR_YEAR_MIN as ot,calendarClearMarks as st,calendarDayIsMarked as ct,calendarDays as lt,calendarDaysInMonth as ut,calendarIsLeapYear as dt,calendarMarkDay as ft,calendarNavigationButtons as pt,calendarSelectDay as mt,calendarStep as ht,calendarWeekNumber as gt,calendarWeekStart as _t}from"./calendar.js";import{ADW_SWIPE_DECELERATION_TOUCH as vt,ADW_SWIPE_DECELERATION_TOUCHPAD as yt,ADW_SWIPE_DRAG_THRESHOLD as bt,ADW_SWIPE_EPSILON as xt,ADW_SWIPE_HISTORY_THRESHOLD_MS as St,ADW_SWIPE_PARABOLA_MULTIPLIER as Ct,ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_H as wt,ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_V as Tt,ADW_SWIPE_VELOCITY_CURVE_THRESHOLD as Et,ADW_SWIPE_VELOCITY_THRESHOLD_TOUCH as Dt,ADW_SWIPE_VELOCITY_THRESHOLD_TOUCHPAD as Ot,SwipeTracker as kt,swipeBounds as At,swipeClosestPointIndex as jt,swipeEndProgress as Mt,swipeNextPointIndex as Nt,swipePreviousPointIndex as Pt,swipeProjectedPointIndex as Ft,swipeSlope as It,swipeVelocityThreshold as Lt}from"./swipe.js";import{CAROUSEL_SCROLL_TIMEOUT_MS as Rt,CAROUSEL_SETTLE_EPSILON as zt,CarouselState as Bt,carouselClampPosition as Vt,carouselClosestSnapPoint as Ht,carouselNavigateTarget as Ut,carouselPageAllocation as Wt,carouselPageAtPosition as Gt,carouselRange as Kt,carouselReorderShift as qt,carouselSizesFromSnapPoints as Jt,carouselSnapPoints as Yt,carouselWheelStep as Xt}from"./carousel.js";import{RadioGroupState as Zt,resolveCheckState as Qt}from"./checks.js";import{adwLerp as $t,easeInOutSine as en,easeOutCubic as tn,inverseLerp as nn}from"./easing.js";import{ADW_CLAMP_DEFAULTS as rn,ADW_CLAMP_SIZE_CLASSES as an,ADW_SPINNER_MAX_SIZE as on,ADW_SPINNER_MIN_SIZE as sn,ADW_TOOLBAR_BAR_CLASSES as cn,ADW_TOOLBAR_VIEW_CLASSES as ln,ADW_TOOLBAR_VIEW_DEFAULTS as un,clampAllocate as dn,clampChildSize as fn,clampSizeFromChild as pn,clampThresholds as mn,normalizeClampSize as hn,parseToolbarStyle as gn,resolveSpinnerSize as _n,spinnerGeometry as vn,toolbarBarStyleClasses as yn,toolbarViewAllocate as bn,toolbarViewClasses as xn,toolbarViewContentForSize as Sn,toolbarViewMeasure as Cn}from"./chrome.js";import{DEFAULT_ICON_COLOR as wn,DEFAULT_ICON_COLOR_DARK as Tn,adwaitaColorScheme as En,isThemeIconColor as Dn,onAdwaitaColorSchemeChanged as On,setAdwaitaColorScheme as kn,themeIconColor as An,toggleAdwaitaColorScheme as jn}from"./color-scheme.js";import{ViewStackState as Mn,normalizeIconName as Nn,resolvePageTitle as Pn}from"./view-stack.js";import{DEFAULT_TAB_AUTOHIDE as Fn,TabViewState as In,isDescendantOfPage as Ln,successorAfterClose as Rn,tabCloseVisible as zn,tabIconState as Bn,tabSearchMatches as Vn,tabTooltip as Hn,tabTooltipIsMarkup as Un,tabViewItemsChanged as Wn,tabsRevealed as Gn}from"./tab-view.js";import{ADW_DATA_GRID_ROW_VARIANTS as Kn,DATA_GRID_CELL_CLASS as qn,DATA_GRID_ROW_CLASS as Jn,dataGridCellText as Yn,dataGridColumnAlign as Xn,dataGridColumnClasses as Zn,dataGridRowInteractive as Qn,dataGridTrackTemplate as $n,dataGridTracks as er,normalizeDataGridColumns as tr,normalizeDataGridVariant as nr}from"./data-grid.js";import{AdwAlertResponses as rr,BottomSheetPresentation as ir,resolveBottomSheetChrome as ar,resolveBottomSheetClose as or,resolveBottomSheetOpen as sr,resolveBottomSheetSwipeTracker as cr}from"./dialog.js";import{CAPS_LOCK_ICON_NAME as lr,CAPS_LOCK_TOOLTIP as ur,EMPTY_ANIMATION_DURATION_MS as dr,ENTRY_ROW_APPLY_ICON_NAME as fr,ENTRY_ROW_APPLY_TOOLTIP as pr,ENTRY_ROW_EDIT_ICON_NAME as mr,ENTRY_ROW_MAX_LENGTH_LIMIT as hr,ENTRY_ROW_TITLE_SPACING as gr,EntryRowState as _r,PASSWORD_CONCEAL_ICON_NAME as vr,PASSWORD_CONCEAL_LABEL as yr,PASSWORD_REVEAL_ICON_NAME as br,PASSWORD_REVEAL_LABEL as xr,PasswordEntryRowState as Sr,clampEntryText as Cr,entryTextLength as wr}from"./entry-row.js";import{GioMenu as Tr,GioMenuItem as Er}from"./gio-menu.js";import{gridColumns as Dr,gridNavigate as Or}from"./grid-navigation.js";import{GtkAdjustment as kr}from"./gtk-adjustment.js";import{GtkStringList as Ar}from"./gtk-string-list.js";import{HeaderBarState as jr,resolveHeaderBarTitle as Mr}from"./header-bar.js";import{AdwToast as Nr,AdwToastQueue as Pr,DEFAULT_TOAST_TIMEOUT as Fr}from"./toast.js";import{ADW_COMBO_NO_SELECTION as Ir,clampListSelection as Lr,listItemsChanged as Rr,normalizeComboOptions as zr,parseListModel as Br}from"./list.js";import{ADW_COLUMN_VIEW_NO_FIXED_WIDTH as Vr,ADW_GRID_VIEW_MAX_COLUMNS as Hr,ADW_GRID_VIEW_MIN_COLUMNS as Ur,ListViewState as Wr,columnViewSort as Gr,columnViewTracks as Kr,gridViewColumns as qr,listItemField as Jr,listViewSelect as Yr,listViewSelectAll as Xr,normalizeColumnViewColumns as Zr,normalizeListSelectionMode as Qr,parseColumnViewColumns as $r}from"./list-view.js";import{treeExpanderAction as ei,treeExpanderExpanded as ti,treeExpanderLayout as ni}from"./tree-expander.js";import{ComboState as ri,ExpanderState as ii,ToggleGroupState as ai,keptToggles as oi,toggleIndexOfName as si}from"./rows.js";import{UNTITLED_PAGE_LABEL as ci,collectSearchRows as li,countVisiblePages as ui,createSearchRowSubtitle as di,defaultCaseFolder as fi,derivePreferencesGroupHeader as pi,escapeMarkup as mi,makeComparable as hi,rowMatchesQuery as gi,searchPreferences as _i,stripMarkup as vi}from"./preferences.js";import{DEFAULT_LABEL_ELLIPSIZE as yi,DEFAULT_LABEL_LINES as bi,DEFAULT_LABEL_MAX_WIDTH_CHARS as xi,DEFAULT_LABEL_WIDTH_CHARS as Si,DEFAULT_LABEL_WRAP_MODE as Ci,DEFAULT_LABEL_XALIGN as wi,DEFAULT_LABEL_YALIGN as Ti,LABEL_ELLIPSIZE_MODES as Ei,LABEL_JUSTIFICATIONS as Di,LABEL_WRAP_MODES as Oi,labelDisplayText as ki,labelEffectiveLines as Ai,labelEllipsizeOverflowValue as ji,labelMarkupIsUnparseable as Mi,labelWidthCharsExtent as Ni,labelYalignAlignItems as Pi,normalizeLabelEllipsize as Fi,normalizeLabelJustify as Ii,normalizeLabelLines as Li,normalizeLabelMaxWidthChars as Ri,normalizeLabelWidthChars as zi,normalizeLabelWrapMode as Bi,normalizeLabelXalign as Vi,normalizeLabelYalign as Hi}from"./label.js";import{BACK_BUTTON_FALLBACK_TOOLTIP as Ui,NavigationViewState as Wi,describeNavigationDiagnostic as Gi}from"./navigation-view.js";import{ADW_SIDEBAR_NO_SELECTION as Ki,SidebarState as qi,adjustSidebarSelection as Ji,clampSidebarSelection as Yi,flattenSidebarItems as Xi,sidebarHeaders as Zi}from"./sidebar.js";import{ADW_SPINNER_CONTRACT_DISTANCE as Qi,ADW_SPINNER_CYCLES_PER_LOOP as $i,ADW_SPINNER_CYCLE_LENGTH as ea,ADW_SPINNER_EXTEND_DISTANCE as ta,ADW_SPINNER_IDLE_DISTANCE as na,ADW_SPINNER_MAX_ARC_LENGTH as ra,ADW_SPINNER_MIN_ARC_LENGTH as ia,ADW_SPINNER_N_CYCLES as aa,ADW_SPINNER_OVERLAP_DISTANCE as oa,ADW_SPINNER_SPIN_DURATION_MS as sa,ADW_SPINNER_START_ANGLE as ca,ADW_SPINNER_STILL_PROGRESS as la,ADW_SPINNER_TRACK_OPACITY as ua,normalizeSpinnerAngle as da,spinnerArc as fa,spinnerArcEnd as pa,spinnerArcStart as ma,spinnerProgressAt as ha}from"./spinner.js";import{parseAccelerator as ga,parseShortcutLabel as _a,shortcutKeycaps as va}from"./shortcut-label.js";import{formatAcceleratorLabel as ya,formatManifestShortcut as ba}from"./shortcut-format.js";import{ADW_LENGTH_UNITS as xa,DEFAULT_DPI as Sa,adwLengthToPx as Ca,normalizeLengthUnit as wa}from"./length-unit.js";import{ADW_SWIPE_BORDER as Ta,DEFAULT_MAX_SIDEBAR_WIDTH as Ea,DEFAULT_MIN_SIDEBAR_WIDTH as Da,DEFAULT_SIDEBAR_WIDTH_FRACTION as Oa,DEFAULT_SIDEBAR_WIDTH_UNIT as ka,INSTANT_SPLIT_VIEW_ANIMATOR as Aa,NAVIGATION_SPLIT_VIEW_CRITICALS as ja,NavigationSplitViewState as Ma,OverlaySplitViewState as Na,isSidebarAtVisualStart as Pa,layoutNavigationSplitView as Fa,layoutOverlaySplitView as Ia,measureSplitViewHorizontal as La,resolveNaturalSidebarWidth as Ra,resolveNavigationAction as za,resolveNavigationSidebarWidth as Ba,resolveNavigationStack as Va,resolveOverlaySidebarWidth as Ha,resolveSidebarBounds as Ua,resolveSwipeArea as Wa,resolveSwipeRelease as Ga,resolveSwipeSnapPoints as Ka,resolveSwipeStart as qa,swipeCancelProgress as Ja,tagsConflict as Ya}from"./split-view.js";import{ADW_MENU_SURFACE_NATIVESCRIPT as Xa,ADW_MENU_SURFACE_WEB as Za,assertMenuRenderable as Qa,flattenMenu as $a,menuItemAt as eo,menuNodeAt as to,menuRefusals as no,normalizeMenuModel as ro,parseDetailedAction as io,parseMenuModel as ao,resolveMenuItemState as oo}from"./menu.js";import{DEFAULT_DROPDOWN_TOOLTIP as so,SPLIT_BUTTON_DISABLED_OPACITY as co,SplitButtonState as lo,isSplitButtonDirection as uo,menuButtonArrowIcon as fo,menuButtonPopupDirection as po,resolveDropdownTooltip as mo,splitButtonArrowIcon as ho,splitButtonPopupDirection as go,splitButtonRootState as _o,splitButtonStyleClasses as vo}from"./split-button.js";import{DEFAULT_INDICATOR_DESCRIPTION_STRINGS as yo,INLINE_VIEW_SWITCHER_DISPLAY_MODES as bo,VIEW_SWITCHER_BADGE_LIMIT as xo,VIEW_SWITCHER_DRAG_SWITCH_DELAY as So,VIEW_SWITCHER_FALLBACK_ICON as Co,VIEW_SWITCHER_NO_SELECTION as wo,VIEW_SWITCHER_POLICIES as To,ViewSwitcherBarState as Eo,ViewSwitcherDragSwitch as Do,ViewSwitcherState as Oo,buildInlineToggles as ko,buildViewSwitcherButtons as Ao,createViewSwitcherPage as jo,inlineToggleTooltip as Mo,isInlineViewSwitcherDisplayMode as No,isViewSwitcherButtonVisible as Po,isViewSwitcherPolicy as Fo,pageIndexForToggle as Io,shouldRevealViewSwitcherBar as Lo,toggleIndexForPage as Ro,viewSwitcherBadgeLabel as zo,viewSwitcherButtonOrientation as Bo,viewSwitcherIconName as Vo,viewSwitcherIndicatorDescription as Ho,viewSwitcherLabel as Uo,viewSwitcherPageFromStackPage as Wo,viewSwitcherPagesFromStack as Go,viewSwitcherSidebarSections as Ko}from"./view-switcher.js";import{ADW_MAX_OVERSHOOT_DISTANCE as qo,ADW_OVERSHOOT_SETTLE_MS as Jo,ADW_UNDERSHOOT_CLASSES as Yo,ADW_UNDERSHOOT_SIZE as Xo,accumulateOvershoot as Zo,isScrolledFromEnd as Qo,isScrolledFromStart as $o,overshootDistance as es,scrollMaxValue as ts,scrollUndershootClasses as ns}from"./scrolling.js";import{POPOVER_ITEM_RADIUS as rs,POPOVER_MENU_PADDING as is,POPOVER_PADDING as as,POPOVER_RADIUS as os,PopoverState as ss,resolvePopoverKey as cs}from"./popover.js";import{ADW_WRAP_BOX_DEFAULT_ALIGN as ls,ADW_WRAP_BOX_DEFAULT_JUSTIFY as us,ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE as ds,ADW_WRAP_BOX_DEFAULT_LENGTH_UNIT as fs,ADW_WRAP_BOX_DEFAULT_PACK_DIRECTION as ps,ADW_WRAP_BOX_DEFAULT_SPACING as ms,ADW_WRAP_BOX_DEFAULT_WRAP_POLICY as hs,ADW_WRAP_BOX_JUSTIFY_MODES as gs,ADW_WRAP_BOX_NATURAL_LINE_LENGTH_UNSET as _s,ADW_WRAP_BOX_PACK_DIRECTIONS as vs,ADW_WRAP_POLICIES as ys,normalizeNaturalLineLength as bs,normalizeWrapBoxAlign as xs,normalizeWrapBoxJustify as Ss,normalizeWrapBoxLengthUnit as Cs,normalizeWrapBoxPackDirection as ws,normalizeWrapBoxSpacing as Ts,normalizeWrapPolicy as Es,resolveWrapBoxChildOrder as Ds,resolveWrapBoxLine as Os,wrapBoxChildFlex as ks,wrapBoxFlexStyle as As,wrapBoxLengthToPx as js,wrapPolicyFlexShrink as Ms}from"./wrap-box.js";import{ADW_SOURCE_6502_DIRECTIVES as Ns,ADW_SOURCE_6502_LINE_COMMENT as Ps,ADW_SOURCE_6502_OPCODES as Fs,ADW_SOURCE_6502_REGISTERS as Is,ADW_SOURCE_6502_TOKEN_ROLES as Ls,ADW_SOURCE_HEX_STRIDE as Rs,ADW_SOURCE_PALETTE_DARK as zs,ADW_SOURCE_PALETTE_LIGHT as Bs,ADW_SOURCE_SYNTAX_ROLES as Vs,classifyAsm6502Word as Hs,formatHexAddress as Us,formatLineNumber as Ws,stripSourceWhitespace as Gs,tokenizeAsm6502 as Ks}from"./source.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,Y as ADW_ACCENT_META,X as ADW_ACCENT_META_SYSTEM,H as ADW_ADJUSTMENT_DEFAULTS,ve as ADW_BANNER_BUTTON_STYLES,ye as ADW_BANNER_BUTTON_STYLE_CLASSES,be as ADW_BANNER_DEFAULTS,Ve as ADW_BUTTON_CONTENT_DEFAULTS,$e as ADW_BUTTON_STYLE_ALIASES,et as ADW_BUTTON_STYLE_CLASSES,rn as ADW_CLAMP_DEFAULTS,an as ADW_CLAMP_SIZE_CLASSES,Z as ADW_COLOR_SCHEME_META,Vr as ADW_COLUMN_VIEW_NO_FIXED_WIDTH,Ir as ADW_COMBO_NO_SELECTION,a as ADW_CREDITS_SECTION_TITLES,Kn as ADW_DATA_GRID_ROW_VARIANTS,T as ADW_DEFAULT_ACCENT_COLOR,Hr as ADW_GRID_VIEW_MAX_COLUMNS,Ur as ADW_GRID_VIEW_MIN_COLUMNS,xa as ADW_LENGTH_UNITS,o as ADW_LICENSES,s as ADW_LICENSE_ALIASES,c as ADW_LICENSE_DEFAULTS,l as ADW_LICENSE_WARRANTY_TEMPLATE,qo as ADW_MAX_OVERSHOOT_DISTANCE,Xa as ADW_MENU_SURFACE_NATIVESCRIPT,Za as ADW_MENU_SURFACE_WEB,Jo as ADW_OVERSHOOT_SETTLE_MS,Ki as ADW_SIDEBAR_NO_SELECTION,Ns as ADW_SOURCE_6502_DIRECTIVES,Ps as ADW_SOURCE_6502_LINE_COMMENT,Fs as ADW_SOURCE_6502_OPCODES,Is as ADW_SOURCE_6502_REGISTERS,Ls as ADW_SOURCE_6502_TOKEN_ROLES,Rs as ADW_SOURCE_HEX_STRIDE,zs as ADW_SOURCE_PALETTE_DARK,Bs as ADW_SOURCE_PALETTE_LIGHT,Vs as ADW_SOURCE_SYNTAX_ROLES,Qi as ADW_SPINNER_CONTRACT_DISTANCE,$i as ADW_SPINNER_CYCLES_PER_LOOP,ea as ADW_SPINNER_CYCLE_LENGTH,ta as ADW_SPINNER_EXTEND_DISTANCE,na as ADW_SPINNER_IDLE_DISTANCE,ra as ADW_SPINNER_MAX_ARC_LENGTH,on as ADW_SPINNER_MAX_SIZE,ia as ADW_SPINNER_MIN_ARC_LENGTH,sn as ADW_SPINNER_MIN_SIZE,aa as ADW_SPINNER_N_CYCLES,oa as ADW_SPINNER_OVERLAP_DISTANCE,sa as ADW_SPINNER_SPIN_DURATION_MS,ca as ADW_SPINNER_START_ANGLE,la as ADW_SPINNER_STILL_PROGRESS,ua as ADW_SPINNER_TRACK_OPACITY,Ta as ADW_SWIPE_BORDER,vt as ADW_SWIPE_DECELERATION_TOUCH,yt as ADW_SWIPE_DECELERATION_TOUCHPAD,bt as ADW_SWIPE_DRAG_THRESHOLD,xt as ADW_SWIPE_EPSILON,St as ADW_SWIPE_HISTORY_THRESHOLD_MS,Ct as ADW_SWIPE_PARABOLA_MULTIPLIER,wt as ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_H,Tt as ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_V,Et as ADW_SWIPE_VELOCITY_CURVE_THRESHOLD,Dt as ADW_SWIPE_VELOCITY_THRESHOLD_TOUCH,Ot as ADW_SWIPE_VELOCITY_THRESHOLD_TOUCHPAD,Q as ADW_SYSTEM_COLOR_SCHEMES,cn as ADW_TOOLBAR_BAR_CLASSES,ln as ADW_TOOLBAR_VIEW_CLASSES,un as ADW_TOOLBAR_VIEW_DEFAULTS,u as ADW_TRANSLATOR_CREDITS_SENTINELS,Yo as ADW_UNDERSHOOT_CLASSES,Xo as ADW_UNDERSHOOT_SIZE,ls as ADW_WRAP_BOX_DEFAULT_ALIGN,us as ADW_WRAP_BOX_DEFAULT_JUSTIFY,ds as ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE,fs as ADW_WRAP_BOX_DEFAULT_LENGTH_UNIT,ps as ADW_WRAP_BOX_DEFAULT_PACK_DIRECTION,ms as ADW_WRAP_BOX_DEFAULT_SPACING,hs as ADW_WRAP_BOX_DEFAULT_WRAP_POLICY,gs as ADW_WRAP_BOX_JUSTIFY_MODES,_s as ADW_WRAP_BOX_NATURAL_LINE_LENGTH_UNSET,vs as ADW_WRAP_BOX_PACK_DIRECTIONS,ys as ADW_WRAP_POLICIES,re as APPLE_ACCENT_COLORS,ie as APPLE_MULTICOLOR_ACCENT,oe as AVATAR_COLORS,se as AVATAR_COLOR_COUNT,I as ActionRowState,rr as AdwAlertResponses,Ie as AdwBreakpoint,Nr as AdwToast,Pr as AdwToastQueue,Ui as BACK_BUTTON_FALLBACK_TOOLTIP,He as BUTTON_CONTENT_BOX_SPACING,Ue as BUTTON_CONTENT_FALLBACK_ICON,We as BUTTON_CONTENT_STYLE_CLASS,L as BUTTON_ROW_ACTIVATABLE,ir as BottomSheetPresentation,ze as BreakpointBinState,R as ButtonRowState,rt as CALENDAR_MARK_MAX,it as CALENDAR_MARK_MIN,at as CALENDAR_YEAR_MAX,ot as CALENDAR_YEAR_MIN,lr as CAPS_LOCK_ICON_NAME,ur as CAPS_LOCK_TOOLTIP,Rt as CAROUSEL_SCROLL_TIMEOUT_MS,zt as CAROUSEL_SETTLE_EPSILON,Bt as CarouselState,ri as ComboState,qn as DATA_GRID_CELL_CLASS,Jn as DATA_GRID_ROW_CLASS,Ne as DEFAULT_BOX_SPACING,Sa as DEFAULT_DPI,so as DEFAULT_DROPDOWN_TOOLTIP,wn as DEFAULT_ICON_COLOR,Tn as DEFAULT_ICON_COLOR_DARK,yo as DEFAULT_INDICATOR_DESCRIPTION_STRINGS,yi as DEFAULT_LABEL_ELLIPSIZE,bi as DEFAULT_LABEL_LINES,xi as DEFAULT_LABEL_MAX_WIDTH_CHARS,Si as DEFAULT_LABEL_WIDTH_CHARS,Ci as DEFAULT_LABEL_WRAP_MODE,wi as DEFAULT_LABEL_XALIGN,Ti as DEFAULT_LABEL_YALIGN,Ea as DEFAULT_MAX_SIDEBAR_WIDTH,Da as DEFAULT_MIN_SIDEBAR_WIDTH,Oa as DEFAULT_SIDEBAR_WIDTH_FRACTION,ka as DEFAULT_SIDEBAR_WIDTH_UNIT,Fn as DEFAULT_TAB_AUTOHIDE,Fr as DEFAULT_TOAST_TIMEOUT,dr as EMPTY_ANIMATION_DURATION_MS,fr as ENTRY_ROW_APPLY_ICON_NAME,pr as ENTRY_ROW_APPLY_TOOLTIP,mr as ENTRY_ROW_EDIT_ICON_NAME,hr as ENTRY_ROW_MAX_LENGTH_LIMIT,gr as ENTRY_ROW_TITLE_SPACING,_r as EntryRowState,ii as ExpanderState,d as GTK_LICENSE,Tr as GioMenu,Er as GioMenuItem,kr as GtkAdjustment,Ar as GtkStringList,jr as HeaderBarState,bo as INLINE_VIEW_SWITCHER_DISPLAY_MODES,Aa as INSTANT_SPLIT_VIEW_ANIMATOR,Ei as LABEL_ELLIPSIZE_MODES,Di as LABEL_JUSTIFICATIONS,Oi as LABEL_WRAP_MODES,Wr as ListViewState,ja as NAVIGATION_SPLIT_VIEW_CRITICALS,Ma as NavigationSplitViewState,Wi as NavigationViewState,Na as OverlaySplitViewState,vr as PASSWORD_CONCEAL_ICON_NAME,yr as PASSWORD_CONCEAL_LABEL,br as PASSWORD_REVEAL_ICON_NAME,xr as PASSWORD_REVEAL_LABEL,rs as POPOVER_ITEM_RADIUS,is as POPOVER_MENU_PADDING,as as POPOVER_PADDING,os as POPOVER_RADIUS,Sr as PasswordEntryRowState,ss as PopoverState,Zt as RadioGroupState,co as SPLIT_BUTTON_DISABLED_OPACITY,qi as SidebarState,U as SpinState,lo as SplitButtonState,kt as SwipeTracker,z as SwitchRowState,In as TabViewState,ai as ToggleGroupState,ci as UNTITLED_PAGE_LABEL,xo as VIEW_SWITCHER_BADGE_LIMIT,So as VIEW_SWITCHER_DRAG_SWITCH_DELAY,Co as VIEW_SWITCHER_FALLBACK_ICON,wo as VIEW_SWITCHER_NO_SELECTION,To as VIEW_SWITCHER_POLICIES,Mn as ViewStackState,Eo as ViewSwitcherBarState,Do as ViewSwitcherDragSwitch,Oo as ViewSwitcherState,B as WindowTitleState,f as aboutDialogVisibility,Zo as accumulateOvershoot,Ji as adjustSidebarSelection,W as adjustmentRange,ae as adwAccentFromAppleAccentColor,Ca as adwLengthToPx,$t as adwLerp,E as adwaitaAccent,D as adwaitaAccentBgColor,O as adwaitaAccentColor,En as adwaitaColorScheme,k as adwaitaStandaloneColor,$ as appearanceFromMeta,Qa as assertMenuRenderable,ce as avatarColor,le as avatarColorClass,ue as avatarFontSize,de as avatarIconSize,fe as avatarInitials,pe as avatarMaxFontSize,me as avatarMode,xe as bannerButtonStyleClasses,Se as bannerButtonText,Ce as bannerButtonVisible,we as bannerRenderState,ko as buildInlineToggles,Ao as buildViewSwitcherButtons,Ge as buttonContentEllipsize,Ke as buttonContentIconExpands,qe as buttonContentIconIsEmpty,Je as buttonContentIconName,Ye as buttonContentLabelText,Xe as buttonContentLabelVisible,Ze as buttonContentRenderState,Qe as buttonContentStyleTargetIndex,tt as buttonStyleClass,nt as buttonStyleClasses,st as calendarClearMarks,ct as calendarDayIsMarked,lt as calendarDays,ut as calendarDaysInMonth,dt as calendarIsLeapYear,ft as calendarMarkDay,pt as calendarNavigationButtons,mt as calendarSelectDay,ht as calendarStep,gt as calendarWeekNumber,_t as calendarWeekStart,Vt as carouselClampPosition,Ht as carouselClosestSnapPoint,Ut as carouselNavigateTarget,Wt as carouselPageAllocation,Gt as carouselPageAtPosition,Kt as carouselRange,qt as carouselReorderShift,Jt as carouselSizesFromSnapPoints,Yt as carouselSnapPoints,Xt as carouselWheelStep,G as clampAdjustmentValue,dn as clampAllocate,fn as clampChildSize,Cr as clampEntryText,Lr as clampListSelection,Yi as clampSidebarSelection,pn as clampSizeFromChild,mn as clampThresholds,Hs as classifyAsm6502Word,li as collectSearchRows,Gr as columnViewSort,Kr as columnViewTracks,ui as countVisiblePages,Be as createBreakpointDriver,di as createSearchRowSubtitle,jo as createViewSwitcherPage,p as creditsSections,Yn as dataGridCellText,Xn as dataGridColumnAlign,Zn as dataGridColumnClasses,Qn as dataGridRowInteractive,$n as dataGridTrackTemplate,er as dataGridTracks,fi as defaultCaseFolder,pi as derivePreferencesGroupHeader,V as deriveRowLabels,Gi as describeNavigationDiagnostic,en as easeInOutSine,tn as easeOutCubic,wr as entryTextLength,mi as escapeMarkup,Le as evaluateBreakpointCondition,he as flattenAvatarGradient,$a as flattenMenu,Xi as flattenSidebarItems,ya as formatAcceleratorLabel,A as formatAdwRgb,Us as formatHexAddress,Ws as formatLineNumber,ba as formatManifestShortcut,ge as gStrHash,e as gStrStrip,t as glibClamp,Dr as gridColumns,Or as gridNavigate,qr as gridViewColumns,Mo as inlineToggleTooltip,nn as inverseLerp,j as isAdwAccentColorName,ee as isAdwSystemColorScheme,Te as isBannerButtonStyle,Ln as isDescendantOfPage,No as isInlineViewSwitcherDisplayMode,m as isLicenseType,Qo as isScrolledFromEnd,$o as isScrolledFromStart,Pa as isSidebarAtVisualStart,uo as isSplitButtonDirection,Dn as isThemeIconColor,Po as isViewSwitcherButtonVisible,Fo as isViewSwitcherPolicy,oi as keptToggles,ki as labelDisplayText,Ai as labelEffectiveLines,ji as labelEllipsizeOverflowValue,Mi as labelMarkupIsUnparseable,Ni as labelWidthCharsExtent,Pi as labelYalignAlignItems,Fa as layoutNavigationSplitView,Ia as layoutOverlaySplitView,h as legalSectionVisible,g as licenseText,_ as licenseTypeForSpdxId,De as listBoxSelect,Oe as listBoxSelectAll,ke as listBoxSelectRow,Ae as listBoxUnselectAll,je as listBoxUnselectRow,Jr as listItemField,Rr as listItemsChanged,Yr as listViewSelect,Xr as listViewSelectAll,hi as makeComparable,La as measureSplitViewHorizontal,fo as menuButtonArrowIcon,po as menuButtonPopupDirection,eo as menuItemAt,to as menuNodeAt,no as menuRefusals,M as nearestAccent,K as normalizeAdjustment,Pe as normalizeBoxOrientation,Me as normalizeBoxSelectionMode,Fe as normalizeBoxSpacing,hn as normalizeClampSize,Zr as normalizeColumnViewColumns,zr as normalizeComboOptions,tr as normalizeDataGridColumns,nr as normalizeDataGridVariant,Nn as normalizeIconName,Fi as normalizeLabelEllipsize,Ii as normalizeLabelJustify,Li as normalizeLabelLines,Ri as normalizeLabelMaxWidthChars,zi as normalizeLabelWidthChars,Bi as normalizeLabelWrapMode,Vi as normalizeLabelXalign,Hi as normalizeLabelYalign,wa as normalizeLengthUnit,Qr as normalizeListSelectionMode,ro as normalizeMenuModel,bs as normalizeNaturalLineLength,da as normalizeSpinnerAngle,xs as normalizeWrapBoxAlign,Ss as normalizeWrapBoxJustify,Cs as normalizeWrapBoxLengthUnit,ws as normalizeWrapBoxPackDirection,Ts as normalizeWrapBoxSpacing,Es as normalizeWrapPolicy,N as onAdwaitaAccentChanged,On as onAdwaitaColorSchemeChanged,es as overshootDistance,Io as pageIndexForToggle,ga as parseAccelerator,q as parseAdjustment,P as parseAdwRgb,Ee as parseBannerButtonStyle,Re as parseBreakpointCondition,$r as parseColumnViewColumns,v as parseCreditPerson,te as parseDesktopAppearance,io as parseDetailedAction,Br as parseListModel,ao as parseMenuModel,_a as parseShortcutLabel,gn as parseToolbarStyle,_e as randomAvatarColorClass,ne as renderAppearanceMeta,ar as resolveBottomSheetChrome,or as resolveBottomSheetClose,sr as resolveBottomSheetOpen,cr as resolveBottomSheetSwipeTracker,Qt as resolveCheckState,mo as resolveDropdownTooltip,Mr as resolveHeaderBarTitle,oo as resolveMenuItemState,Ra as resolveNaturalSidebarWidth,za as resolveNavigationAction,Ba as resolveNavigationSidebarWidth,Va as resolveNavigationStack,Ha as resolveOverlaySidebarWidth,Pn as resolvePageTitle,cs as resolvePopoverKey,Ua as resolveSidebarBounds,_n as resolveSpinnerSize,Wa as resolveSwipeArea,Ga as resolveSwipeRelease,Ka as resolveSwipeSnapPoints,qa as resolveSwipeStart,Ds as resolveWrapBoxChildOrder,Os as resolveWrapBoxLine,gi as rowMatchesQuery,ts as scrollMaxValue,ns as scrollUndershootClasses,_i as searchPreferences,F as setAdwaitaAccent,kn as setAdwaitaColorScheme,y as setLicense,b as setLicenseType,va as shortcutKeycaps,Lo as shouldRevealViewSwitcherBar,Zi as sidebarHeaders,J as snapAdjustmentValue,fa as spinnerArc,pa as spinnerArcEnd,ma as spinnerArcStart,vn as spinnerGeometry,ha as spinnerProgressAt,ho as splitButtonArrowIcon,go as splitButtonPopupDirection,_o as splitButtonRootState,vo as splitButtonStyleClasses,n as stringIsNotEmpty,vi as stripMarkup,r as stripMnemonic,Gs as stripSourceWhitespace,Rn as successorAfterClose,At as swipeBounds,Ja as swipeCancelProgress,jt as swipeClosestPointIndex,Mt as swipeEndProgress,Nt as swipeNextPointIndex,Pt as swipePreviousPointIndex,Ft as swipeProjectedPointIndex,It as swipeSlope,Lt as swipeVelocityThreshold,zn as tabCloseVisible,Bn as tabIconState,Vn as tabSearchMatches,Hn as tabTooltip,Un as tabTooltipIsMarkup,Wn as tabViewItemsChanged,Gn as tabsRevealed,Ya as tagsConflict,An as themeIconColor,jn as toggleAdwaitaColorScheme,Ro as toggleIndexForPage,si as toggleIndexOfName,Ks as tokenizeAsm6502,yn as toolbarBarStyleClasses,bn as toolbarViewAllocate,xn as toolbarViewClasses,Sn as toolbarViewContentForSize,Cn as toolbarViewMeasure,x as translatorCreditsPeople,ei as treeExpanderAction,ti as treeExpanderExpanded,ni as treeExpanderLayout,zo as viewSwitcherBadgeLabel,Bo as viewSwitcherButtonOrientation,Vo as viewSwitcherIconName,Ho as viewSwitcherIndicatorDescription,Uo as viewSwitcherLabel,Wo as viewSwitcherPageFromStackPage,Go as viewSwitcherPagesFromStack,Ko as viewSwitcherSidebarSections,ks as wrapBoxChildFlex,As as wrapBoxFlexStyle,js as wrapBoxLengthToPx,Ms as wrapPolicyFlexShrink};
@@ -0,0 +1 @@
1
+ import"./_virtual/_rolldown/runtime.js";import{listItemsChanged as e}from"./list.js";const t=new Set([`none`,`single`,`multiple`]);function normalizeListSelectionMode(e){return typeof e==`string`&&t.has(e)?e:`single`}function normalizeSelection(e,t){let n=new Set;for(let r of e)Number.isInteger(r)&&r>=0&&r<t&&n.add(r);return[...n].sort((e,t)=>e-t)}function listViewSelect(e,t,n,r,i,a={}){let o=normalizeSelection(e,r);if(i===`none`)return{selection:[],anchor:t};if(!Number.isInteger(n)||n<0||n>=r)return{selection:o,anchor:t};let s=new Set(o);if(i===`multiple`&&a.extend&&t>=0&&t<r){let e=Math.min(t,n),i=Math.max(t,n),o=[];for(let t=e;t<=i;t++)o.push(t);if(a.modify)if(s.has(t))for(let e of o)s.add(e);else for(let e of o)s.delete(e);else{s.clear();for(let e of o)s.add(e)}return{selection:normalizeSelection(s,r),anchor:n}}return a.modify?s.has(n)?i===`multiple`&&s.delete(n):(i===`multiple`||s.clear(),s.add(n)):(s.clear(),s.add(n)),{selection:normalizeSelection(s,r),anchor:n}}function listViewSelectAll(e,t){return t===`multiple`?Array.from({length:e},(e,t)=>t):[]}var ListViewState=class{constructor(){this._model=[],this._selection=[],this._anchor=-1,this._mode=`single`,this._itemListeners=new Set,this._selectionListeners=new Set}subscribeItems(e){return this._itemListeners.add(e),()=>{this._itemListeners.delete(e)}}subscribeSelection(e){return this._selectionListeners.add(e),()=>{this._selectionListeners.delete(e)}}get model(){return this._model.map(e=>({value:e.value,label:e.label}))}get count(){return this._model.length}get selection(){return[...this._selection]}get selectionMode(){return this._mode}setModel(t){let n=Array.isArray(t)?t:[],r=e(this._model,n);this._model=n.map(e=>({value:e.value,label:e.label}));let i=normalizeSelection(this._selection,this._model.length),a=i.length!==this._selection.length;if(this._selection=i,this._anchor>=this._model.length&&(this._anchor=-1),r)for(let e of[...this._itemListeners])e(r);a&&this._emitSelection(!1)}setSelectionMode(e){e!==this._mode&&(this._mode=e,e===`none`&&this._selection.length>0?(this._selection=[],this._emitSelection(!1)):e===`single`&&this._selection.length>1&&(this._selection=this._selection.includes(this._anchor)?[this._anchor]:[this._selection[0]],this._emitSelection(!1)))}isSelected(e){return this._selection.includes(e)}selectItem(e,t={},n=!0){let r=listViewSelect(this._selection,this._anchor,e,this._model.length,this._mode,t);return this._anchor=r.anchor,this._applySelection(r.selection,n)}selectAll(e=!1){return this._applySelection(listViewSelectAll(this._model.length,this._mode),e)}unselectAll(e=!1){return this._applySelection([],e)}setSelection(e,t=!1){let n=normalizeSelection(e,this._model.length),r=this._mode===`none`?[]:this._mode===`single`?n.slice(0,1):n;return r.length>0&&(this._anchor=r[r.length-1]),this._applySelection(r,t)}itemContext(e){let t=this._model[e];return t===void 0?null:{item:{value:t.value,label:t.label},position:e,selected:this.isSelected(e)}}_applySelection(e,t){return e.length===this._selection.length&&e.every((e,t)=>e===this._selection[t])?!1:(this._selection=e,this._emitSelection(t),!0)}_emitSelection(e){let t={selection:[...this._selection],interactive:e};for(let e of[...this._selectionListeners])e(t)}};const n=7,r=1;function gridViewColumns(e,t,n,r=1,i=7){let a=Math.max(1,Math.floor(r)),o=Math.max(1,Math.floor(i)),s=Math.floor((e+n)/Math.max(1,t+n));return Math.min(Math.max(s,a),Math.max(a,o))}function listItemField(e,t){return t===`value`?e.value:e.label}const i=-1;function normalizeColumnViewColumns(e){return Array.isArray(e)?e.filter(e=>typeof e==`object`&&!!e&&`key`in e).map(e=>{let t=e.key===`value`?`value`:`label`;return{key:t,title:e.title===void 0?t:String(e.title),id:e.id===void 0?t:String(e.id),expand:e.expand===!0,fixedWidth:typeof e.fixedWidth==`number`?e.fixedWidth:-1,visible:e.visible!==!1,sortable:e.sortable===!0}}):[]}function parseColumnViewColumns(e){if(!e)return[];try{return normalizeColumnViewColumns(JSON.parse(e))}catch{return[]}}function columnViewSort(e,t){if(t.sortable!==!0)return e;let n=t.id??t.key;return e!==null&&e.column===n?{column:n,descending:!e.descending}:{column:n,descending:!1}}function columnViewTracks(e){return e.filter(e=>e.visible!==!1).map(e=>{let t=e.fixedWidth??-1;return t>0?{kind:`fixed`,css:`${t}px`}:e.expand===!0?{kind:`flex`,weight:1}:{kind:`auto`}})}export{i as ADW_COLUMN_VIEW_NO_FIXED_WIDTH,n as ADW_GRID_VIEW_MAX_COLUMNS,r as ADW_GRID_VIEW_MIN_COLUMNS,ListViewState,columnViewSort,columnViewTracks,gridViewColumns,listItemField,listViewSelect,listViewSelectAll,normalizeColumnViewColumns,normalizeListSelectionMode,parseColumnViewColumns};
@@ -1 +1 @@
1
- import"./_virtual/_rolldown/runtime.js";import{ViewStackState as e}from"./view-stack.js";function tabViewItemsChanged(e){switch(e.kind){case`attached`:return{position:e.position,removed:0,added:1};case`detached`:return{position:e.position,removed:1,added:0};case`updated`:return{position:e.position,removed:1,added:1};default:{let t=Math.min(e.position,e.previousPosition),n=Math.abs(e.position-e.previousPosition)+1;return{position:t,removed:n,added:n}}}}const t=!0;function tabsRevealed(e){return e.autohide?e.nPages>1||e.nPinnedPages>=1||e.isTransferringPage:!0}function tabCloseVisible(e){return e.pinned?!1:e.hovering&&e.fullyVisible||e.selected||e.dragging}function tabTooltip(e){return e.tooltip===``?e.title:e.tooltip}function tabTooltipIsMarkup(e){return e.tooltip!==``}function tabIconState(e,t){let n=e.indicatorIcon,r=e.icon;return!e.loading&&e.pinned&&r===null&&(r=t),{icon:r,spinner:e.loading,iconVisible:(r!==null||e.loading)&&(!e.pinned||n===null),indicatorVisible:n!==null}}function isDescendantOfPage(e,t,n){let r=t;for(;r!==null&&r!==n;)r=e.find(e=>e.id===r)?.parentId??null;return r===n}function successorAfterClose(e,t,n){if(t!==n)return n;let r=e.findIndex(e=>e.id===t);if(r<0)return n;let i=e[r].parentId;if(i!==null&&r>0){let t=e[r-1];if(isDescendantOfPage(e,t.id,i))return t.id;let n=e.find(e=>e.id===i);if(n&&t.pinned&&n.pinned)return n.id}return r<e.length-1?e[r+1].id:r>0?e[r-1].id:null}function assertionDiagnostic(e,t){return`${e}: assertion '${t}' failed`}var TabViewState=class{constructor(t={}){this._stack=new e,this._selectionListeners=new Set,this._pagesListeners=new Set,this._diagnostics=[],this._selectedId=null,this._deferSelection=!1,this._deferredSelection=null,this._pagesSource=null,this._pagesView=null,this._handlers=t,this._stack.subscribe(e=>{let t=this._selectedId,n=e.page?.content?.id??null;this._selectedId=n;let r={selectedId:n,selectedIndex:e.index,previousId:t,interactive:e.interactive};this._deferSelection?this._deferredSelection=r:this._emitSelection(r)})}subscribe(e){return this._selectionListeners.add(e),()=>{this._selectionListeners.delete(e)}}subscribePages(e){return this._pagesListeners.add(e),()=>{this._pagesListeners.delete(e)}}_emitSelection(e){for(let t of[...this._selectionListeners])t(e)}_emitPages(e){for(let t of[...this._pagesListeners])t(e)}_flushDeferredSelection(){let e=this._deferredSelection;e&&(this._deferredSelection=null,this._emitSelection(e))}get pages(){let e=this._stack.pages;return(this._pagesSource!==e||this._pagesView===null)&&(this._pagesSource=e,this._pagesView=Object.freeze(e.map(e=>e.content))),this._pagesView}get nPages(){return this._stack.count}get nPinnedPages(){let e=this.pages.findIndex(e=>!e.pinned);return e<0?this.pages.length:e}getNthPage(e){return!Number.isInteger(e)||e<0||e>=this.nPages?null:this.pages[e]}getPagePosition(e){return this._stack.indexOfName(e)}getPage(e){return this._recordOf(e)}isClosing(e){return this._recordOf(e)?.closing??!1}get diagnostics(){return this._diagnostics}get selectedId(){return this._stack.visiblePage?.content?.id??null}get selectedIndex(){return this._stack.visibleIndex}get selectedPage(){return this._stack.visiblePage?.content??null}setSelectedPage(e,t=!0){if(e!==null&&typeof e!=`string`)return this.pages.includes(e)?this.setSelectedPage(e.id,t):(this._diagnostics.push(assertionDiagnostic(`adw_tab_view_set_selected_page`,`page_belongs_to_this_view (self, selected_page)`)),!1);let n=e;if(n===null)return this.nPages>0&&this._diagnostics.push(assertionDiagnostic(`adw_tab_view_set_selected_page`,`ADW_IS_TAB_PAGE (selected_page)`)),!1;let r=this.getPagePosition(n);return r<0?(this._diagnostics.push(assertionDiagnostic(`adw_tab_view_set_selected_page`,`page_belongs_to_this_view (self, selected_page)`)),!1):this._stack.setVisibleIndex(r,t)}selectNthPage(e){return this._stack.setVisibleIndex(e,!0)}selectPreviousPage(){let e=this.selectedIndex;return e<=0?!1:this._stack.setVisibleIndex(e-1,!0)}selectNextPage(){let e=this.selectedIndex;return e<0||e>=this.nPages-1?!1:this._stack.setVisibleIndex(e+1,!0)}selectFirstPage(){let e=this.selectedPage;if(!e)return!1;let t=e.pinned,n=this.getNthPage(t?0:this.nPinnedPages);return n===e&&!t&&(n=this.getNthPage(0)),!n||n===e?!1:this.setSelectedPage(n.id)}selectLastPage(){let e=this.selectedPage;if(!e)return!1;let t=e.pinned,n=this.getNthPage((t?this.nPinnedPages:this.nPages)-1);return n===e&&t&&(n=this.getNthPage(this.nPages-1)),!n||n===e?!1:this.setSelectedPage(n.id)}cycleNextPage(){return!this.selectedPage||this.nPages<=1?!1:this.selectNextPage()?!0:this._stack.setVisibleIndex(0,!0)}cyclePreviousPage(){return!this.selectedPage||this.nPages<=1?!1:this.selectPreviousPage()?!0:this._stack.setVisibleIndex(this.nPages-1,!0)}addPage(e,t=null){if(t===null)return this._insert(e,this.nPages,!1,null);let n=this.getPagePosition(t);if(n<0)return this._diagnostics.push(assertionDiagnostic(`adw_tab_view_add_page`,`page_belongs_to_this_view (self, parent)`)),-1;let r=this.pages[n].pinned?this.nPinnedPages-1:n;do if(r++,r>=this.nPages)break;while(isDescendantOfPage(this.pages,this.pages[r].id,t));return this._insert(e,r,!1,t)}insertPage(e,t){return!Number.isInteger(t)||t<this.nPinnedPages?(this._diagnostics.push(assertionDiagnostic(`adw_tab_view_insert`,`position >= self->n_pinned_pages`)),-1):t>this.nPages?(this._diagnostics.push(assertionDiagnostic(`adw_tab_view_insert`,`position <= self->n_pages`)),-1):this._insert(e,t,!1,null)}prependPage(e){return this._insert(e,this.nPinnedPages,!1,null)}appendPage(e){return this._insert(e,this.nPages,!1,null)}insertPinnedPage(e,t){return!Number.isInteger(t)||t<0?(this._diagnostics.push(assertionDiagnostic(`adw_tab_view_insert_pinned`,`position >= 0`)),-1):t>this.nPinnedPages?(this._diagnostics.push(assertionDiagnostic(`adw_tab_view_insert_pinned`,`position <= self->n_pinned_pages`)),-1):this._insert(e,t,!0,null)}prependPinnedPage(e){return this._insert(e,0,!0,null)}appendPinnedPage(e){return this._insert(e,this.nPinnedPages,!0,null)}_insert(e,t,n,r){if(this.getPagePosition(e.id)>=0)return this._diagnostics.push(assertionDiagnostic(`adw_tab_view_insert`,`page id '${e.id}' is unique`)),-1;let i={id:e.id,title:e.title??``,tooltip:e.tooltip??``,icon:e.icon??null,indicatorIcon:e.indicatorIcon??null,loading:e.loading??!1,needsAttention:e.needsAttention??!1,pinned:n,parentId:r,closing:!1,content:e.content};return this._deferSelection=!0,this._stack.insertPage({name:i.id,content:i},t),this._deferSelection=!1,this._emitPages({kind:`attached`,id:i.id,position:t,previousPosition:-1}),this._flushDeferredSelection(),t}setPagePinned(e,t){let n=this.getPagePosition(e);if(n<0)return this._diagnostics.push(assertionDiagnostic(`adw_tab_view_set_page_pinned`,`page_belongs_to_this_view (self, page)`)),-1;let r=this._recordAt(n),i=!!t;if(r.pinned===i)return-1;let a=i?this.nPinnedPages:this.nPinnedPages-1;return r.pinned=i,n!==a&&this._stack.movePage(n,a),this._emitPages({kind:`pinned`,id:e,position:a,previousPosition:n}),a}closePage(e){let t=this._recordOf(e);if(!t)return this._diagnostics.push(assertionDiagnostic(`adw_tab_view_close_page`,`page_belongs_to_this_view (self, page)`)),!1;if(t.closing)return!1;t.closing=!0;let n=this._handlers.onClosePage?this._handlers.onClosePage(t):!t.pinned;return n!==`defer`&&this.closePageFinish(e,n),!0}closePageFinish(e,t){let n=this._recordOf(e);return n?n.closing?(n.closing=!1,t?this.detachPage(e)!==null:!1):(this._diagnostics.push(assertionDiagnostic(`adw_tab_view_close_page_finish`,`page->closing`)),!1):(this._diagnostics.push(assertionDiagnostic(`adw_tab_view_close_page_finish`,`page_belongs_to_this_view (self, page)`)),!1)}detachPage(e){let t=this.getPagePosition(e);if(t<0)return this._diagnostics.push(assertionDiagnostic(`adw_tab_view_detach_page`,`page_belongs_to_this_view (self, page)`)),null;let n=this._recordAt(t),r=successorAfterClose(this.pages,e,this.selectedId);r!==null&&r!==this.selectedId&&this.setSelectedPage(r,!1);let i=this.selectedId===e;this._stack.removePage(e);for(let t of this._records())t.parentId===e&&(t.parentId=n.parentId);return i&&(this._selectedId=null,this._emitSelection({selectedId:null,selectedIndex:-1,previousId:e,interactive:!1})),this._emitPages({kind:`detached`,id:e,position:t,previousPosition:t}),n}closeOtherPages(e){let t=this.getPagePosition(e);if(t<0){this._diagnostics.push(assertionDiagnostic(`adw_tab_view_close_other_pages`,`page_belongs_to_this_view (self, page)`));return}let n=this.pages.map(e=>e.id);for(let e=n.length-1;e>=0;e--)e!==t&&this.closePage(n[e])}closePagesBefore(e){let t=this.getPagePosition(e);if(t<0){this._diagnostics.push(assertionDiagnostic(`adw_tab_view_close_pages_before`,`page_belongs_to_this_view (self, page)`));return}let n=this.pages.map(e=>e.id);for(let e=t-1;e>=0;e--)this.closePage(n[e])}closePagesAfter(e){let t=this.getPagePosition(e);if(t<0){this._diagnostics.push(assertionDiagnostic(`adw_tab_view_close_pages_after`,`page_belongs_to_this_view (self, page)`));return}let n=this.pages.map(e=>e.id);for(let e=n.length-1;e>t;e--)this.closePage(n[e])}reorderPage(e,t){let n=this.getPagePosition(e);if(n<0)return this._diagnostics.push(assertionDiagnostic(`adw_tab_view_reorder_page`,`page_belongs_to_this_view (self, page)`)),!1;let r=this.pages[n].pinned,i=r?0:this.nPinnedPages,a=r?this.nPinnedPages:this.nPages;return!Number.isInteger(t)||t<i||t>=a?(this._diagnostics.push(assertionDiagnostic(`adw_tab_view_reorder_page`,r?`position < self->n_pinned_pages`:`position >= self->n_pinned_pages`)),!1):n===t?!1:(this._stack.movePage(n,t),this._emitPages({kind:`reordered`,id:e,position:t,previousPosition:n}),!0)}reorderBackward(e){let t=this.getPagePosition(e);return t<0?this._reorderMissing(e):t<=(this.pages[t].pinned?0:this.nPinnedPages)?!1:this.reorderPage(e,t-1)}reorderForward(e){let t=this.getPagePosition(e);return t<0?this._reorderMissing(e):t>=(this.pages[t].pinned?this.nPinnedPages:this.nPages)-1?!1:this.reorderPage(e,t+1)}reorderFirst(e){let t=this.getPagePosition(e);return t<0?this._reorderMissing(e):this.reorderPage(e,this.pages[t].pinned?0:this.nPinnedPages)}reorderLast(e){let t=this.getPagePosition(e);return t<0?this._reorderMissing(e):this.reorderPage(e,(this.pages[t].pinned?this.nPinnedPages:this.nPages)-1)}_reorderMissing(e){return this._diagnostics.push(assertionDiagnostic(`adw_tab_view_reorder_page`,`page_belongs_to_this_view (self, '${e}')`)),!1}setPageTitle(e,t){return this._update(e,e=>{let n=t??``;return e.title===n?!1:(e.title=n,!0)})}setPageTooltip(e,t){return this._update(e,e=>{let n=t??``;return e.tooltip===n?!1:(e.tooltip=n,!0)})}setPageIcon(e,t){return this._update(e,e=>e.icon===t?!1:(e.icon=t,!0))}setPageIndicatorIcon(e,t){return this._update(e,e=>e.indicatorIcon===t?!1:(e.indicatorIcon=t,!0))}setPageLoading(e,t){return this._update(e,e=>{let n=!!t;return e.loading===n?!1:(e.loading=n,!0)})}setPageNeedsAttention(e,t){return this._update(e,e=>{let n=!!t;return e.needsAttention===n?!1:(e.needsAttention=n,!0)})}_update(e,t){let n=this.getPagePosition(e);return n<0?(this._diagnostics.push(assertionDiagnostic(`adw_tab_page_set_property`,`ADW_IS_TAB_PAGE (self)`)),!1):t(this._recordAt(n))?(this._emitPages({kind:`updated`,id:e,position:n,previousPosition:n}),!0):!1}_records(){return this._stack.pages.map(e=>e.content)}_recordAt(e){return this._stack.pages[e].content}_recordOf(e){let t=this.getPagePosition(e);return t<0?null:this._recordAt(t)}};export{t as DEFAULT_TAB_AUTOHIDE,TabViewState,isDescendantOfPage,successorAfterClose,tabCloseVisible,tabIconState,tabTooltip,tabTooltipIsMarkup,tabViewItemsChanged,tabsRevealed};
1
+ import"./_virtual/_rolldown/runtime.js";import{ViewStackState as e}from"./view-stack.js";function tabViewItemsChanged(e){switch(e.kind){case`attached`:return{position:e.position,removed:0,added:1};case`detached`:return{position:e.position,removed:1,added:0};case`updated`:return{position:e.position,removed:1,added:1};default:{let t=Math.min(e.position,e.previousPosition),n=Math.abs(e.position-e.previousPosition)+1;return{position:t,removed:n,added:n}}}}const t=!0;function tabsRevealed(e){return e.autohide?e.nPages>1||e.nPinnedPages>=1||e.isTransferringPage:!0}function tabCloseVisible(e){return e.pinned?!1:e.hovering&&e.fullyVisible||e.selected||e.dragging}function tabTooltip(e){return e.tooltip===``?e.title:e.tooltip}function tabTooltipIsMarkup(e){return e.tooltip!==``}function tabSearchMatches(e,t){if(t===``)return!0;let n=foldForSearch(t);return[e.title,e.tooltip,e.keyword].some(e=>e===``?!1:foldForSearch(e).includes(n))}function foldForSearch(e){return e.normalize(`NFKC`).toLocaleLowerCase()}function tabIconState(e,t){let n=e.indicatorIcon,r=e.icon;return!e.loading&&e.pinned&&r===null&&(r=t),{icon:r,spinner:e.loading,iconVisible:(r!==null||e.loading)&&(!e.pinned||n===null),indicatorVisible:n!==null}}function isDescendantOfPage(e,t,n){let r=t;for(;r!==null&&r!==n;)r=e.find(e=>e.id===r)?.parentId??null;return r===n}function successorAfterClose(e,t,n){if(t!==n)return n;let r=e.findIndex(e=>e.id===t);if(r<0)return n;let i=e[r].parentId;if(i!==null&&r>0){let t=e[r-1];if(isDescendantOfPage(e,t.id,i))return t.id;let n=e.find(e=>e.id===i);if(n&&t.pinned&&n.pinned)return n.id}return r<e.length-1?e[r+1].id:r>0?e[r-1].id:null}function assertionDiagnostic(e,t){return`${e}: assertion '${t}' failed`}var TabViewState=class{constructor(t={}){this._stack=new e,this._selectionListeners=new Set,this._pagesListeners=new Set,this._diagnostics=[],this._selectedId=null,this._deferSelection=!1,this._deferredSelection=null,this._pagesSource=null,this._pagesView=null,this._handlers=t,this._stack.subscribe(e=>{let t=this._selectedId,n=e.page?.content?.id??null;this._selectedId=n;let r={selectedId:n,selectedIndex:e.index,previousId:t,interactive:e.interactive};this._deferSelection?this._deferredSelection=r:this._emitSelection(r)})}subscribe(e){return this._selectionListeners.add(e),()=>{this._selectionListeners.delete(e)}}subscribePages(e){return this._pagesListeners.add(e),()=>{this._pagesListeners.delete(e)}}_emitSelection(e){for(let t of[...this._selectionListeners])t(e)}_emitPages(e){for(let t of[...this._pagesListeners])t(e)}_flushDeferredSelection(){let e=this._deferredSelection;e&&(this._deferredSelection=null,this._emitSelection(e))}get pages(){let e=this._stack.pages;return(this._pagesSource!==e||this._pagesView===null)&&(this._pagesSource=e,this._pagesView=Object.freeze(e.map(e=>e.content))),this._pagesView}get nPages(){return this._stack.count}get nPinnedPages(){let e=this.pages.findIndex(e=>!e.pinned);return e<0?this.pages.length:e}getNthPage(e){return!Number.isInteger(e)||e<0||e>=this.nPages?null:this.pages[e]}getPagePosition(e){return this._stack.indexOfName(e)}getPage(e){return this._recordOf(e)}isClosing(e){return this._recordOf(e)?.closing??!1}get diagnostics(){return this._diagnostics}get selectedId(){return this._stack.visiblePage?.content?.id??null}get selectedIndex(){return this._stack.visibleIndex}get selectedPage(){return this._stack.visiblePage?.content??null}setSelectedPage(e,t=!0){if(e!==null&&typeof e!=`string`)return this.pages.includes(e)?this.setSelectedPage(e.id,t):(this._diagnostics.push(assertionDiagnostic(`adw_tab_view_set_selected_page`,`page_belongs_to_this_view (self, selected_page)`)),!1);let n=typeof e==`string`?e:null;if(n===null)return this.nPages>0&&this._diagnostics.push(assertionDiagnostic(`adw_tab_view_set_selected_page`,`ADW_IS_TAB_PAGE (selected_page)`)),!1;let r=this.getPagePosition(n);return r<0?(this._diagnostics.push(assertionDiagnostic(`adw_tab_view_set_selected_page`,`page_belongs_to_this_view (self, selected_page)`)),!1):this._stack.setVisibleIndex(r,t)}selectNthPage(e){return this._stack.setVisibleIndex(e,!0)}selectPreviousPage(){let e=this.selectedIndex;return e<=0?!1:this._stack.setVisibleIndex(e-1,!0)}selectNextPage(){let e=this.selectedIndex;return e<0||e>=this.nPages-1?!1:this._stack.setVisibleIndex(e+1,!0)}selectFirstPage(){let e=this.selectedPage;if(!e)return!1;let t=e.pinned,n=this.getNthPage(t?0:this.nPinnedPages);return n===e&&!t&&(n=this.getNthPage(0)),!n||n===e?!1:this.setSelectedPage(n.id)}selectLastPage(){let e=this.selectedPage;if(!e)return!1;let t=e.pinned,n=this.getNthPage((t?this.nPinnedPages:this.nPages)-1);return n===e&&t&&(n=this.getNthPage(this.nPages-1)),!n||n===e?!1:this.setSelectedPage(n.id)}cycleNextPage(){return!this.selectedPage||this.nPages<=1?!1:this.selectNextPage()?!0:this._stack.setVisibleIndex(0,!0)}cyclePreviousPage(){return!this.selectedPage||this.nPages<=1?!1:this.selectPreviousPage()?!0:this._stack.setVisibleIndex(this.nPages-1,!0)}addPage(e,t=null){if(t===null)return this._insert(e,this.nPages,!1,null);let n=this.getPagePosition(t);if(n<0)return this._diagnostics.push(assertionDiagnostic(`adw_tab_view_add_page`,`page_belongs_to_this_view (self, parent)`)),-1;let r=this.pages[n].pinned?this.nPinnedPages-1:n;do if(r++,r>=this.nPages)break;while(isDescendantOfPage(this.pages,this.pages[r].id,t));return this._insert(e,r,!1,t)}insertPage(e,t){return!Number.isInteger(t)||t<this.nPinnedPages?(this._diagnostics.push(assertionDiagnostic(`adw_tab_view_insert`,`position >= self->n_pinned_pages`)),-1):t>this.nPages?(this._diagnostics.push(assertionDiagnostic(`adw_tab_view_insert`,`position <= self->n_pages`)),-1):this._insert(e,t,!1,null)}prependPage(e){return this._insert(e,this.nPinnedPages,!1,null)}appendPage(e){return this._insert(e,this.nPages,!1,null)}insertPinnedPage(e,t){return!Number.isInteger(t)||t<0?(this._diagnostics.push(assertionDiagnostic(`adw_tab_view_insert_pinned`,`position >= 0`)),-1):t>this.nPinnedPages?(this._diagnostics.push(assertionDiagnostic(`adw_tab_view_insert_pinned`,`position <= self->n_pinned_pages`)),-1):this._insert(e,t,!0,null)}prependPinnedPage(e){return this._insert(e,0,!0,null)}appendPinnedPage(e){return this._insert(e,this.nPinnedPages,!0,null)}_insert(e,t,n,r){if(this.getPagePosition(e.id)>=0)return this._diagnostics.push(assertionDiagnostic(`adw_tab_view_insert`,`page id '${e.id}' is unique`)),-1;let i={id:e.id,title:e.title??``,tooltip:e.tooltip??``,keyword:e.keyword??``,icon:e.icon??null,indicatorIcon:e.indicatorIcon??null,loading:e.loading??!1,needsAttention:e.needsAttention??!1,pinned:n,parentId:r,closing:!1,content:e.content};return this._deferSelection=!0,this._stack.insertPage({name:i.id,content:i},t),this._deferSelection=!1,this._emitPages({kind:`attached`,id:i.id,position:t,previousPosition:-1}),this._flushDeferredSelection(),t}setPagePinned(e,t){let n=this.getPagePosition(e);if(n<0)return this._diagnostics.push(assertionDiagnostic(`adw_tab_view_set_page_pinned`,`page_belongs_to_this_view (self, page)`)),-1;let r=this._recordAt(n),i=!!t;if(r.pinned===i)return-1;let a=i?this.nPinnedPages:this.nPinnedPages-1;return r.pinned=i,n!==a&&this._stack.movePage(n,a),this._emitPages({kind:`pinned`,id:e,position:a,previousPosition:n}),a}closePage(e){let t=this._recordOf(e);if(!t)return this._diagnostics.push(assertionDiagnostic(`adw_tab_view_close_page`,`page_belongs_to_this_view (self, page)`)),!1;if(t.closing)return!1;t.closing=!0;let n=this._handlers.onClosePage?this._handlers.onClosePage(t):!t.pinned;return n!==`defer`&&this.closePageFinish(e,n),!0}closePageFinish(e,t){let n=this._recordOf(e);return n?n.closing?(n.closing=!1,t?this.detachPage(e)!==null:!1):(this._diagnostics.push(assertionDiagnostic(`adw_tab_view_close_page_finish`,`page->closing`)),!1):(this._diagnostics.push(assertionDiagnostic(`adw_tab_view_close_page_finish`,`page_belongs_to_this_view (self, page)`)),!1)}detachPage(e){let t=this.getPagePosition(e);if(t<0)return this._diagnostics.push(assertionDiagnostic(`adw_tab_view_detach_page`,`page_belongs_to_this_view (self, page)`)),null;let n=this._recordAt(t),r=successorAfterClose(this.pages,e,this.selectedId);r!==null&&r!==this.selectedId&&this.setSelectedPage(r,!1);let i=this.selectedId===e;this._stack.removePage(e);for(let t of this._records())t.parentId===e&&(t.parentId=n.parentId);return i&&(this._selectedId=null,this._emitSelection({selectedId:null,selectedIndex:-1,previousId:e,interactive:!1})),this._emitPages({kind:`detached`,id:e,position:t,previousPosition:t}),n}closeOtherPages(e){let t=this.getPagePosition(e);if(t<0){this._diagnostics.push(assertionDiagnostic(`adw_tab_view_close_other_pages`,`page_belongs_to_this_view (self, page)`));return}let n=this.pages.map(e=>e.id);for(let e=n.length-1;e>=0;e--)e!==t&&this.closePage(n[e])}closePagesBefore(e){let t=this.getPagePosition(e);if(t<0){this._diagnostics.push(assertionDiagnostic(`adw_tab_view_close_pages_before`,`page_belongs_to_this_view (self, page)`));return}let n=this.pages.map(e=>e.id);for(let e=t-1;e>=0;e--)this.closePage(n[e])}closePagesAfter(e){let t=this.getPagePosition(e);if(t<0){this._diagnostics.push(assertionDiagnostic(`adw_tab_view_close_pages_after`,`page_belongs_to_this_view (self, page)`));return}let n=this.pages.map(e=>e.id);for(let e=n.length-1;e>t;e--)this.closePage(n[e])}reorderPage(e,t){let n=this.getPagePosition(e);if(n<0)return this._diagnostics.push(assertionDiagnostic(`adw_tab_view_reorder_page`,`page_belongs_to_this_view (self, page)`)),!1;let r=this.pages[n].pinned,i=r?0:this.nPinnedPages,a=r?this.nPinnedPages:this.nPages;return!Number.isInteger(t)||t<i||t>=a?(this._diagnostics.push(assertionDiagnostic(`adw_tab_view_reorder_page`,r?`position < self->n_pinned_pages`:`position >= self->n_pinned_pages`)),!1):n===t?!1:(this._stack.movePage(n,t),this._emitPages({kind:`reordered`,id:e,position:t,previousPosition:n}),!0)}reorderBackward(e){let t=this.getPagePosition(e);return t<0?this._reorderMissing(e):t<=(this.pages[t].pinned?0:this.nPinnedPages)?!1:this.reorderPage(e,t-1)}reorderForward(e){let t=this.getPagePosition(e);return t<0?this._reorderMissing(e):t>=(this.pages[t].pinned?this.nPinnedPages:this.nPages)-1?!1:this.reorderPage(e,t+1)}reorderFirst(e){let t=this.getPagePosition(e);return t<0?this._reorderMissing(e):this.reorderPage(e,this.pages[t].pinned?0:this.nPinnedPages)}reorderLast(e){let t=this.getPagePosition(e);return t<0?this._reorderMissing(e):this.reorderPage(e,(this.pages[t].pinned?this.nPinnedPages:this.nPages)-1)}_reorderMissing(e){return this._diagnostics.push(assertionDiagnostic(`adw_tab_view_reorder_page`,`page_belongs_to_this_view (self, '${e}')`)),!1}setPageTitle(e,t){return this._update(e,e=>{let n=t??``;return e.title===n?!1:(e.title=n,!0)})}setPageTooltip(e,t){return this._update(e,e=>{let n=t??``;return e.tooltip===n?!1:(e.tooltip=n,!0)})}setPageKeyword(e,t){return this._update(e,e=>{let n=t??``;return e.keyword===n?!1:(e.keyword=n,!0)})}setPageIcon(e,t){return this._update(e,e=>e.icon===t?!1:(e.icon=t,!0))}setPageIndicatorIcon(e,t){return this._update(e,e=>e.indicatorIcon===t?!1:(e.indicatorIcon=t,!0))}setPageLoading(e,t){return this._update(e,e=>{let n=!!t;return e.loading===n?!1:(e.loading=n,!0)})}setPageNeedsAttention(e,t){return this._update(e,e=>{let n=!!t;return e.needsAttention===n?!1:(e.needsAttention=n,!0)})}_update(e,t){let n=this.getPagePosition(e);return n<0?(this._diagnostics.push(assertionDiagnostic(`adw_tab_page_set_property`,`ADW_IS_TAB_PAGE (self)`)),!1):t(this._recordAt(n))?(this._emitPages({kind:`updated`,id:e,position:n,previousPosition:n}),!0):!1}_records(){return this._stack.pages.map(e=>e.content)}_recordAt(e){return this._stack.pages[e].content}_recordOf(e){let t=this.getPagePosition(e);return t<0?null:this._recordAt(t)}};export{t as DEFAULT_TAB_AUTOHIDE,TabViewState,isDescendantOfPage,successorAfterClose,tabCloseVisible,tabIconState,tabSearchMatches,tabTooltip,tabTooltipIsMarkup,tabViewItemsChanged,tabsRevealed};
@@ -1 +1 @@
1
- const e={"--window-bg-color":{light:`#fafafb`,dark:`#222226`},"--window-fg-color":{light:`rgba(0, 0, 6, 0.8)`,dark:`#ffffff`},"--view-bg-color":{light:`#ffffff`,dark:`#1d1d20`},"--view-fg-color":{light:`rgba(0, 0, 6, 0.8)`,dark:`#ffffff`},"--headerbar-bg-color":{light:`#ffffff`,dark:`#2e2e32`},"--headerbar-fg-color":{light:`rgba(0, 0, 6, 0.8)`,dark:`#ffffff`},"--headerbar-shade-color":{light:`rgba(0, 0, 6, 0.12)`,dark:`rgba(0, 0, 6, 0.36)`},"--separator-color":{light:`rgba(0, 0, 6, 0.1)`,dark:`rgba(255, 255, 255, 0.08)`},"--shade-color":{light:`rgba(0, 0, 6, 0.07)`,dark:`rgba(0, 0, 6, 0.25)`},"--sidebar-bg-color":{light:`#ebebed`,dark:`#2e2e32`},"--sidebar-fg-color":{light:`rgba(0, 0, 6, 0.8)`,dark:`#ffffff`},"--sidebar-backdrop-color":{light:`#f2f2f4`,dark:`#28282c`},"--sidebar-shade-color":{light:`rgba(0, 0, 6, 0.07)`,dark:`rgba(0, 0, 6, 0.25)`},"--sidebar-border-color":{light:`rgba(0, 0, 6, 0.07)`,dark:`rgba(0, 0, 6, 0.36)`},"--secondary-sidebar-bg-color":{light:`#f3f3f5`,dark:`#28282c`},"--secondary-sidebar-fg-color":{light:`rgba(0, 0, 6, 0.8)`,dark:`#ffffff`},"--secondary-sidebar-backdrop-color":{light:`#f6f6fa`,dark:`#252529`},"--secondary-sidebar-shade-color":{light:`rgba(0, 0, 6, 0.07)`,dark:`rgba(0, 0, 6, 0.25)`},"--secondary-sidebar-border-color":{light:`rgba(0, 0, 6, 0.07)`,dark:`rgba(0, 0, 6, 0.36)`},"--card-bg-color":{light:`#ffffff`,dark:`rgba(255, 255, 255, 0.08)`},"--card-fg-color":{light:`rgba(0, 0, 6, 0.8)`,dark:`#ffffff`},"--card-shade-color":{light:`rgba(0, 0, 6, 0.07)`,dark:`rgba(0, 0, 6, 0.36)`},"--accent-bg-color":{light:`#3584e4`},"--accent-fg-color":{light:`#ffffff`},"--accent-color":{light:`#1c71d8`,dark:`#78aeed`},"--popover-bg-color":{light:`#ffffff`,dark:`#36363a`},"--popover-fg-color":{light:`rgba(0, 0, 6, 0.8)`,dark:`#ffffff`},"--popover-shade-color":{light:`rgba(0, 0, 6, 0.07)`,dark:`rgba(0, 0, 6, 0.36)`},"--dialog-scrim-color":{light:`rgba(0, 0, 6, 0.32)`,dark:`rgba(0, 0, 6, 0.55)`},"--button-bg-color":{light:`rgba(0, 0, 6, 0.08)`,dark:`rgba(255, 255, 255, 0.1)`},"--button-hover-color":{light:`rgba(0, 0, 6, 0.13)`,dark:`rgba(255, 255, 255, 0.15)`},"--button-active-color":{light:`rgba(0, 0, 6, 0.19)`,dark:`rgba(255, 255, 255, 0.22)`},"--entry-bg-color":{light:`#ffffff`,dark:`rgba(255, 255, 255, 0.06)`},"--entry-border-color":{light:`rgba(0, 0, 6, 0.18)`,dark:`rgba(255, 255, 255, 0.16)`},"--entry-border-hover-color":{light:`rgba(0, 0, 6, 0.28)`,dark:`rgba(255, 255, 255, 0.26)`},"--destructive-bg-color":{light:`#e01b24`,dark:`#c01c28`},"--destructive-fg-color":{light:`#ffffff`},"--destructive-color":{light:`oklab(from var(--destructive-bg-color) min(l, 0.5) a b)`,dark:`oklab(from var(--destructive-bg-color) max(l, 0.85) a b)`},"--success-bg-color":{light:`#2ec27e`,dark:`#26a269`},"--success-fg-color":{light:`#ffffff`},"--success-color":{light:`oklab(from var(--success-bg-color) min(l, 0.5) a b)`,dark:`oklab(from var(--success-bg-color) max(l, 0.85) a b)`},"--warning-bg-color":{light:`#e5a50a`,dark:`#cd9309`},"--warning-fg-color":{light:`rgba(0, 0, 0, 0.8)`},"--warning-color":{light:`oklab(from var(--warning-bg-color) min(l, 0.5) a b)`,dark:`oklab(from var(--warning-bg-color) max(l, 0.85) a b)`},"--error-bg-color":{light:`#e01b24`,dark:`#c01c28`},"--error-fg-color":{light:`#ffffff`},"--error-color":{light:`oklab(from var(--error-bg-color) min(l, 0.5) a b)`,dark:`oklab(from var(--error-bg-color) max(l, 0.85) a b)`},"--switch-off-bg":{light:`rgba(0, 0, 0, 0.2)`,dark:`rgba(255, 255, 255, 0.2)`},"--switch-knob-bg":{light:`#ffffff`,dark:`#deddda`},"--window-radius":{light:`15px`},"--card-radius":{light:`12px`},"--button-radius":{light:`9px`},"--spacing-xs":{light:`6px`},"--spacing-s":{light:`9px`},"--spacing-m":{light:`12px`},"--spacing-l":{light:`18px`},"--spacing-xl":{light:`24px`},"--font-family":{light:`'Adwaita Sans', 'Cantarell', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif`},"--font-size-base":{light:`11pt`},"--font-size-small":{light:`9pt`},"--font-size-heading":{light:`12pt`},"--dim-opacity":{light:`0.55`},"--border-opacity":{light:`15%`},"--border-color":{light:`color-mix(in srgb, currentColor var(--border-opacity), transparent)`},"--disabled-opacity":{light:`0.5`},"--document-font-family":{light:`var(--font-family)`},"--document-font-size":{light:`var(--font-size-base)`},"--monospace-font-family":{light:`'Adwaita Mono', ui-monospace, 'SF Mono', 'Menlo', 'Consolas', monospace`},"--monospace-font-size":{light:`var(--font-size-base)`}},t=[`--active-toggle-bg-color`],n=[`--border-color`,`--destructive-color`,`--document-font-family`,`--document-font-size`,`--error-color`,`--monospace-font-size`,`--success-color`,`--warning-color`],r=69;export{t as ADWAITA_DARK_ONLY_TOKENS,e as ADWAITA_TOKENS,r as ADWAITA_TOKEN_COUNT,n as ADWAITA_UNRESOLVED_TOKENS};
1
+ const e={"--window-bg-color":{light:`#fafafb`,dark:`#222226`},"--window-fg-color":{light:`rgba(0, 0, 6, 0.8)`,dark:`#ffffff`},"--view-bg-color":{light:`#ffffff`,dark:`#1d1d20`},"--view-fg-color":{light:`rgba(0, 0, 6, 0.8)`,dark:`#ffffff`},"--headerbar-bg-color":{light:`#ffffff`,dark:`#2e2e32`},"--headerbar-fg-color":{light:`rgba(0, 0, 6, 0.8)`,dark:`#ffffff`},"--headerbar-shade-color":{light:`rgba(0, 0, 6, 0.12)`,dark:`rgba(0, 0, 6, 0.36)`},"--separator-color":{light:`rgba(0, 0, 6, 0.1)`,dark:`rgba(255, 255, 255, 0.08)`},"--shade-color":{light:`rgba(0, 0, 6, 0.07)`,dark:`rgba(0, 0, 6, 0.25)`},"--sidebar-bg-color":{light:`#ebebed`,dark:`#2e2e32`},"--sidebar-fg-color":{light:`rgba(0, 0, 6, 0.8)`,dark:`#ffffff`},"--sidebar-backdrop-color":{light:`#f2f2f4`,dark:`#28282c`},"--sidebar-shade-color":{light:`rgba(0, 0, 6, 0.07)`,dark:`rgba(0, 0, 6, 0.25)`},"--sidebar-border-color":{light:`rgba(0, 0, 6, 0.07)`,dark:`rgba(0, 0, 6, 0.36)`},"--secondary-sidebar-bg-color":{light:`#f3f3f5`,dark:`#28282c`},"--secondary-sidebar-fg-color":{light:`rgba(0, 0, 6, 0.8)`,dark:`#ffffff`},"--secondary-sidebar-backdrop-color":{light:`#f6f6fa`,dark:`#252529`},"--secondary-sidebar-shade-color":{light:`rgba(0, 0, 6, 0.07)`,dark:`rgba(0, 0, 6, 0.25)`},"--secondary-sidebar-border-color":{light:`rgba(0, 0, 6, 0.07)`,dark:`rgba(0, 0, 6, 0.36)`},"--card-bg-color":{light:`#ffffff`,dark:`rgba(255, 255, 255, 0.08)`},"--card-fg-color":{light:`rgba(0, 0, 6, 0.8)`,dark:`#ffffff`},"--card-shade-color":{light:`rgba(0, 0, 6, 0.07)`,dark:`rgba(0, 0, 6, 0.36)`},"--accent-bg-color":{light:`#3584e4`},"--accent-fg-color":{light:`#ffffff`},"--accent-color":{light:`#1c71d8`,dark:`#78aeed`},"--popover-bg-color":{light:`#ffffff`,dark:`#36363a`},"--popover-fg-color":{light:`rgba(0, 0, 6, 0.8)`,dark:`#ffffff`},"--popover-shade-color":{light:`rgba(0, 0, 6, 0.07)`,dark:`rgba(0, 0, 6, 0.36)`},"--dialog-scrim-color":{light:`rgba(0, 0, 6, 0.32)`,dark:`rgba(0, 0, 6, 0.55)`},"--button-bg-color":{light:`rgba(0, 0, 6, 0.08)`,dark:`rgba(255, 255, 255, 0.1)`},"--button-hover-color":{light:`rgba(0, 0, 6, 0.13)`,dark:`rgba(255, 255, 255, 0.15)`},"--button-active-color":{light:`rgba(0, 0, 6, 0.19)`,dark:`rgba(255, 255, 255, 0.22)`},"--entry-bg-color":{light:`rgba(0, 0, 6, 0.1)`,dark:`rgba(255, 255, 255, 0.1)`},"--entry-border-color":{light:`rgba(0, 0, 6, 0.18)`,dark:`rgba(255, 255, 255, 0.16)`},"--entry-border-hover-color":{light:`rgba(0, 0, 6, 0.28)`,dark:`rgba(255, 255, 255, 0.26)`},"--destructive-bg-color":{light:`#e01b24`,dark:`#c01c28`},"--destructive-fg-color":{light:`#ffffff`},"--destructive-color":{light:`oklab(from var(--destructive-bg-color) min(l, 0.5) a b)`,dark:`oklab(from var(--destructive-bg-color) max(l, 0.85) a b)`},"--success-bg-color":{light:`#2ec27e`,dark:`#26a269`},"--success-fg-color":{light:`#ffffff`},"--success-color":{light:`oklab(from var(--success-bg-color) min(l, 0.5) a b)`,dark:`oklab(from var(--success-bg-color) max(l, 0.85) a b)`},"--warning-bg-color":{light:`#e5a50a`,dark:`#cd9309`},"--warning-fg-color":{light:`rgba(0, 0, 0, 0.8)`},"--warning-color":{light:`oklab(from var(--warning-bg-color) min(l, 0.5) a b)`,dark:`oklab(from var(--warning-bg-color) max(l, 0.85) a b)`},"--error-bg-color":{light:`#e01b24`,dark:`#c01c28`},"--error-fg-color":{light:`#ffffff`},"--error-color":{light:`oklab(from var(--error-bg-color) min(l, 0.5) a b)`,dark:`oklab(from var(--error-bg-color) max(l, 0.85) a b)`},"--switch-off-bg":{light:`rgba(0, 0, 0, 0.2)`,dark:`rgba(255, 255, 255, 0.2)`},"--switch-knob-bg":{light:`#ffffff`,dark:`#deddda`},"--window-radius":{light:`15px`},"--card-radius":{light:`12px`},"--button-radius":{light:`9px`},"--spacing-xs":{light:`6px`},"--spacing-s":{light:`9px`},"--spacing-m":{light:`12px`},"--spacing-l":{light:`18px`},"--spacing-xl":{light:`24px`},"--font-family":{light:`'Adwaita Sans', 'Cantarell', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif`},"--font-size-base":{light:`11pt`},"--font-size-small":{light:`9pt`},"--font-size-heading":{light:`12pt`},"--dim-opacity":{light:`0.55`},"--border-opacity":{light:`15%`},"--border-color":{light:`color-mix(in srgb, currentColor var(--border-opacity), transparent)`},"--disabled-opacity":{light:`0.5`},"--document-font-family":{light:`var(--font-family)`},"--document-font-size":{light:`var(--font-size-base)`},"--monospace-font-family":{light:`'Adwaita Mono', ui-monospace, 'SF Mono', 'Cascadia Code', 'Consolas', 'Menlo', monospace`},"--monospace-font-size":{light:`var(--font-size-base)`}},t=[`--active-toggle-bg-color`],n=[`--border-color`,`--destructive-color`,`--document-font-family`,`--document-font-size`,`--error-color`,`--monospace-font-size`,`--success-color`,`--warning-color`],r=69;export{t as ADWAITA_DARK_ONLY_TOKENS,e as ADWAITA_TOKENS,r as ADWAITA_TOKEN_COUNT,n as ADWAITA_UNRESOLVED_TOKENS};
@@ -0,0 +1 @@
1
+ import"./_virtual/_rolldown/runtime.js";const e={indents:0,expander:`none`,level:1};function treeExpanderLayout(t,n={}){if(!t)return e;let r=n.indentForDepth!==!1,i=n.indentForIcon!==!1,a=n.hideExpander===!0,o=r?Math.max(0,Math.floor(t.depth)):0,s=t.expandable&&!a;return!s&&i&&o++,{indents:o,expander:s?t.expanded?`expanded`:`collapsed`:`none`,level:o+1}}function treeExpanderAction(e,t={}){if(e===`+`||e===`*`)return`expand`;if(e===`-`||e===`/`)return`collapse`;if(e===` `&&t.ctrlKey===!0)return`toggle`;if(t.shiftKey!==!0)return`none`;let n=t.rtl===!0;return e===`ArrowRight`?n?`collapse`:`expand`:e===`ArrowLeft`?n?`expand`:`collapse`:`none`}function treeExpanderExpanded(e,t){switch(t){case`expand`:return!0;case`collapse`:return!1;case`toggle`:return!e;case`none`:return e}}export{treeExpanderAction,treeExpanderExpanded,treeExpanderLayout};
@@ -1 +1 @@
1
- import"./_virtual/_rolldown/runtime.js";function resolvePageTitle(e,t){return e??t}const e=/^[A-Za-z0-9_-]+$/;function normalizeIconName(t){let n=(t??``).replace(/-symbolic$/,``);return e.test(n)?n:``}function nameNotFoundDiagnostic(e){return`Child name '${e}' not found in AdwViewStack`}function duplicateNameDiagnostic(e){return`While adding page: duplicate child name in AdwViewStack: ${e}`}var ViewStackState=class{constructor(){this._pages=[],this._visibleIndex=-1,this._listeners=new Set,this._diagnostics=[],this._pagesView=null}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}_emit(e){let t=this._pageAt(this._visibleIndex),n={index:this._visibleIndex,name:t?.name??``,title:t?.title??``,page:t,interactive:e};for(let e of[...this._listeners])e(n)}_pageAt(e){return e>=0&&e<this._pages.length?this._pages[e]:void 0}_firstVisibleIndex(){return this._pages.findIndex(e=>e.visible)}_record(e){return{name:e.name,title:resolvePageTitle(e.title,e.name),icon:normalizeIconName(e.icon),content:e.content,visible:e.visible??!0,badgeNumber:Number.isFinite(e.badgeNumber)?Math.trunc(e.badgeNumber):0,needsAttention:e.needsAttention===!0,useUnderline:e.useUnderline===!0}}get pages(){return this._pagesView??=Object.freeze(this._pages.slice()),this._pagesView}get count(){return this._pages.length}indexOfName(e){return this._pages.findIndex(t=>t.name===e)}isSelected(e){return!Number.isInteger(e)||e<0||e>=this._pages.length?!1:e===this._visibleIndex}addPage(e){return this._insertRecord(this._record(e),this._pages.length)}insertPage(e,t){return!Number.isInteger(t)||t<0||t>this._pages.length?null:this._insertRecord(this._record(e),t)}_insertRecord(e,t){return this.indexOfName(e.name)>=0&&this._diagnostics.push(duplicateNameDiagnostic(e.name)),this._pages.splice(t,0,e),this._pagesView=null,this._visibleIndex<0?(e.visible&&(this._visibleIndex=t,this._emit(!1)),e):(t<=this._visibleIndex&&(this._visibleIndex+=1),e)}movePage(e,t){if(!Number.isInteger(e)||!Number.isInteger(t)||e<0||e>=this._pages.length||t<0||t>=this._pages.length||e===t)return!1;let[n]=this._pages.splice(e,1);if(this._pages.splice(t,0,n),this._pagesView=null,this._visibleIndex===e)this._visibleIndex=t;else{let n=this._visibleIndex;n>e&&--n,n>=t&&(n+=1),this._visibleIndex=n}return!0}removePage(e){let t=this.indexOfName(e);return t<0?!1:(this._pages.splice(t,1),this._pagesView=null,t===this._visibleIndex?this._visibleIndex=-1:t<this._visibleIndex&&--this._visibleIndex,!0)}get visibleIndex(){return this._visibleIndex}setVisibleIndex(e,t=!0){return!Number.isInteger(e)||e<0||e>=this._pages.length||e===this._visibleIndex||!this._pages[e].visible?!1:(this._visibleIndex=e,this._emit(t),!0)}get visibleName(){return this._pageAt(this._visibleIndex)?.name??``}setVisibleName(e,t=!0){if(e==null)return!1;let n=this.indexOfName(e);return n<0?(this._diagnostics.push(nameNotFoundDiagnostic(e)),!1):this.setVisibleIndex(n,t)}get visiblePage(){return this._pageAt(this._visibleIndex)}get visibleTitle(){return this._pageAt(this._visibleIndex)?.title??``}setPageVisible(e,t){let n=this.indexOfName(e);if(n<0)return this._diagnostics.push(nameNotFoundDiagnostic(e)),!1;let r=this._pages[n],i=!!t;return r.visible===i?!1:(r.visible=i,this._visibleIndex<0&&i?(this._visibleIndex=n,this._emit(!1),!0):this._visibleIndex===n&&!i?(this._visibleIndex=this._firstVisibleIndex(),this._emit(!1),!0):!1)}get duplicateNames(){let e=new Set,t=[];for(let n of this._pages)e.has(n.name)?t.includes(n.name)||t.push(n.name):e.add(n.name);return t}get diagnostics(){return this._diagnostics}};export{ViewStackState,normalizeIconName,resolvePageTitle};
1
+ import"./_virtual/_rolldown/runtime.js";function resolvePageTitle(e,t){return e??t}const e=/^[A-Za-z0-9_-]+$/;function normalizeIconName(t){let n=(t??``).replace(/-symbolic$/,``);return e.test(n)?n:``}function nameNotFoundDiagnostic(e){return`Child name '${e}' not found in AdwViewStack`}function duplicateNameDiagnostic(e){return`While adding page: duplicate child name in AdwViewStack: ${e}`}var ViewStackState=class{constructor(){this._pages=[],this._visibleIndex=-1,this._listeners=new Set,this._diagnostics=[],this._pagesView=null}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}_emit(e){let t=this._pageAt(this._visibleIndex),n={index:this._visibleIndex,name:t?.name??``,title:t?.title??``,page:t,interactive:e};for(let e of[...this._listeners])e(n)}_pageAt(e){return e>=0&&e<this._pages.length?this._pages[e]:void 0}_firstVisibleIndex(){return this._pages.findIndex(e=>e.visible)}_record(e){return{name:e.name,title:resolvePageTitle(e.title,e.name),icon:normalizeIconName(e.icon),content:e.content,visible:e.visible??!0,badgeNumber:Number.isFinite(e.badgeNumber)?Math.trunc(e.badgeNumber):0,needsAttention:e.needsAttention===!0,useUnderline:e.useUnderline===!0,startsSection:e.startsSection===!0,sectionTitle:e.sectionTitle??``}}get pages(){return this._pagesView??=Object.freeze(this._pages.slice()),this._pagesView}get count(){return this._pages.length}indexOfName(e){return this._pages.findIndex(t=>t.name===e)}isSelected(e){return!Number.isInteger(e)||e<0||e>=this._pages.length?!1:e===this._visibleIndex}addPage(e){return this._insertRecord(this._record(e),this._pages.length)}insertPage(e,t){return!Number.isInteger(t)||t<0||t>this._pages.length?null:this._insertRecord(this._record(e),t)}_insertRecord(e,t){return this.indexOfName(e.name)>=0&&this._diagnostics.push(duplicateNameDiagnostic(e.name)),this._pages.splice(t,0,e),this._pagesView=null,this._visibleIndex<0?(e.visible&&(this._visibleIndex=t,this._emit(!1)),e):(t<=this._visibleIndex&&(this._visibleIndex+=1),e)}movePage(e,t){if(!Number.isInteger(e)||!Number.isInteger(t)||e<0||e>=this._pages.length||t<0||t>=this._pages.length||e===t)return!1;let[n]=this._pages.splice(e,1);if(this._pages.splice(t,0,n),this._pagesView=null,this._visibleIndex===e)this._visibleIndex=t;else{let n=this._visibleIndex;n>e&&--n,n>=t&&(n+=1),this._visibleIndex=n}return!0}removePage(e){let t=this.indexOfName(e);return t<0?!1:(this._pages.splice(t,1),this._pagesView=null,t===this._visibleIndex?this._visibleIndex=-1:t<this._visibleIndex&&--this._visibleIndex,!0)}get visibleIndex(){return this._visibleIndex}setVisibleIndex(e,t=!0){return!Number.isInteger(e)||e<0||e>=this._pages.length||e===this._visibleIndex||!this._pages[e].visible?!1:(this._visibleIndex=e,this._emit(t),!0)}get visibleName(){return this._pageAt(this._visibleIndex)?.name??``}setVisibleName(e,t=!0){if(e==null)return!1;let n=this.indexOfName(e);return n<0?(this._diagnostics.push(nameNotFoundDiagnostic(e)),!1):this.setVisibleIndex(n,t)}get visiblePage(){return this._pageAt(this._visibleIndex)}get visibleTitle(){return this._pageAt(this._visibleIndex)?.title??``}setPageVisible(e,t){let n=this.indexOfName(e);if(n<0)return this._diagnostics.push(nameNotFoundDiagnostic(e)),!1;let r=this._pages[n],i=!!t;return r.visible===i?!1:(r.visible=i,this._visibleIndex<0&&i?(this._visibleIndex=n,this._emit(!1),!0):this._visibleIndex===n&&!i?(this._visibleIndex=this._firstVisibleIndex(),this._emit(!1),!0):!1)}get duplicateNames(){let e=new Set,t=[];for(let n of this._pages)e.has(n.name)?t.includes(n.name)||t.push(n.name):e.add(n.name);return t}get diagnostics(){return this._diagnostics}};export{ViewStackState,normalizeIconName,resolvePageTitle};
@@ -1 +1 @@
1
- import"./_virtual/_rolldown/runtime.js";import{stripMnemonic as e}from"./glib.js";import{ViewStackState as t}from"./view-stack.js";const n=-1,r=`image-missing`,i=500,a=999,o=[`narrow`,`wide`],s=[`labels`,`icons`,`both`];function isViewSwitcherPolicy(e){return e===`narrow`||e===`wide`}function isInlineViewSwitcherDisplayMode(e){return e===`labels`||e===`icons`||e===`both`}function createViewSwitcherPage(e){return{name:e.name,title:e.title??null,iconName:e.iconName??null,visible:e.visible??!0,useUnderline:e.useUnderline??!1,badgeNumber:normalizeBadgeNumber(e.badgeNumber),needsAttention:e.needsAttention??!1}}function viewSwitcherPageFromStackPage(e){return createViewSwitcherPage({name:e.name,title:e.title,iconName:e.icon.length>0?e.icon:null,visible:e.visible,badgeNumber:e.badgeNumber,needsAttention:e.needsAttention,useUnderline:e.useUnderline})}function viewSwitcherPagesFromStack(e){return e.map(e=>viewSwitcherPageFromStackPage(e))}function isViewSwitcherButtonVisible(e){return e.visible&&(isPresent(e.title)||isPresent(e.iconName))}function viewSwitcherIconName(e){return isPresent(e)&&e.length>0?e:r}function viewSwitcherLabel(t){return isPresent(t.title)?t.useUnderline?e(t.title):t.title:``}function viewSwitcherBadgeLabel(e){let t=normalizeBadgeNumber(e);return t>999?`999+`:t===0?``:String(t)}const c={attentionRequested:`Attention requested.`,badgeOverflow:`Has a badge: more than 999.`,badge:e=>`Has a badge: ${e}.`};function viewSwitcherIndicatorDescription(e,t,n=c){let r=normalizeBadgeNumber(t),i=e?n.attentionRequested:``,a=``;return r>999?a=n.badgeOverflow:r>0&&(a=n.badge(r)),i&&a?`${a} ${i}`:i||a}function inlineToggleTooltip(e,t){return t===`icons`?viewSwitcherLabel(e):``}function shouldRevealViewSwitcherBar(e,t){if(!e)return!1;let n=0;for(let e of t)if(e.visible&&(n++,n>1))return!0;return!1}function viewSwitcherButtonOrientation(e){return e===`wide`?`horizontal`:`vertical`}function buildViewSwitcherButtons(e,t,n,r=c){let i=viewSwitcherButtonOrientation(n);return e.map((e,n)=>({pageIndex:n,name:e.name,label:viewSwitcherLabel(e),iconName:viewSwitcherIconName(e.iconName),visible:isViewSwitcherButtonVisible(e),selected:n===t,orientation:i,badgeLabel:viewSwitcherBadgeLabel(e.badgeNumber),needsAttention:e.needsAttention,description:viewSwitcherIndicatorDescription(e.needsAttention,e.badgeNumber,r)}))}function buildInlineToggles(e,t,n=c){let r=t!==`labels`,i=t!==`icons`,a=[];return e.forEach((e,o)=>{e.visible&&a.push({toggleIndex:a.length,pageIndex:o,name:e.name,label:viewSwitcherLabel(e),iconName:viewSwitcherIconName(e.iconName),showIcon:r,showLabel:i,tooltip:inlineToggleTooltip(e,t),badgeLabel:viewSwitcherBadgeLabel(e.badgeNumber),needsAttention:e.needsAttention,description:viewSwitcherIndicatorDescription(e.needsAttention,e.badgeNumber,n)})}),a}function toggleIndexForPage(e,t){if(!Number.isInteger(t)||t<0||t>=e.length||!e[t].visible)return-1;let n=0;for(let r=0;r<t;r++)e[r].visible&&n++;return n}function pageIndexForToggle(e,t){if(!Number.isInteger(t)||t<0)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r].visible){if(n===t)return r;n++}return-1}var ViewSwitcherDragSwitch=class{constructor(e){this._timers=new Map,this._scheduler=e.scheduler,this._onSwitch=e.onSwitch,this._delay=e.delay??500}enter(e,t){if(!Number.isInteger(e)||e<0||e===t||this._timers.has(e))return!1;let n=this._scheduler.schedule(()=>{this._timers.delete(e),this._onSwitch(e)},this._delay);return this._timers.set(e,n),!0}leave(e){let t=this._timers.get(e);t!==void 0&&(this._timers.delete(e),this._scheduler.cancel(t))}cancel(){for(let e of this._timers.values())this._scheduler.cancel(e);this._timers.clear()}get pending(){return[...this._timers.keys()].sort((e,t)=>e-t)}},ViewSwitcherState=class{constructor(e={}){this._pages=[],this._pagesView=null,this._stack=new t,this._listeners=new Set,this._drag=e.scheduler?new ViewSwitcherDragSwitch({scheduler:e.scheduler,delay:e.dragSwitchDelay,onSwitch:e=>{this.setSelected(e)}}):null,this._subscribeStack()}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}get pages(){return this._pagesView??=Object.freeze(this._pages.slice()),this._pagesView}setPages(e){let n=this.selected,r=n>=0?this.selectedName:null;this._pages=e.map(e=>createViewSwitcherPage(e)),this._pagesView=null;let i=new t;for(let e of this._pages)i.addPage({name:e.name,title:e.title,visible:e.visible});if(r!==null){let e=i.indexOfName(r);e>=0&&i.setVisibleIndex(e,!1)}this._stack=i,this._subscribeStack(),this._drag?.cancel(),(this.selected!==n||this.selectedName!==(r??``))&&this._emit(!1)}get selected(){return this._stack.visibleIndex}get selectedName(){return this._stack.visibleName}get selectedPage(){return this._pages[this.selected]}get count(){return this._pages.length}setSelected(e,t=!0){return this._stack.setVisibleIndex(e,t)}selectName(e,t=!0){return this._stack.setVisibleName(e,t)}setPageVisible(e,t){let n=this._pages.findIndex(t=>t.name===e);if(n<0)return!1;let r=this._pages[n],i=!!t;return r.visible===i?!1:(this._pages[n]={...r,visible:i},this._pagesView=null,this._stack.setPageVisible(e,i))}dragEnter(e){this._drag?.enter(e,this.selected)}dragLeave(e){this._drag?.leave(e)}cancelDrag(){this._drag?.cancel()}get pendingDragSwitches(){return this._drag?.pending??[]}get diagnostics(){return this._stack.diagnostics}_subscribeStack(){this._stack.subscribe(e=>this._emit(e.interactive))}_emit(e){let t=this.selectedPage,n={selected:this.selected,name:t?.name??``,title:t?viewSwitcherLabel(t):``,interactive:e};for(let e of[...this._listeners])e(n)}},ViewSwitcherBarState=class{constructor(){this._reveal=!1,this._revealed=!1,this._pages=[],this._listeners=new Set}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}get reveal(){return this._reveal}get revealed(){return this._revealed}setReveal(e){let t=!!e;return t===this._reveal?!1:(this._reveal=t,this._refresh(),!0)}setPages(e){return this._pages=e,this._refresh()}_refresh(){let e=shouldRevealViewSwitcherBar(this._reveal,this._pages);if(e===this._revealed)return!1;this._revealed=e;let t={reveal:this._reveal,revealed:this._revealed};for(let e of[...this._listeners])e(t);return!0}};function isPresent(e){return e!=null}function normalizeBadgeNumber(e){return typeof e!=`number`||!Number.isFinite(e)?0:Math.max(0,Math.trunc(e))}export{c as DEFAULT_INDICATOR_DESCRIPTION_STRINGS,s as INLINE_VIEW_SWITCHER_DISPLAY_MODES,a as VIEW_SWITCHER_BADGE_LIMIT,i as VIEW_SWITCHER_DRAG_SWITCH_DELAY,r as VIEW_SWITCHER_FALLBACK_ICON,n as VIEW_SWITCHER_NO_SELECTION,o as VIEW_SWITCHER_POLICIES,ViewSwitcherBarState,ViewSwitcherDragSwitch,ViewSwitcherState,buildInlineToggles,buildViewSwitcherButtons,createViewSwitcherPage,inlineToggleTooltip,isInlineViewSwitcherDisplayMode,isViewSwitcherButtonVisible,isViewSwitcherPolicy,pageIndexForToggle,shouldRevealViewSwitcherBar,e as stripMnemonic,toggleIndexForPage,viewSwitcherBadgeLabel,viewSwitcherButtonOrientation,viewSwitcherIconName,viewSwitcherIndicatorDescription,viewSwitcherLabel,viewSwitcherPageFromStackPage,viewSwitcherPagesFromStack};
1
+ import"./_virtual/_rolldown/runtime.js";import{stripMnemonic as e}from"./glib.js";import{ViewStackState as t}from"./view-stack.js";const n=-1,r=`image-missing`,i=500,a=999,o=[`narrow`,`wide`],s=[`labels`,`icons`,`both`];function isViewSwitcherPolicy(e){return e===`narrow`||e===`wide`}function isInlineViewSwitcherDisplayMode(e){return e===`labels`||e===`icons`||e===`both`}function createViewSwitcherPage(e){return{name:e.name,title:e.title??null,iconName:e.iconName??null,visible:e.visible??!0,useUnderline:e.useUnderline??!1,badgeNumber:normalizeBadgeNumber(e.badgeNumber),needsAttention:e.needsAttention??!1,startsSection:e.startsSection??!1,sectionTitle:e.sectionTitle??null}}function viewSwitcherPageFromStackPage(e){return createViewSwitcherPage({name:e.name,title:e.title,iconName:e.icon.length>0?e.icon:null,visible:e.visible,badgeNumber:e.badgeNumber,needsAttention:e.needsAttention,useUnderline:e.useUnderline,startsSection:e.startsSection,sectionTitle:e.sectionTitle})}function viewSwitcherPagesFromStack(e){return e.map(e=>viewSwitcherPageFromStackPage(e))}function viewSwitcherSidebarSections(e){let t=[];for(let n of e)t.length===0||n.startsSection===!0?t.push({title:n.sectionTitle??``,pages:[n]}):t[t.length-1].pages.push(n);return t}function isViewSwitcherButtonVisible(e){return e.visible&&(isPresent(e.title)||isPresent(e.iconName))}function viewSwitcherIconName(e){return isPresent(e)&&e.length>0?e:r}function viewSwitcherLabel(t){return isPresent(t.title)?t.useUnderline?e(t.title):t.title:``}function viewSwitcherBadgeLabel(e){let t=normalizeBadgeNumber(e);return t>999?`999+`:t===0?``:String(t)}const c={attentionRequested:`Attention requested.`,badgeOverflow:`Has a badge: more than 999.`,badge:e=>`Has a badge: ${e}.`};function viewSwitcherIndicatorDescription(e,t,n=c){let r=normalizeBadgeNumber(t),i=e?n.attentionRequested:``,a=``;return r>999?a=n.badgeOverflow:r>0&&(a=n.badge(r)),i&&a?`${a} ${i}`:i||a}function inlineToggleTooltip(e,t){return t===`icons`?viewSwitcherLabel(e):``}function shouldRevealViewSwitcherBar(e,t){if(!e)return!1;let n=0;for(let e of t)if(e.visible&&(n++,n>1))return!0;return!1}function viewSwitcherButtonOrientation(e){return e===`wide`?`horizontal`:`vertical`}function buildViewSwitcherButtons(e,t,n,r=c){let i=viewSwitcherButtonOrientation(n);return e.map((e,n)=>({pageIndex:n,name:e.name,label:viewSwitcherLabel(e),iconName:viewSwitcherIconName(e.iconName),visible:isViewSwitcherButtonVisible(e),selected:n===t,orientation:i,badgeLabel:viewSwitcherBadgeLabel(e.badgeNumber),needsAttention:e.needsAttention,description:viewSwitcherIndicatorDescription(e.needsAttention,e.badgeNumber,r)}))}function buildInlineToggles(e,t,n=c){let r=t!==`labels`,i=t!==`icons`,a=[];return e.forEach((e,o)=>{e.visible&&a.push({toggleIndex:a.length,pageIndex:o,name:e.name,label:viewSwitcherLabel(e),iconName:viewSwitcherIconName(e.iconName),showIcon:r,showLabel:i,tooltip:inlineToggleTooltip(e,t),badgeLabel:viewSwitcherBadgeLabel(e.badgeNumber),needsAttention:e.needsAttention,description:viewSwitcherIndicatorDescription(e.needsAttention,e.badgeNumber,n)})}),a}function toggleIndexForPage(e,t){if(!Number.isInteger(t)||t<0||t>=e.length||!e[t].visible)return-1;let n=0;for(let r=0;r<t;r++)e[r].visible&&n++;return n}function pageIndexForToggle(e,t){if(!Number.isInteger(t)||t<0)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r].visible){if(n===t)return r;n++}return-1}var ViewSwitcherDragSwitch=class{constructor(e){this._timers=new Map,this._scheduler=e.scheduler,this._onSwitch=e.onSwitch,this._delay=e.delay??500}enter(e,t){if(!Number.isInteger(e)||e<0||e===t||this._timers.has(e))return!1;let n=this._scheduler.schedule(()=>{this._timers.delete(e),this._onSwitch(e)},this._delay);return this._timers.set(e,n),!0}leave(e){let t=this._timers.get(e);t!==void 0&&(this._timers.delete(e),this._scheduler.cancel(t))}cancel(){for(let e of this._timers.values())this._scheduler.cancel(e);this._timers.clear()}get pending(){return[...this._timers.keys()].sort((e,t)=>e-t)}},ViewSwitcherState=class{constructor(e={}){this._pages=[],this._pagesView=null,this._stack=new t,this._listeners=new Set,this._drag=e.scheduler?new ViewSwitcherDragSwitch({scheduler:e.scheduler,delay:e.dragSwitchDelay,onSwitch:e=>{this.setSelected(e)}}):null,this._subscribeStack()}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}get pages(){return this._pagesView??=Object.freeze(this._pages.slice()),this._pagesView}setPages(e){let n=this.selected,r=n>=0?this.selectedName:null;this._pages=e.map(e=>createViewSwitcherPage(e)),this._pagesView=null;let i=new t;for(let e of this._pages)i.addPage({name:e.name,title:e.title,visible:e.visible});if(r!==null){let e=i.indexOfName(r);e>=0&&i.setVisibleIndex(e,!1)}this._stack=i,this._subscribeStack(),this._drag?.cancel(),(this.selected!==n||this.selectedName!==(r??``))&&this._emit(!1)}get selected(){return this._stack.visibleIndex}get selectedName(){return this._stack.visibleName}get selectedPage(){return this._pages[this.selected]}get count(){return this._pages.length}setSelected(e,t=!0){return this._stack.setVisibleIndex(e,t)}selectName(e,t=!0){return this._stack.setVisibleName(e,t)}setPageVisible(e,t){let n=this._pages.findIndex(t=>t.name===e);if(n<0)return!1;let r=this._pages[n],i=!!t;return r.visible===i?!1:(this._pages[n]={...r,visible:i},this._pagesView=null,this._stack.setPageVisible(e,i))}dragEnter(e){this._drag?.enter(e,this.selected)}dragLeave(e){this._drag?.leave(e)}cancelDrag(){this._drag?.cancel()}get pendingDragSwitches(){return this._drag?.pending??[]}get diagnostics(){return this._stack.diagnostics}_subscribeStack(){this._stack.subscribe(e=>this._emit(e.interactive))}_emit(e){let t=this.selectedPage,n={selected:this.selected,name:t?.name??``,title:t?viewSwitcherLabel(t):``,interactive:e};for(let e of[...this._listeners])e(n)}},ViewSwitcherBarState=class{constructor(){this._reveal=!1,this._revealed=!1,this._pages=[],this._listeners=new Set}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}get reveal(){return this._reveal}get revealed(){return this._revealed}setReveal(e){let t=!!e;return t===this._reveal?!1:(this._reveal=t,this._refresh(),!0)}setPages(e){return this._pages=e,this._refresh()}_refresh(){let e=shouldRevealViewSwitcherBar(this._reveal,this._pages);if(e===this._revealed)return!1;this._revealed=e;let t={reveal:this._reveal,revealed:this._revealed};for(let e of[...this._listeners])e(t);return!0}};function isPresent(e){return e!=null}function normalizeBadgeNumber(e){return typeof e!=`number`||!Number.isFinite(e)?0:Math.max(0,Math.trunc(e))}export{c as DEFAULT_INDICATOR_DESCRIPTION_STRINGS,s as INLINE_VIEW_SWITCHER_DISPLAY_MODES,a as VIEW_SWITCHER_BADGE_LIMIT,i as VIEW_SWITCHER_DRAG_SWITCH_DELAY,r as VIEW_SWITCHER_FALLBACK_ICON,n as VIEW_SWITCHER_NO_SELECTION,o as VIEW_SWITCHER_POLICIES,ViewSwitcherBarState,ViewSwitcherDragSwitch,ViewSwitcherState,buildInlineToggles,buildViewSwitcherButtons,createViewSwitcherPage,inlineToggleTooltip,isInlineViewSwitcherDisplayMode,isViewSwitcherButtonVisible,isViewSwitcherPolicy,pageIndexForToggle,shouldRevealViewSwitcherBar,e as stripMnemonic,toggleIndexForPage,viewSwitcherBadgeLabel,viewSwitcherButtonOrientation,viewSwitcherIconName,viewSwitcherIndicatorDescription,viewSwitcherLabel,viewSwitcherPageFromStackPage,viewSwitcherPagesFromStack,viewSwitcherSidebarSections};
@@ -0,0 +1,104 @@
1
+ /**
2
+ * `Gtk.SelectionMode`, as a word.
3
+ *
4
+ * `browse` is the fourth value and the reason this is not `AdwListSelectionMode`: it is a
5
+ * mode you reach by CLICKING and that then refuses `unselect_all`, so a widget modelled on
6
+ * the list base's three models has no vocabulary for it at all.
7
+ *
8
+ * `single` is the ParamSpec default in both widgets (gtklistbox.c:530-533,
9
+ * gtkflowbox.c:3708-3712).
10
+ */
11
+ export type AdwBoxSelectionMode = 'none' | 'single' | 'browse' | 'multiple';
12
+ /** An unknown mode is `single`, the ParamSpec's own default. */
13
+ export declare function normalizeBoxSelectionMode(raw: unknown): AdwBoxSelectionMode;
14
+ /** The modifiers on a click, in `gtk_list_box_update_selection_full`'s parameter names. */
15
+ export interface AdwBoxSelectStep {
16
+ /** `<Ctrl>` — the mode's toggle branch. */
17
+ readonly modify?: boolean;
18
+ /** `<Shift>` — `multiple` only, and a range from the anchor. */
19
+ readonly extend?: boolean;
20
+ }
21
+ /** What one selection step produces, plus where the next `extend` starts. */
22
+ export interface AdwBoxSelectResult {
23
+ /** The next selection, ascending. */
24
+ readonly selection: number[];
25
+ /** `box->selected_row` / `priv->selected_child` — `-1` where the C leaves it NULL. */
26
+ readonly anchor: number;
27
+ }
28
+ /** One positional selection, normalised: ascending, no duplicates, inside `[0, length)`. */
29
+ export type AdwBoxSelection = readonly number[];
30
+ /**
31
+ * A click on `position` → the selection that follows it —
32
+ * `gtk_list_box_update_selection_full` (gtklistbox.c:1799-1871), which is also
33
+ * `gtk_flow_box_update_selection` (gtkflowbox.c:1077-1131).
34
+ *
35
+ * The C, step for step:
36
+ *
37
+ * · `NONE` returns before the `selectable` test, so an unselectable row and an absent
38
+ * selection are the same answer: nothing changes, anchor included;
39
+ * · `BROWSE` unselects everything and selects the row — there is no toggle, so `<Ctrl>`
40
+ * +click on the selected row keeps it selected;
41
+ * · `SINGLE` remembers whether the row WAS selected, unselects everything, then selects
42
+ * `modify ? !was_selected : TRUE` (:1824-1828). That is the difference from
43
+ * `GtkSingleSelection`, which refuses the unselect while `autoselect` is on
44
+ * (gtksingleselection.c:160-173): here `<Ctrl>`+click on the selected row CLEARS the
45
+ * selection, and the anchor follows to `-1`;
46
+ * · `MULTIPLE` with `extend` unselects everything and then, if there WAS an anchor,
47
+ * selects the whole span between it and the row — and LEAVES THE ANCHOR WHERE IT WAS
48
+ * (:1846-1850). Extending twice in a row therefore walks the range outward from the
49
+ * first click rather than from the last;
50
+ * · `MULTIPLE` with `modify` toggles one row and does not move the anchor;
51
+ * · `MULTIPLE` with neither replaces the selection with the row. The C spells that as
52
+ * `set_selected (row, !selected)` AFTER unselecting all (:1862-1863), which lands on
53
+ * TRUE; written as a plain select it is the same answer and one less step;
54
+ * · a position outside the box is ignored, and so is an unselectable row.
55
+ */
56
+ export declare function listBoxSelect(selection: AdwBoxSelection, anchor: number, position: number, length: number, mode: AdwBoxSelectionMode, step?: AdwBoxSelectStep, selectable?: boolean): AdwBoxSelectResult;
57
+ /**
58
+ * `gtk_list_box_select_row` → `gtk_list_box_select_row_internal` (gtklistbox.c:1729-1749),
59
+ * as `gtk_flow_box_select_child` for the other widget.
60
+ *
61
+ * NOT {@link listBoxSelect} with no modifiers, and the difference is in the early return:
62
+ * a row that is ALREADY selected is left alone (:1735-1736), so the programmatic call is
63
+ * idempotent where the click toggles. The anchor still moves to `position` on success, and
64
+ * a `null` row is the C's "unselect everything" (:923-926), which is why the result is a
65
+ * selection rather than a boolean.
66
+ *
67
+ * THE OTHER HALF OF THE SAME C LINE, and the one a port that only ever REPLACES gets wrong:
68
+ * `gtk_list_box_select_row_internal` clears the box only where the mode is not `multiple`
69
+ * (:1741-1742) and then adds the row — so in `multiple` this ADDS to the selection instead of
70
+ * replacing it. `gtk_flow_box_select_child_internal` is the same line with `child` spelled
71
+ * that way (gtkflowbox.c:1012-1030), which is what makes it this module's function rather
72
+ * than the list box's. Selecting two rows one after the other is how a `multiple` box is ever
73
+ * built, so a `select_row` that replaced would leave no second row selectable at all.
74
+ */
75
+ export declare function listBoxSelectRow(selection: AdwBoxSelection, anchor: number, position: number | null, length: number, mode: AdwBoxSelectionMode, selectable?: boolean): AdwBoxSelectResult;
76
+ /**
77
+ * `gtk_list_box_unselect_row` → `gtk_list_box_unselect_row_internal` (gtklistbox.c:1711-1726).
78
+ *
79
+ * The one thing worth reading twice is the NON-multiple branch: it does not clear just this
80
+ * row, it clears the WHOLE box (:1719-1720). That is unreachable through a click — a click
81
+ * selects, it never unselects alone — so it only shows up through this function, and a port
82
+ * that narrowed to the one row would leave a single-selection box with several rows lit.
83
+ * The C leaves the anchor alone here, and so does this.
84
+ */
85
+ export declare function listBoxUnselectRow(selection: AdwBoxSelection, anchor: number, position: number, length: number, mode: AdwBoxSelectionMode): AdwBoxSelectResult;
86
+ /**
87
+ * `gtk_list_box_select_all` (gtklistbox.c:958-971) — refused unless `multiple`.
88
+ *
89
+ * The `length > 0` guard is kept because the C emits `selected-rows-changed` ONLY when the
90
+ * box has children (:966-970), and an empty box that emitted the signal would tell an
91
+ * application the selection changed when nothing did.
92
+ */
93
+ export declare function listBoxSelectAll(length: number, mode: AdwBoxSelectionMode): number[] | null;
94
+ /**
95
+ * `gtk_list_box_unselect_all` (gtklistbox.c:979-996) — refused in `browse`, where something
96
+ * is always selected, and a no-op in `none`, where nothing ever is.
97
+ *
98
+ * `null` is "no change", `[]` is "cleared". The caller distinguishes them because the C
99
+ * does: `unselect_all` emits `row-selected` and `selected-rows-changed` only when `dirty`
100
+ * is TRUE (:991-995), and `dirty` is the OR of every row actually changing state
101
+ * (:1687-1708) — so unselecting an already-empty box is silent upstream and has to be
102
+ * silent here or every application listening for the signal hears about nothing.
103
+ */
104
+ export declare function listBoxUnselectAll(selection: AdwBoxSelection, mode: AdwBoxSelectionMode): number[] | null;
@@ -0,0 +1,2 @@
1
+ declare const _default: () => Promise<void>;
2
+ export default _default;
@@ -0,0 +1,31 @@
1
+ import type { BreakpointSize } from './breakpoint.js';
2
+ /** One authored setter, its target already resolved to the renderer's handle. */
3
+ export interface BreakpointDriverSetter<O> {
4
+ readonly object: O;
5
+ readonly property: string;
6
+ readonly value: unknown;
7
+ }
8
+ /** One authored breakpoint. */
9
+ export interface BreakpointDriverDefinition<O> {
10
+ readonly condition: string;
11
+ readonly setters: readonly BreakpointDriverSetter<O>[];
12
+ }
13
+ /** The renderer's property door. */
14
+ export interface BreakpointDriverIo<O> {
15
+ read(object: O, property: string): unknown;
16
+ write(object: O, property: string, value: unknown): void;
17
+ }
18
+ /** What {@link createBreakpointDriver} hands back. */
19
+ export interface BreakpointDriver {
20
+ /** Feed one measured size; performs the writes the change needs, if any. */
21
+ evaluate(size: BreakpointSize): void;
22
+ /** The index of the applied breakpoint, or null. */
23
+ readonly current: number | null;
24
+ }
25
+ /**
26
+ * Register `definitions` and return the driver a renderer feeds sizes to.
27
+ *
28
+ * Each setter's original is read HERE, once, as `adw_breakpoint_add_setter` does — so create the
29
+ * driver after the tree is built and before any size has been evaluated.
30
+ */
31
+ export declare function createBreakpointDriver<O>(definitions: readonly BreakpointDriverDefinition<O>[], io: BreakpointDriverIo<O>): BreakpointDriver;
@@ -0,0 +1,2 @@
1
+ declare const _default: () => Promise<void>;
2
+ export default _default;
@@ -0,0 +1,142 @@
1
+ /** `YEAR_MIN` / `YEAR_MAX` — the range a `GDateTime` covers (gtkcalendar.c:134-135). */
2
+ export declare const CALENDAR_YEAR_MIN = 1;
3
+ export declare const CALENDAR_YEAR_MAX = 9999;
4
+ /** One day, addressed the way `GDateTime` addresses it: month 1-12, day 1-31. */
5
+ export interface AdwCalendarDate {
6
+ readonly year: number;
7
+ /** 1-12. NOT the GIR `GtkCalendar:month`, which is 0-11 and deprecated (4.20). */
8
+ readonly month: number;
9
+ readonly day: number;
10
+ }
11
+ /** Which month a grid cell belongs to — `MONTH_PREV` / `MONTH_CURRENT` / `MONTH_NEXT`. */
12
+ export type AdwCalendarCellMonth = 'previous' | 'current' | 'next';
13
+ /** One of the 42 cells `calendar_compute_days` fills. */
14
+ export interface AdwCalendarCell {
15
+ /** The date the cell shows, already resolved across the month boundary. */
16
+ readonly date: AdwCalendarDate;
17
+ /** Which month it belongs to, which is what `.other-month` selects on. */
18
+ readonly month: AdwCalendarCellMonth;
19
+ }
20
+ /** Which arrow the header's four buttons are, and whether that one is live. */
21
+ export interface AdwCalendarNavigation {
22
+ readonly previousMonth: boolean;
23
+ readonly nextMonth: boolean;
24
+ readonly previousYear: boolean;
25
+ readonly nextYear: boolean;
26
+ }
27
+ /** `leap (year)` (gtkcalendar.c:143-146), verbatim: `/4` unless `/100`, but `/400` is in. */
28
+ export declare function calendarIsLeapYear(year: number): boolean;
29
+ /**
30
+ * `month_length[leap (year)][month]` (gtkcalendar.c:137-141).
31
+ *
32
+ * MONTH IS 1-12. The C indexes a 13-slot row with the `GDateTime` month, whose slot 0 is the
33
+ * zero pad; taking month 0 here would answer the pad (0) and quietly draw a month of
34
+ * nothing, so the input is clamped into 1-12 the way the C's own `month` argument is by the
35
+ * `GDateTime` that calls it.
36
+ */
37
+ export declare function calendarDaysInMonth(year: number, month: number): number;
38
+ /**
39
+ * The locale's first day of the week — the `_NL_TIME_FIRST_WEEKDAY` branch of `init`
40
+ * (gtkcalendar.c:700-711), which is what `first_day` and every `week-number` label are
41
+ * measured against.
42
+ *
43
+ * `firstWeekday` is `_NL_TIME_FIRST_WEEKDAY` (0 = Sunday), `weekFirstDay` is
44
+ * `_NL_TIME_WEEK_1STDAY` mapped to 0 = Sunday or 1 = Monday (gtkcalendar.c:684-697). The
45
+ * formula is the C's own: `(week_1stday + first_weekday - 1) % 7`. The C's `g_warning` for
46
+ * an unrecognised `_NL_TIME_WEEK_1STDAY` leaves `week_1stday` at 0, so an unknown value is
47
+ * 0 here too — and a negative result (the C's `-1` sentinel) is answered 0, which is the
48
+ * same fallback the C takes one clause later (gtkcalendar.c:716-718).
49
+ *
50
+ * `0` is Sunday and `6` is Saturday, which is `GDateTime`'s own numbering and therefore the
51
+ * one {@link calendarDays} can subtract with directly.
52
+ */
53
+ export declare function calendarWeekStart(firstWeekday: number, weekFirstDay: number): number;
54
+ /**
55
+ * `calendar_compute_days` (gtkcalendar.c:923-979) — the 42 cells a month paints.
56
+ *
57
+ * `first_day` is `day_of_week (year, month, 1)` shifted by the locale's week start, then
58
+ * `if (first_day == 0) first_day = 7` — which looks like a mistake and is not: the C uses
59
+ * `first_day` as a COLUMN count in the first loop and a `row = first_day / 7` SEED in the
60
+ * second, and the two want different values at the boundary. Column 0 is a previous-month
61
+ * day, so a month whose first falls on the locale's first day has SEVEN of them and starts
62
+ * on the second row (:937, :946).
63
+ *
64
+ * The tail is NEXT-month days counting up from 1, one per remaining cell, and the C does
65
+ * not stop at the end of the next month — a 42-cell grid showing a February that starts on
66
+ * Saturday under a Sunday-first locale reaches into the following month twice and shows its
67
+ * days 1..14 in the last row. That is what a real `Gtk.Calendar` shows, so it is what this
68
+ * returns.
69
+ */
70
+ export declare function calendarDays(year: number, month: number, weekStart: number): AdwCalendarCell[];
71
+ /**
72
+ * `week_of_year` (gtkcalendar.c:166-178) — the ISO-8601 week, which is what
73
+ * `g_date_time_get_week_of_year` returns.
74
+ *
75
+ * ISO 8601: weeks are Monday-based, and week 1 is the one holding the year's FIRST Thursday
76
+ * (equivalently, the 4th of January). So 1 January 2021 is a Friday and belongs to week 53
77
+ * of 2020 — the case a naive "week = (dayOfYear + weekdayOffset) / 7" gets wrong, and the
78
+ * one `week-number` label that would visibly disagree with every other tool.
79
+ *
80
+ * The year is a `YEAR_MIN`-clamped date; a January date can belong to week 52 or 53 of the
81
+ * year BEFORE it, which is the C's own arithmetic (gtkcalendar.c:1148-1158) rather than
82
+ * something this adds.
83
+ */
84
+ export declare function calendarWeekNumber(date: AdwCalendarDate): number;
85
+ /** Which of the four header arrows are live — `calendar_update_navigation_buttons` (:1055-1084). */
86
+ export declare function calendarNavigationButtons(date: AdwCalendarDate): AdwCalendarNavigation;
87
+ /** `calendar_set_month_prev/next` and `calendar_set_year_prev/next` (:868-919). */
88
+ export type AdwCalendarStep = 'previous-month' | 'next-month' | 'previous-year' | 'next-year';
89
+ /**
90
+ * The date a navigation arrow lands on — `g_date_time_add_months` / `_years`, CLAMPED.
91
+ *
92
+ * The clamp is GLib's and it is the whole reason the arithmetic is here: 31 January plus a
93
+ * month is 28 (or 29) February, and 29 February plus a YEAR is 28 February the next year.
94
+ * Both are what `g_date_time_add_months` does — it adds whole months and then clamps the
95
+ * day to the target month's length — and both are visible the moment a user pages a month
96
+ * from a 31st.
97
+ */
98
+ export declare function calendarStep(date: AdwCalendarDate, step: AdwCalendarStep): AdwCalendarDate;
99
+ /** What `calendar_select_day_internal` (:1089-1192) answers for a proposed date. */
100
+ export interface AdwCalendarSelectResult {
101
+ /** The date the calendar now holds. */
102
+ readonly date: AdwCalendarDate;
103
+ readonly dayChanged: boolean;
104
+ readonly monthChanged: boolean;
105
+ readonly yearChanged: boolean;
106
+ /**
107
+ * Whether `::day-selected` fires. FALSE for every property write and for a navigation
108
+ * arrow, which is the C's `emit_day_signal` argument (gtkcalendar.c:868-919 pass FALSE);
109
+ * only `select_day`/`set_date` and a click pass TRUE (:1585, :1720).
110
+ */
111
+ readonly emitDaySignal: boolean;
112
+ }
113
+ /**
114
+ * `calendar_select_day_internal` (gtkcalendar.c:1089-1192) — including its early return.
115
+ *
116
+ * The early return is the part worth having: a date equal in all three components changes
117
+ * NOTHING and notifies nothing, so writing the current date back is silent (:1103-1104).
118
+ * A port that assigned unconditionally would fire `::day-selected` on every attribute sync.
119
+ */
120
+ export declare function calendarSelectDay(current: AdwCalendarDate, target: AdwCalendarDate, emitDaySignal?: boolean): AdwCalendarSelectResult;
121
+ /** `gtk_calendar_mark_day`'s accepted range — `day >= 1 && day <= 31` (:1657, :1697). */
122
+ export declare const CALENDAR_MARK_MIN = 1;
123
+ export declare const CALENDAR_MARK_MAX = 31;
124
+ /**
125
+ * `gtk_calendar_mark_day` / `gtk_calendar_unmark_day` (:1650-1704) — the 31-boolean table,
126
+ * as a NEW array.
127
+ *
128
+ * A copy because the C's `marked_date` is reached from four places and the guard is
129
+ * idempotence, not mutation: a day already marked is not counted twice (:1657) and a day not
130
+ * marked is not cleared (:1697). Returning the same array when nothing changed is what lets
131
+ * the caller skip the DOM write, so the reference identity of the result IS the signal.
132
+ *
133
+ * The table is 31 slots and NOT a per-month set, which is why a mark on the 31st is still
134
+ * there after paging to a 30-day month: `calendar_update_day_labels` only consults
135
+ * `marked_date[day - 1]` for CURRENT-month cells (gtkcalendar.c:1041-1042), so the mark
136
+ * simply does not show and comes back when the month does.
137
+ */
138
+ export declare function calendarMarkDay(marked: readonly boolean[], day: number, mark: boolean): boolean[];
139
+ /** `gtk_calendar_get_day_is_marked` (:1668-1682) — an out-of-range day is never marked. */
140
+ export declare function calendarDayIsMarked(marked: readonly boolean[], day: number): boolean;
141
+ /** `gtk_calendar_clear_marks` (:1589-1613) — every slot off, in one assignment. */
142
+ export declare function calendarClearMarks(): boolean[];
@@ -0,0 +1,2 @@
1
+ declare const _default: () => Promise<void>;
2
+ export default _default;