@bizy/core 21.0.0 → 21.2.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.
@@ -76,19 +76,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
76
76
  type: Output
77
77
  }] } });
78
78
 
79
- const COMPONENTS$y = [
79
+ const COMPONENTS$A = [
80
80
  BizyAccordionComponent,
81
81
  ];
82
82
  class BizyAccordionModule {
83
83
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyAccordionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
84
84
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.5", ngImport: i0, type: BizyAccordionModule, imports: [BizyAccordionComponent], exports: [BizyAccordionComponent] });
85
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyAccordionModule, imports: [COMPONENTS$y] });
85
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyAccordionModule, imports: [COMPONENTS$A] });
86
86
  }
87
87
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyAccordionModule, decorators: [{
88
88
  type: NgModule,
89
89
  args: [{
90
- imports: COMPONENTS$y,
91
- exports: COMPONENTS$y
90
+ imports: COMPONENTS$A,
91
+ exports: COMPONENTS$A
92
92
  }]
93
93
  }] });
94
94
 
@@ -7659,7 +7659,7 @@ var muteAnimation = {
7659
7659
  markers: markers
7660
7660
  };
7661
7661
 
7662
- const DEFAULT_DOWNLOAD$3 = {
7662
+ const DEFAULT_DOWNLOAD$5 = {
7663
7663
  show: true,
7664
7664
  name: 'Bizy'
7665
7665
  };
@@ -7706,9 +7706,9 @@ class BizyAudioPlayerComponent {
7706
7706
  if (!download) {
7707
7707
  return;
7708
7708
  }
7709
- this._showDownload = download.show ?? DEFAULT_DOWNLOAD$3.show;
7709
+ this._showDownload = download.show ?? DEFAULT_DOWNLOAD$5.show;
7710
7710
  this._downloadURL = download.url ?? null;
7711
- this._downloadFileName = download.name ?? DEFAULT_DOWNLOAD$3.name;
7711
+ this._downloadFileName = download.name ?? DEFAULT_DOWNLOAD$5.name;
7712
7712
  }
7713
7713
  ;
7714
7714
  set playbackRate(playbackRate) {
@@ -7769,9 +7769,9 @@ class BizyAudioPlayerComponent {
7769
7769
  _paused = true;
7770
7770
  _muted = false;
7771
7771
  _src = null;
7772
- _showDownload = DEFAULT_DOWNLOAD$3.show;
7772
+ _showDownload = DEFAULT_DOWNLOAD$5.show;
7773
7773
  _downloadURL = null;
7774
- _downloadFileName = DEFAULT_DOWNLOAD$3.name;
7774
+ _downloadFileName = DEFAULT_DOWNLOAD$5.name;
7775
7775
  _showPlaybackRate = DEFAULT_PLAYBACK_RATE.show;
7776
7776
  _playbackRate = DEFAULT_PLAYBACK_RATE.default;
7777
7777
  MIME_TYPE = MIME_TYPE;
@@ -8378,7 +8378,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
8378
8378
  type: Input
8379
8379
  }] } });
8380
8380
 
8381
- const COMPONENTS$x = [BizyAudioPlayerComponent];
8381
+ const COMPONENTS$z = [BizyAudioPlayerComponent];
8382
8382
  class BizyAudioPlayerModule {
8383
8383
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyAudioPlayerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
8384
8384
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.5", ngImport: i0, type: BizyAudioPlayerModule, imports: [BizyAudioPlayerComponent], exports: [BizyAudioPlayerComponent] });
@@ -8387,8 +8387,8 @@ class BizyAudioPlayerModule {
8387
8387
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyAudioPlayerModule, decorators: [{
8388
8388
  type: NgModule,
8389
8389
  args: [{
8390
- imports: COMPONENTS$x,
8391
- exports: COMPONENTS$x
8390
+ imports: COMPONENTS$z,
8391
+ exports: COMPONENTS$z
8392
8392
  }]
8393
8393
  }] });
8394
8394
 
@@ -8626,7 +8626,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
8626
8626
  type: Output
8627
8627
  }] } });
8628
8628
 
8629
- const COMPONENTS$w = [
8629
+ const COMPONENTS$y = [
8630
8630
  BizyAudioRecorderComponent,
8631
8631
  ];
8632
8632
  class BizyAudioRecorderModule {
@@ -8637,8 +8637,8 @@ class BizyAudioRecorderModule {
8637
8637
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyAudioRecorderModule, decorators: [{
8638
8638
  type: NgModule,
8639
8639
  args: [{
8640
- imports: COMPONENTS$w,
8641
- exports: COMPONENTS$w
8640
+ imports: COMPONENTS$y,
8641
+ exports: COMPONENTS$y
8642
8642
  }]
8643
8643
  }] });
8644
8644
 
@@ -10056,7 +10056,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
10056
10056
  args: ['dynamicComponentContainer', { read: ViewContainerRef }]
10057
10057
  }] } });
10058
10058
 
10059
- const COMPONENTS$v = [
10059
+ const COMPONENTS$x = [
10060
10060
  BizyPopupWrapperComponent,
10061
10061
  BizyFullScreenPopupWrapperComponent
10062
10062
  ];
@@ -10065,13 +10065,13 @@ class BizyPopupModule {
10065
10065
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.5", ngImport: i0, type: BizyPopupModule, imports: [BizyPopupWrapperComponent,
10066
10066
  BizyFullScreenPopupWrapperComponent], exports: [BizyPopupWrapperComponent,
10067
10067
  BizyFullScreenPopupWrapperComponent] });
10068
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyPopupModule, providers: [BizyPopupService], imports: [COMPONENTS$v] });
10068
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyPopupModule, providers: [BizyPopupService], imports: [COMPONENTS$x] });
10069
10069
  }
10070
10070
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyPopupModule, decorators: [{
10071
10071
  type: NgModule,
10072
10072
  args: [{
10073
- imports: COMPONENTS$v,
10074
- exports: COMPONENTS$v,
10073
+ imports: COMPONENTS$x,
10074
+ exports: COMPONENTS$x,
10075
10075
  providers: [BizyPopupService]
10076
10076
  }]
10077
10077
  }] });
@@ -10140,13 +10140,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
10140
10140
 
10141
10141
  const GRID_BOTTOM = 30;
10142
10142
  const Y_AXIS_OFFSET = 50;
10143
- const DEFAULT_CHART_SIZE$2 = '300px';
10144
- const DEFAULT_DOWNLOAD$2 = {
10143
+ const DEFAULT_CHART_SIZE$4 = '300px';
10144
+ const DEFAULT_DOWNLOAD$4 = {
10145
10145
  show: true,
10146
10146
  label: 'Descargar',
10147
10147
  name: 'Bizy'
10148
10148
  };
10149
- const DEFAULT_TOOLTIP$2 = {
10149
+ const DEFAULT_TOOLTIP$4 = {
10150
10150
  show: true
10151
10151
  };
10152
10152
  class BizyBarLineChartComponent {
@@ -10156,8 +10156,8 @@ class BizyBarLineChartComponent {
10156
10156
  #renderer = inject(Renderer2);
10157
10157
  #popup = inject(BizyPopupService);
10158
10158
  resizeRef = null;
10159
- tooltip = DEFAULT_TOOLTIP$2;
10160
- download = DEFAULT_DOWNLOAD$2;
10159
+ tooltip = DEFAULT_TOOLTIP$4;
10160
+ download = DEFAULT_DOWNLOAD$4;
10161
10161
  axisPointer = 'line';
10162
10162
  xAxis = null;
10163
10163
  onDownload = new EventEmitter();
@@ -10341,7 +10341,7 @@ class BizyBarLineChartComponent {
10341
10341
  }
10342
10342
  });
10343
10343
  const tooltip = {
10344
- show: this.tooltip?.show ?? DEFAULT_TOOLTIP$2.show,
10344
+ show: this.tooltip?.show ?? DEFAULT_TOOLTIP$4.show,
10345
10345
  trigger: 'axis',
10346
10346
  appendToBody: true,
10347
10347
  axisPointer: {
@@ -10377,9 +10377,9 @@ class BizyBarLineChartComponent {
10377
10377
  show: true,
10378
10378
  feature: {
10379
10379
  mySaveAsImage: {
10380
- show: this.download?.show ?? DEFAULT_DOWNLOAD$2.show,
10380
+ show: this.download?.show ?? DEFAULT_DOWNLOAD$4.show,
10381
10381
  icon: 'path://M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 242.7-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7 288 32zM64 352c-35.3 0-64 28.7-64 64l0 32c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-32c0-35.3-28.7-64-64-64l-101.5 0-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352 64 352zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z',
10382
- title: this.download?.label ?? DEFAULT_DOWNLOAD$2.label,
10382
+ title: this.download?.label ?? DEFAULT_DOWNLOAD$4.label,
10383
10383
  onclick: () => {
10384
10384
  this.#popup.open({
10385
10385
  disableCloseButton: true,
@@ -10387,7 +10387,7 @@ class BizyBarLineChartComponent {
10387
10387
  component: BizyBarLineChartPopupComponent,
10388
10388
  data: {
10389
10389
  download: {
10390
- name: this.download?.name ?? DEFAULT_DOWNLOAD$2.name,
10390
+ name: this.download?.name ?? DEFAULT_DOWNLOAD$4.name,
10391
10391
  },
10392
10392
  grid: {
10393
10393
  left: this.#gridLeft,
@@ -10457,8 +10457,8 @@ class BizyBarLineChartComponent {
10457
10457
  let elementHeight = this.#elementRef.nativeElement.offsetHeight;
10458
10458
  let minWidth = this.#getClosestCssVariable(this.#elementRef.nativeElement, '--bizy-bar-line-chart-width');
10459
10459
  let minHeight = this.#getClosestCssVariable(this.#elementRef.nativeElement, '--bizy-bar-line-chart-height');
10460
- const width = minWidth ? minWidth : elementWidth ? `${elementWidth}px` : DEFAULT_CHART_SIZE$2;
10461
- const height = minHeight ? minHeight : elementHeight ? `${elementHeight}px` : DEFAULT_CHART_SIZE$2;
10460
+ const width = minWidth ? minWidth : elementWidth ? `${elementWidth}px` : DEFAULT_CHART_SIZE$4;
10461
+ const height = minHeight ? minHeight : elementHeight ? `${elementHeight}px` : DEFAULT_CHART_SIZE$4;
10462
10462
  this.#chartContainer = this.#renderer.createElement('div');
10463
10463
  this.#renderer.setStyle(this.#chartContainer, 'width', width);
10464
10464
  this.#renderer.setStyle(this.#chartContainer, 'height', height);
@@ -10519,7 +10519,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
10519
10519
  type: Input
10520
10520
  }] } });
10521
10521
 
10522
- const COMPONENTS$u = [
10522
+ const COMPONENTS$w = [
10523
10523
  BizyBarLineChartComponent,
10524
10524
  BizyBarLineChartPopupComponent
10525
10525
  ];
@@ -10533,8 +10533,8 @@ class BizyBarLineChartModule {
10533
10533
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyBarLineChartModule, decorators: [{
10534
10534
  type: NgModule,
10535
10535
  args: [{
10536
- imports: COMPONENTS$u,
10537
- exports: COMPONENTS$u
10536
+ imports: COMPONENTS$w,
10537
+ exports: COMPONENTS$w
10538
10538
  }]
10539
10539
  }] });
10540
10540
 
@@ -10593,19 +10593,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
10593
10593
  type: Input
10594
10594
  }] } });
10595
10595
 
10596
- const COMPONENTS$t = [
10596
+ const COMPONENTS$v = [
10597
10597
  BizyBreadcrumbComponent,
10598
10598
  ];
10599
10599
  class BizyBreadcrumbModule {
10600
10600
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyBreadcrumbModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
10601
10601
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.5", ngImport: i0, type: BizyBreadcrumbModule, imports: [BizyBreadcrumbComponent], exports: [BizyBreadcrumbComponent] });
10602
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyBreadcrumbModule, imports: [COMPONENTS$t] });
10602
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyBreadcrumbModule, imports: [COMPONENTS$v] });
10603
10603
  }
10604
10604
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyBreadcrumbModule, decorators: [{
10605
10605
  type: NgModule,
10606
10606
  args: [{
10607
- imports: COMPONENTS$t,
10608
- exports: COMPONENTS$t
10607
+ imports: COMPONENTS$v,
10608
+ exports: COMPONENTS$v
10609
10609
  }]
10610
10610
  }] });
10611
10611
 
@@ -10642,19 +10642,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
10642
10642
  type: Output
10643
10643
  }] } });
10644
10644
 
10645
- const COMPONENTS$s = [
10645
+ const COMPONENTS$u = [
10646
10646
  BizyButtonComponent,
10647
10647
  ];
10648
10648
  class BizyButtonModule {
10649
10649
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
10650
10650
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.5", ngImport: i0, type: BizyButtonModule, imports: [BizyButtonComponent], exports: [BizyButtonComponent] });
10651
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyButtonModule, imports: [COMPONENTS$s] });
10651
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyButtonModule, imports: [COMPONENTS$u] });
10652
10652
  }
10653
10653
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyButtonModule, decorators: [{
10654
10654
  type: NgModule,
10655
10655
  args: [{
10656
- imports: COMPONENTS$s,
10657
- exports: COMPONENTS$s
10656
+ imports: COMPONENTS$u,
10657
+ exports: COMPONENTS$u
10658
10658
  }]
10659
10659
  }] });
10660
10660
 
@@ -10925,19 +10925,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
10925
10925
  type: Input
10926
10926
  }] } });
10927
10927
 
10928
- const COMPONENTS$r = [
10928
+ const COMPONENTS$t = [
10929
10929
  BizyCalendarComponent,
10930
10930
  ];
10931
10931
  class BizyCalendarModule {
10932
10932
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyCalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
10933
10933
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.5", ngImport: i0, type: BizyCalendarModule, imports: [BizyCalendarComponent], exports: [BizyCalendarComponent] });
10934
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyCalendarModule, imports: [COMPONENTS$r] });
10934
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyCalendarModule, imports: [COMPONENTS$t] });
10935
10935
  }
10936
10936
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyCalendarModule, decorators: [{
10937
10937
  type: NgModule,
10938
10938
  args: [{
10939
- imports: COMPONENTS$r,
10940
- exports: COMPONENTS$r
10939
+ imports: COMPONENTS$t,
10940
+ exports: COMPONENTS$t
10941
10941
  }]
10942
10942
  }] });
10943
10943
 
@@ -10973,19 +10973,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
10973
10973
  type: Output
10974
10974
  }] } });
10975
10975
 
10976
- const COMPONENTS$q = [
10976
+ const COMPONENTS$s = [
10977
10977
  BizyCardComponent,
10978
10978
  ];
10979
10979
  class BizyCardModule {
10980
10980
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
10981
10981
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.5", ngImport: i0, type: BizyCardModule, imports: [BizyCardComponent], exports: [BizyCardComponent] });
10982
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyCardModule, imports: [COMPONENTS$q] });
10982
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyCardModule, imports: [COMPONENTS$s] });
10983
10983
  }
10984
10984
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyCardModule, decorators: [{
10985
10985
  type: NgModule,
10986
10986
  args: [{
10987
- imports: COMPONENTS$q,
10988
- exports: COMPONENTS$q
10987
+ imports: COMPONENTS$s,
10988
+ exports: COMPONENTS$s
10989
10989
  }]
10990
10990
  }] });
10991
10991
 
@@ -11026,19 +11026,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
11026
11026
  type: Output
11027
11027
  }] } });
11028
11028
 
11029
- const COMPONENTS$p = [
11029
+ const COMPONENTS$r = [
11030
11030
  BizyCheckboxComponent,
11031
11031
  ];
11032
11032
  class BizyCheckboxModule {
11033
11033
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
11034
11034
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.5", ngImport: i0, type: BizyCheckboxModule, imports: [BizyCheckboxComponent], exports: [BizyCheckboxComponent] });
11035
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyCheckboxModule, imports: [COMPONENTS$p] });
11035
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyCheckboxModule, imports: [COMPONENTS$r] });
11036
11036
  }
