@netgrif/components-core 6.3.0-rc.8 → 6.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/allowed-nets/services/factory/allowed-nets-service-factory.mjs +13 -1
- package/esm2020/lib/dashboard/cards/model/custom-dashboard-model/custom-card.mjs +1 -1
- package/esm2020/lib/dashboard/cards/model/custom-dashboard-model/custom-iframe-card.mjs +2 -0
- package/esm2020/lib/dashboard/cards/model/dashboard-card-types.mjs +2 -1
- package/esm2020/lib/dashboard/cards/model/dashboard-card.mjs +1 -1
- package/esm2020/lib/data-fields/filter-field/abstract-filter-field-tab-view-content.component.mjs +60 -0
- package/esm2020/lib/data-fields/filter-field/abstract-filter-field-tab-view.component.mjs +53 -0
- package/esm2020/lib/data-fields/filter-field/abstract-filter-field.component.mjs +4 -1
- package/esm2020/lib/data-fields/public-api.mjs +17 -1
- package/esm2020/lib/data-fields/task-ref-field/abstract-task-ref-field.component.mjs +133 -0
- package/esm2020/lib/data-fields/task-ref-field/model/task-ref-components.mjs +8 -0
- package/esm2020/lib/data-fields/task-ref-field/model/task-ref-dashboard-constants.mjs +10 -0
- package/esm2020/lib/data-fields/task-ref-field/model/task-ref-dashboard-tile-constants.mjs +13 -0
- package/esm2020/lib/data-fields/task-ref-field/model/task-ref-dashboard-tile.mjs +2 -0
- package/esm2020/lib/data-fields/task-ref-field/model/task-ref-field.mjs +19 -1
- package/esm2020/lib/data-fields/task-ref-field/task-ref-dashboard-field/task-ref-dashboard-tile/abstract-task-ref-dashboard-tile.component.mjs +140 -0
- package/esm2020/lib/data-fields/text-field/abstract-dashboard-text-field.component.mjs +42 -0
- package/esm2020/lib/data-fields/text-field/dashboard-bar-chart-text-field/abstract-dashboard-bar-chart-text-field.component.mjs +33 -0
- package/esm2020/lib/data-fields/text-field/dashboard-iframe-text-field/abstract-dashboard-iframe-text-field.component.mjs +27 -0
- package/esm2020/lib/data-fields/text-field/dashboard-line-chart-text-field/abstract-dashboard-line-chart-text-field.component.mjs +33 -0
- package/esm2020/lib/data-fields/text-field/dashboard-pie-chart-text-field/abstract-dashboard-pie-chart-text-field.component.mjs +31 -0
- package/esm2020/lib/data-fields/text-field/dashboard-portal-text-field/abstract-dashboard-portal-text-field.component.mjs +27 -0
- package/esm2020/lib/data-fields/text-field/dashboard-portal-text-field/dashboard-portal-component-registry.service.mjs +35 -0
- package/esm2020/lib/data-fields/text-field/dashboard-portal-text-field/dashboard-view-constants.mjs +10 -0
- package/esm2020/lib/data-fields/text-field/models/text-field.mjs +24 -2
- package/esm2020/lib/data-fields/user-list-field/abstract-user-list-field.component.mjs +2 -2
- package/esm2020/lib/data-fields/user-list-field/models/user-list-field.mjs +6 -2
- package/esm2020/lib/filter/models/user-filter-constants.mjs +5 -1
- package/esm2020/lib/filter/user-filters.service.mjs +3 -1
- package/esm2020/lib/navigation/group-navigation-component-resolver/group-navigation-component-resolver.service.mjs +13 -2
- package/esm2020/lib/navigation/navigation-double-drawer/abstract-navigation-double-drawer.mjs +2 -1
- package/esm2020/lib/panel/task-panel/abstract-task-panel.component.mjs +29 -9
- package/esm2020/lib/resources/interface/data-groups.mjs +1 -1
- 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-content/model/preprocessed-data-groups.mjs +2 -0
- package/esm2020/lib/task-content/services/field-converter.service.mjs +2 -2
- package/esm2020/lib/task-content/task-content/abstract-task-content.component.mjs +146 -4
- package/esm2020/lib/utility/public-api.mjs +2 -1
- package/esm2020/lib/utility/tests/mocks/mock-user.service.mjs +44 -0
- package/esm2020/lib/view/public-api.mjs +2 -1
- package/esm2020/lib/view/task-view/models/injection-token-task-force-open.mjs +3 -0
- package/fesm2015/netgrif-components-core.mjs +4142 -3272
- package/fesm2015/netgrif-components-core.mjs.map +1 -1
- package/fesm2020/netgrif-components-core.mjs +4158 -3299
- package/fesm2020/netgrif-components-core.mjs.map +1 -1
- package/lib/dashboard/cards/model/custom-dashboard-model/custom-card.d.ts +8 -7
- package/lib/dashboard/cards/model/custom-dashboard-model/custom-iframe-card.d.ts +4 -0
- package/lib/dashboard/cards/model/dashboard-card-types.d.ts +1 -0
- package/lib/dashboard/cards/model/dashboard-card.d.ts +1 -1
- package/lib/data-fields/filter-field/abstract-filter-field-tab-view-content.component.d.ts +17 -0
- package/lib/data-fields/filter-field/abstract-filter-field-tab-view.component.d.ts +17 -0
- package/lib/data-fields/filter-field/abstract-filter-field.component.d.ts +1 -0
- package/lib/data-fields/public-api.d.ts +16 -0
- package/lib/data-fields/task-ref-field/abstract-task-ref-field.component.d.ts +20 -0
- package/lib/data-fields/task-ref-field/model/task-ref-components.d.ts +6 -0
- package/lib/data-fields/task-ref-field/model/task-ref-dashboard-constants.d.ts +8 -0
- package/lib/data-fields/task-ref-field/model/task-ref-dashboard-tile-constants.d.ts +11 -0
- package/lib/data-fields/task-ref-field/model/task-ref-dashboard-tile.d.ts +9 -0
- package/lib/data-fields/task-ref-field/model/task-ref-field.d.ts +10 -0
- package/lib/data-fields/task-ref-field/task-ref-dashboard-field/task-ref-dashboard-tile/abstract-task-ref-dashboard-tile.component.d.ts +36 -0
- package/lib/data-fields/text-field/abstract-dashboard-text-field.component.d.ts +23 -0
- package/lib/data-fields/text-field/dashboard-bar-chart-text-field/abstract-dashboard-bar-chart-text-field.component.d.ts +10 -0
- package/lib/data-fields/text-field/dashboard-iframe-text-field/abstract-dashboard-iframe-text-field.component.d.ts +11 -0
- package/lib/data-fields/text-field/dashboard-line-chart-text-field/abstract-dashboard-line-chart-text-field.component.d.ts +10 -0
- package/lib/data-fields/text-field/dashboard-pie-chart-text-field/abstract-dashboard-pie-chart-text-field.component.d.ts +10 -0
- package/lib/data-fields/text-field/dashboard-portal-text-field/abstract-dashboard-portal-text-field.component.d.ts +10 -0
- package/lib/data-fields/text-field/dashboard-portal-text-field/dashboard-portal-component-registry.service.d.ts +14 -0
- package/lib/data-fields/text-field/dashboard-portal-text-field/dashboard-view-constants.d.ts +8 -0
- package/lib/data-fields/text-field/models/text-field.d.ts +20 -0
- package/lib/data-fields/user-list-field/models/user-list-field.d.ts +4 -1
- package/lib/filter/models/user-filter-constants.d.ts +5 -1
- package/lib/navigation/group-navigation-component-resolver/group-navigation-component-resolver.service.d.ts +1 -0
- package/lib/navigation/navigation-double-drawer/abstract-navigation-double-drawer.d.ts +1 -0
- package/lib/panel/task-panel/abstract-task-panel.component.d.ts +9 -3
- package/lib/resources/interface/data-groups.d.ts +10 -5
- package/lib/task-content/model/preprocessed-data-groups.d.ts +5 -0
- package/lib/task-content/task-content/abstract-task-content.component.d.ts +42 -1
- package/lib/utility/public-api.d.ts +1 -0
- package/lib/utility/tests/mocks/mock-user.service.d.ts +18 -0
- package/lib/view/public-api.d.ts +1 -0
- package/lib/view/task-view/models/injection-token-task-force-open.d.ts +2 -0
- package/package.json +1 -1
|
@@ -4,11 +4,12 @@ import { TaskSearchRequestBody } from '../../../../filter/models/task-search-req
|
|
|
4
4
|
import { FilterType } from '../../../../filter/models/filter-type';
|
|
5
5
|
import { AggregationQuery } from './aggregation-query';
|
|
6
6
|
export interface CustomCard extends DashboardCard {
|
|
7
|
-
title
|
|
8
|
-
query
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
title?: string;
|
|
8
|
+
query?: AggregationQuery;
|
|
9
|
+
componentName?: string;
|
|
10
|
+
units?: string;
|
|
11
|
+
xAxisLabel?: string;
|
|
12
|
+
yAxisLabel?: string;
|
|
13
|
+
resourceType?: FilterType;
|
|
14
|
+
filter?: CaseSearchRequestBody | TaskSearchRequestBody;
|
|
14
15
|
}
|
|
@@ -3,5 +3,5 @@ import { GridElement } from '../../../utility/grid-layout/model/grid-element';
|
|
|
3
3
|
import { ComponentPortal } from '@angular/cdk/portal';
|
|
4
4
|
export interface DashboardCard extends GridElement {
|
|
5
5
|
type: DashboardCardTypes;
|
|
6
|
-
portalComponent
|
|
6
|
+
portalComponent?: ComponentPortal<any>;
|
|
7
7
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AfterViewInit, Injector } from '@angular/core';
|
|
2
|
+
import { ComponentPortal } from '@angular/cdk/portal';
|
|
3
|
+
import { DashboardPortalComponentRegistryService } from '../text-field/dashboard-portal-text-field/dashboard-portal-component-registry.service';
|
|
4
|
+
import { FilterField } from './models/filter-field';
|
|
5
|
+
import { SearchService } from '../../search/search-service/search.service';
|
|
6
|
+
import { AbstractFilterFieldContentComponent } from './abstract-filter-field-content.component';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare abstract class AbstractFilterFieldTabViewContentComponent extends AbstractFilterFieldContentComponent implements AfterViewInit {
|
|
9
|
+
protected registry: DashboardPortalComponentRegistryService;
|
|
10
|
+
protected injector: Injector;
|
|
11
|
+
componentPortal: ComponentPortal<any>;
|
|
12
|
+
protected constructor(registry: DashboardPortalComponentRegistryService, injector: Injector, filterField: FilterField, searchService: SearchService);
|
|
13
|
+
ngAfterViewInit(): void;
|
|
14
|
+
createFilter(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractFilterFieldTabViewContentComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractFilterFieldTabViewContentComponent, "ncc-abstract-filter-field-tab-view-content", never, {}, {}, never, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Type } from '@angular/core';
|
|
2
|
+
import { TabContent } from '../../tabs/interfaces';
|
|
3
|
+
import { DashboardPortalComponentRegistryService } from '../text-field/dashboard-portal-text-field/dashboard-portal-component-registry.service';
|
|
4
|
+
import { FilterField } from './models/filter-field';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare abstract class AbstractFilterFieldTabViewComponent {
|
|
7
|
+
protected _registry: DashboardPortalComponentRegistryService;
|
|
8
|
+
protected _filterField: FilterField;
|
|
9
|
+
protected _tabContentComponent?: Type<any>;
|
|
10
|
+
protected _tabViewComponent?: Type<any>;
|
|
11
|
+
tabs: Array<TabContent>;
|
|
12
|
+
constructor(_registry: DashboardPortalComponentRegistryService, _filterField: FilterField, _tabContentComponent?: Type<any>, _tabViewComponent?: Type<any>);
|
|
13
|
+
tabContentComponent(): Type<any>;
|
|
14
|
+
tabViewComponent(): Type<any>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractFilterFieldTabViewComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractFilterFieldTabViewComponent, "ncc-abstract-filter-field-tab-view", never, {}, {}, never, never>;
|
|
17
|
+
}
|
|
@@ -11,6 +11,7 @@ export declare abstract class AbstractFilterFieldComponent extends AbstractDataF
|
|
|
11
11
|
portal: ComponentPortal<AbstractFilterFieldContentComponent>;
|
|
12
12
|
protected constructor(_parentInjector: Injector, informAboutInvalidData: boolean | null);
|
|
13
13
|
ngOnInit(): void;
|
|
14
|
+
get editable(): boolean;
|
|
14
15
|
protected abstract getFilterContentComponent(): ComponentType<AbstractFilterFieldContentComponent>;
|
|
15
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractFilterFieldComponent, [null, { optional: true; }]>;
|
|
16
17
|
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractFilterFieldComponent, "ncc-abstract-filter-field", never, { "dataField": "dataField"; }, {}, never, never>;
|
|
@@ -27,16 +27,26 @@ export * from './text-field/rich-textarea-field/abstract-rich-textarea-field.com
|
|
|
27
27
|
export * from './text-field/html-textarea-field/abstract-html-textarea-field.component';
|
|
28
28
|
export * from './text-field/password-text-field/abstract-password-text-field.component';
|
|
29
29
|
export * from './text-field/textarea-field/abstract-textarea-field.component';
|
|
30
|
+
export * from './text-field/abstract-dashboard-text-field.component';
|
|
31
|
+
export * from './text-field/dashboard-line-chart-text-field/abstract-dashboard-line-chart-text-field.component';
|
|
32
|
+
export * from './text-field/dashboard-pie-chart-text-field/abstract-dashboard-pie-chart-text-field.component';
|
|
33
|
+
export * from './text-field/dashboard-bar-chart-text-field/abstract-dashboard-bar-chart-text-field.component';
|
|
34
|
+
export * from './text-field/dashboard-iframe-text-field/abstract-dashboard-iframe-text-field.component';
|
|
35
|
+
export * from './text-field/dashboard-portal-text-field/abstract-dashboard-portal-text-field.component';
|
|
30
36
|
export * from './user-field/abstract-user-field.component';
|
|
31
37
|
export * from './enumeration-field/enumeration-icon-field/abstract-enumeration-icon-field.component';
|
|
32
38
|
export * from './enumeration-field/enumeration-autocomplete-dynamic-field/abstract-enumeration-autocomplete-dynamic-field.component';
|
|
33
39
|
export * from './filter-field/abstract-filter-field.component';
|
|
34
40
|
export * from './filter-field/abstract-filter-field-content.component';
|
|
41
|
+
export * from './filter-field/abstract-filter-field-tab-view.component';
|
|
42
|
+
export * from './filter-field/abstract-filter-field-tab-view-content.component';
|
|
35
43
|
export * from './i18n-field/abstract-i18n-field.component';
|
|
36
44
|
export * from './i18n-field/i18n-text-field/abstract-i18n-text-field.component';
|
|
37
45
|
export * from './i18n-field/i18n-divider-field/abstract-i18n-divider-field.component';
|
|
38
46
|
export * from './i18n-field/abstract-i18n-errors.component';
|
|
39
47
|
export * from './user-list-field/abstract-user-list-field.component';
|
|
48
|
+
export * from './task-ref-field/abstract-task-ref-field.component';
|
|
49
|
+
export * from './task-ref-field/task-ref-dashboard-field/task-ref-dashboard-tile/abstract-task-ref-dashboard-tile.component';
|
|
40
50
|
export * from './models/abstract-data-field';
|
|
41
51
|
export * from './text-field/models/text-area-field';
|
|
42
52
|
export * from './text-field/models/text-field';
|
|
@@ -66,6 +76,7 @@ export * from './models/component';
|
|
|
66
76
|
export * from './models/properties';
|
|
67
77
|
export * from './data-field-template/models/wrapped-boolean';
|
|
68
78
|
export * from './i18n-field/models/language-icons';
|
|
79
|
+
export * from './task-ref-field/model/task-ref-dashboard-tile';
|
|
69
80
|
export * from './models/boolean-label-enabled-token';
|
|
70
81
|
export * from './models/invalid-data-policy-token';
|
|
71
82
|
export * from './filter-field/models/filter-field-injection-token';
|
|
@@ -73,4 +84,9 @@ export * from './models/template-appearance';
|
|
|
73
84
|
export * from './models/material-appearance';
|
|
74
85
|
export * from './enumeration-field/enumeration-autocomplete-select-field/enumeration-autocomplete-filter-property';
|
|
75
86
|
export * from './multichoice-field/multichoice-autocomplete-field/multichoice-autocomplete-filter-property';
|
|
87
|
+
export * from './task-ref-field/model/task-ref-components';
|
|
88
|
+
export * from './task-ref-field/model/task-ref-dashboard-constants';
|
|
89
|
+
export * from './task-ref-field/model/task-ref-dashboard-tile-constants';
|
|
90
|
+
export * from './text-field/dashboard-portal-text-field/dashboard-view-constants';
|
|
76
91
|
export * from './i18n-field/language-icons.service';
|
|
92
|
+
export * from './text-field/dashboard-portal-text-field/dashboard-portal-component-registry.service';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { LoggerService } from '../../logger/public-api';
|
|
3
|
+
import { AbstractDataFieldComponent } from '../models/abstract-data-field-component';
|
|
4
|
+
import { TaskRefField } from './model/task-ref-field';
|
|
5
|
+
import { TaskRefDashboardTile } from './model/task-ref-dashboard-tile';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare abstract class AbstractTaskRefFieldComponent extends AbstractDataFieldComponent implements OnInit {
|
|
8
|
+
protected _logger: LoggerService;
|
|
9
|
+
dataField: TaskRefField;
|
|
10
|
+
dashboardTiles: Array<TaskRefDashboardTile>;
|
|
11
|
+
protected constructor(_logger: LoggerService, informAboutInvalidData: boolean | null);
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
protected createDashboardTiles(): void;
|
|
14
|
+
protected createFlagGrid(rows?: number, cols?: number): Array<Array<boolean>>;
|
|
15
|
+
protected createDashboardTile(tile: TaskRefDashboardTile): TaskRefDashboardTile;
|
|
16
|
+
protected occupySpace(grid: Array<Array<boolean>>, y: number, x: number, width: number, height: number): void;
|
|
17
|
+
protected createEmptyDashboardTile(x: number, y: number): TaskRefDashboardTile;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractTaskRefFieldComponent, [null, { optional: true; }]>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractTaskRefFieldComponent, "ncc-abstract-task-ref-field", never, { "dataField": "dataField"; }, {}, never, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A collection of Task ref field dashboard component constants used to reference elements of the underlying processes
|
|
3
|
+
*/
|
|
4
|
+
export declare enum TaskRefDashboardConstants {
|
|
5
|
+
DASHBOARD_ROWS = "rows",
|
|
6
|
+
DASHBOARD_COLS = "cols",
|
|
7
|
+
DASHBOARD_TASK_REF = "dashboard"
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A collection of Task ref field dashboard tile component constants used to reference elements of the underlying processes
|
|
3
|
+
*/
|
|
4
|
+
export declare enum TaskRefDashboardTileConstants {
|
|
5
|
+
DASHBOARD_TILE_X = "x",
|
|
6
|
+
DASHBOARD_TILE_Y = "y",
|
|
7
|
+
DASHBOARD_TILE_ROWS = "rows",
|
|
8
|
+
DASHBOARD_TILE_COLS = "cols",
|
|
9
|
+
DASHBOARD_TILE_PARENT_ID = "parent_dashboard_id",
|
|
10
|
+
DASHBOARD_TILE_PROCESS_IDENTIFIER = "dashboard_tile"
|
|
11
|
+
}
|
|
@@ -3,6 +3,16 @@ import { Behavior } from '../../models/behavior';
|
|
|
3
3
|
import { Layout } from '../../models/layout';
|
|
4
4
|
import { Component } from '../../models/component';
|
|
5
5
|
import { Validation } from '../../models/validation';
|
|
6
|
+
import { TaskRefDashboardTile } from './task-ref-dashboard-tile';
|
|
6
7
|
export declare class TaskRefField extends DataField<Array<string>> {
|
|
8
|
+
protected _dashboardTiles?: Array<TaskRefDashboardTile>;
|
|
9
|
+
private _dashboardRows?;
|
|
10
|
+
private _dashboardCols?;
|
|
7
11
|
constructor(stringId: string, title: string, initialValue: Array<string>, behavior: Behavior, placeholder?: string, description?: string, layout?: Layout, validations?: Array<Validation>, component?: Component, parentTaskId?: string);
|
|
12
|
+
get dashboardTiles(): Array<TaskRefDashboardTile>;
|
|
13
|
+
set dashboardTiles(value: Array<TaskRefDashboardTile>);
|
|
14
|
+
get dashboardRows(): number;
|
|
15
|
+
set dashboardRows(value: number);
|
|
16
|
+
get dashboardCols(): number;
|
|
17
|
+
set dashboardCols(value: number);
|
|
8
18
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { TaskRefDashboardTile } from '../../model/task-ref-dashboard-tile';
|
|
3
|
+
import { CaseResourceService } from '../../../../resources/engine-endpoint/case-resource.service';
|
|
4
|
+
import { TaskRefField } from '../../model/task-ref-field';
|
|
5
|
+
import { Subject } from 'rxjs';
|
|
6
|
+
import { ProcessService } from '../../../../process/process.service';
|
|
7
|
+
import { FormControl } from '@angular/forms';
|
|
8
|
+
import { LoggerService } from '../../../../logger/services/logger.service';
|
|
9
|
+
import { TaskSetDataRequestBody } from '../../../../resources/interface/task-set-data-request-body';
|
|
10
|
+
import { TaskResourceService } from '../../../../resources/engine-endpoint/task-resource.service';
|
|
11
|
+
import { CallChainService } from '../../../../utility/call-chain/call-chain.service';
|
|
12
|
+
import { TaskContentService } from '../../../../task-content/services/task-content.service';
|
|
13
|
+
import { TaskOperations } from '../../../../task/interfaces/task-operations';
|
|
14
|
+
import { TaskDataService } from '../../../../task/services/task-data.service';
|
|
15
|
+
import * as i0 from "@angular/core";
|
|
16
|
+
export declare abstract class AbstractTaskRefDashboardTileComponent implements OnDestroy {
|
|
17
|
+
protected _caseResourceService: CaseResourceService;
|
|
18
|
+
protected _processService: ProcessService;
|
|
19
|
+
protected _logger: LoggerService;
|
|
20
|
+
protected _taskResourceService: TaskResourceService;
|
|
21
|
+
protected _callChainService: CallChainService;
|
|
22
|
+
protected _parentTaskContentService: TaskContentService;
|
|
23
|
+
protected _taskDataService: TaskDataService;
|
|
24
|
+
protected _taskOperations: TaskOperations;
|
|
25
|
+
tile: TaskRefDashboardTile;
|
|
26
|
+
taskRef: TaskRefField;
|
|
27
|
+
fc: FormControl;
|
|
28
|
+
private _sub;
|
|
29
|
+
private caseCreating;
|
|
30
|
+
protected constructor(_caseResourceService: CaseResourceService, _processService: ProcessService, _logger: LoggerService, _taskResourceService: TaskResourceService, _callChainService: CallChainService, _parentTaskContentService: TaskContentService, _taskDataService: TaskDataService, _taskOperations: TaskOperations);
|
|
31
|
+
ngOnDestroy(): void;
|
|
32
|
+
createNewDashboardTile(): void;
|
|
33
|
+
protected assignSetData(taskId: string, data: TaskSetDataRequestBody, callChain: Subject<boolean>): void;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractTaskRefDashboardTileComponent, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractTaskRefDashboardTileComponent, "ncc-abstract-task-ref-dashboard-tile", never, { "tile": "tile"; "taskRef": "taskRef"; "fc": "fc"; }, {}, never, never>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { AbstractTextErrorsComponent } from './abstract-text-errors.component';
|
|
3
|
+
import { TextField } from './models/text-field';
|
|
4
|
+
import { FormControl } from '@angular/forms';
|
|
5
|
+
import { WrappedBoolean } from '../data-field-template/models/wrapped-boolean';
|
|
6
|
+
import { CustomCard } from '../../dashboard/cards/model/custom-dashboard-model/custom-card';
|
|
7
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare abstract class AbstractDashboardTextFieldComponent extends AbstractTextErrorsComponent implements OnInit, OnDestroy {
|
|
10
|
+
textField: TextField;
|
|
11
|
+
formControlRef: FormControl;
|
|
12
|
+
showLargeLayout: WrappedBoolean;
|
|
13
|
+
card?: CustomCard;
|
|
14
|
+
initialized: boolean;
|
|
15
|
+
private _sub;
|
|
16
|
+
protected constructor(translate: TranslateService);
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
ngOnDestroy(): void;
|
|
19
|
+
protected abstract createCard(textFieldValue: string): CustomCard;
|
|
20
|
+
getErrorMessage(): any;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDashboardTextFieldComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractDashboardTextFieldComponent, "ncc-abstract-dashboard-text-field", never, { "textField": "textField"; "formControlRef": "formControlRef"; "showLargeLayout": "showLargeLayout"; }, {}, never, never>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CustomCard } from '../../../dashboard/cards/model/custom-dashboard-model/custom-card';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { AbstractDashboardTextFieldComponent } from '../abstract-dashboard-text-field.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare abstract class AbstractDashboardBarChartTextFieldComponent extends AbstractDashboardTextFieldComponent {
|
|
6
|
+
protected constructor(translate: TranslateService);
|
|
7
|
+
protected createCard(textFieldValue: string): CustomCard;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDashboardBarChartTextFieldComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractDashboardBarChartTextFieldComponent, "ncc-abstract-dashboard-bar-chart-text-field", never, {}, {}, never, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
2
|
+
import { CustomIframeCard } from '../../../dashboard/cards/model/custom-dashboard-model/custom-iframe-card';
|
|
3
|
+
import { AbstractDashboardTextFieldComponent } from '../abstract-dashboard-text-field.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare abstract class AbstractDashboardIframeTextFieldComponent extends AbstractDashboardTextFieldComponent {
|
|
6
|
+
card?: CustomIframeCard;
|
|
7
|
+
protected constructor(translate: TranslateService);
|
|
8
|
+
protected createCard(textFieldValue: string): CustomIframeCard;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDashboardIframeTextFieldComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractDashboardIframeTextFieldComponent, "ncc-abstract-dashboard-iframe-text-field", never, {}, {}, never, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
2
|
+
import { CustomCard } from '../../../dashboard/cards/model/custom-dashboard-model/custom-card';
|
|
3
|
+
import { AbstractDashboardTextFieldComponent } from '../abstract-dashboard-text-field.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare abstract class AbstractDashboardLineChartTextFieldComponent extends AbstractDashboardTextFieldComponent {
|
|
6
|
+
protected constructor(translate: TranslateService);
|
|
7
|
+
protected createCard(textFieldValue: string): CustomCard;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDashboardLineChartTextFieldComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractDashboardLineChartTextFieldComponent, "ncc-abstract-dashboard-line-chart-text-field", never, {}, {}, never, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
2
|
+
import { CustomCard } from '../../../dashboard/cards/model/custom-dashboard-model/custom-card';
|
|
3
|
+
import { AbstractDashboardTextFieldComponent } from '../abstract-dashboard-text-field.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare abstract class AbstractDashboardPieChartTextFieldComponent extends AbstractDashboardTextFieldComponent {
|
|
6
|
+
protected constructor(translate: TranslateService);
|
|
7
|
+
protected createCard(textFieldValue: string): CustomCard;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDashboardPieChartTextFieldComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractDashboardPieChartTextFieldComponent, "ncc-abstract-dashboard-pie-chart-text-field", never, {}, {}, never, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
2
|
+
import { CustomCard } from '../../../dashboard/cards/model/custom-dashboard-model/custom-card';
|
|
3
|
+
import { AbstractDashboardTextFieldComponent } from '../abstract-dashboard-text-field.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare abstract class AbstractDashboardPortalTextFieldComponent extends AbstractDashboardTextFieldComponent {
|
|
6
|
+
protected constructor(translate: TranslateService);
|
|
7
|
+
protected createCard(textFieldValue: string): CustomCard;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDashboardPortalTextFieldComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractDashboardPortalTextFieldComponent, "ncc-abstract-dashboard-pie-chart-text-field", never, {}, {}, never, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Injector, Type } from '@angular/core';
|
|
2
|
+
import { ComponentPortal } from '@angular/cdk/portal';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DashboardPortalComponentRegistryService {
|
|
5
|
+
private registry;
|
|
6
|
+
private typeRegistry;
|
|
7
|
+
constructor();
|
|
8
|
+
register(component: string, factory: (injector: Injector) => ComponentPortal<any>): void;
|
|
9
|
+
registerType(key: string, type: Type<any>): void;
|
|
10
|
+
get(component: string, injector?: Injector): ComponentPortal<any>;
|
|
11
|
+
getType(key: string): Type<any>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DashboardPortalComponentRegistryService, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DashboardPortalComponentRegistryService>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare enum Dashboard {
|
|
2
|
+
FILTER_TAB_VIEW_ID = "filter-tab-view",
|
|
3
|
+
FILTER_CASE_VIEW_ID = "filter-case-view",
|
|
4
|
+
FILTER_TASK_VIEW_ID = "filter-task-view",
|
|
5
|
+
FILTER_TAB_VIEW_TITLE_KEY = "tabTitle",
|
|
6
|
+
FILTER_TAB_VIEW_ICON_KEY = "tabIcon",
|
|
7
|
+
FILTER_TAB_VIEW_COMPONENT_ID = "filter-tab-view"
|
|
8
|
+
}
|
|
@@ -4,6 +4,26 @@ import { Layout } from '../../models/layout';
|
|
|
4
4
|
import { Validation } from '../../models/validation';
|
|
5
5
|
import { Component } from '../../models/component';
|
|
6
6
|
import { DataField } from '../../models/abstract-data-field';
|
|
7
|
+
export declare enum TextFieldView {
|
|
8
|
+
DEFAULT = "default",
|
|
9
|
+
TEXTAREA = "textarea",
|
|
10
|
+
RICHTEXTAREA = "richtextarea",
|
|
11
|
+
HTMLTEXTAREA = "htmltextarea"
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* A collection of Text field component names supported by the application engine.
|
|
15
|
+
*/
|
|
16
|
+
export declare enum TextFieldComponent {
|
|
17
|
+
PASSWORD = "password",
|
|
18
|
+
TEXT_AREA = "textarea",
|
|
19
|
+
RICH_TEXT_AREA = "richtextarea",
|
|
20
|
+
HTML_TEXT_AREA = "htmltextarea",
|
|
21
|
+
DASHBOARD_LINE_CHART = "dashboard_line_chart",
|
|
22
|
+
DASHBOARD_PIE_CHART = "dashboard_pie_chart",
|
|
23
|
+
DASHBOARD_BAR_CHART = "dashboard_bar_chart",
|
|
24
|
+
DASHBOARD_IFRAME = "dashboard_iframe",
|
|
25
|
+
DASHBOARD_PORTAL = "dashboard_portal"
|
|
26
|
+
}
|
|
7
27
|
export declare enum TextAreaHeight {
|
|
8
28
|
OUTLINE = 27,
|
|
9
29
|
FILL_STANDARD = 34
|
|
@@ -5,8 +5,11 @@ import { Validation } from '../../models/validation';
|
|
|
5
5
|
import { Component } from '../../models/component';
|
|
6
6
|
import { UserListValue } from './user-list-value';
|
|
7
7
|
import { FormControl, ValidatorFn } from "@angular/forms";
|
|
8
|
+
import { ProcessRole } from "../../../resources/interface/process-role";
|
|
8
9
|
export declare class UserListField extends DataField<UserListValue> {
|
|
9
|
-
|
|
10
|
+
private _roles;
|
|
11
|
+
constructor(stringId: string, title: string, behavior: Behavior, value: UserListValue, _roles: Array<ProcessRole>, placeholder?: string, description?: string, layout?: Layout, validations?: Array<Validation>, component?: Component, parentTaskId?: string);
|
|
12
|
+
get roles(): Array<ProcessRole>;
|
|
10
13
|
protected valueEquality(a: UserListValue, b: UserListValue): boolean;
|
|
11
14
|
protected calculateValidity(forValidRequired: boolean, formControl: FormControl): boolean;
|
|
12
15
|
protected resolveFormControlValidators(): Array<ValidatorFn>;
|
|
@@ -33,5 +33,9 @@ export declare enum UserFilterConstants {
|
|
|
33
33
|
/**
|
|
34
34
|
* ID of the field containing the filter case ID of the parent filter (if the filter has a filter parent)
|
|
35
35
|
*/
|
|
36
|
-
PARENT_FILTER_CASE_ID_FIELD_ID = "parent_filter_id"
|
|
36
|
+
PARENT_FILTER_CASE_ID_FIELD_ID = "parent_filter_id",
|
|
37
|
+
/**
|
|
38
|
+
* ID of allowed net field in filter and filter_preference_item processes
|
|
39
|
+
* */
|
|
40
|
+
ALLOWED_NETS_FIELD_ID = "allowed_nets"
|
|
37
41
|
}
|
|
@@ -10,5 +10,6 @@ export declare abstract class GroupNavigationComponentResolverService {
|
|
|
10
10
|
protected constructor(_taskResourceService: TaskResourceService, _log: LoggerService);
|
|
11
11
|
protected abstract resolveViewComponent(navigationItemTaskData: Array<DataGroup>): Type<any>;
|
|
12
12
|
createResolvedViewComponentPortal(taskId: string, parentInjector: Injector): Observable<ComponentPortal<any>>;
|
|
13
|
+
protected resolveDefaultHeaders(caze: Array<DataGroup>): Array<string> | undefined;
|
|
13
14
|
private forwardError;
|
|
14
15
|
}
|
|
@@ -31,6 +31,7 @@ export interface ViewNavigationItem extends View {
|
|
|
31
31
|
}
|
|
32
32
|
export declare const FILTER_IDENTIFIERS: string[];
|
|
33
33
|
export declare const FILTER_VIEW_TASK_TRANSITION_ID = "view";
|
|
34
|
+
export declare const FILTER_DEFAULT_HEADERS_ID = "default_headers";
|
|
34
35
|
export declare abstract class AbstractNavigationDoubleDrawerComponent implements OnInit, OnDestroy {
|
|
35
36
|
protected _router: Router;
|
|
36
37
|
protected _activatedRoute: ActivatedRoute;
|
|
@@ -28,6 +28,7 @@ import { PermissionService } from '../../authorization/permission/permission.ser
|
|
|
28
28
|
import { ChangedFieldsService } from '../../changed-fields/services/changed-fields.service';
|
|
29
29
|
import { TaskPanelContext } from './models/task-panel-context';
|
|
30
30
|
import { OverflowService } from '../../header/services/overflow.service';
|
|
31
|
+
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
31
32
|
import { FinishPolicyService } from '../../task/services/finish-policy.service';
|
|
32
33
|
import * as i0 from "@angular/core";
|
|
33
34
|
export declare abstract class AbstractTaskPanelComponent extends AbstractPanelWithImmediateDataComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
@@ -51,12 +52,14 @@ export declare abstract class AbstractTaskPanelComponent extends AbstractPanelWi
|
|
|
51
52
|
protected _currencyPipe: CurrencyPipe;
|
|
52
53
|
protected _changedFieldsService: ChangedFieldsService;
|
|
53
54
|
protected _permissionService: PermissionService;
|
|
55
|
+
protected _taskForceOpen: boolean;
|
|
54
56
|
/**
|
|
55
57
|
* @ignore
|
|
56
58
|
* Set by an @Input() on a setter function, that also resolves featured fields.
|
|
57
59
|
*/
|
|
58
60
|
protected _taskPanelData: TaskPanelData;
|
|
59
61
|
protected _forceLoadDataOnOpen: boolean;
|
|
62
|
+
taskListVirtualScroll: CdkVirtualScrollViewport;
|
|
60
63
|
panelContentComponent: Type<any>;
|
|
61
64
|
selectedHeaders$: Observable<Array<HeaderColumn>>;
|
|
62
65
|
first: boolean;
|
|
@@ -81,7 +84,7 @@ export declare abstract class AbstractTaskPanelComponent extends AbstractPanelWi
|
|
|
81
84
|
protected _subTaskData: Subscription;
|
|
82
85
|
protected _subPanelUpdate: Subscription;
|
|
83
86
|
protected _taskDisableButtonFunctions: DisableButtonFuntions;
|
|
84
|
-
protected constructor(_taskContentService: TaskContentService, _log: LoggerService, _taskViewService: TaskViewService, _paperView: PaperViewService, _taskEventService: TaskEventService, _assignTaskService: AssignTaskService, _delegateTaskService: DelegateTaskService, _cancelTaskService: CancelTaskService, _finishTaskService: FinishTaskService, _taskState: TaskRequestStateService, _taskDataService: TaskDataService, _assignPolicyService: AssignPolicyService, _finishPolicyService: FinishPolicyService, _callChain: CallChainService, _taskOperations: SubjectTaskOperations, _disableFunctions: DisableButtonFuntions, _translate: TranslateService, _currencyPipe: CurrencyPipe, _changedFieldsService: ChangedFieldsService, _permissionService: PermissionService, overflowService: OverflowService);
|
|
87
|
+
protected constructor(_taskContentService: TaskContentService, _log: LoggerService, _taskViewService: TaskViewService, _paperView: PaperViewService, _taskEventService: TaskEventService, _assignTaskService: AssignTaskService, _delegateTaskService: DelegateTaskService, _cancelTaskService: CancelTaskService, _finishTaskService: FinishTaskService, _taskState: TaskRequestStateService, _taskDataService: TaskDataService, _assignPolicyService: AssignPolicyService, _finishPolicyService: FinishPolicyService, _callChain: CallChainService, _taskOperations: SubjectTaskOperations, _disableFunctions: DisableButtonFuntions, _translate: TranslateService, _currencyPipe: CurrencyPipe, _changedFieldsService: ChangedFieldsService, _permissionService: PermissionService, overflowService: OverflowService, _taskForceOpen: boolean);
|
|
85
88
|
ngOnInit(): void;
|
|
86
89
|
ngAfterViewInit(): void;
|
|
87
90
|
protected abstract createContentPortal(): void;
|
|
@@ -102,6 +105,7 @@ export declare abstract class AbstractTaskPanelComponent extends AbstractPanelWi
|
|
|
102
105
|
canReassign(): boolean;
|
|
103
106
|
canCancel(): boolean;
|
|
104
107
|
canFinish(): boolean;
|
|
108
|
+
private hasNoFinishPermission;
|
|
105
109
|
canCollapse(): boolean;
|
|
106
110
|
canDo(action: any): boolean;
|
|
107
111
|
getAssignTitle(): string;
|
|
@@ -112,6 +116,8 @@ export declare abstract class AbstractTaskPanelComponent extends AbstractPanelWi
|
|
|
112
116
|
protected getFeaturedMetaValue(selectedHeader: HeaderColumn): FeaturedValue;
|
|
113
117
|
protected getFeaturedImmediateValue(selectedHeader: HeaderColumn): FeaturedValue;
|
|
114
118
|
ngOnDestroy(): void;
|
|
115
|
-
|
|
116
|
-
|
|
119
|
+
isForceOpen(): boolean;
|
|
120
|
+
getContentMinHeight(): string;
|
|
121
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractTaskPanelComponent, [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, { optional: true; }, null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
122
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractTaskPanelComponent, "ncc-abstract-legal-notice", never, { "taskListVirtualScroll": "taskListVirtualScroll"; "panelContentComponent": "panelContentComponent"; "selectedHeaders$": "selectedHeaders$"; "first": "first"; "last": "last"; "responsiveBody": "responsiveBody"; "preventCollapse": "preventCollapse"; "hidePanelHeader": "hidePanelHeader"; "actionButtonTemplates": "actionButtonTemplates"; "actionRowJustifyContent": "actionRowJustifyContent"; "forceLoadDataOnOpen": "forceLoadDataOnOpen"; "textEllipsis": "textEllipsis"; "taskPanelData": "taskPanelData"; }, { "taskEvent": "taskEvent"; "panelRefOutput": "panelRefOutput"; }, never, never>;
|
|
117
123
|
}
|
|
@@ -3,27 +3,32 @@ import { DataGroupLayout } from './data-group-layout';
|
|
|
3
3
|
/**
|
|
4
4
|
* Object from Backend
|
|
5
5
|
*/
|
|
6
|
-
export interface DataGroup {
|
|
6
|
+
export interface DataGroup extends ParentDataGroupInformation {
|
|
7
7
|
/**
|
|
8
8
|
* Array [DataField]{@link DataField}
|
|
9
9
|
*/
|
|
10
10
|
fields: Array<DataField<any>>;
|
|
11
11
|
/**
|
|
12
|
-
* Name
|
|
12
|
+
* Name of the data group
|
|
13
13
|
*/
|
|
14
|
-
title
|
|
14
|
+
title?: string;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Design alignment
|
|
17
17
|
* ***Example:*** start
|
|
18
18
|
*/
|
|
19
19
|
alignment: DataGroupAlignment;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Design stretch
|
|
22
22
|
*
|
|
23
23
|
* ***Example:*** true
|
|
24
24
|
*/
|
|
25
25
|
stretch: boolean;
|
|
26
26
|
layout?: DataGroupLayout;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* An object containing the information about the parent of a data group
|
|
30
|
+
*/
|
|
31
|
+
export interface ParentDataGroupInformation {
|
|
27
32
|
/**
|
|
28
33
|
* String id of parent task, only set if dataGroup is loaded by {@link TaskRefField}
|
|
29
34
|
*/
|
|
@@ -14,9 +14,11 @@ import { FieldTypeResource } from '../model/field-type-resource';
|
|
|
14
14
|
import { LoadingEmitter } from '../../utility/loading-emitter';
|
|
15
15
|
import { BehaviorSubject, Observable, Subscription } from 'rxjs';
|
|
16
16
|
import { AsyncRenderingConfiguration } from '../model/async-rendering-configuration';
|
|
17
|
+
import { TaskRefField } from '../../data-fields/task-ref-field/model/task-ref-field';
|
|
17
18
|
import { SplitDataGroup } from '../model/split-data-group';
|
|
18
19
|
import { Subgrid } from '../model/subgrid';
|
|
19
20
|
import { IncrementingCounter } from '../../utility/incrementing-counter';
|
|
21
|
+
import { PreprocessedDataGroups } from '../model/preprocessed-data-groups';
|
|
20
22
|
import * as i0 from "@angular/core";
|
|
21
23
|
export declare abstract class AbstractTaskContentComponent implements OnDestroy {
|
|
22
24
|
protected _fieldConverter: FieldConverterService;
|
|
@@ -121,10 +123,32 @@ export declare abstract class AbstractTaskContentComponent implements OnDestroy
|
|
|
121
123
|
/**
|
|
122
124
|
* Clones the content of the data groups to prevent unintentional memory accesses to source data.
|
|
123
125
|
* Rearranges the data groups to accommodate taskrefs. Filters out hidden and forbidden fields.
|
|
126
|
+
* Populates dashboard task ref fields with dashboard tile data.
|
|
124
127
|
* @param dataGroups
|
|
125
|
-
* @returns the
|
|
128
|
+
* @returns the preprocessed data groups
|
|
126
129
|
*/
|
|
127
130
|
protected preprocessDataGroups(dataGroups: Array<DataGroup>): Array<DataGroup>;
|
|
131
|
+
/**
|
|
132
|
+
* Clones the content of the data groups to prevent unintentional memory accesses to source data.
|
|
133
|
+
* Rearranges the data groups to accommodate taskrefs.
|
|
134
|
+
* Determines if the data groups contain a dashboard task ref field.
|
|
135
|
+
* @param dataGroups
|
|
136
|
+
* @returns the preprocessed data groups with metadata
|
|
137
|
+
*/
|
|
138
|
+
protected rearrangeDataGroups(dataGroups: Array<DataGroup>): PreprocessedDataGroups;
|
|
139
|
+
/**
|
|
140
|
+
* Creates a duplicate of the provided data group array.
|
|
141
|
+
*
|
|
142
|
+
* Only the data groups are cloned, the fields are only copied as references.
|
|
143
|
+
* @param dataGroups the data groups that should be cloned
|
|
144
|
+
* @returns the duplicated data groups
|
|
145
|
+
*/
|
|
146
|
+
protected cloneDataGroups(dataGroups: Array<DataGroup>): Array<DataGroup>;
|
|
147
|
+
/**
|
|
148
|
+
* Passes over all the fields in the provided data groups and if they are visible, initializes their local layout attribute.
|
|
149
|
+
* @param dataGroups the containers of the fields that should have their local layout initialized
|
|
150
|
+
*/
|
|
151
|
+
protected initializeLocalFieldLayout(dataGroups: Array<DataGroup>): void;
|
|
128
152
|
/**
|
|
129
153
|
* Creates a duplicate of the provided data group array and filters away any fields and data groups that are marked as hidden.
|
|
130
154
|
* Because of the duplication the filtering doesn't affect the original instances and they remain unchanged.
|
|
@@ -141,6 +165,23 @@ export declare abstract class AbstractTaskContentComponent implements OnDestroy
|
|
|
141
165
|
* @protected
|
|
142
166
|
*/
|
|
143
167
|
protected splitDataGroupOnTaskRef(dataGroup: DataGroup): SplitDataGroup;
|
|
168
|
+
/**
|
|
169
|
+
* Creates a new data group that contains only the passed task ref.
|
|
170
|
+
* The information about nesting and parent task/case are preserved from the passed original data group.
|
|
171
|
+
* @param originalDataGroup source of the information about parent task/case
|
|
172
|
+
* @param taskRef the task ref that will be added to the new data group
|
|
173
|
+
* @protected
|
|
174
|
+
*/
|
|
175
|
+
protected createDashboardTaskRefDataGroup(originalDataGroup: DataGroup, taskRef: TaskRefField): DataGroup;
|
|
176
|
+
/**
|
|
177
|
+
* Identifies data groups that represent dashboard tiles,
|
|
178
|
+
* removes them from the data group array and passes them onto the task ref field instance.
|
|
179
|
+
* @param preprocessedDataGroups
|
|
180
|
+
* @param rawDataGroups
|
|
181
|
+
* @returns an array of data group objects that does not contain dashboard tiles referenced by the dashboard task ref
|
|
182
|
+
* @protected
|
|
183
|
+
*/
|
|
184
|
+
protected preprocessDashboardTaskRef(preprocessedDataGroups: Array<DataGroup>, rawDataGroups: Array<DataGroup>): Array<DataGroup>;
|
|
144
185
|
/**
|
|
145
186
|
* Computes the layout data for a single data group with grid layout. The resulting layout is saved into the input objects.
|
|
146
187
|
* @param dataGroup the data group that should be laid out into a grid
|
|
@@ -29,6 +29,7 @@ export * from './base64';
|
|
|
29
29
|
export * from './tests/mocks/mock-authentication.service';
|
|
30
30
|
export * from './tests/mocks/mock-user-preference.service';
|
|
31
31
|
export * from './tests/mocks/mock-user-resource.service';
|
|
32
|
+
export * from './tests/mocks/mock-user.service';
|
|
32
33
|
export * from './tests/mocks/mock-authentication-method-service';
|
|
33
34
|
export * from './tests/mocks/mock-sign-up.service';
|
|
34
35
|
export * from './tests/mocks/mock-user-autocomplete-value';
|