@multiplatform.one/backoffice 6.4.3 → 6.6.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 (1336) hide show
  1. package/README.md +59 -3
  2. package/dist/cjs/chrome/NotificationsButton.cjs +1 -1
  3. package/dist/cjs/chrome/NotificationsButton.native.js +1 -1
  4. package/dist/cjs/chrome/NotificationsButton.native.js.map +1 -1
  5. package/dist/cjs/config/BackofficeProvider.cjs +12 -1
  6. package/dist/cjs/config/BackofficeProvider.native.js +17 -1
  7. package/dist/cjs/config/BackofficeProvider.native.js.map +1 -1
  8. package/dist/cjs/form/DocFormScreen.cjs +743 -0
  9. package/dist/cjs/form/DocFormScreen.native.js +843 -0
  10. package/dist/cjs/form/DocFormScreen.native.js.map +1 -0
  11. package/dist/cjs/form/FormConnections.cjs +225 -0
  12. package/dist/cjs/form/FormConnections.native.js +246 -0
  13. package/dist/cjs/form/FormConnections.native.js.map +1 -0
  14. package/dist/cjs/form/FormDialogs.cjs +179 -0
  15. package/dist/cjs/form/FormDialogs.native.js +193 -0
  16. package/dist/cjs/form/FormDialogs.native.js.map +1 -0
  17. package/dist/cjs/form/FormErrorBoundary.cjs +122 -0
  18. package/dist/cjs/form/FormErrorBoundary.native.js +230 -0
  19. package/dist/cjs/form/FormErrorBoundary.native.js.map +1 -0
  20. package/dist/cjs/form/FormHeaderCluster.cjs +153 -0
  21. package/dist/cjs/form/FormHeaderCluster.native.js +177 -0
  22. package/dist/cjs/form/FormHeaderCluster.native.js.map +1 -0
  23. package/dist/cjs/form/FormSidebarPanel.cjs +430 -0
  24. package/dist/cjs/form/FormSidebarPanel.native.js +492 -0
  25. package/dist/cjs/form/FormSidebarPanel.native.js.map +1 -0
  26. package/dist/cjs/form/FormTimeline.cjs +517 -0
  27. package/dist/cjs/form/FormTimeline.native.js +575 -0
  28. package/dist/cjs/form/FormTimeline.native.js.map +1 -0
  29. package/dist/cjs/form/FormToolbar.cjs +308 -0
  30. package/dist/cjs/form/FormToolbar.native.js +331 -0
  31. package/dist/cjs/form/FormToolbar.native.js.map +1 -0
  32. package/dist/cjs/form/connections-data.cjs +152 -0
  33. package/dist/cjs/form/connections-data.native.js +253 -0
  34. package/dist/cjs/form/connections-data.native.js.map +1 -0
  35. package/dist/cjs/form/createPrefill.cjs +37 -0
  36. package/dist/cjs/form/createPrefill.native.js +40 -0
  37. package/dist/cjs/form/createPrefill.native.js.map +1 -0
  38. package/dist/cjs/form/dependsOn.cjs +29 -0
  39. package/dist/cjs/form/dependsOn.native.js +32 -0
  40. package/dist/cjs/form/dependsOn.native.js.map +1 -0
  41. package/dist/cjs/form/dirtyTracking.cjs +55 -0
  42. package/dist/cjs/form/dirtyTracking.native.js +77 -0
  43. package/dist/cjs/form/dirtyTracking.native.js.map +1 -0
  44. package/dist/cjs/form/docinfo.cjs +32 -0
  45. package/dist/cjs/form/docinfo.native.js +35 -0
  46. package/dist/cjs/form/docinfo.native.js.map +1 -0
  47. package/dist/cjs/form/fetchFrom.cjs +67 -0
  48. package/dist/cjs/form/fetchFrom.native.js +110 -0
  49. package/dist/cjs/form/fetchFrom.native.js.map +1 -0
  50. package/dist/cjs/form/fieldPermissions.cjs +55 -0
  51. package/dist/cjs/form/fieldPermissions.native.js +80 -0
  52. package/dist/cjs/form/fieldPermissions.native.js.map +1 -0
  53. package/dist/cjs/form/formActions.cjs +189 -0
  54. package/dist/cjs/form/formActions.native.js +199 -0
  55. package/dist/cjs/form/formActions.native.js.map +1 -0
  56. package/dist/cjs/form/formLayout.cjs +255 -0
  57. package/dist/cjs/form/formLayout.native.js +394 -0
  58. package/dist/cjs/form/formLayout.native.js.map +1 -0
  59. package/dist/cjs/form/platformHooks.cjs +88 -0
  60. package/dist/cjs/form/platformHooks.native.js +96 -0
  61. package/dist/cjs/form/platformHooks.native.js.map +1 -0
  62. package/dist/cjs/form/sidebar-attachments.cjs +124 -0
  63. package/dist/cjs/form/sidebar-attachments.native.js +147 -0
  64. package/dist/cjs/form/sidebar-attachments.native.js.map +1 -0
  65. package/dist/cjs/form/sidebar-dialogs.cjs +136 -0
  66. package/dist/cjs/form/sidebar-dialogs.native.js +151 -0
  67. package/dist/cjs/form/sidebar-dialogs.native.js.map +1 -0
  68. package/dist/cjs/form/sidebar-people.cjs +125 -0
  69. package/dist/cjs/form/sidebar-people.native.js +136 -0
  70. package/dist/cjs/form/sidebar-people.native.js.map +1 -0
  71. package/dist/cjs/form/sidebar-rpc.cjs +153 -0
  72. package/dist/cjs/form/sidebar-rpc.native.js +177 -0
  73. package/dist/cjs/form/sidebar-rpc.native.js.map +1 -0
  74. package/dist/cjs/form/sidebar-utils.cjs +118 -0
  75. package/dist/cjs/form/sidebar-utils.native.js +128 -0
  76. package/dist/cjs/form/sidebar-utils.native.js.map +1 -0
  77. package/dist/cjs/form/timeline-entries.cjs +239 -0
  78. package/dist/cjs/form/timeline-entries.native.js +452 -0
  79. package/dist/cjs/form/timeline-entries.native.js.map +1 -0
  80. package/dist/cjs/form/timeline-utils.cjs +151 -0
  81. package/dist/cjs/form/timeline-utils.native.js +178 -0
  82. package/dist/cjs/form/timeline-utils.native.js.map +1 -0
  83. package/dist/cjs/form/useFormEngine.cjs +387 -0
  84. package/dist/cjs/form/useFormEngine.native.js +476 -0
  85. package/dist/cjs/form/useFormEngine.native.js.map +1 -0
  86. package/dist/cjs/i18n/en.cjs +307 -0
  87. package/dist/cjs/i18n/en.native.js +307 -0
  88. package/dist/cjs/i18n/en.native.js.map +1 -1
  89. package/dist/cjs/index.cjs +280 -1
  90. package/dist/cjs/index.native.js +279 -0
  91. package/dist/cjs/index.native.js.map +1 -1
  92. package/dist/cjs/list/AddTagsDialog.cjs +117 -0
  93. package/dist/cjs/list/AddTagsDialog.native.js +146 -0
  94. package/dist/cjs/list/AddTagsDialog.native.js.map +1 -0
  95. package/dist/cjs/list/AssignToDialog.cjs +110 -0
  96. package/dist/cjs/list/AssignToDialog.native.js +137 -0
  97. package/dist/cjs/list/AssignToDialog.native.js.map +1 -0
  98. package/dist/cjs/list/DoctypeListScreen.cjs +840 -0
  99. package/dist/cjs/list/DoctypeListScreen.native.js +987 -0
  100. package/dist/cjs/list/DoctypeListScreen.native.js.map +1 -0
  101. package/dist/cjs/list/ListBulkActionsBar.cjs +325 -0
  102. package/dist/cjs/list/ListBulkActionsBar.native.js +373 -0
  103. package/dist/cjs/list/ListBulkActionsBar.native.js.map +1 -0
  104. package/dist/cjs/list/ListFilterBar.cjs +99 -0
  105. package/dist/cjs/list/ListFilterBar.native.js +103 -0
  106. package/dist/cjs/list/ListFilterBar.native.js.map +1 -0
  107. package/dist/cjs/list/ListSidebar.cjs +141 -0
  108. package/dist/cjs/list/ListSidebar.native.js +180 -0
  109. package/dist/cjs/list/ListSidebar.native.js.map +1 -0
  110. package/dist/cjs/list/bulk-edit-dialog.cjs +232 -0
  111. package/dist/cjs/list/bulk-edit-dialog.native.js +284 -0
  112. package/dist/cjs/list/bulk-edit-dialog.native.js.map +1 -0
  113. package/dist/cjs/list/bulk-export.cjs +87 -0
  114. package/dist/cjs/list/bulk-export.native.js +155 -0
  115. package/dist/cjs/list/bulk-export.native.js.map +1 -0
  116. package/dist/cjs/list/bulk-submit-cancel.cjs +40 -0
  117. package/dist/cjs/list/bulk-submit-cancel.native.js +56 -0
  118. package/dist/cjs/list/bulk-submit-cancel.native.js.map +1 -0
  119. package/dist/cjs/list/bulkActions.cjs +94 -0
  120. package/dist/cjs/list/bulkActions.native.js +129 -0
  121. package/dist/cjs/list/bulkActions.native.js.map +1 -0
  122. package/dist/cjs/list/filter-chips.cjs +59 -0
  123. package/dist/cjs/list/filter-chips.native.js +73 -0
  124. package/dist/cjs/list/filter-chips.native.js.map +1 -0
  125. package/dist/cjs/list/filter-editor.cjs +389 -0
  126. package/dist/cjs/list/filter-editor.native.js +493 -0
  127. package/dist/cjs/list/filter-editor.native.js.map +1 -0
  128. package/dist/cjs/list/filter-fields.cjs +271 -0
  129. package/dist/cjs/list/filter-fields.native.js +339 -0
  130. package/dist/cjs/list/filter-fields.native.js.map +1 -0
  131. package/dist/cjs/list/filter-saved.cjs +172 -0
  132. package/dist/cjs/list/filter-saved.native.js +199 -0
  133. package/dist/cjs/list/filter-saved.native.js.map +1 -0
  134. package/dist/cjs/list/filter-sort.cjs +173 -0
  135. package/dist/cjs/list/filter-sort.native.js +228 -0
  136. package/dist/cjs/list/filter-sort.native.js.map +1 -0
  137. package/dist/cjs/list/filter-standard.cjs +158 -0
  138. package/dist/cjs/list/filter-standard.native.js +175 -0
  139. package/dist/cjs/list/filter-standard.native.js.map +1 -0
  140. package/dist/cjs/list/filterConversion.cjs +163 -0
  141. package/dist/cjs/list/filterConversion.native.js +216 -0
  142. package/dist/cjs/list/filterConversion.native.js.map +1 -0
  143. package/dist/cjs/list/list-tools-sheet.cjs +148 -0
  144. package/dist/cjs/list/list-tools-sheet.native.js +169 -0
  145. package/dist/cjs/list/list-tools-sheet.native.js.map +1 -0
  146. package/dist/cjs/list/listColumns.cjs +257 -0
  147. package/dist/cjs/list/listColumns.native.js +307 -0
  148. package/dist/cjs/list/listColumns.native.js.map +1 -0
  149. package/dist/cjs/list/listFields.cjs +45 -0
  150. package/dist/cjs/list/listFields.native.js +72 -0
  151. package/dist/cjs/list/listFields.native.js.map +1 -0
  152. package/dist/cjs/list/listFormat.cjs +68 -0
  153. package/dist/cjs/list/listFormat.native.js +74 -0
  154. package/dist/cjs/list/listFormat.native.js.map +1 -0
  155. package/dist/cjs/list/listUrlState.cjs +70 -0
  156. package/dist/cjs/list/listUrlState.native.js +96 -0
  157. package/dist/cjs/list/listUrlState.native.js.map +1 -0
  158. package/dist/cjs/list/sidebar-section.cjs +142 -0
  159. package/dist/cjs/list/sidebar-section.native.js +150 -0
  160. package/dist/cjs/list/sidebar-section.native.js.map +1 -0
  161. package/dist/cjs/list/sidebar-stats.cjs +256 -0
  162. package/dist/cjs/list/sidebar-stats.native.js +469 -0
  163. package/dist/cjs/list/sidebar-stats.native.js.map +1 -0
  164. package/dist/cjs/list/statusColors.cjs +102 -0
  165. package/dist/cjs/list/statusColors.native.js +109 -0
  166. package/dist/cjs/list/statusColors.native.js.map +1 -0
  167. package/dist/cjs/navigation/navigator.cjs +66 -3
  168. package/dist/cjs/navigation/navigator.native.js +100 -4
  169. package/dist/cjs/navigation/navigator.native.js.map +1 -1
  170. package/dist/cjs/navigation/paths.cjs +8 -1
  171. package/dist/cjs/navigation/paths.native.js +9 -0
  172. package/dist/cjs/navigation/paths.native.js.map +1 -1
  173. package/dist/cjs/oneAdapter/index.cjs +24 -2
  174. package/dist/cjs/oneAdapter/index.native.js +28 -1
  175. package/dist/cjs/oneAdapter/index.native.js.map +1 -1
  176. package/dist/cjs/quickEntry/QuickEntryDialog.cjs +292 -0
  177. package/dist/cjs/quickEntry/QuickEntryDialog.native.js +365 -0
  178. package/dist/cjs/quickEntry/QuickEntryDialog.native.js.map +1 -0
  179. package/dist/cjs/quickEntry/quickEntryPlan.cjs +189 -0
  180. package/dist/cjs/quickEntry/quickEntryPlan.native.js +223 -0
  181. package/dist/cjs/quickEntry/quickEntryPlan.native.js.map +1 -0
  182. package/dist/cjs/report/DoctypeReportView.cjs +430 -0
  183. package/dist/cjs/report/DoctypeReportView.native.js +532 -0
  184. package/dist/cjs/report/DoctypeReportView.native.js.map +1 -0
  185. package/dist/cjs/report/QueryReportScreen.cjs +281 -0
  186. package/dist/cjs/report/QueryReportScreen.native.js +354 -0
  187. package/dist/cjs/report/QueryReportScreen.native.js.map +1 -0
  188. package/dist/cjs/report/queryReportColumns.cjs +122 -0
  189. package/dist/cjs/report/queryReportColumns.native.js +144 -0
  190. package/dist/cjs/report/queryReportColumns.native.js.map +1 -0
  191. package/dist/cjs/report/report-grid.cjs +347 -0
  192. package/dist/cjs/report/report-grid.native.js +389 -0
  193. package/dist/cjs/report/report-grid.native.js.map +1 -0
  194. package/dist/cjs/report/report-toolbar.cjs +264 -0
  195. package/dist/cjs/report/report-toolbar.native.js +309 -0
  196. package/dist/cjs/report/report-toolbar.native.js.map +1 -0
  197. package/dist/cjs/report/reportShapes.cjs +151 -0
  198. package/dist/cjs/report/reportShapes.native.js +208 -0
  199. package/dist/cjs/report/reportShapes.native.js.map +1 -0
  200. package/dist/cjs/report/reportViewModel.cjs +378 -0
  201. package/dist/cjs/report/reportViewModel.native.js +624 -0
  202. package/dist/cjs/report/reportViewModel.native.js.map +1 -0
  203. package/dist/cjs/report/savedReports.cjs +132 -0
  204. package/dist/cjs/report/savedReports.native.js +162 -0
  205. package/dist/cjs/report/savedReports.native.js.map +1 -0
  206. package/dist/cjs/report/useQueryReport.cjs +214 -0
  207. package/dist/cjs/report/useQueryReport.native.js +254 -0
  208. package/dist/cjs/report/useQueryReport.native.js.map +1 -0
  209. package/dist/cjs/shared/useSlugTarget.cjs +42 -4
  210. package/dist/cjs/shared/useSlugTarget.native.js +66 -6
  211. package/dist/cjs/shared/useSlugTarget.native.js.map +1 -1
  212. package/dist/cjs/shell/HomeRedirect.cjs +83 -0
  213. package/dist/cjs/shell/HomeRedirect.native.js +88 -0
  214. package/dist/cjs/shell/HomeRedirect.native.js.map +1 -0
  215. package/dist/cjs/shell/NotFoundScreen.cjs +48 -0
  216. package/dist/cjs/shell/NotFoundScreen.native.js +53 -0
  217. package/dist/cjs/shell/NotFoundScreen.native.js.map +1 -0
  218. package/dist/cjs/shell/SlugScreen.cjs +70 -0
  219. package/dist/cjs/shell/SlugScreen.native.js +74 -0
  220. package/dist/cjs/shell/SlugScreen.native.js.map +1 -0
  221. package/dist/cjs/views/CalendarView.cjs +135 -0
  222. package/dist/cjs/views/CalendarView.native.js +162 -0
  223. package/dist/cjs/views/CalendarView.native.js.map +1 -0
  224. package/dist/cjs/views/DashboardView.cjs +222 -0
  225. package/dist/cjs/views/DashboardView.native.js +235 -0
  226. package/dist/cjs/views/DashboardView.native.js.map +1 -0
  227. package/dist/cjs/views/DoctypeViewScreen.cjs +107 -0
  228. package/dist/cjs/views/DoctypeViewScreen.native.js +114 -0
  229. package/dist/cjs/views/DoctypeViewScreen.native.js.map +1 -0
  230. package/dist/cjs/views/ImageView.cjs +83 -0
  231. package/dist/cjs/views/ImageView.native.js +87 -0
  232. package/dist/cjs/views/ImageView.native.js.map +1 -0
  233. package/dist/cjs/views/KanbanView.cjs +346 -0
  234. package/dist/cjs/views/KanbanView.native.js +428 -0
  235. package/dist/cjs/views/KanbanView.native.js.map +1 -0
  236. package/dist/cjs/views/ReportView.cjs +280 -0
  237. package/dist/cjs/views/ReportView.native.js +407 -0
  238. package/dist/cjs/views/ReportView.native.js.map +1 -0
  239. package/dist/cjs/views/TreeView.cjs +79 -0
  240. package/dist/cjs/views/TreeView.native.js +85 -0
  241. package/dist/cjs/views/TreeView.native.js.map +1 -0
  242. package/dist/cjs/views/ViewHeader.cjs +139 -0
  243. package/dist/cjs/views/ViewHeader.native.js +147 -0
  244. package/dist/cjs/views/ViewHeader.native.js.map +1 -0
  245. package/dist/cjs/views/ViewStates.cjs +90 -0
  246. package/dist/cjs/views/ViewStates.native.js +98 -0
  247. package/dist/cjs/views/ViewStates.native.js.map +1 -0
  248. package/dist/cjs/views/calendar-field-selector.cjs +65 -0
  249. package/dist/cjs/views/calendar-field-selector.native.js +77 -0
  250. package/dist/cjs/views/calendar-field-selector.native.js.map +1 -0
  251. package/dist/cjs/views/connection.cjs +47 -0
  252. package/dist/cjs/views/connection.native.js +50 -0
  253. package/dist/cjs/views/connection.native.js.map +1 -0
  254. package/dist/cjs/views/dashboard-data.cjs +228 -0
  255. package/dist/cjs/views/dashboard-data.native.js +333 -0
  256. package/dist/cjs/views/dashboard-data.native.js.map +1 -0
  257. package/dist/cjs/views/deskViewConfigs.cjs +130 -0
  258. package/dist/cjs/views/deskViewConfigs.native.js +158 -0
  259. package/dist/cjs/views/deskViewConfigs.native.js.map +1 -0
  260. package/dist/cjs/views/kanban-board-controls.cjs +287 -0
  261. package/dist/cjs/views/kanban-board-controls.native.js +320 -0
  262. package/dist/cjs/views/kanban-board-controls.native.js.map +1 -0
  263. package/dist/cjs/views/kanban-field-picker.cjs +79 -0
  264. package/dist/cjs/views/kanban-field-picker.native.js +97 -0
  265. package/dist/cjs/views/kanban-field-picker.native.js.map +1 -0
  266. package/dist/cjs/views/kanbanBoardOps.cjs +107 -0
  267. package/dist/cjs/views/kanbanBoardOps.native.js +138 -0
  268. package/dist/cjs/views/kanbanBoardOps.native.js.map +1 -0
  269. package/dist/cjs/views/report-controls.cjs +329 -0
  270. package/dist/cjs/views/report-controls.native.js +381 -0
  271. package/dist/cjs/views/report-controls.native.js.map +1 -0
  272. package/dist/cjs/views/viewMeta.cjs +94 -0
  273. package/dist/cjs/views/viewMeta.native.js +136 -0
  274. package/dist/cjs/views/viewMeta.native.js.map +1 -0
  275. package/dist/cjs/workspace/WorkspaceGrid.cjs +1 -2
  276. package/dist/cjs/workspace/WorkspaceGrid.native.js +1 -2
  277. package/dist/cjs/workspace/WorkspaceGrid.native.js.map +1 -1
  278. package/dist/cjs/workspace/WorkspaceLinkCard.cjs +30 -23
  279. package/dist/cjs/workspace/WorkspaceLinkCard.native.js +37 -30
  280. package/dist/cjs/workspace/WorkspaceLinkCard.native.js.map +1 -1
  281. package/dist/cjs/workspace/WorkspaceShortcut.cjs +8 -1
  282. package/dist/cjs/workspace/WorkspaceShortcut.native.js +10 -3
  283. package/dist/cjs/workspace/WorkspaceShortcut.native.js.map +1 -1
  284. package/dist/esm/chrome/NotificationsButton.mjs +2 -2
  285. package/dist/esm/chrome/NotificationsButton.mjs.map +1 -1
  286. package/dist/esm/chrome/NotificationsButton.native.js +2 -2
  287. package/dist/esm/chrome/NotificationsButton.native.js.map +1 -1
  288. package/dist/esm/config/BackofficeProvider.mjs +12 -2
  289. package/dist/esm/config/BackofficeProvider.mjs.map +1 -1
  290. package/dist/esm/config/BackofficeProvider.native.js +17 -2
  291. package/dist/esm/config/BackofficeProvider.native.js.map +1 -1
  292. package/dist/esm/form/DocFormScreen.mjs +718 -0
  293. package/dist/esm/form/DocFormScreen.mjs.map +1 -0
  294. package/dist/esm/form/DocFormScreen.native.js +804 -0
  295. package/dist/esm/form/DocFormScreen.native.js.map +1 -0
  296. package/dist/esm/form/FormConnections.mjs +200 -0
  297. package/dist/esm/form/FormConnections.mjs.map +1 -0
  298. package/dist/esm/form/FormConnections.native.js +218 -0
  299. package/dist/esm/form/FormConnections.native.js.map +1 -0
  300. package/dist/esm/form/FormDialogs.mjs +152 -0
  301. package/dist/esm/form/FormDialogs.mjs.map +1 -0
  302. package/dist/esm/form/FormDialogs.native.js +163 -0
  303. package/dist/esm/form/FormDialogs.native.js.map +1 -0
  304. package/dist/esm/form/FormErrorBoundary.mjs +85 -0
  305. package/dist/esm/form/FormErrorBoundary.mjs.map +1 -0
  306. package/dist/esm/form/FormErrorBoundary.native.js +190 -0
  307. package/dist/esm/form/FormErrorBoundary.native.js.map +1 -0
  308. package/dist/esm/form/FormHeaderCluster.mjs +128 -0
  309. package/dist/esm/form/FormHeaderCluster.mjs.map +1 -0
  310. package/dist/esm/form/FormHeaderCluster.native.js +149 -0
  311. package/dist/esm/form/FormHeaderCluster.native.js.map +1 -0
  312. package/dist/esm/form/FormSidebarPanel.mjs +405 -0
  313. package/dist/esm/form/FormSidebarPanel.mjs.map +1 -0
  314. package/dist/esm/form/FormSidebarPanel.native.js +453 -0
  315. package/dist/esm/form/FormSidebarPanel.native.js.map +1 -0
  316. package/dist/esm/form/FormTimeline.mjs +492 -0
  317. package/dist/esm/form/FormTimeline.mjs.map +1 -0
  318. package/dist/esm/form/FormTimeline.native.js +547 -0
  319. package/dist/esm/form/FormTimeline.native.js.map +1 -0
  320. package/dist/esm/form/FormToolbar.mjs +281 -0
  321. package/dist/esm/form/FormToolbar.mjs.map +1 -0
  322. package/dist/esm/form/FormToolbar.native.js +301 -0
  323. package/dist/esm/form/FormToolbar.native.js.map +1 -0
  324. package/dist/esm/form/connections-data.mjs +123 -0
  325. package/dist/esm/form/connections-data.mjs.map +1 -0
  326. package/dist/esm/form/connections-data.native.js +221 -0
  327. package/dist/esm/form/connections-data.native.js.map +1 -0
  328. package/dist/esm/form/createPrefill.mjs +11 -0
  329. package/dist/esm/form/createPrefill.mjs.map +1 -0
  330. package/dist/esm/form/createPrefill.native.js +11 -0
  331. package/dist/esm/form/createPrefill.native.js.map +1 -0
  332. package/dist/esm/form/dependsOn.mjs +3 -0
  333. package/dist/esm/form/dependsOn.mjs.map +1 -0
  334. package/dist/esm/form/dependsOn.native.js +3 -0
  335. package/dist/esm/form/dependsOn.native.js.map +1 -0
  336. package/dist/esm/form/dirtyTracking.mjs +28 -0
  337. package/dist/esm/form/dirtyTracking.mjs.map +1 -0
  338. package/dist/esm/form/dirtyTracking.native.js +47 -0
  339. package/dist/esm/form/dirtyTracking.native.js.map +1 -0
  340. package/dist/esm/form/docinfo.mjs +7 -0
  341. package/dist/esm/form/docinfo.mjs.map +1 -0
  342. package/dist/esm/form/docinfo.native.js +7 -0
  343. package/dist/esm/form/docinfo.native.js.map +1 -0
  344. package/dist/esm/form/fetchFrom.mjs +40 -0
  345. package/dist/esm/form/fetchFrom.mjs.map +1 -0
  346. package/dist/esm/form/fetchFrom.native.js +80 -0
  347. package/dist/esm/form/fetchFrom.native.js.map +1 -0
  348. package/dist/esm/form/fieldPermissions.mjs +28 -0
  349. package/dist/esm/form/fieldPermissions.mjs.map +1 -0
  350. package/dist/esm/form/fieldPermissions.native.js +50 -0
  351. package/dist/esm/form/fieldPermissions.native.js.map +1 -0
  352. package/dist/esm/form/formActions.mjs +146 -0
  353. package/dist/esm/form/formActions.mjs.map +1 -0
  354. package/dist/esm/form/formActions.native.js +153 -0
  355. package/dist/esm/form/formActions.native.js.map +1 -0
  356. package/dist/esm/form/formLayout.mjs +227 -0
  357. package/dist/esm/form/formLayout.mjs.map +1 -0
  358. package/dist/esm/form/formLayout.native.js +363 -0
  359. package/dist/esm/form/formLayout.native.js.map +1 -0
  360. package/dist/esm/form/platformHooks.mjs +59 -0
  361. package/dist/esm/form/platformHooks.mjs.map +1 -0
  362. package/dist/esm/form/platformHooks.native.js +64 -0
  363. package/dist/esm/form/platformHooks.native.js.map +1 -0
  364. package/dist/esm/form/sidebar-attachments.mjs +99 -0
  365. package/dist/esm/form/sidebar-attachments.mjs.map +1 -0
  366. package/dist/esm/form/sidebar-attachments.native.js +108 -0
  367. package/dist/esm/form/sidebar-attachments.native.js.map +1 -0
  368. package/dist/esm/form/sidebar-dialogs.mjs +110 -0
  369. package/dist/esm/form/sidebar-dialogs.mjs.map +1 -0
  370. package/dist/esm/form/sidebar-dialogs.native.js +122 -0
  371. package/dist/esm/form/sidebar-dialogs.native.js.map +1 -0
  372. package/dist/esm/form/sidebar-people.mjs +99 -0
  373. package/dist/esm/form/sidebar-people.mjs.map +1 -0
  374. package/dist/esm/form/sidebar-people.native.js +107 -0
  375. package/dist/esm/form/sidebar-people.native.js.map +1 -0
  376. package/dist/esm/form/sidebar-rpc.mjs +116 -0
  377. package/dist/esm/form/sidebar-rpc.mjs.map +1 -0
  378. package/dist/esm/form/sidebar-rpc.native.js +126 -0
  379. package/dist/esm/form/sidebar-rpc.native.js.map +1 -0
  380. package/dist/esm/form/sidebar-utils.mjs +86 -0
  381. package/dist/esm/form/sidebar-utils.mjs.map +1 -0
  382. package/dist/esm/form/sidebar-utils.native.js +93 -0
  383. package/dist/esm/form/sidebar-utils.native.js.map +1 -0
  384. package/dist/esm/form/timeline-entries.mjs +211 -0
  385. package/dist/esm/form/timeline-entries.mjs.map +1 -0
  386. package/dist/esm/form/timeline-entries.native.js +421 -0
  387. package/dist/esm/form/timeline-entries.native.js.map +1 -0
  388. package/dist/esm/form/timeline-utils.mjs +118 -0
  389. package/dist/esm/form/timeline-utils.mjs.map +1 -0
  390. package/dist/esm/form/timeline-utils.native.js +142 -0
  391. package/dist/esm/form/timeline-utils.native.js.map +1 -0
  392. package/dist/esm/form/useFormEngine.mjs +362 -0
  393. package/dist/esm/form/useFormEngine.mjs.map +1 -0
  394. package/dist/esm/form/useFormEngine.native.js +448 -0
  395. package/dist/esm/form/useFormEngine.native.js.map +1 -0
  396. package/dist/esm/i18n/en.mjs +307 -0
  397. package/dist/esm/i18n/en.mjs.map +1 -1
  398. package/dist/esm/i18n/en.native.js +307 -0
  399. package/dist/esm/i18n/en.native.js.map +1 -1
  400. package/dist/esm/index.mjs +80 -3
  401. package/dist/esm/index.mjs.map +1 -1
  402. package/dist/esm/index.native.js +80 -3
  403. package/dist/esm/index.native.js.map +1 -1
  404. package/dist/esm/list/AddTagsDialog.mjs +92 -0
  405. package/dist/esm/list/AddTagsDialog.mjs.map +1 -0
  406. package/dist/esm/list/AddTagsDialog.native.js +107 -0
  407. package/dist/esm/list/AddTagsDialog.native.js.map +1 -0
  408. package/dist/esm/list/AssignToDialog.mjs +85 -0
  409. package/dist/esm/list/AssignToDialog.mjs.map +1 -0
  410. package/dist/esm/list/AssignToDialog.native.js +98 -0
  411. package/dist/esm/list/AssignToDialog.native.js.map +1 -0
  412. package/dist/esm/list/DoctypeListScreen.mjs +815 -0
  413. package/dist/esm/list/DoctypeListScreen.mjs.map +1 -0
  414. package/dist/esm/list/DoctypeListScreen.native.js +948 -0
  415. package/dist/esm/list/DoctypeListScreen.native.js.map +1 -0
  416. package/dist/esm/list/ListBulkActionsBar.mjs +300 -0
  417. package/dist/esm/list/ListBulkActionsBar.mjs.map +1 -0
  418. package/dist/esm/list/ListBulkActionsBar.native.js +334 -0
  419. package/dist/esm/list/ListBulkActionsBar.native.js.map +1 -0
  420. package/dist/esm/list/ListFilterBar.mjs +74 -0
  421. package/dist/esm/list/ListFilterBar.mjs.map +1 -0
  422. package/dist/esm/list/ListFilterBar.native.js +75 -0
  423. package/dist/esm/list/ListFilterBar.native.js.map +1 -0
  424. package/dist/esm/list/ListSidebar.mjs +116 -0
  425. package/dist/esm/list/ListSidebar.mjs.map +1 -0
  426. package/dist/esm/list/ListSidebar.native.js +152 -0
  427. package/dist/esm/list/ListSidebar.native.js.map +1 -0
  428. package/dist/esm/list/bulk-edit-dialog.mjs +204 -0
  429. package/dist/esm/list/bulk-edit-dialog.mjs.map +1 -0
  430. package/dist/esm/list/bulk-edit-dialog.native.js +242 -0
  431. package/dist/esm/list/bulk-edit-dialog.native.js.map +1 -0
  432. package/dist/esm/list/bulk-export.mjs +59 -0
  433. package/dist/esm/list/bulk-export.mjs.map +1 -0
  434. package/dist/esm/list/bulk-export.native.js +113 -0
  435. package/dist/esm/list/bulk-export.native.js.map +1 -0
  436. package/dist/esm/list/bulk-submit-cancel.mjs +15 -0
  437. package/dist/esm/list/bulk-submit-cancel.mjs.map +1 -0
  438. package/dist/esm/list/bulk-submit-cancel.native.js +17 -0
  439. package/dist/esm/list/bulk-submit-cancel.native.js.map +1 -0
  440. package/dist/esm/list/bulkActions.mjs +66 -0
  441. package/dist/esm/list/bulkActions.mjs.map +1 -0
  442. package/dist/esm/list/bulkActions.native.js +98 -0
  443. package/dist/esm/list/bulkActions.native.js.map +1 -0
  444. package/dist/esm/list/filter-chips.mjs +34 -0
  445. package/dist/esm/list/filter-chips.mjs.map +1 -0
  446. package/dist/esm/list/filter-chips.native.js +45 -0
  447. package/dist/esm/list/filter-chips.native.js.map +1 -0
  448. package/dist/esm/list/filter-editor.mjs +363 -0
  449. package/dist/esm/list/filter-editor.mjs.map +1 -0
  450. package/dist/esm/list/filter-editor.native.js +464 -0
  451. package/dist/esm/list/filter-editor.native.js.map +1 -0
  452. package/dist/esm/list/filter-fields.mjs +233 -0
  453. package/dist/esm/list/filter-fields.mjs.map +1 -0
  454. package/dist/esm/list/filter-fields.native.js +298 -0
  455. package/dist/esm/list/filter-fields.native.js.map +1 -0
  456. package/dist/esm/list/filter-saved.mjs +147 -0
  457. package/dist/esm/list/filter-saved.mjs.map +1 -0
  458. package/dist/esm/list/filter-saved.native.js +160 -0
  459. package/dist/esm/list/filter-saved.native.js.map +1 -0
  460. package/dist/esm/list/filter-sort.mjs +146 -0
  461. package/dist/esm/list/filter-sort.mjs.map +1 -0
  462. package/dist/esm/list/filter-sort.native.js +198 -0
  463. package/dist/esm/list/filter-sort.native.js.map +1 -0
  464. package/dist/esm/list/filter-standard.mjs +133 -0
  465. package/dist/esm/list/filter-standard.mjs.map +1 -0
  466. package/dist/esm/list/filter-standard.native.js +147 -0
  467. package/dist/esm/list/filter-standard.native.js.map +1 -0
  468. package/dist/esm/list/filterConversion.mjs +134 -0
  469. package/dist/esm/list/filterConversion.mjs.map +1 -0
  470. package/dist/esm/list/filterConversion.native.js +184 -0
  471. package/dist/esm/list/filterConversion.native.js.map +1 -0
  472. package/dist/esm/list/list-tools-sheet.mjs +123 -0
  473. package/dist/esm/list/list-tools-sheet.mjs.map +1 -0
  474. package/dist/esm/list/list-tools-sheet.native.js +141 -0
  475. package/dist/esm/list/list-tools-sheet.native.js.map +1 -0
  476. package/dist/esm/list/listColumns.mjs +232 -0
  477. package/dist/esm/list/listColumns.mjs.map +1 -0
  478. package/dist/esm/list/listColumns.native.js +279 -0
  479. package/dist/esm/list/listColumns.native.js.map +1 -0
  480. package/dist/esm/list/listFields.mjs +19 -0
  481. package/dist/esm/list/listFields.mjs.map +1 -0
  482. package/dist/esm/list/listFields.native.js +43 -0
  483. package/dist/esm/list/listFields.native.js.map +1 -0
  484. package/dist/esm/list/listFormat.mjs +38 -0
  485. package/dist/esm/list/listFormat.mjs.map +1 -0
  486. package/dist/esm/list/listFormat.native.js +41 -0
  487. package/dist/esm/list/listFormat.native.js.map +1 -0
  488. package/dist/esm/list/listUrlState.mjs +42 -0
  489. package/dist/esm/list/listUrlState.mjs.map +1 -0
  490. package/dist/esm/list/listUrlState.native.js +65 -0
  491. package/dist/esm/list/listUrlState.native.js.map +1 -0
  492. package/dist/esm/list/sidebar-section.mjs +115 -0
  493. package/dist/esm/list/sidebar-section.mjs.map +1 -0
  494. package/dist/esm/list/sidebar-section.native.js +120 -0
  495. package/dist/esm/list/sidebar-section.native.js.map +1 -0
  496. package/dist/esm/list/sidebar-stats.mjs +226 -0
  497. package/dist/esm/list/sidebar-stats.mjs.map +1 -0
  498. package/dist/esm/list/sidebar-stats.native.js +425 -0
  499. package/dist/esm/list/sidebar-stats.native.js.map +1 -0
  500. package/dist/esm/list/statusColors.mjs +77 -0
  501. package/dist/esm/list/statusColors.mjs.map +1 -0
  502. package/dist/esm/list/statusColors.native.js +81 -0
  503. package/dist/esm/list/statusColors.native.js.map +1 -0
  504. package/dist/esm/navigation/navigator.mjs +66 -3
  505. package/dist/esm/navigation/navigator.mjs.map +1 -1
  506. package/dist/esm/navigation/navigator.native.js +100 -4
  507. package/dist/esm/navigation/navigator.native.js.map +1 -1
  508. package/dist/esm/navigation/paths.mjs +7 -2
  509. package/dist/esm/navigation/paths.mjs.map +1 -1
  510. package/dist/esm/navigation/paths.native.js +8 -1
  511. package/dist/esm/navigation/paths.native.js.map +1 -1
  512. package/dist/esm/oneAdapter/index.mjs +25 -4
  513. package/dist/esm/oneAdapter/index.mjs.map +1 -1
  514. package/dist/esm/oneAdapter/index.native.js +29 -3
  515. package/dist/esm/oneAdapter/index.native.js.map +1 -1
  516. package/dist/esm/quickEntry/QuickEntryDialog.mjs +267 -0
  517. package/dist/esm/quickEntry/QuickEntryDialog.mjs.map +1 -0
  518. package/dist/esm/quickEntry/QuickEntryDialog.native.js +326 -0
  519. package/dist/esm/quickEntry/QuickEntryDialog.native.js.map +1 -0
  520. package/dist/esm/quickEntry/quickEntryPlan.mjs +158 -0
  521. package/dist/esm/quickEntry/quickEntryPlan.mjs.map +1 -0
  522. package/dist/esm/quickEntry/quickEntryPlan.native.js +189 -0
  523. package/dist/esm/quickEntry/quickEntryPlan.native.js.map +1 -0
  524. package/dist/esm/report/DoctypeReportView.mjs +405 -0
  525. package/dist/esm/report/DoctypeReportView.mjs.map +1 -0
  526. package/dist/esm/report/DoctypeReportView.native.js +493 -0
  527. package/dist/esm/report/DoctypeReportView.native.js.map +1 -0
  528. package/dist/esm/report/QueryReportScreen.mjs +256 -0
  529. package/dist/esm/report/QueryReportScreen.mjs.map +1 -0
  530. package/dist/esm/report/QueryReportScreen.native.js +315 -0
  531. package/dist/esm/report/QueryReportScreen.native.js.map +1 -0
  532. package/dist/esm/report/queryReportColumns.mjs +97 -0
  533. package/dist/esm/report/queryReportColumns.mjs.map +1 -0
  534. package/dist/esm/report/queryReportColumns.native.js +105 -0
  535. package/dist/esm/report/queryReportColumns.native.js.map +1 -0
  536. package/dist/esm/report/report-grid.mjs +322 -0
  537. package/dist/esm/report/report-grid.mjs.map +1 -0
  538. package/dist/esm/report/report-grid.native.js +350 -0
  539. package/dist/esm/report/report-grid.native.js.map +1 -0
  540. package/dist/esm/report/report-toolbar.mjs +239 -0
  541. package/dist/esm/report/report-toolbar.mjs.map +1 -0
  542. package/dist/esm/report/report-toolbar.native.js +270 -0
  543. package/dist/esm/report/report-toolbar.native.js.map +1 -0
  544. package/dist/esm/report/reportShapes.mjs +120 -0
  545. package/dist/esm/report/reportShapes.mjs.map +1 -0
  546. package/dist/esm/report/reportShapes.native.js +174 -0
  547. package/dist/esm/report/reportShapes.native.js.map +1 -0
  548. package/dist/esm/report/reportViewModel.mjs +335 -0
  549. package/dist/esm/report/reportViewModel.mjs.map +1 -0
  550. package/dist/esm/report/reportViewModel.native.js +578 -0
  551. package/dist/esm/report/reportViewModel.native.js.map +1 -0
  552. package/dist/esm/report/savedReports.mjs +107 -0
  553. package/dist/esm/report/savedReports.mjs.map +1 -0
  554. package/dist/esm/report/savedReports.native.js +134 -0
  555. package/dist/esm/report/savedReports.native.js.map +1 -0
  556. package/dist/esm/report/useQueryReport.mjs +185 -0
  557. package/dist/esm/report/useQueryReport.mjs.map +1 -0
  558. package/dist/esm/report/useQueryReport.native.js +222 -0
  559. package/dist/esm/report/useQueryReport.native.js.map +1 -0
  560. package/dist/esm/shared/useSlugTarget.mjs +42 -5
  561. package/dist/esm/shared/useSlugTarget.mjs.map +1 -1
  562. package/dist/esm/shared/useSlugTarget.native.js +66 -7
  563. package/dist/esm/shared/useSlugTarget.native.js.map +1 -1
  564. package/dist/esm/shell/HomeRedirect.mjs +58 -0
  565. package/dist/esm/shell/HomeRedirect.mjs.map +1 -0
  566. package/dist/esm/shell/HomeRedirect.native.js +60 -0
  567. package/dist/esm/shell/HomeRedirect.native.js.map +1 -0
  568. package/dist/esm/shell/NotFoundScreen.mjs +23 -0
  569. package/dist/esm/shell/NotFoundScreen.mjs.map +1 -0
  570. package/dist/esm/shell/NotFoundScreen.native.js +25 -0
  571. package/dist/esm/shell/NotFoundScreen.native.js.map +1 -0
  572. package/dist/esm/shell/SlugScreen.mjs +45 -0
  573. package/dist/esm/shell/SlugScreen.mjs.map +1 -0
  574. package/dist/esm/shell/SlugScreen.native.js +46 -0
  575. package/dist/esm/shell/SlugScreen.native.js.map +1 -0
  576. package/dist/esm/views/CalendarView.mjs +110 -0
  577. package/dist/esm/views/CalendarView.mjs.map +1 -0
  578. package/dist/esm/views/CalendarView.native.js +134 -0
  579. package/dist/esm/views/CalendarView.native.js.map +1 -0
  580. package/dist/esm/views/DashboardView.mjs +197 -0
  581. package/dist/esm/views/DashboardView.mjs.map +1 -0
  582. package/dist/esm/views/DashboardView.native.js +207 -0
  583. package/dist/esm/views/DashboardView.native.js.map +1 -0
  584. package/dist/esm/views/DoctypeViewScreen.mjs +82 -0
  585. package/dist/esm/views/DoctypeViewScreen.mjs.map +1 -0
  586. package/dist/esm/views/DoctypeViewScreen.native.js +86 -0
  587. package/dist/esm/views/DoctypeViewScreen.native.js.map +1 -0
  588. package/dist/esm/views/ImageView.mjs +58 -0
  589. package/dist/esm/views/ImageView.mjs.map +1 -0
  590. package/dist/esm/views/ImageView.native.js +59 -0
  591. package/dist/esm/views/ImageView.native.js.map +1 -0
  592. package/dist/esm/views/KanbanView.mjs +321 -0
  593. package/dist/esm/views/KanbanView.mjs.map +1 -0
  594. package/dist/esm/views/KanbanView.native.js +400 -0
  595. package/dist/esm/views/KanbanView.native.js.map +1 -0
  596. package/dist/esm/views/ReportView.mjs +254 -0
  597. package/dist/esm/views/ReportView.mjs.map +1 -0
  598. package/dist/esm/views/ReportView.native.js +378 -0
  599. package/dist/esm/views/ReportView.native.js.map +1 -0
  600. package/dist/esm/views/TreeView.mjs +54 -0
  601. package/dist/esm/views/TreeView.mjs.map +1 -0
  602. package/dist/esm/views/TreeView.native.js +57 -0
  603. package/dist/esm/views/TreeView.native.js.map +1 -0
  604. package/dist/esm/views/ViewHeader.mjs +112 -0
  605. package/dist/esm/views/ViewHeader.mjs.map +1 -0
  606. package/dist/esm/views/ViewHeader.native.js +117 -0
  607. package/dist/esm/views/ViewHeader.native.js.map +1 -0
  608. package/dist/esm/views/ViewStates.mjs +62 -0
  609. package/dist/esm/views/ViewStates.mjs.map +1 -0
  610. package/dist/esm/views/ViewStates.native.js +67 -0
  611. package/dist/esm/views/ViewStates.native.js.map +1 -0
  612. package/dist/esm/views/calendar-field-selector.mjs +39 -0
  613. package/dist/esm/views/calendar-field-selector.mjs.map +1 -0
  614. package/dist/esm/views/calendar-field-selector.native.js +48 -0
  615. package/dist/esm/views/calendar-field-selector.native.js.map +1 -0
  616. package/dist/esm/views/connection.mjs +22 -0
  617. package/dist/esm/views/connection.mjs.map +1 -0
  618. package/dist/esm/views/connection.native.js +22 -0
  619. package/dist/esm/views/connection.native.js.map +1 -0
  620. package/dist/esm/views/dashboard-data.mjs +196 -0
  621. package/dist/esm/views/dashboard-data.mjs.map +1 -0
  622. package/dist/esm/views/dashboard-data.native.js +287 -0
  623. package/dist/esm/views/dashboard-data.native.js.map +1 -0
  624. package/dist/esm/views/deskViewConfigs.mjs +103 -0
  625. package/dist/esm/views/deskViewConfigs.mjs.map +1 -0
  626. package/dist/esm/views/deskViewConfigs.native.js +128 -0
  627. package/dist/esm/views/deskViewConfigs.native.js.map +1 -0
  628. package/dist/esm/views/kanban-board-controls.mjs +259 -0
  629. package/dist/esm/views/kanban-board-controls.mjs.map +1 -0
  630. package/dist/esm/views/kanban-board-controls.native.js +289 -0
  631. package/dist/esm/views/kanban-board-controls.native.js.map +1 -0
  632. package/dist/esm/views/kanban-field-picker.mjs +52 -0
  633. package/dist/esm/views/kanban-field-picker.mjs.map +1 -0
  634. package/dist/esm/views/kanban-field-picker.native.js +67 -0
  635. package/dist/esm/views/kanban-field-picker.native.js.map +1 -0
  636. package/dist/esm/views/kanbanBoardOps.mjs +79 -0
  637. package/dist/esm/views/kanbanBoardOps.mjs.map +1 -0
  638. package/dist/esm/views/kanbanBoardOps.native.js +107 -0
  639. package/dist/esm/views/kanbanBoardOps.native.js.map +1 -0
  640. package/dist/esm/views/report-controls.mjs +301 -0
  641. package/dist/esm/views/report-controls.mjs.map +1 -0
  642. package/dist/esm/views/report-controls.native.js +350 -0
  643. package/dist/esm/views/report-controls.native.js.map +1 -0
  644. package/dist/esm/views/viewMeta.mjs +64 -0
  645. package/dist/esm/views/viewMeta.mjs.map +1 -0
  646. package/dist/esm/views/viewMeta.native.js +103 -0
  647. package/dist/esm/views/viewMeta.native.js.map +1 -0
  648. package/dist/esm/workspace/WorkspaceGrid.mjs +2 -3
  649. package/dist/esm/workspace/WorkspaceGrid.mjs.map +1 -1
  650. package/dist/esm/workspace/WorkspaceGrid.native.js +2 -3
  651. package/dist/esm/workspace/WorkspaceGrid.native.js.map +1 -1
  652. package/dist/esm/workspace/WorkspaceLinkCard.mjs +30 -23
  653. package/dist/esm/workspace/WorkspaceLinkCard.mjs.map +1 -1
  654. package/dist/esm/workspace/WorkspaceLinkCard.native.js +37 -30
  655. package/dist/esm/workspace/WorkspaceLinkCard.native.js.map +1 -1
  656. package/dist/esm/workspace/WorkspaceShortcut.mjs +9 -2
  657. package/dist/esm/workspace/WorkspaceShortcut.mjs.map +1 -1
  658. package/dist/esm/workspace/WorkspaceShortcut.native.js +11 -4
  659. package/dist/esm/workspace/WorkspaceShortcut.native.js.map +1 -1
  660. package/dist/jsx/chrome/NotificationsButton.mjs +2 -2
  661. package/dist/jsx/chrome/NotificationsButton.mjs.map +1 -1
  662. package/dist/jsx/chrome/NotificationsButton.native.js +1 -1
  663. package/dist/jsx/chrome/NotificationsButton.native.js.map +1 -1
  664. package/dist/jsx/config/BackofficeProvider.mjs +12 -2
  665. package/dist/jsx/config/BackofficeProvider.mjs.map +1 -1
  666. package/dist/jsx/config/BackofficeProvider.native.js +17 -1
  667. package/dist/jsx/config/BackofficeProvider.native.js.map +1 -1
  668. package/dist/jsx/form/DocFormScreen.mjs +718 -0
  669. package/dist/jsx/form/DocFormScreen.mjs.map +1 -0
  670. package/dist/jsx/form/DocFormScreen.native.js +843 -0
  671. package/dist/jsx/form/DocFormScreen.native.js.map +1 -0
  672. package/dist/jsx/form/FormConnections.mjs +200 -0
  673. package/dist/jsx/form/FormConnections.mjs.map +1 -0
  674. package/dist/jsx/form/FormConnections.native.js +246 -0
  675. package/dist/jsx/form/FormConnections.native.js.map +1 -0
  676. package/dist/jsx/form/FormDialogs.mjs +152 -0
  677. package/dist/jsx/form/FormDialogs.mjs.map +1 -0
  678. package/dist/jsx/form/FormDialogs.native.js +193 -0
  679. package/dist/jsx/form/FormDialogs.native.js.map +1 -0
  680. package/dist/jsx/form/FormErrorBoundary.mjs +85 -0
  681. package/dist/jsx/form/FormErrorBoundary.mjs.map +1 -0
  682. package/dist/jsx/form/FormErrorBoundary.native.js +230 -0
  683. package/dist/jsx/form/FormErrorBoundary.native.js.map +1 -0
  684. package/dist/jsx/form/FormHeaderCluster.mjs +128 -0
  685. package/dist/jsx/form/FormHeaderCluster.mjs.map +1 -0
  686. package/dist/jsx/form/FormHeaderCluster.native.js +177 -0
  687. package/dist/jsx/form/FormHeaderCluster.native.js.map +1 -0
  688. package/dist/jsx/form/FormSidebarPanel.mjs +405 -0
  689. package/dist/jsx/form/FormSidebarPanel.mjs.map +1 -0
  690. package/dist/jsx/form/FormSidebarPanel.native.js +492 -0
  691. package/dist/jsx/form/FormSidebarPanel.native.js.map +1 -0
  692. package/dist/jsx/form/FormTimeline.mjs +492 -0
  693. package/dist/jsx/form/FormTimeline.mjs.map +1 -0
  694. package/dist/jsx/form/FormTimeline.native.js +575 -0
  695. package/dist/jsx/form/FormTimeline.native.js.map +1 -0
  696. package/dist/jsx/form/FormToolbar.mjs +281 -0
  697. package/dist/jsx/form/FormToolbar.mjs.map +1 -0
  698. package/dist/jsx/form/FormToolbar.native.js +331 -0
  699. package/dist/jsx/form/FormToolbar.native.js.map +1 -0
  700. package/dist/jsx/form/connections-data.mjs +123 -0
  701. package/dist/jsx/form/connections-data.mjs.map +1 -0
  702. package/dist/jsx/form/connections-data.native.js +253 -0
  703. package/dist/jsx/form/connections-data.native.js.map +1 -0
  704. package/dist/jsx/form/createPrefill.mjs +11 -0
  705. package/dist/jsx/form/createPrefill.mjs.map +1 -0
  706. package/dist/jsx/form/createPrefill.native.js +40 -0
  707. package/dist/jsx/form/createPrefill.native.js.map +1 -0
  708. package/dist/jsx/form/dependsOn.mjs +3 -0
  709. package/dist/jsx/form/dependsOn.mjs.map +1 -0
  710. package/dist/jsx/form/dependsOn.native.js +32 -0
  711. package/dist/jsx/form/dependsOn.native.js.map +1 -0
  712. package/dist/jsx/form/dirtyTracking.mjs +28 -0
  713. package/dist/jsx/form/dirtyTracking.mjs.map +1 -0
  714. package/dist/jsx/form/dirtyTracking.native.js +77 -0
  715. package/dist/jsx/form/dirtyTracking.native.js.map +1 -0
  716. package/dist/jsx/form/docinfo.mjs +7 -0
  717. package/dist/jsx/form/docinfo.mjs.map +1 -0
  718. package/dist/jsx/form/docinfo.native.js +35 -0
  719. package/dist/jsx/form/docinfo.native.js.map +1 -0
  720. package/dist/jsx/form/fetchFrom.mjs +40 -0
  721. package/dist/jsx/form/fetchFrom.mjs.map +1 -0
  722. package/dist/jsx/form/fetchFrom.native.js +110 -0
  723. package/dist/jsx/form/fetchFrom.native.js.map +1 -0
  724. package/dist/jsx/form/fieldPermissions.mjs +28 -0
  725. package/dist/jsx/form/fieldPermissions.mjs.map +1 -0
  726. package/dist/jsx/form/fieldPermissions.native.js +80 -0
  727. package/dist/jsx/form/fieldPermissions.native.js.map +1 -0
  728. package/dist/jsx/form/formActions.mjs +146 -0
  729. package/dist/jsx/form/formActions.mjs.map +1 -0
  730. package/dist/jsx/form/formActions.native.js +199 -0
  731. package/dist/jsx/form/formActions.native.js.map +1 -0
  732. package/dist/jsx/form/formLayout.mjs +227 -0
  733. package/dist/jsx/form/formLayout.mjs.map +1 -0
  734. package/dist/jsx/form/formLayout.native.js +394 -0
  735. package/dist/jsx/form/formLayout.native.js.map +1 -0
  736. package/dist/jsx/form/platformHooks.mjs +59 -0
  737. package/dist/jsx/form/platformHooks.mjs.map +1 -0
  738. package/dist/jsx/form/platformHooks.native.js +96 -0
  739. package/dist/jsx/form/platformHooks.native.js.map +1 -0
  740. package/dist/jsx/form/sidebar-attachments.mjs +99 -0
  741. package/dist/jsx/form/sidebar-attachments.mjs.map +1 -0
  742. package/dist/jsx/form/sidebar-attachments.native.js +147 -0
  743. package/dist/jsx/form/sidebar-attachments.native.js.map +1 -0
  744. package/dist/jsx/form/sidebar-dialogs.mjs +110 -0
  745. package/dist/jsx/form/sidebar-dialogs.mjs.map +1 -0
  746. package/dist/jsx/form/sidebar-dialogs.native.js +151 -0
  747. package/dist/jsx/form/sidebar-dialogs.native.js.map +1 -0
  748. package/dist/jsx/form/sidebar-people.mjs +99 -0
  749. package/dist/jsx/form/sidebar-people.mjs.map +1 -0
  750. package/dist/jsx/form/sidebar-people.native.js +136 -0
  751. package/dist/jsx/form/sidebar-people.native.js.map +1 -0
  752. package/dist/jsx/form/sidebar-rpc.mjs +116 -0
  753. package/dist/jsx/form/sidebar-rpc.mjs.map +1 -0
  754. package/dist/jsx/form/sidebar-rpc.native.js +177 -0
  755. package/dist/jsx/form/sidebar-rpc.native.js.map +1 -0
  756. package/dist/jsx/form/sidebar-utils.mjs +86 -0
  757. package/dist/jsx/form/sidebar-utils.mjs.map +1 -0
  758. package/dist/jsx/form/sidebar-utils.native.js +128 -0
  759. package/dist/jsx/form/sidebar-utils.native.js.map +1 -0
  760. package/dist/jsx/form/timeline-entries.mjs +211 -0
  761. package/dist/jsx/form/timeline-entries.mjs.map +1 -0
  762. package/dist/jsx/form/timeline-entries.native.js +452 -0
  763. package/dist/jsx/form/timeline-entries.native.js.map +1 -0
  764. package/dist/jsx/form/timeline-utils.mjs +118 -0
  765. package/dist/jsx/form/timeline-utils.mjs.map +1 -0
  766. package/dist/jsx/form/timeline-utils.native.js +178 -0
  767. package/dist/jsx/form/timeline-utils.native.js.map +1 -0
  768. package/dist/jsx/form/useFormEngine.mjs +362 -0
  769. package/dist/jsx/form/useFormEngine.mjs.map +1 -0
  770. package/dist/jsx/form/useFormEngine.native.js +476 -0
  771. package/dist/jsx/form/useFormEngine.native.js.map +1 -0
  772. package/dist/jsx/i18n/en.mjs +307 -0
  773. package/dist/jsx/i18n/en.mjs.map +1 -1
  774. package/dist/jsx/i18n/en.native.js +307 -0
  775. package/dist/jsx/i18n/en.native.js.map +1 -1
  776. package/dist/jsx/index.js +80 -3
  777. package/dist/jsx/index.js.map +1 -1
  778. package/dist/jsx/index.mjs +80 -3
  779. package/dist/jsx/index.mjs.map +1 -1
  780. package/dist/jsx/index.native.js +279 -0
  781. package/dist/jsx/index.native.js.map +1 -1
  782. package/dist/jsx/list/AddTagsDialog.mjs +92 -0
  783. package/dist/jsx/list/AddTagsDialog.mjs.map +1 -0
  784. package/dist/jsx/list/AddTagsDialog.native.js +146 -0
  785. package/dist/jsx/list/AddTagsDialog.native.js.map +1 -0
  786. package/dist/jsx/list/AssignToDialog.mjs +85 -0
  787. package/dist/jsx/list/AssignToDialog.mjs.map +1 -0
  788. package/dist/jsx/list/AssignToDialog.native.js +137 -0
  789. package/dist/jsx/list/AssignToDialog.native.js.map +1 -0
  790. package/dist/jsx/list/DoctypeListScreen.mjs +815 -0
  791. package/dist/jsx/list/DoctypeListScreen.mjs.map +1 -0
  792. package/dist/jsx/list/DoctypeListScreen.native.js +987 -0
  793. package/dist/jsx/list/DoctypeListScreen.native.js.map +1 -0
  794. package/dist/jsx/list/ListBulkActionsBar.mjs +300 -0
  795. package/dist/jsx/list/ListBulkActionsBar.mjs.map +1 -0
  796. package/dist/jsx/list/ListBulkActionsBar.native.js +373 -0
  797. package/dist/jsx/list/ListBulkActionsBar.native.js.map +1 -0
  798. package/dist/jsx/list/ListFilterBar.mjs +74 -0
  799. package/dist/jsx/list/ListFilterBar.mjs.map +1 -0
  800. package/dist/jsx/list/ListFilterBar.native.js +103 -0
  801. package/dist/jsx/list/ListFilterBar.native.js.map +1 -0
  802. package/dist/jsx/list/ListSidebar.mjs +116 -0
  803. package/dist/jsx/list/ListSidebar.mjs.map +1 -0
  804. package/dist/jsx/list/ListSidebar.native.js +180 -0
  805. package/dist/jsx/list/ListSidebar.native.js.map +1 -0
  806. package/dist/jsx/list/bulk-edit-dialog.mjs +204 -0
  807. package/dist/jsx/list/bulk-edit-dialog.mjs.map +1 -0
  808. package/dist/jsx/list/bulk-edit-dialog.native.js +284 -0
  809. package/dist/jsx/list/bulk-edit-dialog.native.js.map +1 -0
  810. package/dist/jsx/list/bulk-export.mjs +59 -0
  811. package/dist/jsx/list/bulk-export.mjs.map +1 -0
  812. package/dist/jsx/list/bulk-export.native.js +155 -0
  813. package/dist/jsx/list/bulk-export.native.js.map +1 -0
  814. package/dist/jsx/list/bulk-submit-cancel.mjs +15 -0
  815. package/dist/jsx/list/bulk-submit-cancel.mjs.map +1 -0
  816. package/dist/jsx/list/bulk-submit-cancel.native.js +56 -0
  817. package/dist/jsx/list/bulk-submit-cancel.native.js.map +1 -0
  818. package/dist/jsx/list/bulkActions.mjs +66 -0
  819. package/dist/jsx/list/bulkActions.mjs.map +1 -0
  820. package/dist/jsx/list/bulkActions.native.js +129 -0
  821. package/dist/jsx/list/bulkActions.native.js.map +1 -0
  822. package/dist/jsx/list/filter-chips.mjs +34 -0
  823. package/dist/jsx/list/filter-chips.mjs.map +1 -0
  824. package/dist/jsx/list/filter-chips.native.js +73 -0
  825. package/dist/jsx/list/filter-chips.native.js.map +1 -0
  826. package/dist/jsx/list/filter-editor.mjs +363 -0
  827. package/dist/jsx/list/filter-editor.mjs.map +1 -0
  828. package/dist/jsx/list/filter-editor.native.js +493 -0
  829. package/dist/jsx/list/filter-editor.native.js.map +1 -0
  830. package/dist/jsx/list/filter-fields.mjs +233 -0
  831. package/dist/jsx/list/filter-fields.mjs.map +1 -0
  832. package/dist/jsx/list/filter-fields.native.js +339 -0
  833. package/dist/jsx/list/filter-fields.native.js.map +1 -0
  834. package/dist/jsx/list/filter-saved.mjs +147 -0
  835. package/dist/jsx/list/filter-saved.mjs.map +1 -0
  836. package/dist/jsx/list/filter-saved.native.js +199 -0
  837. package/dist/jsx/list/filter-saved.native.js.map +1 -0
  838. package/dist/jsx/list/filter-sort.mjs +146 -0
  839. package/dist/jsx/list/filter-sort.mjs.map +1 -0
  840. package/dist/jsx/list/filter-sort.native.js +228 -0
  841. package/dist/jsx/list/filter-sort.native.js.map +1 -0
  842. package/dist/jsx/list/filter-standard.mjs +133 -0
  843. package/dist/jsx/list/filter-standard.mjs.map +1 -0
  844. package/dist/jsx/list/filter-standard.native.js +175 -0
  845. package/dist/jsx/list/filter-standard.native.js.map +1 -0
  846. package/dist/jsx/list/filterConversion.mjs +134 -0
  847. package/dist/jsx/list/filterConversion.mjs.map +1 -0
  848. package/dist/jsx/list/filterConversion.native.js +216 -0
  849. package/dist/jsx/list/filterConversion.native.js.map +1 -0
  850. package/dist/jsx/list/list-tools-sheet.mjs +123 -0
  851. package/dist/jsx/list/list-tools-sheet.mjs.map +1 -0
  852. package/dist/jsx/list/list-tools-sheet.native.js +169 -0
  853. package/dist/jsx/list/list-tools-sheet.native.js.map +1 -0
  854. package/dist/jsx/list/listColumns.mjs +232 -0
  855. package/dist/jsx/list/listColumns.mjs.map +1 -0
  856. package/dist/jsx/list/listColumns.native.js +307 -0
  857. package/dist/jsx/list/listColumns.native.js.map +1 -0
  858. package/dist/jsx/list/listFields.mjs +19 -0
  859. package/dist/jsx/list/listFields.mjs.map +1 -0
  860. package/dist/jsx/list/listFields.native.js +72 -0
  861. package/dist/jsx/list/listFields.native.js.map +1 -0
  862. package/dist/jsx/list/listFormat.mjs +38 -0
  863. package/dist/jsx/list/listFormat.mjs.map +1 -0
  864. package/dist/jsx/list/listFormat.native.js +74 -0
  865. package/dist/jsx/list/listFormat.native.js.map +1 -0
  866. package/dist/jsx/list/listUrlState.mjs +42 -0
  867. package/dist/jsx/list/listUrlState.mjs.map +1 -0
  868. package/dist/jsx/list/listUrlState.native.js +96 -0
  869. package/dist/jsx/list/listUrlState.native.js.map +1 -0
  870. package/dist/jsx/list/sidebar-section.mjs +115 -0
  871. package/dist/jsx/list/sidebar-section.mjs.map +1 -0
  872. package/dist/jsx/list/sidebar-section.native.js +150 -0
  873. package/dist/jsx/list/sidebar-section.native.js.map +1 -0
  874. package/dist/jsx/list/sidebar-stats.mjs +226 -0
  875. package/dist/jsx/list/sidebar-stats.mjs.map +1 -0
  876. package/dist/jsx/list/sidebar-stats.native.js +469 -0
  877. package/dist/jsx/list/sidebar-stats.native.js.map +1 -0
  878. package/dist/jsx/list/statusColors.mjs +77 -0
  879. package/dist/jsx/list/statusColors.mjs.map +1 -0
  880. package/dist/jsx/list/statusColors.native.js +109 -0
  881. package/dist/jsx/list/statusColors.native.js.map +1 -0
  882. package/dist/jsx/navigation/navigator.mjs +66 -3
  883. package/dist/jsx/navigation/navigator.mjs.map +1 -1
  884. package/dist/jsx/navigation/navigator.native.js +100 -4
  885. package/dist/jsx/navigation/navigator.native.js.map +1 -1
  886. package/dist/jsx/navigation/paths.mjs +7 -2
  887. package/dist/jsx/navigation/paths.mjs.map +1 -1
  888. package/dist/jsx/navigation/paths.native.js +9 -0
  889. package/dist/jsx/navigation/paths.native.js.map +1 -1
  890. package/dist/jsx/oneAdapter/index.mjs +25 -4
  891. package/dist/jsx/oneAdapter/index.mjs.map +1 -1
  892. package/dist/jsx/oneAdapter/index.native.js +28 -1
  893. package/dist/jsx/oneAdapter/index.native.js.map +1 -1
  894. package/dist/jsx/quickEntry/QuickEntryDialog.mjs +267 -0
  895. package/dist/jsx/quickEntry/QuickEntryDialog.mjs.map +1 -0
  896. package/dist/jsx/quickEntry/QuickEntryDialog.native.js +365 -0
  897. package/dist/jsx/quickEntry/QuickEntryDialog.native.js.map +1 -0
  898. package/dist/jsx/quickEntry/quickEntryPlan.mjs +158 -0
  899. package/dist/jsx/quickEntry/quickEntryPlan.mjs.map +1 -0
  900. package/dist/jsx/quickEntry/quickEntryPlan.native.js +223 -0
  901. package/dist/jsx/quickEntry/quickEntryPlan.native.js.map +1 -0
  902. package/dist/jsx/report/DoctypeReportView.mjs +405 -0
  903. package/dist/jsx/report/DoctypeReportView.mjs.map +1 -0
  904. package/dist/jsx/report/DoctypeReportView.native.js +532 -0
  905. package/dist/jsx/report/DoctypeReportView.native.js.map +1 -0
  906. package/dist/jsx/report/QueryReportScreen.mjs +256 -0
  907. package/dist/jsx/report/QueryReportScreen.mjs.map +1 -0
  908. package/dist/jsx/report/QueryReportScreen.native.js +354 -0
  909. package/dist/jsx/report/QueryReportScreen.native.js.map +1 -0
  910. package/dist/jsx/report/queryReportColumns.mjs +97 -0
  911. package/dist/jsx/report/queryReportColumns.mjs.map +1 -0
  912. package/dist/jsx/report/queryReportColumns.native.js +144 -0
  913. package/dist/jsx/report/queryReportColumns.native.js.map +1 -0
  914. package/dist/jsx/report/report-grid.mjs +322 -0
  915. package/dist/jsx/report/report-grid.mjs.map +1 -0
  916. package/dist/jsx/report/report-grid.native.js +389 -0
  917. package/dist/jsx/report/report-grid.native.js.map +1 -0
  918. package/dist/jsx/report/report-toolbar.mjs +239 -0
  919. package/dist/jsx/report/report-toolbar.mjs.map +1 -0
  920. package/dist/jsx/report/report-toolbar.native.js +309 -0
  921. package/dist/jsx/report/report-toolbar.native.js.map +1 -0
  922. package/dist/jsx/report/reportShapes.mjs +120 -0
  923. package/dist/jsx/report/reportShapes.mjs.map +1 -0
  924. package/dist/jsx/report/reportShapes.native.js +208 -0
  925. package/dist/jsx/report/reportShapes.native.js.map +1 -0
  926. package/dist/jsx/report/reportViewModel.mjs +335 -0
  927. package/dist/jsx/report/reportViewModel.mjs.map +1 -0
  928. package/dist/jsx/report/reportViewModel.native.js +624 -0
  929. package/dist/jsx/report/reportViewModel.native.js.map +1 -0
  930. package/dist/jsx/report/savedReports.mjs +107 -0
  931. package/dist/jsx/report/savedReports.mjs.map +1 -0
  932. package/dist/jsx/report/savedReports.native.js +162 -0
  933. package/dist/jsx/report/savedReports.native.js.map +1 -0
  934. package/dist/jsx/report/useQueryReport.mjs +185 -0
  935. package/dist/jsx/report/useQueryReport.mjs.map +1 -0
  936. package/dist/jsx/report/useQueryReport.native.js +254 -0
  937. package/dist/jsx/report/useQueryReport.native.js.map +1 -0
  938. package/dist/jsx/shared/useSlugTarget.mjs +42 -5
  939. package/dist/jsx/shared/useSlugTarget.mjs.map +1 -1
  940. package/dist/jsx/shared/useSlugTarget.native.js +66 -6
  941. package/dist/jsx/shared/useSlugTarget.native.js.map +1 -1
  942. package/dist/jsx/shell/HomeRedirect.mjs +58 -0
  943. package/dist/jsx/shell/HomeRedirect.mjs.map +1 -0
  944. package/dist/jsx/shell/HomeRedirect.native.js +88 -0
  945. package/dist/jsx/shell/HomeRedirect.native.js.map +1 -0
  946. package/dist/jsx/shell/NotFoundScreen.mjs +23 -0
  947. package/dist/jsx/shell/NotFoundScreen.mjs.map +1 -0
  948. package/dist/jsx/shell/NotFoundScreen.native.js +53 -0
  949. package/dist/jsx/shell/NotFoundScreen.native.js.map +1 -0
  950. package/dist/jsx/shell/SlugScreen.mjs +45 -0
  951. package/dist/jsx/shell/SlugScreen.mjs.map +1 -0
  952. package/dist/jsx/shell/SlugScreen.native.js +74 -0
  953. package/dist/jsx/shell/SlugScreen.native.js.map +1 -0
  954. package/dist/jsx/views/CalendarView.mjs +110 -0
  955. package/dist/jsx/views/CalendarView.mjs.map +1 -0
  956. package/dist/jsx/views/CalendarView.native.js +162 -0
  957. package/dist/jsx/views/CalendarView.native.js.map +1 -0
  958. package/dist/jsx/views/DashboardView.mjs +197 -0
  959. package/dist/jsx/views/DashboardView.mjs.map +1 -0
  960. package/dist/jsx/views/DashboardView.native.js +235 -0
  961. package/dist/jsx/views/DashboardView.native.js.map +1 -0
  962. package/dist/jsx/views/DoctypeViewScreen.mjs +82 -0
  963. package/dist/jsx/views/DoctypeViewScreen.mjs.map +1 -0
  964. package/dist/jsx/views/DoctypeViewScreen.native.js +114 -0
  965. package/dist/jsx/views/DoctypeViewScreen.native.js.map +1 -0
  966. package/dist/jsx/views/ImageView.mjs +58 -0
  967. package/dist/jsx/views/ImageView.mjs.map +1 -0
  968. package/dist/jsx/views/ImageView.native.js +87 -0
  969. package/dist/jsx/views/ImageView.native.js.map +1 -0
  970. package/dist/jsx/views/KanbanView.mjs +321 -0
  971. package/dist/jsx/views/KanbanView.mjs.map +1 -0
  972. package/dist/jsx/views/KanbanView.native.js +428 -0
  973. package/dist/jsx/views/KanbanView.native.js.map +1 -0
  974. package/dist/jsx/views/ReportView.mjs +254 -0
  975. package/dist/jsx/views/ReportView.mjs.map +1 -0
  976. package/dist/jsx/views/ReportView.native.js +407 -0
  977. package/dist/jsx/views/ReportView.native.js.map +1 -0
  978. package/dist/jsx/views/TreeView.mjs +54 -0
  979. package/dist/jsx/views/TreeView.mjs.map +1 -0
  980. package/dist/jsx/views/TreeView.native.js +85 -0
  981. package/dist/jsx/views/TreeView.native.js.map +1 -0
  982. package/dist/jsx/views/ViewHeader.mjs +112 -0
  983. package/dist/jsx/views/ViewHeader.mjs.map +1 -0
  984. package/dist/jsx/views/ViewHeader.native.js +147 -0
  985. package/dist/jsx/views/ViewHeader.native.js.map +1 -0
  986. package/dist/jsx/views/ViewStates.mjs +62 -0
  987. package/dist/jsx/views/ViewStates.mjs.map +1 -0
  988. package/dist/jsx/views/ViewStates.native.js +98 -0
  989. package/dist/jsx/views/ViewStates.native.js.map +1 -0
  990. package/dist/jsx/views/calendar-field-selector.mjs +39 -0
  991. package/dist/jsx/views/calendar-field-selector.mjs.map +1 -0
  992. package/dist/jsx/views/calendar-field-selector.native.js +77 -0
  993. package/dist/jsx/views/calendar-field-selector.native.js.map +1 -0
  994. package/dist/jsx/views/connection.mjs +22 -0
  995. package/dist/jsx/views/connection.mjs.map +1 -0
  996. package/dist/jsx/views/connection.native.js +50 -0
  997. package/dist/jsx/views/connection.native.js.map +1 -0
  998. package/dist/jsx/views/dashboard-data.mjs +196 -0
  999. package/dist/jsx/views/dashboard-data.mjs.map +1 -0
  1000. package/dist/jsx/views/dashboard-data.native.js +333 -0
  1001. package/dist/jsx/views/dashboard-data.native.js.map +1 -0
  1002. package/dist/jsx/views/deskViewConfigs.mjs +103 -0
  1003. package/dist/jsx/views/deskViewConfigs.mjs.map +1 -0
  1004. package/dist/jsx/views/deskViewConfigs.native.js +158 -0
  1005. package/dist/jsx/views/deskViewConfigs.native.js.map +1 -0
  1006. package/dist/jsx/views/kanban-board-controls.mjs +259 -0
  1007. package/dist/jsx/views/kanban-board-controls.mjs.map +1 -0
  1008. package/dist/jsx/views/kanban-board-controls.native.js +320 -0
  1009. package/dist/jsx/views/kanban-board-controls.native.js.map +1 -0
  1010. package/dist/jsx/views/kanban-field-picker.mjs +52 -0
  1011. package/dist/jsx/views/kanban-field-picker.mjs.map +1 -0
  1012. package/dist/jsx/views/kanban-field-picker.native.js +97 -0
  1013. package/dist/jsx/views/kanban-field-picker.native.js.map +1 -0
  1014. package/dist/jsx/views/kanbanBoardOps.mjs +79 -0
  1015. package/dist/jsx/views/kanbanBoardOps.mjs.map +1 -0
  1016. package/dist/jsx/views/kanbanBoardOps.native.js +138 -0
  1017. package/dist/jsx/views/kanbanBoardOps.native.js.map +1 -0
  1018. package/dist/jsx/views/report-controls.mjs +301 -0
  1019. package/dist/jsx/views/report-controls.mjs.map +1 -0
  1020. package/dist/jsx/views/report-controls.native.js +381 -0
  1021. package/dist/jsx/views/report-controls.native.js.map +1 -0
  1022. package/dist/jsx/views/viewMeta.mjs +64 -0
  1023. package/dist/jsx/views/viewMeta.mjs.map +1 -0
  1024. package/dist/jsx/views/viewMeta.native.js +136 -0
  1025. package/dist/jsx/views/viewMeta.native.js.map +1 -0
  1026. package/dist/jsx/workspace/WorkspaceGrid.mjs +2 -3
  1027. package/dist/jsx/workspace/WorkspaceGrid.mjs.map +1 -1
  1028. package/dist/jsx/workspace/WorkspaceGrid.native.js +1 -2
  1029. package/dist/jsx/workspace/WorkspaceGrid.native.js.map +1 -1
  1030. package/dist/jsx/workspace/WorkspaceLinkCard.mjs +30 -23
  1031. package/dist/jsx/workspace/WorkspaceLinkCard.mjs.map +1 -1
  1032. package/dist/jsx/workspace/WorkspaceLinkCard.native.js +37 -30
  1033. package/dist/jsx/workspace/WorkspaceLinkCard.native.js.map +1 -1
  1034. package/dist/jsx/workspace/WorkspaceShortcut.mjs +9 -2
  1035. package/dist/jsx/workspace/WorkspaceShortcut.mjs.map +1 -1
  1036. package/dist/jsx/workspace/WorkspaceShortcut.native.js +10 -3
  1037. package/dist/jsx/workspace/WorkspaceShortcut.native.js.map +1 -1
  1038. package/package.json +12 -12
  1039. package/src/chrome/NotificationsButton.tsx +5 -2
  1040. package/src/config/BackofficeProvider.spec.tsx +21 -1
  1041. package/src/config/BackofficeProvider.tsx +50 -0
  1042. package/src/form/DocFormScreen.tsx +969 -0
  1043. package/src/form/FormConnections.tsx +234 -0
  1044. package/src/form/FormDialogs.tsx +172 -0
  1045. package/src/form/FormErrorBoundary.spec.tsx +186 -0
  1046. package/src/form/FormErrorBoundary.tsx +140 -0
  1047. package/src/form/FormHeaderCluster.tsx +202 -0
  1048. package/src/form/FormSidebarPanel.tsx +549 -0
  1049. package/src/form/FormTimeline.tsx +577 -0
  1050. package/src/form/FormToolbar.tsx +458 -0
  1051. package/src/form/connections-data.tsx +219 -0
  1052. package/src/form/createPrefill.ts +28 -0
  1053. package/src/form/dependsOn.extra.spec.ts +273 -0
  1054. package/src/form/dependsOn.spec.ts +75 -0
  1055. package/src/form/dependsOn.ts +22 -0
  1056. package/src/form/dirtyTracking.spec.ts +91 -0
  1057. package/src/form/dirtyTracking.ts +64 -0
  1058. package/src/form/docinfo.ts +24 -0
  1059. package/src/form/fetchFrom.spec.ts +92 -0
  1060. package/src/form/fetchFrom.ts +111 -0
  1061. package/src/form/fieldPermissions.spec.ts +61 -0
  1062. package/src/form/fieldPermissions.ts +68 -0
  1063. package/src/form/formActions.ts +281 -0
  1064. package/src/form/formLayout.spec.ts +373 -0
  1065. package/src/form/formLayout.ts +402 -0
  1066. package/src/form/platformHooks.ts +92 -0
  1067. package/src/form/sidebar-attachments.tsx +141 -0
  1068. package/src/form/sidebar-dialogs.tsx +118 -0
  1069. package/src/form/sidebar-people.tsx +126 -0
  1070. package/src/form/sidebar-rpc.tsx +245 -0
  1071. package/src/form/sidebar-utils.tsx +159 -0
  1072. package/src/form/timeline-entries.tsx +377 -0
  1073. package/src/form/timeline-utils.tsx +235 -0
  1074. package/src/form/useFormEngine.ts +496 -0
  1075. package/src/i18n/en.ts +310 -0
  1076. package/src/index.ts +365 -0
  1077. package/src/list/AddTagsDialog.tsx +98 -0
  1078. package/src/list/AssignToDialog.tsx +97 -0
  1079. package/src/list/DoctypeListScreen.tsx +1121 -0
  1080. package/src/list/ListBulkActionsBar.tsx +355 -0
  1081. package/src/list/ListFilterBar.tsx +94 -0
  1082. package/src/list/ListSidebar.tsx +200 -0
  1083. package/src/list/bulk-edit-dialog.tsx +297 -0
  1084. package/src/list/bulk-export.tsx +91 -0
  1085. package/src/list/bulk-submit-cancel.tsx +38 -0
  1086. package/src/list/bulkActions.ts +95 -0
  1087. package/src/list/filter-chips.tsx +43 -0
  1088. package/src/list/filter-editor.tsx +427 -0
  1089. package/src/list/filter-fields.tsx +339 -0
  1090. package/src/list/filter-saved.tsx +181 -0
  1091. package/src/list/filter-sort.tsx +226 -0
  1092. package/src/list/filter-standard.tsx +186 -0
  1093. package/src/list/filterConversion.spec.ts +361 -0
  1094. package/src/list/filterConversion.ts +100 -0
  1095. package/src/list/list-tools-sheet.tsx +152 -0
  1096. package/src/list/listColumns.tsx +297 -0
  1097. package/src/list/listFields.spec.ts +98 -0
  1098. package/src/list/listFields.ts +58 -0
  1099. package/src/list/listFormat.spec.ts +151 -0
  1100. package/src/list/listFormat.ts +80 -0
  1101. package/src/list/listUrlState.spec.ts +74 -0
  1102. package/src/list/listUrlState.ts +87 -0
  1103. package/src/list/sidebar-section.tsx +99 -0
  1104. package/src/list/sidebar-stats.tsx +402 -0
  1105. package/src/list/statusColors.spec.ts +100 -0
  1106. package/src/list/statusColors.ts +94 -0
  1107. package/src/navigation/navigator.spec.ts +130 -1
  1108. package/src/navigation/navigator.ts +93 -3
  1109. package/src/navigation/paths.spec.ts +156 -0
  1110. package/src/navigation/paths.ts +10 -0
  1111. package/src/oneAdapter/index.tsx +29 -2
  1112. package/src/quickEntry/QuickEntryDialog.tsx +345 -0
  1113. package/src/quickEntry/quickEntryPlan.spec.ts +367 -0
  1114. package/src/quickEntry/quickEntryPlan.ts +228 -0
  1115. package/src/report/DoctypeReportView.tsx +600 -0
  1116. package/src/report/QueryReportScreen.tsx +312 -0
  1117. package/src/report/queryReportColumns.tsx +106 -0
  1118. package/src/report/report-grid.tsx +366 -0
  1119. package/src/report/report-toolbar.tsx +313 -0
  1120. package/src/report/reportShapes.spec.ts +101 -0
  1121. package/src/report/reportShapes.ts +233 -0
  1122. package/src/report/reportViewModel.spec.ts +338 -0
  1123. package/src/report/reportViewModel.ts +583 -0
  1124. package/src/report/savedReports.ts +161 -0
  1125. package/src/report/useQueryReport.ts +302 -0
  1126. package/src/shared/useSlugTarget.ts +68 -3
  1127. package/src/shell/HomeRedirect.tsx +63 -0
  1128. package/src/shell/NotFoundScreen.tsx +32 -0
  1129. package/src/shell/SlugScreen.tsx +43 -0
  1130. package/src/shell/useWorkspaces.spec.tsx +150 -0
  1131. package/src/views/CalendarView.tsx +191 -0
  1132. package/src/views/DashboardView.tsx +205 -0
  1133. package/src/views/DoctypeViewScreen.tsx +84 -0
  1134. package/src/views/ImageView.tsx +60 -0
  1135. package/src/views/KanbanView.tsx +419 -0
  1136. package/src/views/ReportView.tsx +434 -0
  1137. package/src/views/TreeView.tsx +58 -0
  1138. package/src/views/ViewHeader.tsx +136 -0
  1139. package/src/views/ViewStates.tsx +65 -0
  1140. package/src/views/calendar-field-selector.tsx +56 -0
  1141. package/src/views/connection.ts +31 -0
  1142. package/src/views/dashboard-data.tsx +321 -0
  1143. package/src/views/deskViewConfigs.ts +190 -0
  1144. package/src/views/kanban-board-controls.tsx +357 -0
  1145. package/src/views/kanban-field-picker.tsx +92 -0
  1146. package/src/views/kanbanBoardOps.spec.ts +124 -0
  1147. package/src/views/kanbanBoardOps.ts +124 -0
  1148. package/src/views/report-controls.tsx +440 -0
  1149. package/src/views/viewMeta.ts +117 -0
  1150. package/src/workspace/WorkspaceGrid.tsx +3 -4
  1151. package/src/workspace/WorkspaceLinkCard.tsx +7 -2
  1152. package/src/workspace/WorkspaceShortcut.tsx +25 -2
  1153. package/types/chrome/NotificationsButton.d.ts.map +1 -1
  1154. package/types/config/BackofficeProvider.d.ts +32 -1
  1155. package/types/config/BackofficeProvider.d.ts.map +1 -1
  1156. package/types/form/DocFormScreen.d.ts +35 -0
  1157. package/types/form/DocFormScreen.d.ts.map +1 -0
  1158. package/types/form/FormConnections.d.ts +8 -0
  1159. package/types/form/FormConnections.d.ts.map +1 -0
  1160. package/types/form/FormDialogs.d.ts +32 -0
  1161. package/types/form/FormDialogs.d.ts.map +1 -0
  1162. package/types/form/FormErrorBoundary.d.ts +34 -0
  1163. package/types/form/FormErrorBoundary.d.ts.map +1 -0
  1164. package/types/form/FormHeaderCluster.d.ts +25 -0
  1165. package/types/form/FormHeaderCluster.d.ts.map +1 -0
  1166. package/types/form/FormSidebarPanel.d.ts +38 -0
  1167. package/types/form/FormSidebarPanel.d.ts.map +1 -0
  1168. package/types/form/FormTimeline.d.ts +21 -0
  1169. package/types/form/FormTimeline.d.ts.map +1 -0
  1170. package/types/form/FormToolbar.d.ts +86 -0
  1171. package/types/form/FormToolbar.d.ts.map +1 -0
  1172. package/types/form/connections-data.d.ts +69 -0
  1173. package/types/form/connections-data.d.ts.map +1 -0
  1174. package/types/form/createPrefill.d.ts +19 -0
  1175. package/types/form/createPrefill.d.ts.map +1 -0
  1176. package/types/form/dependsOn.d.ts +13 -0
  1177. package/types/form/dependsOn.d.ts.map +1 -0
  1178. package/types/form/dirtyTracking.d.ts +36 -0
  1179. package/types/form/dirtyTracking.d.ts.map +1 -0
  1180. package/types/form/docinfo.d.ts +18 -0
  1181. package/types/form/docinfo.d.ts.map +1 -0
  1182. package/types/form/fetchFrom.d.ts +43 -0
  1183. package/types/form/fetchFrom.d.ts.map +1 -0
  1184. package/types/form/fieldPermissions.d.ts +38 -0
  1185. package/types/form/fieldPermissions.d.ts.map +1 -0
  1186. package/types/form/formActions.d.ts +91 -0
  1187. package/types/form/formActions.d.ts.map +1 -0
  1188. package/types/form/formLayout.d.ts +91 -0
  1189. package/types/form/formLayout.d.ts.map +1 -0
  1190. package/types/form/platformHooks.d.ts +31 -0
  1191. package/types/form/platformHooks.d.ts.map +1 -0
  1192. package/types/form/sidebar-attachments.d.ts +20 -0
  1193. package/types/form/sidebar-attachments.d.ts.map +1 -0
  1194. package/types/form/sidebar-dialogs.d.ts +19 -0
  1195. package/types/form/sidebar-dialogs.d.ts.map +1 -0
  1196. package/types/form/sidebar-people.d.ts +42 -0
  1197. package/types/form/sidebar-people.d.ts.map +1 -0
  1198. package/types/form/sidebar-rpc.d.ts +42 -0
  1199. package/types/form/sidebar-rpc.d.ts.map +1 -0
  1200. package/types/form/sidebar-utils.d.ts +36 -0
  1201. package/types/form/sidebar-utils.d.ts.map +1 -0
  1202. package/types/form/timeline-entries.d.ts +93 -0
  1203. package/types/form/timeline-entries.d.ts.map +1 -0
  1204. package/types/form/timeline-utils.d.ts +42 -0
  1205. package/types/form/timeline-utils.d.ts.map +1 -0
  1206. package/types/form/useFormEngine.d.ts +61 -0
  1207. package/types/form/useFormEngine.d.ts.map +1 -0
  1208. package/types/i18n/en.d.ts +307 -0
  1209. package/types/i18n/en.d.ts.map +1 -1
  1210. package/types/index.d.ts +147 -2
  1211. package/types/index.d.ts.map +1 -1
  1212. package/types/list/AddTagsDialog.d.ts +11 -0
  1213. package/types/list/AddTagsDialog.d.ts.map +1 -0
  1214. package/types/list/AssignToDialog.d.ts +11 -0
  1215. package/types/list/AssignToDialog.d.ts.map +1 -0
  1216. package/types/list/DoctypeListScreen.d.ts +62 -0
  1217. package/types/list/DoctypeListScreen.d.ts.map +1 -0
  1218. package/types/list/ListBulkActionsBar.d.ts +12 -0
  1219. package/types/list/ListBulkActionsBar.d.ts.map +1 -0
  1220. package/types/list/ListFilterBar.d.ts +19 -0
  1221. package/types/list/ListFilterBar.d.ts.map +1 -0
  1222. package/types/list/ListSidebar.d.ts +17 -0
  1223. package/types/list/ListSidebar.d.ts.map +1 -0
  1224. package/types/list/bulk-edit-dialog.d.ts +30 -0
  1225. package/types/list/bulk-edit-dialog.d.ts.map +1 -0
  1226. package/types/list/bulk-export.d.ts +19 -0
  1227. package/types/list/bulk-export.d.ts.map +1 -0
  1228. package/types/list/bulk-submit-cancel.d.ts +11 -0
  1229. package/types/list/bulk-submit-cancel.d.ts.map +1 -0
  1230. package/types/list/bulkActions.d.ts +22 -0
  1231. package/types/list/bulkActions.d.ts.map +1 -0
  1232. package/types/list/filter-chips.d.ts +9 -0
  1233. package/types/list/filter-chips.d.ts.map +1 -0
  1234. package/types/list/filter-editor.d.ts +29 -0
  1235. package/types/list/filter-editor.d.ts.map +1 -0
  1236. package/types/list/filter-fields.d.ts +77 -0
  1237. package/types/list/filter-fields.d.ts.map +1 -0
  1238. package/types/list/filter-saved.d.ts +21 -0
  1239. package/types/list/filter-saved.d.ts.map +1 -0
  1240. package/types/list/filter-sort.d.ts +32 -0
  1241. package/types/list/filter-sort.d.ts.map +1 -0
  1242. package/types/list/filter-standard.d.ts +11 -0
  1243. package/types/list/filter-standard.d.ts.map +1 -0
  1244. package/types/list/filterConversion.d.ts +17 -0
  1245. package/types/list/filterConversion.d.ts.map +1 -0
  1246. package/types/list/list-tools-sheet.d.ts +13 -0
  1247. package/types/list/list-tools-sheet.d.ts.map +1 -0
  1248. package/types/list/listColumns.d.ts +34 -0
  1249. package/types/list/listColumns.d.ts.map +1 -0
  1250. package/types/list/listFields.d.ts +14 -0
  1251. package/types/list/listFields.d.ts.map +1 -0
  1252. package/types/list/listFormat.d.ts +30 -0
  1253. package/types/list/listFormat.d.ts.map +1 -0
  1254. package/types/list/listUrlState.d.ts +36 -0
  1255. package/types/list/listUrlState.d.ts.map +1 -0
  1256. package/types/list/sidebar-section.d.ts +21 -0
  1257. package/types/list/sidebar-section.d.ts.map +1 -0
  1258. package/types/list/sidebar-stats.d.ts +61 -0
  1259. package/types/list/sidebar-stats.d.ts.map +1 -0
  1260. package/types/list/statusColors.d.ts +14 -0
  1261. package/types/list/statusColors.d.ts.map +1 -0
  1262. package/types/navigation/navigator.d.ts +28 -0
  1263. package/types/navigation/navigator.d.ts.map +1 -1
  1264. package/types/navigation/paths.d.ts +5 -0
  1265. package/types/navigation/paths.d.ts.map +1 -1
  1266. package/types/oneAdapter/index.d.ts +9 -0
  1267. package/types/oneAdapter/index.d.ts.map +1 -1
  1268. package/types/quickEntry/QuickEntryDialog.d.ts +17 -0
  1269. package/types/quickEntry/QuickEntryDialog.d.ts.map +1 -0
  1270. package/types/quickEntry/quickEntryPlan.d.ts +63 -0
  1271. package/types/quickEntry/quickEntryPlan.d.ts.map +1 -0
  1272. package/types/report/DoctypeReportView.d.ts +15 -0
  1273. package/types/report/DoctypeReportView.d.ts.map +1 -0
  1274. package/types/report/QueryReportScreen.d.ts +15 -0
  1275. package/types/report/QueryReportScreen.d.ts.map +1 -0
  1276. package/types/report/queryReportColumns.d.ts +10 -0
  1277. package/types/report/queryReportColumns.d.ts.map +1 -0
  1278. package/types/report/report-grid.d.ts +20 -0
  1279. package/types/report/report-grid.d.ts.map +1 -0
  1280. package/types/report/report-toolbar.d.ts +30 -0
  1281. package/types/report/report-toolbar.d.ts.map +1 -0
  1282. package/types/report/reportShapes.d.ts +69 -0
  1283. package/types/report/reportShapes.d.ts.map +1 -0
  1284. package/types/report/reportViewModel.d.ts +132 -0
  1285. package/types/report/reportViewModel.d.ts.map +1 -0
  1286. package/types/report/savedReports.d.ts +19 -0
  1287. package/types/report/savedReports.d.ts.map +1 -0
  1288. package/types/report/useQueryReport.d.ts +31 -0
  1289. package/types/report/useQueryReport.d.ts.map +1 -0
  1290. package/types/shared/useSlugTarget.d.ts +9 -0
  1291. package/types/shared/useSlugTarget.d.ts.map +1 -1
  1292. package/types/shell/HomeRedirect.d.ts +2 -0
  1293. package/types/shell/HomeRedirect.d.ts.map +1 -0
  1294. package/types/shell/NotFoundScreen.d.ts +2 -0
  1295. package/types/shell/NotFoundScreen.d.ts.map +1 -0
  1296. package/types/shell/SlugScreen.d.ts +10 -0
  1297. package/types/shell/SlugScreen.d.ts.map +1 -0
  1298. package/types/views/CalendarView.d.ts +21 -0
  1299. package/types/views/CalendarView.d.ts.map +1 -0
  1300. package/types/views/DashboardView.d.ts +6 -0
  1301. package/types/views/DashboardView.d.ts.map +1 -0
  1302. package/types/views/DoctypeViewScreen.d.ts +8 -0
  1303. package/types/views/DoctypeViewScreen.d.ts.map +1 -0
  1304. package/types/views/ImageView.d.ts +6 -0
  1305. package/types/views/ImageView.d.ts.map +1 -0
  1306. package/types/views/KanbanView.d.ts +12 -0
  1307. package/types/views/KanbanView.d.ts.map +1 -0
  1308. package/types/views/ReportView.d.ts +23 -0
  1309. package/types/views/ReportView.d.ts.map +1 -0
  1310. package/types/views/TreeView.d.ts +6 -0
  1311. package/types/views/TreeView.d.ts.map +1 -0
  1312. package/types/views/ViewHeader.d.ts +19 -0
  1313. package/types/views/ViewHeader.d.ts.map +1 -0
  1314. package/types/views/ViewStates.d.ts +17 -0
  1315. package/types/views/ViewStates.d.ts.map +1 -0
  1316. package/types/views/calendar-field-selector.d.ts +15 -0
  1317. package/types/views/calendar-field-selector.d.ts.map +1 -0
  1318. package/types/views/connection.d.ts +14 -0
  1319. package/types/views/connection.d.ts.map +1 -0
  1320. package/types/views/dashboard-data.d.ts +49 -0
  1321. package/types/views/dashboard-data.d.ts.map +1 -0
  1322. package/types/views/deskViewConfigs.d.ts +51 -0
  1323. package/types/views/deskViewConfigs.d.ts.map +1 -0
  1324. package/types/views/kanban-board-controls.d.ts +60 -0
  1325. package/types/views/kanban-board-controls.d.ts.map +1 -0
  1326. package/types/views/kanban-field-picker.d.ts +33 -0
  1327. package/types/views/kanban-field-picker.d.ts.map +1 -0
  1328. package/types/views/kanbanBoardOps.d.ts +26 -0
  1329. package/types/views/kanbanBoardOps.d.ts.map +1 -0
  1330. package/types/views/report-controls.d.ts +45 -0
  1331. package/types/views/report-controls.d.ts.map +1 -0
  1332. package/types/views/viewMeta.d.ts +39 -0
  1333. package/types/views/viewMeta.d.ts.map +1 -0
  1334. package/types/workspace/WorkspaceGrid.d.ts.map +1 -1
  1335. package/types/workspace/WorkspaceLinkCard.d.ts.map +1 -1
  1336. package/types/workspace/WorkspaceShortcut.d.ts.map +1 -1
