@netgrif/components-core 6.0.3 → 6.0.4
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/bundles/netgrif-components-core.umd.js +166 -61
- package/bundles/netgrif-components-core.umd.js.map +1 -1
- package/bundles/netgrif-components-core.umd.min.js +2 -2
- package/bundles/netgrif-components-core.umd.min.js.map +1 -1
- package/esm2015/lib/data-fields/file-field/abstract-file-field.component.js +2 -2
- package/esm2015/lib/groups/services/next-group.service.js +3 -2
- package/esm2015/lib/resources/abstract-endpoint/abstract-resource.service.js +3 -2
- package/esm2015/lib/resources/engine-endpoint/public/public-task-resource.service.js +1 -1
- package/esm2015/lib/search/models/category/case/case-dataset.js +3 -6
- package/esm2015/lib/search/models/category/case/case-simple-dataset.js +3 -3
- package/esm2015/lib/search/models/category/case/case-title.js +13 -3
- package/esm2015/lib/search/models/category/case/case-visual-id.js +13 -3
- package/esm2015/lib/search/models/category/category.js +10 -2
- package/esm2015/lib/search/models/operator/substring.js +3 -3
- package/esm2015/lib/search/search-keyword-resolver-service/search-index-resolver.service.js +18 -3
- package/esm2015/lib/search/search-service/search.service.js +3 -2
- package/esm2015/lib/side-menu/content-components/new-case/abstract-new-case.component.js +6 -1
- package/esm2015/lib/task/services/finish-task.service.js +18 -13
- package/esm2015/lib/task/services/task-data.service.js +2 -1
- package/esm2015/lib/user/services/user-list.service.js +4 -3
- package/esm2015/lib/utility/pagination/load-all-pages.js +4 -3
- package/esm2015/lib/utility/pagination/pagination-params.js +19 -0
- package/esm2015/lib/utility/pagination/pagination-sort.js +17 -0
- package/esm2015/lib/utility/public-api.js +3 -1
- package/esm2015/lib/utility/tests/mocks/mock-endpoint.js +4 -3
- package/esm2015/lib/view/abstract/sortable-view.js +4 -3
- package/esm2015/lib/view/case-view/service/case-view-service.js +6 -4
- package/esm2015/lib/view/public-api.js +3 -1
- package/esm2015/lib/view/task-view/service/task-view.service.js +6 -4
- package/esm2015/lib/view/tree-case-view/tree-component/case-tree.service.js +19 -5
- package/esm2015/lib/view/tree-case-view/tree-component/model/tree-case-view-configuration.js +2 -0
- package/esm2015/lib/view/tree-case-view/tree-component/model/tree-configuration-injection-token.js +3 -0
- package/esm2015/lib/view/workflow-view/workflow-view.service.js +4 -11
- package/esm5/lib/data-fields/file-field/abstract-file-field.component.js +2 -2
- package/esm5/lib/groups/services/next-group.service.js +3 -2
- package/esm5/lib/resources/abstract-endpoint/abstract-resource.service.js +3 -2
- package/esm5/lib/resources/engine-endpoint/public/public-task-resource.service.js +1 -1
- package/esm5/lib/search/models/category/case/case-dataset.js +3 -6
- package/esm5/lib/search/models/category/case/case-simple-dataset.js +3 -3
- package/esm5/lib/search/models/category/case/case-title.js +19 -4
- package/esm5/lib/search/models/category/case/case-visual-id.js +19 -4
- package/esm5/lib/search/models/category/category.js +10 -2
- package/esm5/lib/search/models/operator/substring.js +3 -3
- package/esm5/lib/search/search-keyword-resolver-service/search-index-resolver.service.js +17 -2
- package/esm5/lib/search/search-service/search.service.js +3 -2
- package/esm5/lib/side-menu/content-components/new-case/abstract-new-case.component.js +6 -1
- package/esm5/lib/task/services/finish-task.service.js +18 -13
- package/esm5/lib/task/services/task-data.service.js +2 -1
- package/esm5/lib/user/services/user-list.service.js +4 -3
- package/esm5/lib/utility/pagination/load-all-pages.js +4 -3
- package/esm5/lib/utility/pagination/pagination-params.js +19 -0
- package/esm5/lib/utility/pagination/pagination-sort.js +17 -0
- package/esm5/lib/utility/public-api.js +3 -1
- package/esm5/lib/utility/tests/mocks/mock-endpoint.js +4 -3
- package/esm5/lib/view/abstract/sortable-view.js +4 -3
- package/esm5/lib/view/case-view/service/case-view-service.js +6 -4
- package/esm5/lib/view/public-api.js +3 -1
- package/esm5/lib/view/task-view/service/task-view.service.js +6 -4
- package/esm5/lib/view/tree-case-view/tree-component/case-tree.service.js +19 -5
- package/esm5/lib/view/tree-case-view/tree-component/model/tree-case-view-configuration.js +2 -0
- package/esm5/lib/view/tree-case-view/tree-component/model/tree-configuration-injection-token.js +3 -0
- package/esm5/lib/view/workflow-view/workflow-view.service.js +4 -11
- package/fesm2015/netgrif-components-core.js +154 -61
- package/fesm2015/netgrif-components-core.js.map +1 -1
- package/fesm5/netgrif-components-core.js +165 -62
- package/fesm5/netgrif-components-core.js.map +1 -1
- package/lib/search/models/category/case/case-dataset.d.ts +0 -2
- package/lib/search/models/category/case/case-title.d.ts +4 -1
- package/lib/search/models/category/case/case-visual-id.d.ts +4 -1
- package/lib/search/models/category/category.d.ts +7 -0
- package/lib/search/search-keyword-resolver-service/search-index-resolver.service.d.ts +12 -0
- package/lib/side-menu/content-components/new-case/abstract-new-case.component.d.ts +1 -0
- package/lib/task/services/finish-task.service.d.ts +5 -0
- package/lib/utility/pagination/pagination-params.d.ts +17 -0
- package/lib/utility/pagination/pagination-sort.d.ts +13 -0
- package/lib/utility/public-api.d.ts +2 -0
- package/lib/view/public-api.d.ts +2 -0
- package/lib/view/tree-case-view/tree-component/case-tree.service.d.ts +4 -1
- package/lib/view/tree-case-view/tree-component/model/tree-case-view-configuration.d.ts +9 -0
- package/lib/view/tree-case-view/tree-component/model/tree-configuration-injection-token.d.ts +3 -0
- package/lib/view/workflow-view/workflow-view.service.d.ts +0 -1
- package/netgrif-components-core.metadata.json +1 -1
- package/package.json +2 -2
- package/schematics/collection.json +0 -3
|
@@ -10,7 +10,6 @@ import { BehaviorSubject, Observable } from 'rxjs';
|
|
|
10
10
|
import { Category } from '../category';
|
|
11
11
|
import { AutocompleteOptions } from '../autocomplete-options';
|
|
12
12
|
import { ConfigurationInput } from '../../configuration-input';
|
|
13
|
-
import { Type } from '@angular/core';
|
|
14
13
|
import { Categories } from '../categories';
|
|
15
14
|
import { FormControl } from '@angular/forms';
|
|
16
15
|
import { CategoryMetadataConfiguration } from '../../persistance/generator-metadata';
|
|
@@ -83,7 +82,6 @@ export declare class CaseDataset extends Category<Datafield> implements Autocomp
|
|
|
83
82
|
* attribute. Otherwise performs an identity operation.
|
|
84
83
|
*/
|
|
85
84
|
protected transformCategoryValue(value: any): any;
|
|
86
|
-
protected isSelectedOperator(operatorClass: Type<any>): boolean;
|
|
87
85
|
serializeClass(): Categories | string;
|
|
88
86
|
protected serializeOperandValue(valueFormControl: FormControl): unknown;
|
|
89
87
|
protected createMetadataConfiguration(): CategoryMetadataConfiguration;
|
|
@@ -2,10 +2,13 @@ import { OperatorService } from '../../../operator-service/operator.service';
|
|
|
2
2
|
import { LoggerService } from '../../../../logger/services/logger.service';
|
|
3
3
|
import { NoConfigurationCategory } from '../no-configuration-category';
|
|
4
4
|
import { Categories } from '../categories';
|
|
5
|
+
import { OptionalDependencies } from '../../../category-factory/optional-dependencies';
|
|
5
6
|
export declare class CaseTitle extends NoConfigurationCategory<string> {
|
|
7
|
+
protected _optionalDependencies?: OptionalDependencies;
|
|
6
8
|
private static readonly _i18n;
|
|
7
|
-
constructor(operators: OperatorService, logger: LoggerService);
|
|
9
|
+
constructor(operators: OperatorService, logger: LoggerService, _optionalDependencies?: OptionalDependencies);
|
|
8
10
|
get inputPlaceholder(): string;
|
|
9
11
|
duplicate(): CaseTitle;
|
|
10
12
|
serializeClass(): Categories | string;
|
|
13
|
+
protected get elasticKeywords(): Array<string>;
|
|
11
14
|
}
|
|
@@ -2,10 +2,13 @@ import { OperatorService } from '../../../operator-service/operator.service';
|
|
|
2
2
|
import { LoggerService } from '../../../../logger/services/logger.service';
|
|
3
3
|
import { NoConfigurationCategory } from '../no-configuration-category';
|
|
4
4
|
import { Categories } from '../categories';
|
|
5
|
+
import { OptionalDependencies } from '../../../category-factory/optional-dependencies';
|
|
5
6
|
export declare class CaseVisualId extends NoConfigurationCategory<string> {
|
|
7
|
+
protected _optionalDependencies?: OptionalDependencies;
|
|
6
8
|
private static readonly _i18n;
|
|
7
|
-
constructor(operators: OperatorService, logger: LoggerService);
|
|
9
|
+
constructor(operators: OperatorService, logger: LoggerService, _optionalDependencies?: OptionalDependencies);
|
|
8
10
|
get inputPlaceholder(): string;
|
|
9
11
|
duplicate(): CaseVisualId;
|
|
10
12
|
serializeClass(): Categories | string;
|
|
13
|
+
protected get elasticKeywords(): Array<string>;
|
|
11
14
|
}
|
|
@@ -12,6 +12,7 @@ import { CategoryGeneratorMetadata, CategoryMetadataConfiguration } from '../per
|
|
|
12
12
|
import { Categories } from './categories';
|
|
13
13
|
import { OperatorService } from '../../operator-service/operator.service';
|
|
14
14
|
import { FilterTextSegment } from '../persistance/filter-text-segment';
|
|
15
|
+
import { Type } from '@angular/core';
|
|
15
16
|
/**
|
|
16
17
|
* The top level of abstraction in search query generation. Represents a set of indexed fields that can be searched.
|
|
17
18
|
* Encapsulates the the state and logic of the query construction process.
|
|
@@ -360,4 +361,10 @@ export declare abstract class Category<T> {
|
|
|
360
361
|
* @returns filter text segment representing the operand value at the specified index
|
|
361
362
|
*/
|
|
362
363
|
protected createOperandFilterTextSegment(operandIndex: number): FilterTextSegment;
|
|
364
|
+
/**
|
|
365
|
+
* Checks for selected operator
|
|
366
|
+
* @param operatorClass the operator to be checked
|
|
367
|
+
* @return boolean of the statement
|
|
368
|
+
*/
|
|
369
|
+
protected isSelectedOperator(operatorClass: Type<any>): boolean;
|
|
363
370
|
}
|
|
@@ -9,6 +9,7 @@ import { SearchIndex } from '../models/search-index';
|
|
|
9
9
|
* default mapping don't affect your existing code.
|
|
10
10
|
*/
|
|
11
11
|
export declare class SearchIndexResolverService {
|
|
12
|
+
readonly KEYWORD = ".keyword";
|
|
12
13
|
constructor();
|
|
13
14
|
/**
|
|
14
15
|
* Constructs the index name for the specified field.
|
|
@@ -22,4 +23,15 @@ export declare class SearchIndexResolverService {
|
|
|
22
23
|
* @returns the full name of the specified index
|
|
23
24
|
*/
|
|
24
25
|
getIndex(dataFieldIdentifier: string, index: SearchIndex, keyword?: boolean): string;
|
|
26
|
+
/**
|
|
27
|
+
* Constructs the index name for the specified core field.
|
|
28
|
+
*
|
|
29
|
+
* Note that almost all combinations are valid and will not throw an error when used to query the database, but not all combinations are
|
|
30
|
+
* used by the application engine. The {@link SearchIndex} class has some information about which field types map to which indices, but
|
|
31
|
+
* you should consult the backend documentation for more reliable information.
|
|
32
|
+
* @param index the queried index
|
|
33
|
+
* @param keyword whether the keyword of a TEXT index should be queried
|
|
34
|
+
* @returns the full name of the specified index
|
|
35
|
+
*/
|
|
36
|
+
getCoreIndex(index: string, keyword?: boolean): string;
|
|
25
37
|
}
|
|
@@ -73,4 +73,9 @@ export declare class FinishTaskService extends TaskHandlingService {
|
|
|
73
73
|
* @param success whether the finish operation was successful or not
|
|
74
74
|
*/
|
|
75
75
|
protected sendNotification(success: boolean): void;
|
|
76
|
+
/**
|
|
77
|
+
* Checks data size
|
|
78
|
+
* @return boolean whether the task contains data or not
|
|
79
|
+
*/
|
|
80
|
+
private dataIsEmpty;
|
|
76
81
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Constants for pagination configuration of HTTP requests.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum PaginationParams {
|
|
5
|
+
/**
|
|
6
|
+
* Size of page - maximal number of elements per page.
|
|
7
|
+
*/
|
|
8
|
+
PAGE_SIZE = "size",
|
|
9
|
+
/**
|
|
10
|
+
* Requested page index. 0 based.
|
|
11
|
+
*/
|
|
12
|
+
PAGE_NUMBER = "page",
|
|
13
|
+
/**
|
|
14
|
+
* Sort configuration of the requested page. Use the {@link createSortParam} function to generate the value for this attribute.
|
|
15
|
+
*/
|
|
16
|
+
PAGE_SORT = "sort"
|
|
17
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Constants for use with the
|
|
3
|
+
*/
|
|
4
|
+
export declare enum PaginationSort {
|
|
5
|
+
ASCENDING = "asc",
|
|
6
|
+
DESCENDING = "desc"
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Creates the configuration string for use with the [PAGE_SORT]{@link PaginationParams#PAGE_SORT} configuration attribute
|
|
10
|
+
* @param attribute the name of the attribute that should be used for sorting the results
|
|
11
|
+
* @param direction the sorting direction
|
|
12
|
+
*/
|
|
13
|
+
export declare function createSortParam(attribute: string, direction: PaginationSort): string;
|
|
@@ -7,6 +7,8 @@ export * from './call-chain/call-chain.service';
|
|
|
7
7
|
export * from './call-chain/after-action';
|
|
8
8
|
export * from './pagination/page-has-content';
|
|
9
9
|
export * from './pagination/load-all-pages';
|
|
10
|
+
export * from './pagination/pagination-params';
|
|
11
|
+
export * from './pagination/pagination-sort';
|
|
10
12
|
export * from './service/spinner-overlay.service';
|
|
11
13
|
export * from './service/case-list-font-color.service';
|
|
12
14
|
export * from './incrementing-counter';
|
package/lib/view/public-api.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './task-view/models/task-view-configuration';
|
|
|
8
8
|
export * from './tree-case-view/tree-component/model/case-tree-node';
|
|
9
9
|
export * from './tree-case-view/tree-component/model/case-tree-path';
|
|
10
10
|
export * from './tree-case-view/tree-component/model/expansion-tree';
|
|
11
|
+
export * from './tree-case-view/tree-component/model/tree-case-view-configuration';
|
|
11
12
|
export * from './tree-case-view/model/tree-petriflow-identifiers';
|
|
12
13
|
export * from './task-view/models/task-endpoint';
|
|
13
14
|
export * from './case-view/abstract-case-view';
|
|
@@ -21,6 +22,7 @@ export * from './case-view/models/new-case-configuration-injection-token';
|
|
|
21
22
|
export * from './task-view/models/injection-token-task-endpoint';
|
|
22
23
|
export * from './task-view/models/task-view-configuration-injection-token';
|
|
23
24
|
export * from './workflow-view/models/injection-token-workflow-service';
|
|
25
|
+
export * from './tree-case-view/tree-component/model/tree-configuration-injection-token';
|
|
24
26
|
export * from './case-view/service/case-view-service';
|
|
25
27
|
export * from './task-view/service/task-view.service';
|
|
26
28
|
export * from './workflow-view/workflow-view.service';
|
|
@@ -18,6 +18,7 @@ import { CaseGetRequestBody } from '../../../resources/interface/case-get-reques
|
|
|
18
18
|
import { CaseTreePath } from './model/case-tree-path';
|
|
19
19
|
import { ExpansionTree } from './model/expansion-tree';
|
|
20
20
|
import { ResultWithAfterActions } from '../../../utility/result-with-after-actions';
|
|
21
|
+
import { TreeCaseViewConfiguration } from './model/tree-case-view-configuration';
|
|
21
22
|
export declare class CaseTreeService implements OnDestroy {
|
|
22
23
|
protected _caseResourceService: CaseResourceService;
|
|
23
24
|
protected _treeCaseViewService: TreeCaseViewService;
|
|
@@ -27,6 +28,8 @@ export declare class CaseTreeService implements OnDestroy {
|
|
|
27
28
|
protected _sideMenuService: SideMenuService;
|
|
28
29
|
protected _translateService: TranslateService;
|
|
29
30
|
protected _optionSelectorComponent: any;
|
|
31
|
+
protected _treeConfiguration: TreeCaseViewConfiguration;
|
|
32
|
+
static readonly DEFAULT_PAGE_SIZE = 50;
|
|
30
33
|
protected _currentNode: CaseTreeNode;
|
|
31
34
|
private _rootNodesFilter;
|
|
32
35
|
private readonly _treeDataSource;
|
|
@@ -46,7 +49,7 @@ export declare class CaseTreeService implements OnDestroy {
|
|
|
46
49
|
* string id of the case, that is currently being reloaded, `undefined` if no case is currently being reloaded
|
|
47
50
|
*/
|
|
48
51
|
private _reloadedCaseId;
|
|
49
|
-
constructor(_caseResourceService: CaseResourceService, _treeCaseViewService: TreeCaseViewService, _taskResourceService: TaskResourceService, _logger: LoggerService, _processService: ProcessService, _sideMenuService: SideMenuService, _translateService: TranslateService, _optionSelectorComponent: any);
|
|
52
|
+
constructor(_caseResourceService: CaseResourceService, _treeCaseViewService: TreeCaseViewService, _taskResourceService: TaskResourceService, _logger: LoggerService, _processService: ProcessService, _sideMenuService: SideMenuService, _translateService: TranslateService, _optionSelectorComponent: any, _treeConfiguration: TreeCaseViewConfiguration);
|
|
50
53
|
ngOnDestroy(): void;
|
|
51
54
|
set rootFilter(filter: Filter);
|
|
52
55
|
get dataSource(): MatTreeNestedDataSource<CaseTreeNode>;
|
|
@@ -47,6 +47,5 @@ export declare class WorkflowViewService extends SortableView implements OnDestr
|
|
|
47
47
|
protected _deleteWorkflow(workflow: Net): void;
|
|
48
48
|
protected getMetaFieldSortId(): string;
|
|
49
49
|
protected getDefaultSortParam(): string;
|
|
50
|
-
protected addSortParams(params: HttpParams): HttpParams;
|
|
51
50
|
protected addPageParams(params: HttpParams, pagination: Pagination): HttpParams;
|
|
52
51
|
}
|