@sumaris-net/ngx-components 1.20.10 → 1.20.13
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 +56 -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 +6 -0
- 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/material/latlong/material.latlong.js +23 -27
- package/esm2015/src/app/shared/validator/validators.js +11 -13
- package/fesm2015/sumaris-net.ngx-components.js +56 -37
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/services/config/core.config.d.ts +25 -25
- package/src/app/shared/file/file.utils.d.ts +2 -0
- package/src/app/shared/form/field.model.d.ts +4 -4
- package/src/app/shared/material/latlong/material.latlong.d.ts +3 -5
- package/src/app/shared/validator/validators.d.ts +1 -1
- package/sumaris-net.ngx-components.metadata.json +1 -1
package/package.json
CHANGED
|
@@ -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<any>;
|
|
4
|
-
FAVICON: FormFieldDefinition<any>;
|
|
5
|
-
DEFAULT_LOCALE: FormFieldDefinition<any>;
|
|
6
|
-
DEFAULT_LAT_LONG_FORMAT: FormFieldDefinition<any>;
|
|
7
|
-
REGISTRATION_ENABLE: FormFieldDefinition<any>;
|
|
8
|
-
AUTH_TOKEN_TYPE: FormFieldDefinition<any>;
|
|
9
|
-
GRAVATAR_ENABLE: FormFieldDefinition<any>;
|
|
10
|
-
GRAVATAR_URL: FormFieldDefinition<any>;
|
|
11
|
-
TESTING: FormFieldDefinition<any>;
|
|
12
|
-
APP_MIN_VERSION: FormFieldDefinition<any>;
|
|
13
|
-
HELP_URL: FormFieldDefinition<any>;
|
|
14
|
-
FORUM_URL: FormFieldDefinition<any>;
|
|
15
|
-
LOGO_LARGE: FormFieldDefinition<any>;
|
|
16
|
-
MENU_ITEMS: FormFieldDefinition<any>;
|
|
17
|
-
HOME_PARTNERS_DEPARTMENTS: FormFieldDefinition<any>;
|
|
18
|
-
HOME_BACKGROUND_IMAGE: FormFieldDefinition<any>;
|
|
19
|
-
COLOR_PRIMARY: FormFieldDefinition<any>;
|
|
20
|
-
COLOR_SECONDARY: FormFieldDefinition<any>;
|
|
21
|
-
COLOR_TERTIARY: FormFieldDefinition<any>;
|
|
22
|
-
COLOR_SUCCESS: FormFieldDefinition<any>;
|
|
23
|
-
COLOR_WARNING: FormFieldDefinition<any>;
|
|
24
|
-
COLOR_ACCENT: FormFieldDefinition<any>;
|
|
25
|
-
COLOR_DANGER: FormFieldDefinition<any>;
|
|
26
|
-
ANDROID_INSTALL_URL: FormFieldDefinition<any>;
|
|
27
|
-
DB_TIMEZONE: FormFieldDefinition<any>;
|
|
3
|
+
LOGO: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
4
|
+
FAVICON: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
5
|
+
DEFAULT_LOCALE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
6
|
+
DEFAULT_LAT_LONG_FORMAT: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
7
|
+
REGISTRATION_ENABLE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
8
|
+
AUTH_TOKEN_TYPE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
9
|
+
GRAVATAR_ENABLE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
10
|
+
GRAVATAR_URL: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
11
|
+
TESTING: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
12
|
+
APP_MIN_VERSION: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
13
|
+
HELP_URL: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
14
|
+
FORUM_URL: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
15
|
+
LOGO_LARGE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
16
|
+
MENU_ITEMS: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
17
|
+
HOME_PARTNERS_DEPARTMENTS: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
18
|
+
HOME_BACKGROUND_IMAGE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
19
|
+
COLOR_PRIMARY: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
20
|
+
COLOR_SECONDARY: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
21
|
+
COLOR_TERTIARY: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
22
|
+
COLOR_SUCCESS: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
23
|
+
COLOR_WARNING: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
24
|
+
COLOR_ACCENT: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
25
|
+
COLOR_DANGER: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
26
|
+
ANDROID_INSTALL_URL: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
27
|
+
DB_TIMEZONE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any>;
|
|
28
28
|
}>;
|
|
@@ -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 = any> {
|
|
9
|
-
key:
|
|
8
|
+
export declare interface FormFieldDefinition<K = string, T = FormFieldType, E = any> {
|
|
9
|
+
key: K;
|
|
10
|
+
type: T;
|
|
10
11
|
label: string;
|
|
11
12
|
minValue?: number;
|
|
12
13
|
maxValue?: number;
|
|
@@ -14,8 +15,7 @@ export declare interface FormFieldDefinition<T = any> {
|
|
|
14
15
|
defaultValue?: any;
|
|
15
16
|
isTransient?: boolean;
|
|
16
17
|
values?: (string | Property)[] | InjectionToken<(string | Property)[]>;
|
|
17
|
-
|
|
18
|
-
autocomplete?: MatAutocompleteFieldAddOptions<T>;
|
|
18
|
+
autocomplete?: MatAutocompleteFieldAddOptions<E>;
|
|
19
19
|
disabled?: boolean;
|
|
20
20
|
required?: boolean;
|
|
21
21
|
extra?: {
|
|
@@ -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;
|
|
@@ -2,7 +2,7 @@ import { AbstractControl, AsyncValidatorFn, FormControl, ValidationErrors, Valid
|
|
|
2
2
|
import { Moment, unitOfTime } from 'moment';
|
|
3
3
|
import { Observable, Subscription } from 'rxjs';
|
|
4
4
|
export declare class SharedValidators {
|
|
5
|
-
private static
|
|
5
|
+
private static _DOUBLE_REGEXP_CACHE;
|
|
6
6
|
private static getDoubleRegexp;
|
|
7
7
|
static readonly I18N_ERROR_KEYS: {
|
|
8
8
|
required: string;
|