@sumaris-net/ngx-components 2.4.149 → 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/core/form/buttons/form-buttons-bar.component.mjs +1 -1
- package/esm2020/src/app/core/menu/menu.service.mjs +7 -1
- package/esm2020/src/app/social/message/message.service.mjs +8 -6
- package/esm2020/src/app/social/user-event/user-event.module.mjs +6 -23
- package/fesm2015/sumaris-net.ngx-components.mjs +22 -27
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +18 -27
- 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/menu/menu.service.d.ts +2 -0
- package/src/app/social/user-event/user-event.module.d.ts +1 -1
- package/src/assets/manifest.json +1 -1
|
@@ -23537,6 +23537,12 @@ class MenuService extends StartableObservableService {
|
|
|
23537
23537
|
_markAsClosed() {
|
|
23538
23538
|
this._$opened.next(false);
|
|
23539
23539
|
}
|
|
23540
|
+
async close() {
|
|
23541
|
+
this._$opened.next(false);
|
|
23542
|
+
}
|
|
23543
|
+
async open() {
|
|
23544
|
+
this._$opened.next(true);
|
|
23545
|
+
}
|
|
23540
23546
|
async ngOnStart() {
|
|
23541
23547
|
console.info(`${this._logPrefix}Starting...`);
|
|
23542
23548
|
// Restore sub items from settings
|
|
@@ -34465,31 +34471,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
34465
34471
|
class UserEventModule {
|
|
34466
34472
|
}
|
|
34467
34473
|
UserEventModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: UserEventModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
34468
|
-
UserEventModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: UserEventModule, declarations: [UserEventNotificationIcon,
|
|
34469
|
-
|
|
34470
|
-
SharedModule,
|
|
34471
|
-
AppIconModule,
|
|
34472
|
-
NgxJdenticonModule], exports: [UserEventNotificationIcon] });
|
|
34473
|
-
UserEventModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: UserEventModule, imports: [CommonModule,
|
|
34474
|
-
SharedModule,
|
|
34475
|
-
AppIconModule,
|
|
34476
|
-
NgxJdenticonModule] });
|
|
34474
|
+
UserEventModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: UserEventModule, declarations: [UserEventNotificationIcon, UserEventNotificationList], imports: [CommonModule, SharedModule, AppIconModule, NgxJdenticonModule], exports: [UserEventNotificationIcon, UserEventNotificationList] });
|
|
34475
|
+
UserEventModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: UserEventModule, imports: [CommonModule, SharedModule, AppIconModule, NgxJdenticonModule] });
|
|
34477
34476
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: UserEventModule, decorators: [{
|
|
34478
34477
|
type: NgModule,
|
|
34479
34478
|
args: [{
|
|
34480
|
-
imports: [
|
|
34481
|
-
|
|
34482
|
-
|
|
34483
|
-
AppIconModule,
|
|
34484
|
-
NgxJdenticonModule
|
|
34485
|
-
],
|
|
34486
|
-
declarations: [
|
|
34487
|
-
UserEventNotificationIcon,
|
|
34488
|
-
UserEventNotificationList
|
|
34489
|
-
],
|
|
34490
|
-
exports: [
|
|
34491
|
-
UserEventNotificationIcon
|
|
34492
|
-
]
|
|
34479
|
+
imports: [CommonModule, SharedModule, AppIconModule, NgxJdenticonModule],
|
|
34480
|
+
declarations: [UserEventNotificationIcon, UserEventNotificationList],
|
|
34481
|
+
exports: [UserEventNotificationIcon, UserEventNotificationList],
|
|
34493
34482
|
}]
|
|
34494
34483
|
}] });
|
|
34495
34484
|
|
|
@@ -35089,9 +35078,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
35089
35078
|
}] });
|
|
35090
35079
|
|
|
35091
35080
|
const Mutations = {
|
|
35092
|
-
send: gql `
|
|
35093
|
-
|
|
35094
|
-
|
|
35081
|
+
send: gql `
|
|
35082
|
+
mutation SendMessage($data: MessageVOInput) {
|
|
35083
|
+
done: sendMessage(message: $data)
|
|
35084
|
+
}
|
|
35085
|
+
`,
|
|
35095
35086
|
};
|
|
35096
35087
|
class MessageService extends BaseGraphqlService {
|
|
35097
35088
|
constructor(graphql, translate, modalCtrl, toastController, environment) {
|
|
@@ -35152,9 +35143,9 @@ class MessageService extends BaseGraphqlService {
|
|
|
35152
35143
|
// On dismiss
|
|
35153
35144
|
const { data } = await modal.onDidDismiss();
|
|
35154
35145
|
if (!data || !(data instanceof Message))
|
|
35155
|
-
return; // CANCELLED
|
|
35146
|
+
return true; // CANCELLED
|
|
35156
35147
|
// Send message
|
|
35157
|
-
await this.send(data, { showToast: options?.showToast });
|
|
35148
|
+
return await this.send(data, { showToast: options?.showToast });
|
|
35158
35149
|
}
|
|
35159
35150
|
/* -- protected methods -- */
|
|
35160
35151
|
async showToast(opts) {
|