@multiplatform.one/backoffice 6.4.3 → 6.7.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 +13 -13
- 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,297 @@
|
|
|
1
|
+
// Meta-driven column builder for the doctype list view (desk parity):
|
|
2
|
+
// liked heart, bolded title (title_field), in_list_view fields with
|
|
3
|
+
// fieldtype-aware cells (status pills, dates, checks, numerics), subdued
|
|
4
|
+
// ID, and a relative "Last Updated On" column.
|
|
5
|
+
import { Text, XStack } from "@multiplatform.one/components";
|
|
6
|
+
// House control for the like toggle — the icon rides the Button icon slot
|
|
7
|
+
// (LC-53 GLYPH-SLOT) and the sub-44 circular size resolves the press floor
|
|
8
|
+
// through the house channel (LC-54: 44px box + hitSlop).
|
|
9
|
+
import { Button } from "@multiplatform.one/forms";
|
|
10
|
+
import { HeartIcon } from "@phosphor-icons/react";
|
|
11
|
+
import type { DataTableColumn } from "@multiplatform.one/table";
|
|
12
|
+
import type { PermLevelMatrix } from "../form/fieldPermissions";
|
|
13
|
+
import type { DocFieldMeta, DoctypeMeta } from "../shared/useDoctypeMeta";
|
|
14
|
+
// Field selection + permlevel pruning live in the pure listFields module
|
|
15
|
+
// (node-safe, unit-tested in listFields.spec.ts).
|
|
16
|
+
import { listViewFields } from "./listFields";
|
|
17
|
+
import { formatDateCell, formatTimeAgo, parseUserListField, stripHtmlPreview } from "./listFormat";
|
|
18
|
+
import { statusPillColors } from "./statusColors";
|
|
19
|
+
|
|
20
|
+
/** Minimal row shape for a doctype list (loose — server owns the schema). */
|
|
21
|
+
export interface ListDoc {
|
|
22
|
+
name: string;
|
|
23
|
+
doctype: string;
|
|
24
|
+
[key: string]: unknown;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type ListRow = Partial<ListDoc>;
|
|
28
|
+
|
|
29
|
+
type Translate = (key: string, fallback: string) => string;
|
|
30
|
+
|
|
31
|
+
export interface BuildListColumnsArgs {
|
|
32
|
+
meta?: DoctypeMeta;
|
|
33
|
+
t: Translate;
|
|
34
|
+
/** Session user — hearts fill when `_liked_by` contains them. */
|
|
35
|
+
sessionUser?: string;
|
|
36
|
+
/** Toggle like for a document (omit to render hearts read-only). */
|
|
37
|
+
onToggleLike?: (name: string, nextLiked: boolean) => void;
|
|
38
|
+
/** Optimistic like overrides keyed by document name. */
|
|
39
|
+
likeOverrides?: Record<string, boolean>;
|
|
40
|
+
/**
|
|
41
|
+
* Permlevel role matrix (session roles × meta.permissions, built with
|
|
42
|
+
* `buildPermLevelMatrix`). Columns for fields the roles cannot READ at
|
|
43
|
+
* their permlevel are pruned — desk parity with base_list.js
|
|
44
|
+
* `get_fields_in_list_view` (`frappe.perm.has_perm(doctype, df.permlevel,
|
|
45
|
+
* "read")`). Undefined (fixtures / roles unavailable) prunes nothing —
|
|
46
|
+
* the server strips no-read values either way.
|
|
47
|
+
*/
|
|
48
|
+
permMatrix?: PermLevelMatrix;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const NUMERIC_FIELDTYPES = new Set(["Currency", "Float", "Int", "Percent", "Duration"]);
|
|
52
|
+
|
|
53
|
+
// Fieldtypes whose stored value is markup — list cells render a stripped
|
|
54
|
+
// one-line plain-text preview (desk strip_html parity), never raw HTML.
|
|
55
|
+
const RICH_TEXT_FIELDTYPES = new Set([
|
|
56
|
+
"Text Editor",
|
|
57
|
+
"HTML Editor",
|
|
58
|
+
"HTML",
|
|
59
|
+
"Markdown Editor",
|
|
60
|
+
"Long Text",
|
|
61
|
+
"Text",
|
|
62
|
+
"Small Text",
|
|
63
|
+
]);
|
|
64
|
+
|
|
65
|
+
/** Cell-safe one-line preview: rich fieldtypes stripped, newlines collapsed. */
|
|
66
|
+
function cellPreview(value: string, fieldtype?: string): string {
|
|
67
|
+
const text = fieldtype && RICH_TEXT_FIELDTYPES.has(fieldtype) ? stripHtmlPreview(value) : value;
|
|
68
|
+
return text.replace(/\s+/g, " ").trim();
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function isStatusField(field: DocFieldMeta, meta?: DoctypeMeta): boolean {
|
|
72
|
+
if (field.fieldname === "status") return true;
|
|
73
|
+
if (field.fieldtype !== "Select") return false;
|
|
74
|
+
const stateTitles = new Set(
|
|
75
|
+
(meta?.states ?? []).map((state) => (state.title ?? "").trim().toLowerCase()),
|
|
76
|
+
);
|
|
77
|
+
if (stateTitles.size === 0) return false;
|
|
78
|
+
const options = (field.options ?? "").split("\n").map((option) => option.trim().toLowerCase());
|
|
79
|
+
return options.some((option) => option && stateTitles.has(option));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function StatusPill({ value, meta }: { value: string; meta?: DoctypeMeta }) {
|
|
83
|
+
const colors = statusPillColors(value, meta);
|
|
84
|
+
return (
|
|
85
|
+
<XStack
|
|
86
|
+
alignSelf="flex-start"
|
|
87
|
+
backgroundColor={colors.background as "$color3"}
|
|
88
|
+
borderRadius={999}
|
|
89
|
+
paddingHorizontal="$2.5"
|
|
90
|
+
paddingVertical="$1"
|
|
91
|
+
>
|
|
92
|
+
<Text color={colors.text as "$color11"} fontSize="$2" fontWeight="600">
|
|
93
|
+
{value}
|
|
94
|
+
</Text>
|
|
95
|
+
</XStack>
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
function fieldCell(field: DocFieldMeta, meta: DoctypeMeta | undefined) {
|
|
100
|
+
return ({ getValue }: { getValue: () => unknown }) => {
|
|
101
|
+
const raw = getValue();
|
|
102
|
+
if (raw === null || raw === undefined || raw === "")
|
|
103
|
+
return (
|
|
104
|
+
<Text fontSize="$3" color="$color8">
|
|
105
|
+
—
|
|
106
|
+
</Text>
|
|
107
|
+
);
|
|
108
|
+
const value = String(raw);
|
|
109
|
+
if (isStatusField(field, meta)) return <StatusPill value={value} meta={meta} />;
|
|
110
|
+
switch (field.fieldtype) {
|
|
111
|
+
case "Check":
|
|
112
|
+
return (
|
|
113
|
+
<Text fontSize="$3" color={raw ? "$green11" : "$color8"}>
|
|
114
|
+
{raw ? "✓" : "—"}
|
|
115
|
+
</Text>
|
|
116
|
+
);
|
|
117
|
+
case "Date":
|
|
118
|
+
case "Datetime":
|
|
119
|
+
return (
|
|
120
|
+
<Text fontSize="$3" color="$color11">
|
|
121
|
+
{formatDateCell(value)}
|
|
122
|
+
</Text>
|
|
123
|
+
);
|
|
124
|
+
case "Currency":
|
|
125
|
+
case "Float":
|
|
126
|
+
case "Int":
|
|
127
|
+
case "Percent":
|
|
128
|
+
return (
|
|
129
|
+
<Text fontSize="$3" color="$color12" textAlign="right">
|
|
130
|
+
{value}
|
|
131
|
+
</Text>
|
|
132
|
+
);
|
|
133
|
+
case "Link":
|
|
134
|
+
return (
|
|
135
|
+
<Text fontSize="$3" color="$color11" numberOfLines={1} flexShrink={1} minWidth={0}>
|
|
136
|
+
{value}
|
|
137
|
+
</Text>
|
|
138
|
+
);
|
|
139
|
+
default:
|
|
140
|
+
// One-line plain-text preview (rich markup stripped) that SHRINKS
|
|
141
|
+
// inside the cell (flexShrink + minWidth 0) so numberOfLines can
|
|
142
|
+
// ellipsize instead of painting under the neighbor column
|
|
143
|
+
// (LC-06/LC-10; cell-containment rule candidate, audit pair 16).
|
|
144
|
+
return (
|
|
145
|
+
<Text fontSize="$3" color="$color11" numberOfLines={1} flexShrink={1} minWidth={0}>
|
|
146
|
+
{cellPreview(value, field.fieldtype)}
|
|
147
|
+
</Text>
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/** Build the DataTable columns for a doctype list from its meta. */
|
|
154
|
+
export function buildListColumns({
|
|
155
|
+
meta,
|
|
156
|
+
t,
|
|
157
|
+
sessionUser,
|
|
158
|
+
onToggleLike,
|
|
159
|
+
likeOverrides,
|
|
160
|
+
permMatrix,
|
|
161
|
+
}: BuildListColumnsArgs): DataTableColumn<ListRow>[] {
|
|
162
|
+
const titleField = meta?.title_field || "name";
|
|
163
|
+
const columns: DataTableColumn<ListRow>[] = [];
|
|
164
|
+
|
|
165
|
+
// Liked hearts (desk `_liked_by` column). Press toggles; navigation is
|
|
166
|
+
// stopped so the row click underneath does not fire.
|
|
167
|
+
columns.push({
|
|
168
|
+
id: "_liked_by",
|
|
169
|
+
// Glyph header with a spoken name — a bare "♥" string gives the column
|
|
170
|
+
// an unpronounceable accessible name. Presentational glyph + aria-label.
|
|
171
|
+
header: () => (
|
|
172
|
+
<Text role="img" aria-label={t("list.likedColumn", "Liked")} color="$color9" fontSize="$4">
|
|
173
|
+
♥
|
|
174
|
+
</Text>
|
|
175
|
+
),
|
|
176
|
+
accessorKey: "_liked_by",
|
|
177
|
+
sortable: false,
|
|
178
|
+
filterable: false,
|
|
179
|
+
width: 56,
|
|
180
|
+
maxWidth: 64,
|
|
181
|
+
align: "center",
|
|
182
|
+
cell: ({ row }) => {
|
|
183
|
+
const doc = row.original;
|
|
184
|
+
const name = doc.name ?? "";
|
|
185
|
+
const likedBy = parseUserListField(doc._liked_by);
|
|
186
|
+
const liked = likeOverrides?.[name] ?? (sessionUser ? likedBy.includes(sessionUser) : false);
|
|
187
|
+
const likeLabel = liked
|
|
188
|
+
? t("list.unlike", "Remove from liked")
|
|
189
|
+
: t("list.like", "Add to liked");
|
|
190
|
+
if (!onToggleLike || !name) {
|
|
191
|
+
// Read-only surface (fixtures / no session): presentational glyph.
|
|
192
|
+
return (
|
|
193
|
+
<Text
|
|
194
|
+
fontSize="$4"
|
|
195
|
+
color={liked ? "$red10" : "$color8"}
|
|
196
|
+
role="img"
|
|
197
|
+
aria-label={likeLabel}
|
|
198
|
+
>
|
|
199
|
+
{liked ? "♥" : "♡"}
|
|
200
|
+
</Text>
|
|
201
|
+
);
|
|
202
|
+
}
|
|
203
|
+
return (
|
|
204
|
+
<Button
|
|
205
|
+
circular
|
|
206
|
+
chromeless
|
|
207
|
+
size="$2"
|
|
208
|
+
// LC-53 GLYPH-SLOT: glyph rides the icon slot; the slot themes the
|
|
209
|
+
// clone from the control's color (`col` shorthand).
|
|
210
|
+
col={(liked ? "$red10" : "$color8") as never}
|
|
211
|
+
icon={<HeartIcon size={16} weight={liked ? "fill" : "regular"} />}
|
|
212
|
+
aria-label={likeLabel}
|
|
213
|
+
aria-pressed={liked}
|
|
214
|
+
onPress={(event) => {
|
|
215
|
+
event?.stopPropagation?.();
|
|
216
|
+
onToggleLike(name, !liked);
|
|
217
|
+
}}
|
|
218
|
+
/>
|
|
219
|
+
);
|
|
220
|
+
},
|
|
221
|
+
});
|
|
222
|
+
|
|
223
|
+
// Title column: title_field bolded (desk subject).
|
|
224
|
+
const titleMeta = meta?.fields?.find((field) => field.fieldname === titleField);
|
|
225
|
+
columns.push({
|
|
226
|
+
id: titleField,
|
|
227
|
+
header:
|
|
228
|
+
titleField === "name"
|
|
229
|
+
? t("list.idColumn", "ID")
|
|
230
|
+
: titleMeta?.label || t("list.titleColumn", "Title"),
|
|
231
|
+
accessorKey: titleField,
|
|
232
|
+
minWidth: 180,
|
|
233
|
+
cell: ({ row, getValue }) => {
|
|
234
|
+
const raw = getValue();
|
|
235
|
+
const value =
|
|
236
|
+
raw === null || raw === undefined || raw === "" ? (row.original.name ?? "") : String(raw);
|
|
237
|
+
// Same containment contract as fieldCell: stripped preview + a
|
|
238
|
+
// shrinkable text box so the one-line clamp ellipsizes in-column.
|
|
239
|
+
return (
|
|
240
|
+
<Text
|
|
241
|
+
fontSize="$3"
|
|
242
|
+
fontWeight="600"
|
|
243
|
+
color="$color12"
|
|
244
|
+
numberOfLines={1}
|
|
245
|
+
flexShrink={1}
|
|
246
|
+
minWidth={0}
|
|
247
|
+
>
|
|
248
|
+
{cellPreview(value, titleMeta?.fieldtype)}
|
|
249
|
+
</Text>
|
|
250
|
+
);
|
|
251
|
+
},
|
|
252
|
+
});
|
|
253
|
+
|
|
254
|
+
// in_list_view fields from meta (permlevel-pruned).
|
|
255
|
+
for (const field of listViewFields(meta, titleField, permMatrix)) {
|
|
256
|
+
columns.push({
|
|
257
|
+
id: field.fieldname,
|
|
258
|
+
header: field.label || field.fieldname,
|
|
259
|
+
accessorKey: field.fieldname,
|
|
260
|
+
...(NUMERIC_FIELDTYPES.has(field.fieldtype) ? { align: "right" as const } : {}),
|
|
261
|
+
cell: fieldCell(field, meta),
|
|
262
|
+
});
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
// Subdued ID column when the title field is something else.
|
|
266
|
+
if (titleField !== "name") {
|
|
267
|
+
columns.push({
|
|
268
|
+
id: "name",
|
|
269
|
+
header: t("list.idColumn", "ID"),
|
|
270
|
+
accessorKey: "name",
|
|
271
|
+
maxWidth: 160,
|
|
272
|
+
cell: ({ getValue }) => (
|
|
273
|
+
<Text fontSize="$2" color="$color9" numberOfLines={1}>
|
|
274
|
+
{String(getValue() ?? "")}
|
|
275
|
+
</Text>
|
|
276
|
+
),
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
// Desk "Last Updated On".
|
|
281
|
+
columns.push({
|
|
282
|
+
id: "modified",
|
|
283
|
+
header: t("list.lastUpdated", "Last Updated On"),
|
|
284
|
+
accessorKey: "modified",
|
|
285
|
+
maxWidth: 140,
|
|
286
|
+
cell: ({ getValue }) => {
|
|
287
|
+
const raw = getValue();
|
|
288
|
+
return (
|
|
289
|
+
<Text fontSize="$2" color="$color9">
|
|
290
|
+
{raw ? formatTimeAgo(String(raw)) : ""}
|
|
291
|
+
</Text>
|
|
292
|
+
);
|
|
293
|
+
},
|
|
294
|
+
});
|
|
295
|
+
|
|
296
|
+
return columns;
|
|
297
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* listFields — permlevel column pruning (desk parity with base_list.js
|
|
3
|
+
* `get_fields_in_list_view`: in_list_view fields above the session roles'
|
|
4
|
+
* READ permlevel never render as columns). The matrix itself is the form
|
|
5
|
+
* workstream's fieldPermissions module (perm.js parity) — reused, not forked.
|
|
6
|
+
* buildListColumns maps listViewFields 1:1 into column defs, so pruning is
|
|
7
|
+
* asserted here on the pure module (the features vitest node environment
|
|
8
|
+
* cannot import the JSX/components barrel — see vitest.config.mjs).
|
|
9
|
+
*/
|
|
10
|
+
import { describe, expect, it } from "vitest";
|
|
11
|
+
import { buildPermLevelMatrix, type PermLevelMatrix } from "../form/fieldPermissions";
|
|
12
|
+
import type { DoctypeMeta } from "../shared/useDoctypeMeta";
|
|
13
|
+
import { listFieldsToFetch, listViewFields } from "./listFields";
|
|
14
|
+
|
|
15
|
+
const meta: DoctypeMeta = {
|
|
16
|
+
name: "User",
|
|
17
|
+
title_field: "full_name",
|
|
18
|
+
fields: [
|
|
19
|
+
{ fieldname: "full_name", fieldtype: "Data", label: "Full Name", in_list_view: 1 },
|
|
20
|
+
{ fieldname: "enabled", fieldtype: "Check", label: "Enabled", in_list_view: 1 },
|
|
21
|
+
{
|
|
22
|
+
fieldname: "role_profile_name",
|
|
23
|
+
fieldtype: "Link",
|
|
24
|
+
label: "Role Profile",
|
|
25
|
+
in_list_view: 1,
|
|
26
|
+
permlevel: 1,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
fieldname: "api_secret_hint",
|
|
30
|
+
fieldtype: "Data",
|
|
31
|
+
label: "API Secret Hint",
|
|
32
|
+
in_list_view: 1,
|
|
33
|
+
permlevel: 2,
|
|
34
|
+
},
|
|
35
|
+
{ fieldname: "bio", fieldtype: "Small Text", label: "Bio" },
|
|
36
|
+
],
|
|
37
|
+
permissions: [
|
|
38
|
+
{ role: "System Manager", permlevel: 0, read: 1, write: 1 },
|
|
39
|
+
{ role: "System Manager", permlevel: 1, read: 1, write: 1 },
|
|
40
|
+
// No rows at permlevel 2 — desk gap-fills {} and hides those fields.
|
|
41
|
+
],
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
function viewFieldnames(matrix?: PermLevelMatrix): string[] {
|
|
45
|
+
return listViewFields(meta, meta.title_field ?? "name", matrix).map((field) => field.fieldname);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
describe("listViewFields permlevel pruning", () => {
|
|
49
|
+
it("without a matrix (fixtures / roles unavailable) prunes nothing", () => {
|
|
50
|
+
const names = viewFieldnames(undefined);
|
|
51
|
+
expect(names).toContain("enabled");
|
|
52
|
+
expect(names).toContain("role_profile_name");
|
|
53
|
+
expect(names).toContain("api_secret_hint");
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
it("keeps fields whose permlevel the roles can read, prunes the rest", () => {
|
|
57
|
+
const matrix = buildPermLevelMatrix(meta.permissions, ["System Manager"]);
|
|
58
|
+
const names = viewFieldnames(matrix);
|
|
59
|
+
expect(names).toContain("enabled"); // level 0
|
|
60
|
+
expect(names).toContain("role_profile_name"); // level 1 granted
|
|
61
|
+
// Level 2 has no granting rows at all → hidden (desk gap-fill).
|
|
62
|
+
expect(names).not.toContain("api_secret_hint");
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
it("prunes every above-zero level for roles with no granting rows", () => {
|
|
66
|
+
const matrix = buildPermLevelMatrix(meta.permissions, ["Desk User"]);
|
|
67
|
+
const names = viewFieldnames(matrix);
|
|
68
|
+
expect(names).toContain("enabled");
|
|
69
|
+
expect(names).not.toContain("role_profile_name");
|
|
70
|
+
expect(names).not.toContain("api_secret_hint");
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
it("excludes the title field regardless of the matrix (title column owns it)", () => {
|
|
74
|
+
expect(viewFieldnames(undefined)).not.toContain("full_name");
|
|
75
|
+
const matrix = buildPermLevelMatrix(meta.permissions, ["Desk User"]);
|
|
76
|
+
expect(viewFieldnames(matrix)).not.toContain("full_name");
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
it("never includes fields that are not in_list_view", () => {
|
|
80
|
+
expect(viewFieldnames(undefined)).not.toContain("bio");
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
describe("listFieldsToFetch permlevel pruning", () => {
|
|
85
|
+
it("skips unreadable in_list_view fields but keeps bookkeeping fields", () => {
|
|
86
|
+
const matrix = buildPermLevelMatrix(meta.permissions, ["Desk User"]);
|
|
87
|
+
const fields = listFieldsToFetch(meta, matrix);
|
|
88
|
+
expect(fields).toEqual(expect.arrayContaining(["name", "modified", "full_name", "enabled"]));
|
|
89
|
+
expect(fields).not.toContain("role_profile_name");
|
|
90
|
+
expect(fields).not.toContain("api_secret_hint");
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
it("fetches everything in_list_view when no matrix is available", () => {
|
|
94
|
+
const fields = listFieldsToFetch(meta, undefined);
|
|
95
|
+
expect(fields).toContain("role_profile_name");
|
|
96
|
+
expect(fields).toContain("api_secret_hint");
|
|
97
|
+
});
|
|
98
|
+
});
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// Pure (node-safe, no UI imports) field selection for the doctype list:
|
|
2
|
+
// which fields to fetch and which in_list_view fields render as columns.
|
|
3
|
+
// Kept out of listColumns.tsx so the pruning logic is unit-testable under
|
|
4
|
+
// the features vitest node environment (specs here never import the
|
|
5
|
+
// components barrel — see vitest.config.mjs).
|
|
6
|
+
//
|
|
7
|
+
// Permlevel pruning reuses the form workstream's UI-free role-matrix module
|
|
8
|
+
// (desk perm.js parity) rather than forking it (schema conformance §10
|
|
9
|
+
// handoff).
|
|
10
|
+
import { canReadLevel, type PermLevelMatrix } from "../form/fieldPermissions";
|
|
11
|
+
import type { DocFieldMeta, DoctypeMeta } from "../shared/useDoctypeMeta";
|
|
12
|
+
|
|
13
|
+
/** Read access for a field's permlevel (level 0 / no matrix always read). */
|
|
14
|
+
function fieldLevelReadable(field: DocFieldMeta, permMatrix?: PermLevelMatrix): boolean {
|
|
15
|
+
return canReadLevel(permMatrix, Number(field.permlevel ?? 0) || 0);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/** Fields the list view fetches for a doctype (columns + niceties). */
|
|
19
|
+
export function listFieldsToFetch(meta?: DoctypeMeta, permMatrix?: PermLevelMatrix): string[] {
|
|
20
|
+
const fields = new Set<string>([
|
|
21
|
+
"name",
|
|
22
|
+
"modified",
|
|
23
|
+
"owner",
|
|
24
|
+
"_liked_by",
|
|
25
|
+
"_assign",
|
|
26
|
+
"_user_tags",
|
|
27
|
+
]);
|
|
28
|
+
if (meta?.title_field) fields.add(meta.title_field);
|
|
29
|
+
for (const field of meta?.fields ?? []) {
|
|
30
|
+
if (field.in_list_view && field.fieldname && fieldLevelReadable(field, permMatrix)) {
|
|
31
|
+
fields.add(field.fieldname);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return [...fields];
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* The in_list_view fields to render as columns (title field excluded).
|
|
39
|
+
* Desk parity: fields above the session's read permlevel never render as
|
|
40
|
+
* list columns (base_list.js `get_fields_in_list_view` →
|
|
41
|
+
* `frappe.perm.has_perm(doctype, df.permlevel, "read")`). An undefined
|
|
42
|
+
* matrix (fixtures / roles unavailable) prunes nothing — the server strips
|
|
43
|
+
* no-read values either way.
|
|
44
|
+
*/
|
|
45
|
+
export function listViewFields(
|
|
46
|
+
meta: DoctypeMeta | undefined,
|
|
47
|
+
titleField: string,
|
|
48
|
+
permMatrix?: PermLevelMatrix,
|
|
49
|
+
): DocFieldMeta[] {
|
|
50
|
+
return (meta?.fields ?? []).filter(
|
|
51
|
+
(field) =>
|
|
52
|
+
Boolean(field.in_list_view) &&
|
|
53
|
+
field.fieldname !== titleField &&
|
|
54
|
+
field.fieldtype !== "Image" &&
|
|
55
|
+
field.fieldtype !== "Attach Image" &&
|
|
56
|
+
fieldLevelReadable(field, permMatrix),
|
|
57
|
+
);
|
|
58
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* listFormat — frappe datetime parsing and desk-style list-cell display
|
|
3
|
+
* helpers. Time-ago fixtures anchor `now` to the parsed date itself so the
|
|
4
|
+
* assertions are timezone-independent.
|
|
5
|
+
*/
|
|
6
|
+
import { describe, expect, it } from "vitest";
|
|
7
|
+
import {
|
|
8
|
+
formatDateCell,
|
|
9
|
+
formatTimeAgo,
|
|
10
|
+
parseFrappeDate,
|
|
11
|
+
parseTagsField,
|
|
12
|
+
parseUserListField,
|
|
13
|
+
stripHtmlPreview,
|
|
14
|
+
} from "./listFormat";
|
|
15
|
+
|
|
16
|
+
describe("parseFrappeDate", () => {
|
|
17
|
+
it("parses frappe datetime strings (space-separated, microseconds)", () => {
|
|
18
|
+
const date = parseFrappeDate("2026-08-12 08:50:24.691936");
|
|
19
|
+
expect(date).toBeInstanceOf(Date);
|
|
20
|
+
expect(date?.getFullYear()).toBe(2026);
|
|
21
|
+
expect(date?.getMonth()).toBe(7); // August
|
|
22
|
+
expect(date?.getDate()).toBe(12);
|
|
23
|
+
expect(date?.getHours()).toBe(8);
|
|
24
|
+
expect(date?.getMinutes()).toBe(50);
|
|
25
|
+
expect(date?.getSeconds()).toBe(24);
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
it("parses plain dates", () => {
|
|
29
|
+
const date = parseFrappeDate("2026-08-12");
|
|
30
|
+
expect(date).toBeInstanceOf(Date);
|
|
31
|
+
expect(Number.isNaN(date?.getTime())).toBe(false);
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
it("returns undefined for invalid input", () => {
|
|
35
|
+
expect(parseFrappeDate("not a date")).toBeUndefined();
|
|
36
|
+
expect(parseFrappeDate("")).toBeUndefined();
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
describe("formatDateCell (LC-12 compact-absolute display register)", () => {
|
|
41
|
+
// Anchor `now` inside the stamp's year so current-year elision is stable.
|
|
42
|
+
const now = parseFrappeDate("2026-01-01 00:00:00") as Date;
|
|
43
|
+
|
|
44
|
+
it("renders the house compact-absolute register, never raw ISO", () => {
|
|
45
|
+
expect(formatDateCell("2026-08-12 08:50:24", now)).toBe("Aug 12");
|
|
46
|
+
expect(formatDateCell("2026-08-12 08:50:24.691936", now)).toBe("Aug 12");
|
|
47
|
+
expect(formatDateCell("2026-08-12", now)).toBe("Aug 12");
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
it("keeps the year when not current (display register year:auto)", () => {
|
|
51
|
+
expect(formatDateCell("2025-07-01", now)).toBe("Jul 1, 2025");
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
it("passes unparseable input through unchanged (honest passthrough)", () => {
|
|
55
|
+
expect(formatDateCell("garbage", now)).toBe("garbage");
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
describe("formatTimeAgo (LC-12 relative register)", () => {
|
|
60
|
+
const stamp = "2026-08-12 08:00:00";
|
|
61
|
+
const base = parseFrappeDate(stamp) as Date;
|
|
62
|
+
const after = (ms: number) => new Date(base.getTime() + ms);
|
|
63
|
+
const MINUTE = 60_000;
|
|
64
|
+
const HOUR = 60 * MINUTE;
|
|
65
|
+
const DAY = 24 * HOUR;
|
|
66
|
+
|
|
67
|
+
it("speaks the house relative register — one voice, unambiguous units", () => {
|
|
68
|
+
expect(formatTimeAgo(stamp, after(0))).toBe("just now");
|
|
69
|
+
expect(formatTimeAgo(stamp, after(59_000))).toBe("just now");
|
|
70
|
+
expect(formatTimeAgo(stamp, after(MINUTE))).toBe("1m ago");
|
|
71
|
+
expect(formatTimeAgo(stamp, after(59 * MINUTE))).toBe("59m ago");
|
|
72
|
+
expect(formatTimeAgo(stamp, after(HOUR))).toBe("1h ago");
|
|
73
|
+
expect(formatTimeAgo(stamp, after(23 * HOUR + 59 * MINUTE))).toBe("23h ago");
|
|
74
|
+
expect(formatTimeAgo(stamp, after(DAY))).toBe("1 day ago");
|
|
75
|
+
expect(formatTimeAgo(stamp, after(29 * DAY))).toBe("29 days ago");
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
it("months use 'mo', never an ambiguous capital M", () => {
|
|
79
|
+
expect(formatTimeAgo(stamp, after(31 * DAY))).toBe("1mo ago");
|
|
80
|
+
expect(formatTimeAgo(stamp, after(330 * DAY))).toBe("11mo ago");
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
it("shows years beyond ~12 months", () => {
|
|
84
|
+
expect(formatTimeAgo(stamp, after(366 * DAY))).toBe("1y ago");
|
|
85
|
+
expect(formatTimeAgo(stamp, after(2 * 366 * DAY))).toBe("2y ago");
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
it("returns the raw value when unparseable", () => {
|
|
89
|
+
expect(formatTimeAgo("garbage", new Date())).toBe("garbage");
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
it("treats future timestamps as just now (clamped, never negative)", () => {
|
|
93
|
+
expect(formatTimeAgo(stamp, after(-5 * HOUR))).toBe("just now");
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
describe("parseUserListField (_assign / _liked_by JSON-array-string columns)", () => {
|
|
98
|
+
it("parses the bench shape: a JSON array string", () => {
|
|
99
|
+
expect(parseUserListField('["admin@example.com", "test@example.com"]')).toEqual([
|
|
100
|
+
"admin@example.com",
|
|
101
|
+
"test@example.com",
|
|
102
|
+
]);
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
it("passes real arrays through, stringifying members", () => {
|
|
106
|
+
expect(parseUserListField(["a@b.c", 42])).toEqual(["a@b.c", "42"]);
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
it("returns [] for empty, malformed, or non-array JSON", () => {
|
|
110
|
+
expect(parseUserListField("")).toEqual([]);
|
|
111
|
+
expect(parseUserListField(null)).toEqual([]);
|
|
112
|
+
expect(parseUserListField(undefined)).toEqual([]);
|
|
113
|
+
expect(parseUserListField("not json")).toEqual([]);
|
|
114
|
+
expect(parseUserListField('{"a":1}')).toEqual([]);
|
|
115
|
+
expect(parseUserListField(42)).toEqual([]);
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
describe("stripHtmlPreview (rich-text cell previews, desk strip_html parity)", () => {
|
|
120
|
+
it("strips Text Editor markup down to its text", () => {
|
|
121
|
+
expect(stripHtmlPreview('<div class="ql-editor read-mode"><p>Call the vendor</p></div>')).toBe(
|
|
122
|
+
"Call the vendor",
|
|
123
|
+
);
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
it("collapses tags and entities into single spaces", () => {
|
|
127
|
+
expect(stripHtmlPreview("<p>a</p><p>b c</p>")).toBe("a b c");
|
|
128
|
+
expect(stripHtmlPreview("x & y <z>")).toBe("x & y <z>");
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
it("passes plain text through untouched (fast path)", () => {
|
|
132
|
+
expect(stripHtmlPreview("plain description")).toBe("plain description");
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
describe("parseTagsField (_user_tags comma-joined column)", () => {
|
|
137
|
+
it("parses the bench shape: leading-comma joined tags", () => {
|
|
138
|
+
expect(parseTagsField(",Urgent,Follow Up")).toEqual(["Urgent", "Follow Up"]);
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
it("trims whitespace and drops empty segments", () => {
|
|
142
|
+
expect(parseTagsField(" , a , ,b, ")).toEqual(["a", "b"]);
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
it("returns [] for empty or non-string values", () => {
|
|
146
|
+
expect(parseTagsField("")).toEqual([]);
|
|
147
|
+
expect(parseTagsField(null)).toEqual([]);
|
|
148
|
+
expect(parseTagsField(undefined)).toEqual([]);
|
|
149
|
+
expect(parseTagsField(["a"])).toEqual([]);
|
|
150
|
+
});
|
|
151
|
+
});
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// Cross-platform display helpers for list cells — frappe datetimes like
|
|
2
|
+
// "2026-08-12 08:50:24.691936". Formatting routes through the house date
|
|
3
|
+
// channel (LC-12 DATA-REGISTER-CHANNEL): one formatter owns each register,
|
|
4
|
+
// this module only parses the frappe wire format and picks the register.
|
|
5
|
+
import { formatAbsoluteDate, formatRelativeTimestamp } from "@multiplatform.one/theme";
|
|
6
|
+
|
|
7
|
+
/** Parse a frappe date/datetime string into a Date (undefined when invalid). */
|
|
8
|
+
export function parseFrappeDate(value: string): Date | undefined {
|
|
9
|
+
// "YYYY-MM-DD HH:mm:ss.SSSSSS" → ISO-ish so JSC/Hermes parse it too.
|
|
10
|
+
const isoish = value.includes(" ") ? value.replace(" ", "T") : value;
|
|
11
|
+
const date = new Date(isoish);
|
|
12
|
+
return Number.isNaN(date.getTime()) ? undefined : date;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Table date cell — the house compact-absolute display register
|
|
17
|
+
* ("Aug 12" / "Jul 1, 2025", current year elided). Raw ISO wire format
|
|
18
|
+
* never reaches the cell (LC-12); unparseable input passes through.
|
|
19
|
+
* The STRING (not a parsed Date) rides into the channel so its date-only
|
|
20
|
+
* UTC branch engages — a parsed "YYYY-MM-DD" would shift a day in
|
|
21
|
+
* negative-offset timezones.
|
|
22
|
+
*/
|
|
23
|
+
export function formatDateCell(value: string, now?: Date): string {
|
|
24
|
+
if (!parseFrappeDate(value)) return value;
|
|
25
|
+
const isoish = value.includes(" ") ? value.replace(" ", "T") : value;
|
|
26
|
+
return formatAbsoluteDate(isoish, now ? { now } : undefined);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Recency column ("Last Updated On") — the house relative register
|
|
31
|
+
* ("just now", "5m ago", "2h ago", "2mo ago"). One voice, unambiguous
|
|
32
|
+
* units (LC-12); unparseable input passes through.
|
|
33
|
+
*/
|
|
34
|
+
export function formatTimeAgo(value: string, now: Date = new Date()): string {
|
|
35
|
+
const date = parseFrappeDate(value);
|
|
36
|
+
if (!date) return value;
|
|
37
|
+
return formatRelativeTimestamp(date, now.getTime());
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Plain-text preview of rich/HTML field content for list cells (desk
|
|
42
|
+
* `strip_html` parity): tags dropped, entities collapsed, whitespace
|
|
43
|
+
* normalized. A Text Editor value like `<div class="ql-editor"><p>Call the
|
|
44
|
+
* vendor</p></div>` renders as "Call the vendor" — markup never paints in
|
|
45
|
+
* a one-line cell (LC-06/LC-10 containment; cell-containment rule candidate).
|
|
46
|
+
*/
|
|
47
|
+
export function stripHtmlPreview(value: string): string {
|
|
48
|
+
if (!value.includes("<") && !value.includes("&")) return value;
|
|
49
|
+
return value
|
|
50
|
+
.replace(/<[^>]*>/g, " ")
|
|
51
|
+
.replace(/ /gi, " ")
|
|
52
|
+
.replace(/&/gi, "&")
|
|
53
|
+
.replace(/</gi, "<")
|
|
54
|
+
.replace(/>/gi, ">")
|
|
55
|
+
.replace(/'|'/gi, "'")
|
|
56
|
+
.replace(/"/gi, '"')
|
|
57
|
+
.replace(/\s+/g, " ")
|
|
58
|
+
.trim();
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/** Parse frappe's `_assign` / `_liked_by` JSON-array-string columns. */
|
|
62
|
+
export function parseUserListField(value: unknown): string[] {
|
|
63
|
+
if (Array.isArray(value)) return value.map(String);
|
|
64
|
+
if (typeof value !== "string" || !value) return [];
|
|
65
|
+
try {
|
|
66
|
+
const parsed = JSON.parse(value);
|
|
67
|
+
return Array.isArray(parsed) ? parsed.map(String) : [];
|
|
68
|
+
} catch {
|
|
69
|
+
return [];
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/** Parse frappe's `_user_tags` comma-joined column (",a,b" → ["a","b"]). */
|
|
74
|
+
export function parseTagsField(value: unknown): string[] {
|
|
75
|
+
if (typeof value !== "string") return [];
|
|
76
|
+
return value
|
|
77
|
+
.split(",")
|
|
78
|
+
.map((tag) => tag.trim())
|
|
79
|
+
.filter(Boolean);
|
|
80
|
+
}
|