@sumaris-net/ngx-components 18.18.21 → 18.18.23
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 +3 -0
- package/esm2022/src/app/admin/users/users.mjs +9 -6
- package/esm2022/src/app/core/services/config.service.mjs +2 -2
- package/esm2022/src/app/core/services/local-settings.service.mjs +4 -4
- package/esm2022/src/app/core/services/network.service.mjs +4 -4
- package/esm2022/src/app/core/services/platform.service.mjs +2 -2
- package/esm2022/src/app/core/services/storage/entities-storage.service.mjs +2 -2
- package/esm2022/src/app/core/table/table.class.mjs +2 -2
- package/esm2022/src/app/shared/form/field.component.mjs +6 -26
- package/esm2022/src/app/shared/form/field.model.mjs +2 -1
- package/esm2022/src/app/shared/material/latlong/material.latlong-input.mjs +5 -5
- package/esm2022/src/app/shared/services/startable-service.class.mjs +3 -3
- package/fesm2022/sumaris-net.ngx-components.mjs +23 -41
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/admin/users/users.d.ts +2 -1
- package/src/app/shared/form/field.component.d.ts +4 -6
- package/src/app/shared/material/latlong/material.latlong-input.d.ts +2 -2
- package/src/assets/manifest.json +1 -1
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ import { AccountService } from '../../core/services/account.service';
|
|
|
6
6
|
import { AbstractControl, UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
7
7
|
import { AppTable } from '../../core/table/table.class';
|
|
8
8
|
import { ValidatorService } from '@e-is/ngx-material-table';
|
|
9
|
-
import { FormFieldDefinition } from '../../shared/form/field.model';
|
|
9
|
+
import { FormFieldDefinition, FormFieldDefinitionUtils } from '../../shared/form/field.model';
|
|
10
10
|
import { PersonFilter } from './person.filter';
|
|
11
11
|
import { ConfigService } from '../../core/services/config.service';
|
|
12
12
|
import { MatExpansionPanel } from '@angular/material/expansion';
|
|
@@ -72,6 +72,7 @@ export declare class UsersPage extends AppTable<Person, PersonFilter> implements
|
|
|
72
72
|
toggleCompactMode(): Promise<void>;
|
|
73
73
|
exportToCsv(event: Event): Promise<void>;
|
|
74
74
|
protected devToggleDebug(): Promise<void>;
|
|
75
|
+
getDisplayValueFn: typeof FormFieldDefinitionUtils.getDisplayValueFn;
|
|
75
76
|
static ɵfac: i0.ɵɵFactoryDeclaration<UsersPage, never>;
|
|
76
77
|
static ɵcmp: i0.ɵɵComponentDeclaration<UsersPage, "app-users-table", never, { "showUsernameColumn": { "alias": "showUsernameColumn"; "required": false; }; "showUsernameExtranetColumn": { "alias": "showUsernameExtranetColumn"; "required": false; }; "showEmailColumn": { "alias": "showEmailColumn"; "required": false; }; "showPubkeyColumn": { "alias": "showPubkeyColumn"; "required": false; }; "showCreationDateColumn": { "alias": "showCreationDateColumn"; "required": false; }; "showUpdateDateColumn": { "alias": "showUpdateDateColumn"; "required": false; }; "title": { "alias": "title"; "required": false; }; "canSendMessage": { "alias": "canSendMessage"; "required": false; }; "canEdit": { "alias": "canEdit"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "usePageSettings": { "alias": "usePageSettings"; "required": false; }; "sticky": { "alias": "sticky"; "required": false; }; "stickyEnd": { "alias": "stickyEnd"; "required": false; }; "canDownload": { "alias": "canDownload"; "required": false; }; "inModal": { "alias": "inModal"; "required": false; }; "showFooter": { "alias": "showFooter"; "required": false; }; "showToolbar": { "alias": "showToolbar"; "required": false; }; "showPaginator": { "alias": "showPaginator"; "required": false; }; }, {}, never, never, false, never>;
|
|
77
78
|
static ngAcceptInputType_canSendMessage: unknown;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, EventEmitter, Injector, OnInit } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor, FormGroupDirective, UntypedFormControl } from '@angular/forms';
|
|
3
|
-
import { FormFieldDefinition, FormFieldType } from './field.model';
|
|
3
|
+
import { FormFieldDefinition, FormFieldDefinitionUtils, FormFieldType } from './field.model';
|
|
4
4
|
import { TranslateService } from '@ngx-translate/core';
|
|
5
5
|
import { filterNumberInput, selectInputContentFromEvent } from '../inputs';
|
|
6
|
-
import { AppFloatLabelType,
|
|
6
|
+
import { AppFloatLabelType, Property } from '../types';
|
|
7
7
|
import { ThemePalette } from '@angular/material/core';
|
|
8
8
|
import { PredefinedColors } from '@ionic/core';
|
|
9
9
|
import { MatAutocompleteField } from '../material/autocomplete/material.autocomplete';
|
|
@@ -18,14 +18,12 @@ export declare class AppFormField implements OnInit, ControlValueAccessor {
|
|
|
18
18
|
private _onTouchedCallback;
|
|
19
19
|
private _definition;
|
|
20
20
|
protected _values: Property[];
|
|
21
|
-
protected _disabled: boolean;
|
|
22
21
|
protected type: FormFieldType;
|
|
23
22
|
protected numberInputStep: string;
|
|
24
23
|
set definition(value: FormFieldDefinition);
|
|
25
24
|
get definition(): FormFieldDefinition;
|
|
26
25
|
readonly: boolean;
|
|
27
|
-
|
|
28
|
-
get disabled(): boolean;
|
|
26
|
+
disabled: boolean;
|
|
29
27
|
formControl: UntypedFormControl;
|
|
30
28
|
formControlName: string;
|
|
31
29
|
placeholder: string;
|
|
@@ -59,7 +57,7 @@ export declare class AppFormField implements OnInit, ControlValueAccessor {
|
|
|
59
57
|
focus(): void;
|
|
60
58
|
filterNumberInput: typeof filterNumberInput;
|
|
61
59
|
selectInputContentFromEvent: typeof selectInputContentFromEvent;
|
|
62
|
-
getDisplayValueFn
|
|
60
|
+
getDisplayValueFn: typeof FormFieldDefinitionUtils.getDisplayValueFn;
|
|
63
61
|
getColorContrast(color: string): string | undefined;
|
|
64
62
|
/**
|
|
65
63
|
* Allow to reload values, if not detected
|
|
@@ -4,7 +4,6 @@ import { LatLongPattern, LatLongSign, LatLongType } from './latlong.utils';
|
|
|
4
4
|
import { MaskitoOptions } from '@maskito/core';
|
|
5
5
|
import { MatFormField, MatFormFieldControl } from '@angular/material/form-field';
|
|
6
6
|
import { Subject } from 'rxjs';
|
|
7
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
8
7
|
import * as i0 from "@angular/core";
|
|
9
8
|
export declare class MatLatLongFieldInput implements MatFormFieldControl<number>, ControlValueAccessor, OnInit, OnDestroy {
|
|
10
9
|
private _elementRef;
|
|
@@ -33,7 +32,7 @@ export declare class MatLatLongFieldInput implements MatFormFieldControl<number>
|
|
|
33
32
|
userAriaDescribedBy: string;
|
|
34
33
|
placeholder: string;
|
|
35
34
|
get required(): boolean;
|
|
36
|
-
set required(value:
|
|
35
|
+
set required(value: boolean);
|
|
37
36
|
private _required;
|
|
38
37
|
get disabled(): boolean;
|
|
39
38
|
set disabled(value: boolean);
|
|
@@ -82,5 +81,6 @@ export declare class MatLatLongFieldInput implements MatFormFieldControl<number>
|
|
|
82
81
|
private updateValidators;
|
|
83
82
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatLatLongFieldInput, [null, { optional: true; }, { optional: true; self: true; }]>;
|
|
84
83
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatLatLongFieldInput, "mat-latlong-input", never, { "userAriaDescribedBy": { "alias": "aria-describedby"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; "type": { "alias": "type"; "required": false; }; "pattern": { "alias": "latLongPattern"; "required": false; }; "defaultSign": { "alias": "defaultSign"; "required": false; }; "maxDecimals": { "alias": "maxDecimals"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; }, {}, never, never, false, never>;
|
|
84
|
+
static ngAcceptInputType_required: unknown;
|
|
85
85
|
static ngAcceptInputType_disabled: unknown;
|
|
86
86
|
}
|
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.18.
|
|
5
|
+
"version": "18.18.23",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|