@object-ui/console 3.0.2 → 3.1.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.
Files changed (242) hide show
  1. package/README.md +1 -1
  2. package/dist/assets/AdvancedChartImpl-Q6xhwCd2.js +7 -0
  3. package/dist/assets/AdvancedChartImpl-Q6xhwCd2.js.br +0 -0
  4. package/dist/assets/AdvancedChartImpl-Q6xhwCd2.js.gz +0 -0
  5. package/dist/assets/AppManagementPage-Bqi2RIF_.js +1 -0
  6. package/dist/assets/AppManagementPage-Bqi2RIF_.js.br +0 -0
  7. package/dist/assets/AppManagementPage-Bqi2RIF_.js.gz +0 -0
  8. package/dist/assets/AuditLogPage-Bhvo34U0.js +1 -0
  9. package/dist/assets/AuditLogPage-Bhvo34U0.js.br +0 -0
  10. package/dist/assets/AuditLogPage-Bhvo34U0.js.gz +0 -0
  11. package/dist/assets/{ChartImpl-2ivTljUi.js → ChartImpl-SceZDRuZ.js} +1 -1
  12. package/dist/assets/ChartImpl-SceZDRuZ.js.br +0 -0
  13. package/dist/assets/ChartImpl-SceZDRuZ.js.gz +0 -0
  14. package/dist/assets/CreateAppPage-BBV1-x1E.js +1 -0
  15. package/dist/assets/CreateAppPage-BBV1-x1E.js.br +0 -0
  16. package/dist/assets/CreateAppPage-BBV1-x1E.js.gz +0 -0
  17. package/dist/assets/DashboardDesignPage-Dsve6QAo.js +1 -0
  18. package/dist/assets/DashboardDesignPage-Dsve6QAo.js.br +0 -0
  19. package/dist/assets/DashboardDesignPage-Dsve6QAo.js.gz +0 -0
  20. package/dist/assets/DashboardView-DxpkEpzI.js +1 -0
  21. package/dist/assets/DashboardView-DxpkEpzI.js.br +0 -0
  22. package/dist/assets/DashboardView-DxpkEpzI.js.gz +0 -0
  23. package/dist/assets/EditAppPage-4REKKtym.js +1 -0
  24. package/dist/assets/EditAppPage-4REKKtym.js.br +0 -0
  25. package/dist/assets/EditAppPage-4REKKtym.js.gz +0 -0
  26. package/dist/assets/{ForgotPasswordPage-DUfjj-wh.js → ForgotPasswordPage-_rDOa2Zl.js} +1 -1
  27. package/dist/assets/KanbanEnhanced-Cy_rTBDD.js +1 -0
  28. package/dist/assets/KanbanEnhanced-Cy_rTBDD.js.br +0 -0
  29. package/dist/assets/KanbanEnhanced-Cy_rTBDD.js.gz +0 -0
  30. package/dist/assets/KanbanImpl-BNUeFn31.js +1 -0
  31. package/dist/assets/KanbanImpl-BNUeFn31.js.br +0 -0
  32. package/dist/assets/KanbanImpl-BNUeFn31.js.gz +0 -0
  33. package/dist/assets/{LoginPage-2CoFvwsL.js → LoginPage-BXP5VJhw.js} +1 -1
  34. package/dist/assets/{MarkdownImpl-BshtTFK2.js → MarkdownImpl-DQVBgcsA.js} +2 -2
  35. package/dist/assets/MarkdownImpl-DQVBgcsA.js.br +0 -0
  36. package/dist/assets/MarkdownImpl-DQVBgcsA.js.gz +0 -0
  37. package/dist/assets/OrgManagementPage-9aUMu-3n.js +1 -0
  38. package/dist/assets/OrgManagementPage-9aUMu-3n.js.br +0 -0
  39. package/dist/assets/OrgManagementPage-9aUMu-3n.js.gz +0 -0
  40. package/dist/assets/PageDesignPage-bfUbiZI-.js +1 -0
  41. package/dist/assets/PageDesignPage-bfUbiZI-.js.br +0 -0
  42. package/dist/assets/PageDesignPage-bfUbiZI-.js.gz +0 -0
  43. package/dist/assets/PageView-BNyUOHBp.js +2 -0
  44. package/dist/assets/PageView-BNyUOHBp.js.br +0 -0
  45. package/dist/assets/PageView-BNyUOHBp.js.gz +0 -0
  46. package/dist/assets/PermissionManagementPage-CfKXMrSe.js +1 -0
  47. package/dist/assets/PermissionManagementPage-CfKXMrSe.js.br +0 -0
  48. package/dist/assets/PermissionManagementPage-CfKXMrSe.js.gz +0 -0
  49. package/dist/assets/ProfilePage-aGYrzo6-.js +1 -0
  50. package/dist/assets/ProfilePage-aGYrzo6-.js.br +0 -0
  51. package/dist/assets/ProfilePage-aGYrzo6-.js.gz +0 -0
  52. package/dist/assets/RecordDetailView-Cbo06TgT.js +1 -0
  53. package/dist/assets/RecordDetailView-Cbo06TgT.js.br +0 -0
  54. package/dist/assets/RecordDetailView-Cbo06TgT.js.gz +0 -0
  55. package/dist/assets/RegisterPage-By5Xlwoy.js +1 -0
  56. package/dist/assets/ReportView-DYDYKXxz.js +1 -0
  57. package/dist/assets/ReportView-DYDYKXxz.js.br +0 -0
  58. package/dist/assets/ReportView-DYDYKXxz.js.gz +0 -0
  59. package/dist/assets/RoleManagementPage-DvuObd50.js +1 -0
  60. package/dist/assets/RoleManagementPage-DvuObd50.js.br +0 -0
  61. package/dist/assets/RoleManagementPage-DvuObd50.js.gz +0 -0
  62. package/dist/assets/SearchResultsPage-BXv9faGO.js +1 -0
  63. package/dist/assets/SearchResultsPage-BXv9faGO.js.br +0 -0
  64. package/dist/assets/SearchResultsPage-BXv9faGO.js.gz +0 -0
  65. package/dist/assets/SystemHubPage-DInbGUIC.js +1 -0
  66. package/dist/assets/SystemHubPage-DInbGUIC.js.br +0 -0
  67. package/dist/assets/SystemHubPage-DInbGUIC.js.gz +0 -0
  68. package/dist/assets/UserManagementPage-DfN7rtzx.js +1 -0
  69. package/dist/assets/UserManagementPage-DfN7rtzx.js.br +0 -0
  70. package/dist/assets/UserManagementPage-DfN7rtzx.js.gz +0 -0
  71. package/dist/assets/data-adapter-Cnk_Mp2r.js +1 -0
  72. package/dist/assets/data-adapter-Cnk_Mp2r.js.br +0 -0
  73. package/dist/assets/data-adapter-Cnk_Mp2r.js.gz +0 -0
  74. package/dist/assets/framework-0M39ZRTM.js +10 -0
  75. package/dist/assets/framework-0M39ZRTM.js.br +0 -0
  76. package/dist/assets/framework-0M39ZRTM.js.gz +0 -0
  77. package/dist/assets/index-B5fEfHjB.css +1 -0
  78. package/dist/assets/index-B5fEfHjB.css.br +0 -0
  79. package/dist/assets/index-B5fEfHjB.css.gz +0 -0
  80. package/dist/assets/index-BlrxLcAr.js +1 -0
  81. package/dist/assets/index-BlrxLcAr.js.br +0 -0
  82. package/dist/assets/index-BlrxLcAr.js.gz +0 -0
  83. package/dist/assets/index-o38_J709.js +9 -0
  84. package/dist/assets/index-o38_J709.js.br +0 -0
  85. package/dist/assets/index-o38_J709.js.gz +0 -0
  86. package/dist/assets/infrastructure-CShH4S9_.js +1 -0
  87. package/dist/assets/infrastructure-CShH4S9_.js.br +0 -0
  88. package/dist/assets/infrastructure-CShH4S9_.js.gz +0 -0
  89. package/dist/assets/maplibre-gl-Hx2FX3ON.js +811 -0
  90. package/dist/assets/maplibre-gl-Hx2FX3ON.js.br +0 -0
  91. package/dist/assets/maplibre-gl-Hx2FX3ON.js.gz +0 -0
  92. package/dist/assets/plugins-core-DBl14Uqc.js +8 -0
  93. package/dist/assets/plugins-core-DBl14Uqc.js.br +0 -0
  94. package/dist/assets/plugins-core-DBl14Uqc.js.gz +0 -0
  95. package/dist/assets/plugins-views-g4Cu3W3w.js +62 -0
  96. package/dist/assets/plugins-views-g4Cu3W3w.js.br +0 -0
  97. package/dist/assets/plugins-views-g4Cu3W3w.js.gz +0 -0
  98. package/dist/assets/ui-components-BuNW5g1I.js +36 -0
  99. package/dist/assets/ui-components-BuNW5g1I.js.br +0 -0
  100. package/dist/assets/ui-components-BuNW5g1I.js.gz +0 -0
  101. package/dist/assets/ui-components-D5YXsttd.css +1 -0
  102. package/dist/assets/ui-components-D5YXsttd.css.br +0 -0
  103. package/dist/assets/ui-components-D5YXsttd.css.gz +0 -0
  104. package/dist/assets/ui-layout-BSKYz8QD.js +1 -0
  105. package/dist/assets/ui-layout-BSKYz8QD.js.br +0 -0
  106. package/dist/assets/ui-layout-BSKYz8QD.js.gz +0 -0
  107. package/dist/assets/{vendor-charts-CSvoW-yB.js → vendor-charts-BbkZFaMp.js} +2 -2
  108. package/dist/assets/vendor-charts-BbkZFaMp.js.br +0 -0
  109. package/dist/assets/vendor-charts-BbkZFaMp.js.gz +0 -0
  110. package/dist/assets/vendor-dndkit-D1_B-HIy.js +5 -0
  111. package/dist/assets/vendor-dndkit-D1_B-HIy.js.br +0 -0
  112. package/dist/assets/vendor-dndkit-D1_B-HIy.js.gz +0 -0
  113. package/dist/assets/vendor-i18n-CikIh7Op.js +9 -0
  114. package/dist/assets/vendor-i18n-CikIh7Op.js.br +0 -0
  115. package/dist/assets/vendor-i18n-CikIh7Op.js.gz +0 -0
  116. package/dist/assets/{vendor-icons-CQ8b-fGy.js → vendor-icons-CsQ20zph.js} +3425 -3535
  117. package/dist/assets/vendor-icons-CsQ20zph.js.br +0 -0
  118. package/dist/assets/vendor-icons-CsQ20zph.js.gz +0 -0
  119. package/dist/assets/vendor-objectstack-aMKO1xRi.js +34 -0
  120. package/dist/assets/vendor-objectstack-aMKO1xRi.js.br +0 -0
  121. package/dist/assets/vendor-objectstack-aMKO1xRi.js.gz +0 -0
  122. package/dist/assets/{vendor-radix-BbeYj_o4.js → vendor-radix-CWYRmupg.js} +1 -1
  123. package/dist/assets/vendor-radix-CWYRmupg.js.br +0 -0
  124. package/dist/assets/vendor-radix-CWYRmupg.js.gz +0 -0
  125. package/dist/assets/vendor-react-BEJ2LWyF.js +60 -0
  126. package/dist/assets/vendor-react-BEJ2LWyF.js.br +0 -0
  127. package/dist/assets/vendor-react-BEJ2LWyF.js.gz +0 -0
  128. package/dist/assets/vendor-ui-utils-tMfURc0Z.js +1 -0
  129. package/dist/assets/vendor-ui-utils-tMfURc0Z.js.br +0 -0
  130. package/dist/assets/vendor-ui-utils-tMfURc0Z.js.gz +0 -0
  131. package/dist/assets/vendor-zod-DxQVy2_o.js +39 -0
  132. package/dist/assets/vendor-zod-DxQVy2_o.js.br +0 -0
  133. package/dist/assets/vendor-zod-DxQVy2_o.js.gz +0 -0
  134. package/dist/index.html +23 -22
  135. package/dist/index.html.br +0 -0
  136. package/dist/index.html.gz +0 -0
  137. package/dist/stats.html +37 -36
  138. package/package.json +49 -46
  139. package/dist/assets/AdvancedChartImpl-DAS1mU9o.js +0 -7
  140. package/dist/assets/AdvancedChartImpl-DAS1mU9o.js.br +0 -0
  141. package/dist/assets/AdvancedChartImpl-DAS1mU9o.js.gz +0 -0
  142. package/dist/assets/AuditLogPage-CyY7VZJW.js +0 -1
  143. package/dist/assets/AuditLogPage-CyY7VZJW.js.br +0 -0
  144. package/dist/assets/AuditLogPage-CyY7VZJW.js.gz +0 -0
  145. package/dist/assets/ChartImpl-2ivTljUi.js.br +0 -0
  146. package/dist/assets/ChartImpl-2ivTljUi.js.gz +0 -0
  147. package/dist/assets/DashboardView-CikFb_lD.js +0 -1
  148. package/dist/assets/DashboardView-CikFb_lD.js.br +0 -0
  149. package/dist/assets/DashboardView-CikFb_lD.js.gz +0 -0
  150. package/dist/assets/KanbanEnhanced-CwlMhI0l.js +0 -1
  151. package/dist/assets/KanbanEnhanced-CwlMhI0l.js.br +0 -0
  152. package/dist/assets/KanbanEnhanced-CwlMhI0l.js.gz +0 -0
  153. package/dist/assets/KanbanImpl-BsMtStI7.js +0 -1
  154. package/dist/assets/KanbanImpl-BsMtStI7.js.br +0 -0
  155. package/dist/assets/KanbanImpl-BsMtStI7.js.gz +0 -0
  156. package/dist/assets/MarkdownImpl-BshtTFK2.js.br +0 -0
  157. package/dist/assets/MarkdownImpl-BshtTFK2.js.gz +0 -0
  158. package/dist/assets/OrgManagementPage-BJt5Iiun.js +0 -1
  159. package/dist/assets/OrgManagementPage-BJt5Iiun.js.br +0 -0
  160. package/dist/assets/OrgManagementPage-BJt5Iiun.js.gz +0 -0
  161. package/dist/assets/PageView-CQP2T84v.js +0 -1
  162. package/dist/assets/PageView-CQP2T84v.js.br +0 -0
  163. package/dist/assets/PageView-CQP2T84v.js.gz +0 -0
  164. package/dist/assets/ProfilePage-MVUfKMrp.js +0 -1
  165. package/dist/assets/ProfilePage-MVUfKMrp.js.br +0 -0
  166. package/dist/assets/ProfilePage-MVUfKMrp.js.gz +0 -0
  167. package/dist/assets/RecordDetailView-IO2ShB0a.js +0 -1
  168. package/dist/assets/RecordDetailView-IO2ShB0a.js.br +0 -0
  169. package/dist/assets/RecordDetailView-IO2ShB0a.js.gz +0 -0
  170. package/dist/assets/RegisterPage-B9itUVYp.js +0 -1
  171. package/dist/assets/ReportView-BfR7RjL9.js +0 -1
  172. package/dist/assets/ReportView-BfR7RjL9.js.br +0 -0
  173. package/dist/assets/ReportView-BfR7RjL9.js.gz +0 -0
  174. package/dist/assets/RoleManagementPage-BRqaeF_L.js +0 -1
  175. package/dist/assets/RoleManagementPage-BRqaeF_L.js.br +0 -0
  176. package/dist/assets/RoleManagementPage-BRqaeF_L.js.gz +0 -0
  177. package/dist/assets/SearchResultsPage-DaxRxhBY.js +0 -1
  178. package/dist/assets/SearchResultsPage-DaxRxhBY.js.br +0 -0
  179. package/dist/assets/SearchResultsPage-DaxRxhBY.js.gz +0 -0
  180. package/dist/assets/UserManagementPage-DOH6ql6-.js +0 -1
  181. package/dist/assets/UserManagementPage-DOH6ql6-.js.br +0 -0
  182. package/dist/assets/UserManagementPage-DOH6ql6-.js.gz +0 -0
  183. package/dist/assets/ViewDesignerPage-BbwrZa9D.js +0 -1
  184. package/dist/assets/ViewDesignerPage-BbwrZa9D.js.br +0 -0
  185. package/dist/assets/ViewDesignerPage-BbwrZa9D.js.gz +0 -0
  186. package/dist/assets/data-adapter-CIsDmDZ2.js +0 -1
  187. package/dist/assets/data-adapter-CIsDmDZ2.js.br +0 -0
  188. package/dist/assets/data-adapter-CIsDmDZ2.js.gz +0 -0
  189. package/dist/assets/framework-mHWN965c.js +0 -10
  190. package/dist/assets/framework-mHWN965c.js.br +0 -0
  191. package/dist/assets/framework-mHWN965c.js.gz +0 -0
  192. package/dist/assets/index-5NGcxsNI.js +0 -56
  193. package/dist/assets/index-5NGcxsNI.js.br +0 -0
  194. package/dist/assets/index-5NGcxsNI.js.gz +0 -0
  195. package/dist/assets/index-CUnVdETN.css +0 -1
  196. package/dist/assets/index-CUnVdETN.css.br +0 -0
  197. package/dist/assets/index-CUnVdETN.css.gz +0 -0
  198. package/dist/assets/infrastructure-Di0WqY4l.js +0 -1
  199. package/dist/assets/infrastructure-Di0WqY4l.js.br +0 -0
  200. package/dist/assets/infrastructure-Di0WqY4l.js.gz +0 -0
  201. package/dist/assets/maplibre-gl-D2AsLM0J.js +0 -811
  202. package/dist/assets/maplibre-gl-D2AsLM0J.js.br +0 -0
  203. package/dist/assets/maplibre-gl-D2AsLM0J.js.gz +0 -0
  204. package/dist/assets/plugins-core-HuzSJDPK.js +0 -4
  205. package/dist/assets/plugins-core-HuzSJDPK.js.br +0 -0
  206. package/dist/assets/plugins-core-HuzSJDPK.js.gz +0 -0
  207. package/dist/assets/plugins-views-JvEQp7xT.js +0 -60
  208. package/dist/assets/plugins-views-JvEQp7xT.js.br +0 -0
  209. package/dist/assets/plugins-views-JvEQp7xT.js.gz +0 -0
  210. package/dist/assets/ui-components-CseD2Dpn.js +0 -31
  211. package/dist/assets/ui-components-CseD2Dpn.js.br +0 -0
  212. package/dist/assets/ui-components-CseD2Dpn.js.gz +0 -0
  213. package/dist/assets/ui-components-GrNdJOi1.css +0 -1
  214. package/dist/assets/ui-components-GrNdJOi1.css.br +0 -0
  215. package/dist/assets/ui-components-GrNdJOi1.css.gz +0 -0
  216. package/dist/assets/ui-layout-CF_1bNSv.js +0 -1
  217. package/dist/assets/ui-layout-CF_1bNSv.js.br +0 -0
  218. package/dist/assets/ui-layout-CF_1bNSv.js.gz +0 -0
  219. package/dist/assets/vendor-charts-CSvoW-yB.js.br +0 -0
  220. package/dist/assets/vendor-charts-CSvoW-yB.js.gz +0 -0
  221. package/dist/assets/vendor-dndkit-DRGpK6sP.js +0 -5
  222. package/dist/assets/vendor-dndkit-DRGpK6sP.js.br +0 -0
  223. package/dist/assets/vendor-dndkit-DRGpK6sP.js.gz +0 -0
  224. package/dist/assets/vendor-i18n-D5KbMT7w.js +0 -9
  225. package/dist/assets/vendor-i18n-D5KbMT7w.js.br +0 -0
  226. package/dist/assets/vendor-i18n-D5KbMT7w.js.gz +0 -0
  227. package/dist/assets/vendor-icons-CQ8b-fGy.js.br +0 -0
  228. package/dist/assets/vendor-icons-CQ8b-fGy.js.gz +0 -0
  229. package/dist/assets/vendor-objectstack-BbgElG6O.js +0 -37
  230. package/dist/assets/vendor-objectstack-BbgElG6O.js.br +0 -0
  231. package/dist/assets/vendor-objectstack-BbgElG6O.js.gz +0 -0
  232. package/dist/assets/vendor-radix-BbeYj_o4.js.br +0 -0
  233. package/dist/assets/vendor-radix-BbeYj_o4.js.gz +0 -0
  234. package/dist/assets/vendor-react-Dy_xkBQQ.js +0 -60
  235. package/dist/assets/vendor-react-Dy_xkBQQ.js.br +0 -0
  236. package/dist/assets/vendor-react-Dy_xkBQQ.js.gz +0 -0
  237. package/dist/assets/vendor-ui-utils-h6yAcIi9.js +0 -1
  238. package/dist/assets/vendor-ui-utils-h6yAcIi9.js.br +0 -0
  239. package/dist/assets/vendor-ui-utils-h6yAcIi9.js.gz +0 -0
  240. package/dist/assets/vendor-zod-Dpl-cylz.js +0 -39
  241. package/dist/assets/vendor-zod-Dpl-cylz.js.br +0 -0
  242. 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.1.0",
