@multiplatform.one/backoffice 6.6.0 → 7.0.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 (967) hide show
  1. package/dist/cjs/chrome/BackofficeAwesomebar.cjs +1 -0
  2. package/dist/cjs/chrome/BackofficeAwesomebar.native.js +1 -0
  3. package/dist/cjs/chrome/BackofficeAwesomebar.native.js.map +1 -1
  4. package/dist/cjs/chrome/CommandPalette.cjs +95 -18
  5. package/dist/cjs/chrome/CommandPalette.native.js +114 -31
  6. package/dist/cjs/chrome/CommandPalette.native.js.map +1 -1
  7. package/dist/cjs/chrome/HelpMenu.cjs +40 -55
  8. package/dist/cjs/chrome/HelpMenu.native.js +50 -66
  9. package/dist/cjs/chrome/HelpMenu.native.js.map +1 -1
  10. package/dist/cjs/chrome/awesomebar-data.cjs +51 -8
  11. package/dist/cjs/chrome/awesomebar-data.native.js +58 -10
  12. package/dist/cjs/chrome/awesomebar-data.native.js.map +1 -1
  13. package/dist/cjs/chrome/command-palette-model.cjs +1 -2
  14. package/dist/cjs/chrome/command-palette-model.native.js +1 -2
  15. package/dist/cjs/chrome/command-palette-model.native.js.map +1 -1
  16. package/dist/cjs/chrome/notifications-data.cjs +2 -0
  17. package/dist/cjs/chrome/notifications-data.native.js +2 -0
  18. package/dist/cjs/chrome/notifications-data.native.js.map +1 -1
  19. package/dist/cjs/chrome/notifications-panel.cjs +14 -4
  20. package/dist/cjs/chrome/notifications-panel.native.js +16 -4
  21. package/dist/cjs/chrome/notifications-panel.native.js.map +1 -1
  22. package/dist/cjs/chrome/shortcuts.native.js.map +1 -1
  23. package/dist/cjs/config/BackofficeProvider.cjs +2 -0
  24. package/dist/cjs/config/BackofficeProvider.native.js +2 -0
  25. package/dist/cjs/config/BackofficeProvider.native.js.map +1 -1
  26. package/dist/cjs/form/DocFormScreen.cjs +123 -14
  27. package/dist/cjs/form/DocFormScreen.native.js +147 -14
  28. package/dist/cjs/form/DocFormScreen.native.js.map +1 -1
  29. package/dist/cjs/form/FormConnections.cjs +37 -5
  30. package/dist/cjs/form/FormConnections.native.js +36 -5
  31. package/dist/cjs/form/FormConnections.native.js.map +1 -1
  32. package/dist/cjs/form/FormDialogs.cjs +104 -0
  33. package/dist/cjs/form/FormDialogs.native.js +110 -0
  34. package/dist/cjs/form/FormDialogs.native.js.map +1 -1
  35. package/dist/cjs/form/FormErrorBoundary.cjs +26 -5
  36. package/dist/cjs/form/FormErrorBoundary.native.js +25 -5
  37. package/dist/cjs/form/FormErrorBoundary.native.js.map +1 -1
  38. package/dist/cjs/form/FormSidebarPanel.cjs +71 -22
  39. package/dist/cjs/form/FormSidebarPanel.native.js +70 -22
  40. package/dist/cjs/form/FormSidebarPanel.native.js.map +1 -1
  41. package/dist/cjs/form/FormTimeline.cjs +133 -22
  42. package/dist/cjs/form/FormTimeline.native.js +171 -24
  43. package/dist/cjs/form/FormTimeline.native.js.map +1 -1
  44. package/dist/cjs/form/FormToolbar.cjs +50 -4
  45. package/dist/cjs/form/FormToolbar.native.js +50 -4
  46. package/dist/cjs/form/FormToolbar.native.js.map +1 -1
  47. package/dist/cjs/form/formActions.native.js.map +1 -1
  48. package/dist/cjs/form/formLayout.cjs +3 -13
  49. package/dist/cjs/form/formLayout.native.js +7 -13
  50. package/dist/cjs/form/formLayout.native.js.map +1 -1
  51. package/dist/cjs/form/platformHooks.cjs +48 -0
  52. package/dist/cjs/form/platformHooks.native.js +52 -0
  53. package/dist/cjs/form/platformHooks.native.js.map +1 -1
  54. package/dist/cjs/form/timeline-entries.cjs +56 -13
  55. package/dist/cjs/form/timeline-entries.native.js +58 -16
  56. package/dist/cjs/form/timeline-entries.native.js.map +1 -1
  57. package/dist/cjs/i18n/en.cjs +31 -9
  58. package/dist/cjs/i18n/en.native.js +31 -9
  59. package/dist/cjs/i18n/en.native.js.map +1 -1
  60. package/dist/cjs/index.cjs +13 -1
  61. package/dist/cjs/index.native.js +13 -1
  62. package/dist/cjs/index.native.js.map +1 -1
  63. package/dist/cjs/list/AddTagsDialog.cjs +12 -7
  64. package/dist/cjs/list/AddTagsDialog.native.js +12 -7
  65. package/dist/cjs/list/AddTagsDialog.native.js.map +1 -1
  66. package/dist/cjs/list/AssignToDialog.cjs +7 -4
  67. package/dist/cjs/list/AssignToDialog.native.js +7 -4
  68. package/dist/cjs/list/AssignToDialog.native.js.map +1 -1
  69. package/dist/cjs/list/DoctypeListScreen.cjs +124 -153
  70. package/dist/cjs/list/DoctypeListScreen.native.js +152 -198
  71. package/dist/cjs/list/DoctypeListScreen.native.js.map +1 -1
  72. package/dist/cjs/list/ListFilterBar.cjs +60 -41
  73. package/dist/cjs/list/ListFilterBar.native.js +62 -41
  74. package/dist/cjs/list/ListFilterBar.native.js.map +1 -1
  75. package/dist/cjs/list/ListSidebar.cjs +15 -13
  76. package/dist/cjs/list/ListSidebar.native.js +17 -17
  77. package/dist/cjs/list/ListSidebar.native.js.map +1 -1
  78. package/dist/cjs/list/bulk-edit-dialog.cjs +12 -7
  79. package/dist/cjs/list/bulk-edit-dialog.native.js +12 -7
  80. package/dist/cjs/list/bulk-edit-dialog.native.js.map +1 -1
  81. package/dist/cjs/list/filter-fields.cjs +23 -1
  82. package/dist/cjs/list/filter-fields.native.js +28 -1
  83. package/dist/cjs/list/filter-fields.native.js.map +1 -1
  84. package/dist/cjs/list/filter-saved.cjs +4 -4
  85. package/dist/cjs/list/filter-saved.native.js +4 -7
  86. package/dist/cjs/list/filter-saved.native.js.map +1 -1
  87. package/dist/cjs/list/filter-sort.cjs +2 -1
  88. package/dist/cjs/list/filter-sort.native.js +2 -1
  89. package/dist/cjs/list/filter-sort.native.js.map +1 -1
  90. package/dist/cjs/list/filter-standard.cjs +1 -1
  91. package/dist/cjs/list/filter-standard.native.js +1 -1
  92. package/dist/cjs/list/listColumns.cjs +258 -109
  93. package/dist/cjs/list/listColumns.native.js +263 -118
  94. package/dist/cjs/list/listColumns.native.js.map +1 -1
  95. package/dist/cjs/list/listFields.cjs +6 -1
  96. package/dist/cjs/list/listFields.native.js +8 -1
  97. package/dist/cjs/list/listFields.native.js.map +1 -1
  98. package/dist/cjs/list/sidebar-section.cjs +57 -19
  99. package/dist/cjs/list/sidebar-section.native.js +60 -19
  100. package/dist/cjs/list/sidebar-section.native.js.map +1 -1
  101. package/dist/cjs/oneAdapter/index.cjs +5 -1
  102. package/dist/cjs/oneAdapter/index.native.js +8 -1
  103. package/dist/cjs/oneAdapter/index.native.js.map +1 -1
  104. package/dist/cjs/quickEntry/quickEntryPlan.cjs +2 -6
  105. package/dist/cjs/quickEntry/quickEntryPlan.native.js +4 -6
  106. package/dist/cjs/quickEntry/quickEntryPlan.native.js.map +1 -1
  107. package/dist/cjs/report/QueryReportScreen.cjs +103 -94
  108. package/dist/cjs/report/QueryReportScreen.native.js +125 -143
  109. package/dist/cjs/report/QueryReportScreen.native.js.map +1 -1
  110. package/dist/cjs/report/queryReportColumns.cjs +10 -1
  111. package/dist/cjs/report/queryReportColumns.native.js +16 -1
  112. package/dist/cjs/report/queryReportColumns.native.js.map +1 -1
  113. package/dist/cjs/report/queryReportFilterBar.cjs +274 -0
  114. package/dist/cjs/report/queryReportFilterBar.native.js +339 -0
  115. package/dist/cjs/report/queryReportFilterBar.native.js.map +1 -0
  116. package/dist/cjs/report/queryReportUrlState.cjs +55 -0
  117. package/dist/cjs/report/queryReportUrlState.native.js +108 -0
  118. package/dist/cjs/report/queryReportUrlState.native.js.map +1 -0
  119. package/dist/cjs/report/report-grid.cjs +155 -50
  120. package/dist/cjs/report/report-grid.native.js +174 -54
  121. package/dist/cjs/report/report-grid.native.js.map +1 -1
  122. package/dist/cjs/report/report-toolbar.cjs +1 -6
  123. package/dist/cjs/report/report-toolbar.native.js +6 -6
  124. package/dist/cjs/report/report-toolbar.native.js.map +1 -1
  125. package/dist/cjs/report/reportShapes.cjs +269 -11
  126. package/dist/cjs/report/reportShapes.native.js +333 -11
  127. package/dist/cjs/report/reportShapes.native.js.map +1 -1
  128. package/dist/cjs/report/reportViewModel.cjs +13 -5
  129. package/dist/cjs/report/reportViewModel.native.js +38 -5
  130. package/dist/cjs/report/reportViewModel.native.js.map +1 -1
  131. package/dist/cjs/report/useQueryReport.cjs +48 -17
  132. package/dist/cjs/report/useQueryReport.native.js +56 -37
  133. package/dist/cjs/report/useQueryReport.native.js.map +1 -1
  134. package/dist/cjs/shared/deskLinks.cjs +39 -0
  135. package/dist/cjs/shared/deskLinks.native.js +43 -0
  136. package/dist/cjs/shared/deskLinks.native.js.map +1 -0
  137. package/dist/cjs/shared/listNavContext.cjs +102 -0
  138. package/dist/cjs/shared/listNavContext.native.js +130 -0
  139. package/dist/cjs/shared/listNavContext.native.js.map +1 -0
  140. package/dist/cjs/shared/useDocinfo.cjs +42 -2
  141. package/dist/cjs/shared/useDocinfo.native.js +82 -2
  142. package/dist/cjs/shared/useDocinfo.native.js.map +1 -1
  143. package/dist/cjs/shared/useDoctypeMeta.native.js.map +1 -1
  144. package/dist/cjs/shared/useFrappeApp.cjs +10 -5
  145. package/dist/cjs/shared/useFrappeApp.native.js +10 -5
  146. package/dist/cjs/shared/useFrappeApp.native.js.map +1 -1
  147. package/dist/cjs/shell/BackofficeShell.cjs +83 -20
  148. package/dist/cjs/shell/BackofficeShell.native.js +89 -24
  149. package/dist/cjs/shell/BackofficeShell.native.js.map +1 -1
  150. package/dist/cjs/shell/WorkspaceSidebar.cjs +113 -4
  151. package/dist/cjs/shell/WorkspaceSidebar.native.js +120 -4
  152. package/dist/cjs/shell/WorkspaceSidebar.native.js.map +1 -1
  153. package/dist/cjs/shell/useWorkspaces.cjs +2 -0
  154. package/dist/cjs/shell/useWorkspaces.native.js +2 -0
  155. package/dist/cjs/shell/useWorkspaces.native.js.map +1 -1
  156. package/dist/cjs/shell/workspaceIcons.cjs +12 -2
  157. package/dist/cjs/shell/workspaceIcons.native.js +35 -2
  158. package/dist/cjs/shell/workspaceIcons.native.js.map +1 -1
  159. package/dist/cjs/views/CalendarView.cjs +1 -4
  160. package/dist/cjs/views/CalendarView.native.js +1 -6
  161. package/dist/cjs/views/CalendarView.native.js.map +1 -1
  162. package/dist/cjs/views/DoctypeViewScreen.cjs +7 -3
  163. package/dist/cjs/views/DoctypeViewScreen.native.js +7 -3
  164. package/dist/cjs/views/DoctypeViewScreen.native.js.map +1 -1
  165. package/dist/cjs/views/KanbanView.cjs +2 -0
  166. package/dist/cjs/views/KanbanView.native.js +2 -0
  167. package/dist/cjs/views/KanbanView.native.js.map +1 -1
  168. package/dist/cjs/views/ViewHeader.cjs +45 -74
  169. package/dist/cjs/views/ViewHeader.native.js +51 -78
  170. package/dist/cjs/views/ViewHeader.native.js.map +1 -1
  171. package/dist/cjs/views/ViewSwitcherMenu.cjs +95 -0
  172. package/dist/cjs/views/ViewSwitcherMenu.native.js +99 -0
  173. package/dist/cjs/views/ViewSwitcherMenu.native.js.map +1 -0
  174. package/dist/cjs/views/connection.cjs +5 -1
  175. package/dist/cjs/views/connection.native.js +5 -1
  176. package/dist/cjs/views/connection.native.js.map +1 -1
  177. package/dist/cjs/views/dashboard-data.cjs +1 -2
  178. package/dist/cjs/views/dashboard-data.native.js +1 -4
  179. package/dist/cjs/views/dashboard-data.native.js.map +1 -1
  180. package/dist/cjs/views/kanban-board-controls.cjs +4 -9
  181. package/dist/cjs/views/kanban-board-controls.native.js +9 -10
  182. package/dist/cjs/views/kanban-board-controls.native.js.map +1 -1
  183. package/dist/cjs/views/viewAvailability.cjs +59 -0
  184. package/dist/cjs/views/viewAvailability.native.js +63 -0
  185. package/dist/cjs/views/viewAvailability.native.js.map +1 -0
  186. package/dist/cjs/workspace/WorkspaceLinkCard.cjs +120 -25
  187. package/dist/cjs/workspace/WorkspaceLinkCard.native.js +126 -28
  188. package/dist/cjs/workspace/WorkspaceLinkCard.native.js.map +1 -1
  189. package/dist/cjs/workspace/WorkspaceLinkDirectory.cjs +27 -21
  190. package/dist/cjs/workspace/WorkspaceLinkDirectory.native.js +32 -23
  191. package/dist/cjs/workspace/WorkspaceLinkDirectory.native.js.map +1 -1
  192. package/dist/cjs/workspace/WorkspaceNumberCard.cjs +1 -1
  193. package/dist/cjs/workspace/WorkspaceNumberCard.native.js +1 -1
  194. package/dist/cjs/workspace/WorkspaceNumberCard.native.js.map +1 -1
  195. package/dist/cjs/workspace/WorkspaceQuickList.cjs +61 -29
  196. package/dist/cjs/workspace/WorkspaceQuickList.native.js +65 -32
  197. package/dist/cjs/workspace/WorkspaceQuickList.native.js.map +1 -1
  198. package/dist/cjs/workspace/WorkspaceRecents.cjs +8 -0
  199. package/dist/cjs/workspace/WorkspaceRecents.native.js +8 -0
  200. package/dist/cjs/workspace/WorkspaceRecents.native.js.map +1 -1
  201. package/dist/cjs/workspace/WorkspaceShortcut.cjs +10 -0
  202. package/dist/cjs/workspace/WorkspaceShortcut.native.js +10 -0
  203. package/dist/cjs/workspace/WorkspaceShortcut.native.js.map +1 -1
  204. package/dist/cjs/workspace/parseContent.cjs +22 -0
  205. package/dist/cjs/workspace/parseContent.native.js +24 -0
  206. package/dist/cjs/workspace/parseContent.native.js.map +1 -1
  207. package/dist/esm/chrome/BackofficeAwesomebar.mjs +1 -0
  208. package/dist/esm/chrome/BackofficeAwesomebar.mjs.map +1 -1
  209. package/dist/esm/chrome/BackofficeAwesomebar.native.js +1 -0
  210. package/dist/esm/chrome/BackofficeAwesomebar.native.js.map +1 -1
  211. package/dist/esm/chrome/CommandPalette.mjs +96 -19
  212. package/dist/esm/chrome/CommandPalette.mjs.map +1 -1
  213. package/dist/esm/chrome/CommandPalette.native.js +115 -32
  214. package/dist/esm/chrome/CommandPalette.native.js.map +1 -1
  215. package/dist/esm/chrome/HelpMenu.mjs +41 -56
  216. package/dist/esm/chrome/HelpMenu.mjs.map +1 -1
  217. package/dist/esm/chrome/HelpMenu.native.js +51 -67
  218. package/dist/esm/chrome/HelpMenu.native.js.map +1 -1
  219. package/dist/esm/chrome/awesomebar-data.mjs +51 -9
  220. package/dist/esm/chrome/awesomebar-data.mjs.map +1 -1
  221. package/dist/esm/chrome/awesomebar-data.native.js +58 -11
  222. package/dist/esm/chrome/awesomebar-data.native.js.map +1 -1
  223. package/dist/esm/chrome/command-palette-model.mjs +2 -3
  224. package/dist/esm/chrome/command-palette-model.mjs.map +1 -1
  225. package/dist/esm/chrome/command-palette-model.native.js +2 -3
  226. package/dist/esm/chrome/command-palette-model.native.js.map +1 -1
  227. package/dist/esm/chrome/notifications-data.mjs +2 -0
  228. package/dist/esm/chrome/notifications-data.mjs.map +1 -1
  229. package/dist/esm/chrome/notifications-data.native.js +2 -0
  230. package/dist/esm/chrome/notifications-data.native.js.map +1 -1
  231. package/dist/esm/chrome/notifications-panel.mjs +15 -5
  232. package/dist/esm/chrome/notifications-panel.mjs.map +1 -1
  233. package/dist/esm/chrome/notifications-panel.native.js +17 -5
  234. package/dist/esm/chrome/notifications-panel.native.js.map +1 -1
  235. package/dist/esm/chrome/shortcuts.mjs.map +1 -1
  236. package/dist/esm/chrome/shortcuts.native.js.map +1 -1
  237. package/dist/esm/config/BackofficeProvider.mjs +2 -0
  238. package/dist/esm/config/BackofficeProvider.mjs.map +1 -1
  239. package/dist/esm/config/BackofficeProvider.native.js +2 -0
  240. package/dist/esm/config/BackofficeProvider.native.js.map +1 -1
  241. package/dist/esm/form/DocFormScreen.mjs +126 -17
  242. package/dist/esm/form/DocFormScreen.mjs.map +1 -1
  243. package/dist/esm/form/DocFormScreen.native.js +150 -17
  244. package/dist/esm/form/DocFormScreen.native.js.map +1 -1
  245. package/dist/esm/form/FormConnections.mjs +38 -6
  246. package/dist/esm/form/FormConnections.mjs.map +1 -1
  247. package/dist/esm/form/FormConnections.native.js +37 -6
  248. package/dist/esm/form/FormConnections.native.js.map +1 -1
  249. package/dist/esm/form/FormDialogs.mjs +107 -4
  250. package/dist/esm/form/FormDialogs.mjs.map +1 -1
  251. package/dist/esm/form/FormDialogs.native.js +113 -4
  252. package/dist/esm/form/FormDialogs.native.js.map +1 -1
  253. package/dist/esm/form/FormErrorBoundary.mjs +28 -7
  254. package/dist/esm/form/FormErrorBoundary.mjs.map +1 -1
  255. package/dist/esm/form/FormErrorBoundary.native.js +27 -7
  256. package/dist/esm/form/FormErrorBoundary.native.js.map +1 -1
  257. package/dist/esm/form/FormSidebarPanel.mjs +71 -23
  258. package/dist/esm/form/FormSidebarPanel.mjs.map +1 -1
  259. package/dist/esm/form/FormSidebarPanel.native.js +70 -23
  260. package/dist/esm/form/FormSidebarPanel.native.js.map +1 -1
  261. package/dist/esm/form/FormTimeline.mjs +136 -25
  262. package/dist/esm/form/FormTimeline.mjs.map +1 -1
  263. package/dist/esm/form/FormTimeline.native.js +174 -27
  264. package/dist/esm/form/FormTimeline.native.js.map +1 -1
  265. package/dist/esm/form/FormToolbar.mjs +51 -5
  266. package/dist/esm/form/FormToolbar.mjs.map +1 -1
  267. package/dist/esm/form/FormToolbar.native.js +51 -5
  268. package/dist/esm/form/FormToolbar.native.js.map +1 -1
  269. package/dist/esm/form/formActions.mjs.map +1 -1
  270. package/dist/esm/form/formActions.native.js.map +1 -1
  271. package/dist/esm/form/formLayout.mjs +3 -13
  272. package/dist/esm/form/formLayout.mjs.map +1 -1
  273. package/dist/esm/form/formLayout.native.js +7 -13
  274. package/dist/esm/form/formLayout.native.js.map +1 -1
  275. package/dist/esm/form/platformHooks.mjs +47 -1
  276. package/dist/esm/form/platformHooks.mjs.map +1 -1
  277. package/dist/esm/form/platformHooks.native.js +51 -1
  278. package/dist/esm/form/platformHooks.native.js.map +1 -1
  279. package/dist/esm/form/timeline-entries.mjs +56 -13
  280. package/dist/esm/form/timeline-entries.mjs.map +1 -1
  281. package/dist/esm/form/timeline-entries.native.js +58 -16
  282. package/dist/esm/form/timeline-entries.native.js.map +1 -1
  283. package/dist/esm/i18n/en.mjs +31 -9
  284. package/dist/esm/i18n/en.mjs.map +1 -1
  285. package/dist/esm/i18n/en.native.js +31 -9
  286. package/dist/esm/i18n/en.native.js.map +1 -1
  287. package/dist/esm/index.mjs +6 -3
  288. package/dist/esm/index.mjs.map +1 -1
  289. package/dist/esm/index.native.js +6 -3
  290. package/dist/esm/index.native.js.map +1 -1
  291. package/dist/esm/list/AddTagsDialog.mjs +12 -7
  292. package/dist/esm/list/AddTagsDialog.mjs.map +1 -1
  293. package/dist/esm/list/AddTagsDialog.native.js +12 -7
  294. package/dist/esm/list/AddTagsDialog.native.js.map +1 -1
  295. package/dist/esm/list/AssignToDialog.mjs +7 -4
  296. package/dist/esm/list/AssignToDialog.mjs.map +1 -1
  297. package/dist/esm/list/AssignToDialog.native.js +7 -4
  298. package/dist/esm/list/AssignToDialog.native.js.map +1 -1
  299. package/dist/esm/list/DoctypeListScreen.mjs +127 -156
  300. package/dist/esm/list/DoctypeListScreen.mjs.map +1 -1
  301. package/dist/esm/list/DoctypeListScreen.native.js +155 -201
  302. package/dist/esm/list/DoctypeListScreen.native.js.map +1 -1
  303. package/dist/esm/list/ListFilterBar.mjs +60 -41
  304. package/dist/esm/list/ListFilterBar.mjs.map +1 -1
  305. package/dist/esm/list/ListFilterBar.native.js +62 -41
  306. package/dist/esm/list/ListFilterBar.native.js.map +1 -1
  307. package/dist/esm/list/ListSidebar.mjs +16 -14
  308. package/dist/esm/list/ListSidebar.mjs.map +1 -1
  309. package/dist/esm/list/ListSidebar.native.js +18 -18
  310. package/dist/esm/list/ListSidebar.native.js.map +1 -1
  311. package/dist/esm/list/bulk-edit-dialog.mjs +12 -7
  312. package/dist/esm/list/bulk-edit-dialog.mjs.map +1 -1
  313. package/dist/esm/list/bulk-edit-dialog.native.js +12 -7
  314. package/dist/esm/list/bulk-edit-dialog.native.js.map +1 -1
  315. package/dist/esm/list/filter-fields.mjs +23 -1
  316. package/dist/esm/list/filter-fields.mjs.map +1 -1
  317. package/dist/esm/list/filter-fields.native.js +28 -1
  318. package/dist/esm/list/filter-fields.native.js.map +1 -1
  319. package/dist/esm/list/filter-saved.mjs +4 -4
  320. package/dist/esm/list/filter-saved.mjs.map +1 -1
  321. package/dist/esm/list/filter-saved.native.js +4 -7
  322. package/dist/esm/list/filter-saved.native.js.map +1 -1
  323. package/dist/esm/list/filter-sort.mjs +2 -1
  324. package/dist/esm/list/filter-sort.mjs.map +1 -1
  325. package/dist/esm/list/filter-sort.native.js +2 -1
  326. package/dist/esm/list/filter-sort.native.js.map +1 -1
  327. package/dist/esm/list/filter-standard.mjs +1 -1
  328. package/dist/esm/list/filter-standard.mjs.map +1 -1
  329. package/dist/esm/list/filter-standard.native.js +1 -1
  330. package/dist/esm/list/filter-standard.native.js.map +1 -1
  331. package/dist/esm/list/listColumns.mjs +261 -112
  332. package/dist/esm/list/listColumns.mjs.map +1 -1
  333. package/dist/esm/list/listColumns.native.js +266 -121
  334. package/dist/esm/list/listColumns.native.js.map +1 -1
  335. package/dist/esm/list/listFields.mjs +6 -2
  336. package/dist/esm/list/listFields.mjs.map +1 -1
  337. package/dist/esm/list/listFields.native.js +8 -2
  338. package/dist/esm/list/listFields.native.js.map +1 -1
  339. package/dist/esm/list/sidebar-section.mjs +58 -21
  340. package/dist/esm/list/sidebar-section.mjs.map +1 -1
  341. package/dist/esm/list/sidebar-section.native.js +61 -21
  342. package/dist/esm/list/sidebar-section.native.js.map +1 -1
  343. package/dist/esm/oneAdapter/index.mjs +5 -1
  344. package/dist/esm/oneAdapter/index.mjs.map +1 -1
  345. package/dist/esm/oneAdapter/index.native.js +8 -1
  346. package/dist/esm/oneAdapter/index.native.js.map +1 -1
  347. package/dist/esm/quickEntry/quickEntryPlan.mjs +2 -6
  348. package/dist/esm/quickEntry/quickEntryPlan.mjs.map +1 -1
  349. package/dist/esm/quickEntry/quickEntryPlan.native.js +4 -6
  350. package/dist/esm/quickEntry/quickEntryPlan.native.js.map +1 -1
  351. package/dist/esm/report/QueryReportScreen.mjs +103 -94
  352. package/dist/esm/report/QueryReportScreen.mjs.map +1 -1
  353. package/dist/esm/report/QueryReportScreen.native.js +125 -143
  354. package/dist/esm/report/QueryReportScreen.native.js.map +1 -1
  355. package/dist/esm/report/queryReportColumns.mjs +9 -1
  356. package/dist/esm/report/queryReportColumns.mjs.map +1 -1
  357. package/dist/esm/report/queryReportColumns.native.js +15 -1
  358. package/dist/esm/report/queryReportColumns.native.js.map +1 -1
  359. package/dist/esm/report/queryReportFilterBar.mjs +246 -0
  360. package/dist/esm/report/queryReportFilterBar.mjs.map +1 -0
  361. package/dist/esm/report/queryReportFilterBar.native.js +308 -0
  362. package/dist/esm/report/queryReportFilterBar.native.js.map +1 -0
  363. package/dist/esm/report/queryReportUrlState.mjs +29 -0
  364. package/dist/esm/report/queryReportUrlState.mjs.map +1 -0
  365. package/dist/esm/report/queryReportUrlState.native.js +79 -0
  366. package/dist/esm/report/queryReportUrlState.native.js.map +1 -0
  367. package/dist/esm/report/report-grid.mjs +158 -53
  368. package/dist/esm/report/report-grid.mjs.map +1 -1
  369. package/dist/esm/report/report-grid.native.js +177 -57
  370. package/dist/esm/report/report-grid.native.js.map +1 -1
  371. package/dist/esm/report/report-toolbar.mjs +2 -7
  372. package/dist/esm/report/report-toolbar.mjs.map +1 -1
  373. package/dist/esm/report/report-toolbar.native.js +7 -7
  374. package/dist/esm/report/report-toolbar.native.js.map +1 -1
  375. package/dist/esm/report/reportShapes.mjs +266 -12
  376. package/dist/esm/report/reportShapes.mjs.map +1 -1
  377. package/dist/esm/report/reportShapes.native.js +330 -12
  378. package/dist/esm/report/reportShapes.native.js.map +1 -1
  379. package/dist/esm/report/reportViewModel.mjs +13 -5
  380. package/dist/esm/report/reportViewModel.mjs.map +1 -1
  381. package/dist/esm/report/reportViewModel.native.js +38 -5
  382. package/dist/esm/report/reportViewModel.native.js.map +1 -1
  383. package/dist/esm/report/useQueryReport.mjs +46 -20
  384. package/dist/esm/report/useQueryReport.mjs.map +1 -1
  385. package/dist/esm/report/useQueryReport.native.js +54 -40
  386. package/dist/esm/report/useQueryReport.native.js.map +1 -1
  387. package/dist/esm/shared/deskLinks.mjs +13 -0
  388. package/dist/esm/shared/deskLinks.mjs.map +1 -0
  389. package/dist/esm/shared/deskLinks.native.js +14 -0
  390. package/dist/esm/shared/deskLinks.native.js.map +1 -0
  391. package/dist/esm/shared/listNavContext.mjs +74 -0
  392. package/dist/esm/shared/listNavContext.mjs.map +1 -0
  393. package/dist/esm/shared/listNavContext.native.js +99 -0
  394. package/dist/esm/shared/listNavContext.native.js.map +1 -0
  395. package/dist/esm/shared/useDocinfo.mjs +40 -3
  396. package/dist/esm/shared/useDocinfo.mjs.map +1 -1
  397. package/dist/esm/shared/useDocinfo.native.js +80 -3
  398. package/dist/esm/shared/useDocinfo.native.js.map +1 -1
  399. package/dist/esm/shared/useDoctypeMeta.mjs.map +1 -1
  400. package/dist/esm/shared/useDoctypeMeta.native.js.map +1 -1
  401. package/dist/esm/shared/useFrappeApp.mjs +10 -5
  402. package/dist/esm/shared/useFrappeApp.mjs.map +1 -1
  403. package/dist/esm/shared/useFrappeApp.native.js +10 -5
  404. package/dist/esm/shared/useFrappeApp.native.js.map +1 -1
  405. package/dist/esm/shell/BackofficeShell.mjs +75 -23
  406. package/dist/esm/shell/BackofficeShell.mjs.map +1 -1
  407. package/dist/esm/shell/BackofficeShell.native.js +81 -27
  408. package/dist/esm/shell/BackofficeShell.native.js.map +1 -1
  409. package/dist/esm/shell/WorkspaceSidebar.mjs +115 -6
  410. package/dist/esm/shell/WorkspaceSidebar.mjs.map +1 -1
  411. package/dist/esm/shell/WorkspaceSidebar.native.js +122 -6
  412. package/dist/esm/shell/WorkspaceSidebar.native.js.map +1 -1
  413. package/dist/esm/shell/useWorkspaces.mjs +2 -0
  414. package/dist/esm/shell/useWorkspaces.mjs.map +1 -1
  415. package/dist/esm/shell/useWorkspaces.native.js +2 -0
  416. package/dist/esm/shell/useWorkspaces.native.js.map +1 -1
  417. package/dist/esm/shell/workspaceIcons.mjs +13 -3
  418. package/dist/esm/shell/workspaceIcons.mjs.map +1 -1
  419. package/dist/esm/shell/workspaceIcons.native.js +36 -3
  420. package/dist/esm/shell/workspaceIcons.native.js.map +1 -1
  421. package/dist/esm/views/CalendarView.mjs +2 -5
  422. package/dist/esm/views/CalendarView.mjs.map +1 -1
  423. package/dist/esm/views/CalendarView.native.js +2 -7
  424. package/dist/esm/views/CalendarView.native.js.map +1 -1
  425. package/dist/esm/views/DoctypeViewScreen.mjs +7 -3
  426. package/dist/esm/views/DoctypeViewScreen.mjs.map +1 -1
  427. package/dist/esm/views/DoctypeViewScreen.native.js +7 -3
  428. package/dist/esm/views/DoctypeViewScreen.native.js.map +1 -1
  429. package/dist/esm/views/KanbanView.mjs +2 -0
  430. package/dist/esm/views/KanbanView.mjs.map +1 -1
  431. package/dist/esm/views/KanbanView.native.js +2 -0
  432. package/dist/esm/views/KanbanView.native.js.map +1 -1
  433. package/dist/esm/views/ViewHeader.mjs +49 -78
  434. package/dist/esm/views/ViewHeader.mjs.map +1 -1
  435. package/dist/esm/views/ViewHeader.native.js +55 -82
  436. package/dist/esm/views/ViewHeader.native.js.map +1 -1
  437. package/dist/esm/views/ViewSwitcherMenu.mjs +69 -0
  438. package/dist/esm/views/ViewSwitcherMenu.mjs.map +1 -0
  439. package/dist/esm/views/ViewSwitcherMenu.native.js +70 -0
  440. package/dist/esm/views/ViewSwitcherMenu.native.js.map +1 -0
  441. package/dist/esm/views/connection.mjs +5 -1
  442. package/dist/esm/views/connection.mjs.map +1 -1
  443. package/dist/esm/views/connection.native.js +5 -1
  444. package/dist/esm/views/connection.native.js.map +1 -1
  445. package/dist/esm/views/dashboard-data.mjs +2 -3
  446. package/dist/esm/views/dashboard-data.mjs.map +1 -1
  447. package/dist/esm/views/dashboard-data.native.js +2 -5
  448. package/dist/esm/views/dashboard-data.native.js.map +1 -1
  449. package/dist/esm/views/kanban-board-controls.mjs +4 -9
  450. package/dist/esm/views/kanban-board-controls.mjs.map +1 -1
  451. package/dist/esm/views/kanban-board-controls.native.js +9 -10
  452. package/dist/esm/views/kanban-board-controls.native.js.map +1 -1
  453. package/dist/esm/views/viewAvailability.mjs +33 -0
  454. package/dist/esm/views/viewAvailability.mjs.map +1 -0
  455. package/dist/esm/views/viewAvailability.native.js +34 -0
  456. package/dist/esm/views/viewAvailability.native.js.map +1 -0
  457. package/dist/esm/workspace/WorkspaceLinkCard.mjs +121 -26
  458. package/dist/esm/workspace/WorkspaceLinkCard.mjs.map +1 -1
  459. package/dist/esm/workspace/WorkspaceLinkCard.native.js +127 -29
  460. package/dist/esm/workspace/WorkspaceLinkCard.native.js.map +1 -1
  461. package/dist/esm/workspace/WorkspaceLinkDirectory.mjs +27 -21
  462. package/dist/esm/workspace/WorkspaceLinkDirectory.mjs.map +1 -1
  463. package/dist/esm/workspace/WorkspaceLinkDirectory.native.js +32 -23
  464. package/dist/esm/workspace/WorkspaceLinkDirectory.native.js.map +1 -1
  465. package/dist/esm/workspace/WorkspaceNumberCard.mjs +1 -1
  466. package/dist/esm/workspace/WorkspaceNumberCard.mjs.map +1 -1
  467. package/dist/esm/workspace/WorkspaceNumberCard.native.js +1 -1
  468. package/dist/esm/workspace/WorkspaceNumberCard.native.js.map +1 -1
  469. package/dist/esm/workspace/WorkspaceQuickList.mjs +62 -30
  470. package/dist/esm/workspace/WorkspaceQuickList.mjs.map +1 -1
  471. package/dist/esm/workspace/WorkspaceQuickList.native.js +66 -33
  472. package/dist/esm/workspace/WorkspaceQuickList.native.js.map +1 -1
  473. package/dist/esm/workspace/WorkspaceRecents.mjs +9 -1
  474. package/dist/esm/workspace/WorkspaceRecents.mjs.map +1 -1
  475. package/dist/esm/workspace/WorkspaceRecents.native.js +9 -1
  476. package/dist/esm/workspace/WorkspaceRecents.native.js.map +1 -1
  477. package/dist/esm/workspace/WorkspaceShortcut.mjs +11 -1
  478. package/dist/esm/workspace/WorkspaceShortcut.mjs.map +1 -1
  479. package/dist/esm/workspace/WorkspaceShortcut.native.js +11 -1
  480. package/dist/esm/workspace/WorkspaceShortcut.native.js.map +1 -1
  481. package/dist/esm/workspace/parseContent.mjs +21 -1
  482. package/dist/esm/workspace/parseContent.mjs.map +1 -1
  483. package/dist/esm/workspace/parseContent.native.js +23 -1
  484. package/dist/esm/workspace/parseContent.native.js.map +1 -1
  485. package/dist/jsx/chrome/BackofficeAwesomebar.mjs +1 -0
  486. package/dist/jsx/chrome/BackofficeAwesomebar.mjs.map +1 -1
  487. package/dist/jsx/chrome/BackofficeAwesomebar.native.js +1 -0
  488. package/dist/jsx/chrome/BackofficeAwesomebar.native.js.map +1 -1
  489. package/dist/jsx/chrome/CommandPalette.mjs +96 -19
  490. package/dist/jsx/chrome/CommandPalette.mjs.map +1 -1
  491. package/dist/jsx/chrome/CommandPalette.native.js +114 -31
  492. package/dist/jsx/chrome/CommandPalette.native.js.map +1 -1
  493. package/dist/jsx/chrome/HelpMenu.mjs +41 -56
  494. package/dist/jsx/chrome/HelpMenu.mjs.map +1 -1
  495. package/dist/jsx/chrome/HelpMenu.native.js +50 -66
  496. package/dist/jsx/chrome/HelpMenu.native.js.map +1 -1
  497. package/dist/jsx/chrome/awesomebar-data.mjs +51 -9
  498. package/dist/jsx/chrome/awesomebar-data.mjs.map +1 -1
  499. package/dist/jsx/chrome/awesomebar-data.native.js +58 -10
  500. package/dist/jsx/chrome/awesomebar-data.native.js.map +1 -1
  501. package/dist/jsx/chrome/command-palette-model.mjs +2 -3
  502. package/dist/jsx/chrome/command-palette-model.mjs.map +1 -1
  503. package/dist/jsx/chrome/command-palette-model.native.js +1 -2
  504. package/dist/jsx/chrome/command-palette-model.native.js.map +1 -1
  505. package/dist/jsx/chrome/notifications-data.mjs +2 -0
  506. package/dist/jsx/chrome/notifications-data.mjs.map +1 -1
  507. package/dist/jsx/chrome/notifications-data.native.js +2 -0
  508. package/dist/jsx/chrome/notifications-data.native.js.map +1 -1
  509. package/dist/jsx/chrome/notifications-panel.mjs +15 -5
  510. package/dist/jsx/chrome/notifications-panel.mjs.map +1 -1
  511. package/dist/jsx/chrome/notifications-panel.native.js +16 -4
  512. package/dist/jsx/chrome/notifications-panel.native.js.map +1 -1
  513. package/dist/jsx/chrome/shortcuts.mjs.map +1 -1
  514. package/dist/jsx/chrome/shortcuts.native.js.map +1 -1
  515. package/dist/jsx/config/BackofficeProvider.mjs +2 -0
  516. package/dist/jsx/config/BackofficeProvider.mjs.map +1 -1
  517. package/dist/jsx/config/BackofficeProvider.native.js +2 -0
  518. package/dist/jsx/config/BackofficeProvider.native.js.map +1 -1
  519. package/dist/jsx/form/DocFormScreen.mjs +126 -17
  520. package/dist/jsx/form/DocFormScreen.mjs.map +1 -1
  521. package/dist/jsx/form/DocFormScreen.native.js +147 -14
  522. package/dist/jsx/form/DocFormScreen.native.js.map +1 -1
  523. package/dist/jsx/form/FormConnections.mjs +38 -6
  524. package/dist/jsx/form/FormConnections.mjs.map +1 -1
  525. package/dist/jsx/form/FormConnections.native.js +36 -5
  526. package/dist/jsx/form/FormConnections.native.js.map +1 -1
  527. package/dist/jsx/form/FormDialogs.mjs +107 -4
  528. package/dist/jsx/form/FormDialogs.mjs.map +1 -1
  529. package/dist/jsx/form/FormDialogs.native.js +110 -0
  530. package/dist/jsx/form/FormDialogs.native.js.map +1 -1
  531. package/dist/jsx/form/FormErrorBoundary.mjs +28 -7
  532. package/dist/jsx/form/FormErrorBoundary.mjs.map +1 -1
  533. package/dist/jsx/form/FormErrorBoundary.native.js +25 -5
  534. package/dist/jsx/form/FormErrorBoundary.native.js.map +1 -1
  535. package/dist/jsx/form/FormSidebarPanel.mjs +71 -23
  536. package/dist/jsx/form/FormSidebarPanel.mjs.map +1 -1
  537. package/dist/jsx/form/FormSidebarPanel.native.js +70 -22
  538. package/dist/jsx/form/FormSidebarPanel.native.js.map +1 -1
  539. package/dist/jsx/form/FormTimeline.mjs +136 -25
  540. package/dist/jsx/form/FormTimeline.mjs.map +1 -1
  541. package/dist/jsx/form/FormTimeline.native.js +171 -24
  542. package/dist/jsx/form/FormTimeline.native.js.map +1 -1
  543. package/dist/jsx/form/FormToolbar.mjs +51 -5
  544. package/dist/jsx/form/FormToolbar.mjs.map +1 -1
  545. package/dist/jsx/form/FormToolbar.native.js +50 -4
  546. package/dist/jsx/form/FormToolbar.native.js.map +1 -1
  547. package/dist/jsx/form/formActions.mjs.map +1 -1
  548. package/dist/jsx/form/formActions.native.js.map +1 -1
  549. package/dist/jsx/form/formLayout.mjs +3 -13
  550. package/dist/jsx/form/formLayout.mjs.map +1 -1
  551. package/dist/jsx/form/formLayout.native.js +7 -13
  552. package/dist/jsx/form/formLayout.native.js.map +1 -1
  553. package/dist/jsx/form/platformHooks.mjs +47 -1
  554. package/dist/jsx/form/platformHooks.mjs.map +1 -1
  555. package/dist/jsx/form/platformHooks.native.js +52 -0
  556. package/dist/jsx/form/platformHooks.native.js.map +1 -1
  557. package/dist/jsx/form/timeline-entries.mjs +56 -13
  558. package/dist/jsx/form/timeline-entries.mjs.map +1 -1
  559. package/dist/jsx/form/timeline-entries.native.js +58 -16
  560. package/dist/jsx/form/timeline-entries.native.js.map +1 -1
  561. package/dist/jsx/i18n/en.mjs +31 -9
  562. package/dist/jsx/i18n/en.mjs.map +1 -1
  563. package/dist/jsx/i18n/en.native.js +31 -9
  564. package/dist/jsx/i18n/en.native.js.map +1 -1
  565. package/dist/jsx/index.js +6 -3
  566. package/dist/jsx/index.js.map +1 -1
  567. package/dist/jsx/index.mjs +6 -3
  568. package/dist/jsx/index.mjs.map +1 -1
  569. package/dist/jsx/index.native.js +13 -1
  570. package/dist/jsx/index.native.js.map +1 -1
  571. package/dist/jsx/list/AddTagsDialog.mjs +12 -7
  572. package/dist/jsx/list/AddTagsDialog.mjs.map +1 -1
  573. package/dist/jsx/list/AddTagsDialog.native.js +12 -7
  574. package/dist/jsx/list/AddTagsDialog.native.js.map +1 -1
  575. package/dist/jsx/list/AssignToDialog.mjs +7 -4
  576. package/dist/jsx/list/AssignToDialog.mjs.map +1 -1
  577. package/dist/jsx/list/AssignToDialog.native.js +7 -4
  578. package/dist/jsx/list/AssignToDialog.native.js.map +1 -1
  579. package/dist/jsx/list/DoctypeListScreen.mjs +127 -156
  580. package/dist/jsx/list/DoctypeListScreen.mjs.map +1 -1
  581. package/dist/jsx/list/DoctypeListScreen.native.js +152 -198
  582. package/dist/jsx/list/DoctypeListScreen.native.js.map +1 -1
  583. package/dist/jsx/list/ListFilterBar.mjs +60 -41
  584. package/dist/jsx/list/ListFilterBar.mjs.map +1 -1
  585. package/dist/jsx/list/ListFilterBar.native.js +62 -41
  586. package/dist/jsx/list/ListFilterBar.native.js.map +1 -1
  587. package/dist/jsx/list/ListSidebar.mjs +16 -14
  588. package/dist/jsx/list/ListSidebar.mjs.map +1 -1
  589. package/dist/jsx/list/ListSidebar.native.js +17 -17
  590. package/dist/jsx/list/ListSidebar.native.js.map +1 -1
  591. package/dist/jsx/list/bulk-edit-dialog.mjs +12 -7
  592. package/dist/jsx/list/bulk-edit-dialog.mjs.map +1 -1
  593. package/dist/jsx/list/bulk-edit-dialog.native.js +12 -7
  594. package/dist/jsx/list/bulk-edit-dialog.native.js.map +1 -1
  595. package/dist/jsx/list/filter-fields.mjs +23 -1
  596. package/dist/jsx/list/filter-fields.mjs.map +1 -1
  597. package/dist/jsx/list/filter-fields.native.js +28 -1
  598. package/dist/jsx/list/filter-fields.native.js.map +1 -1
  599. package/dist/jsx/list/filter-saved.mjs +4 -4
  600. package/dist/jsx/list/filter-saved.mjs.map +1 -1
  601. package/dist/jsx/list/filter-saved.native.js +4 -7
  602. package/dist/jsx/list/filter-saved.native.js.map +1 -1
  603. package/dist/jsx/list/filter-sort.mjs +2 -1
  604. package/dist/jsx/list/filter-sort.mjs.map +1 -1
  605. package/dist/jsx/list/filter-sort.native.js +2 -1
  606. package/dist/jsx/list/filter-sort.native.js.map +1 -1
  607. package/dist/jsx/list/filter-standard.mjs +1 -1
  608. package/dist/jsx/list/filter-standard.mjs.map +1 -1
  609. package/dist/jsx/list/filter-standard.native.js +1 -1
  610. package/dist/jsx/list/filter-standard.native.js.map +1 -1
  611. package/dist/jsx/list/listColumns.mjs +261 -112
  612. package/dist/jsx/list/listColumns.mjs.map +1 -1
  613. package/dist/jsx/list/listColumns.native.js +263 -118
  614. package/dist/jsx/list/listColumns.native.js.map +1 -1
  615. package/dist/jsx/list/listFields.mjs +6 -2
  616. package/dist/jsx/list/listFields.mjs.map +1 -1
  617. package/dist/jsx/list/listFields.native.js +8 -1
  618. package/dist/jsx/list/listFields.native.js.map +1 -1
  619. package/dist/jsx/list/sidebar-section.mjs +58 -21
  620. package/dist/jsx/list/sidebar-section.mjs.map +1 -1
  621. package/dist/jsx/list/sidebar-section.native.js +60 -19
  622. package/dist/jsx/list/sidebar-section.native.js.map +1 -1
  623. package/dist/jsx/oneAdapter/index.mjs +5 -1
  624. package/dist/jsx/oneAdapter/index.mjs.map +1 -1
  625. package/dist/jsx/oneAdapter/index.native.js +8 -1
  626. package/dist/jsx/oneAdapter/index.native.js.map +1 -1
  627. package/dist/jsx/quickEntry/quickEntryPlan.mjs +2 -6
  628. package/dist/jsx/quickEntry/quickEntryPlan.mjs.map +1 -1
  629. package/dist/jsx/quickEntry/quickEntryPlan.native.js +4 -6
  630. package/dist/jsx/quickEntry/quickEntryPlan.native.js.map +1 -1
  631. package/dist/jsx/report/QueryReportScreen.mjs +103 -94
  632. package/dist/jsx/report/QueryReportScreen.mjs.map +1 -1
  633. package/dist/jsx/report/QueryReportScreen.native.js +125 -143
  634. package/dist/jsx/report/QueryReportScreen.native.js.map +1 -1
  635. package/dist/jsx/report/queryReportColumns.mjs +9 -1
  636. package/dist/jsx/report/queryReportColumns.mjs.map +1 -1
  637. package/dist/jsx/report/queryReportColumns.native.js +16 -1
  638. package/dist/jsx/report/queryReportColumns.native.js.map +1 -1
  639. package/dist/jsx/report/queryReportFilterBar.mjs +246 -0
  640. package/dist/jsx/report/queryReportFilterBar.mjs.map +1 -0
  641. package/dist/jsx/report/queryReportFilterBar.native.js +339 -0
  642. package/dist/jsx/report/queryReportFilterBar.native.js.map +1 -0
  643. package/dist/jsx/report/queryReportUrlState.mjs +29 -0
  644. package/dist/jsx/report/queryReportUrlState.mjs.map +1 -0
  645. package/dist/jsx/report/queryReportUrlState.native.js +108 -0
  646. package/dist/jsx/report/queryReportUrlState.native.js.map +1 -0
  647. package/dist/jsx/report/report-grid.mjs +158 -53
  648. package/dist/jsx/report/report-grid.mjs.map +1 -1
  649. package/dist/jsx/report/report-grid.native.js +174 -54
  650. package/dist/jsx/report/report-grid.native.js.map +1 -1
  651. package/dist/jsx/report/report-toolbar.mjs +2 -7
  652. package/dist/jsx/report/report-toolbar.mjs.map +1 -1
  653. package/dist/jsx/report/report-toolbar.native.js +6 -6
  654. package/dist/jsx/report/report-toolbar.native.js.map +1 -1
  655. package/dist/jsx/report/reportShapes.mjs +266 -12
  656. package/dist/jsx/report/reportShapes.mjs.map +1 -1
  657. package/dist/jsx/report/reportShapes.native.js +333 -11
  658. package/dist/jsx/report/reportShapes.native.js.map +1 -1
  659. package/dist/jsx/report/reportViewModel.mjs +13 -5
  660. package/dist/jsx/report/reportViewModel.mjs.map +1 -1
  661. package/dist/jsx/report/reportViewModel.native.js +38 -5
  662. package/dist/jsx/report/reportViewModel.native.js.map +1 -1
  663. package/dist/jsx/report/useQueryReport.mjs +46 -20
  664. package/dist/jsx/report/useQueryReport.mjs.map +1 -1
  665. package/dist/jsx/report/useQueryReport.native.js +56 -37
  666. package/dist/jsx/report/useQueryReport.native.js.map +1 -1
  667. package/dist/jsx/shared/deskLinks.mjs +13 -0
  668. package/dist/jsx/shared/deskLinks.mjs.map +1 -0
  669. package/dist/jsx/shared/deskLinks.native.js +43 -0
  670. package/dist/jsx/shared/deskLinks.native.js.map +1 -0
  671. package/dist/jsx/shared/listNavContext.mjs +74 -0
  672. package/dist/jsx/shared/listNavContext.mjs.map +1 -0
  673. package/dist/jsx/shared/listNavContext.native.js +130 -0
  674. package/dist/jsx/shared/listNavContext.native.js.map +1 -0
  675. package/dist/jsx/shared/useDocinfo.mjs +40 -3
  676. package/dist/jsx/shared/useDocinfo.mjs.map +1 -1
  677. package/dist/jsx/shared/useDocinfo.native.js +82 -2
  678. package/dist/jsx/shared/useDocinfo.native.js.map +1 -1
  679. package/dist/jsx/shared/useDoctypeMeta.mjs.map +1 -1
  680. package/dist/jsx/shared/useDoctypeMeta.native.js.map +1 -1
  681. package/dist/jsx/shared/useFrappeApp.mjs +10 -5
  682. package/dist/jsx/shared/useFrappeApp.mjs.map +1 -1
  683. package/dist/jsx/shared/useFrappeApp.native.js +10 -5
  684. package/dist/jsx/shared/useFrappeApp.native.js.map +1 -1
  685. package/dist/jsx/shell/BackofficeShell.mjs +75 -23
  686. package/dist/jsx/shell/BackofficeShell.mjs.map +1 -1
  687. package/dist/jsx/shell/BackofficeShell.native.js +89 -24
  688. package/dist/jsx/shell/BackofficeShell.native.js.map +1 -1
  689. package/dist/jsx/shell/WorkspaceSidebar.mjs +115 -6
  690. package/dist/jsx/shell/WorkspaceSidebar.mjs.map +1 -1
  691. package/dist/jsx/shell/WorkspaceSidebar.native.js +120 -4
  692. package/dist/jsx/shell/WorkspaceSidebar.native.js.map +1 -1
  693. package/dist/jsx/shell/useWorkspaces.mjs +2 -0
  694. package/dist/jsx/shell/useWorkspaces.mjs.map +1 -1
  695. package/dist/jsx/shell/useWorkspaces.native.js +2 -0
  696. package/dist/jsx/shell/useWorkspaces.native.js.map +1 -1
  697. package/dist/jsx/shell/workspaceIcons.mjs +13 -3
  698. package/dist/jsx/shell/workspaceIcons.mjs.map +1 -1
  699. package/dist/jsx/shell/workspaceIcons.native.js +35 -2
  700. package/dist/jsx/shell/workspaceIcons.native.js.map +1 -1
  701. package/dist/jsx/views/CalendarView.mjs +2 -5
  702. package/dist/jsx/views/CalendarView.mjs.map +1 -1
  703. package/dist/jsx/views/CalendarView.native.js +1 -6
  704. package/dist/jsx/views/CalendarView.native.js.map +1 -1
  705. package/dist/jsx/views/DoctypeViewScreen.mjs +7 -3
  706. package/dist/jsx/views/DoctypeViewScreen.mjs.map +1 -1
  707. package/dist/jsx/views/DoctypeViewScreen.native.js +7 -3
  708. package/dist/jsx/views/DoctypeViewScreen.native.js.map +1 -1
  709. package/dist/jsx/views/KanbanView.mjs +2 -0
  710. package/dist/jsx/views/KanbanView.mjs.map +1 -1
  711. package/dist/jsx/views/KanbanView.native.js +2 -0
  712. package/dist/jsx/views/KanbanView.native.js.map +1 -1
  713. package/dist/jsx/views/ViewHeader.mjs +49 -78
  714. package/dist/jsx/views/ViewHeader.mjs.map +1 -1
  715. package/dist/jsx/views/ViewHeader.native.js +51 -78
  716. package/dist/jsx/views/ViewHeader.native.js.map +1 -1
  717. package/dist/jsx/views/ViewSwitcherMenu.mjs +69 -0
  718. package/dist/jsx/views/ViewSwitcherMenu.mjs.map +1 -0
  719. package/dist/jsx/views/ViewSwitcherMenu.native.js +99 -0
  720. package/dist/jsx/views/ViewSwitcherMenu.native.js.map +1 -0
  721. package/dist/jsx/views/connection.mjs +5 -1
  722. package/dist/jsx/views/connection.mjs.map +1 -1
  723. package/dist/jsx/views/connection.native.js +5 -1
  724. package/dist/jsx/views/connection.native.js.map +1 -1
  725. package/dist/jsx/views/dashboard-data.mjs +2 -3
  726. package/dist/jsx/views/dashboard-data.mjs.map +1 -1
  727. package/dist/jsx/views/dashboard-data.native.js +1 -4
  728. package/dist/jsx/views/dashboard-data.native.js.map +1 -1
  729. package/dist/jsx/views/kanban-board-controls.mjs +4 -9
  730. package/dist/jsx/views/kanban-board-controls.mjs.map +1 -1
  731. package/dist/jsx/views/kanban-board-controls.native.js +9 -10
  732. package/dist/jsx/views/kanban-board-controls.native.js.map +1 -1
  733. package/dist/jsx/views/viewAvailability.mjs +33 -0
  734. package/dist/jsx/views/viewAvailability.mjs.map +1 -0
  735. package/dist/jsx/views/viewAvailability.native.js +63 -0
  736. package/dist/jsx/views/viewAvailability.native.js.map +1 -0
  737. package/dist/jsx/workspace/WorkspaceLinkCard.mjs +121 -26
  738. package/dist/jsx/workspace/WorkspaceLinkCard.mjs.map +1 -1
  739. package/dist/jsx/workspace/WorkspaceLinkCard.native.js +126 -28
  740. package/dist/jsx/workspace/WorkspaceLinkCard.native.js.map +1 -1
  741. package/dist/jsx/workspace/WorkspaceLinkDirectory.mjs +27 -21
  742. package/dist/jsx/workspace/WorkspaceLinkDirectory.mjs.map +1 -1
  743. package/dist/jsx/workspace/WorkspaceLinkDirectory.native.js +32 -23
  744. package/dist/jsx/workspace/WorkspaceLinkDirectory.native.js.map +1 -1
  745. package/dist/jsx/workspace/WorkspaceNumberCard.mjs +1 -1
  746. package/dist/jsx/workspace/WorkspaceNumberCard.mjs.map +1 -1
  747. package/dist/jsx/workspace/WorkspaceNumberCard.native.js +1 -1
  748. package/dist/jsx/workspace/WorkspaceNumberCard.native.js.map +1 -1
  749. package/dist/jsx/workspace/WorkspaceQuickList.mjs +62 -30
  750. package/dist/jsx/workspace/WorkspaceQuickList.mjs.map +1 -1
  751. package/dist/jsx/workspace/WorkspaceQuickList.native.js +65 -32
  752. package/dist/jsx/workspace/WorkspaceQuickList.native.js.map +1 -1
  753. package/dist/jsx/workspace/WorkspaceRecents.mjs +9 -1
  754. package/dist/jsx/workspace/WorkspaceRecents.mjs.map +1 -1
  755. package/dist/jsx/workspace/WorkspaceRecents.native.js +8 -0
  756. package/dist/jsx/workspace/WorkspaceRecents.native.js.map +1 -1
  757. package/dist/jsx/workspace/WorkspaceShortcut.mjs +11 -1
  758. package/dist/jsx/workspace/WorkspaceShortcut.mjs.map +1 -1
  759. package/dist/jsx/workspace/WorkspaceShortcut.native.js +10 -0
  760. package/dist/jsx/workspace/WorkspaceShortcut.native.js.map +1 -1
  761. package/dist/jsx/workspace/parseContent.mjs +21 -1
  762. package/dist/jsx/workspace/parseContent.mjs.map +1 -1
  763. package/dist/jsx/workspace/parseContent.native.js +24 -0
  764. package/dist/jsx/workspace/parseContent.native.js.map +1 -1
  765. package/package.json +15 -15
  766. package/src/chrome/BackofficeAwesomebar.tsx +1 -0
  767. package/src/chrome/CommandPalette.spec.tsx +66 -12
  768. package/src/chrome/CommandPalette.tsx +139 -37
  769. package/src/chrome/HelpMenu.tsx +48 -67
  770. package/src/chrome/awesomebar-data.spec.ts +46 -0
  771. package/src/chrome/awesomebar-data.tsx +62 -12
  772. package/src/chrome/command-palette-model.ts +2 -2
  773. package/src/chrome/notifications-data.tsx +2 -0
  774. package/src/chrome/notifications-panel.tsx +21 -5
  775. package/src/chrome/shortcuts.ts +2 -0
  776. package/src/config/BackofficeProvider.tsx +15 -0
  777. package/src/form/DocFormScreen.tsx +169 -15
  778. package/src/form/FormConnections.tsx +34 -5
  779. package/src/form/FormDialogs.tsx +117 -3
  780. package/src/form/FormErrorBoundary.spec.tsx +1 -0
  781. package/src/form/FormErrorBoundary.tsx +32 -9
  782. package/src/form/FormSidebarPanel.spec.tsx +57 -0
  783. package/src/form/FormSidebarPanel.tsx +69 -14
  784. package/src/form/FormTimeline.optimistic.spec.tsx +187 -0
  785. package/src/form/FormTimeline.tsx +246 -28
  786. package/src/form/FormToolbar.tsx +73 -2
  787. package/src/form/formActions.ts +4 -0
  788. package/src/form/formLayout.ts +3 -14
  789. package/src/form/platformHooks.ts +57 -0
  790. package/src/form/timeline-entries.spec.ts +180 -0
  791. package/src/form/timeline-entries.tsx +84 -15
  792. package/src/i18n/en.ts +32 -9
  793. package/src/index.ts +14 -1
  794. package/src/list/AddTagsDialog.tsx +10 -5
  795. package/src/list/AssignToDialog.tsx +5 -2
  796. package/src/list/DoctypeListScreen.tsx +208 -209
  797. package/src/list/ListFilterBar.tsx +61 -26
  798. package/src/list/ListSidebar.tsx +24 -24
  799. package/src/list/bulk-edit-dialog.tsx +10 -5
  800. package/src/list/filter-fields.spec.ts +29 -0
  801. package/src/list/filter-fields.tsx +22 -2
  802. package/src/list/filter-saved.tsx +16 -16
  803. package/src/list/filter-sort.tsx +5 -2
  804. package/src/list/filter-standard.tsx +1 -1
  805. package/src/list/listColumns.tsx +307 -114
  806. package/src/list/listFields.spec.ts +16 -2
  807. package/src/list/listFields.ts +11 -0
  808. package/src/list/listUrlState.spec.ts +10 -0
  809. package/src/list/sidebar-section.spec.tsx +28 -0
  810. package/src/list/sidebar-section.tsx +57 -14
  811. package/src/oneAdapter/index.tsx +13 -1
  812. package/src/quickEntry/quickEntryPlan.ts +2 -6
  813. package/src/report/DoctypeReportView.tsx +3 -3
  814. package/src/report/QueryReportScreen.spec.tsx +74 -0
  815. package/src/report/QueryReportScreen.tsx +159 -121
  816. package/src/report/queryReportColumns.tsx +17 -0
  817. package/src/report/queryReportFilterBar.spec.tsx +139 -0
  818. package/src/report/queryReportFilterBar.tsx +315 -0
  819. package/src/report/queryReportUrlState.spec.ts +61 -0
  820. package/src/report/queryReportUrlState.ts +68 -0
  821. package/src/report/report-grid.spec.tsx +175 -0
  822. package/src/report/report-grid.tsx +211 -48
  823. package/src/report/report-toolbar.spec.tsx +90 -0
  824. package/src/report/report-toolbar.tsx +13 -10
  825. package/src/report/reportShapes.spec.ts +291 -1
  826. package/src/report/reportShapes.ts +398 -18
  827. package/src/report/reportViewModel.spec.ts +55 -0
  828. package/src/report/reportViewModel.ts +27 -8
  829. package/src/report/useQueryReport.ts +99 -37
  830. package/src/shared/deskLinks.spec.ts +38 -0
  831. package/src/shared/deskLinks.ts +31 -0
  832. package/src/shared/listNavContext.spec.ts +83 -0
  833. package/src/shared/listNavContext.ts +115 -0
  834. package/src/shared/useDocinfo.ts +79 -2
  835. package/src/shared/useDoctypeMeta.ts +4 -0
  836. package/src/shared/useFrappeApp.ts +12 -3
  837. package/src/shell/BackofficeShell.spec.tsx +43 -0
  838. package/src/shell/BackofficeShell.tsx +93 -24
  839. package/src/shell/WorkspaceSidebar.spec.tsx +82 -0
  840. package/src/shell/WorkspaceSidebar.tsx +130 -3
  841. package/src/shell/useWorkspaces.ts +2 -0
  842. package/src/shell/workspaceIcons.ts +17 -2
  843. package/src/views/CalendarView.tsx +2 -5
  844. package/src/views/DoctypeViewScreen.tsx +3 -1
  845. package/src/views/KanbanView.tsx +7 -1
  846. package/src/views/ViewHeader.tsx +63 -99
  847. package/src/views/ViewSwitcherMenu.spec.tsx +44 -0
  848. package/src/views/ViewSwitcherMenu.tsx +92 -0
  849. package/src/views/connection.ts +8 -2
  850. package/src/views/dashboard-data.tsx +2 -3
  851. package/src/views/kanban-board-controls.tsx +9 -11
  852. package/src/views/viewAvailability.spec.ts +199 -0
  853. package/src/views/viewAvailability.ts +85 -0
  854. package/src/workspace/WorkspaceLinkCard.tsx +118 -22
  855. package/src/workspace/WorkspaceLinkDirectory.tsx +32 -27
  856. package/src/workspace/WorkspaceNumberCard.tsx +1 -1
  857. package/src/workspace/WorkspaceQuickList.tsx +54 -37
  858. package/src/workspace/WorkspaceRecents.tsx +5 -1
  859. package/src/workspace/WorkspaceShortcut.tsx +7 -1
  860. package/src/workspace/parseContent.spec.ts +89 -0
  861. package/src/workspace/parseContent.ts +32 -0
  862. package/types/chrome/BackofficeAwesomebar.d.ts.map +1 -1
  863. package/types/chrome/CommandPalette.d.ts.map +1 -1
  864. package/types/chrome/HelpMenu.d.ts.map +1 -1
  865. package/types/chrome/awesomebar-data.d.ts +9 -2
  866. package/types/chrome/awesomebar-data.d.ts.map +1 -1
  867. package/types/chrome/command-palette-model.d.ts.map +1 -1
  868. package/types/chrome/notifications-data.d.ts.map +1 -1
  869. package/types/chrome/notifications-panel.d.ts.map +1 -1
  870. package/types/chrome/shortcuts.d.ts.map +1 -1
  871. package/types/config/BackofficeProvider.d.ts +13 -0
  872. package/types/config/BackofficeProvider.d.ts.map +1 -1
  873. package/types/form/DocFormScreen.d.ts.map +1 -1
  874. package/types/form/FormConnections.d.ts.map +1 -1
  875. package/types/form/FormDialogs.d.ts +14 -0
  876. package/types/form/FormDialogs.d.ts.map +1 -1
  877. package/types/form/FormErrorBoundary.d.ts +0 -5
  878. package/types/form/FormErrorBoundary.d.ts.map +1 -1
  879. package/types/form/FormSidebarPanel.d.ts +22 -0
  880. package/types/form/FormSidebarPanel.d.ts.map +1 -1
  881. package/types/form/FormTimeline.d.ts.map +1 -1
  882. package/types/form/FormToolbar.d.ts +19 -2
  883. package/types/form/FormToolbar.d.ts.map +1 -1
  884. package/types/form/formActions.d.ts +4 -0
  885. package/types/form/formActions.d.ts.map +1 -1
  886. package/types/form/formLayout.d.ts.map +1 -1
  887. package/types/form/platformHooks.d.ts +11 -0
  888. package/types/form/platformHooks.d.ts.map +1 -1
  889. package/types/form/timeline-entries.d.ts +19 -3
  890. package/types/form/timeline-entries.d.ts.map +1 -1
  891. package/types/i18n/en.d.ts +30 -9
  892. package/types/i18n/en.d.ts.map +1 -1
  893. package/types/index.d.ts +8 -3
  894. package/types/index.d.ts.map +1 -1
  895. package/types/list/AddTagsDialog.d.ts.map +1 -1
  896. package/types/list/AssignToDialog.d.ts.map +1 -1
  897. package/types/list/DoctypeListScreen.d.ts +1 -1
  898. package/types/list/DoctypeListScreen.d.ts.map +1 -1
  899. package/types/list/ListFilterBar.d.ts +12 -1
  900. package/types/list/ListFilterBar.d.ts.map +1 -1
  901. package/types/list/bulk-edit-dialog.d.ts.map +1 -1
  902. package/types/list/filter-fields.d.ts +4 -1
  903. package/types/list/filter-fields.d.ts.map +1 -1
  904. package/types/list/filter-saved.d.ts +1 -1
  905. package/types/list/filter-saved.d.ts.map +1 -1
  906. package/types/list/filter-sort.d.ts.map +1 -1
  907. package/types/list/listColumns.d.ts +8 -1
  908. package/types/list/listColumns.d.ts.map +1 -1
  909. package/types/list/listFields.d.ts +2 -0
  910. package/types/list/listFields.d.ts.map +1 -1
  911. package/types/list/sidebar-section.d.ts +4 -1
  912. package/types/list/sidebar-section.d.ts.map +1 -1
  913. package/types/oneAdapter/index.d.ts.map +1 -1
  914. package/types/quickEntry/quickEntryPlan.d.ts.map +1 -1
  915. package/types/report/QueryReportScreen.d.ts +1 -1
  916. package/types/report/QueryReportScreen.d.ts.map +1 -1
  917. package/types/report/queryReportColumns.d.ts +2 -0
  918. package/types/report/queryReportColumns.d.ts.map +1 -1
  919. package/types/report/queryReportFilterBar.d.ts +22 -0
  920. package/types/report/queryReportFilterBar.d.ts.map +1 -0
  921. package/types/report/queryReportUrlState.d.ts +29 -0
  922. package/types/report/queryReportUrlState.d.ts.map +1 -0
  923. package/types/report/report-grid.d.ts.map +1 -1
  924. package/types/report/report-toolbar.d.ts.map +1 -1
  925. package/types/report/reportShapes.d.ts +49 -2
  926. package/types/report/reportShapes.d.ts.map +1 -1
  927. package/types/report/reportViewModel.d.ts +7 -3
  928. package/types/report/reportViewModel.d.ts.map +1 -1
  929. package/types/report/useQueryReport.d.ts +10 -5
  930. package/types/report/useQueryReport.d.ts.map +1 -1
  931. package/types/shared/deskLinks.d.ts +16 -0
  932. package/types/shared/deskLinks.d.ts.map +1 -0
  933. package/types/shared/listNavContext.d.ts +33 -0
  934. package/types/shared/listNavContext.d.ts.map +1 -0
  935. package/types/shared/useDocinfo.d.ts +14 -0
  936. package/types/shared/useDocinfo.d.ts.map +1 -1
  937. package/types/shared/useDoctypeMeta.d.ts +4 -0
  938. package/types/shared/useDoctypeMeta.d.ts.map +1 -1
  939. package/types/shared/useFrappeApp.d.ts.map +1 -1
  940. package/types/shell/BackofficeShell.d.ts.map +1 -1
  941. package/types/shell/WorkspaceSidebar.d.ts.map +1 -1
  942. package/types/shell/useWorkspaces.d.ts.map +1 -1
  943. package/types/shell/workspaceIcons.d.ts +1 -1
  944. package/types/shell/workspaceIcons.d.ts.map +1 -1
  945. package/types/views/CalendarView.d.ts.map +1 -1
  946. package/types/views/DoctypeViewScreen.d.ts.map +1 -1
  947. package/types/views/KanbanView.d.ts.map +1 -1
  948. package/types/views/ViewHeader.d.ts +6 -6
  949. package/types/views/ViewHeader.d.ts.map +1 -1
  950. package/types/views/ViewSwitcherMenu.d.ts +14 -0
  951. package/types/views/ViewSwitcherMenu.d.ts.map +1 -0
  952. package/types/views/connection.d.ts +4 -0
  953. package/types/views/connection.d.ts.map +1 -1
  954. package/types/views/dashboard-data.d.ts.map +1 -1
  955. package/types/views/kanban-board-controls.d.ts +3 -2
  956. package/types/views/kanban-board-controls.d.ts.map +1 -1
  957. package/types/views/viewAvailability.d.ts +27 -0
  958. package/types/views/viewAvailability.d.ts.map +1 -0
  959. package/types/workspace/WorkspaceLinkCard.d.ts +7 -1
  960. package/types/workspace/WorkspaceLinkCard.d.ts.map +1 -1
  961. package/types/workspace/WorkspaceLinkDirectory.d.ts +1 -6
  962. package/types/workspace/WorkspaceLinkDirectory.d.ts.map +1 -1
  963. package/types/workspace/WorkspaceQuickList.d.ts.map +1 -1
  964. package/types/workspace/WorkspaceRecents.d.ts.map +1 -1
  965. package/types/workspace/WorkspaceShortcut.d.ts.map +1 -1
  966. package/types/workspace/parseContent.d.ts +18 -0
  967. package/types/workspace/parseContent.d.ts.map +1 -1