11037
11037
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyCheckboxModule, decorators: [{
11038
11038
  type: NgModule,
11039
11039
  args: [{
11040
- imports: COMPONENTS$p,
11041
- exports: COMPONENTS$p
11040
+ imports: COMPONENTS$r,
11041
+ exports: COMPONENTS$r
11042
11042
  }]
11043
11043
  }] });
11044
11044
 
@@ -11053,7 +11053,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
11053
11053
  args: [{ selector: 'bizy-content', imports: [], template: "<ng-content></ng-content>", styles: [":host{flex:1;padding:var(--bizy-content-padding);width:var(--bizy-content-width);height:var(--bizy-content-height);overflow:auto;display:flex;flex-direction:var(--bizy-content-flex-direction);row-gap:var(--bizy-content-row-gap)}\n"] }]
11054
11054
  }] });
11055
11055
 
11056
- const COMPONENTS$o = [
11056
+ const COMPONENTS$q = [
11057
11057
  BizyContentComponent,
11058
11058
  ];
11059
11059
  class BizyContentModule {
@@ -11064,8 +11064,8 @@ class BizyContentModule {
11064
11064
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyContentModule, decorators: [{
11065
11065
  type: NgModule,
11066
11066
  args: [{
11067
- imports: COMPONENTS$o,
11068
- exports: COMPONENTS$o
11067
+ imports: COMPONENTS$q,
11068
+ exports: COMPONENTS$q
11069
11069
  }]
11070
11070
  }] });
11071
11071
 
@@ -11573,101 +11573,522 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
11573
11573
  type: Input
11574
11574
  }] } });
11575
11575
 
11576
- const COMPONENTS$n = [
11576
+ const COMPONENTS$p = [
11577
11577
  BizyDatePickerComponent,
11578
11578
  ];
11579
11579
  class BizyDatePickerModule {
11580
11580
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyDatePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
11581
11581
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.5", ngImport: i0, type: BizyDatePickerModule, imports: [BizyDatePickerComponent], exports: [BizyDatePickerComponent] });
11582
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyDatePickerModule, imports: [COMPONENTS$n] });
11582
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyDatePickerModule, imports: [COMPONENTS$p] });
11583
11583
  }
11584
11584
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyDatePickerModule, decorators: [{
11585
11585
  type: NgModule,
11586
11586
  args: [{
11587
- imports: COMPONENTS$n,
11588
- exports: COMPONENTS$n
11587
+ imports: COMPONENTS$p,
11588
+ exports: COMPONENTS$p
11589
11589
  }]
11590
11590
  }] });
11591
11591
 
11592
- const ES = {
11593
- ...es_ES,
11594
- strings: {
11595
- ...es_ES.strings,
11596
- noDuplicates: 'Archivo duplicado: \'%{fileName}\'',
11597
- browseFiles: 'buscar archivo',
11598
- dropPasteFiles: 'Soltar archivo aquí, pegar o %{browse}'
11592
+ class BizyDonutChartPopupComponent {
11593
+ #popup = inject(BizyPopupService);
11594
+ #renderer = inject(Renderer2);
11595
+ #elementRef = inject(ElementRef);
11596
+ #ref = inject(ChangeDetectorRef);
11597
+ #document = inject(DOCUMENT);
11598
+ #echarts = null;
11599
+ #chartContainer = null;
11600
+ ngOnInit() {
11601
+ const data = this.#popup.getData();
11602
+ if (!data || !data.option) {
11603
+ this.#popup.close();
11604
+ return;
11605
+ }
11606
+ this.#chartContainer = this.#renderer.createElement('div');
11607
+ this.#renderer.setStyle(this.#chartContainer, 'width', '100%');
11608
+ this.#renderer.setStyle(this.#chartContainer, 'height', '100%');
11609
+ this.#renderer.appendChild(this.#elementRef.nativeElement, this.#chartContainer);
11610
+ this.#ref.detectChanges();
11611
+ import('echarts').then(echarts => {
11612
+ this.#echarts = echarts.init(this.#chartContainer);
11613
+ Promise.resolve().then(() => {
11614
+ this.#echarts.setOption({
11615
+ ...data.option,
11616
+ series: [{
11617
+ ...data.option.series[0],
11618
+ minAngle: 1,
11619
+ label: {
11620
+ ...data.option.series[0].label,
11621
+ width: 'none',
11622
+ overflow: 'break',
11623
+ },
11624
+ labelLine: {
11625
+ show: data.option.series[0].labelLine?.show,
11626
+ length: 50,
11627
+ length2: 50
11628
+ },
11629
+ labelLayout() {
11630
+ return {
11631
+ moverOverlap: 'shiftY',
11632
+ hideOverlap: false
11633
+ };
11634
+ },
11635
+ }],
11636
+ toolbox: {
11637
+ show: true,
11638
+ feature: {
11639
+ mySaveAsImage: {
11640
+ show: data.download.show,
11641
+ icon: 'path://M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 242.7-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7 288 32zM64 352c-35.3 0-64 28.7-64 64l0 32c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-32c0-35.3-28.7-64-64-64l-101.5 0-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352 64 352zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z',
11642
+ title: data.download.label,
11643
+ onclick: () => {
11644
+ setTimeout(() => {
11645
+ import('html2canvas').then(module => {
11646
+ const html2canvas = module.default;
11647
+ html2canvas(this.#chartContainer).then(canvas => {
11648
+ var link = this.#renderer.createElement('a');
11649
+ link.href = canvas.toDataURL('image/png');
11650
+ link.download = `${data.download.name}.png`;
11651
+ this.#renderer.appendChild(this.#document.body, link);
11652
+ link.click();
11653
+ this.#renderer.removeChild(this.#document.body, link);
11654
+ });
11655
+ });
11656
+ }, 500);
11657
+ }
11658
+ }
11659
+ }
11660
+ }
11661
+ });
11662
+ });
11663
+ }).catch(() => {
11664
+ this.#popup.close();
11665
+ return;
11666
+ });
11599
11667
  }
11668
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyDonutChartPopupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
11669
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.5", type: BizyDonutChartPopupComponent, isStandalone: true, selector: "bizy-donut-chart-popup", ngImport: i0, template: '', isInline: true, styles: [":host{display:inline-block;height:min(60rem,90dvh);width:min(60rem,85dvw)}\n"] });
11670
+ }
11671
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyDonutChartPopupComponent, decorators: [{
11672
+ type: Component,
11673
+ args: [{ selector: 'bizy-donut-chart-popup', template: '', styles: [":host{display:inline-block;height:min(60rem,90dvh);width:min(60rem,85dvw)}\n"] }]
11674
+ }] });
11675
+
11676
+ const EMPTY_CHART$1 = [0];
11677
+ const DEFAULT_CHART_SIZE$3 = '300px';
11678
+ const DEFAULT_DOWNLOAD$3 = {
11679
+ show: true,
11680
+ label: 'Descargar',
11681
+ name: 'Bizy'
11600
11682
  };
