@sumaris-net/ngx-components 2.4.148 → 2.4.150
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/esm2020/src/app/admin/users/users.mjs +29 -25
- package/esm2020/src/app/core/form/buttons/form-buttons-bar.component.mjs +1 -1
- package/esm2020/src/app/core/form/entity/editor.class.mjs +7 -3
- package/esm2020/src/app/core/form/entity/entity-editor.class.mjs +12 -6
- package/esm2020/src/app/core/form/entity/entity-metadata.component.mjs +3 -3
- package/esm2020/src/app/core/form/properties/testing/properties-form.test.mjs +1 -1
- package/esm2020/src/app/core/home/home.mjs +2 -2
- package/esm2020/src/app/core/menu/menu.component.mjs +2 -2
- package/esm2020/src/app/core/menu/menu.service.mjs +7 -1
- package/esm2020/src/app/core/menu/testing/menu-other.testing.mjs +1 -1
- package/esm2020/src/app/core/menu/testing/menu.testing.mjs +1 -1
- package/esm2020/src/app/core/register/register-confirm.page.mjs +1 -1
- package/esm2020/src/app/core/table/testing/table.testing.mjs +1 -1
- package/esm2020/src/app/shared/form/field.component.mjs +1 -1
- package/esm2020/src/app/shared/image/gallery/image-gallery.component.mjs +2 -2
- package/esm2020/src/app/shared/image/gallery/testing/gallery.testing.mjs +1 -1
- package/esm2020/src/app/shared/material/autocomplete/material.autocomplete.mjs +8 -4
- package/esm2020/src/app/shared/material/autocomplete/testing/autocomplete.test.mjs +1 -1
- package/esm2020/src/app/shared/material/badge/badge.test.mjs +1 -1
- package/esm2020/src/app/shared/material/chips/testing/chips.test.mjs +1 -1
- package/esm2020/src/app/shared/material/datetime/testing/mat-date-time.test.mjs +1 -1
- package/esm2020/src/app/shared/material/datetime/testing/mat-date.test.mjs +1 -1
- package/esm2020/src/app/shared/material/datetime/testing/mat-dateshort.test.mjs +1 -1
- package/esm2020/src/app/shared/material/latlong/testing/latlong.test.mjs +1 -1
- package/esm2020/src/app/shared/material/numpad/testing/numpad.test.mjs +1 -1
- package/esm2020/src/app/shared/material/swipe/testing/swipe.test.mjs +1 -1
- package/esm2020/src/app/shared/storage/storage-explorer.component.mjs +1 -1
- package/esm2020/src/app/shared/testing/observable.test.mjs +1 -1
- package/esm2020/src/app/shared/testing/tests.page.mjs +1 -1
- package/esm2020/src/app/social/message/message.form.mjs +3 -3
- package/esm2020/src/app/social/message/message.modal.mjs +10 -8
- package/esm2020/src/app/social/message/message.service.mjs +24 -5
- package/esm2020/src/app/social/user-event/user-event.module.mjs +6 -23
- package/fesm2015/sumaris-net.ngx-components.mjs +122 -89
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +116 -89
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/buttons/form-buttons-bar.component.d.ts +1 -1
- package/src/app/core/form/entity/entity-editor.class.d.ts +10 -6
- package/src/app/core/form/entity/entity-metadata.component.d.ts +1 -1
- package/src/app/core/menu/menu.service.d.ts +2 -0
- package/src/app/shared/material/autocomplete/material.autocomplete.d.ts +3 -2
- package/src/app/social/message/message.service.d.ts +8 -3
- package/src/app/social/user-event/user-event.module.d.ts +1 -1
- package/src/assets/i18n/en-US.json +1 -1
- package/src/assets/i18n/en.json +1 -1
- package/src/assets/i18n/fr.json +1 -1
- package/src/assets/manifest.json +1 -1
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ export declare abstract class FormButtonsBarToken {
|
|
|
10
10
|
abstract onBack: EventEmitter<Event>;
|
|
11
11
|
}
|
|
12
12
|
export declare class FormButtonsBarComponent implements FormButtonsBarToken, OnDestroy {
|
|
13
|
-
menu: MenuService;
|
|
13
|
+
protected menu: MenuService;
|
|
14
14
|
private _subscription;
|
|
15
15
|
disabled: boolean;
|
|
16
16
|
disabledCancel: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AfterViewInit, ChangeDetectorRef, EventEmitter, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { IonRouterOutlet } from '@ionic/angular';
|
|
3
|
-
import { Observable, Subject } from 'rxjs';
|
|
3
|
+
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
4
4
|
import { AddToPageHistoryOptions, LocalSettingsService } from '../../services/local-settings.service';
|
|
5
5
|
import { Entity } from '../../services/model/entity.model';
|
|
6
6
|
import { UsageMode } from '../../services/model/settings.model';
|
|
@@ -43,7 +43,7 @@ export interface AppErrorWithDetails extends AppError {
|
|
|
43
43
|
errors?: FormErrors;
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
export declare abstract class AppEntityEditor<T extends Entity<T, ID>, S extends IEntityService<T, ID> = IEntityService<T, any>, ID = number> extends AppTabEditor<T, ID,
|
|
46
|
+
export declare abstract class AppEntityEditor<T extends Entity<T, ID>, S extends IEntityService<T, ID> = IEntityService<T, any>, ID = number, LO extends EntityServiceLoadOptions = EntityServiceLoadOptions> extends AppTabEditor<T, ID, LO> implements OnInit, OnDestroy, AfterViewInit, IAppEntityEditor {
|
|
47
47
|
protected dataType: new () => T;
|
|
48
48
|
protected dataService?: S;
|
|
49
49
|
data: T;
|
|
@@ -52,8 +52,12 @@ export declare abstract class AppEntityEditor<T extends Entity<T, ID>, S extends
|
|
|
52
52
|
icon?: string;
|
|
53
53
|
matIcon?: string;
|
|
54
54
|
};
|
|
55
|
-
|
|
56
|
-
onUpdateView: EventEmitter<T>;
|
|
55
|
+
readonly titleSubject: BehaviorSubject<string>;
|
|
56
|
+
readonly onUpdateView: EventEmitter<T>;
|
|
57
|
+
/**
|
|
58
|
+
* @deprecated
|
|
59
|
+
*/
|
|
60
|
+
protected get $title(): Subject<string>;
|
|
57
61
|
protected readonly dateFormat: DateFormatService;
|
|
58
62
|
protected readonly cd: ChangeDetectorRef;
|
|
59
63
|
protected readonly settings: LocalSettingsService;
|
|
@@ -200,6 +204,6 @@ export declare abstract class AppEntityEditor<T extends Entity<T, ID>, S extends
|
|
|
200
204
|
protected abstract setValue(data: T): Promise<void> | void;
|
|
201
205
|
protected abstract get form(): FormGroup;
|
|
202
206
|
protected abstract getFirstInvalidTabIndex(): number;
|
|
203
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AppEntityEditor<any, any, any>, never>;
|
|
204
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AppEntityEditor<any, any, any>, never, never, {}, {}, never, never, false>;
|
|
207
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppEntityEditor<any, any, any, any>, never>;
|
|
208
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AppEntityEditor<any, any, any, any>, never, never, {}, {}, never, never, false>;
|
|
205
209
|
}
|
|
@@ -9,5 +9,5 @@ export declare class EntityMetadataComponent {
|
|
|
9
9
|
};
|
|
10
10
|
showRecorder: boolean;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<EntityMetadataComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EntityMetadataComponent, "app-entity-metadata", never, { "value": "value"; "showRecorder": "showRecorder"; }, {}, never, ["*"], false>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EntityMetadataComponent, "app-entity-metadata", never, { "value": "value"; "showRecorder": "showRecorder"; }, {}, never, ["[recorderSuffix]", "*"], false>;
|
|
13
13
|
}
|
|
@@ -76,6 +76,8 @@ export declare class MenuService extends StartableObservableService<MenuItem[]>
|
|
|
76
76
|
toggleExpandableItem(item: MenuItem): Promise<void>;
|
|
77
77
|
_markAsOpened(): void;
|
|
78
78
|
_markAsClosed(): void;
|
|
79
|
+
close(): Promise<void>;
|
|
80
|
+
open(): Promise<void>;
|
|
79
81
|
protected ngOnStart(): Promise<MenuItem[]>;
|
|
80
82
|
private _loadMenuItems;
|
|
81
83
|
private _addSubMenuItems;
|
|
@@ -67,6 +67,7 @@ export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDe
|
|
|
67
67
|
debug: boolean;
|
|
68
68
|
showSearchBar: boolean;
|
|
69
69
|
stickySearchBar: boolean;
|
|
70
|
+
applyImplicitValue: boolean | (() => boolean);
|
|
70
71
|
clicked: EventEmitter<MouseEvent>;
|
|
71
72
|
blurred: EventEmitter<FocusEvent>;
|
|
72
73
|
focused: EventEmitter<FocusEvent>;
|
|
@@ -111,7 +112,7 @@ export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDe
|
|
|
111
112
|
protected ionSearchBarChanged(event: Event): void;
|
|
112
113
|
filterMatSelectFocusEvent(event: FocusEvent): void;
|
|
113
114
|
filterMatSelectBlurEvent(event: FocusEvent): boolean;
|
|
114
|
-
clearValue(event
|
|
115
|
+
clearValue(event?: Event): void;
|
|
115
116
|
_initAutocompleteInfiniteScroll(threshold?: string): void;
|
|
116
117
|
_initMatSelectInfiniteScroll(threshold?: string): void;
|
|
117
118
|
get isOpen(): boolean;
|
|
@@ -135,5 +136,5 @@ export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDe
|
|
|
135
136
|
*/
|
|
136
137
|
private _fixSearchbarOverlay;
|
|
137
138
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatAutocompleteField, [null, null, null, null, null, { optional: true; }]>;
|
|
138
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatAutocompleteField, "mat-autocomplete-field", never, { "equals": "equals"; "logPrefix": "logPrefix"; "formControl": "formControl"; "formControlName": "formControlName"; "floatLabel": "floatLabel"; "appearance": "appearance"; "placeholder": "placeholder"; "suggestFn": "suggestFn"; "required": "required"; "mobile": "mobile"; "clearable": "clearable"; "debounceTime": "debounceTime"; "displayWith": "displayWith"; "displayAttributes": "displayAttributes"; "displayColumnSizes": "displayColumnSizes"; "displayColumnNames": "displayColumnNames"; "highlightAccent": "highlightAccent"; "showAllOnFocus": "showAllOnFocus"; "showPanelOnFocus": "showPanelOnFocus"; "autofocus": "autofocus"; "config": "config"; "i18nPrefix": "i18nPrefix"; "noResultMessage": "noResultMessage"; "classList": "class"; "panelWidth": "panelWidth"; "matAutocompletePosition": "matAutocompletePosition"; "multiple": "multiple"; "fetchMoreThreshold": "fetchMoreThreshold"; "suggestLengthThreshold": "suggestLengthThreshold"; "showLoadingSpinner": "showLoadingSpinner"; "debug": "debug"; "showSearchBar": "showSearchBar"; "stickySearchBar": "stickySearchBar"; "filter": "filter"; "readonly": "readonly"; "tabindex": "tabindex"; "items": "items"; }, { "clicked": "click"; "blurred": "blur"; "focused": "focus"; "dropButtonClick": "dropButtonClick"; "keydownEscape": "keydown.escape"; "keyupEnter": "keyup.enter"; }, never, ["[matError]", "[matAfter]", "[matPrefix]", "[matSuffix]"], false>;
|
|
139
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatAutocompleteField, "mat-autocomplete-field", never, { "equals": "equals"; "logPrefix": "logPrefix"; "formControl": "formControl"; "formControlName": "formControlName"; "floatLabel": "floatLabel"; "appearance": "appearance"; "placeholder": "placeholder"; "suggestFn": "suggestFn"; "required": "required"; "mobile": "mobile"; "clearable": "clearable"; "debounceTime": "debounceTime"; "displayWith": "displayWith"; "displayAttributes": "displayAttributes"; "displayColumnSizes": "displayColumnSizes"; "displayColumnNames": "displayColumnNames"; "highlightAccent": "highlightAccent"; "showAllOnFocus": "showAllOnFocus"; "showPanelOnFocus": "showPanelOnFocus"; "autofocus": "autofocus"; "config": "config"; "i18nPrefix": "i18nPrefix"; "noResultMessage": "noResultMessage"; "classList": "class"; "panelWidth": "panelWidth"; "matAutocompletePosition": "matAutocompletePosition"; "multiple": "multiple"; "fetchMoreThreshold": "fetchMoreThreshold"; "suggestLengthThreshold": "suggestLengthThreshold"; "showLoadingSpinner": "showLoadingSpinner"; "debug": "debug"; "showSearchBar": "showSearchBar"; "stickySearchBar": "stickySearchBar"; "applyImplicitValue": "applyImplicitValue"; "filter": "filter"; "readonly": "readonly"; "tabindex": "tabindex"; "items": "items"; }, { "clicked": "click"; "blurred": "blur"; "focused": "focus"; "dropButtonClick": "dropButtonClick"; "keydownEscape": "keydown.escape"; "keyupEnter": "keyup.enter"; }, never, ["[matError]", "[matAfter]", "[matPrefix]", "[matSuffix]"], false>;
|
|
139
140
|
}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { GraphqlService } from '../../core/graphql/graphql.service';
|
|
2
|
-
import { ToastController } from '@ionic/angular';
|
|
2
|
+
import { ModalController, ToastController } from '@ionic/angular';
|
|
3
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
4
|
import { BaseGraphqlService } from '../../core/services/base-graphql-service.class';
|
|
5
5
|
import { Environment } from '../../../environments/environment.class';
|
|
6
6
|
import { Message, MessageFilter } from './message.model';
|
|
7
7
|
import { ShowToastOptions } from '../../shared/toast/toasts';
|
|
8
|
+
import { MessageModalOptions } from './message.modal';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class MessageService extends BaseGraphqlService<Message, MessageFilter> {
|
|
10
11
|
protected graphql: GraphqlService;
|
|
11
12
|
protected translate: TranslateService;
|
|
13
|
+
protected modalCtrl: ModalController;
|
|
12
14
|
protected toastController: ToastController;
|
|
13
15
|
protected environment: Environment;
|
|
14
|
-
constructor(graphql: GraphqlService, translate: TranslateService, toastController: ToastController, environment: Environment);
|
|
16
|
+
constructor(graphql: GraphqlService, translate: TranslateService, modalCtrl: ModalController, toastController: ToastController, environment: Environment);
|
|
15
17
|
/**
|
|
16
18
|
* Send a message to recipient(s)
|
|
17
19
|
*
|
|
@@ -21,7 +23,10 @@ export declare class MessageService extends BaseGraphqlService<Message, MessageF
|
|
|
21
23
|
send(entity: Message, opts?: {
|
|
22
24
|
showToast?: boolean;
|
|
23
25
|
}): Promise<boolean>;
|
|
26
|
+
openComposeModal(options: MessageModalOptions & {
|
|
27
|
+
showToast?: boolean;
|
|
28
|
+
}): Promise<any>;
|
|
24
29
|
protected showToast(opts: ShowToastOptions): Promise<import("@ionic/core").OverlayEventDetail<any>>;
|
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MessageService, [null, null, null, { optional: true; }]>;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MessageService, [null, null, null, null, { optional: true; }]>;
|
|
26
31
|
static ɵprov: i0.ɵɵInjectableDeclaration<MessageService>;
|
|
27
32
|
}
|
|
@@ -7,6 +7,6 @@ import * as i5 from "../../core/icon/icon.module";
|
|
|
7
7
|
import * as i6 from "ngx-jdenticon";
|
|
8
8
|
export declare class UserEventModule {
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserEventModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<UserEventModule, [typeof i1.UserEventNotificationIcon, typeof i2.UserEventNotificationList], [typeof i3.CommonModule, typeof i4.SharedModule, typeof i5.AppIconModule, typeof i6.NgxJdenticonModule], [typeof i1.UserEventNotificationIcon]>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UserEventModule, [typeof i1.UserEventNotificationIcon, typeof i2.UserEventNotificationList], [typeof i3.CommonModule, typeof i4.SharedModule, typeof i5.AppIconModule, typeof i6.NgxJdenticonModule], [typeof i1.UserEventNotificationIcon, typeof i2.UserEventNotificationList]>;
|
|
11
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<UserEventModule>;
|
|
12
12
|
}
|
package/src/assets/i18n/en.json
CHANGED
package/src/assets/i18n/fr.json
CHANGED
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": "2.4.
|
|
5
|
+
"version": "2.4.150",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|