@sumaris-net/ngx-components 18.5.0-rc2 → 18.5.0

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 (26) hide show
  1. package/esm2022/src/app/core/account/account.module.mjs +7 -3
  2. package/esm2022/src/app/core/account/account.page.mjs +9 -6
  3. package/esm2022/src/app/core/account/password/change-password.page.mjs +2 -2
  4. package/esm2022/src/app/core/form/properties/properties.form.mjs +33 -14
  5. package/esm2022/src/app/core/graphql/graphql.service.mjs +3 -3
  6. package/esm2022/src/app/core/install/install-upgrade-card.component.mjs +26 -8
  7. package/esm2022/src/app/core/services/config/core.config.mjs +6 -1
  8. package/esm2022/src/app/core/services/network.service.mjs +7 -4
  9. package/esm2022/src/app/core/services/validator/local-settings.validator.mjs +5 -10
  10. package/esm2022/src/app/core/settings/settings.page.mjs +15 -4
  11. package/esm2022/src/environments/environment.class.mjs +2 -1
  12. package/esm2022/src/environments/environment.mjs +3 -2
  13. package/fesm2022/sumaris-net.ngx-components.mjs +100 -43
  14. package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
  15. package/package.json +1 -1
  16. package/src/app/core/account/account.module.d.ts +2 -1
  17. package/src/app/core/form/properties/properties.form.d.ts +7 -2
  18. package/src/app/core/install/install-upgrade-card.component.d.ts +2 -2
  19. package/src/app/core/services/config/core.config.d.ts +1 -0
  20. package/src/app/core/services/network.service.d.ts +1 -0
  21. package/src/app/core/settings/settings.page.d.ts +3 -1
  22. package/src/assets/i18n/en-US.json +1 -0
  23. package/src/assets/i18n/en.json +1 -0
  24. package/src/assets/i18n/fr.json +1 -0
  25. package/src/assets/manifest.json +1 -1
  26. package/src/environments/environment.class.d.ts +1 -0
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.5.0-rc2",
4
+ "version": "18.5.0",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -10,8 +10,9 @@ import * as i8 from "../form/buttons/form-buttons-bar.module";
10
10
  import * as i9 from "../form/properties/properties.module";
11
11
  import * as i10 from "../table/table.module";
12
12
  import * as i11 from "./password/change-password.module";
13
+ import * as i12 from "../install/install-upgrade-card.module";
13
14
  export declare class AppAccountModule {
14
15
  static ɵfac: i0.ɵɵFactoryDeclaration<AppAccountModule, never>;
15
- static ɵmod: i0.ɵɵNgModuleDeclaration<AppAccountModule, [typeof i1.AccountPage, typeof i2.UserTokenTable, typeof i3.NewTokenForm, typeof i4.NewTokenModal], [typeof i5.CommonModule, typeof i6.SharedModule, typeof i7.TranslateModule, typeof i8.AppFormButtonsBarModule, typeof i9.AppPropertiesFormModule, typeof i10.AppTableModule, typeof i11.AppChangePasswordModule], [typeof i7.TranslateModule, typeof i1.AccountPage, typeof i2.UserTokenTable, typeof i3.NewTokenForm, typeof i4.NewTokenModal, typeof i11.AppChangePasswordModule]>;
16
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AppAccountModule, [typeof i1.AccountPage, typeof i2.UserTokenTable, typeof i3.NewTokenForm, typeof i4.NewTokenModal], [typeof i5.CommonModule, typeof i6.SharedModule, typeof i7.TranslateModule, typeof i8.AppFormButtonsBarModule, typeof i9.AppPropertiesFormModule, typeof i10.AppTableModule, typeof i11.AppChangePasswordModule, typeof i12.AppInstallUpgradeCardModule], [typeof i7.TranslateModule, typeof i1.AccountPage, typeof i2.UserTokenTable, typeof i3.NewTokenForm, typeof i4.NewTokenModal, typeof i11.AppChangePasswordModule]>;
16
17
  static ɵinj: i0.ɵɵInjectorDeclaration<AppAccountModule>;
17
18
  }
