@bizdoc/core 3.6.6 → 3.6.8

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
@@ -1,7 +1,7 @@
1
1
  import * as _angular_forms from '@angular/forms';
2
2
  import { FormGroup, FormBuilder, ControlValueAccessor, NgControl, AbstractControl, FormControl, ValidationErrors, FormArray } from '@angular/forms';
3
3
  import * as i0 from '@angular/core';
4
- import { Type as Type$1, InjectionToken, Injector, TemplateRef, ElementRef, OnInit, OnDestroy, ViewContainerRef, DoCheck, EventEmitter, OnChanges, AfterViewInit, SimpleChanges, ChangeDetectorRef, PipeTransform, ComponentRef, NgZone, QueryList, Renderer2, ModuleWithProviders } from '@angular/core';
4
+ import { Type as Type$1, InjectionToken, Injector, TemplateRef, ElementRef, OnInit, OnDestroy, ViewContainerRef, DoCheck, EventEmitter, OnChanges, AfterViewInit, SimpleChanges, ChangeDetectorRef, PipeTransform, NgZone, ComponentRef, QueryList, Renderer2, ModuleWithProviders } from '@angular/core';
5
5
  import * as rxjs from 'rxjs';
6
6
  import { Subject, Observable, BehaviorSubject } from 'rxjs';
7
7
  import * as i8 from '@angular/material/chips';
