@netgrif/components-core 6.2.2 → 6.2.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/esm2020/assets/i18n/de.json +2 -1
- package/esm2020/assets/i18n/en.json +2 -1
- package/esm2020/assets/i18n/sk.json +2 -1
- package/esm2020/lib/authentication/components/abstract-authentication-overlay.mjs +4 -1
- 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/file-field/abstract-file-field.component.mjs +2 -1
- package/esm2020/lib/data-fields/i18n-field/i18n-divider-field/abstract-i18n-divider-field.component.mjs +7 -1
- package/esm2020/lib/data-fields/i18n-field/models/i18n-field.mjs +5 -5
- 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 +32 -2
- 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 +3 -1
- package/esm2020/lib/resources/engine-endpoint/public/public-task-resource.service.mjs +3 -3
- package/esm2020/lib/side-menu/content-components/new-case/abstract-new-case.component.mjs +13 -2
- package/fesm2015/netgrif-components-core.mjs +130 -18
- package/fesm2015/netgrif-components-core.mjs.map +1 -1
- package/fesm2020/netgrif-components-core.mjs +126 -18
- 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/i18n-field/i18n-divider-field/abstract-i18n-divider-field.component.d.ts +1 -0
- package/lib/data-fields/models/abstract-data-field.d.ts +2 -1
- package/lib/data-fields/multichoice-field/multichoice-autocomplete-field/abstract-multichoice-autocomplete-field-component.component.d.ts +6 -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 +2 -0
- package/lib/resources/engine-endpoint/public/public-task-resource.service.d.ts +2 -1
- package/lib/side-menu/content-components/new-case/abstract-new-case.component.d.ts +2 -0
- package/package.json +1 -1
- package/src/assets/i18n/de.json +2 -1
- package/src/assets/i18n/en.json +3 -1
- package/src/assets/i18n/sk.json +2 -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>;
|
package/lib/data-fields/i18n-field/i18n-divider-field/abstract-i18n-divider-field.component.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export declare abstract class AbstractI18nDividerFieldComponent {
|
|
|
7
7
|
formControlRef: FormControl;
|
|
8
8
|
showLargeLayout: WrappedBoolean;
|
|
9
9
|
getDividerColor(): string;
|
|
10
|
+
isDividerLGBTQ(): boolean;
|
|
10
11
|
getDividerFontSize(): string;
|
|
11
12
|
dividerPropertyEnabled(property: string): boolean;
|
|
12
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractI18nDividerFieldComponent, never>;
|
|
@@ -137,7 +137,7 @@ export declare abstract class DataField<T> {
|
|
|
137
137
|
set title(title: string);
|
|
138
138
|
get title(): string;
|
|
139
139
|
set placeholder(placeholder: string);
|
|
140
|
-
get placeholder(): string;
|
|
140
|
+
get placeholder(): string | undefined;
|
|
141
141
|
set description(desc: string);
|
|
142
142
|
get description(): string;
|
|
143
143
|
set behavior(behavior: Behavior);
|
|
@@ -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,8 +17,13 @@ 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;
|
|
26
|
+
getValueFromKey(key: string): string | undefined;
|
|
22
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractMultichoiceAutocompleteFieldComponentComponent, never>;
|
|
23
28
|
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractMultichoiceAutocompleteFieldComponentComponent, "ncc-abstract-multichoice-autocomplete-field", never, { "multichoiceField": "multichoiceField"; "formControlRef": "formControlRef"; "showLargeLayout": "showLargeLayout"; }, {}, never, never>;
|
|
24
29
|
}
|
|
@@ -70,4 +70,6 @@ export * from './models/invalid-data-policy-token';
|
|
|
70
70
|
export * from './filter-field/models/filter-field-injection-token';
|
|
71
71
|
export * from './models/template-appearance';
|
|
72
72
|
export * from './models/material-appearance';
|
|
73
|
+
export * from './enumeration-field/enumeration-autocomplete-select-field/enumeration-autocomplete-filter-property';
|
|
74
|
+
export * from './multichoice-field/multichoice-autocomplete-field/multichoice-autocomplete-filter-property';
|
|
73
75
|
export * from './i18n-field/language-icons.service';
|
|
@@ -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
|
|
@@ -10,6 +10,7 @@ import { TranslateService } from '@ngx-translate/core';
|
|
|
10
10
|
import { HotkeysService } from 'angular2-hotkeys';
|
|
11
11
|
import { MatToolbar } from '@angular/material/toolbar';
|
|
12
12
|
import { MatOption } from '@angular/material/core';
|
|
13
|
+
import { LoadingEmitter } from '../../../utility/loading-emitter';
|
|
13
14
|
import * as i0 from "@angular/core";
|
|
14
15
|
interface Form {
|
|
15
16
|
value: string;
|
|
@@ -32,6 +33,7 @@ export declare abstract class AbstractNewCaseComponent implements OnDestroy {
|
|
|
32
33
|
toolbar: MatToolbar;
|
|
33
34
|
stepper1: any;
|
|
34
35
|
stepper2: any;
|
|
36
|
+
loadingSubmit: LoadingEmitter;
|
|
35
37
|
protected _options$: ReplaySubject<Array<Form>>;
|
|
36
38
|
protected _injectedData: NewCaseInjectionData;
|
|
37
39
|
protected _hasMultipleNets$: ReplaySubject<boolean>;
|
package/package.json
CHANGED
package/src/assets/i18n/de.json
CHANGED
|
@@ -387,7 +387,8 @@
|
|
|
387
387
|
},
|
|
388
388
|
"ldapGroup-list": {
|
|
389
389
|
"noLdapGroupsWereFound": "Keine LDAP Gruppe wurde gefunden",
|
|
390
|
-
"listTitle": "LDAP Gruppen"
|
|
390
|
+
"listTitle": "LDAP Gruppen",
|
|
391
|
+
"count": "Anzahl der Gruppen"
|
|
391
392
|
},
|
|
392
393
|
"process-list": {
|
|
393
394
|
"newestVersion": "Neuste Version",
|
package/src/assets/i18n/en.json
CHANGED
|
@@ -387,7 +387,9 @@
|
|
|
387
387
|
},
|
|
388
388
|
"ldapGroup-list": {
|
|
389
389
|
"noLdapGroupsWereFound": "No LDAP group was found",
|
|
390
|
-
"listTitle": "
|
|
390
|
+
"listTitle": "LDAP groups",
|
|
391
|
+
"count": "Number of groups"
|
|
392
|
+
|
|
391
393
|
},
|
|
392
394
|
"process-list": {
|
|
393
395
|
"newestVersion": "Newest version",
|
package/src/assets/i18n/sk.json
CHANGED
|
@@ -387,7 +387,8 @@
|
|
|
387
387
|
},
|
|
388
388
|
"ldapGroup-list": {
|
|
389
389
|
"noLdapGroupsWereFound": "Žiadna LDAP skupina nebola najdená",
|
|
390
|
-
"listTitle": "
|
|
390
|
+
"listTitle": "LDAP Skupiny",
|
|
391
|
+
"count": "Počet skupín"
|
|
391
392
|
},
|
|
392
393
|
"process-list": {
|
|
393
394
|
"newestVersion": "Najnovšia verzia",
|