diff --git a/404.html b/404.html index 6f87ed1..902b460 100644 --- a/404.html +++ b/404.html @@ -5,7 +5,7 @@ - +
diff --git a/_app/immutable/chunks/entry.CqJLIjjn.js b/_app/immutable/chunks/entry.Be0Gp7OG.js similarity index 99% rename from _app/immutable/chunks/entry.CqJLIjjn.js rename to _app/immutable/chunks/entry.Be0Gp7OG.js index 378afb8..ff9dd01 100644 --- a/_app/immutable/chunks/entry.CqJLIjjn.js +++ b/_app/immutable/chunks/entry.Be0Gp7OG.js @@ -1,3 +1,3 @@ -import{P as ot}from"./runtime.DkqSkKrO.js";import{w as pe}from"./index.DRt9ZR3B.js";import{a as st,b as P}from"./paths.DHGntW90.js";new URL("sveltekit-internal://");function it(e,n){return e==="/"||n==="ignore"?e:n==="never"?e.endsWith("/")?e.slice(0,-1):e:n==="always"&&!e.endsWith("/")?e+"/":e}function ct(e){return e.split("%25").map(decodeURI).join("%25")}function lt(e){for(const n in e)e[n]=decodeURIComponent(e[n]);return e}function ce({href:e}){return e.split("#")[0]}const ft=["href","pathname","search","toString","toJSON"];function ut(e,n,t){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(r,o){if(o==="get"||o==="getAll"||o==="has")return s=>(t(s),r[o](s));n();const i=Reflect.get(r,o);return typeof i=="function"?i.bind(r):i}}),enumerable:!0,configurable:!0});for(const r of ft)Object.defineProperty(a,r,{get(){return n(),e[r]},enumerable:!0,configurable:!0});return a}const dt="/__data.json",ht=".html__data.json";function pt(e){return e.endsWith(".html")?e.replace(/\.html$/,ht):e.replace(/\/$/,"")+dt}function gt(...e){let n=5381;for(const t of e)if(typeof t=="string"){let a=t.length;for(;a;)n=n*33^t.charCodeAt(--a)}else if(ArrayBuffer.isView(t)){const a=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);let r=a.length;for(;r;)n=n*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(n>>>0).toString(36)}function mt(e){const n=atob(e),t=new Uint8Array(n.length);for(let a=0;a",1);function K(t,s){q(s,!1);const e=A(),a=()=>B(C,"$page",e);D();var o=F(),r=b(o),g=p(r);i(r);var n=c(c(r,!0)),h=p(n);i(n),w(()=>{var f;l(g,a().status),l(h,(f=a().error)==null?void 0:f.message)}),v(t,o),z()}export{K as component}; +import{f as b,c as p,s as c,a as v,t as d,r as i,b as l}from"../chunks/disclose-version.nVD1GsKE.js";import{u as x,a as u,c as $,r as m,b as k,d as y,g as E,e as j,p as q,t as w,f as z}from"../chunks/runtime.DkqSkKrO.js";import{s as A,a as B}from"../chunks/store.DvkKOton.js";import{p as C}from"../chunks/stores.BttJYbw1.js";function D(){const t=$,s=t.l.u;s&&(s.b.length&&x(()=>{_(t),m(s.b)}),u(()=>{const e=k(()=>s.m.map(y));return()=>{for(const a of e)typeof a=="function"&&a()}}),s.a.length&&u(()=>{_(t),m(s.a)}))}function _(t){if(t.l.s)for(const s of t.l.s)E(s);j(t.s)}var F=d("
",1);function K(t,s){q(s,!1);const e=A(),a=()=>B(C,"$page",e);D();var o=F(),r=b(o),g=p(r);i(r);var n=c(c(r,!0)),h=p(n);i(n),w(()=>{var f;l(g,a().status),l(h,(f=a().error)==null?void 0:f.message)}),v(t,o),z()}export{K as component}; diff --git a/_app/immutable/nodes/2.D8s762SF.js b/_app/immutable/nodes/2.y8wHwHaJ.js similarity index 98% rename from _app/immutable/nodes/2.D8s762SF.js rename to _app/immutable/nodes/2.y8wHwHaJ.js index c6fe27d..2bb1ef2 100644 --- a/_app/immutable/nodes/2.D8s762SF.js +++ b/_app/immutable/nodes/2.y8wHwHaJ.js @@ -1,4 +1,4 @@ -import{l as Se,G as B,d as je,e as pe,b as Z,a as ne,t as fe,g as $e,c as be,W as De,E as qe,f as Re,N as He}from"../chunks/themeOptions.svelte.L3gI9O9D.js";import{i as Le,a as Q}from"../chunks/props.BKMiv4-i.js";import{c as a,s as e,a as y,t as C,r as t,o as se,f as We,b as ie,n as Oe,p as ze}from"../chunks/disclose-version.nVD1GsKE.js";import{l as he,p as ge,a as we,t as F,f as ke,N as g,B as re,g as I,z as ue,u as Ge,n as ae,I as me}from"../chunks/runtime.DkqSkKrO.js";import{i as Ie}from"../chunks/this.CejIyEeZ.js";import{r as H,a as oe,d as Ve,e as Ne,s as _e}from"../chunks/index.C6iX3467.js";import{s as Ee,a as Pe}from"../chunks/store.DvkKOton.js";import{g as Be}from"../chunks/entry.CqJLIjjn.js";import{b as Fe}from"../chunks/paths.DHGntW90.js";import{p as Me}from"../chunks/stores.eZgNM1yc.js";function xe(r,i,u){if(r.multiple)return Je(r,i);for(var d of r.options){var c=K(d);if(Le(c,i)){d.selected=!0;return}}(!u||i!==void 0)&&(r.selectedIndex=-1)}function Ue(r,i){he(()=>{var u=new MutationObserver(()=>{var d=r.__value;xe(r,d)});return u.observe(r,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),()=>{u.disconnect()}})}function Ae(r,i,u){var d=!0;Se(r,"change",()=>{var c;if(r.multiple)c=[].map.call(r.querySelectorAll(":checked"),K);else{var _=r.querySelector(":checked");c=_&&K(_)}u(c)}),he(()=>{var c=i();if(xe(r,c,d),d&&c===void 0){var _=r.querySelector(":checked");_!==null&&(c=K(_),u(c))}r.__value=c,d=!1}),Ue(r)}function Je(r,i){for(var u of r.options)u.selected=~i.indexOf(K(u))}function K(r){return"__value"in r?r.__value:r.value}const s=Q({striped:!0,rowTracking:!0,rowSelectionHighlight:!0,records:200,grid_lines:[],get gridLines(){return this.grid_lines.reduce((r,i)=>r|i,B.None)},showControlColumn:!0});async function Ye(r){const i=+(r.url.searchParams.get("records")??"200");console.log("Loading page data for records = %d...",i),s.records=i;const d=await(await r.fetch(`https://my.api.mockaroo.com/people.json?key=a53dac10&records=${i}`)).json();return{total:i,data:je(d)}}const kt=Object.freeze(Object.defineProperty({__proto__:null,load:Ye},Symbol.toStringTag,{value:"Module"}));var Qe=C(`
The data view component shows data in tabular format.
The following is the list of features. Some of these may not be evident if the browser's width is +import{l as Se,G as B,d as je,e as pe,b as Z,a as ne,t as fe,g as $e,c as be,W as De,E as qe,f as Re,N as He}from"../chunks/themeOptions.svelte.L3gI9O9D.js";import{i as Le,a as Q}from"../chunks/props.BKMiv4-i.js";import{c as a,s as e,a as y,t as C,r as t,o as se,f as We,b as ie,n as Oe,p as ze}from"../chunks/disclose-version.nVD1GsKE.js";import{l as he,p as ge,a as we,t as F,f as ke,N as g,B as re,g as I,z as ue,u as Ge,n as ae,I as me}from"../chunks/runtime.DkqSkKrO.js";import{i as Ie}from"../chunks/this.CejIyEeZ.js";import{r as H,a as oe,d as Ve,e as Ne,s as _e}from"../chunks/index.C6iX3467.js";import{s as Ee,a as Pe}from"../chunks/store.DvkKOton.js";import{g as Be}from"../chunks/entry.Be0Gp7OG.js";import{b as Fe}from"../chunks/paths.Du6MGWI8.js";import{p as Me}from"../chunks/stores.BttJYbw1.js";function xe(r,i,u){if(r.multiple)return Je(r,i);for(var d of r.options){var c=K(d);if(Le(c,i)){d.selected=!0;return}}(!u||i!==void 0)&&(r.selectedIndex=-1)}function Ue(r,i){he(()=>{var u=new MutationObserver(()=>{var d=r.__value;xe(r,d)});return u.observe(r,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),()=>{u.disconnect()}})}function Ae(r,i,u){var d=!0;Se(r,"change",()=>{var c;if(r.multiple)c=[].map.call(r.querySelectorAll(":checked"),K);else{var _=r.querySelector(":checked");c=_&&K(_)}u(c)}),he(()=>{var c=i();if(xe(r,c,d),d&&c===void 0){var _=r.querySelector(":checked");_!==null&&(c=K(_),u(c))}r.__value=c,d=!1}),Ue(r)}function Je(r,i){for(var u of r.options)u.selected=~i.indexOf(K(u))}function K(r){return"__value"in r?r.__value:r.value}const s=Q({striped:!0,rowTracking:!0,rowSelectionHighlight:!0,records:200,grid_lines:[],get gridLines(){return this.grid_lines.reduce((r,i)=>r|i,B.None)},showControlColumn:!0});async function Ye(r){const i=+(r.url.searchParams.get("records")??"200");console.log("Loading page data for records = %d...",i),s.records=i;const d=await(await r.fetch(`https://my.api.mockaroo.com/people.json?key=a53dac10&records=${i}`)).json();return{total:i,data:je(d)}}const kt=Object.freeze(Object.defineProperty({__proto__:null,load:Ye},Symbol.toStringTag,{value:"Module"}));var Qe=C(`
The data view component shows data in tabular format.
The following is the list of features. Some of these may not be evident if the browser's width is enough to show all data at once, such as the pinnable columns. To overcome this, either make the browser window smaller, or resize some columns until the data goes off view.
The short answer is Yes! The cell contents are rendered by providing a custom snippet named dataCell. However, note that WjDataView will not provide any form of keyboard navigation of any kind.
Having said this, use dataCell to provide cell content with controls such as diff --git a/_app/version.json b/_app/version.json index 8f05527..75e2d81 100644 --- a/_app/version.json +++ b/_app/version.json @@ -1 +1 @@ -{"version":"1722062695816"} \ No newline at end of file +{"version":"1722104965943"} \ No newline at end of file diff --git a/index.html b/index.html index cbe4b63..48f895e 100644 --- a/index.html +++ b/index.html @@ -17,12 +17,12 @@ })(); - - + + - - + + @@ -31,7 +31,7 @@