@@ -1105,7 +1105,11 @@ declare class SessionService {
1105
1105
  private _http;
1106
1106
  private _cookies;
1107
1107
  private _hub;
1108
- prepare(): Promise<void> | Promise<any[]>;
1108
+ /**
1109
+ *
1110
+ * @returns
1111
+ */
1112
+ prepare(): Promise<any[]>;
1109
1113
  readonly Themes: Theme[];
1110
1114
  constructor(_config: BizDocConfig, _http: HttpClient, _cookies: CookieService, _hub: HubService, iconRegistry: MatIconRegistry, sanitizer: DomSanitizer);
1111
1115
  private readonly _loaded;
@@ -1236,7 +1240,7 @@ declare class TranslateService {
1236
1240
  private _gender?;
1237
1241
  get culture(): string;
1238
1242
  constructor(_session: SessionService, _http: HttpClient);
1239
- cldr(culture: string, files: string[]): Promise<unknown>;
1243
+ cldr(): Promise<void> | Promise<any[]>;
1240
1244
  get(key: string, ...args: (string | number)[]): string;
1241
1245
  personalize(key: string, gender?: Gender, ...args: any[]): string;
1242
1246
  i18n(key: string): string;
@@ -1339,6 +1343,7 @@ declare class OptionsComponent implements OnInit, OnDestroy {
1339
1343
  sectionTmpl: TemplateRef<any>;
1340
1344
  saveing: boolean;
1341
1345
  private _requiredValidator;
1346
+ private _laterThan;
1342
1347
  readonly grantUserIds: _angular_forms.FormControl<never[] | null>;
1343
1348
  readonly oooId: _angular_forms.FormControl<string | PersonInfo | null>;
1344
1349
  readonly form: FormGroup<{
@@ -3483,6 +3488,31 @@ interface BrowseFilterArgs {
3483
3488
  tag?: string;
3484
3489
  }
3485
3490
 
3491
+ declare class CalendarPipe implements PipeTransform {
3492
+ private cdRef;
3493
+ private ngZone;
3494
+ private static refs;
3495
+ private static timer;
3496
+ private static midnight;
3497
+ private midnightSub;
3498
+ transform(value: any, ...args: any[]): string;
3499
+ constructor(cdRef: ChangeDetectorRef, ngZone: NgZone);
3500
+ private static initTimer;
3501
+ private static removeTimer;
3502
+ ngOnDestroy(): void;
3503
+ static ɵfac: i0.ɵɵFactoryDeclaration<CalendarPipe, never>;
3504
+ static ɵpipe: i0.ɵɵPipeDeclaration<CalendarPipe, "amCalendar", false>;
3505
+ }
3506
+ type CalendarSpecVal = string;
3507
+ interface CalendarSpec {
3508
+ sameDay?: CalendarSpecVal;
3509
+ nextDay?: CalendarSpecVal;
3510
+ lastDay?: CalendarSpecVal;
3511
+ nextWeek?: CalendarSpecVal;
3512
+ lastWeek?: CalendarSpecVal;
3513
+ sameElse?: CalendarSpecVal;
3514
+ }
3515
+
3486
3516
  declare class BrowseItemsComponent implements OnInit, OnChanges, OnDestroy {
3487
3517
  private _mailbox;
3488
3518
  private _accounts;
@@ -3499,6 +3529,7 @@ declare class BrowseItemsComponent implements OnInit, OnChanges, OnDestroy {
3499
3529
  folderId: string;
3500
3530
  filterType: FilterType;
3501
3531
  filters: BrowseFilterArgs;
3532
+ readonly CALENDAR_SPEC: CalendarSpec;
3502
3533
  sort: MatSort;
3503
3534
  paginator: MatPaginator;
3504
3535
  dataSource: MatTableDataSource<HeaderModel>;
@@ -3885,6 +3916,7 @@ declare class CommentsComponent implements OnInit, OnDestroy, OnChanges, AfterVi
3885
3916
 
3886
3917
  declare class AttachmentsComponent implements OnChanges {
3887
3918
  private _mailbox;
3919
+ private _translate;
3888
3920
  private _session;
3889
3921
  private _vc;
3890
3922
  private _sb;
@@ -3895,8 +3927,9 @@ declare class AttachmentsComponent implements OnChanges {
3895
3927
  viewedIndicator: boolean;
3896
3928
  includeDeleted: boolean;
3897
3929
  attachments: AttachmentExtra[];
3930
+ readonly CALENDAR_SPEC: CalendarSpec;
3898
3931
  /** mail-attachments ctor */
3899
- constructor(_mailbox: MailboxService, _session: SessionService, _vc: ViewContainerRef, _sb: PromptService, _overlay: Overlay, _injector: Injector, _dir: Directionality);
3932
+ constructor(_mailbox: MailboxService, _translate: TranslateService, _session: SessionService, _vc: ViewContainerRef, _sb: PromptService, _overlay: Overlay, _injector: Injector, _dir: Directionality);
3900
3933
  ngOnChanges(): void;
3901
3934
  hasVersion(item: Attachment): boolean;
3902
3935
  getVersions(item: Attachment): Attachment[];
@@ -4842,31 +4875,6 @@ declare class DateFormatPipe implements PipeTransform {
4842
4875
  static ɵpipe: i0.ɵɵPipeDeclaration<DateFormatPipe, "amDateFormat", false>;
4843
4876
  }
4844
4877
 
4845
- declare class CalendarPipe implements PipeTransform {
4846
- private cdRef;
4847
- private ngZone;
4848
- private static refs;
4849
- private static timer;
4850
- private static midnight;
4851
- private midnightSub;
4852
- transform(value: any, ...args: any[]): string;
4853
- constructor(cdRef: ChangeDetectorRef, ngZone: NgZone);
4854
- private static initTimer;
4855
- private static removeTimer;
4856
- ngOnDestroy(): void;
4857
- static ɵfac: i0.ɵɵFactoryDeclaration<CalendarPipe, never>;
4858
- static ɵpipe: i0.ɵɵPipeDeclaration<CalendarPipe, "amCalendar", false>;
4859
- }
4860
- type CalendarSpecVal = string;
4861
- interface CalendarSpec {
4862
- sameDay?: CalendarSpecVal;
4863
- nextDay?: CalendarSpecVal;
4864
- lastDay?: CalendarSpecVal;
4865
- nextWeek?: CalendarSpecVal;
4866
- lastWeek?: CalendarSpecVal;
4867
- sameElse?: CalendarSpecVal;
4868
- }
4869
-
4870
4878
  declare class DifferencePipe implements PipeTransform {
4871
4879
  transform(value: any, ...args: any[]): number;
4872
4880
  static ɵfac: i0.ɵɵFactoryDeclaration<DifferencePipe, never>;
@@ -6982,13 +6990,13 @@ declare class OutOfOfficeToast {
6982
6990
  private _accounts;
6983
6991
  private _ref;
6984
6992
  substitute: PersonInfo;
6985
- constructor(_router: RouterImpl, _accounts: AccountService, data: OutOfOfficeData$1, _ref: MatSnackBarRef<OutOfOfficeToast>);
6993
+ constructor(_router: RouterImpl, _accounts: AccountService, data: OutOfOfficeData, _ref: MatSnackBarRef<OutOfOfficeToast>);
6986
6994
  options(): void;
6987
6995
  dismiss(): void;
6988
6996
  static ɵfac: i0.ɵɵFactoryDeclaration<OutOfOfficeToast, never>;
6989
6997
  static ɵcmp: i0.ɵɵComponentDeclaration<OutOfOfficeToast, "bizdoc-outofoffice", never, {}, {}, never, never, false, never>;
6990
6998
  }
6991
- interface OutOfOfficeData$1 {
6999
+ interface OutOfOfficeData {
6992
7000
  substituteId: string;
6993
7001
  }
6994
7002
 
@@ -11389,7 +11397,7 @@ interface Options$1 {
11389
11397
  axes?: string[];
11390
11398
  }
11391
11399
 
11392
- interface OutOfOfficeData {
11400
+ interface OptionsData {
11393
11401
  userId: string;
11394
11402
  outOfOffice: OutOfOfficeSettings;
11395
11403
  grantAccess: GrantSettings;
@@ -11398,7 +11406,7 @@ declare class ProfileSettingsDialog implements OnInit {
11398
11406
  private _accounts;
11399
11407
  private _dialogRef;
11400
11408
  private _fb;
11401
- model: OutOfOfficeData;
11409
+ model: OptionsData;
11402
11410
  readonly separatorKeysCodes: number[];
11403
11411
  readonly today: Date;
11404
11412
  readonly isMobile: boolean;
@@ -11430,7 +11438,7 @@ declare class ProfileSettingsDialog implements OnInit {
11430
11438
  }>;
11431
11439
  ousers$: Observable<PersonInfo[]>;
11432
11440
  gusers$: Observable<PersonInfo[]>;
11433
- constructor(_accounts: AccountService, _dialogRef: MatDialogRef<ProfileSettingsDialog>, _fb: FormBuilder, model: OutOfOfficeData);
11441
+ constructor(_accounts: AccountService, _dialogRef: MatDialogRef<ProfileSettingsDialog>, _fb: FormBuilder, model: OptionsData);
11434
11442
  ngOnInit(): void;
11435
11443
  userDisplay: (item: PersonInfo) => string | null;
11436
11444
  setId(event: MatAutocompleteSelectedEvent): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizdoc/core",
3
- "version": "3.6.6",
3
+ "version": "3.6.8",
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",