@gjsify/adwaita-core 0.32.0 → 0.33.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/chrome.js +1 -1
- package/lib/esm/conformance/index.js +1 -1
- package/lib/esm/conformance/rows.js +1 -1
- package/lib/esm/conformance/spinner.js +1 -0
- package/lib/esm/conformance/wrap-box.js +1 -1
- package/lib/esm/easing.js +1 -0
- package/lib/esm/index.js +1 -1
- package/lib/esm/length-unit.js +1 -0
- package/lib/esm/rows.js +1 -1
- package/lib/esm/spinner.js +1 -0
- package/lib/esm/split-view.js +1 -1
- package/lib/esm/view-stack.js +1 -1
- package/lib/esm/view-switcher.js +1 -1
- package/lib/esm/wrap-box.js +1 -0
- package/lib/types/conformance/about-dialog.d.ts +17 -3
- package/lib/types/conformance/carousel.d.ts +19 -5
- package/lib/types/conformance/chrome.d.ts +18 -6
- package/lib/types/conformance/data-grid.d.ts +2 -0
- package/lib/types/conformance/entry-row.d.ts +2 -0
- package/lib/types/conformance/index.d.ts +6 -4
- package/lib/types/conformance/popover.d.ts +2 -0
- package/lib/types/conformance/preferences.d.ts +16 -2
- package/lib/types/conformance/rows.d.ts +23 -0
- package/lib/types/conformance/spinner.d.ts +66 -0
- package/lib/types/conformance/split-button.d.ts +4 -0
- package/lib/types/conformance/split-view.d.ts +14 -3
- package/lib/types/conformance/tab-view.d.ts +9 -1
- package/lib/types/conformance/wrap-box.d.ts +104 -53
- package/lib/types/easing.d.ts +21 -0
- package/lib/types/index.d.ts +10 -3
- package/lib/types/length-unit.d.ts +24 -0
- package/lib/types/rows.d.ts +47 -6
- package/lib/types/spinner.d.ts +117 -0
- package/lib/types/spinner.spec.d.ts +2 -0
- package/lib/types/split-view.d.ts +1 -12
- package/lib/types/view-stack.d.ts +12 -0
- package/lib/types/view-switcher.d.ts +9 -6
- package/lib/types/wrap-box.d.ts +200 -0
- package/lib/types/wrap-box.spec.d.ts +2 -0
- package/package.json +3 -3
package/lib/esm/chrome.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./_virtual/_rolldown/runtime.js";import{glibClamp as e}from"./glib.js";
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";import{glibClamp as e}from"./glib.js";import{adwLerp as t,easeOutCubic as n,inverseLerp as r}from"./easing.js";const i={maximumSize:600,tighteningThreshold:400};function clampThresholds(e){let t=Math.max(Math.min(e.tighteningThreshold,e.maximumSize),e.childMin),n=Math.max(t,e.maximumSize);return{lower:t,max:n,upper:t+3*(n-t)}}function childSizeFrom(e,i,a){let{lower:o,max:s,upper:c}=i;return e<0?Math.min(a,Math.ceil(s)):e<=o?e:e>=c?Math.ceil(s):Math.floor(t(o,s,n(r(o,c,e))))}function clampChildSize(e,t){return childSizeFrom(e,clampThresholds(t),t.childNat)}function clampSizeFromChild(e,n){let{lower:i,max:a,upper:o}=clampThresholds(n);if(e<=i)return e;if(e>=a)return Math.trunc(o);let s=1+Math.cbrt(r(i,a,e)-1);return Math.ceil(t(i,o,s))}const a=[`small`,`medium`,`large`];function clampAllocate(e,t){let n=clampThresholds(t),r=Math.ceil(n.max),i=Math.ceil(n.lower),a=childSizeFrom(e,n,t.childNat);return{childSize:a,childMaximum:r,lowerThreshold:i,sizeClass:a>=r?`large`:a<=i?`small`:`medium`,offset:Math.trunc((e-a)/2)}}function normalizeClampSize(e,t){let n=typeof e==`string`?Number.parseFloat(e):e??NaN;return Number.isFinite(n)?Math.max(0,Math.trunc(n)):t}const o={topBarStyle:`flat`,bottomBarStyle:`flat`,extendContentToTopEdge:!1,extendContentToBottomEdge:!1};function parseToolbarStyle(e){return e===`raised`||e===`raised-border`?e:o.topBarStyle}function toolbarBarStyleClasses(e){switch(e){case`raised`:return[`raised`];case`raised-border`:return[`raised`,`border`];default:return[]}}const s=[`undershoot-top`,`undershoot-bottom`],c=[`raised`,`border`];function toolbarViewClasses(e){let t=[];return e.topBarStyle===`flat`&&!e.extendContentToTopEdge&&e.topBarHeight>0&&t.push(`undershoot-top`),e.bottomBarStyle===`flat`&&!e.extendContentToBottomEdge&&e.bottomBarHeight>0&&t.push(`undershoot-bottom`),{view:t,topBar:toolbarBarStyleClasses(e.topBarStyle),bottomBar:toolbarBarStyleClasses(e.bottomBarStyle)}}function toolbarViewAllocate(t){let n=t.contentMin;t.extendContentToTopEdge&&(n-=t.topMin),t.extendContentToBottomEdge&&(n-=t.bottomMin),n=Math.max(n,0);let r=e(t.height-n-t.bottomMin,t.topMin,t.topNat),i=e(t.height-n-r,t.bottomMin,t.bottomNat),a=t.height,o=0;return t.extendContentToTopEdge||(a-=r,o=r),t.extendContentToBottomEdge||(a-=i),{topBarHeight:r,bottomBarHeight:i,contentHeight:a,contentOffset:o}}function toolbarViewMeasure(e){return e.orientation===`horizontal`?{minimum:Math.max(e.contentMin,Math.max(e.topMin,e.bottomMin)),natural:Math.max(e.contentNat,Math.max(e.topNat,e.bottomNat))}:e.extendContentToTopEdge&&e.extendContentToBottomEdge?{minimum:Math.max(e.contentMin,e.topMin+e.bottomMin),natural:Math.max(e.contentNat,e.topNat+e.bottomNat)}:e.extendContentToTopEdge?{minimum:Math.max(e.contentMin,e.topMin)+e.bottomMin,natural:Math.max(e.contentNat,e.topNat)+e.bottomNat}:e.extendContentToBottomEdge?{minimum:Math.max(e.contentMin,e.bottomMin)+e.topMin,natural:Math.max(e.contentNat,e.bottomNat)+e.topNat}:{minimum:e.contentMin+e.topMin+e.bottomMin,natural:e.contentNat+e.topNat+e.bottomNat}}function toolbarViewContentForSize(e,t){let n=e,r=e;return t.extendContentToTopEdge||(n-=t.topMinHeight,r-=t.topNatHeight),t.extendContentToBottomEdge||(n-=t.bottomMinHeight,r-=t.bottomNatHeight),{forSizeMin:n,forSizeNat:r}}const l=16,u=64;function spinnerGeometry(e,t){let n=Math.min(Math.floor(Math.min(e,t)/2),64/2),r=n*2;return{radius:n,diameter:r,lineWidth:r/8,centerX:Math.round(e/2),centerY:Math.round(t/2)}}function resolveSpinnerSize(e){let t=typeof e==`string`?Number.parseFloat(e):e??NaN;return Number.isFinite(t)?Math.max(t,16):16}export{i as ADW_CLAMP_DEFAULTS,a as ADW_CLAMP_SIZE_CLASSES,u as ADW_SPINNER_MAX_SIZE,l as ADW_SPINNER_MIN_SIZE,c as ADW_TOOLBAR_BAR_CLASSES,s as ADW_TOOLBAR_VIEW_CLASSES,o as ADW_TOOLBAR_VIEW_DEFAULTS,clampAllocate,clampChildSize,clampSizeFromChild,clampThresholds,normalizeClampSize,parseToolbarStyle,resolveSpinnerSize,spinnerGeometry,toolbarBarStyleClasses,toolbarViewAllocate,toolbarViewClasses,toolbarViewContentForSize,toolbarViewMeasure};
|
|
@@ -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{ACTION_ROW_ACTIVATION_VECTORS as p,BUTTON_ROW_ACTIVATABLE_VECTORS as m,BUTTON_ROW_ICON_VECTORS as h,LABEL_VISIBILITY_VECTORS as g,SWITCH_ROW_NOTIFY_VECTORS as _,WINDOW_TITLE_VECTORS as v}from"./action-row.js";import{AVATAR_COLOR_VECTORS as y,AVATAR_FONT_SIZE_VECTORS as b,AVATAR_INITIALS_VECTORS as x,AVATAR_MODE_VECTORS as S}from"./avatar.js";import{BANNER_BUTTON_STYLE_PARSE_VECTORS as C,BANNER_BUTTON_STYLE_VECTORS as w,BANNER_BUTTON_TEXT_VECTORS as T,BANNER_BUTTON_VISIBLE_VECTORS as E,BANNER_DEFAULT_VECTORS as D}from"./banner.js";import{BUTTON_CONTENT_DEFAULT_VECTORS as O,BUTTON_CONTENT_ELLIPSIZE_VECTORS as k,BUTTON_CONTENT_ICON_VECTORS as A,BUTTON_CONTENT_LABEL_VECTORS as j,BUTTON_CONTENT_STYLE_TARGET_VECTORS as M,BUTTON_CONTENT_TEXT_VECTORS as N}from"./button-content.js";import{CAROUSEL_CLAMP_VECTORS as P,CAROUSEL_NAVIGATE_VECTORS as F,CAROUSEL_PAGE_AT_POSITION_VECTORS as I,CAROUSEL_PAGE_LIST_VECTORS as L,CAROUSEL_PROPERTY_DEFAULT_VECTORS as R,CAROUSEL_RANGE_VECTORS as z,CAROUSEL_REORDER_SHIFT_VECTORS as B,CAROUSEL_REVEAL_VECTORS as V,CAROUSEL_SIZES_FROM_SNAP_POINTS_VECTORS as H,CAROUSEL_SNAP_POINT_VECTORS as U,CAROUSEL_WHEEL_LOCKOUT_VECTORS as W,CAROUSEL_WHEEL_VECTORS as G}from"./carousel.js";import{RADIO_GROUP_VECTORS as K}from"./checks.js";import{CLAMP_ALLOCATE_VECTORS as q,CLAMP_CHILD_SIZE_VECTORS as J,CLAMP_PROPERTY_VECTORS as Y,CLAMP_SIZE_FROM_CHILD_VECTORS as X,CLAMP_THRESHOLD_VECTORS as Z,SPINNER_GEOMETRY_VECTORS as Q,SPINNER_SIZE_VECTORS as $,TOOLBAR_VIEW_ALLOCATE_VECTORS as ee,TOOLBAR_VIEW_CLASS_VECTORS as te,TOOLBAR_VIEW_CONTENT_FOR_SIZE_VECTORS as ne,TOOLBAR_VIEW_MEASURE_VECTORS as re}from"./chrome.js";import{DATA_GRID_CELL_TEXT_VECTORS as ie,DATA_GRID_COLUMN_CLASS_VECTORS as ae,DATA_GRID_COLUMN_NORMALIZE_VECTORS as oe,DATA_GRID_INTERACTIVE_VECTORS as se,DATA_GRID_TRACK_VECTORS as ce,DATA_GRID_VARIANT_VECTORS as le}from"./data-grid.js";import{BOTTOM_SHEET_CLOSE_VECTORS as ue,BOTTOM_SHEET_PRESENTATION_VECTORS as de,runBottomSheetSteps as fe}from"./dialog.js";import{ENTRY_MAX_LENGTH_VECTORS as pe,ENTRY_ROW_ACTIVATION_VECTORS as me,ENTRY_ROW_GUARD_VECTORS as he,ENTRY_ROW_STATE_VECTORS as ge,ENTRY_TEXT_LENGTH_VECTORS as _e,PASSWORD_ENTRY_ROW_VECTORS as ve,PASSWORD_REVEAL_GUARD_VECTORS as ye}from"./entry-row.js";import{COMBO_SELECTION_VECTORS as be}from"./rows.js";import{VIEW_STACK_ICON_NAME_VECTORS as xe,VIEW_STACK_PAGE_VECTORS as Se,VIEW_STACK_VECTORS as Ce}from"./view-stack.js";import{NAVIGATION_VIEW_VECTORS as we,collectNavigationState as Te,navigationEventLog as Ee,runNavigationSteps as De}from"./navigation-view.js";import{SIDEBAR_ACTIVATION_VECTORS as Oe,SIDEBAR_CLAMP_VECTORS as ke,SIDEBAR_FILTER_VECTORS as Ae,SIDEBAR_ITEMS_CHANGED_VECTORS as je,SIDEBAR_ITEM_FLAG_VECTORS as Me,SIDEBAR_MODEL_VECTORS as Ne,SIDEBAR_MODE_VECTORS as Pe}from"./sidebar.js";import{ADW_LENGTH_UNIT_VECTORS as Fe,GLIB_CLAMP_VECTORS as Ie,NATURAL_SIDEBAR_WIDTH_VECTORS as Le,NAVIGATION_ACTION_VECTORS as Re,NAVIGATION_SPLIT_VIEW_LAYOUT_VECTORS as ze,NAVIGATION_STACK_VECTORS as Be,OVERLAY_COLLAPSE_VECTORS as Ve,OVERLAY_SPLIT_VIEW_LAYOUT_VECTORS as He,OVERLAY_SWIPE_AREA_VECTORS as Ue,OVERLAY_SWIPE_CANCEL_VECTORS as We,OVERLAY_SWIPE_RELEASE_VECTORS as Ge,OVERLAY_SWIPE_SNAP_POINT_VECTORS as Ke,OVERLAY_SWIPE_START_VECTORS as qe,SIDEBAR_BOUNDS_VECTORS as Je,SIDEBAR_WIDTH_VECTORS as Ye,SPLIT_VIEW_MEASURE_VECTORS as Xe,TAGS_CONFLICT_VECTORS as Ze}from"./split-view.js";import{MENU_BUTTON_DIRECTION_VECTORS as Qe,SPLIT_BUTTON_CONTENT_VECTORS as $e,SPLIT_BUTTON_DIRECTION_VECTORS as et,SPLIT_BUTTON_DROPDOWN_VECTORS as tt,SPLIT_BUTTON_MENU_ACTIVATION_VECTORS as nt,SPLIT_BUTTON_MENU_PARSE_VECTORS as rt,SPLIT_BUTTON_ROOT_STATE_VECTORS as it,SPLIT_BUTTON_STYLE_CLASS_VECTORS as at,SPLIT_BUTTON_TOOLTIP_VECTORS as ot}from"./split-button.js";import{INLINE_TOGGLE_VECTORS as st,INLINE_TOOLTIP_VECTORS as ct,VIEW_SWITCHER_BADGE_VECTORS as lt,VIEW_SWITCHER_BAR_REVEAL_VECTORS as ut,VIEW_SWITCHER_BAR_VECTORS as dt,VIEW_SWITCHER_BUTTON_VECTORS as ft,VIEW_SWITCHER_BUTTON_VISIBILITY_VECTORS as pt,VIEW_SWITCHER_DRAG_VECTORS as mt,VIEW_SWITCHER_ICON_VECTORS as ht,VIEW_SWITCHER_MNEMONIC_VECTORS as gt,VIEW_SWITCHER_REBUILD_VECTORS as _t,VIEW_SWITCHER_SELECTION_VECTORS as vt,createViewSwitcherClock as yt}from"./view-switcher.js";import{TABS_REVEALED_VECTORS as bt,TAB_CLOSE_VISIBLE_VECTORS as xt,TAB_DESCENDANT_VECTORS as St,TAB_ICON_STATE_VECTORS as Ct,TAB_PAGE_DESCRIPTOR_VECTORS as wt,TAB_SUCCESSOR_VECTORS as Tt,TAB_TOOLTIP_VECTORS as Et,TAB_VIEW_VECTORS as Dt,applyTabViewOp as Ot,seedTabViewPages as kt,tabViewClosing as At,tabViewOrder as jt}from"./tab-view.js";import{CASE_FOLD_VECTORS as Mt,MAKE_COMPARABLE_VECTORS as Nt,PREFERENCES_GROUP_HEADER_VECTORS as Pt,PREFERENCES_SEARCH_PAGES as Ft,PREFERENCES_SEARCH_VECTORS as It,ROW_MATCH_VECTORS as Lt,SEARCH_CORPUS_VECTORS as Rt,SEARCH_ROW_SUBTITLE_VECTORS as zt,STRIP_MARKUP_VECTORS as Bt,STRIP_MNEMONIC_VECTORS as Vt}from"./preferences.js";import{POPOVER_KEY_VECTORS as Ht,POPOVER_SURFACE_VECTORS as Ut}from"./popover.js";import{ADW_WRAP_BOX_DEFAULT_ALIGN as Wt,ADW_WRAP_BOX_DEFAULT_JUSTIFY as Gt,ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE as Kt,ADW_WRAP_BOX_DEFAULT_SPACING as qt,WRAP_BOX_LINE_VECTORS as Jt,WRAP_BOX_SPACING_NOTIFY_VECTORS as Yt,WRAP_BOX_SPACING_VECTORS as Xt}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 ACTION_ROW_ACTIVATION_VECTORS,Fe as ADW_LENGTH_UNIT_VECTORS,Wt as ADW_WRAP_BOX_DEFAULT_ALIGN,Gt as ADW_WRAP_BOX_DEFAULT_JUSTIFY,Kt as ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE,qt as ADW_WRAP_BOX_DEFAULT_SPACING,y as AVATAR_COLOR_VECTORS,b as AVATAR_FONT_SIZE_VECTORS,x as AVATAR_INITIALS_VECTORS,S as AVATAR_MODE_VECTORS,C as BANNER_BUTTON_STYLE_PARSE_VECTORS,w as BANNER_BUTTON_STYLE_VECTORS,T as BANNER_BUTTON_TEXT_VECTORS,E as BANNER_BUTTON_VISIBLE_VECTORS,D as BANNER_DEFAULT_VECTORS,ue as BOTTOM_SHEET_CLOSE_VECTORS,de as BOTTOM_SHEET_PRESENTATION_VECTORS,O as BUTTON_CONTENT_DEFAULT_VECTORS,k as BUTTON_CONTENT_ELLIPSIZE_VECTORS,A as BUTTON_CONTENT_ICON_VECTORS,j as BUTTON_CONTENT_LABEL_VECTORS,M as BUTTON_CONTENT_STYLE_TARGET_VECTORS,N as BUTTON_CONTENT_TEXT_VECTORS,m as BUTTON_ROW_ACTIVATABLE_VECTORS,h as BUTTON_ROW_ICON_VECTORS,P as CAROUSEL_CLAMP_VECTORS,F as CAROUSEL_NAVIGATE_VECTORS,I as CAROUSEL_PAGE_AT_POSITION_VECTORS,L as CAROUSEL_PAGE_LIST_VECTORS,R as CAROUSEL_PROPERTY_DEFAULT_VECTORS,z as CAROUSEL_RANGE_VECTORS,B as CAROUSEL_REORDER_SHIFT_VECTORS,V as CAROUSEL_REVEAL_VECTORS,H as CAROUSEL_SIZES_FROM_SNAP_POINTS_VECTORS,U as CAROUSEL_SNAP_POINT_VECTORS,W as CAROUSEL_WHEEL_LOCKOUT_VECTORS,G as CAROUSEL_WHEEL_VECTORS,Mt as CASE_FOLD_VECTORS,q as CLAMP_ALLOCATE_VECTORS,J as CLAMP_CHILD_SIZE_VECTORS,Y as CLAMP_PROPERTY_VECTORS,X as CLAMP_SIZE_FROM_CHILD_VECTORS,Z as CLAMP_THRESHOLD_VECTORS,be as COMBO_SELECTION_VECTORS,a as CREDITS_SECTIONS_VECTORS,o as CREDIT_PERSON_VECTORS,ie as DATA_GRID_CELL_TEXT_VECTORS,ae as DATA_GRID_COLUMN_CLASS_VECTORS,oe as DATA_GRID_COLUMN_NORMALIZE_VECTORS,se as DATA_GRID_INTERACTIVE_VECTORS,ce as DATA_GRID_TRACK_VECTORS,le as DATA_GRID_VARIANT_VECTORS,pe as ENTRY_MAX_LENGTH_VECTORS,me as ENTRY_ROW_ACTIVATION_VECTORS,he as ENTRY_ROW_GUARD_VECTORS,ge as ENTRY_ROW_STATE_VECTORS,_e as ENTRY_TEXT_LENGTH_VECTORS,Ie as GLIB_CLAMP_VECTORS,st as INLINE_TOGGLE_VECTORS,ct as INLINE_TOOLTIP_VECTORS,g 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,Nt as MAKE_COMPARABLE_VECTORS,Qe as MENU_BUTTON_DIRECTION_VECTORS,Le as NATURAL_SIDEBAR_WIDTH_VECTORS,Re as NAVIGATION_ACTION_VECTORS,ze as NAVIGATION_SPLIT_VIEW_LAYOUT_VECTORS,Be as NAVIGATION_STACK_VECTORS,we as NAVIGATION_VIEW_VECTORS,Ve as OVERLAY_COLLAPSE_VECTORS,He as OVERLAY_SPLIT_VIEW_LAYOUT_VECTORS,Ue as OVERLAY_SWIPE_AREA_VECTORS,We as OVERLAY_SWIPE_CANCEL_VECTORS,Ge as OVERLAY_SWIPE_RELEASE_VECTORS,Ke as OVERLAY_SWIPE_SNAP_POINT_VECTORS,qe as OVERLAY_SWIPE_START_VECTORS,ve as PASSWORD_ENTRY_ROW_VECTORS,ye as PASSWORD_REVEAL_GUARD_VECTORS,Ht as POPOVER_KEY_VECTORS,Ut as POPOVER_SURFACE_VECTORS,Pt as PREFERENCES_GROUP_HEADER_VECTORS,Ft as PREFERENCES_SEARCH_PAGES,It as PREFERENCES_SEARCH_VECTORS,K as RADIO_GROUP_VECTORS,Lt as ROW_MATCH_VECTORS,Rt as SEARCH_CORPUS_VECTORS,zt as SEARCH_ROW_SUBTITLE_VECTORS,Oe as SIDEBAR_ACTIVATION_VECTORS,Je as SIDEBAR_BOUNDS_VECTORS,ke as SIDEBAR_CLAMP_VECTORS,Ae as SIDEBAR_FILTER_VECTORS,je as SIDEBAR_ITEMS_CHANGED_VECTORS,Me as SIDEBAR_ITEM_FLAG_VECTORS,Ne as SIDEBAR_MODEL_VECTORS,Pe as SIDEBAR_MODE_VECTORS,Ye as SIDEBAR_WIDTH_VECTORS,Q as SPINNER_GEOMETRY_VECTORS,$ as SPINNER_SIZE_VECTORS,$e as SPLIT_BUTTON_CONTENT_VECTORS,et as SPLIT_BUTTON_DIRECTION_VECTORS,tt as SPLIT_BUTTON_DROPDOWN_VECTORS,nt as SPLIT_BUTTON_MENU_ACTIVATION_VECTORS,rt as SPLIT_BUTTON_MENU_PARSE_VECTORS,it as SPLIT_BUTTON_ROOT_STATE_VECTORS,at as SPLIT_BUTTON_STYLE_CLASS_VECTORS,ot as SPLIT_BUTTON_TOOLTIP_VECTORS,Xe as SPLIT_VIEW_MEASURE_VECTORS,Bt as STRIP_MARKUP_VECTORS,Vt as STRIP_MNEMONIC_VECTORS,_ as SWITCH_ROW_NOTIFY_VECTORS,bt as TABS_REVEALED_VECTORS,xt as TAB_CLOSE_VISIBLE_VECTORS,St as TAB_DESCENDANT_VECTORS,Ct as TAB_ICON_STATE_VECTORS,wt as TAB_PAGE_DESCRIPTOR_VECTORS,Tt as TAB_SUCCESSOR_VECTORS,Et as TAB_TOOLTIP_VECTORS,Dt as TAB_VIEW_VECTORS,Ze as TAGS_CONFLICT_VECTORS,ee as TOOLBAR_VIEW_ALLOCATE_VECTORS,te as TOOLBAR_VIEW_CLASS_VECTORS,ne as TOOLBAR_VIEW_CONTENT_FOR_SIZE_VECTORS,re as TOOLBAR_VIEW_MEASURE_VECTORS,f as TRANSLATOR_CREDITS_VECTORS,xe as VIEW_STACK_ICON_NAME_VECTORS,Se as VIEW_STACK_PAGE_VECTORS,Ce as VIEW_STACK_VECTORS,lt as VIEW_SWITCHER_BADGE_VECTORS,ut as VIEW_SWITCHER_BAR_REVEAL_VECTORS,dt as VIEW_SWITCHER_BAR_VECTORS,ft as VIEW_SWITCHER_BUTTON_VECTORS,pt as VIEW_SWITCHER_BUTTON_VISIBILITY_VECTORS,mt as VIEW_SWITCHER_DRAG_VECTORS,ht as VIEW_SWITCHER_ICON_VECTORS,gt as VIEW_SWITCHER_MNEMONIC_VECTORS,_t as VIEW_SWITCHER_REBUILD_VECTORS,vt as VIEW_SWITCHER_SELECTION_VECTORS,v as WINDOW_TITLE_VECTORS,Jt as WRAP_BOX_LINE_VECTORS,Yt as WRAP_BOX_SPACING_NOTIFY_VECTORS,Xt as WRAP_BOX_SPACING_VECTORS,Ot as applyTabViewOp,Te as collectNavigationState,yt as createViewSwitcherClock,Ee as navigationEventLog,fe as runBottomSheetSteps,De as runNavigationSteps,kt as seedTabViewPages,At as tabViewClosing,jt 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{ACTION_ROW_ACTIVATION_VECTORS as p,BUTTON_ROW_ACTIVATABLE_VECTORS as m,BUTTON_ROW_ICON_VECTORS as h,LABEL_VISIBILITY_VECTORS as g,SWITCH_ROW_NOTIFY_VECTORS as _,WINDOW_TITLE_VECTORS as v}from"./action-row.js";import{AVATAR_COLOR_VECTORS as y,AVATAR_FONT_SIZE_VECTORS as b,AVATAR_INITIALS_VECTORS as x,AVATAR_MODE_VECTORS as S}from"./avatar.js";import{BANNER_BUTTON_STYLE_PARSE_VECTORS as C,BANNER_BUTTON_STYLE_VECTORS as w,BANNER_BUTTON_TEXT_VECTORS as T,BANNER_BUTTON_VISIBLE_VECTORS as E,BANNER_DEFAULT_VECTORS as D}from"./banner.js";import{BUTTON_CONTENT_DEFAULT_VECTORS as O,BUTTON_CONTENT_ELLIPSIZE_VECTORS as k,BUTTON_CONTENT_ICON_VECTORS as A,BUTTON_CONTENT_LABEL_VECTORS as j,BUTTON_CONTENT_STYLE_TARGET_VECTORS as M,BUTTON_CONTENT_TEXT_VECTORS as N}from"./button-content.js";import{CAROUSEL_CLAMP_VECTORS as P,CAROUSEL_NAVIGATE_VECTORS as F,CAROUSEL_PAGE_AT_POSITION_VECTORS as I,CAROUSEL_PAGE_LIST_VECTORS as L,CAROUSEL_PROPERTY_DEFAULT_VECTORS as R,CAROUSEL_RANGE_VECTORS as z,CAROUSEL_REORDER_SHIFT_VECTORS as B,CAROUSEL_REVEAL_VECTORS as V,CAROUSEL_SIZES_FROM_SNAP_POINTS_VECTORS as H,CAROUSEL_SNAP_POINT_VECTORS as U,CAROUSEL_WHEEL_LOCKOUT_VECTORS as W,CAROUSEL_WHEEL_VECTORS as G}from"./carousel.js";import{RADIO_GROUP_VECTORS as K}from"./checks.js";import{CLAMP_ALLOCATE_VECTORS as q,CLAMP_CHILD_SIZE_VECTORS as J,CLAMP_PROPERTY_VECTORS as Y,CLAMP_SIZE_FROM_CHILD_VECTORS as X,CLAMP_THRESHOLD_VECTORS as Z,SPINNER_GEOMETRY_VECTORS as Q,SPINNER_SIZE_VECTORS as $,TOOLBAR_VIEW_ALLOCATE_VECTORS as ee,TOOLBAR_VIEW_CLASS_VECTORS as te,TOOLBAR_VIEW_CONTENT_FOR_SIZE_VECTORS as ne,TOOLBAR_VIEW_MEASURE_VECTORS as re}from"./chrome.js";import{DATA_GRID_CELL_TEXT_VECTORS as ie,DATA_GRID_COLUMN_CLASS_VECTORS as ae,DATA_GRID_COLUMN_NORMALIZE_VECTORS as oe,DATA_GRID_INTERACTIVE_VECTORS as se,DATA_GRID_TRACK_VECTORS as ce,DATA_GRID_VARIANT_VECTORS as le}from"./data-grid.js";import{BOTTOM_SHEET_CLOSE_VECTORS as ue,BOTTOM_SHEET_PRESENTATION_VECTORS as de,runBottomSheetSteps as fe}from"./dialog.js";import{ENTRY_MAX_LENGTH_VECTORS as pe,ENTRY_ROW_ACTIVATION_VECTORS as me,ENTRY_ROW_GUARD_VECTORS as he,ENTRY_ROW_STATE_VECTORS as ge,ENTRY_TEXT_LENGTH_VECTORS as _e,PASSWORD_ENTRY_ROW_VECTORS as ve,PASSWORD_REVEAL_GUARD_VECTORS as ye}from"./entry-row.js";import{COMBO_CHOOSER_VECTORS as be,COMBO_SELECTION_VECTORS as xe}from"./rows.js";import{VIEW_STACK_ICON_NAME_VECTORS as Se,VIEW_STACK_PAGE_VECTORS as Ce,VIEW_STACK_VECTORS as we}from"./view-stack.js";import{NAVIGATION_VIEW_VECTORS as Te,collectNavigationState as Ee,navigationEventLog as De,runNavigationSteps as Oe}from"./navigation-view.js";import{SIDEBAR_ACTIVATION_VECTORS as ke,SIDEBAR_CLAMP_VECTORS as Ae,SIDEBAR_FILTER_VECTORS as je,SIDEBAR_ITEMS_CHANGED_VECTORS as Me,SIDEBAR_ITEM_FLAG_VECTORS as Ne,SIDEBAR_MODEL_VECTORS as Pe,SIDEBAR_MODE_VECTORS as Fe}from"./sidebar.js";import{ADW_LENGTH_UNIT_VECTORS as Ie,GLIB_CLAMP_VECTORS as Le,NATURAL_SIDEBAR_WIDTH_VECTORS as Re,NAVIGATION_ACTION_VECTORS as ze,NAVIGATION_SPLIT_VIEW_LAYOUT_VECTORS as Be,NAVIGATION_STACK_VECTORS as Ve,OVERLAY_COLLAPSE_VECTORS as He,OVERLAY_SPLIT_VIEW_LAYOUT_VECTORS as Ue,OVERLAY_SWIPE_AREA_VECTORS as We,OVERLAY_SWIPE_CANCEL_VECTORS as Ge,OVERLAY_SWIPE_RELEASE_VECTORS as Ke,OVERLAY_SWIPE_SNAP_POINT_VECTORS as qe,OVERLAY_SWIPE_START_VECTORS as Je,SIDEBAR_BOUNDS_VECTORS as Ye,SIDEBAR_WIDTH_VECTORS as Xe,SPLIT_VIEW_MEASURE_VECTORS as Ze,TAGS_CONFLICT_VECTORS as Qe}from"./split-view.js";import{MENU_BUTTON_DIRECTION_VECTORS as $e,SPLIT_BUTTON_CONTENT_VECTORS as et,SPLIT_BUTTON_DIRECTION_VECTORS as tt,SPLIT_BUTTON_DROPDOWN_VECTORS as nt,SPLIT_BUTTON_MENU_ACTIVATION_VECTORS as rt,SPLIT_BUTTON_MENU_PARSE_VECTORS as it,SPLIT_BUTTON_ROOT_STATE_VECTORS as at,SPLIT_BUTTON_STYLE_CLASS_VECTORS as ot,SPLIT_BUTTON_TOOLTIP_VECTORS as st}from"./split-button.js";import{INLINE_TOGGLE_VECTORS as ct,INLINE_TOOLTIP_VECTORS as lt,VIEW_SWITCHER_BADGE_VECTORS as ut,VIEW_SWITCHER_BAR_REVEAL_VECTORS as dt,VIEW_SWITCHER_BAR_VECTORS as ft,VIEW_SWITCHER_BUTTON_VECTORS as pt,VIEW_SWITCHER_BUTTON_VISIBILITY_VECTORS as mt,VIEW_SWITCHER_DRAG_VECTORS as ht,VIEW_SWITCHER_ICON_VECTORS as gt,VIEW_SWITCHER_MNEMONIC_VECTORS as _t,VIEW_SWITCHER_REBUILD_VECTORS as vt,VIEW_SWITCHER_SELECTION_VECTORS as yt,createViewSwitcherClock as bt}from"./view-switcher.js";import{TABS_REVEALED_VECTORS as xt,TAB_CLOSE_VISIBLE_VECTORS as St,TAB_DESCENDANT_VECTORS as Ct,TAB_ICON_STATE_VECTORS as wt,TAB_PAGE_DESCRIPTOR_VECTORS as Tt,TAB_SUCCESSOR_VECTORS as Et,TAB_TOOLTIP_VECTORS as Dt,TAB_VIEW_VECTORS as Ot,applyTabViewOp as kt,seedTabViewPages as At,tabViewClosing as jt,tabViewOrder as Mt}from"./tab-view.js";import{CASE_FOLD_VECTORS as Nt,MAKE_COMPARABLE_VECTORS as Pt,PREFERENCES_GROUP_HEADER_VECTORS as Ft,PREFERENCES_SEARCH_PAGES as It,PREFERENCES_SEARCH_VECTORS as Lt,ROW_MATCH_VECTORS as Rt,SEARCH_CORPUS_VECTORS as zt,SEARCH_ROW_SUBTITLE_VECTORS as Bt,STRIP_MARKUP_VECTORS as Vt,STRIP_MNEMONIC_VECTORS as Ht}from"./preferences.js";import{POPOVER_KEY_VECTORS as Ut,POPOVER_SURFACE_VECTORS as Wt}from"./popover.js";import{SPINNER_ARC_ENVELOPE as Gt,SPINNER_ARC_PHASE_VECTORS as Kt,SPINNER_ARC_TOLERANCE as qt,SPINNER_CONSTANT_VECTORS as Jt}from"./spinner.js";import{WRAP_BOX_CHILD_ORDER_VECTORS as Yt,WRAP_BOX_LENGTH_VECTORS as Xt,WRAP_BOX_LINE_VECTORS as Zt,WRAP_BOX_NATURAL_LENGTH_VECTORS as Qt,WRAP_BOX_NOTIFY_PROPERTIES as $t,WRAP_BOX_POLICY_VECTORS as en,WRAP_BOX_SPACING_NOTIFY_VECTORS as tn,WRAP_BOX_SPACING_VECTORS as nn}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 ACTION_ROW_ACTIVATION_VECTORS,Ie as ADW_LENGTH_UNIT_VECTORS,y as AVATAR_COLOR_VECTORS,b as AVATAR_FONT_SIZE_VECTORS,x as AVATAR_INITIALS_VECTORS,S as AVATAR_MODE_VECTORS,C as BANNER_BUTTON_STYLE_PARSE_VECTORS,w as BANNER_BUTTON_STYLE_VECTORS,T as BANNER_BUTTON_TEXT_VECTORS,E as BANNER_BUTTON_VISIBLE_VECTORS,D as BANNER_DEFAULT_VECTORS,ue as BOTTOM_SHEET_CLOSE_VECTORS,de as BOTTOM_SHEET_PRESENTATION_VECTORS,O as BUTTON_CONTENT_DEFAULT_VECTORS,k as BUTTON_CONTENT_ELLIPSIZE_VECTORS,A as BUTTON_CONTENT_ICON_VECTORS,j as BUTTON_CONTENT_LABEL_VECTORS,M as BUTTON_CONTENT_STYLE_TARGET_VECTORS,N as BUTTON_CONTENT_TEXT_VECTORS,m as BUTTON_ROW_ACTIVATABLE_VECTORS,h as BUTTON_ROW_ICON_VECTORS,P as CAROUSEL_CLAMP_VECTORS,F as CAROUSEL_NAVIGATE_VECTORS,I as CAROUSEL_PAGE_AT_POSITION_VECTORS,L as CAROUSEL_PAGE_LIST_VECTORS,R as CAROUSEL_PROPERTY_DEFAULT_VECTORS,z as CAROUSEL_RANGE_VECTORS,B as CAROUSEL_REORDER_SHIFT_VECTORS,V as CAROUSEL_REVEAL_VECTORS,H as CAROUSEL_SIZES_FROM_SNAP_POINTS_VECTORS,U as CAROUSEL_SNAP_POINT_VECTORS,W as CAROUSEL_WHEEL_LOCKOUT_VECTORS,G as CAROUSEL_WHEEL_VECTORS,Nt as CASE_FOLD_VECTORS,q as CLAMP_ALLOCATE_VECTORS,J as CLAMP_CHILD_SIZE_VECTORS,Y as CLAMP_PROPERTY_VECTORS,X as CLAMP_SIZE_FROM_CHILD_VECTORS,Z as CLAMP_THRESHOLD_VECTORS,be as COMBO_CHOOSER_VECTORS,xe as COMBO_SELECTION_VECTORS,a as CREDITS_SECTIONS_VECTORS,o as CREDIT_PERSON_VECTORS,ie as DATA_GRID_CELL_TEXT_VECTORS,ae as DATA_GRID_COLUMN_CLASS_VECTORS,oe as DATA_GRID_COLUMN_NORMALIZE_VECTORS,se as DATA_GRID_INTERACTIVE_VECTORS,ce as DATA_GRID_TRACK_VECTORS,le as DATA_GRID_VARIANT_VECTORS,pe as ENTRY_MAX_LENGTH_VECTORS,me as ENTRY_ROW_ACTIVATION_VECTORS,he as ENTRY_ROW_GUARD_VECTORS,ge as ENTRY_ROW_STATE_VECTORS,_e as ENTRY_TEXT_LENGTH_VECTORS,Le as GLIB_CLAMP_VECTORS,ct as INLINE_TOGGLE_VECTORS,lt as INLINE_TOOLTIP_VECTORS,g 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,Pt as MAKE_COMPARABLE_VECTORS,$e as MENU_BUTTON_DIRECTION_VECTORS,Re as NATURAL_SIDEBAR_WIDTH_VECTORS,ze as NAVIGATION_ACTION_VECTORS,Be as NAVIGATION_SPLIT_VIEW_LAYOUT_VECTORS,Ve as NAVIGATION_STACK_VECTORS,Te as NAVIGATION_VIEW_VECTORS,He as OVERLAY_COLLAPSE_VECTORS,Ue as OVERLAY_SPLIT_VIEW_LAYOUT_VECTORS,We as OVERLAY_SWIPE_AREA_VECTORS,Ge as OVERLAY_SWIPE_CANCEL_VECTORS,Ke as OVERLAY_SWIPE_RELEASE_VECTORS,qe as OVERLAY_SWIPE_SNAP_POINT_VECTORS,Je as OVERLAY_SWIPE_START_VECTORS,ve as PASSWORD_ENTRY_ROW_VECTORS,ye as PASSWORD_REVEAL_GUARD_VECTORS,Ut as POPOVER_KEY_VECTORS,Wt as POPOVER_SURFACE_VECTORS,Ft as PREFERENCES_GROUP_HEADER_VECTORS,It as PREFERENCES_SEARCH_PAGES,Lt as PREFERENCES_SEARCH_VECTORS,K as RADIO_GROUP_VECTORS,Rt as ROW_MATCH_VECTORS,zt as SEARCH_CORPUS_VECTORS,Bt as SEARCH_ROW_SUBTITLE_VECTORS,ke as SIDEBAR_ACTIVATION_VECTORS,Ye as SIDEBAR_BOUNDS_VECTORS,Ae as SIDEBAR_CLAMP_VECTORS,je as SIDEBAR_FILTER_VECTORS,Me as SIDEBAR_ITEMS_CHANGED_VECTORS,Ne as SIDEBAR_ITEM_FLAG_VECTORS,Pe as SIDEBAR_MODEL_VECTORS,Fe as SIDEBAR_MODE_VECTORS,Xe as SIDEBAR_WIDTH_VECTORS,Gt as SPINNER_ARC_ENVELOPE,Kt as SPINNER_ARC_PHASE_VECTORS,qt as SPINNER_ARC_TOLERANCE,Jt as SPINNER_CONSTANT_VECTORS,Q as SPINNER_GEOMETRY_VECTORS,$ as SPINNER_SIZE_VECTORS,et as SPLIT_BUTTON_CONTENT_VECTORS,tt as SPLIT_BUTTON_DIRECTION_VECTORS,nt as SPLIT_BUTTON_DROPDOWN_VECTORS,rt as SPLIT_BUTTON_MENU_ACTIVATION_VECTORS,it as SPLIT_BUTTON_MENU_PARSE_VECTORS,at as SPLIT_BUTTON_ROOT_STATE_VECTORS,ot as SPLIT_BUTTON_STYLE_CLASS_VECTORS,st as SPLIT_BUTTON_TOOLTIP_VECTORS,Ze as SPLIT_VIEW_MEASURE_VECTORS,Vt as STRIP_MARKUP_VECTORS,Ht as STRIP_MNEMONIC_VECTORS,_ as SWITCH_ROW_NOTIFY_VECTORS,xt as TABS_REVEALED_VECTORS,St as TAB_CLOSE_VISIBLE_VECTORS,Ct as TAB_DESCENDANT_VECTORS,wt as TAB_ICON_STATE_VECTORS,Tt as TAB_PAGE_DESCRIPTOR_VECTORS,Et as TAB_SUCCESSOR_VECTORS,Dt as TAB_TOOLTIP_VECTORS,Ot as TAB_VIEW_VECTORS,Qe as TAGS_CONFLICT_VECTORS,ee as TOOLBAR_VIEW_ALLOCATE_VECTORS,te as TOOLBAR_VIEW_CLASS_VECTORS,ne as TOOLBAR_VIEW_CONTENT_FOR_SIZE_VECTORS,re as TOOLBAR_VIEW_MEASURE_VECTORS,f as TRANSLATOR_CREDITS_VECTORS,Se as VIEW_STACK_ICON_NAME_VECTORS,Ce as VIEW_STACK_PAGE_VECTORS,we as VIEW_STACK_VECTORS,ut as VIEW_SWITCHER_BADGE_VECTORS,dt as VIEW_SWITCHER_BAR_REVEAL_VECTORS,ft as VIEW_SWITCHER_BAR_VECTORS,pt as VIEW_SWITCHER_BUTTON_VECTORS,mt as VIEW_SWITCHER_BUTTON_VISIBILITY_VECTORS,ht as VIEW_SWITCHER_DRAG_VECTORS,gt as VIEW_SWITCHER_ICON_VECTORS,_t as VIEW_SWITCHER_MNEMONIC_VECTORS,vt as VIEW_SWITCHER_REBUILD_VECTORS,yt as VIEW_SWITCHER_SELECTION_VECTORS,v as WINDOW_TITLE_VECTORS,Yt as WRAP_BOX_CHILD_ORDER_VECTORS,Xt as WRAP_BOX_LENGTH_VECTORS,Zt as WRAP_BOX_LINE_VECTORS,Qt as WRAP_BOX_NATURAL_LENGTH_VECTORS,$t as WRAP_BOX_NOTIFY_PROPERTIES,en as WRAP_BOX_POLICY_VECTORS,tn as WRAP_BOX_SPACING_NOTIFY_VECTORS,nn as WRAP_BOX_SPACING_VECTORS,kt as applyTabViewOp,Ee as collectNavigationState,bt as createViewSwitcherClock,De as navigationEventLog,fe as runBottomSheetSteps,Oe as runNavigationSteps,At as seedTabViewPages,jt as tabViewClosing,Mt as tabViewOrder};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=[{label:`One`,value:`a`},{label:`Two`,value:`b`}],t=[{name:`programmatic index set`,steps:[{op:`setOptions`,options:e},{op:`setSelectedIndex`,index:1}],selected:1,value:`b`,label:`Two`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!1}],rule:"a changed position reaches the selection, whose notify becomes `notify::selected` (:788 → :154)"},{name:`setting the index already held`,steps:[{op:`setOptions`,options:e},{op:`setSelectedIndex`,index:1},{op:`setSelectedIndex`,index:1}],selected:1,value:`b`,label:`Two`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!1}],rule:`the setter returns before touching the selection when the position holds (:785-786) — no notify`},{name:`the chooser pick`,steps:[{op:`setOptions`,options:e},{op:`select`,index:1}],selected:1,value:`b`,label:`Two`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!0}],rule:"the popup routes its position through the SAME setter (:209); only the `interactive` tag differs, and that tag is ours"},{name:`picking the option already selected`,steps:[{op:`setOptions`,options:e},{op:`select`,index:0}],selected:0,value:`a`,label:`One`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1}],rule:`the same-position guard (:785-786) applies to the user path too — reopening and re-picking notifies nothing`},{name:`a dismissed chooser`,steps:[{op:`setOptions`,options:e},{op:`select`,index:-1}],selected:0,value:`a`,label:`One`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1}],rule:`no C equivalent: a dismissed native sheet resolves to the cancel label, so the renderer looks up -1 — the guard is the substitution's`},{name:`select by value`,steps:[{op:`setOptions`,options:e},{op:`setSelectedValue`,value:`b`}],selected:1,value:`b`,label:`Two`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!1}],rule:`a value maps to the FIRST option carrying it; the port addition over the C, whose model is positional`},{name:`select by an unknown value`,steps:[{op:`setOptions`,options:e},{op:`setSelectedValue`,value:`zzz`}],selected:0,value:`a`,label:`One`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1}],rule:`an unknown value is a no-op, never a reset to 0 — a mistyped binding must not silently move the selection`},{name:`the model is replaced at the same index`,steps:[{op:`setOptions`,options:[{label:`First`,value:`a`}]},{op:`setOptions`,options:[{label:`Renamed`,value:`a`}]}],selected:0,value:`a`,label:`Renamed`,emitted:[{selected:0,value:`a`,label:`First`,interactive:!1},{selected:0,value:`a`,label:`Renamed`,interactive:!1}],rule:"the index did not move but the ITEM did — `selection_item_changed` (:157-185) repaints off the item, not the position"},{name:`the model shrinks past the selection`,steps:[{op:`setOptions`,options:e},{op:`setSelectedIndex`,index:1},{op:`setOptions`,options:[{label:`Only`,value:`a`}]}],selected:0,value:`a`,label:`Only`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!1},{selected:0,value:`a`,label:`Only`,interactive:!1}],rule:`a selection past the end of the new model falls back to 0 — GtkSingleSelection autoselects upstream, whose C is not vendored here, so this row is the ports' shared answer`},{name:`an index past the end`,steps:[{op:`setOptions`,options:[{label:`Only`,value:`a`}]},{op:`setSelectedIndex`,index:5}],selected:5,value:``,label:``,emitted:[{selected:0,value:`a`,label:`Only`,interactive:!1},{selected:5,value:``,label:``,interactive:!1}],rule:`the index is NOT clamped (the C takes any guint); the empty value/label is how "nothing to draw" is expressed here`},{name:`an empty model`,steps:[{op:`setOptions`,options:[]}],selected
|
|
1
|
+
const e=[{label:`One`,value:`a`},{label:`Two`,value:`b`}],t=[{name:`programmatic index set`,steps:[{op:`setOptions`,options:e},{op:`setSelectedIndex`,index:1}],selected:1,value:`b`,label:`Two`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!1}],rule:"a changed position reaches the selection, whose notify becomes `notify::selected` (:788 → :154)"},{name:`setting the index already held`,steps:[{op:`setOptions`,options:e},{op:`setSelectedIndex`,index:1},{op:`setSelectedIndex`,index:1}],selected:1,value:`b`,label:`Two`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!1}],rule:`the setter returns before touching the selection when the position holds (:785-786) — no notify`},{name:`the chooser pick`,steps:[{op:`setOptions`,options:e},{op:`select`,index:1}],selected:1,value:`b`,label:`Two`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!0}],rule:"the popup routes its position through the SAME setter (:209); only the `interactive` tag differs, and that tag is ours"},{name:`picking the option already selected`,steps:[{op:`setOptions`,options:e},{op:`select`,index:0}],selected:0,value:`a`,label:`One`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1}],rule:`the same-position guard (:785-786) applies to the user path too — reopening and re-picking notifies nothing`},{name:`a dismissed chooser`,steps:[{op:`setOptions`,options:e},{op:`select`,index:-1}],selected:0,value:`a`,label:`One`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1}],rule:`no C equivalent: a dismissed native sheet resolves to the cancel label, so the renderer looks up -1 — the guard is the substitution's`},{name:`select by value`,steps:[{op:`setOptions`,options:e},{op:`setSelectedValue`,value:`b`}],selected:1,value:`b`,label:`Two`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!1}],rule:`a value maps to the FIRST option carrying it; the port addition over the C, whose model is positional`},{name:`select by an unknown value`,steps:[{op:`setOptions`,options:e},{op:`setSelectedValue`,value:`zzz`}],selected:0,value:`a`,label:`One`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1}],rule:`an unknown value is a no-op, never a reset to 0 — a mistyped binding must not silently move the selection`},{name:`the model is replaced at the same index`,steps:[{op:`setOptions`,options:[{label:`First`,value:`a`}]},{op:`setOptions`,options:[{label:`Renamed`,value:`a`}]}],selected:0,value:`a`,label:`Renamed`,emitted:[{selected:0,value:`a`,label:`First`,interactive:!1},{selected:0,value:`a`,label:`Renamed`,interactive:!1}],rule:"the index did not move but the ITEM did — `selection_item_changed` (:157-185) repaints off the item, not the position"},{name:`the model shrinks past the selection`,steps:[{op:`setOptions`,options:e},{op:`setSelectedIndex`,index:1},{op:`setOptions`,options:[{label:`Only`,value:`a`}]}],selected:0,value:`a`,label:`Only`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!1},{selected:0,value:`a`,label:`Only`,interactive:!1}],rule:`a selection past the end of the new model falls back to 0 — GtkSingleSelection autoselects upstream, whose C is not vendored here, so this row is the ports' shared answer`},{name:`an index past the end`,steps:[{op:`setOptions`,options:[{label:`Only`,value:`a`}]},{op:`setSelectedIndex`,index:5}],selected:5,value:``,label:``,emitted:[{selected:0,value:`a`,label:`Only`,interactive:!1},{selected:5,value:``,label:``,interactive:!1}],rule:`the index is NOT clamped (the C takes any guint); the empty value/label is how "nothing to draw" is expressed here`},{name:`an empty model`,steps:[{op:`setOptions`,options:[]}],selected:-1,value:``,label:``,emitted:[{selected:-1,value:``,label:``,interactive:!1}],rule:`GTK_INVALID_LIST_POSITION (:593-596, :809-810) — an empty model has no index 0 to autoselect`},{name:`picking from an empty model`,steps:[{op:`setOptions`,options:[]},{op:`select`,index:0}],selected:-1,value:``,label:``,emitted:[{selected:-1,value:``,label:``,interactive:!1}],rule:`there is no option 0 to pick — and the renderers never open a chooser over an empty model either`},{name:`emptying a model that had a selection`,steps:[{op:`setOptions`,options:e},{op:`setSelectedIndex`,index:1},{op:`setOptions`,options:[]}],selected:-1,value:``,label:``,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!1},{selected:-1,value:``,label:``,interactive:!1}],rule:`the selection does NOT survive as index 0 — there is nothing at 0 any more`},{name:`a model that is emptied and refilled`,steps:[{op:`setOptions`,options:e},{op:`setOptions`,options:[]},{op:`setOptions`,options:e}],selected:0,value:`a`,label:`One`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:-1,value:``,label:``,interactive:!1},{selected:0,value:`a`,label:`One`,interactive:!1}],rule:`autoselect runs again, so the sentinel recovers to 0 — it is BELOW the range, which a one-sided >= length check leaves in place`},{name:`a model with an empty first label is still a selection`,steps:[{op:`setOptions`,options:[{label:``,value:`blank`}]}],selected:0,value:`blank`,label:``,emitted:[{selected:0,value:`blank`,label:``,interactive:!1}],rule:`the case the sentinel exists to separate: an empty LABEL, not an empty model`}],n=[{count:0,presentsChooser:!1,rule:`an empty model is not a chooser`},{count:1,presentsChooser:!1,rule:`ONE option is not a choice — the arrow goes and the row goes inert`},{count:2,presentsChooser:!0,rule:`two is the smallest real choice — the predicate is > 1, not >= 1`},{count:5,presentsChooser:!0,rule:`and anything above it`}];export{n as COMBO_CHOOSER_VECTORS,t as COMBO_SELECTION_VECTORS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=1e-9,t={min:Math.PI*.015,max:1.794463,tolerance:1e-4},n=[{phase:0,rule:`the cycle boundary — the arc is at MIN_ARC_LENGTH, its shortest`},{phase:.15,rule:`extending: ease_in_out_sine is still accelerating`},{phase:.41,rule:`the extend phase ends (EXTEND_DISTANCE / cycle) — the arc is at its longest`},{phase:.6,rule:`contracting: the leading end has started catching up`},{phase:.66,rule:`the contract phase ends and the idle one begins`},{phase:.9,rule:`idling: both ends move together, so the length holds`}],r=[{name:`SPIN_DURATION_MS`,value:1200,rule:`:20 — the browser used 0.8s, so its ring turned 1.5x too fast`},{name:`START_ANGLE`,value:Math.PI*.35,rule:`:21 — added to both arc ends (:379-380); absent from both ports, a constant phase error`},{name:`CIRCLE_OPACITY`,value:.15,rule:`:22 — of the WIDGET colour; the browser hardcoded rgba(127,127,127,0.25), darker and hue-independent`},{name:`MIN_ARC_LENGTH`,value:Math.PI*.015,rule:`:24 — 2.7 degrees, the shortest arc GSK will still draw`},{name:`MAX_ARC_LENGTH`,value:Math.PI*.9,rule:`:25 — 162 degrees; the browser drew a fixed 90 and never breathed`},{name:`N_CYCLES`,value:53,rule:`:33 — chosen so a whole number of arc cycles fits a whole number of turns`},{name:`MIN_SIZE`,value:16,rule:`adw-spinner.c:14 — reported as BOTH minimum and natural (:78-81), so a spinner never grows on its own`}];export{t as SPINNER_ARC_ENVELOPE,n as SPINNER_ARC_PHASE_VECTORS,e as SPINNER_ARC_TOLERANCE,r as SPINNER_CONSTANT_VECTORS};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=
|
|
1
|
+
const e=[{justify:`none`,justifyLastLine:!1,align:0,lastLine:!1,childrenInLine:3,layout:{justify:`none`,growChildren:!1,growGaps:!1,align:0},rule:`the defaults: nothing grows, the line packs at the start of the main axis`},{justify:`none`,justifyLastLine:!1,align:.5,lastLine:!1,childrenInLine:3,layout:{justify:`none`,growChildren:!1,growGaps:!1,align:.5},rule:`align 0.5 offsets the line block by half the leftover — MAIN axis, not cross`},{justify:`none`,justifyLastLine:!1,align:1,lastLine:!0,childrenInLine:3,layout:{justify:`none`,growChildren:!1,growGaps:!1,align:1},rule:`align 1 packs the line at the END of the main axis (:717-725)`},{justify:`none`,justifyLastLine:!0,align:.25,lastLine:!0,childrenInLine:3,layout:{justify:`none`,growChildren:!1,growGaps:!1,align:.25},rule:`justify-last-line is inert while justify is none — there is nothing to justify`},{justify:`fill`,justifyLastLine:!1,align:0,lastLine:!1,childrenInLine:3,layout:{justify:`fill`,growChildren:!0,growGaps:!1,align:0},rule:`FILL grows every child and keeps spacing constant (:317-319, :326-341)`},{justify:`fill`,justifyLastLine:!1,align:1,lastLine:!1,childrenInLine:3,layout:{justify:`fill`,growChildren:!0,growGaps:!1,align:0},rule:`a justified line consumes the leftover, so align is reported as 0 (:716-725 is gated)`},{justify:`fill`,justifyLastLine:!1,align:.5,lastLine:!0,childrenInLine:3,layout:{justify:`none`,growChildren:!1,growGaps:!1,align:.5},rule:`the final line falls back to NONE and to align (:397-400) — the C default`},{justify:`fill`,justifyLastLine:!0,align:.5,lastLine:!0,childrenInLine:3,layout:{justify:`fill`,growChildren:!0,growGaps:!1,align:0},rule:`justify-last-line lifts the gate, so the final line fills like any other`},{justify:`fill`,justifyLastLine:!0,align:0,lastLine:!0,childrenInLine:1,layout:{justify:`fill`,growChildren:!0,growGaps:!1,align:0},rule:`FILL has no single-child special case — one child simply takes the line`},{justify:`spread`,justifyLastLine:!1,align:0,lastLine:!1,childrenInLine:3,layout:{justify:`spread`,growChildren:!1,growGaps:!0,align:0},rule:`SPREAD keeps allocated_size at minimum_size and widens the gaps (:338-339)`},{justify:`spread`,justifyLastLine:!1,align:0,lastLine:!1,childrenInLine:2,layout:{justify:`spread`,growChildren:!1,growGaps:!0,align:0},rule:`two children still spread — the guard is n_children > 1`},{justify:`spread`,justifyLastLine:!1,align:0,lastLine:!1,childrenInLine:1,layout:{justify:`spread`,growChildren:!0,growGaps:!1,align:0},rule:`a LONE child in a spread line is stretched instead (:338, adw-wrap-box.c:349-352)`},{justify:`spread`,justifyLastLine:!1,align:0,lastLine:!0,childrenInLine:3,layout:{justify:`none`,growChildren:!1,growGaps:!1,align:0},rule:`DEFAULT single-line wrap box: its only line is the last, so spread does nothing`},{justify:`spread`,justifyLastLine:!1,align:1,lastLine:!0,childrenInLine:3,layout:{justify:`none`,growChildren:!1,growGaps:!1,align:1},rule:`the un-justified final line honours align, which is why the two interact`},{justify:`spread`,justifyLastLine:!0,align:1,lastLine:!0,childrenInLine:3,layout:{justify:`spread`,growChildren:!1,growGaps:!0,align:0},rule:`justify-last-line spreads the final line and drops align on the floor`},{justify:`spread`,justifyLastLine:!0,align:0,lastLine:!0,childrenInLine:1,layout:{justify:`spread`,growChildren:!0,growGaps:!1,align:0},rule:`the lone-child stretch survives the last-line gate being lifted`}],t=[{value:0,spacing:0,rule:`the default is 0 — no spacing at all, on every renderer`},{value:6,spacing:6,rule:`a plain positive value passes through`},{value:-1,spacing:0,rule:`a negative value is clamped to 0 (adw-wrap-box.c:587-588)`},{value:-12,spacing:0,rule:`the clamp is a floor, not an absolute value`},{value:`12`,spacing:12,rule:`a numeric string parses (HTML attribute / XML layout)`},{value:`-4`,spacing:0,rule:`a negative numeric string is clamped, not propagated`},{value:``,spacing:0,rule:`an empty value is the default, not NaN`},{value:null,spacing:0,rule:`an absent property is the default`},{value:`abc`,spacing:0,rule:`a non-numeric value is 0 — NaN must never reach a layout`},{value:NaN,spacing:0,rule:`NaN has no int counterpart in C; the ports agree on 0`},{value:1/0,spacing:0,rule:`infinity is not an int either`}],n=[{from:0,value:6,notifies:!0,rule:`a real change notifies`},{from:6,value:6,notifies:!1,rule:`setting the same value is an early return (:592-593)`},{from:0,value:-5,notifies:!1,rule:`clamped to the value already held — no notification`},{from:6,value:-5,notifies:!0,rule:`clamped to 0, which IS a change from 6`},{from:0,value:`abc`,notifies:!1,rule:`garbage normalises to the value already held`},{from:6,value:``,notifies:!0,rule:`clearing the property falls back to the default 0`}],r=[`child-spacing`,`child-spacing-unit`,`pack-direction`,`align`,`justify`,`justify-last-line`,`line-spacing`,`line-spacing-unit`,`line-homogeneous`,`natural-line-length`,`natural-line-length-unit`,`wrap-reverse`,`wrap-policy`,`orientation`],i=[{value:null,policy:`natural`,flexShrink:0,rule:`the default is natural — wrap before shrinking`},{value:`natural`,policy:`natural`,flexShrink:0,rule:`natural forbids the shrink CSS would otherwise allow by default`},{value:`minimum`,policy:`minimum`,flexShrink:1,rule:`minimum squeezes children before wrapping`},{value:`Minimum`,policy:`natural`,flexShrink:0,rule:`the enum gate is case-sensitive, as GObject is`},{value:`shrink`,policy:`natural`,flexShrink:0,rule:`an unknown value leaves the property at its default`}],a=[{value:12,unit:`px`,dpi:96,px:12,rule:`px is a passthrough at any dpi`},{value:12,unit:`px`,dpi:144,px:12,rule:`and stays one when the text scale changes — that is the point of px`},{value:12,unit:`sp`,dpi:96,px:12,rule:`sp is a passthrough at the default dpi`},{value:12,unit:`sp`,dpi:144,px:18,rule:`sp scales with gtk-xft-dpi — 12 * 144 / 96`},{value:12,unit:`pt`,dpi:96,px:16,rule:`pt is the familiar 4/3 ratio at 96 dpi`},{value:0,unit:`pt`,dpi:144,px:0,rule:`zero converts to zero in every unit`},{value:12,unit:`em`,dpi:96,px:12,rule:`an unknown unit falls back to the wrap box default, px`},{value:12,unit:null,dpi:96,px:12,rule:`an absent unit is the default too`},{value:-1,unit:`sp`,dpi:144,px:-1,rule:`the natural-line-length sentinel is NOT converted (adw-wrap-layout.c:562 gates on >= 0)`}],o=[{value:null,length:-1,rule:`absent means unset — the box asks for what its children need`},{value:-1,length:-1,rule:`the sentinel itself`},{value:0,length:0,rule:`zero is IN range and is not the sentinel — a box that asks for nothing`},{value:400,length:400,rule:`a plain length passes through`},{value:`400`,length:400,rule:`a numeric string parses (HTML attribute / XML layout)`},{value:400.7,length:400,rule:`the property is an int, so a fraction truncates`},{value:-5,length:-1,rule:`below the declared minimum lands on unset, not on 0`},{value:`wide`,length:-1,rule:`a non-numeric value is unset — NaN must never reach a layout`}],s=[{op:`insert-after`,children:[`a`,`b`,`c`],child:`d`,sibling:`b`,result:[`a`,`b`,`d`,`c`],rule:`insert after a middle sibling`},{op:`insert-after`,children:[`a`,`b`],child:`d`,sibling:`b`,result:[`a`,`b`,`d`],rule:`after the last sibling is an append`},{op:`insert-after`,children:[`a`,`b`],child:`d`,sibling:null,result:[`d`,`a`,`b`],rule:`a NULL sibling PREPENDS — gtk_widget_insert_after inserts at the first position`},{op:`insert-after`,children:[],child:`d`,sibling:null,result:[`d`],rule:`into an empty box, where first and last coincide`},{op:`insert-after`,children:[`a`,`b`],child:`a`,sibling:`b`,result:null,rule:`refused: the child already has a parent (:1289)`},{op:`insert-after`,children:[`a`],child:`d`,sibling:`z`,result:null,rule:`refused: the sibling is not a child of this box (:1293)`},{op:`reorder-after`,children:[`a`,`b`,`c`],child:`a`,sibling:`c`,result:[`b`,`c`,`a`],rule:`moving forward removes first, so the target index is read AFTER the removal`},{op:`reorder-after`,children:[`a`,`b`,`c`],child:`c`,sibling:`a`,result:[`a`,`c`,`b`],rule:`and moving backward lands directly behind the sibling`},{op:`reorder-after`,children:[`a`,`b`,`c`],child:`c`,sibling:null,result:[`c`,`a`,`b`],rule:`a NULL sibling moves the child to the FRONT — the same rule as insert`},{op:`reorder-after`,children:[`a`,`b`],child:`a`,sibling:`a`,result:null,rule:`refused: child == sibling is an explicit early return (:1329)`},{op:`reorder-after`,children:[`a`,`b`],child:`z`,sibling:`a`,result:null,rule:`refused: reordering something that is not a child`},{op:`reorder-after`,children:[`a`,`b`,`c`],child:`b`,sibling:`b`,result:null,rule:`the self-check runs before the membership one, so it refuses rather than no-ops`}];export{s as WRAP_BOX_CHILD_ORDER_VECTORS,a as WRAP_BOX_LENGTH_VECTORS,e as WRAP_BOX_LINE_VECTORS,o as WRAP_BOX_NATURAL_LENGTH_VECTORS,r as WRAP_BOX_NOTIFY_PROPERTIES,i as WRAP_BOX_POLICY_VECTORS,n as WRAP_BOX_SPACING_NOTIFY_VECTORS,t as WRAP_BOX_SPACING_VECTORS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";function adwLerp(e,t,n){return e*(1-n)+t*n}function inverseLerp(e,t,n){return(n-e)/(t-e)}function easeOutCubic(e){let t=e-1;return t*t*t+1}function easeInOutSine(e){return-.5*(Math.cos(Math.PI*e)-1)}export{adwLerp,easeInOutSine,easeOutCubic,inverseLerp};
|
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{ActionRowState as S,BUTTON_ROW_ACTIVATABLE as C,ButtonRowState as w,SwitchRowState as T,WindowTitleState as E,deriveRowLabels as D}from"./action-row.js";import{AVATAR_COLORS as O,AVATAR_COLOR_COUNT as k,avatarColor as A,avatarColorClass as j,avatarFontSize as M,avatarInitials as N,avatarMaxFontSize as P,avatarMode as F,flattenAvatarGradient as I,gStrHash as L,randomAvatarColorClass as R}from"./avatar.js";import{ADW_BANNER_BUTTON_STYLES as z,ADW_BANNER_BUTTON_STYLE_CLASSES as B,ADW_BANNER_DEFAULTS as V,bannerButtonStyleClasses as H,bannerButtonText as U,bannerButtonVisible as W,bannerRenderState as G,isBannerButtonStyle as K,parseBannerButtonStyle as q}from"./banner.js";import{AdwBreakpoint as J,evaluateBreakpointCondition as Y,parseBreakpointCondition as X}from"./breakpoint.js";import{ADW_BUTTON_CONTENT_DEFAULTS as Z,BUTTON_CONTENT_FALLBACK_ICON as Q,BUTTON_CONTENT_STYLE_CLASS as $,buttonContentEllipsize as ee,buttonContentIconExpands as te,buttonContentIconIsEmpty as ne,buttonContentIconName as re,buttonContentLabelText as ie,buttonContentLabelVisible as ae,buttonContentRenderState as oe,buttonContentStyleTargetIndex as se}from"./button-content.js";import{CAROUSEL_SCROLL_TIMEOUT_MS as ce,CAROUSEL_SETTLE_EPSILON as le,CarouselState as ue,carouselClampPosition as de,carouselClosestSnapPoint as fe,carouselNavigateTarget as pe,carouselPageAtPosition as me,carouselRange as he,carouselReorderShift as ge,carouselSizesFromSnapPoints as _e,carouselSnapPoints as ve,carouselWheelStep as ye}from"./carousel.js";import{RadioGroupState as be,resolveCheckState as xe}from"./checks.js";import{ADW_CLAMP_DEFAULTS as Se,ADW_CLAMP_SIZE_CLASSES as Ce,ADW_SPINNER_MAX_SIZE as we,ADW_SPINNER_MIN_SIZE as Te,ADW_TOOLBAR_BAR_CLASSES as Ee,ADW_TOOLBAR_VIEW_CLASSES as De,ADW_TOOLBAR_VIEW_DEFAULTS as Oe,clampAllocate as ke,clampChildSize as Ae,clampSizeFromChild as je,clampThresholds as Me,normalizeClampSize as Ne,parseToolbarStyle as Pe,resolveSpinnerSize as Fe,spinnerGeometry as Ie,toolbarBarStyleClasses as Le,toolbarViewAllocate as Re,toolbarViewClasses as ze,toolbarViewContentForSize as Be,toolbarViewMeasure as Ve}from"./chrome.js";import{DEFAULT_ICON_COLOR as He,DEFAULT_ICON_COLOR_DARK as Ue,adwaitaColorScheme as We,isThemeIconColor as Ge,onAdwaitaColorSchemeChanged as Ke,setAdwaitaColorScheme as qe,themeIconColor as Je,toggleAdwaitaColorScheme as Ye}from"./color-scheme.js";import{ADW_DATA_GRID_ROW_VARIANTS as Xe,DATA_GRID_CELL_CLASS as Ze,DATA_GRID_ROW_CLASS as Qe,dataGridCellText as $e,dataGridColumnAlign as et,dataGridColumnClasses as tt,dataGridRowInteractive as nt,dataGridTrackTemplate as rt,dataGridTracks as it,normalizeDataGridColumns as at,normalizeDataGridVariant as ot}from"./data-grid.js";import{AdwAlertResponses as st,BottomSheetPresentation as ct,resolveBottomSheetClose as lt}from"./dialog.js";import{CAPS_LOCK_ICON_NAME as ut,CAPS_LOCK_TOOLTIP as dt,EMPTY_ANIMATION_DURATION_MS as ft,ENTRY_ROW_APPLY_ICON_NAME as pt,ENTRY_ROW_APPLY_TOOLTIP as mt,ENTRY_ROW_EDIT_ICON_NAME as ht,ENTRY_ROW_MAX_LENGTH_LIMIT as gt,ENTRY_ROW_TITLE_SPACING as _t,EntryRowState as vt,PASSWORD_CONCEAL_ICON_NAME as yt,PASSWORD_CONCEAL_LABEL as bt,PASSWORD_REVEAL_ICON_NAME as xt,PASSWORD_REVEAL_LABEL as St,PasswordEntryRowState as Ct,clampEntryText as wt,entryTextLength as Tt}from"./entry-row.js";import{AdwToast as Et,AdwToastQueue as Dt,DEFAULT_TOAST_TIMEOUT as Ot}from"./toast.js";import{ComboState as kt,ExpanderState as At,SpinState as jt,ToggleGroupState as Mt,normalizeComboOptions as Nt}from"./rows.js";import{ViewStackState as Pt,normalizeIconName as Ft,resolvePageTitle as It}from"./view-stack.js";import{BACK_BUTTON_FALLBACK_TOOLTIP as Lt,NavigationViewState as Rt,describeNavigationDiagnostic as zt}from"./navigation-view.js";import{ADW_SIDEBAR_NO_SELECTION as Bt,SidebarState as Vt,adjustSidebarSelection as Ht,clampSidebarSelection as Ut,flattenSidebarItems as Wt,sidebarHeaders as Gt}from"./sidebar.js";import{ADW_SWIPE_BORDER as Kt,DEFAULT_DPI as qt,DEFAULT_MAX_SIDEBAR_WIDTH as Jt,DEFAULT_MIN_SIDEBAR_WIDTH as Yt,DEFAULT_SIDEBAR_WIDTH_FRACTION as Xt,DEFAULT_SIDEBAR_WIDTH_UNIT as Zt,INSTANT_SPLIT_VIEW_ANIMATOR as Qt,NAVIGATION_SPLIT_VIEW_CRITICALS as $t,NavigationSplitViewState as en,OverlaySplitViewState as tn,adwLengthToPx as nn,isSidebarAtVisualStart as rn,layoutNavigationSplitView as an,layoutOverlaySplitView as on,measureSplitViewHorizontal as sn,resolveNaturalSidebarWidth as cn,resolveNavigationAction as ln,resolveNavigationSidebarWidth as un,resolveNavigationStack as dn,resolveOverlaySidebarWidth as fn,resolveSidebarBounds as pn,resolveSwipeArea as mn,resolveSwipeRelease as hn,resolveSwipeSnapPoints as gn,resolveSwipeStart as _n,swipeCancelProgress as vn,tagsConflict as yn}from"./split-view.js";import{DEFAULT_DROPDOWN_TOOLTIP as bn,SPLIT_BUTTON_DISABLED_OPACITY as xn,SplitButtonState as Sn,isSplitButtonDirection as Cn,menuButtonArrowIcon as wn,menuButtonPopupDirection as Tn,parseMenuEntries as En,resolveDropdownTooltip as Dn,splitButtonArrowIcon as On,splitButtonPopupDirection as kn,splitButtonRootState as An,splitButtonStyleClasses as jn}from"./split-button.js";import{DEFAULT_INDICATOR_DESCRIPTION_STRINGS as Mn,INLINE_VIEW_SWITCHER_DISPLAY_MODES as Nn,VIEW_SWITCHER_BADGE_LIMIT as Pn,VIEW_SWITCHER_DRAG_SWITCH_DELAY as Fn,VIEW_SWITCHER_FALLBACK_ICON as In,VIEW_SWITCHER_NO_SELECTION as Ln,VIEW_SWITCHER_POLICIES as Rn,ViewSwitcherBarState as zn,ViewSwitcherDragSwitch as Bn,ViewSwitcherState as Vn,buildInlineToggles as Hn,buildViewSwitcherButtons as Un,createViewSwitcherPage as Wn,inlineToggleTooltip as Gn,isInlineViewSwitcherDisplayMode as Kn,isViewSwitcherButtonVisible as qn,isViewSwitcherPolicy as Jn,pageIndexForToggle as Yn,shouldRevealViewSwitcherBar as Xn,toggleIndexForPage as Zn,viewSwitcherBadgeLabel as Qn,viewSwitcherButtonOrientation as $n,viewSwitcherIconName as er,viewSwitcherIndicatorDescription as tr,viewSwitcherLabel as nr,viewSwitcherPageFromStackPage as rr,viewSwitcherPagesFromStack as ir}from"./view-switcher.js";import{DEFAULT_TAB_AUTOHIDE as ar,TabViewState as or,isDescendantOfPage as sr,successorAfterClose as cr,tabCloseVisible as lr,tabIconState as ur,tabTooltip as dr,tabTooltipIsMarkup as fr,tabsRevealed as pr}from"./tab-view.js";import{UNTITLED_PAGE_LABEL as mr,collectSearchRows as hr,countVisiblePages as gr,createSearchRowSubtitle as _r,defaultCaseFolder as vr,derivePreferencesGroupHeader as yr,escapeMarkup as br,makeComparable as xr,rowMatchesQuery as Sr,searchPreferences as Cr,stripMarkup as wr}from"./preferences.js";import{POPOVER_ITEM_RADIUS as Tr,POPOVER_MENU_PADDING as Er,POPOVER_PADDING as Dr,POPOVER_RADIUS as Or,PopoverState as kr,resolvePopoverKey as Ar}from"./popover.js";export{i as ADW_ABOUT_DIALOG_LABELS,z as ADW_BANNER_BUTTON_STYLES,B as ADW_BANNER_BUTTON_STYLE_CLASSES,V as ADW_BANNER_DEFAULTS,Z as ADW_BUTTON_CONTENT_DEFAULTS,Se as ADW_CLAMP_DEFAULTS,Ce as ADW_CLAMP_SIZE_CLASSES,a as ADW_CREDITS_SECTION_TITLES,Xe as ADW_DATA_GRID_ROW_VARIANTS,o as ADW_LICENSES,s as ADW_LICENSE_ALIASES,c as ADW_LICENSE_DEFAULTS,l as ADW_LICENSE_WARRANTY_TEMPLATE,Bt as ADW_SIDEBAR_NO_SELECTION,we as ADW_SPINNER_MAX_SIZE,Te as ADW_SPINNER_MIN_SIZE,Kt as ADW_SWIPE_BORDER,Ee as ADW_TOOLBAR_BAR_CLASSES,De as ADW_TOOLBAR_VIEW_CLASSES,Oe as ADW_TOOLBAR_VIEW_DEFAULTS,u as ADW_TRANSLATOR_CREDITS_SENTINELS,O as AVATAR_COLORS,k as AVATAR_COLOR_COUNT,S as ActionRowState,st as AdwAlertResponses,J as AdwBreakpoint,Et as AdwToast,Dt as AdwToastQueue,Lt as BACK_BUTTON_FALLBACK_TOOLTIP,Q as BUTTON_CONTENT_FALLBACK_ICON,$ as BUTTON_CONTENT_STYLE_CLASS,C as BUTTON_ROW_ACTIVATABLE,ct as BottomSheetPresentation,w as ButtonRowState,ut as CAPS_LOCK_ICON_NAME,dt as CAPS_LOCK_TOOLTIP,ce as CAROUSEL_SCROLL_TIMEOUT_MS,le as CAROUSEL_SETTLE_EPSILON,ue as CarouselState,kt as ComboState,Ze as DATA_GRID_CELL_CLASS,Qe as DATA_GRID_ROW_CLASS,qt as DEFAULT_DPI,bn as DEFAULT_DROPDOWN_TOOLTIP,He as DEFAULT_ICON_COLOR,Ue as DEFAULT_ICON_COLOR_DARK,Mn as DEFAULT_INDICATOR_DESCRIPTION_STRINGS,Jt as DEFAULT_MAX_SIDEBAR_WIDTH,Yt as DEFAULT_MIN_SIDEBAR_WIDTH,Xt as DEFAULT_SIDEBAR_WIDTH_FRACTION,Zt as DEFAULT_SIDEBAR_WIDTH_UNIT,ar as DEFAULT_TAB_AUTOHIDE,Ot as DEFAULT_TOAST_TIMEOUT,ft as EMPTY_ANIMATION_DURATION_MS,pt as ENTRY_ROW_APPLY_ICON_NAME,mt as ENTRY_ROW_APPLY_TOOLTIP,ht as ENTRY_ROW_EDIT_ICON_NAME,gt as ENTRY_ROW_MAX_LENGTH_LIMIT,_t as ENTRY_ROW_TITLE_SPACING,vt as EntryRowState,At as ExpanderState,d as GTK_LICENSE,Nn as INLINE_VIEW_SWITCHER_DISPLAY_MODES,Qt as INSTANT_SPLIT_VIEW_ANIMATOR,$t as NAVIGATION_SPLIT_VIEW_CRITICALS,en as NavigationSplitViewState,Rt as NavigationViewState,tn as OverlaySplitViewState,yt as PASSWORD_CONCEAL_ICON_NAME,bt as PASSWORD_CONCEAL_LABEL,xt as PASSWORD_REVEAL_ICON_NAME,St as PASSWORD_REVEAL_LABEL,Tr as POPOVER_ITEM_RADIUS,Er as POPOVER_MENU_PADDING,Dr as POPOVER_PADDING,Or as POPOVER_RADIUS,Ct as PasswordEntryRowState,kr as PopoverState,be as RadioGroupState,xn as SPLIT_BUTTON_DISABLED_OPACITY,Vt as SidebarState,jt as SpinState,Sn as SplitButtonState,T as SwitchRowState,or as TabViewState,Mt as ToggleGroupState,mr as UNTITLED_PAGE_LABEL,Pn as VIEW_SWITCHER_BADGE_LIMIT,Fn as VIEW_SWITCHER_DRAG_SWITCH_DELAY,In as VIEW_SWITCHER_FALLBACK_ICON,Ln as VIEW_SWITCHER_NO_SELECTION,Rn as VIEW_SWITCHER_POLICIES,Pt as ViewStackState,zn as ViewSwitcherBarState,Bn as ViewSwitcherDragSwitch,Vn as ViewSwitcherState,E as WindowTitleState,f as aboutDialogVisibility,Ht as adjustSidebarSelection,nn as adwLengthToPx,We as adwaitaColorScheme,A as avatarColor,j as avatarColorClass,M as avatarFontSize,N as avatarInitials,P as avatarMaxFontSize,F as avatarMode,H as bannerButtonStyleClasses,U as bannerButtonText,W as bannerButtonVisible,G as bannerRenderState,Hn as buildInlineToggles,Un as buildViewSwitcherButtons,ee as buttonContentEllipsize,te as buttonContentIconExpands,ne as buttonContentIconIsEmpty,re as buttonContentIconName,ie as buttonContentLabelText,ae as buttonContentLabelVisible,oe as buttonContentRenderState,se as buttonContentStyleTargetIndex,de as carouselClampPosition,fe as carouselClosestSnapPoint,pe as carouselNavigateTarget,me as carouselPageAtPosition,he as carouselRange,ge as carouselReorderShift,_e as carouselSizesFromSnapPoints,ve as carouselSnapPoints,ye as carouselWheelStep,ke as clampAllocate,Ae as clampChildSize,wt as clampEntryText,Ut as clampSidebarSelection,je as clampSizeFromChild,Me as clampThresholds,hr as collectSearchRows,gr as countVisiblePages,_r as createSearchRowSubtitle,Wn as createViewSwitcherPage,p as creditsSections,$e as dataGridCellText,et as dataGridColumnAlign,tt as dataGridColumnClasses,nt as dataGridRowInteractive,rt as dataGridTrackTemplate,it as dataGridTracks,vr as defaultCaseFolder,yr as derivePreferencesGroupHeader,D as deriveRowLabels,zt as describeNavigationDiagnostic,Tt as entryTextLength,br as escapeMarkup,Y as evaluateBreakpointCondition,I as flattenAvatarGradient,Wt as flattenSidebarItems,L as gStrHash,e as gStrStrip,t as glibClamp,Gn as inlineToggleTooltip,K as isBannerButtonStyle,sr as isDescendantOfPage,Kn as isInlineViewSwitcherDisplayMode,m as isLicenseType,rn as isSidebarAtVisualStart,Cn as isSplitButtonDirection,Ge as isThemeIconColor,qn as isViewSwitcherButtonVisible,Jn as isViewSwitcherPolicy,an as layoutNavigationSplitView,on as layoutOverlaySplitView,h as legalSectionVisible,g as licenseText,_ as licenseTypeForSpdxId,xr as makeComparable,sn as measureSplitViewHorizontal,wn as menuButtonArrowIcon,Tn as menuButtonPopupDirection,Ne as normalizeClampSize,Nt as normalizeComboOptions,at as normalizeDataGridColumns,ot as normalizeDataGridVariant,Ft as normalizeIconName,Ke as onAdwaitaColorSchemeChanged,Yn as pageIndexForToggle,q as parseBannerButtonStyle,X as parseBreakpointCondition,v as parseCreditPerson,En as parseMenuEntries,Pe as parseToolbarStyle,R as randomAvatarColorClass,lt as resolveBottomSheetClose,xe as resolveCheckState,Dn as resolveDropdownTooltip,cn as resolveNaturalSidebarWidth,ln as resolveNavigationAction,un as resolveNavigationSidebarWidth,dn as resolveNavigationStack,fn as resolveOverlaySidebarWidth,It as resolvePageTitle,Ar as resolvePopoverKey,pn as resolveSidebarBounds,Fe as resolveSpinnerSize,mn as resolveSwipeArea,hn as resolveSwipeRelease,gn as resolveSwipeSnapPoints,_n as resolveSwipeStart,Sr as rowMatchesQuery,Cr as searchPreferences,qe as setAdwaitaColorScheme,y as setLicense,b as setLicenseType,Xn as shouldRevealViewSwitcherBar,Gt as sidebarHeaders,Ie as spinnerGeometry,On as splitButtonArrowIcon,kn as splitButtonPopupDirection,An as splitButtonRootState,jn as splitButtonStyleClasses,n as stringIsNotEmpty,wr as stripMarkup,r as stripMnemonic,cr as successorAfterClose,vn as swipeCancelProgress,lr as tabCloseVisible,ur as tabIconState,dr as tabTooltip,fr as tabTooltipIsMarkup,pr as tabsRevealed,yn as tagsConflict,Je as themeIconColor,Ye as toggleAdwaitaColorScheme,Zn as toggleIndexForPage,Le as toolbarBarStyleClasses,Re as toolbarViewAllocate,ze as toolbarViewClasses,Be as toolbarViewContentForSize,Ve as toolbarViewMeasure,x as translatorCreditsPeople,Qn as viewSwitcherBadgeLabel,$n as viewSwitcherButtonOrientation,er as viewSwitcherIconName,tr as viewSwitcherIndicatorDescription,nr as viewSwitcherLabel,rr as viewSwitcherPageFromStackPage,ir as viewSwitcherPagesFromStack};
|
|
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{ActionRowState as S,BUTTON_ROW_ACTIVATABLE as C,ButtonRowState as w,SwitchRowState as T,WindowTitleState as E,deriveRowLabels as D}from"./action-row.js";import{AVATAR_COLORS as O,AVATAR_COLOR_COUNT as k,avatarColor as A,avatarColorClass as j,avatarFontSize as M,avatarInitials as N,avatarMaxFontSize as P,avatarMode as F,flattenAvatarGradient as I,gStrHash as L,randomAvatarColorClass as R}from"./avatar.js";import{ADW_BANNER_BUTTON_STYLES as z,ADW_BANNER_BUTTON_STYLE_CLASSES as B,ADW_BANNER_DEFAULTS as V,bannerButtonStyleClasses as H,bannerButtonText as U,bannerButtonVisible as W,bannerRenderState as G,isBannerButtonStyle as K,parseBannerButtonStyle as q}from"./banner.js";import{AdwBreakpoint as J,evaluateBreakpointCondition as Y,parseBreakpointCondition as X}from"./breakpoint.js";import{ADW_BUTTON_CONTENT_DEFAULTS as Z,BUTTON_CONTENT_FALLBACK_ICON as Q,BUTTON_CONTENT_STYLE_CLASS as $,buttonContentEllipsize as ee,buttonContentIconExpands as te,buttonContentIconIsEmpty as ne,buttonContentIconName as re,buttonContentLabelText as ie,buttonContentLabelVisible as ae,buttonContentRenderState as oe,buttonContentStyleTargetIndex as se}from"./button-content.js";import{CAROUSEL_SCROLL_TIMEOUT_MS as ce,CAROUSEL_SETTLE_EPSILON as le,CarouselState as ue,carouselClampPosition as de,carouselClosestSnapPoint as fe,carouselNavigateTarget as pe,carouselPageAtPosition as me,carouselRange as he,carouselReorderShift as ge,carouselSizesFromSnapPoints as _e,carouselSnapPoints as ve,carouselWheelStep as ye}from"./carousel.js";import{RadioGroupState as be,resolveCheckState as xe}from"./checks.js";import{adwLerp as Se,easeInOutSine as Ce,easeOutCubic as we,inverseLerp as Te}from"./easing.js";import{ADW_CLAMP_DEFAULTS as Ee,ADW_CLAMP_SIZE_CLASSES as De,ADW_SPINNER_MAX_SIZE as Oe,ADW_SPINNER_MIN_SIZE as ke,ADW_TOOLBAR_BAR_CLASSES as Ae,ADW_TOOLBAR_VIEW_CLASSES as je,ADW_TOOLBAR_VIEW_DEFAULTS as Me,clampAllocate as Ne,clampChildSize as Pe,clampSizeFromChild as Fe,clampThresholds as Ie,normalizeClampSize as Le,parseToolbarStyle as Re,resolveSpinnerSize as ze,spinnerGeometry as Be,toolbarBarStyleClasses as Ve,toolbarViewAllocate as He,toolbarViewClasses as Ue,toolbarViewContentForSize as We,toolbarViewMeasure as Ge}from"./chrome.js";import{DEFAULT_ICON_COLOR as Ke,DEFAULT_ICON_COLOR_DARK as qe,adwaitaColorScheme as Je,isThemeIconColor as Ye,onAdwaitaColorSchemeChanged as Xe,setAdwaitaColorScheme as Ze,themeIconColor as Qe,toggleAdwaitaColorScheme as $e}from"./color-scheme.js";import{ADW_DATA_GRID_ROW_VARIANTS as et,DATA_GRID_CELL_CLASS as tt,DATA_GRID_ROW_CLASS as nt,dataGridCellText as rt,dataGridColumnAlign as it,dataGridColumnClasses as at,dataGridRowInteractive as ot,dataGridTrackTemplate as st,dataGridTracks as ct,normalizeDataGridColumns as lt,normalizeDataGridVariant as ut}from"./data-grid.js";import{AdwAlertResponses as dt,BottomSheetPresentation as ft,resolveBottomSheetClose as pt}from"./dialog.js";import{CAPS_LOCK_ICON_NAME as mt,CAPS_LOCK_TOOLTIP as ht,EMPTY_ANIMATION_DURATION_MS as gt,ENTRY_ROW_APPLY_ICON_NAME as _t,ENTRY_ROW_APPLY_TOOLTIP as vt,ENTRY_ROW_EDIT_ICON_NAME as yt,ENTRY_ROW_MAX_LENGTH_LIMIT as bt,ENTRY_ROW_TITLE_SPACING as xt,EntryRowState as St,PASSWORD_CONCEAL_ICON_NAME as Ct,PASSWORD_CONCEAL_LABEL as wt,PASSWORD_REVEAL_ICON_NAME as Tt,PASSWORD_REVEAL_LABEL as Et,PasswordEntryRowState as Dt,clampEntryText as Ot,entryTextLength as kt}from"./entry-row.js";import{AdwToast as At,AdwToastQueue as jt,DEFAULT_TOAST_TIMEOUT as Mt}from"./toast.js";import{ADW_COMBO_NO_SELECTION as Nt,ComboState as Pt,ExpanderState as Ft,SpinState as It,ToggleGroupState as Lt,normalizeComboOptions as Rt}from"./rows.js";import{ViewStackState as zt,normalizeIconName as Bt,resolvePageTitle as Vt}from"./view-stack.js";import{BACK_BUTTON_FALLBACK_TOOLTIP as Ht,NavigationViewState as Ut,describeNavigationDiagnostic as Wt}from"./navigation-view.js";import{ADW_SIDEBAR_NO_SELECTION as Gt,SidebarState as Kt,adjustSidebarSelection as qt,clampSidebarSelection as Jt,flattenSidebarItems as Yt,sidebarHeaders as Xt}from"./sidebar.js";import{ADW_SPINNER_CONTRACT_DISTANCE as Zt,ADW_SPINNER_CYCLES_PER_LOOP as Qt,ADW_SPINNER_CYCLE_LENGTH as $t,ADW_SPINNER_EXTEND_DISTANCE as en,ADW_SPINNER_IDLE_DISTANCE as tn,ADW_SPINNER_MAX_ARC_LENGTH as nn,ADW_SPINNER_MIN_ARC_LENGTH as rn,ADW_SPINNER_N_CYCLES as an,ADW_SPINNER_OVERLAP_DISTANCE as on,ADW_SPINNER_SPIN_DURATION_MS as sn,ADW_SPINNER_START_ANGLE as cn,ADW_SPINNER_STILL_PROGRESS as ln,ADW_SPINNER_TRACK_OPACITY as un,normalizeSpinnerAngle as dn,spinnerArc as fn,spinnerArcEnd as pn,spinnerArcStart as mn,spinnerProgressAt as hn}from"./spinner.js";import{ADW_LENGTH_UNITS as gn,DEFAULT_DPI as _n,adwLengthToPx as vn,normalizeLengthUnit as yn}from"./length-unit.js";import{ADW_SWIPE_BORDER as bn,DEFAULT_MAX_SIDEBAR_WIDTH as xn,DEFAULT_MIN_SIDEBAR_WIDTH as Sn,DEFAULT_SIDEBAR_WIDTH_FRACTION as Cn,DEFAULT_SIDEBAR_WIDTH_UNIT as wn,INSTANT_SPLIT_VIEW_ANIMATOR as Tn,NAVIGATION_SPLIT_VIEW_CRITICALS as En,NavigationSplitViewState as Dn,OverlaySplitViewState as On,isSidebarAtVisualStart as kn,layoutNavigationSplitView as An,layoutOverlaySplitView as jn,measureSplitViewHorizontal as Mn,resolveNaturalSidebarWidth as Nn,resolveNavigationAction as Pn,resolveNavigationSidebarWidth as Fn,resolveNavigationStack as In,resolveOverlaySidebarWidth as Ln,resolveSidebarBounds as Rn,resolveSwipeArea as zn,resolveSwipeRelease as Bn,resolveSwipeSnapPoints as Vn,resolveSwipeStart as Hn,swipeCancelProgress as Un,tagsConflict as Wn}from"./split-view.js";import{DEFAULT_DROPDOWN_TOOLTIP as Gn,SPLIT_BUTTON_DISABLED_OPACITY as Kn,SplitButtonState as qn,isSplitButtonDirection as Jn,menuButtonArrowIcon as Yn,menuButtonPopupDirection as Xn,parseMenuEntries as Zn,resolveDropdownTooltip as Qn,splitButtonArrowIcon as $n,splitButtonPopupDirection as er,splitButtonRootState as tr,splitButtonStyleClasses as nr}from"./split-button.js";import{DEFAULT_INDICATOR_DESCRIPTION_STRINGS as rr,INLINE_VIEW_SWITCHER_DISPLAY_MODES as ir,VIEW_SWITCHER_BADGE_LIMIT as ar,VIEW_SWITCHER_DRAG_SWITCH_DELAY as or,VIEW_SWITCHER_FALLBACK_ICON as sr,VIEW_SWITCHER_NO_SELECTION as cr,VIEW_SWITCHER_POLICIES as lr,ViewSwitcherBarState as ur,ViewSwitcherDragSwitch as dr,ViewSwitcherState as fr,buildInlineToggles as pr,buildViewSwitcherButtons as mr,createViewSwitcherPage as hr,inlineToggleTooltip as gr,isInlineViewSwitcherDisplayMode as _r,isViewSwitcherButtonVisible as vr,isViewSwitcherPolicy as yr,pageIndexForToggle as br,shouldRevealViewSwitcherBar as xr,toggleIndexForPage as Sr,viewSwitcherBadgeLabel as Cr,viewSwitcherButtonOrientation as wr,viewSwitcherIconName as Tr,viewSwitcherIndicatorDescription as Er,viewSwitcherLabel as Dr,viewSwitcherPageFromStackPage as Or,viewSwitcherPagesFromStack as kr}from"./view-switcher.js";import{DEFAULT_TAB_AUTOHIDE as Ar,TabViewState as jr,isDescendantOfPage as Mr,successorAfterClose as Nr,tabCloseVisible as Pr,tabIconState as Fr,tabTooltip as Ir,tabTooltipIsMarkup as Lr,tabsRevealed as Rr}from"./tab-view.js";import{UNTITLED_PAGE_LABEL as zr,collectSearchRows as Br,countVisiblePages as Vr,createSearchRowSubtitle as Hr,defaultCaseFolder as Ur,derivePreferencesGroupHeader as Wr,escapeMarkup as Gr,makeComparable as Kr,rowMatchesQuery as qr,searchPreferences as Jr,stripMarkup as Yr}from"./preferences.js";import{POPOVER_ITEM_RADIUS as Xr,POPOVER_MENU_PADDING as Zr,POPOVER_PADDING as Qr,POPOVER_RADIUS as $r,PopoverState as ei,resolvePopoverKey as ti}from"./popover.js";import{ADW_WRAP_BOX_DEFAULT_ALIGN as ni,ADW_WRAP_BOX_DEFAULT_JUSTIFY as ri,ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE as ii,ADW_WRAP_BOX_DEFAULT_LENGTH_UNIT as ai,ADW_WRAP_BOX_DEFAULT_PACK_DIRECTION as oi,ADW_WRAP_BOX_DEFAULT_SPACING as si,ADW_WRAP_BOX_DEFAULT_WRAP_POLICY as ci,ADW_WRAP_BOX_JUSTIFY_MODES as li,ADW_WRAP_BOX_NATURAL_LINE_LENGTH_UNSET as ui,ADW_WRAP_BOX_PACK_DIRECTIONS as di,ADW_WRAP_POLICIES as fi,normalizeNaturalLineLength as pi,normalizeWrapBoxAlign as mi,normalizeWrapBoxJustify as hi,normalizeWrapBoxLengthUnit as gi,normalizeWrapBoxPackDirection as _i,normalizeWrapBoxSpacing as vi,normalizeWrapPolicy as yi,resolveWrapBoxChildOrder as bi,resolveWrapBoxLine as xi,wrapBoxLengthToPx as Si,wrapPolicyFlexShrink as Ci}from"./wrap-box.js";export{i as ADW_ABOUT_DIALOG_LABELS,z as ADW_BANNER_BUTTON_STYLES,B as ADW_BANNER_BUTTON_STYLE_CLASSES,V as ADW_BANNER_DEFAULTS,Z as ADW_BUTTON_CONTENT_DEFAULTS,Ee as ADW_CLAMP_DEFAULTS,De as ADW_CLAMP_SIZE_CLASSES,Nt as ADW_COMBO_NO_SELECTION,a as ADW_CREDITS_SECTION_TITLES,et as ADW_DATA_GRID_ROW_VARIANTS,gn as ADW_LENGTH_UNITS,o as ADW_LICENSES,s as ADW_LICENSE_ALIASES,c as ADW_LICENSE_DEFAULTS,l as ADW_LICENSE_WARRANTY_TEMPLATE,Gt as ADW_SIDEBAR_NO_SELECTION,Zt as ADW_SPINNER_CONTRACT_DISTANCE,Qt as ADW_SPINNER_CYCLES_PER_LOOP,$t as ADW_SPINNER_CYCLE_LENGTH,en as ADW_SPINNER_EXTEND_DISTANCE,tn as ADW_SPINNER_IDLE_DISTANCE,nn as ADW_SPINNER_MAX_ARC_LENGTH,Oe as ADW_SPINNER_MAX_SIZE,rn as ADW_SPINNER_MIN_ARC_LENGTH,ke as ADW_SPINNER_MIN_SIZE,an as ADW_SPINNER_N_CYCLES,on as ADW_SPINNER_OVERLAP_DISTANCE,sn as ADW_SPINNER_SPIN_DURATION_MS,cn as ADW_SPINNER_START_ANGLE,ln as ADW_SPINNER_STILL_PROGRESS,un as ADW_SPINNER_TRACK_OPACITY,bn as ADW_SWIPE_BORDER,Ae as ADW_TOOLBAR_BAR_CLASSES,je as ADW_TOOLBAR_VIEW_CLASSES,Me as ADW_TOOLBAR_VIEW_DEFAULTS,u as ADW_TRANSLATOR_CREDITS_SENTINELS,ni as ADW_WRAP_BOX_DEFAULT_ALIGN,ri as ADW_WRAP_BOX_DEFAULT_JUSTIFY,ii as ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE,ai as ADW_WRAP_BOX_DEFAULT_LENGTH_UNIT,oi as ADW_WRAP_BOX_DEFAULT_PACK_DIRECTION,si as ADW_WRAP_BOX_DEFAULT_SPACING,ci as ADW_WRAP_BOX_DEFAULT_WRAP_POLICY,li as ADW_WRAP_BOX_JUSTIFY_MODES,ui as ADW_WRAP_BOX_NATURAL_LINE_LENGTH_UNSET,di as ADW_WRAP_BOX_PACK_DIRECTIONS,fi as ADW_WRAP_POLICIES,O as AVATAR_COLORS,k as AVATAR_COLOR_COUNT,S as ActionRowState,dt as AdwAlertResponses,J as AdwBreakpoint,At as AdwToast,jt as AdwToastQueue,Ht as BACK_BUTTON_FALLBACK_TOOLTIP,Q as BUTTON_CONTENT_FALLBACK_ICON,$ as BUTTON_CONTENT_STYLE_CLASS,C as BUTTON_ROW_ACTIVATABLE,ft as BottomSheetPresentation,w as ButtonRowState,mt as CAPS_LOCK_ICON_NAME,ht as CAPS_LOCK_TOOLTIP,ce as CAROUSEL_SCROLL_TIMEOUT_MS,le as CAROUSEL_SETTLE_EPSILON,ue as CarouselState,Pt as ComboState,tt as DATA_GRID_CELL_CLASS,nt as DATA_GRID_ROW_CLASS,_n as DEFAULT_DPI,Gn as DEFAULT_DROPDOWN_TOOLTIP,Ke as DEFAULT_ICON_COLOR,qe as DEFAULT_ICON_COLOR_DARK,rr as DEFAULT_INDICATOR_DESCRIPTION_STRINGS,xn as DEFAULT_MAX_SIDEBAR_WIDTH,Sn as DEFAULT_MIN_SIDEBAR_WIDTH,Cn as DEFAULT_SIDEBAR_WIDTH_FRACTION,wn as DEFAULT_SIDEBAR_WIDTH_UNIT,Ar as DEFAULT_TAB_AUTOHIDE,Mt as DEFAULT_TOAST_TIMEOUT,gt as EMPTY_ANIMATION_DURATION_MS,_t as ENTRY_ROW_APPLY_ICON_NAME,vt as ENTRY_ROW_APPLY_TOOLTIP,yt as ENTRY_ROW_EDIT_ICON_NAME,bt as ENTRY_ROW_MAX_LENGTH_LIMIT,xt as ENTRY_ROW_TITLE_SPACING,St as EntryRowState,Ft as ExpanderState,d as GTK_LICENSE,ir as INLINE_VIEW_SWITCHER_DISPLAY_MODES,Tn as INSTANT_SPLIT_VIEW_ANIMATOR,En as NAVIGATION_SPLIT_VIEW_CRITICALS,Dn as NavigationSplitViewState,Ut as NavigationViewState,On as OverlaySplitViewState,Ct as PASSWORD_CONCEAL_ICON_NAME,wt as PASSWORD_CONCEAL_LABEL,Tt as PASSWORD_REVEAL_ICON_NAME,Et as PASSWORD_REVEAL_LABEL,Xr as POPOVER_ITEM_RADIUS,Zr as POPOVER_MENU_PADDING,Qr as POPOVER_PADDING,$r as POPOVER_RADIUS,Dt as PasswordEntryRowState,ei as PopoverState,be as RadioGroupState,Kn as SPLIT_BUTTON_DISABLED_OPACITY,Kt as SidebarState,It as SpinState,qn as SplitButtonState,T as SwitchRowState,jr as TabViewState,Lt as ToggleGroupState,zr as UNTITLED_PAGE_LABEL,ar as VIEW_SWITCHER_BADGE_LIMIT,or as VIEW_SWITCHER_DRAG_SWITCH_DELAY,sr as VIEW_SWITCHER_FALLBACK_ICON,cr as VIEW_SWITCHER_NO_SELECTION,lr as VIEW_SWITCHER_POLICIES,zt as ViewStackState,ur as ViewSwitcherBarState,dr as ViewSwitcherDragSwitch,fr as ViewSwitcherState,E as WindowTitleState,f as aboutDialogVisibility,qt as adjustSidebarSelection,vn as adwLengthToPx,Se as adwLerp,Je as adwaitaColorScheme,A as avatarColor,j as avatarColorClass,M as avatarFontSize,N as avatarInitials,P as avatarMaxFontSize,F as avatarMode,H as bannerButtonStyleClasses,U as bannerButtonText,W as bannerButtonVisible,G as bannerRenderState,pr as buildInlineToggles,mr as buildViewSwitcherButtons,ee as buttonContentEllipsize,te as buttonContentIconExpands,ne as buttonContentIconIsEmpty,re as buttonContentIconName,ie as buttonContentLabelText,ae as buttonContentLabelVisible,oe as buttonContentRenderState,se as buttonContentStyleTargetIndex,de as carouselClampPosition,fe as carouselClosestSnapPoint,pe as carouselNavigateTarget,me as carouselPageAtPosition,he as carouselRange,ge as carouselReorderShift,_e as carouselSizesFromSnapPoints,ve as carouselSnapPoints,ye as carouselWheelStep,Ne as clampAllocate,Pe as clampChildSize,Ot as clampEntryText,Jt as clampSidebarSelection,Fe as clampSizeFromChild,Ie as clampThresholds,Br as collectSearchRows,Vr as countVisiblePages,Hr as createSearchRowSubtitle,hr as createViewSwitcherPage,p as creditsSections,rt as dataGridCellText,it as dataGridColumnAlign,at as dataGridColumnClasses,ot as dataGridRowInteractive,st as dataGridTrackTemplate,ct as dataGridTracks,Ur as defaultCaseFolder,Wr as derivePreferencesGroupHeader,D as deriveRowLabels,Wt as describeNavigationDiagnostic,Ce as easeInOutSine,we as easeOutCubic,kt as entryTextLength,Gr as escapeMarkup,Y as evaluateBreakpointCondition,I as flattenAvatarGradient,Yt as flattenSidebarItems,L as gStrHash,e as gStrStrip,t as glibClamp,gr as inlineToggleTooltip,Te as inverseLerp,K as isBannerButtonStyle,Mr as isDescendantOfPage,_r as isInlineViewSwitcherDisplayMode,m as isLicenseType,kn as isSidebarAtVisualStart,Jn as isSplitButtonDirection,Ye as isThemeIconColor,vr as isViewSwitcherButtonVisible,yr as isViewSwitcherPolicy,An as layoutNavigationSplitView,jn as layoutOverlaySplitView,h as legalSectionVisible,g as licenseText,_ as licenseTypeForSpdxId,Kr as makeComparable,Mn as measureSplitViewHorizontal,Yn as menuButtonArrowIcon,Xn as menuButtonPopupDirection,Le as normalizeClampSize,Rt as normalizeComboOptions,lt as normalizeDataGridColumns,ut as normalizeDataGridVariant,Bt as normalizeIconName,yn as normalizeLengthUnit,pi as normalizeNaturalLineLength,dn as normalizeSpinnerAngle,mi as normalizeWrapBoxAlign,hi as normalizeWrapBoxJustify,gi as normalizeWrapBoxLengthUnit,_i as normalizeWrapBoxPackDirection,vi as normalizeWrapBoxSpacing,yi as normalizeWrapPolicy,Xe as onAdwaitaColorSchemeChanged,br as pageIndexForToggle,q as parseBannerButtonStyle,X as parseBreakpointCondition,v as parseCreditPerson,Zn as parseMenuEntries,Re as parseToolbarStyle,R as randomAvatarColorClass,pt as resolveBottomSheetClose,xe as resolveCheckState,Qn as resolveDropdownTooltip,Nn as resolveNaturalSidebarWidth,Pn as resolveNavigationAction,Fn as resolveNavigationSidebarWidth,In as resolveNavigationStack,Ln as resolveOverlaySidebarWidth,Vt as resolvePageTitle,ti as resolvePopoverKey,Rn as resolveSidebarBounds,ze as resolveSpinnerSize,zn as resolveSwipeArea,Bn as resolveSwipeRelease,Vn as resolveSwipeSnapPoints,Hn as resolveSwipeStart,bi as resolveWrapBoxChildOrder,xi as resolveWrapBoxLine,qr as rowMatchesQuery,Jr as searchPreferences,Ze as setAdwaitaColorScheme,y as setLicense,b as setLicenseType,xr as shouldRevealViewSwitcherBar,Xt as sidebarHeaders,fn as spinnerArc,pn as spinnerArcEnd,mn as spinnerArcStart,Be as spinnerGeometry,hn as spinnerProgressAt,$n as splitButtonArrowIcon,er as splitButtonPopupDirection,tr as splitButtonRootState,nr as splitButtonStyleClasses,n as stringIsNotEmpty,Yr as stripMarkup,r as stripMnemonic,Nr as successorAfterClose,Un as swipeCancelProgress,Pr as tabCloseVisible,Fr as tabIconState,Ir as tabTooltip,Lr as tabTooltipIsMarkup,Rr as tabsRevealed,Wn as tagsConflict,Qe as themeIconColor,$e as toggleAdwaitaColorScheme,Sr as toggleIndexForPage,Ve as toolbarBarStyleClasses,He as toolbarViewAllocate,Ue as toolbarViewClasses,We as toolbarViewContentForSize,Ge as toolbarViewMeasure,x as translatorCreditsPeople,Cr as viewSwitcherBadgeLabel,wr as viewSwitcherButtonOrientation,Tr as viewSwitcherIconName,Er as viewSwitcherIndicatorDescription,Dr as viewSwitcherLabel,Or as viewSwitcherPageFromStackPage,kr as viewSwitcherPagesFromStack,Si as wrapBoxLengthToPx,Ci as wrapPolicyFlexShrink};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";const e=[`px`,`pt`,`sp`],t=96;function adwLengthToPx(e,t,n=96){switch(e){case`pt`:return t*n/72;case`sp`:return t*n/96;default:return t}}function normalizeLengthUnit(t,n){return e.includes(t)?t:n}export{e as ADW_LENGTH_UNITS,t as DEFAULT_DPI,adwLengthToPx,normalizeLengthUnit};
|
package/lib/esm/rows.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./_virtual/_rolldown/runtime.js";var ExpanderState=class{constructor(){this._expanded=!1,this._listeners=new Set}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}_emit(){for(let e of[...this._listeners])e(this._expanded)}get expanded(){return this._expanded}setExpanded(e){let t=!!e;return t===this._expanded?!1:(this._expanded=t,this._emit(),!0)}toggle(){return this.setExpanded(!this._expanded)}expand(){return this.setExpanded(!0)}collapse(){return this.setExpanded(!1)}};function normalizeComboOptions(e){return Array.isArray(e)?e.map(e=>{if(typeof e==`string`)return{value:e,label:e};let t=e?.value===void 0?String(e?.label??``):String(e.value);return{value:t,label:e?.label===void 0?t:String(e.label)}}):[]}var ComboState=class{constructor(){this._options=[],this._selected=0,this._listeners=new Set}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}_emit(e){let t={selected:this._selected,value:this.selectedValue,label:this.selectedLabel,interactive:e};for(let e of[...this._listeners])e(t)}_setIndex(e,t){return e===this._selected?!1:(this._selected=e,this._emit(t),!0)}get options(){return this._options}setOptions(e){this._options=Array.isArray(e)?e:[],this.
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";var ExpanderState=class{constructor(){this._expanded=!1,this._listeners=new Set}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}_emit(){for(let e of[...this._listeners])e(this._expanded)}get expanded(){return this._expanded}setExpanded(e){let t=!!e;return t===this._expanded?!1:(this._expanded=t,this._emit(),!0)}toggle(){return this.setExpanded(!this._expanded)}expand(){return this.setExpanded(!0)}collapse(){return this.setExpanded(!1)}};function normalizeComboOptions(e){return Array.isArray(e)?e.map(e=>{if(typeof e==`string`)return{value:e,label:e};let t=e?.value===void 0?String(e?.label??``):String(e.value);return{value:t,label:e?.label===void 0?t:String(e.label)}}):[]}const e=-1;var ComboState=class{constructor(){this._options=[],this._selected=0,this._listeners=new Set}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}_emit(e){let t={selected:this._selected,value:this.selectedValue,label:this.selectedLabel,interactive:e};for(let e of[...this._listeners])e(t)}_setIndex(e,t){return e===this._selected?!1:(this._selected=e,this._emit(t),!0)}get options(){return this._options}setOptions(e){this._options=Array.isArray(e)?e:[],this.hasIndex(this._selected)||(this._selected=this._options.length===0?-1:0),this._emit(!1)}get selectedIndex(){return this._selected}get presentsChooser(){return this._options.length>1}setSelectedIndex(e){return this._setIndex(Number.isFinite(e)?e:0,!1)}get selectedValue(){return this._options[this._selected]?.value??``}get selectedLabel(){return this._options[this._selected]?.label??``}setSelectedValue(e){let t=this._options.findIndex(t=>t.value===e);return t>=0?this.setSelectedIndex(t):!1}hasIndex(e){return Number.isFinite(e)&&e>=0&&e<this._options.length}select(e){return!this.hasIndex(e)||e===this._selected?!1:this._setIndex(e,!0)}get count(){return this._options.length}},SpinState=class{constructor(){this._value=0,this._min=0,this._max=100,this._step=1,this._listeners=new Set}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}_emit(e){let t={value:this._value,interactive:e};for(let e of[...this._listeners])e(t)}_clamp(e){return Math.min(this._max,Math.max(this._min,e))}_bump(e){let t=this._clamp(this._value+e);return t===this._value?!1:(this._value=t,this._emit(!0),!0)}_reclamp(){let e=this._clamp(this._value);return e===this._value?!1:(this._value=e,this._emit(!1),!0)}get value(){return this._value}get min(){return this._min}get max(){return this._max}get step(){return this._step}setValue(e){let t=this._clamp(Number.isFinite(e)?e:0);return t===this._value?!1:(this._value=t,this._emit(!1),!0)}setMin(e){return this._min=Number.isFinite(e)?e:0,this._reclamp()}setMax(e){return this._max=Number.isFinite(e)?e:0,this._reclamp()}setStep(e){this._step=Number.isFinite(e)&&e>0?e:1}increment(){return this._bump(this._step)}decrement(){return this._bump(-this._step)}},ToggleGroupState=class{constructor(){this._labels=[],this._selected=0,this._listeners=new Set}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}_emit(){let e={selected:this._selected,value:this.selectedValue};for(let t of[...this._listeners])t(e)}get labels(){return this._labels}setLabels(e){this._labels=Array.isArray(e)?e:[],this._selected>=this._labels.length&&(this._selected=0)}get selected(){return this._selected}setSelected(e){let t=Number.isFinite(e)?e:0;return t===this._selected||t<0||t>=this._labels.length?!1:(this._selected=t,this._emit(),!0)}get selectedValue(){return this._labels[this._selected]??``}get count(){return this._labels.length}};export{e as ADW_COMBO_NO_SELECTION,ComboState,ExpanderState,SpinState,ToggleGroupState,normalizeComboOptions};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";import{adwLerp as e,easeInOutSine as t}from"./easing.js";const n=1200,r=Math.PI*.35,i=.15,a=Math.PI*.015,o=Math.PI*.9,s=Math.PI*.9,c=Math.PI*.7,l=Math.PI*1.1,u=Math.PI*1.35,d=53,f=s+l+u-c,p=53*Math.PI*2/f,m=l-c/2;function normalizeSpinnerAngle(e){let t=e;for(;t<0;)t+=Math.PI*2;for(;t>Math.PI*2;)t-=Math.PI*2;return t}function spinnerArcStart(n){let r=n%f,i=r>l?1:t(r/l);return e(a,o,i)-r*o/f}function spinnerArcEnd(n){let r=n%f,i=l-c,d;return d=r<i?0:r>f-s?1:t((r-i)/u),e(0,o-a,d)-r*o/f}function spinnerArc(e){let t=e,n=normalizeSpinnerAngle(t+spinnerArcStart(t)+r),i=normalizeSpinnerAngle(t+spinnerArcEnd(t)+r),a=n-i;for(;a<=0;)a+=Math.PI*2;return{start:n,end:i,length:a}}function spinnerProgressAt(e){let t=n*53;return(e%t+t)%t/n*Math.PI*2}export{u as ADW_SPINNER_CONTRACT_DISTANCE,p as ADW_SPINNER_CYCLES_PER_LOOP,f as ADW_SPINNER_CYCLE_LENGTH,l as ADW_SPINNER_EXTEND_DISTANCE,s as ADW_SPINNER_IDLE_DISTANCE,o as ADW_SPINNER_MAX_ARC_LENGTH,a as ADW_SPINNER_MIN_ARC_LENGTH,d as ADW_SPINNER_N_CYCLES,c as ADW_SPINNER_OVERLAP_DISTANCE,n as ADW_SPINNER_SPIN_DURATION_MS,r as ADW_SPINNER_START_ANGLE,m as ADW_SPINNER_STILL_PROGRESS,i as ADW_SPINNER_TRACK_OPACITY,normalizeSpinnerAngle,spinnerArc,spinnerArcEnd,spinnerArcStart,spinnerProgressAt};
|
package/lib/esm/split-view.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./_virtual/_rolldown/runtime.js";import{glibClamp as e}from"./glib.js";const t=96,n=180,r=280,i=.25,a=`sp`,o=32;function adwLengthToPx(e,t,n=96){switch(e){case`pt`:return t*n/72;case`sp`:return t*n/96;default:return t}}function isSidebarAtVisualStart(e,t=`ltr`){return e===`start`==(t!==`rtl`)}function fractionOf(e){return e.sidebarWidthFraction??.25}function resolveSidebarBounds(e,t=0,n={}){let r=e.sidebarWidthUnit??`sp`,i=e.dpi??96,a=n.ceil?Math.ceil:Math.trunc,o=adwLengthToPx(r,e.minSidebarWidth??180,i),s=adwLengthToPx(r,e.maxSidebarWidth??280,i),c=a(Math.max(t,o));return{min:c,max:a(Math.max(c,s))}}function resolveNaturalSidebarWidth(t,n,r){return r>=1?n.max:e(Math.ceil(t*r/(1-r)),n.min,n.max)}function resolveNavigationSidebarWidth(t){let n=resolveSidebarBounds(t,t.sidebarChildMin??0,{ceil:!0}),r=Math.min(n.max,t.totalWidth-(t.contentMin??0));return e(Math.trunc(t.totalWidth*fractionOf(t)),n.min,r)}function resolveOverlaySidebarWidth(t){let n=resolveSidebarBounds(t,t.sidebarChildMin??0,{ceil:!0});if(t.collapsed)return e(t.totalWidth,n.min,n.max);let r=e(Math.trunc(t.totalWidth*fractionOf(t)),n.min,n.max);return Math.min(r,t.totalWidth-(t.contentMin??0))}function measureSplitViewHorizontal(t){let n=e(t.showProgress??1,0,1);return{minimum:Math.trunc(t.bounds.min*n)+t.contentMin,natural:Math.trunc(t.sidebarNatural*n)+t.contentNatural}}function layoutNavigationSplitView(e){let{totalWidth:t,sidebarWidth:n}=e,r=t-n;return isSidebarAtVisualStart(e.sidebarPosition??`start`,e.direction??`ltr`)?{sidebar:{x:0,width:n},content:{x:n,width:r}}:{sidebar:{x:r,width:n},content:{x:0,width:r}}}function layoutOverlaySplitView(e){let{totalWidth:t,showProgress:n,collapsed:r}=e,i=e.sidebarWidth,a=isSidebarAtVisualStart(e.sidebarPosition??`start`,e.direction??`ltr`),o=i,s=Math.trunc(i*n),c=s>i,l={shieldVisible:r&&n>0,sidebarPainted:n>0,shadowProgress:1-Math.min(n,+!!r),shadowSide:a?`left`:`right`};return r?(c&&(o=s),{sidebar:{x:a?c?0:s-i:t-s,width:o},content:{x:0,width:t},...l}):(c&&(o=s,s=i),a?{sidebar:{x:s-i,width:o},content:{x:s,width:t-s},...l}:{sidebar:{x:t-(c?o:s),width:o},content:{x:0,width:t-s},...l})}function tagsConflict(e,t){return e==null||t==null?!1:e===t}function resolveNavigationStack(e){let{hasSidebar:t,hasContent:n,showContent:r}=e,i=e.sidebarPosition===`end`;if(e.changingPage&&t&&n)return r?i?{stack:[`content`],transition:`pop`,page:`sidebar`}:{stack:[`sidebar`,`content`],transition:`push`,page:`content`}:i?{stack:[`content`,`sidebar`],transition:`push`,page:`sidebar`}:{stack:[`sidebar`],transition:`pop`,page:`content`};let a=[];return i?(n&&a.push(`content`),t&&(!r||!n)&&a.push(`sidebar`)):(t&&a.push(`sidebar`),n&&(r||!t)&&a.push(`content`)),{stack:a,transition:`replace`,page:null}}function resolveNavigationAction(e){if(e.action===`pop`)return e.showContent&&e.hasSidebar&&e.hasContent?{kind:`set-show-content`,showContent:!1}:{kind:`delegate`};let{tag:t}=e;return e.contentTag!==null&&e.contentTag!==void 0&&t===e.contentTag?e.showContent&&e.collapsed?{kind:`already-in-stack`,tag:t}:{kind:`set-show-content`,showContent:!0}:e.sidebarTag!==null&&e.sidebarTag!==void 0&&t===e.sidebarTag?{kind:`already-in-stack`,tag:t}:{kind:`delegate`}}const s={alreadyInStack:e=>`Page with the tag '${e}' is already in the navigation stack`,notFound:e=>`No page with the tag '${e}' found in AdwNavigationSplitView`,sidebarCollision:e=>`Trying to add sidebar with the tag '${e}' to AdwNavigationSplitView, but content already has the same tag`,contentCollision:e=>`Trying to add content with the tag '${e}' to AdwNavigationSplitView, but sidebar already has the same tag`,sidebarTagCollision:e=>`Trying to set the sidebar's tag to '${e}', but the content already has the same tag`,contentTagCollision:e=>`Trying to set the content's tag to '${e}', but the sidebar already has the same tag`};var NavigationSplitViewState=class{constructor(e={}){this._sidebar=null,this._content=null,this._sidebarTag=null,this._contentTag=null,this._listeners=new Set,this._sidebarPosition=e.sidebarPosition??`start`,this._collapsed=e.collapsed??!1,this._showContent=e.showContent??!1,this._handlers={onCritical:e.onCritical,onDelegate:e.onDelegate}}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}_emit(e,t,n=!1){let r={property:e,interactive:n,plan:t};for(let e of[...this._listeners])e(r)}_critical(e){this._handlers.onCritical?.(e)}_plan(e=!1){return resolveNavigationStack({hasSidebar:this._sidebar!==null,hasContent:this._content!==null,sidebarPosition:this._sidebarPosition,showContent:this._showContent,changingPage:e})}get collapsed(){return this._collapsed}get showContent(){return this._showContent}get sidebarPosition(){return this._sidebarPosition}get sidebar(){return this._sidebar}get content(){return this._content}get sidebarTag(){return this._sidebarTag}get contentTag(){return this._contentTag}get stack(){return this._plan()}get visiblePane(){let{stack:e}=this._plan();return e[e.length-1]??null}setSidebar(e){if(e===this._sidebar)return!1;let t=e?.tag??null;return tagsConflict(t,this._contentTag)?(this._critical(s.sidebarCollision(t)),!1):(this._sidebar=e,this._sidebarTag=t,this._emit(`sidebar`,this._plan()),!0)}setContent(e){if(e===this._content)return!1;let t=e?.tag??null;return tagsConflict(this._sidebarTag,t)?(this._critical(s.contentCollision(t)),!1):(this._content=e,this._contentTag=t,this._emit(`content`,this._plan()),!0)}setTag(e,t){return e===`sidebar`?(this._sidebarTag=t,tagsConflict(this._sidebarTag,this._contentTag)?(this._critical(s.sidebarTagCollision(t)),this._sidebarTag=null,!1):!0):(this._contentTag=t,tagsConflict(this._sidebarTag,this._contentTag)?(this._critical(s.contentTagCollision(t)),this._contentTag=null,!1):!0)}setSidebarPosition(e){return e===this._sidebarPosition?!1:(this._sidebarPosition=e,this._emit(`sidebar-position`,this._plan()),!0)}setCollapsed(e){let t=!!e;return t===this._collapsed?!1:(this._collapsed=t,this._emit(`collapsed`,this._plan()),!0)}setShowContent(e,t=!1){let n=!!e;if(n===this._showContent)return!1;this._showContent=n;let r=this._collapsed&&this._sidebar!==null&&this._content!==null;return this._emit(`show-content`,this._plan(r),t),!0}push(e){return this._runAction(resolveNavigationAction({action:`push`,tag:e,sidebarTag:this._sidebarTag,contentTag:this._contentTag,showContent:this._showContent,collapsed:this._collapsed}),`push`,e)}pop(){return this._runAction(resolveNavigationAction({action:`pop`,hasSidebar:this._sidebar!==null,hasContent:this._content!==null,showContent:this._showContent}),`pop`)}_runAction(e,t,n){switch(e.kind){case`set-show-content`:return this.setShowContent(e.showContent,!0),e;case`already-in-stack`:return this._critical(s.alreadyInStack(e.tag)),e;default:return this._handlers.onDelegate?.(t,n)||t===`pop`?e:(this._critical(s.notFound(n??``)),{kind:`not-found`,tag:n??``})}}};const c={animate(e){return e.onValue(e.to),e.onDone(),{cancel:()=>{}}}};var OverlaySplitViewState=class{constructor(e={}){this._swipeActive=!1,this._animation=null,this._listeners=new Set,this._showSidebar=e.showSidebar??!0,this._collapsed=e.collapsed??!1,this._pinSidebar=e.pinSidebar??!1,this._sidebarPosition=e.sidebarPosition??`start`,this._enableShowGesture=e.enableShowGesture??!0,this._enableHideGesture=e.enableHideGesture??!0,this._showProgress=+!!this._showSidebar,this._animator=e.animator??c}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}_emit(e,t=!1){let n={property:e,showSidebar:this._showSidebar,collapsed:this._collapsed,showProgress:this._showProgress,shieldVisible:this.shieldVisible,interactive:t};for(let e of[...this._listeners])e(n)}get showSidebar(){return this._showSidebar}get collapsed(){return this._collapsed}get pinSidebar(){return this._pinSidebar}get sidebarPosition(){return this._sidebarPosition}get enableShowGesture(){return this._enableShowGesture}get enableHideGesture(){return this._enableHideGesture}get showProgress(){return this._showProgress}get shieldVisible(){return this._collapsed&&this._showProgress>0}get sidebarPainted(){return this._showProgress>0}get sidebarFocusable(){return!this._collapsed||this._showSidebar}get contentFocusable(){return!this._collapsed||!this._showSidebar}setShowSidebar(e,t={}){let n=!!e;if(n===this._showSidebar)return!1;this._showSidebar=n;let r=+!!n,i=t.animate??!0;return i||(this._cancelAnimation(),this._showProgress=r),this._emit(`show-sidebar`,t.interactive??!1),i&&!this._swipeActive&&this._startAnimation(r,t.velocity??0),!0}setCollapsed(e){let t=!!e;return t===this._collapsed?!1:(this._collapsed=t,this._pinSidebar||this.setShowSidebar(!t,{animate:!1}),this._emit(`collapsed`),!0)}setPinSidebar(e){let t=!!e;return t===this._pinSidebar?!1:(this._pinSidebar=t,this._emit(`pin-sidebar`),!0)}setSidebarPosition(e){return e===this._sidebarPosition?!1:(this._sidebarPosition=e,this._emit(`sidebar-position`),!0)}setEnableShowGesture(e){let t=!!e;return t===this._enableShowGesture?!1:(this._enableShowGesture=t,!0)}setEnableHideGesture(e){let t=!!e;return t===this._enableHideGesture?!1:(this._enableHideGesture=t,!0)}setShowProgress(e){this._showProgress=e,this._emit(`show-progress`)}escape(){return this._showProgress<2**-52||!this._collapsed?!1:(this.setShowSidebar(!1,{interactive:!0}),!0)}dismissShield(){return this.setShowSidebar(!1,{interactive:!0})}get swipeActive(){return this._swipeActive}beginSwipe(){this._cancelAnimation(),this._swipeActive=!0}endSwipe(e,t=0){if(!this._swipeActive)return{kind:`animate`,to:this._showProgress};this._swipeActive=!1;let n=resolveSwipeRelease({to:e,showSidebar:this._showSidebar});return n.kind===`animate`?this._startAnimation(n.to,t):this.setShowSidebar(n.showSidebar,{velocity:t,interactive:!0}),n}get snapPoints(){return resolveSwipeSnapPoints({showProgress:this._showProgress,enableShowGesture:this._enableShowGesture,enableHideGesture:this._enableHideGesture,swipeActive:this._swipeActive})}_cancelAnimation(){this._animation?.cancel(),this._animation=null}_startAnimation(e,t){this._cancelAnimation();let n=!1,r=this._animator.animate({from:this._showProgress,to:e,velocity:t,clamp:e<.5,onValue:e=>this.setShowProgress(e),onDone:()=>{n=!0,this._animation=null}});n||(this._animation=r)}};function resolveSwipeSnapPoints(e){let t=e.showProgress>0||e.enableShowGesture||e.swipeActive,n=e.showProgress<1||e.enableHideGesture||e.swipeActive;return t&&n?[0,1]:[+!!t]}function resolveSwipeStart(e){let t=Math.abs(e.showProgress-1)<2**-52||e.showProgress>1,n=Math.abs(e.showProgress)<2**-52||e.showProgress<0;return!(t&&!e.collapsed&&e.direction===`forward`||n&&!e.enableShowGesture||t&&!e.enableHideGesture)}function resolveSwipeRelease(e){return e.to>0===e.showSidebar?{kind:`animate`,to:e.to}:{kind:`set-show-sidebar`,showSidebar:e.to>0}}function swipeCancelProgress(e){let t=e<0?-Math.round(-e):Math.round(e);return t===0?0:t}function resolveSwipeArea(e){if(!e.isDrag)return{x:0,y:0,width:0,height:0};let t=Math.max(Math.trunc(e.sidebarWidth*e.showProgress),32);return{x:isSidebarAtVisualStart(e.sidebarPosition??`start`,e.direction??`ltr`)?0:e.totalWidth-t,y:0,width:t,height:e.totalHeight}}export{o as ADW_SWIPE_BORDER,t as DEFAULT_DPI,r as DEFAULT_MAX_SIDEBAR_WIDTH,n as DEFAULT_MIN_SIDEBAR_WIDTH,i as DEFAULT_SIDEBAR_WIDTH_FRACTION,a as DEFAULT_SIDEBAR_WIDTH_UNIT,c as INSTANT_SPLIT_VIEW_ANIMATOR,s as NAVIGATION_SPLIT_VIEW_CRITICALS,NavigationSplitViewState,OverlaySplitViewState,adwLengthToPx,isSidebarAtVisualStart,layoutNavigationSplitView,layoutOverlaySplitView,measureSplitViewHorizontal,resolveNaturalSidebarWidth,resolveNavigationAction,resolveNavigationSidebarWidth,resolveNavigationStack,resolveOverlaySidebarWidth,resolveSidebarBounds,resolveSwipeArea,resolveSwipeRelease,resolveSwipeSnapPoints,resolveSwipeStart,swipeCancelProgress,tagsConflict};
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";import{glibClamp as e}from"./glib.js";import{adwLengthToPx as t}from"./length-unit.js";const n=180,r=280,i=.25,a=`sp`,o=32;function isSidebarAtVisualStart(e,t=`ltr`){return e===`start`==(t!==`rtl`)}function fractionOf(e){return e.sidebarWidthFraction??.25}function resolveSidebarBounds(e,n=0,r={}){let i=e.sidebarWidthUnit??`sp`,a=e.dpi??96,o=r.ceil?Math.ceil:Math.trunc,s=t(i,e.minSidebarWidth??180,a),c=t(i,e.maxSidebarWidth??280,a),l=o(Math.max(n,s));return{min:l,max:o(Math.max(l,c))}}function resolveNaturalSidebarWidth(t,n,r){return r>=1?n.max:e(Math.ceil(t*r/(1-r)),n.min,n.max)}function resolveNavigationSidebarWidth(t){let n=resolveSidebarBounds(t,t.sidebarChildMin??0,{ceil:!0}),r=Math.min(n.max,t.totalWidth-(t.contentMin??0));return e(Math.trunc(t.totalWidth*fractionOf(t)),n.min,r)}function resolveOverlaySidebarWidth(t){let n=resolveSidebarBounds(t,t.sidebarChildMin??0,{ceil:!0});if(t.collapsed)return e(t.totalWidth,n.min,n.max);let r=e(Math.trunc(t.totalWidth*fractionOf(t)),n.min,n.max);return Math.min(r,t.totalWidth-(t.contentMin??0))}function measureSplitViewHorizontal(t){let n=e(t.showProgress??1,0,1);return{minimum:Math.trunc(t.bounds.min*n)+t.contentMin,natural:Math.trunc(t.sidebarNatural*n)+t.contentNatural}}function layoutNavigationSplitView(e){let{totalWidth:t,sidebarWidth:n}=e,r=t-n;return isSidebarAtVisualStart(e.sidebarPosition??`start`,e.direction??`ltr`)?{sidebar:{x:0,width:n},content:{x:n,width:r}}:{sidebar:{x:r,width:n},content:{x:0,width:r}}}function layoutOverlaySplitView(e){let{totalWidth:t,showProgress:n,collapsed:r}=e,i=e.sidebarWidth,a=isSidebarAtVisualStart(e.sidebarPosition??`start`,e.direction??`ltr`),o=i,s=Math.trunc(i*n),c=s>i,l={shieldVisible:r&&n>0,sidebarPainted:n>0,shadowProgress:1-Math.min(n,+!!r),shadowSide:a?`left`:`right`};return r?(c&&(o=s),{sidebar:{x:a?c?0:s-i:t-s,width:o},content:{x:0,width:t},...l}):(c&&(o=s,s=i),a?{sidebar:{x:s-i,width:o},content:{x:s,width:t-s},...l}:{sidebar:{x:t-(c?o:s),width:o},content:{x:0,width:t-s},...l})}function tagsConflict(e,t){return e==null||t==null?!1:e===t}function resolveNavigationStack(e){let{hasSidebar:t,hasContent:n,showContent:r}=e,i=e.sidebarPosition===`end`;if(e.changingPage&&t&&n)return r?i?{stack:[`content`],transition:`pop`,page:`sidebar`}:{stack:[`sidebar`,`content`],transition:`push`,page:`content`}:i?{stack:[`content`,`sidebar`],transition:`push`,page:`sidebar`}:{stack:[`sidebar`],transition:`pop`,page:`content`};let a=[];return i?(n&&a.push(`content`),t&&(!r||!n)&&a.push(`sidebar`)):(t&&a.push(`sidebar`),n&&(r||!t)&&a.push(`content`)),{stack:a,transition:`replace`,page:null}}function resolveNavigationAction(e){if(e.action===`pop`)return e.showContent&&e.hasSidebar&&e.hasContent?{kind:`set-show-content`,showContent:!1}:{kind:`delegate`};let{tag:t}=e;return e.contentTag!==null&&e.contentTag!==void 0&&t===e.contentTag?e.showContent&&e.collapsed?{kind:`already-in-stack`,tag:t}:{kind:`set-show-content`,showContent:!0}:e.sidebarTag!==null&&e.sidebarTag!==void 0&&t===e.sidebarTag?{kind:`already-in-stack`,tag:t}:{kind:`delegate`}}const s={alreadyInStack:e=>`Page with the tag '${e}' is already in the navigation stack`,notFound:e=>`No page with the tag '${e}' found in AdwNavigationSplitView`,sidebarCollision:e=>`Trying to add sidebar with the tag '${e}' to AdwNavigationSplitView, but content already has the same tag`,contentCollision:e=>`Trying to add content with the tag '${e}' to AdwNavigationSplitView, but sidebar already has the same tag`,sidebarTagCollision:e=>`Trying to set the sidebar's tag to '${e}', but the content already has the same tag`,contentTagCollision:e=>`Trying to set the content's tag to '${e}', but the sidebar already has the same tag`};var NavigationSplitViewState=class{constructor(e={}){this._sidebar=null,this._content=null,this._sidebarTag=null,this._contentTag=null,this._listeners=new Set,this._sidebarPosition=e.sidebarPosition??`start`,this._collapsed=e.collapsed??!1,this._showContent=e.showContent??!1,this._handlers={onCritical:e.onCritical,onDelegate:e.onDelegate}}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}_emit(e,t,n=!1){let r={property:e,interactive:n,plan:t};for(let e of[...this._listeners])e(r)}_critical(e){this._handlers.onCritical?.(e)}_plan(e=!1){return resolveNavigationStack({hasSidebar:this._sidebar!==null,hasContent:this._content!==null,sidebarPosition:this._sidebarPosition,showContent:this._showContent,changingPage:e})}get collapsed(){return this._collapsed}get showContent(){return this._showContent}get sidebarPosition(){return this._sidebarPosition}get sidebar(){return this._sidebar}get content(){return this._content}get sidebarTag(){return this._sidebarTag}get contentTag(){return this._contentTag}get stack(){return this._plan()}get visiblePane(){let{stack:e}=this._plan();return e[e.length-1]??null}setSidebar(e){if(e===this._sidebar)return!1;let t=e?.tag??null;return tagsConflict(t,this._contentTag)?(this._critical(s.sidebarCollision(t)),!1):(this._sidebar=e,this._sidebarTag=t,this._emit(`sidebar`,this._plan()),!0)}setContent(e){if(e===this._content)return!1;let t=e?.tag??null;return tagsConflict(this._sidebarTag,t)?(this._critical(s.contentCollision(t)),!1):(this._content=e,this._contentTag=t,this._emit(`content`,this._plan()),!0)}setTag(e,t){return e===`sidebar`?(this._sidebarTag=t,tagsConflict(this._sidebarTag,this._contentTag)?(this._critical(s.sidebarTagCollision(t)),this._sidebarTag=null,!1):!0):(this._contentTag=t,tagsConflict(this._sidebarTag,this._contentTag)?(this._critical(s.contentTagCollision(t)),this._contentTag=null,!1):!0)}setSidebarPosition(e){return e===this._sidebarPosition?!1:(this._sidebarPosition=e,this._emit(`sidebar-position`,this._plan()),!0)}setCollapsed(e){let t=!!e;return t===this._collapsed?!1:(this._collapsed=t,this._emit(`collapsed`,this._plan()),!0)}setShowContent(e,t=!1){let n=!!e;if(n===this._showContent)return!1;this._showContent=n;let r=this._collapsed&&this._sidebar!==null&&this._content!==null;return this._emit(`show-content`,this._plan(r),t),!0}push(e){return this._runAction(resolveNavigationAction({action:`push`,tag:e,sidebarTag:this._sidebarTag,contentTag:this._contentTag,showContent:this._showContent,collapsed:this._collapsed}),`push`,e)}pop(){return this._runAction(resolveNavigationAction({action:`pop`,hasSidebar:this._sidebar!==null,hasContent:this._content!==null,showContent:this._showContent}),`pop`)}_runAction(e,t,n){switch(e.kind){case`set-show-content`:return this.setShowContent(e.showContent,!0),e;case`already-in-stack`:return this._critical(s.alreadyInStack(e.tag)),e;default:return this._handlers.onDelegate?.(t,n)||t===`pop`?e:(this._critical(s.notFound(n??``)),{kind:`not-found`,tag:n??``})}}};const c={animate(e){return e.onValue(e.to),e.onDone(),{cancel:()=>{}}}};var OverlaySplitViewState=class{constructor(e={}){this._swipeActive=!1,this._animation=null,this._listeners=new Set,this._showSidebar=e.showSidebar??!0,this._collapsed=e.collapsed??!1,this._pinSidebar=e.pinSidebar??!1,this._sidebarPosition=e.sidebarPosition??`start`,this._enableShowGesture=e.enableShowGesture??!0,this._enableHideGesture=e.enableHideGesture??!0,this._showProgress=+!!this._showSidebar,this._animator=e.animator??c}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}_emit(e,t=!1){let n={property:e,showSidebar:this._showSidebar,collapsed:this._collapsed,showProgress:this._showProgress,shieldVisible:this.shieldVisible,interactive:t};for(let e of[...this._listeners])e(n)}get showSidebar(){return this._showSidebar}get collapsed(){return this._collapsed}get pinSidebar(){return this._pinSidebar}get sidebarPosition(){return this._sidebarPosition}get enableShowGesture(){return this._enableShowGesture}get enableHideGesture(){return this._enableHideGesture}get showProgress(){return this._showProgress}get shieldVisible(){return this._collapsed&&this._showProgress>0}get sidebarPainted(){return this._showProgress>0}get sidebarFocusable(){return!this._collapsed||this._showSidebar}get contentFocusable(){return!this._collapsed||!this._showSidebar}setShowSidebar(e,t={}){let n=!!e;if(n===this._showSidebar)return!1;this._showSidebar=n;let r=+!!n,i=t.animate??!0;return i||(this._cancelAnimation(),this._showProgress=r),this._emit(`show-sidebar`,t.interactive??!1),i&&!this._swipeActive&&this._startAnimation(r,t.velocity??0),!0}setCollapsed(e){let t=!!e;return t===this._collapsed?!1:(this._collapsed=t,this._pinSidebar||this.setShowSidebar(!t,{animate:!1}),this._emit(`collapsed`),!0)}setPinSidebar(e){let t=!!e;return t===this._pinSidebar?!1:(this._pinSidebar=t,this._emit(`pin-sidebar`),!0)}setSidebarPosition(e){return e===this._sidebarPosition?!1:(this._sidebarPosition=e,this._emit(`sidebar-position`),!0)}setEnableShowGesture(e){let t=!!e;return t===this._enableShowGesture?!1:(this._enableShowGesture=t,!0)}setEnableHideGesture(e){let t=!!e;return t===this._enableHideGesture?!1:(this._enableHideGesture=t,!0)}setShowProgress(e){this._showProgress=e,this._emit(`show-progress`)}escape(){return this._showProgress<2**-52||!this._collapsed?!1:(this.setShowSidebar(!1,{interactive:!0}),!0)}dismissShield(){return this.setShowSidebar(!1,{interactive:!0})}get swipeActive(){return this._swipeActive}beginSwipe(){this._cancelAnimation(),this._swipeActive=!0}endSwipe(e,t=0){if(!this._swipeActive)return{kind:`animate`,to:this._showProgress};this._swipeActive=!1;let n=resolveSwipeRelease({to:e,showSidebar:this._showSidebar});return n.kind===`animate`?this._startAnimation(n.to,t):this.setShowSidebar(n.showSidebar,{velocity:t,interactive:!0}),n}get snapPoints(){return resolveSwipeSnapPoints({showProgress:this._showProgress,enableShowGesture:this._enableShowGesture,enableHideGesture:this._enableHideGesture,swipeActive:this._swipeActive})}_cancelAnimation(){this._animation?.cancel(),this._animation=null}_startAnimation(e,t){this._cancelAnimation();let n=!1,r=this._animator.animate({from:this._showProgress,to:e,velocity:t,clamp:e<.5,onValue:e=>this.setShowProgress(e),onDone:()=>{n=!0,this._animation=null}});n||(this._animation=r)}};function resolveSwipeSnapPoints(e){let t=e.showProgress>0||e.enableShowGesture||e.swipeActive,n=e.showProgress<1||e.enableHideGesture||e.swipeActive;return t&&n?[0,1]:[+!!t]}function resolveSwipeStart(e){let t=Math.abs(e.showProgress-1)<2**-52||e.showProgress>1,n=Math.abs(e.showProgress)<2**-52||e.showProgress<0;return!(t&&!e.collapsed&&e.direction===`forward`||n&&!e.enableShowGesture||t&&!e.enableHideGesture)}function resolveSwipeRelease(e){return e.to>0===e.showSidebar?{kind:`animate`,to:e.to}:{kind:`set-show-sidebar`,showSidebar:e.to>0}}function swipeCancelProgress(e){let t=e<0?-Math.round(-e):Math.round(e);return t===0?0:t}function resolveSwipeArea(e){if(!e.isDrag)return{x:0,y:0,width:0,height:0};let t=Math.max(Math.trunc(e.sidebarWidth*e.showProgress),32);return{x:isSidebarAtVisualStart(e.sidebarPosition??`start`,e.direction??`ltr`)?0:e.totalWidth-t,y:0,width:t,height:e.totalHeight}}export{o as ADW_SWIPE_BORDER,r as DEFAULT_MAX_SIDEBAR_WIDTH,n as DEFAULT_MIN_SIDEBAR_WIDTH,i as DEFAULT_SIDEBAR_WIDTH_FRACTION,a as DEFAULT_SIDEBAR_WIDTH_UNIT,c as INSTANT_SPLIT_VIEW_ANIMATOR,s as NAVIGATION_SPLIT_VIEW_CRITICALS,NavigationSplitViewState,OverlaySplitViewState,isSidebarAtVisualStart,layoutNavigationSplitView,layoutOverlaySplitView,measureSplitViewHorizontal,resolveNaturalSidebarWidth,resolveNavigationAction,resolveNavigationSidebarWidth,resolveNavigationStack,resolveOverlaySidebarWidth,resolveSidebarBounds,resolveSwipeArea,resolveSwipeRelease,resolveSwipeSnapPoints,resolveSwipeStart,swipeCancelProgress,tagsConflict};
|
package/lib/esm/view-stack.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./_virtual/_rolldown/runtime.js";function resolvePageTitle(e,t){return e??t}const e=/^[A-Za-z0-9_-]+$/;function normalizeIconName(t){let n=(t??``).replace(/-symbolic$/,``);return e.test(n)?n:``}function nameNotFoundDiagnostic(e){return`Child name '${e}' not found in AdwViewStack`}function duplicateNameDiagnostic(e){return`While adding page: duplicate child name in AdwViewStack: ${e}`}var ViewStackState=class{constructor(){this._pages=[],this._visibleIndex=-1,this._listeners=new Set,this._diagnostics=[],this._pagesView=null}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}_emit(e){let t=this._pageAt(this._visibleIndex),n={index:this._visibleIndex,name:t?.name??``,title:t?.title??``,page:t,interactive:e};for(let e of[...this._listeners])e(n)}_pageAt(e){return e>=0&&e<this._pages.length?this._pages[e]:void 0}_firstVisibleIndex(){return this._pages.findIndex(e=>e.visible)}_record(e){return{name:e.name,title:resolvePageTitle(e.title,e.name),icon:normalizeIconName(e.icon),content:e.content,visible:e.visible??!0}}get pages(){return this._pagesView??=Object.freeze(this._pages.slice()),this._pagesView}get count(){return this._pages.length}indexOfName(e){return this._pages.findIndex(t=>t.name===e)}isSelected(e){return!Number.isInteger(e)||e<0||e>=this._pages.length?!1:e===this._visibleIndex}addPage(e){return this._insertRecord(this._record(e),this._pages.length)}insertPage(e,t){return!Number.isInteger(t)||t<0||t>this._pages.length?null:this._insertRecord(this._record(e),t)}_insertRecord(e,t){return this.indexOfName(e.name)>=0&&this._diagnostics.push(duplicateNameDiagnostic(e.name)),this._pages.splice(t,0,e),this._pagesView=null,this._visibleIndex<0?(e.visible&&(this._visibleIndex=t,this._emit(!1)),e):(t<=this._visibleIndex&&(this._visibleIndex+=1),e)}movePage(e,t){if(!Number.isInteger(e)||!Number.isInteger(t)||e<0||e>=this._pages.length||t<0||t>=this._pages.length||e===t)return!1;let[n]=this._pages.splice(e,1);if(this._pages.splice(t,0,n),this._pagesView=null,this._visibleIndex===e)this._visibleIndex=t;else{let n=this._visibleIndex;n>e&&--n,n>=t&&(n+=1),this._visibleIndex=n}return!0}removePage(e){let t=this.indexOfName(e);return t<0?!1:(this._pages.splice(t,1),this._pagesView=null,t===this._visibleIndex?this._visibleIndex=-1:t<this._visibleIndex&&--this._visibleIndex,!0)}get visibleIndex(){return this._visibleIndex}setVisibleIndex(e,t=!0){return!Number.isInteger(e)||e<0||e>=this._pages.length||e===this._visibleIndex||!this._pages[e].visible?!1:(this._visibleIndex=e,this._emit(t),!0)}get visibleName(){return this._pageAt(this._visibleIndex)?.name??``}setVisibleName(e,t=!0){if(e==null)return!1;let n=this.indexOfName(e);return n<0?(this._diagnostics.push(nameNotFoundDiagnostic(e)),!1):this.setVisibleIndex(n,t)}get visiblePage(){return this._pageAt(this._visibleIndex)}get visibleTitle(){return this._pageAt(this._visibleIndex)?.title??``}setPageVisible(e,t){let n=this.indexOfName(e);if(n<0)return this._diagnostics.push(nameNotFoundDiagnostic(e)),!1;let r=this._pages[n],i=!!t;return r.visible===i?!1:(r.visible=i,this._visibleIndex<0&&i?(this._visibleIndex=n,this._emit(!1),!0):this._visibleIndex===n&&!i?(this._visibleIndex=this._firstVisibleIndex(),this._emit(!1),!0):!1)}get duplicateNames(){let e=new Set,t=[];for(let n of this._pages)e.has(n.name)?t.includes(n.name)||t.push(n.name):e.add(n.name);return t}get diagnostics(){return this._diagnostics}};export{ViewStackState,normalizeIconName,resolvePageTitle};
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";function resolvePageTitle(e,t){return e??t}const e=/^[A-Za-z0-9_-]+$/;function normalizeIconName(t){let n=(t??``).replace(/-symbolic$/,``);return e.test(n)?n:``}function nameNotFoundDiagnostic(e){return`Child name '${e}' not found in AdwViewStack`}function duplicateNameDiagnostic(e){return`While adding page: duplicate child name in AdwViewStack: ${e}`}var ViewStackState=class{constructor(){this._pages=[],this._visibleIndex=-1,this._listeners=new Set,this._diagnostics=[],this._pagesView=null}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}_emit(e){let t=this._pageAt(this._visibleIndex),n={index:this._visibleIndex,name:t?.name??``,title:t?.title??``,page:t,interactive:e};for(let e of[...this._listeners])e(n)}_pageAt(e){return e>=0&&e<this._pages.length?this._pages[e]:void 0}_firstVisibleIndex(){return this._pages.findIndex(e=>e.visible)}_record(e){return{name:e.name,title:resolvePageTitle(e.title,e.name),icon:normalizeIconName(e.icon),content:e.content,visible:e.visible??!0,badgeNumber:Number.isFinite(e.badgeNumber)?Math.trunc(e.badgeNumber):0,needsAttention:e.needsAttention===!0,useUnderline:e.useUnderline===!0}}get pages(){return this._pagesView??=Object.freeze(this._pages.slice()),this._pagesView}get count(){return this._pages.length}indexOfName(e){return this._pages.findIndex(t=>t.name===e)}isSelected(e){return!Number.isInteger(e)||e<0||e>=this._pages.length?!1:e===this._visibleIndex}addPage(e){return this._insertRecord(this._record(e),this._pages.length)}insertPage(e,t){return!Number.isInteger(t)||t<0||t>this._pages.length?null:this._insertRecord(this._record(e),t)}_insertRecord(e,t){return this.indexOfName(e.name)>=0&&this._diagnostics.push(duplicateNameDiagnostic(e.name)),this._pages.splice(t,0,e),this._pagesView=null,this._visibleIndex<0?(e.visible&&(this._visibleIndex=t,this._emit(!1)),e):(t<=this._visibleIndex&&(this._visibleIndex+=1),e)}movePage(e,t){if(!Number.isInteger(e)||!Number.isInteger(t)||e<0||e>=this._pages.length||t<0||t>=this._pages.length||e===t)return!1;let[n]=this._pages.splice(e,1);if(this._pages.splice(t,0,n),this._pagesView=null,this._visibleIndex===e)this._visibleIndex=t;else{let n=this._visibleIndex;n>e&&--n,n>=t&&(n+=1),this._visibleIndex=n}return!0}removePage(e){let t=this.indexOfName(e);return t<0?!1:(this._pages.splice(t,1),this._pagesView=null,t===this._visibleIndex?this._visibleIndex=-1:t<this._visibleIndex&&--this._visibleIndex,!0)}get visibleIndex(){return this._visibleIndex}setVisibleIndex(e,t=!0){return!Number.isInteger(e)||e<0||e>=this._pages.length||e===this._visibleIndex||!this._pages[e].visible?!1:(this._visibleIndex=e,this._emit(t),!0)}get visibleName(){return this._pageAt(this._visibleIndex)?.name??``}setVisibleName(e,t=!0){if(e==null)return!1;let n=this.indexOfName(e);return n<0?(this._diagnostics.push(nameNotFoundDiagnostic(e)),!1):this.setVisibleIndex(n,t)}get visiblePage(){return this._pageAt(this._visibleIndex)}get visibleTitle(){return this._pageAt(this._visibleIndex)?.title??``}setPageVisible(e,t){let n=this.indexOfName(e);if(n<0)return this._diagnostics.push(nameNotFoundDiagnostic(e)),!1;let r=this._pages[n],i=!!t;return r.visible===i?!1:(r.visible=i,this._visibleIndex<0&&i?(this._visibleIndex=n,this._emit(!1),!0):this._visibleIndex===n&&!i?(this._visibleIndex=this._firstVisibleIndex(),this._emit(!1),!0):!1)}get duplicateNames(){let e=new Set,t=[];for(let n of this._pages)e.has(n.name)?t.includes(n.name)||t.push(n.name):e.add(n.name);return t}get diagnostics(){return this._diagnostics}};export{ViewStackState,normalizeIconName,resolvePageTitle};
|
package/lib/esm/view-switcher.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./_virtual/_rolldown/runtime.js";import{stripMnemonic as e}from"./glib.js";import{ViewStackState as t}from"./view-stack.js";const n=-1,r=`image-missing`,i=500,a=999,o=[`narrow`,`wide`],s=[`labels`,`icons`,`both`];function isViewSwitcherPolicy(e){return e===`narrow`||e===`wide`}function isInlineViewSwitcherDisplayMode(e){return e===`labels`||e===`icons`||e===`both`}function createViewSwitcherPage(e){return{name:e.name,title:e.title??null,iconName:e.iconName??null,visible:e.visible??!0,useUnderline:e.useUnderline??!1,badgeNumber:normalizeBadgeNumber(e.badgeNumber),needsAttention:e.needsAttention??!1}}function viewSwitcherPageFromStackPage(e){return createViewSwitcherPage({name:e.name,title:e.title,iconName:e.icon.length>0?e.icon:null,visible:e.visible})}function viewSwitcherPagesFromStack(e){return e.map(e=>viewSwitcherPageFromStackPage(e))}function isViewSwitcherButtonVisible(e){return e.visible&&(isPresent(e.title)||isPresent(e.iconName))}function viewSwitcherIconName(e){return isPresent(e)&&e.length>0?e:r}function viewSwitcherLabel(t){return isPresent(t.title)?t.useUnderline?e(t.title):t.title:``}function viewSwitcherBadgeLabel(e){let t=normalizeBadgeNumber(e);return t>999?`999+`:t===0?``:String(t)}const c={attentionRequested:`Attention requested.`,badgeOverflow:`Has a badge: more than 999.`,badge:e=>`Has a badge: ${e}.`};function viewSwitcherIndicatorDescription(e,t,n=c){let r=normalizeBadgeNumber(t),i=e?n.attentionRequested:``,a=``;return r>999?a=n.badgeOverflow:r>0&&(a=n.badge(r)),i&&a?`${a} ${i}`:i||a}function inlineToggleTooltip(e,t){return t===`icons`?viewSwitcherLabel(e):``}function shouldRevealViewSwitcherBar(e,t){if(!e)return!1;let n=0;for(let e of t)if(e.visible&&(n++,n>1))return!0;return!1}function viewSwitcherButtonOrientation(e){return e===`wide`?`horizontal`:`vertical`}function buildViewSwitcherButtons(e,t,n,r=c){let i=viewSwitcherButtonOrientation(n);return e.map((e,n)=>({pageIndex:n,name:e.name,label:viewSwitcherLabel(e),iconName:viewSwitcherIconName(e.iconName),visible:isViewSwitcherButtonVisible(e),selected:n===t,orientation:i,badgeLabel:viewSwitcherBadgeLabel(e.badgeNumber),needsAttention:e.needsAttention,description:viewSwitcherIndicatorDescription(e.needsAttention,e.badgeNumber,r)}))}function buildInlineToggles(e,t,n=c){let r=t!==`labels`,i=t!==`icons`,a=[];return e.forEach((e,o)=>{e.visible&&a.push({toggleIndex:a.length,pageIndex:o,name:e.name,label:viewSwitcherLabel(e),iconName:viewSwitcherIconName(e.iconName),showIcon:r,showLabel:i,tooltip:inlineToggleTooltip(e,t),badgeLabel:viewSwitcherBadgeLabel(e.badgeNumber),needsAttention:e.needsAttention,description:viewSwitcherIndicatorDescription(e.needsAttention,e.badgeNumber,n)})}),a}function toggleIndexForPage(e,t){if(!Number.isInteger(t)||t<0||t>=e.length||!e[t].visible)return-1;let n=0;for(let r=0;r<t;r++)e[r].visible&&n++;return n}function pageIndexForToggle(e,t){if(!Number.isInteger(t)||t<0)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r].visible){if(n===t)return r;n++}return-1}var ViewSwitcherDragSwitch=class{constructor(e){this._timers=new Map,this._scheduler=e.scheduler,this._onSwitch=e.onSwitch,this._delay=e.delay??500}enter(e,t){if(!Number.isInteger(e)||e<0||e===t||this._timers.has(e))return!1;let n=this._scheduler.schedule(()=>{this._timers.delete(e),this._onSwitch(e)},this._delay);return this._timers.set(e,n),!0}leave(e){let t=this._timers.get(e);t!==void 0&&(this._timers.delete(e),this._scheduler.cancel(t))}cancel(){for(let e of this._timers.values())this._scheduler.cancel(e);this._timers.clear()}get pending(){return[...this._timers.keys()].sort((e,t)=>e-t)}},ViewSwitcherState=class{constructor(e={}){this._pages=[],this._pagesView=null,this._stack=new t,this._listeners=new Set,this._drag=e.scheduler?new ViewSwitcherDragSwitch({scheduler:e.scheduler,delay:e.dragSwitchDelay,onSwitch:e=>{this.setSelected(e)}}):null,this._subscribeStack()}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}get pages(){return this._pagesView??=Object.freeze(this._pages.slice()),this._pagesView}setPages(e){let n=this.selected,r=n>=0?this.selectedName:null;this._pages=e.map(e=>createViewSwitcherPage(e)),this._pagesView=null;let i=new t;for(let e of this._pages)i.addPage({name:e.name,title:e.title,visible:e.visible});if(r!==null){let e=i.indexOfName(r);e>=0&&i.setVisibleIndex(e,!1)}this._stack=i,this._subscribeStack(),this._drag?.cancel(),(this.selected!==n||this.selectedName!==(r??``))&&this._emit(!1)}get selected(){return this._stack.visibleIndex}get selectedName(){return this._stack.visibleName}get selectedPage(){return this._pages[this.selected]}get count(){return this._pages.length}setSelected(e,t=!0){return this._stack.setVisibleIndex(e,t)}selectName(e,t=!0){return this._stack.setVisibleName(e,t)}setPageVisible(e,t){let n=this._pages.findIndex(t=>t.name===e);if(n<0)return!1;let r=this._pages[n],i=!!t;return r.visible===i?!1:(this._pages[n]={...r,visible:i},this._pagesView=null,this._stack.setPageVisible(e,i))}dragEnter(e){this._drag?.enter(e,this.selected)}dragLeave(e){this._drag?.leave(e)}cancelDrag(){this._drag?.cancel()}get pendingDragSwitches(){return this._drag?.pending??[]}get diagnostics(){return this._stack.diagnostics}_subscribeStack(){this._stack.subscribe(e=>this._emit(e.interactive))}_emit(e){let t=this.selectedPage,n={selected:this.selected,name:t?.name??``,title:t?viewSwitcherLabel(t):``,interactive:e};for(let e of[...this._listeners])e(n)}},ViewSwitcherBarState=class{constructor(){this._reveal=!1,this._revealed=!1,this._pages=[],this._listeners=new Set}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}get reveal(){return this._reveal}get revealed(){return this._revealed}setReveal(e){let t=!!e;return t===this._reveal?!1:(this._reveal=t,this._refresh(),!0)}setPages(e){return this._pages=e,this._refresh()}_refresh(){let e=shouldRevealViewSwitcherBar(this._reveal,this._pages);if(e===this._revealed)return!1;this._revealed=e;let t={reveal:this._reveal,revealed:this._revealed};for(let e of[...this._listeners])e(t);return!0}};function isPresent(e){return e!=null}function normalizeBadgeNumber(e){return typeof e!=`number`||!Number.isFinite(e)?0:Math.max(0,Math.trunc(e))}export{c as DEFAULT_INDICATOR_DESCRIPTION_STRINGS,s as INLINE_VIEW_SWITCHER_DISPLAY_MODES,a as VIEW_SWITCHER_BADGE_LIMIT,i as VIEW_SWITCHER_DRAG_SWITCH_DELAY,r as VIEW_SWITCHER_FALLBACK_ICON,n as VIEW_SWITCHER_NO_SELECTION,o as VIEW_SWITCHER_POLICIES,ViewSwitcherBarState,ViewSwitcherDragSwitch,ViewSwitcherState,buildInlineToggles,buildViewSwitcherButtons,createViewSwitcherPage,inlineToggleTooltip,isInlineViewSwitcherDisplayMode,isViewSwitcherButtonVisible,isViewSwitcherPolicy,pageIndexForToggle,shouldRevealViewSwitcherBar,e as stripMnemonic,toggleIndexForPage,viewSwitcherBadgeLabel,viewSwitcherButtonOrientation,viewSwitcherIconName,viewSwitcherIndicatorDescription,viewSwitcherLabel,viewSwitcherPageFromStackPage,viewSwitcherPagesFromStack};
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";import{stripMnemonic as e}from"./glib.js";import{ViewStackState as t}from"./view-stack.js";const n=-1,r=`image-missing`,i=500,a=999,o=[`narrow`,`wide`],s=[`labels`,`icons`,`both`];function isViewSwitcherPolicy(e){return e===`narrow`||e===`wide`}function isInlineViewSwitcherDisplayMode(e){return e===`labels`||e===`icons`||e===`both`}function createViewSwitcherPage(e){return{name:e.name,title:e.title??null,iconName:e.iconName??null,visible:e.visible??!0,useUnderline:e.useUnderline??!1,badgeNumber:normalizeBadgeNumber(e.badgeNumber),needsAttention:e.needsAttention??!1}}function viewSwitcherPageFromStackPage(e){return createViewSwitcherPage({name:e.name,title:e.title,iconName:e.icon.length>0?e.icon:null,visible:e.visible,badgeNumber:e.badgeNumber,needsAttention:e.needsAttention,useUnderline:e.useUnderline})}function viewSwitcherPagesFromStack(e){return e.map(e=>viewSwitcherPageFromStackPage(e))}function isViewSwitcherButtonVisible(e){return e.visible&&(isPresent(e.title)||isPresent(e.iconName))}function viewSwitcherIconName(e){return isPresent(e)&&e.length>0?e:r}function viewSwitcherLabel(t){return isPresent(t.title)?t.useUnderline?e(t.title):t.title:``}function viewSwitcherBadgeLabel(e){let t=normalizeBadgeNumber(e);return t>999?`999+`:t===0?``:String(t)}const c={attentionRequested:`Attention requested.`,badgeOverflow:`Has a badge: more than 999.`,badge:e=>`Has a badge: ${e}.`};function viewSwitcherIndicatorDescription(e,t,n=c){let r=normalizeBadgeNumber(t),i=e?n.attentionRequested:``,a=``;return r>999?a=n.badgeOverflow:r>0&&(a=n.badge(r)),i&&a?`${a} ${i}`:i||a}function inlineToggleTooltip(e,t){return t===`icons`?viewSwitcherLabel(e):``}function shouldRevealViewSwitcherBar(e,t){if(!e)return!1;let n=0;for(let e of t)if(e.visible&&(n++,n>1))return!0;return!1}function viewSwitcherButtonOrientation(e){return e===`wide`?`horizontal`:`vertical`}function buildViewSwitcherButtons(e,t,n,r=c){let i=viewSwitcherButtonOrientation(n);return e.map((e,n)=>({pageIndex:n,name:e.name,label:viewSwitcherLabel(e),iconName:viewSwitcherIconName(e.iconName),visible:isViewSwitcherButtonVisible(e),selected:n===t,orientation:i,badgeLabel:viewSwitcherBadgeLabel(e.badgeNumber),needsAttention:e.needsAttention,description:viewSwitcherIndicatorDescription(e.needsAttention,e.badgeNumber,r)}))}function buildInlineToggles(e,t,n=c){let r=t!==`labels`,i=t!==`icons`,a=[];return e.forEach((e,o)=>{e.visible&&a.push({toggleIndex:a.length,pageIndex:o,name:e.name,label:viewSwitcherLabel(e),iconName:viewSwitcherIconName(e.iconName),showIcon:r,showLabel:i,tooltip:inlineToggleTooltip(e,t),badgeLabel:viewSwitcherBadgeLabel(e.badgeNumber),needsAttention:e.needsAttention,description:viewSwitcherIndicatorDescription(e.needsAttention,e.badgeNumber,n)})}),a}function toggleIndexForPage(e,t){if(!Number.isInteger(t)||t<0||t>=e.length||!e[t].visible)return-1;let n=0;for(let r=0;r<t;r++)e[r].visible&&n++;return n}function pageIndexForToggle(e,t){if(!Number.isInteger(t)||t<0)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r].visible){if(n===t)return r;n++}return-1}var ViewSwitcherDragSwitch=class{constructor(e){this._timers=new Map,this._scheduler=e.scheduler,this._onSwitch=e.onSwitch,this._delay=e.delay??500}enter(e,t){if(!Number.isInteger(e)||e<0||e===t||this._timers.has(e))return!1;let n=this._scheduler.schedule(()=>{this._timers.delete(e),this._onSwitch(e)},this._delay);return this._timers.set(e,n),!0}leave(e){let t=this._timers.get(e);t!==void 0&&(this._timers.delete(e),this._scheduler.cancel(t))}cancel(){for(let e of this._timers.values())this._scheduler.cancel(e);this._timers.clear()}get pending(){return[...this._timers.keys()].sort((e,t)=>e-t)}},ViewSwitcherState=class{constructor(e={}){this._pages=[],this._pagesView=null,this._stack=new t,this._listeners=new Set,this._drag=e.scheduler?new ViewSwitcherDragSwitch({scheduler:e.scheduler,delay:e.dragSwitchDelay,onSwitch:e=>{this.setSelected(e)}}):null,this._subscribeStack()}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}get pages(){return this._pagesView??=Object.freeze(this._pages.slice()),this._pagesView}setPages(e){let n=this.selected,r=n>=0?this.selectedName:null;this._pages=e.map(e=>createViewSwitcherPage(e)),this._pagesView=null;let i=new t;for(let e of this._pages)i.addPage({name:e.name,title:e.title,visible:e.visible});if(r!==null){let e=i.indexOfName(r);e>=0&&i.setVisibleIndex(e,!1)}this._stack=i,this._subscribeStack(),this._drag?.cancel(),(this.selected!==n||this.selectedName!==(r??``))&&this._emit(!1)}get selected(){return this._stack.visibleIndex}get selectedName(){return this._stack.visibleName}get selectedPage(){return this._pages[this.selected]}get count(){return this._pages.length}setSelected(e,t=!0){return this._stack.setVisibleIndex(e,t)}selectName(e,t=!0){return this._stack.setVisibleName(e,t)}setPageVisible(e,t){let n=this._pages.findIndex(t=>t.name===e);if(n<0)return!1;let r=this._pages[n],i=!!t;return r.visible===i?!1:(this._pages[n]={...r,visible:i},this._pagesView=null,this._stack.setPageVisible(e,i))}dragEnter(e){this._drag?.enter(e,this.selected)}dragLeave(e){this._drag?.leave(e)}cancelDrag(){this._drag?.cancel()}get pendingDragSwitches(){return this._drag?.pending??[]}get diagnostics(){return this._stack.diagnostics}_subscribeStack(){this._stack.subscribe(e=>this._emit(e.interactive))}_emit(e){let t=this.selectedPage,n={selected:this.selected,name:t?.name??``,title:t?viewSwitcherLabel(t):``,interactive:e};for(let e of[...this._listeners])e(n)}},ViewSwitcherBarState=class{constructor(){this._reveal=!1,this._revealed=!1,this._pages=[],this._listeners=new Set}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}get reveal(){return this._reveal}get revealed(){return this._revealed}setReveal(e){let t=!!e;return t===this._reveal?!1:(this._reveal=t,this._refresh(),!0)}setPages(e){return this._pages=e,this._refresh()}_refresh(){let e=shouldRevealViewSwitcherBar(this._reveal,this._pages);if(e===this._revealed)return!1;this._revealed=e;let t={reveal:this._reveal,revealed:this._revealed};for(let e of[...this._listeners])e(t);return!0}};function isPresent(e){return e!=null}function normalizeBadgeNumber(e){return typeof e!=`number`||!Number.isFinite(e)?0:Math.max(0,Math.trunc(e))}export{c as DEFAULT_INDICATOR_DESCRIPTION_STRINGS,s as INLINE_VIEW_SWITCHER_DISPLAY_MODES,a as VIEW_SWITCHER_BADGE_LIMIT,i as VIEW_SWITCHER_DRAG_SWITCH_DELAY,r as VIEW_SWITCHER_FALLBACK_ICON,n as VIEW_SWITCHER_NO_SELECTION,o as VIEW_SWITCHER_POLICIES,ViewSwitcherBarState,ViewSwitcherDragSwitch,ViewSwitcherState,buildInlineToggles,buildViewSwitcherButtons,createViewSwitcherPage,inlineToggleTooltip,isInlineViewSwitcherDisplayMode,isViewSwitcherButtonVisible,isViewSwitcherPolicy,pageIndexForToggle,shouldRevealViewSwitcherBar,e as stripMnemonic,toggleIndexForPage,viewSwitcherBadgeLabel,viewSwitcherButtonOrientation,viewSwitcherIconName,viewSwitcherIndicatorDescription,viewSwitcherLabel,viewSwitcherPageFromStackPage,viewSwitcherPagesFromStack};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";import{adwLengthToPx as e,normalizeLengthUnit as t}from"./length-unit.js";const n=[`none`,`fill`,`spread`],r=[`minimum`,`natural`],i=0,a=0,o=`none`,s=!1,c=`natural`,l=-1,u=`px`,d=`start-to-end`,f=[`start-to-end`,`end-to-start`];function normalizeWrapBoxSpacing(e){let t=typeof e==`number`?e:Number.parseFloat(String(e??``));return!Number.isFinite(t)||t<0?0:t}function normalizeWrapBoxAlign(e){let t=typeof e==`number`?e:Number.parseFloat(String(e??``));return Number.isFinite(t)?Math.min(1,Math.max(0,t)):0}function normalizeWrapBoxJustify(e){return n.includes(e)?e:o}function normalizeWrapPolicy(e){return r.includes(e)?e:c}function normalizeNaturalLineLength(e){let t=typeof e==`number`?e:Number.parseFloat(String(e??``));return!Number.isFinite(t)||t<0?-1:Math.trunc(t)}function normalizeWrapBoxLengthUnit(e){return t(e,`px`)}function normalizeWrapBoxPackDirection(e){return f.includes(e)?e:d}function wrapBoxLengthToPx(t,n,r=96){return t<0?-1:e(n,t,r)}function resolveWrapBoxLine(e){let t=e.lastLine&&!e.justifyLastLine?`none`:e.justify;if(t===`none`)return{justify:`none`,growChildren:!1,growGaps:!1,align:e.align};let n=t===`spread`&&e.childrenInLine>1;return{justify:t,growChildren:!n,growGaps:n,align:0}}function wrapPolicyFlexShrink(e){return+(e===`minimum`)}function resolveWrapBoxChildOrder(e){let{children:t,child:n,op:r}=e,i=e.sibling??null;if(i!==null&&i===n)return null;let a=t.indexOf(n);if(r===`insert-after`&&a!==-1||r===`reorder-after`&&a===-1)return null;let o=a===-1?[...t]:t.filter((e,t)=>t!==a);if(i===null)return[n,...o];let s=o.indexOf(i);return s===-1?null:[...o.slice(0,s+1),n,...o.slice(s+1)]}export{a as ADW_WRAP_BOX_DEFAULT_ALIGN,o as ADW_WRAP_BOX_DEFAULT_JUSTIFY,s as ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE,u as ADW_WRAP_BOX_DEFAULT_LENGTH_UNIT,d as ADW_WRAP_BOX_DEFAULT_PACK_DIRECTION,i as ADW_WRAP_BOX_DEFAULT_SPACING,c as ADW_WRAP_BOX_DEFAULT_WRAP_POLICY,n as ADW_WRAP_BOX_JUSTIFY_MODES,l as ADW_WRAP_BOX_NATURAL_LINE_LENGTH_UNSET,f as ADW_WRAP_BOX_PACK_DIRECTIONS,r as ADW_WRAP_POLICIES,normalizeNaturalLineLength,normalizeWrapBoxAlign,normalizeWrapBoxJustify,normalizeWrapBoxLengthUnit,normalizeWrapBoxPackDirection,normalizeWrapBoxSpacing,normalizeWrapPolicy,resolveWrapBoxChildOrder,resolveWrapBoxLine,wrapBoxLengthToPx,wrapPolicyFlexShrink};
|
|
@@ -40,6 +40,8 @@ export interface TranslatorCreditsVector {
|
|
|
40
40
|
* is a ZERO-length vector, so `add_credits_section` bails at `!*people`
|
|
41
41
|
* (:545-546) and no section is drawn; JS `''.split('\n')` is `['']`, which
|
|
42
42
|
* draws the section with one blank row.
|
|
43
|
+
*
|
|
44
|
+
* CORE-ONLY: an internal step of a pipeline whose COMPOSED result is renderer-driven — driving it separately would assert the same thing twice (ABOUT_DIALOG_CREDITS_LEGAL_VECTORS)
|
|
43
45
|
*/
|
|
44
46
|
export declare const TRANSLATOR_CREDITS_VECTORS: ReadonlyArray<TranslatorCreditsVector>;
|
|
45
47
|
/** One assembled credits-page expectation. */
|
|
@@ -206,6 +208,8 @@ export interface AboutDialogLabelVector {
|
|
|
206
208
|
* on its own in the header revealer that fades in on scroll (.ui:29-31). A
|
|
207
209
|
* renderer that titles the page "About <app>" AND labels the dialog "About
|
|
208
210
|
* <app>" says the app's name three times on one screen.
|
|
211
|
+
*
|
|
212
|
+
* CORE-ONLY: a string table the renderers read THROUGH ADW_ABOUT_DIALOG_LABELS; the rendered text is asserted by ABOUT_DIALOG_HEADER/DETAILS_VECTORS
|
|
209
213
|
*/
|
|
210
214
|
export declare const ABOUT_DIALOG_LABEL_VECTORS: ReadonlyArray<AboutDialogLabelVector>;
|
|
211
215
|
/** One `gtk_license_info` row expectation. */
|
|
@@ -226,6 +230,8 @@ export interface LicenseInfoVector {
|
|
|
226
230
|
* Index 18 is pinned because `G_STATIC_ASSERT (G_N_ELEMENTS (gtk_license_info)
|
|
227
231
|
* - 1 == GTK_LICENSE_0BSD)` (:253-256) is the C's own check that the table and
|
|
228
232
|
* the enum have not drifted; this is that assertion, ported.
|
|
233
|
+
*
|
|
234
|
+
* CORE-ONLY: an internal step of a pipeline whose COMPOSED result is renderer-driven — driving it separately would assert the same thing twice (ABOUT_DIALOG_CREDITS_LEGAL_VECTORS)
|
|
229
235
|
*/
|
|
230
236
|
export declare const LICENSE_INFO_VECTORS: ReadonlyArray<LicenseInfoVector>;
|
|
231
237
|
/** One SPDX-id lookup expectation. */
|
|
@@ -237,7 +243,9 @@ export interface LicenseSpdxVector {
|
|
|
237
243
|
/** Why this row exists. */
|
|
238
244
|
rule: string;
|
|
239
245
|
}
|
|
240
|
-
/** The two lookup loops in `populate_from_appdata` (:1226-1239).
|
|
246
|
+
/** The two lookup loops in `populate_from_appdata` (:1226-1239). *
|
|
247
|
+
* CORE-ONLY: an internal step of a pipeline whose COMPOSED result is renderer-driven — driving it separately would assert the same thing twice (LICENSE_INFO_VECTORS → the legal section)
|
|
248
|
+
*/
|
|
241
249
|
export declare const LICENSE_SPDX_VECTORS: ReadonlyArray<LicenseSpdxVector>;
|
|
242
250
|
/** One `get_license_text` expectation. */
|
|
243
251
|
export interface LicenseTextVector {
|
|
@@ -250,7 +258,9 @@ export interface LicenseTextVector {
|
|
|
250
258
|
/** Why this row exists. */
|
|
251
259
|
rule: string;
|
|
252
260
|
}
|
|
253
|
-
/** `get_license_text` (:635-651).
|
|
261
|
+
/** `get_license_text` (:635-651). *
|
|
262
|
+
* CORE-ONLY: an internal step of a pipeline whose COMPOSED result is renderer-driven — driving it separately would assert the same thing twice (ABOUT_DIALOG_CREDITS_LEGAL_VECTORS)
|
|
263
|
+
*/
|
|
254
264
|
export declare const LICENSE_TEXT_VECTORS: ReadonlyArray<LicenseTextVector>;
|
|
255
265
|
/** One licence-setter step. */
|
|
256
266
|
export interface LicenseSetterStep {
|
|
@@ -281,6 +291,8 @@ export interface LicenseSetterVector {
|
|
|
281
291
|
* would have set the type to custom, so re-assigning the same text after a
|
|
282
292
|
* licence-type change does switch the type, while assigning `""` to an already
|
|
283
293
|
* empty licence does not.
|
|
294
|
+
*
|
|
295
|
+
* CORE-ONLY: a property-ordering table with no rendered surface — the RESULT is ABOUT_DIALOG_CREDITS_LEGAL_VECTORS, which both renderers drive
|
|
284
296
|
*/
|
|
285
297
|
export declare const LICENSE_SETTER_VECTORS: ReadonlyArray<LicenseSetterVector>;
|
|
286
298
|
/** One Legal-page visibility expectation. */
|
|
@@ -296,5 +308,7 @@ export interface LegalSectionVector {
|
|
|
296
308
|
/** Why this row exists. */
|
|
297
309
|
rule: string;
|
|
298
310
|
}
|
|
299
|
-
/** `append_legal_section`'s early-outs for the default section (:666-671, :740).
|
|
311
|
+
/** `append_legal_section`'s early-outs for the default section (:666-671, :740). *
|
|
312
|
+
* CORE-ONLY: an internal step of a pipeline whose COMPOSED result is renderer-driven — driving it separately would assert the same thing twice (ABOUT_DIALOG_CREDITS_LEGAL_VECTORS)
|
|
313
|
+
*/
|
|
300
314
|
export declare const LEGAL_SECTION_VECTORS: ReadonlyArray<LegalSectionVector>;
|
|
@@ -8,7 +8,9 @@ export interface CarouselSnapPointVector {
|
|
|
8
8
|
/** Why this row exists. */
|
|
9
9
|
rule: string;
|
|
10
10
|
}
|
|
11
|
-
/** `adw_carousel_size_allocate`'s accumulation (adw-carousel.c:777-789).
|
|
11
|
+
/** `adw_carousel_size_allocate`'s accumulation (adw-carousel.c:777-789). *
|
|
12
|
+
* CORE-ONLY: an internal step of a pipeline whose COMPOSED result is renderer-driven — driving it separately would assert the same thing twice (CAROUSEL_PAGE_LIST_VECTORS)
|
|
13
|
+
*/
|
|
12
14
|
export declare const CAROUSEL_SNAP_POINT_VECTORS: ReadonlyArray<CarouselSnapPointVector>;
|
|
13
15
|
/** One `carouselSizesFromSnapPoints` expectation. */
|
|
14
16
|
export interface CarouselSizesFromSnapPointsVector {
|
|
@@ -23,6 +25,8 @@ export interface CarouselSizesFromSnapPointsVector {
|
|
|
23
25
|
* The inverse both indicators reconstruct sizes with
|
|
24
26
|
* (adw-carousel-indicator-dots.c:189-191, :248-250) — the only channel through
|
|
25
27
|
* which an indicator can learn per-page reveal state.
|
|
28
|
+
*
|
|
29
|
+
* CORE-ONLY: an internal step of a pipeline whose COMPOSED result is renderer-driven — driving it separately would assert the same thing twice (CAROUSEL_PAGE_LIST_VECTORS)
|
|
26
30
|
*/
|
|
27
31
|
export declare const CAROUSEL_SIZES_FROM_SNAP_POINTS_VECTORS: ReadonlyArray<CarouselSizesFromSnapPointsVector>;
|
|
28
32
|
/** One `carouselRange` expectation. */
|
|
@@ -38,7 +42,9 @@ export interface CarouselRangeVector {
|
|
|
38
42
|
/** Why this row exists. */
|
|
39
43
|
rule: string;
|
|
40
44
|
}
|
|
41
|
-
/** `get_range` (adw-carousel.c:207-220).
|
|
45
|
+
/** `get_range` (adw-carousel.c:207-220). *
|
|
46
|
+
* CORE-ONLY: an internal step of a pipeline whose COMPOSED result is renderer-driven — driving it separately would assert the same thing twice (CAROUSEL_PAGE_LIST_VECTORS)
|
|
47
|
+
*/
|
|
42
48
|
export declare const CAROUSEL_RANGE_VECTORS: ReadonlyArray<CarouselRangeVector>;
|
|
43
49
|
/** One `carouselClampPosition` expectation. */
|
|
44
50
|
export interface CarouselClampVector {
|
|
@@ -51,7 +57,9 @@ export interface CarouselClampVector {
|
|
|
51
57
|
/** Why this row exists. */
|
|
52
58
|
rule: string;
|
|
53
59
|
}
|
|
54
|
-
/** `set_position`'s guard (adw-carousel.c:269).
|
|
60
|
+
/** `set_position`'s guard (adw-carousel.c:269). *
|
|
61
|
+
* CORE-ONLY: an internal step of a pipeline whose COMPOSED result is renderer-driven — driving it separately would assert the same thing twice (CAROUSEL_PAGE_LIST_VECTORS)
|
|
62
|
+
*/
|
|
55
63
|
export declare const CAROUSEL_CLAMP_VECTORS: ReadonlyArray<CarouselClampVector>;
|
|
56
64
|
/** One `carouselPageAtPosition` expectation. */
|
|
57
65
|
export interface CarouselPageAtPositionVector {
|
|
@@ -109,7 +117,9 @@ export interface CarouselWheelVector {
|
|
|
109
117
|
/** Why this row exists. */
|
|
110
118
|
rule: string;
|
|
111
119
|
}
|
|
112
|
-
/** `scroll_cb`'s axis/source rules (adw-carousel.c:537-559).
|
|
120
|
+
/** `scroll_cb`'s axis/source rules (adw-carousel.c:537-559). *
|
|
121
|
+
* CORE-ONLY: GAP — the browser carousel handles `wheel` without routing it through `resolveCarouselWheel`, and the NativeScript one has no wheel at all. Tracked in #1072
|
|
122
|
+
*/
|
|
113
123
|
export declare const CAROUSEL_WHEEL_VECTORS: ReadonlyArray<CarouselWheelVector>;
|
|
114
124
|
/** One step of a wheel-lockout script. */
|
|
115
125
|
export interface CarouselWheelLockoutStep {
|
|
@@ -139,6 +149,8 @@ export interface CarouselWheelLockoutVector {
|
|
|
139
149
|
* The web port replaced this with a non-decaying delta accumulator, so +30 then
|
|
140
150
|
* −30 cancelled out where libadwaita pages twice, and a slow wheel never
|
|
141
151
|
* reached the threshold at all.
|
|
152
|
+
*
|
|
153
|
+
* CORE-ONLY: GAP — the lockout is a real elapsed-time rule and neither element has a clock seam to drive it with. Tracked in #1072
|
|
142
154
|
*/
|
|
143
155
|
export declare const CAROUSEL_WHEEL_LOCKOUT_VECTORS: ReadonlyArray<CarouselWheelLockoutVector>;
|
|
144
156
|
/** One `carouselReorderShift` expectation. */
|
|
@@ -156,7 +168,9 @@ export interface CarouselReorderShiftVector {
|
|
|
156
168
|
/** Why this row exists. */
|
|
157
169
|
rule: string;
|
|
158
170
|
}
|
|
159
|
-
/** The three branches of `adw_carousel_reorder`'s compensation (adw-carousel.c:1488-1495).
|
|
171
|
+
/** The three branches of `adw_carousel_reorder`'s compensation (adw-carousel.c:1488-1495). *
|
|
172
|
+
* CORE-ONLY: an internal step of a pipeline whose COMPOSED result is renderer-driven — driving it separately would assert the same thing twice (CAROUSEL_PAGE_LIST_VECTORS)
|
|
173
|
+
*/
|
|
160
174
|
export declare const CAROUSEL_REORDER_SHIFT_VECTORS: ReadonlyArray<CarouselReorderShiftVector>;
|
|
161
175
|
/**
|
|
162
176
|
* One operation in a page-list script.
|
|
@@ -12,7 +12,9 @@ export interface ClampThresholdsVector {
|
|
|
12
12
|
/** Why this row exists. */
|
|
13
13
|
rule: string;
|
|
14
14
|
}
|
|
15
|
-
/** `lower`/`max`/`upper` (adw-clamp-layout.c:173-176, :210-213).
|
|
15
|
+
/** `lower`/`max`/`upper` (adw-clamp-layout.c:173-176, :210-213). *
|
|
16
|
+
* CORE-ONLY: an internal step of a pipeline whose COMPOSED result is renderer-driven — driving it separately would assert the same thing twice (CLAMP_ALLOCATE_VECTORS)
|
|
17
|
+
*/
|
|
16
18
|
export declare const CLAMP_THRESHOLD_VECTORS: ReadonlyArray<ClampThresholdsVector>;
|
|
17
19
|
/** One `clampChildSize` expectation. */
|
|
18
20
|
export interface ClampChildSizeVector {
|
|
@@ -25,7 +27,9 @@ export interface ClampChildSizeVector {
|
|
|
25
27
|
/** Why this row exists. */
|
|
26
28
|
rule: string;
|
|
27
29
|
}
|
|
28
|
-
/** `child_size_from_clamp` (adw-clamp-layout.c:193-232).
|
|
30
|
+
/** `child_size_from_clamp` (adw-clamp-layout.c:193-232). *
|
|
31
|
+
* CORE-ONLY: an internal step of a pipeline whose COMPOSED result is renderer-driven — driving it separately would assert the same thing twice (CLAMP_ALLOCATE_VECTORS)
|
|
32
|
+
*/
|
|
29
33
|
export declare const CLAMP_CHILD_SIZE_VECTORS: ReadonlyArray<ClampChildSizeVector>;
|
|
30
34
|
/** One `clampSizeFromChild` expectation. */
|
|
31
35
|
export interface ClampSizeFromChildVector {
|
|
@@ -38,7 +42,9 @@ export interface ClampSizeFromChildVector {
|
|
|
38
42
|
/** Why this row exists. */
|
|
39
43
|
rule: string;
|
|
40
44
|
}
|
|
41
|
-
/** `clamp_size_from_child` (adw-clamp-layout.c:156-191) — the inverse ease.
|
|
45
|
+
/** `clamp_size_from_child` (adw-clamp-layout.c:156-191) — the inverse ease. *
|
|
46
|
+
* CORE-ONLY: an internal step of a pipeline whose COMPOSED result is renderer-driven — driving it separately would assert the same thing twice (CLAMP_ALLOCATE_VECTORS)
|
|
47
|
+
*/
|
|
42
48
|
export declare const CLAMP_SIZE_FROM_CHILD_VECTORS: ReadonlyArray<ClampSizeFromChildVector>;
|
|
43
49
|
/** One `clampAllocate` expectation. */
|
|
44
50
|
export interface ClampAllocateVector {
|
|
@@ -97,7 +103,9 @@ export interface ToolbarViewAllocateVector {
|
|
|
97
103
|
/** Why this row exists. */
|
|
98
104
|
rule: string;
|
|
99
105
|
}
|
|
100
|
-
/** `adw_toolbar_view_size_allocate` (adw-toolbar-view.c:357-406).
|
|
106
|
+
/** `adw_toolbar_view_size_allocate` (adw-toolbar-view.c:357-406). *
|
|
107
|
+
* CORE-ONLY: both renderers let the BROWSER and NativeScript lay the bars out rather than allocating by hand, so there is no allocation of theirs to compare — the rule they DO apply is TOOLBAR_VIEW_CLASS_VECTORS, which both drive. This reason used to live in the two `adw-toolbar-view.ts` files and nowhere a reader of this table would look
|
|
108
|
+
*/
|
|
101
109
|
export declare const TOOLBAR_VIEW_ALLOCATE_VECTORS: ReadonlyArray<ToolbarViewAllocateVector>;
|
|
102
110
|
/** One `toolbarViewMeasure` expectation. */
|
|
103
111
|
export interface ToolbarViewMeasureVector {
|
|
@@ -110,7 +118,9 @@ export interface ToolbarViewMeasureVector {
|
|
|
110
118
|
/** Why this row exists. */
|
|
111
119
|
rule: string;
|
|
112
120
|
}
|
|
113
|
-
/** `adw_toolbar_view_measure` (adw-toolbar-view.c:266-354).
|
|
121
|
+
/** `adw_toolbar_view_measure` (adw-toolbar-view.c:266-354). *
|
|
122
|
+
* CORE-ONLY: same as TOOLBAR_VIEW_ALLOCATE_VECTORS — neither renderer measures the bars itself
|
|
123
|
+
*/
|
|
114
124
|
export declare const TOOLBAR_VIEW_MEASURE_VECTORS: ReadonlyArray<ToolbarViewMeasureVector>;
|
|
115
125
|
/** One `toolbarViewContentForSize` expectation. */
|
|
116
126
|
export interface ToolbarViewContentForSizeVector {
|
|
@@ -125,7 +135,9 @@ export interface ToolbarViewContentForSizeVector {
|
|
|
125
135
|
/** Why this row exists. */
|
|
126
136
|
rule: string;
|
|
127
137
|
}
|
|
128
|
-
/** `adw_toolbar_view_measure`'s height-for-width branch (adw-toolbar-view.c:292-316).
|
|
138
|
+
/** `adw_toolbar_view_measure`'s height-for-width branch (adw-toolbar-view.c:292-316). *
|
|
139
|
+
* CORE-ONLY: same as TOOLBAR_VIEW_ALLOCATE_VECTORS — neither renderer measures the bars itself
|
|
140
|
+
*/
|
|
129
141
|
export declare const TOOLBAR_VIEW_CONTENT_FOR_SIZE_VECTORS: ReadonlyArray<ToolbarViewContentForSizeVector>;
|
|
130
142
|
/** One `toolbarViewClasses` expectation. */
|
|
131
143
|
export interface ToolbarViewClassVector {
|
|
@@ -130,5 +130,7 @@ export interface DataGridColumnNormalizeVector {
|
|
|
130
130
|
* an entry WITHOUT a `key` is dropped (there is nothing to read from a row), and
|
|
131
131
|
* a field of the wrong type is coerced (`key`, `label`, `width`) or discarded
|
|
132
132
|
* (`flex`, `monospace`, `numeric`) rather than taking the whole entry down.
|
|
133
|
+
*
|
|
134
|
+
* CORE-ONLY: an internal step of a pipeline whose COMPOSED result is renderer-driven — driving it separately would assert the same thing twice (DATA_GRID_TRACK_VECTORS)
|
|
133
135
|
*/
|
|
134
136
|
export declare const DATA_GRID_COLUMN_NORMALIZE_VECTORS: ReadonlyArray<DataGridColumnNormalizeVector>;
|