@toa.io/extensions.configuration 1.0.0-alpha.313 → 1.0.0-alpha.314
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/components/configuration.values/manifest.toa.yaml +48 -0
- package/components/configuration.values/operations/create.js +2 -7
- package/components/configuration.values/operations/get.js +4 -2
- package/components/configuration.values/operations/lib/errors.js +7 -0
- package/components/configuration.values/operations/lib/resolve.js +10 -7
- package/components/configuration.values/operations/list.js +9 -2
- package/components/configuration.values/operations/reset.js +20 -0
- package/components/configuration.values/source/create.ts +1 -8
- package/components/configuration.values/source/get.ts +5 -1
- package/components/configuration.values/source/lib/errors.ts +7 -0
- package/components/configuration.values/source/lib/resolve.ts +12 -8
- package/components/configuration.values/source/list.ts +10 -1
- package/components/configuration.values/source/reset.ts +38 -0
- package/components/configuration.values/types/toa.d.ts +13 -0
- package/package.json +4 -4
- package/readme.md +37 -22
- package/transpiled/Aspect.d.ts +1 -0
- package/transpiled/Aspect.js +14 -3
- package/transpiled/Aspect.js.map +1 -1
- package/transpiled/Client.d.ts +12 -2
- package/transpiled/Client.js +10 -4
- package/transpiled/Client.js.map +1 -1
- package/ui/dist/_app/immutable/assets/0.p4KMpIb5.css +2 -0
- package/ui/dist/_app/immutable/chunks/B8XvKDKK.js +3 -0
- package/ui/dist/_app/immutable/chunks/B8af84MO.js +50 -0
- package/ui/dist/_app/immutable/chunks/BnyV9QNx.js +8 -0
- package/ui/dist/_app/immutable/chunks/C3h54RHo.js +6 -0
- package/ui/dist/_app/immutable/chunks/{N2QYE_-W.js → CpNauhBO.js} +1 -1
- package/ui/dist/_app/immutable/chunks/{D2Pwjbel.js → Kw-EzFjI.js} +1 -1
- package/ui/dist/_app/immutable/entry/app.CurspA6Q.js +2 -0
- package/ui/dist/_app/immutable/entry/start.CHoTSRjf.js +1 -0
- package/ui/dist/_app/immutable/nodes/0.Cpw9_S3E.js +1 -0
- package/ui/dist/_app/immutable/nodes/1.DauwrCza.js +1 -0
- package/ui/dist/_app/immutable/nodes/2.-nSjIoHV.js +1 -0
- package/ui/dist/_app/immutable/nodes/3.C6AXHXih.js +1 -0
- package/ui/dist/_app/immutable/nodes/4.C8koQGqn.js +1 -0
- package/ui/dist/_app/version.json +1 -1
- package/ui/dist/index.html +12 -12
- package/ui/dist/_app/immutable/assets/0.BGFdDICE.css +0 -2
- package/ui/dist/_app/immutable/chunks/BChBfZBo.js +0 -6
- package/ui/dist/_app/immutable/chunks/CcD_ISxM.js +0 -3
- package/ui/dist/_app/immutable/chunks/DucMSfU2.js +0 -8
- package/ui/dist/_app/immutable/chunks/tCi1Fi-q.js +0 -50
- package/ui/dist/_app/immutable/entry/app.BTseTozs.js +0 -2
- package/ui/dist/_app/immutable/entry/start.Te91gu4w.js +0 -1
- package/ui/dist/_app/immutable/nodes/0.BFLPfNMb.js +0 -1
- package/ui/dist/_app/immutable/nodes/1.BwA1zIJg.js +0 -1
- package/ui/dist/_app/immutable/nodes/2.BG0rgRs0.js +0 -1
- package/ui/dist/_app/immutable/nodes/3.kqEdbNlI.js +0 -1
- package/ui/dist/_app/immutable/nodes/4.1G5zNhKM.js +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/.configuration/_app/immutable/nodes/0.BFLPfNMb.js","/.configuration/_app/immutable/chunks/CcD_ISxM.js","/.configuration/_app/immutable/chunks/D2Pwjbel.js","/.configuration/_app/immutable/chunks/xihTtKlq.js","/.configuration/_app/immutable/chunks/BChBfZBo.js","/.configuration/_app/immutable/chunks/N2QYE_-W.js","/.configuration/_app/immutable/assets/0.BGFdDICE.css","/.configuration/_app/immutable/nodes/1.BwA1zIJg.js","/.configuration/_app/immutable/nodes/2.BG0rgRs0.js","/.configuration/_app/immutable/chunks/tCi1Fi-q.js","/.configuration/_app/immutable/chunks/DucMSfU2.js","/.configuration/_app/immutable/assets/ui.BghF56l_.css","/.configuration/_app/immutable/nodes/3.kqEdbNlI.js","/.configuration/_app/immutable/nodes/4.1G5zNhKM.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{$ as e,A as t,B as n,E as r,Et as i,H as a,J as o,P as s,Q as c,Y as l,bt as u,i as d,it as f,j as p,k as m,n as h,ot as g,q as _,r as v,s as y,st as b,tt as x,v as S,w as C,yt as w}from"../chunks/CcD_ISxM.js";import"../chunks/xihTtKlq.js";var T=`modulepreload`,E=function(e,t){return new URL(e,t).href},D={},O=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=E(t,n),t=s(t),t in D)return;D[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:T,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},k={},A=p(`<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>`),j=p(`<!> <!>`,1);function M(p,v){u(v,!0);let T=d(v,`components`,23,()=>[]),E=d(v,`data_0`,3,null),D=d(v,`data_1`,3,null),O=d(v,`data_2`,3,null);l(()=>v.stores.page.set(v.page)),o(()=>{v.stores,v.page,v.constructors,T(),v.form,E(),D(),O(),v.stores.page.notify()});let k=g(!1),M=g(!1),N=g(null);h(()=>{let e=v.stores.page.subscribe(()=>{n(k)&&(f(M,!0),a().then(()=>{f(N,document.title||`untitled page`,!0)}))});return f(k,!0),e});let P=b(()=>v.constructors[2]);var F=j(),I=e(F),L=r=>{let i=b(()=>v.constructors[0]);var a=t(),o=e(a);S(o,()=>n(i),(r,i)=>{y(i(r,{get data(){return E()},get form(){return v.form},get params(){return v.page.params},children:(r,i)=>{var a=t(),o=e(a),s=r=>{let i=b(()=>v.constructors[1]);var a=t(),o=e(a);S(o,()=>n(i),(r,i)=>{y(i(r,{get data(){return D()},get form(){return v.form},get params(){return v.page.params},children:(r,i)=>{var a=t(),o=e(a);S(o,()=>n(P),(e,t)=>{y(t(e,{get data(){return O()},get form(){return v.form},get params(){return v.page.params}}),e=>T()[2]=e,()=>T()?.[2])}),m(r,a)},$$slots:{default:!0}}),e=>T()[1]=e,()=>T()?.[1])}),m(r,a)},c=r=>{let i=b(()=>v.constructors[1]);var a=t(),o=e(a);S(o,()=>n(i),(e,t)=>{y(t(e,{get data(){return D()},get form(){return v.form},get params(){return v.page.params}}),e=>T()[1]=e,()=>T()?.[1])}),m(r,a)};C(o,e=>{v.constructors[2]?e(s):e(c,-1)}),m(r,a)},$$slots:{default:!0}}),e=>T()[0]=e,()=>T()?.[0])}),m(r,a)},R=r=>{let i=b(()=>v.constructors[0]);var a=t(),o=e(a);S(o,()=>n(i),(e,t)=>{y(t(e,{get data(){return E()},get form(){return v.form},get params(){return v.page.params}}),e=>T()[0]=e,()=>T()?.[0])}),m(r,a)};C(I,e=>{v.constructors[1]?e(L):e(R,-1)});var z=x(I,2),B=e=>{var t=A(),a=c(t),o=e=>{var t=s();_(()=>r(t,n(N))),m(e,t)};C(a,e=>{n(M)&&e(o)}),i(t),m(e,t)};C(z,e=>{n(k)&&e(B)}),m(p,F),w()}var N=v(M),P=[()=>O(()=>import(`../nodes/0.BFLPfNMb.js`),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),()=>O(()=>import(`../nodes/1.BwA1zIJg.js`),__vite__mapDeps([7,1,3,5,2]),import.meta.url),()=>O(()=>import(`../nodes/2.BG0rgRs0.js`),__vite__mapDeps([8,1,2,3,4,9,5,10,11]),import.meta.url),()=>O(()=>import(`../nodes/3.kqEdbNlI.js`),__vite__mapDeps([12,1,3,9,2,4]),import.meta.url),()=>O(()=>import(`../nodes/4.1G5zNhKM.js`),__vite__mapDeps([13,1,2,3,4,9,5,10,11]),import.meta.url)],F=[],I={"/(private)":[3,[2]],"/(private)/[component]":[4,[2]]},L={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},R=Object.fromEntries(Object.entries(L.transport).map(([e,t])=>[e,t.decode])),z=Object.fromEntries(Object.entries(L.transport).map(([e,t])=>[e,t.encode])),B=!1,V=(e,t)=>R[e](t),H=()=>O(()=>import(`../chunks/Bjy-W4x2.js`).then(e=>e.default),[],import.meta.url);export{V as decode,R as decoders,I as dictionary,z as encoders,H as get_error_template,B as hash,L as hooks,k as matchers,P as nodes,N as root,F as server_loads};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e,r as t}from"../chunks/D2Pwjbel.js";export{e as load_css,t as start};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as e,A as t,B as n,G as r,J as i,X as a,bt as o,d as s,dt as c,g as l,ht as u,j as d,jt as f,k as p,q as m,st as h,ut as g,y as _,yt as v}from"../chunks/CcD_ISxM.js";import{n as y}from"../chunks/D2Pwjbel.js";import"../chunks/xihTtKlq.js";import{C as b,S as x,T as S,b as C,o as w,r as T,t as E,v as D,w as O,y as k}from"../chunks/BChBfZBo.js";import{t as A}from"../chunks/N2QYE_-W.js";var j=x();j.on(`*`,(e,t)=>{t===void 0?console.debug(e):console.debug(e,t)});var M=u({status:`disconnected`,events:[]});j.on(`*`,(e,t)=>{M.update(n=>(n.events.push({label:e,payload:t}),n.events=n.events.slice(-128),n))});function N(e){M.update(t=>(t.status=e,(e===`connected`||e===`disconnected`)&&t.events.push({label:e}),t))}function P(){M.update(()=>({status:`disconnected`,events:[]}))}var F=k.resource(`/presence/`);async function I(e,t){return await F.multipart(e,{credentials:`include`,...t})}var L=null,R=null;async function z(e){if(L!==null&&L!==e&&V(),L!==e)for(L=e;L===e;){N(`connecting`);let t=await B(e).catch(e=>e);t!==void 0&&(t.name===`AbortError`?console.debug(`Realtime connection aborted`):(console.warn(`Realtime connection exception`,t),await new Promise(e=>setTimeout(e,3e3))))}}async function B(e){R=new AbortController;let t=R.signal,n=Intl.DateTimeFormat().resolvedOptions().timeZone,r=await I(e,{signal:t,body:{timezone:n}});if(r instanceof Error)throw N(`disconnected`),r;console.debug(`Realtime connected`,e),N(`connected`);for await(let e of r)H(e);console.debug(`Realtime connection lost`,e)}function V(){if(L!==null){if(L=null,R===null)throw Error(`Realtime controller is NULL`);R.abort(),P()}}function H(e){typeof e==`string`?j.emit(`heartbeat`):j.emit(e.event,e.data)}function U(){O.subscribe(e=>{let t=b.extract();e?z(t.id):V()})}function W(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`);return atob(t.padEnd(t.length+(4-t.length%4)%4,`=`))}function G(){let e=T(`challenge`);return e===null?null:W(e)}function K(){k.events.on(`challenge`,e=>S.set(e)),k.events.on(`error`,e=>{e.code===401&&S.set(null)}),S.subscribe(e=>k.authenticate(e));let e=G();e!==null&&S.set(e),D()}var q=f({prerender:()=>!1,ssr:()=>!1,trailingSlash:()=>J});K(),U();var J=`always`,Y=d(`<meta name="description"/>`);function X(u,d){o(d,!0);let f=()=>c(E,`$dict`,b),[b,x]=g(),S=h(()=>A.data.meta?.title??C.title),T=h(()=>A.data.meta?.description??C.description);y(w),i(()=>{document.dir=f().dir});var D=t();l(`12qhfyh`,e=>{var t=Y();m(()=>s(t,`content`,n(T))),r(()=>{a.title=n(S)??``}),p(e,t)});var O=e(D);_(O,()=>d.children),p(u,D),v(),x()}export{X as component,q as universal};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as e,E as t,bt as n,et as r,j as i,k as a,q as o,tt as s,yt as c}from"../chunks/CcD_ISxM.js";import"../chunks/xihTtKlq.js";import{t as l}from"../chunks/N2QYE_-W.js";var u=i(`<h1> </h1> <p> </p>`,1);function d(i,d){n(d,!0);var f=u(),p=e(f),m=r(p,!0),h=s(p,2),g=r(h,!0);o(()=>{t(m,l.status),t(g,l.error?.message)}),a(i,f),c()}export{d as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as e,A as t,B as n,Dt as r,E as i,Et as a,L as o,P as s,Q as c,Tt as l,Z as u,a as d,bt as f,d as p,dt as m,et as h,ft as g,i as _,it as v,j as y,k as b,lt as x,o as S,ot as C,q as w,s as T,st as E,tt as D,u as O,ut as k,y as A,yt as j}from"../chunks/CcD_ISxM.js";import{c as M,n as N}from"../chunks/D2Pwjbel.js";import"../chunks/xihTtKlq.js";import{b as P,h as F,i as I,j as L,t as R}from"../chunks/BChBfZBo.js";import{H as z,W as B,o as V,s as H}from"../chunks/tCi1Fi-q.js";import{t as U}from"../chunks/N2QYE_-W.js";import{i as W,n as G,r as K,t as q}from"../chunks/DucMSfU2.js";var J=new Set([`$$slots`,`$$events`,`$$legacy`]);function Y(e,t){let n=d(t,J),r=[[`path`,{d:`m21 21-4.34-4.34`}],[`circle`,{cx:`11`,cy:`11`,r:`8`}]];L(e,S({name:`search`},()=>n,{get iconNode(){return r}}))}var X=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Z=y(`<kbd><!></kbd>`);function Q(e,t){f(t,!0);let n=_(t,`ref`,15,null),i=d(t,X);var o=Z();O(o,e=>({"data-slot":`kbd`,class:e,...i}),[()=>B(`h-5 w-fit min-w-5 gap-1 rounded-sm bg-muted px-1 font-sans text-xs font-medium text-muted-foreground in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3 pointer-events-none inline-flex items-center justify-center select-none`,t.class)]);var s=c(o);A(s,()=>t.children??r),a(o),T(o,e=>n(e),()=>n()),b(e,o),j()}var $=y(`<div class="flex h-dvh flex-col"><header class="flex items-center gap-4 px-4 py-3" style="view-transition-name: chrome"><div class="hidden flex-1 items-center gap-4 md:flex"><h1 class="min-w-0 truncate text-lg font-medium"><a id="nav-home-link" class="hover:text-muted-foreground transition-colors"> </a></h1></div> <div class="relative w-full max-w-64 min-w-0 shrink"><!> <!> <!></div> <div class="flex flex-1 justify-end"><!></div></header> <main class="min-h-0 flex-1"><!></main></div>`);function ee(r,d){f(d,!0);let _=()=>m(V,`$only`,T),y=()=>m(H,`$query`,T),S=()=>m(R,`$dict`,T),[T,O]=k(),L=E(()=>U.url.pathname===M+`/`?`.`:`..`);N(()=>H.set(``));let B=C(null);function J(e){e.key===`Enter`&&_()?.()}function X(e){e.key===`k`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),n(B)?.focus(),n(B)?.select())}o(`keydown`,u,X),G(r,{children:(r,o)=>{var u=$(),f=c(u),m=c(f),_=c(m),C=c(_),T=h(C,!0);a(_),a(m);var E=D(m,2),O=c(E);Y(O,{class:`text-muted-foreground pointer-events-none absolute start-2.5 top-1/2 size-3.5 -translate-y-1/2`});var k=D(O,2);K(k,{id:`nav-filter-input`,type:`search`,onkeydown:J,get"aria-label"(){return S().nav.filter},class:`ps-8 pe-3 md:pe-14 [&::-webkit-search-cancel-button]:hidden`,get ref(){return n(B)},set ref(e){v(B,e,!0)},get value(){return x(),y()},set value(e){g(H,e)}}),Q(D(k,2),{class:`absolute end-2 top-1/2 hidden -translate-y-1/2 md:inline-flex`,children:(e,t)=>{l();var n=s();w(()=>i(n,I?`⌘K`:`Ctrl K`)),b(e,n)},$$slots:{default:!0}}),a(E);var j=D(E,2),M=c(j);z(M,{id:`iam-logout-button`,variant:`ghost`,size:`icon`,get"aria-label"(){return S().nav.signout},class:`text-destructive hover:text-destructive`,get onclick(){return F},children:(e,t)=>{W(e,{})},$$slots:{default:!0}}),a(j),a(f);var N=D(f,2),R=c(N);q(R,{role:`system:configuration:get`,children:(n,r)=>{var i=t(),a=e(i);A(a,()=>d.children),b(n,i)},$$slots:{default:!0}}),a(N),a(u),w(()=>{p(C,`href`,n(L)),i(T,P.title)}),b(r,u)},$$slots:{default:!0}}),j(),O()}export{ee as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Et as e,Q as t,j as n,k as r}from"../chunks/CcD_ISxM.js";import"../chunks/xihTtKlq.js";import{r as i}from"../chunks/tCi1Fi-q.js";var a=n(`<div class="mx-auto h-full max-w-7xl overflow-auto px-4 pb-12"><!></div>`);function o(n){var o=a(),s=t(o);i(s,{}),e(o),r(n,o)}export{o as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as e,A as t,B as n,Dt as r,E as i,Et as a,Q as o,a as s,bt as c,d as l,dt as u,et as d,j as f,k as p,o as m,q as h,st as g,tt as _,ut as v,w as y,yt as b}from"../chunks/CcD_ISxM.js";import{c as x}from"../chunks/D2Pwjbel.js";import"../chunks/xihTtKlq.js";import{j as S,k as C}from"../chunks/BChBfZBo.js";import{c as w,i as T,l as E,n as D,t as O}from"../chunks/tCi1Fi-q.js";import{t as k}from"../chunks/N2QYE_-W.js";import{t as A}from"../chunks/DucMSfU2.js";var j=new Set([`$$slots`,`$$events`,`$$legacy`]);function M(e,t){let n=s(t,j),r=[[`path`,{d:`m15 18-6-6 6-6`}]];S(e,m({name:`chevron-left`},()=>n,{get iconNode(){return r}}))}var N=f(`<span class="text-muted-foreground"> </span>`),P=f(`<!> <p class="text-muted-foreground mt-2 text-center font-mono text-xs"> </p>`,1),F=f(`<p class="text-muted-foreground py-20 text-center"> </p>`),I=f(`<p class="text-destructive py-20 text-center"> </p>`),L=f(`<div class="mx-auto h-full max-w-2xl overflow-auto px-4 pb-12"><div class="flex items-center gap-2 py-2"><a id="configuration-back-link" class="text-muted-foreground hover:text-foreground -ms-1 rounded-md p-1 transition-colors"><!></a> <h2 class="min-w-0 truncate font-medium"><!> </h2> <div class="ms-auto"><!></div></div> <!></div>`);function R(s,f){c(f,!0);let m=()=>u(T,`$dict`,S),[S,j]=v(),R=g(()=>k.params.component??``),z=g(()=>E.get(n(R))),B=g(()=>w(n(R)));function V(e){return`code`in e&&e.code===404}var H=L(),U=o(H),W=o(U);M(o(W),{class:`size-4`}),a(W);var G=_(W,2),K=o(G),q=e=>{var t=N(),r=d(t);h(()=>i(r,`${n(B).namespace??``}.`)),p(e,t)};y(K,e=>{n(B).namespace!=="default"&&e(q)});var J=_(K,1,!0);a(G);var Y=_(G,2),X=o(Y);C(X,{get store(){return n(z)},silent:!0,awaited:(e,t=r)=>{A(e,{role:`system:configuration:create`,denied:e=>{},children:(e,n)=>{O(e,{get configuration(){return t()}})},$$slots:{denied:!0,default:!0}})},$$slots:{awaited:!0}}),a(Y),a(U);var Z=_(U,2);C(Z,{get store(){return n(z)},awaited:(t,n=r)=>{var a=P(),o=e(a);D(o,{get value(){return n().configuration}});var s=_(o,2),c=d(s,!0);h(()=>i(c,n().epoch)),p(t,a)},error:(a,o=r)=>{var s=t(),c=e(s),l=e=>{var t=F(),n=d(t,!0);h(()=>i(n,m().value.none)),p(e,t)},u=g(()=>V(o())),f=e=>{var t=I(),n=d(t,!0);h(()=>i(n,o().message)),p(e,t)};y(c,e=>{n(u)?e(l):e(f,-1)}),p(a,s)},$$slots:{awaited:!0,error:!0}}),a(H),h(()=>{l(W,`href`,`${x??``}/`),l(W,`aria-label`,m().value.title),i(J,n(B).component)}),p(s,H),b(),j()}export{R as component};
|