@@ -0,0 +1,434 @@
1
+ // Desk "report" view parity. FrappeReportBuilder stays the grid engine
2
+ // (meta-driven columns, live rows, group rendering with aggregation +
3
+ // chart, save/load, Export button); the desk chrome it lacks is composed
4
+ // around it from report-controls.tsx:
5
+ // - column add/remove picker across all meta fields (+ synthetic ID
6
+ // column). The generic ReportBuilder's own column/group-by toggle
7
+ // handlers are dead code and its enabled-column state is mount-only,
8
+ // so selection is driven through `initialColumns`/`initialGroupBy`
9
+ // plus a remount key.
10
+ // - `?f=` URL param (urlencoded JSON FrappeFilters) → base filters
11
+ // (chips + clear); FrappeReportBuilder accepts filter tuples directly.
12
+ // - page-size selector (20/100/500) + pagination: a parallel name-window
13
+ // query (name + sort + numeric fields) orders the full filtered result
14
+ // client-side, and the current page is handed to the grid as a
15
+ // `["name","in",names]` filter — the builder reacts to filter-prop
16
+ // changes without remounting. Small results (≤ page size) skip the
17
+ // window entirely and keep the pure live path.
18
+ // - totals strip over the full filtered result (ReportBuilder has no
19
+ // totals row) and an "Open" record jump in the footer.
20
+ // - grid rows click through to the form via onRowPress (threaded
21
+ // through FrappeReportBuilder → ReportBuilder).
22
+ // - CSV export via onExport: current page rows / enabled columns,
23
+ // web-guarded (Blob + anchor download); native shows an honest toast.
24
+ // Known gaps vs desk (component limitations, documented for integrator):
25
+ // - the component's own Save/Load applies loaded configs to its internal
26
+ // state only — this screen's pickers stay the source of truth
27
+ // - CSV exports the loaded page, not a server-side full export
28
+ import { isWeb, notify, YStack } from "@multiplatform.one/components";
29
+ import {
30
+ Order,
31
+ useFrappeCollection,
32
+ useLiveQuery,
33
+ type UseFrappeCollectionConfig,
34
+ } from "@multiplatform.one/frappe";
35
+ import {
36
+ FrappeReportBuilder,
37
+ type GroupByConfig,
38
+ type ReportColumn,
39
+ } from "@multiplatform.one/frappe-ui";
40
+ import { downloadBlob } from "@multiplatform.one/platform";
41
+ import { useResolvedKnobs } from "@multiplatform.one/theme";
42
+ import { useCallback, useEffect, useMemo, useState } from "react";
43
+ import { useTranslation } from "react-i18next";
44
+ import { useBackofficeNavigator, useBackofficePaths } from "../config/BackofficeProvider";
45
+ import { BACKOFFICE_I18N_NAMESPACE } from "../i18n";
46
+ import type { FrappeFilters } from "../shared/types";
47
+ import { useViewConnection } from "./connection";
48
+ import {
49
+ REPORT_NUMERIC_FIELDTYPES,
50
+ ReportFooter,
51
+ ReportToolbar,
52
+ type ReportRecordRef,
53
+ type ReportTotal,
54
+ } from "./report-controls";
55
+ import { useViewMeta } from "./viewMeta";
56
+ import { ViewError, ViewLoading } from "./ViewStates";
57
+
58
+ export interface ReportViewProps {
59
+ /** Proper-cased doctype name (e.g. "ToDo", "Sales Order") */
60
+ doctype: string;
61
+ /**
62
+ * Raw `?f=` search-param value (urlencoded JSON FrappeFilters), read by
63
+ * the route wrapper (DoctypeViewScreen) — the screen itself stays
64
+ * search-param free so it mounts outside a One navigation container
65
+ * (stories/tests).
66
+ */
67
+ filtersParam?: string;
68
+ /** Base filters when no `?f=` URL param is present (stories/tests). */
69
+ initialFilters?: FrappeFilters;
70
+ }
71
+
72
+ const LAYOUT_FIELDTYPES = new Set(["Section Break", "Column Break", "Tab Break"]);
73
+ const EMPTY_FILTERS: FrappeFilters = [];
74
+ const DEFAULT_PAGE_SIZE = 20;
75
+
76
+ type StatsRow = { name: string; doctype: string } & Record<string, unknown>;
77
+
78
+ /**
79
+ * Parse the `?f=` search param: urlencoded JSON FrappeFilters
80
+ * (e.g. `?f=%5B%5B%22status%22%2C%22%3D%22%2C%22Open%22%5D%5D`).
81
+ * The router usually decodes the param already, so the raw value is tried
82
+ * first. Malformed input degrades to "no filters" (honest default).
83
+ */
84
+ export function parseReportFiltersParam(raw: unknown): FrappeFilters | undefined {
85
+ if (typeof raw !== "string" || !raw) return undefined;
86
+ const candidates = [raw];
87
+ try {
88
+ const decoded = decodeURIComponent(raw);
89
+ if (decoded !== raw) candidates.push(decoded);
90
+ } catch {
91
+ // raw is not percent-encoded — the direct candidate covers it
92
+ }
93
+ for (const candidate of candidates) {
94
+ try {
95
+ const parsed: unknown = JSON.parse(candidate);
96
+ if (!Array.isArray(parsed)) continue;
97
+ const filters: FrappeFilters = [];
98
+ for (const tuple of parsed) {
99
+ if (
100
+ Array.isArray(tuple) &&
101
+ tuple.length === 3 &&
102
+ typeof tuple[0] === "string" &&
103
+ typeof tuple[1] === "string"
104
+ ) {
105
+ filters.push([tuple[0], tuple[1], tuple[2]]);
106
+ }
107
+ }
108
+ if (filters.length > 0) return filters;
109
+ } catch {
110
+ // not JSON — try the next candidate
111
+ }
112
+ }
113
+ return undefined;
114
+ }
115
+
116
+ function isNullish(value: unknown): value is null | undefined {
117
+ return value === null || value === undefined;
118
+ }
119
+
120
+ function compareValues(a: unknown, b: unknown): number {
121
+ if (isNullish(a) && isNullish(b)) return 0;
122
+ if (isNullish(a)) return 1;
123
+ if (isNullish(b)) return -1;
124
+ if (typeof a === "number" && typeof b === "number") return a - b;
125
+ const left = String(a);
126
+ const right = String(b);
127
+ return left < right ? -1 : left > right ? 1 : 0;
128
+ }
129
+
130
+ export function ReportView({ doctype, filtersParam, initialFilters }: ReportViewProps) {
131
+ const { t } = useTranslation(BACKOFFICE_I18N_NAMESPACE);
132
+ const navigator = useBackofficeNavigator();
133
+ const paths = useBackofficePaths();
134
+ const { knobProps } = useResolvedKnobs();
135
+ const connection = useViewConnection();
136
+ const { meta, isLoading: isMetaLoading, error: metaError } = useViewMeta(doctype);
137
+
138
+ // ---------------------------------------------------------------------
139
+ // Base filters: ?f= URL param wins, then the initialFilters prop.
140
+ // ---------------------------------------------------------------------
141
+ const urlFilters = useMemo(() => parseReportFiltersParam(filtersParam), [filtersParam]);
142
+ const [filtersCleared, setFiltersCleared] = useState(false);
143
+ useEffect(() => setFiltersCleared(false), [filtersParam, doctype]);
144
+ const baseFilters = filtersCleared
145
+ ? EMPTY_FILTERS
146
+ : (urlFilters ?? initialFilters ?? EMPTY_FILTERS);
147
+ const handleClearFilters = useCallback(() => {
148
+ setFiltersCleared(true);
149
+ // Drop the ?f= param from the URL so the cleared state survives reloads.
150
+ if (urlFilters) navigator.replace(paths.view(doctype, "report"));
151
+ }, [urlFilters, navigator, paths, doctype]);
152
+
153
+ // ---------------------------------------------------------------------
154
+ // Columns: all non-layout meta fields, plus a synthetic ID column.
155
+ // Initial selection = in_list_view fields (+ name), desk parity.
156
+ // ---------------------------------------------------------------------
157
+ const allColumns = useMemo<ReportColumn[]>(() => {
158
+ if (!meta) return [];
159
+ const idColumn: ReportColumn = {
160
+ fieldname: "name",
161
+ label: t("report.idColumn", "ID"),
162
+ fieldtype: "Data",
163
+ enabled: true,
164
+ };
165
+ return [
166
+ idColumn,
167
+ ...meta.fields
168
+ .filter((field) => field.fieldname && !LAYOUT_FIELDTYPES.has(field.fieldtype))
169
+ .map((field) => ({
170
+ fieldname: field.fieldname,
171
+ label: field.label || field.fieldname,
172
+ fieldtype: field.fieldtype as string,
173
+ enabled: Boolean(field.in_list_view),
174
+ })),
175
+ ];
176
+ }, [meta, t]);
177
+
178
+ const defaultSelected = useMemo(
179
+ () => allColumns.filter((column) => column.enabled).map((column) => column.fieldname),
180
+ [allColumns],
181
+ );
182
+ const [selectedOverride, setSelectedOverride] = useState<string[] | null>(null);
183
+ const selected = selectedOverride ?? defaultSelected;
184
+
185
+ const handleToggleColumn = useCallback(
186
+ (fieldname: string) => {
187
+ setSelectedOverride((previous) => {
188
+ const current = previous ?? defaultSelected;
189
+ if (current.includes(fieldname)) {
190
+ // Keep at least one column visible (the toolbar disables the last
191
+ // enabled row too — this guard covers races).
192
+ if (current.length === 1) return current;
193
+ return current.filter((entry) => entry !== fieldname);
194
+ }
195
+ return [...current, fieldname];
196
+ });
197
+ },
198
+ [defaultSelected],
199
+ );
200
+
201
+ const builderColumns = useMemo<ReportColumn[]>(
202
+ () => allColumns.map((column) => ({ ...column, enabled: selected.includes(column.fieldname) })),
203
+ [allColumns, selected],
204
+ );
205
+
206
+ // ---------------------------------------------------------------------
207
+ // Group-by + paging state. Reset per doctype; page resets on any change
208
+ // that alters result membership.
209
+ // ---------------------------------------------------------------------
210
+ const [groupBy, setGroupBy] = useState<GroupByConfig | null>(null);
211
+ const [pageSize, setPageSize] = useState<number>(DEFAULT_PAGE_SIZE);
212
+ const [page, setPage] = useState(0);
213
+
214
+ useEffect(() => {
215
+ setSelectedOverride(null);
216
+ setGroupBy(null);
217
+ setPage(0);
218
+ }, [doctype]);
219
+
220
+ const filtersKey = useMemo(() => JSON.stringify(baseFilters), [baseFilters]);
221
+ useEffect(() => {
222
+ setPage(0);
223
+ }, [filtersKey, pageSize]);
224
+
225
+ // ---------------------------------------------------------------------
226
+ // Parallel stats query: names (ordered by the doctype sort field) drive
227
+ // pagination windows; numeric fields drive the totals strip; the title
228
+ // field feeds the open-record jump. Kept independent of the column
229
+ // selection so toggles never resubscribe it.
230
+ // ---------------------------------------------------------------------
231
+ const numericColumns = useMemo(
232
+ () => allColumns.filter((column) => REPORT_NUMERIC_FIELDTYPES.has(column.fieldtype)),
233
+ [allColumns],
234
+ );
235
+ const titleField = meta?.title_field;
236
+ const sortField = (meta?.sort_field || "modified").split(" ")[0];
237
+ const sortAscending = (meta?.sort_order || "DESC").toLowerCase() === "asc";
238
+
239
+ const statsFields = useMemo(() => {
240
+ const fields = new Set<string>(["name", sortField]);
241
+ if (titleField) fields.add(titleField);
242
+ for (const column of numericColumns) fields.add(column.fieldname);
243
+ return [...fields];
244
+ }, [sortField, titleField, numericColumns]);
245
+
246
+ const [statsError, setStatsError] = useState<Error | null>(null);
247
+ const handleStatsError = useCallback((error: unknown) => {
248
+ setStatsError(error instanceof Error ? error : new Error(String(error)));
249
+ }, []);
250
+
251
+ // ViewConnection carries syncOptions as `unknown`; the shapes match the
252
+ // collection config (same FrappeProvider source) — assert once here.
253
+ const statsConfig = useMemo(
254
+ () => (connection && meta ? (connection as unknown as UseFrappeCollectionConfig) : undefined),
255
+ [connection, meta],
256
+ );
257
+ const statsCollection = useFrappeCollection<StatsRow>(statsConfig, doctype, {
258
+ fields: statsFields,
259
+ filters: baseFilters,
260
+ orderBy: { field: sortField, order: sortAscending ? Order.Asc : Order.Desc },
261
+ onSyncError: handleStatsError,
262
+ });
263
+ useEffect(() => setStatsError(null), [statsCollection]);
264
+ const { data: statsData, isLoading: statsLoading } = useLiveQuery(
265
+ (q) => (statsCollection ? q.from({ _stats: statsCollection }) : null),
266
+ [statsCollection],
267
+ );
268
+
269
+ // Live-query row order is not guaranteed — order deterministically by the
270
+ // doctype sort field (name tiebreak) so page windows are stable.
271
+ const statsRows = useMemo(() => {
272
+ const rows = [...((statsData as StatsRow[] | undefined) ?? [])];
273
+ const direction = sortAscending ? 1 : -1;
274
+ rows.sort((a, b) => {
275
+ const left = a[sortField];
276
+ const right = b[sortField];
277
+ const ordered =
278
+ isNullish(left) || isNullish(right)
279
+ ? compareValues(left, right)
280
+ : direction * compareValues(left, right);
281
+ return ordered || compareValues(a.name, b.name);
282
+ });
283
+ return rows;
284
+ }, [statsData, sortField, sortAscending]);
285
+
286
+ const statsReady = Boolean(statsError) || !statsLoading;
287
+ const total = statsRows.length;
288
+ const pageCount = Math.max(1, Math.ceil(total / pageSize));
289
+ const effectivePage = Math.min(page, pageCount - 1);
290
+ // Small results (or a failed stats query) skip the window: the grid keeps
291
+ // the pure live path and refreshes rows in place on realtime events.
292
+ const needsWindow = !statsError && total > pageSize;
293
+ const pageRows = useMemo(
294
+ () =>
295
+ needsWindow
296
+ ? statsRows.slice(effectivePage * pageSize, (effectivePage + 1) * pageSize)
297
+ : statsRows,
298
+ [needsWindow, statsRows, effectivePage, pageSize],
299
+ );
300
+
301
+ const builderFilters = useMemo<FrappeFilters>(() => {
302
+ if (!needsWindow) return baseFilters;
303
+ return [...baseFilters, ["name", "in", pageRows.map((row) => row.name)]];
304
+ }, [needsWindow, baseFilters, pageRows]);
305
+
306
+ // ---------------------------------------------------------------------
307
+ // Footer inputs: open-record jump + totals over the FULL filtered result
308
+ // (not just the page) — desk totals-row parity.
309
+ // ---------------------------------------------------------------------
310
+ const records = useMemo<ReportRecordRef[]>(
311
+ () =>
312
+ pageRows.map((row) => ({
313
+ name: row.name,
314
+ title:
315
+ titleField && !isNullish(row[titleField]) && row[titleField] !== ""
316
+ ? String(row[titleField])
317
+ : row.name,
318
+ })),
319
+ [pageRows, titleField],
320
+ );
321
+
322
+ const totals = useMemo<ReportTotal[]>(() => {
323
+ if (total === 0) return [];
324
+ return builderColumns
325
+ .filter((column) => column.enabled && REPORT_NUMERIC_FIELDTYPES.has(column.fieldtype))
326
+ .map((column) => ({
327
+ label: column.label,
328
+ fieldtype: column.fieldtype,
329
+ value: statsRows.reduce((sum, row) => sum + (Number(row[column.fieldname]) || 0), 0),
330
+ }));
331
+ }, [builderColumns, statsRows, total]);
332
+
333
+ const handleOpenRecord = useCallback(
334
+ (name: string) => {
335
+ navigator.navigate(paths.form(doctype, name));
336
+ },
337
+ [navigator, paths, doctype],
338
+ );
339
+
340
+ // ---------------------------------------------------------------------
341
+ // CSV export: enabled columns of the rows the grid currently holds.
342
+ // Web-only (Blob + anchor download); native gets an honest toast.
343
+ // ---------------------------------------------------------------------
344
+ const handleExport = useCallback(
345
+ (exportData: Record<string, unknown>[]) => {
346
+ if (!isWeb) {
347
+ notify({
348
+ severity: "warning",
349
+ scope: "page",
350
+ body: t(
351
+ "report.exportUnsupported",
352
+ "CSV export needs a browser download — not available on this platform yet",
353
+ ),
354
+ });
355
+ return;
356
+ }
357
+ const enabledColumns = builderColumns.filter((column) => column.enabled);
358
+ const escapeCell = (value: unknown): string => {
359
+ if (value === null || value === undefined) return "";
360
+ const text = String(value);
361
+ return /[",\n]/.test(text) ? `"${text.replace(/"/g, '""')}"` : text;
362
+ };
363
+ const lines = [
364
+ enabledColumns.map((column) => escapeCell(column.label)).join(","),
365
+ ...exportData.map((row) =>
366
+ enabledColumns.map((column) => escapeCell(row[column.fieldname])).join(","),
367
+ ),
368
+ ];
369
+ downloadBlob(
370
+ new Blob([lines.join("\n")], { type: "text/csv;charset=utf-8;" }),
371
+ `${doctype}_report.csv`,
372
+ );
373
+ },
374
+ [builderColumns, doctype, t],
375
+ );
376
+
377
+ // ---------------------------------------------------------------------
378
+ // Render
379
+ // ---------------------------------------------------------------------
380
+ if (isMetaLoading) return <ViewLoading />;
381
+ if (metaError && !meta) return <ViewError doctype={doctype} error={metaError} />;
382
+
383
+ // ReportBuilder initializes its enabled-column set (and FrappeReportBuilder
384
+ // its group-by state) at mount only — remount on selection/group changes.
385
+ const builderKey = `${doctype}::${[...selected].sort().join("|")}::${
386
+ groupBy ? `${groupBy.field}:${groupBy.aggregation}:${groupBy.aggregationField ?? ""}` : "none"
387
+ }`;
388
+
389
+ return (
390
+ <YStack flex={1} {...knobProps.gap}>
391
+ <ReportToolbar
392
+ columns={builderColumns}
393
+ onToggleColumn={handleToggleColumn}
394
+ groupBy={groupBy}
395
+ onGroupByChange={setGroupBy}
396
+ pageSize={pageSize}
397
+ onPageSizeChange={setPageSize}
398
+ filters={baseFilters}
399
+ onClearFilters={baseFilters.length > 0 ? handleClearFilters : undefined}
400
+ />
401
+ {statsReady ? (
402
+ <FrappeReportBuilder
403
+ key={builderKey}
404
+ doctype={doctype}
405
+ initialColumns={builderColumns}
406
+ initialGroupBy={groupBy ?? undefined}
407
+ filters={builderFilters}
408
+ showChart
409
+ onExport={handleExport}
410
+ onRowPress={(row) => {
411
+ if (typeof row.name === "string" && row.name) {
412
+ navigator.navigate(paths.form(doctype, row.name));
413
+ }
414
+ }}
415
+ flex={1}
416
+ />
417
+ ) : (
418
+ <ViewLoading />
419
+ )}
420
+ {!statsError && statsReady && (
421
+ <ReportFooter
422
+ page={effectivePage}
423
+ pageCount={pageCount}
424
+ pageSize={pageSize}
425
+ totalItems={total}
426
+ onPageChange={setPage}
427
+ records={records}
428
+ onOpenRecord={handleOpenRecord}
429
+ totals={totals}
430
+ />
431
+ )}
432
+ </YStack>
433
+ );
434
+ }
@@ -0,0 +1,58 @@
1
+ // Desk "tree" view parity: only meaningful when the doctype is a tree
2
+ // (nested set: lft/rgt + parent_<doctype> fields — surfaced by meta.is_tree).
3
+ // FrappeTreeView fetches the full list itself (realtime-backed) and builds
4
+ // the forest from the parent field; node click opens the form.
5
+ import { YStack } from "@multiplatform.one/components";
6
+ import { FrappeTreeView, type FrappeTreeViewProps } from "@multiplatform.one/frappe-ui";
7
+ import type { ReactElement } from "react";
8
+ import { useTranslation } from "react-i18next";
9
+ import { useBackofficeNavigator, useBackofficePaths } from "../config/BackofficeProvider";
10
+ import { BACKOFFICE_I18N_NAMESPACE } from "../i18n";
11
+ import { useViewMeta, type AnyDoc } from "./viewMeta";
12
+ import { ViewError, ViewLoading, ViewUnsupported } from "./ViewStates";
13
+
14
+ // The `one` compiler breaks explicit JSX generics — instantiate once.
15
+ const TreeOfDoc = FrappeTreeView as (props: FrappeTreeViewProps<AnyDoc>) => ReactElement;
16
+
17
+ export interface TreeViewProps {
18
+ /** Proper-cased doctype name (e.g. "ToDo", "Sales Order") */
19
+ doctype: string;
20
+ }
21
+
22
+ export function TreeView({ doctype }: TreeViewProps) {
23
+ const { t } = useTranslation(BACKOFFICE_I18N_NAMESPACE);
24
+ const navigator = useBackofficeNavigator();
25
+ const paths = useBackofficePaths();
26
+ const { meta, isLoading: isMetaLoading, error: metaError } = useViewMeta(doctype);
27
+
28
+ if (isMetaLoading) return <ViewLoading />;
29
+ if (metaError && !meta) return <ViewError doctype={doctype} error={metaError} />;
30
+
31
+ if (meta && !meta.is_tree) {
32
+ return (
33
+ <ViewUnsupported
34
+ doctype={doctype}
35
+ title={t("views.treeUnsupported", "Tree not available")}
36
+ description={t(
37
+ "views.treeUnsupportedDetail",
38
+ "{{doctype}} is not a tree doctype — try the list view instead.",
39
+ { doctype },
40
+ )}
41
+ />
42
+ );
43
+ }
44
+
45
+ return (
46
+ <YStack flex={1}>
47
+ <TreeOfDoc
48
+ doctype={doctype}
49
+ titleField={meta?.title_field}
50
+ onNodeClick={(doc) => {
51
+ if (doc.name) navigator.navigate(paths.form(doctype, doc.name));
52
+ }}
53
+ error={(err) => <ViewError doctype={doctype} error={err} />}
54
+ flex={1}
55
+ />
56
+ </YStack>
57
+ );
58
+ }
@@ -0,0 +1,136 @@
1
+ // Shared header for the alternate doctype views: title, a view-switcher
2
+ // menu covering every backoffice view (including back to list), and the
3
+ // New button (desk list-header parity). Desk parity: views the doctype
4
+ // cannot render are hidden from the switcher — tree needs meta.is_tree,
5
+ // image needs an image field — and the current view is check-marked.
6
+ import {
7
+ Button,
8
+ DropdownMenu,
9
+ H4,
10
+ Text,
11
+ XStack,
12
+ type DropdownMenuEntry,
13
+ } from "@multiplatform.one/components";
14
+ import { useResolvedKnobs } from "@multiplatform.one/theme";
15
+ import { CaretDownIcon, PlusIcon } from "@phosphor-icons/react";
16
+ import { useState } from "react";
17
+ import { useTranslation } from "react-i18next";
18
+ import {
19
+ useBackofficeCapabilities,
20
+ useBackofficeNavigator,
21
+ useBackofficePaths,
22
+ } from "../config/BackofficeProvider";
23
+ import { BACKOFFICE_I18N_NAMESPACE } from "../i18n";
24
+ import { BACKOFFICE_VIEWS, type BackofficeView } from "../navigation/paths";
25
+ import { detectImageField, useViewMeta } from "./viewMeta";
26
+
27
+ export function useViewLabels(): Record<BackofficeView, string> {
28
+ const { t } = useTranslation(BACKOFFICE_I18N_NAMESPACE);
29
+ return {
30
+ list: t("views.list", "List"),
31
+ report: t("views.report", "Report"),
32
+ kanban: t("views.kanban", "Kanban"),
33
+ calendar: t("views.calendar", "Calendar"),
34
+ tree: t("views.tree", "Tree"),
35
+ image: t("views.image", "Image"),
36
+ dashboard: t("views.dashboard", "Dashboard"),
37
+ };
38
+ }
39
+
40
+ /**
41
+ * Views this doctype can actually render (desk parity): tree only for tree
42
+ * doctypes, image only when an image field exists (meta.image_field or an
43
+ * Attach Image field). The provider's `capabilities.views.allow` gates the
44
+ * offer list too. Conditional views stay hidden until meta confirms them;
45
+ * `current` is always included so the switcher stays honest about where you
46
+ * are (e.g. a deep link to /view/tree on a flat doctype, which renders its
47
+ * own unsupported state).
48
+ */
49
+ export function useAvailableViews(doctype: string, current?: BackofficeView): BackofficeView[] {
50
+ const { meta } = useViewMeta(doctype);
51
+ const { views } = useBackofficeCapabilities();
52
+ return BACKOFFICE_VIEWS.filter((candidate) => {
53
+ if (candidate === current) return true;
54
+ if (!views.enabled || !views.allow.includes(candidate)) return false;
55
+ if (candidate === "tree") return !!meta?.is_tree;
56
+ if (candidate === "image") return !!meta && !!detectImageField(meta);
57
+ return true;
58
+ });
59
+ }
60
+
61
+ export interface ViewHeaderProps {
62
+ /** Proper-cased doctype name (e.g. "ToDo", "Sales Order") */
63
+ doctype: string;
64
+ view: BackofficeView;
65
+ }
66
+
67
+ export function ViewHeader({ doctype, view }: ViewHeaderProps) {
68
+ const navigator = useBackofficeNavigator();
69
+ const paths = useBackofficePaths();
70
+ const { newDoc } = useBackofficeCapabilities();
71
+ const { t } = useTranslation(BACKOFFICE_I18N_NAMESPACE);
72
+ const { knobProps } = useResolvedKnobs();
73
+ const labels = useViewLabels();
74
+ const availableViews = useAvailableViews(doctype, view);
75
+ // Controlled so a selection closes the menu (checkbox items keep the
76
+ // menu open by default — wrong for navigation).
77
+ const [switcherOpen, setSwitcherOpen] = useState(false);
78
+
79
+ // Every entry is a checkbox item (single-select radio semantics): the
80
+ // shared 18px check gutter keeps labels aligned and the current view
81
+ // carries the check mark.
82
+ const switcherItems: DropdownMenuEntry[] = availableViews.map((candidate) => ({
83
+ key: candidate,
84
+ label: labels[candidate],
85
+ checked: candidate === view,
86
+ onCheckedChange: () => {
87
+ setSwitcherOpen(false);
88
+ if (candidate !== view) navigator.navigate(paths.view(doctype, candidate));
89
+ },
90
+ }));
91
+
92
+ return (
93
+ <XStack
94
+ {...knobProps.panelPadding}
95
+ {...knobProps.gap}
96
+ alignItems="center"
97
+ justifyContent="space-between"
98
+ borderBottomWidth={1}
99
+ borderBottomColor="$borderColor"
100
+ flexWrap="wrap"
101
+ >
102
+ <XStack {...knobProps.gap} alignItems="center" flexShrink={1}>
103
+ <H4 numberOfLines={1}>{doctype}</H4>
104
+ <Text color="$color10" fontSize="$3">
105
+ {labels[view]}
106
+ </Text>
107
+ </XStack>
108
+ <XStack {...knobProps.gap} alignItems="center">
109
+ <DropdownMenu
110
+ items={switcherItems}
111
+ open={switcherOpen}
112
+ onOpenChange={setSwitcherOpen}
113
+ placement="bottom-end"
114
+ >
115
+ <Button
116
+ size="$3"
117
+ iconAfter={CaretDownIcon}
118
+ aria-label={t("views.switchView", "Switch view")}
119
+ >
120
+ {labels[view]}
121
+ </Button>
122
+ </DropdownMenu>
123
+ {newDoc.enabled && (
124
+ <Button
125
+ size="$3"
126
+ theme="accent"
127
+ icon={PlusIcon}
128
+ onPress={() => navigator.navigate(paths.newDoc(doctype))}
129
+ >
130
+ {t("views.new", "New")}
131
+ </Button>
132
+ )}
133
+ </XStack>
134
+ </XStack>
135
+ );
136
+ }
@@ -0,0 +1,65 @@
1
+ // Shared honest-state chrome for the alternate views: loading, error, and
2
+ // "this view is not supported for this doctype" — each with a way back to
3
+ // the list view (desk parity: unsupported views bounce you to list).
4
+ import { Button, EmptyState, Spinner, YStack } from "@multiplatform.one/components";
5
+ import { ListBulletsIcon } from "@phosphor-icons/react";
6
+ import { useTranslation } from "react-i18next";
7
+ import { useBackofficeNavigator, useBackofficePaths } from "../config/BackofficeProvider";
8
+ import { BACKOFFICE_I18N_NAMESPACE } from "../i18n";
9
+
10
+ export function ViewLoading() {
11
+ return (
12
+ <YStack flex={1} alignItems="center" justifyContent="center">
13
+ <Spinner size="large" />
14
+ </YStack>
15
+ );
16
+ }
17
+
18
+ export function BackToListButton({ doctype }: { doctype: string }) {
19
+ const navigator = useBackofficeNavigator();
20
+ const paths = useBackofficePaths();
21
+ const { t } = useTranslation(BACKOFFICE_I18N_NAMESPACE);
22
+ return (
23
+ <Button
24
+ size="$3"
25
+ icon={ListBulletsIcon}
26
+ onPress={() => navigator.navigate(paths.list(doctype))}
27
+ >
28
+ {t("views.backToList", "Back to list")}
29
+ </Button>
30
+ );
31
+ }
32
+
33
+ export interface ViewUnsupportedProps {
34
+ doctype: string;
35
+ title: string;
36
+ description?: string;
37
+ }
38
+
39
+ /** Graceful "view not supported for this doctype" empty state. */
40
+ export function ViewUnsupported({ doctype, title, description }: ViewUnsupportedProps) {
41
+ return (
42
+ <EmptyState
43
+ title={title}
44
+ description={description}
45
+ action={<BackToListButton doctype={doctype} />}
46
+ />
47
+ );
48
+ }
49
+
50
+ export interface ViewErrorProps {
51
+ doctype: string;
52
+ error: Error;
53
+ }
54
+
55
+ export function ViewError({ doctype, error }: ViewErrorProps) {
56
+ const { t } = useTranslation(BACKOFFICE_I18N_NAMESPACE);
57
+ return (
58
+ <EmptyState
59
+ intent="error"
60
+ title={t("views.loadFailed", "Couldn't load this view")}
61
+ description={error.message}
62
+ action={<BackToListButton doctype={doctype} />}
63
+ />
64
+ );
65
+ }