adminizer 4.4.0-build.173 → 4.4.0-build.174

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.
@@ -135,6 +135,7 @@ export class ImageItem extends File {
135
135
  isPublic: false
136
136
  });
137
137
  }
138
+ // TODO {where: {isPublic: true}, sort: "id ASC"} ???
138
139
  async getMeta(id) {
139
140
  // TODO refactor CRUD functions for DataAccessor usage
140
141
  return ((await this.adminizer.modelHandler.model.get(this.model)["_find"]({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "adminizer",
3
3
  "type": "module",
4
- "version": "4.4.0-build.173",
4
+ "version": "4.4.0-build.174",
5
5
  "main": "index.js",
6
6
  "exports": {
7
7
  ".": "./index.js",
@@ -1 +0,0 @@
1
- import{u as C,j as n,a_ as N,bj as S,C as d,bk as M,aO as v,bl as y,aP as x,b0 as w,aT as h,bm as A,b2 as G,b3 as O,b4 as E,W as u}from"./app.js";import{r as P}from"./monaco-ICtx6xoc.js";import i from"./material-icon-DwkE6wKL.js";import"./jsoneditor-D95dIAP2.js";import"./vendor-wzZzN_Jv.js";import"./handsontable-PVakPtJV.js";function R({items:o=[]}){const j=C(),[f,b]=P.useState(()=>{const e={};return o.forEach(s=>{const a=s.section||"Platform";e[a]=!1}),e}),c=e=>e.split("?")[0].replace(/\/$/,""),k=o.reduce((e,s)=>{const a=s.section||"Platform";return e[a]||(e[a]=[]),e[a].push(s),e},{}),l=e=>{const s=c(j.url),a=c(e);return s===a||s.startsWith(`${a}/`)},g=({item:e})=>{var s,a;return((s=e.actions)==null?void 0:s.length)>0?n.jsx(y,{asChild:!0,defaultOpen:l(e.link),className:"group/collapsible",children:n.jsxs(x,{children:[n.jsx(w,{asChild:!0,children:n.jsxs(h,{tooltip:e.title,children:[n.jsx(i,{name:e.icon,className:"!text-[18px]"}),n.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:e.title}),n.jsx(d,{className:"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90"})]})}),n.jsx(A,{children:n.jsx(G,{children:(a=e.actions)==null?void 0:a.map(r=>n.jsx(O,{children:n.jsx(E,{asChild:!0,isActive:l(r.link),children:r.type==="blank"?n.jsxs("a",{href:r.link,target:"_blank",rel:"noopener noreferrer",children:[r.icon&&n.jsx(i,{name:r.icon,className:"!text-[18px]"}),n.jsx("span",{children:r.title})]}):n.jsxs(u,{href:r.link,children:[r.icon&&n.jsx(i,{name:r.icon,className:"!text-[18px]"}),n.jsx("span",{children:r.title})]})})},r.id))})})]})},e.title):n.jsx(x,{children:n.jsx(h,{asChild:!0,isActive:l(e.link),tooltip:{children:e.title},children:e.type==="blank"?n.jsxs("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",children:[e.icon&&n.jsx(i,{name:e.icon,className:"!text-[18px]"}),n.jsx("span",{children:e.title})]}):n.jsxs(u,{href:e.link,children:[e.icon&&n.jsx(i,{name:e.icon,className:"!text-[18px]"}),n.jsx("span",{children:e.title})]})})},e.title)};return n.jsx(n.Fragment,{children:Object.entries(k).map(([e,s])=>{const a=s.some(t=>{var p;return((p=t.actions)==null?void 0:p.length)>0?t.actions.some(m=>l(m.link)):l(t.link)}),r=f[e]||a;return n.jsxs(N,{className:"px-2 py-0",children:[n.jsx(S,{asChild:!0,className:"cursor-pointer",onClick:()=>b(t=>({...t,[e]:!t[e]})),children:n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx(d,{className:`transform transition-transform duration-200 ${r?"rotate-90":""}`}),n.jsx("span",{children:e})]})}),r&&n.jsx(M,{children:n.jsx(v,{children:s.map(t=>n.jsx(g,{item:t},t.id||t.title))})})]},e)})})}export{R as NavMain};