@multiplatform.one/backoffice 7.75.0 → 7.77.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/dist/cjs/chrome/UserMenu.cjs +43 -28
- package/dist/cjs/chrome/UserMenu.native.js +44 -28
- package/dist/cjs/chrome/UserMenu.native.js.map +1 -1
- package/dist/cjs/chrome/awesomebar-data.cjs +79 -33
- package/dist/cjs/chrome/awesomebar-data.native.js +101 -45
- package/dist/cjs/chrome/awesomebar-data.native.js.map +1 -1
- package/dist/cjs/chrome/notifications-panel.cjs +22 -61
- package/dist/cjs/chrome/notifications-panel.native.js +22 -62
- package/dist/cjs/chrome/notifications-panel.native.js.map +1 -1
- package/dist/cjs/config/BackofficeProvider.native.js.map +1 -1
- package/dist/cjs/config/capabilities.cjs +4 -0
- package/dist/cjs/config/capabilities.native.js +4 -0
- package/dist/cjs/config/capabilities.native.js.map +1 -1
- package/dist/cjs/desk/Desk.cjs +6 -1
- package/dist/cjs/desk/Desk.native.js +6 -1
- package/dist/cjs/desk/Desk.native.js.map +1 -1
- package/dist/cjs/desk/DeskSurface.cjs +3 -0
- package/dist/cjs/desk/DeskSurface.native.js +3 -0
- package/dist/cjs/desk/DeskSurface.native.js.map +1 -1
- package/dist/cjs/desk/resolveDeskPath.cjs +5 -0
- package/dist/cjs/desk/resolveDeskPath.native.js +5 -0
- package/dist/cjs/desk/resolveDeskPath.native.js.map +1 -1
- package/dist/cjs/desk/target.cjs +4 -0
- package/dist/cjs/desk/target.native.js +4 -0
- package/dist/cjs/desk/target.native.js.map +1 -1
- package/dist/cjs/form/DocFormScreen.cjs +46 -44
- package/dist/cjs/form/DocFormScreen.native.js +49 -47
- package/dist/cjs/form/DocFormScreen.native.js.map +1 -1
- package/dist/cjs/form/FormConnections.cjs +54 -125
- package/dist/cjs/form/FormConnections.native.js +59 -127
- package/dist/cjs/form/FormConnections.native.js.map +1 -1
- package/dist/cjs/form/FormDialogs.cjs +9 -52
- package/dist/cjs/form/FormDialogs.native.js +7 -49
- package/dist/cjs/form/FormDialogs.native.js.map +1 -1
- package/dist/cjs/form/FormTimeline.cjs +17 -17
- package/dist/cjs/form/FormTimeline.native.js +17 -17
- package/dist/cjs/form/FormTimeline.native.js.map +1 -1
- package/dist/cjs/form/FormToolbar.cjs +76 -82
- package/dist/cjs/form/FormToolbar.native.js +76 -82
- package/dist/cjs/form/FormToolbar.native.js.map +1 -1
- package/dist/cjs/formBuilder/FormBuilderCanvas.cjs +16 -24
- package/dist/cjs/formBuilder/FormBuilderCanvas.native.js +16 -24
- package/dist/cjs/formBuilder/FormBuilderCanvas.native.js.map +1 -1
- package/dist/cjs/i18n/en.cjs +2 -3
- package/dist/cjs/i18n/en.native.js +2 -3
- package/dist/cjs/i18n/en.native.js.map +1 -1
- package/dist/cjs/index.cjs +6 -0
- package/dist/cjs/index.native.js +6 -0
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/list/DoctypeListScreen.cjs +11 -17
- package/dist/cjs/list/DoctypeListScreen.native.js +15 -21
- package/dist/cjs/list/DoctypeListScreen.native.js.map +1 -1
- package/dist/cjs/list/ListBulkActionsBar.cjs +10 -8
- package/dist/cjs/list/ListBulkActionsBar.native.js +10 -8
- package/dist/cjs/list/ListBulkActionsBar.native.js.map +1 -1
- package/dist/cjs/list/filter-editor.cjs +4 -6
- package/dist/cjs/list/filter-editor.native.js +4 -6
- package/dist/cjs/list/filter-editor.native.js.map +1 -1
- package/dist/cjs/list/filter-saved.cjs +4 -4
- package/dist/cjs/list/filter-saved.native.js +4 -4
- package/dist/cjs/list/filter-saved.native.js.map +1 -1
- package/dist/cjs/list/sidebar-section.cjs +11 -67
- package/dist/cjs/list/sidebar-section.native.js +11 -69
- package/dist/cjs/list/sidebar-section.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/quickEntry/QuickEntryDialog.cjs +27 -26
- package/dist/cjs/quickEntry/QuickEntryDialog.native.js +27 -26
- package/dist/cjs/quickEntry/QuickEntryDialog.native.js.map +1 -1
- package/dist/cjs/report/QueryReportScreen.cjs +4 -6
- package/dist/cjs/report/QueryReportScreen.native.js +4 -6
- package/dist/cjs/report/QueryReportScreen.native.js.map +1 -1
- package/dist/cjs/shell/AllDoctypesScreen.cjs +331 -0
- package/dist/cjs/shell/AllDoctypesScreen.native.js +460 -0
- package/dist/cjs/shell/AllDoctypesScreen.native.js.map +1 -0
- package/dist/cjs/shell/BackofficeShell.cjs +22 -62
- package/dist/cjs/shell/BackofficeShell.native.js +22 -63
- package/dist/cjs/shell/BackofficeShell.native.js.map +1 -1
- package/dist/cjs/shell/WorkspaceSidebar.cjs +48 -149
- package/dist/cjs/shell/WorkspaceSidebar.native.js +51 -157
- package/dist/cjs/shell/WorkspaceSidebar.native.js.map +1 -1
- package/dist/cjs/shell/workspaceIcons.cjs +32 -0
- package/dist/cjs/shell/workspaceIcons.native.js +32 -0
- package/dist/cjs/shell/workspaceIcons.native.js.map +1 -1
- package/dist/cjs/views/ViewHeader.cjs +5 -10
- package/dist/cjs/views/ViewHeader.native.js +7 -12
- package/dist/cjs/views/ViewHeader.native.js.map +1 -1
- package/dist/cjs/views/ViewStates.cjs +5 -7
- package/dist/cjs/views/ViewStates.native.js +5 -7
- package/dist/cjs/views/ViewStates.native.js.map +1 -1
- package/dist/cjs/views/kanban-board-controls.cjs +4 -5
- package/dist/cjs/views/kanban-board-controls.native.js +4 -5
- package/dist/cjs/views/kanban-board-controls.native.js.map +1 -1
- package/dist/cjs/workspace/WorkspaceLinkCard.cjs +22 -123
- package/dist/cjs/workspace/WorkspaceLinkCard.native.js +23 -128
- package/dist/cjs/workspace/WorkspaceLinkCard.native.js.map +1 -1
- package/dist/cjs/workspace/WorkspaceLinkDirectory.cjs +0 -6
- package/dist/cjs/workspace/WorkspaceLinkDirectory.native.js +0 -12
- package/dist/cjs/workspace/WorkspaceLinkDirectory.native.js.map +1 -1
- package/dist/cjs/workspace/WorkspaceNumberCard.cjs +23 -41
- package/dist/cjs/workspace/WorkspaceNumberCard.native.js +23 -41
- package/dist/cjs/workspace/WorkspaceNumberCard.native.js.map +1 -1
- package/dist/cjs/workspace/WorkspaceQuickList.cjs +25 -21
- package/dist/cjs/workspace/WorkspaceQuickList.native.js +28 -25
- package/dist/cjs/workspace/WorkspaceQuickList.native.js.map +1 -1
- package/dist/esm/chrome/UserMenu.mjs +33 -18
- package/dist/esm/chrome/UserMenu.mjs.map +1 -1
- package/dist/esm/chrome/UserMenu.native.js +34 -18
- package/dist/esm/chrome/UserMenu.native.js.map +1 -1
- package/dist/esm/chrome/awesomebar-data.mjs +79 -33
- package/dist/esm/chrome/awesomebar-data.mjs.map +1 -1
- package/dist/esm/chrome/awesomebar-data.native.js +101 -45
- package/dist/esm/chrome/awesomebar-data.native.js.map +1 -1
- package/dist/esm/chrome/notifications-panel.mjs +25 -64
- package/dist/esm/chrome/notifications-panel.mjs.map +1 -1
- package/dist/esm/chrome/notifications-panel.native.js +25 -65
- package/dist/esm/chrome/notifications-panel.native.js.map +1 -1
- package/dist/esm/config/BackofficeProvider.mjs.map +1 -1
- package/dist/esm/config/BackofficeProvider.native.js.map +1 -1
- package/dist/esm/config/capabilities.mjs +4 -0
- package/dist/esm/config/capabilities.mjs.map +1 -1
- package/dist/esm/config/capabilities.native.js +4 -0
- package/dist/esm/config/capabilities.native.js.map +1 -1
- package/dist/esm/desk/Desk.mjs +6 -1
- package/dist/esm/desk/Desk.mjs.map +1 -1
- package/dist/esm/desk/Desk.native.js +6 -1
- package/dist/esm/desk/Desk.native.js.map +1 -1
- package/dist/esm/desk/DeskSurface.mjs +3 -0
- package/dist/esm/desk/DeskSurface.mjs.map +1 -1
- package/dist/esm/desk/DeskSurface.native.js +3 -0
- package/dist/esm/desk/DeskSurface.native.js.map +1 -1
- package/dist/esm/desk/resolveDeskPath.mjs +6 -1
- package/dist/esm/desk/resolveDeskPath.mjs.map +1 -1
- package/dist/esm/desk/resolveDeskPath.native.js +6 -1
- package/dist/esm/desk/resolveDeskPath.native.js.map +1 -1
- package/dist/esm/desk/target.mjs +4 -0
- package/dist/esm/desk/target.mjs.map +1 -1
- package/dist/esm/desk/target.native.js +4 -0
- package/dist/esm/desk/target.native.js.map +1 -1
- package/dist/esm/form/DocFormScreen.mjs +19 -17
- package/dist/esm/form/DocFormScreen.mjs.map +1 -1
- package/dist/esm/form/DocFormScreen.native.js +22 -20
- package/dist/esm/form/DocFormScreen.native.js.map +1 -1
- package/dist/esm/form/FormConnections.mjs +56 -127
- package/dist/esm/form/FormConnections.mjs.map +1 -1
- package/dist/esm/form/FormConnections.native.js +61 -129
- package/dist/esm/form/FormConnections.native.js.map +1 -1
- package/dist/esm/form/FormDialogs.mjs +11 -54
- package/dist/esm/form/FormDialogs.mjs.map +1 -1
- package/dist/esm/form/FormDialogs.native.js +9 -51
- package/dist/esm/form/FormDialogs.native.js.map +1 -1
- package/dist/esm/form/FormTimeline.mjs +17 -17
- package/dist/esm/form/FormTimeline.mjs.map +1 -1
- package/dist/esm/form/FormTimeline.native.js +17 -17
- package/dist/esm/form/FormTimeline.native.js.map +1 -1
- package/dist/esm/form/FormToolbar.mjs +77 -83
- package/dist/esm/form/FormToolbar.mjs.map +1 -1
- package/dist/esm/form/FormToolbar.native.js +77 -83
- package/dist/esm/form/FormToolbar.native.js.map +1 -1
- package/dist/esm/formBuilder/FormBuilderCanvas.mjs +19 -27
- package/dist/esm/formBuilder/FormBuilderCanvas.mjs.map +1 -1
- package/dist/esm/formBuilder/FormBuilderCanvas.native.js +19 -27
- package/dist/esm/formBuilder/FormBuilderCanvas.native.js.map +1 -1
- package/dist/esm/i18n/en.mjs +2 -3
- package/dist/esm/i18n/en.mjs.map +1 -1
- package/dist/esm/i18n/en.native.js +2 -3
- package/dist/esm/i18n/en.native.js.map +1 -1
- package/dist/esm/index.mjs +4 -3
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +4 -3
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/list/DoctypeListScreen.mjs +12 -18
- package/dist/esm/list/DoctypeListScreen.mjs.map +1 -1
- package/dist/esm/list/DoctypeListScreen.native.js +16 -22
- package/dist/esm/list/DoctypeListScreen.native.js.map +1 -1
- package/dist/esm/list/ListBulkActionsBar.mjs +11 -9
- package/dist/esm/list/ListBulkActionsBar.mjs.map +1 -1
- package/dist/esm/list/ListBulkActionsBar.native.js +11 -9
- package/dist/esm/list/ListBulkActionsBar.native.js.map +1 -1
- package/dist/esm/list/filter-editor.mjs +5 -7
- package/dist/esm/list/filter-editor.mjs.map +1 -1
- package/dist/esm/list/filter-editor.native.js +5 -7
- package/dist/esm/list/filter-editor.native.js.map +1 -1
- package/dist/esm/list/filter-saved.mjs +6 -6
- package/dist/esm/list/filter-saved.mjs.map +1 -1
- package/dist/esm/list/filter-saved.native.js +6 -6
- package/dist/esm/list/filter-saved.native.js.map +1 -1
- package/dist/esm/list/sidebar-section.mjs +15 -71
- package/dist/esm/list/sidebar-section.mjs.map +1 -1
- package/dist/esm/list/sidebar-section.native.js +13 -71
- package/dist/esm/list/sidebar-section.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/quickEntry/QuickEntryDialog.mjs +10 -9
- package/dist/esm/quickEntry/QuickEntryDialog.mjs.map +1 -1
- package/dist/esm/quickEntry/QuickEntryDialog.native.js +10 -9
- package/dist/esm/quickEntry/QuickEntryDialog.native.js.map +1 -1
- package/dist/esm/report/QueryReportScreen.mjs +5 -7
- package/dist/esm/report/QueryReportScreen.mjs.map +1 -1
- package/dist/esm/report/QueryReportScreen.native.js +5 -7
- package/dist/esm/report/QueryReportScreen.native.js.map +1 -1
- package/dist/esm/shell/AllDoctypesScreen.mjs +304 -0
- package/dist/esm/shell/AllDoctypesScreen.mjs.map +1 -0
- package/dist/esm/shell/AllDoctypesScreen.native.js +430 -0
- package/dist/esm/shell/AllDoctypesScreen.native.js.map +1 -0
- package/dist/esm/shell/BackofficeShell.mjs +25 -65
- package/dist/esm/shell/BackofficeShell.mjs.map +1 -1
- package/dist/esm/shell/BackofficeShell.native.js +25 -66
- package/dist/esm/shell/BackofficeShell.native.js.map +1 -1
- package/dist/esm/shell/WorkspaceSidebar.mjs +50 -151
- package/dist/esm/shell/WorkspaceSidebar.mjs.map +1 -1
- package/dist/esm/shell/WorkspaceSidebar.native.js +53 -159
- package/dist/esm/shell/WorkspaceSidebar.native.js.map +1 -1
- package/dist/esm/shell/workspaceIcons.mjs +33 -2
- package/dist/esm/shell/workspaceIcons.mjs.map +1 -1
- package/dist/esm/shell/workspaceIcons.native.js +33 -2
- package/dist/esm/shell/workspaceIcons.native.js.map +1 -1
- package/dist/esm/views/ViewHeader.mjs +7 -12
- package/dist/esm/views/ViewHeader.mjs.map +1 -1
- package/dist/esm/views/ViewHeader.native.js +9 -14
- package/dist/esm/views/ViewHeader.native.js.map +1 -1
- package/dist/esm/views/ViewStates.mjs +6 -8
- package/dist/esm/views/ViewStates.mjs.map +1 -1
- package/dist/esm/views/ViewStates.native.js +6 -8
- package/dist/esm/views/ViewStates.native.js.map +1 -1
- package/dist/esm/views/kanban-board-controls.mjs +6 -7
- package/dist/esm/views/kanban-board-controls.mjs.map +1 -1
- package/dist/esm/views/kanban-board-controls.native.js +6 -7
- package/dist/esm/views/kanban-board-controls.native.js.map +1 -1
- package/dist/esm/workspace/WorkspaceLinkCard.mjs +24 -125
- package/dist/esm/workspace/WorkspaceLinkCard.mjs.map +1 -1
- package/dist/esm/workspace/WorkspaceLinkCard.native.js +25 -130
- package/dist/esm/workspace/WorkspaceLinkCard.native.js.map +1 -1
- package/dist/esm/workspace/WorkspaceLinkDirectory.mjs +0 -6
- package/dist/esm/workspace/WorkspaceLinkDirectory.mjs.map +1 -1
- package/dist/esm/workspace/WorkspaceLinkDirectory.native.js +0 -12
- package/dist/esm/workspace/WorkspaceLinkDirectory.native.js.map +1 -1
- package/dist/esm/workspace/WorkspaceNumberCard.mjs +24 -42
- package/dist/esm/workspace/WorkspaceNumberCard.mjs.map +1 -1
- package/dist/esm/workspace/WorkspaceNumberCard.native.js +24 -42
- package/dist/esm/workspace/WorkspaceNumberCard.native.js.map +1 -1
- package/dist/esm/workspace/WorkspaceQuickList.mjs +24 -20
- package/dist/esm/workspace/WorkspaceQuickList.mjs.map +1 -1
- package/dist/esm/workspace/WorkspaceQuickList.native.js +27 -24
- package/dist/esm/workspace/WorkspaceQuickList.native.js.map +1 -1
- package/dist/jsx/chrome/UserMenu.mjs +33 -18
- package/dist/jsx/chrome/UserMenu.mjs.map +1 -1
- package/dist/jsx/chrome/UserMenu.native.js +44 -28
- package/dist/jsx/chrome/UserMenu.native.js.map +1 -1
- package/dist/jsx/chrome/awesomebar-data.mjs +79 -33
- package/dist/jsx/chrome/awesomebar-data.mjs.map +1 -1
- package/dist/jsx/chrome/awesomebar-data.native.js +101 -45
- package/dist/jsx/chrome/awesomebar-data.native.js.map +1 -1
- package/dist/jsx/chrome/notifications-panel.mjs +25 -64
- package/dist/jsx/chrome/notifications-panel.mjs.map +1 -1
- package/dist/jsx/chrome/notifications-panel.native.js +22 -62
- package/dist/jsx/chrome/notifications-panel.native.js.map +1 -1
- package/dist/jsx/config/BackofficeProvider.mjs.map +1 -1
- package/dist/jsx/config/BackofficeProvider.native.js.map +1 -1
- package/dist/jsx/config/capabilities.mjs +4 -0
- package/dist/jsx/config/capabilities.mjs.map +1 -1
- package/dist/jsx/config/capabilities.native.js +4 -0
- package/dist/jsx/config/capabilities.native.js.map +1 -1
- package/dist/jsx/desk/Desk.mjs +6 -1
- package/dist/jsx/desk/Desk.mjs.map +1 -1
- package/dist/jsx/desk/Desk.native.js +6 -1
- package/dist/jsx/desk/Desk.native.js.map +1 -1
- package/dist/jsx/desk/DeskSurface.mjs +3 -0
- package/dist/jsx/desk/DeskSurface.mjs.map +1 -1
- package/dist/jsx/desk/DeskSurface.native.js +3 -0
- package/dist/jsx/desk/DeskSurface.native.js.map +1 -1
- package/dist/jsx/desk/resolveDeskPath.mjs +6 -1
- package/dist/jsx/desk/resolveDeskPath.mjs.map +1 -1
- package/dist/jsx/desk/resolveDeskPath.native.js +5 -0
- package/dist/jsx/desk/resolveDeskPath.native.js.map +1 -1
- package/dist/jsx/desk/target.mjs +4 -0
- package/dist/jsx/desk/target.mjs.map +1 -1
- package/dist/jsx/desk/target.native.js +4 -0
- package/dist/jsx/desk/target.native.js.map +1 -1
- package/dist/jsx/form/DocFormScreen.mjs +19 -17
- package/dist/jsx/form/DocFormScreen.mjs.map +1 -1
- package/dist/jsx/form/DocFormScreen.native.js +49 -47
- package/dist/jsx/form/DocFormScreen.native.js.map +1 -1
- package/dist/jsx/form/FormConnections.mjs +56 -127
- package/dist/jsx/form/FormConnections.mjs.map +1 -1
- package/dist/jsx/form/FormConnections.native.js +59 -127
- package/dist/jsx/form/FormConnections.native.js.map +1 -1
- package/dist/jsx/form/FormDialogs.mjs +11 -54
- package/dist/jsx/form/FormDialogs.mjs.map +1 -1
- package/dist/jsx/form/FormDialogs.native.js +7 -49
- package/dist/jsx/form/FormDialogs.native.js.map +1 -1
- package/dist/jsx/form/FormTimeline.mjs +17 -17
- package/dist/jsx/form/FormTimeline.mjs.map +1 -1
- package/dist/jsx/form/FormTimeline.native.js +17 -17
- package/dist/jsx/form/FormTimeline.native.js.map +1 -1
- package/dist/jsx/form/FormToolbar.mjs +77 -83
- package/dist/jsx/form/FormToolbar.mjs.map +1 -1
- package/dist/jsx/form/FormToolbar.native.js +76 -82
- package/dist/jsx/form/FormToolbar.native.js.map +1 -1
- package/dist/jsx/formBuilder/FormBuilderCanvas.mjs +19 -27
- package/dist/jsx/formBuilder/FormBuilderCanvas.mjs.map +1 -1
- package/dist/jsx/formBuilder/FormBuilderCanvas.native.js +16 -24
- package/dist/jsx/formBuilder/FormBuilderCanvas.native.js.map +1 -1
- package/dist/jsx/i18n/en.mjs +2 -3
- package/dist/jsx/i18n/en.mjs.map +1 -1
- package/dist/jsx/i18n/en.native.js +2 -3
- package/dist/jsx/i18n/en.native.js.map +1 -1
- package/dist/jsx/index.js +4 -3
- package/dist/jsx/index.js.map +1 -1
- package/dist/jsx/index.mjs +4 -3
- package/dist/jsx/index.mjs.map +1 -1
- package/dist/jsx/index.native.js +6 -0
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/list/DoctypeListScreen.mjs +12 -18
- package/dist/jsx/list/DoctypeListScreen.mjs.map +1 -1
- package/dist/jsx/list/DoctypeListScreen.native.js +15 -21
- package/dist/jsx/list/DoctypeListScreen.native.js.map +1 -1
- package/dist/jsx/list/ListBulkActionsBar.mjs +11 -9
- package/dist/jsx/list/ListBulkActionsBar.mjs.map +1 -1
- package/dist/jsx/list/ListBulkActionsBar.native.js +10 -8
- package/dist/jsx/list/ListBulkActionsBar.native.js.map +1 -1
- package/dist/jsx/list/filter-editor.mjs +5 -7
- package/dist/jsx/list/filter-editor.mjs.map +1 -1
- package/dist/jsx/list/filter-editor.native.js +4 -6
- package/dist/jsx/list/filter-editor.native.js.map +1 -1
- package/dist/jsx/list/filter-saved.mjs +6 -6
- package/dist/jsx/list/filter-saved.mjs.map +1 -1
- package/dist/jsx/list/filter-saved.native.js +4 -4
- package/dist/jsx/list/filter-saved.native.js.map +1 -1
- package/dist/jsx/list/sidebar-section.mjs +15 -71
- package/dist/jsx/list/sidebar-section.mjs.map +1 -1
- package/dist/jsx/list/sidebar-section.native.js +11 -69
- package/dist/jsx/list/sidebar-section.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/quickEntry/QuickEntryDialog.mjs +10 -9
- package/dist/jsx/quickEntry/QuickEntryDialog.mjs.map +1 -1
- package/dist/jsx/quickEntry/QuickEntryDialog.native.js +27 -26
- package/dist/jsx/quickEntry/QuickEntryDialog.native.js.map +1 -1
- package/dist/jsx/report/QueryReportScreen.mjs +5 -7
- package/dist/jsx/report/QueryReportScreen.mjs.map +1 -1
- package/dist/jsx/report/QueryReportScreen.native.js +4 -6
- package/dist/jsx/report/QueryReportScreen.native.js.map +1 -1
- package/dist/jsx/shell/AllDoctypesScreen.mjs +304 -0
- package/dist/jsx/shell/AllDoctypesScreen.mjs.map +1 -0
- package/dist/jsx/shell/AllDoctypesScreen.native.js +460 -0
- package/dist/jsx/shell/AllDoctypesScreen.native.js.map +1 -0
- package/dist/jsx/shell/BackofficeShell.mjs +25 -65
- package/dist/jsx/shell/BackofficeShell.mjs.map +1 -1
- package/dist/jsx/shell/BackofficeShell.native.js +22 -63
- package/dist/jsx/shell/BackofficeShell.native.js.map +1 -1
- package/dist/jsx/shell/WorkspaceSidebar.mjs +50 -151
- package/dist/jsx/shell/WorkspaceSidebar.mjs.map +1 -1
- package/dist/jsx/shell/WorkspaceSidebar.native.js +51 -157
- package/dist/jsx/shell/WorkspaceSidebar.native.js.map +1 -1
- package/dist/jsx/shell/workspaceIcons.mjs +33 -2
- package/dist/jsx/shell/workspaceIcons.mjs.map +1 -1
- package/dist/jsx/shell/workspaceIcons.native.js +32 -0
- package/dist/jsx/shell/workspaceIcons.native.js.map +1 -1
- package/dist/jsx/views/ViewHeader.mjs +7 -12
- package/dist/jsx/views/ViewHeader.mjs.map +1 -1
- package/dist/jsx/views/ViewHeader.native.js +7 -12
- package/dist/jsx/views/ViewHeader.native.js.map +1 -1
- package/dist/jsx/views/ViewStates.mjs +6 -8
- package/dist/jsx/views/ViewStates.mjs.map +1 -1
- package/dist/jsx/views/ViewStates.native.js +5 -7
- package/dist/jsx/views/ViewStates.native.js.map +1 -1
- package/dist/jsx/views/kanban-board-controls.mjs +6 -7
- package/dist/jsx/views/kanban-board-controls.mjs.map +1 -1
- package/dist/jsx/views/kanban-board-controls.native.js +4 -5
- package/dist/jsx/views/kanban-board-controls.native.js.map +1 -1
- package/dist/jsx/workspace/WorkspaceLinkCard.mjs +24 -125
- package/dist/jsx/workspace/WorkspaceLinkCard.mjs.map +1 -1
- package/dist/jsx/workspace/WorkspaceLinkCard.native.js +23 -128
- package/dist/jsx/workspace/WorkspaceLinkCard.native.js.map +1 -1
- package/dist/jsx/workspace/WorkspaceLinkDirectory.mjs +0 -6
- package/dist/jsx/workspace/WorkspaceLinkDirectory.mjs.map +1 -1
- package/dist/jsx/workspace/WorkspaceLinkDirectory.native.js +0 -12
- package/dist/jsx/workspace/WorkspaceLinkDirectory.native.js.map +1 -1
- package/dist/jsx/workspace/WorkspaceNumberCard.mjs +24 -42
- package/dist/jsx/workspace/WorkspaceNumberCard.mjs.map +1 -1
- package/dist/jsx/workspace/WorkspaceNumberCard.native.js +23 -41
- package/dist/jsx/workspace/WorkspaceNumberCard.native.js.map +1 -1
- package/dist/jsx/workspace/WorkspaceQuickList.mjs +24 -20
- package/dist/jsx/workspace/WorkspaceQuickList.mjs.map +1 -1
- package/dist/jsx/workspace/WorkspaceQuickList.native.js +28 -25
- package/dist/jsx/workspace/WorkspaceQuickList.native.js.map +1 -1
- package/package.json +12 -12
- package/src/backofficeScreens.designLaw.spec.ts +2 -2
- package/src/chrome/CommandPalette.spec.tsx +12 -0
- package/src/chrome/NotificationsButton.screen.spec.tsx +2 -0
- package/src/chrome/UserMenu.screen.spec.tsx +8 -0
- package/src/chrome/UserMenu.tsx +27 -17
- package/src/chrome/awesomebar-data.tsx +115 -38
- package/src/chrome/notifications-panel.tsx +23 -64
- package/src/config/BackofficeProvider.tsx +9 -4
- package/src/config/capabilities.spec.ts +19 -1
- package/src/config/capabilities.ts +13 -4
- package/src/desk/Desk.tsx +20 -4
- package/src/desk/DeskSurface.tsx +3 -0
- package/src/desk/resolveDeskPath.spec.ts +4 -0
- package/src/desk/resolveDeskPath.ts +7 -1
- package/src/desk/target.ts +3 -0
- package/src/form/DocFormScreen.tsx +19 -10
- package/src/form/FormConnections.tsx +86 -153
- package/src/form/FormDialogs.tsx +21 -50
- package/src/form/FormTimeline.tsx +10 -11
- package/src/form/FormToolbar.screen.spec.tsx +15 -0
- package/src/form/FormToolbar.tsx +74 -86
- package/src/form/JumpToFieldDialog.stories.tsx +37 -0
- package/src/formBuilder/FormBuilderCanvas.tsx +27 -23
- package/src/i18n/en.ts +2 -3
- package/src/index.ts +7 -1
- package/src/list/DoctypeListScreen.compactHead.screen.spec.tsx +1 -1
- package/src/list/DoctypeListScreen.tsx +12 -16
- package/src/list/ListBulkActionsBar.tsx +12 -9
- package/src/list/filter-editor.tsx +6 -4
- package/src/list/filter-saved.tsx +6 -7
- package/src/list/sidebar-section.spec.tsx +15 -1
- package/src/list/sidebar-section.tsx +12 -70
- package/src/navigation/paths.ts +11 -0
- package/src/quickEntry/QuickEntryDialog.tsx +13 -7
- package/src/report/QueryReportScreen.spec.tsx +0 -1
- package/src/report/QueryReportScreen.tsx +5 -8
- package/src/shell/AllDoctypes.stories.tsx +164 -0
- package/src/shell/AllDoctypesScreen.screen.spec.tsx +290 -0
- package/src/shell/AllDoctypesScreen.tsx +389 -0
- package/src/shell/BackofficeShell.spec.tsx +11 -5
- package/src/shell/BackofficeShell.tsx +33 -64
- package/src/shell/WorkspaceSidebar.spec.tsx +40 -24
- package/src/shell/WorkspaceSidebar.tsx +75 -171
- package/src/shell/workspaceIcons.ts +45 -0
- package/src/views/CalendarView.screen.spec.tsx +1 -1
- package/src/views/ImageView.screen.spec.tsx +1 -1
- package/src/views/KanbanView.screen.spec.tsx +1 -1
- package/src/views/ViewHeader.tsx +7 -13
- package/src/views/ViewStates.tsx +6 -9
- package/src/views/kanban-board-controls.tsx +12 -4
- package/src/workspace/WorkspaceLinkCard.tsx +37 -113
- package/src/workspace/WorkspaceLinkDirectory.tsx +1 -16
- package/src/workspace/WorkspaceNumberCard.tsx +11 -21
- package/src/workspace/WorkspaceQuickList.tsx +27 -23
- package/types/chrome/UserMenu.d.ts.map +1 -1
- package/types/chrome/awesomebar-data.d.ts +14 -3
- package/types/chrome/awesomebar-data.d.ts.map +1 -1
- package/types/chrome/notifications-panel.d.ts.map +1 -1
- package/types/config/BackofficeProvider.d.ts +9 -4
- package/types/config/BackofficeProvider.d.ts.map +1 -1
- package/types/config/capabilities.d.ts +7 -1
- package/types/config/capabilities.d.ts.map +1 -1
- package/types/desk/Desk.d.ts +8 -3
- package/types/desk/Desk.d.ts.map +1 -1
- package/types/desk/DeskSurface.d.ts.map +1 -1
- package/types/desk/resolveDeskPath.d.ts +3 -1
- package/types/desk/resolveDeskPath.d.ts.map +1 -1
- package/types/desk/target.d.ts +2 -0
- package/types/desk/target.d.ts.map +1 -1
- package/types/form/DocFormScreen.d.ts.map +1 -1
- package/types/form/FormConnections.d.ts.map +1 -1
- package/types/form/FormDialogs.d.ts.map +1 -1
- package/types/form/FormTimeline.d.ts.map +1 -1
- package/types/form/FormToolbar.d.ts.map +1 -1
- package/types/formBuilder/FormBuilderCanvas.d.ts.map +1 -1
- package/types/i18n/en.d.ts +2 -3
- package/types/i18n/en.d.ts.map +1 -1
- package/types/index.d.ts +6 -4
- package/types/index.d.ts.map +1 -1
- package/types/list/DoctypeListScreen.d.ts.map +1 -1
- package/types/list/ListBulkActionsBar.d.ts.map +1 -1
- package/types/list/filter-editor.d.ts.map +1 -1
- package/types/list/filter-saved.d.ts.map +1 -1
- package/types/list/sidebar-section.d.ts +1 -1
- package/types/list/sidebar-section.d.ts.map +1 -1
- package/types/navigation/paths.d.ts +6 -0
- package/types/navigation/paths.d.ts.map +1 -1
- package/types/quickEntry/QuickEntryDialog.d.ts.map +1 -1
- package/types/report/QueryReportScreen.d.ts.map +1 -1
- package/types/shell/AllDoctypesScreen.d.ts +18 -0
- package/types/shell/AllDoctypesScreen.d.ts.map +1 -0
- package/types/shell/BackofficeShell.d.ts.map +1 -1
- package/types/shell/WorkspaceSidebar.d.ts +8 -1
- package/types/shell/WorkspaceSidebar.d.ts.map +1 -1
- package/types/shell/workspaceIcons.d.ts +2 -0
- package/types/shell/workspaceIcons.d.ts.map +1 -1
- package/types/views/ViewHeader.d.ts.map +1 -1
- package/types/views/ViewStates.d.ts.map +1 -1
- package/types/views/kanban-board-controls.d.ts.map +1 -1
- package/types/workspace/WorkspaceLinkCard.d.ts.map +1 -1
- package/types/workspace/WorkspaceLinkDirectory.d.ts.map +1 -1
- package/types/workspace/WorkspaceNumberCard.d.ts.map +1 -1
- package/types/workspace/WorkspaceQuickList.d.ts.map +1 -1
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { getVariableValue, useTheme } from "tamagui";
|
|
3
1
|
import { InMemoryFixtureProvider } from "@multiplatform.one/frappe";
|
|
4
2
|
import { renderWithProviders } from "@multiplatform.one/test-utils";
|
|
5
3
|
import { cleanup, screen, waitFor } from "@testing-library/react";
|
|
@@ -8,11 +6,6 @@ import { BackofficeProvider } from "../config/BackofficeProvider";
|
|
|
8
6
|
import { createMemoryNavigator } from "../navigation/navigator";
|
|
9
7
|
import { WorkspaceSidebar } from "./WorkspaceSidebar";
|
|
10
8
|
|
|
11
|
-
function SelectedInk() {
|
|
12
|
-
const theme = useTheme();
|
|
13
|
-
return <span data-testid="selected-ink" data-ink={String(getVariableValue(theme.color12))} />;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
9
|
const MOCK_HOST = "https://backoffice-shell-nav.mock.test";
|
|
17
10
|
|
|
18
11
|
const makeFixtures = () =>
|
|
@@ -54,44 +47,67 @@ const makeFixtures = () =>
|
|
|
54
47
|
module: "Core",
|
|
55
48
|
is_hidden: 0,
|
|
56
49
|
},
|
|
50
|
+
{
|
|
51
|
+
name: "Delta",
|
|
52
|
+
doctype: "Workspace",
|
|
53
|
+
title: "Delta",
|
|
54
|
+
icon: "tool",
|
|
55
|
+
parent_page: "Beta",
|
|
56
|
+
public: 1,
|
|
57
|
+
for_user: "",
|
|
58
|
+
sequence_id: 4,
|
|
59
|
+
module: "Core",
|
|
60
|
+
is_hidden: 0,
|
|
61
|
+
},
|
|
57
62
|
],
|
|
58
63
|
});
|
|
59
64
|
|
|
60
65
|
afterEach(cleanup);
|
|
61
66
|
|
|
62
|
-
describe("WorkspaceSidebar LC-
|
|
63
|
-
it("
|
|
67
|
+
describe("WorkspaceSidebar is MPO's Sidebar (LC-175)", () => {
|
|
68
|
+
it("rows stack as one group, nested ones indented, the current one marked", async () => {
|
|
64
69
|
renderWithProviders(
|
|
65
70
|
<BackofficeProvider
|
|
66
71
|
frappe={{ baseURL: MOCK_HOST, fixtures: makeFixtures() }}
|
|
67
72
|
navigation={createMemoryNavigator("/backoffice/beta")}
|
|
68
73
|
>
|
|
69
|
-
<SelectedInk />
|
|
70
74
|
<WorkspaceSidebar activePath="/backoffice/beta" />
|
|
71
75
|
</BackofficeProvider>,
|
|
72
76
|
);
|
|
73
77
|
|
|
74
78
|
const rows = await waitFor(() => {
|
|
75
|
-
const found =
|
|
76
|
-
|
|
79
|
+
const found = Array.from(
|
|
80
|
+
screen
|
|
81
|
+
.getByTestId("backoffice-workspace-nav")
|
|
82
|
+
.querySelectorAll("[data-sidebar-row]:not([data-testid='backoffice-all-doctypes-row'])"),
|
|
83
|
+
) as HTMLElement[];
|
|
84
|
+
expect(found).toHaveLength(4);
|
|
77
85
|
return found;
|
|
78
86
|
});
|
|
79
87
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
88
|
+
// All DocTypes leads in a group of its own; the workspaces share one.
|
|
89
|
+
const groups = screen
|
|
90
|
+
.getByTestId("backoffice-workspace-nav")
|
|
91
|
+
.querySelectorAll("[data-sidebar-group]");
|
|
92
|
+
expect(groups).toHaveLength(2);
|
|
93
|
+
expect(groups[0].textContent).toBe("All DocTypes");
|
|
94
|
+
for (const row of rows) expect(groups[1].contains(row)).toBe(true);
|
|
95
|
+
|
|
96
|
+
expect(rows.map((row) => row.textContent)).toEqual(["Alpha", "Beta", "Delta", "Gamma"]);
|
|
97
|
+
expect(rows.map((row) => row.getAttribute("data-group-position"))).toEqual([
|
|
98
|
+
"first",
|
|
99
|
+
"middle",
|
|
100
|
+
"middle",
|
|
101
|
+
"last",
|
|
102
|
+
]);
|
|
103
|
+
expect(rows[2].getAttribute("data-depth")).toBe("1");
|
|
104
|
+
expect(rows[2].querySelectorAll("[data-sidebar-indent]")).toHaveLength(1);
|
|
105
|
+
expect(rows[1].getAttribute("data-depth")).toBeNull();
|
|
83
106
|
|
|
84
107
|
expect(rows[1].className).toContain("_bg-color4");
|
|
85
|
-
expect(rows[1].className).toContain("_col-color12");
|
|
86
|
-
expect(rows[1].querySelector("svg")?.getAttribute("fill")).toBe(
|
|
87
|
-
screen.getByTestId("selected-ink").getAttribute("data-ink"),
|
|
88
|
-
);
|
|
89
|
-
expect(rows[1].className).toContain("_bg-0hover-color5");
|
|
90
|
-
expect(rows[1].className).toContain("_bg-0active-color5");
|
|
91
|
-
expect(screen.getByText("Beta").className).toContain("_col-color12");
|
|
92
108
|
expect(rows[1].getAttribute("data-active")).toBe("true");
|
|
93
109
|
expect(rows[1].getAttribute("aria-current")).toBe("page");
|
|
94
|
-
expect(rows[0].getAttribute("data-active")).
|
|
95
|
-
expect(rows[
|
|
110
|
+
expect(rows[0].getAttribute("data-active")).toBeNull();
|
|
111
|
+
expect(rows[3].getAttribute("aria-current")).toBeNull();
|
|
96
112
|
});
|
|
97
113
|
});
|
|
@@ -1,40 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Left workspace navigation for the backoffice shell (desk parity).
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* An "All DocTypes" row leads in a group of its own, opening every DocType
|
|
5
|
+
* on offer by module. Private workspaces (for_user = session user) follow,
|
|
6
|
+
* public workspaces
|
|
7
|
+
* below them ordered by sequence_id, children nested via parent_page (rendered
|
|
6
8
|
* indented under their parent). Data is live via useWorkspaces; paths come
|
|
7
9
|
* from the BackofficeProvider (basePath-aware).
|
|
8
10
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* keyboard focus paints an inset ring on the row, never a selection border
|
|
13
|
-
* on every sibling. The column-edge hairline is owned by BackofficeShell so
|
|
14
|
-
* it spans the full rail height (footer included) — this nav paints none.
|
|
11
|
+
* The rail is MPO's Sidebar (LC-175): its rows, selection fill, keyboard
|
|
12
|
+
* ring, captions and end hairline are the catalog's. The shell's page panel
|
|
13
|
+
* and host footer ride its footer so they share the rail's surface.
|
|
15
14
|
*/
|
|
16
15
|
import {
|
|
17
|
-
|
|
18
|
-
ScrollView,
|
|
19
|
-
Separator,
|
|
20
|
-
SizableText,
|
|
16
|
+
Sidebar,
|
|
21
17
|
Spinner,
|
|
22
|
-
XStack,
|
|
23
|
-
YStack,
|
|
24
|
-
useTheme,
|
|
25
18
|
type SidebarItem,
|
|
26
19
|
type SidebarSection,
|
|
27
20
|
} from "@multiplatform.one/components";
|
|
28
|
-
import {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
hairline,
|
|
32
|
-
useResolvedKnobs,
|
|
33
|
-
} from "@multiplatform.one/theme";
|
|
34
|
-
import type { Icon as PhosphorIcon } from "@phosphor-icons/react";
|
|
35
|
-
import { useMemo } from "react";
|
|
21
|
+
import { useResolvedKnobs } from "@multiplatform.one/theme";
|
|
22
|
+
import { StackIcon, type Icon as PhosphorIcon } from "@phosphor-icons/react";
|
|
23
|
+
import { useMemo, type ReactNode } from "react";
|
|
36
24
|
import { useTranslation } from "react-i18next";
|
|
37
|
-
import { useBackofficePaths } from "../config/BackofficeProvider";
|
|
25
|
+
import { useBackofficeCapabilities, useBackofficePaths } from "../config/BackofficeProvider";
|
|
38
26
|
import { BACKOFFICE_I18N_NAMESPACE } from "../i18n";
|
|
39
27
|
import type { BackofficePaths } from "../navigation/paths";
|
|
40
28
|
import { useWorkspaces, type WorkspaceDoc } from "./useWorkspaces";
|
|
@@ -47,6 +35,12 @@ export interface WorkspaceSidebarProps {
|
|
|
47
35
|
activePath?: string;
|
|
48
36
|
/** Called with the target path when a workspace is selected. */
|
|
49
37
|
onNavigate?: (path: string) => void;
|
|
38
|
+
/** Rail width; "100%" when the nav fills a sheet. */
|
|
39
|
+
width?: number | string;
|
|
40
|
+
/** The rail's end hairline (off in a sheet). */
|
|
41
|
+
divider?: boolean;
|
|
42
|
+
/** Pinned under the workspaces in the rail (page panel, host footer). */
|
|
43
|
+
footer?: ReactNode;
|
|
50
44
|
}
|
|
51
45
|
|
|
52
46
|
function workspaceItem(
|
|
@@ -59,12 +53,13 @@ function workspaceItem(
|
|
|
59
53
|
const path = paths.workspace(workspace.name);
|
|
60
54
|
const IconComponent = workspaceIcon(workspace.icon, workspace.name);
|
|
61
55
|
const active = activePath === path;
|
|
62
|
-
const icon = <NavIcon Icon={IconComponent}
|
|
56
|
+
const icon = <NavIcon Icon={IconComponent} active={active} />;
|
|
63
57
|
return {
|
|
64
58
|
label: workspace.title || workspace.name,
|
|
65
59
|
value: path,
|
|
66
60
|
icon,
|
|
67
61
|
active,
|
|
62
|
+
depth,
|
|
68
63
|
onPress: onNavigate ? () => onNavigate(path) : undefined,
|
|
69
64
|
};
|
|
70
65
|
}
|
|
@@ -92,143 +87,25 @@ function flattenTree(
|
|
|
92
87
|
}
|
|
93
88
|
|
|
94
89
|
/**
|
|
95
|
-
*
|
|
96
|
-
*
|
|
90
|
+
* The glyph takes the rail's ink (secondary at rest, accent when selected)
|
|
91
|
+
* from the Sidebar's icon slot; only its weight says which row is current.
|
|
97
92
|
*/
|
|
98
|
-
function NavIcon({ Icon,
|
|
99
|
-
const theme = useTheme();
|
|
93
|
+
function NavIcon({ Icon, active }: { Icon: PhosphorIcon; active: boolean }) {
|
|
100
94
|
const { knobProps } = useResolvedKnobs();
|
|
101
|
-
const size = Number(knobProps.controlIcon?.width) ||
|
|
102
|
-
|
|
103
|
-
return (
|
|
104
|
-
// Depth-based inset carried by the icon slot — the Sidebar row API has
|
|
105
|
-
// no nesting support, so children indent icon+label via this wrapper.
|
|
106
|
-
<XStack paddingLeft={depth > 0 ? depth * size : 0}>
|
|
107
|
-
<Icon
|
|
108
|
-
size={size}
|
|
109
|
-
weight={active ? "fill" : "regular"}
|
|
110
|
-
{...(typeof color === "string" ? { color } : {})}
|
|
111
|
-
/>
|
|
112
|
-
</XStack>
|
|
113
|
-
);
|
|
95
|
+
const size = Number(knobProps.controlIcon?.width) || undefined;
|
|
96
|
+
return <Icon size={size} weight={active ? "fill" : "regular"} />;
|
|
114
97
|
}
|
|
115
98
|
|
|
116
|
-
function
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}) {
|
|
123
|
-
const { knobProps } = useResolvedKnobs();
|
|
124
|
-
const rowPad = knobProps.panelPadding.padding;
|
|
125
|
-
const corners = knobProps.borderRadius;
|
|
126
|
-
const ink = item.active ? componentColors.selection.ink : undefined;
|
|
127
|
-
return (
|
|
128
|
-
<XStack
|
|
129
|
-
role="button"
|
|
130
|
-
aria-current={item.active ? "page" : undefined}
|
|
131
|
-
data-testid="backoffice-workspace-row"
|
|
132
|
-
data-group-position={position}
|
|
133
|
-
data-active={item.active ? "true" : "false"}
|
|
134
|
-
alignItems="center"
|
|
135
|
-
gap="$3"
|
|
136
|
-
minHeight={knobProps.sizeToken}
|
|
137
|
-
paddingHorizontal={rowPad}
|
|
138
|
-
paddingVertical="$2"
|
|
139
|
-
overflow="hidden"
|
|
140
|
-
userSelect="none"
|
|
141
|
-
{...corners}
|
|
142
|
-
{...({ color: ink } as Record<string, unknown>)}
|
|
143
|
-
backgroundColor={item.active ? componentColors.selection.background : "transparent"}
|
|
144
|
-
hoverStyle={{
|
|
145
|
-
backgroundColor: item.active ? componentColors.selection.hover : "$color3",
|
|
146
|
-
...corners,
|
|
147
|
-
}}
|
|
148
|
-
pressStyle={{
|
|
149
|
-
backgroundColor: item.active ? componentColors.selection.press : "$color4",
|
|
150
|
-
...corners,
|
|
151
|
-
}}
|
|
152
|
-
cursor={item.onPress ? "pointer" : "default"}
|
|
153
|
-
onPress={item.onPress}
|
|
154
|
-
tabIndex={item.onPress ? 0 : undefined}
|
|
155
|
-
outlineWidth={0}
|
|
156
|
-
focusStyle={{ outlineWidth: 0 }}
|
|
157
|
-
focusVisibleStyle={ensureFocusVisibleRing({
|
|
158
|
-
outlineOffset: -2,
|
|
159
|
-
outlineColor: "$outlineColor",
|
|
160
|
-
})}
|
|
161
|
-
onKeyDown={
|
|
162
|
-
((e: { key?: string; preventDefault?: () => void }) => {
|
|
163
|
-
if (e.key === "Enter" || e.key === " ") {
|
|
164
|
-
e.preventDefault?.();
|
|
165
|
-
item.onPress?.();
|
|
166
|
-
}
|
|
167
|
-
}) as unknown as () => void
|
|
168
|
-
}
|
|
169
|
-
>
|
|
170
|
-
{item.icon}
|
|
171
|
-
<SizableText
|
|
172
|
-
size="$4"
|
|
173
|
-
numberOfLines={1}
|
|
174
|
-
flex={1}
|
|
175
|
-
flexShrink={1}
|
|
176
|
-
fontWeight="400"
|
|
177
|
-
color="$color12"
|
|
178
|
-
>
|
|
179
|
-
{item.label}
|
|
180
|
-
</SizableText>
|
|
181
|
-
</XStack>
|
|
182
|
-
);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
function WorkspaceNav({ sections }: { sections: SidebarSection[] }) {
|
|
186
|
-
const { knobProps } = useResolvedKnobs();
|
|
187
|
-
const rowPad = knobProps.panelPadding.padding;
|
|
188
|
-
return (
|
|
189
|
-
<YStack width="100%" flex={1} height="100%" minHeight={0}>
|
|
190
|
-
<ScrollView flex={1}>
|
|
191
|
-
<YStack {...knobProps.panelPadding} paddingHorizontal="$2" {...knobProps.gapLg}>
|
|
192
|
-
{sections.map((section, sectionIdx) => (
|
|
193
|
-
<YStack key={section.title ?? sectionIdx} {...knobProps.gap}>
|
|
194
|
-
{section.title ? (
|
|
195
|
-
<YStack paddingHorizontal={rowPad}>
|
|
196
|
-
<SizableText
|
|
197
|
-
size="$2"
|
|
198
|
-
fontWeight="400"
|
|
199
|
-
textTransform="uppercase"
|
|
200
|
-
color="$color11"
|
|
201
|
-
>
|
|
202
|
-
{section.title}
|
|
203
|
-
</SizableText>
|
|
204
|
-
</YStack>
|
|
205
|
-
) : null}
|
|
206
|
-
<YStack>
|
|
207
|
-
{section.items.map((item, itemIdx) => {
|
|
208
|
-
const position = getGroupPosition(itemIdx, section.items.length);
|
|
209
|
-
return (
|
|
210
|
-
<YStack key={String(item.value ?? item.label)}>
|
|
211
|
-
{itemIdx > 0 ? (
|
|
212
|
-
<YStack paddingHorizontal={rowPad}>
|
|
213
|
-
<Separator {...hairline.line} />
|
|
214
|
-
</YStack>
|
|
215
|
-
) : null}
|
|
216
|
-
<NavRow item={item} position={position} />
|
|
217
|
-
</YStack>
|
|
218
|
-
);
|
|
219
|
-
})}
|
|
220
|
-
</YStack>
|
|
221
|
-
</YStack>
|
|
222
|
-
))}
|
|
223
|
-
</YStack>
|
|
224
|
-
</ScrollView>
|
|
225
|
-
</YStack>
|
|
226
|
-
);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
export function WorkspaceSidebar({ activePath, onNavigate }: WorkspaceSidebarProps) {
|
|
99
|
+
export function WorkspaceSidebar({
|
|
100
|
+
activePath,
|
|
101
|
+
onNavigate,
|
|
102
|
+
width = WORKSPACE_SIDEBAR_WIDTH,
|
|
103
|
+
divider = true,
|
|
104
|
+
footer,
|
|
105
|
+
}: WorkspaceSidebarProps) {
|
|
230
106
|
const { t } = useTranslation(BACKOFFICE_I18N_NAMESPACE);
|
|
231
107
|
const paths = useBackofficePaths();
|
|
108
|
+
const { views } = useBackofficeCapabilities();
|
|
232
109
|
const { privateWorkspaces, publicRoots, childrenByParent, isLoading } = useWorkspaces();
|
|
233
110
|
|
|
234
111
|
const sections = useMemo<SidebarSection[]>(() => {
|
|
@@ -253,20 +130,47 @@ export function WorkspaceSidebar({ activePath, onNavigate }: WorkspaceSidebarPro
|
|
|
253
130
|
return result;
|
|
254
131
|
}, [privateWorkspaces, publicRoots, childrenByParent, paths, activePath, onNavigate, t]);
|
|
255
132
|
|
|
256
|
-
|
|
257
|
-
return
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
133
|
+
const allDoctypes = useMemo<SidebarSection | undefined>(() => {
|
|
134
|
+
if (!views.enabled) return undefined;
|
|
135
|
+
const path = paths.allDoctypes();
|
|
136
|
+
const active = activePath === path;
|
|
137
|
+
return {
|
|
138
|
+
items: [
|
|
139
|
+
{
|
|
140
|
+
label: t("allDoctypes.title", "All DocTypes"),
|
|
141
|
+
value: path,
|
|
142
|
+
icon: <NavIcon Icon={StackIcon} active={active} />,
|
|
143
|
+
active,
|
|
144
|
+
testID: "backoffice-all-doctypes-row",
|
|
145
|
+
onPress: onNavigate ? () => onNavigate(path) : undefined,
|
|
146
|
+
},
|
|
147
|
+
],
|
|
148
|
+
};
|
|
149
|
+
}, [views.enabled, paths, activePath, onNavigate, t]);
|
|
150
|
+
|
|
151
|
+
const loading = isLoading && sections.length === 0;
|
|
152
|
+
const workspaceSections = loading
|
|
153
|
+
? [
|
|
154
|
+
{
|
|
155
|
+
items: [
|
|
156
|
+
{
|
|
157
|
+
label: t("sidebar.loading", "Loading workspaces"),
|
|
158
|
+
value: "__loading",
|
|
159
|
+
icon: <Spinner size="small" />,
|
|
160
|
+
},
|
|
161
|
+
],
|
|
162
|
+
},
|
|
163
|
+
]
|
|
164
|
+
: sections;
|
|
270
165
|
|
|
271
|
-
return
|
|
166
|
+
return (
|
|
167
|
+
<Sidebar
|
|
168
|
+
sections={allDoctypes ? [allDoctypes, ...workspaceSections] : workspaceSections}
|
|
169
|
+
width={width}
|
|
170
|
+
divider={divider}
|
|
171
|
+
footer={footer}
|
|
172
|
+
aria-label={t("shell.navigation", "Navigation")}
|
|
173
|
+
testID="backoffice-workspace-nav"
|
|
174
|
+
/>
|
|
175
|
+
);
|
|
272
176
|
}
|
|
@@ -4,17 +4,23 @@
|
|
|
4
4
|
* Unknown names fall back to a generic workspace glyph.
|
|
5
5
|
*/
|
|
6
6
|
import {
|
|
7
|
+
AddressBookIcon,
|
|
7
8
|
BuildingsIcon,
|
|
8
9
|
CalculatorIcon,
|
|
9
10
|
CalendarIcon,
|
|
10
11
|
ChatCircleIcon,
|
|
12
|
+
ChatsCircleIcon,
|
|
11
13
|
CoinsIcon,
|
|
14
|
+
DesktopIcon,
|
|
12
15
|
EnvelopeIcon,
|
|
13
16
|
FactoryIcon,
|
|
14
17
|
FileIcon,
|
|
15
18
|
FirstAidKitIcon,
|
|
19
|
+
FlowArrowIcon,
|
|
16
20
|
GaugeIcon,
|
|
17
21
|
GearIcon,
|
|
22
|
+
GearSixIcon,
|
|
23
|
+
GlobeHemisphereWestIcon,
|
|
18
24
|
GlobeIcon,
|
|
19
25
|
GraduationCapIcon,
|
|
20
26
|
HammerIcon,
|
|
@@ -27,11 +33,15 @@ import {
|
|
|
27
33
|
PackageIcon,
|
|
28
34
|
PlantIcon,
|
|
29
35
|
PlugsConnectedIcon,
|
|
36
|
+
PrinterIcon,
|
|
37
|
+
RobotIcon,
|
|
30
38
|
RocketLaunchIcon,
|
|
31
39
|
SealCheckIcon,
|
|
32
40
|
ShoppingCartIcon,
|
|
41
|
+
SlidersHorizontalIcon,
|
|
33
42
|
SquaresFourIcon,
|
|
34
43
|
StorefrontIcon,
|
|
44
|
+
ToolboxIcon,
|
|
35
45
|
UsersIcon,
|
|
36
46
|
WrenchIcon,
|
|
37
47
|
type Icon,
|
|
@@ -89,3 +99,38 @@ export function workspaceIcon(icon?: string, workspaceName?: string): Icon {
|
|
|
89
99
|
}
|
|
90
100
|
return SquaresFourIcon;
|
|
91
101
|
}
|
|
102
|
+
|
|
103
|
+
/** Frappe's own modules (and the common ERPNext ones) by lowercased name. */
|
|
104
|
+
const MODULE_ICON_MAP: Record<string, Icon> = {
|
|
105
|
+
accounts: CalculatorIcon,
|
|
106
|
+
assets: BuildingsIcon,
|
|
107
|
+
automation: RobotIcon,
|
|
108
|
+
buying: ShoppingCartIcon,
|
|
109
|
+
contacts: AddressBookIcon,
|
|
110
|
+
core: GearSixIcon,
|
|
111
|
+
crm: HandshakeIcon,
|
|
112
|
+
custom: SlidersHorizontalIcon,
|
|
113
|
+
desk: DesktopIcon,
|
|
114
|
+
email: EnvelopeIcon,
|
|
115
|
+
geo: GlobeHemisphereWestIcon,
|
|
116
|
+
hr: IdentificationCardIcon,
|
|
117
|
+
integrations: PlugsConnectedIcon,
|
|
118
|
+
manufacturing: FactoryIcon,
|
|
119
|
+
printing: PrinterIcon,
|
|
120
|
+
projects: KanbanIcon,
|
|
121
|
+
"quality management": SealCheckIcon,
|
|
122
|
+
selling: StorefrontIcon,
|
|
123
|
+
setup: WrenchIcon,
|
|
124
|
+
social: ChatsCircleIcon,
|
|
125
|
+
stock: PackageIcon,
|
|
126
|
+
support: LifebuoyIcon,
|
|
127
|
+
utilities: ToolboxIcon,
|
|
128
|
+
website: GlobeIcon,
|
|
129
|
+
workflow: FlowArrowIcon,
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
/** The glyph for a DocType module; an unknown module reads as a workspace name. */
|
|
133
|
+
export function moduleIcon(module?: string): Icon {
|
|
134
|
+
const known = module ? MODULE_ICON_MAP[module.toLowerCase()] : undefined;
|
|
135
|
+
return known ?? workspaceIcon(undefined, module);
|
|
136
|
+
}
|
|
@@ -211,7 +211,7 @@ describe("<CalendarView />", () => {
|
|
|
211
211
|
it("offers the list back when the doctype has no date field", async () => {
|
|
212
212
|
const navigation = renderFixtureCalendar("QaCalNone");
|
|
213
213
|
expect(await screen.findByText("Calendar not available", {}, { timeout: 5000 })).toBeTruthy();
|
|
214
|
-
fireEvent.click(screen.
|
|
214
|
+
fireEvent.click(screen.getByRole("button", { name: "Back to list" }));
|
|
215
215
|
expect(navigation.getLocation().path).toBe("/backoffice/qacalnone");
|
|
216
216
|
});
|
|
217
217
|
|
|
@@ -105,7 +105,7 @@ describe("<ImageView />", () => {
|
|
|
105
105
|
const navigation = renderImageView("QaImagePlain");
|
|
106
106
|
expect(await screen.findByText("Image view not available", {}, { timeout: 5000 })).toBeTruthy();
|
|
107
107
|
expect(screen.getByText("QaImagePlain has no image field.")).toBeTruthy();
|
|
108
|
-
fireEvent.click(screen.
|
|
108
|
+
fireEvent.click(screen.getByRole("button", { name: "Back to list" }));
|
|
109
109
|
expect(navigation.getLocation().path).toBe("/backoffice/qaimageplain");
|
|
110
110
|
});
|
|
111
111
|
});
|
|
@@ -259,7 +259,7 @@ describe("<KanbanView />", () => {
|
|
|
259
259
|
expect(
|
|
260
260
|
await screen.findByText("No Select field to board by", {}, { timeout: 5000 }),
|
|
261
261
|
).toBeTruthy();
|
|
262
|
-
fireEvent.click(screen.
|
|
262
|
+
fireEvent.click(screen.getByRole("button", { name: "Back to list" }));
|
|
263
263
|
expect(navigation.getLocation().path).toBe("/backoffice/qaboardnone");
|
|
264
264
|
});
|
|
265
265
|
|
package/src/views/ViewHeader.tsx
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
// the page title, a single primary "New {doctype}" (desk "Add {doctype}"),
|
|
4
4
|
// and ListViewSelect as one dropdown — never a segment per view. Catalog
|
|
5
5
|
// PageHeader is the same primitive the list screen uses (LC-16).
|
|
6
|
-
import { PageHeader, YStack } from "@multiplatform.one/components";
|
|
6
|
+
import { ActionButton, PageHeader, YStack } from "@multiplatform.one/components";
|
|
7
7
|
import { Button } from "@multiplatform.one/forms";
|
|
8
8
|
import { useDocRights, useFrappeConfig } from "@multiplatform.one/frappe-ui";
|
|
9
9
|
import { useResolvedKnobs } from "@multiplatform.one/theme";
|
|
10
|
-
import { ArrowSquareOutIcon
|
|
10
|
+
import { ArrowSquareOutIcon } from "@phosphor-icons/react";
|
|
11
11
|
import { useTranslation } from "react-i18next";
|
|
12
12
|
import {
|
|
13
13
|
useBackofficeCapabilities,
|
|
@@ -80,18 +80,12 @@ export function ViewHeader({ doctype, view }: ViewHeaderProps) {
|
|
|
80
80
|
onViewChange={(next) => navigator.navigate(paths.view(doctype, next))}
|
|
81
81
|
/>
|
|
82
82
|
{newDoc.enabled && rights.create ? (
|
|
83
|
-
<
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
<ActionButton
|
|
84
|
+
kind="add"
|
|
85
|
+
accentInk
|
|
86
|
+
label={t("views.new", { defaultValue: "New {{doctype}}", doctype })}
|
|
87
87
|
onPress={() => navigator.navigate(paths.newDoc(doctype))}
|
|
88
|
-
|
|
89
|
-
defaultValue: "New {{doctype}}",
|
|
90
|
-
doctype,
|
|
91
|
-
})}
|
|
92
|
-
>
|
|
93
|
-
{t("views.new", { defaultValue: "New {{doctype}}", doctype })}
|
|
94
|
-
</Button>
|
|
88
|
+
/>
|
|
95
89
|
) : null}
|
|
96
90
|
</>
|
|
97
91
|
}
|
package/src/views/ViewStates.tsx
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
// Shared honest-state chrome for the alternate views: loading, error, and
|
|
2
2
|
// "this view is not supported for this doctype" — each with a way back to
|
|
3
3
|
// the list view (desk parity: unsupported views bounce you to list).
|
|
4
|
-
import { EmptyState, Spinner, YStack } from "@multiplatform.one/components";
|
|
5
|
-
import { Button } from "@multiplatform.one/forms";
|
|
6
|
-
import { ListBulletsIcon } from "@phosphor-icons/react";
|
|
4
|
+
import { ActionButton, EmptyState, Spinner, YStack } from "@multiplatform.one/components";
|
|
7
5
|
import { useTranslation } from "react-i18next";
|
|
8
6
|
import { useBackofficeNavigator, useBackofficePaths } from "../config/BackofficeProvider";
|
|
9
7
|
import { BACKOFFICE_I18N_NAMESPACE } from "../i18n";
|
|
@@ -21,13 +19,12 @@ export function BackToListButton({ doctype }: { doctype: string }) {
|
|
|
21
19
|
const paths = useBackofficePaths();
|
|
22
20
|
const { t } = useTranslation(BACKOFFICE_I18N_NAMESPACE);
|
|
23
21
|
return (
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
<ActionButton
|
|
23
|
+
kind="back"
|
|
24
|
+
primary
|
|
25
|
+
label={t("views.backToList", "Back to list")}
|
|
27
26
|
onPress={() => navigator.navigate(paths.list(doctype))}
|
|
28
|
-
|
|
29
|
-
{t("views.backToList", "Back to list")}
|
|
30
|
-
</Button>
|
|
27
|
+
/>
|
|
31
28
|
);
|
|
32
29
|
}
|
|
33
30
|
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
Button,
|
|
12
12
|
ConfirmDialog,
|
|
13
13
|
DropdownMenu,
|
|
14
|
+
IconButton,
|
|
14
15
|
Text,
|
|
15
16
|
XStack,
|
|
16
17
|
YStack,
|
|
@@ -18,7 +19,12 @@ import {
|
|
|
18
19
|
} from "@multiplatform.one/components";
|
|
19
20
|
import { Data } from "@multiplatform.one/frappe-ui";
|
|
20
21
|
import { sizeRecipeEscape, useResolvedKnobs } from "@multiplatform.one/theme";
|
|
21
|
-
import {
|
|
22
|
+
import {
|
|
23
|
+
CaretDownIcon,
|
|
24
|
+
ColumnsPlusRightIcon,
|
|
25
|
+
DotsThreeIcon,
|
|
26
|
+
PlusIcon,
|
|
27
|
+
} from "@phosphor-icons/react";
|
|
22
28
|
import { useState } from "react";
|
|
23
29
|
import { useTranslation } from "react-i18next";
|
|
24
30
|
import { BACKOFFICE_I18N_NAMESPACE } from "../i18n";
|
|
@@ -308,9 +314,11 @@ export function KanbanBoardEnd({
|
|
|
308
314
|
)}
|
|
309
315
|
alignItems="stretch"
|
|
310
316
|
>
|
|
311
|
-
<
|
|
312
|
-
{
|
|
313
|
-
|
|
317
|
+
<IconButton
|
|
318
|
+
icon={ColumnsPlusRightIcon}
|
|
319
|
+
aria-label={t("views.kanbanAddColumn", "Add column")}
|
|
320
|
+
onPress={() => setAddOpen(true)}
|
|
321
|
+
/>
|
|
314
322
|
{restoreItems.length > 0 && (
|
|
315
323
|
<DropdownMenu items={restoreItems} placement="bottom-end">
|
|
316
324
|
<Button
|