@sumaris-net/ngx-components 1.20.27 → 1.20.30

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 (28) hide show
  1. package/bundles/sumaris-net.ngx-components.umd.js +116 -107
  2. package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
  3. package/bundles/sumaris-net.ngx-components.umd.min.js +2 -2
  4. package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
  5. package/doc/changelog.md +3 -0
  6. package/esm2015/public_api.js +3 -1
  7. package/esm2015/src/app/core/form/form-buttons-bar.component.js +2 -2
  8. package/esm2015/src/app/shared/functions.js +1 -60
  9. package/esm2015/src/app/shared/material/autocomplete/material.autocomplete.js +4 -3
  10. package/esm2015/src/app/shared/material/autocomplete/testing/autocomplete.test.js +3 -2
  11. package/esm2015/src/app/shared/material/chips/material.chips.js +3 -2
  12. package/esm2015/src/app/shared/material/chips/testing/chips.test.js +3 -2
  13. package/esm2015/src/app/shared/material/datetime/material.datetime.js +3 -3
  14. package/esm2015/src/app/shared/pipes/arrays.pipe.js +1 -1
  15. package/esm2015/src/app/shared/pipes/form.pipes.js +2 -4
  16. package/esm2015/src/app/shared/pipes/highlight.pipe.js +4 -4
  17. package/esm2015/src/app/shared/pipes/string.pipes.js +7 -18
  18. package/esm2015/src/app/shared/services/memory-entity-service.class.js +13 -1
  19. package/esm2015/src/app/shared/services.js +61 -0
  20. package/fesm2015/sumaris-net.ngx-components.js +84 -83
  21. package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
  22. package/package.json +1 -1
  23. package/public_api.d.ts +2 -0
  24. package/src/app/shared/functions.d.ts +0 -9
  25. package/src/app/shared/pipes/form.pipes.d.ts +1 -2
  26. package/src/app/shared/services/memory-entity-service.class.d.ts +6 -0
  27. package/src/app/shared/services.d.ts +9 -0
  28. package/sumaris-net.ngx-components.metadata.json +1 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sumaris-net/ngx-components",
3
3
  "description": "SUMARiS Angular components",
4
- "version": "1.20.27",
4
+ "version": "1.20.30",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
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(adapter: FormErrorTranslator, _ref: ChangeDetectorRef);
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,12 @@ 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 stored by the service (without hidden data).
48
+ * @param opts
49
+ */
50
+ get count(): number;
51
+ get hiddenCount(): number;
46
52
  protected filter(data: T[], _filter: F, hiddenData: T[]): T[];
47
53
  protected connect(): Observable<LoadResult<T>>;
48
54
  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>;