@bizdoc/core 2.3.42 → 2.3.44

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.
@@ -68,11 +68,11 @@ import * as i2$6 from '@angular/cdk/drag-drop';
68
68
  import { DragDropModule, moveItemInArray } from '@angular/cdk/drag-drop';
69
69
  import * as i2$8 from '@angular/cdk/a11y';
70
70
  import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';
71
- import * as brace from 'brace';
72
- import 'brace/mode/javascript';
73
- import 'brace/theme/github';
74
- import 'brace/theme/twilight';
75
- import 'brace/ext/language_tools';
71
+ import * as ace from 'ace-builds';
72
+ import 'ace-builds/src-noconflict/mode-javascript';
73
+ import 'ace-builds/src-noconflict/theme-github';
74
+ import 'ace-builds/src-noconflict/theme-twilight';
75
+ import 'ace-builds/src-noconflict/ext-language_tools';
76
76
  import * as i1$4 from '@angular/router';
77
77
  import { NavigationStart as NavigationStart$1, ActivationEnd, RouterModule } from '@angular/router';
78
78
  import * as i6$1 from '@angular/material/divider';
@@ -155,7 +155,6 @@ import duration from 'dayjs/plugin/duration';
155
155
  import calendar from 'dayjs/plugin/calendar';
156
156
  import advancedFormat from 'dayjs/plugin/advancedFormat';
157
157
  import updateLocale from 'dayjs/plugin/updateLocale';
158
- import player from 'lottie-web/build/player/lottie';
159
158
  import { CircularGauge as CircularGauge$1 } from '@syncfusion/ej2-circulargauge';
160
159
 
161
160
  const BIZDOC_CONFIG = new InjectionToken('bizdoc');
