@netgrif/components-core 6.3.0-beta.1 → 6.3.0-beta.3
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/data-fields/enumeration-field/enumeration-autocomplete-select-field/abstract-enumeration-autocomplete-select-field.component.mjs +49 -7
- package/esm2020/lib/data-fields/enumeration-field/enumeration-autocomplete-select-field/enumeration-autocomplete-filter-property.mjs +6 -0
- 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/models/abstract-data-field.mjs +4 -1
- package/esm2020/lib/data-fields/multichoice-field/multichoice-autocomplete-field/abstract-multichoice-autocomplete-field-component.component.mjs +28 -1
- package/esm2020/lib/data-fields/multichoice-field/multichoice-autocomplete-field/multichoice-autocomplete-filter-property.mjs +6 -0
- package/esm2020/lib/data-fields/public-api.mjs +6 -1
- package/esm2020/lib/data-fields/text-field/dashboard-portal-text-field/dashboard-portal-component-registry.service.mjs +11 -1
- package/esm2020/lib/data-fields/text-field/dashboard-portal-text-field/dashboard-view-constants.mjs +10 -0
- package/esm2020/lib/public/factories/get-net-and-create-case.mjs +2 -2
- package/esm2020/lib/resources/engine-endpoint/public/public-petri-net-resource.service.mjs +2 -2
- package/esm2020/lib/resources/engine-endpoint/public/public-task-resource.service.mjs +3 -3
- package/esm2020/lib/utility/public-api.mjs +2 -1
- package/esm2020/lib/utility/tests/mocks/mock-user.service.mjs +38 -0
- package/fesm2015/netgrif-components-core.mjs +309 -68
- package/fesm2015/netgrif-components-core.mjs.map +1 -1
- package/fesm2020/netgrif-components-core.mjs +301 -66
- package/fesm2020/netgrif-components-core.mjs.map +1 -1
- package/lib/data-fields/enumeration-field/enumeration-autocomplete-select-field/abstract-enumeration-autocomplete-select-field.component.d.ts +13 -5
- package/lib/data-fields/enumeration-field/enumeration-autocomplete-select-field/enumeration-autocomplete-filter-property.d.ts +4 -0
- 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/models/abstract-data-field.d.ts +1 -0
- package/lib/data-fields/multichoice-field/multichoice-autocomplete-field/abstract-multichoice-autocomplete-field-component.component.d.ts +5 -1
- package/lib/data-fields/multichoice-field/multichoice-autocomplete-field/multichoice-autocomplete-filter-property.d.ts +4 -0
- package/lib/data-fields/public-api.d.ts +5 -0
- package/lib/data-fields/text-field/dashboard-portal-text-field/dashboard-portal-component-registry.service.d.ts +4 -1
- package/lib/data-fields/text-field/dashboard-portal-text-field/dashboard-view-constants.d.ts +8 -0
- package/lib/resources/engine-endpoint/public/public-task-resource.service.d.ts +2 -1
- package/lib/utility/public-api.d.ts +1 -0
- package/lib/utility/tests/mocks/mock-user.service.d.ts +16 -0
- package/package.json +1 -1
|
@@ -1,27 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FormControl } from '@angular/forms';
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { FormControl, NgModel } from '@angular/forms';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { EnumerationField, EnumerationFieldValue } from '../models/enumeration-field';
|
|
5
5
|
import { WrappedBoolean } from '../../data-field-template/models/wrapped-boolean';
|
|
6
6
|
import { TranslateService } from '@ngx-translate/core';
|
|
7
|
+
import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare abstract class AbstractEnumerationAutocompleteSelectFieldComponent implements OnInit, OnDestroy {
|
|
9
10
|
protected _translate: TranslateService;
|
|
10
11
|
enumerationField: EnumerationField;
|
|
11
12
|
formControlRef: FormControl;
|
|
12
13
|
showLargeLayout: WrappedBoolean;
|
|
13
|
-
text:
|
|
14
|
+
text: NgModel;
|
|
15
|
+
tmpValue: string;
|
|
14
16
|
filteredOptions: Observable<Array<EnumerationFieldValue>>;
|
|
15
17
|
constructor(_translate: TranslateService);
|
|
16
18
|
ngOnInit(): void;
|
|
17
19
|
ngOnDestroy(): void;
|
|
20
|
+
change(): void;
|
|
21
|
+
select(event: MatAutocompleteSelectedEvent): void;
|
|
22
|
+
isInvalid(): boolean;
|
|
23
|
+
protected checkPropertyInComponent(property: string): boolean;
|
|
24
|
+
protected filterType(): string | undefined;
|
|
25
|
+
protected _filter(value: string): Array<EnumerationFieldValue>;
|
|
26
|
+
protected _filterInclude(value: string): Array<EnumerationFieldValue>;
|
|
18
27
|
/**
|
|
19
28
|
* Function to filter out matchless options without accent and case-sensitive differences
|
|
20
29
|
* @param value to compare matching options
|
|
21
30
|
* @return return matched options
|
|
22
31
|
*/
|
|
23
|
-
|
|
24
|
-
change(): void;
|
|
32
|
+
protected _filterIndexOf(value: string): Array<EnumerationFieldValue>;
|
|
25
33
|
renderSelection: (key: any) => any;
|
|
26
34
|
buildErrorMessage(): any;
|
|
27
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractEnumerationAutocompleteSelectFieldComponent, never>;
|
|
@@ -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>;
|
|
@@ -161,6 +161,7 @@ export declare abstract class DataField<T> {
|
|
|
161
161
|
get changed(): boolean;
|
|
162
162
|
set block(set: boolean);
|
|
163
163
|
set touch(set: boolean);
|
|
164
|
+
get touch$(): Observable<boolean>;
|
|
164
165
|
get component(): Component;
|
|
165
166
|
revertToPreviousValue(): void;
|
|
166
167
|
set validRequired(set: boolean);
|
|
@@ -17,7 +17,11 @@ export declare abstract class AbstractMultichoiceAutocompleteFieldComponentCompo
|
|
|
17
17
|
add(event: MatChipInputEvent): void;
|
|
18
18
|
remove(value: string): void;
|
|
19
19
|
change(): void;
|
|
20
|
-
|
|
20
|
+
protected checkPropertyInComponent(property: string): boolean;
|
|
21
|
+
protected filterType(): string | undefined;
|
|
22
|
+
protected _filter(value: string): Array<MultichoiceFieldValue>;
|
|
23
|
+
protected _filterInclude(value: string): Array<MultichoiceFieldValue>;
|
|
24
|
+
protected _filterIndexOf(value: string): Array<MultichoiceFieldValue>;
|
|
21
25
|
renderSelection: (key: any) => any;
|
|
22
26
|
getValueFromKey(key: string): string | undefined;
|
|
23
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractMultichoiceAutocompleteFieldComponentComponent, never>;
|
|
@@ -38,6 +38,8 @@ export * from './enumeration-field/enumeration-icon-field/abstract-enumeration-i
|
|
|
38
38
|
export * from './enumeration-field/enumeration-autocomplete-dynamic-field/abstract-enumeration-autocomplete-dynamic-field.component';
|
|
39
39
|
export * from './filter-field/abstract-filter-field.component';
|
|
40
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';
|
|
41
43
|
export * from './i18n-field/abstract-i18n-field.component';
|
|
42
44
|
export * from './i18n-field/i18n-text-field/abstract-i18n-text-field.component';
|
|
43
45
|
export * from './i18n-field/i18n-divider-field/abstract-i18n-divider-field.component';
|
|
@@ -79,8 +81,11 @@ export * from './models/invalid-data-policy-token';
|
|
|
79
81
|
export * from './filter-field/models/filter-field-injection-token';
|
|
80
82
|
export * from './models/template-appearance';
|
|
81
83
|
export * from './models/material-appearance';
|
|
84
|
+
export * from './enumeration-field/enumeration-autocomplete-select-field/enumeration-autocomplete-filter-property';
|
|
85
|
+
export * from './multichoice-field/multichoice-autocomplete-field/multichoice-autocomplete-filter-property';
|
|
82
86
|
export * from './task-ref-field/model/task-ref-components';
|
|
83
87
|
export * from './task-ref-field/model/task-ref-dashboard-constants';
|
|
84
88
|
export * from './task-ref-field/model/task-ref-dashboard-tile-constants';
|
|
89
|
+
export * from './text-field/dashboard-portal-text-field/dashboard-view-constants';
|
|
85
90
|
export * from './i18n-field/language-icons.service';
|
|
86
91
|
export * from './text-field/dashboard-portal-text-field/dashboard-portal-component-registry.service';
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { Injector } from '@angular/core';
|
|
1
|
+
import { Injector, Type } from '@angular/core';
|
|
2
2
|
import { ComponentPortal } from '@angular/cdk/portal';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class DashboardPortalComponentRegistryService {
|
|
5
5
|
private registry;
|
|
6
|
+
private typeRegistry;
|
|
6
7
|
constructor();
|
|
7
8
|
register(component: string, factory: (injector: Injector) => ComponentPortal<any>): void;
|
|
9
|
+
registerType(key: string, type: Type<any>): void;
|
|
8
10
|
get(component: string, injector?: Injector): ComponentPortal<any>;
|
|
11
|
+
getType(key: string): Type<any>;
|
|
9
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<DashboardPortalComponentRegistryService, never>;
|
|
10
13
|
static ɵprov: i0.ɵɵInjectableDeclaration<DashboardPortalComponentRegistryService>;
|
|
11
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
|
+
}
|
|
@@ -9,6 +9,7 @@ import { Page } from '../../interface/page';
|
|
|
9
9
|
import { TaskSetDataRequestBody } from '../../interface/task-set-data-request-body';
|
|
10
10
|
import { TaskReference } from '../../interface/task-reference';
|
|
11
11
|
import { Task } from '../../interface/task';
|
|
12
|
+
import { HttpParams } from '@angular/common/http';
|
|
12
13
|
import { EventOutcomeMessageResource, MessageResource } from '../../interface/message-resource';
|
|
13
14
|
import * as i0 from "@angular/core";
|
|
14
15
|
export declare class PublicTaskResourceService extends TaskResourceService {
|
|
@@ -75,7 +76,7 @@ export declare class PublicTaskResourceService extends TaskResourceService {
|
|
|
75
76
|
* Delete file from the task
|
|
76
77
|
* DELETE
|
|
77
78
|
*/
|
|
78
|
-
deleteFile(taskId: string, fieldId: string, name?: string): Observable<MessageResource>;
|
|
79
|
+
deleteFile(taskId: string, fieldId: string, name?: string, param?: HttpParams): Observable<MessageResource>;
|
|
79
80
|
/**
|
|
80
81
|
* Download task file preview for field value
|
|
81
82
|
* GET
|
|
@@ -23,6 +23,7 @@ export * from './navigation-item-task-search-categories-factory';
|
|
|
23
23
|
export * from './tests/mocks/mock-authentication.service';
|
|
24
24
|
export * from './tests/mocks/mock-user-preference.service';
|
|
25
25
|
export * from './tests/mocks/mock-user-resource.service';
|
|
26
|
+
export * from './tests/mocks/mock-user.service';
|
|
26
27
|
export * from './tests/mocks/mock-authentication-method-service';
|
|
27
28
|
export * from './tests/mocks/mock-sign-up.service';
|
|
28
29
|
export * from './tests/mocks/mock-user-autocomplete-value';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Observable, ReplaySubject } from 'rxjs';
|
|
2
|
+
import { User } from '../../../user/models/user';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MockUserService {
|
|
5
|
+
protected _userChange$: ReplaySubject<User>;
|
|
6
|
+
protected _user: User;
|
|
7
|
+
constructor();
|
|
8
|
+
get user$(): Observable<User>;
|
|
9
|
+
get user(): User;
|
|
10
|
+
set user(user: User);
|
|
11
|
+
hasRoleById(roleStringId: string): boolean;
|
|
12
|
+
hasRoleByName(roleName: string, netIdentifier: string): boolean;
|
|
13
|
+
hasAuthority(): boolean;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MockUserService, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MockUserService>;
|
|
16
|
+
}
|
package/package.json
CHANGED