@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,1121 @@
1
+ // Contract: the primary list view for a doctype (desk list parity —
2
+ // filters, sort, pagination, bulk actions, tags, view switcher, New).
3
+ //
4
+ // Composition: FrappeTable (serverSide — Frappe REST pagination/sort/filter
5
+ // with realtime invalidation) fed by meta-derived columns, wrapped in desk
6
+ // chrome (header + live count, refresh, view switcher, New → QuickEntry,
7
+ // facet sidebar, sort selector). Fixture mode (Storybook / tests) degrades
8
+ // to the client-mode live collection and hides bench-only surfaces.
9
+ import React from "react";
10
+ import {
11
+ EmptyState,
12
+ H1,
13
+ PageHeader,
14
+ Paragraph,
15
+ ScrollView,
16
+ Spinner,
17
+ ViewSwitcher,
18
+ XStack,
19
+ YStack,
20
+ isWeb,
21
+ notify,
22
+ } from "@multiplatform.one/components";
23
+ import { useLayoutSizeClass } from "@multiplatform.one/theme";
24
+ // Catalog action Button — `accent` renders the active accent intent, the
25
+ // house expression of the one page primary (LC-05 ONE-EMPHASIS; quick entry
26
+ // "Create" precedent). The components Button above stays for neutral chrome.
27
+ import { Button as ActionButton } from "@multiplatform.one/forms";
28
+ import { ArrowsClockwiseIcon, PlusIcon, SidebarSimpleIcon } from "@phosphor-icons/react";
29
+ import {
30
+ FrappeTable,
31
+ docFieldsToFilterFields,
32
+ useFrappeAggregate,
33
+ useFrappeConfig,
34
+ } from "@multiplatform.one/frappe-ui";
35
+ import type { DocTypeField } from "@multiplatform.one/frappe";
36
+ import { DataTablePagination } from "@multiplatform.one/table";
37
+ import type {
38
+ BulkAction,
39
+ DataTableColumn,
40
+ DataTableState,
41
+ FilterableField,
42
+ TableFilter,
43
+ } from "@multiplatform.one/table";
44
+ import { useCallback, useEffect, useMemo, useRef, useState } from "react";
45
+ import { useTranslation } from "react-i18next";
46
+ import {
47
+ actionsForDoctype,
48
+ useBackofficeCapabilities,
49
+ useBackofficeConfig,
50
+ useBackofficeNavigator,
51
+ useBackofficePaths,
52
+ useBackofficeSlots,
53
+ type BackofficeAction,
54
+ } from "../config/BackofficeProvider";
55
+ import { BACKOFFICE_I18N_NAMESPACE } from "../i18n";
56
+ import { BACKOFFICE_VIEWS, type BackofficeView } from "../navigation/paths";
57
+ import { QuickEntryDialog } from "../quickEntry/QuickEntryDialog";
58
+ import { useRecentVisit } from "../shared/useRecentVisit";
59
+ // Permlevel role matrix (desk perm.js parity) — shared with the form surface
60
+ // via the UI-free fieldPermissions module; drives list column pruning.
61
+ import { buildPermLevelMatrix } from "../form/fieldPermissions";
62
+ import type { FrappeFilters } from "../shared/types";
63
+ import { type DoctypeMeta, useDoctypeMeta } from "../shared/useDoctypeMeta";
64
+ import { useFrappeApp } from "../shared/useFrappeApp";
65
+ import { useUserRoles } from "../shared/useUserRoles";
66
+ import { AddTagsDialog } from "./AddTagsDialog";
67
+ import { AssignToDialog } from "./AssignToDialog";
68
+ import { bulkDelete, toggleLike } from "./bulkActions";
69
+ import { BulkEditDialog } from "./bulk-edit-dialog";
70
+ import { bulkExportCsv } from "./bulk-export";
71
+ import { bulkSubmitCancel, type BulkDocstatusAction } from "./bulk-submit-cancel";
72
+ import { FilterChips } from "./filter-chips";
73
+ import {
74
+ frappeFiltersToTableFilters,
75
+ sameFilterTuple,
76
+ tableStateToFrappeFilters,
77
+ } from "./filterConversion";
78
+ import { ListFilterBar } from "./ListFilterBar";
79
+ import { ListSidebar } from "./ListSidebar";
80
+ import { type ListDoc, type ListRow, buildListColumns } from "./listColumns";
81
+ import { listFieldsToFetch } from "./listFields";
82
+ import {
83
+ parseFiltersParam,
84
+ parseSortParam,
85
+ serializeFiltersParam,
86
+ serializeSortParam,
87
+ type ListSortState,
88
+ } from "./listUrlState";
89
+ import { useSessionUserId as useSessionUser } from "../shared/useSessionUserId";
90
+
91
+ export interface DoctypeListScreenProps {
92
+ /** Proper-cased doctype name (e.g. "ToDo", "Sales Order") */
93
+ doctype: string;
94
+ /**
95
+ * Raw `?f=` deep-link query value (urlencoded JSON FrappeFilters) —
96
+ * connections panels / dashboards link into filtered lists with it. Read
97
+ * by the route wrapper (SlugScreen); the screen itself stays search-param
98
+ * free so it mounts outside a One navigation container (stories/tests).
99
+ * Bidirectional: the screen writes filter changes back through
100
+ * `navigator.setParams` (listUrlState.ts documents the schema).
101
+ */
102
+ filtersParam?: string;
103
+ /**
104
+ * Raw `?sort=` query value (`<fieldname>.<asc|desc>`, see listUrlState.ts)
105
+ * — same route-wrapper contract and write-back channel as `filtersParam`.
106
+ */
107
+ sortParam?: string;
108
+ /**
109
+ * Meta override for fixture-backed stories/tests (fixtures expose no
110
+ * `getdoctype` RPC). Live surfaces leave this unset.
111
+ */
112
+ metaOverride?: DoctypeMeta;
113
+ /**
114
+ * View-switcher allowlist — intersected with the provider's
115
+ * `capabilities.views.allow`. Unset offers every capability-allowed view.
116
+ */
117
+ views?: readonly BackofficeView[];
118
+ /**
119
+ * Filters seeded into the user-editable filter channel on mount (chips /
120
+ * editor can change or remove them). `filtersParam` wins when both are set.
121
+ */
122
+ initialFilters?: FrappeFilters;
123
+ /**
124
+ * Filters ALWAYS ANDed into the query, invisible to the filter chrome and
125
+ * not removable by the user — scope a list to a subset (e.g. one owner).
126
+ */
127
+ fixedFilters?: FrappeFilters;
128
+ /** Transform the meta-derived columns before render (reorder/hide/extend). */
129
+ columnOverrides?: (columns: DataTableColumn<ListRow>[]) => DataTableColumn<ListRow>[];
130
+ /** Initial page size (user page-size picks still win afterwards). */
131
+ pageSize?: number;
132
+ /**
133
+ * Row-open override. Default: navigate to the document form and emit a
134
+ * `doc-opened` event on the provider bus.
135
+ */
136
+ onRowOpen?: (doctype: string, name: string) => void;
137
+ /**
138
+ * Hide the "New" affordances (header button + create-first empty state).
139
+ * The `newDoc` capability gates them too.
140
+ */
141
+ hideNewButton?: boolean;
142
+ /** Extra toolbar actions on selection (merged with provider `actions.list`). */
143
+ toolbarActions?: readonly BackofficeAction[];
144
+ }
145
+
146
+ type PendingDialog = {
147
+ type: "assign" | "tag" | "edit";
148
+ names: string[];
149
+ clear: () => void;
150
+ } | null;
151
+
152
+ const PAGE_SIZES = [20, 100, 500];
153
+
154
+ // Generic JSX (`<FrappeTable<ListDoc> …/>`) breaks one-dev's source
155
+ // annotation transform; instantiate the type argument outside JSX instead.
156
+ const ListTable = FrappeTable<ListDoc>;
157
+
158
+ function sameFilters(a: FrappeFilters, b: FrappeFilters): boolean {
159
+ return a.length === b.length && a.every((tuple, index) => sameFilterTuple(tuple, b[index]));
160
+ }
161
+
162
+ function sameSort(a: ListSortState | null, b: ListSortState | null): boolean {
163
+ return (a?.field ?? null) === (b?.field ?? null) && (a?.order ?? null) === (b?.order ?? null);
164
+ }
165
+
166
+ export function DoctypeListScreen({
167
+ doctype,
168
+ filtersParam,
169
+ sortParam,
170
+ metaOverride,
171
+ views: viewsAllowlist,
172
+ initialFilters,
173
+ fixedFilters,
174
+ columnOverrides,
175
+ pageSize,
176
+ onRowOpen,
177
+ hideNewButton,
178
+ toolbarActions,
179
+ }: DoctypeListScreenProps) {
180
+ const { t } = useTranslation(BACKOFFICE_I18N_NAMESPACE);
181
+ const navigator = useBackofficeNavigator();
182
+ const paths = useBackofficePaths();
183
+ const capabilities = useBackofficeCapabilities();
184
+ const { actions, emitEvent } = useBackofficeConfig();
185
+ const slots = useBackofficeSlots();
186
+ const config = useFrappeConfig();
187
+ const app = useFrappeApp();
188
+ const fixtureMode = Boolean(config?.fixtures);
189
+ const sessionUser = useSessionUser();
190
+ // Compact list chrome below 640 (theme `compact` size class — matchMedia
191
+ // on web, window dimensions on native; BackofficeShell drawer precedent):
192
+ // one title row + one scrollable switcher row, filters/sort behind a sheet.
193
+ const compactChrome = useLayoutSizeClass() === "compact";
194
+
195
+ // Write-on-visit for the shared recents store (workspace "Continue where
196
+ // you left off" strip). Fixture mode (stories/tests) stays storage-free.
197
+ useRecentVisit(fixtureMode ? undefined : { label: doctype, path: paths.list(doctype) });
198
+
199
+ const {
200
+ meta: loadedMeta,
201
+ loading: metaLoading,
202
+ error: metaError,
203
+ } = useDoctypeMeta(metaOverride ? undefined : doctype);
204
+ const meta = metaOverride ?? loadedMeta;
205
+
206
+ // Operational errors reach the host bus (never replaces the inline state).
207
+ useEffect(() => {
208
+ if (metaError && !meta) emitEvent({ type: "error", error: metaError, context: "list-meta" });
209
+ }, [metaError, meta, emitEvent]);
210
+
211
+ // "New" affordances: host prop + the newDoc capability.
212
+ const showNew = !hideNewButton && capabilities.newDoc.enabled;
213
+
214
+ // ONE FILTER SYSTEM (MOD-04): `baseFilters` is the single writable filter
215
+ // state for this screen. Every filter surface — quick standard filters,
216
+ // the tuple editor, saved filters, the chips row, the facet sidebar, the
217
+ // compact tools sheet, and the `?f=` deep link — reads and writes THIS
218
+ // state via handleBaseFiltersChange; changing it bumps `filtersGen`,
219
+ // remounting the table with the tuples injected as initialState.filters.
220
+ // The table's own filter chrome is suppressed (enableFiltering={false}
221
+ // below), so no second live filter state exists.
222
+ const [baseFilters, setBaseFilters] = useState<FrappeFilters>(() => {
223
+ const fromParam = parseFiltersParam(filtersParam);
224
+ if (fromParam.length > 0) return fromParam;
225
+ return initialFilters ? [...initialFilters] : fromParam;
226
+ });
227
+ const [filtersGen, setFiltersGen] = useState(0);
228
+ // Read-only mirror of the table's effective query (injected base tuples +
229
+ // the table-owned search box), synced from onStateChange — feeds the live
230
+ // count and facet stats. Not a second filter authority: with the table's
231
+ // filter chrome suppressed, search is the only table-side contribution.
232
+ const [effectiveFilters, setEffectiveFilters] = useState<FrappeFilters | null>(null);
233
+ // null = ride the doctype's meta default; `?sort=` deep links seed it.
234
+ const [sort, setSort] = useState<ListSortState | null>(() => parseSortParam(sortParam) ?? null);
235
+ const [sortGen, setSortGen] = useState(0);
236
+ const [refreshGen, setRefreshGen] = useState(0);
237
+ const [sidebarVisible, setSidebarVisible] = useState(true);
238
+ const [quickEntryOpen, setQuickEntryOpen] = useState(false);
239
+ const [pendingDialog, setPendingDialog] = useState<PendingDialog>(null);
240
+ const [likeOverrides, setLikeOverrides] = useState<Record<string, boolean>>({});
241
+ // Last page size the user picked — survives the filter/sort remounts.
242
+ const pageSizeRef = useRef(pageSize ?? PAGE_SIZES[0]);
243
+
244
+ // Always-ANDed host filters: joined into every query (table injection,
245
+ // live count, facet stats) but invisible to the user filter chrome —
246
+ // value-keyed so unstable array literals from the host don't churn.
247
+ const fixedFiltersKey = JSON.stringify(fixedFilters ?? []);
248
+ const fixedTuples = useMemo(
249
+ () => JSON.parse(fixedFiltersKey) as FrappeFilters,
250
+ [fixedFiltersKey],
251
+ );
252
+ const withFixed = useCallback(
253
+ (filters: FrappeFilters): FrappeFilters =>
254
+ fixedTuples.length > 0 ? [...fixedTuples, ...filters] : filters,
255
+ [fixedTuples],
256
+ );
257
+
258
+ // Seeds on doctype/param swaps (refs — prop identity must not retrigger).
259
+ const initialFiltersRef = useRef(initialFilters);
260
+ initialFiltersRef.current = initialFilters;
261
+ // Render-synced mirrors so imperative handlers (URL writes, the table's
262
+ // onStateChange) read current state without re-subscribing.
263
+ const baseFiltersRef = useRef(baseFilters);
264
+ baseFiltersRef.current = baseFilters;
265
+ const sortRef = useRef(sort);
266
+ sortRef.current = sort;
267
+
268
+ // URL round-trip, outbound half (desk parity: list_view.js
269
+ // update_url_with_filters → history.replaceState). Every USER state
270
+ // change mirrors into `?f=`/`?sort=` through the navigator's optional
271
+ // setParams — no history entry, no remount; hosts without the primitive
272
+ // (noop navigator in bare stories) skip silently and state stays local.
273
+ // Inbound param changes never call this (the sync effect below adopts
274
+ // them), so the echo cannot loop.
275
+ const writeUrlState = useCallback(
276
+ (filters: FrappeFilters, sortState: ListSortState | null) => {
277
+ navigator.setParams?.({
278
+ f: serializeFiltersParam(filters),
279
+ sort: sortState ? serializeSortParam(sortState) : undefined,
280
+ });
281
+ },
282
+ [navigator],
283
+ );
284
+
285
+ // The route component is reused across /backoffice/[slug] navigations, so
286
+ // a doctype swap or a new `?f=`/`?sort=` deep link (incl. browser
287
+ // back/forward — the URL is the single source) resets the list state in
288
+ // place. Echoes of our own writeUrlState calls arrive here too and are
289
+ // adopted without state churn (sameFilters/sameSort guards).
290
+ const lastDoctype = useRef(doctype);
291
+ const lastFiltersParam = useRef(filtersParam);
292
+ const lastSortParam = useRef(sortParam);
293
+ useEffect(() => {
294
+ const doctypeChanged = lastDoctype.current !== doctype;
295
+ const filtersParamChanged = lastFiltersParam.current !== filtersParam;
296
+ const sortParamChanged = lastSortParam.current !== sortParam;
297
+ if (!doctypeChanged && !filtersParamChanged && !sortParamChanged) return;
298
+ lastDoctype.current = doctype;
299
+ lastFiltersParam.current = filtersParam;
300
+ lastSortParam.current = sortParam;
301
+ if (doctypeChanged || filtersParamChanged) {
302
+ const fromParam = parseFiltersParam(filtersParam);
303
+ const next =
304
+ fromParam.length > 0
305
+ ? fromParam
306
+ : doctypeChanged && initialFiltersRef.current
307
+ ? [...initialFiltersRef.current]
308
+ : fromParam;
309
+ if (doctypeChanged || !sameFilters(next, baseFiltersRef.current)) {
310
+ setBaseFilters(next);
311
+ setEffectiveFilters(withFixed(next));
312
+ setFiltersGen((generation) => generation + 1);
313
+ }
314
+ }
315
+ if (doctypeChanged) {
316
+ setSort(parseSortParam(sortParam) ?? null);
317
+ setLikeOverrides({});
318
+ return;
319
+ }
320
+ if (sortParamChanged) {
321
+ const parsed = parseSortParam(sortParam) ?? null;
322
+ if (!sameSort(parsed, sortRef.current)) {
323
+ setSort(parsed);
324
+ setSortGen((generation) => generation + 1);
325
+ }
326
+ }
327
+ }, [doctype, filtersParam, sortParam, withFixed]);
328
+
329
+ const sortField = sort?.field ?? meta?.sort_field ?? "modified";
330
+ const sortOrder = sort?.order ?? (meta?.sort_order?.toUpperCase() === "ASC" ? "asc" : "desc");
331
+ // Effective sort as the table sees it (state ?? meta default) — the
332
+ // onStateChange mirror compares against THIS so the seeded initial sort
333
+ // never echoes a redundant `?sort=` into the URL on mount.
334
+ const effectiveSortRef = useRef<ListSortState>({ field: sortField, order: sortOrder });
335
+ effectiveSortRef.current = { field: sortField, order: sortOrder };
336
+ const currentFilters = effectiveFilters ?? withFixed(baseFilters);
337
+
338
+ const connection = useMemo(
339
+ () =>
340
+ config
341
+ ? {
342
+ baseURL: config.baseURL,
343
+ socketPort: config.socketPort,
344
+ auth: config.auth
345
+ ? {
346
+ useToken: config.auth.useToken,
347
+ token: typeof config.auth.token === "string" ? config.auth.token : undefined,
348
+ type: config.auth.type,
349
+ }
350
+ : undefined,
351
+ // Forward the provider's engine options: the SyncModule is
352
+ // shared per baseURL and the FIRST consumer's config wins — a
353
+ // connection built without syncOptions here would silently
354
+ // strip persistKey/cdcInterval for every other screen when the
355
+ // list's aggregate watcher happens to construct the engine
356
+ // first (observed on GNOME, where this screen is the first
357
+ // engine touch).
358
+ syncOptions: config.syncOptions,
359
+ socketOptions: config.socketOptions,
360
+ fixtures: config.fixtures,
361
+ }
362
+ : undefined,
363
+ [config],
364
+ );
365
+
366
+ // Live result count — realtime refetch on doctype events.
367
+ const count = useFrappeAggregate(connection, {
368
+ doctype,
369
+ filters: currentFilters.length > 0 ? currentFilters : undefined,
370
+ });
371
+
372
+ const handleToggleLike = useCallback(
373
+ (name: string, nextLiked: boolean) => {
374
+ setLikeOverrides((previous) => ({ ...previous, [name]: nextLiked }));
375
+ if (!app || fixtureMode) return;
376
+ toggleLike(app, doctype, name, nextLiked).catch(() => {
377
+ setLikeOverrides((previous) => ({ ...previous, [name]: !nextLiked }));
378
+ notify({
379
+ severity: "error",
380
+ scope: "page",
381
+ body: t("list.likeFailed", "Could not update liked state"),
382
+ });
383
+ });
384
+ },
385
+ [app, fixtureMode, doctype, t],
386
+ );
387
+
388
+ // Session roles × meta.permissions → permlevel read matrix. Columns for
389
+ // fields above the roles' read level are pruned (desk hides them; the
390
+ // server strips their values anyway). Undefined (fixtures / roles RPC
391
+ // unavailable) prunes nothing — never hides more than desk would.
392
+ const { roles } = useUserRoles();
393
+ const permMatrix = useMemo(
394
+ () => buildPermLevelMatrix(meta?.permissions, roles),
395
+ [meta?.permissions, roles],
396
+ );
397
+
398
+ const columns = useMemo(() => {
399
+ const built = buildListColumns({
400
+ meta,
401
+ t: (key, fallback) => t(key, fallback),
402
+ sessionUser,
403
+ onToggleLike: handleToggleLike,
404
+ likeOverrides,
405
+ permMatrix,
406
+ });
407
+ return columnOverrides ? columnOverrides(built) : built;
408
+ }, [meta, t, sessionUser, handleToggleLike, likeOverrides, permMatrix, columnOverrides]);
409
+
410
+ const fields = useMemo(() => listFieldsToFetch(meta, permMatrix), [meta, permMatrix]);
411
+
412
+ // Filterable-field declarations (meta fields + the desk `_` facet
413
+ // columns). With the table's filter chrome suppressed these render no
414
+ // toolbar surface — they resolve filter TYPES for the injected tuples and
415
+ // keep FrappeTable from refetching meta to derive its own list.
416
+ const filterableFields = useMemo<FilterableField[] | undefined>(() => {
417
+ if (!meta?.fields) return undefined;
418
+ return [
419
+ ...docFieldsToFilterFields(meta.fields as unknown as DocTypeField[]),
420
+ {
421
+ id: "_assign",
422
+ label: t("list.assignedTo", "Assigned To"),
423
+ type: "text",
424
+ },
425
+ { id: "_user_tags", label: t("list.tags", "Tags"), type: "text" },
426
+ { id: "_liked_by", label: t("list.likedBy", "Liked By"), type: "text" },
427
+ ];
428
+ }, [meta, t]);
429
+
430
+ const initialTableFilters = useMemo<TableFilter[]>(
431
+ () => frappeFiltersToTableFilters(withFixed(baseFilters)),
432
+ [baseFilters, withFixed],
433
+ );
434
+
435
+ const handleBaseFiltersChange = useCallback(
436
+ (next: FrappeFilters) => {
437
+ setBaseFilters(next);
438
+ setEffectiveFilters(withFixed(next));
439
+ setFiltersGen((generation) => generation + 1);
440
+ writeUrlState(next, sortRef.current);
441
+ },
442
+ [withFixed, writeUrlState],
443
+ );
444
+
445
+ const handleSortChange = useCallback(
446
+ (field: string, order: "asc" | "desc") => {
447
+ setSort({ field, order });
448
+ setSortGen((generation) => generation + 1);
449
+ writeUrlState(baseFiltersRef.current, { field, order });
450
+ },
451
+ [writeUrlState],
452
+ );
453
+
454
+ // DataTable's onStateChange fires on every table render (its state object
455
+ // is rebuilt each pass), so every mirror below MUST bail to the previous
456
+ // state identity when nothing changed — fresh objects would loop
457
+ // render → onStateChange → setState → render forever.
458
+ const handleStateChange = useCallback(
459
+ (state: DataTableState) => {
460
+ if (state.pagination?.pageSize) pageSizeRef.current = state.pagination.pageSize;
461
+ const nextFilters = tableStateToFrappeFilters(state);
462
+ setEffectiveFilters((previous) =>
463
+ previous && sameFilters(previous, nextFilters) ? previous : nextFilters,
464
+ );
465
+ // Header-sort clicks stay internal to the table; mirror them into the
466
+ // sort selector without bumping sortGen (no remount needed). Compared
467
+ // against the EFFECTIVE sort so the seeded initial sorting is a no-op;
468
+ // a real header sort also mirrors into the URL (write-once — the
469
+ // effective ref updates on the next render).
470
+ const sorting = state.sorting?.[0];
471
+ if (sorting) {
472
+ const order = sorting.desc ? ("desc" as const) : ("asc" as const);
473
+ const effective = effectiveSortRef.current;
474
+ if (effective.field !== sorting.id || effective.order !== order) {
475
+ const nextSort: ListSortState = { field: sorting.id, order };
476
+ setSort(nextSort);
477
+ writeUrlState(baseFiltersRef.current, nextSort);
478
+ }
479
+ }
480
+ },
481
+ [writeUrlState],
482
+ );
483
+
484
+ const handleRefresh = useCallback(() => {
485
+ setRefreshGen((generation) => generation + 1);
486
+ count.refresh();
487
+ }, [count]);
488
+
489
+ const handleRowClick = useCallback(
490
+ (row: ListRow) => {
491
+ if (!row.name) return;
492
+ if (onRowOpen) {
493
+ onRowOpen(doctype, row.name);
494
+ return;
495
+ }
496
+ emitEvent({ type: "doc-opened", doctype, name: row.name });
497
+ navigator.navigate(paths.form(doctype, row.name));
498
+ },
499
+ [navigator, paths, doctype, onRowOpen, emitEvent],
500
+ );
501
+
502
+ const handleBulkExport = useCallback(
503
+ async (names: string[]) => {
504
+ if (!app) return;
505
+ try {
506
+ const result = await bulkExportCsv(app, doctype, names, meta);
507
+ if (!result.downloaded) {
508
+ notify({
509
+ severity: "warning",
510
+ scope: "page",
511
+ body: t(
512
+ "list.exportUnsupported",
513
+ "CSV export needs a browser download — not available on this platform yet",
514
+ ),
515
+ });
516
+ } else {
517
+ notify({
518
+ severity: "success",
519
+ scope: "page",
520
+ body: t("list.exportDone", {
521
+ count: result.rowCount,
522
+ defaultValue_one: "Exported {{count}} row to CSV",
523
+ defaultValue_other: "Exported {{count}} rows to CSV",
524
+ }),
525
+ });
526
+ }
527
+ } catch (error) {
528
+ notify({
529
+ severity: "error",
530
+ scope: "page",
531
+ body:
532
+ error instanceof Error ? error.message : t("list.exportFailed", "CSV export failed"),
533
+ });
534
+ }
535
+ },
536
+ [app, doctype, meta, t],
537
+ );
538
+
539
+ const handleBulkDocstatus = useCallback(
540
+ async (names: string[], action: BulkDocstatusAction) => {
541
+ if (!app) return;
542
+ try {
543
+ const result = await bulkSubmitCancel(app, doctype, names, action);
544
+ if (result.queued) {
545
+ notify({
546
+ severity: "info",
547
+ scope: "page",
548
+ body: t("list.docstatusQueued", {
549
+ action: action === "submit" ? t("list.submit", "Submit") : t("list.cancel", "Cancel"),
550
+ count: result.attempted,
551
+ defaultValue_one: "{{action}} of {{count}} document queued in the background",
552
+ defaultValue_other: "{{action}} of {{count}} documents queued in the background",
553
+ }),
554
+ });
555
+ } else if (result.failed.length > 0) {
556
+ notify({
557
+ severity: "warning",
558
+ scope: "page",
559
+ // Two independent counts in one sentence — phrased "X of Y" so
560
+ // no noun needs a second plural slot.
561
+ body: t("list.docstatusPartial", {
562
+ count: result.attempted - result.failed.length,
563
+ total: result.attempted,
564
+ names: result.failed.join(", "),
565
+ defaultValue: "Processed {{count}} of {{total}} documents; failed: {{names}}",
566
+ }),
567
+ });
568
+ } else {
569
+ notify({
570
+ severity: "success",
571
+ scope: "page",
572
+ body:
573
+ action === "submit"
574
+ ? t("list.submitDone", {
575
+ count: result.attempted,
576
+ defaultValue_one: "Submitted {{count}} document",
577
+ defaultValue_other: "Submitted {{count}} documents",
578
+ })
579
+ : t("list.cancelDone", {
580
+ count: result.attempted,
581
+ defaultValue_one: "Cancelled {{count}} document",
582
+ defaultValue_other: "Cancelled {{count}} documents",
583
+ }),
584
+ });
585
+ }
586
+ count.refresh();
587
+ } catch (error) {
588
+ notify({
589
+ severity: "error",
590
+ scope: "page",
591
+ body:
592
+ error instanceof Error
593
+ ? error.message
594
+ : t("list.docstatusFailed", "Bulk action failed"),
595
+ });
596
+ }
597
+ },
598
+ [app, doctype, t, count],
599
+ );
600
+
601
+ const isSubmittable = meta?.is_submittable === 1;
602
+
603
+ // Host-injected selection actions: provider `actions.list` (doctype-scoped
604
+ // registry) + the `toolbarActions` prop, appended to the built-in bulk
605
+ // actions.
606
+ const hostListActions = useMemo<BulkAction<ListRow>[]>(() => {
607
+ const injected: BackofficeAction[] = [
608
+ ...actionsForDoctype(actions.list, doctype),
609
+ ...actionsForDoctype(toolbarActions, doctype),
610
+ ];
611
+ return injected.map((action) => ({
612
+ id: action.id,
613
+ label: action.label,
614
+ onExecute: (items: ListRow[]) => {
615
+ const names = items.map((item) => item.name).filter(Boolean) as string[];
616
+ action.onPress({ doctype, selection: names });
617
+ },
618
+ }));
619
+ }, [actions.list, toolbarActions, doctype]);
620
+
621
+ const bulkActions = useMemo<BulkAction<ListRow>[]>(
622
+ () => [
623
+ // Assignment/tag actions ride their capability flags.
624
+ ...(capabilities.assignments.enabled
625
+ ? ([
626
+ {
627
+ id: "assign",
628
+ label: t("list.assignTitle", "Assign To"),
629
+ onExecute: (items, clearSelection) => {
630
+ const names = items.map((item) => item.name).filter(Boolean) as string[];
631
+ if (names.length > 0)
632
+ setPendingDialog({ type: "assign", names, clear: clearSelection });
633
+ },
634
+ },
635
+ ] as BulkAction<ListRow>[])
636
+ : []),
637
+ ...(capabilities.tags.enabled
638
+ ? ([
639
+ {
640
+ id: "tag",
641
+ label: t("list.tagTitle", "Add Tags"),
642
+ onExecute: (items, clearSelection) => {
643
+ const names = items.map((item) => item.name).filter(Boolean) as string[];
644
+ if (names.length > 0)
645
+ setPendingDialog({ type: "tag", names, clear: clearSelection });
646
+ },
647
+ },
648
+ ] as BulkAction<ListRow>[])
649
+ : []),
650
+ {
651
+ id: "edit",
652
+ label: t("list.editTitle", "Bulk Edit"),
653
+ onExecute: (items, clearSelection) => {
654
+ const names = items.map((item) => item.name).filter(Boolean) as string[];
655
+ if (names.length > 0) setPendingDialog({ type: "edit", names, clear: clearSelection });
656
+ },
657
+ },
658
+ {
659
+ id: "export",
660
+ label: t("list.export", "Export CSV"),
661
+ onExecute: async (items) => {
662
+ const names = items.map((item) => item.name).filter(Boolean) as string[];
663
+ if (names.length > 0) await handleBulkExport(names);
664
+ },
665
+ },
666
+ ...(isSubmittable
667
+ ? ([
668
+ {
669
+ id: "submit",
670
+ label: t("list.submit", "Submit"),
671
+ requiresConfirmation: true,
672
+ confirmTitle: t("list.submitTitle", "Submit documents"),
673
+ confirmMessage: t("list.submitConfirm", {
674
+ defaultValue: "Submit the selected {{doctype}} documents?",
675
+ doctype,
676
+ }),
677
+ onExecute: async (items, clearSelection) => {
678
+ const names = items.map((item) => item.name).filter(Boolean) as string[];
679
+ if (names.length === 0) return;
680
+ await handleBulkDocstatus(names, "submit");
681
+ clearSelection();
682
+ },
683
+ },
684
+ {
685
+ id: "cancel",
686
+ label: t("list.cancel", "Cancel"),
687
+ requiresConfirmation: true,
688
+ confirmTitle: t("list.cancelTitle", "Cancel documents"),
689
+ confirmMessage: t("list.cancelBody", {
690
+ defaultValue: "Cancel the selected submitted {{doctype}} documents?",
691
+ doctype,
692
+ }),
693
+ onExecute: async (items, clearSelection) => {
694
+ const names = items.map((item) => item.name).filter(Boolean) as string[];
695
+ if (names.length === 0) return;
696
+ await handleBulkDocstatus(names, "cancel");
697
+ clearSelection();
698
+ },
699
+ },
700
+ ] as BulkAction<ListRow>[])
701
+ : []),
702
+ {
703
+ id: "delete",
704
+ label: t("list.delete", "Delete"),
705
+ variant: "destructive",
706
+ requiresConfirmation: true,
707
+ confirmTitle: t("list.deleteTitle", "Delete documents"),
708
+ confirmMessage: t("list.deleteConfirm", {
709
+ defaultValue: "Permanently delete the selected {{doctype}} documents?",
710
+ doctype,
711
+ }),
712
+ onExecute: async (items, clearSelection) => {
713
+ if (!app) return;
714
+ const names = items.map((item) => item.name).filter(Boolean) as string[];
715
+ if (names.length === 0) return;
716
+ const result = await bulkDelete(app, doctype, names);
717
+ if (result.failed.length > 0) {
718
+ notify({
719
+ severity: "warning",
720
+ scope: "page",
721
+ body: t("list.deletePartial", {
722
+ count: result.succeeded.length,
723
+ total: names.length,
724
+ names: result.failed.map((failure) => failure.name).join(", "),
725
+ defaultValue: "Deleted {{count}} of {{total}} documents; failed: {{names}}",
726
+ }),
727
+ });
728
+ } else {
729
+ notify({
730
+ severity: "success",
731
+ scope: "page",
732
+ body: t("list.deleteDone", {
733
+ count: result.succeeded.length,
734
+ defaultValue_one: "Deleted {{count}} document",
735
+ defaultValue_other: "Deleted {{count}} documents",
736
+ }),
737
+ });
738
+ }
739
+ clearSelection();
740
+ count.refresh();
741
+ },
742
+ },
743
+ ...hostListActions,
744
+ ],
745
+ [
746
+ t,
747
+ app,
748
+ doctype,
749
+ count,
750
+ isSubmittable,
751
+ handleBulkExport,
752
+ handleBulkDocstatus,
753
+ capabilities.assignments.enabled,
754
+ capabilities.tags.enabled,
755
+ hostListActions,
756
+ ],
757
+ );
758
+
759
+ // Selection + the bulk bar ride the bulkActions capability as one unit.
760
+ const bulkActionsEnabled = capabilities.bulkActions.enabled;
761
+
762
+ // View switcher options: capability allowlist ∩ the `views` prop.
763
+ const views = useMemo(() => {
764
+ if (!capabilities.views.enabled) return [];
765
+ return BACKOFFICE_VIEWS.filter(
766
+ (view) =>
767
+ capabilities.views.allow.includes(view) &&
768
+ (!viewsAllowlist || viewsAllowlist.includes(view)),
769
+ ).map((view) => ({
770
+ type: view,
771
+ label: t(`views.${view}`, view.charAt(0).toUpperCase() + view.slice(1)),
772
+ }));
773
+ }, [t, capabilities.views.enabled, capabilities.views.allow, viewsAllowlist]);
774
+
775
+ const tableKey = `${doctype}|${refreshGen}|${sortGen}|${filtersGen}`;
776
+
777
+ if (metaError && !meta) {
778
+ return (
779
+ <YStack flex={1}>
780
+ <EmptyState
781
+ intent="error"
782
+ title={t("list.metaError", {
783
+ defaultValue: "Could not load {{doctype}}",
784
+ doctype,
785
+ })}
786
+ description={metaError.message}
787
+ />
788
+ </YStack>
789
+ );
790
+ }
791
+
792
+ if (!meta && metaLoading) {
793
+ return (
794
+ <YStack flex={1} alignItems="center" justifyContent="center" padding="$6">
795
+ <Spinner size="large" />
796
+ </YStack>
797
+ );
798
+ }
799
+
800
+ const showCreateFirst = !count.isLoading && count.value === 0 && currentFilters.length === 0;
801
+
802
+ // i18next plural forms — never the lazy "(s)" suffix (the count picks the
803
+ // form; other locales pluralize correctly through the same key).
804
+ const countText = count.isLoading
805
+ ? undefined
806
+ : t("list.resultCount", {
807
+ count: count.value ?? 0,
808
+ defaultValue_one: "{{count}} result",
809
+ defaultValue_other: "{{count}} results",
810
+ });
811
+ const handleViewChange = (view: string) => {
812
+ if (view !== "list") navigator.navigate(paths.view(doctype, view as BackofficeView));
813
+ };
814
+ // Nothing to switch to (capability/allowlist narrowed to list or off).
815
+ const showViewSwitcher = views.length > 1;
816
+
817
+ return (
818
+ <YStack flex={1} gap={compactChrome ? "$2" : "$3"} padding={compactChrome ? "$3" : "$4"}>
819
+ {compactChrome ? (
820
+ // Compact chrome (< 640): one title row (title + live count inline,
821
+ // icon refresh, compact New), then one row with the view switcher
822
+ // (horizontally scrollable — all views stay reachable) and the
823
+ // single Filter affordance (filters/sort collapse into its sheet).
824
+ <PageHeader
825
+ heading={
826
+ <XStack gap="$2" alignItems="baseline" flexWrap="wrap">
827
+ <H1 size="$7" margin={0} flexShrink={1} minWidth={0}>
828
+ {doctype}
829
+ </H1>
830
+ {countText ? (
831
+ <Paragraph size="$2" color="$color10" margin={0}>
832
+ {countText}
833
+ </Paragraph>
834
+ ) : null}
835
+ </XStack>
836
+ }
837
+ actions={
838
+ <XStack gap="$2" alignItems="center">
839
+ {/* House Button: icon slot (LC-53) + the sub-44 circular size
840
+ resolves the press floor through the house channel (LC-54). */}
841
+ <ActionButton
842
+ size="$3"
843
+ circular
844
+ chromeless
845
+ icon={ArrowsClockwiseIcon}
846
+ onPress={handleRefresh}
847
+ aria-label={t("list.refresh", "Refresh")}
848
+ />
849
+ {showNew && (
850
+ <ActionButton
851
+ size="$3"
852
+ accent
853
+ icon={PlusIcon}
854
+ onPress={() => setQuickEntryOpen(true)}
855
+ aria-label={t("list.new", {
856
+ defaultValue: "New {{doctype}}",
857
+ doctype,
858
+ })}
859
+ >
860
+ {t("list.newShort", "New")}
861
+ </ActionButton>
862
+ )}
863
+ </XStack>
864
+ }
865
+ >
866
+ <XStack gap="$2" alignItems="center">
867
+ <ScrollView
868
+ horizontal
869
+ flexGrow={1}
870
+ flexShrink={1}
871
+ minWidth={0}
872
+ showsHorizontalScrollIndicator={false}
873
+ >
874
+ {showViewSwitcher ? (
875
+ <ViewSwitcher views={views} currentView="list" onViewChange={handleViewChange} />
876
+ ) : null}
877
+ </ScrollView>
878
+ <ListFilterBar
879
+ compact
880
+ doctype={doctype}
881
+ meta={meta}
882
+ filters={baseFilters}
883
+ onFiltersChange={handleBaseFiltersChange}
884
+ sortField={sortField}
885
+ sortOrder={sortOrder}
886
+ onSortChange={handleSortChange}
887
+ />
888
+ </XStack>
889
+ {/* Shared chips readout (MOD-04 honest state): the table's own
890
+ chips row is suppressed with the rest of its filter chrome, so
891
+ compact renders the list-chrome chips here (wide gets them
892
+ inside ListFilterBar). Renders nothing while no filters apply. */}
893
+ <FilterChips
894
+ meta={meta}
895
+ filters={baseFilters}
896
+ onFiltersChange={handleBaseFiltersChange}
897
+ />
898
+ </PageHeader>
899
+ ) : (
900
+ <>
901
+ <PageHeader
902
+ title={doctype}
903
+ // D-11 page-title dial: moderate (32px) — list titles are
904
+ // wayfinding, not display copy (matches WorkspaceScreen).
905
+ titleScale="moderate"
906
+ subtitle={countText}
907
+ actions={
908
+ <XStack gap="$2" alignItems="center" flexWrap="wrap">
909
+ {/* Icon-only refresh (desk parity): a text "Refresh" at the
910
+ switcher's left read as one of its segments — an action
911
+ mixed into a view picker (LC-26). House Button: icon slot
912
+ (LC-53), circular sub-44 press floor via the house
913
+ channel (LC-54). */}
914
+ <ActionButton
915
+ size="$3"
916
+ circular
917
+ chromeless
918
+ icon={ArrowsClockwiseIcon}
919
+ onPress={handleRefresh}
920
+ aria-label={t("list.refresh", "Refresh")}
921
+ />
922
+ {showViewSwitcher ? (
923
+ <ViewSwitcher views={views} currentView="list" onViewChange={handleViewChange} />
924
+ ) : null}
925
+ {showNew && (
926
+ <ActionButton size="$2" accent onPress={() => setQuickEntryOpen(true)}>
927
+ {t("list.new", { defaultValue: "New {{doctype}}", doctype })}
928
+ </ActionButton>
929
+ )}
930
+ </XStack>
931
+ }
932
+ />
933
+
934
+ {/* flex-start: the toggle rides the filter bar's FIRST control row
935
+ (both 44px) — centering floated it between rows when the bar
936
+ wraps (Axiom 16 row line). */}
937
+ <XStack gap="$2" alignItems="flex-start">
938
+ {!fixtureMode && (
939
+ // Icon-only sidebar toggle: the bare "Hide sidebar" text read
940
+ // as a floating label, not a control, and its 28px box missed
941
+ // the press floor. House Button icon slot (LC-53) + circular
942
+ // sub-44 floor via the house channel (LC-54); aria-expanded
943
+ // carries the region state.
944
+ <ActionButton
945
+ size="$3"
946
+ circular
947
+ chromeless
948
+ icon={SidebarSimpleIcon}
949
+ display="none"
950
+ $sm={{ display: "flex" }}
951
+ onPress={() => setSidebarVisible((visible) => !visible)}
952
+ aria-expanded={sidebarVisible}
953
+ aria-label={
954
+ sidebarVisible
955
+ ? t("list.hideSidebar", "Hide sidebar")
956
+ : t("list.showSidebar", "Show sidebar")
957
+ }
958
+ />
959
+ )}
960
+ <YStack flex={1}>
961
+ <ListFilterBar
962
+ doctype={doctype}
963
+ meta={meta}
964
+ filters={baseFilters}
965
+ onFiltersChange={handleBaseFiltersChange}
966
+ sortField={sortField}
967
+ sortOrder={sortOrder}
968
+ onSortChange={handleSortChange}
969
+ />
970
+ </YStack>
971
+ </XStack>
972
+ </>
973
+ )}
974
+
975
+ {(() => {
976
+ const listBody = (
977
+ <XStack flex={1} gap="$2" alignItems="stretch">
978
+ {/* Facet sidebar needs bench RPCs (fixture mode hides it) and is
979
+ hidden on narrow viewports (< $sm) like desk. MOD-04 keeps it:
980
+ facet clicks toggle tuples through the same baseFilters
981
+ channel (handleBaseFiltersChange) — counts are informative,
982
+ the chips row is the shared readout. */}
983
+ {sidebarVisible && !fixtureMode && (
984
+ <YStack display="none" $sm={{ display: "flex" }}>
985
+ <ListSidebar
986
+ doctype={doctype}
987
+ meta={meta}
988
+ filters={currentFilters}
989
+ onFiltersChange={handleBaseFiltersChange}
990
+ />
991
+ </YStack>
992
+ )}
993
+ <YStack flex={1} minWidth={0}>
994
+ {showCreateFirst ? (
995
+ (slots.renderListEmpty?.({ doctype }) ?? (
996
+ <EmptyState
997
+ title={t("list.emptyTitle", {
998
+ defaultValue: "No {{doctype}} yet",
999
+ doctype,
1000
+ })}
1001
+ description={t("list.emptyDescription", {
1002
+ defaultValue: "Create your first {{doctype}} to get started",
1003
+ doctype,
1004
+ })}
1005
+ action={
1006
+ showNew ? (
1007
+ <ActionButton accent onPress={() => setQuickEntryOpen(true)}>
1008
+ {t("list.new", {
1009
+ defaultValue: "New {{doctype}}",
1010
+ doctype,
1011
+ })}
1012
+ </ActionButton>
1013
+ ) : undefined
1014
+ }
1015
+ />
1016
+ ))
1017
+ ) : (
1018
+ <ListTable
1019
+ key={tableKey}
1020
+ doctype={doctype}
1021
+ columns={columns}
1022
+ fields={fields}
1023
+ serverSide={!fixtureMode}
1024
+ {...(fixtureMode && withFixed(baseFilters).length > 0
1025
+ ? { filters: withFixed(baseFilters) }
1026
+ : {})}
1027
+ filterableFields={filterableFields}
1028
+ initialState={{
1029
+ sorting: [{ id: sortField, desc: sortOrder === "desc" }],
1030
+ filters: initialTableFilters,
1031
+ pagination: { pageIndex: 0, pageSize: pageSizeRef.current },
1032
+ }}
1033
+ enablePagination
1034
+ renderPagination={(paginationProps) => (
1035
+ <DataTablePagination
1036
+ {...paginationProps}
1037
+ pageSizeOptions={[...PAGE_SIZES]}
1038
+ compact
1039
+ />
1040
+ )}
1041
+ // ONE FILTER SYSTEM (MOD-04 / LC-16): the list chrome is
1042
+ // the single filtering authority; tuples reach the table
1043
+ // only through initialState.filters (remount via tableKey).
1044
+ // enableFiltering={false} suppresses every in-table filter
1045
+ // entry point (toolbar Filter button, column funnels, chips
1046
+ // row, card Add Filter) and detaches the search clear-X
1047
+ // from the injected filters — the table contributes search
1048
+ // + header sort only, mirrored back via onStateChange.
1049
+ enableFiltering={false}
1050
+ enableSorting
1051
+ enableRowSelection={bulkActionsEnabled}
1052
+ {...(bulkActionsEnabled ? { bulkActions } : {})}
1053
+ onRowClick={handleRowClick}
1054
+ onStateChange={handleStateChange}
1055
+ />
1056
+ )}
1057
+ </YStack>
1058
+ </XStack>
1059
+ );
1060
+ // Native has no page-level scroll and the table body ships none —
1061
+ // wrap in a vertical ScrollView (DocFormScreen precedent) so rows
1062
+ // below the fold stay reachable. Compact web is in the same boat:
1063
+ // the card list renders in flow inside the shell's overflow-hidden
1064
+ // frame, so it needs the same scroll wrapper (the compact header
1065
+ // stays pinned above it). Wide web keeps the flex layout as-is —
1066
+ // the grid body scrolls internally.
1067
+ return isWeb && !compactChrome ? listBody : <ScrollView flex={1}>{listBody}</ScrollView>;
1068
+ })()}
1069
+
1070
+ {showNew && (
1071
+ <QuickEntryDialog
1072
+ doctype={doctype}
1073
+ open={quickEntryOpen}
1074
+ onOpenChange={setQuickEntryOpen}
1075
+ onCreated={(name) => {
1076
+ emitEvent({ type: "doc-opened", doctype, name });
1077
+ navigator.navigate(paths.form(doctype, name));
1078
+ }}
1079
+ onEditFullForm={() => navigator.navigate(paths.newDoc(doctype))}
1080
+ />
1081
+ )}
1082
+ <AssignToDialog
1083
+ doctype={doctype}
1084
+ names={pendingDialog?.type === "assign" ? pendingDialog.names : []}
1085
+ open={pendingDialog?.type === "assign"}
1086
+ onOpenChange={(open) => {
1087
+ if (!open) setPendingDialog(null);
1088
+ }}
1089
+ onDone={() => {
1090
+ pendingDialog?.clear();
1091
+ count.refresh();
1092
+ }}
1093
+ />
1094
+ <AddTagsDialog
1095
+ doctype={doctype}
1096
+ names={pendingDialog?.type === "tag" ? pendingDialog.names : []}
1097
+ open={pendingDialog?.type === "tag"}
1098
+ onOpenChange={(open) => {
1099
+ if (!open) setPendingDialog(null);
1100
+ }}
1101
+ onDone={() => {
1102
+ pendingDialog?.clear();
1103
+ count.refresh();
1104
+ }}
1105
+ />
1106
+ <BulkEditDialog
1107
+ doctype={doctype}
1108
+ meta={meta}
1109
+ names={pendingDialog?.type === "edit" ? pendingDialog.names : []}
1110
+ open={pendingDialog?.type === "edit"}
1111
+ onOpenChange={(open) => {
1112
+ if (!open) setPendingDialog(null);
1113
+ }}
1114
+ onDone={() => {
1115
+ pendingDialog?.clear();
1116
+ count.refresh();
1117
+ }}
1118
+ />
1119
+ </YStack>
1120
+ );
1121
+ }