@cccsaurora/howler-ui 2.12.0-dev.33 → 2.12.0-dev.34
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/execute.js +2 -2
- package/api/action/index.d.ts +3 -3
- package/api/action/index.js +4 -4
- package/api/action/operations.d.ts +1 -1
- package/api/action/operations.js +2 -2
- package/api/analytic/comments/index.d.ts +2 -2
- package/api/analytic/comments/index.js +2 -2
- package/api/analytic/comments/react.js +2 -2
- package/api/analytic/favourite.js +2 -2
- package/api/analytic/index.d.ts +6 -6
- package/api/analytic/index.js +6 -6
- package/api/analytic/notebooks/index.d.ts +1 -1
- package/api/analytic/notebooks/index.js +2 -2
- package/api/analytic/owner.d.ts +1 -1
- package/api/analytic/owner.js +2 -2
- package/api/analytic/rules.d.ts +1 -1
- package/api/analytic/rules.js +2 -2
- package/api/auth/apikey.js +3 -3
- package/api/auth/index.d.ts +2 -2
- package/api/auth/index.js +3 -3
- package/api/auth/login.js +3 -3
- package/api/configs/index.d.ts +1 -1
- package/api/configs/index.js +1 -1
- package/api/dossier/hit.d.ts +1 -1
- package/api/dossier/hit.js +1 -1
- package/api/dossier/index.d.ts +1 -1
- package/api/dossier/index.js +1 -1
- package/api/help.js +1 -1
- package/api/hit/assign.d.ts +1 -1
- package/api/hit/assign.js +2 -2
- package/api/hit/comments/index.d.ts +2 -2
- package/api/hit/comments/index.js +2 -2
- package/api/hit/comments/react.js +2 -2
- package/api/hit/index.d.ts +6 -6
- package/api/hit/index.js +6 -6
- package/api/hit/labels.d.ts +2 -2
- package/api/hit/labels.js +2 -2
- package/api/hit/overwrite.d.ts +1 -1
- package/api/hit/overwrite.js +2 -2
- package/api/hit/transition.d.ts +2 -2
- package/api/hit/transition.js +2 -2
- package/api/index.d.ts +13 -13
- package/api/index.js +18 -18
- package/api/notebook/environments.js +2 -2
- package/api/notebook/index.d.ts +3 -3
- package/api/notebook/index.js +2 -2
- package/api/overview/index.d.ts +1 -1
- package/api/overview/index.js +1 -1
- package/api/search/action.d.ts +2 -2
- package/api/search/action.js +2 -2
- package/api/search/analytic.d.ts +2 -2
- package/api/search/analytic.js +2 -2
- package/api/search/count/hit.d.ts +1 -1
- package/api/search/count/hit.js +2 -2
- package/api/search/count/index.d.ts +1 -1
- package/api/search/count/index.js +3 -3
- package/api/search/dossier.d.ts +2 -2
- package/api/search/dossier.js +2 -2
- package/api/search/eql/hit.d.ts +2 -2
- package/api/search/eql/hit.js +2 -2
- package/api/search/facet/hit.d.ts +1 -1
- package/api/search/facet/hit.js +2 -2
- package/api/search/facet/index.d.ts +1 -1
- package/api/search/facet/index.js +3 -3
- package/api/search/fields/hit.d.ts +1 -1
- package/api/search/fields/hit.js +2 -2
- package/api/search/fields/index.d.ts +2 -2
- package/api/search/fields/index.js +4 -4
- package/api/search/fields/user.d.ts +1 -1
- package/api/search/fields/user.js +3 -3
- package/api/search/grouped/hit.d.ts +2 -2
- package/api/search/grouped/hit.js +2 -2
- package/api/search/grouped/index.d.ts +2 -2
- package/api/search/grouped/index.js +4 -4
- package/api/search/grouped/user.d.ts +2 -2
- package/api/search/grouped/user.js +2 -2
- package/api/search/histogram/hit.d.ts +1 -1
- package/api/search/histogram/hit.js +2 -2
- package/api/search/histogram/index.d.ts +1 -1
- package/api/search/histogram/index.js +3 -3
- package/api/search/hit.d.ts +4 -4
- package/api/search/hit.js +4 -4
- package/api/search/index.d.ts +13 -13
- package/api/search/index.js +14 -14
- package/api/search/overview.d.ts +2 -2
- package/api/search/overview.js +2 -2
- package/api/search/sigma/hit.d.ts +2 -2
- package/api/search/sigma/hit.js +2 -2
- package/api/search/template.d.ts +2 -2
- package/api/search/template.js +2 -2
- package/api/search/user.d.ts +2 -2
- package/api/search/user.js +2 -2
- package/api/search/view.d.ts +2 -2
- package/api/search/view.js +2 -2
- package/api/template/index.d.ts +1 -1
- package/api/template/index.js +1 -1
- package/api/user/avatar/index.js +2 -2
- package/api/user/groups.js +2 -2
- package/api/user/index.d.ts +4 -4
- package/api/user/index.js +4 -4
- package/api/user/whoami.d.ts +1 -1
- package/api/user/whoami.js +2 -2
- package/api/view/favourite.js +2 -2
- package/api/view/index.d.ts +2 -2
- package/api/view/index.js +2 -2
- package/commons/components/app/AppConfigs.d.ts +3 -3
- package/commons/components/app/AppContexts.d.ts +5 -5
- package/commons/components/app/AppDefaults.d.ts +1 -1
- package/commons/components/app/AppNotificationService.d.ts +1 -1
- package/commons/components/app/AppProvider.d.ts +4 -4
- package/commons/components/app/AppProvider.js +10 -10
- package/commons/components/app/AppSearchService.d.ts +1 -1
- package/commons/components/app/AppSkeleton.js +3 -3
- package/commons/components/app/hooks/index.d.ts +18 -18
- package/commons/components/app/hooks/index.js +18 -18
- package/commons/components/app/hooks/useApp.js +1 -1
- package/commons/components/app/hooks/useAppBanner.js +1 -1
- package/commons/components/app/hooks/useAppBar.js +1 -1
- package/commons/components/app/hooks/useAppBreadcrumbs.js +1 -1
- package/commons/components/app/hooks/useAppConfigs.js +2 -2
- package/commons/components/app/hooks/useAppLanguage.js +1 -1
- package/commons/components/app/hooks/useAppLayout.js +1 -1
- package/commons/components/app/hooks/useAppLeftNav.js +1 -1
- package/commons/components/app/hooks/useAppLogo.js +2 -2
- package/commons/components/app/hooks/useAppNotification.js +1 -1
- package/commons/components/app/hooks/useAppQuickSearch.js +1 -1
- package/commons/components/app/hooks/useAppSearchService.d.ts +1 -1
- package/commons/components/app/hooks/useAppSearchService.js +1 -1
- package/commons/components/app/hooks/useAppSitemap.d.ts +1 -1
- package/commons/components/app/hooks/useAppSitemap.js +1 -1
- package/commons/components/app/hooks/useAppSwitcher.js +1 -1
- package/commons/components/app/hooks/useAppTheme.js +1 -1
- package/commons/components/app/hooks/useAppUser.d.ts +1 -1
- package/commons/components/app/hooks/useAppUser.js +1 -1
- package/commons/components/app/providers/AppBarProvider.d.ts +2 -2
- package/commons/components/app/providers/AppBarProvider.js +8 -8
- package/commons/components/app/providers/AppBreadcrumbsProvider.js +5 -5
- package/commons/components/app/providers/AppLayoutProvider.js +7 -7
- package/commons/components/app/providers/AppLeftNavProvider.js +5 -5
- package/commons/components/app/providers/AppNotificationProvider.d.ts +1 -1
- package/commons/components/app/providers/AppNotificationProvider.js +1 -1
- package/commons/components/app/providers/AppQuickSearchProvider.d.ts +1 -1
- package/commons/components/app/providers/AppQuickSearchProvider.js +6 -6
- package/commons/components/app/providers/AppSearchServiceProvider.d.ts +1 -1
- package/commons/components/app/providers/AppSearchServiceProvider.js +2 -2
- package/commons/components/app/providers/AppSwitcherProvider.js +2 -2
- package/commons/components/app/providers/AppUserProvider.d.ts +1 -1
- package/commons/components/app/providers/AppUserProvider.js +1 -1
- package/commons/components/breadcrumbs/BreadcrumbIcon.d.ts +1 -1
- package/commons/components/breadcrumbs/BreadcrumbIcon.js +1 -1
- package/commons/components/breadcrumbs/BreadcrumbLastItem.d.ts +1 -1
- package/commons/components/breadcrumbs/BreadcrumbLastItem.js +2 -2
- package/commons/components/breadcrumbs/BreadcrumbLinkItem.d.ts +1 -1
- package/commons/components/breadcrumbs/BreadcrumbLinkItem.js +2 -2
- package/commons/components/breadcrumbs/BreadcrumbList.d.ts +1 -1
- package/commons/components/breadcrumbs/BreadcrumbList.js +3 -3
- package/commons/components/breadcrumbs/Breadcrumbs.js +2 -2
- package/commons/components/display/AppAvatar.js +1 -1
- package/commons/components/display/AppListEmpty.d.ts +1 -1
- package/commons/components/display/AppListEmpty.js +1 -1
- package/commons/components/display/AppToc.js +3 -3
- package/commons/components/display/hooks/useAppColor.js +1 -1
- package/commons/components/leftnav/LeftNavDrawer.js +3 -3
- package/commons/components/leftnav/LeftNavGroup.d.ts +1 -1
- package/commons/components/leftnav/LeftNavGroup.js +2 -2
- package/commons/components/leftnav/LeftNavItem.d.ts +1 -1
- package/commons/components/leftnav/LeftNavItem.js +1 -1
- package/commons/components/notification/Notification.js +4 -4
- package/commons/components/notification/elements/NotificationCloseButton.d.ts +1 -1
- package/commons/components/notification/elements/NotificationCloseButton.js +1 -1
- package/commons/components/notification/elements/NotificationContainer.d.ts +2 -2
- package/commons/components/notification/elements/NotificationContainer.js +5 -5
- package/commons/components/notification/elements/NotificationEndOfPage.js +1 -1
- package/commons/components/notification/elements/NotificationItems.d.ts +2 -2
- package/commons/components/notification/elements/NotificationItems.js +2 -2
- package/commons/components/notification/elements/item/NotificationItem.d.ts +1 -1
- package/commons/components/notification/elements/item/NotificationItem.js +6 -6
- package/commons/components/notification/elements/item/NotificationItemAuthor.d.ts +1 -1
- package/commons/components/notification/elements/item/NotificationItemContent.d.ts +1 -1
- package/commons/components/notification/elements/item/NotificationItemContent.js +1 -1
- package/commons/components/notification/elements/item/NotificationItemDate.d.ts +1 -1
- package/commons/components/notification/elements/item/NotificationItemDate.js +1 -1
- package/commons/components/notification/elements/item/NotificationItemTitle.d.ts +1 -1
- package/commons/components/notification/elements/item/NotificationItemTitle.js +1 -1
- package/commons/components/notification/index.d.ts +2 -2
- package/commons/components/notification/index.js +2 -2
- package/commons/components/pages/PageCenter.d.ts +1 -1
- package/commons/components/pages/PageCenter.js +2 -2
- package/commons/components/pages/PageContent.d.ts +1 -1
- package/commons/components/pages/PageContent.js +1 -1
- package/commons/components/pages/PageFullScreen.js +3 -3
- package/commons/components/pages/PageFullWidth.js +1 -1
- package/commons/components/pages/PageHeader.js +1 -1
- package/commons/components/search/AppSearch.js +4 -4
- package/commons/components/search/AppSearchResult.js +3 -3
- package/commons/components/topnav/AppBar.js +9 -9
- package/commons/components/topnav/AppName.js +1 -1
- package/commons/components/topnav/AppSwitcher.js +1 -1
- package/commons/components/topnav/Notifications.js +2 -2
- package/commons/components/topnav/ThemeSelection.js +3 -3
- package/commons/components/topnav/ThemeSelectionIcon.js +2 -2
- package/commons/components/topnav/UserProfile.d.ts +1 -1
- package/commons/components/topnav/UserProfile.js +3 -3
- package/commons/components/utils/hooks/useLocalStorageItem.js +1 -1
- package/commons/components/utils/hooks/useThemeBuilder.d.ts +1 -1
- package/commons/components/utils/hooks/useThemeBuilder.js +1 -1
- package/components/app/App.js +51 -51
- package/components/app/AppContainer.js +1 -1
- package/components/app/drawers/ApiKeyDrawer.js +5 -5
- package/components/app/drawers/AssignUserDrawer.js +5 -5
- package/components/app/drawers/ViewGroupsDrawer.d.ts +1 -1
- package/components/app/hooks/useTitle.js +2 -2
- package/components/app/providers/AnalyticProvider.d.ts +1 -1
- package/components/app/providers/AnalyticProvider.js +3 -3
- package/components/app/providers/ApiConfigProvider.d.ts +1 -1
- package/components/app/providers/AppDrawerProvider.js +1 -1
- package/components/app/providers/AvatarProvider.js +2 -2
- package/components/app/providers/CustomPluginProvider.js +1 -1
- package/components/app/providers/DossierProvider.d.ts +1 -1
- package/components/app/providers/DossierProvider.js +3 -3
- package/components/app/providers/FavouritesProvider.js +1 -1
- package/components/app/providers/FieldProvider.d.ts +1 -1
- package/components/app/providers/FieldProvider.js +2 -2
- package/components/app/providers/HitProvider.d.ts +1 -1
- package/components/app/providers/HitProvider.js +2 -2
- package/components/app/providers/HitSearchProvider.d.ts +3 -3
- package/components/app/providers/HitSearchProvider.js +7 -7
- package/components/app/providers/LocalStorageProvider.d.ts +1 -1
- package/components/app/providers/LocalStorageProvider.js +2 -2
- package/components/app/providers/OverviewProvider.d.ts +2 -2
- package/components/app/providers/OverviewProvider.js +1 -1
- package/components/app/providers/ParameterProvider.js +1 -1
- package/components/app/providers/SocketProvider.js +5 -5
- package/components/app/providers/TemplateProvider.d.ts +2 -2
- package/components/app/providers/TemplateProvider.js +2 -2
- package/components/app/providers/UserListProvider.d.ts +1 -1
- package/components/app/providers/UserListProvider.js +2 -2
- package/components/app/providers/ViewProvider.d.ts +1 -1
- package/components/app/providers/ViewProvider.js +5 -5
- package/components/elements/Comment.d.ts +3 -3
- package/components/elements/Comment.js +4 -4
- package/components/elements/EditRow.js +1 -1
- package/components/elements/PluginChip.js +1 -1
- package/components/elements/PluginTypography.js +1 -1
- package/components/elements/ThemedEditor.js +2 -2
- package/components/elements/UserList.js +1 -1
- package/components/elements/addons/layout/FlexPort.js +1 -1
- package/components/elements/addons/layout/FlexVertical.d.ts +1 -1
- package/components/elements/addons/layout/FlexVertical.js +1 -1
- package/components/elements/addons/layout/vsbox/VSBox.js +1 -1
- package/components/elements/addons/lists/TuiList.js +1 -1
- package/components/elements/addons/lists/TuiListBase.js +2 -2
- package/components/elements/addons/lists/hooks/useTuiListKeyboard.js +2 -2
- package/components/elements/addons/lists/table/TuiTable.js +1 -1
- package/components/elements/addons/lists/table/TuiTableBody.js +1 -1
- package/components/elements/addons/lists/table/TuiTableHead.js +1 -1
- package/components/elements/addons/search/phrase/Phrase.d.ts +1 -1
- package/components/elements/addons/search/phrase/Phrase.js +1 -1
- package/components/elements/display/Classification.js +1 -1
- package/components/elements/display/HandlebarsMarkdown.js +2 -2
- package/components/elements/display/HowlerAvatar.js +3 -3
- package/components/elements/display/HowlerAvatarHeader.d.ts +1 -1
- package/components/elements/display/ItemManager.d.ts +2 -2
- package/components/elements/display/ItemManager.js +5 -5
- package/components/elements/display/Markdown.js +1 -1
- package/components/elements/display/Modal.js +1 -1
- package/components/elements/display/UserPageWrapper.d.ts +1 -1
- package/components/elements/display/UserPageWrapper.js +1 -1
- package/components/elements/display/features/DevelopmentBanner.js +2 -2
- package/components/elements/display/features/DevelopmentIcon.js +2 -2
- package/components/elements/display/handlebars/helpers.js +4 -4
- package/components/elements/display/icons/BundleButton.js +1 -1
- package/components/elements/display/icons/SocketBadge.js +1 -1
- package/components/elements/display/json/JSONViewer.js +4 -4
- package/components/elements/display/json/worker.js +1 -1
- package/components/elements/display/modals/ConfirmDeleteModal.js +1 -1
- package/components/elements/display/modals/ConfirmNotebookModal.js +1 -1
- package/components/elements/display/modals/CreateActionModal.js +3 -3
- package/components/elements/display/modals/RationaleModal.js +2 -2
- package/components/elements/hit/HitActions.d.ts +1 -1
- package/components/elements/hit/HitActions.js +11 -11
- package/components/elements/hit/HitBanner.d.ts +1 -1
- package/components/elements/hit/HitBanner.js +5 -5
- package/components/elements/hit/HitBannerTooltip.d.ts +1 -1
- package/components/elements/hit/HitCard.js +2 -2
- package/components/elements/hit/HitComments.d.ts +2 -2
- package/components/elements/hit/HitComments.js +7 -7
- package/components/elements/hit/HitDetails.d.ts +1 -1
- package/components/elements/hit/HitDetails.js +1 -1
- package/components/elements/hit/HitLabels.d.ts +1 -1
- package/components/elements/hit/HitLabels.js +4 -4
- package/components/elements/hit/HitNotebooks.d.ts +2 -2
- package/components/elements/hit/HitNotebooks.js +6 -6
- package/components/elements/hit/HitOutline.d.ts +1 -1
- package/components/elements/hit/HitOutline.js +1 -1
- package/components/elements/hit/HitOverview.d.ts +1 -1
- package/components/elements/hit/HitOverview.js +2 -2
- package/components/elements/hit/HitQuickSearch.d.ts +2 -2
- package/components/elements/hit/HitQuickSearch.js +2 -2
- package/components/elements/hit/HitRelated.d.ts +1 -1
- package/components/elements/hit/HitSummary.d.ts +2 -2
- package/components/elements/hit/HitSummary.js +10 -10
- package/components/elements/hit/HitWorklog.d.ts +2 -2
- package/components/elements/hit/HitWorklog.js +4 -4
- package/components/elements/hit/actions/DropdownActions.js +1 -1
- package/components/elements/hit/aggregate/HitGraph.js +8 -8
- package/components/elements/hit/elements/Assigned.d.ts +1 -1
- package/components/elements/hit/elements/Assigned.js +2 -2
- package/components/elements/hit/elements/EscalationChip.d.ts +1 -1
- package/components/elements/hit/elements/EscalationChip.js +1 -1
- package/components/elements/hit/elements/HitTimestamp.d.ts +1 -1
- package/components/elements/hit/elements/HitTimestamp.js +2 -2
- package/components/elements/hit/outlines/DefaultOutline.d.ts +2 -2
- package/components/elements/hit/outlines/DefaultOutline.js +2 -2
- package/components/elements/hit/outlines/al/AssemblyLineRules.d.ts +1 -1
- package/components/elements/hit/related/PivotLink.d.ts +2 -2
- package/components/elements/hit/related/PivotLink.js +1 -1
- package/components/elements/hit/related/RelatedLink.js +3 -3
- package/components/elements/view/ViewTitle.js +1 -1
- package/components/hooks/useHitActions.d.ts +2 -2
- package/components/hooks/useHitActions.js +8 -8
- package/components/hooks/useHitSelection.d.ts +2 -2
- package/components/hooks/useHitSelection.js +4 -4
- package/components/hooks/useMyApi.js +1 -1
- package/components/hooks/useMyLocalStorage.d.ts +2 -2
- package/components/hooks/useMyLocalStorage.js +4 -4
- package/components/hooks/useMyPreferences.d.ts +1 -1
- package/components/hooks/useMyPreferences.js +3 -3
- package/components/hooks/useMySearch.d.ts +2 -2
- package/components/hooks/useMySearch.js +4 -4
- package/components/hooks/useMySitemap.d.ts +1 -1
- package/components/hooks/useMyTheme.d.ts +1 -1
- package/components/hooks/useMyUser.d.ts +2 -2
- package/components/hooks/useMyUserFunctions.d.ts +1 -1
- package/components/hooks/useMyUserFunctions.js +13 -13
- package/components/hooks/useMyUserList.js +1 -1
- package/components/hooks/useMyUtils.js +1 -1
- package/components/logins/Login.js +4 -4
- package/components/logins/auth/OAuthLogin.js +3 -3
- package/components/logins/hooks/useLogin.d.ts +1 -1
- package/components/logins/hooks/useLogin.js +9 -9
- package/components/routes/404.js +1 -1
- package/components/routes/ErrorOccured.js +2 -2
- package/components/routes/Logout.js +3 -3
- package/components/routes/action/edit/ActionEditor.d.ts +2 -2
- package/components/routes/action/edit/ActionEditor.js +9 -9
- package/components/routes/action/shared/ActionReportDisplay.d.ts +1 -1
- package/components/routes/action/shared/ActionReportDisplay.js +1 -1
- package/components/routes/action/shared/OperationEntry.d.ts +2 -2
- package/components/routes/action/shared/OperationEntry.js +2 -2
- package/components/routes/action/shared/OperationStep.d.ts +1 -1
- package/components/routes/action/shared/OperationStep.js +5 -5
- package/components/routes/action/useMyActionFunctions.d.ts +4 -4
- package/components/routes/action/useMyActionFunctions.js +4 -4
- package/components/routes/action/view/ActionDetails.js +9 -9
- package/components/routes/action/view/ActionSearch.js +11 -11
- package/components/routes/action/view/Integrations.js +2 -2
- package/components/routes/admin/users/UserEditor.js +7 -7
- package/components/routes/admin/users/UserSearch.js +15 -15
- package/components/routes/advanced/QueryBuilder.js +10 -10
- package/components/routes/advanced/QueryEditor.js +3 -3
- package/components/routes/advanced/RuleModal.js +9 -9
- package/components/routes/advanced/eqlCompletionProvider.js +1 -1
- package/components/routes/advanced/historyCompletionProvider.js +2 -2
- package/components/routes/advanced/luceneCompletionProvider.js +3 -3
- package/components/routes/advanced/yamlCompletionProvider.js +1 -1
- package/components/routes/analytics/AnalyticComments.d.ts +1 -1
- package/components/routes/analytics/AnalyticComments.js +8 -8
- package/components/routes/analytics/AnalyticDetails.js +10 -10
- package/components/routes/analytics/AnalyticHitComments.d.ts +1 -1
- package/components/routes/analytics/AnalyticHitComments.js +6 -6
- package/components/routes/analytics/AnalyticNotebooks.d.ts +1 -1
- package/components/routes/analytics/AnalyticNotebooks.js +7 -7
- package/components/routes/analytics/AnalyticOverview.d.ts +1 -1
- package/components/routes/analytics/AnalyticOverview.js +5 -5
- package/components/routes/analytics/AnalyticOverviews.d.ts +1 -1
- package/components/routes/analytics/AnalyticOverviews.js +2 -2
- package/components/routes/analytics/AnalyticSearch.js +13 -13
- package/components/routes/analytics/AnalyticTemplates.d.ts +1 -1
- package/components/routes/analytics/AnalyticTemplates.js +2 -2
- package/components/routes/analytics/RuleView.d.ts +1 -1
- package/components/routes/analytics/RuleView.js +3 -3
- package/components/routes/analytics/TriageSettings.d.ts +1 -1
- package/components/routes/analytics/TriageSettings.js +4 -4
- package/components/routes/analytics/widgets/Assessment.d.ts +1 -1
- package/components/routes/analytics/widgets/Assessment.js +3 -3
- package/components/routes/analytics/widgets/Created.d.ts +1 -1
- package/components/routes/analytics/widgets/Created.js +3 -3
- package/components/routes/analytics/widgets/Detection.d.ts +1 -1
- package/components/routes/analytics/widgets/Detection.js +1 -1
- package/components/routes/analytics/widgets/Escalation.d.ts +1 -1
- package/components/routes/analytics/widgets/Escalation.js +3 -3
- package/components/routes/analytics/widgets/Stacked.d.ts +1 -1
- package/components/routes/analytics/widgets/Stacked.js +2 -2
- package/components/routes/analytics/widgets/Status.d.ts +1 -1
- package/components/routes/analytics/widgets/Status.js +1 -1
- package/components/routes/dossiers/DossierCard.d.ts +1 -1
- package/components/routes/dossiers/DossierCard.js +2 -2
- package/components/routes/dossiers/DossierEditor.js +4 -4
- package/components/routes/dossiers/Dossiers.js +8 -8
- package/components/routes/dossiers/LeadEditor.d.ts +1 -1
- package/components/routes/dossiers/LeadEditor.js +2 -2
- package/components/routes/dossiers/LeadForm.d.ts +1 -1
- package/components/routes/dossiers/PivotForm.d.ts +2 -2
- package/components/routes/dossiers/PivotForm.js +2 -2
- package/components/routes/help/ActionDocumentation.js +3 -3
- package/components/routes/help/ActionIntroductionDocumentation.js +5 -5
- package/components/routes/help/ApiDocumentation.js +10 -10
- package/components/routes/help/AuthDocumentation.js +3 -3
- package/components/routes/help/BundleDocumentation.js +1 -1
- package/components/routes/help/ClientDocumentation.js +3 -3
- package/components/routes/help/Help.js +4 -4
- package/components/routes/help/HitBannerDocumentation.js +4 -4
- package/components/routes/help/HitDocumentation.js +2 -2
- package/components/routes/help/HitLabelsDocumentation.js +1 -1
- package/components/routes/help/HitLinksDocumentation.js +2 -2
- package/components/routes/help/HitSchemaDocumentation.js +3 -3
- package/components/routes/help/NotebookDocumentation.js +3 -3
- package/components/routes/help/OverviewDocumentation.js +3 -3
- package/components/routes/help/RetentionDocumentation.js +7 -7
- package/components/routes/help/SearchDocumentation.js +4 -4
- package/components/routes/help/TemplateDocumentation.js +5 -5
- package/components/routes/help/ViewDocumentation.js +3 -3
- package/components/routes/hits/search/BundleParentMenu.d.ts +1 -1
- package/components/routes/hits/search/BundleParentMenu.js +4 -4
- package/components/routes/hits/search/BundleScroller.js +1 -1
- package/components/routes/hits/search/CustomSort.js +2 -2
- package/components/routes/hits/search/HitBrowser.js +10 -10
- package/components/routes/hits/search/HitContextMenu.js +9 -9
- package/components/routes/hits/search/HitQuery.js +5 -5
- package/components/routes/hits/search/InformationPane.js +33 -33
- package/components/routes/hits/search/SearchPane.js +21 -21
- package/components/routes/hits/search/ViewLink.js +3 -3
- package/components/routes/hits/search/grid/AddColumnModal.js +3 -3
- package/components/routes/hits/search/grid/EnchancedCell.js +1 -1
- package/components/routes/hits/search/grid/HitGrid.js +12 -12
- package/components/routes/hits/search/grid/HitRow.d.ts +1 -1
- package/components/routes/hits/search/grid/HitRow.js +8 -8
- package/components/routes/hits/search/shared/CustomSpan.js +1 -1
- package/components/routes/hits/search/shared/HitFilter.js +4 -4
- package/components/routes/hits/search/shared/HitSort.js +2 -2
- package/components/routes/hits/search/shared/QuerySettings.js +2 -2
- package/components/routes/hits/search/shared/SearchSpan.js +3 -3
- package/components/routes/hits/view/HitViewer.js +29 -29
- package/components/routes/hits/view/LeadRenderer.d.ts +2 -2
- package/components/routes/hits/view/LeadRenderer.js +1 -1
- package/components/routes/home/AddNewCard.d.ts +1 -1
- package/components/routes/home/AddNewCard.js +3 -3
- package/components/routes/home/AnalyticCard.js +2 -2
- package/components/routes/home/ViewCard.js +6 -6
- package/components/routes/home/index.js +8 -8
- package/components/routes/overviews/OverviewCard.d.ts +1 -1
- package/components/routes/overviews/OverviewCard.js +2 -2
- package/components/routes/overviews/OverviewEditor.js +2 -2
- package/components/routes/overviews/OverviewViewer.js +9 -9
- package/components/routes/overviews/Overviews.js +8 -8
- package/components/routes/overviews/startingTemplate.js +1 -1
- package/components/routes/settings/AdminSection.js +1 -1
- package/components/routes/settings/LocalSection.js +4 -4
- package/components/routes/settings/ProfileSection.d.ts +1 -1
- package/components/routes/settings/ProfileSection.js +3 -3
- package/components/routes/settings/SecuritySection.d.ts +1 -1
- package/components/routes/settings/SecuritySection.js +8 -8
- package/components/routes/settings/Settings.js +5 -5
- package/components/routes/templates/TemplateCard.d.ts +1 -1
- package/components/routes/templates/TemplateEditor.d.ts +1 -1
- package/components/routes/templates/TemplateEditor.js +4 -4
- package/components/routes/templates/TemplateViewer.js +10 -10
- package/components/routes/templates/Templates.js +9 -9
- package/components/routes/views/ViewComposer.js +19 -19
- package/components/routes/views/Views.js +13 -13
- package/i18n.js +6 -6
- package/index.js +2 -2
- package/models/entities/HowlerUser.d.ts +1 -1
- package/models/socket/HitUpdate.d.ts +1 -1
- package/package.json +1 -1
- package/plugins/HowlerPlugin.d.ts +11 -11
- package/plugins/store.d.ts +1 -1
- package/rest/AxiosClient.d.ts +2 -2
- package/rest/AxiosClient.js +1 -1
- package/rest/FetchClient.d.ts +2 -2
- package/rest/index.d.ts +1 -1
- package/utils/actionUtils.d.ts +2 -2
- package/utils/hitFunctions.d.ts +1 -1
- package/utils/localStorage.d.ts +1 -1
- package/utils/sessionStorage.js +1 -1
- package/utils/socketUtils.d.ts +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Box, ListItem, ListItemButton, ListItemIcon, ListItemText, Tooltip, useTheme } from '@mui/material';
|
|
3
|
-
import { useAppLeftNav, useAppUser } from 'commons/components/app/hooks';
|
|
3
|
+
import { useAppLeftNav, useAppUser } from '@cccsaurora/howler-ui/commons/components/app/hooks';
|
|
4
4
|
import { memo, useMemo } from 'react';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
6
|
import { Link } from 'react-router-dom';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { parseFeed } from 'commons/components/notification';
|
|
3
|
-
import { NotificationContainer } from 'commons/components/notification/elements/NotificationContainer';
|
|
4
|
-
import { NotificationTopNavButton } from 'commons/components/notification/elements/NotificationTopNavButton';
|
|
5
|
-
import { NotificationItem } from 'commons/components/notification/elements/item/NotificationItem';
|
|
2
|
+
import { parseFeed } from '@cccsaurora/howler-ui/commons/components/notification';
|
|
3
|
+
import { NotificationContainer } from '@cccsaurora/howler-ui/commons/components/notification/elements/NotificationContainer';
|
|
4
|
+
import { NotificationTopNavButton } from '@cccsaurora/howler-ui/commons/components/notification/elements/NotificationTopNavButton';
|
|
5
|
+
import { NotificationItem } from '@cccsaurora/howler-ui/commons/components/notification/elements/item/NotificationItem';
|
|
6
6
|
import { memo, useCallback, useEffect, useRef, useState } from 'react';
|
|
7
7
|
export const Notification = memo(({ urls = null, notificationItem = NotificationItem, inDrawer = true, openIfNew = false, maxDrawerWidth = '500px' }) => {
|
|
8
8
|
const [drawer, setDrawer] = useState(false);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type NotificationProps } from 'commons/components/notification/elements/NotificationContainer';
|
|
1
|
+
import { type NotificationProps } from '@cccsaurora/howler-ui/commons/components/notification/elements/NotificationContainer';
|
|
2
2
|
import { type FC } from 'react';
|
|
3
3
|
export declare const NotificationCloseButton: FC<NotificationProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { CloseOutlined } from '@mui/icons-material';
|
|
3
3
|
import { IconButton } from '@mui/material';
|
|
4
|
-
import {} from 'commons/components/notification/elements/NotificationContainer';
|
|
4
|
+
import {} from '@cccsaurora/howler-ui/commons/components/notification/elements/NotificationContainer';
|
|
5
5
|
import { memo } from 'react';
|
|
6
6
|
export const NotificationCloseButton = memo(({ drawer = false, onDrawerOpen = () => null, onDrawerClose = () => null }) => (_jsx("div", { children: _jsx(IconButton, { onClick: () => (drawer ? onDrawerClose() : onDrawerOpen()), size: "large", children: _jsx(CloseOutlined, { fontSize: "medium" }) }) })));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type ItemComponentProps } from 'commons/components/app/AppNotificationService';
|
|
2
|
-
import { type FeedItem } from 'commons/components/notification';
|
|
1
|
+
import { type ItemComponentProps } from '@cccsaurora/howler-ui/commons/components/app/AppNotificationService';
|
|
2
|
+
import { type FeedItem } from '@cccsaurora/howler-ui/commons/components/notification';
|
|
3
3
|
import { type FC } from 'react';
|
|
4
4
|
export type NotificationProps = {
|
|
5
5
|
notifications: FeedItem[];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { FeedbackOutlined } from '@mui/icons-material';
|
|
3
3
|
import { Drawer, useMediaQuery, useTheme } from '@mui/material';
|
|
4
|
-
import {} from 'commons/components/app/AppNotificationService';
|
|
5
|
-
import {} from 'commons/components/notification';
|
|
6
|
-
import { NotificationCloseButton } from 'commons/components/notification/elements/NotificationCloseButton';
|
|
7
|
-
import { NotificationHeader } from 'commons/components/notification/elements/NotificationHeader';
|
|
8
|
-
import { NotificationItems } from 'commons/components/notification/elements/NotificationItems';
|
|
4
|
+
import {} from '@cccsaurora/howler-ui/commons/components/app/AppNotificationService';
|
|
5
|
+
import {} from '@cccsaurora/howler-ui/commons/components/notification';
|
|
6
|
+
import { NotificationCloseButton } from '@cccsaurora/howler-ui/commons/components/notification/elements/NotificationCloseButton';
|
|
7
|
+
import { NotificationHeader } from '@cccsaurora/howler-ui/commons/components/notification/elements/NotificationHeader';
|
|
8
|
+
import { NotificationItems } from '@cccsaurora/howler-ui/commons/components/notification/elements/NotificationItems';
|
|
9
9
|
import { memo, useCallback, useState } from 'react';
|
|
10
10
|
import { useTranslation } from 'react-i18next';
|
|
11
11
|
export const NotificationContainer = memo(props => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { NotificationSkeleton } from 'commons/components/notification/elements/NotificationSkeleton';
|
|
2
|
+
import { NotificationSkeleton } from '@cccsaurora/howler-ui/commons/components/notification/elements/NotificationSkeleton';
|
|
3
3
|
import { memo, useEffect, useRef, useState } from 'react';
|
|
4
4
|
function useOnScreen(ref, rootMargin = '0px') {
|
|
5
5
|
// State and setter for storing whether element is visible
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type ItemComponentProps } from 'commons/components/app/AppNotificationService';
|
|
2
|
-
import { type FeedItem } from 'commons/components/notification';
|
|
1
|
+
import { type ItemComponentProps } from '@cccsaurora/howler-ui/commons/components/app/AppNotificationService';
|
|
2
|
+
import { type FeedItem } from '@cccsaurora/howler-ui/commons/components/notification';
|
|
3
3
|
import { type FC } from 'react';
|
|
4
4
|
type NotificationListsProps = {
|
|
5
5
|
notifications: FeedItem[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Divider, Stack, useTheme } from '@mui/material';
|
|
3
|
-
import {} from 'commons/components/app/AppNotificationService';
|
|
4
|
-
import {} from 'commons/components/notification';
|
|
3
|
+
import {} from '@cccsaurora/howler-ui/commons/components/app/AppNotificationService';
|
|
4
|
+
import {} from '@cccsaurora/howler-ui/commons/components/notification';
|
|
5
5
|
import { memo } from 'react';
|
|
6
6
|
import { NotificationEndOfPage } from './NotificationEndOfPage';
|
|
7
7
|
import { NotificationError } from './NotificationError';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import type { FeedItem } from 'commons/components/notification/FeedModels';
|
|
2
|
+
import type { FeedItem } from '@cccsaurora/howler-ui/commons/components/notification/FeedModels';
|
|
3
3
|
export declare const NotificationItem: FC<{
|
|
4
4
|
item?: FeedItem;
|
|
5
5
|
}>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useTheme } from '@mui/material';
|
|
3
3
|
import { memo } from 'react';
|
|
4
|
-
import { NotificationItemAuthor } from 'commons/components/notification/elements/item/NotificationItemAuthor';
|
|
5
|
-
import { NotificationItemContent } from 'commons/components/notification/elements/item/NotificationItemContent';
|
|
6
|
-
import { NotificationItemDate } from 'commons/components/notification/elements/item/NotificationItemDate';
|
|
7
|
-
import { NotificationItemImage } from 'commons/components/notification/elements/item/NotificationItemImage';
|
|
8
|
-
import { NotificationItemTag } from 'commons/components/notification/elements/item/NotificationItemTag';
|
|
9
|
-
import { NotificationItemTitle } from 'commons/components/notification/elements/item/NotificationItemTitle';
|
|
4
|
+
import { NotificationItemAuthor } from '@cccsaurora/howler-ui/commons/components/notification/elements/item/NotificationItemAuthor';
|
|
5
|
+
import { NotificationItemContent } from '@cccsaurora/howler-ui/commons/components/notification/elements/item/NotificationItemContent';
|
|
6
|
+
import { NotificationItemDate } from '@cccsaurora/howler-ui/commons/components/notification/elements/item/NotificationItemDate';
|
|
7
|
+
import { NotificationItemImage } from '@cccsaurora/howler-ui/commons/components/notification/elements/item/NotificationItemImage';
|
|
8
|
+
import { NotificationItemTag } from '@cccsaurora/howler-ui/commons/components/notification/elements/item/NotificationItemTag';
|
|
9
|
+
import { NotificationItemTitle } from '@cccsaurora/howler-ui/commons/components/notification/elements/item/NotificationItemTitle';
|
|
10
10
|
export const NotificationItem = memo(({ item = null }) => {
|
|
11
11
|
const theme = useTheme();
|
|
12
12
|
return !item ? null : (_jsxs("div", { style: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FeedAuthor } from 'commons/components/notification/FeedModels';
|
|
1
|
+
import type { FeedAuthor } from '@cccsaurora/howler-ui/commons/components/notification/FeedModels';
|
|
2
2
|
import { type FC } from 'react';
|
|
3
3
|
export declare const NotificationItemAuthor: FC<{
|
|
4
4
|
author: FeedAuthor;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Box, Link, Typography } from '@mui/material';
|
|
3
|
-
import {} from 'commons/components/notification';
|
|
3
|
+
import {} from '@cccsaurora/howler-ui/commons/components/notification';
|
|
4
4
|
import DOMPurify from 'dompurify';
|
|
5
5
|
import { memo } from 'react';
|
|
6
6
|
import Markdown from 'react-markdown';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Typography } from '@mui/material';
|
|
3
|
-
import {} from 'commons/components/notification';
|
|
3
|
+
import {} from '@cccsaurora/howler-ui/commons/components/notification';
|
|
4
4
|
import moment from 'moment';
|
|
5
5
|
import { memo } from 'react';
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Circle } from '@mui/icons-material';
|
|
3
3
|
import { Link, Stack, Typography, useTheme } from '@mui/material';
|
|
4
|
-
import {} from 'commons/components/notification';
|
|
4
|
+
import {} from '@cccsaurora/howler-ui/commons/components/notification';
|
|
5
5
|
import { memo } from 'react';
|
|
6
6
|
export const NotificationItemTitle = memo(({ title = null, url = null, _isNew = false }) => {
|
|
7
7
|
const theme = useTheme();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from 'commons/components/notification/FeedModels';
|
|
2
|
-
export * from 'commons/components/notification/Notification';
|
|
1
|
+
export * from '@cccsaurora/howler-ui/commons/components/notification/FeedModels';
|
|
2
|
+
export * from '@cccsaurora/howler-ui/commons/components/notification/Notification';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from 'commons/components/notification/FeedModels';
|
|
2
|
-
export * from 'commons/components/notification/Notification';
|
|
1
|
+
export * from '@cccsaurora/howler-ui/commons/components/notification/FeedModels';
|
|
2
|
+
export * from '@cccsaurora/howler-ui/commons/components/notification/Notification';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Box } from '@mui/material';
|
|
3
|
-
import PageContent from 'commons/components/pages//PageContent';
|
|
4
|
-
import {} from 'commons/components/pages//hooks/usePageProps';
|
|
3
|
+
import PageContent from '@cccsaurora/howler-ui/commons/components/pages//PageContent';
|
|
4
|
+
import {} from '@cccsaurora/howler-ui/commons/components/pages//hooks/usePageProps';
|
|
5
5
|
import { memo } from 'react';
|
|
6
6
|
const PageCenter = ({ children, height, width = '95%', maxWidth = '1200px', textAlign = 'center', ...props }) => {
|
|
7
7
|
return (_jsx(Box, { component: "div", height: height, width: width, maxWidth: maxWidth, sx: theme => ({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type PageProps } from 'commons/components/pages/hooks/usePageProps';
|
|
1
|
+
import { type PageProps } from '@cccsaurora/howler-ui/commons/components/pages/hooks/usePageProps';
|
|
2
2
|
import { type ReactNode } from 'react';
|
|
3
3
|
type PageContentProps = PageProps & {
|
|
4
4
|
children?: ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import usePageProps, {} from 'commons/components/pages/hooks/usePageProps';
|
|
2
|
+
import usePageProps, {} from '@cccsaurora/howler-ui/commons/components/pages/hooks/usePageProps';
|
|
3
3
|
import { memo } from 'react';
|
|
4
4
|
const PageContent = ({ children, ...props }) => {
|
|
5
5
|
const pageProps = usePageProps({ props });
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Fullscreen, FullscreenExit } from '@mui/icons-material';
|
|
3
3
|
import { Box, IconButton } from '@mui/material';
|
|
4
|
-
import { useAppBar, useAppBarHeight, useAppLayout } from 'commons/components/app/hooks';
|
|
5
|
-
import PageContent from 'commons/components/pages/PageContent';
|
|
6
|
-
import useFullscreenStatus from 'commons/components/utils/hooks/useFullscreenStatus';
|
|
4
|
+
import { useAppBar, useAppBarHeight, useAppLayout } from '@cccsaurora/howler-ui/commons/components/app/hooks';
|
|
5
|
+
import PageContent from '@cccsaurora/howler-ui/commons/components/pages/PageContent';
|
|
6
|
+
import useFullscreenStatus from '@cccsaurora/howler-ui/commons/components/utils/hooks/useFullscreenStatus';
|
|
7
7
|
import { memo, useCallback, useRef } from 'react';
|
|
8
8
|
const PageFullscreen = ({ children, margin = null, mb = 2, ml = 2, mr = 2, mt = 2 }) => {
|
|
9
9
|
const maximizableElement = useRef(null);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import PageContent from 'commons/components/pages//PageContent';
|
|
2
|
+
import PageContent from '@cccsaurora/howler-ui/commons/components/pages//PageContent';
|
|
3
3
|
import { memo } from 'react';
|
|
4
4
|
const PageFullWidth = ({ children, height, margin = null, mb = 2, ml = 2, mr = 2, mt = 2 }) => {
|
|
5
5
|
return (_jsx(PageContent, { width: "100%", height: height, margin: margin, mb: mb, ml: ml, mr: mr, mt: mt, children: children }));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { AppBar, Button, IconButton, Toolbar, Tooltip, useTheme } from '@mui/material';
|
|
3
|
-
import { useAppBar, useAppBarHeight, useAppLayout } from 'commons/components/app/hooks';
|
|
3
|
+
import { useAppBar, useAppBarHeight, useAppLayout } from '@cccsaurora/howler-ui/commons/components/app/hooks';
|
|
4
4
|
import { memo } from 'react';
|
|
5
5
|
const PageHeader = ({ children, left, right, actions, backgroundColor, className, isSticky = false, top = null, elevation = 0 }) => {
|
|
6
6
|
const theme = useTheme();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { Search } from '@mui/icons-material';
|
|
3
3
|
import { Box, ClickAwayListener, Dialog, DialogContent, DialogTitle, emphasize, IconButton, Popper, Slide, Stack, styled, Tooltip, useMediaQuery, useTheme } from '@mui/material';
|
|
4
|
-
import { useAppSearchService } from 'commons/components/app/hooks/useAppSearchService';
|
|
5
|
-
import AppSearchInput from 'commons/components/search/AppSearchInput';
|
|
6
|
-
import AppSearchResult from 'commons/components/search/AppSearchResult';
|
|
7
|
-
import { parseEvent } from 'commons/components/utils/keyboard';
|
|
4
|
+
import { useAppSearchService } from '@cccsaurora/howler-ui/commons/components/app/hooks/useAppSearchService';
|
|
5
|
+
import AppSearchInput from '@cccsaurora/howler-ui/commons/components/search/AppSearchInput';
|
|
6
|
+
import AppSearchResult from '@cccsaurora/howler-ui/commons/components/search/AppSearchResult';
|
|
7
|
+
import { parseEvent } from '@cccsaurora/howler-ui/commons/components/utils/keyboard';
|
|
8
8
|
import { forwardRef, useCallback, useEffect, useRef, useState } from 'react';
|
|
9
9
|
import { useTranslation } from 'react-i18next';
|
|
10
10
|
const MENU_LIST_SX = { maxHeight: 500, overflow: 'auto' };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Box, MenuItem, MenuList, Typography } from '@mui/material';
|
|
3
|
-
import { useAppSearchService } from 'commons/components/app/hooks/useAppSearchService';
|
|
3
|
+
import { useAppSearchService } from '@cccsaurora/howler-ui/commons/components/app/hooks/useAppSearchService';
|
|
4
4
|
import { memo, useMemo } from 'react';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
|
-
import AppListEmpty from 'commons/components/display/AppListEmpty';
|
|
7
|
-
import { parseEvent } from 'commons/components/utils/keyboard';
|
|
6
|
+
import AppListEmpty from '@cccsaurora/howler-ui/commons/components/display/AppListEmpty';
|
|
7
|
+
import { parseEvent } from '@cccsaurora/howler-ui/commons/components/utils/keyboard';
|
|
8
8
|
const AppSearchResult = ({ className, ...menuProps }) => {
|
|
9
9
|
const { t } = useTranslation();
|
|
10
10
|
const { state, service } = useAppSearchService();
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Box, AppBar as MuiAppBar, Toolbar, useMediaQuery, useTheme } from '@mui/material';
|
|
3
|
-
import { useAppBar, useAppBreadcrumbs, useAppConfigs, useAppLayout, useAppQuickSearch } from 'commons/components/app/hooks';
|
|
4
|
-
import { APPBAR_READY_EVENT } from 'commons/components/app/hooks/useAppBarHeight';
|
|
5
|
-
import Breadcrumbs from 'commons/components/breadcrumbs/Breadcrumbs';
|
|
6
|
-
import AppSearch from 'commons/components/search/AppSearch';
|
|
7
|
-
import AppName from 'commons/components/topnav/AppName';
|
|
8
|
-
import AppSwitcher from 'commons/components/topnav/AppSwitcher';
|
|
9
|
-
import { Notifications } from 'commons/components/topnav/Notifications';
|
|
10
|
-
import ThemeSelectionIcon from 'commons/components/topnav/ThemeSelectionIcon';
|
|
11
|
-
import UserProfile from 'commons/components/topnav/UserProfile';
|
|
3
|
+
import { useAppBar, useAppBreadcrumbs, useAppConfigs, useAppLayout, useAppQuickSearch } from '@cccsaurora/howler-ui/commons/components/app/hooks';
|
|
4
|
+
import { APPBAR_READY_EVENT } from '@cccsaurora/howler-ui/commons/components/app/hooks/useAppBarHeight';
|
|
5
|
+
import Breadcrumbs from '@cccsaurora/howler-ui/commons/components/breadcrumbs/Breadcrumbs';
|
|
6
|
+
import AppSearch from '@cccsaurora/howler-ui/commons/components/search/AppSearch';
|
|
7
|
+
import AppName from '@cccsaurora/howler-ui/commons/components/topnav/AppName';
|
|
8
|
+
import AppSwitcher from '@cccsaurora/howler-ui/commons/components/topnav/AppSwitcher';
|
|
9
|
+
import { Notifications } from '@cccsaurora/howler-ui/commons/components/topnav/Notifications';
|
|
10
|
+
import ThemeSelectionIcon from '@cccsaurora/howler-ui/commons/components/topnav/ThemeSelectionIcon';
|
|
11
|
+
import UserProfile from '@cccsaurora/howler-ui/commons/components/topnav/UserProfile';
|
|
12
12
|
import { memo, useCallback, useLayoutEffect, useMemo } from 'react';
|
|
13
13
|
export const AppBarBase = ({ children }) => {
|
|
14
14
|
const layout = useAppLayout();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Menu } from '@mui/icons-material';
|
|
3
3
|
import { IconButton, styled, useMediaQuery, useTheme } from '@mui/material';
|
|
4
|
-
import { useAppConfigs, useAppLeftNav, useAppLogo } from 'commons/components/app/hooks';
|
|
4
|
+
import { useAppConfigs, useAppLeftNav, useAppLogo } from '@cccsaurora/howler-ui/commons/components/app/hooks';
|
|
5
5
|
import { memo } from 'react';
|
|
6
6
|
import { Link } from 'react-router-dom';
|
|
7
7
|
const StyledTitle = styled('div')({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Apps } from '@mui/icons-material';
|
|
3
3
|
import { Avatar, Button, ClickAwayListener, Fade, IconButton, Link, Paper, Popper, Typography, useMediaQuery, useTheme } from '@mui/material';
|
|
4
|
-
import { useAppSwitcher } from 'commons/components/app/hooks/useAppSwitcher';
|
|
4
|
+
import { useAppSwitcher } from '@cccsaurora/howler-ui/commons/components/app/hooks/useAppSwitcher';
|
|
5
5
|
import { memo, useCallback, useRef, useState } from 'react';
|
|
6
6
|
const AppSwitcher = () => {
|
|
7
7
|
const theme = useTheme();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useAppNotification } from 'commons/components/app/hooks/useAppNotification';
|
|
3
|
-
import { Notification } from 'commons/components/notification';
|
|
2
|
+
import { useAppNotification } from '@cccsaurora/howler-ui/commons/components/app/hooks/useAppNotification';
|
|
3
|
+
import { Notification } from '@cccsaurora/howler-ui/commons/components/notification';
|
|
4
4
|
import {} from 'react';
|
|
5
5
|
export const Notifications = () => {
|
|
6
6
|
const { service, state } = useAppNotification();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { Divider, List, ListItemButton, ListItemSecondaryAction, ListItemText, ListSubheader, Switch, Typography, useMediaQuery, useTheme } from '@mui/material';
|
|
3
|
-
import useLocalStorage from 'commons/components//utils/hooks/useLocalStorage';
|
|
4
|
-
import { APP_STORAGE_PREFIX } from 'commons/components/app/AppConstants';
|
|
5
|
-
import { useAppBar, useAppBreadcrumbs, useAppConfigs, useAppLanguage, useAppLayout, useAppQuickSearch, useAppTheme } from 'commons/components/app/hooks';
|
|
3
|
+
import useLocalStorage from '@cccsaurora/howler-ui/commons/components//utils/hooks/useLocalStorage';
|
|
4
|
+
import { APP_STORAGE_PREFIX } from '@cccsaurora/howler-ui/commons/components/app/AppConstants';
|
|
5
|
+
import { useAppBar, useAppBreadcrumbs, useAppConfigs, useAppLanguage, useAppLayout, useAppQuickSearch, useAppTheme } from '@cccsaurora/howler-ui/commons/components/app/hooks';
|
|
6
6
|
import { memo } from 'react';
|
|
7
7
|
import { useTranslation } from 'react-i18next';
|
|
8
8
|
const ThemeSelection = () => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Tune } from '@mui/icons-material';
|
|
3
3
|
import { ClickAwayListener, Fade, IconButton, Paper, Popper, useTheme } from '@mui/material';
|
|
4
|
-
import { useAppConfigs } from 'commons/components/app/hooks/useAppConfigs';
|
|
5
|
-
import ThemeSelection from 'commons/components/topnav/ThemeSelection';
|
|
4
|
+
import { useAppConfigs } from '@cccsaurora/howler-ui/commons/components/app/hooks/useAppConfigs';
|
|
5
|
+
import ThemeSelection from '@cccsaurora/howler-ui/commons/components/topnav/ThemeSelection';
|
|
6
6
|
import { useRef, useState } from 'react';
|
|
7
7
|
const ThemeSelectionIcon = () => {
|
|
8
8
|
const anchorEl = useRef();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { StyledComponent } from '@emotion/styled';
|
|
2
|
-
import { type AppAvatarProps } from 'commons/components/display/AppAvatar';
|
|
2
|
+
import { type AppAvatarProps } from '@cccsaurora/howler-ui/commons/components/display/AppAvatar';
|
|
3
3
|
export declare const AppUserAvatar: StyledComponent<AppAvatarProps>;
|
|
4
4
|
declare const _default: import("react").MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
|
|
5
5
|
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Box, ClickAwayListener, Divider, Fade, IconButton, List, ListItem, ListItemButton, ListItemIcon, ListItemText, ListSubheader, Paper, Popper, styled, Typography, useTheme } from '@mui/material';
|
|
3
|
-
import { useAppConfigs, useAppUser } from 'commons/components/app/hooks';
|
|
4
|
-
import AppAvatar, {} from 'commons/components/display/AppAvatar';
|
|
5
|
-
import ThemeSelection from 'commons/components/topnav/ThemeSelection';
|
|
3
|
+
import { useAppConfigs, useAppUser } from '@cccsaurora/howler-ui/commons/components/app/hooks';
|
|
4
|
+
import AppAvatar, {} from '@cccsaurora/howler-ui/commons/components/display/AppAvatar';
|
|
5
|
+
import ThemeSelection from '@cccsaurora/howler-ui/commons/components/topnav/ThemeSelection';
|
|
6
6
|
import { memo, useCallback, useRef, useState } from 'react';
|
|
7
7
|
import { useTranslation } from 'react-i18next';
|
|
8
8
|
import { Link } from 'react-router-dom';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import useLocalStorage from 'commons/components/utils/hooks/useLocalStorage';
|
|
1
|
+
import useLocalStorage from '@cccsaurora/howler-ui/commons/components/utils/hooks/useLocalStorage';
|
|
2
2
|
import { useEffect, useMemo, useState } from 'react';
|
|
3
3
|
/**
|
|
4
4
|
* This hooks backs the typical 'useState' hook with local storage.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Components, type PaletteOptions, type Theme } from '@mui/material';
|
|
2
|
-
import type { AppThemeConfigs } from 'commons/components/app/AppConfigs';
|
|
2
|
+
import type { AppThemeConfigs } from '@cccsaurora/howler-ui/commons/components/app/AppConfigs';
|
|
3
3
|
export declare const createTuiTheme: (components: Components<Omit<Theme, "components">>, palette: PaletteOptions) => Theme;
|
|
4
4
|
export default function useThemeBuilder(theme?: AppThemeConfigs): {
|
|
5
5
|
darkTheme: Theme;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createTheme } from '@mui/material';
|
|
2
|
-
import { AppDefaultsThemeConfigs } from 'commons/components/app/AppDefaults';
|
|
2
|
+
import { AppDefaultsThemeConfigs } from '@cccsaurora/howler-ui/commons/components/app/AppDefaults';
|
|
3
3
|
import { useMemo } from 'react';
|
|
4
4
|
export const createTuiTheme = (components, palette) => createTheme({
|
|
5
5
|
components: {
|
package/components/app/App.js
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { loader } from '@monaco-editor/react';
|
|
3
|
-
import api from 'api';
|
|
4
|
-
import AppProvider from 'commons/components/app/AppProvider';
|
|
5
|
-
import LayoutSkeleton from 'commons/components/app/AppSkeleton';
|
|
6
|
-
import { useAppLayout, useAppSwitcher, useAppUser } from 'commons/components/app/hooks';
|
|
7
|
-
import Modal from 'components/elements/display/Modal';
|
|
8
|
-
import useMyApi from 'components/hooks/useMyApi';
|
|
9
|
-
import useMyLocalStorage from 'components/hooks/useMyLocalStorage';
|
|
10
|
-
import useMyPreferences from 'components/hooks/useMyPreferences';
|
|
11
|
-
import useMySitemap from 'components/hooks/useMySitemap';
|
|
12
|
-
import useMyTheme from 'components/hooks/useMyTheme';
|
|
13
|
-
import useMyUser from 'components/hooks/useMyUser';
|
|
14
|
-
import LoginScreen from 'components/logins/Login';
|
|
15
|
-
import useLogin from 'components/logins/hooks/useLogin';
|
|
16
|
-
import NotFoundPage from 'components/routes/404';
|
|
17
|
-
import ErrorBoundary from 'components/routes/ErrorBoundary';
|
|
18
|
-
import Logout from 'components/routes/Logout';
|
|
19
|
-
import ActionEditor from 'components/routes/action/edit/ActionEditor';
|
|
20
|
-
import ActionDetails from 'components/routes/action/view/ActionDetails';
|
|
21
|
-
import ActionSearchProvider from 'components/routes/action/view/ActionSearch';
|
|
22
|
-
import Integrations from 'components/routes/action/view/Integrations';
|
|
23
|
-
import UserEditor from 'components/routes/admin/users/UserEditor';
|
|
24
|
-
import UserSearchProvider from 'components/routes/admin/users/UserSearch';
|
|
25
|
-
import QueryBuilder from 'components/routes/advanced/QueryBuilder';
|
|
26
|
-
import AnalyticDetails from 'components/routes/analytics/AnalyticDetails';
|
|
27
|
-
import AnalyticSearch from 'components/routes/analytics/AnalyticSearch';
|
|
28
|
-
import DossierEditor from 'components/routes/dossiers/DossierEditor';
|
|
29
|
-
import Dossiers from 'components/routes/dossiers/Dossiers';
|
|
30
|
-
import ActionDocumentation from 'components/routes/help/ActionDocumentation';
|
|
31
|
-
import ApiDocumentation from 'components/routes/help/ApiDocumentation';
|
|
32
|
-
import AuthDocumentation from 'components/routes/help/AuthDocumentation';
|
|
33
|
-
import ClientDocumentation from 'components/routes/help/ClientDocumentation';
|
|
34
|
-
import HelpDashboard from 'components/routes/help/Help';
|
|
35
|
-
import HitDocumentation from 'components/routes/help/HitDocumentation';
|
|
36
|
-
import NotebookDocumentation from 'components/routes/help/NotebookDocumentation';
|
|
37
|
-
import OverviewDocumentation from 'components/routes/help/OverviewDocumentation';
|
|
38
|
-
import RetentionDocumentation from 'components/routes/help/RetentionDocumentation';
|
|
39
|
-
import SearchDocumentation from 'components/routes/help/SearchDocumentation';
|
|
40
|
-
import TemplateDocumentation from 'components/routes/help/TemplateDocumentation';
|
|
41
|
-
import ViewDocumentation from 'components/routes/help/ViewDocumentation';
|
|
42
|
-
import HitBrowser from 'components/routes/hits/search/HitBrowser';
|
|
43
|
-
import HitViewer from 'components/routes/hits/view/HitViewer';
|
|
44
|
-
import Home from 'components/routes/home';
|
|
45
|
-
import OverviewViewer from 'components/routes/overviews/OverviewViewer';
|
|
46
|
-
import Overviews from 'components/routes/overviews/Overviews';
|
|
47
|
-
import Settings from 'components/routes/settings/Settings';
|
|
48
|
-
import TemplateViewer from 'components/routes/templates/TemplateViewer';
|
|
49
|
-
import Templates from 'components/routes/templates/Templates';
|
|
50
|
-
import ViewComposer from 'components/routes/views/ViewComposer';
|
|
51
|
-
import Views from 'components/routes/views/Views';
|
|
3
|
+
import api from '@cccsaurora/howler-ui/api';
|
|
4
|
+
import AppProvider from '@cccsaurora/howler-ui/commons/components/app/AppProvider';
|
|
5
|
+
import LayoutSkeleton from '@cccsaurora/howler-ui/commons/components/app/AppSkeleton';
|
|
6
|
+
import { useAppLayout, useAppSwitcher, useAppUser } from '@cccsaurora/howler-ui/commons/components/app/hooks';
|
|
7
|
+
import Modal from '@cccsaurora/howler-ui/components/elements/display/Modal';
|
|
8
|
+
import useMyApi from '@cccsaurora/howler-ui/components/hooks/useMyApi';
|
|
9
|
+
import useMyLocalStorage from '@cccsaurora/howler-ui/components/hooks/useMyLocalStorage';
|
|
10
|
+
import useMyPreferences from '@cccsaurora/howler-ui/components/hooks/useMyPreferences';
|
|
11
|
+
import useMySitemap from '@cccsaurora/howler-ui/components/hooks/useMySitemap';
|
|
12
|
+
import useMyTheme from '@cccsaurora/howler-ui/components/hooks/useMyTheme';
|
|
13
|
+
import useMyUser from '@cccsaurora/howler-ui/components/hooks/useMyUser';
|
|
14
|
+
import LoginScreen from '@cccsaurora/howler-ui/components/logins/Login';
|
|
15
|
+
import useLogin from '@cccsaurora/howler-ui/components/logins/hooks/useLogin';
|
|
16
|
+
import NotFoundPage from '@cccsaurora/howler-ui/components/routes/404';
|
|
17
|
+
import ErrorBoundary from '@cccsaurora/howler-ui/components/routes/ErrorBoundary';
|
|
18
|
+
import Logout from '@cccsaurora/howler-ui/components/routes/Logout';
|
|
19
|
+
import ActionEditor from '@cccsaurora/howler-ui/components/routes/action/edit/ActionEditor';
|
|
20
|
+
import ActionDetails from '@cccsaurora/howler-ui/components/routes/action/view/ActionDetails';
|
|
21
|
+
import ActionSearchProvider from '@cccsaurora/howler-ui/components/routes/action/view/ActionSearch';
|
|
22
|
+
import Integrations from '@cccsaurora/howler-ui/components/routes/action/view/Integrations';
|
|
23
|
+
import UserEditor from '@cccsaurora/howler-ui/components/routes/admin/users/UserEditor';
|
|
24
|
+
import UserSearchProvider from '@cccsaurora/howler-ui/components/routes/admin/users/UserSearch';
|
|
25
|
+
import QueryBuilder from '@cccsaurora/howler-ui/components/routes/advanced/QueryBuilder';
|
|
26
|
+
import AnalyticDetails from '@cccsaurora/howler-ui/components/routes/analytics/AnalyticDetails';
|
|
27
|
+
import AnalyticSearch from '@cccsaurora/howler-ui/components/routes/analytics/AnalyticSearch';
|
|
28
|
+
import DossierEditor from '@cccsaurora/howler-ui/components/routes/dossiers/DossierEditor';
|
|
29
|
+
import Dossiers from '@cccsaurora/howler-ui/components/routes/dossiers/Dossiers';
|
|
30
|
+
import ActionDocumentation from '@cccsaurora/howler-ui/components/routes/help/ActionDocumentation';
|
|
31
|
+
import ApiDocumentation from '@cccsaurora/howler-ui/components/routes/help/ApiDocumentation';
|
|
32
|
+
import AuthDocumentation from '@cccsaurora/howler-ui/components/routes/help/AuthDocumentation';
|
|
33
|
+
import ClientDocumentation from '@cccsaurora/howler-ui/components/routes/help/ClientDocumentation';
|
|
34
|
+
import HelpDashboard from '@cccsaurora/howler-ui/components/routes/help/Help';
|
|
35
|
+
import HitDocumentation from '@cccsaurora/howler-ui/components/routes/help/HitDocumentation';
|
|
36
|
+
import NotebookDocumentation from '@cccsaurora/howler-ui/components/routes/help/NotebookDocumentation';
|
|
37
|
+
import OverviewDocumentation from '@cccsaurora/howler-ui/components/routes/help/OverviewDocumentation';
|
|
38
|
+
import RetentionDocumentation from '@cccsaurora/howler-ui/components/routes/help/RetentionDocumentation';
|
|
39
|
+
import SearchDocumentation from '@cccsaurora/howler-ui/components/routes/help/SearchDocumentation';
|
|
40
|
+
import TemplateDocumentation from '@cccsaurora/howler-ui/components/routes/help/TemplateDocumentation';
|
|
41
|
+
import ViewDocumentation from '@cccsaurora/howler-ui/components/routes/help/ViewDocumentation';
|
|
42
|
+
import HitBrowser from '@cccsaurora/howler-ui/components/routes/hits/search/HitBrowser';
|
|
43
|
+
import HitViewer from '@cccsaurora/howler-ui/components/routes/hits/view/HitViewer';
|
|
44
|
+
import Home from '@cccsaurora/howler-ui/components/routes/home';
|
|
45
|
+
import OverviewViewer from '@cccsaurora/howler-ui/components/routes/overviews/OverviewViewer';
|
|
46
|
+
import Overviews from '@cccsaurora/howler-ui/components/routes/overviews/Overviews';
|
|
47
|
+
import Settings from '@cccsaurora/howler-ui/components/routes/settings/Settings';
|
|
48
|
+
import TemplateViewer from '@cccsaurora/howler-ui/components/routes/templates/TemplateViewer';
|
|
49
|
+
import Templates from '@cccsaurora/howler-ui/components/routes/templates/Templates';
|
|
50
|
+
import ViewComposer from '@cccsaurora/howler-ui/components/routes/views/ViewComposer';
|
|
51
|
+
import Views from '@cccsaurora/howler-ui/components/routes/views/Views';
|
|
52
52
|
import i18n from 'i18n';
|
|
53
53
|
import * as monaco from 'monaco-editor';
|
|
54
|
-
import howlerPluginStore from 'plugins/store';
|
|
54
|
+
import howlerPluginStore from '@cccsaurora/howler-ui/plugins/store';
|
|
55
55
|
import { useContext, useEffect } from 'react';
|
|
56
56
|
import { I18nextProvider } from 'react-i18next';
|
|
57
57
|
import { PluginProvider, usePluginStore } from 'react-pluggable';
|
|
58
58
|
import { createBrowserRouter, Outlet, RouterProvider, useLocation, useNavigate } from 'react-router-dom';
|
|
59
|
-
import { StorageKey } from 'utils/constants';
|
|
59
|
+
import { StorageKey } from '@cccsaurora/howler-ui/utils/constants';
|
|
60
60
|
import useMySearch from '../hooks/useMySearch';
|
|
61
61
|
import AppContainer from './AppContainer';
|
|
62
62
|
import AnalyticProvider from './providers/AnalyticProvider';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import FlexVertical from 'components/elements/addons/layout/FlexVertical';
|
|
2
|
+
import FlexVertical from '@cccsaurora/howler-ui/components/elements/addons/layout/FlexVertical';
|
|
3
3
|
import { Outlet } from 'react-router-dom';
|
|
4
4
|
import useTitle from './hooks/useTitle';
|
|
5
5
|
import AppDrawerProvider from './providers/AppDrawerProvider';
|
|
@@ -2,10 +2,10 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
import { Alert, AlertTitle, Button, Checkbox, Divider, FormControl, FormControlLabel, FormGroup, FormLabel, Stack, TextField, Typography } from '@mui/material';
|
|
3
3
|
import { LocalizationProvider, StaticDateTimePicker } from '@mui/x-date-pickers';
|
|
4
4
|
import { AdapterMoment } from '@mui/x-date-pickers/AdapterMoment';
|
|
5
|
-
import api from 'api';
|
|
6
|
-
import useMyApi from 'components/hooks/useMyApi';
|
|
7
|
-
import useMySnackbar from 'components/hooks/useMySnackbar';
|
|
8
|
-
import {} from 'models/entities/generated/ApiType';
|
|
5
|
+
import api from '@cccsaurora/howler-ui/api';
|
|
6
|
+
import useMyApi from '@cccsaurora/howler-ui/components/hooks/useMyApi';
|
|
7
|
+
import useMySnackbar from '@cccsaurora/howler-ui/components/hooks/useMySnackbar';
|
|
8
|
+
import {} from '@cccsaurora/howler-ui/models/entities/generated/ApiType';
|
|
9
9
|
import moment from 'moment';
|
|
10
10
|
import { useCallback, useContext, useEffect, useMemo, useState } from 'react';
|
|
11
11
|
import { Trans, useTranslation } from 'react-i18next';
|
|
@@ -62,6 +62,6 @@ const ApiKeyDrawer = ({ onCreated }) => {
|
|
|
62
62
|
useEffect(() => {
|
|
63
63
|
setExpiryDate(maxDate);
|
|
64
64
|
}, [maxDate]);
|
|
65
|
-
return (_jsx(LocalizationProvider, { dateAdapter: AdapterMoment, children: _jsxs(Stack, { direction: "column", spacing: 2, sx: { mt: 2 }, children: [_jsx(Typography, { sx: { maxWidth: '500px' }, children: _jsx(Trans, { i18nKey: "app.drawer.user.apikey.description" }) }), amount && unit && moment.duration(amount, unit).asSeconds() < moment.duration(7, 'days').asSeconds() && (_jsxs(Alert, { severity: "warning", variant: "outlined", sx: { maxWidth: '500px' }, children: [_jsx(AlertTitle, { children: t('app.drawer.user.apikey.limit.title') }), t('app.drawer.user.apikey.limit.description'), " (", maxDate?.format('MMM D HH:mm:ss'), ")"] })), _jsx(TextField, { label: t('app.drawer.user.apikey.field.name'), required: true, fullWidth: true, value: keyName, onChange: onChange }), _jsxs(FormControl, { required: true, children: [_jsx(FormLabel, { component: "legend", children: t('app.drawer.user.apikey.permissions') }), _jsxs(FormGroup, { sx: { display: 'grid', gridTemplateColumns: '1fr 1fr' }, children: [_jsx(FormControlLabel, { control: _jsx(Checkbox, { onChange: updatePrivs('R') }), label: t('apikey.read') }), _jsx(FormControlLabel, { control: _jsx(Checkbox, { onChange: updatePrivs('W') }), label: t('apikey.write') }), _jsx(FormControlLabel, { disabled: privs.includes('E'), control: _jsx(Checkbox, { onChange: updatePrivs('I') }), label: t('apikey.impersonate') }), config.configuration.auth.allow_extended_apikeys && (_jsx(FormControlLabel, { disabled: privs.includes('I'), control: _jsx(Checkbox, { onChange: updatePrivs('E') }), label: t('apikey.extended') }))] })] }), _jsxs(FormControl, { required: !!maxDate, children: [_jsx(FormLabel, { children: t('app.drawer.user.apikey.expiry.date') }), _jsx(StaticDateTimePicker, { orientation: "landscape", ampm: false, value: expiryDate, onChange: newValue => setExpiryDate(newValue), disablePast: true, maxDate: maxDate, maxTime: maxDate, sx: { backgroundColor: 'transparent', '& > div:first-of-type': { maxWidth: '300px' } } })] }), _jsx(Button, { onClick: onSubmit, disabled: !keyName || (!privs.includes('R') && !privs.includes('W')) || (maxDate && !expiryDate), variant: "outlined", children: _jsx(Trans, { i18nKey: "button.create" }) }), createdKey && (_jsxs(_Fragment, { children: [_jsx(Divider, { orientation: "horizontal" }), _jsxs(Stack, { direction: "row", spacing: 1, alignItems: "stretch", children: [_jsx(TextField, { size: "small", value: createdKey, inputProps: { readOnly: true }, fullWidth: true }), _jsx(Button, { variant: "outlined", onClick: onCopy, disabled: !createdKey, children: _jsx(Trans, { i18nKey: "button.copy" }) })] })] }))] }) }));
|
|
65
|
+
return (_jsx(LocalizationProvider, { dateAdapter: AdapterMoment, children: _jsxs(Stack, { direction: "column", spacing: 2, sx: { mt: 2 }, children: [_jsx(Typography, { sx: { maxWidth: '500px' }, children: _jsx(Trans, { i18nKey: "app.drawer.user.apikey.description" }) }), amount && unit && moment.duration(amount, unit).asSeconds() < moment.duration(7, 'days').asSeconds() && (_jsxs(Alert, { severity: "warning", variant: "outlined", sx: { maxWidth: '500px' }, children: [_jsx(AlertTitle, { children: t('app.drawer.user.apikey.limit.title') }), t('app.drawer.user.apikey.limit.description'), " (", maxDate?.format('MMM D HH:mm:ss'), ")"] })), _jsx(TextField, { label: t('app.drawer.user.apikey.field.name'), required: true, fullWidth: true, value: keyName, onChange: onChange }), _jsxs(FormControl, { required: true, children: [_jsx(FormLabel, { component: "legend", children: t('app.drawer.user.apikey.permissions') }), _jsxs(FormGroup, { sx: { display: 'grid', gridTemplateColumns: '1fr 1fr' }, children: [_jsx(FormControlLabel, { control: _jsx(Checkbox, { onChange: updatePrivs('R') }), label: t('@cccsaurora/howler-ui/apikey.read') }), _jsx(FormControlLabel, { control: _jsx(Checkbox, { onChange: updatePrivs('W') }), label: t('@cccsaurora/howler-ui/apikey.write') }), _jsx(FormControlLabel, { disabled: privs.includes('E'), control: _jsx(Checkbox, { onChange: updatePrivs('I') }), label: t('@cccsaurora/howler-ui/apikey.impersonate') }), config.configuration.auth.allow_extended_apikeys && (_jsx(FormControlLabel, { disabled: privs.includes('I'), control: _jsx(Checkbox, { onChange: updatePrivs('E') }), label: t('@cccsaurora/howler-ui/apikey.extended') }))] })] }), _jsxs(FormControl, { required: !!maxDate, children: [_jsx(FormLabel, { children: t('app.drawer.user.apikey.expiry.date') }), _jsx(StaticDateTimePicker, { orientation: "landscape", ampm: false, value: expiryDate, onChange: newValue => setExpiryDate(newValue), disablePast: true, maxDate: maxDate, maxTime: maxDate, sx: { backgroundColor: 'transparent', '& > div:first-of-type': { maxWidth: '300px' } } })] }), _jsx(Button, { onClick: onSubmit, disabled: !keyName || (!privs.includes('R') && !privs.includes('W')) || (maxDate && !expiryDate), variant: "outlined", children: _jsx(Trans, { i18nKey: "button.create" }) }), createdKey && (_jsxs(_Fragment, { children: [_jsx(Divider, { orientation: "horizontal" }), _jsxs(Stack, { direction: "row", spacing: 1, alignItems: "stretch", children: [_jsx(TextField, { size: "small", value: createdKey, inputProps: { readOnly: true }, fullWidth: true }), _jsx(Button, { variant: "outlined", onClick: onCopy, disabled: !createdKey, children: _jsx(Trans, { i18nKey: "button.copy" }) })] })] }))] }) }));
|
|
66
66
|
};
|
|
67
67
|
export default ApiKeyDrawer;
|