@sumaris-net/ngx-components 1.20.8 → 1.20.11
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/bundles/sumaris-net.ngx-components.umd.js +61 -37
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +2 -2
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/doc/changelog.md +3 -0
- package/esm2015/public_api.js +2 -1
- package/esm2015/src/app/core/graphql/graphql.service.js +2 -2
- package/esm2015/src/app/core/services/errors.js +1 -1
- package/esm2015/src/app/core/services/model/referential.model.js +1 -1
- package/esm2015/src/app/shared/file/file.utils.js +25 -1
- package/esm2015/src/app/shared/form/field.model.js +1 -1
- package/esm2015/src/app/shared/help/help.modal.js +14 -7
- package/esm2015/src/app/shared/material/latlong/material.latlong.js +23 -27
- package/fesm2015/sumaris-net.ngx-components.js +60 -31
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
- package/src/app/core/services/config/core.config.d.ts +25 -25
- package/src/app/core/services/errors.d.ts +1 -1
- package/src/app/core/services/model/referential.model.d.ts +1 -0
- package/src/app/shared/file/file.utils.d.ts +2 -0
- package/src/app/shared/form/field.model.d.ts +3 -3
- package/src/app/shared/help/help.modal.d.ts +4 -3
- package/src/app/shared/material/latlong/material.latlong.d.ts +3 -5
- package/sumaris-net.ngx-components.metadata.json +1 -1
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -187,6 +187,7 @@ export * from './src/app/shared/upload-file/testing/upload-file.testing.module';
|
|
|
187
187
|
export * from './src/app/core/core.testing.module';
|
|
188
188
|
export * from './src/app/core/services/testing/referential-filter.model';
|
|
189
189
|
export * from './src/app/core/services/testing/referential.validator';
|
|
190
|
+
export * from './src/app/core/services/errors';
|
|
190
191
|
export * from './src/app/core/table/testing/table.testing.module';
|
|
191
192
|
export * from './src/app/core/table/testing/table.testing';
|
|
192
193
|
export * from './src/app/core/text-popover/testing/text-popover.testing.module';
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { FormFieldDefinition } from '../../../shared/form/field.model';
|
|
2
2
|
export declare const CORE_CONFIG_OPTIONS: Readonly<{
|
|
3
|
-
LOGO: FormFieldDefinition<
|
|
4
|
-
FAVICON: FormFieldDefinition<
|
|
5
|
-
DEFAULT_LOCALE: FormFieldDefinition<
|
|
6
|
-
DEFAULT_LAT_LONG_FORMAT: FormFieldDefinition<
|
|
7
|
-
REGISTRATION_ENABLE: FormFieldDefinition<
|
|
8
|
-
AUTH_TOKEN_TYPE: FormFieldDefinition<
|
|
9
|
-
GRAVATAR_ENABLE: FormFieldDefinition<
|
|
10
|
-
GRAVATAR_URL: FormFieldDefinition<
|
|
11
|
-
TESTING: FormFieldDefinition<
|
|
12
|
-
APP_MIN_VERSION: FormFieldDefinition<
|
|
13
|
-
HELP_URL: FormFieldDefinition<
|
|
14
|
-
FORUM_URL: FormFieldDefinition<
|
|
15
|
-
LOGO_LARGE: FormFieldDefinition<
|
|
16
|
-
MENU_ITEMS: FormFieldDefinition<
|
|
17
|
-
HOME_PARTNERS_DEPARTMENTS: FormFieldDefinition<
|
|
18
|
-
HOME_BACKGROUND_IMAGE: FormFieldDefinition<
|
|
19
|
-
COLOR_PRIMARY: FormFieldDefinition<
|
|
20
|
-
COLOR_SECONDARY: FormFieldDefinition<
|
|
21
|
-
COLOR_TERTIARY: FormFieldDefinition<
|
|
22
|
-
COLOR_SUCCESS: FormFieldDefinition<
|
|
23
|
-
COLOR_WARNING: FormFieldDefinition<
|
|
24
|
-
COLOR_ACCENT: FormFieldDefinition<
|
|
25
|
-
COLOR_DANGER: FormFieldDefinition<
|
|
26
|
-
ANDROID_INSTALL_URL: FormFieldDefinition<
|
|
27
|
-
DB_TIMEZONE: FormFieldDefinition<
|
|
3
|
+
LOGO: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType>;
|
|
4
|
+
FAVICON: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType>;
|
|
5
|
+
DEFAULT_LOCALE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType>;
|
|
6
|
+
DEFAULT_LAT_LONG_FORMAT: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType>;
|
|
7
|
+
REGISTRATION_ENABLE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType>;
|
|
8
|
+
AUTH_TOKEN_TYPE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType>;
|
|
9
|
+
GRAVATAR_ENABLE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType>;
|
|
10
|
+
GRAVATAR_URL: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType>;
|
|
11
|
+
TESTING: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType>;
|
|
12
|
+
APP_MIN_VERSION: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType>;
|
|
13
|
+
HELP_URL: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType>;
|
|
14
|
+
FORUM_URL: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType>;
|
|
15
|
+
LOGO_LARGE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType>;
|
|
16
|
+
MENU_ITEMS: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType>;
|
|
17
|
+
HOME_PARTNERS_DEPARTMENTS: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType>;
|
|
18
|
+
HOME_BACKGROUND_IMAGE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType>;
|
|
19
|
+
COLOR_PRIMARY: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType>;
|
|
20
|
+
COLOR_SECONDARY: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType>;
|
|
21
|
+
COLOR_TERTIARY: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType>;
|
|
22
|
+
COLOR_SUCCESS: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType>;
|
|
23
|
+
COLOR_WARNING: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType>;
|
|
24
|
+
COLOR_ACCENT: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType>;
|
|
25
|
+
COLOR_DANGER: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType>;
|
|
26
|
+
ANDROID_INSTALL_URL: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType>;
|
|
27
|
+
DB_TIMEZONE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType>;
|
|
28
28
|
}>;
|
|
@@ -12,6 +12,7 @@ export declare const StatusById: Readonly<import("../../../shared/types").KeyVal
|
|
|
12
12
|
export declare interface IReferentialRef<T extends IEntity<T, ID> = IEntity<any, any>, ID = number> extends IEntity<T, ID> {
|
|
13
13
|
label: string;
|
|
14
14
|
name: string;
|
|
15
|
+
description?: string;
|
|
15
16
|
levelId?: number;
|
|
16
17
|
statusId: number;
|
|
17
18
|
entityName: string;
|
|
@@ -5,8 +5,9 @@ export declare type DisplayFn = (obj: any) => string;
|
|
|
5
5
|
export declare type EqualsFn = (o1: any, o2: any) => boolean;
|
|
6
6
|
export declare type CompareFn = (o1: any, o2: any) => number;
|
|
7
7
|
export declare type FormFieldType = 'integer' | 'double' | 'boolean' | 'string' | 'enum' | 'color' | 'peer' | 'entity' | 'entities' | 'date' | 'dateTime';
|
|
8
|
-
export declare interface FormFieldDefinition<T =
|
|
9
|
-
key:
|
|
8
|
+
export declare interface FormFieldDefinition<K = string, T = FormFieldType> {
|
|
9
|
+
key: K;
|
|
10
|
+
type: T;
|
|
10
11
|
label: string;
|
|
11
12
|
minValue?: number;
|
|
12
13
|
maxValue?: number;
|
|
@@ -14,7 +15,6 @@ export declare interface FormFieldDefinition<T = any> {
|
|
|
14
15
|
defaultValue?: any;
|
|
15
16
|
isTransient?: boolean;
|
|
16
17
|
values?: (string | Property)[] | InjectionToken<(string | Property)[]>;
|
|
17
|
-
type: FormFieldType;
|
|
18
18
|
autocomplete?: MatAutocompleteFieldAddOptions<T>;
|
|
19
19
|
disabled?: boolean;
|
|
20
20
|
required?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, Injector } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, Injector, OnInit } from '@angular/core';
|
|
2
2
|
import { ModalController } from '@ionic/angular';
|
|
3
3
|
import { PlatformService } from '../../core/services/platform.service';
|
|
4
4
|
import { LocalSettingsService } from '../../core/services/local-settings.service';
|
|
@@ -9,7 +9,7 @@ export interface AppHelpModalOptions {
|
|
|
9
9
|
docUrl?: string;
|
|
10
10
|
showError?: boolean;
|
|
11
11
|
}
|
|
12
|
-
export declare class AppHelpModal implements AppHelpModalOptions {
|
|
12
|
+
export declare class AppHelpModal implements AppHelpModalOptions, OnInit {
|
|
13
13
|
protected injector: Injector;
|
|
14
14
|
protected viewCtrl: ModalController;
|
|
15
15
|
protected platform: PlatformService;
|
|
@@ -24,7 +24,8 @@ export declare class AppHelpModal implements AppHelpModalOptions {
|
|
|
24
24
|
docUrl: string;
|
|
25
25
|
showError: boolean;
|
|
26
26
|
constructor(injector: Injector, viewCtrl: ModalController, platform: PlatformService, settings: LocalSettingsService, translate: TranslateService, cd: ChangeDetectorRef);
|
|
27
|
-
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
close(event?: UIEvent): Promise<boolean>;
|
|
28
29
|
markAsLoaded(): void;
|
|
29
30
|
onLoadError(error?: string): void;
|
|
30
31
|
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { FloatLabelType } from '@angular/material/form-field';
|
|
3
3
|
import { ControlValueAccessor, FormBuilder, FormControl, FormGroupDirective } from '@angular/forms';
|
|
4
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
5
4
|
import { LatLongFormatFn, LatLongFormatOptions, LatLongPattern } from './latlong.utils';
|
|
6
5
|
import { TextMaskConfig } from 'angular2-text-mask';
|
|
7
6
|
export declare class MatLatLongField implements OnInit, OnDestroy, ControlValueAccessor {
|
|
8
|
-
private translate;
|
|
9
7
|
private formBuilder;
|
|
10
8
|
private cd;
|
|
11
9
|
private formGroupDir;
|
|
@@ -13,8 +11,8 @@ export declare class MatLatLongField implements OnInit, OnDestroy, ControlValueA
|
|
|
13
11
|
private _onTouchedCallback;
|
|
14
12
|
private _subscription;
|
|
15
13
|
private _formatOptions;
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
private _disabling;
|
|
15
|
+
private _writing;
|
|
18
16
|
_readonly: boolean;
|
|
19
17
|
_formatFn: LatLongFormatFn;
|
|
20
18
|
textMaskConfig: TextMaskConfig;
|
|
@@ -41,7 +39,7 @@ export declare class MatLatLongField implements OnInit, OnDestroy, ControlValueA
|
|
|
41
39
|
onBlur: EventEmitter<FocusEvent>;
|
|
42
40
|
onFocus: EventEmitter<FocusEvent>;
|
|
43
41
|
inputElement: ElementRef;
|
|
44
|
-
constructor(
|
|
42
|
+
constructor(formBuilder: FormBuilder, cd: ChangeDetectorRef, formGroupDir: FormGroupDirective);
|
|
45
43
|
ngOnInit(): void;
|
|
46
44
|
ngOnDestroy(): void;
|
|
47
45
|
writeValue(obj: any): void;
|