11601
- const EN = {
11602
- ...en_US,
11603
- strings: {
11604
- ...en_US.strings,
11605
- noDuplicates: 'Duplicated file: \'%{fileName}\'',
11606
- browseFiles: 'browse file',
11607
- dropPasteFiles: 'Drop a file here or %{browse}'
11683
+ const DEFAULT_EXPAND$2 = {
11684
+ show: true,
11685
+ label: 'Expandir'
11686
+ };
11687
+ const DEFAULT_TOOLTIP$3 = {
11688
+ show: true
11689
+ };
11690
+ const DEFAULT_LEGEND$1 = {
11691
+ show: true,
11692
+ orient: 'vertical',
11693
+ position: {
11694
+ x: 'auto',
11695
+ y: 'auto'
11608
11696
  }
11609
11697
  };
11610
- class BizyFileUploaderService {
11698
+ const DEFAULT_LABEL$1 = {
11699
+ show: false,
11700
+ overflow: 'break',
11701
+ line: true
11702
+ };
11703
+ class BizyDonutChartComponent {
11704
+ #elementRef = inject(ElementRef);
11705
+ #document = inject(DOCUMENT);
11706
+ #ref = inject(ChangeDetectorRef);
11611
11707
  #renderer = inject(Renderer2);
11612
- #document = inject(DOCUMENT$1);
11613
- #fileLoaded = new Subject();
11614
- #fileRemoved = new Subject();
11615
- #upload = new Subject();
11616
- #uploadSuccess = new Subject();
11617
- #error = new Subject();
11618
- #cancelAll = new Subject();
11619
- #complete = new Subject();
11620
- #disableLocalFiles = false;
11621
- #uppy = null;
11622
- get fileLoaded$() {
11623
- return this.#fileLoaded.asObservable();
11624
- }
11625
- get fileRemoved$() {
11626
- return this.#fileRemoved.asObservable();
11627
- }
11628
- get upload$() {
11629
- return this.#upload.asObservable();
11630
- }
11631
- get uploadSuccess$() {
11632
- return this.#uploadSuccess.asObservable();
11633
- }
11634
- get error$() {
11635
- return this.#error.asObservable();
11636
- }
11637
- get cancelAll$() {
11638
- return this.#cancelAll.asObservable();
11708
+ #popup = inject(BizyPopupService);
11709
+ resizeRef = null;
11710
+ centerLabel = null;
11711
+ tooltip = DEFAULT_TOOLTIP$3;
11712
+ legend = DEFAULT_LEGEND$1;
11713
+ download = DEFAULT_DOWNLOAD$3;
11714
+ expand = DEFAULT_EXPAND$2;
11715
+ label = DEFAULT_LABEL$1;
11716
+ onSelect = new EventEmitter();
11717
+ onDownload = new EventEmitter();
11718
+ #echarts = null;
11719
+ #resizeObserver = null;
11720
+ #afterViewInitSubscription = new Subscription();
11721
+ #resizeSubscription = new Subscription();
11722
+ #chartContainer = null;
11723
+ #afterViewInit = new BehaviorSubject(false);
11724
+ #resize$ = new Subject();
11725
+ #data = EMPTY_CHART$1;
11726
+ ngAfterViewInit() {
11727
+ this.#afterViewInit.next(true);
11639
11728
  }
11640
- get complete$() {
11641
- return this.#complete.asObservable();
11729
+ getNativeElement = () => this.#elementRef?.nativeElement;
11730
+ set data(data) {
11731
+ if (!data) {
11732
+ return;
11733
+ }
11734
+ if (data.length > 0) {
11735
+ this.#setChartData(data);
11736
+ }
11737
+ else {
11738
+ this.#deleteChartContainer();
11739
+ this.#setChartData(EMPTY_CHART$1);
11740
+ }
11642
11741
  }
11643
- createFileUploader(data) {
11644
- const locale = data.language === 'es' ? ES : EN;
11645
- this.#disableLocalFiles = data.disableLocalFiles;
11646
- this.#uppy = new Uppy({
11647
- locale,
11648
- infoTimeout: 2500,
11649
- restrictions: {
11650
- maxFileSize: data.maxFileSize,
11651
- minFileSize: data.minFileSize,
11652
- maxTotalFileSize: data.maxTotalFileSize,
11653
- maxNumberOfFiles: data.maxNumberOfFiles,
11654
- minNumberOfFiles: data.minNumberOfFiles,
11655
- allowedFileTypes: data.allowedFileTypes
11656
- }
11657
- })
11658
- .use(Dashboard, {
11659
- inline: true,
11660
- singleFileFullScreen: false,
11661
- target: `#${data.templateId}`,
11662
- width: data.dragDropAreaWidth,
11663
- height: data.dragDropAreaHeight,
11664
- hideCancelButton: data.hideCancelButton,
11665
- hideUploadButton: data.hideUploadButton,
11666
- hidePauseResumeButton: data.hidePauseResumeButton,
11667
- disableLocalFiles: data.disableLocalFiles
11668
- })
11669
- .use(XHRUpload, {
11670
- endpoint: '',
11742
+ async #setChartData(data) {
11743
+ this.#afterViewInitSubscription.add(this.#afterViewInit.pipe(filter$1(value => value === true), take(1)).subscribe(() => {
11744
+ /**
11745
+ * setTimeout fix angular render problem
11746
+ */
11747
+ setTimeout(() => {
11748
+ this.#createChartContainer();
11749
+ if (!this.#chartContainer) {
11750
+ return;
11751
+ }
11752
+ if (data && data.length > 0 && data[0] !== 0) {
11753
+ this.#data = [];
11754
+ data.forEach(_d => {
11755
+ if (!_d.value) {
11756
+ _d.value = 0;
11757
+ }
11758
+ if (!_d.name) {
11759
+ _d.name = '---';
11760
+ }
11761
+ const itemStyle = _d.color ? { color: _d.color } : {};
11762
+ this.#data.push({
11763
+ name: _d.name,
11764
+ value: _d.value,
11765
+ itemStyle
11766
+ });
11767
+ });
11768
+ }
11769
+ else {
11770
+ this.#data = EMPTY_CHART$1;
11771
+ }
11772
+ const itemStyle = {
11773
+ borderRadius: 10,
11774
+ borderColor: '#fff',
11775
+ borderWidth: 2
11776
+ };
11777
+ const label = {
11778
+ show: this.label?.show ?? DEFAULT_LABEL$1.show,
11779
+ overflow: this.label?.overflow ?? DEFAULT_LABEL$1.overflow,
11780
+ position: 'center',
11781
+ formatter: this.label?.formatter
11782
+ };
11783
+ const labelLine = {
11784
+ show: this.label?.line ?? DEFAULT_LABEL$1.line
11785
+ };
11786
+ const series = [{
11787
+ type: 'pie',
11788
+ radius: ['50%', '70%'],
11789
+ center: ['50%', '50%'],
11790
+ data: this.#data,
11791
+ itemStyle,
11792
+ label,
11793
+ labelLine
11794
+ }];
11795
+ const textColor = getComputedStyle(this.#document.documentElement).getPropertyValue('--bizy-donut-chart-tooltip-color');
11796
+ const textBackgroundColor = getComputedStyle(this.#document.documentElement).getPropertyValue('--bizy-donut-chart-tooltip-background-color');
11797
+ const borderColor = getComputedStyle(this.#document.documentElement).getPropertyValue('--bizy-donut-chart-tooltip-border-color');
11798
+ const toolbox = {
11799
+ show: true,
11800
+ feature: {
11801
+ mySaveAsImage: {
11802
+ show: this.download.show ?? DEFAULT_DOWNLOAD$3.show,
11803
+ icon: 'path://M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 242.7-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7 288 32zM64 352c-35.3 0-64 28.7-64 64l0 32c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-32c0-35.3-28.7-64-64-64l-101.5 0-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352 64 352zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z',
11804
+ title: this.download.label ?? DEFAULT_DOWNLOAD$3.label,
11805
+ onclick: () => {
11806
+ setTimeout(() => {
11807
+ import('html2canvas').then(module => {
11808
+ const html2canvas = module.default;
11809
+ html2canvas(this.#chartContainer).then(canvas => {
11810
+ var link = this.#renderer.createElement('a');
11811
+ link.href = canvas.toDataURL('image/png');
11812
+ link.download = `${this.download.name ?? DEFAULT_DOWNLOAD$3.name}.png`;
11813
+ this.#renderer.appendChild(this.#document.body, link);
11814
+ link.click();
11815
+ this.#renderer.removeChild(this.#document.body, link);
11816
+ this.onDownload.emit();
11817
+ });
11818
+ });
11819
+ }, 500);
11820
+ }
11821
+ },
11822
+ myExpandChart: {
11823
+ show: this.expand.show ?? DEFAULT_EXPAND$2.show,
11824
+ icon: 'path://M264 96L120 96C106.7 96 96 106.7 96 120L96 264C96 273.7 101.8 282.5 110.8 286.2C119.8 289.9 130.1 287.8 137 281L177 241L256 320L177 399L137 359C130.1 352.1 119.8 350.1 110.8 353.8C101.8 357.5 96 366.3 96 376L96 520C96 533.3 106.7 544 120 544L264 544C273.7 544 282.5 538.2 286.2 529.2C289.9 520.2 287.9 509.9 281 503L241 463L320 384L399 463L359 503C352.1 509.9 350.1 520.2 353.8 529.2C357.5 538.2 366.3 544 376 544L520 544C533.3 544 544 533.3 544 520L544 376C544 366.3 538.2 357.5 529.2 353.8C520.2 350.1 509.9 352.1 503 359L463 399L384 320L463 241L503 281C509.9 287.9 520.2 289.9 529.2 286.2C538.2 282.5 544 273.7 544 264L544 120C544 106.7 533.3 96 520 96L376 96C366.3 96 357.5 101.8 353.8 110.8C350.1 119.8 352.2 130.1 359 137L399 177L320 256L241 177L281 137C287.9 130.1 289.9 119.8 286.2 110.8C282.5 101.8 273.7 96 264 96z',
11825
+ title: this.expand.label ?? DEFAULT_EXPAND$2.label,
11826
+ onclick: () => {
11827
+ this.#popup.open({
11828
+ component: BizyDonutChartPopupComponent,
11829
+ data: {
11830
+ download: {
11831
+ show: this.download?.show ?? DEFAULT_DOWNLOAD$3.show,
11832
+ label: this.download?.label ?? DEFAULT_DOWNLOAD$3.label,
11833
+ name: this.download?.name ?? DEFAULT_DOWNLOAD$3.name,
11834
+ },
11835
+ option: this.#echarts.getOption()
11836
+ }
11837
+ });
11838
+ }
11839
+ }
11840
+ },
11841
+ emphasis: {
11842
+ iconStyle: {
11843
+ color: textColor,
11844
+ borderColor,
11845
+ borderWidth: 1,
11846
+ textBackgroundColor,
11847
+ textPadding: 5,
11848
+ }
11849
+ }
11850
+ };
11851
+ const tooltip = {
11852
+ show: this.tooltip?.show ?? DEFAULT_TOOLTIP$3.show,
11853
+ trigger: 'item',
11854
+ appendToBody: true,
11855
+ formatter: this.tooltip?.formatter
11856
+ };
11857
+ let legend = {
11858
+ show: this.legend?.show ?? DEFAULT_LEGEND$1.show,
11859
+ orient: this.legend?.orient ?? DEFAULT_LEGEND$1.orient,
11860
+ left: this.legend?.position ? this.legend?.position.x : DEFAULT_LEGEND$1.position.x,
11861
+ top: this.legend?.position ? this.legend?.position.y : DEFAULT_LEGEND$1.position.y,
11862
+ };
11863
+ let graphic;
11864
+ if (this.centerLabel) {
11865
+ let centerLabelColor = this.#getClosestCssVariable(this.#elementRef.nativeElement, '--bizy-donut-chart-center-label-color');
11866
+ let { width, height } = this.#chartContainer.getBoundingClientRect();
11867
+ let base = Math.min(width, height);
11868
+ let fontSize = base / 6;
11869
+ graphic = {
11870
+ type: 'text',
11871
+ left: 'center',
11872
+ top: 'center',
11873
+ style: {
11874
+ text: this.centerLabel,
11875
+ fill: centerLabelColor,
11876
+ textAlign: 'center',
11877
+ fontSize,
11878
+ fontWeight: 'bold'
11879
+ }
11880
+ };
11881
+ }
11882
+ const option = {
11883
+ tooltip,
11884
+ toolbox,
11885
+ legend,
11886
+ series,
11887
+ graphic
11888
+ };
11889
+ import('echarts').then(echarts => {
11890
+ this.#echarts = echarts.init(this.#chartContainer);
11891
+ Promise.resolve().then(() => {
11892
+ this.#echarts.setOption(option);
11893
+ this.#echarts.on('click', params => {
11894
+ this.onSelect.emit(params.name);
11895
+ });
11896
+ this.#resizeSubscription.unsubscribe();
11897
+ this.#resizeObserver = new ResizeObserver(() => this.#resize$.next());
11898
+ const resizeRef = this.resizeRef ? this.resizeRef : this.#renderer.parentNode(this.#elementRef.nativeElement) ? this.#renderer.parentNode(this.#elementRef.nativeElement) : this.#elementRef.nativeElement;
11899
+ this.#resizeObserver.observe(resizeRef);
11900
+ this.#resizeSubscription = new Subscription();
11901
+ this.#resizeSubscription.add(this.#resize$.pipe(skip(1), auditTime(300), throttleTime(500)).subscribe(() => {
11902
+ this.#deleteChartContainer();
11903
+ this.#createChartContainer();
11904
+ if (!this.#chartContainer) {
11905
+ return;
11906
+ }
11907
+ this.#echarts = echarts.init(this.#chartContainer);
11908
+ Promise.resolve().then(() => {
11909
+ this.#echarts.setOption({ ...option, series: option.series.map(_serie => { return { ..._serie, data: this.#data }; }) });
11910
+ this.#echarts.on('click', params => {
11911
+ this.onSelect.emit(params.name);
11912
+ });
11913
+ });
11914
+ }));
11915
+ });
11916
+ });
11917
+ });
11918
+ }));
11919
+ }
11920
+ #createChartContainer = () => {
11921
+ if (this.#chartContainer || !this.#elementRef || !this.#elementRef.nativeElement) {
11922
+ return;
11923
+ }
11924
+ let elementWidth = this.#elementRef.nativeElement.offsetWidth;
11925
+ let elementHeight = this.#elementRef.nativeElement.offsetHeight;
11926
+ let minWidth = this.#getClosestCssVariable(this.#elementRef.nativeElement, '--bizy-donut-chart-width');
11927
+ let minHeight = this.#getClosestCssVariable(this.#elementRef.nativeElement, '--bizy-donut-chart-height');
11928
+ const width = minWidth ? minWidth : elementWidth ? `${elementWidth * 0.99}px` : DEFAULT_CHART_SIZE$3;
11929
+ const height = minHeight ? minHeight : elementHeight ? `${elementHeight}px` : DEFAULT_CHART_SIZE$3;
11930
+ this.#chartContainer = this.#renderer.createElement('div');
11931
+ this.#renderer.setStyle(this.#chartContainer, 'width', width);
11932
+ this.#renderer.setStyle(this.#chartContainer, 'height', height);
11933
+ this.#renderer.appendChild(this.#elementRef.nativeElement, this.#chartContainer);
11934
+ this.#ref.detectChanges();
11935
+ };
11936
+ #deleteChartContainer = () => {
11937
+ if (!this.#chartContainer || !this.#elementRef || !this.#elementRef.nativeElement) {
11938
+ return;
11939
+ }
11940
+ this.#echarts.clear();
11941
+ this.#renderer.removeChild(this.#elementRef.nativeElement, this.#chartContainer);
11942
+ this.#chartContainer = null;
11943
+ this.#ref.detectChanges();
11944
+ };
11945
+ #getClosestCssVariable = (element, cssVariable) => {
11946
+ while (element) {
11947
+ const value = getComputedStyle(element).getPropertyValue(cssVariable).trim();
11948
+ if (value) {
11949
+ return value;
11950
+ }
11951
+ element = element.parentElement;
11952
+ }
11953
+ const rootValue = getComputedStyle(document.documentElement).getPropertyValue(cssVariable).trim();
11954
+ return rootValue || null;
11955
+ };
11956
+ ngOnDestroy() {
11957
+ this.#afterViewInitSubscription.unsubscribe();
11958
+ this.#resizeSubscription.unsubscribe();
11959
+ if (this.#resizeObserver) {
11960
+ this.#resizeObserver.disconnect();
11961
+ }
11962
+ if (this.#echarts) {
11963
+ this.#echarts.clear();
11964
+ }
11965
+ }
11966
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyDonutChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
11967
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.5", type: BizyDonutChartComponent, isStandalone: true, selector: "bizy-donut-chart", inputs: { resizeRef: "resizeRef", centerLabel: "centerLabel", tooltip: "tooltip", legend: "legend", download: "download", expand: "expand", label: "label", data: "data" }, outputs: { onSelect: "onSelect", onDownload: "onDownload" }, ngImport: i0, template: '', isInline: true, styles: [":host{display:flex;justify-content:center}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
11968
+ }
11969
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyDonutChartComponent, decorators: [{
11970
+ type: Component,
11971
+ args: [{ selector: 'bizy-donut-chart', template: '', changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:flex;justify-content:center}\n"] }]
11972
+ }], propDecorators: { resizeRef: [{
11973
+ type: Input
11974
+ }], centerLabel: [{
11975
+ type: Input
11976
+ }], tooltip: [{
11977
+ type: Input
11978
+ }], legend: [{
11979
+ type: Input
11980
+ }], download: [{
11981
+ type: Input
11982
+ }], expand: [{
11983
+ type: Input
11984
+ }], label: [{
11985
+ type: Input
11986
+ }], onSelect: [{
11987
+ type: Output
11988
+ }], onDownload: [{
11989
+ type: Output
11990
+ }], data: [{
11991
+ type: Input
11992
+ }] } });
11993
+
11994
+ const COMPONENTS$o = [
11995
+ BizyDonutChartComponent,
11996
+ BizyDonutChartPopupComponent
11997
+ ];
11998
+ class BizyDonutChartModule {
11999
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyDonutChartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
12000
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.5", ngImport: i0, type: BizyDonutChartModule, imports: [BizyDonutChartComponent,
12001
+ BizyDonutChartPopupComponent], exports: [BizyDonutChartComponent,
12002
+ BizyDonutChartPopupComponent] });
12003
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyDonutChartModule });
12004
+ }
12005
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyDonutChartModule, decorators: [{
12006
+ type: NgModule,
12007
+ args: [{
12008
+ imports: COMPONENTS$o,
12009
+ exports: COMPONENTS$o,
12010
+ }]
12011
+ }] });
12012
+
12013
+ const ES = {
12014
+ ...es_ES,
12015
+ strings: {
12016
+ ...es_ES.strings,
12017
+ noDuplicates: 'Archivo duplicado: \'%{fileName}\'',
12018
+ browseFiles: 'buscar archivo',
12019
+ dropPasteFiles: 'Soltar archivo aquí, pegar o %{browse}'
12020
+ }
12021
+ };
12022
+ const EN = {
12023
+ ...en_US,
12024
+ strings: {
12025
+ ...en_US.strings,
12026
+ noDuplicates: 'Duplicated file: \'%{fileName}\'',
12027
+ browseFiles: 'browse file',
12028
+ dropPasteFiles: 'Drop a file here or %{browse}'
12029
+ }
12030
+ };
12031
+ class BizyFileUploaderService {
12032
+ #renderer = inject(Renderer2);
12033
+ #document = inject(DOCUMENT$1);
12034
+ #fileLoaded = new Subject();
12035
+ #fileRemoved = new Subject();
12036
+ #upload = new Subject();
12037
+ #uploadSuccess = new Subject();
12038
+ #error = new Subject();
12039
+ #cancelAll = new Subject();
12040
+ #complete = new Subject();
12041
+ #disableLocalFiles = false;
12042
+ #uppy = null;
12043
+ get fileLoaded$() {
12044
+ return this.#fileLoaded.asObservable();
12045
+ }
12046
+ get fileRemoved$() {
12047
+ return this.#fileRemoved.asObservable();
12048
+ }
12049
+ get upload$() {
12050
+ return this.#upload.asObservable();
12051
+ }
12052
+ get uploadSuccess$() {
12053
+ return this.#uploadSuccess.asObservable();
12054
+ }
12055
+ get error$() {
12056
+ return this.#error.asObservable();
12057
+ }
12058
+ get cancelAll$() {
12059
+ return this.#cancelAll.asObservable();
12060
+ }
12061
+ get complete$() {
12062
+ return this.#complete.asObservable();
12063
+ }
12064
+ createFileUploader(data) {
12065
+ const locale = data.language === 'es' ? ES : EN;
12066
+ this.#disableLocalFiles = data.disableLocalFiles;
12067
+ this.#uppy = new Uppy({
12068
+ locale,
12069
+ infoTimeout: 2500,
12070
+ restrictions: {
12071
+ maxFileSize: data.maxFileSize,
12072
+ minFileSize: data.minFileSize,
12073
+ maxTotalFileSize: data.maxTotalFileSize,
12074
+ maxNumberOfFiles: data.maxNumberOfFiles,
12075
+ minNumberOfFiles: data.minNumberOfFiles,
12076
+ allowedFileTypes: data.allowedFileTypes
12077
+ }
12078
+ })
12079
+ .use(Dashboard, {
12080
+ inline: true,
12081
+ singleFileFullScreen: false,
12082
+ target: `#${data.templateId}`,
12083
+ width: data.dragDropAreaWidth,
12084
+ height: data.dragDropAreaHeight,
12085
+ hideCancelButton: data.hideCancelButton,
12086
+ hideUploadButton: data.hideUploadButton,
12087
+ hidePauseResumeButton: data.hidePauseResumeButton,
12088
+ disableLocalFiles: data.disableLocalFiles
12089
+ })
12090
+ .use(XHRUpload, {
12091
+ endpoint: '',
11671
12092
  headers: data.headers,
11672
12093
  getResponseData: (responseText, response) => {
11673
12094
  return {
@@ -11927,7 +12348,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
11927
12348
  type: Output
11928
12349
  }] } });
11929
12350
 
11930
- const COMPONENTS$m = [
12351
+ const COMPONENTS$n = [
11931
12352
  BizyFileUploaderComponent,
11932
12353
  ];
11933
12354
  class BizyFileUploaderModule {
@@ -11938,8 +12359,8 @@ class BizyFileUploaderModule {
11938
12359
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyFileUploaderModule, decorators: [{
11939
12360
  type: NgModule,
11940
12361
  args: [{
11941
- imports: COMPONENTS$m,
11942
- exports: COMPONENTS$m,
12362
+ imports: COMPONENTS$n,
12363
+ exports: COMPONENTS$n,
11943
12364
  providers: [BizyFileUploaderService]
11944
12365
  }]
11945
12366
  }] });
@@ -12545,7 +12966,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
12545
12966
  }]
12546
12967
  }] });
12547
12968
 
