Skip to content

Commit

Permalink
Deploying to gh-pages from @ 0f9b617 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
jassmith committed Feb 11, 2024
1 parent ebe940f commit eb04261
Show file tree
Hide file tree
Showing 92 changed files with 98 additions and 98 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import{j as e,a as l}from"./marked.esm-dbrxtycE.js";import{r as t}from"./index-BMVQvedj.js";import{G as M}from"./image-window-loader-ae1-l40w.js";import{D as u}from"./data-editor-all-vh5PYcJs.js";import{S as x}from"./story-utils-K2EZnGjM.js";import{D as T,M as a,H as i,W as y}from"./doc-wrapper-m1-LpzDL.js";import"./throttle-7EuXLZa7.js";import"./_baseIteratee-WTHxv43n.js";import"./iframe-qD4w8K__.js";import"../sb-preview/runtime.js";import"./flatten-qRvRBp6y.js";import"./scrolling-data-grid-GIDCmpe8.js";import"./toConsumableArray-ppDpjNRJ.js";const F={title:"Glide-Data-Grid/Docs",decorators:[r=>e(x,{children:e(r,{})})]},s=[{name:"Deidre Morris",company:"GONKLE",email:"[email protected]",phone:"+1 (867) 507-3332"},{name:"Sheryl Craig",company:"EVENTAGE",email:"[email protected]",phone:"+1 (869) 520-2227"},{name:"Lidia Bowers",company:"ANOCHA",email:"[email protected]",phone:"+1 (808) 414-3826"},{name:"Jones Norton",company:"REPETWIRE",email:"[email protected]",phone:"+1 (875) 582-3320"},{name:"Lula Bruce",company:"COMDOM",email:"[email protected]",phone:"+1 (873) 452-2472"},{name:"Larsen Montgomery",company:"SQUISH",email:"[email protected]",phone:"+1 (893) 482-3651"},{name:"Becky Bright",company:"COMCUR",email:"[email protected]",phone:"+1 (879) 494-2331"},{name:"Charlotte Rowland",company:"FROLIX",email:"[email protected]",phone:"+1 (861) 439-2134"},{name:"Sonya Hensley",company:"GEEKETRON",email:"[email protected]",phone:"+1 (802) 553-2194"},{name:"Stephenson Guthrie",company:"EXOSWITCH",email:"[email protected]",phone:"+1 (903) 449-3271"},{name:"Mcmillan Cline",company:"TURNLING",email:"[email protected]",phone:"+1 (982) 496-2454"},{name:"Kemp Davis",company:"TETRATREX",email:"[email protected]",phone:"+1 (859) 594-2982"},{name:"Matilda Levy",company:"SLOFAST",email:"[email protected]",phone:"+1 (841) 521-2444"},{name:"Hattie Simpson",company:"COMTRAK",email:"[email protected]",phone:"+1 (962) 587-3805"},{name:"Kinney Munoz",company:"IDETICA",email:"[email protected]",phone:"+1 (921) 513-2012"},{name:"Lambert Raymond",company:"TURNABOUT",email:"[email protected]",phone:"+1 (919) 519-2442"},{name:"Bryant Dunlap",company:"BYTREX",email:"[email protected]",phone:"+1 (872) 583-2883"}],o=()=>{const r=t.useCallback(n=>{const[S,R]=n,p=s[R][["name","company","email","phone"][S]];return{kind:M.Text,allowOverlay:!1,displayData:p,data:p}},[]),[m,C]=t.useState(!1),[c,w]=t.useState(!1),[d,f]=t.useState(!0),h=t.useMemo(()=>[{title:"Name",id:"name"},{title:"Company",id:"company"},{title:"Email",id:"email"},{title:"Phone",id:"phone"}],[]);return l(T,{children:[e(a,{children:`
import{j as e,a as l}from"./marked.esm-dbrxtycE.js";import{r as t}from"./index-BMVQvedj.js";import{G as M}from"./image-window-loader-aMebukIX.js";import{D as u}from"./data-editor-all-kwt0I9Kc.js";import{S as x}from"./story-utils-K2EZnGjM.js";import{D as T,M as a,H as i,W as y}from"./doc-wrapper-m1-LpzDL.js";import"./throttle-7EuXLZa7.js";import"./_baseIteratee-WTHxv43n.js";import"./iframe-lQqvcp2b.js";import"../sb-preview/runtime.js";import"./flatten-qRvRBp6y.js";import"./scrolling-data-grid-AbyJF5mC.js";import"./toConsumableArray-ppDpjNRJ.js";const F={title:"Glide-Data-Grid/Docs",decorators:[r=>e(x,{children:e(r,{})})]},s=[{name:"Deidre Morris",company:"GONKLE",email:"[email protected]",phone:"+1 (867) 507-3332"},{name:"Sheryl Craig",company:"EVENTAGE",email:"[email protected]",phone:"+1 (869) 520-2227"},{name:"Lidia Bowers",company:"ANOCHA",email:"[email protected]",phone:"+1 (808) 414-3826"},{name:"Jones Norton",company:"REPETWIRE",email:"[email protected]",phone:"+1 (875) 582-3320"},{name:"Lula Bruce",company:"COMDOM",email:"[email protected]",phone:"+1 (873) 452-2472"},{name:"Larsen Montgomery",company:"SQUISH",email:"[email protected]",phone:"+1 (893) 482-3651"},{name:"Becky Bright",company:"COMCUR",email:"[email protected]",phone:"+1 (879) 494-2331"},{name:"Charlotte Rowland",company:"FROLIX",email:"[email protected]",phone:"+1 (861) 439-2134"},{name:"Sonya Hensley",company:"GEEKETRON",email:"[email protected]",phone:"+1 (802) 553-2194"},{name:"Stephenson Guthrie",company:"EXOSWITCH",email:"[email protected]",phone:"+1 (903) 449-3271"},{name:"Mcmillan Cline",company:"TURNLING",email:"[email protected]",phone:"+1 (982) 496-2454"},{name:"Kemp Davis",company:"TETRATREX",email:"[email protected]",phone:"+1 (859) 594-2982"},{name:"Matilda Levy",company:"SLOFAST",email:"[email protected]",phone:"+1 (841) 521-2444"},{name:"Hattie Simpson",company:"COMTRAK",email:"[email protected]",phone:"+1 (962) 587-3805"},{name:"Kinney Munoz",company:"IDETICA",email:"[email protected]",phone:"+1 (921) 513-2012"},{name:"Lambert Raymond",company:"TURNABOUT",email:"[email protected]",phone:"+1 (919) 519-2442"},{name:"Bryant Dunlap",company:"BYTREX",email:"[email protected]",phone:"+1 (872) 583-2883"}],o=()=>{const r=t.useCallback(n=>{const[S,R]=n,p=s[R][["name","company","email","phone"][S]];return{kind:M.Text,allowOverlay:!1,displayData:p,data:p}},[]),[m,C]=t.useState(!1),[c,w]=t.useState(!1),[d,f]=t.useState(!0),h=t.useMemo(()=>[{title:"Name",id:"name"},{title:"Company",id:"company"},{title:"Email",id:"email"},{title:"Phone",id:"phone"}],[]);return l(T,{children:[e(a,{children:`
# Getting Started
Glide data grid is a powerful but flexible library requiring very few concepts required to get started. The grid will need data, columns, and a \`getCellContent\` callback to convert our data into cells on demand. Because the callback is used, there is no need to pre-format the data in any particular way, so long as it can be transformed into a cell. This example uses a flat array of objects.`}),e(i,{children:`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import{j as e,a as T}from"./marked.esm-dbrxtycE.js";import{r as i}from"./index-BMVQvedj.js";import{G as s}from"./image-window-loader-ae1-l40w.js";import{D as h}from"./data-editor-all-vh5PYcJs.js";import{S as b}from"./story-utils-K2EZnGjM.js";import{D as x,M as d,H as y,W as u}from"./doc-wrapper-m1-LpzDL.js";import"./throttle-7EuXLZa7.js";import"./_baseIteratee-WTHxv43n.js";import"./iframe-qD4w8K__.js";import"../sb-preview/runtime.js";import"./flatten-qRvRBp6y.js";import"./scrolling-data-grid-GIDCmpe8.js";import"./toConsumableArray-ppDpjNRJ.js";const W={title:"Glide-Data-Grid/Docs",decorators:[a=>e(b,{children:e(a,{})})]},f=[{name:"Deidre Morris",company:"GONKLE",email:"[email protected]",phone:"+1 (867) 507-3332"},{name:"Sheryl Craig",company:"EVENTAGE",email:"[email protected]",phone:"+1 (869) 520-2227"},{name:"Lidia Bowers",company:"ANOCHA",email:"[email protected]",phone:"+1 (808) 414-3826"},{name:"Jones Norton",company:"REPETWIRE",email:"[email protected]",phone:"+1 (875) 582-3320"},{name:"Lula Bruce",company:"COMDOM",email:"[email protected]",phone:"+1 (873) 452-2472"},{name:"Larsen Montgomery",company:"SQUISH",email:"[email protected]",phone:"+1 (893) 482-3651"},{name:"Becky Bright",company:"COMCUR",email:"[email protected]",phone:"+1 (879) 494-2331"},{name:"Charlotte Rowland",company:"FROLIX",email:"[email protected]",phone:"+1 (861) 439-2134"},{name:"Sonya Hensley",company:"GEEKETRON",email:"[email protected]",phone:"+1 (802) 553-2194"},{name:"Stephenson Guthrie",company:"EXOSWITCH",email:"[email protected]",phone:"+1 (903) 449-3271"},{name:"Mcmillan Cline",company:"TURNLING",email:"[email protected]",phone:"+1 (982) 496-2454"},{name:"Kemp Davis",company:"TETRATREX",email:"[email protected]",phone:"+1 (859) 594-2982"},{name:"Matilda Levy",company:"SLOFAST",email:"[email protected]",phone:"+1 (841) 521-2444"},{name:"Hattie Simpson",company:"COMTRAK",email:"[email protected]",phone:"+1 (962) 587-3805"},{name:"Kinney Munoz",company:"IDETICA",email:"[email protected]",phone:"+1 (921) 513-2012"},{name:"Lambert Raymond",company:"TURNABOUT",email:"[email protected]",phone:"+1 (919) 519-2442"},{name:"Bryant Dunlap",company:"BYTREX",email:"[email protected]",phone:"+1 (872) 583-2883"}],m=()=>{const a=i.useRef([{name:"Deidre Morris",company:"GONKLE",email:"[email protected]",phone:"+1 (867) 507-3332"},{name:"Sheryl Craig",company:"EVENTAGE",email:"[email protected]",phone:"+1 (869) 520-2227"},{name:"Lidia Bowers",company:"ANOCHA",email:"[email protected]",phone:"+1 (808) 414-3826"},{name:"Jones Norton",company:"REPETWIRE",email:"[email protected]",phone:"+1 (875) 582-3320"},{name:"Lula Bruce",company:"COMDOM",email:"[email protected]",phone:"+1 (873) 452-2472"},{name:"Larsen Montgomery",company:"SQUISH",email:"[email protected]",phone:"+1 (893) 482-3651"},{name:"Becky Bright",company:"COMCUR",email:"[email protected]",phone:"+1 (879) 494-2331"},{name:"Charlotte Rowland",company:"FROLIX",email:"[email protected]",phone:"+1 (861) 439-2134"},{name:"Sonya Hensley",company:"GEEKETRON",email:"[email protected]",phone:"+1 (802) 553-2194"},{name:"Stephenson Guthrie",company:"EXOSWITCH",email:"[email protected]",phone:"+1 (903) 449-3271"},{name:"Mcmillan Cline",company:"TURNLING",email:"[email protected]",phone:"+1 (982) 496-2454"},{name:"Kemp Davis",company:"TETRATREX",email:"[email protected]",phone:"+1 (859) 594-2982"},{name:"Matilda Levy",company:"SLOFAST",email:"[email protected]",phone:"+1 (841) 521-2444"},{name:"Hattie Simpson",company:"COMTRAK",email:"[email protected]",phone:"+1 (962) 587-3805"},{name:"Kinney Munoz",company:"IDETICA",email:"[email protected]",phone:"+1 (921) 513-2012"},{name:"Lambert Raymond",company:"TURNABOUT",email:"[email protected]",phone:"+1 (919) 519-2442"},{name:"Bryant Dunlap",company:"BYTREX",email:"[email protected]",phone:"+1 (872) 583-2883"}]),E=i.useCallback(t=>{const[o,l]=t,n=a.current[l][["name","company","email","phone"][o]];return{kind:s.Text,allowOverlay:!0,displayData:n,data:n}},[]),k=i.useCallback(t=>{const[o,l]=t,n=f[l][["name","company","email","phone"][o]];return{kind:s.Text,allowOverlay:!0,displayData:n,data:n}},[]),R=i.useCallback((t,o)=>{if(o.kind!==s.Text)return;const l=["name","company","email","phone"],[r,c]=t,n=l[r];a.current[c][n]=o.data},[]),p=i.useMemo(()=>[{title:"Name",id:"name"},{title:"Company",id:"company"},{title:"Email",id:"email"},{title:"Phone",id:"phone"}],[]);return T(x,{children:[e(d,{children:`
import{j as e,a as T}from"./marked.esm-dbrxtycE.js";import{r as i}from"./index-BMVQvedj.js";import{G as s}from"./image-window-loader-aMebukIX.js";import{D as h}from"./data-editor-all-kwt0I9Kc.js";import{S as b}from"./story-utils-K2EZnGjM.js";import{D as x,M as d,H as y,W as u}from"./doc-wrapper-m1-LpzDL.js";import"./throttle-7EuXLZa7.js";import"./_baseIteratee-WTHxv43n.js";import"./iframe-lQqvcp2b.js";import"../sb-preview/runtime.js";import"./flatten-qRvRBp6y.js";import"./scrolling-data-grid-AbyJF5mC.js";import"./toConsumableArray-ppDpjNRJ.js";const W={title:"Glide-Data-Grid/Docs",decorators:[a=>e(b,{children:e(a,{})})]},f=[{name:"Deidre Morris",company:"GONKLE",email:"[email protected]",phone:"+1 (867) 507-3332"},{name:"Sheryl Craig",company:"EVENTAGE",email:"[email protected]",phone:"+1 (869) 520-2227"},{name:"Lidia Bowers",company:"ANOCHA",email:"[email protected]",phone:"+1 (808) 414-3826"},{name:"Jones Norton",company:"REPETWIRE",email:"[email protected]",phone:"+1 (875) 582-3320"},{name:"Lula Bruce",company:"COMDOM",email:"[email protected]",phone:"+1 (873) 452-2472"},{name:"Larsen Montgomery",company:"SQUISH",email:"[email protected]",phone:"+1 (893) 482-3651"},{name:"Becky Bright",company:"COMCUR",email:"[email protected]",phone:"+1 (879) 494-2331"},{name:"Charlotte Rowland",company:"FROLIX",email:"[email protected]",phone:"+1 (861) 439-2134"},{name:"Sonya Hensley",company:"GEEKETRON",email:"[email protected]",phone:"+1 (802) 553-2194"},{name:"Stephenson Guthrie",company:"EXOSWITCH",email:"[email protected]",phone:"+1 (903) 449-3271"},{name:"Mcmillan Cline",company:"TURNLING",email:"[email protected]",phone:"+1 (982) 496-2454"},{name:"Kemp Davis",company:"TETRATREX",email:"[email protected]",phone:"+1 (859) 594-2982"},{name:"Matilda Levy",company:"SLOFAST",email:"[email protected]",phone:"+1 (841) 521-2444"},{name:"Hattie Simpson",company:"COMTRAK",email:"[email protected]",phone:"+1 (962) 587-3805"},{name:"Kinney Munoz",company:"IDETICA",email:"[email protected]",phone:"+1 (921) 513-2012"},{name:"Lambert Raymond",company:"TURNABOUT",email:"[email protected]",phone:"+1 (919) 519-2442"},{name:"Bryant Dunlap",company:"BYTREX",email:"[email protected]",phone:"+1 (872) 583-2883"}],m=()=>{const a=i.useRef([{name:"Deidre Morris",company:"GONKLE",email:"[email protected]",phone:"+1 (867) 507-3332"},{name:"Sheryl Craig",company:"EVENTAGE",email:"[email protected]",phone:"+1 (869) 520-2227"},{name:"Lidia Bowers",company:"ANOCHA",email:"[email protected]",phone:"+1 (808) 414-3826"},{name:"Jones Norton",company:"REPETWIRE",email:"[email protected]",phone:"+1 (875) 582-3320"},{name:"Lula Bruce",company:"COMDOM",email:"[email protected]",phone:"+1 (873) 452-2472"},{name:"Larsen Montgomery",company:"SQUISH",email:"[email protected]",phone:"+1 (893) 482-3651"},{name:"Becky Bright",company:"COMCUR",email:"[email protected]",phone:"+1 (879) 494-2331"},{name:"Charlotte Rowland",company:"FROLIX",email:"[email protected]",phone:"+1 (861) 439-2134"},{name:"Sonya Hensley",company:"GEEKETRON",email:"[email protected]",phone:"+1 (802) 553-2194"},{name:"Stephenson Guthrie",company:"EXOSWITCH",email:"[email protected]",phone:"+1 (903) 449-3271"},{name:"Mcmillan Cline",company:"TURNLING",email:"[email protected]",phone:"+1 (982) 496-2454"},{name:"Kemp Davis",company:"TETRATREX",email:"[email protected]",phone:"+1 (859) 594-2982"},{name:"Matilda Levy",company:"SLOFAST",email:"[email protected]",phone:"+1 (841) 521-2444"},{name:"Hattie Simpson",company:"COMTRAK",email:"[email protected]",phone:"+1 (962) 587-3805"},{name:"Kinney Munoz",company:"IDETICA",email:"[email protected]",phone:"+1 (921) 513-2012"},{name:"Lambert Raymond",company:"TURNABOUT",email:"[email protected]",phone:"+1 (919) 519-2442"},{name:"Bryant Dunlap",company:"BYTREX",email:"[email protected]",phone:"+1 (872) 583-2883"}]),E=i.useCallback(t=>{const[o,l]=t,n=a.current[l][["name","company","email","phone"][o]];return{kind:s.Text,allowOverlay:!0,displayData:n,data:n}},[]),k=i.useCallback(t=>{const[o,l]=t,n=f[l][["name","company","email","phone"][o]];return{kind:s.Text,allowOverlay:!0,displayData:n,data:n}},[]),R=i.useCallback((t,o)=>{if(o.kind!==s.Text)return;const l=["name","company","email","phone"],[r,c]=t,n=l[r];a.current[c][n]=o.data},[]),p=i.useMemo(()=>[{title:"Name",id:"name"},{title:"Company",id:"company"},{title:"Email",id:"email"},{title:"Phone",id:"phone"}],[]);return T(x,{children:[e(d,{children:`
# Editing Data
Editing data is handled via callbacks. Taking the getting started example as a starting point, the \`getContent\` callback can be modified to allow editing.`}),e(y,{children:`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import{j as e,a as p}from"./marked.esm-dbrxtycE.js";import{r as c}from"./index-BMVQvedj.js";import{G as g,a as n}from"./image-window-loader-ae1-l40w.js";import{D as r}from"./data-editor-all-vh5PYcJs.js";import{S as w}from"./story-utils-K2EZnGjM.js";import{D as C,M as o,H as a,W as d}from"./doc-wrapper-m1-LpzDL.js";import"./throttle-7EuXLZa7.js";import"./_baseIteratee-WTHxv43n.js";import"./iframe-qD4w8K__.js";import"../sb-preview/runtime.js";import"./flatten-qRvRBp6y.js";import"./scrolling-data-grid-GIDCmpe8.js";import"./toConsumableArray-ppDpjNRJ.js";const O={title:"Glide-Data-Grid/Docs",decorators:[t=>e(w,{children:e(t,{})})]},i=()=>{const t=c.useCallback(l=>({kind:g.Text,allowOverlay:!1,displayData:l.toString(),data:l.toString()}),[]),u=c.useMemo(()=>[{title:"First",width:150},{title:"Second",width:150}],[]);return p(C,{children:[e(o,{children:"\n# Basic usage\n\n> The `GridColumn[]` passed to the `DataEditor` in the `columns` property should be memoized to avoid excessive re-rendering. These samples may not do this for the sake of brevity.\n\nThere are only two mandatory properties for each `GridColumn`: `title` and `id`. The id should be a stable id and not the index of the column. Additionally a `width` property can be provided which represents the width of the column in pixels. If a width is provided the id may be omited. This may change in a future version."}),e(a,{children:`
import{j as e,a as p}from"./marked.esm-dbrxtycE.js";import{r as c}from"./index-BMVQvedj.js";import{G as g,a as n}from"./image-window-loader-aMebukIX.js";import{D as r}from"./data-editor-all-kwt0I9Kc.js";import{S as w}from"./story-utils-K2EZnGjM.js";import{D as C,M as o,H as a,W as d}from"./doc-wrapper-m1-LpzDL.js";import"./throttle-7EuXLZa7.js";import"./_baseIteratee-WTHxv43n.js";import"./iframe-lQqvcp2b.js";import"../sb-preview/runtime.js";import"./flatten-qRvRBp6y.js";import"./scrolling-data-grid-AbyJF5mC.js";import"./toConsumableArray-ppDpjNRJ.js";const O={title:"Glide-Data-Grid/Docs",decorators:[t=>e(w,{children:e(t,{})})]},i=()=>{const t=c.useCallback(l=>({kind:g.Text,allowOverlay:!1,displayData:l.toString(),data:l.toString()}),[]),u=c.useMemo(()=>[{title:"First",width:150},{title:"Second",width:150}],[]);return p(C,{children:[e(o,{children:"\n# Basic usage\n\n> The `GridColumn[]` passed to the `DataEditor` in the `columns` property should be memoized to avoid excessive re-rendering. These samples may not do this for the sake of brevity.\n\nThere are only two mandatory properties for each `GridColumn`: `title` and `id`. The id should be a stable id and not the index of the column. Additionally a `width` property can be provided which represents the width of the column in pixels. If a width is provided the id may be omited. This may change in a future version."}),e(a,{children:`
const columns: GridColumn[] = [
{ title: "First", id: "first", width: 150 },
{ title: "Second", id: "second", width: 150 }
Expand Down
Loading

0 comments on commit eb04261

Please sign in to comment.