@@ -12,6 +12,7 @@ import { MatFormFieldAppearance, SubscriptSizing } from '@angular/material/form-
12
12
  import { MatAutocompleteFieldConfig } from '../../../shared/material/autocomplete/material.autocomplete.config';
13
13
  import { LoadResult } from '../../../shared/services/entity-service.class';
14
14
  import { RxState } from '@rx-angular/state';
15
+ import { SortDirection } from '@angular/material/sort';
15
16
  import * as i0 from "@angular/core";
16
17
  export interface AppPropertiesFormState {
17
18
  definitions: FormFieldDefinition[];
@@ -63,7 +64,7 @@ export declare class AppPropertiesForm<O = any, T extends Property<O> = Property
63
64
  get fieldForms(): UntypedFormGroup[];
64
65
  constructor(injector: Injector, formBuilder: UntypedFormBuilder, dateAdapter: DateAdapter<Moment>, cd: ChangeDetectorRef, validator: PropertyValidator, formGroupDir: FormGroupDirective);
65
66
  ngOnInit(): void;
66
- protected processDefinitions(definitions: FormFieldDefinition[]): FormFieldDefinition[];
67
+ protected processDefinitions(definitions: FormFieldDefinition[]): any[];
67
68
  getDefinitionAt(index: number): FormFieldDefinition;
68
69
  updateDefinitionAt(index: number, opts?: {
69
70
  emitEvent?: boolean;
@@ -71,7 +72,11 @@ export declare class AppPropertiesForm<O = any, T extends Property<O> = Property
71
72
  removeAt(index: number): void;
72
73
  setValue(data: PropertyMap | T[]): Promise<void>;
73
74
  getValueAsJson(): PropertyMap;
74
- protected suggestDefinition(value: any, filter?: any): Promise<LoadResult<Property>>;
75
+ protected suggestDefinitionKeys(value: any, filter?: any, sortBy?: string | keyof Property, sortDirection?: SortDirection, opts?: {
76
+ offset?: number;
77
+ size?: number;
78
+ [key: string]: any;
79
+ }): Promise<LoadResult<Property>>;
75
80
  protected markForCheck(): void;
76
81
  protected isEmptyProperty(obj: Property): boolean;
77
82
  static ɵfac: i0.ɵɵFactoryDeclaration<AppPropertiesForm<any, any, any>, [null, null, null, null, null, { optional: true; }]>;
@@ -9,7 +9,7 @@ import * as i0 from "@angular/core";
9
9
  export declare interface InstallAppLink {
10
10
  name: string;
11
11
  url: string;
12
- platform?: 'android' | 'ios';
12
+ platform?: 'android' | 'ios' | 'electron';
13
13
  version?: string;
14
14
  filename?: string;
15
15
  title?: string;
@@ -45,7 +45,7 @@ export declare class AppInstallUpgradeCard implements OnInit, OnDestroy {
45
45
  download(event: Event, link: InstallAppLink): Promise<void>;
46
46
  openFile(event: Event, link: InstallAppLink): Promise<void>;
47
47
  tryOnline(): Promise<void>;
48
- getPlatformName(platform: 'android' | 'ios'): "" | "Android" | "iOS";
48
+ getPlatformName(platform: 'android' | 'ios' | 'electron'): "" | "Android" | "iOS" | "desktop";
49
49
  asLink(value: any): InstallAppLink;
50
50
  private checkNeedInstallOrUpdate;
51
51
  private getCompatibleInstallLinks;
@@ -37,6 +37,7 @@ export declare const CORE_CONFIG_OPTIONS: Readonly<{
37
37
  FORM_FIELD_DISABLED_BACKGROUND_COLOR: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
38
38
  ANDROID_INSTALL_URL: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
39
39
  IOS_INSTALL_URL: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
40
+ DESKTOP_INSTALL_URL: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
40
41
  DB_TIMEZONE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
41
42
  ACCOUNT_LAT_LONG_FORMAT_ENABLE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
42
43
  ACCOUNT_READONLY: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
@@ -44,6 +44,7 @@ export declare class NetworkService extends StartableObservableService<Peer, Pee
44
44
  private _listeners;
45
45
  get online(): boolean;
46
46
  get offline(): boolean;
47
+ get forceOffline(): boolean;
47
48
  get connectionType(): ConnectionType;
48
49
  get peer(): Peer;
49
50
  set peer(peer: Peer);
@@ -53,6 +53,7 @@ export declare class SettingsPage extends AppForm<LocalSettings> implements OnIn
53
53
  emitEvent?: boolean;
54
54
  }): void;
55
55
  showSelectPeerModal(opts?: Partial<ISelectPeerModalOptions>): Promise<void>;
56
+ protected setForceOffline(value: boolean): void;
56
57
  cancel(event?: Event): Promise<void>;
57
58
  close(_?: Event): Promise<boolean>;
58
59
  clearCache(event?: Event): Promise<void>;
@@ -76,9 +77,10 @@ export declare class SettingsPage extends AppForm<LocalSettings> implements OnIn
76
77
  onlySelf?: boolean;
77
78
  emitEvent?: boolean;
78
79
  }): void;
79
- protected openAccountPage(): void;
80
+ protected openAccountPage(): Promise<boolean>;
80
81
  protected toggleDarkMode(enable?: boolean): Promise<void>;
81
82
  protected toggleShowOptionKey(): void;
83
+ devToggleDebug(): void;
82
84
  protected markForCheck(): void;
83
85
  static ɵfac: i0.ɵɵFactoryDeclaration<SettingsPage, [null, null, null, null, null, null, null, null, null, null, null, null, { optional: true; }]>;
84
86
  static ɵcmp: i0.ɵɵComponentDeclaration<SettingsPage, "page-settings", never, {}, {}, never, never, false, never>;
@@ -152,6 +152,7 @@
152
152
  "OPTIONS": {
153
153
  "ANDROID_INSTALL_URL": "App > Android > Install App URL",
154
154
  "IOS_INSTALL_URL": "App > iOS > Install App URL",
155
+ "DESKTOP_INSTALL_URL": "App > Desktop > Installation URL",
155
156
  "DB_TIMEZONE": "Persistence > Database timezone (readonly option)",
156
157
  "LOGO": "Menu > Logo (max width 110px)",
157
158
  "FAVICON": "favicon",
@@ -151,6 +151,7 @@
151
151
  "OPTIONS": {
152
152
  "ANDROID_INSTALL_URL": "App > Android > Install App URL",
153
153
  "IOS_INSTALL_URL": "App > iOS > Install App URL",
154
+ "DESKTOP_INSTALL_URL": "App > Desktop > Installation URL",
154
155
  "DB_TIMEZONE": "Persistence > Database timezone (readonly option)",
155
156
  "LOGO": "Menu > Logo (max width 110px)",
156
157
  "FAVICON": "favicon",
@@ -151,6 +151,7 @@
151
151
  "OPTIONS": {
152
152
  "ANDROID_INSTALL_URL": "App > Android > URL d'installation App",
153
153
  "IOS_INSTALL_URL": "App > iOS > URL d'installation App",
154
+ "DESKTOP_INSTALL_URL": "App > Desktop > URL d'installation",
154
155
  "DB_TIMEZONE": "Persistance > Timezone de la base de données (option non modifiable)",
155
156
  "LOGO": "Menu > Logo (largeur max 110px)",
156
157
  "FAVICON": "favicon",
@@ -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.4.4",
5
+ "version": "18.5.0",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{
@@ -43,6 +43,7 @@ export declare class Environment {
43
43
  defaultAppName?: string;
44
44
  defaultAndroidInstallUrl?: string;
45
45
  defaultIOSInstallUrl?: string;
46
+ defaultDesktopInstallUrl?: string;
46
47
  useHash?: boolean;
47
48
  allowDarkMode?: boolean;
48
49
  logging?: Partial<LoggingServiceConfig>;