12548
- const COMPONENTS$l = [
12969
+ const COMPONENTS$m = [
12549
12970
  BizyFilterComponent,
12550
12971
  BizyFilterSectionComponent,
12551
12972
  BizyFilterContentComponent,
@@ -12584,8 +13005,8 @@ class BizyFilterModule {
12584
13005
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyFilterModule, decorators: [{
12585
13006
  type: NgModule,
12586
13007
  args: [{
12587
- imports: COMPONENTS$l.concat(PIPES$1),
12588
- exports: COMPONENTS$l.concat(PIPES$1),
13008
+ imports: COMPONENTS$m.concat(PIPES$1),
13009
+ exports: COMPONENTS$m.concat(PIPES$1),
12589
13010
  providers: PIPES$1
12590
13011
  }]
12591
13012
  }] });
@@ -12712,121 +13133,518 @@ class BizySelectComponent {
12712
13133
  this.bizyInput.setFocus(true);
12713
13134
  }
12714
13135
  this.#ref.detectChanges();
12715
- }
12716
- close = (event, select) => {
12717
- if (select && event && event.target && event.target === select.bizyInputWrapper.nativeElement) {
13136
+ }
13137
+ close = (event, select) => {
13138
+ if (select && event && event.target && event.target === select.bizyInputWrapper.nativeElement) {
13139
+ return;
13140
+ }
13141
+ this.opened = false;
13142
+ this.openedChange.emit(this.opened);
13143
+ this.onOpen.emit(this.opened);
13144
+ this.#ref.detectChanges();
13145
+ };
13146
+ setTouched(touched) {
13147
+ if (this.bizyInput) {
13148
+ this.bizyInput.setTouched(touched);
13149
+ this.#ref.detectChanges();
13150
+ }
13151
+ }
13152
+ getNativeElement = () => this.#elementRef?.nativeElement;
13153
+ ngOnDestroy() {
13154
+ this.#subscription.unsubscribe();
13155
+ this.#contentChildrenSubscription.unsubscribe();
13156
+ }
13157
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizySelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
13158
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.5", type: BizySelectComponent, isStandalone: true, selector: "bizy-select", inputs: { id: "id", disabled: "disabled", readonly: "readonly", placeholder: "placeholder", customClass: "customClass", opened: "opened" }, outputs: { openedChange: "openedChange", onSelect: "onSelect", onOpen: "onOpen" }, queries: [{ propertyName: "options", predicate: BizySelectOptionComponent }], viewQueries: [{ propertyName: "templatePortalContent", first: true, predicate: ["templatePortalContent"], descendants: true }, { propertyName: "bizyInput", first: true, predicate: ["bizyInput"], descendants: true }], ngImport: i0, template: "<bizy-input\n #bizyInput\n [readonly]=\"true\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [placeholder]=\"placeholder\"\n [value]=\"_optionValue\"\n [ngClass]=\"{'bizy-select--readonly': readonly}\"\n (onSelect)=\"_onOpen($event); bizyInput?.setTouched(true)\"\n (onEnter)=\"_onOpen($event); bizyInput?.setTouched(true)\"\n class=\"bizy-select {{customClass}}\"\n cdkOverlayOrigin\n #bizySelectTrigger=\"cdkOverlayOrigin\">\n\n @if (!readonly) {\n <svg\n slot=\"suffix\"\n id=\"bizy-select-arrow\"\n class=\"bizy-select__arrow\"\n [ngClass]=\"{'bizy-select__arrow--opened': opened}\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 320 512\">\n <path d=\"M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z\"/>\n </svg>\n }\n\n <ng-container slot=\"header\">\n <ng-content select=\"[slot=header]\"></ng-content>\n </ng-container>\n\n <ng-container slot=\"prefix\">\n <ng-content select=\"[slot=prefix]\"></ng-content>\n </ng-container>\n\n</bizy-input>\n\n@if (touched) {\n <span class=\"bizy-select__errors\">\n <ng-content select=\"[slot=error]\"></ng-content>\n </span>\n}\n\n<ng-template #templatePortalContent>\n <ng-content select=\"bizy-select-option\"></ng-content>\n</ng-template>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayMinWidth]=\"bizyInput.getWidth()\"\n [cdkConnectedOverlayOrigin]=\"bizySelectTrigger\"\n (overlayOutsideClick)=\"close($event, bizyInput)\"\n [cdkConnectedOverlayOpen]=\"opened\">\n\n <span class=\"bizy-select__options\">\n\n <span class=\"bizy-select__options__search\">\n <ng-content select=\"bizy-input\"></ng-content>\n </span>\n\n <ng-template [cdkPortalOutlet]=\"templatePortal\"></ng-template>\n\n </span>\n\n</ng-template>\n", styles: [":host{font-size:1rem;width:var(--bizy-select-width);min-width:var(--bizy-select-min-width);max-width:var(--bizy-select-max-width);display:flex;flex-direction:column;row-gap:.3rem;--bizy-input-focus-color: transparent}:host:has(>.bizy-select__errors:not(:empty)) ::ng-deep .bizy-input__bottom-line{background-color:var(--bizy-input-invalid-color)!important;visibility:visible!important}:host:has(>.bizy-select__errors:not(:empty)) ::ng-deep .bizy-input__content__input{color:var(--bizy-input-invalid-color)!important}.bizy-select{--bizy-input-cursor: pointer;--bizy-input-background-color: var(--bizy-select-background-color);--bizy-input-color: var(--bizy-select-color)}.bizy-select--readonly{--bizy-input-cursor: default}.bizy-select__arrow{height:var(--bizy-select-arrow-height);pointer-events:none;display:block;transition:transform .2s ease;fill:var(--bizy-select-color)}.bizy-select__arrow--opened{transform:rotate(180deg)}.bizy-select__options{background-color:var(--bizy-select-background-color);display:flex;min-width:fit-content;width:100%;flex-direction:column;box-shadow:0 7px 14px #32325d1a,0 3px 6px #00000014;max-height:var(--bizy-select-height);overflow-y:auto;overflow-x:hidden;position:relative}.bizy-select__options::-webkit-scrollbar{width:.5rem;height:.5rem}.bizy-select__options::-webkit-scrollbar-thumb{border-radius:1rem;background-color:var(--bizy-select-scroll-bar-color)}.bizy-select__options::-webkit-scrollbar-thumb:hover{background-color:var(--bizy-select-scroll-bar-hover-color)}.bizy-select__options::-webkit-scrollbar-button{height:1rem}.bizy-select__options__search{position:sticky;z-index:1;top:0}::ng-deep .bizy-select__options__search{--bizy-input-width: auto;--bizy-input-background-color: #fff;--bizy-input-min-width: var(--bizy-select-min-width);--bizy-input-max-width: auto;margin-bottom:.3rem}.bizy-select__errors:empty{display:none!important}::ng-deep .bizy-select__errors *{color:var(--bizy-input-invalid-color)!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: BizyInputComponent, selector: "bizy-input", inputs: ["id", "name", "type", "customClass", "placeholder", "debounceTime", "rows", "disabled", "readonly", "autofocus", "value"], outputs: ["valueChange", "onChange", "onEnter", "onBackspace", "onSelect", "onBlur", "onFocus"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i2$2.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation", "cdkConnectedOverlayUsePopover", "cdkConnectedOverlayMatchWidth", "cdkConnectedOverlay"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: i2$2.CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i3.ɵɵCdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
13159
+ }
13160
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizySelectComponent, decorators: [{
13161
+ type: Component,
13162
+ args: [{ selector: 'bizy-select', imports: [CommonModule, BizyInputComponent, OverlayModule, PortalModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<bizy-input\n #bizyInput\n [readonly]=\"true\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [placeholder]=\"placeholder\"\n [value]=\"_optionValue\"\n [ngClass]=\"{'bizy-select--readonly': readonly}\"\n (onSelect)=\"_onOpen($event); bizyInput?.setTouched(true)\"\n (onEnter)=\"_onOpen($event); bizyInput?.setTouched(true)\"\n class=\"bizy-select {{customClass}}\"\n cdkOverlayOrigin\n #bizySelectTrigger=\"cdkOverlayOrigin\">\n\n @if (!readonly) {\n <svg\n slot=\"suffix\"\n id=\"bizy-select-arrow\"\n class=\"bizy-select__arrow\"\n [ngClass]=\"{'bizy-select__arrow--opened': opened}\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 320 512\">\n <path d=\"M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z\"/>\n </svg>\n }\n\n <ng-container slot=\"header\">\n <ng-content select=\"[slot=header]\"></ng-content>\n </ng-container>\n\n <ng-container slot=\"prefix\">\n <ng-content select=\"[slot=prefix]\"></ng-content>\n </ng-container>\n\n</bizy-input>\n\n@if (touched) {\n <span class=\"bizy-select__errors\">\n <ng-content select=\"[slot=error]\"></ng-content>\n </span>\n}\n\n<ng-template #templatePortalContent>\n <ng-content select=\"bizy-select-option\"></ng-content>\n</ng-template>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayMinWidth]=\"bizyInput.getWidth()\"\n [cdkConnectedOverlayOrigin]=\"bizySelectTrigger\"\n (overlayOutsideClick)=\"close($event, bizyInput)\"\n [cdkConnectedOverlayOpen]=\"opened\">\n\n <span class=\"bizy-select__options\">\n\n <span class=\"bizy-select__options__search\">\n <ng-content select=\"bizy-input\"></ng-content>\n </span>\n\n <ng-template [cdkPortalOutlet]=\"templatePortal\"></ng-template>\n\n </span>\n\n</ng-template>\n", styles: [":host{font-size:1rem;width:var(--bizy-select-width);min-width:var(--bizy-select-min-width);max-width:var(--bizy-select-max-width);display:flex;flex-direction:column;row-gap:.3rem;--bizy-input-focus-color: transparent}:host:has(>.bizy-select__errors:not(:empty)) ::ng-deep .bizy-input__bottom-line{background-color:var(--bizy-input-invalid-color)!important;visibility:visible!important}:host:has(>.bizy-select__errors:not(:empty)) ::ng-deep .bizy-input__content__input{color:var(--bizy-input-invalid-color)!important}.bizy-select{--bizy-input-cursor: pointer;--bizy-input-background-color: var(--bizy-select-background-color);--bizy-input-color: var(--bizy-select-color)}.bizy-select--readonly{--bizy-input-cursor: default}.bizy-select__arrow{height:var(--bizy-select-arrow-height);pointer-events:none;display:block;transition:transform .2s ease;fill:var(--bizy-select-color)}.bizy-select__arrow--opened{transform:rotate(180deg)}.bizy-select__options{background-color:var(--bizy-select-background-color);display:flex;min-width:fit-content;width:100%;flex-direction:column;box-shadow:0 7px 14px #32325d1a,0 3px 6px #00000014;max-height:var(--bizy-select-height);overflow-y:auto;overflow-x:hidden;position:relative}.bizy-select__options::-webkit-scrollbar{width:.5rem;height:.5rem}.bizy-select__options::-webkit-scrollbar-thumb{border-radius:1rem;background-color:var(--bizy-select-scroll-bar-color)}.bizy-select__options::-webkit-scrollbar-thumb:hover{background-color:var(--bizy-select-scroll-bar-hover-color)}.bizy-select__options::-webkit-scrollbar-button{height:1rem}.bizy-select__options__search{position:sticky;z-index:1;top:0}::ng-deep .bizy-select__options__search{--bizy-input-width: auto;--bizy-input-background-color: #fff;--bizy-input-min-width: var(--bizy-select-min-width);--bizy-input-max-width: auto;margin-bottom:.3rem}.bizy-select__errors:empty{display:none!important}::ng-deep .bizy-select__errors *{color:var(--bizy-input-invalid-color)!important}\n"] }]
13163
+ }], propDecorators: { templatePortalContent: [{
13164
+ type: ViewChild,
13165
+ args: ['templatePortalContent']
13166
+ }], options: [{
13167
+ type: ContentChildren,
13168
+ args: [BizySelectOptionComponent]
13169
+ }], bizyInput: [{
13170
+ type: ViewChild,
13171
+ args: ['bizyInput']
13172
+ }], id: [{
13173
+ type: Input
13174
+ }], disabled: [{
13175
+ type: Input
13176
+ }], readonly: [{
13177
+ type: Input
13178
+ }], placeholder: [{
13179
+ type: Input
13180
+ }], customClass: [{
13181
+ type: Input
13182
+ }], opened: [{
13183
+ type: Input
13184
+ }], openedChange: [{
13185
+ type: Output
13186
+ }], onSelect: [{
13187
+ type: Output
13188
+ }], onOpen: [{
13189
+ type: Output
13190
+ }] } });
13191
+
13192
+ class BizyFormComponent {
13193
+ #elementRef = inject(ElementRef);
13194
+ inputs;
13195
+ selects;
13196
+ datePickers;
13197
+ id = `bizy-form-${Math.random()}`;
13198
+ customClass = '';
13199
+ onSubmit(event) {
13200
+ this.setTouched();
13201
+ event.preventDefault();
13202
+ }
13203
+ setTouched = () => {
13204
+ if (this.inputs.length > 0) {
13205
+ this.inputs.forEach(component => {
13206
+ component.setTouched(true);
13207
+ });
13208
+ }
13209
+ if (this.selects.length > 0) {
13210
+ this.selects.forEach(component => {
13211
+ component.setTouched(true);
13212
+ });
13213
+ }
13214
+ if (this.datePickers.length > 0) {
13215
+ this.datePickers.forEach(component => {
13216
+ component.setTouched(true);
13217
+ });
13218
+ }
13219
+ };
13220
+ getNativeElement = () => this.#elementRef?.nativeElement;
13221
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
13222
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.5", type: BizyFormComponent, isStandalone: true, selector: "bizy-form", inputs: { id: "id", customClass: "customClass" }, queries: [{ propertyName: "inputs", predicate: BizyInputComponent, descendants: true }, { propertyName: "selects", predicate: BizySelectComponent, descendants: true }, { propertyName: "datePickers", predicate: BizyDatePickerComponent, descendants: true }], ngImport: i0, template: "<form class=\"bizy-form {{customClass}}\" [id]=\"id\" (ngSubmit)=\"onSubmit($event)\">\n <ng-content></ng-content>\n</form>", styles: [":host{font-size:1rem;max-width:var(--bizy-form-max-width)}.bizy-form{max-width:inherit;display:flex;flex-direction:column;row-gap:var(--bizy-form-row-gap);--bizy-input-max-width: 100%;--bizy-select-max-width: 100%}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
13223
+ }
13224
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyFormComponent, decorators: [{
13225
+ type: Component,
13226
+ args: [{ selector: 'bizy-form', imports: [FormsModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<form class=\"bizy-form {{customClass}}\" [id]=\"id\" (ngSubmit)=\"onSubmit($event)\">\n <ng-content></ng-content>\n</form>", styles: [":host{font-size:1rem;max-width:var(--bizy-form-max-width)}.bizy-form{max-width:inherit;display:flex;flex-direction:column;row-gap:var(--bizy-form-row-gap);--bizy-input-max-width: 100%;--bizy-select-max-width: 100%}\n"] }]
13227
+ }], propDecorators: { inputs: [{
13228
+ type: ContentChildren,
13229
+ args: [BizyInputComponent, { descendants: true }]
13230
+ }], selects: [{
13231
+ type: ContentChildren,
13232
+ args: [BizySelectComponent, { descendants: true }]
13233
+ }], datePickers: [{
13234
+ type: ContentChildren,
13235
+ args: [BizyDatePickerComponent, { descendants: true }]
13236
+ }], id: [{
13237
+ type: Input
13238
+ }], customClass: [{
13239
+ type: Input
13240
+ }] } });
13241
+
13242
+ const COMPONENTS$l = [
13243
+ BizyFormComponent,
13244
+ ];
13245
+ class BizyFormModule {
13246
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
13247
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.5", ngImport: i0, type: BizyFormModule, imports: [BizyFormComponent], exports: [BizyFormComponent] });
13248
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyFormModule, imports: [COMPONENTS$l] });
13249
+ }
13250
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyFormModule, decorators: [{
13251
+ type: NgModule,
13252
+ args: [{
13253
+ imports: COMPONENTS$l,
13254
+ exports: COMPONENTS$l,
13255
+ }]
13256
+ }] });
13257
+
13258
+ class BizyGaugeChartPopupComponent {
13259
+ #popup = inject(BizyPopupService);
13260
+ #renderer = inject(Renderer2);
13261
+ #elementRef = inject(ElementRef);
13262
+ #ref = inject(ChangeDetectorRef);
13263
+ #document = inject(DOCUMENT);
13264
+ #echarts = null;
13265
+ #chartContainer = null;
13266
+ ngOnInit() {
13267
+ const data = this.#popup.getData();
13268
+ if (!data || !data.option) {
13269
+ this.#popup.close();
13270
+ return;
13271
+ }
13272
+ this.#chartContainer = this.#renderer.createElement('div');
13273
+ this.#renderer.setStyle(this.#chartContainer, 'width', '100%');
13274
+ this.#renderer.setStyle(this.#chartContainer, 'height', '100%');
13275
+ this.#renderer.appendChild(this.#elementRef.nativeElement, this.#chartContainer);
13276
+ this.#ref.detectChanges();
13277
+ import('echarts').then(echarts => {
13278
+ this.#echarts = echarts.init(this.#chartContainer);
13279
+ Promise.resolve().then(() => {
13280
+ this.#echarts.setOption({
13281
+ ...data.option,
13282
+ series: [{
13283
+ ...data.option.series[0],
13284
+ minAngle: 1,
13285
+ label: {
13286
+ ...data.option.series[0].label,
13287
+ width: 'none',
13288
+ overflow: 'break',
13289
+ },
13290
+ labelLine: {
13291
+ show: data.option.series[0].labelLine?.show,
13292
+ length: 50,
13293
+ length2: 50
13294
+ },
13295
+ labelLayout() {
13296
+ return {
13297
+ moverOverlap: 'shiftY',
13298
+ hideOverlap: false
13299
+ };
13300
+ },
13301
+ }],
13302
+ toolbox: {
13303
+ show: true,
13304
+ feature: {
13305
+ mySaveAsImage: {
13306
+ show: data.download.show,
13307
+ icon: 'path://M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 242.7-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7 288 32zM64 352c-35.3 0-64 28.7-64 64l0 32c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-32c0-35.3-28.7-64-64-64l-101.5 0-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352 64 352zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z',
13308
+ title: data.download.label,
13309
+ onclick: () => {
13310
+ setTimeout(() => {
13311
+ import('html2canvas').then(module => {
13312
+ const html2canvas = module.default;
13313
+ html2canvas(this.#chartContainer).then(canvas => {
13314
+ var link = this.#renderer.createElement('a');
13315
+ link.href = canvas.toDataURL('image/png');
13316
+ link.download = `${data.download.name}.png`;
13317
+ this.#renderer.appendChild(this.#document.body, link);
13318
+ link.click();
13319
+ this.#renderer.removeChild(this.#document.body, link);
13320
+ });
13321
+ });
13322
+ }, 500);
13323
+ }
13324
+ }
13325
+ }
13326
+ }
13327
+ });
13328
+ });
13329
+ }).catch(() => {
13330
+ this.#popup.close();
13331
+ return;
13332
+ });
13333
+ }
13334
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyGaugeChartPopupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
13335
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.5", type: BizyGaugeChartPopupComponent, isStandalone: true, selector: "bizy-gauge-chart-popup", ngImport: i0, template: '', isInline: true, styles: [":host{display:inline-block;height:min(60rem,90dvh);width:min(60rem,85dvw)}\n"] });
13336
+ }
13337
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyGaugeChartPopupComponent, decorators: [{
13338
+ type: Component,
13339
+ args: [{ selector: 'bizy-gauge-chart-popup', template: '', styles: [":host{display:inline-block;height:min(60rem,90dvh);width:min(60rem,85dvw)}\n"] }]
13340
+ }] });
13341
+
13342
+ const DEFAULT_CHART_SIZE$2 = '300px';
13343
+ const DEFAULT_DOWNLOAD$2 = {
13344
+ show: true,
13345
+ label: 'Descargar',
13346
+ name: 'Bizy'
13347
+ };
13348
+ const DEFAULT_EXPAND$1 = {
13349
+ show: true,
13350
+ label: 'Expandir'
13351
+ };
13352
+ const DEFAULT_TOOLTIP$2 = {
13353
+ show: true
13354
+ };
13355
+ const DEFAULT_ANGLE = {
13356
+ start: 225,
13357
+ end: -45
13358
+ };
13359
+ const DEFAULT_LIMIT = {
13360
+ min: 0,
13361
+ max: 1
13362
+ };
13363
+ class BizyGaugeChartComponent {
13364
+ #elementRef = inject(ElementRef);
13365
+ #document = inject(DOCUMENT);
13366
+ #ref = inject(ChangeDetectorRef);
13367
+ #renderer = inject(Renderer2);
13368
+ #popup = inject(BizyPopupService);
13369
+ resizeRef = null;
13370
+ angle = DEFAULT_ANGLE;
13371
+ limit = DEFAULT_LIMIT;
13372
+ tooltip = DEFAULT_TOOLTIP$2;
13373
+ download = DEFAULT_DOWNLOAD$2;
13374
+ expand = DEFAULT_EXPAND$1;
13375
+ onSelect = new EventEmitter();
13376
+ onDownload = new EventEmitter();
13377
+ #echarts = null;
13378
+ #resizeObserver = null;
13379
+ #afterViewInitSubscription = new Subscription();
13380
+ #resizeSubscription = new Subscription();
13381
+ #chartContainer = null;
13382
+ #resize$ = new Subject();
13383
+ #data = null;
13384
+ getNativeElement = () => this.#elementRef?.nativeElement;
13385
+ set data(data) {
13386
+ if (!data) {
13387
+ this.#deleteChartContainer();
13388
+ }
13389
+ this.#setChartData(data);
13390
+ }
13391
+ async #setChartData(data) {
13392
+ this.#data = data;
13393
+ this.#createChartContainer();
13394
+ if (!this.#chartContainer) {
13395
+ return;
13396
+ }
13397
+ import('echarts').then(echarts => {
13398
+ this.#echarts = echarts.init(this.#chartContainer);
13399
+ const { width, height } = this.#chartContainer.getBoundingClientRect();
13400
+ const base = Math.min(width, height);
13401
+ const backgroundColor = getComputedStyle(this.#elementRef.nativeElement).getPropertyValue('--bizy-gauge-chart-background-color');
13402
+ const progressColor = getComputedStyle(this.#elementRef.nativeElement).getPropertyValue('--bizy-gauge-chart-progress-color');
13403
+ const valueColor = getComputedStyle(this.#elementRef.nativeElement).getPropertyValue('--bizy-gauge-chart-value-color');
13404
+ const textColor = getComputedStyle(this.#elementRef.nativeElement).getPropertyValue('--bizy-gauge-chart-text-color');
13405
+ const anchorColor = getComputedStyle(this.#elementRef.nativeElement).getPropertyValue('--bizy-gauge-chart-anchor-color');
13406
+ const pointerColor = getComputedStyle(this.#elementRef.nativeElement).getPropertyValue('--bizy-gauge-chart-pointer-color');
13407
+ const series = [{
13408
+ type: 'gauge',
13409
+ radius: '100%',
13410
+ progress: {
13411
+ show: true,
13412
+ width: Math.round(Math.max(base / 10, 7)),
13413
+ itemStyle: {
13414
+ color: progressColor
13415
+ }
13416
+ },
13417
+ axisLine: {
13418
+ lineStyle: {
13419
+ width: Math.round(Math.max(base / 10, 7)),
13420
+ color: [[1, backgroundColor]]
13421
+ }
13422
+ },
13423
+ axisTick: {
13424
+ show: false
13425
+ },
13426
+ splitLine: {
13427
+ show: base > 100,
13428
+ distance: Math.round(Math.max(base / 30, 10)),
13429
+ length: Math.round(Math.max(base / 20, 10)),
13430
+ lineStyle: {
13431
+ width: 2,
13432
+ color: textColor
13433
+ }
13434
+ },
13435
+ axisLabel: {
13436
+ show: base > 100,
13437
+ distance: Math.round(Math.max(base / 15, 5)) + 3,
13438
+ color: textColor,
13439
+ fontSize: Math.round(Math.max(base / 17, 10))
13440
+ },
13441
+ startAngle: this.angle.start ?? DEFAULT_ANGLE.start,
13442
+ endAngle: this.angle.end ?? DEFAULT_ANGLE.end,
13443
+ anchor: {
13444
+ show: true,
13445
+ showAbove: true,
13446
+ size: Math.round(Math.max(base / 20, 5)),
13447
+ itemStyle: {
13448
+ borderWidth: Math.round(Math.max(base / 50, 3)),
13449
+ borderColor: anchorColor
13450
+ }
13451
+ },
13452
+ pointer: {
13453
+ show: true,
13454
+ itemStyle: {
13455
+ color: pointerColor
13456
+ }
13457
+ },
13458
+ title: {
13459
+ show: false,
13460
+ },
13461
+ detail: {
13462
+ valueAnimation: true,
13463
+ fontSize: Math.round(Math.max(base / 8, 7)),
13464
+ color: valueColor,
13465
+ formatter: this.#data.formatter ? this.#data.formatter : '{value}',
13466
+ offsetCenter: [0, '70%']
13467
+ },
13468
+ min: this.limit.min ?? DEFAULT_LIMIT.min,
13469
+ max: this.limit.max ?? DEFAULT_LIMIT.max,
13470
+ data: this.#data ? [this.#data] : []
13471
+ }];
13472
+ const tooltipTextColor = getComputedStyle(this.#elementRef.nativeElement).getPropertyValue('--bizy-gauge-chart-tooltip-color');
13473
+ const tooltipTextBackgroundColor = getComputedStyle(this.#elementRef.nativeElement).getPropertyValue('--bizy-gauge-chart-tooltip-background-color');
13474
+ const tooltipBorderColor = getComputedStyle(this.#elementRef.nativeElement).getPropertyValue('--bizy-gauge-chart-tooltip-border-color');
13475
+ const toolbox = {
13476
+ show: true,
13477
+ feature: {
13478
+ mySaveAsImage: {
13479
+ show: this.download.show ?? DEFAULT_DOWNLOAD$2.show,
13480
+ icon: 'path://M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 242.7-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7 288 32zM64 352c-35.3 0-64 28.7-64 64l0 32c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-32c0-35.3-28.7-64-64-64l-101.5 0-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352 64 352zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z',
13481
+ title: this.download.label ?? DEFAULT_DOWNLOAD$2.label,
13482
+ onclick: () => {
13483
+ setTimeout(() => {
13484
+ import('html2canvas').then(module => {
13485
+ const html2canvas = module.default;
13486
+ html2canvas(this.#chartContainer).then(canvas => {
13487
+ var link = this.#renderer.createElement('a');
13488
+ link.href = canvas.toDataURL('image/png');
13489
+ link.download = `${this.download.name ?? DEFAULT_DOWNLOAD$2.name}.png`;
13490
+ this.#renderer.appendChild(this.#document.body, link);
13491
+ link.click();
13492
+ this.#renderer.removeChild(this.#document.body, link);
13493
+ this.onDownload.emit();
13494
+ });
13495
+ });
13496
+ }, 500);
13497
+ }
13498
+ },
13499
+ myExpandChart: {
13500
+ show: this.expand.show ?? DEFAULT_EXPAND$1.show,
13501
+ icon: 'path://M264 96L120 96C106.7 96 96 106.7 96 120L96 264C96 273.7 101.8 282.5 110.8 286.2C119.8 289.9 130.1 287.8 137 281L177 241L256 320L177 399L137 359C130.1 352.1 119.8 350.1 110.8 353.8C101.8 357.5 96 366.3 96 376L96 520C96 533.3 106.7 544 120 544L264 544C273.7 544 282.5 538.2 286.2 529.2C289.9 520.2 287.9 509.9 281 503L241 463L320 384L399 463L359 503C352.1 509.9 350.1 520.2 353.8 529.2C357.5 538.2 366.3 544 376 544L520 544C533.3 544 544 533.3 544 520L544 376C544 366.3 538.2 357.5 529.2 353.8C520.2 350.1 509.9 352.1 503 359L463 399L384 320L463 241L503 281C509.9 287.9 520.2 289.9 529.2 286.2C538.2 282.5 544 273.7 544 264L544 120C544 106.7 533.3 96 520 96L376 96C366.3 96 357.5 101.8 353.8 110.8C350.1 119.8 352.2 130.1 359 137L399 177L320 256L241 177L281 137C287.9 130.1 289.9 119.8 286.2 110.8C282.5 101.8 273.7 96 264 96z',
13502
+ title: this.expand.label ?? DEFAULT_EXPAND$1.label,
13503
+ onclick: () => {
13504
+ this.#popup.open({
13505
+ component: BizyGaugeChartPopupComponent,
13506
+ data: {
13507
+ download: {
13508
+ show: this.download?.show ?? DEFAULT_DOWNLOAD$2.show,
13509
+ label: this.download?.label ?? DEFAULT_DOWNLOAD$2.label,
13510
+ name: this.download?.name ?? DEFAULT_DOWNLOAD$2.name,
13511
+ },
13512
+ option: this.#echarts.getOption()
13513
+ }
13514
+ });
13515
+ }
13516
+ }
13517
+ },
13518
+ emphasis: {
13519
+ iconStyle: {
13520
+ color: tooltipTextColor,
13521
+ borderColor: tooltipBorderColor,
13522
+ borderWidth: 1,
13523
+ textBackgroundColor: tooltipTextBackgroundColor,
13524
+ textPadding: 5,
13525
+ }
13526
+ }
13527
+ };
13528
+ const tooltip = {
13529
+ show: this.tooltip?.show ?? DEFAULT_TOOLTIP$2.show,
13530
+ trigger: 'item',
13531
+ appendToBody: true,
13532
+ formatter: this.tooltip?.formatter
13533
+ };
13534
+ const option = {
13535
+ tooltip,
13536
+ toolbox,
13537
+ series,
13538
+ };
13539
+ this.#echarts.setOption(option);
13540
+ this.#echarts.on('click', params => {
13541
+ this.onSelect.emit(params.name);
13542
+ });
13543
+ this.#resizeSubscription.unsubscribe();
13544
+ this.#resizeObserver = new ResizeObserver(() => this.#resize$.next());
13545
+ const resizeRef = this.resizeRef ? this.resizeRef : this.#renderer.parentNode(this.#elementRef.nativeElement) ? this.#renderer.parentNode(this.#elementRef.nativeElement) : this.#elementRef.nativeElement;
13546
+ this.#resizeObserver.observe(resizeRef);
13547
+ this.#resizeSubscription = new Subscription();
13548
+ this.#resizeSubscription.add(this.#resize$.pipe(skip(1), auditTime(300), throttleTime(500)).subscribe(() => {
13549
+ this.#deleteChartContainer();
13550
+ this.#createChartContainer();
13551
+ if (!this.#chartContainer) {
13552
+ return;
13553
+ }
13554
+ this.#echarts = echarts.init(this.#chartContainer);
13555
+ Promise.resolve().then(() => {
13556
+ this.#echarts.setOption({ ...option, series: option.series.map(_serie => { return { ..._serie, data: this.#data ? [this.#data] : [] }; }) });
13557
+ this.#echarts.on('click', params => {
13558
+ this.onSelect.emit(params.name);
13559
+ });
13560
+ });
13561
+ }));
13562
+ });
13563
+ }
13564
+ #createChartContainer = () => {
13565
+ if (this.#chartContainer || !this.#elementRef || !this.#elementRef.nativeElement) {
13566
+ return;
13567
+ }
13568
+ let elementWidth = this.#elementRef.nativeElement.offsetWidth;
13569
+ let elementHeight = this.#elementRef.nativeElement.offsetHeight;
13570
+ let minWidth = this.#getClosestCssVariable(this.#elementRef.nativeElement, '--bizy-gauge-chart-width');
13571
+ let minHeight = this.#getClosestCssVariable(this.#elementRef.nativeElement, '--bizy-gauge-chart-height');
13572
+ const width = minWidth ? minWidth : elementWidth ? `${elementWidth * 0.99}px` : DEFAULT_CHART_SIZE$2;
13573
+ const height = minHeight ? minHeight : elementHeight ? `${elementHeight}px` : DEFAULT_CHART_SIZE$2;
13574
+ this.#chartContainer = this.#renderer.createElement('div');
13575
+ this.#renderer.setStyle(this.#chartContainer, 'width', width);
13576
+ this.#renderer.setStyle(this.#chartContainer, 'height', height);
13577
+ this.#renderer.appendChild(this.#elementRef.nativeElement, this.#chartContainer);
13578
+ this.#ref.detectChanges();
13579
+ };
13580
+ #deleteChartContainer = () => {
13581
+ if (!this.#chartContainer || !this.#elementRef || !this.#elementRef.nativeElement) {
12718
13582
  return;
12719
13583
  }
