@multiplatform.one/backoffice 7.75.0 → 7.77.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 (496) hide show
  1. package/dist/cjs/chrome/UserMenu.cjs +43 -28
  2. package/dist/cjs/chrome/UserMenu.native.js +44 -28
  3. package/dist/cjs/chrome/UserMenu.native.js.map +1 -1
  4. package/dist/cjs/chrome/awesomebar-data.cjs +79 -33
  5. package/dist/cjs/chrome/awesomebar-data.native.js +101 -45
  6. package/dist/cjs/chrome/awesomebar-data.native.js.map +1 -1
  7. package/dist/cjs/chrome/notifications-panel.cjs +22 -61
  8. package/dist/cjs/chrome/notifications-panel.native.js +22 -62
  9. package/dist/cjs/chrome/notifications-panel.native.js.map +1 -1
  10. package/dist/cjs/config/BackofficeProvider.native.js.map +1 -1
  11. package/dist/cjs/config/capabilities.cjs +4 -0
  12. package/dist/cjs/config/capabilities.native.js +4 -0
  13. package/dist/cjs/config/capabilities.native.js.map +1 -1
  14. package/dist/cjs/desk/Desk.cjs +6 -1
  15. package/dist/cjs/desk/Desk.native.js +6 -1
  16. package/dist/cjs/desk/Desk.native.js.map +1 -1
  17. package/dist/cjs/desk/DeskSurface.cjs +3 -0
  18. package/dist/cjs/desk/DeskSurface.native.js +3 -0
  19. package/dist/cjs/desk/DeskSurface.native.js.map +1 -1
  20. package/dist/cjs/desk/resolveDeskPath.cjs +5 -0
  21. package/dist/cjs/desk/resolveDeskPath.native.js +5 -0
  22. package/dist/cjs/desk/resolveDeskPath.native.js.map +1 -1
  23. package/dist/cjs/desk/target.cjs +4 -0
  24. package/dist/cjs/desk/target.native.js +4 -0
  25. package/dist/cjs/desk/target.native.js.map +1 -1
  26. package/dist/cjs/form/DocFormScreen.cjs +46 -44
  27. package/dist/cjs/form/DocFormScreen.native.js +49 -47
  28. package/dist/cjs/form/DocFormScreen.native.js.map +1 -1
  29. package/dist/cjs/form/FormConnections.cjs +54 -125
  30. package/dist/cjs/form/FormConnections.native.js +59 -127
  31. package/dist/cjs/form/FormConnections.native.js.map +1 -1
  32. package/dist/cjs/form/FormDialogs.cjs +9 -52
  33. package/dist/cjs/form/FormDialogs.native.js +7 -49
  34. package/dist/cjs/form/FormDialogs.native.js.map +1 -1
  35. package/dist/cjs/form/FormTimeline.cjs +17 -17
  36. package/dist/cjs/form/FormTimeline.native.js +17 -17
  37. package/dist/cjs/form/FormTimeline.native.js.map +1 -1
  38. package/dist/cjs/form/FormToolbar.cjs +76 -82
  39. package/dist/cjs/form/FormToolbar.native.js +76 -82
  40. package/dist/cjs/form/FormToolbar.native.js.map +1 -1
  41. package/dist/cjs/formBuilder/FormBuilderCanvas.cjs +16 -24
  42. package/dist/cjs/formBuilder/FormBuilderCanvas.native.js +16 -24
  43. package/dist/cjs/formBuilder/FormBuilderCanvas.native.js.map +1 -1
  44. package/dist/cjs/i18n/en.cjs +2 -3
  45. package/dist/cjs/i18n/en.native.js +2 -3
  46. package/dist/cjs/i18n/en.native.js.map +1 -1
  47. package/dist/cjs/index.cjs +6 -0
  48. package/dist/cjs/index.native.js +6 -0
  49. package/dist/cjs/index.native.js.map +1 -1
  50. package/dist/cjs/list/DoctypeListScreen.cjs +11 -17
  51. package/dist/cjs/list/DoctypeListScreen.native.js +15 -21
  52. package/dist/cjs/list/DoctypeListScreen.native.js.map +1 -1
  53. package/dist/cjs/list/ListBulkActionsBar.cjs +10 -8
  54. package/dist/cjs/list/ListBulkActionsBar.native.js +10 -8
  55. package/dist/cjs/list/ListBulkActionsBar.native.js.map +1 -1
  56. package/dist/cjs/list/filter-editor.cjs +4 -6
  57. package/dist/cjs/list/filter-editor.native.js +4 -6
  58. package/dist/cjs/list/filter-editor.native.js.map +1 -1
  59. package/dist/cjs/list/filter-saved.cjs +4 -4
  60. package/dist/cjs/list/filter-saved.native.js +4 -4
  61. package/dist/cjs/list/filter-saved.native.js.map +1 -1
  62. package/dist/cjs/list/sidebar-section.cjs +11 -67
  63. package/dist/cjs/list/sidebar-section.native.js +11 -69
  64. package/dist/cjs/list/sidebar-section.native.js.map +1 -1
  65. package/dist/cjs/navigation/paths.cjs +8 -1
  66. package/dist/cjs/navigation/paths.native.js +9 -0
  67. package/dist/cjs/navigation/paths.native.js.map +1 -1
  68. package/dist/cjs/quickEntry/QuickEntryDialog.cjs +27 -26
  69. package/dist/cjs/quickEntry/QuickEntryDialog.native.js +27 -26
  70. package/dist/cjs/quickEntry/QuickEntryDialog.native.js.map +1 -1
  71. package/dist/cjs/report/QueryReportScreen.cjs +4 -6
  72. package/dist/cjs/report/QueryReportScreen.native.js +4 -6
  73. package/dist/cjs/report/QueryReportScreen.native.js.map +1 -1
  74. package/dist/cjs/shell/AllDoctypesScreen.cjs +331 -0
  75. package/dist/cjs/shell/AllDoctypesScreen.native.js +460 -0
  76. package/dist/cjs/shell/AllDoctypesScreen.native.js.map +1 -0
  77. package/dist/cjs/shell/BackofficeShell.cjs +22 -62
  78. package/dist/cjs/shell/BackofficeShell.native.js +22 -63
  79. package/dist/cjs/shell/BackofficeShell.native.js.map +1 -1
  80. package/dist/cjs/shell/WorkspaceSidebar.cjs +48 -149
  81. package/dist/cjs/shell/WorkspaceSidebar.native.js +51 -157
  82. package/dist/cjs/shell/WorkspaceSidebar.native.js.map +1 -1
  83. package/dist/cjs/shell/workspaceIcons.cjs +32 -0
  84. package/dist/cjs/shell/workspaceIcons.native.js +32 -0
  85. package/dist/cjs/shell/workspaceIcons.native.js.map +1 -1
  86. package/dist/cjs/views/ViewHeader.cjs +5 -10
  87. package/dist/cjs/views/ViewHeader.native.js +7 -12
  88. package/dist/cjs/views/ViewHeader.native.js.map +1 -1
  89. package/dist/cjs/views/ViewStates.cjs +5 -7
  90. package/dist/cjs/views/ViewStates.native.js +5 -7
  91. package/dist/cjs/views/ViewStates.native.js.map +1 -1
  92. package/dist/cjs/views/kanban-board-controls.cjs +4 -5
  93. package/dist/cjs/views/kanban-board-controls.native.js +4 -5
  94. package/dist/cjs/views/kanban-board-controls.native.js.map +1 -1
  95. package/dist/cjs/workspace/WorkspaceLinkCard.cjs +22 -123
  96. package/dist/cjs/workspace/WorkspaceLinkCard.native.js +23 -128
  97. package/dist/cjs/workspace/WorkspaceLinkCard.native.js.map +1 -1
  98. package/dist/cjs/workspace/WorkspaceLinkDirectory.cjs +0 -6
  99. package/dist/cjs/workspace/WorkspaceLinkDirectory.native.js +0 -12
  100. package/dist/cjs/workspace/WorkspaceLinkDirectory.native.js.map +1 -1
  101. package/dist/cjs/workspace/WorkspaceNumberCard.cjs +23 -41
  102. package/dist/cjs/workspace/WorkspaceNumberCard.native.js +23 -41
  103. package/dist/cjs/workspace/WorkspaceNumberCard.native.js.map +1 -1
  104. package/dist/cjs/workspace/WorkspaceQuickList.cjs +25 -21
  105. package/dist/cjs/workspace/WorkspaceQuickList.native.js +28 -25
  106. package/dist/cjs/workspace/WorkspaceQuickList.native.js.map +1 -1
  107. package/dist/esm/chrome/UserMenu.mjs +33 -18
  108. package/dist/esm/chrome/UserMenu.mjs.map +1 -1
  109. package/dist/esm/chrome/UserMenu.native.js +34 -18
  110. package/dist/esm/chrome/UserMenu.native.js.map +1 -1
  111. package/dist/esm/chrome/awesomebar-data.mjs +79 -33
  112. package/dist/esm/chrome/awesomebar-data.mjs.map +1 -1
  113. package/dist/esm/chrome/awesomebar-data.native.js +101 -45
  114. package/dist/esm/chrome/awesomebar-data.native.js.map +1 -1
  115. package/dist/esm/chrome/notifications-panel.mjs +25 -64
  116. package/dist/esm/chrome/notifications-panel.mjs.map +1 -1
  117. package/dist/esm/chrome/notifications-panel.native.js +25 -65
  118. package/dist/esm/chrome/notifications-panel.native.js.map +1 -1
  119. package/dist/esm/config/BackofficeProvider.mjs.map +1 -1
  120. package/dist/esm/config/BackofficeProvider.native.js.map +1 -1
  121. package/dist/esm/config/capabilities.mjs +4 -0
  122. package/dist/esm/config/capabilities.mjs.map +1 -1
  123. package/dist/esm/config/capabilities.native.js +4 -0
  124. package/dist/esm/config/capabilities.native.js.map +1 -1
  125. package/dist/esm/desk/Desk.mjs +6 -1
  126. package/dist/esm/desk/Desk.mjs.map +1 -1
  127. package/dist/esm/desk/Desk.native.js +6 -1
  128. package/dist/esm/desk/Desk.native.js.map +1 -1
  129. package/dist/esm/desk/DeskSurface.mjs +3 -0
  130. package/dist/esm/desk/DeskSurface.mjs.map +1 -1
  131. package/dist/esm/desk/DeskSurface.native.js +3 -0
  132. package/dist/esm/desk/DeskSurface.native.js.map +1 -1
  133. package/dist/esm/desk/resolveDeskPath.mjs +6 -1
  134. package/dist/esm/desk/resolveDeskPath.mjs.map +1 -1
  135. package/dist/esm/desk/resolveDeskPath.native.js +6 -1
  136. package/dist/esm/desk/resolveDeskPath.native.js.map +1 -1
  137. package/dist/esm/desk/target.mjs +4 -0
  138. package/dist/esm/desk/target.mjs.map +1 -1
  139. package/dist/esm/desk/target.native.js +4 -0
  140. package/dist/esm/desk/target.native.js.map +1 -1
  141. package/dist/esm/form/DocFormScreen.mjs +19 -17
  142. package/dist/esm/form/DocFormScreen.mjs.map +1 -1
  143. package/dist/esm/form/DocFormScreen.native.js +22 -20
  144. package/dist/esm/form/DocFormScreen.native.js.map +1 -1
  145. package/dist/esm/form/FormConnections.mjs +56 -127
  146. package/dist/esm/form/FormConnections.mjs.map +1 -1
  147. package/dist/esm/form/FormConnections.native.js +61 -129
  148. package/dist/esm/form/FormConnections.native.js.map +1 -1
  149. package/dist/esm/form/FormDialogs.mjs +11 -54
  150. package/dist/esm/form/FormDialogs.mjs.map +1 -1
  151. package/dist/esm/form/FormDialogs.native.js +9 -51
  152. package/dist/esm/form/FormDialogs.native.js.map +1 -1
  153. package/dist/esm/form/FormTimeline.mjs +17 -17
  154. package/dist/esm/form/FormTimeline.mjs.map +1 -1
  155. package/dist/esm/form/FormTimeline.native.js +17 -17
  156. package/dist/esm/form/FormTimeline.native.js.map +1 -1
  157. package/dist/esm/form/FormToolbar.mjs +77 -83
  158. package/dist/esm/form/FormToolbar.mjs.map +1 -1
  159. package/dist/esm/form/FormToolbar.native.js +77 -83
  160. package/dist/esm/form/FormToolbar.native.js.map +1 -1
  161. package/dist/esm/formBuilder/FormBuilderCanvas.mjs +19 -27
  162. package/dist/esm/formBuilder/FormBuilderCanvas.mjs.map +1 -1
  163. package/dist/esm/formBuilder/FormBuilderCanvas.native.js +19 -27
  164. package/dist/esm/formBuilder/FormBuilderCanvas.native.js.map +1 -1
  165. package/dist/esm/i18n/en.mjs +2 -3
  166. package/dist/esm/i18n/en.mjs.map +1 -1
  167. package/dist/esm/i18n/en.native.js +2 -3
  168. package/dist/esm/i18n/en.native.js.map +1 -1
  169. package/dist/esm/index.mjs +4 -3
  170. package/dist/esm/index.mjs.map +1 -1
  171. package/dist/esm/index.native.js +4 -3
  172. package/dist/esm/index.native.js.map +1 -1
  173. package/dist/esm/list/DoctypeListScreen.mjs +12 -18
  174. package/dist/esm/list/DoctypeListScreen.mjs.map +1 -1
  175. package/dist/esm/list/DoctypeListScreen.native.js +16 -22
  176. package/dist/esm/list/DoctypeListScreen.native.js.map +1 -1
  177. package/dist/esm/list/ListBulkActionsBar.mjs +11 -9
  178. package/dist/esm/list/ListBulkActionsBar.mjs.map +1 -1
  179. package/dist/esm/list/ListBulkActionsBar.native.js +11 -9
  180. package/dist/esm/list/ListBulkActionsBar.native.js.map +1 -1
  181. package/dist/esm/list/filter-editor.mjs +5 -7
  182. package/dist/esm/list/filter-editor.mjs.map +1 -1
  183. package/dist/esm/list/filter-editor.native.js +5 -7
  184. package/dist/esm/list/filter-editor.native.js.map +1 -1
  185. package/dist/esm/list/filter-saved.mjs +6 -6
  186. package/dist/esm/list/filter-saved.mjs.map +1 -1
  187. package/dist/esm/list/filter-saved.native.js +6 -6
  188. package/dist/esm/list/filter-saved.native.js.map +1 -1
  189. package/dist/esm/list/sidebar-section.mjs +15 -71
  190. package/dist/esm/list/sidebar-section.mjs.map +1 -1
  191. package/dist/esm/list/sidebar-section.native.js +13 -71
  192. package/dist/esm/list/sidebar-section.native.js.map +1 -1
  193. package/dist/esm/navigation/paths.mjs +7 -2
  194. package/dist/esm/navigation/paths.mjs.map +1 -1
  195. package/dist/esm/navigation/paths.native.js +8 -1
  196. package/dist/esm/navigation/paths.native.js.map +1 -1
  197. package/dist/esm/quickEntry/QuickEntryDialog.mjs +10 -9
  198. package/dist/esm/quickEntry/QuickEntryDialog.mjs.map +1 -1
  199. package/dist/esm/quickEntry/QuickEntryDialog.native.js +10 -9
  200. package/dist/esm/quickEntry/QuickEntryDialog.native.js.map +1 -1
  201. package/dist/esm/report/QueryReportScreen.mjs +5 -7
  202. package/dist/esm/report/QueryReportScreen.mjs.map +1 -1
  203. package/dist/esm/report/QueryReportScreen.native.js +5 -7
  204. package/dist/esm/report/QueryReportScreen.native.js.map +1 -1
  205. package/dist/esm/shell/AllDoctypesScreen.mjs +304 -0
  206. package/dist/esm/shell/AllDoctypesScreen.mjs.map +1 -0
  207. package/dist/esm/shell/AllDoctypesScreen.native.js +430 -0
  208. package/dist/esm/shell/AllDoctypesScreen.native.js.map +1 -0
  209. package/dist/esm/shell/BackofficeShell.mjs +25 -65
  210. package/dist/esm/shell/BackofficeShell.mjs.map +1 -1
  211. package/dist/esm/shell/BackofficeShell.native.js +25 -66
  212. package/dist/esm/shell/BackofficeShell.native.js.map +1 -1
  213. package/dist/esm/shell/WorkspaceSidebar.mjs +50 -151
  214. package/dist/esm/shell/WorkspaceSidebar.mjs.map +1 -1
  215. package/dist/esm/shell/WorkspaceSidebar.native.js +53 -159
  216. package/dist/esm/shell/WorkspaceSidebar.native.js.map +1 -1
  217. package/dist/esm/shell/workspaceIcons.mjs +33 -2
  218. package/dist/esm/shell/workspaceIcons.mjs.map +1 -1
  219. package/dist/esm/shell/workspaceIcons.native.js +33 -2
  220. package/dist/esm/shell/workspaceIcons.native.js.map +1 -1
  221. package/dist/esm/views/ViewHeader.mjs +7 -12
  222. package/dist/esm/views/ViewHeader.mjs.map +1 -1
  223. package/dist/esm/views/ViewHeader.native.js +9 -14
  224. package/dist/esm/views/ViewHeader.native.js.map +1 -1
  225. package/dist/esm/views/ViewStates.mjs +6 -8
  226. package/dist/esm/views/ViewStates.mjs.map +1 -1
  227. package/dist/esm/views/ViewStates.native.js +6 -8
  228. package/dist/esm/views/ViewStates.native.js.map +1 -1
  229. package/dist/esm/views/kanban-board-controls.mjs +6 -7
  230. package/dist/esm/views/kanban-board-controls.mjs.map +1 -1
  231. package/dist/esm/views/kanban-board-controls.native.js +6 -7
  232. package/dist/esm/views/kanban-board-controls.native.js.map +1 -1
  233. package/dist/esm/workspace/WorkspaceLinkCard.mjs +24 -125
  234. package/dist/esm/workspace/WorkspaceLinkCard.mjs.map +1 -1
  235. package/dist/esm/workspace/WorkspaceLinkCard.native.js +25 -130
  236. package/dist/esm/workspace/WorkspaceLinkCard.native.js.map +1 -1
  237. package/dist/esm/workspace/WorkspaceLinkDirectory.mjs +0 -6
  238. package/dist/esm/workspace/WorkspaceLinkDirectory.mjs.map +1 -1
  239. package/dist/esm/workspace/WorkspaceLinkDirectory.native.js +0 -12
  240. package/dist/esm/workspace/WorkspaceLinkDirectory.native.js.map +1 -1
  241. package/dist/esm/workspace/WorkspaceNumberCard.mjs +24 -42
  242. package/dist/esm/workspace/WorkspaceNumberCard.mjs.map +1 -1
  243. package/dist/esm/workspace/WorkspaceNumberCard.native.js +24 -42
  244. package/dist/esm/workspace/WorkspaceNumberCard.native.js.map +1 -1
  245. package/dist/esm/workspace/WorkspaceQuickList.mjs +24 -20
  246. package/dist/esm/workspace/WorkspaceQuickList.mjs.map +1 -1
  247. package/dist/esm/workspace/WorkspaceQuickList.native.js +27 -24
  248. package/dist/esm/workspace/WorkspaceQuickList.native.js.map +1 -1
  249. package/dist/jsx/chrome/UserMenu.mjs +33 -18
  250. package/dist/jsx/chrome/UserMenu.mjs.map +1 -1
  251. package/dist/jsx/chrome/UserMenu.native.js +44 -28
  252. package/dist/jsx/chrome/UserMenu.native.js.map +1 -1
  253. package/dist/jsx/chrome/awesomebar-data.mjs +79 -33
  254. package/dist/jsx/chrome/awesomebar-data.mjs.map +1 -1
  255. package/dist/jsx/chrome/awesomebar-data.native.js +101 -45
  256. package/dist/jsx/chrome/awesomebar-data.native.js.map +1 -1
  257. package/dist/jsx/chrome/notifications-panel.mjs +25 -64
  258. package/dist/jsx/chrome/notifications-panel.mjs.map +1 -1
  259. package/dist/jsx/chrome/notifications-panel.native.js +22 -62
  260. package/dist/jsx/chrome/notifications-panel.native.js.map +1 -1
  261. package/dist/jsx/config/BackofficeProvider.mjs.map +1 -1
  262. package/dist/jsx/config/BackofficeProvider.native.js.map +1 -1
  263. package/dist/jsx/config/capabilities.mjs +4 -0
  264. package/dist/jsx/config/capabilities.mjs.map +1 -1
  265. package/dist/jsx/config/capabilities.native.js +4 -0
  266. package/dist/jsx/config/capabilities.native.js.map +1 -1
  267. package/dist/jsx/desk/Desk.mjs +6 -1
  268. package/dist/jsx/desk/Desk.mjs.map +1 -1
  269. package/dist/jsx/desk/Desk.native.js +6 -1
  270. package/dist/jsx/desk/Desk.native.js.map +1 -1
  271. package/dist/jsx/desk/DeskSurface.mjs +3 -0
  272. package/dist/jsx/desk/DeskSurface.mjs.map +1 -1
  273. package/dist/jsx/desk/DeskSurface.native.js +3 -0
  274. package/dist/jsx/desk/DeskSurface.native.js.map +1 -1
  275. package/dist/jsx/desk/resolveDeskPath.mjs +6 -1
  276. package/dist/jsx/desk/resolveDeskPath.mjs.map +1 -1
  277. package/dist/jsx/desk/resolveDeskPath.native.js +5 -0
  278. package/dist/jsx/desk/resolveDeskPath.native.js.map +1 -1
  279. package/dist/jsx/desk/target.mjs +4 -0
  280. package/dist/jsx/desk/target.mjs.map +1 -1
  281. package/dist/jsx/desk/target.native.js +4 -0
  282. package/dist/jsx/desk/target.native.js.map +1 -1
  283. package/dist/jsx/form/DocFormScreen.mjs +19 -17
  284. package/dist/jsx/form/DocFormScreen.mjs.map +1 -1
  285. package/dist/jsx/form/DocFormScreen.native.js +49 -47
  286. package/dist/jsx/form/DocFormScreen.native.js.map +1 -1
  287. package/dist/jsx/form/FormConnections.mjs +56 -127
  288. package/dist/jsx/form/FormConnections.mjs.map +1 -1
  289. package/dist/jsx/form/FormConnections.native.js +59 -127
  290. package/dist/jsx/form/FormConnections.native.js.map +1 -1
  291. package/dist/jsx/form/FormDialogs.mjs +11 -54
  292. package/dist/jsx/form/FormDialogs.mjs.map +1 -1
  293. package/dist/jsx/form/FormDialogs.native.js +7 -49
  294. package/dist/jsx/form/FormDialogs.native.js.map +1 -1
  295. package/dist/jsx/form/FormTimeline.mjs +17 -17
  296. package/dist/jsx/form/FormTimeline.mjs.map +1 -1
  297. package/dist/jsx/form/FormTimeline.native.js +17 -17
  298. package/dist/jsx/form/FormTimeline.native.js.map +1 -1
  299. package/dist/jsx/form/FormToolbar.mjs +77 -83
  300. package/dist/jsx/form/FormToolbar.mjs.map +1 -1
  301. package/dist/jsx/form/FormToolbar.native.js +76 -82
  302. package/dist/jsx/form/FormToolbar.native.js.map +1 -1
  303. package/dist/jsx/formBuilder/FormBuilderCanvas.mjs +19 -27
  304. package/dist/jsx/formBuilder/FormBuilderCanvas.mjs.map +1 -1
  305. package/dist/jsx/formBuilder/FormBuilderCanvas.native.js +16 -24
  306. package/dist/jsx/formBuilder/FormBuilderCanvas.native.js.map +1 -1
  307. package/dist/jsx/i18n/en.mjs +2 -3
  308. package/dist/jsx/i18n/en.mjs.map +1 -1
  309. package/dist/jsx/i18n/en.native.js +2 -3
  310. package/dist/jsx/i18n/en.native.js.map +1 -1
  311. package/dist/jsx/index.js +4 -3
  312. package/dist/jsx/index.js.map +1 -1
  313. package/dist/jsx/index.mjs +4 -3
  314. package/dist/jsx/index.mjs.map +1 -1
  315. package/dist/jsx/index.native.js +6 -0
  316. package/dist/jsx/index.native.js.map +1 -1
  317. package/dist/jsx/list/DoctypeListScreen.mjs +12 -18
  318. package/dist/jsx/list/DoctypeListScreen.mjs.map +1 -1
  319. package/dist/jsx/list/DoctypeListScreen.native.js +15 -21
  320. package/dist/jsx/list/DoctypeListScreen.native.js.map +1 -1
  321. package/dist/jsx/list/ListBulkActionsBar.mjs +11 -9
  322. package/dist/jsx/list/ListBulkActionsBar.mjs.map +1 -1
  323. package/dist/jsx/list/ListBulkActionsBar.native.js +10 -8
  324. package/dist/jsx/list/ListBulkActionsBar.native.js.map +1 -1
  325. package/dist/jsx/list/filter-editor.mjs +5 -7
  326. package/dist/jsx/list/filter-editor.mjs.map +1 -1
  327. package/dist/jsx/list/filter-editor.native.js +4 -6
  328. package/dist/jsx/list/filter-editor.native.js.map +1 -1
  329. package/dist/jsx/list/filter-saved.mjs +6 -6
  330. package/dist/jsx/list/filter-saved.mjs.map +1 -1
  331. package/dist/jsx/list/filter-saved.native.js +4 -4
  332. package/dist/jsx/list/filter-saved.native.js.map +1 -1
  333. package/dist/jsx/list/sidebar-section.mjs +15 -71
  334. package/dist/jsx/list/sidebar-section.mjs.map +1 -1
  335. package/dist/jsx/list/sidebar-section.native.js +11 -69
  336. package/dist/jsx/list/sidebar-section.native.js.map +1 -1
  337. package/dist/jsx/navigation/paths.mjs +7 -2
  338. package/dist/jsx/navigation/paths.mjs.map +1 -1
  339. package/dist/jsx/navigation/paths.native.js +9 -0
  340. package/dist/jsx/navigation/paths.native.js.map +1 -1
  341. package/dist/jsx/quickEntry/QuickEntryDialog.mjs +10 -9
  342. package/dist/jsx/quickEntry/QuickEntryDialog.mjs.map +1 -1
  343. package/dist/jsx/quickEntry/QuickEntryDialog.native.js +27 -26
  344. package/dist/jsx/quickEntry/QuickEntryDialog.native.js.map +1 -1
  345. package/dist/jsx/report/QueryReportScreen.mjs +5 -7
  346. package/dist/jsx/report/QueryReportScreen.mjs.map +1 -1
  347. package/dist/jsx/report/QueryReportScreen.native.js +4 -6
  348. package/dist/jsx/report/QueryReportScreen.native.js.map +1 -1
  349. package/dist/jsx/shell/AllDoctypesScreen.mjs +304 -0
  350. package/dist/jsx/shell/AllDoctypesScreen.mjs.map +1 -0
  351. package/dist/jsx/shell/AllDoctypesScreen.native.js +460 -0
  352. package/dist/jsx/shell/AllDoctypesScreen.native.js.map +1 -0
  353. package/dist/jsx/shell/BackofficeShell.mjs +25 -65
  354. package/dist/jsx/shell/BackofficeShell.mjs.map +1 -1
  355. package/dist/jsx/shell/BackofficeShell.native.js +22 -63
  356. package/dist/jsx/shell/BackofficeShell.native.js.map +1 -1
  357. package/dist/jsx/shell/WorkspaceSidebar.mjs +50 -151
  358. package/dist/jsx/shell/WorkspaceSidebar.mjs.map +1 -1
  359. package/dist/jsx/shell/WorkspaceSidebar.native.js +51 -157
  360. package/dist/jsx/shell/WorkspaceSidebar.native.js.map +1 -1
  361. package/dist/jsx/shell/workspaceIcons.mjs +33 -2
  362. package/dist/jsx/shell/workspaceIcons.mjs.map +1 -1
  363. package/dist/jsx/shell/workspaceIcons.native.js +32 -0
  364. package/dist/jsx/shell/workspaceIcons.native.js.map +1 -1
  365. package/dist/jsx/views/ViewHeader.mjs +7 -12
  366. package/dist/jsx/views/ViewHeader.mjs.map +1 -1
  367. package/dist/jsx/views/ViewHeader.native.js +7 -12
  368. package/dist/jsx/views/ViewHeader.native.js.map +1 -1
  369. package/dist/jsx/views/ViewStates.mjs +6 -8
  370. package/dist/jsx/views/ViewStates.mjs.map +1 -1
  371. package/dist/jsx/views/ViewStates.native.js +5 -7
  372. package/dist/jsx/views/ViewStates.native.js.map +1 -1
  373. package/dist/jsx/views/kanban-board-controls.mjs +6 -7
  374. package/dist/jsx/views/kanban-board-controls.mjs.map +1 -1
  375. package/dist/jsx/views/kanban-board-controls.native.js +4 -5
  376. package/dist/jsx/views/kanban-board-controls.native.js.map +1 -1
  377. package/dist/jsx/workspace/WorkspaceLinkCard.mjs +24 -125
  378. package/dist/jsx/workspace/WorkspaceLinkCard.mjs.map +1 -1
  379. package/dist/jsx/workspace/WorkspaceLinkCard.native.js +23 -128
  380. package/dist/jsx/workspace/WorkspaceLinkCard.native.js.map +1 -1
  381. package/dist/jsx/workspace/WorkspaceLinkDirectory.mjs +0 -6
  382. package/dist/jsx/workspace/WorkspaceLinkDirectory.mjs.map +1 -1
  383. package/dist/jsx/workspace/WorkspaceLinkDirectory.native.js +0 -12
  384. package/dist/jsx/workspace/WorkspaceLinkDirectory.native.js.map +1 -1
  385. package/dist/jsx/workspace/WorkspaceNumberCard.mjs +24 -42
  386. package/dist/jsx/workspace/WorkspaceNumberCard.mjs.map +1 -1
  387. package/dist/jsx/workspace/WorkspaceNumberCard.native.js +23 -41
  388. package/dist/jsx/workspace/WorkspaceNumberCard.native.js.map +1 -1
  389. package/dist/jsx/workspace/WorkspaceQuickList.mjs +24 -20
  390. package/dist/jsx/workspace/WorkspaceQuickList.mjs.map +1 -1
  391. package/dist/jsx/workspace/WorkspaceQuickList.native.js +28 -25
  392. package/dist/jsx/workspace/WorkspaceQuickList.native.js.map +1 -1
  393. package/package.json +12 -12
  394. package/src/backofficeScreens.designLaw.spec.ts +2 -2
  395. package/src/chrome/CommandPalette.spec.tsx +12 -0
  396. package/src/chrome/NotificationsButton.screen.spec.tsx +2 -0
  397. package/src/chrome/UserMenu.screen.spec.tsx +8 -0
  398. package/src/chrome/UserMenu.tsx +27 -17
  399. package/src/chrome/awesomebar-data.tsx +115 -38
  400. package/src/chrome/notifications-panel.tsx +23 -64
  401. package/src/config/BackofficeProvider.tsx +9 -4
  402. package/src/config/capabilities.spec.ts +19 -1
  403. package/src/config/capabilities.ts +13 -4
  404. package/src/desk/Desk.tsx +20 -4
  405. package/src/desk/DeskSurface.tsx +3 -0
  406. package/src/desk/resolveDeskPath.spec.ts +4 -0
  407. package/src/desk/resolveDeskPath.ts +7 -1
  408. package/src/desk/target.ts +3 -0
  409. package/src/form/DocFormScreen.tsx +19 -10
  410. package/src/form/FormConnections.tsx +86 -153
  411. package/src/form/FormDialogs.tsx +21 -50
  412. package/src/form/FormTimeline.tsx +10 -11
  413. package/src/form/FormToolbar.screen.spec.tsx +15 -0
  414. package/src/form/FormToolbar.tsx +74 -86
  415. package/src/form/JumpToFieldDialog.stories.tsx +37 -0
  416. package/src/formBuilder/FormBuilderCanvas.tsx +27 -23
  417. package/src/i18n/en.ts +2 -3
  418. package/src/index.ts +7 -1
  419. package/src/list/DoctypeListScreen.compactHead.screen.spec.tsx +1 -1
  420. package/src/list/DoctypeListScreen.tsx +12 -16
  421. package/src/list/ListBulkActionsBar.tsx +12 -9
  422. package/src/list/filter-editor.tsx +6 -4
  423. package/src/list/filter-saved.tsx +6 -7
  424. package/src/list/sidebar-section.spec.tsx +15 -1
  425. package/src/list/sidebar-section.tsx +12 -70
  426. package/src/navigation/paths.ts +11 -0
  427. package/src/quickEntry/QuickEntryDialog.tsx +13 -7
  428. package/src/report/QueryReportScreen.spec.tsx +0 -1
  429. package/src/report/QueryReportScreen.tsx +5 -8
  430. package/src/shell/AllDoctypes.stories.tsx +164 -0
  431. package/src/shell/AllDoctypesScreen.screen.spec.tsx +290 -0
  432. package/src/shell/AllDoctypesScreen.tsx +389 -0
  433. package/src/shell/BackofficeShell.spec.tsx +11 -5
  434. package/src/shell/BackofficeShell.tsx +33 -64
  435. package/src/shell/WorkspaceSidebar.spec.tsx +40 -24
  436. package/src/shell/WorkspaceSidebar.tsx +75 -171
  437. package/src/shell/workspaceIcons.ts +45 -0
  438. package/src/views/CalendarView.screen.spec.tsx +1 -1
  439. package/src/views/ImageView.screen.spec.tsx +1 -1
  440. package/src/views/KanbanView.screen.spec.tsx +1 -1
  441. package/src/views/ViewHeader.tsx +7 -13
  442. package/src/views/ViewStates.tsx +6 -9
  443. package/src/views/kanban-board-controls.tsx +12 -4
  444. package/src/workspace/WorkspaceLinkCard.tsx +37 -113
  445. package/src/workspace/WorkspaceLinkDirectory.tsx +1 -16
  446. package/src/workspace/WorkspaceNumberCard.tsx +11 -21
  447. package/src/workspace/WorkspaceQuickList.tsx +27 -23
  448. package/types/chrome/UserMenu.d.ts.map +1 -1
  449. package/types/chrome/awesomebar-data.d.ts +14 -3
  450. package/types/chrome/awesomebar-data.d.ts.map +1 -1
  451. package/types/chrome/notifications-panel.d.ts.map +1 -1
  452. package/types/config/BackofficeProvider.d.ts +9 -4
  453. package/types/config/BackofficeProvider.d.ts.map +1 -1
  454. package/types/config/capabilities.d.ts +7 -1
  455. package/types/config/capabilities.d.ts.map +1 -1
  456. package/types/desk/Desk.d.ts +8 -3
  457. package/types/desk/Desk.d.ts.map +1 -1
  458. package/types/desk/DeskSurface.d.ts.map +1 -1
  459. package/types/desk/resolveDeskPath.d.ts +3 -1
  460. package/types/desk/resolveDeskPath.d.ts.map +1 -1
  461. package/types/desk/target.d.ts +2 -0
  462. package/types/desk/target.d.ts.map +1 -1
  463. package/types/form/DocFormScreen.d.ts.map +1 -1
  464. package/types/form/FormConnections.d.ts.map +1 -1
  465. package/types/form/FormDialogs.d.ts.map +1 -1
  466. package/types/form/FormTimeline.d.ts.map +1 -1
  467. package/types/form/FormToolbar.d.ts.map +1 -1
  468. package/types/formBuilder/FormBuilderCanvas.d.ts.map +1 -1
  469. package/types/i18n/en.d.ts +2 -3
  470. package/types/i18n/en.d.ts.map +1 -1
  471. package/types/index.d.ts +6 -4
  472. package/types/index.d.ts.map +1 -1
  473. package/types/list/DoctypeListScreen.d.ts.map +1 -1
  474. package/types/list/ListBulkActionsBar.d.ts.map +1 -1
  475. package/types/list/filter-editor.d.ts.map +1 -1
  476. package/types/list/filter-saved.d.ts.map +1 -1
  477. package/types/list/sidebar-section.d.ts +1 -1
  478. package/types/list/sidebar-section.d.ts.map +1 -1
  479. package/types/navigation/paths.d.ts +6 -0
  480. package/types/navigation/paths.d.ts.map +1 -1
  481. package/types/quickEntry/QuickEntryDialog.d.ts.map +1 -1
  482. package/types/report/QueryReportScreen.d.ts.map +1 -1
  483. package/types/shell/AllDoctypesScreen.d.ts +18 -0
  484. package/types/shell/AllDoctypesScreen.d.ts.map +1 -0
  485. package/types/shell/BackofficeShell.d.ts.map +1 -1
  486. package/types/shell/WorkspaceSidebar.d.ts +8 -1
  487. package/types/shell/WorkspaceSidebar.d.ts.map +1 -1
  488. package/types/shell/workspaceIcons.d.ts +2 -0
  489. package/types/shell/workspaceIcons.d.ts.map +1 -1
  490. package/types/views/ViewHeader.d.ts.map +1 -1
  491. package/types/views/ViewStates.d.ts.map +1 -1
  492. package/types/views/kanban-board-controls.d.ts.map +1 -1
  493. package/types/workspace/WorkspaceLinkCard.d.ts.map +1 -1
  494. package/types/workspace/WorkspaceLinkDirectory.d.ts.map +1 -1
  495. package/types/workspace/WorkspaceNumberCard.d.ts.map +1 -1
  496. package/types/workspace/WorkspaceQuickList.d.ts.map +1 -1