4
4
  "description": "ObjectStack Console - The standard runtime UI for ObjectStack applications",
5
5
  "type": "module",
6
6
  "main": "./plugin.js",
@@ -19,65 +19,68 @@
19
19
  "plugin.d.ts"
20
20
  ],
21
21
  "devDependencies": {
22
- "@objectstack/cli": "^3.0.4",
23
- "@objectstack/client": "^3.0.4",
24
- "@objectstack/driver-memory": "^3.0.4",
25
- "@objectstack/objectql": "^3.0.4",
26
- "@objectstack/plugin-msw": "^3.0.4",
27
- "@objectstack/runtime": "^3.0.4",
28
- "@objectstack/spec": "^3.0.4",
29
- "@tailwindcss/postcss": "^4.1.18",
22
+ "@dnd-kit/core": "^6.3.1",
23
+ "@dnd-kit/sortable": "^10.0.0",
24
+ "@dnd-kit/utilities": "^3.2.2",
25
+ "@objectstack/cli": "^3.2.0",
26
+ "@objectstack/client": "^3.2.0",
27
+ "@objectstack/driver-memory": "^3.2.0",
28
+ "@objectstack/objectql": "^3.2.0",
29
+ "@objectstack/plugin-msw": "^3.2.0",
30
+ "@objectstack/runtime": "^3.2.0",
31
+ "@objectstack/spec": "^3.2.0",
32
+ "@tailwindcss/postcss": "^4.2.1",
30
33
  "@testing-library/jest-dom": "^6.9.1",
31
34
  "@testing-library/react": "^16.3.2",
32
35
  "@testing-library/user-event": "^14.6.1",
33
- "@types/node": "^25.2.3",
34
- "@types/react": "19.2.13",
36
+ "@types/node": "^25.3.3",
37
+ "@types/react": "19.2.14",
35
38
  "@types/react-dom": "19.2.3",
36
39
  "@vitejs/plugin-react": "^5.1.4",
37
40
  "@vitest/ui": "^4.0.18",
38
- "autoprefixer": "^10.4.24",
39
- "happy-dom": "^20.6.1",
40
- "lucide-react": "^0.563.0",
41
+ "autoprefixer": "^10.4.27",
42
+ "happy-dom": "^20.7.0",
43
+ "lucide-react": "^0.576.0",
41
44
  "msw": "^2.12.10",
42
45
  "postcss": "^8.5.6",
43
46
  "react": "19.2.4",
44
47
  "react-dom": "19.2.4",
45
- "react-router-dom": "^7.13.0",
48
+ "react-router-dom": "^7.13.1",
46
49
  "sonner": "^2.0.7",
47
- "tailwindcss": "^4.1.18",
50
+ "tailwindcss": "^4.2.1",
48
51
  "typescript": "^5.9.3",
49
52
  "vite": "^6.4.1",
50
53
  "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",
56
- "@object-ui/example-crm": "1.0.0",
57
- "@object-ui/example-kitchen-sink": "1.0.0",
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"
54
+ "@object-ui/auth": "3.1.0",
55
+ "@object-ui/collaboration": "3.1.0",
56
+ "@object-ui/components": "3.1.0",
57
+ "@object-ui/core": "3.1.0",
58
+ "@object-ui/data-objectstack": "3.1.0",
59
+ "@object-ui/example-crm": "3.1.0",
60
+ "@object-ui/example-kitchen-sink": "3.1.0",
61
+ "@object-ui/example-todo": "3.1.0",
62
+ "@object-ui/fields": "3.1.0",
63
+ "@object-ui/i18n": "3.1.0",
64
+ "@object-ui/layout": "3.1.0",
65
+ "@object-ui/mobile": "3.1.0",
66
+ "@object-ui/permissions": "3.1.0",
67
+ "@object-ui/plugin-calendar": "3.1.0",
68
+ "@object-ui/plugin-charts": "3.1.0",
69
+ "@object-ui/plugin-dashboard": "3.1.0",
70
+ "@object-ui/plugin-designer": "3.1.0",
71
+ "@object-ui/plugin-detail": "3.1.0",
72
+ "@object-ui/plugin-form": "3.1.0",
73
+ "@object-ui/plugin-gantt": "3.1.0",
74
+ "@object-ui/plugin-grid": "3.1.0",
75
+ "@object-ui/plugin-kanban": "3.1.0",
76
+ "@object-ui/plugin-list": "3.1.0",
77
+ "@object-ui/plugin-map": "3.1.0",
78
+ "@object-ui/plugin-markdown": "3.1.0",
79
+ "@object-ui/plugin-report": "3.1.0",
80
+ "@object-ui/plugin-timeline": "3.1.0",
81
+ "@object-ui/plugin-view": "3.1.0",
82
+ "@object-ui/react": "3.1.0",
83
+ "@object-ui/types": "3.1.0"
81
84
  },
