@gjsify/adwaita-nativescript 0.64.12-next.280 → 0.64.12-next.281
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/builder/index.js +1 -1
- package/lib/esm/builder/param-values.js +1 -1
- package/lib/esm/gobject-siblings.d.blp.js +0 -0
- package/lib/esm/index.js +1 -1
- package/lib/esm/namespace/adw.js +1 -1
- package/lib/esm/namespace/gio.js +1 -1
- package/lib/esm/namespace/gtk.js +1 -1
- package/lib/esm/widgets/adw-button-content.js +1 -1
- package/lib/esm/widgets/adw-button-row.js +1 -1
- package/lib/esm/widgets/adw-combo-row.js +1 -1
- package/lib/esm/widgets/adw-split-button.js +1 -1
- package/lib/esm/widgets/gtk-button.js +1 -1
- package/lib/esm/widgets/gtk-check-button.js +1 -1
- package/lib/esm/widgets/gtk-drop-down.js +1 -1
- package/lib/esm/widgets/gtk-list-box.js +1 -1
- package/lib/esm/widgets/gtk-window.js +1 -1
- package/lib/esm/widgets/index.js +1 -1
- package/lib/esm/widgets/split-button.js +1 -1
- package/lib/types/builder/index.d.ts +5 -2
- package/lib/types/button-content-properties.spec.d.ts +1 -0
- package/lib/types/index.d.ts +1 -1
- package/lib/types/namespace/gio.d.ts +1 -0
- package/lib/types/namespace/gtk.d.ts +1 -1
- package/lib/types/split-button-properties.spec.d.ts +1 -0
- package/lib/types/widgets/adw-button-content.d.ts +21 -13
- package/lib/types/widgets/adw-combo-row.d.ts +1 -1
- package/lib/types/widgets/adw-split-button.d.ts +28 -29
- package/lib/types/widgets/gtk-drop-down.d.ts +1 -1
- package/lib/types/widgets/gtk-window.d.ts +3 -2
- package/lib/types/widgets/index.d.ts +2 -2
- package/lib/types/widgets/split-button.d.ts +1 -10
- package/package.json +13 -13
package/lib/esm/builder/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{capabilities as e}from"../capabilities.js";import{observeWindowSize as t}from"../widgets/breakpoint.js";import{gtypeNameOf as n,gtypeNameOfInstance as r}from"../widgets/gtype-name.js";import{declaredBuilderReferences as i,declaredBuilderSlots as a}from"../widgets/builder-slots.js";import{gtkPropertyRefusal as o,hasGtkProperty as s,readGtkProperty as c,writeGtkProperty as l}from"../widgets/shadowed-properties.js";import{emittedSignalsOf as u}from"../widgets/signals.js";import{authoredParamValue as d}from"./param-values.js";import{registerTemplateClass as f,templateClassFor as p}from"./template-classes.js";import{adw_exports as m}from"../namespace/adw.js";import{gtk_exports as h}from"../namespace/gtk.js";import{createBreakpointDriver as g,menuAssignments as _,parseBreakpointCondition as v}from"@gjsify/adwaita-core";import{assertTreeConstructs as y}from"@gjsify/adwaita-core/conformance";import{propertyOf as b}from"@gjsify/adwaita-core/tags";import{View as x}from"@nativescript/core";const S=[{prefix:`adw`,library:`Adw`,namespace:m},{prefix:`gtk`,library:`Gtk`,namespace:h}];function registerBarrel(e,t,n){let r=S.find(t=>t.prefix===e);if(r!==void 0&&r.library!==t)throw Error(`The prefix '${e}' already names \`${r.library}\`; it cannot also name \`${t}\`.`);r===void 0?S.push({prefix:e,library:t,namespace:n}):r.namespace=n}const C={GtkPopoverMenuBar:`Android has no menu-bar surface, and a row of PopupMenus would be a design choice, not GTK's widget (ADR 0097 § 2). Use a GtkMenuButton or a GtkPopoverMenu.`};function elementFor(e){let t=C[e];if(t!==void 0)throw Error(`\`${e}\` is refused on this port: ${t}`);let r=[...S].sort((e,t)=>t.library.length-e.library.length);for(let{prefix:t,library:i,namespace:a}of r){if(!e.startsWith(i))continue;let r=e.slice(i.length),o=a[r];if(typeof o!=`function`)throw Error(`Module '~/${t}' has no member for element '${t}:${r}' — the name \`${e}\` is authored in the shared corpus and this dialect cannot spell it. Give the widget a namespace member (ADR 0034 clause 2), or ledger the block as divergent.`);if(n(o)!==e)throw Error(`'${t}:${r}' resolves to class \`${n(o)}\`, not \`${e}\`. The corpus is authored in GIR class names and ADR 0034 clause 1 says a widget carries that name, so a barrel member bound to another class would build the wrong widget at exit 0.`);return{xmlName:`${t}:${r}`,ctor:o}}throw Error(`\`${e}\` starts with no library this dialect has a barrel for (${S.map(e=>e.prefix).join(`, `)}).`)}function elementOf(e){return e.extern===!0?{xmlName:`app:${e.tag}`,ctor:p(e.tag)}:elementFor(e.tag)}function translated(e,t,n){return n===void 0||e===void 0||typeof t!=`string`?t:e(t,n.context)}function build(e,t={}){refuseSiblings(e,`build`);let n=buildTree(e,t).root;if(!(n instanceof x))throw Error(`\`${e.tag}\` is not a widget, so a tree cannot root at it: there is nothing to show.`);return n}function buildDialog(e,t={}){refuseSiblings(e,`buildDialog`);let n=buildTree(e,t).root;if(n instanceof x||typeof n.present!=`function`)throw Error(`\`${e.tag}\` is not a dialog: it has no \`present()\`, so use \`build\` for it.`);return n}function buildWithSiblings(e,t={}){let n=buildTree(e,t,!0);if(!(n.root instanceof x))throw Error(`\`${e.tag}\` is not a widget, so a tree cannot root at it: there is nothing to show.`);return{root:n.root,siblings:n.siblings,objects:n.objects}}function buildInto(e,t,n={}){refuseSiblings(t,`buildInto`);let r=elementOf(t);if(!(e instanceof r.ctor))throw Error(`\`buildInto\` was handed a ${e.constructor.name}, and the tree's root is \`${t.tag}\`: a template builds into an instance of the class it extends (<${r.xmlName}>).`);return buildTree(t,n,!1,e).objects}function refuseSiblings(e,t){if((e.siblings?.length??0)!==0)throw Error(`\`${e.tag}\` carries ${e.siblings.length} sibling object(s), and \`${t}\` returns one object so they would be built and lost. Use \`buildWithSiblings\`, which hands them back by id.`)}function buildTree(n,r,i=!1,a){y(`adwaita-nativescript`,e,n,Object.keys(T));let o={ids:new Map,pending:[],binds:[],breakpointHosts:[],observeSize:r.observeSize??t,menus:n.menus,scope:r.scope,template:r.template,translate:r.translate,values:i?new Map:void 0},s=buildNode(n,o,a),c=new Map;for(let e of n.siblings??[]){if(e.id===void 0)throw Error(`the sibling \`${e.tag}\` has no id, so nothing could ever ask for it: give it one in the .blp.`);c.set(e.id,buildNode(e,o))}for(let{view:e,element:t,prop:n,id:r}of o.pending){let i=o.ids.get(r);if(i===void 0)throw Error(`<${t.xmlName} ${n}="${r}"> names no object: nothing in this tree has the id '${r}', so \`${n}\` would be handed the string instead of the widget it refers to.`);l(e,n,i)}for(let e of o.binds)bindProperty(e,o);for(let e of o.breakpointHosts)bindBreakpoints(e,o);return{root:s,siblings:c,objects:new Map([...o.ids,...o.values??[]])}}function bindProperty(e,t){let{target:n,element:r,property:i,source:a,sourceProperty:d,flags:f}=e,p=`<${r.xmlName}> \`${i}: bind ${a}.${d}\``,m=t.template,h=a===`template`&&m!==void 0?m.instance:t.ids.get(a);if(h===void 0)throw Error(`${p} names no object: nothing in this tree has the id '${a}'.`);if(f.length>0&&m===void 0)throw Error(`${p} carries ${f.join(`, `)}: adwaita-nativescript binds the plain form only until each flag is verified against GObject.`);let g=b(d),_=b(i),v=u(h.constructor),y=`notify::${d}`;if(!s(h,g)||!v.includes(y))throw Error(`${p}: ${h.constructor.name} does not emit '${y}', so the target would follow the source once and never again. It emits: ${v.join(`, `)||`none`}.`);if(!s(n,_)){let e=o(n,_);throw Error(`${p}: the target has no property '${_}'.${e===null?``:` ${e}`}`)}if(m!==void 0){bindThroughEngine(m,{...e,from:h,where:p,notification:y});return}let follow=()=>l(n,_,c(h,g));follow(),h.connect(y,follow)}function engineFlags(e,t){for(let n of e)if(n!==`bidirectional`&&n!==`inverted`&&n!==`no-sync-create`)throw Error(`${t} carries the unknown flag '${n}'.`);let n=e.includes(`no-sync-create`)?[]:[`sync-create`];return e.includes(`bidirectional`)&&n.push(`bidirectional`),e.includes(`inverted`)&&n.push(`invert-boolean`),n}function viaProperties(e){let key=e=>typeof e==`string`?b(e):e;return new Proxy(e,{get(e,t){let n=typeof t==`string`&&s(e,key(t))?c(e,key(t)):Reflect.get(e,key(t));return typeof n==`function`?n.bind(e):n},set(e,t,n){return typeof t==`string`?(l(e,b(t),n),!0):Reflect.set(e,t,n)}})}function bindThroughEngine(e,t){let{target:n,from:r,property:i,sourceProperty:a,flags:o,where:s}=t,c=engineFlags(o,s),l=u(n.constructor);if(c.includes(`bidirectional`)&&!l.includes(`notify::${i}`))throw Error(`${s}: bidirectional, but ${n.constructor.name} does not emit 'notify::${i}', so the source would never follow the target back. It emits: ${l.join(`, `)||`none`}.`);e.bind(viaProperties(r),a,viaProperties(n),i,c)}function bindBreakpoints({view:e,element:t,node:n},r){if(!(e instanceof x))throw Error(`<${t.xmlName}> is not a view, so it has no size for a breakpoint to read.`);wireBreakpoints(t.xmlName,e,n.breakpoints??[],r.ids,r.observeSize,r.translate)}function applyBreakpoints(e,n,i,a={}){wireBreakpoints(r(e),e,n,new Map(Object.entries(i)),a.observeSize??t,a.translate)}function wireBreakpoints(e,t,n,r,i,a){let u=g(n.map(t=>{if(v(t.condition)===null)throw Error(`<${e}> \`condition ("${t.condition}")\` is not an Adwaita breakpoint condition.`);return{condition:t.condition,setters:t.setters.map(t=>{let n=r.get(t.object),i=`<${e}> breakpoint setter \`${t.object}.${t.property}\``;if(n===void 0)throw Error(`${i} names no object: nothing in this tree has the id '${t.object}'.`);if(!s(n,b(t.property))){let e=o(n,b(t.property));throw Error(`${i}: the target declares no '${b(t.property)}'.`+(e===null?``:` ${e}`))}let c=translated(a,t.value,t.translatable),l=d(n,b(t.property),c,i);return{object:n,property:t.property,value:{authored:l===null?String(c):l.value}}})}}),{read:(e,t)=>({original:c(e,b(t))}),write(e,t,n){let r=n;l(e,b(t),`authored`in r?r.authored:r.original)}});i(t,e=>u.evaluate(e))}function buildNode(e,t,n){let r=elementOf(e),i=n??new r.ctor,a=i instanceof x?buildView(e,r,i,t):buildValue(e,r,i,t);bindSignals(a,r,e,t);for(let[n,i]of Object.entries(e.bindings??{}))t.binds.push({target:a,element:r,property:n,source:i.source,sourceProperty:i.property,flags:i.flags??[]});e.breakpoints!==void 0&&t.breakpointHosts.push({view:a,element:r,node:e});for(let n of e.children??[]){let i=a;if(typeof i._addChildFromBuilder!=`function`)throw Error(`<${r.xmlName}> takes no XML child: \`${e.tag}\` has no \`_addChildFromBuilder\`, so the corpus nests a node this element cannot hold.`);let o=buildNode(n,t);applyLayout(n,o,r,e.tag),i._addChildFromBuilder(builderNameFor(r,e.tag,n),o)}return a}function bindSignals(e,t,n,r){if(n.signals===void 0)return;let i=u(t.ctor),a=e;for(let e of n.signals){let n=e.detail===void 0?e.name:`${e.name}::${e.detail}`;if(typeof a.connect!=`function`||!i.includes(n))throw Error(`<${t.xmlName}> declares no signal '${n}', so the handler '${e.handler}' would never run. It emits: ${i.join(`, `)||`none`}.`);let o=(e.flags??[]).filter(e=>r.template===void 0||e!==`swapped`);if(e.object!==void 0||o.length>0)throw Error(`the handler '${e.handler}' for '${n}' uses ${e.object===void 0?``:`an object `}${(e.flags??[]).join(`, `)}: adwaita-nativescript binds plain handlers only until each of those is verified against GTK.`);if(r.template!==void 0){a.connect(n,r.template.handler(e.handler,{flags:e.flags}));continue}let s=r.scope?.[e.handler];if(typeof s!=`function`)throw Error(`the tree binds the handler '${e.handler}' for '${n}', and the scope ${r.scope===void 0?"was not given (pass `scope`)":`has no such function`}.`);a.connect(n,(...e)=>s.apply(r.scope,e))}}const w={row:`row`,column:`column`,"row-span":`rowSpan`,"column-span":`columnSpan`};function applyLayout(e,t,n,r){if(e.layout!==void 0){if(typeof n.ctor.prototype.attach!=`function`)throw Error(`<${elementOf(e).xmlName}> authored layout (${Object.keys(e.layout).join(`, `)}) under \`${r}\`, which has no \`attach\`: this port's only layout manager is the grid, so the placement would be dropped.`);if(!(t instanceof x))throw Error(`\`${e.tag}\` is not a view, so it has no cell to place.`);for(let[n,r]of Object.entries(e.layout)){let i=w[n];if(i===void 0)throw Error(`layout \`${n}\` on \`${e.tag}\` reaches nothing: a grid child takes ${Object.keys(w).join(`, `)}.`);if(typeof r!=`number`||!Number.isInteger(r))throw Error(`layout \`${n}: ${String(r)}\` on \`${e.tag}\` is not a whole number.`);t[i]=r}}}function unknownProperty(e,t,n,r,i,a){let s=o(a,r);return Error(s===null?`<${e.xmlName} ${n}="${String(i)}"> reaches nothing: \`${t}\` declares no '${r}'. NativeScript's builder assigns it anyway, as a dead own-property at exit 0, so the attribute door cannot report this and the tree would render without it.`:`<${e.xmlName} ${n}="${String(i)}"> reaches nothing on \`${t}\`: ${s}`)}function buildView(e,t,n,r){if(e.page!==void 0)throw Error(`<${t.xmlName}> is a page (${JSON.stringify(e.page)}), and adwaita-nativescript builds no pages: there is no NS widget yet for Gtk.Notebook, and Gtk.StackPage is not on this branch.`);if(e.id!==void 0){if(r.ids.has(e.id)||r.values?.has(e.id))throw Error(`Two nodes of this tree carry the id '${e.id}'; GtkBuilder refuses a duplicate id.`);r.ids.set(e.id,n),n.id=e.id}let a=i(t.ctor);for(let[i,a]of _(e,r.menus)){let r=b(i);if(!s(n,r))throw unknownProperty(t,e.tag,i,r,i,n);l(n,r,a)}for(let[i,o]of Object.entries(e.props??{})){if(i===`menu-model`)continue;let c=b(i);if(!s(n,c))throw unknownProperty(t,e.tag,i,c,o,n);if(a.includes(c)){r.pending.push({view:n,element:t,prop:c,id:String(o)});continue}let u=translated(r.translate,o,e.translatable?.[i]),f=d(n,c,u,`<${t.xmlName} ${i}="${String(u)}">`);l(n,c,f===null?String(u):f.value)}if(e.styleClasses!==void 0&&e.styleClasses.length>0){if(!(`styleClasses`in n))throw Error(`<${t.xmlName}> takes no style classes: \`${e.tag}\` declares no 'styleClasses', so [${e.styleClasses.join(`, `)}] would be dropped.`);n.styleClasses=e.styleClasses.join(` `)}if(applyAccessibility(n,e,r),e.extensions?.strings!==void 0)throw Error(`<${t.xmlName}> takes no string-list items: \`${e.tag}\` is a widget, and only a list model holds them, so [${e.extensions.strings.map(e=>e.value).join(`, `)}] would be dropped.`);return applyResponses(n,t,e,r),n}const T={label:`accessibilityLabel`,description:`accessibilityHint`};function applyAccessibility(e,t,n){for(let[r,i]of Object.entries(t.accessibility??{}))e[T[r]]=String(translated(n.translate,i.value,i.translatable))}function buildValue(e,t,n,r){if(e.id!==void 0&&r.values===void 0)throw Error(`<${t.xmlName} id="${e.id}"> reaches nothing: \`${e.tag}\` is not a view, and \`getViewById\` walks views, so code beside the \`.blp\` could never look it up. \`buildWithSiblings\` hands every object back by id.`);if(e.styleClasses!==void 0&&e.styleClasses.length>0)throw Error(`<${t.xmlName}> takes no style classes: \`${e.tag}\` is not a widget, so [${e.styleClasses.join(`, `)}] would be dropped.`);if(e.accessibility!==void 0)throw Error(`<${t.xmlName}> takes no accessibility: \`${e.tag}\` is not a widget, so ${Object.keys(e.accessibility).join(`, `)} would be dropped.`);let i={};for(let[a,o]of _(e,r.menus)){let r=b(a);if(!s(n,r))throw unknownProperty(t,e.tag,a,r,a,n);i[r]=o}for(let[a,o]of Object.entries(e.props??{})){if(a===`menu-model`)continue;let c=b(a);if(!s(n,c))throw unknownProperty(t,e.tag,a,c,o,n);i[c]=translated(r.translate,o,e.translatable?.[a])}let a=e.extensions?.strings;if(a!==void 0){if(typeof n.append!=`function`)throw Error(`<${t.xmlName}> takes no string-list items: \`${e.tag}\` has no \`append\`, so [${a.map(e=>e.value).join(`, `)}] would be dropped.`);i.strings=a.map(e=>String(translated(r.translate,e.value,e.translatable)))}let o=new t.ctor(i);if(applyResponses(o,t,e,r),e.id!==void 0&&r.values!==void 0){if(r.values.has(e.id)||r.ids.has(e.id))throw Error(`Two nodes of this tree carry the id '${e.id}'; GtkBuilder refuses a duplicate id.`);r.values.set(e.id,o)}return o}function applyResponses(e,t,n,r){let i=e,a=n.extensions?.responses;if(a!==void 0){if(typeof i.add_response!=`function`)throw Error(`<${t.xmlName}> takes no responses: \`${n.tag}\` has no \`add_response\`, so [${a.map(e=>e.id).join(`, `)}] would be dropped.`);for(let{id:e,label:t,appearance:n,enabled:o,translatable:s}of a)i.add_response(e,String(translated(r.translate,t,s)),{...n===void 0?{}:{appearance:n},...o===void 0?{}:{enabled:o}})}}function builderNameFor(e,t,n){let r=elementOf(n);if(n.slot===void 0)return r.xmlName;let i=n.slot,o=a(e.ctor);if(o===null||!o.includes(i))throw Error(`<${e.xmlName}.${i}> reaches nothing: \`${t}\` declares no such builder slot, so NativeScript would hand <${r.xmlName}> to its fallback placement instead — at exit 0, in a cell the tree never asked for. Known slots: ${o===null||o.length===0?`none`:o.join(`, `)}.`);return i}export{applyBreakpoints,build,buildDialog,buildInto,buildWithSiblings,elementFor,registerBarrel,f as registerTemplateClass};
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{capabilities as e}from"../capabilities.js";import{observeWindowSize as t}from"../widgets/breakpoint.js";import{gtypeNameOf as n,gtypeNameOfInstance as r}from"../widgets/gtype-name.js";import{declaredBuilderReferences as i,declaredBuilderSlots as a}from"../widgets/builder-slots.js";import{gtkPropertyRefusal as o,hasGtkProperty as s,readGtkProperty as c,writeGtkProperty as l}from"../widgets/shadowed-properties.js";import{emittedSignalsOf as u}from"../widgets/signals.js";import{authoredParamValue as d}from"./param-values.js";import{registerTemplateClass as f,templateClassFor as p}from"./template-classes.js";import{adw_exports as m}from"../namespace/adw.js";import{gtk_exports as h}from"../namespace/gtk.js";import{createBreakpointDriver as g,menuAssignments as _,parseBreakpointCondition as v}from"@gjsify/adwaita-core";import{assertTreeConstructs as y}from"@gjsify/adwaita-core/conformance";import{propertyOf as b}from"@gjsify/adwaita-core/tags";import{View as x}from"@nativescript/core";const S=[{prefix:`adw`,library:`Adw`,namespace:m},{prefix:`gtk`,library:`Gtk`,namespace:h}];function registerBarrel(e,t,n){let r=S.find(t=>t.prefix===e);if(r!==void 0&&r.library!==t)throw Error(`The prefix '${e}' already names \`${r.library}\`; it cannot also name \`${t}\`.`);r===void 0?S.push({prefix:e,library:t,namespace:n}):r.namespace=n}const C={GtkPopoverMenuBar:`Android has no menu-bar surface, and a row of PopupMenus would be a design choice, not GTK's widget (ADR 0097 § 2). Use a GtkMenuButton or a GtkPopoverMenu.`};function elementFor(e){let t=C[e];if(t!==void 0)throw Error(`\`${e}\` is refused on this port: ${t}`);let r=[...S].sort((e,t)=>t.library.length-e.library.length);for(let{prefix:t,library:i,namespace:a}of r){if(!e.startsWith(i))continue;let r=e.slice(i.length),o=a[r];if(typeof o!=`function`)throw Error(`Module '~/${t}' has no member for element '${t}:${r}' — the name \`${e}\` is authored in the shared corpus and this dialect cannot spell it. Give the widget a namespace member (ADR 0034 clause 2), or ledger the block as divergent.`);if(n(o)!==e)throw Error(`'${t}:${r}' resolves to class \`${n(o)}\`, not \`${e}\`. The corpus is authored in GIR class names and ADR 0034 clause 1 says a widget carries that name, so a barrel member bound to another class would build the wrong widget at exit 0.`);return{xmlName:`${t}:${r}`,ctor:o}}throw Error(`\`${e}\` starts with no library this dialect has a barrel for (${S.map(e=>e.prefix).join(`, `)}).`)}function elementOf(e){return e.extern===!0?{xmlName:`app:${e.tag}`,ctor:p(e.tag)}:elementFor(e.tag)}function translated(e,t,n){return n===void 0||e===void 0||typeof t!=`string`?t:e(t,n.context)}function build(e,t={}){refuseSiblings(e,`build`);let n=buildTree(e,t).root;if(!(n instanceof x))throw Error(`\`${e.tag}\` is not a widget, so a tree cannot root at it: there is nothing to show.`);return n}function buildDialog(e,t={}){refuseSiblings(e,`buildDialog`);let n=buildTree(e,t).root;if(n instanceof x||typeof n.present!=`function`)throw Error(`\`${e.tag}\` is not a dialog: it has no \`present()\`, so use \`build\` for it.`);return n}function buildWithSiblings(e,t={}){let n=buildTree(e,t,!0);if(!(n.root instanceof x))throw Error(`\`${e.tag}\` is not a widget, so a tree cannot root at it: there is nothing to show.`);return{root:n.root,siblings:n.siblings,objects:n.objects}}function buildInto(e,t,n={}){let r=elementOf(t);if(!(e instanceof r.ctor))throw Error(`\`buildInto\` was handed a ${e.constructor.name}, and the tree's root is \`${t.tag}\`: a template builds into an instance of the class it extends (<${r.xmlName}>).`);return buildTree(t,n,!0,e).objects}function refuseSiblings(e,t){if((e.siblings?.length??0)!==0)throw Error(`\`${e.tag}\` carries ${e.siblings.length} sibling object(s), and \`${t}\` returns one object so they would be built and lost. Use \`buildWithSiblings\`, which hands them back by id.`)}function buildTree(n,r,i=!1,a){y(`adwaita-nativescript`,e,n,Object.keys(T));let o={ids:new Map,pending:[],binds:[],breakpointHosts:[],observeSize:r.observeSize??t,menus:n.menus,scope:r.scope,template:r.template,translate:r.translate,values:i?new Map:void 0},s=buildNode(n,o,a),c=new Map;for(let e of n.siblings??[]){if(e.id===void 0)throw Error(`the sibling \`${e.tag}\` has no id, so nothing could ever ask for it: give it one in the .blp.`);c.set(e.id,buildNode(e,o))}for(let{view:e,element:t,prop:n,id:r}of o.pending){let i=o.ids.get(r);if(i===void 0)throw Error(`<${t.xmlName} ${n}="${r}"> names no object: nothing in this tree has the id '${r}', so \`${n}\` would be handed the string instead of the widget it refers to.`);l(e,n,i)}for(let e of o.binds)bindProperty(e,o);for(let e of o.breakpointHosts)bindBreakpoints(e,o);return{root:s,siblings:c,objects:new Map([...o.ids,...o.values??[]])}}function bindProperty(e,t){let{target:n,element:r,property:i,source:a,sourceProperty:d,flags:f}=e,p=`<${r.xmlName}> \`${i}: bind ${a}.${d}\``,m=t.template,h=a===`template`&&m!==void 0?m.instance:t.ids.get(a);if(h===void 0)throw Error(`${p} names no object: nothing in this tree has the id '${a}'.`);if(f.length>0&&m===void 0)throw Error(`${p} carries ${f.join(`, `)}: adwaita-nativescript binds the plain form only until each flag is verified against GObject.`);let g=b(d),_=b(i),v=u(h.constructor),y=`notify::${d}`;if(!s(h,g)||!v.includes(y))throw Error(`${p}: ${h.constructor.name} does not emit '${y}', so the target would follow the source once and never again. It emits: ${v.join(`, `)||`none`}.`);if(!s(n,_)){let e=o(n,_);throw Error(`${p}: the target has no property '${_}'.${e===null?``:` ${e}`}`)}if(m!==void 0){bindThroughEngine(m,{...e,from:h,where:p,notification:y});return}let follow=()=>l(n,_,c(h,g));follow(),h.connect(y,follow)}function engineFlags(e,t){for(let n of e)if(n!==`bidirectional`&&n!==`inverted`&&n!==`no-sync-create`)throw Error(`${t} carries the unknown flag '${n}'.`);let n=e.includes(`no-sync-create`)?[]:[`sync-create`];return e.includes(`bidirectional`)&&n.push(`bidirectional`),e.includes(`inverted`)&&n.push(`invert-boolean`),n}function viaProperties(e){let key=e=>typeof e==`string`?b(e):e;return new Proxy(e,{get(e,t){let n=typeof t==`string`&&s(e,key(t))?c(e,key(t)):Reflect.get(e,key(t));return typeof n==`function`?n.bind(e):n},set(e,t,n){return typeof t==`string`?(l(e,b(t),n),!0):Reflect.set(e,t,n)}})}function bindThroughEngine(e,t){let{target:n,from:r,property:i,sourceProperty:a,flags:o,where:s}=t,c=engineFlags(o,s),l=u(n.constructor);if(c.includes(`bidirectional`)&&!l.includes(`notify::${i}`))throw Error(`${s}: bidirectional, but ${n.constructor.name} does not emit 'notify::${i}', so the source would never follow the target back. It emits: ${l.join(`, `)||`none`}.`);e.bind(viaProperties(r),a,viaProperties(n),i,c)}function bindBreakpoints({view:e,element:t,node:n},r){if(!(e instanceof x))throw Error(`<${t.xmlName}> is not a view, so it has no size for a breakpoint to read.`);wireBreakpoints(t.xmlName,e,n.breakpoints??[],r.ids,r.observeSize,r.translate)}function applyBreakpoints(e,n,i,a={}){wireBreakpoints(r(e),e,n,new Map(Object.entries(i)),a.observeSize??t,a.translate)}function wireBreakpoints(e,t,n,r,i,a){let u=g(n.map(t=>{if(v(t.condition)===null)throw Error(`<${e}> \`condition ("${t.condition}")\` is not an Adwaita breakpoint condition.`);return{condition:t.condition,setters:t.setters.map(t=>{let n=r.get(t.object),i=`<${e}> breakpoint setter \`${t.object}.${t.property}\``;if(n===void 0)throw Error(`${i} names no object: nothing in this tree has the id '${t.object}'.`);if(!s(n,b(t.property))){let e=o(n,b(t.property));throw Error(`${i}: the target declares no '${b(t.property)}'.`+(e===null?``:` ${e}`))}let c=translated(a,t.value,t.translatable),l=d(n,b(t.property),c,i);return{object:n,property:t.property,value:{authored:l===null?String(c):l.value}}})}}),{read:(e,t)=>({original:c(e,b(t))}),write(e,t,n){let r=n;l(e,b(t),`authored`in r?r.authored:r.original)}});i(t,e=>u.evaluate(e))}function buildNode(e,t,n){let r=elementOf(e),i=n??new r.ctor,a=i instanceof x?buildView(e,r,i,t):buildValue(e,r,i,t);bindSignals(a,r,e,t);for(let[n,i]of Object.entries(e.bindings??{}))t.binds.push({target:a,element:r,property:n,source:i.source,sourceProperty:i.property,flags:i.flags??[]});e.breakpoints!==void 0&&t.breakpointHosts.push({view:a,element:r,node:e});for(let n of e.children??[]){let i=a;if(typeof i._addChildFromBuilder!=`function`)throw Error(`<${r.xmlName}> takes no XML child: \`${e.tag}\` has no \`_addChildFromBuilder\`, so the corpus nests a node this element cannot hold.`);let o=buildNode(n,t);applyLayout(n,o,r,e.tag),i._addChildFromBuilder(builderNameFor(r,e.tag,n),o)}return a}function bindSignals(e,t,n,r){if(n.signals===void 0)return;let i=u(t.ctor),a=e;for(let e of n.signals){let n=e.detail===void 0?e.name:`${e.name}::${e.detail}`;if(typeof a.connect!=`function`||!i.includes(n))throw Error(`<${t.xmlName}> declares no signal '${n}', so the handler '${e.handler}' would never run. It emits: ${i.join(`, `)||`none`}.`);let o=(e.flags??[]).filter(e=>r.template===void 0||e!==`swapped`);if(e.object!==void 0||o.length>0)throw Error(`the handler '${e.handler}' for '${n}' uses ${e.object===void 0?``:`an object `}${(e.flags??[]).join(`, `)}: adwaita-nativescript binds plain handlers only until each of those is verified against GTK.`);if(r.template!==void 0){a.connect(n,r.template.handler(e.handler,{flags:e.flags}));continue}let s=r.scope?.[e.handler];if(typeof s!=`function`)throw Error(`the tree binds the handler '${e.handler}' for '${n}', and the scope ${r.scope===void 0?"was not given (pass `scope`)":`has no such function`}.`);a.connect(n,(...e)=>s.apply(r.scope,e))}}const w={row:`row`,column:`column`,"row-span":`rowSpan`,"column-span":`columnSpan`};function applyLayout(e,t,n,r){if(e.layout!==void 0){if(typeof n.ctor.prototype.attach!=`function`)throw Error(`<${elementOf(e).xmlName}> authored layout (${Object.keys(e.layout).join(`, `)}) under \`${r}\`, which has no \`attach\`: this port's only layout manager is the grid, so the placement would be dropped.`);if(!(t instanceof x))throw Error(`\`${e.tag}\` is not a view, so it has no cell to place.`);for(let[n,r]of Object.entries(e.layout)){let i=w[n];if(i===void 0)throw Error(`layout \`${n}\` on \`${e.tag}\` reaches nothing: a grid child takes ${Object.keys(w).join(`, `)}.`);if(typeof r!=`number`||!Number.isInteger(r))throw Error(`layout \`${n}: ${String(r)}\` on \`${e.tag}\` is not a whole number.`);t[i]=r}}}function unknownProperty(e,t,n,r,i,a){let s=o(a,r);return Error(s===null?`<${e.xmlName} ${n}="${String(i)}"> reaches nothing: \`${t}\` declares no '${r}'. NativeScript's builder assigns it anyway, as a dead own-property at exit 0, so the attribute door cannot report this and the tree would render without it.`:`<${e.xmlName} ${n}="${String(i)}"> reaches nothing on \`${t}\`: ${s}`)}function buildView(e,t,n,r){if(e.page!==void 0)throw Error(`<${t.xmlName}> is a page (${JSON.stringify(e.page)}), and adwaita-nativescript builds no pages: there is no NS widget yet for Gtk.Notebook, and Gtk.StackPage is not on this branch.`);if(e.id!==void 0){if(r.ids.has(e.id)||r.values?.has(e.id))throw Error(`Two nodes of this tree carry the id '${e.id}'; GtkBuilder refuses a duplicate id.`);r.ids.set(e.id,n),n.id=e.id}let a=i(t.ctor);for(let[i,a]of _(e,r.menus)){let r=b(i);if(!s(n,r))throw unknownProperty(t,e.tag,i,r,i,n);l(n,r,a)}for(let[i,o]of Object.entries(e.props??{})){if(i===`menu-model`)continue;let c=b(i);if(!s(n,c))throw unknownProperty(t,e.tag,i,c,o,n);if(a.includes(c)){r.pending.push({view:n,element:t,prop:c,id:String(o)});continue}let u=translated(r.translate,o,e.translatable?.[i]),f=d(n,c,u,`<${t.xmlName} ${i}="${String(u)}">`);l(n,c,f===null?String(u):f.value)}if(e.styleClasses!==void 0&&e.styleClasses.length>0){if(!(`styleClasses`in n))throw Error(`<${t.xmlName}> takes no style classes: \`${e.tag}\` declares no 'styleClasses', so [${e.styleClasses.join(`, `)}] would be dropped.`);n.styleClasses=e.styleClasses.join(` `)}if(applyAccessibility(n,e,r),e.extensions?.strings!==void 0)throw Error(`<${t.xmlName}> takes no string-list items: \`${e.tag}\` is a widget, and only a list model holds them, so [${e.extensions.strings.map(e=>e.value).join(`, `)}] would be dropped.`);return applyResponses(n,t,e,r),n}const T={label:`accessibilityLabel`,description:`accessibilityHint`};function applyAccessibility(e,t,n){for(let[r,i]of Object.entries(t.accessibility??{}))e[T[r]]=String(translated(n.translate,i.value,i.translatable))}function buildValue(e,t,n,r){if(e.id!==void 0&&r.values===void 0)throw Error(`<${t.xmlName} id="${e.id}"> reaches nothing: \`${e.tag}\` is not a view, and \`getViewById\` walks views, so code beside the \`.blp\` could never look it up. \`buildWithSiblings\` hands every object back by id.`);if(e.styleClasses!==void 0&&e.styleClasses.length>0)throw Error(`<${t.xmlName}> takes no style classes: \`${e.tag}\` is not a widget, so [${e.styleClasses.join(`, `)}] would be dropped.`);if(e.accessibility!==void 0)throw Error(`<${t.xmlName}> takes no accessibility: \`${e.tag}\` is not a widget, so ${Object.keys(e.accessibility).join(`, `)} would be dropped.`);let i={};for(let[a,o]of _(e,r.menus)){let r=b(a);if(!s(n,r))throw unknownProperty(t,e.tag,a,r,a,n);i[r]=o}for(let[a,o]of Object.entries(e.props??{})){if(a===`menu-model`)continue;let c=b(a);if(!s(n,c))throw unknownProperty(t,e.tag,a,c,o,n);i[c]=translated(r.translate,o,e.translatable?.[a])}let a=e.extensions?.strings;if(a!==void 0){if(typeof n.append!=`function`)throw Error(`<${t.xmlName}> takes no string-list items: \`${e.tag}\` has no \`append\`, so [${a.map(e=>e.value).join(`, `)}] would be dropped.`);i.strings=a.map(e=>String(translated(r.translate,e.value,e.translatable)))}let o=new t.ctor(i);if(applyResponses(o,t,e,r),e.id!==void 0&&r.values!==void 0){if(r.values.has(e.id)||r.ids.has(e.id))throw Error(`Two nodes of this tree carry the id '${e.id}'; GtkBuilder refuses a duplicate id.`);r.values.set(e.id,o)}return o}function applyResponses(e,t,n,r){let i=e,a=n.extensions?.responses;if(a!==void 0){if(typeof i.add_response!=`function`)throw Error(`<${t.xmlName}> takes no responses: \`${n.tag}\` has no \`add_response\`, so [${a.map(e=>e.id).join(`, `)}] would be dropped.`);for(let{id:e,label:t,appearance:n,enabled:o,translatable:s}of a)i.add_response(e,String(translated(r.translate,t,s)),{...n===void 0?{}:{appearance:n},...o===void 0?{}:{enabled:o}})}}function builderNameFor(e,t,n){let r=elementOf(n);if(n.slot===void 0)return r.xmlName;let i=n.slot,o=a(e.ctor);if(o===null||!o.includes(i))throw Error(`<${e.xmlName}.${i}> reaches nothing: \`${t}\` declares no such builder slot, so NativeScript would hand <${r.xmlName}> to its fallback placement instead — at exit 0, in a cell the tree never asked for. Known slots: ${o===null||o.length===0?`none`:o.join(`, `)}.`);return i}export{applyBreakpoints,build,buildDialog,buildInto,buildWithSiblings,elementFor,registerBarrel,f as registerTemplateClass};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{registeredClassOf as e}from"@gjsify/adwaita-core";import{propertyOf as t}from"@gjsify/adwaita-core/tags";function registeredParamSpec(n,r){for(let i=n.constructor;typeof i==`function`;i=Object.getPrototypeOf(i)){let n=e(i)?.properties.find(e=>t(e.name)===r);if(n!==void 0)return n}}const n=/^\s*([+-]?)(?:0[xX]([0-9a-fA-F]+)|(0[0-7]*)|([1-9][0-9]*))/,r=/^\s*([+-]?)(?:(\d+\.?\d*(?:[eE][+-]?\d+)?|\.\d+(?:[eE][+-]?\d+)?)|(inf(?:inity)?)|(nan))/i;function parseBoolean(e){if(e.length===1)return`1yYtT`.includes(e)?!0:`0nNfF`.includes(e)?!1:void 0;let t=e.toLowerCase();if(t===`true`||t===`yes`)return!0;if(t===`false`||t===`no`)return!1}function parseInteger(e){let t=n.exec(e);if(t===null)return;let[,r,i,a,o]=t,s=i===void 0?a===void 0?parseInt(o,10):parseInt(a,8):parseInt(i,16);return r===`-`?-s:s}function parseDouble(e){let t=r.exec(e);if(t===null)return;let[,n,i,a]=t,o=i===void 0?a===void 0?NaN:1/0:Number(i);return n===`-`?-o:o}function valueFromString(e,t){switch(e.kind){case`string`:return t;case`boolean`:return parseBoolean(t);case`int`:return parseInteger(t);case`uint`:{let e=parseInteger(t);return e===void 0||e<0||Object.is(e,-0)?void 0:e}case`double`:return parseDouble(t)}}const i={boolean:`boolean`,string:`string`,int:`integer`,uint:`unsigned integer`,double:`double`};function authoredParamValue(e,t,n,r){let a=registeredParamSpec(e,t);if(a===void 0)return null;let o=String(n),s=valueFromString(a,o);if(s===void 0)throw Error(`${r}: Could not parse ${i[a.kind]} '${o}' for the property '${a.name}', which ${e.constructor.name} registers as a ${a.kind} ParamSpec.`);return{value:s}}export{authoredParamValue,registeredParamSpec,valueFromString};
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{registeredClassOf as e}from"@gjsify/adwaita-core";import{propertyOf as t}from"@gjsify/adwaita-core/tags";function registeredParamSpec(n,r){for(let i=n.constructor;typeof i==`function`;i=Object.getPrototypeOf(i)){let n=e(i)?.properties.find(e=>t(e.name)===r);if(n!==void 0)return n}}const n=/^\s*([+-]?)(?:0[xX]([0-9a-fA-F]+)|(0[0-7]*)|([1-9][0-9]*))/,r=/^\s*([+-]?)(?:(\d+\.?\d*(?:[eE][+-]?\d+)?|\.\d+(?:[eE][+-]?\d+)?)|(inf(?:inity)?)|(nan))/i;function parseBoolean(e){if(e.length===1)return`1yYtT`.includes(e)?!0:`0nNfF`.includes(e)?!1:void 0;let t=e.toLowerCase();if(t===`true`||t===`yes`)return!0;if(t===`false`||t===`no`)return!1}function parseInteger(e){let t=n.exec(e);if(t===null)return;let[,r,i,a,o]=t,s=i===void 0?a===void 0?parseInt(o,10):parseInt(a,8):parseInt(i,16);return r===`-`?-s:s}function parseDouble(e){let t=r.exec(e);if(t===null)return;let[,n,i,a]=t,o=i===void 0?a===void 0?NaN:1/0:Number(i);return n===`-`?-o:o}function valueFromString(e,t){switch(e.kind){case`string`:return t;case`boolean`:return parseBoolean(t);case`int`:return parseInteger(t);case`uint`:{let e=parseInteger(t);return e===void 0||e<0||Object.is(e,-0)?void 0:e}case`double`:return parseDouble(t)}}const i={boolean:`boolean`,string:`string`,int:`integer`,uint:`unsigned integer`,double:`double`,object:`object`};function authoredParamValue(e,t,n,r){let a=registeredParamSpec(e,t);if(a===void 0)return null;let o=String(n),s=valueFromString(a,o);if(s===void 0)throw Error(`${r}: Could not parse ${i[a.kind]} '${o}' for the property '${a.name}', which ${e.constructor.name} registers as a ${a.kind} ParamSpec.`);return{value:s}}export{authoredParamValue,registeredParamSpec,valueFromString};
|
|
File without changes
|
package/lib/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./_virtual/_rolldown/runtime.js";import{AdwBreakpoint as ee,addBreakpoints as te,evaluateBreakpointCondition as ne,observeViewSize as e,observeWindowSize as t,parseBreakpointCondition as n}from"./widgets/breakpoint.js";import{ENGINE_TARGET as r}from"./engine-target.js";import{GTK_ALIGN as i}from"./widgets/gtk-align.js";import{DEFAULT_ICON_PIXEL_SIZE as a,GTK_ICON_SIZE_NICKS as o,GTK_ICON_SIZE_PIXELS as s,PIXEL_SIZE_UNSET as c,isGtkIconSizeNick as l}from"./widgets/gtk-icon-size.js";import{applyConstructProps as u,nsAlignment as d}from"./widgets/construct-props.js";import{activateWidgetAction as f,findActionGroup as p,insertActionGroup as m}from"./widgets/actions.js";import{NOTIFY_HEXPAND as h,NOTIFY_VEXPAND as g,withGtkWidgetLayout as _}from"./widgets/widget-layout.js";import{adwaitaColorScheme as v,isThemeIconColor as y,onAdwaitaColorSchemeChanged as b,setAdwaitaColorScheme as x,themeIconColor as S,toggleAdwaitaColorScheme as C}from"./widgets/color-scheme.js";import{ADWAITA_ICON_GRID as w,DEFAULT_ICON_COLOR as T,DEFAULT_ICON_COLOR_DARK as E,extractIconPaths as D,extractPathData as O}from"./widgets/icon-path.js";import{ICON_FALLBACK_NAME as k,compiledIconNames as A,iconValueKind as j,isIconAvailable as M,resolveIconSource as N}from"./widgets/icon-theme.js";import{renderSymbolicIcon as P}from"./widgets/icons.js";import{DEFAULT_GTK_IMAGE_SIZE as F}from"./widgets/gtk-image.js";import{CLOSED as I}from"./widgets/adw-about-dialog.js";import{ACTIVATED as L}from"./widgets/adw-action-row.js";import{AdwAlertResponses as R}from"./widgets/adw-alert-dialog.js";import{avatarInitials as z}from"./widgets/avatar-color.js";import{AVATAR_DEFAULT_ICON as B}from"./widgets/avatar-view.js";import{DEFAULT_AVATAR_SIZE as V}from"./widgets/adw-avatar.js";import{DEFAULT_CLAMP_MAX_SIZE as H,DEFAULT_SPINNER_SIZE as U}from"./widgets/chrome.js";import{BUTTON_CLICKED as W}from"./widgets/adw-banner.js";import{NOTIFY_OPEN as G}from"./widgets/bottom-sheet-state.js";import{attachRowPressFeedback as K}from"./widgets/row-press.js";import{bottomSheetPanel as q}from"./widgets/adw-bottom-sheet.js";import{DEFAULT_CAROUSEL_PAGE_WIDTH as J}from"./widgets/carousel-state.js";import{NOTIFY_POSITION as Y}from"./widgets/adw-carousel.js";import{ComboState as X,NOTIFY_SELECTED as Z}from"./widgets/adw-combo-row.js";import{ADW_DIALOG_CLOSED as re,ADW_DIALOG_CLOSE_ATTEMPT as ie}from"./widgets/adw-dialog.js";import{AdwImageButton as ae,DEFAULT_ICON_BUTTON_ICON_SIZE as oe}from"./widgets/adw-image-button.js";import{NOTIFY_ACTIVATES_DEFAULT as se,NOTIFY_EDITABLE as ce,NOTIFY_MAX_LENGTH as le,NOTIFY_SHOW_APPLY_BUTTON as ue,NOTIFY_TEXT as de,NOTIFY_TEXT_LENGTH as fe,SIGNAL_APPLY as pe,SIGNAL_ENTRY_ACTIVATED as me}from"./widgets/adw-entry-row.js";import{NOTIFY_ENABLE_EXPANSION as he,NOTIFY_EXPANDED as ge,NOTIFY_SHOW_ENABLE_SWITCH as _e,NS_EXPANDER_ARROW_DISABLED_OPACITY as ve}from"./widgets/adw-expander-row.js";import{NOTIFY_VISIBLE_CHILD as ye}from"./widgets/adw-view-stack.js";import{AdwViewSwitcherBase as be,NOTIFY_SELECTED as xe}from"./widgets/view-switcher-base.js";import{NsNavigationSplitViewState as Se,NsOverlaySplitViewState as Ce,splitViewColumns as we}from"./widgets/split-view-state.js";import{AdwSplitViewBase as Te,NOTIFY_SHOW_SIDEBAR as Ee}from"./widgets/split-view-base.js";import{NOTIFY_VISIBLE_PAGE as De}from"./widgets/navigation-stack.js";import{CLOSED as Oe}from"./widgets/adw-preferences-dialog.js";import{SHORTCUT_LABEL_CAP_TEXT_CLASS as ke,SHORTCUT_LABEL_CLASS as Ae,SHORTCUT_LABEL_DIMMED_CLASS as je,SHORTCUT_LABEL_DISABLED_CLASS as Me,SHORTCUT_LABEL_KEYCAP_CLASS as Ne,SHORTCUT_LABEL_KEYS_CLASS as Pe,SHORTCUT_LABEL_SIDE_CLASS as Fe,SHORTCUT_LABEL_SPACED_CLASS as Ie,shortcutLabelDirection as Le,shortcutLabelPlatform as Re,shortcutLabelRenderPlan as ze}from"./widgets/shortcut-label.js";import{NOTIFY_SELECTED as Q}from"./widgets/adw-sidebar.js";import{NOTIFY_VALUE as Be,SpinState as Ve}from"./widgets/adw-spin-row.js";import{CLICKED as He,MENU_TAPPED as Ue}from"./widgets/adw-split-button.js";import{NOTIFY_ACTIVE as We}from"./widgets/adw-switch-row.js";import{AdwToast as Ge,AdwToastQueue as Ke,DEFAULT_TOAST_TIMEOUT as qe}from"./widgets/adw-toast-overlay.js";import{NOTIFY_SELECTED as Je,ToggleGroupState as Ye}from"./widgets/adw-toggle-group.js";import{ADWAITA_NS_ACCENT_RULES as Xe,adwaitaNsAccentColor as Ze,adwaitaNsAccentCss as Qe}from"./widgets/accent-theme.js";import{applyAdwaitaNsAccent as $e,clearAdwaitaNsAccent as et}from"./widgets/adw-accent.js";import{adw_exports as tt}from"./namespace/adw.js";import{DEFAULT_BOX_SPACING as nt,boxChildTrack as rt,boxSpacingChanges as it,boxTrackPlan as at,normalizeBoxSpacing as ot}from"./widgets/box-layout.js";import{buttonSlotAfterWrite as st,buttonSlotDetaches as ct}from"./widgets/button-slot.js";import{GTK_BUTTON_CLICKED as lt,GTK_BUTTON_LABEL_CLASS as ut}from"./widgets/gtk-button.js";import{NOTIFY_SELECTED as dt}from"./widgets/gtk-drop-down.js";import{GTK_CHECK_BUTTON_ACTIVATE as ft,GTK_CHECK_BUTTON_CHECKED_CLASS as pt,GTK_CHECK_BUTTON_INCONSISTENT_CLASS as mt,GTK_CHECK_BUTTON_TOGGLED as ht,NOTIFY_CHECK_ACTIVE as gt}from"./widgets/gtk-check-button.js";import{DRAWING_AREA_REFUSAL as _t}from"./widgets/gtk-drawing-area.js";import{ACTIVATE as vt,NOTIFY_TEXT as yt}from"./widgets/gtk-entry.js";import{LIST_BOX_ROW_ACTIVATED as bt,LIST_BOX_ROW_SELECTED as xt}from"./widgets/gtk-list-box.js";import{MENU_ITEM_ACTIVATED as St}from"./widgets/gtk-menu-button.js";import{NOTIFY_REVEAL_CHILD as Ct}from"./widgets/gtk-revealer.js";import{NOTIFY_STACK_VISIBLE_CHILD as wt,NOTIFY_STACK_VISIBLE_CHILD_NAME as Tt}from"./widgets/gtk-stack.js";import{GTK_WRAP_MODES as Et,NOTIFY_TEXT_VIEW_TEXT as Dt}from"./widgets/gtk-text-view.js";import{GTK_TOGGLE_BUTTON_CHECKED_CLASS as Ot,GTK_TOGGLE_BUTTON_TOGGLED as kt,NOTIFY_TOGGLE_ACTIVE as At}from"./widgets/gtk-toggle-button.js";import{gtk_exports as jt}from"./namespace/gtk.js";import{ADWAITA_SANS_FONT_FAMILY as Mt,ADWAITA_SANS_TTF_FILES as Nt,adwaitaFontInstallInstructions as Pt,hasAdwaitaSans as Ft}from"./fonts.js";import{AdwSliderRow as It,NOTIFY_SLIDER_VALUE as Lt}from"./widgets/adw-slider-row.js";import{DATA_GRID_HEADER_CELL_CLASS as Rt,DATA_GRID_HEADER_ROW_CLASS as zt,DATA_GRID_SECTION_CELL_CLASS as Bt,dataGridCellClass as Vt,dataGridItemSpec as Ht,dataGridRowClass as Ut,dataGridShapeKey as Wt,dataGridTracksKey as Gt,parseDataGridWidth as Kt}from"./widgets/data-grid-model.js";import{AdwDataGrid as qt,ROW_ACTIVATED as Jt}from"./widgets/adw-data-grid.js";import{padForSystemInsets as Yt,padSheetForSystemInsets as Xt}from"./widgets/system-insets.js";import{labelDisplayText as Zt,labelMarkupIsUnparseable as Qt,registerAdwaitaElements as $}from"./widgets/index.js";import{gio_exports as $t}from"./namespace/gio.js";import{gdk_exports as en}from"./namespace/gdk.js";import{graphene_exports as tn}from"./namespace/graphene.js";import{glib_exports as nn}from"./namespace/glib.js";import{assertNativeScript as rn,assertNativeScript as an,isAndroid as on,isIOS as sn,isNativeScript as cn}from"@gjsify/native-platform";function registerAdwaita(){an(),$()}export{I as ABOUT_CLOSED,L as ACTIVATED,w as ADWAITA_ICON_GRID,Xe as ADWAITA_NS_ACCENT_RULES,Mt as ADWAITA_SANS_FONT_FAMILY,Nt as ADWAITA_SANS_TTF_FILES,re as ADW_DIALOG_CLOSED,ie as ADW_DIALOG_CLOSE_ATTEMPT,B as AVATAR_DEFAULT_ICON,tt as Adw,R as AdwAlertResponses,ee as AdwBreakpoint,qt as AdwDataGrid,ae as AdwImageButton,It as AdwSliderRow,Te as AdwSplitViewBase,Ge as AdwToast,Ke as AdwToastQueue,be as AdwViewSwitcherBase,W as BUTTON_CLICKED,He as CLICKED,X as ComboState,Rt as DATA_GRID_HEADER_CELL_CLASS,zt as DATA_GRID_HEADER_ROW_CLASS,Bt as DATA_GRID_SECTION_CELL_CLASS,V as DEFAULT_AVATAR_SIZE,nt as DEFAULT_BOX_SPACING,J as DEFAULT_CAROUSEL_PAGE_WIDTH,H as DEFAULT_CLAMP_MAX_SIZE,F as DEFAULT_GTK_IMAGE_SIZE,oe as DEFAULT_ICON_BUTTON_ICON_SIZE,T as DEFAULT_ICON_COLOR,E as DEFAULT_ICON_COLOR_DARK,a as DEFAULT_ICON_PIXEL_SIZE,U as DEFAULT_SPINNER_SIZE,qe as DEFAULT_TOAST_TIMEOUT,_t as DRAWING_AREA_REFUSAL,r as ENGINE_TARGET,vt as ENTRY_ACTIVATE,nn as GLib,i as GTK_ALIGN,lt as GTK_BUTTON_CLICKED,ut as GTK_BUTTON_LABEL_CLASS,ft as GTK_CHECK_BUTTON_ACTIVATE,pt as GTK_CHECK_BUTTON_CHECKED_CLASS,mt as GTK_CHECK_BUTTON_INCONSISTENT_CLASS,ht as GTK_CHECK_BUTTON_TOGGLED,o as GTK_ICON_SIZE_NICKS,s as GTK_ICON_SIZE_PIXELS,Ot as GTK_TOGGLE_BUTTON_CHECKED_CLASS,kt as GTK_TOGGLE_BUTTON_TOGGLED,Et as GTK_WRAP_MODES,en as Gdk,$t as Gio,tn as Graphene,jt as Gtk,k as ICON_FALLBACK_NAME,bt as LIST_BOX_ROW_ACTIVATED,xt as LIST_BOX_ROW_SELECTED,St as MENU_ITEM_ACTIVATED,Ue as MENU_TAPPED,se as NOTIFY_ACTIVATES_DEFAULT,We as NOTIFY_ACTIVE,gt as NOTIFY_CHECK_ACTIVE,dt as NOTIFY_DROP_DOWN_SELECTED,ce as NOTIFY_EDITABLE,he as NOTIFY_ENABLE_EXPANSION,yt as NOTIFY_ENTRY_TEXT,ge as NOTIFY_EXPANDED,h as NOTIFY_HEXPAND,le as NOTIFY_MAX_LENGTH,G as NOTIFY_OPEN,Y as NOTIFY_POSITION,Ct as NOTIFY_REVEAL_CHILD,Z as NOTIFY_SELECTED,ue as NOTIFY_SHOW_APPLY_BUTTON,_e as NOTIFY_SHOW_ENABLE_SWITCH,Ee as NOTIFY_SHOW_SIDEBAR,Q as NOTIFY_SIDEBAR_SELECTED,Lt as NOTIFY_SLIDER_VALUE,wt as NOTIFY_STACK_VISIBLE_CHILD,Tt as NOTIFY_STACK_VISIBLE_CHILD_NAME,de as NOTIFY_TEXT,fe as NOTIFY_TEXT_LENGTH,Dt as NOTIFY_TEXT_VIEW_TEXT,At as NOTIFY_TOGGLE_ACTIVE,Je as NOTIFY_TOGGLE_SELECTED,Be as NOTIFY_VALUE,g as NOTIFY_VEXPAND,xe as NOTIFY_VIEW_SELECTED,ye as NOTIFY_VISIBLE_CHILD,De as NOTIFY_VISIBLE_PAGE,ve as NS_EXPANDER_ARROW_DISABLED_OPACITY,Se as NsNavigationSplitViewState,Ce as NsOverlaySplitViewState,c as PIXEL_SIZE_UNSET,Oe as PREFERENCES_CLOSED,Jt as ROW_ACTIVATED,ke as SHORTCUT_LABEL_CAP_TEXT_CLASS,Ae as SHORTCUT_LABEL_CLASS,je as SHORTCUT_LABEL_DIMMED_CLASS,Me as SHORTCUT_LABEL_DISABLED_CLASS,Ne as SHORTCUT_LABEL_KEYCAP_CLASS,Pe as SHORTCUT_LABEL_KEYS_CLASS,Fe as SHORTCUT_LABEL_SIDE_CLASS,Ie as SHORTCUT_LABEL_SPACED_CLASS,pe as SIGNAL_APPLY,me as SIGNAL_ENTRY_ACTIVATED,Ve as SpinState,Ye as ToggleGroupState,f as activateWidgetAction,te as addBreakpoints,v as adwaitaColorScheme,Pt as adwaitaFontInstallInstructions,Ze as adwaitaNsAccentColor,Qe as adwaitaNsAccentCss,$e as applyAdwaitaNsAccent,u as applyConstructProps,rn as assertNativeScript,K as attachRowPressFeedback,z as avatarInitials,q as bottomSheetPanel,rt as boxChildTrack,it as boxSpacingChanges,at as boxTrackPlan,st as buttonSlotAfterWrite,ct as buttonSlotDetaches,et as clearAdwaitaNsAccent,A as compiledIconNames,Vt as dataGridCellClass,Ht as dataGridItemSpec,Ut as dataGridRowClass,Wt as dataGridShapeKey,Gt as dataGridTracksKey,ne as evaluateBreakpointCondition,D as extractIconPaths,O as extractPathData,p as findActionGroup,Ft as hasAdwaitaSans,j as iconValueKind,m as insertActionGroup,on as isAndroid,l as isGtkIconSizeNick,sn as isIOS,M as isIconAvailable,cn as isNativeScript,y as isThemeIconColor,Zt as labelDisplayText,Qt as labelMarkupIsUnparseable,ot as normalizeBoxSpacing,d as nsAlignment,e as observeViewSize,t as observeWindowSize,b as onAdwaitaColorSchemeChanged,Yt as padForSystemInsets,Xt as padSheetForSystemInsets,n as parseBreakpointCondition,Kt as parseDataGridWidth,registerAdwaita,$ as registerAdwaitaElements,P as renderSymbolicIcon,N as resolveIconSource,x as setAdwaitaColorScheme,Le as shortcutLabelDirection,Re as shortcutLabelPlatform,ze as shortcutLabelRenderPlan,we as splitViewColumns,S as themeIconColor,C as toggleAdwaitaColorScheme,_ as withGtkWidgetLayout};
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";import{AdwBreakpoint as ee,addBreakpoints as te,evaluateBreakpointCondition as ne,observeViewSize as e,observeWindowSize as t,parseBreakpointCondition as n}from"./widgets/breakpoint.js";import{ENGINE_TARGET as r}from"./engine-target.js";import{GTK_ALIGN as i}from"./widgets/gtk-align.js";import{DEFAULT_ICON_PIXEL_SIZE as a,GTK_ICON_SIZE_NICKS as o,GTK_ICON_SIZE_PIXELS as s,PIXEL_SIZE_UNSET as c,isGtkIconSizeNick as l}from"./widgets/gtk-icon-size.js";import{applyConstructProps as u,nsAlignment as d}from"./widgets/construct-props.js";import{activateWidgetAction as f,findActionGroup as p,insertActionGroup as m}from"./widgets/actions.js";import{NOTIFY_HEXPAND as h,NOTIFY_VEXPAND as g,withGtkWidgetLayout as _}from"./widgets/widget-layout.js";import{adwaitaColorScheme as v,isThemeIconColor as y,onAdwaitaColorSchemeChanged as b,setAdwaitaColorScheme as x,themeIconColor as S,toggleAdwaitaColorScheme as C}from"./widgets/color-scheme.js";import{ADWAITA_ICON_GRID as w,DEFAULT_ICON_COLOR as T,DEFAULT_ICON_COLOR_DARK as E,extractIconPaths as D,extractPathData as O}from"./widgets/icon-path.js";import{ICON_FALLBACK_NAME as k,compiledIconNames as A,iconValueKind as j,isIconAvailable as M,resolveIconSource as N}from"./widgets/icon-theme.js";import{renderSymbolicIcon as P}from"./widgets/icons.js";import{DEFAULT_GTK_IMAGE_SIZE as F}from"./widgets/gtk-image.js";import{CLOSED as I}from"./widgets/adw-about-dialog.js";import{ACTIVATED as L}from"./widgets/adw-action-row.js";import{AdwAlertResponses as R}from"./widgets/adw-alert-dialog.js";import{NOTIFY_OPEN as z}from"./widgets/bottom-sheet-state.js";import{attachRowPressFeedback as B}from"./widgets/row-press.js";import{bottomSheetPanel as V}from"./widgets/adw-bottom-sheet.js";import{avatarInitials as H}from"./widgets/avatar-color.js";import{AVATAR_DEFAULT_ICON as U}from"./widgets/avatar-view.js";import{DEFAULT_AVATAR_SIZE as W}from"./widgets/adw-avatar.js";import{DEFAULT_CLAMP_MAX_SIZE as G,DEFAULT_SPINNER_SIZE as K}from"./widgets/chrome.js";import{BUTTON_CLICKED as q}from"./widgets/adw-banner.js";import{DEFAULT_CAROUSEL_PAGE_WIDTH as J}from"./widgets/carousel-state.js";import{NOTIFY_POSITION as Y}from"./widgets/adw-carousel.js";import{ComboState as X,NOTIFY_SELECTED as Z}from"./widgets/adw-combo-row.js";import{ADW_DIALOG_CLOSED as re,ADW_DIALOG_CLOSE_ATTEMPT as ie}from"./widgets/adw-dialog.js";import{AdwImageButton as ae,DEFAULT_ICON_BUTTON_ICON_SIZE as oe}from"./widgets/adw-image-button.js";import{NOTIFY_ACTIVATES_DEFAULT as se,NOTIFY_EDITABLE as ce,NOTIFY_MAX_LENGTH as le,NOTIFY_SHOW_APPLY_BUTTON as ue,NOTIFY_TEXT as de,NOTIFY_TEXT_LENGTH as fe,SIGNAL_APPLY as pe,SIGNAL_ENTRY_ACTIVATED as me}from"./widgets/adw-entry-row.js";import{NOTIFY_ENABLE_EXPANSION as he,NOTIFY_EXPANDED as ge,NOTIFY_SHOW_ENABLE_SWITCH as _e,NS_EXPANDER_ARROW_DISABLED_OPACITY as ve}from"./widgets/adw-expander-row.js";import{NOTIFY_VISIBLE_CHILD as ye}from"./widgets/adw-view-stack.js";import{AdwViewSwitcherBase as be,NOTIFY_SELECTED as xe}from"./widgets/view-switcher-base.js";import{NsNavigationSplitViewState as Se,NsOverlaySplitViewState as Ce,splitViewColumns as we}from"./widgets/split-view-state.js";import{AdwSplitViewBase as Te,NOTIFY_SHOW_SIDEBAR as Ee}from"./widgets/split-view-base.js";import{NOTIFY_VISIBLE_PAGE as De}from"./widgets/navigation-stack.js";import{CLOSED as Oe}from"./widgets/adw-preferences-dialog.js";import{SHORTCUT_LABEL_CAP_TEXT_CLASS as ke,SHORTCUT_LABEL_CLASS as Ae,SHORTCUT_LABEL_DIMMED_CLASS as je,SHORTCUT_LABEL_DISABLED_CLASS as Me,SHORTCUT_LABEL_KEYCAP_CLASS as Ne,SHORTCUT_LABEL_KEYS_CLASS as Pe,SHORTCUT_LABEL_SIDE_CLASS as Fe,SHORTCUT_LABEL_SPACED_CLASS as Ie,shortcutLabelDirection as Le,shortcutLabelPlatform as Re,shortcutLabelRenderPlan as ze}from"./widgets/shortcut-label.js";import{NOTIFY_SELECTED as Q}from"./widgets/adw-sidebar.js";import{NOTIFY_VALUE as Be,SpinState as Ve}from"./widgets/adw-spin-row.js";import{MENU_TAPPED as He}from"./widgets/adw-split-button.js";import{NOTIFY_ACTIVE as Ue}from"./widgets/adw-switch-row.js";import{AdwToast as We,AdwToastQueue as Ge,DEFAULT_TOAST_TIMEOUT as Ke}from"./widgets/adw-toast-overlay.js";import{NOTIFY_SELECTED as qe,ToggleGroupState as Je}from"./widgets/adw-toggle-group.js";import{ADWAITA_NS_ACCENT_RULES as Ye,adwaitaNsAccentColor as Xe,adwaitaNsAccentCss as Ze}from"./widgets/accent-theme.js";import{applyAdwaitaNsAccent as Qe,clearAdwaitaNsAccent as $e}from"./widgets/adw-accent.js";import{adw_exports as et}from"./namespace/adw.js";import{DEFAULT_BOX_SPACING as tt,boxChildTrack as nt,boxSpacingChanges as rt,boxTrackPlan as it,normalizeBoxSpacing as at}from"./widgets/box-layout.js";import{buttonSlotAfterWrite as ot,buttonSlotDetaches as st}from"./widgets/button-slot.js";import{GTK_BUTTON_CLICKED as ct,GTK_BUTTON_LABEL_CLASS as lt}from"./widgets/gtk-button.js";import{NOTIFY_SELECTED as ut}from"./widgets/gtk-drop-down.js";import{GTK_CHECK_BUTTON_ACTIVATE as dt,GTK_CHECK_BUTTON_CHECKED_CLASS as ft,GTK_CHECK_BUTTON_INCONSISTENT_CLASS as pt,GTK_CHECK_BUTTON_TOGGLED as mt,NOTIFY_CHECK_ACTIVE as ht}from"./widgets/gtk-check-button.js";import{DRAWING_AREA_REFUSAL as gt}from"./widgets/gtk-drawing-area.js";import{ACTIVATE as _t,NOTIFY_TEXT as vt}from"./widgets/gtk-entry.js";import{LIST_BOX_ROW_ACTIVATED as yt,LIST_BOX_ROW_SELECTED as bt}from"./widgets/gtk-list-box.js";import{MENU_ITEM_ACTIVATED as xt}from"./widgets/gtk-menu-button.js";import{NOTIFY_REVEAL_CHILD as St}from"./widgets/gtk-revealer.js";import{NOTIFY_STACK_VISIBLE_CHILD as Ct,NOTIFY_STACK_VISIBLE_CHILD_NAME as wt}from"./widgets/gtk-stack.js";import{GTK_WRAP_MODES as Tt,NOTIFY_TEXT_VIEW_TEXT as Et}from"./widgets/gtk-text-view.js";import{GTK_TOGGLE_BUTTON_CHECKED_CLASS as Dt,GTK_TOGGLE_BUTTON_TOGGLED as Ot,NOTIFY_TOGGLE_ACTIVE as kt}from"./widgets/gtk-toggle-button.js";import{gtk_exports as At}from"./namespace/gtk.js";import{ADWAITA_SANS_FONT_FAMILY as jt,ADWAITA_SANS_TTF_FILES as Mt,adwaitaFontInstallInstructions as Nt,hasAdwaitaSans as Pt}from"./fonts.js";import{AdwSliderRow as Ft,NOTIFY_SLIDER_VALUE as It}from"./widgets/adw-slider-row.js";import{DATA_GRID_HEADER_CELL_CLASS as Lt,DATA_GRID_HEADER_ROW_CLASS as Rt,DATA_GRID_SECTION_CELL_CLASS as zt,dataGridCellClass as Bt,dataGridItemSpec as Vt,dataGridRowClass as Ht,dataGridShapeKey as Ut,dataGridTracksKey as Wt,parseDataGridWidth as Gt}from"./widgets/data-grid-model.js";import{AdwDataGrid as Kt,ROW_ACTIVATED as qt}from"./widgets/adw-data-grid.js";import{padForSystemInsets as Jt,padSheetForSystemInsets as Yt}from"./widgets/system-insets.js";import{labelDisplayText as Xt,labelMarkupIsUnparseable as Zt,registerAdwaitaElements as $}from"./widgets/index.js";import{gio_exports as Qt}from"./namespace/gio.js";import{gdk_exports as $t}from"./namespace/gdk.js";import{graphene_exports as en}from"./namespace/graphene.js";import{glib_exports as tn}from"./namespace/glib.js";import{assertNativeScript as nn,assertNativeScript as rn,isAndroid as an,isIOS as on,isNativeScript as sn}from"@gjsify/native-platform";function registerAdwaita(){rn(),$()}export{I as ABOUT_CLOSED,L as ACTIVATED,w as ADWAITA_ICON_GRID,Ye as ADWAITA_NS_ACCENT_RULES,jt as ADWAITA_SANS_FONT_FAMILY,Mt as ADWAITA_SANS_TTF_FILES,re as ADW_DIALOG_CLOSED,ie as ADW_DIALOG_CLOSE_ATTEMPT,U as AVATAR_DEFAULT_ICON,et as Adw,R as AdwAlertResponses,ee as AdwBreakpoint,Kt as AdwDataGrid,ae as AdwImageButton,Ft as AdwSliderRow,Te as AdwSplitViewBase,We as AdwToast,Ge as AdwToastQueue,be as AdwViewSwitcherBase,q as BUTTON_CLICKED,X as ComboState,Lt as DATA_GRID_HEADER_CELL_CLASS,Rt as DATA_GRID_HEADER_ROW_CLASS,zt as DATA_GRID_SECTION_CELL_CLASS,W as DEFAULT_AVATAR_SIZE,tt as DEFAULT_BOX_SPACING,J as DEFAULT_CAROUSEL_PAGE_WIDTH,G as DEFAULT_CLAMP_MAX_SIZE,F as DEFAULT_GTK_IMAGE_SIZE,oe as DEFAULT_ICON_BUTTON_ICON_SIZE,T as DEFAULT_ICON_COLOR,E as DEFAULT_ICON_COLOR_DARK,a as DEFAULT_ICON_PIXEL_SIZE,K as DEFAULT_SPINNER_SIZE,Ke as DEFAULT_TOAST_TIMEOUT,gt as DRAWING_AREA_REFUSAL,r as ENGINE_TARGET,_t as ENTRY_ACTIVATE,tn as GLib,i as GTK_ALIGN,ct as GTK_BUTTON_CLICKED,lt as GTK_BUTTON_LABEL_CLASS,dt as GTK_CHECK_BUTTON_ACTIVATE,ft as GTK_CHECK_BUTTON_CHECKED_CLASS,pt as GTK_CHECK_BUTTON_INCONSISTENT_CLASS,mt as GTK_CHECK_BUTTON_TOGGLED,o as GTK_ICON_SIZE_NICKS,s as GTK_ICON_SIZE_PIXELS,Dt as GTK_TOGGLE_BUTTON_CHECKED_CLASS,Ot as GTK_TOGGLE_BUTTON_TOGGLED,Tt as GTK_WRAP_MODES,$t as Gdk,Qt as Gio,en as Graphene,At as Gtk,k as ICON_FALLBACK_NAME,yt as LIST_BOX_ROW_ACTIVATED,bt as LIST_BOX_ROW_SELECTED,xt as MENU_ITEM_ACTIVATED,He as MENU_TAPPED,se as NOTIFY_ACTIVATES_DEFAULT,Ue as NOTIFY_ACTIVE,ht as NOTIFY_CHECK_ACTIVE,ut as NOTIFY_DROP_DOWN_SELECTED,ce as NOTIFY_EDITABLE,he as NOTIFY_ENABLE_EXPANSION,vt as NOTIFY_ENTRY_TEXT,ge as NOTIFY_EXPANDED,h as NOTIFY_HEXPAND,le as NOTIFY_MAX_LENGTH,z as NOTIFY_OPEN,Y as NOTIFY_POSITION,St as NOTIFY_REVEAL_CHILD,Z as NOTIFY_SELECTED,ue as NOTIFY_SHOW_APPLY_BUTTON,_e as NOTIFY_SHOW_ENABLE_SWITCH,Ee as NOTIFY_SHOW_SIDEBAR,Q as NOTIFY_SIDEBAR_SELECTED,It as NOTIFY_SLIDER_VALUE,Ct as NOTIFY_STACK_VISIBLE_CHILD,wt as NOTIFY_STACK_VISIBLE_CHILD_NAME,de as NOTIFY_TEXT,fe as NOTIFY_TEXT_LENGTH,Et as NOTIFY_TEXT_VIEW_TEXT,kt as NOTIFY_TOGGLE_ACTIVE,qe as NOTIFY_TOGGLE_SELECTED,Be as NOTIFY_VALUE,g as NOTIFY_VEXPAND,xe as NOTIFY_VIEW_SELECTED,ye as NOTIFY_VISIBLE_CHILD,De as NOTIFY_VISIBLE_PAGE,ve as NS_EXPANDER_ARROW_DISABLED_OPACITY,Se as NsNavigationSplitViewState,Ce as NsOverlaySplitViewState,c as PIXEL_SIZE_UNSET,Oe as PREFERENCES_CLOSED,qt as ROW_ACTIVATED,ke as SHORTCUT_LABEL_CAP_TEXT_CLASS,Ae as SHORTCUT_LABEL_CLASS,je as SHORTCUT_LABEL_DIMMED_CLASS,Me as SHORTCUT_LABEL_DISABLED_CLASS,Ne as SHORTCUT_LABEL_KEYCAP_CLASS,Pe as SHORTCUT_LABEL_KEYS_CLASS,Fe as SHORTCUT_LABEL_SIDE_CLASS,Ie as SHORTCUT_LABEL_SPACED_CLASS,pe as SIGNAL_APPLY,me as SIGNAL_ENTRY_ACTIVATED,Ve as SpinState,Je as ToggleGroupState,f as activateWidgetAction,te as addBreakpoints,v as adwaitaColorScheme,Nt as adwaitaFontInstallInstructions,Xe as adwaitaNsAccentColor,Ze as adwaitaNsAccentCss,Qe as applyAdwaitaNsAccent,u as applyConstructProps,nn as assertNativeScript,B as attachRowPressFeedback,H as avatarInitials,V as bottomSheetPanel,nt as boxChildTrack,rt as boxSpacingChanges,it as boxTrackPlan,ot as buttonSlotAfterWrite,st as buttonSlotDetaches,$e as clearAdwaitaNsAccent,A as compiledIconNames,Bt as dataGridCellClass,Vt as dataGridItemSpec,Ht as dataGridRowClass,Ut as dataGridShapeKey,Wt as dataGridTracksKey,ne as evaluateBreakpointCondition,D as extractIconPaths,O as extractPathData,p as findActionGroup,Pt as hasAdwaitaSans,j as iconValueKind,m as insertActionGroup,an as isAndroid,l as isGtkIconSizeNick,on as isIOS,M as isIconAvailable,sn as isNativeScript,y as isThemeIconColor,Xt as labelDisplayText,Zt as labelMarkupIsUnparseable,at as normalizeBoxSpacing,d as nsAlignment,e as observeViewSize,t as observeWindowSize,b as onAdwaitaColorSchemeChanged,Jt as padForSystemInsets,Yt as padSheetForSystemInsets,n as parseBreakpointCondition,Gt as parseDataGridWidth,registerAdwaita,$ as registerAdwaitaElements,P as renderSymbolicIcon,N as resolveIconSource,x as setAdwaitaColorScheme,Le as shortcutLabelDirection,Re as shortcutLabelPlatform,ze as shortcutLabelRenderPlan,we as splitViewColumns,S as themeIconColor,C as toggleAdwaitaColorScheme,_ as withGtkWidgetLayout};
|
package/lib/esm/namespace/adw.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__exportAll as ee}from"../_virtual/_rolldown/runtime.js";import{AdwAboutDialog as e}from"../widgets/adw-about-dialog.js";import{AdwActionRow as t}from"../widgets/adw-action-row.js";import{AdwAlertDialog as n}from"../widgets/adw-alert-dialog.js";import{
|
|
1
|
+
import{__exportAll as ee}from"../_virtual/_rolldown/runtime.js";import{AdwAboutDialog as e}from"../widgets/adw-about-dialog.js";import{AdwActionRow as t}from"../widgets/adw-action-row.js";import{AdwAlertDialog as n}from"../widgets/adw-alert-dialog.js";import{AdwBottomSheet as r}from"../widgets/adw-bottom-sheet.js";import{AdwApplication as i}from"../widgets/application.js";import{AdwApplicationWindow as a}from"../widgets/adw-application-window.js";import{AdwAvatar as o}from"../widgets/adw-avatar.js";import{AdwBanner as s}from"../widgets/adw-banner.js";import{AdwBin as c}from"../widgets/adw-bin.js";import{AdwButtonContent as l}from"../widgets/adw-button-content.js";import{AdwButtonRow as u}from"../widgets/adw-button-row.js";import{AdwCarousel as d}from"../widgets/adw-carousel.js";import{AdwCarouselIndicatorDots as f}from"../widgets/adw-carousel-indicator-dots.js";import{AdwCarouselIndicatorLines as p}from"../widgets/adw-carousel-indicator-lines.js";import{AdwClamp as m}from"../widgets/adw-clamp.js";import{AdwComboRow as h}from"../widgets/adw-combo-row.js";import{AdwDialog as g}from"../widgets/adw-dialog.js";import{AdwEntryRow as _}from"../widgets/adw-entry-row.js";import{AdwExpanderRow as v}from"../widgets/adw-expander-row.js";import{AdwWindowTitle as y}from"../widgets/adw-window-title.js";import{AdwHeaderBar as b}from"../widgets/adw-header-bar.js";import{AdwViewStackPage as x}from"../widgets/view-stack-page.js";import{AdwViewStack as S}from"../widgets/adw-view-stack.js";import{AdwInlineViewSwitcher as C}from"../widgets/adw-inline-view-switcher.js";import{AdwNavigationSplitView as w}from"../widgets/adw-navigation-split-view.js";import{AdwNavigationPage as T}from"../widgets/adw-navigation-page.js";import{AdwNavigationView as E}from"../widgets/adw-navigation-view.js";import{AdwOverlaySplitView as D}from"../widgets/adw-overlay-split-view.js";import{AdwPasswordEntryRow as te}from"../widgets/adw-password-entry-row.js";import{AdwPreferencesDialog as O}from"../widgets/adw-preferences-dialog.js";import{AdwPreferencesGroup as k}from"../widgets/adw-preferences-group.js";import{AdwPreferencesPage as A}from"../widgets/adw-preferences-page.js";import{AdwShortcutLabel as j}from"../widgets/adw-shortcut-label.js";import{AdwSidebarItem as M,AdwSidebarSection as N}from"../values/sidebar.js";import{AdwSidebar as P}from"../widgets/adw-sidebar.js";import{AdwSpinRow as F}from"../widgets/adw-spin-row.js";import{AdwSpinner as I}from"../widgets/adw-spinner.js";import{AdwSplitButton as L}from"../widgets/adw-split-button.js";import{AdwStatusPage as R}from"../widgets/adw-status-page.js";import{AdwSwitchRow as z}from"../widgets/adw-switch-row.js";import{AdwTabPage as B}from"../values/tab-page.js";import{AdwTabView as V}from"../widgets/adw-tab-view.js";import{AdwToastOverlay as H}from"../widgets/adw-toast-overlay.js";import{AdwToggle as U}from"../widgets/adw-toggle.js";import{AdwToggleGroup as W}from"../widgets/adw-toggle-group.js";import{AdwToolbarView as G}from"../widgets/adw-toolbar-view.js";import{AdwViewSwitcher as K}from"../widgets/adw-view-switcher.js";import{AdwViewSwitcherBar as q}from"../widgets/adw-view-switcher-bar.js";import{AdwWindow as J}from"../widgets/adw-window.js";import{AdwWrapBox as Y}from"../widgets/adw-wrap-box.js";import{AdwStyleManager as X}from"../widgets/style-manager.js";import"../widgets/style-manager-host.js";import{AccentColor as Z,ColorScheme as Q,Toast as $,ToastPriority as ne}from"@gjsify/adwaita-core";var re=ee({AboutDialog:()=>e,AccentColor:()=>Z,ActionRow:()=>t,AlertDialog:()=>n,Application:()=>i,ApplicationWindow:()=>a,Avatar:()=>o,Banner:()=>s,Bin:()=>c,BottomSheet:()=>r,ButtonContent:()=>l,ButtonRow:()=>u,Carousel:()=>d,CarouselIndicatorDots:()=>f,CarouselIndicatorLines:()=>p,Clamp:()=>m,ColorScheme:()=>Q,ComboRow:()=>h,Dialog:()=>g,EntryRow:()=>_,ExpanderRow:()=>v,HeaderBar:()=>b,InlineViewSwitcher:()=>C,NavigationPage:()=>T,NavigationSplitView:()=>w,NavigationView:()=>E,OverlaySplitView:()=>D,PasswordEntryRow:()=>te,PreferencesDialog:()=>O,PreferencesGroup:()=>k,PreferencesPage:()=>A,ShortcutLabel:()=>j,Sidebar:()=>P,SidebarItem:()=>M,SidebarSection:()=>N,SpinRow:()=>F,Spinner:()=>I,SplitButton:()=>L,StatusPage:()=>R,StyleManager:()=>X,SwitchRow:()=>z,TabPage:()=>B,TabView:()=>V,Toast:()=>$,ToastOverlay:()=>H,ToastPriority:()=>ne,Toggle:()=>U,ToggleGroup:()=>W,ToolbarView:()=>G,ViewStack:()=>S,ViewStackPage:()=>x,ViewSwitcher:()=>K,ViewSwitcherBar:()=>q,Window:()=>J,WindowTitle:()=>y,WrapBox:()=>Y});export{e as AboutDialog,Z as AccentColor,t as ActionRow,n as AlertDialog,i as Application,a as ApplicationWindow,o as Avatar,s as Banner,c as Bin,r as BottomSheet,l as ButtonContent,u as ButtonRow,d as Carousel,f as CarouselIndicatorDots,p as CarouselIndicatorLines,m as Clamp,Q as ColorScheme,h as ComboRow,g as Dialog,_ as EntryRow,v as ExpanderRow,b as HeaderBar,C as InlineViewSwitcher,T as NavigationPage,w as NavigationSplitView,E as NavigationView,D as OverlaySplitView,te as PasswordEntryRow,O as PreferencesDialog,k as PreferencesGroup,A as PreferencesPage,j as ShortcutLabel,P as Sidebar,M as SidebarItem,N as SidebarSection,F as SpinRow,I as Spinner,L as SplitButton,R as StatusPage,X as StyleManager,z as SwitchRow,B as TabPage,V as TabView,$ as Toast,H as ToastOverlay,ne as ToastPriority,U as Toggle,W as ToggleGroup,G as ToolbarView,S as ViewStack,x as ViewStackPage,K as ViewSwitcher,q as ViewSwitcherBar,J as Window,y as WindowTitle,Y as WrapBox,re as adw_exports};
|
package/lib/esm/namespace/gio.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__exportAll as e}from"../_virtual/_rolldown/runtime.js";import{SimpleAction as t,SimpleActionGroup as n}from"../widgets/actions.js";import{nativePlatformHost as r}from"../platform-host.js";import{GioApplication as i}from"../widgets/application.js";import"../file-chooser-host.js";import{ApplicationFlags as a,FileCreateFlags as o,GioFile as s,GioFileOutputStream as c,GioListStore as l,GioMenu as u,GioMenuItem as d,GioOutputStream as f,GioResource as p,IOErrorEnum as m,
|
|
1
|
+
import{__exportAll as e}from"../_virtual/_rolldown/runtime.js";import{SimpleAction as t,SimpleActionGroup as n}from"../widgets/actions.js";import{nativePlatformHost as r}from"../platform-host.js";import{GioApplication as i}from"../widgets/application.js";import"../file-chooser-host.js";import{ApplicationFlags as a,FileCreateFlags as o,GioFile as s,GioFileOutputStream as c,GioListStore as l,GioMenu as u,GioMenuItem as d,GioOutputStream as f,GioResource as p,IOErrorEnum as m,ListModel as h,ResourceError as g,ResourceLookupFlags as _,createAppInfo as v,promisify as y,resources_enumerate_children as b,resources_get_info as x,resources_lookup_data as S,resources_register as C,resources_unregister as w}from"@gjsify/adwaita-core";import{Settings as T}from"@gjsify/app-settings/nativescript";var E=e({AppInfo:()=>D,Application:()=>i,ApplicationFlags:()=>a,File:()=>s,FileCreateFlags:()=>o,FileOutputStream:()=>c,IOErrorEnum:()=>m,ListModel:()=>h,ListStore:()=>l,Menu:()=>u,MenuItem:()=>d,OutputStream:()=>f,Resource:()=>p,ResourceError:()=>g,ResourceLookupFlags:()=>_,Settings:()=>T,SimpleAction:()=>t,SimpleActionGroup:()=>n,_promisify:()=>y,resources_enumerate_children:()=>b,resources_get_info:()=>x,resources_lookup_data:()=>S,resources_register:()=>C,resources_unregister:()=>w});const D=v(r);export{D as AppInfo,i as Application,a as ApplicationFlags,s as File,o as FileCreateFlags,c as FileOutputStream,m as IOErrorEnum,h as ListModel,l as ListStore,u as Menu,d as MenuItem,f as OutputStream,p as Resource,g as ResourceError,_ as ResourceLookupFlags,T as Settings,t as SimpleAction,n as SimpleActionGroup,y as _promisify,E as gio_exports,b as resources_enumerate_children,x as resources_get_info,S as resources_lookup_data,C as resources_register,w as resources_unregister};
|
package/lib/esm/namespace/gtk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__exportAll as e}from"../_virtual/_rolldown/runtime.js";import{CssProvider as t,EventControllerKey as n,IconTheme as r,Settings as i,StyleContext as a,show_uri as o}from"./gtk-platform.js";import{GtkImage as s}from"../widgets/gtk-image.js";import{GtkApplication as c}from"../widgets/application.js";import{GtkWindow as l}from"../widgets/gtk-window.js";import{ArrowType as u,License as d,PolicyType as f,TextDirection as p,TextExtendSelection as m,TextWindowType as h}from"../widgets/gtk-enums.js";import{GtkActionBar as g}from"../widgets/gtk-action-bar.js";import{GtkBox as _}from"../widgets/gtk-box.js";import{GtkButton as v}from"../widgets/gtk-button.js";import{GtkDropDown as y}from"../widgets/gtk-drop-down.js";import{GtkCheckButton as b}from"../widgets/gtk-check-button.js";import{GtkDrawingArea as x}from"../widgets/gtk-drawing-area.js";import{GtkEntry as S}from"../widgets/gtk-entry.js";import{GtkGrid as C}from"../widgets/gtk-grid.js";import{GtkFrame as w}from"../widgets/gtk-frame.js";import{GtkLabel as T}from"../widgets/gtk-label.js";import{GtkListBox as E}from"../widgets/gtk-list-box.js";import{GtkMenuButton as D}from"../widgets/gtk-menu-button.js";import{GtkPopoverMenu as O}from"../widgets/gtk-popover-menu.js";import{GtkOverlay as k}from"../widgets/gtk-overlay.js";import{GtkRevealer as A}from"../widgets/gtk-revealer.js";import{GtkScrolledWindow as j}from"../widgets/gtk-scrolled-window.js";import{GtkApplicationWindow as M}from"../widgets/gtk-application-window.js";import{GtkSeparator as N}from"../widgets/gtk-separator.js";import{GtkStackPage as P}from"../widgets/stack-page.js";import{GtkStack as F}from"../widgets/gtk-stack.js";import{GtkTextView as I}from"../widgets/gtk-text-view.js";import{GtkToggleButton as L}from"../widgets/gtk-toggle-button.js";import{ApplicationInhibitFlags as R,DialogError as z,GtkAdjustment as B,GtkFileDialog as V,GtkFileFilter as H,GtkStringList as U,
|
|
1
|
+
import{__exportAll as e}from"../_virtual/_rolldown/runtime.js";import{CssProvider as t,EventControllerKey as n,IconTheme as r,Settings as i,StyleContext as a,show_uri as o}from"./gtk-platform.js";import{GtkImage as s}from"../widgets/gtk-image.js";import{GtkApplication as c}from"../widgets/application.js";import{GtkWindow as l}from"../widgets/gtk-window.js";import{ArrowType as u,License as d,PolicyType as f,TextDirection as p,TextExtendSelection as m,TextWindowType as h}from"../widgets/gtk-enums.js";import{GtkActionBar as g}from"../widgets/gtk-action-bar.js";import{GtkBox as _}from"../widgets/gtk-box.js";import{GtkButton as v}from"../widgets/gtk-button.js";import{GtkDropDown as y}from"../widgets/gtk-drop-down.js";import{GtkCheckButton as b}from"../widgets/gtk-check-button.js";import{GtkDrawingArea as x}from"../widgets/gtk-drawing-area.js";import{GtkEntry as S}from"../widgets/gtk-entry.js";import{GtkGrid as C}from"../widgets/gtk-grid.js";import{GtkFrame as w}from"../widgets/gtk-frame.js";import{GtkLabel as T}from"../widgets/gtk-label.js";import{GtkListBox as E}from"../widgets/gtk-list-box.js";import{GtkMenuButton as D}from"../widgets/gtk-menu-button.js";import{GtkPopoverMenu as O}from"../widgets/gtk-popover-menu.js";import{GtkOverlay as k}from"../widgets/gtk-overlay.js";import{GtkRevealer as A}from"../widgets/gtk-revealer.js";import{GtkScrolledWindow as j}from"../widgets/gtk-scrolled-window.js";import{GtkApplicationWindow as M}from"../widgets/gtk-application-window.js";import{GtkSeparator as N}from"../widgets/gtk-separator.js";import{GtkStackPage as P}from"../widgets/stack-page.js";import{GtkStack as F}from"../widgets/gtk-stack.js";import{GtkTextView as I}from"../widgets/gtk-text-view.js";import{GtkToggleButton as L}from"../widgets/gtk-toggle-button.js";import{ApplicationInhibitFlags as R,DialogError as z,GtkAdjustment as B,GtkFileDialog as V,GtkFileFilter as H,GtkStringList as U,GtkStringObject as W,STYLE_PROVIDER_PRIORITY_APPLICATION as G,STYLE_PROVIDER_PRIORITY_FALLBACK as K,STYLE_PROVIDER_PRIORITY_SETTINGS as q,STYLE_PROVIDER_PRIORITY_THEME as J,STYLE_PROVIDER_PRIORITY_USER as Y}from"@gjsify/adwaita-core";var X=e({ActionBar:()=>g,Adjustment:()=>B,Application:()=>c,ApplicationInhibitFlags:()=>R,ApplicationWindow:()=>M,ArrowType:()=>u,Box:()=>_,Button:()=>v,CheckButton:()=>b,CssProvider:()=>t,DialogError:()=>z,DrawingArea:()=>x,DropDown:()=>y,Entry:()=>S,EventControllerKey:()=>n,FileDialog:()=>V,FileFilter:()=>H,Frame:()=>w,Grid:()=>C,IconTheme:()=>r,Image:()=>s,Label:()=>T,License:()=>d,ListBox:()=>E,MenuButton:()=>D,Overlay:()=>k,PolicyType:()=>f,PopoverMenu:()=>O,Revealer:()=>A,STYLE_PROVIDER_PRIORITY_APPLICATION:()=>G,STYLE_PROVIDER_PRIORITY_FALLBACK:()=>K,STYLE_PROVIDER_PRIORITY_SETTINGS:()=>q,STYLE_PROVIDER_PRIORITY_THEME:()=>J,STYLE_PROVIDER_PRIORITY_USER:()=>Y,ScrolledWindow:()=>j,Separator:()=>N,Settings:()=>i,Stack:()=>F,StackPage:()=>P,StringList:()=>U,StringObject:()=>W,StyleContext:()=>a,TextDirection:()=>p,TextExtendSelection:()=>m,TextView:()=>I,TextWindowType:()=>h,ToggleButton:()=>L,Window:()=>l,show_uri:()=>o});export{g as ActionBar,B as Adjustment,c as Application,R as ApplicationInhibitFlags,M as ApplicationWindow,u as ArrowType,_ as Box,v as Button,b as CheckButton,t as CssProvider,z as DialogError,x as DrawingArea,y as DropDown,S as Entry,n as EventControllerKey,V as FileDialog,H as FileFilter,w as Frame,C as Grid,r as IconTheme,s as Image,T as Label,d as License,E as ListBox,D as MenuButton,k as Overlay,f as PolicyType,O as PopoverMenu,A as Revealer,G as STYLE_PROVIDER_PRIORITY_APPLICATION,K as STYLE_PROVIDER_PRIORITY_FALLBACK,q as STYLE_PROVIDER_PRIORITY_SETTINGS,J as STYLE_PROVIDER_PRIORITY_THEME,Y as STYLE_PROVIDER_PRIORITY_USER,j as ScrolledWindow,N as Separator,i as Settings,F as Stack,P as StackPage,U as StringList,W as StringObject,a as StyleContext,p as TextDirection,m as TextExtendSelection,I as TextView,h as TextWindowType,L as ToggleButton,l as Window,X as gtk_exports,o as show_uri};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{withSignals as t}from"./signals.js";import{GtkImage as n}from"./gtk-image.js";import{buttonContentClassName as r,buttonContentEllipsize as i,buttonContentIcon as a,buttonContentIconIsFallback as o,buttonContentLabelText as s,buttonContentLabelVisibility as c,buttonContentRootedParentClassName as l,buttonContentUnrootedParentClassName as u}from"./button-content.js";import{Label as d,StackLayout as f}from"@nativescript/core";const p=`notify::icon-name`,m=`notify::label`,h=`notify::use-underline`,g=`notify::can-shrink`,emptyIfNull=e=>e??``;var AdwButtonContent=class extends t(f,{GTypeName:`AdwButtonContent`,Properties:{"icon-name":{kind:`string`,default:``,blurb:`The name of the displayed icon`,normalize:emptyIfNull},label:{kind:`string`,default:``,blurb:`The displayed label`,normalize:emptyIfNull},"use-underline":{kind:`boolean`,default:!1,blurb:`Whether an underline in the text marks a mnemonic`},"can-shrink":{kind:`boolean`,default:!1,blurb:`Whether the label can be shrunk`}}}){static GTypeName=`AdwButtonContent`;_icon;_label;_hostButton=null;constructor(t){super(),this.orientation=`horizontal`,this.className=`adw-button-content`,this.horizontalAlignment=`center`;let r=new n;r.className=`${r.className} adw-button-content-icon`.trim(),r.verticalAlignment=`middle`,r.iconName=a(``),this.addChild(r),this._icon=r;let i=new d;i.className=`adw-button-content-label`,i.verticalAlignment=`middle`,i.visibility=c(``),this.addChild(i),this._label=i,this.connect(p,e=>e._applyIcon()),this.connect(m,e=>e._renderLabel()),this.connect(h,e=>e._renderLabel()),this.connect(g,e=>e._applyCanShrink()),e(this,t)}get hostButton(){return this._hostButton}set hostButton(e){this._hostButton!==e&&(this._hostButton&&(this._hostButton.className=u(this._hostButton.className??``)),this._hostButton=e,e&&(e.className=l(e.className??``)))}get iconIsFallback(){return o(this.iconName)}get iconColor(){return this._icon.iconColor}set iconColor(e){this._icon.iconColor=e}get ellipsize(){return i(this.canShrink)}_applyIcon(){this._icon.iconName=a(this.iconName)}_applyCanShrink(){this.className=r(this.className,this.canShrink)}_renderLabel(){this._label.text=s(this.label,this.useUnderline),this._label.visibility=c(this.label)}};export{AdwButtonContent,g as NOTIFY_BUTTON_CONTENT_CAN_SHRINK,p as NOTIFY_BUTTON_CONTENT_ICON_NAME,m as NOTIFY_BUTTON_CONTENT_LABEL,h as NOTIFY_BUTTON_CONTENT_USE_UNDERLINE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{GtkImage as t}from"./gtk-image.js";import{ButtonRowState as n,buttonRowIconColor as r,buttonRowIconVisuals as i}from"./row-state.js";import{ACTIVATED as a,AdwActionRow as o}from"./adw-action-row.js";import{
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{GtkImage as t}from"./gtk-image.js";import{ButtonRowState as n,buttonRowIconColor as r,buttonRowIconVisuals as i}from"./row-state.js";import{ACTIVATED as a,AdwActionRow as o}from"./adw-action-row.js";import{attachRowPressFeedback as s}from"./row-press.js";import{classNameWith as c,normalizeStyleClasses as l,withCssClass as u,withoutCssClass as d}from"./style-classes.js";import{adwaitaAccent as f,onAdwaitaAccentChanged as p}from"@gjsify/adwaita-core";import{StackLayout as m}from"@nativescript/core";const h=`adw-row adw-action-row adw-button-row`;var g=class AdwButtonRow extends o{static GTypeName=`AdwButtonRow`;isActionRow=!1;_contentBox;_startIcon;_endIcon;_pinnedIconColor=null;_unsubAccent=null;_buttonState=new n;_styleClasses=[];constructor(t){super(),this.className=h,this._titleLabel.className=`adw-button-row-title`,this._titleLabel.horizontalAlignment=`center`,this._textStack.removeChild(this._titleLabel);let n=new m;n.orientation=`horizontal`,n.className=`adw-button-row-content`,n.horizontalAlignment=`center`,this._startIcon=AdwButtonRow._makeIcon(`adw-button-row-start-icon`),this._endIcon=AdwButtonRow._makeIcon(`adw-button-row-end-icon`),this._applyIconColor(),this.addEventListener(`loaded`,()=>{this._applyIconColor(),this._unsubAccent??=p(()=>this._applyIconColor())}),this.addEventListener(`unloaded`,()=>{this._unsubAccent?.(),this._unsubAccent=null}),n.addChild(this._startIcon),n.addChild(this._titleLabel),n.addChild(this._endIcon),this._textStack.addChild(n),this._textStack.horizontalAlignment=`center`,this._contentBox=n,this.activatable=!0,this._applyIcons(),s(this),e(this,t)}get styleClasses(){return[...this._styleClasses]}set styleClasses(e){this._setClasses(l(e))}add_css_class(e){this._setClasses(u(this._styleClasses,e))}remove_css_class(e){this._setClasses(d(this._styleClasses,e))}has_css_class(e){return this._styleClasses.includes((e??``).trim())}get_css_classes(){return[...this._styleClasses]}set_css_classes(e){this._setClasses(l([...e].join(` `)))}_setClasses(e){this._styleClasses=e,this.className=c(h,e)}static _makeIcon(e){let n=new t;return n.className=`${n.className} ${e}`.trim(),n.verticalAlignment=`middle`,n}get startIconName(){return this._buttonState.startIconName}set startIconName(e){this._buttonState.setStartIconName(e)&&this._applyIcons()}get endIconName(){return this._buttonState.endIconName}set endIconName(e){this._buttonState.setEndIconName(e)&&this._applyIcons()}get startIconColor(){return this._startIcon.iconColor}set startIconColor(e){this._pinnedIconColor=e||null,this._applyIconColor()}_applyIconColor(){let e=r(this._pinnedIconColor,f());this._startIcon.iconColor=e,this._endIcon.iconColor=e}_applyIcons(){let e=i(this._buttonState.state);this._startIcon.iconName=e.startIcon,this._startIcon.visibility=e.startIconVisibility,this._endIcon.iconName=e.endIcon,this._endIcon.visibility=e.endIconVisibility}};export{a as ACTIVATED,g as AdwButtonRow};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{builderSlotsOf as e,resolveBuilderSlot as t}from"./builder-slots.js";import{applyConstructProps as n}from"./construct-props.js";import{xmlNumber as r}from"./xml-values.js";import{GtkImage as i}from"./gtk-image.js";import{AdwActionRow as a}from"./adw-action-row.js";import{attachRowPressFeedback as o}from"./row-press.js";import{ComboState as s,ComboState as c,normalizeComboOptions as l}from"@gjsify/adwaita-core";import{Label as
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{builderSlotsOf as e,resolveBuilderSlot as t}from"./builder-slots.js";import{applyConstructProps as n}from"./construct-props.js";import{xmlNumber as r}from"./xml-values.js";import{GtkImage as i}from"./gtk-image.js";import{AdwActionRow as a}from"./adw-action-row.js";import{attachRowPressFeedback as o}from"./row-press.js";import{ComboState as s,ComboState as c,normalizeComboOptions as l,parseListModel as u}from"@gjsify/adwaita-core";import{Label as d,StackLayout as f,action as p}from"@nativescript/core";import{panDownSymbolic as m}from"@gjsify/adwaita-icons/ui";const h=`notify::selected`;var AdwComboRow=class extends a{static GTypeName=`AdwComboRow`;static builderSlots=e([...a.builderSlots,`model`],`suffix`);_valueLabel;_chevron;_state=new c;_pendingSelected=null;constructor(e){super(),this.className=`adw-row adw-action-row adw-combo-row`;let t=new f;t.orientation=`horizontal`,t.className=`adw-combo-suffix`;let r=new d;r.className=`adw-combo-value`,r.text=``;let a=new i;a.className=`adw-combo-chevron`,a.iconColor=`#9a9a9a`,a.pixelSize=16,a.iconName=m,t.addChild(r),t.addChild(a),this.add_suffix(t),this._valueLabel=r,this._chevron=a,this._state.subscribe(e=>{if(this._valueLabel.text=e.label,this._syncChooser(),e.interactive){let t={eventName:h,object:this,selected:e.selected,value:e.value};this.notify(t)}}),this.addEventListener(`tap`,()=>{this._openChooser()}),o(this),this._syncChooser(),n(this,e)}_syncChooser(){this._chevron.visibility=this._state.presentsChooser?`visible`:`collapse`}async _openChooser(){if(!this._state.presentsChooser)return;let e=this._state.model.map(e=>e.label),t=await p({title:this.title||void 0,cancelButtonText:`Cancel`,actions:e});this._state.select(e.indexOf(t))}get model(){return this._state.model}set model(e){if(this._state.setModel(typeof e==`string`?u(e):l(e)),this._pendingSelected!==null&&this._pendingSelected<this._state.model.length){let e=this._pendingSelected;this._pendingSelected=null,this._state.setSelectedIndex(e)}}set_model(e){this.model=e??[]}_addChildFromBuilder(e,n){if(t(e,[`model`],`edge`)===`model`){this.model=n;return}super._addChildFromBuilder(e,n)}get selected(){return this._state.selectedIndex}set selected(e){let t=r(e,this.selected);if(this._state.model.length===0){this._pendingSelected=t;return}this._state.setSelectedIndex(t)}get_selected(){return this.selected}set_selected(e){this.selected=e}get selectedValue(){return this._state.selectedValue}set selectedValue(e){this._state.setSelectedValue(e)}};export{AdwComboRow,s as ComboState,h as NOTIFY_SELECTED};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{xmlBoolean as t}from"./xml-values.js";import{withSignals as n}from"./signals.js";import{GtkImage as r}from"./gtk-image.js";import{attachRowPressFeedback as i}from"./row-press.js";import{
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{xmlBoolean as t}from"./xml-values.js";import{withSignals as n}from"./signals.js";import{GtkImage as r}from"./gtk-image.js";import{attachRowPressFeedback as i}from"./row-press.js";import{buttonContentClassName as a,buttonContentLabelText as o}from"./button-content.js";import{assertPopupMenuAssignable as s,refuseMenuString as c}from"./popup-menu.js";import{showMenuPopup as l}from"./popup-menu-view.js";import{splitButtonArrowSvg as u}from"./split-button.js";import{ArrowType as d}from"./gtk-enums.js";import{SPLIT_BUTTON_DISABLED_OPACITY as f,SplitButtonState as p}from"@gjsify/adwaita-core";import{GridLayout as m,ItemSpec as h,Label as g,StackLayout as _}from"@nativescript/core";const v=`notify::direction`,y=`menuTapped`,clearingSlot=(e,t)=>{e._contentGate=!0;try{t()}finally{e._contentGate=!1}};var AdwSplitButton=class extends n(m,{GTypeName:`AdwSplitButton`,Signals:{clicked:{},activate:{}},Properties:{label:{kind:`string`,default:null,blurb:`The label to show in the button`,normalize:(e,t)=>{let n=t;if(n._contentGate)return null;if(e==null)return n.label;let r=String(e);return r!==n.label&&n.iconName!==null&&clearingSlot(n,()=>n.iconName=null),r}},"icon-name":{kind:`string`,default:null,blurb:`The name of the icon used to automatically populate the button`,normalize:(e,t)=>{let n=t;if(n._contentGate)return null;if(e==null)return n.iconName;let r=String(e)===``?null:String(e);return n.label!==null&&clearingSlot(n,()=>n.label=null),r}},"use-underline":{kind:`boolean`,default:!1,blurb:`Whether an underline in the text indicates a mnemonic`},"can-shrink":{kind:`boolean`,default:!1,blurb:`Whether the button can be smaller than the natural size of its contents`},"dropdown-tooltip":{kind:`string`,default:``,blurb:`The tooltip of the dropdown button`}}}){static GTypeName=`AdwSplitButton`;static emittedSignals=[v];_actionPart;_actionLabel;_actionIcon;_dropdownPart;_chevron;_state=new p;_actions=null;_showingIcon=!1;_sensitive=!0;_contentGate=!1;constructor(t){super(),this.className=`adw-split-button`,this.addColumn(new h(1,`auto`)),this.addColumn(new h(1,`auto`)),this.addRow(new h(1,`auto`));let n=new _;n.orientation=`horizontal`,n.className=`adw-split-button-action`,n.horizontalAlignment=`center`,m.setColumn(n,0);let o=new g;o.className=`adw-split-button-label`,o.verticalAlignment=`middle`,n.addChild(o);let s=new r;s.className=`${s.className} adw-split-button-action-icon`.trim(),s.verticalAlignment=`middle`,this.addChild(n),this._actionPart=n,this._actionLabel=o,this._actionIcon=s;let c=new m;c.className=`adw-split-button-dropdown`,c.addColumn(new h(1,`star`)),c.addRow(new h(1,`star`)),m.setColumn(c,1);let l=new r;l.className=`${l.className} adw-split-button-chevron`.trim(),l.iconName=u(this._state.direction),l.horizontalAlignment=`center`,l.verticalAlignment=`middle`,c.addChild(l),this.addChild(c),this._dropdownPart=c,this._chevron=l,n.addEventListener(`tap`,()=>this._click()),this.connect(`activate`,e=>e._click()),c.addEventListener(`tap`,()=>{this._openMenu()}),i(n),i(c),this.connect(`notify::label`,e=>e._renderContent()),this.connect(`notify::icon-name`,e=>e._renderContent()),this.connect(`notify::use-underline`,e=>e._renderContent()),this.connect(`notify::can-shrink`,e=>{e._actionLabel.className=a(e._actionLabel.className,e.canShrink)}),this._state.subscribe(()=>this._render()),this._render(),e(this,t)}_openMenu(){if(!(!this._sensitive||this._state.open||!this._state.dropdownEnabled)){this._state.toggleMenu();try{l(this._dropdownPart,{model:this._state.menuModel??[],actions:this._actions,onActivated:(e,t)=>{let n=this._state.activateMenuItem(t);if(n===null)return;let r={eventName:y,object:this,item:n.label,id:n.id??n.label,path:t,action:n.action};this.notify(r)},onDismiss:()=>this._state.closeMenu()})}catch(e){throw this._state.closeMenu(),e}}}_click(){this._sensitive&&this.emit(`clicked`)}_renderContent(){let e=this.iconName!==null;e?this._actionIcon.iconName=this.iconName??``:this._actionLabel.text=o(this.label??``,this.useUnderline),e!==this._showingIcon&&(this._actionPart.removeChild(this._showingIcon?this._actionIcon:this._actionLabel),this._actionPart.addChild(e?this._actionIcon:this._actionLabel),this._showingIcon=e)}_render(){let{direction:e,dropdownEnabled:t}=this._state;this._chevron.iconName=u(e),this._dropdownPart.opacity=t?1:f,this.opacity=this._sensitive?1:f}get menuModel(){return this._state.menuModel??[]}set menuModel(e){c(e,`AdwSplitButton`),this._state.setMenuModel(e),s(this._state.menuModel??[])}get actions(){return this._actions}set actions(e){this._actions=e??null}get_direction(){return d[this._state.direction.toUpperCase()]}set_direction(e){let t=e,n=typeof t==`number`?t:/^\d+$/.test(String(t))?Number(t):d[String(t).toUpperCase()],r=Object.keys(d).find(e=>d[e]===n)?.toLowerCase();if(r===void 0)throw TypeError(`${String(t)} is not a valid value for enum argument direction (Gtk.ArrowType)`);this._state.setDirection(r)&&this.notify({eventName:v,object:this,value:this.get_direction()})}get sensitive(){return this._sensitive}set sensitive(e){let n=!!t(e,this._sensitive);n!==this._sensitive&&(this._sensitive=n,this._render())}get actionButton(){return this._actionPart}};export{AdwSplitButton,y as MENU_TAPPED,v as NOTIFY_DIRECTION};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{builderSlotsOf as e}from"./builder-slots.js";import{applyConstructProps as t}from"./construct-props.js";import{xmlBoolean as n}from"./xml-values.js";import{activateWidgetAction as r}from"./actions.js";import{applyNativeTooltip as i}from"./native-tooltip.js";import{withSignals as a}from"./signals.js";import{GtkImage as o}from"./gtk-image.js";import{
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{builderSlotsOf as e}from"./builder-slots.js";import{applyConstructProps as t}from"./construct-props.js";import{xmlBoolean as n}from"./xml-values.js";import{activateWidgetAction as r}from"./actions.js";import{applyNativeTooltip as i}from"./native-tooltip.js";import{withSignals as a}from"./signals.js";import{GtkImage as o}from"./gtk-image.js";import{attachRowPressFeedback as s}from"./row-press.js";import{classNameWith as c,normalizeStyleClasses as l,withCssClass as u,withoutCssClass as d}from"./style-classes.js";import{buttonSlotAfterWrite as f,buttonSlotDetaches as p}from"./button-slot.js";import{labelDisplayText as m}from"@gjsify/adwaita-core";import{GridLayout as h,ItemSpec as g,Label as _}from"@nativescript/core";const v=`clicked`,y=`image-button`,b=`adw-button-label`;var GtkButton=class extends a(h,{GTypeName:`GtkButton`,Signals:{clicked:{}}}){static GTypeName=`GtkButton`;static builderSlots=e([`child`],`child`);_styleClasses=[];_label=``;_iconName=``;_tooltipText=``;_useUnderline=!1;_slot=`empty`;_content=null;constructor(e){super(),this.className=c(`adw-button`,this._styleClasses),this.addRow(new g(1,`star`)),this.addColumn(new g(1,`star`)),s(this),this.addEventListener(`tap`,()=>{this.emit(v),this.actionName&&r(this,this.actionName)}),this.addEventListener(`loaded`,()=>{i(this,this.tooltipText),this._pinIconColor()}),t(this,e)}get label(){return this._label}set label(e){this._label=e??``,this._fill(`label`,this._label)}actionName=null;get iconName(){return this._iconName}set iconName(e){this._iconName=e??``,this._fill(`icon`,this._iconName)}get tooltipText(){return this._tooltipText}set tooltipText(e){let t=e??``;(this.accessibilityHint??``)===this._tooltipText&&(this.accessibilityHint=t),this._tooltipText=t,i(this,t)}get child(){return this._slot===`child`?this._content:null}set child(e){this._fill(`child`,e??null)}set_child(e){this.child=e}get_child(){return this.child}_addChildFromBuilder(e,t){this.child=t}get useUnderline(){return this._useUnderline}set useUnderline(e){this._useUnderline=n(e,this._useUnderline),this._slot===`label`&&this._fill(`label`,this._label)}get styleClasses(){return[...this._styleClasses]}set styleClasses(e){this._setClasses(l(e))}add_css_class(e){this._setClasses(u(this._styleClasses,e))}remove_css_class(e){this._setClasses(d(this._styleClasses,e))}has_css_class(e){return this._styleClasses.includes((e??``).trim())}get_css_classes(){return[...this._styleClasses]}set_css_classes(e){this._setClasses(l([...e].join(` `)))}_setClasses(e){this._styleClasses=[...e],this._restyle()}_restyle(){this.className=c(`adw-button`,[...this._styleClasses,...this._stateClasses()]),this._pinIconColor()}_stateClasses(){return this._slot===`icon`?[y]:[]}_fill(e,t){let n=f(e,t);p(this._slot,n)&&this._detach();let r=this._slot===`icon`;if(this._slot=n,r!==(n===`icon`)&&this._restyle(),n===`empty`){this._detach();return}if(n===`child`){let e=t;if(this._content===e)return;this._detach(),this._adopt(e);let n=e;`hostButton`in n&&(n.hostButton=this);return}if(n===`label`){let e=this._content instanceof _?this._content:this._adopt(new _);e.className=b,e.text=m(this._label,!1,this._useUnderline);return}let i=this._content instanceof o?this._content:this._adopt(new o);i.iconName=this._iconName,this._pinIconColor()}_pinIconColor(){this._content instanceof o&&(this._styleClasses.some(e=>e===`osd`||e===`suggested-action`)||this._inOsdContainer())&&(this._content.iconColor=`#ffffff`)}_inOsdContainer(){for(let e=this.parent;e;e=e.parent)if((e.className??``).split(/\s+/).includes(`osd`))return!0;return!1}_detach(){this._content&&this.removeChild(this._content),this._content=null}_adopt(e){return e.horizontalAlignment=`center`,e.verticalAlignment=`middle`,h.setColumn(e,0),h.setRow(e,0),this.addChild(e),this._content=e,e}};export{v as GTK_BUTTON_CLICKED,y as GTK_BUTTON_IMAGE_CLASS,b as GTK_BUTTON_LABEL_CLASS,GtkButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{builderSlotsOf as e}from"./builder-slots.js";import{applyConstructProps as t}from"./construct-props.js";import{xmlBoolean as n}from"./xml-values.js";import{GtkImage as r}from"./gtk-image.js";import{
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{builderSlotsOf as e}from"./builder-slots.js";import{applyConstructProps as t}from"./construct-props.js";import{xmlBoolean as n}from"./xml-values.js";import{GtkImage as r}from"./gtk-image.js";import{attachRowPressFeedback as i}from"./row-press.js";import{classNameWith as a}from"./style-classes.js";import{AdwStyledLayoutBase as o}from"./styled-layout-base.js";import{resolveIdReference as s}from"./id-reference.js";import{checkActivationFlips as c,checkGroupNeighbours as l,isRadioCheck as u,labelDisplayText as d,setCheckGroup as f}from"@gjsify/adwaita-core";import{GridLayout as p,ItemSpec as m,Label as h}from"@nativescript/core";import{objectSelectSymbolic as g}from"@gjsify/adwaita-icons/actions";const _=`toggled`,v=`activate`,y=`notify::active`,b=`checked`,x=`inconsistent`;var S=class GtkCheckButton extends o{static GTypeName=`GtkCheckButton`;static emittedSignals=[_,v,y];static builderSlots=e([`child`],`child`);static builderReferences=[`group`];_indicator;_mark;_text;_active=!1;_inconsistent=!1;_label=null;_useUnderline=!1;_child=null;_groupId=null;_contentUnit=`auto`;constructor(e){super(),this.addColumn(new m(1,`auto`)),this.addColumn(new m(1,`auto`)),this.addRow(new m(1,`auto`));let n=new p;n.className=`adw-check-indicator`,n.addColumn(new m(1,`star`)),n.addRow(new m(1,`star`)),n.verticalAlignment=`middle`,p.setColumn(n,0),p.setRow(n,0);let a=new r;a.iconName=g,a.pixelSize=14,a.iconColor=`#ffffff`,a.horizontalAlignment=`center`,a.verticalAlignment=`middle`,a.visibility=`collapse`,n.addChild(a),this.addChild(n),this._indicator=n,this._mark=a;let o=new h;o.className=`adw-check-label`,o.verticalAlignment=`middle`,o.visibility=`collapse`,p.setColumn(o,1),p.setRow(o,0),this.addChild(o),this._text=o,this.addEventListener(`loaded`,()=>this._resolveGroupId()),i(this),this.addEventListener(`tap`,()=>{c(this,this._active)&&(this._inconsistent=!1,this.active=!this._active,this._restyle(),this.notify({eventName:v,object:this}))}),this._restyle(),t(this,e)}get active(){return this._active}set active(e){let t=n(e,this._active);if(t!==this._active){if(t)for(let e of l(this))e.active=!1;this._active=t,this._restyle(),this.notify({eventName:_,object:this}),this.notify({eventName:y,object:this})}}set group(e){if(typeof e==`string`){this._groupId=e,this.isLoaded&&this.set_group(s(this,`group`,e,GtkCheckButton));return}this._groupId=null,this.set_group(e)}set_group(e){f(this,e),this._restyle(),e?._restyle()}_resolveGroupId(){let e=this._groupId;e!==null&&(this._groupId=null,this.set_group(s(this,`group`,e,GtkCheckButton)))}get inconsistent(){return this._inconsistent}set inconsistent(e){let t=n(e,this._inconsistent);t!==this._inconsistent&&(this._inconsistent=t,this._restyle(),this.notify({eventName:`notify::inconsistent`,object:this}))}get label(){return this._label}set label(e){this._label=e??null,this._paintLabel()}get useUnderline(){return this._useUnderline}set useUnderline(e){this._useUnderline=!!n(e,this._useUnderline),this._paintLabel()}_paintLabel(){this._text.text=d(this._label??``,!1,this._useUnderline),this._syncContent()}get child(){return this._child}set child(e){let t=e??null;t!==this._child&&(this._child&&this.removeChild(this._child),this._child=t,t&&(p.setColumn(t,1),p.setRow(t,0),this.addChild(t)),this._syncContent())}set_child(e){this.child=e}get_child(){return this._child}get_active(){return this._active}set_active(e){this.active=e}_addChildFromBuilder(e,t){this.child=t}_syncContent(){let e=!!this._child||!!this._label;this._text.visibility=!this._child&&this._label?`visible`:`collapse`;let t=e?`star`:`auto`;t!==this._contentUnit&&(this._contentUnit=t,this.removeColumns(),this.addColumn(new m(1,`auto`)),this.addColumn(new m(1,t)))}get _ownClass(){return`adw-check-button`}_restyle(){let e=[];this._active&&e.push(b),this._inconsistent&&e.push(x),this.className=a(this._ownClass,[...this.styleClasses,...e]),this._indicator.className=a(`adw-check-indicator`,u(this)?[...e,`radio`]:e),this._mark.visibility=this._active||this._inconsistent?`visible`:`collapse`}};export{v as GTK_CHECK_BUTTON_ACTIVATE,b as GTK_CHECK_BUTTON_CHECKED_CLASS,x as GTK_CHECK_BUTTON_INCONSISTENT_CLASS,_ as GTK_CHECK_BUTTON_TOGGLED,S as GtkCheckButton,y as NOTIFY_CHECK_ACTIVE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{builderSlotsOf as e,resolveBuilderSlot as t}from"./builder-slots.js";import{applyConstructProps as n}from"./construct-props.js";import{xmlNumber as r}from"./xml-values.js";import{withSignals as i}from"./signals.js";import{GtkImage as a}from"./gtk-image.js";import{attachRowPressFeedback as o}from"./row-press.js";import{ComboState as s,normalizeComboOptions as c}from"@gjsify/adwaita-core";import{Label as
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{builderSlotsOf as e,resolveBuilderSlot as t}from"./builder-slots.js";import{applyConstructProps as n}from"./construct-props.js";import{xmlNumber as r}from"./xml-values.js";import{withSignals as i}from"./signals.js";import{GtkImage as a}from"./gtk-image.js";import{attachRowPressFeedback as o}from"./row-press.js";import{ComboState as s,normalizeComboOptions as c,parseListModel as l}from"@gjsify/adwaita-core";import{Label as u,StackLayout as d,action as f}from"@nativescript/core";import{panDownSymbolic as p}from"@gjsify/adwaita-icons/ui";const m=`notify::selected`,h=`notify::selected-item`;var GtkDropDown=class extends i(d){static GTypeName=`GtkDropDown`;static emittedSignals=[m,h];static builderSlots=e([`model`],`model`);_label;_chevron;_state=new s;_chooserTitle=``;constructor(e){super(),this.orientation=`horizontal`,this.className=`adw-drop-down`;let t=new u;t.className=`adw-drop-down-label`,t.text=``;let r=new a;r.className=`adw-drop-down-chevron`,r.iconName=p,this.addChild(t),this.addChild(r),this._label=t,this._chevron=r,this._state.subscribe(e=>{if(this._label.text=e.label,e.interactive)for(let t of[m,h]){let n={eventName:t,object:this,selected:e.selected,value:e.value,label:e.label};this.notify(n)}}),this.addEventListener(`tap`,()=>{this._openChooser()}),o(this),n(this,e)}async _openChooser(){if(this._state.count===0)return;let e=this._state.model.map(e=>e.label),t=await f({title:this._chooserTitle||void 0,cancelButtonText:`Cancel`,actions:e});this._state.select(e.indexOf(t))}get model(){return this._state.model}set model(e){this._state.setModel(typeof e==`string`?l(e):c(e))}_addChildFromBuilder(e,n){if(t(e,[`model`],`child`)!==`model`)throw Error(`Gtk.DropDown takes no child widget; <${e}> is placed nowhere.`);this.model=n}get selected(){return this._state.selectedIndex}set selected(e){let t=r(e,this.selected);this._state.setSelectedIndex(t)}get_selected(){return this.selected}set_selected(e){this.selected=e}get selectedValue(){return this._state.selectedValue}set selectedValue(e){this._state.setSelectedValue(e)}get selectedItem(){return this._state.model[this._state.selectedIndex]??null}get chooserTitle(){return this._chooserTitle}set chooserTitle(e){this._chooserTitle=e??``}};export{GtkDropDown,m as NOTIFY_SELECTED,h as NOTIFY_SELECTED_ITEM};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{xmlBoolean as t}from"./xml-values.js";import{ACTIVATED as n}from"./adw-action-row.js";import{
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{xmlBoolean as t}from"./xml-values.js";import{ACTIVATED as n}from"./adw-action-row.js";import{addMarkerClass as r,removeMarkerClass as i}from"./bottom-sheet-state.js";import{AdwStyledLayoutBase as a}from"./styled-layout-base.js";import{DEFAULT_LIST_SELECTION_MODE as o,selectionAfterModeChange as s,selectionAfterTap as c,selectionMode as l}from"./list-box-state.js";import{GridLayout as u,ItemSpec as d}from"@nativescript/core";const f=`row-activated`,p=`row-selected`,m=`adw-list-row-selected`,h=`adw-row-flush-top`;function markRow(e,t,n){let a=n?r(e.className,t):i(e.className,t);a!==(e.className??``)&&(e.className=a)}var GtkListBox=class extends a{static GTypeName=`GtkListBox`;_selectionMode=o;_activateOnSingleClick=!0;_showSeparators=!1;_acceptUnpairedRelease=!1;_selected=[];_listeners=new Map;constructor(t){super(),this.addColumn(new d(1,`star`)),e(this,t)}append(e){this.addChild(e)}prepend(e){this.insert(e,0)}insert(e,t){let n=this.getChildrenCount();if(t<0||t>=n){this.addChild(e);return}this.insertChild(e,t)}remove(e){this.removeChild(e)}remove_all(){for(let e of this._rowViews())this.removeChild(e)}get_row_at_index(e){return this._rowViews()[e]??null}addChild(e){super.addChild(e),this._adopt(e)}insertChild(e,t){let n=super.insertChild(e,t);return this._adopt(e),n}removeChild(e){this._release(e),super.removeChild(e),this._renumber()}_addChildFromBuilder(e,t){this.append(t)}get_selected_row(){return this._selected[0]??null}get_selected_rows(){return this._rowViews().filter(e=>this._selected.includes(e))}select_row(e){if(e===null){this.unselect_all();return}this._selectionMode===`none`||!this._rowViews().includes(e)||this._setSelected(this._selectionMode===`multiple`?[...this._selected,e]:[e])}unselect_row(e){this._setSelected(this._selected.filter(t=>t!==e))}select_all(){this._selectionMode===`multiple`&&this._setSelected(this._rowViews())}unselect_all(){this._setSelected([])}get selectionMode(){return this._selectionMode}set selectionMode(e){this._selectionMode=l(e),this._setSelected(s(this._selectionMode,this._selected))}get activateOnSingleClick(){return this._activateOnSingleClick}set activateOnSingleClick(e){this._activateOnSingleClick=t(e,this._activateOnSingleClick)}get showSeparators(){return this._showSeparators}set showSeparators(e){this._showSeparators=t(e,this._showSeparators)}get acceptUnpairedRelease(){return this._acceptUnpairedRelease}set acceptUnpairedRelease(e){this._acceptUnpairedRelease=t(e,this._acceptUnpairedRelease)}_rowViews(){let e=[];for(let t=0;t<this.getChildrenCount();t++)e.push(this.getChildAt(t));return e}_renumber(){let e=this._rowViews();this.removeRows();for(let[t,n]of e.entries())this.addRow(new d(1,`auto`)),u.setColumn(n,0),u.setRow(n,t),markRow(n,h,t===0)}_adopt(e){if(this._renumber(),this._listeners.has(e))return;let t={tap:()=>{this._tapped(e),`activatable`in e||this._activated(e)},activated:()=>this._activated(e)};this._listeners.set(e,t),e.addEventListener(`tap`,t.tap),e.addEventListener(n,t.activated)}_release(e){let t=this._listeners.get(e);t!==void 0&&(e.removeEventListener(`tap`,t.tap),e.removeEventListener(n,t.activated),this._listeners.delete(e)),markRow(e,h,!1),markRow(e,m,!1),this._selected.includes(e)&&this._setSelected(this._selected.filter(t=>t!==e))}_tapped(e){this._setSelected(c(this._selectionMode,this._selected,e))}_activated(e){let t={eventName:f,object:this,row:e};this.notify(t)}_setSelected(e){let t=this._selected;if(t.length===e.length&&t.every((t,n)=>t===e[n]))return;for(let n of t)e.includes(n)||markRow(n,m,!1);for(let t of e)markRow(t,m,!0);this._selected=[...e];let n={eventName:p,object:this,row:this._selected[0]??null};this.notify(n)}};export{GtkListBox,f as LIST_BOX_ROW_ACTIVATED,p as LIST_BOX_ROW_SELECTED,m as LIST_ROW_SELECTED_CLASS};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{xmlBoolean as t,xmlNumber as n}from"./xml-values.js";import{surfaceSize as r}from"./window-state.js";import{windowHost as i}from"../window-host.js";import{
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{applyConstructProps as e}from"./construct-props.js";import{xmlBoolean as t,xmlNumber as n}from"./xml-values.js";import{surfaceSize as r}from"./window-state.js";import{windowHost as i}from"../window-host.js";import{AdwBottomSheet as a}from"./adw-bottom-sheet.js";import{defineWindowApplication as o}from"./application.js";import{AdwSingleChildBase as s}from"./single-child-base.js";import{CloseRequestState as c,HandledAccumulator as l,WindowMemberState as u,stepDefaultSize as d}from"@gjsify/adwaita-core";const f=`notify::is-active`,p=`notify::maximized`,m=`notify::focus-widget`,h=`close-request`;var g=class GtkWindow extends s{static GTypeName=`GtkWindow`;_title=``;_defaultWidth=0;_defaultHeight=0;_members=new u(e=>{let t=e===`is-active`?f:p;this.notify({eventName:t,object:this,value:e===`is-active`?this.isActive:this.maximized})},{maximized:!0});_closeRequest=new c;_unwatchForeground=null;_unwatchBack=null;constructor(t){super(),e(this,t)}onLoaded(){super.onLoaded();let e=i();this._unwatchForeground?.(),this._unwatchForeground=e.watchForeground(e=>this._members.reportActive(e)),this._members.reportActive(e.isForeground()),this._unwatchBack?.(),this._unwatchBack=this._isToplevel()?e.watchBack(()=>this._handleBack()):null}onUnloaded(){this._unwatchForeground?.(),this._unwatchForeground=null,this._unwatchBack?.(),this._unwatchBack=null,this._members.reportActive(!1),super.onUnloaded()}get isActive(){return this._members.active}get is_active(){return this._members.active}get maximized(){return this._members.maximized}set maximized(e){t(e,!0)?this.maximize():this.unmaximize()}is_maximized(){return this.maximized}maximize(){}unmaximize(){throw Error(`GtkWindow.unmaximize is not supported on NativeScript: the window is the whole screen and the platform has no un-maximized state to go back to.`)}present(){}get focusWidget(){return this.get_focus()}get focus_widget(){return this.get_focus()}set focus_widget(e){this.set_focus(e)}get_focus(){let e=i();return findView(this,t=>e.isFocused(t))}set_focus(e){let t=i();if(e===null){let e=this.get_focus();e!==null&&t.clearFocus(e);return}if(findView(this,t=>t===e)===null)throw Error(`GtkWindow.set_focus: the widget is not a descendant of this window.`);t.requestFocus(e)}close(){let e=i();if(this.isLoaded&&!e.canFinish)throw Error(`GtkWindow.close is not supported on this platform: iOS has no public API to close the root window. Android finishes the foreground activity.`);this._requestClose()}_requestClose(){let e=i();this._closeRequest.close({realized:this.isLoaded,hideOnClose:!1,emit:()=>{let e=new l;return this.notify({eventName:h,object:this,accumulator:e}),e.stopped},hide:()=>{},destroy:()=>e.finish()})}_handleBack(){return this._consumeBack()||closeOpenBottomSheet(this)||popInnermostNavigation(this)||this._requestClose(),!0}_consumeBack(){return!1}_isToplevel(){for(let e=this.parent;e;e=e.parent)if(e instanceof GtkWindow)return!1;return!0}connect(e,t){if(e===`notify::focus-widget`)throw Error(`GtkWindow notify::focus-widget is not supported on NativeScript: focus the user moves is not observable here. Read get_focus() when you need it.`);return super.connect(e,t)}get title(){return this._title}set title(e){this._title=e??``}get defaultWidth(){return this._defaultWidth}set defaultWidth(e){this._defaultWidth=r(n(e,NaN),e,this._defaultWidth,`defaultWidth`)}get defaultHeight(){return this._defaultHeight}set defaultHeight(e){this._defaultHeight=r(n(e,NaN),e,this._defaultHeight,`defaultHeight`)}get_default_size(){return[this._defaultWidth,this._defaultHeight]}set_default_size(e,t){let n=d(this.get_default_size(),e,t);if(n!==null){this._defaultWidth=n.width,this._defaultHeight=n.height;for(let e of n.changed){let t=e===`default-width`?n.width:n.height;this.notify({eventName:`notify::${e}`,object:this,value:t})}}}};function findView(e,t){let n=null;return e.eachChildView(e=>t(e)?(n=e,!1):(n=findView(e,t),n===null)),n}function closeOpenBottomSheet(e){let t=!1;return e.eachChildView(e=>e.visibility===`visible`?closeOpenBottomSheet(e)?(t=!0,!1):e instanceof a&&e.open&&e.canClose?(e.open=!1,t=!0,!1):!0:!0),t}const popsOnBack=e=>typeof e.popFromShortcut==`function`;function popInnermostNavigation(e){let t=!1;return e.eachChildView(e=>e.visibility===`visible`&&(popInnermostNavigation(e)||popsOnBack(e)&&e.isLoaded&&e.popFromShortcut()===`stop`)?(t=!0,!1):!0),t}o(g.prototype);export{h as CLOSE_REQUEST,g as GtkWindow,m as NOTIFY_FOCUS_WIDGET,f as NOTIFY_IS_ACTIVE,p as NOTIFY_MAXIMIZED};
|
package/lib/esm/widgets/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{AdwBreakpoint as ee,addBreakpoints as e,evaluateBreakpointCondition as te,observeViewSize as ne,observeWindowSize as re,parseBreakpointCondition as ie}from"./breakpoint.js";import{GTK_ALIGN as ae}from"./gtk-align.js";import{DEFAULT_ICON_PIXEL_SIZE as oe,GTK_ICON_SIZE_NICKS as se,GTK_ICON_SIZE_PIXELS as ce,PIXEL_SIZE_UNSET as le,isGtkIconSizeNick as ue}from"./gtk-icon-size.js";import{applyConstructProps as de,nsAlignment as fe}from"./construct-props.js";import{lengthValue as pe}from"./ns-length.js";import{SimpleAction as me,SimpleActionGroup as he,activateWidgetAction as ge,findActionGroup as _e,insertActionGroup as ve}from"./actions.js";import{NOTIFY_HEXPAND as ye,NOTIFY_VEXPAND as be,withGtkWidgetLayout as xe}from"./widget-layout.js";import{adwaitaColorScheme as Se,isThemeIconColor as Ce,onAdwaitaColorSchemeChanged as we,setAdwaitaColorScheme as Te,themeIconColor as Ee,toggleAdwaitaColorScheme as De}from"./color-scheme.js";import{ADWAITA_ICON_GRID as Oe,DEFAULT_ICON_COLOR as ke,DEFAULT_ICON_COLOR_DARK as Ae,extractIconPaths as je,extractPathData as Me}from"./icon-path.js";import{ICON_FALLBACK_NAME as Ne,compiledIconNames as Pe,iconValueKind as Fe,isIconAvailable as Ie,resolveIconSource as Le}from"./icon-theme.js";import{renderSymbolicIcon as Re}from"./icons.js";import{DEFAULT_GTK_IMAGE_SIZE as ze,GtkImage as t}from"./gtk-image.js";import{DEFAULT_REVEALER_TRANSITION_DURATION as Be,DEFAULT_STACK_TRANSITION_DURATION as Ve,GTK_REVEALER_TRANSITIONS as He,GTK_STACK_TRANSITIONS as Ue,transitionNick as We}from"./transition-type.js";import{ADW_DIALOG_PRESENTATION_MODES as Ge,DEFAULT_DIALOG_PRESENTATION_MODE as Ke,dialogPresentationMode as qe,findDialogHost as Je,surfaceSize as Ye}from"./window-state.js";import{AdwAboutDialog as n,CLOSED as Xe}from"./adw-about-dialog.js";import{ACTIVATED as Ze,AdwActionRow as r}from"./adw-action-row.js";import{AdwAlertDialog as Qe,AdwAlertResponses as $e}from"./adw-alert-dialog.js";import{GtkWindow as i}from"./gtk-window.js";import{ADW_WINDOW_CLASS as et,AdwWindowBase as tt}from"./window-base.js";import{AdwApplicationWindow as a}from"./adw-application-window.js";import{avatarInitials as nt}from"./avatar-color.js";import{AVATAR_DEFAULT_ICON as rt}from"./avatar-view.js";import{AdwAvatar as o,DEFAULT_AVATAR_SIZE as it}from"./adw-avatar.js";import{DEFAULT_CLAMP_MAX_SIZE as at,DEFAULT_SPINNER_SIZE as ot}from"./chrome.js";import{AdwBanner as s,BUTTON_CLICKED as st}from"./adw-banner.js";import{AdwBin as c}from"./adw-bin.js";import{CLOSE_ATTEMPT as ct,NOTIFY_OPEN as lt,SHEET_CLOSE as ut}from"./bottom-sheet-state.js";import{SHEET_CONTENT_BOTTOM_GAP as dt,bottomSheetInsetPadding as ft}from"./bottom-sheet-insets.js";import{attachRowPressFeedback as pt}from"./row-press.js";import{AdwBottomSheet as l,bottomSheetPanel as mt}from"./adw-bottom-sheet.js";import{AdwButtonContent as u}from"./adw-button-content.js";import{AdwButtonRow as d}from"./adw-button-row.js";import{CarouselScrollSync as ht,DEFAULT_CAROUSEL_PAGE_WIDTH as gt,applyMarkerClasses as _t,carouselDotClasses as vt,carouselNotifyPayload as yt,carouselPositionAtOffset as bt,carouselScrollOffset as xt,createCarouselState as St,indicatorMarkerClasses as Ct,normalizeCarouselPageWidth as wt}from"./carousel-state.js";import{AdwCarousel as f,NOTIFY_N_PAGES as Tt,NOTIFY_POSITION as Et,PAGE_CHANGED as Dt}from"./adw-carousel.js";import{AdwCarouselIndicatorDots as p}from"./adw-carousel-indicator-dots.js";import{AdwCarouselIndicatorLines as m}from"./adw-carousel-indicator-lines.js";import{AdwClamp as h}from"./adw-clamp.js";import{AdwComboRow as g,ComboState as Ot,NOTIFY_SELECTED as kt}from"./adw-combo-row.js";import{ADW_DIALOG_CLASS as At,ADW_DIALOG_CLOSED as jt,ADW_DIALOG_CLOSE_ATTEMPT as Mt,AdwDialog as _}from"./adw-dialog.js";import{AdwImageButton as v,DEFAULT_ICON_BUTTON_ICON_SIZE as Nt}from"./adw-image-button.js";import{AdwEntryRow as y,NOTIFY_ACTIVATES_DEFAULT as Pt,NOTIFY_EDITABLE as Ft,NOTIFY_MAX_LENGTH as It,NOTIFY_SHOW_APPLY_BUTTON as Lt,NOTIFY_TEXT as Rt,NOTIFY_TEXT_LENGTH as zt,SIGNAL_APPLY as Bt,SIGNAL_ENTRY_ACTIVATED as Vt}from"./adw-entry-row.js";import{AdwExpanderRow as b,NOTIFY_ENABLE_EXPANSION as Ht,NOTIFY_EXPANDED as Ut,NOTIFY_SHOW_ENABLE_SWITCH as Wt,NS_EXPANDER_ARROW_DISABLED_OPACITY as Gt}from"./adw-expander-row.js";import{AdwWindowTitle as x}from"./adw-window-title.js";import{AdwHeaderBar as S}from"./adw-header-bar.js";import{AdwViewStackPage as Kt}from"./view-stack-page.js";import{AdwViewStack as C,NOTIFY_VISIBLE_CHILD as qt}from"./adw-view-stack.js";import{AdwViewSwitcherBase as Jt,NOTIFY_SELECTED as Yt}from"./view-switcher-base.js";import{AdwInlineViewSwitcher as w}from"./adw-inline-view-switcher.js";import{NsNavigationSplitViewState as Xt,NsOverlaySplitViewState as Zt,splitViewColumns as Qt}from"./split-view-state.js";import{AdwSplitViewBase as $t,NOTIFY_SHOW_SIDEBAR as en}from"./split-view-base.js";import{AdwNavigationSplitView as T}from"./adw-navigation-split-view.js";import{AdwNavigationPage as E}from"./adw-navigation-page.js";import{NOTIFY_VISIBLE_PAGE as tn}from"./navigation-stack.js";import{AdwNavigationView as D}from"./adw-navigation-view.js";import{AdwOverlaySplitView as O}from"./adw-overlay-split-view.js";import{AdwPasswordEntryRow as k}from"./adw-password-entry-row.js";import{AdwPreferencesDialog as A,CLOSED as nn}from"./adw-preferences-dialog.js";import{AdwPreferencesGroup as j}from"./adw-preferences-group.js";import{AdwPreferencesPage as M}from"./adw-preferences-page.js";import{SHORTCUT_LABEL_CAP_TEXT_CLASS as rn,SHORTCUT_LABEL_CLASS as an,SHORTCUT_LABEL_DIMMED_CLASS as on,SHORTCUT_LABEL_DISABLED_CLASS as sn,SHORTCUT_LABEL_KEYCAP_CLASS as cn,SHORTCUT_LABEL_KEYS_CLASS as ln,SHORTCUT_LABEL_SIDE_CLASS as un,SHORTCUT_LABEL_SPACED_CLASS as dn,shortcutLabelDirection as fn,shortcutLabelPlatform as pn,shortcutLabelRenderPlan as mn}from"./shortcut-label.js";import{AdwShortcutLabel as N}from"./adw-shortcut-label.js";import{AdwSidebarItem as hn,AdwSidebarSection as gn}from"../values/sidebar.js";import{AdwSidebar as P,NOTIFY_SELECTED as _n}from"./adw-sidebar.js";import{AdwSpinRow as F,NOTIFY_VALUE as vn,SpinState as yn}from"./adw-spin-row.js";import{AdwSpinner as I}from"./adw-spinner.js";import{GROUP_DIVIDER_API as bn,assertPopupMenuAssignable as xn,fillPopupMenu as Sn,openPopupMenu as Cn,refuseMenuString as wn}from"./popup-menu.js";import{showMenuPopup as Tn}from"./popup-menu-view.js";import{DEFAULT_SCROLLBAR_POLICY as En,GTK_POLICY_TYPES as Dn,normalizePolicy as On,policyScrolls as kn,scrollOrientationFor as An}from"./scrolled-window-policy.js";import{AdwSplitButton as L,CLICKED as jn,MENU_TAPPED as Mn}from"./adw-split-button.js";import{AdwStatusPage as R}from"./adw-status-page.js";import{AdwSwitchRow as z,NOTIFY_ACTIVE as Nn}from"./adw-switch-row.js";import{AdwTabPage as Pn}from"../values/tab-page.js";import{applyTabViewVisibility as Fn,createTabViewState as In,tabBarVisibility as Ln,tabCloseVisibilities as Rn,tabLabelText as zn,tabPageVisibilities as Bn,tabTooltipText as Vn,tabViewNotifyPayload as Hn}from"./tab-view-state.js";import{AdwTabView as B,CLOSE_PAGE as Un,NOTIFY_SELECTED_PAGE as Wn,PAGES_CHANGED as Gn}from"./adw-tab-view.js";import{AdwToast as Kn,AdwToastOverlay as V,AdwToastQueue as qn,DEFAULT_TOAST_TIMEOUT as Jn}from"./adw-toast-overlay.js";import{AdwToggle as Yn}from"./adw-toggle.js";import{AdwToggleGroup as H,NOTIFY_SELECTED as Xn,ToggleGroupState as Zn}from"./adw-toggle-group.js";import{WINDOW_BACKGROUND as Qn,configureSystemBars as $n,systemBarsConfig as er}from"./system-bars.js";import{AdwToolbarView as U}from"./adw-toolbar-view.js";import{AdwViewSwitcher as W}from"./adw-view-switcher.js";import{AdwViewSwitcherBar as G}from"./adw-view-switcher-bar.js";import{AdwWindow as K}from"./adw-window.js";import{AdwWrapBox as q}from"./adw-wrap-box.js";import{ADWAITA_NS_ACCENT_RULES as tr,adwaitaNsAccentColor as nr,adwaitaNsAccentCss as rr}from"./accent-theme.js";import{applyAdwaitaNsAccent as ir,clearAdwaitaNsAccent as ar}from"./adw-accent.js";import{GtkActionBar as J}from"./gtk-action-bar.js";import{DEFAULT_BOX_SPACING as or,boxChildTrack as sr,boxSpacingChanges as cr,boxTrackPlan as lr,normalizeBoxSpacing as ur}from"./box-layout.js";import{GtkBox as Y}from"./gtk-box.js";import{buttonSlotAfterWrite as dr,buttonSlotDetaches as fr}from"./button-slot.js";import{GTK_BUTTON_CLICKED as pr,GTK_BUTTON_LABEL_CLASS as mr,GtkButton as X}from"./gtk-button.js";import{GtkDropDown as Z,NOTIFY_SELECTED as hr}from"./gtk-drop-down.js";import{GTK_CHECK_BUTTON_ACTIVATE as gr,GTK_CHECK_BUTTON_CHECKED_CLASS as _r,GTK_CHECK_BUTTON_INCONSISTENT_CLASS as vr,GTK_CHECK_BUTTON_TOGGLED as yr,GtkCheckButton as Q,NOTIFY_CHECK_ACTIVE as br}from"./gtk-check-button.js";import{DRAWING_AREA_REFUSAL as xr,GtkDrawingArea as $}from"./gtk-drawing-area.js";import{ACTIVATE as Sr,GtkEntry as Cr,NOTIFY_TEXT as wr}from"./gtk-entry.js";import{gridChildAt as Tr,gridGap as Er,gridSpacing as Dr,gridTrackCounts as Or}from"./grid-state.js";import{GtkGrid as kr}from"./gtk-grid.js";import{GtkFrame as Ar}from"./gtk-frame.js";import{GtkLabel as jr}from"./gtk-label.js";import{DEFAULT_LIST_SELECTION_MODE as Mr,GTK_SELECTION_MODES as Nr,selectionAfterModeChange as Pr,selectionAfterTap as Fr,selectionMode as Ir}from"./list-box-state.js";import{GtkListBox as Lr,LIST_BOX_ROW_ACTIVATED as Rr,LIST_BOX_ROW_SELECTED as zr,LIST_ROW_SELECTED_CLASS as Br}from"./gtk-list-box.js";import{GtkMenuButton as Vr,MENU_ITEM_ACTIVATED as Hr}from"./gtk-menu-button.js";import{GtkPopoverMenu as Ur}from"./gtk-popover-menu.js";import{GtkOverlay as Wr}from"./gtk-overlay.js";import{revealerChildVisibility as Gr}from"./revealer-state.js";import{GtkRevealer as Kr,NOTIFY_REVEAL_CHILD as qr}from"./gtk-revealer.js";import{GtkScrolledWindow as Jr}from"./gtk-scrolled-window.js";import{GtkApplicationWindow as Yr}from"./gtk-application-window.js";import{GtkSeparator as Xr}from"./gtk-separator.js";import{GtkStackPage as Zr}from"./stack-page.js";import{GtkStack as Qr,NOTIFY_STACK_VISIBLE_CHILD as $r,NOTIFY_STACK_VISIBLE_CHILD_NAME as ei}from"./gtk-stack.js";import{GTK_WRAP_MODES as ti,GtkTextView as ni,NOTIFY_TEXT_VIEW_TEXT as ri}from"./gtk-text-view.js";import{GTK_TOGGLE_BUTTON_CHECKED_CLASS as ii,GTK_TOGGLE_BUTTON_TOGGLED as ai,GtkToggleButton as oi,NOTIFY_TOGGLE_ACTIVE as si}from"./gtk-toggle-button.js";import{AdwSliderRow as ci,NOTIFY_SLIDER_VALUE as li}from"./adw-slider-row.js";import{DATA_GRID_HEADER_CELL_CLASS as ui,DATA_GRID_HEADER_ROW_CLASS as di,DATA_GRID_SECTION_CELL_CLASS as fi,dataGridCellClass as pi,dataGridItemSpec as mi,dataGridRowClass as hi,dataGridShapeKey as gi,dataGridTracksKey as _i,parseDataGridWidth as vi}from"./data-grid-model.js";import{AdwDataGrid as yi,ROW_ACTIVATED as bi}from"./adw-data-grid.js";import{padForSystemInsets as xi,padSheetForSystemInsets as Si}from"./system-insets.js";import{labelDisplayText as Ci,labelMarkupIsUnparseable as wi}from"@gjsify/adwaita-core";const Ti={AdwPreferencesPage:M,AdwPreferencesGroup:j,AdwActionRow:r,AdwSwitchRow:z,AdwEntryRow:y,AdwPasswordEntryRow:k,GtkEntry:Cr,AdwComboRow:g,GtkDropDown:Z,AdwSpinRow:F,AdwSliderRow:ci,AdwExpanderRow:b,GtkButton:X,GtkBox:Y,GtkGrid:kr,GtkListBox:Lr,AdwWindow:K,AdwApplicationWindow:a,AdwDialog:_,GtkActionBar:J,AdwBin:c,GtkOverlay:Wr,GtkRevealer:Kr,GtkScrolledWindow:Jr,GtkWindow:i,GtkApplicationWindow:Yr,GtkStack:Qr,GtkToggleButton:oi,GtkCheckButton:Q,GtkDrawingArea:$,GtkFrame:Ar,GtkSeparator:Xr,GtkTextView:ni,GtkLabel:jr,AdwImageButton:v,GtkMenuButton:Vr,GtkImage:t,AdwBanner:s,AdwAvatar:o,AdwWindowTitle:x,AdwClamp:h,AdwHeaderBar:S,AdwToolbarView:U,AdwWrapBox:q,AdwDataGrid:yi,AdwSpinner:I,AdwStatusPage:R,AdwButtonRow:d,AdwButtonContent:u,AdwSplitButton:L,AdwToggleGroup:H,AdwShortcutLabel:N,AdwViewStack:C,AdwViewSwitcher:W,AdwViewSwitcherBar:G,AdwInlineViewSwitcher:w,AdwTabView:B,AdwCarousel:f,AdwCarouselIndicatorDots:p,AdwCarouselIndicatorLines:m,AdwNavigationPage:E,AdwNavigationView:D,AdwNavigationSplitView:T,AdwOverlaySplitView:O,AdwSidebar:P,AdwBottomSheet:l,AdwToastOverlay:V,AdwAboutDialog:n,AdwPreferencesDialog:A};let Ei=!1;function registerAdwaitaElements(){if(!Ei&&typeof registerElement==`function`){for(let[ee,e]of Object.entries(Ti))registerElement(ee,()=>e);Ei=!0}}export{Xe as ABOUT_CLOSED,Ze as ACTIVATED,Oe as ADWAITA_ICON_GRID,tr as ADWAITA_NS_ACCENT_RULES,At as ADW_DIALOG_CLASS,jt as ADW_DIALOG_CLOSED,Mt as ADW_DIALOG_CLOSE_ATTEMPT,Ge as ADW_DIALOG_PRESENTATION_MODES,et as ADW_WINDOW_CLASS,rt as AVATAR_DEFAULT_ICON,n as AdwAboutDialog,r as AdwActionRow,Qe as AdwAlertDialog,$e as AdwAlertResponses,a as AdwApplicationWindow,o as AdwAvatar,s as AdwBanner,c as AdwBin,l as AdwBottomSheet,ee as AdwBreakpoint,u as AdwButtonContent,d as AdwButtonRow,f as AdwCarousel,p as AdwCarouselIndicatorDots,m as AdwCarouselIndicatorLines,h as AdwClamp,g as AdwComboRow,yi as AdwDataGrid,_ as AdwDialog,y as AdwEntryRow,b as AdwExpanderRow,S as AdwHeaderBar,v as AdwImageButton,w as AdwInlineViewSwitcher,E as AdwNavigationPage,T as AdwNavigationSplitView,D as AdwNavigationView,O as AdwOverlaySplitView,k as AdwPasswordEntryRow,A as AdwPreferencesDialog,j as AdwPreferencesGroup,M as AdwPreferencesPage,N as AdwShortcutLabel,P as AdwSidebar,hn as AdwSidebarItem,gn as AdwSidebarSection,ci as AdwSliderRow,F as AdwSpinRow,I as AdwSpinner,L as AdwSplitButton,$t as AdwSplitViewBase,R as AdwStatusPage,z as AdwSwitchRow,Pn as AdwTabPage,B as AdwTabView,Kn as AdwToast,V as AdwToastOverlay,qn as AdwToastQueue,Yn as AdwToggle,H as AdwToggleGroup,U as AdwToolbarView,C as AdwViewStack,Kt as AdwViewStackPage,W as AdwViewSwitcher,G as AdwViewSwitcherBar,Jt as AdwViewSwitcherBase,K as AdwWindow,tt as AdwWindowBase,x as AdwWindowTitle,q as AdwWrapBox,st as BUTTON_CLICKED,jn as CLICKED,ct as CLOSE_ATTEMPT,Un as CLOSE_PAGE,ht as CarouselScrollSync,Ot as ComboState,ui as DATA_GRID_HEADER_CELL_CLASS,di as DATA_GRID_HEADER_ROW_CLASS,fi as DATA_GRID_SECTION_CELL_CLASS,it as DEFAULT_AVATAR_SIZE,or as DEFAULT_BOX_SPACING,gt as DEFAULT_CAROUSEL_PAGE_WIDTH,at as DEFAULT_CLAMP_MAX_SIZE,Ke as DEFAULT_DIALOG_PRESENTATION_MODE,ze as DEFAULT_GTK_IMAGE_SIZE,Nt as DEFAULT_ICON_BUTTON_ICON_SIZE,ke as DEFAULT_ICON_COLOR,Ae as DEFAULT_ICON_COLOR_DARK,oe as DEFAULT_ICON_PIXEL_SIZE,Mr as DEFAULT_LIST_SELECTION_MODE,Be as DEFAULT_REVEALER_TRANSITION_DURATION,En as DEFAULT_SCROLLBAR_POLICY,ot as DEFAULT_SPINNER_SIZE,Ve as DEFAULT_STACK_TRANSITION_DURATION,Jn as DEFAULT_TOAST_TIMEOUT,xr as DRAWING_AREA_REFUSAL,Sr as ENTRY_ACTIVATE,bn as GROUP_DIVIDER_API,ae as GTK_ALIGN,pr as GTK_BUTTON_CLICKED,mr as GTK_BUTTON_LABEL_CLASS,gr as GTK_CHECK_BUTTON_ACTIVATE,_r as GTK_CHECK_BUTTON_CHECKED_CLASS,vr as GTK_CHECK_BUTTON_INCONSISTENT_CLASS,yr as GTK_CHECK_BUTTON_TOGGLED,se as GTK_ICON_SIZE_NICKS,ce as GTK_ICON_SIZE_PIXELS,Dn as GTK_POLICY_TYPES,He as GTK_REVEALER_TRANSITIONS,Nr as GTK_SELECTION_MODES,Ue as GTK_STACK_TRANSITIONS,ii as GTK_TOGGLE_BUTTON_CHECKED_CLASS,ai as GTK_TOGGLE_BUTTON_TOGGLED,ti as GTK_WRAP_MODES,J as GtkActionBar,Yr as GtkApplicationWindow,Y as GtkBox,X as GtkButton,Q as GtkCheckButton,$ as GtkDrawingArea,Z as GtkDropDown,Cr as GtkEntry,Ar as GtkFrame,kr as GtkGrid,t as GtkImage,jr as GtkLabel,Lr as GtkListBox,Vr as GtkMenuButton,Wr as GtkOverlay,Ur as GtkPopoverMenu,Kr as GtkRevealer,Jr as GtkScrolledWindow,Xr as GtkSeparator,Qr as GtkStack,Zr as GtkStackPage,ni as GtkTextView,oi as GtkToggleButton,i as GtkWindow,Ne as ICON_FALLBACK_NAME,Rr as LIST_BOX_ROW_ACTIVATED,zr as LIST_BOX_ROW_SELECTED,Br as LIST_ROW_SELECTED_CLASS,Hr as MENU_ITEM_ACTIVATED,Mn as MENU_TAPPED,Pt as NOTIFY_ACTIVATES_DEFAULT,Nn as NOTIFY_ACTIVE,br as NOTIFY_CHECK_ACTIVE,hr as NOTIFY_DROP_DOWN_SELECTED,Ft as NOTIFY_EDITABLE,Ht as NOTIFY_ENABLE_EXPANSION,wr as NOTIFY_ENTRY_TEXT,Ut as NOTIFY_EXPANDED,ye as NOTIFY_HEXPAND,It as NOTIFY_MAX_LENGTH,Tt as NOTIFY_N_PAGES,lt as NOTIFY_OPEN,Et as NOTIFY_POSITION,qr as NOTIFY_REVEAL_CHILD,kt as NOTIFY_SELECTED,Wn as NOTIFY_SELECTED_PAGE,Lt as NOTIFY_SHOW_APPLY_BUTTON,Wt as NOTIFY_SHOW_ENABLE_SWITCH,en as NOTIFY_SHOW_SIDEBAR,_n as NOTIFY_SIDEBAR_SELECTED,li as NOTIFY_SLIDER_VALUE,$r as NOTIFY_STACK_VISIBLE_CHILD,ei as NOTIFY_STACK_VISIBLE_CHILD_NAME,Rt as NOTIFY_TEXT,zt as NOTIFY_TEXT_LENGTH,ri as NOTIFY_TEXT_VIEW_TEXT,si as NOTIFY_TOGGLE_ACTIVE,Xn as NOTIFY_TOGGLE_SELECTED,vn as NOTIFY_VALUE,be as NOTIFY_VEXPAND,Yt as NOTIFY_VIEW_SELECTED,qt as NOTIFY_VISIBLE_CHILD,tn as NOTIFY_VISIBLE_PAGE,Gt as NS_EXPANDER_ARROW_DISABLED_OPACITY,Xt as NsNavigationSplitViewState,Zt as NsOverlaySplitViewState,Gn as PAGES_CHANGED,Dt as PAGE_CHANGED,le as PIXEL_SIZE_UNSET,nn as PREFERENCES_CLOSED,bi as ROW_ACTIVATED,ut as SHEET_CLOSE,dt as SHEET_CONTENT_BOTTOM_GAP,rn as SHORTCUT_LABEL_CAP_TEXT_CLASS,an as SHORTCUT_LABEL_CLASS,on as SHORTCUT_LABEL_DIMMED_CLASS,sn as SHORTCUT_LABEL_DISABLED_CLASS,cn as SHORTCUT_LABEL_KEYCAP_CLASS,ln as SHORTCUT_LABEL_KEYS_CLASS,un as SHORTCUT_LABEL_SIDE_CLASS,dn as SHORTCUT_LABEL_SPACED_CLASS,Bt as SIGNAL_APPLY,Vt as SIGNAL_ENTRY_ACTIVATED,me as SimpleAction,he as SimpleActionGroup,yn as SpinState,Zn as ToggleGroupState,Qn as WINDOW_BACKGROUND,ge as activateWidgetAction,e as addBreakpoints,Se as adwaitaColorScheme,nr as adwaitaNsAccentColor,rr as adwaitaNsAccentCss,ir as applyAdwaitaNsAccent,de as applyConstructProps,_t as applyMarkerClasses,Fn as applyTabViewVisibility,xn as assertPopupMenuAssignable,pt as attachRowPressFeedback,nt as avatarInitials,ft as bottomSheetInsetPadding,mt as bottomSheetPanel,sr as boxChildTrack,cr as boxSpacingChanges,lr as boxTrackPlan,dr as buttonSlotAfterWrite,fr as buttonSlotDetaches,vt as carouselDotClasses,yt as carouselNotifyPayload,bt as carouselPositionAtOffset,xt as carouselScrollOffset,ar as clearAdwaitaNsAccent,Pe as compiledIconNames,$n as configureSystemBars,St as createCarouselState,In as createTabViewState,pi as dataGridCellClass,mi as dataGridItemSpec,hi as dataGridRowClass,gi as dataGridShapeKey,_i as dataGridTracksKey,qe as dialogPresentationMode,te as evaluateBreakpointCondition,je as extractIconPaths,Me as extractPathData,Sn as fillPopupMenu,_e as findActionGroup,Je as findDialogHost,Tr as gridChildAt,Er as gridGap,Dr as gridSpacing,Or as gridTrackCounts,Fe as iconValueKind,Ct as indicatorMarkerClasses,ve as insertActionGroup,ue as isGtkIconSizeNick,Ie as isIconAvailable,Ce as isThemeIconColor,Ci as labelDisplayText,wi as labelMarkupIsUnparseable,pe as lengthValue,ur as normalizeBoxSpacing,wt as normalizeCarouselPageWidth,On as normalizePolicy,fe as nsAlignment,ne as observeViewSize,re as observeWindowSize,we as onAdwaitaColorSchemeChanged,Cn as openPopupMenu,xi as padForSystemInsets,Si as padSheetForSystemInsets,ie as parseBreakpointCondition,vi as parseDataGridWidth,kn as policyScrolls,wn as refuseMenuString,registerAdwaitaElements,Re as renderSymbolicIcon,Le as resolveIconSource,Gr as revealerChildVisibility,An as scrollOrientationFor,Pr as selectionAfterModeChange,Fr as selectionAfterTap,Ir as selectionMode,Te as setAdwaitaColorScheme,fn as shortcutLabelDirection,pn as shortcutLabelPlatform,mn as shortcutLabelRenderPlan,Tn as showMenuPopup,Qt as splitViewColumns,Ye as surfaceSize,er as systemBarsConfig,Ln as tabBarVisibility,Rn as tabCloseVisibilities,zn as tabLabelText,Bn as tabPageVisibilities,Vn as tabTooltipText,Hn as tabViewNotifyPayload,Ee as themeIconColor,De as toggleAdwaitaColorScheme,We as transitionNick,xe as withGtkWidgetLayout};
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{AdwBreakpoint as ee,addBreakpoints as e,evaluateBreakpointCondition as te,observeViewSize as ne,observeWindowSize as re,parseBreakpointCondition as ie}from"./breakpoint.js";import{GTK_ALIGN as ae}from"./gtk-align.js";import{DEFAULT_ICON_PIXEL_SIZE as oe,GTK_ICON_SIZE_NICKS as se,GTK_ICON_SIZE_PIXELS as ce,PIXEL_SIZE_UNSET as le,isGtkIconSizeNick as ue}from"./gtk-icon-size.js";import{applyConstructProps as de,nsAlignment as fe}from"./construct-props.js";import{lengthValue as pe}from"./ns-length.js";import{SimpleAction as me,SimpleActionGroup as he,activateWidgetAction as ge,findActionGroup as _e,insertActionGroup as ve}from"./actions.js";import{NOTIFY_HEXPAND as ye,NOTIFY_VEXPAND as be,withGtkWidgetLayout as xe}from"./widget-layout.js";import{adwaitaColorScheme as Se,isThemeIconColor as Ce,onAdwaitaColorSchemeChanged as we,setAdwaitaColorScheme as Te,themeIconColor as Ee,toggleAdwaitaColorScheme as De}from"./color-scheme.js";import{ADWAITA_ICON_GRID as Oe,DEFAULT_ICON_COLOR as ke,DEFAULT_ICON_COLOR_DARK as Ae,extractIconPaths as je,extractPathData as Me}from"./icon-path.js";import{ICON_FALLBACK_NAME as Ne,compiledIconNames as Pe,iconValueKind as Fe,isIconAvailable as Ie,resolveIconSource as Le}from"./icon-theme.js";import{renderSymbolicIcon as Re}from"./icons.js";import{DEFAULT_GTK_IMAGE_SIZE as ze,GtkImage as t}from"./gtk-image.js";import{DEFAULT_REVEALER_TRANSITION_DURATION as Be,DEFAULT_STACK_TRANSITION_DURATION as Ve,GTK_REVEALER_TRANSITIONS as He,GTK_STACK_TRANSITIONS as Ue,transitionNick as We}from"./transition-type.js";import{ADW_DIALOG_PRESENTATION_MODES as Ge,DEFAULT_DIALOG_PRESENTATION_MODE as Ke,dialogPresentationMode as qe,findDialogHost as Je,surfaceSize as Ye}from"./window-state.js";import{AdwAboutDialog as n,CLOSED as Xe}from"./adw-about-dialog.js";import{ACTIVATED as Ze,AdwActionRow as r}from"./adw-action-row.js";import{AdwAlertDialog as Qe,AdwAlertResponses as $e}from"./adw-alert-dialog.js";import{CLOSE_ATTEMPT as et,NOTIFY_OPEN as tt,SHEET_CLOSE as nt}from"./bottom-sheet-state.js";import{SHEET_CONTENT_BOTTOM_GAP as rt,bottomSheetInsetPadding as it}from"./bottom-sheet-insets.js";import{attachRowPressFeedback as at}from"./row-press.js";import{AdwBottomSheet as i,bottomSheetPanel as ot}from"./adw-bottom-sheet.js";import{GtkWindow as a}from"./gtk-window.js";import{ADW_WINDOW_CLASS as st,AdwWindowBase as ct}from"./window-base.js";import{AdwApplicationWindow as o}from"./adw-application-window.js";import{avatarInitials as lt}from"./avatar-color.js";import{AVATAR_DEFAULT_ICON as ut}from"./avatar-view.js";import{AdwAvatar as s,DEFAULT_AVATAR_SIZE as dt}from"./adw-avatar.js";import{DEFAULT_CLAMP_MAX_SIZE as ft,DEFAULT_SPINNER_SIZE as pt}from"./chrome.js";import{AdwBanner as c,BUTTON_CLICKED as mt}from"./adw-banner.js";import{AdwBin as l}from"./adw-bin.js";import{AdwButtonContent as u,NOTIFY_BUTTON_CONTENT_CAN_SHRINK as ht,NOTIFY_BUTTON_CONTENT_ICON_NAME as gt,NOTIFY_BUTTON_CONTENT_LABEL as _t,NOTIFY_BUTTON_CONTENT_USE_UNDERLINE as vt}from"./adw-button-content.js";import{AdwButtonRow as d}from"./adw-button-row.js";import{CarouselScrollSync as yt,DEFAULT_CAROUSEL_PAGE_WIDTH as bt,applyMarkerClasses as xt,carouselDotClasses as St,carouselNotifyPayload as Ct,carouselPositionAtOffset as wt,carouselScrollOffset as Tt,createCarouselState as Et,indicatorMarkerClasses as Dt,normalizeCarouselPageWidth as Ot}from"./carousel-state.js";import{AdwCarousel as f,NOTIFY_N_PAGES as kt,NOTIFY_POSITION as At,PAGE_CHANGED as jt}from"./adw-carousel.js";import{AdwCarouselIndicatorDots as p}from"./adw-carousel-indicator-dots.js";import{AdwCarouselIndicatorLines as m}from"./adw-carousel-indicator-lines.js";import{AdwClamp as h}from"./adw-clamp.js";import{AdwComboRow as g,ComboState as Mt,NOTIFY_SELECTED as Nt}from"./adw-combo-row.js";import{ADW_DIALOG_CLASS as Pt,ADW_DIALOG_CLOSED as Ft,ADW_DIALOG_CLOSE_ATTEMPT as It,AdwDialog as _}from"./adw-dialog.js";import{AdwImageButton as v,DEFAULT_ICON_BUTTON_ICON_SIZE as Lt}from"./adw-image-button.js";import{AdwEntryRow as y,NOTIFY_ACTIVATES_DEFAULT as Rt,NOTIFY_EDITABLE as zt,NOTIFY_MAX_LENGTH as Bt,NOTIFY_SHOW_APPLY_BUTTON as Vt,NOTIFY_TEXT as Ht,NOTIFY_TEXT_LENGTH as Ut,SIGNAL_APPLY as Wt,SIGNAL_ENTRY_ACTIVATED as Gt}from"./adw-entry-row.js";import{AdwExpanderRow as b,NOTIFY_ENABLE_EXPANSION as Kt,NOTIFY_EXPANDED as qt,NOTIFY_SHOW_ENABLE_SWITCH as Jt,NS_EXPANDER_ARROW_DISABLED_OPACITY as Yt}from"./adw-expander-row.js";import{AdwWindowTitle as x}from"./adw-window-title.js";import{AdwHeaderBar as S}from"./adw-header-bar.js";import{AdwViewStackPage as Xt}from"./view-stack-page.js";import{AdwViewStack as C,NOTIFY_VISIBLE_CHILD as Zt}from"./adw-view-stack.js";import{AdwViewSwitcherBase as Qt,NOTIFY_SELECTED as $t}from"./view-switcher-base.js";import{AdwInlineViewSwitcher as w}from"./adw-inline-view-switcher.js";import{NsNavigationSplitViewState as en,NsOverlaySplitViewState as tn,splitViewColumns as nn}from"./split-view-state.js";import{AdwSplitViewBase as rn,NOTIFY_SHOW_SIDEBAR as an}from"./split-view-base.js";import{AdwNavigationSplitView as T}from"./adw-navigation-split-view.js";import{AdwNavigationPage as E}from"./adw-navigation-page.js";import{NOTIFY_VISIBLE_PAGE as on}from"./navigation-stack.js";import{AdwNavigationView as D}from"./adw-navigation-view.js";import{AdwOverlaySplitView as O}from"./adw-overlay-split-view.js";import{AdwPasswordEntryRow as k}from"./adw-password-entry-row.js";import{AdwPreferencesDialog as A,CLOSED as sn}from"./adw-preferences-dialog.js";import{AdwPreferencesGroup as j}from"./adw-preferences-group.js";import{AdwPreferencesPage as M}from"./adw-preferences-page.js";import{SHORTCUT_LABEL_CAP_TEXT_CLASS as cn,SHORTCUT_LABEL_CLASS as ln,SHORTCUT_LABEL_DIMMED_CLASS as un,SHORTCUT_LABEL_DISABLED_CLASS as dn,SHORTCUT_LABEL_KEYCAP_CLASS as fn,SHORTCUT_LABEL_KEYS_CLASS as pn,SHORTCUT_LABEL_SIDE_CLASS as mn,SHORTCUT_LABEL_SPACED_CLASS as hn,shortcutLabelDirection as gn,shortcutLabelPlatform as _n,shortcutLabelRenderPlan as vn}from"./shortcut-label.js";import{AdwShortcutLabel as N}from"./adw-shortcut-label.js";import{AdwSidebarItem as yn,AdwSidebarSection as bn}from"../values/sidebar.js";import{AdwSidebar as P,NOTIFY_SELECTED as xn}from"./adw-sidebar.js";import{AdwSpinRow as F,NOTIFY_VALUE as Sn,SpinState as Cn}from"./adw-spin-row.js";import{AdwSpinner as I}from"./adw-spinner.js";import{GROUP_DIVIDER_API as wn,assertPopupMenuAssignable as Tn,fillPopupMenu as En,openPopupMenu as Dn,refuseMenuString as On}from"./popup-menu.js";import{showMenuPopup as kn}from"./popup-menu-view.js";import{DEFAULT_SCROLLBAR_POLICY as An,GTK_POLICY_TYPES as jn,normalizePolicy as Mn,policyScrolls as Nn,scrollOrientationFor as Pn}from"./scrolled-window-policy.js";import{AdwSplitButton as L,MENU_TAPPED as Fn}from"./adw-split-button.js";import{AdwStatusPage as R}from"./adw-status-page.js";import{AdwSwitchRow as z,NOTIFY_ACTIVE as In}from"./adw-switch-row.js";import{AdwTabPage as Ln}from"../values/tab-page.js";import{applyTabViewVisibility as Rn,createTabViewState as zn,tabBarVisibility as Bn,tabCloseVisibilities as Vn,tabLabelText as Hn,tabPageVisibilities as Un,tabTooltipText as Wn,tabViewNotifyPayload as Gn}from"./tab-view-state.js";import{AdwTabView as B,CLOSE_PAGE as Kn,NOTIFY_SELECTED_PAGE as qn,PAGES_CHANGED as Jn}from"./adw-tab-view.js";import{AdwToast as Yn,AdwToastOverlay as V,AdwToastQueue as Xn,DEFAULT_TOAST_TIMEOUT as Zn}from"./adw-toast-overlay.js";import{AdwToggle as Qn}from"./adw-toggle.js";import{AdwToggleGroup as H,NOTIFY_SELECTED as $n,ToggleGroupState as er}from"./adw-toggle-group.js";import{WINDOW_BACKGROUND as tr,configureSystemBars as nr,systemBarsConfig as rr}from"./system-bars.js";import{AdwToolbarView as U}from"./adw-toolbar-view.js";import{AdwViewSwitcher as W}from"./adw-view-switcher.js";import{AdwViewSwitcherBar as G}from"./adw-view-switcher-bar.js";import{AdwWindow as K}from"./adw-window.js";import{AdwWrapBox as q}from"./adw-wrap-box.js";import{ADWAITA_NS_ACCENT_RULES as ir,adwaitaNsAccentColor as ar,adwaitaNsAccentCss as or}from"./accent-theme.js";import{applyAdwaitaNsAccent as sr,clearAdwaitaNsAccent as cr}from"./adw-accent.js";import{GtkActionBar as J}from"./gtk-action-bar.js";import{DEFAULT_BOX_SPACING as lr,boxChildTrack as ur,boxSpacingChanges as dr,boxTrackPlan as fr,normalizeBoxSpacing as pr}from"./box-layout.js";import{GtkBox as Y}from"./gtk-box.js";import{buttonSlotAfterWrite as mr,buttonSlotDetaches as hr}from"./button-slot.js";import{GTK_BUTTON_CLICKED as gr,GTK_BUTTON_LABEL_CLASS as _r,GtkButton as X}from"./gtk-button.js";import{GtkDropDown as Z,NOTIFY_SELECTED as vr}from"./gtk-drop-down.js";import{GTK_CHECK_BUTTON_ACTIVATE as yr,GTK_CHECK_BUTTON_CHECKED_CLASS as br,GTK_CHECK_BUTTON_INCONSISTENT_CLASS as xr,GTK_CHECK_BUTTON_TOGGLED as Sr,GtkCheckButton as Q,NOTIFY_CHECK_ACTIVE as Cr}from"./gtk-check-button.js";import{DRAWING_AREA_REFUSAL as wr,GtkDrawingArea as $}from"./gtk-drawing-area.js";import{ACTIVATE as Tr,GtkEntry as Er,NOTIFY_TEXT as Dr}from"./gtk-entry.js";import{gridChildAt as Or,gridGap as kr,gridSpacing as Ar,gridTrackCounts as jr}from"./grid-state.js";import{GtkGrid as Mr}from"./gtk-grid.js";import{GtkFrame as Nr}from"./gtk-frame.js";import{GtkLabel as Pr}from"./gtk-label.js";import{DEFAULT_LIST_SELECTION_MODE as Fr,GTK_SELECTION_MODES as Ir,selectionAfterModeChange as Lr,selectionAfterTap as Rr,selectionMode as zr}from"./list-box-state.js";import{GtkListBox as Br,LIST_BOX_ROW_ACTIVATED as Vr,LIST_BOX_ROW_SELECTED as Hr,LIST_ROW_SELECTED_CLASS as Ur}from"./gtk-list-box.js";import{GtkMenuButton as Wr,MENU_ITEM_ACTIVATED as Gr}from"./gtk-menu-button.js";import{GtkPopoverMenu as Kr}from"./gtk-popover-menu.js";import{GtkOverlay as qr}from"./gtk-overlay.js";import{revealerChildVisibility as Jr}from"./revealer-state.js";import{GtkRevealer as Yr,NOTIFY_REVEAL_CHILD as Xr}from"./gtk-revealer.js";import{GtkScrolledWindow as Zr}from"./gtk-scrolled-window.js";import{GtkApplicationWindow as Qr}from"./gtk-application-window.js";import{GtkSeparator as $r}from"./gtk-separator.js";import{GtkStackPage as ei}from"./stack-page.js";import{GtkStack as ti,NOTIFY_STACK_VISIBLE_CHILD as ni,NOTIFY_STACK_VISIBLE_CHILD_NAME as ri}from"./gtk-stack.js";import{GTK_WRAP_MODES as ii,GtkTextView as ai,NOTIFY_TEXT_VIEW_TEXT as oi}from"./gtk-text-view.js";import{GTK_TOGGLE_BUTTON_CHECKED_CLASS as si,GTK_TOGGLE_BUTTON_TOGGLED as ci,GtkToggleButton as li,NOTIFY_TOGGLE_ACTIVE as ui}from"./gtk-toggle-button.js";import{AdwSliderRow as di,NOTIFY_SLIDER_VALUE as fi}from"./adw-slider-row.js";import{DATA_GRID_HEADER_CELL_CLASS as pi,DATA_GRID_HEADER_ROW_CLASS as mi,DATA_GRID_SECTION_CELL_CLASS as hi,dataGridCellClass as gi,dataGridItemSpec as _i,dataGridRowClass as vi,dataGridShapeKey as yi,dataGridTracksKey as bi,parseDataGridWidth as xi}from"./data-grid-model.js";import{AdwDataGrid as Si,ROW_ACTIVATED as Ci}from"./adw-data-grid.js";import{padForSystemInsets as wi,padSheetForSystemInsets as Ti}from"./system-insets.js";import{labelDisplayText as Ei,labelMarkupIsUnparseable as Di}from"@gjsify/adwaita-core";const Oi={AdwPreferencesPage:M,AdwPreferencesGroup:j,AdwActionRow:r,AdwSwitchRow:z,AdwEntryRow:y,AdwPasswordEntryRow:k,GtkEntry:Er,AdwComboRow:g,GtkDropDown:Z,AdwSpinRow:F,AdwSliderRow:di,AdwExpanderRow:b,GtkButton:X,GtkBox:Y,GtkGrid:Mr,GtkListBox:Br,AdwWindow:K,AdwApplicationWindow:o,AdwDialog:_,GtkActionBar:J,AdwBin:l,GtkOverlay:qr,GtkRevealer:Yr,GtkScrolledWindow:Zr,GtkWindow:a,GtkApplicationWindow:Qr,GtkStack:ti,GtkToggleButton:li,GtkCheckButton:Q,GtkDrawingArea:$,GtkFrame:Nr,GtkSeparator:$r,GtkTextView:ai,GtkLabel:Pr,AdwImageButton:v,GtkMenuButton:Wr,GtkImage:t,AdwBanner:c,AdwAvatar:s,AdwWindowTitle:x,AdwClamp:h,AdwHeaderBar:S,AdwToolbarView:U,AdwWrapBox:q,AdwDataGrid:Si,AdwSpinner:I,AdwStatusPage:R,AdwButtonRow:d,AdwButtonContent:u,AdwSplitButton:L,AdwToggleGroup:H,AdwShortcutLabel:N,AdwViewStack:C,AdwViewSwitcher:W,AdwViewSwitcherBar:G,AdwInlineViewSwitcher:w,AdwTabView:B,AdwCarousel:f,AdwCarouselIndicatorDots:p,AdwCarouselIndicatorLines:m,AdwNavigationPage:E,AdwNavigationView:D,AdwNavigationSplitView:T,AdwOverlaySplitView:O,AdwSidebar:P,AdwBottomSheet:i,AdwToastOverlay:V,AdwAboutDialog:n,AdwPreferencesDialog:A};let ki=!1;function registerAdwaitaElements(){if(!ki&&typeof registerElement==`function`){for(let[ee,e]of Object.entries(Oi))registerElement(ee,()=>e);ki=!0}}export{Xe as ABOUT_CLOSED,Ze as ACTIVATED,Oe as ADWAITA_ICON_GRID,ir as ADWAITA_NS_ACCENT_RULES,Pt as ADW_DIALOG_CLASS,Ft as ADW_DIALOG_CLOSED,It as ADW_DIALOG_CLOSE_ATTEMPT,Ge as ADW_DIALOG_PRESENTATION_MODES,st as ADW_WINDOW_CLASS,ut as AVATAR_DEFAULT_ICON,n as AdwAboutDialog,r as AdwActionRow,Qe as AdwAlertDialog,$e as AdwAlertResponses,o as AdwApplicationWindow,s as AdwAvatar,c as AdwBanner,l as AdwBin,i as AdwBottomSheet,ee as AdwBreakpoint,u as AdwButtonContent,d as AdwButtonRow,f as AdwCarousel,p as AdwCarouselIndicatorDots,m as AdwCarouselIndicatorLines,h as AdwClamp,g as AdwComboRow,Si as AdwDataGrid,_ as AdwDialog,y as AdwEntryRow,b as AdwExpanderRow,S as AdwHeaderBar,v as AdwImageButton,w as AdwInlineViewSwitcher,E as AdwNavigationPage,T as AdwNavigationSplitView,D as AdwNavigationView,O as AdwOverlaySplitView,k as AdwPasswordEntryRow,A as AdwPreferencesDialog,j as AdwPreferencesGroup,M as AdwPreferencesPage,N as AdwShortcutLabel,P as AdwSidebar,yn as AdwSidebarItem,bn as AdwSidebarSection,di as AdwSliderRow,F as AdwSpinRow,I as AdwSpinner,L as AdwSplitButton,rn as AdwSplitViewBase,R as AdwStatusPage,z as AdwSwitchRow,Ln as AdwTabPage,B as AdwTabView,Yn as AdwToast,V as AdwToastOverlay,Xn as AdwToastQueue,Qn as AdwToggle,H as AdwToggleGroup,U as AdwToolbarView,C as AdwViewStack,Xt as AdwViewStackPage,W as AdwViewSwitcher,G as AdwViewSwitcherBar,Qt as AdwViewSwitcherBase,K as AdwWindow,ct as AdwWindowBase,x as AdwWindowTitle,q as AdwWrapBox,mt as BUTTON_CLICKED,et as CLOSE_ATTEMPT,Kn as CLOSE_PAGE,yt as CarouselScrollSync,Mt as ComboState,pi as DATA_GRID_HEADER_CELL_CLASS,mi as DATA_GRID_HEADER_ROW_CLASS,hi as DATA_GRID_SECTION_CELL_CLASS,dt as DEFAULT_AVATAR_SIZE,lr as DEFAULT_BOX_SPACING,bt as DEFAULT_CAROUSEL_PAGE_WIDTH,ft as DEFAULT_CLAMP_MAX_SIZE,Ke as DEFAULT_DIALOG_PRESENTATION_MODE,ze as DEFAULT_GTK_IMAGE_SIZE,Lt as DEFAULT_ICON_BUTTON_ICON_SIZE,ke as DEFAULT_ICON_COLOR,Ae as DEFAULT_ICON_COLOR_DARK,oe as DEFAULT_ICON_PIXEL_SIZE,Fr as DEFAULT_LIST_SELECTION_MODE,Be as DEFAULT_REVEALER_TRANSITION_DURATION,An as DEFAULT_SCROLLBAR_POLICY,pt as DEFAULT_SPINNER_SIZE,Ve as DEFAULT_STACK_TRANSITION_DURATION,Zn as DEFAULT_TOAST_TIMEOUT,wr as DRAWING_AREA_REFUSAL,Tr as ENTRY_ACTIVATE,wn as GROUP_DIVIDER_API,ae as GTK_ALIGN,gr as GTK_BUTTON_CLICKED,_r as GTK_BUTTON_LABEL_CLASS,yr as GTK_CHECK_BUTTON_ACTIVATE,br as GTK_CHECK_BUTTON_CHECKED_CLASS,xr as GTK_CHECK_BUTTON_INCONSISTENT_CLASS,Sr as GTK_CHECK_BUTTON_TOGGLED,se as GTK_ICON_SIZE_NICKS,ce as GTK_ICON_SIZE_PIXELS,jn as GTK_POLICY_TYPES,He as GTK_REVEALER_TRANSITIONS,Ir as GTK_SELECTION_MODES,Ue as GTK_STACK_TRANSITIONS,si as GTK_TOGGLE_BUTTON_CHECKED_CLASS,ci as GTK_TOGGLE_BUTTON_TOGGLED,ii as GTK_WRAP_MODES,J as GtkActionBar,Qr as GtkApplicationWindow,Y as GtkBox,X as GtkButton,Q as GtkCheckButton,$ as GtkDrawingArea,Z as GtkDropDown,Er as GtkEntry,Nr as GtkFrame,Mr as GtkGrid,t as GtkImage,Pr as GtkLabel,Br as GtkListBox,Wr as GtkMenuButton,qr as GtkOverlay,Kr as GtkPopoverMenu,Yr as GtkRevealer,Zr as GtkScrolledWindow,$r as GtkSeparator,ti as GtkStack,ei as GtkStackPage,ai as GtkTextView,li as GtkToggleButton,a as GtkWindow,Ne as ICON_FALLBACK_NAME,Vr as LIST_BOX_ROW_ACTIVATED,Hr as LIST_BOX_ROW_SELECTED,Ur as LIST_ROW_SELECTED_CLASS,Gr as MENU_ITEM_ACTIVATED,Fn as MENU_TAPPED,Rt as NOTIFY_ACTIVATES_DEFAULT,In as NOTIFY_ACTIVE,ht as NOTIFY_BUTTON_CONTENT_CAN_SHRINK,gt as NOTIFY_BUTTON_CONTENT_ICON_NAME,_t as NOTIFY_BUTTON_CONTENT_LABEL,vt as NOTIFY_BUTTON_CONTENT_USE_UNDERLINE,Cr as NOTIFY_CHECK_ACTIVE,vr as NOTIFY_DROP_DOWN_SELECTED,zt as NOTIFY_EDITABLE,Kt as NOTIFY_ENABLE_EXPANSION,Dr as NOTIFY_ENTRY_TEXT,qt as NOTIFY_EXPANDED,ye as NOTIFY_HEXPAND,Bt as NOTIFY_MAX_LENGTH,kt as NOTIFY_N_PAGES,tt as NOTIFY_OPEN,At as NOTIFY_POSITION,Xr as NOTIFY_REVEAL_CHILD,Nt as NOTIFY_SELECTED,qn as NOTIFY_SELECTED_PAGE,Vt as NOTIFY_SHOW_APPLY_BUTTON,Jt as NOTIFY_SHOW_ENABLE_SWITCH,an as NOTIFY_SHOW_SIDEBAR,xn as NOTIFY_SIDEBAR_SELECTED,fi as NOTIFY_SLIDER_VALUE,ni as NOTIFY_STACK_VISIBLE_CHILD,ri as NOTIFY_STACK_VISIBLE_CHILD_NAME,Ht as NOTIFY_TEXT,Ut as NOTIFY_TEXT_LENGTH,oi as NOTIFY_TEXT_VIEW_TEXT,ui as NOTIFY_TOGGLE_ACTIVE,$n as NOTIFY_TOGGLE_SELECTED,Sn as NOTIFY_VALUE,be as NOTIFY_VEXPAND,$t as NOTIFY_VIEW_SELECTED,Zt as NOTIFY_VISIBLE_CHILD,on as NOTIFY_VISIBLE_PAGE,Yt as NS_EXPANDER_ARROW_DISABLED_OPACITY,en as NsNavigationSplitViewState,tn as NsOverlaySplitViewState,Jn as PAGES_CHANGED,jt as PAGE_CHANGED,le as PIXEL_SIZE_UNSET,sn as PREFERENCES_CLOSED,Ci as ROW_ACTIVATED,nt as SHEET_CLOSE,rt as SHEET_CONTENT_BOTTOM_GAP,cn as SHORTCUT_LABEL_CAP_TEXT_CLASS,ln as SHORTCUT_LABEL_CLASS,un as SHORTCUT_LABEL_DIMMED_CLASS,dn as SHORTCUT_LABEL_DISABLED_CLASS,fn as SHORTCUT_LABEL_KEYCAP_CLASS,pn as SHORTCUT_LABEL_KEYS_CLASS,mn as SHORTCUT_LABEL_SIDE_CLASS,hn as SHORTCUT_LABEL_SPACED_CLASS,Wt as SIGNAL_APPLY,Gt as SIGNAL_ENTRY_ACTIVATED,me as SimpleAction,he as SimpleActionGroup,Cn as SpinState,er as ToggleGroupState,tr as WINDOW_BACKGROUND,ge as activateWidgetAction,e as addBreakpoints,Se as adwaitaColorScheme,ar as adwaitaNsAccentColor,or as adwaitaNsAccentCss,sr as applyAdwaitaNsAccent,de as applyConstructProps,xt as applyMarkerClasses,Rn as applyTabViewVisibility,Tn as assertPopupMenuAssignable,at as attachRowPressFeedback,lt as avatarInitials,it as bottomSheetInsetPadding,ot as bottomSheetPanel,ur as boxChildTrack,dr as boxSpacingChanges,fr as boxTrackPlan,mr as buttonSlotAfterWrite,hr as buttonSlotDetaches,St as carouselDotClasses,Ct as carouselNotifyPayload,wt as carouselPositionAtOffset,Tt as carouselScrollOffset,cr as clearAdwaitaNsAccent,Pe as compiledIconNames,nr as configureSystemBars,Et as createCarouselState,zn as createTabViewState,gi as dataGridCellClass,_i as dataGridItemSpec,vi as dataGridRowClass,yi as dataGridShapeKey,bi as dataGridTracksKey,qe as dialogPresentationMode,te as evaluateBreakpointCondition,je as extractIconPaths,Me as extractPathData,En as fillPopupMenu,_e as findActionGroup,Je as findDialogHost,Or as gridChildAt,kr as gridGap,Ar as gridSpacing,jr as gridTrackCounts,Fe as iconValueKind,Dt as indicatorMarkerClasses,ve as insertActionGroup,ue as isGtkIconSizeNick,Ie as isIconAvailable,Ce as isThemeIconColor,Ei as labelDisplayText,Di as labelMarkupIsUnparseable,pe as lengthValue,pr as normalizeBoxSpacing,Ot as normalizeCarouselPageWidth,Mn as normalizePolicy,fe as nsAlignment,ne as observeViewSize,re as observeWindowSize,we as onAdwaitaColorSchemeChanged,Dn as openPopupMenu,wi as padForSystemInsets,Ti as padSheetForSystemInsets,ie as parseBreakpointCondition,xi as parseDataGridWidth,Nn as policyScrolls,On as refuseMenuString,registerAdwaitaElements,Re as renderSymbolicIcon,Le as resolveIconSource,Jr as revealerChildVisibility,Pn as scrollOrientationFor,Lr as selectionAfterModeChange,Rr as selectionAfterTap,zr as selectionMode,Te as setAdwaitaColorScheme,gn as shortcutLabelDirection,_n as shortcutLabelPlatform,vn as shortcutLabelRenderPlan,kn as showMenuPopup,nn as splitViewColumns,Ye as surfaceSize,rr as systemBarsConfig,Bn as tabBarVisibility,Vn as tabCloseVisibilities,Hn as tabLabelText,Un as tabPageVisibilities,Wn as tabTooltipText,Gn as tabViewNotifyPayload,Ee as themeIconColor,De as toggleAdwaitaColorScheme,We as transitionNick,xe as withGtkWidgetLayout};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../_virtual/_rolldown/runtime.js";import{splitButtonArrowIcon as e}from"@gjsify/adwaita-core";import{openMenuSymbolic as t}from"@gjsify/adwaita-icons/actions";import{panDownSymbolic as n,panEndSymbolic as r,panStartSymbolic as i,panUpSymbolic as a}from"@gjsify/adwaita-icons/ui";const o={"open-menu-symbolic":t,"pan-down-symbolic":n,"pan-up-symbolic":a,"pan-start-symbolic":i,"pan-end-symbolic":r};function splitButtonArrowSvg(t){return o[e(t)]}
|
|
1
|
+
import"../_virtual/_rolldown/runtime.js";import{splitButtonArrowIcon as e}from"@gjsify/adwaita-core";import{openMenuSymbolic as t}from"@gjsify/adwaita-icons/actions";import{panDownSymbolic as n,panEndSymbolic as r,panStartSymbolic as i,panUpSymbolic as a}from"@gjsify/adwaita-icons/ui";const o={"open-menu-symbolic":t,"pan-down-symbolic":n,"pan-up-symbolic":a,"pan-start-symbolic":i,"pan-end-symbolic":r};function splitButtonArrowSvg(t){return o[e(t)]}export{o as ARROW_SVGS,splitButtonArrowSvg};
|
|
@@ -158,8 +158,11 @@ export declare function buildWithSiblings(node: SharedTreeNode, options?: BuildO
|
|
|
158
158
|
* `root`, whose class has to be the one the root names (or a subclass of it): a template of an
|
|
159
159
|
* `Adw.Bin` built into a `Gtk.Box` would be a different widget wearing the wrong tree. The ids of
|
|
160
160
|
* the tree stay reachable through `root.getViewById`, and the returned map holds every object the
|
|
161
|
-
* tree names by id (what `InternalChildren` installs).
|
|
162
|
-
*
|
|
161
|
+
* tree names by id (what `InternalChildren` installs). The objects written beside the template in
|
|
162
|
+
* the same file (`Adw.AlertDialog dialog { }`) are built in that id scope and are in the map too,
|
|
163
|
+
* as `gtk_widget_class_bind_template_child` reaches any object id of the template's builder; they
|
|
164
|
+
* are no children of `root`. A value object's id (a dialog, a `Gtk.StackPage`) is reachable here
|
|
165
|
+
* for the same reason.
|
|
163
166
|
*/
|
|
164
167
|
export declare function buildInto(root: View, node: SharedTreeNode, options?: BuildOptions): ReadonlyMap<string, object>;
|
|
165
168
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AdwButtonContentPropertiesNsTest: () => Promise<void>;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { assertNativeScript, isNativeScript, isAndroid, isIOS } from '@gjsify/native-platform';
|
|
2
|
-
export { NOTIFY_ACTIVE, NOTIFY_TEXT, NOTIFY_TEXT_LENGTH, NOTIFY_MAX_LENGTH, NOTIFY_EDITABLE, NOTIFY_SHOW_APPLY_BUTTON, NOTIFY_ACTIVATES_DEFAULT, SIGNAL_APPLY, SIGNAL_ENTRY_ACTIVATED, ENTRY_ACTIVATE, NOTIFY_ENTRY_TEXT, ComboState, NOTIFY_SELECTED, NOTIFY_DROP_DOWN_SELECTED, SpinState, NOTIFY_VALUE, AdwSliderRow, NOTIFY_SLIDER_VALUE, NOTIFY_EXPANDED, NOTIFY_ENABLE_EXPANSION, NOTIFY_SHOW_ENABLE_SWITCH, NS_EXPANDER_ARROW_DISABLED_OPACITY, AdwImageButton, DEFAULT_ICON_BUTTON_ICON_SIZE, MENU_ITEM_ACTIVATED, DEFAULT_GTK_IMAGE_SIZE, DEFAULT_BOX_SPACING, GTK_BUTTON_CLICKED, GTK_BUTTON_LABEL_CLASS, buttonSlotAfterWrite, buttonSlotDetaches, boxChildTrack, boxTrackPlan, boxSpacingChanges, normalizeBoxSpacing, NOTIFY_REVEAL_CHILD, ADW_DIALOG_CLOSED, ADW_DIALOG_CLOSE_ATTEMPT, LIST_BOX_ROW_ACTIVATED, LIST_BOX_ROW_SELECTED, NOTIFY_HEXPAND, NOTIFY_VEXPAND, withGtkWidgetLayout, NOTIFY_STACK_VISIBLE_CHILD, NOTIFY_STACK_VISIBLE_CHILD_NAME, DRAWING_AREA_REFUSAL, GTK_CHECK_BUTTON_TOGGLED, GTK_CHECK_BUTTON_ACTIVATE, GTK_CHECK_BUTTON_CHECKED_CLASS, GTK_CHECK_BUTTON_INCONSISTENT_CLASS, NOTIFY_CHECK_ACTIVE, GTK_WRAP_MODES, NOTIFY_TEXT_VIEW_TEXT, GTK_TOGGLE_BUTTON_CHECKED_CLASS, GTK_TOGGLE_BUTTON_TOGGLED, NOTIFY_TOGGLE_ACTIVE, labelDisplayText, labelMarkupIsUnparseable, BUTTON_CLICKED, AVATAR_DEFAULT_ICON, DEFAULT_AVATAR_SIZE, avatarInitials, DEFAULT_CLAMP_MAX_SIZE, padForSystemInsets, padSheetForSystemInsets, bottomSheetPanel, AdwDataGrid, ROW_ACTIVATED, dataGridCellClass, dataGridItemSpec, dataGridRowClass, dataGridShapeKey, dataGridTracksKey, parseDataGridWidth, DATA_GRID_HEADER_CELL_CLASS, DATA_GRID_HEADER_ROW_CLASS, DATA_GRID_SECTION_CELL_CLASS, DEFAULT_SPINNER_SIZE, ACTIVATED,
|
|
2
|
+
export { NOTIFY_ACTIVE, NOTIFY_TEXT, NOTIFY_TEXT_LENGTH, NOTIFY_MAX_LENGTH, NOTIFY_EDITABLE, NOTIFY_SHOW_APPLY_BUTTON, NOTIFY_ACTIVATES_DEFAULT, SIGNAL_APPLY, SIGNAL_ENTRY_ACTIVATED, ENTRY_ACTIVATE, NOTIFY_ENTRY_TEXT, ComboState, NOTIFY_SELECTED, NOTIFY_DROP_DOWN_SELECTED, SpinState, NOTIFY_VALUE, AdwSliderRow, NOTIFY_SLIDER_VALUE, NOTIFY_EXPANDED, NOTIFY_ENABLE_EXPANSION, NOTIFY_SHOW_ENABLE_SWITCH, NS_EXPANDER_ARROW_DISABLED_OPACITY, AdwImageButton, DEFAULT_ICON_BUTTON_ICON_SIZE, MENU_ITEM_ACTIVATED, DEFAULT_GTK_IMAGE_SIZE, DEFAULT_BOX_SPACING, GTK_BUTTON_CLICKED, GTK_BUTTON_LABEL_CLASS, buttonSlotAfterWrite, buttonSlotDetaches, boxChildTrack, boxTrackPlan, boxSpacingChanges, normalizeBoxSpacing, NOTIFY_REVEAL_CHILD, ADW_DIALOG_CLOSED, ADW_DIALOG_CLOSE_ATTEMPT, LIST_BOX_ROW_ACTIVATED, LIST_BOX_ROW_SELECTED, NOTIFY_HEXPAND, NOTIFY_VEXPAND, withGtkWidgetLayout, NOTIFY_STACK_VISIBLE_CHILD, NOTIFY_STACK_VISIBLE_CHILD_NAME, DRAWING_AREA_REFUSAL, GTK_CHECK_BUTTON_TOGGLED, GTK_CHECK_BUTTON_ACTIVATE, GTK_CHECK_BUTTON_CHECKED_CLASS, GTK_CHECK_BUTTON_INCONSISTENT_CLASS, NOTIFY_CHECK_ACTIVE, GTK_WRAP_MODES, NOTIFY_TEXT_VIEW_TEXT, GTK_TOGGLE_BUTTON_CHECKED_CLASS, GTK_TOGGLE_BUTTON_TOGGLED, NOTIFY_TOGGLE_ACTIVE, labelDisplayText, labelMarkupIsUnparseable, BUTTON_CLICKED, AVATAR_DEFAULT_ICON, DEFAULT_AVATAR_SIZE, avatarInitials, DEFAULT_CLAMP_MAX_SIZE, padForSystemInsets, padSheetForSystemInsets, bottomSheetPanel, AdwDataGrid, ROW_ACTIVATED, dataGridCellClass, dataGridItemSpec, dataGridRowClass, dataGridShapeKey, dataGridTracksKey, parseDataGridWidth, DATA_GRID_HEADER_CELL_CLASS, DATA_GRID_HEADER_ROW_CLASS, DATA_GRID_SECTION_CELL_CLASS, DEFAULT_SPINNER_SIZE, ACTIVATED, MENU_TAPPED, ToggleGroupState, NOTIFY_TOGGLE_SELECTED, applyAdwaitaNsAccent, clearAdwaitaNsAccent, ADWAITA_NS_ACCENT_RULES, adwaitaNsAccentColor, adwaitaNsAccentCss, SHORTCUT_LABEL_CAP_TEXT_CLASS, SHORTCUT_LABEL_CLASS, SHORTCUT_LABEL_DIMMED_CLASS, SHORTCUT_LABEL_DISABLED_CLASS, SHORTCUT_LABEL_KEYCAP_CLASS, SHORTCUT_LABEL_KEYS_CLASS, SHORTCUT_LABEL_SIDE_CLASS, SHORTCUT_LABEL_SPACED_CLASS, shortcutLabelDirection, shortcutLabelPlatform, shortcutLabelRenderPlan, NOTIFY_VISIBLE_CHILD, AdwViewSwitcherBase, NOTIFY_VIEW_SELECTED, DEFAULT_CAROUSEL_PAGE_WIDTH, NOTIFY_POSITION, NOTIFY_VISIBLE_PAGE, AdwSplitViewBase, NOTIFY_SHOW_SIDEBAR, NsNavigationSplitViewState, NsOverlaySplitViewState, splitViewColumns, NOTIFY_SIDEBAR_SELECTED, NOTIFY_OPEN, AdwToast, AdwToastQueue, DEFAULT_TOAST_TIMEOUT, AdwAlertResponses, ABOUT_CLOSED, PREFERENCES_CLOSED, applyConstructProps, nsAlignment, GTK_ALIGN, DEFAULT_ICON_PIXEL_SIZE, GTK_ICON_SIZE_NICKS, GTK_ICON_SIZE_PIXELS, type GtkIconSizeNick, isGtkIconSizeNick, PIXEL_SIZE_UNSET, activateWidgetAction, findActionGroup, insertActionGroup, attachRowPressFeedback, ICON_FALLBACK_NAME, compiledIconNames, iconValueKind, isIconAvailable, resolveIconSource, renderSymbolicIcon, extractIconPaths, extractPathData, ADWAITA_ICON_GRID, DEFAULT_ICON_COLOR, DEFAULT_ICON_COLOR_DARK, adwaitaColorScheme, isThemeIconColor, onAdwaitaColorSchemeChanged, setAdwaitaColorScheme, themeIconColor, toggleAdwaitaColorScheme, AdwBreakpoint, addBreakpoints, evaluateBreakpointCondition, observeViewSize, observeWindowSize, parseBreakpointCondition, registerAdwaitaElements, } from './widgets/index.js';
|
|
3
3
|
export type { BoxOrientation, ButtonSlot, ButtonSlotWrite, NotifyEntryTextEventData, AdwComboOption, ComboStateChange, ComboStateListener, NotifySelectedEventData, NotifyDropDownSelectedEventData, NotifyValueEventData, SpinStateChange, SpinStateListener, NotifySliderValueEventData, MenuItemActivatedEventData, MenuTappedEventData, RowActivatedEventData, DataGridItemSpec, NotifyToggleSelectedEventData, ToggleGroupStateChange, ToggleGroupStateListener, AccentRole, AccentRule, ShortcutLabelRenderPlan, ShortcutLabelViewSpec, AdwViewStackPageInfo, NotifyVisibleChildEventData, AdwViewPage, NotifyViewSelectedEventData, NotifyPositionEventData, NotifyVisiblePageEventData, NotifyShowSidebarEventData, NsShowSidebarNotification, NsSplitViewHost, NsSplitViewState, NotifySidebarSelectedEventData, NotifyOpenEventData, AdwToastOptions, AdwToastQueueHandlers, AdwToastQueueOptions, ToastScheduler, ToastTimerHandle, AdwAlertResponse, AdwResponseAppearance, AdwResponseOptions, OrderedConfirmResponses, ConstructProps, SystemInsetEdges, IconValueKind, SymbolicIconOptions, IconPath, AdwColorScheme, AdwBreakpointHandlers, BreakpointBound, BreakpointConditionGroup, BreakpointConditionLeaf, BreakpointConditionNode, BreakpointDimension, BreakpointSize, } from './widgets/index.js';
|
|
4
4
|
export type { GtkWidgetLayout, GtkWidgetLayoutMembers } from './widgets/widget-layout.js';
|
|
5
5
|
export * as Adw from './namespace/adw.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import '../file-chooser-host.js';
|
|
2
2
|
export { GioMenu as Menu, GioMenuItem as MenuItem } from '@gjsify/adwaita-core';
|
|
3
|
+
export { ListModel } from '@gjsify/adwaita-core';
|
|
3
4
|
export { GioFile as File, GioListStore as ListStore, GioOutputStream as OutputStream, GioFileOutputStream as FileOutputStream, FileCreateFlags, IOErrorEnum, promisify as _promisify, } from '@gjsify/adwaita-core';
|
|
4
5
|
export { SimpleAction, SimpleActionGroup } from '../widgets/actions.js';
|
|
5
6
|
export { ApplicationFlags } from '@gjsify/adwaita-core';
|
|
@@ -24,7 +24,7 @@ export type { WindowCommon } from '@gjsify/adwaita-core';
|
|
|
24
24
|
export { GtkSeparator as Separator } from '../widgets/gtk-separator.js';
|
|
25
25
|
export { GtkStack as Stack } from '../widgets/gtk-stack.js';
|
|
26
26
|
export { GtkStackPage as StackPage } from '../widgets/stack-page.js';
|
|
27
|
-
export { GtkStringList as StringList } from '@gjsify/adwaita-core';
|
|
27
|
+
export { GtkStringList as StringList, GtkStringObject as StringObject } from '@gjsify/adwaita-core';
|
|
28
28
|
export { GtkTextView as TextView } from '../widgets/gtk-text-view.js';
|
|
29
29
|
export { GtkToggleButton as ToggleButton } from '../widgets/gtk-toggle-button.js';
|
|
30
30
|
export { ApplicationInhibitFlags } from '@gjsify/adwaita-core';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const AdwSplitButtonPropertiesNsTest: () => Promise<void>;
|
|
@@ -2,6 +2,14 @@ import { Label, StackLayout, type View } from '@nativescript/core';
|
|
|
2
2
|
import type { ButtonContentEllipsize } from '@gjsify/adwaita-core';
|
|
3
3
|
import { GtkImage } from './gtk-image.js';
|
|
4
4
|
import { type ConstructProps } from './construct-props.js';
|
|
5
|
+
/** Event name emitted when {@link AdwButtonContent.iconName} changes. Mirrors GObject `notify::icon-name`. */
|
|
6
|
+
export declare const NOTIFY_BUTTON_CONTENT_ICON_NAME = "notify::icon-name";
|
|
7
|
+
/** Event name emitted when {@link AdwButtonContent.label} changes. */
|
|
8
|
+
export declare const NOTIFY_BUTTON_CONTENT_LABEL = "notify::label";
|
|
9
|
+
/** Event name emitted when {@link AdwButtonContent.useUnderline} changes. */
|
|
10
|
+
export declare const NOTIFY_BUTTON_CONTENT_USE_UNDERLINE = "notify::use-underline";
|
|
11
|
+
/** Event name emitted when {@link AdwButtonContent.canShrink} changes. */
|
|
12
|
+
export declare const NOTIFY_BUTTON_CONTENT_CAN_SHRINK = "notify::can-shrink";
|
|
5
13
|
declare const AdwButtonContent_base: ((abstract new (...args: any[]) => {
|
|
6
14
|
addEventListener(eventName: string, callback: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown, once?: boolean): void;
|
|
7
15
|
removeEventListener(eventName: string, callback?: (data: import("@nativescript/core").EventData) => void, thisArg?: unknown): void;
|
|
@@ -73,7 +81,6 @@ export declare class AdwButtonContent extends AdwButtonContent_base {
|
|
|
73
81
|
protected readonly _icon: GtkImage;
|
|
74
82
|
/** The text label. */
|
|
75
83
|
protected readonly _label: Label;
|
|
76
|
-
private readonly _props;
|
|
77
84
|
private _hostButton;
|
|
78
85
|
constructor(props?: ConstructProps<AdwButtonContent>);
|
|
79
86
|
/**
|
|
@@ -83,6 +90,12 @@ export declare class AdwButtonContent extends AdwButtonContent_base {
|
|
|
83
90
|
* Setting it adds `image-text-button` (:115); clearing it, or replacing it,
|
|
84
91
|
* removes the class from the previous host first (:126), so a button that
|
|
85
92
|
* loses its content goes back to plain-button padding.
|
|
93
|
+
*
|
|
94
|
+
* NATIVESCRIPT-ONLY, and deliberately NOT a declared property: `Adw.ButtonContent` has no
|
|
95
|
+
* `host-button` — C finds its button through `gtk_widget_get_ancestor`, so GJS has nothing
|
|
96
|
+
* to match. The value is a `View`, which is not a GObject, so no ParamSpec could hold it
|
|
97
|
+
* either. It is a plain accessor on both legs: equal writes (identity) are ignored and
|
|
98
|
+
* nothing emits `notify::host-button`.
|
|
86
99
|
*/
|
|
87
100
|
get hostButton(): View | null;
|
|
88
101
|
set hostButton(view: View | null);
|
|
@@ -94,22 +107,16 @@ export declare class AdwButtonContent extends AdwButtonContent_base {
|
|
|
94
107
|
* the C sets that fallback (:355-356) and never hides `self->icon`. The doc
|
|
95
108
|
* comments at :228/:343 say otherwise — see `buttonContentIcon`.
|
|
96
109
|
*/
|
|
97
|
-
|
|
98
|
-
set iconName(svg: string);
|
|
110
|
+
iconName: string;
|
|
99
111
|
/** Whether the icon currently shown is the empty-slot fallback. */
|
|
100
112
|
get iconIsFallback(): boolean;
|
|
101
113
|
/** The icon fill colour (hex). Set to the button's foreground (e.g. white on suggested-action). */
|
|
102
114
|
get iconColor(): string;
|
|
103
115
|
set iconColor(value: string);
|
|
104
116
|
/** The button content text. Empty collapses the label view (:398). */
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
* Whether an underline in {@link label} marks a mnemonic (:431-445).
|
|
109
|
-
* Defaults to FALSE (:253-256), so an underscore is a literal unless asked.
|
|
110
|
-
*/
|
|
111
|
-
get useUnderline(): boolean;
|
|
112
|
-
set useUnderline(raw: boolean | string);
|
|
117
|
+
label: string;
|
|
118
|
+
/** Whether an underline in {@link label} marks a mnemonic (:431-445). */
|
|
119
|
+
useUnderline: boolean;
|
|
113
120
|
/**
|
|
114
121
|
* Whether the label may be smaller than its natural size (:489-491).
|
|
115
122
|
*
|
|
@@ -118,10 +125,11 @@ export declare class AdwButtonContent extends AdwButtonContent_base {
|
|
|
118
125
|
* {@link ellipsize}, and reflected as a `can-shrink` class for the theme —
|
|
119
126
|
* but the truncation ellipsis is not available on this platform.
|
|
120
127
|
*/
|
|
121
|
-
|
|
122
|
-
set canShrink(raw: boolean | string);
|
|
128
|
+
canShrink: boolean;
|
|
123
129
|
/** The label's `PangoEllipsizeMode` for the current `canShrink` (:462). */
|
|
124
130
|
get ellipsize(): ButtonContentEllipsize;
|
|
131
|
+
private _applyIcon;
|
|
132
|
+
private _applyCanShrink;
|
|
125
133
|
private _renderLabel;
|
|
126
134
|
}
|
|
127
135
|
export {};
|
|
@@ -49,7 +49,7 @@ export declare class AdwComboRow extends AdwActionRow {
|
|
|
49
49
|
private _openChooser;
|
|
50
50
|
/** The list model (`Adw.ComboRow:model`). Updates the inline value label. */
|
|
51
51
|
get model(): AdwComboOption[];
|
|
52
|
-
set model(value: AdwListModelInput);
|
|
52
|
+
set model(value: AdwListModelInput | string);
|
|
53
53
|
/** `adw_combo_row_set_model`. */
|
|
54
54
|
set_model(model: AdwListModelInput | null): void;
|
|
55
55
|
/**
|
|
@@ -2,8 +2,7 @@ import { GridLayout, Label, StackLayout, type EventData } from '@nativescript/co
|
|
|
2
2
|
import type { AdwMenuActions, AdwMenuInput, AdwMenuModel, SplitButtonDirection } from '@gjsify/adwaita-core';
|
|
3
3
|
import { GtkImage } from './gtk-image.js';
|
|
4
4
|
import { type ConstructProps } from './construct-props.js';
|
|
5
|
-
|
|
6
|
-
export declare const CLICKED = "clicked";
|
|
5
|
+
import { type GObjectNotify } from './signals.js';
|
|
7
6
|
/** Emitted when {@link AdwSplitButton.set_direction} moves the arrow. */
|
|
8
7
|
export declare const NOTIFY_DIRECTION = "notify::direction";
|
|
9
8
|
/** Event name emitted when a dropdown menu item is chosen. */
|
|
@@ -91,6 +90,26 @@ declare const AdwSplitButton_base: ((abstract new (...args: any[]) => {
|
|
|
91
90
|
export declare class AdwSplitButton extends AdwSplitButton_base {
|
|
92
91
|
static readonly GTypeName: string;
|
|
93
92
|
static readonly emittedSignals: readonly string[];
|
|
93
|
+
notify: GObjectNotify;
|
|
94
|
+
/** The main button's text, or `null` while an icon fills the action half. */
|
|
95
|
+
label: string | null;
|
|
96
|
+
/**
|
|
97
|
+
* The action half's icon — an icon theme NAME or a symbolic SVG source, which `GtkImage`
|
|
98
|
+
* resolves alike. Setting one clears {@link label}; `''` reads back `null`.
|
|
99
|
+
*/
|
|
100
|
+
iconName: string | null;
|
|
101
|
+
/** Whether an underline in {@link label} marks a mnemonic. */
|
|
102
|
+
useUnderline: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Whether the label can be smaller than its natural size. FIDELITY GAP: GTK ellipsizes, and the
|
|
105
|
+
* NS CSS subset has no ellipsize, so it is held and reflected as a `can-shrink` class only.
|
|
106
|
+
*/
|
|
107
|
+
canShrink: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* The dropdown tooltip as set — `''` while unset. Resolve it through `resolveDropdownTooltip()`
|
|
110
|
+
* for what should be shown; a PopupMenu has no tooltip surface, so this is carried for parity.
|
|
111
|
+
*/
|
|
112
|
+
dropdownTooltip: string;
|
|
94
113
|
/** The main action part (column 0). */
|
|
95
114
|
protected readonly _actionPart: StackLayout;
|
|
96
115
|
/** The action label (shown in label mode). */
|
|
@@ -115,6 +134,8 @@ export declare class AdwSplitButton extends AdwSplitButton_base {
|
|
|
115
134
|
* state to contradict it. One polarity, so there is nothing to forget.
|
|
116
135
|
*/
|
|
117
136
|
private _sensitive;
|
|
137
|
+
/** See {@link SplitButtonContent._contentGate}. One write's argument, not state. */
|
|
138
|
+
private _contentGate;
|
|
118
139
|
constructor(props?: ConstructProps<AdwSplitButton, {
|
|
119
140
|
direction: number | SplitButtonDirection;
|
|
120
141
|
}>);
|
|
@@ -125,24 +146,12 @@ export declare class AdwSplitButton extends AdwSplitButton_base {
|
|
|
125
146
|
* is disabled" (adw-split-button.c:376-378).
|
|
126
147
|
*/
|
|
127
148
|
private _openMenu;
|
|
128
|
-
/**
|
|
149
|
+
/** A click on the action half: nothing while insensitive, else one `clicked`. */
|
|
150
|
+
private _click;
|
|
151
|
+
/** Repaint the action half from the declared content properties. */
|
|
152
|
+
private _renderContent;
|
|
153
|
+
/** Repaint the dropdown half and the dimming from the state machine. */
|
|
129
154
|
private _render;
|
|
130
|
-
/**
|
|
131
|
-
* The main action button's text label, or `''` when the action half shows an
|
|
132
|
-
* icon or nothing — never the stale value behind a swapped-out view.
|
|
133
|
-
*/
|
|
134
|
-
get label(): string;
|
|
135
|
-
set label(value: string);
|
|
136
|
-
/**
|
|
137
|
-
* A symbolic SVG for the action part (e.g. `documentSaveSymbolic`). Setting
|
|
138
|
-
* one replaces the label, clearing it returns the action half to its label —
|
|
139
|
-
* the mutual exclusion `Adw.SplitButton` enforces (adw-split-button.c:749-771).
|
|
140
|
-
*
|
|
141
|
-
* The SVG string IS the icon identity here, so it is what the state machine
|
|
142
|
-
* stores as the icon name; NS resolves no icon theme.
|
|
143
|
-
*/
|
|
144
|
-
get iconName(): string;
|
|
145
|
-
set iconName(svg: string);
|
|
146
155
|
/**
|
|
147
156
|
* The dropdown menu, normalised (ADR 0042) — opened as a `PopupMenu` on an
|
|
148
157
|
* arrow tap.
|
|
@@ -190,16 +199,6 @@ export declare class AdwSplitButton extends AdwSplitButton_base {
|
|
|
190
199
|
* Emits `notify::direction` when the arrow moves.
|
|
191
200
|
*/
|
|
192
201
|
set_direction(direction: number): void;
|
|
193
|
-
/**
|
|
194
|
-
* The dropdown tooltip as set — `''` while unset. Resolve it through
|
|
195
|
-
* `resolveDropdownTooltip()` for what should be shown; a PopupMenu has no
|
|
196
|
-
* tooltip surface, so this is carried for parity and for host bindings.
|
|
197
|
-
*/
|
|
198
|
-
get dropdownTooltip(): string;
|
|
199
|
-
set dropdownTooltip(value: string);
|
|
200
|
-
/** Whether an underline in the label marks a mnemonic. */
|
|
201
|
-
get useUnderline(): boolean;
|
|
202
|
-
set useUnderline(raw: boolean | string);
|
|
203
202
|
/**
|
|
204
203
|
* Whether the control is sensitive — `GtkWidget:sensitive`, so `false` is the
|
|
205
204
|
* insensitive state: dimmed, and emitting neither signal.
|
|
@@ -102,7 +102,7 @@ export declare class GtkDropDown extends GtkDropDown_base {
|
|
|
102
102
|
private _openChooser;
|
|
103
103
|
/** The list model (`Gtk.DropDown:model`). Updates the button label. */
|
|
104
104
|
get model(): AdwComboOption[];
|
|
105
|
-
set model(value: AdwListModelInput);
|
|
105
|
+
set model(value: AdwListModelInput | string);
|
|
106
106
|
/**
|
|
107
107
|
* XML inflation: a child at `model` is the list, written through the property's setter.
|
|
108
108
|
* Anything else is refused, as GTK refuses a child widget on a `GtkDropDown`.
|
|
@@ -50,8 +50,9 @@ export declare class GtkWindow extends AdwSingleChildBase {
|
|
|
50
50
|
close(): void;
|
|
51
51
|
private _requestClose;
|
|
52
52
|
/**
|
|
53
|
-
* What the back button does, in order: the topmost dialog,
|
|
54
|
-
* `close-request`.
|
|
53
|
+
* What the back button does, in order: the topmost dialog, an open bottom sheet, the innermost
|
|
54
|
+
* navigation view, then `close-request`. The sheet sits over the content a navigation view lives
|
|
55
|
+
* in, and libadwaita closes it on Escape before anything under it sees the key. Always consumes the press — the system's own back would `finish()` too, but
|
|
55
56
|
* without asking the handlers.
|
|
56
57
|
*/
|
|
57
58
|
private _handleBack;
|
|
@@ -85,8 +85,8 @@ export type { DataGridItemSpec } from './data-grid-model.js';
|
|
|
85
85
|
export { AdwSpinner, DEFAULT_SPINNER_SIZE } from './adw-spinner.js';
|
|
86
86
|
export { AdwStatusPage } from './adw-status-page.js';
|
|
87
87
|
export { AdwButtonRow, ACTIVATED } from './adw-button-row.js';
|
|
88
|
-
export { AdwButtonContent } from './adw-button-content.js';
|
|
89
|
-
export { AdwSplitButton,
|
|
88
|
+
export { AdwButtonContent, NOTIFY_BUTTON_CONTENT_ICON_NAME, NOTIFY_BUTTON_CONTENT_LABEL, NOTIFY_BUTTON_CONTENT_USE_UNDERLINE, NOTIFY_BUTTON_CONTENT_CAN_SHRINK, } from './adw-button-content.js';
|
|
89
|
+
export { AdwSplitButton, MENU_TAPPED } from './adw-split-button.js';
|
|
90
90
|
export type { MenuTappedEventData } from './adw-split-button.js';
|
|
91
91
|
export { AdwToggleGroup, NOTIFY_SELECTED as NOTIFY_TOGGLE_SELECTED, ToggleGroupState } from './adw-toggle-group.js';
|
|
92
92
|
export { AdwToggle } from './adw-toggle.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AdwArrowIcon, SplitButtonDirection
|
|
1
|
+
import type { AdwArrowIcon, SplitButtonDirection } from '@gjsify/adwaita-core';
|
|
2
2
|
export type { SplitButtonDirection };
|
|
3
3
|
/**
|
|
4
4
|
* The libadwaita arrow glyph names mapped to real Adwaita symbolic SVGs. Keyed by
|
|
@@ -8,12 +8,3 @@ export type { SplitButtonDirection };
|
|
|
8
8
|
export declare const ARROW_SVGS: Readonly<Record<AdwArrowIcon, string>>;
|
|
9
9
|
/** The arrow SVG for a direction; the split button's `none` is the down caret, not a hamburger. */
|
|
10
10
|
export declare function splitButtonArrowSvg(direction: SplitButtonDirection): string;
|
|
11
|
-
/**
|
|
12
|
-
* Apply `AdwSplitButton.iconName = svg` to the content machine. The SVG string IS
|
|
13
|
-
* the icon identity on NativeScript, so it goes where GTK puts the icon NAME.
|
|
14
|
-
*
|
|
15
|
-
* C offers no "unset the icon", only the side effect of filling another slot, so an
|
|
16
|
-
* empty SVG clears the content and lets the label half take over again — what a
|
|
17
|
-
* caller assigning `iconName` from a nullable lookup expects.
|
|
18
|
-
*/
|
|
19
|
-
export declare function setActionIcon(state: SplitButtonState, svg: string | null | undefined): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/adwaita-nativescript",
|
|
3
|
-
"version": "0.64.12-next.
|
|
3
|
+
"version": "0.64.12-next.281",
|
|
4
4
|
"description": "Native Adwaita widgets for the NativeScript runtime — real NativeScript components (StackLayout/GridLayout/Switch/Label) styled like Libadwaita, not a webview",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "lib/esm/index.js",
|
|
@@ -73,15 +73,15 @@
|
|
|
73
73
|
"design-system"
|
|
74
74
|
],
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@gjsify/adwaita-core": "0.64.12-next.
|
|
77
|
-
"@gjsify/adwaita-fonts": "0.64.12-next.
|
|
78
|
-
"@gjsify/adwaita-icons": "0.64.12-next.
|
|
79
|
-
"@gjsify/canvas2d-core": "0.64.12-next.
|
|
80
|
-
"@gjsify/native-platform": "0.64.12-next.
|
|
76
|
+
"@gjsify/adwaita-core": "0.64.12-next.281",
|
|
77
|
+
"@gjsify/adwaita-fonts": "0.64.12-next.281",
|
|
78
|
+
"@gjsify/adwaita-icons": "0.64.12-next.281",
|
|
79
|
+
"@gjsify/canvas2d-core": "0.64.12-next.281",
|
|
80
|
+
"@gjsify/native-platform": "0.64.12-next.281"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
83
|
"@nativescript/core": "*",
|
|
84
|
-
"@gjsify/app-settings": "0.64.12-next.
|
|
84
|
+
"@gjsify/app-settings": "0.64.12-next.281"
|
|
85
85
|
},
|
|
86
86
|
"peerDependenciesMeta": {
|
|
87
87
|
"@nativescript/core": {
|
|
@@ -92,11 +92,11 @@
|
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
|
-
"@gjsify/app-settings": "0.64.12-next.
|
|
96
|
-
"@gjsify/blueprint": "0.64.12-next.
|
|
97
|
-
"@gjsify/cli": "0.64.12-next.
|
|
98
|
-
"@gjsify/unit": "0.64.12-next.
|
|
99
|
-
"@gjsify/vite-plugin-blueprint": "0.64.12-next.
|
|
95
|
+
"@gjsify/app-settings": "0.64.12-next.281",
|
|
96
|
+
"@gjsify/blueprint": "0.64.12-next.281",
|
|
97
|
+
"@gjsify/cli": "0.64.12-next.281",
|
|
98
|
+
"@gjsify/unit": "0.64.12-next.281",
|
|
99
|
+
"@gjsify/vite-plugin-blueprint": "0.64.12-next.281",
|
|
100
100
|
"@types/node": "^25.9.2",
|
|
101
101
|
"typescript": "^6.0.3"
|
|
102
102
|
},
|
|
@@ -126,5 +126,5 @@
|
|
|
126
126
|
"url": "https://github.com/gjsify/gjsify/issues"
|
|
127
127
|
},
|
|
128
128
|
"homepage": "https://github.com/gjsify/gjsify/tree/main/packages/nativescript-bridge/adwaita#readme",
|
|
129
|
-
"gitHead": "
|
|
129
|
+
"gitHead": "c4d2e266c0d9849860b9828c14ebfe37b6d493b8"
|
|
130
130
|
}
|