@gjsify/adwaita-core 0.44.0 → 0.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/breakpoint-bin.js +1 -0
- package/lib/esm/button-content.js +1 -1
- package/lib/esm/conformance/breakpoint-bin.js +1 -0
- package/lib/esm/conformance/header-bar.js +1 -0
- package/lib/esm/conformance/index.js +1 -1
- package/lib/esm/header-bar.js +1 -0
- package/lib/esm/index.js +1 -1
- package/lib/esm/tokens.generated.js +1 -0
- package/lib/esm/tokens.js +1 -0
- package/lib/esm/wrap-box.js +1 -1
- package/lib/types/breakpoint-bin.d.ts +113 -0
- package/lib/types/breakpoint-bin.spec.d.ts +2 -0
- package/lib/types/button-content.d.ts +14 -0
- package/lib/types/conformance/breakpoint-bin.d.ts +55 -0
- package/lib/types/conformance/header-bar.d.ts +67 -0
- package/lib/types/conformance/index.d.ts +4 -0
- package/lib/types/conformance/popover.d.ts +3 -3
- package/lib/types/conformance/view-stack.d.ts +1 -1
- package/lib/types/header-bar.d.ts +157 -0
- package/lib/types/header-bar.spec.d.ts +2 -0
- package/lib/types/index.d.ts +7 -3
- package/lib/types/popover.d.ts +1 -1
- package/lib/types/rows.d.ts +2 -2
- package/lib/types/tokens.d.ts +1 -0
- package/lib/types/tokens.generated.d.ts +34 -0
- package/lib/types/wrap-box.d.ts +56 -0
- package/package.json +7 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";import{evaluateBreakpointCondition as e,parseBreakpointCondition as t}from"./breakpoint.js";var BreakpointBinState=class{constructor(){this._breakpoints=[],this._current=null,this._hasChild=!0}add(e){let n=this._breakpoints.length;return this._breakpoints.push({index:n,condition:t(e.condition),setters:e.setters}),n}setHasChild(e){this._hasChild=e}get current(){return this._current?.index??null}get length(){return this._breakpoints.length}evaluate(t){if(!this._hasChild)return null;let n=null;for(let r=this._breakpoints.length-1;r>=0;r--){let i=this._breakpoints[r];if(i.condition&&e(i.condition,t)){n=i;break}}if(n===this._current)return null;let r=this._current;return this._current=n,{from:r?.index??null,to:n?.index??null,writes:transitionWrites(r,n)}}inherit(e){if(e===null){this._current=null;return}let t=this._breakpoints[e];if(!t)throw RangeError(`BreakpointBinState.inherit: no breakpoint at index ${e}; ${this._breakpoints.length} added.`);this._current=t}};function transitionWrites(e,t){let n=[];if(e)for(let r of e.setters)t?.setters.some(e=>e.object===r.object&&e.property===r.property)||n.push({object:r.object,property:r.property,value:r.originalValue});if(t)for(let e of t.setters)n.push({object:e.object,property:e.property,value:e.value});return n}export{BreakpointBinState};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./_virtual/_rolldown/runtime.js";import{stripMnemonic as e}from"./glib.js";const t=`image-text-button`,n=`image-missing`,
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";import{stripMnemonic as e}from"./glib.js";const t=`image-text-button`,n=6,r=`image-missing`,i={iconName:``,label:``,useUnderline:!1,canShrink:!1};function buttonContentIconIsEmpty(e){return e.length===0}function buttonContentIconName(e){return buttonContentIconIsEmpty(e)?r:e}function buttonContentLabelVisible(e){return e.length>0}function buttonContentIconExpands(e){return!buttonContentLabelVisible(e)}function buttonContentLabelText(t,n){return n?e(t):t}function buttonContentEllipsize(e){return e?`end`:`none`}function buttonContentStyleTargetIndex(e){let t=e.indexOf(`button`);return t<0?null:e[t+1]===`split-button`?t+1:t}function buttonContentRenderState(e={}){let n={...i,...e};return{iconName:buttonContentIconName(n.iconName),iconIsFallback:buttonContentIconIsEmpty(n.iconName),iconExpands:buttonContentIconExpands(n.label),labelVisible:buttonContentLabelVisible(n.label),labelText:buttonContentLabelText(n.label,n.useUnderline),ellipsize:buttonContentEllipsize(n.canShrink),parentClass:t}}export{i as ADW_BUTTON_CONTENT_DEFAULTS,n as BUTTON_CONTENT_BOX_SPACING,r as BUTTON_CONTENT_FALLBACK_ICON,t as BUTTON_CONTENT_STYLE_CLASS,buttonContentEllipsize,buttonContentIconExpands,buttonContentIconIsEmpty,buttonContentIconName,buttonContentLabelText,buttonContentLabelVisible,buttonContentRenderState,buttonContentStyleTargetIndex};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=[{conditions:[],size:{width:800,height:600},pick:null,rule:`no breakpoints, no pick`},{conditions:[`max-width: 720sp`],size:{width:500,height:600},pick:0,rule:`one breakpoint, condition holds`},{conditions:[`max-width: 720sp`],size:{width:900,height:600},pick:null,rule:`one breakpoint, condition does not hold`},{conditions:[`max-width: 720sp`,`max-width: 400sp`],size:{width:300,height:600},pick:1,rule:`both match: the one added LAST wins, which here is also the narrower`},{conditions:[`max-width: 400sp`,`max-width: 720sp`],size:{width:300,height:600},pick:1,rule:`both match, added the other way round: the LAST still wins, and it is the WIDER one`},{conditions:[`max-width: 400sp`,`max-width: 720sp`],size:{width:500,height:600},pick:1,rule:`only the second matches`},{conditions:[`max-width: 720sp`,`max-height: 400sp`],size:{width:500,height:300},pick:1,rule:`the two axes are independent conditions, and the later one still wins`},{conditions:[`max-width: 720sp and max-height: 400sp`],size:{width:500,height:600},pick:null,rule:"an `and` needs both halves"},{conditions:[`max-width: 400sp`,`not-a-condition`],size:{width:300,height:600},pick:0,rule:`an unparseable condition never matches (adw_breakpoint_check_condition returns FALSE for a null one, adw-breakpoint.c:1831), so the earlier valid one is picked`}],t=[{breakpoints:[[`max-width: 720sp`,[[`view`,`collapsed`,`true`]]]],sizes:[{width:500,height:600}],writes:[[`view.collapsed=true`]],rule:`entering a breakpoint writes its setters`},{breakpoints:[[`max-width: 720sp`,[[`view`,`collapsed`,`true`]]]],sizes:[{width:500,height:600},{width:900,height:600}],writes:[[`view.collapsed=true`],[`view.collapsed=orig:view.collapsed`]],rule:`leaving restores the ORIGINAL, which was captured when the setter was registered`},{breakpoints:[[`max-width: 720sp`,[[`view`,`collapsed`,`true`]]]],sizes:[{width:500,height:600},{width:400,height:600}],writes:[[`view.collapsed=true`],null],rule:`staying inside the same breakpoint produces no transition at all`},{breakpoints:[[`max-width: 720sp`,[[`view`,`collapsed`,`true`]]],[`max-width: 400sp`,[[`view`,`collapsed`,`false`]]]],sizes:[{width:500,height:600},{width:300,height:600}],writes:[[`view.collapsed=true`],[`view.collapsed=false`]],rule:`a property BOTH set is written once, not restored and re-set`},{breakpoints:[[`max-width: 720sp`,[[`view`,`collapsed`,`true`],[`view`,`title`,`narrow`]]],[`max-width: 400sp`,[[`view`,`collapsed`,`false`]]]],sizes:[{width:500,height:600},{width:300,height:600}],writes:[[`view.collapsed=true`,`view.title=narrow`],[`view.title=orig:view.title`,`view.collapsed=false`]],rule:`only the property the incoming breakpoint does NOT set is restored, and restores come first`},{breakpoints:[[`max-width: 720sp`,[[`sidebar`,`collapsed`,`true`],[`content`,`collapsed`,`true`]]],[`max-width: 400sp`,[[`sidebar`,`collapsed`,`false`]]]],sizes:[{width:500,height:600},{width:300,height:600}],writes:[[`sidebar.collapsed=true`,`content.collapsed=true`],[`content.collapsed=orig:content.collapsed`,`sidebar.collapsed=false`]],rule:"the skip keys on OBJECT and property: the incoming breakpoint sets `collapsed` on the sidebar only, so the content is still restored"},{breakpoints:[[`max-width: 720sp`,[[`sidebar`,`collapsed`,`true`],[`content`,`collapsed`,`true`]]]],sizes:[{width:500,height:600},{width:900,height:600}],writes:[[`sidebar.collapsed=true`,`content.collapsed=true`],[`sidebar.collapsed=orig:sidebar.collapsed`,`content.collapsed=orig:content.collapsed`]],rule:`leaving to NO breakpoint restores every setter, one per object`},{breakpoints:[[`max-width: 400sp`,[[`view`,`collapsed`,`true`]]],[`max-width: 720sp`,[[`view`,`title`,`wide`]]]],sizes:[{width:300,height:600}],writes:[[`view.title=wide`]],rule:`the later breakpoint wins outright, so the earlier one never applies and never restores`}];export{e as BREAKPOINT_PICK_VECTORS,t as BREAKPOINT_TRANSITION_VECTORS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=[{calls:[],start:[],end:[],rule:`an empty bar has both slots empty`},{calls:[`start:a`],start:[`a`],end:[],rule:`one start child`},{calls:[`start:a`,`start:b`],start:[`a`,`b`],end:[],rule:`pack_start APPENDS — first packed is furthest from the centre`},{calls:[`end:a`,`end:b`],start:[],end:[`b`,`a`],rule:`pack_end PREPENDS — first packed sits NEAREST the end, so last in draw order`},{calls:[`end:menu`,`end:search`],start:[],end:[`search`,`menu`],rule:"the mirrored case a port shipped: libadwaita draws `search | menu`, not `menu | search`"},{calls:[`start:back`,`end:menu`,`start:new`,`end:search`],start:[`back`,`new`],end:[`search`,`menu`],rule:`the two slots are independent — interleaving the calls changes neither`},{calls:[`end:a`,`end:b`,`end:c`],start:[],end:[`c`,`b`,`a`],rule:`three deep: each later pack_end goes in FRONT of the previous`}],t=[{calls:[],titleWidget:null,derivedPresent:!0,changed:[],rule:`a bar with no title widget shows the derived title`},{calls:[`entry`],titleWidget:`entry`,derivedPresent:!1,changed:[!0],rule:`setting a title widget drops the derived title — the two never stack`},{calls:[`entry`,null],titleWidget:null,derivedPresent:!0,changed:[!0,!0],rule:`clearing REBUILDS the derived title (construct_title_label at :1211) — no port does this`},{calls:[`entry`,`entry`],titleWidget:`entry`,derivedPresent:!1,changed:[!0,!1],rule:`the same widget twice is an early return, no notify (:1198)`},{calls:[null],titleWidget:null,derivedPresent:!0,changed:[!1],rule:`null over null is also the early return — NOT "the derived title was rebuilt"`},{calls:[`a`,`b`],titleWidget:`b`,derivedPresent:!1,changed:[!0,!0],rule:`replacing one title widget with another is a change twice, and the derived title stays gone`}],n=[{sources:{},title:``,rule:`nothing to inherit from renders an empty label`},{sources:{navigationPageTitle:`Inbox`,dialogTitle:`D`,windowTitle:`W`,applicationName:`A`},title:`Inbox`,rule:`the navigation page wins over everything below it`},{sources:{dialogTitle:`Preferences`,windowTitle:`W`,applicationName:`A`},title:`Preferences`,rule:`the dialog is next when there is no navigation page`},{sources:{windowTitle:`Files`,applicationName:`A`,programName:`p`},title:`Files`,rule:`the root window is next — and only when the root IS a window`},{sources:{applicationName:`Files`,programName:`org.gnome.Nautilus`},title:`Files`,rule:`g_get_application_name before g_get_prgname`},{sources:{programName:`nautilus`},title:`nautilus`,rule:`g_get_prgname is the last resort`},{sources:{windowTitle:``,applicationName:`Files`},title:``,rule:`an EMPTY window title is a pointer and ends the walk — it does not fall through`},{sources:{navigationPageTitle:``,dialogTitle:`D`,windowTitle:`W`,applicationName:`A`},title:``,rule:`AdwNavigationPage:title DEFAULTS to "" and refuses NULL — an untitled page blanks the bar`},{sources:{dialogTitle:``,windowTitle:`W`,applicationName:`A`},title:``,rule:`AdwDialog:title DEFAULTS to "" and normalises NULL to it — an untitled dialog blanks it too`},{sources:{navigationPageTitle:void 0,dialogTitle:void 0,windowTitle:void 0},title:``,rule:"explicit `undefined` is the skipped branch, like an absent key — the shape `{ windowTitle: root?.title }` builds"},{sources:{bottomSheetShowsDragHandle:!0,navigationPageTitle:`Inbox`,windowTitle:`W`},title:``,rule:`a bottom sheet showing its drag handle blanks the title outright, before the walk`},{sources:{bottomSheetShowsDragHandle:!1,navigationPageTitle:`Inbox`},title:`Inbox`,rule:`a bottom sheet WITHOUT a drag handle does not blank anything`},{sources:{navigationPageTitle:null,dialogTitle:`D`},title:`D`,rule:`an explicit null is "no such ancestor" and falls through, unlike an empty string`}];export{e as HEADER_BAR_PACK_VECTORS,n as HEADER_BAR_TITLE_SOURCE_VECTORS,t as HEADER_BAR_TITLE_WIDGET_VECTORS};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ABOUT_DIALOG_CREDITS_LEGAL_VECTORS as e,ABOUT_DIALOG_DETAILS_VECTORS as t,ABOUT_DIALOG_HEADER_VECTORS as n,ABOUT_DIALOG_LABEL_VECTORS as r,ABOUT_DIALOG_SUPPORT_VECTORS as i,CREDITS_SECTIONS_VECTORS as a,CREDIT_PERSON_VECTORS as o,LEGAL_SECTION_VECTORS as s,LICENSE_INFO_VECTORS as c,LICENSE_SETTER_VECTORS as l,LICENSE_SPDX_VECTORS as u,LICENSE_TEXT_VECTORS as d,TRANSLATOR_CREDITS_VECTORS as f}from"./about-dialog.js";import{ACCENT_COLOR_VECTORS as p}from"./accent.js";import{ACTION_ROW_ACTIVATION_VECTORS as m,BUTTON_ROW_ACTIVATABLE_VECTORS as h,BUTTON_ROW_ICON_VECTORS as g,LABEL_VISIBILITY_VECTORS as _,SWITCH_ROW_NOTIFY_VECTORS as v,WINDOW_TITLE_VECTORS as y}from"./action-row.js";import{AVATAR_COLOR_VECTORS as b,AVATAR_FONT_SIZE_VECTORS as x,AVATAR_INITIALS_VECTORS as S,AVATAR_MODE_VECTORS as C}from"./avatar.js";import{BANNER_BUTTON_STYLE_PARSE_VECTORS as w,BANNER_BUTTON_STYLE_VECTORS as T,BANNER_BUTTON_TEXT_VECTORS as E,BANNER_BUTTON_VISIBLE_VECTORS as D,BANNER_DEFAULT_VECTORS as O}from"./banner.js";import{BUTTON_CONTENT_DEFAULT_VECTORS as k,BUTTON_CONTENT_ELLIPSIZE_VECTORS as A,BUTTON_CONTENT_ICON_VECTORS as j,BUTTON_CONTENT_LABEL_VECTORS as M,BUTTON_CONTENT_STYLE_TARGET_VECTORS as N,BUTTON_CONTENT_TEXT_VECTORS as P}from"./button-content.js";import{BUTTON_STYLE_CLASS_VECTORS as F}from"./button.js";import{CAROUSEL_CLAMP_VECTORS as I,CAROUSEL_NAVIGATE_VECTORS as L,CAROUSEL_PAGE_ALLOCATION_VECTORS as R,CAROUSEL_PAGE_AT_POSITION_VECTORS as z,CAROUSEL_PAGE_LIST_VECTORS as B,CAROUSEL_PROPERTY_DEFAULT_VECTORS as V,CAROUSEL_RANGE_VECTORS as H,CAROUSEL_REORDER_SHIFT_VECTORS as U,CAROUSEL_REVEAL_VECTORS as W,CAROUSEL_SIZES_FROM_SNAP_POINTS_VECTORS as G,CAROUSEL_SNAP_POINT_VECTORS as K,CAROUSEL_WHEEL_LOCKOUT_VECTORS as q,CAROUSEL_WHEEL_VECTORS as J}from"./carousel.js";import{RADIO_GROUP_VECTORS as Y}from"./checks.js";import{CLAMP_ALLOCATE_VECTORS as X,CLAMP_CHILD_SIZE_VECTORS as Z,CLAMP_PROPERTY_VECTORS as Q,CLAMP_SIZE_FROM_CHILD_VECTORS as $,CLAMP_THRESHOLD_VECTORS as ee,SPINNER_GEOMETRY_VECTORS as te,SPINNER_SIZE_VECTORS as ne,TOOLBAR_VIEW_ALLOCATE_VECTORS as re,TOOLBAR_VIEW_CLASS_VECTORS as ie,TOOLBAR_VIEW_CONTENT_FOR_SIZE_VECTORS as ae,TOOLBAR_VIEW_MEASURE_VECTORS as oe}from"./chrome.js";import{DATA_GRID_CELL_TEXT_VECTORS as se,DATA_GRID_COLUMN_CLASS_VECTORS as ce,DATA_GRID_COLUMN_NORMALIZE_VECTORS as le,DATA_GRID_INTERACTIVE_VECTORS as ue,DATA_GRID_TRACK_VECTORS as de,DATA_GRID_VARIANT_VECTORS as fe}from"./data-grid.js";import{BOTTOM_SHEET_CLOSE_VECTORS as pe,BOTTOM_SHEET_PRESENTATION_VECTORS as me,runBottomSheetSteps as he}from"./dialog.js";import{ENTRY_MAX_LENGTH_VECTORS as ge,ENTRY_ROW_ACTIVATION_VECTORS as _e,ENTRY_ROW_GUARD_VECTORS as ve,ENTRY_ROW_STATE_VECTORS as ye,ENTRY_TEXT_LENGTH_VECTORS as be,PASSWORD_ENTRY_ROW_VECTORS as xe,PASSWORD_REVEAL_GUARD_VECTORS as Se}from"./entry-row.js";import{COMBO_CHOOSER_VECTORS as Ce,COMBO_SELECTION_VECTORS as we}from"./rows.js";import{VIEW_STACK_ICON_NAME_VECTORS as Te,VIEW_STACK_PAGE_VECTORS as Ee,VIEW_STACK_VECTORS as De}from"./view-stack.js";import{NAVIGATION_VIEW_VECTORS as Oe,collectNavigationState as ke,navigationEventLog as Ae,runNavigationSteps as je}from"./navigation-view.js";import{SIDEBAR_ACTIVATION_VECTORS as Me,SIDEBAR_CLAMP_VECTORS as Ne,SIDEBAR_FILTER_VECTORS as Pe,SIDEBAR_ITEMS_CHANGED_VECTORS as Fe,SIDEBAR_ITEM_FLAG_VECTORS as Ie,SIDEBAR_MODEL_VECTORS as Le,SIDEBAR_MODE_VECTORS as Re}from"./sidebar.js";import{ADW_LENGTH_UNIT_VECTORS as ze,GLIB_CLAMP_VECTORS as Be,NATURAL_SIDEBAR_WIDTH_VECTORS as Ve,NAVIGATION_ACTION_VECTORS as He,NAVIGATION_SPLIT_VIEW_LAYOUT_VECTORS as Ue,NAVIGATION_STACK_VECTORS as We,OVERLAY_COLLAPSE_VECTORS as Ge,OVERLAY_SPLIT_VIEW_LAYOUT_VECTORS as Ke,OVERLAY_SWIPE_AREA_VECTORS as qe,OVERLAY_SWIPE_CANCEL_VECTORS as Je,OVERLAY_SWIPE_RELEASE_VECTORS as Ye,OVERLAY_SWIPE_SNAP_POINT_VECTORS as Xe,OVERLAY_SWIPE_START_VECTORS as Ze,SIDEBAR_BOUNDS_VECTORS as Qe,SIDEBAR_WIDTH_VECTORS as $e,SPLIT_VIEW_MEASURE_VECTORS as et,TAGS_CONFLICT_VECTORS as tt}from"./split-view.js";import{MENU_BUTTON_DIRECTION_VECTORS as nt,SPLIT_BUTTON_CONTENT_VECTORS as rt,SPLIT_BUTTON_DIRECTION_VECTORS as it,SPLIT_BUTTON_DROPDOWN_VECTORS as at,SPLIT_BUTTON_MENU_ACTIVATION_VECTORS as ot,SPLIT_BUTTON_MENU_PARSE_VECTORS as st,SPLIT_BUTTON_ROOT_STATE_VECTORS as ct,SPLIT_BUTTON_STYLE_CLASS_VECTORS as lt,SPLIT_BUTTON_TOOLTIP_VECTORS as ut}from"./split-button.js";import{INLINE_TOGGLE_VECTORS as dt,INLINE_TOOLTIP_VECTORS as ft,VIEW_SWITCHER_BADGE_VECTORS as pt,VIEW_SWITCHER_BAR_REVEAL_VECTORS as mt,VIEW_SWITCHER_BAR_VECTORS as ht,VIEW_SWITCHER_BUTTON_VECTORS as gt,VIEW_SWITCHER_BUTTON_VISIBILITY_VECTORS as _t,VIEW_SWITCHER_DRAG_VECTORS as vt,VIEW_SWITCHER_ICON_VECTORS as yt,VIEW_SWITCHER_MNEMONIC_VECTORS as bt,VIEW_SWITCHER_REBUILD_VECTORS as xt,VIEW_SWITCHER_SELECTION_VECTORS as St,createViewSwitcherClock as Ct}from"./view-switcher.js";import{TABS_REVEALED_VECTORS as wt,TAB_CLOSE_VISIBLE_VECTORS as Tt,TAB_DESCENDANT_VECTORS as Et,TAB_ICON_STATE_VECTORS as Dt,TAB_PAGE_DESCRIPTOR_VECTORS as Ot,TAB_SUCCESSOR_VECTORS as kt,TAB_TOOLTIP_VECTORS as At,TAB_VIEW_VECTORS as jt,applyTabViewOp as Mt,seedTabViewPages as Nt,tabViewClosing as Pt,tabViewOrder as Ft}from"./tab-view.js";import{CASE_FOLD_VECTORS as It,MAKE_COMPARABLE_VECTORS as Lt,PREFERENCES_GROUP_HEADER_VECTORS as Rt,PREFERENCES_SEARCH_PAGES as zt,PREFERENCES_SEARCH_VECTORS as Bt,ROW_MATCH_VECTORS as Vt,SEARCH_CORPUS_VECTORS as Ht,SEARCH_ROW_SUBTITLE_VECTORS as Ut,STRIP_MARKUP_VECTORS as Wt,STRIP_MNEMONIC_VECTORS as Gt}from"./preferences.js";import{POPOVER_KEY_VECTORS as Kt,POPOVER_SURFACE_VECTORS as qt}from"./popover.js";import{SHORTCUT_LABEL_VECTORS as Jt,formatShortcutLabelNodes as Yt}from"./shortcut-label.js";import{SPINNER_ARC_ENVELOPE as Xt,SPINNER_ARC_PHASE_VECTORS as Zt,SPINNER_ARC_TOLERANCE as Qt,SPINNER_CONSTANT_VECTORS as $t}from"./spinner.js";import{WRAP_BOX_CHILD_ORDER_VECTORS as en,WRAP_BOX_LENGTH_VECTORS as tn,WRAP_BOX_LINE_VECTORS as nn,WRAP_BOX_NATURAL_LENGTH_VECTORS as rn,WRAP_BOX_NOTIFY_PROPERTIES as an,WRAP_BOX_POLICY_VECTORS as on,WRAP_BOX_SPACING_NOTIFY_VECTORS as sn,WRAP_BOX_SPACING_VECTORS as cn}from"./wrap-box.js";export{e as ABOUT_DIALOG_CREDITS_LEGAL_VECTORS,t as ABOUT_DIALOG_DETAILS_VECTORS,n as ABOUT_DIALOG_HEADER_VECTORS,r as ABOUT_DIALOG_LABEL_VECTORS,i as ABOUT_DIALOG_SUPPORT_VECTORS,p as ACCENT_COLOR_VECTORS,m as ACTION_ROW_ACTIVATION_VECTORS,ze as ADW_LENGTH_UNIT_VECTORS,b as AVATAR_COLOR_VECTORS,x as AVATAR_FONT_SIZE_VECTORS,S as AVATAR_INITIALS_VECTORS,C as AVATAR_MODE_VECTORS,w as BANNER_BUTTON_STYLE_PARSE_VECTORS,T as BANNER_BUTTON_STYLE_VECTORS,E as BANNER_BUTTON_TEXT_VECTORS,D as BANNER_BUTTON_VISIBLE_VECTORS,O as BANNER_DEFAULT_VECTORS,pe as BOTTOM_SHEET_CLOSE_VECTORS,me as BOTTOM_SHEET_PRESENTATION_VECTORS,k as BUTTON_CONTENT_DEFAULT_VECTORS,A as BUTTON_CONTENT_ELLIPSIZE_VECTORS,j as BUTTON_CONTENT_ICON_VECTORS,M as BUTTON_CONTENT_LABEL_VECTORS,N as BUTTON_CONTENT_STYLE_TARGET_VECTORS,P as BUTTON_CONTENT_TEXT_VECTORS,h as BUTTON_ROW_ACTIVATABLE_VECTORS,g as BUTTON_ROW_ICON_VECTORS,F as BUTTON_STYLE_CLASS_VECTORS,I as CAROUSEL_CLAMP_VECTORS,L as CAROUSEL_NAVIGATE_VECTORS,R as CAROUSEL_PAGE_ALLOCATION_VECTORS,z as CAROUSEL_PAGE_AT_POSITION_VECTORS,B as CAROUSEL_PAGE_LIST_VECTORS,V as CAROUSEL_PROPERTY_DEFAULT_VECTORS,H as CAROUSEL_RANGE_VECTORS,U as CAROUSEL_REORDER_SHIFT_VECTORS,W as CAROUSEL_REVEAL_VECTORS,G as CAROUSEL_SIZES_FROM_SNAP_POINTS_VECTORS,K as CAROUSEL_SNAP_POINT_VECTORS,q as CAROUSEL_WHEEL_LOCKOUT_VECTORS,J as CAROUSEL_WHEEL_VECTORS,It as CASE_FOLD_VECTORS,X as CLAMP_ALLOCATE_VECTORS,Z as CLAMP_CHILD_SIZE_VECTORS,Q as CLAMP_PROPERTY_VECTORS,$ as CLAMP_SIZE_FROM_CHILD_VECTORS,ee as CLAMP_THRESHOLD_VECTORS,Ce as COMBO_CHOOSER_VECTORS,we as COMBO_SELECTION_VECTORS,a as CREDITS_SECTIONS_VECTORS,o as CREDIT_PERSON_VECTORS,se as DATA_GRID_CELL_TEXT_VECTORS,ce as DATA_GRID_COLUMN_CLASS_VECTORS,le as DATA_GRID_COLUMN_NORMALIZE_VECTORS,ue as DATA_GRID_INTERACTIVE_VECTORS,de as DATA_GRID_TRACK_VECTORS,fe as DATA_GRID_VARIANT_VECTORS,ge as ENTRY_MAX_LENGTH_VECTORS,_e as ENTRY_ROW_ACTIVATION_VECTORS,ve as ENTRY_ROW_GUARD_VECTORS,ye as ENTRY_ROW_STATE_VECTORS,be as ENTRY_TEXT_LENGTH_VECTORS,Be as GLIB_CLAMP_VECTORS,dt as INLINE_TOGGLE_VECTORS,ft as INLINE_TOOLTIP_VECTORS,_ as LABEL_VISIBILITY_VECTORS,s as LEGAL_SECTION_VECTORS,c as LICENSE_INFO_VECTORS,l as LICENSE_SETTER_VECTORS,u as LICENSE_SPDX_VECTORS,d as LICENSE_TEXT_VECTORS,Lt as MAKE_COMPARABLE_VECTORS,nt as MENU_BUTTON_DIRECTION_VECTORS,Ve as NATURAL_SIDEBAR_WIDTH_VECTORS,He as NAVIGATION_ACTION_VECTORS,Ue as NAVIGATION_SPLIT_VIEW_LAYOUT_VECTORS,We as NAVIGATION_STACK_VECTORS,Oe as NAVIGATION_VIEW_VECTORS,Ge as OVERLAY_COLLAPSE_VECTORS,Ke as OVERLAY_SPLIT_VIEW_LAYOUT_VECTORS,qe as OVERLAY_SWIPE_AREA_VECTORS,Je as OVERLAY_SWIPE_CANCEL_VECTORS,Ye as OVERLAY_SWIPE_RELEASE_VECTORS,Xe as OVERLAY_SWIPE_SNAP_POINT_VECTORS,Ze as OVERLAY_SWIPE_START_VECTORS,xe as PASSWORD_ENTRY_ROW_VECTORS,Se as PASSWORD_REVEAL_GUARD_VECTORS,Kt as POPOVER_KEY_VECTORS,qt as POPOVER_SURFACE_VECTORS,Rt as PREFERENCES_GROUP_HEADER_VECTORS,zt as PREFERENCES_SEARCH_PAGES,Bt as PREFERENCES_SEARCH_VECTORS,Y as RADIO_GROUP_VECTORS,Vt as ROW_MATCH_VECTORS,Ht as SEARCH_CORPUS_VECTORS,Ut as SEARCH_ROW_SUBTITLE_VECTORS,Jt as SHORTCUT_LABEL_VECTORS,Me as SIDEBAR_ACTIVATION_VECTORS,Qe as SIDEBAR_BOUNDS_VECTORS,Ne as SIDEBAR_CLAMP_VECTORS,Pe as SIDEBAR_FILTER_VECTORS,Fe as SIDEBAR_ITEMS_CHANGED_VECTORS,Ie as SIDEBAR_ITEM_FLAG_VECTORS,Le as SIDEBAR_MODEL_VECTORS,Re as SIDEBAR_MODE_VECTORS,$e as SIDEBAR_WIDTH_VECTORS,Xt as SPINNER_ARC_ENVELOPE,Zt as SPINNER_ARC_PHASE_VECTORS,Qt as SPINNER_ARC_TOLERANCE,$t as SPINNER_CONSTANT_VECTORS,te as SPINNER_GEOMETRY_VECTORS,ne as SPINNER_SIZE_VECTORS,rt as SPLIT_BUTTON_CONTENT_VECTORS,it as SPLIT_BUTTON_DIRECTION_VECTORS,at as SPLIT_BUTTON_DROPDOWN_VECTORS,ot as SPLIT_BUTTON_MENU_ACTIVATION_VECTORS,st as SPLIT_BUTTON_MENU_PARSE_VECTORS,ct as SPLIT_BUTTON_ROOT_STATE_VECTORS,lt as SPLIT_BUTTON_STYLE_CLASS_VECTORS,ut as SPLIT_BUTTON_TOOLTIP_VECTORS,et as SPLIT_VIEW_MEASURE_VECTORS,Wt as STRIP_MARKUP_VECTORS,Gt as STRIP_MNEMONIC_VECTORS,v as SWITCH_ROW_NOTIFY_VECTORS,wt as TABS_REVEALED_VECTORS,Tt as TAB_CLOSE_VISIBLE_VECTORS,Et as TAB_DESCENDANT_VECTORS,Dt as TAB_ICON_STATE_VECTORS,Ot as TAB_PAGE_DESCRIPTOR_VECTORS,kt as TAB_SUCCESSOR_VECTORS,At as TAB_TOOLTIP_VECTORS,jt as TAB_VIEW_VECTORS,tt as TAGS_CONFLICT_VECTORS,re as TOOLBAR_VIEW_ALLOCATE_VECTORS,ie as TOOLBAR_VIEW_CLASS_VECTORS,ae as TOOLBAR_VIEW_CONTENT_FOR_SIZE_VECTORS,oe as TOOLBAR_VIEW_MEASURE_VECTORS,f as TRANSLATOR_CREDITS_VECTORS,Te as VIEW_STACK_ICON_NAME_VECTORS,Ee as VIEW_STACK_PAGE_VECTORS,De as VIEW_STACK_VECTORS,pt as VIEW_SWITCHER_BADGE_VECTORS,mt as VIEW_SWITCHER_BAR_REVEAL_VECTORS,ht as VIEW_SWITCHER_BAR_VECTORS,gt as VIEW_SWITCHER_BUTTON_VECTORS,_t as VIEW_SWITCHER_BUTTON_VISIBILITY_VECTORS,vt as VIEW_SWITCHER_DRAG_VECTORS,yt as VIEW_SWITCHER_ICON_VECTORS,bt as VIEW_SWITCHER_MNEMONIC_VECTORS,xt as VIEW_SWITCHER_REBUILD_VECTORS,St as VIEW_SWITCHER_SELECTION_VECTORS,y as WINDOW_TITLE_VECTORS,en as WRAP_BOX_CHILD_ORDER_VECTORS,tn as WRAP_BOX_LENGTH_VECTORS,nn as WRAP_BOX_LINE_VECTORS,rn as WRAP_BOX_NATURAL_LENGTH_VECTORS,an as WRAP_BOX_NOTIFY_PROPERTIES,on as WRAP_BOX_POLICY_VECTORS,sn as WRAP_BOX_SPACING_NOTIFY_VECTORS,cn as WRAP_BOX_SPACING_VECTORS,Mt as applyTabViewOp,ke as collectNavigationState,Ct as createViewSwitcherClock,Yt as formatShortcutLabelNodes,Ae as navigationEventLog,he as runBottomSheetSteps,je as runNavigationSteps,Nt as seedTabViewPages,Pt as tabViewClosing,Ft as tabViewOrder};
|
|
1
|
+
import{ABOUT_DIALOG_CREDITS_LEGAL_VECTORS as e,ABOUT_DIALOG_DETAILS_VECTORS as t,ABOUT_DIALOG_HEADER_VECTORS as n,ABOUT_DIALOG_LABEL_VECTORS as r,ABOUT_DIALOG_SUPPORT_VECTORS as i,CREDITS_SECTIONS_VECTORS as a,CREDIT_PERSON_VECTORS as o,LEGAL_SECTION_VECTORS as s,LICENSE_INFO_VECTORS as c,LICENSE_SETTER_VECTORS as l,LICENSE_SPDX_VECTORS as u,LICENSE_TEXT_VECTORS as d,TRANSLATOR_CREDITS_VECTORS as f}from"./about-dialog.js";import{ACCENT_COLOR_VECTORS as p}from"./accent.js";import{ACTION_ROW_ACTIVATION_VECTORS as m,BUTTON_ROW_ACTIVATABLE_VECTORS as h,BUTTON_ROW_ICON_VECTORS as g,LABEL_VISIBILITY_VECTORS as _,SWITCH_ROW_NOTIFY_VECTORS as v,WINDOW_TITLE_VECTORS as y}from"./action-row.js";import{AVATAR_COLOR_VECTORS as b,AVATAR_FONT_SIZE_VECTORS as x,AVATAR_INITIALS_VECTORS as S,AVATAR_MODE_VECTORS as C}from"./avatar.js";import{BANNER_BUTTON_STYLE_PARSE_VECTORS as w,BANNER_BUTTON_STYLE_VECTORS as T,BANNER_BUTTON_TEXT_VECTORS as E,BANNER_BUTTON_VISIBLE_VECTORS as D,BANNER_DEFAULT_VECTORS as O}from"./banner.js";import{BREAKPOINT_PICK_VECTORS as k,BREAKPOINT_TRANSITION_VECTORS as A}from"./breakpoint-bin.js";import{BUTTON_CONTENT_DEFAULT_VECTORS as j,BUTTON_CONTENT_ELLIPSIZE_VECTORS as M,BUTTON_CONTENT_ICON_VECTORS as N,BUTTON_CONTENT_LABEL_VECTORS as P,BUTTON_CONTENT_STYLE_TARGET_VECTORS as F,BUTTON_CONTENT_TEXT_VECTORS as I}from"./button-content.js";import{BUTTON_STYLE_CLASS_VECTORS as L}from"./button.js";import{CAROUSEL_CLAMP_VECTORS as R,CAROUSEL_NAVIGATE_VECTORS as z,CAROUSEL_PAGE_ALLOCATION_VECTORS as B,CAROUSEL_PAGE_AT_POSITION_VECTORS as V,CAROUSEL_PAGE_LIST_VECTORS as H,CAROUSEL_PROPERTY_DEFAULT_VECTORS as U,CAROUSEL_RANGE_VECTORS as W,CAROUSEL_REORDER_SHIFT_VECTORS as G,CAROUSEL_REVEAL_VECTORS as K,CAROUSEL_SIZES_FROM_SNAP_POINTS_VECTORS as q,CAROUSEL_SNAP_POINT_VECTORS as J,CAROUSEL_WHEEL_LOCKOUT_VECTORS as Y,CAROUSEL_WHEEL_VECTORS as X}from"./carousel.js";import{RADIO_GROUP_VECTORS as Z}from"./checks.js";import{CLAMP_ALLOCATE_VECTORS as Q,CLAMP_CHILD_SIZE_VECTORS as $,CLAMP_PROPERTY_VECTORS as ee,CLAMP_SIZE_FROM_CHILD_VECTORS as te,CLAMP_THRESHOLD_VECTORS as ne,SPINNER_GEOMETRY_VECTORS as re,SPINNER_SIZE_VECTORS as ie,TOOLBAR_VIEW_ALLOCATE_VECTORS as ae,TOOLBAR_VIEW_CLASS_VECTORS as oe,TOOLBAR_VIEW_CONTENT_FOR_SIZE_VECTORS as se,TOOLBAR_VIEW_MEASURE_VECTORS as ce}from"./chrome.js";import{DATA_GRID_CELL_TEXT_VECTORS as le,DATA_GRID_COLUMN_CLASS_VECTORS as ue,DATA_GRID_COLUMN_NORMALIZE_VECTORS as de,DATA_GRID_INTERACTIVE_VECTORS as fe,DATA_GRID_TRACK_VECTORS as pe,DATA_GRID_VARIANT_VECTORS as me}from"./data-grid.js";import{BOTTOM_SHEET_CLOSE_VECTORS as he,BOTTOM_SHEET_PRESENTATION_VECTORS as ge,runBottomSheetSteps as _e}from"./dialog.js";import{ENTRY_MAX_LENGTH_VECTORS as ve,ENTRY_ROW_ACTIVATION_VECTORS as ye,ENTRY_ROW_GUARD_VECTORS as be,ENTRY_ROW_STATE_VECTORS as xe,ENTRY_TEXT_LENGTH_VECTORS as Se,PASSWORD_ENTRY_ROW_VECTORS as Ce,PASSWORD_REVEAL_GUARD_VECTORS as we}from"./entry-row.js";import{HEADER_BAR_PACK_VECTORS as Te,HEADER_BAR_TITLE_SOURCE_VECTORS as Ee,HEADER_BAR_TITLE_WIDGET_VECTORS as De}from"./header-bar.js";import{COMBO_CHOOSER_VECTORS as Oe,COMBO_SELECTION_VECTORS as ke}from"./rows.js";import{VIEW_STACK_ICON_NAME_VECTORS as Ae,VIEW_STACK_PAGE_VECTORS as je,VIEW_STACK_VECTORS as Me}from"./view-stack.js";import{NAVIGATION_VIEW_VECTORS as Ne,collectNavigationState as Pe,navigationEventLog as Fe,runNavigationSteps as Ie}from"./navigation-view.js";import{SIDEBAR_ACTIVATION_VECTORS as Le,SIDEBAR_CLAMP_VECTORS as Re,SIDEBAR_FILTER_VECTORS as ze,SIDEBAR_ITEMS_CHANGED_VECTORS as Be,SIDEBAR_ITEM_FLAG_VECTORS as Ve,SIDEBAR_MODEL_VECTORS as He,SIDEBAR_MODE_VECTORS as Ue}from"./sidebar.js";import{ADW_LENGTH_UNIT_VECTORS as We,GLIB_CLAMP_VECTORS as Ge,NATURAL_SIDEBAR_WIDTH_VECTORS as Ke,NAVIGATION_ACTION_VECTORS as qe,NAVIGATION_SPLIT_VIEW_LAYOUT_VECTORS as Je,NAVIGATION_STACK_VECTORS as Ye,OVERLAY_COLLAPSE_VECTORS as Xe,OVERLAY_SPLIT_VIEW_LAYOUT_VECTORS as Ze,OVERLAY_SWIPE_AREA_VECTORS as Qe,OVERLAY_SWIPE_CANCEL_VECTORS as $e,OVERLAY_SWIPE_RELEASE_VECTORS as et,OVERLAY_SWIPE_SNAP_POINT_VECTORS as tt,OVERLAY_SWIPE_START_VECTORS as nt,SIDEBAR_BOUNDS_VECTORS as rt,SIDEBAR_WIDTH_VECTORS as it,SPLIT_VIEW_MEASURE_VECTORS as at,TAGS_CONFLICT_VECTORS as ot}from"./split-view.js";import{MENU_BUTTON_DIRECTION_VECTORS as st,SPLIT_BUTTON_CONTENT_VECTORS as ct,SPLIT_BUTTON_DIRECTION_VECTORS as lt,SPLIT_BUTTON_DROPDOWN_VECTORS as ut,SPLIT_BUTTON_MENU_ACTIVATION_VECTORS as dt,SPLIT_BUTTON_MENU_PARSE_VECTORS as ft,SPLIT_BUTTON_ROOT_STATE_VECTORS as pt,SPLIT_BUTTON_STYLE_CLASS_VECTORS as mt,SPLIT_BUTTON_TOOLTIP_VECTORS as ht}from"./split-button.js";import{INLINE_TOGGLE_VECTORS as gt,INLINE_TOOLTIP_VECTORS as _t,VIEW_SWITCHER_BADGE_VECTORS as vt,VIEW_SWITCHER_BAR_REVEAL_VECTORS as yt,VIEW_SWITCHER_BAR_VECTORS as bt,VIEW_SWITCHER_BUTTON_VECTORS as xt,VIEW_SWITCHER_BUTTON_VISIBILITY_VECTORS as St,VIEW_SWITCHER_DRAG_VECTORS as Ct,VIEW_SWITCHER_ICON_VECTORS as wt,VIEW_SWITCHER_MNEMONIC_VECTORS as Tt,VIEW_SWITCHER_REBUILD_VECTORS as Et,VIEW_SWITCHER_SELECTION_VECTORS as Dt,createViewSwitcherClock as Ot}from"./view-switcher.js";import{TABS_REVEALED_VECTORS as kt,TAB_CLOSE_VISIBLE_VECTORS as At,TAB_DESCENDANT_VECTORS as jt,TAB_ICON_STATE_VECTORS as Mt,TAB_PAGE_DESCRIPTOR_VECTORS as Nt,TAB_SUCCESSOR_VECTORS as Pt,TAB_TOOLTIP_VECTORS as Ft,TAB_VIEW_VECTORS as It,applyTabViewOp as Lt,seedTabViewPages as Rt,tabViewClosing as zt,tabViewOrder as Bt}from"./tab-view.js";import{CASE_FOLD_VECTORS as Vt,MAKE_COMPARABLE_VECTORS as Ht,PREFERENCES_GROUP_HEADER_VECTORS as Ut,PREFERENCES_SEARCH_PAGES as Wt,PREFERENCES_SEARCH_VECTORS as Gt,ROW_MATCH_VECTORS as Kt,SEARCH_CORPUS_VECTORS as qt,SEARCH_ROW_SUBTITLE_VECTORS as Jt,STRIP_MARKUP_VECTORS as Yt,STRIP_MNEMONIC_VECTORS as Xt}from"./preferences.js";import{POPOVER_KEY_VECTORS as Zt,POPOVER_SURFACE_VECTORS as Qt}from"./popover.js";import{SHORTCUT_LABEL_VECTORS as $t,formatShortcutLabelNodes as en}from"./shortcut-label.js";import{SPINNER_ARC_ENVELOPE as tn,SPINNER_ARC_PHASE_VECTORS as nn,SPINNER_ARC_TOLERANCE as rn,SPINNER_CONSTANT_VECTORS as an}from"./spinner.js";import{WRAP_BOX_CHILD_ORDER_VECTORS as on,WRAP_BOX_LENGTH_VECTORS as sn,WRAP_BOX_LINE_VECTORS as cn,WRAP_BOX_NATURAL_LENGTH_VECTORS as ln,WRAP_BOX_NOTIFY_PROPERTIES as un,WRAP_BOX_POLICY_VECTORS as dn,WRAP_BOX_SPACING_NOTIFY_VECTORS as fn,WRAP_BOX_SPACING_VECTORS as pn}from"./wrap-box.js";export{e as ABOUT_DIALOG_CREDITS_LEGAL_VECTORS,t as ABOUT_DIALOG_DETAILS_VECTORS,n as ABOUT_DIALOG_HEADER_VECTORS,r as ABOUT_DIALOG_LABEL_VECTORS,i as ABOUT_DIALOG_SUPPORT_VECTORS,p as ACCENT_COLOR_VECTORS,m as ACTION_ROW_ACTIVATION_VECTORS,We as ADW_LENGTH_UNIT_VECTORS,b as AVATAR_COLOR_VECTORS,x as AVATAR_FONT_SIZE_VECTORS,S as AVATAR_INITIALS_VECTORS,C as AVATAR_MODE_VECTORS,w as BANNER_BUTTON_STYLE_PARSE_VECTORS,T as BANNER_BUTTON_STYLE_VECTORS,E as BANNER_BUTTON_TEXT_VECTORS,D as BANNER_BUTTON_VISIBLE_VECTORS,O as BANNER_DEFAULT_VECTORS,he as BOTTOM_SHEET_CLOSE_VECTORS,ge as BOTTOM_SHEET_PRESENTATION_VECTORS,k as BREAKPOINT_PICK_VECTORS,A as BREAKPOINT_TRANSITION_VECTORS,j as BUTTON_CONTENT_DEFAULT_VECTORS,M as BUTTON_CONTENT_ELLIPSIZE_VECTORS,N as BUTTON_CONTENT_ICON_VECTORS,P as BUTTON_CONTENT_LABEL_VECTORS,F as BUTTON_CONTENT_STYLE_TARGET_VECTORS,I as BUTTON_CONTENT_TEXT_VECTORS,h as BUTTON_ROW_ACTIVATABLE_VECTORS,g as BUTTON_ROW_ICON_VECTORS,L as BUTTON_STYLE_CLASS_VECTORS,R as CAROUSEL_CLAMP_VECTORS,z as CAROUSEL_NAVIGATE_VECTORS,B as CAROUSEL_PAGE_ALLOCATION_VECTORS,V as CAROUSEL_PAGE_AT_POSITION_VECTORS,H as CAROUSEL_PAGE_LIST_VECTORS,U as CAROUSEL_PROPERTY_DEFAULT_VECTORS,W as CAROUSEL_RANGE_VECTORS,G as CAROUSEL_REORDER_SHIFT_VECTORS,K as CAROUSEL_REVEAL_VECTORS,q as CAROUSEL_SIZES_FROM_SNAP_POINTS_VECTORS,J as CAROUSEL_SNAP_POINT_VECTORS,Y as CAROUSEL_WHEEL_LOCKOUT_VECTORS,X as CAROUSEL_WHEEL_VECTORS,Vt as CASE_FOLD_VECTORS,Q as CLAMP_ALLOCATE_VECTORS,$ as CLAMP_CHILD_SIZE_VECTORS,ee as CLAMP_PROPERTY_VECTORS,te as CLAMP_SIZE_FROM_CHILD_VECTORS,ne as CLAMP_THRESHOLD_VECTORS,Oe as COMBO_CHOOSER_VECTORS,ke as COMBO_SELECTION_VECTORS,a as CREDITS_SECTIONS_VECTORS,o as CREDIT_PERSON_VECTORS,le as DATA_GRID_CELL_TEXT_VECTORS,ue as DATA_GRID_COLUMN_CLASS_VECTORS,de as DATA_GRID_COLUMN_NORMALIZE_VECTORS,fe as DATA_GRID_INTERACTIVE_VECTORS,pe as DATA_GRID_TRACK_VECTORS,me as DATA_GRID_VARIANT_VECTORS,ve as ENTRY_MAX_LENGTH_VECTORS,ye as ENTRY_ROW_ACTIVATION_VECTORS,be as ENTRY_ROW_GUARD_VECTORS,xe as ENTRY_ROW_STATE_VECTORS,Se as ENTRY_TEXT_LENGTH_VECTORS,Ge as GLIB_CLAMP_VECTORS,Te as HEADER_BAR_PACK_VECTORS,Ee as HEADER_BAR_TITLE_SOURCE_VECTORS,De as HEADER_BAR_TITLE_WIDGET_VECTORS,gt as INLINE_TOGGLE_VECTORS,_t as INLINE_TOOLTIP_VECTORS,_ as LABEL_VISIBILITY_VECTORS,s as LEGAL_SECTION_VECTORS,c as LICENSE_INFO_VECTORS,l as LICENSE_SETTER_VECTORS,u as LICENSE_SPDX_VECTORS,d as LICENSE_TEXT_VECTORS,Ht as MAKE_COMPARABLE_VECTORS,st as MENU_BUTTON_DIRECTION_VECTORS,Ke as NATURAL_SIDEBAR_WIDTH_VECTORS,qe as NAVIGATION_ACTION_VECTORS,Je as NAVIGATION_SPLIT_VIEW_LAYOUT_VECTORS,Ye as NAVIGATION_STACK_VECTORS,Ne as NAVIGATION_VIEW_VECTORS,Xe as OVERLAY_COLLAPSE_VECTORS,Ze as OVERLAY_SPLIT_VIEW_LAYOUT_VECTORS,Qe as OVERLAY_SWIPE_AREA_VECTORS,$e as OVERLAY_SWIPE_CANCEL_VECTORS,et as OVERLAY_SWIPE_RELEASE_VECTORS,tt as OVERLAY_SWIPE_SNAP_POINT_VECTORS,nt as OVERLAY_SWIPE_START_VECTORS,Ce as PASSWORD_ENTRY_ROW_VECTORS,we as PASSWORD_REVEAL_GUARD_VECTORS,Zt as POPOVER_KEY_VECTORS,Qt as POPOVER_SURFACE_VECTORS,Ut as PREFERENCES_GROUP_HEADER_VECTORS,Wt as PREFERENCES_SEARCH_PAGES,Gt as PREFERENCES_SEARCH_VECTORS,Z as RADIO_GROUP_VECTORS,Kt as ROW_MATCH_VECTORS,qt as SEARCH_CORPUS_VECTORS,Jt as SEARCH_ROW_SUBTITLE_VECTORS,$t as SHORTCUT_LABEL_VECTORS,Le as SIDEBAR_ACTIVATION_VECTORS,rt as SIDEBAR_BOUNDS_VECTORS,Re as SIDEBAR_CLAMP_VECTORS,ze as SIDEBAR_FILTER_VECTORS,Be as SIDEBAR_ITEMS_CHANGED_VECTORS,Ve as SIDEBAR_ITEM_FLAG_VECTORS,He as SIDEBAR_MODEL_VECTORS,Ue as SIDEBAR_MODE_VECTORS,it as SIDEBAR_WIDTH_VECTORS,tn as SPINNER_ARC_ENVELOPE,nn as SPINNER_ARC_PHASE_VECTORS,rn as SPINNER_ARC_TOLERANCE,an as SPINNER_CONSTANT_VECTORS,re as SPINNER_GEOMETRY_VECTORS,ie as SPINNER_SIZE_VECTORS,ct as SPLIT_BUTTON_CONTENT_VECTORS,lt as SPLIT_BUTTON_DIRECTION_VECTORS,ut as SPLIT_BUTTON_DROPDOWN_VECTORS,dt as SPLIT_BUTTON_MENU_ACTIVATION_VECTORS,ft as SPLIT_BUTTON_MENU_PARSE_VECTORS,pt as SPLIT_BUTTON_ROOT_STATE_VECTORS,mt as SPLIT_BUTTON_STYLE_CLASS_VECTORS,ht as SPLIT_BUTTON_TOOLTIP_VECTORS,at as SPLIT_VIEW_MEASURE_VECTORS,Yt as STRIP_MARKUP_VECTORS,Xt as STRIP_MNEMONIC_VECTORS,v as SWITCH_ROW_NOTIFY_VECTORS,kt as TABS_REVEALED_VECTORS,At as TAB_CLOSE_VISIBLE_VECTORS,jt as TAB_DESCENDANT_VECTORS,Mt as TAB_ICON_STATE_VECTORS,Nt as TAB_PAGE_DESCRIPTOR_VECTORS,Pt as TAB_SUCCESSOR_VECTORS,Ft as TAB_TOOLTIP_VECTORS,It as TAB_VIEW_VECTORS,ot as TAGS_CONFLICT_VECTORS,ae as TOOLBAR_VIEW_ALLOCATE_VECTORS,oe as TOOLBAR_VIEW_CLASS_VECTORS,se as TOOLBAR_VIEW_CONTENT_FOR_SIZE_VECTORS,ce as TOOLBAR_VIEW_MEASURE_VECTORS,f as TRANSLATOR_CREDITS_VECTORS,Ae as VIEW_STACK_ICON_NAME_VECTORS,je as VIEW_STACK_PAGE_VECTORS,Me as VIEW_STACK_VECTORS,vt as VIEW_SWITCHER_BADGE_VECTORS,yt as VIEW_SWITCHER_BAR_REVEAL_VECTORS,bt as VIEW_SWITCHER_BAR_VECTORS,xt as VIEW_SWITCHER_BUTTON_VECTORS,St as VIEW_SWITCHER_BUTTON_VISIBILITY_VECTORS,Ct as VIEW_SWITCHER_DRAG_VECTORS,wt as VIEW_SWITCHER_ICON_VECTORS,Tt as VIEW_SWITCHER_MNEMONIC_VECTORS,Et as VIEW_SWITCHER_REBUILD_VECTORS,Dt as VIEW_SWITCHER_SELECTION_VECTORS,y as WINDOW_TITLE_VECTORS,on as WRAP_BOX_CHILD_ORDER_VECTORS,sn as WRAP_BOX_LENGTH_VECTORS,cn as WRAP_BOX_LINE_VECTORS,ln as WRAP_BOX_NATURAL_LENGTH_VECTORS,un as WRAP_BOX_NOTIFY_PROPERTIES,dn as WRAP_BOX_POLICY_VECTORS,fn as WRAP_BOX_SPACING_NOTIFY_VECTORS,pn as WRAP_BOX_SPACING_VECTORS,Lt as applyTabViewOp,Pe as collectNavigationState,Ot as createViewSwitcherClock,en as formatShortcutLabelNodes,Fe as navigationEventLog,_e as runBottomSheetSteps,Ie as runNavigationSteps,Rt as seedTabViewPages,zt as tabViewClosing,Bt as tabViewOrder};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";import{WindowTitleState as e}from"./action-row.js";function resolveHeaderBarTitle(e){if(e.bottomSheetShowsDragHandle===!0)return``;for(let t of[e.navigationPageTitle,e.dialogTitle,e.windowTitle,e.applicationName,e.programName])if(t!=null)return t;return``}var HeaderBarState=class{constructor(){this._start=[],this._end=[],this._titleWidget=null,this._title=new e,this._sources={}}packStart(e){this._start.push(e)}packEnd(e){this._end.unshift(e)}remove(e){let t=!1;for(let n of[this._start,this._end])for(let r=n.length-1;r>=0;r--)n[r]===e&&(n.splice(r,1),t=!0);return this._titleWidget===e&&(this.setTitleWidget(null),t=!0),t}get titleWidget(){return this._titleWidget}setTitleWidget(e){return this._titleWidget===e?!1:(this._titleWidget=e,!0)}get title(){return this._title.title}setTitle(e){return this._title.setTitle(e)}get subtitle(){return this._title.subtitle}setSubtitle(e){return this._title.setSubtitle(e)}setTitleSources(e){let t=resolveHeaderBarTitle(this._sources);return this._sources=e,resolveHeaderBarTitle(e)!==t}get state(){let e=this._titleWidget!==null,t=this._title.title===``?resolveHeaderBarTitle(this._sources):this._title.title;return{start:[...this._start],end:[...this._end],titleWidget:this._titleWidget,derivedTitle:e?null:t,derivedSubtitle:e?null:this._title.subtitle}}};export{HeaderBarState,resolveHeaderBarTitle};
|
package/lib/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{gStrStrip as e,glibClamp as t,stringIsNotEmpty as n,stripMnemonic as r}from"./glib.js";import{ADW_ABOUT_DIALOG_LABELS as i,ADW_CREDITS_SECTION_TITLES as a,ADW_LICENSES as o,ADW_LICENSE_ALIASES as s,ADW_LICENSE_DEFAULTS as c,ADW_LICENSE_WARRANTY_TEMPLATE as l,ADW_TRANSLATOR_CREDITS_SENTINELS as u,GTK_LICENSE as d,aboutDialogVisibility as f,creditsSections as p,isLicenseType as m,legalSectionVisible as h,licenseText as g,licenseTypeForSpdxId as _,parseCreditPerson as v,setLicense as y,setLicenseType as b,translatorCreditsPeople as x}from"./about-dialog.js";import{ADW_ACCENT_BG_COLORS as S,ADW_ACCENT_COLOR_NAMES as C,ADW_ACCENT_FG_COLOR as w,ADW_DEFAULT_ACCENT_COLOR as T,adwaitaAccent as E,adwaitaAccentBgColor as D,adwaitaAccentColor as O,adwaitaStandaloneColor as k,isAdwAccentColorName as A,onAdwaitaAccentChanged as j,setAdwaitaAccent as M}from"./accent.js";import{ActionRowState as N,BUTTON_ROW_ACTIVATABLE as P,ButtonRowState as F,SwitchRowState as I,WindowTitleState as L,deriveRowLabels as R}from"./action-row.js";import{AVATAR_COLORS as z,AVATAR_COLOR_COUNT as B,avatarColor as V,avatarColorClass as H,avatarFontSize as U,avatarInitials as W,avatarMaxFontSize as G,avatarMode as K,flattenAvatarGradient as q,gStrHash as J,randomAvatarColorClass as Y}from"./avatar.js";import{ADW_BANNER_BUTTON_STYLES as X,ADW_BANNER_BUTTON_STYLE_CLASSES as Z,ADW_BANNER_DEFAULTS as Q,bannerButtonStyleClasses as $,bannerButtonText as ee,bannerButtonVisible as te,bannerRenderState as ne,isBannerButtonStyle as re,parseBannerButtonStyle as ie}from"./banner.js";import{AdwBreakpoint as ae,evaluateBreakpointCondition as oe,parseBreakpointCondition as se}from"./breakpoint.js";import{ADW_BUTTON_CONTENT_DEFAULTS as ce,BUTTON_CONTENT_FALLBACK_ICON as le,BUTTON_CONTENT_STYLE_CLASS as ue,buttonContentEllipsize as de,buttonContentIconExpands as fe,buttonContentIconIsEmpty as pe,buttonContentIconName as me,buttonContentLabelText as he,buttonContentLabelVisible as ge,buttonContentRenderState as _e,buttonContentStyleTargetIndex as ve}from"./button-content.js";import{ADW_BUTTON_STYLE_ALIASES as ye,ADW_BUTTON_STYLE_CLASSES as be,buttonStyleClass as xe,buttonStyleClasses as Se}from"./button.js";import{ADW_SWIPE_DECELERATION_TOUCH as Ce,ADW_SWIPE_DECELERATION_TOUCHPAD as we,ADW_SWIPE_DRAG_THRESHOLD as Te,ADW_SWIPE_EPSILON as Ee,ADW_SWIPE_HISTORY_THRESHOLD_MS as De,ADW_SWIPE_PARABOLA_MULTIPLIER as Oe,ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_H as ke,ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_V as Ae,ADW_SWIPE_VELOCITY_CURVE_THRESHOLD as je,ADW_SWIPE_VELOCITY_THRESHOLD_TOUCH as Me,ADW_SWIPE_VELOCITY_THRESHOLD_TOUCHPAD as Ne,SwipeTracker as Pe,swipeBounds as Fe,swipeClosestPointIndex as Ie,swipeEndProgress as Le,swipeNextPointIndex as Re,swipePreviousPointIndex as ze,swipeProjectedPointIndex as Be,swipeSlope as Ve,swipeVelocityThreshold as He}from"./swipe.js";import{CAROUSEL_SCROLL_TIMEOUT_MS as Ue,CAROUSEL_SETTLE_EPSILON as We,CarouselState as Ge,carouselClampPosition as Ke,carouselClosestSnapPoint as qe,carouselNavigateTarget as Je,carouselPageAllocation as Ye,carouselPageAtPosition as Xe,carouselRange as Ze,carouselReorderShift as Qe,carouselSizesFromSnapPoints as $e,carouselSnapPoints as et,carouselWheelStep as tt}from"./carousel.js";import{RadioGroupState as nt,resolveCheckState as rt}from"./checks.js";import{adwLerp as it,easeInOutSine as at,easeOutCubic as ot,inverseLerp as st}from"./easing.js";import{ADW_CLAMP_DEFAULTS as ct,ADW_CLAMP_SIZE_CLASSES as lt,ADW_SPINNER_MAX_SIZE as ut,ADW_SPINNER_MIN_SIZE as dt,ADW_TOOLBAR_BAR_CLASSES as ft,ADW_TOOLBAR_VIEW_CLASSES as pt,ADW_TOOLBAR_VIEW_DEFAULTS as mt,clampAllocate as ht,clampChildSize as gt,clampSizeFromChild as _t,clampThresholds as vt,normalizeClampSize as yt,parseToolbarStyle as bt,resolveSpinnerSize as xt,spinnerGeometry as St,toolbarBarStyleClasses as Ct,toolbarViewAllocate as wt,toolbarViewClasses as Tt,toolbarViewContentForSize as Et,toolbarViewMeasure as Dt}from"./chrome.js";import{DEFAULT_ICON_COLOR as Ot,DEFAULT_ICON_COLOR_DARK as kt,adwaitaColorScheme as At,isThemeIconColor as jt,onAdwaitaColorSchemeChanged as Mt,setAdwaitaColorScheme as Nt,themeIconColor as Pt,toggleAdwaitaColorScheme as Ft}from"./color-scheme.js";import{ADW_DATA_GRID_ROW_VARIANTS as It,DATA_GRID_CELL_CLASS as Lt,DATA_GRID_ROW_CLASS as Rt,dataGridCellText as zt,dataGridColumnAlign as Bt,dataGridColumnClasses as Vt,dataGridRowInteractive as Ht,dataGridTrackTemplate as Ut,dataGridTracks as Wt,normalizeDataGridColumns as Gt,normalizeDataGridVariant as Kt}from"./data-grid.js";import{AdwAlertResponses as qt,BottomSheetPresentation as Jt,resolveBottomSheetClose as Yt}from"./dialog.js";import{CAPS_LOCK_ICON_NAME as Xt,CAPS_LOCK_TOOLTIP as Zt,EMPTY_ANIMATION_DURATION_MS as Qt,ENTRY_ROW_APPLY_ICON_NAME as $t,ENTRY_ROW_APPLY_TOOLTIP as en,ENTRY_ROW_EDIT_ICON_NAME as tn,ENTRY_ROW_MAX_LENGTH_LIMIT as nn,ENTRY_ROW_TITLE_SPACING as rn,EntryRowState as an,PASSWORD_CONCEAL_ICON_NAME as on,PASSWORD_CONCEAL_LABEL as sn,PASSWORD_REVEAL_ICON_NAME as cn,PASSWORD_REVEAL_LABEL as ln,PasswordEntryRowState as un,clampEntryText as dn,entryTextLength as fn}from"./entry-row.js";import{AdwToast as pn,AdwToastQueue as mn,DEFAULT_TOAST_TIMEOUT as hn}from"./toast.js";import{ADW_COMBO_NO_SELECTION as gn,ComboState as _n,ExpanderState as vn,SpinState as yn,ToggleGroupState as bn,normalizeComboOptions as xn}from"./rows.js";import{ViewStackState as Sn,normalizeIconName as Cn,resolvePageTitle as wn}from"./view-stack.js";import{BACK_BUTTON_FALLBACK_TOOLTIP as Tn,NavigationViewState as En,describeNavigationDiagnostic as Dn}from"./navigation-view.js";import{ADW_SIDEBAR_NO_SELECTION as On,SidebarState as kn,adjustSidebarSelection as An,clampSidebarSelection as jn,flattenSidebarItems as Mn,sidebarHeaders as Nn}from"./sidebar.js";import{ADW_SPINNER_CONTRACT_DISTANCE as Pn,ADW_SPINNER_CYCLES_PER_LOOP as Fn,ADW_SPINNER_CYCLE_LENGTH as In,ADW_SPINNER_EXTEND_DISTANCE as Ln,ADW_SPINNER_IDLE_DISTANCE as Rn,ADW_SPINNER_MAX_ARC_LENGTH as zn,ADW_SPINNER_MIN_ARC_LENGTH as Bn,ADW_SPINNER_N_CYCLES as Vn,ADW_SPINNER_OVERLAP_DISTANCE as Hn,ADW_SPINNER_SPIN_DURATION_MS as Un,ADW_SPINNER_START_ANGLE as Wn,ADW_SPINNER_STILL_PROGRESS as Gn,ADW_SPINNER_TRACK_OPACITY as Kn,normalizeSpinnerAngle as qn,spinnerArc as Jn,spinnerArcEnd as Yn,spinnerArcStart as Xn,spinnerProgressAt as Zn}from"./spinner.js";import{parseAccelerator as Qn,parseShortcutLabel as $n,shortcutKeycaps as er}from"./shortcut-label.js";import{ADW_LENGTH_UNITS as tr,DEFAULT_DPI as nr,adwLengthToPx as rr,normalizeLengthUnit as ir}from"./length-unit.js";import{ADW_SWIPE_BORDER as ar,DEFAULT_MAX_SIDEBAR_WIDTH as or,DEFAULT_MIN_SIDEBAR_WIDTH as sr,DEFAULT_SIDEBAR_WIDTH_FRACTION as cr,DEFAULT_SIDEBAR_WIDTH_UNIT as lr,INSTANT_SPLIT_VIEW_ANIMATOR as ur,NAVIGATION_SPLIT_VIEW_CRITICALS as dr,NavigationSplitViewState as fr,OverlaySplitViewState as pr,isSidebarAtVisualStart as mr,layoutNavigationSplitView as hr,layoutOverlaySplitView as gr,measureSplitViewHorizontal as _r,resolveNaturalSidebarWidth as vr,resolveNavigationAction as yr,resolveNavigationSidebarWidth as br,resolveNavigationStack as xr,resolveOverlaySidebarWidth as Sr,resolveSidebarBounds as Cr,resolveSwipeArea as wr,resolveSwipeRelease as Tr,resolveSwipeSnapPoints as Er,resolveSwipeStart as Dr,swipeCancelProgress as Or,tagsConflict as kr}from"./split-view.js";import{DEFAULT_DROPDOWN_TOOLTIP as Ar,SPLIT_BUTTON_DISABLED_OPACITY as jr,SplitButtonState as Mr,isSplitButtonDirection as Nr,menuButtonArrowIcon as Pr,menuButtonPopupDirection as Fr,parseMenuEntries as Ir,resolveDropdownTooltip as Lr,splitButtonArrowIcon as Rr,splitButtonPopupDirection as zr,splitButtonRootState as Br,splitButtonStyleClasses as Vr}from"./split-button.js";import{DEFAULT_INDICATOR_DESCRIPTION_STRINGS as Hr,INLINE_VIEW_SWITCHER_DISPLAY_MODES as Ur,VIEW_SWITCHER_BADGE_LIMIT as Wr,VIEW_SWITCHER_DRAG_SWITCH_DELAY as Gr,VIEW_SWITCHER_FALLBACK_ICON as Kr,VIEW_SWITCHER_NO_SELECTION as qr,VIEW_SWITCHER_POLICIES as Jr,ViewSwitcherBarState as Yr,ViewSwitcherDragSwitch as Xr,ViewSwitcherState as Zr,buildInlineToggles as Qr,buildViewSwitcherButtons as $r,createViewSwitcherPage as ei,inlineToggleTooltip as ti,isInlineViewSwitcherDisplayMode as ni,isViewSwitcherButtonVisible as ri,isViewSwitcherPolicy as ii,pageIndexForToggle as ai,shouldRevealViewSwitcherBar as oi,toggleIndexForPage as si,viewSwitcherBadgeLabel as ci,viewSwitcherButtonOrientation as li,viewSwitcherIconName as ui,viewSwitcherIndicatorDescription as di,viewSwitcherLabel as fi,viewSwitcherPageFromStackPage as pi,viewSwitcherPagesFromStack as mi}from"./view-switcher.js";import{DEFAULT_TAB_AUTOHIDE as hi,TabViewState as gi,isDescendantOfPage as _i,successorAfterClose as vi,tabCloseVisible as yi,tabIconState as bi,tabTooltip as xi,tabTooltipIsMarkup as Si,tabsRevealed as Ci}from"./tab-view.js";import{UNTITLED_PAGE_LABEL as wi,collectSearchRows as Ti,countVisiblePages as Ei,createSearchRowSubtitle as Di,defaultCaseFolder as Oi,derivePreferencesGroupHeader as ki,escapeMarkup as Ai,makeComparable as ji,rowMatchesQuery as Mi,searchPreferences as Ni,stripMarkup as Pi}from"./preferences.js";import{ADW_MAX_OVERSHOOT_DISTANCE as Fi,ADW_OVERSHOOT_SETTLE_MS as Ii,ADW_UNDERSHOOT_CLASSES as Li,ADW_UNDERSHOOT_SIZE as Ri,accumulateOvershoot as zi,isScrolledFromEnd as Bi,isScrolledFromStart as Vi,overshootDistance as Hi,scrollMaxValue as Ui,scrollUndershootClasses as Wi}from"./scrolling.js";import{POPOVER_ITEM_RADIUS as Gi,POPOVER_MENU_PADDING as Ki,POPOVER_PADDING as qi,POPOVER_RADIUS as Ji,PopoverState as Yi,resolvePopoverKey as Xi}from"./popover.js";import{ADW_WRAP_BOX_DEFAULT_ALIGN as Zi,ADW_WRAP_BOX_DEFAULT_JUSTIFY as Qi,ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE as $i,ADW_WRAP_BOX_DEFAULT_LENGTH_UNIT as ea,ADW_WRAP_BOX_DEFAULT_PACK_DIRECTION as ta,ADW_WRAP_BOX_DEFAULT_SPACING as na,ADW_WRAP_BOX_DEFAULT_WRAP_POLICY as ra,ADW_WRAP_BOX_JUSTIFY_MODES as ia,ADW_WRAP_BOX_NATURAL_LINE_LENGTH_UNSET as aa,ADW_WRAP_BOX_PACK_DIRECTIONS as oa,ADW_WRAP_POLICIES as sa,normalizeNaturalLineLength as ca,normalizeWrapBoxAlign as la,normalizeWrapBoxJustify as ua,normalizeWrapBoxLengthUnit as da,normalizeWrapBoxPackDirection as fa,normalizeWrapBoxSpacing as pa,normalizeWrapPolicy as ma,resolveWrapBoxChildOrder as ha,resolveWrapBoxLine as ga,wrapBoxLengthToPx as _a,wrapPolicyFlexShrink as va}from"./wrap-box.js";export{i as ADW_ABOUT_DIALOG_LABELS,S as ADW_ACCENT_BG_COLORS,C as ADW_ACCENT_COLOR_NAMES,w as ADW_ACCENT_FG_COLOR,X as ADW_BANNER_BUTTON_STYLES,Z as ADW_BANNER_BUTTON_STYLE_CLASSES,Q as ADW_BANNER_DEFAULTS,ce as ADW_BUTTON_CONTENT_DEFAULTS,ye as ADW_BUTTON_STYLE_ALIASES,be as ADW_BUTTON_STYLE_CLASSES,ct as ADW_CLAMP_DEFAULTS,lt as ADW_CLAMP_SIZE_CLASSES,gn as ADW_COMBO_NO_SELECTION,a as ADW_CREDITS_SECTION_TITLES,It as ADW_DATA_GRID_ROW_VARIANTS,T as ADW_DEFAULT_ACCENT_COLOR,tr as ADW_LENGTH_UNITS,o as ADW_LICENSES,s as ADW_LICENSE_ALIASES,c as ADW_LICENSE_DEFAULTS,l as ADW_LICENSE_WARRANTY_TEMPLATE,Fi as ADW_MAX_OVERSHOOT_DISTANCE,Ii as ADW_OVERSHOOT_SETTLE_MS,On as ADW_SIDEBAR_NO_SELECTION,Pn as ADW_SPINNER_CONTRACT_DISTANCE,Fn as ADW_SPINNER_CYCLES_PER_LOOP,In as ADW_SPINNER_CYCLE_LENGTH,Ln as ADW_SPINNER_EXTEND_DISTANCE,Rn as ADW_SPINNER_IDLE_DISTANCE,zn as ADW_SPINNER_MAX_ARC_LENGTH,ut as ADW_SPINNER_MAX_SIZE,Bn as ADW_SPINNER_MIN_ARC_LENGTH,dt as ADW_SPINNER_MIN_SIZE,Vn as ADW_SPINNER_N_CYCLES,Hn as ADW_SPINNER_OVERLAP_DISTANCE,Un as ADW_SPINNER_SPIN_DURATION_MS,Wn as ADW_SPINNER_START_ANGLE,Gn as ADW_SPINNER_STILL_PROGRESS,Kn as ADW_SPINNER_TRACK_OPACITY,ar as ADW_SWIPE_BORDER,Ce as ADW_SWIPE_DECELERATION_TOUCH,we as ADW_SWIPE_DECELERATION_TOUCHPAD,Te as ADW_SWIPE_DRAG_THRESHOLD,Ee as ADW_SWIPE_EPSILON,De as ADW_SWIPE_HISTORY_THRESHOLD_MS,Oe as ADW_SWIPE_PARABOLA_MULTIPLIER,ke as ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_H,Ae as ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_V,je as ADW_SWIPE_VELOCITY_CURVE_THRESHOLD,Me as ADW_SWIPE_VELOCITY_THRESHOLD_TOUCH,Ne as ADW_SWIPE_VELOCITY_THRESHOLD_TOUCHPAD,ft as ADW_TOOLBAR_BAR_CLASSES,pt as ADW_TOOLBAR_VIEW_CLASSES,mt as ADW_TOOLBAR_VIEW_DEFAULTS,u as ADW_TRANSLATOR_CREDITS_SENTINELS,Li as ADW_UNDERSHOOT_CLASSES,Ri as ADW_UNDERSHOOT_SIZE,Zi as ADW_WRAP_BOX_DEFAULT_ALIGN,Qi as ADW_WRAP_BOX_DEFAULT_JUSTIFY,$i as ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE,ea as ADW_WRAP_BOX_DEFAULT_LENGTH_UNIT,ta as ADW_WRAP_BOX_DEFAULT_PACK_DIRECTION,na as ADW_WRAP_BOX_DEFAULT_SPACING,ra as ADW_WRAP_BOX_DEFAULT_WRAP_POLICY,ia as ADW_WRAP_BOX_JUSTIFY_MODES,aa as ADW_WRAP_BOX_NATURAL_LINE_LENGTH_UNSET,oa as ADW_WRAP_BOX_PACK_DIRECTIONS,sa as ADW_WRAP_POLICIES,z as AVATAR_COLORS,B as AVATAR_COLOR_COUNT,N as ActionRowState,qt as AdwAlertResponses,ae as AdwBreakpoint,pn as AdwToast,mn as AdwToastQueue,Tn as BACK_BUTTON_FALLBACK_TOOLTIP,le as BUTTON_CONTENT_FALLBACK_ICON,ue as BUTTON_CONTENT_STYLE_CLASS,P as BUTTON_ROW_ACTIVATABLE,Jt as BottomSheetPresentation,F as ButtonRowState,Xt as CAPS_LOCK_ICON_NAME,Zt as CAPS_LOCK_TOOLTIP,Ue as CAROUSEL_SCROLL_TIMEOUT_MS,We as CAROUSEL_SETTLE_EPSILON,Ge as CarouselState,_n as ComboState,Lt as DATA_GRID_CELL_CLASS,Rt as DATA_GRID_ROW_CLASS,nr as DEFAULT_DPI,Ar as DEFAULT_DROPDOWN_TOOLTIP,Ot as DEFAULT_ICON_COLOR,kt as DEFAULT_ICON_COLOR_DARK,Hr as DEFAULT_INDICATOR_DESCRIPTION_STRINGS,or as DEFAULT_MAX_SIDEBAR_WIDTH,sr as DEFAULT_MIN_SIDEBAR_WIDTH,cr as DEFAULT_SIDEBAR_WIDTH_FRACTION,lr as DEFAULT_SIDEBAR_WIDTH_UNIT,hi as DEFAULT_TAB_AUTOHIDE,hn as DEFAULT_TOAST_TIMEOUT,Qt as EMPTY_ANIMATION_DURATION_MS,$t as ENTRY_ROW_APPLY_ICON_NAME,en as ENTRY_ROW_APPLY_TOOLTIP,tn as ENTRY_ROW_EDIT_ICON_NAME,nn as ENTRY_ROW_MAX_LENGTH_LIMIT,rn as ENTRY_ROW_TITLE_SPACING,an as EntryRowState,vn as ExpanderState,d as GTK_LICENSE,Ur as INLINE_VIEW_SWITCHER_DISPLAY_MODES,ur as INSTANT_SPLIT_VIEW_ANIMATOR,dr as NAVIGATION_SPLIT_VIEW_CRITICALS,fr as NavigationSplitViewState,En as NavigationViewState,pr as OverlaySplitViewState,on as PASSWORD_CONCEAL_ICON_NAME,sn as PASSWORD_CONCEAL_LABEL,cn as PASSWORD_REVEAL_ICON_NAME,ln as PASSWORD_REVEAL_LABEL,Gi as POPOVER_ITEM_RADIUS,Ki as POPOVER_MENU_PADDING,qi as POPOVER_PADDING,Ji as POPOVER_RADIUS,un as PasswordEntryRowState,Yi as PopoverState,nt as RadioGroupState,jr as SPLIT_BUTTON_DISABLED_OPACITY,kn as SidebarState,yn as SpinState,Mr as SplitButtonState,Pe as SwipeTracker,I as SwitchRowState,gi as TabViewState,bn as ToggleGroupState,wi as UNTITLED_PAGE_LABEL,Wr as VIEW_SWITCHER_BADGE_LIMIT,Gr as VIEW_SWITCHER_DRAG_SWITCH_DELAY,Kr as VIEW_SWITCHER_FALLBACK_ICON,qr as VIEW_SWITCHER_NO_SELECTION,Jr as VIEW_SWITCHER_POLICIES,Sn as ViewStackState,Yr as ViewSwitcherBarState,Xr as ViewSwitcherDragSwitch,Zr as ViewSwitcherState,L as WindowTitleState,f as aboutDialogVisibility,zi as accumulateOvershoot,An as adjustSidebarSelection,rr as adwLengthToPx,it as adwLerp,E as adwaitaAccent,D as adwaitaAccentBgColor,O as adwaitaAccentColor,At as adwaitaColorScheme,k as adwaitaStandaloneColor,V as avatarColor,H as avatarColorClass,U as avatarFontSize,W as avatarInitials,G as avatarMaxFontSize,K as avatarMode,$ as bannerButtonStyleClasses,ee as bannerButtonText,te as bannerButtonVisible,ne as bannerRenderState,Qr as buildInlineToggles,$r as buildViewSwitcherButtons,de as buttonContentEllipsize,fe as buttonContentIconExpands,pe as buttonContentIconIsEmpty,me as buttonContentIconName,he as buttonContentLabelText,ge as buttonContentLabelVisible,_e as buttonContentRenderState,ve as buttonContentStyleTargetIndex,xe as buttonStyleClass,Se as buttonStyleClasses,Ke as carouselClampPosition,qe as carouselClosestSnapPoint,Je as carouselNavigateTarget,Ye as carouselPageAllocation,Xe as carouselPageAtPosition,Ze as carouselRange,Qe as carouselReorderShift,$e as carouselSizesFromSnapPoints,et as carouselSnapPoints,tt as carouselWheelStep,ht as clampAllocate,gt as clampChildSize,dn as clampEntryText,jn as clampSidebarSelection,_t as clampSizeFromChild,vt as clampThresholds,Ti as collectSearchRows,Ei as countVisiblePages,Di as createSearchRowSubtitle,ei as createViewSwitcherPage,p as creditsSections,zt as dataGridCellText,Bt as dataGridColumnAlign,Vt as dataGridColumnClasses,Ht as dataGridRowInteractive,Ut as dataGridTrackTemplate,Wt as dataGridTracks,Oi as defaultCaseFolder,ki as derivePreferencesGroupHeader,R as deriveRowLabels,Dn as describeNavigationDiagnostic,at as easeInOutSine,ot as easeOutCubic,fn as entryTextLength,Ai as escapeMarkup,oe as evaluateBreakpointCondition,q as flattenAvatarGradient,Mn as flattenSidebarItems,J as gStrHash,e as gStrStrip,t as glibClamp,ti as inlineToggleTooltip,st as inverseLerp,A as isAdwAccentColorName,re as isBannerButtonStyle,_i as isDescendantOfPage,ni as isInlineViewSwitcherDisplayMode,m as isLicenseType,Bi as isScrolledFromEnd,Vi as isScrolledFromStart,mr as isSidebarAtVisualStart,Nr as isSplitButtonDirection,jt as isThemeIconColor,ri as isViewSwitcherButtonVisible,ii as isViewSwitcherPolicy,hr as layoutNavigationSplitView,gr as layoutOverlaySplitView,h as legalSectionVisible,g as licenseText,_ as licenseTypeForSpdxId,ji as makeComparable,_r as measureSplitViewHorizontal,Pr as menuButtonArrowIcon,Fr as menuButtonPopupDirection,yt as normalizeClampSize,xn as normalizeComboOptions,Gt as normalizeDataGridColumns,Kt as normalizeDataGridVariant,Cn as normalizeIconName,ir as normalizeLengthUnit,ca as normalizeNaturalLineLength,qn as normalizeSpinnerAngle,la as normalizeWrapBoxAlign,ua as normalizeWrapBoxJustify,da as normalizeWrapBoxLengthUnit,fa as normalizeWrapBoxPackDirection,pa as normalizeWrapBoxSpacing,ma as normalizeWrapPolicy,j as onAdwaitaAccentChanged,Mt as onAdwaitaColorSchemeChanged,Hi as overshootDistance,ai as pageIndexForToggle,Qn as parseAccelerator,ie as parseBannerButtonStyle,se as parseBreakpointCondition,v as parseCreditPerson,Ir as parseMenuEntries,$n as parseShortcutLabel,bt as parseToolbarStyle,Y as randomAvatarColorClass,Yt as resolveBottomSheetClose,rt as resolveCheckState,Lr as resolveDropdownTooltip,vr as resolveNaturalSidebarWidth,yr as resolveNavigationAction,br as resolveNavigationSidebarWidth,xr as resolveNavigationStack,Sr as resolveOverlaySidebarWidth,wn as resolvePageTitle,Xi as resolvePopoverKey,Cr as resolveSidebarBounds,xt as resolveSpinnerSize,wr as resolveSwipeArea,Tr as resolveSwipeRelease,Er as resolveSwipeSnapPoints,Dr as resolveSwipeStart,ha as resolveWrapBoxChildOrder,ga as resolveWrapBoxLine,Mi as rowMatchesQuery,Ui as scrollMaxValue,Wi as scrollUndershootClasses,Ni as searchPreferences,M as setAdwaitaAccent,Nt as setAdwaitaColorScheme,y as setLicense,b as setLicenseType,er as shortcutKeycaps,oi as shouldRevealViewSwitcherBar,Nn as sidebarHeaders,Jn as spinnerArc,Yn as spinnerArcEnd,Xn as spinnerArcStart,St as spinnerGeometry,Zn as spinnerProgressAt,Rr as splitButtonArrowIcon,zr as splitButtonPopupDirection,Br as splitButtonRootState,Vr as splitButtonStyleClasses,n as stringIsNotEmpty,Pi as stripMarkup,r as stripMnemonic,vi as successorAfterClose,Fe as swipeBounds,Or as swipeCancelProgress,Ie as swipeClosestPointIndex,Le as swipeEndProgress,Re as swipeNextPointIndex,ze as swipePreviousPointIndex,Be as swipeProjectedPointIndex,Ve as swipeSlope,He as swipeVelocityThreshold,yi as tabCloseVisible,bi as tabIconState,xi as tabTooltip,Si as tabTooltipIsMarkup,Ci as tabsRevealed,kr as tagsConflict,Pt as themeIconColor,Ft as toggleAdwaitaColorScheme,si as toggleIndexForPage,Ct as toolbarBarStyleClasses,wt as toolbarViewAllocate,Tt as toolbarViewClasses,Et as toolbarViewContentForSize,Dt as toolbarViewMeasure,x as translatorCreditsPeople,ci as viewSwitcherBadgeLabel,li as viewSwitcherButtonOrientation,ui as viewSwitcherIconName,di as viewSwitcherIndicatorDescription,fi as viewSwitcherLabel,pi as viewSwitcherPageFromStackPage,mi as viewSwitcherPagesFromStack,_a as wrapBoxLengthToPx,va as wrapPolicyFlexShrink};
|
|
1
|
+
import{gStrStrip as e,glibClamp as t,stringIsNotEmpty as n,stripMnemonic as r}from"./glib.js";import{ADW_ABOUT_DIALOG_LABELS as i,ADW_CREDITS_SECTION_TITLES as a,ADW_LICENSES as o,ADW_LICENSE_ALIASES as s,ADW_LICENSE_DEFAULTS as c,ADW_LICENSE_WARRANTY_TEMPLATE as l,ADW_TRANSLATOR_CREDITS_SENTINELS as u,GTK_LICENSE as d,aboutDialogVisibility as f,creditsSections as p,isLicenseType as m,legalSectionVisible as h,licenseText as g,licenseTypeForSpdxId as _,parseCreditPerson as v,setLicense as y,setLicenseType as b,translatorCreditsPeople as x}from"./about-dialog.js";import{ADW_ACCENT_BG_COLORS as S,ADW_ACCENT_COLOR_NAMES as C,ADW_ACCENT_FG_COLOR as w,ADW_DEFAULT_ACCENT_COLOR as T,adwaitaAccent as E,adwaitaAccentBgColor as D,adwaitaAccentColor as O,adwaitaStandaloneColor as k,isAdwAccentColorName as A,onAdwaitaAccentChanged as j,setAdwaitaAccent as M}from"./accent.js";import{ActionRowState as N,BUTTON_ROW_ACTIVATABLE as P,ButtonRowState as F,SwitchRowState as I,WindowTitleState as L,deriveRowLabels as R}from"./action-row.js";import{AVATAR_COLORS as z,AVATAR_COLOR_COUNT as B,avatarColor as V,avatarColorClass as H,avatarFontSize as U,avatarInitials as W,avatarMaxFontSize as G,avatarMode as K,flattenAvatarGradient as q,gStrHash as J,randomAvatarColorClass as Y}from"./avatar.js";import{ADW_BANNER_BUTTON_STYLES as X,ADW_BANNER_BUTTON_STYLE_CLASSES as Z,ADW_BANNER_DEFAULTS as Q,bannerButtonStyleClasses as $,bannerButtonText as ee,bannerButtonVisible as te,bannerRenderState as ne,isBannerButtonStyle as re,parseBannerButtonStyle as ie}from"./banner.js";import{AdwBreakpoint as ae,evaluateBreakpointCondition as oe,parseBreakpointCondition as se}from"./breakpoint.js";import{BreakpointBinState as ce}from"./breakpoint-bin.js";import{ADW_BUTTON_CONTENT_DEFAULTS as le,BUTTON_CONTENT_BOX_SPACING as ue,BUTTON_CONTENT_FALLBACK_ICON as de,BUTTON_CONTENT_STYLE_CLASS as fe,buttonContentEllipsize as pe,buttonContentIconExpands as me,buttonContentIconIsEmpty as he,buttonContentIconName as ge,buttonContentLabelText as _e,buttonContentLabelVisible as ve,buttonContentRenderState as ye,buttonContentStyleTargetIndex as be}from"./button-content.js";import{ADW_BUTTON_STYLE_ALIASES as xe,ADW_BUTTON_STYLE_CLASSES as Se,buttonStyleClass as Ce,buttonStyleClasses as we}from"./button.js";import{ADW_SWIPE_DECELERATION_TOUCH as Te,ADW_SWIPE_DECELERATION_TOUCHPAD as Ee,ADW_SWIPE_DRAG_THRESHOLD as De,ADW_SWIPE_EPSILON as Oe,ADW_SWIPE_HISTORY_THRESHOLD_MS as ke,ADW_SWIPE_PARABOLA_MULTIPLIER as Ae,ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_H as je,ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_V as Me,ADW_SWIPE_VELOCITY_CURVE_THRESHOLD as Ne,ADW_SWIPE_VELOCITY_THRESHOLD_TOUCH as Pe,ADW_SWIPE_VELOCITY_THRESHOLD_TOUCHPAD as Fe,SwipeTracker as Ie,swipeBounds as Le,swipeClosestPointIndex as Re,swipeEndProgress as ze,swipeNextPointIndex as Be,swipePreviousPointIndex as Ve,swipeProjectedPointIndex as He,swipeSlope as Ue,swipeVelocityThreshold as We}from"./swipe.js";import{CAROUSEL_SCROLL_TIMEOUT_MS as Ge,CAROUSEL_SETTLE_EPSILON as Ke,CarouselState as qe,carouselClampPosition as Je,carouselClosestSnapPoint as Ye,carouselNavigateTarget as Xe,carouselPageAllocation as Ze,carouselPageAtPosition as Qe,carouselRange as $e,carouselReorderShift as et,carouselSizesFromSnapPoints as tt,carouselSnapPoints as nt,carouselWheelStep as rt}from"./carousel.js";import{RadioGroupState as it,resolveCheckState as at}from"./checks.js";import{adwLerp as ot,easeInOutSine as st,easeOutCubic as ct,inverseLerp as lt}from"./easing.js";import{ADW_CLAMP_DEFAULTS as ut,ADW_CLAMP_SIZE_CLASSES as dt,ADW_SPINNER_MAX_SIZE as ft,ADW_SPINNER_MIN_SIZE as pt,ADW_TOOLBAR_BAR_CLASSES as mt,ADW_TOOLBAR_VIEW_CLASSES as ht,ADW_TOOLBAR_VIEW_DEFAULTS as gt,clampAllocate as _t,clampChildSize as vt,clampSizeFromChild as yt,clampThresholds as bt,normalizeClampSize as xt,parseToolbarStyle as St,resolveSpinnerSize as Ct,spinnerGeometry as wt,toolbarBarStyleClasses as Tt,toolbarViewAllocate as Et,toolbarViewClasses as Dt,toolbarViewContentForSize as Ot,toolbarViewMeasure as kt}from"./chrome.js";import{DEFAULT_ICON_COLOR as At,DEFAULT_ICON_COLOR_DARK as jt,adwaitaColorScheme as Mt,isThemeIconColor as Nt,onAdwaitaColorSchemeChanged as Pt,setAdwaitaColorScheme as Ft,themeIconColor as It,toggleAdwaitaColorScheme as Lt}from"./color-scheme.js";import{ADW_DATA_GRID_ROW_VARIANTS as Rt,DATA_GRID_CELL_CLASS as zt,DATA_GRID_ROW_CLASS as Bt,dataGridCellText as Vt,dataGridColumnAlign as Ht,dataGridColumnClasses as Ut,dataGridRowInteractive as Wt,dataGridTrackTemplate as Gt,dataGridTracks as Kt,normalizeDataGridColumns as qt,normalizeDataGridVariant as Jt}from"./data-grid.js";import{AdwAlertResponses as Yt,BottomSheetPresentation as Xt,resolveBottomSheetClose as Zt}from"./dialog.js";import{CAPS_LOCK_ICON_NAME as Qt,CAPS_LOCK_TOOLTIP as $t,EMPTY_ANIMATION_DURATION_MS as en,ENTRY_ROW_APPLY_ICON_NAME as tn,ENTRY_ROW_APPLY_TOOLTIP as nn,ENTRY_ROW_EDIT_ICON_NAME as rn,ENTRY_ROW_MAX_LENGTH_LIMIT as an,ENTRY_ROW_TITLE_SPACING as on,EntryRowState as sn,PASSWORD_CONCEAL_ICON_NAME as cn,PASSWORD_CONCEAL_LABEL as ln,PASSWORD_REVEAL_ICON_NAME as un,PASSWORD_REVEAL_LABEL as dn,PasswordEntryRowState as fn,clampEntryText as pn,entryTextLength as mn}from"./entry-row.js";import{HeaderBarState as hn,resolveHeaderBarTitle as gn}from"./header-bar.js";import{AdwToast as _n,AdwToastQueue as vn,DEFAULT_TOAST_TIMEOUT as yn}from"./toast.js";import{ADW_COMBO_NO_SELECTION as bn,ComboState as xn,ExpanderState as Sn,SpinState as Cn,ToggleGroupState as wn,normalizeComboOptions as Tn}from"./rows.js";import{ViewStackState as En,normalizeIconName as Dn,resolvePageTitle as On}from"./view-stack.js";import{BACK_BUTTON_FALLBACK_TOOLTIP as kn,NavigationViewState as An,describeNavigationDiagnostic as jn}from"./navigation-view.js";import{ADW_SIDEBAR_NO_SELECTION as Mn,SidebarState as Nn,adjustSidebarSelection as Pn,clampSidebarSelection as Fn,flattenSidebarItems as In,sidebarHeaders as Ln}from"./sidebar.js";import{ADW_SPINNER_CONTRACT_DISTANCE as Rn,ADW_SPINNER_CYCLES_PER_LOOP as zn,ADW_SPINNER_CYCLE_LENGTH as Bn,ADW_SPINNER_EXTEND_DISTANCE as Vn,ADW_SPINNER_IDLE_DISTANCE as Hn,ADW_SPINNER_MAX_ARC_LENGTH as Un,ADW_SPINNER_MIN_ARC_LENGTH as Wn,ADW_SPINNER_N_CYCLES as Gn,ADW_SPINNER_OVERLAP_DISTANCE as Kn,ADW_SPINNER_SPIN_DURATION_MS as qn,ADW_SPINNER_START_ANGLE as Jn,ADW_SPINNER_STILL_PROGRESS as Yn,ADW_SPINNER_TRACK_OPACITY as Xn,normalizeSpinnerAngle as Zn,spinnerArc as Qn,spinnerArcEnd as $n,spinnerArcStart as er,spinnerProgressAt as tr}from"./spinner.js";import{parseAccelerator as nr,parseShortcutLabel as rr,shortcutKeycaps as ir}from"./shortcut-label.js";import{ADW_LENGTH_UNITS as ar,DEFAULT_DPI as or,adwLengthToPx as sr,normalizeLengthUnit as cr}from"./length-unit.js";import{ADW_SWIPE_BORDER as lr,DEFAULT_MAX_SIDEBAR_WIDTH as ur,DEFAULT_MIN_SIDEBAR_WIDTH as dr,DEFAULT_SIDEBAR_WIDTH_FRACTION as fr,DEFAULT_SIDEBAR_WIDTH_UNIT as pr,INSTANT_SPLIT_VIEW_ANIMATOR as mr,NAVIGATION_SPLIT_VIEW_CRITICALS as hr,NavigationSplitViewState as gr,OverlaySplitViewState as _r,isSidebarAtVisualStart as vr,layoutNavigationSplitView as yr,layoutOverlaySplitView as br,measureSplitViewHorizontal as xr,resolveNaturalSidebarWidth as Sr,resolveNavigationAction as Cr,resolveNavigationSidebarWidth as wr,resolveNavigationStack as Tr,resolveOverlaySidebarWidth as Er,resolveSidebarBounds as Dr,resolveSwipeArea as Or,resolveSwipeRelease as kr,resolveSwipeSnapPoints as Ar,resolveSwipeStart as jr,swipeCancelProgress as Mr,tagsConflict as Nr}from"./split-view.js";import{DEFAULT_DROPDOWN_TOOLTIP as Pr,SPLIT_BUTTON_DISABLED_OPACITY as Fr,SplitButtonState as Ir,isSplitButtonDirection as Lr,menuButtonArrowIcon as Rr,menuButtonPopupDirection as zr,parseMenuEntries as Br,resolveDropdownTooltip as Vr,splitButtonArrowIcon as Hr,splitButtonPopupDirection as Ur,splitButtonRootState as Wr,splitButtonStyleClasses as Gr}from"./split-button.js";import{DEFAULT_INDICATOR_DESCRIPTION_STRINGS as Kr,INLINE_VIEW_SWITCHER_DISPLAY_MODES as qr,VIEW_SWITCHER_BADGE_LIMIT as Jr,VIEW_SWITCHER_DRAG_SWITCH_DELAY as Yr,VIEW_SWITCHER_FALLBACK_ICON as Xr,VIEW_SWITCHER_NO_SELECTION as Zr,VIEW_SWITCHER_POLICIES as Qr,ViewSwitcherBarState as $r,ViewSwitcherDragSwitch as ei,ViewSwitcherState as ti,buildInlineToggles as ni,buildViewSwitcherButtons as ri,createViewSwitcherPage as ii,inlineToggleTooltip as ai,isInlineViewSwitcherDisplayMode as oi,isViewSwitcherButtonVisible as si,isViewSwitcherPolicy as ci,pageIndexForToggle as li,shouldRevealViewSwitcherBar as ui,toggleIndexForPage as di,viewSwitcherBadgeLabel as fi,viewSwitcherButtonOrientation as pi,viewSwitcherIconName as mi,viewSwitcherIndicatorDescription as hi,viewSwitcherLabel as gi,viewSwitcherPageFromStackPage as _i,viewSwitcherPagesFromStack as vi}from"./view-switcher.js";import{DEFAULT_TAB_AUTOHIDE as yi,TabViewState as bi,isDescendantOfPage as xi,successorAfterClose as Si,tabCloseVisible as Ci,tabIconState as wi,tabTooltip as Ti,tabTooltipIsMarkup as Ei,tabsRevealed as Di}from"./tab-view.js";import{UNTITLED_PAGE_LABEL as Oi,collectSearchRows as ki,countVisiblePages as Ai,createSearchRowSubtitle as ji,defaultCaseFolder as Mi,derivePreferencesGroupHeader as Ni,escapeMarkup as Pi,makeComparable as Fi,rowMatchesQuery as Ii,searchPreferences as Li,stripMarkup as Ri}from"./preferences.js";import{ADW_MAX_OVERSHOOT_DISTANCE as zi,ADW_OVERSHOOT_SETTLE_MS as Bi,ADW_UNDERSHOOT_CLASSES as Vi,ADW_UNDERSHOOT_SIZE as Hi,accumulateOvershoot as Ui,isScrolledFromEnd as Wi,isScrolledFromStart as Gi,overshootDistance as Ki,scrollMaxValue as qi,scrollUndershootClasses as Ji}from"./scrolling.js";import{POPOVER_ITEM_RADIUS as Yi,POPOVER_MENU_PADDING as Xi,POPOVER_PADDING as Zi,POPOVER_RADIUS as Qi,PopoverState as $i,resolvePopoverKey as ea}from"./popover.js";import{ADW_WRAP_BOX_DEFAULT_ALIGN as ta,ADW_WRAP_BOX_DEFAULT_JUSTIFY as na,ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE as ra,ADW_WRAP_BOX_DEFAULT_LENGTH_UNIT as ia,ADW_WRAP_BOX_DEFAULT_PACK_DIRECTION as aa,ADW_WRAP_BOX_DEFAULT_SPACING as oa,ADW_WRAP_BOX_DEFAULT_WRAP_POLICY as sa,ADW_WRAP_BOX_JUSTIFY_MODES as ca,ADW_WRAP_BOX_NATURAL_LINE_LENGTH_UNSET as la,ADW_WRAP_BOX_PACK_DIRECTIONS as ua,ADW_WRAP_POLICIES as da,normalizeNaturalLineLength as fa,normalizeWrapBoxAlign as pa,normalizeWrapBoxJustify as ma,normalizeWrapBoxLengthUnit as ha,normalizeWrapBoxPackDirection as ga,normalizeWrapBoxSpacing as _a,normalizeWrapPolicy as va,resolveWrapBoxChildOrder as ya,resolveWrapBoxLine as ba,wrapBoxChildFlex as xa,wrapBoxFlexStyle as Sa,wrapBoxLengthToPx as Ca,wrapPolicyFlexShrink as wa}from"./wrap-box.js";export{i as ADW_ABOUT_DIALOG_LABELS,S as ADW_ACCENT_BG_COLORS,C as ADW_ACCENT_COLOR_NAMES,w as ADW_ACCENT_FG_COLOR,X as ADW_BANNER_BUTTON_STYLES,Z as ADW_BANNER_BUTTON_STYLE_CLASSES,Q as ADW_BANNER_DEFAULTS,le as ADW_BUTTON_CONTENT_DEFAULTS,xe as ADW_BUTTON_STYLE_ALIASES,Se as ADW_BUTTON_STYLE_CLASSES,ut as ADW_CLAMP_DEFAULTS,dt as ADW_CLAMP_SIZE_CLASSES,bn as ADW_COMBO_NO_SELECTION,a as ADW_CREDITS_SECTION_TITLES,Rt as ADW_DATA_GRID_ROW_VARIANTS,T as ADW_DEFAULT_ACCENT_COLOR,ar as ADW_LENGTH_UNITS,o as ADW_LICENSES,s as ADW_LICENSE_ALIASES,c as ADW_LICENSE_DEFAULTS,l as ADW_LICENSE_WARRANTY_TEMPLATE,zi as ADW_MAX_OVERSHOOT_DISTANCE,Bi as ADW_OVERSHOOT_SETTLE_MS,Mn as ADW_SIDEBAR_NO_SELECTION,Rn as ADW_SPINNER_CONTRACT_DISTANCE,zn as ADW_SPINNER_CYCLES_PER_LOOP,Bn as ADW_SPINNER_CYCLE_LENGTH,Vn as ADW_SPINNER_EXTEND_DISTANCE,Hn as ADW_SPINNER_IDLE_DISTANCE,Un as ADW_SPINNER_MAX_ARC_LENGTH,ft as ADW_SPINNER_MAX_SIZE,Wn as ADW_SPINNER_MIN_ARC_LENGTH,pt as ADW_SPINNER_MIN_SIZE,Gn as ADW_SPINNER_N_CYCLES,Kn as ADW_SPINNER_OVERLAP_DISTANCE,qn as ADW_SPINNER_SPIN_DURATION_MS,Jn as ADW_SPINNER_START_ANGLE,Yn as ADW_SPINNER_STILL_PROGRESS,Xn as ADW_SPINNER_TRACK_OPACITY,lr as ADW_SWIPE_BORDER,Te as ADW_SWIPE_DECELERATION_TOUCH,Ee as ADW_SWIPE_DECELERATION_TOUCHPAD,De as ADW_SWIPE_DRAG_THRESHOLD,Oe as ADW_SWIPE_EPSILON,ke as ADW_SWIPE_HISTORY_THRESHOLD_MS,Ae as ADW_SWIPE_PARABOLA_MULTIPLIER,je as ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_H,Me as ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_V,Ne as ADW_SWIPE_VELOCITY_CURVE_THRESHOLD,Pe as ADW_SWIPE_VELOCITY_THRESHOLD_TOUCH,Fe as ADW_SWIPE_VELOCITY_THRESHOLD_TOUCHPAD,mt as ADW_TOOLBAR_BAR_CLASSES,ht as ADW_TOOLBAR_VIEW_CLASSES,gt as ADW_TOOLBAR_VIEW_DEFAULTS,u as ADW_TRANSLATOR_CREDITS_SENTINELS,Vi as ADW_UNDERSHOOT_CLASSES,Hi as ADW_UNDERSHOOT_SIZE,ta as ADW_WRAP_BOX_DEFAULT_ALIGN,na as ADW_WRAP_BOX_DEFAULT_JUSTIFY,ra as ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE,ia as ADW_WRAP_BOX_DEFAULT_LENGTH_UNIT,aa as ADW_WRAP_BOX_DEFAULT_PACK_DIRECTION,oa as ADW_WRAP_BOX_DEFAULT_SPACING,sa as ADW_WRAP_BOX_DEFAULT_WRAP_POLICY,ca as ADW_WRAP_BOX_JUSTIFY_MODES,la as ADW_WRAP_BOX_NATURAL_LINE_LENGTH_UNSET,ua as ADW_WRAP_BOX_PACK_DIRECTIONS,da as ADW_WRAP_POLICIES,z as AVATAR_COLORS,B as AVATAR_COLOR_COUNT,N as ActionRowState,Yt as AdwAlertResponses,ae as AdwBreakpoint,_n as AdwToast,vn as AdwToastQueue,kn as BACK_BUTTON_FALLBACK_TOOLTIP,ue as BUTTON_CONTENT_BOX_SPACING,de as BUTTON_CONTENT_FALLBACK_ICON,fe as BUTTON_CONTENT_STYLE_CLASS,P as BUTTON_ROW_ACTIVATABLE,Xt as BottomSheetPresentation,ce as BreakpointBinState,F as ButtonRowState,Qt as CAPS_LOCK_ICON_NAME,$t as CAPS_LOCK_TOOLTIP,Ge as CAROUSEL_SCROLL_TIMEOUT_MS,Ke as CAROUSEL_SETTLE_EPSILON,qe as CarouselState,xn as ComboState,zt as DATA_GRID_CELL_CLASS,Bt as DATA_GRID_ROW_CLASS,or as DEFAULT_DPI,Pr as DEFAULT_DROPDOWN_TOOLTIP,At as DEFAULT_ICON_COLOR,jt as DEFAULT_ICON_COLOR_DARK,Kr as DEFAULT_INDICATOR_DESCRIPTION_STRINGS,ur as DEFAULT_MAX_SIDEBAR_WIDTH,dr as DEFAULT_MIN_SIDEBAR_WIDTH,fr as DEFAULT_SIDEBAR_WIDTH_FRACTION,pr as DEFAULT_SIDEBAR_WIDTH_UNIT,yi as DEFAULT_TAB_AUTOHIDE,yn as DEFAULT_TOAST_TIMEOUT,en as EMPTY_ANIMATION_DURATION_MS,tn as ENTRY_ROW_APPLY_ICON_NAME,nn as ENTRY_ROW_APPLY_TOOLTIP,rn as ENTRY_ROW_EDIT_ICON_NAME,an as ENTRY_ROW_MAX_LENGTH_LIMIT,on as ENTRY_ROW_TITLE_SPACING,sn as EntryRowState,Sn as ExpanderState,d as GTK_LICENSE,hn as HeaderBarState,qr as INLINE_VIEW_SWITCHER_DISPLAY_MODES,mr as INSTANT_SPLIT_VIEW_ANIMATOR,hr as NAVIGATION_SPLIT_VIEW_CRITICALS,gr as NavigationSplitViewState,An as NavigationViewState,_r as OverlaySplitViewState,cn as PASSWORD_CONCEAL_ICON_NAME,ln as PASSWORD_CONCEAL_LABEL,un as PASSWORD_REVEAL_ICON_NAME,dn as PASSWORD_REVEAL_LABEL,Yi as POPOVER_ITEM_RADIUS,Xi as POPOVER_MENU_PADDING,Zi as POPOVER_PADDING,Qi as POPOVER_RADIUS,fn as PasswordEntryRowState,$i as PopoverState,it as RadioGroupState,Fr as SPLIT_BUTTON_DISABLED_OPACITY,Nn as SidebarState,Cn as SpinState,Ir as SplitButtonState,Ie as SwipeTracker,I as SwitchRowState,bi as TabViewState,wn as ToggleGroupState,Oi as UNTITLED_PAGE_LABEL,Jr as VIEW_SWITCHER_BADGE_LIMIT,Yr as VIEW_SWITCHER_DRAG_SWITCH_DELAY,Xr as VIEW_SWITCHER_FALLBACK_ICON,Zr as VIEW_SWITCHER_NO_SELECTION,Qr as VIEW_SWITCHER_POLICIES,En as ViewStackState,$r as ViewSwitcherBarState,ei as ViewSwitcherDragSwitch,ti as ViewSwitcherState,L as WindowTitleState,f as aboutDialogVisibility,Ui as accumulateOvershoot,Pn as adjustSidebarSelection,sr as adwLengthToPx,ot as adwLerp,E as adwaitaAccent,D as adwaitaAccentBgColor,O as adwaitaAccentColor,Mt as adwaitaColorScheme,k as adwaitaStandaloneColor,V as avatarColor,H as avatarColorClass,U as avatarFontSize,W as avatarInitials,G as avatarMaxFontSize,K as avatarMode,$ as bannerButtonStyleClasses,ee as bannerButtonText,te as bannerButtonVisible,ne as bannerRenderState,ni as buildInlineToggles,ri as buildViewSwitcherButtons,pe as buttonContentEllipsize,me as buttonContentIconExpands,he as buttonContentIconIsEmpty,ge as buttonContentIconName,_e as buttonContentLabelText,ve as buttonContentLabelVisible,ye as buttonContentRenderState,be as buttonContentStyleTargetIndex,Ce as buttonStyleClass,we as buttonStyleClasses,Je as carouselClampPosition,Ye as carouselClosestSnapPoint,Xe as carouselNavigateTarget,Ze as carouselPageAllocation,Qe as carouselPageAtPosition,$e as carouselRange,et as carouselReorderShift,tt as carouselSizesFromSnapPoints,nt as carouselSnapPoints,rt as carouselWheelStep,_t as clampAllocate,vt as clampChildSize,pn as clampEntryText,Fn as clampSidebarSelection,yt as clampSizeFromChild,bt as clampThresholds,ki as collectSearchRows,Ai as countVisiblePages,ji as createSearchRowSubtitle,ii as createViewSwitcherPage,p as creditsSections,Vt as dataGridCellText,Ht as dataGridColumnAlign,Ut as dataGridColumnClasses,Wt as dataGridRowInteractive,Gt as dataGridTrackTemplate,Kt as dataGridTracks,Mi as defaultCaseFolder,Ni as derivePreferencesGroupHeader,R as deriveRowLabels,jn as describeNavigationDiagnostic,st as easeInOutSine,ct as easeOutCubic,mn as entryTextLength,Pi as escapeMarkup,oe as evaluateBreakpointCondition,q as flattenAvatarGradient,In as flattenSidebarItems,J as gStrHash,e as gStrStrip,t as glibClamp,ai as inlineToggleTooltip,lt as inverseLerp,A as isAdwAccentColorName,re as isBannerButtonStyle,xi as isDescendantOfPage,oi as isInlineViewSwitcherDisplayMode,m as isLicenseType,Wi as isScrolledFromEnd,Gi as isScrolledFromStart,vr as isSidebarAtVisualStart,Lr as isSplitButtonDirection,Nt as isThemeIconColor,si as isViewSwitcherButtonVisible,ci as isViewSwitcherPolicy,yr as layoutNavigationSplitView,br as layoutOverlaySplitView,h as legalSectionVisible,g as licenseText,_ as licenseTypeForSpdxId,Fi as makeComparable,xr as measureSplitViewHorizontal,Rr as menuButtonArrowIcon,zr as menuButtonPopupDirection,xt as normalizeClampSize,Tn as normalizeComboOptions,qt as normalizeDataGridColumns,Jt as normalizeDataGridVariant,Dn as normalizeIconName,cr as normalizeLengthUnit,fa as normalizeNaturalLineLength,Zn as normalizeSpinnerAngle,pa as normalizeWrapBoxAlign,ma as normalizeWrapBoxJustify,ha as normalizeWrapBoxLengthUnit,ga as normalizeWrapBoxPackDirection,_a as normalizeWrapBoxSpacing,va as normalizeWrapPolicy,j as onAdwaitaAccentChanged,Pt as onAdwaitaColorSchemeChanged,Ki as overshootDistance,li as pageIndexForToggle,nr as parseAccelerator,ie as parseBannerButtonStyle,se as parseBreakpointCondition,v as parseCreditPerson,Br as parseMenuEntries,rr as parseShortcutLabel,St as parseToolbarStyle,Y as randomAvatarColorClass,Zt as resolveBottomSheetClose,at as resolveCheckState,Vr as resolveDropdownTooltip,gn as resolveHeaderBarTitle,Sr as resolveNaturalSidebarWidth,Cr as resolveNavigationAction,wr as resolveNavigationSidebarWidth,Tr as resolveNavigationStack,Er as resolveOverlaySidebarWidth,On as resolvePageTitle,ea as resolvePopoverKey,Dr as resolveSidebarBounds,Ct as resolveSpinnerSize,Or as resolveSwipeArea,kr as resolveSwipeRelease,Ar as resolveSwipeSnapPoints,jr as resolveSwipeStart,ya as resolveWrapBoxChildOrder,ba as resolveWrapBoxLine,Ii as rowMatchesQuery,qi as scrollMaxValue,Ji as scrollUndershootClasses,Li as searchPreferences,M as setAdwaitaAccent,Ft as setAdwaitaColorScheme,y as setLicense,b as setLicenseType,ir as shortcutKeycaps,ui as shouldRevealViewSwitcherBar,Ln as sidebarHeaders,Qn as spinnerArc,$n as spinnerArcEnd,er as spinnerArcStart,wt as spinnerGeometry,tr as spinnerProgressAt,Hr as splitButtonArrowIcon,Ur as splitButtonPopupDirection,Wr as splitButtonRootState,Gr as splitButtonStyleClasses,n as stringIsNotEmpty,Ri as stripMarkup,r as stripMnemonic,Si as successorAfterClose,Le as swipeBounds,Mr as swipeCancelProgress,Re as swipeClosestPointIndex,ze as swipeEndProgress,Be as swipeNextPointIndex,Ve as swipePreviousPointIndex,He as swipeProjectedPointIndex,Ue as swipeSlope,We as swipeVelocityThreshold,Ci as tabCloseVisible,wi as tabIconState,Ti as tabTooltip,Ei as tabTooltipIsMarkup,Di as tabsRevealed,Nr as tagsConflict,It as themeIconColor,Lt as toggleAdwaitaColorScheme,di as toggleIndexForPage,Tt as toolbarBarStyleClasses,Et as toolbarViewAllocate,Dt as toolbarViewClasses,Ot as toolbarViewContentForSize,kt as toolbarViewMeasure,x as translatorCreditsPeople,fi as viewSwitcherBadgeLabel,pi as viewSwitcherButtonOrientation,mi as viewSwitcherIconName,hi as viewSwitcherIndicatorDescription,gi as viewSwitcherLabel,_i as viewSwitcherPageFromStackPage,vi as viewSwitcherPagesFromStack,xa as wrapBoxChildFlex,Sa as wrapBoxFlexStyle,Ca as wrapBoxLengthToPx,wa as wrapPolicyFlexShrink};
|
|
@@ -0,0 +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`},"--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', 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', monospace`},"--monospace-font-size":{light:`var(--font-size-base)`}},t=[`--active-toggle-fg-color`],n=[`--border-color`,`--document-font-family`,`--document-font-size`,`--error-color`,`--monospace-font-size`,`--success-color`,`--warning-color`],r=68;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{ADWAITA_DARK_ONLY_TOKENS as e,ADWAITA_TOKENS as t,ADWAITA_TOKEN_COUNT as n,ADWAITA_UNRESOLVED_TOKENS as r}from"./tokens.generated.js";export{e as ADWAITA_DARK_ONLY_TOKENS,t as ADWAITA_TOKENS,n as ADWAITA_TOKEN_COUNT,r as ADWAITA_UNRESOLVED_TOKENS};
|
package/lib/esm/wrap-box.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./_virtual/_rolldown/runtime.js";import{adwLengthToPx as e,normalizeLengthUnit as t}from"./length-unit.js";const n=[`none`,`fill`,`spread`],r=[`minimum`,`natural`],i=0,a=0,o=`none`,s=!1,c=`natural`,l=-1,u=`px`,d=`start-to-end`,f=[`start-to-end`,`end-to-start`];function normalizeWrapBoxSpacing(e){let t=typeof e==`number`?e:Number.parseFloat(String(e??``));return!Number.isFinite(t)||t<0?0:t}function normalizeWrapBoxAlign(e){let t=typeof e==`number`?e:Number.parseFloat(String(e??``));return Number.isFinite(t)?Math.min(1,Math.max(0,t)):0}function normalizeWrapBoxJustify(e){return n.includes(e)?e:o}function normalizeWrapPolicy(e){return r.includes(e)?e:c}function normalizeNaturalLineLength(e){let t=typeof e==`number`?e:Number.parseFloat(String(e??``));return!Number.isFinite(t)||t<0?-1:Math.trunc(t)}function normalizeWrapBoxLengthUnit(e){return t(e,`px`)}function normalizeWrapBoxPackDirection(e){return f.includes(e)?e:d}function wrapBoxLengthToPx(t,n,r=96){return t<0?-1:e(n,t,r)}function resolveWrapBoxLine(e){let t=e.lastLine&&!e.justifyLastLine?`none`:e.justify;if(t===`none`)return{justify:`none`,growChildren:!1,growGaps:!1,align:e.align};let n=t===`spread`&&e.childrenInLine>1;return{justify:t,growChildren:!n,growGaps:n,align:0}}function wrapPolicyFlexShrink(e){return+(e===`minimum`)}function resolveWrapBoxChildOrder(e){let{children:t,child:n,op:r}=e,i=e.sibling??null;if(i!==null&&i===n)return null;let a=t.indexOf(n);if(r===`insert-after`&&a!==-1||r===`reorder-after`&&a===-1)return null;let o=a===-1?[...t]:t.filter((e,t)=>t!==a);if(i===null)return[n,...o];let s=o.indexOf(i);return s===-1?null:[...o.slice(0,s+1),n,...o.slice(s+1)]}export{a as ADW_WRAP_BOX_DEFAULT_ALIGN,o as ADW_WRAP_BOX_DEFAULT_JUSTIFY,s as ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE,u as ADW_WRAP_BOX_DEFAULT_LENGTH_UNIT,d as ADW_WRAP_BOX_DEFAULT_PACK_DIRECTION,i as ADW_WRAP_BOX_DEFAULT_SPACING,c as ADW_WRAP_BOX_DEFAULT_WRAP_POLICY,n as ADW_WRAP_BOX_JUSTIFY_MODES,l as ADW_WRAP_BOX_NATURAL_LINE_LENGTH_UNSET,f as ADW_WRAP_BOX_PACK_DIRECTIONS,r as ADW_WRAP_POLICIES,normalizeNaturalLineLength,normalizeWrapBoxAlign,normalizeWrapBoxJustify,normalizeWrapBoxLengthUnit,normalizeWrapBoxPackDirection,normalizeWrapBoxSpacing,normalizeWrapPolicy,resolveWrapBoxChildOrder,resolveWrapBoxLine,wrapBoxLengthToPx,wrapPolicyFlexShrink};
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";import{adwLengthToPx as e,normalizeLengthUnit as t}from"./length-unit.js";const n=[`none`,`fill`,`spread`],r=[`minimum`,`natural`],i=0,a=0,o=`none`,s=!1,c=`natural`,l=-1,u=`px`,d=`start-to-end`,f=[`start-to-end`,`end-to-start`];function normalizeWrapBoxSpacing(e){let t=typeof e==`number`?e:Number.parseFloat(String(e??``));return!Number.isFinite(t)||t<0?0:t}function normalizeWrapBoxAlign(e){let t=typeof e==`number`?e:Number.parseFloat(String(e??``));return Number.isFinite(t)?Math.min(1,Math.max(0,t)):0}function normalizeWrapBoxJustify(e){return n.includes(e)?e:o}function normalizeWrapPolicy(e){return r.includes(e)?e:c}function normalizeNaturalLineLength(e){let t=typeof e==`number`?e:Number.parseFloat(String(e??``));return!Number.isFinite(t)||t<0?-1:Math.trunc(t)}function normalizeWrapBoxLengthUnit(e){return t(e,`px`)}function normalizeWrapBoxPackDirection(e){return f.includes(e)?e:d}function wrapBoxLengthToPx(t,n,r=96){return t<0?-1:e(n,t,r)}function resolveWrapBoxLine(e){let t=e.lastLine&&!e.justifyLastLine?`none`:e.justify;if(t===`none`)return{justify:`none`,growChildren:!1,growGaps:!1,align:e.align};let n=t===`spread`&&e.childrenInLine>1;return{justify:t,growChildren:!n,growGaps:n,align:0}}function wrapPolicyFlexShrink(e){return+(e===`minimum`)}function alignToJustifyContent(e){return e<.25?`flex-start`:e<.75?`center`:`flex-end`}function wrapBoxFlexStyle(e){let t=e.orientation===`vertical`?`column`:`row`,n=resolveWrapBoxLine({justify:e.justify,justifyLastLine:e.justifyLastLine,align:e.align,lastLine:!1,childrenInLine:2});return{flexDirection:e.packDirection===`end-to-start`?`${t}-reverse`:t,flexWrap:e.wrapReverse?`wrap-reverse`:`wrap`,justifyContent:n.growGaps?`space-between`:alignToJustifyContent(n.align),alignContent:e.lineHomogeneous?`stretch`:`flex-start`,childFlexGrow:+!!n.growChildren,childFlexShrink:wrapPolicyFlexShrink(e.wrapPolicy)}}function wrapBoxChildFlex(e,t){let n=t===1;return{flexGrow:+!!resolveWrapBoxLine({justify:e.justify,justifyLastLine:e.justifyLastLine,align:e.align,lastLine:n,childrenInLine:n?1:2}).growChildren,flexShrink:wrapPolicyFlexShrink(e.wrapPolicy)}}function resolveWrapBoxChildOrder(e){let{children:t,child:n,op:r}=e,i=e.sibling??null;if(i!==null&&i===n)return null;let a=t.indexOf(n);if(r===`insert-after`&&a!==-1||r===`reorder-after`&&a===-1)return null;let o=a===-1?[...t]:t.filter((e,t)=>t!==a);if(i===null)return[n,...o];let s=o.indexOf(i);return s===-1?null:[...o.slice(0,s+1),n,...o.slice(s+1)]}export{a as ADW_WRAP_BOX_DEFAULT_ALIGN,o as ADW_WRAP_BOX_DEFAULT_JUSTIFY,s as ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE,u as ADW_WRAP_BOX_DEFAULT_LENGTH_UNIT,d as ADW_WRAP_BOX_DEFAULT_PACK_DIRECTION,i as ADW_WRAP_BOX_DEFAULT_SPACING,c as ADW_WRAP_BOX_DEFAULT_WRAP_POLICY,n as ADW_WRAP_BOX_JUSTIFY_MODES,l as ADW_WRAP_BOX_NATURAL_LINE_LENGTH_UNSET,f as ADW_WRAP_BOX_PACK_DIRECTIONS,r as ADW_WRAP_POLICIES,normalizeNaturalLineLength,normalizeWrapBoxAlign,normalizeWrapBoxJustify,normalizeWrapBoxLengthUnit,normalizeWrapBoxPackDirection,normalizeWrapBoxSpacing,normalizeWrapPolicy,resolveWrapBoxChildOrder,resolveWrapBoxLine,wrapBoxChildFlex,wrapBoxFlexStyle,wrapBoxLengthToPx,wrapPolicyFlexShrink};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import type { BreakpointSize } from './breakpoint.js';
|
|
2
|
+
/**
|
|
3
|
+
* One property a breakpoint writes while it is applied.
|
|
4
|
+
*
|
|
5
|
+
* `originalValue` is supplied by the caller rather than read here, and it is read ONCE,
|
|
6
|
+
* when the setter is registered. That mirrors `adw_breakpoint_add_setter`, and it is
|
|
7
|
+
* also the only thing a headless module can do: it holds no widgets.
|
|
8
|
+
*/
|
|
9
|
+
export interface BreakpointSetter<O> {
|
|
10
|
+
readonly object: O;
|
|
11
|
+
readonly property: string;
|
|
12
|
+
readonly value: unknown;
|
|
13
|
+
readonly originalValue: unknown;
|
|
14
|
+
}
|
|
15
|
+
/** A condition plus the properties it writes. */
|
|
16
|
+
export interface BreakpointDefinition<O> {
|
|
17
|
+
/** A Libadwaita condition string, e.g. `'max-width: 720sp'`. */
|
|
18
|
+
readonly condition: string;
|
|
19
|
+
readonly setters: readonly BreakpointSetter<O>[];
|
|
20
|
+
}
|
|
21
|
+
/** One property write a renderer performs. */
|
|
22
|
+
export interface BreakpointWrite<O> {
|
|
23
|
+
readonly object: O;
|
|
24
|
+
readonly property: string;
|
|
25
|
+
readonly value: unknown;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* What changes when the applied breakpoint changes.
|
|
29
|
+
*
|
|
30
|
+
* `Adw.Breakpoint`'s apply/unapply signals have no field here, because the bin holds
|
|
31
|
+
* condition strings and setter DATA — never an `AdwBreakpoint` (`./breakpoint.ts`), whose
|
|
32
|
+
* callbacks it therefore cannot run. {@link from} and {@link to} are how a renderer that
|
|
33
|
+
* has callbacks gets the ORDER right, and rule 4 above is what that order is: the
|
|
34
|
+
* outgoing breakpoint's unapply, then {@link writes}, then the incoming one's apply.
|
|
35
|
+
*/
|
|
36
|
+
export interface BreakpointTransition<O> {
|
|
37
|
+
/** Index of the breakpoint being left, or null when none was applied. */
|
|
38
|
+
readonly from: number | null;
|
|
39
|
+
/** Index of the breakpoint being entered, or null when none matches. */
|
|
40
|
+
readonly to: number | null;
|
|
41
|
+
/**
|
|
42
|
+
* The writes to perform, in order: restores first, then the incoming values.
|
|
43
|
+
*
|
|
44
|
+
* A property both breakpoints set appears ONCE, carrying the incoming value. It is
|
|
45
|
+
* not restored and then re-set, which would take the widget through a state neither
|
|
46
|
+
* breakpoint describes.
|
|
47
|
+
*/
|
|
48
|
+
readonly writes: readonly BreakpointWrite<O>[];
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* `Adw.BreakpointBin`'s pick-one-and-transition behaviour, over opaque objects.
|
|
52
|
+
*
|
|
53
|
+
* Generic in the object type because the core holds no widgets: `O` is whatever the
|
|
54
|
+
* renderer's handle is, and this class only ever compares them by identity.
|
|
55
|
+
*/
|
|
56
|
+
export declare class BreakpointBinState<O> {
|
|
57
|
+
private readonly _breakpoints;
|
|
58
|
+
private _current;
|
|
59
|
+
private _hasChild;
|
|
60
|
+
/**
|
|
61
|
+
* `adw_breakpoint_bin_add_breakpoint`. Returns the index, which is what
|
|
62
|
+
* {@link BreakpointTransition} reports.
|
|
63
|
+
*
|
|
64
|
+
* Order is meaningful: a later breakpoint beats an earlier one when both match.
|
|
65
|
+
*/
|
|
66
|
+
add(definition: BreakpointDefinition<O>): number;
|
|
67
|
+
/**
|
|
68
|
+
* Whether the bin has a child.
|
|
69
|
+
*
|
|
70
|
+
* `adw_breakpoint_bin_size_allocate` returns before picking anything when there is
|
|
71
|
+
* no child (adw-breakpoint-bin.c:427), so a childless bin keeps whatever breakpoint
|
|
72
|
+
* it had rather than dropping to none. Modelled rather than left to the renderer
|
|
73
|
+
* because "the applied breakpoint did not change while the child was away" is a
|
|
74
|
+
* behaviour, and the alternative is each renderer rediscovering it.
|
|
75
|
+
*/
|
|
76
|
+
setHasChild(hasChild: boolean): void;
|
|
77
|
+
/** The index of the applied breakpoint, or null when none is. */
|
|
78
|
+
get current(): number | null;
|
|
79
|
+
/** How many breakpoints have been added. */
|
|
80
|
+
get length(): number;
|
|
81
|
+
/**
|
|
82
|
+
* Re-pick against `size` and return the writes, or `null` when nothing changed.
|
|
83
|
+
*
|
|
84
|
+
* Null rather than an empty transition, so a renderer driving this from every
|
|
85
|
+
* allocation can skip the whole path on the overwhelmingly common no-change case
|
|
86
|
+
* without inspecting an object.
|
|
87
|
+
*/
|
|
88
|
+
evaluate(size: BreakpointSize): BreakpointTransition<O> | null;
|
|
89
|
+
/**
|
|
90
|
+
* Take over the applied breakpoint from the bin this one REPLACES, or `null` to start
|
|
91
|
+
* with none applied.
|
|
92
|
+
*
|
|
93
|
+
* No `Adw.BreakpointBin` counterpart, because a GTK bin is never rebuilt — the widget
|
|
94
|
+
* outlives every resize. A browser element rebinds on every `connectedCallback`, and
|
|
95
|
+
* {@link evaluate} fires on a CHANGE only, so a fresh bin that starts at "none
|
|
96
|
+
* applied" reads the size that LEFT the old breakpoint's range as no change at all,
|
|
97
|
+
* produces no writes, and leaves the widget holding what the old bin set. This is the
|
|
98
|
+
* seed `AdwBreakpoint`'s `applied` parameter carries (`./breakpoint.ts`), one level
|
|
99
|
+
* up, and it was paid for once already: a `<adw-navigation-split-view>` driven
|
|
100
|
+
* 800px → 500px → 900px stayed collapsed at 900px, and only a narrow → wide cycle IN
|
|
101
|
+
* PLACE healed it.
|
|
102
|
+
*
|
|
103
|
+
* Call it after {@link add}, and read each setter's `originalValue` BEFORE the old bin
|
|
104
|
+
* applied anything: the restore this enables writes the NEW definitions' originals, so
|
|
105
|
+
* an original read off a widget the outgoing breakpoint has already changed restores
|
|
106
|
+
* it to the applied value, which is no restore at all.
|
|
107
|
+
*
|
|
108
|
+
* Throws on an index this bin does not have rather than quietly applying nothing — a
|
|
109
|
+
* stale index means the caller's breakpoint list moved, and the restore it would skip
|
|
110
|
+
* is the whole bug this method exists to prevent.
|
|
111
|
+
*/
|
|
112
|
+
inherit(current: number | null): void;
|
|
113
|
+
}
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
/** The style class `AdwButtonContent` stamps on its parent button, removed on unroot. */
|
|
2
2
|
export declare const BUTTON_CONTENT_STYLE_CLASS = "image-text-button";
|
|
3
|
+
/**
|
|
4
|
+
* The gap between the icon and the label, in px.
|
|
5
|
+
*
|
|
6
|
+
* MEASURED rather than read off a selector, because the selector is easy to read
|
|
7
|
+
* wrong — the header above says why `_buttons.scss`'s 4px variant never reaches an
|
|
8
|
+
* `AdwButtonContent`. Against libadwaita 1.9.3: an `AdwButtonContent` with
|
|
9
|
+
* `icon-name` and `label` inside a `GtkButton` in a presented window puts the image
|
|
10
|
+
* at x=161 width=16 and the label at x=183, i.e. exactly 6px apart.
|
|
11
|
+
*
|
|
12
|
+
* It is `border-spacing` on `buttoncontent > box` and NOT `GtkBox:spacing`, which
|
|
13
|
+
* reads 0 on the same widget — a renderer copying the property would draw them
|
|
14
|
+
* touching.
|
|
15
|
+
*/
|
|
16
|
+
export declare const BUTTON_CONTENT_BOX_SPACING = 6;
|
|
3
17
|
/** The icon `GtkImage` falls back to for an empty `icon-name`. */
|
|
4
18
|
export declare const BUTTON_CONTENT_FALLBACK_ICON = "image-missing";
|
|
5
19
|
/** How `can-shrink` reaches the label — `PangoEllipsizeMode` as a string union. */
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/** One pick expectation: which breakpoint a size selects. */
|
|
2
|
+
export interface BreakpointPickVector {
|
|
3
|
+
/** Conditions, in the order they are added. */
|
|
4
|
+
conditions: readonly string[];
|
|
5
|
+
/** The size to evaluate against. */
|
|
6
|
+
size: {
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
};
|
|
10
|
+
/** Index of the expected pick, or null for none. */
|
|
11
|
+
pick: number | null;
|
|
12
|
+
rule: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* `adw_breakpoint_bin_size_allocate` iterates backwards and takes the first match:
|
|
16
|
+
* "Iterate in reverse order since we prioritize breakpoints added last" (:432).
|
|
17
|
+
*
|
|
18
|
+
* CORE-ONLY: GAP — no renderer drives this table yet. The NativeScript bin binds
|
|
19
|
+
* breakpoints to a view's post-layout size and runs its own callbacks; moving it onto
|
|
20
|
+
* `BreakpointBinState` is a diff with its own spec surface, and the rule lands first so
|
|
21
|
+
* the React Native set is written against it. Tracked in #1343.
|
|
22
|
+
*/
|
|
23
|
+
export declare const BREAKPOINT_PICK_VECTORS: ReadonlyArray<BreakpointPickVector>;
|
|
24
|
+
/**
|
|
25
|
+
* One transition expectation, written as object and property NAMES rather than real widgets.
|
|
26
|
+
*
|
|
27
|
+
* The object is spelled out on every setter rather than left implicit, because rule 2's skip
|
|
28
|
+
* keys on object AND property (`setter_equal`, adw-breakpoint.c:1060): a table with one
|
|
29
|
+
* object in it cannot tell a correct implementation from one that drops the object half.
|
|
30
|
+
* Measured — with every setter on a single object, blinding the skip to the object left the
|
|
31
|
+
* whole suite green.
|
|
32
|
+
*/
|
|
33
|
+
export interface BreakpointTransitionVector {
|
|
34
|
+
/** Each breakpoint as `[condition, [[object, property, value] …]]`; originals are `orig:<object>.<property>`. */
|
|
35
|
+
breakpoints: readonly [string, readonly (readonly [string, string, string])[]][];
|
|
36
|
+
/** Sizes to evaluate in order. */
|
|
37
|
+
sizes: readonly {
|
|
38
|
+
width: number;
|
|
39
|
+
height: number;
|
|
40
|
+
}[];
|
|
41
|
+
/** Expected writes per evaluation, `object.property=value`; `null` is "no transition". */
|
|
42
|
+
writes: readonly (readonly string[] | null)[];
|
|
43
|
+
rule: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* `adw_breakpoint_transition` (adw-breakpoint.c:1781): restore the outgoing setters to
|
|
47
|
+
* their originals, skipping any the incoming breakpoint also sets, then write the
|
|
48
|
+
* incoming values.
|
|
49
|
+
*
|
|
50
|
+
* CORE-ONLY: GAP — no renderer drives this table yet. The NativeScript bin binds
|
|
51
|
+
* breakpoints to a view's post-layout size and runs its own callbacks; moving it onto
|
|
52
|
+
* `BreakpointBinState` is a diff with its own spec surface, and the rule lands first so
|
|
53
|
+
* the React Native set is written against it. Tracked in #1343.
|
|
54
|
+
*/
|
|
55
|
+
export declare const BREAKPOINT_TRANSITION_VECTORS: ReadonlyArray<BreakpointTransitionVector>;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/** One packing-order expectation. Children are named by letter; the result is DRAW order. */
|
|
2
|
+
export interface HeaderBarPackVector {
|
|
3
|
+
/** The calls, in order. `start:a` is `pack_start(a)`, `end:a` is `pack_end(a)`. */
|
|
4
|
+
calls: readonly string[];
|
|
5
|
+
/** Expected `state.start`, left to right. */
|
|
6
|
+
start: readonly string[];
|
|
7
|
+
/** Expected `state.end`, left to right. */
|
|
8
|
+
end: readonly string[];
|
|
9
|
+
rule: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* `adw_header_bar_pack_start` is `gtk_box_append` (:1083); `adw_header_bar_pack_end`
|
|
13
|
+
* is `gtk_box_prepend` (:1106).
|
|
14
|
+
*
|
|
15
|
+
* CORE-ONLY: GAP — no renderer drives this table yet. Rewiring the NativeScript and web
|
|
16
|
+
* header bars onto `HeaderBarState` is a diff per renderer with its own spec surface, and
|
|
17
|
+
* the rule lands first so the React Native set is written against it. Tracked in #1343.
|
|
18
|
+
*/
|
|
19
|
+
export declare const HEADER_BAR_PACK_VECTORS: ReadonlyArray<HeaderBarPackVector>;
|
|
20
|
+
/** One title-widget either/or expectation. */
|
|
21
|
+
export interface HeaderBarTitleWidgetVector {
|
|
22
|
+
/** `set_title_widget` arguments in order; `null` clears. */
|
|
23
|
+
calls: readonly (string | null)[];
|
|
24
|
+
/** Expected `state.titleWidget`. */
|
|
25
|
+
titleWidget: string | null;
|
|
26
|
+
/** Whether the derived title holds the centre afterwards. */
|
|
27
|
+
derivedPresent: boolean;
|
|
28
|
+
/** What each call returns — `false` is `adw_header_bar_set_title_widget`'s early return. */
|
|
29
|
+
changed: readonly boolean[];
|
|
30
|
+
rule: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* `adw_header_bar_set_title_widget` (:1189): same-widget returns early (:1198), the
|
|
34
|
+
* centre is emptied unconditionally (:1201), and a NULL argument calls
|
|
35
|
+
* `construct_title_label` again (:1211, guarded by `self->title_label == NULL` at :1210).
|
|
36
|
+
*
|
|
37
|
+
* CORE-ONLY: GAP — no renderer drives this table yet. Rewiring the NativeScript and web
|
|
38
|
+
* header bars onto `HeaderBarState` is a diff per renderer with its own spec surface, and
|
|
39
|
+
* the rule lands first so the React Native set is written against it. Tracked in #1343.
|
|
40
|
+
*/
|
|
41
|
+
export declare const HEADER_BAR_TITLE_WIDGET_VECTORS: ReadonlyArray<HeaderBarTitleWidgetVector>;
|
|
42
|
+
/** One title-resolution expectation. */
|
|
43
|
+
export interface HeaderBarTitleSourceVector {
|
|
44
|
+
sources: {
|
|
45
|
+
bottomSheetShowsDragHandle?: boolean;
|
|
46
|
+
navigationPageTitle?: string | null;
|
|
47
|
+
dialogTitle?: string | null;
|
|
48
|
+
windowTitle?: string | null;
|
|
49
|
+
applicationName?: string | null;
|
|
50
|
+
programName?: string | null;
|
|
51
|
+
};
|
|
52
|
+
/** What the derived label shows. `''` is `gtk_label_set_text (…, NULL)`. */
|
|
53
|
+
title: string;
|
|
54
|
+
rule: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* `update_title` (:475-508). The walk tests POINTERS (`if (!title)` at :491, :494, :501
|
|
58
|
+
* and :504), so an empty string is a value and ends the chain — it does not fall through.
|
|
59
|
+
* Which is the DEFAULT for two of the five sources, not a corner case: the page and dialog
|
|
60
|
+
* titles are `""` until set and never NULL, so only the window title can fall through by
|
|
61
|
+
* being unset.
|
|
62
|
+
*
|
|
63
|
+
* CORE-ONLY: GAP — no renderer drives this table yet. Rewiring the NativeScript and web
|
|
64
|
+
* header bars onto `HeaderBarState` is a diff per renderer with its own spec surface, and
|
|
65
|
+
* the rule lands first so the React Native set is written against it. Tracked in #1343.
|
|
66
|
+
*/
|
|
67
|
+
export declare const HEADER_BAR_TITLE_SOURCE_VECTORS: ReadonlyArray<HeaderBarTitleSourceVector>;
|
|
@@ -50,3 +50,7 @@ export { SPINNER_ARC_ENVELOPE, SPINNER_ARC_PHASE_VECTORS, SPINNER_ARC_TOLERANCE,
|
|
|
50
50
|
export type { SpinnerArcShapeVector, SpinnerConstantVector } from './spinner.js';
|
|
51
51
|
export { WRAP_BOX_CHILD_ORDER_VECTORS, WRAP_BOX_LENGTH_VECTORS, WRAP_BOX_LINE_VECTORS, WRAP_BOX_NATURAL_LENGTH_VECTORS, WRAP_BOX_NOTIFY_PROPERTIES, WRAP_BOX_POLICY_VECTORS, WRAP_BOX_SPACING_NOTIFY_VECTORS, WRAP_BOX_SPACING_VECTORS, } from './wrap-box.js';
|
|
52
52
|
export type { WrapBoxChildOrderVector, WrapBoxLengthVector, WrapBoxLineVector, WrapBoxNaturalLengthVector, WrapBoxPolicyVector, WrapBoxSpacingNotifyVector, WrapBoxSpacingVector, } from './wrap-box.js';
|
|
53
|
+
export { BREAKPOINT_PICK_VECTORS, BREAKPOINT_TRANSITION_VECTORS } from './breakpoint-bin.js';
|
|
54
|
+
export type { BreakpointPickVector, BreakpointTransitionVector } from './breakpoint-bin.js';
|
|
55
|
+
export { HEADER_BAR_PACK_VECTORS, HEADER_BAR_TITLE_SOURCE_VECTORS, HEADER_BAR_TITLE_WIDGET_VECTORS, } from './header-bar.js';
|
|
56
|
+
export type { HeaderBarPackVector, HeaderBarTitleSourceVector, HeaderBarTitleWidgetVector } from './header-bar.js';
|
|
@@ -41,13 +41,13 @@ export interface PopoverKeyVector {
|
|
|
41
41
|
rule: string;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
|
-
* `resolvePopoverKey` — the wrap arithmetic `
|
|
45
|
-
* `
|
|
44
|
+
* `resolvePopoverKey` — the wrap arithmetic `gtk-menu-button.ts` and
|
|
45
|
+
* `gtk-drop-down.ts` each carried a copy of, reconciled.
|
|
46
46
|
*
|
|
47
47
|
* The rows that matter are the ones the two copies got WRONG rather than merely
|
|
48
48
|
* duplicated: ArrowUp from an unfocused list (both computed `n - 2`), and Home/End while a
|
|
49
49
|
* search entry owns the caret (the drop-down stole both).
|
|
50
50
|
*
|
|
51
|
-
* CORE-ONLY: GAP — `
|
|
51
|
+
* CORE-ONLY: GAP — `gtk-popover` calls `resolvePopoverKey` on keydown but publishes no readable outcome for a spec to compare. Tracked in #1072
|
|
52
52
|
*/
|
|
53
53
|
export declare const POPOVER_KEY_VECTORS: ReadonlyArray<PopoverKeyVector>;
|
|
@@ -100,7 +100,7 @@ export interface ViewStackIconNameVector {
|
|
|
100
100
|
* that appeared exactly ONCE (`<adw-split-button>`) and was missing from every
|
|
101
101
|
* other copy.
|
|
102
102
|
*
|
|
103
|
-
* The guard rows are not hypothetical: `<
|
|
103
|
+
* The guard rows are not hypothetical: `<gtk-menu-button>` interpolated the raw
|
|
104
104
|
* name into `class="adw-icon adw-menu-button-icon adw-icon--<name>"`, so
|
|
105
105
|
* `icon-name="a b"` shipped a stray `b` class — for its own icon and for every
|
|
106
106
|
* JSON menu entry's. NOTHING in the build was in a position to notice, because
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a header bar can inherit a title from, nearest first.
|
|
3
|
+
*
|
|
4
|
+
* The order is `update_title`'s (adw-header-bar.c:475-508) and the names are its
|
|
5
|
+
* getters. A renderer supplies whichever it can observe and omits the rest; an absent
|
|
6
|
+
* field is "no such ancestor", which is what a NULL getter means there.
|
|
7
|
+
*/
|
|
8
|
+
export interface HeaderBarTitleSources {
|
|
9
|
+
/**
|
|
10
|
+
* TRUE when the bar sits in an `AdwBottomSheet` whose drag handle is shown.
|
|
11
|
+
*
|
|
12
|
+
* First and unconditional: the handle occupies the same space, so the title is
|
|
13
|
+
* blanked outright rather than falling through to the next source.
|
|
14
|
+
*/
|
|
15
|
+
readonly bottomSheetShowsDragHandle?: boolean;
|
|
16
|
+
/** `adw_navigation_page_get_title` of the page the bar belongs to. */
|
|
17
|
+
readonly navigationPageTitle?: string | null;
|
|
18
|
+
/** `adw_dialog_get_title` of the enclosing dialog. */
|
|
19
|
+
readonly dialogTitle?: string | null;
|
|
20
|
+
/** `gtk_window_get_title` of the root, when the root IS a window. */
|
|
21
|
+
readonly windowTitle?: string | null;
|
|
22
|
+
/** `g_get_application_name`. */
|
|
23
|
+
readonly applicationName?: string | null;
|
|
24
|
+
/** `g_get_prgname`. */
|
|
25
|
+
readonly programName?: string | null;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Resolve what the derived title label shows.
|
|
29
|
+
*
|
|
30
|
+
* Returns `''` for "show nothing", which is `gtk_label_set_text (…, NULL)` — the label
|
|
31
|
+
* exists and is empty, as distinct from there being no label at all.
|
|
32
|
+
*
|
|
33
|
+
* AN EMPTY STRING IN A SOURCE ENDS THE WALK. `update_title` tests POINTERS (`if (!title)`
|
|
34
|
+
* at :491, :494, :501 and :504) and `""` is a pointer, so a source answering `""` has
|
|
35
|
+
* ANSWERED — the chain stops rather than falling through to the application name. That is
|
|
36
|
+
* the common case for two of the five, not a corner: `AdwNavigationPage:title` and
|
|
37
|
+
* `AdwDialog:title` both DEFAULT to `""` and can never yield NULL (the page's setter
|
|
38
|
+
* rejects NULL outright, adw-navigation-view.c:2514; the dialog's normalises it to `""`,
|
|
39
|
+
* adw-dialog.c:1465), so a bar under an untitled page or dialog renders BLANK and never
|
|
40
|
+
* reaches the window title. Only `gtk_window_get_title` defaults to NULL.
|
|
41
|
+
*
|
|
42
|
+
* `null` and an absent field both mean "no such ancestor" — the NULL a getter returns, or
|
|
43
|
+
* the branch `update_title` skips — and those DO fall through.
|
|
44
|
+
*/
|
|
45
|
+
export declare function resolveHeaderBarTitle(sources: HeaderBarTitleSources): string;
|
|
46
|
+
/** What a renderer draws. `derivedTitle` is null exactly while a title widget holds the centre. */
|
|
47
|
+
export interface HeaderBarRenderState<T> {
|
|
48
|
+
/** Start slot, in draw order — first packed is furthest from the centre. */
|
|
49
|
+
readonly start: readonly T[];
|
|
50
|
+
/** End slot, in draw order — first packed is NEAREST the end, so last in this list. */
|
|
51
|
+
readonly end: readonly T[];
|
|
52
|
+
/** The custom centre, or null while the derived title holds it. */
|
|
53
|
+
readonly titleWidget: T | null;
|
|
54
|
+
/** The derived title's text, or null while a title widget holds the centre. */
|
|
55
|
+
readonly derivedTitle: string | null;
|
|
56
|
+
/**
|
|
57
|
+
* The derived subtitle.
|
|
58
|
+
*
|
|
59
|
+
* A DIVERGENCE, deliberate and kept: libadwaita's derived centre is a single
|
|
60
|
+
* `GtkLabel` with no subtitle — an app that wants one sets an `AdwWindowTitle` as
|
|
61
|
+
* its title widget. Both existing renderers expose a `subtitle` on the bar itself,
|
|
62
|
+
* which is friendlier for a declarative surface and is what their markup already
|
|
63
|
+
* uses. Null while a title widget holds the centre, like {@link derivedTitle}.
|
|
64
|
+
*/
|
|
65
|
+
readonly derivedSubtitle: string | null;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* `Adw.HeaderBar`'s packing and title-widget state, over opaque children.
|
|
69
|
+
*
|
|
70
|
+
* Generic in the child type because the core holds no widgets: `T` is whatever the
|
|
71
|
+
* renderer's node is, and this class only ever compares them by identity (`===`).
|
|
72
|
+
*
|
|
73
|
+
* `T` must therefore be a STABLE reference. {@link remove} and {@link setTitleWidget}'s
|
|
74
|
+
* early return both key off identity, so a renderer that wraps its nodes freshly per call
|
|
75
|
+
* — `remove(wrap(node))` — hands over a value matching nothing and gets a silent `false`.
|
|
76
|
+
* Pass the node itself, or a wrapper cached per node.
|
|
77
|
+
*/
|
|
78
|
+
export declare class HeaderBarState<T> {
|
|
79
|
+
private readonly _start;
|
|
80
|
+
private readonly _end;
|
|
81
|
+
private _titleWidget;
|
|
82
|
+
private readonly _title;
|
|
83
|
+
private _sources;
|
|
84
|
+
/** `adw_header_bar_pack_start` — `gtk_box_append` (adw-header-bar.c:1083). */
|
|
85
|
+
packStart(child: T): void;
|
|
86
|
+
/**
|
|
87
|
+
* `adw_header_bar_pack_end` — `gtk_box_prepend` (adw-header-bar.c:1106).
|
|
88
|
+
*
|
|
89
|
+
* Stored in DRAW order, so the prepend is a `unshift` here: the first widget packed
|
|
90
|
+
* ends up last in {@link HeaderBarRenderState.end} and therefore nearest the end of
|
|
91
|
+
* the bar. Keeping draw order rather than pack order means a renderer appends the
|
|
92
|
+
* list left to right and cannot re-derive the mirror by accident.
|
|
93
|
+
*/
|
|
94
|
+
packEnd(child: T): void;
|
|
95
|
+
/**
|
|
96
|
+
* `adw_header_bar_remove` (adw-header-bar.c:1125). Returns whether the bar held it.
|
|
97
|
+
*
|
|
98
|
+
* Sweeps BOTH slots AND the centre rather than stopping at the first hit. libadwaita
|
|
99
|
+
* never has to: `pack_start` and `pack_end` each refuse a child that already has a
|
|
100
|
+
* parent (`gtk_widget_get_parent (child) == NULL`, :1081 and :1104) and a GTK widget
|
|
101
|
+
* has exactly one, so `adw_header_bar_remove` can dispatch on the parent alone
|
|
102
|
+
* (:1133). `T` is opaque here and carries no parent, so nothing stops a renderer from
|
|
103
|
+
* packing the same value twice, or from packing it and also making it the centre —
|
|
104
|
+
* and a first-match removal then returned `true` with the child still on the bar,
|
|
105
|
+
* which is the one answer a caller cannot recover from.
|
|
106
|
+
*
|
|
107
|
+
* A child the bar never held is `false` here and a `g_critical` there
|
|
108
|
+
* (`ADW_CRITICAL_CANNOT_REMOVE_CHILD`, :1146); the return value is the seam a renderer
|
|
109
|
+
* raises its own diagnostic from.
|
|
110
|
+
*
|
|
111
|
+
* DIVERGENCE, deliberate — taking the CENTRE out brings the derived title back here,
|
|
112
|
+
* and in C it does not. `adw_header_bar_remove` on the centre bin runs one line
|
|
113
|
+
* (`adw_bin_set_child (…, NULL)`, :1144): it never clears `self->title_widget`, so
|
|
114
|
+
* `adw_header_bar_get_title_widget` (:1163) keeps returning the widget that just left,
|
|
115
|
+
* and it never reaches `construct_title_label`, so the centre stays EMPTY —
|
|
116
|
+
* `title_label` was set NULL at :1209 and `update_title` returns on it at :479. Only
|
|
117
|
+
* an explicit `set_title_widget (NULL)` afterwards takes the label back, through
|
|
118
|
+
* :1211. That is a stale pointer plus a third state this model does not have —
|
|
119
|
+
* {@link HeaderBarRenderState.derivedTitle} is null exactly while a title widget holds
|
|
120
|
+
* the centre — so `remove` routes through {@link setTitleWidget} instead.
|
|
121
|
+
*/
|
|
122
|
+
remove(child: T): boolean;
|
|
123
|
+
/** The custom centre, or null while the derived title holds it. */
|
|
124
|
+
get titleWidget(): T | null;
|
|
125
|
+
/**
|
|
126
|
+
* `adw_header_bar_set_title_widget` (adw-header-bar.c:1189). Returns whether it changed.
|
|
127
|
+
*
|
|
128
|
+
* Setting the SAME widget returns early with no notify (`:1198`) — including
|
|
129
|
+
* null-over-null, which is why a renderer must not read this as "the derived title
|
|
130
|
+
* was rebuilt". Passing null rebuilds the derived title; passing a widget drops it.
|
|
131
|
+
*/
|
|
132
|
+
setTitleWidget(widget: T | null): boolean;
|
|
133
|
+
/** The bar's title text, when it is not resolved from ancestry. */
|
|
134
|
+
get title(): string;
|
|
135
|
+
/** Returns whether it changed. */
|
|
136
|
+
setTitle(title: string | null | undefined): boolean;
|
|
137
|
+
/** The bar's subtitle — the documented divergence, see {@link HeaderBarRenderState.derivedSubtitle}. */
|
|
138
|
+
get subtitle(): string;
|
|
139
|
+
/** Returns whether it changed. */
|
|
140
|
+
setSubtitle(subtitle: string | null | undefined): boolean;
|
|
141
|
+
/**
|
|
142
|
+
* Install what the bar can inherit a title from. Returns whether the RESOLVED title
|
|
143
|
+
* moved — swapping the sources for different ones that answer the same is `false`,
|
|
144
|
+
* because `update_title` ends at `gtk_label_set_text` and the label is the output.
|
|
145
|
+
*
|
|
146
|
+
* The report is over the CHAIN, not over {@link state}: while a non-empty
|
|
147
|
+
* {@link title} masks the chain, this can return `true` for a change no renderer will
|
|
148
|
+
* see. The imprecision only runs that way — a `false` here can never hide a moved
|
|
149
|
+
* `derivedTitle` — so a renderer may repaint on it without re-checking.
|
|
150
|
+
*
|
|
151
|
+
* A renderer that observes none of these never calls it, and the explicitly set
|
|
152
|
+
* {@link title} is used on its own — which is what both current renderers do today.
|
|
153
|
+
*/
|
|
154
|
+
setTitleSources(sources: HeaderBarTitleSources): boolean;
|
|
155
|
+
/** The current render snapshot. */
|
|
156
|
+
get state(): HeaderBarRenderState<T>;
|
|
157
|
+
}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export { AVATAR_COLOR_COUNT, AVATAR_COLORS, avatarColor, avatarColorClass, avata
|
|
|
6
6
|
export type { AdwAvatarColor, AdwAvatarMode } from './avatar.js';
|
|
7
7
|
export { ADW_BANNER_BUTTON_STYLES, ADW_BANNER_BUTTON_STYLE_CLASSES, ADW_BANNER_DEFAULTS, bannerButtonStyleClasses, bannerButtonText, bannerButtonVisible, bannerRenderState, isBannerButtonStyle, parseBannerButtonStyle, } from './banner.js';
|
|
8
8
|
export type { AdwBannerButtonStyle, AdwBannerProps, AdwBannerRenderState } from './banner.js';
|
|
9
|
-
export { ADW_BUTTON_CONTENT_DEFAULTS, BUTTON_CONTENT_FALLBACK_ICON, BUTTON_CONTENT_STYLE_CLASS, buttonContentEllipsize, buttonContentIconExpands, buttonContentIconIsEmpty, buttonContentIconName, buttonContentLabelText, buttonContentLabelVisible, buttonContentRenderState, buttonContentStyleTargetIndex, } from './button-content.js';
|
|
9
|
+
export { ADW_BUTTON_CONTENT_DEFAULTS, BUTTON_CONTENT_BOX_SPACING, BUTTON_CONTENT_FALLBACK_ICON, BUTTON_CONTENT_STYLE_CLASS, buttonContentEllipsize, buttonContentIconExpands, buttonContentIconIsEmpty, buttonContentIconName, buttonContentLabelText, buttonContentLabelVisible, buttonContentRenderState, buttonContentStyleTargetIndex, } from './button-content.js';
|
|
10
10
|
export type { AdwButtonContentProps, AdwButtonContentRenderState, ButtonContentAncestor, ButtonContentEllipsize, } from './button-content.js';
|
|
11
11
|
export { ADW_BUTTON_STYLE_ALIASES, ADW_BUTTON_STYLE_CLASSES, buttonStyleClass, buttonStyleClasses } from './button.js';
|
|
12
12
|
export type { AdwButtonStyleClass } from './button.js';
|
|
@@ -58,9 +58,13 @@ export { UNTITLED_PAGE_LABEL, collectSearchRows, countVisiblePages, createSearch
|
|
|
58
58
|
export type { CaseFolder, MakeComparableOptions, PreferencesGroupHeaderInput, PreferencesGroupHeaderState, PreferencesSearchEntry, PreferencesSearchGroup, PreferencesSearchPage, PreferencesSearchResult, PreferencesSearchRow, SearchPreferencesOptions, SearchRowSubtitleInput, } from './preferences.js';
|
|
59
59
|
export { ADW_CLAMP_DEFAULTS, ADW_CLAMP_SIZE_CLASSES, ADW_SPINNER_MAX_SIZE, ADW_SPINNER_MIN_SIZE, ADW_TOOLBAR_BAR_CLASSES, ADW_TOOLBAR_VIEW_CLASSES, ADW_TOOLBAR_VIEW_DEFAULTS, clampAllocate, clampChildSize, clampSizeFromChild, clampThresholds, normalizeClampSize, parseToolbarStyle, resolveSpinnerSize, spinnerGeometry, toolbarBarStyleClasses, toolbarViewAllocate, toolbarViewClasses, toolbarViewContentForSize, toolbarViewMeasure, } from './chrome.js';
|
|
60
60
|
export type { AdwClampSizeClass, AdwMeasurement, AdwToolbarStyle, ClampAllocation, ClampParams, ClampThresholds, SpinnerGeometry, ToolbarViewAllocateInput, ToolbarViewAllocation, ToolbarViewClassInput, ToolbarViewClasses, ToolbarViewContentForSize, ToolbarViewContentForSizeInput, ToolbarViewMeasureInput, } from './chrome.js';
|
|
61
|
+
export { BreakpointBinState } from './breakpoint-bin.js';
|
|
62
|
+
export type { BreakpointDefinition, BreakpointSetter, BreakpointTransition, BreakpointWrite, } from './breakpoint-bin.js';
|
|
63
|
+
export { HeaderBarState, resolveHeaderBarTitle } from './header-bar.js';
|
|
64
|
+
export type { HeaderBarRenderState, HeaderBarTitleSources } from './header-bar.js';
|
|
61
65
|
export { ADW_MAX_OVERSHOOT_DISTANCE, ADW_OVERSHOOT_SETTLE_MS, ADW_UNDERSHOOT_CLASSES, ADW_UNDERSHOOT_SIZE, accumulateOvershoot, isScrolledFromEnd, isScrolledFromStart, overshootDistance, scrollMaxValue, scrollUndershootClasses, } from './scrolling.js';
|
|
62
66
|
export type { ScrollAdjustment, ScrollAdjustments } from './scrolling.js';
|
|
63
67
|
export { POPOVER_ITEM_RADIUS, POPOVER_MENU_PADDING, POPOVER_PADDING, POPOVER_RADIUS, PopoverState, resolvePopoverKey, } from './popover.js';
|
|
64
68
|
export type { PopoverKeyAction, PopoverKeyContext, PopoverKeyResolution, PopoverStateChange, PopoverStateListener, } from './popover.js';
|
|
65
|
-
export { ADW_WRAP_BOX_DEFAULT_ALIGN, ADW_WRAP_BOX_DEFAULT_JUSTIFY, ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE, ADW_WRAP_BOX_DEFAULT_LENGTH_UNIT, ADW_WRAP_BOX_DEFAULT_PACK_DIRECTION, ADW_WRAP_BOX_DEFAULT_SPACING, ADW_WRAP_BOX_DEFAULT_WRAP_POLICY, ADW_WRAP_BOX_JUSTIFY_MODES, ADW_WRAP_BOX_NATURAL_LINE_LENGTH_UNSET, ADW_WRAP_BOX_PACK_DIRECTIONS, ADW_WRAP_POLICIES, normalizeNaturalLineLength, normalizeWrapBoxAlign, normalizeWrapBoxJustify, normalizeWrapBoxLengthUnit, normalizeWrapBoxPackDirection, normalizeWrapBoxSpacing, normalizeWrapPolicy, resolveWrapBoxChildOrder, resolveWrapBoxLine, wrapBoxLengthToPx, wrapPolicyFlexShrink, } from './wrap-box.js';
|
|
66
|
-
export type { AdwWrapBoxJustify, AdwWrapBoxOrientation, AdwWrapBoxPackDirection, AdwWrapPolicy, WrapBoxChildOrderOp, WrapBoxLineLayout, } from './wrap-box.js';
|
|
69
|
+
export { ADW_WRAP_BOX_DEFAULT_ALIGN, ADW_WRAP_BOX_DEFAULT_JUSTIFY, ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE, ADW_WRAP_BOX_DEFAULT_LENGTH_UNIT, ADW_WRAP_BOX_DEFAULT_PACK_DIRECTION, ADW_WRAP_BOX_DEFAULT_SPACING, ADW_WRAP_BOX_DEFAULT_WRAP_POLICY, ADW_WRAP_BOX_JUSTIFY_MODES, ADW_WRAP_BOX_NATURAL_LINE_LENGTH_UNSET, ADW_WRAP_BOX_PACK_DIRECTIONS, ADW_WRAP_POLICIES, normalizeNaturalLineLength, normalizeWrapBoxAlign, normalizeWrapBoxJustify, normalizeWrapBoxLengthUnit, normalizeWrapBoxPackDirection, normalizeWrapBoxSpacing, normalizeWrapPolicy, resolveWrapBoxChildOrder, resolveWrapBoxLine, wrapBoxChildFlex, wrapBoxFlexStyle, wrapBoxLengthToPx, wrapPolicyFlexShrink, } from './wrap-box.js';
|
|
70
|
+
export type { AdwWrapBoxJustify, AdwWrapBoxOrientation, AdwWrapBoxPackDirection, AdwWrapPolicy, WrapBoxChildFlex, WrapBoxChildOrderOp, WrapBoxFlexInput, WrapBoxFlexStyle, WrapBoxLineLayout, } from './wrap-box.js';
|
package/lib/types/popover.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ export type PopoverStateListener = (change: PopoverStateChange) => void;
|
|
|
42
42
|
*
|
|
43
43
|
* NAMING: an `open` GETTER means the mutators cannot also be `open()`/`close()`, so
|
|
44
44
|
* they take GTK's vocabulary ({@link popup} / {@link popdown}, after
|
|
45
|
-
* `adw_split_button_popup()` / `..._popdown()`) — which is what `<
|
|
45
|
+
* `adw_split_button_popup()` / `..._popdown()`) — which is what `<gtk-popover>`
|
|
46
46
|
* exposes too.
|
|
47
47
|
*
|
|
48
48
|
* Idempotent: setting the current value again is a no-op and notifies nobody.
|
package/lib/types/rows.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ export type AdwComboOptionInput = string | {
|
|
|
46
46
|
* A bare string is both value and label (`Gtk.StringList`'s model, which is what
|
|
47
47
|
* `Adw.ComboRow` is fed in the common case). In a descriptor either half stands in for the
|
|
48
48
|
* missing other, so `{ label: 'Apple' }` is addressable by the value `'Apple'` rather than
|
|
49
|
-
* by `undefined`. ONE home for the rule, so `<adw-combo-row>` and `<
|
|
49
|
+
* by `undefined`. ONE home for the rule, so `<adw-combo-row>` and `<gtk-drop-down>` cannot
|
|
50
50
|
* accept two different option vocabularies.
|
|
51
51
|
*/
|
|
52
52
|
export declare function normalizeComboOptions(raw: ReadonlyArray<AdwComboOptionInput> | null | undefined): AdwComboOption[];
|
|
@@ -140,7 +140,7 @@ export declare class ComboState {
|
|
|
140
140
|
* GtkSingleSelection does with it is not verifiable here. Each renderer therefore states
|
|
141
141
|
* its own answer against this one predicate: {@link setSelectedIndex} keeps the permissive
|
|
142
142
|
* model (an index past the end is how "nothing selected" is spelled and
|
|
143
|
-
* {@link selectedValue} reads `''`), while `<
|
|
143
|
+
* {@link selectedValue} reads `''`), while `<gtk-drop-down>` rejects the set, as its
|
|
144
144
|
* published `selected` docs promise.
|
|
145
145
|
*/
|
|
146
146
|
hasIndex(index: number): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ADWAITA_DARK_ONLY_TOKENS, ADWAITA_TOKEN_COUNT, ADWAITA_TOKENS, ADWAITA_UNRESOLVED_TOKENS, type AdwTokenValues, } from './tokens.generated.js';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/** One token's declared values. `dark` is absent when the dark theme keeps the default. */
|
|
2
|
+
export interface AdwTokenValues {
|
|
3
|
+
readonly light: string;
|
|
4
|
+
readonly dark?: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Every declared Adwaita token, light and dark.
|
|
8
|
+
*
|
|
9
|
+
* The VALUES as the stylesheet writes them — including the expressions listed in
|
|
10
|
+
* {@link ADWAITA_UNRESOLVED_TOKENS}. Nothing here is evaluated.
|
|
11
|
+
*/
|
|
12
|
+
export declare const ADWAITA_TOKENS: Readonly<Record<string, AdwTokenValues>>;
|
|
13
|
+
/**
|
|
14
|
+
* Tokens the dark theme declares and the light theme does not.
|
|
15
|
+
*
|
|
16
|
+
* Visible rather than merged away: a consumer reading only `light` would otherwise
|
|
17
|
+
* miss them with no signal.
|
|
18
|
+
*/
|
|
19
|
+
export declare const ADWAITA_DARK_ONLY_TOKENS: readonly string[];
|
|
20
|
+
/**
|
|
21
|
+
* Tokens whose value is a CSS expression, not a literal.
|
|
22
|
+
*
|
|
23
|
+
* `oklab(from …)` and `color-mix(…)` are deliberate: they track a re-themed base
|
|
24
|
+
* colour, which a literal cannot. A browser evaluates them. A TypeScript scale and
|
|
25
|
+
* NativeScript's CSS subset cannot — so a consumer that needs literals must refuse
|
|
26
|
+
* these by name instead of passing the expression through as a colour.
|
|
27
|
+
*
|
|
28
|
+
* `--border-color` is the hard case and is in this list for a different reason:
|
|
29
|
+
* `currentColor` is a value of the cascade at paint time, so it has no build-time
|
|
30
|
+
* resolution at all, in any target.
|
|
31
|
+
*/
|
|
32
|
+
export declare const ADWAITA_UNRESOLVED_TOKENS: readonly string[];
|
|
33
|
+
/** How many tokens the light contract carries — derived, never typed. */
|
|
34
|
+
export declare const ADWAITA_TOKEN_COUNT = 68;
|
package/lib/types/wrap-box.d.ts
CHANGED
|
@@ -112,6 +112,62 @@ export declare function resolveWrapBoxLine(input: {
|
|
|
112
112
|
* no policy silently draws the one Adwaita does not choose.
|
|
113
113
|
*/
|
|
114
114
|
export declare function wrapPolicyFlexShrink(policy: AdwWrapPolicy): number;
|
|
115
|
+
/** The flexbox knobs a wrap box's properties resolve to. */
|
|
116
|
+
export interface WrapBoxFlexStyle {
|
|
117
|
+
/** The main axis, reversed for `end-to-start`. */
|
|
118
|
+
flexDirection: 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
|
119
|
+
/** Always wrapping; reversed by `wrap-reverse`. */
|
|
120
|
+
flexWrap: 'wrap' | 'wrap-reverse';
|
|
121
|
+
/** Where a COMPLETE line's leftover space goes. */
|
|
122
|
+
justifyContent: 'flex-start' | 'center' | 'flex-end' | 'space-between';
|
|
123
|
+
/** `line-homogeneous` stretches the lines across the cross axis. */
|
|
124
|
+
alignContent: 'stretch' | 'flex-start';
|
|
125
|
+
/** `flex-grow` for a child on a complete line. */
|
|
126
|
+
childFlexGrow: number;
|
|
127
|
+
/** `flex-shrink` for every child — `wrap-policy`. */
|
|
128
|
+
childFlexShrink: number;
|
|
129
|
+
}
|
|
130
|
+
/** The widget properties {@link wrapBoxFlexStyle} and {@link wrapBoxChildFlex} read. */
|
|
131
|
+
export interface WrapBoxFlexInput {
|
|
132
|
+
orientation: AdwWrapBoxOrientation;
|
|
133
|
+
packDirection: AdwWrapBoxPackDirection;
|
|
134
|
+
wrapReverse: boolean;
|
|
135
|
+
justify: AdwWrapBoxJustify;
|
|
136
|
+
justifyLastLine: boolean;
|
|
137
|
+
align: number;
|
|
138
|
+
lineHomogeneous: boolean;
|
|
139
|
+
wrapPolicy: AdwWrapPolicy;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* The CONTAINER half of the line decision, resolved onto flexbox.
|
|
143
|
+
*
|
|
144
|
+
* The line DECISION is {@link resolveWrapBoxLine}, held to `WRAP_BOX_LINE_VECTORS`;
|
|
145
|
+
* this only maps its answer onto the knobs a flex container has. A flex container has
|
|
146
|
+
* ONE `justify-content` for every line, so it can carry the COMPLETE-line rule and
|
|
147
|
+
* nothing else — the final-line rule needs a per-child answer
|
|
148
|
+
* ({@link wrapBoxChildFlex}) or, in a browser, a `:only-child` selector.
|
|
149
|
+
*/
|
|
150
|
+
export declare function wrapBoxFlexStyle(input: WrapBoxFlexInput): WrapBoxFlexStyle;
|
|
151
|
+
/** What one child of the box gets set on it. */
|
|
152
|
+
export interface WrapBoxChildFlex {
|
|
153
|
+
/** `flex-grow` — whether this child absorbs its line's leftover. */
|
|
154
|
+
flexGrow: number;
|
|
155
|
+
/** `flex-shrink` — `wrap-policy`, the same for every child. */
|
|
156
|
+
flexShrink: number;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* The PER-CHILD half of the decision, which the container knobs cannot carry.
|
|
160
|
+
*
|
|
161
|
+
* A box with exactly ONE child has one line, that line is the LAST one, and its child
|
|
162
|
+
* is alone on it — so it is governed by `justify-last-line`, and `spread` STRETCHES it
|
|
163
|
+
* rather than spreading anything (C guards the keep-at-minimum branch with
|
|
164
|
+
* `n_children > 1`).
|
|
165
|
+
*
|
|
166
|
+
* `childCount` is the box's own child count, the most a renderer knows without a layout
|
|
167
|
+
* pass: 1 is the lone-child-on-the-final-line case exactly, anything more means at
|
|
168
|
+
* least one complete line.
|
|
169
|
+
*/
|
|
170
|
+
export declare function wrapBoxChildFlex(input: WrapBoxFlexInput, childCount: number): WrapBoxChildFlex;
|
|
115
171
|
/** Which child-list operation is being resolved. */
|
|
116
172
|
export type WrapBoxChildOrderOp = 'insert-after' | 'reorder-after';
|
|
117
173
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/adwaita-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.46.0",
|
|
4
4
|
"description": "Headless Adwaita widget behavior (breakpoint condition grammar + apply/unapply state machine, color-scheme observable, avatar derivation) shared by the web and NativeScript Adwaita renderers — pure TS, no platform imports",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "lib/esm/index.js",
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
"./conformance": {
|
|
14
14
|
"types": "./lib/types/conformance/index.d.ts",
|
|
15
15
|
"default": "./lib/esm/conformance/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./tokens": {
|
|
18
|
+
"types": "./lib/types/tokens.d.ts",
|
|
19
|
+
"default": "./lib/esm/tokens.js"
|
|
16
20
|
}
|
|
17
21
|
},
|
|
18
22
|
"files": [
|
|
@@ -46,8 +50,8 @@
|
|
|
46
50
|
"headless"
|
|
47
51
|
],
|
|
48
52
|
"devDependencies": {
|
|
49
|
-
"@gjsify/cli": "^0.
|
|
50
|
-
"@gjsify/unit": "^0.
|
|
53
|
+
"@gjsify/cli": "^0.46.0",
|
|
54
|
+
"@gjsify/unit": "^0.46.0",
|
|
51
55
|
"@types/node": "^25.9.2",
|
|
52
56
|
"typescript": "^6.0.3"
|
|
53
57
|
},
|