@bizdoc/core 3.8.8 → 3.8.10

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/index.d.ts CHANGED
@@ -330,10 +330,11 @@ interface Comment {
330
330
  text?: string;
331
331
  userId: string;
332
332
  time: Date;
333
- parentId?: number;
334
- voted?: number;
333
+ /** this user */
334
+ voted?: 1 | -1;
335
335
  votes?: number;
336
336
  edited?: Date;
337
+ reply?: Comment;
337
338
  deleted?: boolean;
338
339
  byId?: string;
339
340
  resource?: {
@@ -563,6 +564,7 @@ interface Folder {
563
564
  group?: string;
564
565
  icon?: string;
565
566
  title: string;
567
+ /** unread */
566
568
  count?: number;
567
569
  columns?: FolderColumn[];
568
570
  }
@@ -943,15 +945,14 @@ declare abstract class AuthenticationImpl {
943
945
  declare class HubService {
944
946
  private _auth;
945
947
  private _connection;
946
- private readonly _state;
947
- readonly state$: rxjs.Observable<HubConnectionState>;
948
+ private readonly _connectionState;
948
949
  private readonly _configurationChange;
949
950
  private readonly _newMail;
950
951
  private readonly _newChat;
951
952
  private readonly _newComment;
952
953
  private readonly _commentUpdate;
953
954
  private readonly _commentDelete;
954
- private readonly _updateMail;
955
+ private readonly _mailUpdate;
955
956
  private readonly _mailDelete;
956
957
  private readonly _mailHeaderUpdate;
957
958
  private readonly _newNotify;
@@ -965,6 +966,7 @@ declare class HubService {
965
966
  private readonly _jobProgress;
966
967
  private readonly _reportProgress;
967
968
  private readonly _callback;
969
+ readonly state$: rxjs.Observable<HubConnectionState>;
968
970
  readonly configurationChange$: rxjs.Observable<void>;
969
971
  readonly jobProgress$: rxjs.Observable<JobProgressEvent>;
970
972
  readonly reportProgress$: rxjs.Observable<ReportProgressEvent>;
@@ -977,7 +979,7 @@ declare class HubService {
977
979
  readonly commentUpdate$: rxjs.Observable<CommentEvent>;
978
980
  readonly commentDelete$: rxjs.Observable<CommentDeleteEvent>;
979
981
  /** new notification */
980
- readonly notify$: rxjs.Observable<NotificationEvent>;
982
+ readonly newNotification$: rxjs.Observable<NotificationEvent>;
981
983
  readonly chat$: rxjs.Observable<ChatEvent>;
982
984
  readonly updateNotify$: rxjs.Observable<NotificationEvent>;
983
985
  /** new mail */
@@ -1112,6 +1114,18 @@ declare class SessionService {
1112
1114
  private _http;
1113
1115
  private _cookies;
1114
1116
  private _hub;
1117
+ private readonly _messagesCount$;
1118
+ private readonly _inboxCount$;
1119
+ private readonly _loaded$;
1120
+ private readonly _themeChange$;
1121
+ private _profile;
1122
+ private _lang;
1123
+ private _tags;
1124
+ private _firebase;
1125
+ readonly loaded: Observable<void>;
1126
+ readonly themeChange: Observable<Theme>;
1127
+ readonly notificationsCountChange$: Observable<number>;
1128
+ readonly inboxCountChange$: Observable<number>;
1115
1129
  /**
1116
1130
  *
1117
1131
  * @returns
@@ -1119,14 +1133,10 @@ declare class SessionService {
1119
1133
  prepare(): Promise<any[]>;
1120
1134
  readonly Themes: Theme[];
1121
1135
  constructor(_config: BizDocConfig, _http: HttpClient, _cookies: CookieService, _hub: HubService, iconRegistry: MatIconRegistry, sanitizer: DomSanitizer);
1122
- private readonly _loaded;
1123
- private readonly _themeChange;
1124
- readonly loaded: Observable<void>;
1125
- readonly themeChange: Observable<Theme>;
1126
- private _profile;
1127
- private _lang;
1128
- private _firebase;
1129
- private _tags;
1136
+ reportInboxRead(date: Date, move: 1 | -1): void;
1137
+ reportNotificationsRead(date: Date, move: 1 | -1): void;
1138
+ private _stepNotificationsCount;
1139
+ private _stepInboxCount;
1130
1140
  /** */
1131
1141
  get tags(): Tag$1[];
1132
1142
  get profile(): Profile;
@@ -1187,7 +1197,6 @@ declare class SessionService {
1187
1197
  * @param theme
1188
1198
  */
1189
1199
  private _changeTheme;
1190
- private _loadServiceWorker;
1191
1200
  private _loadGoogleMaps;
1192
1201
  static ɵfac: i0.ɵɵFactoryDeclaration<SessionService, never>;
1193
1202
  static ɵprov: i0.ɵɵInjectableDeclaration<SessionService>;
@@ -3106,11 +3115,10 @@ declare class MailboxService {
3106
3115
  private _session;
3107
3116
  private _auth;
3108
3117
  private _http;
3109
- private readonly _change$;
3110
- private readonly _delete$;
3111
- /** */
3112
- readonly changed: Observable<RecipientModel<any>>;
3113
- readonly deleted: Observable<number>;
3118
+ private readonly _changed$;
3119
+ private readonly _deleted$;
3120
+ readonly recordChange$: Observable<RecipientModel<any>>;
3121
+ readonly recordDelete$: Observable<number>;
3114
3122
  constructor(_session: SessionService, _auth: AuthenticationImpl, _http: HttpClient);
3115
3123
  formatDownloadUrl(document: DocumentModel, file: Attachment): Promise<string>;
3116
3124
  downloadAttachment(documentId: number, fileId: number): Observable<any>;
@@ -3180,8 +3188,7 @@ declare class MailboxService {
3180
3188
  listCommentVotes(id: number, commentId: number): Observable<Vote[]>;
3181
3189
  listCommentEdits(id: number, commentId: number): Observable<CommentVersion[]>;
3182
3190
  findAll(filter: {
3183
- type?: FilterType;
3184
- contains?: string;
3191
+ contains?: string | null;
3185
3192
  stateId?: string | string[];
3186
3193
  formId?: string;
3187
3194
  folderId?: string;
@@ -3190,6 +3197,7 @@ declare class MailboxService {
3190
3197
  fromDate?: Date;
3191
3198
  toDate?: Date;
3192
3199
  }, options?: {
3200
+ type?: FilterType | null;
3193
3201
  skip?: number;
3194
3202
  take?: number;
3195
3203
  orderBy?: 'value' | 'viewed' | 'date';
@@ -3209,7 +3217,22 @@ declare class MailboxService {
3209
3217
  * @returns
3210
3218
  */
3211
3219
  get<T = any>(id: number, read?: boolean): Observable<RecipientModel<T>>;
3220
+ /**
3221
+ *
3222
+ * @param date
3223
+ * @param folderId
3224
+ * @param move
3225
+ */
3212
3226
  private _updateUnreadWatermark;
3227
+ /**
3228
+ *
3229
+ * @param id
3230
+ * @param form
3231
+ * @param version
3232
+ * @param model
3233
+ * @param files
3234
+ * @returns
3235
+ */
3213
3236
  save<T = any>(id: number, form: string, version: number, model: {}, files?: File[] | FileList): Observable<RecipientModel<T>>;
3214
3237
  delete(id: number): Observable<any>;
3215
3238
  toggleCommentHide(id: number, value: boolean): Observable<any>;
@@ -3884,8 +3907,8 @@ declare class CommentsComponent implements OnInit, OnDestroy, OnChanges, AfterVi
3884
3907
  threadElement: ElementRef;
3885
3908
  input: EditInputComponent;
3886
3909
  typing?: string | null;
3887
- showDeleted: boolean;
3888
3910
  replyName?: string;
3911
+ readonly showDeleted: Set<number>;
3889
3912
  private _replyTo?;
3890
3913
  private _inFocus;
3891
3914
  private _top;
@@ -3896,6 +3919,11 @@ declare class CommentsComponent implements OnInit, OnDestroy, OnChanges, AfterVi
3896
3919
  /** comments ctor */
3897
3920
  constructor(_accounts: AccountService, _session: SessionService, _sb: PromptService, _translate: TranslateService, _chat: ChatInfo, _mailbox: MailboxService, _messaging: HubService, _config: BizDocConfig);
3898
3921
  ngOnInit(): void;
3922
+ /**
3923
+ *
3924
+ * @param comment
3925
+ */
3926
+ toggleShowDeleted(commentId: number): void;
3899
3927
  private _formatUserElement;
3900
3928
  /**
3901
3929
  * Chat
@@ -6755,6 +6783,11 @@ declare class AvatarComponent implements OnChanges, OnDestroy {
6755
6783
  chat(): void;
6756
6784
  ngOnChanges(changes: SimpleChanges): void;
6757
6785
  private _changeMode;
6786
+ /**
6787
+ *
6788
+ * @param name
6789
+ * @returns
6790
+ */
6758
6791
  private _gen;
6759
6792
  ngOnDestroy(): void;
6760
6793
  static ɵfac: i0.ɵɵFactoryDeclaration<AvatarComponent, never>;
@@ -7072,7 +7105,7 @@ declare class TaggingItemDirective implements Highlightable, OnDestroy {
7072
7105
  static ɵcmp: i0.ɵɵComponentDeclaration<TaggingItemDirective, "bizdoc-tag-item", never, { "key": { "alias": "key"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "selected": "selected"; }, never, ["*"], false, never>;
7073
7106
  }
7074
7107
 
7075
- declare class TaggingDirective {
7108
+ declare class TaggingDirective implements OnDestroy {
7076
7109
  private _input;
7077
7110
  private _dir;
7078
7111
  private _element;
@@ -7085,8 +7118,18 @@ declare class TaggingDirective {
7085
7118
  }>;
7086
7119
  private _instance?;
7087
7120
  private _overlayRef;
7088
- constructor(_input: MatInput, _dir: Directionality, _element: ElementRef<HTMLTextAreaElement>, _overlay: Overlay);
7121
+ private readonly _subscription;
7122
+ constructor(_input: MatInput, _dir: Directionality, _element: ElementRef<HTMLTextAreaElement>, router: PanesRouter, _overlay: Overlay);
7123
+ /**
7124
+ *
7125
+ * @param _evt
7126
+ */
7089
7127
  _handleInput(_evt: KeyboardEvent): void;
7128
+ /**
7129
+ *
7130
+ * @param evt
7131
+ * @returns
7132
+ */
7090
7133
  _handleKeydown(evt: KeyboardEvent): void;
7091
7134
  private _close;
7092
7135
  /**
@@ -7106,18 +7149,26 @@ declare class TaggingDirective {
7106
7149
  * @param value
7107
7150
  */
7108
7151
  private _select;
7152
+ /**
7153
+ *
7154
+ * @param key
7155
+ */
7109
7156
  private _assign;
7110
- static ɵfac: i0.ɵɵFactoryDeclaration<TaggingDirective, [{ self: true; }, null, null, null]>;
7157
+ ngOnDestroy(): void;
7158
+ static ɵfac: i0.ɵɵFactoryDeclaration<TaggingDirective, [{ self: true; }, null, null, { optional: true; }, null]>;
7111
7159
  static ɵdir: i0.ɵɵDirectiveDeclaration<TaggingDirective, "[bizdocTagging]", never, { "resource": { "alias": "bizdocTagging"; "required": false; }; }, { "resourceChange": "bizdocTaggingChange"; }, never, never, false, never>;
7112
7160
  }
7113
7161
 
7114
7162
  declare abstract class TaggingComponentBase<T> implements AfterViewInit, OnDestroy {
7115
- options: QueryList<TaggingItemDirective>;
7116
7163
  readonly selected: EventEmitter<{
7117
7164
  key: any;
7118
7165
  value: any;
7119
7166
  }>;
7120
- items: Observable<T[]>;
7167
+ private readonly _overlayRef;
7168
+ options: QueryList<TaggingItemDirective>;
7169
+ private _items;
7170
+ get items(): Observable<T[]>;
7171
+ set items(val: Observable<T[]>);
7121
7172
  keyManager: ActiveDescendantKeyManager<TaggingItemDirective>;
7122
7173
  ngAfterViewInit(): void;
7123
7174
  abstract onBind(value?: string): void;
@@ -7127,9 +7178,8 @@ declare abstract class TaggingComponentBase<T> implements AfterViewInit, OnDestr
7127
7178
  }
7128
7179
 
7129
7180
  declare class DocumentTaggingComponent extends TaggingComponentBase<HeaderModel> {
7130
- private _mailbox;
7131
- constructor(_mailbox: MailboxService);
7132
- onBind(value: string): void;
7181
+ private readonly _mailbox;
7182
+ onBind(contains: string): void;
7133
7183
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentTaggingComponent, never>;
7134
7184
  static ɵcmp: i0.ɵɵComponentDeclaration<DocumentTaggingComponent, "ng-component", never, {}, {}, never, never, false, never>;
7135
7185
  }
@@ -7138,8 +7188,6 @@ declare class UserTaggingComponent extends TaggingComponentBase<PersonInfo> {
7138
7188
  private _session;
7139
7189
  private _accounts;
7140
7190
  private readonly _me;
7141
- constructor(_session: SessionService, _accounts: AccountService);
7142
- nice(name: string): string;
7143
7191
  onBind(value: string): void;
7144
7192
  static ɵfac: i0.ɵɵFactoryDeclaration<UserTaggingComponent, never>;
7145
7193
  static ɵcmp: i0.ɵɵComponentDeclaration<UserTaggingComponent, "ng-component", never, {}, {}, never, never, false, never>;
@@ -7701,13 +7749,12 @@ declare class CommentComponent implements OnInit {
7701
7749
  constructor(_session: SessionService, _ps: PromptService, _translate: TranslateService, _chat: ChatInfo, _accounts: AccountService, _popup: Popup, _overlay: Overlay, _mailbox: MailboxService, _vc: ViewContainerRef, _config: BizDocConfig);
7702
7750
  ngOnInit(): void;
7703
7751
  private _name;
7704
- private _formatUserElement;
7705
7752
  /**
7706
7753
  * Chat
7707
7754
  * @param e
7708
7755
  */
7709
7756
  chat(e: MouseEvent): void;
7710
- vote(value: number, event: MouseEvent): void;
7757
+ vote(value: 1 | 0 | -1, event: MouseEvent): void;
7711
7758
  edit(): void;
7712
7759
  private _open;
7713
7760
  delete(value: boolean): void;
@@ -9913,7 +9960,7 @@ declare class ComposeMenuComponent implements OnInit, OnDestroy {
9913
9960
  private _factory;
9914
9961
  private _router;
9915
9962
  readonly change: EventEmitter<any>;
9916
- readonly search: FormControl<null>;
9963
+ readonly search: FormControl<string | null>;
9917
9964
  items: Observable<HeaderModel[]>;
9918
9965
  private readonly _destroy;
9919
9966
  private readonly _working$;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizdoc/core",
3
- "version": "3.8.8",
3
+ "version": "3.8.10",
4
4
  "author": "Moding Ltd.",
5
5
  "homepage": "https://github.com/moding-il/bizdoc.core",
6
6
  "license": "https://github.com/moding-il/bizdoc.core/blob/master/License.md",