@bizy/core 20.3.2 → 20.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/bizy-core.mjs +339 -90
- package/fesm2022/bizy-core.mjs.map +1 -1
- package/index.d.ts +48 -4
- package/package.json +1 -1
- package/styles/variables.css +9 -2
package/fesm2022/bizy-core.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { inject, ChangeDetectorRef, ElementRef, EventEmitter, Output, Input, ChangeDetectionStrategy, Component, NgModule, DOCUMENT, Renderer2, Injectable, Inject, Directive, ViewChild, ContentChildren, ContentChild, Pipe, ViewContainerRef, TemplateRef, RendererFactory2, HostListener, Host } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
|
-
import { CommonModule, registerLocaleData, DatePipe } from '@angular/common';
|
|
4
|
+
import { CommonModule, registerLocaleData, DatePipe, DOCUMENT as DOCUMENT$1 } from '@angular/common';
|
|
5
5
|
import { Subject, Subscription, BehaviorSubject, filter, take, skip, auditTime, throttleTime, debounceTime as debounceTime$1, interval, fromEvent, merge } from 'rxjs';
|
|
6
6
|
import { debounceTime, distinctUntilChanged, takeUntil, map, filter as filter$1, take as take$1 } from 'rxjs/operators';
|
|
7
7
|
import html2canvas from 'html2canvas';
|
|
@@ -77,19 +77,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
|
|
|
77
77
|
type: Output
|
|
78
78
|
}] } });
|
|
79
79
|
|
|
80
|
-
const COMPONENTS$
|
|
80
|
+
const COMPONENTS$w = [
|
|
81
81
|
BizyAccordionComponent,
|
|
82
82
|
];
|
|
83
83
|
class BizyAccordionModule {
|
|
84
84
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyAccordionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
85
85
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.5", ngImport: i0, type: BizyAccordionModule, imports: [BizyAccordionComponent], exports: [BizyAccordionComponent] });
|
|
86
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyAccordionModule, imports: [COMPONENTS$
|
|
86
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyAccordionModule, imports: [COMPONENTS$w] });
|
|
87
87
|
}
|
|
88
88
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyAccordionModule, decorators: [{
|
|
89
89
|
type: NgModule,
|
|
90
90
|
args: [{
|
|
91
|
-
imports: COMPONENTS$
|
|
92
|
-
exports: COMPONENTS$
|
|
91
|
+
imports: COMPONENTS$w,
|
|
92
|
+
exports: COMPONENTS$w
|
|
93
93
|
}]
|
|
94
94
|
}] });
|
|
95
95
|
|
|
@@ -133,19 +133,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
|
|
|
133
133
|
type: Output
|
|
134
134
|
}] } });
|
|
135
135
|
|
|
136
|
-
const COMPONENTS$
|
|
136
|
+
const COMPONENTS$v = [
|
|
137
137
|
BizyButtonComponent,
|
|
138
138
|
];
|
|
139
139
|
class BizyButtonModule {
|
|
140
140
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
141
141
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.5", ngImport: i0, type: BizyButtonModule, imports: [BizyButtonComponent], exports: [BizyButtonComponent] });
|
|
142
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyButtonModule, imports: [COMPONENTS$
|
|
142
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyButtonModule, imports: [COMPONENTS$v] });
|
|
143
143
|
}
|
|
144
144
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyButtonModule, decorators: [{
|
|
145
145
|
type: NgModule,
|
|
146
146
|
args: [{
|
|
147
|
-
imports: COMPONENTS$
|
|
148
|
-
exports: COMPONENTS$
|
|
147
|
+
imports: COMPONENTS$v,
|
|
148
|
+
exports: COMPONENTS$v
|
|
149
149
|
}]
|
|
150
150
|
}] });
|
|
151
151
|
|
|
@@ -297,25 +297,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
|
|
|
297
297
|
type: Input
|
|
298
298
|
}] } });
|
|
299
299
|
|
|
300
|
-
const COMPONENTS$
|
|
300
|
+
const COMPONENTS$u = [
|
|
301
301
|
BizyAudioPlayerComponent,
|
|
302
302
|
];
|
|
303
303
|
class BizyAudioPlayerModule {
|
|
304
304
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyAudioPlayerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
305
305
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.5", ngImport: i0, type: BizyAudioPlayerModule, imports: [BizyAudioPlayerComponent], exports: [BizyAudioPlayerComponent] });
|
|
306
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyAudioPlayerModule, imports: [COMPONENTS$
|
|
306
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyAudioPlayerModule, imports: [COMPONENTS$u] });
|
|
307
307
|
}
|
|
308
308
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyAudioPlayerModule, decorators: [{
|
|
309
309
|
type: NgModule,
|
|
310
310
|
args: [{
|
|
311
|
-
imports: COMPONENTS$
|
|
312
|
-
exports: COMPONENTS$
|
|
311
|
+
imports: COMPONENTS$u,
|
|
312
|
+
exports: COMPONENTS$u
|
|
313
313
|
}]
|
|
314
314
|
}] });
|
|
315
315
|
|
|
316
|
-
const MIN_CHART_SIZE = 350; // px;
|
|
317
316
|
const Y_AXIS_OFFSET = 80;
|
|
318
317
|
const GRID_BOTTOM = 30;
|
|
318
|
+
const DEFAULT_CHART_SIZE$2 = '300px';
|
|
319
319
|
class BizyBarLineChartComponent {
|
|
320
320
|
#elementRef = inject(ElementRef);
|
|
321
321
|
#document = inject(DOCUMENT);
|
|
@@ -323,7 +323,7 @@ class BizyBarLineChartComponent {
|
|
|
323
323
|
#renderer = inject(Renderer2);
|
|
324
324
|
resizeRef = null;
|
|
325
325
|
tooltip = true;
|
|
326
|
-
download = {
|
|
326
|
+
download = { show: true, label: 'Descargar', name: 'Bizy' };
|
|
327
327
|
axisPointer = 'line';
|
|
328
328
|
xAxisLabels = [];
|
|
329
329
|
onTooltipFormatter;
|
|
@@ -331,7 +331,6 @@ class BizyBarLineChartComponent {
|
|
|
331
331
|
onDownload = new EventEmitter();
|
|
332
332
|
onSelect = new EventEmitter();
|
|
333
333
|
#echarts = null;
|
|
334
|
-
#mutationObserver = null;
|
|
335
334
|
#resizeObserver = null;
|
|
336
335
|
#subscription = new Subscription();
|
|
337
336
|
#chartContainer = null;
|
|
@@ -343,14 +342,9 @@ class BizyBarLineChartComponent {
|
|
|
343
342
|
#chartStacks = [];
|
|
344
343
|
#chartNames = [];
|
|
345
344
|
ngAfterViewInit() {
|
|
346
|
-
this.#
|
|
347
|
-
if (this.#elementRef && this.#elementRef.nativeElement && (this.#elementRef.nativeElement.offsetWidth || this.#elementRef.nativeElement.offsetHeight)) {
|
|
348
|
-
this.#afterViewInit.next(true);
|
|
349
|
-
this.#mutationObserver.disconnect();
|
|
350
|
-
}
|
|
351
|
-
});
|
|
352
|
-
this.#mutationObserver.observe(this.#document.body, { childList: true, subtree: true });
|
|
345
|
+
this.#afterViewInit.next(true);
|
|
353
346
|
}
|
|
347
|
+
getNativeElement = () => this.#elementRef?.nativeElement;
|
|
354
348
|
set data(data) {
|
|
355
349
|
if (!data) {
|
|
356
350
|
return;
|
|
@@ -496,14 +490,14 @@ class BizyBarLineChartComponent {
|
|
|
496
490
|
bottom: 0,
|
|
497
491
|
data: legends
|
|
498
492
|
};
|
|
499
|
-
const textColor =
|
|
500
|
-
const textBackgroundColor =
|
|
501
|
-
const borderColor =
|
|
493
|
+
const textColor = this.#getClosestCssVariable(this.#elementRef.nativeElement, '--bizy-bar-line-chart-tooltip-color');
|
|
494
|
+
const textBackgroundColor = this.#getClosestCssVariable(this.#elementRef.nativeElement, '--bizy-bar-line-chart-tooltip-background-color');
|
|
495
|
+
const borderColor = this.#getClosestCssVariable(this.#elementRef.nativeElement, '--bizy-bar-line-chart-tooltip-border-color');
|
|
502
496
|
const toolbox = {
|
|
503
497
|
show: true,
|
|
504
498
|
feature: {
|
|
505
499
|
mySaveAsImage: {
|
|
506
|
-
show:
|
|
500
|
+
show: this.download.show,
|
|
507
501
|
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',
|
|
508
502
|
title: this.download.label,
|
|
509
503
|
onclick: () => {
|
|
@@ -532,7 +526,7 @@ class BizyBarLineChartComponent {
|
|
|
532
526
|
showAllLegends(this.#echarts);
|
|
533
527
|
setTimeout(() => {
|
|
534
528
|
html2canvas(this.#chartContainer).then(canvas => {
|
|
535
|
-
var link =
|
|
529
|
+
var link = this.#renderer.createElement('a');
|
|
536
530
|
link.href = canvas.toDataURL('image/png');
|
|
537
531
|
link.download = `${this.download.name}.png`;
|
|
538
532
|
this.#renderer.appendChild(this.#document.body, link);
|
|
@@ -592,23 +586,15 @@ class BizyBarLineChartComponent {
|
|
|
592
586
|
if (this.#chartContainer || !this.#elementRef || !this.#elementRef.nativeElement) {
|
|
593
587
|
return;
|
|
594
588
|
}
|
|
595
|
-
let elementWidth = this.#elementRef.nativeElement.offsetWidth
|
|
596
|
-
let elementHeight = this.#elementRef.nativeElement.offsetHeight
|
|
597
|
-
let minWidth =
|
|
598
|
-
let minHeight =
|
|
599
|
-
const
|
|
600
|
-
const
|
|
601
|
-
if (Number(barChartMinWidth)) {
|
|
602
|
-
minWidth = Number(barChartMinWidth);
|
|
603
|
-
}
|
|
604
|
-
if (Number(barChartMinHeight)) {
|
|
605
|
-
minHeight = Number(barChartMinHeight);
|
|
606
|
-
}
|
|
607
|
-
const width = Math.max(elementWidth, minWidth);
|
|
608
|
-
const height = Math.max(elementHeight, minHeight);
|
|
589
|
+
let elementWidth = this.#elementRef.nativeElement.offsetWidth;
|
|
590
|
+
let elementHeight = this.#elementRef.nativeElement.offsetHeight;
|
|
591
|
+
let minWidth = this.#getClosestCssVariable(this.#elementRef.nativeElement, '--bizy-bar-line-chart-width');
|
|
592
|
+
let minHeight = this.#getClosestCssVariable(this.#elementRef.nativeElement, '--bizy-bar-line-chart-height');
|
|
593
|
+
const width = minWidth ? minWidth : elementWidth ? `${elementWidth}px` : DEFAULT_CHART_SIZE$2;
|
|
594
|
+
const height = minHeight ? minHeight : elementHeight ? `${elementHeight}px` : DEFAULT_CHART_SIZE$2;
|
|
609
595
|
this.#chartContainer = this.#renderer.createElement('div');
|
|
610
|
-
this.#renderer.setStyle(this.#chartContainer, 'width',
|
|
611
|
-
this.#renderer.setStyle(this.#chartContainer, 'height',
|
|
596
|
+
this.#renderer.setStyle(this.#chartContainer, 'width', width);
|
|
597
|
+
this.#renderer.setStyle(this.#chartContainer, 'height', height);
|
|
612
598
|
this.#renderer.appendChild(this.#elementRef.nativeElement, this.#chartContainer);
|
|
613
599
|
this.#ref.detectChanges();
|
|
614
600
|
};
|
|
@@ -621,12 +607,19 @@ class BizyBarLineChartComponent {
|
|
|
621
607
|
this.#chartContainer = null;
|
|
622
608
|
this.#ref.detectChanges();
|
|
623
609
|
};
|
|
624
|
-
|
|
610
|
+
#getClosestCssVariable = (element, cssVariable) => {
|
|
611
|
+
while (element) {
|
|
612
|
+
const value = getComputedStyle(element).getPropertyValue(cssVariable).trim();
|
|
613
|
+
if (value) {
|
|
614
|
+
return value;
|
|
615
|
+
}
|
|
616
|
+
element = element.parentElement;
|
|
617
|
+
}
|
|
618
|
+
const rootValue = getComputedStyle(this.#document.documentElement).getPropertyValue(cssVariable).trim();
|
|
619
|
+
return rootValue;
|
|
620
|
+
};
|
|
625
621
|
ngOnDestroy() {
|
|
626
622
|
this.#subscription.unsubscribe();
|
|
627
|
-
if (this.#mutationObserver) {
|
|
628
|
-
this.#mutationObserver.disconnect();
|
|
629
|
-
}
|
|
630
623
|
if (this.#resizeObserver) {
|
|
631
624
|
this.#resizeObserver.disconnect();
|
|
632
625
|
}
|
|
@@ -667,19 +660,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
|
|
|
667
660
|
type: Input
|
|
668
661
|
}] } });
|
|
669
662
|
|
|
670
|
-
const COMPONENTS$
|
|
663
|
+
const COMPONENTS$t = [
|
|
671
664
|
BizyBarLineChartComponent,
|
|
672
665
|
];
|
|
673
666
|
class BizyBarLineChartModule {
|
|
674
667
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyBarLineChartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
675
668
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.5", ngImport: i0, type: BizyBarLineChartModule, imports: [BizyBarLineChartComponent], exports: [BizyBarLineChartComponent] });
|
|
676
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyBarLineChartModule, imports: [COMPONENTS$
|
|
669
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyBarLineChartModule, imports: [COMPONENTS$t] });
|
|
677
670
|
}
|
|
678
671
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyBarLineChartModule, decorators: [{
|
|
679
672
|
type: NgModule,
|
|
680
673
|
args: [{
|
|
681
|
-
imports: COMPONENTS$
|
|
682
|
-
exports: COMPONENTS$
|
|
674
|
+
imports: COMPONENTS$t,
|
|
675
|
+
exports: COMPONENTS$t
|
|
683
676
|
}]
|
|
684
677
|
}] });
|
|
685
678
|
|
|
@@ -738,19 +731,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
|
|
|
738
731
|
type: Input
|
|
739
732
|
}] } });
|
|
740
733
|
|
|
741
|
-
const COMPONENTS$
|
|
734
|
+
const COMPONENTS$s = [
|
|
742
735
|
BizyBreadcrumbComponent,
|
|
743
736
|
];
|
|
744
737
|
class BizyBreadcrumbModule {
|
|
745
738
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyBreadcrumbModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
746
739
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.5", ngImport: i0, type: BizyBreadcrumbModule, imports: [BizyBreadcrumbComponent], exports: [BizyBreadcrumbComponent] });
|
|
747
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyBreadcrumbModule, imports: [COMPONENTS$
|
|
740
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyBreadcrumbModule, imports: [COMPONENTS$s] });
|
|
748
741
|
}
|
|
749
742
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyBreadcrumbModule, decorators: [{
|
|
750
743
|
type: NgModule,
|
|
751
744
|
args: [{
|
|
752
|
-
imports: COMPONENTS$
|
|
753
|
-
exports: COMPONENTS$
|
|
745
|
+
imports: COMPONENTS$s,
|
|
746
|
+
exports: COMPONENTS$s
|
|
754
747
|
}]
|
|
755
748
|
}] });
|
|
756
749
|
|
|
@@ -1021,19 +1014,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
|
|
|
1021
1014
|
type: Input
|
|
1022
1015
|
}] } });
|
|
1023
1016
|
|
|
1024
|
-
const COMPONENTS$
|
|
1017
|
+
const COMPONENTS$r = [
|
|
1025
1018
|
BizyCalendarComponent,
|
|
1026
1019
|
];
|
|
1027
1020
|
class BizyCalendarModule {
|
|
1028
1021
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyCalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1029
1022
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.5", ngImport: i0, type: BizyCalendarModule, imports: [BizyCalendarComponent], exports: [BizyCalendarComponent] });
|
|
1030
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyCalendarModule, imports: [COMPONENTS$
|
|
1023
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyCalendarModule, imports: [COMPONENTS$r] });
|
|
1031
1024
|
}
|
|
1032
1025
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyCalendarModule, decorators: [{
|
|
1033
1026
|
type: NgModule,
|
|
1034
1027
|
args: [{
|
|
1035
|
-
imports: COMPONENTS$
|
|
1036
|
-
exports: COMPONENTS$
|
|
1028
|
+
imports: COMPONENTS$r,
|
|
1029
|
+
exports: COMPONENTS$r
|
|
1037
1030
|
}]
|
|
1038
1031
|
}] });
|
|
1039
1032
|
|
|
@@ -1069,19 +1062,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
|
|
|
1069
1062
|
type: Output
|
|
1070
1063
|
}] } });
|
|
1071
1064
|
|
|
1072
|
-
const COMPONENTS$
|
|
1065
|
+
const COMPONENTS$q = [
|
|
1073
1066
|
BizyCardComponent,
|
|
1074
1067
|
];
|
|
1075
1068
|
class BizyCardModule {
|
|
1076
1069
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1077
1070
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.5", ngImport: i0, type: BizyCardModule, imports: [BizyCardComponent], exports: [BizyCardComponent] });
|
|
1078
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyCardModule, imports: [COMPONENTS$
|
|
1071
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyCardModule, imports: [COMPONENTS$q] });
|
|
1079
1072
|
}
|
|
1080
1073
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyCardModule, decorators: [{
|
|
1081
1074
|
type: NgModule,
|
|
1082
1075
|
args: [{
|
|
1083
|
-
imports: COMPONENTS$
|
|
1084
|
-
exports: COMPONENTS$
|
|
1076
|
+
imports: COMPONENTS$q,
|
|
1077
|
+
exports: COMPONENTS$q
|
|
1085
1078
|
}]
|
|
1086
1079
|
}] });
|
|
1087
1080
|
|
|
@@ -1119,19 +1112,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
|
|
|
1119
1112
|
type: Output
|
|
1120
1113
|
}] } });
|
|
1121
1114
|
|
|
1122
|
-
const COMPONENTS$
|
|
1115
|
+
const COMPONENTS$p = [
|
|
1123
1116
|
BizyCheckboxComponent,
|
|
1124
1117
|
];
|
|
1125
1118
|
class BizyCheckboxModule {
|
|
1126
1119
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1127
1120
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.5", ngImport: i0, type: BizyCheckboxModule, imports: [BizyCheckboxComponent], exports: [BizyCheckboxComponent] });
|
|
1128
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyCheckboxModule, imports: [COMPONENTS$
|
|
1121
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyCheckboxModule, imports: [COMPONENTS$p] });
|
|
1129
1122
|
}
|
|
1130
1123
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyCheckboxModule, decorators: [{
|
|
1131
1124
|
type: NgModule,
|
|
1132
1125
|
args: [{
|
|
1133
|
-
imports: COMPONENTS$
|
|
1134
|
-
exports: COMPONENTS$
|
|
1126
|
+
imports: COMPONENTS$p,
|
|
1127
|
+
exports: COMPONENTS$p
|
|
1135
1128
|
}]
|
|
1136
1129
|
}] });
|
|
1137
1130
|
|
|
@@ -1146,19 +1139,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
|
|
|
1146
1139
|
args: [{ selector: 'bizy-content', imports: [CommonModule], 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"] }]
|
|
1147
1140
|
}] });
|
|
1148
1141
|
|
|
1149
|
-
const COMPONENTS$
|
|
1142
|
+
const COMPONENTS$o = [
|
|
1150
1143
|
BizyContentComponent,
|
|
1151
1144
|
];
|
|
1152
1145
|
class BizyContentModule {
|
|
1153
1146
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyContentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1154
1147
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.5", ngImport: i0, type: BizyContentModule, imports: [BizyContentComponent], exports: [BizyContentComponent] });
|
|
1155
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyContentModule, imports: [COMPONENTS$
|
|
1148
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyContentModule, imports: [COMPONENTS$o] });
|
|
1156
1149
|
}
|
|
1157
1150
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyContentModule, decorators: [{
|
|
1158
1151
|
type: NgModule,
|
|
1159
1152
|
args: [{
|
|
1160
|
-
imports: COMPONENTS$
|
|
1161
|
-
exports: COMPONENTS$
|
|
1153
|
+
imports: COMPONENTS$o,
|
|
1154
|
+
exports: COMPONENTS$o
|
|
1162
1155
|
}]
|
|
1163
1156
|
}] });
|
|
1164
1157
|
|
|
@@ -1666,19 +1659,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
|
|
|
1666
1659
|
type: Input
|
|
1667
1660
|
}] } });
|
|
1668
1661
|
|
|
1669
|
-
const COMPONENTS$
|
|
1662
|
+
const COMPONENTS$n = [
|
|
1670
1663
|
BizyDatePickerComponent,
|
|
1671
1664
|
];
|
|
1672
1665
|
class BizyDatePickerModule {
|
|
1673
1666
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyDatePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1674
1667
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.5", ngImport: i0, type: BizyDatePickerModule, imports: [BizyDatePickerComponent], exports: [BizyDatePickerComponent] });
|
|
1675
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyDatePickerModule, imports: [COMPONENTS$
|
|
1668
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyDatePickerModule, imports: [COMPONENTS$n] });
|
|
1676
1669
|
}
|
|
1677
1670
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyDatePickerModule, decorators: [{
|
|
1678
1671
|
type: NgModule,
|
|
1679
1672
|
args: [{
|
|
1680
|
-
imports: COMPONENTS$
|
|
1681
|
-
exports: COMPONENTS$
|
|
1673
|
+
imports: COMPONENTS$n,
|
|
1674
|
+
exports: COMPONENTS$n
|
|
1682
1675
|
}]
|
|
1683
1676
|
}] });
|
|
1684
1677
|
|
|
@@ -2020,7 +2013,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
|
|
|
2020
2013
|
type: Output
|
|
2021
2014
|
}] } });
|
|
2022
2015
|
|
|
2023
|
-
const COMPONENTS$
|
|
2016
|
+
const COMPONENTS$m = [
|
|
2024
2017
|
BizyFileUploaderComponent,
|
|
2025
2018
|
];
|
|
2026
2019
|
class BizyFileUploaderModule {
|
|
@@ -2031,8 +2024,8 @@ class BizyFileUploaderModule {
|
|
|
2031
2024
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyFileUploaderModule, decorators: [{
|
|
2032
2025
|
type: NgModule,
|
|
2033
2026
|
args: [{
|
|
2034
|
-
imports: COMPONENTS$
|
|
2035
|
-
exports: COMPONENTS$
|
|
2027
|
+
imports: COMPONENTS$m,
|
|
2028
|
+
exports: COMPONENTS$m,
|
|
2036
2029
|
providers: [BizyFileUploaderService]
|
|
2037
2030
|
}]
|
|
2038
2031
|
}] });
|
|
@@ -2637,7 +2630,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
|
|
|
2637
2630
|
}]
|
|
2638
2631
|
}] });
|
|
2639
2632
|
|
|
2640
|
-
const COMPONENTS$
|
|
2633
|
+
const COMPONENTS$l = [
|
|
2641
2634
|
BizyFilterComponent,
|
|
2642
2635
|
BizyFilterSectionComponent,
|
|
2643
2636
|
BizyFilterContentComponent,
|
|
@@ -2676,8 +2669,8 @@ class BizyFilterModule {
|
|
|
2676
2669
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyFilterModule, decorators: [{
|
|
2677
2670
|
type: NgModule,
|
|
2678
2671
|
args: [{
|
|
2679
|
-
imports: COMPONENTS$
|
|
2680
|
-
exports: COMPONENTS$
|
|
2672
|
+
imports: COMPONENTS$l.concat(PIPES$1),
|
|
2673
|
+
exports: COMPONENTS$l.concat(PIPES$1),
|
|
2681
2674
|
providers: PIPES$1
|
|
2682
2675
|
}]
|
|
2683
2676
|
}] });
|
|
@@ -2910,19 +2903,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
|
|
|
2910
2903
|
type: Input
|
|
2911
2904
|
}] } });
|
|
2912
2905
|
|
|
2913
|
-
const COMPONENTS$
|
|
2906
|
+
const COMPONENTS$k = [
|
|
2914
2907
|
BizyFormComponent,
|
|
2915
2908
|
];
|
|
2916
2909
|
class BizyFormModule {
|
|
2917
2910
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2918
2911
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.5", ngImport: i0, type: BizyFormModule, imports: [BizyFormComponent], exports: [BizyFormComponent] });
|
|
2919
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyFormModule, imports: [COMPONENTS$
|
|
2912
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyFormModule, imports: [COMPONENTS$k] });
|
|
2920
2913
|
}
|
|
2921
2914
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyFormModule, decorators: [{
|
|
2922
2915
|
type: NgModule,
|
|
2923
2916
|
args: [{
|
|
2924
|
-
imports: COMPONENTS$
|
|
2925
|
-
exports: COMPONENTS$
|
|
2917
|
+
imports: COMPONENTS$k,
|
|
2918
|
+
exports: COMPONENTS$k,
|
|
2926
2919
|
}]
|
|
2927
2920
|
}] });
|
|
2928
2921
|
|
|
@@ -3110,7 +3103,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
|
|
|
3110
3103
|
type: Input
|
|
3111
3104
|
}] } });
|
|
3112
3105
|
|
|
3113
|
-
const COMPONENTS$
|
|
3106
|
+
const COMPONENTS$j = [
|
|
3114
3107
|
BizyGridComponent,
|
|
3115
3108
|
BizyGridRowComponent
|
|
3116
3109
|
];
|
|
@@ -3128,8 +3121,264 @@ class BizyGridModule {
|
|
|
3128
3121
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyGridModule, decorators: [{
|
|
3129
3122
|
type: NgModule,
|
|
3130
3123
|
args: [{
|
|
3131
|
-
imports: COMPONENTS$
|
|
3132
|
-
exports: COMPONENTS$
|
|
3124
|
+
imports: COMPONENTS$j.concat(DIRECTIVES$2),
|
|
3125
|
+
exports: COMPONENTS$j.concat(DIRECTIVES$2),
|
|
3126
|
+
}]
|
|
3127
|
+
}] });
|
|
3128
|
+
|
|
3129
|
+
const DEFAULT_CHART_SIZE$1 = '300px';
|
|
3130
|
+
class BizyHeatMapChartComponent {
|
|
3131
|
+
#elementRef = inject(ElementRef);
|
|
3132
|
+
#document = inject(DOCUMENT$1);
|
|
3133
|
+
#ref = inject(ChangeDetectorRef);
|
|
3134
|
+
#renderer = inject(Renderer2);
|
|
3135
|
+
resizeRef = null;
|
|
3136
|
+
tooltip = true;
|
|
3137
|
+
ranges = [];
|
|
3138
|
+
download = { show: true, label: 'Descargar', name: 'Bizy' };
|
|
3139
|
+
xAxisLabels = [];
|
|
3140
|
+
yAxisLabels = [];
|
|
3141
|
+
onTooltipFormatter;
|
|
3142
|
+
onXAxisLabelFormatter;
|
|
3143
|
+
onYAxisLabelFormatter;
|
|
3144
|
+
onDownload = new EventEmitter();
|
|
3145
|
+
onSelect = new EventEmitter();
|
|
3146
|
+
#echarts = null;
|
|
3147
|
+
#resizeObserver = null;
|
|
3148
|
+
#subscription = new Subscription();
|
|
3149
|
+
#chartContainer = null;
|
|
3150
|
+
#afterViewInit = new BehaviorSubject(false);
|
|
3151
|
+
#resize$ = new Subject();
|
|
3152
|
+
#data = [];
|
|
3153
|
+
ngAfterViewInit() {
|
|
3154
|
+
this.#afterViewInit.next(true);
|
|
3155
|
+
}
|
|
3156
|
+
getNativeElement = () => this.#elementRef?.nativeElement;
|
|
3157
|
+
set data(data) {
|
|
3158
|
+
if (!data) {
|
|
3159
|
+
return;
|
|
3160
|
+
}
|
|
3161
|
+
if (data.length > 0) {
|
|
3162
|
+
this.#setChartData(data);
|
|
3163
|
+
}
|
|
3164
|
+
else {
|
|
3165
|
+
this.#deleteChartContainer();
|
|
3166
|
+
}
|
|
3167
|
+
}
|
|
3168
|
+
async #setChartData(data) {
|
|
3169
|
+
this.#data = data;
|
|
3170
|
+
this.#subscription.add(this.#afterViewInit.pipe(filter(value => value === true), take(1)).subscribe(() => {
|
|
3171
|
+
this.#createChartContainer();
|
|
3172
|
+
if (!this.#chartContainer) {
|
|
3173
|
+
return;
|
|
3174
|
+
}
|
|
3175
|
+
const series = [{
|
|
3176
|
+
type: 'heatmap',
|
|
3177
|
+
data: this.#data.map(_cell => [_cell.x, _cell.y, _cell.value ?? '-'])
|
|
3178
|
+
}];
|
|
3179
|
+
const tooltip = {
|
|
3180
|
+
show: this.tooltip,
|
|
3181
|
+
trigger: 'item',
|
|
3182
|
+
appendToBody: true,
|
|
3183
|
+
formatter: this.onTooltipFormatter
|
|
3184
|
+
};
|
|
3185
|
+
const xAxis = [
|
|
3186
|
+
{
|
|
3187
|
+
type: 'category',
|
|
3188
|
+
splitArea: {
|
|
3189
|
+
show: true
|
|
3190
|
+
},
|
|
3191
|
+
position: 'top',
|
|
3192
|
+
data: this.xAxisLabels,
|
|
3193
|
+
axisLabel: {
|
|
3194
|
+
formatter: this.onXAxisLabelFormatter,
|
|
3195
|
+
}
|
|
3196
|
+
}
|
|
3197
|
+
];
|
|
3198
|
+
const yAxis = [
|
|
3199
|
+
{
|
|
3200
|
+
type: 'category',
|
|
3201
|
+
data: this.yAxisLabels,
|
|
3202
|
+
splitArea: {
|
|
3203
|
+
show: true
|
|
3204
|
+
},
|
|
3205
|
+
axisLabel: {
|
|
3206
|
+
formatter: this.onYAxisLabelFormatter,
|
|
3207
|
+
}
|
|
3208
|
+
}
|
|
3209
|
+
];
|
|
3210
|
+
const outOfRangeColor = this.#getClosestCssVariable(this.#elementRef.nativeElement, '--bizy-heat-map-chart-out-of-range-color');
|
|
3211
|
+
const visualMap = {
|
|
3212
|
+
type: 'piecewise',
|
|
3213
|
+
orient: 'horizontal',
|
|
3214
|
+
left: 'center',
|
|
3215
|
+
pieces: this.ranges,
|
|
3216
|
+
outOfRange: {
|
|
3217
|
+
color: outOfRangeColor
|
|
3218
|
+
}
|
|
3219
|
+
};
|
|
3220
|
+
const textColor = this.#getClosestCssVariable(this.#elementRef.nativeElement, '--bizy-heat-map-chart-tooltip-color');
|
|
3221
|
+
const textBackgroundColor = this.#getClosestCssVariable(this.#elementRef.nativeElement, '--bizy-heat-map-chart-tooltip-background-color');
|
|
3222
|
+
const borderColor = this.#getClosestCssVariable(this.#elementRef.nativeElement, '--bizy-heat-map-chart-tooltip-border-color');
|
|
3223
|
+
const toolbox = {
|
|
3224
|
+
show: true,
|
|
3225
|
+
feature: {
|
|
3226
|
+
mySaveAsImage: {
|
|
3227
|
+
show: this.download.show,
|
|
3228
|
+
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',
|
|
3229
|
+
title: this.download.label,
|
|
3230
|
+
onclick: () => {
|
|
3231
|
+
setTimeout(() => {
|
|
3232
|
+
html2canvas(this.#chartContainer).then(canvas => {
|
|
3233
|
+
var link = this.#renderer.createElement('a');
|
|
3234
|
+
link.href = canvas.toDataURL('image/png');
|
|
3235
|
+
link.download = `${this.download.name}.png`;
|
|
3236
|
+
this.#renderer.appendChild(this.#document.body, link);
|
|
3237
|
+
link.click();
|
|
3238
|
+
this.#renderer.removeChild(this.#document.body, link);
|
|
3239
|
+
this.onDownload.emit();
|
|
3240
|
+
});
|
|
3241
|
+
}, 500);
|
|
3242
|
+
}
|
|
3243
|
+
}
|
|
3244
|
+
},
|
|
3245
|
+
emphasis: {
|
|
3246
|
+
iconStyle: {
|
|
3247
|
+
color: textColor,
|
|
3248
|
+
borderColor,
|
|
3249
|
+
borderWidth: 1,
|
|
3250
|
+
textBackgroundColor,
|
|
3251
|
+
textPadding: 5,
|
|
3252
|
+
}
|
|
3253
|
+
}
|
|
3254
|
+
};
|
|
3255
|
+
const option = {
|
|
3256
|
+
tooltip,
|
|
3257
|
+
xAxis,
|
|
3258
|
+
yAxis,
|
|
3259
|
+
toolbox,
|
|
3260
|
+
series,
|
|
3261
|
+
visualMap
|
|
3262
|
+
};
|
|
3263
|
+
import('echarts').then(echarts => {
|
|
3264
|
+
this.#echarts = echarts.init(this.#chartContainer);
|
|
3265
|
+
this.#echarts.setOption(option);
|
|
3266
|
+
this.#echarts.on('click', params => {
|
|
3267
|
+
this.onSelect.emit(params.name);
|
|
3268
|
+
});
|
|
3269
|
+
this.#resizeObserver = new ResizeObserver(() => this.#resize$.next());
|
|
3270
|
+
const resizeRef = this.resizeRef ? this.resizeRef : this.#renderer.parentNode(this.#elementRef.nativeElement) ? this.#renderer.parentNode(this.#elementRef.nativeElement) : this.#elementRef.nativeElement;
|
|
3271
|
+
this.#resizeObserver.observe(resizeRef);
|
|
3272
|
+
this.#subscription.add(this.#resize$.pipe(skip(1), auditTime(300), throttleTime(500)).subscribe(() => {
|
|
3273
|
+
this.#deleteChartContainer();
|
|
3274
|
+
this.#createChartContainer();
|
|
3275
|
+
if (!this.#chartContainer) {
|
|
3276
|
+
return;
|
|
3277
|
+
}
|
|
3278
|
+
this.#echarts = echarts.init(this.#chartContainer);
|
|
3279
|
+
this.#echarts.setOption(option);
|
|
3280
|
+
this.#echarts.on('click', params => {
|
|
3281
|
+
this.onSelect.emit(params.name);
|
|
3282
|
+
});
|
|
3283
|
+
}));
|
|
3284
|
+
});
|
|
3285
|
+
}));
|
|
3286
|
+
}
|
|
3287
|
+
#createChartContainer = () => {
|
|
3288
|
+
if (this.#chartContainer || !this.#elementRef || !this.#elementRef.nativeElement) {
|
|
3289
|
+
return;
|
|
3290
|
+
}
|
|
3291
|
+
let elementWidth = this.#elementRef.nativeElement.offsetWidth;
|
|
3292
|
+
let elementHeight = this.#elementRef.nativeElement.offsetHeight;
|
|
3293
|
+
let minWidth = this.#getClosestCssVariable(this.#elementRef.nativeElement, '--bizy-heat-map-chart-width');
|
|
3294
|
+
let minHeight = this.#getClosestCssVariable(this.#elementRef.nativeElement, '--bizy-heat-map-chart-height');
|
|
3295
|
+
const width = minWidth ? minWidth : elementWidth ? `${elementWidth}px` : DEFAULT_CHART_SIZE$1;
|
|
3296
|
+
const height = minHeight ? minHeight : elementHeight ? `${elementHeight}px` : DEFAULT_CHART_SIZE$1;
|
|
3297
|
+
this.#chartContainer = this.#renderer.createElement('div');
|
|
3298
|
+
this.#renderer.setStyle(this.#chartContainer, 'width', width);
|
|
3299
|
+
this.#renderer.setStyle(this.#chartContainer, 'height', height);
|
|
3300
|
+
this.#renderer.appendChild(this.#elementRef.nativeElement, this.#chartContainer);
|
|
3301
|
+
this.#ref.detectChanges();
|
|
3302
|
+
};
|
|
3303
|
+
#deleteChartContainer = () => {
|
|
3304
|
+
if (!this.#chartContainer || !this.#elementRef || !this.#elementRef.nativeElement) {
|
|
3305
|
+
return;
|
|
3306
|
+
}
|
|
3307
|
+
this.#echarts.clear();
|
|
3308
|
+
this.#renderer.removeChild(this.#elementRef.nativeElement, this.#chartContainer);
|
|
3309
|
+
this.#chartContainer = null;
|
|
3310
|
+
this.#ref.detectChanges();
|
|
3311
|
+
};
|
|
3312
|
+
#getClosestCssVariable = (element, cssVariable) => {
|
|
3313
|
+
while (element) {
|
|
3314
|
+
const value = getComputedStyle(element).getPropertyValue(cssVariable).trim();
|
|
3315
|
+
if (value) {
|
|
3316
|
+
return value;
|
|
3317
|
+
}
|
|
3318
|
+
element = element.parentElement;
|
|
3319
|
+
}
|
|
3320
|
+
const rootValue = getComputedStyle(this.#document.documentElement).getPropertyValue(cssVariable).trim();
|
|
3321
|
+
return rootValue;
|
|
3322
|
+
};
|
|
3323
|
+
ngOnDestroy() {
|
|
3324
|
+
this.#subscription.unsubscribe();
|
|
3325
|
+
if (this.#resizeObserver) {
|
|
3326
|
+
this.#resizeObserver.disconnect();
|
|
3327
|
+
}
|
|
3328
|
+
if (this.#echarts) {
|
|
3329
|
+
this.#echarts.clear();
|
|
3330
|
+
}
|
|
3331
|
+
}
|
|
3332
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyHeatMapChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3333
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.5", type: BizyHeatMapChartComponent, isStandalone: true, selector: "bizy-heat-map-chart", inputs: { resizeRef: "resizeRef", tooltip: "tooltip", ranges: "ranges", download: "download", xAxisLabels: "xAxisLabels", yAxisLabels: "yAxisLabels", onTooltipFormatter: "onTooltipFormatter", onXAxisLabelFormatter: "onXAxisLabelFormatter", onYAxisLabelFormatter: "onYAxisLabelFormatter", data: "data" }, outputs: { onDownload: "onDownload", onSelect: "onSelect" }, ngImport: i0, template: '', isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3334
|
+
}
|
|
3335
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyHeatMapChartComponent, decorators: [{
|
|
3336
|
+
type: Component,
|
|
3337
|
+
args: [{
|
|
3338
|
+
selector: 'bizy-heat-map-chart',
|
|
3339
|
+
template: '',
|
|
3340
|
+
imports: [CommonModule],
|
|
3341
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
3342
|
+
}]
|
|
3343
|
+
}], propDecorators: { resizeRef: [{
|
|
3344
|
+
type: Input
|
|
3345
|
+
}], tooltip: [{
|
|
3346
|
+
type: Input
|
|
3347
|
+
}], ranges: [{
|
|
3348
|
+
type: Input
|
|
3349
|
+
}], download: [{
|
|
3350
|
+
type: Input
|
|
3351
|
+
}], xAxisLabels: [{
|
|
3352
|
+
type: Input
|
|
3353
|
+
}], yAxisLabels: [{
|
|
3354
|
+
type: Input
|
|
3355
|
+
}], onTooltipFormatter: [{
|
|
3356
|
+
type: Input
|
|
3357
|
+
}], onXAxisLabelFormatter: [{
|
|
3358
|
+
type: Input
|
|
3359
|
+
}], onYAxisLabelFormatter: [{
|
|
3360
|
+
type: Input
|
|
3361
|
+
}], onDownload: [{
|
|
3362
|
+
type: Output
|
|
3363
|
+
}], onSelect: [{
|
|
3364
|
+
type: Output
|
|
3365
|
+
}], data: [{
|
|
3366
|
+
type: Input
|
|
3367
|
+
}] } });
|
|
3368
|
+
|
|
3369
|
+
const COMPONENTS$i = [
|
|
3370
|
+
BizyHeatMapChartComponent,
|
|
3371
|
+
];
|
|
3372
|
+
class BizyHeatMapChartModule {
|
|
3373
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyHeatMapChartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3374
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.5", ngImport: i0, type: BizyHeatMapChartModule, imports: [BizyHeatMapChartComponent], exports: [BizyHeatMapChartComponent] });
|
|
3375
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyHeatMapChartModule, imports: [COMPONENTS$i] });
|
|
3376
|
+
}
|
|
3377
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: BizyHeatMapChartModule, decorators: [{
|
|
3378
|
+
type: NgModule,
|
|
3379
|
+
args: [{
|
|
3380
|
+
imports: COMPONENTS$i,
|
|
3381
|
+
exports: COMPONENTS$i,
|
|
3133
3382
|
}]
|
|
3134
3383
|
}] });
|
|
3135
3384
|
|
|
@@ -8200,5 +8449,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
|
|
|
8200
8449
|
* Generated bundle index. Do not edit.
|
|
8201
8450
|
*/
|
|
8202
8451
|
|
|
8203
|
-
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, BizyAudioPlayerModule, BizyAutoFocusDirective, BizyAveragePipe, BizyBarLineChartComponent, BizyBarLineChartModule, 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, BizyInputComponent, BizyInputModule, BizyInputOptionComponent, BizyKeyboardService, BizyListComponent, BizyListModule, BizyLoadingDirective, BizyLogService, BizyLongPressDirective, BizyMenuComponent, BizyMenuModule, BizyMenuOptionComponent, BizyMenuTitleComponent, BizyOnlyNumbersDirective, BizyOnlyPhoneDigitsDirective, BizyOrderByPipe, BizyPieChartComponent, BizyPieChartModule, BizyPipesModule, BizyPopupModule, BizyPopupService, BizyPopupWrapperComponent, BizyProgressBarComponent, BizyProgressBarModule, BizyRadioComponent, BizyRadioModule, BizyRangeFilterPipe, BizyReducePipe, BizyReloadDirective, BizyRepeatPipe, 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, BizyValidatorService, BizyViewportService, LANGUAGE, LOADING_TYPE, MIME_TYPE };
|
|
8452
|
+
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, BizyAudioPlayerModule, BizyAutoFocusDirective, BizyAveragePipe, BizyBarLineChartComponent, BizyBarLineChartModule, 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, BizyMenuComponent, BizyMenuModule, BizyMenuOptionComponent, BizyMenuTitleComponent, BizyOnlyNumbersDirective, BizyOnlyPhoneDigitsDirective, BizyOrderByPipe, BizyPieChartComponent, BizyPieChartModule, BizyPipesModule, BizyPopupModule, BizyPopupService, BizyPopupWrapperComponent, BizyProgressBarComponent, BizyProgressBarModule, BizyRadioComponent, BizyRadioModule, BizyRangeFilterPipe, BizyReducePipe, BizyReloadDirective, BizyRepeatPipe, 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, BizyValidatorService, BizyViewportService, LANGUAGE, LOADING_TYPE, MIME_TYPE };
|
|
8204
8453
|
//# sourceMappingURL=bizy-core.mjs.map
|