@bizy/core 20.6.1 → 20.6.3

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.
@@ -4,7 +4,6 @@ import * as i1 from '@angular/common';
4
4
  import { CommonModule, DOCUMENT, registerLocaleData, DatePipe } from '@angular/common';
5
5
  import { BehaviorSubject, Subject, Subscription, filter, take as take$1, skip, auditTime, throttleTime, debounceTime as debounceTime$1, interval, fromEvent, merge } from 'rxjs';
6
6
  import { skipWhile, take, debounceTime, distinctUntilChanged, takeUntil, map, filter as filter$1 } from 'rxjs/operators';
7
- import html2canvas from 'html2canvas';
8
7
  import * as i2 from 'angular-calendar';
9
8
  import { CalendarNativeDateFormatter, CalendarModule, CalendarUtils, CalendarA11y, CalendarEventTitleFormatter, DateAdapter, CalendarDateFormatter } from 'angular-calendar';
10
9
  import { isSameMonth, isSameDay } from 'date-fns';
@@ -976,15 +975,18 @@ class BizyBarLineChartComponent {
976
975
  };
977
976
  showAllLegends(this.#echarts);
978
977
  setTimeout(() => {
979
- html2canvas(this.#chartContainer).then(canvas => {
980
- var link = this.#renderer.createElement('a');
981
- link.href = canvas.toDataURL('image/png');
982
- link.download = downloadName;
983
- this.#renderer.appendChild(this.#document.body, link);
984
- link.click();
985
- this.#renderer.removeChild(this.#document.body, link);
986
- restoreLegendType(this.#echarts);
987
- this.onDownload.emit();
978
+ import('html2canvas').then(module => {
979
+ const html2canvas = module.default;
980
+ html2canvas(this.#chartContainer).then(canvas => {
981
+ var link = this.#renderer.createElement('a');
982
+ link.href = canvas.toDataURL('image/png');
983
+ link.download = downloadName;
984
+ this.#renderer.appendChild(this.#document.body, link);
985
+ link.click();
986
+ this.#renderer.removeChild(this.#document.body, link);
987
+ restoreLegendType(this.#echarts);
988
+ this.onDownload.emit();
989
+ });
988
990
  });
989
991
  }, 500);
990
992
  }
@@ -3679,14 +3681,17 @@ class BizyHeatMapChartComponent {
3679
3681
  title: downloadTitle,
3680
3682
  onclick: () => {
3681
3683
  setTimeout(() => {
3682
- html2canvas(this.#chartContainer).then(canvas => {
3683
- var link = this.#renderer.createElement('a');
3684
- link.href = canvas.toDataURL('image/png');
3685
- link.download = downloadName;
3686
- this.#renderer.appendChild(this.#document.body, link);
3687
- link.click();
3688
- this.#renderer.removeChild(this.#document.body, link);
3689
- this.onDownload.emit();
3684
+ import('html2canvas').then(module => {
3685
+ const html2canvas = module.default;
3686
+ html2canvas(this.#chartContainer).then(canvas => {
3687
+ var link = this.#renderer.createElement('a');
3688
+ link.href = canvas.toDataURL('image/png');
3689
+ link.download = downloadName;
3690
+ this.#renderer.appendChild(this.#document.body, link);
3691
+ link.click();
3692
+ this.#renderer.removeChild(this.#document.body, link);
3693
+ this.onDownload.emit();
3694
+ });
3690
3695
  });
3691
3696
  }, 500);
3692
3697
  }
@@ -4136,13 +4141,13 @@ class BizyMenuBarComponent {
4136
4141
  this.#subscription.unsubscribe();
4137
4142
  }
4138
4143
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyMenuBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4139
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyMenuBarComponent, isStandalone: true, selector: "bizy-menu-bar", inputs: { id: "id", disabled: "disabled", selectedOption: "selectedOption" }, outputs: { selectedOptionChange: "selectedOptionChange" }, host: { properties: { "id": "id" } }, queries: [{ propertyName: "options", predicate: BizyMenuBarOptionComponent }], ngImport: i0, template: "<ng-content select=\"bizy-menu-bar-option\"></ng-content>", styles: [":host{font-size:1rem;display:flex;flex:1;height:fit-content;width:100%;background-color:transparent;align-items:center;column-gap:0}:host ::ng-deep>bizy-menu-bar-option:first-child{--bizy-menu-bar-option-border-radius: 1rem 0 0 1rem}:host ::ng-deep>bizy-menu-bar-option:last-child{--bizy-menu-bar-option-border-radius: 0 1rem 1rem 0}:host ::ng-deep>bizy-menu-bar-option:not(:first-child):not(:last-child){--bizy-menu-bar-option-border-radius: 0}:host ::ng-deep>bizy-menu-bar-option:only-child{--bizy-menu-bar-option-border-radius: 1rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
4144
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyMenuBarComponent, isStandalone: true, selector: "bizy-menu-bar", inputs: { id: "id", disabled: "disabled", selectedOption: "selectedOption" }, outputs: { selectedOptionChange: "selectedOptionChange" }, host: { properties: { "id": "id" } }, queries: [{ propertyName: "options", predicate: BizyMenuBarOptionComponent }], ngImport: i0, template: "<ng-content select=\"bizy-menu-bar-option\"></ng-content>", styles: [":host{font-size:1rem;display:flex;height:fit-content;width:fit-content;background-color:transparent;align-items:center;column-gap:0}:host ::ng-deep>bizy-menu-bar-option:first-child{--bizy-menu-bar-option-border-radius: 1rem 0 0 1rem}:host ::ng-deep>bizy-menu-bar-option:last-child{--bizy-menu-bar-option-border-radius: 0 1rem 1rem 0}:host ::ng-deep>bizy-menu-bar-option:not(:first-child):not(:last-child){--bizy-menu-bar-option-border-radius: 0}:host ::ng-deep>bizy-menu-bar-option:only-child{--bizy-menu-bar-option-border-radius: 1rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
4140
4145
  }
4141
4146
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyMenuBarComponent, decorators: [{
4142
4147
  type: Component,
4143
4148
  args: [{ selector: 'bizy-menu-bar', imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, host: {
4144
4149
  '[id]': 'id',
4145
- }, template: "<ng-content select=\"bizy-menu-bar-option\"></ng-content>", styles: [":host{font-size:1rem;display:flex;flex:1;height:fit-content;width:100%;background-color:transparent;align-items:center;column-gap:0}:host ::ng-deep>bizy-menu-bar-option:first-child{--bizy-menu-bar-option-border-radius: 1rem 0 0 1rem}:host ::ng-deep>bizy-menu-bar-option:last-child{--bizy-menu-bar-option-border-radius: 0 1rem 1rem 0}:host ::ng-deep>bizy-menu-bar-option:not(:first-child):not(:last-child){--bizy-menu-bar-option-border-radius: 0}:host ::ng-deep>bizy-menu-bar-option:only-child{--bizy-menu-bar-option-border-radius: 1rem}\n"] }]
4150
+ }, template: "<ng-content select=\"bizy-menu-bar-option\"></ng-content>", styles: [":host{font-size:1rem;display:flex;height:fit-content;width:fit-content;background-color:transparent;align-items:center;column-gap:0}:host ::ng-deep>bizy-menu-bar-option:first-child{--bizy-menu-bar-option-border-radius: 1rem 0 0 1rem}:host ::ng-deep>bizy-menu-bar-option:last-child{--bizy-menu-bar-option-border-radius: 0 1rem 1rem 0}:host ::ng-deep>bizy-menu-bar-option:not(:first-child):not(:last-child){--bizy-menu-bar-option-border-radius: 0}:host ::ng-deep>bizy-menu-bar-option:only-child{--bizy-menu-bar-option-border-radius: 1rem}\n"] }]
4146
4151
  }], propDecorators: { options: [{
4147
4152
  type: ContentChildren,
4148
4153
  args: [BizyMenuBarOptionComponent]
@@ -4287,14 +4292,17 @@ class BizyPieChartComponent {
4287
4292
  title: downloadTitle,
4288
4293
  onclick: () => {
4289
4294
  setTimeout(() => {
4290
- html2canvas(this.#chartContainer).then(canvas => {
4291
- var link = this.#renderer.createElement('a');
4292
- link.href = canvas.toDataURL('image/png');
4293
- link.download = downloadName;
4294
- this.#renderer.appendChild(this.#document.body, link);
4295
- link.click();
4296
- this.#renderer.removeChild(this.#document.body, link);
4297
- this.onDownload.emit();
4295
+ import('html2canvas').then(module => {
4296
+ const html2canvas = module.default;
4297
+ html2canvas(this.#chartContainer).then(canvas => {
4298
+ var link = this.#renderer.createElement('a');
4299
+ link.href = canvas.toDataURL('image/png');
4300
+ link.download = downloadName;
4301
+ this.#renderer.appendChild(this.#document.body, link);
4302
+ link.click();
4303
+ this.#renderer.removeChild(this.#document.body, link);
4304
+ this.onDownload.emit();
4305
+ });
4298
4306
  });
4299
4307
  }, 500);
4300
4308
  }