@@ -933,8 +932,17 @@ class HubService {
933
932
  this.delete$ = this._mailDelete.asObservable();
934
933
  this.comment$ = this._newComment.asObservable();
935
934
  this.profileChange$ = this._profileChange.asObservable();
935
+ if (navigator && navigator.locks && navigator.locks.request) {
936
+ navigator.locks.request('hub_lock', { mode: 'shared' }, () => {
937
+ return new Promise((res) => {
938
+ this.lockResolver = res;
939
+ });
940
+ });
941
+ }
936
942
  this._connection = new HubConnectionBuilder().withUrl('/chub', {
937
- accessTokenFactory: () => this._auth.getAccessToken()
943
+ // logger: LogLevel.Debug,
944
+ accessTokenFactory: this._auth.getAccessToken.bind(this),
945
+ skipNegotiation: true,
938
946
  }).withAutomaticReconnect().build();
939
947
  this._connection.on('newMail', (data) => this._newMail.next(data));
940
948
  this._connection.on('mailUpdate', (data) => this._updateMail.next(data));
@@ -4619,20 +4627,27 @@ class AceInput {
4619
4627
  this.errorState = false;
4620
4628
  this.controlType = 'bizdoc-ace-input';
4621
4629
  this.describedBy = '';
4630
+ ace.config.set('basePath', 'https://unpkg.com/ace-builds@1.32.7/src-noconflict');
4631
+ ace.require("ace/ext/language_tools");
4622
4632
  if (this.ngControl != null) {
4623
4633
  this.ngControl.valueAccessor = this;
4624
4634
  }
4625
4635
  }
4626
4636
  ngOnInit() {
4627
- this._editor = brace.edit(this._el.nativeElement.firstChild);
4628
- this._editor.getSession().setMode('ace/mode/javascript');
4629
- this._editor.setTheme(this._session.theme.dark ? 'ace/theme/twilight' : 'ace/theme/github');
4637
+ this._editor = ace.edit(this._el.nativeElement.firstChild);
4638
+ this._editor.session.setMode('ace/mode/javascript');
4639
+ this._editor.setTheme(this._session.theme.dark ?
4640
+ 'ace/theme/twilight' : 'ace/theme/github');
4641
+ const rules = this._service.rules(this.params).pipe(shareReplay$1());
4630
4642
  this._editor.setOptions({
4631
- enableBasicAutocompletion: true,
4643
+ enableBasicAutocompletion: [{
4644
+ getCompletions: (editor, session, pos, prefix, callback) => {
4645
+ rules.subscribe(r => callback(null, r.map(r => ({ name: r.title, value: r.name, score: 1, meta: 'BizDoc' }))));
4646
+ },
4647
+ }],
4632
4648
  enableLiveAutocompletion: true
4633
4649
  });
4634
4650
  this._editor.setValue(this._value || '');
4635
- const rules = this._service.rules(this.params).pipe(shareReplay$1());
4636
4651
  this._editor.addEventListener('change', () => {
4637
4652
  const val = this._editor.getValue();
4638
4653
  this._value = val.length > 0 ? val : null;
@@ -4643,11 +4658,6 @@ class AceInput {
4643
4658
  this._onTouched();
4644
4659
  });
4645
4660
  this._editor.addEventListener('blur', () => this.focused = false);
4646
- brace.acequire("ace/ext/language_tools").addCompleter({
4647
- getCompletions: (_editor, _session, _pos, _prefix, callback) => {
4648
- rules.subscribe(r => callback(null, r.map(r => ({ name: r.title, value: r.name, score: 1, meta: 'BizDoc' }))));
4649
- }
4650
- });
4651
4661
  }
4652
4662
  focus() {
4653
4663
  this._editor.focus();
@@ -6509,29 +6519,33 @@ class HelpTipComponent {
6509
6519
  this._guide.start(this.name);
6510
6520
  }
6511
6521
  dismiss() {
6512
- localStorage.setItem(this.name + 'tip', '1');
6522
+ localStorage.setItem(this.name + '-tip', '1');
6513
6523
  this.showTip = false;
6514
6524
  }
6515
6525
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.3", ngImport: i0, type: HelpTipComponent, deps: [{ token: GuideService }], target: i0.ɵɵFactoryTarget.Component }); }
6516
6526
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.2.3", type: HelpTipComponent, selector: "bizdoc-help-tip", inputs: { name: "name" }, ngImport: i0, template: `
6517
6527
  @if (showTip) {
6518
6528
  <p class="row form-help-tip">
6519
- <mat-icon>help_outline</mat-icon> &nbsp;<span (click)="open($event)" [innerHTML]="'HelpTip'|translate: _message" class="mat-body-1"></span>
6520
- <button mat-icon-button (click)="dismiss()" [bizdocTooltip]="'Dismiss'|translate"><mat-icon inline>close</mat-icon></button>
6529
+ <mat-icon>help_outline</mat-icon> &nbsp;
6530
+ <span (click)="open($event)" [innerHTML]="'HelpTip'|translate: _message" class="mat-body-1" style="margin: 0;"></span>
6531
+ <span class="divider"></span>
6532
+ <button mat-icon-button (click)="dismiss()" [bizdocTooltip]="'Dismiss'|translate"><mat-icon>close</mat-icon></button>
6521
6533
  </p>
6522
6534
  }
6523
- `, isInline: true, styles: [".form-help-tip{align-items:center;border:1px rgb(0 0 0 / 38%) solid;margin:10px;border-radius:3px;padding:0 8px}\n"], dependencies: [{ kind: "component", type: i8.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i10.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: TooltipDirective, selector: "[bizdocTooltip]", inputs: ["bizdocTooltip", "bizdocTooltipTemplate", "bizdocTooltipContext", "bizdocTooltipPosition", "bizdocTooltipDuration", "bizdocTooltipDisabled"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] }); }
6535
+ `, isInline: true, styles: [".form-help-tip{align-items:center;border:1px rgb(0 0 0 / 38%) solid;border-radius:3px;padding:0 8px}\n"], dependencies: [{ kind: "component", type: i8.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i10.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: TooltipDirective, selector: "[bizdocTooltip]", inputs: ["bizdocTooltip", "bizdocTooltipTemplate", "bizdocTooltipContext", "bizdocTooltipPosition", "bizdocTooltipDuration", "bizdocTooltipDisabled"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] }); }
6524
6536
  }
6525
6537
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.3", ngImport: i0, type: HelpTipComponent, decorators: [{
6526
6538
  type: Component,
6527
6539
  args: [{ template: `
6528
6540
  @if (showTip) {
6529
6541
  <p class="row form-help-tip">
6530
- <mat-icon>help_outline</mat-icon> &nbsp;<span (click)="open($event)" [innerHTML]="'HelpTip'|translate: _message" class="mat-body-1"></span>
6531
- <button mat-icon-button (click)="dismiss()" [bizdocTooltip]="'Dismiss'|translate"><mat-icon inline>close</mat-icon></button>
6542
+ <mat-icon>help_outline</mat-icon> &nbsp;
6543
+ <span (click)="open($event)" [innerHTML]="'HelpTip'|translate: _message" class="mat-body-1" style="margin: 0;"></span>
6544
+ <span class="divider"></span>
6545
+ <button mat-icon-button (click)="dismiss()" [bizdocTooltip]="'Dismiss'|translate"><mat-icon>close</mat-icon></button>
6532
6546
  </p>
6533
6547
  }
6534
- `, selector: 'bizdoc-help-tip', styles: [".form-help-tip{align-items:center;border:1px rgb(0 0 0 / 38%) solid;margin:10px;border-radius:3px;padding:0 8px}\n"] }]
6548
+ `, selector: 'bizdoc-help-tip', styles: [".form-help-tip{align-items:center;border:1px rgb(0 0 0 / 38%) solid;border-radius:3px;padding:0 8px}\n"] }]
6535
6549
  }], ctorParameters: () => [{ type: GuideService }], propDecorators: { name: [{
6536
6550
  type: Input
6537
6551
  }] } });
@@ -22182,11 +22196,13 @@ dayjs.extend(relativeTime, {
22182
22196
  { l: 'yy', d: 'year' }
22183
22197
  ]
22184
22198
  });
22185
- dayjs.extend(duration);
22186
- dayjs.extend(calendar);
22187
- dayjs.extend(updateLocale);
22188
- dayjs.extend(advancedFormat);
22189
22199
  class DayJsModule {
22200
+ constructor() {
22201
+ dayjs.extend(duration);
22202
+ dayjs.extend(calendar);
22203
+ dayjs.extend(updateLocale);
22204
+ dayjs.extend(advancedFormat);
22205
+ }
22190
22206
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.3", ngImport: i0, type: DayJsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
22191
22207
  static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.2.3", ngImport: i0, type: DayJsModule }); }
22192
22208
  static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.2.3", ngImport: i0, type: DayJsModule }); }
@@ -22197,7 +22213,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.3", ngImpor
22197
22213
  imports: [],
22198
22214
  exports: [],
22199
22215
  }]
22200
- }] });
22216
+ }], ctorParameters: () => [] });
22201
22217
 
22202
22218
  class DocumentInfo {
22203
22219
  constructor(_router) {
@@ -23578,6 +23594,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.3", ngImpor
23578
23594
  args: ['signature']
23579
23595
  }] } });
23580
23596
 
23597
+ //"@teamhive/lottie-player": "^1.0.0",
23598
+ //"lottie-web": "^5.12.2",
23599
+ //import player from 'lottie-web/build/player/lottie';
23581
23600
  class LottieAnimation {
23582
23601
  constructor(_element) {
23583
23602
  this._element = _element;
@@ -23585,19 +23604,19 @@ class LottieAnimation {
23585
23604
  this.autoplay = true;
23586
23605
  }
23587
23606
  ngOnInit() {
23588
- this._instance = player.loadAnimation({
23589
- container: this._element.nativeElement,
23590
- renderer: 'svg',
23591
- loop: true,
23592
- autoplay: this.autoplay,
23593
- width: '20px',
23594
- rendererSettings: {
23595
- //className: ''
23596
- },
23597
- background: "transparent",
23598
- path: `assets/animations/${this.name}.json`
23599
- });
23600
- this._instance.show();
23607
+ // this._instance = player.loadAnimation({
23608
+ // container: this._element.nativeElement,
23609
+ // renderer: 'svg',
23610
+ // loop: true,
23611
+ // autoplay: this.autoplay,
23612
+ // width: '20px',
23613
+ // rendererSettings: {
23614
+ // //className: ''
23615
+ // },
23616
+ // background: "transparent",
23617
+ // path: `assets/animations/${this.name}.json`
23618
+ // } as AnimationConfig);
23619
+ // this._instance.show();
23601
23620
  }
23602
23621
  play() { this._instance.play(); }
23603
23622
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.3", ngImport: i0, type: LottieAnimation, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }