@object-ui/console 3.0.2 → 3.0.3

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.
Files changed (76) hide show
  1. package/dist/assets/DashboardView-DSh9LYBb.js +1 -0
  2. package/dist/assets/DashboardView-DSh9LYBb.js.br +0 -0
  3. package/dist/assets/DashboardView-DSh9LYBb.js.gz +0 -0
  4. package/dist/assets/{KanbanEnhanced-CwlMhI0l.js → KanbanEnhanced-ZOndyXyg.js} +1 -1
  5. package/dist/assets/KanbanEnhanced-ZOndyXyg.js.br +0 -0
  6. package/dist/assets/KanbanEnhanced-ZOndyXyg.js.gz +0 -0
  7. package/dist/assets/PageView-bHvRhycc.js +1 -0
  8. package/dist/assets/PageView-bHvRhycc.js.br +0 -0
  9. package/dist/assets/PageView-bHvRhycc.js.gz +0 -0
  10. package/dist/assets/{RecordDetailView-IO2ShB0a.js → RecordDetailView-Sm8_iQw_.js} +1 -1
  11. package/dist/assets/RecordDetailView-Sm8_iQw_.js.br +0 -0
  12. package/dist/assets/RecordDetailView-Sm8_iQw_.js.gz +0 -0
  13. package/dist/assets/ReportView-B0D9jx4v.js +1 -0
  14. package/dist/assets/ReportView-B0D9jx4v.js.br +0 -0
  15. package/dist/assets/ReportView-B0D9jx4v.js.gz +0 -0
  16. package/dist/assets/SearchResultsPage-wlC0eLLr.js +1 -0
  17. package/dist/assets/SearchResultsPage-wlC0eLLr.js.br +0 -0
  18. package/dist/assets/SearchResultsPage-wlC0eLLr.js.gz +0 -0
  19. package/dist/assets/{ViewDesignerPage-BbwrZa9D.js → ViewDesignerPage-TCaXYb43.js} +1 -1
  20. package/dist/assets/ViewDesignerPage-TCaXYb43.js.br +0 -0
  21. package/dist/assets/{ViewDesignerPage-BbwrZa9D.js.gz → ViewDesignerPage-TCaXYb43.js.gz} +0 -0
  22. package/dist/assets/{data-adapter-CIsDmDZ2.js → data-adapter-D15yh-pb.js} +1 -1
  23. package/dist/assets/data-adapter-D15yh-pb.js.br +0 -0
  24. package/dist/assets/data-adapter-D15yh-pb.js.gz +0 -0
  25. package/dist/assets/index-RAPqkKVL.js +9 -0
  26. package/dist/assets/index-RAPqkKVL.js.br +0 -0
  27. package/dist/assets/index-RAPqkKVL.js.gz +0 -0
  28. package/dist/assets/{plugins-core-HuzSJDPK.js → plugins-core-Cv2TPt86.js} +2 -2
  29. package/dist/assets/plugins-core-Cv2TPt86.js.br +0 -0
  30. package/dist/assets/plugins-core-Cv2TPt86.js.gz +0 -0
  31. package/dist/assets/plugins-views-divN-xXs.js +60 -0
  32. package/dist/assets/plugins-views-divN-xXs.js.br +0 -0
  33. package/dist/assets/plugins-views-divN-xXs.js.gz +0 -0
  34. package/dist/assets/vendor-objectstack-Bifvxvds.js +1 -0
  35. package/dist/assets/vendor-objectstack-Bifvxvds.js.br +0 -0
  36. package/dist/assets/vendor-objectstack-Bifvxvds.js.gz +0 -0
  37. package/dist/assets/{vendor-zod-Dpl-cylz.js → vendor-zod-UZPqlszj.js} +4 -4
  38. package/dist/assets/vendor-zod-UZPqlszj.js.br +0 -0
  39. package/dist/assets/vendor-zod-UZPqlszj.js.gz +0 -0
  40. package/dist/index.html +6 -6
  41. package/dist/index.html.br +0 -0
  42. package/dist/index.html.gz +0 -0
  43. package/dist/stats.html +1 -1
  44. package/package.json +28 -28
  45. package/dist/assets/DashboardView-CikFb_lD.js +0 -1
  46. package/dist/assets/DashboardView-CikFb_lD.js.br +0 -0
  47. package/dist/assets/DashboardView-CikFb_lD.js.gz +0 -0
  48. package/dist/assets/KanbanEnhanced-CwlMhI0l.js.br +0 -0
  49. package/dist/assets/KanbanEnhanced-CwlMhI0l.js.gz +0 -0
  50. package/dist/assets/PageView-CQP2T84v.js +0 -1
  51. package/dist/assets/PageView-CQP2T84v.js.br +0 -0
  52. package/dist/assets/PageView-CQP2T84v.js.gz +0 -0
  53. package/dist/assets/RecordDetailView-IO2ShB0a.js.br +0 -0
  54. package/dist/assets/RecordDetailView-IO2ShB0a.js.gz +0 -0
  55. package/dist/assets/ReportView-BfR7RjL9.js +0 -1
  56. package/dist/assets/ReportView-BfR7RjL9.js.br +0 -0
  57. package/dist/assets/ReportView-BfR7RjL9.js.gz +0 -0
  58. package/dist/assets/SearchResultsPage-DaxRxhBY.js +0 -1
  59. package/dist/assets/SearchResultsPage-DaxRxhBY.js.br +0 -0
  60. package/dist/assets/SearchResultsPage-DaxRxhBY.js.gz +0 -0
  61. package/dist/assets/ViewDesignerPage-BbwrZa9D.js.br +0 -0
  62. package/dist/assets/data-adapter-CIsDmDZ2.js.br +0 -0
  63. package/dist/assets/data-adapter-CIsDmDZ2.js.gz +0 -0
  64. package/dist/assets/index-5NGcxsNI.js +0 -56
  65. package/dist/assets/index-5NGcxsNI.js.br +0 -0
  66. package/dist/assets/index-5NGcxsNI.js.gz +0 -0
  67. package/dist/assets/plugins-core-HuzSJDPK.js.br +0 -0
  68. package/dist/assets/plugins-core-HuzSJDPK.js.gz +0 -0
  69. package/dist/assets/plugins-views-JvEQp7xT.js +0 -60
  70. package/dist/assets/plugins-views-JvEQp7xT.js.br +0 -0
  71. package/dist/assets/plugins-views-JvEQp7xT.js.gz +0 -0
  72. package/dist/assets/vendor-objectstack-BbgElG6O.js +0 -37
  73. package/dist/assets/vendor-objectstack-BbgElG6O.js.br +0 -0
  74. package/dist/assets/vendor-objectstack-BbgElG6O.js.gz +0 -0
  75. package/dist/assets/vendor-zod-Dpl-cylz.js.br +0 -0
  76. package/dist/assets/vendor-zod-Dpl-cylz.js.gz +0 -0
