@sumaris-net/ngx-components 18.0.0 → 18.0.2-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/esm2022/public_api.mjs +3 -2
- package/esm2022/src/app/admin/services/filter/person.filter.mjs +10 -3
- package/esm2022/src/app/admin/services/person.service.mjs +6 -3
- package/esm2022/src/app/admin/users/users.mjs +2 -2
- package/esm2022/src/app/core/account/account.page.mjs +3 -5
- package/esm2022/src/app/core/form/buttons/form-buttons-bar.component.mjs +3 -3
- package/esm2022/src/app/core/form/properties/properties.form.mjs +69 -47
- package/esm2022/src/app/core/form/properties/properties.utils.mjs +186 -23
- package/esm2022/src/app/core/form/properties/property.validator.mjs +36 -4
- package/esm2022/src/app/core/form/properties/testing/properties-form.test.mjs +25 -11
- package/esm2022/src/app/core/home/home.module.mjs +2 -2
- package/esm2022/src/app/core/menu/menu.module.mjs +2 -2
- package/esm2022/src/app/core/register/register.form.mjs +1 -1
- package/esm2022/src/app/core/services/local-settings.service.mjs +17 -8
- package/esm2022/src/app/core/services/model/settings.model.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 +44 -13
- 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/form/field.component.mjs +30 -15
- package/esm2022/src/app/shared/form/field.model.mjs +1 -1
- package/esm2022/src/app/shared/functions.mjs +6 -3
- package/esm2022/src/app/shared/image/gallery/image-gallery.module.mjs +2 -2
- 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 +1 -1
- 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/named-filter/named-filter-selector.component.mjs +1 -1
- package/esm2022/src/app/shared/pipes/property.pipes.mjs +25 -31
- 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.mjs +11 -3
- 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/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 +533 -182
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +2 -1
- package/src/app/admin/services/filter/person.filter.d.ts +1 -0
- package/src/app/admin/services/person.service.d.ts +5 -0
- package/src/app/core/form/properties/properties.form.d.ts +17 -9
- package/src/app/core/form/properties/properties.utils.d.ts +21 -11
- package/src/app/core/form/properties/property.validator.d.ts +8 -0
- package/src/app/core/form/properties/testing/properties-form.test.d.ts +4 -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/local-settings.service.d.ts +3 -1
- package/src/app/core/services/model/settings.model.d.ts +1 -1
- package/src/app/core/services/validator/local-settings.validator.d.ts +3 -7
- package/src/app/core/settings/settings.page.d.ts +2 -1
- package/src/app/shared/form/field.component.d.ts +13 -2
- package/src/app/shared/form/field.model.d.ts +2 -0
- package/src/app/shared/functions.d.ts +1 -0
- package/src/app/shared/image/gallery/image-gallery.module.d.ts +1 -1
- 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/pipes/property.pipes.d.ts +2 -8
- package/src/app/shared/rx-state/rx-state.decorators.d.ts +7 -0
- package/src/app/shared/services.d.ts +2 -0
- 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 +2 -2
- package/src/app/social/user-event/user-event.module.d.ts +1 -1
- package/src/assets/i18n/fr.json +3 -1
- package/src/assets/manifest.json +1 -1
- 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
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -3,7 +3,8 @@ export * from './src/environments/environment.loader';
|
|
|
3
3
|
export * from './src/app/shared/constants';
|
|
4
4
|
export * from './src/app/shared/shared.module';
|
|
5
5
|
export { SharedRoutingModule } from './src/app/shared/shared-routing.module';
|
|
6
|
-
export { RxStateModule } from './src/app/shared/rx-state.module';
|
|
6
|
+
export { RxStateModule } from './src/app/shared/rx-state/rx-state.module';
|
|
7
|
+
export * from './src/app/shared/rx-state/rx-state.decorators';
|
|
7
8
|
export * from './src/app/shared/material/material.module';
|
|
8
9
|
export * from './src/app/shared/material/material.config';
|
|
9
10
|
export * from './src/app/shared/material/material.animations';
|
|
@@ -11,6 +11,7 @@ export declare class PersonFilter extends EntityFilter<PersonFilter, Person> {
|
|
|
11
11
|
searchText: string;
|
|
12
12
|
statusIds: number[];
|
|
13
13
|
userProfiles: string[];
|
|
14
|
+
includedIds: number[];
|
|
14
15
|
excludedIds: number[];
|
|
15
16
|
searchAttribute: string;
|
|
16
17
|
searchAttributes: string[];
|
|
@@ -38,6 +38,11 @@ export declare class PersonService extends BaseEntityService<Person, PersonFilte
|
|
|
38
38
|
progression?: BehaviorSubject<number>;
|
|
39
39
|
maxProgression?: number;
|
|
40
40
|
}): Promise<void>;
|
|
41
|
+
loadById(id: number, opts?: {
|
|
42
|
+
[key: string]: any;
|
|
43
|
+
fetchPolicy?: FetchPolicy;
|
|
44
|
+
toEntity?: boolean;
|
|
45
|
+
}): Promise<Person>;
|
|
41
46
|
loadByPubkey(pubkey: string, opts?: {
|
|
42
47
|
[key: string]: any;
|
|
43
48
|
fetchPolicy?: FetchPolicy;
|
|
@@ -11,21 +11,30 @@ import { FormArrayHelper, FormArrayHelperOptions } from '../array/form-array';
|
|
|
11
11
|
import { MatFormFieldAppearance, SubscriptSizing } from '@angular/material/form-field';
|
|
12
12
|
import { MatAutocompleteFieldConfig } from '../../../shared/material/autocomplete/material.autocomplete.config';
|
|
13
13
|
import { LoadResult } from '../../../shared/services/entity-service.class';
|
|
14
|
+
import { RxState } from '@rx-angular/state';
|
|
14
15
|
import * as i0 from "@angular/core";
|
|
15
|
-
export
|
|
16
|
+
export interface AppPropertiesFormState {
|
|
17
|
+
definitions: FormFieldDefinition[];
|
|
18
|
+
definitionKeys: Property[];
|
|
19
|
+
}
|
|
20
|
+
export declare class AppPropertiesForm<T = Property, S extends AppPropertiesFormState = AppPropertiesFormState> extends AppForm<T[]> implements OnInit {
|
|
16
21
|
protected formBuilder: UntypedFormBuilder;
|
|
17
22
|
protected dateAdapter: DateAdapter<Moment>;
|
|
18
23
|
protected cd: ChangeDetectorRef;
|
|
19
24
|
protected validator: PropertyValidator;
|
|
20
25
|
private formGroupDir;
|
|
21
|
-
protected
|
|
22
|
-
protected
|
|
23
|
-
protected
|
|
26
|
+
protected readonly _state: RxState<S>;
|
|
27
|
+
protected _definitions$: import("rxjs").Observable<S["definitions"]>;
|
|
28
|
+
protected _definitionKeys$: import("rxjs").Observable<S["definitionKeys"]>;
|
|
29
|
+
protected set _definitionKeys(value: Property[]);
|
|
30
|
+
protected get _definitionKeys(): Property[];
|
|
31
|
+
protected _definitionByKey: FormFieldDefinitionMap;
|
|
24
32
|
protected _definitionsByIndex: {
|
|
25
33
|
[index: number]: FormFieldDefinition;
|
|
26
34
|
};
|
|
27
35
|
protected _helper: FormArrayHelper<Property>;
|
|
28
36
|
protected _autocompleteConfig: MatAutocompleteFieldConfig;
|
|
37
|
+
protected _focusedControlIndex: number;
|
|
29
38
|
formArrayName: string;
|
|
30
39
|
formArray: UntypedFormArray;
|
|
31
40
|
options: FormArrayHelperOptions;
|
|
@@ -46,19 +55,18 @@ export declare class AppPropertiesForm<T = Property> extends AppForm<T[]> implem
|
|
|
46
55
|
get fieldForms(): UntypedFormGroup[];
|
|
47
56
|
constructor(injector: Injector, formBuilder: UntypedFormBuilder, dateAdapter: DateAdapter<Moment>, cd: ChangeDetectorRef, validator: PropertyValidator, formGroupDir: FormGroupDirective);
|
|
48
57
|
ngOnInit(): void;
|
|
49
|
-
protected updateDefinitionsMaps(): void;
|
|
58
|
+
protected updateDefinitionsMaps(definitions?: FormFieldDefinition[]): void;
|
|
50
59
|
getDefinitionAt(index: number): FormFieldDefinition;
|
|
51
60
|
updateDefinitionAt(index: number, opts?: {
|
|
52
61
|
emitEvent?: boolean;
|
|
53
62
|
}): FormFieldDefinition;
|
|
54
63
|
removeAt(index: number): void;
|
|
55
|
-
|
|
56
|
-
setValue(data: T[] | any): void;
|
|
64
|
+
setValue(data: T[] | any): Promise<void>;
|
|
57
65
|
protected suggestDefinition(value: any, filter?: any): Promise<LoadResult<Property>>;
|
|
58
66
|
protected markForCheck(): void;
|
|
59
67
|
protected isEmptyProperty(obj: Property): boolean;
|
|
60
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AppPropertiesForm<any>, [null, null, null, null, null, { optional: true; }]>;
|
|
61
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AppPropertiesForm<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; }; "showMoreButtonTitle": { "alias": "showMoreButtonTitle"; "required": false; }; "showAddButton": { "alias": "showAddButton"; "required": false; }; "definitions": { "alias": "definitions"; "required": false; }; }, {}, never, never, false, never>;
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppPropertiesForm<any, any>, [null, null, null, null, null, { optional: true; }]>;
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AppPropertiesForm<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; }; "showMoreButtonTitle": { "alias": "showMoreButtonTitle"; "required": false; }; "showAddButton": { "alias": "showAddButton"; "required": false; }; "definitions": { "alias": "definitions"; "required": false; }; }, {}, never, never, false, never>;
|
|
62
70
|
static ngAcceptInputType_mobile: unknown;
|
|
63
71
|
static ngAcceptInputType_showHintKey: unknown;
|
|
64
72
|
static ngAcceptInputType_showMoreButton: unknown;
|
|
@@ -1,27 +1,37 @@
|
|
|
1
1
|
import { PropertiesMap, Property } from '../../../shared/types';
|
|
2
|
+
import { FormFieldDefinition } from '../../../shared/form/field.model';
|
|
3
|
+
import { SuggestFn } from '../../../shared/services/entity-service.class';
|
|
2
4
|
export declare class AppPropertiesUtils {
|
|
3
5
|
/**
|
|
4
|
-
* Converts an array of Property objects
|
|
6
|
+
* Converts an array of `Property` objects into a `PropertiesMap` object.
|
|
5
7
|
*
|
|
6
|
-
* @param {Property[]} [sources] -
|
|
7
|
-
* @param {
|
|
8
|
-
* @param {
|
|
9
|
-
* @
|
|
8
|
+
* @param {Property[]} [sources] - An optional array of properties to be converted.
|
|
9
|
+
* @param {FormFieldDefinition[]} [definitions] - An optional array of form field definitions to help with the conversion.
|
|
10
|
+
* @param {Object} [opts] - Optional configurations.
|
|
11
|
+
* @param {boolean} [opts.omitNilOrBlank] - If true, properties with nil or blank values will be omitted. Defaults to true.
|
|
12
|
+
* @return {PropertiesMap} - The resulting `PropertiesMap` object.
|
|
10
13
|
*/
|
|
11
|
-
static arrayAsObject(sources?: Property[], opts?: {
|
|
14
|
+
static arrayAsObject(sources?: Property[], definitions?: FormFieldDefinition[], opts?: {
|
|
12
15
|
omitNilOrBlank: boolean;
|
|
13
16
|
}): PropertiesMap;
|
|
14
17
|
/**
|
|
15
|
-
*
|
|
18
|
+
* Generates an array of properties from the given object, optionally applying definitions to the properties.
|
|
16
19
|
*
|
|
17
|
-
* @param {PropertiesMap} [
|
|
18
|
-
* @
|
|
20
|
+
* @param {PropertiesMap} [sources] - The source object from which properties are to be extracted.
|
|
21
|
+
* @param {FormFieldDefinition[]} [definitions] - An optional array of definitions to be applied to the extracted properties.
|
|
22
|
+
* @return {Property[] | Promise<Property[]>} An array of properties generated from the source object, or a promise resolving to that array.
|
|
19
23
|
*/
|
|
20
|
-
static arrayFromObject
|
|
24
|
+
static arrayFromObject(sources?: PropertiesMap | Property[], definitions?: FormFieldDefinition[]): Property[] | Promise<Property[]>;
|
|
21
25
|
}
|
|
22
26
|
export declare class AppPropertyUtils {
|
|
23
|
-
static
|
|
27
|
+
static key(source: Property | any): string;
|
|
28
|
+
static asObject(source: Property | any, def?: FormFieldDefinition): {
|
|
24
29
|
key: string;
|
|
25
30
|
value: string;
|
|
26
31
|
} | undefined;
|
|
32
|
+
static fromObject(source: Property<string>, def: FormFieldDefinition, opts?: {
|
|
33
|
+
defaultSuggestFn: SuggestFn<any, any>;
|
|
34
|
+
}): Property<any> | Promise<Property<any>>;
|
|
35
|
+
private static valueFromObject;
|
|
36
|
+
private static resolveValueBySuggest;
|
|
27
37
|
}
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
2
2
|
import { Property } from '../../../shared/types';
|
|
3
3
|
import { AppValidatorService } from '../../services/validator/base.validator.class';
|
|
4
|
+
import { FormFieldDefinition } from '../../../shared/form/field.model';
|
|
5
|
+
import { AppFormArray } from '../array/form-array';
|
|
4
6
|
import * as i0 from "@angular/core";
|
|
5
7
|
export interface PropertyValidatorOptions {
|
|
8
|
+
definition?: FormFieldDefinition;
|
|
9
|
+
valueMaxLength?: number;
|
|
10
|
+
}
|
|
11
|
+
export interface PropertiesValidatorOptions {
|
|
12
|
+
definitions?: FormFieldDefinition[];
|
|
6
13
|
valueMaxLength?: number;
|
|
7
14
|
}
|
|
8
15
|
export declare class PropertyValidator extends AppValidatorService<Property> {
|
|
9
16
|
protected formBuilder: UntypedFormBuilder;
|
|
10
17
|
constructor(formBuilder: UntypedFormBuilder);
|
|
18
|
+
getFormArray(data?: any, opts?: PropertiesValidatorOptions): AppFormArray<Property, UntypedFormGroup>;
|
|
11
19
|
getFormGroup(data?: Property, opts?: PropertyValidatorOptions): UntypedFormGroup;
|
|
12
20
|
getFormGroupConfig(data?: Property, opts?: PropertyValidatorOptions): {
|
|
13
21
|
[p: string]: any;
|
|
@@ -3,16 +3,18 @@ import { FormFieldDefinition } from '../../../../shared/form/field.model';
|
|
|
3
3
|
import { AppPropertiesForm } from '../properties.form';
|
|
4
4
|
import { LoadResult } from '../../../../shared/services/entity-service.class';
|
|
5
5
|
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
6
|
+
import { PropertyValidator } from '../property.validator';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class PropertiesFormTestPage implements OnInit, AfterViewInit {
|
|
8
9
|
protected formBuilder: FormBuilder;
|
|
10
|
+
protected pv: PropertyValidator;
|
|
9
11
|
propertyDefinitions: FormFieldDefinition[];
|
|
10
12
|
i18nFieldPrefix: string;
|
|
11
13
|
form: FormGroup;
|
|
12
14
|
propertiesForm: AppPropertiesForm;
|
|
13
|
-
constructor(formBuilder: FormBuilder);
|
|
15
|
+
constructor(formBuilder: FormBuilder, pv: PropertyValidator);
|
|
14
16
|
ngOnInit(): void;
|
|
15
|
-
ngAfterViewInit(): void
|
|
17
|
+
ngAfterViewInit(): Promise<void>;
|
|
16
18
|
protected suggestEntity(value: any, filter: any): Promise<LoadResult<any>>;
|
|
17
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<PropertiesFormTestPage, never>;
|
|
18
20
|
static ɵcmp: i0.ɵɵComponentDeclaration<PropertiesFormTestPage, "app-properties-form-test", never, {}, {}, never, never, false, never>;
|
|
@@ -3,7 +3,7 @@ import * as i1 from "./home";
|
|
|
3
3
|
import * as i2 from "../../shared/shared.module";
|
|
4
4
|
import * as i3 from "@angular/router";
|
|
5
5
|
import * as i4 from "@ngx-translate/core";
|
|
6
|
-
import * as i5 from "../../shared/rx-state.module";
|
|
6
|
+
import * as i5 from "../../shared/rx-state/rx-state.module";
|
|
7
7
|
import * as i6 from "../auth/auth.module";
|
|
8
8
|
import * as i7 from "../install/install-upgrade-card.module";
|
|
9
9
|
export declare class AppHomePageModule {
|
|
@@ -3,7 +3,7 @@ import * as i1 from "./menu.component";
|
|
|
3
3
|
import * as i2 from "./sub-menu-tab.directive";
|
|
4
4
|
import * as i3 from "../../shared/shared.module";
|
|
5
5
|
import * as i4 from "@angular/router";
|
|
6
|
-
import * as i5 from "../../shared/rx-state.module";
|
|
6
|
+
import * as i5 from "../../shared/rx-state/rx-state.module";
|
|
7
7
|
import * as i6 from "@ngx-translate/core";
|
|
8
8
|
export declare class AppMenuModule {
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppMenuModule, never>;
|
|
@@ -77,7 +77,9 @@ export declare class LocalSettingsService extends StartableService<LocalSettings
|
|
|
77
77
|
getFieldDisplayAttributes(fieldName: string, defaultAttributes?: string[]): string[];
|
|
78
78
|
getPageFieldDefaultValue(pageId: string, fieldName: string): any;
|
|
79
79
|
get optionDefs(): FormFieldDefinition[];
|
|
80
|
-
registerOption(def: FormFieldDefinition
|
|
80
|
+
registerOption(def: FormFieldDefinition, opts?: {
|
|
81
|
+
replaceIfExists?: boolean;
|
|
82
|
+
}): void;
|
|
81
83
|
registerOptions(defs: FormFieldDefinition[]): void;
|
|
82
84
|
addToPageHistory(page: HistoryPageReference, opts?: AddToPageHistoryOptions, pageHistory?: HistoryPageReference[]): Promise<void>;
|
|
83
85
|
removePageHistory(path: string, opts?: {
|
|
@@ -20,7 +20,7 @@ export declare interface LocalSettings {
|
|
|
20
20
|
locale: string;
|
|
21
21
|
usageMode?: UsageMode;
|
|
22
22
|
mobile?: boolean;
|
|
23
|
-
properties?: PropertiesMap;
|
|
23
|
+
properties?: PropertiesMap | Property[];
|
|
24
24
|
pageHistory?: HistoryPageReference[];
|
|
25
25
|
offlineFeatures?: (string | OfflineFeature)[];
|
|
26
26
|
pageHistoryMaxSize: number;
|
|
@@ -2,19 +2,15 @@ import { AbstractControl, UntypedFormBuilder, UntypedFormGroup, ValidationErrors
|
|
|
2
2
|
import { LocalSettings } from '../model/settings.model';
|
|
3
3
|
import { NetworkService } from '../network.service';
|
|
4
4
|
import { AppValidatorService } from './base.validator.class';
|
|
5
|
-
import { AppFormArray } from '../../form/array/form-array';
|
|
6
|
-
import { Property } from '../../../shared/types';
|
|
7
5
|
import { PropertyValidator } from '../../form/properties/property.validator';
|
|
6
|
+
import { FormFieldDefinition } from '../../../shared/form/field.model';
|
|
8
7
|
import * as i0 from "@angular/core";
|
|
9
8
|
export declare class LocalSettingsValidatorService extends AppValidatorService<LocalSettings> {
|
|
10
9
|
private propertyValidator;
|
|
11
10
|
private networkService;
|
|
12
11
|
constructor(formBuilder: UntypedFormBuilder, propertyValidator: PropertyValidator, networkService: NetworkService);
|
|
13
|
-
getFormGroup(data?: LocalSettings
|
|
14
|
-
|
|
15
|
-
getPropertyFormGroup(data?: {
|
|
16
|
-
key: string;
|
|
17
|
-
value?: string;
|
|
12
|
+
getFormGroup(data?: LocalSettings, opts?: {
|
|
13
|
+
definitions?: FormFieldDefinition[];
|
|
18
14
|
}): UntypedFormGroup;
|
|
19
15
|
protected peerAlive(peerUrlControl: AbstractControl): Promise<ValidationErrors | null>;
|
|
20
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<LocalSettingsValidatorService, never>;
|
|
@@ -44,8 +44,9 @@ export declare class SettingsPage extends AppForm<LocalSettings> implements OnIn
|
|
|
44
44
|
propertiesForm: AppPropertiesForm;
|
|
45
45
|
constructor(injector: Injector, platform: PlatformService, navController: NavController, validatorService: LocalSettingsValidatorService, alertCtrl: AlertController, translate: TranslateService, formBuilder: UntypedFormBuilder, accountService: AccountService, settings: LocalSettingsService, cd: ChangeDetectorRef, network: NetworkService, locales: LocaleConfig[], menuItems?: IMenuItem[]);
|
|
46
46
|
ngOnInit(): Promise<void>;
|
|
47
|
+
protected loadPropertyDefinitions(): void;
|
|
47
48
|
load(): Promise<void>;
|
|
48
|
-
updateView(data: LocalSettings): void
|
|
49
|
+
updateView(data: LocalSettings): Promise<void>;
|
|
49
50
|
save(event?: Event, options?: any): Promise<boolean>;
|
|
50
51
|
setAccountInheritance(enable: boolean, opts?: {
|
|
51
52
|
emitEvent?: boolean;
|
|
@@ -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;
|
|
@@ -70,5 +72,14 @@ export declare class AppFormField implements OnInit, ControlValueAccessor {
|
|
|
70
72
|
}): void;
|
|
71
73
|
protected updateTabIndex(timeout?: number): void;
|
|
72
74
|
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; }; "
|
|
75
|
+
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>;
|
|
76
|
+
static ngAcceptInputType_readonly: unknown;
|
|
77
|
+
static ngAcceptInputType_disabled: unknown;
|
|
78
|
+
static ngAcceptInputType_compact: unknown;
|
|
79
|
+
static ngAcceptInputType_required: unknown;
|
|
80
|
+
static ngAcceptInputType_hideRequiredMarker: unknown;
|
|
81
|
+
static ngAcceptInputType_tabindex: unknown;
|
|
82
|
+
static ngAcceptInputType_autofocus: unknown;
|
|
83
|
+
static ngAcceptInputType_clearable: unknown;
|
|
84
|
+
static ngAcceptInputType_debug: unknown;
|
|
74
85
|
}
|
|
@@ -19,6 +19,8 @@ export declare interface FormFieldDefinition<K = string, T = FormFieldType, E =
|
|
|
19
19
|
isTransient?: boolean;
|
|
20
20
|
values?: (string | Property)[] | InjectionToken<(string | Property)[]>;
|
|
21
21
|
autocomplete?: MatAutocompleteFieldConfig<E>;
|
|
22
|
+
deserialize?: (value: string) => E | Promise<E>;
|
|
23
|
+
serialize?: (value: E) => string;
|
|
22
24
|
disabled?: boolean;
|
|
23
25
|
required?: boolean;
|
|
24
26
|
extra?: {
|
|
@@ -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
|
/**
|
|
@@ -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]>;
|
|
@@ -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
|
}
|
|
@@ -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
19
|
protected valueToString(value: any, definition?: 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;
|
|
@@ -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;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { LoadResult } from './services/entity-service.class';
|
|
2
2
|
export declare function suggestFromArray<T = any>(items: T[], value: any, opts?: {
|
|
3
|
+
id: number;
|
|
3
4
|
offset?: number;
|
|
4
5
|
size?: number;
|
|
5
6
|
searchAttribute?: string;
|
|
6
7
|
searchAttributes?: string[];
|
|
8
|
+
includedIds?: number[];
|
|
7
9
|
excludedIds?: number[];
|
|
8
10
|
skipSort?: boolean;
|
|
9
11
|
anySearch?: boolean;
|
|
@@ -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 {
|
|
@@ -15,8 +15,8 @@ export declare interface ObjectMapEntry<O = any> {
|
|
|
15
15
|
key: string;
|
|
16
16
|
value?: O;
|
|
17
17
|
}
|
|
18
|
-
export declare type PropertiesMap = ObjectMap<
|
|
19
|
-
export declare type Property = ObjectMapEntry<
|
|
18
|
+
export declare type PropertiesMap<T = string> = ObjectMap<T>;
|
|
19
|
+
export declare type Property<T = string> = ObjectMapEntry<T>;
|
|
20
20
|
export declare type PropertiesArray = Property[];
|
|
21
21
|
export declare type AppColors = PredefinedColors | ThemePalette | string;
|
|
22
22
|
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>;
|
package/src/assets/i18n/fr.json
CHANGED
|
@@ -326,7 +326,9 @@
|
|
|
326
326
|
"DUMMY_3": "a - premier",
|
|
327
327
|
"DUMMY_4": "e - cinquieme",
|
|
328
328
|
"DUMMY_5": "d - quatrieme",
|
|
329
|
-
"DUMMY_6": "f - sixième",
|
|
329
|
+
"DUMMY_6": "f - sixième (enum)",
|
|
330
|
+
"DUMMY_7": "g - septième (entity)",
|
|
331
|
+
"DUMMY_8": "h - huitième (entities)",
|
|
330
332
|
"OPTIONS": {
|
|
331
333
|
"TITLE": "Options",
|
|
332
334
|
"DEFINITION": "Option",
|
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.2-alpha1",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { RxFor } from '@rx-angular/template/for';
|
|
3
|
-
import { RxIf } from '@rx-angular/template/if';
|
|
4
|
-
import { RxPush } from '@rx-angular/template/push';
|
|
5
|
-
import { RxLet } from '@rx-angular/template/let';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export class RxStateModule {
|
|
8
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: RxStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
9
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.8", ngImport: i0, type: RxStateModule, imports: [RxPush, RxFor, RxIf, RxLet], exports: [RxPush, RxFor, RxIf, RxLet] });
|
|
10
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: RxStateModule });
|
|
11
|
-
}
|
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: RxStateModule, decorators: [{
|
|
13
|
-
type: NgModule,
|
|
14
|
-
args: [{
|
|
15
|
-
imports: [RxPush, RxFor, RxIf, RxLet],
|
|
16
|
-
exports: [RxPush, RxFor, RxIf, RxLet],
|
|
17
|
-
}]
|
|
18
|
-
}] });
|
|
19
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicngtc3RhdGUubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL2FwcC9zaGFyZWQvcngtc3RhdGUubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBQ2pELE9BQU8sRUFBRSxJQUFJLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sMkJBQTJCLENBQUM7QUFDbkQsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLDBCQUEwQixDQUFDOztBQU1qRCxNQUFNLE9BQU8sYUFBYTt1R0FBYixhQUFhO3dHQUFiLGFBQWEsWUFIZCxNQUFNLEVBQUUsS0FBSyxFQUFFLElBQUksRUFBRSxLQUFLLGFBQzFCLE1BQU0sRUFBRSxLQUFLLEVBQUUsSUFBSSxFQUFFLEtBQUs7d0dBRXpCLGFBQWE7OzJGQUFiLGFBQWE7a0JBSnpCLFFBQVE7bUJBQUM7b0JBQ1IsT0FBTyxFQUFFLENBQUMsTUFBTSxFQUFFLEtBQUssRUFBRSxJQUFJLEVBQUUsS0FBSyxDQUFDO29CQUNyQyxPQUFPLEVBQUUsQ0FBQyxNQUFNLEVBQUUsS0FBSyxFQUFFLElBQUksRUFBRSxLQUFLLENBQUM7aUJBQ3RDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IFJ4Rm9yIH0gZnJvbSAnQHJ4LWFuZ3VsYXIvdGVtcGxhdGUvZm9yJztcbmltcG9ydCB7IFJ4SWYgfSBmcm9tICdAcngtYW5ndWxhci90ZW1wbGF0ZS9pZic7XG5pbXBvcnQgeyBSeFB1c2ggfSBmcm9tICdAcngtYW5ndWxhci90ZW1wbGF0ZS9wdXNoJztcbmltcG9ydCB7IFJ4TGV0IH0gZnJvbSAnQHJ4LWFuZ3VsYXIvdGVtcGxhdGUvbGV0JztcblxuQE5nTW9kdWxlKHtcbiAgaW1wb3J0czogW1J4UHVzaCwgUnhGb3IsIFJ4SWYsIFJ4TGV0XSxcbiAgZXhwb3J0czogW1J4UHVzaCwgUnhGb3IsIFJ4SWYsIFJ4TGV0XSxcbn0pXG5leHBvcnQgY2xhc3MgUnhTdGF0ZU1vZHVsZSB7fVxuIl19
|
|
File without changes
|