@multiplatform.one/backoffice 6.4.3 → 6.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +59 -3
- package/dist/cjs/chrome/NotificationsButton.cjs +1 -1
- package/dist/cjs/chrome/NotificationsButton.native.js +1 -1
- package/dist/cjs/chrome/NotificationsButton.native.js.map +1 -1
- package/dist/cjs/config/BackofficeProvider.cjs +12 -1
- package/dist/cjs/config/BackofficeProvider.native.js +17 -1
- package/dist/cjs/config/BackofficeProvider.native.js.map +1 -1
- package/dist/cjs/form/DocFormScreen.cjs +743 -0
- package/dist/cjs/form/DocFormScreen.native.js +843 -0
- package/dist/cjs/form/DocFormScreen.native.js.map +1 -0
- package/dist/cjs/form/FormConnections.cjs +225 -0
- package/dist/cjs/form/FormConnections.native.js +246 -0
- package/dist/cjs/form/FormConnections.native.js.map +1 -0
- package/dist/cjs/form/FormDialogs.cjs +179 -0
- package/dist/cjs/form/FormDialogs.native.js +193 -0
- package/dist/cjs/form/FormDialogs.native.js.map +1 -0
- package/dist/cjs/form/FormErrorBoundary.cjs +122 -0
- package/dist/cjs/form/FormErrorBoundary.native.js +230 -0
- package/dist/cjs/form/FormErrorBoundary.native.js.map +1 -0
- package/dist/cjs/form/FormHeaderCluster.cjs +153 -0
- package/dist/cjs/form/FormHeaderCluster.native.js +177 -0
- package/dist/cjs/form/FormHeaderCluster.native.js.map +1 -0
- package/dist/cjs/form/FormSidebarPanel.cjs +430 -0
- package/dist/cjs/form/FormSidebarPanel.native.js +492 -0
- package/dist/cjs/form/FormSidebarPanel.native.js.map +1 -0
- package/dist/cjs/form/FormTimeline.cjs +517 -0
- package/dist/cjs/form/FormTimeline.native.js +575 -0
- package/dist/cjs/form/FormTimeline.native.js.map +1 -0
- package/dist/cjs/form/FormToolbar.cjs +308 -0
- package/dist/cjs/form/FormToolbar.native.js +331 -0
- package/dist/cjs/form/FormToolbar.native.js.map +1 -0
- package/dist/cjs/form/connections-data.cjs +152 -0
- package/dist/cjs/form/connections-data.native.js +253 -0
- package/dist/cjs/form/connections-data.native.js.map +1 -0
- package/dist/cjs/form/createPrefill.cjs +37 -0
- package/dist/cjs/form/createPrefill.native.js +40 -0
- package/dist/cjs/form/createPrefill.native.js.map +1 -0
- package/dist/cjs/form/dependsOn.cjs +29 -0
- package/dist/cjs/form/dependsOn.native.js +32 -0
- package/dist/cjs/form/dependsOn.native.js.map +1 -0
- package/dist/cjs/form/dirtyTracking.cjs +55 -0
- package/dist/cjs/form/dirtyTracking.native.js +77 -0
- package/dist/cjs/form/dirtyTracking.native.js.map +1 -0
- package/dist/cjs/form/docinfo.cjs +32 -0
- package/dist/cjs/form/docinfo.native.js +35 -0
- package/dist/cjs/form/docinfo.native.js.map +1 -0
- package/dist/cjs/form/fetchFrom.cjs +67 -0
- package/dist/cjs/form/fetchFrom.native.js +110 -0
- package/dist/cjs/form/fetchFrom.native.js.map +1 -0
- package/dist/cjs/form/fieldPermissions.cjs +55 -0
- package/dist/cjs/form/fieldPermissions.native.js +80 -0
- package/dist/cjs/form/fieldPermissions.native.js.map +1 -0
- package/dist/cjs/form/formActions.cjs +189 -0
- package/dist/cjs/form/formActions.native.js +199 -0
- package/dist/cjs/form/formActions.native.js.map +1 -0
- package/dist/cjs/form/formLayout.cjs +255 -0
- package/dist/cjs/form/formLayout.native.js +394 -0
- package/dist/cjs/form/formLayout.native.js.map +1 -0
- package/dist/cjs/form/platformHooks.cjs +88 -0
- package/dist/cjs/form/platformHooks.native.js +96 -0
- package/dist/cjs/form/platformHooks.native.js.map +1 -0
- package/dist/cjs/form/sidebar-attachments.cjs +124 -0
- package/dist/cjs/form/sidebar-attachments.native.js +147 -0
- package/dist/cjs/form/sidebar-attachments.native.js.map +1 -0
- package/dist/cjs/form/sidebar-dialogs.cjs +136 -0
- package/dist/cjs/form/sidebar-dialogs.native.js +151 -0
- package/dist/cjs/form/sidebar-dialogs.native.js.map +1 -0
- package/dist/cjs/form/sidebar-people.cjs +125 -0
- package/dist/cjs/form/sidebar-people.native.js +136 -0
- package/dist/cjs/form/sidebar-people.native.js.map +1 -0
- package/dist/cjs/form/sidebar-rpc.cjs +153 -0
- package/dist/cjs/form/sidebar-rpc.native.js +177 -0
- package/dist/cjs/form/sidebar-rpc.native.js.map +1 -0
- package/dist/cjs/form/sidebar-utils.cjs +118 -0
- package/dist/cjs/form/sidebar-utils.native.js +128 -0
- package/dist/cjs/form/sidebar-utils.native.js.map +1 -0
- package/dist/cjs/form/timeline-entries.cjs +239 -0
- package/dist/cjs/form/timeline-entries.native.js +452 -0
- package/dist/cjs/form/timeline-entries.native.js.map +1 -0
- package/dist/cjs/form/timeline-utils.cjs +151 -0
- package/dist/cjs/form/timeline-utils.native.js +178 -0
- package/dist/cjs/form/timeline-utils.native.js.map +1 -0
- package/dist/cjs/form/useFormEngine.cjs +387 -0
- package/dist/cjs/form/useFormEngine.native.js +476 -0
- package/dist/cjs/form/useFormEngine.native.js.map +1 -0
- package/dist/cjs/i18n/en.cjs +307 -0
- package/dist/cjs/i18n/en.native.js +307 -0
- package/dist/cjs/i18n/en.native.js.map +1 -1
- package/dist/cjs/index.cjs +280 -1
- package/dist/cjs/index.native.js +279 -0
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/list/AddTagsDialog.cjs +117 -0
- package/dist/cjs/list/AddTagsDialog.native.js +146 -0
- package/dist/cjs/list/AddTagsDialog.native.js.map +1 -0
- package/dist/cjs/list/AssignToDialog.cjs +110 -0
- package/dist/cjs/list/AssignToDialog.native.js +137 -0
- package/dist/cjs/list/AssignToDialog.native.js.map +1 -0
- package/dist/cjs/list/DoctypeListScreen.cjs +840 -0
- package/dist/cjs/list/DoctypeListScreen.native.js +987 -0
- package/dist/cjs/list/DoctypeListScreen.native.js.map +1 -0
- package/dist/cjs/list/ListBulkActionsBar.cjs +325 -0
- package/dist/cjs/list/ListBulkActionsBar.native.js +373 -0
- package/dist/cjs/list/ListBulkActionsBar.native.js.map +1 -0
- package/dist/cjs/list/ListFilterBar.cjs +99 -0
- package/dist/cjs/list/ListFilterBar.native.js +103 -0
- package/dist/cjs/list/ListFilterBar.native.js.map +1 -0
- package/dist/cjs/list/ListSidebar.cjs +141 -0
- package/dist/cjs/list/ListSidebar.native.js +180 -0
- package/dist/cjs/list/ListSidebar.native.js.map +1 -0
- package/dist/cjs/list/bulk-edit-dialog.cjs +232 -0
- package/dist/cjs/list/bulk-edit-dialog.native.js +284 -0
- package/dist/cjs/list/bulk-edit-dialog.native.js.map +1 -0
- package/dist/cjs/list/bulk-export.cjs +87 -0
- package/dist/cjs/list/bulk-export.native.js +155 -0
- package/dist/cjs/list/bulk-export.native.js.map +1 -0
- package/dist/cjs/list/bulk-submit-cancel.cjs +40 -0
- package/dist/cjs/list/bulk-submit-cancel.native.js +56 -0
- package/dist/cjs/list/bulk-submit-cancel.native.js.map +1 -0
- package/dist/cjs/list/bulkActions.cjs +94 -0
- package/dist/cjs/list/bulkActions.native.js +129 -0
- package/dist/cjs/list/bulkActions.native.js.map +1 -0
- package/dist/cjs/list/filter-chips.cjs +59 -0
- package/dist/cjs/list/filter-chips.native.js +73 -0
- package/dist/cjs/list/filter-chips.native.js.map +1 -0
- package/dist/cjs/list/filter-editor.cjs +389 -0
- package/dist/cjs/list/filter-editor.native.js +493 -0
- package/dist/cjs/list/filter-editor.native.js.map +1 -0
- package/dist/cjs/list/filter-fields.cjs +271 -0
- package/dist/cjs/list/filter-fields.native.js +339 -0
- package/dist/cjs/list/filter-fields.native.js.map +1 -0
- package/dist/cjs/list/filter-saved.cjs +172 -0
- package/dist/cjs/list/filter-saved.native.js +199 -0
- package/dist/cjs/list/filter-saved.native.js.map +1 -0
- package/dist/cjs/list/filter-sort.cjs +173 -0
- package/dist/cjs/list/filter-sort.native.js +228 -0
- package/dist/cjs/list/filter-sort.native.js.map +1 -0
- package/dist/cjs/list/filter-standard.cjs +158 -0
- package/dist/cjs/list/filter-standard.native.js +175 -0
- package/dist/cjs/list/filter-standard.native.js.map +1 -0
- package/dist/cjs/list/filterConversion.cjs +163 -0
- package/dist/cjs/list/filterConversion.native.js +216 -0
- package/dist/cjs/list/filterConversion.native.js.map +1 -0
- package/dist/cjs/list/list-tools-sheet.cjs +148 -0
- package/dist/cjs/list/list-tools-sheet.native.js +169 -0
- package/dist/cjs/list/list-tools-sheet.native.js.map +1 -0
- package/dist/cjs/list/listColumns.cjs +257 -0
- package/dist/cjs/list/listColumns.native.js +307 -0
- package/dist/cjs/list/listColumns.native.js.map +1 -0
- package/dist/cjs/list/listFields.cjs +45 -0
- package/dist/cjs/list/listFields.native.js +72 -0
- package/dist/cjs/list/listFields.native.js.map +1 -0
- package/dist/cjs/list/listFormat.cjs +68 -0
- package/dist/cjs/list/listFormat.native.js +74 -0
- package/dist/cjs/list/listFormat.native.js.map +1 -0
- package/dist/cjs/list/listUrlState.cjs +70 -0
- package/dist/cjs/list/listUrlState.native.js +96 -0
- package/dist/cjs/list/listUrlState.native.js.map +1 -0
- package/dist/cjs/list/sidebar-section.cjs +142 -0
- package/dist/cjs/list/sidebar-section.native.js +150 -0
- package/dist/cjs/list/sidebar-section.native.js.map +1 -0
- package/dist/cjs/list/sidebar-stats.cjs +256 -0
- package/dist/cjs/list/sidebar-stats.native.js +469 -0
- package/dist/cjs/list/sidebar-stats.native.js.map +1 -0
- package/dist/cjs/list/statusColors.cjs +102 -0
- package/dist/cjs/list/statusColors.native.js +109 -0
- package/dist/cjs/list/statusColors.native.js.map +1 -0
- package/dist/cjs/navigation/navigator.cjs +66 -3
- package/dist/cjs/navigation/navigator.native.js +100 -4
- package/dist/cjs/navigation/navigator.native.js.map +1 -1
- package/dist/cjs/navigation/paths.cjs +8 -1
- package/dist/cjs/navigation/paths.native.js +9 -0
- package/dist/cjs/navigation/paths.native.js.map +1 -1
- package/dist/cjs/oneAdapter/index.cjs +24 -2
- package/dist/cjs/oneAdapter/index.native.js +28 -1
- package/dist/cjs/oneAdapter/index.native.js.map +1 -1
- package/dist/cjs/quickEntry/QuickEntryDialog.cjs +292 -0
- package/dist/cjs/quickEntry/QuickEntryDialog.native.js +365 -0
- package/dist/cjs/quickEntry/QuickEntryDialog.native.js.map +1 -0
- package/dist/cjs/quickEntry/quickEntryPlan.cjs +189 -0
- package/dist/cjs/quickEntry/quickEntryPlan.native.js +223 -0
- package/dist/cjs/quickEntry/quickEntryPlan.native.js.map +1 -0
- package/dist/cjs/report/DoctypeReportView.cjs +430 -0
- package/dist/cjs/report/DoctypeReportView.native.js +532 -0
- package/dist/cjs/report/DoctypeReportView.native.js.map +1 -0
- package/dist/cjs/report/QueryReportScreen.cjs +281 -0
- package/dist/cjs/report/QueryReportScreen.native.js +354 -0
- package/dist/cjs/report/QueryReportScreen.native.js.map +1 -0
- package/dist/cjs/report/queryReportColumns.cjs +122 -0
- package/dist/cjs/report/queryReportColumns.native.js +144 -0
- package/dist/cjs/report/queryReportColumns.native.js.map +1 -0
- package/dist/cjs/report/report-grid.cjs +347 -0
- package/dist/cjs/report/report-grid.native.js +389 -0
- package/dist/cjs/report/report-grid.native.js.map +1 -0
- package/dist/cjs/report/report-toolbar.cjs +264 -0
- package/dist/cjs/report/report-toolbar.native.js +309 -0
- package/dist/cjs/report/report-toolbar.native.js.map +1 -0
- package/dist/cjs/report/reportShapes.cjs +151 -0
- package/dist/cjs/report/reportShapes.native.js +208 -0
- package/dist/cjs/report/reportShapes.native.js.map +1 -0
- package/dist/cjs/report/reportViewModel.cjs +378 -0
- package/dist/cjs/report/reportViewModel.native.js +624 -0
- package/dist/cjs/report/reportViewModel.native.js.map +1 -0
- package/dist/cjs/report/savedReports.cjs +132 -0
- package/dist/cjs/report/savedReports.native.js +162 -0
- package/dist/cjs/report/savedReports.native.js.map +1 -0
- package/dist/cjs/report/useQueryReport.cjs +214 -0
- package/dist/cjs/report/useQueryReport.native.js +254 -0
- package/dist/cjs/report/useQueryReport.native.js.map +1 -0
- package/dist/cjs/shared/useSlugTarget.cjs +42 -4
- package/dist/cjs/shared/useSlugTarget.native.js +66 -6
- package/dist/cjs/shared/useSlugTarget.native.js.map +1 -1
- package/dist/cjs/shell/HomeRedirect.cjs +83 -0
- package/dist/cjs/shell/HomeRedirect.native.js +88 -0
- package/dist/cjs/shell/HomeRedirect.native.js.map +1 -0
- package/dist/cjs/shell/NotFoundScreen.cjs +48 -0
- package/dist/cjs/shell/NotFoundScreen.native.js +53 -0
- package/dist/cjs/shell/NotFoundScreen.native.js.map +1 -0
- package/dist/cjs/shell/SlugScreen.cjs +70 -0
- package/dist/cjs/shell/SlugScreen.native.js +74 -0
- package/dist/cjs/shell/SlugScreen.native.js.map +1 -0
- package/dist/cjs/views/CalendarView.cjs +135 -0
- package/dist/cjs/views/CalendarView.native.js +162 -0
- package/dist/cjs/views/CalendarView.native.js.map +1 -0
- package/dist/cjs/views/DashboardView.cjs +222 -0
- package/dist/cjs/views/DashboardView.native.js +235 -0
- package/dist/cjs/views/DashboardView.native.js.map +1 -0
- package/dist/cjs/views/DoctypeViewScreen.cjs +107 -0
- package/dist/cjs/views/DoctypeViewScreen.native.js +114 -0
- package/dist/cjs/views/DoctypeViewScreen.native.js.map +1 -0
- package/dist/cjs/views/ImageView.cjs +83 -0
- package/dist/cjs/views/ImageView.native.js +87 -0
- package/dist/cjs/views/ImageView.native.js.map +1 -0
- package/dist/cjs/views/KanbanView.cjs +346 -0
- package/dist/cjs/views/KanbanView.native.js +428 -0
- package/dist/cjs/views/KanbanView.native.js.map +1 -0
- package/dist/cjs/views/ReportView.cjs +280 -0
- package/dist/cjs/views/ReportView.native.js +407 -0
- package/dist/cjs/views/ReportView.native.js.map +1 -0
- package/dist/cjs/views/TreeView.cjs +79 -0
- package/dist/cjs/views/TreeView.native.js +85 -0
- package/dist/cjs/views/TreeView.native.js.map +1 -0
- package/dist/cjs/views/ViewHeader.cjs +139 -0
- package/dist/cjs/views/ViewHeader.native.js +147 -0
- package/dist/cjs/views/ViewHeader.native.js.map +1 -0
- package/dist/cjs/views/ViewStates.cjs +90 -0
- package/dist/cjs/views/ViewStates.native.js +98 -0
- package/dist/cjs/views/ViewStates.native.js.map +1 -0
- package/dist/cjs/views/calendar-field-selector.cjs +65 -0
- package/dist/cjs/views/calendar-field-selector.native.js +77 -0
- package/dist/cjs/views/calendar-field-selector.native.js.map +1 -0
- package/dist/cjs/views/connection.cjs +47 -0
- package/dist/cjs/views/connection.native.js +50 -0
- package/dist/cjs/views/connection.native.js.map +1 -0
- package/dist/cjs/views/dashboard-data.cjs +228 -0
- package/dist/cjs/views/dashboard-data.native.js +333 -0
- package/dist/cjs/views/dashboard-data.native.js.map +1 -0
- package/dist/cjs/views/deskViewConfigs.cjs +130 -0
- package/dist/cjs/views/deskViewConfigs.native.js +158 -0
- package/dist/cjs/views/deskViewConfigs.native.js.map +1 -0
- package/dist/cjs/views/kanban-board-controls.cjs +287 -0
- package/dist/cjs/views/kanban-board-controls.native.js +320 -0
- package/dist/cjs/views/kanban-board-controls.native.js.map +1 -0
- package/dist/cjs/views/kanban-field-picker.cjs +79 -0
- package/dist/cjs/views/kanban-field-picker.native.js +97 -0
- package/dist/cjs/views/kanban-field-picker.native.js.map +1 -0
- package/dist/cjs/views/kanbanBoardOps.cjs +107 -0
- package/dist/cjs/views/kanbanBoardOps.native.js +138 -0
- package/dist/cjs/views/kanbanBoardOps.native.js.map +1 -0
- package/dist/cjs/views/report-controls.cjs +329 -0
- package/dist/cjs/views/report-controls.native.js +381 -0
- package/dist/cjs/views/report-controls.native.js.map +1 -0
- package/dist/cjs/views/viewMeta.cjs +94 -0
- package/dist/cjs/views/viewMeta.native.js +136 -0
- package/dist/cjs/views/viewMeta.native.js.map +1 -0
- package/dist/cjs/workspace/WorkspaceGrid.cjs +1 -2
- package/dist/cjs/workspace/WorkspaceGrid.native.js +1 -2
- package/dist/cjs/workspace/WorkspaceGrid.native.js.map +1 -1
- package/dist/cjs/workspace/WorkspaceLinkCard.cjs +30 -23
- package/dist/cjs/workspace/WorkspaceLinkCard.native.js +37 -30
- package/dist/cjs/workspace/WorkspaceLinkCard.native.js.map +1 -1
- package/dist/cjs/workspace/WorkspaceShortcut.cjs +8 -1
- package/dist/cjs/workspace/WorkspaceShortcut.native.js +10 -3
- package/dist/cjs/workspace/WorkspaceShortcut.native.js.map +1 -1
- package/dist/esm/chrome/NotificationsButton.mjs +2 -2
- package/dist/esm/chrome/NotificationsButton.mjs.map +1 -1
- package/dist/esm/chrome/NotificationsButton.native.js +2 -2
- package/dist/esm/chrome/NotificationsButton.native.js.map +1 -1
- package/dist/esm/config/BackofficeProvider.mjs +12 -2
- package/dist/esm/config/BackofficeProvider.mjs.map +1 -1
- package/dist/esm/config/BackofficeProvider.native.js +17 -2
- package/dist/esm/config/BackofficeProvider.native.js.map +1 -1
- package/dist/esm/form/DocFormScreen.mjs +718 -0
- package/dist/esm/form/DocFormScreen.mjs.map +1 -0
- package/dist/esm/form/DocFormScreen.native.js +804 -0
- package/dist/esm/form/DocFormScreen.native.js.map +1 -0
- package/dist/esm/form/FormConnections.mjs +200 -0
- package/dist/esm/form/FormConnections.mjs.map +1 -0
- package/dist/esm/form/FormConnections.native.js +218 -0
- package/dist/esm/form/FormConnections.native.js.map +1 -0
- package/dist/esm/form/FormDialogs.mjs +152 -0
- package/dist/esm/form/FormDialogs.mjs.map +1 -0
- package/dist/esm/form/FormDialogs.native.js +163 -0
- package/dist/esm/form/FormDialogs.native.js.map +1 -0
- package/dist/esm/form/FormErrorBoundary.mjs +85 -0
- package/dist/esm/form/FormErrorBoundary.mjs.map +1 -0
- package/dist/esm/form/FormErrorBoundary.native.js +190 -0
- package/dist/esm/form/FormErrorBoundary.native.js.map +1 -0
- package/dist/esm/form/FormHeaderCluster.mjs +128 -0
- package/dist/esm/form/FormHeaderCluster.mjs.map +1 -0
- package/dist/esm/form/FormHeaderCluster.native.js +149 -0
- package/dist/esm/form/FormHeaderCluster.native.js.map +1 -0
- package/dist/esm/form/FormSidebarPanel.mjs +405 -0
- package/dist/esm/form/FormSidebarPanel.mjs.map +1 -0
- package/dist/esm/form/FormSidebarPanel.native.js +453 -0
- package/dist/esm/form/FormSidebarPanel.native.js.map +1 -0
- package/dist/esm/form/FormTimeline.mjs +492 -0
- package/dist/esm/form/FormTimeline.mjs.map +1 -0
- package/dist/esm/form/FormTimeline.native.js +547 -0
- package/dist/esm/form/FormTimeline.native.js.map +1 -0
- package/dist/esm/form/FormToolbar.mjs +281 -0
- package/dist/esm/form/FormToolbar.mjs.map +1 -0
- package/dist/esm/form/FormToolbar.native.js +301 -0
- package/dist/esm/form/FormToolbar.native.js.map +1 -0
- package/dist/esm/form/connections-data.mjs +123 -0
- package/dist/esm/form/connections-data.mjs.map +1 -0
- package/dist/esm/form/connections-data.native.js +221 -0
- package/dist/esm/form/connections-data.native.js.map +1 -0
- package/dist/esm/form/createPrefill.mjs +11 -0
- package/dist/esm/form/createPrefill.mjs.map +1 -0
- package/dist/esm/form/createPrefill.native.js +11 -0
- package/dist/esm/form/createPrefill.native.js.map +1 -0
- package/dist/esm/form/dependsOn.mjs +3 -0
- package/dist/esm/form/dependsOn.mjs.map +1 -0
- package/dist/esm/form/dependsOn.native.js +3 -0
- package/dist/esm/form/dependsOn.native.js.map +1 -0
- package/dist/esm/form/dirtyTracking.mjs +28 -0
- package/dist/esm/form/dirtyTracking.mjs.map +1 -0
- package/dist/esm/form/dirtyTracking.native.js +47 -0
- package/dist/esm/form/dirtyTracking.native.js.map +1 -0
- package/dist/esm/form/docinfo.mjs +7 -0
- package/dist/esm/form/docinfo.mjs.map +1 -0
- package/dist/esm/form/docinfo.native.js +7 -0
- package/dist/esm/form/docinfo.native.js.map +1 -0
- package/dist/esm/form/fetchFrom.mjs +40 -0
- package/dist/esm/form/fetchFrom.mjs.map +1 -0
- package/dist/esm/form/fetchFrom.native.js +80 -0
- package/dist/esm/form/fetchFrom.native.js.map +1 -0
- package/dist/esm/form/fieldPermissions.mjs +28 -0
- package/dist/esm/form/fieldPermissions.mjs.map +1 -0
- package/dist/esm/form/fieldPermissions.native.js +50 -0
- package/dist/esm/form/fieldPermissions.native.js.map +1 -0
- package/dist/esm/form/formActions.mjs +146 -0
- package/dist/esm/form/formActions.mjs.map +1 -0
- package/dist/esm/form/formActions.native.js +153 -0
- package/dist/esm/form/formActions.native.js.map +1 -0
- package/dist/esm/form/formLayout.mjs +227 -0
- package/dist/esm/form/formLayout.mjs.map +1 -0
- package/dist/esm/form/formLayout.native.js +363 -0
- package/dist/esm/form/formLayout.native.js.map +1 -0
- package/dist/esm/form/platformHooks.mjs +59 -0
- package/dist/esm/form/platformHooks.mjs.map +1 -0
- package/dist/esm/form/platformHooks.native.js +64 -0
- package/dist/esm/form/platformHooks.native.js.map +1 -0
- package/dist/esm/form/sidebar-attachments.mjs +99 -0
- package/dist/esm/form/sidebar-attachments.mjs.map +1 -0
- package/dist/esm/form/sidebar-attachments.native.js +108 -0
- package/dist/esm/form/sidebar-attachments.native.js.map +1 -0
- package/dist/esm/form/sidebar-dialogs.mjs +110 -0
- package/dist/esm/form/sidebar-dialogs.mjs.map +1 -0
- package/dist/esm/form/sidebar-dialogs.native.js +122 -0
- package/dist/esm/form/sidebar-dialogs.native.js.map +1 -0
- package/dist/esm/form/sidebar-people.mjs +99 -0
- package/dist/esm/form/sidebar-people.mjs.map +1 -0
- package/dist/esm/form/sidebar-people.native.js +107 -0
- package/dist/esm/form/sidebar-people.native.js.map +1 -0
- package/dist/esm/form/sidebar-rpc.mjs +116 -0
- package/dist/esm/form/sidebar-rpc.mjs.map +1 -0
- package/dist/esm/form/sidebar-rpc.native.js +126 -0
- package/dist/esm/form/sidebar-rpc.native.js.map +1 -0
- package/dist/esm/form/sidebar-utils.mjs +86 -0
- package/dist/esm/form/sidebar-utils.mjs.map +1 -0
- package/dist/esm/form/sidebar-utils.native.js +93 -0
- package/dist/esm/form/sidebar-utils.native.js.map +1 -0
- package/dist/esm/form/timeline-entries.mjs +211 -0
- package/dist/esm/form/timeline-entries.mjs.map +1 -0
- package/dist/esm/form/timeline-entries.native.js +421 -0
- package/dist/esm/form/timeline-entries.native.js.map +1 -0
- package/dist/esm/form/timeline-utils.mjs +118 -0
- package/dist/esm/form/timeline-utils.mjs.map +1 -0
- package/dist/esm/form/timeline-utils.native.js +142 -0
- package/dist/esm/form/timeline-utils.native.js.map +1 -0
- package/dist/esm/form/useFormEngine.mjs +362 -0
- package/dist/esm/form/useFormEngine.mjs.map +1 -0
- package/dist/esm/form/useFormEngine.native.js +448 -0
- package/dist/esm/form/useFormEngine.native.js.map +1 -0
- package/dist/esm/i18n/en.mjs +307 -0
- package/dist/esm/i18n/en.mjs.map +1 -1
- package/dist/esm/i18n/en.native.js +307 -0
- package/dist/esm/i18n/en.native.js.map +1 -1
- package/dist/esm/index.mjs +80 -3
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +80 -3
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/list/AddTagsDialog.mjs +92 -0
- package/dist/esm/list/AddTagsDialog.mjs.map +1 -0
- package/dist/esm/list/AddTagsDialog.native.js +107 -0
- package/dist/esm/list/AddTagsDialog.native.js.map +1 -0
- package/dist/esm/list/AssignToDialog.mjs +85 -0
- package/dist/esm/list/AssignToDialog.mjs.map +1 -0
- package/dist/esm/list/AssignToDialog.native.js +98 -0
- package/dist/esm/list/AssignToDialog.native.js.map +1 -0
- package/dist/esm/list/DoctypeListScreen.mjs +815 -0
- package/dist/esm/list/DoctypeListScreen.mjs.map +1 -0
- package/dist/esm/list/DoctypeListScreen.native.js +948 -0
- package/dist/esm/list/DoctypeListScreen.native.js.map +1 -0
- package/dist/esm/list/ListBulkActionsBar.mjs +300 -0
- package/dist/esm/list/ListBulkActionsBar.mjs.map +1 -0
- package/dist/esm/list/ListBulkActionsBar.native.js +334 -0
- package/dist/esm/list/ListBulkActionsBar.native.js.map +1 -0
- package/dist/esm/list/ListFilterBar.mjs +74 -0
- package/dist/esm/list/ListFilterBar.mjs.map +1 -0
- package/dist/esm/list/ListFilterBar.native.js +75 -0
- package/dist/esm/list/ListFilterBar.native.js.map +1 -0
- package/dist/esm/list/ListSidebar.mjs +116 -0
- package/dist/esm/list/ListSidebar.mjs.map +1 -0
- package/dist/esm/list/ListSidebar.native.js +152 -0
- package/dist/esm/list/ListSidebar.native.js.map +1 -0
- package/dist/esm/list/bulk-edit-dialog.mjs +204 -0
- package/dist/esm/list/bulk-edit-dialog.mjs.map +1 -0
- package/dist/esm/list/bulk-edit-dialog.native.js +242 -0
- package/dist/esm/list/bulk-edit-dialog.native.js.map +1 -0
- package/dist/esm/list/bulk-export.mjs +59 -0
- package/dist/esm/list/bulk-export.mjs.map +1 -0
- package/dist/esm/list/bulk-export.native.js +113 -0
- package/dist/esm/list/bulk-export.native.js.map +1 -0
- package/dist/esm/list/bulk-submit-cancel.mjs +15 -0
- package/dist/esm/list/bulk-submit-cancel.mjs.map +1 -0
- package/dist/esm/list/bulk-submit-cancel.native.js +17 -0
- package/dist/esm/list/bulk-submit-cancel.native.js.map +1 -0
- package/dist/esm/list/bulkActions.mjs +66 -0
- package/dist/esm/list/bulkActions.mjs.map +1 -0
- package/dist/esm/list/bulkActions.native.js +98 -0
- package/dist/esm/list/bulkActions.native.js.map +1 -0
- package/dist/esm/list/filter-chips.mjs +34 -0
- package/dist/esm/list/filter-chips.mjs.map +1 -0
- package/dist/esm/list/filter-chips.native.js +45 -0
- package/dist/esm/list/filter-chips.native.js.map +1 -0
- package/dist/esm/list/filter-editor.mjs +363 -0
- package/dist/esm/list/filter-editor.mjs.map +1 -0
- package/dist/esm/list/filter-editor.native.js +464 -0
- package/dist/esm/list/filter-editor.native.js.map +1 -0
- package/dist/esm/list/filter-fields.mjs +233 -0
- package/dist/esm/list/filter-fields.mjs.map +1 -0
- package/dist/esm/list/filter-fields.native.js +298 -0
- package/dist/esm/list/filter-fields.native.js.map +1 -0
- package/dist/esm/list/filter-saved.mjs +147 -0
- package/dist/esm/list/filter-saved.mjs.map +1 -0
- package/dist/esm/list/filter-saved.native.js +160 -0
- package/dist/esm/list/filter-saved.native.js.map +1 -0
- package/dist/esm/list/filter-sort.mjs +146 -0
- package/dist/esm/list/filter-sort.mjs.map +1 -0
- package/dist/esm/list/filter-sort.native.js +198 -0
- package/dist/esm/list/filter-sort.native.js.map +1 -0
- package/dist/esm/list/filter-standard.mjs +133 -0
- package/dist/esm/list/filter-standard.mjs.map +1 -0
- package/dist/esm/list/filter-standard.native.js +147 -0
- package/dist/esm/list/filter-standard.native.js.map +1 -0
- package/dist/esm/list/filterConversion.mjs +134 -0
- package/dist/esm/list/filterConversion.mjs.map +1 -0
- package/dist/esm/list/filterConversion.native.js +184 -0
- package/dist/esm/list/filterConversion.native.js.map +1 -0
- package/dist/esm/list/list-tools-sheet.mjs +123 -0
- package/dist/esm/list/list-tools-sheet.mjs.map +1 -0
- package/dist/esm/list/list-tools-sheet.native.js +141 -0
- package/dist/esm/list/list-tools-sheet.native.js.map +1 -0
- package/dist/esm/list/listColumns.mjs +232 -0
- package/dist/esm/list/listColumns.mjs.map +1 -0
- package/dist/esm/list/listColumns.native.js +279 -0
- package/dist/esm/list/listColumns.native.js.map +1 -0
- package/dist/esm/list/listFields.mjs +19 -0
- package/dist/esm/list/listFields.mjs.map +1 -0
- package/dist/esm/list/listFields.native.js +43 -0
- package/dist/esm/list/listFields.native.js.map +1 -0
- package/dist/esm/list/listFormat.mjs +38 -0
- package/dist/esm/list/listFormat.mjs.map +1 -0
- package/dist/esm/list/listFormat.native.js +41 -0
- package/dist/esm/list/listFormat.native.js.map +1 -0
- package/dist/esm/list/listUrlState.mjs +42 -0
- package/dist/esm/list/listUrlState.mjs.map +1 -0
- package/dist/esm/list/listUrlState.native.js +65 -0
- package/dist/esm/list/listUrlState.native.js.map +1 -0
- package/dist/esm/list/sidebar-section.mjs +115 -0
- package/dist/esm/list/sidebar-section.mjs.map +1 -0
- package/dist/esm/list/sidebar-section.native.js +120 -0
- package/dist/esm/list/sidebar-section.native.js.map +1 -0
- package/dist/esm/list/sidebar-stats.mjs +226 -0
- package/dist/esm/list/sidebar-stats.mjs.map +1 -0
- package/dist/esm/list/sidebar-stats.native.js +425 -0
- package/dist/esm/list/sidebar-stats.native.js.map +1 -0
- package/dist/esm/list/statusColors.mjs +77 -0
- package/dist/esm/list/statusColors.mjs.map +1 -0
- package/dist/esm/list/statusColors.native.js +81 -0
- package/dist/esm/list/statusColors.native.js.map +1 -0
- package/dist/esm/navigation/navigator.mjs +66 -3
- package/dist/esm/navigation/navigator.mjs.map +1 -1
- package/dist/esm/navigation/navigator.native.js +100 -4
- package/dist/esm/navigation/navigator.native.js.map +1 -1
- package/dist/esm/navigation/paths.mjs +7 -2
- package/dist/esm/navigation/paths.mjs.map +1 -1
- package/dist/esm/navigation/paths.native.js +8 -1
- package/dist/esm/navigation/paths.native.js.map +1 -1
- package/dist/esm/oneAdapter/index.mjs +25 -4
- package/dist/esm/oneAdapter/index.mjs.map +1 -1
- package/dist/esm/oneAdapter/index.native.js +29 -3
- package/dist/esm/oneAdapter/index.native.js.map +1 -1
- package/dist/esm/quickEntry/QuickEntryDialog.mjs +267 -0
- package/dist/esm/quickEntry/QuickEntryDialog.mjs.map +1 -0
- package/dist/esm/quickEntry/QuickEntryDialog.native.js +326 -0
- package/dist/esm/quickEntry/QuickEntryDialog.native.js.map +1 -0
- package/dist/esm/quickEntry/quickEntryPlan.mjs +158 -0
- package/dist/esm/quickEntry/quickEntryPlan.mjs.map +1 -0
- package/dist/esm/quickEntry/quickEntryPlan.native.js +189 -0
- package/dist/esm/quickEntry/quickEntryPlan.native.js.map +1 -0
- package/dist/esm/report/DoctypeReportView.mjs +405 -0
- package/dist/esm/report/DoctypeReportView.mjs.map +1 -0
- package/dist/esm/report/DoctypeReportView.native.js +493 -0
- package/dist/esm/report/DoctypeReportView.native.js.map +1 -0
- package/dist/esm/report/QueryReportScreen.mjs +256 -0
- package/dist/esm/report/QueryReportScreen.mjs.map +1 -0
- package/dist/esm/report/QueryReportScreen.native.js +315 -0
- package/dist/esm/report/QueryReportScreen.native.js.map +1 -0
- package/dist/esm/report/queryReportColumns.mjs +97 -0
- package/dist/esm/report/queryReportColumns.mjs.map +1 -0
- package/dist/esm/report/queryReportColumns.native.js +105 -0
- package/dist/esm/report/queryReportColumns.native.js.map +1 -0
- package/dist/esm/report/report-grid.mjs +322 -0
- package/dist/esm/report/report-grid.mjs.map +1 -0
- package/dist/esm/report/report-grid.native.js +350 -0
- package/dist/esm/report/report-grid.native.js.map +1 -0
- package/dist/esm/report/report-toolbar.mjs +239 -0
- package/dist/esm/report/report-toolbar.mjs.map +1 -0
- package/dist/esm/report/report-toolbar.native.js +270 -0
- package/dist/esm/report/report-toolbar.native.js.map +1 -0
- package/dist/esm/report/reportShapes.mjs +120 -0
- package/dist/esm/report/reportShapes.mjs.map +1 -0
- package/dist/esm/report/reportShapes.native.js +174 -0
- package/dist/esm/report/reportShapes.native.js.map +1 -0
- package/dist/esm/report/reportViewModel.mjs +335 -0
- package/dist/esm/report/reportViewModel.mjs.map +1 -0
- package/dist/esm/report/reportViewModel.native.js +578 -0
- package/dist/esm/report/reportViewModel.native.js.map +1 -0
- package/dist/esm/report/savedReports.mjs +107 -0
- package/dist/esm/report/savedReports.mjs.map +1 -0
- package/dist/esm/report/savedReports.native.js +134 -0
- package/dist/esm/report/savedReports.native.js.map +1 -0
- package/dist/esm/report/useQueryReport.mjs +185 -0
- package/dist/esm/report/useQueryReport.mjs.map +1 -0
- package/dist/esm/report/useQueryReport.native.js +222 -0
- package/dist/esm/report/useQueryReport.native.js.map +1 -0
- package/dist/esm/shared/useSlugTarget.mjs +42 -5
- package/dist/esm/shared/useSlugTarget.mjs.map +1 -1
- package/dist/esm/shared/useSlugTarget.native.js +66 -7
- package/dist/esm/shared/useSlugTarget.native.js.map +1 -1
- package/dist/esm/shell/HomeRedirect.mjs +58 -0
- package/dist/esm/shell/HomeRedirect.mjs.map +1 -0
- package/dist/esm/shell/HomeRedirect.native.js +60 -0
- package/dist/esm/shell/HomeRedirect.native.js.map +1 -0
- package/dist/esm/shell/NotFoundScreen.mjs +23 -0
- package/dist/esm/shell/NotFoundScreen.mjs.map +1 -0
- package/dist/esm/shell/NotFoundScreen.native.js +25 -0
- package/dist/esm/shell/NotFoundScreen.native.js.map +1 -0
- package/dist/esm/shell/SlugScreen.mjs +45 -0
- package/dist/esm/shell/SlugScreen.mjs.map +1 -0
- package/dist/esm/shell/SlugScreen.native.js +46 -0
- package/dist/esm/shell/SlugScreen.native.js.map +1 -0
- package/dist/esm/views/CalendarView.mjs +110 -0
- package/dist/esm/views/CalendarView.mjs.map +1 -0
- package/dist/esm/views/CalendarView.native.js +134 -0
- package/dist/esm/views/CalendarView.native.js.map +1 -0
- package/dist/esm/views/DashboardView.mjs +197 -0
- package/dist/esm/views/DashboardView.mjs.map +1 -0
- package/dist/esm/views/DashboardView.native.js +207 -0
- package/dist/esm/views/DashboardView.native.js.map +1 -0
- package/dist/esm/views/DoctypeViewScreen.mjs +82 -0
- package/dist/esm/views/DoctypeViewScreen.mjs.map +1 -0
- package/dist/esm/views/DoctypeViewScreen.native.js +86 -0
- package/dist/esm/views/DoctypeViewScreen.native.js.map +1 -0
- package/dist/esm/views/ImageView.mjs +58 -0
- package/dist/esm/views/ImageView.mjs.map +1 -0
- package/dist/esm/views/ImageView.native.js +59 -0
- package/dist/esm/views/ImageView.native.js.map +1 -0
- package/dist/esm/views/KanbanView.mjs +321 -0
- package/dist/esm/views/KanbanView.mjs.map +1 -0
- package/dist/esm/views/KanbanView.native.js +400 -0
- package/dist/esm/views/KanbanView.native.js.map +1 -0
- package/dist/esm/views/ReportView.mjs +254 -0
- package/dist/esm/views/ReportView.mjs.map +1 -0
- package/dist/esm/views/ReportView.native.js +378 -0
- package/dist/esm/views/ReportView.native.js.map +1 -0
- package/dist/esm/views/TreeView.mjs +54 -0
- package/dist/esm/views/TreeView.mjs.map +1 -0
- package/dist/esm/views/TreeView.native.js +57 -0
- package/dist/esm/views/TreeView.native.js.map +1 -0
- package/dist/esm/views/ViewHeader.mjs +112 -0
- package/dist/esm/views/ViewHeader.mjs.map +1 -0
- package/dist/esm/views/ViewHeader.native.js +117 -0
- package/dist/esm/views/ViewHeader.native.js.map +1 -0
- package/dist/esm/views/ViewStates.mjs +62 -0
- package/dist/esm/views/ViewStates.mjs.map +1 -0
- package/dist/esm/views/ViewStates.native.js +67 -0
- package/dist/esm/views/ViewStates.native.js.map +1 -0
- package/dist/esm/views/calendar-field-selector.mjs +39 -0
- package/dist/esm/views/calendar-field-selector.mjs.map +1 -0
- package/dist/esm/views/calendar-field-selector.native.js +48 -0
- package/dist/esm/views/calendar-field-selector.native.js.map +1 -0
- package/dist/esm/views/connection.mjs +22 -0
- package/dist/esm/views/connection.mjs.map +1 -0
- package/dist/esm/views/connection.native.js +22 -0
- package/dist/esm/views/connection.native.js.map +1 -0
- package/dist/esm/views/dashboard-data.mjs +196 -0
- package/dist/esm/views/dashboard-data.mjs.map +1 -0
- package/dist/esm/views/dashboard-data.native.js +287 -0
- package/dist/esm/views/dashboard-data.native.js.map +1 -0
- package/dist/esm/views/deskViewConfigs.mjs +103 -0
- package/dist/esm/views/deskViewConfigs.mjs.map +1 -0
- package/dist/esm/views/deskViewConfigs.native.js +128 -0
- package/dist/esm/views/deskViewConfigs.native.js.map +1 -0
- package/dist/esm/views/kanban-board-controls.mjs +259 -0
- package/dist/esm/views/kanban-board-controls.mjs.map +1 -0
- package/dist/esm/views/kanban-board-controls.native.js +289 -0
- package/dist/esm/views/kanban-board-controls.native.js.map +1 -0
- package/dist/esm/views/kanban-field-picker.mjs +52 -0
- package/dist/esm/views/kanban-field-picker.mjs.map +1 -0
- package/dist/esm/views/kanban-field-picker.native.js +67 -0
- package/dist/esm/views/kanban-field-picker.native.js.map +1 -0
- package/dist/esm/views/kanbanBoardOps.mjs +79 -0
- package/dist/esm/views/kanbanBoardOps.mjs.map +1 -0
- package/dist/esm/views/kanbanBoardOps.native.js +107 -0
- package/dist/esm/views/kanbanBoardOps.native.js.map +1 -0
- package/dist/esm/views/report-controls.mjs +301 -0
- package/dist/esm/views/report-controls.mjs.map +1 -0
- package/dist/esm/views/report-controls.native.js +350 -0
- package/dist/esm/views/report-controls.native.js.map +1 -0
- package/dist/esm/views/viewMeta.mjs +64 -0
- package/dist/esm/views/viewMeta.mjs.map +1 -0
- package/dist/esm/views/viewMeta.native.js +103 -0
- package/dist/esm/views/viewMeta.native.js.map +1 -0
- package/dist/esm/workspace/WorkspaceGrid.mjs +2 -3
- package/dist/esm/workspace/WorkspaceGrid.mjs.map +1 -1
- package/dist/esm/workspace/WorkspaceGrid.native.js +2 -3
- package/dist/esm/workspace/WorkspaceGrid.native.js.map +1 -1
- package/dist/esm/workspace/WorkspaceLinkCard.mjs +30 -23
- package/dist/esm/workspace/WorkspaceLinkCard.mjs.map +1 -1
- package/dist/esm/workspace/WorkspaceLinkCard.native.js +37 -30
- package/dist/esm/workspace/WorkspaceLinkCard.native.js.map +1 -1
- package/dist/esm/workspace/WorkspaceShortcut.mjs +9 -2
- package/dist/esm/workspace/WorkspaceShortcut.mjs.map +1 -1
- package/dist/esm/workspace/WorkspaceShortcut.native.js +11 -4
- package/dist/esm/workspace/WorkspaceShortcut.native.js.map +1 -1
- package/dist/jsx/chrome/NotificationsButton.mjs +2 -2
- package/dist/jsx/chrome/NotificationsButton.mjs.map +1 -1
- package/dist/jsx/chrome/NotificationsButton.native.js +1 -1
- package/dist/jsx/chrome/NotificationsButton.native.js.map +1 -1
- package/dist/jsx/config/BackofficeProvider.mjs +12 -2
- package/dist/jsx/config/BackofficeProvider.mjs.map +1 -1
- package/dist/jsx/config/BackofficeProvider.native.js +17 -1
- package/dist/jsx/config/BackofficeProvider.native.js.map +1 -1
- package/dist/jsx/form/DocFormScreen.mjs +718 -0
- package/dist/jsx/form/DocFormScreen.mjs.map +1 -0
- package/dist/jsx/form/DocFormScreen.native.js +843 -0
- package/dist/jsx/form/DocFormScreen.native.js.map +1 -0
- package/dist/jsx/form/FormConnections.mjs +200 -0
- package/dist/jsx/form/FormConnections.mjs.map +1 -0
- package/dist/jsx/form/FormConnections.native.js +246 -0
- package/dist/jsx/form/FormConnections.native.js.map +1 -0
- package/dist/jsx/form/FormDialogs.mjs +152 -0
- package/dist/jsx/form/FormDialogs.mjs.map +1 -0
- package/dist/jsx/form/FormDialogs.native.js +193 -0
- package/dist/jsx/form/FormDialogs.native.js.map +1 -0
- package/dist/jsx/form/FormErrorBoundary.mjs +85 -0
- package/dist/jsx/form/FormErrorBoundary.mjs.map +1 -0
- package/dist/jsx/form/FormErrorBoundary.native.js +230 -0
- package/dist/jsx/form/FormErrorBoundary.native.js.map +1 -0
- package/dist/jsx/form/FormHeaderCluster.mjs +128 -0
- package/dist/jsx/form/FormHeaderCluster.mjs.map +1 -0
- package/dist/jsx/form/FormHeaderCluster.native.js +177 -0
- package/dist/jsx/form/FormHeaderCluster.native.js.map +1 -0
- package/dist/jsx/form/FormSidebarPanel.mjs +405 -0
- package/dist/jsx/form/FormSidebarPanel.mjs.map +1 -0
- package/dist/jsx/form/FormSidebarPanel.native.js +492 -0
- package/dist/jsx/form/FormSidebarPanel.native.js.map +1 -0
- package/dist/jsx/form/FormTimeline.mjs +492 -0
- package/dist/jsx/form/FormTimeline.mjs.map +1 -0
- package/dist/jsx/form/FormTimeline.native.js +575 -0
- package/dist/jsx/form/FormTimeline.native.js.map +1 -0
- package/dist/jsx/form/FormToolbar.mjs +281 -0
- package/dist/jsx/form/FormToolbar.mjs.map +1 -0
- package/dist/jsx/form/FormToolbar.native.js +331 -0
- package/dist/jsx/form/FormToolbar.native.js.map +1 -0
- package/dist/jsx/form/connections-data.mjs +123 -0
- package/dist/jsx/form/connections-data.mjs.map +1 -0
- package/dist/jsx/form/connections-data.native.js +253 -0
- package/dist/jsx/form/connections-data.native.js.map +1 -0
- package/dist/jsx/form/createPrefill.mjs +11 -0
- package/dist/jsx/form/createPrefill.mjs.map +1 -0
- package/dist/jsx/form/createPrefill.native.js +40 -0
- package/dist/jsx/form/createPrefill.native.js.map +1 -0
- package/dist/jsx/form/dependsOn.mjs +3 -0
- package/dist/jsx/form/dependsOn.mjs.map +1 -0
- package/dist/jsx/form/dependsOn.native.js +32 -0
- package/dist/jsx/form/dependsOn.native.js.map +1 -0
- package/dist/jsx/form/dirtyTracking.mjs +28 -0
- package/dist/jsx/form/dirtyTracking.mjs.map +1 -0
- package/dist/jsx/form/dirtyTracking.native.js +77 -0
- package/dist/jsx/form/dirtyTracking.native.js.map +1 -0
- package/dist/jsx/form/docinfo.mjs +7 -0
- package/dist/jsx/form/docinfo.mjs.map +1 -0
- package/dist/jsx/form/docinfo.native.js +35 -0
- package/dist/jsx/form/docinfo.native.js.map +1 -0
- package/dist/jsx/form/fetchFrom.mjs +40 -0
- package/dist/jsx/form/fetchFrom.mjs.map +1 -0
- package/dist/jsx/form/fetchFrom.native.js +110 -0
- package/dist/jsx/form/fetchFrom.native.js.map +1 -0
- package/dist/jsx/form/fieldPermissions.mjs +28 -0
- package/dist/jsx/form/fieldPermissions.mjs.map +1 -0
- package/dist/jsx/form/fieldPermissions.native.js +80 -0
- package/dist/jsx/form/fieldPermissions.native.js.map +1 -0
- package/dist/jsx/form/formActions.mjs +146 -0
- package/dist/jsx/form/formActions.mjs.map +1 -0
- package/dist/jsx/form/formActions.native.js +199 -0
- package/dist/jsx/form/formActions.native.js.map +1 -0
- package/dist/jsx/form/formLayout.mjs +227 -0
- package/dist/jsx/form/formLayout.mjs.map +1 -0
- package/dist/jsx/form/formLayout.native.js +394 -0
- package/dist/jsx/form/formLayout.native.js.map +1 -0
- package/dist/jsx/form/platformHooks.mjs +59 -0
- package/dist/jsx/form/platformHooks.mjs.map +1 -0
- package/dist/jsx/form/platformHooks.native.js +96 -0
- package/dist/jsx/form/platformHooks.native.js.map +1 -0
- package/dist/jsx/form/sidebar-attachments.mjs +99 -0
- package/dist/jsx/form/sidebar-attachments.mjs.map +1 -0
- package/dist/jsx/form/sidebar-attachments.native.js +147 -0
- package/dist/jsx/form/sidebar-attachments.native.js.map +1 -0
- package/dist/jsx/form/sidebar-dialogs.mjs +110 -0
- package/dist/jsx/form/sidebar-dialogs.mjs.map +1 -0
- package/dist/jsx/form/sidebar-dialogs.native.js +151 -0
- package/dist/jsx/form/sidebar-dialogs.native.js.map +1 -0
- package/dist/jsx/form/sidebar-people.mjs +99 -0
- package/dist/jsx/form/sidebar-people.mjs.map +1 -0
- package/dist/jsx/form/sidebar-people.native.js +136 -0
- package/dist/jsx/form/sidebar-people.native.js.map +1 -0
- package/dist/jsx/form/sidebar-rpc.mjs +116 -0
- package/dist/jsx/form/sidebar-rpc.mjs.map +1 -0
- package/dist/jsx/form/sidebar-rpc.native.js +177 -0
- package/dist/jsx/form/sidebar-rpc.native.js.map +1 -0
- package/dist/jsx/form/sidebar-utils.mjs +86 -0
- package/dist/jsx/form/sidebar-utils.mjs.map +1 -0
- package/dist/jsx/form/sidebar-utils.native.js +128 -0
- package/dist/jsx/form/sidebar-utils.native.js.map +1 -0
- package/dist/jsx/form/timeline-entries.mjs +211 -0
- package/dist/jsx/form/timeline-entries.mjs.map +1 -0
- package/dist/jsx/form/timeline-entries.native.js +452 -0
- package/dist/jsx/form/timeline-entries.native.js.map +1 -0
- package/dist/jsx/form/timeline-utils.mjs +118 -0
- package/dist/jsx/form/timeline-utils.mjs.map +1 -0
- package/dist/jsx/form/timeline-utils.native.js +178 -0
- package/dist/jsx/form/timeline-utils.native.js.map +1 -0
- package/dist/jsx/form/useFormEngine.mjs +362 -0
- package/dist/jsx/form/useFormEngine.mjs.map +1 -0
- package/dist/jsx/form/useFormEngine.native.js +476 -0
- package/dist/jsx/form/useFormEngine.native.js.map +1 -0
- package/dist/jsx/i18n/en.mjs +307 -0
- package/dist/jsx/i18n/en.mjs.map +1 -1
- package/dist/jsx/i18n/en.native.js +307 -0
- package/dist/jsx/i18n/en.native.js.map +1 -1
- package/dist/jsx/index.js +80 -3
- package/dist/jsx/index.js.map +1 -1
- package/dist/jsx/index.mjs +80 -3
- package/dist/jsx/index.mjs.map +1 -1
- package/dist/jsx/index.native.js +279 -0
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/list/AddTagsDialog.mjs +92 -0
- package/dist/jsx/list/AddTagsDialog.mjs.map +1 -0
- package/dist/jsx/list/AddTagsDialog.native.js +146 -0
- package/dist/jsx/list/AddTagsDialog.native.js.map +1 -0
- package/dist/jsx/list/AssignToDialog.mjs +85 -0
- package/dist/jsx/list/AssignToDialog.mjs.map +1 -0
- package/dist/jsx/list/AssignToDialog.native.js +137 -0
- package/dist/jsx/list/AssignToDialog.native.js.map +1 -0
- package/dist/jsx/list/DoctypeListScreen.mjs +815 -0
- package/dist/jsx/list/DoctypeListScreen.mjs.map +1 -0
- package/dist/jsx/list/DoctypeListScreen.native.js +987 -0
- package/dist/jsx/list/DoctypeListScreen.native.js.map +1 -0
- package/dist/jsx/list/ListBulkActionsBar.mjs +300 -0
- package/dist/jsx/list/ListBulkActionsBar.mjs.map +1 -0
- package/dist/jsx/list/ListBulkActionsBar.native.js +373 -0
- package/dist/jsx/list/ListBulkActionsBar.native.js.map +1 -0
- package/dist/jsx/list/ListFilterBar.mjs +74 -0
- package/dist/jsx/list/ListFilterBar.mjs.map +1 -0
- package/dist/jsx/list/ListFilterBar.native.js +103 -0
- package/dist/jsx/list/ListFilterBar.native.js.map +1 -0
- package/dist/jsx/list/ListSidebar.mjs +116 -0
- package/dist/jsx/list/ListSidebar.mjs.map +1 -0
- package/dist/jsx/list/ListSidebar.native.js +180 -0
- package/dist/jsx/list/ListSidebar.native.js.map +1 -0
- package/dist/jsx/list/bulk-edit-dialog.mjs +204 -0
- package/dist/jsx/list/bulk-edit-dialog.mjs.map +1 -0
- package/dist/jsx/list/bulk-edit-dialog.native.js +284 -0
- package/dist/jsx/list/bulk-edit-dialog.native.js.map +1 -0
- package/dist/jsx/list/bulk-export.mjs +59 -0
- package/dist/jsx/list/bulk-export.mjs.map +1 -0
- package/dist/jsx/list/bulk-export.native.js +155 -0
- package/dist/jsx/list/bulk-export.native.js.map +1 -0
- package/dist/jsx/list/bulk-submit-cancel.mjs +15 -0
- package/dist/jsx/list/bulk-submit-cancel.mjs.map +1 -0
- package/dist/jsx/list/bulk-submit-cancel.native.js +56 -0
- package/dist/jsx/list/bulk-submit-cancel.native.js.map +1 -0
- package/dist/jsx/list/bulkActions.mjs +66 -0
- package/dist/jsx/list/bulkActions.mjs.map +1 -0
- package/dist/jsx/list/bulkActions.native.js +129 -0
- package/dist/jsx/list/bulkActions.native.js.map +1 -0
- package/dist/jsx/list/filter-chips.mjs +34 -0
- package/dist/jsx/list/filter-chips.mjs.map +1 -0
- package/dist/jsx/list/filter-chips.native.js +73 -0
- package/dist/jsx/list/filter-chips.native.js.map +1 -0
- package/dist/jsx/list/filter-editor.mjs +363 -0
- package/dist/jsx/list/filter-editor.mjs.map +1 -0
- package/dist/jsx/list/filter-editor.native.js +493 -0
- package/dist/jsx/list/filter-editor.native.js.map +1 -0
- package/dist/jsx/list/filter-fields.mjs +233 -0
- package/dist/jsx/list/filter-fields.mjs.map +1 -0
- package/dist/jsx/list/filter-fields.native.js +339 -0
- package/dist/jsx/list/filter-fields.native.js.map +1 -0
- package/dist/jsx/list/filter-saved.mjs +147 -0
- package/dist/jsx/list/filter-saved.mjs.map +1 -0
- package/dist/jsx/list/filter-saved.native.js +199 -0
- package/dist/jsx/list/filter-saved.native.js.map +1 -0
- package/dist/jsx/list/filter-sort.mjs +146 -0
- package/dist/jsx/list/filter-sort.mjs.map +1 -0
- package/dist/jsx/list/filter-sort.native.js +228 -0
- package/dist/jsx/list/filter-sort.native.js.map +1 -0
- package/dist/jsx/list/filter-standard.mjs +133 -0
- package/dist/jsx/list/filter-standard.mjs.map +1 -0
- package/dist/jsx/list/filter-standard.native.js +175 -0
- package/dist/jsx/list/filter-standard.native.js.map +1 -0
- package/dist/jsx/list/filterConversion.mjs +134 -0
- package/dist/jsx/list/filterConversion.mjs.map +1 -0
- package/dist/jsx/list/filterConversion.native.js +216 -0
- package/dist/jsx/list/filterConversion.native.js.map +1 -0
- package/dist/jsx/list/list-tools-sheet.mjs +123 -0
- package/dist/jsx/list/list-tools-sheet.mjs.map +1 -0
- package/dist/jsx/list/list-tools-sheet.native.js +169 -0
- package/dist/jsx/list/list-tools-sheet.native.js.map +1 -0
- package/dist/jsx/list/listColumns.mjs +232 -0
- package/dist/jsx/list/listColumns.mjs.map +1 -0
- package/dist/jsx/list/listColumns.native.js +307 -0
- package/dist/jsx/list/listColumns.native.js.map +1 -0
- package/dist/jsx/list/listFields.mjs +19 -0
- package/dist/jsx/list/listFields.mjs.map +1 -0
- package/dist/jsx/list/listFields.native.js +72 -0
- package/dist/jsx/list/listFields.native.js.map +1 -0
- package/dist/jsx/list/listFormat.mjs +38 -0
- package/dist/jsx/list/listFormat.mjs.map +1 -0
- package/dist/jsx/list/listFormat.native.js +74 -0
- package/dist/jsx/list/listFormat.native.js.map +1 -0
- package/dist/jsx/list/listUrlState.mjs +42 -0
- package/dist/jsx/list/listUrlState.mjs.map +1 -0
- package/dist/jsx/list/listUrlState.native.js +96 -0
- package/dist/jsx/list/listUrlState.native.js.map +1 -0
- package/dist/jsx/list/sidebar-section.mjs +115 -0
- package/dist/jsx/list/sidebar-section.mjs.map +1 -0
- package/dist/jsx/list/sidebar-section.native.js +150 -0
- package/dist/jsx/list/sidebar-section.native.js.map +1 -0
- package/dist/jsx/list/sidebar-stats.mjs +226 -0
- package/dist/jsx/list/sidebar-stats.mjs.map +1 -0
- package/dist/jsx/list/sidebar-stats.native.js +469 -0
- package/dist/jsx/list/sidebar-stats.native.js.map +1 -0
- package/dist/jsx/list/statusColors.mjs +77 -0
- package/dist/jsx/list/statusColors.mjs.map +1 -0
- package/dist/jsx/list/statusColors.native.js +109 -0
- package/dist/jsx/list/statusColors.native.js.map +1 -0
- package/dist/jsx/navigation/navigator.mjs +66 -3
- package/dist/jsx/navigation/navigator.mjs.map +1 -1
- package/dist/jsx/navigation/navigator.native.js +100 -4
- package/dist/jsx/navigation/navigator.native.js.map +1 -1
- package/dist/jsx/navigation/paths.mjs +7 -2
- package/dist/jsx/navigation/paths.mjs.map +1 -1
- package/dist/jsx/navigation/paths.native.js +9 -0
- package/dist/jsx/navigation/paths.native.js.map +1 -1
- package/dist/jsx/oneAdapter/index.mjs +25 -4
- package/dist/jsx/oneAdapter/index.mjs.map +1 -1
- package/dist/jsx/oneAdapter/index.native.js +28 -1
- package/dist/jsx/oneAdapter/index.native.js.map +1 -1
- package/dist/jsx/quickEntry/QuickEntryDialog.mjs +267 -0
- package/dist/jsx/quickEntry/QuickEntryDialog.mjs.map +1 -0
- package/dist/jsx/quickEntry/QuickEntryDialog.native.js +365 -0
- package/dist/jsx/quickEntry/QuickEntryDialog.native.js.map +1 -0
- package/dist/jsx/quickEntry/quickEntryPlan.mjs +158 -0
- package/dist/jsx/quickEntry/quickEntryPlan.mjs.map +1 -0
- package/dist/jsx/quickEntry/quickEntryPlan.native.js +223 -0
- package/dist/jsx/quickEntry/quickEntryPlan.native.js.map +1 -0
- package/dist/jsx/report/DoctypeReportView.mjs +405 -0
- package/dist/jsx/report/DoctypeReportView.mjs.map +1 -0
- package/dist/jsx/report/DoctypeReportView.native.js +532 -0
- package/dist/jsx/report/DoctypeReportView.native.js.map +1 -0
- package/dist/jsx/report/QueryReportScreen.mjs +256 -0
- package/dist/jsx/report/QueryReportScreen.mjs.map +1 -0
- package/dist/jsx/report/QueryReportScreen.native.js +354 -0
- package/dist/jsx/report/QueryReportScreen.native.js.map +1 -0
- package/dist/jsx/report/queryReportColumns.mjs +97 -0
- package/dist/jsx/report/queryReportColumns.mjs.map +1 -0
- package/dist/jsx/report/queryReportColumns.native.js +144 -0
- package/dist/jsx/report/queryReportColumns.native.js.map +1 -0
- package/dist/jsx/report/report-grid.mjs +322 -0
- package/dist/jsx/report/report-grid.mjs.map +1 -0
- package/dist/jsx/report/report-grid.native.js +389 -0
- package/dist/jsx/report/report-grid.native.js.map +1 -0
- package/dist/jsx/report/report-toolbar.mjs +239 -0
- package/dist/jsx/report/report-toolbar.mjs.map +1 -0
- package/dist/jsx/report/report-toolbar.native.js +309 -0
- package/dist/jsx/report/report-toolbar.native.js.map +1 -0
- package/dist/jsx/report/reportShapes.mjs +120 -0
- package/dist/jsx/report/reportShapes.mjs.map +1 -0
- package/dist/jsx/report/reportShapes.native.js +208 -0
- package/dist/jsx/report/reportShapes.native.js.map +1 -0
- package/dist/jsx/report/reportViewModel.mjs +335 -0
- package/dist/jsx/report/reportViewModel.mjs.map +1 -0
- package/dist/jsx/report/reportViewModel.native.js +624 -0
- package/dist/jsx/report/reportViewModel.native.js.map +1 -0
- package/dist/jsx/report/savedReports.mjs +107 -0
- package/dist/jsx/report/savedReports.mjs.map +1 -0
- package/dist/jsx/report/savedReports.native.js +162 -0
- package/dist/jsx/report/savedReports.native.js.map +1 -0
- package/dist/jsx/report/useQueryReport.mjs +185 -0
- package/dist/jsx/report/useQueryReport.mjs.map +1 -0
- package/dist/jsx/report/useQueryReport.native.js +254 -0
- package/dist/jsx/report/useQueryReport.native.js.map +1 -0
- package/dist/jsx/shared/useSlugTarget.mjs +42 -5
- package/dist/jsx/shared/useSlugTarget.mjs.map +1 -1
- package/dist/jsx/shared/useSlugTarget.native.js +66 -6
- package/dist/jsx/shared/useSlugTarget.native.js.map +1 -1
- package/dist/jsx/shell/HomeRedirect.mjs +58 -0
- package/dist/jsx/shell/HomeRedirect.mjs.map +1 -0
- package/dist/jsx/shell/HomeRedirect.native.js +88 -0
- package/dist/jsx/shell/HomeRedirect.native.js.map +1 -0
- package/dist/jsx/shell/NotFoundScreen.mjs +23 -0
- package/dist/jsx/shell/NotFoundScreen.mjs.map +1 -0
- package/dist/jsx/shell/NotFoundScreen.native.js +53 -0
- package/dist/jsx/shell/NotFoundScreen.native.js.map +1 -0
- package/dist/jsx/shell/SlugScreen.mjs +45 -0
- package/dist/jsx/shell/SlugScreen.mjs.map +1 -0
- package/dist/jsx/shell/SlugScreen.native.js +74 -0
- package/dist/jsx/shell/SlugScreen.native.js.map +1 -0
- package/dist/jsx/views/CalendarView.mjs +110 -0
- package/dist/jsx/views/CalendarView.mjs.map +1 -0
- package/dist/jsx/views/CalendarView.native.js +162 -0
- package/dist/jsx/views/CalendarView.native.js.map +1 -0
- package/dist/jsx/views/DashboardView.mjs +197 -0
- package/dist/jsx/views/DashboardView.mjs.map +1 -0
- package/dist/jsx/views/DashboardView.native.js +235 -0
- package/dist/jsx/views/DashboardView.native.js.map +1 -0
- package/dist/jsx/views/DoctypeViewScreen.mjs +82 -0
- package/dist/jsx/views/DoctypeViewScreen.mjs.map +1 -0
- package/dist/jsx/views/DoctypeViewScreen.native.js +114 -0
- package/dist/jsx/views/DoctypeViewScreen.native.js.map +1 -0
- package/dist/jsx/views/ImageView.mjs +58 -0
- package/dist/jsx/views/ImageView.mjs.map +1 -0
- package/dist/jsx/views/ImageView.native.js +87 -0
- package/dist/jsx/views/ImageView.native.js.map +1 -0
- package/dist/jsx/views/KanbanView.mjs +321 -0
- package/dist/jsx/views/KanbanView.mjs.map +1 -0
- package/dist/jsx/views/KanbanView.native.js +428 -0
- package/dist/jsx/views/KanbanView.native.js.map +1 -0
- package/dist/jsx/views/ReportView.mjs +254 -0
- package/dist/jsx/views/ReportView.mjs.map +1 -0
- package/dist/jsx/views/ReportView.native.js +407 -0
- package/dist/jsx/views/ReportView.native.js.map +1 -0
- package/dist/jsx/views/TreeView.mjs +54 -0
- package/dist/jsx/views/TreeView.mjs.map +1 -0
- package/dist/jsx/views/TreeView.native.js +85 -0
- package/dist/jsx/views/TreeView.native.js.map +1 -0
- package/dist/jsx/views/ViewHeader.mjs +112 -0
- package/dist/jsx/views/ViewHeader.mjs.map +1 -0
- package/dist/jsx/views/ViewHeader.native.js +147 -0
- package/dist/jsx/views/ViewHeader.native.js.map +1 -0
- package/dist/jsx/views/ViewStates.mjs +62 -0
- package/dist/jsx/views/ViewStates.mjs.map +1 -0
- package/dist/jsx/views/ViewStates.native.js +98 -0
- package/dist/jsx/views/ViewStates.native.js.map +1 -0
- package/dist/jsx/views/calendar-field-selector.mjs +39 -0
- package/dist/jsx/views/calendar-field-selector.mjs.map +1 -0
- package/dist/jsx/views/calendar-field-selector.native.js +77 -0
- package/dist/jsx/views/calendar-field-selector.native.js.map +1 -0
- package/dist/jsx/views/connection.mjs +22 -0
- package/dist/jsx/views/connection.mjs.map +1 -0
- package/dist/jsx/views/connection.native.js +50 -0
- package/dist/jsx/views/connection.native.js.map +1 -0
- package/dist/jsx/views/dashboard-data.mjs +196 -0
- package/dist/jsx/views/dashboard-data.mjs.map +1 -0
- package/dist/jsx/views/dashboard-data.native.js +333 -0
- package/dist/jsx/views/dashboard-data.native.js.map +1 -0
- package/dist/jsx/views/deskViewConfigs.mjs +103 -0
- package/dist/jsx/views/deskViewConfigs.mjs.map +1 -0
- package/dist/jsx/views/deskViewConfigs.native.js +158 -0
- package/dist/jsx/views/deskViewConfigs.native.js.map +1 -0
- package/dist/jsx/views/kanban-board-controls.mjs +259 -0
- package/dist/jsx/views/kanban-board-controls.mjs.map +1 -0
- package/dist/jsx/views/kanban-board-controls.native.js +320 -0
- package/dist/jsx/views/kanban-board-controls.native.js.map +1 -0
- package/dist/jsx/views/kanban-field-picker.mjs +52 -0
- package/dist/jsx/views/kanban-field-picker.mjs.map +1 -0
- package/dist/jsx/views/kanban-field-picker.native.js +97 -0
- package/dist/jsx/views/kanban-field-picker.native.js.map +1 -0
- package/dist/jsx/views/kanbanBoardOps.mjs +79 -0
- package/dist/jsx/views/kanbanBoardOps.mjs.map +1 -0
- package/dist/jsx/views/kanbanBoardOps.native.js +138 -0
- package/dist/jsx/views/kanbanBoardOps.native.js.map +1 -0
- package/dist/jsx/views/report-controls.mjs +301 -0
- package/dist/jsx/views/report-controls.mjs.map +1 -0
- package/dist/jsx/views/report-controls.native.js +381 -0
- package/dist/jsx/views/report-controls.native.js.map +1 -0
- package/dist/jsx/views/viewMeta.mjs +64 -0
- package/dist/jsx/views/viewMeta.mjs.map +1 -0
- package/dist/jsx/views/viewMeta.native.js +136 -0
- package/dist/jsx/views/viewMeta.native.js.map +1 -0
- package/dist/jsx/workspace/WorkspaceGrid.mjs +2 -3
- package/dist/jsx/workspace/WorkspaceGrid.mjs.map +1 -1
- package/dist/jsx/workspace/WorkspaceGrid.native.js +1 -2
- package/dist/jsx/workspace/WorkspaceGrid.native.js.map +1 -1
- package/dist/jsx/workspace/WorkspaceLinkCard.mjs +30 -23
- package/dist/jsx/workspace/WorkspaceLinkCard.mjs.map +1 -1
- package/dist/jsx/workspace/WorkspaceLinkCard.native.js +37 -30
- package/dist/jsx/workspace/WorkspaceLinkCard.native.js.map +1 -1
- package/dist/jsx/workspace/WorkspaceShortcut.mjs +9 -2
- package/dist/jsx/workspace/WorkspaceShortcut.mjs.map +1 -1
- package/dist/jsx/workspace/WorkspaceShortcut.native.js +10 -3
- package/dist/jsx/workspace/WorkspaceShortcut.native.js.map +1 -1
- package/package.json +12 -12
- package/src/chrome/NotificationsButton.tsx +5 -2
- package/src/config/BackofficeProvider.spec.tsx +21 -1
- package/src/config/BackofficeProvider.tsx +50 -0
- package/src/form/DocFormScreen.tsx +969 -0
- package/src/form/FormConnections.tsx +234 -0
- package/src/form/FormDialogs.tsx +172 -0
- package/src/form/FormErrorBoundary.spec.tsx +186 -0
- package/src/form/FormErrorBoundary.tsx +140 -0
- package/src/form/FormHeaderCluster.tsx +202 -0
- package/src/form/FormSidebarPanel.tsx +549 -0
- package/src/form/FormTimeline.tsx +577 -0
- package/src/form/FormToolbar.tsx +458 -0
- package/src/form/connections-data.tsx +219 -0
- package/src/form/createPrefill.ts +28 -0
- package/src/form/dependsOn.extra.spec.ts +273 -0
- package/src/form/dependsOn.spec.ts +75 -0
- package/src/form/dependsOn.ts +22 -0
- package/src/form/dirtyTracking.spec.ts +91 -0
- package/src/form/dirtyTracking.ts +64 -0
- package/src/form/docinfo.ts +24 -0
- package/src/form/fetchFrom.spec.ts +92 -0
- package/src/form/fetchFrom.ts +111 -0
- package/src/form/fieldPermissions.spec.ts +61 -0
- package/src/form/fieldPermissions.ts +68 -0
- package/src/form/formActions.ts +281 -0
- package/src/form/formLayout.spec.ts +373 -0
- package/src/form/formLayout.ts +402 -0
- package/src/form/platformHooks.ts +92 -0
- package/src/form/sidebar-attachments.tsx +141 -0
- package/src/form/sidebar-dialogs.tsx +118 -0
- package/src/form/sidebar-people.tsx +126 -0
- package/src/form/sidebar-rpc.tsx +245 -0
- package/src/form/sidebar-utils.tsx +159 -0
- package/src/form/timeline-entries.tsx +377 -0
- package/src/form/timeline-utils.tsx +235 -0
- package/src/form/useFormEngine.ts +496 -0
- package/src/i18n/en.ts +310 -0
- package/src/index.ts +365 -0
- package/src/list/AddTagsDialog.tsx +98 -0
- package/src/list/AssignToDialog.tsx +97 -0
- package/src/list/DoctypeListScreen.tsx +1121 -0
- package/src/list/ListBulkActionsBar.tsx +355 -0
- package/src/list/ListFilterBar.tsx +94 -0
- package/src/list/ListSidebar.tsx +200 -0
- package/src/list/bulk-edit-dialog.tsx +297 -0
- package/src/list/bulk-export.tsx +91 -0
- package/src/list/bulk-submit-cancel.tsx +38 -0
- package/src/list/bulkActions.ts +95 -0
- package/src/list/filter-chips.tsx +43 -0
- package/src/list/filter-editor.tsx +427 -0
- package/src/list/filter-fields.tsx +339 -0
- package/src/list/filter-saved.tsx +181 -0
- package/src/list/filter-sort.tsx +226 -0
- package/src/list/filter-standard.tsx +186 -0
- package/src/list/filterConversion.spec.ts +361 -0
- package/src/list/filterConversion.ts +100 -0
- package/src/list/list-tools-sheet.tsx +152 -0
- package/src/list/listColumns.tsx +297 -0
- package/src/list/listFields.spec.ts +98 -0
- package/src/list/listFields.ts +58 -0
- package/src/list/listFormat.spec.ts +151 -0
- package/src/list/listFormat.ts +80 -0
- package/src/list/listUrlState.spec.ts +74 -0
- package/src/list/listUrlState.ts +87 -0
- package/src/list/sidebar-section.tsx +99 -0
- package/src/list/sidebar-stats.tsx +402 -0
- package/src/list/statusColors.spec.ts +100 -0
- package/src/list/statusColors.ts +94 -0
- package/src/navigation/navigator.spec.ts +130 -1
- package/src/navigation/navigator.ts +93 -3
- package/src/navigation/paths.spec.ts +156 -0
- package/src/navigation/paths.ts +10 -0
- package/src/oneAdapter/index.tsx +29 -2
- package/src/quickEntry/QuickEntryDialog.tsx +345 -0
- package/src/quickEntry/quickEntryPlan.spec.ts +367 -0
- package/src/quickEntry/quickEntryPlan.ts +228 -0
- package/src/report/DoctypeReportView.tsx +600 -0
- package/src/report/QueryReportScreen.tsx +312 -0
- package/src/report/queryReportColumns.tsx +106 -0
- package/src/report/report-grid.tsx +366 -0
- package/src/report/report-toolbar.tsx +313 -0
- package/src/report/reportShapes.spec.ts +101 -0
- package/src/report/reportShapes.ts +233 -0
- package/src/report/reportViewModel.spec.ts +338 -0
- package/src/report/reportViewModel.ts +583 -0
- package/src/report/savedReports.ts +161 -0
- package/src/report/useQueryReport.ts +302 -0
- package/src/shared/useSlugTarget.ts +68 -3
- package/src/shell/HomeRedirect.tsx +63 -0
- package/src/shell/NotFoundScreen.tsx +32 -0
- package/src/shell/SlugScreen.tsx +43 -0
- package/src/shell/useWorkspaces.spec.tsx +150 -0
- package/src/views/CalendarView.tsx +191 -0
- package/src/views/DashboardView.tsx +205 -0
- package/src/views/DoctypeViewScreen.tsx +84 -0
- package/src/views/ImageView.tsx +60 -0
- package/src/views/KanbanView.tsx +419 -0
- package/src/views/ReportView.tsx +434 -0
- package/src/views/TreeView.tsx +58 -0
- package/src/views/ViewHeader.tsx +136 -0
- package/src/views/ViewStates.tsx +65 -0
- package/src/views/calendar-field-selector.tsx +56 -0
- package/src/views/connection.ts +31 -0
- package/src/views/dashboard-data.tsx +321 -0
- package/src/views/deskViewConfigs.ts +190 -0
- package/src/views/kanban-board-controls.tsx +357 -0
- package/src/views/kanban-field-picker.tsx +92 -0
- package/src/views/kanbanBoardOps.spec.ts +124 -0
- package/src/views/kanbanBoardOps.ts +124 -0
- package/src/views/report-controls.tsx +440 -0
- package/src/views/viewMeta.ts +117 -0
- package/src/workspace/WorkspaceGrid.tsx +3 -4
- package/src/workspace/WorkspaceLinkCard.tsx +7 -2
- package/src/workspace/WorkspaceShortcut.tsx +25 -2
- package/types/chrome/NotificationsButton.d.ts.map +1 -1
- package/types/config/BackofficeProvider.d.ts +32 -1
- package/types/config/BackofficeProvider.d.ts.map +1 -1
- package/types/form/DocFormScreen.d.ts +35 -0
- package/types/form/DocFormScreen.d.ts.map +1 -0
- package/types/form/FormConnections.d.ts +8 -0
- package/types/form/FormConnections.d.ts.map +1 -0
- package/types/form/FormDialogs.d.ts +32 -0
- package/types/form/FormDialogs.d.ts.map +1 -0
- package/types/form/FormErrorBoundary.d.ts +34 -0
- package/types/form/FormErrorBoundary.d.ts.map +1 -0
- package/types/form/FormHeaderCluster.d.ts +25 -0
- package/types/form/FormHeaderCluster.d.ts.map +1 -0
- package/types/form/FormSidebarPanel.d.ts +38 -0
- package/types/form/FormSidebarPanel.d.ts.map +1 -0
- package/types/form/FormTimeline.d.ts +21 -0
- package/types/form/FormTimeline.d.ts.map +1 -0
- package/types/form/FormToolbar.d.ts +86 -0
- package/types/form/FormToolbar.d.ts.map +1 -0
- package/types/form/connections-data.d.ts +69 -0
- package/types/form/connections-data.d.ts.map +1 -0
- package/types/form/createPrefill.d.ts +19 -0
- package/types/form/createPrefill.d.ts.map +1 -0
- package/types/form/dependsOn.d.ts +13 -0
- package/types/form/dependsOn.d.ts.map +1 -0
- package/types/form/dirtyTracking.d.ts +36 -0
- package/types/form/dirtyTracking.d.ts.map +1 -0
- package/types/form/docinfo.d.ts +18 -0
- package/types/form/docinfo.d.ts.map +1 -0
- package/types/form/fetchFrom.d.ts +43 -0
- package/types/form/fetchFrom.d.ts.map +1 -0
- package/types/form/fieldPermissions.d.ts +38 -0
- package/types/form/fieldPermissions.d.ts.map +1 -0
- package/types/form/formActions.d.ts +91 -0
- package/types/form/formActions.d.ts.map +1 -0
- package/types/form/formLayout.d.ts +91 -0
- package/types/form/formLayout.d.ts.map +1 -0
- package/types/form/platformHooks.d.ts +31 -0
- package/types/form/platformHooks.d.ts.map +1 -0
- package/types/form/sidebar-attachments.d.ts +20 -0
- package/types/form/sidebar-attachments.d.ts.map +1 -0
- package/types/form/sidebar-dialogs.d.ts +19 -0
- package/types/form/sidebar-dialogs.d.ts.map +1 -0
- package/types/form/sidebar-people.d.ts +42 -0
- package/types/form/sidebar-people.d.ts.map +1 -0
- package/types/form/sidebar-rpc.d.ts +42 -0
- package/types/form/sidebar-rpc.d.ts.map +1 -0
- package/types/form/sidebar-utils.d.ts +36 -0
- package/types/form/sidebar-utils.d.ts.map +1 -0
- package/types/form/timeline-entries.d.ts +93 -0
- package/types/form/timeline-entries.d.ts.map +1 -0
- package/types/form/timeline-utils.d.ts +42 -0
- package/types/form/timeline-utils.d.ts.map +1 -0
- package/types/form/useFormEngine.d.ts +61 -0
- package/types/form/useFormEngine.d.ts.map +1 -0
- package/types/i18n/en.d.ts +307 -0
- package/types/i18n/en.d.ts.map +1 -1
- package/types/index.d.ts +147 -2
- package/types/index.d.ts.map +1 -1
- package/types/list/AddTagsDialog.d.ts +11 -0
- package/types/list/AddTagsDialog.d.ts.map +1 -0
- package/types/list/AssignToDialog.d.ts +11 -0
- package/types/list/AssignToDialog.d.ts.map +1 -0
- package/types/list/DoctypeListScreen.d.ts +62 -0
- package/types/list/DoctypeListScreen.d.ts.map +1 -0
- package/types/list/ListBulkActionsBar.d.ts +12 -0
- package/types/list/ListBulkActionsBar.d.ts.map +1 -0
- package/types/list/ListFilterBar.d.ts +19 -0
- package/types/list/ListFilterBar.d.ts.map +1 -0
- package/types/list/ListSidebar.d.ts +17 -0
- package/types/list/ListSidebar.d.ts.map +1 -0
- package/types/list/bulk-edit-dialog.d.ts +30 -0
- package/types/list/bulk-edit-dialog.d.ts.map +1 -0
- package/types/list/bulk-export.d.ts +19 -0
- package/types/list/bulk-export.d.ts.map +1 -0
- package/types/list/bulk-submit-cancel.d.ts +11 -0
- package/types/list/bulk-submit-cancel.d.ts.map +1 -0
- package/types/list/bulkActions.d.ts +22 -0
- package/types/list/bulkActions.d.ts.map +1 -0
- package/types/list/filter-chips.d.ts +9 -0
- package/types/list/filter-chips.d.ts.map +1 -0
- package/types/list/filter-editor.d.ts +29 -0
- package/types/list/filter-editor.d.ts.map +1 -0
- package/types/list/filter-fields.d.ts +77 -0
- package/types/list/filter-fields.d.ts.map +1 -0
- package/types/list/filter-saved.d.ts +21 -0
- package/types/list/filter-saved.d.ts.map +1 -0
- package/types/list/filter-sort.d.ts +32 -0
- package/types/list/filter-sort.d.ts.map +1 -0
- package/types/list/filter-standard.d.ts +11 -0
- package/types/list/filter-standard.d.ts.map +1 -0
- package/types/list/filterConversion.d.ts +17 -0
- package/types/list/filterConversion.d.ts.map +1 -0
- package/types/list/list-tools-sheet.d.ts +13 -0
- package/types/list/list-tools-sheet.d.ts.map +1 -0
- package/types/list/listColumns.d.ts +34 -0
- package/types/list/listColumns.d.ts.map +1 -0
- package/types/list/listFields.d.ts +14 -0
- package/types/list/listFields.d.ts.map +1 -0
- package/types/list/listFormat.d.ts +30 -0
- package/types/list/listFormat.d.ts.map +1 -0
- package/types/list/listUrlState.d.ts +36 -0
- package/types/list/listUrlState.d.ts.map +1 -0
- package/types/list/sidebar-section.d.ts +21 -0
- package/types/list/sidebar-section.d.ts.map +1 -0
- package/types/list/sidebar-stats.d.ts +61 -0
- package/types/list/sidebar-stats.d.ts.map +1 -0
- package/types/list/statusColors.d.ts +14 -0
- package/types/list/statusColors.d.ts.map +1 -0
- package/types/navigation/navigator.d.ts +28 -0
- package/types/navigation/navigator.d.ts.map +1 -1
- package/types/navigation/paths.d.ts +5 -0
- package/types/navigation/paths.d.ts.map +1 -1
- package/types/oneAdapter/index.d.ts +9 -0
- package/types/oneAdapter/index.d.ts.map +1 -1
- package/types/quickEntry/QuickEntryDialog.d.ts +17 -0
- package/types/quickEntry/QuickEntryDialog.d.ts.map +1 -0
- package/types/quickEntry/quickEntryPlan.d.ts +63 -0
- package/types/quickEntry/quickEntryPlan.d.ts.map +1 -0
- package/types/report/DoctypeReportView.d.ts +15 -0
- package/types/report/DoctypeReportView.d.ts.map +1 -0
- package/types/report/QueryReportScreen.d.ts +15 -0
- package/types/report/QueryReportScreen.d.ts.map +1 -0
- package/types/report/queryReportColumns.d.ts +10 -0
- package/types/report/queryReportColumns.d.ts.map +1 -0
- package/types/report/report-grid.d.ts +20 -0
- package/types/report/report-grid.d.ts.map +1 -0
- package/types/report/report-toolbar.d.ts +30 -0
- package/types/report/report-toolbar.d.ts.map +1 -0
- package/types/report/reportShapes.d.ts +69 -0
- package/types/report/reportShapes.d.ts.map +1 -0
- package/types/report/reportViewModel.d.ts +132 -0
- package/types/report/reportViewModel.d.ts.map +1 -0
- package/types/report/savedReports.d.ts +19 -0
- package/types/report/savedReports.d.ts.map +1 -0
- package/types/report/useQueryReport.d.ts +31 -0
- package/types/report/useQueryReport.d.ts.map +1 -0
- package/types/shared/useSlugTarget.d.ts +9 -0
- package/types/shared/useSlugTarget.d.ts.map +1 -1
- package/types/shell/HomeRedirect.d.ts +2 -0
- package/types/shell/HomeRedirect.d.ts.map +1 -0
- package/types/shell/NotFoundScreen.d.ts +2 -0
- package/types/shell/NotFoundScreen.d.ts.map +1 -0
- package/types/shell/SlugScreen.d.ts +10 -0
- package/types/shell/SlugScreen.d.ts.map +1 -0
- package/types/views/CalendarView.d.ts +21 -0
- package/types/views/CalendarView.d.ts.map +1 -0
- package/types/views/DashboardView.d.ts +6 -0
- package/types/views/DashboardView.d.ts.map +1 -0
- package/types/views/DoctypeViewScreen.d.ts +8 -0
- package/types/views/DoctypeViewScreen.d.ts.map +1 -0
- package/types/views/ImageView.d.ts +6 -0
- package/types/views/ImageView.d.ts.map +1 -0
- package/types/views/KanbanView.d.ts +12 -0
- package/types/views/KanbanView.d.ts.map +1 -0
- package/types/views/ReportView.d.ts +23 -0
- package/types/views/ReportView.d.ts.map +1 -0
- package/types/views/TreeView.d.ts +6 -0
- package/types/views/TreeView.d.ts.map +1 -0
- package/types/views/ViewHeader.d.ts +19 -0
- package/types/views/ViewHeader.d.ts.map +1 -0
- package/types/views/ViewStates.d.ts +17 -0
- package/types/views/ViewStates.d.ts.map +1 -0
- package/types/views/calendar-field-selector.d.ts +15 -0
- package/types/views/calendar-field-selector.d.ts.map +1 -0
- package/types/views/connection.d.ts +14 -0
- package/types/views/connection.d.ts.map +1 -0
- package/types/views/dashboard-data.d.ts +49 -0
- package/types/views/dashboard-data.d.ts.map +1 -0
- package/types/views/deskViewConfigs.d.ts +51 -0
- package/types/views/deskViewConfigs.d.ts.map +1 -0
- package/types/views/kanban-board-controls.d.ts +60 -0
- package/types/views/kanban-board-controls.d.ts.map +1 -0
- package/types/views/kanban-field-picker.d.ts +33 -0
- package/types/views/kanban-field-picker.d.ts.map +1 -0
- package/types/views/kanbanBoardOps.d.ts +26 -0
- package/types/views/kanbanBoardOps.d.ts.map +1 -0
- package/types/views/report-controls.d.ts +45 -0
- package/types/views/report-controls.d.ts.map +1 -0
- package/types/views/viewMeta.d.ts +39 -0
- package/types/views/viewMeta.d.ts.map +1 -0
- package/types/workspace/WorkspaceGrid.d.ts.map +1 -1
- package/types/workspace/WorkspaceLinkCard.d.ts.map +1 -1
- package/types/workspace/WorkspaceShortcut.d.ts.map +1 -1
|
@@ -0,0 +1,434 @@
|
|
|
1
|
+
// Desk "report" view parity. FrappeReportBuilder stays the grid engine
|
|
2
|
+
// (meta-driven columns, live rows, group rendering with aggregation +
|
|
3
|
+
// chart, save/load, Export button); the desk chrome it lacks is composed
|
|
4
|
+
// around it from report-controls.tsx:
|
|
5
|
+
// - column add/remove picker across all meta fields (+ synthetic ID
|
|
6
|
+
// column). The generic ReportBuilder's own column/group-by toggle
|
|
7
|
+
// handlers are dead code and its enabled-column state is mount-only,
|
|
8
|
+
// so selection is driven through `initialColumns`/`initialGroupBy`
|
|
9
|
+
// plus a remount key.
|
|
10
|
+
// - `?f=` URL param (urlencoded JSON FrappeFilters) → base filters
|
|
11
|
+
// (chips + clear); FrappeReportBuilder accepts filter tuples directly.
|
|
12
|
+
// - page-size selector (20/100/500) + pagination: a parallel name-window
|
|
13
|
+
// query (name + sort + numeric fields) orders the full filtered result
|
|
14
|
+
// client-side, and the current page is handed to the grid as a
|
|
15
|
+
// `["name","in",names]` filter — the builder reacts to filter-prop
|
|
16
|
+
// changes without remounting. Small results (≤ page size) skip the
|
|
17
|
+
// window entirely and keep the pure live path.
|
|
18
|
+
// - totals strip over the full filtered result (ReportBuilder has no
|
|
19
|
+
// totals row) and an "Open" record jump in the footer.
|
|
20
|
+
// - grid rows click through to the form via onRowPress (threaded
|
|
21
|
+
// through FrappeReportBuilder → ReportBuilder).
|
|
22
|
+
// - CSV export via onExport: current page rows / enabled columns,
|
|
23
|
+
// web-guarded (Blob + anchor download); native shows an honest toast.
|
|
24
|
+
// Known gaps vs desk (component limitations, documented for integrator):
|
|
25
|
+
// - the component's own Save/Load applies loaded configs to its internal
|
|
26
|
+
// state only — this screen's pickers stay the source of truth
|
|
27
|
+
// - CSV exports the loaded page, not a server-side full export
|
|
28
|
+
import { isWeb, notify, YStack } from "@multiplatform.one/components";
|
|
29
|
+
import {
|
|
30
|
+
Order,
|
|
31
|
+
useFrappeCollection,
|
|
32
|
+
useLiveQuery,
|
|
33
|
+
type UseFrappeCollectionConfig,
|
|
34
|
+
} from "@multiplatform.one/frappe";
|
|
35
|
+
import {
|
|
36
|
+
FrappeReportBuilder,
|
|
37
|
+
type GroupByConfig,
|
|
38
|
+
type ReportColumn,
|
|
39
|
+
} from "@multiplatform.one/frappe-ui";
|
|
40
|
+
import { downloadBlob } from "@multiplatform.one/platform";
|
|
41
|
+
import { useResolvedKnobs } from "@multiplatform.one/theme";
|
|
42
|
+
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
43
|
+
import { useTranslation } from "react-i18next";
|
|
44
|
+
import { useBackofficeNavigator, useBackofficePaths } from "../config/BackofficeProvider";
|
|
45
|
+
import { BACKOFFICE_I18N_NAMESPACE } from "../i18n";
|
|
46
|
+
import type { FrappeFilters } from "../shared/types";
|
|
47
|
+
import { useViewConnection } from "./connection";
|
|
48
|
+
import {
|
|
49
|
+
REPORT_NUMERIC_FIELDTYPES,
|
|
50
|
+
ReportFooter,
|
|
51
|
+
ReportToolbar,
|
|
52
|
+
type ReportRecordRef,
|
|
53
|
+
type ReportTotal,
|
|
54
|
+
} from "./report-controls";
|
|
55
|
+
import { useViewMeta } from "./viewMeta";
|
|
56
|
+
import { ViewError, ViewLoading } from "./ViewStates";
|
|
57
|
+
|
|
58
|
+
export interface ReportViewProps {
|
|
59
|
+
/** Proper-cased doctype name (e.g. "ToDo", "Sales Order") */
|
|
60
|
+
doctype: string;
|
|
61
|
+
/**
|
|
62
|
+
* Raw `?f=` search-param value (urlencoded JSON FrappeFilters), read by
|
|
63
|
+
* the route wrapper (DoctypeViewScreen) — the screen itself stays
|
|
64
|
+
* search-param free so it mounts outside a One navigation container
|
|
65
|
+
* (stories/tests).
|
|
66
|
+
*/
|
|
67
|
+
filtersParam?: string;
|
|
68
|
+
/** Base filters when no `?f=` URL param is present (stories/tests). */
|
|
69
|
+
initialFilters?: FrappeFilters;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
const LAYOUT_FIELDTYPES = new Set(["Section Break", "Column Break", "Tab Break"]);
|
|
73
|
+
const EMPTY_FILTERS: FrappeFilters = [];
|
|
74
|
+
const DEFAULT_PAGE_SIZE = 20;
|
|
75
|
+
|
|
76
|
+
type StatsRow = { name: string; doctype: string } & Record<string, unknown>;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Parse the `?f=` search param: urlencoded JSON FrappeFilters
|
|
80
|
+
* (e.g. `?f=%5B%5B%22status%22%2C%22%3D%22%2C%22Open%22%5D%5D`).
|
|
81
|
+
* The router usually decodes the param already, so the raw value is tried
|
|
82
|
+
* first. Malformed input degrades to "no filters" (honest default).
|
|
83
|
+
*/
|
|
84
|
+
export function parseReportFiltersParam(raw: unknown): FrappeFilters | undefined {
|
|
85
|
+
if (typeof raw !== "string" || !raw) return undefined;
|
|
86
|
+
const candidates = [raw];
|
|
87
|
+
try {
|
|
88
|
+
const decoded = decodeURIComponent(raw);
|
|
89
|
+
if (decoded !== raw) candidates.push(decoded);
|
|
90
|
+
} catch {
|
|
91
|
+
// raw is not percent-encoded — the direct candidate covers it
|
|
92
|
+
}
|
|
93
|
+
for (const candidate of candidates) {
|
|
94
|
+
try {
|
|
95
|
+
const parsed: unknown = JSON.parse(candidate);
|
|
96
|
+
if (!Array.isArray(parsed)) continue;
|
|
97
|
+
const filters: FrappeFilters = [];
|
|
98
|
+
for (const tuple of parsed) {
|
|
99
|
+
if (
|
|
100
|
+
Array.isArray(tuple) &&
|
|
101
|
+
tuple.length === 3 &&
|
|
102
|
+
typeof tuple[0] === "string" &&
|
|
103
|
+
typeof tuple[1] === "string"
|
|
104
|
+
) {
|
|
105
|
+
filters.push([tuple[0], tuple[1], tuple[2]]);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
if (filters.length > 0) return filters;
|
|
109
|
+
} catch {
|
|
110
|
+
// not JSON — try the next candidate
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
return undefined;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
function isNullish(value: unknown): value is null | undefined {
|
|
117
|
+
return value === null || value === undefined;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
function compareValues(a: unknown, b: unknown): number {
|
|
121
|
+
if (isNullish(a) && isNullish(b)) return 0;
|
|
122
|
+
if (isNullish(a)) return 1;
|
|
123
|
+
if (isNullish(b)) return -1;
|
|
124
|
+
if (typeof a === "number" && typeof b === "number") return a - b;
|
|
125
|
+
const left = String(a);
|
|
126
|
+
const right = String(b);
|
|
127
|
+
return left < right ? -1 : left > right ? 1 : 0;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export function ReportView({ doctype, filtersParam, initialFilters }: ReportViewProps) {
|
|
131
|
+
const { t } = useTranslation(BACKOFFICE_I18N_NAMESPACE);
|
|
132
|
+
const navigator = useBackofficeNavigator();
|
|
133
|
+
const paths = useBackofficePaths();
|
|
134
|
+
const { knobProps } = useResolvedKnobs();
|
|
135
|
+
const connection = useViewConnection();
|
|
136
|
+
const { meta, isLoading: isMetaLoading, error: metaError } = useViewMeta(doctype);
|
|
137
|
+
|
|
138
|
+
// ---------------------------------------------------------------------
|
|
139
|
+
// Base filters: ?f= URL param wins, then the initialFilters prop.
|
|
140
|
+
// ---------------------------------------------------------------------
|
|
141
|
+
const urlFilters = useMemo(() => parseReportFiltersParam(filtersParam), [filtersParam]);
|
|
142
|
+
const [filtersCleared, setFiltersCleared] = useState(false);
|
|
143
|
+
useEffect(() => setFiltersCleared(false), [filtersParam, doctype]);
|
|
144
|
+
const baseFilters = filtersCleared
|
|
145
|
+
? EMPTY_FILTERS
|
|
146
|
+
: (urlFilters ?? initialFilters ?? EMPTY_FILTERS);
|
|
147
|
+
const handleClearFilters = useCallback(() => {
|
|
148
|
+
setFiltersCleared(true);
|
|
149
|
+
// Drop the ?f= param from the URL so the cleared state survives reloads.
|
|
150
|
+
if (urlFilters) navigator.replace(paths.view(doctype, "report"));
|
|
151
|
+
}, [urlFilters, navigator, paths, doctype]);
|
|
152
|
+
|
|
153
|
+
// ---------------------------------------------------------------------
|
|
154
|
+
// Columns: all non-layout meta fields, plus a synthetic ID column.
|
|
155
|
+
// Initial selection = in_list_view fields (+ name), desk parity.
|
|
156
|
+
// ---------------------------------------------------------------------
|
|
157
|
+
const allColumns = useMemo<ReportColumn[]>(() => {
|
|
158
|
+
if (!meta) return [];
|
|
159
|
+
const idColumn: ReportColumn = {
|
|
160
|
+
fieldname: "name",
|
|
161
|
+
label: t("report.idColumn", "ID"),
|
|
162
|
+
fieldtype: "Data",
|
|
163
|
+
enabled: true,
|
|
164
|
+
};
|
|
165
|
+
return [
|
|
166
|
+
idColumn,
|
|
167
|
+
...meta.fields
|
|
168
|
+
.filter((field) => field.fieldname && !LAYOUT_FIELDTYPES.has(field.fieldtype))
|
|
169
|
+
.map((field) => ({
|
|
170
|
+
fieldname: field.fieldname,
|
|
171
|
+
label: field.label || field.fieldname,
|
|
172
|
+
fieldtype: field.fieldtype as string,
|
|
173
|
+
enabled: Boolean(field.in_list_view),
|
|
174
|
+
})),
|
|
175
|
+
];
|
|
176
|
+
}, [meta, t]);
|
|
177
|
+
|
|
178
|
+
const defaultSelected = useMemo(
|
|
179
|
+
() => allColumns.filter((column) => column.enabled).map((column) => column.fieldname),
|
|
180
|
+
[allColumns],
|
|
181
|
+
);
|
|
182
|
+
const [selectedOverride, setSelectedOverride] = useState<string[] | null>(null);
|
|
183
|
+
const selected = selectedOverride ?? defaultSelected;
|
|
184
|
+
|
|
185
|
+
const handleToggleColumn = useCallback(
|
|
186
|
+
(fieldname: string) => {
|
|
187
|
+
setSelectedOverride((previous) => {
|
|
188
|
+
const current = previous ?? defaultSelected;
|
|
189
|
+
if (current.includes(fieldname)) {
|
|
190
|
+
// Keep at least one column visible (the toolbar disables the last
|
|
191
|
+
// enabled row too — this guard covers races).
|
|
192
|
+
if (current.length === 1) return current;
|
|
193
|
+
return current.filter((entry) => entry !== fieldname);
|
|
194
|
+
}
|
|
195
|
+
return [...current, fieldname];
|
|
196
|
+
});
|
|
197
|
+
},
|
|
198
|
+
[defaultSelected],
|
|
199
|
+
);
|
|
200
|
+
|
|
201
|
+
const builderColumns = useMemo<ReportColumn[]>(
|
|
202
|
+
() => allColumns.map((column) => ({ ...column, enabled: selected.includes(column.fieldname) })),
|
|
203
|
+
[allColumns, selected],
|
|
204
|
+
);
|
|
205
|
+
|
|
206
|
+
// ---------------------------------------------------------------------
|
|
207
|
+
// Group-by + paging state. Reset per doctype; page resets on any change
|
|
208
|
+
// that alters result membership.
|
|
209
|
+
// ---------------------------------------------------------------------
|
|
210
|
+
const [groupBy, setGroupBy] = useState<GroupByConfig | null>(null);
|
|
211
|
+
const [pageSize, setPageSize] = useState<number>(DEFAULT_PAGE_SIZE);
|
|
212
|
+
const [page, setPage] = useState(0);
|
|
213
|
+
|
|
214
|
+
useEffect(() => {
|
|
215
|
+
setSelectedOverride(null);
|
|
216
|
+
setGroupBy(null);
|
|
217
|
+
setPage(0);
|
|
218
|
+
}, [doctype]);
|
|
219
|
+
|
|
220
|
+
const filtersKey = useMemo(() => JSON.stringify(baseFilters), [baseFilters]);
|
|
221
|
+
useEffect(() => {
|
|
222
|
+
setPage(0);
|
|
223
|
+
}, [filtersKey, pageSize]);
|
|
224
|
+
|
|
225
|
+
// ---------------------------------------------------------------------
|
|
226
|
+
// Parallel stats query: names (ordered by the doctype sort field) drive
|
|
227
|
+
// pagination windows; numeric fields drive the totals strip; the title
|
|
228
|
+
// field feeds the open-record jump. Kept independent of the column
|
|
229
|
+
// selection so toggles never resubscribe it.
|
|
230
|
+
// ---------------------------------------------------------------------
|
|
231
|
+
const numericColumns = useMemo(
|
|
232
|
+
() => allColumns.filter((column) => REPORT_NUMERIC_FIELDTYPES.has(column.fieldtype)),
|
|
233
|
+
[allColumns],
|
|
234
|
+
);
|
|
235
|
+
const titleField = meta?.title_field;
|
|
236
|
+
const sortField = (meta?.sort_field || "modified").split(" ")[0];
|
|
237
|
+
const sortAscending = (meta?.sort_order || "DESC").toLowerCase() === "asc";
|
|
238
|
+
|
|
239
|
+
const statsFields = useMemo(() => {
|
|
240
|
+
const fields = new Set<string>(["name", sortField]);
|
|
241
|
+
if (titleField) fields.add(titleField);
|
|
242
|
+
for (const column of numericColumns) fields.add(column.fieldname);
|
|
243
|
+
return [...fields];
|
|
244
|
+
}, [sortField, titleField, numericColumns]);
|
|
245
|
+
|
|
246
|
+
const [statsError, setStatsError] = useState<Error | null>(null);
|
|
247
|
+
const handleStatsError = useCallback((error: unknown) => {
|
|
248
|
+
setStatsError(error instanceof Error ? error : new Error(String(error)));
|
|
249
|
+
}, []);
|
|
250
|
+
|
|
251
|
+
// ViewConnection carries syncOptions as `unknown`; the shapes match the
|
|
252
|
+
// collection config (same FrappeProvider source) — assert once here.
|
|
253
|
+
const statsConfig = useMemo(
|
|
254
|
+
() => (connection && meta ? (connection as unknown as UseFrappeCollectionConfig) : undefined),
|
|
255
|
+
[connection, meta],
|
|
256
|
+
);
|
|
257
|
+
const statsCollection = useFrappeCollection<StatsRow>(statsConfig, doctype, {
|
|
258
|
+
fields: statsFields,
|
|
259
|
+
filters: baseFilters,
|
|
260
|
+
orderBy: { field: sortField, order: sortAscending ? Order.Asc : Order.Desc },
|
|
261
|
+
onSyncError: handleStatsError,
|
|
262
|
+
});
|
|
263
|
+
useEffect(() => setStatsError(null), [statsCollection]);
|
|
264
|
+
const { data: statsData, isLoading: statsLoading } = useLiveQuery(
|
|
265
|
+
(q) => (statsCollection ? q.from({ _stats: statsCollection }) : null),
|
|
266
|
+
[statsCollection],
|
|
267
|
+
);
|
|
268
|
+
|
|
269
|
+
// Live-query row order is not guaranteed — order deterministically by the
|
|
270
|
+
// doctype sort field (name tiebreak) so page windows are stable.
|
|
271
|
+
const statsRows = useMemo(() => {
|
|
272
|
+
const rows = [...((statsData as StatsRow[] | undefined) ?? [])];
|
|
273
|
+
const direction = sortAscending ? 1 : -1;
|
|
274
|
+
rows.sort((a, b) => {
|
|
275
|
+
const left = a[sortField];
|
|
276
|
+
const right = b[sortField];
|
|
277
|
+
const ordered =
|
|
278
|
+
isNullish(left) || isNullish(right)
|
|
279
|
+
? compareValues(left, right)
|
|
280
|
+
: direction * compareValues(left, right);
|
|
281
|
+
return ordered || compareValues(a.name, b.name);
|
|
282
|
+
});
|
|
283
|
+
return rows;
|
|
284
|
+
}, [statsData, sortField, sortAscending]);
|
|
285
|
+
|
|
286
|
+
const statsReady = Boolean(statsError) || !statsLoading;
|
|
287
|
+
const total = statsRows.length;
|
|
288
|
+
const pageCount = Math.max(1, Math.ceil(total / pageSize));
|
|
289
|
+
const effectivePage = Math.min(page, pageCount - 1);
|
|
290
|
+
// Small results (or a failed stats query) skip the window: the grid keeps
|
|
291
|
+
// the pure live path and refreshes rows in place on realtime events.
|
|
292
|
+
const needsWindow = !statsError && total > pageSize;
|
|
293
|
+
const pageRows = useMemo(
|
|
294
|
+
() =>
|
|
295
|
+
needsWindow
|
|
296
|
+
? statsRows.slice(effectivePage * pageSize, (effectivePage + 1) * pageSize)
|
|
297
|
+
: statsRows,
|
|
298
|
+
[needsWindow, statsRows, effectivePage, pageSize],
|
|
299
|
+
);
|
|
300
|
+
|
|
301
|
+
const builderFilters = useMemo<FrappeFilters>(() => {
|
|
302
|
+
if (!needsWindow) return baseFilters;
|
|
303
|
+
return [...baseFilters, ["name", "in", pageRows.map((row) => row.name)]];
|
|
304
|
+
}, [needsWindow, baseFilters, pageRows]);
|
|
305
|
+
|
|
306
|
+
// ---------------------------------------------------------------------
|
|
307
|
+
// Footer inputs: open-record jump + totals over the FULL filtered result
|
|
308
|
+
// (not just the page) — desk totals-row parity.
|
|
309
|
+
// ---------------------------------------------------------------------
|
|
310
|
+
const records = useMemo<ReportRecordRef[]>(
|
|
311
|
+
() =>
|
|
312
|
+
pageRows.map((row) => ({
|
|
313
|
+
name: row.name,
|
|
314
|
+
title:
|
|
315
|
+
titleField && !isNullish(row[titleField]) && row[titleField] !== ""
|
|
316
|
+
? String(row[titleField])
|
|
317
|
+
: row.name,
|
|
318
|
+
})),
|
|
319
|
+
[pageRows, titleField],
|
|
320
|
+
);
|
|
321
|
+
|
|
322
|
+
const totals = useMemo<ReportTotal[]>(() => {
|
|
323
|
+
if (total === 0) return [];
|
|
324
|
+
return builderColumns
|
|
325
|
+
.filter((column) => column.enabled && REPORT_NUMERIC_FIELDTYPES.has(column.fieldtype))
|
|
326
|
+
.map((column) => ({
|
|
327
|
+
label: column.label,
|
|
328
|
+
fieldtype: column.fieldtype,
|
|
329
|
+
value: statsRows.reduce((sum, row) => sum + (Number(row[column.fieldname]) || 0), 0),
|
|
330
|
+
}));
|
|
331
|
+
}, [builderColumns, statsRows, total]);
|
|
332
|
+
|
|
333
|
+
const handleOpenRecord = useCallback(
|
|
334
|
+
(name: string) => {
|
|
335
|
+
navigator.navigate(paths.form(doctype, name));
|
|
336
|
+
},
|
|
337
|
+
[navigator, paths, doctype],
|
|
338
|
+
);
|
|
339
|
+
|
|
340
|
+
// ---------------------------------------------------------------------
|
|
341
|
+
// CSV export: enabled columns of the rows the grid currently holds.
|
|
342
|
+
// Web-only (Blob + anchor download); native gets an honest toast.
|
|
343
|
+
// ---------------------------------------------------------------------
|
|
344
|
+
const handleExport = useCallback(
|
|
345
|
+
(exportData: Record<string, unknown>[]) => {
|
|
346
|
+
if (!isWeb) {
|
|
347
|
+
notify({
|
|
348
|
+
severity: "warning",
|
|
349
|
+
scope: "page",
|
|
350
|
+
body: t(
|
|
351
|
+
"report.exportUnsupported",
|
|
352
|
+
"CSV export needs a browser download — not available on this platform yet",
|
|
353
|
+
),
|
|
354
|
+
});
|
|
355
|
+
return;
|
|
356
|
+
}
|
|
357
|
+
const enabledColumns = builderColumns.filter((column) => column.enabled);
|
|
358
|
+
const escapeCell = (value: unknown): string => {
|
|
359
|
+
if (value === null || value === undefined) return "";
|
|
360
|
+
const text = String(value);
|
|
361
|
+
return /[",\n]/.test(text) ? `"${text.replace(/"/g, '""')}"` : text;
|
|
362
|
+
};
|
|
363
|
+
const lines = [
|
|
364
|
+
enabledColumns.map((column) => escapeCell(column.label)).join(","),
|
|
365
|
+
...exportData.map((row) =>
|
|
366
|
+
enabledColumns.map((column) => escapeCell(row[column.fieldname])).join(","),
|
|
367
|
+
),
|
|
368
|
+
];
|
|
369
|
+
downloadBlob(
|
|
370
|
+
new Blob([lines.join("\n")], { type: "text/csv;charset=utf-8;" }),
|
|
371
|
+
`${doctype}_report.csv`,
|
|
372
|
+
);
|
|
373
|
+
},
|
|
374
|
+
[builderColumns, doctype, t],
|
|
375
|
+
);
|
|
376
|
+
|
|
377
|
+
// ---------------------------------------------------------------------
|
|
378
|
+
// Render
|
|
379
|
+
// ---------------------------------------------------------------------
|
|
380
|
+
if (isMetaLoading) return <ViewLoading />;
|
|
381
|
+
if (metaError && !meta) return <ViewError doctype={doctype} error={metaError} />;
|
|
382
|
+
|
|
383
|
+
// ReportBuilder initializes its enabled-column set (and FrappeReportBuilder
|
|
384
|
+
// its group-by state) at mount only — remount on selection/group changes.
|
|
385
|
+
const builderKey = `${doctype}::${[...selected].sort().join("|")}::${
|
|
386
|
+
groupBy ? `${groupBy.field}:${groupBy.aggregation}:${groupBy.aggregationField ?? ""}` : "none"
|
|
387
|
+
}`;
|
|
388
|
+
|
|
389
|
+
return (
|
|
390
|
+
<YStack flex={1} {...knobProps.gap}>
|
|
391
|
+
<ReportToolbar
|
|
392
|
+
columns={builderColumns}
|
|
393
|
+
onToggleColumn={handleToggleColumn}
|
|
394
|
+
groupBy={groupBy}
|
|
395
|
+
onGroupByChange={setGroupBy}
|
|
396
|
+
pageSize={pageSize}
|
|
397
|
+
onPageSizeChange={setPageSize}
|
|
398
|
+
filters={baseFilters}
|
|
399
|
+
onClearFilters={baseFilters.length > 0 ? handleClearFilters : undefined}
|
|
400
|
+
/>
|
|
401
|
+
{statsReady ? (
|
|
402
|
+
<FrappeReportBuilder
|
|
403
|
+
key={builderKey}
|
|
404
|
+
doctype={doctype}
|
|
405
|
+
initialColumns={builderColumns}
|
|
406
|
+
initialGroupBy={groupBy ?? undefined}
|
|
407
|
+
filters={builderFilters}
|
|
408
|
+
showChart
|
|
409
|
+
onExport={handleExport}
|
|
410
|
+
onRowPress={(row) => {
|
|
411
|
+
if (typeof row.name === "string" && row.name) {
|
|
412
|
+
navigator.navigate(paths.form(doctype, row.name));
|
|
413
|
+
}
|
|
414
|
+
}}
|
|
415
|
+
flex={1}
|
|
416
|
+
/>
|
|
417
|
+
) : (
|
|
418
|
+
<ViewLoading />
|
|
419
|
+
)}
|
|
420
|
+
{!statsError && statsReady && (
|
|
421
|
+
<ReportFooter
|
|
422
|
+
page={effectivePage}
|
|
423
|
+
pageCount={pageCount}
|
|
424
|
+
pageSize={pageSize}
|
|
425
|
+
totalItems={total}
|
|
426
|
+
onPageChange={setPage}
|
|
427
|
+
records={records}
|
|
428
|
+
onOpenRecord={handleOpenRecord}
|
|
429
|
+
totals={totals}
|
|
430
|
+
/>
|
|
431
|
+
)}
|
|
432
|
+
</YStack>
|
|
433
|
+
);
|
|
434
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// Desk "tree" view parity: only meaningful when the doctype is a tree
|
|
2
|
+
// (nested set: lft/rgt + parent_<doctype> fields — surfaced by meta.is_tree).
|
|
3
|
+
// FrappeTreeView fetches the full list itself (realtime-backed) and builds
|
|
4
|
+
// the forest from the parent field; node click opens the form.
|
|
5
|
+
import { YStack } from "@multiplatform.one/components";
|
|
6
|
+
import { FrappeTreeView, type FrappeTreeViewProps } from "@multiplatform.one/frappe-ui";
|
|
7
|
+
import type { ReactElement } from "react";
|
|
8
|
+
import { useTranslation } from "react-i18next";
|
|
9
|
+
import { useBackofficeNavigator, useBackofficePaths } from "../config/BackofficeProvider";
|
|
10
|
+
import { BACKOFFICE_I18N_NAMESPACE } from "../i18n";
|
|
11
|
+
import { useViewMeta, type AnyDoc } from "./viewMeta";
|
|
12
|
+
import { ViewError, ViewLoading, ViewUnsupported } from "./ViewStates";
|
|
13
|
+
|
|
14
|
+
// The `one` compiler breaks explicit JSX generics — instantiate once.
|
|
15
|
+
const TreeOfDoc = FrappeTreeView as (props: FrappeTreeViewProps<AnyDoc>) => ReactElement;
|
|
16
|
+
|
|
17
|
+
export interface TreeViewProps {
|
|
18
|
+
/** Proper-cased doctype name (e.g. "ToDo", "Sales Order") */
|
|
19
|
+
doctype: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export function TreeView({ doctype }: TreeViewProps) {
|
|
23
|
+
const { t } = useTranslation(BACKOFFICE_I18N_NAMESPACE);
|
|
24
|
+
const navigator = useBackofficeNavigator();
|
|
25
|
+
const paths = useBackofficePaths();
|
|
26
|
+
const { meta, isLoading: isMetaLoading, error: metaError } = useViewMeta(doctype);
|
|
27
|
+
|
|
28
|
+
if (isMetaLoading) return <ViewLoading />;
|
|
29
|
+
if (metaError && !meta) return <ViewError doctype={doctype} error={metaError} />;
|
|
30
|
+
|
|
31
|
+
if (meta && !meta.is_tree) {
|
|
32
|
+
return (
|
|
33
|
+
<ViewUnsupported
|
|
34
|
+
doctype={doctype}
|
|
35
|
+
title={t("views.treeUnsupported", "Tree not available")}
|
|
36
|
+
description={t(
|
|
37
|
+
"views.treeUnsupportedDetail",
|
|
38
|
+
"{{doctype}} is not a tree doctype — try the list view instead.",
|
|
39
|
+
{ doctype },
|
|
40
|
+
)}
|
|
41
|
+
/>
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return (
|
|
46
|
+
<YStack flex={1}>
|
|
47
|
+
<TreeOfDoc
|
|
48
|
+
doctype={doctype}
|
|
49
|
+
titleField={meta?.title_field}
|
|
50
|
+
onNodeClick={(doc) => {
|
|
51
|
+
if (doc.name) navigator.navigate(paths.form(doctype, doc.name));
|
|
52
|
+
}}
|
|
53
|
+
error={(err) => <ViewError doctype={doctype} error={err} />}
|
|
54
|
+
flex={1}
|
|
55
|
+
/>
|
|
56
|
+
</YStack>
|
|
57
|
+
);
|
|
58
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
// Shared header for the alternate doctype views: title, a view-switcher
|
|
2
|
+
// menu covering every backoffice view (including back to list), and the
|
|
3
|
+
// New button (desk list-header parity). Desk parity: views the doctype
|
|
4
|
+
// cannot render are hidden from the switcher — tree needs meta.is_tree,
|
|
5
|
+
// image needs an image field — and the current view is check-marked.
|
|
6
|
+
import {
|
|
7
|
+
Button,
|
|
8
|
+
DropdownMenu,
|
|
9
|
+
H4,
|
|
10
|
+
Text,
|
|
11
|
+
XStack,
|
|
12
|
+
type DropdownMenuEntry,
|
|
13
|
+
} from "@multiplatform.one/components";
|
|
14
|
+
import { useResolvedKnobs } from "@multiplatform.one/theme";
|
|
15
|
+
import { CaretDownIcon, PlusIcon } from "@phosphor-icons/react";
|
|
16
|
+
import { useState } from "react";
|
|
17
|
+
import { useTranslation } from "react-i18next";
|
|
18
|
+
import {
|
|
19
|
+
useBackofficeCapabilities,
|
|
20
|
+
useBackofficeNavigator,
|
|
21
|
+
useBackofficePaths,
|
|
22
|
+
} from "../config/BackofficeProvider";
|
|
23
|
+
import { BACKOFFICE_I18N_NAMESPACE } from "../i18n";
|
|
24
|
+
import { BACKOFFICE_VIEWS, type BackofficeView } from "../navigation/paths";
|
|
25
|
+
import { detectImageField, useViewMeta } from "./viewMeta";
|
|
26
|
+
|
|
27
|
+
export function useViewLabels(): Record<BackofficeView, string> {
|
|
28
|
+
const { t } = useTranslation(BACKOFFICE_I18N_NAMESPACE);
|
|
29
|
+
return {
|
|
30
|
+
list: t("views.list", "List"),
|
|
31
|
+
report: t("views.report", "Report"),
|
|
32
|
+
kanban: t("views.kanban", "Kanban"),
|
|
33
|
+
calendar: t("views.calendar", "Calendar"),
|
|
34
|
+
tree: t("views.tree", "Tree"),
|
|
35
|
+
image: t("views.image", "Image"),
|
|
36
|
+
dashboard: t("views.dashboard", "Dashboard"),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Views this doctype can actually render (desk parity): tree only for tree
|
|
42
|
+
* doctypes, image only when an image field exists (meta.image_field or an
|
|
43
|
+
* Attach Image field). The provider's `capabilities.views.allow` gates the
|
|
44
|
+
* offer list too. Conditional views stay hidden until meta confirms them;
|
|
45
|
+
* `current` is always included so the switcher stays honest about where you
|
|
46
|
+
* are (e.g. a deep link to /view/tree on a flat doctype, which renders its
|
|
47
|
+
* own unsupported state).
|
|
48
|
+
*/
|
|
49
|
+
export function useAvailableViews(doctype: string, current?: BackofficeView): BackofficeView[] {
|
|
50
|
+
const { meta } = useViewMeta(doctype);
|
|
51
|
+
const { views } = useBackofficeCapabilities();
|
|
52
|
+
return BACKOFFICE_VIEWS.filter((candidate) => {
|
|
53
|
+
if (candidate === current) return true;
|
|
54
|
+
if (!views.enabled || !views.allow.includes(candidate)) return false;
|
|
55
|
+
if (candidate === "tree") return !!meta?.is_tree;
|
|
56
|
+
if (candidate === "image") return !!meta && !!detectImageField(meta);
|
|
57
|
+
return true;
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface ViewHeaderProps {
|
|
62
|
+
/** Proper-cased doctype name (e.g. "ToDo", "Sales Order") */
|
|
63
|
+
doctype: string;
|
|
64
|
+
view: BackofficeView;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function ViewHeader({ doctype, view }: ViewHeaderProps) {
|
|
68
|
+
const navigator = useBackofficeNavigator();
|
|
69
|
+
const paths = useBackofficePaths();
|
|
70
|
+
const { newDoc } = useBackofficeCapabilities();
|
|
71
|
+
const { t } = useTranslation(BACKOFFICE_I18N_NAMESPACE);
|
|
72
|
+
const { knobProps } = useResolvedKnobs();
|
|
73
|
+
const labels = useViewLabels();
|
|
74
|
+
const availableViews = useAvailableViews(doctype, view);
|
|
75
|
+
// Controlled so a selection closes the menu (checkbox items keep the
|
|
76
|
+
// menu open by default — wrong for navigation).
|
|
77
|
+
const [switcherOpen, setSwitcherOpen] = useState(false);
|
|
78
|
+
|
|
79
|
+
// Every entry is a checkbox item (single-select radio semantics): the
|
|
80
|
+
// shared 18px check gutter keeps labels aligned and the current view
|
|
81
|
+
// carries the check mark.
|
|
82
|
+
const switcherItems: DropdownMenuEntry[] = availableViews.map((candidate) => ({
|
|
83
|
+
key: candidate,
|
|
84
|
+
label: labels[candidate],
|
|
85
|
+
checked: candidate === view,
|
|
86
|
+
onCheckedChange: () => {
|
|
87
|
+
setSwitcherOpen(false);
|
|
88
|
+
if (candidate !== view) navigator.navigate(paths.view(doctype, candidate));
|
|
89
|
+
},
|
|
90
|
+
}));
|
|
91
|
+
|
|
92
|
+
return (
|
|
93
|
+
<XStack
|
|
94
|
+
{...knobProps.panelPadding}
|
|
95
|
+
{...knobProps.gap}
|
|
96
|
+
alignItems="center"
|
|
97
|
+
justifyContent="space-between"
|
|
98
|
+
borderBottomWidth={1}
|
|
99
|
+
borderBottomColor="$borderColor"
|
|
100
|
+
flexWrap="wrap"
|
|
101
|
+
>
|
|
102
|
+
<XStack {...knobProps.gap} alignItems="center" flexShrink={1}>
|
|
103
|
+
<H4 numberOfLines={1}>{doctype}</H4>
|
|
104
|
+
<Text color="$color10" fontSize="$3">
|
|
105
|
+
{labels[view]}
|
|
106
|
+
</Text>
|
|
107
|
+
</XStack>
|
|
108
|
+
<XStack {...knobProps.gap} alignItems="center">
|
|
109
|
+
<DropdownMenu
|
|
110
|
+
items={switcherItems}
|
|
111
|
+
open={switcherOpen}
|
|
112
|
+
onOpenChange={setSwitcherOpen}
|
|
113
|
+
placement="bottom-end"
|
|
114
|
+
>
|
|
115
|
+
<Button
|
|
116
|
+
size="$3"
|
|
117
|
+
iconAfter={CaretDownIcon}
|
|
118
|
+
aria-label={t("views.switchView", "Switch view")}
|
|
119
|
+
>
|
|
120
|
+
{labels[view]}
|
|
121
|
+
</Button>
|
|
122
|
+
</DropdownMenu>
|
|
123
|
+
{newDoc.enabled && (
|
|
124
|
+
<Button
|
|
125
|
+
size="$3"
|
|
126
|
+
theme="accent"
|
|
127
|
+
icon={PlusIcon}
|
|
128
|
+
onPress={() => navigator.navigate(paths.newDoc(doctype))}
|
|
129
|
+
>
|
|
130
|
+
{t("views.new", "New")}
|
|
131
|
+
</Button>
|
|
132
|
+
)}
|
|
133
|
+
</XStack>
|
|
134
|
+
</XStack>
|
|
135
|
+
);
|
|
136
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
// Shared honest-state chrome for the alternate views: loading, error, and
|
|
2
|
+
// "this view is not supported for this doctype" — each with a way back to
|
|
3
|
+
// the list view (desk parity: unsupported views bounce you to list).
|
|
4
|
+
import { Button, EmptyState, Spinner, YStack } from "@multiplatform.one/components";
|
|
5
|
+
import { ListBulletsIcon } from "@phosphor-icons/react";
|
|
6
|
+
import { useTranslation } from "react-i18next";
|
|
7
|
+
import { useBackofficeNavigator, useBackofficePaths } from "../config/BackofficeProvider";
|
|
8
|
+
import { BACKOFFICE_I18N_NAMESPACE } from "../i18n";
|
|
9
|
+
|
|
10
|
+
export function ViewLoading() {
|
|
11
|
+
return (
|
|
12
|
+
<YStack flex={1} alignItems="center" justifyContent="center">
|
|
13
|
+
<Spinner size="large" />
|
|
14
|
+
</YStack>
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export function BackToListButton({ doctype }: { doctype: string }) {
|
|
19
|
+
const navigator = useBackofficeNavigator();
|
|
20
|
+
const paths = useBackofficePaths();
|
|
21
|
+
const { t } = useTranslation(BACKOFFICE_I18N_NAMESPACE);
|
|
22
|
+
return (
|
|
23
|
+
<Button
|
|
24
|
+
size="$3"
|
|
25
|
+
icon={ListBulletsIcon}
|
|
26
|
+
onPress={() => navigator.navigate(paths.list(doctype))}
|
|
27
|
+
>
|
|
28
|
+
{t("views.backToList", "Back to list")}
|
|
29
|
+
</Button>
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface ViewUnsupportedProps {
|
|
34
|
+
doctype: string;
|
|
35
|
+
title: string;
|
|
36
|
+
description?: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** Graceful "view not supported for this doctype" empty state. */
|
|
40
|
+
export function ViewUnsupported({ doctype, title, description }: ViewUnsupportedProps) {
|
|
41
|
+
return (
|
|
42
|
+
<EmptyState
|
|
43
|
+
title={title}
|
|
44
|
+
description={description}
|
|
45
|
+
action={<BackToListButton doctype={doctype} />}
|
|
46
|
+
/>
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface ViewErrorProps {
|
|
51
|
+
doctype: string;
|
|
52
|
+
error: Error;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ViewError({ doctype, error }: ViewErrorProps) {
|
|
56
|
+
const { t } = useTranslation(BACKOFFICE_I18N_NAMESPACE);
|
|
57
|
+
return (
|
|
58
|
+
<EmptyState
|
|
59
|
+
intent="error"
|
|
60
|
+
title={t("views.loadFailed", "Couldn't load this view")}
|
|
61
|
+
description={error.message}
|
|
62
|
+
action={<BackToListButton doctype={doctype} />}
|
|
63
|
+
/>
|
|
64
|
+
);
|
|
65
|
+
}
|