@netgrif/components-core 6.4.0 → 6.5.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/commons/schema.d.ts +3 -0
- package/esm2020/assets/i18n/de.json +4 -2
- package/esm2020/assets/i18n/en.json +4 -2
- package/esm2020/assets/i18n/sk.json +4 -2
- package/esm2020/commons/schema.mjs +1 -1
- package/esm2020/lib/admin/role-assignment/abstract-role-assignment.component.mjs +11 -2
- package/esm2020/lib/admin/role-assignment/services/ProcessList.mjs +5 -2
- package/esm2020/lib/admin/role-assignment-ldap-group/abstract-ldap-group-role-assignment.component.mjs +11 -2
- package/esm2020/lib/admin/user-invite/abstract-user-invite.component.mjs +16 -3
- package/esm2020/lib/allowed-nets/services/factory/allowed-nets-service-factory.mjs +4 -1
- package/esm2020/lib/changed-fields/services/changed-fields.service.mjs +2 -2
- package/esm2020/lib/configuration/configuration.service.mjs +2 -2
- package/esm2020/lib/dialog/components/confirm-dialog/confirm-dialog.component.mjs +2 -2
- package/esm2020/lib/event/public-api.mjs +2 -1
- package/esm2020/lib/event/services/event.service.mjs +4 -4
- package/esm2020/lib/header/services/overflow.service.mjs +2 -2
- package/esm2020/lib/logger/services/log-publisher.service.mjs +2 -2
- package/esm2020/lib/navigation/breadcrumbs/abstract-breadcrumbs.component.mjs +3 -3
- package/esm2020/lib/navigation/dashboard/abstract-dashboard.component.mjs +228 -0
- package/esm2020/lib/navigation/model/group-navigation-constants.mjs +27 -19
- package/esm2020/lib/navigation/model/navigation-configs.mjs +2 -2
- package/esm2020/lib/navigation/navigation-double-drawer/abstract-navigation-double-drawer.mjs +104 -348
- package/esm2020/lib/navigation/navigation-double-drawer/service/double-drawer-navigation.service.mjs +458 -0
- package/esm2020/lib/navigation/navigation-double-drawer/util/double-drawer-utils.mjs +43 -0
- package/esm2020/lib/navigation/public-api.mjs +4 -1
- package/esm2020/lib/navigation/service/uri.service.mjs +2 -2
- package/esm2020/lib/navigation/utility/filter-extraction.service.mjs +16 -5
- package/esm2020/lib/navigation/utility/navigation-item-task-utility-methods.mjs +13 -1
- package/esm2020/lib/panel/task-panel/abstract-task-panel.component.mjs +3 -3
- package/esm2020/lib/resources/engine-endpoint/petri-net-resource.service.mjs +12 -1
- package/esm2020/lib/resources/interface/petri-net-request-body.mjs +1 -1
- package/esm2020/lib/resources/resource-provider.service.mjs +6 -6
- package/esm2020/lib/routing/redirect-service/redirect.service.mjs +6 -3
- package/esm2020/lib/search/models/category/case/case-dataset.mjs +2 -2
- package/esm2020/lib/search/models/operator/operator.mjs +2 -2
- package/esm2020/lib/search/models/operator/substring.mjs +2 -2
- package/esm2020/lib/search/search-service/search.service.mjs +2 -2
- package/esm2020/lib/task/services/task-data.service.mjs +4 -4
- package/esm2020/lib/task-content/model/subgrid.mjs +2 -2
- package/esm2020/lib/task-content/services/field-converter.service.mjs +2 -2
- package/esm2020/lib/task-content/services/task-content.service.mjs +4 -4
- package/esm2020/lib/toolbar/abstract-toolbar.component.mjs +48 -11
- package/esm2020/lib/toolbar/public-api.mjs +2 -1
- package/esm2020/lib/toolbar/toolbar-config.mjs +2 -0
- package/esm2020/lib/user/services/user-comparator.service.mjs +2 -2
- package/esm2020/lib/utility/contains.pipe.mjs +2 -2
- package/esm2020/lib/utility/navigation-item-task-filter-factory.mjs +4 -3
- package/esm2020/lib/utility/navigation-item-task-search-categories-factory.mjs +4 -1
- package/esm2020/lib/view/abstract/view-with-headers.mjs +1 -1
- package/esm2020/lib/view/public-api.mjs +2 -1
- package/esm2020/lib/view/task-view/abstract-single-task-view.component.mjs +9 -26
- package/esm2020/lib/view/task-view/abstract-tabbed-single-task-view.component.mjs +32 -0
- package/esm2020/lib/view/workflow-view/abstract-workflow-view.component.mjs +14 -1
- package/esm2020/lib/view/workflow-view/workflow-view.service.mjs +17 -2
- package/fesm2015/netgrif-components-core.mjs +1064 -434
- package/fesm2015/netgrif-components-core.mjs.map +1 -1
- package/fesm2020/netgrif-components-core.mjs +1041 -426
- package/fesm2020/netgrif-components-core.mjs.map +1 -1
- package/lib/admin/role-assignment/abstract-role-assignment.component.d.ts +4 -1
- package/lib/admin/role-assignment/services/ProcessList.d.ts +1 -1
- package/lib/admin/role-assignment-ldap-group/abstract-ldap-group-role-assignment.component.d.ts +4 -1
- package/lib/admin/user-invite/abstract-user-invite.component.d.ts +9 -3
- package/lib/allowed-nets/services/factory/allowed-nets-service-factory.d.ts +1 -1
- package/lib/event/public-api.d.ts +1 -0
- package/lib/navigation/dashboard/abstract-dashboard.component.d.ts +73 -0
- package/lib/navigation/model/group-navigation-constants.d.ts +27 -19
- package/lib/navigation/model/navigation-configs.d.ts +1 -0
- package/lib/navigation/navigation-double-drawer/abstract-navigation-double-drawer.d.ts +22 -57
- package/lib/navigation/navigation-double-drawer/service/double-drawer-navigation.service.d.ts +137 -0
- package/lib/navigation/navigation-double-drawer/util/double-drawer-utils.d.ts +16 -0
- package/lib/navigation/public-api.d.ts +3 -0
- package/lib/navigation/utility/filter-extraction.service.d.ts +3 -2
- package/lib/navigation/utility/navigation-item-task-utility-methods.d.ts +6 -0
- package/lib/resources/engine-endpoint/petri-net-resource.service.d.ts +8 -0
- package/lib/resources/interface/petri-net-request-body.d.ts +1 -0
- package/lib/toolbar/abstract-toolbar.component.d.ts +16 -6
- package/lib/toolbar/public-api.d.ts +1 -0
- package/lib/toolbar/toolbar-config.d.ts +11 -0
- package/lib/utility/navigation-item-task-filter-factory.d.ts +3 -1
- package/lib/utility/navigation-item-task-search-categories-factory.d.ts +1 -1
- package/lib/view/abstract/view-with-headers.d.ts +1 -1
- package/lib/view/public-api.d.ts +1 -0
- package/lib/view/task-view/abstract-single-task-view.component.d.ts +5 -16
- package/lib/view/task-view/abstract-tabbed-single-task-view.component.d.ts +15 -0
- package/lib/view/workflow-view/abstract-workflow-view.component.d.ts +5 -2
- package/lib/view/workflow-view/workflow-view.service.d.ts +2 -0
- package/package.json +1 -1
- package/src/assets/i18n/de.json +4 -2
- package/src/assets/i18n/en.json +4 -2
- package/src/assets/i18n/sk.json +4 -2
|
@@ -2,7 +2,7 @@ import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
|
|
|
2
2
|
import { MatSelectionList } from '@angular/material/list';
|
|
3
3
|
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
4
4
|
import { UserListService } from '../../user/services/user-list.service';
|
|
5
|
-
import { ProcessList, ExtendedProcessRole, ProcessVersion } from './services/ProcessList';
|
|
5
|
+
import { ProcessList, ExtendedProcessRole, ProcessVersion, ProcessListItem } from './services/ProcessList';
|
|
6
6
|
import { FormControl } from '@angular/forms';
|
|
7
7
|
import { RoleAssignmentService } from './services/role-assignment.service';
|
|
8
8
|
import { UserService } from '../../user/services/user.service';
|
|
@@ -15,10 +15,13 @@ export declare abstract class AbstractRoleAssignmentComponent implements OnInit,
|
|
|
15
15
|
viewport: CdkVirtualScrollViewport;
|
|
16
16
|
users: UserListService;
|
|
17
17
|
nets: ProcessList;
|
|
18
|
+
filteredProcesses: Array<ProcessListItem>;
|
|
18
19
|
userMultiSelect: boolean;
|
|
19
20
|
searchUserControl: FormControl;
|
|
21
|
+
searchNetControl: FormControl;
|
|
20
22
|
protected SEARCH_DEBOUNCE_TIME: number;
|
|
21
23
|
protected subValueChanges: Subscription;
|
|
24
|
+
protected subNetValueChanges: Subscription;
|
|
22
25
|
protected subUsers: Subscription;
|
|
23
26
|
constructor(_service: RoleAssignmentService, _userService: UserService);
|
|
24
27
|
ngOnInit(): void;
|
|
@@ -33,7 +33,7 @@ export declare class ProcessList {
|
|
|
33
33
|
get loading$(): Observable<boolean>;
|
|
34
34
|
get processes(): Array<ProcessListItem>;
|
|
35
35
|
get selectedRoles(): Array<string>;
|
|
36
|
-
loadProcesses():
|
|
36
|
+
loadProcesses(): Observable<Array<ProcessListItem>>;
|
|
37
37
|
prepareToTryAgainToLoadRoles(item: ProcessListItem): void;
|
|
38
38
|
selectRoles(roleIds: Set<string>): void;
|
|
39
39
|
updateSelectedRoles(role: ExtendedProcessRole): void;
|
package/lib/admin/role-assignment-ldap-group/abstract-ldap-group-role-assignment.component.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { MatSelectionList } from '@angular/material/list';
|
|
3
3
|
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
4
|
-
import { ProcessList, ExtendedProcessRole, ProcessVersion } from '../role-assignment/services/ProcessList';
|
|
4
|
+
import { ProcessList, ExtendedProcessRole, ProcessVersion, ProcessListItem } from '../role-assignment/services/ProcessList';
|
|
5
5
|
import { FormControl } from '@angular/forms';
|
|
6
6
|
import { Subscription } from 'rxjs';
|
|
7
7
|
import { RoleAssignmentLdapGroupService } from './services/role-assignment-ldap-group.service';
|
|
@@ -13,10 +13,13 @@ export declare abstract class AbstractLdapGroupRoleAssignmentComponent implement
|
|
|
13
13
|
viewport: CdkVirtualScrollViewport;
|
|
14
14
|
ldapGroup: LdapGroupListService;
|
|
15
15
|
nets: ProcessList;
|
|
16
|
+
filteredProcesses: Array<ProcessListItem>;
|
|
16
17
|
ldapGroupMultiSelect: boolean;
|
|
17
18
|
searchLdapGroupControl: FormControl;
|
|
19
|
+
searchNetControl: FormControl;
|
|
18
20
|
protected SEARCH_DEBOUNCE_TIME: number;
|
|
19
21
|
protected subValueChanges: Subscription;
|
|
22
|
+
protected subNetValueChanges: Subscription;
|
|
20
23
|
protected subLdapGroup: Subscription;
|
|
21
24
|
constructor(_service: RoleAssignmentLdapGroupService);
|
|
22
25
|
ngOnInit(): void;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { FormControl } from '@angular/forms';
|
|
2
2
|
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
-
import { ExtendedProcessRole, ProcessList } from '../role-assignment/services/ProcessList';
|
|
3
|
+
import { ExtendedProcessRole, ProcessList, ProcessListItem } from '../role-assignment/services/ProcessList';
|
|
4
4
|
import { GroupInterface } from '../../resources/interface/group';
|
|
5
5
|
import { LoadingEmitter } from '../../utility/loading-emitter';
|
|
6
6
|
import { UserInviteService } from './services/user-invite.service';
|
|
7
7
|
import { OrganizationListService } from './services/organization-list.service';
|
|
8
8
|
import { SignUpService } from '../../authentication/sign-up/services/sign-up.service';
|
|
9
9
|
import { SnackBarService } from '../../snack-bar/services/snack-bar.service';
|
|
10
|
-
import { OnInit } from '@angular/core';
|
|
10
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
11
|
+
import { Subscription } from "rxjs";
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
12
|
-
export declare abstract class AbstractUserInviteComponent implements OnInit {
|
|
13
|
+
export declare abstract class AbstractUserInviteComponent implements OnInit, OnDestroy {
|
|
13
14
|
protected _userInviteService: UserInviteService;
|
|
14
15
|
protected _orgList: OrganizationListService;
|
|
15
16
|
protected _signUpService: SignUpService;
|
|
@@ -19,10 +20,15 @@ export declare abstract class AbstractUserInviteComponent implements OnInit {
|
|
|
19
20
|
invitedGroups: Array<GroupInterface>;
|
|
20
21
|
invitedRoles: Array<ExtendedProcessRole>;
|
|
21
22
|
nets: ProcessList;
|
|
23
|
+
filteredProcesses: Array<ProcessListItem>;
|
|
24
|
+
protected SEARCH_DEBOUNCE_TIME: number;
|
|
25
|
+
searchNetControl: FormControl;
|
|
26
|
+
protected subNetValueChanges: Subscription;
|
|
22
27
|
loading: LoadingEmitter;
|
|
23
28
|
constructor(_userInviteService: UserInviteService, _orgList: OrganizationListService, _signUpService: SignUpService, _snackBar: SnackBarService, _translate: TranslateService);
|
|
24
29
|
get groups(): GroupInterface[];
|
|
25
30
|
ngOnInit(): void;
|
|
31
|
+
ngOnDestroy(): void;
|
|
26
32
|
removeGroup(org: GroupInterface): void;
|
|
27
33
|
addGroup(org: GroupInterface): void;
|
|
28
34
|
removeRole(role: ExtendedProcessRole): void;
|
|
@@ -19,7 +19,7 @@ export declare function tabbedAllowedNetsServiceFactory(factory: AllowedNetsServ
|
|
|
19
19
|
* Convenience method that can be used as an allowed nets factory for views that are loaded from filter process instances.
|
|
20
20
|
* It has a dependency on this class and {@link NAE_NAVIGATION_ITEM_TASK_DATA} injection token.
|
|
21
21
|
*/
|
|
22
|
-
export declare function navigationItemTaskAllowedNetsServiceFactory(factory: AllowedNetsServiceFactory, baseAllowedNets: BaseAllowedNetsService, navigationItemTaskData
|
|
22
|
+
export declare function navigationItemTaskAllowedNetsServiceFactory(factory: AllowedNetsServiceFactory, baseAllowedNets: BaseAllowedNetsService, navigationItemTaskData?: Array<DataGroup>): AllowedNetsService;
|
|
23
23
|
/**
|
|
24
24
|
* Simplifies the creation of {@link AllowedNetsService} instances
|
|
25
25
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './model/event-outcomes/case-outcomes/create-case-event-outcome';
|
|
2
|
+
export * from './model/event-outcomes/case-outcomes/case-event-outcome';
|
|
2
3
|
export * from './model/event-outcomes/case-outcomes/delete-case-event-outcome';
|
|
3
4
|
export * from './model/event-outcomes/data-outcomes/get-data-event-outcome';
|
|
4
5
|
export * from './model/event-outcomes/data-outcomes/get-data-groups-event-outcome';
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Router } from '@angular/router';
|
|
2
|
+
import { ToolbarConfig } from '../../toolbar/toolbar-config';
|
|
3
|
+
import { Case } from '../../resources/interface/case';
|
|
4
|
+
import { CaseResourceService } from '../../resources/engine-endpoint/case-resource.service';
|
|
5
|
+
import { LoggerService } from '../../logger/services/logger.service';
|
|
6
|
+
import { UriService } from '../service/uri.service';
|
|
7
|
+
import { DoubleDrawerNavigationService } from '../navigation-double-drawer/service/double-drawer-navigation.service';
|
|
8
|
+
import { I18nFieldValue } from '../../data-fields/i18n-field/models/i18n-field-value';
|
|
9
|
+
import { LanguageService } from '../../translate/language.service';
|
|
10
|
+
import { LoadingEmitter } from '../../utility/loading-emitter';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export declare abstract class AbstractDashboardComponent {
|
|
13
|
+
protected _caseResource: CaseResourceService;
|
|
14
|
+
protected _log: LoggerService;
|
|
15
|
+
protected _uriService: UriService;
|
|
16
|
+
protected _router: Router;
|
|
17
|
+
protected _languageService: LanguageService;
|
|
18
|
+
protected _doubleDrawerNavigationService: DoubleDrawerNavigationService;
|
|
19
|
+
static readonly MAIN_DASHBOARD = "main_dashboard";
|
|
20
|
+
static readonly DASHBOARD_MANAGEMENT_IDENTIFIER = "dashboard_management";
|
|
21
|
+
static readonly DASHBOARD_MANAGEMENT_ID_DATAFIELD = "dashboard_id";
|
|
22
|
+
static readonly DASHBOARD_MANAGEMENT_ITEM_TO_MENU_ITEM_DATAFIELD = "dashboard_item_to_menu_item";
|
|
23
|
+
static readonly DASHBOARD_MANAGEMENT_SIMPLE_TOOLBAR_DATAFIELD = "simple_dashboard_toolbar";
|
|
24
|
+
static readonly DASHBOARD_MANAGEMENT_PROFILE_TOOLBAR_DATAFIELD = "profile_dashboard_toolbar";
|
|
25
|
+
static readonly DASHBOARD_MANAGEMENT_LANGUAGE_TOOLBAR_DATAFIELD = "language_dashboard_toolbar";
|
|
26
|
+
static readonly DASHBOARD_MANAGEMENT_LOGOUT_TOOLBAR_DATAFIELD = "logout_dashboard_toolbar";
|
|
27
|
+
static readonly DASHBOARD_MANAGEMENT_NAME_DATAFIELD = "dashboard_name";
|
|
28
|
+
static readonly DASHBOARD_MANAGEMENT_LOGO_DATAFIELD = "dashboard_logo";
|
|
29
|
+
static readonly DASHBOARD_MANAGEMENT_ITEMS_ORDER_DATAFIELD = "items_order";
|
|
30
|
+
static readonly DASHBOARD_MANAGEMENT_PROFILE_URL_DATAFIELD = "profile_url";
|
|
31
|
+
static readonly DASHBOARD_MANAGEMENT_LOGIN_URL_DATAFIELD = "login_url";
|
|
32
|
+
static readonly DASHBOARD_ITEM_ICON_DATAFIELD = "item_icon";
|
|
33
|
+
static readonly DASHBOARD_ITEM_NAME_DATAFIELD = "item_name";
|
|
34
|
+
static readonly DASHBOARD_ITEM_URL_DATAFIELD = "external_url";
|
|
35
|
+
static readonly DASHBOARD_ITEM_INTERNAL_DATAFIELD = "is_internal";
|
|
36
|
+
static readonly DASHBOARD_ITEM_EXTERNAL_ICON_DATAFIELD = "external_icon";
|
|
37
|
+
static readonly DASHBOARD_ITEM_FONT_COLOR_DATAFIELD = "font_color";
|
|
38
|
+
static readonly DASHBOARD_ITEM_FONT_WEIGHT_DATAFIELD = "font_weight";
|
|
39
|
+
static readonly DASHBOARD_ITEM_ICON_COLOR_DATAFIELD = "icon_color";
|
|
40
|
+
toolbarConfig: ToolbarConfig;
|
|
41
|
+
dashboardId: string;
|
|
42
|
+
dashboardCase: Case;
|
|
43
|
+
dashboardItems: Array<Case>;
|
|
44
|
+
dashboardItemsMapping: {
|
|
45
|
+
[key: string]: Case;
|
|
46
|
+
};
|
|
47
|
+
private itemsLoaded;
|
|
48
|
+
loading$: LoadingEmitter;
|
|
49
|
+
constructor(_caseResource: CaseResourceService, _log: LoggerService, _uriService: UriService, _router: Router, _languageService: LanguageService, _doubleDrawerNavigationService: DoubleDrawerNavigationService);
|
|
50
|
+
private getMenuItems;
|
|
51
|
+
private getDashboardItems;
|
|
52
|
+
getItemName(itemCase: Case): string;
|
|
53
|
+
getItemIcon(itemCase: Case): string;
|
|
54
|
+
getItemInternal(itemCase: Case): boolean;
|
|
55
|
+
getItemExternalIcon(itemCase: Case): boolean;
|
|
56
|
+
getItemURL(itemCase: Case): string;
|
|
57
|
+
getItemFontColor(itemCase: Case): string;
|
|
58
|
+
getItemFontWeight(itemCase: Case): string;
|
|
59
|
+
getItemIconColor(itemCase: Case): string;
|
|
60
|
+
protected getManagementSimpleToolbar(itemCase: Case): boolean;
|
|
61
|
+
protected getManagementProfileToolbar(itemCase: Case): boolean;
|
|
62
|
+
protected getManagementLanguageToolbar(itemCase: Case): boolean;
|
|
63
|
+
protected getManagementLogoutToolbar(itemCase: Case): boolean;
|
|
64
|
+
protected getManagementName(itemCase: Case): I18nFieldValue;
|
|
65
|
+
protected getManagementLogo(itemCase: Case): string;
|
|
66
|
+
protected getManagementItemsOrder(itemCase: Case): string;
|
|
67
|
+
protected getManagementProfileUrl(itemCase: Case): string;
|
|
68
|
+
protected getManagementLoginUrl(itemCase: Case): string;
|
|
69
|
+
protected getFieldValue(itemCase: Case, fieldId: string): any;
|
|
70
|
+
navigate(itemCase: Case): void;
|
|
71
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDashboardComponent, never>;
|
|
72
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractDashboardComponent, "ncc-dashboard", never, {}, {}, never, never>;
|
|
73
|
+
}
|
|
@@ -38,11 +38,11 @@ export declare enum GroupNavigationConstants {
|
|
|
38
38
|
/**
|
|
39
39
|
* EnumerationMap field, that contains selected search type for case view
|
|
40
40
|
* */
|
|
41
|
-
ITEM_FIELD_ID_CASE_VIEW_SEARCH_TYPE = "
|
|
41
|
+
ITEM_FIELD_ID_CASE_VIEW_SEARCH_TYPE = "view_search_type",
|
|
42
42
|
/**
|
|
43
43
|
* EnumerationMap field, that contains selected search type for task view
|
|
44
44
|
* */
|
|
45
|
-
ITEM_FIELD_ID_TASK_VIEW_SEARCH_TYPE = "
|
|
45
|
+
ITEM_FIELD_ID_TASK_VIEW_SEARCH_TYPE = "view_search_type",
|
|
46
46
|
/**
|
|
47
47
|
* Boolean field, that is true if user wants to merge base filter and custom filter
|
|
48
48
|
* */
|
|
@@ -54,67 +54,67 @@ export declare enum GroupNavigationConstants {
|
|
|
54
54
|
/**
|
|
55
55
|
* Boolean field, that is true if the user wants to see more menu for case item in case view
|
|
56
56
|
* */
|
|
57
|
-
ITEM_FIELD_ID_CASE_SHOW_MORE_MENU = "
|
|
57
|
+
ITEM_FIELD_ID_CASE_SHOW_MORE_MENU = "show_more_menu",
|
|
58
58
|
/**
|
|
59
59
|
* Boolean field, that is true if no input for title in case creation is shown
|
|
60
60
|
* */
|
|
61
|
-
ITEM_FIELD_ID_CASE_TITLE_IN_CREATION = "
|
|
61
|
+
ITEM_FIELD_ID_CASE_TITLE_IN_CREATION = "require_title_in_creation",
|
|
62
62
|
/**
|
|
63
63
|
* Text field, that contains banned processes in case creation as a value
|
|
64
64
|
* */
|
|
65
|
-
ITEM_FIELD_ID_CASE_BANNED_PROCESS_CREATION = "
|
|
65
|
+
ITEM_FIELD_ID_CASE_BANNED_PROCESS_CREATION = "banned_nets_in_creation",
|
|
66
66
|
/**
|
|
67
67
|
* Boolean field, that is true if the user wants to see more menu for task item in task view
|
|
68
68
|
* */
|
|
69
|
-
ITEM_FIELD_ID_TASK_SHOW_MORE_MENU = "
|
|
69
|
+
ITEM_FIELD_ID_TASK_SHOW_MORE_MENU = "show_more_menu",
|
|
70
70
|
/**
|
|
71
71
|
* MultichoiceMap field, that contains selected header modes for case view as a value
|
|
72
72
|
* */
|
|
73
|
-
ITEM_FIELD_ID_CASE_HEADERS_MODE = "
|
|
73
|
+
ITEM_FIELD_ID_CASE_HEADERS_MODE = "headers_mode",
|
|
74
74
|
/**
|
|
75
75
|
* Boolean field, that is true if table mode can be applied in case view
|
|
76
76
|
* */
|
|
77
|
-
ITEM_FIELD_ID_CASE_ALLOW_TABLE_MODE = "
|
|
77
|
+
ITEM_FIELD_ID_CASE_ALLOW_TABLE_MODE = "allow_header_table_mode",
|
|
78
78
|
/**
|
|
79
79
|
* EnumerationMap field, that contains selected default header mode for case view as a value
|
|
80
80
|
* */
|
|
81
|
-
ITEM_FIELD_ID_CASE_DEFAULT_HEADERS_MODE = "
|
|
81
|
+
ITEM_FIELD_ID_CASE_DEFAULT_HEADERS_MODE = "headers_default_mode",
|
|
82
82
|
/**
|
|
83
83
|
* Boolean field, that is true to make mode menu in case view visible
|
|
84
84
|
* */
|
|
85
|
-
ITEM_FIELD_ID_CASE_HEADERS_CHANGEABLE = "
|
|
85
|
+
ITEM_FIELD_ID_CASE_HEADERS_CHANGEABLE = "is_header_mode_changeable",
|
|
86
86
|
/**
|
|
87
87
|
* MultichoiceMap field, that contains selected header modes for task view as a value
|
|
88
88
|
* */
|
|
89
|
-
ITEM_FIELD_ID_TASK_HEADERS_MODE = "
|
|
89
|
+
ITEM_FIELD_ID_TASK_HEADERS_MODE = "headers_mode",
|
|
90
90
|
/**
|
|
91
91
|
* Boolean field, that is true if table mode can be applied in task view
|
|
92
92
|
* */
|
|
93
|
-
ITEM_FIELD_ID_TASK_ALLOW_TABLE_MODE = "
|
|
93
|
+
ITEM_FIELD_ID_TASK_ALLOW_TABLE_MODE = "allow_header_table_mode",
|
|
94
94
|
/**
|
|
95
95
|
* EnumerationMap field, that contains selected default header mode for task view as a value
|
|
96
96
|
* */
|
|
97
|
-
ITEM_FIELD_ID_TASK_DEFAULT_HEADERS_MODE = "
|
|
97
|
+
ITEM_FIELD_ID_TASK_DEFAULT_HEADERS_MODE = "headers_default_mode",
|
|
98
98
|
/**
|
|
99
99
|
* Boolean field, that is true to make mode menu in task view visible
|
|
100
100
|
* */
|
|
101
|
-
ITEM_FIELD_ID_TASK_HEADERS_CHANGEABLE = "
|
|
101
|
+
ITEM_FIELD_ID_TASK_HEADERS_CHANGEABLE = "is_header_mode_changeable",
|
|
102
102
|
/**
|
|
103
103
|
* Boolean field, that is true to use default headers configuration for case view
|
|
104
104
|
* */
|
|
105
|
-
ITEM_FIELD_ID_USE_CASE_DEFAULT_HEADERS = "
|
|
105
|
+
ITEM_FIELD_ID_USE_CASE_DEFAULT_HEADERS = "use_default_headers",
|
|
106
106
|
/**
|
|
107
107
|
* Text field, that contains default header metadata separated by comma for case view as a value
|
|
108
108
|
* */
|
|
109
|
-
ITEM_FIELD_ID_CASE_DEFAULT_HEADERS = "
|
|
109
|
+
ITEM_FIELD_ID_CASE_DEFAULT_HEADERS = "default_headers",
|
|
110
110
|
/**
|
|
111
111
|
* Boolean field, that is true to use default headers configuration for task view
|
|
112
112
|
* */
|
|
113
|
-
ITEM_FIELD_ID_USE_TASK_DEFAULT_HEADERS = "
|
|
113
|
+
ITEM_FIELD_ID_USE_TASK_DEFAULT_HEADERS = "use_default_headers",
|
|
114
114
|
/**
|
|
115
115
|
* Text field, that contains default header metadata separated by comma for task view as a value
|
|
116
116
|
* */
|
|
117
|
-
ITEM_FIELD_ID_TASK_DEFAULT_HEADERS = "
|
|
117
|
+
ITEM_FIELD_ID_TASK_DEFAULT_HEADERS = "default_headers",
|
|
118
118
|
/**
|
|
119
119
|
* MultichoiceMap field, that contains allowed roles as value
|
|
120
120
|
* */
|
|
@@ -142,5 +142,13 @@ export declare enum GroupNavigationConstants {
|
|
|
142
142
|
/**
|
|
143
143
|
* CaseField containing stringIds of child instances of process preference_item
|
|
144
144
|
* */
|
|
145
|
-
ITEM_FIELD_ID_CHILD_ITEM_IDS = "childItemIds"
|
|
145
|
+
ITEM_FIELD_ID_CHILD_ITEM_IDS = "childItemIds",
|
|
146
|
+
/**
|
|
147
|
+
* Boolean field, that is true if item contains view, that should be automatically opened.
|
|
148
|
+
* */
|
|
149
|
+
ITEM_FIELD_ID_IS_AUTO_SELECT = "is_auto_select",
|
|
150
|
+
/**
|
|
151
|
+
* Boolean field, that is true if item contains view.
|
|
152
|
+
* */
|
|
153
|
+
ITEM_FIELD_CONTAINS_FILTER = "contains_filter"
|
|
146
154
|
}
|
|
@@ -4,25 +4,22 @@ import { ActivatedRoute, Router } from '@angular/router';
|
|
|
4
4
|
import { TranslateService } from '@ngx-translate/core';
|
|
5
5
|
import { ResizeEvent } from 'angular-resizable-element';
|
|
6
6
|
import { Observable, Subscription } from 'rxjs';
|
|
7
|
-
import { RoleAccess, View } from '../../../commons/schema';
|
|
8
7
|
import { AccessService } from '../../authorization/permission/access.service';
|
|
9
8
|
import { ConfigurationService } from '../../configuration/configuration.service';
|
|
10
|
-
import { I18nFieldValue } from '../../data-fields/i18n-field/models/i18n-field-value';
|
|
11
9
|
import { ImpersonationUserSelectService } from '../../impersonation/services/impersonation-user-select.service';
|
|
12
10
|
import { ImpersonationService } from '../../impersonation/services/impersonation.service';
|
|
13
11
|
import { LoggerService } from '../../logger/services/logger.service';
|
|
14
12
|
import { CaseResourceService } from '../../resources/engine-endpoint/case-resource.service';
|
|
15
|
-
import { Case } from '../../resources/interface/case';
|
|
16
|
-
import { Page } from '../../resources/interface/page';
|
|
17
13
|
import { DynamicNavigationRouteProviderService } from '../../routing/dynamic-navigation-route-provider/dynamic-navigation-route-provider.service';
|
|
14
|
+
import { RedirectService } from '../../routing/redirect-service/redirect.service';
|
|
18
15
|
import { LanguageService } from '../../translate/language.service';
|
|
19
16
|
import { User } from '../../user/models/user';
|
|
20
17
|
import { UserService } from '../../user/services/user.service';
|
|
21
|
-
import {
|
|
22
|
-
import { ConfigDoubleMenu, MenuOrder, NavigationItem } from '../model/navigation-configs';
|
|
18
|
+
import { ConfigDoubleMenu, NavigationItem } from '../model/navigation-configs';
|
|
23
19
|
import { MenuItemClickEvent, MenuItemLoadedEvent, MenuResizeEvent, MenuStateChangeEvent } from '../model/navigation-menu-events';
|
|
24
20
|
import { UriNodeResource } from '../model/uri-resource';
|
|
25
21
|
import { UriService } from '../service/uri.service';
|
|
22
|
+
import { DoubleDrawerNavigationService } from "./service/double-drawer-navigation.service";
|
|
26
23
|
import * as i0 from "@angular/core";
|
|
27
24
|
export declare abstract class AbstractNavigationDoubleDrawerComponent implements OnInit, OnDestroy {
|
|
28
25
|
protected _router: Router;
|
|
@@ -39,6 +36,8 @@ export declare abstract class AbstractNavigationDoubleDrawerComponent implements
|
|
|
39
36
|
protected _impersonationUserSelect: ImpersonationUserSelectService;
|
|
40
37
|
protected _impersonation: ImpersonationService;
|
|
41
38
|
protected _dynamicRoutingService: DynamicNavigationRouteProviderService;
|
|
39
|
+
protected _redirectService: RedirectService;
|
|
40
|
+
protected _navigationService: DoubleDrawerNavigationService;
|
|
42
41
|
portalLeftMenu: TemplateRef<any>;
|
|
43
42
|
portalRightMenu: TemplateRef<any>;
|
|
44
43
|
imageRouterLink: string;
|
|
@@ -60,52 +59,30 @@ export declare abstract class AbstractNavigationDoubleDrawerComponent implements
|
|
|
60
59
|
itemClicked: EventEmitter<MenuItemClickEvent>;
|
|
61
60
|
resized: EventEmitter<MenuResizeEvent>;
|
|
62
61
|
itemLoaded: EventEmitter<MenuItemLoadedEvent>;
|
|
63
|
-
/**
|
|
64
|
-
* List of displayed items on the left side
|
|
65
|
-
* */
|
|
66
|
-
leftItems: Array<NavigationItem>;
|
|
67
|
-
/**
|
|
68
|
-
* List of displayed items on the right side
|
|
69
|
-
* */
|
|
70
|
-
rightItems: Array<NavigationItem>;
|
|
71
|
-
/**
|
|
72
|
-
* List of hidden items
|
|
73
|
-
* */
|
|
74
|
-
moreItems: Array<NavigationItem>;
|
|
75
|
-
/**
|
|
76
|
-
* List of custom items in more menu
|
|
77
|
-
* */
|
|
78
|
-
hiddenCustomItems: Array<NavigationItem>;
|
|
79
|
-
itemsOrder: MenuOrder;
|
|
80
62
|
protected _breakpointSubscription: Subscription;
|
|
81
|
-
protected _currentNodeSubscription: Subscription;
|
|
82
|
-
/**
|
|
83
|
-
* Currently display uri
|
|
84
|
-
* Siblings of the node are on the left, children are on the right
|
|
85
|
-
*/
|
|
86
|
-
protected _currentNode: UriNodeResource;
|
|
87
|
-
leftLoading$: LoadingEmitter;
|
|
88
|
-
rightLoading$: LoadingEmitter;
|
|
89
|
-
nodeLoading$: LoadingEmitter;
|
|
90
63
|
protected _configLeftMenu: ConfigDoubleMenu;
|
|
91
64
|
protected _configRightMenu: ConfigDoubleMenu;
|
|
92
|
-
protected
|
|
93
|
-
|
|
94
|
-
[key: string]: NavigationItem;
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
protected constructor(_router: Router, _activatedRoute: ActivatedRoute, _breakpoint: BreakpointObserver, _languageService: LanguageService, _translateService: TranslateService, _userService: UserService, _accessService: AccessService, _log: LoggerService, _config: ConfigurationService, _uriService: UriService, _caseResourceService: CaseResourceService, _impersonationUserSelect: ImpersonationUserSelectService, _impersonation: ImpersonationService, _dynamicRoutingService: DynamicNavigationRouteProviderService);
|
|
65
|
+
protected configUrl: string;
|
|
66
|
+
protected constructor(_router: Router, _activatedRoute: ActivatedRoute, _breakpoint: BreakpointObserver, _languageService: LanguageService, _translateService: TranslateService, _userService: UserService, _accessService: AccessService, _log: LoggerService, _config: ConfigurationService, _uriService: UriService, _caseResourceService: CaseResourceService, _impersonationUserSelect: ImpersonationUserSelectService, _impersonation: ImpersonationService, _dynamicRoutingService: DynamicNavigationRouteProviderService, _redirectService: RedirectService, _navigationService: DoubleDrawerNavigationService);
|
|
98
67
|
ngOnInit(): void;
|
|
68
|
+
ngOnDestroy(): void;
|
|
99
69
|
get currentNode(): UriNodeResource;
|
|
100
70
|
set currentNode(node: UriNodeResource);
|
|
101
|
-
protected resolveMenuItems(node: UriNodeResource): void;
|
|
102
|
-
ngOnDestroy(): void;
|
|
103
71
|
get configLeftMenu(): ConfigDoubleMenu;
|
|
104
72
|
get configRightMenu(): ConfigDoubleMenu;
|
|
73
|
+
get leftItems$(): import("rxjs").BehaviorSubject<NavigationItem[]>;
|
|
74
|
+
get leftItems(): NavigationItem[];
|
|
75
|
+
get rightItems$(): import("rxjs").BehaviorSubject<NavigationItem[]>;
|
|
76
|
+
get rightItems(): NavigationItem[];
|
|
77
|
+
get moreItems$(): import("rxjs").BehaviorSubject<NavigationItem[]>;
|
|
78
|
+
get moreItems(): NavigationItem[];
|
|
79
|
+
get hiddenCustomItems$(): import("rxjs").BehaviorSubject<NavigationItem[]>;
|
|
80
|
+
get hiddenCustomItems(): NavigationItem[];
|
|
81
|
+
get leftLoading$(): import("@netgrif/components-core").LoadingEmitter;
|
|
82
|
+
get rightLoading$(): import("@netgrif/components-core").LoadingEmitter;
|
|
105
83
|
toggleMenu(): void;
|
|
106
84
|
toggleLeftMenu(): void;
|
|
107
85
|
toggleRightMenu(): void;
|
|
108
|
-
protected resolveLayout(isLargeScreen: boolean): void;
|
|
109
86
|
getLang(): string;
|
|
110
87
|
logout(): void;
|
|
111
88
|
impersonate(): void;
|
|
@@ -125,23 +102,9 @@ export declare abstract class AbstractNavigationDoubleDrawerComponent implements
|
|
|
125
102
|
* */
|
|
126
103
|
onBackClick(): void;
|
|
127
104
|
onItemClick(item: NavigationItem): void;
|
|
128
|
-
hasItemChildren(item: NavigationItem): boolean;
|
|
129
|
-
isItemAndNodeEqual(item: NavigationItem, node: UriNodeResource): boolean;
|
|
130
|
-
protected loadLeftSide(): void;
|
|
131
|
-
protected loadRightSide(): void;
|
|
132
|
-
protected extractChildCaseIds(item: Case): string[];
|
|
133
|
-
protected getItemCasesByIdsInOnePage(caseIds: string[]): Observable<Page<Case>>;
|
|
134
|
-
protected getItemCasesByIds(caseIds: string[], pageNumber: number, pageSize: string | number): Observable<Page<Case>>;
|
|
135
105
|
loadMoreItems(): void;
|
|
136
106
|
isAscending(): boolean;
|
|
137
107
|
switchOrder(): void;
|
|
138
|
-
protected resolveCustomViewsInRightSide(): void;
|
|
139
|
-
protected resolveCustomViewsInLeftSide(): void;
|
|
140
|
-
protected resolveItemCaseToNavigationItem(itemCase: Case): NavigationItem | undefined;
|
|
141
|
-
protected representsRootNode(item: Case): boolean;
|
|
142
|
-
protected getTranslation(value: I18nFieldValue): string;
|
|
143
|
-
protected resolveAccessRoles(filter: Case, roleType: string): Array<RoleAccess> | undefined;
|
|
144
|
-
protected getItemRoutingPath(itemCase: Case): string;
|
|
145
108
|
/**
|
|
146
109
|
* Function to check whether the back button should be displayed
|
|
147
110
|
* @returns boolean if the back button should be displayed
|
|
@@ -152,8 +115,10 @@ export declare abstract class AbstractNavigationDoubleDrawerComponent implements
|
|
|
152
115
|
uriNodeTrackBy(index: number, node: UriNodeResource): string;
|
|
153
116
|
itemsTrackBy(index: number, item: NavigationItem): string;
|
|
154
117
|
onResizeEvent(event: ResizeEvent): void;
|
|
155
|
-
|
|
156
|
-
protected
|
|
118
|
+
isItemAndNodeEqual(item: NavigationItem, node: UriNodeResource): boolean;
|
|
119
|
+
protected resolveLayout(isLargeScreen: boolean): void;
|
|
120
|
+
protected canApplyAutoSelect(): boolean;
|
|
121
|
+
protected openAvailableView(): void;
|
|
157
122
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractNavigationDoubleDrawerComponent, never>;
|
|
158
123
|
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractNavigationDoubleDrawerComponent, "ncc-abstract-navigation-double-drawer", never, { "portalLeftMenu": "portalLeftMenu"; "portalRightMenu": "portalRightMenu"; "imageRouterLink": "imageRouterLink"; "imageAlt": "imageAlt"; "image": "image"; "profileRouterLink": "profileRouterLink"; "includeUser": "includeUser"; "includeLanguage": "includeLanguage"; "includeMoreMenu": "includeMoreMenu"; "includeImpersonation": "includeImpersonation"; "allClosable": "allClosable"; "folderIcon": "folderIcon"; "openedFolderIcon": "openedFolderIcon"; "filterIcon": "filterIcon"; "foldersCategoryName": "foldersCategoryName"; "viewsCategoryName": "viewsCategoryName"; }, { "loggedOut": "loggedOut"; "stateChanged": "stateChanged"; "itemClicked": "itemClicked"; "resized": "resized"; "itemLoaded": "itemLoaded"; }, never, never>;
|
|
159
124
|
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject, Observable, Subscription } from 'rxjs';
|
|
3
|
+
import { UriService } from "../../service/uri.service";
|
|
4
|
+
import { LoadingEmitter } from "../../../utility/loading-emitter";
|
|
5
|
+
import { Case } from "../../../resources/interface/case";
|
|
6
|
+
import { LoggerService } from "../../../logger/services/logger.service";
|
|
7
|
+
import { Page } from "../../../resources/interface/page";
|
|
8
|
+
import { CaseResourceService } from "../../../resources/engine-endpoint/case-resource.service";
|
|
9
|
+
import { I18nFieldValue } from "../../../data-fields/i18n-field/models/i18n-field-value";
|
|
10
|
+
import { TranslateService } from "@ngx-translate/core";
|
|
11
|
+
import { DynamicNavigationRouteProviderService } from "../../../routing/dynamic-navigation-route-provider/dynamic-navigation-route-provider.service";
|
|
12
|
+
import { RedirectService } from "../../../routing/redirect-service/redirect.service";
|
|
13
|
+
import { AccessService } from "../../../authorization/permission/access.service";
|
|
14
|
+
import { ActivatedRoute } from "@angular/router";
|
|
15
|
+
import { ConfigurationService } from "../../../configuration/configuration.service";
|
|
16
|
+
import { View } from "../../../../commons/schema";
|
|
17
|
+
import { MenuOrder, NavigationItem } from '../../model/navigation-configs';
|
|
18
|
+
import { UriNodeResource } from '../../model/uri-resource';
|
|
19
|
+
import { MenuItemClickEvent, MenuItemLoadedEvent } from '../../model/navigation-menu-events';
|
|
20
|
+
import * as i0 from "@angular/core";
|
|
21
|
+
/**
|
|
22
|
+
* Service for managing navigation in double-drawer
|
|
23
|
+
* */
|
|
24
|
+
export declare class DoubleDrawerNavigationService implements OnDestroy {
|
|
25
|
+
protected _uriService: UriService;
|
|
26
|
+
protected _log: LoggerService;
|
|
27
|
+
protected _config: ConfigurationService;
|
|
28
|
+
protected _activatedRoute: ActivatedRoute;
|
|
29
|
+
protected _caseResourceService: CaseResourceService;
|
|
30
|
+
protected _accessService: AccessService;
|
|
31
|
+
protected _translateService: TranslateService;
|
|
32
|
+
protected _dynamicRoutingService: DynamicNavigationRouteProviderService;
|
|
33
|
+
protected _redirectService: RedirectService;
|
|
34
|
+
/**
|
|
35
|
+
* List of displayed items on the left side
|
|
36
|
+
* */
|
|
37
|
+
protected _leftItems$: BehaviorSubject<Array<NavigationItem>>;
|
|
38
|
+
/**
|
|
39
|
+
* List of displayed items on the right side
|
|
40
|
+
* */
|
|
41
|
+
protected _rightItems$: BehaviorSubject<Array<NavigationItem>>;
|
|
42
|
+
/**
|
|
43
|
+
* List of hidden items
|
|
44
|
+
* */
|
|
45
|
+
protected _moreItems$: BehaviorSubject<Array<NavigationItem>>;
|
|
46
|
+
/**
|
|
47
|
+
* List of custom items in more menu
|
|
48
|
+
* */
|
|
49
|
+
protected _hiddenCustomItems$: BehaviorSubject<Array<NavigationItem>>;
|
|
50
|
+
/**
|
|
51
|
+
* List of custom items
|
|
52
|
+
* */
|
|
53
|
+
protected _childCustomViews: {
|
|
54
|
+
[uri: string]: {
|
|
55
|
+
[key: string]: NavigationItem;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
protected itemsOrder: MenuOrder;
|
|
59
|
+
protected _leftLoading$: LoadingEmitter;
|
|
60
|
+
protected _rightLoading$: LoadingEmitter;
|
|
61
|
+
protected _nodeLoading$: LoadingEmitter;
|
|
62
|
+
protected _currentNodeSubscription: Subscription;
|
|
63
|
+
/**
|
|
64
|
+
* Currently display uri
|
|
65
|
+
* Siblings of the node are on the left, children are on the right
|
|
66
|
+
*/
|
|
67
|
+
protected _currentNode: UriNodeResource;
|
|
68
|
+
/**
|
|
69
|
+
* Currently selected navigation item
|
|
70
|
+
*/
|
|
71
|
+
protected _currentNavigationItem: NavigationItem;
|
|
72
|
+
protected defaultViewIcon: string;
|
|
73
|
+
protected customItemsInitialized: boolean;
|
|
74
|
+
protected hiddenCustomItemsInitialized: boolean;
|
|
75
|
+
protected itemClicked: EventEmitter<MenuItemClickEvent>;
|
|
76
|
+
protected itemLoaded: EventEmitter<MenuItemLoadedEvent>;
|
|
77
|
+
constructor(_uriService: UriService, _log: LoggerService, _config: ConfigurationService, _activatedRoute: ActivatedRoute, _caseResourceService: CaseResourceService, _accessService: AccessService, _translateService: TranslateService, _dynamicRoutingService: DynamicNavigationRouteProviderService, _redirectService: RedirectService);
|
|
78
|
+
ngOnDestroy(): void;
|
|
79
|
+
get canGoBackLoading$(): Observable<boolean>;
|
|
80
|
+
get currentNode(): UriNodeResource;
|
|
81
|
+
set currentNode(node: UriNodeResource);
|
|
82
|
+
get itemClicked$(): EventEmitter<MenuItemClickEvent>;
|
|
83
|
+
get itemLoaded$(): EventEmitter<MenuItemLoadedEvent>;
|
|
84
|
+
get rightItems$(): BehaviorSubject<Array<NavigationItem>>;
|
|
85
|
+
get leftItems$(): BehaviorSubject<Array<NavigationItem>>;
|
|
86
|
+
get moreItems$(): BehaviorSubject<Array<NavigationItem>>;
|
|
87
|
+
get hiddenCustomItems$(): BehaviorSubject<Array<NavigationItem>>;
|
|
88
|
+
get rightItems(): Array<NavigationItem>;
|
|
89
|
+
get leftItems(): Array<NavigationItem>;
|
|
90
|
+
get moreItems(): Array<NavigationItem>;
|
|
91
|
+
get hiddenCustomItems(): Array<NavigationItem>;
|
|
92
|
+
get leftLoading$(): LoadingEmitter;
|
|
93
|
+
get rightLoading$(): LoadingEmitter;
|
|
94
|
+
get nodeLoading$(): LoadingEmitter;
|
|
95
|
+
loadNavigationItems(node: UriNodeResource): void;
|
|
96
|
+
/**
|
|
97
|
+
* On home click, the current level is set to 0, and current parent is
|
|
98
|
+
* set to root node.
|
|
99
|
+
* */
|
|
100
|
+
onHomeClick(): void;
|
|
101
|
+
/**
|
|
102
|
+
* On back click, the parent is set to parent of left nodes, that will solve
|
|
103
|
+
* the right side menu (elements that were in left side, after backward
|
|
104
|
+
* navigation will be on the right side).
|
|
105
|
+
* Current level is set to a lower number in order to set the left side menu.
|
|
106
|
+
* */
|
|
107
|
+
onBackClick(): void;
|
|
108
|
+
/**
|
|
109
|
+
* On item click, the selected item's view is rendered (by routerLink). If the selected item has children items, the menu is updated
|
|
110
|
+
* and view, that is rendered is selected by the defined rule. The rule is: On first check for default view in children.
|
|
111
|
+
* On second check if the clicked item has a view. On third, pick any other children's view, else show nothing.
|
|
112
|
+
* */
|
|
113
|
+
onItemClick(item: NavigationItem): void;
|
|
114
|
+
/**
|
|
115
|
+
* Opens a view of the current right items in the menu by defined rule. The rule is: On first check for default
|
|
116
|
+
* view in children. On second check if the clicked item has a view. On third, pick any other children's view, else
|
|
117
|
+
* show nothing.
|
|
118
|
+
* */
|
|
119
|
+
openAvailableView(): void;
|
|
120
|
+
loadMoreItems(): void;
|
|
121
|
+
initializeCustomViewsOfView(view: View, viewConfigPath: string): void;
|
|
122
|
+
switchOrder(): void;
|
|
123
|
+
isAscending(): boolean;
|
|
124
|
+
protected loadLeftSide(): void;
|
|
125
|
+
protected loadRightSide(): void;
|
|
126
|
+
protected getItemCasesByIdsInOnePage(caseIds: string[]): Observable<Page<Case>>;
|
|
127
|
+
protected getItemCasesByIds(caseIds: string[], pageNumber: number, pageSize: string | number): Observable<Page<Case>>;
|
|
128
|
+
resolveItemCaseToNavigationItem(itemCase: Case): NavigationItem | undefined;
|
|
129
|
+
protected resolveCustomViewsInLeftSide(): void;
|
|
130
|
+
protected resolveCustomViewsInRightSide(): void;
|
|
131
|
+
protected resolveUriForChildViews(configPath: string, childView: View): void;
|
|
132
|
+
protected resolveHiddenMenuItemFromChildViews(configPath: string, childView: View): void;
|
|
133
|
+
protected getTranslation(value: I18nFieldValue): string;
|
|
134
|
+
getItemRoutingPath(itemCase: Case): string;
|
|
135
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DoubleDrawerNavigationService, never>;
|
|
136
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DoubleDrawerNavigationService>;
|
|
137
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { NavigationItem } from "../../model/navigation-configs";
|
|
2
|
+
import { UriNodeResource } from "../../model/uri-resource";
|
|
3
|
+
import { Case } from "../../../resources/interface/case";
|
|
4
|
+
import { RoleAccess } from "../../../../commons/schema";
|
|
5
|
+
export declare class DoubleDrawerUtils {
|
|
6
|
+
constructor();
|
|
7
|
+
static hasItemChildren(item: NavigationItem): boolean;
|
|
8
|
+
static hasItemAutoOpenView(item: NavigationItem): boolean;
|
|
9
|
+
static hasItemView(item: NavigationItem): boolean;
|
|
10
|
+
static isItemAndNodeEqual(item: NavigationItem, node: UriNodeResource): boolean;
|
|
11
|
+
static extractChildCaseIds(item: Case): string[];
|
|
12
|
+
static representsRootNode(item: Case): boolean;
|
|
13
|
+
static resolveAccessRoles(filter: Case, roleType: string): Array<RoleAccess> | undefined;
|
|
14
|
+
static isNodeCorrespondingToItem(node: UriNodeResource, item: NavigationItem): boolean;
|
|
15
|
+
static findTaskIdInCase(useCase: Case, transId: string): string;
|
|
16
|
+
}
|
|
@@ -5,10 +5,13 @@ export * from './navigation-double-drawer/abstract-navigation-double-drawer';
|
|
|
5
5
|
export * from './navigation-rail/abstract-navigation-rail.component';
|
|
6
6
|
export * from './group-navigation-component-resolver/abstract-group-navigation-component-resolver.component';
|
|
7
7
|
export * from './breadcrumbs/abstract-breadcrumbs.component';
|
|
8
|
+
export * from './dashboard/abstract-dashboard.component';
|
|
8
9
|
export * from './group-navigation-component-resolver/group-navigation-component-resolver.service';
|
|
9
10
|
export * from './utility/filter-extraction.service';
|
|
10
11
|
export * from './service/uri.service';
|
|
11
12
|
export * from './service/uri-resource.service';
|
|
13
|
+
export * from './navigation-double-drawer/service/double-drawer-navigation.service';
|
|
14
|
+
export * from './navigation-double-drawer/util/double-drawer-utils';
|
|
12
15
|
export * from './model/group-navigation-constants';
|
|
13
16
|
export * from './model/group-navigation-component-resolver-component-injection-token';
|
|
14
17
|
export * from './model/filter-case-injection-token';
|
|
@@ -7,6 +7,7 @@ import { DataField } from '../../data-fields/models/abstract-data-field';
|
|
|
7
7
|
import { AllowedNetsService } from "../../allowed-nets/services/allowed-nets.service";
|
|
8
8
|
import { AllowedNetsServiceFactory } from "../../allowed-nets/services/factory/allowed-nets-service-factory";
|
|
9
9
|
import { BaseAllowedNetsService } from "../../allowed-nets/services/base-allowed-nets.service";
|
|
10
|
+
import { ActivatedRoute } from '@angular/router';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
/**
|
|
12
13
|
* This service is able to load the full saved filter including all of its ancestor filters.
|
|
@@ -20,8 +21,8 @@ export declare class FilterExtractionService {
|
|
|
20
21
|
protected static readonly UNTABBED_VIEW_ID_EXTRACTOR = "^.*?(-\\d+)?$";
|
|
21
22
|
constructor(_filterRepository: FilterRepository, _taskResourceService: TaskResourceService, _factory: AllowedNetsServiceFactory, baseAllowedNets: BaseAllowedNetsService, _log: LoggerService);
|
|
22
23
|
extractAdditionalFilterAllowedNets(dataSection: Array<DataGroup>): AllowedNetsService;
|
|
23
|
-
extractCompleteAdditionalFilterFromData(dataSection: Array<DataGroup
|
|
24
|
-
extractCompleteFilterFromData(dataSection
|
|
24
|
+
extractCompleteAdditionalFilterFromData(dataSection: Array<DataGroup>, activatedRoute?: ActivatedRoute): Filter | undefined;
|
|
25
|
+
extractCompleteFilterFromData(dataSection?: Array<DataGroup>, activatedRoute?: ActivatedRoute, fieldId?: string): Filter | undefined;
|
|
25
26
|
protected extractViewFilter(originViewIdField: DataField<any>): Filter | undefined;
|
|
26
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterExtractionService, never>;
|
|
27
28
|
static ɵprov: i0.ɵɵInjectableDeclaration<FilterExtractionService>;
|