adminizer 4.4.0-build.172 → 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-Cdmtt8h2.js → add-DFzzaDhZ.js} +1 -1
- package/assets/{add-form-BOfDrzHM.js → add-form-Taz9dTw_.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-BNHmoo2m.js → catalog-DYJ6dK_P.js} +1 -1
- package/assets/{dashboard-CP0TO_MA.js → dashboard-DEVNMK2g.js} +1 -1
- package/assets/{field-renderer-COAPOk5k.js → field-renderer-CVUxftOw.js} +2 -2
- package/assets/{form-DzO_7yAw.js → form-1GnTJlbE.js} +1 -1
- package/assets/{form-AwbrDHpn.js → form-B4ymMuwj.js} +1 -1
- package/assets/{home-CdZ89G0u.js → home-ipCg51mN.js} +2 -2
- package/assets/{list-Bm0I-TgD.js → list-C_KPYQc4.js} +1 -1
- package/assets/manifest.json +41 -41
- package/assets/{media-manager-BxCrWKws.js → media-manager-IknQnWel.js} +4 -4
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as i,j as e,L as l}from"./app.js";import{r as s}from"./monaco-ICtx6xoc.js";import{A as d}from"./app-layout-
|
|
1
|
+
import{u as i,j as e,L as l}from"./app.js";import{r as s}from"./monaco-ICtx6xoc.js";import{A as d}from"./app-layout-C7q3_eFS.js";import"./jsoneditor-D95dIAP2.js";import"./vendor-wzZzN_Jv.js";import"./handsontable-PVakPtJV.js";import"./app-shell-C8Cnr5Hy.js";import"./app-sidebar-BCtD_nHo.js";import"./nav-main-UuH4U_0H.js";import"./material-icon-DwkE6wKL.js";import"./app-sidebar-header-Bcpas2Np.js";import"./breadcrumbs-DSMzNYiS.js";import"./nav-user-DuCZNsZX.js";import"./user-info-BGQvqBmO.js";import"./user-menu-content-BDm88xaM.js";import"./theme-switcher-cgyA7_cO.js";import"./icon-DpkedrXG.js";const c=[];function q(){const r=i(),[n,a]=s.useState(null);return s.useEffect(()=>{const m=async()=>{const o=(await import(r.props.moduleComponent)).default;a(e.jsx(o,{data:r.props.data}))};(()=>{const t=r.props.moduleComponentCSS;if(!t||[...document.head.querySelectorAll("link[rel='stylesheet']")].some(p=>p.href.includes(t)))return;const o=document.createElement("link");o.rel="stylesheet",o.href=t,o.type="text/css",o.onload=()=>console.log(`CSS loaded: ${t}`),o.onerror=()=>console.error(`Failed to load CSS: ${t}`),document.head.appendChild(o)})(),m()},[]),e.jsx(d,{breadcrumbs:c,children:e.jsx("div",{className:"m-5",children:n||e.jsx(l,{className:"size-10 animate-spin text-neutral-500 mx-auto mt-[15%]"})})})}export{q as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as w,j as n,a_ as O,bj as y,C as k,bk as R,aO as A,bl as E,aP as g,b0 as P,aT as m,bm as T,b2 as _,b3 as L,b4 as $,W as N}from"./app.js";import{r as i}from"./monaco-ICtx6xoc.js";import l from"./material-icon-DwkE6wKL.js";import"./jsoneditor-D95dIAP2.js";import"./vendor-wzZzN_Jv.js";import"./handsontable-PVakPtJV.js";function q({items:c=[]}){const C=w(),j=e=>e.split("?")[0].replace(/\/$/,""),S=c.reduce((e,s)=>{const r=s.section||"Platform";return e[r]||(e[r]=[]),e[r].push(s),e},{}),[p,G]=i.useState(()=>{const e={};return c.forEach(s=>{const r=s.section||"Platform";e[r]=!1}),e}),[u,M]=i.useState(()=>{const e={};return c.forEach(s=>{const r=s.section||"Platform";e[r]=!1}),e}),o=e=>{const s=j(C.url),r=j(e);return s===r||s.startsWith(`${r}/`)},f=i.useRef(p),b=i.useRef(u);f.current=p,b.current=u;const v=({item:e})=>{var s,r;return((s=e.actions)==null?void 0:s.length)>0?n.jsx(E,{asChild:!0,defaultOpen:o(e.link),className:"group/collapsible",children:n.jsxs(g,{children:[n.jsx(P,{asChild:!0,children:n.jsxs(m,{tooltip:e.title,children:[n.jsx(l,{name:e.icon,className:"!text-[18px]"}),n.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:e.title}),n.jsx(k,{className:"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90"})]})}),n.jsx(T,{children:n.jsx(_,{children:(r=e.actions)==null?void 0:r.map(t=>n.jsx(L,{children:n.jsx($,{asChild:!0,isActive:o(t.link),children:t.type==="blank"?n.jsxs("a",{href:t.link,target:"_blank",rel:"noopener noreferrer",children:[t.icon&&n.jsx(l,{name:t.icon,className:"!text-[18px]"}),n.jsx("span",{children:t.title})]}):n.jsxs(N,{href:t.link,children:[t.icon&&n.jsx(l,{name:t.icon,className:"!text-[18px]"}),n.jsx("span",{children:t.title})]})})},t.id))})})]})},e.title):n.jsx(g,{children:n.jsx(m,{asChild:!0,isActive:o(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(l,{name:e.icon,className:"!text-[18px]"}),n.jsx("span",{children:e.title})]}):n.jsxs(N,{href:e.link,children:[e.icon&&n.jsx(l,{name:e.icon,className:"!text-[18px]"}),n.jsx("span",{children:e.title})]})})},e.title)};return n.jsx(n.Fragment,{children:Object.entries(S).map(([e,s])=>{const r=s.some(a=>{var d;return((d=a.actions)==null?void 0:d.length)>0?a.actions.some(h=>o(h.link)):o(a.link)}),t=u[e]?p[e]:r;return n.jsxs(O,{className:"px-2 py-0",children:[n.jsx(y,{asChild:!0,className:"cursor-pointer",onClick:()=>{const h=!(b.current[e]?f.current[e]:r);M(x=>({...x,[e]:!0})),G(x=>({...x,[e]:h}))},children:n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx(k,{className:`transform transition-transform duration-200 ${t?"rotate-90":""}`}),n.jsx("span",{children:e})]})}),t&&n.jsx(R,{children:n.jsx(A,{children:s.map(a=>n.jsx(v,{item:a},a.id||a.title))})})]},e)})})}export{q as NavMain};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as v,_ as pr,E as Rs,$ as ws,P as pp,a0 as _p,a1 as vp,a2 as xp,a3 as mp,a4 as Hi,a5 as vt,a6 as wp,a7 as Xe,M as Ap,N as yp,B as Gi,O as Rp,a8 as Tp,a9 as Sp,aa as Cp,ab as Ep,ac as Ip,u as Lp,I as bp,L as As,r as Op}from"./app.js";import{A as Np}from"./app-layout-
|
|
1
|
+
import{j as v,_ as pr,E as Rs,$ as ws,P as pp,a0 as _p,a1 as vp,a2 as xp,a3 as mp,a4 as Hi,a5 as vt,a6 as wp,a7 as Xe,M as Ap,N as yp,B as Gi,O as Rp,a8 as Tp,a9 as Sp,aa as Cp,ab as Ep,ac as Ip,u as Lp,I as bp,L as As,r as Op}from"./app.js";import{A as Np}from"./app-layout-C7q3_eFS.js";import{e as Wp,r as V}from"./monaco-ICtx6xoc.js";import{T as Pp,a as Mp,b as Bp,c as Dp}from"./tabs-BhkFoerH.js";import{c as _r}from"./vendor-wzZzN_Jv.js";import{u as Fp}from"./app-sidebar-header-Bcpas2Np.js";import{d as Up}from"./jsoneditor-D95dIAP2.js";import"./handsontable-PVakPtJV.js";import"./app-shell-C8Cnr5Hy.js";import"./app-sidebar-BCtD_nHo.js";import"./nav-main-UuH4U_0H.js";import"./material-icon-DwkE6wKL.js";import"./breadcrumbs-DSMzNYiS.js";import"./nav-user-DuCZNsZX.js";import"./user-info-BGQvqBmO.js";import"./user-menu-content-BDm88xaM.js";import"./theme-switcher-cgyA7_cO.js";import"./icon-DpkedrXG.js";const Hp=({changes:J,title:pn="Changes",className:s=""})=>{if(!J||J.length===0)return v.jsx("div",{className:pr("bg-muted border border-border rounded-lg p-4",s),children:v.jsxs("div",{className:"flex items-center text-muted-foreground",children:[v.jsx(Rs,{className:"w-5 h-5 mr-2"}),v.jsx("span",{children:"Changes not found"})]})});const bn=B=>B===null?"null":B===void 0?"—":typeof B=="boolean"?B?"Да":"Нет":typeof B=="object"?JSON.stringify(B):String(B),F=B=>B.oldValue===void 0?"added":B.newValue===void 0?"removed":"modified";return v.jsxs("div",{className:pr("bg-card border border-border rounded-lg shadow-sm",s),children:[v.jsx("div",{className:"px-4 py-3 border-b border-border bg-muted",children:v.jsxs("h3",{className:"text-lg font-semibold text-card-foreground flex items-center",children:[v.jsx(ws,{className:"w-5 h-5 mr-2"}),pn," (",J.length,")"]})}),v.jsx("div",{className:"divide-y divide-border",children:J.map((B,U)=>{const Q=F(B),wn=Q==="added"?pp:Q==="removed"?_p:ws,ce=pr("text-xs px-2 py-1 rounded-full bg-opacity-10",Q==="added"&&"text-green-600 bg-green-100",Q==="removed"&&"text-destructive bg-destructive/20",Q==="modified"&&"text-primary bg-primary/20"),An=Q==="added"?"text-green-600":Q==="removed"?"text-destructive":"text-primary";return v.jsxs("div",{className:"p-4 hover:bg-muted/50 transition-colors",children:[v.jsxs("div",{className:"flex items-center justify-between mb-2",children:[v.jsxs("div",{className:"flex items-center",children:[Wp.createElement(wn,{className:pr("w-4 h-4 mr-2",An)}),v.jsx("span",{className:"font-medium text-card-foreground",children:B.field})]}),v.jsx("span",{className:ce,children:Q==="added"?"Added":Q==="removed"?"Removed":"Updated"})]}),v.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 text-sm",children:[Q!=="added"&&v.jsxs("div",{className:"p-2 bg-destructive/10 border border-destructive/20 rounded",children:[v.jsx("div",{className:"text-xs text-destructive font-medium mb-1",children:"Old:"}),v.jsx("div",{className:"text-destructive-foreground font-mono break-words",children:bn(B.oldValue)})]}),Q!=="removed"&&v.jsxs("div",{className:"p-2 bg-green-50 border border-green-100 rounded",children:[v.jsx("div",{className:"text-xs text-green-600 font-medium mb-1",children:"New:"}),v.jsx("div",{className:"text-green-800 font-mono break-words",children:bn(B.newValue)})]})]}),Q==="modified"&&v.jsxs("div",{className:"mt-2 flex items-center text-xs text-muted-foreground",children:[v.jsx(vp,{className:"w-3 h-3 mr-1"}),"changed type: ",B.type]})]},U)})})]})};var xt={exports:{}};/**
|
|
2
2
|
* @license
|
|
3
3
|
* Lodash <https://lodash.com/>
|
|
4
4
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as o,j as t}from"./app.js";import{A as p}from"./app-layout-
|
|
1
|
+
import{u as o,j as t}from"./app.js";import{A as p}from"./app-layout-C7q3_eFS.js";import"./jsoneditor-D95dIAP2.js";import"./vendor-wzZzN_Jv.js";import"./monaco-ICtx6xoc.js";import"./handsontable-PVakPtJV.js";import"./app-shell-C8Cnr5Hy.js";import"./app-sidebar-BCtD_nHo.js";import"./nav-main-UuH4U_0H.js";import"./material-icon-DwkE6wKL.js";import"./app-sidebar-header-Bcpas2Np.js";import"./breadcrumbs-DSMzNYiS.js";import"./nav-user-DuCZNsZX.js";import"./user-info-BGQvqBmO.js";import"./user-menu-content-BDm88xaM.js";import"./theme-switcher-cgyA7_cO.js";import"./icon-DpkedrXG.js";const i=[];function N(){const r=o();return t.jsx(p,{breadcrumbs:i,children:t.jsxs("div",{className:"flex h-full flex-1 flex-col gap-4 rounded-xl p-4",children:[r.props.title&&t.jsx("div",{className:"text-3xl mb-8",children:r.props.title}),t.jsx("div",{className:"text-3xl mb-8",children:"Adminizer"}),r.props.text&&t.jsx("div",{dangerouslySetInnerHTML:{__html:r.props.text}})]})})}export{N as default};
|
|
@@ -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};
|