@cccsaurora/howler-ui 3.1.0-dev.1493 → 3.1.0-dev.1602
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/api/action/execute.d.ts +1 -1
- package/api/action/index.d.ts +10 -6
- package/api/action/index.js +5 -9
- package/api/action/operations.js +2 -2
- package/api/analytic/comments/index.d.ts +4 -6
- package/api/analytic/comments/react.d.ts +2 -2
- package/api/analytic/favourite.d.ts +2 -4
- package/api/analytic/index.d.ts +7 -4
- package/api/analytic/index.js +2 -2
- package/api/analytic/notebooks/index.d.ts +2 -4
- package/api/analytic/owner.d.ts +1 -1
- package/api/auth/apikey.d.ts +2 -2
- package/api/auth/login.d.ts +2 -2
- package/api/configs/index.d.ts +1 -1
- package/api/dossier.d.ts +16 -0
- package/api/{dossier/index.js → dossier.js} +6 -4
- package/api/help.d.ts +2 -2
- package/api/hit/assign.d.ts +6 -2
- package/api/hit/comments/index.d.ts +4 -6
- package/api/hit/comments/react.d.ts +2 -2
- package/api/hit/index.d.ts +3 -8
- package/api/hit/labels.d.ts +2 -2
- package/api/hit/overwrite.d.ts +1 -1
- package/api/hit/transition.d.ts +1 -1
- package/api/index.d.ts +6 -6
- package/api/index.js +7 -6
- package/api/notebook/environments.d.ts +1 -1
- package/api/notebook/index.d.ts +1 -1
- package/api/overview/index.d.ts +4 -4
- package/api/search/action.d.ts +1 -1
- package/api/search/analytic.d.ts +1 -1
- package/api/search/case.d.ts +1 -1
- package/api/search/count/hit.d.ts +1 -1
- package/api/search/dossier.d.ts +1 -1
- package/api/search/eql/hit.d.ts +1 -1
- package/api/search/explain/hit.d.ts +1 -1
- package/api/search/facet/hit.d.ts +1 -1
- package/api/search/fields/hit.js +1 -2
- package/api/search/fields/user.js +2 -4
- package/api/search/grouped/hit.d.ts +1 -1
- package/api/search/grouped/user.js +3 -0
- package/api/search/histogram/hit.d.ts +1 -1
- package/api/search/hit.d.ts +1 -1
- package/api/search/overview.d.ts +1 -1
- package/api/search/sigma/hit.d.ts +1 -1
- package/api/search/template.d.ts +1 -1
- package/api/search/user.d.ts +30 -2
- package/api/search/user.js +3 -0
- package/api/search/view.d.ts +1 -1
- package/api/socket/viewers.d.ts +1 -1
- package/api/socket/viewers.js +1 -1
- package/api/template/index.d.ts +3 -3
- package/api/template/index.js +2 -2
- package/api/user/avatar/index.d.ts +1 -1
- package/api/user/groups.d.ts +1 -1
- package/api/user/index.d.ts +2 -2
- package/api/user/whoami.d.ts +1 -1
- package/api/utils/createPermissionsApi.d.ts +10 -0
- package/api/utils/createPermissionsApi.js +10 -0
- package/api/v2/case/index.d.ts +4 -4
- package/api/v2/case/items.d.ts +3 -3
- package/api/v2/case/rules.d.ts +3 -3
- package/api/v2/fuzzy.d.ts +1 -1
- package/api/v2/search/facet.d.ts +1 -1
- package/api/v2/search/index.d.ts +1 -1
- package/api/view/favourite.d.ts +2 -4
- package/api/view/index.d.ts +9 -5
- package/api/view/index.js +3 -1
- package/branding/AppBrand.d.ts +2 -2
- package/branding/AppBrand.js +4 -6
- package/components/app/App.js +248 -51
- package/components/app/AppContainer.js +1 -1
- package/components/app/drawers/ApiKeyDrawer.js +13 -5
- package/components/app/drawers/AssignUserDrawer.js +11 -4
- package/components/app/hooks/useMatchers.d.ts +3 -3
- package/components/app/hooks/useMatchers.js +12 -12
- package/components/app/hooks/useMatchers.test.js +15 -14
- package/components/app/hooks/useTitle.js +8 -7
- package/components/app/providers/AnalyticProvider.d.ts +1 -1
- package/components/app/providers/AnalyticProvider.js +7 -4
- package/components/app/providers/ApiConfigProvider.d.ts +2 -1
- package/components/app/providers/ApiConfigProvider.js +12 -10
- package/components/app/providers/AppDrawerProvider.js +2 -2
- package/components/app/providers/AvatarProvider.js +18 -11
- package/components/app/providers/FavouritesProvider.js +56 -86
- package/components/app/providers/FieldProvider.js +1 -1
- package/components/app/providers/GridColumnsProvider.d.ts +1 -1
- package/components/app/providers/GridColumnsProvider.js +17 -4
- package/components/app/providers/GridColumnsProvider.test.js +2 -1
- package/components/app/providers/LocalStorageProvider.d.ts +2 -2
- package/components/app/providers/LocalStorageProvider.js +4 -3
- package/components/app/providers/ModalProvider.js +8 -1
- package/components/app/providers/OverviewProvider.js +10 -2
- package/components/app/providers/ParameterProvider.d.ts +7 -7
- package/components/app/providers/ParameterProvider.js +42 -5
- package/components/app/providers/ParameterProvider.test.js +1 -0
- package/components/app/providers/RecordProvider.js +7 -1
- package/components/app/providers/RecordSearchProvider.d.ts +1 -2
- package/components/app/providers/RecordSearchProvider.js +32 -23
- package/components/app/providers/RecordSearchProvider.test.js +2 -1
- package/components/app/providers/SearchResponseProvider.d.ts +9 -6
- package/components/app/providers/SearchResponseProvider.js +37 -19
- package/components/app/providers/SearchResponseProvider.test.js +37 -11
- package/components/app/providers/SocketProvider.js +6 -4
- package/components/app/providers/UserListProvider.d.ts +1 -1
- package/components/app/providers/ViewProvider.d.ts +2 -2
- package/components/app/providers/ViewProvider.js +22 -12
- package/components/app/providers/ViewProvider.test.js +2 -2
- package/components/app/providers/contextUtils.d.ts +1 -0
- package/components/app/providers/contextUtils.js +3 -0
- package/components/elements/Comment.d.ts +1 -1
- package/components/elements/Comment.js +11 -9
- package/components/elements/ContextMenu.js +1 -1
- package/components/elements/ContextMenu.test.js +2 -2
- package/components/elements/EditRow.d.ts +9 -4
- package/components/elements/EditRow.js +5 -4
- package/components/elements/MarkdownEditor.js +1 -1
- package/components/elements/MembershipManagement.test.js +178 -0
- package/components/elements/ObjectDetails.js +6 -6
- package/components/elements/ThemedEditor.js +17 -17
- package/components/elements/UserList.d.ts +2 -0
- package/components/elements/UserList.js +26 -18
- package/components/elements/UserList.test.js +24 -1
- package/components/elements/addons/buttons/CustomButton.d.ts +1 -1
- package/components/elements/addons/buttons/CustomButton.js +2 -2
- package/components/elements/addons/buttons/CustomIconButton.d.ts +1 -1
- package/components/elements/addons/buttons/CustomIconButton.js +3 -3
- package/components/elements/addons/buttons/index.d.ts +1 -1
- package/components/elements/addons/layout/FlexOne.d.ts +2 -2
- package/components/elements/addons/layout/FlexOne.test.js +1 -0
- package/components/elements/addons/layout/FlexPort.d.ts +1 -1
- package/components/elements/addons/layout/FlexPort.js +9 -2
- package/components/elements/addons/layout/FlexVertical.d.ts +2 -2
- package/components/elements/addons/layout/FlexVertical.js +1 -1
- package/components/elements/addons/layout/vsbox/VSBox.d.ts +2 -2
- package/components/elements/addons/layout/vsbox/VSBox.js +5 -4
- package/components/elements/addons/layout/vsbox/VSBoxElement.d.ts +1 -1
- package/components/elements/addons/layout/vsbox/VSBoxHeader.js +4 -3
- package/components/elements/addons/lists/TuiList.d.ts +2 -2
- package/components/elements/addons/lists/TuiList.js +1 -1
- package/components/elements/addons/lists/TuiListBase.d.ts +2 -2
- package/components/elements/addons/lists/TuiListBase.js +4 -4
- package/components/elements/addons/lists/TuiListElement.d.ts +2 -2
- package/components/elements/addons/lists/TuiListElement.js +2 -2
- package/components/elements/addons/lists/TuiListMenu.d.ts +13 -37
- package/components/elements/addons/lists/TuiListMenu.js +8 -8
- package/components/elements/addons/lists/TuiListProvider.d.ts +2 -2
- package/components/elements/addons/lists/TuiListProvider.js +4 -4
- package/components/elements/addons/lists/hooks/useTuiListKeyboard.js +1 -1
- package/components/elements/addons/lists/table/TuiTable.d.ts +1 -1
- package/components/elements/addons/lists/table/TuiTable.js +1 -1
- package/components/elements/addons/lists/table/TuiTableBody.d.ts +1 -1
- package/components/elements/addons/lists/table/TuiTableBody.js +1 -1
- package/components/elements/addons/lists/table/TuiTableHead.d.ts +1 -1
- package/components/elements/addons/lists/table/TuiTableHead.js +1 -1
- package/components/elements/addons/lists/table/TuiTableHeader.d.ts +1 -1
- package/components/elements/addons/lists/table/TuiTableLayout.js +1 -1
- package/components/elements/addons/search/SearchPagination.d.ts +1 -1
- package/components/elements/addons/search/SearchPagination.test.js +1 -1
- package/components/elements/addons/search/SearchTotal.d.ts +1 -1
- package/components/elements/addons/search/phrase/Phrase.d.ts +2 -2
- package/components/elements/addons/search/phrase/Phrase.js +7 -7
- package/components/elements/addons/search/phrase/PhraseConsumer.d.ts +2 -2
- package/components/elements/addons/search/phrase/PhraseLexer.d.ts +1 -1
- package/components/elements/addons/search/phrase/PhraseLexer.js +6 -6
- package/components/elements/addons/search/phrase/WordLexer.test.js +1 -0
- package/components/elements/addons/search/phrase/index.d.ts +2 -2
- package/components/elements/addons/search/phrase/index.js +3 -2
- package/components/elements/addons/search/phrase/word/consumers/WhitespaceConsumer.d.ts +1 -1
- package/components/elements/addons/search/phrase/word/consumers/WhitespaceConsumer.js +1 -1
- package/components/elements/addons/search/phrase/word/consumers/WordConsumer.d.ts +1 -1
- package/components/elements/case/CaseCard.js +10 -4
- package/components/elements/case/CasePreview.js +1 -1
- package/components/elements/display/ActionButton.js +3 -1
- package/components/elements/display/ChipPopper.js +1 -1
- package/components/elements/display/ChipPopper.test.js +1 -0
- package/components/elements/display/Classification.js +6 -5
- package/components/elements/display/ClassificationChip.d.ts +2 -4
- package/components/elements/display/ClassificationChip.js +5 -3
- package/components/elements/display/DocumentationButton.js +1 -1
- package/components/elements/display/DocumentationButton.test.js +1 -1
- package/components/elements/display/HandlebarsMarkdown.js +2 -2
- package/components/elements/display/HowlerAvatar.d.ts +1 -0
- package/components/elements/display/HowlerAvatar.js +5 -4
- package/components/elements/display/HowlerAvatarHeader.js +2 -2
- package/components/elements/display/Image.test.js +1 -0
- package/components/elements/display/ItemManager.d.ts +6 -6
- package/components/elements/display/ItemManager.js +1 -1
- package/components/elements/display/Markdown.js +9 -3
- package/components/elements/display/Modal.js +3 -3
- package/components/elements/display/QueryResultText.js +1 -1
- package/components/elements/display/TextDivider.test.js +1 -0
- package/components/elements/display/TypingIndicator.d.ts +1 -1
- package/components/elements/display/UserPageWrapper.js +2 -2
- package/components/elements/display/handlebars/helpers.js +1 -1
- package/components/elements/display/json/JSONViewer.js +2 -2
- package/components/elements/display/markdownPlugins/tabs.js +4 -0
- package/components/elements/display/modals/CreateActionModal.js +1 -1
- package/components/elements/display/modals/RationaleModal.js +1 -2
- package/components/elements/display/modals/RationaleModal.test.js +9 -5
- package/components/elements/event/EventPreview.js +1 -1
- package/components/elements/hit/HitActions.js +5 -7
- package/components/elements/hit/HitBanner.js +4 -16
- package/components/elements/hit/HitBanner.test.js +11 -20
- package/components/elements/hit/HitLabels.js +23 -13
- package/components/elements/hit/HitLinks.js +4 -4
- package/components/elements/hit/HitNotebooks.js +28 -10
- package/components/elements/hit/HitOutline.js +9 -15
- package/components/elements/hit/HitOutline.test.js +5 -5
- package/components/elements/hit/HitOverview.js +3 -3
- package/components/elements/hit/HitPreview.d.ts +1 -1
- package/components/elements/hit/HitPreview.js +6 -7
- package/components/elements/hit/HitSummary.js +8 -8
- package/components/elements/hit/PivotTooltip.js +1 -1
- package/components/elements/hit/actions/ButtonActions.js +2 -2
- package/components/elements/hit/actions/DropdownActions.js +4 -4
- package/components/elements/hit/aggregate/HitGraph.js +28 -11
- package/components/elements/hit/elements/AnalyticLink.js +2 -2
- package/components/elements/hit/elements/AnalyticLink.test.js +1 -1
- package/components/elements/hit/elements/Assigned.js +1 -1
- package/components/elements/hit/elements/Assigned.test.js +1 -1
- package/components/elements/hit/elements/EscalationChip.js +2 -2
- package/components/elements/hit/elements/HitTimestamp.js +2 -2
- package/components/elements/hit/grid/AddColumnModal.js +2 -2
- package/components/elements/hit/grid/ColumnHeader.js +1 -1
- package/components/elements/hit/grid/RecordRow.js +1 -1
- package/components/elements/hit/grid/RecordTable.d.ts +4 -3
- package/components/elements/hit/grid/RecordTable.js +6 -6
- package/components/elements/hit/related/PivotLink.js +2 -2
- package/components/elements/hit/related/RelatedIcon.js +2 -2
- package/components/elements/hit/related/RelatedLink.js +1 -1
- package/components/elements/hit/related/RelatedRecords.js +1 -1
- package/components/elements/membership/Members.d.ts +6 -0
- package/components/elements/membership/Members.js +14 -0
- package/components/elements/membership/MembershipManagement.d.ts +9 -0
- package/components/elements/membership/MembershipManagement.js +119 -0
- package/components/elements/membership/types.d.ts +7 -0
- package/components/elements/membership/utils.d.ts +2 -0
- package/components/elements/membership/utils.js +6 -0
- package/components/elements/record/RecordComments.js +16 -10
- package/components/elements/record/RecordContextMenu.d.ts +2 -2
- package/components/elements/record/RecordContextMenu.js +11 -5
- package/components/elements/record/RecordContextMenu.test.js +14 -6
- package/components/elements/record/RecordRelated.js +2 -2
- package/components/elements/search/FuzzySearchBar.js +1 -1
- package/components/elements/view/LayoutToggle.d.ts +1 -1
- package/components/elements/view/ViewTitle.js +3 -4
- package/components/hooks/useHitActions.d.ts +1 -1
- package/components/hooks/useHitActions.js +25 -15
- package/components/hooks/useLocalStorage.d.ts +1 -1
- package/components/hooks/useLocalStorage.js +1 -1
- package/components/hooks/useLocalStorageItem.d.ts +11 -1
- package/components/hooks/useLocalStorageItem.js +7 -5
- package/components/hooks/useLocalStorageItem.test.js +23 -0
- package/components/hooks/useMyAccessibility.d.ts +7 -0
- package/components/hooks/useMyAccessibility.js +21 -0
- package/components/hooks/useMyApi.d.ts +1 -1
- package/components/hooks/useMyApi.js +4 -4
- package/components/hooks/useMyChart.d.ts +46 -48
- package/components/hooks/useMyChart.js +30 -9
- package/components/hooks/useMyCookies.d.ts +3 -0
- package/components/hooks/useMyCookies.js +8 -0
- package/components/hooks/useMyLocalStorage.d.ts +8 -2
- package/components/hooks/useMyLocalStorage.js +1 -1
- package/components/hooks/useMyPreferences.d.ts +1 -1
- package/components/hooks/useMyPreferences.js +93 -127
- package/components/hooks/useMyRouter.d.ts +2 -0
- package/components/hooks/useMyRouter.js +24 -0
- package/components/hooks/useMySearch.d.ts +1 -1
- package/components/hooks/useMySearch.js +17 -7
- package/components/hooks/useMySnackbar.js +1 -1
- package/components/hooks/useMyTheme.d.ts +1 -1
- package/components/hooks/useMyTheme.js +13 -8
- package/components/hooks/useMyTheme.test.js +11 -6
- package/components/hooks/useMyUser.d.ts +1 -1
- package/components/hooks/useMyUser.js +6 -5
- package/components/hooks/useMyUserFunctions.d.ts +2 -2
- package/components/hooks/useMyUserFunctions.js +14 -10
- package/components/hooks/useMyUserList.d.ts +1 -1
- package/components/hooks/useMyUtils.js +1 -1
- package/components/hooks/useParamState.js +5 -3
- package/components/hooks/useParamState.test.js +1 -1
- package/components/hooks/useRecordSelection.d.ts +4 -3
- package/components/hooks/useRecordSelection.js +5 -5
- package/components/hooks/useScrollRestoration.js +3 -3
- package/components/logins/Login.d.ts +1 -1
- package/components/logins/Login.js +4 -6
- package/components/logins/auth/OAuthLogin.js +1 -1
- package/components/logins/auth/UserPassLogin.d.ts +1 -1
- package/components/logins/hooks/useLogin.js +10 -6
- package/components/routes/403.js +1 -1
- package/components/routes/403.test.js +7 -3
- package/components/routes/404.js +1 -1
- package/components/routes/404.test.js +7 -3
- package/components/routes/ErrorBoundary.d.ts +2 -2
- package/components/routes/ErrorBoundary.js +2 -2
- package/components/routes/ErrorBoundary.test.js +1 -4
- package/components/routes/ErrorOccured.js +1 -1
- package/components/routes/ErrorOccured.test.js +7 -3
- package/components/routes/Logout.js +3 -4
- package/components/routes/Logout.test.js +12 -11
- package/components/routes/action/edit/ActionEditor.js +38 -30
- package/components/routes/action/shared/ActionReportDisplay.js +1 -1
- package/components/routes/action/shared/OperationEntry.js +2 -2
- package/components/routes/action/shared/OperationStep.js +12 -10
- package/components/routes/action/useMyActionFunctions.d.ts +3 -3
- package/components/routes/action/useMyActionFunctions.js +13 -13
- package/components/routes/action/view/ActionDetails.d.ts +1 -1
- package/components/routes/action/view/ActionDetails.js +46 -26
- package/components/routes/action/view/ActionSearch.js +11 -10
- package/components/routes/action/view/Integrations.js +2 -2
- package/components/routes/action/view/markdown/integrations.en.md.js +1 -1
- package/components/routes/action/view/markdown/integrations.fr.md.js +1 -1
- package/components/routes/admin/users/UserEditor.js +21 -8
- package/components/routes/admin/users/UserSearch.js +10 -9
- package/components/routes/advanced/QueryBuilder.js +17 -11
- package/components/routes/advanced/luceneCompletionProvider.js +42 -21
- package/components/routes/analytics/AnalyticComments.js +19 -14
- package/components/routes/analytics/AnalyticDetails.d.ts +1 -1
- package/components/routes/analytics/AnalyticDetails.js +20 -16
- package/components/routes/analytics/AnalyticHitComments.js +13 -6
- package/components/routes/analytics/AnalyticHitComments.test.js +5 -4
- package/components/routes/analytics/AnalyticNotebooks.js +5 -5
- package/components/routes/analytics/AnalyticOverview.js +28 -15
- package/components/routes/analytics/AnalyticOverviews.js +2 -2
- package/components/routes/analytics/AnalyticSearch.js +11 -10
- package/components/routes/analytics/AnalyticTemplates.js +3 -3
- package/components/routes/analytics/TriageSettings.d.ts +1 -1
- package/components/routes/analytics/TriageSettings.js +1 -1
- package/components/routes/analytics/widgets/Assessment.js +1 -1
- package/components/routes/analytics/widgets/Created.js +9 -9
- package/components/routes/analytics/widgets/Escalation.js +3 -3
- package/components/routes/analytics/widgets/Stacked.js +5 -5
- package/components/routes/analytics/widgets/Status.js +2 -2
- package/components/routes/cases/CaseViewer.js +1 -1
- package/components/routes/cases/CaseViewer.test.js +2 -2
- package/components/routes/cases/Cases.d.ts +1 -1
- package/components/routes/cases/Cases.js +8 -7
- package/components/routes/cases/constants.d.ts +3 -3
- package/components/routes/cases/detail/AlertPanel.js +1 -1
- package/components/routes/cases/detail/AlertPanel.test.js +4 -6
- package/components/routes/cases/detail/CaseDashboard.js +8 -4
- package/components/routes/cases/detail/CaseDashboard.test.js +2 -2
- package/components/routes/cases/detail/CaseDetails.js +7 -2
- package/components/routes/cases/detail/CaseDetails.test.js +1 -1
- package/components/routes/cases/detail/CaseObservables.js +5 -4
- package/components/routes/cases/detail/CaseObservables.test.js +1 -1
- package/components/routes/cases/detail/CaseOverview.js +2 -2
- package/components/routes/cases/detail/CaseRules.js +10 -6
- package/components/routes/cases/detail/CaseRules.test.js +2 -2
- package/components/routes/cases/detail/CaseSearch.js +5 -5
- package/components/routes/cases/detail/CaseSearch.test.js +2 -2
- package/components/routes/cases/detail/CaseSidebar.js +12 -7
- package/components/routes/cases/detail/CaseSidebar.test.js +5 -6
- package/components/routes/cases/detail/CaseTask.js +27 -15
- package/components/routes/cases/detail/CaseTask.test.js +8 -1
- package/components/routes/cases/detail/CaseTimeline.js +8 -8
- package/components/routes/cases/detail/CaseTimeline.test.js +6 -6
- package/components/routes/cases/detail/CreateRuleDialog.js +4 -4
- package/components/routes/cases/detail/CreateRuleDialog.test.js +2 -2
- package/components/routes/cases/detail/ItemPage.js +3 -3
- package/components/routes/cases/detail/MarkdownPage.test.js +0 -4
- package/components/routes/cases/detail/RelatedCasePanel.js +1 -1
- package/components/routes/cases/detail/RelatedCasePanel.test.js +4 -6
- package/components/routes/cases/detail/TaskPanel.js +8 -8
- package/components/routes/cases/detail/TaskPanel.test.js +3 -3
- package/components/routes/cases/detail/aggregates/CaseAggregate.js +1 -1
- package/components/routes/cases/detail/aggregates/SourceAggregate.js +3 -3
- package/components/routes/cases/detail/observables/Observable.js +4 -5
- package/components/routes/cases/detail/observables/Observable.test.js +1 -1
- package/components/routes/cases/detail/observables/ObservableTable.js +3 -3
- package/components/routes/cases/detail/observables/ObservableTable.test.js +1 -1
- package/components/routes/cases/detail/sidebar/CaseFolder.js +24 -20
- package/components/routes/cases/detail/sidebar/CaseFolder.test.js +1 -1
- package/components/routes/cases/detail/sidebar/CaseFolderContextMenu.js +4 -2
- package/components/routes/cases/detail/sidebar/CaseFolderContextMenu.test.js +3 -2
- package/components/routes/cases/detail/sidebar/FolderEntry.js +3 -3
- package/components/routes/cases/detail/sidebar/FolderEntry.test.js +3 -3
- package/components/routes/cases/detail/sidebar/types.d.ts +1 -1
- package/components/routes/cases/detail/sidebar/utils.js +1 -1
- package/components/routes/cases/detail/sidebar/utils.test.js +8 -8
- package/components/routes/cases/detail/utils.d.ts +1 -1
- package/components/routes/cases/detail/utils.js +3 -2
- package/components/routes/cases/hooks/useCase.js +14 -2
- package/components/routes/cases/modals/AddRecordToCaseModal.test.js +1 -1
- package/components/routes/cases/modals/AddToCaseModal.d.ts +1 -1
- package/components/routes/cases/modals/AddToCaseModal.js +2 -2
- package/components/routes/cases/modals/CreateCaseModal.test.js +1 -1
- package/components/routes/cases/modals/ResolveModal.js +8 -5
- package/components/routes/cases/modals/ResolveModal.test.js +5 -5
- package/components/routes/cases/modals/hooks.js +1 -2
- package/components/routes/cases/modals/types.d.ts +1 -1
- package/components/routes/cases/search/CaseAssigneeFilter.js +1 -1
- package/components/routes/cases/search/CaseAssigneeFilter.test.js +8 -3
- package/components/routes/cases/search/CaseStatusFilter.test.js +1 -0
- package/components/routes/cases/utils.d.ts +0 -1
- package/components/routes/cases/utils.js +4 -13
- package/components/routes/dossiers/DossierCard.js +3 -3
- package/components/routes/dossiers/DossierCard.test.js +6 -6
- package/components/routes/dossiers/DossierEditor.js +61 -25
- package/components/routes/dossiers/DossierEditor.test.js +16 -9
- package/components/routes/dossiers/Dossiers.d.ts +1 -1
- package/components/routes/dossiers/Dossiers.js +6 -5
- package/components/routes/dossiers/LeadEditor.d.ts +1 -1
- package/components/routes/dossiers/LeadEditor.js +2 -2
- package/components/routes/dossiers/LeadForm.js +2 -2
- package/components/routes/dossiers/PivotForm.d.ts +1 -1
- package/components/routes/dossiers/PivotForm.js +10 -9
- package/components/routes/events/EventViewer.js +1 -1
- package/components/routes/help/ActionDocumentation.js +2 -2
- package/components/routes/help/ActionIntroductionDocumentation.js +2 -2
- package/components/routes/help/ApiDocumentation.js +3 -4
- package/components/routes/help/AuthDocumentation.js +1 -1
- package/components/routes/help/ClientDocumentation.js +1 -1
- package/components/routes/help/Help.d.ts +1 -1
- package/components/routes/help/Help.js +5 -4
- package/components/routes/help/HitDocumentation.js +3 -3
- package/components/routes/help/HitLabelsDocumentation.js +12 -12
- package/components/routes/help/HitLinksDocumentation.js +2 -2
- package/components/routes/help/HitSchemaDocumentation.js +14 -8
- package/components/routes/help/NotebookDocumentation.js +1 -1
- package/components/routes/help/OverviewDocumentation.js +1 -1
- package/components/routes/help/RetentionDocumentation.js +3 -3
- package/components/routes/help/SearchDocumentation.js +6 -4
- package/components/routes/help/TemplateDocumentation.js +2 -2
- package/components/routes/help/ViewDocumentation.js +1 -1
- package/components/routes/help/markdown/en/views.md.js +1 -1
- package/components/routes/help/markdown/fr/views.md.js +1 -1
- package/components/routes/hits/search/InformationPane.js +8 -8
- package/components/routes/hits/search/QuerySettings.js +1 -1
- package/components/routes/hits/search/QuerySettings.test.js +8 -4
- package/components/routes/hits/search/RecordBrowser.js +12 -9
- package/components/routes/hits/search/RecordQuery.js +13 -10
- package/components/routes/hits/search/SearchPane.js +2 -3
- package/components/routes/hits/search/ViewLink.js +4 -4
- package/components/routes/hits/search/ViewLink.test.js +1 -0
- package/components/routes/hits/search/grid/RecordGrid.js +1 -1
- package/components/routes/hits/search/shared/CustomSort.js +3 -2
- package/components/routes/hits/search/shared/CustomSpan.js +9 -1
- package/components/routes/hits/search/shared/HitFilter.js +8 -3
- package/components/routes/hits/search/shared/HitSort.js +8 -6
- package/components/routes/hits/search/shared/IndexPicker.js +1 -1
- package/components/routes/hits/search/shared/LayoutSettings.js +1 -1
- package/components/routes/hits/search/shared/SearchActionMenu.d.ts +1 -1
- package/components/routes/hits/search/shared/SearchActionMenu.js +1 -1
- package/components/routes/hits/search/shared/SearchSpan.js +1 -1
- package/components/routes/hits/view/HitViewer.js +21 -11
- package/components/routes/hits/view/HitViewer.test.js +2 -2
- package/components/routes/home/AddNewCard.d.ts +2 -1
- package/components/routes/home/AddNewCard.js +7 -4
- package/components/routes/home/AnalyticCard.js +3 -3
- package/components/routes/home/EntryWrapper.js +1 -1
- package/components/routes/home/ViewCard.js +11 -7
- package/components/routes/home/ViewCard.test.js +3 -6
- package/components/routes/home/index.js +20 -17
- package/components/routes/overviews/OverviewCard.js +6 -2
- package/components/routes/overviews/OverviewViewer.d.ts +1 -1
- package/components/routes/overviews/OverviewViewer.js +48 -39
- package/components/routes/overviews/Overviews.d.ts +1 -1
- package/components/routes/overviews/Overviews.js +7 -6
- package/components/routes/overviews/markdownExtendedTokenProvider.test.js +1 -0
- package/components/routes/overviews/startingTemplate.js +1 -1
- package/components/routes/settings/ProfileSection.d.ts +1 -1
- package/components/routes/settings/ProfileSection.js +2 -2
- package/components/routes/settings/SecuritySection.d.ts +1 -1
- package/components/routes/settings/SecuritySection.js +2 -2
- package/components/routes/settings/Settings.js +6 -6
- package/components/routes/templates/TemplateCard.js +1 -1
- package/components/routes/templates/TemplateEditor.d.ts +1 -1
- package/components/routes/templates/TemplateEditor.js +3 -3
- package/components/routes/templates/TemplateViewer.d.ts +1 -1
- package/components/routes/templates/TemplateViewer.js +54 -52
- package/components/routes/templates/Templates.d.ts +1 -1
- package/components/routes/templates/Templates.js +10 -9
- package/components/routes/views/ViewComposer.js +38 -30
- package/components/routes/views/Views.d.ts +2 -1
- package/components/routes/views/Views.js +20 -14
- package/i18n.js +4 -0
- package/locales/en/translation.json +10 -0
- package/locales/fr/translation.json +10 -0
- package/models/entities/HowlerUser.d.ts +1 -1
- package/models/entities/generated/Action.d.ts +3 -1
- package/models/entities/generated/ApiType.d.ts +2 -3
- package/models/entities/generated/Dossier.d.ts +2 -0
- package/models/entities/generated/HowlerDossier.d.ts +2 -0
- package/models/entities/generated/Item.d.ts +2 -2
- package/models/entities/generated/Settings.d.ts +1 -1
- package/models/entities/generated/View.d.ts +2 -0
- package/package.json +102 -118
- package/plugins/HowlerPlugin.d.ts +9 -50
- package/plugins/HowlerPlugin.js +7 -113
- package/plugins/clue/Provider.js +1 -1
- package/plugins/clue/components/ClueLeadForm.js +2 -2
- package/plugins/clue/components/CluePivot.js +6 -7
- package/plugins/clue/components/CluePivotForm.js +26 -15
- package/plugins/clue/components/ClueTypography.js +2 -2
- package/plugins/clue/helpers.js +5 -5
- package/plugins/clue/index.d.ts +2 -2
- package/plugins/clue/index.js +1 -1
- package/plugins/clue/setup.js +1 -1
- package/plugins/clue/utils.d.ts +1 -1
- package/plugins/store.d.ts +26 -43
- package/plugins/store.js +2 -15
- package/rest/AxiosClient.js +3 -3
- package/rest/FetchClient.d.ts +1 -1
- package/rest/FetchClient.js +8 -5
- package/rest/FetchClient.test.js +7 -4
- package/rest/index.d.ts +4 -3
- package/setupTests.d.ts +3 -0
- package/tests/MockLocalStorage.js +2 -1
- package/tests/mocks.d.ts +2 -2
- package/tests/mocks.js +3 -3
- package/tests/server-handlers.js +1 -1
- package/utils/Throttler.js +1 -1
- package/utils/actionUtils.d.ts +1 -1
- package/utils/actionUtils.js +10 -6
- package/utils/classificationParser.js +56 -63
- package/utils/constants.d.ts +0 -17
- package/utils/constants.js +1 -18
- package/utils/exampleHit.d.ts +2 -0
- package/utils/exampleHit.js +18 -0
- package/utils/localStorage.d.ts +2 -2
- package/utils/localStorage.js +1 -1
- package/utils/menuUtils.d.ts +3 -89
- package/utils/menuUtils.js +66 -227
- package/utils/menuUtils.test.js +45 -181
- package/utils/sessionStorage.js +1 -1
- package/utils/sessionStorage.test.js +1 -0
- package/utils/stringUtils.d.ts +1 -1
- package/utils/utils.d.ts +30 -6
- package/utils/utils.js +66 -9
- package/utils/utils.test.js +1 -0
- package/utils/xsrf.d.ts +1 -1
- package/utils/xsrf.js +5 -10
- package/api/dossier/hit.d.ts +0 -2
- package/api/dossier/hit.js +0 -7
- package/api/dossier/index.d.ts +0 -9
- package/commons/components/app/AppConfigs.d.ts +0 -137
- package/commons/components/app/AppConstants.d.ts +0 -10
- package/commons/components/app/AppConstants.js +0 -10
- package/commons/components/app/AppContexts.d.ts +0 -105
- package/commons/components/app/AppContexts.js +0 -21
- package/commons/components/app/AppDefaults.d.ts +0 -6
- package/commons/components/app/AppDefaults.js +0 -40
- package/commons/components/app/AppNotificationService.d.ts +0 -6
- package/commons/components/app/AppNotificationService.js +0 -1
- package/commons/components/app/AppProvider.d.ts +0 -15
- package/commons/components/app/AppProvider.js +0 -41
- package/commons/components/app/AppSearchService.d.ts +0 -21
- package/commons/components/app/AppSearchService.js +0 -1
- package/commons/components/app/AppSkeleton.d.ts +0 -5
- package/commons/components/app/AppSkeleton.js +0 -152
- package/commons/components/app/AppUserService.d.ts +0 -17
- package/commons/components/app/AppUserService.js +0 -1
- package/commons/components/app/hooks/index.d.ts +0 -18
- package/commons/components/app/hooks/index.js +0 -18
- package/commons/components/app/hooks/useApp.d.ts +0 -1
- package/commons/components/app/hooks/useApp.js +0 -5
- package/commons/components/app/hooks/useAppBanner.d.ts +0 -1
- package/commons/components/app/hooks/useAppBanner.js +0 -6
- package/commons/components/app/hooks/useAppBar.d.ts +0 -1
- package/commons/components/app/hooks/useAppBar.js +0 -5
- package/commons/components/app/hooks/useAppBarHeight.d.ts +0 -2
- package/commons/components/app/hooks/useAppBarHeight.js +0 -22
- package/commons/components/app/hooks/useAppBarScrollTrigger.d.ts +0 -1
- package/commons/components/app/hooks/useAppBarScrollTrigger.js +0 -7
- package/commons/components/app/hooks/useAppBreadcrumbs.d.ts +0 -1
- package/commons/components/app/hooks/useAppBreadcrumbs.js +0 -5
- package/commons/components/app/hooks/useAppConfigs.d.ts +0 -59
- package/commons/components/app/hooks/useAppConfigs.js +0 -44
- package/commons/components/app/hooks/useAppLanguage.d.ts +0 -6
- package/commons/components/app/hooks/useAppLanguage.js +0 -17
- package/commons/components/app/hooks/useAppLayout.d.ts +0 -1
- package/commons/components/app/hooks/useAppLayout.js +0 -5
- package/commons/components/app/hooks/useAppLeftNav.d.ts +0 -1
- package/commons/components/app/hooks/useAppLeftNav.js +0 -5
- package/commons/components/app/hooks/useAppLogo.d.ts +0 -1
- package/commons/components/app/hooks/useAppLogo.js +0 -8
- package/commons/components/app/hooks/useAppNotification.d.ts +0 -1
- package/commons/components/app/hooks/useAppNotification.js +0 -5
- package/commons/components/app/hooks/useAppQuickSearch.d.ts +0 -1
- package/commons/components/app/hooks/useAppQuickSearch.js +0 -5
- package/commons/components/app/hooks/useAppSearchService.d.ts +0 -2
- package/commons/components/app/hooks/useAppSearchService.js +0 -5
- package/commons/components/app/hooks/useAppSitemap.d.ts +0 -16
- package/commons/components/app/hooks/useAppSitemap.js +0 -70
- package/commons/components/app/hooks/useAppSwitcher.d.ts +0 -1
- package/commons/components/app/hooks/useAppSwitcher.js +0 -5
- package/commons/components/app/hooks/useAppTheme.d.ts +0 -8
- package/commons/components/app/hooks/useAppTheme.js +0 -12
- package/commons/components/app/hooks/useAppUser.d.ts +0 -2
- package/commons/components/app/hooks/useAppUser.js +0 -5
- package/commons/components/app/providers/AppBarProvider.d.ts +0 -10
- package/commons/components/app/providers/AppBarProvider.js +0 -24
- package/commons/components/app/providers/AppBreadcrumbsProvider.d.ts +0 -6
- package/commons/components/app/providers/AppBreadcrumbsProvider.js +0 -43
- package/commons/components/app/providers/AppLayoutProvider.d.ts +0 -6
- package/commons/components/app/providers/AppLayoutProvider.js +0 -73
- package/commons/components/app/providers/AppLeftNavProvider.d.ts +0 -6
- package/commons/components/app/providers/AppLeftNavProvider.js +0 -22
- package/commons/components/app/providers/AppNotificationProvider.d.ts +0 -6
- package/commons/components/app/providers/AppNotificationProvider.js +0 -31
- package/commons/components/app/providers/AppQuickSearchProvider.d.ts +0 -8
- package/commons/components/app/providers/AppQuickSearchProvider.js +0 -19
- package/commons/components/app/providers/AppSearchServiceProvider.d.ts +0 -6
- package/commons/components/app/providers/AppSearchServiceProvider.js +0 -46
- package/commons/components/app/providers/AppSnackbarProvider.d.ts +0 -3
- package/commons/components/app/providers/AppSnackbarProvider.js +0 -15
- package/commons/components/app/providers/AppSwitcherProvider.d.ts +0 -6
- package/commons/components/app/providers/AppSwitcherProvider.js +0 -10
- package/commons/components/app/providers/AppUserProvider.d.ts +0 -8
- package/commons/components/app/providers/AppUserProvider.js +0 -12
- package/commons/components/breadcrumbs/BreadcrumbIcon.d.ts +0 -6
- package/commons/components/breadcrumbs/BreadcrumbIcon.js +0 -9
- package/commons/components/breadcrumbs/BreadcrumbLastItem.d.ts +0 -7
- package/commons/components/breadcrumbs/BreadcrumbLastItem.js +0 -19
- package/commons/components/breadcrumbs/BreadcrumbLinkItem.d.ts +0 -7
- package/commons/components/breadcrumbs/BreadcrumbLinkItem.js +0 -20
- package/commons/components/breadcrumbs/BreadcrumbList.d.ts +0 -11
- package/commons/components/breadcrumbs/BreadcrumbList.js +0 -44
- package/commons/components/breadcrumbs/Breadcrumbs.d.ts +0 -5
- package/commons/components/breadcrumbs/Breadcrumbs.js +0 -31
- package/commons/components/display/AppAvatar.d.ts +0 -8
- package/commons/components/display/AppAvatar.js +0 -18
- package/commons/components/display/AppInfoPanel.d.ts +0 -5
- package/commons/components/display/AppInfoPanel.js +0 -17
- package/commons/components/display/AppListEmpty.d.ts +0 -2
- package/commons/components/display/AppListEmpty.js +0 -5
- package/commons/components/display/AppToc.d.ts +0 -20
- package/commons/components/display/AppToc.js +0 -98
- package/commons/components/display/hooks/useAppColor.d.ts +0 -5
- package/commons/components/display/hooks/useAppColor.js +0 -10
- package/commons/components/leftnav/LeftNavDrawer.d.ts +0 -3
- package/commons/components/leftnav/LeftNavDrawer.js +0 -99
- package/commons/components/leftnav/LeftNavGroup.d.ts +0 -8
- package/commons/components/leftnav/LeftNavGroup.js +0 -55
- package/commons/components/leftnav/LeftNavItem.d.ts +0 -11
- package/commons/components/leftnav/LeftNavItem.js +0 -29
- package/commons/components/notification/FeedModels.d.ts +0 -64
- package/commons/components/notification/FeedModels.js +0 -94
- package/commons/components/notification/Notification.d.ts +0 -10
- package/commons/components/notification/Notification.js +0 -95
- package/commons/components/notification/elements/NotificationCloseButton.d.ts +0 -3
- package/commons/components/notification/elements/NotificationCloseButton.js +0 -6
- package/commons/components/notification/elements/NotificationContainer.d.ts +0 -16
- package/commons/components/notification/elements/NotificationContainer.js +0 -29
- package/commons/components/notification/elements/NotificationEndOfPage.d.ts +0 -5
- package/commons/components/notification/elements/NotificationEndOfPage.js +0 -36
- package/commons/components/notification/elements/NotificationError.d.ts +0 -2
- package/commons/components/notification/elements/NotificationError.js +0 -10
- package/commons/components/notification/elements/NotificationHeader.d.ts +0 -8
- package/commons/components/notification/elements/NotificationHeader.js +0 -18
- package/commons/components/notification/elements/NotificationItems.d.ts +0 -12
- package/commons/components/notification/elements/NotificationItems.js +0 -12
- package/commons/components/notification/elements/NotificationSkeleton.d.ts +0 -2
- package/commons/components/notification/elements/NotificationSkeleton.js +0 -12
- package/commons/components/notification/elements/NotificationTopNavButton.d.ts +0 -9
- package/commons/components/notification/elements/NotificationTopNavButton.js +0 -9
- package/commons/components/notification/elements/item/NotificationItem.d.ts +0 -5
- package/commons/components/notification/elements/item/NotificationItem.js +0 -25
- package/commons/components/notification/elements/item/NotificationItemAuthor.d.ts +0 -5
- package/commons/components/notification/elements/item/NotificationItemAuthor.js +0 -31
- package/commons/components/notification/elements/item/NotificationItemContent.d.ts +0 -3
- package/commons/components/notification/elements/item/NotificationItemContent.js +0 -9
- package/commons/components/notification/elements/item/NotificationItemDate.d.ts +0 -3
- package/commons/components/notification/elements/item/NotificationItemDate.js +0 -10
- package/commons/components/notification/elements/item/NotificationItemImage.d.ts +0 -4
- package/commons/components/notification/elements/item/NotificationItemImage.js +0 -8
- package/commons/components/notification/elements/item/NotificationItemTag.d.ts +0 -4
- package/commons/components/notification/elements/item/NotificationItemTag.js +0 -12
- package/commons/components/notification/elements/item/NotificationItemTitle.d.ts +0 -3
- package/commons/components/notification/elements/item/NotificationItemTitle.js +0 -15
- package/commons/components/notification/index.d.ts +0 -2
- package/commons/components/notification/index.js +0 -2
- package/commons/components/pages/PageCardCentered.d.ts +0 -5
- package/commons/components/pages/PageCardCentered.js +0 -30
- package/commons/components/pages/PageCenter.d.ts +0 -9
- package/commons/components/pages/PageCenter.js +0 -20
- package/commons/components/pages/PageContent.d.ts +0 -8
- package/commons/components/pages/PageContent.js +0 -8
- package/commons/components/pages/PageFullScreen.d.ts +0 -11
- package/commons/components/pages/PageFullScreen.js +0 -40
- package/commons/components/pages/PageFullWidth.d.ts +0 -11
- package/commons/components/pages/PageFullWidth.js +0 -7
- package/commons/components/pages/PageHeader.d.ts +0 -23
- package/commons/components/pages/PageHeader.js +0 -27
- package/commons/components/pages/hooks/usePageProps.d.ts +0 -24
- package/commons/components/pages/hooks/usePageProps.js +0 -19
- package/commons/components/search/AppSearch.d.ts +0 -1
- package/commons/components/search/AppSearch.js +0 -135
- package/commons/components/search/AppSearchInput.d.ts +0 -12
- package/commons/components/search/AppSearchInput.js +0 -35
- package/commons/components/search/AppSearchResult.d.ts +0 -5
- package/commons/components/search/AppSearchResult.js +0 -28
- package/commons/components/topnav/AppBar.d.ts +0 -6
- package/commons/components/topnav/AppBar.js +0 -80
- package/commons/components/topnav/AppName.d.ts +0 -5
- package/commons/components/topnav/AppName.js +0 -31
- package/commons/components/topnav/AppSwitcher.d.ts +0 -3
- package/commons/components/topnav/AppSwitcher.js +0 -44
- package/commons/components/topnav/Notifications.d.ts +0 -2
- package/commons/components/topnav/Notifications.js +0 -8
- package/commons/components/topnav/ThemeSelection.d.ts +0 -3
- package/commons/components/topnav/ThemeSelection.js +0 -33
- package/commons/components/topnav/ThemeSelectionIcon.d.ts +0 -2
- package/commons/components/topnav/ThemeSelectionIcon.js +0 -16
- package/commons/components/topnav/UserProfile.d.ts +0 -6
- package/commons/components/topnav/UserProfile.js +0 -71
- package/commons/components/utils/hooks/useClipboard.d.ts +0 -3
- package/commons/components/utils/hooks/useClipboard.js +0 -29
- package/commons/components/utils/hooks/useEnv.d.ts +0 -1
- package/commons/components/utils/hooks/useEnv.js +0 -11
- package/commons/components/utils/hooks/useFullscreenStatus.d.ts +0 -2
- package/commons/components/utils/hooks/useFullscreenStatus.js +0 -41
- package/commons/components/utils/hooks/useGravatar.d.ts +0 -2
- package/commons/components/utils/hooks/useGravatar.js +0 -9
- package/commons/components/utils/hooks/useLocalStorage.d.ts +0 -12
- package/commons/components/utils/hooks/useLocalStorage.js +0 -52
- package/commons/components/utils/hooks/useLocalStorageItem.d.ts +0 -14
- package/commons/components/utils/hooks/useLocalStorageItem.js +0 -39
- package/commons/components/utils/hooks/useThemeBuilder.d.ts +0 -7
- package/commons/components/utils/hooks/useThemeBuilder.js +0 -48
- package/commons/components/utils/keyboard.d.ts +0 -30
- package/commons/components/utils/keyboard.js +0 -50
- package/components/hooks/useMySitemap.d.ts +0 -3
- package/components/hooks/useMySitemap.js +0 -219
- /package/{commons/components/app/AppConfigs.js → components/elements/MembershipManagement.test.d.ts} +0 -0
|
@@ -2,6 +2,23 @@ import 'chartjs-adapter-dayjs-4';
|
|
|
2
2
|
declare const useMyChart: () => {
|
|
3
3
|
line: (titleKey: string, subtitleKey?: string) => {
|
|
4
4
|
responsive: boolean;
|
|
5
|
+
scales: {
|
|
6
|
+
x: {
|
|
7
|
+
type: 'time';
|
|
8
|
+
time: {
|
|
9
|
+
unit: 'day';
|
|
10
|
+
};
|
|
11
|
+
ticks: {
|
|
12
|
+
color: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
y: {
|
|
16
|
+
beginAtZero: boolean;
|
|
17
|
+
ticks: {
|
|
18
|
+
color: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
5
22
|
plugins: {
|
|
6
23
|
legend: {
|
|
7
24
|
display: boolean;
|
|
@@ -21,17 +38,6 @@ declare const useMyChart: () => {
|
|
|
21
38
|
bottom: number;
|
|
22
39
|
};
|
|
23
40
|
};
|
|
24
|
-
subtitle: {
|
|
25
|
-
display: boolean;
|
|
26
|
-
text: string;
|
|
27
|
-
color: string;
|
|
28
|
-
font: {
|
|
29
|
-
size: number;
|
|
30
|
-
};
|
|
31
|
-
padding: {
|
|
32
|
-
bottom: number;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
41
|
zoom: {
|
|
36
42
|
zoom: {
|
|
37
43
|
wheel: {
|
|
@@ -43,36 +49,19 @@ declare const useMyChart: () => {
|
|
|
43
49
|
};
|
|
44
50
|
mode: 'y';
|
|
45
51
|
};
|
|
46
|
-
pan: {
|
|
47
|
-
enabled: boolean;
|
|
48
|
-
mode: 'x' | 'y' | 'xy';
|
|
49
|
-
};
|
|
50
52
|
limits: {
|
|
51
53
|
y: {
|
|
52
54
|
min: number;
|
|
53
55
|
};
|
|
54
56
|
};
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
x: {
|
|
59
|
-
type: 'time';
|
|
60
|
-
time: {
|
|
61
|
-
unit: 'day';
|
|
62
|
-
};
|
|
63
|
-
ticks: {
|
|
64
|
-
color: string;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
y: {
|
|
68
|
-
beginAtZero: boolean;
|
|
69
|
-
ticks: {
|
|
70
|
-
color: string;
|
|
57
|
+
pan: {
|
|
58
|
+
enabled: boolean;
|
|
59
|
+
mode: 'x';
|
|
71
60
|
};
|
|
72
61
|
};
|
|
73
62
|
};
|
|
74
63
|
};
|
|
75
|
-
doughnut: (titleKey: string, subtitleKey?: string) => {
|
|
64
|
+
doughnut: (titleKey: string, subtitleKey?: string) => Omit<{
|
|
76
65
|
responsive: boolean;
|
|
77
66
|
plugins: {
|
|
78
67
|
legend: {
|
|
@@ -126,18 +115,27 @@ declare const useMyChart: () => {
|
|
|
126
115
|
};
|
|
127
116
|
};
|
|
128
117
|
};
|
|
129
|
-
scales:
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
118
|
+
scales: {
|
|
119
|
+
x: {
|
|
120
|
+
type: 'time';
|
|
121
|
+
time: {
|
|
122
|
+
unit: 'day';
|
|
123
|
+
};
|
|
124
|
+
ticks: {
|
|
125
|
+
color: string;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
y: {
|
|
129
|
+
beginAtZero: boolean;
|
|
130
|
+
ticks: {
|
|
138
131
|
color: string;
|
|
139
132
|
};
|
|
140
133
|
};
|
|
134
|
+
};
|
|
135
|
+
}, "scales">;
|
|
136
|
+
bar: (titleKey: string, subtitleKey?: string) => {
|
|
137
|
+
responsive: boolean;
|
|
138
|
+
plugins: {
|
|
141
139
|
title: {
|
|
142
140
|
display: boolean;
|
|
143
141
|
text: string;
|
|
@@ -181,19 +179,19 @@ declare const useMyChart: () => {
|
|
|
181
179
|
};
|
|
182
180
|
};
|
|
183
181
|
};
|
|
182
|
+
legend: {
|
|
183
|
+
display: boolean;
|
|
184
|
+
};
|
|
184
185
|
};
|
|
185
186
|
scales: {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
time: {
|
|
189
|
-
unit: 'day';
|
|
190
|
-
};
|
|
187
|
+
y: {
|
|
188
|
+
beginAtZero: boolean;
|
|
191
189
|
ticks: {
|
|
190
|
+
precision: number;
|
|
192
191
|
color: string;
|
|
193
192
|
};
|
|
194
193
|
};
|
|
195
|
-
|
|
196
|
-
beginAtZero: boolean;
|
|
194
|
+
x: {
|
|
197
195
|
ticks: {
|
|
198
196
|
color: string;
|
|
199
197
|
};
|
|
@@ -7,6 +7,11 @@ import { useTranslation } from 'react-i18next';
|
|
|
7
7
|
ChartJS.defaults.font.family = `'Roboto', 'Helvetica', 'Arial', sans-serif`;
|
|
8
8
|
ChartJS.register(ArcElement, CategoryScale, LinearScale, TimeScale, PointElement, LineElement, Title, SubTitle, Tooltip, Legend, CategoryScale, BarElement, Filler);
|
|
9
9
|
ChartJS.register(zoomPlugin);
|
|
10
|
+
const withoutOption = (options, option) => {
|
|
11
|
+
const result = { ...options };
|
|
12
|
+
Reflect.deleteProperty(result, option);
|
|
13
|
+
return result;
|
|
14
|
+
};
|
|
10
15
|
const useMyChart = () => {
|
|
11
16
|
const { t } = useTranslation();
|
|
12
17
|
const theme = useTheme();
|
|
@@ -87,24 +92,40 @@ const useMyChart = () => {
|
|
|
87
92
|
// https://www.chartjs.org/docs/latest/charts/line.html
|
|
88
93
|
line: (titleKey, subtitleKey) => {
|
|
89
94
|
const options = generateOptions(titleKey, subtitleKey);
|
|
90
|
-
options.plugins
|
|
91
|
-
|
|
92
|
-
|
|
95
|
+
const plugins = withoutOption(options.plugins, 'subtitle');
|
|
96
|
+
return {
|
|
97
|
+
...options,
|
|
98
|
+
plugins: {
|
|
99
|
+
...plugins,
|
|
100
|
+
zoom: {
|
|
101
|
+
...plugins.zoom,
|
|
102
|
+
pan: {
|
|
103
|
+
...plugins.zoom.pan,
|
|
104
|
+
mode: 'x'
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
};
|
|
93
109
|
},
|
|
94
110
|
// https://www.chartjs.org/docs/latest/charts/doughnut.html
|
|
95
111
|
doughnut: (titleKey, subtitleKey) => {
|
|
96
|
-
const options =
|
|
112
|
+
const options = withoutOption(generateOptions(titleKey, subtitleKey), 'scales');
|
|
97
113
|
return options;
|
|
98
114
|
},
|
|
99
115
|
// https://www.chartjs.org/docs/latest/charts/bar.html
|
|
100
116
|
bar: (titleKey, subtitleKey) => {
|
|
101
117
|
const options = generateOptions(titleKey, subtitleKey);
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
118
|
+
return {
|
|
119
|
+
...options,
|
|
120
|
+
plugins: {
|
|
121
|
+
...options.plugins,
|
|
122
|
+
legend: { display: false }
|
|
123
|
+
},
|
|
124
|
+
scales: {
|
|
125
|
+
y: { beginAtZero: true, ticks: { precision: 0, color: theme.palette.text.primary } },
|
|
126
|
+
x: { ticks: { color: theme.palette.text.primary } }
|
|
127
|
+
}
|
|
106
128
|
};
|
|
107
|
-
return options;
|
|
108
129
|
},
|
|
109
130
|
scatter: (titleKey, subtitleKey) => {
|
|
110
131
|
const options = generateOptions(titleKey, subtitleKey);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type LocalStorageContextType } from '@cccsaurora/howler-ui/components/app/providers/LocalStorageProvider';
|
|
2
2
|
import type { StorageKey } from '@cccsaurora/howler-ui/utils/constants';
|
|
3
|
+
import { type LocalStorageItemResult, type NonNullish, type WidenLiteral } from './useLocalStorageItem';
|
|
3
4
|
declare const useMyLocalStorage: () => {
|
|
4
|
-
get: <T>(key: string) => T;
|
|
5
|
+
get: <T>(key: string) => T | null;
|
|
5
6
|
set: (key: string, value: any) => void;
|
|
6
7
|
remove: (key: string, withPrefix?: boolean) => void;
|
|
7
8
|
has: (key: string) => boolean;
|
|
@@ -12,6 +13,11 @@ declare const useMyLocalStorage: () => {
|
|
|
12
13
|
}[];
|
|
13
14
|
clear: () => void;
|
|
14
15
|
};
|
|
15
|
-
|
|
16
|
+
type UseMyLocalStorageItem = {
|
|
17
|
+
<T extends string | number | boolean | bigint>(key: StorageKey, initialValue: T): LocalStorageItemResult<WidenLiteral<T>>;
|
|
18
|
+
<T extends NonNullish>(key: StorageKey, initialValue: T): LocalStorageItemResult<T>;
|
|
19
|
+
<T>(key: StorageKey, initialValue?: T): LocalStorageItemResult<T | undefined>;
|
|
20
|
+
};
|
|
21
|
+
export declare const useMyLocalStorageItem: UseMyLocalStorageItem;
|
|
16
22
|
export declare const useMyLocalStorageProvider: () => LocalStorageContextType;
|
|
17
23
|
export default useMyLocalStorage;
|
|
@@ -2,7 +2,7 @@ import { LocalStorageContext } from '@cccsaurora/howler-ui/components/app/provid
|
|
|
2
2
|
import { useContext } from 'react';
|
|
3
3
|
import { MY_LOCAL_STORAGE_PREFIX } from '@cccsaurora/howler-ui/utils/constants';
|
|
4
4
|
import useLocalStorage from './useLocalStorage';
|
|
5
|
-
import useLocalStorageItem from './useLocalStorageItem';
|
|
5
|
+
import useLocalStorageItem, {} from './useLocalStorageItem';
|
|
6
6
|
const useMyLocalStorage = () => {
|
|
7
7
|
return useLocalStorage(MY_LOCAL_STORAGE_PREFIX);
|
|
8
8
|
};
|
|
@@ -1,236 +1,185 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Api, Article, Book, BookRounded, Code, Dashboard, Description, ExitToApp, FormatListBulleted, Help, HelpCenter, Key, ManageSearch, QueryStats, SavedSearch, Search, Settings, SettingsSuggest, Shield, Storage, SupervisorAccount, Terminal, Topic } from '@mui/icons-material';
|
|
3
|
-
import { Stack } from '@mui/material';
|
|
4
|
-
import { AppBrand } from '@cccsaurora/howler-ui/branding/AppBrand';
|
|
3
|
+
import { Divider, Stack } from '@mui/material';
|
|
5
4
|
import { AppBarContext } from '@cccsaurora/howler-ui/components/app/providers/AppBarProvider';
|
|
6
5
|
import Classification from '@cccsaurora/howler-ui/components/elements/display/Classification';
|
|
7
6
|
import DocumentationButton from '@cccsaurora/howler-ui/components/elements/display/DocumentationButton';
|
|
8
7
|
import howlerPluginStore from '@cccsaurora/howler-ui/plugins/store';
|
|
9
8
|
import { Fragment, useContext, useMemo } from 'react';
|
|
10
|
-
import
|
|
9
|
+
import { applyMainMenuOperations } from '@cccsaurora/howler-ui/utils/menuUtils';
|
|
11
10
|
// This is your App Name that will be displayed in the left drawer and the top navbar
|
|
12
11
|
const APP_NAME = 'howler';
|
|
13
12
|
const useMyPreferences = () => {
|
|
14
13
|
const { leftItems, rightItems } = useContext(AppBarContext);
|
|
15
14
|
// The following menu items will show up in the Left Navigation Drawer
|
|
16
15
|
const MENU_ITEMS = useMemo(() => {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
const defaultMenu = {
|
|
17
|
+
id: 'root',
|
|
18
|
+
type: 'menu',
|
|
19
|
+
items: [
|
|
20
|
+
{
|
|
21
21
|
id: 'dashboard',
|
|
22
|
+
type: 'route',
|
|
22
23
|
i18nKey: 'route.home',
|
|
23
24
|
route: '/',
|
|
24
25
|
icon: _jsx(Dashboard, {})
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
{
|
|
28
|
-
type: 'item',
|
|
29
|
-
element: {
|
|
26
|
+
},
|
|
27
|
+
{
|
|
30
28
|
id: 'cases',
|
|
29
|
+
type: 'route',
|
|
31
30
|
i18nKey: 'route.cases',
|
|
32
31
|
route: '/cases',
|
|
33
32
|
icon: _jsx(BookRounded, {})
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
type: 'group',
|
|
38
|
-
element: {
|
|
39
|
-
id: 'views',
|
|
40
|
-
i18nKey: 'route.views.saved',
|
|
41
|
-
icon: _jsx(SavedSearch, {}),
|
|
42
|
-
items: []
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
type: 'group',
|
|
47
|
-
element: {
|
|
48
|
-
id: 'analytics',
|
|
49
|
-
i18nKey: 'route.analytics.pinned',
|
|
50
|
-
icon: _jsx(QueryStats, {}),
|
|
51
|
-
items: []
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
type: 'divider',
|
|
56
|
-
element: null
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
type: 'item',
|
|
60
|
-
element: {
|
|
33
|
+
},
|
|
34
|
+
{ id: 'divider.1', type: 'slot', component: Divider },
|
|
35
|
+
{
|
|
61
36
|
id: 'search.hit',
|
|
37
|
+
type: 'route',
|
|
62
38
|
i18nKey: 'route.search',
|
|
63
39
|
route: '/search',
|
|
64
40
|
icon: _jsx(Search, {})
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
{
|
|
68
|
-
type: 'item',
|
|
69
|
-
element: {
|
|
41
|
+
},
|
|
42
|
+
{
|
|
70
43
|
id: 'advanced',
|
|
44
|
+
type: 'route',
|
|
71
45
|
i18nKey: 'route.advanced',
|
|
72
46
|
route: '/advanced',
|
|
73
47
|
icon: _jsx(Code, {})
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
type: 'divider',
|
|
78
|
-
element: null
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
type: 'item',
|
|
82
|
-
element: {
|
|
48
|
+
},
|
|
49
|
+
{ id: 'divider.2', type: 'slot', component: Divider },
|
|
50
|
+
{
|
|
83
51
|
id: 'manage.views',
|
|
52
|
+
type: 'route',
|
|
84
53
|
i18nKey: 'route.views',
|
|
85
54
|
icon: _jsx(ManageSearch, {}),
|
|
86
55
|
route: '/views'
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
{
|
|
90
|
-
type: 'item',
|
|
91
|
-
element: {
|
|
56
|
+
},
|
|
57
|
+
{
|
|
92
58
|
id: 'manage.analytics',
|
|
59
|
+
type: 'route',
|
|
93
60
|
i18nKey: 'route.analytics',
|
|
94
61
|
icon: _jsx(QueryStats, {}),
|
|
95
62
|
route: '/analytics'
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
{
|
|
99
|
-
type: 'item',
|
|
100
|
-
element: {
|
|
63
|
+
},
|
|
64
|
+
{
|
|
101
65
|
id: 'manage.templates',
|
|
66
|
+
type: 'route',
|
|
102
67
|
i18nKey: 'route.templates',
|
|
103
68
|
icon: _jsx(FormatListBulleted, {}),
|
|
104
69
|
route: '/templates'
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
{
|
|
108
|
-
type: 'item',
|
|
109
|
-
element: {
|
|
70
|
+
},
|
|
71
|
+
{
|
|
110
72
|
id: 'manage.overviews',
|
|
73
|
+
type: 'route',
|
|
111
74
|
i18nKey: 'route.overviews',
|
|
112
75
|
icon: _jsx(Article, {}),
|
|
113
76
|
route: '/overviews'
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
{
|
|
117
|
-
type: 'item',
|
|
118
|
-
element: {
|
|
77
|
+
},
|
|
78
|
+
{
|
|
119
79
|
id: 'manage.dossiers',
|
|
80
|
+
type: 'route',
|
|
120
81
|
i18nKey: 'route.dossiers',
|
|
121
82
|
icon: _jsx(Topic, {}),
|
|
122
83
|
route: '/dossiers'
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
{
|
|
126
|
-
type: 'item',
|
|
127
|
-
element: {
|
|
84
|
+
},
|
|
85
|
+
{
|
|
128
86
|
id: 'manage.actions',
|
|
87
|
+
type: 'route',
|
|
129
88
|
i18nKey: 'route.actions',
|
|
130
89
|
icon: _jsx(Terminal, {}),
|
|
131
90
|
route: '/action',
|
|
132
|
-
|
|
91
|
+
validators: [
|
|
133
92
|
{ prop: 'roles', value: 'automation_basic' },
|
|
134
93
|
{ prop: 'roles', value: 'automation_advanced' },
|
|
135
94
|
{ prop: 'roles', value: 'actionrunner_basic' },
|
|
136
95
|
{ prop: 'roles', value: 'actionrunner_advanced' }
|
|
137
96
|
]
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
{
|
|
141
|
-
type: 'item',
|
|
142
|
-
element: {
|
|
97
|
+
},
|
|
98
|
+
{
|
|
143
99
|
id: 'action.integrations',
|
|
100
|
+
type: 'route',
|
|
144
101
|
i18nKey: 'route.integrations',
|
|
145
102
|
icon: _jsx(Api, {}),
|
|
146
103
|
route: '/action/integrations',
|
|
147
|
-
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
{
|
|
151
|
-
type: 'divider',
|
|
152
|
-
element: null
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
type: 'group',
|
|
156
|
-
element: {
|
|
104
|
+
validators: [{ prop: 'roles', value: 'automation_basic' }]
|
|
105
|
+
},
|
|
106
|
+
{
|
|
157
107
|
id: 'help',
|
|
108
|
+
type: 'menu',
|
|
158
109
|
i18nKey: 'page.help',
|
|
159
110
|
icon: _jsx(Help, {}),
|
|
160
111
|
items: [
|
|
161
112
|
{
|
|
162
113
|
id: 'help.main',
|
|
114
|
+
type: 'route',
|
|
163
115
|
i18nKey: 'route.help.main',
|
|
164
116
|
route: '/help',
|
|
165
|
-
nested: true,
|
|
166
117
|
icon: _jsx(HelpCenter, {})
|
|
167
118
|
},
|
|
168
119
|
{
|
|
169
120
|
id: 'help.client',
|
|
121
|
+
type: 'route',
|
|
170
122
|
i18nKey: 'route.help.client',
|
|
171
123
|
route: '/help/client',
|
|
172
|
-
nested: true,
|
|
173
124
|
icon: _jsx(Terminal, {})
|
|
174
125
|
},
|
|
175
|
-
{ id: 'help.hit', i18nKey: 'route.help.hit', route: '/help/hit',
|
|
126
|
+
{ id: 'help.hit', type: 'route', i18nKey: 'route.help.hit', route: '/help/hit', icon: _jsx(Shield, {}) },
|
|
176
127
|
{
|
|
177
128
|
id: 'help.search',
|
|
129
|
+
type: 'route',
|
|
178
130
|
i18nKey: 'route.help.search',
|
|
179
131
|
route: '/help/search',
|
|
180
|
-
nested: true,
|
|
181
132
|
icon: _jsx(Search, {})
|
|
182
133
|
},
|
|
183
134
|
{
|
|
184
135
|
id: 'help.views',
|
|
136
|
+
type: 'route',
|
|
185
137
|
i18nKey: 'route.help.views',
|
|
186
138
|
route: '/help/views',
|
|
187
|
-
nested: true,
|
|
188
139
|
icon: _jsx(SavedSearch, {})
|
|
189
140
|
},
|
|
190
141
|
{
|
|
191
142
|
id: 'help.templates',
|
|
143
|
+
type: 'route',
|
|
192
144
|
i18nKey: 'route.help.templates',
|
|
193
145
|
route: '/help/templates',
|
|
194
|
-
nested: true,
|
|
195
146
|
icon: _jsx(FormatListBulleted, {})
|
|
196
147
|
},
|
|
197
148
|
{
|
|
198
149
|
id: 'help.overview',
|
|
150
|
+
type: 'route',
|
|
199
151
|
i18nKey: 'route.help.overviews',
|
|
200
152
|
route: '/help/overviews',
|
|
201
|
-
nested: true,
|
|
202
153
|
icon: _jsx(Article, {})
|
|
203
154
|
},
|
|
204
|
-
{ id: 'help.auth', i18nKey: 'route.help.auth', route: '/help/auth',
|
|
155
|
+
{ id: 'help.auth', type: 'route', i18nKey: 'route.help.auth', route: '/help/auth', icon: _jsx(Key, {}) },
|
|
205
156
|
{
|
|
206
157
|
id: 'help.actions',
|
|
158
|
+
type: 'route',
|
|
207
159
|
i18nKey: 'route.help.actions',
|
|
208
160
|
route: '/help/actions',
|
|
209
|
-
nested: true,
|
|
210
161
|
icon: _jsx(SettingsSuggest, {})
|
|
211
162
|
},
|
|
212
163
|
{
|
|
213
164
|
id: 'help.notebook',
|
|
165
|
+
type: 'route',
|
|
214
166
|
i18nKey: 'route.help.notebook',
|
|
215
167
|
route: '/help/notebook',
|
|
216
|
-
nested: true,
|
|
217
168
|
icon: _jsx(Description, {})
|
|
218
169
|
},
|
|
219
|
-
{ id: 'help.api', i18nKey: 'route.help.api', route: '/help/api',
|
|
170
|
+
{ id: 'help.api', type: 'route', i18nKey: 'route.help.api', route: '/help/api', icon: _jsx(Storage, {}) },
|
|
220
171
|
{
|
|
221
172
|
id: 'help.retention',
|
|
173
|
+
type: 'route',
|
|
222
174
|
i18nKey: 'route.help.retention',
|
|
223
175
|
route: '/help/retention',
|
|
224
|
-
nested: true,
|
|
225
176
|
icon: _jsx(Book, {})
|
|
226
177
|
}
|
|
227
178
|
]
|
|
228
179
|
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
appMenuBuilder.applyOperations(howlerPluginStore.mainMenuOperations);
|
|
233
|
-
return appMenuBuilder.menu;
|
|
180
|
+
]
|
|
181
|
+
};
|
|
182
|
+
return [applyMainMenuOperations(defaultMenu, howlerPluginStore.mainMenuOperations)];
|
|
234
183
|
},
|
|
235
184
|
// prettier-ignore
|
|
236
185
|
[]);
|
|
@@ -265,27 +214,44 @@ const useMyPreferences = () => {
|
|
|
265
214
|
}, []);
|
|
266
215
|
// Return memoized config to prevent unnecessary re-renders.
|
|
267
216
|
return useMemo(() => ({
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
217
|
+
brand: {
|
|
218
|
+
application: APP_NAME,
|
|
219
|
+
appName: 'Howler',
|
|
220
|
+
logo: {
|
|
221
|
+
dark: '/branding/howler/noswoosh-dark.svg',
|
|
222
|
+
light: '/branding/howler/noswoosh-light.svg'
|
|
223
|
+
},
|
|
224
|
+
name: {
|
|
225
|
+
dark: '/branding/howler/name-dark.svg',
|
|
226
|
+
light: '/branding/howler/name-light.svg'
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
appLink: '/',
|
|
230
|
+
allowThemeSelection: true,
|
|
276
231
|
topnav: {
|
|
277
|
-
apps: [],
|
|
278
|
-
userMenu: USER_MENU_ITEMS,
|
|
279
|
-
userMenuI18nKey: 'usermenu',
|
|
280
|
-
adminMenu: ADMIN_MENU_ITEMS,
|
|
281
|
-
adminMenuI18nKey: 'adminmenu',
|
|
282
232
|
quickSearchParam: 'query',
|
|
283
233
|
quickSearchURI: '/hits',
|
|
284
|
-
|
|
285
|
-
|
|
234
|
+
profile: {
|
|
235
|
+
menus: {
|
|
236
|
+
user: { i18nKey: 'usermenu', slot: USER_MENU_ITEMS },
|
|
237
|
+
admin: { i18nKey: 'adminmenu', slot: ADMIN_MENU_ITEMS }
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
slots: {
|
|
241
|
+
breadcrumbs: {
|
|
242
|
+
right: [
|
|
243
|
+
_jsxs(Stack, { direction: "row", spacing: 1, alignItems: "center", children: [_jsx(DocumentationButton, {}), leftItems.map(item => (_jsx(Fragment, { children: item.component }, item.id)))] }, "breadcrumbs-right")
|
|
244
|
+
]
|
|
245
|
+
},
|
|
246
|
+
search: {
|
|
247
|
+
left: [
|
|
248
|
+
_jsxs(Stack, { direction: "row", spacing: 1, alignItems: "center", pr: 1, children: [rightItems.map(item => (_jsx(Fragment, { children: item.component }, item.id))), _jsx(Classification, {})] }, "search-left")
|
|
249
|
+
]
|
|
250
|
+
}
|
|
251
|
+
}
|
|
286
252
|
},
|
|
287
253
|
leftnav: {
|
|
288
|
-
|
|
254
|
+
menus: MENU_ITEMS,
|
|
289
255
|
width: 280
|
|
290
256
|
}
|
|
291
257
|
}), [USER_MENU_ITEMS, ADMIN_MENU_ITEMS, MENU_ITEMS, leftItems, rightItems]);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { useCallback, useMemo } from 'react';
|
|
2
|
+
import { Link, matchPath, useLocation, useMatches, useNavigate } from 'react-router';
|
|
3
|
+
export const useMyRouter = () => {
|
|
4
|
+
const navigate = useNavigate();
|
|
5
|
+
const matches = useMatches();
|
|
6
|
+
const location = useLocation();
|
|
7
|
+
const processBreadcrumb = useCallback((match) => {
|
|
8
|
+
const item = match.handle?.breadcrumb ? match.handle.breadcrumb(match) : [];
|
|
9
|
+
return Array.isArray(item) ? item : [item];
|
|
10
|
+
}, []);
|
|
11
|
+
const _matchPath = useCallback((pattern, pathname) => {
|
|
12
|
+
return Boolean(matchPath(pattern, pathname));
|
|
13
|
+
}, []);
|
|
14
|
+
const _breadcrumbs = useCallback(() => {
|
|
15
|
+
return matches.filter(m => !!m.handle?.breadcrumb).flatMap(m => processBreadcrumb(m));
|
|
16
|
+
}, [matches, processBreadcrumb]);
|
|
17
|
+
return useMemo(() => ({
|
|
18
|
+
Link,
|
|
19
|
+
location,
|
|
20
|
+
navigate,
|
|
21
|
+
matchPath: _matchPath,
|
|
22
|
+
breadcrumbs: _breadcrumbs
|
|
23
|
+
}), [location, navigate, _breadcrumbs, _matchPath]);
|
|
24
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AppSearchService } from '@
|
|
1
|
+
import type { AppSearchService } from '@tui/core';
|
|
2
2
|
import type { Hit } from '@cccsaurora/howler-ui/models/entities/generated/Hit';
|
|
3
3
|
declare const useMySearch: () => AppSearchService<Hit>;
|
|
4
4
|
export default useMySearch;
|