@sumaris-net/ngx-components 1.20.28 → 1.20.29
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/sumaris-net.ngx-components.umd.js +105 -104
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +2 -2
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/doc/changelog.md +3 -0
- package/esm2015/public_api.js +3 -1
- package/esm2015/src/app/core/form/form-buttons-bar.component.js +2 -2
- package/esm2015/src/app/shared/functions.js +1 -60
- package/esm2015/src/app/shared/material/autocomplete/material.autocomplete.js +3 -2
- package/esm2015/src/app/shared/material/autocomplete/testing/autocomplete.test.js +3 -2
- package/esm2015/src/app/shared/material/chips/material.chips.js +3 -2
- package/esm2015/src/app/shared/material/chips/testing/chips.test.js +3 -2
- package/esm2015/src/app/shared/pipes/arrays.pipe.js +1 -1
- package/esm2015/src/app/shared/pipes/form.pipes.js +2 -4
- package/esm2015/src/app/shared/pipes/highlight.pipe.js +4 -4
- package/esm2015/src/app/shared/pipes/string.pipes.js +7 -18
- package/esm2015/src/app/shared/services/memory-entity-service.class.js +12 -1
- package/esm2015/src/app/shared/services.js +61 -0
- package/fesm2015/sumaris-net.ngx-components.js +80 -80
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +2 -0
- package/src/app/shared/functions.d.ts +0 -9
- package/src/app/shared/pipes/form.pipes.d.ts +1 -2
- package/src/app/shared/services/memory-entity-service.class.d.ts +7 -0
- package/src/app/shared/services.d.ts +9 -0
- package/sumaris-net.ngx-components.metadata.json +1 -1
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -82,6 +82,7 @@ export * from './src/app/shared/validator/form-error-adapter.class';
|
|
|
82
82
|
export * from './src/app/shared/types';
|
|
83
83
|
export * from './src/app/shared/dates';
|
|
84
84
|
export * from './src/app/shared/functions';
|
|
85
|
+
export * from './src/app/shared/services';
|
|
85
86
|
export * from './src/app/shared/forms';
|
|
86
87
|
export * from './src/app/shared/observables';
|
|
87
88
|
export * from './src/app/shared/events';
|
|
@@ -196,3 +197,4 @@ export * from './src/app/core/table/testing/table.testing.module';
|
|
|
196
197
|
export * from './src/app/core/table/testing/table.testing';
|
|
197
198
|
export * from './src/app/core/text-popover/testing/text-popover.testing.module';
|
|
198
199
|
export * from './src/app/core/text-popover/testing/text-popover.testing';
|
|
200
|
+
export { suggestFromArray } from "./src/app/shared/services";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { LoadResult } from './services/entity-service.class';
|
|
2
1
|
import { KeysEnum, KeyValueType } from './types';
|
|
3
2
|
export declare function isNil<T>(obj: T | null | undefined): boolean;
|
|
4
3
|
export declare function isNilOrBlank<T>(obj: T | null | undefined): boolean;
|
|
@@ -46,14 +45,6 @@ export declare function removeEnd(value: string, end: string): string;
|
|
|
46
45
|
*/
|
|
47
46
|
export declare function changeCaseToUnderscore(value: string): string;
|
|
48
47
|
export declare function removeDiacritics(text: string): string;
|
|
49
|
-
export declare function suggestFromArray<T = any>(items: T[], value: any, opts?: {
|
|
50
|
-
offset?: number;
|
|
51
|
-
size?: number;
|
|
52
|
-
searchAttribute?: string;
|
|
53
|
-
searchAttributes?: string[];
|
|
54
|
-
excludedIds?: number[];
|
|
55
|
-
skipSort?: boolean;
|
|
56
|
-
}): LoadResult<T>;
|
|
57
48
|
export declare function suggestFromStringArray(values: string[], value: any, options?: {
|
|
58
49
|
searchAttribute?: string;
|
|
59
50
|
searchAttributes?: string[];
|
|
@@ -30,14 +30,13 @@ export declare class FormGetGroupPipe implements PipeTransform {
|
|
|
30
30
|
transform(form: AbstractControl, path?: Array<string | number> | string): FormGroup;
|
|
31
31
|
}
|
|
32
32
|
export declare class FormGetValuePipe implements PipeTransform, OnDestroy {
|
|
33
|
-
private adapter;
|
|
34
33
|
private _ref;
|
|
35
34
|
value: any;
|
|
36
35
|
private _lastControl;
|
|
37
36
|
private _lastPath;
|
|
38
37
|
private _onControlValueChanges;
|
|
39
38
|
private _onControlStatusChanges;
|
|
40
|
-
constructor(
|
|
39
|
+
constructor(_ref: ChangeDetectorRef);
|
|
41
40
|
transform(form: AbstractControl, path?: Array<string | number> | string, listenStatusChanges?: boolean): any;
|
|
42
41
|
ngOnDestroy(): void;
|
|
43
42
|
/**
|
|
@@ -43,6 +43,13 @@ export declare class InMemoryEntitiesService<T extends IEntity<T, ID>, F = any,
|
|
|
43
43
|
asFilter(source: Partial<F>): F;
|
|
44
44
|
addSortByReplacement(source: string, target: string): void;
|
|
45
45
|
equals(d1: T, d2: T): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Count data inside the service.
|
|
48
|
+
* @param opts
|
|
49
|
+
*/
|
|
50
|
+
count(opts?: {
|
|
51
|
+
withHidden: boolean;
|
|
52
|
+
}): number;
|
|
46
53
|
protected filter(data: T[], _filter: F, hiddenData: T[]): T[];
|
|
47
54
|
protected connect(): Observable<LoadResult<T>>;
|
|
48
55
|
protected markAsSaving(): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LoadResult } from './services/entity-service.class';
|
|
2
|
+
export declare function suggestFromArray<T = any>(items: T[], value: any, opts?: {
|
|
3
|
+
offset?: number;
|
|
4
|
+
size?: number;
|
|
5
|
+
searchAttribute?: string;
|
|
6
|
+
searchAttributes?: string[];
|
|
7
|
+
excludedIds?: number[];
|
|
8
|
+
skipSort?: boolean;
|
|
9
|
+
}): LoadResult<T>;
|