@sumaris-net/ngx-components 18.0.0 → 18.0.1-0.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/build.md +13 -11
- package/doc/changelog.md +42 -5
- package/esm2022/public_api.mjs +4 -2
- package/esm2022/src/app/admin/services/filter/person.filter.mjs +10 -3
- package/esm2022/src/app/admin/services/person.service.mjs +11 -5
- package/esm2022/src/app/admin/users/users.mjs +2 -2
- package/esm2022/src/app/core/about/about.modal.mjs +6 -4
- package/esm2022/src/app/core/about/about.module.mjs +5 -4
- package/esm2022/src/app/core/account/account.page.mjs +5 -6
- package/esm2022/src/app/core/account/token.table.mjs +10 -6
- package/esm2022/src/app/core/form/buttons/form-buttons-bar.component.mjs +5 -5
- package/esm2022/src/app/core/form/properties/properties.form.mjs +110 -57
- package/esm2022/src/app/core/form/properties/properties.utils.mjs +264 -32
- package/esm2022/src/app/core/form/properties/property.validator.mjs +36 -4
- package/esm2022/src/app/core/form/properties/testing/properties-form.test.mjs +26 -18
- package/esm2022/src/app/core/graphql/graphql.service.mjs +1 -1
- package/esm2022/src/app/core/home/home.module.mjs +2 -2
- package/esm2022/src/app/core/menu/menu.component.mjs +3 -3
- package/esm2022/src/app/core/menu/menu.module.mjs +2 -2
- package/esm2022/src/app/core/menu/menu.service.mjs +5 -4
- package/esm2022/src/app/core/register/register.form.mjs +1 -1
- package/esm2022/src/app/core/services/base-entity-service.class.mjs +1 -1
- package/esm2022/src/app/core/services/config/core.config.mjs +6 -1
- package/esm2022/src/app/core/services/local-settings.service.mjs +17 -8
- package/esm2022/src/app/core/services/model/config.model.mjs +1 -1
- package/esm2022/src/app/core/services/model/entity.model.mjs +2 -2
- package/esm2022/src/app/core/services/model/settings.model.mjs +1 -1
- package/esm2022/src/app/core/services/storage/entities-storage.service.mjs +1 -1
- package/esm2022/src/app/core/services/storage/entity-store.class.mjs +1 -1
- package/esm2022/src/app/core/services/validator/local-settings.validator.mjs +4 -24
- package/esm2022/src/app/core/settings/settings.page.mjs +51 -16
- package/esm2022/src/app/core/table/column/row-field.component.mjs +1 -1
- package/esm2022/src/app/core/table/testing/table.testing.mjs +1 -1
- package/esm2022/src/app/core/table/testing/table2.testing.mjs +1 -1
- package/esm2022/src/app/shared/debug/debug.component.mjs +10 -6
- package/esm2022/src/app/shared/form/field.component.mjs +39 -31
- package/esm2022/src/app/shared/form/field.model.mjs +59 -2
- package/esm2022/src/app/shared/functions.mjs +6 -3
- package/esm2022/src/app/shared/hotkeys/dialog/hotkeys-dialog.component.mjs +1 -1
- package/esm2022/src/app/shared/hotkeys/hotkeys.service.mjs +51 -17
- package/esm2022/src/app/shared/image/gallery/image-gallery.module.mjs +2 -2
- package/esm2022/src/app/shared/image/gallery/testing/gallery.testing.mjs +1 -1
- package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.config.mjs +1 -1
- package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.mjs +11 -4
- package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.module.mjs +2 -2
- package/esm2022/src/app/shared/material/autocomplete/testing/autocomplete.test.mjs +18 -8
- package/esm2022/src/app/shared/material/chips/chips.module.mjs +2 -2
- package/esm2022/src/app/shared/material/chips/material.chips.mjs +4 -3
- package/esm2022/src/app/shared/material/latlong/material.latlong.mjs +33 -10
- package/esm2022/src/app/shared/named-filter/named-filter-selector.component.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 +30 -31
- package/esm2022/src/app/shared/platforms.mjs +12 -4
- package/esm2022/src/app/shared/rx-state/rx-state.decorators.mjs +71 -0
- package/esm2022/src/app/shared/rx-state/rx-state.module.mjs +19 -0
- package/esm2022/src/app/shared/services/entity-service.class.mjs +1 -1
- package/esm2022/src/app/shared/services.mjs +34 -18
- package/esm2022/src/app/shared/shared.module.mjs +2 -2
- package/esm2022/src/app/shared/storage/storage-explorer.module.mjs +2 -2
- package/esm2022/src/app/shared/toolbar/modal-toolbar.mjs +2 -2
- package/esm2022/src/app/shared/toolbar/toolbar.module.mjs +2 -2
- package/esm2022/src/app/shared/types.mjs +1 -1
- package/esm2022/src/app/social/user-event/user-event.module.mjs +2 -2
- package/esm2022/src/environments/environment.mjs +3 -6
- package/fesm2022/sumaris-net.ngx-components.mjs +1429 -805
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +5 -2
- package/public_api.d.ts +3 -1
- package/src/app/admin/services/filter/person.filter.d.ts +1 -0
- package/src/app/admin/services/person.service.d.ts +8 -6
- package/src/app/core/about/about.modal.d.ts +1 -1
- package/src/app/core/about/about.module.d.ts +2 -1
- package/src/app/core/account/token.table.d.ts +1 -1
- package/src/app/core/form/properties/properties.form.d.ts +28 -11
- package/src/app/core/form/properties/properties.utils.d.ts +41 -13
- package/src/app/core/form/properties/property.validator.d.ts +8 -0
- package/src/app/core/form/properties/testing/properties-form.test.d.ts +6 -3
- package/src/app/core/graphql/graphql.service.d.ts +2 -2
- package/src/app/core/home/home.module.d.ts +1 -1
- package/src/app/core/menu/menu.module.d.ts +1 -1
- package/src/app/core/services/base-entity-service.class.d.ts +1 -1
- package/src/app/core/services/config/core.config.d.ts +1 -0
- package/src/app/core/services/local-settings.service.d.ts +3 -1
- package/src/app/core/services/model/config.model.d.ts +2 -2
- package/src/app/core/services/model/entity.model.d.ts +2 -2
- package/src/app/core/services/model/settings.model.d.ts +2 -2
- package/src/app/core/services/storage/entities-storage.service.d.ts +4 -4
- package/src/app/core/services/storage/entity-store.class.d.ts +4 -4
- package/src/app/core/services/validator/local-settings.validator.d.ts +3 -7
- package/src/app/core/settings/settings.page.d.ts +4 -1
- package/src/app/shared/debug/debug.component.d.ts +2 -1
- package/src/app/shared/form/field.component.d.ts +14 -5
- package/src/app/shared/form/field.model.d.ts +44 -1
- package/src/app/shared/functions.d.ts +1 -0
- package/src/app/shared/hotkeys/hotkeys.service.d.ts +10 -3
- package/src/app/shared/image/gallery/image-gallery.module.d.ts +1 -1
- package/src/app/shared/material/autocomplete/material.autocomplete.config.d.ts +2 -2
- package/src/app/shared/material/autocomplete/material.autocomplete.d.ts +4 -1
- package/src/app/shared/material/autocomplete/material.autocomplete.module.d.ts +1 -1
- package/src/app/shared/material/chips/chips.module.d.ts +1 -1
- package/src/app/shared/material/chips/material.chips.d.ts +1 -0
- package/src/app/shared/material/latlong/material.latlong.d.ts +3 -0
- 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 +3 -9
- package/src/app/shared/platforms.d.ts +3 -0
- package/src/app/shared/rx-state/rx-state.decorators.d.ts +7 -0
- package/src/app/shared/services/entity-service.class.d.ts +2 -0
- package/src/app/shared/services.d.ts +8 -1
- package/src/app/shared/shared.module.d.ts +1 -1
- package/src/app/shared/storage/storage-explorer.module.d.ts +1 -1
- package/src/app/shared/toolbar/toolbar.module.d.ts +1 -1
- package/src/app/shared/types.d.ts +11 -6
- package/src/app/social/user-event/user-event.module.d.ts +1 -1
- package/src/assets/i18n/en-US.json +14 -2
- package/src/assets/i18n/en.json +13 -1
- package/src/assets/i18n/fr.json +11 -1
- package/src/assets/manifest.json +1 -1
- package/src/theme/_ngx-components.scss +2 -4
- package/esm2022/src/app/shared/rx-state.module.mjs +0 -19
- /package/src/app/shared/{rx-state.module.d.ts → rx-state/rx-state.module.d.ts} +0 -0
|
@@ -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';
|
|
@@ -22,14 +22,16 @@ export declare class AppFormField implements OnInit, ControlValueAccessor {
|
|
|
22
22
|
protected numberInputStep: string;
|
|
23
23
|
set definition(value: FormFieldDefinition);
|
|
24
24
|
get definition(): FormFieldDefinition;
|
|
25
|
-
required: boolean;
|
|
26
25
|
readonly: boolean;
|
|
27
26
|
disabled: boolean;
|
|
28
27
|
formControl: UntypedFormControl;
|
|
29
28
|
formControlName: string;
|
|
30
29
|
placeholder: string;
|
|
31
30
|
compact: boolean;
|
|
31
|
+
required: boolean;
|
|
32
|
+
hideRequiredMarker: boolean;
|
|
32
33
|
floatLabel: AppFloatLabelType;
|
|
34
|
+
label: string;
|
|
33
35
|
appearance: MatFormFieldAppearance;
|
|
34
36
|
subscriptSizing: SubscriptSizing;
|
|
35
37
|
tabindex: number;
|
|
@@ -62,13 +64,20 @@ export declare class AppFormField implements OnInit, ControlValueAccessor {
|
|
|
62
64
|
*/
|
|
63
65
|
reloadItems(value?: any): void;
|
|
64
66
|
protected computeNumberInputStep(definition: FormFieldDefinition): string;
|
|
65
|
-
protected computeValuesFromToken(token: InjectionToken<(string | Property)[]>): any[];
|
|
66
|
-
protected computeValues(values: (string | Property)[]): Property[];
|
|
67
67
|
protected checkAndResolveFormControl(): void;
|
|
68
68
|
protected _onDefinitionChanged(definition: FormFieldDefinition, opts?: {
|
|
69
69
|
emitEvent?: boolean;
|
|
70
70
|
}): void;
|
|
71
71
|
protected updateTabIndex(timeout?: number): void;
|
|
72
72
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppFormField, [null, null, null, { optional: true; }]>;
|
|
73
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AppFormField, "app-form-field", never, { "definition": { "alias": "definition"; "required": false; }; "
|
|
73
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AppFormField, "app-form-field", never, { "definition": { "alias": "definition"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "required": { "alias": "required"; "required": false; }; "hideRequiredMarker": { "alias": "hideRequiredMarker"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "label": { "alias": "label"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "chipColor": { "alias": "chipColor"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; }, { "onKeyupEnter": "keyup.enter"; }, never, ["[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matPrefix]", "[matSuffix]", "[matSuffix]", "[matPrefix]", "[matSuffix]", "[matPrefix]", "[matSuffix]", "[matSuffix]"], false, never>;
|
|
74
|
+
static ngAcceptInputType_readonly: unknown;
|
|
75
|
+
static ngAcceptInputType_disabled: unknown;
|
|
76
|
+
static ngAcceptInputType_compact: unknown;
|
|
77
|
+
static ngAcceptInputType_required: unknown;
|
|
78
|
+
static ngAcceptInputType_hideRequiredMarker: unknown;
|
|
79
|
+
static ngAcceptInputType_tabindex: unknown;
|
|
80
|
+
static ngAcceptInputType_autofocus: unknown;
|
|
81
|
+
static ngAcceptInputType_clearable: unknown;
|
|
82
|
+
static ngAcceptInputType_debug: unknown;
|
|
74
83
|
}
|
|
@@ -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';
|
|
@@ -28,8 +28,51 @@ export declare interface FormFieldDefinition<K = string, T = FormFieldType, E =
|
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
minProfile?: UserProfileLabel;
|
|
31
|
+
/**
|
|
32
|
+
* Use for automatic serialization/deserialization to/from string (eg. using the autocomplete suggestFn).
|
|
33
|
+
* Default value: 'id'
|
|
34
|
+
*/
|
|
35
|
+
serializeAttribute?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Use to serialize an entity into string (see AppPropertiesUtils.***asObject())
|
|
38
|
+
* @param value
|
|
39
|
+
*/
|
|
40
|
+
serialize?: (value: E) => string;
|
|
41
|
+
/**
|
|
42
|
+
* Use to deserialize a string into an entity (see AppPropertiesUtils.***fromObject())
|
|
43
|
+
* @param value
|
|
44
|
+
*/
|
|
45
|
+
deserialize?: (value: string) => E | Promise<E>;
|
|
31
46
|
}
|
|
32
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
|
+
}
|
|
33
76
|
export declare abstract class FormFieldValuesHolder {
|
|
34
77
|
getAsBoolean(data: ObjectMap, definition: FormFieldDefinition): boolean;
|
|
35
78
|
getAsInt(data: any, definition: FormFieldDefinition): number;
|
|
@@ -84,6 +84,7 @@ export declare function getPropertyByPathAsString(obj: any, path: string | strin
|
|
|
84
84
|
*/
|
|
85
85
|
export declare function setPropertyByPath<T = any>(obj: T, path: string | string[], value: any): T;
|
|
86
86
|
export declare function sleep(ms: number): Promise<void>;
|
|
87
|
+
export declare function isPromise<T>(value: T | Promise<T>): value is Promise<T>;
|
|
87
88
|
export declare function round(value: number | undefined | null): number;
|
|
88
89
|
export declare function equalsOrNil(value1: any, value2: any): boolean;
|
|
89
90
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
2
|
import { EventManager } from '@angular/platform-browser';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
-
import { ModalController, PopoverController } from '@ionic/angular';
|
|
4
|
+
import { ModalController, Platform, PopoverController } from '@ionic/angular';
|
|
5
5
|
import { MatDialog } from '@angular/material/dialog';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
interface Options {
|
|
@@ -28,15 +28,22 @@ export declare class Hotkeys {
|
|
|
28
28
|
private modalController;
|
|
29
29
|
private popoverController;
|
|
30
30
|
private _debug;
|
|
31
|
+
private _id;
|
|
31
32
|
private _hotkeys;
|
|
32
33
|
private _document;
|
|
33
34
|
private _defaults;
|
|
34
35
|
private _dialogRef;
|
|
36
|
+
private _dialogIsOpened;
|
|
35
37
|
private _config;
|
|
36
|
-
|
|
38
|
+
readonly defaultControlKey: string;
|
|
39
|
+
readonly defaultControlKeyName: string;
|
|
40
|
+
get isHelpModalOpened(): boolean;
|
|
41
|
+
constructor(platform: Platform, eventManager: EventManager, dialog: MatDialog, modalController: ModalController, popoverController: PopoverController, config?: Partial<HotKeysConfig>);
|
|
37
42
|
addShortcut(options: Partial<Options>): Observable<KeyboardEvent>;
|
|
43
|
+
toggleHelpModal(): void;
|
|
38
44
|
openHelpModal(): void;
|
|
39
|
-
|
|
45
|
+
closeHelpModal(): void;
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Hotkeys, [null, null, null, null, null, { optional: true; }]>;
|
|
40
47
|
static ɵprov: i0.ɵɵInjectableDeclaration<Hotkeys>;
|
|
41
48
|
}
|
|
42
49
|
export {};
|
|
@@ -7,7 +7,7 @@ import * as i5 from "../../material/material.module";
|
|
|
7
7
|
import * as i6 from "../../pipes/pipes.module";
|
|
8
8
|
import * as i7 from "../../directives/directives.module";
|
|
9
9
|
import * as i8 from "@ngx-translate/core";
|
|
10
|
-
import * as i9 from "../../rx-state.module";
|
|
10
|
+
import * as i9 from "../../rx-state/rx-state.module";
|
|
11
11
|
export declare class ImageGalleryModule {
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageGalleryModule, never>;
|
|
13
13
|
static ɵmod: i0.ɵɵNgModuleDeclaration<ImageGalleryModule, [typeof i1.AppImageGalleryComponent], [typeof i2.CommonModule, typeof i3.IonicModule, typeof i4.ReactiveFormsModule, typeof i5.SharedMaterialModule, typeof i6.SharedPipesModule, typeof i7.SharedDirectivesModule, typeof i8.TranslateModule, typeof i9.RxStateModule], [typeof i3.IonicModule, typeof i8.TranslateModule, typeof i1.AppImageGalleryComponent]>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SuggestFn, SuggestService } from '../../services/entity-service.class';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { DisplayFn, EqualsFn } from '../../form/field.model';
|
|
4
4
|
export declare interface MatAutocompleteFieldConfig<T = any, F = any> {
|
|
5
5
|
attributes?: string[];
|
|
6
|
-
suggestFn?:
|
|
6
|
+
suggestFn?: SuggestFn<T, F>;
|
|
7
7
|
filter?: Partial<F>;
|
|
8
8
|
items?: Observable<T[]> | T[];
|
|
9
9
|
columnSizes?: (number | 'auto' | undefined)[];
|
|
@@ -44,11 +44,13 @@ export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDe
|
|
|
44
44
|
formControl: UntypedFormControl;
|
|
45
45
|
formControlName: string;
|
|
46
46
|
floatLabel: AppFloatLabelType;
|
|
47
|
+
label: string;
|
|
47
48
|
appearance: MatFormFieldAppearance;
|
|
48
49
|
subscriptSizing: SubscriptSizing;
|
|
49
50
|
placeholder: string;
|
|
50
51
|
suggestFn: SuggestFn<any, any>;
|
|
51
52
|
required: boolean;
|
|
53
|
+
hideRequiredMarker: boolean;
|
|
52
54
|
mobile: boolean;
|
|
53
55
|
clearable: boolean;
|
|
54
56
|
debounceTime: number;
|
|
@@ -157,8 +159,9 @@ export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDe
|
|
|
157
159
|
*/
|
|
158
160
|
private _fixSearchbarOverlay;
|
|
159
161
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatAutocompleteField, [null, null, null, null, null, { optional: true; }]>;
|
|
160
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatAutocompleteField, "mat-autocomplete-field", never, { "equals": { "alias": "equals"; "required": false; }; "logPrefix": { "alias": "logPrefix"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "suggestFn": { "alias": "suggestFn"; "required": false; }; "required": { "alias": "required"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "debounceTime": { "alias": "debounceTime"; "required": false; }; "displaySeparator": { "alias": "displaySeparator"; "required": false; }; "displayWith": { "alias": "displayWith"; "required": false; }; "displayAttributes": { "alias": "displayAttributes"; "required": false; }; "displayColumnSizes": { "alias": "displayColumnSizes"; "required": false; }; "displayColumnNames": { "alias": "displayColumnNames"; "required": false; }; "highlightAccent": { "alias": "highlightAccent"; "required": false; }; "showAllOnFocus": { "alias": "showAllOnFocus"; "required": false; }; "showPanelOnFocus": { "alias": "showPanelOnFocus"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "config": { "alias": "config"; "required": false; }; "i18nPrefix": { "alias": "i18nPrefix"; "required": false; }; "noResultMessage": { "alias": "noResultMessage"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "panelWidth": { "alias": "panelWidth"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "matAutocompletePosition": { "alias": "matAutocompletePosition"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "fetchMoreThreshold": { "alias": "fetchMoreThreshold"; "required": false; }; "suggestLengthThreshold": { "alias": "suggestLengthThreshold"; "required": false; }; "showLoadingSpinner": { "alias": "showLoadingSpinner"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "showSearchBar": { "alias": "showSearchBar"; "required": false; }; "stickySearchBar": { "alias": "stickySearchBar"; "required": false; }; "applyImplicitValue": { "alias": "applyImplicitValue"; "required": false; }; "dropButtonTitle": { "alias": "dropButtonTitle"; "required": false; }; "clearButtonTitle": { "alias": "clearButtonTitle"; "required": false; }; "trimSearchText": { "alias": "trimSearchText"; "required": false; }; "splitSearchText": { "alias": "splitSearchText"; "required": false; }; "selectInputContentOnFocus": { "alias": "selectInputContentOnFocus"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, { "clicked": "click"; "blurred": "blur"; "focused": "focus"; "dropButtonClick": "dropButtonClick"; "keydownEscape": "keydown.escape"; "keyupEnter": "keyup.enter"; "selectionChange": "selectionChange"; }, never, ["[matAfter]", "[matPrefix]", "[matSuffix]", "mat-error,[matError]", "mat-hint:not([align='end']),[matHint]", "mat-hint[align='end']"], false, never>;
|
|
162
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatAutocompleteField, "mat-autocomplete-field", never, { "equals": { "alias": "equals"; "required": false; }; "logPrefix": { "alias": "logPrefix"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "label": { "alias": "label"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "suggestFn": { "alias": "suggestFn"; "required": false; }; "required": { "alias": "required"; "required": false; }; "hideRequiredMarker": { "alias": "hideRequiredMarker"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "debounceTime": { "alias": "debounceTime"; "required": false; }; "displaySeparator": { "alias": "displaySeparator"; "required": false; }; "displayWith": { "alias": "displayWith"; "required": false; }; "displayAttributes": { "alias": "displayAttributes"; "required": false; }; "displayColumnSizes": { "alias": "displayColumnSizes"; "required": false; }; "displayColumnNames": { "alias": "displayColumnNames"; "required": false; }; "highlightAccent": { "alias": "highlightAccent"; "required": false; }; "showAllOnFocus": { "alias": "showAllOnFocus"; "required": false; }; "showPanelOnFocus": { "alias": "showPanelOnFocus"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "config": { "alias": "config"; "required": false; }; "i18nPrefix": { "alias": "i18nPrefix"; "required": false; }; "noResultMessage": { "alias": "noResultMessage"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "panelWidth": { "alias": "panelWidth"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "matAutocompletePosition": { "alias": "matAutocompletePosition"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "fetchMoreThreshold": { "alias": "fetchMoreThreshold"; "required": false; }; "suggestLengthThreshold": { "alias": "suggestLengthThreshold"; "required": false; }; "showLoadingSpinner": { "alias": "showLoadingSpinner"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "showSearchBar": { "alias": "showSearchBar"; "required": false; }; "stickySearchBar": { "alias": "stickySearchBar"; "required": false; }; "applyImplicitValue": { "alias": "applyImplicitValue"; "required": false; }; "dropButtonTitle": { "alias": "dropButtonTitle"; "required": false; }; "clearButtonTitle": { "alias": "clearButtonTitle"; "required": false; }; "trimSearchText": { "alias": "trimSearchText"; "required": false; }; "splitSearchText": { "alias": "splitSearchText"; "required": false; }; "selectInputContentOnFocus": { "alias": "selectInputContentOnFocus"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, { "clicked": "click"; "blurred": "blur"; "focused": "focus"; "dropButtonClick": "dropButtonClick"; "keydownEscape": "keydown.escape"; "keyupEnter": "keyup.enter"; "selectionChange": "selectionChange"; }, never, ["[matAfter]", "[matPrefix]", "[matSuffix]", "mat-error,[matError]", "mat-hint:not([align='end']),[matHint]", "mat-hint[align='end']"], false, never>;
|
|
161
163
|
static ngAcceptInputType_required: unknown;
|
|
164
|
+
static ngAcceptInputType_hideRequiredMarker: unknown;
|
|
162
165
|
static ngAcceptInputType_mobile: unknown;
|
|
163
166
|
static ngAcceptInputType_clearable: unknown;
|
|
164
167
|
static ngAcceptInputType_debounceTime: unknown;
|
|
@@ -6,7 +6,7 @@ import * as i4 from "@angular/cdk/scrolling";
|
|
|
6
6
|
import * as i5 from "@angular/forms";
|
|
7
7
|
import * as i6 from "../../pipes/pipes.module";
|
|
8
8
|
import * as i7 from "../../directives/directives.module";
|
|
9
|
-
import * as i8 from "../../rx-state.module";
|
|
9
|
+
import * as i8 from "../../rx-state/rx-state.module";
|
|
10
10
|
import * as i9 from "@angular/material/core";
|
|
11
11
|
import * as i10 from "@angular/material/autocomplete";
|
|
12
12
|
import * as i11 from "@angular/material/form-field";
|
|
@@ -14,7 +14,7 @@ import * as i12 from "@angular/material/button";
|
|
|
14
14
|
import * as i13 from "@angular/material/select";
|
|
15
15
|
import * as i14 from "@angular/material/chips";
|
|
16
16
|
import * as i15 from "@ngx-translate/core";
|
|
17
|
-
import * as i16 from "../../rx-state.module";
|
|
17
|
+
import * as i16 from "../../rx-state/rx-state.module";
|
|
18
18
|
export declare class SharedMatChipsModule {
|
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedMatChipsModule, never>;
|
|
20
20
|
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedMatChipsModule, [typeof i1.MatChipsField], [typeof i2.CommonModule, typeof i3.IonicModule, typeof i4.ReactiveFormsModule, typeof i5.SharedPipesModule, typeof i6.SharedDirectivesModule, typeof i7.MatCommonModule, typeof i8.MatAutocompleteModule, typeof i9.MatFormFieldModule, typeof i10.MatInputModule, typeof i11.MatIconModule, typeof i12.MatButtonModule, typeof i13.MatSelectModule, typeof i14.MatChipsModule, typeof i15.TranslateModule, typeof i16.RxStateModule], [typeof i1.MatChipsField]>;
|
|
@@ -147,4 +147,5 @@ export declare class MatChipsField implements OnInit, OnDestroy, InputElement, C
|
|
|
147
147
|
static ngAcceptInputType_suggestLengthThreshold: unknown;
|
|
148
148
|
static ngAcceptInputType_showLoadingSpinner: unknown;
|
|
149
149
|
static ngAcceptInputType_debug: unknown;
|
|
150
|
+
static ngAcceptInputType_trimSearchText: unknown;
|
|
150
151
|
}
|
|
@@ -61,6 +61,9 @@ export declare class MatLatLongField implements OnInit, OnDestroy, ControlValueA
|
|
|
61
61
|
_onFocus(event: FocusEvent): boolean;
|
|
62
62
|
_onBlur(event: FocusEvent): void;
|
|
63
63
|
protected _format(value: number, opts?: Partial<LatLongFormatOptions>): string;
|
|
64
|
+
protected _checkIfTouched(): void;
|
|
65
|
+
private onFormChange;
|
|
66
|
+
private emitChange;
|
|
64
67
|
private updateTranslations;
|
|
65
68
|
private parseValue;
|
|
66
69
|
private markForCheck;
|
|
@@ -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
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { DateFormatService } from './date-format.pipe';
|
|
3
2
|
import { FormFieldDefinition } from '../form/field.model';
|
|
4
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
5
3
|
import * as i0 from "@angular/core";
|
|
6
4
|
export declare class PropertyGetPipe implements PipeTransform {
|
|
7
5
|
transform(obj: any, args: string | Array<string | number> | {
|
|
@@ -12,31 +10,27 @@ export declare class PropertyGetPipe implements PipeTransform {
|
|
|
12
10
|
static ɵpipe: i0.ɵɵPipeDeclaration<PropertyGetPipe, "propertyGet", false>;
|
|
13
11
|
}
|
|
14
12
|
declare abstract class AbstractValueFormatPipe {
|
|
15
|
-
private dateFormat;
|
|
16
|
-
private translate;
|
|
17
13
|
private _i18nYes;
|
|
18
14
|
private _i18nNo;
|
|
19
|
-
|
|
15
|
+
private dateFormat;
|
|
16
|
+
private translate;
|
|
20
17
|
get i18nYes(): string;
|
|
21
18
|
get i18nNo(): string;
|
|
22
|
-
protected valueToString(value: any, definition?: FormFieldDefinition): string;
|
|
19
|
+
protected valueToString(value: any, definition?: Partial<FormFieldDefinition>): string;
|
|
23
20
|
}
|
|
24
21
|
export declare class PropertyFormatPipe extends AbstractValueFormatPipe implements PipeTransform {
|
|
25
|
-
constructor(dateFormat: DateFormatService, translate: TranslateService);
|
|
26
22
|
transform(obj: any, args: string | Array<string | number> | FormFieldDefinition): string | Promise<string>;
|
|
27
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<PropertyFormatPipe, never>;
|
|
28
24
|
static ɵpipe: i0.ɵɵPipeDeclaration<PropertyFormatPipe, "propertyFormat", false>;
|
|
29
25
|
static ɵprov: i0.ɵɵInjectableDeclaration<PropertyFormatPipe>;
|
|
30
26
|
}
|
|
31
27
|
export declare class ValueFormatPipe extends AbstractValueFormatPipe implements PipeTransform {
|
|
32
|
-
constructor(dateFormat: DateFormatService, translate: TranslateService);
|
|
33
28
|
transform(value: any, definition: FormFieldDefinition): string | Promise<string>;
|
|
34
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<ValueFormatPipe, never>;
|
|
35
30
|
static ɵpipe: i0.ɵɵPipeDeclaration<ValueFormatPipe, "valueFormat", false>;
|
|
36
31
|
static ɵprov: i0.ɵɵInjectableDeclaration<ValueFormatPipe>;
|
|
37
32
|
}
|
|
38
33
|
export declare class BooleanFormatPipe extends AbstractValueFormatPipe implements PipeTransform {
|
|
39
|
-
constructor(translate: TranslateService);
|
|
40
34
|
transform(value: any, opts?: {
|
|
41
35
|
yesLabel: string;
|
|
42
36
|
noLabel: string;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
export declare const matchMedia: (win: Window, query: string) => boolean;
|
|
2
2
|
export declare const testUserAgent: (win: Window, expr: RegExp) => boolean;
|
|
3
3
|
export declare const isWindows: (win?: Window) => boolean;
|
|
4
|
+
export declare const isFirefox: (win?: Window) => boolean;
|
|
4
5
|
export declare const isTouchUi: (win?: Window) => boolean;
|
|
6
|
+
export declare const isIpad: (win: Window) => boolean;
|
|
7
|
+
export declare const isMac: (win: Window) => boolean;
|
|
5
8
|
export declare const isIOS: (win: Window) => boolean;
|
|
6
9
|
export declare const isAndroid: (win: Window) => boolean;
|
|
7
10
|
export declare const isCapacitor: (win: any) => boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ProjectValueReducer } from '@rx-angular/state/lib/rx-state.service';
|
|
2
|
+
export declare function enableRxStateProduction(): void;
|
|
3
|
+
export declare function RxStateRegister(): PropertyDecorator;
|
|
4
|
+
export declare function RxStateProperty<T = any, K extends keyof T = any, V extends T[K] = any>(statePropertyName?: string | K, projectValueReducer?: ProjectValueReducer<T, K, V>): PropertyDecorator;
|
|
5
|
+
export declare function RxStateSelect<T = any>(statePropertyName?: string | keyof T | '$', opts?: {
|
|
6
|
+
stateName?: string;
|
|
7
|
+
}): PropertyDecorator;
|
|
@@ -17,6 +17,8 @@ export declare interface LoadResult<T> {
|
|
|
17
17
|
}
|
|
18
18
|
export declare type SuggestFn<T, F> = (value: any, filter?: F, sortBy?: string | keyof T, sortDirection?: SortDirection, opts?: {
|
|
19
19
|
fetchPolicy?: FetchPolicy;
|
|
20
|
+
offset?: number;
|
|
21
|
+
size?: number;
|
|
20
22
|
[key: string]: any;
|
|
21
23
|
}) => Promise<T[] | LoadResult<T>>;
|
|
22
24
|
export declare interface SuggestService<T, F> {
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import { LoadResult } from './services/entity-service.class';
|
|
2
|
-
|
|
2
|
+
import { SortDirection } from '@angular/material/sort';
|
|
3
|
+
export declare function suggestFromArray<T = any>(items: T[], value: any, filter?: {
|
|
4
|
+
id?: number;
|
|
3
5
|
offset?: number;
|
|
4
6
|
size?: number;
|
|
5
7
|
searchAttribute?: string;
|
|
6
8
|
searchAttributes?: string[];
|
|
9
|
+
includedIds?: number[];
|
|
7
10
|
excludedIds?: number[];
|
|
8
11
|
skipSort?: boolean;
|
|
9
12
|
anySearch?: boolean;
|
|
13
|
+
}, sortBy?: keyof T | string, sortDirection?: SortDirection, opts?: {
|
|
14
|
+
offset?: number;
|
|
15
|
+
size?: number;
|
|
16
|
+
[key: string]: any;
|
|
10
17
|
}): LoadResult<T>;
|
|
@@ -14,7 +14,7 @@ import * as i10 from "@ngx-translate/core";
|
|
|
14
14
|
import * as i11 from "ngx-color-picker";
|
|
15
15
|
import * as i12 from "@angular/cdk/drag-drop";
|
|
16
16
|
import * as i13 from "ngx-markdown";
|
|
17
|
-
import * as i14 from "./rx-state.module";
|
|
17
|
+
import * as i14 from "./rx-state/rx-state.module";
|
|
18
18
|
import * as i15 from "./material/material.module";
|
|
19
19
|
import * as i16 from "./directives/directives.module";
|
|
20
20
|
import * as i17 from "./pipes/pipes.module";
|
|
@@ -3,7 +3,7 @@ import * as i1 from "./storage-explorer.component";
|
|
|
3
3
|
import * as i2 from "@ionic/angular";
|
|
4
4
|
import * as i3 from "@angular/common";
|
|
5
5
|
import * as i4 from "@ngx-translate/core";
|
|
6
|
-
import * as i5 from "../rx-state.module";
|
|
6
|
+
import * as i5 from "../rx-state/rx-state.module";
|
|
7
7
|
import * as i6 from "../pipes/pipes.module";
|
|
8
8
|
import * as i7 from "../material/material.module";
|
|
9
9
|
export declare class StorageExplorerModule {
|
|
@@ -6,7 +6,7 @@ import * as i4 from "@ionic/angular";
|
|
|
6
6
|
import * as i5 from "@ngx-translate/core";
|
|
7
7
|
import * as i6 from "@angular/platform-browser";
|
|
8
8
|
import * as i7 from "../pipes/pipes.module";
|
|
9
|
-
import * as i8 from "../rx-state.module";
|
|
9
|
+
import * as i8 from "../rx-state/rx-state.module";
|
|
10
10
|
import * as i9 from "@angular/material/progress-bar";
|
|
11
11
|
import * as i10 from "@angular/material/icon";
|
|
12
12
|
export declare class SharedToolbarModule {
|
|
@@ -8,15 +8,20 @@ export declare type KeyValueType<T> = {
|
|
|
8
8
|
export declare type KeysEnum<T> = {
|
|
9
9
|
[P in keyof Required<T>]: boolean;
|
|
10
10
|
};
|
|
11
|
-
export declare interface ObjectMap<
|
|
12
|
-
[key: string]:
|
|
11
|
+
export declare interface ObjectMap<T = any> {
|
|
12
|
+
[key: string]: T;
|
|
13
13
|
}
|
|
14
|
-
export declare interface ObjectMapEntry<
|
|
14
|
+
export declare interface ObjectMapEntry<T = any> {
|
|
15
15
|
key: string;
|
|
16
|
-
value?:
|
|
16
|
+
value?: T;
|
|
17
17
|
}
|
|
18
|
-
export declare type
|
|
19
|
-
|
|
18
|
+
export declare type PropertyMap<T = string> = ObjectMap<T>;
|
|
19
|
+
/**
|
|
20
|
+
* Same as PropertyMap
|
|
21
|
+
* @deprecated Use PropertyMap instead
|
|
22
|
+
*/
|
|
23
|
+
export declare type PropertiesMap<T = string> = PropertyMap<T>;
|
|
24
|
+
export declare type Property<T = string> = ObjectMapEntry<T>;
|
|
20
25
|
export declare type PropertiesArray = Property[];
|
|
21
26
|
export declare type AppColors = PredefinedColors | ThemePalette | string;
|
|
22
27
|
export declare interface IconRef {
|
|
@@ -4,7 +4,7 @@ import * as i2 from "./notification/user-event-notification.list";
|
|
|
4
4
|
import * as i3 from "@angular/common";
|
|
5
5
|
import * as i4 from "../../shared/shared.module";
|
|
6
6
|
import * as i5 from "../../core/icon/icon.module";
|
|
7
|
-
import * as i6 from "../../shared/rx-state.module";
|
|
7
|
+
import * as i6 from "../../shared/rx-state/rx-state.module";
|
|
8
8
|
import * as i7 from "ngx-jdenticon";
|
|
9
9
|
export declare class UserEventModule {
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserEventModule, never>;
|
|
@@ -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",
|
|
@@ -152,6 +157,7 @@
|
|
|
152
157
|
"APP_MIN_VERSION": "App > Minimal compatible version (x.y.z)",
|
|
153
158
|
"HELP_URL": "App > User manual (URL)",
|
|
154
159
|
"FORUM_URL": "App > Forum address (URL)",
|
|
160
|
+
"REPORT_ISSUE_URL": "App > Address to report an issue (URL)",
|
|
155
161
|
"ACCOUNT": {
|
|
156
162
|
"ENABLE_LATLONG_FORMAT": "My Account > Settings > Enable lat/lon format?",
|
|
157
163
|
"READONLY": "My Account > Readonly profile? (readonly option)"
|
|
@@ -201,7 +207,7 @@
|
|
|
201
207
|
"TOKEN": "Crypto",
|
|
202
208
|
"BASIC_AND_TOKEN": "Basic and crypto"
|
|
203
209
|
},
|
|
204
|
-
"ENABLE_AUTH_API_TOKENS": "API > Enable
|
|
210
|
+
"ENABLE_AUTH_API_TOKENS": "API > Enable authentication tokens?",
|
|
205
211
|
"ENABLE_AUTH_API_TOKENS_SCOPE": "API > Enable rights on auth tokens",
|
|
206
212
|
"DEFAULT_AUTH_API_TOKEN_SCOPE": "API > Default right on new auth token"
|
|
207
213
|
}
|
|
@@ -327,6 +333,10 @@
|
|
|
327
333
|
"DUMMY_3": "a - first",
|
|
328
334
|
"DUMMY_4": "e - fifth",
|
|
329
335
|
"DUMMY_5": "d - fourth",
|
|
336
|
+
"DUMMY_6": "f - sixth (enum)",
|
|
337
|
+
"DUMMY_7": "g - seventh (enum)",
|
|
338
|
+
"DUMMY_ENTITY": "h - eighth (entity)",
|
|
339
|
+
"DUMMY_ENTITIES": "i - ninth (entities)",
|
|
330
340
|
"OPTIONS": {
|
|
331
341
|
"TITLE": "Options",
|
|
332
342
|
"DEFINITION": "Option",
|
|
@@ -391,6 +401,7 @@
|
|
|
391
401
|
"BTN_CHANGE_PEER": "See available nodes",
|
|
392
402
|
"BTN_DARK_MODE": "Dark theme?",
|
|
393
403
|
"BTN_SHOW_MORE_HELP": "Show more parameters",
|
|
404
|
+
"BTN_SHOW_OPTION_KEY": "Show the option code?",
|
|
394
405
|
"BTN_CLEAR_CACHE": "Clear data cache",
|
|
395
406
|
"OFFLINE_MODE": "Force offline mode? (experimental)",
|
|
396
407
|
"DATA_ENTRY_DIVIDER": "Data entry settings",
|
|
@@ -586,7 +597,8 @@
|
|
|
586
597
|
"FIELD_INCONSISTENT": "Inconsistent value",
|
|
587
598
|
"FIELD_NOT_VALID_DECIMAL": "Expected decimal value",
|
|
588
599
|
"FIELD_NOT_VALID_INTEGER": "Expected integer value",
|
|
589
|
-
"FIELD_NOT_VALID_PRECISION": "
|
|
600
|
+
"FIELD_NOT_VALID_PRECISION": "Minimum precision: {{precision}}",
|
|
601
|
+
"FIELD_NOT_VALID_PRECISION_COMPACT": "Min precision {{precision}}",
|
|
590
602
|
"FIELD_NOT_VALID_EMAIL": "Invalid email address",
|
|
591
603
|
"FIELD_NOT_VALID_DATE": "Invalid date",
|
|
592
604
|
"FIELD_NOT_VALID_DATE_AFTER": "Must be after {{minDate}}",
|
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",
|
|
@@ -151,6 +156,7 @@
|
|
|
151
156
|
"APP_MIN_VERSION": "App > Minimal compatible version (x.y.z)",
|
|
152
157
|
"HELP_URL": "App > User manual (URL)",
|
|
153
158
|
"FORUM_URL": "App > Forum address (URL)",
|
|
159
|
+
"REPORT_ISSUE_URL": "App > Address to report an issue (URL)",
|
|
154
160
|
"ACCOUNT": {
|
|
155
161
|
"ENABLE_LATLONG_FORMAT": "My Account > Settings > Enable lat/lon format?",
|
|
156
162
|
"READONLY": "My Account > Readonly profile? (readonly option)"
|
|
@@ -326,6 +332,10 @@
|
|
|
326
332
|
"DUMMY_3": "a - first",
|
|
327
333
|
"DUMMY_4": "e - fifth",
|
|
328
334
|
"DUMMY_5": "d - fourth",
|
|
335
|
+
"DUMMY_6": "f - sixth (enum)",
|
|
336
|
+
"DUMMY_7": "g - seventh (enum)",
|
|
337
|
+
"DUMMY_ENTITY": "h - eighth (entity)",
|
|
338
|
+
"DUMMY_ENTITIES": "i - ninth (entities)",
|
|
329
339
|
"OPTIONS": {
|
|
330
340
|
"TITLE": "Options",
|
|
331
341
|
"DEFINITION": "Option",
|
|
@@ -390,6 +400,7 @@
|
|
|
390
400
|
"BTN_CHANGE_PEER": "See available nodes",
|
|
391
401
|
"BTN_DARK_MODE": "Dark theme?",
|
|
392
402
|
"BTN_SHOW_MORE_HELP": "Show more parameters",
|
|
403
|
+
"BTN_SHOW_OPTION_KEY": "Show the option code?",
|
|
393
404
|
"BTN_CLEAR_CACHE": "Clear data cache",
|
|
394
405
|
"OFFLINE_MODE": "Force offline mode? (experimental)",
|
|
395
406
|
"DATA_ENTRY_DIVIDER": "Data entry settings",
|
|
@@ -585,7 +596,8 @@
|
|
|
585
596
|
"FIELD_INCONSISTENT": "Inconsistent value",
|
|
586
597
|
"FIELD_NOT_VALID_DECIMAL": "Expected decimal value",
|
|
587
598
|
"FIELD_NOT_VALID_INTEGER": "Expected integer value",
|
|
588
|
-
"FIELD_NOT_VALID_PRECISION": "
|
|
599
|
+
"FIELD_NOT_VALID_PRECISION": "Minimum precision: {{precision}}",
|
|
600
|
+
"FIELD_NOT_VALID_PRECISION_COMPACT": "Min precision {{precision}}",
|
|
589
601
|
"FIELD_NOT_VALID_EMAIL": "Invalid email address",
|
|
590
602
|
"FIELD_NOT_VALID_DATE": "Invalid date",
|
|
591
603
|
"FIELD_NOT_VALID_DATE_AFTER": "Must be after {{minDate}}",
|
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",
|
|
@@ -151,6 +156,7 @@
|
|
|
151
156
|
"APP_MIN_VERSION": "App > Version minimale compatible (x.y.z)",
|
|
152
157
|
"HELP_URL": "App > Adresse du manuel utilisateur (URL)",
|
|
153
158
|
"FORUM_URL": "App > Adresse du forum (URL)",
|
|
159
|
+
"REPORT_ISSUE_URL": "App > Adresse pour remonter un problème (URL)",
|
|
154
160
|
"ACCOUNT": {
|
|
155
161
|
"ENABLE_LATLONG_FORMAT": "Mon Compte > Préférences > Activer le format lat/lon ?",
|
|
156
162
|
"READONLY": "Mon Compte > Profil en lecture seule ? (option non modifiable)"
|
|
@@ -326,7 +332,10 @@
|
|
|
326
332
|
"DUMMY_3": "a - premier",
|
|
327
333
|
"DUMMY_4": "e - cinquieme",
|
|
328
334
|
"DUMMY_5": "d - quatrieme",
|
|
329
|
-
"DUMMY_6": "f - sixième",
|
|
335
|
+
"DUMMY_6": "f - sixième (enum)",
|
|
336
|
+
"DUMMY_7": "g - septième (enums)",
|
|
337
|
+
"DUMMY_ENTITY": "h - huitième (entity)",
|
|
338
|
+
"DUMMY_ENTITIES": "i - neuvième (entities)",
|
|
330
339
|
"OPTIONS": {
|
|
331
340
|
"TITLE": "Options",
|
|
332
341
|
"DEFINITION": "Option",
|
|
@@ -391,6 +400,7 @@
|
|
|
391
400
|
"BTN_CHANGE_PEER": "Voir les nœuds disponibles",
|
|
392
401
|
"BTN_DARK_MODE": "Mode sombre ? (expérimental)",
|
|
393
402
|
"BTN_SHOW_MORE_HELP": "Afficher plus de paramètres",
|
|
403
|
+
"BTN_SHOW_OPTION_KEY": "Afficher le code des options ?",
|
|
394
404
|
"BTN_CLEAR_CACHE": "Vider le cache",
|
|
395
405
|
"OFFLINE_MODE": "Forcer le mode hors-ligne ?",
|
|
396
406
|
"DATA_ENTRY_DIVIDER": "Paramètres de saisie",
|