@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,969 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* The document form page — desk form parity.
|
|
4
|
+
*
|
|
5
|
+
* Composition:
|
|
6
|
+
* FormToolbar breadcrumbs / title (title_field) / status chip /
|
|
7
|
+
* Save → Submit → Cancel/Amend lifecycle / ⋯ menu
|
|
8
|
+
* FormBody meta-driven tabs → SchemaForm sections/columns/fields
|
|
9
|
+
* (safe depends_on engine in formLayout.ts)
|
|
10
|
+
* Sidebar assignments / attachments / tags / shares / likes / follow
|
|
11
|
+
* Timeline docinfo comments + versions + communications interleaved
|
|
12
|
+
* Connections linked-doctype tiles with live counts
|
|
13
|
+
*
|
|
14
|
+
* Data: meta via getdoctype (cached), doc via the live collection
|
|
15
|
+
* (realtime), docinfo via getdoc (refreshed after actions and on live
|
|
16
|
+
* `modified` changes).
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
import {
|
|
20
|
+
AsyncSkeleton,
|
|
21
|
+
Button,
|
|
22
|
+
ConfirmDialog,
|
|
23
|
+
EmptyState,
|
|
24
|
+
ScrollView,
|
|
25
|
+
Tabs,
|
|
26
|
+
Text,
|
|
27
|
+
XStack,
|
|
28
|
+
YStack,
|
|
29
|
+
type TabsItem,
|
|
30
|
+
} from "@multiplatform.one/components";
|
|
31
|
+
import { Input } from "@multiplatform.one/forms";
|
|
32
|
+
import { SchemaForm, useFrappeConfig } from "@multiplatform.one/frappe-ui";
|
|
33
|
+
import { useLayoutSizeClass, useResolvedKnobs } from "@multiplatform.one/theme";
|
|
34
|
+
import { ListBulletsIcon } from "@phosphor-icons/react";
|
|
35
|
+
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
36
|
+
import { useTranslation } from "react-i18next";
|
|
37
|
+
import {
|
|
38
|
+
actionsForDoctype,
|
|
39
|
+
useBackofficeCapabilities,
|
|
40
|
+
useBackofficeConfig,
|
|
41
|
+
useBackofficeNavigator,
|
|
42
|
+
useBackofficePaths,
|
|
43
|
+
type BackofficeAction,
|
|
44
|
+
} from "../config/BackofficeProvider";
|
|
45
|
+
import { BACKOFFICE_I18N_NAMESPACE } from "../i18n";
|
|
46
|
+
import { invalidateDocinfo, useDocinfo } from "../shared/useDocinfo";
|
|
47
|
+
import { useRecentVisit } from "../shared/useRecentVisit";
|
|
48
|
+
import { useDoctypeMeta } from "../shared/useDoctypeMeta";
|
|
49
|
+
import { useUserRoles } from "../shared/useUserRoles";
|
|
50
|
+
import { setCreatePrefill } from "./createPrefill";
|
|
51
|
+
import { normalizeDocPermissions } from "./docinfo";
|
|
52
|
+
import { buildPermLevelMatrix } from "./fieldPermissions";
|
|
53
|
+
import { createHttpClient, renameDoc, sendEmail } from "./formActions";
|
|
54
|
+
import { EmailDialog, RenameDialog } from "./FormDialogs";
|
|
55
|
+
import { FormErrorBoundary, wrapFieldWithErrorBoundary } from "./FormErrorBoundary";
|
|
56
|
+
import { buildCopyValues, buildFormTabs, isPromptNamed } from "./formLayout";
|
|
57
|
+
import { FormConnections } from "./FormConnections";
|
|
58
|
+
import { FormHeaderCluster } from "./FormHeaderCluster";
|
|
59
|
+
import { FormSidebarPanel } from "./FormSidebarPanel";
|
|
60
|
+
import { FormTimeline } from "./FormTimeline";
|
|
61
|
+
import { FormToolbar, resolveIndicator, type FormToolbarMenuItem } from "./FormToolbar";
|
|
62
|
+
import { htmlToText } from "./timeline-utils";
|
|
63
|
+
import {
|
|
64
|
+
canOpenNewTab,
|
|
65
|
+
openInNewTab,
|
|
66
|
+
useBeforeUnloadGuard,
|
|
67
|
+
useNavigationDirtyGuard,
|
|
68
|
+
useSaveShortcut,
|
|
69
|
+
} from "./platformHooks";
|
|
70
|
+
import { useFormEngine } from "./useFormEngine";
|
|
71
|
+
|
|
72
|
+
/** Host overrides for the form's ⋯ toolbar menu. */
|
|
73
|
+
export interface DocFormActionOverrides {
|
|
74
|
+
/**
|
|
75
|
+
* Built-in menu item keys to remove ("reload" | "duplicate" | "rename" |
|
|
76
|
+
* "print" | "email" | "links" | "jump-list" | "new" | "delete").
|
|
77
|
+
*/
|
|
78
|
+
hide?: readonly string[];
|
|
79
|
+
/** Extra host actions appended to the menu (after provider `actions.form`). */
|
|
80
|
+
extra?: readonly BackofficeAction[];
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export interface DocFormScreenProps {
|
|
84
|
+
/** Proper-cased doctype name (e.g. "ToDo", "Sales Order") */
|
|
85
|
+
doctype: string;
|
|
86
|
+
/** Document name; the literal "new" renders create mode */
|
|
87
|
+
name: string;
|
|
88
|
+
/** Force the whole form read-only regardless of permissions. */
|
|
89
|
+
readOnly?: boolean;
|
|
90
|
+
/** Hide form sections/tabs by Section/Tab Break fieldname or label. */
|
|
91
|
+
hiddenSections?: readonly string[];
|
|
92
|
+
/** Hide individual fields by fieldname. */
|
|
93
|
+
hiddenFields?: readonly string[];
|
|
94
|
+
/** Create-mode field prefill (merged over meta defaults). */
|
|
95
|
+
defaults?: Record<string, unknown>;
|
|
96
|
+
/** After a successful save (create or update). `doc.name` is authoritative. */
|
|
97
|
+
onSaved?: (doc: Record<string, unknown> & { name: string }) => void;
|
|
98
|
+
/** After a successful delete. Replaces the default navigate-to-list. */
|
|
99
|
+
onDeleted?: () => void;
|
|
100
|
+
/** Hide built-in ⋯ menu items / append host actions. */
|
|
101
|
+
actionOverrides?: DocFormActionOverrides;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
const CONNECTIONS_TAB = "__connections";
|
|
105
|
+
|
|
106
|
+
export function DocFormScreen({
|
|
107
|
+
doctype,
|
|
108
|
+
name,
|
|
109
|
+
readOnly,
|
|
110
|
+
hiddenSections,
|
|
111
|
+
hiddenFields,
|
|
112
|
+
defaults,
|
|
113
|
+
onSaved,
|
|
114
|
+
onDeleted,
|
|
115
|
+
actionOverrides,
|
|
116
|
+
}: DocFormScreenProps) {
|
|
117
|
+
const { t } = useTranslation(BACKOFFICE_I18N_NAMESPACE);
|
|
118
|
+
const { knobProps } = useResolvedKnobs();
|
|
119
|
+
const navigator = useBackofficeNavigator();
|
|
120
|
+
const paths = useBackofficePaths();
|
|
121
|
+
const capabilities = useBackofficeCapabilities();
|
|
122
|
+
const { actions, slots, emitEvent } = useBackofficeConfig();
|
|
123
|
+
// Canonical size-class mechanism (LC-28): `compact` = < 640 — the sidebar
|
|
124
|
+
// accordion stacks between the form body and the timeline.
|
|
125
|
+
const sizeClass = useLayoutSizeClass();
|
|
126
|
+
const config = useFrappeConfig();
|
|
127
|
+
|
|
128
|
+
const isCreate = name === "new";
|
|
129
|
+
const docName = isCreate ? undefined : name;
|
|
130
|
+
|
|
131
|
+
// Write-on-visit for the shared recents store (workspace "Continue where
|
|
132
|
+
// you left off" strip). Create mode and fixture mode (stories) skip.
|
|
133
|
+
useRecentVisit(
|
|
134
|
+
isCreate || config?.fixtures
|
|
135
|
+
? undefined
|
|
136
|
+
: { label: `${doctype}: ${name}`, path: paths.form(doctype, name) },
|
|
137
|
+
);
|
|
138
|
+
|
|
139
|
+
// `defaults` prop rides the SAME one-shot stash Duplicate/Amend and the
|
|
140
|
+
// `?d=` route param use (createPrefill) — stashed in a memo (not an
|
|
141
|
+
// effect) so the values land before useFormEngine's create-mode seeding
|
|
142
|
+
// runs, and keyed on content so re-renders don't re-stash consumed values.
|
|
143
|
+
const defaultsKey = defaults ? JSON.stringify(defaults) : undefined;
|
|
144
|
+
useMemo(() => {
|
|
145
|
+
if (!isCreate || !defaultsKey) return;
|
|
146
|
+
const parsed = JSON.parse(defaultsKey) as Record<string, unknown>;
|
|
147
|
+
if (Object.keys(parsed).length > 0) setCreatePrefill(doctype, parsed);
|
|
148
|
+
}, [doctype, defaultsKey, isCreate]);
|
|
149
|
+
|
|
150
|
+
// Host event bus: a form was opened (edit mode; create emits on first save).
|
|
151
|
+
useEffect(() => {
|
|
152
|
+
if (!isCreate) emitEvent({ type: "doc-opened", doctype, name });
|
|
153
|
+
}, [isCreate, doctype, name, emitEvent]);
|
|
154
|
+
|
|
155
|
+
const connection = useMemo(
|
|
156
|
+
() =>
|
|
157
|
+
config?.baseURL
|
|
158
|
+
? {
|
|
159
|
+
baseURL: config.baseURL,
|
|
160
|
+
socketPort: config.socketPort,
|
|
161
|
+
auth: config.auth,
|
|
162
|
+
syncOptions: config.syncOptions,
|
|
163
|
+
fixtures: config.fixtures,
|
|
164
|
+
}
|
|
165
|
+
: undefined,
|
|
166
|
+
[config],
|
|
167
|
+
);
|
|
168
|
+
|
|
169
|
+
// One meta loader for the whole screen (shared getdoctype cache with the
|
|
170
|
+
// fixture branch for stories) — the engine, sidebar, and connections all
|
|
171
|
+
// read the same bundle.
|
|
172
|
+
const {
|
|
173
|
+
meta,
|
|
174
|
+
loading: isMetaLoading,
|
|
175
|
+
error: metaError,
|
|
176
|
+
reload: refetchMeta,
|
|
177
|
+
} = useDoctypeMeta(doctype);
|
|
178
|
+
const engine = useFormEngine(connection, doctype, docName, meta, t);
|
|
179
|
+
|
|
180
|
+
useEffect(() => {
|
|
181
|
+
if (metaError && !meta) emitEvent({ type: "error", error: metaError, context: "form-meta" });
|
|
182
|
+
}, [metaError, meta, emitEvent]);
|
|
183
|
+
|
|
184
|
+
// Shared docinfo — one get_docinfo fetch shared with the header cluster,
|
|
185
|
+
// sidebar, and timeline panels; the screen reads the permission flags and
|
|
186
|
+
// passes the bundle down so cluster/sidebar mutations stay in sync.
|
|
187
|
+
const { docinfo, reload: reloadDocinfo } = useDocinfo(doctype, name);
|
|
188
|
+
const refreshDocinfo = useCallback(() => {
|
|
189
|
+
if (docName) invalidateDocinfo(doctype, docName);
|
|
190
|
+
reloadDocinfo();
|
|
191
|
+
}, [doctype, docName, reloadDocinfo]);
|
|
192
|
+
|
|
193
|
+
// Refresh docinfo whenever the live doc's `modified` stamp moves —
|
|
194
|
+
// an external edit usually lands with new versions/comments too.
|
|
195
|
+
const modifiedStamp =
|
|
196
|
+
typeof engine.baseline?.modified === "string" ? engine.baseline.modified : undefined;
|
|
197
|
+
const stampRef = useRef<string | undefined>(undefined);
|
|
198
|
+
useEffect(() => {
|
|
199
|
+
stampRef.current = undefined;
|
|
200
|
+
}, [doctype, name]);
|
|
201
|
+
useEffect(() => {
|
|
202
|
+
if (!docName || !modifiedStamp) return;
|
|
203
|
+
if (stampRef.current === modifiedStamp) return;
|
|
204
|
+
const isFirstLoad = stampRef.current === undefined;
|
|
205
|
+
stampRef.current = modifiedStamp;
|
|
206
|
+
if (!isFirstLoad) {
|
|
207
|
+
invalidateDocinfo(doctype, docName);
|
|
208
|
+
reloadDocinfo();
|
|
209
|
+
}
|
|
210
|
+
}, [modifiedStamp, docName, doctype, reloadDocinfo]);
|
|
211
|
+
|
|
212
|
+
// -----------------------------------------------------------------------
|
|
213
|
+
// Permissions: per-doc flags from docinfo when usable, else the meta role
|
|
214
|
+
// matrix (union across roles — the session's role set is not exposed
|
|
215
|
+
// client-side; the desk itself relies on docinfo.permissions).
|
|
216
|
+
// -----------------------------------------------------------------------
|
|
217
|
+
const perms = useMemo(() => {
|
|
218
|
+
const docPerms = normalizeDocPermissions(
|
|
219
|
+
docinfo?.permissions as Record<string, number> | undefined,
|
|
220
|
+
);
|
|
221
|
+
if (docPerms) {
|
|
222
|
+
return {
|
|
223
|
+
write: !!docPerms.write,
|
|
224
|
+
create: !!docPerms.create,
|
|
225
|
+
delete: !!docPerms.delete,
|
|
226
|
+
submit: !!docPerms.submit,
|
|
227
|
+
cancel: !!docPerms.cancel,
|
|
228
|
+
amend: !!docPerms.amend,
|
|
229
|
+
email: !!docPerms.email,
|
|
230
|
+
print: !!docPerms.print,
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
const rules = meta?.permissions ?? [];
|
|
234
|
+
const anyRole = (key: keyof (typeof rules)[number]) =>
|
|
235
|
+
rules.some((rule) => !rule.permlevel && !!rule[key]);
|
|
236
|
+
return {
|
|
237
|
+
write: rules.length === 0 || anyRole("write"),
|
|
238
|
+
create: rules.length === 0 || anyRole("create"),
|
|
239
|
+
delete: anyRole("delete"),
|
|
240
|
+
submit: anyRole("submit"),
|
|
241
|
+
cancel: anyRole("cancel"),
|
|
242
|
+
amend: anyRole("amend"),
|
|
243
|
+
email: rules.length === 0 || anyRole("email"),
|
|
244
|
+
print: rules.length === 0 || anyRole("print"),
|
|
245
|
+
};
|
|
246
|
+
}, [docinfo?.permissions, meta?.permissions]);
|
|
247
|
+
|
|
248
|
+
const isSubmittable = !!meta?.is_submittable;
|
|
249
|
+
const formReadOnly =
|
|
250
|
+
!!readOnly ||
|
|
251
|
+
!!meta?.read_only ||
|
|
252
|
+
engine.wasDeleted ||
|
|
253
|
+
(!isCreate && !perms.write) ||
|
|
254
|
+
(isCreate && !perms.create);
|
|
255
|
+
|
|
256
|
+
// -----------------------------------------------------------------------
|
|
257
|
+
// Body tabs (meta + doc → SchemaForm schemas) + Connections
|
|
258
|
+
// -----------------------------------------------------------------------
|
|
259
|
+
// Permlevel matrix: session roles × meta.permissions (desk perm.js). Roles
|
|
260
|
+
// stay undefined in fixture mode → coarse permlevel>0 read-only fallback.
|
|
261
|
+
const { roles } = useUserRoles();
|
|
262
|
+
const permLevels = useMemo(
|
|
263
|
+
() => buildPermLevelMatrix(meta?.permissions, roles),
|
|
264
|
+
[meta?.permissions, roles],
|
|
265
|
+
);
|
|
266
|
+
const formTabs = useMemo(() => {
|
|
267
|
+
if (!meta) return [];
|
|
268
|
+
return buildFormTabs({
|
|
269
|
+
fields: meta.fields,
|
|
270
|
+
// depends_on evaluates against the doc plus desk's ambient context:
|
|
271
|
+
// __islocal (unsaved doc flag) and the session user behind
|
|
272
|
+
// `frappe.session.user` references.
|
|
273
|
+
doc: {
|
|
274
|
+
...engine.doc,
|
|
275
|
+
__islocal: isCreate ? 1 : 0,
|
|
276
|
+
...(engine.currentUser ? { __session_user: engine.currentUser } : {}),
|
|
277
|
+
},
|
|
278
|
+
docstatus: engine.docstatus,
|
|
279
|
+
formReadOnly,
|
|
280
|
+
isCreate,
|
|
281
|
+
detailsLabel: t("detailsTab", "Details"),
|
|
282
|
+
permLevels,
|
|
283
|
+
hiddenFields,
|
|
284
|
+
hiddenSections,
|
|
285
|
+
});
|
|
286
|
+
}, [
|
|
287
|
+
meta,
|
|
288
|
+
engine.doc,
|
|
289
|
+
engine.currentUser,
|
|
290
|
+
engine.docstatus,
|
|
291
|
+
formReadOnly,
|
|
292
|
+
isCreate,
|
|
293
|
+
permLevels,
|
|
294
|
+
hiddenFields,
|
|
295
|
+
hiddenSections,
|
|
296
|
+
t,
|
|
297
|
+
]);
|
|
298
|
+
|
|
299
|
+
const [activeTab, setActiveTab] = useState<string | undefined>(undefined);
|
|
300
|
+
// Hidden link rows never render (desk parity — connections-data skips them).
|
|
301
|
+
const showConnections =
|
|
302
|
+
!isCreate && !!connection && (meta?.links?.some((link) => !link.hidden) ?? false);
|
|
303
|
+
|
|
304
|
+
// -----------------------------------------------------------------------
|
|
305
|
+
// Navigation with dirty guard
|
|
306
|
+
// -----------------------------------------------------------------------
|
|
307
|
+
const [pendingNav, setPendingNav] = useState<string | undefined>(undefined);
|
|
308
|
+
const navigate = useCallback(
|
|
309
|
+
(href: string) => {
|
|
310
|
+
if (engine.isDirty) {
|
|
311
|
+
setPendingNav(href);
|
|
312
|
+
return;
|
|
313
|
+
}
|
|
314
|
+
navigator.navigate(href);
|
|
315
|
+
},
|
|
316
|
+
[engine.isDirty, navigator],
|
|
317
|
+
);
|
|
318
|
+
useBeforeUnloadGuard(engine.isDirty);
|
|
319
|
+
// Covers back navigations that skip navigate(): browser back on web,
|
|
320
|
+
// back gesture/button on native (B7).
|
|
321
|
+
const backGuard = useNavigationDirtyGuard(engine.isDirty);
|
|
322
|
+
|
|
323
|
+
// -----------------------------------------------------------------------
|
|
324
|
+
// Actions
|
|
325
|
+
// -----------------------------------------------------------------------
|
|
326
|
+
const [confirmAction, setConfirmAction] = useState<"submit" | "cancel" | "delete" | undefined>(
|
|
327
|
+
undefined,
|
|
328
|
+
);
|
|
329
|
+
const [renameOpen, setRenameOpen] = useState(false);
|
|
330
|
+
const [emailOpen, setEmailOpen] = useState(false);
|
|
331
|
+
|
|
332
|
+
const [validationSummary, setValidationSummary] = useState<string | undefined>(undefined);
|
|
333
|
+
|
|
334
|
+
const handleSave = useCallback(async () => {
|
|
335
|
+
// Pre-check required fields so the failing tab is surfaced — inline
|
|
336
|
+
// errors on an inactive tab would otherwise fail invisibly.
|
|
337
|
+
const validationErrors = engine.validate();
|
|
338
|
+
const errorFields = Object.keys(validationErrors);
|
|
339
|
+
if (errorFields.length > 0) {
|
|
340
|
+
const owner = formTabs.find((tab) =>
|
|
341
|
+
tab.schema.fields.some((field) => errorFields.includes(field.name)),
|
|
342
|
+
);
|
|
343
|
+
if (owner) setActiveTab(owner.key);
|
|
344
|
+
setValidationSummary(
|
|
345
|
+
t("validationSummary", "Cannot save — {{count}} required field(s) are missing.", {
|
|
346
|
+
count: errorFields.length,
|
|
347
|
+
}),
|
|
348
|
+
);
|
|
349
|
+
} else {
|
|
350
|
+
setValidationSummary(undefined);
|
|
351
|
+
}
|
|
352
|
+
const savedName = await engine.save();
|
|
353
|
+
if (!savedName) return;
|
|
354
|
+
setValidationSummary(undefined);
|
|
355
|
+
invalidateDocinfo(doctype, savedName);
|
|
356
|
+
emitEvent({ type: "doc-saved", doctype, name: savedName, isNew: isCreate });
|
|
357
|
+
onSaved?.({ ...engine.doc, name: savedName });
|
|
358
|
+
if (isCreate) {
|
|
359
|
+
navigator.replace(paths.form(doctype, savedName));
|
|
360
|
+
} else {
|
|
361
|
+
reloadDocinfo();
|
|
362
|
+
}
|
|
363
|
+
}, [engine, formTabs, isCreate, navigator, paths, doctype, reloadDocinfo, t, emitEvent, onSaved]);
|
|
364
|
+
|
|
365
|
+
// Always swallow Cmd/Ctrl+S while the form is editable (desk parity —
|
|
366
|
+
// the browser save dialog must never appear on a form page); saving
|
|
367
|
+
// itself only fires when there is something to save.
|
|
368
|
+
useSaveShortcut(!formReadOnly, () => {
|
|
369
|
+
if (engine.isDirty || isCreate) void handleSave();
|
|
370
|
+
});
|
|
371
|
+
|
|
372
|
+
const handleAmend = useCallback(() => {
|
|
373
|
+
if (!meta || !docName) return;
|
|
374
|
+
setCreatePrefill(doctype, {
|
|
375
|
+
...buildCopyValues(meta.fields, engine.doc),
|
|
376
|
+
amended_from: docName,
|
|
377
|
+
});
|
|
378
|
+
navigator.navigate(paths.newDoc(doctype));
|
|
379
|
+
}, [meta, docName, doctype, engine.doc, navigator, paths]);
|
|
380
|
+
|
|
381
|
+
const handleDuplicate = useCallback(() => {
|
|
382
|
+
if (!meta) return;
|
|
383
|
+
setCreatePrefill(doctype, buildCopyValues(meta.fields, engine.doc));
|
|
384
|
+
navigator.navigate(paths.newDoc(doctype));
|
|
385
|
+
}, [meta, doctype, engine.doc, navigator, paths]);
|
|
386
|
+
|
|
387
|
+
const handleRename = useCallback(
|
|
388
|
+
async (newName: string) => {
|
|
389
|
+
if (!connection || !docName) return;
|
|
390
|
+
try {
|
|
391
|
+
const resolved = await renameDoc(createHttpClient(connection), doctype, docName, newName);
|
|
392
|
+
navigator.replace(paths.form(doctype, resolved));
|
|
393
|
+
} catch {
|
|
394
|
+
// rename_doc rejections (permissions / duplicates) leave the doc as-is.
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
[connection, docName, doctype, navigator, paths],
|
|
398
|
+
);
|
|
399
|
+
|
|
400
|
+
const titleFieldValue =
|
|
401
|
+
meta?.title_field && typeof engine.doc[meta.title_field] === "string"
|
|
402
|
+
? // Title fields can hold rich text (e.g. ToDo.description = "<p>…</p>");
|
|
403
|
+
// strip to plain text so the breadcrumb + toolbar heading don't show
|
|
404
|
+
// literal HTML tags.
|
|
405
|
+
htmlToText(engine.doc[meta.title_field] as string)
|
|
406
|
+
: undefined;
|
|
407
|
+
const title = isCreate
|
|
408
|
+
? t("newDocTitle", "New {{doctype}}", { doctype })
|
|
409
|
+
: titleFieldValue || name;
|
|
410
|
+
|
|
411
|
+
const menuItems = useMemo<FormToolbarMenuItem[]>(() => {
|
|
412
|
+
if (isCreate) return [];
|
|
413
|
+
const items: FormToolbarMenuItem[] = [
|
|
414
|
+
{
|
|
415
|
+
key: "reload",
|
|
416
|
+
label: t("menuReload", "Reload"),
|
|
417
|
+
icon: "reload",
|
|
418
|
+
onSelect: () => {
|
|
419
|
+
engine.reload();
|
|
420
|
+
setValidationSummary(undefined);
|
|
421
|
+
refetchMeta();
|
|
422
|
+
invalidateDocinfo(doctype, name);
|
|
423
|
+
reloadDocinfo();
|
|
424
|
+
},
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
key: "duplicate",
|
|
428
|
+
label: t("menuDuplicate", "Duplicate"),
|
|
429
|
+
icon: "duplicate",
|
|
430
|
+
onSelect: handleDuplicate,
|
|
431
|
+
},
|
|
432
|
+
];
|
|
433
|
+
if (meta?.allow_rename && perms.write) {
|
|
434
|
+
items.push({
|
|
435
|
+
key: "rename",
|
|
436
|
+
label: t("menuRename", "Rename"),
|
|
437
|
+
icon: "rename",
|
|
438
|
+
onSelect: () => setRenameOpen(true),
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
if (capabilities.print.enabled && canOpenNewTab() && perms.print && connection) {
|
|
442
|
+
// Print opens the bench's printview in a new tab (web only; native
|
|
443
|
+
// and GNOME hide the entry — documented platform gap).
|
|
444
|
+
items.push({
|
|
445
|
+
key: "print",
|
|
446
|
+
label: t("menuPrint", "Print"),
|
|
447
|
+
icon: "print",
|
|
448
|
+
onSelect: () => {
|
|
449
|
+
const base = connection.baseURL.replace(/\/$/, "");
|
|
450
|
+
openInNewTab(
|
|
451
|
+
`${base}/printview?doctype=${encodeURIComponent(doctype)}&name=${encodeURIComponent(
|
|
452
|
+
name,
|
|
453
|
+
)}&format=Standard`,
|
|
454
|
+
);
|
|
455
|
+
},
|
|
456
|
+
});
|
|
457
|
+
}
|
|
458
|
+
if (capabilities.email.enabled && perms.email) {
|
|
459
|
+
items.push({
|
|
460
|
+
key: "email",
|
|
461
|
+
label: t("menuEmail", "Email"),
|
|
462
|
+
icon: "email",
|
|
463
|
+
onSelect: () => setEmailOpen(true),
|
|
464
|
+
});
|
|
465
|
+
}
|
|
466
|
+
if (showConnections) {
|
|
467
|
+
items.push({
|
|
468
|
+
key: "links",
|
|
469
|
+
label: t("menuLinks", "Links"),
|
|
470
|
+
icon: "links",
|
|
471
|
+
onSelect: () => setActiveTab(CONNECTIONS_TAB),
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
items.push({
|
|
475
|
+
key: "jump-list",
|
|
476
|
+
label: t("menuJumpToList", "Jump to {{doctype}} List", { doctype }),
|
|
477
|
+
icon: "list",
|
|
478
|
+
onSelect: () => navigate(paths.list(doctype)),
|
|
479
|
+
});
|
|
480
|
+
if (capabilities.newDoc.enabled && perms.create) {
|
|
481
|
+
items.push({
|
|
482
|
+
key: "new",
|
|
483
|
+
label: t("menuNew", "New {{doctype}}", { doctype }),
|
|
484
|
+
icon: "new",
|
|
485
|
+
onSelect: () => navigate(paths.newDoc(doctype)),
|
|
486
|
+
});
|
|
487
|
+
}
|
|
488
|
+
if (perms.delete) {
|
|
489
|
+
items.push({
|
|
490
|
+
key: "delete",
|
|
491
|
+
label: t("menuDelete", "Delete"),
|
|
492
|
+
icon: "delete",
|
|
493
|
+
destructive: true,
|
|
494
|
+
onSelect: () => setConfirmAction("delete"),
|
|
495
|
+
});
|
|
496
|
+
}
|
|
497
|
+
return items;
|
|
498
|
+
}, [
|
|
499
|
+
isCreate,
|
|
500
|
+
t,
|
|
501
|
+
engine,
|
|
502
|
+
refetchMeta,
|
|
503
|
+
reloadDocinfo,
|
|
504
|
+
handleDuplicate,
|
|
505
|
+
meta?.allow_rename,
|
|
506
|
+
perms,
|
|
507
|
+
connection,
|
|
508
|
+
doctype,
|
|
509
|
+
name,
|
|
510
|
+
showConnections,
|
|
511
|
+
navigate,
|
|
512
|
+
paths,
|
|
513
|
+
capabilities,
|
|
514
|
+
]);
|
|
515
|
+
|
|
516
|
+
// Host action registry: provider-level `actions.form` plus per-screen
|
|
517
|
+
// `actionOverrides.extra` land on the ⋯ menu; `actionOverrides.hide`
|
|
518
|
+
// removes built-ins by key (a host can replace "print" by hiding it and
|
|
519
|
+
// injecting its own).
|
|
520
|
+
const effectiveMenuItems = useMemo<FormToolbarMenuItem[]>(() => {
|
|
521
|
+
const hidden = new Set(actionOverrides?.hide ?? []);
|
|
522
|
+
const items = menuItems.filter((item) => !hidden.has(item.key));
|
|
523
|
+
const injected: BackofficeAction[] = [
|
|
524
|
+
...actionsForDoctype(actions.form, doctype),
|
|
525
|
+
...actionsForDoctype(actionOverrides?.extra, doctype),
|
|
526
|
+
];
|
|
527
|
+
for (const action of injected) {
|
|
528
|
+
items.push({
|
|
529
|
+
key: `host:${action.id}`,
|
|
530
|
+
label: action.label,
|
|
531
|
+
onSelect: () => action.onPress({ doctype, ...(docName ? { name: docName } : {}) }),
|
|
532
|
+
});
|
|
533
|
+
}
|
|
534
|
+
return items;
|
|
535
|
+
}, [menuItems, actions.form, actionOverrides, doctype, docName]);
|
|
536
|
+
|
|
537
|
+
// -----------------------------------------------------------------------
|
|
538
|
+
// Early states
|
|
539
|
+
// -----------------------------------------------------------------------
|
|
540
|
+
if (!config?.baseURL || !connection) {
|
|
541
|
+
return (
|
|
542
|
+
<YStack flex={1}>
|
|
543
|
+
<EmptyState
|
|
544
|
+
title={t("noFrappe", "Frappe is not configured")}
|
|
545
|
+
description={t(
|
|
546
|
+
"noFrappeHint",
|
|
547
|
+
"Pass a frappe connection to BackofficeProvider to point the backoffice at a bench.",
|
|
548
|
+
)}
|
|
549
|
+
/>
|
|
550
|
+
</YStack>
|
|
551
|
+
);
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
if (isMetaLoading && !meta) {
|
|
555
|
+
return (
|
|
556
|
+
<YStack flex={1} {...knobProps.panelPadding} testID="doc-form-skeleton">
|
|
557
|
+
<AsyncSkeleton layout="generic" />
|
|
558
|
+
</YStack>
|
|
559
|
+
);
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
if (metaError && !meta) {
|
|
563
|
+
return (
|
|
564
|
+
<YStack flex={1}>
|
|
565
|
+
<EmptyState
|
|
566
|
+
title={t("metaError", "Could not load {{doctype}}", { doctype })}
|
|
567
|
+
description={metaError.message}
|
|
568
|
+
/>
|
|
569
|
+
</YStack>
|
|
570
|
+
);
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
if (!isCreate && engine.notFound) {
|
|
574
|
+
return (
|
|
575
|
+
<YStack flex={1}>
|
|
576
|
+
<EmptyState
|
|
577
|
+
title={t("docNotFound", "{{doctype}} {{name}} not found", {
|
|
578
|
+
doctype,
|
|
579
|
+
name,
|
|
580
|
+
})}
|
|
581
|
+
description={t(
|
|
582
|
+
"docNotFoundHint",
|
|
583
|
+
"The document does not exist or you do not have permission to read it.",
|
|
584
|
+
)}
|
|
585
|
+
action={
|
|
586
|
+
<Button icon={ListBulletsIcon} onPress={() => navigator.navigate(paths.list(doctype))}>
|
|
587
|
+
{t("backToList", "Back to {{doctype}} list", { doctype })}
|
|
588
|
+
</Button>
|
|
589
|
+
}
|
|
590
|
+
/>
|
|
591
|
+
</YStack>
|
|
592
|
+
);
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
if (!isCreate && engine.isLoading) {
|
|
596
|
+
return (
|
|
597
|
+
<YStack flex={1} {...knobProps.panelPadding} testID="doc-form-skeleton">
|
|
598
|
+
<AsyncSkeleton layout="generic" />
|
|
599
|
+
</YStack>
|
|
600
|
+
);
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
// -----------------------------------------------------------------------
|
|
604
|
+
// Toolbar state
|
|
605
|
+
// -----------------------------------------------------------------------
|
|
606
|
+
const indicator = resolveIndicator({
|
|
607
|
+
isCreate,
|
|
608
|
+
isDirty: engine.isDirty,
|
|
609
|
+
docstatus: engine.docstatus,
|
|
610
|
+
isSubmittable,
|
|
611
|
+
statusValue: typeof engine.doc.status === "string" ? engine.doc.status : undefined,
|
|
612
|
+
states: meta?.states,
|
|
613
|
+
});
|
|
614
|
+
const canSave =
|
|
615
|
+
!formReadOnly && (isCreate ? perms.create : perms.write && engine.docstatus === 0);
|
|
616
|
+
const canSubmit =
|
|
617
|
+
!isCreate &&
|
|
618
|
+
isSubmittable &&
|
|
619
|
+
engine.docstatus === 0 &&
|
|
620
|
+
!engine.isDirty &&
|
|
621
|
+
perms.submit &&
|
|
622
|
+
!engine.wasDeleted;
|
|
623
|
+
const canCancel =
|
|
624
|
+
!isCreate && isSubmittable && engine.docstatus === 1 && perms.cancel && !engine.wasDeleted;
|
|
625
|
+
const canAmend =
|
|
626
|
+
!isCreate && isSubmittable && engine.docstatus === 2 && perms.amend && !engine.wasDeleted;
|
|
627
|
+
|
|
628
|
+
const breadcrumbs = [
|
|
629
|
+
{ label: t("home", "Home"), href: paths.home() },
|
|
630
|
+
{ label: doctype, href: paths.list(doctype) },
|
|
631
|
+
{ label: isCreate ? t("newCrumb", "New") : title },
|
|
632
|
+
];
|
|
633
|
+
|
|
634
|
+
const promptNamed = isCreate && isPromptNamed(meta?.autoname, meta?.naming_rule);
|
|
635
|
+
// Compact (< 640): the sidebar accordion stacks between form body and
|
|
636
|
+
// timeline (LC-29 — asides stack, never hide; metadata before history).
|
|
637
|
+
const sidebarStacked = sizeClass === "compact";
|
|
638
|
+
|
|
639
|
+
const bodyTabs: TabsItem[] = [
|
|
640
|
+
...formTabs.map((tab) => ({
|
|
641
|
+
value: tab.key,
|
|
642
|
+
label: tab.label,
|
|
643
|
+
content: (
|
|
644
|
+
<YStack {...knobProps.gapLg} paddingTop="$3">
|
|
645
|
+
{/* Containment at two granularities: each field renders behind its
|
|
646
|
+
own boundary (a broken field degrades to an inline error slot;
|
|
647
|
+
siblings stay editable), and the whole tab body behind another
|
|
648
|
+
(a SchemaForm-level crash costs one tab, not the route). */}
|
|
649
|
+
<FormErrorBoundary
|
|
650
|
+
errorTitle={t("formTabRenderError", "This form tab failed to render")}
|
|
651
|
+
testID={`form-tab-error-${tab.key}`}
|
|
652
|
+
>
|
|
653
|
+
<SchemaForm
|
|
654
|
+
schema={tab.schema}
|
|
655
|
+
doc={engine.doc}
|
|
656
|
+
setValue={engine.setValue}
|
|
657
|
+
errors={engine.errors}
|
|
658
|
+
disabled={formReadOnly || engine.isSaving}
|
|
659
|
+
sectionHeadingLevel={2}
|
|
660
|
+
renderFieldWrapper={wrapFieldWithErrorBoundary}
|
|
661
|
+
/>
|
|
662
|
+
</FormErrorBoundary>
|
|
663
|
+
</YStack>
|
|
664
|
+
),
|
|
665
|
+
})),
|
|
666
|
+
...(showConnections
|
|
667
|
+
? [
|
|
668
|
+
{
|
|
669
|
+
value: CONNECTIONS_TAB,
|
|
670
|
+
label: t("connectionsTab", "Connections"),
|
|
671
|
+
content: (
|
|
672
|
+
<YStack paddingTop="$3">
|
|
673
|
+
<FormConnections doctype={doctype} name={name} meta={meta} />
|
|
674
|
+
</YStack>
|
|
675
|
+
),
|
|
676
|
+
},
|
|
677
|
+
]
|
|
678
|
+
: []),
|
|
679
|
+
];
|
|
680
|
+
|
|
681
|
+
// Guard against a stale active tab (a Tab Break hidden by depends_on
|
|
682
|
+
// while active) — fall back to the first visible tab.
|
|
683
|
+
const effectiveTab =
|
|
684
|
+
activeTab && bodyTabs.some((tab) => tab.value === activeTab) ? activeTab : bodyTabs[0]?.value;
|
|
685
|
+
|
|
686
|
+
const formBody = (
|
|
687
|
+
// No flex here: formBody now lives inside COLUMN containers (both
|
|
688
|
+
// branches below), where `flex={1}` means flex-basis:0 — the body would
|
|
689
|
+
// stop contributing height and the timeline/sidebar would paint over it.
|
|
690
|
+
<YStack minWidth={0} {...knobProps.gapLg}>
|
|
691
|
+
{promptNamed && (
|
|
692
|
+
<YStack {...knobProps.gap}>
|
|
693
|
+
<Input
|
|
694
|
+
label={t("namePrompt", "Name")}
|
|
695
|
+
value={typeof engine.doc.name === "string" ? engine.doc.name : ""}
|
|
696
|
+
onChangeText={(value) => engine.setValue("name", value)}
|
|
697
|
+
placeholder={t("namePromptPlaceholder", "New document name")}
|
|
698
|
+
error={engine.errors.name}
|
|
699
|
+
/>
|
|
700
|
+
</YStack>
|
|
701
|
+
)}
|
|
702
|
+
|
|
703
|
+
{bodyTabs.length > 1 ? (
|
|
704
|
+
<Tabs items={bodyTabs} value={effectiveTab} onChange={setActiveTab} lazyMount />
|
|
705
|
+
) : (
|
|
706
|
+
(bodyTabs[0]?.content ?? null)
|
|
707
|
+
)}
|
|
708
|
+
|
|
709
|
+
{engine.errors.general && (
|
|
710
|
+
<Text color="$red10" fontSize="$3" role="alert">
|
|
711
|
+
{engine.errors.general}
|
|
712
|
+
</Text>
|
|
713
|
+
)}
|
|
714
|
+
</YStack>
|
|
715
|
+
);
|
|
716
|
+
|
|
717
|
+
const timeline =
|
|
718
|
+
capabilities.timeline.enabled && !isCreate && docName ? (
|
|
719
|
+
<FormTimeline doctype={doctype} name={docName} />
|
|
720
|
+
) : null;
|
|
721
|
+
|
|
722
|
+
const sidebar =
|
|
723
|
+
!isCreate && docName && meta ? (
|
|
724
|
+
<FormSidebarPanel
|
|
725
|
+
doctype={doctype}
|
|
726
|
+
name={docName}
|
|
727
|
+
meta={meta}
|
|
728
|
+
doc={engine.doc}
|
|
729
|
+
docinfo={docinfo}
|
|
730
|
+
currentUser={engine.currentUser}
|
|
731
|
+
onRefresh={refreshDocinfo}
|
|
732
|
+
stacked={sidebarStacked}
|
|
733
|
+
/>
|
|
734
|
+
) : null;
|
|
735
|
+
|
|
736
|
+
const toolbar = (
|
|
737
|
+
<FormToolbar
|
|
738
|
+
breadcrumbs={breadcrumbs}
|
|
739
|
+
onNavigate={navigate}
|
|
740
|
+
title={title}
|
|
741
|
+
indicator={indicator}
|
|
742
|
+
showIndicator={!!meta}
|
|
743
|
+
isSaving={engine.isSaving}
|
|
744
|
+
cluster={
|
|
745
|
+
!isCreate && docName ? (
|
|
746
|
+
<FormHeaderCluster
|
|
747
|
+
doctype={doctype}
|
|
748
|
+
name={docName}
|
|
749
|
+
docinfo={docinfo}
|
|
750
|
+
currentUser={engine.currentUser}
|
|
751
|
+
onRefresh={refreshDocinfo}
|
|
752
|
+
/>
|
|
753
|
+
) : undefined
|
|
754
|
+
}
|
|
755
|
+
canSave={canSave}
|
|
756
|
+
canSubmit={canSubmit}
|
|
757
|
+
canCancel={canCancel}
|
|
758
|
+
canAmend={canAmend}
|
|
759
|
+
onSave={() => void handleSave()}
|
|
760
|
+
onSubmit={() => setConfirmAction("submit")}
|
|
761
|
+
onCancel={() => setConfirmAction("cancel")}
|
|
762
|
+
onAmend={handleAmend}
|
|
763
|
+
menuItems={effectiveMenuItems}
|
|
764
|
+
/>
|
|
765
|
+
);
|
|
766
|
+
|
|
767
|
+
return (
|
|
768
|
+
<YStack flex={1}>
|
|
769
|
+
{slots.renderFormHeader
|
|
770
|
+
? slots.renderFormHeader({
|
|
771
|
+
doctype,
|
|
772
|
+
...(docName ? { name: docName } : {}),
|
|
773
|
+
defaultContent: toolbar,
|
|
774
|
+
})
|
|
775
|
+
: toolbar}
|
|
776
|
+
|
|
777
|
+
{engine.wasDeleted && (
|
|
778
|
+
<XStack
|
|
779
|
+
role="alert"
|
|
780
|
+
{...knobProps.containerRadius}
|
|
781
|
+
{...knobProps.panelPadding}
|
|
782
|
+
marginHorizontal="$3"
|
|
783
|
+
backgroundColor="$red3"
|
|
784
|
+
>
|
|
785
|
+
<Text color="$red11" fontSize="$3">
|
|
786
|
+
{t("deletedBanner", "This document was deleted on the server. Fields are read-only.")}
|
|
787
|
+
</Text>
|
|
788
|
+
</XStack>
|
|
789
|
+
)}
|
|
790
|
+
|
|
791
|
+
{validationSummary && !engine.wasDeleted && (
|
|
792
|
+
<XStack
|
|
793
|
+
role="alert"
|
|
794
|
+
{...knobProps.containerRadius}
|
|
795
|
+
{...knobProps.panelPadding}
|
|
796
|
+
marginHorizontal="$3"
|
|
797
|
+
backgroundColor="$red3"
|
|
798
|
+
testID="doc-form-validation-summary"
|
|
799
|
+
>
|
|
800
|
+
<Text color="$red11" fontSize="$3">
|
|
801
|
+
{validationSummary}
|
|
802
|
+
</Text>
|
|
803
|
+
</XStack>
|
|
804
|
+
)}
|
|
805
|
+
|
|
806
|
+
{engine.conflict && !engine.wasDeleted && (
|
|
807
|
+
<XStack
|
|
808
|
+
role="status"
|
|
809
|
+
alignItems="center"
|
|
810
|
+
justifyContent="space-between"
|
|
811
|
+
{...knobProps.containerRadius}
|
|
812
|
+
{...knobProps.panelPadding}
|
|
813
|
+
marginHorizontal="$3"
|
|
814
|
+
backgroundColor="$orange3"
|
|
815
|
+
gap="$3"
|
|
816
|
+
>
|
|
817
|
+
<Text color="$orange11" fontSize="$3" flex={1}>
|
|
818
|
+
{t("conflictBanner", "This document changed on the server while you were editing.")}
|
|
819
|
+
</Text>
|
|
820
|
+
<Text
|
|
821
|
+
color="$orange11"
|
|
822
|
+
fontSize="$3"
|
|
823
|
+
fontWeight="700"
|
|
824
|
+
cursor="pointer"
|
|
825
|
+
role="button"
|
|
826
|
+
aria-label={t("reloadDoc", "Reload")}
|
|
827
|
+
onPress={engine.reload}
|
|
828
|
+
>
|
|
829
|
+
{t("reloadDoc", "Reload")}
|
|
830
|
+
</Text>
|
|
831
|
+
</XStack>
|
|
832
|
+
)}
|
|
833
|
+
|
|
834
|
+
<ScrollView flex={1}>
|
|
835
|
+
{sidebarStacked ? (
|
|
836
|
+
// Compact: form body → metadata accordion → timeline (the accordion
|
|
837
|
+
// must not hide below the activity feed's long scroll).
|
|
838
|
+
<YStack {...knobProps.panelPadding} {...knobProps.gapLg}>
|
|
839
|
+
{formBody}
|
|
840
|
+
{sidebar}
|
|
841
|
+
{timeline}
|
|
842
|
+
</YStack>
|
|
843
|
+
) : (
|
|
844
|
+
// Wide: main column (body + timeline) with the compact metadata
|
|
845
|
+
// rail keeping its trailing position.
|
|
846
|
+
<XStack {...knobProps.panelPadding} {...knobProps.gapLg} alignItems="flex-start">
|
|
847
|
+
<YStack flex={1} minWidth={0} {...knobProps.gapLg}>
|
|
848
|
+
{formBody}
|
|
849
|
+
{timeline}
|
|
850
|
+
</YStack>
|
|
851
|
+
{sidebar}
|
|
852
|
+
</XStack>
|
|
853
|
+
)}
|
|
854
|
+
</ScrollView>
|
|
855
|
+
|
|
856
|
+
{/* Lifecycle confirms */}
|
|
857
|
+
<ConfirmDialog
|
|
858
|
+
open={confirmAction === "submit"}
|
|
859
|
+
onOpenChange={(open) => !open && setConfirmAction(undefined)}
|
|
860
|
+
title={t("submitConfirmTitle", "Submit {{doctype}}?", { doctype })}
|
|
861
|
+
body={t(
|
|
862
|
+
"submitConfirmBody",
|
|
863
|
+
"After submitting, the document becomes read-only and can only be cancelled or amended.",
|
|
864
|
+
)}
|
|
865
|
+
confirmLabel={t("submit", "Submit")}
|
|
866
|
+
warning
|
|
867
|
+
onConfirm={() => {
|
|
868
|
+
setConfirmAction(undefined);
|
|
869
|
+
void engine.submit().then((ok) => {
|
|
870
|
+
if (ok) reloadDocinfo();
|
|
871
|
+
});
|
|
872
|
+
}}
|
|
873
|
+
/>
|
|
874
|
+
<ConfirmDialog
|
|
875
|
+
open={confirmAction === "cancel"}
|
|
876
|
+
onOpenChange={(open) => !open && setConfirmAction(undefined)}
|
|
877
|
+
title={t("cancelConfirmTitle", "Cancel {{doctype}}?", { doctype })}
|
|
878
|
+
body={t(
|
|
879
|
+
"cancelConfirmBody",
|
|
880
|
+
"Cancelling marks the document as void. You can amend it into a new draft afterwards.",
|
|
881
|
+
)}
|
|
882
|
+
confirmLabel={t("cancelAction", "Cancel")}
|
|
883
|
+
destructive
|
|
884
|
+
onConfirm={() => {
|
|
885
|
+
setConfirmAction(undefined);
|
|
886
|
+
void engine.cancel().then((ok) => {
|
|
887
|
+
if (ok) reloadDocinfo();
|
|
888
|
+
});
|
|
889
|
+
}}
|
|
890
|
+
/>
|
|
891
|
+
<ConfirmDialog
|
|
892
|
+
open={confirmAction === "delete"}
|
|
893
|
+
onOpenChange={(open) => !open && setConfirmAction(undefined)}
|
|
894
|
+
title={t("deleteConfirmTitle", "Delete {{doctype}} {{name}}?", {
|
|
895
|
+
doctype,
|
|
896
|
+
name: title,
|
|
897
|
+
})}
|
|
898
|
+
body={t("deleteConfirmBody", "This action cannot be undone.")}
|
|
899
|
+
confirmLabel={t("menuDelete", "Delete")}
|
|
900
|
+
destructive
|
|
901
|
+
onConfirm={() => {
|
|
902
|
+
setConfirmAction(undefined);
|
|
903
|
+
void engine.remove().then((ok) => {
|
|
904
|
+
if (ok) {
|
|
905
|
+
invalidateDocinfo(doctype, name);
|
|
906
|
+
emitEvent({ type: "doc-deleted", doctype, name });
|
|
907
|
+
if (onDeleted) onDeleted();
|
|
908
|
+
else navigator.replace(paths.list(doctype));
|
|
909
|
+
}
|
|
910
|
+
});
|
|
911
|
+
}}
|
|
912
|
+
/>
|
|
913
|
+
|
|
914
|
+
{/* Unsaved-changes nav guard (in-app navigate() + router-level back) */}
|
|
915
|
+
<ConfirmDialog
|
|
916
|
+
open={!!pendingNav || backGuard.blocked}
|
|
917
|
+
onOpenChange={(open) => {
|
|
918
|
+
if (open) return;
|
|
919
|
+
setPendingNav(undefined);
|
|
920
|
+
backGuard.reset();
|
|
921
|
+
}}
|
|
922
|
+
title={t("unsavedTitle", "Discard unsaved changes?")}
|
|
923
|
+
body={t(
|
|
924
|
+
"unsavedBody",
|
|
925
|
+
"You have unsaved changes that will be lost if you leave this page.",
|
|
926
|
+
)}
|
|
927
|
+
confirmLabel={t("leave", "Leave")}
|
|
928
|
+
warning
|
|
929
|
+
onConfirm={() => {
|
|
930
|
+
if (backGuard.blocked) {
|
|
931
|
+
backGuard.proceed();
|
|
932
|
+
return;
|
|
933
|
+
}
|
|
934
|
+
const target = pendingNav;
|
|
935
|
+
setPendingNav(undefined);
|
|
936
|
+
if (target) navigator.navigate(target);
|
|
937
|
+
}}
|
|
938
|
+
/>
|
|
939
|
+
|
|
940
|
+
<RenameDialog
|
|
941
|
+
open={renameOpen}
|
|
942
|
+
onOpenChange={setRenameOpen}
|
|
943
|
+
currentName={name}
|
|
944
|
+
onRename={(newName) => {
|
|
945
|
+
setRenameOpen(false);
|
|
946
|
+
void handleRename(newName);
|
|
947
|
+
}}
|
|
948
|
+
/>
|
|
949
|
+
<EmailDialog
|
|
950
|
+
open={emailOpen}
|
|
951
|
+
onOpenChange={setEmailOpen}
|
|
952
|
+
defaultSubject={`${doctype}: ${title}`}
|
|
953
|
+
onSend={(args) => {
|
|
954
|
+
setEmailOpen(false);
|
|
955
|
+
if (!docName) return;
|
|
956
|
+
void sendEmail(createHttpClient(connection), {
|
|
957
|
+
doctype,
|
|
958
|
+
name: docName,
|
|
959
|
+
...args,
|
|
960
|
+
})
|
|
961
|
+
.catch(() => {
|
|
962
|
+
// Email failures surface in the refreshed timeline / bench logs.
|
|
963
|
+
})
|
|
964
|
+
.finally(reloadDocinfo);
|
|
965
|
+
}}
|
|
966
|
+
/>
|
|
967
|
+
</YStack>
|
|
968
|
+
);
|
|
969
|
+
}
|