@@ -32,14 +32,29 @@ export interface QueryReportColumn {
32
32
  export type QueryReportRow = Record<string, unknown>;
33
33
  export type QueryReportFilters = Record<string, unknown>;
34
34
 
35
- /** Report doc `filters` child row (Report Filter) — trivially derivable filter meta. */
35
+ /**
36
+ * One report filter's declaration — from the Report doc `filters` child
37
+ * table (Report Filter rows) or extracted from the desk-side script module
38
+ * (which spells mandatory as `reqd`; both normalize to `mandatory`).
39
+ */
36
40
  export interface QueryReportFilterMeta {
37
41
  fieldname: string;
38
42
  label?: string;
39
43
  fieldtype?: string;
40
44
  options?: string;
41
- default?: string;
45
+ /** Script modules declare numeric/boolean defaults; doc rows are strings. */
46
+ default?: string | number;
42
47
  mandatory?: 0 | 1;
48
+ /** Desk wraps this filter's value in `%…%` before the run. */
49
+ wildcard_filter?: 0 | 1;
50
+ /** Applied (defaults included) but never rendered — desk parity. */
51
+ hidden?: 0 | 1;
52
+ /**
53
+ * Desk `read_only` — the control renders (so the value is honest) but
54
+ * cannot be edited. Locked filters must not open pickers (LC-21 family:
55
+ * a disabled control opens nothing).
56
+ */
57
+ read_only?: 0 | 1;
43
58
  }
44
59
 
45
60
  /** Report doc bits the screen cares about (loose — server owns the schema). */
@@ -63,6 +78,8 @@ export interface QueryReportFixture {
63
78
  /** Raw rows (dicts or positional arrays). */
64
79
  rows: unknown[];
65
80
  message?: string;
81
+ /** Desk-side script module text (get_script response) for filter extraction. */
82
+ script?: string;
66
83
  }
67
84
 
68
85
  export interface QueryReportRunMessage {
@@ -170,27 +187,53 @@ export function normalizeQueryReportRows(
170
187
  return rows;
171
188
  }
172
189
 
190
+ /** Truthy check/flag coercion (accepts 1, "1", true — the wire variants). */
191
+ function coerceFlag(raw: unknown): 0 | 1 {
192
+ return raw === 1 || raw === "1" || raw === true ? 1 : 0;
193
+ }
194
+
195
+ /**
196
+ * One filter declaration record (a Report Filter doc row or a script-object
197
+ * extraction) → normalized meta. Script modules spell mandatory as `reqd`
198
+ * and may declare numeric/boolean defaults.
199
+ */
200
+ function coerceFilterMetaEntry(row: Record<string, unknown>): QueryReportFilterMeta | undefined {
201
+ const fieldname =
202
+ typeof row.fieldname === "string" && row.fieldname
203
+ ? row.fieldname
204
+ : typeof row.label === "string" && row.label
205
+ ? scrubFieldname(row.label)
206
+ : "";
207
+ if (!fieldname) return undefined;
208
+ let defaultValue: string | number | undefined;
209
+ if (typeof row.default === "string" && row.default !== "") defaultValue = row.default;
210
+ else if (typeof row.default === "number") defaultValue = row.default;
211
+ else if (typeof row.default === "boolean") defaultValue = row.default ? 1 : 0;
212
+ return {
213
+ fieldname,
214
+ label: typeof row.label === "string" ? row.label : undefined,
215
+ fieldtype: typeof row.fieldtype === "string" ? row.fieldtype : undefined,
216
+ options:
217
+ typeof row.options === "string"
218
+ ? row.options
219
+ : Array.isArray(row.options) && row.options.every((entry) => typeof entry === "string")
220
+ ? row.options.join("\n")
221
+ : undefined,
222
+ default: defaultValue,
223
+ mandatory: coerceFlag(row.mandatory) || coerceFlag(row.reqd) ? 1 : 0,
224
+ wildcard_filter: coerceFlag(row.wildcard_filter),
225
+ hidden: coerceFlag(row.hidden),
226
+ read_only: coerceFlag(row.read_only) || coerceFlag(row.readOnly) ? 1 : 0,
227
+ };
228
+ }
229
+
173
230
  export function normalizeFilterMeta(raw: unknown): QueryReportFilterMeta[] {
174
231
  if (!Array.isArray(raw)) return [];
175
232
  const filters: QueryReportFilterMeta[] = [];
176
233
  for (const entry of raw) {
177
234
  if (!entry || typeof entry !== "object") continue;
178
- const row = entry as Record<string, unknown>;
179
- const fieldname =
180
- typeof row.fieldname === "string" && row.fieldname
181
- ? row.fieldname
182
- : typeof row.label === "string" && row.label
183
- ? scrubFieldname(row.label)
184
- : "";
185
- if (!fieldname) continue;
186
- filters.push({
187
- fieldname,
188
- label: typeof row.label === "string" ? row.label : undefined,
189
- fieldtype: typeof row.fieldtype === "string" ? row.fieldtype : undefined,
190
- options: typeof row.options === "string" ? row.options : undefined,
191
- default: typeof row.default === "string" ? row.default : undefined,
192
- mandatory: row.mandatory === 1 || row.mandatory === "1" ? 1 : 0,
193
- });
235
+ const meta = coerceFilterMetaEntry(entry as Record<string, unknown>);
236
+ if (meta) filters.push(meta);
194
237
  }
195
238
  return filters;
196
239
  }
@@ -199,6 +242,343 @@ export function isEmptyFilterValue(value: unknown): boolean {
199
242
  return value === undefined || value === null || value === "";
200
243
  }
201
244
 
245
+ /**
246
+ * Draft/applied values → the dict that round-trips through `?filters=` and
247
+ * `query_report.run`. Empty values drop; hidden filters keep their values
248
+ * so a clear-all on the visible bar does not strip seeded hidden defaults.
249
+ */
250
+ export function compactQueryReportFilters(
251
+ filterMeta: readonly QueryReportFilterMeta[],
252
+ values: QueryReportFilters,
253
+ ): QueryReportFilters {
254
+ const next: QueryReportFilters = {};
255
+ for (const filter of filterMeta) {
256
+ const value = values[filter.fieldname];
257
+ if (!isEmptyFilterValue(value)) next[filter.fieldname] = value;
258
+ }
259
+ return next;
260
+ }
261
+
262
+ /** Seedable default values ("" defaults are non-values, desk parity). */
263
+ export function defaultFilterValues(
264
+ filterMeta: readonly QueryReportFilterMeta[],
265
+ ): QueryReportFilters {
266
+ const defaults: QueryReportFilters = {};
267
+ for (const filter of filterMeta) {
268
+ if (filter.default !== undefined && filter.default !== "")
269
+ defaults[filter.fieldname] = filter.default;
270
+ }
271
+ return defaults;
272
+ }
273
+
274
+ /**
275
+ * Filter values → the `filters` dict for frappe.desk.query_report.run.
276
+ * Desk parity (query_report.js get_filter_values): falsy values are OMITTED
277
+ * (an unchecked Check or empty input sends nothing), `wildcard_filter`
278
+ * values wrap in `%…%` unless the user typed their own wildcard, and
279
+ * numeric fieldtypes send numbers (script reports do arithmetic on them).
280
+ */
281
+ export function buildRunFilters(
282
+ filterMeta: readonly QueryReportFilterMeta[],
283
+ filters: QueryReportFilters,
284
+ ): QueryReportFilters {
285
+ const metaByField = new Map(filterMeta.map((filter) => [filter.fieldname, filter]));
286
+ const out: QueryReportFilters = {};
287
+ for (const [fieldname, rawValue] of Object.entries(filters)) {
288
+ let value: unknown = rawValue === true ? 1 : rawValue;
289
+ if (isEmptyFilterValue(value) || value === false || value === 0) continue;
290
+ const meta = metaByField.get(fieldname);
291
+ if (meta?.wildcard_filter === 1 && typeof value === "string" && !value.includes("%"))
292
+ value = `%${value}%`;
293
+ if (
294
+ meta?.fieldtype !== undefined &&
295
+ NUMERIC_FILTER_FIELDTYPES.has(meta.fieldtype) &&
296
+ typeof value === "string" &&
297
+ value.trim() !== "" &&
298
+ Number.isFinite(Number(value))
299
+ )
300
+ value = Number(value);
301
+ out[fieldname] = value;
302
+ }
303
+ return out;
304
+ }
305
+
306
+ // ── Script-declared filters (desk-side report JS modules) ───────
307
+ //
308
+ // Standard reports declare filters in their desk JS module, reachable only
309
+ // as raw text via frappe.desk.query_report.get_script:
310
+ // frappe.query_reports["<name>"] = { filters: [{fieldname, label: __("…"),
311
+ // fieldtype, options, reqd, default, get_query() {…}}, …] }
312
+ // The declarative subset (string/number/boolean values, __() labels, string
313
+ // arrays) is extracted WITHOUT eval by a small string/comment-aware scanner;
314
+ // function-valued keys (get_query, on_change, formatters) are skipped.
315
+ // Entries that don't yield a renderable control count toward `declaredCount`
316
+ // so the surface can render an honest "defined in code" gap note.
317
+
318
+ export interface ScriptFilterExtraction {
319
+ /** True when the module declares a `filters` key (even an empty one). */
320
+ declared: boolean;
321
+ /** Top-level entries the script declares (parseable or not). */
322
+ declaredCount: number;
323
+ /** The renderable (declarative) subset, normalized. */
324
+ filters: QueryReportFilterMeta[];
325
+ }
326
+
327
+ const EMPTY_EXTRACTION: ScriptFilterExtraction = { declared: false, declaredCount: 0, filters: [] };
328
+
329
+ /** Filter fieldtypes the surface can render (desk-only ones are gaps). */
330
+ const RENDERABLE_FILTER_FIELDTYPES = new Set([
331
+ "Data",
332
+ "Small Text",
333
+ "Text",
334
+ "Int",
335
+ "Float",
336
+ "Currency",
337
+ "Percent",
338
+ "Date",
339
+ "Datetime",
340
+ "Time",
341
+ "Check",
342
+ "Select",
343
+ "Link",
344
+ ]);
345
+
346
+ const NUMERIC_FILTER_FIELDTYPES = new Set(["Int", "Float", "Currency", "Percent"]);
347
+
348
+ /** Index AFTER the string literal opening at `start` (escape-aware). */
349
+ function scanStringEnd(text: string, start: number): number {
350
+ const quote = text[start];
351
+ let index = start + 1;
352
+ while (index < text.length) {
353
+ const ch = text[index];
354
+ if (ch === "\\") {
355
+ index += 2;
356
+ continue;
357
+ }
358
+ if (ch === quote) return index + 1;
359
+ index += 1;
360
+ }
361
+ return index;
362
+ }
363
+
364
+ /** Index after a line or block comment opening at `start` (start+1 for a bare slash). */
365
+ function scanCommentEnd(text: string, start: number): number {
366
+ const next = text[start + 1];
367
+ if (next === "/") {
368
+ const newline = text.indexOf("\n", start);
369
+ return newline === -1 ? text.length : newline + 1;
370
+ }
371
+ if (next === "*") {
372
+ const end = text.indexOf("*/", start + 2);
373
+ return end === -1 ? text.length : end + 2;
374
+ }
375
+ return start + 1;
376
+ }
377
+
378
+ /** Matching close-bracket index for the opener at `open` (-1 when unbalanced). */
379
+ function matchBracket(text: string, open: number): number {
380
+ const openCh = text[open];
381
+ const closeCh = openCh === "[" ? "]" : openCh === "{" ? "}" : openCh === "(" ? ")" : "";
382
+ if (!closeCh) return -1;
383
+ let depth = 0;
384
+ let index = open;
385
+ while (index < text.length) {
386
+ const ch = text[index];
387
+ if (ch === "'" || ch === '"' || ch === "`") {
388
+ index = scanStringEnd(text, index);
389
+ continue;
390
+ }
391
+ if (ch === "/") {
392
+ index = scanCommentEnd(text, index);
393
+ continue;
394
+ }
395
+ if (ch === openCh) depth += 1;
396
+ else if (ch === closeCh) {
397
+ depth -= 1;
398
+ if (depth === 0) return index;
399
+ }
400
+ index += 1;
401
+ }
402
+ return -1;
403
+ }
404
+
405
+ /** Unescape the common sequences inside a scanned string literal body. */
406
+ function unescapeStringBody(body: string): string {
407
+ return body.replace(/\\(.)/g, (_, ch: string) =>
408
+ ch === "n" ? "\n" : ch === "t" ? "\t" : ch === "r" ? "\r" : ch,
409
+ );
410
+ }
411
+
412
+ /**
413
+ * Interpret one raw value slice from a script object literal. Returns
414
+ * undefined for anything non-declarative (functions, frappe.* expressions,
415
+ * template strings with interpolations, ternaries…).
416
+ */
417
+ function interpretScriptValue(raw: string): string | number | boolean | string[] | undefined {
418
+ const value = raw.trim();
419
+ if (!value) return undefined;
420
+ const first = value[0];
421
+ if (first === "'" || first === '"' || first === "`") {
422
+ const end = scanStringEnd(value, 0);
423
+ if (end !== value.length) return undefined;
424
+ const body = value.slice(1, -1);
425
+ if (first === "`" && body.includes("${")) return undefined;
426
+ return unescapeStringBody(body);
427
+ }
428
+ if (/^__\s*\(/.test(value)) {
429
+ // Translation call — the first string argument is the label.
430
+ const parenIndex = value.indexOf("(");
431
+ const rest = value.slice(parenIndex + 1).trim();
432
+ const quote = rest[0];
433
+ if (quote !== "'" && quote !== '"' && quote !== "`") return undefined;
434
+ const quoteIndex = value.indexOf(quote, parenIndex);
435
+ const end = scanStringEnd(value, quoteIndex);
436
+ return unescapeStringBody(value.slice(quoteIndex + 1, end - 1));
437
+ }
438
+ if (/^-?\d+(\.\d+)?$/.test(value)) return Number(value);
439
+ if (value === "true") return true;
440
+ if (value === "false") return false;
441
+ if (first === "[") {
442
+ const close = matchBracket(value, 0);
443
+ if (close !== value.length - 1) return undefined;
444
+ const entries: string[] = [];
445
+ let index = 1;
446
+ while (index < close) {
447
+ const ch = value[index];
448
+ if (ch === "'" || ch === '"' || ch === "`") {
449
+ const end = scanStringEnd(value, index);
450
+ const body = value.slice(index + 1, end - 1);
451
+ if (ch === "`" && body.includes("${")) return undefined;
452
+ entries.push(unescapeStringBody(body));
453
+ index = end;
454
+ continue;
455
+ }
456
+ if (ch === "/" && (value[index + 1] === "/" || value[index + 1] === "*")) {
457
+ index = scanCommentEnd(value, index);
458
+ continue;
459
+ }
460
+ if (ch === "," || ch === " " || ch === "\t" || ch === "\n" || ch === "\r") {
461
+ index += 1;
462
+ continue;
463
+ }
464
+ return undefined; // non-string entry (objects, expressions) — not declarative
465
+ }
466
+ return entries;
467
+ }
468
+ return undefined;
469
+ }
470
+
471
+ /** Parse one `{…}` object literal into declarative key/value pairs. */
472
+ function parseScriptObject(source: string): Record<string, unknown> {
473
+ const record: Record<string, unknown> = {};
474
+ let index = 1; // past the opening brace
475
+ const end = source.length - 1; // before the closing brace
476
+ while (index < end) {
477
+ const ch = source[index];
478
+ if (ch === "/" && (source[index + 1] === "/" || source[index + 1] === "*")) {
479
+ index = scanCommentEnd(source, index);
480
+ continue;
481
+ }
482
+ if (/\s|,/.test(ch)) {
483
+ index += 1;
484
+ continue;
485
+ }
486
+ // Key: identifier or quoted string.
487
+ let key = "";
488
+ if (ch === "'" || ch === '"') {
489
+ const keyEnd = scanStringEnd(source, index);
490
+ key = source.slice(index + 1, keyEnd - 1);
491
+ index = keyEnd;
492
+ } else {
493
+ const keyMatch = source.slice(index, index + 64).match(/^[A-Za-z_$][\w$]*/);
494
+ if (!keyMatch) break; // not an object key — bail out of this entry
495
+ key = keyMatch[0];
496
+ index += key.length;
497
+ }
498
+ while (index < end && /\s/.test(source[index])) index += 1;
499
+ if (source[index] !== ":") break; // shorthand/method — not declarative
500
+ index += 1;
501
+ // Value: scan to the next top-level comma, collecting comment-free text.
502
+ let valueRaw = "";
503
+ while (index < end) {
504
+ const valueCh = source[index];
505
+ if (valueCh === "'" || valueCh === '"' || valueCh === "`") {
506
+ const stringEnd = scanStringEnd(source, index);
507
+ valueRaw += source.slice(index, stringEnd);
508
+ index = stringEnd;
509
+ continue;
510
+ }
511
+ if (valueCh === "/" && (source[index + 1] === "/" || source[index + 1] === "*")) {
512
+ index = scanCommentEnd(source, index);
513
+ continue;
514
+ }
515
+ if (valueCh === "{" || valueCh === "[" || valueCh === "(") {
516
+ const close = matchBracket(source, index);
517
+ if (close === -1) return record; // unbalanced — stop parsing
518
+ valueRaw += source.slice(index, close + 1);
519
+ index = close + 1;
520
+ continue;
521
+ }
522
+ if (valueCh === ",") {
523
+ index += 1;
524
+ break;
525
+ }
526
+ valueRaw += valueCh;
527
+ index += 1;
528
+ }
529
+ const interpreted = interpretScriptValue(valueRaw);
530
+ if (interpreted !== undefined) record[key] = interpreted;
531
+ }
532
+ return record;
533
+ }
534
+
535
+ /**
536
+ * Extract the declarative filter subset from a desk report script module.
537
+ * Never throws; anything unparseable degrades to a smaller `filters` list
538
+ * (the `declaredCount` delta is the honest gap).
539
+ */
540
+ export function extractScriptFilters(script: string | undefined): ScriptFilterExtraction {
541
+ if (!script) return EMPTY_EXTRACTION;
542
+ const keyMatch = script.match(/\bfilters\s*:\s*\[/);
543
+ if (!keyMatch || keyMatch.index === undefined) return EMPTY_EXTRACTION;
544
+ const openBracket = keyMatch.index + keyMatch[0].length - 1;
545
+ const closeBracket = matchBracket(script, openBracket);
546
+ if (closeBracket === -1) return EMPTY_EXTRACTION;
547
+ const filters: QueryReportFilterMeta[] = [];
548
+ let declaredCount = 0;
549
+ let index = openBracket + 1;
550
+ while (index < closeBracket) {
551
+ const ch = script[index];
552
+ if (ch === "{") {
553
+ const close = matchBracket(script, index);
554
+ if (close === -1 || close > closeBracket) break;
555
+ declaredCount += 1;
556
+ const record = parseScriptObject(script.slice(index, close + 1));
557
+ const meta = coerceFilterMetaEntry(record);
558
+ const fieldtype = meta?.fieldtype ?? "Data";
559
+ const needsOptions = fieldtype === "Select" || fieldtype === "Link";
560
+ if (
561
+ meta &&
562
+ RENDERABLE_FILTER_FIELDTYPES.has(fieldtype) &&
563
+ (!needsOptions || (meta.options ?? "") !== "")
564
+ )
565
+ filters.push({ ...meta, fieldtype });
566
+ index = close + 1;
567
+ continue;
568
+ }
569
+ if (ch === "'" || ch === '"' || ch === "`") {
570
+ index = scanStringEnd(script, index);
571
+ continue;
572
+ }
573
+ if (ch === "/" && (script[index + 1] === "/" || script[index + 1] === "*")) {
574
+ index = scanCommentEnd(script, index);
575
+ continue;
576
+ }
577
+ index += 1;
578
+ }
579
+ return { declared: true, declaredCount, filters };
580
+ }
581
+
202
582
  /** `_server_messages` is a JSON array of JSON-encoded {message} objects. */
203
583
  function decodeServerMessages(raw: unknown): string | undefined {
204
584
  if (typeof raw !== "string" || !raw.startsWith("[")) return undefined;
@@ -98,6 +98,61 @@ describe("defaultReportFieldnames", () => {
98
98
  it("degrades to name + modified without meta", () => {
99
99
  expect(defaultReportFieldnames(undefined)).toEqual(["name", "modified"]);
100
100
  });
101
+
102
+ it("includes the image_field after the title field (desk set_default_fields)", () => {
103
+ const meta: DoctypeMeta = {
104
+ ...userMeta,
105
+ image_field: "user_image",
106
+ fields: [
107
+ ...userMeta.fields,
108
+ { fieldname: "user_image", label: "User Image", fieldtype: "Attach Image" },
109
+ ],
110
+ };
111
+ const fields = defaultReportFieldnames(meta);
112
+ expect(fields.indexOf("user_image")).toBe(fields.indexOf("full_name") + 1);
113
+ });
114
+
115
+ it("seeds an unflagged status docfield right after name", () => {
116
+ const meta: DoctypeMeta = {
117
+ name: "ToDo",
118
+ fields: [
119
+ { fieldname: "status", label: "Status", fieldtype: "Select", options: "Open\nClosed" },
120
+ { fieldname: "description", label: "Description", fieldtype: "Text", in_list_view: 1 },
121
+ ],
122
+ };
123
+ expect(defaultReportFieldnames(meta)).toEqual(["name", "status", "description", "modified"]);
124
+ });
125
+
126
+ it("pulls the currency-source field referenced by a flagged Currency column", () => {
127
+ const meta: DoctypeMeta = {
128
+ name: "Quote",
129
+ fields: [
130
+ {
131
+ fieldname: "amount",
132
+ label: "Amount",
133
+ fieldtype: "Currency",
134
+ options: "currency",
135
+ in_list_view: 1,
136
+ },
137
+ { fieldname: "currency", label: "Currency", fieldtype: "Link", options: "Currency" },
138
+ {
139
+ fieldname: "converted",
140
+ label: "Converted",
141
+ fieldtype: "Currency",
142
+ options: "Company:company:default_currency",
143
+ in_list_view: 1,
144
+ },
145
+ ],
146
+ };
147
+ expect(defaultReportFieldnames(meta)).toEqual([
148
+ "name",
149
+ "amount",
150
+ "converted",
151
+ "currency",
152
+ "company",
153
+ "modified",
154
+ ]);
155
+ });
101
156
  });
102
157
 
103
158
  describe("reportColumnsFromMeta", () => {
@@ -166,9 +166,13 @@ export function reportColumnsFromMeta(meta?: DoctypeMeta): ReportColumnDef[] {
166
166
 
167
167
  /**
168
168
  * Desk default report columns (report_view.js set_default_fields):
169
- * name, title_field, fields flagged in_list_view OR in_standard_filter
170
- * (value-type, not report_hide), then modified (task addition desk shows
171
- * it once you scroll the picker; a fresh report should carry recency).
169
+ * name, a `status` docfield when the doctype has one (nearest meta-derivable
170
+ * stand-in for desk's computed Status indicator), title_field + image_field,
171
+ * fields flagged in_list_view OR in_standard_filter (value-type, not
172
+ * report_hide), currency-source fields referenced by flagged Currency
173
+ * columns, then modified (a fresh report should carry recency). Desk's
174
+ * listview_settings.add_fields (e.g. User's "enabled") live in desk-side JS
175
+ * bundles and cannot be derived from the meta channel — honest subset.
172
176
  */
173
177
  export function defaultReportFieldnames(meta?: DoctypeMeta): string[] {
174
178
  const out: string[] = [];
@@ -178,13 +182,28 @@ export function defaultReportFieldnames(meta?: DoctypeMeta): string[] {
178
182
  seen.add(fieldname);
179
183
  out.push(fieldname);
180
184
  };
185
+ const pickable = (field: DocFieldMeta): boolean => {
186
+ const fieldtype = String(field.fieldtype);
187
+ return (
188
+ !VALUELESS_FIELDTYPES.has(fieldtype) &&
189
+ !fieldtype.startsWith("Table") &&
190
+ field.report_hide !== 1
191
+ );
192
+ };
193
+ const fields = meta?.fields ?? [];
181
194
  push("name");
195
+ const status = fields.find((field) => field.fieldname === "status");
196
+ if (status && pickable(status)) push("status");
182
197
  push(meta?.title_field);
183
- for (const field of meta?.fields ?? []) {
184
- const fieldtype = String(field.fieldtype);
185
- if (VALUELESS_FIELDTYPES.has(fieldtype) || fieldtype.startsWith("Table")) continue;
186
- if (field.report_hide === 1) continue;
187
- if (field.in_list_view === 1 || field.in_standard_filter === 1) push(field.fieldname);
198
+ push(meta?.image_field);
199
+ const flagged = fields.filter(
200
+ (field) => pickable(field) && (field.in_list_view === 1 || field.in_standard_filter === 1),
201
+ );
202
+ for (const field of flagged) push(field.fieldname);
203
+ // Desk: a flagged Currency column pulls in the field naming its currency.
204
+ for (const field of flagged) {
205
+ if (String(field.fieldtype) !== "Currency" || !field.options) continue;
206
+ push(field.options.includes(":") ? field.options.split(":")[1] : field.options);
188
207
  }
189
208
  push("modified");
190
209
  return out;