@sumaris-net/ngx-components 18.0.8 → 18.0.10

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": "18.0.8",
4
+ "version": "18.0.10",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -35,8 +35,7 @@
35
35
  "d3": "~7.6.1",
36
36
  "localforage": "~1.10.0",
37
37
  "rxjs": "~7.8.1",
38
- "zone.js": "~0.14.10",
39
- "@typescript-eslint/utils": "7.2.0"
38
+ "zone.js": "~0.14.10"
40
39
  },
41
40
  "optionalDependencies": {
42
41
  "@awesome-cordova-plugins/core": "~6.4.0",
@@ -59,7 +58,10 @@
59
58
  "clovelced-plugin-audiomanagement": "~1.0.2",
60
59
  "cordova-sqlite-storage": "~6.0.0",
61
60
  "integrator-cordova-plugin-downloader": "~1.1.0",
62
- "localforage-cordovasqlitedriver": "~1.8.0"
61
+ "localforage-cordovasqlitedriver": "~1.8.0",
62
+ "clipboard": "^2.0.11",
63
+ "emoji-toolkit": ">= 8.0.0 < 10.0.0",
64
+ "prismjs": "^1.28.0"
63
65
  },
64
66
  "repository": {
65
67
  "type": "git",
@@ -18,8 +18,8 @@ export declare class AboutModal implements OnDestroy {
18
18
  readonly name: string;
19
19
  readonly version: string;
20
20
  readonly sourceUrl: string;
21
- readonly reportIssueUrl: string;
22
21
  readonly config$: Observable<Configuration>;
22
+ reportIssueUrl: string;
23
23
  forumUrl: string;
24
24
  helpUrl: string;
25
25
  private readonly _subscription;
@@ -3,8 +3,9 @@ import * as i1 from "./about.modal";
3
3
  import * as i2 from "../../shared/shared.module";
4
4
  import * as i3 from "@ionic/angular";
5
5
  import * as i4 from "@ngx-translate/core";
6
+ import * as i5 from "ngx-markdown";
6
7
  export declare class AppAboutModalModule {
7
8
  static ɵfac: i0.ɵɵFactoryDeclaration<AppAboutModalModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<AppAboutModalModule, [typeof i1.AboutModal], [typeof i2.SharedModule, typeof i3.IonicModule, typeof i4.TranslateModule], [typeof i4.TranslateModule, typeof i1.AboutModal]>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AppAboutModalModule, [typeof i1.AboutModal], [typeof i2.SharedModule, typeof i3.IonicModule, typeof i4.TranslateModule, typeof i5.MarkdownModule], [typeof i4.TranslateModule, typeof i1.AboutModal]>;
9
10
  static ɵinj: i0.ɵɵInjectorDeclaration<AppAboutModalModule>;
10
11
  }
@@ -20,6 +20,7 @@ export declare const CORE_CONFIG_OPTIONS: Readonly<{
20
20
  APP_MIN_VERSION: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
21
21
  HELP_URL: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
22
22
  FORUM_URL: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
23
+ REPORT_ISSUE_URL: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
23
24
  LOGO_LARGE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
24
25
  MENU_ITEMS: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
25
26
  HOME_PARTNERS_DEPARTMENTS: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
@@ -1,6 +1,6 @@
1
1
  import { Moment } from 'moment';
2
2
  import { getPropertyByPath } from '../../../shared/functions';
3
- import { FilterFn, ObjectMap, ObjectMapEntry } from '../../../shared/types';
3
+ import { FilterFn, KeyValueType, ObjectMap, ObjectMapEntry } from '../../../shared/types';
4
4
  import { StoreObject } from '@apollo/client/core';
5
5
  import { TreeItemEntityUtils } from './tree-item-entity.model';
6
6
  import { SortDirection } from '@angular/material/sort';
@@ -82,6 +82,23 @@ export declare abstract class EntityUtils {
82
82
  static isRemoteId(id: number): boolean;
83
83
  static getId<T extends IEntity<T, ID> = IEntity<any, any>, ID = any>(entity: T): ID;
84
84
  static hasId<T extends IEntity<T, ID> = IEntity<any, any>, ID = any>(entity: T): boolean;
85
+ /**
86
+ * Splits an array of entities into a key-value map using an entity ID as the key.
87
+ *
88
+ * @param {Array<T>} entities - The array of entities to be split by their ID.
89
+ * @return {KeyValueType<T>} A key-value map with entity IDs as keys and entities as values.
90
+ */
91
+ static splitById<T extends IEntity<T, ID>, ID = any>(entities: T[]): KeyValueType<T>;
92
+ /**
93
+ * Collects the IDs from an array of entities and returns them as an array.
94
+ *
95
+ * @param {T[]} entities - An array of entities from which to collect IDs.
96
+ * @return {ID[]} An array of IDs collected from the entities.
97
+ */
98
+ static collectIds<T extends IEntity<T, ID>, ID = any>(entities: T[]): ID[];
99
+ /**
100
+ * @deprecated Use collectIds() instead - will be remove in next major release
101
+ */
85
102
  static collectById<T extends IEntity<T, ID>, ID = any>(entities: T[]): ID[];
86
103
  static arrayDistinctFilterFn<E extends IEntity<any, any>>(item: E, index: number, values: E[]): boolean;
87
104
  }
@@ -61,6 +61,9 @@ export declare class MatLatLongField implements OnInit, OnDestroy, ControlValueA
61
61
  _onFocus(event: FocusEvent): boolean;
62
62
  _onBlur(event: FocusEvent): void;
63
63
  protected _format(value: number, opts?: Partial<LatLongFormatOptions>): string;
64
+ protected _checkIfTouched(): void;
65
+ private onFormChange;
66
+ private emitChange;
64
67
  private updateTranslations;
65
68
  private parseValue;
66
69
  private markForCheck;
@@ -1,6 +1,9 @@
1
1
  export declare const matchMedia: (win: Window, query: string) => boolean;
2
2
  export declare const testUserAgent: (win: Window, expr: RegExp) => boolean;
3
3
  export declare const isWindows: (win?: Window) => boolean;
4
+ export declare const isFirefox: (win?: Window) => boolean;
5
+ export declare const isSafari: (win?: Window) => boolean;
6
+ export declare const isEdge: (win?: Window) => boolean;
4
7
  export declare const isTouchUi: (win?: Window) => boolean;
5
8
  export declare const isIpad: (win: Window) => boolean;
6
9
  export declare const isMac: (win: Window) => boolean;
@@ -157,6 +157,7 @@
157
157
  "APP_MIN_VERSION": "App > Minimal compatible version (x.y.z)",
158
158
  "HELP_URL": "App > User manual (URL)",
159
159
  "FORUM_URL": "App > Forum address (URL)",
160
+ "REPORT_ISSUE_URL": "App > Address to report an issue (URL)",
160
161
  "ACCOUNT": {
161
162
  "ENABLE_LATLONG_FORMAT": "My Account > Settings > Enable lat/lon format?",
162
163
  "READONLY": "My Account > Readonly profile? (readonly option)"
@@ -156,6 +156,7 @@
156
156
  "APP_MIN_VERSION": "App > Minimal compatible version (x.y.z)",
157
157
  "HELP_URL": "App > User manual (URL)",
158
158
  "FORUM_URL": "App > Forum address (URL)",
159
+ "REPORT_ISSUE_URL": "App > Address to report an issue (URL)",
159
160
  "ACCOUNT": {
160
161
  "ENABLE_LATLONG_FORMAT": "My Account > Settings > Enable lat/lon format?",
161
162
  "READONLY": "My Account > Readonly profile? (readonly option)"
@@ -156,6 +156,7 @@
156
156
  "APP_MIN_VERSION": "App > Version minimale compatible (x.y.z)",
157
157
  "HELP_URL": "App > Adresse du manuel utilisateur (URL)",
158
158
  "FORUM_URL": "App > Adresse du forum (URL)",
159
+ "REPORT_ISSUE_URL": "App > Adresse pour remonter un problème (URL)",
159
160
  "ACCOUNT": {
160
161
  "ENABLE_LATLONG_FORMAT": "Mon Compte > Préférences > Activer le format lat/lon ?",
161
162
  "READONLY": "Mon Compte > Profil en lecture seule ? (option non modifiable)"
@@ -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.0.5",
5
+ "version": "18.0.10",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{