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.
- package/assets/{add-D7df9hQr.js → add-DFzzaDhZ.js} +1 -1
- package/assets/{add-group-RXQ99YtQ.js → add-group-BVYkGCd9.js} +1 -1
- package/assets/{add-user-BP4dg4oX.js → add-user-Dq_U0RCT.js} +1 -1
- package/assets/{app-layout-C3Dkx6b_.js → app-layout-C7q3_eFS.js} +1 -1
- package/assets/{app-sidebar-BNQHpyeO.js → app-sidebar-BCtD_nHo.js} +1 -1
- package/assets/app.js +2 -2
- package/assets/{catalog-D5n6CL5p.js → catalog-DYJ6dK_P.js} +1 -1
- package/assets/{dashboard-CP0TO_MA.js → dashboard-DEVNMK2g.js} +1 -1
- package/assets/{form-D2npnweI.js → form-B4ymMuwj.js} +1 -1
- package/assets/{home-Bg77E5_a.js → home-ipCg51mN.js} +2 -2
- package/assets/{list-Bm0I-TgD.js → list-C_KPYQc4.js} +1 -1
- package/assets/manifest.json +25 -25
- package/assets/{module-BfZ6JMQt.js → module-Bf9rzSBs.js} +1 -1
- package/assets/nav-main-UuH4U_0H.js +1 -0
- package/assets/{notification-CHxg1fmU.js → notification-C6X6f-xS.js} +1 -1
- package/assets/{welcome-BhA1mjx-.js → welcome-Cu8G7BE9.js} +1 -1
- package/lib/media-manager/Items.js +1 -0
- package/package.json +1 -1
- package/assets/nav-main-CEXmFJje.js +0 -1
|
@@ -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 +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};
|