ode-explorer 1.0.0-dev.202307041550 → 1.0.0-dev.202307050756

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.
@@ -1 +1 @@
1
- import{u as x,a9 as h,G as j,aa as f,c as y,ab as C,j as o,$ as a}from"./index.js";import{C as I}from"./Card.js";import"./Tooltip.js";import"./usePopper.js";const O=()=>{var c,d;const{currentApp:p}=x(),{data:e,isFetching:u}=h(),n=j(),i=f(),{setSelectedFolders:l,setFolderIds:r,openFolder:m}=y();function g(s){i.includes(s.id)?(r(i.filter(t=>t!==s.id)),l(n.filter(t=>t.id!==s.id))):(r([...i,s.id]),l([...n,s]))}const F=C({from:{opacity:0},to:{opacity:1}});return(c=e==null?void 0:e.pages[0])!=null&&c.folders.length?o.jsx(a.ul,{className:"grid ps-0 list-unstyled mb-24",children:(d=e==null?void 0:e.pages[0])==null?void 0:d.folders.map(s=>{const{id:t,name:S}=s;return o.jsx(a.li,{className:"g-col-4",style:{...F},children:o.jsx(I,{app:p,name:S,isFolder:!0,isLoading:u,isSelected:i.includes(s.id),onOpen:()=>m({folder:s,folderId:s.id}),onSelect:()=>g(s)})},t)})}):null};export{O as default};
1
+ import{u as x,a9 as f,G as h,aa as j,c as y,ab as I,j as c,$ as a}from"./index.js";import{C}from"./Card.js";import"./Tooltip.js";import"./usePopper.js";const b=()=>{const t=document.querySelector("html");return()=>{t&&t.scrollIntoView()}},R=()=>{var d,p;const{currentApp:t}=x(),{data:e,isFetching:u}=f(),n=h(),l=j(),{setSelectedFolders:r,setFolderIds:i,openFolder:m}=y();function g(s){l.includes(s.id)?(i(l.filter(o=>o!==s.id)),r(n.filter(o=>o.id!==s.id))):(i([...l,s.id]),r([...n,s]))}const S=I({from:{opacity:0},to:{opacity:1}}),F=b();return(d=e==null?void 0:e.pages[0])!=null&&d.folders.length?c.jsx(a.ul,{className:"grid ps-0 list-unstyled mb-24",children:(p=e==null?void 0:e.pages[0])==null?void 0:p.folders.map(s=>{const{id:o,name:T}=s;return c.jsx(a.li,{className:"g-col-4",style:{...S},children:c.jsx(C,{app:t,name:T,isFolder:!0,isLoading:u,isSelected:l.includes(s.id),onOpen:()=>{F(),m({folder:s,folderId:s.id})},onSelect:()=>g(s)})},o)})}):null};export{R as default};
package/dist/version.txt CHANGED
@@ -1 +1 @@
1
- ode-explorer=1.0-feat-explorer-SNAPSHOT 04/07/2023 15:50:46
1
+ ode-explorer=1.0-feat-explorer-SNAPSHOT 05/07/2023 07:57:33
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ode-explorer",
3
- "version": "1.0.0-dev.202307041550",
3
+ "version": "1.0.0-dev.202307050756",
4
4
  "description": "Open Digital Education Explorer",
5
5
  "homepage": "https://github.com/opendigitaleducation/explorer#readme",
6
6
  "bugs": {