@sumaris-net/ngx-components 18.2.27-alpha1 → 18.2.28-alpha1
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 +9 -4
- package/esm2022/public_api.mjs +1 -2
- package/esm2022/src/app/core/form/properties/properties.table.mjs +1 -1
- package/esm2022/src/app/core/install/install-upgrade-card.component.mjs +8 -6
- package/esm2022/src/app/core/services/network.service.mjs +2 -2
- package/esm2022/src/app/core/services/storage/entity-store.class.mjs +5 -2
- package/esm2022/src/app/core/table/testing/table.testing.mjs +2 -2
- package/esm2022/src/app/core/table/testing/table2.testing.mjs +1 -1
- package/esm2022/src/app/shared/form/field.component.mjs +1 -1
- package/esm2022/src/app/shared/inputs.mjs +2 -6
- package/esm2022/src/app/shared/material/boolean/material.boolean.mjs +37 -44
- package/esm2022/src/app/shared/material/boolean/testing/boolean.test.page.mjs +3 -3
- package/esm2022/src/app/shared/material/latlong/latlong.utils.mjs +25 -16
- package/esm2022/src/app/shared/material/latlong/material.latlong.mjs +5 -14
- package/esm2022/src/app/shared/material/latlong/material.latlong.module.mjs +5 -6
- package/esm2022/src/app/shared/material/latlong/testing/latlong.test.mjs +7 -18
- package/esm2022/src/app/shared/material/testing/common.test.mjs +1 -1
- package/fesm2022/sumaris-net.ngx-components.mjs +123 -741
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +0 -1
- package/src/app/shared/material/boolean/material.boolean.d.ts +6 -7
- package/src/app/shared/material/latlong/latlong.utils.d.ts +0 -10
- package/src/app/shared/material/latlong/material.latlong.d.ts +1 -1
- package/src/app/shared/material/latlong/material.latlong.module.d.ts +14 -15
- package/src/app/shared/material/latlong/testing/latlong.test.d.ts +2 -3
- package/src/assets/i18n/fr.json +1 -8
- package/src/assets/manifest.json +1 -1
- package/esm2022/src/app/shared/material/latlong/material.latlong2.mjs +0 -631
- package/src/app/shared/material/latlong/material.latlong2.d.ts +0 -164
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -23,7 +23,6 @@ export { MatDateShort } from './src/app/shared/material/datetime/material.datesh
|
|
|
23
23
|
export { MatDateTime } from './src/app/shared/material/datetime/material.datetime';
|
|
24
24
|
export { MatDate } from './src/app/shared/material/datetime/material.date';
|
|
25
25
|
export { MatLatLongField } from './src/app/shared/material/latlong/material.latlong';
|
|
26
|
-
export { MatLatLongField2 } from './src/app/shared/material/latlong/material.latlong2';
|
|
27
26
|
export * from './src/app/shared/material/latlong/material.latlong.module';
|
|
28
27
|
export * from './src/app/shared/material/duration/duration.module';
|
|
29
28
|
export { MatDuration } from './src/app/shared/material/duration/material.duration';
|
|
@@ -5,7 +5,6 @@ import { MatRadioButton, MatRadioChange } from '@angular/material/radio';
|
|
|
5
5
|
import { MatCheckbox, MatCheckboxChange } from '@angular/material/checkbox';
|
|
6
6
|
import { InputElement } from '../../inputs';
|
|
7
7
|
import { AppFloatLabelType } from '../../form/field.model';
|
|
8
|
-
import { IonButton } from '@ionic/angular';
|
|
9
8
|
import * as i0 from "@angular/core";
|
|
10
9
|
export declare class MatBooleanField implements OnInit, ControlValueAccessor, InputElement, OnDestroy {
|
|
11
10
|
private cd;
|
|
@@ -19,12 +18,10 @@ export declare class MatBooleanField implements OnInit, ControlValueAccessor, In
|
|
|
19
18
|
protected _tabindex: number;
|
|
20
19
|
protected _showRadio: boolean;
|
|
21
20
|
protected _focused: boolean;
|
|
21
|
+
fakeInput: ElementRef;
|
|
22
22
|
yesRadioButton: MatRadioButton;
|
|
23
23
|
noRadioButton: MatRadioButton;
|
|
24
24
|
checkboxButton: MatCheckbox;
|
|
25
|
-
yesButton: IonButton;
|
|
26
|
-
noButton: IonButton;
|
|
27
|
-
fakeInput: ElementRef;
|
|
28
25
|
disabled: boolean;
|
|
29
26
|
formControl: UntypedFormControl;
|
|
30
27
|
formControlName: string;
|
|
@@ -52,6 +49,7 @@ export declare class MatBooleanField implements OnInit, ControlValueAccessor, In
|
|
|
52
49
|
set value(v: any);
|
|
53
50
|
get value(): any;
|
|
54
51
|
keyupEnter: EventEmitter<any>;
|
|
52
|
+
focussed: EventEmitter<FocusEvent>;
|
|
55
53
|
blurred: EventEmitter<FocusEvent>;
|
|
56
54
|
constructor(cd: ChangeDetectorRef, el: ElementRef<HTMLElement>, formGroupDir: FormGroupDirective);
|
|
57
55
|
ngOnInit(): void;
|
|
@@ -61,11 +59,13 @@ export declare class MatBooleanField implements OnInit, ControlValueAccessor, In
|
|
|
61
59
|
registerOnTouched(fn: any): void;
|
|
62
60
|
setDisabledState(isDisabled: boolean): void;
|
|
63
61
|
protected onFocusFakeInput(event: FocusEvent): void;
|
|
62
|
+
protected onBlurInput(event: FocusEvent): void;
|
|
64
63
|
focus(): void;
|
|
65
64
|
protected onRadioValueChanged(event: MatRadioChange): void;
|
|
66
65
|
protected onCheckboxValueChanged(event: MatCheckboxChange): void;
|
|
67
66
|
toggleValue(event?: Event): void;
|
|
68
|
-
private
|
|
67
|
+
private emitChange;
|
|
68
|
+
private _checkIfTouched;
|
|
69
69
|
/**
|
|
70
70
|
* Show/Hide the fake input
|
|
71
71
|
*/
|
|
@@ -78,9 +78,8 @@ export declare class MatBooleanField implements OnInit, ControlValueAccessor, In
|
|
|
78
78
|
clearValue(event?: Event): void;
|
|
79
79
|
protected get radioButtonElements(): HTMLElement[];
|
|
80
80
|
protected get inputsElements(): HTMLElement[];
|
|
81
|
-
protected get ionButtons(): IonButton[];
|
|
82
81
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatBooleanField, [null, null, { optional: true; }]>;
|
|
83
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatBooleanField, "mat-boolean-field", never, { "disabled": { "alias": "disabled"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "required": { "alias": "required"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "style": { "alias": "style"; "required": false; }; "buttonsColCount": { "alias": "buttonsColCount"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "yesLabel": { "alias": "yesLabel"; "required": false; }; "noLabel": { "alias": "noLabel"; "required": false; }; "showButtonIcons": { "alias": "showButtonIcons"; "required": false; }; "yesIcon": { "alias": "yesIcon"; "required": false; }; "noIcon": { "alias": "noIcon"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "showRadio": { "alias": "showRadio"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "keyupEnter": "keyup.enter"; "blurred": "blur"; }, never, ["[matPrefix]", "[matSuffix]"], false, never>;
|
|
82
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatBooleanField, "mat-boolean-field", never, { "disabled": { "alias": "disabled"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "required": { "alias": "required"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "style": { "alias": "style"; "required": false; }; "buttonsColCount": { "alias": "buttonsColCount"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "yesLabel": { "alias": "yesLabel"; "required": false; }; "noLabel": { "alias": "noLabel"; "required": false; }; "showButtonIcons": { "alias": "showButtonIcons"; "required": false; }; "yesIcon": { "alias": "yesIcon"; "required": false; }; "noIcon": { "alias": "noIcon"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "showRadio": { "alias": "showRadio"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "keyupEnter": "keyup.enter"; "focussed": "focus"; "blurred": "blur"; }, never, ["[matPrefix]", "[matSuffix]"], false, never>;
|
|
84
83
|
static ngAcceptInputType_disabled: unknown;
|
|
85
84
|
static ngAcceptInputType_readonly: unknown;
|
|
86
85
|
static ngAcceptInputType_required: unknown;
|
|
@@ -18,14 +18,4 @@ export declare const LAT_LONG_DEFAULT_MAX_DECIMALS = 3;
|
|
|
18
18
|
export declare function formatLatLong(value: number, type: LatLongType, opts?: Partial<LatLongFormatOptions>): string;
|
|
19
19
|
export declare function formatLatitude(value: number | null, opts?: Partial<LatLongFormatOptions>): string;
|
|
20
20
|
export declare function formatLongitude(value: number | null, opts?: Partial<LatLongFormatOptions>): string;
|
|
21
|
-
export declare function splitNumberToFieldsDD(value: number, opts: LatLongFormatOptions & {
|
|
22
|
-
longitude: boolean;
|
|
23
|
-
}): (number | string)[];
|
|
24
|
-
export declare function splitNumberToFieldsDDMM(value: number, opts: LatLongFormatOptions & {
|
|
25
|
-
longitude: boolean;
|
|
26
|
-
}): number[];
|
|
27
|
-
export declare function splitNumberToFieldsDDMMSS(value: number, opts: LatLongFormatOptions & {
|
|
28
|
-
longitude: boolean;
|
|
29
|
-
}): number[];
|
|
30
21
|
export declare function parseLatitudeOrLongitude(input: string, pattern: string, maxDecimals?: number, placeholderChar?: string): number | null;
|
|
31
|
-
export declare function computeDecimalDegrees(degrees: number, minutes: number, seconds: number, sign: -1 | 1, maxDecimals?: number): number;
|
|
@@ -68,6 +68,6 @@ export declare class MatLatLongField implements OnInit, OnDestroy, ControlValueA
|
|
|
68
68
|
private parseValue;
|
|
69
69
|
private markForCheck;
|
|
70
70
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatLatLongField, [null, null, null, { optional: true; }, null]>;
|
|
71
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatLatLongField, "mat-latlong-field
|
|
71
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatLatLongField, "mat-latlong-field", never, { "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "type": { "alias": "type"; "required": false; }; "pattern": { "alias": "latLongPattern"; "required": false; }; "required": { "alias": "required"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "defaultSign": { "alias": "defaultSign"; "required": false; }; "maxDecimals": { "alias": "maxDecimals"; "required": false; }; "placeholderChar": { "alias": "placeholderChar"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; }, { "onBlur": "onBlur"; "onFocus": "onFocus"; }, never, ["[matPrefix]", "[matSuffix]", "mat-error,[matError]", "mat-hint:not([align='end']),[matHint]", "mat-hint[align='end']"], false, never>;
|
|
72
72
|
static ngAcceptInputType_mobile: unknown;
|
|
73
73
|
}
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./material.latlong";
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "@angular
|
|
5
|
-
import * as i4 from "@
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "../../
|
|
8
|
-
import * as i7 from "
|
|
9
|
-
import * as i8 from "@angular/material/
|
|
10
|
-
import * as i9 from "@angular/material/
|
|
11
|
-
import * as i10 from "@angular/material/
|
|
12
|
-
import * as i11 from "@angular
|
|
13
|
-
import * as i12 from "@
|
|
14
|
-
import * as i13 from "@angular/material/
|
|
15
|
-
import * as i14 from "@
|
|
16
|
-
import * as i15 from "@ngx-translate/core";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@ionic/angular";
|
|
5
|
+
import * as i4 from "@angular/forms";
|
|
6
|
+
import * as i5 from "../../directives/directives.module";
|
|
7
|
+
import * as i6 from "../../pipes/pipes.module";
|
|
8
|
+
import * as i7 from "@angular/material/core";
|
|
9
|
+
import * as i8 from "@angular/material/form-field";
|
|
10
|
+
import * as i9 from "@angular/material/input";
|
|
11
|
+
import * as i10 from "@angular/material/button";
|
|
12
|
+
import * as i11 from "@maskito/angular";
|
|
13
|
+
import * as i12 from "@angular/material/icon";
|
|
14
|
+
import * as i13 from "@angular/material/select";
|
|
15
|
+
import * as i14 from "@ngx-translate/core";
|
|
17
16
|
export declare class SharedMatLatLongModule {
|
|
18
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedMatLatLongModule, never>;
|
|
19
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedMatLatLongModule, [typeof i1.MatLatLongField
|
|
18
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedMatLatLongModule, [typeof i1.MatLatLongField], [typeof i2.CommonModule, typeof i3.IonicModule, typeof i4.ReactiveFormsModule, typeof i5.SharedDirectivesModule, typeof i6.SharedPipesModule, typeof i7.MatCommonModule, typeof i8.MatFormFieldModule, typeof i9.MatInputModule, typeof i10.MatButtonModule, typeof i11.MaskitoDirective, typeof i12.MatIconModule, typeof i13.MatSelectModule, typeof i14.TranslateModule], [typeof i1.MatLatLongField]>;
|
|
20
19
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedMatLatLongModule>;
|
|
21
20
|
}
|
|
@@ -9,14 +9,13 @@ export declare class LatLongTestPage implements OnInit {
|
|
|
9
9
|
protected platform: PlatformService;
|
|
10
10
|
form: UntypedFormGroup;
|
|
11
11
|
geoPositionMessage: string;
|
|
12
|
-
mode: '
|
|
13
|
-
selectedFormat: string;
|
|
12
|
+
mode: 'desktop' | 'mobile' | 'temp';
|
|
14
13
|
appearance: MatFormFieldAppearance;
|
|
15
14
|
constructor(formBuilder: UntypedFormBuilder, platform: PlatformService);
|
|
16
15
|
ngOnInit(): void;
|
|
17
16
|
toggleMode(value: any): void;
|
|
18
17
|
loadData(): Promise<void>;
|
|
19
|
-
doSubmit(event:
|
|
18
|
+
doSubmit(event: any): void;
|
|
20
19
|
geoPosition(event: Event, controlName?: string): Promise<void>;
|
|
21
20
|
toggleAppearance(event: MatCheckboxChange): void;
|
|
22
21
|
stringify: {
|
package/src/assets/i18n/fr.json
CHANGED
|
@@ -86,14 +86,7 @@
|
|
|
86
86
|
"LAT_SIGN_S": "S",
|
|
87
87
|
"LONG_SIGN_PLACEHOLDER": "E|W",
|
|
88
88
|
"LONG_SIGN_E": "E",
|
|
89
|
-
"LONG_SIGN_W": "W"
|
|
90
|
-
"SINGLE_FIELD_PATTERN": {
|
|
91
|
-
"DD": "DD",
|
|
92
|
-
"DDD": "DDD",
|
|
93
|
-
"MM": "MM",
|
|
94
|
-
"MM_MMM": "MM.MMM",
|
|
95
|
-
"SS_SS": "SS.SS"
|
|
96
|
-
}
|
|
89
|
+
"LONG_SIGN_W": "W"
|
|
97
90
|
},
|
|
98
91
|
"METADATA": "Metadata:",
|
|
99
92
|
"DAY_UNIT": "j",
|
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.2.
|
|
5
|
+
"version": "18.2.28-alpha1",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|