@multiplatform.one/backoffice 6.7.0 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/chrome/BackofficeAwesomebar.cjs +1 -0
- package/dist/cjs/chrome/BackofficeAwesomebar.native.js +1 -0
- package/dist/cjs/chrome/BackofficeAwesomebar.native.js.map +1 -1
- package/dist/cjs/chrome/CommandPalette.cjs +95 -18
- package/dist/cjs/chrome/CommandPalette.native.js +114 -31
- package/dist/cjs/chrome/CommandPalette.native.js.map +1 -1
- package/dist/cjs/chrome/HelpMenu.cjs +40 -55
- package/dist/cjs/chrome/HelpMenu.native.js +50 -66
- package/dist/cjs/chrome/HelpMenu.native.js.map +1 -1
- package/dist/cjs/chrome/awesomebar-data.cjs +51 -8
- package/dist/cjs/chrome/awesomebar-data.native.js +58 -10
- package/dist/cjs/chrome/awesomebar-data.native.js.map +1 -1
- package/dist/cjs/chrome/command-palette-model.cjs +1 -2
- package/dist/cjs/chrome/command-palette-model.native.js +1 -2
- package/dist/cjs/chrome/command-palette-model.native.js.map +1 -1
- package/dist/cjs/chrome/notifications-data.cjs +2 -0
- package/dist/cjs/chrome/notifications-data.native.js +2 -0
- package/dist/cjs/chrome/notifications-data.native.js.map +1 -1
- package/dist/cjs/chrome/notifications-panel.cjs +14 -4
- package/dist/cjs/chrome/notifications-panel.native.js +16 -4
- package/dist/cjs/chrome/notifications-panel.native.js.map +1 -1
- package/dist/cjs/chrome/shortcuts.native.js.map +1 -1
- package/dist/cjs/config/BackofficeProvider.cjs +2 -0
- package/dist/cjs/config/BackofficeProvider.native.js +2 -0
- package/dist/cjs/config/BackofficeProvider.native.js.map +1 -1
- package/dist/cjs/form/DocFormScreen.cjs +123 -14
- package/dist/cjs/form/DocFormScreen.native.js +147 -14
- package/dist/cjs/form/DocFormScreen.native.js.map +1 -1
- package/dist/cjs/form/FormConnections.cjs +37 -5
- package/dist/cjs/form/FormConnections.native.js +36 -5
- package/dist/cjs/form/FormConnections.native.js.map +1 -1
- package/dist/cjs/form/FormDialogs.cjs +104 -0
- package/dist/cjs/form/FormDialogs.native.js +110 -0
- package/dist/cjs/form/FormDialogs.native.js.map +1 -1
- package/dist/cjs/form/FormErrorBoundary.cjs +26 -5
- package/dist/cjs/form/FormErrorBoundary.native.js +25 -5
- package/dist/cjs/form/FormErrorBoundary.native.js.map +1 -1
- package/dist/cjs/form/FormSidebarPanel.cjs +71 -22
- package/dist/cjs/form/FormSidebarPanel.native.js +70 -22
- package/dist/cjs/form/FormSidebarPanel.native.js.map +1 -1
- package/dist/cjs/form/FormTimeline.cjs +133 -22
- package/dist/cjs/form/FormTimeline.native.js +171 -24
- package/dist/cjs/form/FormTimeline.native.js.map +1 -1
- package/dist/cjs/form/FormToolbar.cjs +50 -4
- package/dist/cjs/form/FormToolbar.native.js +50 -4
- package/dist/cjs/form/FormToolbar.native.js.map +1 -1
- package/dist/cjs/form/formActions.native.js.map +1 -1
- package/dist/cjs/form/formLayout.cjs +3 -13
- package/dist/cjs/form/formLayout.native.js +7 -13
- package/dist/cjs/form/formLayout.native.js.map +1 -1
- package/dist/cjs/form/platformHooks.cjs +48 -0
- package/dist/cjs/form/platformHooks.native.js +52 -0
- package/dist/cjs/form/platformHooks.native.js.map +1 -1
- package/dist/cjs/form/timeline-entries.cjs +56 -13
- package/dist/cjs/form/timeline-entries.native.js +58 -16
- package/dist/cjs/form/timeline-entries.native.js.map +1 -1
- package/dist/cjs/i18n/en.cjs +31 -9
- package/dist/cjs/i18n/en.native.js +31 -9
- package/dist/cjs/i18n/en.native.js.map +1 -1
- package/dist/cjs/index.cjs +13 -1
- package/dist/cjs/index.native.js +13 -1
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/list/AddTagsDialog.cjs +12 -7
- package/dist/cjs/list/AddTagsDialog.native.js +12 -7
- package/dist/cjs/list/AddTagsDialog.native.js.map +1 -1
- package/dist/cjs/list/AssignToDialog.cjs +7 -4
- package/dist/cjs/list/AssignToDialog.native.js +7 -4
- package/dist/cjs/list/AssignToDialog.native.js.map +1 -1
- package/dist/cjs/list/DoctypeListScreen.cjs +124 -153
- package/dist/cjs/list/DoctypeListScreen.native.js +152 -198
- package/dist/cjs/list/DoctypeListScreen.native.js.map +1 -1
- package/dist/cjs/list/ListFilterBar.cjs +60 -41
- package/dist/cjs/list/ListFilterBar.native.js +62 -41
- package/dist/cjs/list/ListFilterBar.native.js.map +1 -1
- package/dist/cjs/list/ListSidebar.cjs +15 -13
- package/dist/cjs/list/ListSidebar.native.js +17 -17
- package/dist/cjs/list/ListSidebar.native.js.map +1 -1
- package/dist/cjs/list/bulk-edit-dialog.cjs +12 -7
- package/dist/cjs/list/bulk-edit-dialog.native.js +12 -7
- package/dist/cjs/list/bulk-edit-dialog.native.js.map +1 -1
- package/dist/cjs/list/filter-fields.cjs +23 -1
- package/dist/cjs/list/filter-fields.native.js +28 -1
- package/dist/cjs/list/filter-fields.native.js.map +1 -1
- package/dist/cjs/list/filter-saved.cjs +4 -4
- package/dist/cjs/list/filter-saved.native.js +4 -7
- package/dist/cjs/list/filter-saved.native.js.map +1 -1
- package/dist/cjs/list/filter-sort.cjs +2 -1
- package/dist/cjs/list/filter-sort.native.js +2 -1
- package/dist/cjs/list/filter-sort.native.js.map +1 -1
- package/dist/cjs/list/filter-standard.cjs +1 -1
- package/dist/cjs/list/filter-standard.native.js +1 -1
- package/dist/cjs/list/listColumns.cjs +258 -109
- package/dist/cjs/list/listColumns.native.js +263 -118
- package/dist/cjs/list/listColumns.native.js.map +1 -1
- package/dist/cjs/list/listFields.cjs +6 -1
- package/dist/cjs/list/listFields.native.js +8 -1
- package/dist/cjs/list/listFields.native.js.map +1 -1
- package/dist/cjs/list/sidebar-section.cjs +57 -19
- package/dist/cjs/list/sidebar-section.native.js +60 -19
- package/dist/cjs/list/sidebar-section.native.js.map +1 -1
- package/dist/cjs/oneAdapter/index.cjs +5 -1
- package/dist/cjs/oneAdapter/index.native.js +8 -1
- package/dist/cjs/oneAdapter/index.native.js.map +1 -1
- package/dist/cjs/quickEntry/quickEntryPlan.cjs +2 -6
- package/dist/cjs/quickEntry/quickEntryPlan.native.js +4 -6
- package/dist/cjs/quickEntry/quickEntryPlan.native.js.map +1 -1
- package/dist/cjs/report/QueryReportScreen.cjs +103 -94
- package/dist/cjs/report/QueryReportScreen.native.js +125 -143
- package/dist/cjs/report/QueryReportScreen.native.js.map +1 -1
- package/dist/cjs/report/queryReportColumns.cjs +10 -1
- package/dist/cjs/report/queryReportColumns.native.js +16 -1
- package/dist/cjs/report/queryReportColumns.native.js.map +1 -1
- package/dist/cjs/report/queryReportFilterBar.cjs +274 -0
- package/dist/cjs/report/queryReportFilterBar.native.js +339 -0
- package/dist/cjs/report/queryReportFilterBar.native.js.map +1 -0
- package/dist/cjs/report/queryReportUrlState.cjs +55 -0
- package/dist/cjs/report/queryReportUrlState.native.js +108 -0
- package/dist/cjs/report/queryReportUrlState.native.js.map +1 -0
- package/dist/cjs/report/report-grid.cjs +155 -50
- package/dist/cjs/report/report-grid.native.js +174 -54
- package/dist/cjs/report/report-grid.native.js.map +1 -1
- package/dist/cjs/report/report-toolbar.cjs +1 -6
- package/dist/cjs/report/report-toolbar.native.js +6 -6
- package/dist/cjs/report/report-toolbar.native.js.map +1 -1
- package/dist/cjs/report/reportShapes.cjs +269 -11
- package/dist/cjs/report/reportShapes.native.js +333 -11
- package/dist/cjs/report/reportShapes.native.js.map +1 -1
- package/dist/cjs/report/reportViewModel.cjs +13 -5
- package/dist/cjs/report/reportViewModel.native.js +38 -5
- package/dist/cjs/report/reportViewModel.native.js.map +1 -1
- package/dist/cjs/report/useQueryReport.cjs +48 -17
- package/dist/cjs/report/useQueryReport.native.js +56 -37
- package/dist/cjs/report/useQueryReport.native.js.map +1 -1
- package/dist/cjs/shared/deskLinks.cjs +39 -0
- package/dist/cjs/shared/deskLinks.native.js +43 -0
- package/dist/cjs/shared/deskLinks.native.js.map +1 -0
- package/dist/cjs/shared/listNavContext.cjs +102 -0
- package/dist/cjs/shared/listNavContext.native.js +130 -0
- package/dist/cjs/shared/listNavContext.native.js.map +1 -0
- package/dist/cjs/shared/useDocinfo.cjs +42 -2
- package/dist/cjs/shared/useDocinfo.native.js +82 -2
- package/dist/cjs/shared/useDocinfo.native.js.map +1 -1
- package/dist/cjs/shared/useDoctypeMeta.native.js.map +1 -1
- package/dist/cjs/shared/useFrappeApp.cjs +10 -5
- package/dist/cjs/shared/useFrappeApp.native.js +10 -5
- package/dist/cjs/shared/useFrappeApp.native.js.map +1 -1
- package/dist/cjs/shell/BackofficeShell.cjs +83 -20
- package/dist/cjs/shell/BackofficeShell.native.js +89 -24
- package/dist/cjs/shell/BackofficeShell.native.js.map +1 -1
- package/dist/cjs/shell/WorkspaceSidebar.cjs +113 -4
- package/dist/cjs/shell/WorkspaceSidebar.native.js +120 -4
- package/dist/cjs/shell/WorkspaceSidebar.native.js.map +1 -1
- package/dist/cjs/shell/useWorkspaces.cjs +2 -0
- package/dist/cjs/shell/useWorkspaces.native.js +2 -0
- package/dist/cjs/shell/useWorkspaces.native.js.map +1 -1
- package/dist/cjs/shell/workspaceIcons.cjs +12 -2
- package/dist/cjs/shell/workspaceIcons.native.js +35 -2
- package/dist/cjs/shell/workspaceIcons.native.js.map +1 -1
- package/dist/cjs/views/CalendarView.cjs +1 -4
- package/dist/cjs/views/CalendarView.native.js +1 -6
- package/dist/cjs/views/CalendarView.native.js.map +1 -1
- package/dist/cjs/views/DoctypeViewScreen.cjs +7 -3
- package/dist/cjs/views/DoctypeViewScreen.native.js +7 -3
- package/dist/cjs/views/DoctypeViewScreen.native.js.map +1 -1
- package/dist/cjs/views/KanbanView.cjs +2 -0
- package/dist/cjs/views/KanbanView.native.js +2 -0
- package/dist/cjs/views/KanbanView.native.js.map +1 -1
- package/dist/cjs/views/ViewHeader.cjs +45 -74
- package/dist/cjs/views/ViewHeader.native.js +51 -78
- package/dist/cjs/views/ViewHeader.native.js.map +1 -1
- package/dist/cjs/views/ViewSwitcherMenu.cjs +95 -0
- package/dist/cjs/views/ViewSwitcherMenu.native.js +99 -0
- package/dist/cjs/views/ViewSwitcherMenu.native.js.map +1 -0
- package/dist/cjs/views/connection.cjs +5 -1
- package/dist/cjs/views/connection.native.js +5 -1
- package/dist/cjs/views/connection.native.js.map +1 -1
- package/dist/cjs/views/dashboard-data.cjs +1 -2
- package/dist/cjs/views/dashboard-data.native.js +1 -4
- package/dist/cjs/views/dashboard-data.native.js.map +1 -1
- package/dist/cjs/views/kanban-board-controls.cjs +4 -9
- package/dist/cjs/views/kanban-board-controls.native.js +9 -10
- package/dist/cjs/views/kanban-board-controls.native.js.map +1 -1
- package/dist/cjs/views/viewAvailability.cjs +59 -0
- package/dist/cjs/views/viewAvailability.native.js +63 -0
- package/dist/cjs/views/viewAvailability.native.js.map +1 -0
- package/dist/cjs/workspace/WorkspaceLinkCard.cjs +120 -25
- package/dist/cjs/workspace/WorkspaceLinkCard.native.js +126 -28
- package/dist/cjs/workspace/WorkspaceLinkCard.native.js.map +1 -1
- package/dist/cjs/workspace/WorkspaceLinkDirectory.cjs +27 -21
- package/dist/cjs/workspace/WorkspaceLinkDirectory.native.js +32 -23
- package/dist/cjs/workspace/WorkspaceLinkDirectory.native.js.map +1 -1
- package/dist/cjs/workspace/WorkspaceNumberCard.cjs +1 -1
- package/dist/cjs/workspace/WorkspaceNumberCard.native.js +1 -1
- package/dist/cjs/workspace/WorkspaceNumberCard.native.js.map +1 -1
- package/dist/cjs/workspace/WorkspaceQuickList.cjs +61 -29
- package/dist/cjs/workspace/WorkspaceQuickList.native.js +65 -32
- package/dist/cjs/workspace/WorkspaceQuickList.native.js.map +1 -1
- package/dist/cjs/workspace/WorkspaceRecents.cjs +8 -0
- package/dist/cjs/workspace/WorkspaceRecents.native.js +8 -0
- package/dist/cjs/workspace/WorkspaceRecents.native.js.map +1 -1
- package/dist/cjs/workspace/WorkspaceShortcut.cjs +10 -0
- package/dist/cjs/workspace/WorkspaceShortcut.native.js +10 -0
- package/dist/cjs/workspace/WorkspaceShortcut.native.js.map +1 -1
- package/dist/cjs/workspace/parseContent.cjs +22 -0
- package/dist/cjs/workspace/parseContent.native.js +24 -0
- package/dist/cjs/workspace/parseContent.native.js.map +1 -1
- package/dist/esm/chrome/BackofficeAwesomebar.mjs +1 -0
- package/dist/esm/chrome/BackofficeAwesomebar.mjs.map +1 -1
- package/dist/esm/chrome/BackofficeAwesomebar.native.js +1 -0
- package/dist/esm/chrome/BackofficeAwesomebar.native.js.map +1 -1
- package/dist/esm/chrome/CommandPalette.mjs +96 -19
- package/dist/esm/chrome/CommandPalette.mjs.map +1 -1
- package/dist/esm/chrome/CommandPalette.native.js +115 -32
- package/dist/esm/chrome/CommandPalette.native.js.map +1 -1
- package/dist/esm/chrome/HelpMenu.mjs +41 -56
- package/dist/esm/chrome/HelpMenu.mjs.map +1 -1
- package/dist/esm/chrome/HelpMenu.native.js +51 -67
- package/dist/esm/chrome/HelpMenu.native.js.map +1 -1
- package/dist/esm/chrome/awesomebar-data.mjs +51 -9
- package/dist/esm/chrome/awesomebar-data.mjs.map +1 -1
- package/dist/esm/chrome/awesomebar-data.native.js +58 -11
- package/dist/esm/chrome/awesomebar-data.native.js.map +1 -1
- package/dist/esm/chrome/command-palette-model.mjs +2 -3
- package/dist/esm/chrome/command-palette-model.mjs.map +1 -1
- package/dist/esm/chrome/command-palette-model.native.js +2 -3
- package/dist/esm/chrome/command-palette-model.native.js.map +1 -1
- package/dist/esm/chrome/notifications-data.mjs +2 -0
- package/dist/esm/chrome/notifications-data.mjs.map +1 -1
- package/dist/esm/chrome/notifications-data.native.js +2 -0
- package/dist/esm/chrome/notifications-data.native.js.map +1 -1
- package/dist/esm/chrome/notifications-panel.mjs +15 -5
- package/dist/esm/chrome/notifications-panel.mjs.map +1 -1
- package/dist/esm/chrome/notifications-panel.native.js +17 -5
- package/dist/esm/chrome/notifications-panel.native.js.map +1 -1
- package/dist/esm/chrome/shortcuts.mjs.map +1 -1
- package/dist/esm/chrome/shortcuts.native.js.map +1 -1
- package/dist/esm/config/BackofficeProvider.mjs +2 -0
- package/dist/esm/config/BackofficeProvider.mjs.map +1 -1
- package/dist/esm/config/BackofficeProvider.native.js +2 -0
- package/dist/esm/config/BackofficeProvider.native.js.map +1 -1
- package/dist/esm/form/DocFormScreen.mjs +126 -17
- package/dist/esm/form/DocFormScreen.mjs.map +1 -1
- package/dist/esm/form/DocFormScreen.native.js +150 -17
- package/dist/esm/form/DocFormScreen.native.js.map +1 -1
- package/dist/esm/form/FormConnections.mjs +38 -6
- package/dist/esm/form/FormConnections.mjs.map +1 -1
- package/dist/esm/form/FormConnections.native.js +37 -6
- package/dist/esm/form/FormConnections.native.js.map +1 -1
- package/dist/esm/form/FormDialogs.mjs +107 -4
- package/dist/esm/form/FormDialogs.mjs.map +1 -1
- package/dist/esm/form/FormDialogs.native.js +113 -4
- package/dist/esm/form/FormDialogs.native.js.map +1 -1
- package/dist/esm/form/FormErrorBoundary.mjs +28 -7
- package/dist/esm/form/FormErrorBoundary.mjs.map +1 -1
- package/dist/esm/form/FormErrorBoundary.native.js +27 -7
- package/dist/esm/form/FormErrorBoundary.native.js.map +1 -1
- package/dist/esm/form/FormSidebarPanel.mjs +71 -23
- package/dist/esm/form/FormSidebarPanel.mjs.map +1 -1
- package/dist/esm/form/FormSidebarPanel.native.js +70 -23
- package/dist/esm/form/FormSidebarPanel.native.js.map +1 -1
- package/dist/esm/form/FormTimeline.mjs +136 -25
- package/dist/esm/form/FormTimeline.mjs.map +1 -1
- package/dist/esm/form/FormTimeline.native.js +174 -27
- package/dist/esm/form/FormTimeline.native.js.map +1 -1
- package/dist/esm/form/FormToolbar.mjs +51 -5
- package/dist/esm/form/FormToolbar.mjs.map +1 -1
- package/dist/esm/form/FormToolbar.native.js +51 -5
- package/dist/esm/form/FormToolbar.native.js.map +1 -1
- package/dist/esm/form/formActions.mjs.map +1 -1
- package/dist/esm/form/formActions.native.js.map +1 -1
- package/dist/esm/form/formLayout.mjs +3 -13
- package/dist/esm/form/formLayout.mjs.map +1 -1
- package/dist/esm/form/formLayout.native.js +7 -13
- package/dist/esm/form/formLayout.native.js.map +1 -1
- package/dist/esm/form/platformHooks.mjs +47 -1
- package/dist/esm/form/platformHooks.mjs.map +1 -1
- package/dist/esm/form/platformHooks.native.js +51 -1
- package/dist/esm/form/platformHooks.native.js.map +1 -1
- package/dist/esm/form/timeline-entries.mjs +56 -13
- package/dist/esm/form/timeline-entries.mjs.map +1 -1
- package/dist/esm/form/timeline-entries.native.js +58 -16
- package/dist/esm/form/timeline-entries.native.js.map +1 -1
- package/dist/esm/i18n/en.mjs +31 -9
- package/dist/esm/i18n/en.mjs.map +1 -1
- package/dist/esm/i18n/en.native.js +31 -9
- package/dist/esm/i18n/en.native.js.map +1 -1
- package/dist/esm/index.mjs +6 -3
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +6 -3
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/list/AddTagsDialog.mjs +12 -7
- package/dist/esm/list/AddTagsDialog.mjs.map +1 -1
- package/dist/esm/list/AddTagsDialog.native.js +12 -7
- package/dist/esm/list/AddTagsDialog.native.js.map +1 -1
- package/dist/esm/list/AssignToDialog.mjs +7 -4
- package/dist/esm/list/AssignToDialog.mjs.map +1 -1
- package/dist/esm/list/AssignToDialog.native.js +7 -4
- package/dist/esm/list/AssignToDialog.native.js.map +1 -1
- package/dist/esm/list/DoctypeListScreen.mjs +127 -156
- package/dist/esm/list/DoctypeListScreen.mjs.map +1 -1
- package/dist/esm/list/DoctypeListScreen.native.js +155 -201
- package/dist/esm/list/DoctypeListScreen.native.js.map +1 -1
- package/dist/esm/list/ListFilterBar.mjs +60 -41
- package/dist/esm/list/ListFilterBar.mjs.map +1 -1
- package/dist/esm/list/ListFilterBar.native.js +62 -41
- package/dist/esm/list/ListFilterBar.native.js.map +1 -1
- package/dist/esm/list/ListSidebar.mjs +16 -14
- package/dist/esm/list/ListSidebar.mjs.map +1 -1
- package/dist/esm/list/ListSidebar.native.js +18 -18
- package/dist/esm/list/ListSidebar.native.js.map +1 -1
- package/dist/esm/list/bulk-edit-dialog.mjs +12 -7
- package/dist/esm/list/bulk-edit-dialog.mjs.map +1 -1
- package/dist/esm/list/bulk-edit-dialog.native.js +12 -7
- package/dist/esm/list/bulk-edit-dialog.native.js.map +1 -1
- package/dist/esm/list/filter-fields.mjs +23 -1
- package/dist/esm/list/filter-fields.mjs.map +1 -1
- package/dist/esm/list/filter-fields.native.js +28 -1
- package/dist/esm/list/filter-fields.native.js.map +1 -1
- package/dist/esm/list/filter-saved.mjs +4 -4
- package/dist/esm/list/filter-saved.mjs.map +1 -1
- package/dist/esm/list/filter-saved.native.js +4 -7
- package/dist/esm/list/filter-saved.native.js.map +1 -1
- package/dist/esm/list/filter-sort.mjs +2 -1
- package/dist/esm/list/filter-sort.mjs.map +1 -1
- package/dist/esm/list/filter-sort.native.js +2 -1
- package/dist/esm/list/filter-sort.native.js.map +1 -1
- package/dist/esm/list/filter-standard.mjs +1 -1
- package/dist/esm/list/filter-standard.mjs.map +1 -1
- package/dist/esm/list/filter-standard.native.js +1 -1
- package/dist/esm/list/filter-standard.native.js.map +1 -1
- package/dist/esm/list/listColumns.mjs +261 -112
- package/dist/esm/list/listColumns.mjs.map +1 -1
- package/dist/esm/list/listColumns.native.js +266 -121
- package/dist/esm/list/listColumns.native.js.map +1 -1
- package/dist/esm/list/listFields.mjs +6 -2
- package/dist/esm/list/listFields.mjs.map +1 -1
- package/dist/esm/list/listFields.native.js +8 -2
- package/dist/esm/list/listFields.native.js.map +1 -1
- package/dist/esm/list/sidebar-section.mjs +58 -21
- package/dist/esm/list/sidebar-section.mjs.map +1 -1
- package/dist/esm/list/sidebar-section.native.js +61 -21
- package/dist/esm/list/sidebar-section.native.js.map +1 -1
- package/dist/esm/oneAdapter/index.mjs +5 -1
- package/dist/esm/oneAdapter/index.mjs.map +1 -1
- package/dist/esm/oneAdapter/index.native.js +8 -1
- package/dist/esm/oneAdapter/index.native.js.map +1 -1
- package/dist/esm/quickEntry/quickEntryPlan.mjs +2 -6
- package/dist/esm/quickEntry/quickEntryPlan.mjs.map +1 -1
- package/dist/esm/quickEntry/quickEntryPlan.native.js +4 -6
- package/dist/esm/quickEntry/quickEntryPlan.native.js.map +1 -1
- package/dist/esm/report/QueryReportScreen.mjs +103 -94
- package/dist/esm/report/QueryReportScreen.mjs.map +1 -1
- package/dist/esm/report/QueryReportScreen.native.js +125 -143
- package/dist/esm/report/QueryReportScreen.native.js.map +1 -1
- package/dist/esm/report/queryReportColumns.mjs +9 -1
- package/dist/esm/report/queryReportColumns.mjs.map +1 -1
- package/dist/esm/report/queryReportColumns.native.js +15 -1
- package/dist/esm/report/queryReportColumns.native.js.map +1 -1
- package/dist/esm/report/queryReportFilterBar.mjs +246 -0
- package/dist/esm/report/queryReportFilterBar.mjs.map +1 -0
- package/dist/esm/report/queryReportFilterBar.native.js +308 -0
- package/dist/esm/report/queryReportFilterBar.native.js.map +1 -0
- package/dist/esm/report/queryReportUrlState.mjs +29 -0
- package/dist/esm/report/queryReportUrlState.mjs.map +1 -0
- package/dist/esm/report/queryReportUrlState.native.js +79 -0
- package/dist/esm/report/queryReportUrlState.native.js.map +1 -0
- package/dist/esm/report/report-grid.mjs +158 -53
- package/dist/esm/report/report-grid.mjs.map +1 -1
- package/dist/esm/report/report-grid.native.js +177 -57
- package/dist/esm/report/report-grid.native.js.map +1 -1
- package/dist/esm/report/report-toolbar.mjs +2 -7
- package/dist/esm/report/report-toolbar.mjs.map +1 -1
- package/dist/esm/report/report-toolbar.native.js +7 -7
- package/dist/esm/report/report-toolbar.native.js.map +1 -1
- package/dist/esm/report/reportShapes.mjs +266 -12
- package/dist/esm/report/reportShapes.mjs.map +1 -1
- package/dist/esm/report/reportShapes.native.js +330 -12
- package/dist/esm/report/reportShapes.native.js.map +1 -1
- package/dist/esm/report/reportViewModel.mjs +13 -5
- package/dist/esm/report/reportViewModel.mjs.map +1 -1
- package/dist/esm/report/reportViewModel.native.js +38 -5
- package/dist/esm/report/reportViewModel.native.js.map +1 -1
- package/dist/esm/report/useQueryReport.mjs +46 -20
- package/dist/esm/report/useQueryReport.mjs.map +1 -1
- package/dist/esm/report/useQueryReport.native.js +54 -40
- package/dist/esm/report/useQueryReport.native.js.map +1 -1
- package/dist/esm/shared/deskLinks.mjs +13 -0
- package/dist/esm/shared/deskLinks.mjs.map +1 -0
- package/dist/esm/shared/deskLinks.native.js +14 -0
- package/dist/esm/shared/deskLinks.native.js.map +1 -0
- package/dist/esm/shared/listNavContext.mjs +74 -0
- package/dist/esm/shared/listNavContext.mjs.map +1 -0
- package/dist/esm/shared/listNavContext.native.js +99 -0
- package/dist/esm/shared/listNavContext.native.js.map +1 -0
- package/dist/esm/shared/useDocinfo.mjs +40 -3
- package/dist/esm/shared/useDocinfo.mjs.map +1 -1
- package/dist/esm/shared/useDocinfo.native.js +80 -3
- package/dist/esm/shared/useDocinfo.native.js.map +1 -1
- package/dist/esm/shared/useDoctypeMeta.mjs.map +1 -1
- package/dist/esm/shared/useDoctypeMeta.native.js.map +1 -1
- package/dist/esm/shared/useFrappeApp.mjs +10 -5
- package/dist/esm/shared/useFrappeApp.mjs.map +1 -1
- package/dist/esm/shared/useFrappeApp.native.js +10 -5
- package/dist/esm/shared/useFrappeApp.native.js.map +1 -1
- package/dist/esm/shell/BackofficeShell.mjs +75 -23
- package/dist/esm/shell/BackofficeShell.mjs.map +1 -1
- package/dist/esm/shell/BackofficeShell.native.js +81 -27
- package/dist/esm/shell/BackofficeShell.native.js.map +1 -1
- package/dist/esm/shell/WorkspaceSidebar.mjs +115 -6
- package/dist/esm/shell/WorkspaceSidebar.mjs.map +1 -1
- package/dist/esm/shell/WorkspaceSidebar.native.js +122 -6
- package/dist/esm/shell/WorkspaceSidebar.native.js.map +1 -1
- package/dist/esm/shell/useWorkspaces.mjs +2 -0
- package/dist/esm/shell/useWorkspaces.mjs.map +1 -1
- package/dist/esm/shell/useWorkspaces.native.js +2 -0
- package/dist/esm/shell/useWorkspaces.native.js.map +1 -1
- package/dist/esm/shell/workspaceIcons.mjs +13 -3
- package/dist/esm/shell/workspaceIcons.mjs.map +1 -1
- package/dist/esm/shell/workspaceIcons.native.js +36 -3
- package/dist/esm/shell/workspaceIcons.native.js.map +1 -1
- package/dist/esm/views/CalendarView.mjs +2 -5
- package/dist/esm/views/CalendarView.mjs.map +1 -1
- package/dist/esm/views/CalendarView.native.js +2 -7
- package/dist/esm/views/CalendarView.native.js.map +1 -1
- package/dist/esm/views/DoctypeViewScreen.mjs +7 -3
- package/dist/esm/views/DoctypeViewScreen.mjs.map +1 -1
- package/dist/esm/views/DoctypeViewScreen.native.js +7 -3
- package/dist/esm/views/DoctypeViewScreen.native.js.map +1 -1
- package/dist/esm/views/KanbanView.mjs +2 -0
- package/dist/esm/views/KanbanView.mjs.map +1 -1
- package/dist/esm/views/KanbanView.native.js +2 -0
- package/dist/esm/views/KanbanView.native.js.map +1 -1
- package/dist/esm/views/ViewHeader.mjs +49 -78
- package/dist/esm/views/ViewHeader.mjs.map +1 -1
- package/dist/esm/views/ViewHeader.native.js +55 -82
- package/dist/esm/views/ViewHeader.native.js.map +1 -1
- package/dist/esm/views/ViewSwitcherMenu.mjs +69 -0
- package/dist/esm/views/ViewSwitcherMenu.mjs.map +1 -0
- package/dist/esm/views/ViewSwitcherMenu.native.js +70 -0
- package/dist/esm/views/ViewSwitcherMenu.native.js.map +1 -0
- package/dist/esm/views/connection.mjs +5 -1
- package/dist/esm/views/connection.mjs.map +1 -1
- package/dist/esm/views/connection.native.js +5 -1
- package/dist/esm/views/connection.native.js.map +1 -1
- package/dist/esm/views/dashboard-data.mjs +2 -3
- package/dist/esm/views/dashboard-data.mjs.map +1 -1
- package/dist/esm/views/dashboard-data.native.js +2 -5
- package/dist/esm/views/dashboard-data.native.js.map +1 -1
- package/dist/esm/views/kanban-board-controls.mjs +4 -9
- package/dist/esm/views/kanban-board-controls.mjs.map +1 -1
- package/dist/esm/views/kanban-board-controls.native.js +9 -10
- package/dist/esm/views/kanban-board-controls.native.js.map +1 -1
- package/dist/esm/views/viewAvailability.mjs +33 -0
- package/dist/esm/views/viewAvailability.mjs.map +1 -0
- package/dist/esm/views/viewAvailability.native.js +34 -0
- package/dist/esm/views/viewAvailability.native.js.map +1 -0
- package/dist/esm/workspace/WorkspaceLinkCard.mjs +121 -26
- package/dist/esm/workspace/WorkspaceLinkCard.mjs.map +1 -1
- package/dist/esm/workspace/WorkspaceLinkCard.native.js +127 -29
- package/dist/esm/workspace/WorkspaceLinkCard.native.js.map +1 -1
- package/dist/esm/workspace/WorkspaceLinkDirectory.mjs +27 -21
- package/dist/esm/workspace/WorkspaceLinkDirectory.mjs.map +1 -1
- package/dist/esm/workspace/WorkspaceLinkDirectory.native.js +32 -23
- package/dist/esm/workspace/WorkspaceLinkDirectory.native.js.map +1 -1
- package/dist/esm/workspace/WorkspaceNumberCard.mjs +1 -1
- package/dist/esm/workspace/WorkspaceNumberCard.mjs.map +1 -1
- package/dist/esm/workspace/WorkspaceNumberCard.native.js +1 -1
- package/dist/esm/workspace/WorkspaceNumberCard.native.js.map +1 -1
- package/dist/esm/workspace/WorkspaceQuickList.mjs +62 -30
- package/dist/esm/workspace/WorkspaceQuickList.mjs.map +1 -1
- package/dist/esm/workspace/WorkspaceQuickList.native.js +66 -33
- package/dist/esm/workspace/WorkspaceQuickList.native.js.map +1 -1
- package/dist/esm/workspace/WorkspaceRecents.mjs +9 -1
- package/dist/esm/workspace/WorkspaceRecents.mjs.map +1 -1
- package/dist/esm/workspace/WorkspaceRecents.native.js +9 -1
- package/dist/esm/workspace/WorkspaceRecents.native.js.map +1 -1
- package/dist/esm/workspace/WorkspaceShortcut.mjs +11 -1
- package/dist/esm/workspace/WorkspaceShortcut.mjs.map +1 -1
- package/dist/esm/workspace/WorkspaceShortcut.native.js +11 -1
- package/dist/esm/workspace/WorkspaceShortcut.native.js.map +1 -1
- package/dist/esm/workspace/parseContent.mjs +21 -1
- package/dist/esm/workspace/parseContent.mjs.map +1 -1
- package/dist/esm/workspace/parseContent.native.js +23 -1
- package/dist/esm/workspace/parseContent.native.js.map +1 -1
- package/dist/jsx/chrome/BackofficeAwesomebar.mjs +1 -0
- package/dist/jsx/chrome/BackofficeAwesomebar.mjs.map +1 -1
- package/dist/jsx/chrome/BackofficeAwesomebar.native.js +1 -0
- package/dist/jsx/chrome/BackofficeAwesomebar.native.js.map +1 -1
- package/dist/jsx/chrome/CommandPalette.mjs +96 -19
- package/dist/jsx/chrome/CommandPalette.mjs.map +1 -1
- package/dist/jsx/chrome/CommandPalette.native.js +114 -31
- package/dist/jsx/chrome/CommandPalette.native.js.map +1 -1
- package/dist/jsx/chrome/HelpMenu.mjs +41 -56
- package/dist/jsx/chrome/HelpMenu.mjs.map +1 -1
- package/dist/jsx/chrome/HelpMenu.native.js +50 -66
- package/dist/jsx/chrome/HelpMenu.native.js.map +1 -1
- package/dist/jsx/chrome/awesomebar-data.mjs +51 -9
- package/dist/jsx/chrome/awesomebar-data.mjs.map +1 -1
- package/dist/jsx/chrome/awesomebar-data.native.js +58 -10
- package/dist/jsx/chrome/awesomebar-data.native.js.map +1 -1
- package/dist/jsx/chrome/command-palette-model.mjs +2 -3
- package/dist/jsx/chrome/command-palette-model.mjs.map +1 -1
- package/dist/jsx/chrome/command-palette-model.native.js +1 -2
- package/dist/jsx/chrome/command-palette-model.native.js.map +1 -1
- package/dist/jsx/chrome/notifications-data.mjs +2 -0
- package/dist/jsx/chrome/notifications-data.mjs.map +1 -1
- package/dist/jsx/chrome/notifications-data.native.js +2 -0
- package/dist/jsx/chrome/notifications-data.native.js.map +1 -1
- package/dist/jsx/chrome/notifications-panel.mjs +15 -5
- package/dist/jsx/chrome/notifications-panel.mjs.map +1 -1
- package/dist/jsx/chrome/notifications-panel.native.js +16 -4
- package/dist/jsx/chrome/notifications-panel.native.js.map +1 -1
- package/dist/jsx/chrome/shortcuts.mjs.map +1 -1
- package/dist/jsx/chrome/shortcuts.native.js.map +1 -1
- package/dist/jsx/config/BackofficeProvider.mjs +2 -0
- package/dist/jsx/config/BackofficeProvider.mjs.map +1 -1
- package/dist/jsx/config/BackofficeProvider.native.js +2 -0
- package/dist/jsx/config/BackofficeProvider.native.js.map +1 -1
- package/dist/jsx/form/DocFormScreen.mjs +126 -17
- package/dist/jsx/form/DocFormScreen.mjs.map +1 -1
- package/dist/jsx/form/DocFormScreen.native.js +147 -14
- package/dist/jsx/form/DocFormScreen.native.js.map +1 -1
- package/dist/jsx/form/FormConnections.mjs +38 -6
- package/dist/jsx/form/FormConnections.mjs.map +1 -1
- package/dist/jsx/form/FormConnections.native.js +36 -5
- package/dist/jsx/form/FormConnections.native.js.map +1 -1
- package/dist/jsx/form/FormDialogs.mjs +107 -4
- package/dist/jsx/form/FormDialogs.mjs.map +1 -1
- package/dist/jsx/form/FormDialogs.native.js +110 -0
- package/dist/jsx/form/FormDialogs.native.js.map +1 -1
- package/dist/jsx/form/FormErrorBoundary.mjs +28 -7
- package/dist/jsx/form/FormErrorBoundary.mjs.map +1 -1
- package/dist/jsx/form/FormErrorBoundary.native.js +25 -5
- package/dist/jsx/form/FormErrorBoundary.native.js.map +1 -1
- package/dist/jsx/form/FormSidebarPanel.mjs +71 -23
- package/dist/jsx/form/FormSidebarPanel.mjs.map +1 -1
- package/dist/jsx/form/FormSidebarPanel.native.js +70 -22
- package/dist/jsx/form/FormSidebarPanel.native.js.map +1 -1
- package/dist/jsx/form/FormTimeline.mjs +136 -25
- package/dist/jsx/form/FormTimeline.mjs.map +1 -1
- package/dist/jsx/form/FormTimeline.native.js +171 -24
- package/dist/jsx/form/FormTimeline.native.js.map +1 -1
- package/dist/jsx/form/FormToolbar.mjs +51 -5
- package/dist/jsx/form/FormToolbar.mjs.map +1 -1
- package/dist/jsx/form/FormToolbar.native.js +50 -4
- package/dist/jsx/form/FormToolbar.native.js.map +1 -1
- package/dist/jsx/form/formActions.mjs.map +1 -1
- package/dist/jsx/form/formActions.native.js.map +1 -1
- package/dist/jsx/form/formLayout.mjs +3 -13
- package/dist/jsx/form/formLayout.mjs.map +1 -1
- package/dist/jsx/form/formLayout.native.js +7 -13
- package/dist/jsx/form/formLayout.native.js.map +1 -1
- package/dist/jsx/form/platformHooks.mjs +47 -1
- package/dist/jsx/form/platformHooks.mjs.map +1 -1
- package/dist/jsx/form/platformHooks.native.js +52 -0
- package/dist/jsx/form/platformHooks.native.js.map +1 -1
- package/dist/jsx/form/timeline-entries.mjs +56 -13
- package/dist/jsx/form/timeline-entries.mjs.map +1 -1
- package/dist/jsx/form/timeline-entries.native.js +58 -16
- package/dist/jsx/form/timeline-entries.native.js.map +1 -1
- package/dist/jsx/i18n/en.mjs +31 -9
- package/dist/jsx/i18n/en.mjs.map +1 -1
- package/dist/jsx/i18n/en.native.js +31 -9
- package/dist/jsx/i18n/en.native.js.map +1 -1
- package/dist/jsx/index.js +6 -3
- package/dist/jsx/index.js.map +1 -1
- package/dist/jsx/index.mjs +6 -3
- package/dist/jsx/index.mjs.map +1 -1
- package/dist/jsx/index.native.js +13 -1
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/list/AddTagsDialog.mjs +12 -7
- package/dist/jsx/list/AddTagsDialog.mjs.map +1 -1
- package/dist/jsx/list/AddTagsDialog.native.js +12 -7
- package/dist/jsx/list/AddTagsDialog.native.js.map +1 -1
- package/dist/jsx/list/AssignToDialog.mjs +7 -4
- package/dist/jsx/list/AssignToDialog.mjs.map +1 -1
- package/dist/jsx/list/AssignToDialog.native.js +7 -4
- package/dist/jsx/list/AssignToDialog.native.js.map +1 -1
- package/dist/jsx/list/DoctypeListScreen.mjs +127 -156
- package/dist/jsx/list/DoctypeListScreen.mjs.map +1 -1
- package/dist/jsx/list/DoctypeListScreen.native.js +152 -198
- package/dist/jsx/list/DoctypeListScreen.native.js.map +1 -1
- package/dist/jsx/list/ListFilterBar.mjs +60 -41
- package/dist/jsx/list/ListFilterBar.mjs.map +1 -1
- package/dist/jsx/list/ListFilterBar.native.js +62 -41
- package/dist/jsx/list/ListFilterBar.native.js.map +1 -1
- package/dist/jsx/list/ListSidebar.mjs +16 -14
- package/dist/jsx/list/ListSidebar.mjs.map +1 -1
- package/dist/jsx/list/ListSidebar.native.js +17 -17
- package/dist/jsx/list/ListSidebar.native.js.map +1 -1
- package/dist/jsx/list/bulk-edit-dialog.mjs +12 -7
- package/dist/jsx/list/bulk-edit-dialog.mjs.map +1 -1
- package/dist/jsx/list/bulk-edit-dialog.native.js +12 -7
- package/dist/jsx/list/bulk-edit-dialog.native.js.map +1 -1
- package/dist/jsx/list/filter-fields.mjs +23 -1
- package/dist/jsx/list/filter-fields.mjs.map +1 -1
- package/dist/jsx/list/filter-fields.native.js +28 -1
- package/dist/jsx/list/filter-fields.native.js.map +1 -1
- package/dist/jsx/list/filter-saved.mjs +4 -4
- package/dist/jsx/list/filter-saved.mjs.map +1 -1
- package/dist/jsx/list/filter-saved.native.js +4 -7
- package/dist/jsx/list/filter-saved.native.js.map +1 -1
- package/dist/jsx/list/filter-sort.mjs +2 -1
- package/dist/jsx/list/filter-sort.mjs.map +1 -1
- package/dist/jsx/list/filter-sort.native.js +2 -1
- package/dist/jsx/list/filter-sort.native.js.map +1 -1
- package/dist/jsx/list/filter-standard.mjs +1 -1
- package/dist/jsx/list/filter-standard.mjs.map +1 -1
- package/dist/jsx/list/filter-standard.native.js +1 -1
- package/dist/jsx/list/filter-standard.native.js.map +1 -1
- package/dist/jsx/list/listColumns.mjs +261 -112
- package/dist/jsx/list/listColumns.mjs.map +1 -1
- package/dist/jsx/list/listColumns.native.js +263 -118
- package/dist/jsx/list/listColumns.native.js.map +1 -1
- package/dist/jsx/list/listFields.mjs +6 -2
- package/dist/jsx/list/listFields.mjs.map +1 -1
- package/dist/jsx/list/listFields.native.js +8 -1
- package/dist/jsx/list/listFields.native.js.map +1 -1
- package/dist/jsx/list/sidebar-section.mjs +58 -21
- package/dist/jsx/list/sidebar-section.mjs.map +1 -1
- package/dist/jsx/list/sidebar-section.native.js +60 -19
- package/dist/jsx/list/sidebar-section.native.js.map +1 -1
- package/dist/jsx/oneAdapter/index.mjs +5 -1
- package/dist/jsx/oneAdapter/index.mjs.map +1 -1
- package/dist/jsx/oneAdapter/index.native.js +8 -1
- package/dist/jsx/oneAdapter/index.native.js.map +1 -1
- package/dist/jsx/quickEntry/quickEntryPlan.mjs +2 -6
- package/dist/jsx/quickEntry/quickEntryPlan.mjs.map +1 -1
- package/dist/jsx/quickEntry/quickEntryPlan.native.js +4 -6
- package/dist/jsx/quickEntry/quickEntryPlan.native.js.map +1 -1
- package/dist/jsx/report/QueryReportScreen.mjs +103 -94
- package/dist/jsx/report/QueryReportScreen.mjs.map +1 -1
- package/dist/jsx/report/QueryReportScreen.native.js +125 -143
- package/dist/jsx/report/QueryReportScreen.native.js.map +1 -1
- package/dist/jsx/report/queryReportColumns.mjs +9 -1
- package/dist/jsx/report/queryReportColumns.mjs.map +1 -1
- package/dist/jsx/report/queryReportColumns.native.js +16 -1
- package/dist/jsx/report/queryReportColumns.native.js.map +1 -1
- package/dist/jsx/report/queryReportFilterBar.mjs +246 -0
- package/dist/jsx/report/queryReportFilterBar.mjs.map +1 -0
- package/dist/jsx/report/queryReportFilterBar.native.js +339 -0
- package/dist/jsx/report/queryReportFilterBar.native.js.map +1 -0
- package/dist/jsx/report/queryReportUrlState.mjs +29 -0
- package/dist/jsx/report/queryReportUrlState.mjs.map +1 -0
- package/dist/jsx/report/queryReportUrlState.native.js +108 -0
- package/dist/jsx/report/queryReportUrlState.native.js.map +1 -0
- package/dist/jsx/report/report-grid.mjs +158 -53
- package/dist/jsx/report/report-grid.mjs.map +1 -1
- package/dist/jsx/report/report-grid.native.js +174 -54
- package/dist/jsx/report/report-grid.native.js.map +1 -1
- package/dist/jsx/report/report-toolbar.mjs +2 -7
- package/dist/jsx/report/report-toolbar.mjs.map +1 -1
- package/dist/jsx/report/report-toolbar.native.js +6 -6
- package/dist/jsx/report/report-toolbar.native.js.map +1 -1
- package/dist/jsx/report/reportShapes.mjs +266 -12
- package/dist/jsx/report/reportShapes.mjs.map +1 -1
- package/dist/jsx/report/reportShapes.native.js +333 -11
- package/dist/jsx/report/reportShapes.native.js.map +1 -1
- package/dist/jsx/report/reportViewModel.mjs +13 -5
- package/dist/jsx/report/reportViewModel.mjs.map +1 -1
- package/dist/jsx/report/reportViewModel.native.js +38 -5
- package/dist/jsx/report/reportViewModel.native.js.map +1 -1
- package/dist/jsx/report/useQueryReport.mjs +46 -20
- package/dist/jsx/report/useQueryReport.mjs.map +1 -1
- package/dist/jsx/report/useQueryReport.native.js +56 -37
- package/dist/jsx/report/useQueryReport.native.js.map +1 -1
- package/dist/jsx/shared/deskLinks.mjs +13 -0
- package/dist/jsx/shared/deskLinks.mjs.map +1 -0
- package/dist/jsx/shared/deskLinks.native.js +43 -0
- package/dist/jsx/shared/deskLinks.native.js.map +1 -0
- package/dist/jsx/shared/listNavContext.mjs +74 -0
- package/dist/jsx/shared/listNavContext.mjs.map +1 -0
- package/dist/jsx/shared/listNavContext.native.js +130 -0
- package/dist/jsx/shared/listNavContext.native.js.map +1 -0
- package/dist/jsx/shared/useDocinfo.mjs +40 -3
- package/dist/jsx/shared/useDocinfo.mjs.map +1 -1
- package/dist/jsx/shared/useDocinfo.native.js +82 -2
- package/dist/jsx/shared/useDocinfo.native.js.map +1 -1
- package/dist/jsx/shared/useDoctypeMeta.mjs.map +1 -1
- package/dist/jsx/shared/useDoctypeMeta.native.js.map +1 -1
- package/dist/jsx/shared/useFrappeApp.mjs +10 -5
- package/dist/jsx/shared/useFrappeApp.mjs.map +1 -1
- package/dist/jsx/shared/useFrappeApp.native.js +10 -5
- package/dist/jsx/shared/useFrappeApp.native.js.map +1 -1
- package/dist/jsx/shell/BackofficeShell.mjs +75 -23
- package/dist/jsx/shell/BackofficeShell.mjs.map +1 -1
- package/dist/jsx/shell/BackofficeShell.native.js +89 -24
- package/dist/jsx/shell/BackofficeShell.native.js.map +1 -1
- package/dist/jsx/shell/WorkspaceSidebar.mjs +115 -6
- package/dist/jsx/shell/WorkspaceSidebar.mjs.map +1 -1
- package/dist/jsx/shell/WorkspaceSidebar.native.js +120 -4
- package/dist/jsx/shell/WorkspaceSidebar.native.js.map +1 -1
- package/dist/jsx/shell/useWorkspaces.mjs +2 -0
- package/dist/jsx/shell/useWorkspaces.mjs.map +1 -1
- package/dist/jsx/shell/useWorkspaces.native.js +2 -0
- package/dist/jsx/shell/useWorkspaces.native.js.map +1 -1
- package/dist/jsx/shell/workspaceIcons.mjs +13 -3
- package/dist/jsx/shell/workspaceIcons.mjs.map +1 -1
- package/dist/jsx/shell/workspaceIcons.native.js +35 -2
- package/dist/jsx/shell/workspaceIcons.native.js.map +1 -1
- package/dist/jsx/views/CalendarView.mjs +2 -5
- package/dist/jsx/views/CalendarView.mjs.map +1 -1
- package/dist/jsx/views/CalendarView.native.js +1 -6
- package/dist/jsx/views/CalendarView.native.js.map +1 -1
- package/dist/jsx/views/DoctypeViewScreen.mjs +7 -3
- package/dist/jsx/views/DoctypeViewScreen.mjs.map +1 -1
- package/dist/jsx/views/DoctypeViewScreen.native.js +7 -3
- package/dist/jsx/views/DoctypeViewScreen.native.js.map +1 -1
- package/dist/jsx/views/KanbanView.mjs +2 -0
- package/dist/jsx/views/KanbanView.mjs.map +1 -1
- package/dist/jsx/views/KanbanView.native.js +2 -0
- package/dist/jsx/views/KanbanView.native.js.map +1 -1
- package/dist/jsx/views/ViewHeader.mjs +49 -78
- package/dist/jsx/views/ViewHeader.mjs.map +1 -1
- package/dist/jsx/views/ViewHeader.native.js +51 -78
- package/dist/jsx/views/ViewHeader.native.js.map +1 -1
- package/dist/jsx/views/ViewSwitcherMenu.mjs +69 -0
- package/dist/jsx/views/ViewSwitcherMenu.mjs.map +1 -0
- package/dist/jsx/views/ViewSwitcherMenu.native.js +99 -0
- package/dist/jsx/views/ViewSwitcherMenu.native.js.map +1 -0
- package/dist/jsx/views/connection.mjs +5 -1
- package/dist/jsx/views/connection.mjs.map +1 -1
- package/dist/jsx/views/connection.native.js +5 -1
- package/dist/jsx/views/connection.native.js.map +1 -1
- package/dist/jsx/views/dashboard-data.mjs +2 -3
- package/dist/jsx/views/dashboard-data.mjs.map +1 -1
- package/dist/jsx/views/dashboard-data.native.js +1 -4
- package/dist/jsx/views/dashboard-data.native.js.map +1 -1
- package/dist/jsx/views/kanban-board-controls.mjs +4 -9
- package/dist/jsx/views/kanban-board-controls.mjs.map +1 -1
- package/dist/jsx/views/kanban-board-controls.native.js +9 -10
- package/dist/jsx/views/kanban-board-controls.native.js.map +1 -1
- package/dist/jsx/views/viewAvailability.mjs +33 -0
- package/dist/jsx/views/viewAvailability.mjs.map +1 -0
- package/dist/jsx/views/viewAvailability.native.js +63 -0
- package/dist/jsx/views/viewAvailability.native.js.map +1 -0
- package/dist/jsx/workspace/WorkspaceLinkCard.mjs +121 -26
- package/dist/jsx/workspace/WorkspaceLinkCard.mjs.map +1 -1
- package/dist/jsx/workspace/WorkspaceLinkCard.native.js +126 -28
- package/dist/jsx/workspace/WorkspaceLinkCard.native.js.map +1 -1
- package/dist/jsx/workspace/WorkspaceLinkDirectory.mjs +27 -21
- package/dist/jsx/workspace/WorkspaceLinkDirectory.mjs.map +1 -1
- package/dist/jsx/workspace/WorkspaceLinkDirectory.native.js +32 -23
- package/dist/jsx/workspace/WorkspaceLinkDirectory.native.js.map +1 -1
- package/dist/jsx/workspace/WorkspaceNumberCard.mjs +1 -1
- package/dist/jsx/workspace/WorkspaceNumberCard.mjs.map +1 -1
- package/dist/jsx/workspace/WorkspaceNumberCard.native.js +1 -1
- package/dist/jsx/workspace/WorkspaceNumberCard.native.js.map +1 -1
- package/dist/jsx/workspace/WorkspaceQuickList.mjs +62 -30
- package/dist/jsx/workspace/WorkspaceQuickList.mjs.map +1 -1
- package/dist/jsx/workspace/WorkspaceQuickList.native.js +65 -32
- package/dist/jsx/workspace/WorkspaceQuickList.native.js.map +1 -1
- package/dist/jsx/workspace/WorkspaceRecents.mjs +9 -1
- package/dist/jsx/workspace/WorkspaceRecents.mjs.map +1 -1
- package/dist/jsx/workspace/WorkspaceRecents.native.js +8 -0
- package/dist/jsx/workspace/WorkspaceRecents.native.js.map +1 -1
- package/dist/jsx/workspace/WorkspaceShortcut.mjs +11 -1
- package/dist/jsx/workspace/WorkspaceShortcut.mjs.map +1 -1
- package/dist/jsx/workspace/WorkspaceShortcut.native.js +10 -0
- package/dist/jsx/workspace/WorkspaceShortcut.native.js.map +1 -1
- package/dist/jsx/workspace/parseContent.mjs +21 -1
- package/dist/jsx/workspace/parseContent.mjs.map +1 -1
- package/dist/jsx/workspace/parseContent.native.js +24 -0
- package/dist/jsx/workspace/parseContent.native.js.map +1 -1
- package/package.json +14 -14
- package/src/chrome/BackofficeAwesomebar.tsx +1 -0
- package/src/chrome/CommandPalette.spec.tsx +66 -12
- package/src/chrome/CommandPalette.tsx +139 -37
- package/src/chrome/HelpMenu.tsx +48 -67
- package/src/chrome/awesomebar-data.spec.ts +46 -0
- package/src/chrome/awesomebar-data.tsx +62 -12
- package/src/chrome/command-palette-model.ts +2 -2
- package/src/chrome/notifications-data.tsx +2 -0
- package/src/chrome/notifications-panel.tsx +21 -5
- package/src/chrome/shortcuts.ts +2 -0
- package/src/config/BackofficeProvider.tsx +15 -0
- package/src/form/DocFormScreen.tsx +169 -15
- package/src/form/FormConnections.tsx +34 -5
- package/src/form/FormDialogs.tsx +117 -3
- package/src/form/FormErrorBoundary.spec.tsx +1 -0
- package/src/form/FormErrorBoundary.tsx +32 -9
- package/src/form/FormSidebarPanel.spec.tsx +57 -0
- package/src/form/FormSidebarPanel.tsx +69 -14
- package/src/form/FormTimeline.optimistic.spec.tsx +187 -0
- package/src/form/FormTimeline.tsx +246 -28
- package/src/form/FormToolbar.tsx +73 -2
- package/src/form/formActions.ts +4 -0
- package/src/form/formLayout.ts +3 -14
- package/src/form/platformHooks.ts +57 -0
- package/src/form/timeline-entries.spec.ts +180 -0
- package/src/form/timeline-entries.tsx +84 -15
- package/src/i18n/en.ts +32 -9
- package/src/index.ts +14 -1
- package/src/list/AddTagsDialog.tsx +10 -5
- package/src/list/AssignToDialog.tsx +5 -2
- package/src/list/DoctypeListScreen.tsx +208 -209
- package/src/list/ListFilterBar.tsx +61 -26
- package/src/list/ListSidebar.tsx +24 -24
- package/src/list/bulk-edit-dialog.tsx +10 -5
- package/src/list/filter-fields.spec.ts +29 -0
- package/src/list/filter-fields.tsx +22 -2
- package/src/list/filter-saved.tsx +16 -16
- package/src/list/filter-sort.tsx +5 -2
- package/src/list/filter-standard.tsx +1 -1
- package/src/list/listColumns.tsx +307 -114
- package/src/list/listFields.spec.ts +16 -2
- package/src/list/listFields.ts +11 -0
- package/src/list/listUrlState.spec.ts +10 -0
- package/src/list/sidebar-section.spec.tsx +28 -0
- package/src/list/sidebar-section.tsx +57 -14
- package/src/oneAdapter/index.tsx +13 -1
- package/src/quickEntry/quickEntryPlan.ts +2 -6
- package/src/report/DoctypeReportView.tsx +3 -3
- package/src/report/QueryReportScreen.spec.tsx +74 -0
- package/src/report/QueryReportScreen.tsx +159 -121
- package/src/report/queryReportColumns.tsx +17 -0
- package/src/report/queryReportFilterBar.spec.tsx +139 -0
- package/src/report/queryReportFilterBar.tsx +315 -0
- package/src/report/queryReportUrlState.spec.ts +61 -0
- package/src/report/queryReportUrlState.ts +68 -0
- package/src/report/report-grid.spec.tsx +175 -0
- package/src/report/report-grid.tsx +211 -48
- package/src/report/report-toolbar.spec.tsx +90 -0
- package/src/report/report-toolbar.tsx +13 -10
- package/src/report/reportShapes.spec.ts +291 -1
- package/src/report/reportShapes.ts +398 -18
- package/src/report/reportViewModel.spec.ts +55 -0
- package/src/report/reportViewModel.ts +27 -8
- package/src/report/useQueryReport.ts +99 -37
- package/src/shared/deskLinks.spec.ts +38 -0
- package/src/shared/deskLinks.ts +31 -0
- package/src/shared/listNavContext.spec.ts +83 -0
- package/src/shared/listNavContext.ts +115 -0
- package/src/shared/useDocinfo.ts +79 -2
- package/src/shared/useDoctypeMeta.ts +4 -0
- package/src/shared/useFrappeApp.ts +12 -3
- package/src/shell/BackofficeShell.spec.tsx +43 -0
- package/src/shell/BackofficeShell.tsx +93 -24
- package/src/shell/WorkspaceSidebar.spec.tsx +82 -0
- package/src/shell/WorkspaceSidebar.tsx +130 -3
- package/src/shell/useWorkspaces.ts +2 -0
- package/src/shell/workspaceIcons.ts +17 -2
- package/src/views/CalendarView.tsx +2 -5
- package/src/views/DoctypeViewScreen.tsx +3 -1
- package/src/views/KanbanView.tsx +7 -1
- package/src/views/ViewHeader.tsx +63 -99
- package/src/views/ViewSwitcherMenu.spec.tsx +44 -0
- package/src/views/ViewSwitcherMenu.tsx +92 -0
- package/src/views/connection.ts +8 -2
- package/src/views/dashboard-data.tsx +2 -3
- package/src/views/kanban-board-controls.tsx +9 -11
- package/src/views/viewAvailability.spec.ts +199 -0
- package/src/views/viewAvailability.ts +85 -0
- package/src/workspace/WorkspaceLinkCard.tsx +118 -22
- package/src/workspace/WorkspaceLinkDirectory.tsx +32 -27
- package/src/workspace/WorkspaceNumberCard.tsx +1 -1
- package/src/workspace/WorkspaceQuickList.tsx +54 -37
- package/src/workspace/WorkspaceRecents.tsx +5 -1
- package/src/workspace/WorkspaceShortcut.tsx +7 -1
- package/src/workspace/parseContent.spec.ts +89 -0
- package/src/workspace/parseContent.ts +32 -0
- package/types/chrome/BackofficeAwesomebar.d.ts.map +1 -1
- package/types/chrome/CommandPalette.d.ts.map +1 -1
- package/types/chrome/HelpMenu.d.ts.map +1 -1
- package/types/chrome/awesomebar-data.d.ts +9 -2
- package/types/chrome/awesomebar-data.d.ts.map +1 -1
- package/types/chrome/command-palette-model.d.ts.map +1 -1
- package/types/chrome/notifications-data.d.ts.map +1 -1
- package/types/chrome/notifications-panel.d.ts.map +1 -1
- package/types/chrome/shortcuts.d.ts.map +1 -1
- package/types/config/BackofficeProvider.d.ts +13 -0
- package/types/config/BackofficeProvider.d.ts.map +1 -1
- package/types/form/DocFormScreen.d.ts.map +1 -1
- package/types/form/FormConnections.d.ts.map +1 -1
- package/types/form/FormDialogs.d.ts +14 -0
- package/types/form/FormDialogs.d.ts.map +1 -1
- package/types/form/FormErrorBoundary.d.ts +0 -5
- package/types/form/FormErrorBoundary.d.ts.map +1 -1
- package/types/form/FormSidebarPanel.d.ts +22 -0
- package/types/form/FormSidebarPanel.d.ts.map +1 -1
- package/types/form/FormTimeline.d.ts.map +1 -1
- package/types/form/FormToolbar.d.ts +19 -2
- package/types/form/FormToolbar.d.ts.map +1 -1
- package/types/form/formActions.d.ts +4 -0
- package/types/form/formActions.d.ts.map +1 -1
- package/types/form/formLayout.d.ts.map +1 -1
- package/types/form/platformHooks.d.ts +11 -0
- package/types/form/platformHooks.d.ts.map +1 -1
- package/types/form/timeline-entries.d.ts +19 -3
- package/types/form/timeline-entries.d.ts.map +1 -1
- package/types/i18n/en.d.ts +30 -9
- package/types/i18n/en.d.ts.map +1 -1
- package/types/index.d.ts +8 -3
- package/types/index.d.ts.map +1 -1
- package/types/list/AddTagsDialog.d.ts.map +1 -1
- package/types/list/AssignToDialog.d.ts.map +1 -1
- package/types/list/DoctypeListScreen.d.ts +1 -1
- package/types/list/DoctypeListScreen.d.ts.map +1 -1
- package/types/list/ListFilterBar.d.ts +12 -1
- package/types/list/ListFilterBar.d.ts.map +1 -1
- package/types/list/bulk-edit-dialog.d.ts.map +1 -1
- package/types/list/filter-fields.d.ts +4 -1
- package/types/list/filter-fields.d.ts.map +1 -1
- package/types/list/filter-saved.d.ts +1 -1
- package/types/list/filter-saved.d.ts.map +1 -1
- package/types/list/filter-sort.d.ts.map +1 -1
- package/types/list/listColumns.d.ts +8 -1
- package/types/list/listColumns.d.ts.map +1 -1
- package/types/list/listFields.d.ts +2 -0
- package/types/list/listFields.d.ts.map +1 -1
- package/types/list/sidebar-section.d.ts +4 -1
- package/types/list/sidebar-section.d.ts.map +1 -1
- package/types/oneAdapter/index.d.ts.map +1 -1
- package/types/quickEntry/quickEntryPlan.d.ts.map +1 -1
- package/types/report/QueryReportScreen.d.ts +1 -1
- package/types/report/QueryReportScreen.d.ts.map +1 -1
- package/types/report/queryReportColumns.d.ts +2 -0
- package/types/report/queryReportColumns.d.ts.map +1 -1
- package/types/report/queryReportFilterBar.d.ts +22 -0
- package/types/report/queryReportFilterBar.d.ts.map +1 -0
- package/types/report/queryReportUrlState.d.ts +29 -0
- package/types/report/queryReportUrlState.d.ts.map +1 -0
- package/types/report/report-grid.d.ts.map +1 -1
- package/types/report/report-toolbar.d.ts.map +1 -1
- package/types/report/reportShapes.d.ts +49 -2
- package/types/report/reportShapes.d.ts.map +1 -1
- package/types/report/reportViewModel.d.ts +7 -3
- package/types/report/reportViewModel.d.ts.map +1 -1
- package/types/report/useQueryReport.d.ts +10 -5
- package/types/report/useQueryReport.d.ts.map +1 -1
- package/types/shared/deskLinks.d.ts +16 -0
- package/types/shared/deskLinks.d.ts.map +1 -0
- package/types/shared/listNavContext.d.ts +33 -0
- package/types/shared/listNavContext.d.ts.map +1 -0
- package/types/shared/useDocinfo.d.ts +14 -0
- package/types/shared/useDocinfo.d.ts.map +1 -1
- package/types/shared/useDoctypeMeta.d.ts +4 -0
- package/types/shared/useDoctypeMeta.d.ts.map +1 -1
- package/types/shared/useFrappeApp.d.ts.map +1 -1
- package/types/shell/BackofficeShell.d.ts.map +1 -1
- package/types/shell/WorkspaceSidebar.d.ts.map +1 -1
- package/types/shell/useWorkspaces.d.ts.map +1 -1
- package/types/shell/workspaceIcons.d.ts +1 -1
- package/types/shell/workspaceIcons.d.ts.map +1 -1
- package/types/views/CalendarView.d.ts.map +1 -1
- package/types/views/DoctypeViewScreen.d.ts.map +1 -1
- package/types/views/KanbanView.d.ts.map +1 -1
- package/types/views/ViewHeader.d.ts +6 -6
- package/types/views/ViewHeader.d.ts.map +1 -1
- package/types/views/ViewSwitcherMenu.d.ts +14 -0
- package/types/views/ViewSwitcherMenu.d.ts.map +1 -0
- package/types/views/connection.d.ts +4 -0
- package/types/views/connection.d.ts.map +1 -1
- package/types/views/dashboard-data.d.ts.map +1 -1
- package/types/views/kanban-board-controls.d.ts +3 -2
- package/types/views/kanban-board-controls.d.ts.map +1 -1
- package/types/views/viewAvailability.d.ts +27 -0
- package/types/views/viewAvailability.d.ts.map +1 -0
- package/types/workspace/WorkspaceLinkCard.d.ts +7 -1
- package/types/workspace/WorkspaceLinkCard.d.ts.map +1 -1
- package/types/workspace/WorkspaceLinkDirectory.d.ts +1 -6
- package/types/workspace/WorkspaceLinkDirectory.d.ts.map +1 -1
- package/types/workspace/WorkspaceQuickList.d.ts.map +1 -1
- package/types/workspace/WorkspaceRecents.d.ts.map +1 -1
- package/types/workspace/WorkspaceShortcut.d.ts.map +1 -1
- package/types/workspace/parseContent.d.ts +18 -0
- 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
|
-
/**
|
|
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
|
-
|
|
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
|
|
179
|
-
|
|
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,
|
|
170
|
-
*
|
|
171
|
-
*
|
|
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
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
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;
|