@sumaris-net/ngx-components 0.27.21 → 0.28.1

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sumaris-net/ngx-components",
3
3
  "description": "SUMARiS Angular components",
4
- "version": "0.27.21",
4
+ "version": "0.28.1",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -89,6 +89,20 @@ export declare function capitalizeFirstLetter(value: string): string;
89
89
  export declare function uncapitalizeFirstLetter(value: string): string;
90
90
  export declare function splitByProperty<T, M extends KeyValueType<T> = KeyValueType<T>>(array: T[] | readonly T[], propertyName: string): M;
91
91
  export declare function splitById<T, M extends KeyValueType<T> = KeyValueType<T>>(array: T[] | readonly T[]): M;
92
+ /**
93
+ * Determines if two objects or two values are equivalent.
94
+ *
95
+ * Two objects or values are considered equivalent if at least one of the following is true:
96
+ *
97
+ * * Both objects or values pass `===` comparison.
98
+ * * Both objects or values are of the same type and all of their properties are equal by
99
+ * comparing them with `equals`.
100
+ *
101
+ * @param o1 Object or value to compare.
102
+ * @param o2 Object or value to compare.
103
+ * @returns true if arguments are equal.
104
+ */
105
+ export declare function equals(o1: any, o2: any): boolean;
92
106
  export declare class Beans {
93
107
  /**
94
108
  * Copy a source object, by including only properties of the given dataType.
@@ -1,9 +1,14 @@
1
- import { PipeTransform } from '@angular/core';
1
+ import { ChangeDetectorRef, PipeTransform } from '@angular/core';
2
2
  import { TranslateContextService } from '../services/translate-context.service';
3
3
  export declare class TranslateContextPipe implements PipeTransform {
4
- protected translateContext: TranslateContextService;
5
- constructor(translateContext: TranslateContextService);
6
- transform(key: string, context?: string): string;
4
+ private translate;
5
+ private _ref;
6
+ value: string;
7
+ lastKey: string | null;
8
+ lastSuffix: string | null;
9
+ lastParams: any[];
10
+ constructor(translate: TranslateContextService, _ref: ChangeDetectorRef);
11
+ transform(query: string, ...params: any[]): string;
7
12
  }
8
13
  export declare class TranslatablePipe implements PipeTransform {
9
14
  transform(value: string): string;