@@ -0,0 +1 @@
1
+ import{j as s,h,r as i}from"./vendor-react-Dy_xkBQQ.js";import{a as p}from"./plugins-views-divN-xXs.js";import{a9 as e,aH as f,aI as u,aJ as j}from"./ui-components-CseD2Dpn.js";import"./framework-mHWN965c.js";import"./vendor-ui-utils-h6yAcIi9.js";import{u as g,b as N,r as d,M as b,a as w}from"./index-RAPqkKVL.js";import{aD as v}from"./vendor-icons-CQ8b-fGy.js";import"./vendor-charts-CSvoW-yB.js";import"./vendor-i18n-D5KbMT7w.js";import"./vendor-radix-BbeYj_o4.js";import"./plugins-core-Cv2TPt86.js";import"./infrastructure-Di0WqY4l.js";import"./data-adapter-D15yh-pb.js";import"./vendor-objectstack-Bifvxvds.js";import"./vendor-zod-UZPqlszj.js";import"./ui-layout-CF_1bNSv.js";function y({cards:l=6}){return s.jsxs("div",{className:"w-full space-y-6 p-4 sm:p-6",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(e,{className:"h-7 w-56"}),s.jsx(e,{className:"h-4 w-80"})]}),s.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:Array.from({length:4}).map((t,r)=>s.jsxs("div",{className:"rounded-lg border p-4 space-y-2",children:[s.jsx(e,{className:"h-4 w-20"}),s.jsx(e,{className:"h-8 w-24"}),s.jsx(e,{className:"h-3 w-16"})]},`stat-${r}`))}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:Array.from({length:l}).map((t,r)=>s.jsxs("div",{className:"rounded-lg border p-4 space-y-3",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx(e,{className:"h-5 w-32"}),s.jsx(e,{className:"h-5 w-5 rounded-full"})]}),s.jsx(e,{className:"h-40 w-full"}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(e,{className:"h-3 w-16"}),s.jsx(e,{className:"h-3 w-12"})]})]},`widget-${r}`))})]})}function H({dataSource:l}){const{dashboardName:t}=h(),{showDebug:r,toggleDebug:m}=g(),[c,o]=i.useState(!0);i.useEffect(()=>{o(!0),queueMicrotask(()=>o(!1))},[t]);const{dashboards:n}=N(),a=n?.find(x=>x.name===t);return c?s.jsx(y,{}):a?s.jsxs("div",{className:"flex flex-col h-full overflow-hidden bg-background",children:[s.jsxs("div",{className:"flex flex-col sm:flex-row justify-between sm:items-center gap-3 sm:gap-4 p-4 sm:p-6 border-b shrink-0",children:[s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsx("h1",{className:"text-lg sm:text-xl md:text-2xl font-bold tracking-tight truncate",children:d(a.label)||a.name}),a.description&&s.jsx("p",{className:"text-sm text-muted-foreground mt-1 line-clamp-2",children:d(a.description)})]}),s.jsx("div",{className:"shrink-0",children:s.jsx(b,{open:r,onToggle:m})})]}),s.jsxs("div",{className:"flex-1 overflow-hidden flex flex-col sm:flex-row relative",children:[s.jsx("div",{className:"flex-1 overflow-auto p-4 sm:p-6",children:s.jsx(p,{schema:a,dataSource:l})}),s.jsx(w,{open:r,sections:[{title:"Dashboard Configuration",data:a}]})]})]}):s.jsx("div",{className:"h-full flex items-center justify-center p-8",children:s.jsxs(f,{children:[s.jsx("div",{className:"mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-muted",children:s.jsx(v,{className:"h-6 w-6 text-muted-foreground"})}),s.jsx(u,{children:"Dashboard Not Found"}),s.jsxs(j,{children:['The dashboard "',t,'" could not be found. It may have been removed or renamed.']})]})})}export{H as DashboardView};
@@ -1 +1 @@
1
- import{r as c,j as e}from"./vendor-react-Dy_xkBQQ.js";import{u as F}from"./plugins-core-HuzSJDPK.js";import{u as H,a as K,D as P,c as Y,b as M,d as U,P as Z,e as z,S as q,v as G,C as J}from"./vendor-dndkit-DRGpK6sP.js";import{B as Q,a1 as I,Y as W,$ as X,a0 as _,ab as ee,Z as se}from"./ui-components-CseD2Dpn.js";import"./framework-mHWN965c.js";import"./vendor-ui-utils-h6yAcIi9.js";import{a as te,C as re,T as ae}from"./vendor-icons-CQ8b-fGy.js";import"./plugins-views-JvEQp7xT.js";import"./vendor-charts-CSvoW-yB.js";import"./vendor-i18n-D5KbMT7w.js";import"./vendor-radix-BbeYj_o4.js";const k=(...s)=>s.filter(Boolean).join(" ");function E({card:s}){const{attributes:x,listeners:o,setNodeRef:m,transform:r,transition:g,isDragging:v}=z({id:s.id}),f={transform:J.Transform.toString(r),transition:g,opacity:v?.5:void 0};return e.jsx("div",{ref:m,style:f,...x,...o,children:e.jsxs(W,{className:"mb-2 cursor-grab active:cursor-grabbing border-border bg-card/60 hover:border-primary/40 hover:shadow-lg hover:shadow-primary/10 transition-all duration-300 group",children:[e.jsxs(X,{className:"p-4",children:[e.jsx(_,{className:"text-sm font-medium font-mono tracking-tight text-foreground group-hover:text-primary transition-colors",children:s.title}),s.description&&e.jsx(ee,{className:"text-xs text-muted-foreground font-mono",children:s.description})]}),s.badges&&s.badges.length>0&&e.jsx(se,{className:"p-4 pt-0",children:e.jsx("div",{className:"flex flex-wrap gap-1",children:s.badges.map((l,a)=>e.jsx(I,{variant:l.variant||"default",className:"text-xs",children:l.label},a))})})]})})}function ie({cards:s,parentRef:x}){const o=F({count:s.length,getScrollElement:()=>x.current,estimateSize:()=>120,overscan:5});return e.jsx("div",{style:{height:`${o.getTotalSize()}px`,width:"100%",position:"relative"},children:o.getVirtualItems().map(m=>{const r=s[m.index];return e.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${m.start}px)`},children:e.jsx(E,{card:r})},r.id)})})}function ne({column:s,cards:x,onToggle:o,enableVirtual:m}){const r=x||[],g=c.useRef(null),{setNodeRef:v}=z({id:s.id,data:{type:"column"}}),f=s.limit&&r.length>=s.limit,l=s.limit&&r.length>=s.limit*.8;return e.jsxs("div",{ref:v,className:k("flex flex-col flex-shrink-0 rounded-lg border border-border bg-card/20 backdrop-blur-sm shadow-xl transition-all",s.collapsed?"w-16":"w-80",s.className),children:[e.jsxs("div",{className:"p-4 border-b border-border/50 bg-muted/20 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[e.jsx(Q,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0",onClick:()=>o(!s.collapsed),children:s.collapsed?e.jsx(te,{className:"h-4 w-4"}):e.jsx(re,{className:"h-4 w-4"})}),!s.collapsed&&e.jsxs(e.Fragment,{children:[e.jsx("h3",{className:"font-mono text-sm font-semibold tracking-wider text-primary/90 uppercase truncate",children:s.title}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("span",{className:k("font-mono text-xs",f?"text-destructive":l?"text-yellow-500":"text-muted-foreground"),children:[r.length,s.limit&&` / ${s.limit}`]}),f&&e.jsx(I,{variant:"destructive",className:"text-xs",children:"Full"}),l&&!f&&e.jsx(ae,{className:"h-3 w-3 text-yellow-500"})]})]})]}),s.collapsed&&e.jsxs("div",{className:"flex flex-col items-center gap-1",children:[e.jsx("span",{className:"font-mono text-xs font-bold text-primary/90 [writing-mode:vertical-rl] rotate-180",children:s.title}),e.jsx(I,{variant:"secondary",className:"text-xs",children:r.length})]})]}),!s.collapsed&&e.jsx("div",{ref:g,className:"flex-1 p-4 overflow-y-auto",style:{maxHeight:"600px"},children:e.jsx(q,{items:r.map(a=>a.id),strategy:G,children:m?e.jsx(ie,{cards:r,parentRef:g}):e.jsx("div",{className:"space-y-2",children:r.map(a=>e.jsx(E,{card:a},a.id))})})})]})}function ve({columns:s,onCardMove:x,onColumnToggle:o,enableVirtualScrolling:m=!1,virtualScrollThreshold:r=50,className:g}){const[v,f]=c.useState(null),l=c.useMemo(()=>(s||[]).map(t=>({...t,cards:t.cards||[]})),[s]),[a,S]=c.useState(l);c.useEffect(()=>{S(l)},[l]);const T=H(K(Z,{activationConstraint:{distance:8}})),V=t=>{const{active:i}=t,n=$(i.id);f(n)},L=t=>{const{active:i,over:n}=t;if(f(null),!n)return;const d=i.id,b=n.id;if(d===b)return;const u=B(d),j=B(b)||O(b);if(!(!u||!j))if(u.id===j.id){const h=[...u.cards],C=h.findIndex(p=>p.id===d),D=h.findIndex(p=>p.id===b),R=U(h,C,D);S(p=>p.map(N=>N.id===u.id?{...N,cards:R}:N))}else{const h=[...u.cards],C=[...j.cards],D=h.findIndex(w=>w.id===d),p=b===j.id?C.length:C.findIndex(w=>w.id===b),[N]=h.splice(D,1);C.splice(p,0,N),S(w=>w.map(y=>y.id===u.id?{...y,cards:h}:y.id===j.id?{...y,cards:C}:y)),x&&x(d,u.id,j.id,p)}},$=c.useCallback(t=>{for(const i of a){const n=i.cards.find(d=>d.id===t);if(n)return n}return null},[a]),B=c.useCallback(t=>a.find(i=>i.cards.some(n=>n.id===t))||null,[a]),O=c.useCallback(t=>a.find(i=>i.id===t)||null,[a]),A=c.useCallback((t,i)=>{S(n=>n.map(d=>d.id===t?{...d,collapsed:i}:d)),o?.(t,i)},[o]);return e.jsxs(P,{sensors:T,collisionDetection:Y,onDragStart:V,onDragEnd:L,children:[e.jsx("div",{className:k("flex gap-4 overflow-x-auto p-4",g),children:a.map(t=>{const i=m&&t.cards.length>r;return e.jsx(ne,{column:t,cards:t.cards,onToggle:n=>A(t.id,n),enableVirtual:i},t.id)})}),e.jsx(M,{children:v?e.jsx(E,{card:v}):null})]})}export{ve as KanbanEnhanced,ve as default};
1
+ import{r as c,j as e}from"./vendor-react-Dy_xkBQQ.js";import{u as F}from"./plugins-core-Cv2TPt86.js";import{u as H,a as K,D as P,c as Y,b as M,d as U,P as Z,e as z,S as q,v as G,C as J}from"./vendor-dndkit-DRGpK6sP.js";import{B as Q,a1 as I,Y as W,$ as X,a0 as _,ab as ee,Z as se}from"./ui-components-CseD2Dpn.js";import"./framework-mHWN965c.js";import"./vendor-ui-utils-h6yAcIi9.js";import{a as te,C as re,T as ae}from"./vendor-icons-CQ8b-fGy.js";import"./plugins-views-divN-xXs.js";import"./vendor-charts-CSvoW-yB.js";import"./vendor-i18n-D5KbMT7w.js";import"./vendor-radix-BbeYj_o4.js";const k=(...s)=>s.filter(Boolean).join(" ");function E({card:s}){const{attributes:x,listeners:o,setNodeRef:m,transform:r,transition:g,isDragging:v}=z({id:s.id}),f={transform:J.Transform.toString(r),transition:g,opacity:v?.5:void 0};return e.jsx("div",{ref:m,style:f,...x,...o,children:e.jsxs(W,{className:"mb-2 cursor-grab active:cursor-grabbing border-border bg-card/60 hover:border-primary/40 hover:shadow-lg hover:shadow-primary/10 transition-all duration-300 group",children:[e.jsxs(X,{className:"p-4",children:[e.jsx(_,{className:"text-sm font-medium font-mono tracking-tight text-foreground group-hover:text-primary transition-colors",children:s.title}),s.description&&e.jsx(ee,{className:"text-xs text-muted-foreground font-mono",children:s.description})]}),s.badges&&s.badges.length>0&&e.jsx(se,{className:"p-4 pt-0",children:e.jsx("div",{className:"flex flex-wrap gap-1",children:s.badges.map((l,a)=>e.jsx(I,{variant:l.variant||"default",className:"text-xs",children:l.label},a))})})]})})}function ie({cards:s,parentRef:x}){const o=F({count:s.length,getScrollElement:()=>x.current,estimateSize:()=>120,overscan:5});return e.jsx("div",{style:{height:`${o.getTotalSize()}px`,width:"100%",position:"relative"},children:o.getVirtualItems().map(m=>{const r=s[m.index];return e.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${m.start}px)`},children:e.jsx(E,{card:r})},r.id)})})}function ne({column:s,cards:x,onToggle:o,enableVirtual:m}){const r=x||[],g=c.useRef(null),{setNodeRef:v}=z({id:s.id,data:{type:"column"}}),f=s.limit&&r.length>=s.limit,l=s.limit&&r.length>=s.limit*.8;return e.jsxs("div",{ref:v,className:k("flex flex-col flex-shrink-0 rounded-lg border border-border bg-card/20 backdrop-blur-sm shadow-xl transition-all",s.collapsed?"w-16":"w-80",s.className),children:[e.jsxs("div",{className:"p-4 border-b border-border/50 bg-muted/20 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[e.jsx(Q,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0",onClick:()=>o(!s.collapsed),children:s.collapsed?e.jsx(te,{className:"h-4 w-4"}):e.jsx(re,{className:"h-4 w-4"})}),!s.collapsed&&e.jsxs(e.Fragment,{children:[e.jsx("h3",{className:"font-mono text-sm font-semibold tracking-wider text-primary/90 uppercase truncate",children:s.title}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("span",{className:k("font-mono text-xs",f?"text-destructive":l?"text-yellow-500":"text-muted-foreground"),children:[r.length,s.limit&&` / ${s.limit}`]}),f&&e.jsx(I,{variant:"destructive",className:"text-xs",children:"Full"}),l&&!f&&e.jsx(ae,{className:"h-3 w-3 text-yellow-500"})]})]})]}),s.collapsed&&e.jsxs("div",{className:"flex flex-col items-center gap-1",children:[e.jsx("span",{className:"font-mono text-xs font-bold text-primary/90 [writing-mode:vertical-rl] rotate-180",children:s.title}),e.jsx(I,{variant:"secondary",className:"text-xs",children:r.length})]})]}),!s.collapsed&&e.jsx("div",{ref:g,className:"flex-1 p-4 overflow-y-auto",style:{maxHeight:"600px"},children:e.jsx(q,{items:r.map(a=>a.id),strategy:G,children:m?e.jsx(ie,{cards:r,parentRef:g}):e.jsx("div",{className:"space-y-2",children:r.map(a=>e.jsx(E,{card:a},a.id))})})})]})}function ve({columns:s,onCardMove:x,onColumnToggle:o,enableVirtualScrolling:m=!1,virtualScrollThreshold:r=50,className:g}){const[v,f]=c.useState(null),l=c.useMemo(()=>(s||[]).map(t=>({...t,cards:t.cards||[]})),[s]),[a,S]=c.useState(l);c.useEffect(()=>{S(l)},[l]);const T=H(K(Z,{activationConstraint:{distance:8}})),V=t=>{const{active:i}=t,n=$(i.id);f(n)},L=t=>{const{active:i,over:n}=t;if(f(null),!n)return;const d=i.id,b=n.id;if(d===b)return;const u=B(d),j=B(b)||O(b);if(!(!u||!j))if(u.id===j.id){const h=[...u.cards],C=h.findIndex(p=>p.id===d),D=h.findIndex(p=>p.id===b),R=U(h,C,D);S(p=>p.map(N=>N.id===u.id?{...N,cards:R}:N))}else{const h=[...u.cards],C=[...j.cards],D=h.findIndex(w=>w.id===d),p=b===j.id?C.length:C.findIndex(w=>w.id===b),[N]=h.splice(D,1);C.splice(p,0,N),S(w=>w.map(y=>y.id===u.id?{...y,cards:h}:y.id===j.id?{...y,cards:C}:y)),x&&x(d,u.id,j.id,p)}},$=c.useCallback(t=>{for(const i of a){const n=i.cards.find(d=>d.id===t);if(n)return n}return null},[a]),B=c.useCallback(t=>a.find(i=>i.cards.some(n=>n.id===t))||null,[a]),O=c.useCallback(t=>a.find(i=>i.id===t)||null,[a]),A=c.useCallback((t,i)=>{S(n=>n.map(d=>d.id===t?{...d,collapsed:i}:d)),o?.(t,i)},[o]);return e.jsxs(P,{sensors:T,collisionDetection:Y,onDragStart:V,onDragEnd:L,children:[e.jsx("div",{className:k("flex gap-4 overflow-x-auto p-4",g),children:a.map(t=>{const i=m&&t.cards.length>r;return e.jsx(ne,{column:t,cards:t.cards,onToggle:n=>A(t.id,n),enableVirtual:i},t.id)})}),e.jsx(M,{children:v?e.jsx(E,{card:v}):null})]})}export{ve as KanbanEnhanced,ve as default};
@@ -0,0 +1 @@
1
+ import{h as l,k as p,j as e}from"./vendor-react-Dy_xkBQQ.js";import{S as c}from"./framework-mHWN965c.js";import{aH as d,aI as u,aJ as f}from"./ui-components-CseD2Dpn.js";import"./vendor-ui-utils-h6yAcIi9.js";import{u as h,b as x,M as g,a as j}from"./index-RAPqkKVL.js";import{a1 as v}from"./vendor-icons-CQ8b-fGy.js";import"./vendor-radix-BbeYj_o4.js";import"./vendor-i18n-D5KbMT7w.js";import"./vendor-charts-CSvoW-yB.js";import"./plugins-core-Cv2TPt86.js";import"./plugins-views-divN-xXs.js";import"./infrastructure-Di0WqY4l.js";import"./data-adapter-D15yh-pb.js";import"./vendor-objectstack-Bifvxvds.js";import"./vendor-zod-UZPqlszj.js";import"./ui-layout-CF_1bNSv.js";function H(){const{pageName:s}=l(),[o]=p(),{showDebug:a,toggleDebug:r}=h(),{pages:i}=x(),t=i?.find(n=>n.name===s);if(!t)return e.jsx("div",{className:"h-full flex items-center justify-center p-8",children:e.jsxs(d,{children:[e.jsx("div",{className:"mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-muted",children:e.jsx(v,{className:"h-6 w-6 text-muted-foreground"})}),e.jsx(u,{children:"Page Not Found"}),e.jsxs(f,{children:['The page "',s,'" could not be found. It may have been removed or renamed.']})]})});const m=Object.fromEntries(o.entries());return e.jsxs("div",{className:"flex flex-row h-full w-full overflow-hidden relative",children:[e.jsxs("div",{className:"flex-1 overflow-auto h-full relative group",children:[e.jsx("div",{className:`absolute top-1.5 sm:top-2 right-1.5 sm:right-2 z-50 transition-opacity ${a?"opacity-100":"opacity-0 group-hover:opacity-100"}`,children:e.jsx(g,{open:a,onToggle:r})}),e.jsx(c,{schema:{...t,type:t.type||"page",context:{...t.context,params:m}}})]}),e.jsx(j,{open:a,sections:[{title:"Page Configuration",data:t}]})]})}export{H as PageView};
@@ -1 +1 @@
1
- import{j as e,h as f,r as x}from"./vendor-react-Dy_xkBQQ.js";import{D as j}from"./plugins-views-JvEQp7xT.js";import{a9 as s,aH as u,aI as N,aJ as g}from"./ui-components-CseD2Dpn.js";import"./framework-mHWN965c.js";import"./vendor-ui-utils-h6yAcIi9.js";import{u as w,M as v,a as b}from"./index-5NGcxsNI.js";import{as as y}from"./vendor-icons-CQ8b-fGy.js";import"./vendor-charts-CSvoW-yB.js";import"./vendor-i18n-D5KbMT7w.js";import"./vendor-radix-BbeYj_o4.js";import"./plugins-core-HuzSJDPK.js";import"./data-adapter-CIsDmDZ2.js";import"./vendor-objectstack-BbgElG6O.js";import"./vendor-zod-Dpl-cylz.js";import"./infrastructure-Di0WqY4l.js";import"./ui-layout-CF_1bNSv.js";function D({fields:r=8,columns:c=2}){return e.jsxs("div",{className:"w-full space-y-6 p-4 sm:p-6",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(s,{className:"h-8 w-8 rounded"}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(s,{className:"h-6 w-48"}),e.jsx(s,{className:"h-4 w-32"})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(s,{className:"h-9 w-20"}),e.jsx(s,{className:"h-9 w-20"})]})]}),e.jsx(s,{className:"h-5 w-24"}),e.jsx("div",{className:`grid grid-cols-1 ${c===2?"md:grid-cols-2":""} gap-4`,children:Array.from({length:r}).map((o,a)=>e.jsxs("div",{className:"space-y-2",children:[e.jsx(s,{className:"h-4 w-24"}),e.jsx(s,{className:"h-9 w-full"})]},`field-${a}`))}),e.jsxs("div",{className:"space-y-3 pt-4 border-t",children:[e.jsx(s,{className:"h-5 w-32"}),e.jsx("div",{className:"space-y-2",children:Array.from({length:3}).map((o,a)=>e.jsxs("div",{className:"flex items-center gap-3 py-2",children:[e.jsx(s,{className:"h-8 w-8 rounded-full"}),e.jsxs("div",{className:"flex-1 space-y-1",children:[e.jsx(s,{className:"h-4 w-40"}),e.jsx(s,{className:"h-3 w-24"})]})]},`related-${a}`))})]})]})}function z({dataSource:r,objects:c,onEdit:o}){const{objectName:a,recordId:i}=f(),{showDebug:m,toggleDebug:p}=w(),[h,d]=x.useState(!0),t=c.find(l=>l.name===a);if(x.useEffect(()=>{d(!0),queueMicrotask(()=>d(!1))},[a,i]),h)return e.jsx(D,{});if(!t)return e.jsx("div",{className:"flex h-full items-center justify-center p-4",children:e.jsxs(u,{children:[e.jsx("div",{className:"mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-muted",children:e.jsx(y,{className:"h-6 w-6 text-muted-foreground"})}),e.jsx(N,{children:"Object Not Found"}),e.jsxs(g,{children:['Object "',a,'" definition missing. Check your configuration or navigate back to select a valid object.']})]})});const n={type:"detail-view",objectName:t.name,resourceId:i,showBack:!0,onBack:"history",showEdit:!0,title:t.label,sections:[{title:"Details",fields:Object.keys(t.fields||{}).map(l=>({name:l,label:t.fields[l].label||l,type:t.fields[l].type||"text"})),columns:2}]};return e.jsxs("div",{className:"h-full bg-background overflow-hidden flex flex-col relative",children:[e.jsx("div",{className:"absolute top-2 sm:top-4 right-2 sm:right-4 z-50",children:e.jsx(v,{open:m,onToggle:p})}),e.jsxs("div",{className:"flex-1 overflow-hidden flex flex-row",children:[e.jsx("div",{className:"flex-1 overflow-auto p-3 sm:p-4 lg:p-6 scroll-pb-48",children:e.jsx(j,{schema:n,dataSource:r,onEdit:()=>o({_id:i,id:i})})}),e.jsx(b,{open:m,sections:[{title:"View Schema",data:n}]})]})]})}export{z as RecordDetailView};
1
+ import{j as e,h as f,r as x}from"./vendor-react-Dy_xkBQQ.js";import{D as j}from"./plugins-views-divN-xXs.js";import{a9 as s,aH as u,aI as N,aJ as g}from"./ui-components-CseD2Dpn.js";import"./framework-mHWN965c.js";import"./vendor-ui-utils-h6yAcIi9.js";import{u as w,M as v,a as b}from"./index-RAPqkKVL.js";import{as as y}from"./vendor-icons-CQ8b-fGy.js";import"./vendor-charts-CSvoW-yB.js";import"./vendor-i18n-D5KbMT7w.js";import"./vendor-radix-BbeYj_o4.js";import"./plugins-core-Cv2TPt86.js";import"./infrastructure-Di0WqY4l.js";import"./data-adapter-D15yh-pb.js";import"./vendor-objectstack-Bifvxvds.js";import"./vendor-zod-UZPqlszj.js";import"./ui-layout-CF_1bNSv.js";function D({fields:r=8,columns:c=2}){return e.jsxs("div",{className:"w-full space-y-6 p-4 sm:p-6",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(s,{className:"h-8 w-8 rounded"}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(s,{className:"h-6 w-48"}),e.jsx(s,{className:"h-4 w-32"})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(s,{className:"h-9 w-20"}),e.jsx(s,{className:"h-9 w-20"})]})]}),e.jsx(s,{className:"h-5 w-24"}),e.jsx("div",{className:`grid grid-cols-1 ${c===2?"md:grid-cols-2":""} gap-4`,children:Array.from({length:r}).map((o,a)=>e.jsxs("div",{className:"space-y-2",children:[e.jsx(s,{className:"h-4 w-24"}),e.jsx(s,{className:"h-9 w-full"})]},`field-${a}`))}),e.jsxs("div",{className:"space-y-3 pt-4 border-t",children:[e.jsx(s,{className:"h-5 w-32"}),e.jsx("div",{className:"space-y-2",children:Array.from({length:3}).map((o,a)=>e.jsxs("div",{className:"flex items-center gap-3 py-2",children:[e.jsx(s,{className:"h-8 w-8 rounded-full"}),e.jsxs("div",{className:"flex-1 space-y-1",children:[e.jsx(s,{className:"h-4 w-40"}),e.jsx(s,{className:"h-3 w-24"})]})]},`related-${a}`))})]})]})}function z({dataSource:r,objects:c,onEdit:o}){const{objectName:a,recordId:i}=f(),{showDebug:m,toggleDebug:p}=w(),[h,d]=x.useState(!0),t=c.find(l=>l.name===a);if(x.useEffect(()=>{d(!0),queueMicrotask(()=>d(!1))},[a,i]),h)return e.jsx(D,{});if(!t)return e.jsx("div",{className:"flex h-full items-center justify-center p-4",children:e.jsxs(u,{children:[e.jsx("div",{className:"mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-muted",children:e.jsx(y,{className:"h-6 w-6 text-muted-foreground"})}),e.jsx(N,{children:"Object Not Found"}),e.jsxs(g,{children:['Object "',a,'" definition missing. Check your configuration or navigate back to select a valid object.']})]})});const n={type:"detail-view",objectName:t.name,resourceId:i,showBack:!0,onBack:"history",showEdit:!0,title:t.label,sections:[{title:"Details",fields:Object.keys(t.fields||{}).map(l=>({name:l,label:t.fields[l].label||l,type:t.fields[l].type||"text"})),columns:2}]};return e.jsxs("div",{className:"h-full bg-background overflow-hidden flex flex-col relative",children:[e.jsx("div",{className:"absolute top-2 sm:top-4 right-2 sm:right-4 z-50",children:e.jsx(v,{open:m,onToggle:p})}),e.jsxs("div",{className:"flex-1 overflow-hidden flex flex-row",children:[e.jsx("div",{className:"flex-1 overflow-auto p-3 sm:p-4 lg:p-6 scroll-pb-48",children:e.jsx(j,{schema:n,dataSource:r,onEdit:()=>o({_id:i,id:i})})}),e.jsx(b,{open:m,sections:[{title:"View Schema",data:n}]})]})]})}export{z as RecordDetailView};
@@ -0,0 +1 @@
1
+ import{h as f,r as n,j as e}from"./vendor-react-Dy_xkBQQ.js";import{R as g,b}from"./plugins-views-divN-xXs.js";import{aH as j,aI as v,aJ as N,B as m}from"./ui-components-CseD2Dpn.js";import"./framework-mHWN965c.js";import"./vendor-ui-utils-h6yAcIi9.js";import{u as w,b as y,M as R,a as E}from"./index-RAPqkKVL.js";import{L as S,aE as k,b as C,aP as M}from"./vendor-icons-CQ8b-fGy.js";import"./vendor-charts-CSvoW-yB.js";import"./vendor-i18n-D5KbMT7w.js";import"./vendor-radix-BbeYj_o4.js";import"./plugins-core-Cv2TPt86.js";import"./infrastructure-Di0WqY4l.js";import"./data-adapter-D15yh-pb.js";import"./vendor-objectstack-Bifvxvds.js";import"./vendor-zod-UZPqlszj.js";import"./ui-layout-CF_1bNSv.js";const B=[{name:"month",label:"Month",type:"string"},{name:"revenue",label:"Revenue",type:"number"},{name:"count",label:"Count",type:"number"},{name:"region",label:"Region",type:"string"},{name:"product",label:"Product",type:"string"},{name:"source",label:"Lead Source",type:"string"},{name:"stage",label:"Stage",type:"string"},{name:"amount",label:"Amount",type:"currency"}];function U({dataSource:D}){const{reportName:o}=f(),{showDebug:l,toggleDebug:d}=w(),[c,t]=n.useState(!1),{reports:u,loading:p}=y(),a=u?.find(r=>r.name===o),[s,i]=n.useState(a);if(n.useEffect(()=>{i(a)},[a]),p)return e.jsx("div",{className:"h-full flex items-center justify-center p-8",children:e.jsx(S,{className:"h-8 w-8 animate-spin text-muted-foreground"})});if(!a)return e.jsx("div",{className:"h-full flex items-center justify-center p-8",children:e.jsxs(j,{children:[e.jsx("div",{className:"mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-muted",children:e.jsx(k,{className:"h-6 w-6 text-muted-foreground"})}),e.jsx(v,{children:"Report Not Found"}),e.jsxs(N,{children:['The report "',o,'" could not be found. It may have been removed or renamed.']})]})});const x=r=>{console.log("Saving report:",r),i(r),t(!1)};if(c)return e.jsxs("div",{className:"flex flex-col h-full overflow-hidden bg-background",children:[e.jsxs("div",{className:"flex items-center p-3 sm:p-4 border-b bg-muted/10 gap-2",children:[e.jsxs(m,{variant:"ghost",size:"sm",onClick:()=>t(!1),className:"shrink-0",children:[e.jsx(C,{className:"h-4 w-4 mr-1"}),e.jsx("span",{className:"hidden sm:inline",children:"Back to View"}),e.jsx("span",{className:"sm:hidden",children:"Back"})]}),e.jsxs("div",{className:"font-medium truncate",children:["Edit Report: ",s.title]})]}),e.jsx("div",{className:"flex-1 overflow-auto",children:e.jsx(g,{schema:{title:"Report Builder",report:s,availableFields:B,onSave:x,onCancel:()=>t(!1)}})})]});const h={type:"report-viewer",report:s,showToolbar:!0,allowExport:!0};return e.jsxs("div",{className:"flex flex-col h-full overflow-hidden bg-background",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row justify-between sm:items-center gap-3 sm:gap-4 p-4 sm:p-6 border-b shrink-0 bg-muted/10",children:[e.jsx("div",{className:"min-w-0",children:e.jsx("h1",{className:"text-base sm:text-lg font-medium text-muted-foreground truncate",children:s.title||"Report Viewer"})}),e.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[e.jsxs(m,{variant:"outline",size:"sm",onClick:()=>t(!0),className:"h-8",children:[e.jsx(M,{className:"h-4 w-4 sm:mr-2"}),e.jsx("span",{className:"hidden sm:inline",children:"Edit Report"})]}),e.jsx(R,{open:l,onToggle:d})]})]}),e.jsxs("div",{className:"flex-1 overflow-hidden flex flex-row relative",children:[e.jsx("div",{className:"flex-1 overflow-auto p-4 sm:p-6 lg:p-8 bg-muted/5",children:e.jsx("div",{className:"max-w-5xl mx-auto shadow-sm border rounded-lg sm:rounded-xl bg-background overflow-hidden min-h-150",children:e.jsx(b,{schema:h})})}),e.jsx(E,{open:l,sections:[{title:"Report Configuration",data:s}]})]})]})}export{U as ReportView};
@@ -0,0 +1 @@
1
+ import{h as S,k as L,r as m,j as s,L as g}from"./vendor-react-Dy_xkBQQ.js";import{M as I,a1 as f,Y as P,Z as A}from"./ui-components-CseD2Dpn.js";import"./framework-mHWN965c.js";import"./vendor-ui-utils-h6yAcIi9.js";import{b as E}from"./index-RAPqkKVL.js";import{A as M,S as b,aE as T,a1 as q,aD as O,as as x}from"./vendor-icons-CQ8b-fGy.js";import"./vendor-radix-BbeYj_o4.js";import"./vendor-i18n-D5KbMT7w.js";import"./vendor-charts-CSvoW-yB.js";import"./plugins-core-Cv2TPt86.js";import"./plugins-views-divN-xXs.js";import"./infrastructure-Di0WqY4l.js";import"./data-adapter-D15yh-pb.js";import"./vendor-objectstack-Bifvxvds.js";import"./vendor-zod-UZPqlszj.js";import"./ui-layout-CF_1bNSv.js";function N(p){const l=[];for(const o of p)o.type==="group"&&o.children?l.push(...N(o.children)):l.push(o);return l}const j={object:x,dashboard:O,page:q,report:T},D={object:"bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200",dashboard:"bg-purple-100 text-purple-800 dark:bg-purple-900 dark:text-purple-200",page:"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200",report:"bg-orange-100 text-orange-800 dark:bg-orange-900 dark:text-orange-200"};function ee(){const{appName:p}=S(),[l,o]=L(),y=l.get("q")||"",[n,v]=m.useState(y),{apps:w}=E(),h=w||[],u=h.find(t=>t.name===p)||h[0],c=`/apps/${p}`,i=m.useMemo(()=>u?N(u.navigation||[]).map(e=>{let a="#";return e.type==="object"?a=`${c}/${e.objectName}`:e.type==="dashboard"?a=`${c}/dashboard/${e.dashboardName}`:e.type==="page"?a=`${c}/page/${e.pageName}`:e.type==="report"&&(a=`${c}/report/${e.reportName}`),{id:e.id,label:e.label||e.objectName||e.dashboardName||e.pageName||e.reportName||"",href:a,type:e.type,description:e.description}}).filter(e=>e.href!=="#"):[],[u,c]),d=m.useMemo(()=>{if(!n.trim())return i;const t=n.toLowerCase();return i.filter(e=>e.label.toLowerCase().includes(t)||e.type.toLowerCase().includes(t)||e.description&&e.description.toLowerCase().includes(t))},[i,n]),$=t=>{v(t),o(t?{q:t}:{})},C=m.useMemo(()=>{const t={};for(const e of d)(t[e.type]||=[]).push(e);return t},[d]);return s.jsxs("div",{className:"flex flex-col gap-6 p-4 sm:p-6 max-w-4xl mx-auto",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs(g,{to:c,className:"flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[s.jsx(M,{className:"h-4 w-4"}),"Back"]}),s.jsx("h1",{className:"text-xl font-semibold",children:"Search"})]}),s.jsxs("div",{className:"relative",children:[s.jsx(b,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),s.jsx(I,{value:n,onChange:t=>$(t.target.value),placeholder:"Search objects, dashboards, pages, reports...",className:"pl-10 h-11 text-base",autoFocus:!0})]}),s.jsx("div",{className:"text-sm text-muted-foreground",children:n.trim()?`${d.length} result${d.length!==1?"s":""} for "${n}"`:`${i.length} items available`}),d.length===0?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(b,{className:"h-12 w-12 text-muted-foreground/30 mb-4"}),s.jsx("p",{className:"text-lg font-medium text-muted-foreground",children:"No results found"}),s.jsx("p",{className:"text-sm text-muted-foreground/80 mt-1",children:"Try adjusting your search terms"})]}):s.jsx("div",{className:"space-y-6",children:Object.entries(C).map(([t,e])=>{const a=j[t]||x;return s.jsxs("div",{children:[s.jsxs("h2",{className:"text-sm font-medium text-muted-foreground mb-2 flex items-center gap-1.5",children:[s.jsx(a,{className:"h-4 w-4"}),t.charAt(0).toUpperCase()+t.slice(1),"s",s.jsx(f,{variant:"secondary",className:"ml-1 text-xs",children:e.length})]}),s.jsx("div",{className:"grid gap-2",children:e.map(r=>{const k=j[r.type]||x;return s.jsx(g,{to:r.href,children:s.jsx(P,{className:"hover:bg-accent/50 transition-colors cursor-pointer",children:s.jsxs(A,{className:"flex items-center gap-3 p-3",children:[s.jsx("div",{className:`flex h-8 w-8 items-center justify-center rounded ${D[r.type]||""}`,children:s.jsx(k,{className:"h-4 w-4"})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:r.label}),r.description&&s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:r.description})]}),s.jsx(f,{variant:"outline",className:"text-xs shrink-0",children:r.type})]})})},r.id)})})]},t)})})]})}export{ee as SearchResultsPage};