@bizdoc/core 3.8.9 → 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?: {
@@ -3187,8 +3188,7 @@ declare class MailboxService {
3187
3188
  listCommentVotes(id: number, commentId: number): Observable<Vote[]>;
3188
3189
  listCommentEdits(id: number, commentId: number): Observable<CommentVersion[]>;
3189
3190
  findAll(filter: {
3190
- type?: FilterType;
3191
- contains?: string;
3191
+ contains?: string | null;
3192
3192
  stateId?: string | string[];
3193
3193
  formId?: string;
3194
3194
  folderId?: string;
@@ -3197,6 +3197,7 @@ declare class MailboxService {
3197
3197
  fromDate?: Date;
3198
3198
  toDate?: Date;
3199
3199
  }, options?: {
3200
+ type?: FilterType | null;
3200
3201
  skip?: number;
3201
3202
  take?: number;
3202
3203
  orderBy?: 'value' | 'viewed' | 'date';
@@ -3906,8 +3907,8 @@ declare class CommentsComponent implements OnInit, OnDestroy, OnChanges, AfterVi
3906
3907
  threadElement: ElementRef;
3907
3908
  input: EditInputComponent;
3908
3909
  typing?: string | null;
3909
- showDeleted: boolean;
3910
3910
  replyName?: string;
3911
+ readonly showDeleted: Set<number>;
3911
3912
  private _replyTo?;
3912
3913
  private _inFocus;
3913
3914
  private _top;
@@ -3918,6 +3919,11 @@ declare class CommentsComponent implements OnInit, OnDestroy, OnChanges, AfterVi
3918
3919
  /** comments ctor */
3919
3920
  constructor(_accounts: AccountService, _session: SessionService, _sb: PromptService, _translate: TranslateService, _chat: ChatInfo, _mailbox: MailboxService, _messaging: HubService, _config: BizDocConfig);
3920
3921
  ngOnInit(): void;
3922
+ /**
3923
+ *
3924
+ * @param comment
3925
+ */
3926
+ toggleShowDeleted(commentId: number): void;
3921
3927
  private _formatUserElement;
3922
3928
  /**
3923
3929
  * Chat
@@ -7154,12 +7160,15 @@ declare class TaggingDirective implements OnDestroy {
7154
7160
  }
7155
7161
 
7156
7162
  declare abstract class TaggingComponentBase<T> implements AfterViewInit, OnDestroy {
7157
- options: QueryList<TaggingItemDirective>;
7158
7163
  readonly selected: EventEmitter<{
7159
7164
  key: any;
7160
7165
  value: any;
7161
7166
  }>;
7162
- 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[]>);
7163
7172
  keyManager: ActiveDescendantKeyManager<TaggingItemDirective>;
7164
7173
  ngAfterViewInit(): void;
7165
7174
  abstract onBind(value?: string): void;
@@ -7169,9 +7178,8 @@ declare abstract class TaggingComponentBase<T> implements AfterViewInit, OnDestr
7169
7178
  }
7170
7179
 
7171
7180
  declare class DocumentTaggingComponent extends TaggingComponentBase<HeaderModel> {
7172
- private _mailbox;
7173
- constructor(_mailbox: MailboxService);
7174
- onBind(value: string): void;
7181
+ private readonly _mailbox;
7182
+ onBind(contains: string): void;
7175
7183
  static ɵfac: i0.ɵɵFactoryDeclaration<DocumentTaggingComponent, never>;
7176
7184
  static ɵcmp: i0.ɵɵComponentDeclaration<DocumentTaggingComponent, "ng-component", never, {}, {}, never, never, false, never>;
7177
7185
  }
@@ -7180,8 +7188,6 @@ declare class UserTaggingComponent extends TaggingComponentBase<PersonInfo> {
7180
7188
  private _session;
7181
7189
  private _accounts;
7182
7190
  private readonly _me;
7183
- constructor(_session: SessionService, _accounts: AccountService);
7184
- nice(name: string): string;
7185
7191
  onBind(value: string): void;
7186
7192
  static ɵfac: i0.ɵɵFactoryDeclaration<UserTaggingComponent, never>;
7187
7193
  static ɵcmp: i0.ɵɵComponentDeclaration<UserTaggingComponent, "ng-component", never, {}, {}, never, never, false, never>;
@@ -7743,13 +7749,12 @@ declare class CommentComponent implements OnInit {
7743
7749
  constructor(_session: SessionService, _ps: PromptService, _translate: TranslateService, _chat: ChatInfo, _accounts: AccountService, _popup: Popup, _overlay: Overlay, _mailbox: MailboxService, _vc: ViewContainerRef, _config: BizDocConfig);
7744
7750
  ngOnInit(): void;
7745
7751
  private _name;
7746
- private _formatUserElement;
7747
7752
  /**
7748
7753
  * Chat
7749
7754
  * @param e
7750
7755
  */
7751
7756
  chat(e: MouseEvent): void;
7752
- vote(value: number, event: MouseEvent): void;
7757
+ vote(value: 1 | 0 | -1, event: MouseEvent): void;
7753
7758
  edit(): void;
7754
7759
  private _open;
7755
7760
  delete(value: boolean): void;
@@ -9955,7 +9960,7 @@ declare class ComposeMenuComponent implements OnInit, OnDestroy {
9955
9960
  private _factory;
9956
9961
  private _router;
9957
9962
  readonly change: EventEmitter<any>;
9958
- readonly search: FormControl<null>;
9963
+ readonly search: FormControl<string | null>;
9959
9964
  items: Observable<HeaderModel[]>;
9960
9965
  private readonly _destroy;
9961
9966
  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.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",