@bizdoc/core 3.3.4 → 3.3.5
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/assets/bizdoc-schema.json +30 -0
- package/assets/themes/dark.min.css +31 -12
- package/assets/themes/default.min.css +36 -46
- package/fesm2022/bizdoc-core.mjs +1496 -1454
- package/fesm2022/bizdoc-core.mjs.map +1 -1
- package/lib/core/authentication.d.ts +1 -1
- package/lib/core/hub.service.d.ts +2 -2
- package/lib/core/models.d.ts +12 -5
- package/lib/core/session.service.d.ts +1 -0
- package/lib/cube/cube.service.d.ts +1 -1
- package/lib/home/home-base.component.d.ts +8 -8
- package/lib/home/home.desktop.component.d.ts +2 -6
- package/lib/home/home.mobile.component.d.ts +2 -6
- package/lib/home/notifications/notifications.component.d.ts +8 -12
- package/lib/notifications/notification-ref.d.ts +3 -0
- package/lib/notifications/notifications-table.component.d.ts +9 -11
- package/lib/notifications/notifications.component-base.d.ts +11 -5
- package/lib/notifications/notifications.service.d.ts +2 -3
- package/lib/notifications/types/commented.notification.d.ts +2 -2
- package/lib/notifications/types/content.notification.d.ts +17 -0
- package/lib/notifications/types/cube-anomaly.notification.d.ts +2 -2
- package/lib/notifications/types/escalated.notification.d.ts +2 -2
- package/lib/notifications/types/invite.notification.d.ts +2 -2
- package/lib/notifications/types/liked.notification.d.ts +2 -2
- package/lib/notifications/types/long-running-task.notification.d.ts +2 -2
- package/lib/notifications/types/notification-base.d.ts +4 -4
- package/lib/notifications/types/nudge.notification.d.ts +2 -2
- package/lib/notifications/types/state-changed.notification.d.ts +2 -2
- package/lib/notifications/types/tagged.notification.d.ts +2 -2
- package/lib/notifications/types/text.notification.d.ts +1 -3
- package/lib/notifications/types/upcoming-event.notification.d.ts +2 -2
- package/lib/shared.module.d.ts +93 -92
- package/package.json +2 -2
@@ -1,6 +1,6 @@
|
|
1
1
|
export declare const IMPERSONATE_COOKIE_NAME = "i";
|
2
2
|
export declare abstract class AuthenticationImpl {
|
3
3
|
abstract authenticate(): Promise<any>;
|
4
|
-
disconnect?(): Promise<any>;
|
4
|
+
abstract disconnect?(): Promise<any>;
|
5
5
|
abstract getAuthToken(): Promise<string | null | undefined>;
|
6
6
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Comment,
|
1
|
+
import { Comment, Chat, AvailabilityState, RecipientModel, Message } from './models';
|
2
2
|
import { HubConnectionState } from '@microsoft/signalr';
|
3
3
|
import { AuthenticationImpl } from './authentication';
|
4
4
|
import * as i0 from "@angular/core";
|
@@ -109,7 +109,7 @@ export interface VoteEvent {
|
|
109
109
|
}
|
110
110
|
export interface NotificationEvent {
|
111
111
|
originalRead?: boolean;
|
112
|
-
model:
|
112
|
+
model: Message;
|
113
113
|
}
|
114
114
|
export interface UserInfoEvent {
|
115
115
|
userId: string;
|
package/lib/core/models.d.ts
CHANGED
@@ -86,6 +86,7 @@ export interface RecipientModel<T = any> extends HeaderModel<T>, DocumentModel<T
|
|
86
86
|
actions?: string[];
|
87
87
|
fyi: boolean;
|
88
88
|
originId?: number;
|
89
|
+
roleId?: number;
|
89
90
|
escalated?: boolean;
|
90
91
|
tags?: string[];
|
91
92
|
byId?: string;
|
@@ -212,6 +213,11 @@ export interface CommentVersion {
|
|
212
213
|
};
|
213
214
|
}
|
214
215
|
export interface Notification {
|
216
|
+
name: string;
|
217
|
+
template: string;
|
218
|
+
contentType?: string;
|
219
|
+
}
|
220
|
+
export interface Message {
|
215
221
|
number?: string;
|
216
222
|
muted?: boolean;
|
217
223
|
deleted?: boolean;
|
@@ -224,7 +230,7 @@ export interface Notification {
|
|
224
230
|
documentId?: number;
|
225
231
|
formId?: string;
|
226
232
|
}
|
227
|
-
export declare type NotificationType = 'Commented' | 'CubeAnomaly' | 'Escalated' | 'Liked' | 'StateChanged' | 'Nudge' | 'Invite' | 'TextMessage' | 'UpcomingEvent' | 'JobProgress' | 'Tagged';
|
233
|
+
export declare type NotificationType = 'Commented' | 'CubeAnomaly' | 'Escalated' | 'Liked' | 'StateChanged' | 'Nudge' | 'Invite' | 'TextMessage' | 'ContentMessage' | 'UpcomingEvent' | 'JobProgress' | 'Tagged';
|
228
234
|
export interface State {
|
229
235
|
shape?: string;
|
230
236
|
name: string;
|
@@ -277,13 +283,14 @@ export interface Profile {
|
|
277
283
|
roles: Role[];
|
278
284
|
sources: Source[];
|
279
285
|
widgets: Widget[];
|
286
|
+
notifications: Notification[];
|
280
287
|
options: Options;
|
281
288
|
inbox: HeaderModel[];
|
282
289
|
inboxCount?: number;
|
283
|
-
|
284
|
-
|
290
|
+
messages: Message[];
|
291
|
+
messagesCount?: number;
|
285
292
|
recents?: HeaderModel[];
|
286
|
-
|
293
|
+
conversations: Contact[];
|
287
294
|
conversationsCount: number;
|
288
295
|
license?: License;
|
289
296
|
}
|
@@ -316,7 +323,7 @@ export interface Utility {
|
|
316
323
|
export interface Contact {
|
317
324
|
visited?: Date;
|
318
325
|
watermark?: Date;
|
319
|
-
|
326
|
+
contactId: string;
|
320
327
|
text?: string;
|
321
328
|
time: Date;
|
322
329
|
accepted: boolean;
|
@@ -32,6 +32,7 @@ export declare class SessionService {
|
|
32
32
|
get gender(): Gender | undefined;
|
33
33
|
private _accentpalette;
|
34
34
|
get accentPalette(): string[];
|
35
|
+
isAboveWatermark(date: Date): boolean;
|
35
36
|
private _constructpalette;
|
36
37
|
private _primarypalette;
|
37
38
|
get primeryPalette(): string[];
|
@@ -265,4 +265,4 @@ export interface Pattern {
|
|
265
265
|
title: string;
|
266
266
|
axes: AxesMap;
|
267
267
|
}
|
268
|
-
export declare function errResource(error: HttpErrorResponse): "
|
268
|
+
export declare function errResource(error: HttpErrorResponse): "Err" | "Unauthorized" | "LicenseErr" | "NotAcceptable";
|
@@ -1,26 +1,26 @@
|
|
1
|
-
import {
|
1
|
+
import { OnInit } from '@angular/core';
|
2
2
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
3
3
|
import { SafeResourceUrl } from '@angular/platform-browser';
|
4
4
|
import { BizDocConfig } from '../core/configuration';
|
5
5
|
import { Profile, RecipientModel } from '../core/models';
|
6
6
|
import { SessionService } from '../core/session.service';
|
7
7
|
import { TranslateService } from '../core/translate.service';
|
8
|
-
import { HubService } from '../core/hub.service';
|
9
8
|
import * as i0 from "@angular/core";
|
10
9
|
export declare const TOAST_DURATION = 4000;
|
11
10
|
export declare abstract class HomeBase implements OnInit {
|
12
|
-
protected _session: SessionService;
|
13
|
-
private _messaging;
|
14
|
-
protected _translate: TranslateService;
|
15
|
-
protected _snackBar: MatSnackBar;
|
16
|
-
private _injector;
|
17
11
|
chatEnabled: boolean;
|
18
12
|
schedulerEnabled: boolean;
|
19
13
|
profile: Profile;
|
20
14
|
loading: boolean;
|
21
15
|
enableAnalysis: boolean;
|
22
16
|
appLogo?: SafeResourceUrl;
|
23
|
-
|
17
|
+
private _notifications;
|
18
|
+
private _messaging;
|
19
|
+
protected _session: SessionService;
|
20
|
+
protected _translate: TranslateService;
|
21
|
+
protected _snackBar: MatSnackBar;
|
22
|
+
private _injector;
|
23
|
+
constructor(config: BizDocConfig);
|
24
24
|
ngOnInit(): void;
|
25
25
|
resize(): void;
|
26
26
|
abstract onNewMessage(model: RecipientModel): void;
|
@@ -1,14 +1,10 @@
|
|
1
|
-
import {
|
1
|
+
import { ElementRef, ComponentRef } from '@angular/core';
|
2
2
|
import { MatSidenav } from '@angular/material/sidenav';
|
3
|
-
import { MatSnackBar } from '@angular/material/snack-bar';
|
4
3
|
import { Observable } from 'rxjs';
|
5
4
|
import { BizDocConfig } from '../core/configuration';
|
6
5
|
import { RecipientModel } from '../core/models';
|
7
|
-
import { SessionService } from '../core/session.service';
|
8
6
|
import { PanesRouter } from '../core/slots/router.service';
|
9
7
|
import { Popup } from '../core/popup/popup.service';
|
10
|
-
import { TranslateService } from '../core/translate.service';
|
11
|
-
import { HubService } from '../core/hub.service';
|
12
8
|
import { HomeBase } from './home-base.component';
|
13
9
|
import { SlotsComponent } from '../core/slots/slots.component';
|
14
10
|
import { GuideService } from '../core/guide/guide.service';
|
@@ -27,7 +23,7 @@ export declare class HomeComponent extends HomeBase {
|
|
27
23
|
private _popup;
|
28
24
|
private _guide;
|
29
25
|
private _auth;
|
30
|
-
constructor(_router: PanesRouter, _service: SearchService, _factory: DocumentFactory, _popup: Popup, _guide: GuideService, _auth: AuthenticationImpl,
|
26
|
+
constructor(_router: PanesRouter, _service: SearchService, _factory: DocumentFactory, _popup: Popup, _guide: GuideService, _auth: AuthenticationImpl, config: BizDocConfig);
|
31
27
|
isDialogMode: boolean;
|
32
28
|
readonly isSysAdmin: boolean;
|
33
29
|
readonly canSignOut: boolean;
|
@@ -1,14 +1,10 @@
|
|
1
|
-
import { OnInit
|
1
|
+
import { OnInit } from '@angular/core';
|
2
2
|
import { RouterOutlet, Router } from '@angular/router';
|
3
3
|
import { MatSidenav } from '@angular/material/sidenav';
|
4
4
|
import { MatBottomSheet } from '@angular/material/bottom-sheet';
|
5
|
-
import { MatSnackBar } from '@angular/material/snack-bar';
|
6
5
|
import { Directionality } from '@angular/cdk/bidi';
|
7
6
|
import { BizDocConfig } from '../core/configuration';
|
8
7
|
import { Contact, RecipientModel } from '../core/models';
|
9
|
-
import { SessionService } from '../core/session.service';
|
10
|
-
import { HubService } from '../core/hub.service';
|
11
|
-
import { TranslateService } from '../core/translate.service';
|
12
8
|
import { HomeBase } from './home-base.component';
|
13
9
|
import { ChatInfo } from '../chat/chat-info';
|
14
10
|
import * as i0 from "@angular/core";
|
@@ -23,7 +19,7 @@ export declare class HomeMobileComponent extends HomeBase implements OnInit {
|
|
23
19
|
composeEnabled: boolean;
|
24
20
|
menuDrawer: MatSidenav;
|
25
21
|
secondaryDrawer: MatSidenav;
|
26
|
-
constructor(_router: Router, _bs: MatBottomSheet, _dir: Directionality,
|
22
|
+
constructor(_router: Router, _bs: MatBottomSheet, _dir: Directionality, chat: ChatInfo, config: BizDocConfig);
|
27
23
|
ngOnInit(): void;
|
28
24
|
compose(): void;
|
29
25
|
onNewMessage(model: RecipientModel<any>): void;
|
@@ -1,26 +1,22 @@
|
|
1
|
-
import {
|
1
|
+
import { OnInit } from '@angular/core';
|
2
2
|
import { Observable } from 'rxjs';
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import { SessionService } from '../../core/session.service';
|
6
|
-
import { NotificationsService } from '../../notifications/notifications.service';
|
3
|
+
import { Message } from '../../core/models';
|
4
|
+
import { MessageExtra, NotificationsComponentBase } from "../../notifications/notifications.component-base";
|
7
5
|
import { PopupRef } from "../../core/popup/popup-ref";
|
8
6
|
import { RouterImpl } from '../../core/router';
|
9
7
|
import * as i0 from "@angular/core";
|
10
8
|
export declare class QuickNotificationsComponent extends NotificationsComponentBase implements OnInit {
|
11
9
|
private _popupRef;
|
12
|
-
private _service;
|
13
|
-
private _session;
|
14
10
|
private _router;
|
15
|
-
notifications:
|
11
|
+
notifications: MessageExtra[];
|
16
12
|
/** notifications ctor */
|
17
|
-
constructor(_popupRef: PopupRef<QuickNotificationsComponent>,
|
13
|
+
constructor(_popupRef: PopupRef<QuickNotificationsComponent>, _router: RouterImpl);
|
18
14
|
ngOnInit(): void;
|
19
|
-
open(item:
|
15
|
+
open(item: Message, evt: MouseEvent): void;
|
20
16
|
options(): void;
|
21
17
|
all(): void;
|
22
|
-
isMuted(item:
|
23
|
-
mute(item:
|
18
|
+
isMuted(item: Message): Observable<boolean>;
|
19
|
+
mute(item: Message, mute: boolean): void;
|
24
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<QuickNotificationsComponent, never>;
|
25
21
|
static ɵcmp: i0.ɵɵComponentDeclaration<QuickNotificationsComponent, "bizdoc-notifications", never, {}, {}, never, never, false, never>;
|
26
22
|
}
|
@@ -1,29 +1,27 @@
|
|
1
|
-
import {
|
1
|
+
import { OnInit } from '@angular/core';
|
2
2
|
import { MatSort } from '@angular/material/sort';
|
3
3
|
import { MatTableDataSource } from '@angular/material/table';
|
4
4
|
import { SelectionModel } from '@angular/cdk/collections';
|
5
5
|
import { Observable } from 'rxjs';
|
6
|
-
import {
|
7
|
-
import {
|
8
|
-
import { NotificationExtra, NotificationsComponentBase } from "./notifications.component-base";
|
6
|
+
import { Message } from '../core/models';
|
7
|
+
import { MessageExtra, NotificationsComponentBase } from "./notifications.component-base";
|
9
8
|
import { Popup } from '../core/popup/popup.service';
|
10
9
|
import * as i0 from "@angular/core";
|
11
10
|
export declare class NotificationsTableComponent extends NotificationsComponentBase implements OnInit {
|
12
|
-
private _service;
|
13
11
|
private _popup;
|
14
12
|
sort: MatSort;
|
15
13
|
dataSource: MatTableDataSource<any>;
|
16
14
|
showDeleted: boolean;
|
17
|
-
readonly selection: SelectionModel<
|
15
|
+
readonly selection: SelectionModel<MessageExtra>;
|
18
16
|
/** notifications ctor */
|
19
|
-
constructor(
|
17
|
+
constructor(_popup: Popup);
|
20
18
|
ngOnInit(): void;
|
21
19
|
private _query;
|
22
20
|
discardAll(): void;
|
23
|
-
read(item:
|
24
|
-
isMuted(item:
|
25
|
-
mute(item:
|
26
|
-
delete(item:
|
21
|
+
read(item: Message, read: boolean): void;
|
22
|
+
isMuted(item: Message): Observable<boolean>;
|
23
|
+
mute(item: Message, mute: boolean): void;
|
24
|
+
delete(item: Message): void;
|
27
25
|
isAllSelected(): boolean;
|
28
26
|
masterToggle(): void;
|
29
27
|
openFilter(evt: Event): void;
|
@@ -1,12 +1,18 @@
|
|
1
1
|
import { Injector } from '@angular/core';
|
2
|
-
import {
|
2
|
+
import { Message, NotificationType } from '../core/models';
|
3
|
+
import { SessionService } from '../core/session.service';
|
4
|
+
import { NotificationsService } from './notifications.service';
|
3
5
|
export declare abstract class NotificationsComponentBase {
|
6
|
+
prepare(messages: Message[]): void;
|
7
|
+
private _uidType;
|
4
8
|
private _injector;
|
5
|
-
|
6
|
-
protected
|
7
|
-
|
9
|
+
protected _service: NotificationsService;
|
10
|
+
protected _session: SessionService;
|
11
|
+
constructor();
|
12
|
+
protected _getComponent(type: NotificationType): any;
|
13
|
+
protected _getInjector(item: Message): Injector;
|
8
14
|
}
|
9
|
-
export interface
|
15
|
+
export interface MessageExtra extends Message {
|
10
16
|
injector: any;
|
11
17
|
comp: any;
|
12
18
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { HttpClient } from "@angular/common/http";
|
2
|
-
import {
|
2
|
+
import { Message } from "../core/models";
|
3
3
|
import { Observable } from "rxjs";
|
4
4
|
import { HubService } from "../core/hub.service";
|
5
5
|
import { SessionService } from "../core/session.service";
|
@@ -13,8 +13,7 @@ export declare class NotificationsService {
|
|
13
13
|
exclude?: boolean;
|
14
14
|
skip?: number;
|
15
15
|
before?: Date;
|
16
|
-
}): Observable<
|
17
|
-
private _isAboveWatermark;
|
16
|
+
}): Observable<Message[]>;
|
18
17
|
read(id: number, date: Date, read: boolean): Observable<any>;
|
19
18
|
get(id: number): Observable<any>;
|
20
19
|
mute(id: number, mute: boolean): Observable<any>;
|
@@ -2,7 +2,7 @@ import { OnInit } from "@angular/core";
|
|
2
2
|
import { AccountService } from "../../core/account.service";
|
3
3
|
import { TranslateService } from "../../core/translate.service";
|
4
4
|
import { NotificationBase } from "./notification-base";
|
5
|
-
import {
|
5
|
+
import { Message } from "../../core/models";
|
6
6
|
import { SessionService } from "../../core/session.service";
|
7
7
|
import { ChatInfo } from "../../chat/chat-info";
|
8
8
|
import { RouterImpl } from "../../core/router";
|
@@ -18,7 +18,7 @@ export declare class CommentedNotification extends NotificationBase implements O
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<CommentedNotification, never>;
|
19
19
|
static ɵcmp: i0.ɵɵComponentDeclaration<CommentedNotification, "ng-component", never, {}, {}, never, never, false, never>;
|
20
20
|
}
|
21
|
-
interface Commented extends
|
21
|
+
interface Commented extends Message {
|
22
22
|
userIds: string[];
|
23
23
|
text: string;
|
24
24
|
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { OnInit, ViewContainerRef } from "@angular/core";
|
2
|
+
import { Message } from "../../core/models";
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class ContentNotification implements OnInit {
|
5
|
+
notification: ContentMessage;
|
6
|
+
private _factory;
|
7
|
+
private _session;
|
8
|
+
ngOnInit(): void;
|
9
|
+
constructor(notification: ContentMessage, vc: ViewContainerRef);
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentNotification, never>;
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ContentNotification, "bizdoc-notify-content", never, {}, {}, never, never, false, never>;
|
12
|
+
}
|
13
|
+
interface ContentMessage<T = any> extends Message {
|
14
|
+
content?: T;
|
15
|
+
contentType?: string;
|
16
|
+
}
|
17
|
+
export {};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { OnInit } from "@angular/core";
|
2
2
|
import { SessionService } from "../../core/session.service";
|
3
|
-
import { Cube } from "../../core/models";
|
3
|
+
import { Cube, Message } from "../../core/models";
|
4
4
|
import { DatasourceService } from "../../core/datasource.service";
|
5
5
|
import { TranslateService } from "../../core/translate.service";
|
6
6
|
import { RouterImpl } from "../../core/router";
|
@@ -19,7 +19,7 @@ export declare class CubeAnomalyNotification implements OnInit {
|
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<CubeAnomalyNotification, never>;
|
20
20
|
static ɵcmp: i0.ɵɵComponentDeclaration<CubeAnomalyNotification, "ng-component", never, {}, {}, never, never, false, never>;
|
21
21
|
}
|
22
|
-
interface CubeAnomaly extends
|
22
|
+
interface CubeAnomaly extends Message {
|
23
23
|
cube: string;
|
24
24
|
axes: string[];
|
25
25
|
value: number;
|
@@ -3,7 +3,7 @@ import { AccountService } from "../../core/account.service";
|
|
3
3
|
import { TranslateService } from "../../core/translate.service";
|
4
4
|
import { NotificationBase } from "./notification-base";
|
5
5
|
import { SessionService } from "../../core/session.service";
|
6
|
-
import {
|
6
|
+
import { Message } from "../../core/models";
|
7
7
|
import { ChatInfo } from "../../chat/chat-info";
|
8
8
|
import { RouterImpl } from "../../core/router";
|
9
9
|
import * as i0 from "@angular/core";
|
@@ -16,7 +16,7 @@ export declare class EscalatedNotification extends NotificationBase implements O
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<EscalatedNotification, never>;
|
17
17
|
static ɵcmp: i0.ɵɵComponentDeclaration<EscalatedNotification, "bizdoc-notify-escalated", never, {}, {}, never, never, false, never>;
|
18
18
|
}
|
19
|
-
interface Escalated extends
|
19
|
+
interface Escalated extends Message {
|
20
20
|
substituteId: string;
|
21
21
|
role?: string;
|
22
22
|
duration: number;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { RouterImpl } from "../../core/router";
|
2
2
|
import { SessionService } from "../../core/session.service";
|
3
3
|
import { TranslateService } from "../../core/translate.service";
|
4
|
-
import {
|
4
|
+
import { Message } from "../../core/models";
|
5
5
|
import { DocumentFactory } from "../../core/document-factory.service";
|
6
6
|
import * as i0 from "@angular/core";
|
7
7
|
export declare class InviteNotification {
|
@@ -14,7 +14,7 @@ export declare class InviteNotification {
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<InviteNotification, never>;
|
15
15
|
static ɵcmp: i0.ɵɵComponentDeclaration<InviteNotification, "ng-component", never, {}, {}, never, never, false, never>;
|
16
16
|
}
|
17
|
-
interface Invite extends
|
17
|
+
interface Invite extends Message {
|
18
18
|
message?: string;
|
19
19
|
due?: Date;
|
20
20
|
}
|
@@ -3,7 +3,7 @@ import { AccountService } from "../../core/account.service";
|
|
3
3
|
import { TranslateService } from "../../core/translate.service";
|
4
4
|
import { NotificationBase } from "./notification-base";
|
5
5
|
import { SessionService } from "../../core/session.service";
|
6
|
-
import {
|
6
|
+
import { Message } from "../../core/models";
|
7
7
|
import { ChatInfo } from "../../chat/chat-info";
|
8
8
|
import { RouterImpl } from "../../core/router";
|
9
9
|
import * as i0 from "@angular/core";
|
@@ -17,7 +17,7 @@ export declare class LikedNotification extends NotificationBase implements OnIni
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<LikedNotification, never>;
|
18
18
|
static ɵcmp: i0.ɵɵComponentDeclaration<LikedNotification, "bizdoc-liked-notification", never, {}, {}, never, never, false, never>;
|
19
19
|
}
|
20
|
-
interface Liked extends
|
20
|
+
interface Liked extends Message {
|
21
21
|
userIds: string[];
|
22
22
|
voted?: number;
|
23
23
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { OnInit } from "@angular/core";
|
2
2
|
import { SessionService } from "../../core/session.service";
|
3
|
-
import { Report } from "../../core/models";
|
3
|
+
import { Message, Report } from "../../core/models";
|
4
4
|
import { RouterImpl } from "../../core/router";
|
5
5
|
import * as i0 from "@angular/core";
|
6
6
|
export declare class LongRunningTaskNotification implements OnInit {
|
@@ -14,7 +14,7 @@ export declare class LongRunningTaskNotification implements OnInit {
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<LongRunningTaskNotification, never>;
|
15
15
|
static ɵcmp: i0.ɵɵComponentDeclaration<LongRunningTaskNotification, "ng-component", never, {}, {}, never, never, false, never>;
|
16
16
|
}
|
17
|
-
interface ReportTask extends
|
17
|
+
interface ReportTask extends Message {
|
18
18
|
name: string;
|
19
19
|
value: number;
|
20
20
|
}
|
@@ -1,18 +1,18 @@
|
|
1
1
|
import { InjectionToken } from "@angular/core";
|
2
|
-
import {
|
2
|
+
import { Message, UserInfo } from "../../core/models";
|
3
3
|
import { SessionService } from "../../core/session.service";
|
4
4
|
import { TranslateService } from "../../core/translate.service";
|
5
5
|
import { ChatInfo } from "../../chat/chat-info";
|
6
6
|
import { RouterImpl } from "../../core/router";
|
7
7
|
import * as i0 from "@angular/core";
|
8
|
-
export declare const NOTIFICATION_DATA: InjectionToken<
|
8
|
+
export declare const NOTIFICATION_DATA: InjectionToken<Message>;
|
9
9
|
export declare abstract class NotificationBase {
|
10
|
-
notification:
|
10
|
+
notification: Message;
|
11
11
|
private _router;
|
12
12
|
protected _session: SessionService;
|
13
13
|
protected _translate: TranslateService;
|
14
14
|
private _chat;
|
15
|
-
constructor(notification:
|
15
|
+
constructor(notification: Message, _router: RouterImpl, _session: SessionService, _translate: TranslateService, _chat: ChatInfo);
|
16
16
|
protected _formatUserElement(person: UserInfo): string;
|
17
17
|
open(e: MouseEvent): void;
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationBase, never>;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { OnInit } from "@angular/core";
|
2
2
|
import dayjs from 'dayjs';
|
3
3
|
import { ChatInfo } from "../../chat/chat-info";
|
4
|
-
import {
|
4
|
+
import { Message } from "../../core/models";
|
5
5
|
import { RouterImpl } from "../../core/router";
|
6
6
|
import { SessionService } from "../../core/session.service";
|
7
7
|
import { TranslateService } from "../../core/translate.service";
|
@@ -16,7 +16,7 @@ export declare class NudgeNotification extends NotificationBase implements OnIni
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<NudgeNotification, never>;
|
17
17
|
static ɵcmp: i0.ɵɵComponentDeclaration<NudgeNotification, "ng-component", never, {}, {}, never, never, false, never>;
|
18
18
|
}
|
19
|
-
interface Nudge extends
|
19
|
+
interface Nudge extends Message {
|
20
20
|
expire: Date;
|
21
21
|
}
|
22
22
|
export {};
|
@@ -2,7 +2,7 @@ import { OnInit } from "@angular/core";
|
|
2
2
|
import { RouterImpl } from "../../core/router";
|
3
3
|
import { SessionService } from "../../core/session.service";
|
4
4
|
import { NotificationBase } from "./notification-base";
|
5
|
-
import {
|
5
|
+
import { Form, Message } from "../../core/models";
|
6
6
|
import { TranslateService } from "../../core/translate.service";
|
7
7
|
import { ChatInfo } from "../../chat/chat-info";
|
8
8
|
import * as i0 from "@angular/core";
|
@@ -14,7 +14,7 @@ export declare class StateChangedNotification extends NotificationBase implement
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<StateChangedNotification, never>;
|
15
15
|
static ɵcmp: i0.ɵɵComponentDeclaration<StateChangedNotification, "ng-component", never, {}, {}, never, never, false, never>;
|
16
16
|
}
|
17
|
-
interface StateChanged extends
|
17
|
+
interface StateChanged extends Message {
|
18
18
|
state: string;
|
19
19
|
}
|
20
20
|
export {};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { OnInit } from "@angular/core";
|
2
2
|
import { NotificationBase } from "./notification-base";
|
3
|
-
import {
|
3
|
+
import { Message } from "../../core/models";
|
4
4
|
import { AccountService } from "../../core/account.service";
|
5
5
|
import { TranslateService } from "../../core/translate.service";
|
6
6
|
import { SessionService } from "../../core/session.service";
|
@@ -18,7 +18,7 @@ export declare class TaggedNotification extends NotificationBase implements OnIn
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<TaggedNotification, never>;
|
19
19
|
static ɵcmp: i0.ɵɵComponentDeclaration<TaggedNotification, "bizdoc-notify-tagged", never, {}, {}, never, never, false, never>;
|
20
20
|
}
|
21
|
-
interface Tagged extends
|
21
|
+
interface Tagged extends Message {
|
22
22
|
who: string;
|
23
23
|
}
|
24
24
|
export {};
|
@@ -1,8 +1,6 @@
|
|
1
|
-
import { OnInit } from "@angular/core";
|
2
1
|
import * as i0 from "@angular/core";
|
3
|
-
export declare class TextNotification
|
2
|
+
export declare class TextNotification {
|
4
3
|
notification: Text;
|
5
|
-
ngOnInit(): void;
|
6
4
|
constructor(notification: Text);
|
7
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextNotification, never>;
|
8
6
|
static ɵcmp: i0.ɵɵComponentDeclaration<TextNotification, "bizdoc-notify-text", never, {}, {}, never, never, false, never>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { OnInit } from "@angular/core";
|
2
2
|
import dayjs from 'dayjs';
|
3
|
-
import {
|
3
|
+
import { Message } from "../../core/models";
|
4
4
|
import { RouterImpl } from "../../core/router";
|
5
5
|
import * as i0 from "@angular/core";
|
6
6
|
export declare class UpcomingEventNotification implements OnInit {
|
@@ -13,7 +13,7 @@ export declare class UpcomingEventNotification implements OnInit {
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<UpcomingEventNotification, never>;
|
14
14
|
static ɵcmp: i0.ɵɵComponentDeclaration<UpcomingEventNotification, "ng-component", never, {}, {}, never, never, false, never>;
|
15
15
|
}
|
16
|
-
interface UpcommingEvent extends
|
16
|
+
interface UpcommingEvent extends Message {
|
17
17
|
starting: Date;
|
18
18
|
}
|
19
19
|
export {};
|