12720
- this.opened = false;
12721
- this.openedChange.emit(this.opened);
12722
- this.onOpen.emit(this.opened);
13584
+ this.#echarts.clear();
13585
+ this.#renderer.removeChild(this.#elementRef.nativeElement, this.#chartContainer);
13586
+ this.#chartContainer = null;
12723
13587
  this.#ref.detectChanges();
12724
13588
  };
12725
- setTouched(touched) {
12726
- if (this.bizyInput) {
12727
- this.bizyInput.setTouched(touched);
12728
- this.#ref.detectChanges();
13589
+ #getClosestCssVariable = (element, cssVariable) => {
13590
+ while (element) {
13591
+ const value = getComputedStyle(element).getPropertyValue(cssVariable).trim();
13592
+ if (value) {
13593
+ return value;
13594
+ }
13595
+ element = element.parentElement;
12729
13596
  }
12730
- }
12731
- getNativeElement = () => this.#elementRef?.nativeElement;
13597
+ const rootValue = getComputedStyle(document.documentElement).getPropertyValue(cssVariable).trim();
13598
+ return rootValue || null;
13599
+ };
12732
13600
  ngOnDestroy() {
12733
- this.#subscription.unsubscribe();
12734
- this.#contentChildrenSubscription.unsubscribe();
13601
+ this.#afterViewInitSubscription.unsubscribe();
13602
+ this.#resizeSubscription.unsubscribe();
13603
+ if (this.#resizeObserver) {
13604
+ this.#resizeObserver.disconnect();
13605
+ }
13606
+ if (this.#echarts) {
13607
+ this.#echarts.clear();
13608
+ }
12735
13609
  }
