@sumaris-net/ngx-components 18.0.2 → 18.0.4
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/esm2022/public_api.mjs +2 -1
- package/esm2022/src/app/admin/users/users.mjs +2 -2
- package/esm2022/src/app/core/form/properties/properties.form.mjs +38 -17
- package/esm2022/src/app/core/form/properties/properties.utils.mjs +6 -4
- package/esm2022/src/app/core/form/properties/testing/properties-form.test.mjs +1 -1
- package/esm2022/src/app/core/menu/menu.component.mjs +3 -3
- package/esm2022/src/app/core/settings/settings.page.mjs +9 -4
- package/esm2022/src/app/shared/debug/debug.component.mjs +10 -6
- package/esm2022/src/app/shared/form/field.component.mjs +11 -18
- package/esm2022/src/app/shared/form/field.model.mjs +59 -2
- package/esm2022/src/app/shared/image/gallery/testing/gallery.testing.mjs +1 -1
- package/esm2022/src/app/shared/pipes/display-with.pipe.mjs +23 -0
- package/esm2022/src/app/shared/pipes/pipes.module.mjs +7 -3
- package/esm2022/src/app/shared/pipes/property.pipes.mjs +6 -1
- package/fesm2022/sumaris-net.ngx-components.mjs +223 -117
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
- package/src/app/core/form/properties/properties.form.d.ts +11 -3
- package/src/app/core/settings/settings.page.d.ts +2 -0
- package/src/app/shared/debug/debug.component.d.ts +2 -1
- package/src/app/shared/form/field.component.d.ts +1 -3
- package/src/app/shared/form/field.model.d.ts +29 -1
- package/src/app/shared/pipes/display-with.pipe.d.ts +8 -0
- package/src/app/shared/pipes/pipes.module.d.ts +5 -4
- package/src/app/shared/pipes/property.pipes.d.ts +1 -1
- package/src/assets/i18n/en-US.json +6 -0
- package/src/assets/i18n/en.json +6 -0
- package/src/assets/i18n/fr.json +6 -0
- package/src/assets/manifest.json +1 -1
- package/src/theme/_ngx-components.scss +2 -4
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -88,6 +88,7 @@ export * from './src/app/shared/pipes/maskito.pipe';
|
|
|
88
88
|
export * from './src/app/shared/pipes/selection.pipes';
|
|
89
89
|
export * from './src/app/shared/pipes/badge.pipes';
|
|
90
90
|
export * from './src/app/shared/pipes/html.pipes';
|
|
91
|
+
export * from './src/app/shared/pipes/display-with.pipe';
|
|
91
92
|
export * from './src/app/shared/services';
|
|
92
93
|
export * from './src/app/shared/audio/audio';
|
|
93
94
|
export * from './src/app/shared/file/file.service';
|
|
@@ -18,6 +18,7 @@ export interface AppPropertiesFormState {
|
|
|
18
18
|
definitionKeys: Property[];
|
|
19
19
|
}
|
|
20
20
|
export declare class AppPropertiesForm<O = any, T extends Property<O> = Property<O>, S extends AppPropertiesFormState = AppPropertiesFormState> extends AppForm<T[]> implements OnInit {
|
|
21
|
+
protected injector: Injector;
|
|
21
22
|
protected formBuilder: UntypedFormBuilder;
|
|
22
23
|
protected dateAdapter: DateAdapter<Moment>;
|
|
23
24
|
protected cd: ChangeDetectorRef;
|
|
@@ -45,8 +46,15 @@ export declare class AppPropertiesForm<O = any, T extends Property<O> = Property
|
|
|
45
46
|
showHintKey: boolean;
|
|
46
47
|
hintKeyPrefix: string;
|
|
47
48
|
showMoreButton: boolean;
|
|
48
|
-
|
|
49
|
+
addButtonText: string;
|
|
50
|
+
addButtonTitle: string;
|
|
49
51
|
showAddButton: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated Use addButtonTitle instead
|
|
54
|
+
* @param value
|
|
55
|
+
*/
|
|
56
|
+
set showMoreButtonTitle(value: string);
|
|
57
|
+
get showMoreButtonTitle(): string;
|
|
50
58
|
set definitions(value: FormFieldDefinition[]);
|
|
51
59
|
get definitions(): FormFieldDefinition[];
|
|
52
60
|
set value(data: T[]);
|
|
@@ -55,7 +63,7 @@ export declare class AppPropertiesForm<O = any, T extends Property<O> = Property
|
|
|
55
63
|
get fieldForms(): UntypedFormGroup[];
|
|
56
64
|
constructor(injector: Injector, formBuilder: UntypedFormBuilder, dateAdapter: DateAdapter<Moment>, cd: ChangeDetectorRef, validator: PropertyValidator, formGroupDir: FormGroupDirective);
|
|
57
65
|
ngOnInit(): void;
|
|
58
|
-
protected
|
|
66
|
+
protected processDefinitions(definitions: FormFieldDefinition[]): FormFieldDefinition[];
|
|
59
67
|
getDefinitionAt(index: number): FormFieldDefinition;
|
|
60
68
|
updateDefinitionAt(index: number, opts?: {
|
|
61
69
|
emitEvent?: boolean;
|
|
@@ -67,7 +75,7 @@ export declare class AppPropertiesForm<O = any, T extends Property<O> = Property
|
|
|
67
75
|
protected markForCheck(): void;
|
|
68
76
|
protected isEmptyProperty(obj: Property): boolean;
|
|
69
77
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppPropertiesForm<any, any, any>, [null, null, null, null, null, { optional: true; }]>;
|
|
70
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AppPropertiesForm<any, any, any>, "app-properties-form", never, { "formArrayName": { "alias": "formArrayName"; "required": false; }; "formArray": { "alias": "formArray"; "required": false; }; "options": { "alias": "options"; "required": false; }; "chipColor": { "alias": "chipColor"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "showHintKey": { "alias": "showHintKey"; "required": false; }; "hintKeyPrefix": { "alias": "hintKeyPrefix"; "required": false; }; "showMoreButton": { "alias": "showMoreButton"; "required": false; }; "
|
|
78
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AppPropertiesForm<any, any, any>, "app-properties-form", never, { "formArrayName": { "alias": "formArrayName"; "required": false; }; "formArray": { "alias": "formArray"; "required": false; }; "options": { "alias": "options"; "required": false; }; "chipColor": { "alias": "chipColor"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "showHintKey": { "alias": "showHintKey"; "required": false; }; "hintKeyPrefix": { "alias": "hintKeyPrefix"; "required": false; }; "showMoreButton": { "alias": "showMoreButton"; "required": false; }; "addButtonText": { "alias": "addButtonText"; "required": false; }; "addButtonTitle": { "alias": "addButtonTitle"; "required": false; }; "showAddButton": { "alias": "showAddButton"; "required": false; }; "showMoreButtonTitle": { "alias": "showMoreButtonTitle"; "required": false; }; "definitions": { "alias": "definitions"; "required": false; }; }, {}, never, never, false, never>;
|
|
71
79
|
static ngAcceptInputType_mobile: unknown;
|
|
72
80
|
static ngAcceptInputType_showHintKey: unknown;
|
|
73
81
|
static ngAcceptInputType_showMoreButton: unknown;
|
|
@@ -34,6 +34,7 @@ export declare class SettingsPage extends AppForm<LocalSettings> implements OnIn
|
|
|
34
34
|
protected saving: boolean;
|
|
35
35
|
protected usageModes: UsageMode[];
|
|
36
36
|
protected menuItems: IMenuItem[];
|
|
37
|
+
protected showOptionKeys: boolean;
|
|
37
38
|
protected propertyDefinitions: FormFieldDefinition[];
|
|
38
39
|
protected latLongFormats: string[];
|
|
39
40
|
get accountInheritance(): boolean;
|
|
@@ -76,6 +77,7 @@ export declare class SettingsPage extends AppForm<LocalSettings> implements OnIn
|
|
|
76
77
|
emitEvent?: boolean;
|
|
77
78
|
}): void;
|
|
78
79
|
protected toggleDarkMode(enable?: boolean): Promise<void>;
|
|
80
|
+
protected toggleShowOptionKey(): void;
|
|
79
81
|
protected markForCheck(): void;
|
|
80
82
|
static ɵfac: i0.ɵɵFactoryDeclaration<SettingsPage, [null, null, null, null, null, null, null, null, null, null, null, null, { optional: true; }]>;
|
|
81
83
|
static ɵcmp: i0.ɵɵComponentDeclaration<SettingsPage, "page-settings", never, {}, {}, never, never, false, never>;
|
|
@@ -2,6 +2,7 @@ import { MatExpansionPanel } from '@angular/material/expansion';
|
|
|
2
2
|
import { Environment } from '../../../environments/environment.class';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class DebugComponent {
|
|
5
|
+
titlePrefix: string;
|
|
5
6
|
title: string;
|
|
6
7
|
enable: boolean;
|
|
7
8
|
expanded: boolean;
|
|
@@ -9,5 +10,5 @@ export declare class DebugComponent {
|
|
|
9
10
|
constructor(environment: Environment);
|
|
10
11
|
toggle(): void;
|
|
11
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<DebugComponent, [{ optional: true; }]>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DebugComponent, "app-debug", never, { "title": { "alias": "title"; "required": false; }; "enable": { "alias": "enable"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DebugComponent, "app-debug", never, { "titlePrefix": { "alias": "titlePrefix"; "required": false; }; "title": { "alias": "title"; "required": false; }; "enable": { "alias": "enable"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
13
14
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, EventEmitter,
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, Injector, OnInit } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor, FormGroupDirective, UntypedFormControl } from '@angular/forms';
|
|
3
3
|
import { AppFloatLabelType, DisplayFn, FormFieldDefinition, FormFieldType } from './field.model';
|
|
4
4
|
import { TranslateService } from '@ngx-translate/core';
|
|
@@ -64,8 +64,6 @@ export declare class AppFormField implements OnInit, ControlValueAccessor {
|
|
|
64
64
|
*/
|
|
65
65
|
reloadItems(value?: any): void;
|
|
66
66
|
protected computeNumberInputStep(definition: FormFieldDefinition): string;
|
|
67
|
-
protected computeValuesFromToken(token: InjectionToken<(string | Property)[]>): any[];
|
|
68
|
-
protected computeValues(values: (string | Property)[]): Property[];
|
|
69
67
|
protected checkAndResolveFormControl(): void;
|
|
70
68
|
protected _onDefinitionChanged(definition: FormFieldDefinition, opts?: {
|
|
71
69
|
emitEvent?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ObjectMap, Property } from '../types';
|
|
2
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { InjectionToken, Injector } from '@angular/core';
|
|
3
3
|
import { MatAutocompleteFieldConfig } from '../material/autocomplete/material.autocomplete.config';
|
|
4
4
|
import { UserProfileLabel } from '../../core/services/model/person.model';
|
|
5
5
|
import { FloatLabelType } from '@angular/material/form-field';
|
|
@@ -45,6 +45,34 @@ export declare interface FormFieldDefinition<K = string, T = FormFieldType, E =
|
|
|
45
45
|
deserialize?: (value: string) => E | Promise<E>;
|
|
46
46
|
}
|
|
47
47
|
export declare type FormFieldDefinitionMap = ObjectMap<FormFieldDefinition>;
|
|
48
|
+
export declare class FormFieldDefinitionUtils {
|
|
49
|
+
/**
|
|
50
|
+
* Prepares an array of form field definitions by using the specified injector to process each definition.
|
|
51
|
+
*
|
|
52
|
+
* @param {Injector} injector - The injector used to process each form field definition.
|
|
53
|
+
* @param {FormFieldDefinition[]} defs - An array of form field definitions to be prepared.
|
|
54
|
+
* @return {FormFieldDefinition[]} An array of prepared form field definitions.
|
|
55
|
+
*/
|
|
56
|
+
static prepareDefinitions(injector: Injector, defs: FormFieldDefinition[]): FormFieldDefinition[];
|
|
57
|
+
/**
|
|
58
|
+
* Prepares the definition by processing its type and optionally setting the values property.
|
|
59
|
+
*
|
|
60
|
+
* @param {Injector} injector - The injector used to get the necessary services.
|
|
61
|
+
* @param {FormFieldDefinition} def - The form field definition to be prepared.
|
|
62
|
+
* @return {FormFieldDefinition} - The prepared form field definition with updated values if the type is 'enum' or 'enums'.
|
|
63
|
+
*/
|
|
64
|
+
static prepareDefinition(injector: Injector, def: FormFieldDefinition): FormFieldDefinition;
|
|
65
|
+
/**
|
|
66
|
+
* Retrieves an array of Property objects from the provided enum values.
|
|
67
|
+
*
|
|
68
|
+
* @param {Injector} injector - The Angular injector to resolve the InjectionToken.
|
|
69
|
+
* @param {(string | Property)[] | InjectionToken<(string | Property)[]>} enumValues - The enum values, which can be an array of strings, array of Property objects, or an InjectionToken that resolves to such an array.
|
|
70
|
+
* @return {Property[]} An array of Property objects.
|
|
71
|
+
*/
|
|
72
|
+
static getEnumValues(injector: Injector, enumValues: (string | Property)[] | InjectionToken<(string | Property)[]>): Property[];
|
|
73
|
+
static getDisplayValueFn(definition: FormFieldDefinition): DisplayFn;
|
|
74
|
+
private static asPropertyArray;
|
|
75
|
+
}
|
|
48
76
|
export declare abstract class FormFieldValuesHolder {
|
|
49
77
|
getAsBoolean(data: ObjectMap, definition: FormFieldDefinition): boolean;
|
|
50
78
|
getAsInt(data: any, definition: FormFieldDefinition): number;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DisplayWithPipe implements PipeTransform {
|
|
4
|
+
transform(value: any, displayFn: (any: any) => string): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DisplayWithPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<DisplayWithPipe, "displayWith", false>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DisplayWithPipe>;
|
|
8
|
+
}
|
|
@@ -21,11 +21,12 @@ import * as i19 from "./maskito.pipe";
|
|
|
21
21
|
import * as i20 from "./selection.pipes";
|
|
22
22
|
import * as i21 from "./badge.pipes";
|
|
23
23
|
import * as i22 from "./html.pipes";
|
|
24
|
-
import * as i23 from "
|
|
25
|
-
import * as i24 from "@
|
|
26
|
-
import * as i25 from "@
|
|
24
|
+
import * as i23 from "./display-with.pipe";
|
|
25
|
+
import * as i24 from "@angular/common";
|
|
26
|
+
import * as i25 from "@ionic/angular";
|
|
27
|
+
import * as i26 from "@ngx-translate/core";
|
|
27
28
|
export declare class SharedPipesModule {
|
|
28
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedPipesModule, never>;
|
|
29
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedPipesModule, [typeof i1.PropertyGetPipe, typeof i1.PropertyFormatPipe, typeof i1.ValueFormatPipe, typeof i2.DateFormatPipe, typeof i3.DateDiffDurationPipe, typeof i4.DurationPipe, typeof i5.DateFromNowPipe, typeof i6.LatLongFormatPipe, typeof i6.LatitudeFormatPipe, typeof i6.LongitudeFormatPipe, typeof i7.HighlightPipe, typeof i8.NumberFormatPipe, typeof i9.FileSizePipe, typeof i10.MathAbsPipe, typeof i10.OddPipe, typeof i10.EvenPipe, typeof i11.NotEmptyArrayPipe, typeof i11.EmptyArrayPipe, typeof i11.ArrayLengthPipe, typeof i11.ArrayFirstPipe, typeof i11.ArrayLastPipe, typeof i11.ArrayPluckPipe, typeof i11.ArrayIncludesPipe, typeof i11.ArrayFilterPipe, typeof i11.ArrayJoinPipe, typeof i12.MapGetPipe, typeof i12.MapKeysPipe, typeof i12.MapValuesPipe, typeof i13.IsNilOrBlankPipe, typeof i13.IsNotNilOrBlankPipe, typeof i13.IsNilOrNaNPipe, typeof i13.IsNotNilOrNaNPipe, typeof i13.IsNotNilPipe, typeof i13.IsNilPipe, typeof i13.ToStringPipe, typeof i13.CapitalizePipe, typeof i13.StrLengthPipe, typeof i13.StrIncludesPipe, typeof i1.BooleanFormatPipe, typeof i14.TranslateContextPipe, typeof i14.TranslatablePipe, typeof i15.NgInitDirective, typeof i16.FormErrorPipe, typeof i16.FormErrorTranslatePipe, typeof i16.FormGetPipe, typeof i16.FormGetControlPipe, typeof i16.FormGetArrayPipe, typeof i16.FormGetGroupPipe, typeof i16.FormGetValuePipe, typeof i17.MatColorPipe, typeof i18.AsAnyPipe, typeof i18.AsArrayPipe, typeof i18.AsObservablePipe, typeof i18.AsFloatLabelTypePipe, typeof i19.MaskitoPlaceholderPipe, typeof i20.IsSelectedPipe, typeof i20.IsNotEmptySelectionPipe, typeof i20.IsEmptySelectionPipe, typeof i20.SelectionLengthPipe, typeof i20.IsMultipleSelectionPipe, typeof i20.IsSingleSelectionPipe, typeof i21.BadgeNumberPipe, typeof i18.AsBooleanPipe, typeof i22.SafeHtmlPipe, typeof i22.NoHtmlPipe], [typeof
|
|
30
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedPipesModule, [typeof i1.PropertyGetPipe, typeof i1.PropertyFormatPipe, typeof i1.ValueFormatPipe, typeof i2.DateFormatPipe, typeof i3.DateDiffDurationPipe, typeof i4.DurationPipe, typeof i5.DateFromNowPipe, typeof i6.LatLongFormatPipe, typeof i6.LatitudeFormatPipe, typeof i6.LongitudeFormatPipe, typeof i7.HighlightPipe, typeof i8.NumberFormatPipe, typeof i9.FileSizePipe, typeof i10.MathAbsPipe, typeof i10.OddPipe, typeof i10.EvenPipe, typeof i11.NotEmptyArrayPipe, typeof i11.EmptyArrayPipe, typeof i11.ArrayLengthPipe, typeof i11.ArrayFirstPipe, typeof i11.ArrayLastPipe, typeof i11.ArrayPluckPipe, typeof i11.ArrayIncludesPipe, typeof i11.ArrayFilterPipe, typeof i11.ArrayJoinPipe, typeof i12.MapGetPipe, typeof i12.MapKeysPipe, typeof i12.MapValuesPipe, typeof i13.IsNilOrBlankPipe, typeof i13.IsNotNilOrBlankPipe, typeof i13.IsNilOrNaNPipe, typeof i13.IsNotNilOrNaNPipe, typeof i13.IsNotNilPipe, typeof i13.IsNilPipe, typeof i13.ToStringPipe, typeof i13.CapitalizePipe, typeof i13.StrLengthPipe, typeof i13.StrIncludesPipe, typeof i1.BooleanFormatPipe, typeof i14.TranslateContextPipe, typeof i14.TranslatablePipe, typeof i15.NgInitDirective, typeof i16.FormErrorPipe, typeof i16.FormErrorTranslatePipe, typeof i16.FormGetPipe, typeof i16.FormGetControlPipe, typeof i16.FormGetArrayPipe, typeof i16.FormGetGroupPipe, typeof i16.FormGetValuePipe, typeof i17.MatColorPipe, typeof i18.AsAnyPipe, typeof i18.AsArrayPipe, typeof i18.AsObservablePipe, typeof i18.AsFloatLabelTypePipe, typeof i19.MaskitoPlaceholderPipe, typeof i20.IsSelectedPipe, typeof i20.IsNotEmptySelectionPipe, typeof i20.IsEmptySelectionPipe, typeof i20.SelectionLengthPipe, typeof i20.IsMultipleSelectionPipe, typeof i20.IsSingleSelectionPipe, typeof i21.BadgeNumberPipe, typeof i18.AsBooleanPipe, typeof i22.SafeHtmlPipe, typeof i22.NoHtmlPipe, typeof i23.DisplayWithPipe], [typeof i24.CommonModule, typeof i25.IonicModule, typeof i26.TranslateModule], [typeof i1.PropertyGetPipe, typeof i1.PropertyFormatPipe, typeof i1.ValueFormatPipe, typeof i2.DateFormatPipe, typeof i3.DateDiffDurationPipe, typeof i4.DurationPipe, typeof i5.DateFromNowPipe, typeof i6.LatLongFormatPipe, typeof i6.LatitudeFormatPipe, typeof i6.LongitudeFormatPipe, typeof i7.HighlightPipe, typeof i8.NumberFormatPipe, typeof i9.FileSizePipe, typeof i10.MathAbsPipe, typeof i10.OddPipe, typeof i10.EvenPipe, typeof i11.NotEmptyArrayPipe, typeof i11.EmptyArrayPipe, typeof i11.ArrayLengthPipe, typeof i11.ArrayFirstPipe, typeof i11.ArrayLastPipe, typeof i11.ArrayPluckPipe, typeof i11.ArrayIncludesPipe, typeof i11.ArrayFilterPipe, typeof i11.ArrayJoinPipe, typeof i12.MapGetPipe, typeof i12.MapKeysPipe, typeof i12.MapValuesPipe, typeof i13.IsNilOrBlankPipe, typeof i13.IsNotNilOrBlankPipe, typeof i13.IsNilOrNaNPipe, typeof i13.IsNotNilOrNaNPipe, typeof i13.IsNotNilPipe, typeof i13.IsNilPipe, typeof i13.ToStringPipe, typeof i13.CapitalizePipe, typeof i13.StrLengthPipe, typeof i13.StrIncludesPipe, typeof i1.BooleanFormatPipe, typeof i14.TranslateContextPipe, typeof i14.TranslatablePipe, typeof i15.NgInitDirective, typeof i16.FormErrorPipe, typeof i16.FormErrorTranslatePipe, typeof i16.FormGetPipe, typeof i16.FormGetControlPipe, typeof i16.FormGetArrayPipe, typeof i16.FormGetGroupPipe, typeof i16.FormGetValuePipe, typeof i17.MatColorPipe, typeof i18.AsAnyPipe, typeof i18.AsArrayPipe, typeof i18.AsObservablePipe, typeof i18.AsFloatLabelTypePipe, typeof i19.MaskitoPlaceholderPipe, typeof i20.IsSelectedPipe, typeof i20.IsNotEmptySelectionPipe, typeof i20.IsEmptySelectionPipe, typeof i20.SelectionLengthPipe, typeof i20.IsMultipleSelectionPipe, typeof i20.IsSingleSelectionPipe, typeof i21.BadgeNumberPipe, typeof i18.AsBooleanPipe, typeof i22.SafeHtmlPipe, typeof i22.NoHtmlPipe, typeof i23.DisplayWithPipe]>;
|
|
30
31
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedPipesModule>;
|
|
31
32
|
}
|
|
@@ -16,7 +16,7 @@ declare abstract class AbstractValueFormatPipe {
|
|
|
16
16
|
private translate;
|
|
17
17
|
get i18nYes(): string;
|
|
18
18
|
get i18nNo(): string;
|
|
19
|
-
protected valueToString(value: any, definition?: FormFieldDefinition): string;
|
|
19
|
+
protected valueToString(value: any, definition?: Partial<FormFieldDefinition>): string;
|
|
20
20
|
}
|
|
21
21
|
export declare class PropertyFormatPipe extends AbstractValueFormatPipe implements PipeTransform {
|
|
22
22
|
transform(obj: any, args: string | Array<string | number> | FormFieldDefinition): string | Promise<string>;
|
|
@@ -127,6 +127,11 @@
|
|
|
127
127
|
"TABLE": {
|
|
128
128
|
"FILTERED_PARENTHESIS": "(filtered)"
|
|
129
129
|
},
|
|
130
|
+
"DEBUG": {
|
|
131
|
+
"TITLE": "Debug",
|
|
132
|
+
"BTN_DEBUG_DOTS": "Débogage...",
|
|
133
|
+
"BTN_ENABLE_DEBUG": "Enable debug?"
|
|
134
|
+
},
|
|
130
135
|
"NAMED_FILTER": {
|
|
131
136
|
"TITLE": "Saved filters",
|
|
132
137
|
"SAVE": "Save the filter",
|
|
@@ -395,6 +400,7 @@
|
|
|
395
400
|
"BTN_CHANGE_PEER": "See available nodes",
|
|
396
401
|
"BTN_DARK_MODE": "Dark theme?",
|
|
397
402
|
"BTN_SHOW_MORE_HELP": "Show more parameters",
|
|
403
|
+
"BTN_SHOW_OPTION_KEY": "Show the option code?",
|
|
398
404
|
"BTN_CLEAR_CACHE": "Clear data cache",
|
|
399
405
|
"OFFLINE_MODE": "Force offline mode? (experimental)",
|
|
400
406
|
"DATA_ENTRY_DIVIDER": "Data entry settings",
|
package/src/assets/i18n/en.json
CHANGED
|
@@ -126,6 +126,11 @@
|
|
|
126
126
|
"TABLE": {
|
|
127
127
|
"FILTERED_PARENTHESIS": "(filtered)"
|
|
128
128
|
},
|
|
129
|
+
"DEBUG": {
|
|
130
|
+
"TITLE": "Debug",
|
|
131
|
+
"BTN_DEBUG_DOTS": "Débogage...",
|
|
132
|
+
"BTN_ENABLE_DEBUG": "Enable debug?"
|
|
133
|
+
},
|
|
129
134
|
"NAMED_FILTER": {
|
|
130
135
|
"TITLE": "Saved filters",
|
|
131
136
|
"SAVE": "Save the filter",
|
|
@@ -394,6 +399,7 @@
|
|
|
394
399
|
"BTN_CHANGE_PEER": "See available nodes",
|
|
395
400
|
"BTN_DARK_MODE": "Dark theme?",
|
|
396
401
|
"BTN_SHOW_MORE_HELP": "Show more parameters",
|
|
402
|
+
"BTN_SHOW_OPTION_KEY": "Show the option code?",
|
|
397
403
|
"BTN_CLEAR_CACHE": "Clear data cache",
|
|
398
404
|
"OFFLINE_MODE": "Force offline mode? (experimental)",
|
|
399
405
|
"DATA_ENTRY_DIVIDER": "Data entry settings",
|
package/src/assets/i18n/fr.json
CHANGED
|
@@ -126,6 +126,11 @@
|
|
|
126
126
|
"TABLE": {
|
|
127
127
|
"FILTERED_PARENTHESIS": "(filtré)"
|
|
128
128
|
},
|
|
129
|
+
"DEBUG": {
|
|
130
|
+
"TITLE": "Debug",
|
|
131
|
+
"BTN_DEBUG_DOTS": "Débogage...",
|
|
132
|
+
"BTN_ENABLE_DEBUG": "Activer le débogage ?"
|
|
133
|
+
},
|
|
129
134
|
"NAMED_FILTER": {
|
|
130
135
|
"TITLE": "Filtres enregistrés",
|
|
131
136
|
"SAVE": "Sauvegarder le filtre",
|
|
@@ -394,6 +399,7 @@
|
|
|
394
399
|
"BTN_CHANGE_PEER": "Voir les nœuds disponibles",
|
|
395
400
|
"BTN_DARK_MODE": "Mode sombre ? (expérimental)",
|
|
396
401
|
"BTN_SHOW_MORE_HELP": "Afficher plus de paramètres",
|
|
402
|
+
"BTN_SHOW_OPTION_KEY": "Afficher le code des options ?",
|
|
397
403
|
"BTN_CLEAR_CACHE": "Vider le cache",
|
|
398
404
|
"OFFLINE_MODE": "Forcer le mode hors-ligne ?",
|
|
399
405
|
"DATA_ENTRY_DIVIDER": "Paramètres de saisie",
|
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.0.
|
|
5
|
+
"version": "18.0.4",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|
|
@@ -429,15 +429,13 @@ ion-list,
|
|
|
429
429
|
--ion-grid-column-padding: 0;
|
|
430
430
|
|
|
431
431
|
ion-col {
|
|
432
|
-
--
|
|
432
|
+
--padding-start: 8px;
|
|
433
433
|
padding: 0 !important;
|
|
434
|
-
padding-left: var(--
|
|
434
|
+
padding-left: var(--padding-start) !important;
|
|
435
435
|
text-overflow: ellipsis;
|
|
436
436
|
overflow: hidden;
|
|
437
437
|
white-space: nowrap;
|
|
438
438
|
}
|
|
439
|
-
|
|
440
|
-
|
|
441
439
|
}
|
|
442
440
|
|
|
443
441
|
.odd {
|