@gjsify/adwaita-nativescript 0.37.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-shortcut-label.d.ts +13 -0
- package/lib/types/widgets/index.d.ts +6 -0
- package/lib/types/widgets/shortcut-label.d.ts +54 -0
- 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;
|
|
@@ -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
|
+
}
|
|
@@ -43,6 +43,12 @@ export { AdwSplitButton, CLICKED, MENU_TAPPED } from './adw-split-button.js';
|
|
|
43
43
|
export type { MenuTappedEventData } from './adw-split-button.js';
|
|
44
44
|
export { AdwToggleGroup, NOTIFY_SELECTED as NOTIFY_TOGGLE_SELECTED, ToggleGroupState } from './adw-toggle-group.js';
|
|
45
45
|
export type { NotifyToggleSelectedEventData, ToggleGroupStateChange, ToggleGroupStateListener, } from './adw-toggle-group.js';
|
|
46
|
+
export { applyAdwaitaNsAccent, clearAdwaitaNsAccent } from './adw-accent.js';
|
|
47
|
+
export { ADWAITA_NS_ACCENT_RULES, adwaitaNsAccentColor, adwaitaNsAccentCss } from './accent-theme.js';
|
|
48
|
+
export type { AccentRole, AccentRule } from './accent-theme.js';
|
|
49
|
+
export { AdwShortcutLabel } from './adw-shortcut-label.js';
|
|
50
|
+
export { 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, } from './shortcut-label.js';
|
|
51
|
+
export type { ShortcutLabelRenderPlan, ShortcutLabelViewSpec } from './shortcut-label.js';
|
|
46
52
|
export { AdwViewStack, NOTIFY_VISIBLE_CHILD } from './adw-view-stack.js';
|
|
47
53
|
export type { AdwViewStackPage, NotifyVisibleChildEventData } from './adw-view-stack.js';
|
|
48
54
|
export { AdwViewSwitcherBase, NOTIFY_SELECTED as NOTIFY_VIEW_SELECTED } from './view-switcher-base.js';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { ShortcutLabelOptions } from '@gjsify/adwaita-core';
|
|
2
|
+
/** The host `StackLayout`'s own class. */
|
|
3
|
+
export declare const SHORTCUT_LABEL_CLASS = "adw-shortcut-label";
|
|
4
|
+
/** One combination — the keycaps of a single accelerator, drawn side by side. */
|
|
5
|
+
export declare const SHORTCUT_LABEL_KEYS_CLASS = "adw-shortcut-label-keys";
|
|
6
|
+
/** One keycap. libadwaita's own name, so the theme rule reads like the SCSS. */
|
|
7
|
+
export declare const SHORTCUT_LABEL_KEYCAP_CLASS = "keycap";
|
|
8
|
+
/** The text inside a keycap — the Label a `<span>`'s text node stands in for. */
|
|
9
|
+
export declare const SHORTCUT_LABEL_CAP_TEXT_CLASS = "adw-shortcut-label-cap-text";
|
|
10
|
+
/** The `L`/`R` marker of a sided modifier key, inside the cap it belongs to. */
|
|
11
|
+
export declare const SHORTCUT_LABEL_SIDE_CLASS = "adw-shortcut-label-side";
|
|
12
|
+
/** `dim_label` — the separators, and the half the placeholder shares with them. */
|
|
13
|
+
export declare const SHORTCUT_LABEL_DIMMED_CLASS = "dimmed";
|
|
14
|
+
/** The disabled placeholder, so a consumer can style it without counting children. */
|
|
15
|
+
export declare const SHORTCUT_LABEL_DISABLED_CLASS = "adw-shortcut-label-disabled";
|
|
16
|
+
/** Carries the 6px GTK gets from `border-spacing` — every child but the first. */
|
|
17
|
+
export declare const SHORTCUT_LABEL_SPACED_CLASS = "adw-shortcut-label-spaced";
|
|
18
|
+
/** A node of the view tree: `box` is a horizontal `StackLayout`, `label` a `Label`. */
|
|
19
|
+
export interface ShortcutLabelViewSpec {
|
|
20
|
+
readonly kind: 'box' | 'label';
|
|
21
|
+
/** The view's `className`, space-separated as NS holds it. */
|
|
22
|
+
readonly className: string;
|
|
23
|
+
/** A label's text; `''` for a box. */
|
|
24
|
+
readonly text: string;
|
|
25
|
+
/** A box's children; empty for a label. */
|
|
26
|
+
readonly children: readonly ShortcutLabelViewSpec[];
|
|
27
|
+
/** `style.direction` to pin, or `null` to inherit it. */
|
|
28
|
+
readonly direction: 'ltr' | null;
|
|
29
|
+
}
|
|
30
|
+
/** What the widget rebuilds itself from. */
|
|
31
|
+
export interface ShortcutLabelRenderPlan {
|
|
32
|
+
/** The host's children, in visual order. */
|
|
33
|
+
readonly children: readonly ShortcutLabelViewSpec[];
|
|
34
|
+
/** The name a screen reader announces for the whole label. */
|
|
35
|
+
readonly accessibleLabel: string;
|
|
36
|
+
/** The fragment that failed to parse, or `null` — `children` is the partial result. */
|
|
37
|
+
readonly error: string | null;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Which modifier glyph set to draw — `#ifdef __APPLE__` upstream, and on
|
|
41
|
+
* NativeScript that is iOS. Split out so the choice is a value the suite can
|
|
42
|
+
* drive both sides of, rather than a branch reachable only on a device.
|
|
43
|
+
*/
|
|
44
|
+
export declare function shortcutLabelPlatform(isIos: boolean): 'default' | 'apple';
|
|
45
|
+
/**
|
|
46
|
+
* The direction the sequence arrow follows.
|
|
47
|
+
*
|
|
48
|
+
* NS's `direction` is an INHERITED CSS property that resolves to `null` until
|
|
49
|
+
* the view is attached, which is exactly when a widget built in its constructor
|
|
50
|
+
* would read it — so the null case is LTR and the widget re-reads on load.
|
|
51
|
+
*/
|
|
52
|
+
export declare function shortcutLabelDirection(direction: 'ltr' | 'rtl' | null | undefined): 'ltr' | 'rtl';
|
|
53
|
+
/** The view tree for one accelerator, with the accessible name and any parse error. */
|
|
54
|
+
export declare function shortcutLabelRenderPlan(accelerator: string, options?: ShortcutLabelOptions): ShortcutLabelRenderPlan;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/adwaita-nativescript",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.38.0",
|
|
4
4
|
"description": "Native Adwaita widgets for the NativeScript runtime — real NativeScript components (StackLayout/GridLayout/Switch/Label) styled like Libadwaita, not a webview",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "lib/esm/index.js",
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"design-system"
|
|
48
48
|
],
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@gjsify/adwaita-core": "^0.
|
|
51
|
-
"@gjsify/adwaita-fonts": "^0.
|
|
52
|
-
"@gjsify/adwaita-icons": "^0.
|
|
53
|
-
"@gjsify/native-platform": "^0.
|
|
50
|
+
"@gjsify/adwaita-core": "^0.38.0",
|
|
51
|
+
"@gjsify/adwaita-fonts": "^0.38.0",
|
|
52
|
+
"@gjsify/adwaita-icons": "^0.38.0",
|
|
53
|
+
"@gjsify/native-platform": "^0.38.0"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"@nativescript/core": "*"
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@gjsify/cli": "^0.
|
|
65
|
-
"@gjsify/unit": "^0.
|
|
64
|
+
"@gjsify/cli": "^0.38.0",
|
|
65
|
+
"@gjsify/unit": "^0.38.0",
|
|
66
66
|
"@types/node": "^25.9.2",
|
|
67
67
|
"typescript": "^6.0.3"
|
|
68
68
|
},
|
package/src/theme/adwaita.css
CHANGED
|
@@ -1371,6 +1371,66 @@ Page.adw-window {
|
|
|
1371
1371
|
margin: 0;
|
|
1372
1372
|
}
|
|
1373
1373
|
|
|
1374
|
+
/* ===== Shortcut label (keycaps) =====
|
|
1375
|
+
*
|
|
1376
|
+
* libadwaita: `_shortcuts-dialog.scss:33-58` — 6 spacing at BOTH levels, keycaps
|
|
1377
|
+
* filled with 10% of the current colour, an inset bottom edge, 6 radius, 6
|
|
1378
|
+
* padding, 20 minimum width, and `> .dimmed { padding: 6 0 }` so a separator
|
|
1379
|
+
* lines up with the caps beside it.
|
|
1380
|
+
*
|
|
1381
|
+
* Two substitutions the NS subset forces, both visible rather than silent:
|
|
1382
|
+
* - `color-mix(in srgb, currentColor 10%, transparent)` has no NS spelling, so
|
|
1383
|
+
* the fill is written out per scheme against that scheme's foreground;
|
|
1384
|
+
* - `box-shadow: inset 0 -2px` has none either (NS box-shadow is outer-only),
|
|
1385
|
+
* so the key's bottom edge is a 2 bottom BORDER. It occupies layout where the
|
|
1386
|
+
* shadow did not, which grows a keycap by 2 — the closest the subset gets.
|
|
1387
|
+
*/
|
|
1388
|
+
|
|
1389
|
+
.adw-shortcut-label {
|
|
1390
|
+
background-color: transparent;
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
/* The 6 that GTK gets from `border-spacing`, which puts it BETWEEN children
|
|
1394
|
+
* only. NS has no `gap` and the subset no `:first-child`, so the widget adds
|
|
1395
|
+
* this class to every child after the first. */
|
|
1396
|
+
.adw-shortcut-label-spaced {
|
|
1397
|
+
margin-left: 6;
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
/* Scoped, because `keycap` is libadwaita's generic name and this theme is one
|
|
1401
|
+
* flat file — an app with its own `.keycap` must not inherit these metrics. */
|
|
1402
|
+
.adw-shortcut-label .keycap {
|
|
1403
|
+
background-color: rgba(0, 0, 0, 0.08);
|
|
1404
|
+
border-radius: 6;
|
|
1405
|
+
border-bottom-width: 2;
|
|
1406
|
+
border-bottom-color: rgba(0, 0, 6, 0.07);
|
|
1407
|
+
padding: 6;
|
|
1408
|
+
min-width: 20;
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
.adw-shortcut-label-cap-text {
|
|
1412
|
+
color: rgba(0, 0, 0, 0.8);
|
|
1413
|
+
font-size: 14;
|
|
1414
|
+
text-align: center;
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
/* `%s <small><b>%s</b></small>` (adw-shortcut-label.c:195) — the L/R marker is
|
|
1418
|
+
* smaller and bold, and rides inside its keycap rather than beside it. */
|
|
1419
|
+
.adw-shortcut-label-side {
|
|
1420
|
+
color: rgba(0, 0, 0, 0.8);
|
|
1421
|
+
font-size: 11;
|
|
1422
|
+
font-weight: 700;
|
|
1423
|
+
margin-left: 2;
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1426
|
+
/* `dim_label` — `--dim-opacity: 55%` (`_colors.scss:319`). */
|
|
1427
|
+
.adw-shortcut-label .dimmed {
|
|
1428
|
+
color: rgba(0, 0, 0, 0.8);
|
|
1429
|
+
font-size: 14;
|
|
1430
|
+
opacity: 0.55;
|
|
1431
|
+
padding: 6 0 6 0;
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1374
1434
|
/* ===== Dark variant (.ns-dark on the page/root) ===== */
|
|
1375
1435
|
|
|
1376
1436
|
.ns-dark .adw-window,
|
|
@@ -1893,3 +1953,20 @@ Page.ns-dark.adw-window {
|
|
|
1893
1953
|
.ns-dark .adw-preferences-dialog-close {
|
|
1894
1954
|
color: rgba(255, 255, 255, 0.55);
|
|
1895
1955
|
}
|
|
1956
|
+
|
|
1957
|
+
/* ===== Dark: shortcut label =====
|
|
1958
|
+
* The fill is 10% of the foreground, which is `#ffffff` here rather than the
|
|
1959
|
+
* light scheme's near-black — the one reason these rules exist at all. The
|
|
1960
|
+
* bottom edge follows `--card-shade-color`, which darkens in the dark theme
|
|
1961
|
+
* (`_theme.scss:28`: 0.36 against the light scheme's 0.07). */
|
|
1962
|
+
|
|
1963
|
+
.ns-dark .adw-shortcut-label .keycap {
|
|
1964
|
+
background-color: rgba(255, 255, 255, 0.1);
|
|
1965
|
+
border-bottom-color: rgba(0, 0, 6, 0.36);
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
.ns-dark .adw-shortcut-label-cap-text,
|
|
1969
|
+
.ns-dark .adw-shortcut-label-side,
|
|
1970
|
+
.ns-dark .adw-shortcut-label .dimmed {
|
|
1971
|
+
color: #ffffff;
|
|
1972
|
+
}
|