12736
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizySelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
12737
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.5", type: BizySelectComponent, isStandalone: true, selector: "bizy-select", inputs: { id: "id", disabled: "disabled", readonly: "readonly", placeholder: "placeholder", customClass: "customClass", opened: "opened" }, outputs: { openedChange: "openedChange", onSelect: "onSelect", onOpen: "onOpen" }, queries: [{ propertyName: "options", predicate: BizySelectOptionComponent }], viewQueries: [{ propertyName: "templatePortalContent", first: true, predicate: ["templatePortalContent"], descendants: true }, { propertyName: "bizyInput", first: true, predicate: ["bizyInput"], descendants: true }], ngImport: i0, template: "<bizy-input\n #bizyInput\n [readonly]=\"true\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [placeholder]=\"placeholder\"\n [value]=\"_optionValue\"\n [ngClass]=\"{'bizy-select--readonly': readonly}\"\n (onSelect)=\"_onOpen($event); bizyInput?.setTouched(true)\"\n (onEnter)=\"_onOpen($event); bizyInput?.setTouched(true)\"\n class=\"bizy-select {{customClass}}\"\n cdkOverlayOrigin\n #bizySelectTrigger=\"cdkOverlayOrigin\">\n\n @if (!readonly) {\n <svg\n slot=\"suffix\"\n id=\"bizy-select-arrow\"\n class=\"bizy-select__arrow\"\n [ngClass]=\"{'bizy-select__arrow--opened': opened}\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 320 512\">\n <path d=\"M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z\"/>\n </svg>\n }\n\n <ng-container slot=\"header\">\n <ng-content select=\"[slot=header]\"></ng-content>\n </ng-container>\n\n <ng-container slot=\"prefix\">\n <ng-content select=\"[slot=prefix]\"></ng-content>\n </ng-container>\n\n</bizy-input>\n\n@if (touched) {\n <span class=\"bizy-select__errors\">\n <ng-content select=\"[slot=error]\"></ng-content>\n </span>\n}\n\n<ng-template #templatePortalContent>\n <ng-content select=\"bizy-select-option\"></ng-content>\n</ng-template>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayMinWidth]=\"bizyInput.getWidth()\"\n [cdkConnectedOverlayOrigin]=\"bizySelectTrigger\"\n (overlayOutsideClick)=\"close($event, bizyInput)\"\n [cdkConnectedOverlayOpen]=\"opened\">\n\n <span class=\"bizy-select__options\">\n\n <span class=\"bizy-select__options__search\">\n <ng-content select=\"bizy-input\"></ng-content>\n </span>\n\n <ng-template [cdkPortalOutlet]=\"templatePortal\"></ng-template>\n\n </span>\n\n</ng-template>\n", styles: [":host{font-size:1rem;width:var(--bizy-select-width);min-width:var(--bizy-select-min-width);max-width:var(--bizy-select-max-width);display:flex;flex-direction:column;row-gap:.3rem;--bizy-input-focus-color: transparent}:host:has(>.bizy-select__errors:not(:empty)) ::ng-deep .bizy-input__bottom-line{background-color:var(--bizy-input-invalid-color)!important;visibility:visible!important}:host:has(>.bizy-select__errors:not(:empty)) ::ng-deep .bizy-input__content__input{color:var(--bizy-input-invalid-color)!important}.bizy-select{--bizy-input-cursor: pointer;--bizy-input-background-color: var(--bizy-select-background-color);--bizy-input-color: var(--bizy-select-color)}.bizy-select--readonly{--bizy-input-cursor: default}.bizy-select__arrow{height:var(--bizy-select-arrow-height);pointer-events:none;display:block;transition:transform .2s ease;fill:var(--bizy-select-color)}.bizy-select__arrow--opened{transform:rotate(180deg)}.bizy-select__options{background-color:var(--bizy-select-background-color);display:flex;min-width:fit-content;width:100%;flex-direction:column;box-shadow:0 7px 14px #32325d1a,0 3px 6px #00000014;max-height:var(--bizy-select-height);overflow-y:auto;overflow-x:hidden;position:relative}.bizy-select__options::-webkit-scrollbar{width:.5rem;height:.5rem}.bizy-select__options::-webkit-scrollbar-thumb{border-radius:1rem;background-color:var(--bizy-select-scroll-bar-color)}.bizy-select__options::-webkit-scrollbar-thumb:hover{background-color:var(--bizy-select-scroll-bar-hover-color)}.bizy-select__options::-webkit-scrollbar-button{height:1rem}.bizy-select__options__search{position:sticky;z-index:1;top:0}::ng-deep .bizy-select__options__search{--bizy-input-width: auto;--bizy-input-background-color: #fff;--bizy-input-min-width: var(--bizy-select-min-width);--bizy-input-max-width: auto;margin-bottom:.3rem}.bizy-select__errors:empty{display:none!important}::ng-deep .bizy-select__errors *{color:var(--bizy-input-invalid-color)!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: BizyInputComponent, selector: "bizy-input", inputs: ["id", "name", "type", "customClass", "placeholder", "debounceTime", "rows", "disabled", "readonly", "autofocus", "value"], outputs: ["valueChange", "onChange", "onEnter", "onBackspace", "onSelect", "onBlur", "onFocus"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i2$2.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation", "cdkConnectedOverlayUsePopover", "cdkConnectedOverlayMatchWidth", "cdkConnectedOverlay"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: i2$2.CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i3.ɵɵCdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
13610
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyGaugeChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
13611
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.5", type: BizyGaugeChartComponent, isStandalone: true, selector: "bizy-gauge-chart", inputs: { resizeRef: "resizeRef", angle: "angle", limit: "limit", tooltip: "tooltip", download: "download", expand: "expand", data: "data" }, outputs: { onSelect: "onSelect", onDownload: "onDownload" }, ngImport: i0, template: '', isInline: true, styles: [":host{display:flex;justify-content:center}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
12738
13612
  }
12739
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizySelectComponent, decorators: [{
13613
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyGaugeChartComponent, decorators: [{
12740
13614
  type: Component,
12741
- args: [{ selector: 'bizy-select', imports: [CommonModule, BizyInputComponent, OverlayModule, PortalModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<bizy-input\n #bizyInput\n [readonly]=\"true\"\n [disabled]=\"disabled\"\n [id]=\"id\"\n [placeholder]=\"placeholder\"\n [value]=\"_optionValue\"\n [ngClass]=\"{'bizy-select--readonly': readonly}\"\n (onSelect)=\"_onOpen($event); bizyInput?.setTouched(true)\"\n (onEnter)=\"_onOpen($event); bizyInput?.setTouched(true)\"\n class=\"bizy-select {{customClass}}\"\n cdkOverlayOrigin\n #bizySelectTrigger=\"cdkOverlayOrigin\">\n\n @if (!readonly) {\n <svg\n slot=\"suffix\"\n id=\"bizy-select-arrow\"\n class=\"bizy-select__arrow\"\n [ngClass]=\"{'bizy-select__arrow--opened': opened}\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 320 512\">\n <path d=\"M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z\"/>\n </svg>\n }\n\n <ng-container slot=\"header\">\n <ng-content select=\"[slot=header]\"></ng-content>\n </ng-container>\n\n <ng-container slot=\"prefix\">\n <ng-content select=\"[slot=prefix]\"></ng-content>\n </ng-container>\n\n</bizy-input>\n\n@if (touched) {\n <span class=\"bizy-select__errors\">\n <ng-content select=\"[slot=error]\"></ng-content>\n </span>\n}\n\n<ng-template #templatePortalContent>\n <ng-content select=\"bizy-select-option\"></ng-content>\n</ng-template>\n\n<ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayMinWidth]=\"bizyInput.getWidth()\"\n [cdkConnectedOverlayOrigin]=\"bizySelectTrigger\"\n (overlayOutsideClick)=\"close($event, bizyInput)\"\n [cdkConnectedOverlayOpen]=\"opened\">\n\n <span class=\"bizy-select__options\">\n\n <span class=\"bizy-select__options__search\">\n <ng-content select=\"bizy-input\"></ng-content>\n </span>\n\n <ng-template [cdkPortalOutlet]=\"templatePortal\"></ng-template>\n\n </span>\n\n</ng-template>\n", styles: [":host{font-size:1rem;width:var(--bizy-select-width);min-width:var(--bizy-select-min-width);max-width:var(--bizy-select-max-width);display:flex;flex-direction:column;row-gap:.3rem;--bizy-input-focus-color: transparent}:host:has(>.bizy-select__errors:not(:empty)) ::ng-deep .bizy-input__bottom-line{background-color:var(--bizy-input-invalid-color)!important;visibility:visible!important}:host:has(>.bizy-select__errors:not(:empty)) ::ng-deep .bizy-input__content__input{color:var(--bizy-input-invalid-color)!important}.bizy-select{--bizy-input-cursor: pointer;--bizy-input-background-color: var(--bizy-select-background-color);--bizy-input-color: var(--bizy-select-color)}.bizy-select--readonly{--bizy-input-cursor: default}.bizy-select__arrow{height:var(--bizy-select-arrow-height);pointer-events:none;display:block;transition:transform .2s ease;fill:var(--bizy-select-color)}.bizy-select__arrow--opened{transform:rotate(180deg)}.bizy-select__options{background-color:var(--bizy-select-background-color);display:flex;min-width:fit-content;width:100%;flex-direction:column;box-shadow:0 7px 14px #32325d1a,0 3px 6px #00000014;max-height:var(--bizy-select-height);overflow-y:auto;overflow-x:hidden;position:relative}.bizy-select__options::-webkit-scrollbar{width:.5rem;height:.5rem}.bizy-select__options::-webkit-scrollbar-thumb{border-radius:1rem;background-color:var(--bizy-select-scroll-bar-color)}.bizy-select__options::-webkit-scrollbar-thumb:hover{background-color:var(--bizy-select-scroll-bar-hover-color)}.bizy-select__options::-webkit-scrollbar-button{height:1rem}.bizy-select__options__search{position:sticky;z-index:1;top:0}::ng-deep .bizy-select__options__search{--bizy-input-width: auto;--bizy-input-background-color: #fff;--bizy-input-min-width: var(--bizy-select-min-width);--bizy-input-max-width: auto;margin-bottom:.3rem}.bizy-select__errors:empty{display:none!important}::ng-deep .bizy-select__errors *{color:var(--bizy-input-invalid-color)!important}\n"] }]
12742
- }], propDecorators: { templatePortalContent: [{
12743
- type: ViewChild,
12744
- args: ['templatePortalContent']
12745
- }], options: [{
12746
- type: ContentChildren,
12747
- args: [BizySelectOptionComponent]
12748
- }], bizyInput: [{
12749
- type: ViewChild,
12750
- args: ['bizyInput']
12751
- }], id: [{
13615
+ args: [{ selector: 'bizy-gauge-chart', template: '', changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:flex;justify-content:center}\n"] }]
13616
+ }], propDecorators: { resizeRef: [{
12752
13617
  type: Input
12753
- }], disabled: [{
13618
+ }], angle: [{
12754
13619
  type: Input
12755
- }], readonly: [{
13620
+ }], limit: [{
12756
13621
  type: Input
12757
- }], placeholder: [{
13622
+ }], tooltip: [{
12758
13623
  type: Input
12759
- }], customClass: [{
13624
+ }], download: [{
12760
13625
  type: Input
12761
- }], opened: [{
13626
+ }], expand: [{
12762
13627
  type: Input
12763
- }], openedChange: [{
12764
- type: Output
12765
13628
  }], onSelect: [{
12766
13629
  type: Output
12767
- }], onOpen: [{
13630
+ }], onDownload: [{
12768
13631
  type: Output
12769
- }] } });
12770
-
12771
- class BizyFormComponent {
12772
- #elementRef = inject(ElementRef);
12773
- inputs;
12774
- selects;
12775
- datePickers;
12776
- id = `bizy-form-${Math.random()}`;
12777
- customClass = '';
12778
- onSubmit(event) {
12779
- this.setTouched();
12780
- event.preventDefault();
12781
- }
12782
- setTouched = () => {
12783
- if (this.inputs.length > 0) {
12784
- this.inputs.forEach(component => {
12785
- component.setTouched(true);
12786
- });
12787
- }
12788
- if (this.selects.length > 0) {
12789
- this.selects.forEach(component => {
12790
- component.setTouched(true);
12791
- });
12792
- }
12793
- if (this.datePickers.length > 0) {
12794
- this.datePickers.forEach(component => {
12795
- component.setTouched(true);
12796
- });
12797
- }
12798
- };
12799
- getNativeElement = () => this.#elementRef?.nativeElement;
12800
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
12801
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.5", type: BizyFormComponent, isStandalone: true, selector: "bizy-form", inputs: { id: "id", customClass: "customClass" }, queries: [{ propertyName: "inputs", predicate: BizyInputComponent, descendants: true }, { propertyName: "selects", predicate: BizySelectComponent, descendants: true }, { propertyName: "datePickers", predicate: BizyDatePickerComponent, descendants: true }], ngImport: i0, template: "<form class=\"bizy-form {{customClass}}\" [id]=\"id\" (ngSubmit)=\"onSubmit($event)\">\n <ng-content></ng-content>\n</form>", styles: [":host{font-size:1rem;max-width:var(--bizy-form-max-width)}.bizy-form{max-width:inherit;display:flex;flex-direction:column;row-gap:var(--bizy-form-row-gap);--bizy-input-max-width: 100%;--bizy-select-max-width: 100%}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
12802
- }
12803
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyFormComponent, decorators: [{
12804
- type: Component,
12805
- args: [{ selector: 'bizy-form', imports: [FormsModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<form class=\"bizy-form {{customClass}}\" [id]=\"id\" (ngSubmit)=\"onSubmit($event)\">\n <ng-content></ng-content>\n</form>", styles: [":host{font-size:1rem;max-width:var(--bizy-form-max-width)}.bizy-form{max-width:inherit;display:flex;flex-direction:column;row-gap:var(--bizy-form-row-gap);--bizy-input-max-width: 100%;--bizy-select-max-width: 100%}\n"] }]
12806
- }], propDecorators: { inputs: [{
12807
- type: ContentChildren,
12808
- args: [BizyInputComponent, { descendants: true }]
12809
- }], selects: [{
12810
- type: ContentChildren,
12811
- args: [BizySelectComponent, { descendants: true }]
12812
- }], datePickers: [{
12813
- type: ContentChildren,
12814
- args: [BizyDatePickerComponent, { descendants: true }]
12815
- }], id: [{
12816
- type: Input
12817
- }], customClass: [{
13632
+ }], data: [{
12818
13633
  type: Input
12819
13634
  }] } });
12820
13635
 
12821
13636
  const COMPONENTS$k = [
12822
- BizyFormComponent,
13637
+ BizyGaugeChartComponent,
13638
+ BizyGaugeChartPopupComponent
12823
13639
  ];
12824
- class BizyFormModule {
12825
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
12826
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.5", ngImport: i0, type: BizyFormModule, imports: [BizyFormComponent], exports: [BizyFormComponent] });
12827
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyFormModule, imports: [COMPONENTS$k] });
13640
+ class BizyGaugeChartModule {
13641
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyGaugeChartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
13642
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.5", ngImport: i0, type: BizyGaugeChartModule, imports: [BizyGaugeChartComponent,
13643
+ BizyGaugeChartPopupComponent], exports: [BizyGaugeChartComponent,
13644
+ BizyGaugeChartPopupComponent] });
13645
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyGaugeChartModule });
12828
13646
  }
