@multiplatform.one/backoffice 7.22.0 → 7.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/list/DoctypeListScreen.cjs +4 -42
- package/dist/cjs/list/DoctypeListScreen.native.js +5 -43
- package/dist/cjs/list/DoctypeListScreen.native.js.map +1 -1
- package/dist/cjs/list/filter-chips.cjs +3 -3
- package/dist/cjs/list/filter-chips.native.js +3 -3
- package/dist/cjs/list/filter-chips.native.js.map +1 -1
- package/dist/cjs/list/filter-editor.cjs +10 -11
- package/dist/cjs/list/filter-editor.native.js +10 -11
- package/dist/cjs/list/filter-editor.native.js.map +1 -1
- package/dist/cjs/list/filter-fields.cjs +15 -267
- package/dist/cjs/list/filter-fields.native.js +15 -337
- package/dist/cjs/list/filter-fields.native.js.map +1 -1
- package/dist/cjs/list/filter-standard.cjs +5 -6
- package/dist/cjs/list/filter-standard.native.js +5 -6
- package/dist/cjs/list/filter-standard.native.js.map +1 -1
- package/dist/cjs/list/list-tools-sheet.cjs +2 -2
- package/dist/cjs/list/list-tools-sheet.native.js +2 -2
- package/dist/cjs/list/list-tools-sheet.native.js.map +1 -1
- package/dist/cjs/list/listColumns.cjs +2 -371
- package/dist/cjs/list/listColumns.native.js +2 -418
- package/dist/cjs/list/listColumns.native.js.map +1 -1
- package/dist/cjs/list/listFields.cjs +4 -24
- package/dist/cjs/list/listFields.native.js +4 -50
- package/dist/cjs/list/listFields.native.js.map +1 -1
- package/dist/cjs/list/listFormat.cjs +7 -42
- package/dist/cjs/list/listFormat.native.js +7 -45
- package/dist/cjs/list/listFormat.native.js.map +1 -1
- package/dist/cjs/list/statusColors.cjs +2 -76
- package/dist/cjs/list/statusColors.native.js +2 -80
- package/dist/cjs/list/statusColors.native.js.map +1 -1
- package/dist/cjs/report/queryReportColumns.cjs +2 -2
- package/dist/cjs/report/queryReportColumns.native.js +2 -2
- package/dist/cjs/report/queryReportColumns.native.js.map +1 -1
- package/dist/cjs/report/queryReportFilterBar.cjs +5 -6
- package/dist/cjs/report/queryReportFilterBar.native.js +5 -6
- package/dist/cjs/report/queryReportFilterBar.native.js.map +1 -1
- package/dist/cjs/report/report-grid.cjs +2 -2
- package/dist/cjs/report/report-grid.native.js +2 -2
- package/dist/cjs/report/report-grid.native.js.map +1 -1
- package/dist/cjs/report/report-toolbar.cjs +2 -2
- package/dist/cjs/report/report-toolbar.native.js +2 -2
- package/dist/cjs/report/report-toolbar.native.js.map +1 -1
- package/dist/cjs/report/reportViewModel.cjs +3 -3
- package/dist/cjs/report/reportViewModel.native.js +3 -3
- package/dist/cjs/report/reportViewModel.native.js.map +1 -1
- package/dist/esm/list/DoctypeListScreen.mjs +3 -41
- package/dist/esm/list/DoctypeListScreen.mjs.map +1 -1
- package/dist/esm/list/DoctypeListScreen.native.js +4 -42
- package/dist/esm/list/DoctypeListScreen.native.js.map +1 -1
- package/dist/esm/list/filter-chips.mjs +1 -1
- package/dist/esm/list/filter-chips.native.js +1 -1
- package/dist/esm/list/filter-chips.native.js.map +1 -1
- package/dist/esm/list/filter-editor.mjs +1 -2
- package/dist/esm/list/filter-editor.mjs.map +1 -1
- package/dist/esm/list/filter-editor.native.js +1 -2
- package/dist/esm/list/filter-editor.native.js.map +1 -1
- package/dist/esm/list/filter-fields.mjs +1 -253
- package/dist/esm/list/filter-fields.mjs.map +1 -1
- package/dist/esm/list/filter-fields.native.js +1 -323
- package/dist/esm/list/filter-fields.native.js.map +1 -1
- package/dist/esm/list/filter-standard.mjs +1 -2
- package/dist/esm/list/filter-standard.mjs.map +1 -1
- package/dist/esm/list/filter-standard.native.js +1 -2
- package/dist/esm/list/filter-standard.native.js.map +1 -1
- package/dist/esm/list/list-tools-sheet.mjs +1 -1
- package/dist/esm/list/list-tools-sheet.native.js +1 -1
- package/dist/esm/list/list-tools-sheet.native.js.map +1 -1
- package/dist/esm/list/listColumns.mjs +1 -370
- package/dist/esm/list/listColumns.mjs.map +1 -1
- package/dist/esm/list/listColumns.native.js +1 -417
- package/dist/esm/list/listColumns.native.js.map +1 -1
- package/dist/esm/list/listFields.mjs +1 -21
- package/dist/esm/list/listFields.mjs.map +1 -1
- package/dist/esm/list/listFields.native.js +1 -47
- package/dist/esm/list/listFields.native.js.map +1 -1
- package/dist/esm/list/listFormat.mjs +1 -36
- package/dist/esm/list/listFormat.mjs.map +1 -1
- package/dist/esm/list/listFormat.native.js +1 -39
- package/dist/esm/list/listFormat.native.js.map +1 -1
- package/dist/esm/list/statusColors.mjs +1 -75
- package/dist/esm/list/statusColors.mjs.map +1 -1
- package/dist/esm/list/statusColors.native.js +1 -79
- package/dist/esm/list/statusColors.native.js.map +1 -1
- package/dist/esm/report/queryReportColumns.mjs +1 -1
- package/dist/esm/report/queryReportColumns.native.js +1 -1
- package/dist/esm/report/queryReportColumns.native.js.map +1 -1
- package/dist/esm/report/queryReportFilterBar.mjs +1 -2
- package/dist/esm/report/queryReportFilterBar.mjs.map +1 -1
- package/dist/esm/report/queryReportFilterBar.native.js +1 -2
- package/dist/esm/report/queryReportFilterBar.native.js.map +1 -1
- package/dist/esm/report/report-grid.mjs +1 -1
- package/dist/esm/report/report-grid.native.js +1 -1
- package/dist/esm/report/report-grid.native.js.map +1 -1
- package/dist/esm/report/report-toolbar.mjs +1 -1
- package/dist/esm/report/report-toolbar.native.js +1 -1
- package/dist/esm/report/report-toolbar.native.js.map +1 -1
- package/dist/esm/report/reportViewModel.mjs +1 -1
- package/dist/esm/report/reportViewModel.mjs.map +1 -1
- package/dist/esm/report/reportViewModel.native.js +1 -1
- package/dist/esm/report/reportViewModel.native.js.map +1 -1
- package/dist/jsx/chrome/BackofficeAwesomebar.native.js +1 -1
- package/dist/jsx/chrome/BackofficeAwesomebar.native.js.map +1 -1
- package/dist/jsx/chrome/CommandPalette.native.js +1 -1
- package/dist/jsx/chrome/CommandPalette.native.js.map +1 -1
- package/dist/jsx/chrome/HelpMenu.native.js +1 -1
- package/dist/jsx/chrome/HelpMenu.native.js.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/chrome/UserMenu.native.js +1 -1
- package/dist/jsx/chrome/UserMenu.native.js.map +1 -1
- package/dist/jsx/chrome/awesomebar-data.native.js.map +1 -1
- package/dist/jsx/chrome/command-palette-model.native.js +1 -1
- package/dist/jsx/chrome/command-palette-model.native.js.map +1 -1
- package/dist/jsx/chrome/help-about-dialog.native.js +1 -1
- package/dist/jsx/chrome/help-about-dialog.native.js.map +1 -1
- package/dist/jsx/chrome/help-shortcuts-dialog.native.js +1 -1
- package/dist/jsx/chrome/help-shortcuts-dialog.native.js.map +1 -1
- package/dist/jsx/chrome/notifications-data.native.js.map +1 -1
- package/dist/jsx/chrome/notifications-panel.native.js +1 -1
- package/dist/jsx/chrome/notifications-panel.native.js.map +1 -1
- package/dist/jsx/chrome/notifications-utils.native.js.map +1 -1
- package/dist/jsx/chrome/shortcuts.native.js.map +1 -1
- package/dist/jsx/chrome/user-session.native.js.map +1 -1
- package/dist/jsx/config/BackofficeProvider.native.js +1 -1
- package/dist/jsx/config/BackofficeProvider.native.js.map +1 -1
- package/dist/jsx/config/capabilities.native.js.map +1 -1
- package/dist/jsx/config/events.native.js.map +1 -1
- package/dist/jsx/config/slots.native.js.map +1 -1
- package/dist/jsx/desk/Desk.native.js.map +1 -1
- package/dist/jsx/desk/DeskSurface.native.js.map +1 -1
- package/dist/jsx/desk/resolveDeskPath.native.js.map +1 -1
- package/dist/jsx/desk/scope.native.js.map +1 -1
- package/dist/jsx/desk/target.native.js.map +1 -1
- package/dist/jsx/form/DocFormScreen.native.js +1 -1
- package/dist/jsx/form/DocFormScreen.native.js.map +1 -1
- package/dist/jsx/form/FormConnections.native.js +1 -1
- package/dist/jsx/form/FormConnections.native.js.map +1 -1
- package/dist/jsx/form/FormDialogs.native.js +1 -1
- package/dist/jsx/form/FormDialogs.native.js.map +1 -1
- package/dist/jsx/form/FormErrorBoundary.native.js +1 -1
- package/dist/jsx/form/FormErrorBoundary.native.js.map +1 -1
- package/dist/jsx/form/FormHeaderCluster.native.js +1 -1
- package/dist/jsx/form/FormHeaderCluster.native.js.map +1 -1
- package/dist/jsx/form/FormSidebarPanel.native.js +1 -1
- package/dist/jsx/form/FormSidebarPanel.native.js.map +1 -1
- package/dist/jsx/form/FormTimeline.native.js +1 -1
- package/dist/jsx/form/FormTimeline.native.js.map +1 -1
- package/dist/jsx/form/FormToolbar.native.js +1 -1
- package/dist/jsx/form/FormToolbar.native.js.map +1 -1
- package/dist/jsx/form/connections-data.native.js.map +1 -1
- package/dist/jsx/form/createPrefill.native.js.map +1 -1
- package/dist/jsx/form/dependsOn.native.js.map +1 -1
- package/dist/jsx/form/dirtyTracking.native.js.map +1 -1
- package/dist/jsx/form/docinfo.native.js.map +1 -1
- package/dist/jsx/form/fetchFrom.native.js.map +1 -1
- package/dist/jsx/form/fieldPermissions.native.js.map +1 -1
- package/dist/jsx/form/formActions.native.js.map +1 -1
- package/dist/jsx/form/formLayout.native.js.map +1 -1
- package/dist/jsx/form/platformHooks.native.js.map +1 -1
- package/dist/jsx/form/sidebar-attachments.native.js +1 -1
- package/dist/jsx/form/sidebar-attachments.native.js.map +1 -1
- package/dist/jsx/form/sidebar-dialogs.native.js +1 -1
- package/dist/jsx/form/sidebar-dialogs.native.js.map +1 -1
- package/dist/jsx/form/sidebar-people.native.js +1 -1
- package/dist/jsx/form/sidebar-people.native.js.map +1 -1
- package/dist/jsx/form/sidebar-rpc.native.js.map +1 -1
- package/dist/jsx/form/sidebar-utils.native.js.map +1 -1
- package/dist/jsx/form/timeline-entries.native.js.map +1 -1
- package/dist/jsx/form/timeline-utils.native.js.map +1 -1
- package/dist/jsx/form/useFormEngine.native.js.map +1 -1
- package/dist/jsx/i18n/en.native.js.map +1 -1
- package/dist/jsx/i18n/index.native.js.map +1 -1
- package/dist/jsx/index.native.js +1 -1
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/list/AddTagsDialog.native.js +1 -1
- package/dist/jsx/list/AddTagsDialog.native.js.map +1 -1
- package/dist/jsx/list/AssignToDialog.native.js +1 -1
- package/dist/jsx/list/AssignToDialog.native.js.map +1 -1
- package/dist/jsx/list/DoctypeListScreen.mjs +3 -41
- package/dist/jsx/list/DoctypeListScreen.mjs.map +1 -1
- package/dist/jsx/list/DoctypeListScreen.native.js +6 -44
- package/dist/jsx/list/DoctypeListScreen.native.js.map +1 -1
- package/dist/jsx/list/ListBulkActionsBar.native.js +1 -1
- package/dist/jsx/list/ListBulkActionsBar.native.js.map +1 -1
- package/dist/jsx/list/ListFilterBar.native.js +1 -1
- package/dist/jsx/list/ListFilterBar.native.js.map +1 -1
- package/dist/jsx/list/ListSidebar.native.js +1 -1
- package/dist/jsx/list/ListSidebar.native.js.map +1 -1
- package/dist/jsx/list/bulk-edit-dialog.native.js +1 -1
- package/dist/jsx/list/bulk-edit-dialog.native.js.map +1 -1
- package/dist/jsx/list/bulk-export.native.js.map +1 -1
- package/dist/jsx/list/bulk-submit-cancel.native.js.map +1 -1
- package/dist/jsx/list/bulkActions.native.js.map +1 -1
- package/dist/jsx/list/filter-chips.mjs +1 -1
- package/dist/jsx/list/filter-chips.native.js +4 -4
- package/dist/jsx/list/filter-chips.native.js.map +1 -1
- package/dist/jsx/list/filter-editor.mjs +1 -2
- package/dist/jsx/list/filter-editor.mjs.map +1 -1
- package/dist/jsx/list/filter-editor.native.js +11 -12
- package/dist/jsx/list/filter-editor.native.js.map +1 -1
- package/dist/jsx/list/filter-fields.mjs +1 -253
- package/dist/jsx/list/filter-fields.mjs.map +1 -1
- package/dist/jsx/list/filter-fields.native.js +15 -337
- package/dist/jsx/list/filter-fields.native.js.map +1 -1
- package/dist/jsx/list/filter-saved.native.js +1 -1
- package/dist/jsx/list/filter-saved.native.js.map +1 -1
- package/dist/jsx/list/filter-sort.native.js +1 -1
- package/dist/jsx/list/filter-sort.native.js.map +1 -1
- package/dist/jsx/list/filter-standard.mjs +1 -2
- package/dist/jsx/list/filter-standard.mjs.map +1 -1
- package/dist/jsx/list/filter-standard.native.js +5 -6
- package/dist/jsx/list/filter-standard.native.js.map +1 -1
- package/dist/jsx/list/filterConversion.native.js.map +1 -1
- package/dist/jsx/list/list-tools-sheet.mjs +1 -1
- package/dist/jsx/list/list-tools-sheet.native.js +3 -3
- package/dist/jsx/list/list-tools-sheet.native.js.map +1 -1
- package/dist/jsx/list/listColumns.mjs +1 -370
- package/dist/jsx/list/listColumns.mjs.map +1 -1
- package/dist/jsx/list/listColumns.native.js +2 -418
- package/dist/jsx/list/listColumns.native.js.map +1 -1
- package/dist/jsx/list/listFields.mjs +1 -21
- package/dist/jsx/list/listFields.mjs.map +1 -1
- package/dist/jsx/list/listFields.native.js +4 -50
- package/dist/jsx/list/listFields.native.js.map +1 -1
- package/dist/jsx/list/listFormat.mjs +1 -36
- package/dist/jsx/list/listFormat.mjs.map +1 -1
- package/dist/jsx/list/listFormat.native.js +7 -45
- package/dist/jsx/list/listFormat.native.js.map +1 -1
- package/dist/jsx/list/listUrlState.native.js.map +1 -1
- package/dist/jsx/list/sidebar-section.native.js +1 -1
- package/dist/jsx/list/sidebar-section.native.js.map +1 -1
- package/dist/jsx/list/sidebar-stats.native.js.map +1 -1
- package/dist/jsx/list/statusColors.mjs +1 -75
- package/dist/jsx/list/statusColors.mjs.map +1 -1
- package/dist/jsx/list/statusColors.native.js +2 -80
- package/dist/jsx/list/statusColors.native.js.map +1 -1
- package/dist/jsx/navigation/navigator.native.js.map +1 -1
- package/dist/jsx/navigation/paths.native.js.map +1 -1
- package/dist/jsx/oneAdapter/index.native.js.map +1 -1
- package/dist/jsx/quickEntry/QuickEntryDialog.native.js +1 -1
- package/dist/jsx/quickEntry/QuickEntryDialog.native.js.map +1 -1
- package/dist/jsx/quickEntry/quickEntryPlan.native.js.map +1 -1
- package/dist/jsx/report/DoctypeReportView.native.js +1 -1
- package/dist/jsx/report/DoctypeReportView.native.js.map +1 -1
- package/dist/jsx/report/QueryReportScreen.native.js +1 -1
- package/dist/jsx/report/QueryReportScreen.native.js.map +1 -1
- package/dist/jsx/report/queryReportColumns.mjs +1 -1
- package/dist/jsx/report/queryReportColumns.native.js +2 -2
- package/dist/jsx/report/queryReportColumns.native.js.map +1 -1
- package/dist/jsx/report/queryReportFilterBar.mjs +1 -2
- package/dist/jsx/report/queryReportFilterBar.mjs.map +1 -1
- package/dist/jsx/report/queryReportFilterBar.native.js +6 -7
- package/dist/jsx/report/queryReportFilterBar.native.js.map +1 -1
- package/dist/jsx/report/queryReportUrlState.native.js.map +1 -1
- package/dist/jsx/report/report-grid.mjs +1 -1
- package/dist/jsx/report/report-grid.native.js +3 -3
- package/dist/jsx/report/report-grid.native.js.map +1 -1
- package/dist/jsx/report/report-toolbar.mjs +1 -1
- package/dist/jsx/report/report-toolbar.native.js +3 -3
- package/dist/jsx/report/report-toolbar.native.js.map +1 -1
- package/dist/jsx/report/reportShapes.native.js.map +1 -1
- package/dist/jsx/report/reportViewModel.mjs +1 -1
- package/dist/jsx/report/reportViewModel.mjs.map +1 -1
- package/dist/jsx/report/reportViewModel.native.js +3 -3
- package/dist/jsx/report/reportViewModel.native.js.map +1 -1
- package/dist/jsx/report/savedReports.native.js.map +1 -1
- package/dist/jsx/report/useQueryReport.native.js.map +1 -1
- package/dist/jsx/shared/deskLinks.native.js.map +1 -1
- package/dist/jsx/shared/listNavContext.native.js.map +1 -1
- package/dist/jsx/shared/types.native.js.map +1 -1
- package/dist/jsx/shared/useDocinfo.native.js.map +1 -1
- package/dist/jsx/shared/useDoctypeMeta.native.js.map +1 -1
- package/dist/jsx/shared/useFrappeApp.native.js.map +1 -1
- package/dist/jsx/shared/useRecentVisit.native.js.map +1 -1
- package/dist/jsx/shared/useSessionUserId.native.js.map +1 -1
- package/dist/jsx/shared/useSlugTarget.native.js.map +1 -1
- package/dist/jsx/shared/useUserRoles.native.js.map +1 -1
- package/dist/jsx/shell/BackofficeShell.native.js +1 -1
- package/dist/jsx/shell/BackofficeShell.native.js.map +1 -1
- package/dist/jsx/shell/HomeRedirect.native.js +1 -1
- package/dist/jsx/shell/HomeRedirect.native.js.map +1 -1
- package/dist/jsx/shell/NotFoundScreen.native.js +1 -1
- package/dist/jsx/shell/NotFoundScreen.native.js.map +1 -1
- package/dist/jsx/shell/SlugScreen.native.js +1 -1
- package/dist/jsx/shell/SlugScreen.native.js.map +1 -1
- package/dist/jsx/shell/WorkspaceSidebar.native.js +1 -1
- package/dist/jsx/shell/WorkspaceSidebar.native.js.map +1 -1
- package/dist/jsx/shell/useWorkspaces.native.js.map +1 -1
- package/dist/jsx/shell/workspaceIcons.native.js.map +1 -1
- package/dist/jsx/views/CalendarView.native.js +1 -1
- package/dist/jsx/views/CalendarView.native.js.map +1 -1
- package/dist/jsx/views/DashboardView.native.js +1 -1
- package/dist/jsx/views/DashboardView.native.js.map +1 -1
- package/dist/jsx/views/DoctypeViewScreen.native.js.map +1 -1
- package/dist/jsx/views/ImageView.native.js +1 -1
- package/dist/jsx/views/ImageView.native.js.map +1 -1
- package/dist/jsx/views/KanbanView.native.js +1 -1
- package/dist/jsx/views/KanbanView.native.js.map +1 -1
- package/dist/jsx/views/ReportView.native.js +1 -1
- package/dist/jsx/views/ReportView.native.js.map +1 -1
- package/dist/jsx/views/TreeView.native.js +1 -1
- package/dist/jsx/views/TreeView.native.js.map +1 -1
- package/dist/jsx/views/ViewHeader.native.js +1 -1
- package/dist/jsx/views/ViewHeader.native.js.map +1 -1
- package/dist/jsx/views/ViewStates.native.js +1 -1
- package/dist/jsx/views/ViewStates.native.js.map +1 -1
- package/dist/jsx/views/ViewSwitcherMenu.native.js +1 -1
- package/dist/jsx/views/ViewSwitcherMenu.native.js.map +1 -1
- package/dist/jsx/views/calendar-field-selector.native.js +1 -1
- package/dist/jsx/views/calendar-field-selector.native.js.map +1 -1
- package/dist/jsx/views/connection.native.js.map +1 -1
- package/dist/jsx/views/dashboard-data.native.js.map +1 -1
- package/dist/jsx/views/deskViewConfigs.native.js.map +1 -1
- package/dist/jsx/views/kanban-board-controls.native.js +1 -1
- package/dist/jsx/views/kanban-board-controls.native.js.map +1 -1
- package/dist/jsx/views/kanban-field-picker.native.js +1 -1
- package/dist/jsx/views/kanban-field-picker.native.js.map +1 -1
- package/dist/jsx/views/kanbanBoardOps.native.js.map +1 -1
- package/dist/jsx/views/report-controls.native.js +1 -1
- package/dist/jsx/views/report-controls.native.js.map +1 -1
- package/dist/jsx/views/viewAvailability.native.js.map +1 -1
- package/dist/jsx/views/viewMeta.native.js.map +1 -1
- package/dist/jsx/workspace/WorkspaceChartBlock.native.js +1 -1
- package/dist/jsx/workspace/WorkspaceChartBlock.native.js.map +1 -1
- package/dist/jsx/workspace/WorkspaceGrid.native.js.map +1 -1
- package/dist/jsx/workspace/WorkspaceLinkCard.native.js +1 -1
- package/dist/jsx/workspace/WorkspaceLinkCard.native.js.map +1 -1
- package/dist/jsx/workspace/WorkspaceLinkDirectory.native.js +1 -1
- package/dist/jsx/workspace/WorkspaceLinkDirectory.native.js.map +1 -1
- package/dist/jsx/workspace/WorkspaceNumberCard.native.js +1 -1
- package/dist/jsx/workspace/WorkspaceNumberCard.native.js.map +1 -1
- package/dist/jsx/workspace/WorkspaceQuickList.native.js +1 -1
- package/dist/jsx/workspace/WorkspaceQuickList.native.js.map +1 -1
- package/dist/jsx/workspace/WorkspaceRecents.native.js +1 -1
- package/dist/jsx/workspace/WorkspaceRecents.native.js.map +1 -1
- package/dist/jsx/workspace/WorkspaceScreen.native.js +1 -1
- package/dist/jsx/workspace/WorkspaceScreen.native.js.map +1 -1
- package/dist/jsx/workspace/WorkspaceShortcut.native.js +1 -1
- package/dist/jsx/workspace/WorkspaceShortcut.native.js.map +1 -1
- package/dist/jsx/workspace/parseContent.native.js.map +1 -1
- package/dist/jsx/workspace/types.native.js.map +1 -1
- package/dist/jsx/workspace/useDashboardChart.native.js.map +1 -1
- package/dist/jsx/workspace/useWorkspaceDoc.native.js.map +1 -1
- package/package.json +12 -12
- package/src/backofficeScreens.designLaw.spec.ts +1 -3
- package/src/list/DoctypeListScreen.auth.spec.tsx +84 -0
- package/src/list/DoctypeListScreen.tsx +18 -51
- package/src/list/filter-chips.tsx +1 -1
- package/src/list/filter-editor.tsx +2 -2
- package/src/list/filter-fields.tsx +29 -356
- package/src/list/filter-standard.tsx +2 -2
- package/src/list/list-tools-sheet.tsx +1 -1
- package/src/list/listColumns.tsx +11 -488
- package/src/list/listFields.ts +9 -66
- package/src/list/listFormat.ts +12 -77
- package/src/list/listShim.spec.ts +101 -0
- package/src/list/statusColors.ts +7 -92
- package/src/report/queryReportColumns.tsx +1 -1
- package/src/report/queryReportFilterBar.tsx +7 -2
- package/src/report/report-grid.tsx +1 -1
- package/src/report/report-toolbar.tsx +1 -1
- package/src/report/reportViewModel.ts +5 -1
- package/types/list/DoctypeListScreen.d.ts +1 -1
- package/types/list/DoctypeListScreen.d.ts.map +1 -1
- package/types/list/filter-editor.d.ts.map +1 -1
- package/types/list/filter-fields.d.ts +10 -78
- package/types/list/filter-fields.d.ts.map +1 -1
- package/types/list/filter-standard.d.ts.map +1 -1
- package/types/list/listColumns.d.ts +10 -40
- package/types/list/listColumns.d.ts.map +1 -1
- package/types/list/listFields.d.ts +5 -13
- package/types/list/listFields.d.ts.map +1 -1
- package/types/list/listFormat.d.ts +5 -27
- package/types/list/listFormat.d.ts.map +1 -1
- package/types/list/statusColors.d.ts +6 -11
- package/types/list/statusColors.d.ts.map +1 -1
- package/types/report/queryReportFilterBar.d.ts.map +1 -1
- package/types/report/reportViewModel.d.ts +1 -1
- package/types/report/reportViewModel.d.ts.map +1 -1
- package/src/list/filter-fields.spec.ts +0 -29
- package/src/list/listFields.spec.ts +0 -148
- package/src/list/listFormat.spec.ts +0 -151
- package/src/list/statusColors.spec.ts +0 -100
|
@@ -22,376 +22,7 @@ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
|
22
22
|
}), mod);
|
|
23
23
|
var listColumns_exports = {};
|
|
24
24
|
__export(listColumns_exports, {
|
|
25
|
-
buildListColumns: () => buildListColumns
|
|
25
|
+
buildListColumns: () => import_frappe_ui.buildListColumns
|
|
26
26
|
});
|
|
27
27
|
module.exports = __toCommonJS(listColumns_exports);
|
|
28
|
-
var
|
|
29
|
-
var import_forms = require("@multiplatform.one/forms");
|
|
30
|
-
var import_react = require("@phosphor-icons/react");
|
|
31
|
-
var import_theme = require("@multiplatform.one/theme");
|
|
32
|
-
var import_listFields = require("./listFields.cjs");
|
|
33
|
-
var import_listFormat = require("./listFormat.cjs");
|
|
34
|
-
var import_statusColors = require("./statusColors.cjs");
|
|
35
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
|
-
const NUMERIC_FIELDTYPES = /* @__PURE__ */new Set(["Currency", "Float", "Int", "Percent", "Duration"]);
|
|
37
|
-
const RICH_TEXT_FIELDTYPES = /* @__PURE__ */new Set(["Text Editor", "HTML Editor", "HTML", "Markdown Editor", "Long Text", "Text", "Small Text"]);
|
|
38
|
-
function cellPreview(value, fieldtype) {
|
|
39
|
-
const text = fieldtype && RICH_TEXT_FIELDTYPES.has(fieldtype) ? (0, import_listFormat.stripHtmlPreview)(value) : value;
|
|
40
|
-
return text.replace(/\s+/g, " ").trim();
|
|
41
|
-
}
|
|
42
|
-
function isStatusField(field, meta) {
|
|
43
|
-
if (field.fieldname === "status") return true;
|
|
44
|
-
if (field.fieldtype !== "Select") return false;
|
|
45
|
-
const stateTitles = new Set((meta?.states ?? []).map(state => (state.title ?? "").trim().toLowerCase()));
|
|
46
|
-
if (stateTitles.size === 0) return false;
|
|
47
|
-
const options = (field.options ?? "").split("\n").map(option => option.trim().toLowerCase());
|
|
48
|
-
return options.some(option => option && stateTitles.has(option));
|
|
49
|
-
}
|
|
50
|
-
function isIndicatorField(field, meta) {
|
|
51
|
-
if (field.fieldtype === "Select") return true;
|
|
52
|
-
if (field.fieldtype === "Check" && field.fieldname === "enabled") return true;
|
|
53
|
-
return isStatusField(field, meta);
|
|
54
|
-
}
|
|
55
|
-
function stopRowPress(event) {
|
|
56
|
-
event?.stopPropagation?.();
|
|
57
|
-
}
|
|
58
|
-
function chipColorFromStatus(value, meta) {
|
|
59
|
-
const ramp = (0, import_statusColors.statusPillColors)(value, meta).background.replace(/^\$/, "").replace(/\d+$/, "");
|
|
60
|
-
if (ramp === "pink") return "purple";
|
|
61
|
-
if (ramp === "red" || ramp === "green" || ramp === "blue" || ramp === "yellow" || ramp === "orange" || ramp === "purple" || ramp === "gray") {
|
|
62
|
-
return ramp;
|
|
63
|
-
}
|
|
64
|
-
return "gray";
|
|
65
|
-
}
|
|
66
|
-
function IndicatorPill({
|
|
67
|
-
value,
|
|
68
|
-
meta,
|
|
69
|
-
fieldname,
|
|
70
|
-
filterValue,
|
|
71
|
-
onFilterClick
|
|
72
|
-
}) {
|
|
73
|
-
const chipColor = chipColorFromStatus(value, meta);
|
|
74
|
-
const applied = filterValue ?? value;
|
|
75
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.XStack, {
|
|
76
|
-
alignSelf: "flex-start",
|
|
77
|
-
...(onFilterClick ? {
|
|
78
|
-
"data-filter": `${fieldname},=,${applied}`,
|
|
79
|
-
onPress: event => stopRowPress(event)
|
|
80
|
-
} : {}),
|
|
81
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Chip, {
|
|
82
|
-
size: "$2",
|
|
83
|
-
variant: "subtle",
|
|
84
|
-
color: chipColor,
|
|
85
|
-
onPress: onFilterClick ? () => onFilterClick(fieldname, applied) : void 0,
|
|
86
|
-
children: value
|
|
87
|
-
})
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
function FilterableText({
|
|
91
|
-
fieldname,
|
|
92
|
-
value,
|
|
93
|
-
children,
|
|
94
|
-
onFilterClick
|
|
95
|
-
}) {
|
|
96
|
-
if (!onFilterClick) return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
97
|
-
children
|
|
98
|
-
});
|
|
99
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.XStack, {
|
|
100
|
-
role: "button",
|
|
101
|
-
cursor: "pointer",
|
|
102
|
-
minWidth: 0,
|
|
103
|
-
flexShrink: 1,
|
|
104
|
-
onPress: event => {
|
|
105
|
-
stopRowPress(event);
|
|
106
|
-
onFilterClick(fieldname, value);
|
|
107
|
-
},
|
|
108
|
-
hoverStyle: {
|
|
109
|
-
opacity: 0.8
|
|
110
|
-
},
|
|
111
|
-
...{
|
|
112
|
-
"data-filter": `${fieldname},=,${value}`
|
|
113
|
-
},
|
|
114
|
-
children
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
function commentCount(doc) {
|
|
118
|
-
const raw = doc._comment_count;
|
|
119
|
-
if (typeof raw === "number" && Number.isFinite(raw)) return raw;
|
|
120
|
-
if (typeof raw === "string" && raw.trim()) {
|
|
121
|
-
const parsed = Number(raw);
|
|
122
|
-
if (Number.isFinite(parsed)) return parsed;
|
|
123
|
-
}
|
|
124
|
-
const comments = doc._comments;
|
|
125
|
-
if (typeof comments === "string" && comments.trim()) {
|
|
126
|
-
try {
|
|
127
|
-
const parsed = JSON.parse(comments);
|
|
128
|
-
if (Array.isArray(parsed)) return parsed.length;
|
|
129
|
-
} catch {
|
|
130
|
-
return 0;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
return 0;
|
|
134
|
-
}
|
|
135
|
-
function LikeControl({
|
|
136
|
-
doc,
|
|
137
|
-
t,
|
|
138
|
-
sessionUser,
|
|
139
|
-
onToggleLike,
|
|
140
|
-
likeOverrides
|
|
141
|
-
}) {
|
|
142
|
-
const name = doc.name ?? "";
|
|
143
|
-
const likedBy = (0, import_listFormat.parseUserListField)(doc._liked_by);
|
|
144
|
-
const liked = likeOverrides?.[name] ?? (sessionUser ? likedBy.includes(sessionUser) : false);
|
|
145
|
-
const likeLabel = liked ? t("list.unlike", "Remove from liked") : t("list.like", "Add to liked");
|
|
146
|
-
if (!onToggleLike || !name) {
|
|
147
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Text, {
|
|
148
|
-
fontSize: "$4",
|
|
149
|
-
color: liked ? "$red10" : "$color8",
|
|
150
|
-
role: "img",
|
|
151
|
-
"aria-label": likeLabel,
|
|
152
|
-
children: liked ? "\u2665" : "\u2661"
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_forms.Button, {
|
|
156
|
-
circular: true,
|
|
157
|
-
chromeless: true,
|
|
158
|
-
size: "$2",
|
|
159
|
-
col: liked ? "$red10" : "$color8",
|
|
160
|
-
icon: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react.HeartIcon, {
|
|
161
|
-
size: 16,
|
|
162
|
-
weight: liked ? "fill" : "regular"
|
|
163
|
-
}),
|
|
164
|
-
"aria-label": likeLabel,
|
|
165
|
-
"aria-pressed": liked,
|
|
166
|
-
onPress: event => {
|
|
167
|
-
stopRowPress(event);
|
|
168
|
-
onToggleLike(name, !liked);
|
|
169
|
-
}
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
function ActivityCluster({
|
|
173
|
-
doc,
|
|
174
|
-
t,
|
|
175
|
-
sessionUser,
|
|
176
|
-
onToggleLike,
|
|
177
|
-
likeOverrides
|
|
178
|
-
}) {
|
|
179
|
-
const assignees = (0, import_listFormat.parseUserListField)(doc._assign);
|
|
180
|
-
const comments = commentCount(doc);
|
|
181
|
-
const modified = doc.modified ? String(doc.modified) : "";
|
|
182
|
-
const absolute = modified ? (0, import_theme.formatAbsoluteDateTime)(modified) : "";
|
|
183
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_components.XStack, {
|
|
184
|
-
alignItems: "center",
|
|
185
|
-
justifyContent: "flex-end",
|
|
186
|
-
gap: "$2",
|
|
187
|
-
minWidth: 0,
|
|
188
|
-
testID: "list-activity",
|
|
189
|
-
children: [assignees.slice(0, 3).map(user => /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Avatar, {
|
|
190
|
-
name: user,
|
|
191
|
-
size: 20,
|
|
192
|
-
circular: true,
|
|
193
|
-
"aria-label": user
|
|
194
|
-
}, user)), modified ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Text, {
|
|
195
|
-
fontSize: "$2",
|
|
196
|
-
color: "$color9",
|
|
197
|
-
...{
|
|
198
|
-
title: absolute || void 0
|
|
199
|
-
},
|
|
200
|
-
children: (0, import_listFormat.formatTimeAgo)(modified)
|
|
201
|
-
}) : null, /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_components.XStack, {
|
|
202
|
-
alignItems: "center",
|
|
203
|
-
gap: "$1",
|
|
204
|
-
...{
|
|
205
|
-
"aria-label": t("list.comments", "Comments")
|
|
206
|
-
},
|
|
207
|
-
children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react.ChatCircleIcon, {
|
|
208
|
-
size: 14
|
|
209
|
-
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Text, {
|
|
210
|
-
fontSize: "$2",
|
|
211
|
-
color: "$color9",
|
|
212
|
-
children: comments
|
|
213
|
-
})]
|
|
214
|
-
}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(LikeControl, {
|
|
215
|
-
doc,
|
|
216
|
-
t,
|
|
217
|
-
sessionUser,
|
|
218
|
-
onToggleLike,
|
|
219
|
-
likeOverrides
|
|
220
|
-
})]
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
function fieldCell(field, meta, onFilterClick) {
|
|
224
|
-
return ({
|
|
225
|
-
getValue
|
|
226
|
-
}) => {
|
|
227
|
-
const raw = getValue();
|
|
228
|
-
if (raw === null || raw === void 0 || raw === "") return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Text, {
|
|
229
|
-
fontSize: "$3",
|
|
230
|
-
color: "$color8",
|
|
231
|
-
children: "\u2014"
|
|
232
|
-
});
|
|
233
|
-
if (field.fieldtype === "Check" && field.fieldname === "enabled") {
|
|
234
|
-
const on = raw === true || raw === 1 || raw === "1";
|
|
235
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(IndicatorPill, {
|
|
236
|
-
value: on ? "Active" : "Disabled",
|
|
237
|
-
meta,
|
|
238
|
-
fieldname: field.fieldname,
|
|
239
|
-
filterValue: on ? "1" : "0",
|
|
240
|
-
onFilterClick
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
const value = String(raw);
|
|
244
|
-
if (isIndicatorField(field, meta)) {
|
|
245
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(IndicatorPill, {
|
|
246
|
-
value,
|
|
247
|
-
meta,
|
|
248
|
-
fieldname: field.fieldname,
|
|
249
|
-
onFilterClick
|
|
250
|
-
});
|
|
251
|
-
}
|
|
252
|
-
switch (field.fieldtype) {
|
|
253
|
-
case "Check":
|
|
254
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Text, {
|
|
255
|
-
fontSize: "$3",
|
|
256
|
-
color: raw ? "$green11" : "$color8",
|
|
257
|
-
children: raw ? "\u2713" : "\u2014"
|
|
258
|
-
});
|
|
259
|
-
case "Date":
|
|
260
|
-
case "Datetime":
|
|
261
|
-
{
|
|
262
|
-
const display = (0, import_listFormat.formatDateCell)(value);
|
|
263
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(FilterableText, {
|
|
264
|
-
fieldname: field.fieldname,
|
|
265
|
-
value,
|
|
266
|
-
onFilterClick,
|
|
267
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Text, {
|
|
268
|
-
fontSize: "$3",
|
|
269
|
-
color: "$color11",
|
|
270
|
-
children: display
|
|
271
|
-
})
|
|
272
|
-
});
|
|
273
|
-
}
|
|
274
|
-
case "Currency":
|
|
275
|
-
case "Float":
|
|
276
|
-
case "Int":
|
|
277
|
-
case "Percent":
|
|
278
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Text, {
|
|
279
|
-
fontSize: "$3",
|
|
280
|
-
color: "$color12",
|
|
281
|
-
textAlign: "right",
|
|
282
|
-
children: value
|
|
283
|
-
});
|
|
284
|
-
case "Link":
|
|
285
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(FilterableText, {
|
|
286
|
-
fieldname: field.fieldname,
|
|
287
|
-
value,
|
|
288
|
-
onFilterClick,
|
|
289
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Text, {
|
|
290
|
-
fontSize: "$3",
|
|
291
|
-
color: "$color11",
|
|
292
|
-
numberOfLines: 1,
|
|
293
|
-
flexShrink: 1,
|
|
294
|
-
minWidth: 0,
|
|
295
|
-
children: value
|
|
296
|
-
})
|
|
297
|
-
});
|
|
298
|
-
default:
|
|
299
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Text, {
|
|
300
|
-
fontSize: "$3",
|
|
301
|
-
color: "$color11",
|
|
302
|
-
numberOfLines: 1,
|
|
303
|
-
flexShrink: 1,
|
|
304
|
-
minWidth: 0,
|
|
305
|
-
children: cellPreview(value, field.fieldtype)
|
|
306
|
-
});
|
|
307
|
-
}
|
|
308
|
-
};
|
|
309
|
-
}
|
|
310
|
-
function buildListColumns({
|
|
311
|
-
meta,
|
|
312
|
-
t,
|
|
313
|
-
sessionUser,
|
|
314
|
-
onToggleLike,
|
|
315
|
-
likeOverrides,
|
|
316
|
-
permMatrix,
|
|
317
|
-
getDocHref,
|
|
318
|
-
onFilterClick
|
|
319
|
-
}) {
|
|
320
|
-
const titleField = meta?.title_field || "name";
|
|
321
|
-
const columns = [];
|
|
322
|
-
const titleMeta = meta?.fields?.find(field => field.fieldname === titleField);
|
|
323
|
-
columns.push({
|
|
324
|
-
id: titleField,
|
|
325
|
-
header: titleField === "name" ? t("list.idColumn", "ID") : titleMeta?.label || t("list.titleColumn", "Title"),
|
|
326
|
-
accessorKey: titleField,
|
|
327
|
-
minWidth: 180,
|
|
328
|
-
meta: {
|
|
329
|
-
role: "title"
|
|
330
|
-
},
|
|
331
|
-
cell: ({
|
|
332
|
-
row,
|
|
333
|
-
getValue
|
|
334
|
-
}) => {
|
|
335
|
-
const raw = getValue();
|
|
336
|
-
const name = row.original.name ?? "";
|
|
337
|
-
const value = raw === null || raw === void 0 || raw === "" ? name : String(raw);
|
|
338
|
-
const href = name && getDocHref ? getDocHref(name) : void 0;
|
|
339
|
-
const label = cellPreview(value, titleMeta?.fieldtype);
|
|
340
|
-
const subject = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Text, {
|
|
341
|
-
fontSize: "$3",
|
|
342
|
-
fontWeight: "400",
|
|
343
|
-
color: "$color12",
|
|
344
|
-
numberOfLines: 1,
|
|
345
|
-
flexShrink: 1,
|
|
346
|
-
minWidth: 0,
|
|
347
|
-
children: label
|
|
348
|
-
});
|
|
349
|
-
if (!href) return subject;
|
|
350
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_components.Anchor, {
|
|
351
|
-
href,
|
|
352
|
-
textDecorationLine: "none",
|
|
353
|
-
minWidth: 0,
|
|
354
|
-
flexShrink: 1,
|
|
355
|
-
onPress: stopRowPress,
|
|
356
|
-
children: subject
|
|
357
|
-
});
|
|
358
|
-
}
|
|
359
|
-
});
|
|
360
|
-
for (const field of (0, import_listFields.listViewFields)(meta, titleField, permMatrix)) {
|
|
361
|
-
columns.push({
|
|
362
|
-
id: field.fieldname,
|
|
363
|
-
header: field.label || field.fieldname,
|
|
364
|
-
accessorKey: field.fieldname,
|
|
365
|
-
...(NUMERIC_FIELDTYPES.has(field.fieldtype) ? {
|
|
366
|
-
align: "right"
|
|
367
|
-
} : {}),
|
|
368
|
-
cell: fieldCell(field, meta, onFilterClick)
|
|
369
|
-
});
|
|
370
|
-
}
|
|
371
|
-
columns.push({
|
|
372
|
-
id: "_activity",
|
|
373
|
-
header: t("list.activity", "Activity"),
|
|
374
|
-
meta: {
|
|
375
|
-
role: "actions",
|
|
376
|
-
label: t("list.activity", "Activity")
|
|
377
|
-
},
|
|
378
|
-
sortable: false,
|
|
379
|
-
filterable: false,
|
|
380
|
-
cell: ({
|
|
381
|
-
row
|
|
382
|
-
}) => /* @__PURE__ */(0, import_jsx_runtime.jsx)(ActivityCluster, {
|
|
383
|
-
doc: row.original,
|
|
384
|
-
t,
|
|
385
|
-
sessionUser,
|
|
386
|
-
onToggleLike,
|
|
387
|
-
likeOverrides
|
|
388
|
-
})
|
|
389
|
-
});
|
|
390
|
-
columns.push({
|
|
391
|
-
id: "modified",
|
|
392
|
-
accessorKey: "modified",
|
|
393
|
-
header: t("list.lastUpdated", "Last Updated On"),
|
|
394
|
-
enableHiding: true
|
|
395
|
-
});
|
|
396
|
-
return columns;
|
|
397
|
-
}
|
|
28
|
+
var import_frappe_ui = require("@multiplatform.one/frappe-ui");
|