@@ -1,5 +1,3 @@
1
- import React from "react";
2
- import { getVariableValue, useTheme } from "tamagui";
3
1
  import { InMemoryFixtureProvider } from "@multiplatform.one/frappe";
4
2
  import { renderWithProviders } from "@multiplatform.one/test-utils";
5
3
  import { cleanup, screen, waitFor } from "@testing-library/react";
@@ -8,11 +6,6 @@ import { BackofficeProvider } from "../config/BackofficeProvider";
8
6
  import { createMemoryNavigator } from "../navigation/navigator";
9
7
  import { WorkspaceSidebar } from "./WorkspaceSidebar";
10
8
 
11
- function SelectedInk() {
12
- const theme = useTheme();
13
- return <span data-testid="selected-ink" data-ink={String(getVariableValue(theme.color12))} />;
14
- }
15
-
16
9
  const MOCK_HOST = "https://backoffice-shell-nav.mock.test";
17
10
 
18
11
  const makeFixtures = () =>
@@ -54,44 +47,67 @@ const makeFixtures = () =>
54
47
  module: "Core",
55
48
  is_hidden: 0,
56
49
  },
50
+ {
51
+ name: "Delta",
52
+ doctype: "Workspace",
53
+ title: "Delta",
54
+ icon: "tool",
55
+ parent_page: "Beta",
56
+ public: 1,
57
+ for_user: "",
58
+ sequence_id: 4,
59
+ module: "Core",
60
+ is_hidden: 0,
61
+ },
57
62
  ],
