adminizer 4.4.0-build.167 → 4.4.0-build.169
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-BPcciwvU.js → add-Cdmtt8h2.js} +1 -1
- package/assets/{add-form-VLJ6QSu3.js → add-form-BOfDrzHM.js} +1 -1
- package/assets/{add-group--iy-V9oU.js → add-group-RXQ99YtQ.js} +1 -1
- package/assets/{add-user-BhIeyfat.js → add-user-BP4dg4oX.js} +1 -1
- package/assets/{app-layout-gAiczU39.js → app-layout-C3Dkx6b_.js} +1 -1
- package/assets/{app-sidebar-CNGEOOHu.js → app-sidebar-BNQHpyeO.js} +1 -1
- package/assets/app.js +2 -2
- package/assets/{catalog-CZ251XUK.js → catalog-BNHmoo2m.js} +1 -1
- package/assets/{dashboard-BlhABz32.js → dashboard-CP0TO_MA.js} +1 -1
- package/assets/{field-renderer-CjsyUnNE.js → field-renderer-COAPOk5k.js} +2 -2
- package/assets/{form-wqN7nuKC.js → form-AwbrDHpn.js} +1 -1
- package/assets/{form-5bcLbjFf.js → form-DzO_7yAw.js} +1 -1
- package/assets/{home-BZQ-WlHq.js → home-CdZ89G0u.js} +2 -2
- package/assets/{list-DxFdOkRH.js → list-Bm0I-TgD.js} +1 -1
- package/assets/manifest.json +41 -41
- package/assets/{media-manager-BRbr1M93.js → media-manager-BxCrWKws.js} +4 -4
- package/assets/{module-B3jhuqbE.js → module-BfZ6JMQt.js} +1 -1
- package/assets/nav-main-CEXmFJje.js +1 -0
- package/assets/{notification-B-57JQl_.js → notification-CHxg1fmU.js} +1 -1
- package/assets/{welcome-CkCufpDB.js → welcome-BhA1mjx-.js} +1 -1
- package/interfaces/adminpanelConfig.d.ts +1 -0
- package/package.json +2 -2
- package/assets/nav-main-BqKm87JZ.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-C3Dkx6b_.js";import"./jsoneditor-D95dIAP2.js";import"./vendor-wzZzN_Jv.js";import"./handsontable-PVakPtJV.js";import"./app-shell-C8Cnr5Hy.js";import"./app-sidebar-BNQHpyeO.js";import"./nav-main-CEXmFJje.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 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};
|
|
@@ -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-C3Dkx6b_.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-BNQHpyeO.js";import"./nav-main-CEXmFJje.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-C3Dkx6b_.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-BNQHpyeO.js";import"./nav-main-CEXmFJje.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};
|
|
@@ -364,6 +364,7 @@ export interface MediaManagerOptionsField {
|
|
|
364
364
|
accept: string[];
|
|
365
365
|
initTab?: 'tile-image' | 'table-video' | 'table-text' | 'table-application' | 'table-all' | 'tile-all';
|
|
366
366
|
config?: Record<string, any>;
|
|
367
|
+
onlyView?: boolean;
|
|
367
368
|
}
|
|
368
369
|
interface RangeType {
|
|
369
370
|
min?: number;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adminizer",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.4.0-build.
|
|
4
|
+
"version": "4.4.0-build.169",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": "./index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"build:assets": "vite build",
|
|
22
22
|
"compile:backend": "tsc -p src/tsconfig.json && node ./scripts/appendJsExtension.js",
|
|
23
23
|
"compile:ui": "tsc -p tsconfig.ui.json",
|
|
24
|
-
"watch
|
|
24
|
+
"tsc:watch": "tsc -w -p src/tsconfig.json",
|
|
25
25
|
"copy:backend": "node copy-backend.js",
|
|
26
26
|
"build:backend": "npm run copy:backend && npm run compile:backend",
|
|
27
27
|
"build": "npm run copy:backend && npm run compile:backend && npm run compile:ui && npm run build:assets",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as k,j as r,a_ as m,bj as g,C as p,bk as C,aO as N,bl as S,aP as d,b0 as M,aT as x,bm as v,b2 as y,b3 as w,b4 as G,W as h}from"./app.js";import{r as E}from"./monaco-ICtx6xoc.js";import t from"./material-icon-DwkE6wKL.js";import"./jsoneditor-D95dIAP2.js";import"./vendor-wzZzN_Jv.js";import"./handsontable-PVakPtJV.js";function z({items:i=[]}){const u=k(),[o,j]=E.useState(()=>{const e={};return i.forEach(s=>{const n=s.section||"Platform";n in e||(e[n]=!0)}),e}),c=e=>e.split("?")[0].replace(/\/$/,""),f=i.reduce((e,s)=>{const n=s.section||"Platform";return e[n]||(e[n]=[]),e[n].push(s),e},{}),b=({item:e})=>{var s,n;return((s=e.actions)==null?void 0:s.length)>0?r.jsx(S,{asChild:!0,defaultOpen:l(e.link),className:"group/collapsible",children:r.jsxs(d,{children:[r.jsx(M,{asChild:!0,children:r.jsxs(x,{tooltip:e.title,children:[r.jsx(t,{name:e.icon,className:"!text-[18px]"}),r.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:e.title}),r.jsx(p,{className:"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90"})]})}),r.jsx(v,{children:r.jsx(y,{children:(n=e.actions)==null?void 0:n.map(a=>r.jsx(w,{children:r.jsx(G,{asChild:!0,isActive:l(a.link),children:a.type==="blank"?r.jsxs("a",{href:a.link,target:"_blank",rel:"noopener noreferrer",children:[a.icon&&r.jsx(t,{name:a.icon,className:"!text-[18px]"}),r.jsx("span",{children:a.title})]}):r.jsxs(h,{href:a.link,children:[a.icon&&r.jsx(t,{name:a.icon,className:"!text-[18px]"}),r.jsx("span",{children:a.title})]})})},a.id))})})]})},e.title):r.jsx(d,{children:r.jsx(x,{asChild:!0,isActive:l(e.link),tooltip:{children:e.title},children:e.type==="blank"?r.jsxs("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",children:[e.icon&&r.jsx(t,{name:e.icon,className:"!text-[18px]"}),r.jsx("span",{children:e.title})]}):r.jsxs(h,{href:e.link,children:[e.icon&&r.jsx(t,{name:e.icon,className:"!text-[18px]"}),r.jsx("span",{children:e.title})]})})},e.title)},l=e=>{const s=c(u.url),n=c(e);return s===n||s.startsWith(`${n}/`)};return r.jsx(r.Fragment,{children:Object.entries(f).map(([e,s])=>r.jsxs(m,{className:"px-2 py-0",children:[r.jsx(g,{asChild:!0,className:"cursor-pointer",onClick:()=>j(n=>({...n,[e]:!n[e]})),children:r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsx(p,{className:`transform transition-transform duration-200 ${o[e]?"rotate-90":""}`}),r.jsx("span",{children:e})]})}),o[e]&&r.jsx(C,{children:r.jsx(N,{children:s.map(n=>r.jsx(b,{item:n},n.id||n.title))})})]},e))})}export{z as NavMain};
|