@gjsify/adwaita-core 0.44.0 → 0.45.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/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/types/breakpoint-bin.d.ts +113 -0
- package/lib/types/breakpoint-bin.spec.d.ts +2 -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/header-bar.d.ts +157 -0
- package/lib/types/header-bar.spec.d.ts +2 -0
- package/lib/types/index.d.ts +4 -0
- package/lib/types/tokens.d.ts +1 -0
- package/lib/types/tokens.generated.d.ts +34 -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};
|
|
@@ -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_FALLBACK_ICON as ue,BUTTON_CONTENT_STYLE_CLASS as de,buttonContentEllipsize as fe,buttonContentIconExpands as pe,buttonContentIconIsEmpty as me,buttonContentIconName as he,buttonContentLabelText as ge,buttonContentLabelVisible as _e,buttonContentRenderState as ve,buttonContentStyleTargetIndex as ye}from"./button-content.js";import{ADW_BUTTON_STYLE_ALIASES as be,ADW_BUTTON_STYLE_CLASSES as xe,buttonStyleClass as Se,buttonStyleClasses as Ce}from"./button.js";import{ADW_SWIPE_DECELERATION_TOUCH as we,ADW_SWIPE_DECELERATION_TOUCHPAD as Te,ADW_SWIPE_DRAG_THRESHOLD as Ee,ADW_SWIPE_EPSILON as De,ADW_SWIPE_HISTORY_THRESHOLD_MS as Oe,ADW_SWIPE_PARABOLA_MULTIPLIER as ke,ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_H as Ae,ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_V as je,ADW_SWIPE_VELOCITY_CURVE_THRESHOLD as Me,ADW_SWIPE_VELOCITY_THRESHOLD_TOUCH as Ne,ADW_SWIPE_VELOCITY_THRESHOLD_TOUCHPAD as Pe,SwipeTracker as Fe,swipeBounds as Ie,swipeClosestPointIndex as Le,swipeEndProgress as Re,swipeNextPointIndex as ze,swipePreviousPointIndex as Be,swipeProjectedPointIndex as Ve,swipeSlope as He,swipeVelocityThreshold as Ue}from"./swipe.js";import{CAROUSEL_SCROLL_TIMEOUT_MS as We,CAROUSEL_SETTLE_EPSILON as Ge,CarouselState as Ke,carouselClampPosition as qe,carouselClosestSnapPoint as Je,carouselNavigateTarget as Ye,carouselPageAllocation as Xe,carouselPageAtPosition as Ze,carouselRange as Qe,carouselReorderShift as $e,carouselSizesFromSnapPoints as et,carouselSnapPoints as tt,carouselWheelStep as nt}from"./carousel.js";import{RadioGroupState as rt,resolveCheckState as it}from"./checks.js";import{adwLerp as at,easeInOutSine as ot,easeOutCubic as st,inverseLerp as ct}from"./easing.js";import{ADW_CLAMP_DEFAULTS as lt,ADW_CLAMP_SIZE_CLASSES as ut,ADW_SPINNER_MAX_SIZE as dt,ADW_SPINNER_MIN_SIZE as ft,ADW_TOOLBAR_BAR_CLASSES as pt,ADW_TOOLBAR_VIEW_CLASSES as mt,ADW_TOOLBAR_VIEW_DEFAULTS as ht,clampAllocate as gt,clampChildSize as _t,clampSizeFromChild as vt,clampThresholds as yt,normalizeClampSize as bt,parseToolbarStyle as xt,resolveSpinnerSize as St,spinnerGeometry as Ct,toolbarBarStyleClasses as wt,toolbarViewAllocate as Tt,toolbarViewClasses as Et,toolbarViewContentForSize as Dt,toolbarViewMeasure as Ot}from"./chrome.js";import{DEFAULT_ICON_COLOR as kt,DEFAULT_ICON_COLOR_DARK as At,adwaitaColorScheme as jt,isThemeIconColor as Mt,onAdwaitaColorSchemeChanged as Nt,setAdwaitaColorScheme as Pt,themeIconColor as Ft,toggleAdwaitaColorScheme as It}from"./color-scheme.js";import{ADW_DATA_GRID_ROW_VARIANTS as Lt,DATA_GRID_CELL_CLASS as Rt,DATA_GRID_ROW_CLASS as zt,dataGridCellText as Bt,dataGridColumnAlign as Vt,dataGridColumnClasses as Ht,dataGridRowInteractive as Ut,dataGridTrackTemplate as Wt,dataGridTracks as Gt,normalizeDataGridColumns as Kt,normalizeDataGridVariant as qt}from"./data-grid.js";import{AdwAlertResponses as Jt,BottomSheetPresentation as Yt,resolveBottomSheetClose as Xt}from"./dialog.js";import{CAPS_LOCK_ICON_NAME as Zt,CAPS_LOCK_TOOLTIP as Qt,EMPTY_ANIMATION_DURATION_MS as $t,ENTRY_ROW_APPLY_ICON_NAME as en,ENTRY_ROW_APPLY_TOOLTIP as tn,ENTRY_ROW_EDIT_ICON_NAME as nn,ENTRY_ROW_MAX_LENGTH_LIMIT as rn,ENTRY_ROW_TITLE_SPACING as an,EntryRowState as on,PASSWORD_CONCEAL_ICON_NAME as sn,PASSWORD_CONCEAL_LABEL as cn,PASSWORD_REVEAL_ICON_NAME as ln,PASSWORD_REVEAL_LABEL as un,PasswordEntryRowState as dn,clampEntryText as fn,entryTextLength as pn}from"./entry-row.js";import{HeaderBarState as mn,resolveHeaderBarTitle as hn}from"./header-bar.js";import{AdwToast as gn,AdwToastQueue as _n,DEFAULT_TOAST_TIMEOUT as vn}from"./toast.js";import{ADW_COMBO_NO_SELECTION as yn,ComboState as bn,ExpanderState as xn,SpinState as Sn,ToggleGroupState as Cn,normalizeComboOptions as wn}from"./rows.js";import{ViewStackState as Tn,normalizeIconName as En,resolvePageTitle as Dn}from"./view-stack.js";import{BACK_BUTTON_FALLBACK_TOOLTIP as On,NavigationViewState as kn,describeNavigationDiagnostic as An}from"./navigation-view.js";import{ADW_SIDEBAR_NO_SELECTION as jn,SidebarState as Mn,adjustSidebarSelection as Nn,clampSidebarSelection as Pn,flattenSidebarItems as Fn,sidebarHeaders as In}from"./sidebar.js";import{ADW_SPINNER_CONTRACT_DISTANCE as Ln,ADW_SPINNER_CYCLES_PER_LOOP as Rn,ADW_SPINNER_CYCLE_LENGTH as zn,ADW_SPINNER_EXTEND_DISTANCE as Bn,ADW_SPINNER_IDLE_DISTANCE as Vn,ADW_SPINNER_MAX_ARC_LENGTH as Hn,ADW_SPINNER_MIN_ARC_LENGTH as Un,ADW_SPINNER_N_CYCLES as Wn,ADW_SPINNER_OVERLAP_DISTANCE as Gn,ADW_SPINNER_SPIN_DURATION_MS as Kn,ADW_SPINNER_START_ANGLE as qn,ADW_SPINNER_STILL_PROGRESS as Jn,ADW_SPINNER_TRACK_OPACITY as Yn,normalizeSpinnerAngle as Xn,spinnerArc as Zn,spinnerArcEnd as Qn,spinnerArcStart as $n,spinnerProgressAt as er}from"./spinner.js";import{parseAccelerator as tr,parseShortcutLabel as nr,shortcutKeycaps as rr}from"./shortcut-label.js";import{ADW_LENGTH_UNITS as ir,DEFAULT_DPI as ar,adwLengthToPx as or,normalizeLengthUnit as sr}from"./length-unit.js";import{ADW_SWIPE_BORDER as cr,DEFAULT_MAX_SIDEBAR_WIDTH as lr,DEFAULT_MIN_SIDEBAR_WIDTH as ur,DEFAULT_SIDEBAR_WIDTH_FRACTION as dr,DEFAULT_SIDEBAR_WIDTH_UNIT as fr,INSTANT_SPLIT_VIEW_ANIMATOR as pr,NAVIGATION_SPLIT_VIEW_CRITICALS as mr,NavigationSplitViewState as hr,OverlaySplitViewState as gr,isSidebarAtVisualStart as _r,layoutNavigationSplitView as vr,layoutOverlaySplitView as yr,measureSplitViewHorizontal as br,resolveNaturalSidebarWidth as xr,resolveNavigationAction as Sr,resolveNavigationSidebarWidth as Cr,resolveNavigationStack as wr,resolveOverlaySidebarWidth as Tr,resolveSidebarBounds as Er,resolveSwipeArea as Dr,resolveSwipeRelease as Or,resolveSwipeSnapPoints as kr,resolveSwipeStart as Ar,swipeCancelProgress as jr,tagsConflict as Mr}from"./split-view.js";import{DEFAULT_DROPDOWN_TOOLTIP as Nr,SPLIT_BUTTON_DISABLED_OPACITY as Pr,SplitButtonState as Fr,isSplitButtonDirection as Ir,menuButtonArrowIcon as Lr,menuButtonPopupDirection as Rr,parseMenuEntries as zr,resolveDropdownTooltip as Br,splitButtonArrowIcon as Vr,splitButtonPopupDirection as Hr,splitButtonRootState as Ur,splitButtonStyleClasses as Wr}from"./split-button.js";import{DEFAULT_INDICATOR_DESCRIPTION_STRINGS as Gr,INLINE_VIEW_SWITCHER_DISPLAY_MODES as Kr,VIEW_SWITCHER_BADGE_LIMIT as qr,VIEW_SWITCHER_DRAG_SWITCH_DELAY as Jr,VIEW_SWITCHER_FALLBACK_ICON as Yr,VIEW_SWITCHER_NO_SELECTION as Xr,VIEW_SWITCHER_POLICIES as Zr,ViewSwitcherBarState as Qr,ViewSwitcherDragSwitch as $r,ViewSwitcherState as ei,buildInlineToggles as ti,buildViewSwitcherButtons as ni,createViewSwitcherPage as ri,inlineToggleTooltip as ii,isInlineViewSwitcherDisplayMode as ai,isViewSwitcherButtonVisible as oi,isViewSwitcherPolicy as si,pageIndexForToggle as ci,shouldRevealViewSwitcherBar as li,toggleIndexForPage as ui,viewSwitcherBadgeLabel as di,viewSwitcherButtonOrientation as fi,viewSwitcherIconName as pi,viewSwitcherIndicatorDescription as mi,viewSwitcherLabel as hi,viewSwitcherPageFromStackPage as gi,viewSwitcherPagesFromStack as _i}from"./view-switcher.js";import{DEFAULT_TAB_AUTOHIDE as vi,TabViewState as yi,isDescendantOfPage as bi,successorAfterClose as xi,tabCloseVisible as Si,tabIconState as Ci,tabTooltip as wi,tabTooltipIsMarkup as Ti,tabsRevealed as Ei}from"./tab-view.js";import{UNTITLED_PAGE_LABEL as Di,collectSearchRows as Oi,countVisiblePages as ki,createSearchRowSubtitle as Ai,defaultCaseFolder as ji,derivePreferencesGroupHeader as Mi,escapeMarkup as Ni,makeComparable as Pi,rowMatchesQuery as Fi,searchPreferences as Ii,stripMarkup as Li}from"./preferences.js";import{ADW_MAX_OVERSHOOT_DISTANCE as Ri,ADW_OVERSHOOT_SETTLE_MS as zi,ADW_UNDERSHOOT_CLASSES as Bi,ADW_UNDERSHOOT_SIZE as Vi,accumulateOvershoot as Hi,isScrolledFromEnd as Ui,isScrolledFromStart as Wi,overshootDistance as Gi,scrollMaxValue as Ki,scrollUndershootClasses as qi}from"./scrolling.js";import{POPOVER_ITEM_RADIUS as Ji,POPOVER_MENU_PADDING as Yi,POPOVER_PADDING as Xi,POPOVER_RADIUS as Zi,PopoverState as Qi,resolvePopoverKey as $i}from"./popover.js";import{ADW_WRAP_BOX_DEFAULT_ALIGN as ea,ADW_WRAP_BOX_DEFAULT_JUSTIFY as ta,ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE as na,ADW_WRAP_BOX_DEFAULT_LENGTH_UNIT as ra,ADW_WRAP_BOX_DEFAULT_PACK_DIRECTION as ia,ADW_WRAP_BOX_DEFAULT_SPACING as aa,ADW_WRAP_BOX_DEFAULT_WRAP_POLICY as oa,ADW_WRAP_BOX_JUSTIFY_MODES as sa,ADW_WRAP_BOX_NATURAL_LINE_LENGTH_UNSET as ca,ADW_WRAP_BOX_PACK_DIRECTIONS as la,ADW_WRAP_POLICIES as ua,normalizeNaturalLineLength as da,normalizeWrapBoxAlign as fa,normalizeWrapBoxJustify as pa,normalizeWrapBoxLengthUnit as ma,normalizeWrapBoxPackDirection as ha,normalizeWrapBoxSpacing as ga,normalizeWrapPolicy as _a,resolveWrapBoxChildOrder as va,resolveWrapBoxLine as ya,wrapBoxLengthToPx as ba,wrapPolicyFlexShrink as xa}from"./wrap-box.js";export{i as ADW_ABOUT_DIALOG_LABELS,S as ADW_ACCENT_BG_COLORS,C as ADW_ACCENT_COLOR_NAMES,w as ADW_ACCENT_FG_COLOR,X as ADW_BANNER_BUTTON_STYLES,Z as ADW_BANNER_BUTTON_STYLE_CLASSES,Q as ADW_BANNER_DEFAULTS,le as ADW_BUTTON_CONTENT_DEFAULTS,be as ADW_BUTTON_STYLE_ALIASES,xe as ADW_BUTTON_STYLE_CLASSES,lt as ADW_CLAMP_DEFAULTS,ut as ADW_CLAMP_SIZE_CLASSES,yn as ADW_COMBO_NO_SELECTION,a as ADW_CREDITS_SECTION_TITLES,Lt as ADW_DATA_GRID_ROW_VARIANTS,T as ADW_DEFAULT_ACCENT_COLOR,ir as ADW_LENGTH_UNITS,o as ADW_LICENSES,s as ADW_LICENSE_ALIASES,c as ADW_LICENSE_DEFAULTS,l as ADW_LICENSE_WARRANTY_TEMPLATE,Ri as ADW_MAX_OVERSHOOT_DISTANCE,zi as ADW_OVERSHOOT_SETTLE_MS,jn as ADW_SIDEBAR_NO_SELECTION,Ln as ADW_SPINNER_CONTRACT_DISTANCE,Rn as ADW_SPINNER_CYCLES_PER_LOOP,zn as ADW_SPINNER_CYCLE_LENGTH,Bn as ADW_SPINNER_EXTEND_DISTANCE,Vn as ADW_SPINNER_IDLE_DISTANCE,Hn as ADW_SPINNER_MAX_ARC_LENGTH,dt as ADW_SPINNER_MAX_SIZE,Un as ADW_SPINNER_MIN_ARC_LENGTH,ft as ADW_SPINNER_MIN_SIZE,Wn as ADW_SPINNER_N_CYCLES,Gn as ADW_SPINNER_OVERLAP_DISTANCE,Kn as ADW_SPINNER_SPIN_DURATION_MS,qn as ADW_SPINNER_START_ANGLE,Jn as ADW_SPINNER_STILL_PROGRESS,Yn as ADW_SPINNER_TRACK_OPACITY,cr as ADW_SWIPE_BORDER,we as ADW_SWIPE_DECELERATION_TOUCH,Te as ADW_SWIPE_DECELERATION_TOUCHPAD,Ee as ADW_SWIPE_DRAG_THRESHOLD,De as ADW_SWIPE_EPSILON,Oe as ADW_SWIPE_HISTORY_THRESHOLD_MS,ke as ADW_SWIPE_PARABOLA_MULTIPLIER,Ae as ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_H,je as ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_V,Me as ADW_SWIPE_VELOCITY_CURVE_THRESHOLD,Ne as ADW_SWIPE_VELOCITY_THRESHOLD_TOUCH,Pe as ADW_SWIPE_VELOCITY_THRESHOLD_TOUCHPAD,pt as ADW_TOOLBAR_BAR_CLASSES,mt as ADW_TOOLBAR_VIEW_CLASSES,ht as ADW_TOOLBAR_VIEW_DEFAULTS,u as ADW_TRANSLATOR_CREDITS_SENTINELS,Bi as ADW_UNDERSHOOT_CLASSES,Vi as ADW_UNDERSHOOT_SIZE,ea as ADW_WRAP_BOX_DEFAULT_ALIGN,ta as ADW_WRAP_BOX_DEFAULT_JUSTIFY,na as ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE,ra as ADW_WRAP_BOX_DEFAULT_LENGTH_UNIT,ia as ADW_WRAP_BOX_DEFAULT_PACK_DIRECTION,aa as ADW_WRAP_BOX_DEFAULT_SPACING,oa as ADW_WRAP_BOX_DEFAULT_WRAP_POLICY,sa as ADW_WRAP_BOX_JUSTIFY_MODES,ca as ADW_WRAP_BOX_NATURAL_LINE_LENGTH_UNSET,la as ADW_WRAP_BOX_PACK_DIRECTIONS,ua as ADW_WRAP_POLICIES,z as AVATAR_COLORS,B as AVATAR_COLOR_COUNT,N as ActionRowState,Jt as AdwAlertResponses,ae as AdwBreakpoint,gn as AdwToast,_n as AdwToastQueue,On as BACK_BUTTON_FALLBACK_TOOLTIP,ue as BUTTON_CONTENT_FALLBACK_ICON,de as BUTTON_CONTENT_STYLE_CLASS,P as BUTTON_ROW_ACTIVATABLE,Yt as BottomSheetPresentation,ce as BreakpointBinState,F as ButtonRowState,Zt as CAPS_LOCK_ICON_NAME,Qt as CAPS_LOCK_TOOLTIP,We as CAROUSEL_SCROLL_TIMEOUT_MS,Ge as CAROUSEL_SETTLE_EPSILON,Ke as CarouselState,bn as ComboState,Rt as DATA_GRID_CELL_CLASS,zt as DATA_GRID_ROW_CLASS,ar as DEFAULT_DPI,Nr as DEFAULT_DROPDOWN_TOOLTIP,kt as DEFAULT_ICON_COLOR,At as DEFAULT_ICON_COLOR_DARK,Gr as DEFAULT_INDICATOR_DESCRIPTION_STRINGS,lr as DEFAULT_MAX_SIDEBAR_WIDTH,ur as DEFAULT_MIN_SIDEBAR_WIDTH,dr as DEFAULT_SIDEBAR_WIDTH_FRACTION,fr as DEFAULT_SIDEBAR_WIDTH_UNIT,vi as DEFAULT_TAB_AUTOHIDE,vn as DEFAULT_TOAST_TIMEOUT,$t as EMPTY_ANIMATION_DURATION_MS,en as ENTRY_ROW_APPLY_ICON_NAME,tn as ENTRY_ROW_APPLY_TOOLTIP,nn as ENTRY_ROW_EDIT_ICON_NAME,rn as ENTRY_ROW_MAX_LENGTH_LIMIT,an as ENTRY_ROW_TITLE_SPACING,on as EntryRowState,xn as ExpanderState,d as GTK_LICENSE,mn as HeaderBarState,Kr as INLINE_VIEW_SWITCHER_DISPLAY_MODES,pr as INSTANT_SPLIT_VIEW_ANIMATOR,mr as NAVIGATION_SPLIT_VIEW_CRITICALS,hr as NavigationSplitViewState,kn as NavigationViewState,gr as OverlaySplitViewState,sn as PASSWORD_CONCEAL_ICON_NAME,cn as PASSWORD_CONCEAL_LABEL,ln as PASSWORD_REVEAL_ICON_NAME,un as PASSWORD_REVEAL_LABEL,Ji as POPOVER_ITEM_RADIUS,Yi as POPOVER_MENU_PADDING,Xi as POPOVER_PADDING,Zi as POPOVER_RADIUS,dn as PasswordEntryRowState,Qi as PopoverState,rt as RadioGroupState,Pr as SPLIT_BUTTON_DISABLED_OPACITY,Mn as SidebarState,Sn as SpinState,Fr as SplitButtonState,Fe as SwipeTracker,I as SwitchRowState,yi as TabViewState,Cn as ToggleGroupState,Di as UNTITLED_PAGE_LABEL,qr as VIEW_SWITCHER_BADGE_LIMIT,Jr as VIEW_SWITCHER_DRAG_SWITCH_DELAY,Yr as VIEW_SWITCHER_FALLBACK_ICON,Xr as VIEW_SWITCHER_NO_SELECTION,Zr as VIEW_SWITCHER_POLICIES,Tn as ViewStackState,Qr as ViewSwitcherBarState,$r as ViewSwitcherDragSwitch,ei as ViewSwitcherState,L as WindowTitleState,f as aboutDialogVisibility,Hi as accumulateOvershoot,Nn as adjustSidebarSelection,or as adwLengthToPx,at as adwLerp,E as adwaitaAccent,D as adwaitaAccentBgColor,O as adwaitaAccentColor,jt as adwaitaColorScheme,k as adwaitaStandaloneColor,V as avatarColor,H as avatarColorClass,U as avatarFontSize,W as avatarInitials,G as avatarMaxFontSize,K as avatarMode,$ as bannerButtonStyleClasses,ee as bannerButtonText,te as bannerButtonVisible,ne as bannerRenderState,ti as buildInlineToggles,ni as buildViewSwitcherButtons,fe as buttonContentEllipsize,pe as buttonContentIconExpands,me as buttonContentIconIsEmpty,he as buttonContentIconName,ge as buttonContentLabelText,_e as buttonContentLabelVisible,ve as buttonContentRenderState,ye as buttonContentStyleTargetIndex,Se as buttonStyleClass,Ce as buttonStyleClasses,qe as carouselClampPosition,Je as carouselClosestSnapPoint,Ye as carouselNavigateTarget,Xe as carouselPageAllocation,Ze as carouselPageAtPosition,Qe as carouselRange,$e as carouselReorderShift,et as carouselSizesFromSnapPoints,tt as carouselSnapPoints,nt as carouselWheelStep,gt as clampAllocate,_t as clampChildSize,fn as clampEntryText,Pn as clampSidebarSelection,vt as clampSizeFromChild,yt as clampThresholds,Oi as collectSearchRows,ki as countVisiblePages,Ai as createSearchRowSubtitle,ri as createViewSwitcherPage,p as creditsSections,Bt as dataGridCellText,Vt as dataGridColumnAlign,Ht as dataGridColumnClasses,Ut as dataGridRowInteractive,Wt as dataGridTrackTemplate,Gt as dataGridTracks,ji as defaultCaseFolder,Mi as derivePreferencesGroupHeader,R as deriveRowLabels,An as describeNavigationDiagnostic,ot as easeInOutSine,st as easeOutCubic,pn as entryTextLength,Ni as escapeMarkup,oe as evaluateBreakpointCondition,q as flattenAvatarGradient,Fn as flattenSidebarItems,J as gStrHash,e as gStrStrip,t as glibClamp,ii as inlineToggleTooltip,ct as inverseLerp,A as isAdwAccentColorName,re as isBannerButtonStyle,bi as isDescendantOfPage,ai as isInlineViewSwitcherDisplayMode,m as isLicenseType,Ui as isScrolledFromEnd,Wi as isScrolledFromStart,_r as isSidebarAtVisualStart,Ir as isSplitButtonDirection,Mt as isThemeIconColor,oi as isViewSwitcherButtonVisible,si as isViewSwitcherPolicy,vr as layoutNavigationSplitView,yr as layoutOverlaySplitView,h as legalSectionVisible,g as licenseText,_ as licenseTypeForSpdxId,Pi as makeComparable,br as measureSplitViewHorizontal,Lr as menuButtonArrowIcon,Rr as menuButtonPopupDirection,bt as normalizeClampSize,wn as normalizeComboOptions,Kt as normalizeDataGridColumns,qt as normalizeDataGridVariant,En as normalizeIconName,sr as normalizeLengthUnit,da as normalizeNaturalLineLength,Xn as normalizeSpinnerAngle,fa as normalizeWrapBoxAlign,pa as normalizeWrapBoxJustify,ma as normalizeWrapBoxLengthUnit,ha as normalizeWrapBoxPackDirection,ga as normalizeWrapBoxSpacing,_a as normalizeWrapPolicy,j as onAdwaitaAccentChanged,Nt as onAdwaitaColorSchemeChanged,Gi as overshootDistance,ci as pageIndexForToggle,tr as parseAccelerator,ie as parseBannerButtonStyle,se as parseBreakpointCondition,v as parseCreditPerson,zr as parseMenuEntries,nr as parseShortcutLabel,xt as parseToolbarStyle,Y as randomAvatarColorClass,Xt as resolveBottomSheetClose,it as resolveCheckState,Br as resolveDropdownTooltip,hn as resolveHeaderBarTitle,xr as resolveNaturalSidebarWidth,Sr as resolveNavigationAction,Cr as resolveNavigationSidebarWidth,wr as resolveNavigationStack,Tr as resolveOverlaySidebarWidth,Dn as resolvePageTitle,$i as resolvePopoverKey,Er as resolveSidebarBounds,St as resolveSpinnerSize,Dr as resolveSwipeArea,Or as resolveSwipeRelease,kr as resolveSwipeSnapPoints,Ar as resolveSwipeStart,va as resolveWrapBoxChildOrder,ya as resolveWrapBoxLine,Fi as rowMatchesQuery,Ki as scrollMaxValue,qi as scrollUndershootClasses,Ii as searchPreferences,M as setAdwaitaAccent,Pt as setAdwaitaColorScheme,y as setLicense,b as setLicenseType,rr as shortcutKeycaps,li as shouldRevealViewSwitcherBar,In as sidebarHeaders,Zn as spinnerArc,Qn as spinnerArcEnd,$n as spinnerArcStart,Ct as spinnerGeometry,er as spinnerProgressAt,Vr as splitButtonArrowIcon,Hr as splitButtonPopupDirection,Ur as splitButtonRootState,Wr as splitButtonStyleClasses,n as stringIsNotEmpty,Li as stripMarkup,r as stripMnemonic,xi as successorAfterClose,Ie as swipeBounds,jr as swipeCancelProgress,Le as swipeClosestPointIndex,Re as swipeEndProgress,ze as swipeNextPointIndex,Be as swipePreviousPointIndex,Ve as swipeProjectedPointIndex,He as swipeSlope,Ue as swipeVelocityThreshold,Si as tabCloseVisible,Ci as tabIconState,wi as tabTooltip,Ti as tabTooltipIsMarkup,Ei as tabsRevealed,Mr as tagsConflict,Ft as themeIconColor,It as toggleAdwaitaColorScheme,ui as toggleIndexForPage,wt as toolbarBarStyleClasses,Tt as toolbarViewAllocate,Et as toolbarViewClasses,Dt as toolbarViewContentForSize,Ot as toolbarViewMeasure,x as translatorCreditsPeople,di as viewSwitcherBadgeLabel,fi as viewSwitcherButtonOrientation,pi as viewSwitcherIconName,mi as viewSwitcherIndicatorDescription,hi as viewSwitcherLabel,gi as viewSwitcherPageFromStackPage,_i as viewSwitcherPagesFromStack,ba as wrapBoxLengthToPx,xa as wrapPolicyFlexShrink};
|
|
@@ -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};
|
|
@@ -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
|
+
}
|
|
@@ -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';
|
|
@@ -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
|
@@ -58,6 +58,10 @@ 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';
|
|
@@ -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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/adwaita-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.45.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.45.0",
|
|
54
|
+
"@gjsify/unit": "^0.45.0",
|
|
51
55
|
"@types/node": "^25.9.2",
|
|
52
56
|
"typescript": "^6.0.3"
|
|
53
57
|
},
|