diff options
Diffstat (limited to 'www/releases/_artifacts/v1.0.9/missing-js')
4 files changed, 0 insertions, 12 deletions
diff --git a/www/releases/_artifacts/v1.0.9/missing-js/19.js b/www/releases/_artifacts/v1.0.9/missing-js/19.js deleted file mode 100644 index 1e034eb..0000000 --- a/www/releases/_artifacts/v1.0.9/missing-js/19.js +++ /dev/null @@ -1,3 +0,0 @@ -function T(e){return(...t)=>(console.log("%c%s","color:green",e,...t),t.at(-1))}const h=T("19.js");function E(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function f(e,t,n,r,i={}){const{wrap:l=!0}=i,u=e+"ElementSibling",a=()=>l?e==="next"?d(t,n):g(t,n).at(-1):null;if(!r)return a();let o=r;for(;;){for(;o[u]===null;)if(o=o.parentElement,o===t)return a();o=o[u];const s=o.matches(n)?o:d(o,n);if(s)return s}}function d(e,t){return e.querySelector(t)}function g(e,t){return Array.from(e.querySelectorAll(t))}function L(e,t,n,r={}){const i=l=>(r.addedBy&&!r.addedBy.isConnected&&v({target:e,type:t,listener:i,options:r}),n(l));return e.addEventListener(t,i,r),{target:e,type:t,options:r,listener:i}}function v({target:e,type:t,listener:n,options:r}){return e.removeEventListener(t,n,r)}function y(e,t){for(const n of e.split(" "))n==="default"&&t.preventDefault(),n==="bubbling"&&t.stopPropagation(),n==="propagation"&&t.stopImmediatePropagation()}function A(e,t){return n=>{y(e,n),t(n)}}function w(e,t,n){return e.dispatchEvent(new CustomEvent(t,{detail:n}))}function k(e,t,n=void 0){if(typeof t=="object"){for(const i in t)e.setAttribute(E(i),t[i]);return null}const r=e.getAttribute(t);return n===void 0?e.getAttribute(t):n===null?(e.removeAttribute(t),r):(e.setAttribute(t,n),n)}function x(e){const t=document.createElement("div");return t.append(e),t.innerHTML}function b(e){return e==null?"":e instanceof Node?x(e):String(e).replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll("'","'").replaceAll('"',""")}function N(e,...t){const n=document.createElement("template");return typeof e=="object"&&"raw"in e&&(e=String.raw(e,...t.map(b))),n.innerHTML=e,n.content}function O(e){return e instanceof HTMLElement?e:null}function P(e,t,n,r={}){return f("next",e,t,n,r)}function S(e,t,n,r={}){return f("previous",e,t,n,r)}function B(e){const l={},u=o=>~~(o.altKey&&1)|~~(o.ctrlKey&&2)|~~(o.metaKey&&4)|~~(o.shiftKey&&8),a=o=>{const s=o.split("+"),c=s.pop();let p=0;for(const m in s)switch(m.toLowerCase()){case"alt":p|=1;break;case"ctrl":p|=2;break;case"meta":p|=4;break;case"shift":p|=8;break}return[c,p]};for(const[o,s]of Object.entries(e)){const[c,p]=a(o);(l[c]??(l[c]=new Array(8)))[p]=s}return o=>l[o.key]?.[u(o)]?.(o)}function C(e,t,{mode:n="trailing"}={}){let r=null;return(...i)=>{r?clearTimeout(r):n==="leading"&&t(...i),r=setTimeout(()=>{n==="trailing"&&t(...i),r=null},e)}}function D(e,t){const n=new WeakSet;return(r=document,i={})=>{const l=r.getRootNode();g(r,e).forEach(u=>{n.has(u)||(n.add(u),t(u,{options:i,root:l}))})}}function K(e,t){return n=>{let r=null;const i=(...a)=>{const o=r;r=a.at(-1),r instanceof DocumentFragment&&(r=r.lastChild),o?o.after(...a):e.prepend(...a)},l=a=>{if(a)for(;a.nextSibling;)a.nextSibling.remove();else e.replaceChildren()},u=e.getRootNode();for(const a of n){const o=t.idOf(a),s=u.getElementById(o);i(s?t.update?.(s,a)??s:t.create(a,{id:o}))}l(r)}}export{d as $,g as $$,O as asHtml,k as attr,D as behavior,C as debounce,w as dispatch,y as halt,A as halts,B as hotkey,N as html,b as htmlescape,T as makelogger,P as next,v as off,L as on,S as prev,K as repeater,x as stringifyNode,f as traverse}; - -/*# sourceMappingURL=./19.js.map */
\ No newline at end of file diff --git a/www/releases/_artifacts/v1.0.9/missing-js/menu.js b/www/releases/_artifacts/v1.0.9/missing-js/menu.js deleted file mode 100644 index 80c3830..0000000 --- a/www/releases/_artifacts/v1.0.9/missing-js/menu.js +++ /dev/null @@ -1,3 +0,0 @@ -import{$ as m,$$ as h,on as o,dispatch as c,halts as g,attr as i,next as E,prev as _,asHtml as a,hotkey as w,behavior as f,makelogger as k}from"./19.js";const l=k("menu"),x="[role=menu]",s="[role=menuitem]",p=e=>h(e,s),y=(e,{root:r})=>{const t=i(e,"aria-controls");return t===null?null:r.getElementById(t)},u=e=>m(e,s),v=e=>p(e).at(-1)??null,d=e=>!e.hidden,B=f(x,(e,{root:r})=>{if(!(e instanceof HTMLElement))return;let t;p(e).forEach(n=>n.setAttribute("tabindex","-1")),o(e,"menu:open",n=>{t=n.detail?.opener,t||l("Warning: Menu",e,"opened without passing an `opener` element"),e.hidden=!1,u(e)?.focus()}),o(e,"menu:close",n=>{l("menu:close",e.hidden=!0),t?.focus()}),o(e,"focusout",n=>{d(e)&&(e.contains(n.relatedTarget)||t!==n.relatedTarget&&c(e,"menu:close"))}),o(e,"keydown",g("default",w({ArrowUp:n=>a(_(e,s,r.activeElement,{}))?.focus(),ArrowDown:n=>a(E(e,s,r.activeElement,{}))?.focus(),Space:n=>a(r.activeElement?.closest(s))?.click(),Home:n=>u(e)?.focus(),End:n=>v(e)?.focus(),Escape:n=>c(e,"menu:close")}))),o(window,"click",n=>{d(e)&&t!==n.target&&c(e,"menu:close")},{addedBy:e})}),M=f("[aria-haspopup=menu]",(e,{root:r})=>{const t=y(e,{root:r});if(t===null)return l("Error: Menu button",e,"has no menu.");o(t,"menu:close",n=>i(e,"aria-expanded","false"),{addedBy:e}),o(t,"menu:open",n=>i(e,"aria-expanded","true"),{addedBy:e}),o(e,"click",()=>c(t,d(t)?"menu:close":"menu:open",{opener:e}))});B(document);M(document);export{B as menu,M as menuButton}; - -/*# sourceMappingURL=./menu.js.map */
\ No newline at end of file diff --git a/www/releases/_artifacts/v1.0.9/missing-js/overflow-nav.js b/www/releases/_artifacts/v1.0.9/missing-js/overflow-nav.js deleted file mode 100644 index 8ede3f4..0000000 --- a/www/releases/_artifacts/v1.0.9/missing-js/overflow-nav.js +++ /dev/null @@ -1,3 +0,0 @@ -import{$ as f,asHtml as g,attr as d,behavior as p,makelogger as m,on as l}from"./19.js";const w=m("overflow-nav"),a=p("[data-overflow-nav]",(t,{options:{expandedClass:o="expanded"}})=>{const e=g(f(t,"[data-nav-expander]"));if(e===null)return w("Expand toggle missing from navbar ",t);const c=()=>t.scrollWidth>t.clientWidth,r=()=>t.classList.contains(o),n=(s=!r())=>{s?(t.classList.add(o),d(e,"aria-pressed",!0),e.textContent="\xD7"):(t.classList.remove(o),d(e,"aria-pressed",!1),e.textContent="\u2630")},i=()=>{const s=e.hidden;e.hidden=!c(),s!=e.hidden&&n(!1)};l(e,"click",()=>n()),i(),l(window,"resize",()=>i(),{addedBy:t})});var h=a;a(document);export{h as default}; - -/*# sourceMappingURL=./overflow-nav.js.map */
\ No newline at end of file diff --git a/www/releases/_artifacts/v1.0.9/missing-js/tabs.js b/www/releases/_artifacts/v1.0.9/missing-js/tabs.js deleted file mode 100644 index 873a350..0000000 --- a/www/releases/_artifacts/v1.0.9/missing-js/tabs.js +++ /dev/null @@ -1,3 +0,0 @@ -import{$ as m,$$ as p,on as t,attr as s,next as x,prev as b,asHtml as r,hotkey as T,behavior as k,makelogger as w}from"./19.js";const E=w("tabs"),c=e=>p(e,"[role=tab]"),u=e=>m(e,"[role=tab][aria-selected=true]"),i=(e,n)=>{const o=s(e,"aria-controls");return o===null?(E("Tab",e,"has no associated tabpanel"),null):n.getElementById(o)},f=(e,n,o,{focusTab:h=!0}={})=>{if(!o)return;const a=u(n);if(a){s(a,{ariaSelected:!1,tabindex:-1});const l=i(a,e);l&&(l.hidden=!0)}s(o,{ariaSelected:!0,tabindex:0});const d=i(o,e);d&&(d.hidden=!1),h&&o.focus()},g=k("[role=tablist]",(e,{root:n})=>{e instanceof HTMLElement&&(e.tabIndex=0,c(e).forEach(o=>o.tabIndex=-1),f(n,e,u(e),{focusTab:!1}),t(e,"focus",o=>u(e)?.focus()),t(e,"click",o=>f(n,e,r(r(o.target)?.closest("[role=tab]")))),t(e,"focusin",o=>f(n,e,r(r(o.target)?.closest("[role=tab]")))),t(e,"keydown",T({ArrowRight:o=>r(x(e,"[role=tab]",r(o.target)))?.focus(),ArrowLeft:o=>r(b(e,"[role=tab]",r(o.target)))?.focus(),Home:o=>c(e).at(0)?.focus(),End:o=>c(e).at(-1)?.focus()})))});g(document);var H=g;export{H as default,g as tablist}; - -/*# sourceMappingURL=./tabs.js.map */
\ No newline at end of file |