@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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@object-ui/console",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "description": "ObjectStack Console - The standard runtime UI for ObjectStack applications",
5
5
  "type": "module",
6
6
  "main": "./plugin.js",
@@ -48,36 +48,36 @@
48
48
  "typescript": "^5.9.3",
49
49
  "vite": "^6.4.1",
50
50
  "vitest": "^4.0.18",
51
- "@object-ui/auth": "3.0.2",
52
- "@object-ui/collaboration": "3.0.2",
53
- "@object-ui/components": "3.0.2",
54
- "@object-ui/core": "3.0.2",
55
- "@object-ui/data-objectstack": "3.0.2",
51
+ "@object-ui/auth": "3.0.3",
52
+ "@object-ui/collaboration": "3.0.3",
53
+ "@object-ui/components": "3.0.3",
54
+ "@object-ui/core": "3.0.3",
55
+ "@object-ui/data-objectstack": "3.0.3",
56
56
  "@object-ui/example-crm": "1.0.0",
57
57
  "@object-ui/example-kitchen-sink": "1.0.0",
58
58
  "@object-ui/example-todo": "1.0.0",
59
- "@object-ui/fields": "3.0.2",
60
- "@object-ui/i18n": "3.0.2",
61
- "@object-ui/layout": "3.0.2",
62
- "@object-ui/mobile": "3.0.2",
63
- "@object-ui/permissions": "3.0.2",
64
- "@object-ui/plugin-calendar": "3.0.2",
65
- "@object-ui/plugin-charts": "3.0.2",
66
- "@object-ui/plugin-dashboard": "3.0.2",
67
- "@object-ui/plugin-designer": "3.0.2",
68
- "@object-ui/plugin-detail": "3.0.2",
69
- "@object-ui/plugin-form": "3.0.2",
70
- "@object-ui/plugin-gantt": "3.0.2",
71
- "@object-ui/plugin-grid": "3.0.2",
72
- "@object-ui/plugin-kanban": "3.0.2",
73
- "@object-ui/plugin-list": "3.0.2",
74
- "@object-ui/plugin-map": "3.0.2",
75
- "@object-ui/plugin-markdown": "3.0.2",
76
- "@object-ui/plugin-report": "3.0.2",
77
- "@object-ui/plugin-timeline": "3.0.2",
78
- "@object-ui/plugin-view": "3.0.2",
79
- "@object-ui/react": "3.0.2",
80
- "@object-ui/types": "3.0.2"
59
+ "@object-ui/fields": "3.0.3",
60
+ "@object-ui/i18n": "3.0.3",
61
+ "@object-ui/layout": "3.0.3",
62
+ "@object-ui/mobile": "3.0.3",
63
+ "@object-ui/permissions": "3.0.3",
64
+ "@object-ui/plugin-calendar": "3.0.3",
65
+ "@object-ui/plugin-charts": "3.0.3",
66
+ "@object-ui/plugin-dashboard": "3.0.3",
67
+ "@object-ui/plugin-designer": "3.0.3",
68
+ "@object-ui/plugin-detail": "3.0.3",
69
+ "@object-ui/plugin-form": "3.0.3",
70
+ "@object-ui/plugin-gantt": "3.0.3",
71
+ "@object-ui/plugin-grid": "3.0.3",
72
+ "@object-ui/plugin-kanban": "3.0.3",
73
+ "@object-ui/plugin-list": "3.0.3",
74
+ "@object-ui/plugin-map": "3.0.3",
75
+ "@object-ui/plugin-markdown": "3.0.3",
76
+ "@object-ui/plugin-report": "3.0.3",
77
+ "@object-ui/plugin-timeline": "3.0.3",
78
+ "@object-ui/plugin-view": "3.0.3",
79
+ "@object-ui/react": "3.0.3",
80
+ "@object-ui/types": "3.0.3"
81
81
  },
