@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
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { JumpToFieldDialog } from "./FormDialogs";
|
|
2
|
+
|
|
3
|
+
const meta = {
|
|
4
|
+
title: "Screens/Backoffice/JumpToField",
|
|
5
|
+
component: JumpToFieldDialog,
|
|
6
|
+
tags: ["!test"],
|
|
7
|
+
parameters: {
|
|
8
|
+
status: { type: "stable" },
|
|
9
|
+
layout: "fullscreen",
|
|
10
|
+
docs: {
|
|
11
|
+
description: {
|
|
12
|
+
component:
|
|
13
|
+
"The desk Ctrl/Cmd+J field picker, rendered open: a search field over the form's fields as MPO ListRows, each with its tab as the subtitle.",
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
|
|
20
|
+
const noop = () => {};
|
|
21
|
+
|
|
22
|
+
export const Main = {
|
|
23
|
+
name: "Main",
|
|
24
|
+
render: () => (
|
|
25
|
+
<JumpToFieldDialog
|
|
26
|
+
open
|
|
27
|
+
onOpenChange={noop}
|
|
28
|
+
onJump={noop}
|
|
29
|
+
fields={[
|
|
30
|
+
{ name: "subject", label: "Subject", tabKey: "details", tabLabel: "Details" },
|
|
31
|
+
{ name: "status", label: "Status", tabKey: "details", tabLabel: "Details" },
|
|
32
|
+
{ name: "date", label: "Due Date", tabKey: "details", tabLabel: "Details" },
|
|
33
|
+
{ name: "assigned_by", label: "Assigned By", tabKey: "more", tabLabel: "More Info" },
|
|
34
|
+
]}
|
|
35
|
+
/>
|
|
36
|
+
),
|
|
37
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
ActionButton,
|
|
2
3
|
Card,
|
|
3
4
|
Chip,
|
|
4
5
|
ConfirmDialog,
|
|
@@ -16,9 +17,14 @@ import {
|
|
|
16
17
|
isWeb,
|
|
17
18
|
type DropdownMenuEntry,
|
|
18
19
|
} from "@multiplatform.one/components";
|
|
19
|
-
import { Button } from "@multiplatform.one/forms";
|
|
20
|
+
import { Button, IconButton } from "@multiplatform.one/forms";
|
|
20
21
|
import { useResolvedKnobs } from "@multiplatform.one/theme";
|
|
21
|
-
import {
|
|
22
|
+
import {
|
|
23
|
+
DotsThreeIcon,
|
|
24
|
+
PlusIcon,
|
|
25
|
+
RowsPlusBottomIcon,
|
|
26
|
+
WarningCircleIcon,
|
|
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";
|
|
@@ -221,33 +227,28 @@ export function FormBuilderCanvas({
|
|
|
221
227
|
}))}
|
|
222
228
|
/>
|
|
223
229
|
<XStack {...knobProps.gapSm} flexWrap="wrap">
|
|
224
|
-
<
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
icon={<PlusIcon size={iconSize} />}
|
|
230
|
+
<ActionButton
|
|
231
|
+
kind="add"
|
|
232
|
+
label={t("formBuilder.addTab", "Add tab")}
|
|
228
233
|
onPress={() => {
|
|
229
234
|
const next = addTab(layout);
|
|
230
235
|
onChange(next);
|
|
231
236
|
onTab(next.tabs.at(-1)!.key);
|
|
232
237
|
onSelect(next.tabs.at(-1)!.key);
|
|
233
238
|
}}
|
|
234
|
-
|
|
235
|
-
{t("formBuilder.addTab", "Add tab")}
|
|
236
|
-
</Button>
|
|
239
|
+
/>
|
|
237
240
|
<Button size="$2" onPress={() => onSelect(tab.key)}>
|
|
238
241
|
{t("formBuilder.tabProperties", "Tab properties")}
|
|
239
242
|
</Button>
|
|
240
|
-
<
|
|
241
|
-
|
|
242
|
-
|
|
243
|
+
<IconButton
|
|
244
|
+
icon={RowsPlusBottomIcon}
|
|
245
|
+
aria-label={t("formBuilder.addSection", "Add section")}
|
|
243
246
|
onPress={() => {
|
|
244
247
|
const next = addSection(layout, tab.key);
|
|
245
248
|
onChange(next);
|
|
246
249
|
onSelect(next.tabs.find((item) => item.key === tab.key)!.sections.at(-1)!.key);
|
|
247
250
|
}}
|
|
248
|
-
|
|
249
|
-
{t("formBuilder.addSection", "Add section")}
|
|
250
|
-
</Button>
|
|
251
|
+
/>
|
|
251
252
|
</XStack>
|
|
252
253
|
<ScrollView
|
|
253
254
|
flex={1}
|
|
@@ -269,7 +270,14 @@ export function FormBuilderCanvas({
|
|
|
269
270
|
"formBuilder.emptyDescription",
|
|
270
271
|
"Add a field to start building the form.",
|
|
271
272
|
)}
|
|
272
|
-
action={
|
|
273
|
+
action={
|
|
274
|
+
<ActionButton
|
|
275
|
+
kind="add"
|
|
276
|
+
primary
|
|
277
|
+
label={t("formBuilder.addField", "Add field")}
|
|
278
|
+
onPress={onAdd}
|
|
279
|
+
/>
|
|
280
|
+
}
|
|
273
281
|
/>
|
|
274
282
|
) : null}
|
|
275
283
|
{tab.sections.map((section) => (
|
|
@@ -395,10 +403,8 @@ export function FormBuilderCanvas({
|
|
|
395
403
|
</YStack>
|
|
396
404
|
))}
|
|
397
405
|
<YStack minWidth={0} data-fb-dropzone={column.key}>
|
|
398
|
-
<
|
|
399
|
-
|
|
400
|
-
outlined
|
|
401
|
-
icon={<PlusIcon size={iconSize} />}
|
|
406
|
+
<IconButton
|
|
407
|
+
icon={PlusIcon}
|
|
402
408
|
aria-label={t("formBuilder.addFieldToColumn", "Add field to {{column}}", {
|
|
403
409
|
column: t(
|
|
404
410
|
"formBuilder.columnPosition",
|
|
@@ -417,9 +423,7 @@ export function FormBuilderCanvas({
|
|
|
417
423
|
onChange(inserted.layout);
|
|
418
424
|
onSelect(inserted.key);
|
|
419
425
|
}}
|
|
420
|
-
|
|
421
|
-
{t("formBuilder.addFieldHere", "Add field")}
|
|
422
|
-
</Button>
|
|
426
|
+
/>
|
|
423
427
|
</YStack>
|
|
424
428
|
</YStack>
|
|
425
429
|
))}
|
package/src/i18n/en.ts
CHANGED
|
@@ -333,6 +333,7 @@ export const en = {
|
|
|
333
333
|
markAllRead: "Mark all as read",
|
|
334
334
|
settingsUnavailable: "Notification settings (not available yet)",
|
|
335
335
|
emptyTitle: "No new notifications",
|
|
336
|
+
unread: "Unread",
|
|
336
337
|
emptyDescription: "Mentions, assignments, and shares will show up here.",
|
|
337
338
|
},
|
|
338
339
|
userMenu: {
|
|
@@ -347,7 +348,7 @@ export const en = {
|
|
|
347
348
|
toggleTheme: "Toggle Theme",
|
|
348
349
|
themeUnavailable: "Theme switching is unavailable on this platform",
|
|
349
350
|
viewWebsite: "View Website",
|
|
350
|
-
exitToSite: "
|
|
351
|
+
exitToSite: "multiplatform.one",
|
|
351
352
|
logOut: "Log Out",
|
|
352
353
|
},
|
|
353
354
|
// Flat surface keys (the migrated screens keep their original flat key
|
|
@@ -366,8 +367,6 @@ export const en = {
|
|
|
366
367
|
workspaceChartFixture: "Chart data is only available on a live bench",
|
|
367
368
|
workspaceChartError: "Couldn't load chart {{title}}",
|
|
368
369
|
workspaceBrowseAll: "Browse all",
|
|
369
|
-
workspaceBrowseAllCount_one: "{{count}} link",
|
|
370
|
-
workspaceBrowseAllCount_other: "{{count}} links",
|
|
371
370
|
workspaceFilterLinks: "Filter links...",
|
|
372
371
|
workspaceFilterNoMatch: 'No links match "{{query}}"',
|
|
373
372
|
workspaceRecents: "Continue where you left off",
|
package/src/index.ts
CHANGED
|
@@ -35,6 +35,7 @@ export { isDoctypeAllowed, resolveCapabilities } from "./config/capabilities";
|
|
|
35
35
|
export type {
|
|
36
36
|
BackofficeCapabilities,
|
|
37
37
|
BackofficeDoctypeScope,
|
|
38
|
+
BackofficeDoctypes,
|
|
38
39
|
CapabilityInput,
|
|
39
40
|
ResolvedBackofficeCapabilities,
|
|
40
41
|
ResolvedCapability,
|
|
@@ -75,7 +76,9 @@ export type {
|
|
|
75
76
|
ControlledNavigatorHandlers,
|
|
76
77
|
} from "./navigation/navigator";
|
|
77
78
|
export {
|
|
79
|
+
ALL_DOCTYPES_SEGMENT,
|
|
78
80
|
BACKOFFICE_BASE,
|
|
81
|
+
allDoctypesPath,
|
|
79
82
|
BACKOFFICE_VIEWS,
|
|
80
83
|
createBackofficePaths,
|
|
81
84
|
formPath,
|
|
@@ -109,11 +112,13 @@ export { HomeRedirect } from "./shell/HomeRedirect";
|
|
|
109
112
|
export { SlugScreen } from "./shell/SlugScreen";
|
|
110
113
|
export type { SlugScreenProps } from "./shell/SlugScreen";
|
|
111
114
|
export { NotFoundScreen } from "./shell/NotFoundScreen";
|
|
115
|
+
export { AllDoctypesScreen, groupDoctypesByModule } from "./shell/AllDoctypesScreen";
|
|
116
|
+
export type { DoctypeModuleGroup } from "./shell/AllDoctypesScreen";
|
|
112
117
|
export { WORKSPACE_SIDEBAR_WIDTH, WorkspaceSidebar } from "./shell/WorkspaceSidebar";
|
|
113
118
|
export type { WorkspaceSidebarProps } from "./shell/WorkspaceSidebar";
|
|
114
119
|
export { useDefaultWorkspace, useSessionUser, useWorkspaces } from "./shell/useWorkspaces";
|
|
115
120
|
export type { WorkspaceDoc, WorkspacesResult } from "./shell/useWorkspaces";
|
|
116
|
-
export { workspaceIcon } from "./shell/workspaceIcons";
|
|
121
|
+
export { moduleIcon, workspaceIcon } from "./shell/workspaceIcons";
|
|
117
122
|
|
|
118
123
|
// Chrome
|
|
119
124
|
export { BackofficeAwesomebar } from "./chrome/BackofficeAwesomebar";
|
|
@@ -141,6 +146,7 @@ export {
|
|
|
141
146
|
export type {
|
|
142
147
|
AwesomebarCatalog,
|
|
143
148
|
AwesomebarCatalogState,
|
|
149
|
+
AwesomebarDoctype,
|
|
144
150
|
AwesomebarWorkspace,
|
|
145
151
|
GlobalSearchHit,
|
|
146
152
|
GlobalSearchState,
|
|
@@ -243,6 +243,6 @@ describe("DoctypeListScreen compact head (FZ-7974)", () => {
|
|
|
243
243
|
expect(screen.queryByTestId("backoffice-list-controls")).toBeNull();
|
|
244
244
|
expect(screen.queryByTestId("backoffice-shell-page-action")).toBeNull();
|
|
245
245
|
expect(screen.getByTestId("list-view-switcher")).toBeTruthy();
|
|
246
|
-
expect(screen.getByLabelText(newLabel).textContent).
|
|
246
|
+
expect(screen.getByLabelText(newLabel).textContent?.trim()).toBe("");
|
|
247
247
|
});
|
|
248
248
|
});
|
|
@@ -21,6 +21,7 @@ import {
|
|
|
21
21
|
XStack,
|
|
22
22
|
YStack,
|
|
23
23
|
notify,
|
|
24
|
+
ActionButton as StandardActionButton,
|
|
24
25
|
} from "@multiplatform.one/components";
|
|
25
26
|
import {
|
|
26
27
|
PageGutter,
|
|
@@ -1053,20 +1054,12 @@ export function DoctypeListScreen({
|
|
|
1053
1054
|
aria-label={t("list.refresh", "Refresh")}
|
|
1054
1055
|
/>
|
|
1055
1056
|
{showNew && (
|
|
1056
|
-
<
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
{
|
|
1057
|
+
<StandardActionButton
|
|
1058
|
+
kind="add"
|
|
1059
|
+
accentInk
|
|
1060
|
+
label={t("list.new", { defaultValue: "New {{doctype}}", doctype })}
|
|
1060
1061
|
onPress={() => setQuickEntryOpen(true)}
|
|
1061
|
-
|
|
1062
|
-
defaultValue: "New {{doctype}}",
|
|
1063
|
-
doctype,
|
|
1064
|
-
})}
|
|
1065
|
-
>
|
|
1066
|
-
{compactChrome
|
|
1067
|
-
? t("list.newShort", "New")
|
|
1068
|
-
: t("list.new", { defaultValue: "New {{doctype}}", doctype })}
|
|
1069
|
-
</ActionButton>
|
|
1062
|
+
/>
|
|
1070
1063
|
)}
|
|
1071
1064
|
</XStack>
|
|
1072
1065
|
);
|
|
@@ -1266,12 +1259,15 @@ export function DoctypeListScreen({
|
|
|
1266
1259
|
})}
|
|
1267
1260
|
action={
|
|
1268
1261
|
showNew ? (
|
|
1269
|
-
<
|
|
1270
|
-
|
|
1262
|
+
<StandardActionButton
|
|
1263
|
+
kind="add"
|
|
1264
|
+
primary
|
|
1265
|
+
label={t("list.new", {
|
|
1271
1266
|
defaultValue: "New {{doctype}}",
|
|
1272
1267
|
doctype,
|
|
1273
1268
|
})}
|
|
1274
|
-
|
|
1269
|
+
onPress={() => setQuickEntryOpen(true)}
|
|
1270
|
+
/>
|
|
1275
1271
|
) : undefined
|
|
1276
1272
|
}
|
|
1277
1273
|
/>
|
|
@@ -10,9 +10,10 @@ import React, { useMemo, useState } from "react";
|
|
|
10
10
|
import { ConfirmDialog, Text, XStack, notify, ActionButton } from "@multiplatform.one/components";
|
|
11
11
|
// Catalog action Button — `error` renders the destructive intent from the
|
|
12
12
|
// semantic ramp instead of a hardcoded named hue (LC-05 ONE-EMPHASIS).
|
|
13
|
-
import { Button } from "@multiplatform.one/forms";
|
|
13
|
+
import { Button, IconButton } from "@multiplatform.one/forms";
|
|
14
14
|
import { sessionDocRights, useFrappeConfig } from "@multiplatform.one/frappe-ui";
|
|
15
15
|
import { useResolvedKnobs } from "@multiplatform.one/theme";
|
|
16
|
+
import { TagIcon } from "@phosphor-icons/react";
|
|
16
17
|
import { useTranslation } from "react-i18next";
|
|
17
18
|
import {
|
|
18
19
|
actionsForDoctype,
|
|
@@ -238,24 +239,26 @@ export function ListBulkActionsBar({
|
|
|
238
239
|
{t("list.editTitle", "Bulk Edit")}
|
|
239
240
|
</Button>
|
|
240
241
|
)}
|
|
241
|
-
<
|
|
242
|
-
|
|
242
|
+
<ActionButton
|
|
243
|
+
kind="export"
|
|
244
|
+
label={t("list.export", "Export CSV")}
|
|
245
|
+
loading={exporting}
|
|
243
246
|
disabled={exporting}
|
|
244
247
|
onPress={() => {
|
|
245
248
|
void handleExport();
|
|
246
249
|
}}
|
|
247
|
-
|
|
248
|
-
{exporting ? t("list.exporting", "Exporting…") : t("list.export", "Export CSV")}
|
|
249
|
-
</Button>
|
|
250
|
+
/>
|
|
250
251
|
{showAssign && (
|
|
251
252
|
<Button size={knobProps.sizeToken} onPress={() => setAssignOpen(true)}>
|
|
252
253
|
{t("list.assignTitle", "Assign To")}
|
|
253
254
|
</Button>
|
|
254
255
|
)}
|
|
255
256
|
{showTags && (
|
|
256
|
-
<
|
|
257
|
-
{
|
|
258
|
-
|
|
257
|
+
<IconButton
|
|
258
|
+
icon={TagIcon}
|
|
259
|
+
aria-label={t("list.tagTitle", "Add Tags")}
|
|
260
|
+
onPress={() => setTagOpen(true)}
|
|
261
|
+
/>
|
|
259
262
|
)}
|
|
260
263
|
{hostActions.map((action) => (
|
|
261
264
|
<Button
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
// House Button: the raw tamagui Button (components re-export) never gets the
|
|
18
18
|
// house 44px press floor (LC-54) — filter chrome takes the forms Button.
|
|
19
19
|
import { Button, IconButton, Input, Select } from "@multiplatform.one/forms";
|
|
20
|
-
import { FunnelIcon,
|
|
20
|
+
import { FunnelIcon, XIcon, type IconProps } from "@phosphor-icons/react";
|
|
21
21
|
import { useImperativeHandle, useMemo, useRef, useState, type Ref } from "react";
|
|
22
22
|
import { useTranslation } from "react-i18next";
|
|
23
23
|
import { sizeRecipeEscape } from "@multiplatform.one/theme";
|
|
@@ -166,9 +166,11 @@ export function FilterEditorPanel({
|
|
|
166
166
|
rowList
|
|
167
167
|
)}
|
|
168
168
|
<XStack gap="$2" alignItems="center" justifyContent="space-between" flexWrap="wrap">
|
|
169
|
-
<
|
|
170
|
-
|
|
171
|
-
|
|
169
|
+
<ActionButton
|
|
170
|
+
kind="add"
|
|
171
|
+
label={t("list.filters.addFilter", "Add filter")}
|
|
172
|
+
onPress={addRow}
|
|
173
|
+
/>
|
|
172
174
|
<XStack gap="$2" alignItems="center">
|
|
173
175
|
{/* Hidden (not bare-disabled) when there is nothing to clear —
|
|
174
176
|
DG-ST-03's hide branch; the empty state line already says
|
|
@@ -7,11 +7,11 @@ import React from "react";
|
|
|
7
7
|
* (picker) and FilterManager (save dialog with name + global toggle).
|
|
8
8
|
* Fixture mode (stories / no bench) runs in-memory.
|
|
9
9
|
*/
|
|
10
|
-
import { XStack, YStack } from "@multiplatform.one/components";
|
|
10
|
+
import { ActionButton, XStack, YStack } from "@multiplatform.one/components";
|
|
11
11
|
// Catalog Button: the inline save affordance disables while there is nothing
|
|
12
12
|
// to save — the catalog `disabledReason` explains it (DG-ST-03) instead of a
|
|
13
13
|
// bare dangle.
|
|
14
|
-
import {
|
|
14
|
+
import { Input } from "@multiplatform.one/forms";
|
|
15
15
|
import { useFrappeConfig } from "@multiplatform.one/frappe-ui";
|
|
16
16
|
import {
|
|
17
17
|
FilterManager,
|
|
@@ -139,8 +139,9 @@ export function SavedFiltersControl({
|
|
|
139
139
|
aria-label={t("list.filters.filterName", "Filter name")}
|
|
140
140
|
/>
|
|
141
141
|
</YStack>
|
|
142
|
-
<
|
|
143
|
-
|
|
142
|
+
<ActionButton
|
|
143
|
+
kind="save"
|
|
144
|
+
label={t("list.filters.saveFilter", "Save Filter")}
|
|
144
145
|
disabled={filters.length === 0 || !draftName.trim()}
|
|
145
146
|
disabledReason={
|
|
146
147
|
filters.length === 0
|
|
@@ -150,9 +151,7 @@ export function SavedFiltersControl({
|
|
|
150
151
|
: undefined
|
|
151
152
|
}
|
|
152
153
|
onPress={handleInlineSave}
|
|
153
|
-
|
|
154
|
-
{t("list.filters.saveFilter", "Save Filter")}
|
|
155
|
-
</Button>
|
|
154
|
+
/>
|
|
156
155
|
</XStack>
|
|
157
156
|
</YStack>
|
|
158
157
|
);
|
|
@@ -6,7 +6,7 @@ import { SidebarFacetRow } from "./sidebar-section";
|
|
|
6
6
|
|
|
7
7
|
afterEach(cleanup);
|
|
8
8
|
|
|
9
|
-
describe("SidebarFacetRow stacked
|
|
9
|
+
describe("SidebarFacetRow is an MPO ListRow in a stacked group (LC-72, LC-175)", () => {
|
|
10
10
|
it("resolves first / middle / last from GroupPositionContext", () => {
|
|
11
11
|
renderWithProviders(
|
|
12
12
|
<>
|
|
@@ -25,4 +25,18 @@ describe("SidebarFacetRow stacked-group radius (LC-72)", () => {
|
|
|
25
25
|
expect(screen.getByLabelText("Closed").getAttribute("data-group-position")).toBe("middle");
|
|
26
26
|
expect(screen.getByLabelText("Cancelled").getAttribute("data-group-position")).toBe("last");
|
|
27
27
|
});
|
|
28
|
+
|
|
29
|
+
it("trails its count as plain secondary text, not a chip", () => {
|
|
30
|
+
renderWithProviders(
|
|
31
|
+
<SidebarFacetRow label="Open" count={4} active={false} onPress={vi.fn()} />,
|
|
32
|
+
);
|
|
33
|
+
const count = screen.getByText("4");
|
|
34
|
+
expect(count.closest("[data-list-slot=meta]")).not.toBeNull();
|
|
35
|
+
expect(count.closest("[data-chip], [role=status]")).toBeNull();
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
it("marks the applied facet selected", () => {
|
|
39
|
+
renderWithProviders(<SidebarFacetRow label="Open" count={4} active onPress={vi.fn()} />);
|
|
40
|
+
expect(screen.getByLabelText("Open").getAttribute("data-selected")).toBe("true");
|
|
41
|
+
});
|
|
28
42
|
});
|
|
@@ -1,30 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Presentational pieces for the list sidebar: a collapsible facet section
|
|
3
3
|
* (one Accordion.Item — the Accordion root lives in ListSidebar so sections
|
|
4
|
-
* share open state), a facet row (label
|
|
5
|
-
* the per-section loading skeleton.
|
|
4
|
+
* share open state), a facet row (MPO ListRow: label, trailing count, selected
|
|
5
|
+
* when applied), and the per-section loading skeleton.
|
|
6
6
|
*/
|
|
7
7
|
import {
|
|
8
8
|
Accordion,
|
|
9
|
-
|
|
9
|
+
ListGroup,
|
|
10
|
+
ListGroupItem,
|
|
11
|
+
ListRow,
|
|
10
12
|
SizableText,
|
|
11
13
|
Skeleton,
|
|
12
14
|
XStack,
|
|
13
15
|
YStack,
|
|
14
16
|
useAccordionTriggerInk,
|
|
15
17
|
} from "@multiplatform.one/components";
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
ensureFocusVisibleRing,
|
|
19
|
-
getGroupPosition,
|
|
20
|
-
hairline,
|
|
21
|
-
sizeRecipeEscape,
|
|
22
|
-
sizeRecipeForToken,
|
|
23
|
-
stackRadiusProps,
|
|
24
|
-
useGroupPosition,
|
|
25
|
-
useResolvedKnobs,
|
|
26
|
-
} from "@multiplatform.one/theme";
|
|
27
|
-
import { Children, Fragment, isValidElement, type ReactNode } from "react";
|
|
18
|
+
import { sizeRecipeEscape, sizeRecipeForToken, useResolvedKnobs } from "@multiplatform.one/theme";
|
|
19
|
+
import type { ReactNode } from "react";
|
|
28
20
|
import { useTranslation } from "react-i18next";
|
|
29
21
|
import { BACKOFFICE_I18N_NAMESPACE } from "../i18n";
|
|
30
22
|
|
|
@@ -47,23 +39,13 @@ function SidebarSectionTitle({ title }: { title: string }) {
|
|
|
47
39
|
/** Trigger + facet stack. ListSidebar wraps this in Accordion.Item so the
|
|
48
40
|
* Accordion root can count items (a custom Item wrapper is opaque). */
|
|
49
41
|
export function SidebarSectionChrome({ title, children }: Omit<SidebarSectionProps, "value">) {
|
|
50
|
-
const rows = Children.toArray(children);
|
|
51
42
|
return (
|
|
52
43
|
<>
|
|
53
44
|
<Accordion.Trigger minHeight="$4" paddingVertical="$1.5" paddingHorizontal="$2">
|
|
54
45
|
<SidebarSectionTitle title={title} />
|
|
55
46
|
</Accordion.Trigger>
|
|
56
47
|
<Accordion.Content padding={0}>
|
|
57
|
-
<
|
|
58
|
-
{rows.map((child, index) => (
|
|
59
|
-
<Fragment key={isValidElement(child) && child.key != null ? String(child.key) : index}>
|
|
60
|
-
{index > 0 ? <YStack {...hairline.line} /> : null}
|
|
61
|
-
<GroupPositionContext.Provider value={getGroupPosition(index, rows.length)}>
|
|
62
|
-
{child}
|
|
63
|
-
</GroupPositionContext.Provider>
|
|
64
|
-
</Fragment>
|
|
65
|
-
))}
|
|
66
|
-
</YStack>
|
|
48
|
+
<ListGroup>{children}</ListGroup>
|
|
67
49
|
</Accordion.Content>
|
|
68
50
|
</>
|
|
69
51
|
);
|
|
@@ -86,50 +68,10 @@ export interface SidebarFacetRowProps {
|
|
|
86
68
|
}
|
|
87
69
|
|
|
88
70
|
export function SidebarFacetRow({ label, count, active, onPress }: SidebarFacetRowProps) {
|
|
89
|
-
const { knobProps } = useResolvedKnobs();
|
|
90
|
-
const position = useGroupPosition() ?? "only";
|
|
91
|
-
const corners = stackRadiusProps(position, knobProps.borderRadius.borderRadius);
|
|
92
71
|
return (
|
|
93
|
-
<
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
aria-label={label}
|
|
97
|
-
alignItems="center"
|
|
98
|
-
justifyContent="space-between"
|
|
99
|
-
gap="$2"
|
|
100
|
-
paddingVertical="$1.5"
|
|
101
|
-
paddingHorizontal="$2"
|
|
102
|
-
overflow="hidden"
|
|
103
|
-
{...corners}
|
|
104
|
-
{...{ "data-group-position": position }}
|
|
105
|
-
cursor="pointer"
|
|
106
|
-
backgroundColor={active ? "$color4" : "transparent"}
|
|
107
|
-
hoverStyle={{
|
|
108
|
-
backgroundColor: active ? "$color5" : "$color3",
|
|
109
|
-
...corners,
|
|
110
|
-
}}
|
|
111
|
-
pressStyle={{ backgroundColor: "$color5", ...corners }}
|
|
112
|
-
tabIndex={0}
|
|
113
|
-
outlineWidth={0}
|
|
114
|
-
focusStyle={{ outlineWidth: 0 }}
|
|
115
|
-
focusVisibleStyle={ensureFocusVisibleRing({ outlineOffset: -2 })}
|
|
116
|
-
onPress={onPress}
|
|
117
|
-
onKeyDown={
|
|
118
|
-
((e: { key?: string; preventDefault?: () => void }) => {
|
|
119
|
-
if (e.key === "Enter" || e.key === " ") {
|
|
120
|
-
e.preventDefault?.();
|
|
121
|
-
onPress();
|
|
122
|
-
}
|
|
123
|
-
}) as unknown as () => void
|
|
124
|
-
}
|
|
125
|
-
>
|
|
126
|
-
<SizableText size="$3" numberOfLines={1} flexShrink={1} fontWeight="400">
|
|
127
|
-
{label}
|
|
128
|
-
</SizableText>
|
|
129
|
-
<Chip size="$2" variant="subtle" color="gray">
|
|
130
|
-
{count}
|
|
131
|
-
</Chip>
|
|
132
|
-
</XStack>
|
|
72
|
+
<ListGroupItem selected={active} onPress={onPress} aria-label={label} aria-pressed={active}>
|
|
73
|
+
<ListRow title={label} meta={String(count)} />
|
|
74
|
+
</ListGroupItem>
|
|
133
75
|
);
|
|
134
76
|
}
|
|
135
77
|
|
|
@@ -148,7 +90,7 @@ export function SidebarSectionSkeleton({ rows = 3 }: SidebarSectionSkeletonProps
|
|
|
148
90
|
<Skeleton width={`${55 + ((index * 13) % 25)}%`} height={lineBone} />
|
|
149
91
|
<Skeleton
|
|
150
92
|
variant="rounded"
|
|
151
|
-
width={sizeRecipeEscape(26, "count bone: the width of a two-digit count
|
|
93
|
+
width={sizeRecipeEscape(26, "count bone: the width of a two-digit count")}
|
|
152
94
|
height={lineBone}
|
|
153
95
|
/>
|
|
154
96
|
</XStack>
|
package/src/navigation/paths.ts
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* {base}/[slug]/new → new document (optional `?d=` JSON prefill)
|
|
9
9
|
* {base}/[slug]/[name] → document form page
|
|
10
10
|
* {base}/customize-form → form builder (`?doc_type=` picks the DocType)
|
|
11
|
+
* {base}/all-doctypes → every DocType on offer, grouped by module
|
|
11
12
|
*
|
|
12
13
|
* Slugs follow frappe's router slugs: lowercase, spaces → dashes
|
|
13
14
|
* ("Sales Order" → "sales-order").
|
|
@@ -22,6 +23,9 @@
|
|
|
22
23
|
|
|
23
24
|
export const BACKOFFICE_BASE = "/backoffice";
|
|
24
25
|
|
|
26
|
+
/** Reserved first segment of the All DocTypes page. */
|
|
27
|
+
export const ALL_DOCTYPES_SEGMENT = "all-doctypes";
|
|
28
|
+
|
|
25
29
|
export type BackofficeSubPath = `${typeof BACKOFFICE_BASE}/${string}`;
|
|
26
30
|
export type BackofficePath = typeof BACKOFFICE_BASE | BackofficeSubPath;
|
|
27
31
|
|
|
@@ -96,6 +100,8 @@ export interface BackofficePaths {
|
|
|
96
100
|
formBuilder(doctype?: string): string;
|
|
97
101
|
/** Query/Script Report page (desk /app/query-report/<name>). */
|
|
98
102
|
queryReport(reportName: string): string;
|
|
103
|
+
/** Every DocType on offer, grouped by module. */
|
|
104
|
+
allDoctypes(): string;
|
|
99
105
|
}
|
|
100
106
|
|
|
101
107
|
export function createBackofficePaths(basePath: string = BACKOFFICE_BASE): BackofficePaths {
|
|
@@ -119,6 +125,7 @@ export function createBackofficePaths(basePath: string = BACKOFFICE_BASE): Backo
|
|
|
119
125
|
formBuilder: (doctype) =>
|
|
120
126
|
`${prefix}/customize-form${doctype ? `?doc_type=${encodeURIComponent(doctype)}` : ""}`,
|
|
121
127
|
queryReport: (reportName) => `${prefix}/query-report/${encodeURIComponent(reportName)}`,
|
|
128
|
+
allDoctypes: () => `${prefix}/${ALL_DOCTYPES_SEGMENT}`,
|
|
122
129
|
};
|
|
123
130
|
}
|
|
124
131
|
|
|
@@ -159,6 +166,10 @@ export function queryReportPath(reportName: string): BackofficeSubPath {
|
|
|
159
166
|
return defaultPaths.queryReport(reportName) as BackofficeSubPath;
|
|
160
167
|
}
|
|
161
168
|
|
|
169
|
+
export function allDoctypesPath(): BackofficeSubPath {
|
|
170
|
+
return defaultPaths.allDoctypes() as BackofficeSubPath;
|
|
171
|
+
}
|
|
172
|
+
|
|
162
173
|
export function formBuilderPath(doctype?: string): BackofficeSubPath {
|
|
163
174
|
return defaultPaths.formBuilder(doctype) as BackofficeSubPath;
|
|
164
175
|
}
|
|
@@ -22,10 +22,11 @@ import React from "react";
|
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
24
|
import { AsyncSkeleton, ScrollView, Text, XStack, YStack } from "@multiplatform.one/components";
|
|
25
|
-
import { AdaptivePopup, Button } from "@multiplatform.one/forms";
|
|
25
|
+
import { AdaptivePopup, Button, IconButton } from "@multiplatform.one/forms";
|
|
26
26
|
import type { FrappeDocData } from "@multiplatform.one/frappe";
|
|
27
27
|
import { SchemaForm, useFrappeConfig } from "@multiplatform.one/frappe-ui";
|
|
28
28
|
import { sizeRecipeEscape, useResolvedKnobs } from "@multiplatform.one/theme";
|
|
29
|
+
import { ArrowsOutSimpleIcon } from "@phosphor-icons/react";
|
|
29
30
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
30
31
|
import { useTranslation } from "react-i18next";
|
|
31
32
|
import { useBackofficeCapabilities } from "../config/BackofficeProvider";
|
|
@@ -269,9 +270,12 @@ export function QuickEntryDialog({
|
|
|
269
270
|
alignItems="center"
|
|
270
271
|
flexWrap="wrap"
|
|
271
272
|
>
|
|
272
|
-
<
|
|
273
|
-
{
|
|
274
|
-
|
|
273
|
+
<IconButton
|
|
274
|
+
icon={ArrowsOutSimpleIcon}
|
|
275
|
+
aria-label={t("quickEntry.editFullForm", "Edit Full Form")}
|
|
276
|
+
onPress={handleEditFullForm}
|
|
277
|
+
testID="quick-entry-edit-full-form"
|
|
278
|
+
/>
|
|
275
279
|
<Button
|
|
276
280
|
accent
|
|
277
281
|
loading={saving}
|
|
@@ -335,9 +339,11 @@ export function QuickEntryDialog({
|
|
|
335
339
|
{metaError.message}
|
|
336
340
|
</Text>
|
|
337
341
|
<XStack justifyContent="flex-end">
|
|
338
|
-
<
|
|
339
|
-
{
|
|
340
|
-
|
|
342
|
+
<IconButton
|
|
343
|
+
icon={ArrowsOutSimpleIcon}
|
|
344
|
+
aria-label={t("quickEntry.editFullForm", "Edit Full Form")}
|
|
345
|
+
onPress={handleEditFullForm}
|
|
346
|
+
/>
|
|
341
347
|
</XStack>
|
|
342
348
|
</YStack>
|
|
343
349
|
) : (
|
|
@@ -126,7 +126,6 @@ describe("QueryReportScreen refused run", () => {
|
|
|
126
126
|
|
|
127
127
|
await screen.findByTestId("frappe-report-not-permitted", {}, { timeout: 8000 });
|
|
128
128
|
expect(screen.queryByRole("button", { name: /export csv/i })).toBeNull();
|
|
129
|
-
expect(screen.queryByText("Export CSV")).toBeNull();
|
|
130
129
|
});
|
|
131
130
|
|
|
132
131
|
// Verbatim from pokemon's bench signed out: is_whitelisted refuses Guest with
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
import { DataTable, DataTablePagination } from "@multiplatform.one/table";
|
|
26
26
|
import { downloadBlob } from "@multiplatform.one/platform";
|
|
27
27
|
import { useResolvedKnobs } from "@multiplatform.one/theme";
|
|
28
|
-
import { ArrowClockwiseIcon
|
|
28
|
+
import { ArrowClockwiseIcon } from "@phosphor-icons/react";
|
|
29
29
|
import { useCallback, useEffect, useMemo, useRef } from "react";
|
|
30
30
|
import { useTranslation } from "react-i18next";
|
|
31
31
|
import {
|
|
@@ -330,15 +330,12 @@ export function QueryReportScreen({
|
|
|
330
330
|
onPress={report.reload}
|
|
331
331
|
disabled={report.loading}
|
|
332
332
|
/>
|
|
333
|
-
<
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
icon={DownloadSimpleIcon}
|
|
333
|
+
<ActionButton
|
|
334
|
+
kind="export"
|
|
335
|
+
label={t("queryReport.exportCsv", "Export CSV")}
|
|
337
336
|
onPress={handleExport}
|
|
338
337
|
disabled={report.loading || report.rows.length === 0}
|
|
339
|
-
|
|
340
|
-
{t("queryReport.exportCsv", "Export CSV")}
|
|
341
|
-
</Button>
|
|
338
|
+
/>
|
|
342
339
|
</>
|
|
343
340
|
)}
|
|
344
341
|
</XStack>
|