@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,1121 @@
|
|
|
1
|
+
// Contract: the primary list view for a doctype (desk list parity —
|
|
2
|
+
// filters, sort, pagination, bulk actions, tags, view switcher, New).
|
|
3
|
+
//
|
|
4
|
+
// Composition: FrappeTable (serverSide — Frappe REST pagination/sort/filter
|
|
5
|
+
// with realtime invalidation) fed by meta-derived columns, wrapped in desk
|
|
6
|
+
// chrome (header + live count, refresh, view switcher, New → QuickEntry,
|
|
7
|
+
// facet sidebar, sort selector). Fixture mode (Storybook / tests) degrades
|
|
8
|
+
// to the client-mode live collection and hides bench-only surfaces.
|
|
9
|
+
import React from "react";
|
|
10
|
+
import {
|
|
11
|
+
EmptyState,
|
|
12
|
+
H1,
|
|
13
|
+
PageHeader,
|
|
14
|
+
Paragraph,
|
|
15
|
+
ScrollView,
|
|
16
|
+
Spinner,
|
|
17
|
+
ViewSwitcher,
|
|
18
|
+
XStack,
|
|
19
|
+
YStack,
|
|
20
|
+
isWeb,
|
|
21
|
+
notify,
|
|
22
|
+
} from "@multiplatform.one/components";
|
|
23
|
+
import { useLayoutSizeClass } from "@multiplatform.one/theme";
|
|
24
|
+
// Catalog action Button — `accent` renders the active accent intent, the
|
|
25
|
+
// house expression of the one page primary (LC-05 ONE-EMPHASIS; quick entry
|
|
26
|
+
// "Create" precedent). The components Button above stays for neutral chrome.
|
|
27
|
+
import { Button as ActionButton } from "@multiplatform.one/forms";
|
|
28
|
+
import { ArrowsClockwiseIcon, PlusIcon, SidebarSimpleIcon } from "@phosphor-icons/react";
|
|
29
|
+
import {
|
|
30
|
+
FrappeTable,
|
|
31
|
+
docFieldsToFilterFields,
|
|
32
|
+
useFrappeAggregate,
|
|
33
|
+
useFrappeConfig,
|
|
34
|
+
} from "@multiplatform.one/frappe-ui";
|
|
35
|
+
import type { DocTypeField } from "@multiplatform.one/frappe";
|
|
36
|
+
import { DataTablePagination } from "@multiplatform.one/table";
|
|
37
|
+
import type {
|
|
38
|
+
BulkAction,
|
|
39
|
+
DataTableColumn,
|
|
40
|
+
DataTableState,
|
|
41
|
+
FilterableField,
|
|
42
|
+
TableFilter,
|
|
43
|
+
} from "@multiplatform.one/table";
|
|
44
|
+
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
45
|
+
import { useTranslation } from "react-i18next";
|
|
46
|
+
import {
|
|
47
|
+
actionsForDoctype,
|
|
48
|
+
useBackofficeCapabilities,
|
|
49
|
+
useBackofficeConfig,
|
|
50
|
+
useBackofficeNavigator,
|
|
51
|
+
useBackofficePaths,
|
|
52
|
+
useBackofficeSlots,
|
|
53
|
+
type BackofficeAction,
|
|
54
|
+
} from "../config/BackofficeProvider";
|
|
55
|
+
import { BACKOFFICE_I18N_NAMESPACE } from "../i18n";
|
|
56
|
+
import { BACKOFFICE_VIEWS, type BackofficeView } from "../navigation/paths";
|
|
57
|
+
import { QuickEntryDialog } from "../quickEntry/QuickEntryDialog";
|
|
58
|
+
import { useRecentVisit } from "../shared/useRecentVisit";
|
|
59
|
+
// Permlevel role matrix (desk perm.js parity) — shared with the form surface
|
|
60
|
+
// via the UI-free fieldPermissions module; drives list column pruning.
|
|
61
|
+
import { buildPermLevelMatrix } from "../form/fieldPermissions";
|
|
62
|
+
import type { FrappeFilters } from "../shared/types";
|
|
63
|
+
import { type DoctypeMeta, useDoctypeMeta } from "../shared/useDoctypeMeta";
|
|
64
|
+
import { useFrappeApp } from "../shared/useFrappeApp";
|
|
65
|
+
import { useUserRoles } from "../shared/useUserRoles";
|
|
66
|
+
import { AddTagsDialog } from "./AddTagsDialog";
|
|
67
|
+
import { AssignToDialog } from "./AssignToDialog";
|
|
68
|
+
import { bulkDelete, toggleLike } from "./bulkActions";
|
|
69
|
+
import { BulkEditDialog } from "./bulk-edit-dialog";
|
|
70
|
+
import { bulkExportCsv } from "./bulk-export";
|
|
71
|
+
import { bulkSubmitCancel, type BulkDocstatusAction } from "./bulk-submit-cancel";
|
|
72
|
+
import { FilterChips } from "./filter-chips";
|
|
73
|
+
import {
|
|
74
|
+
frappeFiltersToTableFilters,
|
|
75
|
+
sameFilterTuple,
|
|
76
|
+
tableStateToFrappeFilters,
|
|
77
|
+
} from "./filterConversion";
|
|
78
|
+
import { ListFilterBar } from "./ListFilterBar";
|
|
79
|
+
import { ListSidebar } from "./ListSidebar";
|
|
80
|
+
import { type ListDoc, type ListRow, buildListColumns } from "./listColumns";
|
|
81
|
+
import { listFieldsToFetch } from "./listFields";
|
|
82
|
+
import {
|
|
83
|
+
parseFiltersParam,
|
|
84
|
+
parseSortParam,
|
|
85
|
+
serializeFiltersParam,
|
|
86
|
+
serializeSortParam,
|
|
87
|
+
type ListSortState,
|
|
88
|
+
} from "./listUrlState";
|
|
89
|
+
import { useSessionUserId as useSessionUser } from "../shared/useSessionUserId";
|
|
90
|
+
|
|
91
|
+
export interface DoctypeListScreenProps {
|
|
92
|
+
/** Proper-cased doctype name (e.g. "ToDo", "Sales Order") */
|
|
93
|
+
doctype: string;
|
|
94
|
+
/**
|
|
95
|
+
* Raw `?f=` deep-link query value (urlencoded JSON FrappeFilters) —
|
|
96
|
+
* connections panels / dashboards link into filtered lists with it. Read
|
|
97
|
+
* by the route wrapper (SlugScreen); the screen itself stays search-param
|
|
98
|
+
* free so it mounts outside a One navigation container (stories/tests).
|
|
99
|
+
* Bidirectional: the screen writes filter changes back through
|
|
100
|
+
* `navigator.setParams` (listUrlState.ts documents the schema).
|
|
101
|
+
*/
|
|
102
|
+
filtersParam?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Raw `?sort=` query value (`<fieldname>.<asc|desc>`, see listUrlState.ts)
|
|
105
|
+
* — same route-wrapper contract and write-back channel as `filtersParam`.
|
|
106
|
+
*/
|
|
107
|
+
sortParam?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Meta override for fixture-backed stories/tests (fixtures expose no
|
|
110
|
+
* `getdoctype` RPC). Live surfaces leave this unset.
|
|
111
|
+
*/
|
|
112
|
+
metaOverride?: DoctypeMeta;
|
|
113
|
+
/**
|
|
114
|
+
* View-switcher allowlist — intersected with the provider's
|
|
115
|
+
* `capabilities.views.allow`. Unset offers every capability-allowed view.
|
|
116
|
+
*/
|
|
117
|
+
views?: readonly BackofficeView[];
|
|
118
|
+
/**
|
|
119
|
+
* Filters seeded into the user-editable filter channel on mount (chips /
|
|
120
|
+
* editor can change or remove them). `filtersParam` wins when both are set.
|
|
121
|
+
*/
|
|
122
|
+
initialFilters?: FrappeFilters;
|
|
123
|
+
/**
|
|
124
|
+
* Filters ALWAYS ANDed into the query, invisible to the filter chrome and
|
|
125
|
+
* not removable by the user — scope a list to a subset (e.g. one owner).
|
|
126
|
+
*/
|
|
127
|
+
fixedFilters?: FrappeFilters;
|
|
128
|
+
/** Transform the meta-derived columns before render (reorder/hide/extend). */
|
|
129
|
+
columnOverrides?: (columns: DataTableColumn<ListRow>[]) => DataTableColumn<ListRow>[];
|
|
130
|
+
/** Initial page size (user page-size picks still win afterwards). */
|
|
131
|
+
pageSize?: number;
|
|
132
|
+
/**
|
|
133
|
+
* Row-open override. Default: navigate to the document form and emit a
|
|
134
|
+
* `doc-opened` event on the provider bus.
|
|
135
|
+
*/
|
|
136
|
+
onRowOpen?: (doctype: string, name: string) => void;
|
|
137
|
+
/**
|
|
138
|
+
* Hide the "New" affordances (header button + create-first empty state).
|
|
139
|
+
* The `newDoc` capability gates them too.
|
|
140
|
+
*/
|
|
141
|
+
hideNewButton?: boolean;
|
|
142
|
+
/** Extra toolbar actions on selection (merged with provider `actions.list`). */
|
|
143
|
+
toolbarActions?: readonly BackofficeAction[];
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
type PendingDialog = {
|
|
147
|
+
type: "assign" | "tag" | "edit";
|
|
148
|
+
names: string[];
|
|
149
|
+
clear: () => void;
|
|
150
|
+
} | null;
|
|
151
|
+
|
|
152
|
+
const PAGE_SIZES = [20, 100, 500];
|
|
153
|
+
|
|
154
|
+
// Generic JSX (`<FrappeTable<ListDoc> …/>`) breaks one-dev's source
|
|
155
|
+
// annotation transform; instantiate the type argument outside JSX instead.
|
|
156
|
+
const ListTable = FrappeTable<ListDoc>;
|
|
157
|
+
|
|
158
|
+
function sameFilters(a: FrappeFilters, b: FrappeFilters): boolean {
|
|
159
|
+
return a.length === b.length && a.every((tuple, index) => sameFilterTuple(tuple, b[index]));
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
function sameSort(a: ListSortState | null, b: ListSortState | null): boolean {
|
|
163
|
+
return (a?.field ?? null) === (b?.field ?? null) && (a?.order ?? null) === (b?.order ?? null);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export function DoctypeListScreen({
|
|
167
|
+
doctype,
|
|
168
|
+
filtersParam,
|
|
169
|
+
sortParam,
|
|
170
|
+
metaOverride,
|
|
171
|
+
views: viewsAllowlist,
|
|
172
|
+
initialFilters,
|
|
173
|
+
fixedFilters,
|
|
174
|
+
columnOverrides,
|
|
175
|
+
pageSize,
|
|
176
|
+
onRowOpen,
|
|
177
|
+
hideNewButton,
|
|
178
|
+
toolbarActions,
|
|
179
|
+
}: DoctypeListScreenProps) {
|
|
180
|
+
const { t } = useTranslation(BACKOFFICE_I18N_NAMESPACE);
|
|
181
|
+
const navigator = useBackofficeNavigator();
|
|
182
|
+
const paths = useBackofficePaths();
|
|
183
|
+
const capabilities = useBackofficeCapabilities();
|
|
184
|
+
const { actions, emitEvent } = useBackofficeConfig();
|
|
185
|
+
const slots = useBackofficeSlots();
|
|
186
|
+
const config = useFrappeConfig();
|
|
187
|
+
const app = useFrappeApp();
|
|
188
|
+
const fixtureMode = Boolean(config?.fixtures);
|
|
189
|
+
const sessionUser = useSessionUser();
|
|
190
|
+
// Compact list chrome below 640 (theme `compact` size class — matchMedia
|
|
191
|
+
// on web, window dimensions on native; BackofficeShell drawer precedent):
|
|
192
|
+
// one title row + one scrollable switcher row, filters/sort behind a sheet.
|
|
193
|
+
const compactChrome = useLayoutSizeClass() === "compact";
|
|
194
|
+
|
|
195
|
+
// Write-on-visit for the shared recents store (workspace "Continue where
|
|
196
|
+
// you left off" strip). Fixture mode (stories/tests) stays storage-free.
|
|
197
|
+
useRecentVisit(fixtureMode ? undefined : { label: doctype, path: paths.list(doctype) });
|
|
198
|
+
|
|
199
|
+
const {
|
|
200
|
+
meta: loadedMeta,
|
|
201
|
+
loading: metaLoading,
|
|
202
|
+
error: metaError,
|
|
203
|
+
} = useDoctypeMeta(metaOverride ? undefined : doctype);
|
|
204
|
+
const meta = metaOverride ?? loadedMeta;
|
|
205
|
+
|
|
206
|
+
// Operational errors reach the host bus (never replaces the inline state).
|
|
207
|
+
useEffect(() => {
|
|
208
|
+
if (metaError && !meta) emitEvent({ type: "error", error: metaError, context: "list-meta" });
|
|
209
|
+
}, [metaError, meta, emitEvent]);
|
|
210
|
+
|
|
211
|
+
// "New" affordances: host prop + the newDoc capability.
|
|
212
|
+
const showNew = !hideNewButton && capabilities.newDoc.enabled;
|
|
213
|
+
|
|
214
|
+
// ONE FILTER SYSTEM (MOD-04): `baseFilters` is the single writable filter
|
|
215
|
+
// state for this screen. Every filter surface — quick standard filters,
|
|
216
|
+
// the tuple editor, saved filters, the chips row, the facet sidebar, the
|
|
217
|
+
// compact tools sheet, and the `?f=` deep link — reads and writes THIS
|
|
218
|
+
// state via handleBaseFiltersChange; changing it bumps `filtersGen`,
|
|
219
|
+
// remounting the table with the tuples injected as initialState.filters.
|
|
220
|
+
// The table's own filter chrome is suppressed (enableFiltering={false}
|
|
221
|
+
// below), so no second live filter state exists.
|
|
222
|
+
const [baseFilters, setBaseFilters] = useState<FrappeFilters>(() => {
|
|
223
|
+
const fromParam = parseFiltersParam(filtersParam);
|
|
224
|
+
if (fromParam.length > 0) return fromParam;
|
|
225
|
+
return initialFilters ? [...initialFilters] : fromParam;
|
|
226
|
+
});
|
|
227
|
+
const [filtersGen, setFiltersGen] = useState(0);
|
|
228
|
+
// Read-only mirror of the table's effective query (injected base tuples +
|
|
229
|
+
// the table-owned search box), synced from onStateChange — feeds the live
|
|
230
|
+
// count and facet stats. Not a second filter authority: with the table's
|
|
231
|
+
// filter chrome suppressed, search is the only table-side contribution.
|
|
232
|
+
const [effectiveFilters, setEffectiveFilters] = useState<FrappeFilters | null>(null);
|
|
233
|
+
// null = ride the doctype's meta default; `?sort=` deep links seed it.
|
|
234
|
+
const [sort, setSort] = useState<ListSortState | null>(() => parseSortParam(sortParam) ?? null);
|
|
235
|
+
const [sortGen, setSortGen] = useState(0);
|
|
236
|
+
const [refreshGen, setRefreshGen] = useState(0);
|
|
237
|
+
const [sidebarVisible, setSidebarVisible] = useState(true);
|
|
238
|
+
const [quickEntryOpen, setQuickEntryOpen] = useState(false);
|
|
239
|
+
const [pendingDialog, setPendingDialog] = useState<PendingDialog>(null);
|
|
240
|
+
const [likeOverrides, setLikeOverrides] = useState<Record<string, boolean>>({});
|
|
241
|
+
// Last page size the user picked — survives the filter/sort remounts.
|
|
242
|
+
const pageSizeRef = useRef(pageSize ?? PAGE_SIZES[0]);
|
|
243
|
+
|
|
244
|
+
// Always-ANDed host filters: joined into every query (table injection,
|
|
245
|
+
// live count, facet stats) but invisible to the user filter chrome —
|
|
246
|
+
// value-keyed so unstable array literals from the host don't churn.
|
|
247
|
+
const fixedFiltersKey = JSON.stringify(fixedFilters ?? []);
|
|
248
|
+
const fixedTuples = useMemo(
|
|
249
|
+
() => JSON.parse(fixedFiltersKey) as FrappeFilters,
|
|
250
|
+
[fixedFiltersKey],
|
|
251
|
+
);
|
|
252
|
+
const withFixed = useCallback(
|
|
253
|
+
(filters: FrappeFilters): FrappeFilters =>
|
|
254
|
+
fixedTuples.length > 0 ? [...fixedTuples, ...filters] : filters,
|
|
255
|
+
[fixedTuples],
|
|
256
|
+
);
|
|
257
|
+
|
|
258
|
+
// Seeds on doctype/param swaps (refs — prop identity must not retrigger).
|
|
259
|
+
const initialFiltersRef = useRef(initialFilters);
|
|
260
|
+
initialFiltersRef.current = initialFilters;
|
|
261
|
+
// Render-synced mirrors so imperative handlers (URL writes, the table's
|
|
262
|
+
// onStateChange) read current state without re-subscribing.
|
|
263
|
+
const baseFiltersRef = useRef(baseFilters);
|
|
264
|
+
baseFiltersRef.current = baseFilters;
|
|
265
|
+
const sortRef = useRef(sort);
|
|
266
|
+
sortRef.current = sort;
|
|
267
|
+
|
|
268
|
+
// URL round-trip, outbound half (desk parity: list_view.js
|
|
269
|
+
// update_url_with_filters → history.replaceState). Every USER state
|
|
270
|
+
// change mirrors into `?f=`/`?sort=` through the navigator's optional
|
|
271
|
+
// setParams — no history entry, no remount; hosts without the primitive
|
|
272
|
+
// (noop navigator in bare stories) skip silently and state stays local.
|
|
273
|
+
// Inbound param changes never call this (the sync effect below adopts
|
|
274
|
+
// them), so the echo cannot loop.
|
|
275
|
+
const writeUrlState = useCallback(
|
|
276
|
+
(filters: FrappeFilters, sortState: ListSortState | null) => {
|
|
277
|
+
navigator.setParams?.({
|
|
278
|
+
f: serializeFiltersParam(filters),
|
|
279
|
+
sort: sortState ? serializeSortParam(sortState) : undefined,
|
|
280
|
+
});
|
|
281
|
+
},
|
|
282
|
+
[navigator],
|
|
283
|
+
);
|
|
284
|
+
|
|
285
|
+
// The route component is reused across /backoffice/[slug] navigations, so
|
|
286
|
+
// a doctype swap or a new `?f=`/`?sort=` deep link (incl. browser
|
|
287
|
+
// back/forward — the URL is the single source) resets the list state in
|
|
288
|
+
// place. Echoes of our own writeUrlState calls arrive here too and are
|
|
289
|
+
// adopted without state churn (sameFilters/sameSort guards).
|
|
290
|
+
const lastDoctype = useRef(doctype);
|
|
291
|
+
const lastFiltersParam = useRef(filtersParam);
|
|
292
|
+
const lastSortParam = useRef(sortParam);
|
|
293
|
+
useEffect(() => {
|
|
294
|
+
const doctypeChanged = lastDoctype.current !== doctype;
|
|
295
|
+
const filtersParamChanged = lastFiltersParam.current !== filtersParam;
|
|
296
|
+
const sortParamChanged = lastSortParam.current !== sortParam;
|
|
297
|
+
if (!doctypeChanged && !filtersParamChanged && !sortParamChanged) return;
|
|
298
|
+
lastDoctype.current = doctype;
|
|
299
|
+
lastFiltersParam.current = filtersParam;
|
|
300
|
+
lastSortParam.current = sortParam;
|
|
301
|
+
if (doctypeChanged || filtersParamChanged) {
|
|
302
|
+
const fromParam = parseFiltersParam(filtersParam);
|
|
303
|
+
const next =
|
|
304
|
+
fromParam.length > 0
|
|
305
|
+
? fromParam
|
|
306
|
+
: doctypeChanged && initialFiltersRef.current
|
|
307
|
+
? [...initialFiltersRef.current]
|
|
308
|
+
: fromParam;
|
|
309
|
+
if (doctypeChanged || !sameFilters(next, baseFiltersRef.current)) {
|
|
310
|
+
setBaseFilters(next);
|
|
311
|
+
setEffectiveFilters(withFixed(next));
|
|
312
|
+
setFiltersGen((generation) => generation + 1);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
if (doctypeChanged) {
|
|
316
|
+
setSort(parseSortParam(sortParam) ?? null);
|
|
317
|
+
setLikeOverrides({});
|
|
318
|
+
return;
|
|
319
|
+
}
|
|
320
|
+
if (sortParamChanged) {
|
|
321
|
+
const parsed = parseSortParam(sortParam) ?? null;
|
|
322
|
+
if (!sameSort(parsed, sortRef.current)) {
|
|
323
|
+
setSort(parsed);
|
|
324
|
+
setSortGen((generation) => generation + 1);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}, [doctype, filtersParam, sortParam, withFixed]);
|
|
328
|
+
|
|
329
|
+
const sortField = sort?.field ?? meta?.sort_field ?? "modified";
|
|
330
|
+
const sortOrder = sort?.order ?? (meta?.sort_order?.toUpperCase() === "ASC" ? "asc" : "desc");
|
|
331
|
+
// Effective sort as the table sees it (state ?? meta default) — the
|
|
332
|
+
// onStateChange mirror compares against THIS so the seeded initial sort
|
|
333
|
+
// never echoes a redundant `?sort=` into the URL on mount.
|
|
334
|
+
const effectiveSortRef = useRef<ListSortState>({ field: sortField, order: sortOrder });
|
|
335
|
+
effectiveSortRef.current = { field: sortField, order: sortOrder };
|
|
336
|
+
const currentFilters = effectiveFilters ?? withFixed(baseFilters);
|
|
337
|
+
|
|
338
|
+
const connection = useMemo(
|
|
339
|
+
() =>
|
|
340
|
+
config
|
|
341
|
+
? {
|
|
342
|
+
baseURL: config.baseURL,
|
|
343
|
+
socketPort: config.socketPort,
|
|
344
|
+
auth: config.auth
|
|
345
|
+
? {
|
|
346
|
+
useToken: config.auth.useToken,
|
|
347
|
+
token: typeof config.auth.token === "string" ? config.auth.token : undefined,
|
|
348
|
+
type: config.auth.type,
|
|
349
|
+
}
|
|
350
|
+
: undefined,
|
|
351
|
+
// Forward the provider's engine options: the SyncModule is
|
|
352
|
+
// shared per baseURL and the FIRST consumer's config wins — a
|
|
353
|
+
// connection built without syncOptions here would silently
|
|
354
|
+
// strip persistKey/cdcInterval for every other screen when the
|
|
355
|
+
// list's aggregate watcher happens to construct the engine
|
|
356
|
+
// first (observed on GNOME, where this screen is the first
|
|
357
|
+
// engine touch).
|
|
358
|
+
syncOptions: config.syncOptions,
|
|
359
|
+
socketOptions: config.socketOptions,
|
|
360
|
+
fixtures: config.fixtures,
|
|
361
|
+
}
|
|
362
|
+
: undefined,
|
|
363
|
+
[config],
|
|
364
|
+
);
|
|
365
|
+
|
|
366
|
+
// Live result count — realtime refetch on doctype events.
|
|
367
|
+
const count = useFrappeAggregate(connection, {
|
|
368
|
+
doctype,
|
|
369
|
+
filters: currentFilters.length > 0 ? currentFilters : undefined,
|
|
370
|
+
});
|
|
371
|
+
|
|
372
|
+
const handleToggleLike = useCallback(
|
|
373
|
+
(name: string, nextLiked: boolean) => {
|
|
374
|
+
setLikeOverrides((previous) => ({ ...previous, [name]: nextLiked }));
|
|
375
|
+
if (!app || fixtureMode) return;
|
|
376
|
+
toggleLike(app, doctype, name, nextLiked).catch(() => {
|
|
377
|
+
setLikeOverrides((previous) => ({ ...previous, [name]: !nextLiked }));
|
|
378
|
+
notify({
|
|
379
|
+
severity: "error",
|
|
380
|
+
scope: "page",
|
|
381
|
+
body: t("list.likeFailed", "Could not update liked state"),
|
|
382
|
+
});
|
|
383
|
+
});
|
|
384
|
+
},
|
|
385
|
+
[app, fixtureMode, doctype, t],
|
|
386
|
+
);
|
|
387
|
+
|
|
388
|
+
// Session roles × meta.permissions → permlevel read matrix. Columns for
|
|
389
|
+
// fields above the roles' read level are pruned (desk hides them; the
|
|
390
|
+
// server strips their values anyway). Undefined (fixtures / roles RPC
|
|
391
|
+
// unavailable) prunes nothing — never hides more than desk would.
|
|
392
|
+
const { roles } = useUserRoles();
|
|
393
|
+
const permMatrix = useMemo(
|
|
394
|
+
() => buildPermLevelMatrix(meta?.permissions, roles),
|
|
395
|
+
[meta?.permissions, roles],
|
|
396
|
+
);
|
|
397
|
+
|
|
398
|
+
const columns = useMemo(() => {
|
|
399
|
+
const built = buildListColumns({
|
|
400
|
+
meta,
|
|
401
|
+
t: (key, fallback) => t(key, fallback),
|
|
402
|
+
sessionUser,
|
|
403
|
+
onToggleLike: handleToggleLike,
|
|
404
|
+
likeOverrides,
|
|
405
|
+
permMatrix,
|
|
406
|
+
});
|
|
407
|
+
return columnOverrides ? columnOverrides(built) : built;
|
|
408
|
+
}, [meta, t, sessionUser, handleToggleLike, likeOverrides, permMatrix, columnOverrides]);
|
|
409
|
+
|
|
410
|
+
const fields = useMemo(() => listFieldsToFetch(meta, permMatrix), [meta, permMatrix]);
|
|
411
|
+
|
|
412
|
+
// Filterable-field declarations (meta fields + the desk `_` facet
|
|
413
|
+
// columns). With the table's filter chrome suppressed these render no
|
|
414
|
+
// toolbar surface — they resolve filter TYPES for the injected tuples and
|
|
415
|
+
// keep FrappeTable from refetching meta to derive its own list.
|
|
416
|
+
const filterableFields = useMemo<FilterableField[] | undefined>(() => {
|
|
417
|
+
if (!meta?.fields) return undefined;
|
|
418
|
+
return [
|
|
419
|
+
...docFieldsToFilterFields(meta.fields as unknown as DocTypeField[]),
|
|
420
|
+
{
|
|
421
|
+
id: "_assign",
|
|
422
|
+
label: t("list.assignedTo", "Assigned To"),
|
|
423
|
+
type: "text",
|
|
424
|
+
},
|
|
425
|
+
{ id: "_user_tags", label: t("list.tags", "Tags"), type: "text" },
|
|
426
|
+
{ id: "_liked_by", label: t("list.likedBy", "Liked By"), type: "text" },
|
|
427
|
+
];
|
|
428
|
+
}, [meta, t]);
|
|
429
|
+
|
|
430
|
+
const initialTableFilters = useMemo<TableFilter[]>(
|
|
431
|
+
() => frappeFiltersToTableFilters(withFixed(baseFilters)),
|
|
432
|
+
[baseFilters, withFixed],
|
|
433
|
+
);
|
|
434
|
+
|
|
435
|
+
const handleBaseFiltersChange = useCallback(
|
|
436
|
+
(next: FrappeFilters) => {
|
|
437
|
+
setBaseFilters(next);
|
|
438
|
+
setEffectiveFilters(withFixed(next));
|
|
439
|
+
setFiltersGen((generation) => generation + 1);
|
|
440
|
+
writeUrlState(next, sortRef.current);
|
|
441
|
+
},
|
|
442
|
+
[withFixed, writeUrlState],
|
|
443
|
+
);
|
|
444
|
+
|
|
445
|
+
const handleSortChange = useCallback(
|
|
446
|
+
(field: string, order: "asc" | "desc") => {
|
|
447
|
+
setSort({ field, order });
|
|
448
|
+
setSortGen((generation) => generation + 1);
|
|
449
|
+
writeUrlState(baseFiltersRef.current, { field, order });
|
|
450
|
+
},
|
|
451
|
+
[writeUrlState],
|
|
452
|
+
);
|
|
453
|
+
|
|
454
|
+
// DataTable's onStateChange fires on every table render (its state object
|
|
455
|
+
// is rebuilt each pass), so every mirror below MUST bail to the previous
|
|
456
|
+
// state identity when nothing changed — fresh objects would loop
|
|
457
|
+
// render → onStateChange → setState → render forever.
|
|
458
|
+
const handleStateChange = useCallback(
|
|
459
|
+
(state: DataTableState) => {
|
|
460
|
+
if (state.pagination?.pageSize) pageSizeRef.current = state.pagination.pageSize;
|
|
461
|
+
const nextFilters = tableStateToFrappeFilters(state);
|
|
462
|
+
setEffectiveFilters((previous) =>
|
|
463
|
+
previous && sameFilters(previous, nextFilters) ? previous : nextFilters,
|
|
464
|
+
);
|
|
465
|
+
// Header-sort clicks stay internal to the table; mirror them into the
|
|
466
|
+
// sort selector without bumping sortGen (no remount needed). Compared
|
|
467
|
+
// against the EFFECTIVE sort so the seeded initial sorting is a no-op;
|
|
468
|
+
// a real header sort also mirrors into the URL (write-once — the
|
|
469
|
+
// effective ref updates on the next render).
|
|
470
|
+
const sorting = state.sorting?.[0];
|
|
471
|
+
if (sorting) {
|
|
472
|
+
const order = sorting.desc ? ("desc" as const) : ("asc" as const);
|
|
473
|
+
const effective = effectiveSortRef.current;
|
|
474
|
+
if (effective.field !== sorting.id || effective.order !== order) {
|
|
475
|
+
const nextSort: ListSortState = { field: sorting.id, order };
|
|
476
|
+
setSort(nextSort);
|
|
477
|
+
writeUrlState(baseFiltersRef.current, nextSort);
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
[writeUrlState],
|
|
482
|
+
);
|
|
483
|
+
|
|
484
|
+
const handleRefresh = useCallback(() => {
|
|
485
|
+
setRefreshGen((generation) => generation + 1);
|
|
486
|
+
count.refresh();
|
|
487
|
+
}, [count]);
|
|
488
|
+
|
|
489
|
+
const handleRowClick = useCallback(
|
|
490
|
+
(row: ListRow) => {
|
|
491
|
+
if (!row.name) return;
|
|
492
|
+
if (onRowOpen) {
|
|
493
|
+
onRowOpen(doctype, row.name);
|
|
494
|
+
return;
|
|
495
|
+
}
|
|
496
|
+
emitEvent({ type: "doc-opened", doctype, name: row.name });
|
|
497
|
+
navigator.navigate(paths.form(doctype, row.name));
|
|
498
|
+
},
|
|
499
|
+
[navigator, paths, doctype, onRowOpen, emitEvent],
|
|
500
|
+
);
|
|
501
|
+
|
|
502
|
+
const handleBulkExport = useCallback(
|
|
503
|
+
async (names: string[]) => {
|
|
504
|
+
if (!app) return;
|
|
505
|
+
try {
|
|
506
|
+
const result = await bulkExportCsv(app, doctype, names, meta);
|
|
507
|
+
if (!result.downloaded) {
|
|
508
|
+
notify({
|
|
509
|
+
severity: "warning",
|
|
510
|
+
scope: "page",
|
|
511
|
+
body: t(
|
|
512
|
+
"list.exportUnsupported",
|
|
513
|
+
"CSV export needs a browser download — not available on this platform yet",
|
|
514
|
+
),
|
|
515
|
+
});
|
|
516
|
+
} else {
|
|
517
|
+
notify({
|
|
518
|
+
severity: "success",
|
|
519
|
+
scope: "page",
|
|
520
|
+
body: t("list.exportDone", {
|
|
521
|
+
count: result.rowCount,
|
|
522
|
+
defaultValue_one: "Exported {{count}} row to CSV",
|
|
523
|
+
defaultValue_other: "Exported {{count}} rows to CSV",
|
|
524
|
+
}),
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
} catch (error) {
|
|
528
|
+
notify({
|
|
529
|
+
severity: "error",
|
|
530
|
+
scope: "page",
|
|
531
|
+
body:
|
|
532
|
+
error instanceof Error ? error.message : t("list.exportFailed", "CSV export failed"),
|
|
533
|
+
});
|
|
534
|
+
}
|
|
535
|
+
},
|
|
536
|
+
[app, doctype, meta, t],
|
|
537
|
+
);
|
|
538
|
+
|
|
539
|
+
const handleBulkDocstatus = useCallback(
|
|
540
|
+
async (names: string[], action: BulkDocstatusAction) => {
|
|
541
|
+
if (!app) return;
|
|
542
|
+
try {
|
|
543
|
+
const result = await bulkSubmitCancel(app, doctype, names, action);
|
|
544
|
+
if (result.queued) {
|
|
545
|
+
notify({
|
|
546
|
+
severity: "info",
|
|
547
|
+
scope: "page",
|
|
548
|
+
body: t("list.docstatusQueued", {
|
|
549
|
+
action: action === "submit" ? t("list.submit", "Submit") : t("list.cancel", "Cancel"),
|
|
550
|
+
count: result.attempted,
|
|
551
|
+
defaultValue_one: "{{action}} of {{count}} document queued in the background",
|
|
552
|
+
defaultValue_other: "{{action}} of {{count}} documents queued in the background",
|
|
553
|
+
}),
|
|
554
|
+
});
|
|
555
|
+
} else if (result.failed.length > 0) {
|
|
556
|
+
notify({
|
|
557
|
+
severity: "warning",
|
|
558
|
+
scope: "page",
|
|
559
|
+
// Two independent counts in one sentence — phrased "X of Y" so
|
|
560
|
+
// no noun needs a second plural slot.
|
|
561
|
+
body: t("list.docstatusPartial", {
|
|
562
|
+
count: result.attempted - result.failed.length,
|
|
563
|
+
total: result.attempted,
|
|
564
|
+
names: result.failed.join(", "),
|
|
565
|
+
defaultValue: "Processed {{count}} of {{total}} documents; failed: {{names}}",
|
|
566
|
+
}),
|
|
567
|
+
});
|
|
568
|
+
} else {
|
|
569
|
+
notify({
|
|
570
|
+
severity: "success",
|
|
571
|
+
scope: "page",
|
|
572
|
+
body:
|
|
573
|
+
action === "submit"
|
|
574
|
+
? t("list.submitDone", {
|
|
575
|
+
count: result.attempted,
|
|
576
|
+
defaultValue_one: "Submitted {{count}} document",
|
|
577
|
+
defaultValue_other: "Submitted {{count}} documents",
|
|
578
|
+
})
|
|
579
|
+
: t("list.cancelDone", {
|
|
580
|
+
count: result.attempted,
|
|
581
|
+
defaultValue_one: "Cancelled {{count}} document",
|
|
582
|
+
defaultValue_other: "Cancelled {{count}} documents",
|
|
583
|
+
}),
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
count.refresh();
|
|
587
|
+
} catch (error) {
|
|
588
|
+
notify({
|
|
589
|
+
severity: "error",
|
|
590
|
+
scope: "page",
|
|
591
|
+
body:
|
|
592
|
+
error instanceof Error
|
|
593
|
+
? error.message
|
|
594
|
+
: t("list.docstatusFailed", "Bulk action failed"),
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
},
|
|
598
|
+
[app, doctype, t, count],
|
|
599
|
+
);
|
|
600
|
+
|
|
601
|
+
const isSubmittable = meta?.is_submittable === 1;
|
|
602
|
+
|
|
603
|
+
// Host-injected selection actions: provider `actions.list` (doctype-scoped
|
|
604
|
+
// registry) + the `toolbarActions` prop, appended to the built-in bulk
|
|
605
|
+
// actions.
|
|
606
|
+
const hostListActions = useMemo<BulkAction<ListRow>[]>(() => {
|
|
607
|
+
const injected: BackofficeAction[] = [
|
|
608
|
+
...actionsForDoctype(actions.list, doctype),
|
|
609
|
+
...actionsForDoctype(toolbarActions, doctype),
|
|
610
|
+
];
|
|
611
|
+
return injected.map((action) => ({
|
|
612
|
+
id: action.id,
|
|
613
|
+
label: action.label,
|
|
614
|
+
onExecute: (items: ListRow[]) => {
|
|
615
|
+
const names = items.map((item) => item.name).filter(Boolean) as string[];
|
|
616
|
+
action.onPress({ doctype, selection: names });
|
|
617
|
+
},
|
|
618
|
+
}));
|
|
619
|
+
}, [actions.list, toolbarActions, doctype]);
|
|
620
|
+
|
|
621
|
+
const bulkActions = useMemo<BulkAction<ListRow>[]>(
|
|
622
|
+
() => [
|
|
623
|
+
// Assignment/tag actions ride their capability flags.
|
|
624
|
+
...(capabilities.assignments.enabled
|
|
625
|
+
? ([
|
|
626
|
+
{
|
|
627
|
+
id: "assign",
|
|
628
|
+
label: t("list.assignTitle", "Assign To"),
|
|
629
|
+
onExecute: (items, clearSelection) => {
|
|
630
|
+
const names = items.map((item) => item.name).filter(Boolean) as string[];
|
|
631
|
+
if (names.length > 0)
|
|
632
|
+
setPendingDialog({ type: "assign", names, clear: clearSelection });
|
|
633
|
+
},
|
|
634
|
+
},
|
|
635
|
+
] as BulkAction<ListRow>[])
|
|
636
|
+
: []),
|
|
637
|
+
...(capabilities.tags.enabled
|
|
638
|
+
? ([
|
|
639
|
+
{
|
|
640
|
+
id: "tag",
|
|
641
|
+
label: t("list.tagTitle", "Add Tags"),
|
|
642
|
+
onExecute: (items, clearSelection) => {
|
|
643
|
+
const names = items.map((item) => item.name).filter(Boolean) as string[];
|
|
644
|
+
if (names.length > 0)
|
|
645
|
+
setPendingDialog({ type: "tag", names, clear: clearSelection });
|
|
646
|
+
},
|
|
647
|
+
},
|
|
648
|
+
] as BulkAction<ListRow>[])
|
|
649
|
+
: []),
|
|
650
|
+
{
|
|
651
|
+
id: "edit",
|
|
652
|
+
label: t("list.editTitle", "Bulk Edit"),
|
|
653
|
+
onExecute: (items, clearSelection) => {
|
|
654
|
+
const names = items.map((item) => item.name).filter(Boolean) as string[];
|
|
655
|
+
if (names.length > 0) setPendingDialog({ type: "edit", names, clear: clearSelection });
|
|
656
|
+
},
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
id: "export",
|
|
660
|
+
label: t("list.export", "Export CSV"),
|
|
661
|
+
onExecute: async (items) => {
|
|
662
|
+
const names = items.map((item) => item.name).filter(Boolean) as string[];
|
|
663
|
+
if (names.length > 0) await handleBulkExport(names);
|
|
664
|
+
},
|
|
665
|
+
},
|
|
666
|
+
...(isSubmittable
|
|
667
|
+
? ([
|
|
668
|
+
{
|
|
669
|
+
id: "submit",
|
|
670
|
+
label: t("list.submit", "Submit"),
|
|
671
|
+
requiresConfirmation: true,
|
|
672
|
+
confirmTitle: t("list.submitTitle", "Submit documents"),
|
|
673
|
+
confirmMessage: t("list.submitConfirm", {
|
|
674
|
+
defaultValue: "Submit the selected {{doctype}} documents?",
|
|
675
|
+
doctype,
|
|
676
|
+
}),
|
|
677
|
+
onExecute: async (items, clearSelection) => {
|
|
678
|
+
const names = items.map((item) => item.name).filter(Boolean) as string[];
|
|
679
|
+
if (names.length === 0) return;
|
|
680
|
+
await handleBulkDocstatus(names, "submit");
|
|
681
|
+
clearSelection();
|
|
682
|
+
},
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
id: "cancel",
|
|
686
|
+
label: t("list.cancel", "Cancel"),
|
|
687
|
+
requiresConfirmation: true,
|
|
688
|
+
confirmTitle: t("list.cancelTitle", "Cancel documents"),
|
|
689
|
+
confirmMessage: t("list.cancelBody", {
|
|
690
|
+
defaultValue: "Cancel the selected submitted {{doctype}} documents?",
|
|
691
|
+
doctype,
|
|
692
|
+
}),
|
|
693
|
+
onExecute: async (items, clearSelection) => {
|
|
694
|
+
const names = items.map((item) => item.name).filter(Boolean) as string[];
|
|
695
|
+
if (names.length === 0) return;
|
|
696
|
+
await handleBulkDocstatus(names, "cancel");
|
|
697
|
+
clearSelection();
|
|
698
|
+
},
|
|
699
|
+
},
|
|
700
|
+
] as BulkAction<ListRow>[])
|
|
701
|
+
: []),
|
|
702
|
+
{
|
|
703
|
+
id: "delete",
|
|
704
|
+
label: t("list.delete", "Delete"),
|
|
705
|
+
variant: "destructive",
|
|
706
|
+
requiresConfirmation: true,
|
|
707
|
+
confirmTitle: t("list.deleteTitle", "Delete documents"),
|
|
708
|
+
confirmMessage: t("list.deleteConfirm", {
|
|
709
|
+
defaultValue: "Permanently delete the selected {{doctype}} documents?",
|
|
710
|
+
doctype,
|
|
711
|
+
}),
|
|
712
|
+
onExecute: async (items, clearSelection) => {
|
|
713
|
+
if (!app) return;
|
|
714
|
+
const names = items.map((item) => item.name).filter(Boolean) as string[];
|
|
715
|
+
if (names.length === 0) return;
|
|
716
|
+
const result = await bulkDelete(app, doctype, names);
|
|
717
|
+
if (result.failed.length > 0) {
|
|
718
|
+
notify({
|
|
719
|
+
severity: "warning",
|
|
720
|
+
scope: "page",
|
|
721
|
+
body: t("list.deletePartial", {
|
|
722
|
+
count: result.succeeded.length,
|
|
723
|
+
total: names.length,
|
|
724
|
+
names: result.failed.map((failure) => failure.name).join(", "),
|
|
725
|
+
defaultValue: "Deleted {{count}} of {{total}} documents; failed: {{names}}",
|
|
726
|
+
}),
|
|
727
|
+
});
|
|
728
|
+
} else {
|
|
729
|
+
notify({
|
|
730
|
+
severity: "success",
|
|
731
|
+
scope: "page",
|
|
732
|
+
body: t("list.deleteDone", {
|
|
733
|
+
count: result.succeeded.length,
|
|
734
|
+
defaultValue_one: "Deleted {{count}} document",
|
|
735
|
+
defaultValue_other: "Deleted {{count}} documents",
|
|
736
|
+
}),
|
|
737
|
+
});
|
|
738
|
+
}
|
|
739
|
+
clearSelection();
|
|
740
|
+
count.refresh();
|
|
741
|
+
},
|
|
742
|
+
},
|
|
743
|
+
...hostListActions,
|
|
744
|
+
],
|
|
745
|
+
[
|
|
746
|
+
t,
|
|
747
|
+
app,
|
|
748
|
+
doctype,
|
|
749
|
+
count,
|
|
750
|
+
isSubmittable,
|
|
751
|
+
handleBulkExport,
|
|
752
|
+
handleBulkDocstatus,
|
|
753
|
+
capabilities.assignments.enabled,
|
|
754
|
+
capabilities.tags.enabled,
|
|
755
|
+
hostListActions,
|
|
756
|
+
],
|
|
757
|
+
);
|
|
758
|
+
|
|
759
|
+
// Selection + the bulk bar ride the bulkActions capability as one unit.
|
|
760
|
+
const bulkActionsEnabled = capabilities.bulkActions.enabled;
|
|
761
|
+
|
|
762
|
+
// View switcher options: capability allowlist ∩ the `views` prop.
|
|
763
|
+
const views = useMemo(() => {
|
|
764
|
+
if (!capabilities.views.enabled) return [];
|
|
765
|
+
return BACKOFFICE_VIEWS.filter(
|
|
766
|
+
(view) =>
|
|
767
|
+
capabilities.views.allow.includes(view) &&
|
|
768
|
+
(!viewsAllowlist || viewsAllowlist.includes(view)),
|
|
769
|
+
).map((view) => ({
|
|
770
|
+
type: view,
|
|
771
|
+
label: t(`views.${view}`, view.charAt(0).toUpperCase() + view.slice(1)),
|
|
772
|
+
}));
|
|
773
|
+
}, [t, capabilities.views.enabled, capabilities.views.allow, viewsAllowlist]);
|
|
774
|
+
|
|
775
|
+
const tableKey = `${doctype}|${refreshGen}|${sortGen}|${filtersGen}`;
|
|
776
|
+
|
|
777
|
+
if (metaError && !meta) {
|
|
778
|
+
return (
|
|
779
|
+
<YStack flex={1}>
|
|
780
|
+
<EmptyState
|
|
781
|
+
intent="error"
|
|
782
|
+
title={t("list.metaError", {
|
|
783
|
+
defaultValue: "Could not load {{doctype}}",
|
|
784
|
+
doctype,
|
|
785
|
+
})}
|
|
786
|
+
description={metaError.message}
|
|
787
|
+
/>
|
|
788
|
+
</YStack>
|
|
789
|
+
);
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
if (!meta && metaLoading) {
|
|
793
|
+
return (
|
|
794
|
+
<YStack flex={1} alignItems="center" justifyContent="center" padding="$6">
|
|
795
|
+
<Spinner size="large" />
|
|
796
|
+
</YStack>
|
|
797
|
+
);
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
const showCreateFirst = !count.isLoading && count.value === 0 && currentFilters.length === 0;
|
|
801
|
+
|
|
802
|
+
// i18next plural forms — never the lazy "(s)" suffix (the count picks the
|
|
803
|
+
// form; other locales pluralize correctly through the same key).
|
|
804
|
+
const countText = count.isLoading
|
|
805
|
+
? undefined
|
|
806
|
+
: t("list.resultCount", {
|
|
807
|
+
count: count.value ?? 0,
|
|
808
|
+
defaultValue_one: "{{count}} result",
|
|
809
|
+
defaultValue_other: "{{count}} results",
|
|
810
|
+
});
|
|
811
|
+
const handleViewChange = (view: string) => {
|
|
812
|
+
if (view !== "list") navigator.navigate(paths.view(doctype, view as BackofficeView));
|
|
813
|
+
};
|
|
814
|
+
// Nothing to switch to (capability/allowlist narrowed to list or off).
|
|
815
|
+
const showViewSwitcher = views.length > 1;
|
|
816
|
+
|
|
817
|
+
return (
|
|
818
|
+
<YStack flex={1} gap={compactChrome ? "$2" : "$3"} padding={compactChrome ? "$3" : "$4"}>
|
|
819
|
+
{compactChrome ? (
|
|
820
|
+
// Compact chrome (< 640): one title row (title + live count inline,
|
|
821
|
+
// icon refresh, compact New), then one row with the view switcher
|
|
822
|
+
// (horizontally scrollable — all views stay reachable) and the
|
|
823
|
+
// single Filter affordance (filters/sort collapse into its sheet).
|
|
824
|
+
<PageHeader
|
|
825
|
+
heading={
|
|
826
|
+
<XStack gap="$2" alignItems="baseline" flexWrap="wrap">
|
|
827
|
+
<H1 size="$7" margin={0} flexShrink={1} minWidth={0}>
|
|
828
|
+
{doctype}
|
|
829
|
+
</H1>
|
|
830
|
+
{countText ? (
|
|
831
|
+
<Paragraph size="$2" color="$color10" margin={0}>
|
|
832
|
+
{countText}
|
|
833
|
+
</Paragraph>
|
|
834
|
+
) : null}
|
|
835
|
+
</XStack>
|
|
836
|
+
}
|
|
837
|
+
actions={
|
|
838
|
+
<XStack gap="$2" alignItems="center">
|
|
839
|
+
{/* House Button: icon slot (LC-53) + the sub-44 circular size
|
|
840
|
+
resolves the press floor through the house channel (LC-54). */}
|
|
841
|
+
<ActionButton
|
|
842
|
+
size="$3"
|
|
843
|
+
circular
|
|
844
|
+
chromeless
|
|
845
|
+
icon={ArrowsClockwiseIcon}
|
|
846
|
+
onPress={handleRefresh}
|
|
847
|
+
aria-label={t("list.refresh", "Refresh")}
|
|
848
|
+
/>
|
|
849
|
+
{showNew && (
|
|
850
|
+
<ActionButton
|
|
851
|
+
size="$3"
|
|
852
|
+
accent
|
|
853
|
+
icon={PlusIcon}
|
|
854
|
+
onPress={() => setQuickEntryOpen(true)}
|
|
855
|
+
aria-label={t("list.new", {
|
|
856
|
+
defaultValue: "New {{doctype}}",
|
|
857
|
+
doctype,
|
|
858
|
+
})}
|
|
859
|
+
>
|
|
860
|
+
{t("list.newShort", "New")}
|
|
861
|
+
</ActionButton>
|
|
862
|
+
)}
|
|
863
|
+
</XStack>
|
|
864
|
+
}
|
|
865
|
+
>
|
|
866
|
+
<XStack gap="$2" alignItems="center">
|
|
867
|
+
<ScrollView
|
|
868
|
+
horizontal
|
|
869
|
+
flexGrow={1}
|
|
870
|
+
flexShrink={1}
|
|
871
|
+
minWidth={0}
|
|
872
|
+
showsHorizontalScrollIndicator={false}
|
|
873
|
+
>
|
|
874
|
+
{showViewSwitcher ? (
|
|
875
|
+
<ViewSwitcher views={views} currentView="list" onViewChange={handleViewChange} />
|
|
876
|
+
) : null}
|
|
877
|
+
</ScrollView>
|
|
878
|
+
<ListFilterBar
|
|
879
|
+
compact
|
|
880
|
+
doctype={doctype}
|
|
881
|
+
meta={meta}
|
|
882
|
+
filters={baseFilters}
|
|
883
|
+
onFiltersChange={handleBaseFiltersChange}
|
|
884
|
+
sortField={sortField}
|
|
885
|
+
sortOrder={sortOrder}
|
|
886
|
+
onSortChange={handleSortChange}
|
|
887
|
+
/>
|
|
888
|
+
</XStack>
|
|
889
|
+
{/* Shared chips readout (MOD-04 honest state): the table's own
|
|
890
|
+
chips row is suppressed with the rest of its filter chrome, so
|
|
891
|
+
compact renders the list-chrome chips here (wide gets them
|
|
892
|
+
inside ListFilterBar). Renders nothing while no filters apply. */}
|
|
893
|
+
<FilterChips
|
|
894
|
+
meta={meta}
|
|
895
|
+
filters={baseFilters}
|
|
896
|
+
onFiltersChange={handleBaseFiltersChange}
|
|
897
|
+
/>
|
|
898
|
+
</PageHeader>
|
|
899
|
+
) : (
|
|
900
|
+
<>
|
|
901
|
+
<PageHeader
|
|
902
|
+
title={doctype}
|
|
903
|
+
// D-11 page-title dial: moderate (32px) — list titles are
|
|
904
|
+
// wayfinding, not display copy (matches WorkspaceScreen).
|
|
905
|
+
titleScale="moderate"
|
|
906
|
+
subtitle={countText}
|
|
907
|
+
actions={
|
|
908
|
+
<XStack gap="$2" alignItems="center" flexWrap="wrap">
|
|
909
|
+
{/* Icon-only refresh (desk parity): a text "Refresh" at the
|
|
910
|
+
switcher's left read as one of its segments — an action
|
|
911
|
+
mixed into a view picker (LC-26). House Button: icon slot
|
|
912
|
+
(LC-53), circular sub-44 press floor via the house
|
|
913
|
+
channel (LC-54). */}
|
|
914
|
+
<ActionButton
|
|
915
|
+
size="$3"
|
|
916
|
+
circular
|
|
917
|
+
chromeless
|
|
918
|
+
icon={ArrowsClockwiseIcon}
|
|
919
|
+
onPress={handleRefresh}
|
|
920
|
+
aria-label={t("list.refresh", "Refresh")}
|
|
921
|
+
/>
|
|
922
|
+
{showViewSwitcher ? (
|
|
923
|
+
<ViewSwitcher views={views} currentView="list" onViewChange={handleViewChange} />
|
|
924
|
+
) : null}
|
|
925
|
+
{showNew && (
|
|
926
|
+
<ActionButton size="$2" accent onPress={() => setQuickEntryOpen(true)}>
|
|
927
|
+
{t("list.new", { defaultValue: "New {{doctype}}", doctype })}
|
|
928
|
+
</ActionButton>
|
|
929
|
+
)}
|
|
930
|
+
</XStack>
|
|
931
|
+
}
|
|
932
|
+
/>
|
|
933
|
+
|
|
934
|
+
{/* flex-start: the toggle rides the filter bar's FIRST control row
|
|
935
|
+
(both 44px) — centering floated it between rows when the bar
|
|
936
|
+
wraps (Axiom 16 row line). */}
|
|
937
|
+
<XStack gap="$2" alignItems="flex-start">
|
|
938
|
+
{!fixtureMode && (
|
|
939
|
+
// Icon-only sidebar toggle: the bare "Hide sidebar" text read
|
|
940
|
+
// as a floating label, not a control, and its 28px box missed
|
|
941
|
+
// the press floor. House Button icon slot (LC-53) + circular
|
|
942
|
+
// sub-44 floor via the house channel (LC-54); aria-expanded
|
|
943
|
+
// carries the region state.
|
|
944
|
+
<ActionButton
|
|
945
|
+
size="$3"
|
|
946
|
+
circular
|
|
947
|
+
chromeless
|
|
948
|
+
icon={SidebarSimpleIcon}
|
|
949
|
+
display="none"
|
|
950
|
+
$sm={{ display: "flex" }}
|
|
951
|
+
onPress={() => setSidebarVisible((visible) => !visible)}
|
|
952
|
+
aria-expanded={sidebarVisible}
|
|
953
|
+
aria-label={
|
|
954
|
+
sidebarVisible
|
|
955
|
+
? t("list.hideSidebar", "Hide sidebar")
|
|
956
|
+
: t("list.showSidebar", "Show sidebar")
|
|
957
|
+
}
|
|
958
|
+
/>
|
|
959
|
+
)}
|
|
960
|
+
<YStack flex={1}>
|
|
961
|
+
<ListFilterBar
|
|
962
|
+
doctype={doctype}
|
|
963
|
+
meta={meta}
|
|
964
|
+
filters={baseFilters}
|
|
965
|
+
onFiltersChange={handleBaseFiltersChange}
|
|
966
|
+
sortField={sortField}
|
|
967
|
+
sortOrder={sortOrder}
|
|
968
|
+
onSortChange={handleSortChange}
|
|
969
|
+
/>
|
|
970
|
+
</YStack>
|
|
971
|
+
</XStack>
|
|
972
|
+
</>
|
|
973
|
+
)}
|
|
974
|
+
|
|
975
|
+
{(() => {
|
|
976
|
+
const listBody = (
|
|
977
|
+
<XStack flex={1} gap="$2" alignItems="stretch">
|
|
978
|
+
{/* Facet sidebar needs bench RPCs (fixture mode hides it) and is
|
|
979
|
+
hidden on narrow viewports (< $sm) like desk. MOD-04 keeps it:
|
|
980
|
+
facet clicks toggle tuples through the same baseFilters
|
|
981
|
+
channel (handleBaseFiltersChange) — counts are informative,
|
|
982
|
+
the chips row is the shared readout. */}
|
|
983
|
+
{sidebarVisible && !fixtureMode && (
|
|
984
|
+
<YStack display="none" $sm={{ display: "flex" }}>
|
|
985
|
+
<ListSidebar
|
|
986
|
+
doctype={doctype}
|
|
987
|
+
meta={meta}
|
|
988
|
+
filters={currentFilters}
|
|
989
|
+
onFiltersChange={handleBaseFiltersChange}
|
|
990
|
+
/>
|
|
991
|
+
</YStack>
|
|
992
|
+
)}
|
|
993
|
+
<YStack flex={1} minWidth={0}>
|
|
994
|
+
{showCreateFirst ? (
|
|
995
|
+
(slots.renderListEmpty?.({ doctype }) ?? (
|
|
996
|
+
<EmptyState
|
|
997
|
+
title={t("list.emptyTitle", {
|
|
998
|
+
defaultValue: "No {{doctype}} yet",
|
|
999
|
+
doctype,
|
|
1000
|
+
})}
|
|
1001
|
+
description={t("list.emptyDescription", {
|
|
1002
|
+
defaultValue: "Create your first {{doctype}} to get started",
|
|
1003
|
+
doctype,
|
|
1004
|
+
})}
|
|
1005
|
+
action={
|
|
1006
|
+
showNew ? (
|
|
1007
|
+
<ActionButton accent onPress={() => setQuickEntryOpen(true)}>
|
|
1008
|
+
{t("list.new", {
|
|
1009
|
+
defaultValue: "New {{doctype}}",
|
|
1010
|
+
doctype,
|
|
1011
|
+
})}
|
|
1012
|
+
</ActionButton>
|
|
1013
|
+
) : undefined
|
|
1014
|
+
}
|
|
1015
|
+
/>
|
|
1016
|
+
))
|
|
1017
|
+
) : (
|
|
1018
|
+
<ListTable
|
|
1019
|
+
key={tableKey}
|
|
1020
|
+
doctype={doctype}
|
|
1021
|
+
columns={columns}
|
|
1022
|
+
fields={fields}
|
|
1023
|
+
serverSide={!fixtureMode}
|
|
1024
|
+
{...(fixtureMode && withFixed(baseFilters).length > 0
|
|
1025
|
+
? { filters: withFixed(baseFilters) }
|
|
1026
|
+
: {})}
|
|
1027
|
+
filterableFields={filterableFields}
|
|
1028
|
+
initialState={{
|
|
1029
|
+
sorting: [{ id: sortField, desc: sortOrder === "desc" }],
|
|
1030
|
+
filters: initialTableFilters,
|
|
1031
|
+
pagination: { pageIndex: 0, pageSize: pageSizeRef.current },
|
|
1032
|
+
}}
|
|
1033
|
+
enablePagination
|
|
1034
|
+
renderPagination={(paginationProps) => (
|
|
1035
|
+
<DataTablePagination
|
|
1036
|
+
{...paginationProps}
|
|
1037
|
+
pageSizeOptions={[...PAGE_SIZES]}
|
|
1038
|
+
compact
|
|
1039
|
+
/>
|
|
1040
|
+
)}
|
|
1041
|
+
// ONE FILTER SYSTEM (MOD-04 / LC-16): the list chrome is
|
|
1042
|
+
// the single filtering authority; tuples reach the table
|
|
1043
|
+
// only through initialState.filters (remount via tableKey).
|
|
1044
|
+
// enableFiltering={false} suppresses every in-table filter
|
|
1045
|
+
// entry point (toolbar Filter button, column funnels, chips
|
|
1046
|
+
// row, card Add Filter) and detaches the search clear-X
|
|
1047
|
+
// from the injected filters — the table contributes search
|
|
1048
|
+
// + header sort only, mirrored back via onStateChange.
|
|
1049
|
+
enableFiltering={false}
|
|
1050
|
+
enableSorting
|
|
1051
|
+
enableRowSelection={bulkActionsEnabled}
|
|
1052
|
+
{...(bulkActionsEnabled ? { bulkActions } : {})}
|
|
1053
|
+
onRowClick={handleRowClick}
|
|
1054
|
+
onStateChange={handleStateChange}
|
|
1055
|
+
/>
|
|
1056
|
+
)}
|
|
1057
|
+
</YStack>
|
|
1058
|
+
</XStack>
|
|
1059
|
+
);
|
|
1060
|
+
// Native has no page-level scroll and the table body ships none —
|
|
1061
|
+
// wrap in a vertical ScrollView (DocFormScreen precedent) so rows
|
|
1062
|
+
// below the fold stay reachable. Compact web is in the same boat:
|
|
1063
|
+
// the card list renders in flow inside the shell's overflow-hidden
|
|
1064
|
+
// frame, so it needs the same scroll wrapper (the compact header
|
|
1065
|
+
// stays pinned above it). Wide web keeps the flex layout as-is —
|
|
1066
|
+
// the grid body scrolls internally.
|
|
1067
|
+
return isWeb && !compactChrome ? listBody : <ScrollView flex={1}>{listBody}</ScrollView>;
|
|
1068
|
+
})()}
|
|
1069
|
+
|
|
1070
|
+
{showNew && (
|
|
1071
|
+
<QuickEntryDialog
|
|
1072
|
+
doctype={doctype}
|
|
1073
|
+
open={quickEntryOpen}
|
|
1074
|
+
onOpenChange={setQuickEntryOpen}
|
|
1075
|
+
onCreated={(name) => {
|
|
1076
|
+
emitEvent({ type: "doc-opened", doctype, name });
|
|
1077
|
+
navigator.navigate(paths.form(doctype, name));
|
|
1078
|
+
}}
|
|
1079
|
+
onEditFullForm={() => navigator.navigate(paths.newDoc(doctype))}
|
|
1080
|
+
/>
|
|
1081
|
+
)}
|
|
1082
|
+
<AssignToDialog
|
|
1083
|
+
doctype={doctype}
|
|
1084
|
+
names={pendingDialog?.type === "assign" ? pendingDialog.names : []}
|
|
1085
|
+
open={pendingDialog?.type === "assign"}
|
|
1086
|
+
onOpenChange={(open) => {
|
|
1087
|
+
if (!open) setPendingDialog(null);
|
|
1088
|
+
}}
|
|
1089
|
+
onDone={() => {
|
|
1090
|
+
pendingDialog?.clear();
|
|
1091
|
+
count.refresh();
|
|
1092
|
+
}}
|
|
1093
|
+
/>
|
|
1094
|
+
<AddTagsDialog
|
|
1095
|
+
doctype={doctype}
|
|
1096
|
+
names={pendingDialog?.type === "tag" ? pendingDialog.names : []}
|
|
1097
|
+
open={pendingDialog?.type === "tag"}
|
|
1098
|
+
onOpenChange={(open) => {
|
|
1099
|
+
if (!open) setPendingDialog(null);
|
|
1100
|
+
}}
|
|
1101
|
+
onDone={() => {
|
|
1102
|
+
pendingDialog?.clear();
|
|
1103
|
+
count.refresh();
|
|
1104
|
+
}}
|
|
1105
|
+
/>
|
|
1106
|
+
<BulkEditDialog
|
|
1107
|
+
doctype={doctype}
|
|
1108
|
+
meta={meta}
|
|
1109
|
+
names={pendingDialog?.type === "edit" ? pendingDialog.names : []}
|
|
1110
|
+
open={pendingDialog?.type === "edit"}
|
|
1111
|
+
onOpenChange={(open) => {
|
|
1112
|
+
if (!open) setPendingDialog(null);
|
|
1113
|
+
}}
|
|
1114
|
+
onDone={() => {
|
|
1115
|
+
pendingDialog?.clear();
|
|
1116
|
+
count.refresh();
|
|
1117
|
+
}}
|
|
1118
|
+
/>
|
|
1119
|
+
</YStack>
|
|
1120
|
+
);
|
|
1121
|
+
}
|