nuxeo-development-framework 3.8.2 → 3.8.3
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 +32267 -30524
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/notifications/components/base-list-notfications.component.js +154 -0
- package/esm2015/lib/components/notifications/components/base-notifications.component.js +35 -0
- package/esm2015/lib/components/notifications/components/index.js +7 -0
- package/esm2015/lib/components/notifications/components/notification-item/get-icon.pipe.js +44 -0
- package/esm2015/lib/components/notifications/components/notification-item/notification-item.component.js +41 -129
- package/esm2015/lib/components/notifications/components/notification-source-select/notification-source-select.component.js +34 -0
- package/esm2015/lib/components/notifications/components/notification-status-toggle/notification-status-toggle.component.js +26 -0
- package/esm2015/lib/components/notifications/components/notifications-button/notifications-button.component.js +75 -165
- package/esm2015/lib/components/notifications/components/notifications-date-select/notifications-date-select.component.js +59 -0
- package/esm2015/lib/components/notifications/components/notifications-list/notifications-list.component.js +53 -175
- package/esm2015/lib/components/notifications/components/notifications-list/options.js +24 -0
- package/esm2015/lib/components/notifications/components/notifications-list-actions/notifications-list-actions.component.js +43 -0
- package/esm2015/lib/components/notifications/components/notifications-settings/check-if-subscribed.pipe.js +28 -0
- package/esm2015/lib/components/notifications/components/notifications-settings/notifications-settings.adapter.js +30 -0
- package/esm2015/lib/components/notifications/components/notifications-settings/notifications-settings.component.js +163 -0
- package/esm2015/lib/components/notifications/components/notifications-sidebar/notifications-sidebar-content.js +28 -0
- package/esm2015/lib/components/notifications/components/notifications-sidebar/notifications-sidebar.component.js +158 -0
- package/esm2015/lib/components/notifications/constants/date.js +8 -0
- package/esm2015/lib/components/notifications/constants/index.js +5 -0
- package/esm2015/lib/components/notifications/constants/pagination.js +5 -0
- package/esm2015/lib/components/notifications/constants/panel.js +5 -0
- package/esm2015/lib/components/notifications/constants/status.js +10 -0
- package/esm2015/lib/components/notifications/containers/index.js +3 -0
- package/esm2015/lib/components/notifications/containers/notifications-list-container/notifications-list-container.component.js +98 -0
- package/esm2015/lib/components/notifications/containers/notifications-list-container/options.js +18 -0
- package/esm2015/lib/components/notifications/containers/notifications-settings-container/notifications-settings-container.component.js +67 -0
- package/esm2015/lib/components/notifications/directives/button.directive.js +28 -0
- package/esm2015/lib/components/notifications/directives/index.js +3 -0
- package/esm2015/lib/components/notifications/directives/notification.directive.js +28 -0
- package/esm2015/lib/components/notifications/index.js +2 -0
- package/esm2015/lib/components/notifications/models/common.js +2 -0
- package/esm2015/lib/components/notifications/models/index.js +11 -0
- package/esm2015/lib/components/notifications/models/notification-definition.model.js +2 -0
- package/esm2015/lib/components/notifications/models/notification-options.js +2 -0
- package/esm2015/lib/components/notifications/models/notification-setting.presenter.js +2 -0
- package/esm2015/lib/components/notifications/models/notification-subscription.model.js +2 -0
- package/esm2015/lib/components/notifications/models/notification.model.js +2 -0
- package/esm2015/lib/components/notifications/models/notifications-list-options.js +3 -0
- package/esm2015/lib/components/notifications/models/paging-response.model.js +2 -0
- package/esm2015/lib/components/notifications/models/params.model.js +2 -0
- package/esm2015/lib/components/notifications/models/vocabularies.js +2 -0
- package/esm2015/lib/components/notifications/notifications.module.js +80 -46
- package/esm2015/lib/components/notifications/public-api.js +9 -0
- package/esm2015/lib/components/notifications/services/index.js +2 -0
- package/esm2015/lib/components/notifications/services/listener.service.js +19 -0
- package/esm2015/lib/components/notifications/services/notifications.service.js +155 -0
- package/esm2015/lib/components/notifications/services/params.service.js +31 -0
- package/esm2015/lib/components/notifications/services/response.service.js +65 -0
- package/esm2015/lib/components/notifications/utilities/index.js +2 -0
- package/esm2015/lib/components/notifications/utilities/response.adapter.js +12 -0
- package/esm2015/lib/components/{notifications → toasts}/components/notification-toast/notification-toast.component.js +7 -11
- package/esm2015/lib/components/toasts/index.js +2 -0
- package/esm2015/lib/components/toasts/public-api.js +3 -0
- package/esm2015/lib/components/toasts/toasts.module.js +19 -0
- package/esm2015/lib/core/models/api-response.model.js +2 -0
- package/esm2015/lib/core/models/automation-response.model.js +2 -0
- package/esm2015/lib/core/models/base-response.models.js +2 -0
- package/esm2015/lib/core/models/index.js +5 -0
- package/esm2015/lib/core/services/nuxeo/nuxeo.service.js +3 -3
- package/esm2015/lib/core/services/translation/translation.service.js +3 -3
- package/esm2015/public-api.js +136 -142
- package/fesm2015/nuxeo-development-framework.js +25617 -24039
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/notifications/components/base-list-notfications.component.d.ts +40 -0
- package/lib/components/notifications/components/base-notifications.component.d.ts +20 -0
- package/lib/components/notifications/components/index.d.ts +6 -0
- package/lib/components/notifications/components/notification-item/get-icon.pipe.d.ts +8 -0
- package/lib/components/notifications/components/notification-item/notification-item.component.d.ts +21 -22
- package/lib/components/notifications/components/notification-source-select/notification-source-select.component.d.ts +12 -0
- package/lib/components/notifications/components/notification-status-toggle/notification-status-toggle.component.d.ts +8 -0
- package/lib/components/notifications/components/notifications-button/notifications-button.component.d.ts +29 -30
- package/lib/components/notifications/components/notifications-date-select/notifications-date-select.component.d.ts +19 -0
- package/lib/components/notifications/components/notifications-list/notifications-list.component.d.ts +15 -54
- package/lib/components/notifications/components/notifications-list/options.d.ts +2 -0
- package/lib/components/notifications/components/notifications-list-actions/notifications-list-actions.component.d.ts +15 -0
- package/lib/components/notifications/components/notifications-settings/check-if-subscribed.pipe.d.ts +8 -0
- package/lib/components/notifications/components/notifications-settings/notifications-settings.adapter.d.ts +3 -0
- package/lib/components/notifications/components/notifications-settings/notifications-settings.component.d.ts +40 -0
- package/lib/components/notifications/components/notifications-sidebar/notifications-sidebar-content.d.ts +9 -0
- package/lib/components/notifications/components/notifications-sidebar/notifications-sidebar.component.d.ts +43 -0
- package/lib/components/notifications/constants/date.d.ts +7 -0
- package/lib/components/notifications/constants/index.d.ts +4 -0
- package/lib/components/notifications/constants/pagination.d.ts +4 -0
- package/lib/components/notifications/constants/panel.d.ts +4 -0
- package/lib/components/notifications/constants/status.d.ts +9 -0
- package/lib/components/notifications/containers/index.d.ts +2 -0
- package/lib/components/notifications/containers/notifications-list-container/notifications-list-container.component.d.ts +27 -0
- package/lib/components/notifications/containers/notifications-list-container/options.d.ts +2 -0
- package/lib/components/notifications/containers/notifications-settings-container/notifications-settings-container.component.d.ts +22 -0
- package/lib/components/notifications/directives/button.directive.d.ts +9 -0
- package/lib/components/notifications/directives/index.d.ts +2 -0
- package/lib/components/notifications/directives/notification.directive.d.ts +9 -0
- package/lib/components/notifications/index.d.ts +1 -0
- package/lib/components/notifications/models/common.d.ts +64 -0
- package/lib/components/notifications/models/index.d.ts +10 -0
- package/lib/components/notifications/models/notification-definition.model.d.ts +17 -0
- package/lib/components/notifications/models/notification-options.d.ts +7 -0
- package/lib/components/notifications/models/notification-setting.presenter.d.ts +24 -0
- package/lib/components/notifications/models/notification-subscription.model.d.ts +13 -0
- package/lib/components/notifications/models/notification.model.d.ts +16 -0
- package/lib/components/notifications/models/notifications-list-options.d.ts +34 -0
- package/lib/components/notifications/models/paging-response.model.d.ts +12 -0
- package/lib/components/notifications/models/params.model.d.ts +6 -0
- package/lib/components/notifications/models/vocabularies.d.ts +12 -0
- package/lib/components/notifications/notifications.module.d.ts +32 -16
- package/lib/components/notifications/public-api.d.ts +8 -0
- package/lib/components/notifications/services/index.d.ts +1 -0
- package/lib/components/notifications/services/listener.service.d.ts +8 -0
- package/lib/components/notifications/services/notifications.service.d.ts +55 -0
- package/lib/components/notifications/services/params.service.d.ts +19 -0
- package/lib/components/notifications/services/response.service.d.ts +19 -0
- package/lib/components/notifications/utilities/index.d.ts +1 -0
- package/lib/components/notifications/utilities/response.adapter.d.ts +3 -0
- package/lib/components/{notifications → toasts}/components/notification-toast/notification-toast.component.d.ts +1 -3
- package/lib/components/toasts/index.d.ts +1 -0
- package/lib/components/toasts/public-api.d.ts +2 -0
- package/lib/components/toasts/toasts.module.d.ts +8 -0
- package/lib/core/models/api-response.model.d.ts +24 -0
- package/lib/core/models/automation-response.model.d.ts +24 -0
- package/lib/core/models/base-response.models.d.ts +12 -0
- package/lib/core/models/index.d.ts +4 -0
- package/lib/core/services/nuxeo/nuxeo.service.d.ts +1 -1
- package/lib/core/services/translation/translation.service.d.ts +3 -3
- package/package.json +1 -1
- package/public-api.d.ts +130 -136
- package/esm2015/lib/components/notifications/components/notification-options/notification-options.component.js +0 -22
- package/esm2015/lib/components/notifications/notifications.service.js +0 -358
- package/lib/components/notifications/components/notification-options/notification-options.component.d.ts +0 -10
- package/lib/components/notifications/notifications.service.d.ts +0 -87
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, Injector } from '@angular/core';
|
|
2
|
+
import { NotificationModel, NotificationsListOptions } from '../models';
|
|
3
|
+
import { ListenerService } from '../services/listener.service';
|
|
4
|
+
import { ParamsService } from '../services/params.service';
|
|
5
|
+
import { ResponseService } from '../services/response.service';
|
|
6
|
+
import { BaseNotification } from './base-notifications.component';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class BaseListNotifications extends BaseNotification {
|
|
9
|
+
protected inject: Injector;
|
|
10
|
+
markAllRead: EventEmitter<Event>;
|
|
11
|
+
itemClicked: EventEmitter<NotificationModel>;
|
|
12
|
+
protected _paramsService: ParamsService<any>;
|
|
13
|
+
protected _responseService: ResponseService<any>;
|
|
14
|
+
protected _listenerService: ListenerService;
|
|
15
|
+
protected _cdr: ChangeDetectorRef;
|
|
16
|
+
readonly response$: import("rxjs").Observable<import("../models").NotificationPagingResponseModel<any>>;
|
|
17
|
+
trackByFn: (_: number, item: NotificationModel) => string;
|
|
18
|
+
isLoadingResult: boolean;
|
|
19
|
+
currentLang: string;
|
|
20
|
+
direction$: import("rxjs").Observable<"ltr" | "rtl">;
|
|
21
|
+
options: NotificationsListOptions;
|
|
22
|
+
paginationModeEnum: {
|
|
23
|
+
readonly scroll: "scroll";
|
|
24
|
+
readonly navigator: "navigator";
|
|
25
|
+
};
|
|
26
|
+
constructor(inject: Injector);
|
|
27
|
+
markAllAsRead(event: any): void;
|
|
28
|
+
onScrollDown(): void;
|
|
29
|
+
changePage(page: number): void;
|
|
30
|
+
onItemClick(notification: NotificationModel): void;
|
|
31
|
+
markAsRead(notification: NotificationModel): void;
|
|
32
|
+
markAsUnread(notification: NotificationModel): void;
|
|
33
|
+
markAsDeleted(notification: NotificationModel): void;
|
|
34
|
+
protected _applyFilter(params: Record<string, any>): void;
|
|
35
|
+
protected _prepareData(): void;
|
|
36
|
+
protected _prepareLanguage(): void;
|
|
37
|
+
protected _updateList(): import("rxjs").Observable<import("../models").NotificationPagingResponseModel<NotificationModel>>;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseListNotifications, never>;
|
|
39
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseListNotifications, never, never, {}, { "markAllRead": "markAllRead"; "itemClicked": "itemClicked"; }, never>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Injector, OnDestroy } from '@angular/core';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
import { TranslationService } from '../../../Core/services/translation/translation.service';
|
|
4
|
+
import { NotificationsService } from '../services/notifications.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare abstract class DestroySubject implements OnDestroy {
|
|
7
|
+
destroy$: Subject<void>;
|
|
8
|
+
ngOnDestroy(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DestroySubject, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DestroySubject, never, never, {}, {}, never>;
|
|
11
|
+
}
|
|
12
|
+
export declare abstract class BaseNotification extends DestroySubject {
|
|
13
|
+
protected inject: Injector;
|
|
14
|
+
readonly notificationsService: NotificationsService;
|
|
15
|
+
protected readonly _translationService: TranslationService;
|
|
16
|
+
readonly direction$: import("rxjs").Observable<"ltr" | "rtl">;
|
|
17
|
+
constructor(inject: Injector);
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseNotification, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseNotification, never, never, {}, {}, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './notification-item/notification-item.component';
|
|
2
|
+
export * from './notification-source-select/notification-source-select.component';
|
|
3
|
+
export * from './notification-status-toggle/notification-status-toggle.component';
|
|
4
|
+
export * from './notifications-button/notifications-button.component';
|
|
5
|
+
export * from './notifications-date-select/notifications-date-select.component';
|
|
6
|
+
export * from './notifications-list/notifications-list.component';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { NotificationModel, NotificationsListOptions } from '../../models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class GetIconPipe implements PipeTransform {
|
|
5
|
+
transform(data: NotificationModel, options: NotificationsListOptions['icons']): string;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GetIconPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<GetIconPipe, "getIcon">;
|
|
8
|
+
}
|
package/lib/components/notifications/components/notification-item/notification-item.component.d.ts
CHANGED
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
import { EventEmitter
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { MatMenu } from '@angular/material/menu';
|
|
3
|
+
import { NotificationModel, NotificationsListOptions } from '../../models';
|
|
4
|
+
import { DestroySubject } from '../base-notifications.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class NotificationItemComponent {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
navigateToDetais(corrId: any): void;
|
|
6
|
+
export declare class NotificationItemComponent extends DestroySubject {
|
|
7
|
+
iconOptions: NotificationsListOptions['icons'];
|
|
8
|
+
currentLang: string;
|
|
9
|
+
private _notification;
|
|
10
|
+
set notification(value: NotificationModel);
|
|
11
|
+
get notification(): NotificationModel;
|
|
12
|
+
markAsUnread: EventEmitter<NotificationModel>;
|
|
13
|
+
markAsRead: EventEmitter<NotificationModel>;
|
|
14
|
+
markAsDeleted: EventEmitter<NotificationModel>;
|
|
15
|
+
readonly status: {
|
|
16
|
+
readonly new: "New";
|
|
17
|
+
readonly read: "Read";
|
|
18
|
+
readonly unRead: "UnRead";
|
|
19
|
+
};
|
|
20
|
+
constructor();
|
|
21
|
+
closeMenu(event: Event, menu: MatMenu): void;
|
|
23
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationItemComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationItemComponent, "app-notification-item", never, { "
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationItemComponent, "app-notification-item", never, { "iconOptions": "iconOptions"; "currentLang": "currentLang"; "notification": "notification"; }, { "markAsUnread": "markAsUnread"; "markAsRead": "markAsRead"; "markAsDeleted": "markAsDeleted"; }, never, never>;
|
|
25
24
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { VocabularyType } from '../../models';
|
|
3
|
+
import { BaseNotification } from '../base-notifications.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class NotificationSourceSelectComponent extends BaseNotification {
|
|
6
|
+
sourceTypes$: import("rxjs").Observable<VocabularyType[]>;
|
|
7
|
+
typeChanged: EventEmitter<string>;
|
|
8
|
+
selectedFilterType: VocabularyType | null;
|
|
9
|
+
selectFilterType(type: VocabularyType): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationSourceSelectComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationSourceSelectComponent, "app-notification-source-select", never, {}, { "typeChanged": "typeChanged"; }, never, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NotificationStatusToggleComponent {
|
|
4
|
+
status: boolean;
|
|
5
|
+
statusChanged: EventEmitter<boolean>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationStatusToggleComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationStatusToggleComponent, "app-notification-status-toggle", never, { "status": "status"; }, { "statusChanged": "statusChanged"; }, never, never>;
|
|
8
|
+
}
|
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { ActiveToast, ToastrService } from "ngx-toastr";
|
|
5
|
-
import { TimeAgoPipe } from "../../../../pipes/time-ago.pipe";
|
|
6
|
-
import { NotificationsService } from "../../notifications.service";
|
|
7
|
-
import { TranslationService } from "../../../../core/services/translation/translation.service";
|
|
1
|
+
import { EventEmitter, Injector, TemplateRef } from '@angular/core';
|
|
2
|
+
import { BadgeOptions, NotificationModel, NotificationPanelMode, NotificationsListOptions } from '../../models';
|
|
3
|
+
import { BaseNotification } from '../base-notifications.component';
|
|
8
4
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class NotificationsButtonComponent
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
5
|
+
export declare class NotificationsButtonComponent extends BaseNotification {
|
|
6
|
+
protected inject: Injector;
|
|
7
|
+
private readonly _getCountSub;
|
|
8
|
+
private readonly _showBadgeSub;
|
|
9
|
+
readonly showBadge$: import("rxjs").Observable<boolean>;
|
|
10
|
+
isSidebarOpened: boolean;
|
|
11
|
+
styleClass: string;
|
|
12
|
+
badgeOptions: BadgeOptions;
|
|
13
|
+
direction$: import("rxjs").Observable<"ltr" | "rtl">;
|
|
14
|
+
sidebarPosition$: import("rxjs").Observable<"left" | "right">;
|
|
15
|
+
listItemClick: EventEmitter<NotificationModel>;
|
|
16
|
+
openSettings: EventEmitter<Event>;
|
|
17
|
+
openNotifications: EventEmitter<Event>;
|
|
18
|
+
customIconTemplate: TemplateRef<any> | undefined;
|
|
19
|
+
readonly newNotificationCount$: import("rxjs").Observable<number | "99+">;
|
|
20
|
+
panelMode: NotificationPanelMode;
|
|
21
|
+
panelModeEnum: {
|
|
22
|
+
readonly panel: "panel";
|
|
23
|
+
readonly sidebar: "sidebar";
|
|
24
|
+
};
|
|
25
|
+
constructor(inject: Injector, _options?: NotificationsListOptions);
|
|
26
|
+
hideBadgeCount(): void;
|
|
27
|
+
markAllAsUnread(): void;
|
|
28
|
+
toggleSideBar(value?: boolean): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsButtonComponent, [null, { optional: true; }]>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationsButtonComponent, "app-notifications-button", never, { "styleClass": "styleClass"; "badgeOptions": "badgeOptions"; }, { "listItemClick": "listItemClick"; "openSettings": "openSettings"; "openNotifications": "openNotifications"; }, ["customIconTemplate"], ["[notifications-footer]"]>;
|
|
32
31
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { KeyValue } from '@angular/common';
|
|
2
|
+
import { EventEmitter } from '@angular/core';
|
|
3
|
+
import { FILTER_DATES_TYPE } from '../../constants';
|
|
4
|
+
import { FilterDateType } from '../../models';
|
|
5
|
+
import { BaseNotification } from '../base-notifications.component';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class NotificationsDateSelectComponent extends BaseNotification {
|
|
8
|
+
dateChanged: EventEmitter<{
|
|
9
|
+
min: string;
|
|
10
|
+
max: string;
|
|
11
|
+
}>;
|
|
12
|
+
dates: KeyValue<string, FilterDateType>[];
|
|
13
|
+
selectedDate: KeyValue<string, FilterDateType>;
|
|
14
|
+
private _prepareDateList;
|
|
15
|
+
selectDate(date: KeyValue<keyof typeof FILTER_DATES_TYPE, FilterDateType>): void;
|
|
16
|
+
private _getMinDate;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsDateSelectComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationsDateSelectComponent, "app-notifications-date-select", never, {}, { "dateChanged": "dateChanged"; }, never, never>;
|
|
19
|
+
}
|
package/lib/components/notifications/components/notifications-list/notifications-list.component.d.ts
CHANGED
|
@@ -1,57 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { TranslationService } from "../../../../core/services/translation/translation.service";
|
|
5
|
-
import { MatMenuTrigger } from "@angular/material/menu";
|
|
1
|
+
import { EventEmitter, Injector, OnInit } from '@angular/core';
|
|
2
|
+
import { FilterDateType, NotificationsListOptions } from '../../models';
|
|
3
|
+
import { BaseListNotifications } from '../base-list-notfications.component';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
private ref;
|
|
13
|
-
datePipe: DatePipe;
|
|
14
|
-
private translationService;
|
|
15
|
-
showFilters: boolean;
|
|
16
|
-
trigger: MatMenuTrigger;
|
|
17
|
-
listItemClick: EventEmitter<any>;
|
|
18
|
-
get notifications(): any;
|
|
19
|
-
_itemHeight: number;
|
|
20
|
-
get itemHeight(): number;
|
|
21
|
-
set itemHeight(value: number);
|
|
22
|
-
_divider: boolean;
|
|
23
|
-
get divider(): boolean;
|
|
24
|
-
set divider(value: boolean);
|
|
25
|
-
_all: boolean;
|
|
26
|
-
get all(): boolean;
|
|
27
|
-
set all(value: boolean);
|
|
28
|
-
_title: string;
|
|
29
|
-
get title(): string;
|
|
30
|
-
set title(value: string);
|
|
31
|
-
isArabic: any;
|
|
32
|
-
throttle: number;
|
|
33
|
-
scrollDistance: number;
|
|
34
|
-
scrollUpDistance: number;
|
|
35
|
-
loading: boolean;
|
|
36
|
-
hasMore: boolean;
|
|
37
|
-
constructor(notificationsService: NotificationsService, ref: ChangeDetectorRef, datePipe: DatePipe, translationService: TranslationService);
|
|
5
|
+
export declare class NotificationsListComponent extends BaseListNotifications implements OnInit {
|
|
6
|
+
protected inject: Injector;
|
|
7
|
+
openSettings: EventEmitter<Event>;
|
|
8
|
+
openNotifications: EventEmitter<Event>;
|
|
9
|
+
constructor(inject: Injector, _options?: NotificationsListOptions);
|
|
38
10
|
ngOnInit(): void;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
goToDetails(notification: any): void;
|
|
47
|
-
onScrollDown(): void;
|
|
48
|
-
fetchMore(): void;
|
|
49
|
-
ngOnDestroy(): void;
|
|
50
|
-
close(): void;
|
|
51
|
-
changeContentBasedOnUserLang(): void;
|
|
52
|
-
stop(event: any): void;
|
|
53
|
-
selectFilterType(event: any, type: any): void;
|
|
54
|
-
changeReadFilter(event: any): void;
|
|
55
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsListComponent, never>;
|
|
56
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationsListComponent, "app-notifications-list", never, { "showFilters": "showFilters"; }, { "listItemClick": "listItemClick"; }, never, never>;
|
|
11
|
+
typeChanged(event: string): void;
|
|
12
|
+
statusChanged({ checked }: {
|
|
13
|
+
checked: any;
|
|
14
|
+
}): void;
|
|
15
|
+
dateChanged(date: FilterDateType | null): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsListComponent, [null, { optional: true; }]>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationsListComponent, "app-notifications-list", never, {}, { "openSettings": "openSettings"; "openNotifications": "openNotifications"; }, never, never>;
|
|
57
18
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Direction } from '@angular/cdk/bidi';
|
|
2
|
+
import { EventEmitter } from '@angular/core';
|
|
3
|
+
import { MatMenu } from '@angular/material/menu';
|
|
4
|
+
import { NotificationsListOptions } from '../../models';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class NotificationsListActionsComponent {
|
|
7
|
+
options: NotificationsListOptions['actions'];
|
|
8
|
+
direction: Direction;
|
|
9
|
+
markAllAsRead: EventEmitter<Event>;
|
|
10
|
+
openSettings: EventEmitter<Event>;
|
|
11
|
+
openNotifications: EventEmitter<Event>;
|
|
12
|
+
closeMenu(event: Event, menu: MatMenu): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsListActionsComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationsListActionsComponent, "app-notifications-list-actions", never, { "options": "options"; "direction": "direction"; }, { "markAllAsRead": "markAllAsRead"; "openSettings": "openSettings"; "openNotifications": "openNotifications"; }, never, never>;
|
|
15
|
+
}
|
package/lib/components/notifications/components/notifications-settings/check-if-subscribed.pipe.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { NotificationDefinitionPresenter, NotificationSubscriptionPresenter } from '../../models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CheckIfSubscribedPipe implements PipeTransform {
|
|
5
|
+
transform(definition: NotificationDefinitionPresenter, subscriptions: NotificationSubscriptionPresenter[]): boolean;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckIfSubscribedPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<CheckIfSubscribedPipe, "checkIfSubscribed">;
|
|
8
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { NotificationDefinitionModel, NotificationDefinitionPresenter, NotificationSubscriptionModel, NotificationSubscriptionPresenter } from '../../models';
|
|
2
|
+
export declare const mapDefinitionToPresenter: (definition: NotificationDefinitionModel) => NotificationDefinitionPresenter;
|
|
3
|
+
export declare const mapSubscriptionToPresenter: (subscription: NotificationSubscriptionModel) => NotificationSubscriptionPresenter;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, Injector } from '@angular/core';
|
|
2
|
+
import { MatSlideToggleChange } from '@angular/material/slide-toggle';
|
|
3
|
+
import { TranslationService } from '../../../../Core/services/translation/translation.service';
|
|
4
|
+
import { CustomToastrService } from '../../../custom-toastr/services/custom-toastr.service';
|
|
5
|
+
import { NotificationDefinitionPresenter, NotificationSubscriptionPresenter, VocabularyType } from '../../models';
|
|
6
|
+
import { BaseNotification } from '../base-notifications.component';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class NotificationsSettingsComponent extends BaseNotification {
|
|
9
|
+
protected inject: Injector;
|
|
10
|
+
private _translateService;
|
|
11
|
+
private _cdr;
|
|
12
|
+
private _toastrService;
|
|
13
|
+
private _environment;
|
|
14
|
+
onSubscribe: EventEmitter<NotificationDefinitionPresenter>;
|
|
15
|
+
onUnsubscribe: EventEmitter<Record<string, any>>;
|
|
16
|
+
private readonly _channelSub;
|
|
17
|
+
changingItemId: string;
|
|
18
|
+
isLoadingResult: boolean;
|
|
19
|
+
private _channel;
|
|
20
|
+
set channel(value: VocabularyType);
|
|
21
|
+
get currentLang(): string;
|
|
22
|
+
private get _appKey();
|
|
23
|
+
private readonly _subscriptionsSub;
|
|
24
|
+
readonly settings$: import("rxjs").Observable<{
|
|
25
|
+
definitions: Record<string, any>;
|
|
26
|
+
subscriptions: NotificationSubscriptionPresenter[];
|
|
27
|
+
}>;
|
|
28
|
+
constructor(inject: Injector, _translateService: TranslationService, _cdr: ChangeDetectorRef, _toastrService: CustomToastrService, _environment: Record<string, any>);
|
|
29
|
+
getSubscriptionsByChannel(channel: string): import("rxjs").Observable<NotificationSubscriptionPresenter[]>;
|
|
30
|
+
getDefinitionsByChannel(channel: string): import("rxjs").Observable<Record<string, any>>;
|
|
31
|
+
settingChanged(definition: NotificationDefinitionPresenter, state: MatSlideToggleChange): void;
|
|
32
|
+
private _prepareSettings;
|
|
33
|
+
private _handleSubscribe;
|
|
34
|
+
private _handleUnsubscribe;
|
|
35
|
+
private _findSubscription;
|
|
36
|
+
private _matchItem;
|
|
37
|
+
private _groupBy;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsSettingsComponent, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationsSettingsComponent, "app-notifications-settings", never, { "channel": "channel"; }, { "onSubscribe": "onSubscribe"; "onUnsubscribe": "onUnsubscribe"; }, never, never>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { InjectionToken, TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare const NOTIFICATION_SIDEBAR_CONTENT: InjectionToken<NotificationSidebarContentDirective>;
|
|
4
|
+
export declare class NotificationSidebarContentDirective {
|
|
5
|
+
template: TemplateRef<any>;
|
|
6
|
+
constructor(template: TemplateRef<any>);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationSidebarContentDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NotificationSidebarContentDirective, "[appNotificationSidebarContent]", never, {}, {}, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2, TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NotificationsSidebarComponent implements OnInit, OnDestroy {
|
|
4
|
+
private document;
|
|
5
|
+
el: ElementRef;
|
|
6
|
+
renderer: Renderer2;
|
|
7
|
+
cd: ChangeDetectorRef;
|
|
8
|
+
transformOptions: any;
|
|
9
|
+
transitionOptions: string;
|
|
10
|
+
private _mask;
|
|
11
|
+
private _container;
|
|
12
|
+
private _maskClickListener;
|
|
13
|
+
appendToBody: boolean;
|
|
14
|
+
clearOnCLose: boolean;
|
|
15
|
+
private _visible;
|
|
16
|
+
set visible(val: boolean);
|
|
17
|
+
get visible(): boolean;
|
|
18
|
+
private _position;
|
|
19
|
+
get position(): string;
|
|
20
|
+
set position(value: string);
|
|
21
|
+
visibleChange: EventEmitter<boolean>;
|
|
22
|
+
onShow: EventEmitter<any>;
|
|
23
|
+
onHide: EventEmitter<any>;
|
|
24
|
+
contentTemplate: TemplateRef<any> | undefined;
|
|
25
|
+
constructor(document: Document, el: ElementRef, renderer: Renderer2, cd: ChangeDetectorRef);
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
onAnimationStart({ toState, element }: {
|
|
28
|
+
toState: any;
|
|
29
|
+
element: any;
|
|
30
|
+
}): void;
|
|
31
|
+
onAnimationEnd({ toState }: {
|
|
32
|
+
toState: any;
|
|
33
|
+
}): void;
|
|
34
|
+
appendContainer(): void;
|
|
35
|
+
close(event: Event): void;
|
|
36
|
+
show(): void;
|
|
37
|
+
hide(emit?: boolean): void;
|
|
38
|
+
enableOverLay(): void;
|
|
39
|
+
disableOverlay(): void;
|
|
40
|
+
ngOnDestroy(): void;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsSidebarComponent, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationsSidebarComponent, "app-notifications-sidebar", never, { "appendToBody": "appendToBody"; "clearOnCLose": "clearOnCLose"; "visible": "visible"; "position": "position"; }, { "visibleChange": "visibleChange"; "onShow": "onShow"; "onHide": "onHide"; }, ["contentTemplate"], ["*"]>;
|
|
43
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Injector, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
+
import { BaseListNotifications } from '../../components/base-list-notfications.component';
|
|
3
|
+
import { NotificationsListOptions } from '../../models';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class NotificationsListContainerComponent extends BaseListNotifications implements OnInit {
|
|
6
|
+
protected inject: Injector;
|
|
7
|
+
styleClass: string;
|
|
8
|
+
private _showFilters;
|
|
9
|
+
set showFilters(value: boolean);
|
|
10
|
+
get showFilters(): boolean;
|
|
11
|
+
set criteria(query: Record<string, any>);
|
|
12
|
+
paginationMode: NotificationsListOptions['paginationMode'];
|
|
13
|
+
get selectedPage(): number;
|
|
14
|
+
customItemTemplate: TemplateRef<any> | undefined;
|
|
15
|
+
constructor(inject: Injector, _options?: NotificationsListOptions);
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
typeChanged(event: string): void;
|
|
18
|
+
statusChanged({ checked }: {
|
|
19
|
+
checked: any;
|
|
20
|
+
}): void;
|
|
21
|
+
dateChanged(date: {
|
|
22
|
+
min: string;
|
|
23
|
+
max: string;
|
|
24
|
+
} | null): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsListContainerComponent, [null, { optional: true; }]>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationsListContainerComponent, "app-notifications-list-container", never, { "styleClass": "styleClass"; "showFilters": "showFilters"; "criteria": "criteria"; }, {}, ["customItemTemplate"], never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EventEmitter, Injector } from '@angular/core';
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { ToastrService } from 'ngx-toastr';
|
|
4
|
+
import { TranslationService } from '../../../../Core/services/translation/translation.service';
|
|
5
|
+
import { BaseNotification } from '../../components/base-notifications.component';
|
|
6
|
+
import { NotificationDefinitionPresenter, VocabularyType } from '../../models';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class NotificationsSettingsContainerComponent extends BaseNotification {
|
|
9
|
+
protected inject: Injector;
|
|
10
|
+
private _translateService;
|
|
11
|
+
private _toastrService;
|
|
12
|
+
private _matDialog;
|
|
13
|
+
onSubscribe: EventEmitter<NotificationDefinitionPresenter>;
|
|
14
|
+
onUnsubscribe: EventEmitter<Record<string, any>>;
|
|
15
|
+
constructor(inject: Injector, _translateService: TranslationService, _toastrService: ToastrService, _matDialog: MatDialog);
|
|
16
|
+
channels$: import("rxjs").Observable<VocabularyType[]>;
|
|
17
|
+
selectedChannel: VocabularyType | null;
|
|
18
|
+
selectChannel(channel: VocabularyType): void;
|
|
19
|
+
resetSubscriptions(): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsSettingsContainerComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationsSettingsContainerComponent, "app-notifications-settings-container", never, {}, { "onSubscribe": "onSubscribe"; "onUnsubscribe": "onUnsubscribe"; }, never, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { InjectionToken, TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare const NOTIFICATION_ICON: InjectionToken<NotificationIconDirective>;
|
|
4
|
+
export declare class NotificationIconDirective {
|
|
5
|
+
template: TemplateRef<any>;
|
|
6
|
+
constructor(template: TemplateRef<any>);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationIconDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NotificationIconDirective, "[appNotificationIcon]", never, {}, {}, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { InjectionToken, TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare const NOTIFICATION_ITEM: InjectionToken<NotificationItemDirective>;
|
|
4
|
+
export declare class NotificationItemDirective {
|
|
5
|
+
template: TemplateRef<any>;
|
|
6
|
+
constructor(template: TemplateRef<any>);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationItemDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NotificationItemDirective, "[appNotificationItem]", never, {}, {}, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public-api';
|