12829
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyFormModule, decorators: [{
13647
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyGaugeChartModule, decorators: [{
12830
13648
  type: NgModule,
12831
13649
  args: [{
12832
13650
  imports: COMPONENTS$k,
@@ -13994,20 +14812,32 @@ const DEFAULT_EXPAND = {
13994
14812
  const DEFAULT_TOOLTIP = {
13995
14813
  show: true
13996
14814
  };
14815
+ const DEFAULT_LEGEND = {
14816
+ show: false,
14817
+ orient: 'vertical',
14818
+ position: {
14819
+ x: 'auto',
14820
+ y: 'auto'
14821
+ }
14822
+ };
14823
+ const DEFAULT_LABEL = {
14824
+ show: true,
14825
+ overflow: 'break',
14826
+ line: true
14827
+ };
13997
14828
  class BizyPieChartComponent {
13998
14829
  #elementRef = inject(ElementRef);
13999
- #document = inject(DOCUMENT$1);
14830
+ #document = inject(DOCUMENT);
14000
14831
  #ref = inject(ChangeDetectorRef);
14001
14832
  #renderer = inject(Renderer2);
14002
14833
  #popup = inject(BizyPopupService);
14003
14834
  resizeRef = null;
14004
- type = 'pie';
14005
14835
  centerLabel = null;
14006
14836
  tooltip = DEFAULT_TOOLTIP;
14007
14837
  legend = null;
14008
14838
  download = DEFAULT_DOWNLOAD;
14009
14839
  expand = DEFAULT_EXPAND;
14010
- label = null;
14840
+ label = DEFAULT_LABEL;
14011
14841
  onSelect = new EventEmitter();
14012
14842
  onDownload = new EventEmitter();
14013
14843
  #echarts = null;
@@ -14036,190 +14866,182 @@ class BizyPieChartComponent {
14036
14866
  }
14037
14867
  async #setChartData(data) {
14038
14868
  this.#afterViewInitSubscription.add(this.#afterViewInit.pipe(filter$1(value => value === true), take(1)).subscribe(() => {
14039
- this.#createChartContainer();
14040
- if (!this.#chartContainer) {
14041
- return;
14042
- }
14043
- if (data && data.length > 0 && data[0] !== 0) {
14044
- this.#data = [];
14045
- data.forEach(_d => {
14046
- if (!_d.value) {
14047
- _d.value = 0;
14048
- }
14049
- if (!_d.name) {
14050
- _d.name = '---';
14051
- }
14052
- const itemStyle = _d.color ? { color: _d.color } : {};
14053
- this.#data.push({
14054
- name: _d.name,
14055
- value: _d.value,
14056
- itemStyle
14869
+ /**
14870
+ * setTimeout fix angular render problem
14871
+ */
14872
+ setTimeout(() => {
14873
+ this.#createChartContainer();
14874
+ if (!this.#chartContainer) {
14875
+ return;
14876
+ }
14877
+ if (data && data.length > 0 && data[0] !== 0) {
14878
+ this.#data = [];
14879
+ data.forEach(_d => {
14880
+ if (!_d.value) {
14881
+ _d.value = 0;
14882
+ }
14883
+ if (!_d.name) {
14884
+ _d.name = '---';
14885
+ }
14886
+ const itemStyle = _d.color ? { color: _d.color } : {};
14887
+ this.#data.push({
14888
+ name: _d.name,
14889
+ value: _d.value,
14890
+ itemStyle,
14891
+ metadata: _d.metadata
14892
+ });
14057
14893
  });
14058
- });
14059
- }
14060
- else {
14061
- this.#data = EMPTY_CHART;
14062
- }
14063
- const itemStyle = this.type === 'donut' ?
14064
- {
14065
- borderRadius: 10,
14066
- borderColor: '#fff',
14067
- borderWidth: 2
14068
- } : {};
14069
- const label = this.label ?
14070
- {
14071
- show: this.label.show ?? true,
14072
- overflow: this.label.overflow ?? 'break',
14894
+ }
14895
+ else {
14896
+ this.#data = EMPTY_CHART;
14897
+ }
14898
+ const label = {
14899
+ show: this.label?.show ?? DEFAULT_LABEL.show,
14900
+ overflow: this.label?.overflow ?? DEFAULT_LABEL.overflow,
14073
14901
  formatter: this.label?.formatter
14074
- } :
14075
- this.type === 'pie' ?
14076
- {
14077
- show: true
14078
- } :
14079
- {
14080
- show: false,
14081
- position: 'center'
14082
- };
14083
- const labelLine = {
14084
- show: this.label?.line ?? true
14085
- };
14086
- const series = [{
14087
- type: 'pie',
14088
- radius: this.type === 'pie' ? '50%' : ['50%', '70%'],
14089
- center: ['50%', '50%'],
14090
- data: this.#data,
14091
- itemStyle,
14092
- label,
14093
- labelLine
14094
- }];
14095
- const textColor = this.#getClosestCssVariable(this.#elementRef.nativeElement, '--bizy-pie-chart-tooltip-color');
14096
- const textBackgroundColor = this.#getClosestCssVariable(this.#elementRef.nativeElement, '--bizy-pie-chart-tooltip-background-color');
14097
- const borderColor = this.#getClosestCssVariable(this.#elementRef.nativeElement, '--bizy-pie-chart-tooltip-border-color');
14098
- const toolbox = {
14099
- show: true,
14100
- feature: {
14101
- mySaveAsImage: {
14102
- show: this.download.show ?? DEFAULT_DOWNLOAD.show,
14103
- icon: 'path://M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 242.7-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7 288 32zM64 352c-35.3 0-64 28.7-64 64l0 32c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-32c0-35.3-28.7-64-64-64l-101.5 0-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352 64 352zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z',
14104
- title: this.download.label ?? DEFAULT_DOWNLOAD.label,
14105
- onclick: () => {
14106
- setTimeout(() => {
14107
- import('html2canvas').then(module => {
14108
- const html2canvas = module.default;
14109
- html2canvas(this.#chartContainer).then(canvas => {
14110
- var link = this.#renderer.createElement('a');
14111
- link.href = canvas.toDataURL('image/png');
14112
- link.download = `${this.download.name ?? DEFAULT_DOWNLOAD.name}.png`;
14113
- this.#renderer.appendChild(this.#document.body, link);
14114
- link.click();
14115
- this.#renderer.removeChild(this.#document.body, link);
14116
- this.onDownload.emit();
14902
+ };
14903
+ const labelLine = {
14904
+ show: this.label?.line ?? true
14905
+ };
14906
+ const series = [{
14907
+ type: 'pie',
14908
+ radius: '50%',
14909
+ center: ['50%', '50%'],
14910
+ data: this.#data,
14911
+ label,
14912
+ labelLine
14913
+ }];
14914
+ const textColor = getComputedStyle(this.#document.documentElement).getPropertyValue('--bizy-pie-chart-tooltip-color');
14915
+ const textBackgroundColor = getComputedStyle(this.#document.documentElement).getPropertyValue('--bizy-pie-chart-tooltip-background-color');
14916
+ const borderColor = getComputedStyle(this.#document.documentElement).getPropertyValue('--bizy-pie-chart-tooltip-border-color');
14917
+ const toolbox = {
14918
+ show: true,
14919
+ feature: {
14920
+ mySaveAsImage: {
14921
+ show: this.download.show ?? DEFAULT_DOWNLOAD.show,
14922
+ icon: 'path://M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 242.7-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7 288 32zM64 352c-35.3 0-64 28.7-64 64l0 32c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-32c0-35.3-28.7-64-64-64l-101.5 0-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352 64 352zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z',
14923
+ title: this.download.label ?? DEFAULT_DOWNLOAD.label,
14924
+ onclick: () => {
14925
+ setTimeout(() => {
14926
+ import('html2canvas').then(module => {
14927
+ const html2canvas = module.default;
14928
+ html2canvas(this.#chartContainer).then(canvas => {
14929
+ var link = this.#renderer.createElement('a');
14930
+ link.href = canvas.toDataURL('image/png');
14931
+ link.download = `${this.download.name ?? DEFAULT_DOWNLOAD.name}.png`;
14932
+ this.#renderer.appendChild(this.#document.body, link);
14933
+ link.click();
14934
+ this.#renderer.removeChild(this.#document.body, link);
14935
+ this.onDownload.emit();
14936
+ });
14117
14937
  });
14938
+ }, 500);
14939
+ }
14940
+ },
14941
+ myExpandChart: {
14942
+ show: this.expand.show ?? DEFAULT_EXPAND.show,
14943
+ icon: 'path://M264 96L120 96C106.7 96 96 106.7 96 120L96 264C96 273.7 101.8 282.5 110.8 286.2C119.8 289.9 130.1 287.8 137 281L177 241L256 320L177 399L137 359C130.1 352.1 119.8 350.1 110.8 353.8C101.8 357.5 96 366.3 96 376L96 520C96 533.3 106.7 544 120 544L264 544C273.7 544 282.5 538.2 286.2 529.2C289.9 520.2 287.9 509.9 281 503L241 463L320 384L399 463L359 503C352.1 509.9 350.1 520.2 353.8 529.2C357.5 538.2 366.3 544 376 544L520 544C533.3 544 544 533.3 544 520L544 376C544 366.3 538.2 357.5 529.2 353.8C520.2 350.1 509.9 352.1 503 359L463 399L384 320L463 241L503 281C509.9 287.9 520.2 289.9 529.2 286.2C538.2 282.5 544 273.7 544 264L544 120C544 106.7 533.3 96 520 96L376 96C366.3 96 357.5 101.8 353.8 110.8C350.1 119.8 352.2 130.1 359 137L399 177L320 256L241 177L281 137C287.9 130.1 289.9 119.8 286.2 110.8C282.5 101.8 273.7 96 264 96z',
14944
+ title: this.expand.label ?? DEFAULT_EXPAND.label,
14945
+ onclick: () => {
14946
+ this.#popup.open({
14947
+ component: BizyPieChartPopupComponent,
14948
+ data: {
14949
+ download: {
14950
+ show: this.download?.show ?? DEFAULT_DOWNLOAD.show,
14951
+ label: this.download?.label ?? DEFAULT_DOWNLOAD.label,
14952
+ name: this.download?.name ?? DEFAULT_DOWNLOAD.name,
14953
+ },
14954
+ option: this.#echarts.getOption()
14955
+ }
14118
14956
  });
14119
- }, 500);
14957
+ }
14120
14958
  }
14121
14959
  },
14122
- myExpandChart: {
14123
- show: this.expand.show ?? DEFAULT_EXPAND.show,
14124
- icon: 'path://M264 96L120 96C106.7 96 96 106.7 96 120L96 264C96 273.7 101.8 282.5 110.8 286.2C119.8 289.9 130.1 287.8 137 281L177 241L256 320L177 399L137 359C130.1 352.1 119.8 350.1 110.8 353.8C101.8 357.5 96 366.3 96 376L96 520C96 533.3 106.7 544 120 544L264 544C273.7 544 282.5 538.2 286.2 529.2C289.9 520.2 287.9 509.9 281 503L241 463L320 384L399 463L359 503C352.1 509.9 350.1 520.2 353.8 529.2C357.5 538.2 366.3 544 376 544L520 544C533.3 544 544 533.3 544 520L544 376C544 366.3 538.2 357.5 529.2 353.8C520.2 350.1 509.9 352.1 503 359L463 399L384 320L463 241L503 281C509.9 287.9 520.2 289.9 529.2 286.2C538.2 282.5 544 273.7 544 264L544 120C544 106.7 533.3 96 520 96L376 96C366.3 96 357.5 101.8 353.8 110.8C350.1 119.8 352.2 130.1 359 137L399 177L320 256L241 177L281 137C287.9 130.1 289.9 119.8 286.2 110.8C282.5 101.8 273.7 96 264 96z',
14125
- title: this.expand.label ?? DEFAULT_EXPAND.label,
14126
- onclick: () => {
14127
- this.#popup.open({
14128
- component: BizyPieChartPopupComponent,
14129
- data: {
14130
- download: {
14131
- show: this.download?.show ?? DEFAULT_DOWNLOAD.show,
14132
- label: this.download?.label ?? DEFAULT_DOWNLOAD.label,
14133
- name: this.download?.name ?? DEFAULT_DOWNLOAD.name,
14134
- },
14135
- option: this.#echarts.getOption()
14136
- }
14137
- });
14960
+ emphasis: {
14961
+ iconStyle: {
14962
+ color: textColor,
14963
+ borderColor,
14964
+ borderWidth: 1,
14965
+ textBackgroundColor,
14966
+ textPadding: 5,
14138
14967
  }
14139
14968
  }
14140
- },
14141
- emphasis: {
14142
- iconStyle: {
14143
- color: textColor,
14144
- borderColor,
14145
- borderWidth: 1,
14146
- textBackgroundColor,
14147
- textPadding: 5,
14148
- }
14149
- }
14150
- };
14151
- const tooltip = {
14152
- show: this.tooltip?.show ?? DEFAULT_TOOLTIP.show,
14153
- trigger: 'item',
14154
- appendToBody: true,
14155
- formatter: this.tooltip?.formatter
14156
- };
14157
- let legend = {};
14158
- if (this.legend) {
14159
- legend.show = this.legend.show;
14160
- legend.orient = this.legend.orient;
14161
- legend.left = this.legend.position ? this.legend.position.x : 'auto';
14162
- legend.top = this.legend.position ? this.legend.position.y : 'auto';
14163
- }
14164
- else {
14165
- legend = this.type === 'pie' ? { show: false } : {
14166
- show: true,
14167
- orient: 'vertical',
14168
- left: 'left'
14169
14969
  };
14170
- }
14171
- let graphic;
14172
- if (this.centerLabel) {
14173
- let centerLabelColor = this.#getClosestCssVariable(this.#elementRef.nativeElement, '--bizy-pie-chart-center-label-color');
14174
- let { width, height } = this.#chartContainer.getBoundingClientRect();
14175
- let base = Math.min(width, height);
14176
- let fontSize = base / 6;
14177
- graphic = {
14178
- type: 'text',
14179
- left: 'center',
14180
- top: 'center',
14181
- style: {
14182
- text: String(this.centerLabel.value),
14183
- fill: this.centerLabel.color || centerLabelColor,
14184
- textAlign: 'center',
14185
- fontSize,
14186
- fontWeight: 'bold'
14187
- }
14970
+ const tooltip = {
14971
+ show: this.tooltip?.show ?? DEFAULT_TOOLTIP.show,
14972
+ trigger: 'item',
14973
+ appendToBody: true,
14974
+ formatter: this.tooltip?.formatter
14188
14975
  };
14189
- }
14190
- const option = {
14191
- tooltip,
14192
- toolbox,
14193
- legend,
14194
- series,
14195
- graphic
14196
- };
14197
- import('echarts').then(echarts => {
14198
- this.#echarts = echarts.init(this.#chartContainer);
14199
- Promise.resolve().then(() => {
14200
- this.#echarts.setOption(option);
14201
- this.#echarts.on('click', params => {
14202
- this.onSelect.emit(params.name);
14203
- });
14204
- this.#resizeSubscription.unsubscribe();
14205
- this.#resizeObserver = new ResizeObserver(() => this.#resize$.next());
14206
- const resizeRef = this.resizeRef ? this.resizeRef : this.#renderer.parentNode(this.#elementRef.nativeElement) ? this.#renderer.parentNode(this.#elementRef.nativeElement) : this.#elementRef.nativeElement;
14207
- this.#resizeObserver.observe(resizeRef);
14208
- this.#resizeSubscription = new Subscription();
14209
- this.#resizeSubscription.add(this.#resize$.pipe(skip(1), auditTime(300), throttleTime(500)).subscribe(() => {
14210
- this.#deleteChartContainer();
14211
- this.#createChartContainer();
14212
- if (!this.#chartContainer) {
14213
- return;
14976
+ let legend = {
14977
+ show: this.legend?.show ?? DEFAULT_LEGEND.show,
14978
+ orient: this.legend?.orient ?? DEFAULT_LEGEND.orient,
14979
+ left: this.legend?.position ? this.legend?.position.x : DEFAULT_LEGEND.position.x,
14980
+ top: this.legend?.position ? this.legend?.position.y : DEFAULT_LEGEND.position.y,
14981
+ };
14982
+ let graphic;
14983
+ if (this.centerLabel) {
14984
+ let centerLabelColor = this.#getClosestCssVariable(this.#elementRef.nativeElement, '--bizy-pie-chart-center-label-color');
14985
+ let { width, height } = this.#chartContainer.getBoundingClientRect();
14986
+ let base = Math.min(width, height);
14987
+ let fontSize = base / 6;
14988
+ graphic = {
14989
+ type: 'text',
14990
+ left: 'center',
14991
+ top: 'center',
14992
+ style: {
14993
+ text: this.centerLabel,
14994
+ fill: centerLabelColor,
14995
+ textAlign: 'center',
14996
+ fontSize,
14997
+ fontWeight: 'bold'
14214
14998
  }
14215
- this.#echarts = echarts.init(this.#chartContainer);
14216
- Promise.resolve().then(() => {
14217
- this.#echarts.setOption({ ...option, series: option.series.map(_serie => { return { ..._serie, data: this.#data }; }) });
14218
- this.#echarts.on('click', params => {
14219
- this.onSelect.emit(params.name);
14999
+ };
15000
+ }
15001
+ const option = {
15002
+ tooltip,
15003
+ toolbox,
15004
+ legend,
15005
+ series,
15006
+ graphic
15007
+ };
15008
+ import('echarts').then(echarts => {
15009
+ this.#echarts = echarts.init(this.#chartContainer);
15010
+ Promise.resolve().then(() => {
15011
+ this.#echarts.setOption(option);
15012
+ this.#echarts.on('click', (params) => {
15013
+ this.onSelect.emit({
15014
+ name: params.data.name,
15015
+ value: params.data.value,
15016
+ color: params.data.itemStyle.color,
15017
+ metadata: params.data.metadata || {}
14220
15018
  });
14221
15019
  });
14222
- }));
15020
+ this.#resizeSubscription.unsubscribe();
15021
+ this.#resizeObserver = new ResizeObserver(() => this.#resize$.next());
15022
+ const resizeRef = this.resizeRef ? this.resizeRef : this.#renderer.parentNode(this.#elementRef.nativeElement) ? this.#renderer.parentNode(this.#elementRef.nativeElement) : this.#elementRef.nativeElement;
15023
+ this.#resizeObserver.observe(resizeRef);
15024
+ this.#resizeSubscription = new Subscription();
15025
+ this.#resizeSubscription.add(this.#resize$.pipe(skip(1), auditTime(300), throttleTime(500)).subscribe(() => {
15026
+ this.#deleteChartContainer();
15027
+ this.#createChartContainer();
15028
+ if (!this.#chartContainer) {
15029
+ return;
15030
+ }
15031
+ this.#echarts = echarts.init(this.#chartContainer);
15032
+ Promise.resolve().then(() => {
15033
+ this.#echarts.setOption({ ...option, series: option.series.map(_serie => { return { ..._serie, data: this.#data }; }) });
15034
+ this.#echarts.on('click', (params) => {
15035
+ this.onSelect.emit({
15036
+ name: params.data.name,
15037
+ value: params.data.value,
15038
+ color: params.data.itemStyle.color,
15039
+ metadata: params.data.metadata || {}
15040
+ });
15041
+ });
15042
+ });
15043
+ }));
15044
+ });
14223
15045
  });
14224
15046
  });
14225
15047
  }));
@@ -14232,7 +15054,7 @@ class BizyPieChartComponent {
14232
15054
  let elementHeight = this.#elementRef.nativeElement.offsetHeight;
14233
15055
  let minWidth = this.#getClosestCssVariable(this.#elementRef.nativeElement, '--bizy-pie-chart-width');
14234
15056
  let minHeight = this.#getClosestCssVariable(this.#elementRef.nativeElement, '--bizy-pie-chart-height');
14235
- const width = minWidth ? minWidth : elementWidth ? `${elementWidth}px` : DEFAULT_CHART_SIZE;
15057
+ const width = minWidth ? minWidth : elementWidth ? `${elementWidth * 0.99}px` : DEFAULT_CHART_SIZE;
14236
15058
  const height = minHeight ? minHeight : elementHeight ? `${elementHeight}px` : DEFAULT_CHART_SIZE;
14237
15059
  this.#chartContainer = this.#renderer.createElement('div');
14238
15060
  this.#renderer.setStyle(this.#chartContainer, 'width', width);
@@ -14271,15 +15093,13 @@ class BizyPieChartComponent {
14271
15093
  }
14272
15094
  }
14273
15095
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyPieChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
14274
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.5", type: BizyPieChartComponent, isStandalone: true, selector: "bizy-pie-chart", inputs: { resizeRef: "resizeRef", type: "type", centerLabel: "centerLabel", tooltip: "tooltip", legend: "legend", download: "download", expand: "expand", label: "label", data: "data" }, outputs: { onSelect: "onSelect", onDownload: "onDownload" }, ngImport: i0, template: '', isInline: true, styles: [":host{display:flex;justify-content:center}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
15096
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.5", type: BizyPieChartComponent, isStandalone: true, selector: "bizy-pie-chart", inputs: { resizeRef: "resizeRef", centerLabel: "centerLabel", tooltip: "tooltip", legend: "legend", download: "download", expand: "expand", label: "label", data: "data" }, outputs: { onSelect: "onSelect", onDownload: "onDownload" }, ngImport: i0, template: '', isInline: true, styles: [":host{display:flex;justify-content:center}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
14275
15097
  }
14276
15098
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImport: i0, type: BizyPieChartComponent, decorators: [{
14277
15099
  type: Component,
14278
- args: [{ selector: 'bizy-pie-chart', template: '', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:flex;justify-content:center}\n"] }]
15100
+ args: [{ selector: 'bizy-pie-chart', template: '', changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:flex;justify-content:center}\n"] }]
14279
15101
  }], propDecorators: { resizeRef: [{
14280
15102
  type: Input
14281
- }], type: [{
14282
- type: Input
14283
15103
  }], centerLabel: [{
14284
15104
  type: Input
14285
15105
  }], tooltip: [{
@@ -17600,5 +18420,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.5", ngImpor
17600
18420
  * Generated bundle index. Do not edit.
17601
18421
  */
17602
18422
 
17603
- export { BIZY_ANIMATION, BIZY_CALENDAR_DAY, BIZY_CALENDAR_EVENT_ACTION, BIZY_CALENDAR_LANGUAGE, BIZY_CALENDAR_MODE, BIZY_FORMAT_SECONDS_FORMAT, BIZY_FORMAT_SECONDS_LANGUAGE, BIZY_SKELETON_SHAPE, BIZY_TAG_TYPE, BizyAccordionComponent, BizyAccordionModule, BizyAnimationService, BizyAudioPlayerComponent, BizyAudioPlayerFormatSecondsPipe, BizyAudioPlayerModule, BizyAudioRecorderComponent, BizyAudioRecorderModule, BizyAutoFocusDirective, BizyAveragePipe, BizyBarLineChartComponent, BizyBarLineChartModule, BizyBarLineChartPopupComponent, BizyBreadcrumbComponent, BizyBreadcrumbModule, BizyButtonComponent, BizyButtonModule, BizyCacheService, BizyCalendarComponent, BizyCalendarModule, BizyCardComponent, BizyCardModule, BizyCheckboxComponent, BizyCheckboxModule, BizyContentComponent, BizyContentModule, BizyCopyToClipboardDirective, BizyCopyToClipboardService, BizyCurrencyFormatDirective, BizyDatePickerComponent, BizyDatePickerModule, BizyDeviceService, BizyDirectivesModule, BizyEnumToArrayPipe, BizyExportToCSVService, BizyExtractNumbersPipe, BizyFileUploaderComponent, BizyFileUploaderModule, BizyFileUploaderService, BizyFilterComponent, BizyFilterContentComponent, BizyFilterModule, BizyFilterPipe, BizyFilterSectionCheckboxOptionComponent, BizyFilterSectionComponent, BizyFilterSectionRangeOptionComponent, BizyFilterSectionSearchOptionComponent, BizyFilterSectionsComponent, BizyFormComponent, BizyFormModule, BizyFormatSecondsPipe, BizyFormatSecondsService, BizyFullScreenPopupWrapperComponent, BizyGridComponent, BizyGridForDirective, BizyGridModule, BizyGridRowComponent, BizyHeatMapChartComponent, BizyHeatMapChartModule, BizyInputComponent, BizyInputModule, BizyInputOptionComponent, BizyKeyboardService, BizyListComponent, BizyListModule, BizyLoadingDirective, BizyLogService, BizyLongPressDirective, BizyMenuBarComponent, BizyMenuBarModule, BizyMenuBarOptionComponent, BizyMenuComponent, BizyMenuModule, BizyMenuOptionComponent, BizyMenuTitleComponent, BizyOnlyNumbersDirective, BizyOnlyPhoneDigitsDirective, BizyOrderByPipe, BizyPieChartComponent, BizyPieChartModule, BizyPieChartPopupComponent, BizyPipesModule, BizyPopupModule, BizyPopupService, BizyPopupWrapperComponent, BizyProgressBarComponent, BizyProgressBarModule, BizyRadioComponent, BizyRadioModule, BizyRangeFilterPipe, BizyReducePipe, BizyReloadDirective, BizyRepeatPipe, BizyRoundPipe, BizyRouterService, BizySafePipe, BizySearchPipe, BizySectionCenterComponent, BizySectionComponent, BizySectionEndComponent, BizySectionModule, BizySectionStartComponent, BizySelectComponent, BizySelectModule, BizySelectOptionComponent, BizyServicesModule, BizySetToArrayPipe, BizySidebarComponent, BizySidebarFloatingOptionComponent, BizySidebarFloatingOptionTitleComponent, BizySidebarModule, BizySidebarOptionComponent, BizySkeletonComponent, BizySkeletonModule, BizySliderComponent, BizySliderModule, BizyStorageService, BizyTabComponent, BizyTableColumnArrowsComponent, BizyTableColumnComponent, BizyTableColumnFixedDirective, BizyTableComponent, BizyTableFooterComponent, BizyTableHeaderComponent, BizyTableModule, BizyTableRowComponent, BizyTableRowExpandContentComponent, BizyTableScrollingComponent, BizyTableScrollingDirective, BizyTabsComponent, BizyTabsModule, BizyTagComponent, BizyTagModule, BizyTextEllipsisDirective, BizyTimelineComponent, BizyTimelineEventComponent, BizyTimelineModule, BizyToastModule, BizyToastService, BizyToastWrapperComponent, BizyToggleComponent, BizyToggleModule, BizyToolbarComponent, BizyToolbarModule, BizyTooltipDirective, BizyTrackByIdDirective, BizyTranslateModule, BizyTranslatePipe, BizyTranslateService, BizyUniquePipe, BizyValidatorService, BizyViewportService, LANGUAGE, LOADING_TYPE, MIME_TYPE, POPUP_PLACEMENT };
18423
+ export { BIZY_ANIMATION, BIZY_CALENDAR_DAY, BIZY_CALENDAR_EVENT_ACTION, BIZY_CALENDAR_LANGUAGE, BIZY_CALENDAR_MODE, BIZY_FORMAT_SECONDS_FORMAT, BIZY_FORMAT_SECONDS_LANGUAGE, BIZY_SKELETON_SHAPE, BIZY_TAG_TYPE, BizyAccordionComponent, BizyAccordionModule, BizyAnimationService, BizyAudioPlayerComponent, BizyAudioPlayerFormatSecondsPipe, BizyAudioPlayerModule, BizyAudioRecorderComponent, BizyAudioRecorderModule, BizyAutoFocusDirective, BizyAveragePipe, BizyBarLineChartComponent, BizyBarLineChartModule, BizyBarLineChartPopupComponent, BizyBreadcrumbComponent, BizyBreadcrumbModule, BizyButtonComponent, BizyButtonModule, BizyCacheService, BizyCalendarComponent, BizyCalendarModule, BizyCardComponent, BizyCardModule, BizyCheckboxComponent, BizyCheckboxModule, BizyContentComponent, BizyContentModule, BizyCopyToClipboardDirective, BizyCopyToClipboardService, BizyCurrencyFormatDirective, BizyDatePickerComponent, BizyDatePickerModule, BizyDeviceService, BizyDirectivesModule, BizyDonutChartComponent, BizyDonutChartModule, BizyDonutChartPopupComponent, BizyEnumToArrayPipe, BizyExportToCSVService, BizyExtractNumbersPipe, BizyFileUploaderComponent, BizyFileUploaderModule, BizyFileUploaderService, BizyFilterComponent, BizyFilterContentComponent, BizyFilterModule, BizyFilterPipe, BizyFilterSectionCheckboxOptionComponent, BizyFilterSectionComponent, BizyFilterSectionRangeOptionComponent, BizyFilterSectionSearchOptionComponent, BizyFilterSectionsComponent, BizyFormComponent, BizyFormModule, BizyFormatSecondsPipe, BizyFormatSecondsService, BizyFullScreenPopupWrapperComponent, BizyGaugeChartComponent, BizyGaugeChartModule, BizyGaugeChartPopupComponent, BizyGridComponent, BizyGridForDirective, BizyGridModule, BizyGridRowComponent, BizyHeatMapChartComponent, BizyHeatMapChartModule, BizyInputComponent, BizyInputModule, BizyInputOptionComponent, BizyKeyboardService, BizyListComponent, BizyListModule, BizyLoadingDirective, BizyLogService, BizyLongPressDirective, BizyMenuBarComponent, BizyMenuBarModule, BizyMenuBarOptionComponent, BizyMenuComponent, BizyMenuModule, BizyMenuOptionComponent, BizyMenuTitleComponent, BizyOnlyNumbersDirective, BizyOnlyPhoneDigitsDirective, BizyOrderByPipe, BizyPieChartComponent, BizyPieChartModule, BizyPieChartPopupComponent, BizyPipesModule, BizyPopupModule, BizyPopupService, BizyPopupWrapperComponent, BizyProgressBarComponent, BizyProgressBarModule, BizyRadioComponent, BizyRadioModule, BizyRangeFilterPipe, BizyReducePipe, BizyReloadDirective, BizyRepeatPipe, BizyRoundPipe, BizyRouterService, BizySafePipe, BizySearchPipe, BizySectionCenterComponent, BizySectionComponent, BizySectionEndComponent, BizySectionModule, BizySectionStartComponent, BizySelectComponent, BizySelectModule, BizySelectOptionComponent, BizyServicesModule, BizySetToArrayPipe, BizySidebarComponent, BizySidebarFloatingOptionComponent, BizySidebarFloatingOptionTitleComponent, BizySidebarModule, BizySidebarOptionComponent, BizySkeletonComponent, BizySkeletonModule, BizySliderComponent, BizySliderModule, BizyStorageService, BizyTabComponent, BizyTableColumnArrowsComponent, BizyTableColumnComponent, BizyTableColumnFixedDirective, BizyTableComponent, BizyTableFooterComponent, BizyTableHeaderComponent, BizyTableModule, BizyTableRowComponent, BizyTableRowExpandContentComponent, BizyTableScrollingComponent, BizyTableScrollingDirective, BizyTabsComponent, BizyTabsModule, BizyTagComponent, BizyTagModule, BizyTextEllipsisDirective, BizyTimelineComponent, BizyTimelineEventComponent, BizyTimelineModule, BizyToastModule, BizyToastService, BizyToastWrapperComponent, BizyToggleComponent, BizyToggleModule, BizyToolbarComponent, BizyToolbarModule, BizyTooltipDirective, BizyTrackByIdDirective, BizyTranslateModule, BizyTranslatePipe, BizyTranslateService, BizyUniquePipe, BizyValidatorService, BizyViewportService, LANGUAGE, LOADING_TYPE, MIME_TYPE, POPUP_PLACEMENT };
17604
18424
  //# sourceMappingURL=bizy-core.mjs.map