@sumaris-net/ngx-components 18.8.23 → 18.8.24
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/doc/changelog.md +5 -0
- package/esm2022/src/app/core/form/entity/entity-editor.class.mjs +4 -2
- package/esm2022/src/app/core/services/local-settings.service.mjs +4 -1
- package/esm2022/src/app/core/services/model/entity.model.mjs +6 -6
- package/esm2022/src/app/core/table/async-table.class.mjs +24 -11
- package/esm2022/src/app/core/table/table.class.mjs +24 -11
- package/esm2022/src/app/core/table/testing/table.testing.mjs +3 -3
- package/esm2022/src/app/shared/file/csv.utils.mjs +12 -7
- package/fesm2022/sumaris-net.ngx-components.mjs +69 -33
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/services/local-settings.service.d.ts +1 -0
- package/src/app/core/services/model/entity.model.d.ts +2 -2
- package/src/app/core/table/async-table.class.d.ts +2 -1
- package/src/app/core/table/table.class.d.ts +2 -1
- package/src/app/shared/file/csv.utils.d.ts +6 -0
- package/src/app/shared/inputs.d.ts +1 -1
- package/src/assets/manifest.json +1 -1
package/package.json
CHANGED
|
@@ -38,6 +38,7 @@ export declare class LocalSettingsService extends StartableService<LocalSettings
|
|
|
38
38
|
get locale(): string;
|
|
39
39
|
get latLongFormat(): LatLongPattern;
|
|
40
40
|
get usageMode(): UsageMode;
|
|
41
|
+
set usageMode(value: UsageMode);
|
|
41
42
|
get mobile(): boolean;
|
|
42
43
|
set mobile(value: boolean);
|
|
43
44
|
get pageHistory(): HistoryPageReference[];
|
|
@@ -56,8 +56,8 @@ export declare abstract class EntityUtils {
|
|
|
56
56
|
static getPropertyArrayAsObject: typeof AppPropertiesUtils.arrayAsObject;
|
|
57
57
|
static copyIdAndUpdateDate<T extends Entity<any, any, any>>(source: T, target: T): void;
|
|
58
58
|
static fillLocalIds<T extends IEntity<T, any>>(items: T[], sequenceFactory: (firstEntity: T, incrementSize: number) => Promise<number>): Promise<void>;
|
|
59
|
-
static cleanIdAndUpdateDate<T extends IEntity<T, any>>(source: T): void;
|
|
60
|
-
static cleanIdsAndUpdateDates<T extends IEntity<T, any>>(items: T[]): void;
|
|
59
|
+
static cleanIdAndUpdateDate<T extends IEntity<T, any>>(source: T, defaultValue?: any): void;
|
|
60
|
+
static cleanIdsAndUpdateDates<T extends IEntity<T, any>>(items: T[], defaultValue?: any): void;
|
|
61
61
|
static sort<T extends IEntity<T, any> | any>(data: T[], sortBy?: keyof T | string, sortDirection?: SortDirection): T[];
|
|
62
62
|
static sortComparator<T extends IEntity<T, any> | any>(sortBy?: keyof T | string, sortDirection?: SortDirection): (a: T, b: T) => number;
|
|
63
63
|
static compare<T extends IEntity<T, any>>(value1: T, value2: T, direction: 1 | -1, checkAttribute?: keyof T): number;
|
|
@@ -235,7 +235,8 @@ export declare abstract class AppAsyncTable<T extends IEntity<T, ID>, F = any, I
|
|
|
235
235
|
interactive?: boolean;
|
|
236
236
|
}): Promise<void>;
|
|
237
237
|
duplicateRow(event?: Event, row?: AsyncTableElement<T>, opts?: {
|
|
238
|
-
|
|
238
|
+
includedProperties?: string[];
|
|
239
|
+
excludedProperties?: string[];
|
|
239
240
|
}): Promise<boolean>;
|
|
240
241
|
/** Whether the number of selected elements matches the total number of rows. */
|
|
241
242
|
isAllSelected(): boolean;
|
|
@@ -240,7 +240,8 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
|
|
|
240
240
|
interactive?: boolean;
|
|
241
241
|
}): void;
|
|
242
242
|
duplicateRow(event?: Event, row?: TableElement<T>, opts?: {
|
|
243
|
-
|
|
243
|
+
includedProperties?: string[];
|
|
244
|
+
excludedProperties?: string[];
|
|
244
245
|
}): Promise<boolean>;
|
|
245
246
|
/** Whether the number of selected elements matches the total number of rows. */
|
|
246
247
|
isAllSelected(): boolean;
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { FileEvent } from '../upload-file/upload-file.model';
|
|
3
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
+
import { DisplayFn } from '../form/field.model';
|
|
4
5
|
export declare class CsvUtils {
|
|
5
6
|
static DEFAULT_SEPARATOR: string;
|
|
6
7
|
static DEFAULT_ENCODING: string;
|
|
7
8
|
static exportToFile(rows: object[], opts?: {
|
|
8
9
|
filename?: string;
|
|
9
10
|
headers?: string[];
|
|
11
|
+
includedProperties?: string[];
|
|
12
|
+
excludedProperties?: string[];
|
|
13
|
+
formatters?: {
|
|
14
|
+
[key: string]: DisplayFn;
|
|
15
|
+
};
|
|
10
16
|
separator?: string;
|
|
11
17
|
encoding?: string;
|
|
12
18
|
type?: string;
|
|
@@ -17,7 +17,7 @@ export interface InputElement extends FocusableElement {
|
|
|
17
17
|
}
|
|
18
18
|
export declare function isInputElement(object: any): object is InputElement;
|
|
19
19
|
export declare function asInputElement<T = any>(object: ElementRef<T>): InputElement | undefined;
|
|
20
|
-
export declare function tabindexComparator(a: InputElement, b: InputElement):
|
|
20
|
+
export declare function tabindexComparator(a: InputElement, b: InputElement): 0 | 1 | -1;
|
|
21
21
|
export interface CanGainFocusOptions {
|
|
22
22
|
minTabindex?: number;
|
|
23
23
|
maxTabindex?: number;
|
package/src/assets/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "ngx-sumaris-components",
|
|
3
3
|
"short_name": "ngx-sumaris-components",
|
|
4
4
|
"manifest_version": 1,
|
|
5
|
-
"version": "18.8.
|
|
5
|
+
"version": "18.8.24",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|