nuxeo-development-framework 3.9.4 → 3.9.6
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/bundles/nuxeo-development-framework.umd.js +407 -220
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/custom-toastr/components/custom-toastr/custom-toastr.component.js +4 -3
- package/esm2015/lib/components/custom-toastr/services/custom-toastr.service.js +28 -18
- package/esm2015/lib/components/dynamic-chart/dynamic-chart/dynamic-chart.component.js +66 -8
- package/esm2015/lib/components/filter/filter/filter.component.js +2 -2
- package/esm2015/lib/components/notifications/components/notifications-button/notifications-button.component.js +49 -16
- package/esm2015/lib/components/notifications/models/index.js +2 -1
- package/esm2015/lib/components/notifications/models/notification-message.mode.js +2 -0
- package/esm2015/lib/components/notifications/services/notifications.service.js +26 -11
- package/esm2015/lib/components/notifications/services/socket.service.js +71 -0
- package/fesm2015/nuxeo-development-framework.js +264 -84
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/custom-toastr/components/custom-toastr/custom-toastr.component.d.ts +2 -1
- package/lib/components/custom-toastr/services/custom-toastr.service.d.ts +13 -5
- package/lib/components/dynamic-chart/dynamic-chart/dynamic-chart.component.d.ts +10 -2
- package/lib/components/notifications/components/notifications-button/notifications-button.component.d.ts +11 -6
- package/lib/components/notifications/models/index.d.ts +1 -0
- package/lib/components/notifications/models/notification-message.mode.d.ts +13 -0
- package/lib/components/notifications/services/notifications.service.d.ts +12 -8
- package/lib/components/notifications/services/socket.service.d.ts +26 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
-
import {
|
|
3
|
+
import { Toast, ToastPackage, ToastrService } from 'ngx-toastr';
|
|
4
4
|
import { UserPreferencesService } from '../../../../core/services/user/user-preferences.service';
|
|
5
5
|
import { ToastType } from '../../interfaces/toast-type.interface';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
@@ -12,6 +12,7 @@ export declare class CustomToastrComponent extends Toast implements OnInit {
|
|
|
12
12
|
lang: any;
|
|
13
13
|
type: ToastType;
|
|
14
14
|
value: any;
|
|
15
|
+
customContent: string;
|
|
15
16
|
private onDestroy$;
|
|
16
17
|
constructor(toastrService: ToastrService, toastPackage: ToastPackage, translate: TranslateService, userPreferenceService?: UserPreferencesService);
|
|
17
18
|
ngOnInit(): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ActiveToast, IndividualConfig, ToastrService } from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { ActiveToast, IndividualConfig, ToastrService } from 'ngx-toastr';
|
|
2
|
+
import { TranslationService } from '../../../core/services/translation/translation.service';
|
|
3
|
+
import { UserPreferencesService } from '../../../core/services/user/user-preferences.service';
|
|
4
|
+
import { ToastType } from '../interfaces/toast-type.interface';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class CustomToastrService {
|
|
7
7
|
private translation;
|
|
@@ -11,7 +11,15 @@ export declare class CustomToastrService {
|
|
|
11
11
|
isArabic: boolean;
|
|
12
12
|
constructor(translation: TranslationService, toastr: ToastrService, userPreferenceService?: UserPreferencesService);
|
|
13
13
|
setDirection(): void;
|
|
14
|
-
show(type: ToastType, title: any, message: any, customOptions?: Partial<IndividualConfig>, customMsg?: any): ActiveToast<any>;
|
|
14
|
+
show(type: ToastType, title: any, message: any, customOptions?: Partial<IndividualConfig>, customMsg?: any, customContent?: any): ActiveToast<any>;
|
|
15
|
+
showToast(options: {
|
|
16
|
+
type: ToastType;
|
|
17
|
+
title?: string;
|
|
18
|
+
message?: string;
|
|
19
|
+
customMsg?: any;
|
|
20
|
+
customContent?: string;
|
|
21
|
+
customOptions?: Partial<IndividualConfig>;
|
|
22
|
+
}): ActiveToast<any>;
|
|
15
23
|
ngOnDestroy(): void;
|
|
16
24
|
success(message: string, title?: string, customOptions?: Partial<IndividualConfig>, customMsg?: string): void;
|
|
17
25
|
error(message: string, title?: string, customOptions?: Partial<IndividualConfig>, customMsg?: string): void;
|
|
@@ -6,6 +6,8 @@ import { ChartDataService } from "../services/chart-data.service";
|
|
|
6
6
|
import { Router } from '@angular/router';
|
|
7
7
|
import 'chartjs-plugin-piechart-outlabels';
|
|
8
8
|
import 'chartjs-plugin-labels';
|
|
9
|
+
import { TranslationService } from "../../../core/services/translation/translation.service";
|
|
10
|
+
import { DepartmentApiService } from "../../dynamic-form/components/dynamic-form-department/services/department-api.service";
|
|
9
11
|
import * as i0 from "@angular/core";
|
|
10
12
|
/** @ignore */
|
|
11
13
|
export declare class DynamicChartComponent implements OnInit, OnChanges, OnDestroy {
|
|
@@ -14,6 +16,8 @@ export declare class DynamicChartComponent implements OnInit, OnChanges, OnDestr
|
|
|
14
16
|
private callApi;
|
|
15
17
|
private router;
|
|
16
18
|
chartData: ChartDataService;
|
|
19
|
+
private translationService;
|
|
20
|
+
private departmentApiService;
|
|
17
21
|
chart: ElementRef;
|
|
18
22
|
prefix: string;
|
|
19
23
|
chartType: any;
|
|
@@ -51,9 +55,12 @@ export declare class DynamicChartComponent implements OnInit, OnChanges, OnDestr
|
|
|
51
55
|
card: boolean;
|
|
52
56
|
cardTitle: string;
|
|
53
57
|
inputChartData: any;
|
|
58
|
+
asigneeDepartments: any;
|
|
59
|
+
noFetchedKey: boolean;
|
|
54
60
|
isInternalActive: boolean;
|
|
55
61
|
myDataSubscription: Subscription;
|
|
56
|
-
|
|
62
|
+
isArabic: any;
|
|
63
|
+
constructor(translate: TranslateService, changeDetector: ChangeDetectorRef, callApi: CallApiService, router: Router, chartData: ChartDataService, translationService: TranslationService, departmentApiService: DepartmentApiService);
|
|
57
64
|
createChart(): void;
|
|
58
65
|
createChartWithoutPP(): void;
|
|
59
66
|
updateStats(): void;
|
|
@@ -61,9 +68,10 @@ export declare class DynamicChartComponent implements OnInit, OnChanges, OnDestr
|
|
|
61
68
|
ngOnChanges(changes: SimpleChanges): void;
|
|
62
69
|
ngOnDestroy(): void;
|
|
63
70
|
getData(): Observable<any>;
|
|
71
|
+
consturctChartLabel(item: any): any;
|
|
64
72
|
getCombinedData(pageProviderOne: any, quickFilterOne: any, selectedRange: any, pageProviderTwo: any, quickFilterTwo: any, quickFilterThree: any, statusOne: any, statusTwo: any, statusThree: any): Observable<any[]>;
|
|
65
73
|
previewCorrespondences(): void;
|
|
66
74
|
stringToHslColor(str: any, s: any, l: any): string;
|
|
67
75
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicChartComponent, never>;
|
|
68
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicChartComponent, "cts-dynamic-chart", never, { "prefix": "prefix"; "chartType": "chartType"; "randomColors": "randomColors"; "pageProvider": "pageProvider"; "headers": "headers"; "observable": "observable"; "aggregations": "aggregations"; "quickFilters": "quickFilters"; "systemCurrentLifeCycleState": "systemCurrentLifeCycleState"; "range": "range"; "label": "label"; "selectedRange": "selectedRange"; "tenantId": "tenantId"; "colors": "colors"; "randomColor": "randomColor"; "fetchedKey": "fetchedKey"; "pageProviderTwo": "pageProviderTwo"; "quickFilterTwo": "quickFilterTwo"; "quickFilterThree": "quickFilterThree"; "combinedData": "combinedData"; "statusOne": "statusOne"; "statusTwo": "statusTwo"; "statusThree": "statusThree"; "min": "min"; "max": "max"; "width": "width"; "height": "height"; "card": "card"; "cardTitle": "cardTitle"; "inputChartData": "inputChartData"; "isInternalActive": "isInternalActive"; }, {}, never, never>;
|
|
76
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicChartComponent, "cts-dynamic-chart", never, { "prefix": "prefix"; "chartType": "chartType"; "randomColors": "randomColors"; "pageProvider": "pageProvider"; "headers": "headers"; "observable": "observable"; "aggregations": "aggregations"; "quickFilters": "quickFilters"; "systemCurrentLifeCycleState": "systemCurrentLifeCycleState"; "range": "range"; "label": "label"; "selectedRange": "selectedRange"; "tenantId": "tenantId"; "colors": "colors"; "randomColor": "randomColor"; "fetchedKey": "fetchedKey"; "pageProviderTwo": "pageProviderTwo"; "quickFilterTwo": "quickFilterTwo"; "quickFilterThree": "quickFilterThree"; "combinedData": "combinedData"; "statusOne": "statusOne"; "statusTwo": "statusTwo"; "statusThree": "statusThree"; "min": "min"; "max": "max"; "width": "width"; "height": "height"; "card": "card"; "cardTitle": "cardTitle"; "inputChartData": "inputChartData"; "asigneeDepartments": "asigneeDepartments"; "noFetchedKey": "noFetchedKey"; "isInternalActive": "isInternalActive"; }, {}, never, never>;
|
|
69
77
|
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { EventEmitter, Injector, TemplateRef } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, Injector, TemplateRef } from '@angular/core';
|
|
2
2
|
import { TranslationService } from '../../../../core/services/translation/translation.service';
|
|
3
|
-
import {
|
|
3
|
+
import { CustomToastrService } from '../../../custom-toastr/services/custom-toastr.service';
|
|
4
|
+
import { BadgeOptions, NotificationMessageModel, NotificationModel, NotificationPanelMode, NotificationsListOptions } from '../../models';
|
|
4
5
|
import { BaseNotification } from '../base-notifications.component';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class NotificationsButtonComponent extends BaseNotification {
|
|
7
8
|
protected inject: Injector;
|
|
8
9
|
private _translationService;
|
|
10
|
+
private _toasterService;
|
|
11
|
+
private _cdr;
|
|
9
12
|
private readonly _getCountSub;
|
|
10
13
|
private readonly _showBadgeSub;
|
|
11
14
|
readonly showBadge$: import("rxjs").Observable<boolean>;
|
|
@@ -17,17 +20,19 @@ export declare class NotificationsButtonComponent extends BaseNotification {
|
|
|
17
20
|
listItemClick: EventEmitter<NotificationModel>;
|
|
18
21
|
openSettings: EventEmitter<Event>;
|
|
19
22
|
openNotifications: EventEmitter<Event>;
|
|
23
|
+
onNotification: EventEmitter<NotificationMessageModel>;
|
|
20
24
|
customIconTemplate: TemplateRef<any> | undefined;
|
|
21
|
-
readonly newNotificationCount$: import("rxjs").Observable<
|
|
25
|
+
readonly newNotificationCount$: import("rxjs").Observable<any>;
|
|
22
26
|
panelMode: NotificationPanelMode;
|
|
23
27
|
panelModeEnum: {
|
|
24
28
|
readonly panel: "panel";
|
|
25
29
|
readonly sidebar: "sidebar";
|
|
26
30
|
};
|
|
27
|
-
constructor(inject: Injector, _translationService: TranslationService, _options?: NotificationsListOptions);
|
|
31
|
+
constructor(inject: Injector, _translationService: TranslationService, _toasterService: CustomToastrService, _cdr: ChangeDetectorRef, _options?: NotificationsListOptions);
|
|
28
32
|
hideBadgeCount(): void;
|
|
29
33
|
markAllAsUnread(): void;
|
|
30
34
|
toggleSideBar(value?: boolean): void;
|
|
31
|
-
|
|
32
|
-
static
|
|
35
|
+
refreshUnreadCount(): void;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsButtonComponent, [null, null, null, null, { optional: true; }]>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationsButtonComponent, "app-notifications-button", never, { "styleClass": "styleClass"; "badgeOptions": "badgeOptions"; }, { "listItemClick": "listItemClick"; "openSettings": "openSettings"; "openNotifications": "openNotifications"; "onNotification": "onNotification"; }, ["customIconTemplate"], ["[notifications-footer]"]>;
|
|
33
38
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './common';
|
|
2
2
|
export * from './notification-definition.model';
|
|
3
|
+
export * from './notification-message.mode';
|
|
3
4
|
export * from './notification-options';
|
|
4
5
|
export * from './notification-setting.presenter';
|
|
5
6
|
export * from './notification-subscription.model';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface NotificationMessageModel {
|
|
2
|
+
sourceDocumentId: string;
|
|
3
|
+
sourceDocumentType: string;
|
|
4
|
+
arabicMessage: string;
|
|
5
|
+
englishMessage: string;
|
|
6
|
+
data: string;
|
|
7
|
+
notificationKey: string;
|
|
8
|
+
status: string;
|
|
9
|
+
recipientUser: string;
|
|
10
|
+
applicationKey: string;
|
|
11
|
+
company: string;
|
|
12
|
+
clickable: boolean;
|
|
13
|
+
}
|
|
@@ -3,14 +3,15 @@ import { Observable, Subject } from 'rxjs';
|
|
|
3
3
|
import { AutomationResponseModel } from '../../../core/models';
|
|
4
4
|
import { CallApiService } from '../../../core/services/callApi/call-api.service';
|
|
5
5
|
import { NuxeoService } from '../../../core/services/nuxeo/nuxeo.service';
|
|
6
|
-
import { NotificationDefinitionModel, NotificationModel, NotificationSubscriptionModel, PayloadParamsModel, VocabularyType } from '../models';
|
|
6
|
+
import { NotificationDefinitionModel, NotificationMessageModel, NotificationModel, NotificationSubscriptionModel, PayloadParamsModel, VocabularyType } from '../models';
|
|
7
|
+
import { SocketService } from './socket.service';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class NotificationsService {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
listenerObserver: Subject<
|
|
9
|
+
export declare class NotificationsService extends SocketService {
|
|
10
|
+
protected _environment: Record<string, any>;
|
|
11
|
+
protected _nuxeoService: NuxeoService;
|
|
12
|
+
protected _callApi: CallApiService;
|
|
13
|
+
protected _http: HttpClient;
|
|
14
|
+
listenerObserver: Subject<NotificationMessageModel>;
|
|
14
15
|
static readonly sourceType = "/api/v1/directory/VOC_Notf_SourceTypes";
|
|
15
16
|
static readonly channels = "/api/v1/directory/VOC_Notf_NotificationChannels";
|
|
16
17
|
static readonly providers: {
|
|
@@ -31,7 +32,10 @@ export declare class NotificationsService {
|
|
|
31
32
|
};
|
|
32
33
|
private get _tenantId();
|
|
33
34
|
private get _appKey();
|
|
34
|
-
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
constructor(_environment: Record<string, any>, _nuxeoService: NuxeoService, _callApi: CallApiService, _http: HttpClient);
|
|
35
39
|
getUnReadCount(): Observable<number>;
|
|
36
40
|
getNotificationsMongo(payload?: PayloadParamsModel): Observable<import("../models").NotificationPagingResponseModel<NotificationModel>>;
|
|
37
41
|
getNotifications(payload?: PayloadParamsModel): Observable<import("../models").NotificationPagingResponseModel<NotificationModel>>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { Observable, ReplaySubject, Subject } from 'rxjs';
|
|
3
|
+
import { NuxeoService } from '../../../core/services/nuxeo/nuxeo.service';
|
|
4
|
+
import { NotificationMessageModel } from '../models';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class SocketService implements OnDestroy {
|
|
7
|
+
protected _environment: Record<string, any>;
|
|
8
|
+
protected _nuxeoService: NuxeoService;
|
|
9
|
+
protected _destroy$: Subject<unknown>;
|
|
10
|
+
protected _socket: WebSocket;
|
|
11
|
+
protected _messageSub: ReplaySubject<NotificationMessageModel>;
|
|
12
|
+
protected _connecting: boolean;
|
|
13
|
+
private _connectionSource;
|
|
14
|
+
onMessage$: Observable<NotificationMessageModel>;
|
|
15
|
+
constructor(_environment: Record<string, any>, _nuxeoService: NuxeoService);
|
|
16
|
+
protected _isConnected(): boolean;
|
|
17
|
+
socketConnect(): Observable<boolean>;
|
|
18
|
+
disconnect(): void;
|
|
19
|
+
private _prepareConnection;
|
|
20
|
+
ngOnDestroy(): void;
|
|
21
|
+
private _handleSocketMessage;
|
|
22
|
+
private _handleSocketConnection;
|
|
23
|
+
private _handleSocketError;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SocketService, never>;
|
|
25
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SocketService>;
|
|
26
|
+
}
|