@gjsify/adwaita-core 0.51.1 → 0.53.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/accent.js +1 -1
- package/lib/esm/appearance.js +2 -0
- package/lib/esm/apple-accent.js +1 -0
- package/lib/esm/box.js +1 -0
- package/lib/esm/conformance/accent.js +1 -1
- package/lib/esm/conformance/appearance.js +4 -0
- package/lib/esm/conformance/box.js +1 -0
- package/lib/esm/conformance/dialog.js +1 -1
- package/lib/esm/conformance/index.js +1 -1
- package/lib/esm/conformance/label.js +1 -0
- package/lib/esm/conformance/rows.js +1 -1
- package/lib/esm/conformance/shared-trees.js +1 -1
- package/lib/esm/conformance/tags.js +1 -0
- package/lib/esm/conformance/value-lists.js +1 -0
- package/lib/esm/dialog.js +1 -1
- package/lib/esm/gio-menu.js +1 -0
- package/lib/esm/gtk-adjustment.js +1 -0
- package/lib/esm/gtk-string-list.js +1 -0
- package/lib/esm/index.js +1 -1
- package/lib/esm/label.js +1 -0
- package/lib/esm/markup.js +4 -0
- package/lib/esm/rows.js +1 -1
- package/lib/esm/shortcut-format.js +1 -0
- package/lib/esm/source.js +1 -0
- package/lib/esm/tags.js +1 -0
- package/lib/esm/tokens.generated.js +1 -1
- package/lib/types/accent.d.ts +36 -0
- package/lib/types/appearance.d.ts +60 -0
- package/lib/types/appearance.spec.d.ts +2 -0
- package/lib/types/apple-accent.d.ts +18 -0
- package/lib/types/apple-accent.spec.d.ts +2 -0
- package/lib/types/box.d.ts +18 -0
- package/lib/types/box.spec.d.ts +2 -0
- package/lib/types/conformance/accent.d.ts +21 -0
- package/lib/types/conformance/appearance.d.ts +13 -0
- package/lib/types/conformance/box.d.ts +21 -0
- package/lib/types/conformance/dialog.d.ts +123 -1
- package/lib/types/conformance/index.d.ts +18 -8
- package/lib/types/conformance/label.d.ts +115 -0
- package/lib/types/conformance/list.d.ts +1 -1
- package/lib/types/conformance/rows.d.ts +29 -0
- package/lib/types/conformance/shared-trees.d.ts +155 -5
- package/lib/types/conformance/tags.d.ts +46 -0
- package/lib/types/conformance/value-lists.d.ts +19 -0
- package/lib/types/dialog.d.ts +163 -0
- package/lib/types/gio-menu.d.ts +46 -0
- package/lib/types/gtk-adjustment.d.ts +73 -0
- package/lib/types/gtk-adjustment.spec.d.ts +2 -0
- package/lib/types/gtk-string-list.d.ts +70 -0
- package/lib/types/gtk-string-list.spec.d.ts +2 -0
- package/lib/types/index.d.ts +21 -5
- package/lib/types/label.d.ts +135 -0
- package/lib/types/label.spec.d.ts +2 -0
- package/lib/types/markup.d.ts +14 -0
- package/lib/types/markup.spec.d.ts +2 -0
- package/lib/types/rows.d.ts +20 -0
- package/lib/types/shortcut-format.d.ts +25 -0
- package/lib/types/shortcut-format.spec.d.ts +2 -0
- package/lib/types/source.d.ts +94 -0
- package/lib/types/source.spec.d.ts +2 -0
- package/lib/types/tags.d.ts +48 -0
- package/lib/types/tags.spec.d.ts +2 -0
- package/lib/types/tokens.generated.d.ts +1 -1
- package/package.json +12 -4
package/lib/esm/accent.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./_virtual/_rolldown/runtime.js";const e=[`blue`,`teal`,`green`,`yellow`,`orange`,`red`,`pink`,`purple`,`slate`],t=`#ffffff`,n={blue:`#3584e4`,teal:`#2190a4`,green:`#3a944a`,yellow:`#c88800`,orange:`#ed5b00`,red:`#e62d42`,pink:`#d56199`,purple:`#9141ac`,slate:`#6f8396`},r=`blue`;function isAdwAccentColorName(t){return e.includes(t)}function parseHex(e){let t=/^#([0-9a-f]{6})$/i.exec(e.trim());if(!t)return null;let n=Number.parseInt(t[1],16);return[(n>>16&255)/255,(n>>8&255)/255,(n&255)/255]}function toHex(e,t,n){let channel=e=>Math.round(Math.min(1,Math.max(0,e))*255).toString(16).padStart(2,`0`);return`#${channel(e)}${channel(t)}${channel(n)}`}const toLinear=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4,fromLinear=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055;function linearToOklab(e,t,n){let r=Math.cbrt(.4122214708*e+.5363325363*t+.0514459929*n),i=Math.cbrt(.2119034982*e+.6806995451*t+.1073969566*n),a=Math.cbrt(.0883024619*e+.2817188376*t+.6299787005*n);return[.2104542553*r+.793617785*i-.0040720468*a,1.9779984951*r-2.428592205*i+.4505937099*a,.0259040371*r+.7827717662*i-.808675766*a]}function oklabToLinear(e,t,n){let r=(e+.3963377774*t+.2158037573*n)**3,i=(e-.1055613458*t-.0638541728*n)**3,a=(e-.0894841775*t-1.291485548*n)**3;return[4.0767416621*r-3.3077115913*i+.2309699292*a,-1.2684380046*r+2.6097574011*i-.3413193965*a,-.0041960863*r-.7034186147*i+1.707614701*a]}function adwaitaStandaloneColor(e,t){let n=parseHex(e);if(!n)return e;let[r,i,a]=linearToOklab(toLinear(n[0]),toLinear(n[1]),toLinear(n[2])),[o,s,c]=oklabToLinear(t?Math.max(r,.85):Math.min(r,.5),i,a);return toHex(fromLinear(o),fromLinear(s),fromLinear(c))}function adwaitaAccentBgColor(e){return n[e]}function adwaitaAccentColor(e,t){return adwaitaStandaloneColor(n[e],t)}let
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";const e=[`blue`,`teal`,`green`,`yellow`,`orange`,`red`,`pink`,`purple`,`slate`],t=`#ffffff`,n={blue:`#3584e4`,teal:`#2190a4`,green:`#3a944a`,yellow:`#c88800`,orange:`#ed5b00`,red:`#e62d42`,pink:`#d56199`,purple:`#9141ac`,slate:`#6f8396`},r=`blue`;function isAdwAccentColorName(t){return e.includes(t)}function parseHex(e){let t=/^#([0-9a-f]{6})$/i.exec(e.trim());if(!t)return null;let n=Number.parseInt(t[1],16);return[(n>>16&255)/255,(n>>8&255)/255,(n&255)/255]}const i=/^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)\s*(?:[,/]\s*[\d.]+%?\s*)?\)$/i;function parseAdwRgb(e){let t=e.trim(),n=/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(t);if(n)return parseAdwRgb(`#${n[1]}${n[1]}${n[2]}${n[2]}${n[3]}${n[3]}`);let r=parseHex(t);if(r)return{red:r[0],green:r[1],blue:r[2]};let a=i.exec(t);if(!a)return null;let o=[a[1],a[2],a[3]].map(Number);return o.some(e=>!Number.isFinite(e)||e<0||e>255)?null:{red:o[0]/255,green:o[1]/255,blue:o[2]/255}}function formatAdwRgb(e){return toHex(e.red,e.green,e.blue)}function toHex(e,t,n){let channel=e=>Math.round(Math.min(1,Math.max(0,e))*255).toString(16).padStart(2,`0`);return`#${channel(e)}${channel(t)}${channel(n)}`}const toLinear=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4,fromLinear=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055;function linearToOklab(e,t,n){let r=Math.cbrt(.4122214708*e+.5363325363*t+.0514459929*n),i=Math.cbrt(.2119034982*e+.6806995451*t+.1073969566*n),a=Math.cbrt(.0883024619*e+.2817188376*t+.6299787005*n);return[.2104542553*r+.793617785*i-.0040720468*a,1.9779984951*r-2.428592205*i+.4505937099*a,.0259040371*r+.7827717662*i-.808675766*a]}function oklabToLinear(e,t,n){let r=(e+.3963377774*t+.2158037573*n)**3,i=(e-.1055613458*t-.0638541728*n)**3,a=(e-.0894841775*t-1.291485548*n)**3;return[4.0767416621*r-3.3077115913*i+.2309699292*a,-1.2684380046*r+2.6097574011*i-.3413193965*a,-.0041960863*r-.7034186147*i+1.707614701*a]}function adwaitaStandaloneColor(e,t){let n=parseHex(e);if(!n)return e;let[r,i,a]=linearToOklab(toLinear(n[0]),toLinear(n[1]),toLinear(n[2])),[o,s,c]=oklabToLinear(t?Math.max(r,.85):Math.min(r,.5),i,a);return toHex(fromLinear(o),fromLinear(s),fromLinear(c))}function nearestAccent(e){let[,t,n]=linearToOklab(toLinear(e.red),toLinear(e.green),toLinear(e.blue)),r=Math.hypot(t,n),i=Math.atan2(n,t)*180/Math.PI%360;return i<0&&(i+=360),r<.04?`slate`:i>345?`pink`:i>280?`purple`:i>230?`blue`:i>175?`teal`:i>115?`green`:i>75.5?`yellow`:i>35?`orange`:i>10?`red`:`pink`}function adwaitaAccentBgColor(e){return n[e]}function adwaitaAccentColor(e,t){return adwaitaStandaloneColor(n[e],t)}let a=r;const o=new Set;function adwaitaAccent(){return a}function setAdwaitaAccent(e){if(!(e===a||!isAdwAccentColorName(e))){a=e;for(let e of[...o])try{e()}catch{}}}function onAdwaitaAccentChanged(e){return o.add(e),()=>{o.delete(e)}}export{n as ADW_ACCENT_BG_COLORS,e as ADW_ACCENT_COLOR_NAMES,t as ADW_ACCENT_FG_COLOR,r as ADW_DEFAULT_ACCENT_COLOR,adwaitaAccent,adwaitaAccentBgColor,adwaitaAccentColor,adwaitaStandaloneColor,formatAdwRgb,isAdwAccentColorName,nearestAccent,onAdwaitaAccentChanged,parseAdwRgb,setAdwaitaAccent};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";import{formatAdwRgb as e,isAdwAccentColorName as t,parseAdwRgb as n}from"./accent.js";const r=[`light`,`dark`,`no-preference`],i=`adw-accent`,a=`adw-color-scheme`,o=`system`;function isAdwSystemColorScheme(e){return typeof e==`string`&&r.includes(e)}function parseDesktopAppearance(r){if(typeof r!=`object`||!r)return{};let i=r,a=typeof i.accent==`string`&&t(i.accent)?i.accent:void 0,o=typeof i.accentRgb==`string`?n(i.accentRgb):null,s=isAdwSystemColorScheme(i.colorScheme)?i.colorScheme:void 0;return{...a?{accent:a}:{},...o?{accentRgb:e(o)}:{},...s?{colorScheme:s}:{}}}function renderAppearanceMeta(e){let{accent:t,colorScheme:n}=parseDesktopAppearance(e),r=[];return t&&r.push(`<meta name="${i}" content="${t}">`),n&&r.push(`<meta name="${a}" content="${n}">`),r.join(`
|
|
2
|
+
`)}function appearanceFromMeta(e){let n=e(i)?.trim().toLowerCase(),r=e(a)?.trim().toLowerCase();return{...n&&(n===`system`||t(n))?{accent:n}:{},...isAdwSystemColorScheme(r)?{colorScheme:r}:{}}}export{i as ADW_ACCENT_META,o as ADW_ACCENT_META_SYSTEM,a as ADW_COLOR_SCHEME_META,r as ADW_SYSTEM_COLOR_SCHEMES,appearanceFromMeta,isAdwSystemColorScheme,parseDesktopAppearance,renderAppearanceMeta};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";const e={[-1]:`slate`,0:`red`,1:`orange`,2:`yellow`,3:`green`,4:`blue`,5:`purple`,6:`pink`},t=`blue`;function adwAccentFromAppleAccentColor(n){if(n==null)return t;let r=String(n).trim();return/^-?\d+$/.test(r)?e[Number(r)]??null:null}export{e as APPLE_ACCENT_COLORS,t as APPLE_MULTICOLOR_ACCENT,adwAccentFromAppleAccentColor};
|
package/lib/esm/box.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";const e=0;function normalizeBoxSpacing(e){let t=typeof e==`number`?e:Number.parseFloat(String(e));return Number.isFinite(t)&&t>0?t:0}function normalizeBoxOrientation(e){return e===`vertical`?`vertical`:`horizontal`}export{e as DEFAULT_BOX_SPACING,normalizeBoxOrientation,normalizeBoxSpacing};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=[{name:`blue`,background:`#3584e4`,standaloneLight:`#0461be`,standaloneDark:`#81d0ff`},{name:`teal`,background:`#2190a4`,standaloneLight:`#007184`,standaloneDark:`#7bdff4`},{name:`green`,background:`#3a944a`,standaloneLight:`#15772e`,standaloneDark:`#8de698`},{name:`yellow`,background:`#c88800`,standaloneLight:`#905300`,standaloneDark:`#ffc057`},{name:`orange`,background:`#ed5b00`,standaloneLight:`#b62200`,standaloneDark:`#ff9c5b`},{name:`red`,background:`#e62d42`,standaloneLight:`#c00023`,standaloneDark:`#ff888c`},{name:`pink`,background:`#d56199`,standaloneLight:`#a2326c`,standaloneDark:`#ffa0d8`},{name:`purple`,background:`#9141ac`,standaloneLight:`#8939a4`,standaloneDark:`#fba7ff`},{name:`slate`,background:`#6f8396`,standaloneLight:`#526678`,standaloneDark:`#bbd1e5`}];export{e as ACCENT_COLOR_VECTORS};
|
|
1
|
+
const e=[{name:`blue`,background:`#3584e4`,standaloneLight:`#0461be`,standaloneDark:`#81d0ff`},{name:`teal`,background:`#2190a4`,standaloneLight:`#007184`,standaloneDark:`#7bdff4`},{name:`green`,background:`#3a944a`,standaloneLight:`#15772e`,standaloneDark:`#8de698`},{name:`yellow`,background:`#c88800`,standaloneLight:`#905300`,standaloneDark:`#ffc057`},{name:`orange`,background:`#ed5b00`,standaloneLight:`#b62200`,standaloneDark:`#ff9c5b`},{name:`red`,background:`#e62d42`,standaloneLight:`#c00023`,standaloneDark:`#ff888c`},{name:`pink`,background:`#d56199`,standaloneLight:`#a2326c`,standaloneDark:`#ffa0d8`},{name:`purple`,background:`#9141ac`,standaloneLight:`#8939a4`,standaloneDark:`#fba7ff`},{name:`slate`,background:`#6f8396`,standaloneLight:`#526678`,standaloneDark:`#bbd1e5`}],t=[{color:`#99c1f1`,expected:`blue`,source:`Icon palette — blue 1`},{color:`#62a0ea`,expected:`blue`,source:`Icon palette — blue 2`},{color:`#3584e4`,expected:`blue`,source:`Icon palette — blue 3`},{color:`#1c71d8`,expected:`blue`,source:`Icon palette — blue 4`},{color:`#1a5fb4`,expected:`blue`,source:`Icon palette — blue 5`},{color:`#8ff0a4`,expected:`green`,source:`Icon palette — green 1`},{color:`#57e389`,expected:`green`,source:`Icon palette — green 2`},{color:`#33d17a`,expected:`green`,source:`Icon palette — green 3`},{color:`#2ec27e`,expected:`green`,source:`Icon palette — green 4`},{color:`#26a269`,expected:`green`,source:`Icon palette — green 5`},{color:`#f9f06b`,expected:`yellow`,source:`Icon palette — yellow 1`},{color:`#f8e45c`,expected:`yellow`,source:`Icon palette — yellow 2`},{color:`#f6d32d`,expected:`yellow`,source:`Icon palette — yellow 3`},{color:`#f5c211`,expected:`yellow`,source:`Icon palette — yellow 4`},{color:`#e5a50a`,expected:`yellow`,source:`Icon palette — yellow 5`},{color:`#ffbe6f`,expected:`orange`,source:`Icon palette — orange 1`},{color:`#ffa348`,expected:`orange`,source:`Icon palette — orange 2`},{color:`#ff7800`,expected:`orange`,source:`Icon palette — orange 3`},{color:`#e66100`,expected:`orange`,source:`Icon palette — orange 4`},{color:`#c64600`,expected:`orange`,source:`Icon palette — orange 5`},{color:`#f66151`,expected:`red`,source:`Icon palette — red 1`},{color:`#ed333b`,expected:`red`,source:`Icon palette — red 2`},{color:`#e01b24`,expected:`red`,source:`Icon palette — red 3`},{color:`#c01c28`,expected:`red`,source:`Icon palette — red 4`},{color:`#a51d2d`,expected:`red`,source:`Icon palette — red 5`},{color:`#dc8add`,expected:`purple`,source:`Icon palette — purple 1`},{color:`#c061cb`,expected:`purple`,source:`Icon palette — purple 2`},{color:`#9141ac`,expected:`purple`,source:`Icon palette — purple 3`},{color:`#813d9c`,expected:`purple`,source:`Icon palette — purple 4`},{color:`#613583`,expected:`purple`,source:`Icon palette — purple 5`},{color:`#cdab8f`,expected:`orange`,source:`Icon palette — brown 1`},{color:`#b5835a`,expected:`orange`,source:`Icon palette — brown 2`},{color:`#986a44`,expected:`orange`,source:`Icon palette — brown 3`},{color:`#865e3c`,expected:`orange`,source:`Icon palette — brown 4`},{color:`#63452c`,expected:`orange`,source:`Icon palette — brown 5`},{color:`#ffffff`,expected:`slate`,source:`Icon palette — light 1`},{color:`#f6f5f4`,expected:`slate`,source:`Icon palette — light 2`},{color:`#deddda`,expected:`slate`,source:`Icon palette — light 3`},{color:`#c0bfbc`,expected:`slate`,source:`Icon palette — light 4`},{color:`#9a9996`,expected:`slate`,source:`Icon palette — light 5`},{color:`#77767b`,expected:`slate`,source:`Icon palette — dark 1`},{color:`#5e5c64`,expected:`slate`,source:`Icon palette — dark 2`},{color:`#3d3846`,expected:`slate`,source:`Icon palette — dark 3`},{color:`#241f31`,expected:`slate`,source:`Icon palette — dark 4`},{color:`#000000`,expected:`slate`,source:`Icon palette — dark 5`},{color:`#3689e6`,expected:`blue`,source:`elementary — blueberry`},{color:`#28bca3`,expected:`teal`,source:`elementary — mint`},{color:`#68b723`,expected:`green`,source:`elementary — lime`},{color:`#f9c440`,expected:`yellow`,source:`elementary — banana`},{color:`#ffa154`,expected:`orange`,source:`elementary — orange`},{color:`#ed5353`,expected:`red`,source:`elementary — strawberry`},{color:`#de3e80`,expected:`pink`,source:`elementary — bubblegum`},{color:`#a56de2`,expected:`purple`,source:`elementary — grape`},{color:`#8a715e`,expected:`orange`,source:`elementary — cocoa`},{color:`#667885`,expected:`slate`,source:`elementary — slate`},{color:`#ef75b8`,expected:`pink`,source:`KDE (light)`},{color:`#ef778a`,expected:`red`,source:`KDE (light)`},{color:`#ef9275`,expected:`orange`,source:`KDE (light)`},{color:`#eeda6b`,expected:`yellow`,source:`KDE (light)`},{color:`#77e066`,expected:`green`,source:`KDE (light)`},{color:`#4ce0cd`,expected:`teal`,source:`KDE (light)`},{color:`#77c6ef`,expected:`blue`,source:`KDE (light)`},{color:`#cd9ee6`,expected:`purple`,source:`KDE (light)`},{color:`#b299ec`,expected:`purple`,source:`KDE (light)`},{color:`#95979a`,expected:`slate`,source:`KDE (light)`},{color:`#ab3175`,expected:`pink`,source:`KDE (dark)`},{color:`#ab3347`,expected:`red`,source:`KDE (dark)`},{color:`#ab4f32`,expected:`orange`,source:`KDE (dark)`},{color:`#aa9729`,expected:`yellow`,source:`KDE (dark)`},{color:`#329d23`,expected:`green`,source:`KDE (dark)`},{color:`#089c8a`,expected:`teal`,source:`KDE (dark)`},{color:`#3282ac`,expected:`blue`,source:`KDE (dark)`},{color:`#885aa3`,expected:`purple`,source:`KDE (dark)`},{color:`#6e56a9`,expected:`purple`,source:`KDE (dark)`},{color:`#505357`,expected:`slate`,source:`KDE (dark)`},{color:`#e95420`,expected:`orange`,source:`Ubuntu`},{color:`#787859`,expected:`yellow`,source:`Ubuntu — bark`},{color:`#657b69`,expected:`slate`,source:`Ubuntu — sage`},{color:`#4b8501`,expected:`green`,source:`Ubuntu — olive`},{color:`#03875b`,expected:`green`,source:`Ubuntu — viridian`},{color:`#308280`,expected:`teal`,source:`Ubuntu — prussian green`},{color:`#0073e5`,expected:`blue`,source:`Ubuntu`},{color:`#7764d8`,expected:`purple`,source:`Ubuntu`},{color:`#b34cb3`,expected:`purple`,source:`Ubuntu — magenta`},{color:`#da3450`,expected:`red`,source:`Ubuntu`},{color:`#0c75de`,expected:`blue`,source:`Cinnamon`},{color:`#1f9ede`,expected:`blue`,source:`Cinnamon`},{color:`#199ca8`,expected:`teal`,source:`Cinnamon`},{color:`#35a854`,expected:`green`,source:`Cinnamon`},{color:`#c5a07c`,expected:`orange`,source:`Cinnamon`},{color:`#70737a`,expected:`slate`,source:`Cinnamon`},{color:`#ff7139`,expected:`orange`,source:`Cinnamon`},{color:`#e82127`,expected:`red`,source:`Cinnamon`},{color:`#e54980`,expected:`pink`,source:`Cinnamon`},{color:`#8c5dd9`,expected:`purple`,source:`Cinnamon`},{color:`#63d0df`,expected:`teal`,source:`COSMIC (light)`},{color:`#a1c0eb`,expected:`blue`,source:`COSMIC (light)`},{color:`#e79cfe`,expected:`purple`,source:`COSMIC (light)`},{color:`#ff9cb1`,expected:`pink`,source:`COSMIC (light)`},{color:`#fda1a0`,expected:`red`,source:`COSMIC (light)`},{color:`#ffad00`,expected:`orange`,source:`COSMIC (light)`},{color:`#f7e062`,expected:`yellow`,source:`COSMIC (light)`},{color:`#92cf9c`,expected:`green`,source:`COSMIC (light)`},{color:`#cabab4`,expected:`slate`,source:`COSMIC (light)`},{color:`#00525a`,expected:`teal`,source:`COSMIC (dark)`},{color:`#2e496d`,expected:`blue`,source:`COSMIC (dark)`},{color:`#68217c`,expected:`purple`,source:`COSMIC (dark)`},{color:`#86043a`,expected:`pink`,source:`COSMIC (dark)`},{color:`#78292e`,expected:`red`,source:`COSMIC (dark)`},{color:`#624000`,expected:`orange`,source:`COSMIC (dark)`},{color:`#534800`,expected:`yellow`,source:`COSMIC (dark)`},{color:`#185529`,expected:`green`,source:`COSMIC (dark)`},{color:`#554742`,expected:`slate`,source:`COSMIC (dark)`},{color:`#017bff`,expected:`blue`,source:`macOS`},{color:`#a550a7`,expected:`purple`,source:`macOS`},{color:`#f8509e`,expected:`pink`,source:`macOS`},{color:`#ff5257`,expected:`red`,source:`macOS`},{color:`#f7821a`,expected:`orange`,source:`macOS`},{color:`#ffc602`,expected:`yellow`,source:`macOS`},{color:`#62ba46`,expected:`green`,source:`macOS`},{color:`#8c8c8c`,expected:`slate`,source:`macOS`},{color:`#dbb861`,expected:`yellow`,source:`macOS M1 iMac colors`},{color:`#537d82`,expected:`teal`,source:`macOS M1 iMac colors`},{color:`#4e7189`,expected:`blue`,source:`macOS M1 iMac colors`},{color:`#b15358`,expected:`red`,source:`macOS M1 iMac colors`},{color:`#606289`,expected:`purple`,source:`macOS M1 iMac colors`},{color:`#d87d5b`,expected:`orange`,source:`macOS M1 iMac colors`}];export{e as ACCENT_COLOR_VECTORS,t as NEAREST_ACCENT_VECTORS};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const e=[{appearance:{accent:`purple`,accentRgb:`#9141ac`,colorScheme:`dark`},meta:`<meta name="adw-accent" content="purple">
|
|
2
|
+
<meta name="adw-color-scheme" content="dark">`,paints:`purple`,themeClass:`theme-dark`},{appearance:{accent:`teal`,colorScheme:`light`},meta:`<meta name="adw-accent" content="teal">
|
|
3
|
+
<meta name="adw-color-scheme" content="light">`,paints:`teal`,themeClass:`theme-light`},{appearance:{accent:`slate`,colorScheme:`no-preference`},meta:`<meta name="adw-accent" content="slate">
|
|
4
|
+
<meta name="adw-color-scheme" content="no-preference">`,paints:`slate`,themeClass:null},{appearance:{},meta:``,paints:null,themeClass:null},{appearance:{accent:`"><script>`,colorScheme:`dark`},meta:`<meta name="adw-color-scheme" content="dark">`,paints:null,themeClass:`theme-dark`}];export{e as APPEARANCE_HANDOFF_VECTORS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=[{value:null,spacing:0,rule:`an absent spacing is the default, 0`},{value:12,spacing:12,rule:`a plain positive value passes through`},{value:`12`,spacing:12,rule:`the string an attribute carries parses`},{value:-4,spacing:0,rule:`a negative value lands on the property minimum, 0`},{value:`-4`,spacing:0,rule:`a negative string is held at 0 too`},{value:`wide`,spacing:0,rule:`an unparseable value is the default — NaN never reaches a layout`}],t=[{value:null,orientation:`horizontal`,rule:`an absent orientation is the default, horizontal`},{value:`vertical`,orientation:`vertical`,rule:`the vertical nick stacks a column`},{value:`horizontal`,orientation:`horizontal`,rule:`the horizontal nick is a row`},{value:`VERTICAL`,orientation:`horizontal`,rule:`a string that is no nick leaves the default`}];export{t as BOX_ORIENTATION_VECTORS,e as BOX_SPACING_VECTORS};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";const e=[{source:`dimming`,open:!0,canClose:!0,outcome:`close`,rule:`a scrim click on an unlocked open sheet closes it`,derivedFrom:`released_cb, adw-bottom-sheet.c:236-240`},{source:`dimming`,open:!0,canClose:!1,outcome:`close-attempt`,rule:`a locked sheet SIGNALS the scrim click instead of swallowing it`,derivedFrom:`released_cb, adw-bottom-sheet.c:237-238`},{source:`dimming`,open:!1,canClose:!0,outcome:`ignored`,rule:`the scrim is not an event target while the sheet is closed, so nothing happens and nothing is signalled`,derivedFrom:`gtk_widget_set_can_target (self->dimming, open), adw-bottom-sheet.c:1148 + 1692`},{source:`dimming`,open:!1,canClose:!1,outcome:`ignored`,rule:`unreachable-while-closed beats the can-close signal — a locked CLOSED sheet says nothing`,derivedFrom:`adw-bottom-sheet.c:1692 (reachability) before released_cb:237`},{source:`escape`,open:!0,canClose:!0,outcome:`close`,rule:`Escape closes an unlocked open sheet`,derivedFrom:`maybe_close_cb, adw-bottom-sheet.c:393-395`},{source:`escape`,open:!0,canClose:!1,outcome:`close-attempt`,rule:`Escape on a locked sheet signals`,derivedFrom:`maybe_close_cb, adw-bottom-sheet.c:398`},{source:`escape`,open:!1,canClose:!0,outcome:`close-attempt`,rule:`THE SURPRISING ONE: Escape on a closed-but-focused sheet still signals, because the emit is the fallthrough for every case that is not (can_close && open). The sheet bin stays focusable while it shows a bottom bar. Both ports returned nothing here`,derivedFrom:`maybe_close_cb, adw-bottom-sheet.c:393-399`},{source:`escape`,open:!1,canClose:!1,outcome:`close-attempt`,rule:`the fallthrough covers this corner too`,derivedFrom:`maybe_close_cb, adw-bottom-sheet.c:398`},{source:`close-button`,open:!0,canClose:!0,outcome:`close`,rule:`the sheet.close action closes an unlocked open sheet`,derivedFrom:`sheet_close_cb, adw-bottom-sheet.c:377-380`},{source:`close-button`,open:!0,canClose:!1,outcome:`close-attempt`,rule:`can_close is tested FIRST, before the open check`,derivedFrom:`sheet_close_cb, adw-bottom-sheet.c:372-375`},{source:`close-button`,open:!1,canClose:!0,outcome:`delegate`,rule:`sheet.close on an already-closed sheet forwards the action to the PARENT (a sheet inside a sheet closes the outer one) rather than doing nothing`,derivedFrom:`sheet_close_cb, adw-bottom-sheet.c:382-385`},{source:`close-button`,open:!1,canClose:!1,outcome:`close-attempt`,rule:`a locked sheet never reaches the delegation branch — the can_close guard returns first`,derivedFrom:`sheet_close_cb, adw-bottom-sheet.c:372-375`},{source:`drag-handle`,open:!0,canClose:!0,outcome:`ignored`,rule:`THE SHARED MISTAKE: the drag handle is not an event target in libadwaita, so it closes nothing. Both ports had wired it to close the sheet`,derivedFrom:`gtk_widget_set_can_focus/can_target (self->drag_handle, FALSE), adw-bottom-sheet.c:1197-1198`},{source:`drag-handle`,open:!0,canClose:!1,outcome:`ignored`,rule:`not a can-close question at all — a decorative widget cannot attempt anything`,derivedFrom:`adw-bottom-sheet.c:1197-1198`},{source:`drag-handle`,open:!1,canClose:!0,outcome:`ignored`,rule:`its only behavioural role is elsewhere: allow_mouse_drag = show_drag_handle || bottom_bar`,derivedFrom:`adw-bottom-sheet.c:1197-1198 + update_swipe_tracker:455-457`},{source:`swipe`,open:!0,canClose:!0,outcome:`close`,rule:`a downward swipe past the midpoint closes an unlocked open sheet`,derivedFrom:`prepare_cb adw-bottom-sheet.c:1050 → end_swipe_cb adw-bottom-sheet.c:1099-1103`},{source:`swipe`,open:!0,canClose:!1,outcome:`ignored`,rule:`a locked sheet swallows the swipe SILENTLY — prepare_cb refuses to detect it, so unlike the scrim and Escape there is no close-attempt`,derivedFrom:`prepare_cb, adw-bottom-sheet.c:1050-1051`},{source:`swipe`,open:!1,canClose:!0,outcome:`ignored`,rule:`a swipe on a closed sheet is an OPEN gesture (gated by can-open), never a close one`,derivedFrom:`prepare_cb, adw-bottom-sheet.c:1052-1053`}];function runBottomSheetSteps(e,t){let n=[];for(let r of t)switch(r.kind){case`setOpen`:e.setOpen(r.open);break;case`setCanClose`:e.setCanClose(r.canClose);break;case`requestClose`:n.push(e.requestClose(r.source));break}return n}const t=[{steps:[],outcomes:[],notifications:[],callbacks:[],open:!1,hasBeenOpen:!1,rule:`a fresh sheet is closed, unlocked and has never been open`,derivedFrom:`adw_bottom_sheet_init adw-bottom-sheet.c:1125-1133 + the open pspec default at :852-855`},{steps:[{kind:`setOpen`,open:!0}],outcomes:[],notifications:[!0],callbacks:[],open:!0,hasBeenOpen:!0,rule:`opening notifies once and latches has_been_open`,derivedFrom:`adw-bottom-sheet.c:1684-1689 + the notify at :1777`},{steps:[{kind:`setOpen`,open:!0},{kind:`setOpen`,open:!0}],outcomes:[],notifications:[!0],callbacks:[],open:!0,hasBeenOpen:!0,rule:`setting the current value again is a no-op — no second notification`,derivedFrom:`adw-bottom-sheet.c:1672-1682`},{steps:[{kind:`setOpen`,open:!1}],outcomes:[],notifications:[],callbacks:[`closing`,`closed`],open:!1,hasBeenOpen:!1,rule:`THE REPLAY: closing a sheet that was NEVER open changes nothing and notifies nothing, but still fires closing+closed — this is how a dialog dismissed before it ever animated in gets torn down`,derivedFrom:`adw-bottom-sheet.c:1672-1682`},{steps:[{kind:`setOpen`,open:!0},{kind:`setOpen`,open:!1},{kind:`setOpen`,open:!1}],outcomes:[],notifications:[!0,!1],callbacks:[`closing`],open:!1,hasBeenOpen:!0,rule:`once has_been_open is set the replay branch is skipped: the third call fires NOTHING`,derivedFrom:`adw-bottom-sheet.c:1673 (the !has_been_open guard) + :1689`},{steps:[{kind:`setCanClose`,canClose:!1},{kind:`setOpen`,open:!0},{kind:`setOpen`,open:!1}],outcomes:[],notifications:[!0,!1],callbacks:[`closing`],open:!1,hasBeenOpen:!0,rule:`can-close does NOT gate the programmatic path — "Bottom sheet can still be closed using [property@BottomSheet:open]"`,derivedFrom:`adw_bottom_sheet_set_open adw-bottom-sheet.c:1661-1778 (never reads can_close) + the doc at :2071`},{steps:[{kind:`setOpen`,open:!0},{kind:`requestClose`,source:`dimming`}],outcomes:[`close`],notifications:[!0,!1],callbacks:[`closing`],open:!1,hasBeenOpen:!0,rule:`an accepted dismissal runs the same close path as the programmatic one`,derivedFrom:`released_cb adw-bottom-sheet.c:239 → adw_bottom_sheet_set_open`},{steps:[{kind:`setOpen`,open:!0},{kind:`requestClose`,source:`dimming`},{kind:`setOpen`,open:!0}],outcomes:[`close`],notifications:[!0,!1,!0],callbacks:[`closing`],open:!0,hasBeenOpen:!0,rule:`a dismissed sheet re-opens, and notifies a third time. Every other row stops at its first close, so a close path that latched (a listener torn down and never re-attached, a state that only travels one way) would leave the whole table green`,derivedFrom:`adw_bottom_sheet_set_open adw-bottom-sheet.c:1661-1778: has_been_open (:1673) gates only the teardown replay, never a later open`},{steps:[{kind:`setOpen`,open:!0},{kind:`setCanClose`,canClose:!1},{kind:`requestClose`,source:`dimming`},{kind:`requestClose`,source:`escape`},{kind:`requestClose`,source:`swipe`}],outcomes:[`close-attempt`,`close-attempt`,`ignored`],notifications:[!0],callbacks:[],open:!0,hasBeenOpen:!0,rule:`a locked sheet signals the scrim and Escape but swallows the swipe — three affordances, two different answers`,derivedFrom:`released_cb:237-238 + maybe_close_cb:398 + prepare_cb:1050-1051`},{steps:[{kind:`setOpen`,open:!0},{kind:`requestClose`,source:`drag-handle`}],outcomes:[`ignored`],notifications:[!0],callbacks:[],open:!0,hasBeenOpen:!0,rule:`REGRESSION PIN: tapping the drag handle leaves an open sheet open. Both ports closed it here`,derivedFrom:`adw-bottom-sheet.c:1197-1198`},{steps:[{kind:`setOpen`,open:!0},{kind:`setOpen`,open:!1},{kind:`requestClose`,source:`escape`},{kind:`requestClose`,source:`close-button`}],outcomes:[`close-attempt`,`delegate`],notifications:[!0,!1],callbacks:[`closing`],open:!1,hasBeenOpen:!0,rule:`REGRESSION PIN: on a closed sheet Escape still signals and sheet.close delegates upward — neither port did either`,derivedFrom:`maybe_close_cb:393-399 + sheet_close_cb:382-385`},{steps:[{kind:`setOpen`,open:!0},{kind:`setCanClose`,canClose:!1},{kind:`requestClose`,source:`escape`},{kind:`setCanClose`,canClose:!0},{kind:`requestClose`,source:`escape`}],outcomes:[`close-attempt`,`close`],notifications:[!0,!1],callbacks:[`closing`],open:!1,hasBeenOpen:!0,rule:`unlocking mid-life makes the same affordance start closing`,derivedFrom:`adw_bottom_sheet_set_can_close adw-bottom-sheet.c:2076-2091`}];export{e as BOTTOM_SHEET_CLOSE_VECTORS,t as BOTTOM_SHEET_PRESENTATION_VECTORS,runBottomSheetSteps};
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";const e=[{source:`dimming`,open:!0,canClose:!0,outcome:`close`,rule:`a scrim click on an unlocked open sheet closes it`,derivedFrom:`released_cb, adw-bottom-sheet.c:236-240`},{source:`dimming`,open:!0,canClose:!1,outcome:`close-attempt`,rule:`a locked sheet SIGNALS the scrim click instead of swallowing it`,derivedFrom:`released_cb, adw-bottom-sheet.c:237-238`},{source:`dimming`,open:!1,canClose:!0,outcome:`ignored`,rule:`the scrim is not an event target while the sheet is closed, so nothing happens and nothing is signalled`,derivedFrom:`gtk_widget_set_can_target (self->dimming, open), adw-bottom-sheet.c:1148 + 1692`},{source:`dimming`,open:!1,canClose:!1,outcome:`ignored`,rule:`unreachable-while-closed beats the can-close signal — a locked CLOSED sheet says nothing`,derivedFrom:`adw-bottom-sheet.c:1692 (reachability) before released_cb:237`},{source:`escape`,open:!0,canClose:!0,outcome:`close`,rule:`Escape closes an unlocked open sheet`,derivedFrom:`maybe_close_cb, adw-bottom-sheet.c:393-395`},{source:`escape`,open:!0,canClose:!1,outcome:`close-attempt`,rule:`Escape on a locked sheet signals`,derivedFrom:`maybe_close_cb, adw-bottom-sheet.c:398`},{source:`escape`,open:!1,canClose:!0,outcome:`close-attempt`,rule:`THE SURPRISING ONE: Escape on a closed-but-focused sheet still signals, because the emit is the fallthrough for every case that is not (can_close && open). The sheet bin stays focusable while it shows a bottom bar. Both ports returned nothing here`,derivedFrom:`maybe_close_cb, adw-bottom-sheet.c:393-399`},{source:`escape`,open:!1,canClose:!1,outcome:`close-attempt`,rule:`the fallthrough covers this corner too`,derivedFrom:`maybe_close_cb, adw-bottom-sheet.c:398`},{source:`close-button`,open:!0,canClose:!0,outcome:`close`,rule:`the sheet.close action closes an unlocked open sheet`,derivedFrom:`sheet_close_cb, adw-bottom-sheet.c:377-380`},{source:`close-button`,open:!0,canClose:!1,outcome:`close-attempt`,rule:`can_close is tested FIRST, before the open check`,derivedFrom:`sheet_close_cb, adw-bottom-sheet.c:372-375`},{source:`close-button`,open:!1,canClose:!0,outcome:`delegate`,rule:`sheet.close on an already-closed sheet forwards the action to the PARENT (a sheet inside a sheet closes the outer one) rather than doing nothing`,derivedFrom:`sheet_close_cb, adw-bottom-sheet.c:382-385`},{source:`close-button`,open:!1,canClose:!1,outcome:`close-attempt`,rule:`a locked sheet never reaches the delegation branch — the can_close guard returns first`,derivedFrom:`sheet_close_cb, adw-bottom-sheet.c:372-375`},{source:`drag-handle`,open:!0,canClose:!0,outcome:`ignored`,rule:`THE SHARED MISTAKE: the drag handle is not an event target in libadwaita, so it closes nothing. Both ports had wired it to close the sheet`,derivedFrom:`gtk_widget_set_can_focus/can_target (self->drag_handle, FALSE), adw-bottom-sheet.c:1197-1198`},{source:`drag-handle`,open:!0,canClose:!1,outcome:`ignored`,rule:`not a can-close question at all — a decorative widget cannot attempt anything`,derivedFrom:`adw-bottom-sheet.c:1197-1198`},{source:`drag-handle`,open:!1,canClose:!0,outcome:`ignored`,rule:`its only behavioural role is elsewhere: allow_mouse_drag = show_drag_handle || bottom_bar`,derivedFrom:`adw-bottom-sheet.c:1197-1198 + update_swipe_tracker:455-457`},{source:`swipe`,open:!0,canClose:!0,outcome:`close`,rule:`a downward swipe past the midpoint closes an unlocked open sheet`,derivedFrom:`prepare_cb adw-bottom-sheet.c:1050 → end_swipe_cb adw-bottom-sheet.c:1099-1103`},{source:`swipe`,open:!0,canClose:!1,outcome:`ignored`,rule:`a locked sheet swallows the swipe SILENTLY — prepare_cb refuses to detect it, so unlike the scrim and Escape there is no close-attempt`,derivedFrom:`prepare_cb, adw-bottom-sheet.c:1050-1051`},{source:`swipe`,open:!1,canClose:!0,outcome:`ignored`,rule:`a swipe on a closed sheet is an OPEN gesture (gated by can-open), never a close one`,derivedFrom:`prepare_cb, adw-bottom-sheet.c:1052-1053`}];function runBottomSheetSteps(e,t){let n=[];for(let r of t)switch(r.kind){case`setOpen`:e.setOpen(r.open);break;case`setCanClose`:e.setCanClose(r.canClose);break;case`requestClose`:n.push(e.requestClose(r.source));break}return n}const t=[{steps:[],outcomes:[],notifications:[],callbacks:[],open:!1,hasBeenOpen:!1,rule:`a fresh sheet is closed, unlocked and has never been open`,derivedFrom:`adw_bottom_sheet_init adw-bottom-sheet.c:1125-1133 + the open pspec default at :852-855`},{steps:[{kind:`setOpen`,open:!0}],outcomes:[],notifications:[!0],callbacks:[],open:!0,hasBeenOpen:!0,rule:`opening notifies once and latches has_been_open`,derivedFrom:`adw-bottom-sheet.c:1684-1689 + the notify at :1777`},{steps:[{kind:`setOpen`,open:!0},{kind:`setOpen`,open:!0}],outcomes:[],notifications:[!0],callbacks:[],open:!0,hasBeenOpen:!0,rule:`setting the current value again is a no-op — no second notification`,derivedFrom:`adw-bottom-sheet.c:1672-1682`},{steps:[{kind:`setOpen`,open:!1}],outcomes:[],notifications:[],callbacks:[`closing`,`closed`],open:!1,hasBeenOpen:!1,rule:`THE REPLAY: closing a sheet that was NEVER open changes nothing and notifies nothing, but still fires closing+closed — this is how a dialog dismissed before it ever animated in gets torn down`,derivedFrom:`adw-bottom-sheet.c:1672-1682`},{steps:[{kind:`setOpen`,open:!0},{kind:`setOpen`,open:!1},{kind:`setOpen`,open:!1}],outcomes:[],notifications:[!0,!1],callbacks:[`closing`],open:!1,hasBeenOpen:!0,rule:`once has_been_open is set the replay branch is skipped: the third call fires NOTHING`,derivedFrom:`adw-bottom-sheet.c:1673 (the !has_been_open guard) + :1689`},{steps:[{kind:`setCanClose`,canClose:!1},{kind:`setOpen`,open:!0},{kind:`setOpen`,open:!1}],outcomes:[],notifications:[!0,!1],callbacks:[`closing`],open:!1,hasBeenOpen:!0,rule:`can-close does NOT gate the programmatic path — "Bottom sheet can still be closed using [property@BottomSheet:open]"`,derivedFrom:`adw_bottom_sheet_set_open adw-bottom-sheet.c:1661-1778 (never reads can_close) + the doc at :2071`},{steps:[{kind:`setOpen`,open:!0},{kind:`requestClose`,source:`dimming`}],outcomes:[`close`],notifications:[!0,!1],callbacks:[`closing`],open:!1,hasBeenOpen:!0,rule:`an accepted dismissal runs the same close path as the programmatic one`,derivedFrom:`released_cb adw-bottom-sheet.c:239 → adw_bottom_sheet_set_open`},{steps:[{kind:`setOpen`,open:!0},{kind:`requestClose`,source:`dimming`},{kind:`setOpen`,open:!0}],outcomes:[`close`],notifications:[!0,!1,!0],callbacks:[`closing`],open:!0,hasBeenOpen:!0,rule:`a dismissed sheet re-opens, and notifies a third time. Every other row stops at its first close, so a close path that latched (a listener torn down and never re-attached, a state that only travels one way) would leave the whole table green`,derivedFrom:`adw_bottom_sheet_set_open adw-bottom-sheet.c:1661-1778: has_been_open (:1673) gates only the teardown replay, never a later open`},{steps:[{kind:`setOpen`,open:!0},{kind:`setCanClose`,canClose:!1},{kind:`requestClose`,source:`dimming`},{kind:`requestClose`,source:`escape`},{kind:`requestClose`,source:`swipe`}],outcomes:[`close-attempt`,`close-attempt`,`ignored`],notifications:[!0],callbacks:[],open:!0,hasBeenOpen:!0,rule:`a locked sheet signals the scrim and Escape but swallows the swipe — three affordances, two different answers`,derivedFrom:`released_cb:237-238 + maybe_close_cb:398 + prepare_cb:1050-1051`},{steps:[{kind:`setOpen`,open:!0},{kind:`requestClose`,source:`drag-handle`}],outcomes:[`ignored`],notifications:[!0],callbacks:[],open:!0,hasBeenOpen:!0,rule:`REGRESSION PIN: tapping the drag handle leaves an open sheet open. Both ports closed it here`,derivedFrom:`adw-bottom-sheet.c:1197-1198`},{steps:[{kind:`setOpen`,open:!0},{kind:`setOpen`,open:!1},{kind:`requestClose`,source:`escape`},{kind:`requestClose`,source:`close-button`}],outcomes:[`close-attempt`,`delegate`],notifications:[!0,!1],callbacks:[`closing`],open:!1,hasBeenOpen:!0,rule:`REGRESSION PIN: on a closed sheet Escape still signals and sheet.close delegates upward — neither port did either`,derivedFrom:`maybe_close_cb:393-399 + sheet_close_cb:382-385`},{steps:[{kind:`setOpen`,open:!0},{kind:`setCanClose`,canClose:!1},{kind:`requestClose`,source:`escape`},{kind:`setCanClose`,canClose:!0},{kind:`requestClose`,source:`escape`}],outcomes:[`close-attempt`,`close`],notifications:[!0,!1],callbacks:[`closing`],open:!1,hasBeenOpen:!0,rule:`unlocking mid-life makes the same affordance start closing`,derivedFrom:`adw_bottom_sheet_set_can_close adw-bottom-sheet.c:2076-2091`}],n=[{source:`bottom-bar`,open:!1,canOpen:!0,hasBottomBar:!0,revealBottomBar:!0,outcome:`open`,rule:`THE AFFORDANCE: clicking the bottom bar of a closed, unlocked sheet opens it. This is the row both ports were missing, and with it the only way in`,derivedFrom:`bottom_bar_released_cb, adw-bottom-sheet.c:279-280 (and bottom_bar_clicked_cb:404-406 for the keyboard door)`},{source:`bottom-bar`,open:!1,canOpen:!1,hasBottomBar:!0,revealBottomBar:!0,outcome:`ignored`,rule:`can-open off refuses the click, and refuses it SILENTLY — there is no open-attempt signal to answer with`,derivedFrom:`bottom_bar_released_cb, adw-bottom-sheet.c:269-272`},{source:`bottom-bar`,open:!1,canOpen:!0,hasBottomBar:!1,revealBottomBar:!0,outcome:`ignored`,rule:`NO BAR, NO DOOR: with bottom-bar unset the stack never shows the bin, so can-open has nothing to gate — upstream says so in the property docs`,derivedFrom:`show_bottom_bar adw-bottom-sheet.c:294-295 + set_bottom_bar:1615-1616 + the can-open doc at :2013`},{source:`bottom-bar`,open:!1,canOpen:!1,hasBottomBar:!1,revealBottomBar:!0,outcome:`ignored`,rule:`both gates shut is still one answer`,derivedFrom:`adw-bottom-sheet.c:269-272 + :294-295`},{source:`bottom-bar`,open:!1,canOpen:!0,hasBottomBar:!0,revealBottomBar:!1,outcome:`ignored`,rule:`a bar that is not revealed is off screen, so there is nothing to click — the sheet bin is child-invisible at rest`,derivedFrom:`reveal_animation_done_cb, adw-bottom-sheet.c:362-364 (same expression at :341-343)`},{source:`bottom-bar`,open:!0,canOpen:!0,hasBottomBar:!0,revealBottomBar:!0,outcome:`ignored`,rule:`an open sheet shows the sheet page, not the bar: the affordance is not on screen to be clicked twice`,derivedFrom:`adw_bottom_sheet_set_open, adw-bottom-sheet.c:1701-1702`},{source:`swipe`,open:!1,canOpen:!0,hasBottomBar:!0,revealBottomBar:!0,outcome:`open`,rule:`an upward swipe off the bar opens the sheet — the tracker arm that is live precisely when a bar exists`,derivedFrom:`update_swipe_tracker adw-bottom-sheet.c:451-453 + prepare_cb:1052-1053`},{source:`swipe`,open:!1,canOpen:!1,hasBottomBar:!0,revealBottomBar:!0,outcome:`ignored`,rule:`prepare_cb refuses to detect an opening swipe on a sheet that may not be opened`,derivedFrom:`prepare_cb, adw-bottom-sheet.c:1052-1053`},{source:`swipe`,open:!1,canOpen:!0,hasBottomBar:!1,revealBottomBar:!0,outcome:`ignored`,rule:`THE QUIET ONE: with no bar the tracker may still be enabled by can-close, but the swipe AREA is a zero-height rectangle at progress 0, so no drag ever starts. can-open cannot rescue it`,derivedFrom:`get_swipe_area, adw-bottom-sheet.c:1412-1433 (bottom_bar_height = 0, so rect.height = 0)`},{source:`swipe`,open:!0,canOpen:!0,hasBottomBar:!0,revealBottomBar:!0,outcome:`ignored`,rule:`a gesture on an OPEN sheet is a dismissal, handled by the close gate — never a second open`,derivedFrom:`prepare_cb, adw-bottom-sheet.c:1050-1051`},{source:`drag-handle`,open:!1,canOpen:!0,hasBottomBar:!0,revealBottomBar:!0,outcome:`ignored`,rule:`REGRESSION PIN: the handle is untargetable, so it is not the way in either. Making it the open affordance to compensate for a missing bottom bar would contradict BOTTOM_SHEET_CLOSE_VECTORS, which pins the same widget as inert on the way out`,derivedFrom:`gtk_widget_set_can_focus/can_target (self->drag_handle, FALSE), adw-bottom-sheet.c:1197-1198`},{source:`drag-handle`,open:!1,canOpen:!0,hasBottomBar:!1,revealBottomBar:!0,outcome:`ignored`,rule:`and it is not a fallback for a sheet without a bar — a decorative widget has no state in which it acts`,derivedFrom:`adw-bottom-sheet.c:1196-1198`}],r=[{state:{canOpen:!0,canClose:!1,hasBottomBar:!1,showDragHandle:!0},config:{enabled:!1,allowMouseDrag:!0,lowerOvershoot:!1},rule:"THE CONJUNCT: can-open alone does not enable the tracker — the `&& bottom_bar != NULL` beside it is why a barless sheet is unopenable by gesture",derivedFrom:`update_swipe_tracker, adw-bottom-sheet.c:451-453`},{state:{canOpen:!0,canClose:!1,hasBottomBar:!0,showDragHandle:!0},config:{enabled:!0,allowMouseDrag:!0,lowerOvershoot:!0},rule:`with a bar, can-open enables the tracker on its own — a sheet that can be opened but never dismissed by gesture`,derivedFrom:`adw-bottom-sheet.c:451-453 + :458-459`},{state:{canOpen:!1,canClose:!0,hasBottomBar:!1,showDragHandle:!0},config:{enabled:!0,allowMouseDrag:!0,lowerOvershoot:!1},rule:`the other arm: can-close enables it with no bar at all, which is the barless sheet every port shipped — a tracker that exists only to CLOSE`,derivedFrom:`adw-bottom-sheet.c:451-453`},{state:{canOpen:!1,canClose:!1,hasBottomBar:!0,showDragHandle:!0},config:{enabled:!1,allowMouseDrag:!0,lowerOvershoot:!0},rule:`both gates shut disables the tracker even though a bar exists — presence of a bar is necessary, never sufficient`,derivedFrom:`adw-bottom-sheet.c:451-453`},{state:{canOpen:!0,canClose:!0,hasBottomBar:!0,showDragHandle:!1},config:{enabled:!0,allowMouseDrag:!0,lowerOvershoot:!0},rule:`a bar substitutes for the drag handle as the thing a MOUSE may drag — the handle is decorative, but it is what allow_mouse_drag keys on when there is no bar`,derivedFrom:`adw-bottom-sheet.c:455-457`},{state:{canOpen:!0,canClose:!0,hasBottomBar:!1,showDragHandle:!1},config:{enabled:!0,allowMouseDrag:!1,lowerOvershoot:!1},rule:`no handle and no bar leaves a touch-only tracker: enabled by can-close, but nothing on screen invites a mouse to drag it`,derivedFrom:`adw-bottom-sheet.c:455-459`}];function runBottomSheetBottomBarSteps(e,t){let n=[];for(let r of t)switch(r.kind){case`setBottomBar`:e.setBottomBar(r.present);break;case`setCanOpen`:e.setCanOpen(r.canOpen);break;case`setRevealBottomBar`:e.setRevealBottomBar(r.reveal);break;case`setModal`:e.setModal(r.modal);break;case`setOpen`:e.setOpen(r.open);break;case`requestOpen`:n.push(e.requestOpen(r.source));break}return n}const i=[{steps:[],outcomes:[],notifications:[],open:!1,chrome:{layer:`sheet`,surfaceVisible:!1,bottomBarInert:!1,dimmed:!1},rule:`a fresh sheet has NO bottom bar and is off screen — but can-open already defaults TRUE, so the gate is open and only the bar is missing`,derivedFrom:`adw_bottom_sheet_init adw-bottom-sheet.c:1129-1132 + the can-open pspec default at :940-943`},{steps:[{kind:`setBottomBar`,present:!0}],outcomes:[],notifications:[],open:!1,chrome:{layer:`bottom-bar`,surfaceVisible:!0,bottomBarInert:!1,dimmed:!1},rule:`adopting a bar puts the sheet bin on screen showing the BAR, without opening anything and without notifying`,derivedFrom:`adw_bottom_sheet_set_bottom_bar adw-bottom-sheet.c:1613-1627`},{steps:[{kind:`setBottomBar`,present:!0},{kind:`requestOpen`,source:`bottom-bar`}],outcomes:[`open`],notifications:[!0],open:!0,chrome:{layer:`sheet`,surfaceVisible:!0,bottomBarInert:!1,dimmed:!0},rule:`THE WHOLE POINT: the bar is clicked, the sheet opens, and the bin morphs from bar to sheet`,derivedFrom:`bottom_bar_released_cb adw-bottom-sheet.c:279-280 -> set_open:1701-1702`},{steps:[{kind:`requestOpen`,source:`bottom-bar`}],outcomes:[`ignored`],notifications:[],open:!1,chrome:{layer:`sheet`,surfaceVisible:!1,bottomBarInert:!1,dimmed:!1},rule:"REGRESSION PIN: with no bar there is no affordance, and the sheet stays unreachable. This is the state both ports shipped in, and the reason a consumer reached for `open = true` beside the widget",derivedFrom:`adw-bottom-sheet.c:294-295 + the can-open doc at :2013`},{steps:[{kind:`setBottomBar`,present:!0},{kind:`setCanOpen`,canOpen:!1},{kind:`requestOpen`,source:`bottom-bar`},{kind:`requestOpen`,source:`swipe`}],outcomes:[`ignored`,`ignored`],notifications:[],open:!1,chrome:{layer:`bottom-bar`,surfaceVisible:!0,bottomBarInert:!0,dimmed:!1},rule:`a locked-open bar STAYS ON SCREEN and merely looks inert — unlike can-close, which has a signal, can-open just refuses`,derivedFrom:`adw_bottom_sheet_set_can_open adw-bottom-sheet.c:2031-2038`},{steps:[{kind:`setBottomBar`,present:!0},{kind:`setCanOpen`,canOpen:!1},{kind:`requestOpen`,source:`bottom-bar`},{kind:`setCanOpen`,canOpen:!0},{kind:`requestOpen`,source:`bottom-bar`}],outcomes:[`ignored`,`open`],notifications:[!0],open:!0,chrome:{layer:`sheet`,surfaceVisible:!0,bottomBarInert:!1,dimmed:!0},rule:`unlocking mid-life makes the same affordance start working, and drops the inert class with it`,derivedFrom:`adw-bottom-sheet.c:2028-2040`},{steps:[{kind:`setBottomBar`,present:!0},{kind:`setRevealBottomBar`,reveal:!1},{kind:`requestOpen`,source:`bottom-bar`}],outcomes:[`ignored`],notifications:[],open:!1,chrome:{layer:`bottom-bar`,surfaceVisible:!1,bottomBarInert:!1,dimmed:!1},rule:"hiding the bar hides the whole bin, so the click cannot land — note the layer is still `bottom-bar`: it is the SURFACE that is gone, not the choice of child",derivedFrom:`adw_bottom_sheet_set_reveal_bottom_bar adw-bottom-sheet.c:2177-2191 + reveal_animation_done_cb:362-364`},{steps:[{kind:`setBottomBar`,present:!0},{kind:`setRevealBottomBar`,reveal:!1},{kind:`setOpen`,open:!0}],outcomes:[],notifications:[!0],open:!0,chrome:{layer:`sheet`,surfaceVisible:!0,bottomBarInert:!1,dimmed:!0},rule:`reveal-bottom-bar governs the BAR, never the sheet: an owner opens a sheet whose bar is hidden and the sheet still shows`,derivedFrom:`adw_bottom_sheet_set_open adw-bottom-sheet.c:1686 (child_visible TRUE unconditionally on open)`},{steps:[{kind:`setBottomBar`,present:!0},{kind:`requestOpen`,source:`bottom-bar`},{kind:`setOpen`,open:!1},{kind:`requestOpen`,source:`bottom-bar`}],outcomes:[`open`,`open`],notifications:[!0,!1,!0],open:!0,chrome:{layer:`sheet`,surfaceVisible:!0,bottomBarInert:!1,dimmed:!0},rule:`the bar comes BACK when the sheet closes and opens it again — a port that switched to the sheet page once and never switched back would leave every row above green and the second click dead`,derivedFrom:`adw_bottom_sheet_set_open adw-bottom-sheet.c:1701-1705 (show_bottom_bar TRUE on the closing side)`},{steps:[{kind:`setBottomBar`,present:!0},{kind:`setBottomBar`,present:!1},{kind:`requestOpen`,source:`bottom-bar`}],outcomes:[`ignored`],notifications:[],open:!1,chrome:{layer:`sheet`,surfaceVisible:!1,bottomBarInert:!1,dimmed:!1},rule:`taking the bar away takes the affordance with it — presence is state, not a one-way latch`,derivedFrom:`adw_bottom_sheet_set_bottom_bar adw-bottom-sheet.c:1610-1629`},{steps:[{kind:`setBottomBar`,present:!0},{kind:`requestOpen`,source:`drag-handle`},{kind:`requestOpen`,source:`swipe`}],outcomes:[`ignored`,`open`],notifications:[!0],open:!0,chrome:{layer:`sheet`,surfaceVisible:!0,bottomBarInert:!1,dimmed:!0},rule:`the handle stays inert even where an open affordance exists beside it, and the swipe is that affordance`,derivedFrom:`adw-bottom-sheet.c:1197-1198 + prepare_cb:1052-1053`},{steps:[{kind:`setModal`,modal:!1},{kind:`setOpen`,open:!0}],outcomes:[],notifications:[!0],open:!0,chrome:{layer:`sheet`,surfaceVisible:!0,bottomBarInert:!1,dimmed:!1},rule:`a non-modal sheet opens over content that stays undimmed and reachable — there is no scrim to click`,derivedFrom:`adw_bottom_sheet_set_open adw-bottom-sheet.c:1686-1687 (child_visible = modal)`},{steps:[{kind:`setOpen`,open:!0},{kind:`setModal`,modal:!1}],outcomes:[],notifications:[!0],open:!0,chrome:{layer:`sheet`,surfaceVisible:!0,bottomBarInert:!1,dimmed:!1},rule:`turning modal off while the sheet is up takes the dimming away at once, without closing or notifying`,derivedFrom:`adw_bottom_sheet_set_modal adw-bottom-sheet.c:1981-1982`},{steps:[{kind:`setModal`,modal:!1},{kind:`setModal`,modal:!0}],outcomes:[],notifications:[],open:!1,chrome:{layer:`sheet`,surfaceVisible:!1,bottomBarInert:!1,dimmed:!1},rule:`modal alone never dims: a closed sheet has nothing to dim for, whatever modal says`,derivedFrom:`adw-bottom-sheet.c:1981 (only while progress is not 0) + open_animation_done_cb:338-339`}];export{i as BOTTOM_SHEET_BOTTOM_BAR_VECTORS,e as BOTTOM_SHEET_CLOSE_VECTORS,n as BOTTOM_SHEET_OPEN_VECTORS,t as BOTTOM_SHEET_PRESENTATION_VECTORS,r as BOTTOM_SHEET_SWIPE_TRACKER_VECTORS,runBottomSheetBottomBarSteps,runBottomSheetSteps};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ABOUT_DIALOG_CREDITS_LEGAL_VECTORS as e,ABOUT_DIALOG_DETAILS_VECTORS as t,ABOUT_DIALOG_HEADER_VECTORS as n,ABOUT_DIALOG_LABEL_VECTORS as r,ABOUT_DIALOG_SUPPORT_VECTORS as i,CREDITS_SECTIONS_VECTORS as a,CREDIT_PERSON_VECTORS as o,LEGAL_SECTION_VECTORS as s,LICENSE_INFO_VECTORS as c,LICENSE_SETTER_VECTORS as l,LICENSE_SPDX_VECTORS as u,LICENSE_TEXT_VECTORS as d,TRANSLATOR_CREDITS_VECTORS as f}from"./about-dialog.js";import{ACCENT_COLOR_VECTORS as p}from"./accent.js";import{ACTION_ROW_ACTIVATION_VECTORS as m,BUTTON_ROW_ACTIVATABLE_VECTORS as h,BUTTON_ROW_ICON_VECTORS as g,LABEL_VISIBILITY_VECTORS as _,SWITCH_ROW_NOTIFY_VECTORS as v,WINDOW_TITLE_VECTORS as y}from"./action-row.js";import{ADJUSTMENT_AUTHORED_VECTORS as b,ADJUSTMENT_PARSE_VECTORS as x,ADJUSTMENT_SNAP_VECTORS as S}from"./adjustment.js";import{AVATAR_COLOR_VECTORS as C,AVATAR_FONT_SIZE_VECTORS as w,AVATAR_ICON_SIZE_VECTORS as T,AVATAR_INITIALS_VECTORS as E,AVATAR_MODE_VECTORS as D}from"./avatar.js";import{BANNER_BUTTON_STYLE_PARSE_VECTORS as O,BANNER_BUTTON_STYLE_VECTORS as k,BANNER_BUTTON_TEXT_VECTORS as A,BANNER_BUTTON_VISIBLE_VECTORS as j,BANNER_DEFAULT_VECTORS as M}from"./banner.js";import{BREAKPOINT_PICK_VECTORS as N,BREAKPOINT_TRANSITION_VECTORS as P}from"./breakpoint-bin.js";import{BUTTON_CONTENT_DEFAULT_VECTORS as F,BUTTON_CONTENT_ELLIPSIZE_VECTORS as I,BUTTON_CONTENT_ICON_VECTORS as L,BUTTON_CONTENT_LABEL_VECTORS as R,BUTTON_CONTENT_STYLE_TARGET_VECTORS as z,BUTTON_CONTENT_TEXT_VECTORS as B}from"./button-content.js";import{BUTTON_STYLE_CLASS_VECTORS as V}from"./button.js";import{CAROUSEL_CLAMP_VECTORS as H,CAROUSEL_NAVIGATE_VECTORS as U,CAROUSEL_PAGE_ALLOCATION_VECTORS as W,CAROUSEL_PAGE_AT_POSITION_VECTORS as G,CAROUSEL_PAGE_LIST_VECTORS as K,CAROUSEL_PROPERTY_DEFAULT_VECTORS as q,CAROUSEL_RANGE_VECTORS as J,CAROUSEL_REORDER_SHIFT_VECTORS as Y,CAROUSEL_REVEAL_VECTORS as X,CAROUSEL_SIZES_FROM_SNAP_POINTS_VECTORS as Z,CAROUSEL_SNAP_POINT_VECTORS as Q,CAROUSEL_WHEEL_LOCKOUT_VECTORS as $,CAROUSEL_WHEEL_VECTORS as ee}from"./carousel.js";import{RADIO_GROUP_VECTORS as te}from"./checks.js";import{CLAMP_ALLOCATE_VECTORS as ne,CLAMP_CHILD_SIZE_VECTORS as re,CLAMP_PROPERTY_VECTORS as ie,CLAMP_SIZE_FROM_CHILD_VECTORS as ae,CLAMP_THRESHOLD_VECTORS as oe,SPINNER_GEOMETRY_VECTORS as se,SPINNER_SIZE_VECTORS as ce,TOOLBAR_VIEW_ALLOCATE_VECTORS as le,TOOLBAR_VIEW_CLASS_VECTORS as ue,TOOLBAR_VIEW_CONTENT_FOR_SIZE_VECTORS as de,TOOLBAR_VIEW_MEASURE_VECTORS as fe}from"./chrome.js";import{DATA_GRID_CELL_TEXT_VECTORS as pe,DATA_GRID_COLUMN_CLASS_VECTORS as me,DATA_GRID_COLUMN_NORMALIZE_VECTORS as he,DATA_GRID_INTERACTIVE_VECTORS as ge,DATA_GRID_TRACK_VECTORS as _e,DATA_GRID_VARIANT_VECTORS as ve}from"./data-grid.js";import{BOTTOM_SHEET_CLOSE_VECTORS as ye,BOTTOM_SHEET_PRESENTATION_VECTORS as be,runBottomSheetSteps as xe}from"./dialog.js";import{ENTRY_MAX_LENGTH_VECTORS as Se,ENTRY_ROW_ACTIVATION_VECTORS as Ce,ENTRY_ROW_GUARD_VECTORS as we,ENTRY_ROW_STATE_VECTORS as Te,ENTRY_TEXT_LENGTH_VECTORS as Ee,PASSWORD_ENTRY_ROW_VECTORS as De,PASSWORD_REVEAL_GUARD_VECTORS as Oe}from"./entry-row.js";import{HEADER_BAR_PACK_VECTORS as ke,HEADER_BAR_TITLE_SOURCE_VECTORS as Ae,HEADER_BAR_TITLE_WIDGET_VECTORS as je}from"./header-bar.js";import{COMBO_CHOOSER_VECTORS as Me,COMBO_SELECTION_VECTORS as Ne}from"./rows.js";import{VIEW_STACK_ICON_NAME_VECTORS as Pe,VIEW_STACK_PAGE_VECTORS as Fe,VIEW_STACK_VECTORS as Ie}from"./view-stack.js";import{NAVIGATION_VIEW_VECTORS as Le,collectNavigationState as Re,navigationEventLog as ze,runNavigationSteps as Be}from"./navigation-view.js";import{SIDEBAR_ACTIVATION_VECTORS as Ve,SIDEBAR_CLAMP_VECTORS as He,SIDEBAR_FILTER_VECTORS as Ue,SIDEBAR_ITEMS_CHANGED_VECTORS as We,SIDEBAR_ITEM_FLAG_VECTORS as Ge,SIDEBAR_MODEL_VECTORS as Ke,SIDEBAR_MODE_VECTORS as qe}from"./sidebar.js";import{ADW_LENGTH_UNIT_VECTORS as Je,GLIB_CLAMP_VECTORS as Ye,NATURAL_SIDEBAR_WIDTH_VECTORS as Xe,NAVIGATION_ACTION_VECTORS as Ze,NAVIGATION_SPLIT_VIEW_LAYOUT_VECTORS as Qe,NAVIGATION_STACK_VECTORS as $e,OVERLAY_COLLAPSE_VECTORS as et,OVERLAY_SPLIT_VIEW_LAYOUT_VECTORS as tt,OVERLAY_SWIPE_AREA_VECTORS as nt,OVERLAY_SWIPE_CANCEL_VECTORS as rt,OVERLAY_SWIPE_RELEASE_VECTORS as it,OVERLAY_SWIPE_SNAP_POINT_VECTORS as at,OVERLAY_SWIPE_START_VECTORS as ot,SIDEBAR_BOUNDS_VECTORS as st,SIDEBAR_WIDTH_VECTORS as ct,SPLIT_VIEW_MEASURE_VECTORS as lt,TAGS_CONFLICT_VECTORS as ut}from"./split-view.js";import{MENU_BUTTON_DIRECTION_VECTORS as dt,SPLIT_BUTTON_CONTENT_VECTORS as ft,SPLIT_BUTTON_DIRECTION_VECTORS as pt,SPLIT_BUTTON_DROPDOWN_VECTORS as mt,SPLIT_BUTTON_MENU_ACTIVATION_VECTORS as ht,SPLIT_BUTTON_ROOT_STATE_VECTORS as gt,SPLIT_BUTTON_STYLE_CLASS_VECTORS as _t,SPLIT_BUTTON_TOOLTIP_VECTORS as vt}from"./split-button.js";import{LIST_ITEMS_CHANGED_VECTORS as yt,LIST_MODEL_OWNERSHIP_VECTORS as bt,LIST_NORMALIZE_VECTORS as xt,LIST_PARSE_VECTORS as St,LIST_SELECTION_CLAMP_VECTORS as Ct,TAB_PAGES_ITEMS_CHANGED_VECTORS as wt,applyListReadback as Tt,replayTabPagesAsSplices as Et}from"./list.js";import{MENU_DETAILED_ACTION_VECTORS as Dt,MENU_FLATTEN_VECTORS as Ot,MENU_ITEM_STATE_VECTORS as kt,MENU_NORMALIZE_VECTORS as At,MENU_PARSE_VECTORS as jt,MENU_REFUSAL_VECTORS as Mt}from"./menu.js";import{INLINE_TOGGLE_VECTORS as Nt,INLINE_TOOLTIP_VECTORS as Pt,VIEW_SWITCHER_BADGE_VECTORS as Ft,VIEW_SWITCHER_BAR_REVEAL_VECTORS as It,VIEW_SWITCHER_BAR_VECTORS as Lt,VIEW_SWITCHER_BUTTON_VECTORS as Rt,VIEW_SWITCHER_BUTTON_VISIBILITY_VECTORS as zt,VIEW_SWITCHER_DRAG_VECTORS as Bt,VIEW_SWITCHER_ICON_VECTORS as Vt,VIEW_SWITCHER_MNEMONIC_VECTORS as Ht,VIEW_SWITCHER_REBUILD_VECTORS as Ut,VIEW_SWITCHER_SELECTION_VECTORS as Wt,createViewSwitcherClock as Gt}from"./view-switcher.js";import{TABS_REVEALED_VECTORS as Kt,TAB_CLOSE_VISIBLE_VECTORS as qt,TAB_DESCENDANT_VECTORS as Jt,TAB_ICON_STATE_VECTORS as Yt,TAB_PAGE_DESCRIPTOR_VECTORS as Xt,TAB_SUCCESSOR_VECTORS as Zt,TAB_TOOLTIP_VECTORS as Qt,TAB_VIEW_VECTORS as $t,applyTabViewOp as en,seedTabViewPages as tn,tabViewClosing as nn,tabViewOrder as rn}from"./tab-view.js";import{CASE_FOLD_VECTORS as an,MAKE_COMPARABLE_VECTORS as on,PREFERENCES_GROUP_HEADER_VECTORS as sn,PREFERENCES_SEARCH_PAGES as cn,PREFERENCES_SEARCH_VECTORS as ln,ROW_MATCH_VECTORS as un,SEARCH_CORPUS_VECTORS as dn,SEARCH_ROW_SUBTITLE_VECTORS as fn,STRIP_MARKUP_VECTORS as pn,STRIP_MNEMONIC_VECTORS as mn}from"./preferences.js";import{POPOVER_KEY_VECTORS as hn,POPOVER_SURFACE_VECTORS as gn}from"./popover.js";import{SHORTCUT_LABEL_VECTORS as _n,formatShortcutLabelNodes as vn}from"./shortcut-label.js";import{SPINNER_ARC_ENVELOPE as yn,SPINNER_ARC_PHASE_VECTORS as bn,SPINNER_ARC_TOLERANCE as xn,SPINNER_CONSTANT_VECTORS as Sn}from"./spinner.js";import{WRAP_BOX_CHILD_ORDER_VECTORS as Cn,WRAP_BOX_LENGTH_VECTORS as wn,WRAP_BOX_LINE_VECTORS as Tn,WRAP_BOX_NATURAL_LENGTH_VECTORS as En,WRAP_BOX_NOTIFY_PROPERTIES as Dn,WRAP_BOX_POLICY_VECTORS as On,WRAP_BOX_SPACING_NOTIFY_VECTORS as kn,WRAP_BOX_SPACING_VECTORS as An}from"./wrap-box.js";import{SHARED_TREE_BLOCKS_WITHOUT_EXPECTATIONS as jn,SHARED_TREE_TABLES as Mn,authoredNodes as Nn,authoredTags as Pn,reachedTables as Fn,sharedTreeExpectations as In,subjectIndexOf as Ln}from"./shared-trees.js";export{e as ABOUT_DIALOG_CREDITS_LEGAL_VECTORS,t as ABOUT_DIALOG_DETAILS_VECTORS,n as ABOUT_DIALOG_HEADER_VECTORS,r as ABOUT_DIALOG_LABEL_VECTORS,i as ABOUT_DIALOG_SUPPORT_VECTORS,p as ACCENT_COLOR_VECTORS,m as ACTION_ROW_ACTIVATION_VECTORS,b as ADJUSTMENT_AUTHORED_VECTORS,x as ADJUSTMENT_PARSE_VECTORS,S as ADJUSTMENT_SNAP_VECTORS,Je as ADW_LENGTH_UNIT_VECTORS,C as AVATAR_COLOR_VECTORS,w as AVATAR_FONT_SIZE_VECTORS,T as AVATAR_ICON_SIZE_VECTORS,E as AVATAR_INITIALS_VECTORS,D as AVATAR_MODE_VECTORS,O as BANNER_BUTTON_STYLE_PARSE_VECTORS,k as BANNER_BUTTON_STYLE_VECTORS,A as BANNER_BUTTON_TEXT_VECTORS,j as BANNER_BUTTON_VISIBLE_VECTORS,M as BANNER_DEFAULT_VECTORS,ye as BOTTOM_SHEET_CLOSE_VECTORS,be as BOTTOM_SHEET_PRESENTATION_VECTORS,N as BREAKPOINT_PICK_VECTORS,P as BREAKPOINT_TRANSITION_VECTORS,F as BUTTON_CONTENT_DEFAULT_VECTORS,I as BUTTON_CONTENT_ELLIPSIZE_VECTORS,L as BUTTON_CONTENT_ICON_VECTORS,R as BUTTON_CONTENT_LABEL_VECTORS,z as BUTTON_CONTENT_STYLE_TARGET_VECTORS,B as BUTTON_CONTENT_TEXT_VECTORS,h as BUTTON_ROW_ACTIVATABLE_VECTORS,g as BUTTON_ROW_ICON_VECTORS,V as BUTTON_STYLE_CLASS_VECTORS,H as CAROUSEL_CLAMP_VECTORS,U as CAROUSEL_NAVIGATE_VECTORS,W as CAROUSEL_PAGE_ALLOCATION_VECTORS,G as CAROUSEL_PAGE_AT_POSITION_VECTORS,K as CAROUSEL_PAGE_LIST_VECTORS,q as CAROUSEL_PROPERTY_DEFAULT_VECTORS,J as CAROUSEL_RANGE_VECTORS,Y as CAROUSEL_REORDER_SHIFT_VECTORS,X as CAROUSEL_REVEAL_VECTORS,Z as CAROUSEL_SIZES_FROM_SNAP_POINTS_VECTORS,Q as CAROUSEL_SNAP_POINT_VECTORS,$ as CAROUSEL_WHEEL_LOCKOUT_VECTORS,ee as CAROUSEL_WHEEL_VECTORS,an as CASE_FOLD_VECTORS,ne as CLAMP_ALLOCATE_VECTORS,re as CLAMP_CHILD_SIZE_VECTORS,ie as CLAMP_PROPERTY_VECTORS,ae as CLAMP_SIZE_FROM_CHILD_VECTORS,oe as CLAMP_THRESHOLD_VECTORS,Me as COMBO_CHOOSER_VECTORS,Ne as COMBO_SELECTION_VECTORS,a as CREDITS_SECTIONS_VECTORS,o as CREDIT_PERSON_VECTORS,pe as DATA_GRID_CELL_TEXT_VECTORS,me as DATA_GRID_COLUMN_CLASS_VECTORS,he as DATA_GRID_COLUMN_NORMALIZE_VECTORS,ge as DATA_GRID_INTERACTIVE_VECTORS,_e as DATA_GRID_TRACK_VECTORS,ve as DATA_GRID_VARIANT_VECTORS,Se as ENTRY_MAX_LENGTH_VECTORS,Ce as ENTRY_ROW_ACTIVATION_VECTORS,we as ENTRY_ROW_GUARD_VECTORS,Te as ENTRY_ROW_STATE_VECTORS,Ee as ENTRY_TEXT_LENGTH_VECTORS,Ye as GLIB_CLAMP_VECTORS,ke as HEADER_BAR_PACK_VECTORS,Ae as HEADER_BAR_TITLE_SOURCE_VECTORS,je as HEADER_BAR_TITLE_WIDGET_VECTORS,Nt as INLINE_TOGGLE_VECTORS,Pt as INLINE_TOOLTIP_VECTORS,_ as LABEL_VISIBILITY_VECTORS,s as LEGAL_SECTION_VECTORS,c as LICENSE_INFO_VECTORS,l as LICENSE_SETTER_VECTORS,u as LICENSE_SPDX_VECTORS,d as LICENSE_TEXT_VECTORS,yt as LIST_ITEMS_CHANGED_VECTORS,bt as LIST_MODEL_OWNERSHIP_VECTORS,xt as LIST_NORMALIZE_VECTORS,St as LIST_PARSE_VECTORS,Ct as LIST_SELECTION_CLAMP_VECTORS,on as MAKE_COMPARABLE_VECTORS,dt as MENU_BUTTON_DIRECTION_VECTORS,Dt as MENU_DETAILED_ACTION_VECTORS,Ot as MENU_FLATTEN_VECTORS,kt as MENU_ITEM_STATE_VECTORS,At as MENU_NORMALIZE_VECTORS,jt as MENU_PARSE_VECTORS,Mt as MENU_REFUSAL_VECTORS,Xe as NATURAL_SIDEBAR_WIDTH_VECTORS,Ze as NAVIGATION_ACTION_VECTORS,Qe as NAVIGATION_SPLIT_VIEW_LAYOUT_VECTORS,$e as NAVIGATION_STACK_VECTORS,Le as NAVIGATION_VIEW_VECTORS,et as OVERLAY_COLLAPSE_VECTORS,tt as OVERLAY_SPLIT_VIEW_LAYOUT_VECTORS,nt as OVERLAY_SWIPE_AREA_VECTORS,rt as OVERLAY_SWIPE_CANCEL_VECTORS,it as OVERLAY_SWIPE_RELEASE_VECTORS,at as OVERLAY_SWIPE_SNAP_POINT_VECTORS,ot as OVERLAY_SWIPE_START_VECTORS,De as PASSWORD_ENTRY_ROW_VECTORS,Oe as PASSWORD_REVEAL_GUARD_VECTORS,hn as POPOVER_KEY_VECTORS,gn as POPOVER_SURFACE_VECTORS,sn as PREFERENCES_GROUP_HEADER_VECTORS,cn as PREFERENCES_SEARCH_PAGES,ln as PREFERENCES_SEARCH_VECTORS,te as RADIO_GROUP_VECTORS,un as ROW_MATCH_VECTORS,dn as SEARCH_CORPUS_VECTORS,fn as SEARCH_ROW_SUBTITLE_VECTORS,jn as SHARED_TREE_BLOCKS_WITHOUT_EXPECTATIONS,Mn as SHARED_TREE_TABLES,_n as SHORTCUT_LABEL_VECTORS,Ve as SIDEBAR_ACTIVATION_VECTORS,st as SIDEBAR_BOUNDS_VECTORS,He as SIDEBAR_CLAMP_VECTORS,Ue as SIDEBAR_FILTER_VECTORS,We as SIDEBAR_ITEMS_CHANGED_VECTORS,Ge as SIDEBAR_ITEM_FLAG_VECTORS,Ke as SIDEBAR_MODEL_VECTORS,qe as SIDEBAR_MODE_VECTORS,ct as SIDEBAR_WIDTH_VECTORS,yn as SPINNER_ARC_ENVELOPE,bn as SPINNER_ARC_PHASE_VECTORS,xn as SPINNER_ARC_TOLERANCE,Sn as SPINNER_CONSTANT_VECTORS,se as SPINNER_GEOMETRY_VECTORS,ce as SPINNER_SIZE_VECTORS,ft as SPLIT_BUTTON_CONTENT_VECTORS,pt as SPLIT_BUTTON_DIRECTION_VECTORS,mt as SPLIT_BUTTON_DROPDOWN_VECTORS,ht as SPLIT_BUTTON_MENU_ACTIVATION_VECTORS,gt as SPLIT_BUTTON_ROOT_STATE_VECTORS,_t as SPLIT_BUTTON_STYLE_CLASS_VECTORS,vt as SPLIT_BUTTON_TOOLTIP_VECTORS,lt as SPLIT_VIEW_MEASURE_VECTORS,pn as STRIP_MARKUP_VECTORS,mn as STRIP_MNEMONIC_VECTORS,v as SWITCH_ROW_NOTIFY_VECTORS,Kt as TABS_REVEALED_VECTORS,qt as TAB_CLOSE_VISIBLE_VECTORS,Jt as TAB_DESCENDANT_VECTORS,Yt as TAB_ICON_STATE_VECTORS,wt as TAB_PAGES_ITEMS_CHANGED_VECTORS,Xt as TAB_PAGE_DESCRIPTOR_VECTORS,Zt as TAB_SUCCESSOR_VECTORS,Qt as TAB_TOOLTIP_VECTORS,$t as TAB_VIEW_VECTORS,ut as TAGS_CONFLICT_VECTORS,le as TOOLBAR_VIEW_ALLOCATE_VECTORS,ue as TOOLBAR_VIEW_CLASS_VECTORS,de as TOOLBAR_VIEW_CONTENT_FOR_SIZE_VECTORS,fe as TOOLBAR_VIEW_MEASURE_VECTORS,f as TRANSLATOR_CREDITS_VECTORS,Pe as VIEW_STACK_ICON_NAME_VECTORS,Fe as VIEW_STACK_PAGE_VECTORS,Ie as VIEW_STACK_VECTORS,Ft as VIEW_SWITCHER_BADGE_VECTORS,It as VIEW_SWITCHER_BAR_REVEAL_VECTORS,Lt as VIEW_SWITCHER_BAR_VECTORS,Rt as VIEW_SWITCHER_BUTTON_VECTORS,zt as VIEW_SWITCHER_BUTTON_VISIBILITY_VECTORS,Bt as VIEW_SWITCHER_DRAG_VECTORS,Vt as VIEW_SWITCHER_ICON_VECTORS,Ht as VIEW_SWITCHER_MNEMONIC_VECTORS,Ut as VIEW_SWITCHER_REBUILD_VECTORS,Wt as VIEW_SWITCHER_SELECTION_VECTORS,y as WINDOW_TITLE_VECTORS,Cn as WRAP_BOX_CHILD_ORDER_VECTORS,wn as WRAP_BOX_LENGTH_VECTORS,Tn as WRAP_BOX_LINE_VECTORS,En as WRAP_BOX_NATURAL_LENGTH_VECTORS,Dn as WRAP_BOX_NOTIFY_PROPERTIES,On as WRAP_BOX_POLICY_VECTORS,kn as WRAP_BOX_SPACING_NOTIFY_VECTORS,An as WRAP_BOX_SPACING_VECTORS,Tt as applyListReadback,en as applyTabViewOp,Nn as authoredNodes,Pn as authoredTags,Re as collectNavigationState,Gt as createViewSwitcherClock,vn as formatShortcutLabelNodes,ze as navigationEventLog,Fn as reachedTables,Et as replayTabPagesAsSplices,xe as runBottomSheetSteps,Be as runNavigationSteps,tn as seedTabViewPages,In as sharedTreeExpectations,Ln as subjectIndexOf,nn as tabViewClosing,rn as tabViewOrder};
|
|
1
|
+
import{ABOUT_DIALOG_CREDITS_LEGAL_VECTORS as e,ABOUT_DIALOG_DETAILS_VECTORS as t,ABOUT_DIALOG_HEADER_VECTORS as n,ABOUT_DIALOG_LABEL_VECTORS as r,ABOUT_DIALOG_SUPPORT_VECTORS as i,CREDITS_SECTIONS_VECTORS as a,CREDIT_PERSON_VECTORS as o,LEGAL_SECTION_VECTORS as s,LICENSE_INFO_VECTORS as c,LICENSE_SETTER_VECTORS as l,LICENSE_SPDX_VECTORS as u,LICENSE_TEXT_VECTORS as d,TRANSLATOR_CREDITS_VECTORS as f}from"./about-dialog.js";import{ACCENT_COLOR_VECTORS as p,NEAREST_ACCENT_VECTORS as m}from"./accent.js";import{ACTION_ROW_ACTIVATION_VECTORS as h,BUTTON_ROW_ACTIVATABLE_VECTORS as g,BUTTON_ROW_ICON_VECTORS as _,LABEL_VISIBILITY_VECTORS as v,SWITCH_ROW_NOTIFY_VECTORS as y,WINDOW_TITLE_VECTORS as b}from"./action-row.js";import{ADJUSTMENT_AUTHORED_VECTORS as x,ADJUSTMENT_PARSE_VECTORS as S,ADJUSTMENT_SNAP_VECTORS as C}from"./adjustment.js";import{APPEARANCE_HANDOFF_VECTORS as w}from"./appearance.js";import{AVATAR_COLOR_VECTORS as T,AVATAR_FONT_SIZE_VECTORS as E,AVATAR_ICON_SIZE_VECTORS as D,AVATAR_INITIALS_VECTORS as O,AVATAR_MODE_VECTORS as k}from"./avatar.js";import{BANNER_BUTTON_STYLE_PARSE_VECTORS as A,BANNER_BUTTON_STYLE_VECTORS as j,BANNER_BUTTON_TEXT_VECTORS as M,BANNER_BUTTON_VISIBLE_VECTORS as N,BANNER_DEFAULT_VECTORS as P}from"./banner.js";import{BOX_ORIENTATION_VECTORS as F,BOX_SPACING_VECTORS as I}from"./box.js";import{BREAKPOINT_PICK_VECTORS as L,BREAKPOINT_TRANSITION_VECTORS as R}from"./breakpoint-bin.js";import{BUTTON_CONTENT_DEFAULT_VECTORS as z,BUTTON_CONTENT_ELLIPSIZE_VECTORS as B,BUTTON_CONTENT_ICON_VECTORS as V,BUTTON_CONTENT_LABEL_VECTORS as H,BUTTON_CONTENT_STYLE_TARGET_VECTORS as U,BUTTON_CONTENT_TEXT_VECTORS as W}from"./button-content.js";import{BUTTON_STYLE_CLASS_VECTORS as G}from"./button.js";import{CAROUSEL_CLAMP_VECTORS as K,CAROUSEL_NAVIGATE_VECTORS as q,CAROUSEL_PAGE_ALLOCATION_VECTORS as J,CAROUSEL_PAGE_AT_POSITION_VECTORS as Y,CAROUSEL_PAGE_LIST_VECTORS as X,CAROUSEL_PROPERTY_DEFAULT_VECTORS as Z,CAROUSEL_RANGE_VECTORS as Q,CAROUSEL_REORDER_SHIFT_VECTORS as $,CAROUSEL_REVEAL_VECTORS as ee,CAROUSEL_SIZES_FROM_SNAP_POINTS_VECTORS as te,CAROUSEL_SNAP_POINT_VECTORS as ne,CAROUSEL_WHEEL_LOCKOUT_VECTORS as re,CAROUSEL_WHEEL_VECTORS as ie}from"./carousel.js";import{RADIO_GROUP_VECTORS as ae}from"./checks.js";import{CLAMP_ALLOCATE_VECTORS as oe,CLAMP_CHILD_SIZE_VECTORS as se,CLAMP_PROPERTY_VECTORS as ce,CLAMP_SIZE_FROM_CHILD_VECTORS as le,CLAMP_THRESHOLD_VECTORS as ue,SPINNER_GEOMETRY_VECTORS as de,SPINNER_SIZE_VECTORS as fe,TOOLBAR_VIEW_ALLOCATE_VECTORS as pe,TOOLBAR_VIEW_CLASS_VECTORS as me,TOOLBAR_VIEW_CONTENT_FOR_SIZE_VECTORS as he,TOOLBAR_VIEW_MEASURE_VECTORS as ge}from"./chrome.js";import{DATA_GRID_CELL_TEXT_VECTORS as _e,DATA_GRID_COLUMN_CLASS_VECTORS as ve,DATA_GRID_COLUMN_NORMALIZE_VECTORS as ye,DATA_GRID_INTERACTIVE_VECTORS as be,DATA_GRID_TRACK_VECTORS as xe,DATA_GRID_VARIANT_VECTORS as Se}from"./data-grid.js";import{BOTTOM_SHEET_BOTTOM_BAR_VECTORS as Ce,BOTTOM_SHEET_CLOSE_VECTORS as we,BOTTOM_SHEET_OPEN_VECTORS as Te,BOTTOM_SHEET_PRESENTATION_VECTORS as Ee,BOTTOM_SHEET_SWIPE_TRACKER_VECTORS as De,runBottomSheetBottomBarSteps as Oe,runBottomSheetSteps as ke}from"./dialog.js";import{ENTRY_MAX_LENGTH_VECTORS as Ae,ENTRY_ROW_ACTIVATION_VECTORS as je,ENTRY_ROW_GUARD_VECTORS as Me,ENTRY_ROW_STATE_VECTORS as Ne,ENTRY_TEXT_LENGTH_VECTORS as Pe,PASSWORD_ENTRY_ROW_VECTORS as Fe,PASSWORD_REVEAL_GUARD_VECTORS as Ie}from"./entry-row.js";import{HEADER_BAR_PACK_VECTORS as Le,HEADER_BAR_TITLE_SOURCE_VECTORS as Re,HEADER_BAR_TITLE_WIDGET_VECTORS as ze}from"./header-bar.js";import{COMBO_CHOOSER_VECTORS as Be,COMBO_SELECTION_VECTORS as Ve,TOGGLE_ACTIVE_NAME_VECTORS as He}from"./rows.js";import{VIEW_STACK_ICON_NAME_VECTORS as Ue,VIEW_STACK_PAGE_VECTORS as We,VIEW_STACK_VECTORS as Ge}from"./view-stack.js";import{NAVIGATION_VIEW_VECTORS as Ke,collectNavigationState as qe,navigationEventLog as Je,runNavigationSteps as Ye}from"./navigation-view.js";import{SIDEBAR_ACTIVATION_VECTORS as Xe,SIDEBAR_CLAMP_VECTORS as Ze,SIDEBAR_FILTER_VECTORS as Qe,SIDEBAR_ITEMS_CHANGED_VECTORS as $e,SIDEBAR_ITEM_FLAG_VECTORS as et,SIDEBAR_MODEL_VECTORS as tt,SIDEBAR_MODE_VECTORS as nt}from"./sidebar.js";import{ADW_LENGTH_UNIT_VECTORS as rt,GLIB_CLAMP_VECTORS as it,NATURAL_SIDEBAR_WIDTH_VECTORS as at,NAVIGATION_ACTION_VECTORS as ot,NAVIGATION_SPLIT_VIEW_LAYOUT_VECTORS as st,NAVIGATION_STACK_VECTORS as ct,OVERLAY_COLLAPSE_VECTORS as lt,OVERLAY_SPLIT_VIEW_LAYOUT_VECTORS as ut,OVERLAY_SWIPE_AREA_VECTORS as dt,OVERLAY_SWIPE_CANCEL_VECTORS as ft,OVERLAY_SWIPE_RELEASE_VECTORS as pt,OVERLAY_SWIPE_SNAP_POINT_VECTORS as mt,OVERLAY_SWIPE_START_VECTORS as ht,SIDEBAR_BOUNDS_VECTORS as gt,SIDEBAR_WIDTH_VECTORS as _t,SPLIT_VIEW_MEASURE_VECTORS as vt,TAGS_CONFLICT_VECTORS as yt}from"./split-view.js";import{MENU_BUTTON_DIRECTION_VECTORS as bt,SPLIT_BUTTON_CONTENT_VECTORS as xt,SPLIT_BUTTON_DIRECTION_VECTORS as St,SPLIT_BUTTON_DROPDOWN_VECTORS as Ct,SPLIT_BUTTON_MENU_ACTIVATION_VECTORS as wt,SPLIT_BUTTON_ROOT_STATE_VECTORS as Tt,SPLIT_BUTTON_STYLE_CLASS_VECTORS as Et,SPLIT_BUTTON_TOOLTIP_VECTORS as Dt}from"./split-button.js";import{LIST_ITEMS_CHANGED_VECTORS as Ot,LIST_MODEL_OWNERSHIP_VECTORS as kt,LIST_NORMALIZE_VECTORS as At,LIST_PARSE_VECTORS as jt,LIST_SELECTION_CLAMP_VECTORS as Mt,TAB_PAGES_ITEMS_CHANGED_VECTORS as Nt,applyListReadback as Pt,replayTabPagesAsSplices as Ft}from"./list.js";import{MENU_DETAILED_ACTION_VECTORS as It,MENU_FLATTEN_VECTORS as Lt,MENU_ITEM_STATE_VECTORS as Rt,MENU_NORMALIZE_VECTORS as zt,MENU_PARSE_VECTORS as Bt,MENU_REFUSAL_VECTORS as Vt}from"./menu.js";import{INLINE_TOGGLE_VECTORS as Ht,INLINE_TOOLTIP_VECTORS as Ut,VIEW_SWITCHER_BADGE_VECTORS as Wt,VIEW_SWITCHER_BAR_REVEAL_VECTORS as Gt,VIEW_SWITCHER_BAR_VECTORS as Kt,VIEW_SWITCHER_BUTTON_VECTORS as qt,VIEW_SWITCHER_BUTTON_VISIBILITY_VECTORS as Jt,VIEW_SWITCHER_DRAG_VECTORS as Yt,VIEW_SWITCHER_ICON_VECTORS as Xt,VIEW_SWITCHER_MNEMONIC_VECTORS as Zt,VIEW_SWITCHER_REBUILD_VECTORS as Qt,VIEW_SWITCHER_SELECTION_VECTORS as $t,createViewSwitcherClock as en}from"./view-switcher.js";import{TABS_REVEALED_VECTORS as tn,TAB_CLOSE_VISIBLE_VECTORS as nn,TAB_DESCENDANT_VECTORS as rn,TAB_ICON_STATE_VECTORS as an,TAB_PAGE_DESCRIPTOR_VECTORS as on,TAB_SUCCESSOR_VECTORS as sn,TAB_TOOLTIP_VECTORS as cn,TAB_VIEW_VECTORS as ln,applyTabViewOp as un,seedTabViewPages as dn,tabViewClosing as fn,tabViewOrder as pn}from"./tab-view.js";import{CASE_FOLD_VECTORS as mn,MAKE_COMPARABLE_VECTORS as hn,PREFERENCES_GROUP_HEADER_VECTORS as gn,PREFERENCES_SEARCH_PAGES as _n,PREFERENCES_SEARCH_VECTORS as vn,ROW_MATCH_VECTORS as yn,SEARCH_CORPUS_VECTORS as bn,SEARCH_ROW_SUBTITLE_VECTORS as xn,STRIP_MARKUP_VECTORS as Sn,STRIP_MNEMONIC_VECTORS as Cn}from"./preferences.js";import{POPOVER_KEY_VECTORS as wn,POPOVER_SURFACE_VECTORS as Tn}from"./popover.js";import{SHORTCUT_LABEL_VECTORS as En,formatShortcutLabelNodes as Dn}from"./shortcut-label.js";import{SPINNER_ARC_ENVELOPE as On,SPINNER_ARC_PHASE_VECTORS as kn,SPINNER_ARC_TOLERANCE as An,SPINNER_CONSTANT_VECTORS as jn}from"./spinner.js";import{LABEL_CHAR_COUNT_VECTORS as Mn,LABEL_DISPLAY_TEXT_VECTORS as Nn,LABEL_EFFECTIVE_LINES_VECTORS as Pn,LABEL_ELLIPSIZE_OVERFLOW_VECTORS as Fn,LABEL_ELLIPSIZE_VECTORS as In,LABEL_JUSTIFY_VECTORS as Ln,LABEL_WIDTH_CHARS_EXTENT_VECTORS as Rn,LABEL_WRAP_MODE_VECTORS as zn,LABEL_XALIGN_VECTORS as Bn,LABEL_YALIGN_ALIGN_ITEMS_VECTORS as Vn,LABEL_YALIGN_VECTORS as Hn}from"./label.js";import{WRAP_BOX_CHILD_ORDER_VECTORS as Un,WRAP_BOX_LENGTH_VECTORS as Wn,WRAP_BOX_LINE_VECTORS as Gn,WRAP_BOX_NATURAL_LENGTH_VECTORS as Kn,WRAP_BOX_NOTIFY_PROPERTIES as qn,WRAP_BOX_POLICY_VECTORS as Jn,WRAP_BOX_SPACING_NOTIFY_VECTORS as Yn,WRAP_BOX_SPACING_VECTORS as Xn}from"./wrap-box.js";import{ATTRIBUTE_OF_VECTORS as Zn,HOST_TAG_VECTORS as Qn,PROPERTY_OF_VECTORS as $n}from"./tags.js";import{VALUE_LIST_VECTORS as er}from"./value-lists.js";import{SHARED_TREE_BLOCKS_WITHOUT_EXPECTATIONS as tr,SHARED_TREE_TABLES as nr,authoredNodes as rr,authoredTags as ir,reachedTables as ar,sharedTreeExpectations as or,sharedTreePlacements as sr,subjectIndexOf as cr,withoutPlacements as lr}from"./shared-trees.js";export{e as ABOUT_DIALOG_CREDITS_LEGAL_VECTORS,t as ABOUT_DIALOG_DETAILS_VECTORS,n as ABOUT_DIALOG_HEADER_VECTORS,r as ABOUT_DIALOG_LABEL_VECTORS,i as ABOUT_DIALOG_SUPPORT_VECTORS,p as ACCENT_COLOR_VECTORS,h as ACTION_ROW_ACTIVATION_VECTORS,x as ADJUSTMENT_AUTHORED_VECTORS,S as ADJUSTMENT_PARSE_VECTORS,C as ADJUSTMENT_SNAP_VECTORS,rt as ADW_LENGTH_UNIT_VECTORS,w as APPEARANCE_HANDOFF_VECTORS,Zn as ATTRIBUTE_OF_VECTORS,T as AVATAR_COLOR_VECTORS,E as AVATAR_FONT_SIZE_VECTORS,D as AVATAR_ICON_SIZE_VECTORS,O as AVATAR_INITIALS_VECTORS,k as AVATAR_MODE_VECTORS,A as BANNER_BUTTON_STYLE_PARSE_VECTORS,j as BANNER_BUTTON_STYLE_VECTORS,M as BANNER_BUTTON_TEXT_VECTORS,N as BANNER_BUTTON_VISIBLE_VECTORS,P as BANNER_DEFAULT_VECTORS,Ce as BOTTOM_SHEET_BOTTOM_BAR_VECTORS,we as BOTTOM_SHEET_CLOSE_VECTORS,Te as BOTTOM_SHEET_OPEN_VECTORS,Ee as BOTTOM_SHEET_PRESENTATION_VECTORS,De as BOTTOM_SHEET_SWIPE_TRACKER_VECTORS,F as BOX_ORIENTATION_VECTORS,I as BOX_SPACING_VECTORS,L as BREAKPOINT_PICK_VECTORS,R as BREAKPOINT_TRANSITION_VECTORS,z as BUTTON_CONTENT_DEFAULT_VECTORS,B as BUTTON_CONTENT_ELLIPSIZE_VECTORS,V as BUTTON_CONTENT_ICON_VECTORS,H as BUTTON_CONTENT_LABEL_VECTORS,U as BUTTON_CONTENT_STYLE_TARGET_VECTORS,W as BUTTON_CONTENT_TEXT_VECTORS,g as BUTTON_ROW_ACTIVATABLE_VECTORS,_ as BUTTON_ROW_ICON_VECTORS,G as BUTTON_STYLE_CLASS_VECTORS,K as CAROUSEL_CLAMP_VECTORS,q as CAROUSEL_NAVIGATE_VECTORS,J as CAROUSEL_PAGE_ALLOCATION_VECTORS,Y as CAROUSEL_PAGE_AT_POSITION_VECTORS,X as CAROUSEL_PAGE_LIST_VECTORS,Z as CAROUSEL_PROPERTY_DEFAULT_VECTORS,Q as CAROUSEL_RANGE_VECTORS,$ as CAROUSEL_REORDER_SHIFT_VECTORS,ee as CAROUSEL_REVEAL_VECTORS,te as CAROUSEL_SIZES_FROM_SNAP_POINTS_VECTORS,ne as CAROUSEL_SNAP_POINT_VECTORS,re as CAROUSEL_WHEEL_LOCKOUT_VECTORS,ie as CAROUSEL_WHEEL_VECTORS,mn as CASE_FOLD_VECTORS,oe as CLAMP_ALLOCATE_VECTORS,se as CLAMP_CHILD_SIZE_VECTORS,ce as CLAMP_PROPERTY_VECTORS,le as CLAMP_SIZE_FROM_CHILD_VECTORS,ue as CLAMP_THRESHOLD_VECTORS,Be as COMBO_CHOOSER_VECTORS,Ve as COMBO_SELECTION_VECTORS,a as CREDITS_SECTIONS_VECTORS,o as CREDIT_PERSON_VECTORS,_e as DATA_GRID_CELL_TEXT_VECTORS,ve as DATA_GRID_COLUMN_CLASS_VECTORS,ye as DATA_GRID_COLUMN_NORMALIZE_VECTORS,be as DATA_GRID_INTERACTIVE_VECTORS,xe as DATA_GRID_TRACK_VECTORS,Se as DATA_GRID_VARIANT_VECTORS,Ae as ENTRY_MAX_LENGTH_VECTORS,je as ENTRY_ROW_ACTIVATION_VECTORS,Me as ENTRY_ROW_GUARD_VECTORS,Ne as ENTRY_ROW_STATE_VECTORS,Pe as ENTRY_TEXT_LENGTH_VECTORS,it as GLIB_CLAMP_VECTORS,Le as HEADER_BAR_PACK_VECTORS,Re as HEADER_BAR_TITLE_SOURCE_VECTORS,ze as HEADER_BAR_TITLE_WIDGET_VECTORS,Qn as HOST_TAG_VECTORS,Ht as INLINE_TOGGLE_VECTORS,Ut as INLINE_TOOLTIP_VECTORS,Mn as LABEL_CHAR_COUNT_VECTORS,Nn as LABEL_DISPLAY_TEXT_VECTORS,Pn as LABEL_EFFECTIVE_LINES_VECTORS,Fn as LABEL_ELLIPSIZE_OVERFLOW_VECTORS,In as LABEL_ELLIPSIZE_VECTORS,Ln as LABEL_JUSTIFY_VECTORS,v as LABEL_VISIBILITY_VECTORS,Rn as LABEL_WIDTH_CHARS_EXTENT_VECTORS,zn as LABEL_WRAP_MODE_VECTORS,Bn as LABEL_XALIGN_VECTORS,Vn as LABEL_YALIGN_ALIGN_ITEMS_VECTORS,Hn as LABEL_YALIGN_VECTORS,s as LEGAL_SECTION_VECTORS,c as LICENSE_INFO_VECTORS,l as LICENSE_SETTER_VECTORS,u as LICENSE_SPDX_VECTORS,d as LICENSE_TEXT_VECTORS,Ot as LIST_ITEMS_CHANGED_VECTORS,kt as LIST_MODEL_OWNERSHIP_VECTORS,At as LIST_NORMALIZE_VECTORS,jt as LIST_PARSE_VECTORS,Mt as LIST_SELECTION_CLAMP_VECTORS,hn as MAKE_COMPARABLE_VECTORS,bt as MENU_BUTTON_DIRECTION_VECTORS,It as MENU_DETAILED_ACTION_VECTORS,Lt as MENU_FLATTEN_VECTORS,Rt as MENU_ITEM_STATE_VECTORS,zt as MENU_NORMALIZE_VECTORS,Bt as MENU_PARSE_VECTORS,Vt as MENU_REFUSAL_VECTORS,at as NATURAL_SIDEBAR_WIDTH_VECTORS,ot as NAVIGATION_ACTION_VECTORS,st as NAVIGATION_SPLIT_VIEW_LAYOUT_VECTORS,ct as NAVIGATION_STACK_VECTORS,Ke as NAVIGATION_VIEW_VECTORS,m as NEAREST_ACCENT_VECTORS,lt as OVERLAY_COLLAPSE_VECTORS,ut as OVERLAY_SPLIT_VIEW_LAYOUT_VECTORS,dt as OVERLAY_SWIPE_AREA_VECTORS,ft as OVERLAY_SWIPE_CANCEL_VECTORS,pt as OVERLAY_SWIPE_RELEASE_VECTORS,mt as OVERLAY_SWIPE_SNAP_POINT_VECTORS,ht as OVERLAY_SWIPE_START_VECTORS,Fe as PASSWORD_ENTRY_ROW_VECTORS,Ie as PASSWORD_REVEAL_GUARD_VECTORS,wn as POPOVER_KEY_VECTORS,Tn as POPOVER_SURFACE_VECTORS,gn as PREFERENCES_GROUP_HEADER_VECTORS,_n as PREFERENCES_SEARCH_PAGES,vn as PREFERENCES_SEARCH_VECTORS,$n as PROPERTY_OF_VECTORS,ae as RADIO_GROUP_VECTORS,yn as ROW_MATCH_VECTORS,bn as SEARCH_CORPUS_VECTORS,xn as SEARCH_ROW_SUBTITLE_VECTORS,tr as SHARED_TREE_BLOCKS_WITHOUT_EXPECTATIONS,nr as SHARED_TREE_TABLES,En as SHORTCUT_LABEL_VECTORS,Xe as SIDEBAR_ACTIVATION_VECTORS,gt as SIDEBAR_BOUNDS_VECTORS,Ze as SIDEBAR_CLAMP_VECTORS,Qe as SIDEBAR_FILTER_VECTORS,$e as SIDEBAR_ITEMS_CHANGED_VECTORS,et as SIDEBAR_ITEM_FLAG_VECTORS,tt as SIDEBAR_MODEL_VECTORS,nt as SIDEBAR_MODE_VECTORS,_t as SIDEBAR_WIDTH_VECTORS,On as SPINNER_ARC_ENVELOPE,kn as SPINNER_ARC_PHASE_VECTORS,An as SPINNER_ARC_TOLERANCE,jn as SPINNER_CONSTANT_VECTORS,de as SPINNER_GEOMETRY_VECTORS,fe as SPINNER_SIZE_VECTORS,xt as SPLIT_BUTTON_CONTENT_VECTORS,St as SPLIT_BUTTON_DIRECTION_VECTORS,Ct as SPLIT_BUTTON_DROPDOWN_VECTORS,wt as SPLIT_BUTTON_MENU_ACTIVATION_VECTORS,Tt as SPLIT_BUTTON_ROOT_STATE_VECTORS,Et as SPLIT_BUTTON_STYLE_CLASS_VECTORS,Dt as SPLIT_BUTTON_TOOLTIP_VECTORS,vt as SPLIT_VIEW_MEASURE_VECTORS,Sn as STRIP_MARKUP_VECTORS,Cn as STRIP_MNEMONIC_VECTORS,y as SWITCH_ROW_NOTIFY_VECTORS,tn as TABS_REVEALED_VECTORS,nn as TAB_CLOSE_VISIBLE_VECTORS,rn as TAB_DESCENDANT_VECTORS,an as TAB_ICON_STATE_VECTORS,Nt as TAB_PAGES_ITEMS_CHANGED_VECTORS,on as TAB_PAGE_DESCRIPTOR_VECTORS,sn as TAB_SUCCESSOR_VECTORS,cn as TAB_TOOLTIP_VECTORS,ln as TAB_VIEW_VECTORS,yt as TAGS_CONFLICT_VECTORS,He as TOGGLE_ACTIVE_NAME_VECTORS,pe as TOOLBAR_VIEW_ALLOCATE_VECTORS,me as TOOLBAR_VIEW_CLASS_VECTORS,he as TOOLBAR_VIEW_CONTENT_FOR_SIZE_VECTORS,ge as TOOLBAR_VIEW_MEASURE_VECTORS,f as TRANSLATOR_CREDITS_VECTORS,er as VALUE_LIST_VECTORS,Ue as VIEW_STACK_ICON_NAME_VECTORS,We as VIEW_STACK_PAGE_VECTORS,Ge as VIEW_STACK_VECTORS,Wt as VIEW_SWITCHER_BADGE_VECTORS,Gt as VIEW_SWITCHER_BAR_REVEAL_VECTORS,Kt as VIEW_SWITCHER_BAR_VECTORS,qt as VIEW_SWITCHER_BUTTON_VECTORS,Jt as VIEW_SWITCHER_BUTTON_VISIBILITY_VECTORS,Yt as VIEW_SWITCHER_DRAG_VECTORS,Xt as VIEW_SWITCHER_ICON_VECTORS,Zt as VIEW_SWITCHER_MNEMONIC_VECTORS,Qt as VIEW_SWITCHER_REBUILD_VECTORS,$t as VIEW_SWITCHER_SELECTION_VECTORS,b as WINDOW_TITLE_VECTORS,Un as WRAP_BOX_CHILD_ORDER_VECTORS,Wn as WRAP_BOX_LENGTH_VECTORS,Gn as WRAP_BOX_LINE_VECTORS,Kn as WRAP_BOX_NATURAL_LENGTH_VECTORS,qn as WRAP_BOX_NOTIFY_PROPERTIES,Jn as WRAP_BOX_POLICY_VECTORS,Yn as WRAP_BOX_SPACING_NOTIFY_VECTORS,Xn as WRAP_BOX_SPACING_VECTORS,Pt as applyListReadback,un as applyTabViewOp,rr as authoredNodes,ir as authoredTags,qe as collectNavigationState,en as createViewSwitcherClock,Dn as formatShortcutLabelNodes,Je as navigationEventLog,ar as reachedTables,Ft as replayTabPagesAsSplices,Oe as runBottomSheetBottomBarSteps,ke as runBottomSheetSteps,Ye as runNavigationSteps,dn as seedTabViewPages,or as sharedTreeExpectations,sr as sharedTreePlacements,cr as subjectIndexOf,fn as tabViewClosing,pn as tabViewOrder,lr as withoutPlacements};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=[{label:`a < b`,useMarkup:!1,useUnderline:!1,text:`a < b`,rule:"use-markup defaults to FALSE, so a `<` in prose is shown literally"},{label:`<b>Bold</b>`,useMarkup:!1,useUnderline:!1,text:`<b>Bold</b>`,rule:`markup without use-markup is text, tags included`},{label:`<b>Bold</b> & plain`,useMarkup:!0,useUnderline:!1,text:`Bold & plain`,rule:`use-markup shows the markup as its text — the declared divergence: GTK also draws it bold`},{label:`a < b`,useMarkup:!0,useUnderline:!1,text:`a < b`,rule:`unparseable markup keeps the raw string, the C fallback`},{label:`<img src="x" onerror="alert(1)">`,useMarkup:!0,useUnderline:!1,text:`<img src="x" onerror="alert(1)">`,rule:`a tag Pango does not know is unparseable markup, so it is shown, never built`},{label:`_Open`,useMarkup:!1,useUnderline:!1,text:`_Open`,rule:`an underscore is literal unless use-underline is set`},{label:`_Open`,useMarkup:!1,useUnderline:!0,text:`Open`,rule:`use-underline removes the mnemonic marker from the shown text`},{label:`<span font_desc="Sans 12">Big</span>`,useMarkup:!0,useUnderline:!0,text:`Big`,rule:`markup is reduced BEFORE the mnemonic, so an underscore inside a tag is not one`}],t=[{value:null,xalign:.5,rule:`an absent xalign centres the text, the pspec default`},{value:0,xalign:0,rule:`0 is the start edge`},{value:`0.25`,xalign:.25,rule:`the string an attribute carries parses`},{value:-1,xalign:0,rule:`below the range clamps to 0, as the setter does`},{value:`3`,xalign:1,rule:`above the range clamps to 1`},{value:`left`,xalign:.5,rule:`an unparseable value is the default, not NaN`}],n=[{value:null,justify:`left`,rule:`an absent justify is the default, left`},{value:`center`,justify:`center`,rule:`a nick is read as written`},{value:`fill`,justify:`fill`,rule:`fill is the fourth nick`},{value:`justify`,justify:`left`,rule:`a CSS keyword is no nick, so the default stays`}],r=[{value:null,yalign:.5,rule:`an absent yalign centres the text, the pspec default`},{value:0,yalign:0,rule:`0 is the top edge`},{value:`0.25`,yalign:.25,rule:`the string an attribute carries parses`},{value:-1,yalign:0,rule:`below the range clamps to 0, as the setter does`},{value:`3`,yalign:1,rule:`above the range clamps to 1`},{value:`top`,yalign:.5,rule:`an unparseable value is the default, not NaN`}],i=[{yalign:0,alignItems:`flex-start`,rule:`0 is the top edge exactly`},{yalign:.2,alignItems:`flex-start`,rule:`0.2 is nearer 0 than 0.5`},{yalign:.25,alignItems:`center`,rule:`the 0/0.5 boundary is equidistant: ties go to the centre zone`},{yalign:.3,alignItems:`center`,rule:`0.3 is nearer 0.5 than 0 — a strict half-split gets this wrong`},{yalign:.5,alignItems:`center`,rule:`0.5 is the centre exactly, the pspec default`},{yalign:.7,alignItems:`center`,rule:`0.7 is nearer 0.5 than 1 — a strict half-split gets this wrong`},{yalign:.75,alignItems:`center`,rule:`the 0.5/1 boundary is equidistant: ties go to the centre zone`},{yalign:.8,alignItems:`flex-end`,rule:`0.8 is nearer 1 than 0.5`},{yalign:1,alignItems:`flex-end`,rule:`1 is the bottom edge exactly`}],a=[{value:null,ellipsize:`none`,rule:`an absent ellipsize is the default, none`},{value:`start`,ellipsize:`start`,rule:`a nick is read as written`},{value:`middle`,ellipsize:`middle`,rule:`middle is the third nick`},{value:`end`,ellipsize:`end`,rule:`end is the fourth nick`},{value:`both`,ellipsize:`none`,rule:`an unknown nick leaves the default, none`}],o=[{ellipsize:`none`,overflow:`clip`,rule:`no ellipsization draws no ellipsis`},{ellipsize:`end`,overflow:`ellipsis`,rule:`end is the one mode CSS/NativeScript name exactly`},{ellipsize:`start`,overflow:`ellipsis`,rule:`declared divergence: no platform truncates from the start, so this draws an end-ellipsis rather than clipping silently`},{ellipsize:`middle`,overflow:`ellipsis`,rule:`declared divergence: no platform truncates from the middle, so this draws an end-ellipsis rather than clipping silently`}],s=[{value:null,wrapMode:`word`,rule:`an absent wrap-mode is the default, word`},{value:`char`,wrapMode:`char`,rule:`a nick is read as written`},{value:`word-char`,wrapMode:`word-char`,rule:`word-char is the third nick`},{value:`wordchar`,wrapMode:`word`,rule:`a nick with the dash dropped is unknown, so the default stays`}],c=[{value:null,count:-1,rule:`an absent value is the default, -1 ("auto"/unlimited)`},{value:0,count:0,rule:`0 is a real, held value — an empty label, not "unset"`},{value:`12`,count:12,rule:`the string an attribute carries parses`},{value:`3.7`,count:3,rule:`a fractional string truncates, as an int property would`},{value:-5,count:-1,rule:`below the floor clamps to -1, as the property system does`},{value:`auto`,count:-1,rule:`an unparseable value is the default, not NaN`}],l=[{lines:-1,ellipsize:`none`,effective:null,rule:`not ellipsized: no effect, however lines is set`},{lines:2,ellipsize:`none`,effective:null,rule:`not ellipsized: lines has no effect even at a real value`},{lines:-1,ellipsize:`end`,effective:1,rule:`ellipsized, lines unset: Pango's own default is ONE line`},{lines:0,ellipsize:`end`,effective:1,rule:`0 is not a real limit either: GTK only calls pango_layout_set_height for lines > 0, so 0 falls to the same Pango default as unset`},{lines:1,ellipsize:`end`,effective:1,rule:`lines=1 explicitly is the same one line`},{lines:2,ellipsize:`end`,effective:2,rule:`ellipsized alone is enough — no wrap needed, the finding this table exists to pin`},{lines:3,ellipsize:`start`,effective:3,rule:`holds for every ellipsize mode, not only end`}],u=[{widthChars:-1,maxWidthChars:-1,minCh:null,maxCh:null,rule:`both unset: no extent either way`},{widthChars:10,maxWidthChars:-1,minCh:10,maxCh:null,rule:`width-chars alone sets a minimum only`},{widthChars:-1,maxWidthChars:20,minCh:null,maxCh:20,rule:`max-width-chars alone sets a natural width`},{widthChars:10,maxWidthChars:20,minCh:10,maxCh:20,rule:`both set: minimum and the wider natural`},{widthChars:15,maxWidthChars:5,minCh:15,maxCh:15,rule:`max-width-chars narrower than width-chars: natural is still the MAX of the two, per the C`}];export{c as LABEL_CHAR_COUNT_VECTORS,e as LABEL_DISPLAY_TEXT_VECTORS,l as LABEL_EFFECTIVE_LINES_VECTORS,o as LABEL_ELLIPSIZE_OVERFLOW_VECTORS,a as LABEL_ELLIPSIZE_VECTORS,n as LABEL_JUSTIFY_VECTORS,u as LABEL_WIDTH_CHARS_EXTENT_VECTORS,s as LABEL_WRAP_MODE_VECTORS,t as LABEL_XALIGN_VECTORS,i as LABEL_YALIGN_ALIGN_ITEMS_VECTORS,r as LABEL_YALIGN_VECTORS};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=[{label:`One`,value:`a`},{label:`Two`,value:`b`}],t=[{name:`programmatic index set`,steps:[{op:`setModel`,model:e},{op:`setSelectedIndex`,index:1}],selected:1,value:`b`,label:`Two`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!1}],rule:"a changed position reaches the selection, whose notify becomes `notify::selected` (:788 → :154)"},{name:`setting the index already held`,steps:[{op:`setModel`,model:e},{op:`setSelectedIndex`,index:1},{op:`setSelectedIndex`,index:1}],selected:1,value:`b`,label:`Two`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!1}],rule:`the setter returns before touching the selection when the position holds (:785-786) — no notify`},{name:`the chooser pick`,steps:[{op:`setModel`,model:e},{op:`select`,index:1}],selected:1,value:`b`,label:`Two`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!0}],rule:"the popup routes its position through the SAME setter (:209); only the `interactive` tag differs, and that tag is ours"},{name:`picking the option already selected`,steps:[{op:`setModel`,model:e},{op:`select`,index:0}],selected:0,value:`a`,label:`One`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1}],rule:`the same-position guard (:785-786) applies to the user path too — reopening and re-picking notifies nothing`},{name:`a dismissed chooser`,steps:[{op:`setModel`,model:e},{op:`select`,index:-1}],selected:0,value:`a`,label:`One`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1}],rule:`no C equivalent: a dismissed native sheet resolves to the cancel label, so the renderer looks up -1 — the guard is the substitution's`},{name:`select by value`,steps:[{op:`setModel`,model:e},{op:`setSelectedValue`,value:`b`}],selected:1,value:`b`,label:`Two`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!1}],rule:`a value maps to the FIRST option carrying it; the port addition over the C, whose model is positional`},{name:`select by an unknown value`,steps:[{op:`setModel`,model:e},{op:`setSelectedValue`,value:`zzz`}],selected:0,value:`a`,label:`One`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1}],rule:`an unknown value is a no-op, never a reset to 0 — a mistyped binding must not silently move the selection`},{name:`the model is replaced at the same index`,steps:[{op:`setModel`,model:[{label:`First`,value:`a`}]},{op:`setModel`,model:[{label:`Renamed`,value:`a`}]}],selected:0,value:`a`,label:`Renamed`,emitted:[{selected:0,value:`a`,label:`First`,interactive:!1},{selected:0,value:`a`,label:`Renamed`,interactive:!1}],rule:"the index did not move but the ITEM did — `selection_item_changed` (:157-185) repaints off the item, not the position"},{name:`the model shrinks past the selection`,steps:[{op:`setModel`,model:e},{op:`setSelectedIndex`,index:1},{op:`setModel`,model:[{label:`Only`,value:`a`}]}],selected:0,value:`a`,label:`Only`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!1},{selected:0,value:`a`,label:`Only`,interactive:!1}],rule:`a selection past the end of the new model falls back to 0 — GtkSingleSelection autoselects upstream, whose C is not vendored here, so this row is the ports' shared answer`},{name:`an index past the end`,steps:[{op:`setModel`,model:[{label:`Only`,value:`a`}]},{op:`setSelectedIndex`,index:5}],selected:5,value:``,label:``,emitted:[{selected:0,value:`a`,label:`Only`,interactive:!1},{selected:5,value:``,label:``,interactive:!1}],rule:`the index is NOT clamped (the C takes any guint); the empty value/label is how "nothing to draw" is expressed here`},{name:`an empty model`,steps:[{op:`setModel`,model:[]}],selected:-1,value:``,label:``,emitted:[{selected:-1,value:``,label:``,interactive:!1}],rule:`GTK_INVALID_LIST_POSITION (:593-596, :809-810) — an empty model has no index 0 to autoselect`},{name:`picking from an empty model`,steps:[{op:`setModel`,model:[]},{op:`select`,index:0}],selected:-1,value:``,label:``,emitted:[{selected:-1,value:``,label:``,interactive:!1}],rule:`there is no option 0 to pick — and the renderers never open a chooser over an empty model either`},{name:`emptying a model that had a selection`,steps:[{op:`setModel`,model:e},{op:`setSelectedIndex`,index:1},{op:`setModel`,model:[]}],selected:-1,value:``,label:``,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!1},{selected:-1,value:``,label:``,interactive:!1}],rule:`the selection does NOT survive as index 0 — there is nothing at 0 any more`},{name:`a model that is emptied and refilled`,steps:[{op:`setModel`,model:e},{op:`setModel`,model:[]},{op:`setModel`,model:e}],selected:0,value:`a`,label:`One`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:-1,value:``,label:``,interactive:!1},{selected:0,value:`a`,label:`One`,interactive:!1}],rule:`autoselect runs again, so the sentinel recovers to 0 — it is BELOW the range, which a one-sided >= length check leaves in place`},{name:`a model with an empty first label is still a selection`,steps:[{op:`setModel`,model:[{label:``,value:`blank`}]}],selected:0,value:`blank`,label:``,emitted:[{selected:0,value:`blank`,label:``,interactive:!1}],rule:`the case the sentinel exists to separate: an empty LABEL, not an empty model`}],n=[{count:0,presentsChooser:!1,rule:`an empty model is not a chooser`},{count:1,presentsChooser:!1,rule:`ONE option is not a choice — the arrow goes and the row goes inert`},{count:2,presentsChooser:!0,rule:`two is the smallest real choice — the predicate is > 1, not >= 1`},{count:5,presentsChooser:!0,rule:`and anything above it`}];export{n as COMBO_CHOOSER_VECTORS,t as COMBO_SELECTION_VECTORS};
|
|
1
|
+
const e=[{label:`One`,value:`a`},{label:`Two`,value:`b`}],t=[{name:`programmatic index set`,steps:[{op:`setModel`,model:e},{op:`setSelectedIndex`,index:1}],selected:1,value:`b`,label:`Two`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!1}],rule:"a changed position reaches the selection, whose notify becomes `notify::selected` (:788 → :154)"},{name:`setting the index already held`,steps:[{op:`setModel`,model:e},{op:`setSelectedIndex`,index:1},{op:`setSelectedIndex`,index:1}],selected:1,value:`b`,label:`Two`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!1}],rule:`the setter returns before touching the selection when the position holds (:785-786) — no notify`},{name:`the chooser pick`,steps:[{op:`setModel`,model:e},{op:`select`,index:1}],selected:1,value:`b`,label:`Two`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!0}],rule:"the popup routes its position through the SAME setter (:209); only the `interactive` tag differs, and that tag is ours"},{name:`picking the option already selected`,steps:[{op:`setModel`,model:e},{op:`select`,index:0}],selected:0,value:`a`,label:`One`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1}],rule:`the same-position guard (:785-786) applies to the user path too — reopening and re-picking notifies nothing`},{name:`a dismissed chooser`,steps:[{op:`setModel`,model:e},{op:`select`,index:-1}],selected:0,value:`a`,label:`One`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1}],rule:`no C equivalent: a dismissed native sheet resolves to the cancel label, so the renderer looks up -1 — the guard is the substitution's`},{name:`select by value`,steps:[{op:`setModel`,model:e},{op:`setSelectedValue`,value:`b`}],selected:1,value:`b`,label:`Two`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!1}],rule:`a value maps to the FIRST option carrying it; the port addition over the C, whose model is positional`},{name:`select by an unknown value`,steps:[{op:`setModel`,model:e},{op:`setSelectedValue`,value:`zzz`}],selected:0,value:`a`,label:`One`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1}],rule:`an unknown value is a no-op, never a reset to 0 — a mistyped binding must not silently move the selection`},{name:`the model is replaced at the same index`,steps:[{op:`setModel`,model:[{label:`First`,value:`a`}]},{op:`setModel`,model:[{label:`Renamed`,value:`a`}]}],selected:0,value:`a`,label:`Renamed`,emitted:[{selected:0,value:`a`,label:`First`,interactive:!1},{selected:0,value:`a`,label:`Renamed`,interactive:!1}],rule:"the index did not move but the ITEM did — `selection_item_changed` (:157-185) repaints off the item, not the position"},{name:`the model shrinks past the selection`,steps:[{op:`setModel`,model:e},{op:`setSelectedIndex`,index:1},{op:`setModel`,model:[{label:`Only`,value:`a`}]}],selected:0,value:`a`,label:`Only`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!1},{selected:0,value:`a`,label:`Only`,interactive:!1}],rule:`a selection past the end of the new model falls back to 0 — GtkSingleSelection autoselects upstream, whose C is not vendored here, so this row is the ports' shared answer`},{name:`an index past the end`,steps:[{op:`setModel`,model:[{label:`Only`,value:`a`}]},{op:`setSelectedIndex`,index:5}],selected:5,value:``,label:``,emitted:[{selected:0,value:`a`,label:`Only`,interactive:!1},{selected:5,value:``,label:``,interactive:!1}],rule:`the index is NOT clamped (the C takes any guint); the empty value/label is how "nothing to draw" is expressed here`},{name:`an empty model`,steps:[{op:`setModel`,model:[]}],selected:-1,value:``,label:``,emitted:[{selected:-1,value:``,label:``,interactive:!1}],rule:`GTK_INVALID_LIST_POSITION (:593-596, :809-810) — an empty model has no index 0 to autoselect`},{name:`picking from an empty model`,steps:[{op:`setModel`,model:[]},{op:`select`,index:0}],selected:-1,value:``,label:``,emitted:[{selected:-1,value:``,label:``,interactive:!1}],rule:`there is no option 0 to pick — and the renderers never open a chooser over an empty model either`},{name:`emptying a model that had a selection`,steps:[{op:`setModel`,model:e},{op:`setSelectedIndex`,index:1},{op:`setModel`,model:[]}],selected:-1,value:``,label:``,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:1,value:`b`,label:`Two`,interactive:!1},{selected:-1,value:``,label:``,interactive:!1}],rule:`the selection does NOT survive as index 0 — there is nothing at 0 any more`},{name:`a model that is emptied and refilled`,steps:[{op:`setModel`,model:e},{op:`setModel`,model:[]},{op:`setModel`,model:e}],selected:0,value:`a`,label:`One`,emitted:[{selected:0,value:`a`,label:`One`,interactive:!1},{selected:-1,value:``,label:``,interactive:!1},{selected:0,value:`a`,label:`One`,interactive:!1}],rule:`autoselect runs again, so the sentinel recovers to 0 — it is BELOW the range, which a one-sided >= length check leaves in place`},{name:`a model with an empty first label is still a selection`,steps:[{op:`setModel`,model:[{label:``,value:`blank`}]}],selected:0,value:`blank`,label:``,emitted:[{selected:0,value:`blank`,label:``,interactive:!1}],rule:`the case the sentinel exists to separate: an empty LABEL, not an empty model`}],n=[{count:0,presentsChooser:!1,rule:`an empty model is not a chooser`},{count:1,presentsChooser:!1,rule:`ONE option is not a choice — the arrow goes and the row goes inert`},{count:2,presentsChooser:!0,rule:`two is the smallest real choice — the predicate is > 1, not >= 1`},{count:5,presentsChooser:!0,rule:`and anything above it`}],r=[{names:[`list`,`grid`,`columns`],activeName:`grid`,kept:3,index:1,active:1,rule:`selects the toggle carrying the name`},{names:[`list`,`grid`,`columns`],activeName:`columns`,kept:3,index:2,active:2,rule:`the last toggle is reachable — the name is applied after every toggle is in`},{names:[`list`,`grid`,`list`],activeName:`list`,kept:2,index:0,active:0,rule:`a name already taken is refused WITH its toggle — the group keeps two, and the name means the first`},{names:[null,`grid`],activeName:`grid`,kept:2,index:1,active:1,rule:`an unnamed toggle is kept and takes no part in the lookup`},{names:[`list`,`grid`],activeName:`missing`,kept:2,index:-1,active:0,rule:`a name no toggle carries changes nothing — the first toggle, which add made active, stays`}];export{n as COMBO_CHOOSER_VECTORS,t as COMBO_SELECTION_VECTORS,r as TOGGLE_ACTIVE_NAME_VECTORS};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{SWITCH_ROW_NOTIFY_VECTORS as e}from"./action-row.js";import{BANNER_BUTTON_TEXT_VECTORS as t,BANNER_BUTTON_VISIBLE_VECTORS as n}from"./banner.js";import{ENTRY_TEXT_LENGTH_VECTORS as r}from"./entry-row.js";const i=[`BANNER_BUTTON_TEXT_VECTORS`,`BANNER_BUTTON_VISIBLE_VECTORS`,`ENTRY_TEXT_LENGTH_VECTORS`,`SWITCH_ROW_NOTIFY_VECTORS`],a={"Adw.ShortcutLabel":"a CHOICE, not an impossibility: SHORTCUT_LABEL_VECTORS is deliberately off SHARED_TREE_TABLES, because the row this block would instantiate is unreadable on a translated host — see the header. What that costs is one-sided. `adwaita-web` drives the table from its own spec and would pass the row here too; `gtk-host` drives it from NO spec, so libadwaita's own keycap rendering is the one thing this declaration leaves unchecked. Joining it wants `it.failing(…, { when: <translated host> })` per tests/AGENTS.md rule 6 — a tolerated failure on a de_DE desk, a REAL assertion anywhere the host is untranslated, which no workflow here opts out of.","Adw.WindowTitle":`WINDOW_TITLE_VECTORS is a STEP table over a fresh widget and its rows spell their own titles; the authored "Inbox"/"3 unread messages" is no row's input, and LABEL_VISIBILITY_VECTORS keys on the label TEXT for the same reason.`},switchRowRowFor=t=>e.find(e=>t===void 0?e.steps.length===0:e.steps.length===1&&e.steps[0].op===`set-active`&&e.steps[0].active===t);function expectationsForNode(e,i){let a=e.props??{},o=[],at=(t,n,r,a)=>o.push({path:i,gtype:e.tag,table:t,observable:n,expected:r,rule:a});if(e.tag===`AdwEntryRow`){let e=typeof a.text==`string`?a.text:``,t=r.find(t=>t.text===e);t&&at(`ENTRY_TEXT_LENGTH_VECTORS`,`entry-text-length`,t.length,t.rule)}if(e.tag===`AdwSwitchRow`){let e=typeof a.active==`boolean`?a.active:void 0,t=switchRowRowFor(e);t&&at(`SWITCH_ROW_NOTIFY_VECTORS`,`switch-row-active`,t.active,t.rule)}if(e.tag===`AdwBanner`){let e=typeof a.buttonLabel==`string`?a.buttonLabel:void 0;if(e!==void 0){let r=n.find(t=>t.label===e);r&&at(`BANNER_BUTTON_VISIBLE_VECTORS`,`banner-button-visible`,r.visible,r.rule);let i=t.find(t=>t.label===e);i&&at(`BANNER_BUTTON_TEXT_VECTORS`,`banner-button-text`,i.text,i.rule)}}return o}function walk(e,t,n){n(e,t),(e.children??[]).forEach((e,r)=>walk(e,`${t} > ${e.tag}[${r}]`,n))}function authoredNodes(e){let t=[];return walk(e,e.tag,(e,n)=>t.push({node:e,path:n})),t}function authoredTags(e,t=e=>e){return authoredNodes(e).map(({node:e})=>t(e.tag))}function subjectIndexOf(e,t){return authoredNodes(e).findIndex(e=>e.path===t)}function sharedTreeExpectations(e){let t=[];return walk(e,e.tag,(e,n)=>t.push(...expectationsForNode(e,n))),t}function reachedTables(e){let t=new Set;for(let n of e)for(let e of sharedTreeExpectations(n))t.add(e.table);return[...t].sort()}export{a as SHARED_TREE_BLOCKS_WITHOUT_EXPECTATIONS,i as SHARED_TREE_TABLES,authoredNodes,authoredTags,reachedTables,sharedTreeExpectations,subjectIndexOf};
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{SWITCH_ROW_NOTIFY_VECTORS as e}from"./action-row.js";import{BANNER_BUTTON_TEXT_VECTORS as t,BANNER_BUTTON_VISIBLE_VECTORS as n}from"./banner.js";import{ENTRY_TEXT_LENGTH_VECTORS as r}from"./entry-row.js";const i=[`BANNER_BUTTON_TEXT_VECTORS`,`BANNER_BUTTON_VISIBLE_VECTORS`,`ENTRY_TEXT_LENGTH_VECTORS`,`SWITCH_ROW_NOTIFY_VECTORS`],a={"Adw.ShortcutLabel":"a CHOICE, not an impossibility: SHORTCUT_LABEL_VECTORS is deliberately off SHARED_TREE_TABLES, because the row this block would instantiate is unreadable on a translated host — see the header. What that costs is one-sided. `adwaita-web` drives the table from its own spec and would pass the row here too; `gtk-host` drives it from NO spec, so libadwaita's own keycap rendering is the one thing this declaration leaves unchecked. Joining it wants `it.failing(…, { when: <translated host> })` per tests/AGENTS.md rule 6 — a tolerated failure on a de_DE desk, a REAL assertion anywhere the host is untranslated, which no workflow here opts out of.","Adw.WindowTitle":`WINDOW_TITLE_VECTORS is a STEP table over a fresh widget and its rows spell their own titles; the authored "Inbox"/"3 unread messages" is no row's input, and LABEL_VISIBILITY_VECTORS keys on the label TEXT for the same reason.`},switchRowRowFor=t=>e.find(e=>t===void 0?e.steps.length===0:e.steps.length===1&&e.steps[0].op===`set-active`&&e.steps[0].active===t);function expectationsForNode(e,i){let a=e.props??{},o=[],at=(t,n,r,a)=>o.push({path:i,gtype:e.tag,table:t,observable:n,expected:r,rule:a});if(e.tag===`AdwEntryRow`){let e=typeof a.text==`string`?a.text:``,t=r.find(t=>t.text===e);t&&at(`ENTRY_TEXT_LENGTH_VECTORS`,`entry-text-length`,t.length,t.rule)}if(e.tag===`AdwSwitchRow`){let e=typeof a.active==`boolean`?a.active:void 0,t=switchRowRowFor(e);t&&at(`SWITCH_ROW_NOTIFY_VECTORS`,`switch-row-active`,t.active,t.rule)}if(e.tag===`AdwBanner`){let e=typeof a.buttonLabel==`string`?a.buttonLabel:void 0;if(e!==void 0){let r=n.find(t=>t.label===e);r&&at(`BANNER_BUTTON_VISIBLE_VECTORS`,`banner-button-visible`,r.visible,r.rule);let i=t.find(t=>t.label===e);i&&at(`BANNER_BUTTON_TEXT_VECTORS`,`banner-button-text`,i.text,i.rule)}}return o}function walk(e,t,n){n(e,t),(e.children??[]).forEach((e,r)=>walk(e,`${t} > ${e.tag}[${r}]`,n))}function authoredNodes(e){let t=[];return walk(e,e.tag,(e,n)=>t.push({node:e,path:n})),t}function authoredTags(e,t=e=>e){return authoredNodes(e).map(({node:e})=>t(e.tag))}function sharedTreePlacements(e){return authoredNodes(e).filter(({node:e})=>e.slot!==void 0).map(({node:e,path:t})=>({path:t,slot:e.slot}))}function withoutPlacements(e){let{slot:t,children:n,...r}=e;return{...r,...n===void 0?{}:{children:n.map(withoutPlacements)}}}function subjectIndexOf(e,t){return authoredNodes(e).findIndex(e=>e.path===t)}function sharedTreeExpectations(e){let t=[];return walk(e,e.tag,(e,n)=>t.push(...expectationsForNode(e,n))),t}function reachedTables(e){let t=new Set;for(let n of e)for(let e of sharedTreeExpectations(n))t.add(e.table);return[...t].sort()}export{a as SHARED_TREE_BLOCKS_WITHOUT_EXPECTATIONS,i as SHARED_TREE_TABLES,authoredNodes,authoredTags,reachedTables,sharedTreeExpectations,sharedTreePlacements,subjectIndexOf,withoutPlacements};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=[{gtype:`AdwPreferencesGroup`,expected:`adw-preferences-group`,rule:`a plain PascalCase run — one dash per word boundary, no acronym involved`},{gtype:`AdwSwitchRow`,expected:`adw-switch-row`,rule:"the `Adw` prefix follows the same floor rule as `Gtk`"},{gtype:`GtkBox`,expected:`gtk-box`,rule:`the shortest case: prefix plus one word`},{gtype:`GtkGLArea`,expected:`gtk-gl-area`,rule:"THE ACRONYM VECTOR: the measured regression — a naive boundary split produced `gtk-glarea`; the last capital of an acronym run opens the next word, so `GL` closes before `Area` opens"},{gtype:`GtkATContext`,expected:`gtk-at-context`,rule:`the same rule for a two-letter acronym immediately followed by a whole word`},{gtype:`GtkIMMulticontext`,expected:`gtk-im-multicontext`,rule:"and for a three-capital run: `IM` closes before `Multicontext` opens, not `i-m-multicontext`"},{gtype:`GtkPad2Btn`,expected:`gtk-pad2-btn`,rule:`THE DIGIT VECTOR (synthetic — no real Gtk/Adw class carries a digit): a digit is not an uppercase letter, so it ends a lower run exactly like a lowercase letter would, and the capital after it still opens a new word`},{gtype:`preferences-group`,error:`hostTagOf: preferences-group is not a GIR class name`,rule:"refuses an already-kebab name — `hostTagOf` only accepts the PascalCase GIR spelling"},{gtype:``,error:`hostTagOf: is not a GIR class name`,rule:`refuses the empty string`},{gtype:`WkWebView`,error:`hostTagOf: WkWebView is not a GIR class name`,rule:"refuses a real GIR class from a namespace that is neither `Adw` nor `Gtk`"}],t=[{prop:`buttonLabel`,expected:`button-label`,rule:`the documented example — one boundary, one dash`},{prop:`showInitials`,expected:`show-initials`,rule:`the same rule on a second authored property`},{prop:`title`,expected:`title`,rule:`a single-word name has no capital to kebab, so it passes through unchanged`},{prop:``,expected:``,rule:`the empty string passes through unchanged`},{prop:`button-label`,expected:`button-label`,rule:`an ALREADY-KEBAB name has no capital either, so it is idempotent — safe to call twice`}],n=[{name:`maximum-size`,expected:`maximumSize`,rule:`one hyphen, one capital`},{name:`tightening-threshold`,expected:`tighteningThreshold`,rule:`the same rule on a second property of the same widget`},{name:`icon_name`,expected:`iconName`,rule:"GObject reads `_` as `-`, so it closes a word too"},{name:`label`,expected:`label`,rule:`a single-word name passes through unchanged`},{name:`maximumSize`,expected:`maximumSize`,rule:`an ALREADY-camel name has no separator, so it is idempotent, as the hand-authored trees need`}];export{t as ATTRIBUTE_OF_VECTORS,e as HOST_TAG_VECTORS,n as PROPERTY_OF_VECTORS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=[{rule:"`strings [ ]` fills an `Adw.ComboRow` model in source order; a marked item keeps its text",blueprint:`Adw.ComboRow { title: "Colour"; model: Gtk.StringList { strings [ "Blue", _("Teal"), C_("colour", "Green") ] }; }`,strings:[`Blue`,`Teal`,`Green`]},{rule:"`strings [ ]` fills a `Gtk.DropDown` model the same way",blueprint:`Gtk.DropDown { model: Gtk.StringList { strings [ "Small", "Medium", "Large" ] }; }`,strings:[`Small`,`Medium`,`Large`]},{rule:"`responses [ ]` adds each response in order; `destructive` and `suggested` are its appearance",blueprint:`Adw.AlertDialog { heading: "Delete?"; responses [ cancel: _("Cancel"), delete: _("Delete") destructive, keep: "Keep" suggested ] }`,responses:[{id:`cancel`,label:`Cancel`,appearance:`default`,enabled:!0},{id:`delete`,label:`Delete`,appearance:`destructive`,enabled:!0},{id:`keep`,label:`Keep`,appearance:`suggested`,enabled:!0}]},{rule:"`disabled` is `enabled: false`, and it combines with an appearance rather than replacing it",blueprint:`Adw.AlertDialog { heading: "Save?"; responses [ save: C_("verb", "Save") suggested disabled, later: "Later" disabled ] }`,responses:[{id:`save`,label:`Save`,appearance:`suggested`,enabled:!1},{id:`later`,label:`Later`,appearance:`default`,enabled:!1}]}];export{e as VALUE_LIST_VECTORS};
|
package/lib/esm/dialog.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./_virtual/_rolldown/runtime.js";var AdwAlertResponses=class{constructor(e=``,t=``){this._responses=[],this._defaultResponse=null,this._closeResponse=`close`,this._heading=e??``,this._body=t??``}get heading(){return this._heading}set heading(e){this._heading=e??``}get body(){return this._body}set body(e){this._body=e??``}addResponse(e,t,n={}){let r=this._responses.find(t=>t.id===e);if(r){r.label=t,n.appearance!==void 0&&(r.appearance=n.appearance),n.enabled!==void 0&&(r.enabled=n.enabled);return}this._responses.push({id:e,label:t,appearance:n.appearance??`default`,enabled:n.enabled??!0})}addResponses(...e){for(let t=0;t+1<e.length;t+=2)this.addResponse(e[t],e[t+1])}hasResponse(e){return this._responses.some(t=>t.id===e)}setResponseAppearance(e,t){let n=this._responses.find(t=>t.id===e);n&&(n.appearance=t)}getResponseAppearance(e){return this._responses.find(t=>t.id===e)?.appearance??`default`}setResponseEnabled(e,t){let n=this._responses.find(t=>t.id===e);n&&(n.enabled=t)}getResponseEnabled(e){return this._responses.find(t=>t.id===e)?.enabled??!0}get responses(){return this._responses}get defaultResponse(){return this._defaultResponse}set defaultResponse(e){this._defaultResponse=e}get closeResponse(){return this._closeResponse}set closeResponse(e){this._closeResponse=e||`close`}get usesActionSheet(){return this._responses.length>3}orderResponses(){let e=this._responses.find(e=>e.id===this._defaultResponse)??this._responses[0],t=this._responses.filter(t=>t!==e);return{ok:e,cancel:t[t.length-1],neutral:t.length>=2?t[0]:void 0}}resolveById(e){return e!=null&&this.hasResponse(e)?e:this._closeResponse}resolveLabel(e){return e==null?this._closeResponse:this.resolveById(this._responses.find(t=>t.label===e)?.id)}};function resolveBottomSheetClose(e,t){let n=!!t.open,r=!!t.canClose;switch(e){case`drag-handle`:return`ignored`;case`swipe`:return n&&r?`close`:`ignored`;case`dimming`:return n?r?`close`:`close-attempt`:`ignored`;case`close-button`:return r?n?`close`:`delegate`:`close-attempt`;case`escape`:return r&&n?`close`:`close-attempt`}}var BottomSheetPresentation=class{constructor(e={}){this._open=!1,this._canClose=!0,this._hasBeenOpen=!1,this._listeners=new Set,this._onClosing=e.onClosing,this._onClosed=e.onClosed}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}_emit(){for(let e of[...this._listeners])e(this._open)}get open(){return this._open}get canClose(){return this._canClose}get hasBeenOpen(){return this._hasBeenOpen}setCanClose(e){let t=!!e;return t===this._canClose?!1:(this._canClose=t,!0)}setOpen(e){let t=!!e;return this._open===t?(!this._hasBeenOpen&&!t&&(this._onClosing?.(),this._onClosed?.()),!1):(this._open=t,t&&(this._hasBeenOpen=!0),!t&&(this._onClosing?.(),this._open!==t)?!1:(this._emit(),!0))}requestClose(e){let t=resolveBottomSheetClose(e,this);return t===`close`&&this.setOpen(!1),t}finishClose(){return this._open?!1:(this._onClosed?.(),!0)}};export{AdwAlertResponses,BottomSheetPresentation,resolveBottomSheetClose};
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";var AdwAlertResponses=class{constructor(e=``,t=``){this._responses=[],this._defaultResponse=null,this._closeResponse=`close`,this._heading=e??``,this._body=t??``}get heading(){return this._heading}set heading(e){this._heading=e??``}get body(){return this._body}set body(e){this._body=e??``}addResponse(e,t,n={}){let r=this._responses.find(t=>t.id===e);if(r){r.label=t,n.appearance!==void 0&&(r.appearance=n.appearance),n.enabled!==void 0&&(r.enabled=n.enabled);return}this._responses.push({id:e,label:t,appearance:n.appearance??`default`,enabled:n.enabled??!0})}addResponses(...e){for(let t=0;t+1<e.length;t+=2)this.addResponse(e[t],e[t+1])}hasResponse(e){return this._responses.some(t=>t.id===e)}setResponseAppearance(e,t){let n=this._responses.find(t=>t.id===e);n&&(n.appearance=t)}getResponseAppearance(e){return this._responses.find(t=>t.id===e)?.appearance??`default`}setResponseEnabled(e,t){let n=this._responses.find(t=>t.id===e);n&&(n.enabled=t)}getResponseEnabled(e){return this._responses.find(t=>t.id===e)?.enabled??!0}get responses(){return this._responses}get defaultResponse(){return this._defaultResponse}set defaultResponse(e){this._defaultResponse=e}get closeResponse(){return this._closeResponse}set closeResponse(e){this._closeResponse=e||`close`}get usesActionSheet(){return this._responses.length>3}orderResponses(){let e=this._responses.find(e=>e.id===this._defaultResponse)??this._responses[0],t=this._responses.filter(t=>t!==e);return{ok:e,cancel:t[t.length-1],neutral:t.length>=2?t[0]:void 0}}resolveById(e){return e!=null&&this.hasResponse(e)?e:this._closeResponse}resolveLabel(e){return e==null?this._closeResponse:this.resolveById(this._responses.find(t=>t.label===e)?.id)}};function resolveBottomSheetClose(e,t){let n=!!t.open,r=!!t.canClose;switch(e){case`drag-handle`:return`ignored`;case`swipe`:return n&&r?`close`:`ignored`;case`dimming`:return n?r?`close`:`close-attempt`:`ignored`;case`close-button`:return r?n?`close`:`delegate`:`close-attempt`;case`escape`:return r&&n?`close`:`close-attempt`}}function resolveBottomSheetOpen(e,t){if(e===`drag-handle`)return`ignored`;let n=resolveBottomSheetChrome(t);return n.layer!==`bottom-bar`||!n.surfaceVisible||n.bottomBarInert?`ignored`:`open`}function resolveBottomSheetChrome(e){let t=!!e.open,n=!!e.hasBottomBar,r=e.revealBottomBar??!0;return{layer:t||!n?`sheet`:`bottom-bar`,surfaceVisible:t||n&&r,bottomBarInert:!e.canOpen,dimmed:t&&(e.modal??!0)}}function resolveBottomSheetSwipeTracker(e){return{enabled:!!e.canOpen&&!!e.hasBottomBar||!!e.canClose,allowMouseDrag:!!e.showDragHandle||!!e.hasBottomBar,lowerOvershoot:!!e.hasBottomBar}}var BottomSheetPresentation=class{constructor(e={}){this._open=!1,this._canClose=!0,this._canOpen=!0,this._hasBottomBar=!1,this._revealBottomBar=!0,this._modal=!0,this._hasBeenOpen=!1,this._listeners=new Set,this._onClosing=e.onClosing,this._onClosed=e.onClosed}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}_emit(){for(let e of[...this._listeners])e(this._open)}get open(){return this._open}get canClose(){return this._canClose}get hasBeenOpen(){return this._hasBeenOpen}get canOpen(){return this._canOpen}get hasBottomBar(){return this._hasBottomBar}get revealBottomBar(){return this._revealBottomBar}get modal(){return this._modal}get chrome(){return resolveBottomSheetChrome(this)}setCanClose(e){let t=!!e;return t===this._canClose?!1:(this._canClose=t,!0)}setCanOpen(e){let t=!!e;return t===this._canOpen?!1:(this._canOpen=t,!0)}setHasBottomBar(e){let t=!!e;return t===this._hasBottomBar?!1:(this._hasBottomBar=t,!0)}setModal(e){let t=!!e;return t===this._modal?!1:(this._modal=t,!0)}setRevealBottomBar(e){let t=!!e;return t===this._revealBottomBar?!1:(this._revealBottomBar=t,!0)}setOpen(e){let t=!!e;return this._open===t?(!this._hasBeenOpen&&!t&&(this._onClosing?.(),this._onClosed?.()),!1):(this._open=t,t&&(this._hasBeenOpen=!0),!t&&(this._onClosing?.(),this._open!==t)?!1:(this._emit(),!0))}requestClose(e){let t=resolveBottomSheetClose(e,this);return t===`close`&&this.setOpen(!1),t}requestOpen(e){let t=resolveBottomSheetOpen(e,this);return t===`open`&&this.setOpen(!0),t}finishClose(){return this._open?!1:(this._onClosed?.(),!0)}};export{AdwAlertResponses,BottomSheetPresentation,resolveBottomSheetChrome,resolveBottomSheetClose,resolveBottomSheetOpen,resolveBottomSheetSwipeTracker};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";var GioMenuItem=class{constructor(e=null,t=null){this.set_label(e),this.set_detailed_action(t)}set_label(e){e===null?delete this.label:this.label=e}set_detailed_action(e){e===null?delete this.action:this.action=e}},GioMenu=class extends Array{append(e,t=null){this.append_item(new GioMenuItem(e,t))}append_item(e){this.push(e)}append_section(e,t){let n={section:t};e!==null&&(n.label=e),this.push(n)}append_submenu(e,t){this.push({label:e??``,submenu:t})}};export{GioMenu,GioMenuItem};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";import{normalizeAdjustment as e}from"./adjustment.js";var GtkAdjustment=class{constructor(t){let n=e(t);this.value=n.value,this.lower=n.lower,this.upper=n.upper,this.stepIncrement=n.stepIncrement,this.pageIncrement=n.pageIncrement,this.pageSize=n.pageSize}_write(t){let n=e(t,this);this.value=n.value,this.lower=n.lower,this.upper=n.upper,this.stepIncrement=n.stepIncrement,this.pageIncrement=n.pageIncrement,this.pageSize=n.pageSize}configure(e,t,n,r,i,a){this._write({value:e,lower:t,upper:n,stepIncrement:r,pageIncrement:i,pageSize:a})}get_value(){return this.value}set_value(e){this._write({value:e})}get_lower(){return this.lower}set_lower(e){this._write({lower:e})}get_upper(){return this.upper}set_upper(e){this._write({upper:e})}get_step_increment(){return this.stepIncrement}set_step_increment(e){this._write({stepIncrement:e})}get_page_increment(){return this.pageIncrement}set_page_increment(e){this._write({pageIncrement:e})}get_page_size(){return this.pageSize}set_page_size(e){this._write({pageSize:e})}get_minimum_increment(){return Math.min(this.stepIncrement,this.pageIncrement)}};export{GtkAdjustment};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";var GtkStringList=class extends Array{static get[Symbol.species](){return Array}constructor(e){super();for(let t of e?.strings??[])this.push(t)}get strings(){return[...this]}set strings(e){let t=typeof e==`string`?JSON.parse(e):e;if(!Array.isArray(t)||t.some(e=>typeof e!=`string`))throw TypeError(`Gtk.StringList:strings takes an array of strings, not ${JSON.stringify(e)}.`);this.length=0;for(let e of t)this.push(e)}append(e){this.push(e)}take(e){this.push(e)}remove(e){Array.prototype.splice.call(this,e,1)}splice(e,t,...n){let r=t??this.length-e,i=[];for(let e of n)typeof e==`string`?i.push(e):i.push(...e);return Array.prototype.splice.call(this,e,r,...i)}get_string(e){return this[e]??null}get_n_items(){return this.length}};export{GtkStringList};
|
package/lib/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{gStrStrip as e,glibClamp as t,stringIsNotEmpty as n,stripMnemonic as r}from"./glib.js";import{ADW_ABOUT_DIALOG_LABELS as i,ADW_CREDITS_SECTION_TITLES as a,ADW_LICENSES as o,ADW_LICENSE_ALIASES as s,ADW_LICENSE_DEFAULTS as c,ADW_LICENSE_WARRANTY_TEMPLATE as l,ADW_TRANSLATOR_CREDITS_SENTINELS as u,GTK_LICENSE as d,aboutDialogVisibility as f,creditsSections as p,isLicenseType as m,legalSectionVisible as h,licenseText as g,licenseTypeForSpdxId as _,parseCreditPerson as v,setLicense as y,setLicenseType as b,translatorCreditsPeople as x}from"./about-dialog.js";import{ADW_ACCENT_BG_COLORS as S,ADW_ACCENT_COLOR_NAMES as C,ADW_ACCENT_FG_COLOR as w,ADW_DEFAULT_ACCENT_COLOR as T,adwaitaAccent as E,adwaitaAccentBgColor as D,adwaitaAccentColor as O,adwaitaStandaloneColor as k,isAdwAccentColorName as A,onAdwaitaAccentChanged as j,setAdwaitaAccent as M}from"./accent.js";import{ActionRowState as N,BUTTON_ROW_ACTIVATABLE as P,ButtonRowState as F,SwitchRowState as I,WindowTitleState as L,deriveRowLabels as R}from"./action-row.js";import{ADW_ADJUSTMENT_DEFAULTS as z,SpinState as B,adjustmentRange as V,clampAdjustmentValue as H,normalizeAdjustment as U,parseAdjustment as W,snapAdjustmentValue as G}from"./adjustment.js";import{AVATAR_COLORS as K,AVATAR_COLOR_COUNT as q,avatarColor as J,avatarColorClass as Y,avatarFontSize as X,avatarIconSize as Z,avatarInitials as Q,avatarMaxFontSize as $,avatarMode as ee,flattenAvatarGradient as te,gStrHash as ne,randomAvatarColorClass as re}from"./avatar.js";import{ADW_BANNER_BUTTON_STYLES as ie,ADW_BANNER_BUTTON_STYLE_CLASSES as ae,ADW_BANNER_DEFAULTS as oe,bannerButtonStyleClasses as se,bannerButtonText as ce,bannerButtonVisible as le,bannerRenderState as ue,isBannerButtonStyle as de,parseBannerButtonStyle as fe}from"./banner.js";import{AdwBreakpoint as pe,evaluateBreakpointCondition as me,parseBreakpointCondition as he}from"./breakpoint.js";import{BreakpointBinState as ge}from"./breakpoint-bin.js";import{ADW_BUTTON_CONTENT_DEFAULTS as _e,BUTTON_CONTENT_BOX_SPACING as ve,BUTTON_CONTENT_FALLBACK_ICON as ye,BUTTON_CONTENT_STYLE_CLASS as be,buttonContentEllipsize as xe,buttonContentIconExpands as Se,buttonContentIconIsEmpty as Ce,buttonContentIconName as we,buttonContentLabelText as Te,buttonContentLabelVisible as Ee,buttonContentRenderState as De,buttonContentStyleTargetIndex as Oe}from"./button-content.js";import{ADW_BUTTON_STYLE_ALIASES as ke,ADW_BUTTON_STYLE_CLASSES as Ae,buttonStyleClass as je,buttonStyleClasses as Me}from"./button.js";import{ADW_SWIPE_DECELERATION_TOUCH as Ne,ADW_SWIPE_DECELERATION_TOUCHPAD as Pe,ADW_SWIPE_DRAG_THRESHOLD as Fe,ADW_SWIPE_EPSILON as Ie,ADW_SWIPE_HISTORY_THRESHOLD_MS as Le,ADW_SWIPE_PARABOLA_MULTIPLIER as Re,ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_H as ze,ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_V as Be,ADW_SWIPE_VELOCITY_CURVE_THRESHOLD as Ve,ADW_SWIPE_VELOCITY_THRESHOLD_TOUCH as He,ADW_SWIPE_VELOCITY_THRESHOLD_TOUCHPAD as Ue,SwipeTracker as We,swipeBounds as Ge,swipeClosestPointIndex as Ke,swipeEndProgress as qe,swipeNextPointIndex as Je,swipePreviousPointIndex as Ye,swipeProjectedPointIndex as Xe,swipeSlope as Ze,swipeVelocityThreshold as Qe}from"./swipe.js";import{CAROUSEL_SCROLL_TIMEOUT_MS as $e,CAROUSEL_SETTLE_EPSILON as et,CarouselState as tt,carouselClampPosition as nt,carouselClosestSnapPoint as rt,carouselNavigateTarget as it,carouselPageAllocation as at,carouselPageAtPosition as ot,carouselRange as st,carouselReorderShift as ct,carouselSizesFromSnapPoints as lt,carouselSnapPoints as ut,carouselWheelStep as dt}from"./carousel.js";import{RadioGroupState as ft,resolveCheckState as pt}from"./checks.js";import{adwLerp as mt,easeInOutSine as ht,easeOutCubic as gt,inverseLerp as _t}from"./easing.js";import{ADW_CLAMP_DEFAULTS as vt,ADW_CLAMP_SIZE_CLASSES as yt,ADW_SPINNER_MAX_SIZE as bt,ADW_SPINNER_MIN_SIZE as xt,ADW_TOOLBAR_BAR_CLASSES as St,ADW_TOOLBAR_VIEW_CLASSES as Ct,ADW_TOOLBAR_VIEW_DEFAULTS as wt,clampAllocate as Tt,clampChildSize as Et,clampSizeFromChild as Dt,clampThresholds as Ot,normalizeClampSize as kt,parseToolbarStyle as At,resolveSpinnerSize as jt,spinnerGeometry as Mt,toolbarBarStyleClasses as Nt,toolbarViewAllocate as Pt,toolbarViewClasses as Ft,toolbarViewContentForSize as It,toolbarViewMeasure as Lt}from"./chrome.js";import{DEFAULT_ICON_COLOR as Rt,DEFAULT_ICON_COLOR_DARK as zt,adwaitaColorScheme as Bt,isThemeIconColor as Vt,onAdwaitaColorSchemeChanged as Ht,setAdwaitaColorScheme as Ut,themeIconColor as Wt,toggleAdwaitaColorScheme as Gt}from"./color-scheme.js";import{ViewStackState as Kt,normalizeIconName as qt,resolvePageTitle as Jt}from"./view-stack.js";import{DEFAULT_TAB_AUTOHIDE as Yt,TabViewState as Xt,isDescendantOfPage as Zt,successorAfterClose as Qt,tabCloseVisible as $t,tabIconState as en,tabTooltip as tn,tabTooltipIsMarkup as nn,tabViewItemsChanged as rn,tabsRevealed as an}from"./tab-view.js";import{ADW_DATA_GRID_ROW_VARIANTS as on,DATA_GRID_CELL_CLASS as sn,DATA_GRID_ROW_CLASS as cn,dataGridCellText as ln,dataGridColumnAlign as un,dataGridColumnClasses as dn,dataGridRowInteractive as fn,dataGridTrackTemplate as pn,dataGridTracks as mn,normalizeDataGridColumns as hn,normalizeDataGridVariant as gn}from"./data-grid.js";import{AdwAlertResponses as _n,BottomSheetPresentation as vn,resolveBottomSheetClose as yn}from"./dialog.js";import{CAPS_LOCK_ICON_NAME as bn,CAPS_LOCK_TOOLTIP as xn,EMPTY_ANIMATION_DURATION_MS as Sn,ENTRY_ROW_APPLY_ICON_NAME as Cn,ENTRY_ROW_APPLY_TOOLTIP as wn,ENTRY_ROW_EDIT_ICON_NAME as Tn,ENTRY_ROW_MAX_LENGTH_LIMIT as En,ENTRY_ROW_TITLE_SPACING as Dn,EntryRowState as On,PASSWORD_CONCEAL_ICON_NAME as kn,PASSWORD_CONCEAL_LABEL as An,PASSWORD_REVEAL_ICON_NAME as jn,PASSWORD_REVEAL_LABEL as Mn,PasswordEntryRowState as Nn,clampEntryText as Pn,entryTextLength as Fn}from"./entry-row.js";import{HeaderBarState as In,resolveHeaderBarTitle as Ln}from"./header-bar.js";import{AdwToast as Rn,AdwToastQueue as zn,DEFAULT_TOAST_TIMEOUT as Bn}from"./toast.js";import{ADW_COMBO_NO_SELECTION as Vn,clampListSelection as Hn,listItemsChanged as Un,normalizeComboOptions as Wn,parseListModel as Gn}from"./list.js";import{ComboState as Kn,ExpanderState as qn,ToggleGroupState as Jn}from"./rows.js";import{BACK_BUTTON_FALLBACK_TOOLTIP as Yn,NavigationViewState as Xn,describeNavigationDiagnostic as Zn}from"./navigation-view.js";import{ADW_SIDEBAR_NO_SELECTION as Qn,SidebarState as $n,adjustSidebarSelection as er,clampSidebarSelection as tr,flattenSidebarItems as nr,sidebarHeaders as rr}from"./sidebar.js";import{ADW_SPINNER_CONTRACT_DISTANCE as ir,ADW_SPINNER_CYCLES_PER_LOOP as ar,ADW_SPINNER_CYCLE_LENGTH as or,ADW_SPINNER_EXTEND_DISTANCE as sr,ADW_SPINNER_IDLE_DISTANCE as cr,ADW_SPINNER_MAX_ARC_LENGTH as lr,ADW_SPINNER_MIN_ARC_LENGTH as ur,ADW_SPINNER_N_CYCLES as dr,ADW_SPINNER_OVERLAP_DISTANCE as fr,ADW_SPINNER_SPIN_DURATION_MS as pr,ADW_SPINNER_START_ANGLE as mr,ADW_SPINNER_STILL_PROGRESS as hr,ADW_SPINNER_TRACK_OPACITY as gr,normalizeSpinnerAngle as _r,spinnerArc as vr,spinnerArcEnd as yr,spinnerArcStart as br,spinnerProgressAt as xr}from"./spinner.js";import{parseAccelerator as Sr,parseShortcutLabel as Cr,shortcutKeycaps as wr}from"./shortcut-label.js";import{ADW_LENGTH_UNITS as Tr,DEFAULT_DPI as Er,adwLengthToPx as Dr,normalizeLengthUnit as Or}from"./length-unit.js";import{ADW_SWIPE_BORDER as kr,DEFAULT_MAX_SIDEBAR_WIDTH as Ar,DEFAULT_MIN_SIDEBAR_WIDTH as jr,DEFAULT_SIDEBAR_WIDTH_FRACTION as Mr,DEFAULT_SIDEBAR_WIDTH_UNIT as Nr,INSTANT_SPLIT_VIEW_ANIMATOR as Pr,NAVIGATION_SPLIT_VIEW_CRITICALS as Fr,NavigationSplitViewState as Ir,OverlaySplitViewState as Lr,isSidebarAtVisualStart as Rr,layoutNavigationSplitView as zr,layoutOverlaySplitView as Br,measureSplitViewHorizontal as Vr,resolveNaturalSidebarWidth as Hr,resolveNavigationAction as Ur,resolveNavigationSidebarWidth as Wr,resolveNavigationStack as Gr,resolveOverlaySidebarWidth as Kr,resolveSidebarBounds as qr,resolveSwipeArea as Jr,resolveSwipeRelease as Yr,resolveSwipeSnapPoints as Xr,resolveSwipeStart as Zr,swipeCancelProgress as Qr,tagsConflict as $r}from"./split-view.js";import{ADW_MENU_SURFACE_NATIVESCRIPT as ei,ADW_MENU_SURFACE_WEB as ti,assertMenuRenderable as ni,flattenMenu as ri,menuItemAt as ii,menuNodeAt as ai,menuRefusals as oi,normalizeMenuModel as si,parseDetailedAction as ci,parseMenuModel as li,resolveMenuItemState as ui}from"./menu.js";import{DEFAULT_DROPDOWN_TOOLTIP as di,SPLIT_BUTTON_DISABLED_OPACITY as fi,SplitButtonState as pi,isSplitButtonDirection as mi,menuButtonArrowIcon as hi,menuButtonPopupDirection as gi,resolveDropdownTooltip as _i,splitButtonArrowIcon as vi,splitButtonPopupDirection as yi,splitButtonRootState as bi,splitButtonStyleClasses as xi}from"./split-button.js";import{DEFAULT_INDICATOR_DESCRIPTION_STRINGS as Si,INLINE_VIEW_SWITCHER_DISPLAY_MODES as Ci,VIEW_SWITCHER_BADGE_LIMIT as wi,VIEW_SWITCHER_DRAG_SWITCH_DELAY as Ti,VIEW_SWITCHER_FALLBACK_ICON as Ei,VIEW_SWITCHER_NO_SELECTION as Di,VIEW_SWITCHER_POLICIES as Oi,ViewSwitcherBarState as ki,ViewSwitcherDragSwitch as Ai,ViewSwitcherState as ji,buildInlineToggles as Mi,buildViewSwitcherButtons as Ni,createViewSwitcherPage as Pi,inlineToggleTooltip as Fi,isInlineViewSwitcherDisplayMode as Ii,isViewSwitcherButtonVisible as Li,isViewSwitcherPolicy as Ri,pageIndexForToggle as zi,shouldRevealViewSwitcherBar as Bi,toggleIndexForPage as Vi,viewSwitcherBadgeLabel as Hi,viewSwitcherButtonOrientation as Ui,viewSwitcherIconName as Wi,viewSwitcherIndicatorDescription as Gi,viewSwitcherLabel as Ki,viewSwitcherPageFromStackPage as qi,viewSwitcherPagesFromStack as Ji}from"./view-switcher.js";import{UNTITLED_PAGE_LABEL as Yi,collectSearchRows as Xi,countVisiblePages as Zi,createSearchRowSubtitle as Qi,defaultCaseFolder as $i,derivePreferencesGroupHeader as ea,escapeMarkup as ta,makeComparable as na,rowMatchesQuery as ra,searchPreferences as ia,stripMarkup as aa}from"./preferences.js";import{ADW_MAX_OVERSHOOT_DISTANCE as oa,ADW_OVERSHOOT_SETTLE_MS as sa,ADW_UNDERSHOOT_CLASSES as ca,ADW_UNDERSHOOT_SIZE as la,accumulateOvershoot as ua,isScrolledFromEnd as da,isScrolledFromStart as fa,overshootDistance as pa,scrollMaxValue as ma,scrollUndershootClasses as ha}from"./scrolling.js";import{POPOVER_ITEM_RADIUS as ga,POPOVER_MENU_PADDING as _a,POPOVER_PADDING as va,POPOVER_RADIUS as ya,PopoverState as ba,resolvePopoverKey as xa}from"./popover.js";import{ADW_WRAP_BOX_DEFAULT_ALIGN as Sa,ADW_WRAP_BOX_DEFAULT_JUSTIFY as Ca,ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE as wa,ADW_WRAP_BOX_DEFAULT_LENGTH_UNIT as Ta,ADW_WRAP_BOX_DEFAULT_PACK_DIRECTION as Ea,ADW_WRAP_BOX_DEFAULT_SPACING as Da,ADW_WRAP_BOX_DEFAULT_WRAP_POLICY as Oa,ADW_WRAP_BOX_JUSTIFY_MODES as ka,ADW_WRAP_BOX_NATURAL_LINE_LENGTH_UNSET as Aa,ADW_WRAP_BOX_PACK_DIRECTIONS as ja,ADW_WRAP_POLICIES as Ma,normalizeNaturalLineLength as Na,normalizeWrapBoxAlign as Pa,normalizeWrapBoxJustify as Fa,normalizeWrapBoxLengthUnit as Ia,normalizeWrapBoxPackDirection as La,normalizeWrapBoxSpacing as Ra,normalizeWrapPolicy as za,resolveWrapBoxChildOrder as Ba,resolveWrapBoxLine as Va,wrapBoxChildFlex as Ha,wrapBoxFlexStyle as Ua,wrapBoxLengthToPx as Wa,wrapPolicyFlexShrink as Ga}from"./wrap-box.js";export{i as ADW_ABOUT_DIALOG_LABELS,S as ADW_ACCENT_BG_COLORS,C as ADW_ACCENT_COLOR_NAMES,w as ADW_ACCENT_FG_COLOR,z as ADW_ADJUSTMENT_DEFAULTS,ie as ADW_BANNER_BUTTON_STYLES,ae as ADW_BANNER_BUTTON_STYLE_CLASSES,oe as ADW_BANNER_DEFAULTS,_e as ADW_BUTTON_CONTENT_DEFAULTS,ke as ADW_BUTTON_STYLE_ALIASES,Ae as ADW_BUTTON_STYLE_CLASSES,vt as ADW_CLAMP_DEFAULTS,yt as ADW_CLAMP_SIZE_CLASSES,Vn as ADW_COMBO_NO_SELECTION,a as ADW_CREDITS_SECTION_TITLES,on as ADW_DATA_GRID_ROW_VARIANTS,T as ADW_DEFAULT_ACCENT_COLOR,Tr as ADW_LENGTH_UNITS,o as ADW_LICENSES,s as ADW_LICENSE_ALIASES,c as ADW_LICENSE_DEFAULTS,l as ADW_LICENSE_WARRANTY_TEMPLATE,oa as ADW_MAX_OVERSHOOT_DISTANCE,ei as ADW_MENU_SURFACE_NATIVESCRIPT,ti as ADW_MENU_SURFACE_WEB,sa as ADW_OVERSHOOT_SETTLE_MS,Qn as ADW_SIDEBAR_NO_SELECTION,ir as ADW_SPINNER_CONTRACT_DISTANCE,ar as ADW_SPINNER_CYCLES_PER_LOOP,or as ADW_SPINNER_CYCLE_LENGTH,sr as ADW_SPINNER_EXTEND_DISTANCE,cr as ADW_SPINNER_IDLE_DISTANCE,lr as ADW_SPINNER_MAX_ARC_LENGTH,bt as ADW_SPINNER_MAX_SIZE,ur as ADW_SPINNER_MIN_ARC_LENGTH,xt as ADW_SPINNER_MIN_SIZE,dr as ADW_SPINNER_N_CYCLES,fr as ADW_SPINNER_OVERLAP_DISTANCE,pr as ADW_SPINNER_SPIN_DURATION_MS,mr as ADW_SPINNER_START_ANGLE,hr as ADW_SPINNER_STILL_PROGRESS,gr as ADW_SPINNER_TRACK_OPACITY,kr as ADW_SWIPE_BORDER,Ne as ADW_SWIPE_DECELERATION_TOUCH,Pe as ADW_SWIPE_DECELERATION_TOUCHPAD,Fe as ADW_SWIPE_DRAG_THRESHOLD,Ie as ADW_SWIPE_EPSILON,Le as ADW_SWIPE_HISTORY_THRESHOLD_MS,Re as ADW_SWIPE_PARABOLA_MULTIPLIER,ze as ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_H,Be as ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_V,Ve as ADW_SWIPE_VELOCITY_CURVE_THRESHOLD,He as ADW_SWIPE_VELOCITY_THRESHOLD_TOUCH,Ue as ADW_SWIPE_VELOCITY_THRESHOLD_TOUCHPAD,St as ADW_TOOLBAR_BAR_CLASSES,Ct as ADW_TOOLBAR_VIEW_CLASSES,wt as ADW_TOOLBAR_VIEW_DEFAULTS,u as ADW_TRANSLATOR_CREDITS_SENTINELS,ca as ADW_UNDERSHOOT_CLASSES,la as ADW_UNDERSHOOT_SIZE,Sa as ADW_WRAP_BOX_DEFAULT_ALIGN,Ca as ADW_WRAP_BOX_DEFAULT_JUSTIFY,wa as ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE,Ta as ADW_WRAP_BOX_DEFAULT_LENGTH_UNIT,Ea as ADW_WRAP_BOX_DEFAULT_PACK_DIRECTION,Da as ADW_WRAP_BOX_DEFAULT_SPACING,Oa as ADW_WRAP_BOX_DEFAULT_WRAP_POLICY,ka as ADW_WRAP_BOX_JUSTIFY_MODES,Aa as ADW_WRAP_BOX_NATURAL_LINE_LENGTH_UNSET,ja as ADW_WRAP_BOX_PACK_DIRECTIONS,Ma as ADW_WRAP_POLICIES,K as AVATAR_COLORS,q as AVATAR_COLOR_COUNT,N as ActionRowState,_n as AdwAlertResponses,pe as AdwBreakpoint,Rn as AdwToast,zn as AdwToastQueue,Yn as BACK_BUTTON_FALLBACK_TOOLTIP,ve as BUTTON_CONTENT_BOX_SPACING,ye as BUTTON_CONTENT_FALLBACK_ICON,be as BUTTON_CONTENT_STYLE_CLASS,P as BUTTON_ROW_ACTIVATABLE,vn as BottomSheetPresentation,ge as BreakpointBinState,F as ButtonRowState,bn as CAPS_LOCK_ICON_NAME,xn as CAPS_LOCK_TOOLTIP,$e as CAROUSEL_SCROLL_TIMEOUT_MS,et as CAROUSEL_SETTLE_EPSILON,tt as CarouselState,Kn as ComboState,sn as DATA_GRID_CELL_CLASS,cn as DATA_GRID_ROW_CLASS,Er as DEFAULT_DPI,di as DEFAULT_DROPDOWN_TOOLTIP,Rt as DEFAULT_ICON_COLOR,zt as DEFAULT_ICON_COLOR_DARK,Si as DEFAULT_INDICATOR_DESCRIPTION_STRINGS,Ar as DEFAULT_MAX_SIDEBAR_WIDTH,jr as DEFAULT_MIN_SIDEBAR_WIDTH,Mr as DEFAULT_SIDEBAR_WIDTH_FRACTION,Nr as DEFAULT_SIDEBAR_WIDTH_UNIT,Yt as DEFAULT_TAB_AUTOHIDE,Bn as DEFAULT_TOAST_TIMEOUT,Sn as EMPTY_ANIMATION_DURATION_MS,Cn as ENTRY_ROW_APPLY_ICON_NAME,wn as ENTRY_ROW_APPLY_TOOLTIP,Tn as ENTRY_ROW_EDIT_ICON_NAME,En as ENTRY_ROW_MAX_LENGTH_LIMIT,Dn as ENTRY_ROW_TITLE_SPACING,On as EntryRowState,qn as ExpanderState,d as GTK_LICENSE,In as HeaderBarState,Ci as INLINE_VIEW_SWITCHER_DISPLAY_MODES,Pr as INSTANT_SPLIT_VIEW_ANIMATOR,Fr as NAVIGATION_SPLIT_VIEW_CRITICALS,Ir as NavigationSplitViewState,Xn as NavigationViewState,Lr as OverlaySplitViewState,kn as PASSWORD_CONCEAL_ICON_NAME,An as PASSWORD_CONCEAL_LABEL,jn as PASSWORD_REVEAL_ICON_NAME,Mn as PASSWORD_REVEAL_LABEL,ga as POPOVER_ITEM_RADIUS,_a as POPOVER_MENU_PADDING,va as POPOVER_PADDING,ya as POPOVER_RADIUS,Nn as PasswordEntryRowState,ba as PopoverState,ft as RadioGroupState,fi as SPLIT_BUTTON_DISABLED_OPACITY,$n as SidebarState,B as SpinState,pi as SplitButtonState,We as SwipeTracker,I as SwitchRowState,Xt as TabViewState,Jn as ToggleGroupState,Yi as UNTITLED_PAGE_LABEL,wi as VIEW_SWITCHER_BADGE_LIMIT,Ti as VIEW_SWITCHER_DRAG_SWITCH_DELAY,Ei as VIEW_SWITCHER_FALLBACK_ICON,Di as VIEW_SWITCHER_NO_SELECTION,Oi as VIEW_SWITCHER_POLICIES,Kt as ViewStackState,ki as ViewSwitcherBarState,Ai as ViewSwitcherDragSwitch,ji as ViewSwitcherState,L as WindowTitleState,f as aboutDialogVisibility,ua as accumulateOvershoot,er as adjustSidebarSelection,V as adjustmentRange,Dr as adwLengthToPx,mt as adwLerp,E as adwaitaAccent,D as adwaitaAccentBgColor,O as adwaitaAccentColor,Bt as adwaitaColorScheme,k as adwaitaStandaloneColor,ni as assertMenuRenderable,J as avatarColor,Y as avatarColorClass,X as avatarFontSize,Z as avatarIconSize,Q as avatarInitials,$ as avatarMaxFontSize,ee as avatarMode,se as bannerButtonStyleClasses,ce as bannerButtonText,le as bannerButtonVisible,ue as bannerRenderState,Mi as buildInlineToggles,Ni as buildViewSwitcherButtons,xe as buttonContentEllipsize,Se as buttonContentIconExpands,Ce as buttonContentIconIsEmpty,we as buttonContentIconName,Te as buttonContentLabelText,Ee as buttonContentLabelVisible,De as buttonContentRenderState,Oe as buttonContentStyleTargetIndex,je as buttonStyleClass,Me as buttonStyleClasses,nt as carouselClampPosition,rt as carouselClosestSnapPoint,it as carouselNavigateTarget,at as carouselPageAllocation,ot as carouselPageAtPosition,st as carouselRange,ct as carouselReorderShift,lt as carouselSizesFromSnapPoints,ut as carouselSnapPoints,dt as carouselWheelStep,H as clampAdjustmentValue,Tt as clampAllocate,Et as clampChildSize,Pn as clampEntryText,Hn as clampListSelection,tr as clampSidebarSelection,Dt as clampSizeFromChild,Ot as clampThresholds,Xi as collectSearchRows,Zi as countVisiblePages,Qi as createSearchRowSubtitle,Pi as createViewSwitcherPage,p as creditsSections,ln as dataGridCellText,un as dataGridColumnAlign,dn as dataGridColumnClasses,fn as dataGridRowInteractive,pn as dataGridTrackTemplate,mn as dataGridTracks,$i as defaultCaseFolder,ea as derivePreferencesGroupHeader,R as deriveRowLabels,Zn as describeNavigationDiagnostic,ht as easeInOutSine,gt as easeOutCubic,Fn as entryTextLength,ta as escapeMarkup,me as evaluateBreakpointCondition,te as flattenAvatarGradient,ri as flattenMenu,nr as flattenSidebarItems,ne as gStrHash,e as gStrStrip,t as glibClamp,Fi as inlineToggleTooltip,_t as inverseLerp,A as isAdwAccentColorName,de as isBannerButtonStyle,Zt as isDescendantOfPage,Ii as isInlineViewSwitcherDisplayMode,m as isLicenseType,da as isScrolledFromEnd,fa as isScrolledFromStart,Rr as isSidebarAtVisualStart,mi as isSplitButtonDirection,Vt as isThemeIconColor,Li as isViewSwitcherButtonVisible,Ri as isViewSwitcherPolicy,zr as layoutNavigationSplitView,Br as layoutOverlaySplitView,h as legalSectionVisible,g as licenseText,_ as licenseTypeForSpdxId,Un as listItemsChanged,na as makeComparable,Vr as measureSplitViewHorizontal,hi as menuButtonArrowIcon,gi as menuButtonPopupDirection,ii as menuItemAt,ai as menuNodeAt,oi as menuRefusals,U as normalizeAdjustment,kt as normalizeClampSize,Wn as normalizeComboOptions,hn as normalizeDataGridColumns,gn as normalizeDataGridVariant,qt as normalizeIconName,Or as normalizeLengthUnit,si as normalizeMenuModel,Na as normalizeNaturalLineLength,_r as normalizeSpinnerAngle,Pa as normalizeWrapBoxAlign,Fa as normalizeWrapBoxJustify,Ia as normalizeWrapBoxLengthUnit,La as normalizeWrapBoxPackDirection,Ra as normalizeWrapBoxSpacing,za as normalizeWrapPolicy,j as onAdwaitaAccentChanged,Ht as onAdwaitaColorSchemeChanged,pa as overshootDistance,zi as pageIndexForToggle,Sr as parseAccelerator,W as parseAdjustment,fe as parseBannerButtonStyle,he as parseBreakpointCondition,v as parseCreditPerson,ci as parseDetailedAction,Gn as parseListModel,li as parseMenuModel,Cr as parseShortcutLabel,At as parseToolbarStyle,re as randomAvatarColorClass,yn as resolveBottomSheetClose,pt as resolveCheckState,_i as resolveDropdownTooltip,Ln as resolveHeaderBarTitle,ui as resolveMenuItemState,Hr as resolveNaturalSidebarWidth,Ur as resolveNavigationAction,Wr as resolveNavigationSidebarWidth,Gr as resolveNavigationStack,Kr as resolveOverlaySidebarWidth,Jt as resolvePageTitle,xa as resolvePopoverKey,qr as resolveSidebarBounds,jt as resolveSpinnerSize,Jr as resolveSwipeArea,Yr as resolveSwipeRelease,Xr as resolveSwipeSnapPoints,Zr as resolveSwipeStart,Ba as resolveWrapBoxChildOrder,Va as resolveWrapBoxLine,ra as rowMatchesQuery,ma as scrollMaxValue,ha as scrollUndershootClasses,ia as searchPreferences,M as setAdwaitaAccent,Ut as setAdwaitaColorScheme,y as setLicense,b as setLicenseType,wr as shortcutKeycaps,Bi as shouldRevealViewSwitcherBar,rr as sidebarHeaders,G as snapAdjustmentValue,vr as spinnerArc,yr as spinnerArcEnd,br as spinnerArcStart,Mt as spinnerGeometry,xr as spinnerProgressAt,vi as splitButtonArrowIcon,yi as splitButtonPopupDirection,bi as splitButtonRootState,xi as splitButtonStyleClasses,n as stringIsNotEmpty,aa as stripMarkup,r as stripMnemonic,Qt as successorAfterClose,Ge as swipeBounds,Qr as swipeCancelProgress,Ke as swipeClosestPointIndex,qe as swipeEndProgress,Je as swipeNextPointIndex,Ye as swipePreviousPointIndex,Xe as swipeProjectedPointIndex,Ze as swipeSlope,Qe as swipeVelocityThreshold,$t as tabCloseVisible,en as tabIconState,tn as tabTooltip,nn as tabTooltipIsMarkup,rn as tabViewItemsChanged,an as tabsRevealed,$r as tagsConflict,Wt as themeIconColor,Gt as toggleAdwaitaColorScheme,Vi as toggleIndexForPage,Nt as toolbarBarStyleClasses,Pt as toolbarViewAllocate,Ft as toolbarViewClasses,It as toolbarViewContentForSize,Lt as toolbarViewMeasure,x as translatorCreditsPeople,Hi as viewSwitcherBadgeLabel,Ui as viewSwitcherButtonOrientation,Wi as viewSwitcherIconName,Gi as viewSwitcherIndicatorDescription,Ki as viewSwitcherLabel,qi as viewSwitcherPageFromStackPage,Ji as viewSwitcherPagesFromStack,Ha as wrapBoxChildFlex,Ua as wrapBoxFlexStyle,Wa as wrapBoxLengthToPx,Ga as wrapPolicyFlexShrink};
|
|
1
|
+
import{gStrStrip as e,glibClamp as t,stringIsNotEmpty as n,stripMnemonic as r}from"./glib.js";import{ADW_ABOUT_DIALOG_LABELS as i,ADW_CREDITS_SECTION_TITLES as a,ADW_LICENSES as o,ADW_LICENSE_ALIASES as s,ADW_LICENSE_DEFAULTS as c,ADW_LICENSE_WARRANTY_TEMPLATE as l,ADW_TRANSLATOR_CREDITS_SENTINELS as u,GTK_LICENSE as d,aboutDialogVisibility as f,creditsSections as p,isLicenseType as m,legalSectionVisible as h,licenseText as g,licenseTypeForSpdxId as _,parseCreditPerson as v,setLicense as y,setLicenseType as b,translatorCreditsPeople as x}from"./about-dialog.js";import{ADW_ACCENT_BG_COLORS as S,ADW_ACCENT_COLOR_NAMES as C,ADW_ACCENT_FG_COLOR as w,ADW_DEFAULT_ACCENT_COLOR as T,adwaitaAccent as E,adwaitaAccentBgColor as D,adwaitaAccentColor as O,adwaitaStandaloneColor as k,formatAdwRgb as A,isAdwAccentColorName as j,nearestAccent as M,onAdwaitaAccentChanged as N,parseAdwRgb as P,setAdwaitaAccent as F}from"./accent.js";import{ActionRowState as I,BUTTON_ROW_ACTIVATABLE as L,ButtonRowState as R,SwitchRowState as z,WindowTitleState as B,deriveRowLabels as V}from"./action-row.js";import{ADW_ADJUSTMENT_DEFAULTS as H,SpinState as U,adjustmentRange as W,clampAdjustmentValue as G,normalizeAdjustment as K,parseAdjustment as q,snapAdjustmentValue as J}from"./adjustment.js";import{ADW_ACCENT_META as Y,ADW_ACCENT_META_SYSTEM as X,ADW_COLOR_SCHEME_META as Z,ADW_SYSTEM_COLOR_SCHEMES as Q,appearanceFromMeta as $,isAdwSystemColorScheme as ee,parseDesktopAppearance as te,renderAppearanceMeta as ne}from"./appearance.js";import{APPLE_ACCENT_COLORS as re,APPLE_MULTICOLOR_ACCENT as ie,adwAccentFromAppleAccentColor as ae}from"./apple-accent.js";import{AVATAR_COLORS as oe,AVATAR_COLOR_COUNT as se,avatarColor as ce,avatarColorClass as le,avatarFontSize as ue,avatarIconSize as de,avatarInitials as fe,avatarMaxFontSize as pe,avatarMode as me,flattenAvatarGradient as he,gStrHash as ge,randomAvatarColorClass as _e}from"./avatar.js";import{ADW_BANNER_BUTTON_STYLES as ve,ADW_BANNER_BUTTON_STYLE_CLASSES as ye,ADW_BANNER_DEFAULTS as be,bannerButtonStyleClasses as xe,bannerButtonText as Se,bannerButtonVisible as Ce,bannerRenderState as we,isBannerButtonStyle as Te,parseBannerButtonStyle as Ee}from"./banner.js";import{DEFAULT_BOX_SPACING as De,normalizeBoxOrientation as Oe,normalizeBoxSpacing as ke}from"./box.js";import{AdwBreakpoint as Ae,evaluateBreakpointCondition as je,parseBreakpointCondition as Me}from"./breakpoint.js";import{BreakpointBinState as Ne}from"./breakpoint-bin.js";import{ADW_BUTTON_CONTENT_DEFAULTS as Pe,BUTTON_CONTENT_BOX_SPACING as Fe,BUTTON_CONTENT_FALLBACK_ICON as Ie,BUTTON_CONTENT_STYLE_CLASS as Le,buttonContentEllipsize as Re,buttonContentIconExpands as ze,buttonContentIconIsEmpty as Be,buttonContentIconName as Ve,buttonContentLabelText as He,buttonContentLabelVisible as Ue,buttonContentRenderState as We,buttonContentStyleTargetIndex as Ge}from"./button-content.js";import{ADW_BUTTON_STYLE_ALIASES as Ke,ADW_BUTTON_STYLE_CLASSES as qe,buttonStyleClass as Je,buttonStyleClasses as Ye}from"./button.js";import{ADW_SWIPE_DECELERATION_TOUCH as Xe,ADW_SWIPE_DECELERATION_TOUCHPAD as Ze,ADW_SWIPE_DRAG_THRESHOLD as Qe,ADW_SWIPE_EPSILON as $e,ADW_SWIPE_HISTORY_THRESHOLD_MS as et,ADW_SWIPE_PARABOLA_MULTIPLIER as tt,ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_H as nt,ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_V as rt,ADW_SWIPE_VELOCITY_CURVE_THRESHOLD as it,ADW_SWIPE_VELOCITY_THRESHOLD_TOUCH as at,ADW_SWIPE_VELOCITY_THRESHOLD_TOUCHPAD as ot,SwipeTracker as st,swipeBounds as ct,swipeClosestPointIndex as lt,swipeEndProgress as ut,swipeNextPointIndex as dt,swipePreviousPointIndex as ft,swipeProjectedPointIndex as pt,swipeSlope as mt,swipeVelocityThreshold as ht}from"./swipe.js";import{CAROUSEL_SCROLL_TIMEOUT_MS as gt,CAROUSEL_SETTLE_EPSILON as _t,CarouselState as vt,carouselClampPosition as yt,carouselClosestSnapPoint as bt,carouselNavigateTarget as xt,carouselPageAllocation as St,carouselPageAtPosition as Ct,carouselRange as wt,carouselReorderShift as Tt,carouselSizesFromSnapPoints as Et,carouselSnapPoints as Dt,carouselWheelStep as Ot}from"./carousel.js";import{RadioGroupState as kt,resolveCheckState as At}from"./checks.js";import{adwLerp as jt,easeInOutSine as Mt,easeOutCubic as Nt,inverseLerp as Pt}from"./easing.js";import{ADW_CLAMP_DEFAULTS as Ft,ADW_CLAMP_SIZE_CLASSES as It,ADW_SPINNER_MAX_SIZE as Lt,ADW_SPINNER_MIN_SIZE as Rt,ADW_TOOLBAR_BAR_CLASSES as zt,ADW_TOOLBAR_VIEW_CLASSES as Bt,ADW_TOOLBAR_VIEW_DEFAULTS as Vt,clampAllocate as Ht,clampChildSize as Ut,clampSizeFromChild as Wt,clampThresholds as Gt,normalizeClampSize as Kt,parseToolbarStyle as qt,resolveSpinnerSize as Jt,spinnerGeometry as Yt,toolbarBarStyleClasses as Xt,toolbarViewAllocate as Zt,toolbarViewClasses as Qt,toolbarViewContentForSize as $t,toolbarViewMeasure as en}from"./chrome.js";import{DEFAULT_ICON_COLOR as tn,DEFAULT_ICON_COLOR_DARK as nn,adwaitaColorScheme as rn,isThemeIconColor as an,onAdwaitaColorSchemeChanged as on,setAdwaitaColorScheme as sn,themeIconColor as cn,toggleAdwaitaColorScheme as ln}from"./color-scheme.js";import{ViewStackState as un,normalizeIconName as dn,resolvePageTitle as fn}from"./view-stack.js";import{DEFAULT_TAB_AUTOHIDE as pn,TabViewState as mn,isDescendantOfPage as hn,successorAfterClose as gn,tabCloseVisible as _n,tabIconState as vn,tabTooltip as yn,tabTooltipIsMarkup as bn,tabViewItemsChanged as xn,tabsRevealed as Sn}from"./tab-view.js";import{ADW_DATA_GRID_ROW_VARIANTS as Cn,DATA_GRID_CELL_CLASS as wn,DATA_GRID_ROW_CLASS as Tn,dataGridCellText as En,dataGridColumnAlign as Dn,dataGridColumnClasses as On,dataGridRowInteractive as kn,dataGridTrackTemplate as An,dataGridTracks as jn,normalizeDataGridColumns as Mn,normalizeDataGridVariant as Nn}from"./data-grid.js";import{AdwAlertResponses as Pn,BottomSheetPresentation as Fn,resolveBottomSheetChrome as In,resolveBottomSheetClose as Ln,resolveBottomSheetOpen as Rn,resolveBottomSheetSwipeTracker as zn}from"./dialog.js";import{CAPS_LOCK_ICON_NAME as Bn,CAPS_LOCK_TOOLTIP as Vn,EMPTY_ANIMATION_DURATION_MS as Hn,ENTRY_ROW_APPLY_ICON_NAME as Un,ENTRY_ROW_APPLY_TOOLTIP as Wn,ENTRY_ROW_EDIT_ICON_NAME as Gn,ENTRY_ROW_MAX_LENGTH_LIMIT as Kn,ENTRY_ROW_TITLE_SPACING as qn,EntryRowState as Jn,PASSWORD_CONCEAL_ICON_NAME as Yn,PASSWORD_CONCEAL_LABEL as Xn,PASSWORD_REVEAL_ICON_NAME as Zn,PASSWORD_REVEAL_LABEL as Qn,PasswordEntryRowState as $n,clampEntryText as er,entryTextLength as tr}from"./entry-row.js";import{GioMenu as nr,GioMenuItem as rr}from"./gio-menu.js";import{GtkAdjustment as ir}from"./gtk-adjustment.js";import{GtkStringList as ar}from"./gtk-string-list.js";import{HeaderBarState as or,resolveHeaderBarTitle as sr}from"./header-bar.js";import{AdwToast as cr,AdwToastQueue as lr,DEFAULT_TOAST_TIMEOUT as ur}from"./toast.js";import{ADW_COMBO_NO_SELECTION as dr,clampListSelection as fr,listItemsChanged as pr,normalizeComboOptions as mr,parseListModel as hr}from"./list.js";import{ComboState as gr,ExpanderState as _r,ToggleGroupState as vr,keptToggles as yr,toggleIndexOfName as br}from"./rows.js";import{UNTITLED_PAGE_LABEL as xr,collectSearchRows as Sr,countVisiblePages as Cr,createSearchRowSubtitle as wr,defaultCaseFolder as Tr,derivePreferencesGroupHeader as Er,escapeMarkup as Dr,makeComparable as Or,rowMatchesQuery as kr,searchPreferences as Ar,stripMarkup as jr}from"./preferences.js";import{DEFAULT_LABEL_ELLIPSIZE as Mr,DEFAULT_LABEL_LINES as Nr,DEFAULT_LABEL_MAX_WIDTH_CHARS as Pr,DEFAULT_LABEL_WIDTH_CHARS as Fr,DEFAULT_LABEL_WRAP_MODE as Ir,DEFAULT_LABEL_XALIGN as Lr,DEFAULT_LABEL_YALIGN as Rr,LABEL_ELLIPSIZE_MODES as zr,LABEL_JUSTIFICATIONS as Br,LABEL_WRAP_MODES as Vr,labelDisplayText as Hr,labelEffectiveLines as Ur,labelEllipsizeOverflowValue as Wr,labelMarkupIsUnparseable as Gr,labelWidthCharsExtent as Kr,labelYalignAlignItems as qr,normalizeLabelEllipsize as Jr,normalizeLabelJustify as Yr,normalizeLabelLines as Xr,normalizeLabelMaxWidthChars as Zr,normalizeLabelWidthChars as Qr,normalizeLabelWrapMode as $r,normalizeLabelXalign as ei,normalizeLabelYalign as ti}from"./label.js";import{BACK_BUTTON_FALLBACK_TOOLTIP as ni,NavigationViewState as ri,describeNavigationDiagnostic as ii}from"./navigation-view.js";import{ADW_SIDEBAR_NO_SELECTION as ai,SidebarState as oi,adjustSidebarSelection as si,clampSidebarSelection as ci,flattenSidebarItems as li,sidebarHeaders as ui}from"./sidebar.js";import{ADW_SPINNER_CONTRACT_DISTANCE as di,ADW_SPINNER_CYCLES_PER_LOOP as fi,ADW_SPINNER_CYCLE_LENGTH as pi,ADW_SPINNER_EXTEND_DISTANCE as mi,ADW_SPINNER_IDLE_DISTANCE as hi,ADW_SPINNER_MAX_ARC_LENGTH as gi,ADW_SPINNER_MIN_ARC_LENGTH as _i,ADW_SPINNER_N_CYCLES as vi,ADW_SPINNER_OVERLAP_DISTANCE as yi,ADW_SPINNER_SPIN_DURATION_MS as bi,ADW_SPINNER_START_ANGLE as xi,ADW_SPINNER_STILL_PROGRESS as Si,ADW_SPINNER_TRACK_OPACITY as Ci,normalizeSpinnerAngle as wi,spinnerArc as Ti,spinnerArcEnd as Ei,spinnerArcStart as Di,spinnerProgressAt as Oi}from"./spinner.js";import{parseAccelerator as ki,parseShortcutLabel as Ai,shortcutKeycaps as ji}from"./shortcut-label.js";import{formatAcceleratorLabel as Mi,formatManifestShortcut as Ni}from"./shortcut-format.js";import{ADW_LENGTH_UNITS as Pi,DEFAULT_DPI as Fi,adwLengthToPx as Ii,normalizeLengthUnit as Li}from"./length-unit.js";import{ADW_SWIPE_BORDER as Ri,DEFAULT_MAX_SIDEBAR_WIDTH as zi,DEFAULT_MIN_SIDEBAR_WIDTH as Bi,DEFAULT_SIDEBAR_WIDTH_FRACTION as Vi,DEFAULT_SIDEBAR_WIDTH_UNIT as Hi,INSTANT_SPLIT_VIEW_ANIMATOR as Ui,NAVIGATION_SPLIT_VIEW_CRITICALS as Wi,NavigationSplitViewState as Gi,OverlaySplitViewState as Ki,isSidebarAtVisualStart as qi,layoutNavigationSplitView as Ji,layoutOverlaySplitView as Yi,measureSplitViewHorizontal as Xi,resolveNaturalSidebarWidth as Zi,resolveNavigationAction as Qi,resolveNavigationSidebarWidth as $i,resolveNavigationStack as ea,resolveOverlaySidebarWidth as ta,resolveSidebarBounds as na,resolveSwipeArea as ra,resolveSwipeRelease as ia,resolveSwipeSnapPoints as aa,resolveSwipeStart as oa,swipeCancelProgress as sa,tagsConflict as ca}from"./split-view.js";import{ADW_MENU_SURFACE_NATIVESCRIPT as la,ADW_MENU_SURFACE_WEB as ua,assertMenuRenderable as da,flattenMenu as fa,menuItemAt as pa,menuNodeAt as ma,menuRefusals as ha,normalizeMenuModel as ga,parseDetailedAction as _a,parseMenuModel as va,resolveMenuItemState as ya}from"./menu.js";import{DEFAULT_DROPDOWN_TOOLTIP as ba,SPLIT_BUTTON_DISABLED_OPACITY as xa,SplitButtonState as Sa,isSplitButtonDirection as Ca,menuButtonArrowIcon as wa,menuButtonPopupDirection as Ta,resolveDropdownTooltip as Ea,splitButtonArrowIcon as Da,splitButtonPopupDirection as Oa,splitButtonRootState as ka,splitButtonStyleClasses as Aa}from"./split-button.js";import{DEFAULT_INDICATOR_DESCRIPTION_STRINGS as ja,INLINE_VIEW_SWITCHER_DISPLAY_MODES as Ma,VIEW_SWITCHER_BADGE_LIMIT as Na,VIEW_SWITCHER_DRAG_SWITCH_DELAY as Pa,VIEW_SWITCHER_FALLBACK_ICON as Fa,VIEW_SWITCHER_NO_SELECTION as Ia,VIEW_SWITCHER_POLICIES as La,ViewSwitcherBarState as Ra,ViewSwitcherDragSwitch as za,ViewSwitcherState as Ba,buildInlineToggles as Va,buildViewSwitcherButtons as Ha,createViewSwitcherPage as Ua,inlineToggleTooltip as Wa,isInlineViewSwitcherDisplayMode as Ga,isViewSwitcherButtonVisible as Ka,isViewSwitcherPolicy as qa,pageIndexForToggle as Ja,shouldRevealViewSwitcherBar as Ya,toggleIndexForPage as Xa,viewSwitcherBadgeLabel as Za,viewSwitcherButtonOrientation as Qa,viewSwitcherIconName as $a,viewSwitcherIndicatorDescription as eo,viewSwitcherLabel as to,viewSwitcherPageFromStackPage as no,viewSwitcherPagesFromStack as ro}from"./view-switcher.js";import{ADW_MAX_OVERSHOOT_DISTANCE as io,ADW_OVERSHOOT_SETTLE_MS as ao,ADW_UNDERSHOOT_CLASSES as oo,ADW_UNDERSHOOT_SIZE as so,accumulateOvershoot as co,isScrolledFromEnd as lo,isScrolledFromStart as uo,overshootDistance as fo,scrollMaxValue as po,scrollUndershootClasses as mo}from"./scrolling.js";import{POPOVER_ITEM_RADIUS as ho,POPOVER_MENU_PADDING as go,POPOVER_PADDING as _o,POPOVER_RADIUS as vo,PopoverState as yo,resolvePopoverKey as bo}from"./popover.js";import{ADW_WRAP_BOX_DEFAULT_ALIGN as xo,ADW_WRAP_BOX_DEFAULT_JUSTIFY as So,ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE as Co,ADW_WRAP_BOX_DEFAULT_LENGTH_UNIT as wo,ADW_WRAP_BOX_DEFAULT_PACK_DIRECTION as To,ADW_WRAP_BOX_DEFAULT_SPACING as Eo,ADW_WRAP_BOX_DEFAULT_WRAP_POLICY as Do,ADW_WRAP_BOX_JUSTIFY_MODES as Oo,ADW_WRAP_BOX_NATURAL_LINE_LENGTH_UNSET as ko,ADW_WRAP_BOX_PACK_DIRECTIONS as Ao,ADW_WRAP_POLICIES as jo,normalizeNaturalLineLength as Mo,normalizeWrapBoxAlign as No,normalizeWrapBoxJustify as Po,normalizeWrapBoxLengthUnit as Fo,normalizeWrapBoxPackDirection as Io,normalizeWrapBoxSpacing as Lo,normalizeWrapPolicy as Ro,resolveWrapBoxChildOrder as zo,resolveWrapBoxLine as Bo,wrapBoxChildFlex as Vo,wrapBoxFlexStyle as Ho,wrapBoxLengthToPx as Uo,wrapPolicyFlexShrink as Wo}from"./wrap-box.js";import{ADW_SOURCE_6502_DIRECTIVES as Go,ADW_SOURCE_6502_LINE_COMMENT as Ko,ADW_SOURCE_6502_OPCODES as qo,ADW_SOURCE_6502_REGISTERS as Jo,ADW_SOURCE_6502_TOKEN_ROLES as Yo,ADW_SOURCE_HEX_STRIDE as Xo,ADW_SOURCE_PALETTE_DARK as Zo,ADW_SOURCE_PALETTE_LIGHT as Qo,ADW_SOURCE_SYNTAX_ROLES as $o,classifyAsm6502Word as es,formatHexAddress as ts,formatLineNumber as ns,stripSourceWhitespace as rs,tokenizeAsm6502 as is}from"./source.js";export{i as ADW_ABOUT_DIALOG_LABELS,S as ADW_ACCENT_BG_COLORS,C as ADW_ACCENT_COLOR_NAMES,w as ADW_ACCENT_FG_COLOR,Y as ADW_ACCENT_META,X as ADW_ACCENT_META_SYSTEM,H as ADW_ADJUSTMENT_DEFAULTS,ve as ADW_BANNER_BUTTON_STYLES,ye as ADW_BANNER_BUTTON_STYLE_CLASSES,be as ADW_BANNER_DEFAULTS,Pe as ADW_BUTTON_CONTENT_DEFAULTS,Ke as ADW_BUTTON_STYLE_ALIASES,qe as ADW_BUTTON_STYLE_CLASSES,Ft as ADW_CLAMP_DEFAULTS,It as ADW_CLAMP_SIZE_CLASSES,Z as ADW_COLOR_SCHEME_META,dr as ADW_COMBO_NO_SELECTION,a as ADW_CREDITS_SECTION_TITLES,Cn as ADW_DATA_GRID_ROW_VARIANTS,T as ADW_DEFAULT_ACCENT_COLOR,Pi as ADW_LENGTH_UNITS,o as ADW_LICENSES,s as ADW_LICENSE_ALIASES,c as ADW_LICENSE_DEFAULTS,l as ADW_LICENSE_WARRANTY_TEMPLATE,io as ADW_MAX_OVERSHOOT_DISTANCE,la as ADW_MENU_SURFACE_NATIVESCRIPT,ua as ADW_MENU_SURFACE_WEB,ao as ADW_OVERSHOOT_SETTLE_MS,ai as ADW_SIDEBAR_NO_SELECTION,Go as ADW_SOURCE_6502_DIRECTIVES,Ko as ADW_SOURCE_6502_LINE_COMMENT,qo as ADW_SOURCE_6502_OPCODES,Jo as ADW_SOURCE_6502_REGISTERS,Yo as ADW_SOURCE_6502_TOKEN_ROLES,Xo as ADW_SOURCE_HEX_STRIDE,Zo as ADW_SOURCE_PALETTE_DARK,Qo as ADW_SOURCE_PALETTE_LIGHT,$o as ADW_SOURCE_SYNTAX_ROLES,di as ADW_SPINNER_CONTRACT_DISTANCE,fi as ADW_SPINNER_CYCLES_PER_LOOP,pi as ADW_SPINNER_CYCLE_LENGTH,mi as ADW_SPINNER_EXTEND_DISTANCE,hi as ADW_SPINNER_IDLE_DISTANCE,gi as ADW_SPINNER_MAX_ARC_LENGTH,Lt as ADW_SPINNER_MAX_SIZE,_i as ADW_SPINNER_MIN_ARC_LENGTH,Rt as ADW_SPINNER_MIN_SIZE,vi as ADW_SPINNER_N_CYCLES,yi as ADW_SPINNER_OVERLAP_DISTANCE,bi as ADW_SPINNER_SPIN_DURATION_MS,xi as ADW_SPINNER_START_ANGLE,Si as ADW_SPINNER_STILL_PROGRESS,Ci as ADW_SPINNER_TRACK_OPACITY,Ri as ADW_SWIPE_BORDER,Xe as ADW_SWIPE_DECELERATION_TOUCH,Ze as ADW_SWIPE_DECELERATION_TOUCHPAD,Qe as ADW_SWIPE_DRAG_THRESHOLD,$e as ADW_SWIPE_EPSILON,et as ADW_SWIPE_HISTORY_THRESHOLD_MS,tt as ADW_SWIPE_PARABOLA_MULTIPLIER,nt as ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_H,rt as ADW_SWIPE_TOUCHPAD_BASE_DISTANCE_V,it as ADW_SWIPE_VELOCITY_CURVE_THRESHOLD,at as ADW_SWIPE_VELOCITY_THRESHOLD_TOUCH,ot as ADW_SWIPE_VELOCITY_THRESHOLD_TOUCHPAD,Q as ADW_SYSTEM_COLOR_SCHEMES,zt as ADW_TOOLBAR_BAR_CLASSES,Bt as ADW_TOOLBAR_VIEW_CLASSES,Vt as ADW_TOOLBAR_VIEW_DEFAULTS,u as ADW_TRANSLATOR_CREDITS_SENTINELS,oo as ADW_UNDERSHOOT_CLASSES,so as ADW_UNDERSHOOT_SIZE,xo as ADW_WRAP_BOX_DEFAULT_ALIGN,So as ADW_WRAP_BOX_DEFAULT_JUSTIFY,Co as ADW_WRAP_BOX_DEFAULT_JUSTIFY_LAST_LINE,wo as ADW_WRAP_BOX_DEFAULT_LENGTH_UNIT,To as ADW_WRAP_BOX_DEFAULT_PACK_DIRECTION,Eo as ADW_WRAP_BOX_DEFAULT_SPACING,Do as ADW_WRAP_BOX_DEFAULT_WRAP_POLICY,Oo as ADW_WRAP_BOX_JUSTIFY_MODES,ko as ADW_WRAP_BOX_NATURAL_LINE_LENGTH_UNSET,Ao as ADW_WRAP_BOX_PACK_DIRECTIONS,jo as ADW_WRAP_POLICIES,re as APPLE_ACCENT_COLORS,ie as APPLE_MULTICOLOR_ACCENT,oe as AVATAR_COLORS,se as AVATAR_COLOR_COUNT,I as ActionRowState,Pn as AdwAlertResponses,Ae as AdwBreakpoint,cr as AdwToast,lr as AdwToastQueue,ni as BACK_BUTTON_FALLBACK_TOOLTIP,Fe as BUTTON_CONTENT_BOX_SPACING,Ie as BUTTON_CONTENT_FALLBACK_ICON,Le as BUTTON_CONTENT_STYLE_CLASS,L as BUTTON_ROW_ACTIVATABLE,Fn as BottomSheetPresentation,Ne as BreakpointBinState,R as ButtonRowState,Bn as CAPS_LOCK_ICON_NAME,Vn as CAPS_LOCK_TOOLTIP,gt as CAROUSEL_SCROLL_TIMEOUT_MS,_t as CAROUSEL_SETTLE_EPSILON,vt as CarouselState,gr as ComboState,wn as DATA_GRID_CELL_CLASS,Tn as DATA_GRID_ROW_CLASS,De as DEFAULT_BOX_SPACING,Fi as DEFAULT_DPI,ba as DEFAULT_DROPDOWN_TOOLTIP,tn as DEFAULT_ICON_COLOR,nn as DEFAULT_ICON_COLOR_DARK,ja as DEFAULT_INDICATOR_DESCRIPTION_STRINGS,Mr as DEFAULT_LABEL_ELLIPSIZE,Nr as DEFAULT_LABEL_LINES,Pr as DEFAULT_LABEL_MAX_WIDTH_CHARS,Fr as DEFAULT_LABEL_WIDTH_CHARS,Ir as DEFAULT_LABEL_WRAP_MODE,Lr as DEFAULT_LABEL_XALIGN,Rr as DEFAULT_LABEL_YALIGN,zi as DEFAULT_MAX_SIDEBAR_WIDTH,Bi as DEFAULT_MIN_SIDEBAR_WIDTH,Vi as DEFAULT_SIDEBAR_WIDTH_FRACTION,Hi as DEFAULT_SIDEBAR_WIDTH_UNIT,pn as DEFAULT_TAB_AUTOHIDE,ur as DEFAULT_TOAST_TIMEOUT,Hn as EMPTY_ANIMATION_DURATION_MS,Un as ENTRY_ROW_APPLY_ICON_NAME,Wn as ENTRY_ROW_APPLY_TOOLTIP,Gn as ENTRY_ROW_EDIT_ICON_NAME,Kn as ENTRY_ROW_MAX_LENGTH_LIMIT,qn as ENTRY_ROW_TITLE_SPACING,Jn as EntryRowState,_r as ExpanderState,d as GTK_LICENSE,nr as GioMenu,rr as GioMenuItem,ir as GtkAdjustment,ar as GtkStringList,or as HeaderBarState,Ma as INLINE_VIEW_SWITCHER_DISPLAY_MODES,Ui as INSTANT_SPLIT_VIEW_ANIMATOR,zr as LABEL_ELLIPSIZE_MODES,Br as LABEL_JUSTIFICATIONS,Vr as LABEL_WRAP_MODES,Wi as NAVIGATION_SPLIT_VIEW_CRITICALS,Gi as NavigationSplitViewState,ri as NavigationViewState,Ki as OverlaySplitViewState,Yn as PASSWORD_CONCEAL_ICON_NAME,Xn as PASSWORD_CONCEAL_LABEL,Zn as PASSWORD_REVEAL_ICON_NAME,Qn as PASSWORD_REVEAL_LABEL,ho as POPOVER_ITEM_RADIUS,go as POPOVER_MENU_PADDING,_o as POPOVER_PADDING,vo as POPOVER_RADIUS,$n as PasswordEntryRowState,yo as PopoverState,kt as RadioGroupState,xa as SPLIT_BUTTON_DISABLED_OPACITY,oi as SidebarState,U as SpinState,Sa as SplitButtonState,st as SwipeTracker,z as SwitchRowState,mn as TabViewState,vr as ToggleGroupState,xr as UNTITLED_PAGE_LABEL,Na as VIEW_SWITCHER_BADGE_LIMIT,Pa as VIEW_SWITCHER_DRAG_SWITCH_DELAY,Fa as VIEW_SWITCHER_FALLBACK_ICON,Ia as VIEW_SWITCHER_NO_SELECTION,La as VIEW_SWITCHER_POLICIES,un as ViewStackState,Ra as ViewSwitcherBarState,za as ViewSwitcherDragSwitch,Ba as ViewSwitcherState,B as WindowTitleState,f as aboutDialogVisibility,co as accumulateOvershoot,si as adjustSidebarSelection,W as adjustmentRange,ae as adwAccentFromAppleAccentColor,Ii as adwLengthToPx,jt as adwLerp,E as adwaitaAccent,D as adwaitaAccentBgColor,O as adwaitaAccentColor,rn as adwaitaColorScheme,k as adwaitaStandaloneColor,$ as appearanceFromMeta,da as assertMenuRenderable,ce as avatarColor,le as avatarColorClass,ue as avatarFontSize,de as avatarIconSize,fe as avatarInitials,pe as avatarMaxFontSize,me as avatarMode,xe as bannerButtonStyleClasses,Se as bannerButtonText,Ce as bannerButtonVisible,we as bannerRenderState,Va as buildInlineToggles,Ha as buildViewSwitcherButtons,Re as buttonContentEllipsize,ze as buttonContentIconExpands,Be as buttonContentIconIsEmpty,Ve as buttonContentIconName,He as buttonContentLabelText,Ue as buttonContentLabelVisible,We as buttonContentRenderState,Ge as buttonContentStyleTargetIndex,Je as buttonStyleClass,Ye as buttonStyleClasses,yt as carouselClampPosition,bt as carouselClosestSnapPoint,xt as carouselNavigateTarget,St as carouselPageAllocation,Ct as carouselPageAtPosition,wt as carouselRange,Tt as carouselReorderShift,Et as carouselSizesFromSnapPoints,Dt as carouselSnapPoints,Ot as carouselWheelStep,G as clampAdjustmentValue,Ht as clampAllocate,Ut as clampChildSize,er as clampEntryText,fr as clampListSelection,ci as clampSidebarSelection,Wt as clampSizeFromChild,Gt as clampThresholds,es as classifyAsm6502Word,Sr as collectSearchRows,Cr as countVisiblePages,wr as createSearchRowSubtitle,Ua as createViewSwitcherPage,p as creditsSections,En as dataGridCellText,Dn as dataGridColumnAlign,On as dataGridColumnClasses,kn as dataGridRowInteractive,An as dataGridTrackTemplate,jn as dataGridTracks,Tr as defaultCaseFolder,Er as derivePreferencesGroupHeader,V as deriveRowLabels,ii as describeNavigationDiagnostic,Mt as easeInOutSine,Nt as easeOutCubic,tr as entryTextLength,Dr as escapeMarkup,je as evaluateBreakpointCondition,he as flattenAvatarGradient,fa as flattenMenu,li as flattenSidebarItems,Mi as formatAcceleratorLabel,A as formatAdwRgb,ts as formatHexAddress,ns as formatLineNumber,Ni as formatManifestShortcut,ge as gStrHash,e as gStrStrip,t as glibClamp,Wa as inlineToggleTooltip,Pt as inverseLerp,j as isAdwAccentColorName,ee as isAdwSystemColorScheme,Te as isBannerButtonStyle,hn as isDescendantOfPage,Ga as isInlineViewSwitcherDisplayMode,m as isLicenseType,lo as isScrolledFromEnd,uo as isScrolledFromStart,qi as isSidebarAtVisualStart,Ca as isSplitButtonDirection,an as isThemeIconColor,Ka as isViewSwitcherButtonVisible,qa as isViewSwitcherPolicy,yr as keptToggles,Hr as labelDisplayText,Ur as labelEffectiveLines,Wr as labelEllipsizeOverflowValue,Gr as labelMarkupIsUnparseable,Kr as labelWidthCharsExtent,qr as labelYalignAlignItems,Ji as layoutNavigationSplitView,Yi as layoutOverlaySplitView,h as legalSectionVisible,g as licenseText,_ as licenseTypeForSpdxId,pr as listItemsChanged,Or as makeComparable,Xi as measureSplitViewHorizontal,wa as menuButtonArrowIcon,Ta as menuButtonPopupDirection,pa as menuItemAt,ma as menuNodeAt,ha as menuRefusals,M as nearestAccent,K as normalizeAdjustment,Oe as normalizeBoxOrientation,ke as normalizeBoxSpacing,Kt as normalizeClampSize,mr as normalizeComboOptions,Mn as normalizeDataGridColumns,Nn as normalizeDataGridVariant,dn as normalizeIconName,Jr as normalizeLabelEllipsize,Yr as normalizeLabelJustify,Xr as normalizeLabelLines,Zr as normalizeLabelMaxWidthChars,Qr as normalizeLabelWidthChars,$r as normalizeLabelWrapMode,ei as normalizeLabelXalign,ti as normalizeLabelYalign,Li as normalizeLengthUnit,ga as normalizeMenuModel,Mo as normalizeNaturalLineLength,wi as normalizeSpinnerAngle,No as normalizeWrapBoxAlign,Po as normalizeWrapBoxJustify,Fo as normalizeWrapBoxLengthUnit,Io as normalizeWrapBoxPackDirection,Lo as normalizeWrapBoxSpacing,Ro as normalizeWrapPolicy,N as onAdwaitaAccentChanged,on as onAdwaitaColorSchemeChanged,fo as overshootDistance,Ja as pageIndexForToggle,ki as parseAccelerator,q as parseAdjustment,P as parseAdwRgb,Ee as parseBannerButtonStyle,Me as parseBreakpointCondition,v as parseCreditPerson,te as parseDesktopAppearance,_a as parseDetailedAction,hr as parseListModel,va as parseMenuModel,Ai as parseShortcutLabel,qt as parseToolbarStyle,_e as randomAvatarColorClass,ne as renderAppearanceMeta,In as resolveBottomSheetChrome,Ln as resolveBottomSheetClose,Rn as resolveBottomSheetOpen,zn as resolveBottomSheetSwipeTracker,At as resolveCheckState,Ea as resolveDropdownTooltip,sr as resolveHeaderBarTitle,ya as resolveMenuItemState,Zi as resolveNaturalSidebarWidth,Qi as resolveNavigationAction,$i as resolveNavigationSidebarWidth,ea as resolveNavigationStack,ta as resolveOverlaySidebarWidth,fn as resolvePageTitle,bo as resolvePopoverKey,na as resolveSidebarBounds,Jt as resolveSpinnerSize,ra as resolveSwipeArea,ia as resolveSwipeRelease,aa as resolveSwipeSnapPoints,oa as resolveSwipeStart,zo as resolveWrapBoxChildOrder,Bo as resolveWrapBoxLine,kr as rowMatchesQuery,po as scrollMaxValue,mo as scrollUndershootClasses,Ar as searchPreferences,F as setAdwaitaAccent,sn as setAdwaitaColorScheme,y as setLicense,b as setLicenseType,ji as shortcutKeycaps,Ya as shouldRevealViewSwitcherBar,ui as sidebarHeaders,J as snapAdjustmentValue,Ti as spinnerArc,Ei as spinnerArcEnd,Di as spinnerArcStart,Yt as spinnerGeometry,Oi as spinnerProgressAt,Da as splitButtonArrowIcon,Oa as splitButtonPopupDirection,ka as splitButtonRootState,Aa as splitButtonStyleClasses,n as stringIsNotEmpty,jr as stripMarkup,r as stripMnemonic,rs as stripSourceWhitespace,gn as successorAfterClose,ct as swipeBounds,sa as swipeCancelProgress,lt as swipeClosestPointIndex,ut as swipeEndProgress,dt as swipeNextPointIndex,ft as swipePreviousPointIndex,pt as swipeProjectedPointIndex,mt as swipeSlope,ht as swipeVelocityThreshold,_n as tabCloseVisible,vn as tabIconState,yn as tabTooltip,bn as tabTooltipIsMarkup,xn as tabViewItemsChanged,Sn as tabsRevealed,ca as tagsConflict,cn as themeIconColor,ln as toggleAdwaitaColorScheme,Xa as toggleIndexForPage,br as toggleIndexOfName,is as tokenizeAsm6502,Xt as toolbarBarStyleClasses,Zt as toolbarViewAllocate,Qt as toolbarViewClasses,$t as toolbarViewContentForSize,en as toolbarViewMeasure,x as translatorCreditsPeople,Za as viewSwitcherBadgeLabel,Qa as viewSwitcherButtonOrientation,$a as viewSwitcherIconName,eo as viewSwitcherIndicatorDescription,to as viewSwitcherLabel,no as viewSwitcherPageFromStackPage,ro as viewSwitcherPagesFromStack,Vo as wrapBoxChildFlex,Ho as wrapBoxFlexStyle,Uo as wrapBoxLengthToPx,Wo as wrapPolicyFlexShrink};
|
package/lib/esm/label.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";import{glibClamp as e,stripMnemonic as t}from"./glib.js";import{stripMarkup as n}from"./preferences.js";const r=.5,i=[`left`,`right`,`center`,`fill`];function labelDisplayText(e,r,i){let a=e??``,o=r?n(a)??a:a;return i?t(o):o}function labelMarkupIsUnparseable(e,t){return t&&n(e??``)===null}function normalizeLabelXalign(t){let n=typeof t==`number`?t:Number.parseFloat(String(t??``));return Number.isFinite(n)?e(n,0,1):r}function normalizeLabelJustify(e){return i.includes(e)?e:`left`}const a=.5;function normalizeLabelYalign(t){let n=typeof t==`number`?t:Number.parseFloat(String(t??``));return Number.isFinite(n)?e(n,0,1):a}function labelYalignAlignItems(e){return e<.25?`flex-start`:e>.75?`flex-end`:`center`}const o=[`none`,`start`,`middle`,`end`],s=`none`;function normalizeLabelEllipsize(e){return o.includes(e)?e:s}function labelEllipsizeOverflowValue(e){return e===`none`?`clip`:`ellipsis`}const c=[`word`,`char`,`word-char`],l=`word`;function normalizeLabelWrapMode(e){return c.includes(e)?e:l}function normalizeLabelCharCount(e,t){let n=typeof e==`number`?e:Number.parseInt(String(e??``),10);return Number.isFinite(n)?Math.max(t,Math.trunc(n)):t}const u=-1;function normalizeLabelWidthChars(e){return normalizeLabelCharCount(e,-1)}const d=-1;function normalizeLabelMaxWidthChars(e){return normalizeLabelCharCount(e,-1)}const f=-1;function normalizeLabelLines(e){return normalizeLabelCharCount(e,-1)}function labelEffectiveLines(e,t){return t===`none`?null:e>0?e:1}function labelWidthCharsExtent(e,t){return{minCh:e>=0?e:null,maxCh:t>=0?Math.max(e,t):null}}export{s as DEFAULT_LABEL_ELLIPSIZE,f as DEFAULT_LABEL_LINES,d as DEFAULT_LABEL_MAX_WIDTH_CHARS,u as DEFAULT_LABEL_WIDTH_CHARS,l as DEFAULT_LABEL_WRAP_MODE,r as DEFAULT_LABEL_XALIGN,a as DEFAULT_LABEL_YALIGN,o as LABEL_ELLIPSIZE_MODES,i as LABEL_JUSTIFICATIONS,c as LABEL_WRAP_MODES,labelDisplayText,labelEffectiveLines,labelEllipsizeOverflowValue,labelMarkupIsUnparseable,labelWidthCharsExtent,labelYalignAlignItems,normalizeLabelEllipsize,normalizeLabelJustify,normalizeLabelLines,normalizeLabelMaxWidthChars,normalizeLabelWidthChars,normalizeLabelWrapMode,normalizeLabelXalign,normalizeLabelYalign};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";import{GTK_WIDGET_MARGIN_CSS as e,attributeOf as t,hostTagOf as n,propertyOf as r}from"./tags.js";function element(e,t,n,r,i,a){let o=` `.repeat(e),s=n.map(([e,t])=>t===null?e:`${e}=${r(t)}`),c=i.length===0,l=c?a?` />`:`></${t}>`:`>`,u=`${o}<${[t,...s].join(` `)}${l}`,d=u.length<=80||s.length===0?u:[`${o}<${t}`,...s.map(e=>`${o} ${e}`),`${o}${c?a?`/>`:`></${t}>`:`>`}`].join(`
|
|
2
|
+
`);return c?d:[d,...i,`${o}</${t}>`].join(`
|
|
3
|
+
`)}const htmlText=e=>e.replace(/&/g,`&`).replace(/</g,`<`),htmlQuote=e=>{let t=e.includes(`"`)&&!e.includes(`'`)?`'`:`"`;return`${t}${e.replace(/&/g,`&`).replace(t===`"`?/"/g:/'/g,t===`"`?`"`:`'`)}${t}`};function htmlElement(r,i){let a=[];r.id!==void 0&&a.push([`id`,r.id]);let o=[];for(let[n,i]of Object.entries(r.props??{})){typeof i==`boolean`?i&&a.push([t(n),null]):a.push([t(n),String(i)]);let r=e[t(n)];r!==void 0&&o.push(`${r}: ${Number(i)}px;`)}o.length>0&&a.push([`style`,o.join(` `)]),r.styleClasses!==void 0&&r.styleClasses.length>0&&a.push([`class`,r.styleClasses.join(` `)]);let s=r.extensions?.strings;s!==void 0&&a.push([`strings`,JSON.stringify(s.map(e=>e.value))]),r.slot!==void 0&&a.push([`slot`,r.slot]);let c=[...(r.extensions?.responses??[]).map(e=>{let t=[`id=${htmlQuote(e.id)}`];e.appearance!==void 0&&t.push(`appearance=${htmlQuote(e.appearance)}`),e.enabled===!1&&t.push(`enabled="false"`);let n=htmlText(e.label);return`${` `.repeat(i+1)}<adw-alert-response ${t.join(` `)}>${n}</adw-alert-response>`}),...(r.children??[]).map(e=>htmlElement(e,i+1))];return element(i,n(r.tag),a,htmlQuote,c,!1)}function sharedTreeHtml(e){return htmlElement(e,0)}function xmlNameOf(e){let t=/^(Adw|Gtk)([A-Z]\w*)$/.exec(e);if(t===null)throw Error(`sharedTreeNativeScriptXml: ${e} is not an Adw or Gtk class name`);return{prefix:t[1].toLowerCase(),member:t[2]}}const xmlQuote=e=>{let t=e.includes(`"`)?`'`:`"`;return`${t}${e.replace(/&/g,`&`).replace(/</g,`<`).replace(t===`"`?/"/g:/'/g,t===`"`?`"`:`'`)}${t}`};function prefixesOf(e,t){t.add(xmlNameOf(e.tag).prefix);for(let n of e.children??[])prefixesOf(n,t);return t}function xmlElement(e,t,n){let{prefix:i,member:a}=xmlNameOf(e.tag),o=`${i}:${a}`,s=[...n];e.id!==void 0&&s.push([`id`,e.id]);for(let[t,n]of Object.entries(e.props??{}))s.push([r(t),String(n)]);e.styleClasses!==void 0&&e.styleClasses.length>0&&s.push([`styleClasses`,e.styleClasses.join(` `)]);let c=e.extensions?.strings;c!==void 0&&s.push([`strings`,JSON.stringify(c.map(e=>e.value))]);let l=(e.children??[]).map(e=>{if(e.slot===void 0)return xmlElement(e,t+1,[]);let n=` `.repeat(t+1),r=`${o}.${e.slot}`;return[`${n}<${r}>`,xmlElement(e,t+2,[]),`${n}</${r}>`].join(`
|
|
4
|
+
`)});return element(t,o,s,xmlQuote,l,!0)}function sharedTreeNativeScriptXml(e){return xmlElement(e,0,[[`xmlns`,`http://schemas.nativescript.org/tns.xsd`],...[...prefixesOf(e,new Set)].sort().map(e=>[`xmlns:${e}`,`~/${e}`])])}export{sharedTreeHtml,sharedTreeNativeScriptXml};
|
package/lib/esm/rows.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./_virtual/_rolldown/runtime.js";import{SpinState as e}from"./adjustment.js";import{ADW_COMBO_NO_SELECTION as t,clampListSelection as n,listItemsChanged as r,normalizeComboOptions as i}from"./list.js";var ExpanderState=class{constructor(){this._expanded=!1,this._listeners=new Set}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}_emit(){for(let e of[...this._listeners])e(this._expanded)}get expanded(){return this._expanded}setExpanded(e){let t=!!e;return t===this._expanded?!1:(this._expanded=t,this._emit(),!0)}toggle(){return this.setExpanded(!this._expanded)}expand(){return this.setExpanded(!0)}collapse(){return this.setExpanded(!1)}},ComboState=class{constructor(){this._options=[],this._selected=0,this._listeners=new Set,this._itemListeners=new Set}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}subscribeItems(e){return this._itemListeners.add(e),()=>{this._itemListeners.delete(e)}}_emit(e){let t={selected:this._selected,value:this.selectedValue,label:this.selectedLabel,interactive:e};for(let e of[...this._listeners])e(t)}_setIndex(e,t){return e===this._selected?!1:(this._selected=e,this._emit(t),!0)}get model(){return this._options.map(e=>({value:e.value,label:e.label}))}setModel(e){let t=this._options,i=Array.isArray(e)?e:[],a=r(t,i);if(this._options=i.map(e=>({value:e.value,label:e.label})),this._selected=n(this._selected,i.length),a)for(let e of[...this._itemListeners])e(a);this._emit(!1)}get selectedIndex(){return this._selected}get presentsChooser(){return this._options.length>1}setSelectedIndex(e){return this._setIndex(Number.isFinite(e)?e:0,!1)}get selectedValue(){return this._options[this._selected]?.value??``}get selectedLabel(){return this._options[this._selected]?.label??``}setSelectedValue(e){let t=this._options.findIndex(t=>t.value===e);return t>=0?this.setSelectedIndex(t):!1}hasIndex(e){return Number.isFinite(e)&&e>=0&&e<this._options.length}select(e){return!this.hasIndex(e)||e===this._selected?!1:this._setIndex(e,!0)}get count(){return this._options.length}},ToggleGroupState=class{constructor(){this._labels=[],this._selected=0,this._listeners=new Set}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}_emit(){let e={selected:this._selected,value:this.selectedValue};for(let t of[...this._listeners])t(e)}get labels(){return this._labels}setLabels(e){this._labels=Array.isArray(e)?e:[],this._selected>=this._labels.length&&(this._selected=0)}get selected(){return this._selected}setSelected(e){let t=Number.isFinite(e)?e:0;return t===this._selected||t<0||t>=this._labels.length?!1:(this._selected=t,this._emit(),!0)}get selectedValue(){return this._labels[this._selected]??``}get count(){return this._labels.length}};export{t as ADW_COMBO_NO_SELECTION,ComboState,ExpanderState,e as SpinState,ToggleGroupState,i as normalizeComboOptions};
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";import{SpinState as e}from"./adjustment.js";import{ADW_COMBO_NO_SELECTION as t,clampListSelection as n,listItemsChanged as r,normalizeComboOptions as i}from"./list.js";var ExpanderState=class{constructor(){this._expanded=!1,this._listeners=new Set}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}_emit(){for(let e of[...this._listeners])e(this._expanded)}get expanded(){return this._expanded}setExpanded(e){let t=!!e;return t===this._expanded?!1:(this._expanded=t,this._emit(),!0)}toggle(){return this.setExpanded(!this._expanded)}expand(){return this.setExpanded(!0)}collapse(){return this.setExpanded(!1)}},ComboState=class{constructor(){this._options=[],this._selected=0,this._listeners=new Set,this._itemListeners=new Set}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}subscribeItems(e){return this._itemListeners.add(e),()=>{this._itemListeners.delete(e)}}_emit(e){let t={selected:this._selected,value:this.selectedValue,label:this.selectedLabel,interactive:e};for(let e of[...this._listeners])e(t)}_setIndex(e,t){return e===this._selected?!1:(this._selected=e,this._emit(t),!0)}get model(){return this._options.map(e=>({value:e.value,label:e.label}))}setModel(e){let t=this._options,i=Array.isArray(e)?e:[],a=r(t,i);if(this._options=i.map(e=>({value:e.value,label:e.label})),this._selected=n(this._selected,i.length),a)for(let e of[...this._itemListeners])e(a);this._emit(!1)}get selectedIndex(){return this._selected}get presentsChooser(){return this._options.length>1}setSelectedIndex(e){return this._setIndex(Number.isFinite(e)?e:0,!1)}get selectedValue(){return this._options[this._selected]?.value??``}get selectedLabel(){return this._options[this._selected]?.label??``}setSelectedValue(e){let t=this._options.findIndex(t=>t.value===e);return t>=0?this.setSelectedIndex(t):!1}hasIndex(e){return Number.isFinite(e)&&e>=0&&e<this._options.length}select(e){return!this.hasIndex(e)||e===this._selected?!1:this._setIndex(e,!0)}get count(){return this._options.length}},ToggleGroupState=class{constructor(){this._labels=[],this._selected=0,this._listeners=new Set}subscribe(e){return this._listeners.add(e),()=>{this._listeners.delete(e)}}_emit(){let e={selected:this._selected,value:this.selectedValue};for(let t of[...this._listeners])t(e)}get labels(){return this._labels}setLabels(e){this._labels=Array.isArray(e)?e:[],this._selected>=this._labels.length&&(this._selected=0)}get selected(){return this._selected}setSelected(e){let t=Number.isFinite(e)?e:0;return t===this._selected||t<0||t>=this._labels.length?!1:(this._selected=t,this._emit(),!0)}get selectedValue(){return this._labels[this._selected]??``}get count(){return this._labels.length}};function keptToggles(e){let t=new Set,n=[];for(let r of e){let e=r.name??null;e!==null&&t.has(e)||(e!==null&&t.add(e),n.push(r))}return n}function toggleIndexOfName(e,t){return e.indexOf(t)}export{t as ADW_COMBO_NO_SELECTION,ComboState,ExpanderState,e as SpinState,ToggleGroupState,keptToggles,i as normalizeComboOptions,toggleIndexOfName};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";import{shortcutKeycaps as e}from"./shortcut-label.js";const t=[`⌃`,`⌥`,`⇧`,`⌘`],n={macctrl:`⌃`,ctrl:`⌘`,control:`⌘`,command:`⌘`,cmd:`⌘`,meta:`⌘`,alt:`⌥`,option:`⌥`,shift:`⇧`},r={return:`↩`,enter:`↩`,escape:`⎋`,delete:`⌫`,tab:`⇥`,left:`←`,up:`↑`,right:`→`,down:`↓`,space:`Space`},i=/[⌃⌥⇧⌘]/;function formatManifestShortcut(e,a){let o=e.trim();if(!o||i.test(o)||a!==`mac`)return o;let s=o.split(`+`).map(e=>e.trim()),c=s.pop()??``,l=new Set(s.map(e=>n[e.toLowerCase()]).filter(e=>e!==void 0)),u=t.filter(e=>l.has(e)),d=r[c.toLowerCase()]??c;return[...u,d].join(``)}function formatAcceleratorLabel(t,n){let r=e(t,n===`mac`?`apple`:`default`);return r?r.map(e=>e.label).join(n===`mac`?``:`+`):t}export{formatAcceleratorLabel,formatManifestShortcut};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";const e=new Set(`ADC.AND.ASL.BCC.BCS.BEQ.BIT.BMI.BNE.BPL.BRK.BVC.BVS.CLC.CLD.CLI.CLV.CMP.CPX.CPY.DEC.DEX.DEY.EOR.INC.INX.INY.JMP.JSR.LDA.LDX.LDY.LSR.NOP.ORA.PHA.PHP.PLA.PLP.ROL.ROR.RTI.RTS.SBC.SEC.SED.SEI.STA.STX.STY.TAX.TAY.TSX.TXA.TXS.TYA`.split(`.`)),t=new Set([`A`,`X`,`Y`]),n=new Set([`DEFINE`,`DCB`,`ORG`,`BYTE`,`WORD`,`DB`,`DW`,`DS`,`ASCII`,`ASCIIZ`,`TEXT`,`INCLUDE`,`INCBIN`,`EQU`,`END`,`PROC`,`ENDPROC`,`MACRO`,`ENDMACRO`]),r=`;`;function classifyAsm6502Word(r,i){let a=r.toUpperCase();return e.has(a)?`opcode`:n.has(a)?`directive`:t.has(a)?`register`:i?`label`:`identifier`}function tokenizeAsm6502(e){let t=e.sol();if(e.eatSpace())return null;let n=e.peek();if(n==null)return null;if(n===`;`)return e.skipToEnd(),`comment`;if(n===`"`||n===`'`){let t=n;e.next();let r=!1;for(;!e.eol();){let n=e.next();if(n===void 0||n===t&&!r)break;r=n===`\\`&&!r}return`string`}if(n===`#`)return e.next(),`operator`;if(n===`$`)return e.next(),e.eatWhile(/[0-9a-fA-F]/),`number`;if(n===`%`)return e.next(),e.eatWhile(/[01]/),`number`;if(/[0-9]/.test(n))return e.eatWhile(/[0-9]/),`number`;if(n===`.`)return e.next(),e.eatWhile(/[A-Za-z0-9_]/)?`directive`:null;if(/[A-Za-z_]/.test(n)){e.eatWhile(/[A-Za-z0-9_]/);let n=e.current();return e.peek()===`:`?`label`:classifyAsm6502Word(n,t)}return`+-*/=<>,()[]&|^~`.includes(n)?(e.next(),`operator`):(e.next(),null)}const i=[`comment`,`keyword`,`number`,`string`,`label`,`register`,`directive`,`operator`],a={comment:`comment`,directive:`directive`,identifier:null,label:`label`,number:`number`,opcode:`keyword`,operator:`operator`,register:`register`,string:`string`},o={comment:`#5e5c64`,keyword:`#1c71d8`,number:`#c64600`,string:`#26a269`,label:`#813d9c`,register:`#007e8a`,directive:`#a51d2d`,operator:`rgba(0, 0, 6, 0.55)`},s={comment:`#9a9996`,keyword:`#78aeed`,number:`#ffa348`,string:`#8ff0a4`,label:`#dc8add`,register:`#33d1c9`,directive:`#f66151`,operator:`rgba(255, 255, 255, 0.55)`},c=16;function formatHexAddress(e,t,n=16){return(t+(e-1)*n).toString(16).padStart(4,`0`).toUpperCase()}function formatLineNumber(e,t=1){return String(e-1+t)}function stripSourceWhitespace(e){return e.replace(/\s/g,``)}export{n as ADW_SOURCE_6502_DIRECTIVES,r as ADW_SOURCE_6502_LINE_COMMENT,e as ADW_SOURCE_6502_OPCODES,t as ADW_SOURCE_6502_REGISTERS,a as ADW_SOURCE_6502_TOKEN_ROLES,c as ADW_SOURCE_HEX_STRIDE,s as ADW_SOURCE_PALETTE_DARK,o as ADW_SOURCE_PALETTE_LIGHT,i as ADW_SOURCE_SYNTAX_ROLES,classifyAsm6502Word,formatHexAddress,formatLineNumber,stripSourceWhitespace,tokenizeAsm6502};
|
package/lib/esm/tags.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";const hostTagOf=e=>{if(!/^(?:Adw|Gtk)[A-Z]\w*$/.test(e))throw Error(`hostTagOf: ${e} is not a GIR class name`);let t=[];for(let n=0;n<e.length;n++){let r=e.charAt(n);if(r>=`A`&&r<=`Z`&&n>0){let r=e.charAt(n-1),i=e.charAt(n+1);(!(r>=`A`&&r<=`Z`)||i>=`a`&&i<=`z`)&&t.push(`-`)}t.push(r.toLowerCase())}return t.join(``)},attributeOf=e=>e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`),propertyOf=e=>e.replace(/[-_]([a-z0-9])/g,(e,t)=>t.toUpperCase()),e={"margin-start":`margin-inline-start`,"margin-end":`margin-inline-end`,"margin-top":`margin-top`,"margin-bottom":`margin-bottom`};export{e as GTK_WIDGET_MARGIN_CSS,attributeOf,hostTagOf,propertyOf};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e={"--window-bg-color":{light:`#fafafb`,dark:`#222226`},"--window-fg-color":{light:`rgba(0, 0, 6, 0.8)`,dark:`#ffffff`},"--view-bg-color":{light:`#ffffff`,dark:`#1d1d20`},"--view-fg-color":{light:`rgba(0, 0, 6, 0.8)`,dark:`#ffffff`},"--headerbar-bg-color":{light:`#ffffff`,dark:`#2e2e32`},"--headerbar-fg-color":{light:`rgba(0, 0, 6, 0.8)`,dark:`#ffffff`},"--headerbar-shade-color":{light:`rgba(0, 0, 6, 0.12)`,dark:`rgba(0, 0, 6, 0.36)`},"--separator-color":{light:`rgba(0, 0, 6, 0.1)`,dark:`rgba(255, 255, 255, 0.08)`},"--shade-color":{light:`rgba(0, 0, 6, 0.07)`,dark:`rgba(0, 0, 6, 0.25)`},"--sidebar-bg-color":{light:`#ebebed`,dark:`#2e2e32`},"--sidebar-fg-color":{light:`rgba(0, 0, 6, 0.8)`,dark:`#ffffff`},"--sidebar-backdrop-color":{light:`#f2f2f4`,dark:`#28282c`},"--sidebar-shade-color":{light:`rgba(0, 0, 6, 0.07)`,dark:`rgba(0, 0, 6, 0.25)`},"--sidebar-border-color":{light:`rgba(0, 0, 6, 0.07)`,dark:`rgba(0, 0, 6, 0.36)`},"--secondary-sidebar-bg-color":{light:`#f3f3f5`,dark:`#28282c`},"--secondary-sidebar-fg-color":{light:`rgba(0, 0, 6, 0.8)`,dark:`#ffffff`},"--secondary-sidebar-backdrop-color":{light:`#f6f6fa`,dark:`#252529`},"--secondary-sidebar-shade-color":{light:`rgba(0, 0, 6, 0.07)`,dark:`rgba(0, 0, 6, 0.25)`},"--secondary-sidebar-border-color":{light:`rgba(0, 0, 6, 0.07)`,dark:`rgba(0, 0, 6, 0.36)`},"--card-bg-color":{light:`#ffffff`,dark:`rgba(255, 255, 255, 0.08)`},"--card-fg-color":{light:`rgba(0, 0, 6, 0.8)`,dark:`#ffffff`},"--card-shade-color":{light:`rgba(0, 0, 6, 0.07)`,dark:`rgba(0, 0, 6, 0.36)`},"--accent-bg-color":{light:`#3584e4`},"--accent-fg-color":{light:`#ffffff`},"--accent-color":{light:`#1c71d8`,dark:`#78aeed`},"--popover-bg-color":{light:`#ffffff`,dark:`#36363a`},"--popover-fg-color":{light:`rgba(0, 0, 6, 0.8)`,dark:`#ffffff`},"--popover-shade-color":{light:`rgba(0, 0, 6, 0.07)`,dark:`rgba(0, 0, 6, 0.36)`},"--dialog-scrim-color":{light:`rgba(0, 0, 6, 0.32)`,dark:`rgba(0, 0, 6, 0.55)`},"--button-bg-color":{light:`rgba(0, 0, 6, 0.08)`,dark:`rgba(255, 255, 255, 0.1)`},"--button-hover-color":{light:`rgba(0, 0, 6, 0.13)`,dark:`rgba(255, 255, 255, 0.15)`},"--button-active-color":{light:`rgba(0, 0, 6, 0.19)`,dark:`rgba(255, 255, 255, 0.22)`},"--entry-bg-color":{light:`#ffffff`,dark:`rgba(255, 255, 255, 0.06)`},"--entry-border-color":{light:`rgba(0, 0, 6, 0.18)`,dark:`rgba(255, 255, 255, 0.16)`},"--entry-border-hover-color":{light:`rgba(0, 0, 6, 0.28)`,dark:`rgba(255, 255, 255, 0.26)`},"--destructive-bg-color":{light:`#e01b24`,dark:`#c01c28`},"--destructive-fg-color":{light:`#ffffff`},"--success-bg-color":{light:`#2ec27e`,dark:`#26a269`},"--success-fg-color":{light:`#ffffff`},"--success-color":{light:`oklab(from var(--success-bg-color) min(l, 0.5) a b)`,dark:`oklab(from var(--success-bg-color) max(l, 0.85) a b)`},"--warning-bg-color":{light:`#e5a50a`,dark:`#cd9309`},"--warning-fg-color":{light:`rgba(0, 0, 0, 0.8)`},"--warning-color":{light:`oklab(from var(--warning-bg-color) min(l, 0.5) a b)`,dark:`oklab(from var(--warning-bg-color) max(l, 0.85) a b)`},"--error-bg-color":{light:`#e01b24`,dark:`#c01c28`},"--error-fg-color":{light:`#ffffff`},"--error-color":{light:`oklab(from var(--error-bg-color) min(l, 0.5) a b)`,dark:`oklab(from var(--error-bg-color) max(l, 0.85) a b)`},"--switch-off-bg":{light:`rgba(0, 0, 0, 0.2)`,dark:`rgba(255, 255, 255, 0.2)`},"--switch-knob-bg":{light:`#ffffff`,dark:`#deddda`},"--window-radius":{light:`15px`},"--card-radius":{light:`12px`},"--button-radius":{light:`9px`},"--spacing-xs":{light:`6px`},"--spacing-s":{light:`9px`},"--spacing-m":{light:`12px`},"--spacing-l":{light:`18px`},"--spacing-xl":{light:`24px`},"--font-family":{light:`'Adwaita Sans', 'Cantarell', 'Inter', 'Segoe UI', sans-serif`},"--font-size-base":{light:`11pt`},"--font-size-small":{light:`9pt`},"--font-size-heading":{light:`12pt`},"--dim-opacity":{light:`0.55`},"--border-opacity":{light:`15%`},"--border-color":{light:`color-mix(in srgb, currentColor var(--border-opacity), transparent)`},"--disabled-opacity":{light:`0.5`},"--document-font-family":{light:`var(--font-family)`},"--document-font-size":{light:`var(--font-size-base)`},"--monospace-font-family":{light:`'Adwaita Mono', ui-monospace, 'SF Mono', 'Menlo', monospace`},"--monospace-font-size":{light:`var(--font-size-base)`}},t=[`--active-toggle-
|
|
1
|
+
const e={"--window-bg-color":{light:`#fafafb`,dark:`#222226`},"--window-fg-color":{light:`rgba(0, 0, 6, 0.8)`,dark:`#ffffff`},"--view-bg-color":{light:`#ffffff`,dark:`#1d1d20`},"--view-fg-color":{light:`rgba(0, 0, 6, 0.8)`,dark:`#ffffff`},"--headerbar-bg-color":{light:`#ffffff`,dark:`#2e2e32`},"--headerbar-fg-color":{light:`rgba(0, 0, 6, 0.8)`,dark:`#ffffff`},"--headerbar-shade-color":{light:`rgba(0, 0, 6, 0.12)`,dark:`rgba(0, 0, 6, 0.36)`},"--separator-color":{light:`rgba(0, 0, 6, 0.1)`,dark:`rgba(255, 255, 255, 0.08)`},"--shade-color":{light:`rgba(0, 0, 6, 0.07)`,dark:`rgba(0, 0, 6, 0.25)`},"--sidebar-bg-color":{light:`#ebebed`,dark:`#2e2e32`},"--sidebar-fg-color":{light:`rgba(0, 0, 6, 0.8)`,dark:`#ffffff`},"--sidebar-backdrop-color":{light:`#f2f2f4`,dark:`#28282c`},"--sidebar-shade-color":{light:`rgba(0, 0, 6, 0.07)`,dark:`rgba(0, 0, 6, 0.25)`},"--sidebar-border-color":{light:`rgba(0, 0, 6, 0.07)`,dark:`rgba(0, 0, 6, 0.36)`},"--secondary-sidebar-bg-color":{light:`#f3f3f5`,dark:`#28282c`},"--secondary-sidebar-fg-color":{light:`rgba(0, 0, 6, 0.8)`,dark:`#ffffff`},"--secondary-sidebar-backdrop-color":{light:`#f6f6fa`,dark:`#252529`},"--secondary-sidebar-shade-color":{light:`rgba(0, 0, 6, 0.07)`,dark:`rgba(0, 0, 6, 0.25)`},"--secondary-sidebar-border-color":{light:`rgba(0, 0, 6, 0.07)`,dark:`rgba(0, 0, 6, 0.36)`},"--card-bg-color":{light:`#ffffff`,dark:`rgba(255, 255, 255, 0.08)`},"--card-fg-color":{light:`rgba(0, 0, 6, 0.8)`,dark:`#ffffff`},"--card-shade-color":{light:`rgba(0, 0, 6, 0.07)`,dark:`rgba(0, 0, 6, 0.36)`},"--accent-bg-color":{light:`#3584e4`},"--accent-fg-color":{light:`#ffffff`},"--accent-color":{light:`#1c71d8`,dark:`#78aeed`},"--popover-bg-color":{light:`#ffffff`,dark:`#36363a`},"--popover-fg-color":{light:`rgba(0, 0, 6, 0.8)`,dark:`#ffffff`},"--popover-shade-color":{light:`rgba(0, 0, 6, 0.07)`,dark:`rgba(0, 0, 6, 0.36)`},"--dialog-scrim-color":{light:`rgba(0, 0, 6, 0.32)`,dark:`rgba(0, 0, 6, 0.55)`},"--button-bg-color":{light:`rgba(0, 0, 6, 0.08)`,dark:`rgba(255, 255, 255, 0.1)`},"--button-hover-color":{light:`rgba(0, 0, 6, 0.13)`,dark:`rgba(255, 255, 255, 0.15)`},"--button-active-color":{light:`rgba(0, 0, 6, 0.19)`,dark:`rgba(255, 255, 255, 0.22)`},"--entry-bg-color":{light:`#ffffff`,dark:`rgba(255, 255, 255, 0.06)`},"--entry-border-color":{light:`rgba(0, 0, 6, 0.18)`,dark:`rgba(255, 255, 255, 0.16)`},"--entry-border-hover-color":{light:`rgba(0, 0, 6, 0.28)`,dark:`rgba(255, 255, 255, 0.26)`},"--destructive-bg-color":{light:`#e01b24`,dark:`#c01c28`},"--destructive-fg-color":{light:`#ffffff`},"--destructive-color":{light:`oklab(from var(--destructive-bg-color) min(l, 0.5) a b)`,dark:`oklab(from var(--destructive-bg-color) max(l, 0.85) a b)`},"--success-bg-color":{light:`#2ec27e`,dark:`#26a269`},"--success-fg-color":{light:`#ffffff`},"--success-color":{light:`oklab(from var(--success-bg-color) min(l, 0.5) a b)`,dark:`oklab(from var(--success-bg-color) max(l, 0.85) a b)`},"--warning-bg-color":{light:`#e5a50a`,dark:`#cd9309`},"--warning-fg-color":{light:`rgba(0, 0, 0, 0.8)`},"--warning-color":{light:`oklab(from var(--warning-bg-color) min(l, 0.5) a b)`,dark:`oklab(from var(--warning-bg-color) max(l, 0.85) a b)`},"--error-bg-color":{light:`#e01b24`,dark:`#c01c28`},"--error-fg-color":{light:`#ffffff`},"--error-color":{light:`oklab(from var(--error-bg-color) min(l, 0.5) a b)`,dark:`oklab(from var(--error-bg-color) max(l, 0.85) a b)`},"--switch-off-bg":{light:`rgba(0, 0, 0, 0.2)`,dark:`rgba(255, 255, 255, 0.2)`},"--switch-knob-bg":{light:`#ffffff`,dark:`#deddda`},"--window-radius":{light:`15px`},"--card-radius":{light:`12px`},"--button-radius":{light:`9px`},"--spacing-xs":{light:`6px`},"--spacing-s":{light:`9px`},"--spacing-m":{light:`12px`},"--spacing-l":{light:`18px`},"--spacing-xl":{light:`24px`},"--font-family":{light:`'Adwaita Sans', 'Cantarell', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif`},"--font-size-base":{light:`11pt`},"--font-size-small":{light:`9pt`},"--font-size-heading":{light:`12pt`},"--dim-opacity":{light:`0.55`},"--border-opacity":{light:`15%`},"--border-color":{light:`color-mix(in srgb, currentColor var(--border-opacity), transparent)`},"--disabled-opacity":{light:`0.5`},"--document-font-family":{light:`var(--font-family)`},"--document-font-size":{light:`var(--font-size-base)`},"--monospace-font-family":{light:`'Adwaita Mono', ui-monospace, 'SF Mono', 'Menlo', 'Consolas', monospace`},"--monospace-font-size":{light:`var(--font-size-base)`}},t=[`--active-toggle-bg-color`],n=[`--border-color`,`--destructive-color`,`--document-font-family`,`--document-font-size`,`--error-color`,`--monospace-font-size`,`--success-color`,`--warning-color`],r=69;export{t as ADWAITA_DARK_ONLY_TOKENS,e as ADWAITA_TOKENS,r as ADWAITA_TOKEN_COUNT,n as ADWAITA_UNRESOLVED_TOKENS};
|
package/lib/types/accent.d.ts
CHANGED
|
@@ -21,6 +21,21 @@ export declare const ADW_ACCENT_BG_COLORS: Readonly<Record<AdwAccentColorName, s
|
|
|
21
21
|
export declare const ADW_DEFAULT_ACCENT_COLOR: AdwAccentColorName;
|
|
22
22
|
/** Whether `value` is one of the nine accent names. */
|
|
23
23
|
export declare function isAdwAccentColorName(value: string): value is AdwAccentColorName;
|
|
24
|
+
/** An sRGB colour with each channel in 0…1 — the shape of a `GdkRGBA` without alpha. */
|
|
25
|
+
export interface AdwRgb {
|
|
26
|
+
readonly red: number;
|
|
27
|
+
readonly green: number;
|
|
28
|
+
readonly blue: number;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Parse the colour spellings a system hands over: `#rgb`, `#rrggbb`, and the
|
|
32
|
+
* `rgb(r, g, b)` / `rgb(r g b)` form `getComputedStyle` serialises a resolved
|
|
33
|
+
* colour to (alpha is ignored — an accent is opaque). `null` for anything else,
|
|
34
|
+
* including a channel outside 0…255.
|
|
35
|
+
*/
|
|
36
|
+
export declare function parseAdwRgb(css: string): AdwRgb | null;
|
|
37
|
+
/** An {@link AdwRgb} as `#rrggbb`, each channel clamped to 0…1 and rounded like `rgba_to_hex`. */
|
|
38
|
+
export declare function formatAdwRgb(rgb: AdwRgb): string;
|
|
24
39
|
/**
|
|
25
40
|
* `adw_rgba_to_standalone` — a background colour adjusted to stand alone on a
|
|
26
41
|
* light or dark surface: darker on light, lighter on dark.
|
|
@@ -29,6 +44,27 @@ export declare function isAdwAccentColorName(value: string): value is AdwAccentC
|
|
|
29
44
|
* the result keeps the accent's hue instead of washing towards grey.
|
|
30
45
|
*/
|
|
31
46
|
export declare function adwaitaStandaloneColor(background: string, dark: boolean): string;
|
|
47
|
+
/**
|
|
48
|
+
* `adw_accent_color_nearest_from_rgba` — snap an arbitrary system colour to one
|
|
49
|
+
* of the nine accents.
|
|
50
|
+
*
|
|
51
|
+
* This is what libadwaita does with EVERY system accent it reads: the portal's
|
|
52
|
+
* `accent-color` on Linux (`adw-settings-impl-portal.c`), WinRT's
|
|
53
|
+
* `UIColorType_Accent` on Windows and `NSColor.controlAccentColor` on macOS all
|
|
54
|
+
* go through it, so an Adwaita surface never paints the raw system colour — it
|
|
55
|
+
* paints the palette entry closest in HUE. The rule is a hue ladder in OkLCh,
|
|
56
|
+
* not a distance: anything with chroma under 0.04 is slate, whatever its
|
|
57
|
+
* lightness, which is why white, black and every grey land there.
|
|
58
|
+
*
|
|
59
|
+
* libadwaita computes in single-precision `float`; this uses doubles. The two
|
|
60
|
+
* can disagree only for a colour whose hue lies within float rounding of one of
|
|
61
|
+
* the eight thresholds — none of the reference cases in
|
|
62
|
+
* `conformance/accent.ts#NEAREST_ACCENT_VECTORS` does.
|
|
63
|
+
*
|
|
64
|
+
* Reference: refs/libadwaita/src/adw-accent-color.c#adw_accent_color_nearest_from_rgba
|
|
65
|
+
* Reference: refs/libadwaita/src/adw-color-utils.c#oklab_to_oklch
|
|
66
|
+
*/
|
|
67
|
+
export declare function nearestAccent(rgb: AdwRgb): AdwAccentColorName;
|
|
32
68
|
/** The `--accent-bg-color` for an accent name. */
|
|
33
69
|
export declare function adwaitaAccentBgColor(name: AdwAccentColorName): string;
|
|
34
70
|
/** The `--accent-color` for an accent name in the given scheme. */
|