58
63
  });
59
64
 
60
65
  afterEach(cleanup);
61
66
 
62
- describe("WorkspaceSidebar LC-72 stacked nav", () => {
63
- it("marks first / middle / last and paints selected as fill", async () => {
67
+ describe("WorkspaceSidebar is MPO's Sidebar (LC-175)", () => {
68
+ it("rows stack as one group, nested ones indented, the current one marked", async () => {
64
69
  renderWithProviders(
65
70
  <BackofficeProvider
66
71
  frappe={{ baseURL: MOCK_HOST, fixtures: makeFixtures() }}
67
72
  navigation={createMemoryNavigator("/backoffice/beta")}
68
73
  >
69
- <SelectedInk />
70
74
  <WorkspaceSidebar activePath="/backoffice/beta" />
71
75
  </BackofficeProvider>,
72
76
  );
73
77
 
74
78
  const rows = await waitFor(() => {
75
- const found = screen.getAllByTestId("backoffice-workspace-row");
76
- expect(found).toHaveLength(3);
79
+ const found = Array.from(
80
+ screen
81
+ .getByTestId("backoffice-workspace-nav")
82
+ .querySelectorAll("[data-sidebar-row]:not([data-testid='backoffice-all-doctypes-row'])"),
83
+ ) as HTMLElement[];
84
+ expect(found).toHaveLength(4);
77
85
  return found;
78
86
  });
79
87
 
80
- expect(rows[0].getAttribute("data-group-position")).toBe("first");
81
- expect(rows[1].getAttribute("data-group-position")).toBe("middle");
82
- expect(rows[2].getAttribute("data-group-position")).toBe("last");
88
+ // All DocTypes leads in a group of its own; the workspaces share one.
89
+ const groups = screen
90
+ .getByTestId("backoffice-workspace-nav")
91
+ .querySelectorAll("[data-sidebar-group]");
92
+ expect(groups).toHaveLength(2);
93
+ expect(groups[0].textContent).toBe("All DocTypes");
94
+ for (const row of rows) expect(groups[1].contains(row)).toBe(true);
95
+
96
+ expect(rows.map((row) => row.textContent)).toEqual(["Alpha", "Beta", "Delta", "Gamma"]);
97
+ expect(rows.map((row) => row.getAttribute("data-group-position"))).toEqual([
98
+ "first",
99
+ "middle",
100
+ "middle",
101
+ "last",
102
+ ]);
103
+ expect(rows[2].getAttribute("data-depth")).toBe("1");
104
+ expect(rows[2].querySelectorAll("[data-sidebar-indent]")).toHaveLength(1);
105
+ expect(rows[1].getAttribute("data-depth")).toBeNull();
83
106
 
84
107
  expect(rows[1].className).toContain("_bg-color4");
85
- expect(rows[1].className).toContain("_col-color12");
86
- expect(rows[1].querySelector("svg")?.getAttribute("fill")).toBe(
87
- screen.getByTestId("selected-ink").getAttribute("data-ink"),
88
- );
89
- expect(rows[1].className).toContain("_bg-0hover-color5");
90
- expect(rows[1].className).toContain("_bg-0active-color5");
91
- expect(screen.getByText("Beta").className).toContain("_col-color12");
92
108
  expect(rows[1].getAttribute("data-active")).toBe("true");
93
109
  expect(rows[1].getAttribute("aria-current")).toBe("page");
94
- expect(rows[0].getAttribute("data-active")).toBe("false");
95
- expect(rows[2].getAttribute("aria-current")).toBeNull();
110
+ expect(rows[0].getAttribute("data-active")).toBeNull();
111
+ expect(rows[3].getAttribute("aria-current")).toBeNull();
96
112
  });
97
113
  });
@@ -1,40 +1,28 @@
1
1
  /**
2
2
  * Left workspace navigation for the backoffice shell (desk parity).
3
3
  *
4
- * Private workspaces (for_user = session user) on top, public workspaces
5
- * below ordered by sequence_id, children nested via parent_page (rendered
4
+ * An "All DocTypes" row leads in a group of its own, opening every DocType
5
+ * on offer by module. Private workspaces (for_user = session user) follow,
6
+ * public workspaces
7
+ * below them ordered by sequence_id, children nested via parent_page (rendered
6
8
  * indented under their parent). Data is live via useWorkspaces; paths come
7
9
  * from the BackofficeProvider (basePath-aware).
8
10
  *
9
- * Rows are one stacked group split by inset hairlines; each row is a
10
- * rounded pill so the selected row's neutral fill reads as a tab, not as a
11
- * slice of the group. LC-71/LC-05: selected = the neutral selection fill;
12
- * keyboard focus paints an inset ring on the row, never a selection border
13
- * on every sibling. The column-edge hairline is owned by BackofficeShell so
14
- * it spans the full rail height (footer included) — this nav paints none.
11
+ * The rail is MPO's Sidebar (LC-175): its rows, selection fill, keyboard
12
+ * ring, captions and end hairline are the catalog's. The shell's page panel
13
+ * and host footer ride its footer so they share the rail's surface.
15
14
  */
16
15
  import {
17
- componentColors,
18
- ScrollView,
19
- Separator,
20
- SizableText,
16
+ Sidebar,
21
17
  Spinner,
22
- XStack,
23
- YStack,
24
- useTheme,
25
18
  type SidebarItem,
26
19
  type SidebarSection,
27
20
  } from "@multiplatform.one/components";
28
- import {
29
- ensureFocusVisibleRing,
30
- getGroupPosition,
31
- hairline,
32
- useResolvedKnobs,
33
- } from "@multiplatform.one/theme";
34
- import type { Icon as PhosphorIcon } from "@phosphor-icons/react";
35
- import { useMemo } from "react";
21
+ import { useResolvedKnobs } from "@multiplatform.one/theme";
22
+ import { StackIcon, type Icon as PhosphorIcon } from "@phosphor-icons/react";
23
+ import { useMemo, type ReactNode } from "react";
36
24
  import { useTranslation } from "react-i18next";
37
- import { useBackofficePaths } from "../config/BackofficeProvider";
25
+ import { useBackofficeCapabilities, useBackofficePaths } from "../config/BackofficeProvider";
38
26
  import { BACKOFFICE_I18N_NAMESPACE } from "../i18n";
39
27
  import type { BackofficePaths } from "../navigation/paths";
40
28
  import { useWorkspaces, type WorkspaceDoc } from "./useWorkspaces";
@@ -47,6 +35,12 @@ export interface WorkspaceSidebarProps {
47
35
  activePath?: string;
48
36
  /** Called with the target path when a workspace is selected. */
49
37
  onNavigate?: (path: string) => void;
38
+ /** Rail width; "100%" when the nav fills a sheet. */
39
+ width?: number | string;
40
+ /** The rail's end hairline (off in a sheet). */
41
+ divider?: boolean;
42
+ /** Pinned under the workspaces in the rail (page panel, host footer). */
43
+ footer?: ReactNode;
50
44
  }
51
45
 
52
46
  function workspaceItem(
@@ -59,12 +53,13 @@ function workspaceItem(
59
53
  const path = paths.workspace(workspace.name);
60
54
  const IconComponent = workspaceIcon(workspace.icon, workspace.name);
61
55
  const active = activePath === path;
62
- const icon = <NavIcon Icon={IconComponent} depth={depth} active={active} />;
56
+ const icon = <NavIcon Icon={IconComponent} active={active} />;
63
57
  return {
64
58
  label: workspace.title || workspace.name,
65
59
  value: path,
66
60
  icon,
67
61
  active,
62
+ depth,
68
63
  onPress: onNavigate ? () => onNavigate(path) : undefined,
69
64
  };
70
65
  }
@@ -92,143 +87,25 @@ function flattenTree(
92
87
  }
93
88
 
94
89
  /**
95
- * Phosphor takes a resolved colour string, not a token: native renders an
96
- * uncoloured glyph black, which vanishes on the dark scheme.
90
+ * The glyph takes the rail's ink (secondary at rest, accent when selected)
91
+ * from the Sidebar's icon slot; only its weight says which row is current.
97
92
  */
98
- function NavIcon({ Icon, depth, active }: { Icon: PhosphorIcon; depth: number; active: boolean }) {
99
- const theme = useTheme();
93
+ function NavIcon({ Icon, active }: { Icon: PhosphorIcon; active: boolean }) {
100
94
  const { knobProps } = useResolvedKnobs();
101
- const size = Number(knobProps.controlIcon?.width) || 20;
102
- const color = (active ? theme.color12 : theme.color10)?.val;
103
- return (
104
- // Depth-based inset carried by the icon slot — the Sidebar row API has
105
- // no nesting support, so children indent icon+label via this wrapper.
106
- <XStack paddingLeft={depth > 0 ? depth * size : 0}>
107
- <Icon
108
- size={size}
109
- weight={active ? "fill" : "regular"}
110
- {...(typeof color === "string" ? { color } : {})}
111
- />
112
- </XStack>
113
- );
95
+ const size = Number(knobProps.controlIcon?.width) || undefined;
96
+ return <Icon size={size} weight={active ? "fill" : "regular"} />;
114
97
  }
115
98
 
116
- function NavRow({
117
- item,
118
- position,
119
- }: {
120
- item: SidebarItem;
121
- position: ReturnType<typeof getGroupPosition>;
122
- }) {
123
- const { knobProps } = useResolvedKnobs();
124
- const rowPad = knobProps.panelPadding.padding;
125
- const corners = knobProps.borderRadius;
126
- const ink = item.active ? componentColors.selection.ink : undefined;
127
- return (
128
- <XStack
129
- role="button"
130
- aria-current={item.active ? "page" : undefined}
131
- data-testid="backoffice-workspace-row"
132
- data-group-position={position}
133
- data-active={item.active ? "true" : "false"}
134
- alignItems="center"
135
- gap="$3"
136
- minHeight={knobProps.sizeToken}
137
- paddingHorizontal={rowPad}
138
- paddingVertical="$2"
139
- overflow="hidden"
140
- userSelect="none"
141
- {...corners}
142
- {...({ color: ink } as Record<string, unknown>)}
143
- backgroundColor={item.active ? componentColors.selection.background : "transparent"}
144
- hoverStyle={{
145
- backgroundColor: item.active ? componentColors.selection.hover : "$color3",
146
- ...corners,
147
- }}
148
- pressStyle={{
149
- backgroundColor: item.active ? componentColors.selection.press : "$color4",
150
- ...corners,
151
- }}
152
- cursor={item.onPress ? "pointer" : "default"}
153
- onPress={item.onPress}
154
- tabIndex={item.onPress ? 0 : undefined}
155
- outlineWidth={0}
156
- focusStyle={{ outlineWidth: 0 }}
157
- focusVisibleStyle={ensureFocusVisibleRing({
158
- outlineOffset: -2,
159
- outlineColor: "$outlineColor",
160
- })}
161
- onKeyDown={
162
- ((e: { key?: string; preventDefault?: () => void }) => {
163
- if (e.key === "Enter" || e.key === " ") {
164
- e.preventDefault?.();
165
- item.onPress?.();
166
- }
167
- }) as unknown as () => void
168
- }
169
- >
170
- {item.icon}
171
- <SizableText
172
- size="$4"
173
- numberOfLines={1}
174
- flex={1}
175
- flexShrink={1}
176
- fontWeight="400"
177
- color="$color12"
178
- >
179
- {item.label}
180
- </SizableText>
181
- </XStack>
182
- );
183
- }
184
-
185
- function WorkspaceNav({ sections }: { sections: SidebarSection[] }) {
186
- const { knobProps } = useResolvedKnobs();
187
- const rowPad = knobProps.panelPadding.padding;
188
- return (
189
- <YStack width="100%" flex={1} height="100%" minHeight={0}>
190
- <ScrollView flex={1}>
191
- <YStack {...knobProps.panelPadding} paddingHorizontal="$2" {...knobProps.gapLg}>
192
- {sections.map((section, sectionIdx) => (
193
- <YStack key={section.title ?? sectionIdx} {...knobProps.gap}>
194
- {section.title ? (
195
- <YStack paddingHorizontal={rowPad}>
196
- <SizableText
197
- size="$2"
198
- fontWeight="400"
199
- textTransform="uppercase"
200
- color="$color11"
201
- >
202
- {section.title}
203
- </SizableText>
204
- </YStack>
205
- ) : null}
206
- <YStack>
207
- {section.items.map((item, itemIdx) => {
208
- const position = getGroupPosition(itemIdx, section.items.length);
209
- return (
210
- <YStack key={String(item.value ?? item.label)}>
211
- {itemIdx > 0 ? (
212
- <YStack paddingHorizontal={rowPad}>
213
- <Separator {...hairline.line} />
214
- </YStack>
215
- ) : null}
216
- <NavRow item={item} position={position} />
217
- </YStack>
218
- );
219
- })}
220
- </YStack>
221
- </YStack>
222
- ))}
223
- </YStack>
224
- </ScrollView>
225
- </YStack>
226
- );
227
- }
228
-
229
- export function WorkspaceSidebar({ activePath, onNavigate }: WorkspaceSidebarProps) {
99
+ export function WorkspaceSidebar({
100
+ activePath,
101
+ onNavigate,
102
+ width = WORKSPACE_SIDEBAR_WIDTH,
103
+ divider = true,
104
+ footer,
105
+ }: WorkspaceSidebarProps) {
230
106
  const { t } = useTranslation(BACKOFFICE_I18N_NAMESPACE);
231
107
  const paths = useBackofficePaths();
108
+ const { views } = useBackofficeCapabilities();
232
109
  const { privateWorkspaces, publicRoots, childrenByParent, isLoading } = useWorkspaces();
233
110
 
234
111
  const sections = useMemo<SidebarSection[]>(() => {
@@ -253,20 +130,47 @@ export function WorkspaceSidebar({ activePath, onNavigate }: WorkspaceSidebarPro
253
130
  return result;
254
131
  }, [privateWorkspaces, publicRoots, childrenByParent, paths, activePath, onNavigate, t]);
255
132
 
256
- if (isLoading && sections.length === 0) {
257
- return (
258
- <YStack
259
- width="100%"
260
- flex={1}
261
- height="100%"
262
- alignItems="center"
263
- paddingTop="$6"
264
- aria-label={t("sidebar.loading", "Loading workspaces")}
265
- >
266
- <Spinner size="small" />
267
- </YStack>
268
- );
269
- }
133
+ const allDoctypes = useMemo<SidebarSection | undefined>(() => {
134
+ if (!views.enabled) return undefined;
135
+ const path = paths.allDoctypes();
136
+ const active = activePath === path;
137
+ return {
138
+ items: [
139
+ {
140
+ label: t("allDoctypes.title", "All DocTypes"),
141
+ value: path,
142
+ icon: <NavIcon Icon={StackIcon} active={active} />,
143
+ active,
144
+ testID: "backoffice-all-doctypes-row",
145
+ onPress: onNavigate ? () => onNavigate(path) : undefined,
146
+ },
147
+ ],
148
+ };
149
+ }, [views.enabled, paths, activePath, onNavigate, t]);
150
+
151
+ const loading = isLoading && sections.length === 0;
152
+ const workspaceSections = loading
153
+ ? [
154
+ {
155
+ items: [
156
+ {
157
+ label: t("sidebar.loading", "Loading workspaces"),
158
+ value: "__loading",
159
+ icon: <Spinner size="small" />,
160
+ },
161
+ ],
162
+ },
163
+ ]
164
+ : sections;
270
165
 
271
- return <WorkspaceNav sections={sections} />;
166
+ return (
167
+ <Sidebar
168
+ sections={allDoctypes ? [allDoctypes, ...workspaceSections] : workspaceSections}
169
+ width={width}
170
+ divider={divider}
171
+ footer={footer}
172
+ aria-label={t("shell.navigation", "Navigation")}
173
+ testID="backoffice-workspace-nav"
174
+ />
175
+ );
272
176
  }
@@ -4,17 +4,23 @@
4
4
  * Unknown names fall back to a generic workspace glyph.
5
5
  */
6
6
  import {
7
+ AddressBookIcon,
7
8
  BuildingsIcon,
8
9
  CalculatorIcon,
9
10
  CalendarIcon,
10
11
  ChatCircleIcon,
12
+ ChatsCircleIcon,
11
13
  CoinsIcon,
14
+ DesktopIcon,
12
15
  EnvelopeIcon,
13
16
  FactoryIcon,
14
17
  FileIcon,
15
18
  FirstAidKitIcon,
19
+ FlowArrowIcon,
16
20
  GaugeIcon,
17
21
  GearIcon,
22
+ GearSixIcon,
23
+ GlobeHemisphereWestIcon,
18
24
  GlobeIcon,
19
25
  GraduationCapIcon,
20
26
  HammerIcon,
@@ -27,11 +33,15 @@ import {
27
33
  PackageIcon,
28
34
  PlantIcon,
29
35
  PlugsConnectedIcon,
36
+ PrinterIcon,
37
+ RobotIcon,
30
38
  RocketLaunchIcon,
31
39
  SealCheckIcon,
32
40
  ShoppingCartIcon,
41
+ SlidersHorizontalIcon,
33
42
  SquaresFourIcon,
34
43
  StorefrontIcon,
44
+ ToolboxIcon,
35
45
  UsersIcon,
36
46
  WrenchIcon,
37
47
  type Icon,
@@ -89,3 +99,38 @@ export function workspaceIcon(icon?: string, workspaceName?: string): Icon {
89
99
  }
90
100
  return SquaresFourIcon;
91
101
  }
102
+
103
+ /** Frappe's own modules (and the common ERPNext ones) by lowercased name. */
104
+ const MODULE_ICON_MAP: Record<string, Icon> = {
105
+ accounts: CalculatorIcon,
106
+ assets: BuildingsIcon,
107
+ automation: RobotIcon,
108
+ buying: ShoppingCartIcon,
109
+ contacts: AddressBookIcon,
110
+ core: GearSixIcon,
111
+ crm: HandshakeIcon,
112
+ custom: SlidersHorizontalIcon,
113
+ desk: DesktopIcon,
114
+ email: EnvelopeIcon,
115
+ geo: GlobeHemisphereWestIcon,
116
+ hr: IdentificationCardIcon,
117
+ integrations: PlugsConnectedIcon,
118
+ manufacturing: FactoryIcon,
119
+ printing: PrinterIcon,
120
+ projects: KanbanIcon,
121
+ "quality management": SealCheckIcon,
122
+ selling: StorefrontIcon,
123
+ setup: WrenchIcon,
124
+ social: ChatsCircleIcon,
125
+ stock: PackageIcon,
126
+ support: LifebuoyIcon,
127
+ utilities: ToolboxIcon,
128
+ website: GlobeIcon,
129
+ workflow: FlowArrowIcon,
130
+ };
131
+
132
+ /** The glyph for a DocType module; an unknown module reads as a workspace name. */
133
+ export function moduleIcon(module?: string): Icon {
134
+ const known = module ? MODULE_ICON_MAP[module.toLowerCase()] : undefined;
135
+ return known ?? workspaceIcon(undefined, module);
136
+ }
@@ -211,7 +211,7 @@ describe("<CalendarView />", () => {
211
211
  it("offers the list back when the doctype has no date field", async () => {
212
212
  const navigation = renderFixtureCalendar("QaCalNone");
213
213
  expect(await screen.findByText("Calendar not available", {}, { timeout: 5000 })).toBeTruthy();
214
- fireEvent.click(screen.getByText("Back to list"));
214
+ fireEvent.click(screen.getByRole("button", { name: "Back to list" }));
215
215
  expect(navigation.getLocation().path).toBe("/backoffice/qacalnone");
216
216
  });
217
217
 
@@ -105,7 +105,7 @@ describe("<ImageView />", () => {
105
105
  const navigation = renderImageView("QaImagePlain");
106
106
  expect(await screen.findByText("Image view not available", {}, { timeout: 5000 })).toBeTruthy();
107
107
  expect(screen.getByText("QaImagePlain has no image field.")).toBeTruthy();
108
- fireEvent.click(screen.getByText("Back to list"));
108
+ fireEvent.click(screen.getByRole("button", { name: "Back to list" }));
109
109
  expect(navigation.getLocation().path).toBe("/backoffice/qaimageplain");
110
110
  });
111
111
  });
@@ -259,7 +259,7 @@ describe("<KanbanView />", () => {
259
259
  expect(
260
260
  await screen.findByText("No Select field to board by", {}, { timeout: 5000 }),
261
261
  ).toBeTruthy();
262
- fireEvent.click(screen.getByText("Back to list"));
262
+ fireEvent.click(screen.getByRole("button", { name: "Back to list" }));
263
263
  expect(navigation.getLocation().path).toBe("/backoffice/qaboardnone");
264
264
  });
265
265
 
@@ -3,11 +3,11 @@
3
3
  // the page title, a single primary "New {doctype}" (desk "Add {doctype}"),
4
4
  // and ListViewSelect as one dropdown — never a segment per view. Catalog
5
5
  // PageHeader is the same primitive the list screen uses (LC-16).
6
- import { PageHeader, YStack } from "@multiplatform.one/components";
6
+ import { ActionButton, PageHeader, YStack } from "@multiplatform.one/components";
7
7
  import { Button } from "@multiplatform.one/forms";
8
8
  import { useDocRights, useFrappeConfig } from "@multiplatform.one/frappe-ui";
9
9
  import { useResolvedKnobs } from "@multiplatform.one/theme";
10
- import { ArrowSquareOutIcon, PlusIcon } from "@phosphor-icons/react";
10
+ import { ArrowSquareOutIcon } from "@phosphor-icons/react";
11
11
  import { useTranslation } from "react-i18next";
12
12
  import {
13
13
  useBackofficeCapabilities,
@@ -80,18 +80,12 @@ export function ViewHeader({ doctype, view }: ViewHeaderProps) {
80
80
  onViewChange={(next) => navigator.navigate(paths.view(doctype, next))}
81
81
  />
82
82
  {newDoc.enabled && rights.create ? (
83
- <Button
84
- size={knobProps.sizeToken}
85
- accent
86
- icon={PlusIcon}
83
+ <ActionButton
84
+ kind="add"
85
+ accentInk
86
+ label={t("views.new", { defaultValue: "New {{doctype}}", doctype })}
87
87
  onPress={() => navigator.navigate(paths.newDoc(doctype))}
88
- aria-label={t("views.new", {
89
- defaultValue: "New {{doctype}}",
90
- doctype,
91
- })}
92
- >
93
- {t("views.new", { defaultValue: "New {{doctype}}", doctype })}
94
- </Button>
88
+ />
95
89
  ) : null}
96
90
  </>
97
91
  }
@@ -1,9 +1,7 @@
1
1
  // Shared honest-state chrome for the alternate views: loading, error, and
2
2
  // "this view is not supported for this doctype" — each with a way back to
3
3
  // the list view (desk parity: unsupported views bounce you to list).
4
- import { EmptyState, Spinner, YStack } from "@multiplatform.one/components";
5
- import { Button } from "@multiplatform.one/forms";
6
- import { ListBulletsIcon } from "@phosphor-icons/react";
4
+ import { ActionButton, EmptyState, Spinner, YStack } from "@multiplatform.one/components";
7
5
  import { useTranslation } from "react-i18next";
8
6
  import { useBackofficeNavigator, useBackofficePaths } from "../config/BackofficeProvider";
9
7
  import { BACKOFFICE_I18N_NAMESPACE } from "../i18n";
@@ -21,13 +19,12 @@ export function BackToListButton({ doctype }: { doctype: string }) {
21
19
  const paths = useBackofficePaths();
22
20
  const { t } = useTranslation(BACKOFFICE_I18N_NAMESPACE);
23
21
  return (
24
- <Button
25
- size="$3"
26
- icon={ListBulletsIcon}
22
+ <ActionButton
23
+ kind="back"
24
+ primary
25
+ label={t("views.backToList", "Back to list")}
27
26
  onPress={() => navigator.navigate(paths.list(doctype))}
28
- >
29
- {t("views.backToList", "Back to list")}
30
- </Button>
27
+ />
31
28
  );
32
29
  }
33
30
 
@@ -11,6 +11,7 @@ import {
11
11
  Button,
12
12
  ConfirmDialog,
13
13
  DropdownMenu,
14
+ IconButton,
14
15
  Text,
15
16
  XStack,
16
17
  YStack,
@@ -18,7 +19,12 @@ import {
18
19
  } from "@multiplatform.one/components";
19
20
  import { Data } from "@multiplatform.one/frappe-ui";
20
21
  import { sizeRecipeEscape, useResolvedKnobs } from "@multiplatform.one/theme";
21
- import { CaretDownIcon, DotsThreeIcon, PlusIcon } from "@phosphor-icons/react";
22
+ import {
23
+ CaretDownIcon,
24
+ ColumnsPlusRightIcon,
25
+ DotsThreeIcon,
26
+ PlusIcon,
27
+ } from "@phosphor-icons/react";
22
28
  import { useState } from "react";
23
29
  import { useTranslation } from "react-i18next";
24
30
  import { BACKOFFICE_I18N_NAMESPACE } from "../i18n";
@@ -308,9 +314,11 @@ export function KanbanBoardEnd({
308
314
  )}
309
315
  alignItems="stretch"
310
316
  >
311
- <Button size={knobProps.sizeToken} icon={PlusIcon} onPress={() => setAddOpen(true)}>
312
- {t("views.kanbanAddColumn", "Add column")}
313
- </Button>
317
+ <IconButton
318
+ icon={ColumnsPlusRightIcon}
319
+ aria-label={t("views.kanbanAddColumn", "Add column")}
320
+ onPress={() => setAddOpen(true)}
321
+ />
314
322
  {restoreItems.length > 0 && (
315
323
  <DropdownMenu items={restoreItems} placement="bottom-end">
316
324
  <Button