@gjsify/adwaita-nativescript 0.36.0 → 0.38.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/index.js +1 -1
- package/lib/esm/widgets/accent-theme.js +2 -0
- package/lib/esm/widgets/adw-accent.js +1 -0
- package/lib/esm/widgets/adw-shortcut-label.js +1 -0
- package/lib/esm/widgets/index.js +1 -1
- package/lib/esm/widgets/shortcut-label.js +1 -0
- package/lib/types/accent-theme.spec.d.ts +2 -0
- package/lib/types/index.d.ts +2 -2
- package/lib/types/shortcut-label.spec.d.ts +2 -0
- package/lib/types/widgets/accent-theme.d.ts +30 -0
- package/lib/types/widgets/adw-accent.d.ts +12 -0
- package/lib/types/widgets/adw-action-row.d.ts +27 -43
- package/lib/types/widgets/adw-data-grid.d.ts +4 -10
- package/lib/types/widgets/adw-entry-row.d.ts +20 -29
- package/lib/types/widgets/adw-shortcut-label.d.ts +13 -0
- package/lib/types/widgets/button-content.d.ts +12 -21
- package/lib/types/widgets/carousel-state.d.ts +15 -18
- package/lib/types/widgets/chrome.d.ts +22 -47
- package/lib/types/widgets/data-grid-model.d.ts +25 -36
- package/lib/types/widgets/index.d.ts +6 -0
- package/lib/types/widgets/navigation-stack.d.ts +2 -13
- package/lib/types/widgets/preferences-group-state.d.ts +7 -13
- package/lib/types/widgets/preferences-search.d.ts +5 -5
- package/lib/types/widgets/row-state.d.ts +17 -33
- package/lib/types/widgets/shortcut-label.d.ts +54 -0
- package/lib/types/widgets/sidebar-model.d.ts +5 -7
- package/lib/types/widgets/split-button.d.ts +17 -34
- package/lib/types/widgets/split-view-base.d.ts +17 -24
- package/lib/types/widgets/split-view-state.d.ts +48 -76
- package/lib/types/widgets/split-view-width.d.ts +21 -32
- package/lib/types/widgets/status-page-content.d.ts +9 -14
- package/lib/types/widgets/tab-view-state.d.ts +18 -34
- package/lib/types/widgets/view-switcher-base.d.ts +11 -30
- package/lib/types/widgets/view-switcher-model.d.ts +17 -34
- package/lib/types/widgets/wrap-box-layout.d.ts +22 -37
- package/package.json +7 -7
- package/src/theme/adwaita.css +77 -0
package/lib/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./_virtual/_rolldown/runtime.js";import{ADWAITA_SANS_FONT_FAMILY as ee,ADWAITA_SANS_TTF_FILES as te,adwaitaFontInstallInstructions as ne,hasAdwaitaSans as e}from"./fonts.js";import{AdwPreferencesPage as t}from"./widgets/adw-preferences-page.js";import{AdwPreferencesGroup as n}from"./widgets/adw-preferences-group.js";import{ACTIVATED as r,AdwActionRow as i}from"./widgets/adw-action-row.js";import{AdwSwitchRow as a,NOTIFY_ACTIVE as o}from"./widgets/adw-switch-row.js";import{adwaitaColorScheme as s,isThemeIconColor as c,onAdwaitaColorSchemeChanged as l,setAdwaitaColorScheme as u,themeIconColor as d,toggleAdwaitaColorScheme as f}from"./widgets/color-scheme.js";import{ADWAITA_ICON_GRID as p,DEFAULT_ICON_COLOR as m,DEFAULT_ICON_COLOR_DARK as h,extractIconPaths as g,extractPathData as _}from"./widgets/icon-path.js";import{renderSymbolicIcon as v}from"./widgets/icons.js";import{AdwIcon as y,DEFAULT_ADW_ICON_SIZE as b}from"./widgets/adw-icon.js";import{attachRowPressFeedback as x}from"./widgets/row-press.js";import{AdwImageButton as S,DEFAULT_ICON_BUTTON_ICON_SIZE as C}from"./widgets/adw-image-button.js";import{AdwEntryRow as w,NOTIFY_TEXT as T}from"./widgets/adw-entry-row.js";import{AdwPasswordEntryRow as E}from"./widgets/adw-password-entry-row.js";import{ACTIVATE as D,AdwEntry as O,NOTIFY_TEXT as k}from"./widgets/adw-entry.js";import{AdwComboRow as A,ComboState as j,NOTIFY_SELECTED as M}from"./widgets/adw-combo-row.js";import{AdwDropDown as N,NOTIFY_SELECTED as P}from"./widgets/adw-drop-down.js";import{AdwSpinRow as F,NOTIFY_VALUE as I,SpinState as L}from"./widgets/adw-spin-row.js";import{AdwSliderRow as R,NOTIFY_SLIDER_VALUE as z}from"./widgets/adw-slider-row.js";import{AdwExpanderRow as B,ExpanderState as V,NOTIFY_EXPANDED as H}from"./widgets/adw-expander-row.js";import{AdwButton as U}from"./widgets/adw-button.js";import{AdwMenuButton as W,MENU_ITEM_ACTIVATED as G}from"./widgets/adw-menu-button.js";import{DEFAULT_CLAMP_MAX_SIZE as K,DEFAULT_SPINNER_SIZE as q}from"./widgets/chrome.js";import{AdwBanner as J,BUTTON_CLICKED as Y}from"./widgets/adw-banner.js";import{avatarInitials as X}from"./widgets/avatar-color.js";import{AdwAvatar as Z,DEFAULT_AVATAR_SIZE as re}from"./widgets/adw-avatar.js";import{AdwWindowTitle as ie}from"./widgets/adw-window-title.js";import{AdwClamp as ae}from"./widgets/adw-clamp.js";import{AdwHeaderBar as oe}from"./widgets/adw-header-bar.js";import{AdwToolbarView as se}from"./widgets/adw-toolbar-view.js";import{AdwWrapBox as ce}from"./widgets/adw-wrap-box.js";import{DATA_GRID_HEADER_CELL_CLASS as le,DATA_GRID_HEADER_ROW_CLASS as ue,DATA_GRID_SECTION_CELL_CLASS as de,dataGridCellClass as fe,dataGridItemSpec as pe,dataGridRowClass as me,dataGridShapeKey as he,dataGridTracksKey as ge,parseDataGridWidth as _e}from"./widgets/data-grid-model.js";import{AdwDataGrid as ve,ROW_ACTIVATED as ye}from"./widgets/adw-data-grid.js";import{AdwSpinner as
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";import{ADWAITA_SANS_FONT_FAMILY as ee,ADWAITA_SANS_TTF_FILES as te,adwaitaFontInstallInstructions as ne,hasAdwaitaSans as e}from"./fonts.js";import{AdwPreferencesPage as t}from"./widgets/adw-preferences-page.js";import{AdwPreferencesGroup as n}from"./widgets/adw-preferences-group.js";import{ACTIVATED as r,AdwActionRow as i}from"./widgets/adw-action-row.js";import{AdwSwitchRow as a,NOTIFY_ACTIVE as o}from"./widgets/adw-switch-row.js";import{adwaitaColorScheme as s,isThemeIconColor as c,onAdwaitaColorSchemeChanged as l,setAdwaitaColorScheme as u,themeIconColor as d,toggleAdwaitaColorScheme as f}from"./widgets/color-scheme.js";import{ADWAITA_ICON_GRID as p,DEFAULT_ICON_COLOR as m,DEFAULT_ICON_COLOR_DARK as h,extractIconPaths as g,extractPathData as _}from"./widgets/icon-path.js";import{renderSymbolicIcon as v}from"./widgets/icons.js";import{AdwIcon as y,DEFAULT_ADW_ICON_SIZE as b}from"./widgets/adw-icon.js";import{attachRowPressFeedback as x}from"./widgets/row-press.js";import{AdwImageButton as S,DEFAULT_ICON_BUTTON_ICON_SIZE as C}from"./widgets/adw-image-button.js";import{AdwEntryRow as w,NOTIFY_TEXT as T}from"./widgets/adw-entry-row.js";import{AdwPasswordEntryRow as E}from"./widgets/adw-password-entry-row.js";import{ACTIVATE as D,AdwEntry as O,NOTIFY_TEXT as k}from"./widgets/adw-entry.js";import{AdwComboRow as A,ComboState as j,NOTIFY_SELECTED as M}from"./widgets/adw-combo-row.js";import{AdwDropDown as N,NOTIFY_SELECTED as P}from"./widgets/adw-drop-down.js";import{AdwSpinRow as F,NOTIFY_VALUE as I,SpinState as L}from"./widgets/adw-spin-row.js";import{AdwSliderRow as R,NOTIFY_SLIDER_VALUE as z}from"./widgets/adw-slider-row.js";import{AdwExpanderRow as B,ExpanderState as V,NOTIFY_EXPANDED as H}from"./widgets/adw-expander-row.js";import{AdwButton as U}from"./widgets/adw-button.js";import{AdwMenuButton as W,MENU_ITEM_ACTIVATED as G}from"./widgets/adw-menu-button.js";import{DEFAULT_CLAMP_MAX_SIZE as K,DEFAULT_SPINNER_SIZE as q}from"./widgets/chrome.js";import{AdwBanner as J,BUTTON_CLICKED as Y}from"./widgets/adw-banner.js";import{avatarInitials as X}from"./widgets/avatar-color.js";import{AdwAvatar as Z,DEFAULT_AVATAR_SIZE as re}from"./widgets/adw-avatar.js";import{AdwWindowTitle as ie}from"./widgets/adw-window-title.js";import{AdwClamp as ae}from"./widgets/adw-clamp.js";import{AdwHeaderBar as oe}from"./widgets/adw-header-bar.js";import{AdwToolbarView as se}from"./widgets/adw-toolbar-view.js";import{AdwWrapBox as ce}from"./widgets/adw-wrap-box.js";import{DATA_GRID_HEADER_CELL_CLASS as le,DATA_GRID_HEADER_ROW_CLASS as ue,DATA_GRID_SECTION_CELL_CLASS as de,dataGridCellClass as fe,dataGridItemSpec as pe,dataGridRowClass as me,dataGridShapeKey as he,dataGridTracksKey as ge,parseDataGridWidth as _e}from"./widgets/data-grid-model.js";import{AdwDataGrid as ve,ROW_ACTIVATED as ye}from"./widgets/adw-data-grid.js";import{AdwSpinner as be}from"./widgets/adw-spinner.js";import{AdwStatusPage as xe}from"./widgets/adw-status-page.js";import{AdwButtonRow as Se}from"./widgets/adw-button-row.js";import{AdwButtonContent as Ce}from"./widgets/adw-button-content.js";import{AdwSplitButton as we,CLICKED as Te,MENU_TAPPED as Ee}from"./widgets/adw-split-button.js";import{AdwToggleGroup as De,NOTIFY_SELECTED as Q,ToggleGroupState as Oe}from"./widgets/adw-toggle-group.js";import{ADWAITA_NS_ACCENT_RULES as ke,adwaitaNsAccentColor as Ae,adwaitaNsAccentCss as je}from"./widgets/accent-theme.js";import{applyAdwaitaNsAccent as Me,clearAdwaitaNsAccent as Ne}from"./widgets/adw-accent.js";import{SHORTCUT_LABEL_CAP_TEXT_CLASS as Pe,SHORTCUT_LABEL_CLASS as Fe,SHORTCUT_LABEL_DIMMED_CLASS as Ie,SHORTCUT_LABEL_DISABLED_CLASS as Le,SHORTCUT_LABEL_KEYCAP_CLASS as Re,SHORTCUT_LABEL_KEYS_CLASS as ze,SHORTCUT_LABEL_SIDE_CLASS as Be,SHORTCUT_LABEL_SPACED_CLASS as Ve,shortcutLabelDirection as He,shortcutLabelPlatform as Ue,shortcutLabelRenderPlan as We}from"./widgets/shortcut-label.js";import{AdwShortcutLabel as Ge}from"./widgets/adw-shortcut-label.js";import{AdwViewStack as Ke,NOTIFY_VISIBLE_CHILD as qe}from"./widgets/adw-view-stack.js";import{AdwViewSwitcherBase as Je,NOTIFY_SELECTED as Ye}from"./widgets/view-switcher-base.js";import{AdwViewSwitcher as Xe}from"./widgets/adw-view-switcher.js";import{AdwViewSwitcherBar as Ze}from"./widgets/adw-view-switcher-bar.js";import{AdwInlineViewSwitcher as Qe}from"./widgets/adw-inline-view-switcher.js";import{AdwTabView as $e}from"./widgets/adw-tab-view.js";import{DEFAULT_CAROUSEL_PAGE_WIDTH as et}from"./widgets/carousel-state.js";import{AdwCarousel as tt,NOTIFY_POSITION as nt}from"./widgets/adw-carousel.js";import{NOTIFY_VISIBLE_PAGE as rt}from"./widgets/navigation-stack.js";import{AdwNavigationView as it}from"./widgets/adw-navigation-view.js";import{NsNavigationSplitViewState as at,NsOverlaySplitViewState as ot,splitViewColumns as st}from"./widgets/split-view-state.js";import{AdwSplitViewBase as ct,NOTIFY_SHOW_SIDEBAR as lt}from"./widgets/split-view-base.js";import{AdwNavigationSplitView as ut}from"./widgets/adw-navigation-split-view.js";import{AdwOverlaySplitView as dt}from"./widgets/adw-overlay-split-view.js";import{AdwSidebar as ft,NOTIFY_SELECTED as pt}from"./widgets/adw-sidebar.js";import{NOTIFY_OPEN as mt}from"./widgets/bottom-sheet-state.js";import{AdwBottomSheet as ht}from"./widgets/adw-bottom-sheet.js";import{AdwToast as gt,AdwToastOverlay as _t,AdwToastQueue as vt,DEFAULT_TOAST_TIMEOUT as yt,TOAST_BUTTON_CLICKED as bt}from"./widgets/adw-toast-overlay.js";import{AdwAlertDialog as xt,AdwAlertResponses as St,NOTIFY_RESPONSE as Ct}from"./widgets/adw-alert-dialog.js";import{AdwAboutDialog as wt,CLOSED as Tt}from"./widgets/adw-about-dialog.js";import{AdwPreferencesDialog as Et,CLOSED as Dt}from"./widgets/adw-preferences-dialog.js";import{AdwBreakpoint as Ot,addBreakpoints as kt,evaluateBreakpointCondition as At,parseBreakpointCondition as jt}from"./widgets/breakpoint.js";import{registerAdwaitaElements as $}from"./widgets/index.js";import{assertNativeScript as Mt,assertNativeScript as Nt,isAndroid as Pt,isIOS as Ft,isNativeScript as It}from"@gjsify/native-platform";function registerAdwaita(){Nt(),$()}export{Tt as ABOUT_CLOSED,r as ACTIVATED,p as ADWAITA_ICON_GRID,ke as ADWAITA_NS_ACCENT_RULES,ee as ADWAITA_SANS_FONT_FAMILY,te as ADWAITA_SANS_TTF_FILES,wt as AdwAboutDialog,i as AdwActionRow,xt as AdwAlertDialog,St as AdwAlertResponses,Z as AdwAvatar,J as AdwBanner,ht as AdwBottomSheet,Ot as AdwBreakpoint,U as AdwButton,Ce as AdwButtonContent,Se as AdwButtonRow,tt as AdwCarousel,ae as AdwClamp,A as AdwComboRow,ve as AdwDataGrid,N as AdwDropDown,O as AdwEntry,w as AdwEntryRow,B as AdwExpanderRow,oe as AdwHeaderBar,y as AdwIcon,S as AdwImageButton,Qe as AdwInlineViewSwitcher,W as AdwMenuButton,ut as AdwNavigationSplitView,it as AdwNavigationView,dt as AdwOverlaySplitView,E as AdwPasswordEntryRow,Et as AdwPreferencesDialog,n as AdwPreferencesGroup,t as AdwPreferencesPage,Ge as AdwShortcutLabel,ft as AdwSidebar,R as AdwSliderRow,F as AdwSpinRow,be as AdwSpinner,we as AdwSplitButton,ct as AdwSplitViewBase,xe as AdwStatusPage,a as AdwSwitchRow,$e as AdwTabView,gt as AdwToast,_t as AdwToastOverlay,vt as AdwToastQueue,De as AdwToggleGroup,se as AdwToolbarView,Ke as AdwViewStack,Xe as AdwViewSwitcher,Ze as AdwViewSwitcherBar,Je as AdwViewSwitcherBase,ie as AdwWindowTitle,ce as AdwWrapBox,Y as BUTTON_CLICKED,Te as CLICKED,j as ComboState,le as DATA_GRID_HEADER_CELL_CLASS,ue as DATA_GRID_HEADER_ROW_CLASS,de as DATA_GRID_SECTION_CELL_CLASS,b as DEFAULT_ADW_ICON_SIZE,re as DEFAULT_AVATAR_SIZE,et as DEFAULT_CAROUSEL_PAGE_WIDTH,K as DEFAULT_CLAMP_MAX_SIZE,C as DEFAULT_ICON_BUTTON_ICON_SIZE,m as DEFAULT_ICON_COLOR,h as DEFAULT_ICON_COLOR_DARK,q as DEFAULT_SPINNER_SIZE,yt as DEFAULT_TOAST_TIMEOUT,D as ENTRY_ACTIVATE,V as ExpanderState,G as MENU_ITEM_ACTIVATED,Ee as MENU_TAPPED,o as NOTIFY_ACTIVE,P as NOTIFY_DROP_DOWN_SELECTED,k as NOTIFY_ENTRY_TEXT,H as NOTIFY_EXPANDED,mt as NOTIFY_OPEN,nt as NOTIFY_POSITION,Ct as NOTIFY_RESPONSE,M as NOTIFY_SELECTED,lt as NOTIFY_SHOW_SIDEBAR,pt as NOTIFY_SIDEBAR_SELECTED,z as NOTIFY_SLIDER_VALUE,T as NOTIFY_TEXT,Q as NOTIFY_TOGGLE_SELECTED,I as NOTIFY_VALUE,Ye as NOTIFY_VIEW_SELECTED,qe as NOTIFY_VISIBLE_CHILD,rt as NOTIFY_VISIBLE_PAGE,at as NsNavigationSplitViewState,ot as NsOverlaySplitViewState,Dt as PREFERENCES_CLOSED,ye as ROW_ACTIVATED,Pe as SHORTCUT_LABEL_CAP_TEXT_CLASS,Fe as SHORTCUT_LABEL_CLASS,Ie as SHORTCUT_LABEL_DIMMED_CLASS,Le as SHORTCUT_LABEL_DISABLED_CLASS,Re as SHORTCUT_LABEL_KEYCAP_CLASS,ze as SHORTCUT_LABEL_KEYS_CLASS,Be as SHORTCUT_LABEL_SIDE_CLASS,Ve as SHORTCUT_LABEL_SPACED_CLASS,L as SpinState,bt as TOAST_BUTTON_CLICKED,Oe as ToggleGroupState,kt as addBreakpoints,s as adwaitaColorScheme,ne as adwaitaFontInstallInstructions,Ae as adwaitaNsAccentColor,je as adwaitaNsAccentCss,Me as applyAdwaitaNsAccent,Mt as assertNativeScript,x as attachRowPressFeedback,X as avatarInitials,Ne as clearAdwaitaNsAccent,fe as dataGridCellClass,pe as dataGridItemSpec,me as dataGridRowClass,he as dataGridShapeKey,ge as dataGridTracksKey,At as evaluateBreakpointCondition,g as extractIconPaths,_ as extractPathData,e as hasAdwaitaSans,Pt as isAndroid,Ft as isIOS,It as isNativeScript,c as isThemeIconColor,l as onAdwaitaColorSchemeChanged,jt as parseBreakpointCondition,_e as parseDataGridWidth,registerAdwaita,$ as registerAdwaitaElements,v as renderSymbolicIcon,u as setAdwaitaColorScheme,He as shortcutLabelDirection,Ue as shortcutLabelPlatform,We as shortcutLabelRenderPlan,st as splitViewColumns,d as themeIconColor,f as toggleAdwaitaColorScheme};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{adwaitaAccentBgColor as e,adwaitaAccentColor as t}from"@gjsify/adwaita-core";const n=[{selector:`.adw-switch`,property:`color`,role:`fill`},{selector:`.adw-slider`,property:`color`,role:`fill`},{selector:`.adw-button.suggested-action`,property:`background-color`,role:`fill`},{selector:`.adw-button.suggested-action:highlighted`,property:`background-color`,role:`shade`},{selector:`.adw-banner-button.suggested-action`,property:`background-color`,role:`fill`},{selector:`.adw-avatar`,property:`background-color`,role:`fill`},{selector:`.adw-viewswitcherbar-button.active .adw-viewswitcherbar-button-label`,property:`color`,role:`fill`},{selector:`.adw-viewswitcherbar-button-badge`,property:`background-color`,role:`fill`},{selector:`.adw-button-row`,property:`color`,role:`fill`},{selector:`.adw-button-row-title`,property:`color`,role:`fill`},{selector:`.adw-button-row-start-icon`,property:`color`,role:`fill`},{selector:`.adw-view-switcher-button-badge`,property:`background-color`,role:`fill`},{selector:`.adw-inline-view-switcher-button-badge`,property:`background-color`,role:`fill`},{selector:`.adw-carousel-dot.active`,property:`color`,role:`fill`},{selector:`.ns-dark .adw-button.suggested-action`,property:`background-color`,role:`fill`},{selector:`.ns-dark .adw-avatar`,property:`background-color`,role:`shade`}];function adwaitaNsAccentColor(n,r){return r===`fill`?e(n):t(n,!1)}function adwaitaNsAccentCss(e){return n.map(t=>`${t.selector} { ${t.property}: ${adwaitaNsAccentColor(e,t.role)}; }`).join(`
|
|
2
|
+
`)}export{n as ADWAITA_NS_ACCENT_RULES,adwaitaNsAccentColor,adwaitaNsAccentCss};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{adwaitaNsAccentCss as e}from"./accent-theme.js";import{Application as t}from"@nativescript/core";import{ADW_DEFAULT_ACCENT_COLOR as n}from"@gjsify/adwaita-core";function applyAdwaitaNsAccent(n){t.addCss(e(n))}function clearAdwaitaNsAccent(){t.addCss(e(n))}export{applyAdwaitaNsAccent,clearAdwaitaNsAccent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{SHORTCUT_LABEL_CLASS as e,shortcutLabelDirection as t,shortcutLabelPlatform as n,shortcutLabelRenderPlan as r}from"./shortcut-label.js";import{isIOS as i}from"@gjsify/native-platform";import{Label as a,StackLayout as o}from"@nativescript/core";var AdwShortcutLabel=class extends o{_accelerator=``;_disabledText=``;constructor(){super(),this.orientation=`horizontal`,this.className=e,this.verticalAlignment=`middle`,this.accessibilityRole=`text`,this.addEventListener(`loaded`,()=>this._rebuild()),this._rebuild()}get accelerator(){return this._accelerator}set accelerator(e){this._accelerator=e??``,this._rebuild()}get disabledText(){return this._disabledText}set disabledText(e){this._disabledText=e??``,this._rebuild()}_rebuild(){let e=r(this._accelerator,{disabledText:this._disabledText,direction:t(this.style.direction),platform:n(i)});this.removeChildren();for(let t of e.children)this.addChild(buildView(t));this.accessibilityLabel=e.accessibleLabel,e.error&&console.warn(`[AdwShortcutLabel] failed to parse ${e.error}, part of accelerator '${this._accelerator}'`)}};function buildView(e){if(e.kind===`label`){let t=new a;return t.className=e.className,t.text=e.text,t.verticalAlignment=`middle`,t}let t=new o;t.orientation=`horizontal`,t.className=e.className,t.verticalAlignment=`middle`,e.direction&&(t.style.direction=e.direction);for(let n of e.children)t.addChild(buildView(n));return t}export{AdwShortcutLabel};
|
package/lib/esm/widgets/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{AdwPreferencesPage as e}from"./adw-preferences-page.js";import{AdwPreferencesGroup as t}from"./adw-preferences-group.js";import{ACTIVATED as ee,AdwActionRow as n}from"./adw-action-row.js";import{AdwSwitchRow as r,NOTIFY_ACTIVE as i}from"./adw-switch-row.js";import{adwaitaColorScheme as a,isThemeIconColor as te,onAdwaitaColorSchemeChanged as ne,setAdwaitaColorScheme as re,themeIconColor as ie,toggleAdwaitaColorScheme as ae}from"./color-scheme.js";import{ADWAITA_ICON_GRID as oe,DEFAULT_ICON_COLOR as se,DEFAULT_ICON_COLOR_DARK as ce,extractIconPaths as le,extractPathData as ue}from"./icon-path.js";import{renderSymbolicIcon as o}from"./icons.js";import{AdwIcon as s,DEFAULT_ADW_ICON_SIZE as c}from"./adw-icon.js";import{attachRowPressFeedback as l}from"./row-press.js";import{AdwImageButton as u,DEFAULT_ICON_BUTTON_ICON_SIZE as de}from"./adw-image-button.js";import{AdwEntryRow as d,NOTIFY_TEXT as fe}from"./adw-entry-row.js";import{AdwPasswordEntryRow as f}from"./adw-password-entry-row.js";import{ACTIVATE as pe,AdwEntry as p,NOTIFY_TEXT as me}from"./adw-entry.js";import{AdwComboRow as m,ComboState as he,NOTIFY_SELECTED as ge}from"./adw-combo-row.js";import{AdwDropDown as h,NOTIFY_SELECTED as _e}from"./adw-drop-down.js";import{AdwSpinRow as g,NOTIFY_VALUE as ve,SpinState as ye}from"./adw-spin-row.js";import{AdwSliderRow as _,NOTIFY_SLIDER_VALUE as be}from"./adw-slider-row.js";import{AdwExpanderRow as v,ExpanderState as xe,NOTIFY_EXPANDED as Se}from"./adw-expander-row.js";import{AdwButton as y}from"./adw-button.js";import{AdwMenuButton as b,MENU_ITEM_ACTIVATED as Ce}from"./adw-menu-button.js";import{DEFAULT_CLAMP_MAX_SIZE as we,DEFAULT_SPINNER_SIZE as Te}from"./chrome.js";import{AdwBanner as x,BUTTON_CLICKED as S}from"./adw-banner.js";import{avatarInitials as C}from"./avatar-color.js";import{AdwAvatar as w,DEFAULT_AVATAR_SIZE as T}from"./adw-avatar.js";import{AdwWindowTitle as E}from"./adw-window-title.js";import{AdwClamp as D}from"./adw-clamp.js";import{AdwHeaderBar as O}from"./adw-header-bar.js";import{AdwToolbarView as k}from"./adw-toolbar-view.js";import{AdwWrapBox as A}from"./adw-wrap-box.js";import{DATA_GRID_HEADER_CELL_CLASS as Ee,DATA_GRID_HEADER_ROW_CLASS as De,DATA_GRID_SECTION_CELL_CLASS as Oe,dataGridCellClass as ke,dataGridItemSpec as Ae,dataGridRowClass as je,dataGridShapeKey as Me,dataGridTracksKey as Ne,parseDataGridWidth as Pe}from"./data-grid-model.js";import{AdwDataGrid as j,ROW_ACTIVATED as Fe}from"./adw-data-grid.js";import{AdwSpinner as M}from"./adw-spinner.js";import{AdwStatusPage as N}from"./adw-status-page.js";import{AdwButtonRow as P}from"./adw-button-row.js";import{AdwButtonContent as F}from"./adw-button-content.js";import{AdwSplitButton as I,CLICKED as Ie,MENU_TAPPED as Le}from"./adw-split-button.js";import{AdwToggleGroup as L,NOTIFY_SELECTED as Re,ToggleGroupState as ze}from"./adw-toggle-group.js";import{AdwViewStack as R,NOTIFY_VISIBLE_CHILD as Be}from"./adw-view-stack.js";import{AdwViewSwitcherBase as Ve,NOTIFY_SELECTED as He}from"./view-switcher-base.js";import{AdwViewSwitcher as z}from"./adw-view-switcher.js";import{AdwViewSwitcherBar as B}from"./adw-view-switcher-bar.js";import{AdwInlineViewSwitcher as V}from"./adw-inline-view-switcher.js";import{applyTabViewVisibility as H,createTabViewState as Ue,tabBarVisibility as We,tabCloseVisibilities as Ge,tabLabelText as Ke,tabPageVisibilities as qe,tabTooltipText as Je,tabViewNotifyPayload as Ye}from"./tab-view-state.js";import{AdwTabView as U,CLOSE_PAGE as Xe,NOTIFY_SELECTED_PAGE as Ze,PAGES_CHANGED as Qe}from"./adw-tab-view.js";import{CarouselScrollSync as $e,DEFAULT_CAROUSEL_PAGE_WIDTH as et,applyCarouselDots as tt,carouselDotClasses as nt,carouselNotifyPayload as rt,carouselPositionAtOffset as it,carouselScrollOffset as at,createCarouselState as ot,normalizeCarouselPageWidth as st}from"./carousel-state.js";import{AdwCarousel as W,NOTIFY_N_PAGES as ct,NOTIFY_POSITION as lt,PAGE_CHANGED as ut}from"./adw-carousel.js";import{NOTIFY_VISIBLE_PAGE as dt}from"./navigation-stack.js";import{AdwNavigationView as G}from"./adw-navigation-view.js";import{NsNavigationSplitViewState as ft,NsOverlaySplitViewState as pt,splitViewColumns as mt}from"./split-view-state.js";import{AdwSplitViewBase as ht,NOTIFY_SHOW_SIDEBAR as gt}from"./split-view-base.js";import{AdwNavigationSplitView as K}from"./adw-navigation-split-view.js";import{AdwOverlaySplitView as q}from"./adw-overlay-split-view.js";import{AdwSidebar as J,NOTIFY_SELECTED as _t}from"./adw-sidebar.js";import{CLOSE_ATTEMPT as vt,NOTIFY_OPEN as yt,SHEET_CLOSE as bt}from"./bottom-sheet-state.js";import{AdwBottomSheet as Y}from"./adw-bottom-sheet.js";import{AdwToast as xt,AdwToastOverlay as X,AdwToastQueue as St,DEFAULT_TOAST_TIMEOUT as Ct,TOAST_BUTTON_CLICKED as wt}from"./adw-toast-overlay.js";import{AdwAlertDialog as Tt,AdwAlertResponses as Et,NOTIFY_RESPONSE as Dt}from"./adw-alert-dialog.js";import{AdwAboutDialog as Z,CLOSED as Ot}from"./adw-about-dialog.js";import{AdwPreferencesDialog as Q,CLOSED as kt}from"./adw-preferences-dialog.js";import{AdwBreakpoint as At,addBreakpoints as jt,evaluateBreakpointCondition as Mt,parseBreakpointCondition as Nt}from"./breakpoint.js";const Pt={AdwPreferencesPage:e,AdwPreferencesGroup:t,AdwActionRow:n,AdwSwitchRow:r,AdwEntryRow:d,AdwPasswordEntryRow:f,AdwEntry:p,AdwComboRow:m,AdwDropDown:h,AdwSpinRow:g,AdwSliderRow:_,AdwExpanderRow:v,AdwButton:y,AdwImageButton:u,AdwMenuButton:b,AdwIcon:s,AdwBanner:x,AdwAvatar:w,AdwWindowTitle:E,AdwClamp:D,AdwHeaderBar:O,AdwToolbarView:k,AdwWrapBox:A,AdwDataGrid:j,AdwSpinner:M,AdwStatusPage:N,AdwButtonRow:P,AdwButtonContent:F,AdwSplitButton:I,AdwToggleGroup:L,AdwViewStack:R,AdwViewSwitcher:z,AdwViewSwitcherBar:B,AdwInlineViewSwitcher:V,AdwTabView:U,AdwCarousel:W,AdwNavigationView:G,AdwNavigationSplitView:K,AdwOverlaySplitView:q,AdwSidebar:J,AdwBottomSheet:Y,AdwToastOverlay:X,AdwAboutDialog:Z,AdwPreferencesDialog:Q};let $=!1;function registerAdwaitaElements(){if(!$&&typeof registerElement==`function`){for(let[e,t]of Object.entries(Pt))registerElement(e,()=>t);$=!0}}export{Ot as ABOUT_CLOSED,ee as ACTIVATED,oe as ADWAITA_ICON_GRID,Z as AdwAboutDialog,n as AdwActionRow,Tt as AdwAlertDialog,Et as AdwAlertResponses,w as AdwAvatar,x as AdwBanner,Y as AdwBottomSheet,At as AdwBreakpoint,y as AdwButton,F as AdwButtonContent,P as AdwButtonRow,W as AdwCarousel,D as AdwClamp,m as AdwComboRow,j as AdwDataGrid,h as AdwDropDown,p as AdwEntry,d as AdwEntryRow,v as AdwExpanderRow,O as AdwHeaderBar,s as AdwIcon,u as AdwImageButton,V as AdwInlineViewSwitcher,b as AdwMenuButton,K as AdwNavigationSplitView,G as AdwNavigationView,q as AdwOverlaySplitView,f as AdwPasswordEntryRow,Q as AdwPreferencesDialog,t as AdwPreferencesGroup,e as AdwPreferencesPage,J as AdwSidebar,_ as AdwSliderRow,g as AdwSpinRow,M as AdwSpinner,I as AdwSplitButton,ht as AdwSplitViewBase,N as AdwStatusPage,r as AdwSwitchRow,U as AdwTabView,xt as AdwToast,X as AdwToastOverlay,St as AdwToastQueue,L as AdwToggleGroup,k as AdwToolbarView,R as AdwViewStack,z as AdwViewSwitcher,B as AdwViewSwitcherBar,Ve as AdwViewSwitcherBase,E as AdwWindowTitle,A as AdwWrapBox,S as BUTTON_CLICKED,Ie as CLICKED,vt as CLOSE_ATTEMPT,Xe as CLOSE_PAGE,$e as CarouselScrollSync,he as ComboState,Ee as DATA_GRID_HEADER_CELL_CLASS,De as DATA_GRID_HEADER_ROW_CLASS,Oe as DATA_GRID_SECTION_CELL_CLASS,c as DEFAULT_ADW_ICON_SIZE,T as DEFAULT_AVATAR_SIZE,et as DEFAULT_CAROUSEL_PAGE_WIDTH,we as DEFAULT_CLAMP_MAX_SIZE,de as DEFAULT_ICON_BUTTON_ICON_SIZE,se as DEFAULT_ICON_COLOR,ce as DEFAULT_ICON_COLOR_DARK,Te as DEFAULT_SPINNER_SIZE,Ct as DEFAULT_TOAST_TIMEOUT,pe as ENTRY_ACTIVATE,xe as ExpanderState,Ce as MENU_ITEM_ACTIVATED,Le as MENU_TAPPED,i as NOTIFY_ACTIVE,_e as NOTIFY_DROP_DOWN_SELECTED,me as NOTIFY_ENTRY_TEXT,Se as NOTIFY_EXPANDED,ct as NOTIFY_N_PAGES,yt as NOTIFY_OPEN,lt as NOTIFY_POSITION,Dt as NOTIFY_RESPONSE,ge as NOTIFY_SELECTED,Ze as NOTIFY_SELECTED_PAGE,gt as NOTIFY_SHOW_SIDEBAR,_t as NOTIFY_SIDEBAR_SELECTED,be as NOTIFY_SLIDER_VALUE,fe as NOTIFY_TEXT,Re as NOTIFY_TOGGLE_SELECTED,ve as NOTIFY_VALUE,He as NOTIFY_VIEW_SELECTED,Be as NOTIFY_VISIBLE_CHILD,dt as NOTIFY_VISIBLE_PAGE,ft as NsNavigationSplitViewState,pt as NsOverlaySplitViewState,Qe as PAGES_CHANGED,ut as PAGE_CHANGED,kt as PREFERENCES_CLOSED,Fe as ROW_ACTIVATED,bt as SHEET_CLOSE,ye as SpinState,wt as TOAST_BUTTON_CLICKED,ze as ToggleGroupState,jt as addBreakpoints,a as adwaitaColorScheme,tt as applyCarouselDots,H as applyTabViewVisibility,l as attachRowPressFeedback,C as avatarInitials,nt as carouselDotClasses,rt as carouselNotifyPayload,it as carouselPositionAtOffset,at as carouselScrollOffset,ot as createCarouselState,Ue as createTabViewState,ke as dataGridCellClass,Ae as dataGridItemSpec,je as dataGridRowClass,Me as dataGridShapeKey,Ne as dataGridTracksKey,Mt as evaluateBreakpointCondition,le as extractIconPaths,ue as extractPathData,te as isThemeIconColor,st as normalizeCarouselPageWidth,ne as onAdwaitaColorSchemeChanged,Nt as parseBreakpointCondition,Pe as parseDataGridWidth,registerAdwaitaElements,o as renderSymbolicIcon,re as setAdwaitaColorScheme,mt as splitViewColumns,We as tabBarVisibility,Ge as tabCloseVisibilities,Ke as tabLabelText,qe as tabPageVisibilities,Je as tabTooltipText,Ye as tabViewNotifyPayload,ie as themeIconColor,ae as toggleAdwaitaColorScheme};
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{AdwPreferencesPage as e}from"./adw-preferences-page.js";import{AdwPreferencesGroup as t}from"./adw-preferences-group.js";import{ACTIVATED as n,AdwActionRow as r}from"./adw-action-row.js";import{AdwSwitchRow as i,NOTIFY_ACTIVE as ee}from"./adw-switch-row.js";import{adwaitaColorScheme as te,isThemeIconColor as ne,onAdwaitaColorSchemeChanged as re,setAdwaitaColorScheme as ie,themeIconColor as ae,toggleAdwaitaColorScheme as oe}from"./color-scheme.js";import{ADWAITA_ICON_GRID as se,DEFAULT_ICON_COLOR as ce,DEFAULT_ICON_COLOR_DARK as le,extractIconPaths as ue,extractPathData as de}from"./icon-path.js";import{renderSymbolicIcon as a}from"./icons.js";import{AdwIcon as o,DEFAULT_ADW_ICON_SIZE as s}from"./adw-icon.js";import{attachRowPressFeedback as c}from"./row-press.js";import{AdwImageButton as l,DEFAULT_ICON_BUTTON_ICON_SIZE as fe}from"./adw-image-button.js";import{AdwEntryRow as u,NOTIFY_TEXT as pe}from"./adw-entry-row.js";import{AdwPasswordEntryRow as d}from"./adw-password-entry-row.js";import{ACTIVATE as me,AdwEntry as f,NOTIFY_TEXT as he}from"./adw-entry.js";import{AdwComboRow as p,ComboState as ge,NOTIFY_SELECTED as _e}from"./adw-combo-row.js";import{AdwDropDown as m,NOTIFY_SELECTED as ve}from"./adw-drop-down.js";import{AdwSpinRow as h,NOTIFY_VALUE as ye,SpinState as be}from"./adw-spin-row.js";import{AdwSliderRow as g,NOTIFY_SLIDER_VALUE as xe}from"./adw-slider-row.js";import{AdwExpanderRow as _,ExpanderState as Se,NOTIFY_EXPANDED as Ce}from"./adw-expander-row.js";import{AdwButton as v}from"./adw-button.js";import{AdwMenuButton as y,MENU_ITEM_ACTIVATED as we}from"./adw-menu-button.js";import{DEFAULT_CLAMP_MAX_SIZE as Te,DEFAULT_SPINNER_SIZE as Ee}from"./chrome.js";import{AdwBanner as b,BUTTON_CLICKED as x}from"./adw-banner.js";import{avatarInitials as S}from"./avatar-color.js";import{AdwAvatar as C,DEFAULT_AVATAR_SIZE as w}from"./adw-avatar.js";import{AdwWindowTitle as T}from"./adw-window-title.js";import{AdwClamp as E}from"./adw-clamp.js";import{AdwHeaderBar as D}from"./adw-header-bar.js";import{AdwToolbarView as O}from"./adw-toolbar-view.js";import{AdwWrapBox as k}from"./adw-wrap-box.js";import{DATA_GRID_HEADER_CELL_CLASS as De,DATA_GRID_HEADER_ROW_CLASS as Oe,DATA_GRID_SECTION_CELL_CLASS as ke,dataGridCellClass as Ae,dataGridItemSpec as je,dataGridRowClass as Me,dataGridShapeKey as Ne,dataGridTracksKey as Pe,parseDataGridWidth as Fe}from"./data-grid-model.js";import{AdwDataGrid as A,ROW_ACTIVATED as Ie}from"./adw-data-grid.js";import{AdwSpinner as j}from"./adw-spinner.js";import{AdwStatusPage as M}from"./adw-status-page.js";import{AdwButtonRow as N}from"./adw-button-row.js";import{AdwButtonContent as P}from"./adw-button-content.js";import{AdwSplitButton as F,CLICKED as Le,MENU_TAPPED as Re}from"./adw-split-button.js";import{AdwToggleGroup as I,NOTIFY_SELECTED as ze,ToggleGroupState as Be}from"./adw-toggle-group.js";import{ADWAITA_NS_ACCENT_RULES as Ve,adwaitaNsAccentColor as He,adwaitaNsAccentCss as Ue}from"./accent-theme.js";import{applyAdwaitaNsAccent as We,clearAdwaitaNsAccent as Ge}from"./adw-accent.js";import{SHORTCUT_LABEL_CAP_TEXT_CLASS as Ke,SHORTCUT_LABEL_CLASS as qe,SHORTCUT_LABEL_DIMMED_CLASS as Je,SHORTCUT_LABEL_DISABLED_CLASS as Ye,SHORTCUT_LABEL_KEYCAP_CLASS as Xe,SHORTCUT_LABEL_KEYS_CLASS as L,SHORTCUT_LABEL_SIDE_CLASS as Ze,SHORTCUT_LABEL_SPACED_CLASS as Qe,shortcutLabelDirection as $e,shortcutLabelPlatform as et,shortcutLabelRenderPlan as tt}from"./shortcut-label.js";import{AdwShortcutLabel as R}from"./adw-shortcut-label.js";import{AdwViewStack as z,NOTIFY_VISIBLE_CHILD as nt}from"./adw-view-stack.js";import{AdwViewSwitcherBase as rt,NOTIFY_SELECTED as it}from"./view-switcher-base.js";import{AdwViewSwitcher as B}from"./adw-view-switcher.js";import{AdwViewSwitcherBar as V}from"./adw-view-switcher-bar.js";import{AdwInlineViewSwitcher as H}from"./adw-inline-view-switcher.js";import{applyTabViewVisibility as at,createTabViewState as ot,tabBarVisibility as st,tabCloseVisibilities as ct,tabLabelText as lt,tabPageVisibilities as ut,tabTooltipText as dt,tabViewNotifyPayload as ft}from"./tab-view-state.js";import{AdwTabView as U,CLOSE_PAGE as pt,NOTIFY_SELECTED_PAGE as mt,PAGES_CHANGED as ht}from"./adw-tab-view.js";import{CarouselScrollSync as gt,DEFAULT_CAROUSEL_PAGE_WIDTH as _t,applyCarouselDots as vt,carouselDotClasses as yt,carouselNotifyPayload as bt,carouselPositionAtOffset as xt,carouselScrollOffset as St,createCarouselState as Ct,normalizeCarouselPageWidth as wt}from"./carousel-state.js";import{AdwCarousel as W,NOTIFY_N_PAGES as Tt,NOTIFY_POSITION as Et,PAGE_CHANGED as Dt}from"./adw-carousel.js";import{NOTIFY_VISIBLE_PAGE as Ot}from"./navigation-stack.js";import{AdwNavigationView as G}from"./adw-navigation-view.js";import{NsNavigationSplitViewState as kt,NsOverlaySplitViewState as At,splitViewColumns as jt}from"./split-view-state.js";import{AdwSplitViewBase as Mt,NOTIFY_SHOW_SIDEBAR as Nt}from"./split-view-base.js";import{AdwNavigationSplitView as K}from"./adw-navigation-split-view.js";import{AdwOverlaySplitView as q}from"./adw-overlay-split-view.js";import{AdwSidebar as J,NOTIFY_SELECTED as Pt}from"./adw-sidebar.js";import{CLOSE_ATTEMPT as Ft,NOTIFY_OPEN as It,SHEET_CLOSE as Lt}from"./bottom-sheet-state.js";import{AdwBottomSheet as Y}from"./adw-bottom-sheet.js";import{AdwToast as Rt,AdwToastOverlay as X,AdwToastQueue as zt,DEFAULT_TOAST_TIMEOUT as Bt,TOAST_BUTTON_CLICKED as Vt}from"./adw-toast-overlay.js";import{AdwAlertDialog as Ht,AdwAlertResponses as Ut,NOTIFY_RESPONSE as Wt}from"./adw-alert-dialog.js";import{AdwAboutDialog as Z,CLOSED as Gt}from"./adw-about-dialog.js";import{AdwPreferencesDialog as Q,CLOSED as Kt}from"./adw-preferences-dialog.js";import{AdwBreakpoint as qt,addBreakpoints as Jt,evaluateBreakpointCondition as Yt,parseBreakpointCondition as Xt}from"./breakpoint.js";const Zt={AdwPreferencesPage:e,AdwPreferencesGroup:t,AdwActionRow:r,AdwSwitchRow:i,AdwEntryRow:u,AdwPasswordEntryRow:d,AdwEntry:f,AdwComboRow:p,AdwDropDown:m,AdwSpinRow:h,AdwSliderRow:g,AdwExpanderRow:_,AdwButton:v,AdwImageButton:l,AdwMenuButton:y,AdwIcon:o,AdwBanner:b,AdwAvatar:C,AdwWindowTitle:T,AdwClamp:E,AdwHeaderBar:D,AdwToolbarView:O,AdwWrapBox:k,AdwDataGrid:A,AdwSpinner:j,AdwStatusPage:M,AdwButtonRow:N,AdwButtonContent:P,AdwSplitButton:F,AdwToggleGroup:I,AdwShortcutLabel:R,AdwViewStack:z,AdwViewSwitcher:B,AdwViewSwitcherBar:V,AdwInlineViewSwitcher:H,AdwTabView:U,AdwCarousel:W,AdwNavigationView:G,AdwNavigationSplitView:K,AdwOverlaySplitView:q,AdwSidebar:J,AdwBottomSheet:Y,AdwToastOverlay:X,AdwAboutDialog:Z,AdwPreferencesDialog:Q};let $=!1;function registerAdwaitaElements(){if(!$&&typeof registerElement==`function`){for(let[e,t]of Object.entries(Zt))registerElement(e,()=>t);$=!0}}export{Gt as ABOUT_CLOSED,n as ACTIVATED,se as ADWAITA_ICON_GRID,Ve as ADWAITA_NS_ACCENT_RULES,Z as AdwAboutDialog,r as AdwActionRow,Ht as AdwAlertDialog,Ut as AdwAlertResponses,C as AdwAvatar,b as AdwBanner,Y as AdwBottomSheet,qt as AdwBreakpoint,v as AdwButton,P as AdwButtonContent,N as AdwButtonRow,W as AdwCarousel,E as AdwClamp,p as AdwComboRow,A as AdwDataGrid,m as AdwDropDown,f as AdwEntry,u as AdwEntryRow,_ as AdwExpanderRow,D as AdwHeaderBar,o as AdwIcon,l as AdwImageButton,H as AdwInlineViewSwitcher,y as AdwMenuButton,K as AdwNavigationSplitView,G as AdwNavigationView,q as AdwOverlaySplitView,d as AdwPasswordEntryRow,Q as AdwPreferencesDialog,t as AdwPreferencesGroup,e as AdwPreferencesPage,R as AdwShortcutLabel,J as AdwSidebar,g as AdwSliderRow,h as AdwSpinRow,j as AdwSpinner,F as AdwSplitButton,Mt as AdwSplitViewBase,M as AdwStatusPage,i as AdwSwitchRow,U as AdwTabView,Rt as AdwToast,X as AdwToastOverlay,zt as AdwToastQueue,I as AdwToggleGroup,O as AdwToolbarView,z as AdwViewStack,B as AdwViewSwitcher,V as AdwViewSwitcherBar,rt as AdwViewSwitcherBase,T as AdwWindowTitle,k as AdwWrapBox,x as BUTTON_CLICKED,Le as CLICKED,Ft as CLOSE_ATTEMPT,pt as CLOSE_PAGE,gt as CarouselScrollSync,ge as ComboState,De as DATA_GRID_HEADER_CELL_CLASS,Oe as DATA_GRID_HEADER_ROW_CLASS,ke as DATA_GRID_SECTION_CELL_CLASS,s as DEFAULT_ADW_ICON_SIZE,w as DEFAULT_AVATAR_SIZE,_t as DEFAULT_CAROUSEL_PAGE_WIDTH,Te as DEFAULT_CLAMP_MAX_SIZE,fe as DEFAULT_ICON_BUTTON_ICON_SIZE,ce as DEFAULT_ICON_COLOR,le as DEFAULT_ICON_COLOR_DARK,Ee as DEFAULT_SPINNER_SIZE,Bt as DEFAULT_TOAST_TIMEOUT,me as ENTRY_ACTIVATE,Se as ExpanderState,we as MENU_ITEM_ACTIVATED,Re as MENU_TAPPED,ee as NOTIFY_ACTIVE,ve as NOTIFY_DROP_DOWN_SELECTED,he as NOTIFY_ENTRY_TEXT,Ce as NOTIFY_EXPANDED,Tt as NOTIFY_N_PAGES,It as NOTIFY_OPEN,Et as NOTIFY_POSITION,Wt as NOTIFY_RESPONSE,_e as NOTIFY_SELECTED,mt as NOTIFY_SELECTED_PAGE,Nt as NOTIFY_SHOW_SIDEBAR,Pt as NOTIFY_SIDEBAR_SELECTED,xe as NOTIFY_SLIDER_VALUE,pe as NOTIFY_TEXT,ze as NOTIFY_TOGGLE_SELECTED,ye as NOTIFY_VALUE,it as NOTIFY_VIEW_SELECTED,nt as NOTIFY_VISIBLE_CHILD,Ot as NOTIFY_VISIBLE_PAGE,kt as NsNavigationSplitViewState,At as NsOverlaySplitViewState,ht as PAGES_CHANGED,Dt as PAGE_CHANGED,Kt as PREFERENCES_CLOSED,Ie as ROW_ACTIVATED,Lt as SHEET_CLOSE,Ke as SHORTCUT_LABEL_CAP_TEXT_CLASS,qe as SHORTCUT_LABEL_CLASS,Je as SHORTCUT_LABEL_DIMMED_CLASS,Ye as SHORTCUT_LABEL_DISABLED_CLASS,Xe as SHORTCUT_LABEL_KEYCAP_CLASS,L as SHORTCUT_LABEL_KEYS_CLASS,Ze as SHORTCUT_LABEL_SIDE_CLASS,Qe as SHORTCUT_LABEL_SPACED_CLASS,be as SpinState,Vt as TOAST_BUTTON_CLICKED,Be as ToggleGroupState,Jt as addBreakpoints,te as adwaitaColorScheme,He as adwaitaNsAccentColor,Ue as adwaitaNsAccentCss,We as applyAdwaitaNsAccent,vt as applyCarouselDots,at as applyTabViewVisibility,c as attachRowPressFeedback,S as avatarInitials,yt as carouselDotClasses,bt as carouselNotifyPayload,xt as carouselPositionAtOffset,St as carouselScrollOffset,Ge as clearAdwaitaNsAccent,Ct as createCarouselState,ot as createTabViewState,Ae as dataGridCellClass,je as dataGridItemSpec,Me as dataGridRowClass,Ne as dataGridShapeKey,Pe as dataGridTracksKey,Yt as evaluateBreakpointCondition,ue as extractIconPaths,de as extractPathData,ne as isThemeIconColor,wt as normalizeCarouselPageWidth,re as onAdwaitaColorSchemeChanged,Xt as parseBreakpointCondition,Fe as parseDataGridWidth,registerAdwaitaElements,a as renderSymbolicIcon,ie as setAdwaitaColorScheme,$e as shortcutLabelDirection,et as shortcutLabelPlatform,tt as shortcutLabelRenderPlan,jt as splitViewColumns,st as tabBarVisibility,ct as tabCloseVisibilities,lt as tabLabelText,ut as tabPageVisibilities,dt as tabTooltipText,ft as tabViewNotifyPayload,ae as themeIconColor,oe as toggleAdwaitaColorScheme};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{parseShortcutLabel as e}from"@gjsify/adwaita-core";const t=`adw-shortcut-label`,n=`adw-shortcut-label-keys`,r=`keycap`,i=`adw-shortcut-label-cap-text`,a=`adw-shortcut-label-side`,o=`dimmed`,s=`adw-shortcut-label-disabled`,c=`adw-shortcut-label-spaced`,box=(e,t,n=null)=>({kind:`box`,className:e,text:``,children:t,direction:n}),label=(e,t)=>({kind:`label`,className:e,text:t,children:[],direction:null}),spaced=(e,t)=>t===0?e:`${e} ${c}`;function shortcutLabelPlatform(e){return e?`apple`:`default`}function shortcutLabelDirection(e){return e===`rtl`?`rtl`:`ltr`}function keycapSpec(e,t){let n=[label(i,e.label)];return e.sideMarker&&n.push(label(a,e.sideMarker)),box(spaced(r,t),n)}function nodeSpec(e,t){return e.kind===`disabled`?label(spaced(`${o} ${s}`,t),e.text):e.kind===`separator`?label(spaced(o,t),e.text):box(spaced(n,t),e.keys.map(keycapSpec),`ltr`)}function shortcutLabelRenderPlan(t,n={}){let{nodes:r,accessibleLabel:i,error:a}=e(t,n);return{children:r.map(nodeSpec),accessibleLabel:i,error:a}}export{i as SHORTCUT_LABEL_CAP_TEXT_CLASS,t as SHORTCUT_LABEL_CLASS,o as SHORTCUT_LABEL_DIMMED_CLASS,s as SHORTCUT_LABEL_DISABLED_CLASS,r as SHORTCUT_LABEL_KEYCAP_CLASS,n as SHORTCUT_LABEL_KEYS_CLASS,a as SHORTCUT_LABEL_SIDE_CLASS,c as SHORTCUT_LABEL_SPACED_CLASS,shortcutLabelDirection,shortcutLabelPlatform,shortcutLabelRenderPlan};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { assertNativeScript, isNativeScript, isAndroid, isIOS } from '@gjsify/native-platform';
|
|
2
|
-
export { AdwPreferencesPage, AdwPreferencesGroup, AdwActionRow, AdwSwitchRow, NOTIFY_ACTIVE, AdwEntryRow, NOTIFY_TEXT, AdwPasswordEntryRow, AdwEntry, ENTRY_ACTIVATE, NOTIFY_ENTRY_TEXT, AdwComboRow, ComboState, NOTIFY_SELECTED, AdwDropDown, NOTIFY_DROP_DOWN_SELECTED, AdwSpinRow, SpinState, NOTIFY_VALUE, AdwSliderRow, NOTIFY_SLIDER_VALUE, AdwExpanderRow, ExpanderState, NOTIFY_EXPANDED, AdwButton, AdwImageButton, DEFAULT_ICON_BUTTON_ICON_SIZE, AdwMenuButton, MENU_ITEM_ACTIVATED, AdwIcon, DEFAULT_ADW_ICON_SIZE, AdwBanner, BUTTON_CLICKED, AdwAvatar, DEFAULT_AVATAR_SIZE, avatarInitials, AdwWindowTitle, AdwClamp, DEFAULT_CLAMP_MAX_SIZE, AdwHeaderBar, AdwToolbarView, AdwWrapBox, AdwDataGrid, ROW_ACTIVATED, dataGridCellClass, dataGridItemSpec, dataGridRowClass, dataGridShapeKey, dataGridTracksKey, parseDataGridWidth, DATA_GRID_HEADER_CELL_CLASS, DATA_GRID_HEADER_ROW_CLASS, DATA_GRID_SECTION_CELL_CLASS, AdwSpinner, DEFAULT_SPINNER_SIZE, AdwStatusPage, AdwButtonRow, ACTIVATED, AdwButtonContent, AdwSplitButton, CLICKED, MENU_TAPPED, AdwToggleGroup, ToggleGroupState, NOTIFY_TOGGLE_SELECTED, AdwViewStack, NOTIFY_VISIBLE_CHILD, AdwViewSwitcherBase, NOTIFY_VIEW_SELECTED, AdwViewSwitcher, AdwViewSwitcherBar, AdwInlineViewSwitcher, AdwTabView, AdwCarousel, DEFAULT_CAROUSEL_PAGE_WIDTH, NOTIFY_POSITION, AdwNavigationView, NOTIFY_VISIBLE_PAGE, AdwSplitViewBase, NOTIFY_SHOW_SIDEBAR, AdwNavigationSplitView, AdwOverlaySplitView, NsNavigationSplitViewState, NsOverlaySplitViewState, splitViewColumns, AdwSidebar, NOTIFY_SIDEBAR_SELECTED, AdwBottomSheet, NOTIFY_OPEN, AdwToast, AdwToastOverlay, AdwToastQueue, DEFAULT_TOAST_TIMEOUT, TOAST_BUTTON_CLICKED, AdwAlertDialog, AdwAlertResponses, NOTIFY_RESPONSE, AdwAboutDialog, ABOUT_CLOSED, AdwPreferencesDialog, PREFERENCES_CLOSED, attachRowPressFeedback, renderSymbolicIcon, extractIconPaths, extractPathData, ADWAITA_ICON_GRID, DEFAULT_ICON_COLOR, DEFAULT_ICON_COLOR_DARK, adwaitaColorScheme, isThemeIconColor, onAdwaitaColorSchemeChanged, setAdwaitaColorScheme, themeIconColor, toggleAdwaitaColorScheme, AdwBreakpoint, addBreakpoints, evaluateBreakpointCondition, parseBreakpointCondition, registerAdwaitaElements, } from './widgets/index.js';
|
|
3
|
-
export type { NotifyActiveEventData, NotifyTextEventData, NotifyEntryTextEventData, AdwComboOption, ComboStateChange, ComboStateListener, NotifySelectedEventData, NotifyDropDownSelectedEventData, NotifyValueEventData, SpinStateChange, SpinStateListener, NotifySliderValueEventData, NotifyExpandedEventData, ExpanderStateListener, AdwButtonVariant, AdwMenuItem, MenuItemActivatedEventData, MenuTappedEventData, RowActivatedEventData, DataGridItemSpec, NotifyToggleSelectedEventData, ToggleGroupStateChange, ToggleGroupStateListener, AdwViewStackPage, NotifyVisibleChildEventData, AdwViewPage, NotifyViewSelectedEventData, NotifyPositionEventData, NotifyVisiblePageEventData, NotifyShowSidebarEventData, NsShowSidebarNotification, NsSplitViewHost, NsSplitViewState, NotifySidebarSelectedEventData, NotifyOpenEventData, AdwToastOptions, AdwToastQueueHandlers, AdwToastQueueOptions, ToastScheduler, ToastTimerHandle, NotifyResponseEventData, AdwAlertResponse, AdwResponseAppearance, AdwResponseOptions, OrderedConfirmResponses, SymbolicIconOptions, IconPath, AdwColorScheme, AdwBreakpointHandlers, BreakpointBound, BreakpointConditionGroup, BreakpointConditionLeaf, BreakpointConditionNode, BreakpointDimension, BreakpointSize, } from './widgets/index.js';
|
|
2
|
+
export { AdwPreferencesPage, AdwPreferencesGroup, AdwActionRow, AdwSwitchRow, NOTIFY_ACTIVE, AdwEntryRow, NOTIFY_TEXT, AdwPasswordEntryRow, AdwEntry, ENTRY_ACTIVATE, NOTIFY_ENTRY_TEXT, AdwComboRow, ComboState, NOTIFY_SELECTED, AdwDropDown, NOTIFY_DROP_DOWN_SELECTED, AdwSpinRow, SpinState, NOTIFY_VALUE, AdwSliderRow, NOTIFY_SLIDER_VALUE, AdwExpanderRow, ExpanderState, NOTIFY_EXPANDED, AdwButton, AdwImageButton, DEFAULT_ICON_BUTTON_ICON_SIZE, AdwMenuButton, MENU_ITEM_ACTIVATED, AdwIcon, DEFAULT_ADW_ICON_SIZE, AdwBanner, BUTTON_CLICKED, AdwAvatar, DEFAULT_AVATAR_SIZE, avatarInitials, AdwWindowTitle, AdwClamp, DEFAULT_CLAMP_MAX_SIZE, AdwHeaderBar, AdwToolbarView, AdwWrapBox, AdwDataGrid, ROW_ACTIVATED, dataGridCellClass, dataGridItemSpec, dataGridRowClass, dataGridShapeKey, dataGridTracksKey, parseDataGridWidth, DATA_GRID_HEADER_CELL_CLASS, DATA_GRID_HEADER_ROW_CLASS, DATA_GRID_SECTION_CELL_CLASS, AdwSpinner, DEFAULT_SPINNER_SIZE, AdwStatusPage, AdwButtonRow, ACTIVATED, AdwButtonContent, AdwSplitButton, CLICKED, MENU_TAPPED, AdwToggleGroup, ToggleGroupState, NOTIFY_TOGGLE_SELECTED, applyAdwaitaNsAccent, clearAdwaitaNsAccent, ADWAITA_NS_ACCENT_RULES, adwaitaNsAccentColor, adwaitaNsAccentCss, AdwShortcutLabel, SHORTCUT_LABEL_CAP_TEXT_CLASS, SHORTCUT_LABEL_CLASS, SHORTCUT_LABEL_DIMMED_CLASS, SHORTCUT_LABEL_DISABLED_CLASS, SHORTCUT_LABEL_KEYCAP_CLASS, SHORTCUT_LABEL_KEYS_CLASS, SHORTCUT_LABEL_SIDE_CLASS, SHORTCUT_LABEL_SPACED_CLASS, shortcutLabelDirection, shortcutLabelPlatform, shortcutLabelRenderPlan, AdwViewStack, NOTIFY_VISIBLE_CHILD, AdwViewSwitcherBase, NOTIFY_VIEW_SELECTED, AdwViewSwitcher, AdwViewSwitcherBar, AdwInlineViewSwitcher, AdwTabView, AdwCarousel, DEFAULT_CAROUSEL_PAGE_WIDTH, NOTIFY_POSITION, AdwNavigationView, NOTIFY_VISIBLE_PAGE, AdwSplitViewBase, NOTIFY_SHOW_SIDEBAR, AdwNavigationSplitView, AdwOverlaySplitView, NsNavigationSplitViewState, NsOverlaySplitViewState, splitViewColumns, AdwSidebar, NOTIFY_SIDEBAR_SELECTED, AdwBottomSheet, NOTIFY_OPEN, AdwToast, AdwToastOverlay, AdwToastQueue, DEFAULT_TOAST_TIMEOUT, TOAST_BUTTON_CLICKED, AdwAlertDialog, AdwAlertResponses, NOTIFY_RESPONSE, AdwAboutDialog, ABOUT_CLOSED, AdwPreferencesDialog, PREFERENCES_CLOSED, attachRowPressFeedback, renderSymbolicIcon, extractIconPaths, extractPathData, ADWAITA_ICON_GRID, DEFAULT_ICON_COLOR, DEFAULT_ICON_COLOR_DARK, adwaitaColorScheme, isThemeIconColor, onAdwaitaColorSchemeChanged, setAdwaitaColorScheme, themeIconColor, toggleAdwaitaColorScheme, AdwBreakpoint, addBreakpoints, evaluateBreakpointCondition, parseBreakpointCondition, registerAdwaitaElements, } from './widgets/index.js';
|
|
3
|
+
export type { NotifyActiveEventData, NotifyTextEventData, NotifyEntryTextEventData, AdwComboOption, ComboStateChange, ComboStateListener, NotifySelectedEventData, NotifyDropDownSelectedEventData, NotifyValueEventData, SpinStateChange, SpinStateListener, NotifySliderValueEventData, NotifyExpandedEventData, ExpanderStateListener, AdwButtonVariant, AdwMenuItem, MenuItemActivatedEventData, MenuTappedEventData, RowActivatedEventData, DataGridItemSpec, NotifyToggleSelectedEventData, ToggleGroupStateChange, ToggleGroupStateListener, AccentRole, AccentRule, ShortcutLabelRenderPlan, ShortcutLabelViewSpec, AdwViewStackPage, NotifyVisibleChildEventData, AdwViewPage, NotifyViewSelectedEventData, NotifyPositionEventData, NotifyVisiblePageEventData, NotifyShowSidebarEventData, NsShowSidebarNotification, NsSplitViewHost, NsSplitViewState, NotifySidebarSelectedEventData, NotifyOpenEventData, AdwToastOptions, AdwToastQueueHandlers, AdwToastQueueOptions, ToastScheduler, ToastTimerHandle, NotifyResponseEventData, AdwAlertResponse, AdwResponseAppearance, AdwResponseOptions, OrderedConfirmResponses, SymbolicIconOptions, IconPath, AdwColorScheme, AdwBreakpointHandlers, BreakpointBound, BreakpointConditionGroup, BreakpointConditionLeaf, BreakpointConditionNode, BreakpointDimension, BreakpointSize, } from './widgets/index.js';
|
|
4
4
|
export { ADWAITA_SANS_FONT_FAMILY, ADWAITA_SANS_TTF_FILES, adwaitaFontInstallInstructions, hasAdwaitaSans, } from './fonts.js';
|
|
5
5
|
/**
|
|
6
6
|
* One-call convenience setup for the Adwaita NativeScript layer.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type AdwAccentColorName } from '@gjsify/adwaita-core';
|
|
2
|
+
/** Which of the two accent shades a declaration carries. */
|
|
3
|
+
export type AccentRole = 'fill' | 'shade';
|
|
4
|
+
/** One accent-carrying declaration in `theme/adwaita.css`. */
|
|
5
|
+
export interface AccentRule {
|
|
6
|
+
/** The selector, exactly as the theme spells it. */
|
|
7
|
+
readonly selector: string;
|
|
8
|
+
/** The property the accent is assigned to. */
|
|
9
|
+
readonly property: 'color' | 'background-color';
|
|
10
|
+
/** Which shade it uses. */
|
|
11
|
+
readonly role: AccentRole;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Every accent declaration in the shipped theme.
|
|
15
|
+
*
|
|
16
|
+
* Extracted from the stylesheet rather than written from memory, and gated against
|
|
17
|
+
* it — see the header.
|
|
18
|
+
*/
|
|
19
|
+
export declare const ADWAITA_NS_ACCENT_RULES: ReadonlyArray<AccentRule>;
|
|
20
|
+
/** The colour for one role of `accent`. */
|
|
21
|
+
export declare function adwaitaNsAccentColor(accent: AdwAccentColorName, role: AccentRole): string;
|
|
22
|
+
/**
|
|
23
|
+
* The stylesheet that repaints the theme in `accent`.
|
|
24
|
+
*
|
|
25
|
+
* Appended to the app's CSS, so it must WIN over the rules it replaces: NS
|
|
26
|
+
* resolves equal-specificity rules by order, and added CSS comes last. Every
|
|
27
|
+
* selector is reproduced verbatim for that reason — a shortened or merged selector
|
|
28
|
+
* would lose to the original.
|
|
29
|
+
*/
|
|
30
|
+
export declare function adwaitaNsAccentCss(accent: AdwAccentColorName): string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type AdwAccentColorName } from '@gjsify/adwaita-core';
|
|
2
|
+
/** Repaint every accent-coloured rule in the theme for `accent`. */
|
|
3
|
+
export declare function applyAdwaitaNsAccent(accent: AdwAccentColorName): void;
|
|
4
|
+
/**
|
|
5
|
+
* Go back to libadwaita's default blue.
|
|
6
|
+
*
|
|
7
|
+
* NOT a removal: `addCss` is append-only, so the earlier override is still in the
|
|
8
|
+
* sheet and the only way to beat it is to append a later one. That also means this
|
|
9
|
+
* cannot restore a DESKTOP accent the way the GTK renderer can — Android has no
|
|
10
|
+
* system accent for the theme to follow, so the default IS the fallback here.
|
|
11
|
+
*/
|
|
12
|
+
export declare function clearAdwaitaNsAccent(): void;
|
|
@@ -4,64 +4,49 @@ import { ActionRowState } from './row-state.js';
|
|
|
4
4
|
export declare const ACTIVATED = "activated";
|
|
5
5
|
export declare class AdwActionRow extends GridLayout {
|
|
6
6
|
/**
|
|
7
|
-
* Whether libadwaita would answer `ADW_IS_ACTION_ROW` for this row
|
|
8
|
-
*
|
|
9
|
-
* (`filter_search_results`, adw-preferences-dialog.c:140-146).
|
|
7
|
+
* Whether libadwaita would answer `ADW_IS_ACTION_ROW` for this row, which decides
|
|
8
|
+
* whether the preferences SEARCH consults its subtitle.
|
|
10
9
|
*
|
|
11
|
-
* A declared property, not an `instanceof` test, because this port's class
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* override this to `false`, so the search behaves as GTK does.
|
|
10
|
+
* A declared property, not an `instanceof` test, because this port's class tree
|
|
11
|
+
* deliberately does NOT match the GObject one: `AdwEntryRow`, `AdwExpanderRow`
|
|
12
|
+
* and `AdwButtonRow` extend this class to reuse the row chrome, while in C all
|
|
13
|
+
* three derive from `AdwPreferencesRow`. They override this to `false`, so the
|
|
14
|
+
* search behaves as GTK does.
|
|
17
15
|
*/
|
|
18
16
|
readonly isActionRow: boolean;
|
|
19
17
|
/** The text/value column (column 1). */
|
|
20
18
|
protected readonly _textStack: StackLayout;
|
|
21
|
-
/** The title label. */
|
|
22
19
|
protected readonly _titleLabel: Label;
|
|
23
|
-
/** The subtitle label. */
|
|
24
20
|
protected readonly _subtitleLabel: Label;
|
|
25
21
|
/** The headless labels + activatable-widget coupling (ADR 0004). */
|
|
26
22
|
protected readonly _rowState: ActionRowState<View>;
|
|
27
|
-
/** The currently-installed prefix view (column 0), if any. */
|
|
28
23
|
private _prefix;
|
|
29
|
-
/** The currently-installed suffix view (column 2), if any. */
|
|
30
24
|
private _suffix;
|
|
31
25
|
constructor();
|
|
32
|
-
/**
|
|
33
|
-
* Install a prefix widget in column 0 (e.g. an `AdwIcon` symbolic icon).
|
|
34
|
-
* Replaces any previously-installed prefix. Pass `null` to clear it.
|
|
35
|
-
*/
|
|
26
|
+
/** Install a prefix widget in column 0. Replaces any previous one; `null` clears. */
|
|
36
27
|
setPrefix(view: View | null): void;
|
|
37
|
-
/** The currently-installed prefix view, or `null`. */
|
|
38
28
|
get prefix(): View | null;
|
|
39
29
|
/** The row title (column 1, top line). */
|
|
40
30
|
get title(): string;
|
|
41
31
|
set title(value: string);
|
|
42
32
|
/**
|
|
43
|
-
* The row subtitle (column 1, dim second line).
|
|
44
|
-
*
|
|
45
|
-
* the title now follows.
|
|
33
|
+
* The row subtitle (column 1, dim second line). Empty collapses its label so it
|
|
34
|
+
* leaves no blank gap — `string_is_not_empty`, the rule the title follows too.
|
|
46
35
|
*/
|
|
47
36
|
get subtitle(): string;
|
|
48
37
|
set subtitle(value: string);
|
|
49
|
-
/**
|
|
50
|
-
* Install a suffix widget in column 2 (e.g. a `Switch`, `Button`, or icon).
|
|
51
|
-
* Replaces any previously-installed suffix. Pass `null` to clear it.
|
|
52
|
-
*/
|
|
38
|
+
/** Install a suffix widget in column 2. Replaces any previous one; `null` clears. */
|
|
53
39
|
setSuffix(view: View | null): void;
|
|
54
|
-
/** The currently-installed suffix view, or `null`. */
|
|
55
40
|
get suffix(): View | null;
|
|
56
41
|
/** `Adw.ActionRow:activatable-widget` — the widget this row activates. */
|
|
57
42
|
get activatableWidget(): View | null;
|
|
58
43
|
/**
|
|
59
|
-
* Set the activatable widget. Its sensitivity is copied into `activatable
|
|
60
|
-
*
|
|
61
|
-
*
|
|
44
|
+
* Set the activatable widget. Its sensitivity is copied into `activatable`;
|
|
45
|
+
* clearing it LEAVES the row activatable. Call
|
|
46
|
+
* {@link syncActivatableWidgetSensitivity} when the widget's
|
|
62
47
|
* `isUserInteractionEnabled` changes — NativeScript has no property-change
|
|
63
|
-
* notification a plain `View` write goes through, so the live half of the
|
|
64
|
-
*
|
|
48
|
+
* notification a plain `View` write goes through, so the live half of the binding
|
|
49
|
+
* has to be driven, not observed.
|
|
65
50
|
*/
|
|
66
51
|
set activatableWidget(widget: View | null);
|
|
67
52
|
/** Re-read the activatable widget's sensitivity — the live half of the binding. */
|
|
@@ -70,24 +55,23 @@ export declare class AdwActionRow extends GridLayout {
|
|
|
70
55
|
get activatable(): boolean;
|
|
71
56
|
set activatable(value: boolean);
|
|
72
57
|
/**
|
|
73
|
-
* `adw_action_row_activate
|
|
74
|
-
*
|
|
75
|
-
*
|
|
58
|
+
* `adw_action_row_activate`: forward to the activatable widget, then emit
|
|
59
|
+
* `activated`. A no-op while unactivatable, because a tap on a non-activatable
|
|
60
|
+
* `GtkListBoxRow` never reaches here.
|
|
76
61
|
*
|
|
77
|
-
* FORWARDING IS SUBCLASS BUSINESS
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
62
|
+
* FORWARDING IS SUBCLASS BUSINESS here: GTK sends `mnemonic-activate` and every
|
|
63
|
+
* widget knows what that means for itself, while NativeScript has no such
|
|
64
|
+
* primitive on `View` — so `AdwSwitchRow` overrides this to toggle its slider and
|
|
65
|
+
* a plain action row only emits.
|
|
81
66
|
*/
|
|
82
67
|
activate(): void;
|
|
83
68
|
/**
|
|
84
69
|
* Whether this row's own title visibility follows `string_is_not_empty`.
|
|
85
70
|
*
|
|
86
|
-
* `AdwEntryRow` sets it `false`: its two titles are the endpoints of
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
* the small floating label on top of the large placeholder.
|
|
71
|
+
* `AdwEntryRow` sets it `false`: its two titles are the endpoints of libadwaita's
|
|
72
|
+
* empty↔filled CROSS-FADE, so which shows is decided by `emptyTarget`, not by
|
|
73
|
+
* whether the string is empty. Without the opt-out, setting a title on an entry
|
|
74
|
+
* row reveals the small floating label on top of the large placeholder.
|
|
91
75
|
*/
|
|
92
76
|
protected _managesTitleVisibility: boolean;
|
|
93
77
|
/** Push the derived label text + visibility onto the two `Label`s. */
|
|
@@ -6,7 +6,6 @@ export declare const ROW_ACTIVATED = "row-activated";
|
|
|
6
6
|
export interface RowActivatedEventData extends EventData {
|
|
7
7
|
/** The row's index in the `rows` array. */
|
|
8
8
|
index: number;
|
|
9
|
-
/** The row object that was activated. */
|
|
10
9
|
row: AdwDataGridRow;
|
|
11
10
|
}
|
|
12
11
|
export declare class AdwDataGrid extends GridLayout {
|
|
@@ -42,18 +41,13 @@ export declare class AdwDataGrid extends GridLayout {
|
|
|
42
41
|
* (Re)declare the column tracks from the descriptors.
|
|
43
42
|
*
|
|
44
43
|
* Guarded on the derived tracks rather than run on every render: re-declaring
|
|
45
|
-
* invalidates the layout, and a data change must not move the columns.
|
|
46
|
-
* precedent is `AdwViewSwitcherBar`, which rebuilds only when the page count
|
|
47
|
-
* moves; the key generalises that, because a column list can change without
|
|
48
|
-
* changing length (`data-grid-model.ts` says why).
|
|
44
|
+
* invalidates the layout, and a data change must not move the columns.
|
|
49
45
|
*/
|
|
50
46
|
private _syncColumns;
|
|
51
47
|
/**
|
|
52
|
-
* Rebuild the cell views when the grid's SHAPE moves, and only then
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* every data update is what the view-switcher bar's count guard exists to
|
|
56
|
-
* avoid, and here it would also drop the press state mid-touch.
|
|
48
|
+
* Rebuild the cell views when the grid's SHAPE moves, and only then — replacing
|
|
49
|
+
* the row under the user's finger on every data update would drop the press
|
|
50
|
+
* state mid-touch.
|
|
57
51
|
*/
|
|
58
52
|
private _syncNodes;
|
|
59
53
|
/** Build one row: the spanning background first, then a cell per column. */
|
|
@@ -7,15 +7,14 @@ export { EntryRowState } from '@gjsify/adwaita-core';
|
|
|
7
7
|
export type { EntryRowRenderState, EntryRowActivation } from '@gjsify/adwaita-core';
|
|
8
8
|
/** Event name emitted when {@link AdwEntryRow.text} changes. Mirrors GObject `notify::text`. */
|
|
9
9
|
export declare const NOTIFY_TEXT = "notify::text";
|
|
10
|
-
/** Event name emitted when the character count changes
|
|
10
|
+
/** Event name emitted when the character count changes. */
|
|
11
11
|
export declare const NOTIFY_TEXT_LENGTH = "notify::text-length";
|
|
12
|
-
/**
|
|
12
|
+
/** `AdwEntryRow::apply` — the apply button, or the return key while it shows. */
|
|
13
13
|
export declare const SIGNAL_APPLY = "apply";
|
|
14
|
-
/**
|
|
14
|
+
/** `AdwEntryRow::entry-activated` — the return key when there is nothing to apply. */
|
|
15
15
|
export declare const SIGNAL_ENTRY_ACTIVATED = "entry-activated";
|
|
16
16
|
/** Payload of the `notify::text` event. */
|
|
17
17
|
export interface NotifyTextEventData extends EventData {
|
|
18
|
-
/** The new text value. */
|
|
19
18
|
text: string;
|
|
20
19
|
}
|
|
21
20
|
/** Payload of the `notify::text-length` event. */
|
|
@@ -26,15 +25,15 @@ export interface NotifyTextLengthEventData extends EventData {
|
|
|
26
25
|
/** Payload of the `entry-activated` event. */
|
|
27
26
|
export interface EntryActivatedEventData extends EventData {
|
|
28
27
|
/**
|
|
29
|
-
* Whether the host must activate its default action FIRST —
|
|
30
|
-
* `gtk_widget_activate_default`
|
|
31
|
-
*
|
|
28
|
+
* Whether the host must activate its default action FIRST — C calls
|
|
29
|
+
* `gtk_widget_activate_default` before emitting, and NS has no default-widget
|
|
30
|
+
* concept, so the ordering becomes the host's.
|
|
32
31
|
*/
|
|
33
32
|
activateDefault: boolean;
|
|
34
33
|
}
|
|
35
34
|
export declare class AdwEntryRow extends AdwActionRow {
|
|
36
|
-
/** `AdwEntryRow` derives from `AdwPreferencesRow` in C
|
|
37
|
-
*
|
|
35
|
+
/** `AdwEntryRow` derives from `AdwPreferencesRow` in C, so the preferences search
|
|
36
|
+
* must NOT read the text typed into it. */
|
|
38
37
|
readonly isActionRow: boolean;
|
|
39
38
|
/** The headless `update_empty` derivation + apply latch (ADR 0004). */
|
|
40
39
|
protected readonly _state: EntryRowState;
|
|
@@ -48,7 +47,6 @@ export declare class AdwEntryRow extends AdwActionRow {
|
|
|
48
47
|
protected readonly _editIcon: AdwIcon;
|
|
49
48
|
/** The caps-lock warning slot (`indicator`). */
|
|
50
49
|
protected readonly _indicator: AdwIcon;
|
|
51
|
-
/** The apply button. */
|
|
52
50
|
protected readonly _applyButton: AdwImageButton;
|
|
53
51
|
/** The suffix installed through the inherited single-slot {@link setSuffix}. */
|
|
54
52
|
private _slotSuffix;
|
|
@@ -74,36 +72,29 @@ export declare class AdwEntryRow extends AdwActionRow {
|
|
|
74
72
|
set activatesDefault(value: boolean);
|
|
75
73
|
/** Whether the field currently has focus. */
|
|
76
74
|
get editing(): boolean;
|
|
77
|
-
/**
|
|
78
|
-
* Append a suffix — `adw_entry_row_add_suffix` (adw-entry-row.c:885-899),
|
|
79
|
-
* which appends into a BOX so suffixes COEXIST.
|
|
80
|
-
*/
|
|
75
|
+
/** Append a suffix — `adw_entry_row_add_suffix` appends into a BOX, so suffixes COEXIST. */
|
|
81
76
|
addSuffix(view: View): void;
|
|
82
77
|
/**
|
|
83
|
-
* The inherited single-slot API,
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
* `
|
|
87
|
-
*
|
|
88
|
-
* while `_peekButton` kept pointing at the detached view, so the row could
|
|
89
|
-
* never be revealed again. Upstream has no such conflict because there is no
|
|
90
|
-
* single slot: `add_suffix` appends.
|
|
78
|
+
* The inherited single-slot API, narrowed to replace only the suffix a previous
|
|
79
|
+
* `setSuffix` installed. `AdwActionRow.setSuffix` removes whatever sits in the
|
|
80
|
+
* slot, which would detach the password row's own peek toggle — leaving
|
|
81
|
+
* `_peekButton` pointing at a detached view, so the row could never be revealed
|
|
82
|
+
* again. Upstream has no such conflict: `add_suffix` appends.
|
|
91
83
|
*/
|
|
92
84
|
setSuffix(view: View | null): void;
|
|
93
85
|
/** The suffix installed through {@link setSuffix}, or `null`. */
|
|
94
86
|
get suffix(): View | null;
|
|
95
87
|
/**
|
|
96
|
-
* Drive the trailing indicator — `adw_entry_row_set_show_indicator
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
* into a private header.
|
|
88
|
+
* Drive the trailing indicator — `adw_entry_row_set_show_indicator`. Private to
|
|
89
|
+
* the library upstream, public here because `AdwPasswordEntryRow` composes rather
|
|
90
|
+
* than reaching into a private header.
|
|
100
91
|
*/
|
|
101
92
|
setShowIndicator(show: boolean): void;
|
|
102
|
-
/** `adw_entry_row_set_indicator_icon_name
|
|
93
|
+
/** `adw_entry_row_set_indicator_icon_name`, as an Adwaita symbolic SVG. */
|
|
103
94
|
setIndicatorIcon(svg: string): void;
|
|
104
|
-
/** Apply the pending edit — the apply button tap
|
|
95
|
+
/** Apply the pending edit — the apply button tap. */
|
|
105
96
|
apply(): void;
|
|
106
|
-
/** `text_activated_cb`
|
|
97
|
+
/** `text_activated_cb` — exactly one of the two signals. */
|
|
107
98
|
private _activate;
|
|
108
99
|
/** Paint one render snapshot through the shared (spec-driven) painter. */
|
|
109
100
|
protected _render(state: EntryRowRenderState): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StackLayout } from '@nativescript/core';
|
|
2
|
+
export declare class AdwShortcutLabel extends StackLayout {
|
|
3
|
+
private _accelerator;
|
|
4
|
+
private _disabledText;
|
|
5
|
+
constructor();
|
|
6
|
+
/** The accelerator to draw, in `gtk_accelerator_parse` syntax (`<Control>C`). */
|
|
7
|
+
get accelerator(): string;
|
|
8
|
+
set accelerator(value: string);
|
|
9
|
+
/** The placeholder shown when {@link accelerator} is empty (:513-520). */
|
|
10
|
+
get disabledText(): string;
|
|
11
|
+
set disabledText(value: string);
|
|
12
|
+
private _rebuild;
|
|
13
|
+
}
|
|
@@ -6,38 +6,29 @@ export type { ButtonContentEllipsize };
|
|
|
6
6
|
export declare const BUTTON_CONTENT_CAN_SHRINK_CLASS = "can-shrink";
|
|
7
7
|
/**
|
|
8
8
|
* The SVG the icon view is given: the app's, or the `image-missing` asset for an
|
|
9
|
-
* empty slot
|
|
9
|
+
* empty slot — the fallback `init` applies too, while `icon_name` is still `""`.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* (
|
|
15
|
-
* swaps its source, which is the same shape as the C. The doc comments at :228
|
|
16
|
-
* and :343 claim the icon is hidden instead; the code disagrees with them and
|
|
17
|
-
* this follows the code (see the conformance vector's `rule`).
|
|
11
|
+
* The C NEVER hides the image, only the label, so this port keeps the icon view
|
|
12
|
+
* parented at all times and swaps its source. Upstream's own doc comments claim the
|
|
13
|
+
* icon is hidden instead; the code disagrees with them and this follows the code
|
|
14
|
+
* (see the conformance vector's `rule`).
|
|
18
15
|
*/
|
|
19
16
|
export declare function buttonContentIconSvg(svg: string): string;
|
|
20
17
|
/** Whether the icon shown is the empty-slot fallback rather than an app asset. */
|
|
21
18
|
export declare function buttonContentIconIsFallback(svg: string): boolean;
|
|
22
19
|
/**
|
|
23
|
-
* The parent button's `className` with `image-text-button` added — the root-time
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* Adds rather than rewrites, so the `adw-button suggested-action pill` a caller
|
|
27
|
-
* composed survives; and it is idempotent, so a re-parent cannot double the
|
|
28
|
-
* token.
|
|
20
|
+
* The parent button's `className` with `image-text-button` added — the root-time half
|
|
21
|
+
* of `adw_button_content_root`. Adds rather than rewrites, so a caller's composed
|
|
22
|
+
* classes survive, and is idempotent, so a re-parent cannot double the token.
|
|
29
23
|
*/
|
|
30
24
|
export declare function buttonContentRootedParentClassName(current: string): string;
|
|
31
25
|
/**
|
|
32
|
-
* The parent button's `className` with `image-text-button` removed — the unroot
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* The C removes it on unroot rather than leaving it behind, so a button that
|
|
36
|
-
* loses its content goes back to plain-button padding. A port that only ever
|
|
37
|
-
* added the class would leave the 9px on a button that is now text-only.
|
|
26
|
+
* The parent button's `className` with `image-text-button` removed — the unroot half.
|
|
27
|
+
* A button that loses its content must go back to plain-button padding, or the 9px
|
|
28
|
+
* stays on a now text-only button.
|
|
38
29
|
*/
|
|
39
30
|
export declare function buttonContentUnrootedParentClassName(current: string): string;
|
|
40
|
-
/** The label view's `visibility` — NS's spelling of `gtk_widget_set_visible
|
|
31
|
+
/** The label view's `visibility` — NS's spelling of `gtk_widget_set_visible`. */
|
|
41
32
|
export declare function buttonContentLabelVisibility(label: string): 'visible' | 'collapse';
|
|
42
33
|
/** The content's own `className` for a `can-shrink` value, other tokens untouched. */
|
|
43
34
|
export declare function buttonContentClassName(current: string, canShrink: boolean): string;
|
|
@@ -2,10 +2,9 @@ import type { Label } from '@nativescript/core';
|
|
|
2
2
|
import { CarouselState } from '@gjsify/adwaita-core';
|
|
3
3
|
import type { CarouselScrollRequest, CarouselStateChange } from '@gjsify/adwaita-core';
|
|
4
4
|
/**
|
|
5
|
-
* Default page width (DIPs)
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* default keeps the offsets sane until the consumer supplies the real one.
|
|
5
|
+
* Default page width (DIPs) for the offset math until the consumer sets `pageWidth`.
|
|
6
|
+
* libadwaita MEASURES its pages; NS gives a widget no size before its first layout
|
|
7
|
+
* pass, so a plausible phone width keeps the offsets sane until then.
|
|
9
8
|
*/
|
|
10
9
|
export declare const DEFAULT_CAROUSEL_PAGE_WIDTH = 320;
|
|
11
10
|
/** Construction seams an `AdwCarousel` hands to its state machine. */
|
|
@@ -18,31 +17,29 @@ export interface NsCarouselStateOptions {
|
|
|
18
17
|
/**
|
|
19
18
|
* The state machine an `AdwCarousel` delegates to.
|
|
20
19
|
*
|
|
21
|
-
* `animateScroll` is FALSE: the `ScrollView` animates the pixels
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* {@link CarouselScrollSync} is what keeps the two from fighting.
|
|
20
|
+
* `animateScroll` is FALSE: the `ScrollView` animates the pixels but reports nothing
|
|
21
|
+
* until it has, and on an untested platform it may report nothing at all. Keeping the
|
|
22
|
+
* model authoritative makes a `scrollToPage` correct the instant it is called;
|
|
23
|
+
* {@link CarouselScrollSync} keeps the two from fighting.
|
|
26
24
|
*/
|
|
27
25
|
export declare function createCarouselState(options?: NsCarouselStateOptions): CarouselState;
|
|
28
26
|
/** A page width that can be divided by — anything else falls back to the default. */
|
|
29
27
|
export declare function normalizeCarouselPageWidth(value: number): number;
|
|
30
|
-
/** The horizontal scroll offset in DIPs for a position — `distance * position
|
|
28
|
+
/** The horizontal scroll offset in DIPs for a position — `distance * position`. */
|
|
31
29
|
export declare function carouselScrollOffset(position: number, distance: number): number;
|
|
32
30
|
/** The inverse: the position a `ScrollView` at `offset` is showing. */
|
|
33
31
|
export declare function carouselPositionAtOffset(offset: number, distance: number): number;
|
|
34
32
|
/**
|
|
35
33
|
* Keeps the model in step with a `ScrollView` that animates its own scrolls.
|
|
36
34
|
*
|
|
37
|
-
* Without this the two fight: the widget moves the model the moment
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
35
|
+
* Without this the two fight: the widget moves the model the moment `scrollToPage`
|
|
36
|
+
* is called, then the animation replays every intermediate offset back at it, so the
|
|
37
|
+
* dots run backwards to where the scroll STARTED and crawl forward again, emitting a
|
|
38
|
+
* second `page-changed` on arrival.
|
|
41
39
|
*
|
|
42
|
-
* So a programmatic scroll declares its destination with {@link expect}
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
* fractional position at all, something the port had no way to observe.
|
|
40
|
+
* So a programmatic scroll declares its destination with {@link expect} and every
|
|
41
|
+
* offset before it is ignored. A scroll nobody declared is a user swipe and drives the
|
|
42
|
+
* model directly — which is how a free flick gets a fractional position.
|
|
46
43
|
*/
|
|
47
44
|
export declare class CarouselScrollSync {
|
|
48
45
|
/** Position a programmatic scroll is animating towards, `null` while idle. */
|