@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.
Files changed (32) hide show
  1. package/esm2020/assets/i18n/de.json +2 -1
  2. package/esm2020/assets/i18n/en.json +2 -1
  3. package/esm2020/assets/i18n/sk.json +2 -1
  4. package/esm2020/lib/authentication/components/abstract-authentication-overlay.mjs +4 -1
  5. package/esm2020/lib/data-fields/enumeration-field/enumeration-autocomplete-select-field/abstract-enumeration-autocomplete-select-field.component.mjs +49 -7
  6. package/esm2020/lib/data-fields/enumeration-field/enumeration-autocomplete-select-field/enumeration-autocomplete-filter-property.mjs +6 -0
  7. package/esm2020/lib/data-fields/file-field/abstract-file-field.component.mjs +2 -1
  8. package/esm2020/lib/data-fields/i18n-field/i18n-divider-field/abstract-i18n-divider-field.component.mjs +7 -1
  9. package/esm2020/lib/data-fields/i18n-field/models/i18n-field.mjs +5 -5
  10. package/esm2020/lib/data-fields/models/abstract-data-field.mjs +4 -1
  11. package/esm2020/lib/data-fields/multichoice-field/multichoice-autocomplete-field/abstract-multichoice-autocomplete-field-component.component.mjs +32 -2
  12. package/esm2020/lib/data-fields/multichoice-field/multichoice-autocomplete-field/multichoice-autocomplete-filter-property.mjs +6 -0
  13. package/esm2020/lib/data-fields/public-api.mjs +3 -1
  14. package/esm2020/lib/resources/engine-endpoint/public/public-task-resource.service.mjs +3 -3
  15. package/esm2020/lib/side-menu/content-components/new-case/abstract-new-case.component.mjs +13 -2
  16. package/fesm2015/netgrif-components-core.mjs +130 -18
  17. package/fesm2015/netgrif-components-core.mjs.map +1 -1
  18. package/fesm2020/netgrif-components-core.mjs +126 -18
  19. package/fesm2020/netgrif-components-core.mjs.map +1 -1
  20. package/lib/data-fields/enumeration-field/enumeration-autocomplete-select-field/abstract-enumeration-autocomplete-select-field.component.d.ts +13 -5
  21. package/lib/data-fields/enumeration-field/enumeration-autocomplete-select-field/enumeration-autocomplete-filter-property.d.ts +4 -0
  22. package/lib/data-fields/i18n-field/i18n-divider-field/abstract-i18n-divider-field.component.d.ts +1 -0
  23. package/lib/data-fields/models/abstract-data-field.d.ts +2 -1
  24. package/lib/data-fields/multichoice-field/multichoice-autocomplete-field/abstract-multichoice-autocomplete-field-component.component.d.ts +6 -1
  25. package/lib/data-fields/multichoice-field/multichoice-autocomplete-field/multichoice-autocomplete-filter-property.d.ts +4 -0
  26. package/lib/data-fields/public-api.d.ts +2 -0
  27. package/lib/resources/engine-endpoint/public/public-task-resource.service.d.ts +2 -1
  28. package/lib/side-menu/content-components/new-case/abstract-new-case.component.d.ts +2 -0
  29. package/package.json +1 -1
  30. package/src/assets/i18n/de.json +2 -1
  31. package/src/assets/i18n/en.json +3 -1
  32. package/src/assets/i18n/sk.json +2 -1
@@ -1,27 +1,35 @@
1
- import { ElementRef, OnDestroy, OnInit } from '@angular/core';
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: ElementRef;
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
- private _filter;
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,4 @@
1
+ export declare enum EnumerationAutocompleteFilterProperty {
2
+ PREFIX = "prefix",
3
+ SUBSTRING = "substring"
4
+ }
@@ -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
- private _filter;
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
  }
@@ -0,0 +1,4 @@
1
+ export declare enum MultichoiceAutocompleteFilterProperty {
2
+ PREFIX = "prefix",
3
+ SUBSTRING = "substring"
4
+ }
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netgrif/components-core",
3
- "version": "6.2.2",
3
+ "version": "6.2.4",
4
4
  "description": "Netgrif Application engine frontend core Angular library",
5
5
  "homepage": "https://components.netgrif.com",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -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",
@@ -387,7 +387,9 @@
387
387
  },
388
388
  "ldapGroup-list": {
389
389
  "noLdapGroupsWereFound": "No LDAP group was found",
390
- "listTitle": "Ldap Groups"
390
+ "listTitle": "LDAP groups",
391
+ "count": "Number of groups"
392
+
391
393
  },
392
394
  "process-list": {
393
395
  "newestVersion": "Newest version",
@@ -387,7 +387,8 @@
387
387
  },
388
388
  "ldapGroup-list": {
389
389
  "noLdapGroupsWereFound": "Žiadna LDAP skupina nebola najdená",
390
- "listTitle": "Ldap Skupiny"
390
+ "listTitle": "LDAP Skupiny",
391
+ "count": "Počet skupín"
391
392
  },
392
393
  "process-list": {
393
394
  "newestVersion": "Najnovšia verzia",