@bizdoc/core 3.8.9 → 3.9.0

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
@@ -150,8 +150,8 @@ interface HeaderModel<T = any> {
150
150
  documentId: number;
151
151
  substituteId?: string;
152
152
  ownerId: string;
153
- action?: string;
154
- ownerById?: string;
153
+ actionId?: string;
154
+ ownerBy?: string;
155
155
  id: number;
156
156
  version: number;
157
157
  formId: string;
@@ -160,12 +160,14 @@ interface HeaderModel<T = any> {
160
160
  value?: number;
161
161
  received: Date;
162
162
  replied?: Date;
163
+ repliedBy?: string;
163
164
  folderId: string;
164
165
  read: boolean;
165
166
  note?: string;
166
- /** sender id */
167
+ /** author of note */
167
168
  noteBy?: string;
168
169
  senderId?: string;
170
+ senderBy?: string;
169
171
  stateId: string;
170
172
  currencyCode?: string;
171
173
  flag?: boolean;
@@ -182,7 +184,7 @@ interface DocumentModel<T = any> {
182
184
  currencyCode?: string;
183
185
  value?: number;
184
186
  ownerId: string;
185
- ownerById?: string;
187
+ ownerBy?: string;
186
188
  documentId: number;
187
189
  version: number;
188
190
  formId: string;
@@ -232,7 +234,7 @@ interface RecipientModel<T = any> extends HeaderModel<T>, DocumentModel<T> {
232
234
  roleId?: string;
233
235
  escalated?: boolean;
234
236
  tags?: string[];
235
- byId?: string;
237
+ repliedBy?: string;
236
238
  substituteId?: string;
237
239
  }
238
240
  interface ConnectorInfo {
@@ -279,7 +281,8 @@ declare type LogType = 'Submit' | 'Download' | 'StateChange' | 'ActionTaken' | '
279
281
  interface Recipient {
280
282
  originId?: number;
281
283
  substituteId?: string;
282
- byId?: string;
284
+ senderId?: string;
285
+ senderBy?: string;
283
286
  nodeId?: string;
284
287
  userId: string;
285
288
  pending: boolean;
@@ -287,8 +290,9 @@ interface Recipient {
287
290
  role?: string;
288
291
  received: Date;
289
292
  replied?: Date;
293
+ repliedBy?: string;
290
294
  estimate?: boolean;
291
- action?: string;
295
+ actionId?: string;
292
296
  fyi?: boolean;
293
297
  id: number;
294
298
  note?: string;
@@ -330,10 +334,11 @@ interface Comment {
330
334
  text?: string;
331
335
  userId: string;
332
336
  time: Date;
333
- parentId?: number;
334
- voted?: number;
337
+ /** this user */
338
+ voted?: 1 | -1;
335
339
  votes?: number;
336
340
  edited?: Date;
341
+ reply?: Comment;
337
342
  deleted?: boolean;
338
343
  byId?: string;
339
344
  resource?: {
@@ -411,7 +416,6 @@ interface Profile {
411
416
  byId?: string;
412
417
  byName?: string;
413
418
  name: string;
414
- impersonating?: string;
415
419
  available?: AvailabilityState | null;
416
420
  gender?: Gender;
417
421
  byGender?: Gender;
@@ -431,11 +435,12 @@ interface Profile {
431
435
  widgets: Widget[];
432
436
  notifications: Notification[];
433
437
  options: Options$5;
434
- inbox: HeaderModel[];
435
- inboxCount?: number;
438
+ /** unread */
439
+ inboxCount: number;
436
440
  messages: Message[];
437
- messagesCount?: number;
438
- recents?: HeaderModel[];
441
+ /** unread */
442
+ messagesCount: number;
443
+ /** chat */
439
444
  conversations: Contact[];
440
445
  conversationsCount: number;
441
446
  license?: License;
@@ -1187,8 +1192,8 @@ declare class SessionService {
1187
1192
  */
1188
1193
  listImpersonate(search?: string): Observable<PersonInfo[]>;
1189
1194
  impersonate(userId: string): Observable<PersonInfo>;
1190
- markInboxAsTouched(): Promise<WatermarkInfo>;
1191
- markNotificationsAsTouched(): Promise<WatermarkInfo>;
1195
+ markInboxAsTouched(): Promise<void> | Promise<WatermarkInfo>;
1196
+ markNotificationsAsTouched(): Promise<void> | Promise<WatermarkInfo>;
1192
1197
  private _constructPalette;
1193
1198
  private _getBrowserLang;
1194
1199
  /**
@@ -3187,8 +3192,7 @@ declare class MailboxService {
3187
3192
  listCommentVotes(id: number, commentId: number): Observable<Vote[]>;
3188
3193
  listCommentEdits(id: number, commentId: number): Observable<CommentVersion[]>;
3189
3194
  findAll(filter: {
3190
- type?: FilterType;
3191
- contains?: string;
3195
+ contains?: string | null;
3192
3196
  stateId?: string | string[];
3193
3197
  formId?: string;
3194
3198
  folderId?: string;
@@ -3197,6 +3201,7 @@ declare class MailboxService {
3197
3201
  fromDate?: Date;
3198
3202
  toDate?: Date;
3199
3203
  }, options?: {
3204
+ type?: FilterType | null;
3200
3205
  skip?: number;
3201
3206
  take?: number;
3202
3207
  orderBy?: 'value' | 'viewed' | 'date';
@@ -3906,8 +3911,8 @@ declare class CommentsComponent implements OnInit, OnDestroy, OnChanges, AfterVi
3906
3911
  threadElement: ElementRef;
3907
3912
  input: EditInputComponent;
3908
3913
  typing?: string | null;
3909
- showDeleted: boolean;
3910
3914
  replyName?: string;
3915
+ readonly showDeleted: Set<number>;
3911
3916
  private _replyTo?;
3912
3917
  private _inFocus;
3913
3918
  private _top;
@@ -3918,6 +3923,11 @@ declare class CommentsComponent implements OnInit, OnDestroy, OnChanges, AfterVi
3918
3923
  /** comments ctor */
3919
3924
  constructor(_accounts: AccountService, _session: SessionService, _sb: PromptService, _translate: TranslateService, _chat: ChatInfo, _mailbox: MailboxService, _messaging: HubService, _config: BizDocConfig);
3920
3925
  ngOnInit(): void;
3926
+ /**
3927
+ *
3928
+ * @param comment
3929
+ */
3930
+ toggleShowDeleted(commentId: number): void;
3921
3931
  private _formatUserElement;
3922
3932
  /**
3923
3933
  * Chat
@@ -7154,12 +7164,15 @@ declare class TaggingDirective implements OnDestroy {
7154
7164
  }
7155
7165
 
7156
7166
  declare abstract class TaggingComponentBase<T> implements AfterViewInit, OnDestroy {
7157
- options: QueryList<TaggingItemDirective>;
7158
7167
  readonly selected: EventEmitter<{
7159
7168
  key: any;
7160
7169
  value: any;
7161
7170
  }>;
7162
- items: Observable<T[]>;
7171
+ private readonly _overlayRef;
7172
+ options: QueryList<TaggingItemDirective>;
7173
+ private _items;
7174
+ get items(): Observable<T[]>;
7175
+ set items(val: Observable<T[]>);
7163
7176
  keyManager: ActiveDescendantKeyManager<TaggingItemDirective>;
7164
7177
  ngAfterViewInit(): void;
7165
7178
  abstract onBind(value?: string): void;
@@ -7169,9 +7182,8 @@ declare abstract class TaggingComponentBase<T> implements AfterViewInit, OnDestr
7169
7182
  }
7170
7183
 
7171
7184
  declare class DocumentTaggingComponent extends TaggingComponentBase<HeaderModel> {
7172
- private _mailbox;
7173
- constructor(_mailbox: MailboxService);
7174
- onBind(value: string): void;
7185
+ private readonly _mailbox;
7186
+ onBind(contains: string): void;
7175
7187
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentTaggingComponent, never>;
7176
7188
  static ɵcmp: i0.ɵɵComponentDeclaration<DocumentTaggingComponent, "ng-component", never, {}, {}, never, never, false, never>;
7177
7189
  }
@@ -7180,8 +7192,6 @@ declare class UserTaggingComponent extends TaggingComponentBase<PersonInfo> {
7180
7192
  private _session;
7181
7193
  private _accounts;
7182
7194
  private readonly _me;
7183
- constructor(_session: SessionService, _accounts: AccountService);
7184
- nice(name: string): string;
7185
7195
  onBind(value: string): void;
7186
7196
  static ɵfac: i0.ɵɵFactoryDeclaration<UserTaggingComponent, never>;
7187
7197
  static ɵcmp: i0.ɵɵComponentDeclaration<UserTaggingComponent, "ng-component", never, {}, {}, never, never, false, never>;
@@ -7743,13 +7753,12 @@ declare class CommentComponent implements OnInit {
7743
7753
  constructor(_session: SessionService, _ps: PromptService, _translate: TranslateService, _chat: ChatInfo, _accounts: AccountService, _popup: Popup, _overlay: Overlay, _mailbox: MailboxService, _vc: ViewContainerRef, _config: BizDocConfig);
7744
7754
  ngOnInit(): void;
7745
7755
  private _name;
7746
- private _formatUserElement;
7747
7756
  /**
7748
7757
  * Chat
7749
7758
  * @param e
7750
7759
  */
7751
7760
  chat(e: MouseEvent): void;
7752
- vote(value: number, event: MouseEvent): void;
7761
+ vote(value: 1 | 0 | -1, event: MouseEvent): void;
7753
7762
  edit(): void;
7754
7763
  private _open;
7755
7764
  delete(value: boolean): void;
@@ -7845,13 +7854,16 @@ declare class ExpandedItemComponent implements OnInit, OnDestroy {
7845
7854
  private readonly _destroy;
7846
7855
  constructor(_sb: PromptService, _chat: ChatInfo, _accounts: AccountService, _mailbox: MailboxService, _session: SessionService, _dir: Directionality, _dialog: MatDialog, _translate: TranslateService, _messaging: HubService);
7847
7856
  ngOnInit(): void;
7857
+ /** */
7858
+ private _refresh;
7859
+ /** */
7848
7860
  private _note;
7849
7861
  private _target;
7850
7862
  private _actionName;
7851
7863
  private _fromNow;
7852
7864
  private _duration;
7853
7865
  /** */
7854
- private _refresh;
7866
+ private _sender;
7855
7867
  private _comments;
7856
7868
  private _awaiting;
7857
7869
  /**
@@ -9955,7 +9967,7 @@ declare class ComposeMenuComponent implements OnInit, OnDestroy {
9955
9967
  private _factory;
9956
9968
  private _router;
9957
9969
  readonly change: EventEmitter<any>;
9958
- readonly search: FormControl<null>;
9970
+ readonly search: FormControl<string | null>;
9959
9971
  items: Observable<HeaderModel[]>;
9960
9972
  private readonly _destroy;
9961
9973
  private readonly _working$;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizdoc/core",
3
- "version": "3.8.9",
3
+ "version": "3.9.0",
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",