82
85
  "msw": {
83
86
  "workerDirectory": [
@@ -1,7 +0,0 @@
1
- import{r as g,j as e}from"./vendor-react-Dy_xkBQQ.js";import{T,L as W,a as H,P as R,c as F,d as G,e as E,f as X,g as Y,h as Z,i as q,S as M,C as N,X as O,Y as D,Z as U,j as J,A as Q,k as V,B as z,b as ee,l as te,m as ne}from"./vendor-charts-CSvoW-yB.js";import"./vendor-ui-utils-h6yAcIi9.js";import"./vendor-i18n-D5KbMT7w.js";const j=(...a)=>a.filter(Boolean).join(" "),re={light:"",dark:".dark"},I=g.createContext(null);function B(){const a=g.useContext(I);if(!a)throw new Error("useChart must be used within a <ChartContainer />");return a}function y({id:a,className:t,children:n,config:r,...l}){const c=g.useId(),o=`chart-${a||c.replace(/:/g,"")}`;return e.jsx(I.Provider,{value:{config:r},children:e.jsxs("div",{"data-slot":"chart","data-chart":o,className:j("flex w-full h-[350px] justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground",t),...l,children:[e.jsx(ae,{id:o,config:r}),e.jsx(H,{width:"100%",height:"100%",children:n})]})})}const ae=({id:a,config:t})=>{const n=Object.entries(t).filter(([,r])=>r.theme||r.color);return n.length?e.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(re).map(([r,l])=>`
2
- ${l} [data-chart=${a}] {
3
- ${n.map(([c,o])=>{const u=o.theme?.[r]||o.color;return u?` --color-${c}: ${u};`:null}).join(`
4
- `)}
5
- }
6
- `).join(`
7
- `)}}):null},C=T;function w({active:a,payload:t,className:n,indicator:r="dot",hideLabel:l=!1,hideIndicator:c=!1,label:o,labelFormatter:u,labelClassName:h,formatter:m,color:s,nameKey:d,labelKey:f}){const{config:x}=B(),v=g.useMemo(()=>{if(l||!t?.length)return null;const[i]=t,k=`${f||i?.dataKey||i?.name||"value"}`,P=$(x,i,k),p=!f&&typeof o=="string"?x[o]?.label||o:P?.label;return u?e.jsx("div",{className:j("font-medium",h),children:u(p,t)}):p?e.jsx("div",{className:j("font-medium",h),children:p}):null},[o,u,t,l,h,x,f]);if(!a||!t?.length)return null;const b=t.length===1&&r!=="dot";return e.jsxs("div",{className:j("border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",n),children:[b?null:v,e.jsx("div",{className:"grid gap-1.5",children:t.filter(i=>i.type!=="none").map((i,k)=>{const P=`${d||i.name||i.dataKey||"value"}`,p=$(x,i,P),A=s||i.payload.fill||i.color;return e.jsx("div",{className:j("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",r==="dot"?"items-center":""),children:m&&i?.value!==void 0&&i.name?m(i.value,i.name,i,k,i.payload):e.jsxs(e.Fragment,{children:[p?.icon?e.jsx(p.icon,{}):!c&&e.jsx("div",{className:j("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",r==="dot"?"h-2.5 w-2.5":"",r==="line"?"w-1":"",r==="dashed"?"w-0 border-[1.5px] border-dashed bg-transparent":"",b&&r==="dashed"?"my-0.5":""),style:{"--color-bg":A,"--color-border":A}}),e.jsxs("div",{className:j("flex flex-1 justify-between leading-none",b?"items-end":"items-center"),children:[e.jsxs("div",{className:"grid gap-1.5",children:[b?v:null,e.jsx("span",{className:"text-muted-foreground",children:p?.label||i.name})]}),i.value&&e.jsx("span",{className:"text-foreground font-mono font-medium tabular-nums",children:i.value.toLocaleString()})]})]})},i.dataKey)})})]})}const K=W;function L({className:a,hideIcon:t=!1,payload:n,verticalAlign:r="bottom",nameKey:l}){const{config:c}=B();return n?.length?e.jsx("div",{className:j("flex items-center justify-center gap-4",r==="top"?"pb-3":"pt-3",a),children:n.filter(o=>o.type!=="none").map(o=>{const u=`${l||o.dataKey||"value"}`,h=$(c,o,u);return e.jsxs("div",{className:j("[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"),children:[h?.icon&&!t?e.jsx(h.icon,{}):e.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:o.color}}),h?.label]},o.value)})}):null}function $(a,t,n){if(typeof t!="object"||t===null)return;const r="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0;let l=n;return n in t&&typeof t[n]=="string"?l=t[n]:r&&n in r&&typeof r[n]=="string"&&(l=r[n]),l in a?a[l]:a[n]}const _="hsl(var(--primary))",se={slate:"#64748b",gray:"#6b7280",zinc:"#71717a",neutral:"#737373",stone:"#78716c",red:"#ef4444",orange:"#f97316",amber:"#f59e0b",yellow:"#eab308",lime:"#84cc16",green:"#22c55e",emerald:"#10b981",teal:"#14b8a6",cyan:"#06b6d4",sky:"#0ea5e9",blue:"#3b82f6",indigo:"#6366f1",violet:"#8b5cf6",purple:"#a855f7",fuchsia:"#d946ef",pink:"#ec4899",rose:"#f43f5e"},S=a=>se[a]||a;function ce({chartType:a="bar",data:t=[],config:n={},xAxisKey:r="name",series:l=[],className:c=""}){const[o,u]=g.useState(!1);g.useEffect(()=>{const s=()=>u(window.innerWidth<640);return s(),window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]);const h={bar:z,line:V,area:Q,pie:R,donut:R,radar:E,scatter:M}[a]||z;console.log("📈 Rendering Chart:",{chartType:a,dataLength:t.length,config:n,series:l,xAxisKey:r});const m=()=>["hsl(var(--chart-1))","hsl(var(--chart-2))","hsl(var(--chart-3))","hsl(var(--chart-4))","hsl(var(--chart-5))"];if(a==="pie"||a==="donut"){const s=a==="donut"?60:0;return e.jsx(y,{config:n,className:c,children:e.jsxs(R,{children:[e.jsx(C,{cursor:!1,content:e.jsx(w,{hideLabel:!0})}),e.jsx(F,{data:t,dataKey:l[0]?.dataKey||"value",nameKey:r||"name",innerRadius:s,strokeWidth:5,paddingAngle:2,outerRadius:80,children:t.map((d,f)=>{let x=n[d[r]]?.color;if(!x){const v=m();x=v[f%v.length]}return e.jsx(G,{fill:S(x)},`cell-${f}`)})}),e.jsx(K,{content:e.jsx(L,{nameKey:r}),...o&&{verticalAlign:"bottom",wrapperStyle:{fontSize:"11px",paddingTop:"8px"}}})]})})}return a==="radar"?e.jsx(y,{config:n,className:c,children:e.jsxs(E,{data:t,children:[e.jsx(X,{}),e.jsx(Y,{dataKey:r}),e.jsx(Z,{}),e.jsx(C,{content:e.jsx(w,{})}),e.jsx(K,{content:e.jsx(L,{}),...o&&{verticalAlign:"bottom",wrapperStyle:{fontSize:"11px",paddingTop:"8px"}}}),l.map(s=>{const d=S(n[s.dataKey]?.color||_);return e.jsx(q,{dataKey:s.dataKey,stroke:d,fill:d,fillOpacity:.6},s.dataKey)})]})}):a==="scatter"?e.jsx(y,{config:n,className:c,children:e.jsxs(M,{children:[e.jsx(N,{vertical:!1}),e.jsx(O,{type:"number",dataKey:r,name:String(n[r]?.label||r),tickLine:!1,axisLine:!1,interval:o?Math.ceil(t.length/5):0}),e.jsx(D,{type:"number",dataKey:l[0]?.dataKey||"value",name:String(n[l[0]?.dataKey]?.label||l[0]?.dataKey),tickLine:!1,axisLine:!1}),e.jsx(U,{type:"number",range:[60,400]}),e.jsx(C,{content:e.jsx(w,{})}),e.jsx(K,{content:e.jsx(L,{}),...o&&{verticalAlign:"bottom",wrapperStyle:{fontSize:"11px",paddingTop:"8px"}}}),l.map((s,d)=>{const f=m(),x=S(n[s.dataKey]?.color||f[d%f.length]);return e.jsx(J,{name:n[s.dataKey]?.label||s.dataKey,data:t,fill:x},s.dataKey)})]})}):e.jsx(y,{config:n,className:c,children:e.jsxs(h,{data:t,children:[e.jsx(N,{vertical:!1}),e.jsx(O,{dataKey:r,tickLine:!1,tickMargin:10,axisLine:!1,interval:o?Math.ceil(t.length/5):0,tickFormatter:s=>s&&typeof s=="string"?s.slice(0,3):s}),e.jsx(C,{content:e.jsx(w,{})}),e.jsx(K,{content:e.jsx(L,{}),...o&&{verticalAlign:"bottom",wrapperStyle:{fontSize:"11px",paddingTop:"8px"}}}),l.map(s=>{const d=S(n[s.dataKey]?.color||_);return a==="bar"?e.jsx(ee,{dataKey:s.dataKey,fill:d,radius:4},s.dataKey):a==="line"?e.jsx(te,{type:"monotone",dataKey:s.dataKey,stroke:d,strokeWidth:2,dot:!1},s.dataKey):a==="area"?e.jsx(ne,{type:"monotone",dataKey:s.dataKey,fill:d,stroke:d,fillOpacity:.4},s.dataKey):null})]})})}export{ce as default};
@@ -1 +0,0 @@
1
- import{j as e}from"./vendor-react-Dy_xkBQQ.js";import{Y as l,Z as m,a1 as d}from"./ui-components-CseD2Dpn.js";import"./framework-mHWN965c.js";import"./vendor-ui-utils-h6yAcIi9.js";import{s as n}from"./systemObjects-DSpePIIy.js";import{bx as a}from"./vendor-icons-CQ8b-fGy.js";import"./vendor-radix-BbeYj_o4.js";import"./vendor-i18n-D5KbMT7w.js";import"./vendor-charts-CSvoW-yB.js";const t=n.find(s=>s.name==="sys_audit_log");function N(){return e.jsxs("div",{className:"flex flex-col gap-4 sm:gap-6 p-4 sm:p-6",children:[e.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[e.jsx("div",{className:"bg-primary/10 p-2 rounded-md shrink-0",children:e.jsx(a,{className:"h-5 w-5 text-primary"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h1",{className:"text-xl sm:text-2xl font-bold tracking-tight",children:"Audit Log"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-0.5",children:"View system activity and user actions"})]})]}),e.jsx(l,{children:e.jsx(m,{className:"p-0",children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsx("tr",{className:"border-b bg-muted/50",children:t.views[0].columns.map(s=>{const r=t.fields.find(i=>i.name===s);return e.jsx("th",{className:"h-10 px-3 sm:px-4 text-left font-medium text-muted-foreground whitespace-nowrap",children:r?.label??s},s)})})}),e.jsx("tbody",{children:e.jsx("tr",{children:e.jsx("td",{className:"p-4 sm:p-6 text-center text-sm text-muted-foreground",colSpan:t.views[0].columns.length,children:e.jsxs("div",{className:"flex flex-col items-center gap-2 py-4",children:[e.jsx(a,{className:"h-8 w-8 text-muted-foreground/50"}),e.jsx("p",{children:"Connect to ObjectStack server to load audit logs."}),e.jsx(d,{variant:"secondary",className:"text-xs",children:"Read-only"})]})})})})]})})})})]})}export{N as AuditLogPage};
@@ -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{r as c,j as e}from"./vendor-react-Dy_xkBQQ.js";import{u as F}from"./plugins-core-HuzSJDPK.js";import{u as H,a as K,D as P,c as Y,b as M,d as U,P as Z,e as z,S as q,v as G,C as J}from"./vendor-dndkit-DRGpK6sP.js";import{B as Q,a1 as I,Y as W,$ as X,a0 as _,ab as ee,Z as se}from"./ui-components-CseD2Dpn.js";import"./framework-mHWN965c.js";import"./vendor-ui-utils-h6yAcIi9.js";import{a as te,C as re,T as ae}from"./vendor-icons-CQ8b-fGy.js";import"./plugins-views-JvEQp7xT.js";import"./vendor-charts-CSvoW-yB.js";import"./vendor-i18n-D5KbMT7w.js";import"./vendor-radix-BbeYj_o4.js";const k=(...s)=>s.filter(Boolean).join(" ");function E({card:s}){const{attributes:x,listeners:o,setNodeRef:m,transform:r,transition:g,isDragging:v}=z({id:s.id}),f={transform:J.Transform.toString(r),transition:g,opacity:v?.5:void 0};return e.jsx("div",{ref:m,style:f,...x,...o,children:e.jsxs(W,{className:"mb-2 cursor-grab active:cursor-grabbing border-border bg-card/60 hover:border-primary/40 hover:shadow-lg hover:shadow-primary/10 transition-all duration-300 group",children:[e.jsxs(X,{className:"p-4",children:[e.jsx(_,{className:"text-sm font-medium font-mono tracking-tight text-foreground group-hover:text-primary transition-colors",children:s.title}),s.description&&e.jsx(ee,{className:"text-xs text-muted-foreground font-mono",children:s.description})]}),s.badges&&s.badges.length>0&&e.jsx(se,{className:"p-4 pt-0",children:e.jsx("div",{className:"flex flex-wrap gap-1",children:s.badges.map((l,a)=>e.jsx(I,{variant:l.variant||"default",className:"text-xs",children:l.label},a))})})]})})}function ie({cards:s,parentRef:x}){const o=F({count:s.length,getScrollElement:()=>x.current,estimateSize:()=>120,overscan:5});return e.jsx("div",{style:{height:`${o.getTotalSize()}px`,width:"100%",position:"relative"},children:o.getVirtualItems().map(m=>{const r=s[m.index];return e.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${m.start}px)`},children:e.jsx(E,{card:r})},r.id)})})}function ne({column:s,cards:x,onToggle:o,enableVirtual:m}){const r=x||[],g=c.useRef(null),{setNodeRef:v}=z({id:s.id,data:{type:"column"}}),f=s.limit&&r.length>=s.limit,l=s.limit&&r.length>=s.limit*.8;return e.jsxs("div",{ref:v,className:k("flex flex-col flex-shrink-0 rounded-lg border border-border bg-card/20 backdrop-blur-sm shadow-xl transition-all",s.collapsed?"w-16":"w-80",s.className),children:[e.jsxs("div",{className:"p-4 border-b border-border/50 bg-muted/20 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[e.jsx(Q,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0",onClick:()=>o(!s.collapsed),children:s.collapsed?e.jsx(te,{className:"h-4 w-4"}):e.jsx(re,{className:"h-4 w-4"})}),!s.collapsed&&e.jsxs(e.Fragment,{children:[e.jsx("h3",{className:"font-mono text-sm font-semibold tracking-wider text-primary/90 uppercase truncate",children:s.title}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("span",{className:k("font-mono text-xs",f?"text-destructive":l?"text-yellow-500":"text-muted-foreground"),children:[r.length,s.limit&&` / ${s.limit}`]}),f&&e.jsx(I,{variant:"destructive",className:"text-xs",children:"Full"}),l&&!f&&e.jsx(ae,{className:"h-3 w-3 text-yellow-500"})]})]})]}),s.collapsed&&e.jsxs("div",{className:"flex flex-col items-center gap-1",children:[e.jsx("span",{className:"font-mono text-xs font-bold text-primary/90 [writing-mode:vertical-rl] rotate-180",children:s.title}),e.jsx(I,{variant:"secondary",className:"text-xs",children:r.length})]})]}),!s.collapsed&&e.jsx("div",{ref:g,className:"flex-1 p-4 overflow-y-auto",style:{maxHeight:"600px"},children:e.jsx(q,{items:r.map(a=>a.id),strategy:G,children:m?e.jsx(ie,{cards:r,parentRef:g}):e.jsx("div",{className:"space-y-2",children:r.map(a=>e.jsx(E,{card:a},a.id))})})})]})}function ve({columns:s,onCardMove:x,onColumnToggle:o,enableVirtualScrolling:m=!1,virtualScrollThreshold:r=50,className:g}){const[v,f]=c.useState(null),l=c.useMemo(()=>(s||[]).map(t=>({...t,cards:t.cards||[]})),[s]),[a,S]=c.useState(l);c.useEffect(()=>{S(l)},[l]);const T=H(K(Z,{activationConstraint:{distance:8}})),V=t=>{const{active:i}=t,n=$(i.id);f(n)},L=t=>{const{active:i,over:n}=t;if(f(null),!n)return;const d=i.id,b=n.id;if(d===b)return;const u=B(d),j=B(b)||O(b);if(!(!u||!j))if(u.id===j.id){const h=[...u.cards],C=h.findIndex(p=>p.id===d),D=h.findIndex(p=>p.id===b),R=U(h,C,D);S(p=>p.map(N=>N.id===u.id?{...N,cards:R}:N))}else{const h=[...u.cards],C=[...j.cards],D=h.findIndex(w=>w.id===d),p=b===j.id?C.length:C.findIndex(w=>w.id===b),[N]=h.splice(D,1);C.splice(p,0,N),S(w=>w.map(y=>y.id===u.id?{...y,cards:h}:y.id===j.id?{...y,cards:C}:y)),x&&x(d,u.id,j.id,p)}},$=c.useCallback(t=>{for(const i of a){const n=i.cards.find(d=>d.id===t);if(n)return n}return null},[a]),B=c.useCallback(t=>a.find(i=>i.cards.some(n=>n.id===t))||null,[a]),O=c.useCallback(t=>a.find(i=>i.id===t)||null,[a]),A=c.useCallback((t,i)=>{S(n=>n.map(d=>d.id===t?{...d,collapsed:i}:d)),o?.(t,i)},[o]);return e.jsxs(P,{sensors:T,collisionDetection:Y,onDragStart:V,onDragEnd:L,children:[e.jsx("div",{className:k("flex gap-4 overflow-x-auto p-4",g),children:a.map(t=>{const i=m&&t.cards.length>r;return e.jsx(ne,{column:t,cards:t.cards,onToggle:n=>A(t.id,n),enableVirtual:i},t.id)})}),e.jsx(M,{children:v?e.jsx(E,{card:v}):null})]})}export{ve as KanbanEnhanced,ve as default};
@@ -1 +0,0 @@
1
- import{j as e,r as h}from"./vendor-react-Dy_xkBQQ.js";import{u as H,a as B,D as L,c as Y,b as Z,d as q,T as z,P as G,e as E,S as J,v as M,C as Q}from"./vendor-dndkit-DRGpK6sP.js";import{a1 as K,aP as U,Y as V,$ as W,a0 as X,ab as _,Z as ee}from"./ui-components-CseD2Dpn.js";import{i as se,j as re}from"./framework-mHWN965c.js";import"./vendor-ui-utils-h6yAcIi9.js";import"./vendor-icons-CQ8b-fGy.js";import"./vendor-radix-BbeYj_o4.js";import"./vendor-i18n-D5KbMT7w.js";import"./vendor-charts-CSvoW-yB.js";const P=(...s)=>s.filter(Boolean).join(" ");function T({card:s,onCardClick:i}){const{attributes:x,listeners:n,setNodeRef:a,transform:o,transition:c,isDragging:C}=E({id:s.id}),d={transform:Q.Transform.toString(o),transition:c,opacity:C?.5:void 0};return e.jsx("div",{ref:a,style:d,...x,...n,role:"listitem","aria-label":s.title,onClick:()=>i?.(s),children:e.jsxs(V,{className:"mb-2 cursor-grab active:cursor-grabbing border-border bg-card/60 hover:border-primary/40 hover:shadow-lg hover:shadow-primary/10 transition-all duration-300 group touch-manipulation",children:[e.jsxs(W,{className:"p-2 sm:p-4",children:[e.jsx(X,{className:"text-xs sm:text-sm font-medium font-mono tracking-tight text-foreground group-hover:text-primary transition-colors",children:s.title}),s.description&&e.jsx(_,{className:"text-xs text-muted-foreground font-mono line-clamp-2 sm:line-clamp-none",children:s.description})]}),s.badges&&s.badges.length>0&&e.jsx(ee,{className:"p-2 sm:p-4 pt-0",children:e.jsx("div",{className:"flex flex-wrap gap-1",children:s.badges.map((b,S)=>e.jsx(K,{variant:b.variant||"default",className:"text-xs",children:b.label},S))})})]})})}function ae({column:s,cards:i,onCardClick:x}){const n=i||[],{setNodeRef:a}=E({id:s.id,data:{type:"column"}}),o=s.limit&&n.length>=s.limit;return e.jsxs("div",{ref:a,role:"group","aria-label":s.title,className:P("flex flex-col w-[85vw] sm:w-80 flex-shrink-0 rounded-lg border border-border bg-card/20 backdrop-blur-sm shadow-xl snap-start",s.className),children:[e.jsx("div",{className:"p-3 sm:p-4 border-b border-border/50 bg-muted/20",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h3",{id:`kanban-col-${s.id}`,className:"font-mono text-xs sm:text-sm font-semibold tracking-wider text-primary/90 uppercase truncate",children:s.title}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("span",{className:"font-mono text-xs text-muted-foreground","aria-label":`${n.length} cards${s.limit?` of ${s.limit} maximum`:""}`,children:[n.length,s.limit&&` / ${s.limit}`]}),o&&e.jsx(K,{variant:"destructive",className:"text-xs",children:"Full"})]})]})}),e.jsx(U,{className:"flex-1 p-4",children:e.jsx(J,{items:n.map(c=>c.id),strategy:M,children:e.jsx("div",{className:"space-y-2",role:"list","aria-label":`${s.title} cards`,children:n.map(c=>e.jsx(T,{card:c,onCardClick:x},c.id))})})})]})}function te({children:s}){const i=re();return e.jsx(e.Fragment,{children:s(i)})}function ue({columns:s,onCardMove:i,onCardClick:x,className:n}){return se()?e.jsx(te,{children:o=>e.jsx($,{columns:s,onCardMove:i,onCardClick:x,className:n,dnd:o})}):e.jsx($,{columns:s,onCardMove:i,onCardClick:x,className:n,dnd:null})}function $({columns:s,onCardMove:i,onCardClick:x,className:n,dnd:a}){const[o,c]=h.useState(null),C=h.useMemo(()=>(s||[]).map(r=>({...r,cards:r.cards||[]})),[s]),[d,b]=h.useState(C);h.useEffect(()=>{b(C)},[C]);const S=H(B(G,{activationConstraint:{distance:5}}),B(z,{activationConstraint:{delay:200,tolerance:5}})),O=r=>{const{active:m}=r,t=A(m.id);if(c(t),a&&t){const l=w(t.id);l&&a.startDrag({id:t.id,type:"kanban-card",data:t,sourceId:l.id})}},R=r=>{const{active:m,over:t}=r;if(c(null),!t){a&&a.endDrag();return}const l=m.id,v=t.id;if(l===v){a&&a.endDrag();return}const u=w(l),p=w(v)||F(v);if(!u||!p){a&&a.endDrag();return}if(u.id===p.id){const g=[...u.cards],j=g.findIndex(f=>f.id===l),I=g.findIndex(f=>f.id===v),k=q(g,j,I);b(f=>f.map(D=>D.id===u.id?{...D,cards:k}:D))}else{const g=[...u.cards],j=[...p.cards],I=g.findIndex(N=>N.id===l),f=v===p.id?j.length:j.findIndex(N=>N.id===v),[D]=g.splice(I,1);j.splice(f,0,D),b(N=>N.map(y=>y.id===u.id?{...y,cards:g}:y.id===p.id?{...y,cards:j}:y)),i&&i(l,u.id,p.id,f)}a&&a.endDrag(p.id)},A=h.useCallback(r=>{for(const m of d){const t=m.cards.find(l=>l.id===r);if(t)return t}return null},[d]),w=h.useCallback(r=>d.find(m=>m.cards.some(t=>t.id===r))||null,[d]),F=h.useCallback(r=>d.find(m=>m.id===r)||null,[d]);return e.jsxs(L,{sensors:S,collisionDetection:Y,onDragStart:O,onDragEnd:R,children:[e.jsxs("div",{className:"flex sm:hidden items-center justify-between px-3 pb-2 text-xs text-muted-foreground",children:[e.jsxs("span",{children:[d.length," columns"]}),e.jsx("span",{children:"← Swipe to navigate →"})]}),e.jsx("div",{className:P("flex gap-3 sm:gap-4 overflow-x-auto snap-x snap-mandatory p-2 sm:p-4 [-webkit-overflow-scrolling:touch]",n),role:"region","aria-label":"Kanban board",children:d.map(r=>e.jsx(ae,{column:r,cards:r.cards,onCardClick:x},r.id))}),e.jsx(Z,{children:e.jsx("div",{"aria-live":"assertive","aria-label":o?`Dragging ${o.title}`:void 0,children:o?e.jsx(T,{card:o}):null})})]})}export{ue as default};
@@ -1 +0,0 @@
1
- import{j as e}from"./vendor-react-Dy_xkBQQ.js";import{u as l}from"./infrastructure-Di0WqY4l.js";import{B as d,Y as c,Z as o,a1 as x}from"./ui-components-CseD2Dpn.js";import"./framework-mHWN965c.js";import"./vendor-ui-utils-h6yAcIi9.js";import{s as p}from"./systemObjects-DSpePIIy.js";import{bv as r,m as h}from"./vendor-icons-CQ8b-fGy.js";import"./vendor-i18n-D5KbMT7w.js";import"./vendor-radix-BbeYj_o4.js";import"./vendor-charts-CSvoW-yB.js";const a=p.find(s=>s.name==="sys_org");function z(){const{user:s}=l(),n=s?.role==="admin";return e.jsxs("div",{className:"flex flex-col gap-4 sm:gap-6 p-4 sm:p-6",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3",children:[e.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[e.jsx("div",{className:"bg-primary/10 p-2 rounded-md shrink-0",children:e.jsx(r,{className:"h-5 w-5 text-primary"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h1",{className:"text-xl sm:text-2xl font-bold tracking-tight",children:"Organization Management"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-0.5",children:"Manage organizations and their members"})]})]}),n&&e.jsxs(d,{size:"sm",className:"shrink-0 gap-2",children:[e.jsx(h,{className:"h-4 w-4"}),"Add Organization"]})]}),e.jsx(c,{children:e.jsx(o,{className:"p-0",children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsx("tr",{className:"border-b bg-muted/50",children:a.views[0].columns.map(t=>{const i=a.fields.find(m=>m.name===t);return e.jsx("th",{className:"h-10 px-3 sm:px-4 text-left font-medium text-muted-foreground whitespace-nowrap",children:i?.label??t},t)})})}),e.jsx("tbody",{children:e.jsx("tr",{children:e.jsx("td",{className:"p-4 sm:p-6 text-center text-sm text-muted-foreground",colSpan:a.views[0].columns.length,children:e.jsxs("div",{className:"flex flex-col items-center gap-2 py-4",children:[e.jsx(r,{className:"h-8 w-8 text-muted-foreground/50"}),e.jsx("p",{children:"Connect to ObjectStack server to load organizations."}),e.jsx(x,{variant:"secondary",className:"text-xs",children:"plugin-grid powered"})]})})})})]})})})})]})}export{z as OrgManagementPage};
@@ -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{r as l,j as e}from"./vendor-react-Dy_xkBQQ.js";import{u as w,g as C}from"./infrastructure-Di0WqY4l.js";import{Y as i,Z as u,ap as S,aq as A,ar as E,a1 as P,$ as h,a0 as p,ab as j,aN as g,aO as f,L as n,M as c,B as U}from"./ui-components-CseD2Dpn.js";import"./framework-mHWN965c.js";import"./vendor-ui-utils-h6yAcIi9.js";import{by as k,h as I,g as L,bz as B}from"./vendor-icons-CQ8b-fGy.js";import"./vendor-i18n-D5KbMT7w.js";import"./vendor-radix-BbeYj_o4.js";import"./vendor-charts-CSvoW-yB.js";function Y(){const{user:s,updateUser:N,isLoading:a}=w(),[d,v]=l.useState(s?.name??""),[b,m]=l.useState(!1),[o,x]=l.useState(null),y=async t=>{t.preventDefault(),x(null),m(!1);try{await N({name:d}),m(!0)}catch(r){x(r instanceof Error?r.message:String(r))}};return s?e.jsxs("div",{className:"flex flex-col gap-4 sm:gap-6 p-4 sm:p-6 max-w-2xl",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("h1",{className:"text-xl sm:text-2xl font-bold tracking-tight",children:"Profile"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Manage your account settings"})]}),e.jsx(i,{children:e.jsx(u,{className:"pt-6",children:e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs(S,{className:"h-16 w-16",children:[e.jsx(A,{src:s.image??void 0,alt:s.name??"User"}),e.jsx(E,{className:"text-lg bg-primary text-primary-foreground",children:C(s)})]}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"text-lg font-semibold truncate",children:s.name??"User"}),e.jsx("p",{className:"text-sm text-muted-foreground truncate",children:s.email}),e.jsx(P,{variant:"secondary",className:"mt-1",children:s.role??"member"})]})]})})}),e.jsxs(i,{children:[e.jsxs(h,{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(k,{className:"h-4 w-4 text-muted-foreground"}),e.jsx(p,{className:"text-base sm:text-lg",children:"Personal Information"})]}),e.jsx(j,{children:"Update your name and view account details"})]}),e.jsx(u,{children:e.jsxs("form",{onSubmit:y,className:"space-y-4",children:[o&&e.jsxs(g,{variant:"destructive",children:[e.jsx(I,{className:"h-4 w-4"}),e.jsx(f,{children:o})]}),b&&e.jsxs(g,{children:[e.jsx(L,{className:"h-4 w-4 text-green-600"}),e.jsx(f,{className:"text-green-800 dark:text-green-400",children:"Profile updated successfully."})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(n,{htmlFor:"profile-name",children:"Name"}),e.jsx(c,{id:"profile-name",type:"text",value:d,onChange:t=>v(t.target.value),required:!0,disabled:a})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(n,{htmlFor:"profile-email",children:"Email"}),e.jsx(c,{id:"profile-email",type:"email",value:s.email,disabled:!0,className:"bg-muted text-muted-foreground"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Email cannot be changed."})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(n,{children:"Role"}),e.jsx(c,{type:"text",value:s.role??"member",disabled:!0,className:"bg-muted text-muted-foreground"})]}),e.jsx(U,{type:"submit",disabled:a,className:"w-full sm:w-auto",children:a?"Saving...":"Save Changes"})]})})]}),e.jsx(i,{children:e.jsxs(h,{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(B,{className:"h-4 w-4 text-muted-foreground"}),e.jsx(p,{className:"text-base sm:text-lg",children:"Change Password"})]}),e.jsx(j,{children:"To change your password, use the password reset flow from the login page."})]})})]}):null}export{Y as ProfilePage};
@@ -1 +0,0 @@
1
- import{j as e,h as f,r as x}from"./vendor-react-Dy_xkBQQ.js";import{D as j}from"./plugins-views-JvEQp7xT.js";import{a9 as s,aH as u,aI as N,aJ as g}from"./ui-components-CseD2Dpn.js";import"./framework-mHWN965c.js";import"./vendor-ui-utils-h6yAcIi9.js";import{u as w,M as v,a as b}from"./index-5NGcxsNI.js";import{as as y}from"./vendor-icons-CQ8b-fGy.js";import"./vendor-charts-CSvoW-yB.js";import"./vendor-i18n-D5KbMT7w.js";import"./vendor-radix-BbeYj_o4.js";import"./plugins-core-HuzSJDPK.js";import"./data-adapter-CIsDmDZ2.js";import"./vendor-objectstack-BbgElG6O.js";import"./vendor-zod-Dpl-cylz.js";import"./infrastructure-Di0WqY4l.js";import"./ui-layout-CF_1bNSv.js";function D({fields:r=8,columns:c=2}){return e.jsxs("div",{className:"w-full space-y-6 p-4 sm:p-6",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(s,{className:"h-8 w-8 rounded"}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(s,{className:"h-6 w-48"}),e.jsx(s,{className:"h-4 w-32"})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(s,{className:"h-9 w-20"}),e.jsx(s,{className:"h-9 w-20"})]})]}),e.jsx(s,{className:"h-5 w-24"}),e.jsx("div",{className:`grid grid-cols-1 ${c===2?"md:grid-cols-2":""} gap-4`,children:Array.from({length:r}).map((o,a)=>e.jsxs("div",{className:"space-y-2",children:[e.jsx(s,{className:"h-4 w-24"}),e.jsx(s,{className:"h-9 w-full"})]},`field-${a}`))}),e.jsxs("div",{className:"space-y-3 pt-4 border-t",children:[e.jsx(s,{className:"h-5 w-32"}),e.jsx("div",{className:"space-y-2",children:Array.from({length:3}).map((o,a)=>e.jsxs("div",{className:"flex items-center gap-3 py-2",children:[e.jsx(s,{className:"h-8 w-8 rounded-full"}),e.jsxs("div",{className:"flex-1 space-y-1",children:[e.jsx(s,{className:"h-4 w-40"}),e.jsx(s,{className:"h-3 w-24"})]})]},`related-${a}`))})]})]})}function z({dataSource:r,objects:c,onEdit:o}){const{objectName:a,recordId:i}=f(),{showDebug:m,toggleDebug:p}=w(),[h,d]=x.useState(!0),t=c.find(l=>l.name===a);if(x.useEffect(()=>{d(!0),queueMicrotask(()=>d(!1))},[a,i]),h)return e.jsx(D,{});if(!t)return e.jsx("div",{className:"flex h-full items-center justify-center p-4",children:e.jsxs(u,{children:[e.jsx("div",{className:"mx-auto mb-4 flex h-12 w-12 items-center justify-center rounded-full bg-muted",children:e.jsx(y,{className:"h-6 w-6 text-muted-foreground"})}),e.jsx(N,{children:"Object Not Found"}),e.jsxs(g,{children:['Object "',a,'" definition missing. Check your configuration or navigate back to select a valid object.']})]})});const n={type:"detail-view",objectName:t.name,resourceId:i,showBack:!0,onBack:"history",showEdit:!0,title:t.label,sections:[{title:"Details",fields:Object.keys(t.fields||{}).map(l=>({name:l,label:t.fields[l].label||l,type:t.fields[l].type||"text"})),columns:2}]};return e.jsxs("div",{className:"h-full bg-background overflow-hidden flex flex-col relative",children:[e.jsx("div",{className:"absolute top-2 sm:top-4 right-2 sm:right-4 z-50",children:e.jsx(v,{open:m,onToggle:p})}),e.jsxs("div",{className:"flex-1 overflow-hidden flex flex-row",children:[e.jsx("div",{className:"flex-1 overflow-auto p-3 sm:p-4 lg:p-6 scroll-pb-48",children:e.jsx(j,{schema:n,dataSource:r,onEdit:()=>o({_id:i,id:i})})}),e.jsx(b,{open:m,sections:[{title:"View Schema",data:n}]})]})]})}export{z as RecordDetailView};
@@ -1 +0,0 @@
1
- import{i as s,j as e}from"./vendor-react-Dy_xkBQQ.js";import{R as i}from"./infrastructure-Di0WqY4l.js";import"./vendor-i18n-D5KbMT7w.js";function a(){const r=s();return e.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background px-4 py-8",children:e.jsx(i,{onSuccess:()=>r("/"),loginUrl:"/login"})})}export{a as RegisterPage};
@@ -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{j as e}from"./vendor-react-Dy_xkBQQ.js";import{u as i}from"./infrastructure-Di0WqY4l.js";import{B as d,Y as c,Z as o,a1 as x}from"./ui-components-CseD2Dpn.js";import"./framework-mHWN965c.js";import"./vendor-ui-utils-h6yAcIi9.js";import{s as p}from"./systemObjects-DSpePIIy.js";import{bw as a,m as h}from"./vendor-icons-CQ8b-fGy.js";import"./vendor-i18n-D5KbMT7w.js";import"./vendor-radix-BbeYj_o4.js";import"./vendor-charts-CSvoW-yB.js";const r=p.find(s=>s.name==="sys_role");function C(){const{user:s}=i(),l=s?.role==="admin";return e.jsxs("div",{className:"flex flex-col gap-4 sm:gap-6 p-4 sm:p-6",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3",children:[e.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[e.jsx("div",{className:"bg-primary/10 p-2 rounded-md shrink-0",children:e.jsx(a,{className:"h-5 w-5 text-primary"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h1",{className:"text-xl sm:text-2xl font-bold tracking-tight",children:"Role Management"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-0.5",children:"Define roles and assign permissions"})]})]}),l&&e.jsxs(d,{size:"sm",className:"shrink-0 gap-2",children:[e.jsx(h,{className:"h-4 w-4"}),"Add Role"]})]}),e.jsx(c,{children:e.jsx(o,{className:"p-0",children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsx("tr",{className:"border-b bg-muted/50",children:r.views[0].columns.map(t=>{const m=r.fields.find(n=>n.name===t);return e.jsx("th",{className:"h-10 px-3 sm:px-4 text-left font-medium text-muted-foreground whitespace-nowrap",children:m?.label??t},t)})})}),e.jsx("tbody",{children:e.jsx("tr",{children:e.jsx("td",{className:"p-4 sm:p-6 text-center text-sm text-muted-foreground",colSpan:r.views[0].columns.length,children:e.jsxs("div",{className:"flex flex-col items-center gap-2 py-4",children:[e.jsx(a,{className:"h-8 w-8 text-muted-foreground/50"}),e.jsx("p",{children:"Connect to ObjectStack server to load roles."}),e.jsx(x,{variant:"secondary",className:"text-xs",children:"plugin-grid powered"})]})})})})]})})})})]})}export{C as RoleManagementPage};
@@ -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};
@@ -1 +0,0 @@
1
- import{j as e}from"./vendor-react-Dy_xkBQQ.js";import{u as i}from"./infrastructure-Di0WqY4l.js";import{B as c,Y as d,Z as o,a1 as x}from"./ui-components-CseD2Dpn.js";import"./framework-mHWN965c.js";import"./vendor-ui-utils-h6yAcIi9.js";import{s as p}from"./systemObjects-DSpePIIy.js";import{bu as a,m as h}from"./vendor-icons-CQ8b-fGy.js";import"./vendor-i18n-D5KbMT7w.js";import"./vendor-radix-BbeYj_o4.js";import"./vendor-charts-CSvoW-yB.js";const r=p.find(s=>s.name==="sys_user");function k(){const{user:s}=i(),m=s?.role==="admin";return e.jsxs("div",{className:"flex flex-col gap-4 sm:gap-6 p-4 sm:p-6",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3",children:[e.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[e.jsx("div",{className:"bg-primary/10 p-2 rounded-md shrink-0",children:e.jsx(a,{className:"h-5 w-5 text-primary"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h1",{className:"text-xl sm:text-2xl font-bold tracking-tight",children:"User Management"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-0.5",children:"Manage system users and their roles"})]})]}),m&&e.jsxs(c,{size:"sm",className:"shrink-0 gap-2",children:[e.jsx(h,{className:"h-4 w-4"}),"Add User"]})]}),e.jsx(d,{children:e.jsx(o,{className:"p-0",children:e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsx("tr",{className:"border-b bg-muted/50",children:r.views[0].columns.map(t=>{const n=r.fields.find(l=>l.name===t);return e.jsx("th",{className:"h-10 px-3 sm:px-4 text-left font-medium text-muted-foreground whitespace-nowrap",children:n?.label??t},t)})})}),e.jsx("tbody",{children:e.jsx("tr",{children:e.jsx("td",{className:"p-4 sm:p-6 text-center text-sm text-muted-foreground",colSpan:r.views[0].columns.length,children:e.jsxs("div",{className:"flex flex-col items-center gap-2 py-4",children:[e.jsx(a,{className:"h-8 w-8 text-muted-foreground/50"}),e.jsx("p",{children:"Connect to ObjectStack server to load users."}),e.jsx(x,{variant:"secondary",className:"text-xs",children:"plugin-grid powered"})]})})})})]})})})})]})}export{k as UserManagementPage};