@object-ui/plugin-designer 0.1.0 → 2.0.0
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/dist/index.d.ts +1 -1
- package/dist/index.js +1152 -530
- package/dist/index.umd.cjs +2 -2
- package/dist/{src → plugin-designer/src}/CollaborationProvider.d.ts +0 -1
- package/dist/{src → plugin-designer/src}/DataModelDesigner.d.ts +0 -1
- package/dist/{src → plugin-designer/src}/PageDesigner.d.ts +0 -1
- package/dist/{src → plugin-designer/src}/ProcessDesigner.d.ts +0 -1
- package/dist/{src → plugin-designer/src}/ReportDesigner.d.ts +0 -1
- package/dist/plugin-designer/src/ViewDesigner.d.ts +67 -0
- package/dist/{src → plugin-designer/src}/index.d.ts +3 -2
- package/package.json +5 -5
- package/dist/src/CollaborationProvider.d.ts.map +0 -1
- package/dist/src/DataModelDesigner.d.ts.map +0 -1
- package/dist/src/PageDesigner.d.ts.map +0 -1
- package/dist/src/ProcessDesigner.d.ts.map +0 -1
- package/dist/src/ReportDesigner.d.ts.map +0 -1
- package/dist/src/index.d.ts.map +0 -1
package/dist/index.umd.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(M,G){typeof exports=="object"&&typeof module<"u"?G(exports,require("@object-ui/core"),require("react"),require("lucide-react"),require("clsx"),require("tailwind-merge")):typeof define=="function"&&define.amd?define(["exports","@object-ui/core","react","lucide-react","clsx","tailwind-merge"],G):(M=typeof globalThis<"u"?globalThis:M||self,G(M.ObjectUIPluginDesigner={},M.ObjectUICore,M.React,M.lucideReact,M.clsx,M.tailwindMerge))})(this,(function(M,G,d,o,W,H){"use strict";var q={exports:{}},B={};var oe;function fe(){if(oe)return B;oe=1;var c=Symbol.for("react.transitional.element"),v=Symbol.for("react.fragment");function y(P,g,f){var k=null;if(f!==void 0&&(k=""+f),g.key!==void 0&&(k=""+g.key),"key"in g){f={};for(var m in g)m!=="key"&&(f[m]=g[m])}else f=g;return g=f.ref,{$$typeof:c,type:P,key:k,ref:g!==void 0?g:null,props:f}}return B.Fragment=v,B.jsx=y,B.jsxs=y,B}var J={};var ie;function ve(){return ie||(ie=1,process.env.NODE_ENV!=="production"&&(function(){function c(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===U?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case x:return"Fragment";case h:return"Profiler";case a:return"StrictMode";case j:return"Suspense";case b:return"SuspenseList";case z:return"Activity"}if(typeof s=="object")switch(typeof s.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),s.$$typeof){case S:return"Portal";case R:return s.displayName||"Context";case i:return(s._context.displayName||"Context")+".Consumer";case N:var u=s.render;return s=s.displayName,s||(s=u.displayName||u.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case L:return u=s.displayName||null,u!==null?u:c(s.type)||"Memo";case I:u=s._payload,s=s._init;try{return c(s(u))}catch{}}return null}function v(s){return""+s}function y(s){try{v(s);var u=!1}catch{u=!0}if(u){u=console;var T=u.error,F=typeof Symbol=="function"&&Symbol.toStringTag&&s[Symbol.toStringTag]||s.constructor.name||"Object";return T.call(u,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",F),v(s)}}function P(s){if(s===x)return"<>";if(typeof s=="object"&&s!==null&&s.$$typeof===I)return"<...>";try{var u=c(s);return u?"<"+u+">":"<...>"}catch{return"<...>"}}function g(){var s=X.A;return s===null?null:s.getOwner()}function f(){return Error("react-stack-top-frame")}function k(s){if(Z.call(s,"key")){var u=Object.getOwnPropertyDescriptor(s,"key").get;if(u&&u.isReactWarning)return!1}return s.key!==void 0}function m(s,u){function T(){ee||(ee=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",u))}T.isReactWarning=!0,Object.defineProperty(s,"key",{get:T,configurable:!0})}function p(){var s=c(this.type);return Q[s]||(Q[s]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),s=this.props.ref,s!==void 0?s:null}function l(s,u,T,F,t,n){var r=T.ref;return s={$$typeof:_,type:s,key:u,props:T,_owner:F},(r!==void 0?r:null)!==null?Object.defineProperty(s,"ref",{enumerable:!1,get:p}):Object.defineProperty(s,"ref",{enumerable:!1,value:null}),s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(s,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(s,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:t}),Object.defineProperty(s,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:n}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s}function C(s,u,T,F,t,n){var r=u.children;if(r!==void 0)if(F)if(ne(r)){for(F=0;F<r.length;F++)D(r[F]);Object.freeze&&Object.freeze(r)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else D(r);if(Z.call(u,"key")){r=c(s);var w=Object.keys(u).filter(function(O){return O!=="key"});F=0<w.length?"{key: someKey, "+w.join(": ..., ")+": ...}":"{key: someKey}",Y[r+F]||(w=0<w.length?"{"+w.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
2
|
let props = %s;
|
|
3
3
|
<%s {...props} />
|
|
4
4
|
React keys must be passed directly to JSX without using spread:
|
|
5
5
|
let props = %s;
|
|
6
|
-
<%s key={someKey} {...props} />`,k,E,z,E),ue[E+k]=!0)}if(E=null,w!==void 0&&(h(w),E=""+w),b(a)&&(h(a.key),E=""+a.key),"key"in a){w={};for(var K in a)K!=="key"&&(w[K]=a[K])}else w=a;return E&&S(w,typeof t=="function"?t.displayName||t.name||"Unknown":t),P(t,E,w,i(),U,Z)}function T(t){v(t)?t._store&&(t._store.validated=1):typeof t=="object"&&t!==null&&t.$$typeof===I&&(t._payload.status==="fulfilled"?v(t._payload.value)&&t._payload.value._store&&(t._payload.value._store.validated=1):t._store&&(t._store.validated=1))}function v(t){return typeof t=="object"&&t!==null&&t.$$typeof===j}var _=x,j=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),C=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),ye=Symbol.for("react.client.reference"),B=_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe=Object.prototype.hasOwnProperty,ve=Array.isArray,X=console.createTask?console.createTask:function(){return null};_={react_stack_bottom_frame:function(t){return t()}};var le,ie={},de=_.react_stack_bottom_frame.bind(_,d)(),ce=X(N(d)),ue={};F.Fragment=o,F.jsx=function(t,a,w){var k=1e4>B.recentlyCreatedOwnerStacks++;return y(t,a,w,!1,k?Error("react-stack-top-frame"):de,k?X(N(t)):ce)},F.jsxs=function(t,a,w){var k=1e4>B.recentlyCreatedOwnerStacks++;return y(t,a,w,!0,k?Error("react-stack-top-frame"):de,k?X(N(t)):ce)}})()),F}var $;function me(){return $||($=1,process.env.NODE_ENV==="production"?Y.exports=he():Y.exports=pe()),Y.exports}var e=me();function V(...n){return L.twMerge(G.clsx(n))}function ee({canvas:n={width:1200,height:800,gridSize:8,showGrid:!0,snapToGrid:!0},components:u=[],palette:h=xe,showComponentTree:N=!0,undoRedo:i=!0,readOnly:d=!1,onChange:b,className:S}){const[l,P]=x.useState(u),[y,T]=x.useState(null),[v,_]=x.useState(n.zoom??1),j=x.useMemo(()=>l.find(r=>r.id===y),[l,y]),A=x.useCallback((r,c)=>{if(d)return;const s={id:`comp-${Date.now()}`,type:r,label:c,position:{x:100,y:100,width:200,height:100},props:{}},C=[...l,s];P(C),T(s.id),b?.(C)},[l,d,b]),o=x.useCallback(r=>{if(d)return;const c=l.filter(s=>s.id!==r);P(c),y===r&&T(null),b?.(c)},[l,y,d,b]);return e.jsxs("div",{className:V("flex h-full w-full border rounded-lg overflow-hidden bg-background",S),children:[!d&&e.jsxs("div",{className:"w-60 border-r bg-muted/30 flex flex-col",children:[e.jsx("div",{className:"p-3 border-b font-medium text-sm",children:"Components"}),e.jsx("div",{className:"flex-1 overflow-y-auto p-2",children:h.map(r=>e.jsxs("div",{className:"mb-3",children:[e.jsx("div",{className:"text-xs font-medium text-muted-foreground px-2 py-1 uppercase",children:r.label}),r.items.map(c=>e.jsxs("button",{onClick:()=>A(c.type,c.label),className:"w-full flex items-center gap-2 px-2 py-1.5 text-sm rounded hover:bg-accent text-left",children:[e.jsx(f.Plus,{className:"h-3 w-3"}),c.label]},c.type))]},r.name))})]}),e.jsxs("div",{className:"flex-1 flex flex-col",children:[e.jsxs("div",{className:"flex items-center gap-2 p-2 border-b bg-muted/20",children:[i&&!d&&e.jsxs(e.Fragment,{children:[e.jsx("button",{className:"p-1.5 rounded hover:bg-accent",title:"Undo",children:e.jsx(f.Undo2,{className:"h-4 w-4"})}),e.jsx("button",{className:"p-1.5 rounded hover:bg-accent",title:"Redo",children:e.jsx(f.Redo2,{className:"h-4 w-4"})}),e.jsx("div",{className:"w-px h-5 bg-border mx-1"})]}),e.jsx("button",{className:"p-1.5 rounded hover:bg-accent",title:"Preview",children:e.jsx(f.Eye,{className:"h-4 w-4"})}),e.jsx("div",{className:"flex-1"}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:[Math.round(v*100),"%"]})]}),e.jsx("div",{className:"flex-1 overflow-auto bg-muted/10 p-4",children:e.jsx("div",{className:"relative bg-background border rounded shadow-sm mx-auto",style:{width:n.width*v,height:n.height*v,backgroundImage:n.showGrid?"radial-gradient(circle, hsl(var(--border)) 1px, transparent 1px)":void 0,backgroundSize:n.showGrid&&n.gridSize?`${n.gridSize*v}px ${n.gridSize*v}px`:void 0},children:l.map(r=>e.jsxs("div",{className:V("absolute border rounded cursor-move select-none transition-shadow",y===r.id?"border-primary ring-2 ring-primary/20 shadow-md":"border-border hover:border-primary/50"),style:{left:r.position.x*v,top:r.position.y*v,width:typeof r.position.width=="number"?r.position.width*v:r.position.width,height:typeof r.position.height=="number"?r.position.height*v:r.position.height},onClick:()=>T(r.id),children:[e.jsxs("div",{className:"flex items-center gap-1 px-2 py-1 bg-muted/50 text-xs border-b",children:[e.jsx(f.GripVertical,{className:"h-3 w-3 text-muted-foreground"}),e.jsx("span",{className:"truncate",children:r.label??r.type}),!d&&e.jsx("button",{onClick:c=>{c.stopPropagation(),o(r.id)},className:"ml-auto p-0.5 rounded hover:bg-destructive/10",children:e.jsx(f.Trash2,{className:"h-3 w-3 text-destructive"})})]}),e.jsx("div",{className:"p-2 text-xs text-muted-foreground",children:r.type})]},r.id))})})]}),N&&e.jsxs("div",{className:"w-60 border-l bg-muted/30 flex flex-col",children:[e.jsxs("div",{className:"p-3 border-b font-medium text-sm flex items-center gap-2",children:[e.jsx(f.Layers,{className:"h-4 w-4"}),"Component Tree"]}),e.jsx("div",{className:"flex-1 overflow-y-auto p-2",children:l.length===0?e.jsx("div",{className:"text-xs text-muted-foreground text-center py-4",children:"No components added yet"}):l.map(r=>e.jsx("button",{onClick:()=>T(r.id),className:V("w-full flex items-center gap-2 px-2 py-1.5 text-sm rounded text-left",y===r.id?"bg-accent":"hover:bg-accent/50"),children:e.jsx("span",{className:"truncate",children:r.label??r.type})},r.id))}),j&&e.jsxs("div",{className:"border-t p-3",children:[e.jsx("div",{className:"text-xs font-medium mb-2",children:"Properties"}),e.jsxs("div",{className:"text-xs text-muted-foreground space-y-1",children:[e.jsxs("div",{children:["Type: ",j.type]}),e.jsxs("div",{children:["ID: ",j.id]}),e.jsxs("div",{children:["Position: ",j.position.x,", ",j.position.y]}),e.jsxs("div",{children:["Size: ",j.position.width," × ",j.position.height]})]})]})]})]})}const xe=[{name:"layout",label:"Layout",items:[{type:"container",label:"Container",defaultSize:{width:400,height:300}},{type:"flex",label:"Flex",defaultSize:{width:400,height:200}},{type:"grid",label:"Grid",defaultSize:{width:400,height:300}},{type:"card",label:"Card",defaultSize:{width:300,height:200}},{type:"tabs",label:"Tabs",defaultSize:{width:400,height:300}}]},{name:"form",label:"Form",items:[{type:"input",label:"Input",defaultSize:{width:300,height:60}},{type:"textarea",label:"Textarea",defaultSize:{width:300,height:120}},{type:"select",label:"Select",defaultSize:{width:300,height:60}},{type:"checkbox",label:"Checkbox",defaultSize:{width:200,height:40}},{type:"button",label:"Button",defaultSize:{width:120,height:40}}]},{name:"data",label:"Data",items:[{type:"table",label:"Table",defaultSize:{width:600,height:400}},{type:"chart",label:"Chart",defaultSize:{width:400,height:300}},{type:"list",label:"List",defaultSize:{width:300,height:400}},{type:"statistic",label:"Statistic",defaultSize:{width:200,height:100}}]}];function W(...n){return L.twMerge(G.clsx(n))}function te({entities:n=[],relationships:u=[],canvas:h={width:1200,height:800,showGrid:!0},showRelationshipLabels:N=!0,readOnly:i=!1,onEntitiesChange:d,onRelationshipsChange:b,className:S}){const[l,P]=x.useState(n),[y,T]=x.useState(u),[v,_]=x.useState(null),j=x.useCallback(()=>{if(i)return;const o={id:`entity-${Date.now()}`,name:`new_entity_${l.length+1}`,label:`New Entity ${l.length+1}`,fields:[{name:"id",type:"uuid",primaryKey:!0,required:!0},{name:"created_at",type:"datetime",required:!0},{name:"updated_at",type:"datetime",required:!0}],position:{x:50+l.length%4*280,y:50+Math.floor(l.length/4)*250}},r=[...l,o];P(r),_(o.id),d?.(r)},[l,i,d]),A=x.useCallback(o=>{if(i)return;const r=l.filter(s=>s.id!==o),c=y.filter(s=>s.sourceEntity!==o&&s.targetEntity!==o);P(r),T(c),v===o&&_(null),d?.(r),b?.(c)},[l,y,v,i,d,b]);return e.jsx("div",{className:W("flex h-full w-full border rounded-lg overflow-hidden bg-background",S),children:e.jsxs("div",{className:"flex flex-col w-full",children:[e.jsxs("div",{className:"flex items-center gap-2 p-2 border-b bg-muted/20",children:[e.jsx(f.Database,{className:"h-4 w-4"}),e.jsx("span",{className:"font-medium text-sm",children:"Data Model Designer"}),e.jsx("div",{className:"flex-1"}),!i&&e.jsxs(e.Fragment,{children:[e.jsxs("button",{onClick:j,className:"flex items-center gap-1 px-2 py-1 text-xs rounded bg-primary text-primary-foreground hover:bg-primary/90",children:[e.jsx(f.Plus,{className:"h-3 w-3"})," Add Entity"]}),e.jsxs("button",{className:"flex items-center gap-1 px-2 py-1 text-xs rounded bg-secondary text-secondary-foreground hover:bg-secondary/80",children:[e.jsx(f.Link2,{className:"h-3 w-3"})," Add Relationship"]})]})]}),e.jsx("div",{className:"flex-1 overflow-auto bg-muted/10 p-4",children:e.jsxs("div",{className:"relative",style:{width:h.width,minHeight:h.height,backgroundImage:h.showGrid?"radial-gradient(circle, hsl(var(--border)) 1px, transparent 1px)":void 0,backgroundSize:h.showGrid?"20px 20px":void 0},children:[e.jsx("svg",{className:"absolute inset-0 pointer-events-none",width:h.width,height:h.height,children:y.map(o=>{const r=l.find(s=>s.id===o.sourceEntity),c=l.find(s=>s.id===o.targetEntity);return!r||!c?null:e.jsxs("g",{children:[e.jsx("line",{x1:r.position.x+120,y1:r.position.y+50,x2:c.position.x+120,y2:c.position.y+50,stroke:"hsl(var(--primary))",strokeWidth:"2",strokeDasharray:o.type==="many-to-many"?"5,5":void 0}),N&&o.label&&e.jsx("text",{x:(r.position.x+c.position.x)/2+120,y:(r.position.y+c.position.y)/2+50-8,textAnchor:"middle",className:"text-xs fill-muted-foreground",children:o.label})]},o.id)})}),l.map(o=>e.jsxs("div",{className:W("absolute rounded-lg border-2 bg-background shadow-sm w-60 select-none",v===o.id?"border-primary ring-2 ring-primary/20":"border-border hover:border-primary/50"),style:{left:o.position.x,top:o.position.y},onClick:()=>_(o.id),children:[e.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 rounded-t-lg font-medium text-sm",style:{backgroundColor:o.color??"hsl(var(--primary) / 0.1)"},children:[e.jsx(f.Database,{className:"h-3.5 w-3.5"}),e.jsx("span",{className:"truncate",children:o.label}),!i&&e.jsx("button",{onClick:r=>{r.stopPropagation(),A(o.id)},className:"ml-auto p-0.5 rounded hover:bg-destructive/20",children:e.jsx(f.Trash2,{className:"h-3 w-3 text-destructive"})})]}),e.jsx("div",{className:"px-3 py-1 divide-y",children:o.fields.map(r=>e.jsxs("div",{className:"flex items-center gap-2 py-1 text-xs",children:[e.jsxs("span",{className:W("font-mono",r.primaryKey&&"font-bold text-primary"),children:[r.primaryKey?"🔑 ":"",r.name]}),e.jsx("span",{className:"text-muted-foreground ml-auto",children:r.type}),r.required&&e.jsx("span",{className:"text-destructive",children:"*"})]},r.name))})]},o.id))]})})]})})}function H(...n){return L.twMerge(G.clsx(n))}function re({processName:n="New Process",nodes:u=[],edges:h=[],lanes:N,canvas:i={width:1400,height:800,showGrid:!0},showToolbar:d=!0,readOnly:b=!1,onNodesChange:S,onEdgesChange:l,className:P}){const[y,T]=x.useState(u),[v,_]=x.useState(h),[j,A]=x.useState(null),o=x.useCallback((s,C)=>{if(b)return;const m={id:`node-${Date.now()}`,type:s,label:C,position:{x:200+y.length*160,y:200}},p=[...y,m];T(p),A(m.id),S?.(p)},[y,b,S]),r=x.useCallback(s=>{if(b)return;const C=y.filter(p=>p.id!==s),m=v.filter(p=>p.source!==s&&p.target!==s);T(C),_(m),j===s&&A(null),S?.(C),l?.(m)},[y,v,j,b,S,l]),c=s=>{switch(s){case"start-event":return"rounded-full bg-green-100 border-green-500 text-green-700";case"end-event":return"rounded-full bg-red-100 border-red-500 text-red-700";case"exclusive-gateway":case"parallel-gateway":case"inclusive-gateway":case"event-based-gateway":return"rotate-45 bg-yellow-100 border-yellow-500 text-yellow-700";case"user-task":return"rounded bg-blue-100 border-blue-500 text-blue-700";case"service-task":case"script-task":return"rounded bg-purple-100 border-purple-500 text-purple-700";default:return"rounded bg-gray-100 border-gray-500 text-gray-700"}};return e.jsxs("div",{className:H("flex flex-col h-full w-full border rounded-lg overflow-hidden bg-background",P),children:[d&&e.jsxs("div",{className:"flex items-center gap-2 p-2 border-b bg-muted/20",children:[e.jsx(f.GitBranch,{className:"h-4 w-4"}),e.jsx("span",{className:"font-medium text-sm",children:n}),e.jsx("div",{className:"flex-1"}),!b&&e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsxs("button",{onClick:()=>o("start-event","Start"),className:"flex items-center gap-1 px-2 py-1 text-xs rounded hover:bg-accent",title:"Add Start Event",children:[e.jsx(f.Play,{className:"h-3 w-3 text-green-600"})," Start"]}),e.jsxs("button",{onClick:()=>o("user-task","User Task"),className:"flex items-center gap-1 px-2 py-1 text-xs rounded hover:bg-accent",title:"Add User Task",children:[e.jsx(f.Square,{className:"h-3 w-3 text-blue-600"})," Task"]}),e.jsxs("button",{onClick:()=>o("exclusive-gateway","Decision"),className:"flex items-center gap-1 px-2 py-1 text-xs rounded hover:bg-accent",title:"Add Gateway",children:[e.jsx(f.Diamond,{className:"h-3 w-3 text-yellow-600"})," Gateway"]}),e.jsxs("button",{onClick:()=>o("end-event","End"),className:"flex items-center gap-1 px-2 py-1 text-xs rounded hover:bg-accent",title:"Add End Event",children:[e.jsx(f.Square,{className:"h-3 w-3 text-red-600"})," End"]})]})]}),e.jsx("div",{className:"flex-1 overflow-auto bg-muted/10 p-4",children:e.jsxs("div",{className:"relative",style:{width:i.width,minHeight:i.height,backgroundImage:i.showGrid?"radial-gradient(circle, hsl(var(--border)) 1px, transparent 1px)":void 0,backgroundSize:i.showGrid?"20px 20px":void 0},children:[e.jsxs("svg",{className:"absolute inset-0 pointer-events-none",width:i.width,height:i.height,children:[e.jsx("defs",{children:e.jsx("marker",{id:"arrowhead",markerWidth:"10",markerHeight:"7",refX:"10",refY:"3.5",orient:"auto",children:e.jsx("polygon",{points:"0 0, 10 3.5, 0 7",fill:"hsl(var(--foreground))"})})}),v.map(s=>{const C=y.find(p=>p.id===s.source),m=y.find(p=>p.id===s.target);return!C||!m?null:e.jsx("line",{x1:C.position.x+60,y1:C.position.y+25,x2:m.position.x,y2:m.position.y+25,stroke:"hsl(var(--foreground) / 0.5)",strokeWidth:"2",markerEnd:"url(#arrowhead)"},s.id)})]}),y.map(s=>e.jsxs("div",{className:"absolute select-none",style:{left:s.position.x,top:s.position.y},onClick:()=>A(s.id),children:[e.jsx("div",{className:H("flex items-center justify-center border-2 min-w-[120px] min-h-[50px] px-3 py-2",c(s.type),j===s.id&&"ring-2 ring-primary shadow-md"),children:e.jsx("span",{className:H("text-xs font-medium",(s.type==="exclusive-gateway"||s.type==="parallel-gateway")&&"-rotate-45"),children:s.label})}),!b&&j===s.id&&e.jsx("button",{onClick:C=>{C.stopPropagation(),r(s.id)},className:"absolute -top-2 -right-2 p-0.5 rounded-full bg-destructive text-destructive-foreground shadow",children:e.jsx(f.Trash2,{className:"h-3 w-3"})})]},s.id))]})})]})}function se(...n){return L.twMerge(G.clsx(n))}const fe={A4:{width:595,height:842},A3:{width:842,height:1191},Letter:{width:612,height:792},Legal:{width:612,height:1008},Tabloid:{width:792,height:1224}};function ae({reportName:n="Untitled Report",objectName:u,pageSize:h="A4",orientation:N="portrait",margins:i={top:40,right:40,bottom:40,left:40},sections:d=[],showToolbar:b=!0,showPropertyPanel:S=!0,readOnly:l=!1,onSectionsChange:P,className:y}){const[T,v]=x.useState(d.length>0?d:[{type:"header",height:80,elements:[]},{type:"detail",height:400,elements:[],repeat:!0},{type:"footer",height:60,elements:[]}]),[_,j]=x.useState(null),A=fe[h],o=N==="landscape"?A.height:A.width,r=N==="landscape"?A.width:A.height,c=x.useCallback((m,p)=>{if(l)return;const g={id:`elem-${Date.now()}`,type:p,position:{x:i.left,y:10,width:200,height:30},properties:{text:p==="text"?"New Text":void 0,field:p==="field"?"field_name":void 0}},O=T.map((I,J)=>J===m?{...I,elements:[...I.elements,g]}:I);v(O),j(g.id),P?.(O)},[T,i.left,l,P]),s=x.useCallback(m=>{if(l)return;const p=T.map(g=>({...g,elements:g.elements.filter(O=>O.id!==m)}));v(p),_===m&&j(null),P?.(p)},[T,_,l,P]),C=m=>{switch(m){case"header":return"Report Header";case"page-header":return"Page Header";case"group-header":return"Group Header";case"detail":return"Detail";case"group-footer":return"Group Footer";case"page-footer":return"Page Footer";case"footer":return"Report Footer";default:return m}};return e.jsxs("div",{className:se("flex h-full w-full border rounded-lg overflow-hidden bg-background",y),children:[e.jsxs("div",{className:"flex-1 flex flex-col",children:[b&&e.jsxs("div",{className:"flex items-center gap-2 p-2 border-b bg-muted/20",children:[e.jsx(f.FileText,{className:"h-4 w-4"}),e.jsx("span",{className:"font-medium text-sm",children:n}),u&&e.jsxs("span",{className:"text-xs text-muted-foreground",children:["(",u,")"]}),e.jsx("div",{className:"flex-1"}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:[h," ",N]})]}),e.jsx("div",{className:"flex-1 overflow-auto bg-muted/10 p-4 flex justify-center",children:e.jsx("div",{className:"bg-white shadow-lg border",style:{width:o,minHeight:r},children:T.map((m,p)=>e.jsxs("div",{className:"relative border-b border-dashed border-gray-300",style:{minHeight:m.height},children:[e.jsxs("div",{className:"absolute left-0 top-0 px-2 py-0.5 bg-muted text-xs text-muted-foreground border-r border-b rounded-br",children:[C(m.type),m.repeat&&" ↻"]}),!l&&e.jsxs("div",{className:"absolute right-1 top-0 flex items-center gap-0.5",children:[e.jsx("button",{onClick:()=>c(p,"text"),className:"p-0.5 rounded hover:bg-accent",title:"Add Text",children:e.jsx(f.Type,{className:"h-3 w-3"})}),e.jsx("button",{onClick:()=>c(p,"field"),className:"p-0.5 rounded hover:bg-accent",title:"Add Field",children:e.jsx(f.Plus,{className:"h-3 w-3"})}),e.jsx("button",{onClick:()=>c(p,"image"),className:"p-0.5 rounded hover:bg-accent",title:"Add Image",children:e.jsx(f.ImageIcon,{className:"h-3 w-3"})}),e.jsx("button",{onClick:()=>c(p,"chart"),className:"p-0.5 rounded hover:bg-accent",title:"Add Chart",children:e.jsx(f.BarChart3,{className:"h-3 w-3"})}),e.jsx("button",{onClick:()=>c(p,"table"),className:"p-0.5 rounded hover:bg-accent",title:"Add Table",children:e.jsx(f.Table2,{className:"h-3 w-3"})})]}),e.jsx("div",{className:"relative",style:{minHeight:m.height,paddingTop:24},children:m.elements.map(g=>e.jsxs("div",{className:se("absolute border rounded px-2 py-1 text-xs cursor-pointer",_===g.id?"border-primary ring-1 ring-primary/30 bg-primary/5":"border-dashed border-gray-400 hover:border-primary/50"),style:{left:g.position.x,top:(typeof g.position.y=="number"?g.position.y:0)+24,width:g.position.width,height:g.position.height},onClick:()=>j(g.id),children:[e.jsxs("span",{className:"text-muted-foreground",children:[g.type==="text"&&(g.properties.text??"Text"),g.type==="field"&&`{${g.properties.field??"field"}}`,g.type==="image"&&"🖼 Image",g.type==="chart"&&"📊 Chart",g.type==="table"&&"📋 Table"]}),!l&&_===g.id&&e.jsx("button",{onClick:O=>{O.stopPropagation(),s(g.id)},className:"absolute -top-2 -right-2 p-0.5 rounded-full bg-destructive text-destructive-foreground shadow",children:e.jsx(f.Trash2,{className:"h-2.5 w-2.5"})})]},g.id))})]},`${m.type}-${p}`))})})]}),S&&e.jsxs("div",{className:"w-56 border-l bg-muted/30 flex flex-col",children:[e.jsx("div",{className:"p-3 border-b font-medium text-sm",children:"Properties"}),e.jsx("div",{className:"flex-1 overflow-y-auto p-3",children:_?e.jsx("div",{className:"space-y-2 text-xs",children:e.jsxs("div",{className:"text-muted-foreground",children:["Element ID: ",_]})}):e.jsx("div",{className:"text-xs text-muted-foreground text-center py-4",children:"Select an element to view properties"})})]})]})}const ne=x.createContext(null);ne.displayName="CollaborationContext";function be({config:n,user:u,onOperation:h,children:N}){const i=x.useMemo(()=>!n.enabled||!u?[]:[{userId:u.id,userName:u.name,avatar:u.avatar,color:ge(u.id),status:"active",lastActivity:new Date().toISOString()}],[n.enabled,u]),d=n.enabled&&!!u,b=x.useCallback(l=>{if(!d||!u)return;const P={...l,id:`op-${Date.now()}`,userId:u.id,timestamp:new Date().toISOString(),version:Date.now()};h?.(P)},[d,u,h]),S=x.useMemo(()=>({users:i,isConnected:d,sendOperation:b,currentUserId:u?.id}),[i,d,b,u?.id]);return e.jsx(ne.Provider,{value:S,children:N})}function ge(n){const u=["#3b82f6","#ef4444","#22c55e","#f59e0b","#8b5cf6","#ec4899","#06b6d4","#f97316"];let h=0;for(let N=0;N<n.length;N++)h=(h<<5)-h+n.charCodeAt(N)|0;return u[Math.abs(h)%u.length]}D.ComponentRegistry.register("page-designer",ee,{label:"Page Designer",category:"Designer",inputs:[{name:"canvas",type:"code",label:"Canvas Configuration"},{name:"components",type:"code",label:"Components"},{name:"showComponentTree",type:"boolean",label:"Show Component Tree",defaultValue:!0},{name:"undoRedo",type:"boolean",label:"Undo/Redo",defaultValue:!0},{name:"readOnly",type:"boolean",label:"Read Only",defaultValue:!1}]}),D.ComponentRegistry.register("data-model-designer",te,{label:"Data Model Designer",category:"Designer",inputs:[{name:"entities",type:"code",label:"Entities"},{name:"relationships",type:"code",label:"Relationships"},{name:"autoLayout",type:"boolean",label:"Auto Layout",defaultValue:!1},{name:"readOnly",type:"boolean",label:"Read Only",defaultValue:!1}]}),D.ComponentRegistry.register("process-designer",re,{label:"Process Designer (BPMN)",category:"Designer",inputs:[{name:"processName",type:"string",label:"Process Name"},{name:"nodes",type:"code",label:"Nodes"},{name:"edges",type:"code",label:"Edges"},{name:"showMinimap",type:"boolean",label:"Show Minimap",defaultValue:!1},{name:"showToolbar",type:"boolean",label:"Show Toolbar",defaultValue:!0},{name:"readOnly",type:"boolean",label:"Read Only",defaultValue:!1}]}),D.ComponentRegistry.register("report-designer",ae,{label:"Report Designer",category:"Designer",inputs:[{name:"reportName",type:"string",label:"Report Name"},{name:"objectName",type:"string",label:"Data Source Object"},{name:"sections",type:"code",label:"Sections"},{name:"showToolbar",type:"boolean",label:"Show Toolbar",defaultValue:!0},{name:"showPropertyPanel",type:"boolean",label:"Show Property Panel",defaultValue:!0},{name:"readOnly",type:"boolean",label:"Read Only",defaultValue:!1}]}),R.CollaborationProvider=be,R.DataModelDesigner=te,R.PageDesigner=ee,R.ProcessDesigner=re,R.ReportDesigner=ae,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})}));
|
|
6
|
+
<%s key={someKey} {...props} />`,F,r,w,r),Y[r+F]=!0)}if(r=null,T!==void 0&&(y(T),r=""+T),k(u)&&(y(u.key),r=""+u.key),"key"in u){T={};for(var V in u)V!=="key"&&(T[V]=u[V])}else T=u;return r&&m(T,typeof s=="function"?s.displayName||s.name||"Unknown":s),l(s,r,T,g(),t,n)}function D(s){E(s)?s._store&&(s._store.validated=1):typeof s=="object"&&s!==null&&s.$$typeof===I&&(s._payload.status==="fulfilled"?E(s._payload.value)&&s._payload.value._store&&(s._payload.value._store.validated=1):s._store&&(s._store.validated=1))}function E(s){return typeof s=="object"&&s!==null&&s.$$typeof===_}var A=d,_=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),R=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),U=Symbol.for("react.client.reference"),X=A.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=Object.prototype.hasOwnProperty,ne=Array.isArray,K=console.createTask?console.createTask:function(){return null};A={react_stack_bottom_frame:function(s){return s()}};var ee,Q={},te=A.react_stack_bottom_frame.bind(A,f)(),se=K(P(f)),Y={};J.Fragment=x,J.jsx=function(s,u,T){var F=1e4>X.recentlyCreatedOwnerStacks++;return C(s,u,T,!1,F?Error("react-stack-top-frame"):te,F?K(P(s)):se)},J.jsxs=function(s,u,T){var F=1e4>X.recentlyCreatedOwnerStacks++;return C(s,u,T,!0,F?Error("react-stack-top-frame"):te,F?K(P(s)):se)}})()),J}var de;function je(){return de||(de=1,process.env.NODE_ENV==="production"?q.exports=fe():q.exports=ve()),q.exports}var e=je();function re(...c){return H.twMerge(W.clsx(c))}function ce({canvas:c={width:1200,height:800,gridSize:8,showGrid:!0,snapToGrid:!0},components:v=[],palette:y=we,showComponentTree:P=!0,undoRedo:g=!0,readOnly:f=!1,onChange:k,className:m}){const[p,l]=d.useState(v),[C,D]=d.useState(null),[E,A]=d.useState(c.zoom??1),_=d.useMemo(()=>p.find(a=>a.id===C),[p,C]),S=d.useCallback((a,h)=>{if(f)return;const i={id:`comp-${Date.now()}`,type:a,label:h,position:{x:100,y:100,width:200,height:100},props:{}},R=[...p,i];l(R),D(i.id),k?.(R)},[p,f,k]),x=d.useCallback(a=>{if(f)return;const h=p.filter(i=>i.id!==a);l(h),C===a&&D(null),k?.(h)},[p,C,f,k]);return e.jsxs("div",{className:re("flex h-full w-full border rounded-lg overflow-hidden bg-background",m),children:[!f&&e.jsxs("div",{className:"w-60 border-r bg-muted/30 flex flex-col",children:[e.jsx("div",{className:"p-3 border-b font-medium text-sm",children:"Components"}),e.jsx("div",{className:"flex-1 overflow-y-auto p-2",children:y.map(a=>e.jsxs("div",{className:"mb-3",children:[e.jsx("div",{className:"text-xs font-medium text-muted-foreground px-2 py-1 uppercase",children:a.label}),a.items.map(h=>e.jsxs("button",{onClick:()=>S(h.type,h.label),className:"w-full flex items-center gap-2 px-2 py-1.5 text-sm rounded hover:bg-accent text-left",children:[e.jsx(o.Plus,{className:"h-3 w-3"}),h.label]},h.type))]},a.name))})]}),e.jsxs("div",{className:"flex-1 flex flex-col",children:[e.jsxs("div",{className:"flex items-center gap-2 p-2 border-b bg-muted/20",children:[g&&!f&&e.jsxs(e.Fragment,{children:[e.jsx("button",{className:"p-1.5 rounded hover:bg-accent",title:"Undo",children:e.jsx(o.Undo2,{className:"h-4 w-4"})}),e.jsx("button",{className:"p-1.5 rounded hover:bg-accent",title:"Redo",children:e.jsx(o.Redo2,{className:"h-4 w-4"})}),e.jsx("div",{className:"w-px h-5 bg-border mx-1"})]}),e.jsx("button",{className:"p-1.5 rounded hover:bg-accent",title:"Preview",children:e.jsx(o.Eye,{className:"h-4 w-4"})}),e.jsx("div",{className:"flex-1"}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:[Math.round(E*100),"%"]})]}),e.jsx("div",{className:"flex-1 overflow-auto bg-muted/10 p-4",children:e.jsx("div",{className:"relative bg-background border rounded shadow-sm mx-auto",style:{width:c.width*E,height:c.height*E,backgroundImage:c.showGrid?"radial-gradient(circle, hsl(var(--border)) 1px, transparent 1px)":void 0,backgroundSize:c.showGrid&&c.gridSize?`${c.gridSize*E}px ${c.gridSize*E}px`:void 0},children:p.map(a=>e.jsxs("div",{className:re("absolute border rounded cursor-move select-none transition-shadow",C===a.id?"border-primary ring-2 ring-primary/20 shadow-md":"border-border hover:border-primary/50"),style:{left:a.position.x*E,top:a.position.y*E,width:typeof a.position.width=="number"?a.position.width*E:a.position.width,height:typeof a.position.height=="number"?a.position.height*E:a.position.height},onClick:()=>D(a.id),children:[e.jsxs("div",{className:"flex items-center gap-1 px-2 py-1 bg-muted/50 text-xs border-b",children:[e.jsx(o.GripVertical,{className:"h-3 w-3 text-muted-foreground"}),e.jsx("span",{className:"truncate",children:a.label??a.type}),!f&&e.jsx("button",{onClick:h=>{h.stopPropagation(),x(a.id)},className:"ml-auto p-0.5 rounded hover:bg-destructive/10",children:e.jsx(o.Trash2,{className:"h-3 w-3 text-destructive"})})]}),e.jsx("div",{className:"p-2 text-xs text-muted-foreground",children:a.type})]},a.id))})})]}),P&&e.jsxs("div",{className:"w-60 border-l bg-muted/30 flex flex-col",children:[e.jsxs("div",{className:"p-3 border-b font-medium text-sm flex items-center gap-2",children:[e.jsx(o.Layers,{className:"h-4 w-4"}),"Component Tree"]}),e.jsx("div",{className:"flex-1 overflow-y-auto p-2",children:p.length===0?e.jsx("div",{className:"text-xs text-muted-foreground text-center py-4",children:"No components added yet"}):p.map(a=>e.jsx("button",{onClick:()=>D(a.id),className:re("w-full flex items-center gap-2 px-2 py-1.5 text-sm rounded text-left",C===a.id?"bg-accent":"hover:bg-accent/50"),children:e.jsx("span",{className:"truncate",children:a.label??a.type})},a.id))}),_&&e.jsxs("div",{className:"border-t p-3",children:[e.jsx("div",{className:"text-xs font-medium mb-2",children:"Properties"}),e.jsxs("div",{className:"text-xs text-muted-foreground space-y-1",children:[e.jsxs("div",{children:["Type: ",_.type]}),e.jsxs("div",{children:["ID: ",_.id]}),e.jsxs("div",{children:["Position: ",_.position.x,", ",_.position.y]}),e.jsxs("div",{children:["Size: ",_.position.width," × ",_.position.height]})]})]})]})]})}const we=[{name:"layout",label:"Layout",items:[{type:"container",label:"Container",defaultSize:{width:400,height:300}},{type:"flex",label:"Flex",defaultSize:{width:400,height:200}},{type:"grid",label:"Grid",defaultSize:{width:400,height:300}},{type:"card",label:"Card",defaultSize:{width:300,height:200}},{type:"tabs",label:"Tabs",defaultSize:{width:400,height:300}}]},{name:"form",label:"Form",items:[{type:"input",label:"Input",defaultSize:{width:300,height:60}},{type:"textarea",label:"Textarea",defaultSize:{width:300,height:120}},{type:"select",label:"Select",defaultSize:{width:300,height:60}},{type:"checkbox",label:"Checkbox",defaultSize:{width:200,height:40}},{type:"button",label:"Button",defaultSize:{width:120,height:40}}]},{name:"data",label:"Data",items:[{type:"table",label:"Table",defaultSize:{width:600,height:400}},{type:"chart",label:"Chart",defaultSize:{width:400,height:300}},{type:"list",label:"List",defaultSize:{width:300,height:400}},{type:"statistic",label:"Statistic",defaultSize:{width:200,height:100}}]}];function ae(...c){return H.twMerge(W.clsx(c))}function ue({entities:c=[],relationships:v=[],canvas:y={width:1200,height:800,showGrid:!0},showRelationshipLabels:P=!0,readOnly:g=!1,onEntitiesChange:f,onRelationshipsChange:k,className:m}){const[p,l]=d.useState(c),[C,D]=d.useState(v),[E,A]=d.useState(null),_=d.useCallback(()=>{if(g)return;const x={id:`entity-${Date.now()}`,name:`new_entity_${p.length+1}`,label:`New Entity ${p.length+1}`,fields:[{name:"id",type:"uuid",primaryKey:!0,required:!0},{name:"created_at",type:"datetime",required:!0},{name:"updated_at",type:"datetime",required:!0}],position:{x:50+p.length%4*280,y:50+Math.floor(p.length/4)*250}},a=[...p,x];l(a),A(x.id),f?.(a)},[p,g,f]),S=d.useCallback(x=>{if(g)return;const a=p.filter(i=>i.id!==x),h=C.filter(i=>i.sourceEntity!==x&&i.targetEntity!==x);l(a),D(h),E===x&&A(null),f?.(a),k?.(h)},[p,C,E,g,f,k]);return e.jsx("div",{className:ae("flex h-full w-full border rounded-lg overflow-hidden bg-background",m),children:e.jsxs("div",{className:"flex flex-col w-full",children:[e.jsxs("div",{className:"flex items-center gap-2 p-2 border-b bg-muted/20",children:[e.jsx(o.Database,{className:"h-4 w-4"}),e.jsx("span",{className:"font-medium text-sm",children:"Data Model Designer"}),e.jsx("div",{className:"flex-1"}),!g&&e.jsxs(e.Fragment,{children:[e.jsxs("button",{onClick:_,className:"flex items-center gap-1 px-2 py-1 text-xs rounded bg-primary text-primary-foreground hover:bg-primary/90",children:[e.jsx(o.Plus,{className:"h-3 w-3"})," Add Entity"]}),e.jsxs("button",{className:"flex items-center gap-1 px-2 py-1 text-xs rounded bg-secondary text-secondary-foreground hover:bg-secondary/80",children:[e.jsx(o.Link2,{className:"h-3 w-3"})," Add Relationship"]})]})]}),e.jsx("div",{className:"flex-1 overflow-auto bg-muted/10 p-4",children:e.jsxs("div",{className:"relative",style:{width:y.width,minHeight:y.height,backgroundImage:y.showGrid?"radial-gradient(circle, hsl(var(--border)) 1px, transparent 1px)":void 0,backgroundSize:y.showGrid?"20px 20px":void 0},children:[e.jsx("svg",{className:"absolute inset-0 pointer-events-none",width:y.width,height:y.height,children:C.map(x=>{const a=p.find(i=>i.id===x.sourceEntity),h=p.find(i=>i.id===x.targetEntity);return!a||!h?null:e.jsxs("g",{children:[e.jsx("line",{x1:a.position.x+120,y1:a.position.y+50,x2:h.position.x+120,y2:h.position.y+50,stroke:"hsl(var(--primary))",strokeWidth:"2",strokeDasharray:x.type==="many-to-many"?"5,5":void 0}),P&&x.label&&e.jsx("text",{x:(a.position.x+h.position.x)/2+120,y:(a.position.y+h.position.y)/2+50-8,textAnchor:"middle",className:"text-xs fill-muted-foreground",children:x.label})]},x.id)})}),p.map(x=>e.jsxs("div",{className:ae("absolute rounded-lg border-2 bg-background shadow-sm w-60 select-none",E===x.id?"border-primary ring-2 ring-primary/20":"border-border hover:border-primary/50"),style:{left:x.position.x,top:x.position.y},onClick:()=>A(x.id),children:[e.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 rounded-t-lg font-medium text-sm",style:{backgroundColor:x.color??"hsl(var(--primary) / 0.1)"},children:[e.jsx(o.Database,{className:"h-3.5 w-3.5"}),e.jsx("span",{className:"truncate",children:x.label}),!g&&e.jsx("button",{onClick:a=>{a.stopPropagation(),S(x.id)},className:"ml-auto p-0.5 rounded hover:bg-destructive/20",children:e.jsx(o.Trash2,{className:"h-3 w-3 text-destructive"})})]}),e.jsx("div",{className:"px-3 py-1 divide-y",children:x.fields.map(a=>e.jsxs("div",{className:"flex items-center gap-2 py-1 text-xs",children:[e.jsxs("span",{className:ae("font-mono",a.primaryKey&&"font-bold text-primary"),children:[a.primaryKey?"🔑 ":"",a.name]}),e.jsx("span",{className:"text-muted-foreground ml-auto",children:a.type}),a.required&&e.jsx("span",{className:"text-destructive",children:"*"})]},a.name))})]},x.id))]})})]})})}function le(...c){return H.twMerge(W.clsx(c))}function me({processName:c="New Process",nodes:v=[],edges:y=[],lanes:P,canvas:g={width:1400,height:800,showGrid:!0},showToolbar:f=!0,readOnly:k=!1,onNodesChange:m,onEdgesChange:p,className:l}){const[C,D]=d.useState(v),[E,A]=d.useState(y),[_,S]=d.useState(null),x=d.useCallback((i,R)=>{if(k)return;const N={id:`node-${Date.now()}`,type:i,label:R,position:{x:200+C.length*160,y:200}},j=[...C,N];D(j),S(N.id),m?.(j)},[C,k,m]),a=d.useCallback(i=>{if(k)return;const R=C.filter(j=>j.id!==i),N=E.filter(j=>j.source!==i&&j.target!==i);D(R),A(N),_===i&&S(null),m?.(R),p?.(N)},[C,E,_,k,m,p]),h=i=>{switch(i){case"start-event":return"rounded-full bg-green-100 border-green-500 text-green-700";case"end-event":return"rounded-full bg-red-100 border-red-500 text-red-700";case"exclusive-gateway":case"parallel-gateway":case"inclusive-gateway":case"event-based-gateway":return"rotate-45 bg-yellow-100 border-yellow-500 text-yellow-700";case"user-task":return"rounded bg-blue-100 border-blue-500 text-blue-700";case"service-task":case"script-task":return"rounded bg-purple-100 border-purple-500 text-purple-700";default:return"rounded bg-gray-100 border-gray-500 text-gray-700"}};return e.jsxs("div",{className:le("flex flex-col h-full w-full border rounded-lg overflow-hidden bg-background",l),children:[f&&e.jsxs("div",{className:"flex items-center gap-2 p-2 border-b bg-muted/20",children:[e.jsx(o.GitBranch,{className:"h-4 w-4"}),e.jsx("span",{className:"font-medium text-sm",children:c}),e.jsx("div",{className:"flex-1"}),!k&&e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsxs("button",{onClick:()=>x("start-event","Start"),className:"flex items-center gap-1 px-2 py-1 text-xs rounded hover:bg-accent",title:"Add Start Event",children:[e.jsx(o.Play,{className:"h-3 w-3 text-green-600"})," Start"]}),e.jsxs("button",{onClick:()=>x("user-task","User Task"),className:"flex items-center gap-1 px-2 py-1 text-xs rounded hover:bg-accent",title:"Add User Task",children:[e.jsx(o.Square,{className:"h-3 w-3 text-blue-600"})," Task"]}),e.jsxs("button",{onClick:()=>x("exclusive-gateway","Decision"),className:"flex items-center gap-1 px-2 py-1 text-xs rounded hover:bg-accent",title:"Add Gateway",children:[e.jsx(o.Diamond,{className:"h-3 w-3 text-yellow-600"})," Gateway"]}),e.jsxs("button",{onClick:()=>x("end-event","End"),className:"flex items-center gap-1 px-2 py-1 text-xs rounded hover:bg-accent",title:"Add End Event",children:[e.jsx(o.Square,{className:"h-3 w-3 text-red-600"})," End"]})]})]}),e.jsx("div",{className:"flex-1 overflow-auto bg-muted/10 p-4",children:e.jsxs("div",{className:"relative",style:{width:g.width,minHeight:g.height,backgroundImage:g.showGrid?"radial-gradient(circle, hsl(var(--border)) 1px, transparent 1px)":void 0,backgroundSize:g.showGrid?"20px 20px":void 0},children:[e.jsxs("svg",{className:"absolute inset-0 pointer-events-none",width:g.width,height:g.height,children:[e.jsx("defs",{children:e.jsx("marker",{id:"arrowhead",markerWidth:"10",markerHeight:"7",refX:"10",refY:"3.5",orient:"auto",children:e.jsx("polygon",{points:"0 0, 10 3.5, 0 7",fill:"hsl(var(--foreground))"})})}),E.map(i=>{const R=C.find(j=>j.id===i.source),N=C.find(j=>j.id===i.target);return!R||!N?null:e.jsx("line",{x1:R.position.x+60,y1:R.position.y+25,x2:N.position.x,y2:N.position.y+25,stroke:"hsl(var(--foreground) / 0.5)",strokeWidth:"2",markerEnd:"url(#arrowhead)"},i.id)})]}),C.map(i=>e.jsxs("div",{className:"absolute select-none",style:{left:i.position.x,top:i.position.y},onClick:()=>S(i.id),children:[e.jsx("div",{className:le("flex items-center justify-center border-2 min-w-[120px] min-h-[50px] px-3 py-2",h(i.type),_===i.id&&"ring-2 ring-primary shadow-md"),children:e.jsx("span",{className:le("text-xs font-medium",(i.type==="exclusive-gateway"||i.type==="parallel-gateway")&&"-rotate-45"),children:i.label})}),!k&&_===i.id&&e.jsx("button",{onClick:R=>{R.stopPropagation(),a(i.id)},className:"absolute -top-2 -right-2 p-0.5 rounded-full bg-destructive text-destructive-foreground shadow",children:e.jsx(o.Trash2,{className:"h-3 w-3"})})]},i.id))]})})]})}function xe(...c){return H.twMerge(W.clsx(c))}const Ne={A4:{width:595,height:842},A3:{width:842,height:1191},Letter:{width:612,height:792},Legal:{width:612,height:1008},Tabloid:{width:792,height:1224}};function pe({reportName:c="Untitled Report",objectName:v,pageSize:y="A4",orientation:P="portrait",margins:g={top:40,right:40,bottom:40,left:40},sections:f=[],showToolbar:k=!0,showPropertyPanel:m=!0,readOnly:p=!1,onSectionsChange:l,className:C}){const[D,E]=d.useState(f.length>0?f:[{type:"header",height:80,elements:[]},{type:"detail",height:400,elements:[],repeat:!0},{type:"footer",height:60,elements:[]}]),[A,_]=d.useState(null),S=Ne[y],x=P==="landscape"?S.height:S.width,a=P==="landscape"?S.width:S.height,h=d.useCallback((N,j)=>{if(p)return;const b={id:`elem-${Date.now()}`,type:j,position:{x:g.left,y:10,width:200,height:30},properties:{text:j==="text"?"New Text":void 0,field:j==="field"?"field_name":void 0}},L=D.map((I,z)=>z===N?{...I,elements:[...I.elements,b]}:I);E(L),_(b.id),l?.(L)},[D,g.left,p,l]),i=d.useCallback(N=>{if(p)return;const j=D.map(b=>({...b,elements:b.elements.filter(L=>L.id!==N)}));E(j),A===N&&_(null),l?.(j)},[D,A,p,l]),R=N=>{switch(N){case"header":return"Report Header";case"page-header":return"Page Header";case"group-header":return"Group Header";case"detail":return"Detail";case"group-footer":return"Group Footer";case"page-footer":return"Page Footer";case"footer":return"Report Footer";default:return N}};return e.jsxs("div",{className:xe("flex h-full w-full border rounded-lg overflow-hidden bg-background",C),children:[e.jsxs("div",{className:"flex-1 flex flex-col",children:[k&&e.jsxs("div",{className:"flex items-center gap-2 p-2 border-b bg-muted/20",children:[e.jsx(o.FileText,{className:"h-4 w-4"}),e.jsx("span",{className:"font-medium text-sm",children:c}),v&&e.jsxs("span",{className:"text-xs text-muted-foreground",children:["(",v,")"]}),e.jsx("div",{className:"flex-1"}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:[y," ",P]})]}),e.jsx("div",{className:"flex-1 overflow-auto bg-muted/10 p-4 flex justify-center",children:e.jsx("div",{className:"bg-white shadow-lg border",style:{width:x,minHeight:a},children:D.map((N,j)=>e.jsxs("div",{className:"relative border-b border-dashed border-gray-300",style:{minHeight:N.height},children:[e.jsxs("div",{className:"absolute left-0 top-0 px-2 py-0.5 bg-muted text-xs text-muted-foreground border-r border-b rounded-br",children:[R(N.type),N.repeat&&" ↻"]}),!p&&e.jsxs("div",{className:"absolute right-1 top-0 flex items-center gap-0.5",children:[e.jsx("button",{onClick:()=>h(j,"text"),className:"p-0.5 rounded hover:bg-accent",title:"Add Text",children:e.jsx(o.Type,{className:"h-3 w-3"})}),e.jsx("button",{onClick:()=>h(j,"field"),className:"p-0.5 rounded hover:bg-accent",title:"Add Field",children:e.jsx(o.Plus,{className:"h-3 w-3"})}),e.jsx("button",{onClick:()=>h(j,"image"),className:"p-0.5 rounded hover:bg-accent",title:"Add Image",children:e.jsx(o.ImageIcon,{className:"h-3 w-3"})}),e.jsx("button",{onClick:()=>h(j,"chart"),className:"p-0.5 rounded hover:bg-accent",title:"Add Chart",children:e.jsx(o.BarChart3,{className:"h-3 w-3"})}),e.jsx("button",{onClick:()=>h(j,"table"),className:"p-0.5 rounded hover:bg-accent",title:"Add Table",children:e.jsx(o.Table2,{className:"h-3 w-3"})})]}),e.jsx("div",{className:"relative",style:{minHeight:N.height,paddingTop:24},children:N.elements.map(b=>e.jsxs("div",{className:xe("absolute border rounded px-2 py-1 text-xs cursor-pointer",A===b.id?"border-primary ring-1 ring-primary/30 bg-primary/5":"border-dashed border-gray-400 hover:border-primary/50"),style:{left:b.position.x,top:(typeof b.position.y=="number"?b.position.y:0)+24,width:b.position.width,height:b.position.height},onClick:()=>_(b.id),children:[e.jsxs("span",{className:"text-muted-foreground",children:[b.type==="text"&&(b.properties.text??"Text"),b.type==="field"&&`{${b.properties.field??"field"}}`,b.type==="image"&&"🖼 Image",b.type==="chart"&&"📊 Chart",b.type==="table"&&"📋 Table"]}),!p&&A===b.id&&e.jsx("button",{onClick:L=>{L.stopPropagation(),i(b.id)},className:"absolute -top-2 -right-2 p-0.5 rounded-full bg-destructive text-destructive-foreground shadow",children:e.jsx(o.Trash2,{className:"h-2.5 w-2.5"})})]},b.id))})]},`${N.type}-${j}`))})})]}),m&&e.jsxs("div",{className:"w-56 border-l bg-muted/30 flex flex-col",children:[e.jsx("div",{className:"p-3 border-b font-medium text-sm",children:"Properties"}),e.jsx("div",{className:"flex-1 overflow-y-auto p-3",children:A?e.jsx("div",{className:"space-y-2 text-xs",children:e.jsxs("div",{className:"text-muted-foreground",children:["Element ID: ",A]})}):e.jsx("div",{className:"text-xs text-muted-foreground text-center py-4",children:"Select an element to view properties"})})]})]})}const he=d.createContext(null);he.displayName="CollaborationContext";function ye({config:c,user:v,onOperation:y,children:P}){const g=d.useMemo(()=>!c.enabled||!v?[]:[{userId:v.id,userName:v.name,avatar:v.avatar,color:ke(v.id),status:"active",lastActivity:new Date().toISOString()}],[c.enabled,v]),f=c.enabled&&!!v,k=d.useCallback(p=>{if(!f||!v)return;const l={...p,id:`op-${Date.now()}`,userId:v.id,timestamp:new Date().toISOString(),version:Date.now()};y?.(l)},[f,v,y]),m=d.useMemo(()=>({users:g,isConnected:f,sendOperation:k,currentUserId:v?.id}),[g,f,k,v?.id]);return e.jsx(he.Provider,{value:m,children:P})}function ke(c){const v=["#3b82f6","#ef4444","#22c55e","#f59e0b","#8b5cf6","#ec4899","#06b6d4","#f97316"];let y=0;for(let P=0;P<c.length;P++)y=(y<<5)-y+c.charCodeAt(P)|0;return v[Math.abs(y)%v.length]}function $(...c){return H.twMerge(W.clsx(c))}const be=[{type:"grid",label:"Grid",icon:o.LayoutGrid},{type:"kanban",label:"Kanban",icon:o.Kanban},{type:"gallery",label:"Gallery",icon:o.Image},{type:"calendar",label:"Calendar",icon:o.Calendar},{type:"timeline",label:"Timeline",icon:o.Clock},{type:"gantt",label:"Gantt",icon:o.GanttChart},{type:"map",label:"Map",icon:o.Map}],Ce=[{value:"equals",label:"="},{value:"contains",label:"Contains"},{value:"startsWith",label:"Starts with"},{value:"gt",label:">"},{value:"lt",label:"<"},{value:"gte",label:">="},{value:"lte",label:"<="},{value:"ne",label:"!="}];function ge({objectName:c,viewId:v,viewLabel:y="",viewType:P="grid",columns:g=[],filters:f=[],sort:k=[],availableFields:m=[],options:p={},readOnly:l=!1,onSave:C,onCancel:D,className:E}){const[A,_]=d.useState(y),[S,x]=d.useState(P),[a,h]=d.useState(g),[i,R]=d.useState(f),[N,j]=d.useState(k),[b,L]=d.useState(p),[I,z]=d.useState(null),[U,X]=d.useState("columns"),Z=d.useMemo(()=>{const t=new Set(a.map(n=>n.field));return m.filter(n=>!t.has(n.name))},[m,a]),ne=d.useCallback(t=>{if(l)return;const n=m.find(w=>w.name===t),r={field:t,label:n?.label??t,visible:!0,order:a.length};h(w=>[...w,r])},[m,a.length,l]),K=d.useCallback(t=>{l||(h(n=>n.filter((r,w)=>w!==t)),I===t&&z(null))},[l,I]),ee=d.useCallback(t=>{l||h(n=>n.map((r,w)=>w===t?{...r,visible:!r.visible}:r))},[l]),Q=d.useCallback((t,n)=>{if(l)return;const r=n==="up"?t-1:t+1;r<0||r>=a.length||(h(w=>{const V=[...w],O=V[t];return V[t]=V[r],V[r]=O,V}),z(r))},[l,a.length]),te=d.useCallback(()=>{l||m.length===0||R(t=>[...t,{field:m[0].name,operator:"equals",value:""}])},[l,m]),se=d.useCallback(t=>{l||R(n=>n.filter((r,w)=>w!==t))},[l]),Y=d.useCallback((t,n)=>{l||R(r=>r.map((w,V)=>V===t?{...w,...n}:w))},[l]),s=d.useCallback(()=>{l||m.length===0||j(t=>[...t,{field:m[0].name,direction:"asc"}])},[l,m]),u=d.useCallback(t=>{l||j(n=>n.filter((r,w)=>w!==t))},[l]),T=d.useCallback((t,n)=>{l||j(r=>r.map((w,V)=>V===t?{...w,...n}:w))},[l]),F=d.useCallback(()=>{C?.({viewId:v,viewLabel:A||`${c} View`,viewType:S,columns:a,filters:i,sort:N,options:b})},[C,v,A,c,S,a,i,N,b]);return e.jsxs("div",{className:$("flex flex-col h-full w-full border rounded-lg overflow-hidden bg-background",E),children:[e.jsxs("div",{className:"flex items-center gap-2 p-2 border-b bg-muted/20 shrink-0",children:[e.jsx(o.Settings2,{className:"h-4 w-4 text-muted-foreground"}),e.jsx("span",{className:"font-medium text-sm",children:"View Designer"}),e.jsxs("span",{className:"text-xs text-muted-foreground",children:["— ",c]}),e.jsx("div",{className:"flex-1"}),!l&&e.jsxs(e.Fragment,{children:[D&&e.jsxs("button",{onClick:D,className:"flex items-center gap-1 px-3 py-1.5 text-xs rounded border border-border hover:bg-accent","data-testid":"view-designer-cancel",children:[e.jsx(o.X,{className:"h-3 w-3"})," Cancel"]}),e.jsxs("button",{onClick:F,className:"flex items-center gap-1 px-3 py-1.5 text-xs rounded bg-primary text-primary-foreground hover:bg-primary/90","data-testid":"view-designer-save",children:[e.jsx(o.Save,{className:"h-3 w-3"})," Save View"]})]})]}),e.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[!l&&e.jsxs("div",{className:"w-56 border-r bg-muted/30 flex flex-col shrink-0",children:[e.jsx("div",{className:"p-3 border-b font-medium text-sm",children:"Available Fields"}),e.jsx("div",{className:"flex-1 overflow-y-auto p-2",children:Z.length===0?e.jsx("div",{className:"text-xs text-muted-foreground text-center py-4",children:"All fields added"}):Z.map(t=>e.jsxs("button",{onClick:()=>ne(t.name),className:"w-full flex items-center gap-2 px-2 py-1.5 text-sm rounded hover:bg-accent text-left","data-testid":`field-${t.name}`,children:[e.jsx(o.Plus,{className:"h-3 w-3 text-muted-foreground"}),e.jsx("span",{className:"truncate",children:t.label||t.name}),e.jsx("span",{className:"ml-auto text-xs text-muted-foreground",children:t.type})]},t.name))})]}),e.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[e.jsxs("div",{className:"p-3 border-b space-y-3 shrink-0 bg-muted/10",children:[e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("label",{className:"text-xs font-semibold text-foreground",children:"View Type"}),e.jsx("div",{className:"flex gap-2 flex-wrap",children:be.map(({type:t,label:n,icon:r})=>e.jsxs("button",{onClick:()=>!l&&x(t),className:$("flex items-center gap-2 px-3 py-2 text-sm rounded-md border-2 transition-all font-medium",S===t?"border-primary bg-primary text-primary-foreground shadow-sm":"border-border bg-background hover:border-primary/50 hover:bg-accent"),"data-testid":`view-type-${t}`,children:[e.jsx(r,{className:"h-4 w-4"}),n]},t))})]}),e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("label",{className:"text-xs font-semibold text-foreground",children:"View Name"}),e.jsx("input",{type:"text",value:A,onChange:t=>!l&&_(t.target.value),placeholder:"Enter view name...",className:"px-3 py-2 text-sm border-2 rounded-md bg-background focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary",readOnly:l,"data-testid":"view-label-input"})]})]}),e.jsx("div",{className:"flex-1 overflow-auto p-3",children:a.length===0?e.jsx("div",{className:"flex items-center justify-center h-full text-sm text-muted-foreground",children:e.jsxs("div",{className:"text-center",children:[e.jsx(o.Columns3,{className:"h-8 w-8 mx-auto mb-2 opacity-50"}),e.jsx("p",{children:"No columns added yet"}),e.jsx("p",{className:"text-xs mt-1",children:"Add fields from the left panel to design your view"})]})}):e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"text-xs font-medium text-muted-foreground mb-2",children:["Columns (",a.length,")"]}),a.map((t,n)=>e.jsxs("div",{className:$("flex items-center gap-2 px-3 py-2 rounded border transition-colors cursor-pointer",I===n?"border-primary bg-primary/5 ring-1 ring-primary/20":"border-border hover:border-primary/50",!t.visible&&"opacity-50"),onClick:()=>z(n),"data-testid":`column-${t.field}`,children:[e.jsx(o.GripVertical,{className:"h-3.5 w-3.5 text-muted-foreground shrink-0"}),e.jsx("span",{className:"text-sm font-medium truncate flex-1",children:t.label||t.field}),e.jsx("span",{className:"text-xs text-muted-foreground",children:t.field}),!l&&e.jsxs("div",{className:"flex items-center gap-0.5 shrink-0",children:[e.jsx("button",{onClick:r=>{r.stopPropagation(),Q(n,"up")},disabled:n===0,className:"p-0.5 rounded hover:bg-accent disabled:opacity-30",title:"Move up",children:e.jsx(o.ArrowUp,{className:"h-3 w-3"})}),e.jsx("button",{onClick:r=>{r.stopPropagation(),Q(n,"down")},disabled:n===a.length-1,className:"p-0.5 rounded hover:bg-accent disabled:opacity-30",title:"Move down",children:e.jsx(o.ArrowDown,{className:"h-3 w-3"})}),e.jsx("button",{onClick:r=>{r.stopPropagation(),ee(n)},className:"p-0.5 rounded hover:bg-accent",title:t.visible!==!1?"Hide column":"Show column",children:t.visible!==!1?e.jsx(o.Eye,{className:"h-3 w-3"}):e.jsx(o.EyeOff,{className:"h-3 w-3"})}),e.jsx("button",{onClick:r=>{r.stopPropagation(),K(n)},className:"p-0.5 rounded hover:bg-destructive/10",title:"Remove column",children:e.jsx(o.Trash2,{className:"h-3 w-3 text-destructive"})})]})]},`${t.field}-${n}`))]})})]}),e.jsxs("div",{className:"w-64 border-l bg-muted/30 flex flex-col shrink-0",children:[e.jsx("div",{className:"flex border-b shrink-0",children:["columns","filters","sort","options"].map(t=>e.jsx("button",{onClick:()=>X(t),className:$("flex-1 px-2 py-2 text-xs font-medium capitalize transition-colors",U===t?"border-b-2 border-primary text-primary":"text-muted-foreground hover:text-foreground"),children:t},t))}),e.jsxs("div",{className:"flex-1 overflow-y-auto p-3",children:[U==="columns"&&e.jsx("div",{children:I!==null&&a[I]?e.jsxs("div",{className:"space-y-3",children:[e.jsx("div",{className:"text-xs font-medium",children:"Column Properties"}),e.jsxs("div",{children:[e.jsx("label",{className:"text-xs text-muted-foreground",children:"Label"}),e.jsx("input",{type:"text",value:a[I].label??"",onChange:t=>{if(l)return;const n=I;h(r=>r.map((w,V)=>V===n?{...w,label:t.target.value}:w))},className:"w-full px-2 py-1 text-sm border rounded bg-background mt-1",readOnly:l,"data-testid":"column-label-input"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-xs text-muted-foreground",children:"Width"}),e.jsx("input",{type:"text",value:a[I].width??"",onChange:t=>{if(l)return;const n=I,r=t.target.value;h(w=>w.map((V,O)=>O===n?{...V,width:/^\d+$/.test(r)?Number(r):r}:V))},placeholder:"auto",className:"w-full px-2 py-1 text-sm border rounded bg-background mt-1",readOnly:l,"data-testid":"column-width-input"})]}),e.jsxs("div",{className:"text-xs text-muted-foreground",children:["Field: ",e.jsx("span",{className:"font-mono",children:a[I].field})]})]}):e.jsx("div",{className:"text-xs text-muted-foreground text-center py-4",children:"Select a column to edit its properties"})}),U==="filters"&&e.jsxs("div",{className:"space-y-2",children:[i.map((t,n)=>e.jsxs("div",{className:"space-y-1 p-2 border rounded bg-background","data-testid":`filter-${n}`,children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("select",{value:t.field,onChange:r=>Y(n,{field:r.target.value}),className:"flex-1 px-1 py-0.5 text-xs border rounded bg-background",disabled:l,children:m.map(r=>e.jsx("option",{value:r.name,children:r.label||r.name},r.name))}),!l&&e.jsx("button",{onClick:()=>se(n),className:"p-0.5 rounded hover:bg-destructive/10",children:e.jsx(o.Trash2,{className:"h-3 w-3 text-destructive"})})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("select",{value:t.operator,onChange:r=>Y(n,{operator:r.target.value}),className:"w-24 px-1 py-0.5 text-xs border rounded bg-background",disabled:l,children:Ce.map(r=>e.jsx("option",{value:r.value,children:r.label},r.value))}),e.jsx("input",{type:"text",value:t.value??"",onChange:r=>Y(n,{value:r.target.value}),placeholder:"Value",className:"flex-1 px-1 py-0.5 text-xs border rounded bg-background",readOnly:l})]})]},n)),!l&&e.jsxs("button",{onClick:te,className:"w-full flex items-center justify-center gap-1 px-2 py-1.5 text-xs rounded border border-dashed border-border hover:bg-accent","data-testid":"add-filter",children:[e.jsx(o.Plus,{className:"h-3 w-3"})," Add Filter"]})]}),U==="sort"&&e.jsxs("div",{className:"space-y-2",children:[N.map((t,n)=>e.jsxs("div",{className:"flex items-center gap-1 p-2 border rounded bg-background","data-testid":`sort-${n}`,children:[e.jsx("select",{value:t.field,onChange:r=>T(n,{field:r.target.value}),className:"flex-1 px-1 py-0.5 text-xs border rounded bg-background",disabled:l,children:m.map(r=>e.jsx("option",{value:r.name,children:r.label||r.name},r.name))}),e.jsxs("select",{value:t.direction,onChange:r=>T(n,{direction:r.target.value}),className:"w-16 px-1 py-0.5 text-xs border rounded bg-background",disabled:l,children:[e.jsx("option",{value:"asc",children:"Asc"}),e.jsx("option",{value:"desc",children:"Desc"})]}),!l&&e.jsx("button",{onClick:()=>u(n),className:"p-0.5 rounded hover:bg-destructive/10",children:e.jsx(o.Trash2,{className:"h-3 w-3 text-destructive"})})]},n)),!l&&e.jsxs("button",{onClick:s,className:"w-full flex items-center justify-center gap-1 px-2 py-1.5 text-xs rounded border border-dashed border-border hover:bg-accent","data-testid":"add-sort",children:[e.jsx(o.Plus,{className:"h-3 w-3"})," Add Sort"]})]}),U==="options"&&e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"text-xs font-medium",children:[be.find(t=>t.type===S)?.label??S," Options"]}),S==="kanban"&&e.jsxs("div",{children:[e.jsx("label",{className:"text-xs text-muted-foreground",children:"Group By Field"}),e.jsxs("select",{value:b.groupBy??"",onChange:t=>!l&&L(n=>({...n,groupBy:t.target.value})),className:"w-full px-2 py-1 text-sm border rounded bg-background mt-1",disabled:l,"data-testid":"kanban-group-by",children:[e.jsx("option",{value:"",children:"Select field..."}),m.map(t=>e.jsx("option",{value:t.name,children:t.label||t.name},t.name))]})]}),S==="calendar"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-xs text-muted-foreground",children:"Start Date Field"}),e.jsxs("select",{value:b.startDateField??"",onChange:t=>!l&&L(n=>({...n,startDateField:t.target.value})),className:"w-full px-2 py-1 text-sm border rounded bg-background mt-1",disabled:l,"data-testid":"calendar-start-date",children:[e.jsx("option",{value:"",children:"Select field..."}),m.map(t=>e.jsx("option",{value:t.name,children:t.label||t.name},t.name))]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-xs text-muted-foreground",children:"Title Field"}),e.jsxs("select",{value:b.titleField??"",onChange:t=>!l&&L(n=>({...n,titleField:t.target.value})),className:"w-full px-2 py-1 text-sm border rounded bg-background mt-1",disabled:l,"data-testid":"calendar-title-field",children:[e.jsx("option",{value:"",children:"Select field..."}),m.map(t=>e.jsx("option",{value:t.name,children:t.label||t.name},t.name))]})]})]}),S==="map"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-xs text-muted-foreground",children:"Latitude Field"}),e.jsxs("select",{value:b.latitudeField??"",onChange:t=>!l&&L(n=>({...n,latitudeField:t.target.value})),className:"w-full px-2 py-1 text-sm border rounded bg-background mt-1",disabled:l,children:[e.jsx("option",{value:"",children:"Select field..."}),m.map(t=>e.jsx("option",{value:t.name,children:t.label||t.name},t.name))]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-xs text-muted-foreground",children:"Longitude Field"}),e.jsxs("select",{value:b.longitudeField??"",onChange:t=>!l&&L(n=>({...n,longitudeField:t.target.value})),className:"w-full px-2 py-1 text-sm border rounded bg-background mt-1",disabled:l,children:[e.jsx("option",{value:"",children:"Select field..."}),m.map(t=>e.jsx("option",{value:t.name,children:t.label||t.name},t.name))]})]})]}),S==="gallery"&&e.jsxs("div",{children:[e.jsx("label",{className:"text-xs text-muted-foreground",children:"Image Field"}),e.jsxs("select",{value:b.imageField??"",onChange:t=>!l&&L(n=>({...n,imageField:t.target.value})),className:"w-full px-2 py-1 text-sm border rounded bg-background mt-1",disabled:l,children:[e.jsx("option",{value:"",children:"Select field..."}),m.map(t=>e.jsx("option",{value:t.name,children:t.label||t.name},t.name))]})]}),(S==="timeline"||S==="gantt")&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-xs text-muted-foreground",children:"Date Field"}),e.jsxs("select",{value:b.dateField??b.startDateField??"",onChange:t=>!l&&L(n=>({...n,dateField:t.target.value,startDateField:t.target.value})),className:"w-full px-2 py-1 text-sm border rounded bg-background mt-1",disabled:l,children:[e.jsx("option",{value:"",children:"Select field..."}),m.map(t=>e.jsx("option",{value:t.name,children:t.label||t.name},t.name))]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-xs text-muted-foreground",children:"Title Field"}),e.jsxs("select",{value:b.titleField??"",onChange:t=>!l&&L(n=>({...n,titleField:t.target.value})),className:"w-full px-2 py-1 text-sm border rounded bg-background mt-1",disabled:l,children:[e.jsx("option",{value:"",children:"Select field..."}),m.map(t=>e.jsx("option",{value:t.name,children:t.label||t.name},t.name))]})]})]}),S==="grid"&&e.jsx("div",{className:"text-xs text-muted-foreground text-center py-2",children:"Grid view uses the columns configured above."})]})]})]})]})]})}G.ComponentRegistry.register("page-designer",ce,{label:"Page Designer",category:"Designer",inputs:[{name:"canvas",type:"code",label:"Canvas Configuration"},{name:"components",type:"code",label:"Components"},{name:"showComponentTree",type:"boolean",label:"Show Component Tree",defaultValue:!0},{name:"undoRedo",type:"boolean",label:"Undo/Redo",defaultValue:!0},{name:"readOnly",type:"boolean",label:"Read Only",defaultValue:!1}]}),G.ComponentRegistry.register("data-model-designer",ue,{label:"Data Model Designer",category:"Designer",inputs:[{name:"entities",type:"code",label:"Entities"},{name:"relationships",type:"code",label:"Relationships"},{name:"autoLayout",type:"boolean",label:"Auto Layout",defaultValue:!1},{name:"readOnly",type:"boolean",label:"Read Only",defaultValue:!1}]}),G.ComponentRegistry.register("process-designer",me,{label:"Process Designer (BPMN)",category:"Designer",inputs:[{name:"processName",type:"string",label:"Process Name"},{name:"nodes",type:"code",label:"Nodes"},{name:"edges",type:"code",label:"Edges"},{name:"showMinimap",type:"boolean",label:"Show Minimap",defaultValue:!1},{name:"showToolbar",type:"boolean",label:"Show Toolbar",defaultValue:!0},{name:"readOnly",type:"boolean",label:"Read Only",defaultValue:!1}]}),G.ComponentRegistry.register("report-designer",pe,{label:"Report Designer",category:"Designer",inputs:[{name:"reportName",type:"string",label:"Report Name"},{name:"objectName",type:"string",label:"Data Source Object"},{name:"sections",type:"code",label:"Sections"},{name:"showToolbar",type:"boolean",label:"Show Toolbar",defaultValue:!0},{name:"showPropertyPanel",type:"boolean",label:"Show Property Panel",defaultValue:!0},{name:"readOnly",type:"boolean",label:"Read Only",defaultValue:!1}]}),G.ComponentRegistry.register("view-designer",ge,{label:"View Designer",category:"Designer",inputs:[{name:"objectName",type:"string",label:"Object Name"},{name:"viewId",type:"string",label:"View ID"},{name:"viewLabel",type:"string",label:"View Label"},{name:"viewType",type:"string",label:"View Type",defaultValue:"grid"},{name:"readOnly",type:"boolean",label:"Read Only",defaultValue:!1}]}),M.CollaborationProvider=ye,M.DataModelDesigner=ue,M.PageDesigner=ce,M.ProcessDesigner=me,M.ReportDesigner=pe,M.ViewDesigner=ge,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -24,4 +24,3 @@ export interface DataModelDesignerProps {
|
|
|
24
24
|
* Allows visual design of entities, fields, and relationships.
|
|
25
25
|
*/
|
|
26
26
|
export declare function DataModelDesigner({ entities: initialEntities, relationships: initialRelationships, canvas, showRelationshipLabels, readOnly, onEntitiesChange, onRelationshipsChange, className, }: DataModelDesignerProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
//# sourceMappingURL=DataModelDesigner.d.ts.map
|
|
@@ -24,4 +24,3 @@ export interface PageDesignerProps {
|
|
|
24
24
|
* Allows visual composition of UI components on a canvas.
|
|
25
25
|
*/
|
|
26
26
|
export declare function PageDesigner({ canvas, components: initialComponents, palette, showComponentTree, undoRedo, readOnly, onChange, className, }: PageDesignerProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
//# sourceMappingURL=PageDesigner.d.ts.map
|
|
@@ -30,4 +30,3 @@ export interface ProcessDesignerProps {
|
|
|
30
30
|
* Supports nodes, edges, lanes, and conditional flows.
|
|
31
31
|
*/
|
|
32
32
|
export declare function ProcessDesigner({ processName, nodes: initialNodes, edges: initialEdges, lanes: _lanes, canvas, showToolbar, readOnly, onNodesChange, onEdgesChange, className, }: ProcessDesignerProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
//# sourceMappingURL=ProcessDesigner.d.ts.map
|
|
@@ -35,4 +35,3 @@ export interface ReportDesignerProps {
|
|
|
35
35
|
* Supports sections (header, detail, footer) with drag-and-drop elements.
|
|
36
36
|
*/
|
|
37
37
|
export declare function ReportDesigner({ reportName, objectName, pageSize, orientation, margins, sections: initialSections, showToolbar, showPropertyPanel, readOnly, onSectionsChange, className, }: ReportDesignerProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
-
//# sourceMappingURL=ReportDesigner.d.ts.map
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { ViewDesignerColumn } from '../../types/src';
|
|
2
|
+
type ViewType = 'grid' | 'kanban' | 'gallery' | 'calendar' | 'timeline' | 'gantt' | 'map';
|
|
3
|
+
export interface ViewDesignerProps {
|
|
4
|
+
/** Object name this view is for */
|
|
5
|
+
objectName: string;
|
|
6
|
+
/** View identifier (for editing existing views) */
|
|
7
|
+
viewId?: string;
|
|
8
|
+
/** Initial view label */
|
|
9
|
+
viewLabel?: string;
|
|
10
|
+
/** Initial view type */
|
|
11
|
+
viewType?: ViewType;
|
|
12
|
+
/** Initial columns configuration */
|
|
13
|
+
columns?: ViewDesignerColumn[];
|
|
14
|
+
/** Initial filter conditions */
|
|
15
|
+
filters?: Array<{
|
|
16
|
+
field: string;
|
|
17
|
+
operator: string;
|
|
18
|
+
value: any;
|
|
19
|
+
}>;
|
|
20
|
+
/** Initial sort configuration */
|
|
21
|
+
sort?: Array<{
|
|
22
|
+
field: string;
|
|
23
|
+
direction: 'asc' | 'desc';
|
|
24
|
+
}>;
|
|
25
|
+
/** Available fields from the object schema */
|
|
26
|
+
availableFields?: Array<{
|
|
27
|
+
name: string;
|
|
28
|
+
label: string;
|
|
29
|
+
type: string;
|
|
30
|
+
}>;
|
|
31
|
+
/** Type-specific options (kanban groupField, calendar startDateField, etc.) */
|
|
32
|
+
options?: Record<string, any>;
|
|
33
|
+
/** Read-only mode */
|
|
34
|
+
readOnly?: boolean;
|
|
35
|
+
/** Callback when save is clicked */
|
|
36
|
+
onSave?: (config: ViewDesignerConfig) => void;
|
|
37
|
+
/** Callback when cancel is clicked */
|
|
38
|
+
onCancel?: () => void;
|
|
39
|
+
/** Custom CSS class */
|
|
40
|
+
className?: string;
|
|
41
|
+
}
|
|
42
|
+
/** The output configuration from the view designer */
|
|
43
|
+
export interface ViewDesignerConfig {
|
|
44
|
+
viewId?: string;
|
|
45
|
+
viewLabel: string;
|
|
46
|
+
viewType: ViewType;
|
|
47
|
+
columns: ViewDesignerColumn[];
|
|
48
|
+
filters: Array<{
|
|
49
|
+
field: string;
|
|
50
|
+
operator: string;
|
|
51
|
+
value: any;
|
|
52
|
+
}>;
|
|
53
|
+
sort: Array<{
|
|
54
|
+
field: string;
|
|
55
|
+
direction: 'asc' | 'desc';
|
|
56
|
+
}>;
|
|
57
|
+
options: Record<string, any>;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Visual designer for creating and editing list views.
|
|
61
|
+
* Provides a 3-panel layout:
|
|
62
|
+
* - Left: Field palette (available fields to add)
|
|
63
|
+
* - Center: View layout preview (columns, order)
|
|
64
|
+
* - Right: Properties panel (view settings, filters, sort)
|
|
65
|
+
*/
|
|
66
|
+
export declare function ViewDesigner({ objectName, viewId, viewLabel: initialViewLabel, viewType: initialViewType, columns: initialColumns, filters: initialFilters, sort: initialSort, availableFields, options: initialOptions, readOnly, onSave, onCancel, className, }: ViewDesignerProps): import("react/jsx-runtime").JSX.Element;
|
|
67
|
+
export {};
|
|
@@ -3,5 +3,6 @@ import { DataModelDesigner } from './DataModelDesigner';
|
|
|
3
3
|
import { ProcessDesigner } from './ProcessDesigner';
|
|
4
4
|
import { ReportDesigner } from './ReportDesigner';
|
|
5
5
|
import { CollaborationProvider } from './CollaborationProvider';
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
import { ViewDesigner } from './ViewDesigner';
|
|
7
|
+
export { PageDesigner, DataModelDesigner, ProcessDesigner, ReportDesigner, CollaborationProvider, ViewDesigner, };
|
|
8
|
+
export type { ViewDesignerProps, ViewDesignerConfig } from './ViewDesigner';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@object-ui/plugin-designer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Visual designer plugin for Object UI with page, data model, process, and report designers plus collaborative editing.",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"react": "^18.0.0 || ^19.0.0",
|
|
22
22
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
23
|
-
"@object-ui/core": "0.
|
|
24
|
-
"@object-ui/types": "0.
|
|
25
|
-
"@object-ui/components": "0.
|
|
26
|
-
"@object-ui/react": "0.
|
|
23
|
+
"@object-ui/core": "2.0.0",
|
|
24
|
+
"@object-ui/types": "2.0.0",
|
|
25
|
+
"@object-ui/components": "2.0.0",
|
|
26
|
+
"@object-ui/react": "2.0.0"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"clsx": "^2.1.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CollaborationProvider.d.ts","sourceRoot":"","sources":["../../src/CollaborationProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAA0D,MAAM,OAAO,CAAC;AAC/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAE3G,MAAM,WAAW,yBAAyB;IACxC,kCAAkC;IAClC,KAAK,EAAE,qBAAqB,EAAE,CAAC;IAC/B,yCAAyC;IACzC,WAAW,EAAE,OAAO,CAAC;IACrB,yCAAyC;IACzC,aAAa,EAAE,CAAC,SAAS,EAAE,IAAI,CAAC,sBAAsB,EAAE,IAAI,GAAG,WAAW,GAAG,SAAS,CAAC,KAAK,IAAI,CAAC;IACjG,sBAAsB;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAKD,MAAM,WAAW,0BAA0B;IACzC,kCAAkC;IAClC,MAAM,EAAE,mBAAmB,CAAC;IAC5B,wBAAwB;IACxB,IAAI,CAAC,EAAE;QACL,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,+DAA+D;IAC/D,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,sBAAsB,KAAK,IAAI,CAAC;IAC1D,eAAe;IACf,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,IAAI,EACJ,WAAW,EACX,QAAQ,GACT,EAAE,0BAA0B,2CA4C5B;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,yBAAyB,GAAG,IAAI,CAEnE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DataModelDesigner.d.ts","sourceRoot":"","sources":["../../src/DataModelDesigner.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AASrG,MAAM,WAAW,sBAAsB;IACrC,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;IAC7B,qCAAqC;IACrC,aAAa,CAAC,EAAE,qBAAqB,EAAE,CAAC;IACxC,2BAA2B;IAC3B,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,+BAA+B;IAC/B,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,0BAA0B;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oCAAoC;IACpC,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,eAAe,EAAE,KAAK,IAAI,CAAC;IACzD,yCAAyC;IACzC,qBAAqB,CAAC,EAAE,CAAC,aAAa,EAAE,qBAAqB,EAAE,KAAK,IAAI,CAAC;IACzE,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EAAE,eAAoB,EAC9B,aAAa,EAAE,oBAAyB,EACxC,MAAqD,EACrD,sBAA6B,EAC7B,QAAgB,EAChB,gBAAgB,EAChB,qBAAqB,EACrB,SAAS,GACV,EAAE,sBAAsB,2CA4KxB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PageDesigner.d.ts","sourceRoot":"","sources":["../../src/PageDesigner.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EACV,iBAAiB,EACjB,oBAAoB,EACpB,uBAAuB,EACxB,MAAM,kBAAkB,CAAC;AAS1B,MAAM,WAAW,iBAAiB;IAChC,2BAA2B;IAC3B,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,yBAAyB;IACzB,UAAU,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACjC,mCAAmC;IACnC,OAAO,CAAC,EAAE,uBAAuB,EAAE,CAAC;IACpC,gCAAgC;IAChC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,uBAAuB;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sBAAsB;IACtB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,CAAC,UAAU,EAAE,iBAAiB,EAAE,KAAK,IAAI,CAAC;IACrD,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAC3B,MAAoF,EACpF,UAAU,EAAE,iBAAsB,EAClC,OAAyB,EACzB,iBAAwB,EACxB,QAAe,EACf,QAAgB,EAChB,QAAQ,EACR,SAAS,GACV,EAAE,iBAAiB,2CAiMnB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProcessDesigner.d.ts","sourceRoot":"","sources":["../../src/ProcessDesigner.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAS3F,MAAM,WAAW,oBAAoB;IACnC,mBAAmB;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sBAAsB;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iBAAiB;IACjB,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;IACnB,iBAAiB;IACjB,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;IACnB,iBAAiB;IACjB,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;IACnB,2BAA2B;IAC3B,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,mBAAmB;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,mBAAmB;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iCAAiC;IACjC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;IAC5C,iCAAiC;IACjC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;IAC5C,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC9B,WAA2B,EAC3B,KAAK,EAAE,YAAiB,EACxB,KAAK,EAAE,YAAiB,EACxB,KAAK,EAAE,MAAM,EACb,MAAqD,EACrD,WAAkB,EAClB,QAAgB,EAChB,aAAa,EACb,aAAa,EACb,SAAS,GACV,EAAE,oBAAoB,2CAiMtB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReportDesigner.d.ts","sourceRoot":"","sources":["../../src/ReportDesigner.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,qBAAqB,EAAyB,MAAM,kBAAkB,CAAC;AASrF,MAAM,WAAW,mBAAmB;IAClC,kBAAkB;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yBAAyB;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB;IAChB,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;IACxD,uBAAuB;IACvB,WAAW,CAAC,EAAE,UAAU,GAAG,WAAW,CAAC;IACvC,mBAAmB;IACnB,OAAO,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACvE,sBAAsB;IACtB,QAAQ,CAAC,EAAE,qBAAqB,EAAE,CAAC;IACnC,mBAAmB;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,0BAA0B;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,mBAAmB;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oCAAoC;IACpC,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,qBAAqB,EAAE,KAAK,IAAI,CAAC;IAC/D,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAUD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,EAC7B,UAA8B,EAC9B,UAAU,EACV,QAAe,EACf,WAAwB,EACxB,OAAsD,EACtD,QAAQ,EAAE,eAAoB,EAC9B,WAAkB,EAClB,iBAAwB,EACxB,QAAgB,EAChB,gBAAgB,EAChB,SAAS,GACV,EAAE,mBAAmB,2CAqNrB"}
|
package/dist/src/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,qBAAqB,GACtB,CAAC"}
|