82
82
  "msw": {
83
83
  "workerDirectory": [
@@ -1 +0,0 @@
1
- import{j as s,h as x,r as i}from"./vendor-react-Dy_xkBQQ.js";import{a as h}from"./plugins-views-JvEQp7xT.js";import{a9 as e,aH as p,aI as f,aJ as u}from"./ui-components-CseD2Dpn.js";import"./framework-mHWN965c.js";import"./vendor-ui-utils-h6yAcIi9.js";import{u as j,b as g,r as d,M as N,a as b}from"./index-5NGcxsNI.js";import{aD as w}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 v({cards:t=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((l,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:t}).map((l,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 F({dataSource:t}){const{dashboardName:l}=x(),{showDebug:r,toggleDebug:m}=j(),[c,o]=i.useState(!0);i.useEffect(()=>{o(!0),queueMicrotask(()=>o(!1))},[l]);const a=g.dashboards?.find(n=>n.name===l);return c?s.jsx(v,{}):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(N,{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(h,{schema:a,dataSource:t})}),s.jsx(b,{open:r,sections:[{title:"Dashboard Configuration",data:a}]})]})]}):s.jsx("div",{className:"h-full flex items-center justify-center p-8",children:s.jsxs(p,{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(w,{className:"h-6 w-6 text-muted-foreground"})}),s.jsx(f,{children:"Dashboard Not Found"}),s.jsxs(u,{children:['The dashboard "',l,'" could not be found. It may have been removed or renamed.']})]})})}export{F as DashboardView};
@@ -1 +0,0 @@
1
- import{h as n,k as p,j as e}from"./vendor-react-Dy_xkBQQ.js";import{S as l}from"./framework-mHWN965c.js";import{aH as c,aI as d,aJ as u}from"./ui-components-CseD2Dpn.js";import"./vendor-ui-utils-h6yAcIi9.js";import{u as f,b as h,M as x,a as g}from"./index-5NGcxsNI.js";import{a1 as j}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-HuzSJDPK.js";import"./plugins-views-JvEQp7xT.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 z(){const{pageName:o}=n(),[s]=p(),{showDebug:a,toggleDebug:r}=f(),t=h.pages?.find(m=>m.name===o);if(!t)return e.jsx("div",{className:"h-full flex items-center justify-center p-8",children:e.jsxs(c,{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(j,{className:"h-6 w-6 text-muted-foreground"})}),e.jsx(d,{children:"Page Not Found"}),e.jsxs(u,{children:['The page "',o,'" could not be found. It may have been removed or renamed.']})]})});const i=Object.fromEntries(s.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(x,{open:a,onToggle:r})}),e.jsx(l,{schema:{...t,type:t.type||"page",context:{...t.context,params:i}}})]}),e.jsx(g,{open:a,sections:[{title:"Page Configuration",data:t}]})]})}export{z as PageView};
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{h as x,r as l,j as e}from"./vendor-react-Dy_xkBQQ.js";import{R as h,b as f}from"./plugins-views-JvEQp7xT.js";import{aH as g,aI as b,aJ as j,B as i}from"./ui-components-CseD2Dpn.js";import"./framework-mHWN965c.js";import"./vendor-ui-utils-h6yAcIi9.js";import{u as v,b as w,M as N,a as y}from"./index-5NGcxsNI.js";import{aE as R,b as E,aP as S}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";const k=[{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 q({dataSource:C}){const{reportName:r}=x(),{showDebug:o,toggleDebug:m}=v(),[d,t]=l.useState(!1),n=w.reports?.find(a=>a.name===r),[s,c]=l.useState(n);if(!n)return e.jsx("div",{className:"h-full flex items-center justify-center p-8",children:e.jsxs(g,{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(R,{className:"h-6 w-6 text-muted-foreground"})}),e.jsx(b,{children:"Report Not Found"}),e.jsxs(j,{children:['The report "',r,'" could not be found. It may have been removed or renamed.']})]})});const p=a=>{console.log("Saving report:",a),c(a),t(!1)};if(d)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(i,{variant:"ghost",size:"sm",onClick:()=>t(!1),className:"shrink-0",children:[e.jsx(E,{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(h,{schema:{title:"Report Builder",report:s,availableFields:k,onSave:p,onCancel:()=>t(!1)}})})]});const u={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(i,{variant:"outline",size:"sm",onClick:()=>t(!0),className:"h-8",children:[e.jsx(S,{className:"h-4 w-4 sm:mr-2"}),e.jsx("span",{className:"hidden sm:inline",children:"Edit Report"})]}),e.jsx(N,{open:o,onToggle:m})]})]}),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(f,{schema:u})})}),e.jsx(y,{open:o,sections:[{title:"Report Configuration",data:s}]})]})]})}export{q as ReportView};
@@ -1 +0,0 @@
1
- import{h as k,k as S,r as m,j as s,L as g}from"./vendor-react-Dy_xkBQQ.js";import{M as L,a1 as f,Y as I,Z as P}from"./ui-components-CseD2Dpn.js";import"./framework-mHWN965c.js";import"./vendor-ui-utils-h6yAcIi9.js";import{b as E}from"./index-5NGcxsNI.js";import{A as T,S as b,aE as q,a1 as A,aD as M,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-HuzSJDPK.js";import"./plugins-views-JvEQp7xT.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 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:M,page:A,report:q},O={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 X(){const{appName:p}=k(),[l,o]=S(),y=l.get("q")||"",[n,v]=m.useState(y),h=E.apps||[],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]),w=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(T,{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(L,{value:n,onChange:t=>w(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 $=j[r.type]||x;return s.jsx(g,{to:r.href,children:s.jsx(I,{className:"hover:bg-accent/50 transition-colors cursor-pointer",children:s.jsxs(P,{className:"flex items-center gap-3 p-3",children:[s.jsx("div",{className:`flex h-8 w-8 items-center justify-center rounded ${O[r.type]||""}`,children:s.jsx($,{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{X as SearchResultsPage};